@gleanwork/api-client 0.6.1 → 0.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/__tests__/activities.test.d.ts +2 -0
- package/dist/commonjs/__tests__/activities.test.d.ts.map +1 -0
- package/dist/commonjs/__tests__/activities.test.js +23 -0
- package/dist/commonjs/__tests__/activities.test.js.map +1 -0
- package/dist/commonjs/__tests__/agents.test.js +4 -20
- package/dist/commonjs/__tests__/agents.test.js.map +1 -1
- package/dist/commonjs/__tests__/announcements.test.js +189 -812
- package/dist/commonjs/__tests__/announcements.test.js.map +1 -1
- package/dist/commonjs/__tests__/answers.test.js +125 -254
- package/dist/commonjs/__tests__/answers.test.js.map +1 -1
- package/dist/commonjs/__tests__/calendar.test.d.ts +2 -0
- package/dist/commonjs/__tests__/calendar.test.d.ts.map +1 -0
- package/dist/commonjs/__tests__/calendar.test.js +10 -0
- package/dist/commonjs/__tests__/calendar.test.js.map +1 -0
- package/dist/commonjs/__tests__/clientactivity.test.d.ts +2 -0
- package/dist/commonjs/__tests__/clientactivity.test.d.ts.map +1 -0
- package/dist/commonjs/__tests__/{activity.test.js → clientactivity.test.js} +2 -16
- package/dist/commonjs/__tests__/clientactivity.test.js.map +1 -0
- package/dist/commonjs/__tests__/clientauthentication.test.js +3 -0
- package/dist/commonjs/__tests__/clientauthentication.test.js.map +1 -1
- package/dist/commonjs/__tests__/clientchat.test.d.ts +2 -0
- package/dist/commonjs/__tests__/clientchat.test.d.ts.map +1 -0
- package/dist/commonjs/__tests__/clientchat.test.js +9825 -0
- package/dist/commonjs/__tests__/clientchat.test.js.map +1 -0
- package/dist/commonjs/__tests__/clientdocuments.test.js +2 -13
- package/dist/commonjs/__tests__/clientdocuments.test.js.map +1 -1
- package/dist/commonjs/__tests__/clientshortcuts.test.js +78 -90
- package/dist/commonjs/__tests__/clientshortcuts.test.js.map +1 -1
- package/dist/commonjs/__tests__/clientuser.test.d.ts +2 -0
- package/dist/commonjs/__tests__/clientuser.test.d.ts.map +1 -0
- package/dist/commonjs/__tests__/clientuser.test.js +25 -0
- package/dist/commonjs/__tests__/clientuser.test.js.map +1 -0
- package/dist/commonjs/__tests__/clientverification.test.d.ts +2 -0
- package/dist/commonjs/__tests__/clientverification.test.d.ts.map +1 -0
- package/dist/commonjs/__tests__/{verification.test.js → clientverification.test.js} +4 -4
- package/dist/commonjs/__tests__/clientverification.test.js.map +1 -0
- package/dist/commonjs/__tests__/collections.test.js +69 -126
- package/dist/commonjs/__tests__/collections.test.js.map +1 -1
- package/dist/commonjs/__tests__/displayablelists.test.d.ts +2 -0
- package/dist/commonjs/__tests__/displayablelists.test.d.ts.map +1 -0
- package/dist/commonjs/__tests__/displayablelists.test.js +19 -0
- package/dist/commonjs/__tests__/displayablelists.test.js.map +1 -0
- package/dist/commonjs/__tests__/entities.test.js +3 -0
- package/dist/commonjs/__tests__/entities.test.js.map +1 -1
- package/dist/commonjs/__tests__/indexingdocuments.test.js +0 -41
- package/dist/commonjs/__tests__/indexingdocuments.test.js.map +1 -1
- package/dist/commonjs/__tests__/indexingpermissions.test.d.ts +2 -0
- package/dist/commonjs/__tests__/indexingpermissions.test.d.ts.map +1 -0
- package/dist/commonjs/__tests__/{permissions.test.js → indexingpermissions.test.js} +13 -13
- package/dist/commonjs/__tests__/indexingpermissions.test.js.map +1 -0
- package/dist/commonjs/__tests__/insights.test.js +2 -1
- package/dist/commonjs/__tests__/insights.test.js.map +1 -1
- package/dist/commonjs/__tests__/messages.test.js +2 -1
- package/dist/commonjs/__tests__/messages.test.js.map +1 -1
- package/dist/commonjs/__tests__/people.test.d.ts +2 -0
- package/dist/commonjs/__tests__/people.test.d.ts.map +1 -0
- package/dist/commonjs/__tests__/people.test.js +18 -0
- package/dist/commonjs/__tests__/people.test.js.map +1 -0
- package/dist/commonjs/__tests__/policies.test.js +3 -0
- package/dist/commonjs/__tests__/policies.test.js.map +1 -1
- package/dist/commonjs/__tests__/reports.test.js +3 -0
- package/dist/commonjs/__tests__/reports.test.js.map +1 -1
- package/dist/commonjs/__tests__/search.test.js +1993 -0
- package/dist/commonjs/__tests__/search.test.js.map +1 -1
- package/dist/commonjs/__tests__/summarize.test.d.ts +2 -0
- package/dist/commonjs/__tests__/summarize.test.d.ts.map +1 -0
- package/dist/commonjs/__tests__/summarize.test.js +24 -0
- package/dist/commonjs/__tests__/summarize.test.js.map +1 -0
- package/dist/commonjs/__tests__/troubleshooting.test.d.ts +2 -0
- package/dist/commonjs/__tests__/troubleshooting.test.d.ts.map +1 -0
- package/dist/commonjs/__tests__/troubleshooting.test.js +65 -0
- package/dist/commonjs/__tests__/troubleshooting.test.js.map +1 -0
- package/dist/commonjs/__tests__/visibilityoverrides.test.js +3 -0
- package/dist/commonjs/__tests__/visibilityoverrides.test.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/components/agentconfig.d.ts +3 -0
- package/dist/commonjs/models/components/agentconfig.d.ts.map +1 -1
- package/dist/commonjs/models/components/agentconfig.js +1 -0
- package/dist/commonjs/models/components/agentconfig.js.map +1 -1
- package/dist/commonjs/models/components/chatrequest.d.ts +5 -0
- package/dist/commonjs/models/components/chatrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/chatrequest.js +2 -0
- package/dist/commonjs/models/components/chatrequest.js.map +1 -1
- package/dist/esm/__tests__/activities.test.d.ts +2 -0
- package/dist/esm/__tests__/activities.test.d.ts.map +1 -0
- package/dist/esm/__tests__/activities.test.js +21 -0
- package/dist/esm/__tests__/activities.test.js.map +1 -0
- package/dist/esm/__tests__/agents.test.js +4 -20
- package/dist/esm/__tests__/agents.test.js.map +1 -1
- package/dist/esm/__tests__/announcements.test.js +190 -813
- package/dist/esm/__tests__/announcements.test.js.map +1 -1
- package/dist/esm/__tests__/answers.test.js +126 -255
- package/dist/esm/__tests__/answers.test.js.map +1 -1
- package/dist/esm/__tests__/calendar.test.d.ts +2 -0
- package/dist/esm/__tests__/calendar.test.d.ts.map +1 -0
- package/dist/esm/__tests__/calendar.test.js +8 -0
- package/dist/esm/__tests__/calendar.test.js.map +1 -0
- package/dist/esm/__tests__/clientactivity.test.d.ts +2 -0
- package/dist/esm/__tests__/clientactivity.test.d.ts.map +1 -0
- package/dist/esm/__tests__/{activity.test.js → clientactivity.test.js} +2 -16
- package/dist/esm/__tests__/clientactivity.test.js.map +1 -0
- package/dist/esm/__tests__/clientauthentication.test.js +4 -1
- package/dist/esm/__tests__/clientauthentication.test.js.map +1 -1
- package/dist/esm/__tests__/clientchat.test.d.ts +2 -0
- package/dist/esm/__tests__/clientchat.test.d.ts.map +1 -0
- package/dist/esm/__tests__/clientchat.test.js +9823 -0
- package/dist/esm/__tests__/clientchat.test.js.map +1 -0
- package/dist/esm/__tests__/clientdocuments.test.js +3 -14
- package/dist/esm/__tests__/clientdocuments.test.js.map +1 -1
- package/dist/esm/__tests__/clientshortcuts.test.js +79 -91
- package/dist/esm/__tests__/clientshortcuts.test.js.map +1 -1
- package/dist/esm/__tests__/clientuser.test.d.ts +2 -0
- package/dist/esm/__tests__/clientuser.test.d.ts.map +1 -0
- package/dist/esm/__tests__/clientuser.test.js +23 -0
- package/dist/esm/__tests__/clientuser.test.js.map +1 -0
- package/dist/esm/__tests__/clientverification.test.d.ts +2 -0
- package/dist/esm/__tests__/clientverification.test.d.ts.map +1 -0
- package/dist/esm/__tests__/{verification.test.js → clientverification.test.js} +4 -4
- package/dist/esm/__tests__/clientverification.test.js.map +1 -0
- package/dist/esm/__tests__/collections.test.js +70 -127
- package/dist/esm/__tests__/collections.test.js.map +1 -1
- package/dist/esm/__tests__/displayablelists.test.d.ts +2 -0
- package/dist/esm/__tests__/displayablelists.test.d.ts.map +1 -0
- package/dist/esm/__tests__/displayablelists.test.js +17 -0
- package/dist/esm/__tests__/displayablelists.test.js.map +1 -0
- package/dist/esm/__tests__/entities.test.js +4 -1
- package/dist/esm/__tests__/entities.test.js.map +1 -1
- package/dist/esm/__tests__/indexingdocuments.test.js +1 -42
- package/dist/esm/__tests__/indexingdocuments.test.js.map +1 -1
- package/dist/esm/__tests__/indexingpermissions.test.d.ts +2 -0
- package/dist/esm/__tests__/indexingpermissions.test.d.ts.map +1 -0
- package/dist/esm/__tests__/{permissions.test.js → indexingpermissions.test.js} +13 -13
- package/dist/esm/__tests__/indexingpermissions.test.js.map +1 -0
- package/dist/esm/__tests__/insights.test.js +2 -1
- package/dist/esm/__tests__/insights.test.js.map +1 -1
- package/dist/esm/__tests__/messages.test.js +2 -1
- package/dist/esm/__tests__/messages.test.js.map +1 -1
- package/dist/esm/__tests__/people.test.d.ts +2 -0
- package/dist/esm/__tests__/people.test.d.ts.map +1 -0
- package/dist/esm/__tests__/people.test.js +16 -0
- package/dist/esm/__tests__/people.test.js.map +1 -0
- package/dist/esm/__tests__/policies.test.js +3 -0
- package/dist/esm/__tests__/policies.test.js.map +1 -1
- package/dist/esm/__tests__/reports.test.js +3 -0
- package/dist/esm/__tests__/reports.test.js.map +1 -1
- package/dist/esm/__tests__/search.test.js +1994 -1
- package/dist/esm/__tests__/search.test.js.map +1 -1
- package/dist/esm/__tests__/summarize.test.d.ts +2 -0
- package/dist/esm/__tests__/summarize.test.d.ts.map +1 -0
- package/dist/esm/__tests__/summarize.test.js +22 -0
- package/dist/esm/__tests__/summarize.test.js.map +1 -0
- package/dist/esm/__tests__/troubleshooting.test.d.ts +2 -0
- package/dist/esm/__tests__/troubleshooting.test.d.ts.map +1 -0
- package/dist/esm/__tests__/troubleshooting.test.js +63 -0
- package/dist/esm/__tests__/troubleshooting.test.js.map +1 -0
- package/dist/esm/__tests__/visibilityoverrides.test.js +3 -0
- package/dist/esm/__tests__/visibilityoverrides.test.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/components/agentconfig.d.ts +3 -0
- package/dist/esm/models/components/agentconfig.d.ts.map +1 -1
- package/dist/esm/models/components/agentconfig.js +1 -0
- package/dist/esm/models/components/agentconfig.js.map +1 -1
- package/dist/esm/models/components/chatrequest.d.ts +5 -0
- package/dist/esm/models/components/chatrequest.d.ts.map +1 -1
- package/dist/esm/models/components/chatrequest.js +2 -0
- package/dist/esm/models/components/chatrequest.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/activities.test.ts +24 -0
- package/src/__tests__/agents.test.ts +8 -24
- package/src/__tests__/announcements.test.ts +220 -814
- package/src/__tests__/answers.test.ts +151 -255
- package/src/__tests__/calendar.test.ts +11 -0
- package/src/__tests__/{activity.test.ts → clientactivity.test.ts} +1 -18
- package/src/__tests__/clientauthentication.test.ts +7 -1
- package/src/__tests__/clientchat.test.ts +10007 -0
- package/src/__tests__/clientdocuments.test.ts +5 -16
- package/src/__tests__/clientshortcuts.test.ts +85 -91
- package/src/__tests__/clientuser.test.ts +41 -0
- package/src/__tests__/{verification.test.ts → clientverification.test.ts} +3 -3
- package/src/__tests__/collections.test.ts +79 -127
- package/src/__tests__/displayablelists.test.ts +29 -0
- package/src/__tests__/entities.test.ts +7 -1
- package/src/__tests__/indexingdocuments.test.ts +1 -57
- package/src/__tests__/{permissions.test.ts → indexingpermissions.test.ts} +12 -12
- package/src/__tests__/insights.test.ts +2 -1
- package/src/__tests__/messages.test.ts +2 -1
- package/src/__tests__/people.test.ts +21 -0
- package/src/__tests__/policies.test.ts +6 -0
- package/src/__tests__/reports.test.ts +6 -0
- package/src/__tests__/search.test.ts +2018 -1
- package/src/__tests__/summarize.test.ts +25 -0
- package/src/__tests__/troubleshooting.test.ts +86 -0
- package/src/__tests__/visibilityoverrides.test.ts +6 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/agentconfig.ts +1 -0
- package/src/models/components/chatrequest.ts +7 -0
- package/dist/commonjs/__tests__/activity.test.d.ts +0 -2
- package/dist/commonjs/__tests__/activity.test.d.ts.map +0 -1
- package/dist/commonjs/__tests__/activity.test.js.map +0 -1
- package/dist/commonjs/__tests__/adminsearch.test.d.ts +0 -2
- package/dist/commonjs/__tests__/adminsearch.test.d.ts.map +0 -1
- package/dist/commonjs/__tests__/adminsearch.test.js +0 -2001
- package/dist/commonjs/__tests__/adminsearch.test.js.map +0 -1
- package/dist/commonjs/__tests__/chat.test.d.ts +0 -2
- package/dist/commonjs/__tests__/chat.test.d.ts.map +0 -1
- package/dist/commonjs/__tests__/chat.test.js +0 -20883
- package/dist/commonjs/__tests__/chat.test.js.map +0 -1
- package/dist/commonjs/__tests__/clientsearch.test.d.ts +0 -2
- package/dist/commonjs/__tests__/clientsearch.test.d.ts.map +0 -1
- package/dist/commonjs/__tests__/clientsearch.test.js +0 -4095
- package/dist/commonjs/__tests__/clientsearch.test.js.map +0 -1
- package/dist/commonjs/__tests__/datasource.test.d.ts +0 -2
- package/dist/commonjs/__tests__/datasource.test.d.ts.map +0 -1
- package/dist/commonjs/__tests__/datasource.test.js +0 -10
- package/dist/commonjs/__tests__/datasource.test.js.map +0 -1
- package/dist/commonjs/__tests__/indexingpeople.test.d.ts +0 -2
- package/dist/commonjs/__tests__/indexingpeople.test.d.ts.map +0 -1
- package/dist/commonjs/__tests__/indexingpeople.test.js +0 -30
- package/dist/commonjs/__tests__/indexingpeople.test.js.map +0 -1
- package/dist/commonjs/__tests__/permissions.test.d.ts +0 -2
- package/dist/commonjs/__tests__/permissions.test.d.ts.map +0 -1
- package/dist/commonjs/__tests__/permissions.test.js.map +0 -1
- package/dist/commonjs/__tests__/verification.test.d.ts +0 -2
- package/dist/commonjs/__tests__/verification.test.d.ts.map +0 -1
- package/dist/commonjs/__tests__/verification.test.js.map +0 -1
- package/dist/esm/__tests__/activity.test.d.ts +0 -2
- package/dist/esm/__tests__/activity.test.d.ts.map +0 -1
- package/dist/esm/__tests__/activity.test.js.map +0 -1
- package/dist/esm/__tests__/adminsearch.test.d.ts +0 -2
- package/dist/esm/__tests__/adminsearch.test.d.ts.map +0 -1
- package/dist/esm/__tests__/adminsearch.test.js +0 -1999
- package/dist/esm/__tests__/adminsearch.test.js.map +0 -1
- package/dist/esm/__tests__/chat.test.d.ts +0 -2
- package/dist/esm/__tests__/chat.test.d.ts.map +0 -1
- package/dist/esm/__tests__/chat.test.js +0 -20881
- package/dist/esm/__tests__/chat.test.js.map +0 -1
- package/dist/esm/__tests__/clientsearch.test.d.ts +0 -2
- package/dist/esm/__tests__/clientsearch.test.d.ts.map +0 -1
- package/dist/esm/__tests__/clientsearch.test.js +0 -4093
- package/dist/esm/__tests__/clientsearch.test.js.map +0 -1
- package/dist/esm/__tests__/datasource.test.d.ts +0 -2
- package/dist/esm/__tests__/datasource.test.d.ts.map +0 -1
- package/dist/esm/__tests__/datasource.test.js +0 -8
- package/dist/esm/__tests__/datasource.test.js.map +0 -1
- package/dist/esm/__tests__/indexingpeople.test.d.ts +0 -2
- package/dist/esm/__tests__/indexingpeople.test.d.ts.map +0 -1
- package/dist/esm/__tests__/indexingpeople.test.js +0 -28
- package/dist/esm/__tests__/indexingpeople.test.js.map +0 -1
- package/dist/esm/__tests__/permissions.test.d.ts +0 -2
- package/dist/esm/__tests__/permissions.test.d.ts.map +0 -1
- package/dist/esm/__tests__/permissions.test.js.map +0 -1
- package/dist/esm/__tests__/verification.test.d.ts +0 -2
- package/dist/esm/__tests__/verification.test.d.ts.map +0 -1
- package/dist/esm/__tests__/verification.test.js.map +0 -1
- package/src/__tests__/adminsearch.test.ts +0 -2009
- package/src/__tests__/chat.test.ts +0 -21206
- package/src/__tests__/clientsearch.test.ts +0 -4115
- package/src/__tests__/datasource.test.ts +0 -11
- package/src/__tests__/indexingpeople.test.ts +0 -38
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import { expect, test } from "vitest";
|
|
5
|
+
import { assert, expect, it, test } from "vitest";
|
|
6
6
|
import { Glean } from "../index.js";
|
|
7
7
|
import { RFCDate } from "../types/index.js";
|
|
8
8
|
import { createTestHTTPClient } from "./testclient.js";
|
|
@@ -215,10 +215,7 @@ test("Collections Createcollection", async () => {
|
|
|
215
215
|
items: [
|
|
216
216
|
{
|
|
217
217
|
collectionId: 782367,
|
|
218
|
-
|
|
219
|
-
inputAlias: "<value>",
|
|
220
|
-
},
|
|
221
|
-
itemType: "URL",
|
|
218
|
+
itemType: "DOCUMENT",
|
|
222
219
|
},
|
|
223
220
|
],
|
|
224
221
|
},
|
|
@@ -262,11 +259,6 @@ test("Collections Createcollection", async () => {
|
|
|
262
259
|
},
|
|
263
260
|
},
|
|
264
261
|
},
|
|
265
|
-
shortcuts: [
|
|
266
|
-
{
|
|
267
|
-
inputAlias: "<value>",
|
|
268
|
-
},
|
|
269
|
-
],
|
|
270
262
|
customData: {
|
|
271
263
|
"someCustomField": {},
|
|
272
264
|
},
|
|
@@ -341,8 +333,42 @@ test("Collections Createcollection", async () => {
|
|
|
341
333
|
},
|
|
342
334
|
],
|
|
343
335
|
},
|
|
336
|
+
{
|
|
337
|
+
filters: [
|
|
338
|
+
{
|
|
339
|
+
fieldName: "type",
|
|
340
|
+
values: [
|
|
341
|
+
{
|
|
342
|
+
value: "Spreadsheet",
|
|
343
|
+
relationType: "EQUALS",
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
value: "Presentation",
|
|
347
|
+
relationType: "EQUALS",
|
|
348
|
+
},
|
|
349
|
+
],
|
|
350
|
+
},
|
|
351
|
+
],
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
filters: [
|
|
355
|
+
{
|
|
356
|
+
fieldName: "type",
|
|
357
|
+
values: [
|
|
358
|
+
{
|
|
359
|
+
value: "Spreadsheet",
|
|
360
|
+
relationType: "EQUALS",
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
value: "Presentation",
|
|
364
|
+
relationType: "EQUALS",
|
|
365
|
+
},
|
|
366
|
+
],
|
|
367
|
+
},
|
|
368
|
+
],
|
|
369
|
+
},
|
|
344
370
|
],
|
|
345
|
-
facetBucketSize:
|
|
371
|
+
facetBucketSize: 45416,
|
|
346
372
|
authTokens: [
|
|
347
373
|
{
|
|
348
374
|
accessToken: "123abc",
|
|
@@ -387,7 +413,6 @@ test("Collections Createcollection", async () => {
|
|
|
387
413
|
inviteInfo: {
|
|
388
414
|
invites: [
|
|
389
415
|
{},
|
|
390
|
-
{},
|
|
391
416
|
],
|
|
392
417
|
},
|
|
393
418
|
customFields: [
|
|
@@ -395,6 +420,7 @@ test("Collections Createcollection", async () => {
|
|
|
395
420
|
label: "<value>",
|
|
396
421
|
values: [
|
|
397
422
|
{},
|
|
423
|
+
{},
|
|
398
424
|
],
|
|
399
425
|
},
|
|
400
426
|
{
|
|
@@ -823,17 +849,11 @@ test("Collections Editcollection", async () => {
|
|
|
823
849
|
items: [
|
|
824
850
|
{
|
|
825
851
|
collectionId: 477967,
|
|
826
|
-
|
|
827
|
-
inputAlias: "<value>",
|
|
828
|
-
},
|
|
829
|
-
itemType: "COLLECTION",
|
|
852
|
+
itemType: "URL",
|
|
830
853
|
},
|
|
831
854
|
{
|
|
832
|
-
collectionId:
|
|
833
|
-
|
|
834
|
-
inputAlias: "<value>",
|
|
835
|
-
},
|
|
836
|
-
itemType: "COLLECTION",
|
|
855
|
+
collectionId: 813577,
|
|
856
|
+
itemType: "TEXT",
|
|
837
857
|
},
|
|
838
858
|
],
|
|
839
859
|
},
|
|
@@ -872,17 +892,6 @@ test("Collections Editcollection", async () => {
|
|
|
872
892
|
},
|
|
873
893
|
},
|
|
874
894
|
},
|
|
875
|
-
shortcuts: [
|
|
876
|
-
{
|
|
877
|
-
inputAlias: "<value>",
|
|
878
|
-
},
|
|
879
|
-
{
|
|
880
|
-
inputAlias: "<value>",
|
|
881
|
-
},
|
|
882
|
-
{
|
|
883
|
-
inputAlias: "<value>",
|
|
884
|
-
},
|
|
885
|
-
],
|
|
886
895
|
customData: {
|
|
887
896
|
"someCustomField": {},
|
|
888
897
|
},
|
|
@@ -890,7 +899,7 @@ test("Collections Editcollection", async () => {
|
|
|
890
899
|
},
|
|
891
900
|
},
|
|
892
901
|
{
|
|
893
|
-
startIndex:
|
|
902
|
+
startIndex: 556706,
|
|
894
903
|
document: {
|
|
895
904
|
metadata: {
|
|
896
905
|
datasource: "datasource",
|
|
@@ -915,7 +924,7 @@ test("Collections Editcollection", async () => {
|
|
|
915
924
|
name: "George Clooney",
|
|
916
925
|
obfuscatedId: "abc123",
|
|
917
926
|
},
|
|
918
|
-
remindAt:
|
|
927
|
+
remindAt: 416023,
|
|
919
928
|
},
|
|
920
929
|
},
|
|
921
930
|
},
|
|
@@ -993,42 +1002,8 @@ test("Collections Editcollection", async () => {
|
|
|
993
1002
|
},
|
|
994
1003
|
],
|
|
995
1004
|
},
|
|
996
|
-
{
|
|
997
|
-
filters: [
|
|
998
|
-
{
|
|
999
|
-
fieldName: "type",
|
|
1000
|
-
values: [
|
|
1001
|
-
{
|
|
1002
|
-
value: "Spreadsheet",
|
|
1003
|
-
relationType: "EQUALS",
|
|
1004
|
-
},
|
|
1005
|
-
{
|
|
1006
|
-
value: "Presentation",
|
|
1007
|
-
relationType: "EQUALS",
|
|
1008
|
-
},
|
|
1009
|
-
],
|
|
1010
|
-
},
|
|
1011
|
-
],
|
|
1012
|
-
},
|
|
1013
|
-
{
|
|
1014
|
-
filters: [
|
|
1015
|
-
{
|
|
1016
|
-
fieldName: "type",
|
|
1017
|
-
values: [
|
|
1018
|
-
{
|
|
1019
|
-
value: "Spreadsheet",
|
|
1020
|
-
relationType: "EQUALS",
|
|
1021
|
-
},
|
|
1022
|
-
{
|
|
1023
|
-
value: "Presentation",
|
|
1024
|
-
relationType: "EQUALS",
|
|
1025
|
-
},
|
|
1026
|
-
],
|
|
1027
|
-
},
|
|
1028
|
-
],
|
|
1029
|
-
},
|
|
1030
1005
|
],
|
|
1031
|
-
facetBucketSize:
|
|
1006
|
+
facetBucketSize: 967252,
|
|
1032
1007
|
authTokens: [
|
|
1033
1008
|
{
|
|
1034
1009
|
accessToken: "123abc",
|
|
@@ -1073,59 +1048,22 @@ test("Collections Editcollection", async () => {
|
|
|
1073
1048
|
inviteInfo: {
|
|
1074
1049
|
invites: [
|
|
1075
1050
|
{},
|
|
1076
|
-
{},
|
|
1077
|
-
{},
|
|
1078
1051
|
],
|
|
1079
1052
|
},
|
|
1080
1053
|
customFields: [
|
|
1081
1054
|
{
|
|
1082
1055
|
label: "<value>",
|
|
1083
|
-
values: [
|
|
1084
|
-
{},
|
|
1085
|
-
],
|
|
1086
|
-
},
|
|
1087
|
-
],
|
|
1088
|
-
badges: [
|
|
1089
|
-
{
|
|
1090
|
-
key: "deployment_name_new_hire",
|
|
1091
|
-
displayName: "New hire",
|
|
1092
|
-
iconConfig: {
|
|
1093
|
-
color: "#343CED",
|
|
1094
|
-
key: "person_icon",
|
|
1095
|
-
iconType: "GLYPH",
|
|
1096
|
-
name: "user",
|
|
1097
|
-
},
|
|
1056
|
+
values: [],
|
|
1098
1057
|
},
|
|
1099
|
-
],
|
|
1100
|
-
},
|
|
1101
|
-
},
|
|
1102
|
-
role: "EDITOR",
|
|
1103
|
-
},
|
|
1104
|
-
{
|
|
1105
|
-
person: {
|
|
1106
|
-
name: "George Clooney",
|
|
1107
|
-
obfuscatedId: "abc123",
|
|
1108
|
-
metadata: {
|
|
1109
|
-
type: "FULL_TIME",
|
|
1110
|
-
title: "Actor",
|
|
1111
|
-
department: "Movies",
|
|
1112
|
-
email: "george@example.com",
|
|
1113
|
-
location: "Hollywood, CA",
|
|
1114
|
-
phone: "6505551234",
|
|
1115
|
-
photoUrl: "https://example.com/george.jpg",
|
|
1116
|
-
startDate: new RFCDate("2000-01-23"),
|
|
1117
|
-
datasourceProfile: [
|
|
1118
1058
|
{
|
|
1119
|
-
|
|
1120
|
-
|
|
1059
|
+
label: "<value>",
|
|
1060
|
+
values: [],
|
|
1121
1061
|
},
|
|
1122
1062
|
{
|
|
1123
|
-
|
|
1124
|
-
|
|
1063
|
+
label: "<value>",
|
|
1064
|
+
values: [],
|
|
1125
1065
|
},
|
|
1126
1066
|
],
|
|
1127
|
-
querySuggestions: {},
|
|
1128
|
-
inviteInfo: {},
|
|
1129
1067
|
badges: [
|
|
1130
1068
|
{
|
|
1131
1069
|
key: "deployment_name_new_hire",
|
|
@@ -1160,6 +1098,10 @@ test("Collections Editcollection", async () => {
|
|
|
1160
1098
|
datasource: "github",
|
|
1161
1099
|
handle: "<value>",
|
|
1162
1100
|
},
|
|
1101
|
+
{
|
|
1102
|
+
datasource: "github",
|
|
1103
|
+
handle: "<value>",
|
|
1104
|
+
},
|
|
1163
1105
|
],
|
|
1164
1106
|
querySuggestions: {},
|
|
1165
1107
|
inviteInfo: {},
|
|
@@ -1177,10 +1119,8 @@ test("Collections Editcollection", async () => {
|
|
|
1177
1119
|
],
|
|
1178
1120
|
},
|
|
1179
1121
|
},
|
|
1180
|
-
role: "
|
|
1122
|
+
role: "EDITOR",
|
|
1181
1123
|
},
|
|
1182
|
-
],
|
|
1183
|
-
removedRoles: [
|
|
1184
1124
|
{
|
|
1185
1125
|
person: {
|
|
1186
1126
|
name: "George Clooney",
|
|
@@ -1203,10 +1143,6 @@ test("Collections Editcollection", async () => {
|
|
|
1203
1143
|
datasource: "github",
|
|
1204
1144
|
handle: "<value>",
|
|
1205
1145
|
},
|
|
1206
|
-
{
|
|
1207
|
-
datasource: "github",
|
|
1208
|
-
handle: "<value>",
|
|
1209
|
-
},
|
|
1210
1146
|
],
|
|
1211
1147
|
querySuggestions: {},
|
|
1212
1148
|
inviteInfo: {},
|
|
@@ -1224,8 +1160,10 @@ test("Collections Editcollection", async () => {
|
|
|
1224
1160
|
],
|
|
1225
1161
|
},
|
|
1226
1162
|
},
|
|
1227
|
-
role: "
|
|
1163
|
+
role: "ANSWER_MODERATOR",
|
|
1228
1164
|
},
|
|
1165
|
+
],
|
|
1166
|
+
removedRoles: [
|
|
1229
1167
|
{
|
|
1230
1168
|
person: {
|
|
1231
1169
|
name: "George Clooney",
|
|
@@ -1244,10 +1182,6 @@ test("Collections Editcollection", async () => {
|
|
|
1244
1182
|
datasource: "github",
|
|
1245
1183
|
handle: "<value>",
|
|
1246
1184
|
},
|
|
1247
|
-
{
|
|
1248
|
-
datasource: "github",
|
|
1249
|
-
handle: "<value>",
|
|
1250
|
-
},
|
|
1251
1185
|
],
|
|
1252
1186
|
querySuggestions: {},
|
|
1253
1187
|
inviteInfo: {},
|
|
@@ -1265,7 +1199,7 @@ test("Collections Editcollection", async () => {
|
|
|
1265
1199
|
],
|
|
1266
1200
|
},
|
|
1267
1201
|
},
|
|
1268
|
-
role: "
|
|
1202
|
+
role: "ANSWER_MODERATOR",
|
|
1269
1203
|
},
|
|
1270
1204
|
],
|
|
1271
1205
|
audienceFilters: [
|
|
@@ -1283,7 +1217,7 @@ test("Collections Editcollection", async () => {
|
|
|
1283
1217
|
],
|
|
1284
1218
|
},
|
|
1285
1219
|
],
|
|
1286
|
-
id:
|
|
1220
|
+
id: 720396,
|
|
1287
1221
|
});
|
|
1288
1222
|
expect(result).toBeDefined();
|
|
1289
1223
|
});
|
|
@@ -1298,12 +1232,18 @@ test("Collections Editcollectionitem", async () => {
|
|
|
1298
1232
|
});
|
|
1299
1233
|
|
|
1300
1234
|
const result = await glean.client.collections.updateItem({
|
|
1301
|
-
collectionId:
|
|
1235
|
+
collectionId: 795203,
|
|
1302
1236
|
itemId: "<id>",
|
|
1303
1237
|
});
|
|
1304
1238
|
expect(result).toBeDefined();
|
|
1305
1239
|
});
|
|
1306
1240
|
|
|
1241
|
+
it.skip("Collections Editdocumentcollections", async () => {
|
|
1242
|
+
assert.fail(
|
|
1243
|
+
"incomplete test found please make sure to address the following errors: [`workflow step editdocumentcollections.test referencing operation editdocumentcollections not found in document`]",
|
|
1244
|
+
);
|
|
1245
|
+
});
|
|
1246
|
+
|
|
1307
1247
|
test("Collections Getcollection", async () => {
|
|
1308
1248
|
const testHttpClient = createTestHTTPClient("getcollection");
|
|
1309
1249
|
|
|
@@ -1314,7 +1254,7 @@ test("Collections Getcollection", async () => {
|
|
|
1314
1254
|
});
|
|
1315
1255
|
|
|
1316
1256
|
const result = await glean.client.collections.retrieve({
|
|
1317
|
-
id:
|
|
1257
|
+
id: 700347,
|
|
1318
1258
|
});
|
|
1319
1259
|
expect(result).toBeDefined();
|
|
1320
1260
|
});
|
|
@@ -1331,3 +1271,15 @@ test("Collections Listcollections", async () => {
|
|
|
1331
1271
|
const result = await glean.client.collections.list({});
|
|
1332
1272
|
expect(result).toBeDefined();
|
|
1333
1273
|
});
|
|
1274
|
+
|
|
1275
|
+
it.skip("Collections Movecollectionitem", async () => {
|
|
1276
|
+
assert.fail(
|
|
1277
|
+
"incomplete test found please make sure to address the following errors: [`workflow step movecollectionitem.test referencing operation movecollectionitem not found in document`]",
|
|
1278
|
+
);
|
|
1279
|
+
});
|
|
1280
|
+
|
|
1281
|
+
it.skip("Collections Pincollection", async () => {
|
|
1282
|
+
assert.fail(
|
|
1283
|
+
"incomplete test found please make sure to address the following errors: [`workflow step pincollection.test referencing operation pincollection not found in document`]",
|
|
1284
|
+
);
|
|
1285
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { assert, it } from "vitest";
|
|
6
|
+
|
|
7
|
+
it.skip("Displayablelists Createdisplayablelists", async () => {
|
|
8
|
+
assert.fail(
|
|
9
|
+
"incomplete test found please make sure to address the following errors: [`workflow step createdisplayablelists.test referencing operation createdisplayablelists not found in document`]",
|
|
10
|
+
);
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
it.skip("Displayablelists Deletedisplayablelists", async () => {
|
|
14
|
+
assert.fail(
|
|
15
|
+
"incomplete test found please make sure to address the following errors: [`workflow step deletedisplayablelists.test referencing operation deletedisplayablelists not found in document`]",
|
|
16
|
+
);
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
it.skip("Displayablelists Getdisplayablelists", async () => {
|
|
20
|
+
assert.fail(
|
|
21
|
+
"incomplete test found please make sure to address the following errors: [`workflow step getdisplayablelists.test referencing operation getdisplayablelists not found in document`]",
|
|
22
|
+
);
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
it.skip("Displayablelists Updatedisplayablelists", async () => {
|
|
26
|
+
assert.fail(
|
|
27
|
+
"incomplete test found please make sure to address the following errors: [`workflow step updatedisplayablelists.test referencing operation updatedisplayablelists not found in document`]",
|
|
28
|
+
);
|
|
29
|
+
});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import { expect, test } from "vitest";
|
|
5
|
+
import { assert, expect, it, test } from "vitest";
|
|
6
6
|
import { Glean } from "../index.js";
|
|
7
7
|
import { createTestHTTPClient } from "./testclient.js";
|
|
8
8
|
|
|
@@ -53,3 +53,9 @@ test("Entities People", async () => {
|
|
|
53
53
|
});
|
|
54
54
|
expect(result).toBeDefined();
|
|
55
55
|
});
|
|
56
|
+
|
|
57
|
+
it.skip("Entities Teams", async () => {
|
|
58
|
+
assert.fail(
|
|
59
|
+
"incomplete test found please make sure to address the following errors: [`workflow step teams.test referencing operation teams not found in document`]",
|
|
60
|
+
);
|
|
61
|
+
});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { test } from "vitest";
|
|
6
6
|
import { Glean } from "../index.js";
|
|
7
7
|
import { createTestHTTPClient } from "./testclient.js";
|
|
8
8
|
|
|
@@ -98,59 +98,3 @@ test("Indexing Documents Post /Api/index/v1 /Deletedocument", async () => {
|
|
|
98
98
|
id: "<id>",
|
|
99
99
|
});
|
|
100
100
|
});
|
|
101
|
-
|
|
102
|
-
test("Indexing Documents Post /Api/index/v1 /Checkdocumentaccess", async () => {
|
|
103
|
-
const testHttpClient = createTestHTTPClient(
|
|
104
|
-
"post_/api/index/v1/checkdocumentaccess",
|
|
105
|
-
);
|
|
106
|
-
|
|
107
|
-
const glean = new Glean({
|
|
108
|
-
serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
|
|
109
|
-
httpClient: testHttpClient,
|
|
110
|
-
apiToken: process.env["GLEAN_API_TOKEN"] ?? "value",
|
|
111
|
-
});
|
|
112
|
-
|
|
113
|
-
const result = await glean.indexing.documents.checkAccess({
|
|
114
|
-
datasource: "<value>",
|
|
115
|
-
objectType: "<value>",
|
|
116
|
-
docId: "<id>",
|
|
117
|
-
userEmail: "<value>",
|
|
118
|
-
});
|
|
119
|
-
expect(result).toBeDefined();
|
|
120
|
-
});
|
|
121
|
-
|
|
122
|
-
test("Indexing Documents Post /Api/index/v1 /Getdocumentstatus", async () => {
|
|
123
|
-
const testHttpClient = createTestHTTPClient(
|
|
124
|
-
"post_/api/index/v1/getdocumentstatus",
|
|
125
|
-
);
|
|
126
|
-
|
|
127
|
-
const glean = new Glean({
|
|
128
|
-
serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
|
|
129
|
-
httpClient: testHttpClient,
|
|
130
|
-
apiToken: process.env["GLEAN_API_TOKEN"] ?? "value",
|
|
131
|
-
});
|
|
132
|
-
|
|
133
|
-
const result = await glean.indexing.documents.status({
|
|
134
|
-
datasource: "<value>",
|
|
135
|
-
objectType: "<value>",
|
|
136
|
-
docId: "<id>",
|
|
137
|
-
});
|
|
138
|
-
expect(result).toBeDefined();
|
|
139
|
-
});
|
|
140
|
-
|
|
141
|
-
test("Indexing Documents Post /Api/index/v1 /Getdocumentcount", async () => {
|
|
142
|
-
const testHttpClient = createTestHTTPClient(
|
|
143
|
-
"post_/api/index/v1/getdocumentcount",
|
|
144
|
-
);
|
|
145
|
-
|
|
146
|
-
const glean = new Glean({
|
|
147
|
-
serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
|
|
148
|
-
httpClient: testHttpClient,
|
|
149
|
-
apiToken: process.env["GLEAN_API_TOKEN"] ?? "value",
|
|
150
|
-
});
|
|
151
|
-
|
|
152
|
-
const result = await glean.indexing.documents.count({
|
|
153
|
-
datasource: "<value>",
|
|
154
|
-
});
|
|
155
|
-
expect(result).toBeDefined();
|
|
156
|
-
});
|
|
@@ -6,7 +6,7 @@ import { test } from "vitest";
|
|
|
6
6
|
import { Glean } from "../index.js";
|
|
7
7
|
import { createTestHTTPClient } from "./testclient.js";
|
|
8
8
|
|
|
9
|
-
test("Permissions Post /Api/index/v1 /Updatepermissions", async () => {
|
|
9
|
+
test("Indexing Permissions Post /Api/index/v1 /Updatepermissions", async () => {
|
|
10
10
|
const testHttpClient = createTestHTTPClient(
|
|
11
11
|
"post_/api/index/v1/updatepermissions",
|
|
12
12
|
);
|
|
@@ -23,7 +23,7 @@ test("Permissions Post /Api/index/v1 /Updatepermissions", async () => {
|
|
|
23
23
|
});
|
|
24
24
|
});
|
|
25
25
|
|
|
26
|
-
test("Permissions Post /Api/index/v1 /Indexuser", async () => {
|
|
26
|
+
test("Indexing Permissions Post /Api/index/v1 /Indexuser", async () => {
|
|
27
27
|
const testHttpClient = createTestHTTPClient("post_/api/index/v1/indexuser");
|
|
28
28
|
|
|
29
29
|
const glean = new Glean({
|
|
@@ -41,7 +41,7 @@ test("Permissions Post /Api/index/v1 /Indexuser", async () => {
|
|
|
41
41
|
});
|
|
42
42
|
});
|
|
43
43
|
|
|
44
|
-
test("Permissions Post /Api/index/v1 /Bulkindexusers", async () => {
|
|
44
|
+
test("Indexing Permissions Post /Api/index/v1 /Bulkindexusers", async () => {
|
|
45
45
|
const testHttpClient = createTestHTTPClient(
|
|
46
46
|
"post_/api/index/v1/bulkindexusers",
|
|
47
47
|
);
|
|
@@ -72,7 +72,7 @@ test("Permissions Post /Api/index/v1 /Bulkindexusers", async () => {
|
|
|
72
72
|
});
|
|
73
73
|
});
|
|
74
74
|
|
|
75
|
-
test("Permissions Post /Api/index/v1 /Indexgroup", async () => {
|
|
75
|
+
test("Indexing Permissions Post /Api/index/v1 /Indexgroup", async () => {
|
|
76
76
|
const testHttpClient = createTestHTTPClient("post_/api/index/v1/indexgroup");
|
|
77
77
|
|
|
78
78
|
const glean = new Glean({
|
|
@@ -89,7 +89,7 @@ test("Permissions Post /Api/index/v1 /Indexgroup", async () => {
|
|
|
89
89
|
});
|
|
90
90
|
});
|
|
91
91
|
|
|
92
|
-
test("Permissions Post /Api/index/v1 /Bulkindexgroups", async () => {
|
|
92
|
+
test("Indexing Permissions Post /Api/index/v1 /Bulkindexgroups", async () => {
|
|
93
93
|
const testHttpClient = createTestHTTPClient(
|
|
94
94
|
"post_/api/index/v1/bulkindexgroups",
|
|
95
95
|
);
|
|
@@ -114,7 +114,7 @@ test("Permissions Post /Api/index/v1 /Bulkindexgroups", async () => {
|
|
|
114
114
|
});
|
|
115
115
|
});
|
|
116
116
|
|
|
117
|
-
test("Permissions Post /Api/index/v1 /Indexmembership", async () => {
|
|
117
|
+
test("Indexing Permissions Post /Api/index/v1 /Indexmembership", async () => {
|
|
118
118
|
const testHttpClient = createTestHTTPClient(
|
|
119
119
|
"post_/api/index/v1/indexmembership",
|
|
120
120
|
);
|
|
@@ -133,7 +133,7 @@ test("Permissions Post /Api/index/v1 /Indexmembership", async () => {
|
|
|
133
133
|
});
|
|
134
134
|
});
|
|
135
135
|
|
|
136
|
-
test("Permissions Post /Api/index/v1 /Bulkindexmemberships", async () => {
|
|
136
|
+
test("Indexing Permissions Post /Api/index/v1 /Bulkindexmemberships", async () => {
|
|
137
137
|
const testHttpClient = createTestHTTPClient(
|
|
138
138
|
"post_/api/index/v1/bulkindexmemberships",
|
|
139
139
|
);
|
|
@@ -155,7 +155,7 @@ test("Permissions Post /Api/index/v1 /Bulkindexmemberships", async () => {
|
|
|
155
155
|
});
|
|
156
156
|
});
|
|
157
157
|
|
|
158
|
-
test("Permissions Post /Api/index/v1 /Processallmemberships", async () => {
|
|
158
|
+
test("Indexing Permissions Post /Api/index/v1 /Processallmemberships", async () => {
|
|
159
159
|
const testHttpClient = createTestHTTPClient(
|
|
160
160
|
"post_/api/index/v1/processallmemberships",
|
|
161
161
|
);
|
|
@@ -169,7 +169,7 @@ test("Permissions Post /Api/index/v1 /Processallmemberships", async () => {
|
|
|
169
169
|
await glean.indexing.permissions.processMemberships();
|
|
170
170
|
});
|
|
171
171
|
|
|
172
|
-
test("Permissions Post /Api/index/v1 /Deleteuser", async () => {
|
|
172
|
+
test("Indexing Permissions Post /Api/index/v1 /Deleteuser", async () => {
|
|
173
173
|
const testHttpClient = createTestHTTPClient("post_/api/index/v1/deleteuser");
|
|
174
174
|
|
|
175
175
|
const glean = new Glean({
|
|
@@ -184,7 +184,7 @@ test("Permissions Post /Api/index/v1 /Deleteuser", async () => {
|
|
|
184
184
|
});
|
|
185
185
|
});
|
|
186
186
|
|
|
187
|
-
test("Permissions Post /Api/index/v1 /Deletegroup", async () => {
|
|
187
|
+
test("Indexing Permissions Post /Api/index/v1 /Deletegroup", async () => {
|
|
188
188
|
const testHttpClient = createTestHTTPClient("post_/api/index/v1/deletegroup");
|
|
189
189
|
|
|
190
190
|
const glean = new Glean({
|
|
@@ -199,7 +199,7 @@ test("Permissions Post /Api/index/v1 /Deletegroup", async () => {
|
|
|
199
199
|
});
|
|
200
200
|
});
|
|
201
201
|
|
|
202
|
-
test("Permissions Post /Api/index/v1 /Deletemembership", async () => {
|
|
202
|
+
test("Indexing Permissions Post /Api/index/v1 /Deletemembership", async () => {
|
|
203
203
|
const testHttpClient = createTestHTTPClient(
|
|
204
204
|
"post_/api/index/v1/deletemembership",
|
|
205
205
|
);
|
|
@@ -218,7 +218,7 @@ test("Permissions Post /Api/index/v1 /Deletemembership", async () => {
|
|
|
218
218
|
});
|
|
219
219
|
});
|
|
220
220
|
|
|
221
|
-
test("Permissions Post /Api/index/v1 /Betausers", async () => {
|
|
221
|
+
test("Indexing Permissions Post /Api/index/v1 /Betausers", async () => {
|
|
222
222
|
const testHttpClient = createTestHTTPClient("post_/api/index/v1/betausers");
|
|
223
223
|
|
|
224
224
|
const glean = new Glean({
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { test } from "vitest";
|
|
6
|
+
import { Glean } from "../index.js";
|
|
7
|
+
import { createTestHTTPClient } from "./testclient.js";
|
|
8
|
+
|
|
9
|
+
test("People Post /Api/index/v1 /Processallemployeesandteams", async () => {
|
|
10
|
+
const testHttpClient = createTestHTTPClient(
|
|
11
|
+
"post_/api/index/v1/processallemployeesandteams",
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
const glean = new Glean({
|
|
15
|
+
serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
|
|
16
|
+
httpClient: testHttpClient,
|
|
17
|
+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "value",
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
await glean.indexing.people.processAllEmployeesAndTeams();
|
|
21
|
+
});
|
|
@@ -25,6 +25,12 @@ it.skip("Policies Getpolicies", async () => {
|
|
|
25
25
|
);
|
|
26
26
|
});
|
|
27
27
|
|
|
28
|
+
it.skip("Policies Createpolicy", async () => {
|
|
29
|
+
assert.fail(
|
|
30
|
+
"incomplete test found please make sure to address the following errors: [`workflow step createpolicy.test referencing operation createpolicy is missing required request body`, `workflow step createpolicy.test contains criterion simple with invalid condition`, `workflow step createpolicy.test does not contain $contentType successCriteria and required for response body assertion`]",
|
|
31
|
+
);
|
|
32
|
+
});
|
|
33
|
+
|
|
28
34
|
it.skip("Policies Downloadpolicycsv", async () => {
|
|
29
35
|
assert.fail(
|
|
30
36
|
"incomplete test found please make sure to address the following errors: [`workflow step downloadpolicycsv.test contains criterion simple with invalid condition`, `workflow step downloadpolicycsv.test does not contain $contentType successCriteria and required for response body assertion`]",
|
|
@@ -4,6 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
import { assert, it } from "vitest";
|
|
6
6
|
|
|
7
|
+
it.skip("Reports Createreport", async () => {
|
|
8
|
+
assert.fail(
|
|
9
|
+
"incomplete test found please make sure to address the following errors: [`workflow step createreport.test referencing operation createreport is missing required request body`, `workflow step createreport.test contains criterion simple with invalid condition`, `workflow step createreport.test does not contain $contentType successCriteria and required for response body assertion`]",
|
|
10
|
+
);
|
|
11
|
+
});
|
|
12
|
+
|
|
7
13
|
it.skip("Reports Downloadreportcsv", async () => {
|
|
8
14
|
assert.fail(
|
|
9
15
|
"incomplete test found please make sure to address the following errors: [`workflow step downloadreportcsv.test contains criterion simple with invalid condition`, `workflow step downloadreportcsv.test does not contain $contentType successCriteria and required for response body assertion`]",
|