@greensecurity/javascript-sdk 0.44.0-beta.11 → 0.44.0-beta.13
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 +18 -9
- package/dist/commonjs/__tests__/invoices.test.js +3 -1
- package/dist/commonjs/__tests__/invoices.test.js.map +1 -1
- package/dist/commonjs/__tests__/organizations.test.js +34 -42
- package/dist/commonjs/__tests__/organizations.test.js.map +1 -1
- package/dist/commonjs/__tests__/vendors.test.js +3 -1
- package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
- package/dist/commonjs/__tests__/vendorscans.test.js +57 -0
- package/dist/commonjs/__tests__/vendorscans.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 +14 -11
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/funcs/invoicesInvoicesExport.d.ts +2 -1
- package/dist/commonjs/funcs/invoicesInvoicesExport.d.ts.map +1 -1
- package/dist/commonjs/funcs/invoicesInvoicesExport.js +2 -1
- package/dist/commonjs/funcs/invoicesInvoicesExport.js.map +1 -1
- package/dist/commonjs/funcs/organizationsDownloadCompanyTargetFacilitiesExport.d.ts +21 -0
- package/dist/commonjs/funcs/organizationsDownloadCompanyTargetFacilitiesExport.d.ts.map +1 -0
- package/dist/commonjs/funcs/{organizationsDeleteCompanyTargetFacility.js → organizationsDownloadCompanyTargetFacilitiesExport.js} +12 -18
- package/dist/commonjs/funcs/organizationsDownloadCompanyTargetFacilitiesExport.js.map +1 -0
- package/dist/commonjs/funcs/organizationsExportCompanyTargetFacilities.d.ts +27 -0
- package/dist/commonjs/funcs/organizationsExportCompanyTargetFacilities.d.ts.map +1 -0
- package/dist/commonjs/funcs/{organizationsCreateCompanyTargetFacility.js → organizationsExportCompanyTargetFacilities.js} +24 -27
- package/dist/commonjs/funcs/organizationsExportCompanyTargetFacilities.js.map +1 -0
- package/dist/commonjs/funcs/organizationsGetCompanyTargetFacilitiesExportStatus.d.ts +21 -0
- package/dist/commonjs/funcs/organizationsGetCompanyTargetFacilitiesExportStatus.d.ts.map +1 -0
- package/dist/commonjs/funcs/{organizationsListCompanyTargetFacilities.js → organizationsGetCompanyTargetFacilitiesExportStatus.js} +21 -83
- package/dist/commonjs/funcs/organizationsGetCompanyTargetFacilitiesExportStatus.js.map +1 -0
- package/dist/commonjs/funcs/vendorScansDownloadVendorScansExport.d.ts +27 -0
- package/dist/commonjs/funcs/vendorScansDownloadVendorScansExport.d.ts.map +1 -0
- package/dist/commonjs/funcs/vendorScansDownloadVendorScansExport.js +134 -0
- package/dist/commonjs/funcs/vendorScansDownloadVendorScansExport.js.map +1 -0
- package/dist/commonjs/funcs/vendorScansExportVendorScans.d.ts +27 -0
- package/dist/commonjs/funcs/vendorScansExportVendorScans.d.ts.map +1 -0
- package/dist/commonjs/funcs/vendorScansExportVendorScans.js +141 -0
- package/dist/commonjs/funcs/vendorScansExportVendorScans.js.map +1 -0
- package/dist/commonjs/funcs/vendorScansGetVendorScansExportStatus.d.ts +21 -0
- package/dist/commonjs/funcs/vendorScansGetVendorScansExportStatus.d.ts.map +1 -0
- package/dist/commonjs/funcs/vendorScansGetVendorScansExportStatus.js +126 -0
- package/dist/commonjs/funcs/vendorScansGetVendorScansExportStatus.js.map +1 -0
- package/dist/commonjs/funcs/vendorsVendorsExport.d.ts +2 -1
- package/dist/commonjs/funcs/vendorsVendorsExport.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsVendorsExport.js +2 -1
- package/dist/commonjs/funcs/vendorsVendorsExport.js.map +1 -1
- package/dist/commonjs/hooks/types.d.ts +1 -0
- package/dist/commonjs/hooks/types.d.ts.map +1 -1
- package/dist/commonjs/lib/config.d.ts +4 -4
- package/dist/commonjs/lib/config.js +4 -4
- package/dist/commonjs/lib/sdks.d.ts.map +1 -1
- package/dist/commonjs/lib/sdks.js +13 -4
- package/dist/commonjs/lib/sdks.js.map +1 -1
- package/dist/commonjs/models/components/csvexportenqueuedresponse.d.ts +27 -0
- package/dist/commonjs/models/components/csvexportenqueuedresponse.d.ts.map +1 -0
- package/dist/commonjs/models/{operations/deletecompanytargetfacility.js → components/csvexportenqueuedresponse.js} +14 -9
- package/dist/commonjs/models/components/csvexportenqueuedresponse.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +1 -1
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -1
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/operations/downloadcompanytargetfacilitiesexport.d.ts +47 -0
- package/dist/commonjs/models/operations/downloadcompanytargetfacilitiesexport.d.ts.map +1 -0
- package/dist/commonjs/models/operations/downloadcompanytargetfacilitiesexport.js +80 -0
- package/dist/commonjs/models/operations/downloadcompanytargetfacilitiesexport.js.map +1 -0
- package/dist/commonjs/models/operations/downloadvendorscansexport.d.ts +46 -0
- package/dist/commonjs/models/operations/downloadvendorscansexport.d.ts.map +1 -0
- package/dist/commonjs/models/operations/downloadvendorscansexport.js +88 -0
- package/dist/commonjs/models/operations/downloadvendorscansexport.js.map +1 -0
- package/dist/commonjs/models/operations/exportcompanytargetfacilities.d.ts +144 -0
- package/dist/commonjs/models/operations/exportcompanytargetfacilities.d.ts.map +1 -0
- package/dist/commonjs/models/operations/{listcompanytargetfacilities.js → exportcompanytargetfacilities.js} +33 -47
- package/dist/commonjs/models/operations/exportcompanytargetfacilities.js.map +1 -0
- package/dist/commonjs/models/operations/exportvendorscans.d.ts +110 -0
- package/dist/commonjs/models/operations/exportvendorscans.d.ts.map +1 -0
- package/dist/commonjs/models/operations/exportvendorscans.js +98 -0
- package/dist/commonjs/models/operations/exportvendorscans.js.map +1 -0
- package/dist/commonjs/models/operations/getcompanytargetfacilitiesexportstatus.d.ts +58 -0
- package/dist/commonjs/models/operations/getcompanytargetfacilitiesexportstatus.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getcompanytargetfacilitiesexportstatus.js +78 -0
- package/dist/commonjs/models/operations/getcompanytargetfacilitiesexportstatus.js.map +1 -0
- package/dist/commonjs/models/operations/getvendorscansexportstatus.d.ts +53 -0
- package/dist/commonjs/models/operations/getvendorscansexportstatus.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getvendorscansexportstatus.js +73 -0
- package/dist/commonjs/models/operations/getvendorscansexportstatus.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +6 -3
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +6 -3
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/invoicesexport.d.ts +4 -41
- package/dist/commonjs/models/operations/invoicesexport.d.ts.map +1 -1
- package/dist/commonjs/models/operations/invoicesexport.js +3 -34
- package/dist/commonjs/models/operations/invoicesexport.js.map +1 -1
- package/dist/commonjs/models/operations/vendorsexport.d.ts +4 -42
- package/dist/commonjs/models/operations/vendorsexport.d.ts.map +1 -1
- package/dist/commonjs/models/operations/vendorsexport.js +3 -33
- package/dist/commonjs/models/operations/vendorsexport.js.map +1 -1
- package/dist/commonjs/react-query/index.d.ts +6 -3
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +6 -3
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/invoicesInvoicesExport.core.d.ts +3 -2
- package/dist/commonjs/react-query/invoicesInvoicesExport.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/invoicesInvoicesExport.core.js.map +1 -1
- package/dist/commonjs/react-query/invoicesInvoicesExport.d.ts +3 -2
- package/dist/commonjs/react-query/invoicesInvoicesExport.d.ts.map +1 -1
- package/dist/commonjs/react-query/invoicesInvoicesExport.js.map +1 -1
- package/dist/commonjs/react-query/organizationsDownloadCompanyTargetFacilitiesExport.core.d.ts +12 -0
- package/dist/commonjs/react-query/organizationsDownloadCompanyTargetFacilitiesExport.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsDownloadCompanyTargetFacilitiesExport.core.js +40 -0
- package/dist/commonjs/react-query/organizationsDownloadCompanyTargetFacilitiesExport.core.js.map +1 -0
- package/dist/commonjs/react-query/organizationsDownloadCompanyTargetFacilitiesExport.d.ts +31 -0
- package/dist/commonjs/react-query/organizationsDownloadCompanyTargetFacilitiesExport.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsDownloadCompanyTargetFacilitiesExport.js +71 -0
- package/dist/commonjs/react-query/organizationsDownloadCompanyTargetFacilitiesExport.js.map +1 -0
- package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.core.d.ts +20 -0
- package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.core.js +48 -0
- package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.core.js.map +1 -0
- package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.d.ts +65 -0
- package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.js +83 -0
- package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.js.map +1 -0
- package/dist/commonjs/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.core.d.ts +12 -0
- package/dist/commonjs/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.core.js +40 -0
- package/dist/commonjs/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.core.js.map +1 -0
- package/dist/commonjs/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.d.ts +31 -0
- package/dist/commonjs/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.js +71 -0
- package/dist/commonjs/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.js.map +1 -0
- package/dist/commonjs/react-query/vendorScansDownloadVendorScansExport.core.d.ts +17 -0
- package/dist/commonjs/react-query/vendorScansDownloadVendorScansExport.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorScansDownloadVendorScansExport.core.js +39 -0
- package/dist/commonjs/react-query/vendorScansDownloadVendorScansExport.core.js.map +1 -0
- package/dist/commonjs/react-query/vendorScansDownloadVendorScansExport.d.ts +32 -0
- package/dist/commonjs/react-query/vendorScansDownloadVendorScansExport.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorScansDownloadVendorScansExport.js +73 -0
- package/dist/commonjs/react-query/vendorScansDownloadVendorScansExport.js.map +1 -0
- package/dist/commonjs/react-query/vendorScansExportVendorScans.core.d.ts +26 -0
- package/dist/commonjs/react-query/vendorScansExportVendorScans.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorScansExportVendorScans.core.js +52 -0
- package/dist/commonjs/react-query/vendorScansExportVendorScans.core.js.map +1 -0
- package/dist/commonjs/react-query/vendorScansExportVendorScans.d.ts +72 -0
- package/dist/commonjs/react-query/vendorScansExportVendorScans.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorScansExportVendorScans.js +81 -0
- package/dist/commonjs/react-query/vendorScansExportVendorScans.js.map +1 -0
- package/dist/commonjs/react-query/vendorScansGetVendorScansExportStatus.core.d.ts +12 -0
- package/dist/commonjs/react-query/vendorScansGetVendorScansExportStatus.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorScansGetVendorScansExportStatus.core.js +39 -0
- package/dist/commonjs/react-query/vendorScansGetVendorScansExportStatus.core.js.map +1 -0
- package/dist/commonjs/react-query/vendorScansGetVendorScansExportStatus.d.ts +31 -0
- package/dist/commonjs/react-query/vendorScansGetVendorScansExportStatus.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorScansGetVendorScansExportStatus.js +71 -0
- package/dist/commonjs/react-query/vendorScansGetVendorScansExportStatus.js.map +1 -0
- package/dist/commonjs/react-query/vendorsVendorsExport.core.d.ts +3 -2
- package/dist/commonjs/react-query/vendorsVendorsExport.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsVendorsExport.core.js.map +1 -1
- package/dist/commonjs/react-query/vendorsVendorsExport.d.ts +3 -2
- package/dist/commonjs/react-query/vendorsVendorsExport.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsVendorsExport.js.map +1 -1
- package/dist/commonjs/sdk/invoices.d.ts +1 -1
- package/dist/commonjs/sdk/invoices.d.ts.map +1 -1
- package/dist/commonjs/sdk/organizations.d.ts +16 -50
- package/dist/commonjs/sdk/organizations.d.ts.map +1 -1
- package/dist/commonjs/sdk/organizations.js +22 -54
- package/dist/commonjs/sdk/organizations.js.map +1 -1
- package/dist/commonjs/sdk/vendors.d.ts +1 -1
- package/dist/commonjs/sdk/vendorscans.d.ts +33 -0
- package/dist/commonjs/sdk/vendorscans.d.ts.map +1 -1
- package/dist/commonjs/sdk/vendorscans.js +41 -1
- package/dist/commonjs/sdk/vendorscans.js.map +1 -1
- package/dist/esm/__tests__/invoices.test.js +3 -1
- package/dist/esm/__tests__/invoices.test.js.map +1 -1
- package/dist/esm/__tests__/organizations.test.js +35 -43
- package/dist/esm/__tests__/organizations.test.js.map +1 -1
- package/dist/esm/__tests__/vendors.test.js +3 -1
- package/dist/esm/__tests__/vendors.test.js.map +1 -1
- package/dist/esm/__tests__/vendorscans.test.js +57 -0
- package/dist/esm/__tests__/vendorscans.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 +14 -11
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/funcs/invoicesInvoicesExport.d.ts +2 -1
- package/dist/esm/funcs/invoicesInvoicesExport.d.ts.map +1 -1
- package/dist/esm/funcs/invoicesInvoicesExport.js +2 -1
- package/dist/esm/funcs/invoicesInvoicesExport.js.map +1 -1
- package/dist/esm/funcs/organizationsDownloadCompanyTargetFacilitiesExport.d.ts +21 -0
- package/dist/esm/funcs/organizationsDownloadCompanyTargetFacilitiesExport.d.ts.map +1 -0
- package/dist/esm/funcs/{organizationsDeleteCompanyTargetFacility.js → organizationsDownloadCompanyTargetFacilitiesExport.js} +11 -17
- package/dist/esm/funcs/organizationsDownloadCompanyTargetFacilitiesExport.js.map +1 -0
- package/dist/esm/funcs/organizationsExportCompanyTargetFacilities.d.ts +27 -0
- package/dist/esm/funcs/organizationsExportCompanyTargetFacilities.d.ts.map +1 -0
- package/dist/esm/funcs/{organizationsCreateCompanyTargetFacility.js → organizationsExportCompanyTargetFacilities.js} +24 -27
- package/dist/esm/funcs/organizationsExportCompanyTargetFacilities.js.map +1 -0
- package/dist/esm/funcs/organizationsGetCompanyTargetFacilitiesExportStatus.d.ts +21 -0
- package/dist/esm/funcs/organizationsGetCompanyTargetFacilitiesExportStatus.d.ts.map +1 -0
- package/dist/esm/funcs/organizationsGetCompanyTargetFacilitiesExportStatus.js +96 -0
- package/dist/esm/funcs/organizationsGetCompanyTargetFacilitiesExportStatus.js.map +1 -0
- package/dist/esm/funcs/vendorScansDownloadVendorScansExport.d.ts +27 -0
- package/dist/esm/funcs/vendorScansDownloadVendorScansExport.d.ts.map +1 -0
- package/dist/esm/funcs/vendorScansDownloadVendorScansExport.js +97 -0
- package/dist/esm/funcs/vendorScansDownloadVendorScansExport.js.map +1 -0
- package/dist/esm/funcs/vendorScansExportVendorScans.d.ts +27 -0
- package/dist/esm/funcs/vendorScansExportVendorScans.d.ts.map +1 -0
- package/dist/esm/funcs/vendorScansExportVendorScans.js +105 -0
- package/dist/esm/funcs/vendorScansExportVendorScans.js.map +1 -0
- package/dist/esm/funcs/vendorScansGetVendorScansExportStatus.d.ts +21 -0
- package/dist/esm/funcs/vendorScansGetVendorScansExportStatus.d.ts.map +1 -0
- package/dist/esm/funcs/vendorScansGetVendorScansExportStatus.js +90 -0
- package/dist/esm/funcs/vendorScansGetVendorScansExportStatus.js.map +1 -0
- package/dist/esm/funcs/vendorsVendorsExport.d.ts +2 -1
- package/dist/esm/funcs/vendorsVendorsExport.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsVendorsExport.js +2 -1
- package/dist/esm/funcs/vendorsVendorsExport.js.map +1 -1
- package/dist/esm/hooks/types.d.ts +1 -0
- package/dist/esm/hooks/types.d.ts.map +1 -1
- package/dist/esm/lib/config.d.ts +4 -4
- package/dist/esm/lib/config.js +4 -4
- package/dist/esm/lib/sdks.d.ts.map +1 -1
- package/dist/esm/lib/sdks.js +13 -4
- package/dist/esm/lib/sdks.js.map +1 -1
- package/dist/esm/models/components/csvexportenqueuedresponse.d.ts +27 -0
- package/dist/esm/models/components/csvexportenqueuedresponse.d.ts.map +1 -0
- package/dist/esm/models/components/csvexportenqueuedresponse.js +23 -0
- package/dist/esm/models/components/csvexportenqueuedresponse.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +1 -1
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -1
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/operations/downloadcompanytargetfacilitiesexport.d.ts +47 -0
- package/dist/esm/models/operations/downloadcompanytargetfacilitiesexport.d.ts.map +1 -0
- package/dist/esm/models/operations/downloadcompanytargetfacilitiesexport.js +41 -0
- package/dist/esm/models/operations/downloadcompanytargetfacilitiesexport.js.map +1 -0
- package/dist/esm/models/operations/downloadvendorscansexport.d.ts +46 -0
- package/dist/esm/models/operations/downloadvendorscansexport.d.ts.map +1 -0
- package/dist/esm/models/operations/downloadvendorscansexport.js +48 -0
- package/dist/esm/models/operations/downloadvendorscansexport.js.map +1 -0
- package/dist/esm/models/operations/exportcompanytargetfacilities.d.ts +144 -0
- package/dist/esm/models/operations/exportcompanytargetfacilities.d.ts.map +1 -0
- package/dist/esm/models/operations/exportcompanytargetfacilities.js +96 -0
- package/dist/esm/models/operations/exportcompanytargetfacilities.js.map +1 -0
- package/dist/esm/models/operations/exportvendorscans.d.ts +110 -0
- package/dist/esm/models/operations/exportvendorscans.d.ts.map +1 -0
- package/dist/esm/models/operations/exportvendorscans.js +61 -0
- package/dist/esm/models/operations/exportvendorscans.js.map +1 -0
- package/dist/esm/models/operations/getcompanytargetfacilitiesexportstatus.d.ts +58 -0
- package/dist/esm/models/operations/getcompanytargetfacilitiesexportstatus.d.ts.map +1 -0
- package/dist/esm/models/operations/getcompanytargetfacilitiesexportstatus.js +40 -0
- package/dist/esm/models/operations/getcompanytargetfacilitiesexportstatus.js.map +1 -0
- package/dist/esm/models/operations/getvendorscansexportstatus.d.ts +53 -0
- package/dist/esm/models/operations/getvendorscansexportstatus.d.ts.map +1 -0
- package/dist/esm/models/operations/getvendorscansexportstatus.js +35 -0
- package/dist/esm/models/operations/getvendorscansexportstatus.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +6 -3
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +6 -3
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/invoicesexport.d.ts +4 -41
- package/dist/esm/models/operations/invoicesexport.d.ts.map +1 -1
- package/dist/esm/models/operations/invoicesexport.js +2 -31
- package/dist/esm/models/operations/invoicesexport.js.map +1 -1
- package/dist/esm/models/operations/vendorsexport.d.ts +4 -42
- package/dist/esm/models/operations/vendorsexport.d.ts.map +1 -1
- package/dist/esm/models/operations/vendorsexport.js +2 -30
- package/dist/esm/models/operations/vendorsexport.js.map +1 -1
- package/dist/esm/react-query/index.d.ts +6 -3
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +6 -3
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/invoicesInvoicesExport.core.d.ts +3 -2
- package/dist/esm/react-query/invoicesInvoicesExport.core.d.ts.map +1 -1
- package/dist/esm/react-query/invoicesInvoicesExport.core.js.map +1 -1
- package/dist/esm/react-query/invoicesInvoicesExport.d.ts +3 -2
- package/dist/esm/react-query/invoicesInvoicesExport.d.ts.map +1 -1
- package/dist/esm/react-query/invoicesInvoicesExport.js.map +1 -1
- package/dist/esm/react-query/organizationsDownloadCompanyTargetFacilitiesExport.core.d.ts +12 -0
- package/dist/esm/react-query/organizationsDownloadCompanyTargetFacilitiesExport.core.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsDownloadCompanyTargetFacilitiesExport.core.js +35 -0
- package/dist/esm/react-query/organizationsDownloadCompanyTargetFacilitiesExport.core.js.map +1 -0
- package/dist/esm/react-query/organizationsDownloadCompanyTargetFacilitiesExport.d.ts +31 -0
- package/dist/esm/react-query/organizationsDownloadCompanyTargetFacilitiesExport.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsDownloadCompanyTargetFacilitiesExport.js +61 -0
- package/dist/esm/react-query/organizationsDownloadCompanyTargetFacilitiesExport.js.map +1 -0
- package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.core.d.ts +20 -0
- package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.core.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.core.js +43 -0
- package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.core.js.map +1 -0
- package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.d.ts +65 -0
- package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.js +73 -0
- package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.js.map +1 -0
- package/dist/esm/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.core.d.ts +12 -0
- package/dist/esm/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.core.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.core.js +35 -0
- package/dist/esm/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.core.js.map +1 -0
- package/dist/esm/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.d.ts +31 -0
- package/dist/esm/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.js +61 -0
- package/dist/esm/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.js.map +1 -0
- package/dist/esm/react-query/vendorScansDownloadVendorScansExport.core.d.ts +17 -0
- package/dist/esm/react-query/vendorScansDownloadVendorScansExport.core.d.ts.map +1 -0
- package/dist/esm/react-query/vendorScansDownloadVendorScansExport.core.js +34 -0
- package/dist/esm/react-query/vendorScansDownloadVendorScansExport.core.js.map +1 -0
- package/dist/esm/react-query/vendorScansDownloadVendorScansExport.d.ts +32 -0
- package/dist/esm/react-query/vendorScansDownloadVendorScansExport.d.ts.map +1 -0
- package/dist/esm/react-query/vendorScansDownloadVendorScansExport.js +62 -0
- package/dist/esm/react-query/vendorScansDownloadVendorScansExport.js.map +1 -0
- package/dist/esm/react-query/vendorScansExportVendorScans.core.d.ts +26 -0
- package/dist/esm/react-query/vendorScansExportVendorScans.core.d.ts.map +1 -0
- package/dist/esm/react-query/vendorScansExportVendorScans.core.js +47 -0
- package/dist/esm/react-query/vendorScansExportVendorScans.core.js.map +1 -0
- package/dist/esm/react-query/vendorScansExportVendorScans.d.ts +72 -0
- package/dist/esm/react-query/vendorScansExportVendorScans.d.ts.map +1 -0
- package/dist/esm/react-query/vendorScansExportVendorScans.js +71 -0
- package/dist/esm/react-query/vendorScansExportVendorScans.js.map +1 -0
- package/dist/esm/react-query/vendorScansGetVendorScansExportStatus.core.d.ts +12 -0
- package/dist/esm/react-query/vendorScansGetVendorScansExportStatus.core.d.ts.map +1 -0
- package/dist/esm/react-query/vendorScansGetVendorScansExportStatus.core.js +34 -0
- package/dist/esm/react-query/vendorScansGetVendorScansExportStatus.core.js.map +1 -0
- package/dist/esm/react-query/vendorScansGetVendorScansExportStatus.d.ts +31 -0
- package/dist/esm/react-query/vendorScansGetVendorScansExportStatus.d.ts.map +1 -0
- package/dist/esm/react-query/vendorScansGetVendorScansExportStatus.js +61 -0
- package/dist/esm/react-query/vendorScansGetVendorScansExportStatus.js.map +1 -0
- package/dist/esm/react-query/vendorsVendorsExport.core.d.ts +3 -2
- package/dist/esm/react-query/vendorsVendorsExport.core.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsVendorsExport.core.js.map +1 -1
- package/dist/esm/react-query/vendorsVendorsExport.d.ts +3 -2
- package/dist/esm/react-query/vendorsVendorsExport.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsVendorsExport.js.map +1 -1
- package/dist/esm/sdk/invoices.d.ts +1 -1
- package/dist/esm/sdk/invoices.d.ts.map +1 -1
- package/dist/esm/sdk/organizations.d.ts +16 -50
- package/dist/esm/sdk/organizations.d.ts.map +1 -1
- package/dist/esm/sdk/organizations.js +22 -54
- package/dist/esm/sdk/organizations.js.map +1 -1
- package/dist/esm/sdk/vendors.d.ts +1 -1
- package/dist/esm/sdk/vendorscans.d.ts +33 -0
- package/dist/esm/sdk/vendorscans.d.ts.map +1 -1
- package/dist/esm/sdk/vendorscans.js +39 -0
- package/dist/esm/sdk/vendorscans.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/invoices.test.ts +3 -1
- package/src/__tests__/organizations.test.ts +51 -46
- package/src/__tests__/vendors.test.ts +3 -1
- package/src/__tests__/vendorscans.test.ts +70 -0
- package/src/__tests__/webhooks.test.ts +1 -1
- package/src/__tests__/zones.test.ts +14 -11
- package/src/funcs/invoicesInvoicesExport.ts +5 -4
- package/src/funcs/organizationsDownloadCompanyTargetFacilitiesExport.ts +200 -0
- package/src/funcs/{organizationsCreateCompanyTargetFacility.ts → organizationsExportCompanyTargetFacilities.ts} +32 -33
- package/src/funcs/{organizationsDeleteCompanyTargetFacility.ts → organizationsGetCompanyTargetFacilitiesExportStatus.ts} +22 -25
- package/src/funcs/vendorScansDownloadVendorScansExport.ts +210 -0
- package/src/funcs/vendorScansExportVendorScans.ts +194 -0
- package/src/funcs/vendorScansGetVendorScansExportStatus.ts +182 -0
- package/src/funcs/vendorsVendorsExport.ts +5 -4
- package/src/hooks/types.ts +1 -0
- package/src/lib/config.ts +4 -4
- package/src/lib/sdks.ts +13 -4
- package/src/models/components/csvexportenqueuedresponse.ts +58 -0
- package/src/models/components/index.ts +1 -1
- package/src/models/operations/downloadcompanytargetfacilitiesexport.ts +135 -0
- package/src/models/operations/downloadvendorscansexport.ts +145 -0
- package/src/models/operations/exportcompanytargetfacilities.ts +242 -0
- package/src/models/operations/exportvendorscans.ts +163 -0
- package/src/models/operations/getcompanytargetfacilitiesexportstatus.ts +126 -0
- package/src/models/operations/getvendorscansexportstatus.ts +108 -0
- package/src/models/operations/index.ts +6 -3
- package/src/models/operations/invoicesexport.ts +5 -83
- package/src/models/operations/vendorsexport.ts +5 -82
- package/src/react-query/index.ts +6 -3
- package/src/react-query/invoicesInvoicesExport.core.ts +3 -2
- package/src/react-query/invoicesInvoicesExport.ts +3 -2
- package/src/react-query/organizationsDownloadCompanyTargetFacilitiesExport.core.ts +85 -0
- package/src/react-query/organizationsDownloadCompanyTargetFacilitiesExport.ts +153 -0
- package/src/react-query/organizationsExportCompanyTargetFacilities.core.ts +99 -0
- package/src/react-query/organizationsExportCompanyTargetFacilities.ts +189 -0
- package/src/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.core.ts +84 -0
- package/src/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.ts +153 -0
- package/src/react-query/vendorScansDownloadVendorScansExport.core.ts +86 -0
- package/src/react-query/vendorScansDownloadVendorScansExport.ts +154 -0
- package/src/react-query/vendorScansExportVendorScans.core.ts +105 -0
- package/src/react-query/vendorScansExportVendorScans.ts +190 -0
- package/src/react-query/vendorScansGetVendorScansExportStatus.core.ts +78 -0
- package/src/react-query/vendorScansGetVendorScansExportStatus.ts +152 -0
- package/src/react-query/vendorsVendorsExport.core.ts +3 -2
- package/src/react-query/vendorsVendorsExport.ts +3 -2
- package/src/sdk/invoices.ts +1 -1
- package/src/sdk/organizations.ts +30 -67
- package/src/sdk/vendors.ts +1 -1
- package/src/sdk/vendorscans.ts +69 -0
- package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.d.ts +0 -34
- package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.d.ts.map +0 -1
- package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.js.map +0 -1
- package/dist/commonjs/funcs/organizationsDeleteCompanyTargetFacility.d.ts +0 -28
- package/dist/commonjs/funcs/organizationsDeleteCompanyTargetFacility.d.ts.map +0 -1
- package/dist/commonjs/funcs/organizationsDeleteCompanyTargetFacility.js.map +0 -1
- package/dist/commonjs/funcs/organizationsListCompanyTargetFacilities.d.ts +0 -42
- package/dist/commonjs/funcs/organizationsListCompanyTargetFacilities.d.ts.map +0 -1
- package/dist/commonjs/funcs/organizationsListCompanyTargetFacilities.js.map +0 -1
- package/dist/commonjs/models/components/companytargetfacility.d.ts +0 -54
- package/dist/commonjs/models/components/companytargetfacility.d.ts.map +0 -1
- package/dist/commonjs/models/components/companytargetfacility.js +0 -80
- package/dist/commonjs/models/components/companytargetfacility.js.map +0 -1
- package/dist/commonjs/models/operations/createcompanytargetfacility.d.ts +0 -50
- package/dist/commonjs/models/operations/createcompanytargetfacility.d.ts.map +0 -1
- package/dist/commonjs/models/operations/createcompanytargetfacility.js +0 -84
- package/dist/commonjs/models/operations/createcompanytargetfacility.js.map +0 -1
- package/dist/commonjs/models/operations/deletecompanytargetfacility.d.ts +0 -20
- package/dist/commonjs/models/operations/deletecompanytargetfacility.d.ts.map +0 -1
- package/dist/commonjs/models/operations/deletecompanytargetfacility.js.map +0 -1
- package/dist/commonjs/models/operations/listcompanytargetfacilities.d.ts +0 -173
- package/dist/commonjs/models/operations/listcompanytargetfacilities.d.ts.map +0 -1
- package/dist/commonjs/models/operations/listcompanytargetfacilities.js.map +0 -1
- package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.d.ts +0 -43
- package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.d.ts.map +0 -1
- package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.js +0 -65
- package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.js.map +0 -1
- package/dist/commonjs/react-query/organizationsDeleteCompanyTargetFacility.d.ts +0 -37
- package/dist/commonjs/react-query/organizationsDeleteCompanyTargetFacility.d.ts.map +0 -1
- package/dist/commonjs/react-query/organizationsDeleteCompanyTargetFacility.js +0 -59
- package/dist/commonjs/react-query/organizationsDeleteCompanyTargetFacility.js.map +0 -1
- package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.d.ts +0 -54
- package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.d.ts.map +0 -1
- package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.js +0 -111
- package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.js.map +0 -1
- package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.d.ts +0 -154
- package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.d.ts.map +0 -1
- package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.js +0 -180
- package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.js.map +0 -1
- package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.d.ts +0 -34
- package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.d.ts.map +0 -1
- package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.js.map +0 -1
- package/dist/esm/funcs/organizationsDeleteCompanyTargetFacility.d.ts +0 -28
- package/dist/esm/funcs/organizationsDeleteCompanyTargetFacility.d.ts.map +0 -1
- package/dist/esm/funcs/organizationsDeleteCompanyTargetFacility.js.map +0 -1
- package/dist/esm/funcs/organizationsListCompanyTargetFacilities.d.ts +0 -42
- package/dist/esm/funcs/organizationsListCompanyTargetFacilities.d.ts.map +0 -1
- package/dist/esm/funcs/organizationsListCompanyTargetFacilities.js +0 -158
- package/dist/esm/funcs/organizationsListCompanyTargetFacilities.js.map +0 -1
- package/dist/esm/models/components/companytargetfacility.d.ts +0 -54
- package/dist/esm/models/components/companytargetfacility.d.ts.map +0 -1
- package/dist/esm/models/components/companytargetfacility.js +0 -41
- package/dist/esm/models/components/companytargetfacility.js.map +0 -1
- package/dist/esm/models/operations/createcompanytargetfacility.d.ts +0 -50
- package/dist/esm/models/operations/createcompanytargetfacility.d.ts.map +0 -1
- package/dist/esm/models/operations/createcompanytargetfacility.js +0 -45
- package/dist/esm/models/operations/createcompanytargetfacility.js.map +0 -1
- package/dist/esm/models/operations/deletecompanytargetfacility.d.ts +0 -20
- package/dist/esm/models/operations/deletecompanytargetfacility.d.ts.map +0 -1
- package/dist/esm/models/operations/deletecompanytargetfacility.js +0 -18
- package/dist/esm/models/operations/deletecompanytargetfacility.js.map +0 -1
- package/dist/esm/models/operations/listcompanytargetfacilities.d.ts +0 -173
- package/dist/esm/models/operations/listcompanytargetfacilities.d.ts.map +0 -1
- package/dist/esm/models/operations/listcompanytargetfacilities.js +0 -110
- package/dist/esm/models/operations/listcompanytargetfacilities.js.map +0 -1
- package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.d.ts +0 -43
- package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.d.ts.map +0 -1
- package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.js +0 -60
- package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.js.map +0 -1
- package/dist/esm/react-query/organizationsDeleteCompanyTargetFacility.d.ts +0 -37
- package/dist/esm/react-query/organizationsDeleteCompanyTargetFacility.d.ts.map +0 -1
- package/dist/esm/react-query/organizationsDeleteCompanyTargetFacility.js +0 -54
- package/dist/esm/react-query/organizationsDeleteCompanyTargetFacility.js.map +0 -1
- package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.d.ts +0 -54
- package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.d.ts.map +0 -1
- package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.js +0 -103
- package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.js.map +0 -1
- package/dist/esm/react-query/organizationsListCompanyTargetFacilities.d.ts +0 -154
- package/dist/esm/react-query/organizationsListCompanyTargetFacilities.d.ts.map +0 -1
- package/dist/esm/react-query/organizationsListCompanyTargetFacilities.js +0 -165
- package/dist/esm/react-query/organizationsListCompanyTargetFacilities.js.map +0 -1
- package/src/funcs/organizationsListCompanyTargetFacilities.ts +0 -291
- package/src/models/components/companytargetfacility.ts +0 -124
- package/src/models/operations/createcompanytargetfacility.ts +0 -132
- package/src/models/operations/deletecompanytargetfacility.ts +0 -47
- package/src/models/operations/listcompanytargetfacilities.ts +0 -291
- package/src/react-query/organizationsCreateCompanyTargetFacility.ts +0 -129
- package/src/react-query/organizationsDeleteCompanyTargetFacility.ts +0 -122
- package/src/react-query/organizationsListCompanyTargetFacilities.core.ts +0 -239
- package/src/react-query/organizationsListCompanyTargetFacilities.ts +0 -365
|
@@ -42,69 +42,35 @@ export declare class Organizations extends ClientSDK {
|
|
|
42
42
|
page: number;
|
|
43
43
|
}>>;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Export company target facilities to CSV (async)
|
|
46
46
|
*
|
|
47
47
|
* @remarks
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
* company's individuals targeting it.
|
|
48
|
+
* Enqueues an asynchronous job to generate a CSV export of a company's CompanyTargetFacility rows,
|
|
49
|
+
* applying the same access scope and filter parameters as the list endpoint. The CSV contains:
|
|
50
|
+
* Facility Name, Address, City, State, and Active Individuals.
|
|
52
51
|
*
|
|
53
|
-
*
|
|
54
|
-
* via a LEFT JOIN. Targeted rows carry their CTF `id` and `status`; non-targeted
|
|
55
|
-
* rows have `id: null` and `status: "Not Targeted"`.
|
|
52
|
+
* Returns a `status_url` for polling until the export is ready, along with a `download_url` and `status_id`.
|
|
56
53
|
*
|
|
57
|
-
* Access control: the URL's `company_id` must be in the caller's read scope
|
|
58
|
-
*
|
|
59
|
-
* whose app is activated for the API user). Callers outside that scope
|
|
60
|
-
* receive `404 Company not found`.
|
|
61
|
-
*
|
|
62
|
-
* Filter with `has_individual` / `has_active_individual` to drive the
|
|
63
|
-
* facility roster views.
|
|
64
|
-
*
|
|
65
|
-
* Available `expand` scopes are:
|
|
66
|
-
*
|
|
67
|
-
* - company_target_facility.facility
|
|
54
|
+
* Access control: the URL's `company_id` must be in the caller's read scope for Company. Callers
|
|
55
|
+
* outside that scope receive `404 Company not found`.
|
|
68
56
|
*/
|
|
69
|
-
|
|
70
|
-
page: number;
|
|
71
|
-
}>>;
|
|
57
|
+
exportCompanyTargetFacilities(request: operations.ExportCompanyTargetFacilitiesRequest, options?: RequestOptions): Promise<operations.ExportCompanyTargetFacilitiesResponseBody>;
|
|
72
58
|
/**
|
|
73
|
-
*
|
|
59
|
+
* Get company target facilities export status
|
|
74
60
|
*
|
|
75
61
|
* @remarks
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
* itself is never created or modified by this endpoint.
|
|
79
|
-
*
|
|
80
|
-
* Access control: the URL's `company_id` must be in the caller's update
|
|
81
|
-
* scope for Company, AND the `facility_id` must be in the caller's create
|
|
82
|
-
* scope for Facility (a facility on the company's site, or a facility
|
|
83
|
-
* reachable via the API user's site/system/facility-scoped activation).
|
|
84
|
-
* Either being out of scope returns `404 Company not found` /
|
|
85
|
-
* `404 Facility not found` respectively. Deleted facilities also return
|
|
86
|
-
* `404 Facility not found`.
|
|
87
|
-
*
|
|
88
|
-
* Available `expand` scopes are:
|
|
89
|
-
*
|
|
90
|
-
* - company_target_facility.facility
|
|
62
|
+
* Poll the state of an asynchronous company target facilities export job. When `ready` is true,
|
|
63
|
+
* the export is complete and can be downloaded via the download endpoint.
|
|
91
64
|
*/
|
|
92
|
-
|
|
65
|
+
getCompanyTargetFacilitiesExportStatus(request: operations.GetCompanyTargetFacilitiesExportStatusRequest, options?: RequestOptions): Promise<operations.GetCompanyTargetFacilitiesExportStatusResponseBody>;
|
|
93
66
|
/**
|
|
94
|
-
*
|
|
67
|
+
* Download company target facilities CSV
|
|
95
68
|
*
|
|
96
69
|
* @remarks
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
* vendor-scoped target rows). Only the link row is removed — the Facility
|
|
100
|
-
* entity itself is never touched.
|
|
101
|
-
*
|
|
102
|
-
* Access control: the URL's `company_id` must be in the caller's update
|
|
103
|
-
* scope for Company (a company manager's or vendor's own company, or a
|
|
104
|
-
* company whose app is activated for the API user). Callers outside that
|
|
105
|
-
* scope receive `404 Company not found`.
|
|
70
|
+
* Returns the exported company target facilities CSV via a 302 redirect to a short-lived presigned S3 URL.
|
|
71
|
+
* If the export is still being generated, returns 202 with a JSON `{ ready: false }` payload.
|
|
106
72
|
*/
|
|
107
|
-
|
|
73
|
+
downloadCompanyTargetFacilitiesExport(request: operations.DownloadCompanyTargetFacilitiesExportRequest, options?: RequestOptions): Promise<operations.DownloadCompanyTargetFacilitiesExportResponse | undefined>;
|
|
108
74
|
/**
|
|
109
75
|
* List or search department contacts
|
|
110
76
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.d.ts","sourceRoot":"","sources":["../../../src/sdk/organizations.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAwB,MAAM,wBAAwB,CAAC;AAE5E,qBAAa,aAAc,SAAQ,SAAS;IAC1C;;;;;;;;;;;;;;;;;;OAkBG;IACG,sBAAsB,CAC1B,OAAO,EAAE,UAAU,CAAC,6BAA6B,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,YAAY,CAAC,UAAU,CAAC,8BAA8B,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAC1E;IAQD;;;;;OAKG;IACG,WAAW,CACf,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC;IAQ/B;;;;;OAKG;IACG,uBAAuB,CAC3B,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,YAAY,CAAC,UAAU,CAAC,+BAA+B,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAC3E;IAQD
|
|
1
|
+
{"version":3,"file":"organizations.d.ts","sourceRoot":"","sources":["../../../src/sdk/organizations.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAwB,MAAM,wBAAwB,CAAC;AAE5E,qBAAa,aAAc,SAAQ,SAAS;IAC1C;;;;;;;;;;;;;;;;;;OAkBG;IACG,sBAAsB,CAC1B,OAAO,EAAE,UAAU,CAAC,6BAA6B,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,YAAY,CAAC,UAAU,CAAC,8BAA8B,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAC1E;IAQD;;;;;OAKG;IACG,WAAW,CACf,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC;IAQ/B;;;;;OAKG;IACG,uBAAuB,CAC3B,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,YAAY,CAAC,UAAU,CAAC,+BAA+B,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAC3E;IAQD;;;;;;;;;;;;OAYG;IACG,6BAA6B,CACjC,OAAO,EAAE,UAAU,CAAC,oCAAoC,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,yCAAyC,CAAC;IAQhE;;;;;;OAMG;IACG,sCAAsC,CAC1C,OAAO,EAAE,UAAU,CAAC,6CAA6C,EACjE,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kDAAkD,CAAC;IAQzE;;;;;;OAMG;IACG,qCAAqC,CACzC,OAAO,EAAE,UAAU,CAAC,4CAA4C,EAChE,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,UAAU,CAAC,6CAA6C,GAAG,SAAS,CACrE;IAQD;;;;;;;;;;OAUG;IACG,8BAA8B,CAClC,OAAO,EAAE,UAAU,CAAC,qCAAqC,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,YAAY,CACV,UAAU,CAAC,sCAAsC,EACjD;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CACjB,CACF;CAOF"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { organizationsDownloadCompanyTargetFacilitiesExport } from "../funcs/organizationsDownloadCompanyTargetFacilitiesExport.js";
|
|
5
|
+
import { organizationsExportCompanyTargetFacilities } from "../funcs/organizationsExportCompanyTargetFacilities.js";
|
|
6
|
+
import { organizationsGetCompanyTargetFacilitiesExportStatus } from "../funcs/organizationsGetCompanyTargetFacilitiesExportStatus.js";
|
|
6
7
|
import { organizationsGetFacility } from "../funcs/organizationsGetFacility.js";
|
|
7
|
-
import { organizationsListCompanyTargetFacilities } from "../funcs/organizationsListCompanyTargetFacilities.js";
|
|
8
8
|
import { organizationsListOrSearchDepartmentContacts } from "../funcs/organizationsListOrSearchDepartmentContacts.js";
|
|
9
9
|
import { organizationsListOrSearchDepartments } from "../funcs/organizationsListOrSearchDepartments.js";
|
|
10
10
|
import { organizationsListOrSearchFacilities } from "../funcs/organizationsListOrSearchFacilities.js";
|
|
@@ -53,72 +53,40 @@ export class Organizations extends ClientSDK {
|
|
|
53
53
|
return unwrapResultIterator(organizationsListOrSearchDepartments(this, request, options));
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* Export company target facilities to CSV (async)
|
|
57
57
|
*
|
|
58
58
|
* @remarks
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
* company's individuals targeting it.
|
|
59
|
+
* Enqueues an asynchronous job to generate a CSV export of a company's CompanyTargetFacility rows,
|
|
60
|
+
* applying the same access scope and filter parameters as the list endpoint. The CSV contains:
|
|
61
|
+
* Facility Name, Address, City, State, and Active Individuals.
|
|
63
62
|
*
|
|
64
|
-
*
|
|
65
|
-
* via a LEFT JOIN. Targeted rows carry their CTF `id` and `status`; non-targeted
|
|
66
|
-
* rows have `id: null` and `status: "Not Targeted"`.
|
|
63
|
+
* Returns a `status_url` for polling until the export is ready, along with a `download_url` and `status_id`.
|
|
67
64
|
*
|
|
68
|
-
* Access control: the URL's `company_id` must be in the caller's read scope
|
|
69
|
-
*
|
|
70
|
-
* whose app is activated for the API user). Callers outside that scope
|
|
71
|
-
* receive `404 Company not found`.
|
|
72
|
-
*
|
|
73
|
-
* Filter with `has_individual` / `has_active_individual` to drive the
|
|
74
|
-
* facility roster views.
|
|
75
|
-
*
|
|
76
|
-
* Available `expand` scopes are:
|
|
77
|
-
*
|
|
78
|
-
* - company_target_facility.facility
|
|
65
|
+
* Access control: the URL's `company_id` must be in the caller's read scope for Company. Callers
|
|
66
|
+
* outside that scope receive `404 Company not found`.
|
|
79
67
|
*/
|
|
80
|
-
async
|
|
81
|
-
return
|
|
68
|
+
async exportCompanyTargetFacilities(request, options) {
|
|
69
|
+
return unwrapAsync(organizationsExportCompanyTargetFacilities(this, request, options));
|
|
82
70
|
}
|
|
83
71
|
/**
|
|
84
|
-
*
|
|
72
|
+
* Get company target facilities export status
|
|
85
73
|
*
|
|
86
74
|
* @remarks
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
* itself is never created or modified by this endpoint.
|
|
90
|
-
*
|
|
91
|
-
* Access control: the URL's `company_id` must be in the caller's update
|
|
92
|
-
* scope for Company, AND the `facility_id` must be in the caller's create
|
|
93
|
-
* scope for Facility (a facility on the company's site, or a facility
|
|
94
|
-
* reachable via the API user's site/system/facility-scoped activation).
|
|
95
|
-
* Either being out of scope returns `404 Company not found` /
|
|
96
|
-
* `404 Facility not found` respectively. Deleted facilities also return
|
|
97
|
-
* `404 Facility not found`.
|
|
98
|
-
*
|
|
99
|
-
* Available `expand` scopes are:
|
|
100
|
-
*
|
|
101
|
-
* - company_target_facility.facility
|
|
75
|
+
* Poll the state of an asynchronous company target facilities export job. When `ready` is true,
|
|
76
|
+
* the export is complete and can be downloaded via the download endpoint.
|
|
102
77
|
*/
|
|
103
|
-
async
|
|
104
|
-
return unwrapAsync(
|
|
78
|
+
async getCompanyTargetFacilitiesExportStatus(request, options) {
|
|
79
|
+
return unwrapAsync(organizationsGetCompanyTargetFacilitiesExportStatus(this, request, options));
|
|
105
80
|
}
|
|
106
81
|
/**
|
|
107
|
-
*
|
|
82
|
+
* Download company target facilities CSV
|
|
108
83
|
*
|
|
109
84
|
* @remarks
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
* vendor-scoped target rows). Only the link row is removed — the Facility
|
|
113
|
-
* entity itself is never touched.
|
|
114
|
-
*
|
|
115
|
-
* Access control: the URL's `company_id` must be in the caller's update
|
|
116
|
-
* scope for Company (a company manager's or vendor's own company, or a
|
|
117
|
-
* company whose app is activated for the API user). Callers outside that
|
|
118
|
-
* scope receive `404 Company not found`.
|
|
85
|
+
* Returns the exported company target facilities CSV via a 302 redirect to a short-lived presigned S3 URL.
|
|
86
|
+
* If the export is still being generated, returns 202 with a JSON `{ ready: false }` payload.
|
|
119
87
|
*/
|
|
120
|
-
async
|
|
121
|
-
return unwrapAsync(
|
|
88
|
+
async downloadCompanyTargetFacilitiesExport(request, options) {
|
|
89
|
+
return unwrapAsync(organizationsDownloadCompanyTargetFacilitiesExport(this, request, options));
|
|
122
90
|
}
|
|
123
91
|
/**
|
|
124
92
|
* List or search department contacts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.js","sourceRoot":"","sources":["../../../src/sdk/organizations.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"organizations.js","sourceRoot":"","sources":["../../../src/sdk/organizations.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,kDAAkD,EAAE,MAAM,gEAAgE,CAAC;AACpI,OAAO,EAAE,0CAA0C,EAAE,MAAM,wDAAwD,CAAC;AACpH,OAAO,EAAE,mDAAmD,EAAE,MAAM,iEAAiE,CAAC;AACtI,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,2CAA2C,EAAE,MAAM,yDAAyD,CAAC;AACtH,OAAO,EAAE,oCAAoC,EAAE,MAAM,kDAAkD,CAAC;AACxG,OAAO,EAAE,mCAAmC,EAAE,MAAM,iDAAiD,CAAC;AACtG,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAgB,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE5E,MAAM,OAAO,aAAc,SAAQ,SAAS;IAC1C;;;;;;;;;;;;;;;;;;OAkBG;IACH,KAAK,CAAC,sBAAsB,CAC1B,OAAiD,EACjD,OAAwB;QAIxB,OAAO,oBAAoB,CAAC,mCAAmC,CAC7D,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,WAAW,CACf,OAAsC,EACtC,OAAwB;QAExB,OAAO,WAAW,CAAC,wBAAwB,CACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,uBAAuB,CAC3B,OAAkD,EAClD,OAAwB;QAIxB,OAAO,oBAAoB,CAAC,oCAAoC,CAC9D,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,6BAA6B,CACjC,OAAwD,EACxD,OAAwB;QAExB,OAAO,WAAW,CAAC,0CAA0C,CAC3D,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,sCAAsC,CAC1C,OAAiE,EACjE,OAAwB;QAExB,OAAO,WAAW,CAAC,mDAAmD,CACpE,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,qCAAqC,CACzC,OAAgE,EAChE,OAAwB;QAIxB,OAAO,WAAW,CAAC,kDAAkD,CACnE,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,8BAA8B,CAClC,OAAyD,EACzD,OAAwB;QAOxB,OAAO,oBAAoB,CAAC,2CAA2C,CACrE,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -500,7 +500,7 @@ export declare class Vendors extends ClientSDK {
|
|
|
500
500
|
* Returns a `status_url` to poll until the export is ready, plus a
|
|
501
501
|
* `download_url` and `status_id`.
|
|
502
502
|
*/
|
|
503
|
-
vendorsExport(request: operations.VendorsExportRequest, options?: RequestOptions): Promise<
|
|
503
|
+
vendorsExport(request: operations.VendorsExportRequest, options?: RequestOptions): Promise<components.CsvExportEnqueuedResponse>;
|
|
504
504
|
/**
|
|
505
505
|
* Get vendor export status
|
|
506
506
|
*
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { DownloadVendorScansExportAcceptEnum } from "../funcs/vendorScansDownloadVendorScansExport.js";
|
|
1
2
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
3
|
import * as components from "../models/components/index.js";
|
|
3
4
|
import * as operations from "../models/operations/index.js";
|
|
4
5
|
import { PageIterator } from "../types/operations.js";
|
|
6
|
+
export { DownloadVendorScansExportAcceptEnum } from "../funcs/vendorScansDownloadVendorScansExport.js";
|
|
5
7
|
export declare class VendorScans extends ClientSDK {
|
|
6
8
|
/**
|
|
7
9
|
* List vendor scans
|
|
@@ -17,6 +19,37 @@ export declare class VendorScans extends ClientSDK {
|
|
|
17
19
|
listVendorScans(request: operations.ListVendorScansRequest, options?: RequestOptions): Promise<PageIterator<operations.ListVendorScansResponse, {
|
|
18
20
|
page: number;
|
|
19
21
|
}>>;
|
|
22
|
+
/**
|
|
23
|
+
* Export vendor scans to CSV (async)
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* Enqueues an asynchronous job to generate a CSV export of vendor scans, applying the same access scope and filter
|
|
27
|
+
* parameters as the list endpoint. The CSV contains every column shown on the Scan Details page: date,
|
|
28
|
+
* facility, system, zone, individual, company, scan type, recheck-after-screening, code, overridden, result,
|
|
29
|
+
* error, appointment, department, visit purpose, visit contact, estimated checkout time, notes, and the
|
|
30
|
+
* screening-required / screening-finished flags.
|
|
31
|
+
*
|
|
32
|
+
* Returns a `status_url` for polling until the export is ready, along with a `download_url` and `status_id`.
|
|
33
|
+
*/
|
|
34
|
+
exportVendorScans(request: operations.ExportVendorScansRequest, options?: RequestOptions): Promise<components.CsvExportEnqueuedResponse>;
|
|
35
|
+
/**
|
|
36
|
+
* Get vendor scans export status
|
|
37
|
+
*
|
|
38
|
+
* @remarks
|
|
39
|
+
* Poll the status of an asynchronous vendor scans export job. When `ready` is true,
|
|
40
|
+
* the export is complete and can be downloaded via the download endpoint.
|
|
41
|
+
*/
|
|
42
|
+
getVendorScansExportStatus(request: operations.GetVendorScansExportStatusRequest, options?: RequestOptions): Promise<operations.GetVendorScansExportStatusResponseBody>;
|
|
43
|
+
/**
|
|
44
|
+
* Download vendor scans CSV
|
|
45
|
+
*
|
|
46
|
+
* @remarks
|
|
47
|
+
* Returns the exported vendor scans CSV via a 302 redirect to a short-lived presigned S3 URL.
|
|
48
|
+
* If the export is still being generated, returns 202 with a JSON `{ ready: false }` payload.
|
|
49
|
+
*/
|
|
50
|
+
downloadVendorScansExport(request: operations.DownloadVendorScansExportRequest, options?: RequestOptions & {
|
|
51
|
+
acceptHeaderOverride?: DownloadVendorScansExportAcceptEnum;
|
|
52
|
+
}): Promise<operations.DownloadVendorScansExportResponse | undefined>;
|
|
20
53
|
/**
|
|
21
54
|
* Get a vendor scan by ID
|
|
22
55
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vendorscans.d.ts","sourceRoot":"","sources":["../../../src/sdk/vendorscans.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vendorscans.d.ts","sourceRoot":"","sources":["../../../src/sdk/vendorscans.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,mCAAmC,EAEpC,MAAM,kDAAkD,CAAC;AAQ1D,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAwB,MAAM,wBAAwB,CAAC;AAE5E,OAAO,EAAE,mCAAmC,EAAE,MAAM,kDAAkD,CAAC;AAEvG,qBAAa,WAAY,SAAQ,SAAS;IACxC;;;;;;;;;;OAUG;IACG,eAAe,CACnB,OAAO,EAAE,UAAU,CAAC,sBAAsB,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,YAAY,CAAC,UAAU,CAAC,uBAAuB,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CACnE;IAQD;;;;;;;;;;;OAWG;IACG,iBAAiB,CACrB,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,yBAAyB,CAAC;IAQhD;;;;;;OAMG;IACG,0BAA0B,CAC9B,OAAO,EAAE,UAAU,CAAC,iCAAiC,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,sCAAsC,CAAC;IAQ7D;;;;;;OAMG;IACG,yBAAyB,CAC7B,OAAO,EAAE,UAAU,CAAC,gCAAgC,EACpD,OAAO,CAAC,EAAE,cAAc,GAAG;QACzB,oBAAoB,CAAC,EAAE,mCAAmC,CAAC;KAC5D,GACA,OAAO,CAAC,UAAU,CAAC,iCAAiC,GAAG,SAAS,CAAC;IAQpE;;;;;;;;;;;;;;;OAeG;IACG,aAAa,CACjB,OAAO,EAAE,UAAU,CAAC,oBAAoB,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC;IAQjC;;;;;;;;;;OAUG;IACG,wBAAwB,CAC5B,OAAO,EAAE,UAAU,CAAC,+BAA+B,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oCAAoC,CAAC;IAQ3D;;;;;;;;;OASG;IACG,uBAAuB,CAC3B,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,mCAAmC,CAAC;IAQ1D;;;;;OAKG;IACG,aAAa,CACjB,OAAO,EAAE,UAAU,CAAC,oBAAoB,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,4BAA4B,CAAC;CAOpD"}
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
|
+
import { vendorScansDownloadVendorScansExport, } from "../funcs/vendorScansDownloadVendorScansExport.js";
|
|
5
|
+
import { vendorScansExportVendorScans } from "../funcs/vendorScansExportVendorScans.js";
|
|
4
6
|
import { vendorScansGetNextScreeningQuestion } from "../funcs/vendorScansGetNextScreeningQuestion.js";
|
|
5
7
|
import { vendorScansGetVendorScan } from "../funcs/vendorScansGetVendorScan.js";
|
|
8
|
+
import { vendorScansGetVendorScansExportStatus } from "../funcs/vendorScansGetVendorScansExportStatus.js";
|
|
6
9
|
import { vendorScansListVendorScans } from "../funcs/vendorScansListVendorScans.js";
|
|
7
10
|
import { vendorScansSubmitScreeningResponse } from "../funcs/vendorScansSubmitScreeningResponse.js";
|
|
8
11
|
import { vendorScansVendorScanOut } from "../funcs/vendorScansVendorScanOut.js";
|
|
9
12
|
import { ClientSDK } from "../lib/sdks.js";
|
|
10
13
|
import { unwrapAsync } from "../types/fp.js";
|
|
11
14
|
import { unwrapResultIterator } from "../types/operations.js";
|
|
15
|
+
export { DownloadVendorScansExportAcceptEnum } from "../funcs/vendorScansDownloadVendorScansExport.js";
|
|
12
16
|
export class VendorScans extends ClientSDK {
|
|
13
17
|
/**
|
|
14
18
|
* List vendor scans
|
|
@@ -24,6 +28,41 @@ export class VendorScans extends ClientSDK {
|
|
|
24
28
|
async listVendorScans(request, options) {
|
|
25
29
|
return unwrapResultIterator(vendorScansListVendorScans(this, request, options));
|
|
26
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* Export vendor scans to CSV (async)
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* Enqueues an asynchronous job to generate a CSV export of vendor scans, applying the same access scope and filter
|
|
36
|
+
* parameters as the list endpoint. The CSV contains every column shown on the Scan Details page: date,
|
|
37
|
+
* facility, system, zone, individual, company, scan type, recheck-after-screening, code, overridden, result,
|
|
38
|
+
* error, appointment, department, visit purpose, visit contact, estimated checkout time, notes, and the
|
|
39
|
+
* screening-required / screening-finished flags.
|
|
40
|
+
*
|
|
41
|
+
* Returns a `status_url` for polling until the export is ready, along with a `download_url` and `status_id`.
|
|
42
|
+
*/
|
|
43
|
+
async exportVendorScans(request, options) {
|
|
44
|
+
return unwrapAsync(vendorScansExportVendorScans(this, request, options));
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Get vendor scans export status
|
|
48
|
+
*
|
|
49
|
+
* @remarks
|
|
50
|
+
* Poll the status of an asynchronous vendor scans export job. When `ready` is true,
|
|
51
|
+
* the export is complete and can be downloaded via the download endpoint.
|
|
52
|
+
*/
|
|
53
|
+
async getVendorScansExportStatus(request, options) {
|
|
54
|
+
return unwrapAsync(vendorScansGetVendorScansExportStatus(this, request, options));
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Download vendor scans CSV
|
|
58
|
+
*
|
|
59
|
+
* @remarks
|
|
60
|
+
* Returns the exported vendor scans CSV via a 302 redirect to a short-lived presigned S3 URL.
|
|
61
|
+
* If the export is still being generated, returns 202 with a JSON `{ ready: false }` payload.
|
|
62
|
+
*/
|
|
63
|
+
async downloadVendorScansExport(request, options) {
|
|
64
|
+
return unwrapAsync(vendorScansDownloadVendorScansExport(this, request, options));
|
|
65
|
+
}
|
|
27
66
|
/**
|
|
28
67
|
* Get a vendor scan by ID
|
|
29
68
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vendorscans.js","sourceRoot":"","sources":["../../../src/sdk/vendorscans.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mCAAmC,EAAE,MAAM,iDAAiD,CAAC;AACtG,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,kCAAkC,EAAE,MAAM,gDAAgD,CAAC;AACpG,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAgB,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE5E,MAAM,OAAO,WAAY,SAAQ,SAAS;IACxC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,eAAe,CACnB,OAA0C,EAC1C,OAAwB;QAIxB,OAAO,oBAAoB,CAAC,0BAA0B,CACpD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,KAAK,CAAC,aAAa,CACjB,OAAwC,EACxC,OAAwB;QAExB,OAAO,WAAW,CAAC,wBAAwB,CACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,wBAAwB,CAC5B,OAAmD,EACnD,OAAwB;QAExB,OAAO,WAAW,CAAC,mCAAmC,CACpD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,uBAAuB,CAC3B,OAAkD,EAClD,OAAwB;QAExB,OAAO,WAAW,CAAC,kCAAkC,CACnD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,aAAa,CACjB,OAAwC,EACxC,OAAwB;QAExB,OAAO,WAAW,CAAC,wBAAwB,CACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"vendorscans.js","sourceRoot":"","sources":["../../../src/sdk/vendorscans.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAEL,oCAAoC,GACrC,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AACxF,OAAO,EAAE,mCAAmC,EAAE,MAAM,iDAAiD,CAAC;AACtG,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,qCAAqC,EAAE,MAAM,mDAAmD,CAAC;AAC1G,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,kCAAkC,EAAE,MAAM,gDAAgD,CAAC;AACpG,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAgB,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE5E,OAAO,EAAE,mCAAmC,EAAE,MAAM,kDAAkD,CAAC;AAEvG,MAAM,OAAO,WAAY,SAAQ,SAAS;IACxC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,eAAe,CACnB,OAA0C,EAC1C,OAAwB;QAIxB,OAAO,oBAAoB,CAAC,0BAA0B,CACpD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,iBAAiB,CACrB,OAA4C,EAC5C,OAAwB;QAExB,OAAO,WAAW,CAAC,4BAA4B,CAC7C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,0BAA0B,CAC9B,OAAqD,EACrD,OAAwB;QAExB,OAAO,WAAW,CAAC,qCAAqC,CACtD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,yBAAyB,CAC7B,OAAoD,EACpD,OAEC;QAED,OAAO,WAAW,CAAC,oCAAoC,CACrD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,KAAK,CAAC,aAAa,CACjB,OAAwC,EACxC,OAAwB;QAExB,OAAO,WAAW,CAAC,wBAAwB,CACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,wBAAwB,CAC5B,OAAmD,EACnD,OAAwB;QAExB,OAAO,WAAW,CAAC,mCAAmC,CACpD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,uBAAuB,CAC3B,OAAkD,EAClD,OAAwB;QAExB,OAAO,WAAW,CAAC,kCAAkC,CACnD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,aAAa,CACjB,OAAwC,EACxC,OAAwB;QAExB,OAAO,WAAW,CAAC,wBAAwB,CACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -112,7 +112,9 @@ test("Invoices Invoices Export", async () => {
|
|
|
112
112
|
},
|
|
113
113
|
});
|
|
114
114
|
|
|
115
|
-
const result = await greenSecurity.invoices.invoicesExport({
|
|
115
|
+
const result = await greenSecurity.invoices.invoicesExport({
|
|
116
|
+
desc: true,
|
|
117
|
+
});
|
|
116
118
|
expect(result).toBeDefined();
|
|
117
119
|
expect(result).toEqual({
|
|
118
120
|
statusUrl: "https://optimistic-skean.info",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import { expect, test } from "vitest";
|
|
5
|
+
import { assert, expect, it, test } from "vitest";
|
|
6
6
|
import { GreenSecurity } from "../index.js";
|
|
7
7
|
import { createTestHTTPClient } from "./testclient.js";
|
|
8
8
|
|
|
@@ -84,8 +84,26 @@ test("Organizations List Or Search Department Contacts", async () => {
|
|
|
84
84
|
});
|
|
85
85
|
});
|
|
86
86
|
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
it.skip("Organizations List Company Target Facilities", async () => {
|
|
88
|
+
assert.fail(
|
|
89
|
+
"incomplete test found please make sure to address the following errors: [`workflow step listCompanyTargetFacilities.test referencing operation listCompanyTargetFacilities not found in document`]",
|
|
90
|
+
);
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
it.skip("Organizations Create Company Target Facility", async () => {
|
|
94
|
+
assert.fail(
|
|
95
|
+
"incomplete test found please make sure to address the following errors: [`workflow step createCompanyTargetFacility.test referencing operation createCompanyTargetFacility not found in document`]",
|
|
96
|
+
);
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
it.skip("Organizations Delete Company Target Facility", async () => {
|
|
100
|
+
assert.fail(
|
|
101
|
+
"incomplete test found please make sure to address the following errors: [`workflow step deleteCompanyTargetFacility.test referencing operation deleteCompanyTargetFacility not found in document`]",
|
|
102
|
+
);
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
test("Organizations Export Company Target Facilities", async () => {
|
|
106
|
+
const testHttpClient = createTestHTTPClient("exportCompanyTargetFacilities");
|
|
89
107
|
|
|
90
108
|
const greenSecurity = new GreenSecurity({
|
|
91
109
|
serverURL: process.env["TEST_SERVER_URL"] ?? "https://localhost:3000/api",
|
|
@@ -95,32 +113,22 @@ test("Organizations List Company Target Facilities", async () => {
|
|
|
95
113
|
},
|
|
96
114
|
});
|
|
97
115
|
|
|
98
|
-
const result = await greenSecurity.organizations
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
],
|
|
103
|
-
desc: true,
|
|
104
|
-
itemsPerPage: 25,
|
|
105
|
-
});
|
|
116
|
+
const result = await greenSecurity.organizations
|
|
117
|
+
.exportCompanyTargetFacilities({
|
|
118
|
+
companyId: 927960,
|
|
119
|
+
});
|
|
106
120
|
expect(result).toBeDefined();
|
|
107
|
-
expect(result
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
sort: "job,title",
|
|
112
|
-
desc: 0,
|
|
113
|
-
itemCount: 228,
|
|
114
|
-
itemsPerPage: 112555,
|
|
115
|
-
page: 1,
|
|
116
|
-
useUrlParams: true,
|
|
117
|
-
},
|
|
118
|
-
items: [],
|
|
121
|
+
expect(result).toEqual({
|
|
122
|
+
statusUrl: "https://important-edge.name",
|
|
123
|
+
downloadUrl: "https://vengeful-coliseum.com",
|
|
124
|
+
statusId: "<id>",
|
|
119
125
|
});
|
|
120
126
|
});
|
|
121
127
|
|
|
122
|
-
test("Organizations
|
|
123
|
-
const testHttpClient = createTestHTTPClient(
|
|
128
|
+
test("Organizations Get Company Target Facilities Export Status", async () => {
|
|
129
|
+
const testHttpClient = createTestHTTPClient(
|
|
130
|
+
"getCompanyTargetFacilitiesExportStatus",
|
|
131
|
+
);
|
|
124
132
|
|
|
125
133
|
const greenSecurity = new GreenSecurity({
|
|
126
134
|
serverURL: process.env["TEST_SERVER_URL"] ?? "https://localhost:3000/api",
|
|
@@ -130,27 +138,22 @@ test("Organizations Create Company Target Facility", async () => {
|
|
|
130
138
|
},
|
|
131
139
|
});
|
|
132
140
|
|
|
133
|
-
const result = await greenSecurity.organizations
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
"
|
|
137
|
-
|
|
138
|
-
requestBody: {
|
|
139
|
-
facilityId: 253646,
|
|
140
|
-
},
|
|
141
|
-
});
|
|
141
|
+
const result = await greenSecurity.organizations
|
|
142
|
+
.getCompanyTargetFacilitiesExportStatus({
|
|
143
|
+
companyId: 157147,
|
|
144
|
+
id: "<id>",
|
|
145
|
+
});
|
|
142
146
|
expect(result).toBeDefined();
|
|
143
147
|
expect(result).toEqual({
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
facility: 582706,
|
|
147
|
-
status: "<value>",
|
|
148
|
-
},
|
|
148
|
+
ready: false,
|
|
149
|
+
statusId: "<id>",
|
|
149
150
|
});
|
|
150
151
|
});
|
|
151
152
|
|
|
152
|
-
test("Organizations
|
|
153
|
-
const testHttpClient = createTestHTTPClient(
|
|
153
|
+
test("Organizations Download Company Target Facilities Export", async () => {
|
|
154
|
+
const testHttpClient = createTestHTTPClient(
|
|
155
|
+
"downloadCompanyTargetFacilitiesExport",
|
|
156
|
+
);
|
|
154
157
|
|
|
155
158
|
const greenSecurity = new GreenSecurity({
|
|
156
159
|
serverURL: process.env["TEST_SERVER_URL"] ?? "https://localhost:3000/api",
|
|
@@ -160,10 +163,12 @@ test("Organizations Delete Company Target Facility", async () => {
|
|
|
160
163
|
},
|
|
161
164
|
});
|
|
162
165
|
|
|
163
|
-
const result = await greenSecurity.organizations
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
166
|
+
const result = await greenSecurity.organizations
|
|
167
|
+
.downloadCompanyTargetFacilitiesExport({
|
|
168
|
+
companyId: 673655,
|
|
169
|
+
id: "<id>",
|
|
170
|
+
});
|
|
167
171
|
expect(result).toBeDefined();
|
|
168
|
-
expect(result).
|
|
172
|
+
expect(result!.result).toBeDefined();
|
|
173
|
+
expect(result!.result).toEqual({});
|
|
169
174
|
});
|
|
@@ -1215,7 +1215,9 @@ test("Vendors Vendors Export", async () => {
|
|
|
1215
1215
|
},
|
|
1216
1216
|
});
|
|
1217
1217
|
|
|
1218
|
-
const result = await greenSecurity.vendors.vendorsExport({
|
|
1218
|
+
const result = await greenSecurity.vendors.vendorsExport({
|
|
1219
|
+
desc: true,
|
|
1220
|
+
});
|
|
1219
1221
|
expect(result).toBeDefined();
|
|
1220
1222
|
expect(result).toEqual({
|
|
1221
1223
|
statusUrl: "https://plump-lava.info/",
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
import { expect, test } from "vitest";
|
|
6
6
|
import { GreenSecurity } from "../index.js";
|
|
7
|
+
import { DownloadVendorScansExportAcceptEnum } from "../sdk/vendorscans.js";
|
|
8
|
+
import { filesToByteArray, streamToByteArray } from "./files.js";
|
|
7
9
|
import { createTestHTTPClient } from "./testclient.js";
|
|
8
10
|
|
|
9
11
|
test("Vendor Scans Vendor Scan Out", async () => {
|
|
@@ -128,3 +130,71 @@ test("Vendor Scans Get Vendor Scan", async () => {
|
|
|
128
130
|
zone: 997496,
|
|
129
131
|
});
|
|
130
132
|
});
|
|
133
|
+
|
|
134
|
+
test("Vendor Scans Export Vendor Scans", async () => {
|
|
135
|
+
const testHttpClient = createTestHTTPClient("exportVendorScans");
|
|
136
|
+
|
|
137
|
+
const greenSecurity = new GreenSecurity({
|
|
138
|
+
serverURL: process.env["TEST_SERVER_URL"] ?? "https://localhost:3000/api",
|
|
139
|
+
httpClient: testHttpClient,
|
|
140
|
+
security: {
|
|
141
|
+
token: process.env["GREEN_SECURITY_TOKEN"] ?? "value",
|
|
142
|
+
},
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
const result = await greenSecurity.vendorScans.exportVendorScans({
|
|
146
|
+
desc: true,
|
|
147
|
+
});
|
|
148
|
+
expect(result).toBeDefined();
|
|
149
|
+
expect(result).toEqual({
|
|
150
|
+
statusUrl: "https://good-decision.com",
|
|
151
|
+
downloadUrl: "https://slight-typeface.name",
|
|
152
|
+
statusId: "<id>",
|
|
153
|
+
});
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
test("Vendor Scans Get Vendor Scans Export Status", async () => {
|
|
157
|
+
const testHttpClient = createTestHTTPClient("getVendorScansExportStatus");
|
|
158
|
+
|
|
159
|
+
const greenSecurity = new GreenSecurity({
|
|
160
|
+
serverURL: process.env["TEST_SERVER_URL"] ?? "https://localhost:3000/api",
|
|
161
|
+
httpClient: testHttpClient,
|
|
162
|
+
security: {
|
|
163
|
+
token: process.env["GREEN_SECURITY_TOKEN"] ?? "value",
|
|
164
|
+
},
|
|
165
|
+
});
|
|
166
|
+
|
|
167
|
+
const result = await greenSecurity.vendorScans.getVendorScansExportStatus({
|
|
168
|
+
id: "<id>",
|
|
169
|
+
});
|
|
170
|
+
expect(result).toBeDefined();
|
|
171
|
+
expect(result).toEqual({
|
|
172
|
+
ready: false,
|
|
173
|
+
statusId: "<id>",
|
|
174
|
+
});
|
|
175
|
+
});
|
|
176
|
+
|
|
177
|
+
test("Vendor Scans Download Vendor Scans Export", async () => {
|
|
178
|
+
const testHttpClient = createTestHTTPClient("downloadVendorScansExport");
|
|
179
|
+
|
|
180
|
+
const greenSecurity = new GreenSecurity({
|
|
181
|
+
serverURL: process.env["TEST_SERVER_URL"] ?? "https://localhost:3000/api",
|
|
182
|
+
httpClient: testHttpClient,
|
|
183
|
+
security: {
|
|
184
|
+
token: process.env["GREEN_SECURITY_TOKEN"] ?? "value",
|
|
185
|
+
},
|
|
186
|
+
});
|
|
187
|
+
|
|
188
|
+
const result = await greenSecurity.vendorScans.downloadVendorScansExport({
|
|
189
|
+
id: "<id>",
|
|
190
|
+
}, {
|
|
191
|
+
acceptHeaderOverride: DownloadVendorScansExportAcceptEnum.textCsv,
|
|
192
|
+
});
|
|
193
|
+
expect(result).toBeDefined();
|
|
194
|
+
expect(result!.result).toBeDefined();
|
|
195
|
+
expect(
|
|
196
|
+
new Uint8Array(
|
|
197
|
+
await streamToByteArray(result!.result as ReadableStream<Uint8Array>),
|
|
198
|
+
),
|
|
199
|
+
).toEqual(await filesToByteArray(".speakeasy/testfiles/example.file"));
|
|
200
|
+
});
|
|
@@ -20,7 +20,7 @@ test("Webhooks List All Webhook Endpoints", async () => {
|
|
|
20
20
|
const testWebhookListForVendorUserResult = await greenSecurity.webhooks
|
|
21
21
|
.listAllWebhookEndpoints({
|
|
22
22
|
itemsPerPage: 25,
|
|
23
|
-
desc:
|
|
23
|
+
desc: 0,
|
|
24
24
|
sort: "",
|
|
25
25
|
});
|
|
26
26
|
expect(testWebhookListForVendorUserResult).toBeDefined();
|