@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
|
@@ -0,0 +1,163 @@
|
|
|
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 { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import * as components from "../components/index.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Sort field used by the exporter when ordering rows in the generated CSV. One of:
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
* `full_name`, `date_scanned`, `result`, `scan_type`. Defaults to `date_scanned`.
|
|
15
|
+
*/
|
|
16
|
+
export const ExportVendorScansQueryParamSort = {
|
|
17
|
+
FullName: "full_name",
|
|
18
|
+
DateScanned: "date_scanned",
|
|
19
|
+
Result: "result",
|
|
20
|
+
ScanType: "scan_type",
|
|
21
|
+
} as const;
|
|
22
|
+
/**
|
|
23
|
+
* Sort field used by the exporter when ordering rows in the generated CSV. One of:
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* `full_name`, `date_scanned`, `result`, `scan_type`. Defaults to `date_scanned`.
|
|
27
|
+
*/
|
|
28
|
+
export type ExportVendorScansQueryParamSort = ClosedEnum<
|
|
29
|
+
typeof ExportVendorScansQueryParamSort
|
|
30
|
+
>;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Filter by scan type. One of: `in`, `out`, `spot_check`.
|
|
34
|
+
*/
|
|
35
|
+
export const QueryParamScanType = {
|
|
36
|
+
In: "in",
|
|
37
|
+
Out: "out",
|
|
38
|
+
SpotCheck: "spot_check",
|
|
39
|
+
} as const;
|
|
40
|
+
/**
|
|
41
|
+
* Filter by scan type. One of: `in`, `out`, `spot_check`.
|
|
42
|
+
*/
|
|
43
|
+
export type QueryParamScanType = ClosedEnum<typeof QueryParamScanType>;
|
|
44
|
+
|
|
45
|
+
export type ExportVendorScansRequest = {
|
|
46
|
+
/**
|
|
47
|
+
* Sort field used by the exporter when ordering rows in the generated CSV. One of:
|
|
48
|
+
*
|
|
49
|
+
* @remarks
|
|
50
|
+
* `full_name`, `date_scanned`, `result`, `scan_type`. Defaults to `date_scanned`.
|
|
51
|
+
*/
|
|
52
|
+
sort?: ExportVendorScansQueryParamSort | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Sort desc
|
|
55
|
+
*/
|
|
56
|
+
desc?: components.Desc | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Page size used by the exporter while paginating results server-side. Does not affect the size of the CSV (all matching rows are included).
|
|
59
|
+
*/
|
|
60
|
+
itemsPerPage?: number | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* An ID representing a Hospital
|
|
63
|
+
*/
|
|
64
|
+
facilityId?: number | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* An ID representing a Hospital System
|
|
67
|
+
*/
|
|
68
|
+
systemId?: number | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* Filter scans by company ID.
|
|
71
|
+
*/
|
|
72
|
+
companyId?: number | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* Filter scans by vendor ID, or pass `me` to use the currently authenticated vendor.
|
|
75
|
+
*/
|
|
76
|
+
vendorId?: string | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* Filter by scan type. One of: `in`, `out`, `spot_check`.
|
|
79
|
+
*/
|
|
80
|
+
scanType?: QueryParamScanType | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* Filter by individual full name (case-insensitive, partial match).
|
|
83
|
+
*/
|
|
84
|
+
fullNameLike?: string | undefined;
|
|
85
|
+
/**
|
|
86
|
+
* Filter scans on or after this date. Format: YYYY-MM-DD.
|
|
87
|
+
*/
|
|
88
|
+
dateScannedGte?: string | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* Filter scans on or before this date. Format: YYYY-MM-DD.
|
|
91
|
+
*/
|
|
92
|
+
dateScannedLte?: string | undefined;
|
|
93
|
+
/**
|
|
94
|
+
* Filter by scan result. `true` for successful scans, `false` for failed.
|
|
95
|
+
*/
|
|
96
|
+
result?: boolean | undefined;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
/** @internal */
|
|
100
|
+
export const ExportVendorScansQueryParamSort$outboundSchema: z.ZodNativeEnum<
|
|
101
|
+
typeof ExportVendorScansQueryParamSort
|
|
102
|
+
> = z.nativeEnum(ExportVendorScansQueryParamSort);
|
|
103
|
+
|
|
104
|
+
/** @internal */
|
|
105
|
+
export const QueryParamScanType$outboundSchema: z.ZodNativeEnum<
|
|
106
|
+
typeof QueryParamScanType
|
|
107
|
+
> = z.nativeEnum(QueryParamScanType);
|
|
108
|
+
|
|
109
|
+
/** @internal */
|
|
110
|
+
export type ExportVendorScansRequest$Outbound = {
|
|
111
|
+
sort?: string | undefined;
|
|
112
|
+
desc?: components.Desc$Outbound | undefined;
|
|
113
|
+
items_per_page?: number | undefined;
|
|
114
|
+
facility_id?: number | undefined;
|
|
115
|
+
system_id?: number | undefined;
|
|
116
|
+
company_id?: number | undefined;
|
|
117
|
+
vendor_id?: string | undefined;
|
|
118
|
+
scan_type?: string | undefined;
|
|
119
|
+
full_name_like?: string | undefined;
|
|
120
|
+
date_scanned_gte?: string | undefined;
|
|
121
|
+
date_scanned_lte?: string | undefined;
|
|
122
|
+
result?: boolean | undefined;
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
/** @internal */
|
|
126
|
+
export const ExportVendorScansRequest$outboundSchema: z.ZodType<
|
|
127
|
+
ExportVendorScansRequest$Outbound,
|
|
128
|
+
z.ZodTypeDef,
|
|
129
|
+
ExportVendorScansRequest
|
|
130
|
+
> = z.object({
|
|
131
|
+
sort: ExportVendorScansQueryParamSort$outboundSchema.optional(),
|
|
132
|
+
desc: components.Desc$outboundSchema.optional(),
|
|
133
|
+
itemsPerPage: z.number().int().optional(),
|
|
134
|
+
facilityId: z.number().int().optional(),
|
|
135
|
+
systemId: z.number().int().optional(),
|
|
136
|
+
companyId: z.number().int().optional(),
|
|
137
|
+
vendorId: z.string().optional(),
|
|
138
|
+
scanType: QueryParamScanType$outboundSchema.optional(),
|
|
139
|
+
fullNameLike: z.string().optional(),
|
|
140
|
+
dateScannedGte: z.string().optional(),
|
|
141
|
+
dateScannedLte: z.string().optional(),
|
|
142
|
+
result: z.boolean().optional(),
|
|
143
|
+
}).transform((v) => {
|
|
144
|
+
return remap$(v, {
|
|
145
|
+
itemsPerPage: "items_per_page",
|
|
146
|
+
facilityId: "facility_id",
|
|
147
|
+
systemId: "system_id",
|
|
148
|
+
companyId: "company_id",
|
|
149
|
+
vendorId: "vendor_id",
|
|
150
|
+
scanType: "scan_type",
|
|
151
|
+
fullNameLike: "full_name_like",
|
|
152
|
+
dateScannedGte: "date_scanned_gte",
|
|
153
|
+
dateScannedLte: "date_scanned_lte",
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
export function exportVendorScansRequestToJSON(
|
|
158
|
+
exportVendorScansRequest: ExportVendorScansRequest,
|
|
159
|
+
): string {
|
|
160
|
+
return JSON.stringify(
|
|
161
|
+
ExportVendorScansRequest$outboundSchema.parse(exportVendorScansRequest),
|
|
162
|
+
);
|
|
163
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
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 GetCompanyTargetFacilitiesExportStatusRequest = {
|
|
13
|
+
/**
|
|
14
|
+
* The company whose export is being polled.
|
|
15
|
+
*/
|
|
16
|
+
companyId: number;
|
|
17
|
+
/**
|
|
18
|
+
* Export status id returned by the export endpoint (e.g. `ctf_export_42`).
|
|
19
|
+
*/
|
|
20
|
+
id: string;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Export status
|
|
25
|
+
*/
|
|
26
|
+
export type GetCompanyTargetFacilitiesExportStatusResponseBody = {
|
|
27
|
+
/**
|
|
28
|
+
* When true, the export is ready for download.
|
|
29
|
+
*/
|
|
30
|
+
ready: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* The export job identifier.
|
|
33
|
+
*/
|
|
34
|
+
statusId: string;
|
|
35
|
+
/**
|
|
36
|
+
* URL to download the CSV (present only when `ready` is true).
|
|
37
|
+
*/
|
|
38
|
+
downloadUrl?: string | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* When the export job completed.
|
|
41
|
+
*/
|
|
42
|
+
finishedAt?: string | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* When the export job started.
|
|
45
|
+
*/
|
|
46
|
+
startedAt?: string | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Timestamp of the last progress heartbeat from the background job. Updated on each pagination loop while the job is running; on completion or failure it equals `finished_at`.
|
|
49
|
+
*/
|
|
50
|
+
heartbeat?: string | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Error message if the export failed.
|
|
53
|
+
*/
|
|
54
|
+
error?: string | undefined;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export type GetCompanyTargetFacilitiesExportStatusRequest$Outbound = {
|
|
59
|
+
company_id: number;
|
|
60
|
+
id: string;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export const GetCompanyTargetFacilitiesExportStatusRequest$outboundSchema:
|
|
65
|
+
z.ZodType<
|
|
66
|
+
GetCompanyTargetFacilitiesExportStatusRequest$Outbound,
|
|
67
|
+
z.ZodTypeDef,
|
|
68
|
+
GetCompanyTargetFacilitiesExportStatusRequest
|
|
69
|
+
> = z.object({
|
|
70
|
+
companyId: z.number().int(),
|
|
71
|
+
id: z.string(),
|
|
72
|
+
}).transform((v) => {
|
|
73
|
+
return remap$(v, {
|
|
74
|
+
companyId: "company_id",
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
export function getCompanyTargetFacilitiesExportStatusRequestToJSON(
|
|
79
|
+
getCompanyTargetFacilitiesExportStatusRequest:
|
|
80
|
+
GetCompanyTargetFacilitiesExportStatusRequest,
|
|
81
|
+
): string {
|
|
82
|
+
return JSON.stringify(
|
|
83
|
+
GetCompanyTargetFacilitiesExportStatusRequest$outboundSchema.parse(
|
|
84
|
+
getCompanyTargetFacilitiesExportStatusRequest,
|
|
85
|
+
),
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/** @internal */
|
|
90
|
+
export const GetCompanyTargetFacilitiesExportStatusResponseBody$inboundSchema:
|
|
91
|
+
z.ZodType<
|
|
92
|
+
GetCompanyTargetFacilitiesExportStatusResponseBody,
|
|
93
|
+
z.ZodTypeDef,
|
|
94
|
+
unknown
|
|
95
|
+
> = z.object({
|
|
96
|
+
ready: types.boolean(),
|
|
97
|
+
status_id: types.string(),
|
|
98
|
+
download_url: types.optional(types.string()),
|
|
99
|
+
finished_at: types.optional(types.string()),
|
|
100
|
+
started_at: types.optional(types.string()),
|
|
101
|
+
heartbeat: types.optional(types.string()),
|
|
102
|
+
error: types.optional(types.string()),
|
|
103
|
+
}).transform((v) => {
|
|
104
|
+
return remap$(v, {
|
|
105
|
+
"status_id": "statusId",
|
|
106
|
+
"download_url": "downloadUrl",
|
|
107
|
+
"finished_at": "finishedAt",
|
|
108
|
+
"started_at": "startedAt",
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
export function getCompanyTargetFacilitiesExportStatusResponseBodyFromJSON(
|
|
113
|
+
jsonString: string,
|
|
114
|
+
): SafeParseResult<
|
|
115
|
+
GetCompanyTargetFacilitiesExportStatusResponseBody,
|
|
116
|
+
SDKValidationError
|
|
117
|
+
> {
|
|
118
|
+
return safeParse(
|
|
119
|
+
jsonString,
|
|
120
|
+
(x) =>
|
|
121
|
+
GetCompanyTargetFacilitiesExportStatusResponseBody$inboundSchema.parse(
|
|
122
|
+
JSON.parse(x),
|
|
123
|
+
),
|
|
124
|
+
`Failed to parse 'GetCompanyTargetFacilitiesExportStatusResponseBody' from JSON`,
|
|
125
|
+
);
|
|
126
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
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 GetVendorScansExportStatusRequest = {
|
|
13
|
+
/**
|
|
14
|
+
* Export status id returned by the export vendor scans endpoint.
|
|
15
|
+
*/
|
|
16
|
+
id: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Export status
|
|
21
|
+
*/
|
|
22
|
+
export type GetVendorScansExportStatusResponseBody = {
|
|
23
|
+
/**
|
|
24
|
+
* When true, the export is ready for download.
|
|
25
|
+
*/
|
|
26
|
+
ready: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* The export job identifier.
|
|
29
|
+
*/
|
|
30
|
+
statusId: string;
|
|
31
|
+
/**
|
|
32
|
+
* URL to download the CSV (present only when `ready` is true).
|
|
33
|
+
*/
|
|
34
|
+
downloadUrl?: string | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* When the export job completed.
|
|
37
|
+
*/
|
|
38
|
+
finishedAt?: string | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* When the export job started.
|
|
41
|
+
*/
|
|
42
|
+
startedAt?: string | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Timestamp of the last progress heartbeat from the background job. Updated on each pagination loop while the job is running; on completion or failure it equals `finished_at`.
|
|
45
|
+
*/
|
|
46
|
+
heartbeat?: string | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Error message if the export failed.
|
|
49
|
+
*/
|
|
50
|
+
error?: string | undefined;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/** @internal */
|
|
54
|
+
export type GetVendorScansExportStatusRequest$Outbound = {
|
|
55
|
+
id: string;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const GetVendorScansExportStatusRequest$outboundSchema: z.ZodType<
|
|
60
|
+
GetVendorScansExportStatusRequest$Outbound,
|
|
61
|
+
z.ZodTypeDef,
|
|
62
|
+
GetVendorScansExportStatusRequest
|
|
63
|
+
> = z.object({
|
|
64
|
+
id: z.string(),
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
export function getVendorScansExportStatusRequestToJSON(
|
|
68
|
+
getVendorScansExportStatusRequest: GetVendorScansExportStatusRequest,
|
|
69
|
+
): string {
|
|
70
|
+
return JSON.stringify(
|
|
71
|
+
GetVendorScansExportStatusRequest$outboundSchema.parse(
|
|
72
|
+
getVendorScansExportStatusRequest,
|
|
73
|
+
),
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/** @internal */
|
|
78
|
+
export const GetVendorScansExportStatusResponseBody$inboundSchema: z.ZodType<
|
|
79
|
+
GetVendorScansExportStatusResponseBody,
|
|
80
|
+
z.ZodTypeDef,
|
|
81
|
+
unknown
|
|
82
|
+
> = z.object({
|
|
83
|
+
ready: types.boolean(),
|
|
84
|
+
status_id: types.string(),
|
|
85
|
+
download_url: types.optional(types.string()),
|
|
86
|
+
finished_at: types.optional(types.string()),
|
|
87
|
+
started_at: types.optional(types.string()),
|
|
88
|
+
heartbeat: types.optional(types.string()),
|
|
89
|
+
error: types.optional(types.string()),
|
|
90
|
+
}).transform((v) => {
|
|
91
|
+
return remap$(v, {
|
|
92
|
+
"status_id": "statusId",
|
|
93
|
+
"download_url": "downloadUrl",
|
|
94
|
+
"finished_at": "finishedAt",
|
|
95
|
+
"started_at": "startedAt",
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
export function getVendorScansExportStatusResponseBodyFromJSON(
|
|
100
|
+
jsonString: string,
|
|
101
|
+
): SafeParseResult<GetVendorScansExportStatusResponseBody, SDKValidationError> {
|
|
102
|
+
return safeParse(
|
|
103
|
+
jsonString,
|
|
104
|
+
(x) =>
|
|
105
|
+
GetVendorScansExportStatusResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
106
|
+
`Failed to parse 'GetVendorScansExportStatusResponseBody' from JSON`,
|
|
107
|
+
);
|
|
108
|
+
}
|
|
@@ -15,7 +15,6 @@ export * from "./cancelhandoff.js";
|
|
|
15
15
|
export * from "./changepassword.js";
|
|
16
16
|
export * from "./changesubscription.js";
|
|
17
17
|
export * from "./checkdownloadcode.js";
|
|
18
|
-
export * from "./createcompanytargetfacility.js";
|
|
19
18
|
export * from "./createevent.js";
|
|
20
19
|
export * from "./createinvoice.js";
|
|
21
20
|
export * from "./createnewvendorcredentialversion.js";
|
|
@@ -26,17 +25,21 @@ export * from "./createvendorfield.js";
|
|
|
26
25
|
export * from "./createvendorregistration.js";
|
|
27
26
|
export * from "./declineinvitation.js";
|
|
28
27
|
export * from "./declinevendorcredential.js";
|
|
29
|
-
export * from "./deletecompanytargetfacility.js";
|
|
30
28
|
export * from "./deletedatarequestfile.js";
|
|
31
29
|
export * from "./deleteevent.js";
|
|
32
30
|
export * from "./deletefhirconfigbyid.js";
|
|
33
31
|
export * from "./deletepaymentprofile.js";
|
|
34
32
|
export * from "./deletevendorcredentialfile.js";
|
|
35
33
|
export * from "./deletevendormanagedbycompany.js";
|
|
34
|
+
export * from "./downloadcompanytargetfacilitiesexport.js";
|
|
36
35
|
export * from "./downloadinvoicesexport.js";
|
|
36
|
+
export * from "./downloadvendorscansexport.js";
|
|
37
37
|
export * from "./downloadvendorsexport.js";
|
|
38
38
|
export * from "./expeditetimeremaining.js";
|
|
39
|
+
export * from "./exportcompanytargetfacilities.js";
|
|
40
|
+
export * from "./exportvendorscans.js";
|
|
39
41
|
export * from "./getcompany.js";
|
|
42
|
+
export * from "./getcompanytargetfacilitiesexportstatus.js";
|
|
40
43
|
export * from "./getcurrentuser.js";
|
|
41
44
|
export * from "./getevent.js";
|
|
42
45
|
export * from "./getfacility.js";
|
|
@@ -56,6 +59,7 @@ export * from "./getvendorinvoicedetails.js";
|
|
|
56
59
|
export * from "./getvendorinvoicereceipt.js";
|
|
57
60
|
export * from "./getvendorlegalname.js";
|
|
58
61
|
export * from "./getvendorscan.js";
|
|
62
|
+
export * from "./getvendorscansexportstatus.js";
|
|
59
63
|
export * from "./getvendorsdetails.js";
|
|
60
64
|
export * from "./getvendorsexportstatus.js";
|
|
61
65
|
export * from "./getvendoruploadhistory.js";
|
|
@@ -66,7 +70,6 @@ export * from "./listallwebhookendpoints.js";
|
|
|
66
70
|
export * from "./listcompanycredentials.js";
|
|
67
71
|
export * from "./listcompanycredits.js";
|
|
68
72
|
export * from "./listcompanymanagers.js";
|
|
69
|
-
export * from "./listcompanytargetfacilities.js";
|
|
70
73
|
export * from "./listfeed.js";
|
|
71
74
|
export * from "./listinvoices.js";
|
|
72
75
|
export * from "./listlocations.js";
|
|
@@ -4,12 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
7
|
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
-
import
|
|
10
|
-
import * as types from "../../types/primitives.js";
|
|
11
|
-
import { smartUnion } from "../../types/smartUnion.js";
|
|
12
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
8
|
+
import * as components from "../components/index.js";
|
|
13
9
|
|
|
14
10
|
/**
|
|
15
11
|
* Filter by financial status (paid or unpaid).
|
|
@@ -23,17 +19,6 @@ export const InvoiceFinancialStatus = {
|
|
|
23
19
|
*/
|
|
24
20
|
export type InvoiceFinancialStatus = ClosedEnum<typeof InvoiceFinancialStatus>;
|
|
25
21
|
|
|
26
|
-
export const QueryParam2 = {
|
|
27
|
-
Zero: 0,
|
|
28
|
-
One: 1,
|
|
29
|
-
} as const;
|
|
30
|
-
export type QueryParam2 = ClosedEnum<typeof QueryParam2>;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Sort descending flag.
|
|
34
|
-
*/
|
|
35
|
-
export type QueryParamDesc = boolean | QueryParam2;
|
|
36
|
-
|
|
37
22
|
export type InvoicesExportRequest = {
|
|
38
23
|
/**
|
|
39
24
|
* Filter by invoice number (e.g., `CM-123` or `123-1`).
|
|
@@ -68,9 +53,9 @@ export type InvoicesExportRequest = {
|
|
|
68
53
|
*/
|
|
69
54
|
sort?: string | undefined;
|
|
70
55
|
/**
|
|
71
|
-
* Sort
|
|
56
|
+
* Sort desc
|
|
72
57
|
*/
|
|
73
|
-
desc?:
|
|
58
|
+
desc?: components.Desc | undefined;
|
|
74
59
|
/**
|
|
75
60
|
* Page size used by the exporter while paginating results.
|
|
76
61
|
*/
|
|
@@ -81,47 +66,11 @@ export type InvoicesExportRequest = {
|
|
|
81
66
|
expand?: string | undefined;
|
|
82
67
|
};
|
|
83
68
|
|
|
84
|
-
/**
|
|
85
|
-
* Export request accepted and job enqueued.
|
|
86
|
-
*/
|
|
87
|
-
export type InvoicesExportResponseBody = {
|
|
88
|
-
/**
|
|
89
|
-
* URL to poll for export status
|
|
90
|
-
*/
|
|
91
|
-
statusUrl: string;
|
|
92
|
-
/**
|
|
93
|
-
* URL to download the exported file
|
|
94
|
-
*/
|
|
95
|
-
downloadUrl: string;
|
|
96
|
-
/**
|
|
97
|
-
* Status token to check export status
|
|
98
|
-
*/
|
|
99
|
-
statusId: string;
|
|
100
|
-
};
|
|
101
|
-
|
|
102
69
|
/** @internal */
|
|
103
70
|
export const InvoiceFinancialStatus$outboundSchema: z.ZodNativeEnum<
|
|
104
71
|
typeof InvoiceFinancialStatus
|
|
105
72
|
> = z.nativeEnum(InvoiceFinancialStatus);
|
|
106
73
|
|
|
107
|
-
/** @internal */
|
|
108
|
-
export const QueryParam2$outboundSchema: z.ZodNativeEnum<typeof QueryParam2> = z
|
|
109
|
-
.nativeEnum(QueryParam2);
|
|
110
|
-
|
|
111
|
-
/** @internal */
|
|
112
|
-
export type QueryParamDesc$Outbound = boolean | number;
|
|
113
|
-
|
|
114
|
-
/** @internal */
|
|
115
|
-
export const QueryParamDesc$outboundSchema: z.ZodType<
|
|
116
|
-
QueryParamDesc$Outbound,
|
|
117
|
-
z.ZodTypeDef,
|
|
118
|
-
QueryParamDesc
|
|
119
|
-
> = smartUnion([z.boolean(), QueryParam2$outboundSchema]);
|
|
120
|
-
|
|
121
|
-
export function queryParamDescToJSON(queryParamDesc: QueryParamDesc): string {
|
|
122
|
-
return JSON.stringify(QueryParamDesc$outboundSchema.parse(queryParamDesc));
|
|
123
|
-
}
|
|
124
|
-
|
|
125
74
|
/** @internal */
|
|
126
75
|
export type InvoicesExportRequest$Outbound = {
|
|
127
76
|
invoice_number?: string | undefined;
|
|
@@ -132,7 +81,7 @@ export type InvoicesExportRequest$Outbound = {
|
|
|
132
81
|
facility_id?: number | undefined;
|
|
133
82
|
system_id?: number | undefined;
|
|
134
83
|
sort?: string | undefined;
|
|
135
|
-
desc?:
|
|
84
|
+
desc?: components.Desc$Outbound | undefined;
|
|
136
85
|
items_per_page?: number | undefined;
|
|
137
86
|
expand?: string | undefined;
|
|
138
87
|
};
|
|
@@ -151,7 +100,7 @@ export const InvoicesExportRequest$outboundSchema: z.ZodType<
|
|
|
151
100
|
facilityId: z.number().int().optional(),
|
|
152
101
|
systemId: z.number().int().optional(),
|
|
153
102
|
sort: z.string().optional(),
|
|
154
|
-
desc:
|
|
103
|
+
desc: components.Desc$outboundSchema.optional(),
|
|
155
104
|
itemsPerPage: z.number().int().optional(),
|
|
156
105
|
expand: z.string().optional(),
|
|
157
106
|
}).transform((v) => {
|
|
@@ -173,30 +122,3 @@ export function invoicesExportRequestToJSON(
|
|
|
173
122
|
InvoicesExportRequest$outboundSchema.parse(invoicesExportRequest),
|
|
174
123
|
);
|
|
175
124
|
}
|
|
176
|
-
|
|
177
|
-
/** @internal */
|
|
178
|
-
export const InvoicesExportResponseBody$inboundSchema: z.ZodType<
|
|
179
|
-
InvoicesExportResponseBody,
|
|
180
|
-
z.ZodTypeDef,
|
|
181
|
-
unknown
|
|
182
|
-
> = z.object({
|
|
183
|
-
status_url: types.string(),
|
|
184
|
-
download_url: types.string(),
|
|
185
|
-
status_id: types.string(),
|
|
186
|
-
}).transform((v) => {
|
|
187
|
-
return remap$(v, {
|
|
188
|
-
"status_url": "statusUrl",
|
|
189
|
-
"download_url": "downloadUrl",
|
|
190
|
-
"status_id": "statusId",
|
|
191
|
-
});
|
|
192
|
-
});
|
|
193
|
-
|
|
194
|
-
export function invoicesExportResponseBodyFromJSON(
|
|
195
|
-
jsonString: string,
|
|
196
|
-
): SafeParseResult<InvoicesExportResponseBody, SDKValidationError> {
|
|
197
|
-
return safeParse(
|
|
198
|
-
jsonString,
|
|
199
|
-
(x) => InvoicesExportResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
200
|
-
`Failed to parse 'InvoicesExportResponseBody' from JSON`,
|
|
201
|
-
);
|
|
202
|
-
}
|
|
@@ -4,23 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
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
|
-
export const Two = {
|
|
15
|
-
Zero: 0,
|
|
16
|
-
One: 1,
|
|
17
|
-
} as const;
|
|
18
|
-
export type Two = ClosedEnum<typeof Two>;
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Sort descending flag.
|
|
22
|
-
*/
|
|
23
|
-
export type Desc = boolean | Two;
|
|
7
|
+
import * as components from "../components/index.js";
|
|
24
8
|
|
|
25
9
|
export type VendorsExportRequest = {
|
|
26
10
|
/**
|
|
@@ -120,9 +104,9 @@ export type VendorsExportRequest = {
|
|
|
120
104
|
*/
|
|
121
105
|
sort?: string | undefined;
|
|
122
106
|
/**
|
|
123
|
-
* Sort
|
|
107
|
+
* Sort desc
|
|
124
108
|
*/
|
|
125
|
-
desc?:
|
|
109
|
+
desc?: components.Desc | undefined;
|
|
126
110
|
/**
|
|
127
111
|
* Page size used by the exporter while paginating results.
|
|
128
112
|
*/
|
|
@@ -133,40 +117,6 @@ export type VendorsExportRequest = {
|
|
|
133
117
|
expand?: string | undefined;
|
|
134
118
|
};
|
|
135
119
|
|
|
136
|
-
/**
|
|
137
|
-
* Export request accepted and job enqueued.
|
|
138
|
-
*/
|
|
139
|
-
export type VendorsExportResponseBody = {
|
|
140
|
-
/**
|
|
141
|
-
* URL to poll for export status.
|
|
142
|
-
*/
|
|
143
|
-
statusUrl: string;
|
|
144
|
-
/**
|
|
145
|
-
* URL to download the exported file once ready.
|
|
146
|
-
*/
|
|
147
|
-
downloadUrl: string;
|
|
148
|
-
/**
|
|
149
|
-
* Status token used to check export status.
|
|
150
|
-
*/
|
|
151
|
-
statusId: string;
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
/** @internal */
|
|
155
|
-
export const Two$outboundSchema: z.ZodNativeEnum<typeof Two> = z.nativeEnum(
|
|
156
|
-
Two,
|
|
157
|
-
);
|
|
158
|
-
|
|
159
|
-
/** @internal */
|
|
160
|
-
export type Desc$Outbound = boolean | number;
|
|
161
|
-
|
|
162
|
-
/** @internal */
|
|
163
|
-
export const Desc$outboundSchema: z.ZodType<Desc$Outbound, z.ZodTypeDef, Desc> =
|
|
164
|
-
smartUnion([z.boolean(), Two$outboundSchema]);
|
|
165
|
-
|
|
166
|
-
export function descToJSON(desc: Desc): string {
|
|
167
|
-
return JSON.stringify(Desc$outboundSchema.parse(desc));
|
|
168
|
-
}
|
|
169
|
-
|
|
170
120
|
/** @internal */
|
|
171
121
|
export type VendorsExportRequest$Outbound = {
|
|
172
122
|
company_name_like?: string | undefined;
|
|
@@ -193,7 +143,7 @@ export type VendorsExportRequest$Outbound = {
|
|
|
193
143
|
date_ends_gte?: string | undefined;
|
|
194
144
|
date_ends_lte?: string | undefined;
|
|
195
145
|
sort?: string | undefined;
|
|
196
|
-
desc?:
|
|
146
|
+
desc?: components.Desc$Outbound | undefined;
|
|
197
147
|
items_per_page?: number | undefined;
|
|
198
148
|
expand?: string | undefined;
|
|
199
149
|
};
|
|
@@ -236,7 +186,7 @@ export const VendorsExportRequest$outboundSchema: z.ZodType<
|
|
|
236
186
|
v.toISOString().slice(0, "YYYY-MM-DD".length)
|
|
237
187
|
).optional(),
|
|
238
188
|
sort: z.string().optional(),
|
|
239
|
-
desc:
|
|
189
|
+
desc: components.Desc$outboundSchema.optional(),
|
|
240
190
|
itemsPerPage: z.number().int().optional(),
|
|
241
191
|
expand: z.string().optional(),
|
|
242
192
|
}).transform((v) => {
|
|
@@ -274,30 +224,3 @@ export function vendorsExportRequestToJSON(
|
|
|
274
224
|
VendorsExportRequest$outboundSchema.parse(vendorsExportRequest),
|
|
275
225
|
);
|
|
276
226
|
}
|
|
277
|
-
|
|
278
|
-
/** @internal */
|
|
279
|
-
export const VendorsExportResponseBody$inboundSchema: z.ZodType<
|
|
280
|
-
VendorsExportResponseBody,
|
|
281
|
-
z.ZodTypeDef,
|
|
282
|
-
unknown
|
|
283
|
-
> = z.object({
|
|
284
|
-
status_url: types.string(),
|
|
285
|
-
download_url: types.string(),
|
|
286
|
-
status_id: types.string(),
|
|
287
|
-
}).transform((v) => {
|
|
288
|
-
return remap$(v, {
|
|
289
|
-
"status_url": "statusUrl",
|
|
290
|
-
"download_url": "downloadUrl",
|
|
291
|
-
"status_id": "statusId",
|
|
292
|
-
});
|
|
293
|
-
});
|
|
294
|
-
|
|
295
|
-
export function vendorsExportResponseBodyFromJSON(
|
|
296
|
-
jsonString: string,
|
|
297
|
-
): SafeParseResult<VendorsExportResponseBody, SDKValidationError> {
|
|
298
|
-
return safeParse(
|
|
299
|
-
jsonString,
|
|
300
|
-
(x) => VendorsExportResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
301
|
-
`Failed to parse 'VendorsExportResponseBody' from JSON`,
|
|
302
|
-
);
|
|
303
|
-
}
|