@gleanwork/api-client 0.2.0 → 0.3.0

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 (53) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +22 -10
  3. package/dist/commonjs/__tests__/adminsearch.test.js +1783 -12
  4. package/dist/commonjs/__tests__/adminsearch.test.js.map +1 -1
  5. package/dist/commonjs/__tests__/announcements.test.js +3922 -2
  6. package/dist/commonjs/__tests__/announcements.test.js.map +1 -1
  7. package/dist/commonjs/__tests__/answers.test.js +1315 -30
  8. package/dist/commonjs/__tests__/answers.test.js.map +1 -1
  9. package/dist/commonjs/__tests__/chat.test.js +19803 -1532
  10. package/dist/commonjs/__tests__/chat.test.js.map +1 -1
  11. package/dist/commonjs/__tests__/clientsearch.test.js +3850 -142
  12. package/dist/commonjs/__tests__/clientsearch.test.js.map +1 -1
  13. package/dist/commonjs/__tests__/clientshortcuts.test.js +1051 -8
  14. package/dist/commonjs/__tests__/clientshortcuts.test.js.map +1 -1
  15. package/dist/commonjs/__tests__/collections.test.js +1053 -8
  16. package/dist/commonjs/__tests__/collections.test.js.map +1 -1
  17. package/dist/commonjs/lib/config.d.ts +6 -6
  18. package/dist/commonjs/lib/config.d.ts.map +1 -1
  19. package/dist/commonjs/lib/config.js +5 -5
  20. package/dist/commonjs/lib/config.js.map +1 -1
  21. package/dist/esm/__tests__/adminsearch.test.js +1783 -12
  22. package/dist/esm/__tests__/adminsearch.test.js.map +1 -1
  23. package/dist/esm/__tests__/announcements.test.js +3922 -2
  24. package/dist/esm/__tests__/announcements.test.js.map +1 -1
  25. package/dist/esm/__tests__/answers.test.js +1315 -30
  26. package/dist/esm/__tests__/answers.test.js.map +1 -1
  27. package/dist/esm/__tests__/chat.test.js +19803 -1532
  28. package/dist/esm/__tests__/chat.test.js.map +1 -1
  29. package/dist/esm/__tests__/clientsearch.test.js +3850 -142
  30. package/dist/esm/__tests__/clientsearch.test.js.map +1 -1
  31. package/dist/esm/__tests__/clientshortcuts.test.js +1051 -8
  32. package/dist/esm/__tests__/clientshortcuts.test.js.map +1 -1
  33. package/dist/esm/__tests__/collections.test.js +1053 -8
  34. package/dist/esm/__tests__/collections.test.js.map +1 -1
  35. package/dist/esm/lib/config.d.ts +6 -6
  36. package/dist/esm/lib/config.d.ts.map +1 -1
  37. package/dist/esm/lib/config.js +5 -5
  38. package/dist/esm/lib/config.js.map +1 -1
  39. package/docs/sdks/announcements/README.md +7846 -4
  40. package/docs/sdks/answers/README.md +2910 -340
  41. package/docs/sdks/clientshortcuts/README.md +2120 -34
  42. package/docs/sdks/collections/README.md +2124 -34
  43. package/docs/sdks/search/README.md +11601 -643
  44. package/jsr.json +1 -1
  45. package/package.json +2 -1
  46. package/src/__tests__/adminsearch.test.ts +1790 -12
  47. package/src/__tests__/announcements.test.ts +3936 -2
  48. package/src/__tests__/answers.test.ts +1324 -30
  49. package/src/__tests__/chat.test.ts +20119 -1599
  50. package/src/__tests__/clientsearch.test.ts +3867 -146
  51. package/src/__tests__/clientshortcuts.test.ts +1061 -8
  52. package/src/__tests__/collections.test.ts +1062 -8
  53. package/src/lib/config.ts +7 -7
@@ -27,7 +27,329 @@ test("Admin Search Adminsearch", async () => {
27
27
  author: {
28
28
  name: "George Clooney",
29
29
  obfuscatedId: "abc123",
30
- relatedDocuments: [],
30
+ relatedDocuments: [
31
+ {
32
+ querySuggestion: {
33
+ query: "app:github type:pull author:mortimer",
34
+ searchProviderInfo: {
35
+ name: "Google",
36
+ searchLinkUrlTemplate: "https://www.google.com/search?q={query}&hl=en",
37
+ },
38
+ label: "Mortimer's PRs",
39
+ datasource: "github",
40
+ requestOptions: {
41
+ datasourceFilter: "JIRA",
42
+ datasourcesFilter: [
43
+ "JIRA",
44
+ ],
45
+ queryOverridesFacetFilters: true,
46
+ facetFilters: [
47
+ {
48
+ fieldName: "type",
49
+ values: [
50
+ {
51
+ value: "Spreadsheet",
52
+ relationType: "EQUALS",
53
+ },
54
+ {
55
+ value: "Presentation",
56
+ relationType: "EQUALS",
57
+ },
58
+ ],
59
+ },
60
+ ],
61
+ facetFilterSets: [
62
+ {
63
+ filters: [
64
+ {
65
+ fieldName: "type",
66
+ values: [
67
+ {
68
+ value: "Spreadsheet",
69
+ relationType: "EQUALS",
70
+ },
71
+ {
72
+ value: "Presentation",
73
+ relationType: "EQUALS",
74
+ },
75
+ ],
76
+ },
77
+ ],
78
+ },
79
+ {
80
+ filters: [
81
+ {
82
+ fieldName: "type",
83
+ values: [
84
+ {
85
+ value: "Spreadsheet",
86
+ relationType: "EQUALS",
87
+ },
88
+ {
89
+ value: "Presentation",
90
+ relationType: "EQUALS",
91
+ },
92
+ ],
93
+ },
94
+ ],
95
+ },
96
+ {
97
+ filters: [
98
+ {
99
+ fieldName: "type",
100
+ values: [
101
+ {
102
+ value: "Spreadsheet",
103
+ relationType: "EQUALS",
104
+ },
105
+ {
106
+ value: "Presentation",
107
+ relationType: "EQUALS",
108
+ },
109
+ ],
110
+ },
111
+ ],
112
+ },
113
+ ],
114
+ facetBucketSize: 51090,
115
+ authTokens: [
116
+ {
117
+ accessToken: "123abc",
118
+ datasource: "gmail",
119
+ scope: "email profile https://www.googleapis.com/auth/gmail.readonly",
120
+ tokenType: "Bearer",
121
+ authUser: "1",
122
+ },
123
+ ],
124
+ },
125
+ ranges: [
126
+ {
127
+ startIndex: 636850,
128
+ },
129
+ {
130
+ startIndex: 559323,
131
+ },
132
+ {
133
+ startIndex: 639917,
134
+ },
135
+ ],
136
+ inputDetails: {
137
+ hasCopyPaste: true,
138
+ },
139
+ },
140
+ results: [
141
+ {
142
+ title: "title",
143
+ url: "https://example.com/foo/bar",
144
+ nativeAppUrl: "slack://foo/bar",
145
+ snippets: [
146
+ {
147
+ snippet: "snippet",
148
+ mimeType: "mimeType",
149
+ },
150
+ ],
151
+ },
152
+ ],
153
+ },
154
+ {
155
+ querySuggestion: {
156
+ query: "app:github type:pull author:mortimer",
157
+ searchProviderInfo: {
158
+ name: "Google",
159
+ searchLinkUrlTemplate: "https://www.google.com/search?q={query}&hl=en",
160
+ },
161
+ label: "Mortimer's PRs",
162
+ datasource: "github",
163
+ requestOptions: {
164
+ datasourceFilter: "JIRA",
165
+ datasourcesFilter: [
166
+ "JIRA",
167
+ ],
168
+ queryOverridesFacetFilters: true,
169
+ facetFilters: [
170
+ {
171
+ fieldName: "type",
172
+ values: [
173
+ {
174
+ value: "Spreadsheet",
175
+ relationType: "EQUALS",
176
+ },
177
+ {
178
+ value: "Presentation",
179
+ relationType: "EQUALS",
180
+ },
181
+ ],
182
+ },
183
+ ],
184
+ facetFilterSets: [
185
+ {
186
+ filters: [
187
+ {
188
+ fieldName: "type",
189
+ values: [
190
+ {
191
+ value: "Spreadsheet",
192
+ relationType: "EQUALS",
193
+ },
194
+ {
195
+ value: "Presentation",
196
+ relationType: "EQUALS",
197
+ },
198
+ ],
199
+ },
200
+ ],
201
+ },
202
+ {
203
+ filters: [
204
+ {
205
+ fieldName: "type",
206
+ values: [
207
+ {
208
+ value: "Spreadsheet",
209
+ relationType: "EQUALS",
210
+ },
211
+ {
212
+ value: "Presentation",
213
+ relationType: "EQUALS",
214
+ },
215
+ ],
216
+ },
217
+ ],
218
+ },
219
+ {
220
+ filters: [
221
+ {
222
+ fieldName: "type",
223
+ values: [
224
+ {
225
+ value: "Spreadsheet",
226
+ relationType: "EQUALS",
227
+ },
228
+ {
229
+ value: "Presentation",
230
+ relationType: "EQUALS",
231
+ },
232
+ ],
233
+ },
234
+ ],
235
+ },
236
+ ],
237
+ facetBucketSize: 855317,
238
+ authTokens: [
239
+ {
240
+ accessToken: "123abc",
241
+ datasource: "gmail",
242
+ scope: "email profile https://www.googleapis.com/auth/gmail.readonly",
243
+ tokenType: "Bearer",
244
+ authUser: "1",
245
+ },
246
+ ],
247
+ },
248
+ inputDetails: {
249
+ hasCopyPaste: true,
250
+ },
251
+ },
252
+ },
253
+ {
254
+ querySuggestion: {
255
+ query: "app:github type:pull author:mortimer",
256
+ searchProviderInfo: {
257
+ name: "Google",
258
+ searchLinkUrlTemplate: "https://www.google.com/search?q={query}&hl=en",
259
+ },
260
+ label: "Mortimer's PRs",
261
+ datasource: "github",
262
+ requestOptions: {
263
+ datasourceFilter: "JIRA",
264
+ datasourcesFilter: [
265
+ "JIRA",
266
+ ],
267
+ queryOverridesFacetFilters: true,
268
+ facetFilters: [
269
+ {
270
+ fieldName: "type",
271
+ values: [
272
+ {
273
+ value: "Spreadsheet",
274
+ relationType: "EQUALS",
275
+ },
276
+ {
277
+ value: "Presentation",
278
+ relationType: "EQUALS",
279
+ },
280
+ ],
281
+ },
282
+ ],
283
+ facetFilterSets: [
284
+ {
285
+ filters: [
286
+ {
287
+ fieldName: "type",
288
+ values: [
289
+ {
290
+ value: "Spreadsheet",
291
+ relationType: "EQUALS",
292
+ },
293
+ {
294
+ value: "Presentation",
295
+ relationType: "EQUALS",
296
+ },
297
+ ],
298
+ },
299
+ ],
300
+ },
301
+ {
302
+ filters: [
303
+ {
304
+ fieldName: "type",
305
+ values: [
306
+ {
307
+ value: "Spreadsheet",
308
+ relationType: "EQUALS",
309
+ },
310
+ {
311
+ value: "Presentation",
312
+ relationType: "EQUALS",
313
+ },
314
+ ],
315
+ },
316
+ ],
317
+ },
318
+ {
319
+ filters: [
320
+ {
321
+ fieldName: "type",
322
+ values: [
323
+ {
324
+ value: "Spreadsheet",
325
+ relationType: "EQUALS",
326
+ },
327
+ {
328
+ value: "Presentation",
329
+ relationType: "EQUALS",
330
+ },
331
+ ],
332
+ },
333
+ ],
334
+ },
335
+ ],
336
+ facetBucketSize: 899726,
337
+ authTokens: [
338
+ {
339
+ accessToken: "123abc",
340
+ datasource: "gmail",
341
+ scope: "email profile https://www.googleapis.com/auth/gmail.readonly",
342
+ tokenType: "Bearer",
343
+ authUser: "1",
344
+ },
345
+ ],
346
+ },
347
+ inputDetails: {
348
+ hasCopyPaste: true,
349
+ },
350
+ },
351
+ },
352
+ ],
31
353
  metadata: {
32
354
  type: "FULL_TIME",
33
355
  title: "Actor",
@@ -48,12 +370,25 @@ test("Admin Search Adminsearch", async () => {
48
370
  },
49
371
  ],
50
372
  querySuggestions: {
51
- suggestions: [],
373
+ suggestions: [
374
+ {
375
+ query: "app:github type:pull author:mortimer",
376
+ label: "Mortimer's PRs",
377
+ datasource: "github",
378
+ },
379
+ ],
52
380
  },
53
381
  inviteInfo: {
54
- invites: [],
382
+ invites: [
383
+ {},
384
+ ],
55
385
  },
56
- customFields: [],
386
+ customFields: [
387
+ {
388
+ label: "<value>",
389
+ values: [],
390
+ },
391
+ ],
57
392
  badges: [
58
393
  {
59
394
  key: "deployment_name_new_hire",
@@ -71,26 +406,1003 @@ test("Admin Search Adminsearch", async () => {
71
406
  owner: {
72
407
  name: "George Clooney",
73
408
  obfuscatedId: "abc123",
409
+ metadata: {
410
+ type: "FULL_TIME",
411
+ title: "Actor",
412
+ department: "Movies",
413
+ email: "george@example.com",
414
+ location: "Hollywood, CA",
415
+ phone: "6505551234",
416
+ photoUrl: "https://example.com/george.jpg",
417
+ startDate: new RFCDate("2000-01-23"),
418
+ datasourceProfile: [
419
+ {
420
+ datasource: "github",
421
+ handle: "<value>",
422
+ },
423
+ {
424
+ datasource: "github",
425
+ handle: "<value>",
426
+ },
427
+ {
428
+ datasource: "github",
429
+ handle: "<value>",
430
+ },
431
+ ],
432
+ querySuggestions: {},
433
+ inviteInfo: {},
434
+ badges: [
435
+ {
436
+ key: "deployment_name_new_hire",
437
+ displayName: "New hire",
438
+ iconConfig: {
439
+ color: "#343CED",
440
+ key: "person_icon",
441
+ iconType: "GLYPH",
442
+ name: "user",
443
+ },
444
+ },
445
+ ],
446
+ },
74
447
  },
75
- mentionedPeople: [],
448
+ mentionedPeople: [
449
+ {
450
+ name: "George Clooney",
451
+ obfuscatedId: "abc123",
452
+ },
453
+ ],
76
454
  components: [
77
455
  "Backend",
78
456
  "Networking",
79
457
  ],
80
458
  status: "[\"Done\"]",
81
- pins: [],
459
+ pins: [
460
+ {
461
+ audienceFilters: [
462
+ {
463
+ fieldName: "type",
464
+ values: [
465
+ {
466
+ value: "Spreadsheet",
467
+ relationType: "EQUALS",
468
+ },
469
+ {
470
+ value: "Presentation",
471
+ relationType: "EQUALS",
472
+ },
473
+ ],
474
+ },
475
+ ],
476
+ documentId: "<id>",
477
+ attribution: {
478
+ name: "George Clooney",
479
+ obfuscatedId: "abc123",
480
+ metadata: {
481
+ type: "FULL_TIME",
482
+ title: "Actor",
483
+ department: "Movies",
484
+ email: "george@example.com",
485
+ location: "Hollywood, CA",
486
+ phone: "6505551234",
487
+ photoUrl: "https://example.com/george.jpg",
488
+ startDate: new RFCDate("2000-01-23"),
489
+ datasourceProfile: [
490
+ {
491
+ datasource: "github",
492
+ handle: "<value>",
493
+ },
494
+ {
495
+ datasource: "github",
496
+ handle: "<value>",
497
+ },
498
+ ],
499
+ querySuggestions: {},
500
+ inviteInfo: {},
501
+ badges: [
502
+ {
503
+ key: "deployment_name_new_hire",
504
+ displayName: "New hire",
505
+ iconConfig: {
506
+ color: "#343CED",
507
+ key: "person_icon",
508
+ iconType: "GLYPH",
509
+ name: "user",
510
+ },
511
+ },
512
+ ],
513
+ },
514
+ },
515
+ updatedBy: {
516
+ name: "George Clooney",
517
+ obfuscatedId: "abc123",
518
+ metadata: {
519
+ type: "FULL_TIME",
520
+ title: "Actor",
521
+ department: "Movies",
522
+ email: "george@example.com",
523
+ location: "Hollywood, CA",
524
+ phone: "6505551234",
525
+ photoUrl: "https://example.com/george.jpg",
526
+ startDate: new RFCDate("2000-01-23"),
527
+ datasourceProfile: [
528
+ {
529
+ datasource: "github",
530
+ handle: "<value>",
531
+ },
532
+ {
533
+ datasource: "github",
534
+ handle: "<value>",
535
+ },
536
+ {
537
+ datasource: "github",
538
+ handle: "<value>",
539
+ },
540
+ ],
541
+ querySuggestions: {},
542
+ inviteInfo: {},
543
+ badges: [
544
+ {
545
+ key: "deployment_name_new_hire",
546
+ displayName: "New hire",
547
+ iconConfig: {
548
+ color: "#343CED",
549
+ key: "person_icon",
550
+ iconType: "GLYPH",
551
+ name: "user",
552
+ },
553
+ },
554
+ ],
555
+ },
556
+ },
557
+ },
558
+ ],
82
559
  assignedTo: {
83
560
  name: "George Clooney",
84
561
  obfuscatedId: "abc123",
562
+ metadata: {
563
+ type: "FULL_TIME",
564
+ title: "Actor",
565
+ department: "Movies",
566
+ email: "george@example.com",
567
+ location: "Hollywood, CA",
568
+ phone: "6505551234",
569
+ photoUrl: "https://example.com/george.jpg",
570
+ startDate: new RFCDate("2000-01-23"),
571
+ datasourceProfile: [
572
+ {
573
+ datasource: "github",
574
+ handle: "<value>",
575
+ },
576
+ {
577
+ datasource: "github",
578
+ handle: "<value>",
579
+ },
580
+ ],
581
+ querySuggestions: {},
582
+ inviteInfo: {},
583
+ badges: [
584
+ {
585
+ key: "deployment_name_new_hire",
586
+ displayName: "New hire",
587
+ iconConfig: {
588
+ color: "#343CED",
589
+ key: "person_icon",
590
+ iconType: "GLYPH",
591
+ name: "user",
592
+ },
593
+ },
594
+ ],
595
+ },
85
596
  },
86
597
  updatedBy: {
87
598
  name: "George Clooney",
88
599
  obfuscatedId: "abc123",
600
+ metadata: {
601
+ type: "FULL_TIME",
602
+ title: "Actor",
603
+ department: "Movies",
604
+ email: "george@example.com",
605
+ location: "Hollywood, CA",
606
+ phone: "6505551234",
607
+ photoUrl: "https://example.com/george.jpg",
608
+ startDate: new RFCDate("2000-01-23"),
609
+ datasourceProfile: [
610
+ {
611
+ datasource: "github",
612
+ handle: "<value>",
613
+ },
614
+ {
615
+ datasource: "github",
616
+ handle: "<value>",
617
+ },
618
+ {
619
+ datasource: "github",
620
+ handle: "<value>",
621
+ },
622
+ ],
623
+ querySuggestions: {},
624
+ inviteInfo: {},
625
+ badges: [
626
+ {
627
+ key: "deployment_name_new_hire",
628
+ displayName: "New hire",
629
+ iconConfig: {
630
+ color: "#343CED",
631
+ key: "person_icon",
632
+ iconType: "GLYPH",
633
+ name: "user",
634
+ },
635
+ },
636
+ ],
637
+ },
89
638
  },
90
- collections: [],
639
+ collections: [
640
+ {
641
+ name: "<value>",
642
+ description: "mmm video mid",
643
+ addedRoles: [
644
+ {
645
+ person: {
646
+ name: "George Clooney",
647
+ obfuscatedId: "abc123",
648
+ metadata: {
649
+ type: "FULL_TIME",
650
+ title: "Actor",
651
+ department: "Movies",
652
+ email: "george@example.com",
653
+ location: "Hollywood, CA",
654
+ phone: "6505551234",
655
+ photoUrl: "https://example.com/george.jpg",
656
+ startDate: new RFCDate("2000-01-23"),
657
+ datasourceProfile: [
658
+ {
659
+ datasource: "github",
660
+ handle: "<value>",
661
+ },
662
+ ],
663
+ querySuggestions: {},
664
+ inviteInfo: {},
665
+ badges: [
666
+ {
667
+ key: "deployment_name_new_hire",
668
+ displayName: "New hire",
669
+ iconConfig: {
670
+ color: "#343CED",
671
+ key: "person_icon",
672
+ iconType: "GLYPH",
673
+ name: "user",
674
+ },
675
+ },
676
+ ],
677
+ },
678
+ },
679
+ role: "OWNER",
680
+ },
681
+ {
682
+ person: {
683
+ name: "George Clooney",
684
+ obfuscatedId: "abc123",
685
+ metadata: {
686
+ type: "FULL_TIME",
687
+ title: "Actor",
688
+ department: "Movies",
689
+ email: "george@example.com",
690
+ location: "Hollywood, CA",
691
+ phone: "6505551234",
692
+ photoUrl: "https://example.com/george.jpg",
693
+ startDate: new RFCDate("2000-01-23"),
694
+ datasourceProfile: [
695
+ {
696
+ datasource: "github",
697
+ handle: "<value>",
698
+ },
699
+ {
700
+ datasource: "github",
701
+ handle: "<value>",
702
+ },
703
+ ],
704
+ querySuggestions: {},
705
+ inviteInfo: {},
706
+ badges: [
707
+ {
708
+ key: "deployment_name_new_hire",
709
+ displayName: "New hire",
710
+ iconConfig: {
711
+ color: "#343CED",
712
+ key: "person_icon",
713
+ iconType: "GLYPH",
714
+ name: "user",
715
+ },
716
+ },
717
+ ],
718
+ },
719
+ },
720
+ role: "ANSWER_MODERATOR",
721
+ },
722
+ {
723
+ person: {
724
+ name: "George Clooney",
725
+ obfuscatedId: "abc123",
726
+ metadata: {
727
+ type: "FULL_TIME",
728
+ title: "Actor",
729
+ department: "Movies",
730
+ email: "george@example.com",
731
+ location: "Hollywood, CA",
732
+ phone: "6505551234",
733
+ photoUrl: "https://example.com/george.jpg",
734
+ startDate: new RFCDate("2000-01-23"),
735
+ datasourceProfile: [
736
+ {
737
+ datasource: "github",
738
+ handle: "<value>",
739
+ },
740
+ ],
741
+ querySuggestions: {},
742
+ inviteInfo: {},
743
+ badges: [
744
+ {
745
+ key: "deployment_name_new_hire",
746
+ displayName: "New hire",
747
+ iconConfig: {
748
+ color: "#343CED",
749
+ key: "person_icon",
750
+ iconType: "GLYPH",
751
+ name: "user",
752
+ },
753
+ },
754
+ ],
755
+ },
756
+ },
757
+ role: "EDITOR",
758
+ },
759
+ ],
760
+ removedRoles: [
761
+ {
762
+ person: {
763
+ name: "George Clooney",
764
+ obfuscatedId: "abc123",
765
+ metadata: {
766
+ type: "FULL_TIME",
767
+ title: "Actor",
768
+ department: "Movies",
769
+ email: "george@example.com",
770
+ location: "Hollywood, CA",
771
+ phone: "6505551234",
772
+ photoUrl: "https://example.com/george.jpg",
773
+ startDate: new RFCDate("2000-01-23"),
774
+ datasourceProfile: [
775
+ {
776
+ datasource: "github",
777
+ handle: "<value>",
778
+ },
779
+ ],
780
+ querySuggestions: {},
781
+ inviteInfo: {},
782
+ badges: [
783
+ {
784
+ key: "deployment_name_new_hire",
785
+ displayName: "New hire",
786
+ iconConfig: {
787
+ color: "#343CED",
788
+ key: "person_icon",
789
+ iconType: "GLYPH",
790
+ name: "user",
791
+ },
792
+ },
793
+ ],
794
+ },
795
+ },
796
+ role: "ANSWER_MODERATOR",
797
+ },
798
+ {
799
+ person: {
800
+ name: "George Clooney",
801
+ obfuscatedId: "abc123",
802
+ metadata: {
803
+ type: "FULL_TIME",
804
+ title: "Actor",
805
+ department: "Movies",
806
+ email: "george@example.com",
807
+ location: "Hollywood, CA",
808
+ phone: "6505551234",
809
+ photoUrl: "https://example.com/george.jpg",
810
+ startDate: new RFCDate("2000-01-23"),
811
+ datasourceProfile: [
812
+ {
813
+ datasource: "github",
814
+ handle: "<value>",
815
+ },
816
+ {
817
+ datasource: "github",
818
+ handle: "<value>",
819
+ },
820
+ {
821
+ datasource: "github",
822
+ handle: "<value>",
823
+ },
824
+ ],
825
+ querySuggestions: {},
826
+ inviteInfo: {},
827
+ badges: [
828
+ {
829
+ key: "deployment_name_new_hire",
830
+ displayName: "New hire",
831
+ iconConfig: {
832
+ color: "#343CED",
833
+ key: "person_icon",
834
+ iconType: "GLYPH",
835
+ name: "user",
836
+ },
837
+ },
838
+ ],
839
+ },
840
+ },
841
+ role: "VERIFIER",
842
+ },
843
+ {
844
+ person: {
845
+ name: "George Clooney",
846
+ obfuscatedId: "abc123",
847
+ metadata: {
848
+ type: "FULL_TIME",
849
+ title: "Actor",
850
+ department: "Movies",
851
+ email: "george@example.com",
852
+ location: "Hollywood, CA",
853
+ phone: "6505551234",
854
+ photoUrl: "https://example.com/george.jpg",
855
+ startDate: new RFCDate("2000-01-23"),
856
+ datasourceProfile: [
857
+ {
858
+ datasource: "github",
859
+ handle: "<value>",
860
+ },
861
+ ],
862
+ querySuggestions: {},
863
+ inviteInfo: {},
864
+ badges: [
865
+ {
866
+ key: "deployment_name_new_hire",
867
+ displayName: "New hire",
868
+ iconConfig: {
869
+ color: "#343CED",
870
+ key: "person_icon",
871
+ iconType: "GLYPH",
872
+ name: "user",
873
+ },
874
+ },
875
+ ],
876
+ },
877
+ },
878
+ role: "OWNER",
879
+ },
880
+ ],
881
+ audienceFilters: [
882
+ {
883
+ fieldName: "type",
884
+ values: [
885
+ {
886
+ value: "Spreadsheet",
887
+ relationType: "EQUALS",
888
+ },
889
+ {
890
+ value: "Presentation",
891
+ relationType: "EQUALS",
892
+ },
893
+ ],
894
+ },
895
+ ],
896
+ id: 524051,
897
+ creator: {
898
+ name: "George Clooney",
899
+ obfuscatedId: "abc123",
900
+ metadata: {
901
+ type: "FULL_TIME",
902
+ title: "Actor",
903
+ department: "Movies",
904
+ email: "george@example.com",
905
+ location: "Hollywood, CA",
906
+ phone: "6505551234",
907
+ photoUrl: "https://example.com/george.jpg",
908
+ startDate: new RFCDate("2000-01-23"),
909
+ datasourceProfile: [
910
+ {
911
+ datasource: "github",
912
+ handle: "<value>",
913
+ },
914
+ ],
915
+ querySuggestions: {},
916
+ inviteInfo: {},
917
+ badges: [
918
+ {
919
+ key: "deployment_name_new_hire",
920
+ displayName: "New hire",
921
+ iconConfig: {
922
+ color: "#343CED",
923
+ key: "person_icon",
924
+ iconType: "GLYPH",
925
+ name: "user",
926
+ },
927
+ },
928
+ ],
929
+ },
930
+ },
931
+ updatedBy: {
932
+ name: "George Clooney",
933
+ obfuscatedId: "abc123",
934
+ metadata: {
935
+ type: "FULL_TIME",
936
+ title: "Actor",
937
+ department: "Movies",
938
+ email: "george@example.com",
939
+ location: "Hollywood, CA",
940
+ phone: "6505551234",
941
+ photoUrl: "https://example.com/george.jpg",
942
+ startDate: new RFCDate("2000-01-23"),
943
+ datasourceProfile: [
944
+ {
945
+ datasource: "github",
946
+ handle: "<value>",
947
+ },
948
+ {
949
+ datasource: "github",
950
+ handle: "<value>",
951
+ },
952
+ ],
953
+ querySuggestions: {},
954
+ inviteInfo: {},
955
+ badges: [
956
+ {
957
+ key: "deployment_name_new_hire",
958
+ displayName: "New hire",
959
+ iconConfig: {
960
+ color: "#343CED",
961
+ key: "person_icon",
962
+ iconType: "GLYPH",
963
+ name: "user",
964
+ },
965
+ },
966
+ ],
967
+ },
968
+ },
969
+ items: [
970
+ {
971
+ collectionId: 75113,
972
+ createdBy: {
973
+ name: "George Clooney",
974
+ obfuscatedId: "abc123",
975
+ metadata: {
976
+ type: "FULL_TIME",
977
+ title: "Actor",
978
+ department: "Movies",
979
+ email: "george@example.com",
980
+ location: "Hollywood, CA",
981
+ phone: "6505551234",
982
+ photoUrl: "https://example.com/george.jpg",
983
+ startDate: new RFCDate("2000-01-23"),
984
+ datasourceProfile: [
985
+ {
986
+ datasource: "github",
987
+ handle: "<value>",
988
+ },
989
+ {
990
+ datasource: "github",
991
+ handle: "<value>",
992
+ },
993
+ ],
994
+ querySuggestions: {},
995
+ inviteInfo: {},
996
+ badges: [
997
+ {
998
+ key: "deployment_name_new_hire",
999
+ displayName: "New hire",
1000
+ iconConfig: {
1001
+ color: "#343CED",
1002
+ key: "person_icon",
1003
+ iconType: "GLYPH",
1004
+ name: "user",
1005
+ },
1006
+ },
1007
+ ],
1008
+ },
1009
+ },
1010
+ shortcut: {
1011
+ inputAlias: "<value>",
1012
+ createdBy: {
1013
+ name: "George Clooney",
1014
+ obfuscatedId: "abc123",
1015
+ metadata: {
1016
+ type: "FULL_TIME",
1017
+ title: "Actor",
1018
+ department: "Movies",
1019
+ email: "george@example.com",
1020
+ location: "Hollywood, CA",
1021
+ phone: "6505551234",
1022
+ photoUrl: "https://example.com/george.jpg",
1023
+ startDate: new RFCDate("2000-01-23"),
1024
+ datasourceProfile: [
1025
+ {
1026
+ datasource: "github",
1027
+ handle: "<value>",
1028
+ },
1029
+ {
1030
+ datasource: "github",
1031
+ handle: "<value>",
1032
+ },
1033
+ ],
1034
+ querySuggestions: {},
1035
+ inviteInfo: {},
1036
+ badges: [
1037
+ {
1038
+ key: "deployment_name_new_hire",
1039
+ displayName: "New hire",
1040
+ iconConfig: {
1041
+ color: "#343CED",
1042
+ key: "person_icon",
1043
+ iconType: "GLYPH",
1044
+ name: "user",
1045
+ },
1046
+ },
1047
+ ],
1048
+ },
1049
+ },
1050
+ updatedBy: {
1051
+ name: "George Clooney",
1052
+ obfuscatedId: "abc123",
1053
+ metadata: {
1054
+ type: "FULL_TIME",
1055
+ title: "Actor",
1056
+ department: "Movies",
1057
+ email: "george@example.com",
1058
+ location: "Hollywood, CA",
1059
+ phone: "6505551234",
1060
+ photoUrl: "https://example.com/george.jpg",
1061
+ startDate: new RFCDate("2000-01-23"),
1062
+ datasourceProfile: [
1063
+ {
1064
+ datasource: "github",
1065
+ handle: "<value>",
1066
+ },
1067
+ ],
1068
+ querySuggestions: {},
1069
+ inviteInfo: {},
1070
+ badges: [
1071
+ {
1072
+ key: "deployment_name_new_hire",
1073
+ displayName: "New hire",
1074
+ iconConfig: {
1075
+ color: "#343CED",
1076
+ key: "person_icon",
1077
+ iconType: "GLYPH",
1078
+ name: "user",
1079
+ },
1080
+ },
1081
+ ],
1082
+ },
1083
+ },
1084
+ roles: [
1085
+ {
1086
+ person: {
1087
+ name: "George Clooney",
1088
+ obfuscatedId: "abc123",
1089
+ metadata: {
1090
+ type: "FULL_TIME",
1091
+ title: "Actor",
1092
+ department: "Movies",
1093
+ email: "george@example.com",
1094
+ location: "Hollywood, CA",
1095
+ phone: "6505551234",
1096
+ photoUrl: "https://example.com/george.jpg",
1097
+ startDate: new RFCDate("2000-01-23"),
1098
+ datasourceProfile: [
1099
+ {
1100
+ datasource: "github",
1101
+ handle: "<value>",
1102
+ },
1103
+ {
1104
+ datasource: "github",
1105
+ handle: "<value>",
1106
+ },
1107
+ {
1108
+ datasource: "github",
1109
+ handle: "<value>",
1110
+ },
1111
+ ],
1112
+ querySuggestions: {},
1113
+ inviteInfo: {},
1114
+ badges: [
1115
+ {
1116
+ key: "deployment_name_new_hire",
1117
+ displayName: "New hire",
1118
+ iconConfig: {
1119
+ color: "#343CED",
1120
+ key: "person_icon",
1121
+ iconType: "GLYPH",
1122
+ name: "user",
1123
+ },
1124
+ },
1125
+ ],
1126
+ },
1127
+ },
1128
+ role: "VERIFIER",
1129
+ },
1130
+ ],
1131
+ },
1132
+ itemType: "COLLECTION",
1133
+ },
1134
+ {
1135
+ collectionId: 744767,
1136
+ createdBy: {
1137
+ name: "George Clooney",
1138
+ obfuscatedId: "abc123",
1139
+ metadata: {
1140
+ type: "FULL_TIME",
1141
+ title: "Actor",
1142
+ department: "Movies",
1143
+ email: "george@example.com",
1144
+ location: "Hollywood, CA",
1145
+ phone: "6505551234",
1146
+ photoUrl: "https://example.com/george.jpg",
1147
+ startDate: new RFCDate("2000-01-23"),
1148
+ datasourceProfile: [
1149
+ {
1150
+ datasource: "github",
1151
+ handle: "<value>",
1152
+ },
1153
+ {
1154
+ datasource: "github",
1155
+ handle: "<value>",
1156
+ },
1157
+ {
1158
+ datasource: "github",
1159
+ handle: "<value>",
1160
+ },
1161
+ ],
1162
+ querySuggestions: {},
1163
+ inviteInfo: {},
1164
+ badges: [
1165
+ {
1166
+ key: "deployment_name_new_hire",
1167
+ displayName: "New hire",
1168
+ iconConfig: {
1169
+ color: "#343CED",
1170
+ key: "person_icon",
1171
+ iconType: "GLYPH",
1172
+ name: "user",
1173
+ },
1174
+ },
1175
+ ],
1176
+ },
1177
+ },
1178
+ shortcut: {
1179
+ inputAlias: "<value>",
1180
+ createdBy: {
1181
+ name: "George Clooney",
1182
+ obfuscatedId: "abc123",
1183
+ metadata: {
1184
+ type: "FULL_TIME",
1185
+ title: "Actor",
1186
+ department: "Movies",
1187
+ email: "george@example.com",
1188
+ location: "Hollywood, CA",
1189
+ phone: "6505551234",
1190
+ photoUrl: "https://example.com/george.jpg",
1191
+ startDate: new RFCDate("2000-01-23"),
1192
+ datasourceProfile: [
1193
+ {
1194
+ datasource: "github",
1195
+ handle: "<value>",
1196
+ },
1197
+ {
1198
+ datasource: "github",
1199
+ handle: "<value>",
1200
+ },
1201
+ ],
1202
+ querySuggestions: {},
1203
+ inviteInfo: {},
1204
+ badges: [
1205
+ {
1206
+ key: "deployment_name_new_hire",
1207
+ displayName: "New hire",
1208
+ iconConfig: {
1209
+ color: "#343CED",
1210
+ key: "person_icon",
1211
+ iconType: "GLYPH",
1212
+ name: "user",
1213
+ },
1214
+ },
1215
+ ],
1216
+ },
1217
+ },
1218
+ updatedBy: {
1219
+ name: "George Clooney",
1220
+ obfuscatedId: "abc123",
1221
+ metadata: {
1222
+ type: "FULL_TIME",
1223
+ title: "Actor",
1224
+ department: "Movies",
1225
+ email: "george@example.com",
1226
+ location: "Hollywood, CA",
1227
+ phone: "6505551234",
1228
+ photoUrl: "https://example.com/george.jpg",
1229
+ startDate: new RFCDate("2000-01-23"),
1230
+ datasourceProfile: [
1231
+ {
1232
+ datasource: "github",
1233
+ handle: "<value>",
1234
+ },
1235
+ ],
1236
+ querySuggestions: {},
1237
+ inviteInfo: {},
1238
+ badges: [
1239
+ {
1240
+ key: "deployment_name_new_hire",
1241
+ displayName: "New hire",
1242
+ iconConfig: {
1243
+ color: "#343CED",
1244
+ key: "person_icon",
1245
+ iconType: "GLYPH",
1246
+ name: "user",
1247
+ },
1248
+ },
1249
+ ],
1250
+ },
1251
+ },
1252
+ },
1253
+ itemType: "DOCUMENT",
1254
+ },
1255
+ ],
1256
+ },
1257
+ {
1258
+ name: "<value>",
1259
+ description: "brr finally hastily amused needily if uh-huh outside wrongly too",
1260
+ audienceFilters: [
1261
+ {
1262
+ fieldName: "type",
1263
+ values: [
1264
+ {
1265
+ value: "Spreadsheet",
1266
+ relationType: "EQUALS",
1267
+ },
1268
+ {
1269
+ value: "Presentation",
1270
+ relationType: "EQUALS",
1271
+ },
1272
+ ],
1273
+ },
1274
+ ],
1275
+ id: 448428,
1276
+ creator: {
1277
+ name: "George Clooney",
1278
+ obfuscatedId: "abc123",
1279
+ metadata: {
1280
+ type: "FULL_TIME",
1281
+ title: "Actor",
1282
+ department: "Movies",
1283
+ email: "george@example.com",
1284
+ location: "Hollywood, CA",
1285
+ phone: "6505551234",
1286
+ photoUrl: "https://example.com/george.jpg",
1287
+ startDate: new RFCDate("2000-01-23"),
1288
+ datasourceProfile: [
1289
+ {
1290
+ datasource: "github",
1291
+ handle: "<value>",
1292
+ },
1293
+ {
1294
+ datasource: "github",
1295
+ handle: "<value>",
1296
+ },
1297
+ {
1298
+ datasource: "github",
1299
+ handle: "<value>",
1300
+ },
1301
+ ],
1302
+ querySuggestions: {},
1303
+ inviteInfo: {},
1304
+ badges: [
1305
+ {
1306
+ key: "deployment_name_new_hire",
1307
+ displayName: "New hire",
1308
+ iconConfig: {
1309
+ color: "#343CED",
1310
+ key: "person_icon",
1311
+ iconType: "GLYPH",
1312
+ name: "user",
1313
+ },
1314
+ },
1315
+ ],
1316
+ },
1317
+ },
1318
+ updatedBy: {
1319
+ name: "George Clooney",
1320
+ obfuscatedId: "abc123",
1321
+ metadata: {
1322
+ type: "FULL_TIME",
1323
+ title: "Actor",
1324
+ department: "Movies",
1325
+ email: "george@example.com",
1326
+ location: "Hollywood, CA",
1327
+ phone: "6505551234",
1328
+ photoUrl: "https://example.com/george.jpg",
1329
+ startDate: new RFCDate("2000-01-23"),
1330
+ datasourceProfile: [
1331
+ {
1332
+ datasource: "github",
1333
+ handle: "<value>",
1334
+ },
1335
+ ],
1336
+ querySuggestions: {},
1337
+ inviteInfo: {},
1338
+ badges: [
1339
+ {
1340
+ key: "deployment_name_new_hire",
1341
+ displayName: "New hire",
1342
+ iconConfig: {
1343
+ color: "#343CED",
1344
+ key: "person_icon",
1345
+ iconType: "GLYPH",
1346
+ name: "user",
1347
+ },
1348
+ },
1349
+ ],
1350
+ },
1351
+ },
1352
+ },
1353
+ ],
91
1354
  interactions: {
92
- reacts: [],
93
- shares: [],
1355
+ reacts: [
1356
+ {
1357
+ reactors: [
1358
+ {
1359
+ name: "George Clooney",
1360
+ obfuscatedId: "abc123",
1361
+ },
1362
+ ],
1363
+ },
1364
+ {},
1365
+ {},
1366
+ ],
1367
+ shares: [
1368
+ {
1369
+ numDaysAgo: 876677,
1370
+ sharer: {
1371
+ name: "George Clooney",
1372
+ obfuscatedId: "abc123",
1373
+ metadata: {
1374
+ type: "FULL_TIME",
1375
+ title: "Actor",
1376
+ department: "Movies",
1377
+ email: "george@example.com",
1378
+ location: "Hollywood, CA",
1379
+ phone: "6505551234",
1380
+ photoUrl: "https://example.com/george.jpg",
1381
+ startDate: new RFCDate("2000-01-23"),
1382
+ datasourceProfile: [
1383
+ {
1384
+ datasource: "github",
1385
+ handle: "<value>",
1386
+ },
1387
+ ],
1388
+ querySuggestions: {},
1389
+ inviteInfo: {},
1390
+ badges: [
1391
+ {
1392
+ key: "deployment_name_new_hire",
1393
+ displayName: "New hire",
1394
+ iconConfig: {
1395
+ color: "#343CED",
1396
+ key: "person_icon",
1397
+ iconType: "GLYPH",
1398
+ name: "user",
1399
+ },
1400
+ },
1401
+ ],
1402
+ },
1403
+ },
1404
+ },
1405
+ ],
94
1406
  },
95
1407
  verification: {
96
1408
  state: "UNVERIFIED",
@@ -98,29 +1410,488 @@ test("Admin Search Adminsearch", async () => {
98
1410
  lastVerifier: {
99
1411
  name: "George Clooney",
100
1412
  obfuscatedId: "abc123",
1413
+ metadata: {
1414
+ type: "FULL_TIME",
1415
+ title: "Actor",
1416
+ department: "Movies",
1417
+ email: "george@example.com",
1418
+ location: "Hollywood, CA",
1419
+ phone: "6505551234",
1420
+ photoUrl: "https://example.com/george.jpg",
1421
+ startDate: new RFCDate("2000-01-23"),
1422
+ datasourceProfile: [
1423
+ {
1424
+ datasource: "github",
1425
+ handle: "<value>",
1426
+ },
1427
+ ],
1428
+ querySuggestions: {},
1429
+ inviteInfo: {},
1430
+ badges: [
1431
+ {
1432
+ key: "deployment_name_new_hire",
1433
+ displayName: "New hire",
1434
+ iconConfig: {
1435
+ color: "#343CED",
1436
+ key: "person_icon",
1437
+ iconType: "GLYPH",
1438
+ name: "user",
1439
+ },
1440
+ },
1441
+ ],
1442
+ },
101
1443
  },
102
- reminders: [],
1444
+ reminders: [
1445
+ {
1446
+ assignee: {
1447
+ name: "George Clooney",
1448
+ obfuscatedId: "abc123",
1449
+ metadata: {
1450
+ type: "FULL_TIME",
1451
+ title: "Actor",
1452
+ department: "Movies",
1453
+ email: "george@example.com",
1454
+ location: "Hollywood, CA",
1455
+ phone: "6505551234",
1456
+ photoUrl: "https://example.com/george.jpg",
1457
+ startDate: new RFCDate("2000-01-23"),
1458
+ datasourceProfile: [
1459
+ {
1460
+ datasource: "github",
1461
+ handle: "<value>",
1462
+ },
1463
+ {
1464
+ datasource: "github",
1465
+ handle: "<value>",
1466
+ },
1467
+ ],
1468
+ querySuggestions: {},
1469
+ inviteInfo: {},
1470
+ badges: [
1471
+ {
1472
+ key: "deployment_name_new_hire",
1473
+ displayName: "New hire",
1474
+ iconConfig: {
1475
+ color: "#343CED",
1476
+ key: "person_icon",
1477
+ iconType: "GLYPH",
1478
+ name: "user",
1479
+ },
1480
+ },
1481
+ ],
1482
+ },
1483
+ },
1484
+ requestor: {
1485
+ name: "George Clooney",
1486
+ obfuscatedId: "abc123",
1487
+ metadata: {
1488
+ type: "FULL_TIME",
1489
+ title: "Actor",
1490
+ department: "Movies",
1491
+ email: "george@example.com",
1492
+ location: "Hollywood, CA",
1493
+ phone: "6505551234",
1494
+ photoUrl: "https://example.com/george.jpg",
1495
+ startDate: new RFCDate("2000-01-23"),
1496
+ datasourceProfile: [
1497
+ {
1498
+ datasource: "github",
1499
+ handle: "<value>",
1500
+ },
1501
+ {
1502
+ datasource: "github",
1503
+ handle: "<value>",
1504
+ },
1505
+ ],
1506
+ querySuggestions: {},
1507
+ inviteInfo: {},
1508
+ badges: [
1509
+ {
1510
+ key: "deployment_name_new_hire",
1511
+ displayName: "New hire",
1512
+ iconConfig: {
1513
+ color: "#343CED",
1514
+ key: "person_icon",
1515
+ iconType: "GLYPH",
1516
+ name: "user",
1517
+ },
1518
+ },
1519
+ ],
1520
+ },
1521
+ },
1522
+ remindAt: 854607,
1523
+ },
1524
+ {
1525
+ assignee: {
1526
+ name: "George Clooney",
1527
+ obfuscatedId: "abc123",
1528
+ metadata: {
1529
+ type: "FULL_TIME",
1530
+ title: "Actor",
1531
+ department: "Movies",
1532
+ email: "george@example.com",
1533
+ location: "Hollywood, CA",
1534
+ phone: "6505551234",
1535
+ photoUrl: "https://example.com/george.jpg",
1536
+ startDate: new RFCDate("2000-01-23"),
1537
+ datasourceProfile: [
1538
+ {
1539
+ datasource: "github",
1540
+ handle: "<value>",
1541
+ },
1542
+ {
1543
+ datasource: "github",
1544
+ handle: "<value>",
1545
+ },
1546
+ {
1547
+ datasource: "github",
1548
+ handle: "<value>",
1549
+ },
1550
+ ],
1551
+ querySuggestions: {},
1552
+ inviteInfo: {},
1553
+ badges: [
1554
+ {
1555
+ key: "deployment_name_new_hire",
1556
+ displayName: "New hire",
1557
+ iconConfig: {
1558
+ color: "#343CED",
1559
+ key: "person_icon",
1560
+ iconType: "GLYPH",
1561
+ name: "user",
1562
+ },
1563
+ },
1564
+ ],
1565
+ },
1566
+ },
1567
+ requestor: {
1568
+ name: "George Clooney",
1569
+ obfuscatedId: "abc123",
1570
+ metadata: {
1571
+ type: "FULL_TIME",
1572
+ title: "Actor",
1573
+ department: "Movies",
1574
+ email: "george@example.com",
1575
+ location: "Hollywood, CA",
1576
+ phone: "6505551234",
1577
+ photoUrl: "https://example.com/george.jpg",
1578
+ startDate: new RFCDate("2000-01-23"),
1579
+ datasourceProfile: [
1580
+ {
1581
+ datasource: "github",
1582
+ handle: "<value>",
1583
+ },
1584
+ {
1585
+ datasource: "github",
1586
+ handle: "<value>",
1587
+ },
1588
+ ],
1589
+ querySuggestions: {},
1590
+ inviteInfo: {},
1591
+ badges: [
1592
+ {
1593
+ key: "deployment_name_new_hire",
1594
+ displayName: "New hire",
1595
+ iconConfig: {
1596
+ color: "#343CED",
1597
+ key: "person_icon",
1598
+ iconType: "GLYPH",
1599
+ name: "user",
1600
+ },
1601
+ },
1602
+ ],
1603
+ },
1604
+ },
1605
+ remindAt: 214607,
1606
+ },
1607
+ {
1608
+ assignee: {
1609
+ name: "George Clooney",
1610
+ obfuscatedId: "abc123",
1611
+ metadata: {
1612
+ type: "FULL_TIME",
1613
+ title: "Actor",
1614
+ department: "Movies",
1615
+ email: "george@example.com",
1616
+ location: "Hollywood, CA",
1617
+ phone: "6505551234",
1618
+ photoUrl: "https://example.com/george.jpg",
1619
+ startDate: new RFCDate("2000-01-23"),
1620
+ datasourceProfile: [
1621
+ {
1622
+ datasource: "github",
1623
+ handle: "<value>",
1624
+ },
1625
+ ],
1626
+ querySuggestions: {},
1627
+ inviteInfo: {},
1628
+ badges: [
1629
+ {
1630
+ key: "deployment_name_new_hire",
1631
+ displayName: "New hire",
1632
+ iconConfig: {
1633
+ color: "#343CED",
1634
+ key: "person_icon",
1635
+ iconType: "GLYPH",
1636
+ name: "user",
1637
+ },
1638
+ },
1639
+ ],
1640
+ },
1641
+ },
1642
+ requestor: {
1643
+ name: "George Clooney",
1644
+ obfuscatedId: "abc123",
1645
+ metadata: {
1646
+ type: "FULL_TIME",
1647
+ title: "Actor",
1648
+ department: "Movies",
1649
+ email: "george@example.com",
1650
+ location: "Hollywood, CA",
1651
+ phone: "6505551234",
1652
+ photoUrl: "https://example.com/george.jpg",
1653
+ startDate: new RFCDate("2000-01-23"),
1654
+ datasourceProfile: [
1655
+ {
1656
+ datasource: "github",
1657
+ handle: "<value>",
1658
+ },
1659
+ {
1660
+ datasource: "github",
1661
+ handle: "<value>",
1662
+ },
1663
+ ],
1664
+ querySuggestions: {},
1665
+ inviteInfo: {},
1666
+ badges: [
1667
+ {
1668
+ key: "deployment_name_new_hire",
1669
+ displayName: "New hire",
1670
+ iconConfig: {
1671
+ color: "#343CED",
1672
+ key: "person_icon",
1673
+ iconType: "GLYPH",
1674
+ name: "user",
1675
+ },
1676
+ },
1677
+ ],
1678
+ },
1679
+ },
1680
+ remindAt: 204917,
1681
+ },
1682
+ ],
103
1683
  lastReminder: {
104
1684
  assignee: {
105
1685
  name: "George Clooney",
106
1686
  obfuscatedId: "abc123",
1687
+ metadata: {
1688
+ type: "FULL_TIME",
1689
+ title: "Actor",
1690
+ department: "Movies",
1691
+ email: "george@example.com",
1692
+ location: "Hollywood, CA",
1693
+ phone: "6505551234",
1694
+ photoUrl: "https://example.com/george.jpg",
1695
+ startDate: new RFCDate("2000-01-23"),
1696
+ datasourceProfile: [
1697
+ {
1698
+ datasource: "github",
1699
+ handle: "<value>",
1700
+ },
1701
+ {
1702
+ datasource: "github",
1703
+ handle: "<value>",
1704
+ },
1705
+ {
1706
+ datasource: "github",
1707
+ handle: "<value>",
1708
+ },
1709
+ ],
1710
+ querySuggestions: {},
1711
+ inviteInfo: {},
1712
+ badges: [
1713
+ {
1714
+ key: "deployment_name_new_hire",
1715
+ displayName: "New hire",
1716
+ iconConfig: {
1717
+ color: "#343CED",
1718
+ key: "person_icon",
1719
+ iconType: "GLYPH",
1720
+ name: "user",
1721
+ },
1722
+ },
1723
+ ],
1724
+ },
107
1725
  },
108
1726
  requestor: {
109
1727
  name: "George Clooney",
110
1728
  obfuscatedId: "abc123",
1729
+ metadata: {
1730
+ type: "FULL_TIME",
1731
+ title: "Actor",
1732
+ department: "Movies",
1733
+ email: "george@example.com",
1734
+ location: "Hollywood, CA",
1735
+ phone: "6505551234",
1736
+ photoUrl: "https://example.com/george.jpg",
1737
+ startDate: new RFCDate("2000-01-23"),
1738
+ datasourceProfile: [
1739
+ {
1740
+ datasource: "github",
1741
+ handle: "<value>",
1742
+ },
1743
+ ],
1744
+ querySuggestions: {},
1745
+ inviteInfo: {},
1746
+ badges: [
1747
+ {
1748
+ key: "deployment_name_new_hire",
1749
+ displayName: "New hire",
1750
+ iconConfig: {
1751
+ color: "#343CED",
1752
+ key: "person_icon",
1753
+ iconType: "GLYPH",
1754
+ name: "user",
1755
+ },
1756
+ },
1757
+ ],
1758
+ },
111
1759
  },
112
1760
  remindAt: 554738,
113
1761
  },
114
- candidateVerifiers: [],
1762
+ candidateVerifiers: [
1763
+ {
1764
+ name: "George Clooney",
1765
+ obfuscatedId: "abc123",
1766
+ },
1767
+ ],
115
1768
  },
116
1769
  },
117
- shortcuts: [],
1770
+ shortcuts: [
1771
+ {
1772
+ inputAlias: "<value>",
1773
+ createdBy: {
1774
+ name: "George Clooney",
1775
+ obfuscatedId: "abc123",
1776
+ metadata: {
1777
+ type: "FULL_TIME",
1778
+ title: "Actor",
1779
+ department: "Movies",
1780
+ email: "george@example.com",
1781
+ location: "Hollywood, CA",
1782
+ phone: "6505551234",
1783
+ photoUrl: "https://example.com/george.jpg",
1784
+ startDate: new RFCDate("2000-01-23"),
1785
+ datasourceProfile: [
1786
+ {
1787
+ datasource: "github",
1788
+ handle: "<value>",
1789
+ },
1790
+ {
1791
+ datasource: "github",
1792
+ handle: "<value>",
1793
+ },
1794
+ ],
1795
+ querySuggestions: {},
1796
+ inviteInfo: {},
1797
+ badges: [
1798
+ {
1799
+ key: "deployment_name_new_hire",
1800
+ displayName: "New hire",
1801
+ iconConfig: {
1802
+ color: "#343CED",
1803
+ key: "person_icon",
1804
+ iconType: "GLYPH",
1805
+ name: "user",
1806
+ },
1807
+ },
1808
+ ],
1809
+ },
1810
+ },
1811
+ updatedBy: {
1812
+ name: "George Clooney",
1813
+ obfuscatedId: "abc123",
1814
+ metadata: {
1815
+ type: "FULL_TIME",
1816
+ title: "Actor",
1817
+ department: "Movies",
1818
+ email: "george@example.com",
1819
+ location: "Hollywood, CA",
1820
+ phone: "6505551234",
1821
+ photoUrl: "https://example.com/george.jpg",
1822
+ startDate: new RFCDate("2000-01-23"),
1823
+ datasourceProfile: [
1824
+ {
1825
+ datasource: "github",
1826
+ handle: "<value>",
1827
+ },
1828
+ {
1829
+ datasource: "github",
1830
+ handle: "<value>",
1831
+ },
1832
+ ],
1833
+ querySuggestions: {},
1834
+ inviteInfo: {},
1835
+ badges: [
1836
+ {
1837
+ key: "deployment_name_new_hire",
1838
+ displayName: "New hire",
1839
+ iconConfig: {
1840
+ color: "#343CED",
1841
+ key: "person_icon",
1842
+ iconType: "GLYPH",
1843
+ name: "user",
1844
+ },
1845
+ },
1846
+ ],
1847
+ },
1848
+ },
1849
+ },
1850
+ ],
118
1851
  customData: {
119
1852
  "someCustomField": {},
120
1853
  },
121
1854
  contactPerson: {
122
1855
  name: "George Clooney",
123
1856
  obfuscatedId: "abc123",
1857
+ metadata: {
1858
+ type: "FULL_TIME",
1859
+ title: "Actor",
1860
+ department: "Movies",
1861
+ email: "george@example.com",
1862
+ location: "Hollywood, CA",
1863
+ phone: "6505551234",
1864
+ photoUrl: "https://example.com/george.jpg",
1865
+ startDate: new RFCDate("2000-01-23"),
1866
+ datasourceProfile: [
1867
+ {
1868
+ datasource: "github",
1869
+ handle: "<value>",
1870
+ },
1871
+ {
1872
+ datasource: "github",
1873
+ handle: "<value>",
1874
+ },
1875
+ {
1876
+ datasource: "github",
1877
+ handle: "<value>",
1878
+ },
1879
+ ],
1880
+ querySuggestions: {},
1881
+ inviteInfo: {},
1882
+ badges: [
1883
+ {
1884
+ key: "deployment_name_new_hire",
1885
+ displayName: "New hire",
1886
+ iconConfig: {
1887
+ color: "#343CED",
1888
+ key: "person_icon",
1889
+ iconType: "GLYPH",
1890
+ name: "user",
1891
+ },
1892
+ },
1893
+ ],
1894
+ },
124
1895
  },
125
1896
  },
126
1897
  },