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