5622 add a syncemail onboarding step (#5689)
- add sync email onboarding step - refactor calendar and email visibility enums - add a new table `keyValuePair` in `core` schema - add a new resolved boolean field `skipSyncEmail` in current user https://github.com/twentyhq/twenty/assets/29927851/de791475-5bfe-47f9-8e90-76c349fba56f
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
import { addDays, subHours, subMonths } from 'date-fns';
|
||||
|
||||
import { CalendarEvent } from '@/activities/calendar/types/CalendarEvent';
|
||||
import { CalendarChannelVisibility } from '~/generated/graphql';
|
||||
|
||||
export const mockedCalendarEvents: CalendarEvent[] = [
|
||||
{
|
||||
@ -9,7 +10,7 @@ export const mockedCalendarEvents: CalendarEvent[] = [
|
||||
id: '9a6b35f1-6078-415b-9540-f62671bb81d0',
|
||||
isFullDay: false,
|
||||
startsAt: addDays(new Date().setHours(10, 0), 1).toISOString(),
|
||||
visibility: 'METADATA',
|
||||
visibility: CalendarChannelVisibility.Metadata,
|
||||
calendarEventParticipants: [
|
||||
{
|
||||
id: '1',
|
||||
@ -43,7 +44,7 @@ export const mockedCalendarEvents: CalendarEvent[] = [
|
||||
isFullDay: false,
|
||||
startsAt: new Date(new Date().setHours(18, 0)).toISOString(),
|
||||
title: 'Bug solving',
|
||||
visibility: 'SHARE_EVERYTHING',
|
||||
visibility: CalendarChannelVisibility.ShareEverything,
|
||||
__typename: 'CalendarEvent',
|
||||
},
|
||||
{
|
||||
@ -53,7 +54,7 @@ export const mockedCalendarEvents: CalendarEvent[] = [
|
||||
isFullDay: false,
|
||||
startsAt: new Date(new Date().setHours(15, 15)).toISOString(),
|
||||
title: 'Onboarding Follow-Up Call',
|
||||
visibility: 'SHARE_EVERYTHING',
|
||||
visibility: CalendarChannelVisibility.ShareEverything,
|
||||
__typename: 'CalendarEvent',
|
||||
},
|
||||
{
|
||||
@ -63,7 +64,7 @@ export const mockedCalendarEvents: CalendarEvent[] = [
|
||||
isFullDay: false,
|
||||
startsAt: new Date(new Date().setHours(10, 0)).toISOString(),
|
||||
title: 'Onboarding Call',
|
||||
visibility: 'SHARE_EVERYTHING',
|
||||
visibility: CalendarChannelVisibility.ShareEverything,
|
||||
__typename: 'CalendarEvent',
|
||||
},
|
||||
{
|
||||
@ -71,7 +72,7 @@ export const mockedCalendarEvents: CalendarEvent[] = [
|
||||
id: '5a792d11-259a-4099-af51-59eb85e15d83',
|
||||
isFullDay: true,
|
||||
startsAt: subMonths(new Date().setHours(8, 0), 1).toISOString(),
|
||||
visibility: 'METADATA',
|
||||
visibility: CalendarChannelVisibility.Metadata,
|
||||
__typename: 'CalendarEvent',
|
||||
},
|
||||
{
|
||||
@ -81,7 +82,7 @@ export const mockedCalendarEvents: CalendarEvent[] = [
|
||||
isFullDay: false,
|
||||
startsAt: subMonths(new Date().setHours(14, 0), 3).toISOString(),
|
||||
title: 'Alan x Garry',
|
||||
visibility: 'SHARE_EVERYTHING',
|
||||
visibility: CalendarChannelVisibility.ShareEverything,
|
||||
__typename: 'CalendarEvent',
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user