@greensecurity/javascript-sdk 0.44.0-beta.18 → 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__/webhooks.test.js +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
- package/dist/commonjs/__tests__/zones.test.js +27 -6
- 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 +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- 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/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__/webhooks.test.js +1 -1
- package/dist/esm/__tests__/webhooks.test.js.map +1 -1
- package/dist/esm/__tests__/zones.test.js +27 -6
- 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 +2 -2
- package/dist/esm/lib/config.js +2 -2
- 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/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__/webhooks.test.ts +1 -1
- package/src/__tests__/zones.test.ts +27 -6
- 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 +2 -2
- package/src/models/components/csvexportstatusresponse.ts +79 -0
- package/src/models/components/index.ts +1 -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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.test.js","sourceRoot":"","sources":["../../../src/__tests__/webhooks.test.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD,IAAI,CAAC,qCAAqC,EAAE,KAAK,IAAI,EAAE;IACrD,MAAM,cAAc,GAAG,oBAAoB,CAAC,yBAAyB,CAAC,CAAC;IAEvE,MAAM,aAAa,GAAG,IAAI,aAAa,CAAC;QACtC,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,4BAA4B;QACzE,QAAQ,EAAE;YACR,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,IAAI,SAAS;SACtD;QACD,UAAU,EAAE,cAAc;KAC3B,CAAC,CAAC;IAEH,MAAM,kCAAkC,GAAG,MAAM,aAAa,CAAC,QAAQ;SACpE,uBAAuB,CAAC;QACvB,YAAY,EAAE,EAAE;QAChB,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"webhooks.test.js","sourceRoot":"","sources":["../../../src/__tests__/webhooks.test.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD,IAAI,CAAC,qCAAqC,EAAE,KAAK,IAAI,EAAE;IACrD,MAAM,cAAc,GAAG,oBAAoB,CAAC,yBAAyB,CAAC,CAAC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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,QAAQ;SACxC,uCAAuC,CAAC;QACvC,EAAE,EAAE,MAAM;QACV,eAAe,EAAE;YACf,EAAE,EAAE,CAAC;YACL,UAAU,EAAE,sCAAsC;YAClD,aAAa,EAAE;gBACb,WAAW;gBACX,WAAW;aACZ;YACD,SAAS,EAAE;gBACT,QAAQ,EAAE,CAAC;gBACX,UAAU,EAAE,CAAC;gBACb,SAAS,EAAE,CAAC;gBACZ,MAAM,EAAE,CAAC;aACV;SACF;KACF,CAAC,CAAC;IACL,MAAM,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC;IAC7B,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC;QACrB,EAAE,EAAE,CAAC;QACL,UAAU,EAAE,sCAAsC;QAClD,aAAa,EAAE,iBAAiB;QAChC,aAAa,EAAE;YACb,WAAW;YACX,WAAW;SACZ;QACD,SAAS,EAAE;YACT,QAAQ,EAAE,CAAC;YACX,UAAU,EAAE,CAAC;YACb,SAAS,EAAE,CAAC;YACZ,MAAM,EAAE,CAAC;SACV;KACF,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -31,19 +31,40 @@ test("Zones List Or Search Security Zones", async () => {
|
|
|
31
31
|
useUrlParams: false,
|
|
32
32
|
},
|
|
33
33
|
items: [
|
|
34
|
-
{
|
|
35
|
-
facility: {},
|
|
36
|
-
},
|
|
37
34
|
{
|
|
38
35
|
facility: {
|
|
39
|
-
contacts:
|
|
36
|
+
contacts: {
|
|
37
|
+
contact: {
|
|
38
|
+
status: "Deleted",
|
|
39
|
+
department: 123,
|
|
40
|
+
},
|
|
41
|
+
adminContact: {
|
|
42
|
+
status: "Active",
|
|
43
|
+
department: 123,
|
|
44
|
+
},
|
|
45
|
+
techContact: {
|
|
46
|
+
status: "Deleted",
|
|
47
|
+
department: 123,
|
|
48
|
+
},
|
|
49
|
+
greenSecurityCsm: {
|
|
50
|
+
status: "Inactive",
|
|
51
|
+
department: 123,
|
|
52
|
+
},
|
|
53
|
+
accountManager: {
|
|
54
|
+
status: "Active",
|
|
55
|
+
department: 123,
|
|
56
|
+
},
|
|
57
|
+
},
|
|
40
58
|
vendorGuestPolicy: {
|
|
41
|
-
enabled:
|
|
59
|
+
enabled: false,
|
|
42
60
|
vendorGuestLimitAndOr: "and",
|
|
43
61
|
vendorGuestRequireEmail: false,
|
|
44
62
|
},
|
|
45
63
|
},
|
|
46
64
|
},
|
|
65
|
+
{
|
|
66
|
+
facility: {},
|
|
67
|
+
},
|
|
47
68
|
],
|
|
48
69
|
});
|
|
49
70
|
});
|
|
@@ -58,7 +79,7 @@ test("Zones Security Zone Checkin", async () => {
|
|
|
58
79
|
});
|
|
59
80
|
const result = await greenSecurity.zones.securityZoneCheckin({
|
|
60
81
|
qrCode: "<value>",
|
|
61
|
-
zoneId:
|
|
82
|
+
zoneId: 185875,
|
|
62
83
|
});
|
|
63
84
|
expect(result).toBeDefined();
|
|
64
85
|
expect(result).toEqual({});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zones.test.js","sourceRoot":"","sources":["../../../src/__tests__/zones.test.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD,IAAI,CAAC,qCAAqC,EAAE,KAAK,IAAI,EAAE;IACrD,MAAM,cAAc,GAAG,oBAAoB,CAAC,2BAA2B,CAAC,CAAC;IAEzE,MAAM,aAAa,GAAG,IAAI,aAAa,C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M,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC;IAC7B,MAAM,CAAC,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,96 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
5
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
6
|
+
import * as M from "../lib/matchers.js";
|
|
7
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
|
+
import { safeParse } from "../lib/schemas.js";
|
|
9
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
10
|
+
import { pathToFunc } from "../lib/url.js";
|
|
11
|
+
import * as errors from "../models/errors/index.js";
|
|
12
|
+
import * as operations from "../models/operations/index.js";
|
|
13
|
+
import { APIPromise } from "../types/async.js";
|
|
14
|
+
import * as types$ from "../types/primitives.js";
|
|
15
|
+
/**
|
|
16
|
+
* Download facility vendors CSV
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* Returns the exported facility vendors CSV via a 302 redirect to a short-lived
|
|
20
|
+
* presigned S3 URL. If the export is still being generated, returns 202 with a JSON
|
|
21
|
+
* `{ ready: false }` payload.
|
|
22
|
+
*
|
|
23
|
+
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
24
|
+
*/
|
|
25
|
+
export function organizationsDownloadFacilityVendorsExport(client, request, options) {
|
|
26
|
+
return new APIPromise($do(client, request, options));
|
|
27
|
+
}
|
|
28
|
+
async function $do(client, request, options) {
|
|
29
|
+
const parsed = safeParse(request, (value) => operations.DownloadFacilityVendorsExportRequest$outboundSchema.parse(value), "Input validation failed");
|
|
30
|
+
if (!parsed.ok) {
|
|
31
|
+
return [parsed, { status: "invalid" }];
|
|
32
|
+
}
|
|
33
|
+
const payload = parsed.value;
|
|
34
|
+
const body = null;
|
|
35
|
+
const pathParams = {
|
|
36
|
+
export_id: encodeSimple("export_id", payload.export_id, {
|
|
37
|
+
explode: false,
|
|
38
|
+
charEncoding: "percent",
|
|
39
|
+
}),
|
|
40
|
+
id: encodeSimple("id", payload.id, {
|
|
41
|
+
explode: false,
|
|
42
|
+
charEncoding: "percent",
|
|
43
|
+
}),
|
|
44
|
+
};
|
|
45
|
+
const path = pathToFunc("/facilities/{id}/vendors/export/{export_id}")(pathParams);
|
|
46
|
+
const headers = new Headers(compactMap({
|
|
47
|
+
Accept: "application/json",
|
|
48
|
+
}));
|
|
49
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
50
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [1]);
|
|
51
|
+
const context = {
|
|
52
|
+
options: client._options,
|
|
53
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
54
|
+
operationID: "downloadFacilityVendorsExport",
|
|
55
|
+
oAuth2Scopes: null,
|
|
56
|
+
resolvedSecurity: requestSecurity,
|
|
57
|
+
securitySource: client._options.security,
|
|
58
|
+
retryConfig: options?.retries
|
|
59
|
+
|| client._options.retryConfig
|
|
60
|
+
|| { strategy: "none" },
|
|
61
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
62
|
+
};
|
|
63
|
+
const requestRes = client._createRequest(context, {
|
|
64
|
+
security: requestSecurity,
|
|
65
|
+
method: "GET",
|
|
66
|
+
baseURL: options?.serverURL,
|
|
67
|
+
path: path,
|
|
68
|
+
headers: headers,
|
|
69
|
+
body: body,
|
|
70
|
+
userAgent: client._options.userAgent,
|
|
71
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
72
|
+
}, options);
|
|
73
|
+
if (!requestRes.ok) {
|
|
74
|
+
return [requestRes, { status: "invalid" }];
|
|
75
|
+
}
|
|
76
|
+
const req = requestRes.value;
|
|
77
|
+
const doResult = await client._do(req, {
|
|
78
|
+
context,
|
|
79
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
80
|
+
retryConfig: context.retryConfig,
|
|
81
|
+
retryCodes: context.retryCodes,
|
|
82
|
+
});
|
|
83
|
+
if (!doResult.ok) {
|
|
84
|
+
return [doResult, { status: "request-error", request: req }];
|
|
85
|
+
}
|
|
86
|
+
const response = doResult.value;
|
|
87
|
+
const responseFields = {
|
|
88
|
+
HttpMeta: { Response: response, Request: req },
|
|
89
|
+
};
|
|
90
|
+
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 });
|
|
91
|
+
if (!result.ok) {
|
|
92
|
+
return [result, { status: "complete", request: req, response }];
|
|
93
|
+
}
|
|
94
|
+
return [result, { status: "complete", request: req, response }];
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=organizationsDownloadFacilityVendorsExport.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organizationsDownloadFacilityVendorsExport.js","sourceRoot":"","sources":["../../../src/funcs/organizationsDownloadFacilityVendorsExport.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAS3C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAGpD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAExD,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AAEjD;;;;;;;;;GASG;AACH,MAAM,UAAU,0CAA0C,CACxD,MAAyB,EACzB,OAAwD,EACxD,OAAwB;IAexB,OAAO,IAAI,UAAU,CAAC,GAAG,CACvB,MAAM,EAC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Q,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,112 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
5
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
6
|
+
import * as M from "../lib/matchers.js";
|
|
7
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
|
+
import { safeParse } from "../lib/schemas.js";
|
|
9
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
10
|
+
import { pathToFunc } from "../lib/url.js";
|
|
11
|
+
import * as errors from "../models/errors/index.js";
|
|
12
|
+
import * as operations from "../models/operations/index.js";
|
|
13
|
+
import { APIPromise } from "../types/async.js";
|
|
14
|
+
/**
|
|
15
|
+
* Export facility vendors to CSV (async)
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* Enqueues an asynchronous job to generate a CSV export of the vendors (vendor reps)
|
|
19
|
+
* targeting the given facility, applying the same access scope and filter parameters as
|
|
20
|
+
* the listing endpoint. The CSV contains: Name, Email, one column per company custom field
|
|
21
|
+
* flagged `show_to_vendor` (e.g. Employee ID), Last Visit, and Status.
|
|
22
|
+
*
|
|
23
|
+
* Returns a `status_url` for polling until the export is ready, along with a `download_url`
|
|
24
|
+
* and `status_id`.
|
|
25
|
+
*
|
|
26
|
+
* Access control mirrors the list endpoint:
|
|
27
|
+
* * Regular users — facility must be in the caller's read scope (via
|
|
28
|
+
* `has_facility_access_policy`); company resolved from the session. Out-of-scope or
|
|
29
|
+
* soft-deleted facilities return `404 Facility not found`.
|
|
30
|
+
* * API users — `company_id` required; both the company AND the facility must be
|
|
31
|
+
* activated for the caller's marketplace app via the join-scoped
|
|
32
|
+
* `MarketplaceAppActivation` check.
|
|
33
|
+
*
|
|
34
|
+
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
35
|
+
*/
|
|
36
|
+
export function organizationsExportFacilityVendors(client, request, options) {
|
|
37
|
+
return new APIPromise($do(client, request, options));
|
|
38
|
+
}
|
|
39
|
+
async function $do(client, request, options) {
|
|
40
|
+
const parsed = safeParse(request, (value) => operations.ExportFacilityVendorsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
41
|
+
if (!parsed.ok) {
|
|
42
|
+
return [parsed, { status: "invalid" }];
|
|
43
|
+
}
|
|
44
|
+
const payload = parsed.value;
|
|
45
|
+
const body = null;
|
|
46
|
+
const pathParams = {
|
|
47
|
+
id: encodeSimple("id", payload.id, {
|
|
48
|
+
explode: false,
|
|
49
|
+
charEncoding: "percent",
|
|
50
|
+
}),
|
|
51
|
+
};
|
|
52
|
+
const path = pathToFunc("/facilities/{id}/vendors/export")(pathParams);
|
|
53
|
+
const query = encodeFormQuery({
|
|
54
|
+
"company_id": payload.company_id,
|
|
55
|
+
"desc": payload.desc,
|
|
56
|
+
"items_per_page": payload.items_per_page,
|
|
57
|
+
"search": payload.search,
|
|
58
|
+
"sort": payload.sort,
|
|
59
|
+
"status": payload.status,
|
|
60
|
+
});
|
|
61
|
+
const headers = new Headers(compactMap({
|
|
62
|
+
Accept: "application/json",
|
|
63
|
+
}));
|
|
64
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
65
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [1]);
|
|
66
|
+
const context = {
|
|
67
|
+
options: client._options,
|
|
68
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
69
|
+
operationID: "exportFacilityVendors",
|
|
70
|
+
oAuth2Scopes: null,
|
|
71
|
+
resolvedSecurity: requestSecurity,
|
|
72
|
+
securitySource: client._options.security,
|
|
73
|
+
retryConfig: options?.retries
|
|
74
|
+
|| client._options.retryConfig
|
|
75
|
+
|| { strategy: "none" },
|
|
76
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
77
|
+
};
|
|
78
|
+
const requestRes = client._createRequest(context, {
|
|
79
|
+
security: requestSecurity,
|
|
80
|
+
method: "GET",
|
|
81
|
+
baseURL: options?.serverURL,
|
|
82
|
+
path: path,
|
|
83
|
+
headers: headers,
|
|
84
|
+
query: query,
|
|
85
|
+
body: body,
|
|
86
|
+
userAgent: client._options.userAgent,
|
|
87
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
88
|
+
}, options);
|
|
89
|
+
if (!requestRes.ok) {
|
|
90
|
+
return [requestRes, { status: "invalid" }];
|
|
91
|
+
}
|
|
92
|
+
const req = requestRes.value;
|
|
93
|
+
const doResult = await client._do(req, {
|
|
94
|
+
context,
|
|
95
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
96
|
+
retryConfig: context.retryConfig,
|
|
97
|
+
retryCodes: context.retryCodes,
|
|
98
|
+
});
|
|
99
|
+
if (!doResult.ok) {
|
|
100
|
+
return [doResult, { status: "request-error", request: req }];
|
|
101
|
+
}
|
|
102
|
+
const response = doResult.value;
|
|
103
|
+
const responseFields = {
|
|
104
|
+
HttpMeta: { Response: response, Request: req },
|
|
105
|
+
};
|
|
106
|
+
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 });
|
|
107
|
+
if (!result.ok) {
|
|
108
|
+
return [result, { status: "complete", request: req, response }];
|
|
109
|
+
}
|
|
110
|
+
return [result, { status: "complete", request: req, response }];
|
|
111
|
+
}
|
|
112
|
+
//# sourceMappingURL=organizationsExportFacilityVendors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organizationsExportFacilityVendors.js","sourceRoot":"","sources":["../../../src/funcs/organizationsExportFacilityVendors.ts"],"names":[],"mappings":"A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AG,MAAM,CAAC,CAAC,KAAK,CAY5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,+CAA+C,CAAC,EACvE,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,22 @@
|
|
|
1
|
+
import { GreenSecurityCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
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"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
5
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
6
|
+
import * as M from "../lib/matchers.js";
|
|
7
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
|
+
import { safeParse } from "../lib/schemas.js";
|
|
9
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
10
|
+
import { pathToFunc } from "../lib/url.js";
|
|
11
|
+
import * as components from "../models/components/index.js";
|
|
12
|
+
import * as errors from "../models/errors/index.js";
|
|
13
|
+
import * as operations from "../models/operations/index.js";
|
|
14
|
+
import { APIPromise } from "../types/async.js";
|
|
15
|
+
/**
|
|
16
|
+
* Get facility vendors export status
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* Poll the state of an asynchronous facility vendors export job. When `ready` is true,
|
|
20
|
+
* the export is complete and can be downloaded via the download endpoint.
|
|
21
|
+
*
|
|
22
|
+
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
23
|
+
*/
|
|
24
|
+
export function organizationsGetFacilityVendorsExportStatus(client, request, options) {
|
|
25
|
+
return new APIPromise($do(client, request, options));
|
|
26
|
+
}
|
|
27
|
+
async function $do(client, request, options) {
|
|
28
|
+
const parsed = safeParse(request, (value) => operations.GetFacilityVendorsExportStatusRequest$outboundSchema.parse(value), "Input validation failed");
|
|
29
|
+
if (!parsed.ok) {
|
|
30
|
+
return [parsed, { status: "invalid" }];
|
|
31
|
+
}
|
|
32
|
+
const payload = parsed.value;
|
|
33
|
+
const body = null;
|
|
34
|
+
const pathParams = {
|
|
35
|
+
export_id: encodeSimple("export_id", payload.export_id, {
|
|
36
|
+
explode: false,
|
|
37
|
+
charEncoding: "percent",
|
|
38
|
+
}),
|
|
39
|
+
id: encodeSimple("id", payload.id, {
|
|
40
|
+
explode: false,
|
|
41
|
+
charEncoding: "percent",
|
|
42
|
+
}),
|
|
43
|
+
};
|
|
44
|
+
const path = pathToFunc("/facilities/{id}/vendors/export/status/{export_id}")(pathParams);
|
|
45
|
+
const headers = new Headers(compactMap({
|
|
46
|
+
Accept: "application/json",
|
|
47
|
+
}));
|
|
48
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
49
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [1]);
|
|
50
|
+
const context = {
|
|
51
|
+
options: client._options,
|
|
52
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
53
|
+
operationID: "getFacilityVendorsExportStatus",
|
|
54
|
+
oAuth2Scopes: null,
|
|
55
|
+
resolvedSecurity: requestSecurity,
|
|
56
|
+
securitySource: client._options.security,
|
|
57
|
+
retryConfig: options?.retries
|
|
58
|
+
|| client._options.retryConfig
|
|
59
|
+
|| { strategy: "none" },
|
|
60
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
61
|
+
};
|
|
62
|
+
const requestRes = client._createRequest(context, {
|
|
63
|
+
security: requestSecurity,
|
|
64
|
+
method: "GET",
|
|
65
|
+
baseURL: options?.serverURL,
|
|
66
|
+
path: path,
|
|
67
|
+
headers: headers,
|
|
68
|
+
body: body,
|
|
69
|
+
userAgent: client._options.userAgent,
|
|
70
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
71
|
+
}, options);
|
|
72
|
+
if (!requestRes.ok) {
|
|
73
|
+
return [requestRes, { status: "invalid" }];
|
|
74
|
+
}
|
|
75
|
+
const req = requestRes.value;
|
|
76
|
+
const doResult = await client._do(req, {
|
|
77
|
+
context,
|
|
78
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
79
|
+
retryConfig: context.retryConfig,
|
|
80
|
+
retryCodes: context.retryCodes,
|
|
81
|
+
});
|
|
82
|
+
if (!doResult.ok) {
|
|
83
|
+
return [doResult, { status: "request-error", request: req }];
|
|
84
|
+
}
|
|
85
|
+
const response = doResult.value;
|
|
86
|
+
const responseFields = {
|
|
87
|
+
HttpMeta: { Response: response, Request: req },
|
|
88
|
+
};
|
|
89
|
+
const [result] = await M.match(M.json(200, components.CsvExportStatusResponse$inboundSchema), M.jsonErr([400, 401, 403, 404, 422], errors.ApiErrorResponse$inboundSchema), M.fail("4XX"), M.fail([500, "5XX"]))(response, req, { extraFields: responseFields });
|
|
90
|
+
if (!result.ok) {
|
|
91
|
+
return [result, { status: "complete", request: req, response }];
|
|
92
|
+
}
|
|
93
|
+
return [result, { status: "complete", request: req, response }];
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=organizationsGetFacilityVendorsExportStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organizationsGetFacilityVendorsExportStatus.js","sourceRoot":"","sources":["../../../src/funcs/organizationsGetFacilityVendorsExportStatus.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;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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"}
|
package/dist/esm/lib/config.d.ts
CHANGED
|
@@ -35,8 +35,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
35
35
|
export declare const SDK_METADATA: {
|
|
36
36
|
readonly language: "typescript";
|
|
37
37
|
readonly openapiDocVersion: "0.43.5";
|
|
38
|
-
readonly sdkVersion: "0.44.0-beta.
|
|
38
|
+
readonly sdkVersion: "0.44.0-beta.19";
|
|
39
39
|
readonly genVersion: "2.900.1";
|
|
40
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.44.0-beta.
|
|
40
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.44.0-beta.19 2.900.1 0.43.5 @greensecurity/javascript-sdk";
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/esm/lib/config.js
CHANGED
|
@@ -39,8 +39,8 @@ export function serverURLFromOptions(options) {
|
|
|
39
39
|
export const SDK_METADATA = {
|
|
40
40
|
language: "typescript",
|
|
41
41
|
openapiDocVersion: "0.43.5",
|
|
42
|
-
sdkVersion: "0.44.0-beta.
|
|
42
|
+
sdkVersion: "0.44.0-beta.19",
|
|
43
43
|
genVersion: "2.900.1",
|
|
44
|
-
userAgent: "speakeasy-sdk/typescript 0.44.0-beta.
|
|
44
|
+
userAgent: "speakeasy-sdk/typescript 0.44.0-beta.19 2.900.1 0.43.5 @greensecurity/javascript-sdk",
|
|
45
45
|
};
|
|
46
46
|
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
/**
|
|
5
|
+
* Returned when polling the status of an asynchronous CSV export job. When `ready` is true,
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* the export is complete and can be downloaded via the URL in `download_url`.
|
|
9
|
+
*/
|
|
10
|
+
export type CsvExportStatusResponse = {
|
|
11
|
+
/**
|
|
12
|
+
* When true, the export is ready for download.
|
|
13
|
+
*/
|
|
14
|
+
ready: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* The export job identifier.
|
|
17
|
+
*/
|
|
18
|
+
statusId: string;
|
|
19
|
+
/**
|
|
20
|
+
* URL to download the CSV (present only when `ready` is true).
|
|
21
|
+
*/
|
|
22
|
+
downloadUrl?: string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* When the export job completed.
|
|
25
|
+
*/
|
|
26
|
+
finishedAt?: string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* When the export job started.
|
|
29
|
+
*/
|
|
30
|
+
startedAt?: string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Timestamp of the last progress heartbeat from the background job. Updated on each pagination loop while the job is running; on completion or failure it equals `finished_at`.
|
|
33
|
+
*/
|
|
34
|
+
heartbeat?: string | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Error message if the export failed.
|
|
37
|
+
*/
|
|
38
|
+
error?: string | undefined;
|
|
39
|
+
};
|
|
40
|
+
/** @internal */
|
|
41
|
+
export declare const CsvExportStatusResponse$inboundSchema: z.ZodType<CsvExportStatusResponse, z.ZodTypeDef, unknown>;
|
|
42
|
+
export declare function csvExportStatusResponseFromJSON(jsonString: string): SafeParseResult<CsvExportStatusResponse, SDKValidationError>;
|
|
43
|
+
//# sourceMappingURL=csvexportstatusresponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"csvexportstatusresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/csvexportstatusresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;;;;GAKG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,OAAO,CAgBP,CAAC;AAEH,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,uBAAuB,EAAE,kBAAkB,CAAC,CAM9D"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v3";
|
|
5
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import * as types from "../../types/primitives.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const CsvExportStatusResponse$inboundSchema = z.object({
|
|
10
|
+
ready: types.boolean(),
|
|
11
|
+
status_id: types.string(),
|
|
12
|
+
download_url: types.optional(types.string()),
|
|
13
|
+
finished_at: types.optional(types.string()),
|
|
14
|
+
started_at: types.optional(types.string()),
|
|
15
|
+
heartbeat: types.optional(types.string()),
|
|
16
|
+
error: types.optional(types.string()),
|
|
17
|
+
}).transform((v) => {
|
|
18
|
+
return remap$(v, {
|
|
19
|
+
"status_id": "statusId",
|
|
20
|
+
"download_url": "downloadUrl",
|
|
21
|
+
"finished_at": "finishedAt",
|
|
22
|
+
"started_at": "startedAt",
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
export function csvExportStatusResponseFromJSON(jsonString) {
|
|
26
|
+
return safeParse(jsonString, (x) => CsvExportStatusResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CsvExportStatusResponse' from JSON`);
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=csvexportstatusresponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"csvexportstatusresponse.js","sourceRoot":"","sources":["../../../../src/models/components/csvexportstatusresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AAwCnD,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC,GAI9C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE;IACtB,SAAS,EAAE,KAAK,CAAC,MAAM,EAAE;IACzB,YAAY,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IAC5C,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IAC3C,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IAC1C,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IACzC,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;CACtC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,WAAW,EAAE,UAAU;QACvB,cAAc,EAAE,aAAa;QAC7B,aAAa,EAAE,YAAY;QAC3B,YAAY,EAAE,WAAW;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,+BAA+B,CAC7C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qCAAqC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjE,qDAAqD,CACtD,CAAC;AACJ,CAAC"}
|
|
@@ -16,6 +16,7 @@ export * from "./credentialdocument.js";
|
|
|
16
16
|
export * from "./credentialstatus.js";
|
|
17
17
|
export * from "./credit.js";
|
|
18
18
|
export * from "./csvexportenqueuedresponse.js";
|
|
19
|
+
export * from "./csvexportstatusresponse.js";
|
|
19
20
|
export * from "./datarequest.js";
|
|
20
21
|
export * from "./deleteapiresponse.js";
|
|
21
22
|
export * from "./department.js";
|