@gleanwork/api-client 0.6.1 → 0.6.5

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 (262) hide show
  1. package/dist/commonjs/__tests__/activities.test.d.ts +2 -0
  2. package/dist/commonjs/__tests__/activities.test.d.ts.map +1 -0
  3. package/dist/commonjs/__tests__/activities.test.js +23 -0
  4. package/dist/commonjs/__tests__/activities.test.js.map +1 -0
  5. package/dist/commonjs/__tests__/agents.test.js +4 -20
  6. package/dist/commonjs/__tests__/agents.test.js.map +1 -1
  7. package/dist/commonjs/__tests__/announcements.test.js +189 -812
  8. package/dist/commonjs/__tests__/announcements.test.js.map +1 -1
  9. package/dist/commonjs/__tests__/answers.test.js +125 -254
  10. package/dist/commonjs/__tests__/answers.test.js.map +1 -1
  11. package/dist/commonjs/__tests__/calendar.test.d.ts +2 -0
  12. package/dist/commonjs/__tests__/calendar.test.d.ts.map +1 -0
  13. package/dist/commonjs/__tests__/calendar.test.js +10 -0
  14. package/dist/commonjs/__tests__/calendar.test.js.map +1 -0
  15. package/dist/commonjs/__tests__/clientactivity.test.d.ts +2 -0
  16. package/dist/commonjs/__tests__/clientactivity.test.d.ts.map +1 -0
  17. package/dist/commonjs/__tests__/{activity.test.js → clientactivity.test.js} +2 -16
  18. package/dist/commonjs/__tests__/clientactivity.test.js.map +1 -0
  19. package/dist/commonjs/__tests__/clientauthentication.test.js +3 -0
  20. package/dist/commonjs/__tests__/clientauthentication.test.js.map +1 -1
  21. package/dist/commonjs/__tests__/clientchat.test.d.ts +2 -0
  22. package/dist/commonjs/__tests__/clientchat.test.d.ts.map +1 -0
  23. package/dist/commonjs/__tests__/clientchat.test.js +9825 -0
  24. package/dist/commonjs/__tests__/clientchat.test.js.map +1 -0
  25. package/dist/commonjs/__tests__/clientdocuments.test.js +2 -13
  26. package/dist/commonjs/__tests__/clientdocuments.test.js.map +1 -1
  27. package/dist/commonjs/__tests__/clientshortcuts.test.js +78 -90
  28. package/dist/commonjs/__tests__/clientshortcuts.test.js.map +1 -1
  29. package/dist/commonjs/__tests__/clientuser.test.d.ts +2 -0
  30. package/dist/commonjs/__tests__/clientuser.test.d.ts.map +1 -0
  31. package/dist/commonjs/__tests__/clientuser.test.js +25 -0
  32. package/dist/commonjs/__tests__/clientuser.test.js.map +1 -0
  33. package/dist/commonjs/__tests__/clientverification.test.d.ts +2 -0
  34. package/dist/commonjs/__tests__/clientverification.test.d.ts.map +1 -0
  35. package/dist/commonjs/__tests__/{verification.test.js → clientverification.test.js} +4 -4
  36. package/dist/commonjs/__tests__/clientverification.test.js.map +1 -0
  37. package/dist/commonjs/__tests__/collections.test.js +69 -126
  38. package/dist/commonjs/__tests__/collections.test.js.map +1 -1
  39. package/dist/commonjs/__tests__/displayablelists.test.d.ts +2 -0
  40. package/dist/commonjs/__tests__/displayablelists.test.d.ts.map +1 -0
  41. package/dist/commonjs/__tests__/displayablelists.test.js +19 -0
  42. package/dist/commonjs/__tests__/displayablelists.test.js.map +1 -0
  43. package/dist/commonjs/__tests__/entities.test.js +3 -0
  44. package/dist/commonjs/__tests__/entities.test.js.map +1 -1
  45. package/dist/commonjs/__tests__/indexingdocuments.test.js +0 -41
  46. package/dist/commonjs/__tests__/indexingdocuments.test.js.map +1 -1
  47. package/dist/commonjs/__tests__/indexingpermissions.test.d.ts +2 -0
  48. package/dist/commonjs/__tests__/indexingpermissions.test.d.ts.map +1 -0
  49. package/dist/commonjs/__tests__/{permissions.test.js → indexingpermissions.test.js} +13 -13
  50. package/dist/commonjs/__tests__/indexingpermissions.test.js.map +1 -0
  51. package/dist/commonjs/__tests__/insights.test.js +2 -1
  52. package/dist/commonjs/__tests__/insights.test.js.map +1 -1
  53. package/dist/commonjs/__tests__/messages.test.js +2 -1
  54. package/dist/commonjs/__tests__/messages.test.js.map +1 -1
  55. package/dist/commonjs/__tests__/people.test.d.ts +2 -0
  56. package/dist/commonjs/__tests__/people.test.d.ts.map +1 -0
  57. package/dist/commonjs/__tests__/people.test.js +18 -0
  58. package/dist/commonjs/__tests__/people.test.js.map +1 -0
  59. package/dist/commonjs/__tests__/policies.test.js +3 -0
  60. package/dist/commonjs/__tests__/policies.test.js.map +1 -1
  61. package/dist/commonjs/__tests__/reports.test.js +3 -0
  62. package/dist/commonjs/__tests__/reports.test.js.map +1 -1
  63. package/dist/commonjs/__tests__/search.test.js +1993 -0
  64. package/dist/commonjs/__tests__/search.test.js.map +1 -1
  65. package/dist/commonjs/__tests__/summarize.test.d.ts +2 -0
  66. package/dist/commonjs/__tests__/summarize.test.d.ts.map +1 -0
  67. package/dist/commonjs/__tests__/summarize.test.js +24 -0
  68. package/dist/commonjs/__tests__/summarize.test.js.map +1 -0
  69. package/dist/commonjs/__tests__/troubleshooting.test.d.ts +2 -0
  70. package/dist/commonjs/__tests__/troubleshooting.test.d.ts.map +1 -0
  71. package/dist/commonjs/__tests__/troubleshooting.test.js +65 -0
  72. package/dist/commonjs/__tests__/troubleshooting.test.js.map +1 -0
  73. package/dist/commonjs/__tests__/visibilityoverrides.test.js +3 -0
  74. package/dist/commonjs/__tests__/visibilityoverrides.test.js.map +1 -1
  75. package/dist/commonjs/lib/config.d.ts +2 -2
  76. package/dist/commonjs/lib/config.js +2 -2
  77. package/dist/commonjs/models/components/agentconfig.d.ts +3 -0
  78. package/dist/commonjs/models/components/agentconfig.d.ts.map +1 -1
  79. package/dist/commonjs/models/components/agentconfig.js +1 -0
  80. package/dist/commonjs/models/components/agentconfig.js.map +1 -1
  81. package/dist/commonjs/models/components/chatrequest.d.ts +5 -0
  82. package/dist/commonjs/models/components/chatrequest.d.ts.map +1 -1
  83. package/dist/commonjs/models/components/chatrequest.js +2 -0
  84. package/dist/commonjs/models/components/chatrequest.js.map +1 -1
  85. package/dist/esm/__tests__/activities.test.d.ts +2 -0
  86. package/dist/esm/__tests__/activities.test.d.ts.map +1 -0
  87. package/dist/esm/__tests__/activities.test.js +21 -0
  88. package/dist/esm/__tests__/activities.test.js.map +1 -0
  89. package/dist/esm/__tests__/agents.test.js +4 -20
  90. package/dist/esm/__tests__/agents.test.js.map +1 -1
  91. package/dist/esm/__tests__/announcements.test.js +190 -813
  92. package/dist/esm/__tests__/announcements.test.js.map +1 -1
  93. package/dist/esm/__tests__/answers.test.js +126 -255
  94. package/dist/esm/__tests__/answers.test.js.map +1 -1
  95. package/dist/esm/__tests__/calendar.test.d.ts +2 -0
  96. package/dist/esm/__tests__/calendar.test.d.ts.map +1 -0
  97. package/dist/esm/__tests__/calendar.test.js +8 -0
  98. package/dist/esm/__tests__/calendar.test.js.map +1 -0
  99. package/dist/esm/__tests__/clientactivity.test.d.ts +2 -0
  100. package/dist/esm/__tests__/clientactivity.test.d.ts.map +1 -0
  101. package/dist/esm/__tests__/{activity.test.js → clientactivity.test.js} +2 -16
  102. package/dist/esm/__tests__/clientactivity.test.js.map +1 -0
  103. package/dist/esm/__tests__/clientauthentication.test.js +4 -1
  104. package/dist/esm/__tests__/clientauthentication.test.js.map +1 -1
  105. package/dist/esm/__tests__/clientchat.test.d.ts +2 -0
  106. package/dist/esm/__tests__/clientchat.test.d.ts.map +1 -0
  107. package/dist/esm/__tests__/clientchat.test.js +9823 -0
  108. package/dist/esm/__tests__/clientchat.test.js.map +1 -0
  109. package/dist/esm/__tests__/clientdocuments.test.js +3 -14
  110. package/dist/esm/__tests__/clientdocuments.test.js.map +1 -1
  111. package/dist/esm/__tests__/clientshortcuts.test.js +79 -91
  112. package/dist/esm/__tests__/clientshortcuts.test.js.map +1 -1
  113. package/dist/esm/__tests__/clientuser.test.d.ts +2 -0
  114. package/dist/esm/__tests__/clientuser.test.d.ts.map +1 -0
  115. package/dist/esm/__tests__/clientuser.test.js +23 -0
  116. package/dist/esm/__tests__/clientuser.test.js.map +1 -0
  117. package/dist/esm/__tests__/clientverification.test.d.ts +2 -0
  118. package/dist/esm/__tests__/clientverification.test.d.ts.map +1 -0
  119. package/dist/esm/__tests__/{verification.test.js → clientverification.test.js} +4 -4
  120. package/dist/esm/__tests__/clientverification.test.js.map +1 -0
  121. package/dist/esm/__tests__/collections.test.js +70 -127
  122. package/dist/esm/__tests__/collections.test.js.map +1 -1
  123. package/dist/esm/__tests__/displayablelists.test.d.ts +2 -0
  124. package/dist/esm/__tests__/displayablelists.test.d.ts.map +1 -0
  125. package/dist/esm/__tests__/displayablelists.test.js +17 -0
  126. package/dist/esm/__tests__/displayablelists.test.js.map +1 -0
  127. package/dist/esm/__tests__/entities.test.js +4 -1
  128. package/dist/esm/__tests__/entities.test.js.map +1 -1
  129. package/dist/esm/__tests__/indexingdocuments.test.js +1 -42
  130. package/dist/esm/__tests__/indexingdocuments.test.js.map +1 -1
  131. package/dist/esm/__tests__/indexingpermissions.test.d.ts +2 -0
  132. package/dist/esm/__tests__/indexingpermissions.test.d.ts.map +1 -0
  133. package/dist/esm/__tests__/{permissions.test.js → indexingpermissions.test.js} +13 -13
  134. package/dist/esm/__tests__/indexingpermissions.test.js.map +1 -0
  135. package/dist/esm/__tests__/insights.test.js +2 -1
  136. package/dist/esm/__tests__/insights.test.js.map +1 -1
  137. package/dist/esm/__tests__/messages.test.js +2 -1
  138. package/dist/esm/__tests__/messages.test.js.map +1 -1
  139. package/dist/esm/__tests__/people.test.d.ts +2 -0
  140. package/dist/esm/__tests__/people.test.d.ts.map +1 -0
  141. package/dist/esm/__tests__/people.test.js +16 -0
  142. package/dist/esm/__tests__/people.test.js.map +1 -0
  143. package/dist/esm/__tests__/policies.test.js +3 -0
  144. package/dist/esm/__tests__/policies.test.js.map +1 -1
  145. package/dist/esm/__tests__/reports.test.js +3 -0
  146. package/dist/esm/__tests__/reports.test.js.map +1 -1
  147. package/dist/esm/__tests__/search.test.js +1994 -1
  148. package/dist/esm/__tests__/search.test.js.map +1 -1
  149. package/dist/esm/__tests__/summarize.test.d.ts +2 -0
  150. package/dist/esm/__tests__/summarize.test.d.ts.map +1 -0
  151. package/dist/esm/__tests__/summarize.test.js +22 -0
  152. package/dist/esm/__tests__/summarize.test.js.map +1 -0
  153. package/dist/esm/__tests__/troubleshooting.test.d.ts +2 -0
  154. package/dist/esm/__tests__/troubleshooting.test.d.ts.map +1 -0
  155. package/dist/esm/__tests__/troubleshooting.test.js +63 -0
  156. package/dist/esm/__tests__/troubleshooting.test.js.map +1 -0
  157. package/dist/esm/__tests__/visibilityoverrides.test.js +3 -0
  158. package/dist/esm/__tests__/visibilityoverrides.test.js.map +1 -1
  159. package/dist/esm/lib/config.d.ts +2 -2
  160. package/dist/esm/lib/config.js +2 -2
  161. package/dist/esm/models/components/agentconfig.d.ts +3 -0
  162. package/dist/esm/models/components/agentconfig.d.ts.map +1 -1
  163. package/dist/esm/models/components/agentconfig.js +1 -0
  164. package/dist/esm/models/components/agentconfig.js.map +1 -1
  165. package/dist/esm/models/components/chatrequest.d.ts +5 -0
  166. package/dist/esm/models/components/chatrequest.d.ts.map +1 -1
  167. package/dist/esm/models/components/chatrequest.js +2 -0
  168. package/dist/esm/models/components/chatrequest.js.map +1 -1
  169. package/jsr.json +1 -1
  170. package/package.json +1 -1
  171. package/src/__tests__/activities.test.ts +24 -0
  172. package/src/__tests__/agents.test.ts +8 -24
  173. package/src/__tests__/announcements.test.ts +220 -814
  174. package/src/__tests__/answers.test.ts +151 -255
  175. package/src/__tests__/calendar.test.ts +11 -0
  176. package/src/__tests__/{activity.test.ts → clientactivity.test.ts} +1 -18
  177. package/src/__tests__/clientauthentication.test.ts +7 -1
  178. package/src/__tests__/clientchat.test.ts +10007 -0
  179. package/src/__tests__/clientdocuments.test.ts +5 -16
  180. package/src/__tests__/clientshortcuts.test.ts +85 -91
  181. package/src/__tests__/clientuser.test.ts +41 -0
  182. package/src/__tests__/{verification.test.ts → clientverification.test.ts} +3 -3
  183. package/src/__tests__/collections.test.ts +79 -127
  184. package/src/__tests__/displayablelists.test.ts +29 -0
  185. package/src/__tests__/entities.test.ts +7 -1
  186. package/src/__tests__/indexingdocuments.test.ts +1 -57
  187. package/src/__tests__/{permissions.test.ts → indexingpermissions.test.ts} +12 -12
  188. package/src/__tests__/insights.test.ts +2 -1
  189. package/src/__tests__/messages.test.ts +2 -1
  190. package/src/__tests__/people.test.ts +21 -0
  191. package/src/__tests__/policies.test.ts +6 -0
  192. package/src/__tests__/reports.test.ts +6 -0
  193. package/src/__tests__/search.test.ts +2018 -1
  194. package/src/__tests__/summarize.test.ts +25 -0
  195. package/src/__tests__/troubleshooting.test.ts +86 -0
  196. package/src/__tests__/visibilityoverrides.test.ts +6 -0
  197. package/src/lib/config.ts +2 -2
  198. package/src/models/components/agentconfig.ts +1 -0
  199. package/src/models/components/chatrequest.ts +7 -0
  200. package/dist/commonjs/__tests__/activity.test.d.ts +0 -2
  201. package/dist/commonjs/__tests__/activity.test.d.ts.map +0 -1
  202. package/dist/commonjs/__tests__/activity.test.js.map +0 -1
  203. package/dist/commonjs/__tests__/adminsearch.test.d.ts +0 -2
  204. package/dist/commonjs/__tests__/adminsearch.test.d.ts.map +0 -1
  205. package/dist/commonjs/__tests__/adminsearch.test.js +0 -2001
  206. package/dist/commonjs/__tests__/adminsearch.test.js.map +0 -1
  207. package/dist/commonjs/__tests__/chat.test.d.ts +0 -2
  208. package/dist/commonjs/__tests__/chat.test.d.ts.map +0 -1
  209. package/dist/commonjs/__tests__/chat.test.js +0 -20883
  210. package/dist/commonjs/__tests__/chat.test.js.map +0 -1
  211. package/dist/commonjs/__tests__/clientsearch.test.d.ts +0 -2
  212. package/dist/commonjs/__tests__/clientsearch.test.d.ts.map +0 -1
  213. package/dist/commonjs/__tests__/clientsearch.test.js +0 -4095
  214. package/dist/commonjs/__tests__/clientsearch.test.js.map +0 -1
  215. package/dist/commonjs/__tests__/datasource.test.d.ts +0 -2
  216. package/dist/commonjs/__tests__/datasource.test.d.ts.map +0 -1
  217. package/dist/commonjs/__tests__/datasource.test.js +0 -10
  218. package/dist/commonjs/__tests__/datasource.test.js.map +0 -1
  219. package/dist/commonjs/__tests__/indexingpeople.test.d.ts +0 -2
  220. package/dist/commonjs/__tests__/indexingpeople.test.d.ts.map +0 -1
  221. package/dist/commonjs/__tests__/indexingpeople.test.js +0 -30
  222. package/dist/commonjs/__tests__/indexingpeople.test.js.map +0 -1
  223. package/dist/commonjs/__tests__/permissions.test.d.ts +0 -2
  224. package/dist/commonjs/__tests__/permissions.test.d.ts.map +0 -1
  225. package/dist/commonjs/__tests__/permissions.test.js.map +0 -1
  226. package/dist/commonjs/__tests__/verification.test.d.ts +0 -2
  227. package/dist/commonjs/__tests__/verification.test.d.ts.map +0 -1
  228. package/dist/commonjs/__tests__/verification.test.js.map +0 -1
  229. package/dist/esm/__tests__/activity.test.d.ts +0 -2
  230. package/dist/esm/__tests__/activity.test.d.ts.map +0 -1
  231. package/dist/esm/__tests__/activity.test.js.map +0 -1
  232. package/dist/esm/__tests__/adminsearch.test.d.ts +0 -2
  233. package/dist/esm/__tests__/adminsearch.test.d.ts.map +0 -1
  234. package/dist/esm/__tests__/adminsearch.test.js +0 -1999
  235. package/dist/esm/__tests__/adminsearch.test.js.map +0 -1
  236. package/dist/esm/__tests__/chat.test.d.ts +0 -2
  237. package/dist/esm/__tests__/chat.test.d.ts.map +0 -1
  238. package/dist/esm/__tests__/chat.test.js +0 -20881
  239. package/dist/esm/__tests__/chat.test.js.map +0 -1
  240. package/dist/esm/__tests__/clientsearch.test.d.ts +0 -2
  241. package/dist/esm/__tests__/clientsearch.test.d.ts.map +0 -1
  242. package/dist/esm/__tests__/clientsearch.test.js +0 -4093
  243. package/dist/esm/__tests__/clientsearch.test.js.map +0 -1
  244. package/dist/esm/__tests__/datasource.test.d.ts +0 -2
  245. package/dist/esm/__tests__/datasource.test.d.ts.map +0 -1
  246. package/dist/esm/__tests__/datasource.test.js +0 -8
  247. package/dist/esm/__tests__/datasource.test.js.map +0 -1
  248. package/dist/esm/__tests__/indexingpeople.test.d.ts +0 -2
  249. package/dist/esm/__tests__/indexingpeople.test.d.ts.map +0 -1
  250. package/dist/esm/__tests__/indexingpeople.test.js +0 -28
  251. package/dist/esm/__tests__/indexingpeople.test.js.map +0 -1
  252. package/dist/esm/__tests__/permissions.test.d.ts +0 -2
  253. package/dist/esm/__tests__/permissions.test.d.ts.map +0 -1
  254. package/dist/esm/__tests__/permissions.test.js.map +0 -1
  255. package/dist/esm/__tests__/verification.test.d.ts +0 -2
  256. package/dist/esm/__tests__/verification.test.d.ts.map +0 -1
  257. package/dist/esm/__tests__/verification.test.js.map +0 -1
  258. package/src/__tests__/adminsearch.test.ts +0 -2009
  259. package/src/__tests__/chat.test.ts +0 -21206
  260. package/src/__tests__/clientsearch.test.ts +0 -4115
  261. package/src/__tests__/datasource.test.ts +0 -11
  262. package/src/__tests__/indexingpeople.test.ts +0 -38
@@ -1,2009 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { expect, test } from "vitest";
6
- import { Glean } from "../index.js";
7
- import { RFCDate } from "../types/index.js";
8
- import { createTestHTTPClient } from "./testclient.js";
9
-
10
- test("Admin Search Adminsearch", async () => {
11
- const testHttpClient = createTestHTTPClient("adminsearch");
12
-
13
- const glean = new Glean({
14
- serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
15
- httpClient: testHttpClient,
16
- apiToken: process.env["GLEAN_API_TOKEN"] ?? "value",
17
- });
18
-
19
- const result = await glean.client.search.queryAsAdmin({
20
- trackingToken: "trackingToken",
21
- sourceDocument: {
22
- metadata: {
23
- datasource: "datasource",
24
- objectType: "Feature Request",
25
- container: "container",
26
- parentId: "JIRA_EN-1337",
27
- mimeType: "mimeType",
28
- documentId: "documentId",
29
- createTime: new Date("2000-01-23T04:56:07.000Z"),
30
- updateTime: new Date("2000-01-23T04:56:07.000Z"),
31
- author: {
32
- name: "George Clooney",
33
- obfuscatedId: "abc123",
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
- ],
363
- metadata: {
364
- type: "FULL_TIME",
365
- title: "Actor",
366
- department: "Movies",
367
- email: "george@example.com",
368
- location: "Hollywood, CA",
369
- phone: "6505551234",
370
- photoUrl: "https://example.com/george.jpg",
371
- startDate: new RFCDate("2000-01-23"),
372
- datasourceProfile: [
373
- {
374
- datasource: "github",
375
- handle: "<value>",
376
- },
377
- {
378
- datasource: "github",
379
- handle: "<value>",
380
- },
381
- ],
382
- querySuggestions: {
383
- suggestions: [
384
- {
385
- query: "app:github type:pull author:mortimer",
386
- label: "Mortimer's PRs",
387
- datasource: "github",
388
- },
389
- ],
390
- },
391
- inviteInfo: {
392
- invites: [
393
- {},
394
- ],
395
- },
396
- customFields: [
397
- {
398
- label: "<value>",
399
- values: [],
400
- },
401
- ],
402
- badges: [
403
- {
404
- key: "deployment_name_new_hire",
405
- displayName: "New hire",
406
- iconConfig: {
407
- color: "#343CED",
408
- key: "person_icon",
409
- iconType: "GLYPH",
410
- name: "user",
411
- },
412
- },
413
- ],
414
- },
415
- },
416
- owner: {
417
- name: "George Clooney",
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
- },
457
- },
458
- mentionedPeople: [
459
- {
460
- name: "George Clooney",
461
- obfuscatedId: "abc123",
462
- },
463
- ],
464
- components: [
465
- "Backend",
466
- "Networking",
467
- ],
468
- status: "[\"Done\"]",
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
- ],
569
- assignedTo: {
570
- name: "George Clooney",
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
- },
606
- },
607
- updatedBy: {
608
- name: "George Clooney",
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
- },
648
- },
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
- ],
1365
- interactions: {
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
- ],
1417
- },
1418
- verification: {
1419
- state: "UNVERIFIED",
1420
- metadata: {
1421
- lastVerifier: {
1422
- name: "George Clooney",
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
- },
1454
- },
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
- ],
1694
- lastReminder: {
1695
- assignee: {
1696
- name: "George Clooney",
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
- },
1736
- },
1737
- requestor: {
1738
- name: "George Clooney",
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
- },
1770
- },
1771
- remindAt: 554738,
1772
- },
1773
- candidateVerifiers: [
1774
- {
1775
- name: "George Clooney",
1776
- obfuscatedId: "abc123",
1777
- },
1778
- ],
1779
- },
1780
- },
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
- ],
1862
- customData: {
1863
- "someCustomField": {},
1864
- },
1865
- contactPerson: {
1866
- name: "George Clooney",
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
- },
1906
- },
1907
- },
1908
- },
1909
- pageSize: 100,
1910
- maxSnippetSize: 400,
1911
- query: "vacation policy",
1912
- inputDetails: {
1913
- hasCopyPaste: true,
1914
- },
1915
- requestOptions: {
1916
- datasourceFilter: "JIRA",
1917
- datasourcesFilter: [
1918
- "JIRA",
1919
- ],
1920
- queryOverridesFacetFilters: true,
1921
- facetFilters: [
1922
- {
1923
- fieldName: "type",
1924
- values: [
1925
- {
1926
- value: "Spreadsheet",
1927
- relationType: "EQUALS",
1928
- },
1929
- {
1930
- value: "Presentation",
1931
- relationType: "EQUALS",
1932
- },
1933
- ],
1934
- },
1935
- ],
1936
- facetFilterSets: [
1937
- {
1938
- filters: [
1939
- {
1940
- fieldName: "type",
1941
- values: [
1942
- {
1943
- value: "Spreadsheet",
1944
- relationType: "EQUALS",
1945
- },
1946
- {
1947
- value: "Presentation",
1948
- relationType: "EQUALS",
1949
- },
1950
- ],
1951
- },
1952
- ],
1953
- },
1954
- {
1955
- filters: [
1956
- {
1957
- fieldName: "type",
1958
- values: [
1959
- {
1960
- value: "Spreadsheet",
1961
- relationType: "EQUALS",
1962
- },
1963
- {
1964
- value: "Presentation",
1965
- relationType: "EQUALS",
1966
- },
1967
- ],
1968
- },
1969
- ],
1970
- },
1971
- {
1972
- filters: [
1973
- {
1974
- fieldName: "type",
1975
- values: [
1976
- {
1977
- value: "Spreadsheet",
1978
- relationType: "EQUALS",
1979
- },
1980
- {
1981
- value: "Presentation",
1982
- relationType: "EQUALS",
1983
- },
1984
- ],
1985
- },
1986
- ],
1987
- },
1988
- ],
1989
- facetBucketSize: 171751,
1990
- authTokens: [
1991
- {
1992
- accessToken: "123abc",
1993
- datasource: "gmail",
1994
- scope: "email profile https://www.googleapis.com/auth/gmail.readonly",
1995
- tokenType: "Bearer",
1996
- authUser: "1",
1997
- },
1998
- ],
1999
- },
2000
- timeoutMillis: 5000,
2001
- people: [
2002
- {
2003
- name: "George Clooney",
2004
- obfuscatedId: "abc123",
2005
- },
2006
- ],
2007
- });
2008
- expect(result).toBeDefined();
2009
- });