Files
calendar/apps/api/v2/test/mocks/ics-calendar-service-mock.ts
T
9a40838fa4 feat: ics-feed calendar api-v2 (#16735)
* feat: ics-feed calendar api-v2

* fixup! feat: ics-feed calendar api-v2

* chore: bump platform libraries

---------

Co-authored-by: Keith Williams <keithwillcode@gmail.com>
2024-09-24 17:48:25 +05:30

28 lines
660 B
TypeScript

export class IcsCalendarServiceMock {
async listCalendars() {
return [
{
name: "name",
readOnly: true,
externalId: "externalId",
integrationName: "ics-feed_calendar",
primary: true,
email: "email",
primaryEmail: "primaryEmail",
credentialId: 1,
integrationTitle: "integrationTitle",
},
] satisfies {
primary?: boolean;
name?: string;
readOnly?: boolean;
email?: string;
primaryEmail?: string;
credentialId?: number | null;
integrationTitle?: string;
externalId?: string;
integrationName?: string;
}[];
}
}