Skip to content

Built for people who want to own their automations. Join the waitlist for an invite.

Package listing

@kody/microsoft

src/types.ts

35 lines · 1.1 KB · TypeScript
export type { MicrosoftAccountInfo, MicrosoftAccountParams } from './accounts.ts'
export type { GraphRequestParams, JsonObject, MicrosoftGraphError } from './core.ts'
export type { GraphMethod, ScopeNeed } from './scopes.ts'
export type {
  MailGetParams,
  MailListParams,
  MailReplyParams,
  MailSendParams,
} from './mail.ts'
export type {
  CalendarEventGetParams,
  CalendarEventMutationParams,
  CalendarEventUpdateParams,
  CalendarEventsParams,
  CalendarListParams,
} from './calendar.ts'
export type { TodoCreateParams, TodoListParams, TodoTasksParams } from './todo.ts'
export type { DriveChildrenParams, DriveItemParams, DriveSearchParams } from './onedrive.ts'
export type {
  TeamsChannelMessagesParams,
  TeamsChannelsParams,
  TeamsChatMessagesParams,
  TeamsListParams,
  TeamsSendChatParams,
} from './teams.ts'
export type { SmokeTestResult } from './smoke-test.ts'

/** Overview of shared Microsoft Graph param and result types. */
export default function microsoftTypes() {
  return {
    auth: 'oauth',
    accountParams: ['integration', 'account'],
    products: ['mail', 'calendar', 'todo', 'onedrive', 'teams'],
  }
}