poc - cal.com integration in onboarding flow (#12530)
This commit is contained in:
+1
@@ -83,6 +83,7 @@ describe('ClientConfigController', () => {
|
||||
isGoogleMessagingEnabled: false,
|
||||
isGoogleCalendarEnabled: false,
|
||||
isConfigVariablesInDbEnabled: false,
|
||||
calendarBookingPageId: undefined,
|
||||
};
|
||||
|
||||
jest
|
||||
|
||||
@@ -147,4 +147,7 @@ export class ClientConfig {
|
||||
|
||||
@Field(() => Boolean)
|
||||
isConfigVariablesInDbEnabled: boolean;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
calendarBookingPageId?: string;
|
||||
}
|
||||
|
||||
+2
@@ -78,6 +78,7 @@ describe('ClientConfigService', () => {
|
||||
MESSAGING_PROVIDER_GMAIL_ENABLED: true,
|
||||
CALENDAR_PROVIDER_GOOGLE_ENABLED: true,
|
||||
IS_CONFIG_VARIABLES_IN_DB_ENABLED: false,
|
||||
CALENDAR_BOOKING_PAGE_ID: 'team/twenty/talk-to-us',
|
||||
};
|
||||
|
||||
return mockValues[key];
|
||||
@@ -145,6 +146,7 @@ describe('ClientConfigService', () => {
|
||||
isGoogleMessagingEnabled: true,
|
||||
isGoogleCalendarEnabled: true,
|
||||
isConfigVariablesInDbEnabled: false,
|
||||
calendarBookingPageId: 'team/twenty/talk-to-us',
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
+3
@@ -102,6 +102,9 @@ export class ClientConfigService {
|
||||
isConfigVariablesInDbEnabled: this.twentyConfigService.get(
|
||||
'IS_CONFIG_VARIABLES_IN_DB_ENABLED',
|
||||
),
|
||||
calendarBookingPageId: this.twentyConfigService.get(
|
||||
'CALENDAR_BOOKING_PAGE_ID',
|
||||
),
|
||||
};
|
||||
|
||||
return clientConfig;
|
||||
|
||||
Reference in New Issue
Block a user