@greensecurity/javascript-sdk 0.44.0-beta.17 → 0.44.0-beta.19
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/README.md +9 -0
- package/dist/commonjs/__tests__/organizations.test.js +57 -0
- package/dist/commonjs/__tests__/organizations.test.js.map +1 -1
- package/dist/commonjs/__tests__/zones.test.js +9 -37
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/funcs/organizationsDownloadFacilityVendorsExport.d.ts +22 -0
- package/dist/commonjs/funcs/organizationsDownloadFacilityVendorsExport.d.ts.map +1 -0
- package/dist/commonjs/funcs/organizationsDownloadFacilityVendorsExport.js +132 -0
- package/dist/commonjs/funcs/organizationsDownloadFacilityVendorsExport.js.map +1 -0
- package/dist/commonjs/funcs/organizationsExportFacilityVendors.d.ts +34 -0
- package/dist/commonjs/funcs/organizationsExportFacilityVendors.d.ts.map +1 -0
- package/dist/commonjs/funcs/organizationsExportFacilityVendors.js +148 -0
- package/dist/commonjs/funcs/organizationsExportFacilityVendors.js.map +1 -0
- package/dist/commonjs/funcs/organizationsGetFacilityVendorsExportStatus.d.ts +22 -0
- package/dist/commonjs/funcs/organizationsGetFacilityVendorsExportStatus.d.ts.map +1 -0
- package/dist/commonjs/funcs/organizationsGetFacilityVendorsExportStatus.js +131 -0
- package/dist/commonjs/funcs/organizationsGetFacilityVendorsExportStatus.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/sdks.d.ts.map +1 -1
- package/dist/commonjs/lib/sdks.js +37 -12
- package/dist/commonjs/lib/sdks.js.map +1 -1
- package/dist/commonjs/models/components/csvexportstatusresponse.d.ts +43 -0
- package/dist/commonjs/models/components/csvexportstatusresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/csvexportstatusresponse.js +65 -0
- package/dist/commonjs/models/components/csvexportstatusresponse.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +1 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/productvariant.d.ts +10 -0
- package/dist/commonjs/models/components/productvariant.d.ts.map +1 -1
- package/dist/commonjs/models/components/productvariant.js +4 -0
- package/dist/commonjs/models/components/productvariant.js.map +1 -1
- package/dist/commonjs/models/operations/downloadfacilityvendorsexport.d.ts +47 -0
- package/dist/commonjs/models/operations/downloadfacilityvendorsexport.d.ts.map +1 -0
- package/dist/commonjs/models/operations/downloadfacilityvendorsexport.js +80 -0
- package/dist/commonjs/models/operations/downloadfacilityvendorsexport.js.map +1 -0
- package/dist/commonjs/models/operations/exportfacilityvendors.d.ts +118 -0
- package/dist/commonjs/models/operations/exportfacilityvendors.d.ts.map +1 -0
- package/dist/commonjs/models/operations/exportfacilityvendors.js +115 -0
- package/dist/commonjs/models/operations/exportfacilityvendors.js.map +1 -0
- package/dist/commonjs/models/operations/getfacilityvendorsexportstatus.d.ts +20 -0
- package/dist/commonjs/models/operations/getfacilityvendorsexportstatus.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getfacilityvendorsexportstatus.js +55 -0
- package/dist/commonjs/models/operations/getfacilityvendorsexportstatus.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +3 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +3 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/react-query/index.d.ts +3 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +3 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/organizationsDownloadFacilityVendorsExport.core.d.ts +12 -0
- package/dist/commonjs/react-query/organizationsDownloadFacilityVendorsExport.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsDownloadFacilityVendorsExport.core.js +40 -0
- package/dist/commonjs/react-query/organizationsDownloadFacilityVendorsExport.core.js.map +1 -0
- package/dist/commonjs/react-query/organizationsDownloadFacilityVendorsExport.d.ts +33 -0
- package/dist/commonjs/react-query/organizationsDownloadFacilityVendorsExport.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsDownloadFacilityVendorsExport.js +73 -0
- package/dist/commonjs/react-query/organizationsDownloadFacilityVendorsExport.js.map +1 -0
- package/dist/commonjs/react-query/organizationsExportFacilityVendors.core.d.ts +19 -0
- package/dist/commonjs/react-query/organizationsExportFacilityVendors.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsExportFacilityVendors.core.js +47 -0
- package/dist/commonjs/react-query/organizationsExportFacilityVendors.core.js.map +1 -0
- package/dist/commonjs/react-query/organizationsExportFacilityVendors.d.ts +77 -0
- package/dist/commonjs/react-query/organizationsExportFacilityVendors.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsExportFacilityVendors.js +97 -0
- package/dist/commonjs/react-query/organizationsExportFacilityVendors.js.map +1 -0
- package/dist/commonjs/react-query/organizationsGetFacilityVendorsExportStatus.core.d.ts +13 -0
- package/dist/commonjs/react-query/organizationsGetFacilityVendorsExportStatus.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsGetFacilityVendorsExportStatus.core.js +40 -0
- package/dist/commonjs/react-query/organizationsGetFacilityVendorsExportStatus.core.js.map +1 -0
- package/dist/commonjs/react-query/organizationsGetFacilityVendorsExportStatus.d.ts +31 -0
- package/dist/commonjs/react-query/organizationsGetFacilityVendorsExportStatus.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsGetFacilityVendorsExportStatus.js +71 -0
- package/dist/commonjs/react-query/organizationsGetFacilityVendorsExportStatus.js.map +1 -0
- package/dist/commonjs/sdk/organizations.d.ts +38 -0
- package/dist/commonjs/sdk/organizations.d.ts.map +1 -1
- package/dist/commonjs/sdk/organizations.js +47 -0
- package/dist/commonjs/sdk/organizations.js.map +1 -1
- package/dist/esm/__tests__/organizations.test.js +57 -0
- package/dist/esm/__tests__/organizations.test.js.map +1 -1
- package/dist/esm/__tests__/zones.test.js +9 -37
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/funcs/organizationsDownloadFacilityVendorsExport.d.ts +22 -0
- package/dist/esm/funcs/organizationsDownloadFacilityVendorsExport.d.ts.map +1 -0
- package/dist/esm/funcs/organizationsDownloadFacilityVendorsExport.js +96 -0
- package/dist/esm/funcs/organizationsDownloadFacilityVendorsExport.js.map +1 -0
- package/dist/esm/funcs/organizationsExportFacilityVendors.d.ts +34 -0
- package/dist/esm/funcs/organizationsExportFacilityVendors.d.ts.map +1 -0
- package/dist/esm/funcs/organizationsExportFacilityVendors.js +112 -0
- package/dist/esm/funcs/organizationsExportFacilityVendors.js.map +1 -0
- package/dist/esm/funcs/organizationsGetFacilityVendorsExportStatus.d.ts +22 -0
- package/dist/esm/funcs/organizationsGetFacilityVendorsExportStatus.d.ts.map +1 -0
- package/dist/esm/funcs/organizationsGetFacilityVendorsExportStatus.js +95 -0
- package/dist/esm/funcs/organizationsGetFacilityVendorsExportStatus.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/sdks.d.ts.map +1 -1
- package/dist/esm/lib/sdks.js +37 -12
- package/dist/esm/lib/sdks.js.map +1 -1
- package/dist/esm/models/components/csvexportstatusresponse.d.ts +43 -0
- package/dist/esm/models/components/csvexportstatusresponse.d.ts.map +1 -0
- package/dist/esm/models/components/csvexportstatusresponse.js +28 -0
- package/dist/esm/models/components/csvexportstatusresponse.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +1 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/productvariant.d.ts +10 -0
- package/dist/esm/models/components/productvariant.d.ts.map +1 -1
- package/dist/esm/models/components/productvariant.js +4 -0
- package/dist/esm/models/components/productvariant.js.map +1 -1
- package/dist/esm/models/operations/downloadfacilityvendorsexport.d.ts +47 -0
- package/dist/esm/models/operations/downloadfacilityvendorsexport.d.ts.map +1 -0
- package/dist/esm/models/operations/downloadfacilityvendorsexport.js +41 -0
- package/dist/esm/models/operations/downloadfacilityvendorsexport.js.map +1 -0
- package/dist/esm/models/operations/exportfacilityvendors.d.ts +118 -0
- package/dist/esm/models/operations/exportfacilityvendors.d.ts.map +1 -0
- package/dist/esm/models/operations/exportfacilityvendors.js +76 -0
- package/dist/esm/models/operations/exportfacilityvendors.js.map +1 -0
- package/dist/esm/models/operations/getfacilityvendorsexportstatus.d.ts +20 -0
- package/dist/esm/models/operations/getfacilityvendorsexportstatus.d.ts.map +1 -0
- package/dist/esm/models/operations/getfacilityvendorsexportstatus.js +18 -0
- package/dist/esm/models/operations/getfacilityvendorsexportstatus.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +3 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +3 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/react-query/index.d.ts +3 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +3 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/organizationsDownloadFacilityVendorsExport.core.d.ts +12 -0
- package/dist/esm/react-query/organizationsDownloadFacilityVendorsExport.core.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsDownloadFacilityVendorsExport.core.js +35 -0
- package/dist/esm/react-query/organizationsDownloadFacilityVendorsExport.core.js.map +1 -0
- package/dist/esm/react-query/organizationsDownloadFacilityVendorsExport.d.ts +33 -0
- package/dist/esm/react-query/organizationsDownloadFacilityVendorsExport.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsDownloadFacilityVendorsExport.js +63 -0
- package/dist/esm/react-query/organizationsDownloadFacilityVendorsExport.js.map +1 -0
- package/dist/esm/react-query/organizationsExportFacilityVendors.core.d.ts +19 -0
- package/dist/esm/react-query/organizationsExportFacilityVendors.core.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsExportFacilityVendors.core.js +42 -0
- package/dist/esm/react-query/organizationsExportFacilityVendors.core.js.map +1 -0
- package/dist/esm/react-query/organizationsExportFacilityVendors.d.ts +77 -0
- package/dist/esm/react-query/organizationsExportFacilityVendors.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsExportFacilityVendors.js +87 -0
- package/dist/esm/react-query/organizationsExportFacilityVendors.js.map +1 -0
- package/dist/esm/react-query/organizationsGetFacilityVendorsExportStatus.core.d.ts +13 -0
- package/dist/esm/react-query/organizationsGetFacilityVendorsExportStatus.core.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsGetFacilityVendorsExportStatus.core.js +35 -0
- package/dist/esm/react-query/organizationsGetFacilityVendorsExportStatus.core.js.map +1 -0
- package/dist/esm/react-query/organizationsGetFacilityVendorsExportStatus.d.ts +31 -0
- package/dist/esm/react-query/organizationsGetFacilityVendorsExportStatus.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsGetFacilityVendorsExportStatus.js +61 -0
- package/dist/esm/react-query/organizationsGetFacilityVendorsExportStatus.js.map +1 -0
- package/dist/esm/sdk/organizations.d.ts +38 -0
- package/dist/esm/sdk/organizations.d.ts.map +1 -1
- package/dist/esm/sdk/organizations.js +47 -0
- package/dist/esm/sdk/organizations.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/organizations.test.ts +66 -0
- package/src/__tests__/zones.test.ts +9 -37
- package/src/funcs/organizationsDownloadFacilityVendorsExport.ts +202 -0
- package/src/funcs/organizationsExportFacilityVendors.ts +202 -0
- package/src/funcs/organizationsGetFacilityVendorsExportStatus.ts +188 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/sdks.ts +41 -13
- package/src/models/components/csvexportstatusresponse.ts +79 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/productvariant.ts +10 -0
- package/src/models/operations/downloadfacilityvendorsexport.ts +124 -0
- package/src/models/operations/exportfacilityvendors.ts +206 -0
- package/src/models/operations/getfacilityvendorsexportstatus.ts +47 -0
- package/src/models/operations/index.ts +3 -0
- package/src/react-query/index.ts +3 -0
- package/src/react-query/organizationsDownloadFacilityVendorsExport.core.ts +84 -0
- package/src/react-query/organizationsDownloadFacilityVendorsExport.ts +155 -0
- package/src/react-query/organizationsExportFacilityVendors.core.ts +94 -0
- package/src/react-query/organizationsExportFacilityVendors.ts +200 -0
- package/src/react-query/organizationsGetFacilityVendorsExportStatus.core.ts +84 -0
- package/src/react-query/organizationsGetFacilityVendorsExportStatus.ts +153 -0
- package/src/sdk/organizations.ts +71 -0
package/README.md
CHANGED
|
@@ -243,6 +243,9 @@ run();
|
|
|
243
243
|
* [getCompanyTargetFacilitiesExportStatus](docs/sdks/organizations/README.md#getcompanytargetfacilitiesexportstatus) - Get company target facilities export status
|
|
244
244
|
* [downloadCompanyTargetFacilitiesExport](docs/sdks/organizations/README.md#downloadcompanytargetfacilitiesexport) - Download company target facilities CSV
|
|
245
245
|
* [listFacilityVendors](docs/sdks/organizations/README.md#listfacilityvendors) - List vendors targeting a facility
|
|
246
|
+
* [exportFacilityVendors](docs/sdks/organizations/README.md#exportfacilityvendors) - Export facility vendors to CSV (async)
|
|
247
|
+
* [getFacilityVendorsExportStatus](docs/sdks/organizations/README.md#getfacilityvendorsexportstatus) - Get facility vendors export status
|
|
248
|
+
* [downloadFacilityVendorsExport](docs/sdks/organizations/README.md#downloadfacilityvendorsexport) - Download facility vendors CSV
|
|
246
249
|
* [listOrSearchDepartmentContacts](docs/sdks/organizations/README.md#listorsearchdepartmentcontacts) - List or search department contacts
|
|
247
250
|
|
|
248
251
|
### [PaymentProfile](docs/sdks/paymentprofile/README.md)
|
|
@@ -418,9 +421,12 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
418
421
|
- [`organizationsCreateCompanyTargetFacility`](docs/sdks/organizations/README.md#createcompanytargetfacility) - Add a company target facility
|
|
419
422
|
- [`organizationsDeleteCompanyTargetFacility`](docs/sdks/organizations/README.md#deletecompanytargetfacility) - Remove a company target facility
|
|
420
423
|
- [`organizationsDownloadCompanyTargetFacilitiesExport`](docs/sdks/organizations/README.md#downloadcompanytargetfacilitiesexport) - Download company target facilities CSV
|
|
424
|
+
- [`organizationsDownloadFacilityVendorsExport`](docs/sdks/organizations/README.md#downloadfacilityvendorsexport) - Download facility vendors CSV
|
|
421
425
|
- [`organizationsExportCompanyTargetFacilities`](docs/sdks/organizations/README.md#exportcompanytargetfacilities) - Export company target facilities to CSV (async)
|
|
426
|
+
- [`organizationsExportFacilityVendors`](docs/sdks/organizations/README.md#exportfacilityvendors) - Export facility vendors to CSV (async)
|
|
422
427
|
- [`organizationsGetCompanyTargetFacilitiesExportStatus`](docs/sdks/organizations/README.md#getcompanytargetfacilitiesexportstatus) - Get company target facilities export status
|
|
423
428
|
- [`organizationsGetFacility`](docs/sdks/organizations/README.md#getfacility) - Get facility
|
|
429
|
+
- [`organizationsGetFacilityVendorsExportStatus`](docs/sdks/organizations/README.md#getfacilityvendorsexportstatus) - Get facility vendors export status
|
|
424
430
|
- [`organizationsListCompanyTargetFacilities`](docs/sdks/organizations/README.md#listcompanytargetfacilities) - List company target facilities
|
|
425
431
|
- [`organizationsListFacilityVendors`](docs/sdks/organizations/README.md#listfacilityvendors) - List vendors targeting a facility
|
|
426
432
|
- [`organizationsListOrSearchDepartmentContacts`](docs/sdks/organizations/README.md#listorsearchdepartmentcontacts) - List or search department contacts
|
|
@@ -580,9 +586,12 @@ To learn about this feature and how to get started, check
|
|
|
580
586
|
- [`useOrganizationsCreateCompanyTargetFacilityMutation`](docs/sdks/organizations/README.md#createcompanytargetfacility) - Add a company target facility
|
|
581
587
|
- [`useOrganizationsDeleteCompanyTargetFacilityMutation`](docs/sdks/organizations/README.md#deletecompanytargetfacility) - Remove a company target facility
|
|
582
588
|
- [`useOrganizationsDownloadCompanyTargetFacilitiesExport`](docs/sdks/organizations/README.md#downloadcompanytargetfacilitiesexport) - Download company target facilities CSV
|
|
589
|
+
- [`useOrganizationsDownloadFacilityVendorsExport`](docs/sdks/organizations/README.md#downloadfacilityvendorsexport) - Download facility vendors CSV
|
|
583
590
|
- [`useOrganizationsExportCompanyTargetFacilities`](docs/sdks/organizations/README.md#exportcompanytargetfacilities) - Export company target facilities to CSV (async)
|
|
591
|
+
- [`useOrganizationsExportFacilityVendors`](docs/sdks/organizations/README.md#exportfacilityvendors) - Export facility vendors to CSV (async)
|
|
584
592
|
- [`useOrganizationsGetCompanyTargetFacilitiesExportStatus`](docs/sdks/organizations/README.md#getcompanytargetfacilitiesexportstatus) - Get company target facilities export status
|
|
585
593
|
- [`useOrganizationsGetFacility`](docs/sdks/organizations/README.md#getfacility) - Get facility
|
|
594
|
+
- [`useOrganizationsGetFacilityVendorsExportStatus`](docs/sdks/organizations/README.md#getfacilityvendorsexportstatus) - Get facility vendors export status
|
|
586
595
|
- [`useOrganizationsListCompanyTargetFacilities`](docs/sdks/organizations/README.md#listcompanytargetfacilities) - List company target facilities
|
|
587
596
|
- [`useOrganizationsListFacilityVendors`](docs/sdks/organizations/README.md#listfacilityvendors) - List vendors targeting a facility
|
|
588
597
|
- [`useOrganizationsListOrSearchDepartmentContacts`](docs/sdks/organizations/README.md#listorsearchdepartmentcontacts) - List or search department contacts
|
|
@@ -240,4 +240,61 @@ const testclient_js_1 = require("./testclient.js");
|
|
|
240
240
|
items: [],
|
|
241
241
|
});
|
|
242
242
|
});
|
|
243
|
+
(0, vitest_1.test)("Organizations Export Facility Vendors", async () => {
|
|
244
|
+
const testHttpClient = (0, testclient_js_1.createTestHTTPClient)("exportFacilityVendors");
|
|
245
|
+
const greenSecurity = new index_js_1.GreenSecurity({
|
|
246
|
+
serverURL: process.env["TEST_SERVER_URL"] ?? "https://localhost:3000/api",
|
|
247
|
+
httpClient: testHttpClient,
|
|
248
|
+
security: {
|
|
249
|
+
token: process.env["GREEN_SECURITY_TOKEN"] ?? "value",
|
|
250
|
+
},
|
|
251
|
+
});
|
|
252
|
+
const result = await greenSecurity.organizations.exportFacilityVendors({
|
|
253
|
+
id: 657024,
|
|
254
|
+
});
|
|
255
|
+
(0, vitest_1.expect)(result).toBeDefined();
|
|
256
|
+
(0, vitest_1.expect)(result).toEqual({
|
|
257
|
+
statusUrl: "https://classic-nectarine.net",
|
|
258
|
+
downloadUrl: "https://smooth-custody.org/",
|
|
259
|
+
statusId: "<id>",
|
|
260
|
+
});
|
|
261
|
+
});
|
|
262
|
+
(0, vitest_1.test)("Organizations Get Facility Vendors Export Status", async () => {
|
|
263
|
+
const testHttpClient = (0, testclient_js_1.createTestHTTPClient)("getFacilityVendorsExportStatus");
|
|
264
|
+
const greenSecurity = new index_js_1.GreenSecurity({
|
|
265
|
+
serverURL: process.env["TEST_SERVER_URL"] ?? "https://localhost:3000/api",
|
|
266
|
+
httpClient: testHttpClient,
|
|
267
|
+
security: {
|
|
268
|
+
token: process.env["GREEN_SECURITY_TOKEN"] ?? "value",
|
|
269
|
+
},
|
|
270
|
+
});
|
|
271
|
+
const result = await greenSecurity.organizations
|
|
272
|
+
.getFacilityVendorsExportStatus({
|
|
273
|
+
id: 453991,
|
|
274
|
+
exportId: "<id>",
|
|
275
|
+
});
|
|
276
|
+
(0, vitest_1.expect)(result).toBeDefined();
|
|
277
|
+
(0, vitest_1.expect)(result).toEqual({
|
|
278
|
+
ready: true,
|
|
279
|
+
statusId: "<id>",
|
|
280
|
+
});
|
|
281
|
+
});
|
|
282
|
+
(0, vitest_1.test)("Organizations Download Facility Vendors Export", async () => {
|
|
283
|
+
const testHttpClient = (0, testclient_js_1.createTestHTTPClient)("downloadFacilityVendorsExport");
|
|
284
|
+
const greenSecurity = new index_js_1.GreenSecurity({
|
|
285
|
+
serverURL: process.env["TEST_SERVER_URL"] ?? "https://localhost:3000/api",
|
|
286
|
+
httpClient: testHttpClient,
|
|
287
|
+
security: {
|
|
288
|
+
token: process.env["GREEN_SECURITY_TOKEN"] ?? "value",
|
|
289
|
+
},
|
|
290
|
+
});
|
|
291
|
+
const result = await greenSecurity.organizations
|
|
292
|
+
.downloadFacilityVendorsExport({
|
|
293
|
+
id: 615627,
|
|
294
|
+
exportId: "<id>",
|
|
295
|
+
});
|
|
296
|
+
(0, vitest_1.expect)(result).toBeDefined();
|
|
297
|
+
(0, vitest_1.expect)(result.result).toBeDefined();
|
|
298
|
+
(0, vitest_1.expect)(result.result).toEqual({});
|
|
299
|
+
});
|
|
243
300
|
//# sourceMappingURL=organizations.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.test.js","sourceRoot":"","sources":["../../../src/__tests__/organizations.test.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAEH,mCAAsC;AACtC,0CAA4C;AAC5C,mDAAuD;AAEvD,IAAA,aAAI,EAAC,0CAA0C,EAAE,KAAK,IAAI,EAAE;IAC1D,MAAM,cAAc,GAAG,IAAA,oCAAoB,EAAC,yBAAyB,CAAC,CAAC;IAEvE,MAAM,aAAa,GAAG,IAAI,wBAAa,CAAC;QACtC,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,4BAA4B;QACzE,UAAU,EAAE,cAAc;QAC1B,QAAQ,EAAE;YACR,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,IAAI,OAAO;SACtD;KACF,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,MAAM,aAAa,CAAC,aAAa,CAAC,uBAAuB,CAAC;QACvE,EAAE,EAAE,MAAM;QACV,IAAI,EAAE,KAAK;QACX,IAAI,EAAE,IAAI;QACV,YAAY,EAAE,EAAE;KACjB,CAAC,CAAC;IACH,IAAA,eAAM,EAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC;IAC7B,IAAA,eAAM,EAAC,MAAO,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC;IACrC,IAAA,eAAM,EAAC,MAAO,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AAK,IAAI,EAAE;IACrD,MAAM,cAAc,GAAG,IAAA,oCAAoB,EAAC,qBAAqB,CAAC,CAAC;IAEnE,MAAM,aAAa,GAAG,IAAI,wBAAa,CAAC;QACtC,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,4BAA4B;QACzE,UAAU,EAAE,cAAc;QAC1B,QAAQ,EAAE;YACR,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,IAAI,OAAO;SACtD;KACF,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,MAAM,aAAa,CAAC,aAAa,CAAC,mBAAmB,CAAC;QACnE,EAAE,EAAE,MAAM;QACV,YAAY,EAAE,EAAE;QAChB,IAAI,EAAE,IAAI;KACX,CAAC,CAAC;IACH,IAAA,eAAM,EAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC;IAC7B,IAAA,eAAM,EAAC,MAAO,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC;IACrC,IAAA,eAAM,EAAC,MAAO,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC;QAC7B,KAAK,EAAE;YACL,OAAO,EAAE,wBAAwB;YACjC,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,CAAC;YACP,SAAS,EAAE,GAAG;YACd,YAAY,EAAE,GAAG;YACjB,IAAI,EAAE,CAAC;YACP,YAAY,EAAE,IAAI;SACnB;QACD,KAAK,EAAE,EAAE;KACV,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"organizations.test.js","sourceRoot":"","sources":["../../../src/__tests__/organizations.test.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAEH,mCAAsC;AACtC,0CAA4C;AAC5C,mDAAuD;AAEvD,IAAA,aAAI,EAAC,0CAA0C,EAAE,KAAK,IAAI,EAAE;IAC1D,MAAM,cAAc,GAAG,IAAA,oCAAoB,EAAC,yBAAyB,CAAC,CAAC;IAEvE,MAAM,aAAa,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|
@@ -37,50 +37,19 @@ const testclient_js_1 = require("./testclient.js");
|
|
|
37
37
|
facility: {
|
|
38
38
|
contacts: {
|
|
39
39
|
contact: {
|
|
40
|
-
status: "Active",
|
|
41
|
-
department: 123,
|
|
42
|
-
},
|
|
43
|
-
adminContact: {
|
|
44
|
-
status: "Deleted",
|
|
45
|
-
department: null,
|
|
46
|
-
},
|
|
47
|
-
techContact: {
|
|
48
|
-
status: "Inactive",
|
|
49
|
-
department: 123,
|
|
50
|
-
},
|
|
51
|
-
greenSecurityCsm: {
|
|
52
40
|
status: "Deleted",
|
|
53
41
|
department: 123,
|
|
54
42
|
},
|
|
55
|
-
|
|
56
|
-
status: "Active",
|
|
57
|
-
department: 123,
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
vendorGuestPolicy: {
|
|
61
|
-
enabled: true,
|
|
62
|
-
vendorGuestLimitAndOr: "and",
|
|
63
|
-
vendorGuestRequireEmail: true,
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
facility: {
|
|
69
|
-
contacts: {
|
|
70
|
-
contact: {
|
|
43
|
+
adminContact: {
|
|
71
44
|
status: "Active",
|
|
72
45
|
department: 123,
|
|
73
46
|
},
|
|
74
|
-
adminContact: {
|
|
75
|
-
status: "Deleted",
|
|
76
|
-
department: null,
|
|
77
|
-
},
|
|
78
47
|
techContact: {
|
|
79
|
-
status: "
|
|
48
|
+
status: "Deleted",
|
|
80
49
|
department: 123,
|
|
81
50
|
},
|
|
82
51
|
greenSecurityCsm: {
|
|
83
|
-
status: "
|
|
52
|
+
status: "Inactive",
|
|
84
53
|
department: 123,
|
|
85
54
|
},
|
|
86
55
|
accountManager: {
|
|
@@ -89,12 +58,15 @@ const testclient_js_1 = require("./testclient.js");
|
|
|
89
58
|
},
|
|
90
59
|
},
|
|
91
60
|
vendorGuestPolicy: {
|
|
92
|
-
enabled:
|
|
61
|
+
enabled: false,
|
|
93
62
|
vendorGuestLimitAndOr: "and",
|
|
94
|
-
vendorGuestRequireEmail:
|
|
63
|
+
vendorGuestRequireEmail: false,
|
|
95
64
|
},
|
|
96
65
|
},
|
|
97
66
|
},
|
|
67
|
+
{
|
|
68
|
+
facility: {},
|
|
69
|
+
},
|
|
98
70
|
],
|
|
99
71
|
});
|
|
100
72
|
});
|
|
@@ -109,7 +81,7 @@ const testclient_js_1 = require("./testclient.js");
|
|
|
109
81
|
});
|
|
110
82
|
const result = await greenSecurity.zones.securityZoneCheckin({
|
|
111
83
|
qrCode: "<value>",
|
|
112
|
-
zoneId:
|
|
84
|
+
zoneId: 185875,
|
|
113
85
|
});
|
|
114
86
|
(0, vitest_1.expect)(result).toBeDefined();
|
|
115
87
|
(0, vitest_1.expect)(result).toEqual({});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zones.test.js","sourceRoot":"","sources":["../../../src/__tests__/zones.test.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAEH,mCAAsC;AACtC,0CAA4C;AAC5C,mDAAuD;AAEvD,IAAA,aAAI,EAAC,qCAAqC,EAAE,KAAK,IAAI,EAAE;IACrD,MAAM,cAAc,GAAG,IAAA,oCAAoB,EAAC,2BAA2B,CAAC,CAAC;IAEzE,MAAM,aAAa,GAAG,IAAI,wBAAa,CAAC;QACtC,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,4BAA4B;QACzE,UAAU,EAAE,cAAc;QAC1B,QAAQ,EAAE;YACR,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,IAAI,OAAO;SACtD;KACF,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,MAAM,aAAa,CAAC,KAAK,CAAC,yBAAyB,CAAC;QACjE,IAAI,EAAE,KAAK;QACX,IAAI,EAAE,CAAC;QACP,YAAY,EAAE,EAAE;KACjB,CAAC,CAAC;IACH,IAAA,eAAM,EAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC;IAC7B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AAC,IAAI,OAAO;SACtD;KACF,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,MAAM,aAAa,CAAC,KAAK,CAAC,mBAAmB,CAAC;QAC3D,MAAM,EAAE,SAAS;QACjB,MAAM,EAAE,MAAM;KACf,CAAC,CAAC;IACH,IAAA,eAAM,EAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC;IAC7B,IAAA,eAAM,EAAC,MAAM,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;AAC7B,CAAC,CAAC,CAAC;AAEH,IAAA,aAAI,EAAC,yBAAyB,EAAE,KAAK,IAAI,EAAE;IACzC,MAAM,cAAc,GAAG,IAAA,oCAAoB,EAAC,iBAAiB,CAAC,CAAC;IAE/D,MAAM,aAAa,GAAG,IAAI,wBAAa,CAAC;QACtC,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,4BAA4B;QACzE,UAAU,EAAE,cAAc;QAC1B,QAAQ,EAAE;YACR,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,IAAI,OAAO;SACtD;KACF,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,MAAM,aAAa,CAAC,KAAK,CAAC,eAAe,CAAC;QACvD,EAAE,EAAE,KAAK;KACV,CAAC,CAAC;IACH,IAAA,eAAM,EAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC;IAC7B,IAAA,eAAM,EAAC,MAAM,CAAC,CAAC,OAAO,CAAC;QACrB,QAAQ,EAAE,EAAE;KACb,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { GreenSecurityCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { GreenSecurityError } from "../models/errors/greensecurityerror.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
+
import * as errors from "../models/errors/index.js";
|
|
6
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { APIPromise } from "../types/async.js";
|
|
10
|
+
import { Result } from "../types/fp.js";
|
|
11
|
+
/**
|
|
12
|
+
* Download facility vendors CSV
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Returns the exported facility vendors CSV via a 302 redirect to a short-lived
|
|
16
|
+
* presigned S3 URL. If the export is still being generated, returns 202 with a JSON
|
|
17
|
+
* `{ ready: false }` payload.
|
|
18
|
+
*
|
|
19
|
+
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
20
|
+
*/
|
|
21
|
+
export declare function organizationsDownloadFacilityVendorsExport(client: GreenSecurityCore, request: operations.DownloadFacilityVendorsExportRequest, options?: RequestOptions): APIPromise<Result<operations.DownloadFacilityVendorsExportResponse | undefined, errors.ApiErrorResponse | GreenSecurityError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
22
|
+
//# sourceMappingURL=organizationsDownloadFacilityVendorsExport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organizationsDownloadFacilityVendorsExport.d.ts","sourceRoot":"","sources":["../../../src/funcs/organizationsDownloadFacilityVendorsExport.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAM/C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAGxC;;;;;;;;;GASG;AACH,wBAAgB,0CAA0C,CACxD,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,UAAU,CAAC,oCAAoC,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,qCAAqC,GAAG,SAAS,EAC1D,MAAM,CAAC,gBAAgB,GACvB,kBAAkB,GAClB,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.organizationsDownloadFacilityVendorsExport = organizationsDownloadFacilityVendorsExport;
|
|
40
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
41
|
+
const http_js_1 = require("../lib/http.js");
|
|
42
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
43
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
44
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
45
|
+
const security_js_1 = require("../lib/security.js");
|
|
46
|
+
const url_js_1 = require("../lib/url.js");
|
|
47
|
+
const errors = __importStar(require("../models/errors/index.js"));
|
|
48
|
+
const operations = __importStar(require("../models/operations/index.js"));
|
|
49
|
+
const async_js_1 = require("../types/async.js");
|
|
50
|
+
const types$ = __importStar(require("../types/primitives.js"));
|
|
51
|
+
/**
|
|
52
|
+
* Download facility vendors CSV
|
|
53
|
+
*
|
|
54
|
+
* @remarks
|
|
55
|
+
* Returns the exported facility vendors CSV via a 302 redirect to a short-lived
|
|
56
|
+
* presigned S3 URL. If the export is still being generated, returns 202 with a JSON
|
|
57
|
+
* `{ ready: false }` payload.
|
|
58
|
+
*
|
|
59
|
+
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
60
|
+
*/
|
|
61
|
+
function organizationsDownloadFacilityVendorsExport(client, request, options) {
|
|
62
|
+
return new async_js_1.APIPromise($do(client, request, options));
|
|
63
|
+
}
|
|
64
|
+
async function $do(client, request, options) {
|
|
65
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.DownloadFacilityVendorsExportRequest$outboundSchema.parse(value), "Input validation failed");
|
|
66
|
+
if (!parsed.ok) {
|
|
67
|
+
return [parsed, { status: "invalid" }];
|
|
68
|
+
}
|
|
69
|
+
const payload = parsed.value;
|
|
70
|
+
const body = null;
|
|
71
|
+
const pathParams = {
|
|
72
|
+
export_id: (0, encodings_js_1.encodeSimple)("export_id", payload.export_id, {
|
|
73
|
+
explode: false,
|
|
74
|
+
charEncoding: "percent",
|
|
75
|
+
}),
|
|
76
|
+
id: (0, encodings_js_1.encodeSimple)("id", payload.id, {
|
|
77
|
+
explode: false,
|
|
78
|
+
charEncoding: "percent",
|
|
79
|
+
}),
|
|
80
|
+
};
|
|
81
|
+
const path = (0, url_js_1.pathToFunc)("/facilities/{id}/vendors/export/{export_id}")(pathParams);
|
|
82
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
83
|
+
Accept: "application/json",
|
|
84
|
+
}));
|
|
85
|
+
const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
|
|
86
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput, [1]);
|
|
87
|
+
const context = {
|
|
88
|
+
options: client._options,
|
|
89
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
90
|
+
operationID: "downloadFacilityVendorsExport",
|
|
91
|
+
oAuth2Scopes: null,
|
|
92
|
+
resolvedSecurity: requestSecurity,
|
|
93
|
+
securitySource: client._options.security,
|
|
94
|
+
retryConfig: options?.retries
|
|
95
|
+
|| client._options.retryConfig
|
|
96
|
+
|| { strategy: "none" },
|
|
97
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
98
|
+
};
|
|
99
|
+
const requestRes = client._createRequest(context, {
|
|
100
|
+
security: requestSecurity,
|
|
101
|
+
method: "GET",
|
|
102
|
+
baseURL: options?.serverURL,
|
|
103
|
+
path: path,
|
|
104
|
+
headers: headers,
|
|
105
|
+
body: body,
|
|
106
|
+
userAgent: client._options.userAgent,
|
|
107
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
108
|
+
}, options);
|
|
109
|
+
if (!requestRes.ok) {
|
|
110
|
+
return [requestRes, { status: "invalid" }];
|
|
111
|
+
}
|
|
112
|
+
const req = requestRes.value;
|
|
113
|
+
const doResult = await client._do(req, {
|
|
114
|
+
context,
|
|
115
|
+
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
116
|
+
retryConfig: context.retryConfig,
|
|
117
|
+
retryCodes: context.retryCodes,
|
|
118
|
+
});
|
|
119
|
+
if (!doResult.ok) {
|
|
120
|
+
return [doResult, { status: "request-error", request: req }];
|
|
121
|
+
}
|
|
122
|
+
const response = doResult.value;
|
|
123
|
+
const responseFields = {
|
|
124
|
+
HttpMeta: { Response: response, Request: req },
|
|
125
|
+
};
|
|
126
|
+
const [result] = await M.match(M.json(202, types$.optional(operations.DownloadFacilityVendorsExportResponse$inboundSchema), { key: "Result" }), M.nil(302, types$.optional(operations.DownloadFacilityVendorsExportResponse$inboundSchema), { hdrs: true }), M.jsonErr([400, 401, 403, 404, 422], errors.ApiErrorResponse$inboundSchema), M.fail("4XX"), M.fail([500, "5XX"]))(response, req, { extraFields: responseFields });
|
|
127
|
+
if (!result.ok) {
|
|
128
|
+
return [result, { status: "complete", request: req, response }];
|
|
129
|
+
}
|
|
130
|
+
return [result, { status: "complete", request: req, response }];
|
|
131
|
+
}
|
|
132
|
+
//# sourceMappingURL=organizationsDownloadFacilityVendorsExport.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organizationsDownloadFacilityVendorsExport.js","sourceRoot":"","sources":["../../../src/funcs/organizationsDownloadFacilityVendorsExport.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCH,gGAuBC;AAzDD,sDAAmD;AACnD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAS3C,kEAAoD;AAGpD,0EAA4D;AAC5D,gDAAwD;AAExD,+DAAiD;AAEjD;;;;;;;;;GASG;AACH,SAAgB,0CAA0C,CACxD,MAAyB,EACzB,OAAwD,EACxD,OAAwB;IAexB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAyB,EACzB,OAAwD,EACxD,OAAwB;IAkBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,UAAU,CAAC,mDAAmD,CAAC,KAAK,CAClE,KAAK,CACN,EACH,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IACzC,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAI,CAAC;IAElB,MAAM,UAAU,GAAG;QACjB,SAAS,EAAE,IAAA,2BAAY,EAAC,WAAW,EAAE,OAAO,CAAC,SAAS,EAAE;YACtD,OAAO,EAAE,KAAK;YACd,YAAY,EAAE,SAAS;SACxB,CAAC;QACF,EAAE,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AAU,CAAC,mDAAmD,CAC/D,EACD,EAAE,IAAI,EAAE,IAAI,EAAE,CACf,EACD,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,8BAA8B,CAAC,EAC3E,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CACrB,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { GreenSecurityCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { GreenSecurityError } from "../models/errors/greensecurityerror.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
+
import * as errors from "../models/errors/index.js";
|
|
6
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { APIPromise } from "../types/async.js";
|
|
10
|
+
import { Result } from "../types/fp.js";
|
|
11
|
+
/**
|
|
12
|
+
* Export facility vendors to CSV (async)
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Enqueues an asynchronous job to generate a CSV export of the vendors (vendor reps)
|
|
16
|
+
* targeting the given facility, applying the same access scope and filter parameters as
|
|
17
|
+
* the listing endpoint. The CSV contains: Name, Email, one column per company custom field
|
|
18
|
+
* flagged `show_to_vendor` (e.g. Employee ID), Last Visit, and Status.
|
|
19
|
+
*
|
|
20
|
+
* Returns a `status_url` for polling until the export is ready, along with a `download_url`
|
|
21
|
+
* and `status_id`.
|
|
22
|
+
*
|
|
23
|
+
* Access control mirrors the list endpoint:
|
|
24
|
+
* * Regular users — facility must be in the caller's read scope (via
|
|
25
|
+
* `has_facility_access_policy`); company resolved from the session. Out-of-scope or
|
|
26
|
+
* soft-deleted facilities return `404 Facility not found`.
|
|
27
|
+
* * API users — `company_id` required; both the company AND the facility must be
|
|
28
|
+
* activated for the caller's marketplace app via the join-scoped
|
|
29
|
+
* `MarketplaceAppActivation` check.
|
|
30
|
+
*
|
|
31
|
+
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
32
|
+
*/
|
|
33
|
+
export declare function organizationsExportFacilityVendors(client: GreenSecurityCore, request: operations.ExportFacilityVendorsRequest, options?: RequestOptions): APIPromise<Result<operations.ExportFacilityVendorsResponseBody, errors.ApiErrorResponse | GreenSecurityError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
34
|
+
//# sourceMappingURL=organizationsExportFacilityVendors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organizationsExportFacilityVendors.d.ts","sourceRoot":"","sources":["../../../src/funcs/organizationsExportFacilityVendors.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAM/C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,kCAAkC,CAChD,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,iCAAiC,EAC1C,MAAM,CAAC,gBAAgB,GACvB,kBAAkB,GAClB,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.organizationsExportFacilityVendors = organizationsExportFacilityVendors;
|
|
40
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
41
|
+
const http_js_1 = require("../lib/http.js");
|
|
42
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
43
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
44
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
45
|
+
const security_js_1 = require("../lib/security.js");
|
|
46
|
+
const url_js_1 = require("../lib/url.js");
|
|
47
|
+
const errors = __importStar(require("../models/errors/index.js"));
|
|
48
|
+
const operations = __importStar(require("../models/operations/index.js"));
|
|
49
|
+
const async_js_1 = require("../types/async.js");
|
|
50
|
+
/**
|
|
51
|
+
* Export facility vendors to CSV (async)
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* Enqueues an asynchronous job to generate a CSV export of the vendors (vendor reps)
|
|
55
|
+
* targeting the given facility, applying the same access scope and filter parameters as
|
|
56
|
+
* the listing endpoint. The CSV contains: Name, Email, one column per company custom field
|
|
57
|
+
* flagged `show_to_vendor` (e.g. Employee ID), Last Visit, and Status.
|
|
58
|
+
*
|
|
59
|
+
* Returns a `status_url` for polling until the export is ready, along with a `download_url`
|
|
60
|
+
* and `status_id`.
|
|
61
|
+
*
|
|
62
|
+
* Access control mirrors the list endpoint:
|
|
63
|
+
* * Regular users — facility must be in the caller's read scope (via
|
|
64
|
+
* `has_facility_access_policy`); company resolved from the session. Out-of-scope or
|
|
65
|
+
* soft-deleted facilities return `404 Facility not found`.
|
|
66
|
+
* * API users — `company_id` required; both the company AND the facility must be
|
|
67
|
+
* activated for the caller's marketplace app via the join-scoped
|
|
68
|
+
* `MarketplaceAppActivation` check.
|
|
69
|
+
*
|
|
70
|
+
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
71
|
+
*/
|
|
72
|
+
function organizationsExportFacilityVendors(client, request, options) {
|
|
73
|
+
return new async_js_1.APIPromise($do(client, request, options));
|
|
74
|
+
}
|
|
75
|
+
async function $do(client, request, options) {
|
|
76
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.ExportFacilityVendorsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77
|
+
if (!parsed.ok) {
|
|
78
|
+
return [parsed, { status: "invalid" }];
|
|
79
|
+
}
|
|
80
|
+
const payload = parsed.value;
|
|
81
|
+
const body = null;
|
|
82
|
+
const pathParams = {
|
|
83
|
+
id: (0, encodings_js_1.encodeSimple)("id", payload.id, {
|
|
84
|
+
explode: false,
|
|
85
|
+
charEncoding: "percent",
|
|
86
|
+
}),
|
|
87
|
+
};
|
|
88
|
+
const path = (0, url_js_1.pathToFunc)("/facilities/{id}/vendors/export")(pathParams);
|
|
89
|
+
const query = (0, encodings_js_1.encodeFormQuery)({
|
|
90
|
+
"company_id": payload.company_id,
|
|
91
|
+
"desc": payload.desc,
|
|
92
|
+
"items_per_page": payload.items_per_page,
|
|
93
|
+
"search": payload.search,
|
|
94
|
+
"sort": payload.sort,
|
|
95
|
+
"status": payload.status,
|
|
96
|
+
});
|
|
97
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
98
|
+
Accept: "application/json",
|
|
99
|
+
}));
|
|
100
|
+
const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
|
|
101
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput, [1]);
|
|
102
|
+
const context = {
|
|
103
|
+
options: client._options,
|
|
104
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
105
|
+
operationID: "exportFacilityVendors",
|
|
106
|
+
oAuth2Scopes: null,
|
|
107
|
+
resolvedSecurity: requestSecurity,
|
|
108
|
+
securitySource: client._options.security,
|
|
109
|
+
retryConfig: options?.retries
|
|
110
|
+
|| client._options.retryConfig
|
|
111
|
+
|| { strategy: "none" },
|
|
112
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
113
|
+
};
|
|
114
|
+
const requestRes = client._createRequest(context, {
|
|
115
|
+
security: requestSecurity,
|
|
116
|
+
method: "GET",
|
|
117
|
+
baseURL: options?.serverURL,
|
|
118
|
+
path: path,
|
|
119
|
+
headers: headers,
|
|
120
|
+
query: query,
|
|
121
|
+
body: body,
|
|
122
|
+
userAgent: client._options.userAgent,
|
|
123
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
124
|
+
}, options);
|
|
125
|
+
if (!requestRes.ok) {
|
|
126
|
+
return [requestRes, { status: "invalid" }];
|
|
127
|
+
}
|
|
128
|
+
const req = requestRes.value;
|
|
129
|
+
const doResult = await client._do(req, {
|
|
130
|
+
context,
|
|
131
|
+
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
132
|
+
retryConfig: context.retryConfig,
|
|
133
|
+
retryCodes: context.retryCodes,
|
|
134
|
+
});
|
|
135
|
+
if (!doResult.ok) {
|
|
136
|
+
return [doResult, { status: "request-error", request: req }];
|
|
137
|
+
}
|
|
138
|
+
const response = doResult.value;
|
|
139
|
+
const responseFields = {
|
|
140
|
+
HttpMeta: { Response: response, Request: req },
|
|
141
|
+
};
|
|
142
|
+
const [result] = await M.match(M.json(200, operations.ExportFacilityVendorsResponseBody$inboundSchema), M.jsonErr([400, 401, 403, 404, 422], errors.ApiErrorResponse$inboundSchema), M.fail("4XX"), M.fail([500, "5XX"]))(response, req, { extraFields: responseFields });
|
|
143
|
+
if (!result.ok) {
|
|
144
|
+
return [result, { status: "complete", request: req, response }];
|
|
145
|
+
}
|
|
146
|
+
return [result, { status: "complete", request: req, response }];
|
|
147
|
+
}
|
|
148
|
+
//# sourceMappingURL=organizationsExportFacilityVendors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organizationsExportFacilityVendors.js","sourceRoot":"","sources":["../../../src/funcs/organizationsExportFacilityVendors.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgDH,gFAuBC;AApED,sDAAoE;AACpE,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAS3C,kEAAoD;AAGpD,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,kCAAkC,CAChD,MAAyB,EACzB,OAAgD,EAChD,OAAwB;IAexB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAyB,EACzB,OAAgD,EAChD,OAAwB;IAkBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK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";
|
|
3
|
+
import * as components from "../models/components/index.js";
|
|
4
|
+
import { GreenSecurityError } from "../models/errors/greensecurityerror.js";
|
|
5
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
6
|
+
import * as errors from "../models/errors/index.js";
|
|
7
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
8
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
9
|
+
import * as operations from "../models/operations/index.js";
|
|
10
|
+
import { APIPromise } from "../types/async.js";
|
|
11
|
+
import { Result } from "../types/fp.js";
|
|
12
|
+
/**
|
|
13
|
+
* Get facility vendors export status
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* Poll the state of an asynchronous facility vendors export job. When `ready` is true,
|
|
17
|
+
* the export is complete and can be downloaded via the download endpoint.
|
|
18
|
+
*
|
|
19
|
+
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
20
|
+
*/
|
|
21
|
+
export declare function organizationsGetFacilityVendorsExportStatus(client: GreenSecurityCore, request: operations.GetFacilityVendorsExportStatusRequest, options?: RequestOptions): APIPromise<Result<components.CsvExportStatusResponse, errors.ApiErrorResponse | GreenSecurityError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
22
|
+
//# sourceMappingURL=organizationsGetFacilityVendorsExportStatus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organizationsGetFacilityVendorsExportStatus.d.ts","sourceRoot":"","sources":["../../../src/funcs/organizationsGetFacilityVendorsExportStatus.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAM/C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;;GAQG;AACH,wBAAgB,2CAA2C,CACzD,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,UAAU,CAAC,qCAAqC,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,uBAAuB,EAChC,MAAM,CAAC,gBAAgB,GACvB,kBAAkB,GAClB,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|