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 <[email protected]>
This commit is contained in:
1 parent
f94494b91e
commit
9a40838fa4
14 files changed
+513
-2
No files matched your search
@@ -1,5 +1,7 @@
|
||||
import { CalendarsService } from "@/ee/calendars/services/calendars.service";
|
||||
|
||||
import { ICS_CALENDAR_ID, ICS_CALENDAR_TYPE } from "@calcom/platform-constants";
|
||||
|
||||
export class CalendarsServiceMock {
|
||||
async getCalendars() {
|
||||
return {
|
||||
@@ -42,6 +44,25 @@ export class CalendarsServiceMock {
|
||||
credentialId: 2,
|
||||
error: { message: "" },
|
||||
},
|
||||
{
|
||||
integration: {
|
||||
installed: false,
|
||||
type: ICS_CALENDAR_TYPE,
|
||||
title: "ics-feed_calendar",
|
||||
name: "ics-feed_calendar",
|
||||
description: "",
|
||||
variant: "calendar",
|
||||
slug: ICS_CALENDAR_ID,
|
||||
locationOption: null,
|
||||
categories: ["calendar"],
|
||||
logo: "",
|
||||
publisher: "",
|
||||
url: "",
|
||||
email: "",
|
||||
},
|
||||
credentialId: 2,
|
||||
error: { message: "" },
|
||||
},
|
||||
],
|
||||
destinationCalendar: {
|
||||
name: "destinationCalendar",
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
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;
|
||||
}[];
|
||||
}
|
||||
}
|
||||
@@ -22,7 +22,9 @@ const env: Partial<Omit<Environment, "NODE_ENV">> = {
|
||||
process.env = {
|
||||
...env,
|
||||
...process.env,
|
||||
// fake keys for testing
|
||||
NEXT_PUBLIC_VAPID_PUBLIC_KEY:
|
||||
"BIds0AQJ96xGBjTSMHTOqLBLutQE7Lu32KKdgSdy7A2cS4mKI2cgb3iGkhDJa5Siy-stezyuPm8qpbhmNxdNHMw",
|
||||
VAPID_PRIVATE_KEY: "6cJtkASCar5sZWguIAW7OjvyixpBw9p8zL8WDDwk9Jk",
|
||||
CALENDSO_ENCRYPTION_KEY: "22gfxhWUlcKliUeXcu8xNah2+HP/29ZX",
|
||||
};
|
||||
Reference in new issue
Block a user