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