@greensecurity/javascript-sdk 0.44.0-beta.11 → 0.44.0-beta.12
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 +3 -29
- 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/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- 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 +3 -29
- 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/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- 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 +3 -29
- 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/lib/config.ts +2 -2
- 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
|
@@ -11,6 +11,7 @@ import { safeParse } from "../lib/schemas.js";
|
|
|
11
11
|
import { RequestOptions } from "../lib/sdks.js";
|
|
12
12
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
13
|
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import * as components from "../models/components/index.js";
|
|
14
15
|
import { GreenSecurityError } from "../models/errors/greensecurityerror.js";
|
|
15
16
|
import {
|
|
16
17
|
ConnectionError,
|
|
@@ -43,7 +44,7 @@ export function vendorsVendorsExport(
|
|
|
43
44
|
options?: RequestOptions,
|
|
44
45
|
): APIPromise<
|
|
45
46
|
Result<
|
|
46
|
-
|
|
47
|
+
components.CsvExportEnqueuedResponse,
|
|
47
48
|
| errors.ApiErrorResponse
|
|
48
49
|
| GreenSecurityError
|
|
49
50
|
| ResponseValidationError
|
|
@@ -69,7 +70,7 @@ async function $do(
|
|
|
69
70
|
): Promise<
|
|
70
71
|
[
|
|
71
72
|
Result<
|
|
72
|
-
|
|
73
|
+
components.CsvExportEnqueuedResponse,
|
|
73
74
|
| errors.ApiErrorResponse
|
|
74
75
|
| GreenSecurityError
|
|
75
76
|
| ResponseValidationError
|
|
@@ -183,7 +184,7 @@ async function $do(
|
|
|
183
184
|
};
|
|
184
185
|
|
|
185
186
|
const [result] = await M.match<
|
|
186
|
-
|
|
187
|
+
components.CsvExportEnqueuedResponse,
|
|
187
188
|
| errors.ApiErrorResponse
|
|
188
189
|
| GreenSecurityError
|
|
189
190
|
| ResponseValidationError
|
|
@@ -194,7 +195,7 @@ async function $do(
|
|
|
194
195
|
| UnexpectedClientError
|
|
195
196
|
| SDKValidationError
|
|
196
197
|
>(
|
|
197
|
-
M.json(200,
|
|
198
|
+
M.json(200, components.CsvExportEnqueuedResponse$inboundSchema),
|
|
198
199
|
M.jsonErr([400, 401, 403, 404], errors.ApiErrorResponse$inboundSchema),
|
|
199
200
|
M.fail("4XX"),
|
|
200
201
|
M.fail([500, "5XX"]),
|
package/src/lib/config.ts
CHANGED
|
@@ -80,8 +80,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
80
80
|
export const SDK_METADATA = {
|
|
81
81
|
language: "typescript",
|
|
82
82
|
openapiDocVersion: "0.43.1",
|
|
83
|
-
sdkVersion: "0.44.0-beta.
|
|
83
|
+
sdkVersion: "0.44.0-beta.12",
|
|
84
84
|
genVersion: "2.893.0",
|
|
85
85
|
userAgent:
|
|
86
|
-
"speakeasy-sdk/typescript 0.44.0-beta.
|
|
86
|
+
"speakeasy-sdk/typescript 0.44.0-beta.12 2.893.0 0.43.1 @greensecurity/javascript-sdk",
|
|
87
87
|
} as const;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as types from "../../types/primitives.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Returned when an asynchronous CSV export job is enqueued. Poll `status_url` until the export is ready,
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* then retrieve the file from `download_url`.
|
|
17
|
+
*/
|
|
18
|
+
export type CsvExportEnqueuedResponse = {
|
|
19
|
+
/**
|
|
20
|
+
* URL to poll for the status of the export job.
|
|
21
|
+
*/
|
|
22
|
+
statusUrl: string;
|
|
23
|
+
/**
|
|
24
|
+
* URL to download the exported CSV file once the job is ready.
|
|
25
|
+
*/
|
|
26
|
+
downloadUrl: string;
|
|
27
|
+
/**
|
|
28
|
+
* Token identifying the export job, used to check its status.
|
|
29
|
+
*/
|
|
30
|
+
statusId: string;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const CsvExportEnqueuedResponse$inboundSchema: z.ZodType<
|
|
35
|
+
CsvExportEnqueuedResponse,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
unknown
|
|
38
|
+
> = z.object({
|
|
39
|
+
status_url: types.string(),
|
|
40
|
+
download_url: types.string(),
|
|
41
|
+
status_id: types.string(),
|
|
42
|
+
}).transform((v) => {
|
|
43
|
+
return remap$(v, {
|
|
44
|
+
"status_url": "statusUrl",
|
|
45
|
+
"download_url": "downloadUrl",
|
|
46
|
+
"status_id": "statusId",
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
export function csvExportEnqueuedResponseFromJSON(
|
|
51
|
+
jsonString: string,
|
|
52
|
+
): SafeParseResult<CsvExportEnqueuedResponse, SDKValidationError> {
|
|
53
|
+
return safeParse(
|
|
54
|
+
jsonString,
|
|
55
|
+
(x) => CsvExportEnqueuedResponse$inboundSchema.parse(JSON.parse(x)),
|
|
56
|
+
`Failed to parse 'CsvExportEnqueuedResponse' from JSON`,
|
|
57
|
+
);
|
|
58
|
+
}
|
|
@@ -10,7 +10,6 @@ export * from "./company.js";
|
|
|
10
10
|
export * from "./companycredentiallistitem.js";
|
|
11
11
|
export * from "./companylookup.js";
|
|
12
12
|
export * from "./companymanager.js";
|
|
13
|
-
export * from "./companytargetfacility.js";
|
|
14
13
|
export * from "./companyvendorfield.js";
|
|
15
14
|
export * from "./companyvendortyperestriction.js";
|
|
16
15
|
export * from "./contact.js";
|
|
@@ -19,6 +18,7 @@ export * from "./credential.js";
|
|
|
19
18
|
export * from "./credentialdocument.js";
|
|
20
19
|
export * from "./credentialstatus.js";
|
|
21
20
|
export * from "./credit.js";
|
|
21
|
+
export * from "./csvexportenqueuedresponse.js";
|
|
22
22
|
export * from "./datarequest.js";
|
|
23
23
|
export * from "./deleteapiresponse.js";
|
|
24
24
|
export * from "./department.js";
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as types from "../../types/primitives.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type DownloadCompanyTargetFacilitiesExportRequest = {
|
|
13
|
+
/**
|
|
14
|
+
* The company whose export is being downloaded.
|
|
15
|
+
*/
|
|
16
|
+
companyId: number;
|
|
17
|
+
/**
|
|
18
|
+
* Export id returned by the export endpoint (e.g. `ctf_export_42`).
|
|
19
|
+
*/
|
|
20
|
+
id: string;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Export is still being generated
|
|
25
|
+
*/
|
|
26
|
+
export type DownloadCompanyTargetFacilitiesExportResponseBody = {
|
|
27
|
+
/**
|
|
28
|
+
* Always `false` when returned by this endpoint.
|
|
29
|
+
*/
|
|
30
|
+
ready?: boolean | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Human-readable message about the export status.
|
|
33
|
+
*/
|
|
34
|
+
message?: string | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export type DownloadCompanyTargetFacilitiesExportResponse = {
|
|
38
|
+
headers: { [k: string]: Array<string> };
|
|
39
|
+
result?: DownloadCompanyTargetFacilitiesExportResponseBody | undefined;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export type DownloadCompanyTargetFacilitiesExportRequest$Outbound = {
|
|
44
|
+
company_id: number;
|
|
45
|
+
id: string;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const DownloadCompanyTargetFacilitiesExportRequest$outboundSchema:
|
|
50
|
+
z.ZodType<
|
|
51
|
+
DownloadCompanyTargetFacilitiesExportRequest$Outbound,
|
|
52
|
+
z.ZodTypeDef,
|
|
53
|
+
DownloadCompanyTargetFacilitiesExportRequest
|
|
54
|
+
> = z.object({
|
|
55
|
+
companyId: z.number().int(),
|
|
56
|
+
id: z.string(),
|
|
57
|
+
}).transform((v) => {
|
|
58
|
+
return remap$(v, {
|
|
59
|
+
companyId: "company_id",
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
export function downloadCompanyTargetFacilitiesExportRequestToJSON(
|
|
64
|
+
downloadCompanyTargetFacilitiesExportRequest:
|
|
65
|
+
DownloadCompanyTargetFacilitiesExportRequest,
|
|
66
|
+
): string {
|
|
67
|
+
return JSON.stringify(
|
|
68
|
+
DownloadCompanyTargetFacilitiesExportRequest$outboundSchema.parse(
|
|
69
|
+
downloadCompanyTargetFacilitiesExportRequest,
|
|
70
|
+
),
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/** @internal */
|
|
75
|
+
export const DownloadCompanyTargetFacilitiesExportResponseBody$inboundSchema:
|
|
76
|
+
z.ZodType<
|
|
77
|
+
DownloadCompanyTargetFacilitiesExportResponseBody,
|
|
78
|
+
z.ZodTypeDef,
|
|
79
|
+
unknown
|
|
80
|
+
> = z.object({
|
|
81
|
+
ready: types.optional(types.boolean()),
|
|
82
|
+
message: types.optional(types.string()),
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
export function downloadCompanyTargetFacilitiesExportResponseBodyFromJSON(
|
|
86
|
+
jsonString: string,
|
|
87
|
+
): SafeParseResult<
|
|
88
|
+
DownloadCompanyTargetFacilitiesExportResponseBody,
|
|
89
|
+
SDKValidationError
|
|
90
|
+
> {
|
|
91
|
+
return safeParse(
|
|
92
|
+
jsonString,
|
|
93
|
+
(x) =>
|
|
94
|
+
DownloadCompanyTargetFacilitiesExportResponseBody$inboundSchema.parse(
|
|
95
|
+
JSON.parse(x),
|
|
96
|
+
),
|
|
97
|
+
`Failed to parse 'DownloadCompanyTargetFacilitiesExportResponseBody' from JSON`,
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/** @internal */
|
|
102
|
+
export const DownloadCompanyTargetFacilitiesExportResponse$inboundSchema:
|
|
103
|
+
z.ZodType<
|
|
104
|
+
DownloadCompanyTargetFacilitiesExportResponse,
|
|
105
|
+
z.ZodTypeDef,
|
|
106
|
+
unknown
|
|
107
|
+
> = z.object({
|
|
108
|
+
Headers: z.record(z.array(z.string())).default({}),
|
|
109
|
+
Result: types.optional(
|
|
110
|
+
z.lazy(() =>
|
|
111
|
+
DownloadCompanyTargetFacilitiesExportResponseBody$inboundSchema
|
|
112
|
+
),
|
|
113
|
+
),
|
|
114
|
+
}).transform((v) => {
|
|
115
|
+
return remap$(v, {
|
|
116
|
+
"Headers": "headers",
|
|
117
|
+
"Result": "result",
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
export function downloadCompanyTargetFacilitiesExportResponseFromJSON(
|
|
122
|
+
jsonString: string,
|
|
123
|
+
): SafeParseResult<
|
|
124
|
+
DownloadCompanyTargetFacilitiesExportResponse,
|
|
125
|
+
SDKValidationError
|
|
126
|
+
> {
|
|
127
|
+
return safeParse(
|
|
128
|
+
jsonString,
|
|
129
|
+
(x) =>
|
|
130
|
+
DownloadCompanyTargetFacilitiesExportResponse$inboundSchema.parse(
|
|
131
|
+
JSON.parse(x),
|
|
132
|
+
),
|
|
133
|
+
`Failed to parse 'DownloadCompanyTargetFacilitiesExportResponse' from JSON`,
|
|
134
|
+
);
|
|
135
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as types from "../../types/primitives.js";
|
|
10
|
+
import { smartUnion } from "../../types/smartUnion.js";
|
|
11
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
|
+
|
|
13
|
+
export type DownloadVendorScansExportRequest = {
|
|
14
|
+
/**
|
|
15
|
+
* Export id returned by the export vendor scans endpoint.
|
|
16
|
+
*/
|
|
17
|
+
id: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Export is still being generated
|
|
22
|
+
*/
|
|
23
|
+
export type DownloadVendorScansExportResponseBody = {
|
|
24
|
+
/**
|
|
25
|
+
* Always `false` when returned by this endpoint.
|
|
26
|
+
*/
|
|
27
|
+
ready?: boolean | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Human-readable message about the export status.
|
|
30
|
+
*/
|
|
31
|
+
message?: string | undefined;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export type DownloadVendorScansExportResponseResult =
|
|
35
|
+
| ReadableStream<Uint8Array>
|
|
36
|
+
| DownloadVendorScansExportResponseBody;
|
|
37
|
+
|
|
38
|
+
export type DownloadVendorScansExportResponse = {
|
|
39
|
+
headers: { [k: string]: Array<string> };
|
|
40
|
+
result?:
|
|
41
|
+
| ReadableStream<Uint8Array>
|
|
42
|
+
| DownloadVendorScansExportResponseBody
|
|
43
|
+
| undefined;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export type DownloadVendorScansExportRequest$Outbound = {
|
|
48
|
+
id: string;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
/** @internal */
|
|
52
|
+
export const DownloadVendorScansExportRequest$outboundSchema: z.ZodType<
|
|
53
|
+
DownloadVendorScansExportRequest$Outbound,
|
|
54
|
+
z.ZodTypeDef,
|
|
55
|
+
DownloadVendorScansExportRequest
|
|
56
|
+
> = z.object({
|
|
57
|
+
id: z.string(),
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
export function downloadVendorScansExportRequestToJSON(
|
|
61
|
+
downloadVendorScansExportRequest: DownloadVendorScansExportRequest,
|
|
62
|
+
): string {
|
|
63
|
+
return JSON.stringify(
|
|
64
|
+
DownloadVendorScansExportRequest$outboundSchema.parse(
|
|
65
|
+
downloadVendorScansExportRequest,
|
|
66
|
+
),
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/** @internal */
|
|
71
|
+
export const DownloadVendorScansExportResponseBody$inboundSchema: z.ZodType<
|
|
72
|
+
DownloadVendorScansExportResponseBody,
|
|
73
|
+
z.ZodTypeDef,
|
|
74
|
+
unknown
|
|
75
|
+
> = z.object({
|
|
76
|
+
ready: types.optional(types.boolean()),
|
|
77
|
+
message: types.optional(types.string()),
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
export function downloadVendorScansExportResponseBodyFromJSON(
|
|
81
|
+
jsonString: string,
|
|
82
|
+
): SafeParseResult<DownloadVendorScansExportResponseBody, SDKValidationError> {
|
|
83
|
+
return safeParse(
|
|
84
|
+
jsonString,
|
|
85
|
+
(x) =>
|
|
86
|
+
DownloadVendorScansExportResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
87
|
+
`Failed to parse 'DownloadVendorScansExportResponseBody' from JSON`,
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/** @internal */
|
|
92
|
+
export const DownloadVendorScansExportResponseResult$inboundSchema: z.ZodType<
|
|
93
|
+
DownloadVendorScansExportResponseResult,
|
|
94
|
+
z.ZodTypeDef,
|
|
95
|
+
unknown
|
|
96
|
+
> = smartUnion([
|
|
97
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
98
|
+
z.lazy(() => DownloadVendorScansExportResponseBody$inboundSchema),
|
|
99
|
+
]);
|
|
100
|
+
|
|
101
|
+
export function downloadVendorScansExportResponseResultFromJSON(
|
|
102
|
+
jsonString: string,
|
|
103
|
+
): SafeParseResult<
|
|
104
|
+
DownloadVendorScansExportResponseResult,
|
|
105
|
+
SDKValidationError
|
|
106
|
+
> {
|
|
107
|
+
return safeParse(
|
|
108
|
+
jsonString,
|
|
109
|
+
(x) =>
|
|
110
|
+
DownloadVendorScansExportResponseResult$inboundSchema.parse(
|
|
111
|
+
JSON.parse(x),
|
|
112
|
+
),
|
|
113
|
+
`Failed to parse 'DownloadVendorScansExportResponseResult' from JSON`,
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/** @internal */
|
|
118
|
+
export const DownloadVendorScansExportResponse$inboundSchema: z.ZodType<
|
|
119
|
+
DownloadVendorScansExportResponse,
|
|
120
|
+
z.ZodTypeDef,
|
|
121
|
+
unknown
|
|
122
|
+
> = z.object({
|
|
123
|
+
Headers: z.record(z.array(z.string())).default({}),
|
|
124
|
+
Result: types.optional(
|
|
125
|
+
smartUnion([
|
|
126
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
127
|
+
z.lazy(() => DownloadVendorScansExportResponseBody$inboundSchema),
|
|
128
|
+
]),
|
|
129
|
+
),
|
|
130
|
+
}).transform((v) => {
|
|
131
|
+
return remap$(v, {
|
|
132
|
+
"Headers": "headers",
|
|
133
|
+
"Result": "result",
|
|
134
|
+
});
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
export function downloadVendorScansExportResponseFromJSON(
|
|
138
|
+
jsonString: string,
|
|
139
|
+
): SafeParseResult<DownloadVendorScansExportResponse, SDKValidationError> {
|
|
140
|
+
return safeParse(
|
|
141
|
+
jsonString,
|
|
142
|
+
(x) => DownloadVendorScansExportResponse$inboundSchema.parse(JSON.parse(x)),
|
|
143
|
+
`Failed to parse 'DownloadVendorScansExportResponse' from JSON`,
|
|
144
|
+
);
|
|
145
|
+
}
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import * as types from "../../types/primitives.js";
|
|
11
|
+
import { smartUnion } from "../../types/smartUnion.js";
|
|
12
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Filter by link status.
|
|
16
|
+
*/
|
|
17
|
+
export const QueryParamStatus = {
|
|
18
|
+
Pending: "pending",
|
|
19
|
+
Approved: "approved",
|
|
20
|
+
Denied: "denied",
|
|
21
|
+
} as const;
|
|
22
|
+
/**
|
|
23
|
+
* Filter by link status.
|
|
24
|
+
*/
|
|
25
|
+
export type QueryParamStatus = ClosedEnum<typeof QueryParamStatus>;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* `true` returns only facilities the company has at least one individual targeting; `false` returns only those with none.
|
|
29
|
+
*/
|
|
30
|
+
export const HasIndividual = {
|
|
31
|
+
True: "true",
|
|
32
|
+
False: "false",
|
|
33
|
+
} as const;
|
|
34
|
+
/**
|
|
35
|
+
* `true` returns only facilities the company has at least one individual targeting; `false` returns only those with none.
|
|
36
|
+
*/
|
|
37
|
+
export type HasIndividual = ClosedEnum<typeof HasIndividual>;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* `true` returns only facilities the company has at least one *active* individual targeting (active = vendor's credentialing subscription is active); `false` returns only those with none.
|
|
41
|
+
*/
|
|
42
|
+
export const HasActiveIndividual = {
|
|
43
|
+
True: "true",
|
|
44
|
+
False: "false",
|
|
45
|
+
} as const;
|
|
46
|
+
/**
|
|
47
|
+
* `true` returns only facilities the company has at least one *active* individual targeting (active = vendor's credentialing subscription is active); `false` returns only those with none.
|
|
48
|
+
*/
|
|
49
|
+
export type HasActiveIndividual = ClosedEnum<typeof HasActiveIndividual>;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Sort field used by the exporter when ordering rows in the CSV. Defaults to `facility_name`.
|
|
53
|
+
*/
|
|
54
|
+
export const QueryParamSort = {
|
|
55
|
+
Id: "id",
|
|
56
|
+
FacilityName: "facility_name",
|
|
57
|
+
Status: "status",
|
|
58
|
+
DateCreated: "date_created",
|
|
59
|
+
} as const;
|
|
60
|
+
/**
|
|
61
|
+
* Sort field used by the exporter when ordering rows in the CSV. Defaults to `facility_name`.
|
|
62
|
+
*/
|
|
63
|
+
export type QueryParamSort = ClosedEnum<typeof QueryParamSort>;
|
|
64
|
+
|
|
65
|
+
export const Two = {
|
|
66
|
+
Zero: 0,
|
|
67
|
+
One: 1,
|
|
68
|
+
} as const;
|
|
69
|
+
export type Two = ClosedEnum<typeof Two>;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Sort descending flag.
|
|
73
|
+
*/
|
|
74
|
+
export type Desc = boolean | Two;
|
|
75
|
+
|
|
76
|
+
export type ExportCompanyTargetFacilitiesRequest = {
|
|
77
|
+
/**
|
|
78
|
+
* The company whose target facilities to export.
|
|
79
|
+
*/
|
|
80
|
+
companyId: number;
|
|
81
|
+
/**
|
|
82
|
+
* Filter by link status.
|
|
83
|
+
*/
|
|
84
|
+
status?: QueryParamStatus | undefined;
|
|
85
|
+
/**
|
|
86
|
+
* `true` returns only facilities the company has at least one individual targeting; `false` returns only those with none.
|
|
87
|
+
*/
|
|
88
|
+
hasIndividual?: HasIndividual | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* `true` returns only facilities the company has at least one *active* individual targeting (active = vendor's credentialing subscription is active); `false` returns only those with none.
|
|
91
|
+
*/
|
|
92
|
+
hasActiveIndividual?: HasActiveIndividual | undefined;
|
|
93
|
+
/**
|
|
94
|
+
* Case-insensitive partial match on facility name.
|
|
95
|
+
*/
|
|
96
|
+
facilityNameLike?: string | undefined;
|
|
97
|
+
/**
|
|
98
|
+
* Sort field used by the exporter when ordering rows in the CSV. Defaults to `facility_name`.
|
|
99
|
+
*/
|
|
100
|
+
sort?: QueryParamSort | undefined;
|
|
101
|
+
/**
|
|
102
|
+
* Sort descending flag.
|
|
103
|
+
*/
|
|
104
|
+
desc?: boolean | Two | undefined;
|
|
105
|
+
/**
|
|
106
|
+
* Page size used by the exporter while paginating results server-side. Does not affect the size of the CSV (all matching rows are included).
|
|
107
|
+
*/
|
|
108
|
+
itemsPerPage?: number | undefined;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Export request accepted and job enqueued.
|
|
113
|
+
*/
|
|
114
|
+
export type ExportCompanyTargetFacilitiesResponseBody = {
|
|
115
|
+
/**
|
|
116
|
+
* URL to poll for export status.
|
|
117
|
+
*/
|
|
118
|
+
statusUrl: string;
|
|
119
|
+
/**
|
|
120
|
+
* URL to download the exported file when ready.
|
|
121
|
+
*/
|
|
122
|
+
downloadUrl: string;
|
|
123
|
+
/**
|
|
124
|
+
* Status token used to check the export status.
|
|
125
|
+
*/
|
|
126
|
+
statusId: string;
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
/** @internal */
|
|
130
|
+
export const QueryParamStatus$outboundSchema: z.ZodNativeEnum<
|
|
131
|
+
typeof QueryParamStatus
|
|
132
|
+
> = z.nativeEnum(QueryParamStatus);
|
|
133
|
+
|
|
134
|
+
/** @internal */
|
|
135
|
+
export const HasIndividual$outboundSchema: z.ZodNativeEnum<
|
|
136
|
+
typeof HasIndividual
|
|
137
|
+
> = z.nativeEnum(HasIndividual);
|
|
138
|
+
|
|
139
|
+
/** @internal */
|
|
140
|
+
export const HasActiveIndividual$outboundSchema: z.ZodNativeEnum<
|
|
141
|
+
typeof HasActiveIndividual
|
|
142
|
+
> = z.nativeEnum(HasActiveIndividual);
|
|
143
|
+
|
|
144
|
+
/** @internal */
|
|
145
|
+
export const QueryParamSort$outboundSchema: z.ZodNativeEnum<
|
|
146
|
+
typeof QueryParamSort
|
|
147
|
+
> = z.nativeEnum(QueryParamSort);
|
|
148
|
+
|
|
149
|
+
/** @internal */
|
|
150
|
+
export const Two$outboundSchema: z.ZodNativeEnum<typeof Two> = z.nativeEnum(
|
|
151
|
+
Two,
|
|
152
|
+
);
|
|
153
|
+
|
|
154
|
+
/** @internal */
|
|
155
|
+
export type Desc$Outbound = boolean | number;
|
|
156
|
+
|
|
157
|
+
/** @internal */
|
|
158
|
+
export const Desc$outboundSchema: z.ZodType<Desc$Outbound, z.ZodTypeDef, Desc> =
|
|
159
|
+
smartUnion([z.boolean(), Two$outboundSchema]);
|
|
160
|
+
|
|
161
|
+
export function descToJSON(desc: Desc): string {
|
|
162
|
+
return JSON.stringify(Desc$outboundSchema.parse(desc));
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/** @internal */
|
|
166
|
+
export type ExportCompanyTargetFacilitiesRequest$Outbound = {
|
|
167
|
+
company_id: number;
|
|
168
|
+
status?: string | undefined;
|
|
169
|
+
has_individual?: string | undefined;
|
|
170
|
+
has_active_individual?: string | undefined;
|
|
171
|
+
facility_name_like?: string | undefined;
|
|
172
|
+
sort?: string | undefined;
|
|
173
|
+
desc?: boolean | number | undefined;
|
|
174
|
+
items_per_page?: number | undefined;
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
/** @internal */
|
|
178
|
+
export const ExportCompanyTargetFacilitiesRequest$outboundSchema: z.ZodType<
|
|
179
|
+
ExportCompanyTargetFacilitiesRequest$Outbound,
|
|
180
|
+
z.ZodTypeDef,
|
|
181
|
+
ExportCompanyTargetFacilitiesRequest
|
|
182
|
+
> = z.object({
|
|
183
|
+
companyId: z.number().int(),
|
|
184
|
+
status: QueryParamStatus$outboundSchema.optional(),
|
|
185
|
+
hasIndividual: HasIndividual$outboundSchema.optional(),
|
|
186
|
+
hasActiveIndividual: HasActiveIndividual$outboundSchema.optional(),
|
|
187
|
+
facilityNameLike: z.string().optional(),
|
|
188
|
+
sort: QueryParamSort$outboundSchema.optional(),
|
|
189
|
+
desc: smartUnion([z.boolean(), Two$outboundSchema]).optional(),
|
|
190
|
+
itemsPerPage: z.number().int().optional(),
|
|
191
|
+
}).transform((v) => {
|
|
192
|
+
return remap$(v, {
|
|
193
|
+
companyId: "company_id",
|
|
194
|
+
hasIndividual: "has_individual",
|
|
195
|
+
hasActiveIndividual: "has_active_individual",
|
|
196
|
+
facilityNameLike: "facility_name_like",
|
|
197
|
+
itemsPerPage: "items_per_page",
|
|
198
|
+
});
|
|
199
|
+
});
|
|
200
|
+
|
|
201
|
+
export function exportCompanyTargetFacilitiesRequestToJSON(
|
|
202
|
+
exportCompanyTargetFacilitiesRequest: ExportCompanyTargetFacilitiesRequest,
|
|
203
|
+
): string {
|
|
204
|
+
return JSON.stringify(
|
|
205
|
+
ExportCompanyTargetFacilitiesRequest$outboundSchema.parse(
|
|
206
|
+
exportCompanyTargetFacilitiesRequest,
|
|
207
|
+
),
|
|
208
|
+
);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/** @internal */
|
|
212
|
+
export const ExportCompanyTargetFacilitiesResponseBody$inboundSchema: z.ZodType<
|
|
213
|
+
ExportCompanyTargetFacilitiesResponseBody,
|
|
214
|
+
z.ZodTypeDef,
|
|
215
|
+
unknown
|
|
216
|
+
> = z.object({
|
|
217
|
+
status_url: types.string(),
|
|
218
|
+
download_url: types.string(),
|
|
219
|
+
status_id: types.string(),
|
|
220
|
+
}).transform((v) => {
|
|
221
|
+
return remap$(v, {
|
|
222
|
+
"status_url": "statusUrl",
|
|
223
|
+
"download_url": "downloadUrl",
|
|
224
|
+
"status_id": "statusId",
|
|
225
|
+
});
|
|
226
|
+
});
|
|
227
|
+
|
|
228
|
+
export function exportCompanyTargetFacilitiesResponseBodyFromJSON(
|
|
229
|
+
jsonString: string,
|
|
230
|
+
): SafeParseResult<
|
|
231
|
+
ExportCompanyTargetFacilitiesResponseBody,
|
|
232
|
+
SDKValidationError
|
|
233
|
+
> {
|
|
234
|
+
return safeParse(
|
|
235
|
+
jsonString,
|
|
236
|
+
(x) =>
|
|
237
|
+
ExportCompanyTargetFacilitiesResponseBody$inboundSchema.parse(
|
|
238
|
+
JSON.parse(x),
|
|
239
|
+
),
|
|
240
|
+
`Failed to parse 'ExportCompanyTargetFacilitiesResponseBody' from JSON`,
|
|
241
|
+
);
|
|
242
|
+
}
|