@greensecurity/javascript-sdk 0.44.0-beta.11 → 0.44.0-beta.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -9
- package/dist/commonjs/__tests__/invoices.test.js +3 -1
- package/dist/commonjs/__tests__/invoices.test.js.map +1 -1
- package/dist/commonjs/__tests__/organizations.test.js +34 -42
- package/dist/commonjs/__tests__/organizations.test.js.map +1 -1
- package/dist/commonjs/__tests__/vendors.test.js +3 -1
- package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
- package/dist/commonjs/__tests__/vendorscans.test.js +57 -0
- package/dist/commonjs/__tests__/vendorscans.test.js.map +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
- package/dist/commonjs/__tests__/zones.test.js +14 -11
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/funcs/invoicesInvoicesExport.d.ts +2 -1
- package/dist/commonjs/funcs/invoicesInvoicesExport.d.ts.map +1 -1
- package/dist/commonjs/funcs/invoicesInvoicesExport.js +2 -1
- package/dist/commonjs/funcs/invoicesInvoicesExport.js.map +1 -1
- package/dist/commonjs/funcs/organizationsDownloadCompanyTargetFacilitiesExport.d.ts +21 -0
- package/dist/commonjs/funcs/organizationsDownloadCompanyTargetFacilitiesExport.d.ts.map +1 -0
- package/dist/commonjs/funcs/{organizationsDeleteCompanyTargetFacility.js → organizationsDownloadCompanyTargetFacilitiesExport.js} +12 -18
- package/dist/commonjs/funcs/organizationsDownloadCompanyTargetFacilitiesExport.js.map +1 -0
- package/dist/commonjs/funcs/organizationsExportCompanyTargetFacilities.d.ts +27 -0
- package/dist/commonjs/funcs/organizationsExportCompanyTargetFacilities.d.ts.map +1 -0
- package/dist/commonjs/funcs/{organizationsCreateCompanyTargetFacility.js → organizationsExportCompanyTargetFacilities.js} +24 -27
- package/dist/commonjs/funcs/organizationsExportCompanyTargetFacilities.js.map +1 -0
- package/dist/commonjs/funcs/organizationsGetCompanyTargetFacilitiesExportStatus.d.ts +21 -0
- package/dist/commonjs/funcs/organizationsGetCompanyTargetFacilitiesExportStatus.d.ts.map +1 -0
- package/dist/commonjs/funcs/{organizationsListCompanyTargetFacilities.js → organizationsGetCompanyTargetFacilitiesExportStatus.js} +21 -83
- package/dist/commonjs/funcs/organizationsGetCompanyTargetFacilitiesExportStatus.js.map +1 -0
- package/dist/commonjs/funcs/vendorScansDownloadVendorScansExport.d.ts +27 -0
- package/dist/commonjs/funcs/vendorScansDownloadVendorScansExport.d.ts.map +1 -0
- package/dist/commonjs/funcs/vendorScansDownloadVendorScansExport.js +134 -0
- package/dist/commonjs/funcs/vendorScansDownloadVendorScansExport.js.map +1 -0
- package/dist/commonjs/funcs/vendorScansExportVendorScans.d.ts +27 -0
- package/dist/commonjs/funcs/vendorScansExportVendorScans.d.ts.map +1 -0
- package/dist/commonjs/funcs/vendorScansExportVendorScans.js +141 -0
- package/dist/commonjs/funcs/vendorScansExportVendorScans.js.map +1 -0
- package/dist/commonjs/funcs/vendorScansGetVendorScansExportStatus.d.ts +21 -0
- package/dist/commonjs/funcs/vendorScansGetVendorScansExportStatus.d.ts.map +1 -0
- package/dist/commonjs/funcs/vendorScansGetVendorScansExportStatus.js +126 -0
- package/dist/commonjs/funcs/vendorScansGetVendorScansExportStatus.js.map +1 -0
- package/dist/commonjs/funcs/vendorsVendorsExport.d.ts +2 -1
- package/dist/commonjs/funcs/vendorsVendorsExport.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsVendorsExport.js +2 -1
- package/dist/commonjs/funcs/vendorsVendorsExport.js.map +1 -1
- package/dist/commonjs/hooks/types.d.ts +1 -0
- package/dist/commonjs/hooks/types.d.ts.map +1 -1
- package/dist/commonjs/lib/config.d.ts +4 -4
- package/dist/commonjs/lib/config.js +4 -4
- package/dist/commonjs/lib/sdks.d.ts.map +1 -1
- package/dist/commonjs/lib/sdks.js +13 -4
- package/dist/commonjs/lib/sdks.js.map +1 -1
- package/dist/commonjs/models/components/csvexportenqueuedresponse.d.ts +27 -0
- package/dist/commonjs/models/components/csvexportenqueuedresponse.d.ts.map +1 -0
- package/dist/commonjs/models/{operations/deletecompanytargetfacility.js → components/csvexportenqueuedresponse.js} +14 -9
- package/dist/commonjs/models/components/csvexportenqueuedresponse.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +1 -1
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -1
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/operations/downloadcompanytargetfacilitiesexport.d.ts +47 -0
- package/dist/commonjs/models/operations/downloadcompanytargetfacilitiesexport.d.ts.map +1 -0
- package/dist/commonjs/models/operations/downloadcompanytargetfacilitiesexport.js +80 -0
- package/dist/commonjs/models/operations/downloadcompanytargetfacilitiesexport.js.map +1 -0
- package/dist/commonjs/models/operations/downloadvendorscansexport.d.ts +46 -0
- package/dist/commonjs/models/operations/downloadvendorscansexport.d.ts.map +1 -0
- package/dist/commonjs/models/operations/downloadvendorscansexport.js +88 -0
- package/dist/commonjs/models/operations/downloadvendorscansexport.js.map +1 -0
- package/dist/commonjs/models/operations/exportcompanytargetfacilities.d.ts +144 -0
- package/dist/commonjs/models/operations/exportcompanytargetfacilities.d.ts.map +1 -0
- package/dist/commonjs/models/operations/{listcompanytargetfacilities.js → exportcompanytargetfacilities.js} +33 -47
- package/dist/commonjs/models/operations/exportcompanytargetfacilities.js.map +1 -0
- package/dist/commonjs/models/operations/exportvendorscans.d.ts +110 -0
- package/dist/commonjs/models/operations/exportvendorscans.d.ts.map +1 -0
- package/dist/commonjs/models/operations/exportvendorscans.js +98 -0
- package/dist/commonjs/models/operations/exportvendorscans.js.map +1 -0
- package/dist/commonjs/models/operations/getcompanytargetfacilitiesexportstatus.d.ts +58 -0
- package/dist/commonjs/models/operations/getcompanytargetfacilitiesexportstatus.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getcompanytargetfacilitiesexportstatus.js +78 -0
- package/dist/commonjs/models/operations/getcompanytargetfacilitiesexportstatus.js.map +1 -0
- package/dist/commonjs/models/operations/getvendorscansexportstatus.d.ts +53 -0
- package/dist/commonjs/models/operations/getvendorscansexportstatus.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getvendorscansexportstatus.js +73 -0
- package/dist/commonjs/models/operations/getvendorscansexportstatus.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +6 -3
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +6 -3
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/invoicesexport.d.ts +4 -41
- package/dist/commonjs/models/operations/invoicesexport.d.ts.map +1 -1
- package/dist/commonjs/models/operations/invoicesexport.js +3 -34
- package/dist/commonjs/models/operations/invoicesexport.js.map +1 -1
- package/dist/commonjs/models/operations/vendorsexport.d.ts +4 -42
- package/dist/commonjs/models/operations/vendorsexport.d.ts.map +1 -1
- package/dist/commonjs/models/operations/vendorsexport.js +3 -33
- package/dist/commonjs/models/operations/vendorsexport.js.map +1 -1
- package/dist/commonjs/react-query/index.d.ts +6 -3
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +6 -3
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/invoicesInvoicesExport.core.d.ts +3 -2
- package/dist/commonjs/react-query/invoicesInvoicesExport.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/invoicesInvoicesExport.core.js.map +1 -1
- package/dist/commonjs/react-query/invoicesInvoicesExport.d.ts +3 -2
- package/dist/commonjs/react-query/invoicesInvoicesExport.d.ts.map +1 -1
- package/dist/commonjs/react-query/invoicesInvoicesExport.js.map +1 -1
- package/dist/commonjs/react-query/organizationsDownloadCompanyTargetFacilitiesExport.core.d.ts +12 -0
- package/dist/commonjs/react-query/organizationsDownloadCompanyTargetFacilitiesExport.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsDownloadCompanyTargetFacilitiesExport.core.js +40 -0
- package/dist/commonjs/react-query/organizationsDownloadCompanyTargetFacilitiesExport.core.js.map +1 -0
- package/dist/commonjs/react-query/organizationsDownloadCompanyTargetFacilitiesExport.d.ts +31 -0
- package/dist/commonjs/react-query/organizationsDownloadCompanyTargetFacilitiesExport.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsDownloadCompanyTargetFacilitiesExport.js +71 -0
- package/dist/commonjs/react-query/organizationsDownloadCompanyTargetFacilitiesExport.js.map +1 -0
- package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.core.d.ts +20 -0
- package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.core.js +48 -0
- package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.core.js.map +1 -0
- package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.d.ts +65 -0
- package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.js +83 -0
- package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.js.map +1 -0
- package/dist/commonjs/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.core.d.ts +12 -0
- package/dist/commonjs/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.core.js +40 -0
- package/dist/commonjs/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.core.js.map +1 -0
- package/dist/commonjs/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.d.ts +31 -0
- package/dist/commonjs/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.js +71 -0
- package/dist/commonjs/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.js.map +1 -0
- package/dist/commonjs/react-query/vendorScansDownloadVendorScansExport.core.d.ts +17 -0
- package/dist/commonjs/react-query/vendorScansDownloadVendorScansExport.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorScansDownloadVendorScansExport.core.js +39 -0
- package/dist/commonjs/react-query/vendorScansDownloadVendorScansExport.core.js.map +1 -0
- package/dist/commonjs/react-query/vendorScansDownloadVendorScansExport.d.ts +32 -0
- package/dist/commonjs/react-query/vendorScansDownloadVendorScansExport.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorScansDownloadVendorScansExport.js +73 -0
- package/dist/commonjs/react-query/vendorScansDownloadVendorScansExport.js.map +1 -0
- package/dist/commonjs/react-query/vendorScansExportVendorScans.core.d.ts +26 -0
- package/dist/commonjs/react-query/vendorScansExportVendorScans.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorScansExportVendorScans.core.js +52 -0
- package/dist/commonjs/react-query/vendorScansExportVendorScans.core.js.map +1 -0
- package/dist/commonjs/react-query/vendorScansExportVendorScans.d.ts +72 -0
- package/dist/commonjs/react-query/vendorScansExportVendorScans.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorScansExportVendorScans.js +81 -0
- package/dist/commonjs/react-query/vendorScansExportVendorScans.js.map +1 -0
- package/dist/commonjs/react-query/vendorScansGetVendorScansExportStatus.core.d.ts +12 -0
- package/dist/commonjs/react-query/vendorScansGetVendorScansExportStatus.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorScansGetVendorScansExportStatus.core.js +39 -0
- package/dist/commonjs/react-query/vendorScansGetVendorScansExportStatus.core.js.map +1 -0
- package/dist/commonjs/react-query/vendorScansGetVendorScansExportStatus.d.ts +31 -0
- package/dist/commonjs/react-query/vendorScansGetVendorScansExportStatus.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorScansGetVendorScansExportStatus.js +71 -0
- package/dist/commonjs/react-query/vendorScansGetVendorScansExportStatus.js.map +1 -0
- package/dist/commonjs/react-query/vendorsVendorsExport.core.d.ts +3 -2
- package/dist/commonjs/react-query/vendorsVendorsExport.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsVendorsExport.core.js.map +1 -1
- package/dist/commonjs/react-query/vendorsVendorsExport.d.ts +3 -2
- package/dist/commonjs/react-query/vendorsVendorsExport.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsVendorsExport.js.map +1 -1
- package/dist/commonjs/sdk/invoices.d.ts +1 -1
- package/dist/commonjs/sdk/invoices.d.ts.map +1 -1
- package/dist/commonjs/sdk/organizations.d.ts +16 -50
- package/dist/commonjs/sdk/organizations.d.ts.map +1 -1
- package/dist/commonjs/sdk/organizations.js +22 -54
- package/dist/commonjs/sdk/organizations.js.map +1 -1
- package/dist/commonjs/sdk/vendors.d.ts +1 -1
- package/dist/commonjs/sdk/vendorscans.d.ts +33 -0
- package/dist/commonjs/sdk/vendorscans.d.ts.map +1 -1
- package/dist/commonjs/sdk/vendorscans.js +41 -1
- package/dist/commonjs/sdk/vendorscans.js.map +1 -1
- package/dist/esm/__tests__/invoices.test.js +3 -1
- package/dist/esm/__tests__/invoices.test.js.map +1 -1
- package/dist/esm/__tests__/organizations.test.js +35 -43
- package/dist/esm/__tests__/organizations.test.js.map +1 -1
- package/dist/esm/__tests__/vendors.test.js +3 -1
- package/dist/esm/__tests__/vendors.test.js.map +1 -1
- package/dist/esm/__tests__/vendorscans.test.js +57 -0
- package/dist/esm/__tests__/vendorscans.test.js.map +1 -1
- package/dist/esm/__tests__/webhooks.test.js +1 -1
- package/dist/esm/__tests__/webhooks.test.js.map +1 -1
- package/dist/esm/__tests__/zones.test.js +14 -11
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/funcs/invoicesInvoicesExport.d.ts +2 -1
- package/dist/esm/funcs/invoicesInvoicesExport.d.ts.map +1 -1
- package/dist/esm/funcs/invoicesInvoicesExport.js +2 -1
- package/dist/esm/funcs/invoicesInvoicesExport.js.map +1 -1
- package/dist/esm/funcs/organizationsDownloadCompanyTargetFacilitiesExport.d.ts +21 -0
- package/dist/esm/funcs/organizationsDownloadCompanyTargetFacilitiesExport.d.ts.map +1 -0
- package/dist/esm/funcs/{organizationsDeleteCompanyTargetFacility.js → organizationsDownloadCompanyTargetFacilitiesExport.js} +11 -17
- package/dist/esm/funcs/organizationsDownloadCompanyTargetFacilitiesExport.js.map +1 -0
- package/dist/esm/funcs/organizationsExportCompanyTargetFacilities.d.ts +27 -0
- package/dist/esm/funcs/organizationsExportCompanyTargetFacilities.d.ts.map +1 -0
- package/dist/esm/funcs/{organizationsCreateCompanyTargetFacility.js → organizationsExportCompanyTargetFacilities.js} +24 -27
- package/dist/esm/funcs/organizationsExportCompanyTargetFacilities.js.map +1 -0
- package/dist/esm/funcs/organizationsGetCompanyTargetFacilitiesExportStatus.d.ts +21 -0
- package/dist/esm/funcs/organizationsGetCompanyTargetFacilitiesExportStatus.d.ts.map +1 -0
- package/dist/esm/funcs/organizationsGetCompanyTargetFacilitiesExportStatus.js +96 -0
- package/dist/esm/funcs/organizationsGetCompanyTargetFacilitiesExportStatus.js.map +1 -0
- package/dist/esm/funcs/vendorScansDownloadVendorScansExport.d.ts +27 -0
- package/dist/esm/funcs/vendorScansDownloadVendorScansExport.d.ts.map +1 -0
- package/dist/esm/funcs/vendorScansDownloadVendorScansExport.js +97 -0
- package/dist/esm/funcs/vendorScansDownloadVendorScansExport.js.map +1 -0
- package/dist/esm/funcs/vendorScansExportVendorScans.d.ts +27 -0
- package/dist/esm/funcs/vendorScansExportVendorScans.d.ts.map +1 -0
- package/dist/esm/funcs/vendorScansExportVendorScans.js +105 -0
- package/dist/esm/funcs/vendorScansExportVendorScans.js.map +1 -0
- package/dist/esm/funcs/vendorScansGetVendorScansExportStatus.d.ts +21 -0
- package/dist/esm/funcs/vendorScansGetVendorScansExportStatus.d.ts.map +1 -0
- package/dist/esm/funcs/vendorScansGetVendorScansExportStatus.js +90 -0
- package/dist/esm/funcs/vendorScansGetVendorScansExportStatus.js.map +1 -0
- package/dist/esm/funcs/vendorsVendorsExport.d.ts +2 -1
- package/dist/esm/funcs/vendorsVendorsExport.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsVendorsExport.js +2 -1
- package/dist/esm/funcs/vendorsVendorsExport.js.map +1 -1
- package/dist/esm/hooks/types.d.ts +1 -0
- package/dist/esm/hooks/types.d.ts.map +1 -1
- package/dist/esm/lib/config.d.ts +4 -4
- package/dist/esm/lib/config.js +4 -4
- package/dist/esm/lib/sdks.d.ts.map +1 -1
- package/dist/esm/lib/sdks.js +13 -4
- package/dist/esm/lib/sdks.js.map +1 -1
- package/dist/esm/models/components/csvexportenqueuedresponse.d.ts +27 -0
- package/dist/esm/models/components/csvexportenqueuedresponse.d.ts.map +1 -0
- package/dist/esm/models/components/csvexportenqueuedresponse.js +23 -0
- package/dist/esm/models/components/csvexportenqueuedresponse.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +1 -1
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -1
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/operations/downloadcompanytargetfacilitiesexport.d.ts +47 -0
- package/dist/esm/models/operations/downloadcompanytargetfacilitiesexport.d.ts.map +1 -0
- package/dist/esm/models/operations/downloadcompanytargetfacilitiesexport.js +41 -0
- package/dist/esm/models/operations/downloadcompanytargetfacilitiesexport.js.map +1 -0
- package/dist/esm/models/operations/downloadvendorscansexport.d.ts +46 -0
- package/dist/esm/models/operations/downloadvendorscansexport.d.ts.map +1 -0
- package/dist/esm/models/operations/downloadvendorscansexport.js +48 -0
- package/dist/esm/models/operations/downloadvendorscansexport.js.map +1 -0
- package/dist/esm/models/operations/exportcompanytargetfacilities.d.ts +144 -0
- package/dist/esm/models/operations/exportcompanytargetfacilities.d.ts.map +1 -0
- package/dist/esm/models/operations/exportcompanytargetfacilities.js +96 -0
- package/dist/esm/models/operations/exportcompanytargetfacilities.js.map +1 -0
- package/dist/esm/models/operations/exportvendorscans.d.ts +110 -0
- package/dist/esm/models/operations/exportvendorscans.d.ts.map +1 -0
- package/dist/esm/models/operations/exportvendorscans.js +61 -0
- package/dist/esm/models/operations/exportvendorscans.js.map +1 -0
- package/dist/esm/models/operations/getcompanytargetfacilitiesexportstatus.d.ts +58 -0
- package/dist/esm/models/operations/getcompanytargetfacilitiesexportstatus.d.ts.map +1 -0
- package/dist/esm/models/operations/getcompanytargetfacilitiesexportstatus.js +40 -0
- package/dist/esm/models/operations/getcompanytargetfacilitiesexportstatus.js.map +1 -0
- package/dist/esm/models/operations/getvendorscansexportstatus.d.ts +53 -0
- package/dist/esm/models/operations/getvendorscansexportstatus.d.ts.map +1 -0
- package/dist/esm/models/operations/getvendorscansexportstatus.js +35 -0
- package/dist/esm/models/operations/getvendorscansexportstatus.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +6 -3
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +6 -3
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/invoicesexport.d.ts +4 -41
- package/dist/esm/models/operations/invoicesexport.d.ts.map +1 -1
- package/dist/esm/models/operations/invoicesexport.js +2 -31
- package/dist/esm/models/operations/invoicesexport.js.map +1 -1
- package/dist/esm/models/operations/vendorsexport.d.ts +4 -42
- package/dist/esm/models/operations/vendorsexport.d.ts.map +1 -1
- package/dist/esm/models/operations/vendorsexport.js +2 -30
- package/dist/esm/models/operations/vendorsexport.js.map +1 -1
- package/dist/esm/react-query/index.d.ts +6 -3
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +6 -3
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/invoicesInvoicesExport.core.d.ts +3 -2
- package/dist/esm/react-query/invoicesInvoicesExport.core.d.ts.map +1 -1
- package/dist/esm/react-query/invoicesInvoicesExport.core.js.map +1 -1
- package/dist/esm/react-query/invoicesInvoicesExport.d.ts +3 -2
- package/dist/esm/react-query/invoicesInvoicesExport.d.ts.map +1 -1
- package/dist/esm/react-query/invoicesInvoicesExport.js.map +1 -1
- package/dist/esm/react-query/organizationsDownloadCompanyTargetFacilitiesExport.core.d.ts +12 -0
- package/dist/esm/react-query/organizationsDownloadCompanyTargetFacilitiesExport.core.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsDownloadCompanyTargetFacilitiesExport.core.js +35 -0
- package/dist/esm/react-query/organizationsDownloadCompanyTargetFacilitiesExport.core.js.map +1 -0
- package/dist/esm/react-query/organizationsDownloadCompanyTargetFacilitiesExport.d.ts +31 -0
- package/dist/esm/react-query/organizationsDownloadCompanyTargetFacilitiesExport.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsDownloadCompanyTargetFacilitiesExport.js +61 -0
- package/dist/esm/react-query/organizationsDownloadCompanyTargetFacilitiesExport.js.map +1 -0
- package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.core.d.ts +20 -0
- package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.core.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.core.js +43 -0
- package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.core.js.map +1 -0
- package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.d.ts +65 -0
- package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.js +73 -0
- package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.js.map +1 -0
- package/dist/esm/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.core.d.ts +12 -0
- package/dist/esm/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.core.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.core.js +35 -0
- package/dist/esm/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.core.js.map +1 -0
- package/dist/esm/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.d.ts +31 -0
- package/dist/esm/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.js +61 -0
- package/dist/esm/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.js.map +1 -0
- package/dist/esm/react-query/vendorScansDownloadVendorScansExport.core.d.ts +17 -0
- package/dist/esm/react-query/vendorScansDownloadVendorScansExport.core.d.ts.map +1 -0
- package/dist/esm/react-query/vendorScansDownloadVendorScansExport.core.js +34 -0
- package/dist/esm/react-query/vendorScansDownloadVendorScansExport.core.js.map +1 -0
- package/dist/esm/react-query/vendorScansDownloadVendorScansExport.d.ts +32 -0
- package/dist/esm/react-query/vendorScansDownloadVendorScansExport.d.ts.map +1 -0
- package/dist/esm/react-query/vendorScansDownloadVendorScansExport.js +62 -0
- package/dist/esm/react-query/vendorScansDownloadVendorScansExport.js.map +1 -0
- package/dist/esm/react-query/vendorScansExportVendorScans.core.d.ts +26 -0
- package/dist/esm/react-query/vendorScansExportVendorScans.core.d.ts.map +1 -0
- package/dist/esm/react-query/vendorScansExportVendorScans.core.js +47 -0
- package/dist/esm/react-query/vendorScansExportVendorScans.core.js.map +1 -0
- package/dist/esm/react-query/vendorScansExportVendorScans.d.ts +72 -0
- package/dist/esm/react-query/vendorScansExportVendorScans.d.ts.map +1 -0
- package/dist/esm/react-query/vendorScansExportVendorScans.js +71 -0
- package/dist/esm/react-query/vendorScansExportVendorScans.js.map +1 -0
- package/dist/esm/react-query/vendorScansGetVendorScansExportStatus.core.d.ts +12 -0
- package/dist/esm/react-query/vendorScansGetVendorScansExportStatus.core.d.ts.map +1 -0
- package/dist/esm/react-query/vendorScansGetVendorScansExportStatus.core.js +34 -0
- package/dist/esm/react-query/vendorScansGetVendorScansExportStatus.core.js.map +1 -0
- package/dist/esm/react-query/vendorScansGetVendorScansExportStatus.d.ts +31 -0
- package/dist/esm/react-query/vendorScansGetVendorScansExportStatus.d.ts.map +1 -0
- package/dist/esm/react-query/vendorScansGetVendorScansExportStatus.js +61 -0
- package/dist/esm/react-query/vendorScansGetVendorScansExportStatus.js.map +1 -0
- package/dist/esm/react-query/vendorsVendorsExport.core.d.ts +3 -2
- package/dist/esm/react-query/vendorsVendorsExport.core.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsVendorsExport.core.js.map +1 -1
- package/dist/esm/react-query/vendorsVendorsExport.d.ts +3 -2
- package/dist/esm/react-query/vendorsVendorsExport.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsVendorsExport.js.map +1 -1
- package/dist/esm/sdk/invoices.d.ts +1 -1
- package/dist/esm/sdk/invoices.d.ts.map +1 -1
- package/dist/esm/sdk/organizations.d.ts +16 -50
- package/dist/esm/sdk/organizations.d.ts.map +1 -1
- package/dist/esm/sdk/organizations.js +22 -54
- package/dist/esm/sdk/organizations.js.map +1 -1
- package/dist/esm/sdk/vendors.d.ts +1 -1
- package/dist/esm/sdk/vendorscans.d.ts +33 -0
- package/dist/esm/sdk/vendorscans.d.ts.map +1 -1
- package/dist/esm/sdk/vendorscans.js +39 -0
- package/dist/esm/sdk/vendorscans.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/invoices.test.ts +3 -1
- package/src/__tests__/organizations.test.ts +51 -46
- package/src/__tests__/vendors.test.ts +3 -1
- package/src/__tests__/vendorscans.test.ts +70 -0
- package/src/__tests__/webhooks.test.ts +1 -1
- package/src/__tests__/zones.test.ts +14 -11
- package/src/funcs/invoicesInvoicesExport.ts +5 -4
- package/src/funcs/organizationsDownloadCompanyTargetFacilitiesExport.ts +200 -0
- package/src/funcs/{organizationsCreateCompanyTargetFacility.ts → organizationsExportCompanyTargetFacilities.ts} +32 -33
- package/src/funcs/{organizationsDeleteCompanyTargetFacility.ts → organizationsGetCompanyTargetFacilitiesExportStatus.ts} +22 -25
- package/src/funcs/vendorScansDownloadVendorScansExport.ts +210 -0
- package/src/funcs/vendorScansExportVendorScans.ts +194 -0
- package/src/funcs/vendorScansGetVendorScansExportStatus.ts +182 -0
- package/src/funcs/vendorsVendorsExport.ts +5 -4
- package/src/hooks/types.ts +1 -0
- package/src/lib/config.ts +4 -4
- package/src/lib/sdks.ts +13 -4
- package/src/models/components/csvexportenqueuedresponse.ts +58 -0
- package/src/models/components/index.ts +1 -1
- package/src/models/operations/downloadcompanytargetfacilitiesexport.ts +135 -0
- package/src/models/operations/downloadvendorscansexport.ts +145 -0
- package/src/models/operations/exportcompanytargetfacilities.ts +242 -0
- package/src/models/operations/exportvendorscans.ts +163 -0
- package/src/models/operations/getcompanytargetfacilitiesexportstatus.ts +126 -0
- package/src/models/operations/getvendorscansexportstatus.ts +108 -0
- package/src/models/operations/index.ts +6 -3
- package/src/models/operations/invoicesexport.ts +5 -83
- package/src/models/operations/vendorsexport.ts +5 -82
- package/src/react-query/index.ts +6 -3
- package/src/react-query/invoicesInvoicesExport.core.ts +3 -2
- package/src/react-query/invoicesInvoicesExport.ts +3 -2
- package/src/react-query/organizationsDownloadCompanyTargetFacilitiesExport.core.ts +85 -0
- package/src/react-query/organizationsDownloadCompanyTargetFacilitiesExport.ts +153 -0
- package/src/react-query/organizationsExportCompanyTargetFacilities.core.ts +99 -0
- package/src/react-query/organizationsExportCompanyTargetFacilities.ts +189 -0
- package/src/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.core.ts +84 -0
- package/src/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.ts +153 -0
- package/src/react-query/vendorScansDownloadVendorScansExport.core.ts +86 -0
- package/src/react-query/vendorScansDownloadVendorScansExport.ts +154 -0
- package/src/react-query/vendorScansExportVendorScans.core.ts +105 -0
- package/src/react-query/vendorScansExportVendorScans.ts +190 -0
- package/src/react-query/vendorScansGetVendorScansExportStatus.core.ts +78 -0
- package/src/react-query/vendorScansGetVendorScansExportStatus.ts +152 -0
- package/src/react-query/vendorsVendorsExport.core.ts +3 -2
- package/src/react-query/vendorsVendorsExport.ts +3 -2
- package/src/sdk/invoices.ts +1 -1
- package/src/sdk/organizations.ts +30 -67
- package/src/sdk/vendors.ts +1 -1
- package/src/sdk/vendorscans.ts +69 -0
- package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.d.ts +0 -34
- package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.d.ts.map +0 -1
- package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.js.map +0 -1
- package/dist/commonjs/funcs/organizationsDeleteCompanyTargetFacility.d.ts +0 -28
- package/dist/commonjs/funcs/organizationsDeleteCompanyTargetFacility.d.ts.map +0 -1
- package/dist/commonjs/funcs/organizationsDeleteCompanyTargetFacility.js.map +0 -1
- package/dist/commonjs/funcs/organizationsListCompanyTargetFacilities.d.ts +0 -42
- package/dist/commonjs/funcs/organizationsListCompanyTargetFacilities.d.ts.map +0 -1
- package/dist/commonjs/funcs/organizationsListCompanyTargetFacilities.js.map +0 -1
- package/dist/commonjs/models/components/companytargetfacility.d.ts +0 -54
- package/dist/commonjs/models/components/companytargetfacility.d.ts.map +0 -1
- package/dist/commonjs/models/components/companytargetfacility.js +0 -80
- package/dist/commonjs/models/components/companytargetfacility.js.map +0 -1
- package/dist/commonjs/models/operations/createcompanytargetfacility.d.ts +0 -50
- package/dist/commonjs/models/operations/createcompanytargetfacility.d.ts.map +0 -1
- package/dist/commonjs/models/operations/createcompanytargetfacility.js +0 -84
- package/dist/commonjs/models/operations/createcompanytargetfacility.js.map +0 -1
- package/dist/commonjs/models/operations/deletecompanytargetfacility.d.ts +0 -20
- package/dist/commonjs/models/operations/deletecompanytargetfacility.d.ts.map +0 -1
- package/dist/commonjs/models/operations/deletecompanytargetfacility.js.map +0 -1
- package/dist/commonjs/models/operations/listcompanytargetfacilities.d.ts +0 -173
- package/dist/commonjs/models/operations/listcompanytargetfacilities.d.ts.map +0 -1
- package/dist/commonjs/models/operations/listcompanytargetfacilities.js.map +0 -1
- package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.d.ts +0 -43
- package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.d.ts.map +0 -1
- package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.js +0 -65
- package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.js.map +0 -1
- package/dist/commonjs/react-query/organizationsDeleteCompanyTargetFacility.d.ts +0 -37
- package/dist/commonjs/react-query/organizationsDeleteCompanyTargetFacility.d.ts.map +0 -1
- package/dist/commonjs/react-query/organizationsDeleteCompanyTargetFacility.js +0 -59
- package/dist/commonjs/react-query/organizationsDeleteCompanyTargetFacility.js.map +0 -1
- package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.d.ts +0 -54
- package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.d.ts.map +0 -1
- package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.js +0 -111
- package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.js.map +0 -1
- package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.d.ts +0 -154
- package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.d.ts.map +0 -1
- package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.js +0 -180
- package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.js.map +0 -1
- package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.d.ts +0 -34
- package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.d.ts.map +0 -1
- package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.js.map +0 -1
- package/dist/esm/funcs/organizationsDeleteCompanyTargetFacility.d.ts +0 -28
- package/dist/esm/funcs/organizationsDeleteCompanyTargetFacility.d.ts.map +0 -1
- package/dist/esm/funcs/organizationsDeleteCompanyTargetFacility.js.map +0 -1
- package/dist/esm/funcs/organizationsListCompanyTargetFacilities.d.ts +0 -42
- package/dist/esm/funcs/organizationsListCompanyTargetFacilities.d.ts.map +0 -1
- package/dist/esm/funcs/organizationsListCompanyTargetFacilities.js +0 -158
- package/dist/esm/funcs/organizationsListCompanyTargetFacilities.js.map +0 -1
- package/dist/esm/models/components/companytargetfacility.d.ts +0 -54
- package/dist/esm/models/components/companytargetfacility.d.ts.map +0 -1
- package/dist/esm/models/components/companytargetfacility.js +0 -41
- package/dist/esm/models/components/companytargetfacility.js.map +0 -1
- package/dist/esm/models/operations/createcompanytargetfacility.d.ts +0 -50
- package/dist/esm/models/operations/createcompanytargetfacility.d.ts.map +0 -1
- package/dist/esm/models/operations/createcompanytargetfacility.js +0 -45
- package/dist/esm/models/operations/createcompanytargetfacility.js.map +0 -1
- package/dist/esm/models/operations/deletecompanytargetfacility.d.ts +0 -20
- package/dist/esm/models/operations/deletecompanytargetfacility.d.ts.map +0 -1
- package/dist/esm/models/operations/deletecompanytargetfacility.js +0 -18
- package/dist/esm/models/operations/deletecompanytargetfacility.js.map +0 -1
- package/dist/esm/models/operations/listcompanytargetfacilities.d.ts +0 -173
- package/dist/esm/models/operations/listcompanytargetfacilities.d.ts.map +0 -1
- package/dist/esm/models/operations/listcompanytargetfacilities.js +0 -110
- package/dist/esm/models/operations/listcompanytargetfacilities.js.map +0 -1
- package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.d.ts +0 -43
- package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.d.ts.map +0 -1
- package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.js +0 -60
- package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.js.map +0 -1
- package/dist/esm/react-query/organizationsDeleteCompanyTargetFacility.d.ts +0 -37
- package/dist/esm/react-query/organizationsDeleteCompanyTargetFacility.d.ts.map +0 -1
- package/dist/esm/react-query/organizationsDeleteCompanyTargetFacility.js +0 -54
- package/dist/esm/react-query/organizationsDeleteCompanyTargetFacility.js.map +0 -1
- package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.d.ts +0 -54
- package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.d.ts.map +0 -1
- package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.js +0 -103
- package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.js.map +0 -1
- package/dist/esm/react-query/organizationsListCompanyTargetFacilities.d.ts +0 -154
- package/dist/esm/react-query/organizationsListCompanyTargetFacilities.d.ts.map +0 -1
- package/dist/esm/react-query/organizationsListCompanyTargetFacilities.js +0 -165
- package/dist/esm/react-query/organizationsListCompanyTargetFacilities.js.map +0 -1
- package/src/funcs/organizationsListCompanyTargetFacilities.ts +0 -291
- package/src/models/components/companytargetfacility.ts +0 -124
- package/src/models/operations/createcompanytargetfacility.ts +0 -132
- package/src/models/operations/deletecompanytargetfacility.ts +0 -47
- package/src/models/operations/listcompanytargetfacilities.ts +0 -291
- package/src/react-query/organizationsCreateCompanyTargetFacility.ts +0 -129
- package/src/react-query/organizationsDeleteCompanyTargetFacility.ts +0 -122
- package/src/react-query/organizationsListCompanyTargetFacilities.core.ts +0 -239
- package/src/react-query/organizationsListCompanyTargetFacilities.ts +0 -365
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import * as components from "../components/index.js";
|
|
4
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
-
export type CreateCompanyTargetFacilityRequestBody = {
|
|
6
|
-
/**
|
|
7
|
-
* The existing facility to target.
|
|
8
|
-
*/
|
|
9
|
-
facilityId: number;
|
|
10
|
-
};
|
|
11
|
-
export type CreateCompanyTargetFacilityRequest = {
|
|
12
|
-
/**
|
|
13
|
-
* The company that will target the facility.
|
|
14
|
-
*/
|
|
15
|
-
companyId: number;
|
|
16
|
-
/**
|
|
17
|
-
* An array-style parameter to identify which sections of an object to expand. See documentation for the endpoint for a list of valid expansion values.
|
|
18
|
-
*/
|
|
19
|
-
expand?: Array<components.Expand> | undefined;
|
|
20
|
-
requestBody: CreateCompanyTargetFacilityRequestBody;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* The CompanyTargetFacility link was created.
|
|
24
|
-
*/
|
|
25
|
-
export type CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk = {
|
|
26
|
-
/**
|
|
27
|
-
* Describes the facilities that a company would like to do business with. These are called "target facilities" for the company. A company may target/untarget any number of facilities which will kick off the process of becoming compliant with that facility's vendor policies.
|
|
28
|
-
*/
|
|
29
|
-
companyTargetFacility: components.CompanyTargetFacility;
|
|
30
|
-
};
|
|
31
|
-
/** @internal */
|
|
32
|
-
export type CreateCompanyTargetFacilityRequestBody$Outbound = {
|
|
33
|
-
facility_id: number;
|
|
34
|
-
};
|
|
35
|
-
/** @internal */
|
|
36
|
-
export declare const CreateCompanyTargetFacilityRequestBody$outboundSchema: z.ZodType<CreateCompanyTargetFacilityRequestBody$Outbound, z.ZodTypeDef, CreateCompanyTargetFacilityRequestBody>;
|
|
37
|
-
export declare function createCompanyTargetFacilityRequestBodyToJSON(createCompanyTargetFacilityRequestBody: CreateCompanyTargetFacilityRequestBody): string;
|
|
38
|
-
/** @internal */
|
|
39
|
-
export type CreateCompanyTargetFacilityRequest$Outbound = {
|
|
40
|
-
company_id: number;
|
|
41
|
-
expand?: Array<string> | undefined;
|
|
42
|
-
RequestBody: CreateCompanyTargetFacilityRequestBody$Outbound;
|
|
43
|
-
};
|
|
44
|
-
/** @internal */
|
|
45
|
-
export declare const CreateCompanyTargetFacilityRequest$outboundSchema: z.ZodType<CreateCompanyTargetFacilityRequest$Outbound, z.ZodTypeDef, CreateCompanyTargetFacilityRequest>;
|
|
46
|
-
export declare function createCompanyTargetFacilityRequestToJSON(createCompanyTargetFacilityRequest: CreateCompanyTargetFacilityRequest): string;
|
|
47
|
-
/** @internal */
|
|
48
|
-
export declare const CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk$inboundSchema: z.ZodType<CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk, z.ZodTypeDef, unknown>;
|
|
49
|
-
export declare function createCompanyTargetFacilityCreateCompanyTargetFacilityOkFromJSON(jsonString: string): SafeParseResult<CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk, SDKValidationError>;
|
|
50
|
-
//# sourceMappingURL=createcompanytargetfacility.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createcompanytargetfacility.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/createcompanytargetfacility.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,sCAAsC,GAAG;IACnD;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAAG;IAC/C;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IAC9C,WAAW,EAAE,sCAAsC,CAAC;CACrD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,wDAAwD,GAAG;IACrE;;OAEG;IACH,qBAAqB,EAAE,UAAU,CAAC,qBAAqB,CAAC;CACzD,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,+CAA+C,GAAG;IAC5D,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qDAAqD,EAAE,CAAC,CAAC,OAAO,CAC3E,+CAA+C,EAC/C,CAAC,CAAC,UAAU,EACZ,sCAAsC,CAOtC,CAAC;AAEH,wBAAgB,4CAA4C,CAC1D,sCAAsC,EACpC,sCAAsC,GACvC,MAAM,CAMR;AAED,gBAAgB;AAChB,MAAM,MAAM,2CAA2C,GAAG;IACxD,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACnC,WAAW,EAAE,+CAA+C,CAAC;CAC9D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iDAAiD,EAAE,CAAC,CAAC,OAAO,CACvE,2CAA2C,EAC3C,CAAC,CAAC,UAAU,EACZ,kCAAkC,CAYlC,CAAC;AAEH,wBAAgB,wCAAwC,CACtD,kCAAkC,EAAE,kCAAkC,GACrE,MAAM,CAMR;AAED,gBAAgB;AAChB,eAAO,MAAM,sEAAsE,EACjF,CAAC,CAAC,OAAO,CACP,wDAAwD,EACxD,CAAC,CAAC,UAAU,EACZ,OAAO,CAOP,CAAC;AAEL,wBAAgB,gEAAgE,CAC9E,UAAU,EAAE,MAAM,GACjB,eAAe,CAChB,wDAAwD,EACxD,kBAAkB,CACnB,CAQA"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod/v3";
|
|
5
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import * as components from "../components/index.js";
|
|
8
|
-
/** @internal */
|
|
9
|
-
export const CreateCompanyTargetFacilityRequestBody$outboundSchema = z.object({
|
|
10
|
-
facilityId: z.number().int(),
|
|
11
|
-
}).transform((v) => {
|
|
12
|
-
return remap$(v, {
|
|
13
|
-
facilityId: "facility_id",
|
|
14
|
-
});
|
|
15
|
-
});
|
|
16
|
-
export function createCompanyTargetFacilityRequestBodyToJSON(createCompanyTargetFacilityRequestBody) {
|
|
17
|
-
return JSON.stringify(CreateCompanyTargetFacilityRequestBody$outboundSchema.parse(createCompanyTargetFacilityRequestBody));
|
|
18
|
-
}
|
|
19
|
-
/** @internal */
|
|
20
|
-
export const CreateCompanyTargetFacilityRequest$outboundSchema = z.object({
|
|
21
|
-
companyId: z.number().int(),
|
|
22
|
-
expand: z.array(components.Expand$outboundSchema).optional(),
|
|
23
|
-
requestBody: z.lazy(() => CreateCompanyTargetFacilityRequestBody$outboundSchema),
|
|
24
|
-
}).transform((v) => {
|
|
25
|
-
return remap$(v, {
|
|
26
|
-
companyId: "company_id",
|
|
27
|
-
requestBody: "RequestBody",
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
|
-
export function createCompanyTargetFacilityRequestToJSON(createCompanyTargetFacilityRequest) {
|
|
31
|
-
return JSON.stringify(CreateCompanyTargetFacilityRequest$outboundSchema.parse(createCompanyTargetFacilityRequest));
|
|
32
|
-
}
|
|
33
|
-
/** @internal */
|
|
34
|
-
export const CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk$inboundSchema = z.object({
|
|
35
|
-
company_target_facility: components.CompanyTargetFacility$inboundSchema,
|
|
36
|
-
}).transform((v) => {
|
|
37
|
-
return remap$(v, {
|
|
38
|
-
"company_target_facility": "companyTargetFacility",
|
|
39
|
-
});
|
|
40
|
-
});
|
|
41
|
-
export function createCompanyTargetFacilityCreateCompanyTargetFacilityOkFromJSON(jsonString) {
|
|
42
|
-
return safeParse(jsonString, (x) => CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk$inboundSchema
|
|
43
|
-
.parse(JSON.parse(x)), `Failed to parse 'CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk' from JSON`);
|
|
44
|
-
}
|
|
45
|
-
//# sourceMappingURL=createcompanytargetfacility.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createcompanytargetfacility.js","sourceRoot":"","sources":["../../../../src/models/operations/createcompanytargetfacility.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,UAAU,MAAM,wBAA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EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,yBAAyB,EAAE,uBAAuB;KACnD,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEL,MAAM,UAAU,gEAAgE,CAC9E,UAAkB;IAKlB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,sEAAsE;SACnE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzB,sFAAsF,CACvF,CAAC;AACJ,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
export type DeleteCompanyTargetFacilityRequest = {
|
|
3
|
-
/**
|
|
4
|
-
* The company that owns the CompanyTargetFacility link.
|
|
5
|
-
*/
|
|
6
|
-
companyId: number;
|
|
7
|
-
/**
|
|
8
|
-
* CompanyTargetFacility id
|
|
9
|
-
*/
|
|
10
|
-
id: number;
|
|
11
|
-
};
|
|
12
|
-
/** @internal */
|
|
13
|
-
export type DeleteCompanyTargetFacilityRequest$Outbound = {
|
|
14
|
-
company_id: number;
|
|
15
|
-
id: number;
|
|
16
|
-
};
|
|
17
|
-
/** @internal */
|
|
18
|
-
export declare const DeleteCompanyTargetFacilityRequest$outboundSchema: z.ZodType<DeleteCompanyTargetFacilityRequest$Outbound, z.ZodTypeDef, DeleteCompanyTargetFacilityRequest>;
|
|
19
|
-
export declare function deleteCompanyTargetFacilityRequestToJSON(deleteCompanyTargetFacilityRequest: DeleteCompanyTargetFacilityRequest): string;
|
|
20
|
-
//# sourceMappingURL=deletecompanytargetfacility.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deletecompanytargetfacility.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/deletecompanytargetfacility.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,MAAM,MAAM,kCAAkC,GAAG;IAC/C;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,2CAA2C,GAAG;IACxD,UAAU,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iDAAiD,EAAE,CAAC,CAAC,OAAO,CACvE,2CAA2C,EAC3C,CAAC,CAAC,UAAU,EACZ,kCAAkC,CAQlC,CAAC;AAEH,wBAAgB,wCAAwC,CACtD,kCAAkC,EAAE,kCAAkC,GACrE,MAAM,CAMR"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod/v3";
|
|
5
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
|
-
/** @internal */
|
|
7
|
-
export const DeleteCompanyTargetFacilityRequest$outboundSchema = z.object({
|
|
8
|
-
companyId: z.number().int(),
|
|
9
|
-
id: z.number().int(),
|
|
10
|
-
}).transform((v) => {
|
|
11
|
-
return remap$(v, {
|
|
12
|
-
companyId: "company_id",
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
export function deleteCompanyTargetFacilityRequestToJSON(deleteCompanyTargetFacilityRequest) {
|
|
16
|
-
return JSON.stringify(DeleteCompanyTargetFacilityRequest$outboundSchema.parse(deleteCompanyTargetFacilityRequest));
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=deletecompanytargetfacility.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deletecompanytargetfacility.js","sourceRoot":"","sources":["../../../../src/models/operations/deletecompanytargetfacility.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAmB1D,gBAAgB;AAChB,MAAM,CAAC,MAAM,iDAAiD,GAI1D,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC3B,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CACrB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,SAAS,EAAE,YAAY;KACxB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,wCAAwC,CACtD,kCAAsE;IAEtE,OAAO,IAAI,CAAC,SAAS,CACnB,iDAAiD,CAAC,KAAK,CACrD,kCAAkC,CACnC,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
-
import * as components from "../components/index.js";
|
|
5
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
6
|
-
/**
|
|
7
|
-
* Filter by link status.
|
|
8
|
-
*/
|
|
9
|
-
export declare const QueryParamStatus: {
|
|
10
|
-
readonly Pending: "pending";
|
|
11
|
-
readonly Approved: "approved";
|
|
12
|
-
readonly Denied: "denied";
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* Filter by link status.
|
|
16
|
-
*/
|
|
17
|
-
export type QueryParamStatus = ClosedEnum<typeof QueryParamStatus>;
|
|
18
|
-
/**
|
|
19
|
-
* `true` returns only facilities the company has at least one individual targeting; `false` returns only those with none.
|
|
20
|
-
*/
|
|
21
|
-
export declare const HasIndividual: {
|
|
22
|
-
readonly True: "true";
|
|
23
|
-
readonly False: "false";
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* `true` returns only facilities the company has at least one individual targeting; `false` returns only those with none.
|
|
27
|
-
*/
|
|
28
|
-
export type HasIndividual = ClosedEnum<typeof HasIndividual>;
|
|
29
|
-
/**
|
|
30
|
-
* Like `has_individual`, but only counts individuals whose credentialing subscription is active.
|
|
31
|
-
*/
|
|
32
|
-
export declare const HasActiveIndividual: {
|
|
33
|
-
readonly True: "true";
|
|
34
|
-
readonly False: "false";
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* Like `has_individual`, but only counts individuals whose credentialing subscription is active.
|
|
38
|
-
*/
|
|
39
|
-
export type HasActiveIndividual = ClosedEnum<typeof HasActiveIndividual>;
|
|
40
|
-
/**
|
|
41
|
-
* When `true`, returns ALL non-deleted facilities via LEFT JOIN. Targeted rows carry their CTF id and status; non-targeted rows have `id: null` and `status: "Not Targeted"`.
|
|
42
|
-
*/
|
|
43
|
-
export declare const IncludePotentialTargets: {
|
|
44
|
-
readonly True: "true";
|
|
45
|
-
readonly False: "false";
|
|
46
|
-
};
|
|
47
|
-
/**
|
|
48
|
-
* When `true`, returns ALL non-deleted facilities via LEFT JOIN. Targeted rows carry their CTF id and status; non-targeted rows have `id: null` and `status: "Not Targeted"`.
|
|
49
|
-
*/
|
|
50
|
-
export type IncludePotentialTargets = ClosedEnum<typeof IncludePotentialTargets>;
|
|
51
|
-
/**
|
|
52
|
-
* Sort field (defaults to `facility_name`). When `include_potential_targets=true`, only `facility_name`, `system_name`, `city`, and `status` are applicable.
|
|
53
|
-
*/
|
|
54
|
-
export declare const QueryParamSort: {
|
|
55
|
-
readonly Id: "id";
|
|
56
|
-
readonly FacilityName: "facility_name";
|
|
57
|
-
readonly SystemName: "system_name";
|
|
58
|
-
readonly Status: "status";
|
|
59
|
-
readonly DateCreated: "date_created";
|
|
60
|
-
readonly City: "city";
|
|
61
|
-
};
|
|
62
|
-
/**
|
|
63
|
-
* Sort field (defaults to `facility_name`). When `include_potential_targets=true`, only `facility_name`, `system_name`, `city`, and `status` are applicable.
|
|
64
|
-
*/
|
|
65
|
-
export type QueryParamSort = ClosedEnum<typeof QueryParamSort>;
|
|
66
|
-
export type ListCompanyTargetFacilitiesRequest = {
|
|
67
|
-
/**
|
|
68
|
-
* The company whose target facilities to list.
|
|
69
|
-
*/
|
|
70
|
-
companyId: number;
|
|
71
|
-
/**
|
|
72
|
-
* An array-style parameter to identify which sections of an object to expand. See documentation for the endpoint for a list of valid expansion values.
|
|
73
|
-
*/
|
|
74
|
-
expand?: Array<components.Expand> | undefined;
|
|
75
|
-
/**
|
|
76
|
-
* Filter by link status.
|
|
77
|
-
*/
|
|
78
|
-
status?: QueryParamStatus | undefined;
|
|
79
|
-
/**
|
|
80
|
-
* `true` returns only facilities the company has at least one individual targeting; `false` returns only those with none.
|
|
81
|
-
*/
|
|
82
|
-
hasIndividual?: HasIndividual | undefined;
|
|
83
|
-
/**
|
|
84
|
-
* Like `has_individual`, but only counts individuals whose credentialing subscription is active.
|
|
85
|
-
*/
|
|
86
|
-
hasActiveIndividual?: HasActiveIndividual | undefined;
|
|
87
|
-
/**
|
|
88
|
-
* When `true`, returns ALL non-deleted facilities via LEFT JOIN. Targeted rows carry their CTF id and status; non-targeted rows have `id: null` and `status: "Not Targeted"`.
|
|
89
|
-
*/
|
|
90
|
-
includePotentialTargets?: IncludePotentialTargets | undefined;
|
|
91
|
-
/**
|
|
92
|
-
* Case-insensitive partial match on facility name.
|
|
93
|
-
*/
|
|
94
|
-
facilityNameLike?: string | undefined;
|
|
95
|
-
/**
|
|
96
|
-
* Case-insensitive partial match on facility city.
|
|
97
|
-
*/
|
|
98
|
-
cityLike?: string | undefined;
|
|
99
|
-
/**
|
|
100
|
-
* Case-insensitive partial match on facility street address.
|
|
101
|
-
*/
|
|
102
|
-
addressLike?: string | undefined;
|
|
103
|
-
/**
|
|
104
|
-
* Case-insensitive partial match on the facility's parent system name.
|
|
105
|
-
*/
|
|
106
|
-
systemNameLike?: string | undefined;
|
|
107
|
-
/**
|
|
108
|
-
* Sort field (defaults to `facility_name`). When `include_potential_targets=true`, only `facility_name`, `system_name`, `city`, and `status` are applicable.
|
|
109
|
-
*/
|
|
110
|
-
sort?: QueryParamSort | undefined;
|
|
111
|
-
/**
|
|
112
|
-
* Sort desc
|
|
113
|
-
*/
|
|
114
|
-
desc?: components.Desc | undefined;
|
|
115
|
-
/**
|
|
116
|
-
* A 1-based offset for which page to request (defaults to 1)
|
|
117
|
-
*/
|
|
118
|
-
page?: number | undefined;
|
|
119
|
-
/**
|
|
120
|
-
* Number of items to show in a given page
|
|
121
|
-
*/
|
|
122
|
-
itemsPerPage?: number | undefined;
|
|
123
|
-
};
|
|
124
|
-
/**
|
|
125
|
-
* The request was successful, and the server has returned the requested resource in the response body.
|
|
126
|
-
*/
|
|
127
|
-
export type ListCompanyTargetFacilitiesListCompanyTargetFacilitiesOk = {
|
|
128
|
-
/**
|
|
129
|
-
* Pagination information for a pageable list
|
|
130
|
-
*/
|
|
131
|
-
pager: components.Pager;
|
|
132
|
-
items: Array<components.CompanyTargetFacility>;
|
|
133
|
-
};
|
|
134
|
-
export type ListCompanyTargetFacilitiesResponse = {
|
|
135
|
-
result: ListCompanyTargetFacilitiesListCompanyTargetFacilitiesOk;
|
|
136
|
-
};
|
|
137
|
-
/** @internal */
|
|
138
|
-
export declare const QueryParamStatus$outboundSchema: z.ZodNativeEnum<typeof QueryParamStatus>;
|
|
139
|
-
/** @internal */
|
|
140
|
-
export declare const HasIndividual$outboundSchema: z.ZodNativeEnum<typeof HasIndividual>;
|
|
141
|
-
/** @internal */
|
|
142
|
-
export declare const HasActiveIndividual$outboundSchema: z.ZodNativeEnum<typeof HasActiveIndividual>;
|
|
143
|
-
/** @internal */
|
|
144
|
-
export declare const IncludePotentialTargets$outboundSchema: z.ZodNativeEnum<typeof IncludePotentialTargets>;
|
|
145
|
-
/** @internal */
|
|
146
|
-
export declare const QueryParamSort$outboundSchema: z.ZodNativeEnum<typeof QueryParamSort>;
|
|
147
|
-
/** @internal */
|
|
148
|
-
export type ListCompanyTargetFacilitiesRequest$Outbound = {
|
|
149
|
-
company_id: number;
|
|
150
|
-
expand?: Array<string> | undefined;
|
|
151
|
-
status?: string | undefined;
|
|
152
|
-
has_individual?: string | undefined;
|
|
153
|
-
has_active_individual?: string | undefined;
|
|
154
|
-
include_potential_targets?: string | undefined;
|
|
155
|
-
facility_name_like?: string | undefined;
|
|
156
|
-
city_like?: string | undefined;
|
|
157
|
-
address_like?: string | undefined;
|
|
158
|
-
system_name_like?: string | undefined;
|
|
159
|
-
sort?: string | undefined;
|
|
160
|
-
desc?: components.Desc$Outbound | undefined;
|
|
161
|
-
page?: number | undefined;
|
|
162
|
-
items_per_page?: number | undefined;
|
|
163
|
-
};
|
|
164
|
-
/** @internal */
|
|
165
|
-
export declare const ListCompanyTargetFacilitiesRequest$outboundSchema: z.ZodType<ListCompanyTargetFacilitiesRequest$Outbound, z.ZodTypeDef, ListCompanyTargetFacilitiesRequest>;
|
|
166
|
-
export declare function listCompanyTargetFacilitiesRequestToJSON(listCompanyTargetFacilitiesRequest: ListCompanyTargetFacilitiesRequest): string;
|
|
167
|
-
/** @internal */
|
|
168
|
-
export declare const ListCompanyTargetFacilitiesListCompanyTargetFacilitiesOk$inboundSchema: z.ZodType<ListCompanyTargetFacilitiesListCompanyTargetFacilitiesOk, z.ZodTypeDef, unknown>;
|
|
169
|
-
export declare function listCompanyTargetFacilitiesListCompanyTargetFacilitiesOkFromJSON(jsonString: string): SafeParseResult<ListCompanyTargetFacilitiesListCompanyTargetFacilitiesOk, SDKValidationError>;
|
|
170
|
-
/** @internal */
|
|
171
|
-
export declare const ListCompanyTargetFacilitiesResponse$inboundSchema: z.ZodType<ListCompanyTargetFacilitiesResponse, z.ZodTypeDef, unknown>;
|
|
172
|
-
export declare function listCompanyTargetFacilitiesResponseFromJSON(jsonString: string): SafeParseResult<ListCompanyTargetFacilitiesResponse, SDKValidationError>;
|
|
173
|
-
//# sourceMappingURL=listcompanytargetfacilities.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"listcompanytargetfacilities.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/listcompanytargetfacilities.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;CAInB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEnE;;GAEG;AACH,eAAO,MAAM,aAAa;;;CAGhB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AAE7D;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;CAGtB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEzE;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;CAG1B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAC9C,OAAO,uBAAuB,CAC/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;CAOjB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAE/D,MAAM,MAAM,kCAAkC,GAAG;IAC/C;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IAC9C;;OAEG;IACH,MAAM,CAAC,EAAE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sEAAsE,EACjF,CAAC,CAAC,OAAO,CACP,wDAAwD,EACxD,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEL,wBAAgB,gEAAgE,CAC9E,UAAU,EAAE,MAAM,GACjB,eAAe,CAChB,wDAAwD,EACxD,kBAAkB,CACnB,CAQA;AAED,gBAAgB;AAChB,eAAO,MAAM,iDAAiD,EAAE,CAAC,CAAC,OAAO,CACvE,mCAAmC,EACnC,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AAEH,wBAAgB,2CAA2C,CACzD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mCAAmC,EAAE,kBAAkB,CAAC,CAO1E"}
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod/v3";
|
|
5
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import * as components from "../components/index.js";
|
|
8
|
-
/**
|
|
9
|
-
* Filter by link status.
|
|
10
|
-
*/
|
|
11
|
-
export const QueryParamStatus = {
|
|
12
|
-
Pending: "pending",
|
|
13
|
-
Approved: "approved",
|
|
14
|
-
Denied: "denied",
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* `true` returns only facilities the company has at least one individual targeting; `false` returns only those with none.
|
|
18
|
-
*/
|
|
19
|
-
export const HasIndividual = {
|
|
20
|
-
True: "true",
|
|
21
|
-
False: "false",
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Like `has_individual`, but only counts individuals whose credentialing subscription is active.
|
|
25
|
-
*/
|
|
26
|
-
export const HasActiveIndividual = {
|
|
27
|
-
True: "true",
|
|
28
|
-
False: "false",
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* When `true`, returns ALL non-deleted facilities via LEFT JOIN. Targeted rows carry their CTF id and status; non-targeted rows have `id: null` and `status: "Not Targeted"`.
|
|
32
|
-
*/
|
|
33
|
-
export const IncludePotentialTargets = {
|
|
34
|
-
True: "true",
|
|
35
|
-
False: "false",
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* Sort field (defaults to `facility_name`). When `include_potential_targets=true`, only `facility_name`, `system_name`, `city`, and `status` are applicable.
|
|
39
|
-
*/
|
|
40
|
-
export const QueryParamSort = {
|
|
41
|
-
Id: "id",
|
|
42
|
-
FacilityName: "facility_name",
|
|
43
|
-
SystemName: "system_name",
|
|
44
|
-
Status: "status",
|
|
45
|
-
DateCreated: "date_created",
|
|
46
|
-
City: "city",
|
|
47
|
-
};
|
|
48
|
-
/** @internal */
|
|
49
|
-
export const QueryParamStatus$outboundSchema = z.nativeEnum(QueryParamStatus);
|
|
50
|
-
/** @internal */
|
|
51
|
-
export const HasIndividual$outboundSchema = z.nativeEnum(HasIndividual);
|
|
52
|
-
/** @internal */
|
|
53
|
-
export const HasActiveIndividual$outboundSchema = z.nativeEnum(HasActiveIndividual);
|
|
54
|
-
/** @internal */
|
|
55
|
-
export const IncludePotentialTargets$outboundSchema = z.nativeEnum(IncludePotentialTargets);
|
|
56
|
-
/** @internal */
|
|
57
|
-
export const QueryParamSort$outboundSchema = z.nativeEnum(QueryParamSort);
|
|
58
|
-
/** @internal */
|
|
59
|
-
export const ListCompanyTargetFacilitiesRequest$outboundSchema = z.object({
|
|
60
|
-
companyId: z.number().int(),
|
|
61
|
-
expand: z.array(components.Expand$outboundSchema).optional(),
|
|
62
|
-
status: QueryParamStatus$outboundSchema.optional(),
|
|
63
|
-
hasIndividual: HasIndividual$outboundSchema.optional(),
|
|
64
|
-
hasActiveIndividual: HasActiveIndividual$outboundSchema.optional(),
|
|
65
|
-
includePotentialTargets: IncludePotentialTargets$outboundSchema.optional(),
|
|
66
|
-
facilityNameLike: z.string().optional(),
|
|
67
|
-
cityLike: z.string().optional(),
|
|
68
|
-
addressLike: z.string().optional(),
|
|
69
|
-
systemNameLike: z.string().optional(),
|
|
70
|
-
sort: QueryParamSort$outboundSchema.optional(),
|
|
71
|
-
desc: components.Desc$outboundSchema.optional(),
|
|
72
|
-
page: z.number().int().optional(),
|
|
73
|
-
itemsPerPage: z.number().int().optional(),
|
|
74
|
-
}).transform((v) => {
|
|
75
|
-
return remap$(v, {
|
|
76
|
-
companyId: "company_id",
|
|
77
|
-
hasIndividual: "has_individual",
|
|
78
|
-
hasActiveIndividual: "has_active_individual",
|
|
79
|
-
includePotentialTargets: "include_potential_targets",
|
|
80
|
-
facilityNameLike: "facility_name_like",
|
|
81
|
-
cityLike: "city_like",
|
|
82
|
-
addressLike: "address_like",
|
|
83
|
-
systemNameLike: "system_name_like",
|
|
84
|
-
itemsPerPage: "items_per_page",
|
|
85
|
-
});
|
|
86
|
-
});
|
|
87
|
-
export function listCompanyTargetFacilitiesRequestToJSON(listCompanyTargetFacilitiesRequest) {
|
|
88
|
-
return JSON.stringify(ListCompanyTargetFacilitiesRequest$outboundSchema.parse(listCompanyTargetFacilitiesRequest));
|
|
89
|
-
}
|
|
90
|
-
/** @internal */
|
|
91
|
-
export const ListCompanyTargetFacilitiesListCompanyTargetFacilitiesOk$inboundSchema = z.object({
|
|
92
|
-
pager: components.Pager$inboundSchema,
|
|
93
|
-
items: z.array(components.CompanyTargetFacility$inboundSchema),
|
|
94
|
-
});
|
|
95
|
-
export function listCompanyTargetFacilitiesListCompanyTargetFacilitiesOkFromJSON(jsonString) {
|
|
96
|
-
return safeParse(jsonString, (x) => ListCompanyTargetFacilitiesListCompanyTargetFacilitiesOk$inboundSchema
|
|
97
|
-
.parse(JSON.parse(x)), `Failed to parse 'ListCompanyTargetFacilitiesListCompanyTargetFacilitiesOk' from JSON`);
|
|
98
|
-
}
|
|
99
|
-
/** @internal */
|
|
100
|
-
export const ListCompanyTargetFacilitiesResponse$inboundSchema = z.object({
|
|
101
|
-
Result: z.lazy(() => ListCompanyTargetFacilitiesListCompanyTargetFacilitiesOk$inboundSchema),
|
|
102
|
-
}).transform((v) => {
|
|
103
|
-
return remap$(v, {
|
|
104
|
-
"Result": "result",
|
|
105
|
-
});
|
|
106
|
-
});
|
|
107
|
-
export function listCompanyTargetFacilitiesResponseFromJSON(jsonString) {
|
|
108
|
-
return safeParse(jsonString, (x) => ListCompanyTargetFacilitiesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListCompanyTargetFacilitiesResponse' from JSON`);
|
|
109
|
-
}
|
|
110
|
-
//# sourceMappingURL=listcompanytargetfacilities.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"listcompanytargetfacilities.js","sourceRoot":"","sources":["../../../../src/models/operations/listcompanytargetfacilities.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAGrD;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;CACR,CAAC;AAMX;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACN,CAAC;AAMX;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACN,CAAC;AAMX;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACN,CAAC;AAQX;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,EAAE,EAAE,IAAI;IACR,YAAY,E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AAC;AACJ,CAAC;AAED,gBAAgB;AAChB,MAAM,CAAC,MAAM,iDAAiD,GAI1D,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAClB,sEAAsE,CACvE;CACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,QAAQ,EAAE,QAAQ;KACnB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,2CAA2C,CACzD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,iDAAiD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxE,iEAAiE,CAClE,CAAC;AACJ,CAAC"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { MutationKey, UseMutationResult } from "@tanstack/react-query";
|
|
2
|
-
import { GreenSecurityCore } from "../core.js";
|
|
3
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
4
|
-
import { GreenSecurityError } from "../models/errors/greensecurityerror.js";
|
|
5
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
6
|
-
import * as errors from "../models/errors/index.js";
|
|
7
|
-
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
8
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
9
|
-
import * as operations from "../models/operations/index.js";
|
|
10
|
-
import { MutationHookOptions } from "./_types.js";
|
|
11
|
-
export type OrganizationsCreateCompanyTargetFacilityMutationVariables = {
|
|
12
|
-
request: operations.CreateCompanyTargetFacilityRequest;
|
|
13
|
-
options?: RequestOptions;
|
|
14
|
-
};
|
|
15
|
-
export type OrganizationsCreateCompanyTargetFacilityMutationData = operations.CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk;
|
|
16
|
-
export type OrganizationsCreateCompanyTargetFacilityMutationError = errors.ApiErrorResponse | GreenSecurityError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError;
|
|
17
|
-
/**
|
|
18
|
-
* Add a company target facility
|
|
19
|
-
*
|
|
20
|
-
* @remarks
|
|
21
|
-
* Links the URL's company to an existing facility. The link is created with
|
|
22
|
-
* status `Pending`. Only the link row is created — the Facility entity
|
|
23
|
-
* itself is never created or modified by this endpoint.
|
|
24
|
-
*
|
|
25
|
-
* Access control: the URL's `company_id` must be in the caller's update
|
|
26
|
-
* scope for Company, AND the `facility_id` must be in the caller's create
|
|
27
|
-
* scope for Facility (a facility on the company's site, or a facility
|
|
28
|
-
* reachable via the API user's site/system/facility-scoped activation).
|
|
29
|
-
* Either being out of scope returns `404 Company not found` /
|
|
30
|
-
* `404 Facility not found` respectively. Deleted facilities also return
|
|
31
|
-
* `404 Facility not found`.
|
|
32
|
-
*
|
|
33
|
-
* Available `expand` scopes are:
|
|
34
|
-
*
|
|
35
|
-
* - company_target_facility.facility
|
|
36
|
-
*/
|
|
37
|
-
export declare function useOrganizationsCreateCompanyTargetFacilityMutation(options?: MutationHookOptions<OrganizationsCreateCompanyTargetFacilityMutationData, OrganizationsCreateCompanyTargetFacilityMutationError, OrganizationsCreateCompanyTargetFacilityMutationVariables>): UseMutationResult<OrganizationsCreateCompanyTargetFacilityMutationData, OrganizationsCreateCompanyTargetFacilityMutationError, OrganizationsCreateCompanyTargetFacilityMutationVariables>;
|
|
38
|
-
export declare function mutationKeyOrganizationsCreateCompanyTargetFacility(): MutationKey;
|
|
39
|
-
export declare function buildOrganizationsCreateCompanyTargetFacilityMutation(client$: GreenSecurityCore, hookOptions?: RequestOptions): {
|
|
40
|
-
mutationKey: MutationKey;
|
|
41
|
-
mutationFn: (variables: OrganizationsCreateCompanyTargetFacilityMutationVariables) => Promise<OrganizationsCreateCompanyTargetFacilityMutationData>;
|
|
42
|
-
};
|
|
43
|
-
//# sourceMappingURL=organizationsCreateCompanyTargetFacility.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"organizationsCreateCompanyTargetFacility.d.ts","sourceRoot":"","sources":["../../../src/react-query/organizationsCreateCompanyTargetFacility.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,WAAW,EAEX,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAG/C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,MAAM,yDAAyD,GAAG;IACtE,OAAO,EAAE,UAAU,CAAC,kCAAkC,CAAC;IACvD,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,oDAAoD,GAC9D,UAAU,CAAC,wDAAwD,CAAC;AAEtE,MAAM,MAAM,qDAAqD,GAC7D,MAAM,CAAC,gBAAgB,GACvB,kBAAkB,GAClB,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CAAC;AAEvB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,mDAAmD,CACjE,OAAO,CAAC,EAAE,mBAAmB,CAC3B,oDAAoD,EACpD,qDAAqD,EACrD,yDAAyD,CAC1D,GACA,iBAAiB,CAClB,oDAAoD,EACpD,qDAAqD,EACrD,yDAAyD,CAC1D,CAMA;AAED,wBAAgB,mDAAmD,IAAI,WAAW,CAMjF;AAED,wBAAgB,qDAAqD,CACnE,OAAO,EAAE,iBAAiB,EAC1B,WAAW,CAAC,EAAE,cAAc,GAC3B;IACD,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,EAAE,CACV,SAAS,EAAE,yDAAyD,KACjE,OAAO,CAAC,oDAAoD,CAAC,CAAC;CACpE,CA0BA"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import { useMutation, } from "@tanstack/react-query";
|
|
5
|
-
import { organizationsCreateCompanyTargetFacility } from "../funcs/organizationsCreateCompanyTargetFacility.js";
|
|
6
|
-
import { combineSignals } from "../lib/primitives.js";
|
|
7
|
-
import { unwrapAsync } from "../types/fp.js";
|
|
8
|
-
import { useGreenSecurityContext } from "./_context.js";
|
|
9
|
-
/**
|
|
10
|
-
* Add a company target facility
|
|
11
|
-
*
|
|
12
|
-
* @remarks
|
|
13
|
-
* Links the URL's company to an existing facility. The link is created with
|
|
14
|
-
* status `Pending`. Only the link row is created — the Facility entity
|
|
15
|
-
* itself is never created or modified by this endpoint.
|
|
16
|
-
*
|
|
17
|
-
* Access control: the URL's `company_id` must be in the caller's update
|
|
18
|
-
* scope for Company, AND the `facility_id` must be in the caller's create
|
|
19
|
-
* scope for Facility (a facility on the company's site, or a facility
|
|
20
|
-
* reachable via the API user's site/system/facility-scoped activation).
|
|
21
|
-
* Either being out of scope returns `404 Company not found` /
|
|
22
|
-
* `404 Facility not found` respectively. Deleted facilities also return
|
|
23
|
-
* `404 Facility not found`.
|
|
24
|
-
*
|
|
25
|
-
* Available `expand` scopes are:
|
|
26
|
-
*
|
|
27
|
-
* - company_target_facility.facility
|
|
28
|
-
*/
|
|
29
|
-
export function useOrganizationsCreateCompanyTargetFacilityMutation(options) {
|
|
30
|
-
const client = useGreenSecurityContext();
|
|
31
|
-
return useMutation({
|
|
32
|
-
...buildOrganizationsCreateCompanyTargetFacilityMutation(client, options),
|
|
33
|
-
...options,
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
export function mutationKeyOrganizationsCreateCompanyTargetFacility() {
|
|
37
|
-
return [
|
|
38
|
-
"@greensecurity/javascript-sdk",
|
|
39
|
-
"organizations",
|
|
40
|
-
"createCompanyTargetFacility",
|
|
41
|
-
];
|
|
42
|
-
}
|
|
43
|
-
export function buildOrganizationsCreateCompanyTargetFacilityMutation(client$, hookOptions) {
|
|
44
|
-
return {
|
|
45
|
-
mutationKey: mutationKeyOrganizationsCreateCompanyTargetFacility(),
|
|
46
|
-
mutationFn: function organizationsCreateCompanyTargetFacilityMutationFn({ request, options, }) {
|
|
47
|
-
const mergedOptions = {
|
|
48
|
-
...hookOptions,
|
|
49
|
-
...options,
|
|
50
|
-
fetchOptions: {
|
|
51
|
-
...hookOptions?.fetchOptions,
|
|
52
|
-
...options?.fetchOptions,
|
|
53
|
-
signal: combineSignals(hookOptions?.fetchOptions?.signal, options?.fetchOptions?.signal),
|
|
54
|
-
},
|
|
55
|
-
};
|
|
56
|
-
return unwrapAsync(organizationsCreateCompanyTargetFacility(client$, request, mergedOptions));
|
|
57
|
-
},
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
//# sourceMappingURL=organizationsCreateCompanyTargetFacility.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"organizationsCreateCompanyTargetFacility.js","sourceRoot":"","sources":["../../../src/react-query/organizationsCreateCompanyTargetFacility.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAEL,WAAW,GAEZ,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,wCAAwC,EAAE,MAAM,sDAAsD,CAAC;AAChH,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AActD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAsBxD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,UAAU,mDAAmD,CACjE,OAIC;IAMD,MAAM,MAAM,GAAG,uBAAuB,EAAE,CAAC;IACzC,OAAO,WAAW,CAAC;QACjB,GAAG,qDAAqD,CAAC,MAAM,EAAE,OAAO,CAAC;QACzE,GAAG,OAAO;KACX,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,mDAAmD;IACjE,OAAO;QACL,+BAA+B;QAC/B,eAAe;QACf,6BAA6B;KAC9B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,qDAAqD,CACnE,OAA0B,EAC1B,WAA4B;IAO5B,OAAO;QACL,WAAW,EAAE,mDAAmD,EAAE;QAClE,UAAU,EAAE,SAAS,kDAAkD,CAAC,EACtE,OAAO,EACP,OAAO,GACR;YACC,MAAM,aAAa,GAAG;gBACpB,GAAG,WAAW;gBACd,GAAG,OAAO;gBACV,YAAY,EAAE;oBACZ,GAAG,WAAW,EAAE,YAAY;oBAC5B,GAAG,OAAO,EAAE,YAAY;oBACxB,MAAM,EAAE,cAAc,CACpB,WAAW,EAAE,YAAY,EAAE,MAAM,EACjC,OAAO,EAAE,YAAY,EAAE,MAAM,CAC9B;iBACF;aACF,CAAC;YACF,OAAO,WAAW,CAAC,wCAAwC,CACzD,OAAO,EACP,OAAO,EACP,aAAa,CACd,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { MutationKey, UseMutationResult } from "@tanstack/react-query";
|
|
2
|
-
import { GreenSecurityCore } from "../core.js";
|
|
3
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
4
|
-
import { GreenSecurityError } from "../models/errors/greensecurityerror.js";
|
|
5
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
6
|
-
import * as errors from "../models/errors/index.js";
|
|
7
|
-
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
8
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
9
|
-
import * as operations from "../models/operations/index.js";
|
|
10
|
-
import { MutationHookOptions } from "./_types.js";
|
|
11
|
-
export type OrganizationsDeleteCompanyTargetFacilityMutationVariables = {
|
|
12
|
-
request: operations.DeleteCompanyTargetFacilityRequest;
|
|
13
|
-
options?: RequestOptions;
|
|
14
|
-
};
|
|
15
|
-
export type OrganizationsDeleteCompanyTargetFacilityMutationData = boolean;
|
|
16
|
-
export type OrganizationsDeleteCompanyTargetFacilityMutationError = errors.ApiErrorResponse | GreenSecurityError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError;
|
|
17
|
-
/**
|
|
18
|
-
* Remove a company target facility
|
|
19
|
-
*
|
|
20
|
-
* @remarks
|
|
21
|
-
* Removes a CompanyTargetFacility link. Blocked when any of the company's
|
|
22
|
-
* individuals still target the same facility (to avoid orphaning their
|
|
23
|
-
* vendor-scoped target rows). Only the link row is removed — the Facility
|
|
24
|
-
* entity itself is never touched.
|
|
25
|
-
*
|
|
26
|
-
* Access control: the URL's `company_id` must be in the caller's update
|
|
27
|
-
* scope for Company (a company manager's or vendor's own company, or a
|
|
28
|
-
* company whose app is activated for the API user). Callers outside that
|
|
29
|
-
* scope receive `404 Company not found`.
|
|
30
|
-
*/
|
|
31
|
-
export declare function useOrganizationsDeleteCompanyTargetFacilityMutation(options?: MutationHookOptions<OrganizationsDeleteCompanyTargetFacilityMutationData, OrganizationsDeleteCompanyTargetFacilityMutationError, OrganizationsDeleteCompanyTargetFacilityMutationVariables>): UseMutationResult<OrganizationsDeleteCompanyTargetFacilityMutationData, OrganizationsDeleteCompanyTargetFacilityMutationError, OrganizationsDeleteCompanyTargetFacilityMutationVariables>;
|
|
32
|
-
export declare function mutationKeyOrganizationsDeleteCompanyTargetFacility(): MutationKey;
|
|
33
|
-
export declare function buildOrganizationsDeleteCompanyTargetFacilityMutation(client$: GreenSecurityCore, hookOptions?: RequestOptions): {
|
|
34
|
-
mutationKey: MutationKey;
|
|
35
|
-
mutationFn: (variables: OrganizationsDeleteCompanyTargetFacilityMutationVariables) => Promise<OrganizationsDeleteCompanyTargetFacilityMutationData>;
|
|
36
|
-
};
|
|
37
|
-
//# sourceMappingURL=organizationsDeleteCompanyTargetFacility.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"organizationsDeleteCompanyTargetFacility.d.ts","sourceRoot":"","sources":["../../../src/react-query/organizationsDeleteCompanyTargetFacility.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,WAAW,EAEX,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAG/C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,MAAM,yDAAyD,GAAG;IACtE,OAAO,EAAE,UAAU,CAAC,kCAAkC,CAAC;IACvD,OAAO,C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