* WIP fixes for handling office365 api call * First working version microsoft api call handling * Remove logs * Clean up and improve function names * Clean up * Remove log * Fix function missing its correct name * Fix direct return of statement * Cleanup * Simplify with private fetcher * Update CalendarService.ts * Update getOfficeAppKeys.ts Co-authored-by: zomars <zomars@me.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
13 lines
330 B
TypeScript
13 lines
330 B
TypeScript
import { z } from "zod";
|
|
|
|
import getParsedAppKeysFromSlug from "../../_utils/getParsedAppKeysFromSlug";
|
|
|
|
const officeAppKeysSchema = z.object({
|
|
client_id: z.string(),
|
|
client_secret: z.string(),
|
|
});
|
|
|
|
export const getOfficeAppKeys = async () => {
|
|
return getParsedAppKeysFromSlug("office365-calendar", officeAppKeysSchema);
|
|
};
|