@bigfootai/bigfoot-types 5.4.28 → 5.4.30

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} +871 -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 -3755
  86. package/tsconfig.json +0 -9
package/model.ts DELETED
@@ -1,3755 +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
- rangeText: String
1302
- }`;
1303
- export interface UpsertRecommendation {
1304
- table?: Table;
1305
- document?: Document;
1306
- blockType: BlockType;
1307
- upsertType: UpsertType;
1308
- metadata: Metadata;
1309
- connectionId: string;
1310
- rangeText?: string;
1311
- }
1312
-
1313
- export const ShareRecommendationQL = `
1314
- type ShareRecommendation {
1315
- shared: Boolean!
1316
- tenant: TenantLight!
1317
- }`;
1318
- export interface ShareRecommendation {
1319
- shared: boolean;
1320
- tenant: TenantLight;
1321
- }
1322
-
1323
- export const IngestionRecommendationQL = `
1324
- type IngestionRecommendation {
1325
- processingStage: String!
1326
- processingAttempts: Int!
1327
- processingReason: String
1328
- tenant: TenantLight!
1329
- }`;
1330
- export interface IngestionRecommendation {
1331
- processingStage: ProcessingStage;
1332
- processingAttempts: number;
1333
- processingReason?: string;
1334
- tenant: TenantLight;
1335
- }
1336
-
1337
- export const MessageRecommendationQL = `
1338
- type MessageRecommendation {
1339
- tenant: TenantLight!
1340
- }`;
1341
- export interface MessageRecommendation {
1342
- tenant: TenantLight;
1343
- }
1344
-
1345
- export const NotificationRecommendationQL = `
1346
- type NotificationRecommendation {
1347
- dashboard: Dashboard!
1348
- }`;
1349
- export interface NotificationRecommendation {
1350
- dashboard: Dashboard;
1351
- }
1352
-
1353
- export interface BaseTask {
1354
- dateDue?: number;
1355
- dateRemindMe?: number;
1356
- archived: boolean;
1357
- favorite: boolean;
1358
- snoozed: boolean;
1359
- status?: TaskStatus;
1360
- }
1361
-
1362
- export const RecommendationQL = `
1363
- type Recommendation {${SharedPrimitiveFields}
1364
- referenceBlock: ReferenceBlock
1365
- recommendationType: String!
1366
- connectRecommendation: ConnectRecommendation
1367
- upsertRecommendation: UpsertRecommendation
1368
- shareRecommendation: ShareRecommendation
1369
- messageRecommendation: MessageRecommendation
1370
- notificationRecommendation: NotificationRecommendation
1371
- reactionRecommendation: ReactionRecommendation
1372
- changeRecommendation: ChangeRecommendation
1373
- ingestionRecommendation: IngestionRecommendation
1374
- parentId: String
1375
- dateDue: Float
1376
- dateRemindMe: Float
1377
- archived: Boolean!
1378
- favorite: Boolean!
1379
- snoozed: Boolean!
1380
- thumbs: String
1381
- comment: String
1382
- status: String
1383
- }`;
1384
- export class Recommendation extends SharedPrimitive implements BaseTask {
1385
- referenceBlock: ReferenceBlock; // This is the block that caused the recommendation to happen
1386
- recommendationType: RecommendationType;
1387
- connectRecommendation?: ConnectRecommendation; // For provider recommendations, we use this field
1388
- upsertRecommendation?: UpsertRecommendation; // For data upsert recommendations, we use this field
1389
- shareRecommendation?: ShareRecommendation; // For instances when a block is shared with a tenant
1390
- messageRecommendation?: MessageRecommendation; // For instances when a message is shared
1391
- notificationRecommendation?: NotificationRecommendation; // For instances where the app wants to tell us something
1392
- reactionRecommendation?: ReactionRecommendation; // For recommendations that are related to emoji
1393
- changeRecommendation?: ChangeRecommendation; // Something changed for a block that is noteworthy
1394
- ingestionRecommendation?: IngestionRecommendation; // Used to let the user know something has been ingested
1395
- parentId?: string; // Any parent recommendation that generated this recommendation
1396
- dateDue?: number;
1397
- dateRemindMe?: number;
1398
- archived: boolean;
1399
- favorite: boolean;
1400
- snoozed: boolean;
1401
- thumbs?: ThumbsDirection; // Added so we can get some basic feedback on recommendations
1402
- comment?: String; // Added likely just for the private beta, but perhaps longer!
1403
- status?: TaskStatus;
1404
-
1405
- constructor(
1406
- sharingTags: SharingTag[],
1407
- referenceBlock: ReferenceBlock,
1408
- tenantIdCreated: string,
1409
- recommendationType: RecommendationType
1410
- ) {
1411
- // For the sharing tags, we do it a little differently depending on the global nature of the recommendation. If theirs
1412
- // a recommendation for each tenant, the sharing tags should just include the tenant. Otherwise the sharing tags should
1413
- // copy that of the block at time of recommendation
1414
- super(sharingTags);
1415
-
1416
- // These are applicable for all recommendations
1417
- this.referenceBlock = referenceBlock;
1418
- this.tenantIdCreated = tenantIdCreated;
1419
- this.recommendationType = recommendationType;
1420
-
1421
- this.archived = false;
1422
- this.favorite = false;
1423
- this.snoozed = false;
1424
- this.status = TaskStatus.NotStarted;
1425
- }
1426
- }
1427
-
1428
- export interface AccessTokenPair {
1429
- accessToken?: string;
1430
- clientId?: string;
1431
- apiKey?: string;
1432
- email?: string;
1433
- impersonation?: boolean;
1434
- }
1435
-
1436
- export const TenantQL = `
1437
- type Tenant {${PrimitiveFields}
1438
- domainMemberships: [String]!
1439
- email: String!
1440
- tagId: String!
1441
- picture: String
1442
- familyName: String
1443
- givenName: String
1444
- allowed: Boolean!
1445
- }`;
1446
- export class Tenant extends Primitive {
1447
- domainMemberships: string[]; // The list of all domains this tenant belongs
1448
- email: string;
1449
- emailVerified: boolean;
1450
- domainIdEmail: string; // The domain for which the tenant is a member because of their email
1451
- tagId: string;
1452
- picture?: string;
1453
- familyName?: string;
1454
- givenName?: string;
1455
- connectedProviders?: ConnectedProvider[];
1456
- accessToken?: string;
1457
- allowed: boolean; // Used to indicate if this user is allowed to access the application TODO take this out after private beta
1458
- access?: AccessType; // Optional flag to indicate the access level to a note - used currently for the Yjs integration
1459
- accessTokens?: AccessTokenPair[];
1460
- _managedByTenant?: boolean;
1461
-
1462
- constructor(
1463
- domainMemberships: string[],
1464
- email: string,
1465
- emailVerified: boolean,
1466
- domainIdEmail: string,
1467
- tagId: string
1468
- ) {
1469
- super();
1470
-
1471
- this.domainMemberships = domainMemberships;
1472
- this.email = email;
1473
- this.emailVerified = emailVerified;
1474
- this.domainIdEmail = domainIdEmail;
1475
- this.tagId = tagId;
1476
- this.allowed = false;
1477
- }
1478
- }
1479
-
1480
- export const DomainQL = `
1481
- type Domain {${PrimitiveFields}
1482
- domain: String!
1483
- member: Boolean!
1484
- }`;
1485
- export class Domain extends Primitive {
1486
- domain: string;
1487
- member?: boolean;
1488
- isPublic: boolean;
1489
-
1490
- constructor(domain: string, isPublic: boolean) {
1491
- super();
1492
-
1493
- this.domain = domain;
1494
- this.isPublic = isPublic;
1495
- }
1496
- }
1497
-
1498
- export class Organization extends Tag {
1499
- constructor(tenantIdCreated: string, alias: string) {
1500
- super(tenantIdCreated, alias, TagType.Organization);
1501
- }
1502
- }
1503
-
1504
- export class Person extends Tag {
1505
- constructor(tenantIdCreated: string, alias: string) {
1506
- super(tenantIdCreated, alias, TagType.Person);
1507
- }
1508
- }
1509
-
1510
- export const BlockFields = `${SharedPrimitiveFields}
1511
- editors: [Editor]!
1512
- blockType: String!
1513
- document: String
1514
- dates: [EntityEntry]
1515
- locations: [EntityEntry]
1516
- emails: [String]
1517
- businessObjects: [BusinessObjectLink]
1518
- archived: Boolean!
1519
- favorite: Boolean!
1520
- snoozed: Boolean!
1521
- dateDue: Float
1522
- dateRemindMe: Float
1523
- dateAssociated: Float
1524
- status: String
1525
- parentId: String
1526
- originReferenceBlock: ReferenceBlock
1527
- reactions: [Reaction]`;
1528
- export const BlockFieldsForUpsert = `${SharedPrimitiveFieldsForUpsert}
1529
- status: String
1530
- dateDue: Float
1531
- dateRemindMe: Float
1532
- dateAssociated: Float
1533
- archived: Boolean
1534
- favorite: Boolean
1535
- snoozed: Boolean
1536
- parentId: String
1537
- document: String`;
1538
- export const BlockQL = `
1539
- type Block {${BlockFields}
1540
- }`;
1541
- export class Block extends SharedPrimitive {
1542
- editors: Editor[];
1543
- blockType: BlockType;
1544
- // The document that represents the content of the block
1545
- document?: any;
1546
- // Graph properties that help us find the block
1547
- _embedding?: number[];
1548
- dates?: EntityEntry[];
1549
- locations?: EntityEntry[];
1550
- emails?: string[];
1551
- businessObjects?: BusinessObjectLink[];
1552
- // The various binary states
1553
- archived: boolean;
1554
- snoozed: boolean;
1555
- // A virtualized binary state by tenant
1556
- favorite: boolean;
1557
- _favorite: string[];
1558
- // Tasky things about the block
1559
- dateDue?: number;
1560
- dateRemindMe?: number;
1561
- status?: TaskStatus;
1562
- _dateDueUserAssigned: boolean;
1563
- // Stuff to associate blocks with calendar items manually
1564
- dateAssociated?: number;
1565
- // Editor informatino about teh block
1566
- editorId?: string;
1567
- editorGroupId?: string;
1568
- // Relationship information about the block
1569
- parentId?: string;
1570
- originReferenceBlock?: ReferenceBlock;
1571
- // Stuff to help manage the pipeline and search
1572
- _timeZone?: string;
1573
- _locale?: string;
1574
- _empty: boolean;
1575
- // Internal intelligence stuff
1576
- _tagRecommendations?: TagRecommendation[];
1577
- _entitiesPerson?: EntityEntry[];
1578
- _entitiesOrganization?: EntityEntry[];
1579
- _entitiesTopic?: EntityEntry[];
1580
- _emails?: EntityEntry[];
1581
- // A search field to help with relevancy
1582
- score?: number;
1583
- // Social stuff
1584
- reactions?: Reaction[];
1585
-
1586
- constructor(
1587
- tenantIdCreated: string,
1588
- editors: Editor[],
1589
- sharingTags: SharingTag[],
1590
- blockType: BlockType
1591
- ) {
1592
- super(sharingTags);
1593
-
1594
- this.tenantIdCreated = tenantIdCreated;
1595
- this.editors = editors;
1596
- this.blockType = blockType;
1597
-
1598
- this.archived = false;
1599
- this.favorite = false;
1600
- this.snoozed = false;
1601
-
1602
- this._favorite = [];
1603
-
1604
- this._dateDueUserAssigned = false;
1605
-
1606
- this._empty = false;
1607
- }
1608
- }
1609
-
1610
- export class BlockProcessingRequest {
1611
- referenceBlock: ReferenceBlock;
1612
-
1613
- constructor(referenceBlock: ReferenceBlock) {
1614
- this.referenceBlock = referenceBlock;
1615
- }
1616
- }
1617
-
1618
- export class BlockProcessingResponse {
1619
- referenceBlock: ReferenceBlock;
1620
-
1621
- constructor(referenceBlock: ReferenceBlock) {
1622
- this.referenceBlock = referenceBlock;
1623
- }
1624
- }
1625
-
1626
- export interface SubscribingProviderApplication {
1627
- provider: Provider;
1628
- application: ProviderApplication;
1629
- connectedProvider?: ConnectedProvider;
1630
- }
1631
-
1632
- export interface BusinessObjectIngestionResponse {
1633
- callbackId: string;
1634
- processingStage: ProcessingStage;
1635
- processingReason: string;
1636
- businessObject: BusinessObject;
1637
- }
1638
-
1639
- export class BusinessObjectIngestionRequest extends Primitive {
1640
- referenceBlock?: ReferenceBlock; // A reference to the block created/updated by this ingestion
1641
- subscribingProviderApplication?: SubscribingProviderApplication;
1642
- provider?: string; // A unique string representing the provider e.g. "salesforce", "atlassian", etc
1643
- application?: string; // A unique string representing the provider application e.g. "service", "jira", etc
1644
- uri: string; // A uri to locate the specific instance of the business object
1645
- processingStage?: ProcessingStage; // Indicates if the business object has been processed yet
1646
- processingAttempts?: number; // Indicates the number of attempts made to process this business object
1647
- processingReason?: string; // The reason the processing is at this stage
1648
- dateProcessed?: number; // The date this document was last processed
1649
- dateToProcess?: number; // The date this ingestion should be processed - default is now
1650
- originReferenceBlock?: ReferenceBlock; // The block that this request originally came from (though the ingestion may be referenced from many future blocks)
1651
- callbackId?: string; // A callback id that can be used for async requests
1652
- businessObject?: BusinessObject; // The ingested business object - used for async request callbacks
1653
-
1654
- constructor(
1655
- tenantIdCreated: string,
1656
- originReferenceBlock: ReferenceBlock,
1657
- uri: string
1658
- ) {
1659
- super();
1660
-
1661
- this.tenantIdCreated = tenantIdCreated;
1662
- this.originReferenceBlock = originReferenceBlock;
1663
- this.uri = uri;
1664
-
1665
- this.processingStage = ProcessingStage.NotProcessed;
1666
- this.processingAttempts = 0;
1667
- this.dateProcessed = 0;
1668
- this.dateToProcess = Date.now();
1669
- }
1670
- }
1671
-
1672
- export const BusinessObjectFields = `${BlockFields}
1673
- provider: String!
1674
- application: String!
1675
- uri: String!
1676
- processingStage: String!
1677
- processingAttempts: Int!
1678
- dateProcessed: Float!
1679
- externalId: String!
1680
- processingReason: String
1681
- iconUrl: String`;
1682
- export const BusinessObjectFieldsForUpsert = `${BlockFieldsForUpsert}
1683
- provider: String!
1684
- application: String!
1685
- uri: String!`;
1686
- export const BusinessObjectQL = `
1687
- type BusinessObject {${BusinessObjectFields}
1688
- }`;
1689
- export class BusinessObject extends Block {
1690
- provider: string; // A unique string representing the provider e.g. "salesforce", "atlassian", etc
1691
- application: string; // A unique string representing the provider application e.g. "service", "jira", etc
1692
- uri: string; // A uri to locate the specific instance of the business object
1693
- externalId: string; // An external identifier that can help us match the records
1694
- iconUrl?: string | null; // The url of an icon that represents the business object
1695
- externalResponse?: string; // The response from the external application as a JSON string
1696
-
1697
- constructor(
1698
- tenantIdCreated: string,
1699
- editors: Editor[],
1700
- sharingTags: SharingTag[],
1701
- blockType: BlockType,
1702
- provider: string,
1703
- application: string,
1704
- uri: string,
1705
- externalId: string
1706
- ) {
1707
- super(tenantIdCreated, editors, sharingTags, blockType);
1708
-
1709
- this.archived = false;
1710
-
1711
- this.provider = provider;
1712
- this.application = application;
1713
- this.uri = uri;
1714
- this.externalId = externalId;
1715
- }
1716
- }
1717
-
1718
- export class Section extends Block {
1719
- constructor(id: string) {
1720
- super('', [], [], BlockType.Section);
1721
-
1722
- this._id = id;
1723
- }
1724
- }
1725
-
1726
- export const NoteQL = `
1727
- type Note {${BlockFields}
1728
- }`;
1729
- export class Note extends Block {
1730
- constructor(
1731
- tenantIdCreated: string,
1732
- editors: Editor[],
1733
- sharingTags: SharingTag[]
1734
- ) {
1735
- super(tenantIdCreated, editors, sharingTags, BlockType.Note);
1736
- }
1737
- }
1738
-
1739
- export const TaskQL = `
1740
- type Task {${BlockFields}
1741
- }`;
1742
- export class Task extends Block implements BaseTask {
1743
- constructor(
1744
- tenantIdCreated: string,
1745
- editors: Editor[],
1746
- sharingTags: SharingTag[]
1747
- ) {
1748
- super(tenantIdCreated, editors, sharingTags, BlockType.Task);
1749
-
1750
- this.status = TaskStatus.NotStarted;
1751
- this.snoozed = false;
1752
- this.archived = false;
1753
- this._dateDueUserAssigned = false;
1754
- }
1755
- }
1756
- // CORE END
1757
-
1758
- /*
1759
- These are the business objects we explicitly support and have a standardized description
1760
- of across all systems. This allows these business objects to interact with each other
1761
- regardless of underpinning system.
1762
- */
1763
- // BUSINESS OBJECTS START
1764
-
1765
- //// CONFERENCE START
1766
- export const IngestTranscriptionInputQL = `
1767
- input IngestTranscriptionInput {${BusinessObjectFieldsForUpsert}
1768
- title: String
1769
- startTime: Float
1770
- duration: Float
1771
- htmlSummary: String
1772
- rawText: String
1773
- meetingUrl: String
1774
- recordingUrl: String
1775
- transcriptionUrl: String
1776
- attendees: [PersonReferenceInput]
1777
- tasks: [UpsertTaskInput]
1778
- }`;
1779
- export const TranscriptionQL = `
1780
- type Transcription {${BusinessObjectFields}
1781
- title: String
1782
- startTime: Float
1783
- duration: Float
1784
- htmlSummary: String
1785
- rawText: String
1786
- meetingUrl: String
1787
- recordingUrl: String
1788
- transcriptionUrl: String
1789
- attendees: [PersonReference]
1790
- tasks: [Task]
1791
- }`;
1792
- export class Transcription extends BusinessObject {
1793
- title?: string;
1794
- startTime?: number;
1795
- duration?: number;
1796
- htmlSummary?: string;
1797
- rawText?: string;
1798
- meetingUrl?: string;
1799
- recordingUrl?: string;
1800
- transcriptionUrl?: string;
1801
- attendees?: PersonReference[];
1802
- tasks?: Task[];
1803
-
1804
- constructor(
1805
- tenantIdCreated: string,
1806
- editors: Editor[],
1807
- sharingTags: SharingTag[],
1808
- provider: string,
1809
- application: string,
1810
- uri: string,
1811
- externalId: string
1812
- ) {
1813
- super(
1814
- tenantIdCreated,
1815
- editors,
1816
- sharingTags,
1817
- BlockType.Transcription,
1818
- provider,
1819
- application,
1820
- uri,
1821
- externalId
1822
- );
1823
- }
1824
- }
1825
-
1826
- export const ConferenceEntrypointQL = `
1827
- type ConferenceEntrypoint {
1828
- url: String
1829
- meetingCode: String
1830
- }`;
1831
- export interface ConferenceEntrypoint {
1832
- url?: string | null;
1833
- meetingCode?: string | null;
1834
- }
1835
-
1836
- export const ConferenceQL = `
1837
- type Conference {
1838
- entryPoints: [ConferenceEntrypoint]
1839
- transcription: Transcription
1840
- }`;
1841
- export interface Conference {
1842
- entryPoints?: ConferenceEntrypoint[];
1843
- transcription?: Transcription | null;
1844
- }
1845
-
1846
- export interface IngestTranscriptionInput extends Transcription {}
1847
- //// CONFERENCE END
1848
-
1849
- //// EVENT START
1850
- export enum EventStatus {
1851
- Confirmed = 'confirmed',
1852
- Tentative = 'tentative',
1853
- Cancelled = 'cancelled',
1854
- }
1855
-
1856
- export enum ResponseStatus {
1857
- NeedsAction = 'needsAction',
1858
- Declined = 'declined',
1859
- Tentative = 'tentative',
1860
- Accepted = 'accepted',
1861
- }
1862
-
1863
- export const PersonAcceptanceQL = `
1864
- type PersonAcceptance {${PersonReferenceFields}
1865
- responseStatus: String!
1866
- }`;
1867
- export interface PersonAcceptance extends PersonReference {
1868
- responseStatus: ResponseStatus;
1869
- }
1870
-
1871
- export const AttachmentInputQL = `
1872
- input AttachmentInput {
1873
- externalId: String!
1874
- url: String!
1875
- iconUrl: String
1876
- mimeType: String
1877
- title: String
1878
- }`;
1879
- export const AttachmentQL = `
1880
- type Attachment {
1881
- externalId: String!
1882
- url: String!
1883
- iconUrl: String
1884
- mimeType: String
1885
- title: String
1886
- }`;
1887
- export interface Attachment {
1888
- externalId: string;
1889
- url: string;
1890
- iconUrl?: string | null;
1891
- mimeType?: string | null;
1892
- title?: string | null;
1893
- }
1894
-
1895
- export interface NormalizedImportantField {
1896
- name: string;
1897
- value?: string;
1898
- tagType?: TagType;
1899
- }
1900
-
1901
- export interface NormalizedBusinessObject {
1902
- businessObject: BusinessObject;
1903
- dateDue?: number;
1904
- priority?: TaskPriority;
1905
- status?: TaskStatus;
1906
- important?: NormalizedImportantField[];
1907
- tagIds?: string[];
1908
- }
1909
-
1910
- export interface AveragePriorityChange {
1911
- before: TaskPriority;
1912
- after: TaskPriority;
1913
- }
1914
-
1915
- export interface AnalysisResult {
1916
- dateDueImpacted?: NormalizedBusinessObject[];
1917
- movingPriority?: AveragePriorityChange;
1918
- taskCompleted?: boolean;
1919
- }
1920
-
1921
- export interface CalendarFilter {
1922
- dateStart: number;
1923
- dateEnd: number;
1924
- limit: number;
1925
- }
1926
-
1927
- export interface SyncCalendarProviderRequest {
1928
- calendarFilter: CalendarFilter;
1929
- connectedProvider: ConnectedProvider;
1930
- }
1931
-
1932
- export interface TranscriptionFilter {
1933
- dateStart: number;
1934
- dateEnd: number;
1935
- limit: number;
1936
- }
1937
-
1938
- export interface SyncTranscriptionProviderRequest {
1939
- transcriptionFilter: TranscriptionFilter;
1940
- connectedProvider: ConnectedProvider;
1941
- }
1942
-
1943
- export interface RecordTypeFilter {
1944
- tableMetadata: TableMetadata;
1945
- externalIds: string[];
1946
- }
1947
-
1948
- export interface RecordFilter {
1949
- recordTypeFilters: RecordTypeFilter[];
1950
- }
1951
-
1952
- export interface UpsertTableProviderRequest {
1953
- table: Table;
1954
- connectedProvider: ConnectedProvider;
1955
- }
1956
-
1957
- export interface SyncTableProviderRequest {
1958
- recordFilter: RecordFilter;
1959
- connectedProvider: ConnectedProvider;
1960
- }
1961
-
1962
- export interface SyncTableMetadataProviderRequest {
1963
- tableMetadata: TableMetadata[];
1964
- connectedProvider: ConnectedProvider;
1965
- }
1966
-
1967
- export const EventQL = `
1968
- type Event {${BusinessObjectFields}
1969
- calendarId: String!
1970
- eventStatus: String!
1971
- dateStart: Float!
1972
- organizedBy: PersonReference!
1973
- location: String
1974
- dateStartOriginal: Float
1975
- recurrence: [String]
1976
- dateEnd: Float
1977
- subject: String
1978
- description: String
1979
- attendees: [PersonAcceptance]
1980
- conference: Conference
1981
- }`;
1982
- export class Event extends BusinessObject {
1983
- calendarId: string;
1984
- eventStatus: EventStatus;
1985
- dateStart: number;
1986
- organizedBy: PersonReference;
1987
- location?: string | null;
1988
- dateStartOriginal?: number | null;
1989
- recurrence?: RecurrenceRFC[] | null;
1990
- dateEnd?: number | null;
1991
- subject?: string | null;
1992
- description?: string | null;
1993
- attendees?: PersonAcceptance[] | null;
1994
- conference?: Conference | null;
1995
- attachments?: Attachment[] | null;
1996
-
1997
- constructor(
1998
- tenantIdCreated: string,
1999
- editors: Editor[],
2000
- sharingTags: SharingTag[],
2001
- provider: string,
2002
- application: string,
2003
- uri: string,
2004
- externalId: string,
2005
- calendarId: string,
2006
- eventStatus: EventStatus,
2007
- dateStart: number,
2008
- organizedBy: PersonReference
2009
- ) {
2010
- super(
2011
- tenantIdCreated,
2012
- editors,
2013
- sharingTags,
2014
- BlockType.Event,
2015
- provider,
2016
- application,
2017
- uri,
2018
- externalId
2019
- );
2020
-
2021
- this.calendarId = calendarId;
2022
- this.eventStatus = eventStatus;
2023
- this.dateStart = dateStart;
2024
- this.organizedBy = organizedBy;
2025
- }
2026
- }
2027
-
2028
- export const CalendarQL = `
2029
- type Calendar {${BusinessObjectFields}
2030
- timeZone: String!
2031
- description: String
2032
- location: String
2033
- events: [Event]
2034
- }`;
2035
- export class Calendar extends BusinessObject {
2036
- timeZone: string;
2037
- description?: string | null;
2038
- location?: string | null;
2039
- events?: Event[] | null;
2040
-
2041
- constructor(
2042
- tenantIdCreated: string,
2043
- editors: Editor[],
2044
- sharingTags: SharingTag[],
2045
- provider: string,
2046
- application: string,
2047
- uri: string,
2048
- externalId: string,
2049
- timeZone: string
2050
- ) {
2051
- super(
2052
- tenantIdCreated,
2053
- editors,
2054
- sharingTags,
2055
- BlockType.Calendar,
2056
- provider,
2057
- application,
2058
- uri,
2059
- externalId
2060
- );
2061
-
2062
- this.timeZone = timeZone;
2063
- }
2064
- }
2065
- //// EVENT END
2066
-
2067
- //// EXTERNAL TASK START
2068
- export class Todo extends BusinessObject {
2069
- htmlContent?: string;
2070
-
2071
- constructor(
2072
- tenantIdCreated: string,
2073
- editors: Editor[],
2074
- sharingTags: SharingTag[],
2075
- provider: string,
2076
- application: string,
2077
- uri: string,
2078
- externalId: string,
2079
- status: TaskStatus,
2080
- dateDue: number
2081
- ) {
2082
- super(
2083
- tenantIdCreated,
2084
- editors,
2085
- sharingTags,
2086
- BlockType.Todo,
2087
- provider,
2088
- application,
2089
- uri,
2090
- externalId
2091
- );
2092
-
2093
- this.status = status;
2094
- this.dateDue = dateDue;
2095
- }
2096
- }
2097
- //// EXTERNAL TASK END
2098
-
2099
- //// EMAIL START
2100
- export const IngestEmailInputQL = `
2101
- input IngestEmailInput {${BlockFieldsForUpsert}
2102
- to: [PersonReferenceInput]
2103
- cc: [PersonReferenceInput]
2104
- bcc: [PersonReferenceInput]
2105
- from: PersonReferenceInput
2106
- subject: String
2107
- attachments: [AttachmentInput]
2108
- htmlContent: String
2109
- textContent: String
2110
- createBlockType: String
2111
- }`;
2112
- export const EmailQL = `
2113
- type Email {${BusinessObjectFields}
2114
- to: [PersonReference]
2115
- cc: [PersonReference]
2116
- bcc: [PersonReference]
2117
- from: PersonReference
2118
- subject: String
2119
- attachments: [Attachment]
2120
- htmlContent: String
2121
- textContent: String
2122
- }`;
2123
- export class Email extends BusinessObject {
2124
- to?: PersonReference[];
2125
- cc?: PersonReference[];
2126
- bcc?: PersonReference[];
2127
- from?: PersonReference;
2128
- subject?: string | null;
2129
- attachments?: Attachment[] | null;
2130
- htmlContent?: string;
2131
- textContent?: string;
2132
- createBlockType?: string;
2133
-
2134
- constructor(
2135
- tenantIdCreated: string,
2136
- editors: Editor[],
2137
- sharingTags: SharingTag[],
2138
- provider: string,
2139
- application: string,
2140
- uri: string,
2141
- externalId: string
2142
- ) {
2143
- super(
2144
- tenantIdCreated,
2145
- editors,
2146
- sharingTags,
2147
- BlockType.Email,
2148
- provider,
2149
- application,
2150
- uri,
2151
- externalId
2152
- );
2153
- }
2154
- }
2155
-
2156
- export interface IngestEmailInput extends Email {}
2157
- //// EMAIL END
2158
-
2159
- //// MESSAGING START
2160
- export const UpsertMessageInputQL = `
2161
- input UpsertMessageInput {${BlockFieldsForUpsert}
2162
- htmlContent: String
2163
- originReferenceTagId: String
2164
- originReferenceBlock: ReferenceBlockInput
2165
- }`;
2166
- export const MessageQL = `
2167
- type Message {${BusinessObjectFields}
2168
- htmlContent: String
2169
- originReferenceTagId: String
2170
- }`;
2171
- export class Message extends BusinessObject {
2172
- htmlContent?: string;
2173
- // Reference information - use the originReferenceBlockId for block comments
2174
- // Use the parentId to determine if this is a message under a message
2175
- originReferenceTagId?: string;
2176
-
2177
- constructor(
2178
- tenantIdCreated: string,
2179
- editors: Editor[],
2180
- sharingTags: SharingTag[],
2181
- provider: string,
2182
- application: string,
2183
- uri: string,
2184
- externalId: string
2185
- ) {
2186
- super(
2187
- tenantIdCreated,
2188
- editors,
2189
- sharingTags,
2190
- BlockType.Message,
2191
- provider,
2192
- application,
2193
- uri,
2194
- externalId
2195
- );
2196
- }
2197
- }
2198
-
2199
- export interface UpsertMessageInput extends Message {}
2200
-
2201
- //// MESSAGING END
2202
-
2203
- //// DOCUMENT START
2204
- export const DocumentFields = `${BusinessObjectFields}
2205
- title: String
2206
- description: String
2207
- previewImage: String
2208
- htmlContent: String
2209
- metadataType: String`;
2210
- export const DocumentQL = `
2211
- type Document {${DocumentFields}
2212
- }`;
2213
- export class Document extends BusinessObject {
2214
- title?: string;
2215
- description?: string;
2216
- previewImage?: string;
2217
- htmlContent?: string;
2218
- metadataType?: string;
2219
-
2220
- constructor(
2221
- tenantIdCreated: string,
2222
- editors: Editor[],
2223
- sharingTags: SharingTag[],
2224
- provider: string,
2225
- application: string,
2226
- uri: string,
2227
- externalId: string
2228
- ) {
2229
- super(
2230
- tenantIdCreated,
2231
- editors,
2232
- sharingTags,
2233
- BlockType.Document,
2234
- provider,
2235
- application,
2236
- uri,
2237
- externalId
2238
- );
2239
- }
2240
- }
2241
- //// DOCUMENT END
2242
-
2243
- //// DASHBOARD START
2244
- export const BlockDataQL = `
2245
- type BlockData {
2246
- _id: String!
2247
- dateCreated: Float
2248
- dateUpdated: Float
2249
- name: String!
2250
- blockType: String
2251
- title: String
2252
- document: String
2253
- htmlContent: String
2254
- metadataType: String
2255
- tagType: String
2256
- search: GraphSearch
2257
- }`;
2258
- export class BlockData extends Primitive {
2259
- name: string;
2260
- blockType?: BlockType;
2261
- title?: string;
2262
- document?: string;
2263
- htmlContent?: string;
2264
- metadataType?: string;
2265
- tagType?: TagType;
2266
- search?: GraphSearchInput;
2267
-
2268
- constructor(name: string) {
2269
- super();
2270
-
2271
- this.name = name;
2272
- }
2273
- }
2274
-
2275
- export const DashboardQL = `
2276
- type Dashboard {${BusinessObjectFields}
2277
- metadata: DashboardMetadata
2278
- blockData: [BlockData]
2279
- tagId: String
2280
- }`;
2281
- export class Dashboard extends BusinessObject {
2282
- metadata: DashboardMetadata;
2283
- blockData: BlockData[];
2284
- tagId: string;
2285
-
2286
- constructor(
2287
- tenantIdCreated: string,
2288
- editors: Editor[],
2289
- sharingTags: SharingTag[],
2290
- provider: string,
2291
- application: string,
2292
- uri: string,
2293
- externalId: string,
2294
- dashboardMetadata: DashboardMetadata,
2295
- tagId: string
2296
- ) {
2297
- super(
2298
- tenantIdCreated,
2299
- editors,
2300
- sharingTags,
2301
- BlockType.Dashboard,
2302
- provider,
2303
- application,
2304
- uri,
2305
- externalId
2306
- );
2307
-
2308
- this.tagId = tagId;
2309
- this.blockData = [];
2310
- // Go through the block descriptions and create the block data entries
2311
- for (const blockDescription of dashboardMetadata.blockDescriptions) {
2312
- const block: BlockData = new BlockData(blockDescription.name);
2313
-
2314
- block.blockType = blockDescription.blockType;
2315
- block.title = blockDescription.title;
2316
- block.metadataType = blockDescription.metadataType;
2317
- block.tagType = blockDescription.tagType;
2318
-
2319
- this.blockData.push(block);
2320
- }
2321
-
2322
- this.metadata = dashboardMetadata;
2323
- }
2324
- }
2325
- //// DASHBOARD END
2326
-
2327
- //// WEBSITE START
2328
- export const WebsiteQL = `
2329
- type Website {${BusinessObjectFields}
2330
- title: String
2331
- description: String
2332
- bannerImage: String
2333
- htmlContent: String
2334
- }`;
2335
- export class Website extends BusinessObject {
2336
- title?: string;
2337
- description?: string;
2338
- bannerImage?: string;
2339
- htmlContent?: string;
2340
-
2341
- constructor(
2342
- tenantIdCreated: string,
2343
- editors: Editor[],
2344
- sharingTags: SharingTag[],
2345
- provider: string,
2346
- application: string,
2347
- uri: string,
2348
- externalId: string
2349
- ) {
2350
- super(
2351
- tenantIdCreated,
2352
- editors,
2353
- sharingTags,
2354
- BlockType.Website,
2355
- provider,
2356
- application,
2357
- uri,
2358
- externalId
2359
- );
2360
- }
2361
- }
2362
- //// WEBSITE END
2363
-
2364
- // BUSINESS OBJECTS END
2365
-
2366
- // METADATA OBJECTS START
2367
-
2368
- //// FOR DOCUMENTS START
2369
- export const BlockDescriptionQL = `
2370
- type BlockDescription {
2371
- title: String
2372
- name: String!
2373
- description: String!
2374
- blockType: String
2375
- metadataType: String
2376
- tagType: String
2377
- }`;
2378
- export interface BlockDescription {
2379
- title?: string;
2380
- name: string;
2381
- description: string;
2382
- blockType?: BlockType;
2383
- metadataType?: string;
2384
- tagType?: TagType;
2385
- }
2386
-
2387
- export const DocumentMetadataQL = `
2388
- type DocumentMetadata {${MetadataFields}
2389
- blockDescriptions: [BlockDescription]!
2390
- exportTypes: [String]
2391
- }`;
2392
- export class DocumentMetadata extends Metadata {
2393
- blockDescriptions: BlockDescription[];
2394
- exportTypes?: ExportType[]; // What export types this document metadata should be used for
2395
-
2396
- constructor(
2397
- label: string,
2398
- description: string,
2399
- metadataType: string,
2400
- classifiers: string[],
2401
- threshold: number,
2402
- blockDescriptions: BlockDescription[]
2403
- ) {
2404
- super(label, description, metadataType, classifiers, threshold);
2405
-
2406
- this.blockDescriptions = blockDescriptions;
2407
- }
2408
- }
2409
-
2410
- export const DashboardMetadataQL = `
2411
- type DashboardMetadata {${MetadataFields}
2412
- blockDescriptions: [BlockDescription]!
2413
- notificationMetadataTypes: [String]!
2414
- }`;
2415
- export class DashboardMetadata extends Metadata {
2416
- blockDescriptions: BlockDescription[];
2417
- notificationMetadataTypes: string[];
2418
-
2419
- constructor(
2420
- label: string,
2421
- description: string,
2422
- metadataType: string,
2423
- classifiers: string[],
2424
- threshold: number,
2425
- blockDescriptions: BlockDescription[]
2426
- ) {
2427
- super(label, description, metadataType, classifiers, threshold);
2428
-
2429
- this.blockDescriptions = blockDescriptions;
2430
- this.notificationMetadataTypes = [];
2431
- }
2432
- }
2433
-
2434
- export const TemplateQL = `
2435
- type Template {${BusinessObjectFields}
2436
- metadata: DocumentMetadata
2437
- }`;
2438
- export class Template extends BusinessObject {
2439
- metadata?: DocumentMetadata;
2440
-
2441
- constructor(
2442
- tenantIdCreated: string,
2443
- editors: Editor[],
2444
- sharingTags: SharingTag[],
2445
- provider: string,
2446
- application: string,
2447
- uri: string,
2448
- externalId: string
2449
- ) {
2450
- super(
2451
- tenantIdCreated,
2452
- editors,
2453
- sharingTags,
2454
- BlockType.Template,
2455
- provider,
2456
- application,
2457
- uri,
2458
- externalId
2459
- );
2460
- }
2461
- }
2462
- //// FOR DOCUMENTS END
2463
-
2464
- //// FOR RECORDS START
2465
- export enum FieldType {
2466
- Text = 'input',
2467
- Select = 'select',
2468
- Checkbox = 'checkbox',
2469
- Lookup = 'lookup',
2470
- }
2471
-
2472
- export enum FieldVariation {
2473
- Multi = 'multi',
2474
- Password = 'password',
2475
- Email = 'email',
2476
- Date = 'date',
2477
- Currency = 'currency',
2478
- DateTime = 'datetime',
2479
- Phone = 'phone',
2480
- Url = 'url',
2481
- }
2482
-
2483
- export const OptionQL = `
2484
- type Option {
2485
- label: String!
2486
- value: String!
2487
- status: String
2488
- priority: String
2489
- }`;
2490
- export interface Option {
2491
- label: string;
2492
- value: string;
2493
- status?: TaskStatus;
2494
- priority?: TaskPriority;
2495
- }
2496
-
2497
- export const FieldQL = `
2498
- type Field {
2499
- label: String!
2500
- name: String!
2501
- description: String!
2502
- important: Boolean
2503
- status: Boolean
2504
- priority: Boolean
2505
- tagType: TagType
2506
- tagSubType: String
2507
- fieldType: String!
2508
- fieldVariation: String
2509
- maximumCharacters: Int
2510
- readOnly: Boolean!
2511
- options: [Option]
2512
- }`;
2513
- export interface Field {
2514
- label: string;
2515
- name: string;
2516
- description: string;
2517
- important?: boolean;
2518
- status?: boolean;
2519
- priority?: boolean;
2520
- tagType?: TagType;
2521
- tagSubType?: string;
2522
- fieldType: FieldType;
2523
- fieldVariation?: FieldVariation;
2524
- maximumCharacters?: number;
2525
- readOnly: boolean;
2526
- options?: Option[];
2527
- }
2528
-
2529
- export const FieldValueInputQL = `
2530
- input FieldValueInput {
2531
- name: String!
2532
- value: String
2533
- id: String
2534
- changed: Boolean
2535
- }`;
2536
- export const FieldValueQL = `
2537
- type FieldValue {
2538
- name: String!
2539
- value: String
2540
- id: String
2541
- changed: Boolean
2542
- }`;
2543
- export interface FieldValue {
2544
- name: string;
2545
- value?: string;
2546
- id?: string;
2547
- changed?: boolean;
2548
- }
2549
-
2550
- export const TableMetadataQL = `
2551
- type TableMetadata {${MetadataFields}
2552
- fields: [Field]!
2553
- tasky: Boolean!
2554
- }`;
2555
- export class TableMetadata extends Metadata {
2556
- fields: Field[];
2557
- tasky: boolean;
2558
-
2559
- constructor(
2560
- label: string,
2561
- description: string,
2562
- metadataType: string,
2563
- fields: Field[],
2564
- classifiers: string[],
2565
- threshold: number
2566
- ) {
2567
- super(label, description, metadataType, classifiers, threshold);
2568
-
2569
- this.tasky = false;
2570
- this.fields = fields;
2571
- }
2572
- }
2573
-
2574
- export const RecordInputQL = `
2575
- input RecordInput {
2576
- _id: String!
2577
- values: [FieldValueInput]!
2578
- }`;
2579
- export const RecordQL = `
2580
- type Record {${BusinessObjectFields}
2581
- values: [FieldValue]!
2582
- }`;
2583
- export interface RecordInput {
2584
- _id: string;
2585
- values: FieldValue[];
2586
- }
2587
- export class Record extends BusinessObject {
2588
- values: FieldValue[];
2589
- enabled: boolean;
2590
- processingStage?: ProcessingStage;
2591
- processingReason?: string;
2592
- dashboardId?: string;
2593
- blockDescriptionName?: string;
2594
-
2595
- constructor(
2596
- tenantIdCreated: string,
2597
- editors: Editor[],
2598
- sharingTags: SharingTag[],
2599
- provider: string,
2600
- application: string,
2601
- uri: string,
2602
- externalId: string,
2603
- values: FieldValue[]
2604
- ) {
2605
- super(
2606
- tenantIdCreated,
2607
- editors,
2608
- sharingTags,
2609
- BlockType.Record,
2610
- provider,
2611
- application,
2612
- uri,
2613
- externalId
2614
- );
2615
-
2616
- this.values = values;
2617
- this.enabled = true;
2618
- }
2619
- }
2620
-
2621
- export const TableFields = `${BusinessObjectFields}
2622
- records: [Record]
2623
- metadata: TableMetadata
2624
- connectionId: String`;
2625
- export const TableQL = `
2626
- type Table {${TableFields}
2627
- }`;
2628
- export class Table extends BusinessObject {
2629
- metadata: TableMetadata;
2630
- records?: Record[];
2631
- connectionId?: string; // This is a virtual property we provide when the table/records are loaded
2632
-
2633
- constructor(
2634
- tenantIdCreated: string,
2635
- editors: Editor[],
2636
- sharingTags: SharingTag[],
2637
- provider: string,
2638
- application: string,
2639
- uri: string,
2640
- externalId: string,
2641
- metadata: TableMetadata
2642
- ) {
2643
- super(
2644
- tenantIdCreated,
2645
- editors,
2646
- sharingTags,
2647
- BlockType.Table,
2648
- provider,
2649
- application,
2650
- uri,
2651
- externalId
2652
- );
2653
-
2654
- this.metadata = metadata;
2655
- }
2656
- }
2657
- //// FOR RECORDS END
2658
-
2659
- // METADATA OBJECTS END
2660
-
2661
- // API OBJECTS START
2662
- export const FindRecordInputQL = `
2663
- input FindRecordInput {
2664
- _id: String
2665
- uri: String
2666
- archived: Boolean
2667
- }`;
2668
- export interface FindRecordInput {
2669
- _id: string;
2670
- uri: string;
2671
- archived: boolean;
2672
- }
2673
-
2674
- export const FindRecordsInputQL = `
2675
- input FindRecordsInput {
2676
- _ids: [String]
2677
- archived: Boolean
2678
- }`;
2679
- export interface FindRecordsInput {
2680
- _ids?: string[];
2681
- archived: boolean;
2682
- }
2683
-
2684
- export const UpsertRecordsInputQL = `
2685
- input UpsertRecordsInput {
2686
- _id: String!
2687
- records: [RecordInput]
2688
- recommendationId: String
2689
- connectionId: String
2690
- }`;
2691
- export interface UpsertRecordsInput {
2692
- _id: string;
2693
- records: RecordInput[];
2694
- recommendationId?: string;
2695
- connectionId?: string;
2696
- }
2697
-
2698
- export const FindTenantInputQL = `
2699
- input FindTenantInput {
2700
- _id: String!
2701
- }`;
2702
- export interface FindTenantInput {
2703
- _id: string;
2704
- }
2705
-
2706
- export const FindTenantsInputQL = `
2707
- input FindTenantsInput {
2708
- domainId: String
2709
- }`;
2710
- export interface FindTenantsInput {
2711
- domainId?: string;
2712
- }
2713
-
2714
- export const FindDomainInputQL = `
2715
- input FindDomainInput {
2716
- _id: String!
2717
- }`;
2718
- export interface FindDomainInput {
2719
- _id: string;
2720
- }
2721
-
2722
- export const FindCalendarInputQL = `
2723
- input FindCalendarInput {
2724
- _id: String!
2725
- }`;
2726
- export interface FindCalendarInput {
2727
- _id: string;
2728
- }
2729
-
2730
- export const FindEventInputQL = `
2731
- input FindEventInput {
2732
- _id: String!
2733
- }`;
2734
- export interface FindEventInput {
2735
- _id: string;
2736
- }
2737
-
2738
- export const FindDocumentInputQL = `
2739
- input FindDocumentInput {
2740
- _id: String!
2741
- archived: Boolean
2742
- }`;
2743
- export interface FindDocumentInput {
2744
- _id: string;
2745
- archived?: boolean;
2746
- }
2747
-
2748
- export const UpsertDocumentInputQL = `
2749
- input UpsertDocumentInput {
2750
- _id: String
2751
- document: String!
2752
- metadataType: String
2753
- recommendationId: String
2754
- connectionId: String
2755
- }`;
2756
- export interface UpsertDocumentInput {
2757
- _id?: string;
2758
- document: string;
2759
- metadataType?: string;
2760
- recommendationId?: string;
2761
- connectionId?: string;
2762
- }
2763
-
2764
- export const FindDashboardInputQL = `
2765
- input FindDashboardInput {
2766
- _id: String!
2767
- archived: Boolean
2768
- }`;
2769
- export interface FindDashboardInput {
2770
- _id: string;
2771
- archived?: boolean;
2772
- }
2773
-
2774
- export const FindDashboardBlockInputQL = `
2775
- input FindDashboardBlockInput {
2776
- _id: String!
2777
- }`;
2778
- export interface FindDashboardBlockInput {
2779
- _id: string;
2780
- }
2781
-
2782
- export const UpsertNoteInputQL = `
2783
- input UpsertNoteInput {
2784
- _id: String
2785
- document: String
2786
- editor: EditorInput!
2787
- sharingTags: [SharingTagInput]
2788
- favorite: Boolean
2789
- dateAssociated: Float
2790
- }`;
2791
- export interface UpsertNoteInput {
2792
- _id?: string;
2793
- document?: string;
2794
- editor: Editor;
2795
- sharingTags?: SharingTag[];
2796
- favorite?: boolean;
2797
- dateAssociated?: number;
2798
- }
2799
-
2800
- export const FindBlockInputQL = `
2801
- input FindBlockInput {
2802
- _id: String!
2803
- blockType: String
2804
- archived: Boolean
2805
- }`;
2806
- export interface FindBlockInput {
2807
- _id: string;
2808
- blockType?: BlockType;
2809
- archived?: boolean;
2810
- }
2811
-
2812
- export const FindBlocksInputQL = `
2813
- input FindBlocksInput {
2814
- originReferenceBlock: ReferenceBlockInput
2815
- originReferenceTagId: String
2816
- blockType: String
2817
- archived: Boolean
2818
- }`;
2819
- export interface FindBlocksInput {
2820
- originReferenceBlock?: ReferenceBlock;
2821
- originReferenceTagId?: string;
2822
- blockType?: BlockType;
2823
- archived?: boolean;
2824
- }
2825
-
2826
- export const ArchiveBlockInputQL = `
2827
- input ArchiveBlockInput {
2828
- _id: String!
2829
- blockType: String
2830
- archive: Boolean
2831
- }`;
2832
- export interface ArchiveBlockInput {
2833
- _id: string;
2834
- blockType?: BlockType;
2835
- archive?: boolean;
2836
- }
2837
-
2838
- export const ArchiveBlockOutputQL = `
2839
- type ArchiveBlockOutput {
2840
- _id: String!
2841
- archived: Boolean!
2842
- }`;
2843
- export interface ArchiveBlockOutput {
2844
- _id: string;
2845
- archived: boolean;
2846
- }
2847
-
2848
- export const UpdateRecommendationInputQL = `
2849
- input UpdateRecommendationInput {
2850
- _id: String!
2851
- thumbs: String
2852
- comment: String
2853
- }`;
2854
- export interface UpdateRecommendationInput {
2855
- _id?: string;
2856
- thumbs: ThumbsDirection;
2857
- comment: string;
2858
- }
2859
-
2860
- export const ArchiveRecommendationInputQL = `
2861
- input ArchiveRecommendationInput {
2862
- _id: String!
2863
- archive: Boolean
2864
- }`;
2865
- export interface ArchiveRecommendationInput {
2866
- _id: string;
2867
- archive?: boolean;
2868
- }
2869
-
2870
- export const ArchiveRecommendationOutputQL = `
2871
- type ArchiveRecommendationOutput {
2872
- _id: String!
2873
- archived: Boolean!
2874
- }`;
2875
- export interface ArchiveRecommendationOutput {
2876
- _id: string;
2877
- archived: boolean;
2878
- }
2879
-
2880
- export const FindProviderInputQL = `
2881
- input FindProviderInput {
2882
- _id: String
2883
- provider: String
2884
- }`;
2885
- export interface FindProviderInput {
2886
- _id?: string;
2887
- provider?: string;
2888
- }
2889
-
2890
- export const FindSyncInputQL = `
2891
- input FindSyncInput {
2892
- _id: String!
2893
- }`;
2894
- export interface FindSyncInput {
2895
- _id: string;
2896
- }
2897
-
2898
- export const SharingDomainInputQL = `
2899
- input SharingDomainInput {
2900
- domainId: String!
2901
- sharingLevel: Int!
2902
- }`;
2903
- export const SharingTenantInputQL = `
2904
- input SharingTenantInput {
2905
- tenantId: String!
2906
- sharingLevel: Int!
2907
- }`;
2908
- export const UpsertTagInputQL = `
2909
- input UpsertTagInput {
2910
- _id: ID
2911
- alias: String
2912
- friendlyName: String
2913
- tagType: String
2914
- url: String
2915
- favicon: String
2916
- dbpedia: String
2917
- email: String
2918
- avatar: String
2919
- inviteStatus: String
2920
- originNoteId: String
2921
- favorite: Boolean
2922
- sharingDomains: [SharingDomainInput]
2923
- sharingTenants: [SharingTenantInput]
2924
- businessObjects: [BusinessObjectLinkInput]
2925
- externalIdLinks: [ExternalIdLinkInput]
2926
- hasAutoShareNotesOn: Boolean
2927
- hasAutoShareTasksOn: Boolean
2928
- sharingLevel: Int
2929
- }`;
2930
- export interface UpsertTagInput extends Tag {}
2931
-
2932
- export const FindTagInputQL = `
2933
- input FindTagInput {
2934
- _id: String!
2935
- archived: Boolean
2936
- connectionId: String
2937
- tagType: String
2938
- tagSubType: String
2939
- }`;
2940
- export interface FindTagInput {
2941
- _id: string;
2942
- archived?: boolean;
2943
- connectionId?: string;
2944
- tagType?: TagType;
2945
- tagSubType?: string;
2946
- }
2947
-
2948
- export const FindTagsInputQL = `
2949
- input FindTagsInput {
2950
- alias: String
2951
- friendlyName: String
2952
- archived: Boolean
2953
- favorite: Boolean
2954
- }`;
2955
- export interface FindTagsInput {
2956
- alias?: string;
2957
- friendlyName?: string;
2958
- archived?: boolean;
2959
- favorite?: boolean;
2960
- }
2961
-
2962
- export const ArchiveTagInputQL = `
2963
- input ArchiveTagInput {
2964
- _id: String!
2965
- archive: Boolean
2966
- }`;
2967
- export interface ArchiveTagInput {
2968
- _id: string;
2969
- archive?: boolean;
2970
- }
2971
-
2972
- export const ArchiveTagOutputQL = `
2973
- type ArchiveTagOutput {
2974
- _id: String!
2975
- archived: Boolean!
2976
- }`;
2977
- export interface ArchiveTagOutput {
2978
- _id: string;
2979
- archived: boolean;
2980
- }
2981
-
2982
- export const MergeTagInputQL = `
2983
- input MergeTagInput {
2984
- tagIdToRemain: String!
2985
- tagIdToMerge: String!
2986
- }`;
2987
- export interface MergeTagInput {
2988
- tagIdToRemain: string;
2989
- tagIdToMerge: string;
2990
- }
2991
-
2992
- export const SetSharingTagInputQL = `
2993
- input SetSharingTagInput {
2994
- referenceBlock: ReferenceBlockInput!
2995
- sharingTag: InviteSharingTagInput!
2996
- }`;
2997
- export interface SetSharingTagInput {
2998
- referenceBlock: ReferenceBlock;
2999
- sharingTag: SharingTag;
3000
- }
3001
-
3002
- export const DeleteSharingTagInputQL = `
3003
- input DeleteSharingTagInput {
3004
- referenceBlock: ReferenceBlockInput!
3005
- tagId: String!
3006
- }`;
3007
- export interface DeleteSharingTagInput {
3008
- referenceBlock: ReferenceBlock;
3009
- tagId: string;
3010
- }
3011
-
3012
- export const UpdateTaskInputQL = `
3013
- input UpsertTaskInput {${BlockFieldsForUpsert}
3014
- editor: EditorInput!
3015
- }`;
3016
- export interface UpsertTaskInput extends Task {
3017
- editor: Editor;
3018
- }
3019
-
3020
- export const UpsertFolderInputQL = `
3021
- input UpsertFolderInput {
3022
- _id: String
3023
- sharingTags: [SharingTagInput]
3024
- icon: String
3025
- label: String
3026
- description: String
3027
- searchIds: [String]
3028
- }`;
3029
- export interface UpsertFolderInput {
3030
- _id?: string;
3031
- sharingTags?: SharingTag[];
3032
- icon?: string;
3033
- label?: string;
3034
- description?: string;
3035
- searchIds?: string[];
3036
- _tagType?: TagType;
3037
- }
3038
-
3039
- export const FindFolderInputQL = `
3040
- input FindFolderInput {
3041
- _id: String!
3042
- archived: Boolean
3043
- }`;
3044
- export interface FindFolderInput {
3045
- _id: string;
3046
- archived?: boolean;
3047
- }
3048
-
3049
- export const FindFoldersInputQL = `
3050
- input FindFoldersInput {
3051
- archived: Boolean
3052
- }`;
3053
- export interface FindFoldersInput {
3054
- archived?: boolean;
3055
- }
3056
-
3057
- export const ArchiveFolderInputQL = `
3058
- input ArchiveFolderInput {
3059
- _id: String!
3060
- archive: Boolean
3061
- }`;
3062
- export interface ArchiveFolderInput {
3063
- _id: string;
3064
- archive?: boolean;
3065
- }
3066
-
3067
- export const ArchiveFolderOutputQL = `
3068
- type ArchiveFolderOutput {
3069
- _id: String!
3070
- archived: Boolean!
3071
- }`;
3072
- export interface ArchiveFolderOutput {
3073
- _id: string;
3074
- archived: boolean;
3075
- }
3076
-
3077
- export const UpsertSearchInputQL = `
3078
- input UpsertSearchInput {
3079
- _id: String
3080
- blockType: String
3081
- label: String
3082
- search: String
3083
- _ids: [String]
3084
- tagIds: [String]
3085
- emails: [String]
3086
- businessObjects: [BusinessObjectLinkInput]
3087
- sharingTags: [SharingTagInput]
3088
- orderByDateUpdated: String
3089
- orderByDateCreated: String
3090
- orderByDateDue: String
3091
- orderByAlias: String
3092
- dateDueFrom: Float
3093
- dateDueTo: Float
3094
- status: String
3095
- editorId: String
3096
- editorGroupId: String
3097
- parentId: String
3098
- favorite: Boolean
3099
- snoozed: Boolean
3100
- size: Int
3101
- }`;
3102
- export interface UpsertSearchInput {
3103
- _id?: string;
3104
- blockType?: string;
3105
- label?: string;
3106
- search?: string;
3107
- _ids?: string[];
3108
- tagIds?: string[];
3109
- emails?: string[];
3110
- businessObjects?: BusinessObjectLink[];
3111
- sharingTags?: SharingTag[];
3112
- orderByDateUpdated?: OrderByDirection;
3113
- orderByDateCreated?: OrderByDirection;
3114
- orderByDateDue?: OrderByDirection;
3115
- orderByAlias?: OrderByDirection;
3116
- dateDueFrom?: number;
3117
- dateDueTo?: number;
3118
- status?: TaskStatus;
3119
- editorId?: string;
3120
- editorGroupId?: string;
3121
- parentId?: string;
3122
- favorite?: boolean;
3123
- snoozed?: boolean;
3124
- size?: number;
3125
- }
3126
-
3127
- export const FindSearchInputQL = `
3128
- input FindSearchInput {
3129
- _id: String!
3130
- archived: Boolean
3131
- }`;
3132
- export interface FindSearchInput {
3133
- _id: string;
3134
- archived?: boolean;
3135
- }
3136
-
3137
- export const FindSearchesInputQL = `
3138
- input FindSearchesInput {
3139
- archived: Boolean
3140
- }`;
3141
- export interface FindSearchesInput {
3142
- archived?: boolean;
3143
- }
3144
-
3145
- export const ArchiveSearchInputQL = `
3146
- input ArchiveSearchInput {
3147
- _id: String!
3148
- archive: Boolean
3149
- }`;
3150
- export interface ArchiveSearchInput {
3151
- _id: string;
3152
- archive?: boolean;
3153
- }
3154
-
3155
- export const ArchiveSearchOutputQL = `
3156
- type ArchiveSearchOutput {
3157
- _id: String!
3158
- archived: Boolean!
3159
- }`;
3160
- export interface ArchiveSearchOutput {
3161
- _id: string;
3162
- archived: boolean;
3163
- }
3164
-
3165
- export const SearchTagsInputQL = `
3166
- input SearchTagsInput {
3167
- tagType: String
3168
- tagSubType: String
3169
- tagTypes: [String]
3170
- parentId: String
3171
- externalId: String
3172
- connectionId: String
3173
- _ids: [String]
3174
- tenantIdVerifieds: [String]
3175
- search: String
3176
- email: String
3177
- inviteStatus: String
3178
- archived: Boolean
3179
- favorite: Boolean
3180
- hasTasks: Boolean
3181
- orderByAlias: String
3182
- orderByTaskCount: String
3183
- orderByFriendlyName: String
3184
- orderByDateUpdated: String
3185
- orderByDateCreated: String
3186
- page: Int
3187
- size: Int
3188
- generateDashboard: Boolean
3189
- }`;
3190
- export interface SearchTagsInput {
3191
- tagType?: TagType;
3192
- tagSubType?: string;
3193
- tagTypes?: TagType[];
3194
- parentId?: string;
3195
- externalId?: string;
3196
- connectionId?: string;
3197
- _ids?: string[];
3198
- tenantIdVerifieds?: string[];
3199
- search?: string;
3200
- email?: string;
3201
- inviteStatus?: InviteStatus;
3202
- archived?: boolean;
3203
- favorite?: boolean;
3204
- hasTasks?: boolean;
3205
- orderByAlias?: OrderByDirection;
3206
- orderByTaskCount?: OrderByDirection;
3207
- orderByFriendlyName?: OrderByDirection;
3208
- orderByDateUpdated?: OrderByDirection;
3209
- orderByDateCreated?: OrderByDirection;
3210
- page?: number;
3211
- size?: number;
3212
- generateDashboard?: boolean;
3213
- }
3214
-
3215
- export const SearchInputQL = `
3216
- input SearchInput {
3217
- blockType: String
3218
- recommendationType: String
3219
- label: String
3220
- search: String
3221
- _ids: [String]
3222
- tagIds: [String]
3223
- emails: [String]
3224
- businessObjects: [BusinessObjectLinkInput]
3225
- orderByDateUpdated: String
3226
- orderByDateCreated: String
3227
- orderByDateDue: String
3228
- orderByAlias: String
3229
- dateDueFrom: Float
3230
- dateDueTo: Float
3231
- status: String
3232
- originReferenceBlock: ReferenceBlockInput
3233
- originReferenceTagId: String
3234
- editorId: String
3235
- editorGroupId: String
3236
- parentId: String
3237
- favorite: Boolean
3238
- snoozed: Boolean
3239
- page: Int
3240
- size: Int
3241
- }`;
3242
- export interface SearchInput {
3243
- blockType?: BlockType;
3244
- recommendationType?: RecommendationType;
3245
- label?: string;
3246
- search?: string;
3247
- _ids?: string[];
3248
- tagIds?: string[];
3249
- emails?: string[];
3250
- businessObjects?: BusinessObjectLink[];
3251
- orderByDateUpdated?: OrderByDirection;
3252
- orderByDateCreated?: OrderByDirection;
3253
- orderByDateDue?: OrderByDirection;
3254
- orderByAlias?: OrderByDirection;
3255
- dateDueFrom?: number;
3256
- dateDueTo?: number;
3257
- status?: TaskStatus;
3258
- originReferenceBlock?: ReferenceBlock;
3259
- originReferenceTagId?: string;
3260
- editorId?: string;
3261
- editorGroupId?: string;
3262
- parentId?: string;
3263
- favorite?: boolean;
3264
- snoozed?: boolean;
3265
- page?: number;
3266
- size?: number;
3267
- }
3268
-
3269
- export const BlockTypeQL = `
3270
- enum BlockType {
3271
- ${BlockType.Calendar.toUpperCase()}
3272
- ${BlockType.Transcription.toUpperCase()}
3273
- ${BlockType.Dashboard.toUpperCase()}
3274
- ${BlockType.Document.toUpperCase()}
3275
- ${BlockType.Event.toUpperCase()}
3276
- ${BlockType.Folder.toUpperCase()}
3277
- ${BlockType.Note.toUpperCase()}
3278
- ${BlockType.Record.toUpperCase()}
3279
- ${BlockType.Search.toUpperCase()}
3280
- ${BlockType.Section.toUpperCase()}
3281
- ${BlockType.Table.toUpperCase()}
3282
- ${BlockType.Task.toUpperCase()}
3283
- ${BlockType.Template.toUpperCase()}
3284
- ${BlockType.Message.toUpperCase()}
3285
- ${BlockType.Todo.toUpperCase()}
3286
- ${BlockType.Website.toUpperCase()}
3287
- }`;
3288
-
3289
- export const RecommendationTypeQL = `
3290
- enum RecommendationType {
3291
- ${RecommendationType.Connect.toUpperCase()}
3292
- ${RecommendationType.Share.toUpperCase()}
3293
- ${RecommendationType.Upsert.toUpperCase()}
3294
- ${RecommendationType.Notification.toUpperCase()}
3295
- ${RecommendationType.Ingestion.toUpperCase()}
3296
- }`;
3297
-
3298
- export const TaskStatusQL = `
3299
- enum TaskStatus {
3300
- ${TaskStatus.Completed.toUpperCase()}
3301
- ${TaskStatus.InProgress.toUpperCase()}
3302
- ${TaskStatus.NotStarted.toUpperCase()}
3303
- }`;
3304
-
3305
- export const OrderDirectionQL = `
3306
- enum OrderDirection {
3307
- ASC
3308
- DESC
3309
- }`;
3310
- export enum OrderDirection {
3311
- Ascending = 'asc',
3312
- Descending = 'desc',
3313
- }
3314
-
3315
- export const FindTagsVisibilityInputQL = `
3316
- input FindTagsVisibilityInput {
3317
- tagIds: [String]
3318
- sharingTags: [SharingTagInput]
3319
- }`;
3320
- export interface FindTagsVisibilityInput {
3321
- tagIds?: string[];
3322
- sharingTags?: SharingTag[];
3323
- }
3324
-
3325
- export const ReactionQL = `
3326
- type Reaction {
3327
- shortcodes: String!
3328
- tagIds: [String]
3329
- }`;
3330
- export interface Reaction {
3331
- shortcodes: string;
3332
- tagIds: string[];
3333
- }
3334
-
3335
- export const FindReactionsInputQL = `
3336
- input FindReactionsInput {
3337
- _id: String!
3338
- blockType: BlockType!
3339
- }`;
3340
- export interface FindReactionsInput {
3341
- _id: string;
3342
- blockType: BlockType;
3343
- }
3344
-
3345
- export const AddReactionInputQL = `
3346
- input AddReactionInput {
3347
- _id: String!
3348
- blockType: BlockType!
3349
- shortcodes: String!
3350
- }`;
3351
- export interface AddReactionInput {
3352
- _id: string;
3353
- blockType: BlockType;
3354
- shortcodes: string;
3355
- }
3356
-
3357
- export const RemoveReactionInputQL = `
3358
- input RemoveReactionInput {
3359
- _id: String!
3360
- blockType: BlockType!
3361
- shortcodes: String!
3362
- }`;
3363
- export interface RemoveReactionInput {
3364
- _id: string;
3365
- blockType: BlockType;
3366
- shortcodes: string;
3367
- }
3368
-
3369
- export const ParentItemFields = `
3370
- _id: String
3371
- blockType: BlockType
3372
- `;
3373
- export const ParentItemInputQL = `
3374
- input ParentItemInput {${ParentItemFields}
3375
- children: [ChildItemInput]
3376
- }`;
3377
- export const ParentItemQL = `
3378
- type ParentItem {${ParentItemFields}
3379
- children: [ChildItem]
3380
- }`;
3381
- export interface ParentItem {
3382
- _id: string;
3383
- blockType: BlockType;
3384
- children: ChildItem[];
3385
- _order?: number;
3386
- }
3387
-
3388
- export const ChildItemFields = `
3389
- _id: String
3390
- blockType: BlockType
3391
- `;
3392
- export const ChildItemInputQL = `
3393
- input ChildItemInput {${ChildItemFields}
3394
- }`;
3395
- export const ChildItemQL = `
3396
- type ChildItem {${ChildItemFields}
3397
- }`;
3398
- export interface ChildItem {
3399
- _id: string;
3400
- blockType: BlockType;
3401
- _order?: number;
3402
- }
3403
-
3404
- export const NumberFilterFieldsQL = `
3405
- gt: Float
3406
- gte: Float
3407
- eq: Float
3408
- lte: Float
3409
- lt: Float`;
3410
- export const NumberFilterQL = `
3411
- type NumberFilter {${NumberFilterFieldsQL}}`;
3412
- export const NumberFilterInputQL = `
3413
- input NumberFilterInput {${NumberFilterFieldsQL}}`;
3414
- export interface NumberFilterInput {
3415
- gt?: number;
3416
- gte?: number;
3417
- eq?: number;
3418
- lte?: number;
3419
- lt?: number;
3420
- }
3421
-
3422
- export const StringFilterFieldsQL = `
3423
- eq: String
3424
- contains: String
3425
- startsWith: String
3426
- endsWith: String`;
3427
- export const StringFilterQL = `
3428
- type StringFilter {${StringFilterFieldsQL}
3429
- }`;
3430
- export const StringFilterInputQL = `
3431
- input StringFilterInput {${StringFilterFieldsQL}
3432
- }`;
3433
- export interface StringFilterInput {
3434
- eq?: string;
3435
- contains?: string;
3436
- startsWith?: string;
3437
- endsWith?: string;
3438
- }
3439
-
3440
- export const BusinessObjectFilterFieldsQL = `
3441
- id: String
3442
- url: String
3443
- blockType: BlockType
3444
- provider: String
3445
- metadataType: String`;
3446
- export const BusinessObjectFilterQL = `
3447
- type BusinessObjectFilter {${BusinessObjectFilterFieldsQL}
3448
- }`;
3449
- export const BusinessObjectFilterInputQL = `
3450
- input BusinessObjectFilterInput {${BusinessObjectFilterFieldsQL}
3451
- }`;
3452
- export interface BusinessObjectFilterInput {
3453
- id?: string;
3454
- url?: string;
3455
- blockType?: string;
3456
- provider?: string;
3457
- metadataType?: string;
3458
- }
3459
-
3460
- export const SortOptionFieldsQL = `
3461
- field: String
3462
- order: OrderDirection`;
3463
- export const SortOptionQL = `
3464
- type SortOption {${SortOptionFieldsQL}
3465
- }`;
3466
- export const SortOptionInputQL = `
3467
- input SortOptionInput {${SortOptionFieldsQL}
3468
- }`;
3469
- export interface SortOptionInput {
3470
- field: string;
3471
- order: OrderDirection;
3472
- }
3473
-
3474
- export const GraphSearchInputFields = `
3475
- search: String
3476
- _ids: [String]
3477
- tenantIdCreateds: [String]
3478
- tagIds: [String]
3479
- recommendationTypes: [RecommendationType]
3480
- blockTypes: [BlockType]
3481
- statuses: [TaskStatus]
3482
- businessObjects: [BusinessObjectFilterInput]
3483
- originReferenceBlock: ReferenceBlockInput
3484
- originReferenceTagId: String
3485
- editorId: String
3486
- editorGroupId: String
3487
- parentId: String
3488
- favorite: Boolean
3489
- snoozed: Boolean
3490
- dateMatch: NumberFilterInput
3491
- dateDue: NumberFilterInput
3492
- dateCreated: NumberFilterInput
3493
- dateUpdated: NumberFilterInput
3494
- dateAssociated: NumberFilterInput
3495
- emails: [StringFilterInput]
3496
- sort: [SortOptionInput]
3497
- page: Int
3498
- size: Int
3499
- `;
3500
- export const GraphSearchFields = `
3501
- search: String
3502
- _ids: [String]
3503
- tenantIdCreateds: [String]
3504
- tagIds: [String]
3505
- recommendationTypes: [RecommendationType]
3506
- blockTypes: [BlockType]
3507
- statuses: [TaskStatus]
3508
- businessObjects: [BusinessObjectFilter]
3509
- originReferenceBlock: ReferenceBlock
3510
- originReferenceTagId: String
3511
- editorId: String
3512
- editorGroupId: String
3513
- parentId: String
3514
- favorite: Boolean
3515
- snoozed: Boolean
3516
- dateMatch: NumberFilter
3517
- dateDue: NumberFilter
3518
- dateCreated: NumberFilter
3519
- dateUpdated: NumberFilter
3520
- dateAssociated: NumberFilter
3521
- emails: [StringFilter]
3522
- sort: [SortOption]
3523
- page: Int
3524
- size: Int
3525
- `;
3526
- export const GraphSearchQL = `
3527
- type GraphSearch {${GraphSearchFields}
3528
- }`;
3529
- export const GraphSearchInputQL = `
3530
- input GraphSearchInput {${GraphSearchInputFields}
3531
- }`;
3532
- export interface GraphSearchInput {
3533
- // Used for context based searching
3534
- search?: string;
3535
- // Explicit value filtering
3536
- _ids?: string[];
3537
- tenantIdCreateds?: string[];
3538
- tagIds?: string[];
3539
- blockTypes?: BlockType[];
3540
- recommendationTypes?: RecommendationType[];
3541
- statuses?: TaskStatus[];
3542
- businessObjects?: BusinessObjectFilterInput[];
3543
- originReferenceBlock?: ReferenceBlock;
3544
- originReferenceTagId?: string;
3545
- editorId?: string;
3546
- editorGroupId?: string;
3547
- parentId?: string;
3548
- favorite?: boolean;
3549
- snoozed?: boolean;
3550
- // Fuzzy filters
3551
- dateMatch?: NumberFilterInput;
3552
- dateDue?: NumberFilterInput;
3553
- dateCreated?: NumberFilterInput;
3554
- dateUpdated?: NumberFilterInput;
3555
- dateAssociated?: NumberFilterInput;
3556
- emails?: StringFilterInput[];
3557
- // Sorting
3558
- sort?: SortOptionInput[];
3559
- // Page and sizing
3560
- page?: number;
3561
- size?: number;
3562
- }
3563
-
3564
- export const GraphSearchEventsInputQL = `
3565
- input GraphSearchEventsInput {${GraphSearchInputFields}
3566
- calendarId: String
3567
- dateStart: NumberFilterInput
3568
- dateEnd: NumberFilterInput
3569
- subject: StringFilterInput
3570
- }`;
3571
- export interface GraphSearchEventsInput extends GraphSearchInput {
3572
- calendarId?: string;
3573
- dateStart?: NumberFilterInput;
3574
- dateEnd?: NumberFilterInput;
3575
- subject?: StringFilterInput;
3576
- }
3577
-
3578
- export const UpdateTagSharingInputQL = `
3579
- input UpdateTagSharingInput {
3580
- _id: String!
3581
- emailDomain: Boolean
3582
- sharingTenants: [SharingTenantInput]
3583
- sharingDomains: [SharingDomainInput]
3584
- }`;
3585
- export interface UpdateTagSharingInput {
3586
- _id: string;
3587
- emailDomain?: boolean;
3588
- sharingTenants?: SharingTenant[];
3589
- sharingDomains?: SharingDomain[];
3590
- }
3591
-
3592
- // THE GRAPH QL DEFINITIONS
3593
- export const GraphQLTypes = `
3594
- ${HighlightQL}
3595
- ${EditorInputQL}
3596
- ${EditorQL}
3597
- ${InviteSharingTagInputQL}
3598
- ${SharingTagInputQL}
3599
- ${SharingTagQL}
3600
- ${SharingDomainQL}
3601
- ${TenantSettingQL}
3602
- ${SharingTenantQL}
3603
- ${BusinessObjectLinkInputQL}
3604
- ${BusinessObjectLinkQL}
3605
- ${ExternalIdLinkInputQL}
3606
- ${ExternalIdLinkQL}
3607
- ${TaskStepInputQL}
3608
- ${FindTagsVisibilityInputQL}
3609
- ${ReactionQL}
3610
- ${FindReactionsInputQL}
3611
- ${AddReactionInputQL}
3612
- ${RemoveReactionInputQL}
3613
- ${TaskStepQL}
3614
- ${EntityReferenceQL}
3615
- ${ArgumentEntryQL}
3616
- ${RelationEntryQL}
3617
- ${EntityEntryQL}
3618
- ${ProviderInfoQL}
3619
- ${ProviderRequestQL}
3620
- ${ProviderResponseQL}
3621
- ${StandardObjectsQL}
3622
- ${CredentialQL}
3623
- ${ChangesInputQL}
3624
- ${ChangesQL}
3625
- ${FindExternalTagReferencesInputQL}
3626
- ${FindExternalTagReferenceInputQL}
3627
- ${PersonReferenceInputQL}
3628
- ${PersonReferenceQL}
3629
- ${MetadataQL}
3630
- ${FolderQL}
3631
- ${SearchQL}
3632
- ${SyncQL}
3633
- ${DashboardTagSubscriptionQL}
3634
- ${ProviderApplicationQL}
3635
- ${ExternalIdQL}
3636
- ${ProviderQL}
3637
- ${TagTypeQL}
3638
- ${GraphTagQL}
3639
- ${GraphTagsInputQL}
3640
- ${TagQL}
3641
- ${TagRecommendationQL}
3642
- ${TenantLightInputQL}
3643
- ${TenantLightQL}
3644
- ${ConnectRecommendationQL}
3645
- ${ReactionRecommendationQL}
3646
- ${ChangeRecommendationQL}
3647
- ${UpsertRecommendationQL}
3648
- ${ShareRecommendationQL}
3649
- ${IngestionRecommendationQL}
3650
- ${MessageRecommendationQL}
3651
- ${NotificationRecommendationQL}
3652
- ${RecommendationQL}
3653
- ${ConnectedProviderQL}
3654
- ${ReferenceBlockInputQL}
3655
- ${ReferenceBlockQL}
3656
- ${DomainQL}
3657
- ${TenantQL}
3658
- ${BlockQL}
3659
- ${BusinessObjectQL}
3660
- ${NoteQL}
3661
- ${TaskQL}
3662
- ${TranscriptionQL}
3663
- ${IngestTranscriptionInputQL}
3664
- ${ConferenceEntrypointQL}
3665
- ${ConferenceQL}
3666
- ${AttachmentInputQL}
3667
- ${AttachmentQL}
3668
- ${PersonAcceptanceQL}
3669
- ${EventQL}
3670
- ${CalendarQL}
3671
- ${IngestEmailInputQL}
3672
- ${EmailQL}
3673
- ${UpsertMessageInputQL}
3674
- ${MessageQL}
3675
- ${DocumentQL}
3676
- ${BlockDataQL}
3677
- ${DashboardQL}
3678
- ${DashboardMetadataQL}
3679
- ${WebsiteQL}
3680
- ${BlockDescriptionQL}
3681
- ${DocumentMetadataQL}
3682
- ${TemplateQL}
3683
- ${OptionQL}
3684
- ${FieldQL}
3685
- ${FieldValueQL}
3686
- ${FieldValueInputQL}
3687
- ${TableMetadataQL}
3688
- ${RecordQL}
3689
- ${RecordInputQL}
3690
- ${TableQL}
3691
- ${FindRecordInputQL}
3692
- ${FindRecordsInputQL}
3693
- ${UpsertRecordsInputQL}
3694
- ${FindTenantInputQL}
3695
- ${FindTenantsInputQL}
3696
- ${FindDomainInputQL}
3697
- ${FindCalendarInputQL}
3698
- ${FindEventInputQL}
3699
- ${UpsertNoteInputQL}
3700
- ${UpsertDocumentInputQL}
3701
- ${FindDocumentInputQL}
3702
- ${FindDashboardInputQL}
3703
- ${FindDashboardBlockInputQL}
3704
- ${FindBlockInputQL}
3705
- ${FindBlocksInputQL}
3706
- ${ArchiveBlockInputQL}
3707
- ${ArchiveBlockOutputQL}
3708
- ${UpdateRecommendationInputQL}
3709
- ${ArchiveRecommendationInputQL}
3710
- ${ArchiveRecommendationOutputQL}
3711
- ${FindProviderInputQL}
3712
- ${FindSyncInputQL}
3713
- ${SharingDomainInputQL}
3714
- ${SharingTenantInputQL}
3715
- ${UpsertTagInputQL}
3716
- ${FindTagInputQL}
3717
- ${FindTagsInputQL}
3718
- ${ArchiveTagInputQL}
3719
- ${ArchiveTagOutputQL}
3720
- ${MergeTagInputQL}
3721
- ${SetSharingTagInputQL}
3722
- ${DeleteSharingTagInputQL}
3723
- ${UpdateTaskInputQL}
3724
- ${UpsertFolderInputQL}
3725
- ${FindFolderInputQL}
3726
- ${FindFoldersInputQL}
3727
- ${ArchiveFolderInputQL}
3728
- ${ArchiveFolderOutputQL}
3729
- ${UpsertSearchInputQL}
3730
- ${FindSearchInputQL}
3731
- ${FindSearchesInputQL}
3732
- ${ArchiveSearchInputQL}
3733
- ${ArchiveSearchOutputQL}
3734
- ${SearchTagsInputQL}
3735
- ${SearchInputQL}
3736
- ${UpdateTagSharingInputQL}
3737
- ${BlockTypeQL}
3738
- ${RecommendationTypeQL}
3739
- ${TaskStatusQL}
3740
- ${OrderDirectionQL}
3741
- ${ParentItemQL}
3742
- ${ParentItemInputQL}
3743
- ${ChildItemQL}
3744
- ${ChildItemInputQL}
3745
- ${NumberFilterQL}
3746
- ${NumberFilterInputQL}
3747
- ${StringFilterQL}
3748
- ${StringFilterInputQL}
3749
- ${BusinessObjectFilterQL}
3750
- ${BusinessObjectFilterInputQL}
3751
- ${SortOptionQL}
3752
- ${SortOptionInputQL}
3753
- ${GraphSearchQL}
3754
- ${GraphSearchInputQL}
3755
- ${GraphSearchEventsInputQL}`;