@bigfootai/bigfoot-types 5.4.27 → 5.4.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/dist/index.d.ts +3 -0
  2. package/dist/index.d.ts.map +1 -0
  3. package/dist/index.js +3 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/metadata/dashboards/account_overview.d.ts +3 -0
  6. package/dist/metadata/dashboards/account_overview.d.ts.map +1 -0
  7. package/{metadata → dist/metadata}/dashboards/account_overview.js +8 -10
  8. package/dist/metadata/dashboards/account_overview.js.map +1 -0
  9. package/dist/metadata/dashboards/record_update.d.ts +3 -0
  10. package/dist/metadata/dashboards/record_update.d.ts.map +1 -0
  11. package/{metadata → dist/metadata}/dashboards/record_update.js +9 -11
  12. package/dist/metadata/dashboards/record_update.js.map +1 -0
  13. package/dist/metadata/documents/healthcheck.d.ts +3 -0
  14. package/dist/metadata/documents/healthcheck.d.ts.map +1 -0
  15. package/{metadata → dist/metadata}/documents/healthcheck.js +9 -16
  16. package/dist/metadata/documents/healthcheck.js.map +1 -0
  17. package/dist/metadata/providers/gong.d.ts +4 -0
  18. package/dist/metadata/providers/gong.d.ts.map +1 -0
  19. package/{metadata → dist/metadata}/providers/gong.js +4 -6
  20. package/dist/metadata/providers/gong.js.map +1 -0
  21. package/dist/metadata/providers/google.d.ts +3 -0
  22. package/dist/metadata/providers/google.d.ts.map +1 -0
  23. package/{metadata → dist/metadata}/providers/google.js +8 -10
  24. package/dist/metadata/providers/google.js.map +1 -0
  25. package/dist/metadata/providers/hubspot.d.ts +3 -0
  26. package/dist/metadata/providers/hubspot.d.ts.map +1 -0
  27. package/{metadata → dist/metadata}/providers/hubspot.js +11 -13
  28. package/dist/metadata/providers/hubspot.js.map +1 -0
  29. package/dist/metadata/providers/index.d.ts +7 -0
  30. package/dist/metadata/providers/index.d.ts.map +1 -0
  31. package/dist/metadata/providers/index.js +7 -0
  32. package/dist/metadata/providers/index.js.map +1 -0
  33. package/dist/metadata/providers/noded.d.ts +3 -0
  34. package/dist/metadata/providers/noded.d.ts.map +1 -0
  35. package/dist/metadata/providers/noded.js +49 -0
  36. package/dist/metadata/providers/noded.js.map +1 -0
  37. package/dist/metadata/providers/salesforce.d.ts +3 -0
  38. package/dist/metadata/providers/salesforce.d.ts.map +1 -0
  39. package/{metadata → dist/metadata}/providers/salesforce.js +11 -13
  40. package/dist/metadata/providers/salesforce.js.map +1 -0
  41. package/dist/metadata/providers/slack.d.ts +3 -0
  42. package/dist/metadata/providers/slack.d.ts.map +1 -0
  43. package/{metadata → dist/metadata}/providers/slack.js +11 -13
  44. package/dist/metadata/providers/slack.js.map +1 -0
  45. package/dist/metadata/tables/case.d.ts +3 -0
  46. package/dist/metadata/tables/case.d.ts.map +1 -0
  47. package/{metadata → dist/metadata}/tables/case.js +24 -31
  48. package/dist/metadata/tables/case.js.map +1 -0
  49. package/dist/metadata/tables/issue.d.ts +3 -0
  50. package/dist/metadata/tables/issue.d.ts.map +1 -0
  51. package/{metadata → dist/metadata}/tables/issue.js +27 -34
  52. package/dist/metadata/tables/issue.js.map +1 -0
  53. package/dist/metadata/tables/opportunity.d.ts +3 -0
  54. package/dist/metadata/tables/opportunity.d.ts.map +1 -0
  55. package/{metadata → dist/metadata}/tables/opportunity.js +28 -35
  56. package/dist/metadata/tables/opportunity.js.map +1 -0
  57. package/dist/metadata/tables/organization.d.ts +3 -0
  58. package/dist/metadata/tables/organization.d.ts.map +1 -0
  59. package/{metadata → dist/metadata}/tables/organization.js +7 -9
  60. package/dist/metadata/tables/organization.js.map +1 -0
  61. package/dist/types.d.ts +1641 -0
  62. package/dist/types.d.ts.map +1 -0
  63. package/{model.js → dist/types.js} +872 -581
  64. package/dist/types.js.map +1 -0
  65. package/package.json +30 -24
  66. package/.eslintignore +0 -3
  67. package/.eslintrc.json +0 -10
  68. package/.prettierrc +0 -9
  69. package/.vscode-sample/settings.json +0 -10
  70. package/a_article.txt +0 -58
  71. package/metadata/dashboards/account_overview.ts +0 -51
  72. package/metadata/dashboards/record_update.ts +0 -56
  73. package/metadata/documents/healthcheck.ts +0 -49
  74. package/metadata/providers/gong.ts +0 -35
  75. package/metadata/providers/google.ts +0 -66
  76. package/metadata/providers/hubspot.ts +0 -56
  77. package/metadata/providers/noded.js +0 -58
  78. package/metadata/providers/noded.ts +0 -58
  79. package/metadata/providers/salesforce.ts +0 -57
  80. package/metadata/providers/slack.ts +0 -53
  81. package/metadata/tables/case.ts +0 -153
  82. package/metadata/tables/issue.ts +0 -164
  83. package/metadata/tables/opportunity.ts +0 -166
  84. package/metadata/tables/organization.ts +0 -77
  85. package/model.ts +0 -3748
  86. package/tsconfig.json +0 -9
package/model.ts DELETED
@@ -1,3748 +0,0 @@
1
- import { v4 as uuidv4 } from 'uuid';
2
-
3
- /*
4
- These are the core primitives of our model. These represent the entities that show
5
- up in our Graph QL CRUD operations and set out the fundamental building blocks of
6
- the platform.
7
- */
8
- // CORE START
9
- export enum BlockType {
10
- Note = 'note',
11
- Section = 'section',
12
- Calendar = 'calendar',
13
- Event = 'event',
14
- Email = 'email',
15
- Task = 'task',
16
- Todo = 'todo', // A task from an external application
17
- Document = 'document',
18
- Dashboard = 'dashboard',
19
- Record = 'record',
20
- Transcription = 'transcription',
21
- Message = 'message',
22
- Website = 'website',
23
- Template = 'template',
24
- Table = 'table',
25
- Folder = 'folder',
26
- Search = 'search',
27
- Changeset = 'changeset',
28
- }
29
-
30
- export enum RecommendationType {
31
- Connect = 'connect',
32
- Upsert = 'upsert',
33
- Share = 'share',
34
- Notification = 'notification',
35
- Message = 'message',
36
- Reaction = 'reaction',
37
- Change = 'change',
38
- Ingestion = 'ingestion',
39
- }
40
-
41
- export enum UpsertType {
42
- Insert = 'insert',
43
- Update = 'update',
44
- }
45
-
46
- export enum TagType {
47
- Person = 'person',
48
- Organization = 'organization',
49
- Topic = 'topic',
50
- Location = 'location',
51
- Date = 'date',
52
- Unknown = 'unknown',
53
- }
54
-
55
- export enum ExportType {
56
- Document = 'document',
57
- Message = 'message',
58
- }
59
-
60
- export enum ClientType {
61
- Web = 'web',
62
- Mobile = 'mobile',
63
- }
64
-
65
- export enum SharingLevel {
66
- ReadOnly = 0,
67
- Editor = 1,
68
- Owner = 2, // Only an owner can make you an owner - and the initial creator is always the owner
69
- }
70
-
71
- export enum AccessType {
72
- ReadWrite = 'rw',
73
- ReadOnly = 'read-only',
74
- NoAccess = 'no-access',
75
- }
76
-
77
- export enum TaskPriority {
78
- High = 'high',
79
- Medium = 'medium',
80
- Low = 'low',
81
- }
82
-
83
- export enum TaskStatus {
84
- NotStarted = 'not_started',
85
- InProgress = 'in_progress',
86
- Completed = 'completed',
87
- }
88
-
89
- export enum StepStatus {
90
- NotStarted = 'not_started',
91
- Completed = 'completed',
92
- }
93
-
94
- export enum SharingApproach {
95
- Inline = 0, // As in, the user has used this tag in the note
96
- Explicit = 1, // The user explicitly shared the tag, or the system did, without it being in the note
97
- }
98
-
99
- export enum OrderByDirection {
100
- Ascending = 'asc',
101
- Descending = 'desc',
102
- }
103
-
104
- export enum InviteStatus {
105
- NotInvited = 'not_invited',
106
- SendInvite = 'send_invite',
107
- InviteSent = 'invite_sent',
108
- InviteAccepted = 'invite_accepted',
109
- }
110
-
111
- export enum TagRecommendationType {
112
- TagMissing = 'missing',
113
- TagCreated = 'created',
114
- TagFound = 'found',
115
- TagNotFound = 'not_found',
116
- UserAssigned = 'user_assigned',
117
- Ignore = 'ignore',
118
- }
119
-
120
- export enum RecurrenceRFC {
121
- FREQ = 'FREQ', // The frequency of the event (e.g., DAILY, WEEKLY, MONTHLY, YEARLY).
122
- UNTIL = 'UNTIL', // A date until when the event should occur.
123
- COUNT = 'COUNT', // How many occurrences of the event will take place.
124
- INTERVAL = 'INTERVAL', // How often the event repeats within the frequency period.
125
- BYDAY = 'BYDAY', // Specifies the days of the week when the event should occur.
126
- BYMONTH = 'BYMONTH', // Specifies months of the year.
127
- BYMONTHDAY = 'BYMONTHDAY', // Specifies days of the month.
128
- BYYEARDAY = 'BYYEARDAY', // Specifies days of the year.
129
- BYWEEKNO = 'BYWEEKNO', // Specifies the week numbers in the year.
130
- BYHOUR = 'BYHOUR',
131
- BYMINUTE = 'BYMINUTE',
132
- BYSECOND = 'BYSECOND', // Specifies the time of the event.
133
- MONDAY = 'MO',
134
- TUESDAY = 'TU',
135
- WEDNESDAY = 'WE',
136
- THURSDAY = 'TH',
137
- FRIDAY = 'FR',
138
- SATURDAY = 'SA',
139
- SUNDAY = 'SU',
140
- }
141
-
142
- export enum DocumentType {
143
- BlockQuote = 'blockquote',
144
- Image = 'image',
145
- Text = 'text',
146
- Doc = 'doc',
147
- Paragraph = 'paragraph',
148
- HorizontalRule = 'horizontal_rule',
149
- Heading = 'heading',
150
- CodeBlock = 'code_block',
151
- HardBreak = 'hard_break',
152
- }
153
-
154
- export enum MarkType {
155
- Link = 'link',
156
- }
157
-
158
- export enum MutationType {
159
- Select = 'select',
160
- Insert = 'insert',
161
- Update = 'update',
162
- Delete = 'delete',
163
- }
164
-
165
- export enum ProcessingStage {
166
- NotProcessed = 'not_processed',
167
- Processing = 'processing',
168
- Processed = 'processed',
169
- NotConnected = 'not_connected',
170
- NoCredential = 'no_credential',
171
- Failed = 'failed',
172
- Waiting = 'waiting',
173
- Stopped = 'stopped',
174
- }
175
-
176
- export enum ThumbsDirection {
177
- Up = 'up',
178
- Down = 'down',
179
- }
180
-
181
- export enum RecordType {
182
- Opportunity = 'opportunity',
183
- Case = 'case',
184
- }
185
-
186
- // Referenced here: https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-entity-types-version-2
187
- export enum EntityType {
188
- Date = 'Date',
189
- Duration = 'Duration',
190
- EmailAddress = 'EmailAddress',
191
- Facility = 'Facility',
192
- GeographicFeature = 'GeographicFeature',
193
- Hashtag = 'Hashtag',
194
- IPAddress = 'IPAddress',
195
- JobTitle = 'JobTitle',
196
- Location = 'Location',
197
- Measure = 'Measure',
198
- Money = 'Money',
199
- Number = 'Number',
200
- Ordinal = 'Ordinal',
201
- Organization = 'Organization',
202
- Percent = 'Percent',
203
- Person = 'Person',
204
- PhoneNumber = 'PhoneNumber',
205
- Time = 'Time',
206
- TwitterHandle = 'TwitterHandle',
207
- URL = 'URL',
208
- }
209
-
210
- // Referenced here: https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-relation-types-version-2
211
- export enum RelationType {
212
- AffiliatedWith = 'affiliatedWith',
213
- BasedIn = 'basedIn',
214
- BornAt = 'bornAt',
215
- BornOn = 'bornOn',
216
- ClientOf = 'clientOf',
217
- Colleague = 'colleague',
218
- Competitor = 'competitor',
219
- ContactOf = 'contactOf',
220
- DiedAt = 'diedAt',
221
- DiedOn = 'diedOn',
222
- DissolvedOn = 'dissolvedOn',
223
- EducatedAt = 'educatedAt',
224
- EmployedBy = 'employedBy',
225
- FoundedOn = 'foundedOn',
226
- FounderOf = 'founderOf',
227
- LocatedAt = 'locatedAt',
228
- ManagerOf = 'managerOf',
229
- MemberOf = 'memberOf',
230
- OwnerOf = 'ownerOf',
231
- ParentOf = 'parentOf',
232
- Partner = 'partner',
233
- PartOf = 'partOf',
234
- PartOfMany = 'partOfMany',
235
- PopulationOf = 'populationOf',
236
- MeasureOf = 'measureOf',
237
- Relative = 'relative',
238
- ResidesIn = 'residesIn',
239
- ShareholdersOf = 'shareholdersOf',
240
- SiblingOf = 'siblingOf',
241
- SpokespersonFor = 'spokespersonFor',
242
- SpouseOf = 'spouseOf',
243
- SubsidiaryOf = 'subsidiaryOf',
244
- }
245
-
246
- export enum PubSubType {
247
- NoteChanged = 'noteChanged',
248
- NoteCreated = 'noteCreated',
249
- NoteUpdated = 'noteUpdated',
250
- NoteArchived = 'noteArchived',
251
- TaskChanged = 'taskChanged',
252
- TaskCreated = 'taskCreated',
253
- TaskUpdated = 'taskUpdated',
254
- TaskArchived = 'taskArchived',
255
- RecommendationChanged = 'recommendationChanged',
256
- RecommendationCreated = 'recommendationCreated',
257
- RecommendationUpdated = 'recommendationUpdated',
258
- RecommendationArchived = 'recommendationArchived',
259
- ReactionChangedForBlock = 'reactionChangedForBlock',
260
- ReactionAddedToBlock = 'reactionAddedToBlock',
261
- ReactionRemovedFromBlock = 'reactionRemovedFromBlock',
262
- MessageChangedForBlock = 'messageChangedForBlock',
263
- MessageCreatedForBlock = 'messageCreatedForBlock',
264
- MessageUpdatedForBlock = 'messageUpdatedForBlock',
265
- MessageArchivedForBlock = 'messageArchivedForBlock',
266
- MessageChangedForTag = 'messageChangedForTag',
267
- MessageCreatedForTag = 'messageCreatedForTag',
268
- MessageUpdatedForTag = 'messageUpdatedForTag',
269
- MessageArchivedForTag = 'messageArchivedForTag',
270
- ProviderConnectionChanged = 'providerConnectionChanged',
271
- }
272
-
273
- export interface Attrs {
274
- href?: string;
275
- title?: string;
276
- }
277
-
278
- export interface Mark {
279
- type: string;
280
- attrs?: Attrs;
281
- }
282
-
283
- export const HighlightQL = `
284
- type Highlight {
285
- indexStart: Int!
286
- indexEnd: Int!
287
- }`;
288
- export interface Highlight {
289
- indexStart: number;
290
- indexEnd: number;
291
- }
292
-
293
- export const EditorInputQL = `
294
- input EditorInput {
295
- clientType: String!
296
- clientId: String!
297
- tenantId: String
298
- }`;
299
- export const EditorQL = `
300
- type Editor {
301
- clientType: String!
302
- clientId: String!
303
- tenantId: String
304
- }`;
305
- export interface Editor {
306
- clientType: ClientType;
307
- clientId: string;
308
- tenantId?: string;
309
- }
310
-
311
- export const InviteSharingTagInputQL = `
312
- input InviteSharingTagInput {
313
- tagId: String
314
- email: String
315
- shared: Boolean!
316
- sharingApproach: Int!
317
- sharingLevel: Int!
318
- }`;
319
- export interface InviteSharingTag {
320
- email?: string;
321
- tagId?: string;
322
- shared: boolean;
323
- sharingApproach: SharingApproach;
324
- sharingLevel: SharingLevel;
325
- }
326
-
327
- export const SharingTagInputQL = `
328
- input SharingTagInput {
329
- tagId: String!
330
- shared: Boolean!
331
- sharingApproach: Int!
332
- sharingLevel: Int!
333
- confidence: Float
334
- text: String
335
- }`;
336
- export const SharingTagQL = `
337
- type SharingTag {
338
- tagId: String!
339
- shared: Boolean!
340
- sharingApproach: String!
341
- sharingLevel: String!
342
- confidence: Float
343
- text: String
344
- }`;
345
- export interface SharingTag {
346
- tagId: string;
347
- shared: boolean;
348
- sharingApproach: SharingApproach;
349
- sharingLevel: SharingLevel;
350
- confidence?: number;
351
- text?: string;
352
- }
353
-
354
- export const SharingDomainQL = `
355
- type SharingDomain {
356
- domainId: String!
357
- sharingLevel: Int!
358
- }`;
359
- export interface SharingDomain {
360
- domainId: string;
361
- sharingLevel: SharingLevel; // Determines what domains can do with the tag beyond domain specific settings above
362
- }
363
-
364
- export const TenantSettingQL = `
365
- type TenantSetting {
366
- favorite: Boolean
367
- hasAutoShareNotesOn: Boolean
368
- hasAutoShareTasksOn: Boolean
369
- }`;
370
- export interface TenantSetting {
371
- tenantId: string;
372
- favorite: boolean;
373
- hasAutoShareNotesOn: boolean;
374
- hasAutoShareTasksOn: boolean;
375
- }
376
-
377
- export const SharingTenantQL = `
378
- type SharingTenant {
379
- tenantId: String!
380
- sharingLevel: Int!
381
- }`;
382
- export interface SharingTenant {
383
- tenantId: string;
384
- sharingLevel: SharingLevel; // Determines what tenants can do with the tag beyond tenant specific settings above
385
- }
386
-
387
- export const BusinessObjectLinkInputQL = `
388
- input BusinessObjectLinkInput {
389
- id: String
390
- url: String
391
- externalId: String
392
- provider: String
393
- metadataType: String
394
- blockType: String
395
- _compound: String
396
- }`;
397
- export const BusinessObjectLinkQL = `
398
- type BusinessObjectLink {
399
- url: String
400
- id: String
401
- blockType: String
402
- provider: String
403
- metadataType: String
404
- _compound: String
405
- }`;
406
- export interface BusinessObjectLink {
407
- url?: string;
408
- id?: string;
409
- blockType?: BlockType;
410
- provider?: string;
411
- metadataType?: string;
412
- _compound?: string;
413
- }
414
-
415
- export const ExternalIdLinkInputQL = `
416
- input ExternalIdLinkInput {
417
- externalId: String!
418
- instanceId: String!
419
- provider: String!
420
- application: String!
421
- label: String
422
- tagType: TagType
423
- tagSubType: String
424
- blockType: BlockType
425
- connectionId: String
426
- }`;
427
- export const ExternalIdLinkQL = `
428
- type ExternalIdLink {
429
- externalId: String!
430
- instanceId: String!
431
- provider: String!
432
- application: String!
433
- label: String
434
- tagType: TagType
435
- tagSubType: String
436
- blockType: BlockType
437
- connectionId: String
438
- }`;
439
- export interface ExternalIdLink {
440
- // Don't store these fields
441
- label?: string;
442
- tagType?: TagType;
443
- tagSubType?: string;
444
- blockType?: BlockType;
445
- connectionId?: string;
446
- // Store these fields
447
- externalId: string;
448
- instanceId: string;
449
- provider: string;
450
- application: string;
451
- }
452
-
453
- export const TaskStepInputQL = `
454
- input TaskStepInput {
455
- content: String!
456
- status: String!
457
- }`;
458
- export const TaskStepQL = `
459
- type TaskStep {
460
- content: String!
461
- status: String!
462
- }`;
463
- export interface TaskStep {
464
- content: string;
465
- status: StepStatus;
466
- }
467
-
468
- export const EntityReferenceQL = `
469
- type EntityReference {
470
- name: String!
471
- type: String!
472
- }`;
473
- export interface EntityReference {
474
- name: string;
475
- type: EntityType;
476
- }
477
-
478
- export const ArgumentEntryQL = `
479
- type ArgumentEntry {
480
- text: String!
481
- entities: [EntityReference]!
482
- }`;
483
- export interface ArgumentEntry {
484
- text: string;
485
- entities: EntityReference[];
486
- _highlight?: Highlight;
487
- }
488
-
489
- export const RelationEntryQL = `
490
- type RelationEntry {
491
- type: String!
492
- confidence: Int!
493
- arguments: [ArgumentEntry]!
494
- }`;
495
- export interface RelationEntry {
496
- type: RelationType;
497
- confidence: number;
498
- arguments: ArgumentEntry[];
499
- _highlight?: Highlight;
500
- }
501
-
502
- export interface MachineLearningEntry {
503
- _highlights?: Highlight[];
504
- }
505
-
506
- export const EntityEntryFields = `
507
- text: String!
508
- confidence: Int!
509
- `;
510
- export const EntityEntryQL = `
511
- type EntityEntry {${EntityEntryFields}
512
- }`;
513
- export interface EntityEntry extends MachineLearningEntry {
514
- text: string;
515
- confidence: number;
516
- date?: number;
517
- dateEnd?: number;
518
- _tagId?: string;
519
- _email?: string;
520
- _url?: string;
521
- _avatar?: string;
522
- _favicon?: string;
523
- _friendlyName?: string;
524
- _dbpedia?: string;
525
- }
526
-
527
- export const ProviderInfoQL = `
528
- type ProviderInfo {
529
- provider: String!
530
- application: String!
531
- }`;
532
- export interface ProviderInfo {
533
- provider: string;
534
- application: string;
535
- }
536
-
537
- export const ProviderRequestQL = `
538
- type ProviderRequest {
539
- providerInfo: ProviderInfo!
540
- connectionId: String!
541
- }`;
542
- export interface ProviderRequest {
543
- providerInfo: ProviderInfo;
544
- connectionId: string;
545
- }
546
-
547
- export const ProviderResponseQL = `
548
- type ProviderResponse {
549
- connectionId: String!
550
- providerUrl: String!
551
- }`;
552
- export interface ProviderResponse {
553
- connectionId: string;
554
- providerUrl: string;
555
- }
556
-
557
- export const StandardObjectsQL = `
558
- type StandardObjects {
559
- task: Boolean!
560
- calendar: Boolean!
561
- transcription: Boolean!
562
- document: Boolean!
563
- thread: Boolean!
564
- template: Boolean!
565
- table: Boolean!
566
- }`;
567
- export interface StandardObjects {
568
- task: boolean;
569
- calendar: boolean;
570
- transcription: boolean;
571
- document: boolean;
572
- thread: boolean;
573
- template: boolean;
574
- table: boolean;
575
- }
576
-
577
- export interface Subscriptions {
578
- linkDomains: string[];
579
- }
580
-
581
- export interface LinkSubscriptionProviderRequest {
582
- callbackUrl: string;
583
- callbackId: string;
584
- url: string;
585
- connectedProvider: ConnectedProvider;
586
- tableMetadata?: TableMetadata[];
587
- }
588
-
589
- export interface UserTokenRequest {
590
- userId: string;
591
- email: string;
592
- }
593
-
594
- export interface UserTokenResponse {
595
- token: string;
596
- }
597
-
598
- export const CredentialQL = `
599
- type Credential {
600
- email: String!
601
- profile: String!
602
- accessToken: String!
603
- refreshToken: String
604
- instanceUrl: String
605
- instanceId: String
606
- dateExpiry: Float
607
- }`;
608
- export interface Credential {
609
- email: string;
610
- profile: any;
611
- accessToken: string;
612
- refreshToken?: string;
613
- instanceUrl?: string;
614
- instanceId?: string;
615
- dateExpiry?: number;
616
- }
617
-
618
- export interface ConnectedProviderRegistration {
619
- connectionId: string;
620
- credential: Credential;
621
- }
622
-
623
- export const ConnectedProviderQL = `
624
- type ConnectedProvider {
625
- connectionId: String!
626
- provider: String!
627
- application: String!
628
- credential: Credential
629
- dateCreated: Float
630
- dateUpdated: Float
631
- }`;
632
- export interface ConnectedProvider {
633
- connectionId: string;
634
- provider: string;
635
- application: string;
636
- credential?: Credential;
637
- dateCreated: number;
638
- dateUpdated: number;
639
- }
640
-
641
- export const ReferenceBlockInputQL = `
642
- input ReferenceBlockInput {
643
- id: String!
644
- blockType: String!
645
- }`;
646
- export const ReferenceBlockQL = `
647
- type ReferenceBlock {
648
- id: String!
649
- blockType: String!
650
- archived: Boolean
651
- }`;
652
- export interface ReferenceBlock {
653
- id: string;
654
- blockType: BlockType;
655
- archived?: boolean;
656
- }
657
-
658
- export const ChangesInputQL = `
659
- input ChangesInput {
660
- steps: [String]!
661
- clientIds: [String]!
662
- }`;
663
- export const ChangesQL = `
664
- type Changes {
665
- steps: [String]!
666
- clientIds: [String]!
667
- }`;
668
- export interface Changes {
669
- steps: any[];
670
- clientIds: string[];
671
- }
672
-
673
- export const PersonReferenceFields = `
674
- email: String!
675
- friendlyName: String
676
- tagId: String
677
- `;
678
- export const PersonReferenceInputQL = `
679
- input PersonReferenceInput {${PersonReferenceFields}
680
- }`;
681
- export const PersonReferenceQL = `
682
- type PersonReference {${PersonReferenceFields}
683
- }`;
684
- export interface PersonReference {
685
- email: string;
686
- friendlyName?: string;
687
- tagId?: string;
688
- }
689
-
690
- export interface ExternalTagReferenceRequest {
691
- externalId?: string;
692
- search?: string;
693
- tagSubType: string;
694
- connectedProvider: ConnectedProvider;
695
- }
696
-
697
- export const FindExternalTagReferencesInputQL = `
698
- input FindExternalTagReferencesInput {
699
- search: String
700
- tagType: TagType!
701
- tagSubType: String
702
- connectionId: String!
703
- }`;
704
- export interface FindExternalTagReferencesInput {
705
- search?: string;
706
- tagType: TagType;
707
- tagSubType?: string;
708
- connectionId: string;
709
- }
710
-
711
- export const FindExternalTagReferenceInputQL = `
712
- input FindExternalTagReferenceInput {
713
- externalId: String
714
- tagType: TagType!
715
- tagSubType: String
716
- connectionId: String!
717
- }`;
718
- export interface FindExternalTagReferenceInput {
719
- externalId: string;
720
- tagType: TagType;
721
- tagSubType?: string;
722
- connectionId: string;
723
- }
724
-
725
- export const PrimitiveFields = `
726
- _id: ID!
727
- dateCreated: Float!
728
- dateUpdated: Float!
729
- tenantIdCreated: String`;
730
- export const PrimitiveFieldsForUpsert = `
731
- _id: ID
732
- dateCreated: Float
733
- dateUpdated: Float
734
- tenantIdCreated: String`;
735
- export class Primitive {
736
- _id: string;
737
- dateCreated: number;
738
- dateUpdated: number;
739
- tenantIdCreated?: string;
740
-
741
- constructor() {
742
- this._id = uuidv4();
743
-
744
- const now = Date.now();
745
- this.dateCreated = now;
746
- this.dateUpdated = now;
747
- }
748
- }
749
-
750
- export const SharedPrimitiveFields = `${PrimitiveFields}
751
- sharingTags: [SharingTag]!
752
- subscriptionPubSubType: String`;
753
- export const SharedPrimitiveFieldsForUpsert = `${PrimitiveFieldsForUpsert}
754
- sharingTags: [SharingTagInput]`;
755
- export class SharedPrimitive extends Primitive {
756
- sharingTags: SharingTag[];
757
- _parentSharingTagIds: string[];
758
- _parentTagIds: string[];
759
- _sharingTagIds: string[];
760
- _tagIds: string[];
761
- subscriptionPubSubType?: PubSubType;
762
-
763
- constructor(sharingTags: SharingTag[]) {
764
- super();
765
-
766
- this.sharingTags = sharingTags;
767
- this._parentSharingTagIds = [];
768
- this._parentTagIds = [];
769
- this._sharingTagIds = [];
770
- this._tagIds = [];
771
-
772
- // Add sharing tags to the internal array
773
- // Add sharing tags to the internal array
774
- if (sharingTags && sharingTags.length > 0) {
775
- this._sharingTagIds = sharingTags
776
- .filter((sharingTag) => {
777
- return sharingTag.shared == true;
778
- })
779
- .map((sharingTag) => sharingTag.tagId);
780
- this._tagIds = sharingTags.map((sharingTag) => sharingTag.tagId);
781
- } else {
782
- this._tagIds = [];
783
- this._sharingTagIds = [];
784
- }
785
- }
786
- }
787
-
788
- export const MetadataFields = `${PrimitiveFields}
789
- label: String!
790
- description: String!
791
- metadataType: String!
792
- references: [String]
793
- classifiers: [String]!
794
- threshold: Float!
795
- provider: String
796
- application: String`;
797
- export const MetadataQL = `
798
- type Metadata {${MetadataFields}
799
- }`;
800
- export class Metadata extends Primitive {
801
- label: string;
802
- description: string;
803
- metadataType: string;
804
- references?: string[];
805
- classifiers: string[];
806
- threshold: number;
807
- provider?: string;
808
- application?: string;
809
-
810
- constructor(
811
- label: string,
812
- description: string,
813
- metadataType: string,
814
- classifiers: string[],
815
- threshold: number
816
- ) {
817
- super();
818
-
819
- this.label = label;
820
- this.description = description;
821
- this.metadataType = metadataType;
822
- this.classifiers = classifiers;
823
- this.threshold = threshold;
824
- }
825
- }
826
-
827
- export interface ProcessBlockChangeHistoryRequest {
828
- historyId: string;
829
- connectedProvider: ConnectedProvider;
830
- }
831
-
832
- export class History extends Primitive {
833
- tenantId: string;
834
- referenceBlock: ReferenceBlock;
835
- before: Block;
836
- after: Block;
837
-
838
- constructor(tenantId: string, before: Block, after: Block) {
839
- super();
840
-
841
- this.tenantId = tenantId;
842
- this.before = before;
843
- this.after = after;
844
-
845
- this.referenceBlock = {
846
- id: before._id,
847
- blockType: before.blockType,
848
- };
849
- }
850
- }
851
-
852
- export const FolderQL = `
853
- type Folder {${SharedPrimitiveFields}
854
- icon: String
855
- label: String!
856
- description: String
857
- searchIds: [String]
858
- archived: Boolean!
859
- }`;
860
- export class Folder extends SharedPrimitive {
861
- icon?: string;
862
- label: string;
863
- description?: string;
864
- searchIds?: string[];
865
- archived: boolean;
866
- _order?: number;
867
- _tagType?: TagType;
868
-
869
- constructor(
870
- tenantIdCreated: string,
871
- sharingTags: SharingTag[],
872
- label: string
873
- ) {
874
- super(sharingTags);
875
-
876
- this.label = label;
877
- this.tenantIdCreated = tenantIdCreated;
878
- this.archived = false;
879
-
880
- this._order = 0;
881
- }
882
- }
883
-
884
- export const SearchQL = `
885
- type Search {${SharedPrimitiveFields}
886
- label: String
887
- search: String
888
- blockType: String
889
- _ids: [String]
890
- tagIds: [String]
891
- emails: [String]
892
- businessObjects: [BusinessObjectLink]
893
- orderByDateUpdated: String
894
- orderByDateCreated: String
895
- orderByDateDue: String
896
- orderByAlias: String
897
- dateDueFrom: Float
898
- dateDueTo: Float
899
- status: String
900
- originNoteId: String
901
- editorId: String
902
- editorGroupId: String
903
- parentId: String
904
- favorite: Boolean
905
- snoozed: Boolean
906
- size: Int
907
- archived: Boolean!
908
- favoriteTagId: String
909
- }`;
910
- export class Search extends SharedPrimitive {
911
- blockType?: BlockType;
912
- label?: string;
913
- search?: string;
914
- _ids?: string[];
915
- tagIds?: string[];
916
- emails?: string[];
917
- businessObjects?: BusinessObjectLink[];
918
- orderByDateUpdated?: OrderByDirection;
919
- orderByDateCreated?: OrderByDirection;
920
- orderByDateDue?: OrderByDirection;
921
- orderByAlias?: OrderByDirection;
922
- dateDueFrom?: number;
923
- dateDueTo?: number;
924
- status?: TaskStatus;
925
- originNoteId?: string;
926
- editorId?: string;
927
- editorGroupId?: string;
928
- parentId?: string;
929
- favorite?: boolean;
930
- snoozed?: boolean;
931
- size?: number;
932
- archived: boolean;
933
- favoriteTagId?: string;
934
- _order?: number;
935
-
936
- constructor(tenantIdCreated: string, sharingTags: SharingTag[]) {
937
- super(sharingTags);
938
-
939
- this.tenantIdCreated = tenantIdCreated;
940
- this.archived = false;
941
-
942
- this._order = 0;
943
- }
944
- }
945
-
946
- export const SyncQL = `
947
- type Sync {${PrimitiveFields}
948
- providerRequest: ProviderRequest!
949
- enabled: Boolean!
950
- processingStage: String
951
- processingReason: String
952
- }`;
953
- export class Sync extends Primitive {
954
- providerRequest: ProviderRequest;
955
- enabled: boolean;
956
- processingStage?: ProcessingStage;
957
- processingReason?: string;
958
-
959
- constructor(tenantIdCreated: string, providerRequest: ProviderRequest) {
960
- super();
961
-
962
- this.tenantIdCreated = tenantIdCreated;
963
- this.providerRequest = providerRequest;
964
- this.enabled = true;
965
- }
966
- }
967
-
968
- export const DashboardTagSubscriptionQL = `
969
- type DashboardTagSubscription {
970
- dashboardSubscriptions: [String]!
971
- tagType: String!
972
- }`;
973
- export interface DashboardTagSubscription {
974
- dashboardSubscriptions: string[];
975
- tagType: TagType;
976
- }
977
-
978
- export const ExternalIdQL = `
979
- type ExternalId {
980
- label: String!
981
- tagType: TagType!
982
- tagSubType: String
983
- blockType: BlockType!
984
- }`;
985
- export interface ExternalId {
986
- label: string;
987
- tagType: TagType;
988
- tagSubType?: string;
989
- blockType: BlockType;
990
- }
991
-
992
- export const ProviderApplicationQL = `
993
- type ProviderApplication {
994
- name: String!
995
- label: String!
996
- description: String!
997
- iconUrl: String
998
- sobjects: StandardObjects!
999
- linkSubscriptions: [String]
1000
- linkToExternalIdRegex: String
1001
- recordTypeSubscriptions: [String]
1002
- documentTypeSubscriptions: [String]
1003
- dashboardTypeSubscriptions: [String]
1004
- dashboardTagSubscriptions: [DashboardTagSubscription]
1005
- externalIds: [ExternalId]
1006
- authentication: Boolean!
1007
- installed: Boolean
1008
- }`;
1009
- export interface ProviderApplication {
1010
- name: string;
1011
- label: string;
1012
- description: string;
1013
- iconUrl?: string;
1014
- sobjects: StandardObjects;
1015
- linkSubscriptions?: string[];
1016
- linkToExternalIdRegex?: string;
1017
- recordTypeSubscriptions?: string[];
1018
- documentTypeSubscriptions?: string[];
1019
- dashboardTypeSubscriptions?: string[];
1020
- dashboardTagSubscriptions?: DashboardTagSubscription[];
1021
- externalIds?: ExternalId[];
1022
- externalStorage: boolean;
1023
- authentication: boolean;
1024
- installed?: boolean;
1025
- }
1026
-
1027
- export const ProviderQL = `
1028
- type Provider {${PrimitiveFields}
1029
- name: String!
1030
- label: String!
1031
- description: String!
1032
- iconUrl: String
1033
- instanceUrl: String!
1034
- applications: [ProviderApplication]!
1035
- tableMetadata: [TableMetadata]
1036
- documentMetadata: [DocumentMetadata]
1037
- dashboardMetadata: [DashboardMetadata]
1038
- subscriptionPubSubType: String
1039
- }`;
1040
- export class Provider extends Primitive {
1041
- name: string;
1042
- label: string;
1043
- description: string;
1044
- iconUrl?: string;
1045
- instanceUrl: string;
1046
- applications: ProviderApplication[];
1047
- tableMetadata?: TableMetadata[];
1048
- documentMetadata?: DocumentMetadata[];
1049
- dashboardMetadata?: DashboardMetadata[];
1050
- subscriptionPubSubType?: PubSubType.ProviderConnectionChanged;
1051
- _tenantId?: string;
1052
-
1053
- constructor(
1054
- name: string,
1055
- label: string,
1056
- description: string,
1057
- instanceUrl: string,
1058
- applications: ProviderApplication[]
1059
- ) {
1060
- super();
1061
-
1062
- this.name = name;
1063
- this.label = label;
1064
- this.description = description;
1065
- this.instanceUrl = instanceUrl;
1066
- this.applications = applications;
1067
- }
1068
- }
1069
-
1070
- export const TagTypeQL = `
1071
- enum TagType {
1072
- ${TagType.Organization.toUpperCase()}
1073
- ${TagType.Person.toUpperCase()}
1074
- ${TagType.Topic.toUpperCase()}
1075
- ${TagType.Date.toUpperCase()}
1076
- }`;
1077
-
1078
- export const GraphTagQL = `
1079
- type GraphTag {
1080
- _id: String
1081
- tagType: TagType
1082
- alias: String
1083
- count: Int
1084
- }`;
1085
- export interface GraphTag {
1086
- _id: string;
1087
- tagType: TagType;
1088
- alias: string;
1089
- count: number;
1090
- }
1091
-
1092
- export const GraphTagsInputQL = `
1093
- input GraphTagsInput {
1094
- tagId: String!
1095
- tagTypes: [TagType]!
1096
- }`;
1097
- export interface GraphTagsInput {
1098
- tagId: string;
1099
- tagTypes: TagType[];
1100
- }
1101
-
1102
- export const TagFieldsWithoutSharing = `${PrimitiveFields}
1103
- alias: String!
1104
- friendlyName: String
1105
- tagType: String!
1106
- tagSubType: String
1107
- url: String
1108
- favicon: String
1109
- dbpedia: String
1110
- email: String
1111
- avatar: String
1112
- externalId: String
1113
- inviteStatus: String
1114
- originNoteId: String
1115
- tenantIdVerified: String
1116
- businessObjects: [BusinessObjectLink]
1117
- externalIdLinks: [ExternalIdLink]
1118
- merged: Boolean
1119
- mergedWithTagId: String
1120
- member: Boolean
1121
- archived: Boolean!
1122
- private: Boolean
1123
- favorite: Boolean
1124
- hasAutoShareNotesOn: Boolean
1125
- hasAutoShareTasksOn: Boolean
1126
- taskCount: Int`;
1127
- export const TagFieldsJustSharing = `
1128
- sharingDomains: [SharingDomain]
1129
- sharingTenants: [SharingTenant]`;
1130
- export const TagQL = `
1131
- type Tag {${TagFieldsWithoutSharing}${TagFieldsJustSharing}
1132
- }`;
1133
- export class Tag extends Primitive {
1134
- alias: string;
1135
- tagType: TagType;
1136
- tagSubType?: string; // This is currently used for external tags to help source from the correct tables
1137
- friendlyName?: string;
1138
- sharingDomains?: SharingDomain[]; // The domains this tag is shared with plus domain settings for the tag
1139
- sharingTenants?: SharingTenant[]; // The tenants this tag is shared with plus tenant settings for the tag
1140
- tenantSettings?: TenantSetting[]; // The settings for individual tenants
1141
- url?: string;
1142
- favicon?: string;
1143
- dbpedia?: string;
1144
- email?: string;
1145
- avatar?: string;
1146
- externalId?: string; // This is used for external tags that match with records
1147
- inviteStatus?: InviteStatus;
1148
- tenantIdInvite?: string;
1149
- originNoteId?: string; // If the tag originated from a note, we store that here
1150
- tenantIdVerified?: string; // The tenant._id that claimed/verified this tag as being them
1151
- archived: boolean;
1152
- private?: boolean; // Indicates if the tag exists, but the user can't see it
1153
- favorite?: boolean; // This is really a virtualized property
1154
- hasAutoShareNotesOn?: boolean; // This is really a virtualized property
1155
- hasAutoShareTasksOn?: boolean; // This is really a virtualized property
1156
- sharingLevel?: SharingLevel; // This is really a virtualized property
1157
- taskCount?: number;
1158
- businessObjects?: BusinessObjectLink[]; // The business objects that should be used to enrich the card view
1159
- externalIdLinks?: ExternalIdLink[]; // The external urls as per the apps the tenants have installed
1160
- _createdByAI: boolean;
1161
- _orphan?: boolean;
1162
- _savedSearchId?: string;
1163
- _inviteCode?: string;
1164
- _dateInviteCodeExpires?: number;
1165
- merged?: boolean;
1166
- mergedWithTagId?: string;
1167
- member?: boolean;
1168
-
1169
- constructor(tenantIdCreated: string, alias: string, tagType: TagType) {
1170
- super();
1171
-
1172
- this.tenantIdCreated = tenantIdCreated;
1173
- this.alias = alias;
1174
- this.tagType = tagType;
1175
-
1176
- this.archived = false;
1177
- this.favorite = false;
1178
- this._createdByAI = false;
1179
-
1180
- if (this.tagType == TagType.Person) {
1181
- this.inviteStatus = InviteStatus.NotInvited;
1182
- }
1183
- }
1184
- }
1185
-
1186
- export const TagRecommendationQL = `
1187
- type TagRecommendation {
1188
- id: String!
1189
- type: String!
1190
- tagType: String!
1191
- tags: [Tag]!
1192
- entity: EntityEntry!
1193
- }`;
1194
- export interface TagRecommendation {
1195
- id: string;
1196
- type: TagRecommendationType;
1197
- tagType: TagType;
1198
- tags: Tag[];
1199
- entity: EntityEntry;
1200
- }
1201
-
1202
- export const TenantLightInputQL = `
1203
- input TenantLightInput {
1204
- _id: String!
1205
- picture: String
1206
- familyName: String
1207
- givenName: String
1208
- allowed: Boolean
1209
- }`;
1210
- export const TenantLightQL = `
1211
- type TenantLight {
1212
- _id: String!
1213
- domainMemberships: [String]!
1214
- email: String!
1215
- tagId: String!
1216
- picture: String
1217
- familyName: String
1218
- givenName: String
1219
- allowed: Boolean
1220
- access: String
1221
- }`;
1222
- export class TenantLight {
1223
- _id: string;
1224
- domainMemberships: string[];
1225
- email: string;
1226
- tagId: string;
1227
- picture?: string;
1228
- familyName?: string;
1229
- givenName?: string;
1230
- allowed?: boolean;
1231
- access?: string;
1232
-
1233
- constructor(tenant: Tenant) {
1234
- this._id = tenant._id;
1235
- this.domainMemberships = tenant.domainMemberships;
1236
- this.email = tenant.email;
1237
- this.tagId = tenant.tagId;
1238
- this.picture = tenant.picture;
1239
- this.familyName = tenant.familyName;
1240
- this.givenName = tenant.givenName;
1241
- this.allowed = tenant.allowed;
1242
- this.access = tenant.access;
1243
- }
1244
- }
1245
-
1246
- // We make recommendations/notifications for a variety of reasons
1247
- // - Recommend integrating calendar based on dates in the note
1248
- // - Recommend integrating salesforce based on links in the note
1249
- // - Recommend creating an issue based on intelligence from the note
1250
- // - Recommend creating a healthcheck based on intelligence from the note
1251
- // - Recommend reading a note or task that has just been shared
1252
- // All of these should be available in the note context, but also continue
1253
- // to be available outside of the note context - and for certain things (like recommending an integration)
1254
- // should not repeat - equally - should be ignored if we say we don't want to do it and ideally not re-appear
1255
- // if the user x's it out. In addition, some recommendation/notifications are scoped to the user while others
1256
- // are global to anyone who can see it any should only be done once
1257
- export const ConnectRecommendationQL = `
1258
- type ConnectRecommendation {
1259
- tagType: String
1260
- linkUrl: String
1261
- provider: Provider!
1262
- providerResponse: ProviderResponse
1263
- providerInfo: ProviderInfo!
1264
- }`;
1265
- export interface ConnectRecommendation {
1266
- tagType?: string; // The type of tag that triggered the connection recommendation
1267
- linkUrl?: string; // The link that triggered the recommendation
1268
- provider: Provider;
1269
- providerResponse?: ProviderResponse;
1270
- providerInfo: ProviderInfo;
1271
- }
1272
-
1273
- export const ReactionRecommendationQL = `
1274
- type ReactionRecommendation {
1275
- reaction: Reaction!
1276
- tenant: TenantLight!
1277
- }`;
1278
- export interface ReactionRecommendation {
1279
- reaction: Reaction;
1280
- tenant: TenantLight;
1281
- }
1282
-
1283
- export const ChangeRecommendationQL = `
1284
- type ChangeRecommendation {
1285
- status: String
1286
- tenant: TenantLight!
1287
- }`;
1288
- export interface ChangeRecommendation {
1289
- status?: TaskStatus;
1290
- tenant: TenantLight;
1291
- }
1292
-
1293
- export const UpsertRecommendationQL = `
1294
- type UpsertRecommendation {
1295
- table: Table
1296
- document: Document
1297
- blockType: String!
1298
- upsertType: String!
1299
- metadata: Metadata
1300
- connectionId: String!
1301
- }`;
1302
- export interface UpsertRecommendation {
1303
- table?: Table;
1304
- document?: Document;
1305
- blockType: BlockType;
1306
- upsertType: UpsertType;
1307
- metadata: Metadata;
1308
- connectionId: string;
1309
- }
1310
-
1311
- export const ShareRecommendationQL = `
1312
- type ShareRecommendation {
1313
- shared: Boolean!
1314
- tenant: TenantLight!
1315
- }`;
1316
- export interface ShareRecommendation {
1317
- shared: boolean;
1318
- tenant: TenantLight;
1319
- }
1320
-
1321
- export const IngestionRecommendationQL = `
1322
- type IngestionRecommendation {
1323
- processingStage: String!
1324
- processingAttempts: Int!
1325
- processingReason: String
1326
- tenant: TenantLight!
1327
- }`;
1328
- export interface IngestionRecommendation {
1329
- processingStage: ProcessingStage;
1330
- processingAttempts: number;
1331
- processingReason?: string;
1332
- tenant: TenantLight;
1333
- }
1334
-
1335
- export const MessageRecommendationQL = `
1336
- type MessageRecommendation {
1337
- tenant: TenantLight!
1338
- }`;
1339
- export interface MessageRecommendation {
1340
- tenant: TenantLight;
1341
- }
1342
-
1343
- export const NotificationRecommendationQL = `
1344
- type NotificationRecommendation {
1345
- dashboard: Dashboard!
1346
- }`;
1347
- export interface NotificationRecommendation {
1348
- dashboard: Dashboard;
1349
- }
1350
-
1351
- export interface BaseTask {
1352
- dateDue?: number;
1353
- dateRemindMe?: number;
1354
- archived: boolean;
1355
- favorite: boolean;
1356
- snoozed: boolean;
1357
- status?: TaskStatus;
1358
- }
1359
-
1360
- export const RecommendationQL = `
1361
- type Recommendation {${SharedPrimitiveFields}
1362
- referenceBlock: ReferenceBlock
1363
- recommendationType: String!
1364
- connectRecommendation: ConnectRecommendation
1365
- upsertRecommendation: UpsertRecommendation
1366
- shareRecommendation: ShareRecommendation
1367
- messageRecommendation: MessageRecommendation
1368
- notificationRecommendation: NotificationRecommendation
1369
- reactionRecommendation: ReactionRecommendation
1370
- changeRecommendation: ChangeRecommendation
1371
- ingestionRecommendation: IngestionRecommendation
1372
- parentId: String
1373
- dateDue: Float
1374
- dateRemindMe: Float
1375
- archived: Boolean!
1376
- favorite: Boolean!
1377
- snoozed: Boolean!
1378
- thumbs: String
1379
- comment: String
1380
- status: String
1381
- }`;
1382
- export class Recommendation extends SharedPrimitive implements BaseTask {
1383
- referenceBlock: ReferenceBlock; // This is the block that caused the recommendation to happen
1384
- recommendationType: RecommendationType;
1385
- connectRecommendation?: ConnectRecommendation; // For provider recommendations, we use this field
1386
- upsertRecommendation?: UpsertRecommendation; // For data upsert recommendations, we use this field
1387
- shareRecommendation?: ShareRecommendation; // For instances when a block is shared with a tenant
1388
- messageRecommendation?: MessageRecommendation; // For instances when a message is shared
1389
- notificationRecommendation?: NotificationRecommendation; // For instances where the app wants to tell us something
1390
- reactionRecommendation?: ReactionRecommendation; // For recommendations that are related to emoji
1391
- changeRecommendation?: ChangeRecommendation; // Something changed for a block that is noteworthy
1392
- ingestionRecommendation?: IngestionRecommendation; // Used to let the user know something has been ingested
1393
- parentId?: string; // Any parent recommendation that generated this recommendation
1394
- dateDue?: number;
1395
- dateRemindMe?: number;
1396
- archived: boolean;
1397
- favorite: boolean;
1398
- snoozed: boolean;
1399
- thumbs?: ThumbsDirection; // Added so we can get some basic feedback on recommendations
1400
- comment?: String; // Added likely just for the private beta, but perhaps longer!
1401
- status?: TaskStatus;
1402
-
1403
- constructor(
1404
- sharingTags: SharingTag[],
1405
- referenceBlock: ReferenceBlock,
1406
- tenantIdCreated: string,
1407
- recommendationType: RecommendationType
1408
- ) {
1409
- // For the sharing tags, we do it a little differently depending on the global nature of the recommendation. If theirs
1410
- // a recommendation for each tenant, the sharing tags should just include the tenant. Otherwise the sharing tags should
1411
- // copy that of the block at time of recommendation
1412
- super(sharingTags);
1413
-
1414
- // These are applicable for all recommendations
1415
- this.referenceBlock = referenceBlock;
1416
- this.tenantIdCreated = tenantIdCreated;
1417
- this.recommendationType = recommendationType;
1418
-
1419
- this.archived = false;
1420
- this.favorite = false;
1421
- this.snoozed = false;
1422
- this.status = TaskStatus.NotStarted;
1423
- }
1424
- }
1425
-
1426
- export interface AccessTokenPair {
1427
- accessToken?: string;
1428
- clientId?: string;
1429
- apiKey?: string;
1430
- email?: string;
1431
- impersonation?: boolean;
1432
- }
1433
-
1434
- export const TenantQL = `
1435
- type Tenant {${PrimitiveFields}
1436
- domainMemberships: [String]!
1437
- email: String!
1438
- tagId: String!
1439
- picture: String
1440
- familyName: String
1441
- givenName: String
1442
- allowed: Boolean!
1443
- }`;
1444
- export class Tenant extends Primitive {
1445
- domainMemberships: string[]; // The list of all domains this tenant belongs
1446
- email: string;
1447
- emailVerified: boolean;
1448
- domainIdEmail: string; // The domain for which the tenant is a member because of their email
1449
- tagId: string;
1450
- picture?: string;
1451
- familyName?: string;
1452
- givenName?: string;
1453
- connectedProviders?: ConnectedProvider[];
1454
- accessToken?: string;
1455
- allowed: boolean; // Used to indicate if this user is allowed to access the application TODO take this out after private beta
1456
- access?: AccessType; // Optional flag to indicate the access level to a note - used currently for the Yjs integration
1457
- accessTokens?: AccessTokenPair[];
1458
- _managedByTenant?: boolean;
1459
-
1460
- constructor(
1461
- domainMemberships: string[],
1462
- email: string,
1463
- emailVerified: boolean,
1464
- domainIdEmail: string,
1465
- tagId: string
1466
- ) {
1467
- super();
1468
-
1469
- this.domainMemberships = domainMemberships;
1470
- this.email = email;
1471
- this.emailVerified = emailVerified;
1472
- this.domainIdEmail = domainIdEmail;
1473
- this.tagId = tagId;
1474
- this.allowed = false;
1475
- }
1476
- }
1477
-
1478
- export const DomainQL = `
1479
- type Domain {${PrimitiveFields}
1480
- domain: String!
1481
- member: Boolean!
1482
- }`;
1483
- export class Domain extends Primitive {
1484
- domain: string;
1485
- member?: boolean;
1486
- isPublic: boolean;
1487
-
1488
- constructor(domain: string, isPublic: boolean) {
1489
- super();
1490
-
1491
- this.domain = domain;
1492
- this.isPublic = isPublic;
1493
- }
1494
- }
1495
-
1496
- export class Organization extends Tag {
1497
- constructor(tenantIdCreated: string, alias: string) {
1498
- super(tenantIdCreated, alias, TagType.Organization);
1499
- }
1500
- }
1501
-
1502
- export class Person extends Tag {
1503
- constructor(tenantIdCreated: string, alias: string) {
1504
- super(tenantIdCreated, alias, TagType.Person);
1505
- }
1506
- }
1507
-
1508
- export const BlockFields = `${SharedPrimitiveFields}
1509
- editors: [Editor]!
1510
- blockType: String!
1511
- document: String
1512
- dates: [EntityEntry]
1513
- locations: [EntityEntry]
1514
- emails: [String]
1515
- businessObjects: [BusinessObjectLink]
1516
- archived: Boolean!
1517
- favorite: Boolean!
1518
- snoozed: Boolean!
1519
- dateDue: Float
1520
- dateRemindMe: Float
1521
- dateAssociated: Float
1522
- status: String
1523
- parentId: String
1524
- originReferenceBlock: ReferenceBlock
1525
- reactions: [Reaction]`;
1526
- export const BlockFieldsForUpsert = `${SharedPrimitiveFieldsForUpsert}
1527
- status: String
1528
- dateDue: Float
1529
- dateRemindMe: Float
1530
- dateAssociated: Float
1531
- archived: Boolean
1532
- favorite: Boolean
1533
- snoozed: Boolean
1534
- parentId: String
1535
- document: String`;
1536
- export const BlockQL = `
1537
- type Block {${BlockFields}
1538
- }`;
1539
- export class Block extends SharedPrimitive {
1540
- editors: Editor[];
1541
- blockType: BlockType;
1542
- // The document that represents the content of the block
1543
- document?: any;
1544
- // Graph properties that help us find the block
1545
- _embedding?: number[];
1546
- dates?: EntityEntry[];
1547
- locations?: EntityEntry[];
1548
- emails?: string[];
1549
- businessObjects?: BusinessObjectLink[];
1550
- // The various binary states
1551
- archived: boolean;
1552
- snoozed: boolean;
1553
- // A virtualized binary state by tenant
1554
- favorite: boolean;
1555
- _favorite: string[];
1556
- // Tasky things about the block
1557
- dateDue?: number;
1558
- dateRemindMe?: number;
1559
- status?: TaskStatus;
1560
- _dateDueUserAssigned: boolean;
1561
- // Stuff to associate blocks with calendar items manually
1562
- dateAssociated?: number;
1563
- // Editor informatino about teh block
1564
- editorId?: string;
1565
- editorGroupId?: string;
1566
- // Relationship information about the block
1567
- parentId?: string;
1568
- originReferenceBlock?: ReferenceBlock;
1569
- // Stuff to help manage the pipeline and search
1570
- _timeZone?: string;
1571
- _locale?: string;
1572
- _empty: boolean;
1573
- // Internal intelligence stuff
1574
- _tagRecommendations?: TagRecommendation[];
1575
- _entitiesPerson?: EntityEntry[];
1576
- _entitiesOrganization?: EntityEntry[];
1577
- _entitiesTopic?: EntityEntry[];
1578
- _emails?: EntityEntry[];
1579
- // A search field to help with relevancy
1580
- score?: number;
1581
- // Social stuff
1582
- reactions?: Reaction[];
1583
-
1584
- constructor(
1585
- tenantIdCreated: string,
1586
- editors: Editor[],
1587
- sharingTags: SharingTag[],
1588
- blockType: BlockType
1589
- ) {
1590
- super(sharingTags);
1591
-
1592
- this.tenantIdCreated = tenantIdCreated;
1593
- this.editors = editors;
1594
- this.blockType = blockType;
1595
-
1596
- this.archived = false;
1597
- this.favorite = false;
1598
- this.snoozed = false;
1599
-
1600
- this._favorite = [];
1601
-
1602
- this._dateDueUserAssigned = false;
1603
-
1604
- this._empty = false;
1605
- }
1606
- }
1607
-
1608
- export class BlockProcessingRequest {
1609
- referenceBlock: ReferenceBlock;
1610
-
1611
- constructor(referenceBlock: ReferenceBlock) {
1612
- this.referenceBlock = referenceBlock;
1613
- }
1614
- }
1615
-
1616
- export class BlockProcessingResponse {
1617
- referenceBlock: ReferenceBlock;
1618
-
1619
- constructor(referenceBlock: ReferenceBlock) {
1620
- this.referenceBlock = referenceBlock;
1621
- }
1622
- }
1623
-
1624
- export interface SubscribingProviderApplication {
1625
- provider: Provider;
1626
- application: ProviderApplication;
1627
- connectedProvider?: ConnectedProvider;
1628
- }
1629
-
1630
- export interface BusinessObjectIngestionResponse {
1631
- callbackId: string;
1632
- processingStage: ProcessingStage;
1633
- processingReason: string;
1634
- businessObject: BusinessObject;
1635
- }
1636
-
1637
- export class BusinessObjectIngestionRequest extends Primitive {
1638
- referenceBlock?: ReferenceBlock; // A reference to the block created/updated by this ingestion
1639
- subscribingProviderApplication?: SubscribingProviderApplication;
1640
- provider?: string; // A unique string representing the provider e.g. "salesforce", "atlassian", etc
1641
- application?: string; // A unique string representing the provider application e.g. "service", "jira", etc
1642
- uri: string; // A uri to locate the specific instance of the business object
1643
- processingStage?: ProcessingStage; // Indicates if the business object has been processed yet
1644
- processingAttempts?: number; // Indicates the number of attempts made to process this business object
1645
- processingReason?: string; // The reason the processing is at this stage
1646
- dateProcessed?: number; // The date this document was last processed
1647
- dateToProcess?: number; // The date this ingestion should be processed - default is now
1648
- originReferenceBlock?: ReferenceBlock; // The block that this request originally came from (though the ingestion may be referenced from many future blocks)
1649
- callbackId?: string; // A callback id that can be used for async requests
1650
- businessObject?: BusinessObject; // The ingested business object - used for async request callbacks
1651
-
1652
- constructor(
1653
- tenantIdCreated: string,
1654
- originReferenceBlock: ReferenceBlock,
1655
- uri: string
1656
- ) {
1657
- super();
1658
-
1659
- this.tenantIdCreated = tenantIdCreated;
1660
- this.originReferenceBlock = originReferenceBlock;
1661
- this.uri = uri;
1662
-
1663
- this.processingStage = ProcessingStage.NotProcessed;
1664
- this.processingAttempts = 0;
1665
- this.dateProcessed = 0;
1666
- this.dateToProcess = Date.now();
1667
- }
1668
- }
1669
-
1670
- export const BusinessObjectFields = `${BlockFields}
1671
- provider: String!
1672
- application: String!
1673
- uri: String!
1674
- processingStage: String!
1675
- processingAttempts: Int!
1676
- dateProcessed: Float!
1677
- externalId: String!
1678
- processingReason: String
1679
- iconUrl: String`;
1680
- export const BusinessObjectFieldsForUpsert = `${BlockFieldsForUpsert}
1681
- provider: String!
1682
- application: String!
1683
- uri: String!`;
1684
- export const BusinessObjectQL = `
1685
- type BusinessObject {${BusinessObjectFields}
1686
- }`;
1687
- export class BusinessObject extends Block {
1688
- provider: string; // A unique string representing the provider e.g. "salesforce", "atlassian", etc
1689
- application: string; // A unique string representing the provider application e.g. "service", "jira", etc
1690
- uri: string; // A uri to locate the specific instance of the business object
1691
- externalId: string; // An external identifier that can help us match the records
1692
- iconUrl?: string | null; // The url of an icon that represents the business object
1693
- externalResponse?: string; // The response from the external application as a JSON string
1694
-
1695
- constructor(
1696
- tenantIdCreated: string,
1697
- editors: Editor[],
1698
- sharingTags: SharingTag[],
1699
- blockType: BlockType,
1700
- provider: string,
1701
- application: string,
1702
- uri: string,
1703
- externalId: string
1704
- ) {
1705
- super(tenantIdCreated, editors, sharingTags, blockType);
1706
-
1707
- this.archived = false;
1708
-
1709
- this.provider = provider;
1710
- this.application = application;
1711
- this.uri = uri;
1712
- this.externalId = externalId;
1713
- }
1714
- }
1715
-
1716
- export class Section extends Block {
1717
- constructor(id: string) {
1718
- super('', [], [], BlockType.Section);
1719
-
1720
- this._id = id;
1721
- }
1722
- }
1723
-
1724
- export const NoteQL = `
1725
- type Note {${BlockFields}
1726
- }`;
1727
- export class Note extends Block {
1728
- constructor(
1729
- tenantIdCreated: string,
1730
- editors: Editor[],
1731
- sharingTags: SharingTag[]
1732
- ) {
1733
- super(tenantIdCreated, editors, sharingTags, BlockType.Note);
1734
- }
1735
- }
1736
-
1737
- export const TaskQL = `
1738
- type Task {${BlockFields}
1739
- }`;
1740
- export class Task extends Block implements BaseTask {
1741
- constructor(
1742
- tenantIdCreated: string,
1743
- editors: Editor[],
1744
- sharingTags: SharingTag[]
1745
- ) {
1746
- super(tenantIdCreated, editors, sharingTags, BlockType.Task);
1747
-
1748
- this.status = TaskStatus.NotStarted;
1749
- this.snoozed = false;
1750
- this.archived = false;
1751
- this._dateDueUserAssigned = false;
1752
- }
1753
- }
1754
- // CORE END
1755
-
1756
- /*
1757
- These are the business objects we explicitly support and have a standardized description
1758
- of across all systems. This allows these business objects to interact with each other
1759
- regardless of underpinning system.
1760
- */
1761
- // BUSINESS OBJECTS START
1762
-
1763
- //// CONFERENCE START
1764
- export const IngestTranscriptionInputQL = `
1765
- input IngestTranscriptionInput {${BusinessObjectFieldsForUpsert}
1766
- title: String
1767
- startTime: Float
1768
- duration: Float
1769
- htmlSummary: String
1770
- rawText: String
1771
- meetingUrl: String
1772
- recordingUrl: String
1773
- transcriptionUrl: String
1774
- attendees: [PersonReferenceInput]
1775
- tasks: [UpsertTaskInput]
1776
- }`;
1777
- export const TranscriptionQL = `
1778
- type Transcription {${BusinessObjectFields}
1779
- title: String
1780
- startTime: Float
1781
- duration: Float
1782
- htmlSummary: String
1783
- rawText: String
1784
- meetingUrl: String
1785
- recordingUrl: String
1786
- transcriptionUrl: String
1787
- attendees: [PersonReference]
1788
- tasks: [Task]
1789
- }`;
1790
- export class Transcription extends BusinessObject {
1791
- title?: string;
1792
- startTime?: number;
1793
- duration?: number;
1794
- htmlSummary?: string;
1795
- rawText?: string;
1796
- meetingUrl?: string;
1797
- recordingUrl?: string;
1798
- transcriptionUrl?: string;
1799
- attendees?: PersonReference[];
1800
- tasks?: Task[];
1801
-
1802
- constructor(
1803
- tenantIdCreated: string,
1804
- editors: Editor[],
1805
- sharingTags: SharingTag[],
1806
- provider: string,
1807
- application: string,
1808
- uri: string,
1809
- externalId: string
1810
- ) {
1811
- super(
1812
- tenantIdCreated,
1813
- editors,
1814
- sharingTags,
1815
- BlockType.Transcription,
1816
- provider,
1817
- application,
1818
- uri,
1819
- externalId
1820
- );
1821
- }
1822
- }
1823
-
1824
- export const ConferenceEntrypointQL = `
1825
- type ConferenceEntrypoint {
1826
- url: String
1827
- meetingCode: String
1828
- }`;
1829
- export interface ConferenceEntrypoint {
1830
- url?: string | null;
1831
- meetingCode?: string | null;
1832
- }
1833
-
1834
- export const ConferenceQL = `
1835
- type Conference {
1836
- entryPoints: [ConferenceEntrypoint]
1837
- transcription: Transcription
1838
- }`;
1839
- export interface Conference {
1840
- entryPoints?: ConferenceEntrypoint[];
1841
- transcription?: Transcription | null;
1842
- }
1843
-
1844
- export interface IngestTranscriptionInput extends Transcription {}
1845
- //// CONFERENCE END
1846
-
1847
- //// EVENT START
1848
- export enum EventStatus {
1849
- Confirmed = 'confirmed',
1850
- Tentative = 'tentative',
1851
- Cancelled = 'cancelled',
1852
- }
1853
-
1854
- export enum ResponseStatus {
1855
- NeedsAction = 'needsAction',
1856
- Declined = 'declined',
1857
- Tentative = 'tentative',
1858
- Accepted = 'accepted',
1859
- }
1860
-
1861
- export const PersonAcceptanceQL = `
1862
- type PersonAcceptance {${PersonReferenceFields}
1863
- responseStatus: String!
1864
- }`;
1865
- export interface PersonAcceptance extends PersonReference {
1866
- responseStatus: ResponseStatus;
1867
- }
1868
-
1869
- export const AttachmentInputQL = `
1870
- input AttachmentInput {
1871
- externalId: String!
1872
- url: String!
1873
- iconUrl: String
1874
- mimeType: String
1875
- title: String
1876
- }`;
1877
- export const AttachmentQL = `
1878
- type Attachment {
1879
- externalId: String!
1880
- url: String!
1881
- iconUrl: String
1882
- mimeType: String
1883
- title: String
1884
- }`;
1885
- export interface Attachment {
1886
- externalId: string;
1887
- url: string;
1888
- iconUrl?: string | null;
1889
- mimeType?: string | null;
1890
- title?: string | null;
1891
- }
1892
-
1893
- export interface NormalizedImportantField {
1894
- name: string;
1895
- value?: string;
1896
- tagType?: TagType;
1897
- }
1898
-
1899
- export interface NormalizedBusinessObject {
1900
- businessObject: BusinessObject;
1901
- dateDue?: number;
1902
- priority?: TaskPriority;
1903
- status?: TaskStatus;
1904
- important?: NormalizedImportantField[];
1905
- tagIds?: string[];
1906
- }
1907
-
1908
- export interface AveragePriorityChange {
1909
- before: TaskPriority;
1910
- after: TaskPriority;
1911
- }
1912
-
1913
- export interface AnalysisResult {
1914
- dateDueImpacted?: NormalizedBusinessObject[];
1915
- movingPriority?: AveragePriorityChange;
1916
- taskCompleted?: boolean;
1917
- }
1918
-
1919
- export interface CalendarFilter {
1920
- dateStart: number;
1921
- dateEnd: number;
1922
- limit: number;
1923
- }
1924
-
1925
- export interface SyncCalendarProviderRequest {
1926
- calendarFilter: CalendarFilter;
1927
- connectedProvider: ConnectedProvider;
1928
- }
1929
-
1930
- export interface TranscriptionFilter {
1931
- dateStart: number;
1932
- dateEnd: number;
1933
- limit: number;
1934
- }
1935
-
1936
- export interface SyncTranscriptionProviderRequest {
1937
- transcriptionFilter: TranscriptionFilter;
1938
- connectedProvider: ConnectedProvider;
1939
- }
1940
-
1941
- export interface RecordTypeFilter {
1942
- tableMetadata: TableMetadata;
1943
- externalIds: string[];
1944
- }
1945
-
1946
- export interface RecordFilter {
1947
- recordTypeFilters: RecordTypeFilter[];
1948
- }
1949
-
1950
- export interface SyncTableProviderRequest {
1951
- recordFilter: RecordFilter;
1952
- connectedProvider: ConnectedProvider;
1953
- }
1954
-
1955
- export interface SyncTableMetadataProviderRequest {
1956
- tableMetadata: TableMetadata[];
1957
- connectedProvider: ConnectedProvider;
1958
- }
1959
-
1960
- export const EventQL = `
1961
- type Event {${BusinessObjectFields}
1962
- calendarId: String!
1963
- eventStatus: String!
1964
- dateStart: Float!
1965
- organizedBy: PersonReference!
1966
- location: String
1967
- dateStartOriginal: Float
1968
- recurrence: [String]
1969
- dateEnd: Float
1970
- subject: String
1971
- description: String
1972
- attendees: [PersonAcceptance]
1973
- conference: Conference
1974
- }`;
1975
- export class Event extends BusinessObject {
1976
- calendarId: string;
1977
- eventStatus: EventStatus;
1978
- dateStart: number;
1979
- organizedBy: PersonReference;
1980
- location?: string | null;
1981
- dateStartOriginal?: number | null;
1982
- recurrence?: RecurrenceRFC[] | null;
1983
- dateEnd?: number | null;
1984
- subject?: string | null;
1985
- description?: string | null;
1986
- attendees?: PersonAcceptance[] | null;
1987
- conference?: Conference | null;
1988
- attachments?: Attachment[] | null;
1989
-
1990
- constructor(
1991
- tenantIdCreated: string,
1992
- editors: Editor[],
1993
- sharingTags: SharingTag[],
1994
- provider: string,
1995
- application: string,
1996
- uri: string,
1997
- externalId: string,
1998
- calendarId: string,
1999
- eventStatus: EventStatus,
2000
- dateStart: number,
2001
- organizedBy: PersonReference
2002
- ) {
2003
- super(
2004
- tenantIdCreated,
2005
- editors,
2006
- sharingTags,
2007
- BlockType.Event,
2008
- provider,
2009
- application,
2010
- uri,
2011
- externalId
2012
- );
2013
-
2014
- this.calendarId = calendarId;
2015
- this.eventStatus = eventStatus;
2016
- this.dateStart = dateStart;
2017
- this.organizedBy = organizedBy;
2018
- }
2019
- }
2020
-
2021
- export const CalendarQL = `
2022
- type Calendar {${BusinessObjectFields}
2023
- timeZone: String!
2024
- description: String
2025
- location: String
2026
- events: [Event]
2027
- }`;
2028
- export class Calendar extends BusinessObject {
2029
- timeZone: string;
2030
- description?: string | null;
2031
- location?: string | null;
2032
- events?: Event[] | null;
2033
-
2034
- constructor(
2035
- tenantIdCreated: string,
2036
- editors: Editor[],
2037
- sharingTags: SharingTag[],
2038
- provider: string,
2039
- application: string,
2040
- uri: string,
2041
- externalId: string,
2042
- timeZone: string
2043
- ) {
2044
- super(
2045
- tenantIdCreated,
2046
- editors,
2047
- sharingTags,
2048
- BlockType.Calendar,
2049
- provider,
2050
- application,
2051
- uri,
2052
- externalId
2053
- );
2054
-
2055
- this.timeZone = timeZone;
2056
- }
2057
- }
2058
- //// EVENT END
2059
-
2060
- //// EXTERNAL TASK START
2061
- export class Todo extends BusinessObject {
2062
- htmlContent?: string;
2063
-
2064
- constructor(
2065
- tenantIdCreated: string,
2066
- editors: Editor[],
2067
- sharingTags: SharingTag[],
2068
- provider: string,
2069
- application: string,
2070
- uri: string,
2071
- externalId: string,
2072
- status: TaskStatus,
2073
- dateDue: number
2074
- ) {
2075
- super(
2076
- tenantIdCreated,
2077
- editors,
2078
- sharingTags,
2079
- BlockType.Todo,
2080
- provider,
2081
- application,
2082
- uri,
2083
- externalId
2084
- );
2085
-
2086
- this.status = status;
2087
- this.dateDue = dateDue;
2088
- }
2089
- }
2090
- //// EXTERNAL TASK END
2091
-
2092
- //// EMAIL START
2093
- export const IngestEmailInputQL = `
2094
- input IngestEmailInput {${BlockFieldsForUpsert}
2095
- to: [PersonReferenceInput]
2096
- cc: [PersonReferenceInput]
2097
- bcc: [PersonReferenceInput]
2098
- from: PersonReferenceInput
2099
- subject: String
2100
- attachments: [AttachmentInput]
2101
- htmlContent: String
2102
- textContent: String
2103
- createBlockType: String
2104
- }`;
2105
- export const EmailQL = `
2106
- type Email {${BusinessObjectFields}
2107
- to: [PersonReference]
2108
- cc: [PersonReference]
2109
- bcc: [PersonReference]
2110
- from: PersonReference
2111
- subject: String
2112
- attachments: [Attachment]
2113
- htmlContent: String
2114
- textContent: String
2115
- }`;
2116
- export class Email extends BusinessObject {
2117
- to?: PersonReference[];
2118
- cc?: PersonReference[];
2119
- bcc?: PersonReference[];
2120
- from?: PersonReference;
2121
- subject?: string | null;
2122
- attachments?: Attachment[] | null;
2123
- htmlContent?: string;
2124
- textContent?: string;
2125
- createBlockType?: string;
2126
-
2127
- constructor(
2128
- tenantIdCreated: string,
2129
- editors: Editor[],
2130
- sharingTags: SharingTag[],
2131
- provider: string,
2132
- application: string,
2133
- uri: string,
2134
- externalId: string
2135
- ) {
2136
- super(
2137
- tenantIdCreated,
2138
- editors,
2139
- sharingTags,
2140
- BlockType.Email,
2141
- provider,
2142
- application,
2143
- uri,
2144
- externalId
2145
- );
2146
- }
2147
- }
2148
-
2149
- export interface IngestEmailInput extends Email {}
2150
- //// EMAIL END
2151
-
2152
- //// MESSAGING START
2153
- export const UpsertMessageInputQL = `
2154
- input UpsertMessageInput {${BlockFieldsForUpsert}
2155
- htmlContent: String
2156
- originReferenceTagId: String
2157
- originReferenceBlock: ReferenceBlockInput
2158
- }`;
2159
- export const MessageQL = `
2160
- type Message {${BusinessObjectFields}
2161
- htmlContent: String
2162
- originReferenceTagId: String
2163
- }`;
2164
- export class Message extends BusinessObject {
2165
- htmlContent?: string;
2166
- // Reference information - use the originReferenceBlockId for block comments
2167
- // Use the parentId to determine if this is a message under a message
2168
- originReferenceTagId?: string;
2169
-
2170
- constructor(
2171
- tenantIdCreated: string,
2172
- editors: Editor[],
2173
- sharingTags: SharingTag[],
2174
- provider: string,
2175
- application: string,
2176
- uri: string,
2177
- externalId: string
2178
- ) {
2179
- super(
2180
- tenantIdCreated,
2181
- editors,
2182
- sharingTags,
2183
- BlockType.Message,
2184
- provider,
2185
- application,
2186
- uri,
2187
- externalId
2188
- );
2189
- }
2190
- }
2191
-
2192
- export interface UpsertMessageInput extends Message {}
2193
-
2194
- //// MESSAGING END
2195
-
2196
- //// DOCUMENT START
2197
- export const DocumentFields = `${BusinessObjectFields}
2198
- title: String
2199
- description: String
2200
- previewImage: String
2201
- htmlContent: String
2202
- metadataType: String`;
2203
- export const DocumentQL = `
2204
- type Document {${DocumentFields}
2205
- }`;
2206
- export class Document extends BusinessObject {
2207
- title?: string;
2208
- description?: string;
2209
- previewImage?: string;
2210
- htmlContent?: string;
2211
- metadataType?: string;
2212
-
2213
- constructor(
2214
- tenantIdCreated: string,
2215
- editors: Editor[],
2216
- sharingTags: SharingTag[],
2217
- provider: string,
2218
- application: string,
2219
- uri: string,
2220
- externalId: string
2221
- ) {
2222
- super(
2223
- tenantIdCreated,
2224
- editors,
2225
- sharingTags,
2226
- BlockType.Document,
2227
- provider,
2228
- application,
2229
- uri,
2230
- externalId
2231
- );
2232
- }
2233
- }
2234
- //// DOCUMENT END
2235
-
2236
- //// DASHBOARD START
2237
- export const BlockDataQL = `
2238
- type BlockData {
2239
- _id: String!
2240
- dateCreated: Float
2241
- dateUpdated: Float
2242
- name: String!
2243
- blockType: String
2244
- title: String
2245
- document: String
2246
- htmlContent: String
2247
- metadataType: String
2248
- tagType: String
2249
- search: GraphSearch
2250
- }`;
2251
- export class BlockData extends Primitive {
2252
- name: string;
2253
- blockType?: BlockType;
2254
- title?: string;
2255
- document?: string;
2256
- htmlContent?: string;
2257
- metadataType?: string;
2258
- tagType?: TagType;
2259
- search?: GraphSearchInput;
2260
-
2261
- constructor(name: string) {
2262
- super();
2263
-
2264
- this.name = name;
2265
- }
2266
- }
2267
-
2268
- export const DashboardQL = `
2269
- type Dashboard {${BusinessObjectFields}
2270
- metadata: DashboardMetadata
2271
- blockData: [BlockData]
2272
- tagId: String
2273
- }`;
2274
- export class Dashboard extends BusinessObject {
2275
- metadata: DashboardMetadata;
2276
- blockData: BlockData[];
2277
- tagId: string;
2278
-
2279
- constructor(
2280
- tenantIdCreated: string,
2281
- editors: Editor[],
2282
- sharingTags: SharingTag[],
2283
- provider: string,
2284
- application: string,
2285
- uri: string,
2286
- externalId: string,
2287
- dashboardMetadata: DashboardMetadata,
2288
- tagId: string
2289
- ) {
2290
- super(
2291
- tenantIdCreated,
2292
- editors,
2293
- sharingTags,
2294
- BlockType.Dashboard,
2295
- provider,
2296
- application,
2297
- uri,
2298
- externalId
2299
- );
2300
-
2301
- this.tagId = tagId;
2302
- this.blockData = [];
2303
- // Go through the block descriptions and create the block data entries
2304
- for (const blockDescription of dashboardMetadata.blockDescriptions) {
2305
- const block: BlockData = new BlockData(blockDescription.name);
2306
-
2307
- block.blockType = blockDescription.blockType;
2308
- block.title = blockDescription.title;
2309
- block.metadataType = blockDescription.metadataType;
2310
- block.tagType = blockDescription.tagType;
2311
-
2312
- this.blockData.push(block);
2313
- }
2314
-
2315
- this.metadata = dashboardMetadata;
2316
- }
2317
- }
2318
- //// DASHBOARD END
2319
-
2320
- //// WEBSITE START
2321
- export const WebsiteQL = `
2322
- type Website {${BusinessObjectFields}
2323
- title: String
2324
- description: String
2325
- bannerImage: String
2326
- htmlContent: String
2327
- }`;
2328
- export class Website extends BusinessObject {
2329
- title?: string;
2330
- description?: string;
2331
- bannerImage?: string;
2332
- htmlContent?: string;
2333
-
2334
- constructor(
2335
- tenantIdCreated: string,
2336
- editors: Editor[],
2337
- sharingTags: SharingTag[],
2338
- provider: string,
2339
- application: string,
2340
- uri: string,
2341
- externalId: string
2342
- ) {
2343
- super(
2344
- tenantIdCreated,
2345
- editors,
2346
- sharingTags,
2347
- BlockType.Website,
2348
- provider,
2349
- application,
2350
- uri,
2351
- externalId
2352
- );
2353
- }
2354
- }
2355
- //// WEBSITE END
2356
-
2357
- // BUSINESS OBJECTS END
2358
-
2359
- // METADATA OBJECTS START
2360
-
2361
- //// FOR DOCUMENTS START
2362
- export const BlockDescriptionQL = `
2363
- type BlockDescription {
2364
- title: String
2365
- name: String!
2366
- description: String!
2367
- blockType: String
2368
- metadataType: String
2369
- tagType: String
2370
- }`;
2371
- export interface BlockDescription {
2372
- title?: string;
2373
- name: string;
2374
- description: string;
2375
- blockType?: BlockType;
2376
- metadataType?: string;
2377
- tagType?: TagType;
2378
- }
2379
-
2380
- export const DocumentMetadataQL = `
2381
- type DocumentMetadata {${MetadataFields}
2382
- blockDescriptions: [BlockDescription]!
2383
- exportTypes: [String]
2384
- }`;
2385
- export class DocumentMetadata extends Metadata {
2386
- blockDescriptions: BlockDescription[];
2387
- exportTypes?: ExportType[]; // What export types this document metadata should be used for
2388
-
2389
- constructor(
2390
- label: string,
2391
- description: string,
2392
- metadataType: string,
2393
- classifiers: string[],
2394
- threshold: number,
2395
- blockDescriptions: BlockDescription[]
2396
- ) {
2397
- super(label, description, metadataType, classifiers, threshold);
2398
-
2399
- this.blockDescriptions = blockDescriptions;
2400
- }
2401
- }
2402
-
2403
- export const DashboardMetadataQL = `
2404
- type DashboardMetadata {${MetadataFields}
2405
- blockDescriptions: [BlockDescription]!
2406
- notificationMetadataTypes: [String]!
2407
- }`;
2408
- export class DashboardMetadata extends Metadata {
2409
- blockDescriptions: BlockDescription[];
2410
- notificationMetadataTypes: string[];
2411
-
2412
- constructor(
2413
- label: string,
2414
- description: string,
2415
- metadataType: string,
2416
- classifiers: string[],
2417
- threshold: number,
2418
- blockDescriptions: BlockDescription[]
2419
- ) {
2420
- super(label, description, metadataType, classifiers, threshold);
2421
-
2422
- this.blockDescriptions = blockDescriptions;
2423
- this.notificationMetadataTypes = [];
2424
- }
2425
- }
2426
-
2427
- export const TemplateQL = `
2428
- type Template {${BusinessObjectFields}
2429
- metadata: DocumentMetadata
2430
- }`;
2431
- export class Template extends BusinessObject {
2432
- metadata?: DocumentMetadata;
2433
-
2434
- constructor(
2435
- tenantIdCreated: string,
2436
- editors: Editor[],
2437
- sharingTags: SharingTag[],
2438
- provider: string,
2439
- application: string,
2440
- uri: string,
2441
- externalId: string
2442
- ) {
2443
- super(
2444
- tenantIdCreated,
2445
- editors,
2446
- sharingTags,
2447
- BlockType.Template,
2448
- provider,
2449
- application,
2450
- uri,
2451
- externalId
2452
- );
2453
- }
2454
- }
2455
- //// FOR DOCUMENTS END
2456
-
2457
- //// FOR RECORDS START
2458
- export enum FieldType {
2459
- Text = 'input',
2460
- Select = 'select',
2461
- Checkbox = 'checkbox',
2462
- Lookup = 'lookup',
2463
- }
2464
-
2465
- export enum FieldVariation {
2466
- Multi = 'multi',
2467
- Password = 'password',
2468
- Email = 'email',
2469
- Date = 'date',
2470
- Currency = 'currency',
2471
- DateTime = 'datetime',
2472
- Phone = 'phone',
2473
- Url = 'url',
2474
- }
2475
-
2476
- export const OptionQL = `
2477
- type Option {
2478
- label: String!
2479
- value: String!
2480
- status: String
2481
- priority: String
2482
- }`;
2483
- export interface Option {
2484
- label: string;
2485
- value: string;
2486
- status?: TaskStatus;
2487
- priority?: TaskPriority;
2488
- }
2489
-
2490
- export const FieldQL = `
2491
- type Field {
2492
- label: String!
2493
- name: String!
2494
- description: String!
2495
- important: Boolean
2496
- status: Boolean
2497
- priority: Boolean
2498
- tagType: TagType
2499
- tagSubType: String
2500
- fieldType: String!
2501
- fieldVariation: String
2502
- maximumCharacters: Int
2503
- readOnly: Boolean!
2504
- options: [Option]
2505
- }`;
2506
- export interface Field {
2507
- label: string;
2508
- name: string;
2509
- description: string;
2510
- important?: boolean;
2511
- status?: boolean;
2512
- priority?: boolean;
2513
- tagType?: TagType;
2514
- tagSubType?: string;
2515
- fieldType: FieldType;
2516
- fieldVariation?: FieldVariation;
2517
- maximumCharacters?: number;
2518
- readOnly: boolean;
2519
- options?: Option[];
2520
- }
2521
-
2522
- export const FieldValueInputQL = `
2523
- input FieldValueInput {
2524
- name: String!
2525
- value: String
2526
- id: String
2527
- changed: Boolean
2528
- }`;
2529
- export const FieldValueQL = `
2530
- type FieldValue {
2531
- name: String!
2532
- value: String
2533
- id: String
2534
- changed: Boolean
2535
- }`;
2536
- export interface FieldValue {
2537
- name: string;
2538
- value?: string;
2539
- id?: string;
2540
- changed?: boolean;
2541
- }
2542
-
2543
- export const TableMetadataQL = `
2544
- type TableMetadata {${MetadataFields}
2545
- fields: [Field]!
2546
- tasky: Boolean!
2547
- }`;
2548
- export class TableMetadata extends Metadata {
2549
- fields: Field[];
2550
- tasky: boolean;
2551
-
2552
- constructor(
2553
- label: string,
2554
- description: string,
2555
- metadataType: string,
2556
- fields: Field[],
2557
- classifiers: string[],
2558
- threshold: number
2559
- ) {
2560
- super(label, description, metadataType, classifiers, threshold);
2561
-
2562
- this.tasky = false;
2563
- this.fields = fields;
2564
- }
2565
- }
2566
-
2567
- export const RecordInputQL = `
2568
- input RecordInput {
2569
- _id: String!
2570
- values: [FieldValueInput]!
2571
- }`;
2572
- export const RecordQL = `
2573
- type Record {${BusinessObjectFields}
2574
- values: [FieldValue]!
2575
- }`;
2576
- export interface RecordInput {
2577
- _id: string;
2578
- values: FieldValue[];
2579
- }
2580
- export class Record extends BusinessObject {
2581
- values: FieldValue[];
2582
- enabled: boolean;
2583
- processingStage?: ProcessingStage;
2584
- processingReason?: string;
2585
- dashboardId?: string;
2586
- blockDescriptionName?: string;
2587
-
2588
- constructor(
2589
- tenantIdCreated: string,
2590
- editors: Editor[],
2591
- sharingTags: SharingTag[],
2592
- provider: string,
2593
- application: string,
2594
- uri: string,
2595
- externalId: string,
2596
- values: FieldValue[]
2597
- ) {
2598
- super(
2599
- tenantIdCreated,
2600
- editors,
2601
- sharingTags,
2602
- BlockType.Record,
2603
- provider,
2604
- application,
2605
- uri,
2606
- externalId
2607
- );
2608
-
2609
- this.values = values;
2610
- this.enabled = true;
2611
- }
2612
- }
2613
-
2614
- export const TableFields = `${BusinessObjectFields}
2615
- records: [Record]
2616
- metadata: TableMetadata
2617
- connectionId: String`;
2618
- export const TableQL = `
2619
- type Table {${TableFields}
2620
- }`;
2621
- export class Table extends BusinessObject {
2622
- metadata: TableMetadata;
2623
- records?: Record[];
2624
- connectionId?: string; // This is a virtual property we provide when the table/records are loaded
2625
-
2626
- constructor(
2627
- tenantIdCreated: string,
2628
- editors: Editor[],
2629
- sharingTags: SharingTag[],
2630
- provider: string,
2631
- application: string,
2632
- uri: string,
2633
- externalId: string,
2634
- metadata: TableMetadata
2635
- ) {
2636
- super(
2637
- tenantIdCreated,
2638
- editors,
2639
- sharingTags,
2640
- BlockType.Table,
2641
- provider,
2642
- application,
2643
- uri,
2644
- externalId
2645
- );
2646
-
2647
- this.metadata = metadata;
2648
- }
2649
- }
2650
- //// FOR RECORDS END
2651
-
2652
- // METADATA OBJECTS END
2653
-
2654
- // API OBJECTS START
2655
- export const FindRecordInputQL = `
2656
- input FindRecordInput {
2657
- _id: String
2658
- uri: String
2659
- archived: Boolean
2660
- }`;
2661
- export interface FindRecordInput {
2662
- _id: string;
2663
- uri: string;
2664
- archived: boolean;
2665
- }
2666
-
2667
- export const FindRecordsInputQL = `
2668
- input FindRecordsInput {
2669
- _ids: [String]
2670
- archived: Boolean
2671
- }`;
2672
- export interface FindRecordsInput {
2673
- _ids?: string[];
2674
- archived: boolean;
2675
- }
2676
-
2677
- export const UpsertRecordsInputQL = `
2678
- input UpsertRecordsInput {
2679
- _id: String!
2680
- records: [RecordInput]
2681
- recommendationId: String
2682
- connectionId: String
2683
- }`;
2684
- export interface UpsertRecordsInput {
2685
- _id: string;
2686
- records: RecordInput[];
2687
- recommendationId?: string;
2688
- connectionId?: string;
2689
- }
2690
-
2691
- export const FindTenantInputQL = `
2692
- input FindTenantInput {
2693
- _id: String!
2694
- }`;
2695
- export interface FindTenantInput {
2696
- _id: string;
2697
- }
2698
-
2699
- export const FindTenantsInputQL = `
2700
- input FindTenantsInput {
2701
- domainId: String
2702
- }`;
2703
- export interface FindTenantsInput {
2704
- domainId?: string;
2705
- }
2706
-
2707
- export const FindDomainInputQL = `
2708
- input FindDomainInput {
2709
- _id: String!
2710
- }`;
2711
- export interface FindDomainInput {
2712
- _id: string;
2713
- }
2714
-
2715
- export const FindCalendarInputQL = `
2716
- input FindCalendarInput {
2717
- _id: String!
2718
- }`;
2719
- export interface FindCalendarInput {
2720
- _id: string;
2721
- }
2722
-
2723
- export const FindEventInputQL = `
2724
- input FindEventInput {
2725
- _id: String!
2726
- }`;
2727
- export interface FindEventInput {
2728
- _id: string;
2729
- }
2730
-
2731
- export const FindDocumentInputQL = `
2732
- input FindDocumentInput {
2733
- _id: String!
2734
- archived: Boolean
2735
- }`;
2736
- export interface FindDocumentInput {
2737
- _id: string;
2738
- archived?: boolean;
2739
- }
2740
-
2741
- export const UpsertDocumentInputQL = `
2742
- input UpsertDocumentInput {
2743
- _id: String
2744
- document: String!
2745
- metadataType: String
2746
- recommendationId: String
2747
- connectionId: String
2748
- }`;
2749
- export interface UpsertDocumentInput {
2750
- _id?: string;
2751
- document: string;
2752
- metadataType?: string;
2753
- recommendationId?: string;
2754
- connectionId?: string;
2755
- }
2756
-
2757
- export const FindDashboardInputQL = `
2758
- input FindDashboardInput {
2759
- _id: String!
2760
- archived: Boolean
2761
- }`;
2762
- export interface FindDashboardInput {
2763
- _id: string;
2764
- archived?: boolean;
2765
- }
2766
-
2767
- export const FindDashboardBlockInputQL = `
2768
- input FindDashboardBlockInput {
2769
- _id: String!
2770
- }`;
2771
- export interface FindDashboardBlockInput {
2772
- _id: string;
2773
- }
2774
-
2775
- export const UpsertNoteInputQL = `
2776
- input UpsertNoteInput {
2777
- _id: String
2778
- document: String
2779
- editor: EditorInput!
2780
- sharingTags: [SharingTagInput]
2781
- favorite: Boolean
2782
- dateAssociated: Float
2783
- }`;
2784
- export interface UpsertNoteInput {
2785
- _id?: string;
2786
- document?: string;
2787
- editor: Editor;
2788
- sharingTags?: SharingTag[];
2789
- favorite?: boolean;
2790
- dateAssociated?: number;
2791
- }
2792
-
2793
- export const FindBlockInputQL = `
2794
- input FindBlockInput {
2795
- _id: String!
2796
- blockType: String
2797
- archived: Boolean
2798
- }`;
2799
- export interface FindBlockInput {
2800
- _id: string;
2801
- blockType?: BlockType;
2802
- archived?: boolean;
2803
- }
2804
-
2805
- export const FindBlocksInputQL = `
2806
- input FindBlocksInput {
2807
- originReferenceBlock: ReferenceBlockInput
2808
- originReferenceTagId: String
2809
- blockType: String
2810
- archived: Boolean
2811
- }`;
2812
- export interface FindBlocksInput {
2813
- originReferenceBlock?: ReferenceBlock;
2814
- originReferenceTagId?: string;
2815
- blockType?: BlockType;
2816
- archived?: boolean;
2817
- }
2818
-
2819
- export const ArchiveBlockInputQL = `
2820
- input ArchiveBlockInput {
2821
- _id: String!
2822
- blockType: String
2823
- archive: Boolean
2824
- }`;
2825
- export interface ArchiveBlockInput {
2826
- _id: string;
2827
- blockType?: BlockType;
2828
- archive?: boolean;
2829
- }
2830
-
2831
- export const ArchiveBlockOutputQL = `
2832
- type ArchiveBlockOutput {
2833
- _id: String!
2834
- archived: Boolean!
2835
- }`;
2836
- export interface ArchiveBlockOutput {
2837
- _id: string;
2838
- archived: boolean;
2839
- }
2840
-
2841
- export const UpdateRecommendationInputQL = `
2842
- input UpdateRecommendationInput {
2843
- _id: String!
2844
- thumbs: String
2845
- comment: String
2846
- }`;
2847
- export interface UpdateRecommendationInput {
2848
- _id?: string;
2849
- thumbs: ThumbsDirection;
2850
- comment: string;
2851
- }
2852
-
2853
- export const ArchiveRecommendationInputQL = `
2854
- input ArchiveRecommendationInput {
2855
- _id: String!
2856
- archive: Boolean
2857
- }`;
2858
- export interface ArchiveRecommendationInput {
2859
- _id: string;
2860
- archive?: boolean;
2861
- }
2862
-
2863
- export const ArchiveRecommendationOutputQL = `
2864
- type ArchiveRecommendationOutput {
2865
- _id: String!
2866
- archived: Boolean!
2867
- }`;
2868
- export interface ArchiveRecommendationOutput {
2869
- _id: string;
2870
- archived: boolean;
2871
- }
2872
-
2873
- export const FindProviderInputQL = `
2874
- input FindProviderInput {
2875
- _id: String
2876
- provider: String
2877
- }`;
2878
- export interface FindProviderInput {
2879
- _id?: string;
2880
- provider?: string;
2881
- }
2882
-
2883
- export const FindSyncInputQL = `
2884
- input FindSyncInput {
2885
- _id: String!
2886
- }`;
2887
- export interface FindSyncInput {
2888
- _id: string;
2889
- }
2890
-
2891
- export const SharingDomainInputQL = `
2892
- input SharingDomainInput {
2893
- domainId: String!
2894
- sharingLevel: Int!
2895
- }`;
2896
- export const SharingTenantInputQL = `
2897
- input SharingTenantInput {
2898
- tenantId: String!
2899
- sharingLevel: Int!
2900
- }`;
2901
- export const UpsertTagInputQL = `
2902
- input UpsertTagInput {
2903
- _id: ID
2904
- alias: String
2905
- friendlyName: String
2906
- tagType: String
2907
- url: String
2908
- favicon: String
2909
- dbpedia: String
2910
- email: String
2911
- avatar: String
2912
- inviteStatus: String
2913
- originNoteId: String
2914
- favorite: Boolean
2915
- sharingDomains: [SharingDomainInput]
2916
- sharingTenants: [SharingTenantInput]
2917
- businessObjects: [BusinessObjectLinkInput]
2918
- externalIdLinks: [ExternalIdLinkInput]
2919
- hasAutoShareNotesOn: Boolean
2920
- hasAutoShareTasksOn: Boolean
2921
- sharingLevel: Int
2922
- }`;
2923
- export interface UpsertTagInput extends Tag {}
2924
-
2925
- export const FindTagInputQL = `
2926
- input FindTagInput {
2927
- _id: String!
2928
- archived: Boolean
2929
- connectionId: String
2930
- tagType: String
2931
- tagSubType: String
2932
- }`;
2933
- export interface FindTagInput {
2934
- _id: string;
2935
- archived?: boolean;
2936
- connectionId?: string;
2937
- tagType?: TagType;
2938
- tagSubType?: string;
2939
- }
2940
-
2941
- export const FindTagsInputQL = `
2942
- input FindTagsInput {
2943
- alias: String
2944
- friendlyName: String
2945
- archived: Boolean
2946
- favorite: Boolean
2947
- }`;
2948
- export interface FindTagsInput {
2949
- alias?: string;
2950
- friendlyName?: string;
2951
- archived?: boolean;
2952
- favorite?: boolean;
2953
- }
2954
-
2955
- export const ArchiveTagInputQL = `
2956
- input ArchiveTagInput {
2957
- _id: String!
2958
- archive: Boolean
2959
- }`;
2960
- export interface ArchiveTagInput {
2961
- _id: string;
2962
- archive?: boolean;
2963
- }
2964
-
2965
- export const ArchiveTagOutputQL = `
2966
- type ArchiveTagOutput {
2967
- _id: String!
2968
- archived: Boolean!
2969
- }`;
2970
- export interface ArchiveTagOutput {
2971
- _id: string;
2972
- archived: boolean;
2973
- }
2974
-
2975
- export const MergeTagInputQL = `
2976
- input MergeTagInput {
2977
- tagIdToRemain: String!
2978
- tagIdToMerge: String!
2979
- }`;
2980
- export interface MergeTagInput {
2981
- tagIdToRemain: string;
2982
- tagIdToMerge: string;
2983
- }
2984
-
2985
- export const SetSharingTagInputQL = `
2986
- input SetSharingTagInput {
2987
- referenceBlock: ReferenceBlockInput!
2988
- sharingTag: InviteSharingTagInput!
2989
- }`;
2990
- export interface SetSharingTagInput {
2991
- referenceBlock: ReferenceBlock;
2992
- sharingTag: SharingTag;
2993
- }
2994
-
2995
- export const DeleteSharingTagInputQL = `
2996
- input DeleteSharingTagInput {
2997
- referenceBlock: ReferenceBlockInput!
2998
- tagId: String!
2999
- }`;
3000
- export interface DeleteSharingTagInput {
3001
- referenceBlock: ReferenceBlock;
3002
- tagId: string;
3003
- }
3004
-
3005
- export const UpdateTaskInputQL = `
3006
- input UpsertTaskInput {${BlockFieldsForUpsert}
3007
- editor: EditorInput!
3008
- }`;
3009
- export interface UpsertTaskInput extends Task {
3010
- editor: Editor;
3011
- }
3012
-
3013
- export const UpsertFolderInputQL = `
3014
- input UpsertFolderInput {
3015
- _id: String
3016
- sharingTags: [SharingTagInput]
3017
- icon: String
3018
- label: String
3019
- description: String
3020
- searchIds: [String]
3021
- }`;
3022
- export interface UpsertFolderInput {
3023
- _id?: string;
3024
- sharingTags?: SharingTag[];
3025
- icon?: string;
3026
- label?: string;
3027
- description?: string;
3028
- searchIds?: string[];
3029
- _tagType?: TagType;
3030
- }
3031
-
3032
- export const FindFolderInputQL = `
3033
- input FindFolderInput {
3034
- _id: String!
3035
- archived: Boolean
3036
- }`;
3037
- export interface FindFolderInput {
3038
- _id: string;
3039
- archived?: boolean;
3040
- }
3041
-
3042
- export const FindFoldersInputQL = `
3043
- input FindFoldersInput {
3044
- archived: Boolean
3045
- }`;
3046
- export interface FindFoldersInput {
3047
- archived?: boolean;
3048
- }
3049
-
3050
- export const ArchiveFolderInputQL = `
3051
- input ArchiveFolderInput {
3052
- _id: String!
3053
- archive: Boolean
3054
- }`;
3055
- export interface ArchiveFolderInput {
3056
- _id: string;
3057
- archive?: boolean;
3058
- }
3059
-
3060
- export const ArchiveFolderOutputQL = `
3061
- type ArchiveFolderOutput {
3062
- _id: String!
3063
- archived: Boolean!
3064
- }`;
3065
- export interface ArchiveFolderOutput {
3066
- _id: string;
3067
- archived: boolean;
3068
- }
3069
-
3070
- export const UpsertSearchInputQL = `
3071
- input UpsertSearchInput {
3072
- _id: String
3073
- blockType: String
3074
- label: String
3075
- search: String
3076
- _ids: [String]
3077
- tagIds: [String]
3078
- emails: [String]
3079
- businessObjects: [BusinessObjectLinkInput]
3080
- sharingTags: [SharingTagInput]
3081
- orderByDateUpdated: String
3082
- orderByDateCreated: String
3083
- orderByDateDue: String
3084
- orderByAlias: String
3085
- dateDueFrom: Float
3086
- dateDueTo: Float
3087
- status: String
3088
- editorId: String
3089
- editorGroupId: String
3090
- parentId: String
3091
- favorite: Boolean
3092
- snoozed: Boolean
3093
- size: Int
3094
- }`;
3095
- export interface UpsertSearchInput {
3096
- _id?: string;
3097
- blockType?: string;
3098
- label?: string;
3099
- search?: string;
3100
- _ids?: string[];
3101
- tagIds?: string[];
3102
- emails?: string[];
3103
- businessObjects?: BusinessObjectLink[];
3104
- sharingTags?: SharingTag[];
3105
- orderByDateUpdated?: OrderByDirection;
3106
- orderByDateCreated?: OrderByDirection;
3107
- orderByDateDue?: OrderByDirection;
3108
- orderByAlias?: OrderByDirection;
3109
- dateDueFrom?: number;
3110
- dateDueTo?: number;
3111
- status?: TaskStatus;
3112
- editorId?: string;
3113
- editorGroupId?: string;
3114
- parentId?: string;
3115
- favorite?: boolean;
3116
- snoozed?: boolean;
3117
- size?: number;
3118
- }
3119
-
3120
- export const FindSearchInputQL = `
3121
- input FindSearchInput {
3122
- _id: String!
3123
- archived: Boolean
3124
- }`;
3125
- export interface FindSearchInput {
3126
- _id: string;
3127
- archived?: boolean;
3128
- }
3129
-
3130
- export const FindSearchesInputQL = `
3131
- input FindSearchesInput {
3132
- archived: Boolean
3133
- }`;
3134
- export interface FindSearchesInput {
3135
- archived?: boolean;
3136
- }
3137
-
3138
- export const ArchiveSearchInputQL = `
3139
- input ArchiveSearchInput {
3140
- _id: String!
3141
- archive: Boolean
3142
- }`;
3143
- export interface ArchiveSearchInput {
3144
- _id: string;
3145
- archive?: boolean;
3146
- }
3147
-
3148
- export const ArchiveSearchOutputQL = `
3149
- type ArchiveSearchOutput {
3150
- _id: String!
3151
- archived: Boolean!
3152
- }`;
3153
- export interface ArchiveSearchOutput {
3154
- _id: string;
3155
- archived: boolean;
3156
- }
3157
-
3158
- export const SearchTagsInputQL = `
3159
- input SearchTagsInput {
3160
- tagType: String
3161
- tagSubType: String
3162
- tagTypes: [String]
3163
- parentId: String
3164
- externalId: String
3165
- connectionId: String
3166
- _ids: [String]
3167
- tenantIdVerifieds: [String]
3168
- search: String
3169
- email: String
3170
- inviteStatus: String
3171
- archived: Boolean
3172
- favorite: Boolean
3173
- hasTasks: Boolean
3174
- orderByAlias: String
3175
- orderByTaskCount: String
3176
- orderByFriendlyName: String
3177
- orderByDateUpdated: String
3178
- orderByDateCreated: String
3179
- page: Int
3180
- size: Int
3181
- generateDashboard: Boolean
3182
- }`;
3183
- export interface SearchTagsInput {
3184
- tagType?: TagType;
3185
- tagSubType?: string;
3186
- tagTypes?: TagType[];
3187
- parentId?: string;
3188
- externalId?: string;
3189
- connectionId?: string;
3190
- _ids?: string[];
3191
- tenantIdVerifieds?: string[];
3192
- search?: string;
3193
- email?: string;
3194
- inviteStatus?: InviteStatus;
3195
- archived?: boolean;
3196
- favorite?: boolean;
3197
- hasTasks?: boolean;
3198
- orderByAlias?: OrderByDirection;
3199
- orderByTaskCount?: OrderByDirection;
3200
- orderByFriendlyName?: OrderByDirection;
3201
- orderByDateUpdated?: OrderByDirection;
3202
- orderByDateCreated?: OrderByDirection;
3203
- page?: number;
3204
- size?: number;
3205
- generateDashboard?: boolean;
3206
- }
3207
-
3208
- export const SearchInputQL = `
3209
- input SearchInput {
3210
- blockType: String
3211
- recommendationType: String
3212
- label: String
3213
- search: String
3214
- _ids: [String]
3215
- tagIds: [String]
3216
- emails: [String]
3217
- businessObjects: [BusinessObjectLinkInput]
3218
- orderByDateUpdated: String
3219
- orderByDateCreated: String
3220
- orderByDateDue: String
3221
- orderByAlias: String
3222
- dateDueFrom: Float
3223
- dateDueTo: Float
3224
- status: String
3225
- originReferenceBlock: ReferenceBlockInput
3226
- originReferenceTagId: String
3227
- editorId: String
3228
- editorGroupId: String
3229
- parentId: String
3230
- favorite: Boolean
3231
- snoozed: Boolean
3232
- page: Int
3233
- size: Int
3234
- }`;
3235
- export interface SearchInput {
3236
- blockType?: BlockType;
3237
- recommendationType?: RecommendationType;
3238
- label?: string;
3239
- search?: string;
3240
- _ids?: string[];
3241
- tagIds?: string[];
3242
- emails?: string[];
3243
- businessObjects?: BusinessObjectLink[];
3244
- orderByDateUpdated?: OrderByDirection;
3245
- orderByDateCreated?: OrderByDirection;
3246
- orderByDateDue?: OrderByDirection;
3247
- orderByAlias?: OrderByDirection;
3248
- dateDueFrom?: number;
3249
- dateDueTo?: number;
3250
- status?: TaskStatus;
3251
- originReferenceBlock?: ReferenceBlock;
3252
- originReferenceTagId?: string;
3253
- editorId?: string;
3254
- editorGroupId?: string;
3255
- parentId?: string;
3256
- favorite?: boolean;
3257
- snoozed?: boolean;
3258
- page?: number;
3259
- size?: number;
3260
- }
3261
-
3262
- export const BlockTypeQL = `
3263
- enum BlockType {
3264
- ${BlockType.Calendar.toUpperCase()}
3265
- ${BlockType.Transcription.toUpperCase()}
3266
- ${BlockType.Dashboard.toUpperCase()}
3267
- ${BlockType.Document.toUpperCase()}
3268
- ${BlockType.Event.toUpperCase()}
3269
- ${BlockType.Folder.toUpperCase()}
3270
- ${BlockType.Note.toUpperCase()}
3271
- ${BlockType.Record.toUpperCase()}
3272
- ${BlockType.Search.toUpperCase()}
3273
- ${BlockType.Section.toUpperCase()}
3274
- ${BlockType.Table.toUpperCase()}
3275
- ${BlockType.Task.toUpperCase()}
3276
- ${BlockType.Template.toUpperCase()}
3277
- ${BlockType.Message.toUpperCase()}
3278
- ${BlockType.Todo.toUpperCase()}
3279
- ${BlockType.Website.toUpperCase()}
3280
- }`;
3281
-
3282
- export const RecommendationTypeQL = `
3283
- enum RecommendationType {
3284
- ${RecommendationType.Connect.toUpperCase()}
3285
- ${RecommendationType.Share.toUpperCase()}
3286
- ${RecommendationType.Upsert.toUpperCase()}
3287
- ${RecommendationType.Notification.toUpperCase()}
3288
- ${RecommendationType.Ingestion.toUpperCase()}
3289
- }`;
3290
-
3291
- export const TaskStatusQL = `
3292
- enum TaskStatus {
3293
- ${TaskStatus.Completed.toUpperCase()}
3294
- ${TaskStatus.InProgress.toUpperCase()}
3295
- ${TaskStatus.NotStarted.toUpperCase()}
3296
- }`;
3297
-
3298
- export const OrderDirectionQL = `
3299
- enum OrderDirection {
3300
- ASC
3301
- DESC
3302
- }`;
3303
- export enum OrderDirection {
3304
- Ascending = 'asc',
3305
- Descending = 'desc',
3306
- }
3307
-
3308
- export const FindTagsVisibilityInputQL = `
3309
- input FindTagsVisibilityInput {
3310
- tagIds: [String]
3311
- sharingTags: [SharingTagInput]
3312
- }`;
3313
- export interface FindTagsVisibilityInput {
3314
- tagIds?: string[];
3315
- sharingTags?: SharingTag[];
3316
- }
3317
-
3318
- export const ReactionQL = `
3319
- type Reaction {
3320
- shortcodes: String!
3321
- tagIds: [String]
3322
- }`;
3323
- export interface Reaction {
3324
- shortcodes: string;
3325
- tagIds: string[];
3326
- }
3327
-
3328
- export const FindReactionsInputQL = `
3329
- input FindReactionsInput {
3330
- _id: String!
3331
- blockType: BlockType!
3332
- }`;
3333
- export interface FindReactionsInput {
3334
- _id: string;
3335
- blockType: BlockType;
3336
- }
3337
-
3338
- export const AddReactionInputQL = `
3339
- input AddReactionInput {
3340
- _id: String!
3341
- blockType: BlockType!
3342
- shortcodes: String!
3343
- }`;
3344
- export interface AddReactionInput {
3345
- _id: string;
3346
- blockType: BlockType;
3347
- shortcodes: string;
3348
- }
3349
-
3350
- export const RemoveReactionInputQL = `
3351
- input RemoveReactionInput {
3352
- _id: String!
3353
- blockType: BlockType!
3354
- shortcodes: String!
3355
- }`;
3356
- export interface RemoveReactionInput {
3357
- _id: string;
3358
- blockType: BlockType;
3359
- shortcodes: string;
3360
- }
3361
-
3362
- export const ParentItemFields = `
3363
- _id: String
3364
- blockType: BlockType
3365
- `;
3366
- export const ParentItemInputQL = `
3367
- input ParentItemInput {${ParentItemFields}
3368
- children: [ChildItemInput]
3369
- }`;
3370
- export const ParentItemQL = `
3371
- type ParentItem {${ParentItemFields}
3372
- children: [ChildItem]
3373
- }`;
3374
- export interface ParentItem {
3375
- _id: string;
3376
- blockType: BlockType;
3377
- children: ChildItem[];
3378
- _order?: number;
3379
- }
3380
-
3381
- export const ChildItemFields = `
3382
- _id: String
3383
- blockType: BlockType
3384
- `;
3385
- export const ChildItemInputQL = `
3386
- input ChildItemInput {${ChildItemFields}
3387
- }`;
3388
- export const ChildItemQL = `
3389
- type ChildItem {${ChildItemFields}
3390
- }`;
3391
- export interface ChildItem {
3392
- _id: string;
3393
- blockType: BlockType;
3394
- _order?: number;
3395
- }
3396
-
3397
- export const NumberFilterFieldsQL = `
3398
- gt: Float
3399
- gte: Float
3400
- eq: Float
3401
- lte: Float
3402
- lt: Float`;
3403
- export const NumberFilterQL = `
3404
- type NumberFilter {${NumberFilterFieldsQL}}`;
3405
- export const NumberFilterInputQL = `
3406
- input NumberFilterInput {${NumberFilterFieldsQL}}`;
3407
- export interface NumberFilterInput {
3408
- gt?: number;
3409
- gte?: number;
3410
- eq?: number;
3411
- lte?: number;
3412
- lt?: number;
3413
- }
3414
-
3415
- export const StringFilterFieldsQL = `
3416
- eq: String
3417
- contains: String
3418
- startsWith: String
3419
- endsWith: String`;
3420
- export const StringFilterQL = `
3421
- type StringFilter {${StringFilterFieldsQL}
3422
- }`;
3423
- export const StringFilterInputQL = `
3424
- input StringFilterInput {${StringFilterFieldsQL}
3425
- }`;
3426
- export interface StringFilterInput {
3427
- eq?: string;
3428
- contains?: string;
3429
- startsWith?: string;
3430
- endsWith?: string;
3431
- }
3432
-
3433
- export const BusinessObjectFilterFieldsQL = `
3434
- id: String
3435
- url: String
3436
- blockType: BlockType
3437
- provider: String
3438
- metadataType: String`;
3439
- export const BusinessObjectFilterQL = `
3440
- type BusinessObjectFilter {${BusinessObjectFilterFieldsQL}
3441
- }`;
3442
- export const BusinessObjectFilterInputQL = `
3443
- input BusinessObjectFilterInput {${BusinessObjectFilterFieldsQL}
3444
- }`;
3445
- export interface BusinessObjectFilterInput {
3446
- id?: string;
3447
- url?: string;
3448
- blockType?: string;
3449
- provider?: string;
3450
- metadataType?: string;
3451
- }
3452
-
3453
- export const SortOptionFieldsQL = `
3454
- field: String
3455
- order: OrderDirection`;
3456
- export const SortOptionQL = `
3457
- type SortOption {${SortOptionFieldsQL}
3458
- }`;
3459
- export const SortOptionInputQL = `
3460
- input SortOptionInput {${SortOptionFieldsQL}
3461
- }`;
3462
- export interface SortOptionInput {
3463
- field: string;
3464
- order: OrderDirection;
3465
- }
3466
-
3467
- export const GraphSearchInputFields = `
3468
- search: String
3469
- _ids: [String]
3470
- tenantIdCreateds: [String]
3471
- tagIds: [String]
3472
- recommendationTypes: [RecommendationType]
3473
- blockTypes: [BlockType]
3474
- statuses: [TaskStatus]
3475
- businessObjects: [BusinessObjectFilterInput]
3476
- originReferenceBlock: ReferenceBlockInput
3477
- originReferenceTagId: String
3478
- editorId: String
3479
- editorGroupId: String
3480
- parentId: String
3481
- favorite: Boolean
3482
- snoozed: Boolean
3483
- dateMatch: NumberFilterInput
3484
- dateDue: NumberFilterInput
3485
- dateCreated: NumberFilterInput
3486
- dateUpdated: NumberFilterInput
3487
- dateAssociated: NumberFilterInput
3488
- emails: [StringFilterInput]
3489
- sort: [SortOptionInput]
3490
- page: Int
3491
- size: Int
3492
- `;
3493
- export const GraphSearchFields = `
3494
- search: String
3495
- _ids: [String]
3496
- tenantIdCreateds: [String]
3497
- tagIds: [String]
3498
- recommendationTypes: [RecommendationType]
3499
- blockTypes: [BlockType]
3500
- statuses: [TaskStatus]
3501
- businessObjects: [BusinessObjectFilter]
3502
- originReferenceBlock: ReferenceBlock
3503
- originReferenceTagId: String
3504
- editorId: String
3505
- editorGroupId: String
3506
- parentId: String
3507
- favorite: Boolean
3508
- snoozed: Boolean
3509
- dateMatch: NumberFilter
3510
- dateDue: NumberFilter
3511
- dateCreated: NumberFilter
3512
- dateUpdated: NumberFilter
3513
- dateAssociated: NumberFilter
3514
- emails: [StringFilter]
3515
- sort: [SortOption]
3516
- page: Int
3517
- size: Int
3518
- `;
3519
- export const GraphSearchQL = `
3520
- type GraphSearch {${GraphSearchFields}
3521
- }`;
3522
- export const GraphSearchInputQL = `
3523
- input GraphSearchInput {${GraphSearchInputFields}
3524
- }`;
3525
- export interface GraphSearchInput {
3526
- // Used for context based searching
3527
- search?: string;
3528
- // Explicit value filtering
3529
- _ids?: string[];
3530
- tenantIdCreateds?: string[];
3531
- tagIds?: string[];
3532
- blockTypes?: BlockType[];
3533
- recommendationTypes?: RecommendationType[];
3534
- statuses?: TaskStatus[];
3535
- businessObjects?: BusinessObjectFilterInput[];
3536
- originReferenceBlock?: ReferenceBlock;
3537
- originReferenceTagId?: string;
3538
- editorId?: string;
3539
- editorGroupId?: string;
3540
- parentId?: string;
3541
- favorite?: boolean;
3542
- snoozed?: boolean;
3543
- // Fuzzy filters
3544
- dateMatch?: NumberFilterInput;
3545
- dateDue?: NumberFilterInput;
3546
- dateCreated?: NumberFilterInput;
3547
- dateUpdated?: NumberFilterInput;
3548
- dateAssociated?: NumberFilterInput;
3549
- emails?: StringFilterInput[];
3550
- // Sorting
3551
- sort?: SortOptionInput[];
3552
- // Page and sizing
3553
- page?: number;
3554
- size?: number;
3555
- }
3556
-
3557
- export const GraphSearchEventsInputQL = `
3558
- input GraphSearchEventsInput {${GraphSearchInputFields}
3559
- calendarId: String
3560
- dateStart: NumberFilterInput
3561
- dateEnd: NumberFilterInput
3562
- subject: StringFilterInput
3563
- }`;
3564
- export interface GraphSearchEventsInput extends GraphSearchInput {
3565
- calendarId?: string;
3566
- dateStart?: NumberFilterInput;
3567
- dateEnd?: NumberFilterInput;
3568
- subject?: StringFilterInput;
3569
- }
3570
-
3571
- export const UpdateTagSharingInputQL = `
3572
- input UpdateTagSharingInput {
3573
- _id: String!
3574
- emailDomain: Boolean
3575
- sharingTenants: [SharingTenantInput]
3576
- sharingDomains: [SharingDomainInput]
3577
- }`;
3578
- export interface UpdateTagSharingInput {
3579
- _id: string;
3580
- emailDomain?: boolean;
3581
- sharingTenants?: SharingTenant[];
3582
- sharingDomains?: SharingDomain[];
3583
- }
3584
-
3585
- // THE GRAPH QL DEFINITIONS
3586
- export const GraphQLTypes = `
3587
- ${HighlightQL}
3588
- ${EditorInputQL}
3589
- ${EditorQL}
3590
- ${InviteSharingTagInputQL}
3591
- ${SharingTagInputQL}
3592
- ${SharingTagQL}
3593
- ${SharingDomainQL}
3594
- ${TenantSettingQL}
3595
- ${SharingTenantQL}
3596
- ${BusinessObjectLinkInputQL}
3597
- ${BusinessObjectLinkQL}
3598
- ${ExternalIdLinkInputQL}
3599
- ${ExternalIdLinkQL}
3600
- ${TaskStepInputQL}
3601
- ${FindTagsVisibilityInputQL}
3602
- ${ReactionQL}
3603
- ${FindReactionsInputQL}
3604
- ${AddReactionInputQL}
3605
- ${RemoveReactionInputQL}
3606
- ${TaskStepQL}
3607
- ${EntityReferenceQL}
3608
- ${ArgumentEntryQL}
3609
- ${RelationEntryQL}
3610
- ${EntityEntryQL}
3611
- ${ProviderInfoQL}
3612
- ${ProviderRequestQL}
3613
- ${ProviderResponseQL}
3614
- ${StandardObjectsQL}
3615
- ${CredentialQL}
3616
- ${ChangesInputQL}
3617
- ${ChangesQL}
3618
- ${FindExternalTagReferencesInputQL}
3619
- ${FindExternalTagReferenceInputQL}
3620
- ${PersonReferenceInputQL}
3621
- ${PersonReferenceQL}
3622
- ${MetadataQL}
3623
- ${FolderQL}
3624
- ${SearchQL}
3625
- ${SyncQL}
3626
- ${DashboardTagSubscriptionQL}
3627
- ${ProviderApplicationQL}
3628
- ${ExternalIdQL}
3629
- ${ProviderQL}
3630
- ${TagTypeQL}
3631
- ${GraphTagQL}
3632
- ${GraphTagsInputQL}
3633
- ${TagQL}
3634
- ${TagRecommendationQL}
3635
- ${TenantLightInputQL}
3636
- ${TenantLightQL}
3637
- ${ConnectRecommendationQL}
3638
- ${ReactionRecommendationQL}
3639
- ${ChangeRecommendationQL}
3640
- ${UpsertRecommendationQL}
3641
- ${ShareRecommendationQL}
3642
- ${IngestionRecommendationQL}
3643
- ${MessageRecommendationQL}
3644
- ${NotificationRecommendationQL}
3645
- ${RecommendationQL}
3646
- ${ConnectedProviderQL}
3647
- ${ReferenceBlockInputQL}
3648
- ${ReferenceBlockQL}
3649
- ${DomainQL}
3650
- ${TenantQL}
3651
- ${BlockQL}
3652
- ${BusinessObjectQL}
3653
- ${NoteQL}
3654
- ${TaskQL}
3655
- ${TranscriptionQL}
3656
- ${IngestTranscriptionInputQL}
3657
- ${ConferenceEntrypointQL}
3658
- ${ConferenceQL}
3659
- ${AttachmentInputQL}
3660
- ${AttachmentQL}
3661
- ${PersonAcceptanceQL}
3662
- ${EventQL}
3663
- ${CalendarQL}
3664
- ${IngestEmailInputQL}
3665
- ${EmailQL}
3666
- ${UpsertMessageInputQL}
3667
- ${MessageQL}
3668
- ${DocumentQL}
3669
- ${BlockDataQL}
3670
- ${DashboardQL}
3671
- ${DashboardMetadataQL}
3672
- ${WebsiteQL}
3673
- ${BlockDescriptionQL}
3674
- ${DocumentMetadataQL}
3675
- ${TemplateQL}
3676
- ${OptionQL}
3677
- ${FieldQL}
3678
- ${FieldValueQL}
3679
- ${FieldValueInputQL}
3680
- ${TableMetadataQL}
3681
- ${RecordQL}
3682
- ${RecordInputQL}
3683
- ${TableQL}
3684
- ${FindRecordInputQL}
3685
- ${FindRecordsInputQL}
3686
- ${UpsertRecordsInputQL}
3687
- ${FindTenantInputQL}
3688
- ${FindTenantsInputQL}
3689
- ${FindDomainInputQL}
3690
- ${FindCalendarInputQL}
3691
- ${FindEventInputQL}
3692
- ${UpsertNoteInputQL}
3693
- ${UpsertDocumentInputQL}
3694
- ${FindDocumentInputQL}
3695
- ${FindDashboardInputQL}
3696
- ${FindDashboardBlockInputQL}
3697
- ${FindBlockInputQL}
3698
- ${FindBlocksInputQL}
3699
- ${ArchiveBlockInputQL}
3700
- ${ArchiveBlockOutputQL}
3701
- ${UpdateRecommendationInputQL}
3702
- ${ArchiveRecommendationInputQL}
3703
- ${ArchiveRecommendationOutputQL}
3704
- ${FindProviderInputQL}
3705
- ${FindSyncInputQL}
3706
- ${SharingDomainInputQL}
3707
- ${SharingTenantInputQL}
3708
- ${UpsertTagInputQL}
3709
- ${FindTagInputQL}
3710
- ${FindTagsInputQL}
3711
- ${ArchiveTagInputQL}
3712
- ${ArchiveTagOutputQL}
3713
- ${MergeTagInputQL}
3714
- ${SetSharingTagInputQL}
3715
- ${DeleteSharingTagInputQL}
3716
- ${UpdateTaskInputQL}
3717
- ${UpsertFolderInputQL}
3718
- ${FindFolderInputQL}
3719
- ${FindFoldersInputQL}
3720
- ${ArchiveFolderInputQL}
3721
- ${ArchiveFolderOutputQL}
3722
- ${UpsertSearchInputQL}
3723
- ${FindSearchInputQL}
3724
- ${FindSearchesInputQL}
3725
- ${ArchiveSearchInputQL}
3726
- ${ArchiveSearchOutputQL}
3727
- ${SearchTagsInputQL}
3728
- ${SearchInputQL}
3729
- ${UpdateTagSharingInputQL}
3730
- ${BlockTypeQL}
3731
- ${RecommendationTypeQL}
3732
- ${TaskStatusQL}
3733
- ${OrderDirectionQL}
3734
- ${ParentItemQL}
3735
- ${ParentItemInputQL}
3736
- ${ChildItemQL}
3737
- ${ChildItemInputQL}
3738
- ${NumberFilterQL}
3739
- ${NumberFilterInputQL}
3740
- ${StringFilterQL}
3741
- ${StringFilterInputQL}
3742
- ${BusinessObjectFilterQL}
3743
- ${BusinessObjectFilterInputQL}
3744
- ${SortOptionQL}
3745
- ${SortOptionInputQL}
3746
- ${GraphSearchQL}
3747
- ${GraphSearchInputQL}
3748
- ${GraphSearchEventsInputQL}`;