@gleanwork/api-client 0.6.3 → 0.6.7

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 (300) 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/funcs/clientAuthenticationCreateToken.d.ts +5 -1
  76. package/dist/commonjs/funcs/clientAuthenticationCreateToken.d.ts.map +1 -1
  77. package/dist/commonjs/funcs/clientAuthenticationCreateToken.js +5 -1
  78. package/dist/commonjs/funcs/clientAuthenticationCreateToken.js.map +1 -1
  79. package/dist/commonjs/lib/config.d.ts +2 -2
  80. package/dist/commonjs/lib/config.js +2 -2
  81. package/dist/commonjs/models/components/agentconfig.d.ts +3 -0
  82. package/dist/commonjs/models/components/agentconfig.d.ts.map +1 -1
  83. package/dist/commonjs/models/components/agentconfig.js +1 -0
  84. package/dist/commonjs/models/components/agentconfig.js.map +1 -1
  85. package/dist/commonjs/models/components/agentrun.d.ts +9 -0
  86. package/dist/commonjs/models/components/agentrun.d.ts.map +1 -1
  87. package/dist/commonjs/models/components/agentrun.js +2 -0
  88. package/dist/commonjs/models/components/agentrun.js.map +1 -1
  89. package/dist/commonjs/models/components/agentruncreate.d.ts +9 -0
  90. package/dist/commonjs/models/components/agentruncreate.d.ts.map +1 -1
  91. package/dist/commonjs/models/components/agentruncreate.js +2 -0
  92. package/dist/commonjs/models/components/agentruncreate.js.map +1 -1
  93. package/dist/commonjs/react-query/clientAuthenticationCreateToken.d.ts +5 -1
  94. package/dist/commonjs/react-query/clientAuthenticationCreateToken.d.ts.map +1 -1
  95. package/dist/commonjs/react-query/clientAuthenticationCreateToken.js +5 -1
  96. package/dist/commonjs/react-query/clientAuthenticationCreateToken.js.map +1 -1
  97. package/dist/commonjs/sdk/clientauthentication.d.ts +5 -1
  98. package/dist/commonjs/sdk/clientauthentication.d.ts.map +1 -1
  99. package/dist/commonjs/sdk/clientauthentication.js +5 -1
  100. package/dist/commonjs/sdk/clientauthentication.js.map +1 -1
  101. package/dist/esm/__tests__/activities.test.d.ts +2 -0
  102. package/dist/esm/__tests__/activities.test.d.ts.map +1 -0
  103. package/dist/esm/__tests__/activities.test.js +21 -0
  104. package/dist/esm/__tests__/activities.test.js.map +1 -0
  105. package/dist/esm/__tests__/agents.test.js +4 -20
  106. package/dist/esm/__tests__/agents.test.js.map +1 -1
  107. package/dist/esm/__tests__/announcements.test.js +190 -813
  108. package/dist/esm/__tests__/announcements.test.js.map +1 -1
  109. package/dist/esm/__tests__/answers.test.js +126 -255
  110. package/dist/esm/__tests__/answers.test.js.map +1 -1
  111. package/dist/esm/__tests__/calendar.test.d.ts +2 -0
  112. package/dist/esm/__tests__/calendar.test.d.ts.map +1 -0
  113. package/dist/esm/__tests__/calendar.test.js +8 -0
  114. package/dist/esm/__tests__/calendar.test.js.map +1 -0
  115. package/dist/esm/__tests__/clientactivity.test.d.ts +2 -0
  116. package/dist/esm/__tests__/clientactivity.test.d.ts.map +1 -0
  117. package/dist/esm/__tests__/{activity.test.js → clientactivity.test.js} +2 -16
  118. package/dist/esm/__tests__/clientactivity.test.js.map +1 -0
  119. package/dist/esm/__tests__/clientauthentication.test.js +4 -1
  120. package/dist/esm/__tests__/clientauthentication.test.js.map +1 -1
  121. package/dist/esm/__tests__/clientchat.test.d.ts +2 -0
  122. package/dist/esm/__tests__/clientchat.test.d.ts.map +1 -0
  123. package/dist/esm/__tests__/clientchat.test.js +9823 -0
  124. package/dist/esm/__tests__/clientchat.test.js.map +1 -0
  125. package/dist/esm/__tests__/clientdocuments.test.js +3 -14
  126. package/dist/esm/__tests__/clientdocuments.test.js.map +1 -1
  127. package/dist/esm/__tests__/clientshortcuts.test.js +79 -91
  128. package/dist/esm/__tests__/clientshortcuts.test.js.map +1 -1
  129. package/dist/esm/__tests__/clientuser.test.d.ts +2 -0
  130. package/dist/esm/__tests__/clientuser.test.d.ts.map +1 -0
  131. package/dist/esm/__tests__/clientuser.test.js +23 -0
  132. package/dist/esm/__tests__/clientuser.test.js.map +1 -0
  133. package/dist/esm/__tests__/clientverification.test.d.ts +2 -0
  134. package/dist/esm/__tests__/clientverification.test.d.ts.map +1 -0
  135. package/dist/esm/__tests__/{verification.test.js → clientverification.test.js} +4 -4
  136. package/dist/esm/__tests__/clientverification.test.js.map +1 -0
  137. package/dist/esm/__tests__/collections.test.js +70 -127
  138. package/dist/esm/__tests__/collections.test.js.map +1 -1
  139. package/dist/esm/__tests__/displayablelists.test.d.ts +2 -0
  140. package/dist/esm/__tests__/displayablelists.test.d.ts.map +1 -0
  141. package/dist/esm/__tests__/displayablelists.test.js +17 -0
  142. package/dist/esm/__tests__/displayablelists.test.js.map +1 -0
  143. package/dist/esm/__tests__/entities.test.js +4 -1
  144. package/dist/esm/__tests__/entities.test.js.map +1 -1
  145. package/dist/esm/__tests__/indexingdocuments.test.js +1 -42
  146. package/dist/esm/__tests__/indexingdocuments.test.js.map +1 -1
  147. package/dist/esm/__tests__/indexingpermissions.test.d.ts +2 -0
  148. package/dist/esm/__tests__/indexingpermissions.test.d.ts.map +1 -0
  149. package/dist/esm/__tests__/{permissions.test.js → indexingpermissions.test.js} +13 -13
  150. package/dist/esm/__tests__/indexingpermissions.test.js.map +1 -0
  151. package/dist/esm/__tests__/insights.test.js +2 -1
  152. package/dist/esm/__tests__/insights.test.js.map +1 -1
  153. package/dist/esm/__tests__/messages.test.js +2 -1
  154. package/dist/esm/__tests__/messages.test.js.map +1 -1
  155. package/dist/esm/__tests__/people.test.d.ts +2 -0
  156. package/dist/esm/__tests__/people.test.d.ts.map +1 -0
  157. package/dist/esm/__tests__/people.test.js +16 -0
  158. package/dist/esm/__tests__/people.test.js.map +1 -0
  159. package/dist/esm/__tests__/policies.test.js +3 -0
  160. package/dist/esm/__tests__/policies.test.js.map +1 -1
  161. package/dist/esm/__tests__/reports.test.js +3 -0
  162. package/dist/esm/__tests__/reports.test.js.map +1 -1
  163. package/dist/esm/__tests__/search.test.js +1994 -1
  164. package/dist/esm/__tests__/search.test.js.map +1 -1
  165. package/dist/esm/__tests__/summarize.test.d.ts +2 -0
  166. package/dist/esm/__tests__/summarize.test.d.ts.map +1 -0
  167. package/dist/esm/__tests__/summarize.test.js +22 -0
  168. package/dist/esm/__tests__/summarize.test.js.map +1 -0
  169. package/dist/esm/__tests__/troubleshooting.test.d.ts +2 -0
  170. package/dist/esm/__tests__/troubleshooting.test.d.ts.map +1 -0
  171. package/dist/esm/__tests__/troubleshooting.test.js +63 -0
  172. package/dist/esm/__tests__/troubleshooting.test.js.map +1 -0
  173. package/dist/esm/__tests__/visibilityoverrides.test.js +3 -0
  174. package/dist/esm/__tests__/visibilityoverrides.test.js.map +1 -1
  175. package/dist/esm/funcs/clientAuthenticationCreateToken.d.ts +5 -1
  176. package/dist/esm/funcs/clientAuthenticationCreateToken.d.ts.map +1 -1
  177. package/dist/esm/funcs/clientAuthenticationCreateToken.js +5 -1
  178. package/dist/esm/funcs/clientAuthenticationCreateToken.js.map +1 -1
  179. package/dist/esm/lib/config.d.ts +2 -2
  180. package/dist/esm/lib/config.js +2 -2
  181. package/dist/esm/models/components/agentconfig.d.ts +3 -0
  182. package/dist/esm/models/components/agentconfig.d.ts.map +1 -1
  183. package/dist/esm/models/components/agentconfig.js +1 -0
  184. package/dist/esm/models/components/agentconfig.js.map +1 -1
  185. package/dist/esm/models/components/agentrun.d.ts +9 -0
  186. package/dist/esm/models/components/agentrun.d.ts.map +1 -1
  187. package/dist/esm/models/components/agentrun.js +2 -0
  188. package/dist/esm/models/components/agentrun.js.map +1 -1
  189. package/dist/esm/models/components/agentruncreate.d.ts +9 -0
  190. package/dist/esm/models/components/agentruncreate.d.ts.map +1 -1
  191. package/dist/esm/models/components/agentruncreate.js +2 -0
  192. package/dist/esm/models/components/agentruncreate.js.map +1 -1
  193. package/dist/esm/react-query/clientAuthenticationCreateToken.d.ts +5 -1
  194. package/dist/esm/react-query/clientAuthenticationCreateToken.d.ts.map +1 -1
  195. package/dist/esm/react-query/clientAuthenticationCreateToken.js +5 -1
  196. package/dist/esm/react-query/clientAuthenticationCreateToken.js.map +1 -1
  197. package/dist/esm/sdk/clientauthentication.d.ts +5 -1
  198. package/dist/esm/sdk/clientauthentication.d.ts.map +1 -1
  199. package/dist/esm/sdk/clientauthentication.js +5 -1
  200. package/dist/esm/sdk/clientauthentication.js.map +1 -1
  201. package/docs/sdks/agents/README.md +1 -1
  202. package/docs/sdks/clientauthentication/README.md +6 -1
  203. package/jsr.json +1 -1
  204. package/package.json +1 -1
  205. package/src/__tests__/activities.test.ts +24 -0
  206. package/src/__tests__/agents.test.ts +8 -24
  207. package/src/__tests__/announcements.test.ts +220 -814
  208. package/src/__tests__/answers.test.ts +151 -255
  209. package/src/__tests__/calendar.test.ts +11 -0
  210. package/src/__tests__/{activity.test.ts → clientactivity.test.ts} +1 -18
  211. package/src/__tests__/clientauthentication.test.ts +7 -1
  212. package/src/__tests__/clientchat.test.ts +10007 -0
  213. package/src/__tests__/clientdocuments.test.ts +5 -16
  214. package/src/__tests__/clientshortcuts.test.ts +85 -91
  215. package/src/__tests__/clientuser.test.ts +41 -0
  216. package/src/__tests__/{verification.test.ts → clientverification.test.ts} +3 -3
  217. package/src/__tests__/collections.test.ts +79 -127
  218. package/src/__tests__/displayablelists.test.ts +29 -0
  219. package/src/__tests__/entities.test.ts +7 -1
  220. package/src/__tests__/indexingdocuments.test.ts +1 -57
  221. package/src/__tests__/{permissions.test.ts → indexingpermissions.test.ts} +12 -12
  222. package/src/__tests__/insights.test.ts +2 -1
  223. package/src/__tests__/messages.test.ts +2 -1
  224. package/src/__tests__/people.test.ts +21 -0
  225. package/src/__tests__/policies.test.ts +6 -0
  226. package/src/__tests__/reports.test.ts +6 -0
  227. package/src/__tests__/search.test.ts +2018 -1
  228. package/src/__tests__/summarize.test.ts +25 -0
  229. package/src/__tests__/troubleshooting.test.ts +86 -0
  230. package/src/__tests__/visibilityoverrides.test.ts +6 -0
  231. package/src/funcs/clientAuthenticationCreateToken.ts +5 -1
  232. package/src/lib/config.ts +2 -2
  233. package/src/models/components/agentconfig.ts +1 -0
  234. package/src/models/components/agentrun.ts +7 -0
  235. package/src/models/components/agentruncreate.ts +7 -0
  236. package/src/react-query/clientAuthenticationCreateToken.ts +5 -1
  237. package/src/sdk/clientauthentication.ts +5 -1
  238. package/dist/commonjs/__tests__/activity.test.d.ts +0 -2
  239. package/dist/commonjs/__tests__/activity.test.d.ts.map +0 -1
  240. package/dist/commonjs/__tests__/activity.test.js.map +0 -1
  241. package/dist/commonjs/__tests__/adminsearch.test.d.ts +0 -2
  242. package/dist/commonjs/__tests__/adminsearch.test.d.ts.map +0 -1
  243. package/dist/commonjs/__tests__/adminsearch.test.js +0 -2001
  244. package/dist/commonjs/__tests__/adminsearch.test.js.map +0 -1
  245. package/dist/commonjs/__tests__/chat.test.d.ts +0 -2
  246. package/dist/commonjs/__tests__/chat.test.d.ts.map +0 -1
  247. package/dist/commonjs/__tests__/chat.test.js +0 -20883
  248. package/dist/commonjs/__tests__/chat.test.js.map +0 -1
  249. package/dist/commonjs/__tests__/clientsearch.test.d.ts +0 -2
  250. package/dist/commonjs/__tests__/clientsearch.test.d.ts.map +0 -1
  251. package/dist/commonjs/__tests__/clientsearch.test.js +0 -4095
  252. package/dist/commonjs/__tests__/clientsearch.test.js.map +0 -1
  253. package/dist/commonjs/__tests__/datasource.test.d.ts +0 -2
  254. package/dist/commonjs/__tests__/datasource.test.d.ts.map +0 -1
  255. package/dist/commonjs/__tests__/datasource.test.js +0 -10
  256. package/dist/commonjs/__tests__/datasource.test.js.map +0 -1
  257. package/dist/commonjs/__tests__/indexingpeople.test.d.ts +0 -2
  258. package/dist/commonjs/__tests__/indexingpeople.test.d.ts.map +0 -1
  259. package/dist/commonjs/__tests__/indexingpeople.test.js +0 -30
  260. package/dist/commonjs/__tests__/indexingpeople.test.js.map +0 -1
  261. package/dist/commonjs/__tests__/permissions.test.d.ts +0 -2
  262. package/dist/commonjs/__tests__/permissions.test.d.ts.map +0 -1
  263. package/dist/commonjs/__tests__/permissions.test.js.map +0 -1
  264. package/dist/commonjs/__tests__/verification.test.d.ts +0 -2
  265. package/dist/commonjs/__tests__/verification.test.d.ts.map +0 -1
  266. package/dist/commonjs/__tests__/verification.test.js.map +0 -1
  267. package/dist/esm/__tests__/activity.test.d.ts +0 -2
  268. package/dist/esm/__tests__/activity.test.d.ts.map +0 -1
  269. package/dist/esm/__tests__/activity.test.js.map +0 -1
  270. package/dist/esm/__tests__/adminsearch.test.d.ts +0 -2
  271. package/dist/esm/__tests__/adminsearch.test.d.ts.map +0 -1
  272. package/dist/esm/__tests__/adminsearch.test.js +0 -1999
  273. package/dist/esm/__tests__/adminsearch.test.js.map +0 -1
  274. package/dist/esm/__tests__/chat.test.d.ts +0 -2
  275. package/dist/esm/__tests__/chat.test.d.ts.map +0 -1
  276. package/dist/esm/__tests__/chat.test.js +0 -20881
  277. package/dist/esm/__tests__/chat.test.js.map +0 -1
  278. package/dist/esm/__tests__/clientsearch.test.d.ts +0 -2
  279. package/dist/esm/__tests__/clientsearch.test.d.ts.map +0 -1
  280. package/dist/esm/__tests__/clientsearch.test.js +0 -4093
  281. package/dist/esm/__tests__/clientsearch.test.js.map +0 -1
  282. package/dist/esm/__tests__/datasource.test.d.ts +0 -2
  283. package/dist/esm/__tests__/datasource.test.d.ts.map +0 -1
  284. package/dist/esm/__tests__/datasource.test.js +0 -8
  285. package/dist/esm/__tests__/datasource.test.js.map +0 -1
  286. package/dist/esm/__tests__/indexingpeople.test.d.ts +0 -2
  287. package/dist/esm/__tests__/indexingpeople.test.d.ts.map +0 -1
  288. package/dist/esm/__tests__/indexingpeople.test.js +0 -28
  289. package/dist/esm/__tests__/indexingpeople.test.js.map +0 -1
  290. package/dist/esm/__tests__/permissions.test.d.ts +0 -2
  291. package/dist/esm/__tests__/permissions.test.d.ts.map +0 -1
  292. package/dist/esm/__tests__/permissions.test.js.map +0 -1
  293. package/dist/esm/__tests__/verification.test.d.ts +0 -2
  294. package/dist/esm/__tests__/verification.test.d.ts.map +0 -1
  295. package/dist/esm/__tests__/verification.test.js.map +0 -1
  296. package/src/__tests__/adminsearch.test.ts +0 -2009
  297. package/src/__tests__/chat.test.ts +0 -21206
  298. package/src/__tests__/clientsearch.test.ts +0 -4115
  299. package/src/__tests__/datasource.test.ts +0 -11
  300. package/src/__tests__/indexingpeople.test.ts +0 -38
@@ -1,4115 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { expect, test } from "vitest";
6
- import { Glean } from "../index.js";
7
- import { RFCDate } from "../types/index.js";
8
- import { createTestHTTPClient } from "./testclient.js";
9
-
10
- test("Client Search Feed", async () => {
11
- const testHttpClient = createTestHTTPClient("feed");
12
-
13
- const glean = new Glean({
14
- serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
15
- httpClient: testHttpClient,
16
- apiToken: process.env["GLEAN_API_TOKEN"] ?? "value",
17
- });
18
-
19
- const result = await glean.client.search.retrieveFeed({
20
- timeoutMillis: 5000,
21
- });
22
- expect(result).toBeDefined();
23
- });
24
-
25
- test("Client Search Recommendations", async () => {
26
- const testHttpClient = createTestHTTPClient("recommendations");
27
-
28
- const glean = new Glean({
29
- serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
30
- httpClient: testHttpClient,
31
- apiToken: process.env["GLEAN_API_TOKEN"] ?? "value",
32
- });
33
-
34
- const result = await glean.client.search.recommendations({
35
- sourceDocument: {
36
- metadata: {
37
- datasource: "datasource",
38
- objectType: "Feature Request",
39
- container: "container",
40
- parentId: "JIRA_EN-1337",
41
- mimeType: "mimeType",
42
- documentId: "documentId",
43
- createTime: new Date("2000-01-23T04:56:07.000Z"),
44
- updateTime: new Date("2000-01-23T04:56:07.000Z"),
45
- author: {
46
- name: "George Clooney",
47
- obfuscatedId: "abc123",
48
- relatedDocuments: [
49
- {
50
- querySuggestion: {
51
- query: "app:github type:pull author:mortimer",
52
- searchProviderInfo: {
53
- name: "Google",
54
- searchLinkUrlTemplate:
55
- "https://www.google.com/search?q={query}&hl=en",
56
- },
57
- label: "Mortimer's PRs",
58
- datasource: "github",
59
- requestOptions: {
60
- datasourceFilter: "JIRA",
61
- datasourcesFilter: [
62
- "JIRA",
63
- ],
64
- queryOverridesFacetFilters: true,
65
- facetFilters: [
66
- {
67
- fieldName: "type",
68
- values: [
69
- {
70
- value: "Spreadsheet",
71
- relationType: "EQUALS",
72
- },
73
- {
74
- value: "Presentation",
75
- relationType: "EQUALS",
76
- },
77
- ],
78
- },
79
- ],
80
- facetFilterSets: [
81
- {
82
- filters: [
83
- {
84
- fieldName: "type",
85
- values: [
86
- {
87
- value: "Spreadsheet",
88
- relationType: "EQUALS",
89
- },
90
- {
91
- value: "Presentation",
92
- relationType: "EQUALS",
93
- },
94
- ],
95
- },
96
- ],
97
- },
98
- ],
99
- facetBucketSize: 236211,
100
- authTokens: [
101
- {
102
- accessToken: "123abc",
103
- datasource: "gmail",
104
- scope:
105
- "email profile https://www.googleapis.com/auth/gmail.readonly",
106
- tokenType: "Bearer",
107
- authUser: "1",
108
- },
109
- ],
110
- },
111
- ranges: [
112
- {
113
- startIndex: 818990,
114
- },
115
- {
116
- startIndex: 38651,
117
- },
118
- {
119
- startIndex: 996660,
120
- },
121
- ],
122
- inputDetails: {
123
- hasCopyPaste: true,
124
- },
125
- },
126
- results: [
127
- {
128
- title: "title",
129
- url: "https://example.com/foo/bar",
130
- nativeAppUrl: "slack://foo/bar",
131
- snippets: [
132
- {
133
- snippet: "snippet",
134
- mimeType: "mimeType",
135
- },
136
- ],
137
- },
138
- ],
139
- },
140
- {
141
- querySuggestion: {
142
- query: "app:github type:pull author:mortimer",
143
- searchProviderInfo: {
144
- name: "Google",
145
- searchLinkUrlTemplate:
146
- "https://www.google.com/search?q={query}&hl=en",
147
- },
148
- label: "Mortimer's PRs",
149
- datasource: "github",
150
- requestOptions: {
151
- datasourceFilter: "JIRA",
152
- datasourcesFilter: [
153
- "JIRA",
154
- ],
155
- queryOverridesFacetFilters: true,
156
- facetFilters: [
157
- {
158
- fieldName: "type",
159
- values: [
160
- {
161
- value: "Spreadsheet",
162
- relationType: "EQUALS",
163
- },
164
- {
165
- value: "Presentation",
166
- relationType: "EQUALS",
167
- },
168
- ],
169
- },
170
- ],
171
- facetFilterSets: [
172
- {
173
- filters: [
174
- {
175
- fieldName: "type",
176
- values: [
177
- {
178
- value: "Spreadsheet",
179
- relationType: "EQUALS",
180
- },
181
- {
182
- value: "Presentation",
183
- relationType: "EQUALS",
184
- },
185
- ],
186
- },
187
- ],
188
- },
189
- {
190
- filters: [
191
- {
192
- fieldName: "type",
193
- values: [
194
- {
195
- value: "Spreadsheet",
196
- relationType: "EQUALS",
197
- },
198
- {
199
- value: "Presentation",
200
- relationType: "EQUALS",
201
- },
202
- ],
203
- },
204
- ],
205
- },
206
- {
207
- filters: [
208
- {
209
- fieldName: "type",
210
- values: [
211
- {
212
- value: "Spreadsheet",
213
- relationType: "EQUALS",
214
- },
215
- {
216
- value: "Presentation",
217
- relationType: "EQUALS",
218
- },
219
- ],
220
- },
221
- ],
222
- },
223
- ],
224
- facetBucketSize: 485964,
225
- authTokens: [
226
- {
227
- accessToken: "123abc",
228
- datasource: "gmail",
229
- scope:
230
- "email profile https://www.googleapis.com/auth/gmail.readonly",
231
- tokenType: "Bearer",
232
- authUser: "1",
233
- },
234
- ],
235
- },
236
- inputDetails: {
237
- hasCopyPaste: true,
238
- },
239
- },
240
- },
241
- {
242
- querySuggestion: {
243
- query: "app:github type:pull author:mortimer",
244
- searchProviderInfo: {
245
- name: "Google",
246
- searchLinkUrlTemplate:
247
- "https://www.google.com/search?q={query}&hl=en",
248
- },
249
- label: "Mortimer's PRs",
250
- datasource: "github",
251
- requestOptions: {
252
- datasourceFilter: "JIRA",
253
- datasourcesFilter: [
254
- "JIRA",
255
- ],
256
- queryOverridesFacetFilters: true,
257
- facetFilters: [
258
- {
259
- fieldName: "type",
260
- values: [
261
- {
262
- value: "Spreadsheet",
263
- relationType: "EQUALS",
264
- },
265
- {
266
- value: "Presentation",
267
- relationType: "EQUALS",
268
- },
269
- ],
270
- },
271
- ],
272
- facetFilterSets: [
273
- {
274
- filters: [
275
- {
276
- fieldName: "type",
277
- values: [
278
- {
279
- value: "Spreadsheet",
280
- relationType: "EQUALS",
281
- },
282
- {
283
- value: "Presentation",
284
- relationType: "EQUALS",
285
- },
286
- ],
287
- },
288
- ],
289
- },
290
- ],
291
- facetBucketSize: 793380,
292
- authTokens: [
293
- {
294
- accessToken: "123abc",
295
- datasource: "gmail",
296
- scope:
297
- "email profile https://www.googleapis.com/auth/gmail.readonly",
298
- tokenType: "Bearer",
299
- authUser: "1",
300
- },
301
- ],
302
- },
303
- inputDetails: {
304
- hasCopyPaste: true,
305
- },
306
- },
307
- },
308
- ],
309
- metadata: {
310
- type: "FULL_TIME",
311
- title: "Actor",
312
- department: "Movies",
313
- email: "george@example.com",
314
- location: "Hollywood, CA",
315
- phone: "6505551234",
316
- photoUrl: "https://example.com/george.jpg",
317
- startDate: new RFCDate("2000-01-23"),
318
- datasourceProfile: [
319
- {
320
- datasource: "github",
321
- handle: "<value>",
322
- },
323
- {
324
- datasource: "github",
325
- handle: "<value>",
326
- },
327
- ],
328
- querySuggestions: {
329
- suggestions: [
330
- {
331
- query: "app:github type:pull author:mortimer",
332
- label: "Mortimer's PRs",
333
- datasource: "github",
334
- },
335
- ],
336
- },
337
- inviteInfo: {
338
- invites: [
339
- {},
340
- {},
341
- ],
342
- },
343
- customFields: [
344
- {
345
- label: "<value>",
346
- values: [
347
- {},
348
- {},
349
- {},
350
- ],
351
- },
352
- {
353
- label: "<value>",
354
- values: [],
355
- },
356
- {
357
- label: "<value>",
358
- values: [],
359
- },
360
- ],
361
- badges: [
362
- {
363
- key: "deployment_name_new_hire",
364
- displayName: "New hire",
365
- iconConfig: {
366
- color: "#343CED",
367
- key: "person_icon",
368
- iconType: "GLYPH",
369
- name: "user",
370
- },
371
- },
372
- ],
373
- },
374
- },
375
- owner: {
376
- name: "George Clooney",
377
- obfuscatedId: "abc123",
378
- metadata: {
379
- type: "FULL_TIME",
380
- title: "Actor",
381
- department: "Movies",
382
- email: "george@example.com",
383
- location: "Hollywood, CA",
384
- phone: "6505551234",
385
- photoUrl: "https://example.com/george.jpg",
386
- startDate: new RFCDate("2000-01-23"),
387
- datasourceProfile: [
388
- {
389
- datasource: "github",
390
- handle: "<value>",
391
- },
392
- ],
393
- querySuggestions: {},
394
- inviteInfo: {},
395
- badges: [
396
- {
397
- key: "deployment_name_new_hire",
398
- displayName: "New hire",
399
- iconConfig: {
400
- color: "#343CED",
401
- key: "person_icon",
402
- iconType: "GLYPH",
403
- name: "user",
404
- },
405
- },
406
- ],
407
- },
408
- },
409
- mentionedPeople: [
410
- {
411
- name: "George Clooney",
412
- obfuscatedId: "abc123",
413
- },
414
- ],
415
- components: [
416
- "Backend",
417
- "Networking",
418
- ],
419
- status: "[\"Done\"]",
420
- pins: [
421
- {
422
- audienceFilters: [
423
- {
424
- fieldName: "type",
425
- values: [
426
- {
427
- value: "Spreadsheet",
428
- relationType: "EQUALS",
429
- },
430
- {
431
- value: "Presentation",
432
- relationType: "EQUALS",
433
- },
434
- ],
435
- },
436
- ],
437
- documentId: "<id>",
438
- attribution: {
439
- name: "George Clooney",
440
- obfuscatedId: "abc123",
441
- metadata: {
442
- type: "FULL_TIME",
443
- title: "Actor",
444
- department: "Movies",
445
- email: "george@example.com",
446
- location: "Hollywood, CA",
447
- phone: "6505551234",
448
- photoUrl: "https://example.com/george.jpg",
449
- startDate: new RFCDate("2000-01-23"),
450
- datasourceProfile: [
451
- {
452
- datasource: "github",
453
- handle: "<value>",
454
- },
455
- {
456
- datasource: "github",
457
- handle: "<value>",
458
- },
459
- {
460
- datasource: "github",
461
- handle: "<value>",
462
- },
463
- ],
464
- querySuggestions: {},
465
- inviteInfo: {},
466
- badges: [
467
- {
468
- key: "deployment_name_new_hire",
469
- displayName: "New hire",
470
- iconConfig: {
471
- color: "#343CED",
472
- key: "person_icon",
473
- iconType: "GLYPH",
474
- name: "user",
475
- },
476
- },
477
- ],
478
- },
479
- },
480
- updatedBy: {
481
- name: "George Clooney",
482
- obfuscatedId: "abc123",
483
- metadata: {
484
- type: "FULL_TIME",
485
- title: "Actor",
486
- department: "Movies",
487
- email: "george@example.com",
488
- location: "Hollywood, CA",
489
- phone: "6505551234",
490
- photoUrl: "https://example.com/george.jpg",
491
- startDate: new RFCDate("2000-01-23"),
492
- datasourceProfile: [
493
- {
494
- datasource: "github",
495
- handle: "<value>",
496
- },
497
- ],
498
- querySuggestions: {},
499
- inviteInfo: {},
500
- badges: [
501
- {
502
- key: "deployment_name_new_hire",
503
- displayName: "New hire",
504
- iconConfig: {
505
- color: "#343CED",
506
- key: "person_icon",
507
- iconType: "GLYPH",
508
- name: "user",
509
- },
510
- },
511
- ],
512
- },
513
- },
514
- },
515
- ],
516
- assignedTo: {
517
- name: "George Clooney",
518
- obfuscatedId: "abc123",
519
- metadata: {
520
- type: "FULL_TIME",
521
- title: "Actor",
522
- department: "Movies",
523
- email: "george@example.com",
524
- location: "Hollywood, CA",
525
- phone: "6505551234",
526
- photoUrl: "https://example.com/george.jpg",
527
- startDate: new RFCDate("2000-01-23"),
528
- datasourceProfile: [
529
- {
530
- datasource: "github",
531
- handle: "<value>",
532
- },
533
- {
534
- datasource: "github",
535
- handle: "<value>",
536
- },
537
- {
538
- datasource: "github",
539
- handle: "<value>",
540
- },
541
- ],
542
- querySuggestions: {},
543
- inviteInfo: {},
544
- badges: [
545
- {
546
- key: "deployment_name_new_hire",
547
- displayName: "New hire",
548
- iconConfig: {
549
- color: "#343CED",
550
- key: "person_icon",
551
- iconType: "GLYPH",
552
- name: "user",
553
- },
554
- },
555
- ],
556
- },
557
- },
558
- updatedBy: {
559
- name: "George Clooney",
560
- obfuscatedId: "abc123",
561
- metadata: {
562
- type: "FULL_TIME",
563
- title: "Actor",
564
- department: "Movies",
565
- email: "george@example.com",
566
- location: "Hollywood, CA",
567
- phone: "6505551234",
568
- photoUrl: "https://example.com/george.jpg",
569
- startDate: new RFCDate("2000-01-23"),
570
- datasourceProfile: [
571
- {
572
- datasource: "github",
573
- handle: "<value>",
574
- },
575
- ],
576
- querySuggestions: {},
577
- inviteInfo: {},
578
- badges: [
579
- {
580
- key: "deployment_name_new_hire",
581
- displayName: "New hire",
582
- iconConfig: {
583
- color: "#343CED",
584
- key: "person_icon",
585
- iconType: "GLYPH",
586
- name: "user",
587
- },
588
- },
589
- ],
590
- },
591
- },
592
- collections: [
593
- {
594
- name: "<value>",
595
- description: "rust whisper oh in seagull",
596
- addedRoles: [
597
- {
598
- person: {
599
- name: "George Clooney",
600
- obfuscatedId: "abc123",
601
- metadata: {
602
- type: "FULL_TIME",
603
- title: "Actor",
604
- department: "Movies",
605
- email: "george@example.com",
606
- location: "Hollywood, CA",
607
- phone: "6505551234",
608
- photoUrl: "https://example.com/george.jpg",
609
- startDate: new RFCDate("2000-01-23"),
610
- datasourceProfile: [
611
- {
612
- datasource: "github",
613
- handle: "<value>",
614
- },
615
- {
616
- datasource: "github",
617
- handle: "<value>",
618
- },
619
- {
620
- datasource: "github",
621
- handle: "<value>",
622
- },
623
- ],
624
- querySuggestions: {},
625
- inviteInfo: {},
626
- badges: [
627
- {
628
- key: "deployment_name_new_hire",
629
- displayName: "New hire",
630
- iconConfig: {
631
- color: "#343CED",
632
- key: "person_icon",
633
- iconType: "GLYPH",
634
- name: "user",
635
- },
636
- },
637
- ],
638
- },
639
- },
640
- role: "ANSWER_MODERATOR",
641
- },
642
- {
643
- person: {
644
- name: "George Clooney",
645
- obfuscatedId: "abc123",
646
- metadata: {
647
- type: "FULL_TIME",
648
- title: "Actor",
649
- department: "Movies",
650
- email: "george@example.com",
651
- location: "Hollywood, CA",
652
- phone: "6505551234",
653
- photoUrl: "https://example.com/george.jpg",
654
- startDate: new RFCDate("2000-01-23"),
655
- datasourceProfile: [
656
- {
657
- datasource: "github",
658
- handle: "<value>",
659
- },
660
- {
661
- datasource: "github",
662
- handle: "<value>",
663
- },
664
- ],
665
- querySuggestions: {},
666
- inviteInfo: {},
667
- badges: [
668
- {
669
- key: "deployment_name_new_hire",
670
- displayName: "New hire",
671
- iconConfig: {
672
- color: "#343CED",
673
- key: "person_icon",
674
- iconType: "GLYPH",
675
- name: "user",
676
- },
677
- },
678
- ],
679
- },
680
- },
681
- role: "VERIFIER",
682
- },
683
- {
684
- person: {
685
- name: "George Clooney",
686
- obfuscatedId: "abc123",
687
- metadata: {
688
- type: "FULL_TIME",
689
- title: "Actor",
690
- department: "Movies",
691
- email: "george@example.com",
692
- location: "Hollywood, CA",
693
- phone: "6505551234",
694
- photoUrl: "https://example.com/george.jpg",
695
- startDate: new RFCDate("2000-01-23"),
696
- datasourceProfile: [
697
- {
698
- datasource: "github",
699
- handle: "<value>",
700
- },
701
- {
702
- datasource: "github",
703
- handle: "<value>",
704
- },
705
- ],
706
- querySuggestions: {},
707
- inviteInfo: {},
708
- badges: [
709
- {
710
- key: "deployment_name_new_hire",
711
- displayName: "New hire",
712
- iconConfig: {
713
- color: "#343CED",
714
- key: "person_icon",
715
- iconType: "GLYPH",
716
- name: "user",
717
- },
718
- },
719
- ],
720
- },
721
- },
722
- role: "ANSWER_MODERATOR",
723
- },
724
- ],
725
- removedRoles: [
726
- {
727
- person: {
728
- name: "George Clooney",
729
- obfuscatedId: "abc123",
730
- metadata: {
731
- type: "FULL_TIME",
732
- title: "Actor",
733
- department: "Movies",
734
- email: "george@example.com",
735
- location: "Hollywood, CA",
736
- phone: "6505551234",
737
- photoUrl: "https://example.com/george.jpg",
738
- startDate: new RFCDate("2000-01-23"),
739
- datasourceProfile: [
740
- {
741
- datasource: "github",
742
- handle: "<value>",
743
- },
744
- ],
745
- querySuggestions: {},
746
- inviteInfo: {},
747
- badges: [
748
- {
749
- key: "deployment_name_new_hire",
750
- displayName: "New hire",
751
- iconConfig: {
752
- color: "#343CED",
753
- key: "person_icon",
754
- iconType: "GLYPH",
755
- name: "user",
756
- },
757
- },
758
- ],
759
- },
760
- },
761
- role: "ANSWER_MODERATOR",
762
- },
763
- {
764
- person: {
765
- name: "George Clooney",
766
- obfuscatedId: "abc123",
767
- metadata: {
768
- type: "FULL_TIME",
769
- title: "Actor",
770
- department: "Movies",
771
- email: "george@example.com",
772
- location: "Hollywood, CA",
773
- phone: "6505551234",
774
- photoUrl: "https://example.com/george.jpg",
775
- startDate: new RFCDate("2000-01-23"),
776
- datasourceProfile: [
777
- {
778
- datasource: "github",
779
- handle: "<value>",
780
- },
781
- ],
782
- querySuggestions: {},
783
- inviteInfo: {},
784
- badges: [
785
- {
786
- key: "deployment_name_new_hire",
787
- displayName: "New hire",
788
- iconConfig: {
789
- color: "#343CED",
790
- key: "person_icon",
791
- iconType: "GLYPH",
792
- name: "user",
793
- },
794
- },
795
- ],
796
- },
797
- },
798
- role: "VERIFIER",
799
- },
800
- ],
801
- audienceFilters: [
802
- {
803
- fieldName: "type",
804
- values: [
805
- {
806
- value: "Spreadsheet",
807
- relationType: "EQUALS",
808
- },
809
- {
810
- value: "Presentation",
811
- relationType: "EQUALS",
812
- },
813
- ],
814
- },
815
- ],
816
- id: 532535,
817
- creator: {
818
- name: "George Clooney",
819
- obfuscatedId: "abc123",
820
- metadata: {
821
- type: "FULL_TIME",
822
- title: "Actor",
823
- department: "Movies",
824
- email: "george@example.com",
825
- location: "Hollywood, CA",
826
- phone: "6505551234",
827
- photoUrl: "https://example.com/george.jpg",
828
- startDate: new RFCDate("2000-01-23"),
829
- datasourceProfile: [
830
- {
831
- datasource: "github",
832
- handle: "<value>",
833
- },
834
- {
835
- datasource: "github",
836
- handle: "<value>",
837
- },
838
- {
839
- datasource: "github",
840
- handle: "<value>",
841
- },
842
- ],
843
- querySuggestions: {},
844
- inviteInfo: {},
845
- badges: [
846
- {
847
- key: "deployment_name_new_hire",
848
- displayName: "New hire",
849
- iconConfig: {
850
- color: "#343CED",
851
- key: "person_icon",
852
- iconType: "GLYPH",
853
- name: "user",
854
- },
855
- },
856
- ],
857
- },
858
- },
859
- updatedBy: {
860
- name: "George Clooney",
861
- obfuscatedId: "abc123",
862
- metadata: {
863
- type: "FULL_TIME",
864
- title: "Actor",
865
- department: "Movies",
866
- email: "george@example.com",
867
- location: "Hollywood, CA",
868
- phone: "6505551234",
869
- photoUrl: "https://example.com/george.jpg",
870
- startDate: new RFCDate("2000-01-23"),
871
- datasourceProfile: [
872
- {
873
- datasource: "github",
874
- handle: "<value>",
875
- },
876
- {
877
- datasource: "github",
878
- handle: "<value>",
879
- },
880
- ],
881
- querySuggestions: {},
882
- inviteInfo: {},
883
- badges: [
884
- {
885
- key: "deployment_name_new_hire",
886
- displayName: "New hire",
887
- iconConfig: {
888
- color: "#343CED",
889
- key: "person_icon",
890
- iconType: "GLYPH",
891
- name: "user",
892
- },
893
- },
894
- ],
895
- },
896
- },
897
- items: [
898
- {
899
- collectionId: 354858,
900
- createdBy: {
901
- name: "George Clooney",
902
- obfuscatedId: "abc123",
903
- metadata: {
904
- type: "FULL_TIME",
905
- title: "Actor",
906
- department: "Movies",
907
- email: "george@example.com",
908
- location: "Hollywood, CA",
909
- phone: "6505551234",
910
- photoUrl: "https://example.com/george.jpg",
911
- startDate: new RFCDate("2000-01-23"),
912
- datasourceProfile: [
913
- {
914
- datasource: "github",
915
- handle: "<value>",
916
- },
917
- ],
918
- querySuggestions: {},
919
- inviteInfo: {},
920
- badges: [
921
- {
922
- key: "deployment_name_new_hire",
923
- displayName: "New hire",
924
- iconConfig: {
925
- color: "#343CED",
926
- key: "person_icon",
927
- iconType: "GLYPH",
928
- name: "user",
929
- },
930
- },
931
- ],
932
- },
933
- },
934
- shortcut: {
935
- inputAlias: "<value>",
936
- createdBy: {
937
- name: "George Clooney",
938
- obfuscatedId: "abc123",
939
- metadata: {
940
- type: "FULL_TIME",
941
- title: "Actor",
942
- department: "Movies",
943
- email: "george@example.com",
944
- location: "Hollywood, CA",
945
- phone: "6505551234",
946
- photoUrl: "https://example.com/george.jpg",
947
- startDate: new RFCDate("2000-01-23"),
948
- datasourceProfile: [
949
- {
950
- datasource: "github",
951
- handle: "<value>",
952
- },
953
- {
954
- datasource: "github",
955
- handle: "<value>",
956
- },
957
- ],
958
- querySuggestions: {},
959
- inviteInfo: {},
960
- badges: [
961
- {
962
- key: "deployment_name_new_hire",
963
- displayName: "New hire",
964
- iconConfig: {
965
- color: "#343CED",
966
- key: "person_icon",
967
- iconType: "GLYPH",
968
- name: "user",
969
- },
970
- },
971
- ],
972
- },
973
- },
974
- updatedBy: {
975
- name: "George Clooney",
976
- obfuscatedId: "abc123",
977
- metadata: {
978
- type: "FULL_TIME",
979
- title: "Actor",
980
- department: "Movies",
981
- email: "george@example.com",
982
- location: "Hollywood, CA",
983
- phone: "6505551234",
984
- photoUrl: "https://example.com/george.jpg",
985
- startDate: new RFCDate("2000-01-23"),
986
- datasourceProfile: [
987
- {
988
- datasource: "github",
989
- handle: "<value>",
990
- },
991
- {
992
- datasource: "github",
993
- handle: "<value>",
994
- },
995
- ],
996
- querySuggestions: {},
997
- inviteInfo: {},
998
- badges: [
999
- {
1000
- key: "deployment_name_new_hire",
1001
- displayName: "New hire",
1002
- iconConfig: {
1003
- color: "#343CED",
1004
- key: "person_icon",
1005
- iconType: "GLYPH",
1006
- name: "user",
1007
- },
1008
- },
1009
- ],
1010
- },
1011
- },
1012
- roles: [
1013
- {
1014
- person: {
1015
- name: "George Clooney",
1016
- obfuscatedId: "abc123",
1017
- metadata: {
1018
- type: "FULL_TIME",
1019
- title: "Actor",
1020
- department: "Movies",
1021
- email: "george@example.com",
1022
- location: "Hollywood, CA",
1023
- phone: "6505551234",
1024
- photoUrl: "https://example.com/george.jpg",
1025
- startDate: new RFCDate("2000-01-23"),
1026
- datasourceProfile: [
1027
- {
1028
- datasource: "github",
1029
- handle: "<value>",
1030
- },
1031
- {
1032
- datasource: "github",
1033
- handle: "<value>",
1034
- },
1035
- {
1036
- datasource: "github",
1037
- handle: "<value>",
1038
- },
1039
- ],
1040
- querySuggestions: {},
1041
- inviteInfo: {},
1042
- badges: [
1043
- {
1044
- key: "deployment_name_new_hire",
1045
- displayName: "New hire",
1046
- iconConfig: {
1047
- color: "#343CED",
1048
- key: "person_icon",
1049
- iconType: "GLYPH",
1050
- name: "user",
1051
- },
1052
- },
1053
- ],
1054
- },
1055
- },
1056
- role: "EDITOR",
1057
- },
1058
- {
1059
- person: {
1060
- name: "George Clooney",
1061
- obfuscatedId: "abc123",
1062
- metadata: {
1063
- type: "FULL_TIME",
1064
- title: "Actor",
1065
- department: "Movies",
1066
- email: "george@example.com",
1067
- location: "Hollywood, CA",
1068
- phone: "6505551234",
1069
- photoUrl: "https://example.com/george.jpg",
1070
- startDate: new RFCDate("2000-01-23"),
1071
- datasourceProfile: [
1072
- {
1073
- datasource: "github",
1074
- handle: "<value>",
1075
- },
1076
- {
1077
- datasource: "github",
1078
- handle: "<value>",
1079
- },
1080
- ],
1081
- querySuggestions: {},
1082
- inviteInfo: {},
1083
- badges: [
1084
- {
1085
- key: "deployment_name_new_hire",
1086
- displayName: "New hire",
1087
- iconConfig: {
1088
- color: "#343CED",
1089
- key: "person_icon",
1090
- iconType: "GLYPH",
1091
- name: "user",
1092
- },
1093
- },
1094
- ],
1095
- },
1096
- },
1097
- role: "OWNER",
1098
- },
1099
- ],
1100
- },
1101
- itemType: "TEXT",
1102
- },
1103
- ],
1104
- },
1105
- {
1106
- name: "<value>",
1107
- description: "rotating finally marimba gnaw consequently",
1108
- audienceFilters: [
1109
- {
1110
- fieldName: "type",
1111
- values: [
1112
- {
1113
- value: "Spreadsheet",
1114
- relationType: "EQUALS",
1115
- },
1116
- {
1117
- value: "Presentation",
1118
- relationType: "EQUALS",
1119
- },
1120
- ],
1121
- },
1122
- ],
1123
- id: 354405,
1124
- creator: {
1125
- name: "George Clooney",
1126
- obfuscatedId: "abc123",
1127
- metadata: {
1128
- type: "FULL_TIME",
1129
- title: "Actor",
1130
- department: "Movies",
1131
- email: "george@example.com",
1132
- location: "Hollywood, CA",
1133
- phone: "6505551234",
1134
- photoUrl: "https://example.com/george.jpg",
1135
- startDate: new RFCDate("2000-01-23"),
1136
- datasourceProfile: [
1137
- {
1138
- datasource: "github",
1139
- handle: "<value>",
1140
- },
1141
- {
1142
- datasource: "github",
1143
- handle: "<value>",
1144
- },
1145
- ],
1146
- querySuggestions: {},
1147
- inviteInfo: {},
1148
- badges: [
1149
- {
1150
- key: "deployment_name_new_hire",
1151
- displayName: "New hire",
1152
- iconConfig: {
1153
- color: "#343CED",
1154
- key: "person_icon",
1155
- iconType: "GLYPH",
1156
- name: "user",
1157
- },
1158
- },
1159
- ],
1160
- },
1161
- },
1162
- updatedBy: {
1163
- name: "George Clooney",
1164
- obfuscatedId: "abc123",
1165
- metadata: {
1166
- type: "FULL_TIME",
1167
- title: "Actor",
1168
- department: "Movies",
1169
- email: "george@example.com",
1170
- location: "Hollywood, CA",
1171
- phone: "6505551234",
1172
- photoUrl: "https://example.com/george.jpg",
1173
- startDate: new RFCDate("2000-01-23"),
1174
- datasourceProfile: [
1175
- {
1176
- datasource: "github",
1177
- handle: "<value>",
1178
- },
1179
- {
1180
- datasource: "github",
1181
- handle: "<value>",
1182
- },
1183
- ],
1184
- querySuggestions: {},
1185
- inviteInfo: {},
1186
- badges: [
1187
- {
1188
- key: "deployment_name_new_hire",
1189
- displayName: "New hire",
1190
- iconConfig: {
1191
- color: "#343CED",
1192
- key: "person_icon",
1193
- iconType: "GLYPH",
1194
- name: "user",
1195
- },
1196
- },
1197
- ],
1198
- },
1199
- },
1200
- },
1201
- {
1202
- name: "<value>",
1203
- description: "backburn elver ugh",
1204
- audienceFilters: [
1205
- {
1206
- fieldName: "type",
1207
- values: [
1208
- {
1209
- value: "Spreadsheet",
1210
- relationType: "EQUALS",
1211
- },
1212
- {
1213
- value: "Presentation",
1214
- relationType: "EQUALS",
1215
- },
1216
- ],
1217
- },
1218
- ],
1219
- id: 418504,
1220
- creator: {
1221
- name: "George Clooney",
1222
- obfuscatedId: "abc123",
1223
- metadata: {
1224
- type: "FULL_TIME",
1225
- title: "Actor",
1226
- department: "Movies",
1227
- email: "george@example.com",
1228
- location: "Hollywood, CA",
1229
- phone: "6505551234",
1230
- photoUrl: "https://example.com/george.jpg",
1231
- startDate: new RFCDate("2000-01-23"),
1232
- datasourceProfile: [
1233
- {
1234
- datasource: "github",
1235
- handle: "<value>",
1236
- },
1237
- {
1238
- datasource: "github",
1239
- handle: "<value>",
1240
- },
1241
- ],
1242
- querySuggestions: {},
1243
- inviteInfo: {},
1244
- badges: [
1245
- {
1246
- key: "deployment_name_new_hire",
1247
- displayName: "New hire",
1248
- iconConfig: {
1249
- color: "#343CED",
1250
- key: "person_icon",
1251
- iconType: "GLYPH",
1252
- name: "user",
1253
- },
1254
- },
1255
- ],
1256
- },
1257
- },
1258
- updatedBy: {
1259
- name: "George Clooney",
1260
- obfuscatedId: "abc123",
1261
- metadata: {
1262
- type: "FULL_TIME",
1263
- title: "Actor",
1264
- department: "Movies",
1265
- email: "george@example.com",
1266
- location: "Hollywood, CA",
1267
- phone: "6505551234",
1268
- photoUrl: "https://example.com/george.jpg",
1269
- startDate: new RFCDate("2000-01-23"),
1270
- datasourceProfile: [
1271
- {
1272
- datasource: "github",
1273
- handle: "<value>",
1274
- },
1275
- {
1276
- datasource: "github",
1277
- handle: "<value>",
1278
- },
1279
- {
1280
- datasource: "github",
1281
- handle: "<value>",
1282
- },
1283
- ],
1284
- querySuggestions: {},
1285
- inviteInfo: {},
1286
- badges: [
1287
- {
1288
- key: "deployment_name_new_hire",
1289
- displayName: "New hire",
1290
- iconConfig: {
1291
- color: "#343CED",
1292
- key: "person_icon",
1293
- iconType: "GLYPH",
1294
- name: "user",
1295
- },
1296
- },
1297
- ],
1298
- },
1299
- },
1300
- },
1301
- ],
1302
- interactions: {
1303
- reacts: [
1304
- {
1305
- reactors: [
1306
- {
1307
- name: "George Clooney",
1308
- obfuscatedId: "abc123",
1309
- },
1310
- ],
1311
- },
1312
- {},
1313
- ],
1314
- shares: [
1315
- {
1316
- numDaysAgo: 208065,
1317
- sharer: {
1318
- name: "George Clooney",
1319
- obfuscatedId: "abc123",
1320
- metadata: {
1321
- type: "FULL_TIME",
1322
- title: "Actor",
1323
- department: "Movies",
1324
- email: "george@example.com",
1325
- location: "Hollywood, CA",
1326
- phone: "6505551234",
1327
- photoUrl: "https://example.com/george.jpg",
1328
- startDate: new RFCDate("2000-01-23"),
1329
- datasourceProfile: [
1330
- {
1331
- datasource: "github",
1332
- handle: "<value>",
1333
- },
1334
- {
1335
- datasource: "github",
1336
- handle: "<value>",
1337
- },
1338
- {
1339
- datasource: "github",
1340
- handle: "<value>",
1341
- },
1342
- ],
1343
- querySuggestions: {},
1344
- inviteInfo: {},
1345
- badges: [
1346
- {
1347
- key: "deployment_name_new_hire",
1348
- displayName: "New hire",
1349
- iconConfig: {
1350
- color: "#343CED",
1351
- key: "person_icon",
1352
- iconType: "GLYPH",
1353
- name: "user",
1354
- },
1355
- },
1356
- ],
1357
- },
1358
- },
1359
- },
1360
- {
1361
- numDaysAgo: 29685,
1362
- sharer: {
1363
- name: "George Clooney",
1364
- obfuscatedId: "abc123",
1365
- metadata: {
1366
- type: "FULL_TIME",
1367
- title: "Actor",
1368
- department: "Movies",
1369
- email: "george@example.com",
1370
- location: "Hollywood, CA",
1371
- phone: "6505551234",
1372
- photoUrl: "https://example.com/george.jpg",
1373
- startDate: new RFCDate("2000-01-23"),
1374
- datasourceProfile: [
1375
- {
1376
- datasource: "github",
1377
- handle: "<value>",
1378
- },
1379
- {
1380
- datasource: "github",
1381
- handle: "<value>",
1382
- },
1383
- {
1384
- datasource: "github",
1385
- handle: "<value>",
1386
- },
1387
- ],
1388
- querySuggestions: {},
1389
- inviteInfo: {},
1390
- badges: [
1391
- {
1392
- key: "deployment_name_new_hire",
1393
- displayName: "New hire",
1394
- iconConfig: {
1395
- color: "#343CED",
1396
- key: "person_icon",
1397
- iconType: "GLYPH",
1398
- name: "user",
1399
- },
1400
- },
1401
- ],
1402
- },
1403
- },
1404
- },
1405
- ],
1406
- },
1407
- verification: {
1408
- state: "UNVERIFIED",
1409
- metadata: {
1410
- lastVerifier: {
1411
- name: "George Clooney",
1412
- obfuscatedId: "abc123",
1413
- metadata: {
1414
- type: "FULL_TIME",
1415
- title: "Actor",
1416
- department: "Movies",
1417
- email: "george@example.com",
1418
- location: "Hollywood, CA",
1419
- phone: "6505551234",
1420
- photoUrl: "https://example.com/george.jpg",
1421
- startDate: new RFCDate("2000-01-23"),
1422
- datasourceProfile: [
1423
- {
1424
- datasource: "github",
1425
- handle: "<value>",
1426
- },
1427
- {
1428
- datasource: "github",
1429
- handle: "<value>",
1430
- },
1431
- ],
1432
- querySuggestions: {},
1433
- inviteInfo: {},
1434
- badges: [
1435
- {
1436
- key: "deployment_name_new_hire",
1437
- displayName: "New hire",
1438
- iconConfig: {
1439
- color: "#343CED",
1440
- key: "person_icon",
1441
- iconType: "GLYPH",
1442
- name: "user",
1443
- },
1444
- },
1445
- ],
1446
- },
1447
- },
1448
- reminders: [
1449
- {
1450
- assignee: {
1451
- name: "George Clooney",
1452
- obfuscatedId: "abc123",
1453
- metadata: {
1454
- type: "FULL_TIME",
1455
- title: "Actor",
1456
- department: "Movies",
1457
- email: "george@example.com",
1458
- location: "Hollywood, CA",
1459
- phone: "6505551234",
1460
- photoUrl: "https://example.com/george.jpg",
1461
- startDate: new RFCDate("2000-01-23"),
1462
- datasourceProfile: [
1463
- {
1464
- datasource: "github",
1465
- handle: "<value>",
1466
- },
1467
- {
1468
- datasource: "github",
1469
- handle: "<value>",
1470
- },
1471
- ],
1472
- querySuggestions: {},
1473
- inviteInfo: {},
1474
- badges: [
1475
- {
1476
- key: "deployment_name_new_hire",
1477
- displayName: "New hire",
1478
- iconConfig: {
1479
- color: "#343CED",
1480
- key: "person_icon",
1481
- iconType: "GLYPH",
1482
- name: "user",
1483
- },
1484
- },
1485
- ],
1486
- },
1487
- },
1488
- requestor: {
1489
- name: "George Clooney",
1490
- obfuscatedId: "abc123",
1491
- metadata: {
1492
- type: "FULL_TIME",
1493
- title: "Actor",
1494
- department: "Movies",
1495
- email: "george@example.com",
1496
- location: "Hollywood, CA",
1497
- phone: "6505551234",
1498
- photoUrl: "https://example.com/george.jpg",
1499
- startDate: new RFCDate("2000-01-23"),
1500
- datasourceProfile: [
1501
- {
1502
- datasource: "github",
1503
- handle: "<value>",
1504
- },
1505
- {
1506
- datasource: "github",
1507
- handle: "<value>",
1508
- },
1509
- ],
1510
- querySuggestions: {},
1511
- inviteInfo: {},
1512
- badges: [
1513
- {
1514
- key: "deployment_name_new_hire",
1515
- displayName: "New hire",
1516
- iconConfig: {
1517
- color: "#343CED",
1518
- key: "person_icon",
1519
- iconType: "GLYPH",
1520
- name: "user",
1521
- },
1522
- },
1523
- ],
1524
- },
1525
- },
1526
- remindAt: 770893,
1527
- },
1528
- ],
1529
- lastReminder: {
1530
- assignee: {
1531
- name: "George Clooney",
1532
- obfuscatedId: "abc123",
1533
- metadata: {
1534
- type: "FULL_TIME",
1535
- title: "Actor",
1536
- department: "Movies",
1537
- email: "george@example.com",
1538
- location: "Hollywood, CA",
1539
- phone: "6505551234",
1540
- photoUrl: "https://example.com/george.jpg",
1541
- startDate: new RFCDate("2000-01-23"),
1542
- datasourceProfile: [
1543
- {
1544
- datasource: "github",
1545
- handle: "<value>",
1546
- },
1547
- {
1548
- datasource: "github",
1549
- handle: "<value>",
1550
- },
1551
- ],
1552
- querySuggestions: {},
1553
- inviteInfo: {},
1554
- badges: [
1555
- {
1556
- key: "deployment_name_new_hire",
1557
- displayName: "New hire",
1558
- iconConfig: {
1559
- color: "#343CED",
1560
- key: "person_icon",
1561
- iconType: "GLYPH",
1562
- name: "user",
1563
- },
1564
- },
1565
- ],
1566
- },
1567
- },
1568
- requestor: {
1569
- name: "George Clooney",
1570
- obfuscatedId: "abc123",
1571
- metadata: {
1572
- type: "FULL_TIME",
1573
- title: "Actor",
1574
- department: "Movies",
1575
- email: "george@example.com",
1576
- location: "Hollywood, CA",
1577
- phone: "6505551234",
1578
- photoUrl: "https://example.com/george.jpg",
1579
- startDate: new RFCDate("2000-01-23"),
1580
- datasourceProfile: [
1581
- {
1582
- datasource: "github",
1583
- handle: "<value>",
1584
- },
1585
- {
1586
- datasource: "github",
1587
- handle: "<value>",
1588
- },
1589
- ],
1590
- querySuggestions: {},
1591
- inviteInfo: {},
1592
- badges: [
1593
- {
1594
- key: "deployment_name_new_hire",
1595
- displayName: "New hire",
1596
- iconConfig: {
1597
- color: "#343CED",
1598
- key: "person_icon",
1599
- iconType: "GLYPH",
1600
- name: "user",
1601
- },
1602
- },
1603
- ],
1604
- },
1605
- },
1606
- remindAt: 578719,
1607
- },
1608
- candidateVerifiers: [
1609
- {
1610
- name: "George Clooney",
1611
- obfuscatedId: "abc123",
1612
- },
1613
- ],
1614
- },
1615
- },
1616
- shortcuts: [
1617
- {
1618
- inputAlias: "<value>",
1619
- createdBy: {
1620
- name: "George Clooney",
1621
- obfuscatedId: "abc123",
1622
- metadata: {
1623
- type: "FULL_TIME",
1624
- title: "Actor",
1625
- department: "Movies",
1626
- email: "george@example.com",
1627
- location: "Hollywood, CA",
1628
- phone: "6505551234",
1629
- photoUrl: "https://example.com/george.jpg",
1630
- startDate: new RFCDate("2000-01-23"),
1631
- datasourceProfile: [
1632
- {
1633
- datasource: "github",
1634
- handle: "<value>",
1635
- },
1636
- {
1637
- datasource: "github",
1638
- handle: "<value>",
1639
- },
1640
- ],
1641
- querySuggestions: {},
1642
- inviteInfo: {},
1643
- badges: [
1644
- {
1645
- key: "deployment_name_new_hire",
1646
- displayName: "New hire",
1647
- iconConfig: {
1648
- color: "#343CED",
1649
- key: "person_icon",
1650
- iconType: "GLYPH",
1651
- name: "user",
1652
- },
1653
- },
1654
- ],
1655
- },
1656
- },
1657
- updatedBy: {
1658
- name: "George Clooney",
1659
- obfuscatedId: "abc123",
1660
- metadata: {
1661
- type: "FULL_TIME",
1662
- title: "Actor",
1663
- department: "Movies",
1664
- email: "george@example.com",
1665
- location: "Hollywood, CA",
1666
- phone: "6505551234",
1667
- photoUrl: "https://example.com/george.jpg",
1668
- startDate: new RFCDate("2000-01-23"),
1669
- datasourceProfile: [
1670
- {
1671
- datasource: "github",
1672
- handle: "<value>",
1673
- },
1674
- {
1675
- datasource: "github",
1676
- handle: "<value>",
1677
- },
1678
- ],
1679
- querySuggestions: {},
1680
- inviteInfo: {},
1681
- badges: [
1682
- {
1683
- key: "deployment_name_new_hire",
1684
- displayName: "New hire",
1685
- iconConfig: {
1686
- color: "#343CED",
1687
- key: "person_icon",
1688
- iconType: "GLYPH",
1689
- name: "user",
1690
- },
1691
- },
1692
- ],
1693
- },
1694
- },
1695
- },
1696
- ],
1697
- customData: {
1698
- "someCustomField": {},
1699
- },
1700
- contactPerson: {
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 RFCDate("2000-01-23"),
1712
- datasourceProfile: [
1713
- {
1714
- datasource: "github",
1715
- handle: "<value>",
1716
- },
1717
- {
1718
- datasource: "github",
1719
- handle: "<value>",
1720
- },
1721
- ],
1722
- querySuggestions: {},
1723
- inviteInfo: {},
1724
- badges: [
1725
- {
1726
- key: "deployment_name_new_hire",
1727
- displayName: "New hire",
1728
- iconConfig: {
1729
- color: "#343CED",
1730
- key: "person_icon",
1731
- iconType: "GLYPH",
1732
- name: "user",
1733
- },
1734
- },
1735
- ],
1736
- },
1737
- },
1738
- },
1739
- },
1740
- pageSize: 100,
1741
- maxSnippetSize: 400,
1742
- requestOptions: {
1743
- facetFilterSets: [
1744
- {
1745
- filters: [
1746
- {
1747
- fieldName: "type",
1748
- values: [
1749
- {
1750
- value: "Spreadsheet",
1751
- relationType: "EQUALS",
1752
- },
1753
- {
1754
- value: "Presentation",
1755
- relationType: "EQUALS",
1756
- },
1757
- ],
1758
- },
1759
- ],
1760
- },
1761
- ],
1762
- context: {
1763
- metadata: {
1764
- datasource: "datasource",
1765
- objectType: "Feature Request",
1766
- container: "container",
1767
- parentId: "JIRA_EN-1337",
1768
- mimeType: "mimeType",
1769
- documentId: "documentId",
1770
- createTime: new Date("2000-01-23T04:56:07.000Z"),
1771
- updateTime: new Date("2000-01-23T04:56:07.000Z"),
1772
- author: {
1773
- name: "George Clooney",
1774
- obfuscatedId: "abc123",
1775
- metadata: {
1776
- type: "FULL_TIME",
1777
- title: "Actor",
1778
- department: "Movies",
1779
- email: "george@example.com",
1780
- location: "Hollywood, CA",
1781
- phone: "6505551234",
1782
- photoUrl: "https://example.com/george.jpg",
1783
- startDate: new RFCDate("2000-01-23"),
1784
- datasourceProfile: [
1785
- {
1786
- datasource: "github",
1787
- handle: "<value>",
1788
- },
1789
- {
1790
- datasource: "github",
1791
- handle: "<value>",
1792
- },
1793
- {
1794
- datasource: "github",
1795
- handle: "<value>",
1796
- },
1797
- ],
1798
- querySuggestions: {},
1799
- inviteInfo: {},
1800
- badges: [
1801
- {
1802
- key: "deployment_name_new_hire",
1803
- displayName: "New hire",
1804
- iconConfig: {
1805
- color: "#343CED",
1806
- key: "person_icon",
1807
- iconType: "GLYPH",
1808
- name: "user",
1809
- },
1810
- },
1811
- ],
1812
- },
1813
- },
1814
- owner: {
1815
- name: "George Clooney",
1816
- obfuscatedId: "abc123",
1817
- metadata: {
1818
- type: "FULL_TIME",
1819
- title: "Actor",
1820
- department: "Movies",
1821
- email: "george@example.com",
1822
- location: "Hollywood, CA",
1823
- phone: "6505551234",
1824
- photoUrl: "https://example.com/george.jpg",
1825
- startDate: new RFCDate("2000-01-23"),
1826
- datasourceProfile: [
1827
- {
1828
- datasource: "github",
1829
- handle: "<value>",
1830
- },
1831
- ],
1832
- querySuggestions: {},
1833
- inviteInfo: {},
1834
- badges: [
1835
- {
1836
- key: "deployment_name_new_hire",
1837
- displayName: "New hire",
1838
- iconConfig: {
1839
- color: "#343CED",
1840
- key: "person_icon",
1841
- iconType: "GLYPH",
1842
- name: "user",
1843
- },
1844
- },
1845
- ],
1846
- },
1847
- },
1848
- components: [
1849
- "Backend",
1850
- "Networking",
1851
- ],
1852
- status: "[\"Done\"]",
1853
- assignedTo: {
1854
- name: "George Clooney",
1855
- obfuscatedId: "abc123",
1856
- metadata: {
1857
- type: "FULL_TIME",
1858
- title: "Actor",
1859
- department: "Movies",
1860
- email: "george@example.com",
1861
- location: "Hollywood, CA",
1862
- phone: "6505551234",
1863
- photoUrl: "https://example.com/george.jpg",
1864
- startDate: new RFCDate("2000-01-23"),
1865
- datasourceProfile: [
1866
- {
1867
- datasource: "github",
1868
- handle: "<value>",
1869
- },
1870
- {
1871
- datasource: "github",
1872
- handle: "<value>",
1873
- },
1874
- {
1875
- datasource: "github",
1876
- handle: "<value>",
1877
- },
1878
- ],
1879
- querySuggestions: {},
1880
- inviteInfo: {},
1881
- badges: [
1882
- {
1883
- key: "deployment_name_new_hire",
1884
- displayName: "New hire",
1885
- iconConfig: {
1886
- color: "#343CED",
1887
- key: "person_icon",
1888
- iconType: "GLYPH",
1889
- name: "user",
1890
- },
1891
- },
1892
- ],
1893
- },
1894
- },
1895
- updatedBy: {
1896
- name: "George Clooney",
1897
- obfuscatedId: "abc123",
1898
- metadata: {
1899
- type: "FULL_TIME",
1900
- title: "Actor",
1901
- department: "Movies",
1902
- email: "george@example.com",
1903
- location: "Hollywood, CA",
1904
- phone: "6505551234",
1905
- photoUrl: "https://example.com/george.jpg",
1906
- startDate: new RFCDate("2000-01-23"),
1907
- datasourceProfile: [
1908
- {
1909
- datasource: "github",
1910
- handle: "<value>",
1911
- },
1912
- {
1913
- datasource: "github",
1914
- handle: "<value>",
1915
- },
1916
- {
1917
- datasource: "github",
1918
- handle: "<value>",
1919
- },
1920
- ],
1921
- querySuggestions: {},
1922
- inviteInfo: {},
1923
- badges: [
1924
- {
1925
- key: "deployment_name_new_hire",
1926
- displayName: "New hire",
1927
- iconConfig: {
1928
- color: "#343CED",
1929
- key: "person_icon",
1930
- iconType: "GLYPH",
1931
- name: "user",
1932
- },
1933
- },
1934
- ],
1935
- },
1936
- },
1937
- interactions: {},
1938
- verification: {
1939
- state: "VERIFIED",
1940
- metadata: {
1941
- lastVerifier: {
1942
- name: "George Clooney",
1943
- obfuscatedId: "abc123",
1944
- metadata: {
1945
- type: "FULL_TIME",
1946
- title: "Actor",
1947
- department: "Movies",
1948
- email: "george@example.com",
1949
- location: "Hollywood, CA",
1950
- phone: "6505551234",
1951
- photoUrl: "https://example.com/george.jpg",
1952
- startDate: new RFCDate("2000-01-23"),
1953
- datasourceProfile: [
1954
- {
1955
- datasource: "github",
1956
- handle: "<value>",
1957
- },
1958
- {
1959
- datasource: "github",
1960
- handle: "<value>",
1961
- },
1962
- {
1963
- datasource: "github",
1964
- handle: "<value>",
1965
- },
1966
- ],
1967
- querySuggestions: {},
1968
- inviteInfo: {},
1969
- badges: [
1970
- {
1971
- key: "deployment_name_new_hire",
1972
- displayName: "New hire",
1973
- iconConfig: {
1974
- color: "#343CED",
1975
- key: "person_icon",
1976
- iconType: "GLYPH",
1977
- name: "user",
1978
- },
1979
- },
1980
- ],
1981
- },
1982
- },
1983
- lastReminder: {
1984
- assignee: {
1985
- name: "George Clooney",
1986
- obfuscatedId: "abc123",
1987
- metadata: {
1988
- type: "FULL_TIME",
1989
- title: "Actor",
1990
- department: "Movies",
1991
- email: "george@example.com",
1992
- location: "Hollywood, CA",
1993
- phone: "6505551234",
1994
- photoUrl: "https://example.com/george.jpg",
1995
- startDate: new RFCDate("2000-01-23"),
1996
- datasourceProfile: [
1997
- {
1998
- datasource: "github",
1999
- handle: "<value>",
2000
- },
2001
- ],
2002
- querySuggestions: {},
2003
- inviteInfo: {},
2004
- badges: [
2005
- {
2006
- key: "deployment_name_new_hire",
2007
- displayName: "New hire",
2008
- iconConfig: {
2009
- color: "#343CED",
2010
- key: "person_icon",
2011
- iconType: "GLYPH",
2012
- name: "user",
2013
- },
2014
- },
2015
- ],
2016
- },
2017
- },
2018
- requestor: {
2019
- name: "George Clooney",
2020
- obfuscatedId: "abc123",
2021
- metadata: {
2022
- type: "FULL_TIME",
2023
- title: "Actor",
2024
- department: "Movies",
2025
- email: "george@example.com",
2026
- location: "Hollywood, CA",
2027
- phone: "6505551234",
2028
- photoUrl: "https://example.com/george.jpg",
2029
- startDate: new RFCDate("2000-01-23"),
2030
- datasourceProfile: [
2031
- {
2032
- datasource: "github",
2033
- handle: "<value>",
2034
- },
2035
- {
2036
- datasource: "github",
2037
- handle: "<value>",
2038
- },
2039
- {
2040
- datasource: "github",
2041
- handle: "<value>",
2042
- },
2043
- ],
2044
- querySuggestions: {},
2045
- inviteInfo: {},
2046
- badges: [
2047
- {
2048
- key: "deployment_name_new_hire",
2049
- displayName: "New hire",
2050
- iconConfig: {
2051
- color: "#343CED",
2052
- key: "person_icon",
2053
- iconType: "GLYPH",
2054
- name: "user",
2055
- },
2056
- },
2057
- ],
2058
- },
2059
- },
2060
- remindAt: 23690,
2061
- },
2062
- },
2063
- },
2064
- customData: {
2065
- "someCustomField": {},
2066
- },
2067
- contactPerson: {
2068
- name: "George Clooney",
2069
- obfuscatedId: "abc123",
2070
- metadata: {
2071
- type: "FULL_TIME",
2072
- title: "Actor",
2073
- department: "Movies",
2074
- email: "george@example.com",
2075
- location: "Hollywood, CA",
2076
- phone: "6505551234",
2077
- photoUrl: "https://example.com/george.jpg",
2078
- startDate: new RFCDate("2000-01-23"),
2079
- datasourceProfile: [
2080
- {
2081
- datasource: "github",
2082
- handle: "<value>",
2083
- },
2084
- {
2085
- datasource: "github",
2086
- handle: "<value>",
2087
- },
2088
- {
2089
- datasource: "github",
2090
- handle: "<value>",
2091
- },
2092
- ],
2093
- querySuggestions: {},
2094
- inviteInfo: {},
2095
- badges: [
2096
- {
2097
- key: "deployment_name_new_hire",
2098
- displayName: "New hire",
2099
- iconConfig: {
2100
- color: "#343CED",
2101
- key: "person_icon",
2102
- iconType: "GLYPH",
2103
- name: "user",
2104
- },
2105
- },
2106
- ],
2107
- },
2108
- },
2109
- },
2110
- },
2111
- },
2112
- });
2113
- expect(result).toBeDefined();
2114
- });
2115
-
2116
- test("Client Search Search", async () => {
2117
- const testHttpClient = createTestHTTPClient("search");
2118
-
2119
- const glean = new Glean({
2120
- serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
2121
- httpClient: testHttpClient,
2122
- apiToken: process.env["GLEAN_API_TOKEN"] ?? "value",
2123
- });
2124
-
2125
- const result = await glean.client.search.query({
2126
- trackingToken: "trackingToken",
2127
- sourceDocument: {
2128
- metadata: {
2129
- datasource: "datasource",
2130
- objectType: "Feature Request",
2131
- container: "container",
2132
- parentId: "JIRA_EN-1337",
2133
- mimeType: "mimeType",
2134
- documentId: "documentId",
2135
- createTime: new Date("2000-01-23T04:56:07.000Z"),
2136
- updateTime: new Date("2000-01-23T04:56:07.000Z"),
2137
- author: {
2138
- name: "George Clooney",
2139
- obfuscatedId: "abc123",
2140
- relatedDocuments: [
2141
- {
2142
- querySuggestion: {
2143
- query: "app:github type:pull author:mortimer",
2144
- searchProviderInfo: {
2145
- name: "Google",
2146
- searchLinkUrlTemplate:
2147
- "https://www.google.com/search?q={query}&hl=en",
2148
- },
2149
- label: "Mortimer's PRs",
2150
- datasource: "github",
2151
- requestOptions: {
2152
- datasourceFilter: "JIRA",
2153
- datasourcesFilter: [
2154
- "JIRA",
2155
- ],
2156
- queryOverridesFacetFilters: true,
2157
- facetFilters: [
2158
- {
2159
- fieldName: "type",
2160
- values: [
2161
- {
2162
- value: "Spreadsheet",
2163
- relationType: "EQUALS",
2164
- },
2165
- {
2166
- value: "Presentation",
2167
- relationType: "EQUALS",
2168
- },
2169
- ],
2170
- },
2171
- ],
2172
- facetFilterSets: [
2173
- {
2174
- filters: [
2175
- {
2176
- fieldName: "type",
2177
- values: [
2178
- {
2179
- value: "Spreadsheet",
2180
- relationType: "EQUALS",
2181
- },
2182
- {
2183
- value: "Presentation",
2184
- relationType: "EQUALS",
2185
- },
2186
- ],
2187
- },
2188
- ],
2189
- },
2190
- {
2191
- filters: [
2192
- {
2193
- fieldName: "type",
2194
- values: [
2195
- {
2196
- value: "Spreadsheet",
2197
- relationType: "EQUALS",
2198
- },
2199
- {
2200
- value: "Presentation",
2201
- relationType: "EQUALS",
2202
- },
2203
- ],
2204
- },
2205
- ],
2206
- },
2207
- {
2208
- filters: [
2209
- {
2210
- fieldName: "type",
2211
- values: [
2212
- {
2213
- value: "Spreadsheet",
2214
- relationType: "EQUALS",
2215
- },
2216
- {
2217
- value: "Presentation",
2218
- relationType: "EQUALS",
2219
- },
2220
- ],
2221
- },
2222
- ],
2223
- },
2224
- ],
2225
- facetBucketSize: 51090,
2226
- authTokens: [
2227
- {
2228
- accessToken: "123abc",
2229
- datasource: "gmail",
2230
- scope:
2231
- "email profile https://www.googleapis.com/auth/gmail.readonly",
2232
- tokenType: "Bearer",
2233
- authUser: "1",
2234
- },
2235
- ],
2236
- },
2237
- ranges: [
2238
- {
2239
- startIndex: 636850,
2240
- },
2241
- {
2242
- startIndex: 559323,
2243
- },
2244
- {
2245
- startIndex: 639917,
2246
- },
2247
- ],
2248
- inputDetails: {
2249
- hasCopyPaste: true,
2250
- },
2251
- },
2252
- results: [
2253
- {
2254
- title: "title",
2255
- url: "https://example.com/foo/bar",
2256
- nativeAppUrl: "slack://foo/bar",
2257
- snippets: [
2258
- {
2259
- snippet: "snippet",
2260
- mimeType: "mimeType",
2261
- },
2262
- ],
2263
- },
2264
- ],
2265
- },
2266
- {
2267
- querySuggestion: {
2268
- query: "app:github type:pull author:mortimer",
2269
- searchProviderInfo: {
2270
- name: "Google",
2271
- searchLinkUrlTemplate:
2272
- "https://www.google.com/search?q={query}&hl=en",
2273
- },
2274
- label: "Mortimer's PRs",
2275
- datasource: "github",
2276
- requestOptions: {
2277
- datasourceFilter: "JIRA",
2278
- datasourcesFilter: [
2279
- "JIRA",
2280
- ],
2281
- queryOverridesFacetFilters: true,
2282
- facetFilters: [
2283
- {
2284
- fieldName: "type",
2285
- values: [
2286
- {
2287
- value: "Spreadsheet",
2288
- relationType: "EQUALS",
2289
- },
2290
- {
2291
- value: "Presentation",
2292
- relationType: "EQUALS",
2293
- },
2294
- ],
2295
- },
2296
- ],
2297
- facetFilterSets: [
2298
- {
2299
- filters: [
2300
- {
2301
- fieldName: "type",
2302
- values: [
2303
- {
2304
- value: "Spreadsheet",
2305
- relationType: "EQUALS",
2306
- },
2307
- {
2308
- value: "Presentation",
2309
- relationType: "EQUALS",
2310
- },
2311
- ],
2312
- },
2313
- ],
2314
- },
2315
- {
2316
- filters: [
2317
- {
2318
- fieldName: "type",
2319
- values: [
2320
- {
2321
- value: "Spreadsheet",
2322
- relationType: "EQUALS",
2323
- },
2324
- {
2325
- value: "Presentation",
2326
- relationType: "EQUALS",
2327
- },
2328
- ],
2329
- },
2330
- ],
2331
- },
2332
- {
2333
- filters: [
2334
- {
2335
- fieldName: "type",
2336
- values: [
2337
- {
2338
- value: "Spreadsheet",
2339
- relationType: "EQUALS",
2340
- },
2341
- {
2342
- value: "Presentation",
2343
- relationType: "EQUALS",
2344
- },
2345
- ],
2346
- },
2347
- ],
2348
- },
2349
- ],
2350
- facetBucketSize: 855317,
2351
- authTokens: [
2352
- {
2353
- accessToken: "123abc",
2354
- datasource: "gmail",
2355
- scope:
2356
- "email profile https://www.googleapis.com/auth/gmail.readonly",
2357
- tokenType: "Bearer",
2358
- authUser: "1",
2359
- },
2360
- ],
2361
- },
2362
- inputDetails: {
2363
- hasCopyPaste: true,
2364
- },
2365
- },
2366
- },
2367
- {
2368
- querySuggestion: {
2369
- query: "app:github type:pull author:mortimer",
2370
- searchProviderInfo: {
2371
- name: "Google",
2372
- searchLinkUrlTemplate:
2373
- "https://www.google.com/search?q={query}&hl=en",
2374
- },
2375
- label: "Mortimer's PRs",
2376
- datasource: "github",
2377
- requestOptions: {
2378
- datasourceFilter: "JIRA",
2379
- datasourcesFilter: [
2380
- "JIRA",
2381
- ],
2382
- queryOverridesFacetFilters: true,
2383
- facetFilters: [
2384
- {
2385
- fieldName: "type",
2386
- values: [
2387
- {
2388
- value: "Spreadsheet",
2389
- relationType: "EQUALS",
2390
- },
2391
- {
2392
- value: "Presentation",
2393
- relationType: "EQUALS",
2394
- },
2395
- ],
2396
- },
2397
- ],
2398
- facetFilterSets: [
2399
- {
2400
- filters: [
2401
- {
2402
- fieldName: "type",
2403
- values: [
2404
- {
2405
- value: "Spreadsheet",
2406
- relationType: "EQUALS",
2407
- },
2408
- {
2409
- value: "Presentation",
2410
- relationType: "EQUALS",
2411
- },
2412
- ],
2413
- },
2414
- ],
2415
- },
2416
- {
2417
- filters: [
2418
- {
2419
- fieldName: "type",
2420
- values: [
2421
- {
2422
- value: "Spreadsheet",
2423
- relationType: "EQUALS",
2424
- },
2425
- {
2426
- value: "Presentation",
2427
- relationType: "EQUALS",
2428
- },
2429
- ],
2430
- },
2431
- ],
2432
- },
2433
- {
2434
- filters: [
2435
- {
2436
- fieldName: "type",
2437
- values: [
2438
- {
2439
- value: "Spreadsheet",
2440
- relationType: "EQUALS",
2441
- },
2442
- {
2443
- value: "Presentation",
2444
- relationType: "EQUALS",
2445
- },
2446
- ],
2447
- },
2448
- ],
2449
- },
2450
- ],
2451
- facetBucketSize: 899726,
2452
- authTokens: [
2453
- {
2454
- accessToken: "123abc",
2455
- datasource: "gmail",
2456
- scope:
2457
- "email profile https://www.googleapis.com/auth/gmail.readonly",
2458
- tokenType: "Bearer",
2459
- authUser: "1",
2460
- },
2461
- ],
2462
- },
2463
- inputDetails: {
2464
- hasCopyPaste: true,
2465
- },
2466
- },
2467
- },
2468
- ],
2469
- metadata: {
2470
- type: "FULL_TIME",
2471
- title: "Actor",
2472
- department: "Movies",
2473
- email: "george@example.com",
2474
- location: "Hollywood, CA",
2475
- phone: "6505551234",
2476
- photoUrl: "https://example.com/george.jpg",
2477
- startDate: new RFCDate("2000-01-23"),
2478
- datasourceProfile: [
2479
- {
2480
- datasource: "github",
2481
- handle: "<value>",
2482
- },
2483
- {
2484
- datasource: "github",
2485
- handle: "<value>",
2486
- },
2487
- ],
2488
- querySuggestions: {
2489
- suggestions: [
2490
- {
2491
- query: "app:github type:pull author:mortimer",
2492
- label: "Mortimer's PRs",
2493
- datasource: "github",
2494
- },
2495
- ],
2496
- },
2497
- inviteInfo: {
2498
- invites: [
2499
- {},
2500
- ],
2501
- },
2502
- customFields: [
2503
- {
2504
- label: "<value>",
2505
- values: [],
2506
- },
2507
- ],
2508
- badges: [
2509
- {
2510
- key: "deployment_name_new_hire",
2511
- displayName: "New hire",
2512
- iconConfig: {
2513
- color: "#343CED",
2514
- key: "person_icon",
2515
- iconType: "GLYPH",
2516
- name: "user",
2517
- },
2518
- },
2519
- ],
2520
- },
2521
- },
2522
- owner: {
2523
- name: "George Clooney",
2524
- obfuscatedId: "abc123",
2525
- metadata: {
2526
- type: "FULL_TIME",
2527
- title: "Actor",
2528
- department: "Movies",
2529
- email: "george@example.com",
2530
- location: "Hollywood, CA",
2531
- phone: "6505551234",
2532
- photoUrl: "https://example.com/george.jpg",
2533
- startDate: new RFCDate("2000-01-23"),
2534
- datasourceProfile: [
2535
- {
2536
- datasource: "github",
2537
- handle: "<value>",
2538
- },
2539
- {
2540
- datasource: "github",
2541
- handle: "<value>",
2542
- },
2543
- {
2544
- datasource: "github",
2545
- handle: "<value>",
2546
- },
2547
- ],
2548
- querySuggestions: {},
2549
- inviteInfo: {},
2550
- badges: [
2551
- {
2552
- key: "deployment_name_new_hire",
2553
- displayName: "New hire",
2554
- iconConfig: {
2555
- color: "#343CED",
2556
- key: "person_icon",
2557
- iconType: "GLYPH",
2558
- name: "user",
2559
- },
2560
- },
2561
- ],
2562
- },
2563
- },
2564
- mentionedPeople: [
2565
- {
2566
- name: "George Clooney",
2567
- obfuscatedId: "abc123",
2568
- },
2569
- ],
2570
- components: [
2571
- "Backend",
2572
- "Networking",
2573
- ],
2574
- status: "[\"Done\"]",
2575
- pins: [
2576
- {
2577
- audienceFilters: [
2578
- {
2579
- fieldName: "type",
2580
- values: [
2581
- {
2582
- value: "Spreadsheet",
2583
- relationType: "EQUALS",
2584
- },
2585
- {
2586
- value: "Presentation",
2587
- relationType: "EQUALS",
2588
- },
2589
- ],
2590
- },
2591
- ],
2592
- documentId: "<id>",
2593
- attribution: {
2594
- name: "George Clooney",
2595
- obfuscatedId: "abc123",
2596
- metadata: {
2597
- type: "FULL_TIME",
2598
- title: "Actor",
2599
- department: "Movies",
2600
- email: "george@example.com",
2601
- location: "Hollywood, CA",
2602
- phone: "6505551234",
2603
- photoUrl: "https://example.com/george.jpg",
2604
- startDate: new RFCDate("2000-01-23"),
2605
- datasourceProfile: [
2606
- {
2607
- datasource: "github",
2608
- handle: "<value>",
2609
- },
2610
- {
2611
- datasource: "github",
2612
- handle: "<value>",
2613
- },
2614
- ],
2615
- querySuggestions: {},
2616
- inviteInfo: {},
2617
- badges: [
2618
- {
2619
- key: "deployment_name_new_hire",
2620
- displayName: "New hire",
2621
- iconConfig: {
2622
- color: "#343CED",
2623
- key: "person_icon",
2624
- iconType: "GLYPH",
2625
- name: "user",
2626
- },
2627
- },
2628
- ],
2629
- },
2630
- },
2631
- updatedBy: {
2632
- name: "George Clooney",
2633
- obfuscatedId: "abc123",
2634
- metadata: {
2635
- type: "FULL_TIME",
2636
- title: "Actor",
2637
- department: "Movies",
2638
- email: "george@example.com",
2639
- location: "Hollywood, CA",
2640
- phone: "6505551234",
2641
- photoUrl: "https://example.com/george.jpg",
2642
- startDate: new RFCDate("2000-01-23"),
2643
- datasourceProfile: [
2644
- {
2645
- datasource: "github",
2646
- handle: "<value>",
2647
- },
2648
- {
2649
- datasource: "github",
2650
- handle: "<value>",
2651
- },
2652
- {
2653
- datasource: "github",
2654
- handle: "<value>",
2655
- },
2656
- ],
2657
- querySuggestions: {},
2658
- inviteInfo: {},
2659
- badges: [
2660
- {
2661
- key: "deployment_name_new_hire",
2662
- displayName: "New hire",
2663
- iconConfig: {
2664
- color: "#343CED",
2665
- key: "person_icon",
2666
- iconType: "GLYPH",
2667
- name: "user",
2668
- },
2669
- },
2670
- ],
2671
- },
2672
- },
2673
- },
2674
- ],
2675
- assignedTo: {
2676
- name: "George Clooney",
2677
- obfuscatedId: "abc123",
2678
- metadata: {
2679
- type: "FULL_TIME",
2680
- title: "Actor",
2681
- department: "Movies",
2682
- email: "george@example.com",
2683
- location: "Hollywood, CA",
2684
- phone: "6505551234",
2685
- photoUrl: "https://example.com/george.jpg",
2686
- startDate: new RFCDate("2000-01-23"),
2687
- datasourceProfile: [
2688
- {
2689
- datasource: "github",
2690
- handle: "<value>",
2691
- },
2692
- {
2693
- datasource: "github",
2694
- handle: "<value>",
2695
- },
2696
- ],
2697
- querySuggestions: {},
2698
- inviteInfo: {},
2699
- badges: [
2700
- {
2701
- key: "deployment_name_new_hire",
2702
- displayName: "New hire",
2703
- iconConfig: {
2704
- color: "#343CED",
2705
- key: "person_icon",
2706
- iconType: "GLYPH",
2707
- name: "user",
2708
- },
2709
- },
2710
- ],
2711
- },
2712
- },
2713
- updatedBy: {
2714
- name: "George Clooney",
2715
- obfuscatedId: "abc123",
2716
- metadata: {
2717
- type: "FULL_TIME",
2718
- title: "Actor",
2719
- department: "Movies",
2720
- email: "george@example.com",
2721
- location: "Hollywood, CA",
2722
- phone: "6505551234",
2723
- photoUrl: "https://example.com/george.jpg",
2724
- startDate: new RFCDate("2000-01-23"),
2725
- datasourceProfile: [
2726
- {
2727
- datasource: "github",
2728
- handle: "<value>",
2729
- },
2730
- {
2731
- datasource: "github",
2732
- handle: "<value>",
2733
- },
2734
- {
2735
- datasource: "github",
2736
- handle: "<value>",
2737
- },
2738
- ],
2739
- querySuggestions: {},
2740
- inviteInfo: {},
2741
- badges: [
2742
- {
2743
- key: "deployment_name_new_hire",
2744
- displayName: "New hire",
2745
- iconConfig: {
2746
- color: "#343CED",
2747
- key: "person_icon",
2748
- iconType: "GLYPH",
2749
- name: "user",
2750
- },
2751
- },
2752
- ],
2753
- },
2754
- },
2755
- collections: [
2756
- {
2757
- name: "<value>",
2758
- description: "mmm video mid",
2759
- addedRoles: [
2760
- {
2761
- person: {
2762
- name: "George Clooney",
2763
- obfuscatedId: "abc123",
2764
- metadata: {
2765
- type: "FULL_TIME",
2766
- title: "Actor",
2767
- department: "Movies",
2768
- email: "george@example.com",
2769
- location: "Hollywood, CA",
2770
- phone: "6505551234",
2771
- photoUrl: "https://example.com/george.jpg",
2772
- startDate: new RFCDate("2000-01-23"),
2773
- datasourceProfile: [
2774
- {
2775
- datasource: "github",
2776
- handle: "<value>",
2777
- },
2778
- ],
2779
- querySuggestions: {},
2780
- inviteInfo: {},
2781
- badges: [
2782
- {
2783
- key: "deployment_name_new_hire",
2784
- displayName: "New hire",
2785
- iconConfig: {
2786
- color: "#343CED",
2787
- key: "person_icon",
2788
- iconType: "GLYPH",
2789
- name: "user",
2790
- },
2791
- },
2792
- ],
2793
- },
2794
- },
2795
- role: "OWNER",
2796
- },
2797
- {
2798
- person: {
2799
- name: "George Clooney",
2800
- obfuscatedId: "abc123",
2801
- metadata: {
2802
- type: "FULL_TIME",
2803
- title: "Actor",
2804
- department: "Movies",
2805
- email: "george@example.com",
2806
- location: "Hollywood, CA",
2807
- phone: "6505551234",
2808
- photoUrl: "https://example.com/george.jpg",
2809
- startDate: new RFCDate("2000-01-23"),
2810
- datasourceProfile: [
2811
- {
2812
- datasource: "github",
2813
- handle: "<value>",
2814
- },
2815
- {
2816
- datasource: "github",
2817
- handle: "<value>",
2818
- },
2819
- ],
2820
- querySuggestions: {},
2821
- inviteInfo: {},
2822
- badges: [
2823
- {
2824
- key: "deployment_name_new_hire",
2825
- displayName: "New hire",
2826
- iconConfig: {
2827
- color: "#343CED",
2828
- key: "person_icon",
2829
- iconType: "GLYPH",
2830
- name: "user",
2831
- },
2832
- },
2833
- ],
2834
- },
2835
- },
2836
- role: "ANSWER_MODERATOR",
2837
- },
2838
- {
2839
- person: {
2840
- name: "George Clooney",
2841
- obfuscatedId: "abc123",
2842
- metadata: {
2843
- type: "FULL_TIME",
2844
- title: "Actor",
2845
- department: "Movies",
2846
- email: "george@example.com",
2847
- location: "Hollywood, CA",
2848
- phone: "6505551234",
2849
- photoUrl: "https://example.com/george.jpg",
2850
- startDate: new RFCDate("2000-01-23"),
2851
- datasourceProfile: [
2852
- {
2853
- datasource: "github",
2854
- handle: "<value>",
2855
- },
2856
- ],
2857
- querySuggestions: {},
2858
- inviteInfo: {},
2859
- badges: [
2860
- {
2861
- key: "deployment_name_new_hire",
2862
- displayName: "New hire",
2863
- iconConfig: {
2864
- color: "#343CED",
2865
- key: "person_icon",
2866
- iconType: "GLYPH",
2867
- name: "user",
2868
- },
2869
- },
2870
- ],
2871
- },
2872
- },
2873
- role: "EDITOR",
2874
- },
2875
- ],
2876
- removedRoles: [
2877
- {
2878
- person: {
2879
- name: "George Clooney",
2880
- obfuscatedId: "abc123",
2881
- metadata: {
2882
- type: "FULL_TIME",
2883
- title: "Actor",
2884
- department: "Movies",
2885
- email: "george@example.com",
2886
- location: "Hollywood, CA",
2887
- phone: "6505551234",
2888
- photoUrl: "https://example.com/george.jpg",
2889
- startDate: new RFCDate("2000-01-23"),
2890
- datasourceProfile: [
2891
- {
2892
- datasource: "github",
2893
- handle: "<value>",
2894
- },
2895
- ],
2896
- querySuggestions: {},
2897
- inviteInfo: {},
2898
- badges: [
2899
- {
2900
- key: "deployment_name_new_hire",
2901
- displayName: "New hire",
2902
- iconConfig: {
2903
- color: "#343CED",
2904
- key: "person_icon",
2905
- iconType: "GLYPH",
2906
- name: "user",
2907
- },
2908
- },
2909
- ],
2910
- },
2911
- },
2912
- role: "ANSWER_MODERATOR",
2913
- },
2914
- {
2915
- person: {
2916
- name: "George Clooney",
2917
- obfuscatedId: "abc123",
2918
- metadata: {
2919
- type: "FULL_TIME",
2920
- title: "Actor",
2921
- department: "Movies",
2922
- email: "george@example.com",
2923
- location: "Hollywood, CA",
2924
- phone: "6505551234",
2925
- photoUrl: "https://example.com/george.jpg",
2926
- startDate: new RFCDate("2000-01-23"),
2927
- datasourceProfile: [
2928
- {
2929
- datasource: "github",
2930
- handle: "<value>",
2931
- },
2932
- {
2933
- datasource: "github",
2934
- handle: "<value>",
2935
- },
2936
- {
2937
- datasource: "github",
2938
- handle: "<value>",
2939
- },
2940
- ],
2941
- querySuggestions: {},
2942
- inviteInfo: {},
2943
- badges: [
2944
- {
2945
- key: "deployment_name_new_hire",
2946
- displayName: "New hire",
2947
- iconConfig: {
2948
- color: "#343CED",
2949
- key: "person_icon",
2950
- iconType: "GLYPH",
2951
- name: "user",
2952
- },
2953
- },
2954
- ],
2955
- },
2956
- },
2957
- role: "VERIFIER",
2958
- },
2959
- {
2960
- person: {
2961
- name: "George Clooney",
2962
- obfuscatedId: "abc123",
2963
- metadata: {
2964
- type: "FULL_TIME",
2965
- title: "Actor",
2966
- department: "Movies",
2967
- email: "george@example.com",
2968
- location: "Hollywood, CA",
2969
- phone: "6505551234",
2970
- photoUrl: "https://example.com/george.jpg",
2971
- startDate: new RFCDate("2000-01-23"),
2972
- datasourceProfile: [
2973
- {
2974
- datasource: "github",
2975
- handle: "<value>",
2976
- },
2977
- ],
2978
- querySuggestions: {},
2979
- inviteInfo: {},
2980
- badges: [
2981
- {
2982
- key: "deployment_name_new_hire",
2983
- displayName: "New hire",
2984
- iconConfig: {
2985
- color: "#343CED",
2986
- key: "person_icon",
2987
- iconType: "GLYPH",
2988
- name: "user",
2989
- },
2990
- },
2991
- ],
2992
- },
2993
- },
2994
- role: "OWNER",
2995
- },
2996
- ],
2997
- audienceFilters: [
2998
- {
2999
- fieldName: "type",
3000
- values: [
3001
- {
3002
- value: "Spreadsheet",
3003
- relationType: "EQUALS",
3004
- },
3005
- {
3006
- value: "Presentation",
3007
- relationType: "EQUALS",
3008
- },
3009
- ],
3010
- },
3011
- ],
3012
- id: 524051,
3013
- creator: {
3014
- name: "George Clooney",
3015
- obfuscatedId: "abc123",
3016
- metadata: {
3017
- type: "FULL_TIME",
3018
- title: "Actor",
3019
- department: "Movies",
3020
- email: "george@example.com",
3021
- location: "Hollywood, CA",
3022
- phone: "6505551234",
3023
- photoUrl: "https://example.com/george.jpg",
3024
- startDate: new RFCDate("2000-01-23"),
3025
- datasourceProfile: [
3026
- {
3027
- datasource: "github",
3028
- handle: "<value>",
3029
- },
3030
- ],
3031
- querySuggestions: {},
3032
- inviteInfo: {},
3033
- badges: [
3034
- {
3035
- key: "deployment_name_new_hire",
3036
- displayName: "New hire",
3037
- iconConfig: {
3038
- color: "#343CED",
3039
- key: "person_icon",
3040
- iconType: "GLYPH",
3041
- name: "user",
3042
- },
3043
- },
3044
- ],
3045
- },
3046
- },
3047
- updatedBy: {
3048
- name: "George Clooney",
3049
- obfuscatedId: "abc123",
3050
- metadata: {
3051
- type: "FULL_TIME",
3052
- title: "Actor",
3053
- department: "Movies",
3054
- email: "george@example.com",
3055
- location: "Hollywood, CA",
3056
- phone: "6505551234",
3057
- photoUrl: "https://example.com/george.jpg",
3058
- startDate: new RFCDate("2000-01-23"),
3059
- datasourceProfile: [
3060
- {
3061
- datasource: "github",
3062
- handle: "<value>",
3063
- },
3064
- {
3065
- datasource: "github",
3066
- handle: "<value>",
3067
- },
3068
- ],
3069
- querySuggestions: {},
3070
- inviteInfo: {},
3071
- badges: [
3072
- {
3073
- key: "deployment_name_new_hire",
3074
- displayName: "New hire",
3075
- iconConfig: {
3076
- color: "#343CED",
3077
- key: "person_icon",
3078
- iconType: "GLYPH",
3079
- name: "user",
3080
- },
3081
- },
3082
- ],
3083
- },
3084
- },
3085
- items: [
3086
- {
3087
- collectionId: 75113,
3088
- createdBy: {
3089
- name: "George Clooney",
3090
- obfuscatedId: "abc123",
3091
- metadata: {
3092
- type: "FULL_TIME",
3093
- title: "Actor",
3094
- department: "Movies",
3095
- email: "george@example.com",
3096
- location: "Hollywood, CA",
3097
- phone: "6505551234",
3098
- photoUrl: "https://example.com/george.jpg",
3099
- startDate: new RFCDate("2000-01-23"),
3100
- datasourceProfile: [
3101
- {
3102
- datasource: "github",
3103
- handle: "<value>",
3104
- },
3105
- {
3106
- datasource: "github",
3107
- handle: "<value>",
3108
- },
3109
- ],
3110
- querySuggestions: {},
3111
- inviteInfo: {},
3112
- badges: [
3113
- {
3114
- key: "deployment_name_new_hire",
3115
- displayName: "New hire",
3116
- iconConfig: {
3117
- color: "#343CED",
3118
- key: "person_icon",
3119
- iconType: "GLYPH",
3120
- name: "user",
3121
- },
3122
- },
3123
- ],
3124
- },
3125
- },
3126
- shortcut: {
3127
- inputAlias: "<value>",
3128
- createdBy: {
3129
- name: "George Clooney",
3130
- obfuscatedId: "abc123",
3131
- metadata: {
3132
- type: "FULL_TIME",
3133
- title: "Actor",
3134
- department: "Movies",
3135
- email: "george@example.com",
3136
- location: "Hollywood, CA",
3137
- phone: "6505551234",
3138
- photoUrl: "https://example.com/george.jpg",
3139
- startDate: new RFCDate("2000-01-23"),
3140
- datasourceProfile: [
3141
- {
3142
- datasource: "github",
3143
- handle: "<value>",
3144
- },
3145
- {
3146
- datasource: "github",
3147
- handle: "<value>",
3148
- },
3149
- ],
3150
- querySuggestions: {},
3151
- inviteInfo: {},
3152
- badges: [
3153
- {
3154
- key: "deployment_name_new_hire",
3155
- displayName: "New hire",
3156
- iconConfig: {
3157
- color: "#343CED",
3158
- key: "person_icon",
3159
- iconType: "GLYPH",
3160
- name: "user",
3161
- },
3162
- },
3163
- ],
3164
- },
3165
- },
3166
- updatedBy: {
3167
- name: "George Clooney",
3168
- obfuscatedId: "abc123",
3169
- metadata: {
3170
- type: "FULL_TIME",
3171
- title: "Actor",
3172
- department: "Movies",
3173
- email: "george@example.com",
3174
- location: "Hollywood, CA",
3175
- phone: "6505551234",
3176
- photoUrl: "https://example.com/george.jpg",
3177
- startDate: new RFCDate("2000-01-23"),
3178
- datasourceProfile: [
3179
- {
3180
- datasource: "github",
3181
- handle: "<value>",
3182
- },
3183
- ],
3184
- querySuggestions: {},
3185
- inviteInfo: {},
3186
- badges: [
3187
- {
3188
- key: "deployment_name_new_hire",
3189
- displayName: "New hire",
3190
- iconConfig: {
3191
- color: "#343CED",
3192
- key: "person_icon",
3193
- iconType: "GLYPH",
3194
- name: "user",
3195
- },
3196
- },
3197
- ],
3198
- },
3199
- },
3200
- roles: [
3201
- {
3202
- person: {
3203
- name: "George Clooney",
3204
- obfuscatedId: "abc123",
3205
- metadata: {
3206
- type: "FULL_TIME",
3207
- title: "Actor",
3208
- department: "Movies",
3209
- email: "george@example.com",
3210
- location: "Hollywood, CA",
3211
- phone: "6505551234",
3212
- photoUrl: "https://example.com/george.jpg",
3213
- startDate: new RFCDate("2000-01-23"),
3214
- datasourceProfile: [
3215
- {
3216
- datasource: "github",
3217
- handle: "<value>",
3218
- },
3219
- {
3220
- datasource: "github",
3221
- handle: "<value>",
3222
- },
3223
- {
3224
- datasource: "github",
3225
- handle: "<value>",
3226
- },
3227
- ],
3228
- querySuggestions: {},
3229
- inviteInfo: {},
3230
- badges: [
3231
- {
3232
- key: "deployment_name_new_hire",
3233
- displayName: "New hire",
3234
- iconConfig: {
3235
- color: "#343CED",
3236
- key: "person_icon",
3237
- iconType: "GLYPH",
3238
- name: "user",
3239
- },
3240
- },
3241
- ],
3242
- },
3243
- },
3244
- role: "VERIFIER",
3245
- },
3246
- ],
3247
- },
3248
- itemType: "COLLECTION",
3249
- },
3250
- {
3251
- collectionId: 744767,
3252
- createdBy: {
3253
- name: "George Clooney",
3254
- obfuscatedId: "abc123",
3255
- metadata: {
3256
- type: "FULL_TIME",
3257
- title: "Actor",
3258
- department: "Movies",
3259
- email: "george@example.com",
3260
- location: "Hollywood, CA",
3261
- phone: "6505551234",
3262
- photoUrl: "https://example.com/george.jpg",
3263
- startDate: new RFCDate("2000-01-23"),
3264
- datasourceProfile: [
3265
- {
3266
- datasource: "github",
3267
- handle: "<value>",
3268
- },
3269
- {
3270
- datasource: "github",
3271
- handle: "<value>",
3272
- },
3273
- {
3274
- datasource: "github",
3275
- handle: "<value>",
3276
- },
3277
- ],
3278
- querySuggestions: {},
3279
- inviteInfo: {},
3280
- badges: [
3281
- {
3282
- key: "deployment_name_new_hire",
3283
- displayName: "New hire",
3284
- iconConfig: {
3285
- color: "#343CED",
3286
- key: "person_icon",
3287
- iconType: "GLYPH",
3288
- name: "user",
3289
- },
3290
- },
3291
- ],
3292
- },
3293
- },
3294
- shortcut: {
3295
- inputAlias: "<value>",
3296
- createdBy: {
3297
- name: "George Clooney",
3298
- obfuscatedId: "abc123",
3299
- metadata: {
3300
- type: "FULL_TIME",
3301
- title: "Actor",
3302
- department: "Movies",
3303
- email: "george@example.com",
3304
- location: "Hollywood, CA",
3305
- phone: "6505551234",
3306
- photoUrl: "https://example.com/george.jpg",
3307
- startDate: new RFCDate("2000-01-23"),
3308
- datasourceProfile: [
3309
- {
3310
- datasource: "github",
3311
- handle: "<value>",
3312
- },
3313
- {
3314
- datasource: "github",
3315
- handle: "<value>",
3316
- },
3317
- ],
3318
- querySuggestions: {},
3319
- inviteInfo: {},
3320
- badges: [
3321
- {
3322
- key: "deployment_name_new_hire",
3323
- displayName: "New hire",
3324
- iconConfig: {
3325
- color: "#343CED",
3326
- key: "person_icon",
3327
- iconType: "GLYPH",
3328
- name: "user",
3329
- },
3330
- },
3331
- ],
3332
- },
3333
- },
3334
- updatedBy: {
3335
- name: "George Clooney",
3336
- obfuscatedId: "abc123",
3337
- metadata: {
3338
- type: "FULL_TIME",
3339
- title: "Actor",
3340
- department: "Movies",
3341
- email: "george@example.com",
3342
- location: "Hollywood, CA",
3343
- phone: "6505551234",
3344
- photoUrl: "https://example.com/george.jpg",
3345
- startDate: new RFCDate("2000-01-23"),
3346
- datasourceProfile: [
3347
- {
3348
- datasource: "github",
3349
- handle: "<value>",
3350
- },
3351
- ],
3352
- querySuggestions: {},
3353
- inviteInfo: {},
3354
- badges: [
3355
- {
3356
- key: "deployment_name_new_hire",
3357
- displayName: "New hire",
3358
- iconConfig: {
3359
- color: "#343CED",
3360
- key: "person_icon",
3361
- iconType: "GLYPH",
3362
- name: "user",
3363
- },
3364
- },
3365
- ],
3366
- },
3367
- },
3368
- },
3369
- itemType: "DOCUMENT",
3370
- },
3371
- ],
3372
- },
3373
- {
3374
- name: "<value>",
3375
- description:
3376
- "brr finally hastily amused needily if uh-huh outside wrongly too",
3377
- audienceFilters: [
3378
- {
3379
- fieldName: "type",
3380
- values: [
3381
- {
3382
- value: "Spreadsheet",
3383
- relationType: "EQUALS",
3384
- },
3385
- {
3386
- value: "Presentation",
3387
- relationType: "EQUALS",
3388
- },
3389
- ],
3390
- },
3391
- ],
3392
- id: 448428,
3393
- creator: {
3394
- name: "George Clooney",
3395
- obfuscatedId: "abc123",
3396
- metadata: {
3397
- type: "FULL_TIME",
3398
- title: "Actor",
3399
- department: "Movies",
3400
- email: "george@example.com",
3401
- location: "Hollywood, CA",
3402
- phone: "6505551234",
3403
- photoUrl: "https://example.com/george.jpg",
3404
- startDate: new RFCDate("2000-01-23"),
3405
- datasourceProfile: [
3406
- {
3407
- datasource: "github",
3408
- handle: "<value>",
3409
- },
3410
- {
3411
- datasource: "github",
3412
- handle: "<value>",
3413
- },
3414
- {
3415
- datasource: "github",
3416
- handle: "<value>",
3417
- },
3418
- ],
3419
- querySuggestions: {},
3420
- inviteInfo: {},
3421
- badges: [
3422
- {
3423
- key: "deployment_name_new_hire",
3424
- displayName: "New hire",
3425
- iconConfig: {
3426
- color: "#343CED",
3427
- key: "person_icon",
3428
- iconType: "GLYPH",
3429
- name: "user",
3430
- },
3431
- },
3432
- ],
3433
- },
3434
- },
3435
- updatedBy: {
3436
- name: "George Clooney",
3437
- obfuscatedId: "abc123",
3438
- metadata: {
3439
- type: "FULL_TIME",
3440
- title: "Actor",
3441
- department: "Movies",
3442
- email: "george@example.com",
3443
- location: "Hollywood, CA",
3444
- phone: "6505551234",
3445
- photoUrl: "https://example.com/george.jpg",
3446
- startDate: new RFCDate("2000-01-23"),
3447
- datasourceProfile: [
3448
- {
3449
- datasource: "github",
3450
- handle: "<value>",
3451
- },
3452
- ],
3453
- querySuggestions: {},
3454
- inviteInfo: {},
3455
- badges: [
3456
- {
3457
- key: "deployment_name_new_hire",
3458
- displayName: "New hire",
3459
- iconConfig: {
3460
- color: "#343CED",
3461
- key: "person_icon",
3462
- iconType: "GLYPH",
3463
- name: "user",
3464
- },
3465
- },
3466
- ],
3467
- },
3468
- },
3469
- },
3470
- ],
3471
- interactions: {
3472
- reacts: [
3473
- {
3474
- reactors: [
3475
- {
3476
- name: "George Clooney",
3477
- obfuscatedId: "abc123",
3478
- },
3479
- ],
3480
- },
3481
- {},
3482
- {},
3483
- ],
3484
- shares: [
3485
- {
3486
- numDaysAgo: 876677,
3487
- sharer: {
3488
- name: "George Clooney",
3489
- obfuscatedId: "abc123",
3490
- metadata: {
3491
- type: "FULL_TIME",
3492
- title: "Actor",
3493
- department: "Movies",
3494
- email: "george@example.com",
3495
- location: "Hollywood, CA",
3496
- phone: "6505551234",
3497
- photoUrl: "https://example.com/george.jpg",
3498
- startDate: new RFCDate("2000-01-23"),
3499
- datasourceProfile: [
3500
- {
3501
- datasource: "github",
3502
- handle: "<value>",
3503
- },
3504
- ],
3505
- querySuggestions: {},
3506
- inviteInfo: {},
3507
- badges: [
3508
- {
3509
- key: "deployment_name_new_hire",
3510
- displayName: "New hire",
3511
- iconConfig: {
3512
- color: "#343CED",
3513
- key: "person_icon",
3514
- iconType: "GLYPH",
3515
- name: "user",
3516
- },
3517
- },
3518
- ],
3519
- },
3520
- },
3521
- },
3522
- ],
3523
- },
3524
- verification: {
3525
- state: "UNVERIFIED",
3526
- metadata: {
3527
- lastVerifier: {
3528
- name: "George Clooney",
3529
- obfuscatedId: "abc123",
3530
- metadata: {
3531
- type: "FULL_TIME",
3532
- title: "Actor",
3533
- department: "Movies",
3534
- email: "george@example.com",
3535
- location: "Hollywood, CA",
3536
- phone: "6505551234",
3537
- photoUrl: "https://example.com/george.jpg",
3538
- startDate: new RFCDate("2000-01-23"),
3539
- datasourceProfile: [
3540
- {
3541
- datasource: "github",
3542
- handle: "<value>",
3543
- },
3544
- ],
3545
- querySuggestions: {},
3546
- inviteInfo: {},
3547
- badges: [
3548
- {
3549
- key: "deployment_name_new_hire",
3550
- displayName: "New hire",
3551
- iconConfig: {
3552
- color: "#343CED",
3553
- key: "person_icon",
3554
- iconType: "GLYPH",
3555
- name: "user",
3556
- },
3557
- },
3558
- ],
3559
- },
3560
- },
3561
- reminders: [
3562
- {
3563
- assignee: {
3564
- name: "George Clooney",
3565
- obfuscatedId: "abc123",
3566
- metadata: {
3567
- type: "FULL_TIME",
3568
- title: "Actor",
3569
- department: "Movies",
3570
- email: "george@example.com",
3571
- location: "Hollywood, CA",
3572
- phone: "6505551234",
3573
- photoUrl: "https://example.com/george.jpg",
3574
- startDate: new RFCDate("2000-01-23"),
3575
- datasourceProfile: [
3576
- {
3577
- datasource: "github",
3578
- handle: "<value>",
3579
- },
3580
- {
3581
- datasource: "github",
3582
- handle: "<value>",
3583
- },
3584
- ],
3585
- querySuggestions: {},
3586
- inviteInfo: {},
3587
- badges: [
3588
- {
3589
- key: "deployment_name_new_hire",
3590
- displayName: "New hire",
3591
- iconConfig: {
3592
- color: "#343CED",
3593
- key: "person_icon",
3594
- iconType: "GLYPH",
3595
- name: "user",
3596
- },
3597
- },
3598
- ],
3599
- },
3600
- },
3601
- requestor: {
3602
- name: "George Clooney",
3603
- obfuscatedId: "abc123",
3604
- metadata: {
3605
- type: "FULL_TIME",
3606
- title: "Actor",
3607
- department: "Movies",
3608
- email: "george@example.com",
3609
- location: "Hollywood, CA",
3610
- phone: "6505551234",
3611
- photoUrl: "https://example.com/george.jpg",
3612
- startDate: new RFCDate("2000-01-23"),
3613
- datasourceProfile: [
3614
- {
3615
- datasource: "github",
3616
- handle: "<value>",
3617
- },
3618
- {
3619
- datasource: "github",
3620
- handle: "<value>",
3621
- },
3622
- ],
3623
- querySuggestions: {},
3624
- inviteInfo: {},
3625
- badges: [
3626
- {
3627
- key: "deployment_name_new_hire",
3628
- displayName: "New hire",
3629
- iconConfig: {
3630
- color: "#343CED",
3631
- key: "person_icon",
3632
- iconType: "GLYPH",
3633
- name: "user",
3634
- },
3635
- },
3636
- ],
3637
- },
3638
- },
3639
- remindAt: 854607,
3640
- },
3641
- {
3642
- assignee: {
3643
- name: "George Clooney",
3644
- obfuscatedId: "abc123",
3645
- metadata: {
3646
- type: "FULL_TIME",
3647
- title: "Actor",
3648
- department: "Movies",
3649
- email: "george@example.com",
3650
- location: "Hollywood, CA",
3651
- phone: "6505551234",
3652
- photoUrl: "https://example.com/george.jpg",
3653
- startDate: new RFCDate("2000-01-23"),
3654
- datasourceProfile: [
3655
- {
3656
- datasource: "github",
3657
- handle: "<value>",
3658
- },
3659
- {
3660
- datasource: "github",
3661
- handle: "<value>",
3662
- },
3663
- {
3664
- datasource: "github",
3665
- handle: "<value>",
3666
- },
3667
- ],
3668
- querySuggestions: {},
3669
- inviteInfo: {},
3670
- badges: [
3671
- {
3672
- key: "deployment_name_new_hire",
3673
- displayName: "New hire",
3674
- iconConfig: {
3675
- color: "#343CED",
3676
- key: "person_icon",
3677
- iconType: "GLYPH",
3678
- name: "user",
3679
- },
3680
- },
3681
- ],
3682
- },
3683
- },
3684
- requestor: {
3685
- name: "George Clooney",
3686
- obfuscatedId: "abc123",
3687
- metadata: {
3688
- type: "FULL_TIME",
3689
- title: "Actor",
3690
- department: "Movies",
3691
- email: "george@example.com",
3692
- location: "Hollywood, CA",
3693
- phone: "6505551234",
3694
- photoUrl: "https://example.com/george.jpg",
3695
- startDate: new RFCDate("2000-01-23"),
3696
- datasourceProfile: [
3697
- {
3698
- datasource: "github",
3699
- handle: "<value>",
3700
- },
3701
- {
3702
- datasource: "github",
3703
- handle: "<value>",
3704
- },
3705
- ],
3706
- querySuggestions: {},
3707
- inviteInfo: {},
3708
- badges: [
3709
- {
3710
- key: "deployment_name_new_hire",
3711
- displayName: "New hire",
3712
- iconConfig: {
3713
- color: "#343CED",
3714
- key: "person_icon",
3715
- iconType: "GLYPH",
3716
- name: "user",
3717
- },
3718
- },
3719
- ],
3720
- },
3721
- },
3722
- remindAt: 214607,
3723
- },
3724
- {
3725
- assignee: {
3726
- name: "George Clooney",
3727
- obfuscatedId: "abc123",
3728
- metadata: {
3729
- type: "FULL_TIME",
3730
- title: "Actor",
3731
- department: "Movies",
3732
- email: "george@example.com",
3733
- location: "Hollywood, CA",
3734
- phone: "6505551234",
3735
- photoUrl: "https://example.com/george.jpg",
3736
- startDate: new RFCDate("2000-01-23"),
3737
- datasourceProfile: [
3738
- {
3739
- datasource: "github",
3740
- handle: "<value>",
3741
- },
3742
- ],
3743
- querySuggestions: {},
3744
- inviteInfo: {},
3745
- badges: [
3746
- {
3747
- key: "deployment_name_new_hire",
3748
- displayName: "New hire",
3749
- iconConfig: {
3750
- color: "#343CED",
3751
- key: "person_icon",
3752
- iconType: "GLYPH",
3753
- name: "user",
3754
- },
3755
- },
3756
- ],
3757
- },
3758
- },
3759
- requestor: {
3760
- name: "George Clooney",
3761
- obfuscatedId: "abc123",
3762
- metadata: {
3763
- type: "FULL_TIME",
3764
- title: "Actor",
3765
- department: "Movies",
3766
- email: "george@example.com",
3767
- location: "Hollywood, CA",
3768
- phone: "6505551234",
3769
- photoUrl: "https://example.com/george.jpg",
3770
- startDate: new RFCDate("2000-01-23"),
3771
- datasourceProfile: [
3772
- {
3773
- datasource: "github",
3774
- handle: "<value>",
3775
- },
3776
- {
3777
- datasource: "github",
3778
- handle: "<value>",
3779
- },
3780
- ],
3781
- querySuggestions: {},
3782
- inviteInfo: {},
3783
- badges: [
3784
- {
3785
- key: "deployment_name_new_hire",
3786
- displayName: "New hire",
3787
- iconConfig: {
3788
- color: "#343CED",
3789
- key: "person_icon",
3790
- iconType: "GLYPH",
3791
- name: "user",
3792
- },
3793
- },
3794
- ],
3795
- },
3796
- },
3797
- remindAt: 204917,
3798
- },
3799
- ],
3800
- lastReminder: {
3801
- assignee: {
3802
- name: "George Clooney",
3803
- obfuscatedId: "abc123",
3804
- metadata: {
3805
- type: "FULL_TIME",
3806
- title: "Actor",
3807
- department: "Movies",
3808
- email: "george@example.com",
3809
- location: "Hollywood, CA",
3810
- phone: "6505551234",
3811
- photoUrl: "https://example.com/george.jpg",
3812
- startDate: new RFCDate("2000-01-23"),
3813
- datasourceProfile: [
3814
- {
3815
- datasource: "github",
3816
- handle: "<value>",
3817
- },
3818
- {
3819
- datasource: "github",
3820
- handle: "<value>",
3821
- },
3822
- {
3823
- datasource: "github",
3824
- handle: "<value>",
3825
- },
3826
- ],
3827
- querySuggestions: {},
3828
- inviteInfo: {},
3829
- badges: [
3830
- {
3831
- key: "deployment_name_new_hire",
3832
- displayName: "New hire",
3833
- iconConfig: {
3834
- color: "#343CED",
3835
- key: "person_icon",
3836
- iconType: "GLYPH",
3837
- name: "user",
3838
- },
3839
- },
3840
- ],
3841
- },
3842
- },
3843
- requestor: {
3844
- name: "George Clooney",
3845
- obfuscatedId: "abc123",
3846
- metadata: {
3847
- type: "FULL_TIME",
3848
- title: "Actor",
3849
- department: "Movies",
3850
- email: "george@example.com",
3851
- location: "Hollywood, CA",
3852
- phone: "6505551234",
3853
- photoUrl: "https://example.com/george.jpg",
3854
- startDate: new RFCDate("2000-01-23"),
3855
- datasourceProfile: [
3856
- {
3857
- datasource: "github",
3858
- handle: "<value>",
3859
- },
3860
- ],
3861
- querySuggestions: {},
3862
- inviteInfo: {},
3863
- badges: [
3864
- {
3865
- key: "deployment_name_new_hire",
3866
- displayName: "New hire",
3867
- iconConfig: {
3868
- color: "#343CED",
3869
- key: "person_icon",
3870
- iconType: "GLYPH",
3871
- name: "user",
3872
- },
3873
- },
3874
- ],
3875
- },
3876
- },
3877
- remindAt: 554738,
3878
- },
3879
- candidateVerifiers: [
3880
- {
3881
- name: "George Clooney",
3882
- obfuscatedId: "abc123",
3883
- },
3884
- ],
3885
- },
3886
- },
3887
- shortcuts: [
3888
- {
3889
- inputAlias: "<value>",
3890
- createdBy: {
3891
- name: "George Clooney",
3892
- obfuscatedId: "abc123",
3893
- metadata: {
3894
- type: "FULL_TIME",
3895
- title: "Actor",
3896
- department: "Movies",
3897
- email: "george@example.com",
3898
- location: "Hollywood, CA",
3899
- phone: "6505551234",
3900
- photoUrl: "https://example.com/george.jpg",
3901
- startDate: new RFCDate("2000-01-23"),
3902
- datasourceProfile: [
3903
- {
3904
- datasource: "github",
3905
- handle: "<value>",
3906
- },
3907
- {
3908
- datasource: "github",
3909
- handle: "<value>",
3910
- },
3911
- ],
3912
- querySuggestions: {},
3913
- inviteInfo: {},
3914
- badges: [
3915
- {
3916
- key: "deployment_name_new_hire",
3917
- displayName: "New hire",
3918
- iconConfig: {
3919
- color: "#343CED",
3920
- key: "person_icon",
3921
- iconType: "GLYPH",
3922
- name: "user",
3923
- },
3924
- },
3925
- ],
3926
- },
3927
- },
3928
- updatedBy: {
3929
- name: "George Clooney",
3930
- obfuscatedId: "abc123",
3931
- metadata: {
3932
- type: "FULL_TIME",
3933
- title: "Actor",
3934
- department: "Movies",
3935
- email: "george@example.com",
3936
- location: "Hollywood, CA",
3937
- phone: "6505551234",
3938
- photoUrl: "https://example.com/george.jpg",
3939
- startDate: new RFCDate("2000-01-23"),
3940
- datasourceProfile: [
3941
- {
3942
- datasource: "github",
3943
- handle: "<value>",
3944
- },
3945
- {
3946
- datasource: "github",
3947
- handle: "<value>",
3948
- },
3949
- ],
3950
- querySuggestions: {},
3951
- inviteInfo: {},
3952
- badges: [
3953
- {
3954
- key: "deployment_name_new_hire",
3955
- displayName: "New hire",
3956
- iconConfig: {
3957
- color: "#343CED",
3958
- key: "person_icon",
3959
- iconType: "GLYPH",
3960
- name: "user",
3961
- },
3962
- },
3963
- ],
3964
- },
3965
- },
3966
- },
3967
- ],
3968
- customData: {
3969
- "someCustomField": {},
3970
- },
3971
- contactPerson: {
3972
- name: "George Clooney",
3973
- obfuscatedId: "abc123",
3974
- metadata: {
3975
- type: "FULL_TIME",
3976
- title: "Actor",
3977
- department: "Movies",
3978
- email: "george@example.com",
3979
- location: "Hollywood, CA",
3980
- phone: "6505551234",
3981
- photoUrl: "https://example.com/george.jpg",
3982
- startDate: new RFCDate("2000-01-23"),
3983
- datasourceProfile: [
3984
- {
3985
- datasource: "github",
3986
- handle: "<value>",
3987
- },
3988
- {
3989
- datasource: "github",
3990
- handle: "<value>",
3991
- },
3992
- {
3993
- datasource: "github",
3994
- handle: "<value>",
3995
- },
3996
- ],
3997
- querySuggestions: {},
3998
- inviteInfo: {},
3999
- badges: [
4000
- {
4001
- key: "deployment_name_new_hire",
4002
- displayName: "New hire",
4003
- iconConfig: {
4004
- color: "#343CED",
4005
- key: "person_icon",
4006
- iconType: "GLYPH",
4007
- name: "user",
4008
- },
4009
- },
4010
- ],
4011
- },
4012
- },
4013
- },
4014
- },
4015
- pageSize: 100,
4016
- maxSnippetSize: 400,
4017
- query: "vacation policy",
4018
- inputDetails: {
4019
- hasCopyPaste: true,
4020
- },
4021
- requestOptions: {
4022
- datasourceFilter: "JIRA",
4023
- datasourcesFilter: [
4024
- "JIRA",
4025
- ],
4026
- queryOverridesFacetFilters: true,
4027
- facetFilters: [
4028
- {
4029
- fieldName: "type",
4030
- values: [
4031
- {
4032
- value: "Spreadsheet",
4033
- relationType: "EQUALS",
4034
- },
4035
- {
4036
- value: "Presentation",
4037
- relationType: "EQUALS",
4038
- },
4039
- ],
4040
- },
4041
- ],
4042
- facetFilterSets: [
4043
- {
4044
- filters: [
4045
- {
4046
- fieldName: "type",
4047
- values: [
4048
- {
4049
- value: "Spreadsheet",
4050
- relationType: "EQUALS",
4051
- },
4052
- {
4053
- value: "Presentation",
4054
- relationType: "EQUALS",
4055
- },
4056
- ],
4057
- },
4058
- ],
4059
- },
4060
- {
4061
- filters: [
4062
- {
4063
- fieldName: "type",
4064
- values: [
4065
- {
4066
- value: "Spreadsheet",
4067
- relationType: "EQUALS",
4068
- },
4069
- {
4070
- value: "Presentation",
4071
- relationType: "EQUALS",
4072
- },
4073
- ],
4074
- },
4075
- ],
4076
- },
4077
- {
4078
- filters: [
4079
- {
4080
- fieldName: "type",
4081
- values: [
4082
- {
4083
- value: "Spreadsheet",
4084
- relationType: "EQUALS",
4085
- },
4086
- {
4087
- value: "Presentation",
4088
- relationType: "EQUALS",
4089
- },
4090
- ],
4091
- },
4092
- ],
4093
- },
4094
- ],
4095
- facetBucketSize: 171751,
4096
- authTokens: [
4097
- {
4098
- accessToken: "123abc",
4099
- datasource: "gmail",
4100
- scope: "email profile https://www.googleapis.com/auth/gmail.readonly",
4101
- tokenType: "Bearer",
4102
- authUser: "1",
4103
- },
4104
- ],
4105
- },
4106
- timeoutMillis: 5000,
4107
- people: [
4108
- {
4109
- name: "George Clooney",
4110
- obfuscatedId: "abc123",
4111
- },
4112
- ],
4113
- });
4114
- expect(result).toBeDefined();
4115
- });