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