4 MailImportDestinationFolder,
5 MailImportGmailCategories,
7 } from '@proton/activation/src/interface';
8 import type { OauthDraftState } from '@proton/activation/src/logic/draft/oauthDraft/oauthDraft.interface';
10 import { generateMockAddress } from './addresses';
12 export const prepareState: OauthDraftState = {
14 provider: ImportProvider.GOOGLE,
16 step: 'prepare-import',
17 products: [ImportType.MAIL, ImportType.CALENDAR, ImportType.CONTACTS],
19 importerId: 'importerId',
20 importedEmail: 'easyflavien@gmail.com',
23 importAddress: generateMockAddress(0, true),
24 importPeriod: TIME_PERIOD.LAST_3_MONTHS,
25 importCategoriesDestination: MailImportDestinationFolder.INBOX,
27 Name: 'gmail.com 09-01-2023 09:34',
34 providerPath: ['Inbox'],
37 folderParentID: undefined,
38 systemFolder: MailImportDestinationFolder.INBOX,
39 isSystemFolderChild: false,
42 protonPath: ['Inbox'],
48 providerPath: ['Forums'],
49 category: MailImportGmailCategories.FORUMS,
51 folderParentID: undefined,
53 systemFolder: MailImportDestinationFolder.INBOX,
54 isSystemFolderChild: false,
56 protonPath: ['Forums'],
62 providerPath: ['Updates'],
63 category: MailImportGmailCategories.UPDATES,
66 folderParentID: undefined,
67 systemFolder: MailImportDestinationFolder.INBOX,
68 isSystemFolderChild: false,
70 protonPath: ['Updates'],
76 providerPath: ['Promotions'],
77 category: MailImportGmailCategories.PROMOTIONS,
80 folderParentID: undefined,
81 systemFolder: MailImportDestinationFolder.INBOX,
82 isSystemFolderChild: false,
84 protonPath: ['Promotions'],
90 providerPath: ['Social'],
91 category: MailImportGmailCategories.SOCIAL,
94 folderParentID: undefined,
95 systemFolder: MailImportDestinationFolder.INBOX,
96 isSystemFolderChild: false,
98 protonPath: ['Social'],
104 providerPath: ['Sent'],
108 folderParentID: undefined,
109 systemFolder: MailImportDestinationFolder.SENT,
110 isSystemFolderChild: false,
112 protonPath: ['Sent'],
118 providerPath: ['Drafts'],
122 folderParentID: undefined,
123 systemFolder: MailImportDestinationFolder.DRAFTS,
124 isSystemFolderChild: false,
126 protonPath: ['Drafts'],
132 providerPath: ['Starred'],
136 folderParentID: undefined,
137 systemFolder: MailImportDestinationFolder.STARRED,
138 isSystemFolderChild: false,
140 protonPath: ['Starred'],
146 providerPath: ['Important'],
151 systemFolder: undefined,
152 isSystemFolderChild: false,
153 folderParentID: undefined,
154 protonPath: ['Important'],
160 providerPath: ['Schedule'],
166 systemFolder: undefined,
167 isSystemFolderChild: false,
168 folderParentID: undefined,
169 protonPath: ['Schedule'],
175 providerPath: ['test'],
180 systemFolder: undefined,
181 isSystemFolderChild: false,
182 folderParentID: undefined,
183 folderChildIDS: ['test/Schedule', 'test/Schedule/hello', 'test/Scheduled'],
184 protonPath: ['test'],
190 providerPath: ['test', 'Schedule'],
195 systemFolder: undefined,
196 isSystemFolderChild: false,
197 folderParentID: undefined,
198 folderChildIDS: ['test/Schedule/hello'],
199 protonPath: ['test-Schedule'],
204 id: 'test/Schedule/hello',
205 providerPath: ['test', 'Schedule', 'hello'],
211 systemFolder: undefined,
212 isSystemFolderChild: false,
213 folderParentID: 'test/Schedule',
214 protonPath: ['test-Schedule-hello'],
219 id: 'test/Scheduled',
220 providerPath: ['test', 'Scheduled'],
226 systemFolder: undefined,
227 isSystemFolderChild: false,
228 folderParentID: 'test',
229 protonPath: ['test-Scheduled'],
239 id: 'easyflavien@gmail.com',
240 source: 'easyflavien@gmail.com',
245 id: '5245558e2814165719009b25011d988f038c0d7ab37e1509cb7641e5f893f6f5@group.calendar.google.com',
246 source: 'Agenda temp',
251 id: '571814dc052c54d2dda066ea0694ea43658b395dbc46d7c4bdcedea8aa91a958@group.calendar.google.com',