@greensecurity/javascript-sdk 0.44.0-beta.3 → 0.44.0-beta.6
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 +21 -0
- package/dist/commonjs/__tests__/companies.test.js +29 -0
- package/dist/commonjs/__tests__/companies.test.js.map +1 -1
- package/dist/commonjs/__tests__/organizations.test.js +75 -0
- package/dist/commonjs/__tests__/organizations.test.js.map +1 -1
- package/dist/commonjs/__tests__/vendors.test.js +51 -0
- package/dist/commonjs/__tests__/vendors.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 +2 -9
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/funcs/companiesListCompanyCredentials.d.ts +23 -0
- package/dist/commonjs/funcs/companiesListCompanyCredentials.d.ts.map +1 -0
- package/dist/commonjs/funcs/companiesListCompanyCredentials.js +170 -0
- package/dist/commonjs/funcs/companiesListCompanyCredentials.js.map +1 -0
- package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.d.ts +34 -0
- package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.d.ts.map +1 -0
- package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.js +145 -0
- package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.js.map +1 -0
- package/dist/commonjs/funcs/organizationsDeleteCompanyTargetFacility.d.ts +28 -0
- package/dist/commonjs/funcs/organizationsDeleteCompanyTargetFacility.d.ts.map +1 -0
- package/dist/commonjs/funcs/organizationsDeleteCompanyTargetFacility.js +138 -0
- package/dist/commonjs/funcs/organizationsDeleteCompanyTargetFacility.js.map +1 -0
- package/dist/commonjs/funcs/organizationsListCompanyTargetFacilities.d.ts +38 -0
- package/dist/commonjs/funcs/organizationsListCompanyTargetFacilities.d.ts.map +1 -0
- package/dist/commonjs/funcs/organizationsListCompanyTargetFacilities.js +186 -0
- package/dist/commonjs/funcs/organizationsListCompanyTargetFacilities.js.map +1 -0
- package/dist/commonjs/funcs/organizationsListOrSearchFacilities.js +1 -0
- package/dist/commonjs/funcs/organizationsListOrSearchFacilities.js.map +1 -1
- package/dist/commonjs/funcs/vendorScansGetVendorScan.d.ts +3 -0
- package/dist/commonjs/funcs/vendorScansGetVendorScan.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorScansGetVendorScan.js +3 -0
- package/dist/commonjs/funcs/vendorScansGetVendorScan.js.map +1 -1
- package/dist/commonjs/funcs/vendorsDownloadVendorsExport.d.ts +22 -0
- package/dist/commonjs/funcs/vendorsDownloadVendorsExport.d.ts.map +1 -0
- package/dist/commonjs/funcs/vendorsDownloadVendorsExport.js +128 -0
- package/dist/commonjs/funcs/vendorsDownloadVendorsExport.js.map +1 -0
- package/dist/commonjs/funcs/vendorsGetVendorsExportStatus.d.ts +21 -0
- package/dist/commonjs/funcs/vendorsGetVendorsExportStatus.d.ts.map +1 -0
- package/dist/commonjs/funcs/vendorsGetVendorsExportStatus.js +126 -0
- package/dist/commonjs/funcs/vendorsGetVendorsExportStatus.js.map +1 -0
- package/dist/commonjs/funcs/vendorsVendorsExport.d.ts +23 -0
- package/dist/commonjs/funcs/vendorsVendorsExport.d.ts.map +1 -0
- package/dist/commonjs/funcs/vendorsVendorsExport.js +152 -0
- package/dist/commonjs/funcs/vendorsVendorsExport.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/models/components/appointmentsummary.d.ts +25 -0
- package/dist/commonjs/models/components/appointmentsummary.d.ts.map +1 -0
- package/dist/commonjs/models/components/appointmentsummary.js +63 -0
- package/dist/commonjs/models/components/appointmentsummary.js.map +1 -0
- package/dist/commonjs/models/components/companycredentiallistitem.d.ts +32 -0
- package/dist/commonjs/models/components/companycredentiallistitem.d.ts.map +1 -0
- package/dist/commonjs/models/components/companycredentiallistitem.js +84 -0
- package/dist/commonjs/models/components/companycredentiallistitem.js.map +1 -0
- package/dist/commonjs/models/components/companytargetfacility.d.ts +54 -0
- package/dist/commonjs/models/components/companytargetfacility.d.ts.map +1 -0
- package/dist/commonjs/models/components/companytargetfacility.js +80 -0
- package/dist/commonjs/models/components/companytargetfacility.js.map +1 -0
- package/dist/commonjs/models/components/emailpreferences.d.ts +0 -18
- package/dist/commonjs/models/components/emailpreferences.d.ts.map +1 -1
- package/dist/commonjs/models/components/emailpreferences.js +0 -9
- package/dist/commonjs/models/components/emailpreferences.js.map +1 -1
- package/dist/commonjs/models/components/expand.d.ts +5 -0
- package/dist/commonjs/models/components/expand.d.ts.map +1 -1
- package/dist/commonjs/models/components/expand.js +5 -0
- package/dist/commonjs/models/components/expand.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +4 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +4 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/vendorcredentialsummary.d.ts +2 -0
- package/dist/commonjs/models/components/vendorcredentialsummary.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendorcredentialsummary.js +2 -0
- package/dist/commonjs/models/components/vendorcredentialsummary.js.map +1 -1
- package/dist/commonjs/models/components/vendorscan.d.ts +47 -0
- package/dist/commonjs/models/components/vendorscan.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendorscan.js +31 -1
- package/dist/commonjs/models/components/vendorscan.js.map +1 -1
- package/dist/commonjs/models/components/vendorscanscreeningresponse.d.ts +27 -0
- package/dist/commonjs/models/components/vendorscanscreeningresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/vendorscanscreeningresponse.js +63 -0
- package/dist/commonjs/models/components/vendorscanscreeningresponse.js.map +1 -0
- package/dist/commonjs/models/operations/createcompanytargetfacility.d.ts +50 -0
- package/dist/commonjs/models/operations/createcompanytargetfacility.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createcompanytargetfacility.js +84 -0
- package/dist/commonjs/models/operations/createcompanytargetfacility.js.map +1 -0
- package/dist/commonjs/models/operations/createinvoice.d.ts +6 -6
- package/dist/commonjs/models/operations/createinvoice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createinvoice.js +6 -6
- package/dist/commonjs/models/operations/createinvoice.js.map +1 -1
- package/dist/commonjs/models/operations/deletecompanytargetfacility.d.ts +20 -0
- package/dist/commonjs/models/operations/deletecompanytargetfacility.d.ts.map +1 -0
- package/dist/commonjs/models/operations/deletecompanytargetfacility.js +55 -0
- package/dist/commonjs/models/operations/deletecompanytargetfacility.js.map +1 -0
- package/dist/commonjs/models/operations/downloadvendorsexport.d.ts +42 -0
- package/dist/commonjs/models/operations/downloadvendorsexport.d.ts.map +1 -0
- package/dist/commonjs/models/operations/downloadvendorsexport.js +75 -0
- package/dist/commonjs/models/operations/downloadvendorsexport.js.map +1 -0
- package/dist/commonjs/models/operations/getinvoice.d.ts +4 -4
- package/dist/commonjs/models/operations/getinvoice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getinvoice.js +4 -4
- package/dist/commonjs/models/operations/getinvoice.js.map +1 -1
- package/dist/commonjs/models/operations/getvendorsexportstatus.d.ts +53 -0
- package/dist/commonjs/models/operations/getvendorsexportstatus.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getvendorsexportstatus.js +73 -0
- package/dist/commonjs/models/operations/getvendorsexportstatus.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +7 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +7 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/invoicesexport.d.ts +8 -8
- package/dist/commonjs/models/operations/invoicesexport.d.ts.map +1 -1
- package/dist/commonjs/models/operations/invoicesexport.js +9 -8
- package/dist/commonjs/models/operations/invoicesexport.js.map +1 -1
- package/dist/commonjs/models/operations/listcompanycredentials.d.ts +93 -0
- package/dist/commonjs/models/operations/listcompanycredentials.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listcompanycredentials.js +112 -0
- package/dist/commonjs/models/operations/listcompanycredentials.js.map +1 -0
- package/dist/commonjs/models/operations/listcompanycredits.d.ts +4 -4
- package/dist/commonjs/models/operations/listcompanycredits.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listcompanycredits.js +4 -4
- package/dist/commonjs/models/operations/listcompanycredits.js.map +1 -1
- package/dist/commonjs/models/operations/listcompanytargetfacilities.d.ts +138 -0
- package/dist/commonjs/models/operations/listcompanytargetfacilities.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listcompanytargetfacilities.js +130 -0
- package/dist/commonjs/models/operations/listcompanytargetfacilities.js.map +1 -0
- package/dist/commonjs/models/operations/listlookupsystems.d.ts +4 -4
- package/dist/commonjs/models/operations/listlookupsystems.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listlookupsystems.js +4 -5
- package/dist/commonjs/models/operations/listlookupsystems.js.map +1 -1
- package/dist/commonjs/models/operations/listorsearchfacilities.d.ts +18 -0
- package/dist/commonjs/models/operations/listorsearchfacilities.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listorsearchfacilities.js +11 -1
- package/dist/commonjs/models/operations/listorsearchfacilities.js.map +1 -1
- package/dist/commonjs/models/operations/securityzonecheckin.d.ts +18 -17
- package/dist/commonjs/models/operations/securityzonecheckin.d.ts.map +1 -1
- package/dist/commonjs/models/operations/securityzonecheckin.js +16 -15
- package/dist/commonjs/models/operations/securityzonecheckin.js.map +1 -1
- package/dist/commonjs/models/operations/vendorsexport.d.ts +184 -0
- package/dist/commonjs/models/operations/vendorsexport.d.ts.map +1 -0
- package/dist/commonjs/models/operations/vendorsexport.js +133 -0
- package/dist/commonjs/models/operations/vendorsexport.js.map +1 -0
- package/dist/commonjs/react-query/companiesListCompanyCredentials.core.d.ts +44 -0
- package/dist/commonjs/react-query/companiesListCompanyCredentials.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/companiesListCompanyCredentials.core.js +101 -0
- package/dist/commonjs/react-query/companiesListCompanyCredentials.core.js.map +1 -0
- package/dist/commonjs/react-query/companiesListCompanyCredentials.d.ts +68 -0
- package/dist/commonjs/react-query/companiesListCompanyCredentials.d.ts.map +1 -0
- package/dist/commonjs/react-query/companiesListCompanyCredentials.js +104 -0
- package/dist/commonjs/react-query/companiesListCompanyCredentials.js.map +1 -0
- package/dist/commonjs/react-query/companiesListCompanyCredits.core.d.ts +2 -2
- package/dist/commonjs/react-query/companiesListCompanyCredits.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/companiesListCompanyCredits.d.ts +2 -2
- package/dist/commonjs/react-query/companiesListCompanyCredits.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.d.ts +7 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +7 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/invoicesGetInvoice.core.d.ts +1 -1
- package/dist/commonjs/react-query/invoicesGetInvoice.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/invoicesGetInvoice.d.ts +2 -2
- package/dist/commonjs/react-query/invoicesGetInvoice.d.ts.map +1 -1
- package/dist/commonjs/react-query/invoicesInvoicesExport.core.d.ts +1 -1
- package/dist/commonjs/react-query/invoicesInvoicesExport.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/invoicesInvoicesExport.d.ts +2 -2
- package/dist/commonjs/react-query/invoicesInvoicesExport.d.ts.map +1 -1
- package/dist/commonjs/react-query/lookupsListLookupSystems.core.d.ts +1 -1
- package/dist/commonjs/react-query/lookupsListLookupSystems.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/lookupsListLookupSystems.d.ts +2 -2
- package/dist/commonjs/react-query/lookupsListLookupSystems.d.ts.map +1 -1
- package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.d.ts +43 -0
- package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.js +65 -0
- package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.js.map +1 -0
- package/dist/commonjs/react-query/organizationsDeleteCompanyTargetFacility.d.ts +37 -0
- package/dist/commonjs/react-query/organizationsDeleteCompanyTargetFacility.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsDeleteCompanyTargetFacility.js +59 -0
- package/dist/commonjs/react-query/organizationsDeleteCompanyTargetFacility.js.map +1 -0
- package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.d.ts +46 -0
- package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.js +103 -0
- package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.js.map +1 -0
- package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.d.ts +130 -0
- package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.js +164 -0
- package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.js.map +1 -0
- package/dist/commonjs/react-query/organizationsListOrSearchFacilities.core.d.ts +2 -0
- package/dist/commonjs/react-query/organizationsListOrSearchFacilities.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/organizationsListOrSearchFacilities.core.js +2 -0
- package/dist/commonjs/react-query/organizationsListOrSearchFacilities.core.js.map +1 -1
- package/dist/commonjs/react-query/organizationsListOrSearchFacilities.d.ts +2 -0
- package/dist/commonjs/react-query/organizationsListOrSearchFacilities.d.ts.map +1 -1
- package/dist/commonjs/react-query/organizationsListOrSearchFacilities.js.map +1 -1
- package/dist/commonjs/react-query/vendorScansGetVendorScan.d.ts +6 -0
- package/dist/commonjs/react-query/vendorScansGetVendorScan.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorScansGetVendorScan.js +6 -0
- package/dist/commonjs/react-query/vendorScansGetVendorScan.js.map +1 -1
- package/dist/commonjs/react-query/vendorsDownloadVendorsExport.core.d.ts +12 -0
- package/dist/commonjs/react-query/vendorsDownloadVendorsExport.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorsDownloadVendorsExport.core.js +39 -0
- package/dist/commonjs/react-query/vendorsDownloadVendorsExport.core.js.map +1 -0
- package/dist/commonjs/react-query/vendorsDownloadVendorsExport.d.ts +33 -0
- package/dist/commonjs/react-query/vendorsDownloadVendorsExport.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorsDownloadVendorsExport.js +73 -0
- package/dist/commonjs/react-query/vendorsDownloadVendorsExport.js.map +1 -0
- package/dist/commonjs/react-query/vendorsGetVendorsExportStatus.core.d.ts +12 -0
- package/dist/commonjs/react-query/vendorsGetVendorsExportStatus.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorsGetVendorsExportStatus.core.js +39 -0
- package/dist/commonjs/react-query/vendorsGetVendorsExportStatus.core.js.map +1 -0
- package/dist/commonjs/react-query/vendorsGetVendorsExportStatus.d.ts +31 -0
- package/dist/commonjs/react-query/vendorsGetVendorsExportStatus.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorsGetVendorsExportStatus.js +71 -0
- package/dist/commonjs/react-query/vendorsGetVendorsExportStatus.js.map +1 -0
- package/dist/commonjs/react-query/vendorsVendorsExport.core.d.ts +40 -0
- package/dist/commonjs/react-query/vendorsVendorsExport.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorsVendorsExport.core.js +67 -0
- package/dist/commonjs/react-query/vendorsVendorsExport.core.js.map +1 -0
- package/dist/commonjs/react-query/vendorsVendorsExport.d.ts +95 -0
- package/dist/commonjs/react-query/vendorsVendorsExport.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorsVendorsExport.js +71 -0
- package/dist/commonjs/react-query/vendorsVendorsExport.js.map +1 -0
- package/dist/commonjs/sdk/companies.d.ts +9 -0
- package/dist/commonjs/sdk/companies.d.ts.map +1 -1
- package/dist/commonjs/sdk/companies.js +10 -0
- package/dist/commonjs/sdk/companies.js.map +1 -1
- package/dist/commonjs/sdk/organizations.d.ts +60 -0
- package/dist/commonjs/sdk/organizations.d.ts.map +1 -1
- package/dist/commonjs/sdk/organizations.js +67 -0
- package/dist/commonjs/sdk/organizations.js.map +1 -1
- package/dist/commonjs/sdk/vendors.d.ts +27 -0
- package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
- package/dist/commonjs/sdk/vendors.js +36 -0
- package/dist/commonjs/sdk/vendors.js.map +1 -1
- package/dist/commonjs/sdk/vendorscans.d.ts +3 -0
- package/dist/commonjs/sdk/vendorscans.d.ts.map +1 -1
- package/dist/commonjs/sdk/vendorscans.js +3 -0
- package/dist/commonjs/sdk/vendorscans.js.map +1 -1
- package/dist/commonjs/types/async.d.ts.map +1 -1
- package/dist/commonjs/types/async.js +8 -7
- package/dist/commonjs/types/async.js.map +1 -1
- package/dist/commonjs/types/primitives.d.ts +0 -2
- package/dist/commonjs/types/primitives.d.ts.map +1 -1
- package/dist/commonjs/types/primitives.js +0 -23
- package/dist/commonjs/types/primitives.js.map +1 -1
- package/dist/esm/__tests__/companies.test.js +29 -0
- package/dist/esm/__tests__/companies.test.js.map +1 -1
- package/dist/esm/__tests__/organizations.test.js +75 -0
- package/dist/esm/__tests__/organizations.test.js.map +1 -1
- package/dist/esm/__tests__/vendors.test.js +51 -0
- package/dist/esm/__tests__/vendors.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 +2 -9
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/funcs/companiesListCompanyCredentials.d.ts +23 -0
- package/dist/esm/funcs/companiesListCompanyCredentials.d.ts.map +1 -0
- package/dist/esm/funcs/companiesListCompanyCredentials.js +134 -0
- package/dist/esm/funcs/companiesListCompanyCredentials.js.map +1 -0
- package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.d.ts +34 -0
- package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.d.ts.map +1 -0
- package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.js +109 -0
- package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.js.map +1 -0
- package/dist/esm/funcs/organizationsDeleteCompanyTargetFacility.d.ts +28 -0
- package/dist/esm/funcs/organizationsDeleteCompanyTargetFacility.d.ts.map +1 -0
- package/dist/esm/funcs/organizationsDeleteCompanyTargetFacility.js +102 -0
- package/dist/esm/funcs/organizationsDeleteCompanyTargetFacility.js.map +1 -0
- package/dist/esm/funcs/organizationsListCompanyTargetFacilities.d.ts +38 -0
- package/dist/esm/funcs/organizationsListCompanyTargetFacilities.d.ts.map +1 -0
- package/dist/esm/funcs/organizationsListCompanyTargetFacilities.js +150 -0
- package/dist/esm/funcs/organizationsListCompanyTargetFacilities.js.map +1 -0
- package/dist/esm/funcs/organizationsListOrSearchFacilities.js +1 -0
- package/dist/esm/funcs/organizationsListOrSearchFacilities.js.map +1 -1
- package/dist/esm/funcs/vendorScansGetVendorScan.d.ts +3 -0
- package/dist/esm/funcs/vendorScansGetVendorScan.d.ts.map +1 -1
- package/dist/esm/funcs/vendorScansGetVendorScan.js +3 -0
- package/dist/esm/funcs/vendorScansGetVendorScan.js.map +1 -1
- package/dist/esm/funcs/vendorsDownloadVendorsExport.d.ts +22 -0
- package/dist/esm/funcs/vendorsDownloadVendorsExport.d.ts.map +1 -0
- package/dist/esm/funcs/vendorsDownloadVendorsExport.js +92 -0
- package/dist/esm/funcs/vendorsDownloadVendorsExport.js.map +1 -0
- package/dist/esm/funcs/vendorsGetVendorsExportStatus.d.ts +21 -0
- package/dist/esm/funcs/vendorsGetVendorsExportStatus.d.ts.map +1 -0
- package/dist/esm/funcs/vendorsGetVendorsExportStatus.js +90 -0
- package/dist/esm/funcs/vendorsGetVendorsExportStatus.js.map +1 -0
- package/dist/esm/funcs/vendorsVendorsExport.d.ts +23 -0
- package/dist/esm/funcs/vendorsVendorsExport.d.ts.map +1 -0
- package/dist/esm/funcs/vendorsVendorsExport.js +116 -0
- package/dist/esm/funcs/vendorsVendorsExport.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/models/components/appointmentsummary.d.ts +25 -0
- package/dist/esm/models/components/appointmentsummary.d.ts.map +1 -0
- package/dist/esm/models/components/appointmentsummary.js +26 -0
- package/dist/esm/models/components/appointmentsummary.js.map +1 -0
- package/dist/esm/models/components/companycredentiallistitem.d.ts +32 -0
- package/dist/esm/models/components/companycredentiallistitem.d.ts.map +1 -0
- package/dist/esm/models/components/companycredentiallistitem.js +45 -0
- package/dist/esm/models/components/companycredentiallistitem.js.map +1 -0
- package/dist/esm/models/components/companytargetfacility.d.ts +54 -0
- package/dist/esm/models/components/companytargetfacility.d.ts.map +1 -0
- package/dist/esm/models/components/companytargetfacility.js +41 -0
- package/dist/esm/models/components/companytargetfacility.js.map +1 -0
- package/dist/esm/models/components/emailpreferences.d.ts +0 -18
- package/dist/esm/models/components/emailpreferences.d.ts.map +1 -1
- package/dist/esm/models/components/emailpreferences.js +0 -9
- package/dist/esm/models/components/emailpreferences.js.map +1 -1
- package/dist/esm/models/components/expand.d.ts +5 -0
- package/dist/esm/models/components/expand.d.ts.map +1 -1
- package/dist/esm/models/components/expand.js +5 -0
- package/dist/esm/models/components/expand.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +4 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +4 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/vendorcredentialsummary.d.ts +2 -0
- package/dist/esm/models/components/vendorcredentialsummary.d.ts.map +1 -1
- package/dist/esm/models/components/vendorcredentialsummary.js +2 -0
- package/dist/esm/models/components/vendorcredentialsummary.js.map +1 -1
- package/dist/esm/models/components/vendorscan.d.ts +47 -0
- package/dist/esm/models/components/vendorscan.d.ts.map +1 -1
- package/dist/esm/models/components/vendorscan.js +28 -0
- package/dist/esm/models/components/vendorscan.js.map +1 -1
- package/dist/esm/models/components/vendorscanscreeningresponse.d.ts +27 -0
- package/dist/esm/models/components/vendorscanscreeningresponse.d.ts.map +1 -0
- package/dist/esm/models/components/vendorscanscreeningresponse.js +26 -0
- package/dist/esm/models/components/vendorscanscreeningresponse.js.map +1 -0
- package/dist/esm/models/operations/createcompanytargetfacility.d.ts +50 -0
- package/dist/esm/models/operations/createcompanytargetfacility.d.ts.map +1 -0
- package/dist/esm/models/operations/createcompanytargetfacility.js +45 -0
- package/dist/esm/models/operations/createcompanytargetfacility.js.map +1 -0
- package/dist/esm/models/operations/createinvoice.d.ts +6 -6
- package/dist/esm/models/operations/createinvoice.d.ts.map +1 -1
- package/dist/esm/models/operations/createinvoice.js +4 -4
- package/dist/esm/models/operations/createinvoice.js.map +1 -1
- package/dist/esm/models/operations/deletecompanytargetfacility.d.ts +20 -0
- package/dist/esm/models/operations/deletecompanytargetfacility.d.ts.map +1 -0
- package/dist/esm/models/operations/deletecompanytargetfacility.js +18 -0
- package/dist/esm/models/operations/deletecompanytargetfacility.js.map +1 -0
- package/dist/esm/models/operations/downloadvendorsexport.d.ts +42 -0
- package/dist/esm/models/operations/downloadvendorsexport.d.ts.map +1 -0
- package/dist/esm/models/operations/downloadvendorsexport.js +36 -0
- package/dist/esm/models/operations/downloadvendorsexport.js.map +1 -0
- package/dist/esm/models/operations/getinvoice.d.ts +4 -4
- package/dist/esm/models/operations/getinvoice.d.ts.map +1 -1
- package/dist/esm/models/operations/getinvoice.js +3 -3
- package/dist/esm/models/operations/getinvoice.js.map +1 -1
- package/dist/esm/models/operations/getvendorsexportstatus.d.ts +53 -0
- package/dist/esm/models/operations/getvendorsexportstatus.d.ts.map +1 -0
- package/dist/esm/models/operations/getvendorsexportstatus.js +35 -0
- package/dist/esm/models/operations/getvendorsexportstatus.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +7 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +7 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/invoicesexport.d.ts +8 -8
- package/dist/esm/models/operations/invoicesexport.d.ts.map +1 -1
- package/dist/esm/models/operations/invoicesexport.js +7 -6
- package/dist/esm/models/operations/invoicesexport.js.map +1 -1
- package/dist/esm/models/operations/listcompanycredentials.d.ts +93 -0
- package/dist/esm/models/operations/listcompanycredentials.d.ts.map +1 -0
- package/dist/esm/models/operations/listcompanycredentials.js +73 -0
- package/dist/esm/models/operations/listcompanycredentials.js.map +1 -0
- package/dist/esm/models/operations/listcompanycredits.d.ts +4 -4
- package/dist/esm/models/operations/listcompanycredits.d.ts.map +1 -1
- package/dist/esm/models/operations/listcompanycredits.js +3 -3
- package/dist/esm/models/operations/listcompanycredits.js.map +1 -1
- package/dist/esm/models/operations/listcompanytargetfacilities.d.ts +138 -0
- package/dist/esm/models/operations/listcompanytargetfacilities.d.ts.map +1 -0
- package/dist/esm/models/operations/listcompanytargetfacilities.js +91 -0
- package/dist/esm/models/operations/listcompanytargetfacilities.js.map +1 -0
- package/dist/esm/models/operations/listlookupsystems.d.ts +4 -4
- package/dist/esm/models/operations/listlookupsystems.d.ts.map +1 -1
- package/dist/esm/models/operations/listlookupsystems.js +3 -4
- package/dist/esm/models/operations/listlookupsystems.js.map +1 -1
- package/dist/esm/models/operations/listorsearchfacilities.d.ts +18 -0
- package/dist/esm/models/operations/listorsearchfacilities.d.ts.map +1 -1
- package/dist/esm/models/operations/listorsearchfacilities.js +10 -0
- package/dist/esm/models/operations/listorsearchfacilities.js.map +1 -1
- package/dist/esm/models/operations/securityzonecheckin.d.ts +18 -17
- package/dist/esm/models/operations/securityzonecheckin.d.ts.map +1 -1
- package/dist/esm/models/operations/securityzonecheckin.js +14 -13
- package/dist/esm/models/operations/securityzonecheckin.js.map +1 -1
- package/dist/esm/models/operations/vendorsexport.d.ts +184 -0
- package/dist/esm/models/operations/vendorsexport.d.ts.map +1 -0
- package/dist/esm/models/operations/vendorsexport.js +94 -0
- package/dist/esm/models/operations/vendorsexport.js.map +1 -0
- package/dist/esm/react-query/companiesListCompanyCredentials.core.d.ts +44 -0
- package/dist/esm/react-query/companiesListCompanyCredentials.core.d.ts.map +1 -0
- package/dist/esm/react-query/companiesListCompanyCredentials.core.js +93 -0
- package/dist/esm/react-query/companiesListCompanyCredentials.core.js.map +1 -0
- package/dist/esm/react-query/companiesListCompanyCredentials.d.ts +68 -0
- package/dist/esm/react-query/companiesListCompanyCredentials.d.ts.map +1 -0
- package/dist/esm/react-query/companiesListCompanyCredentials.js +89 -0
- package/dist/esm/react-query/companiesListCompanyCredentials.js.map +1 -0
- package/dist/esm/react-query/companiesListCompanyCredits.core.d.ts +2 -2
- package/dist/esm/react-query/companiesListCompanyCredits.core.d.ts.map +1 -1
- package/dist/esm/react-query/companiesListCompanyCredits.d.ts +2 -2
- package/dist/esm/react-query/companiesListCompanyCredits.d.ts.map +1 -1
- package/dist/esm/react-query/index.d.ts +7 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +7 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/invoicesGetInvoice.core.d.ts +1 -1
- package/dist/esm/react-query/invoicesGetInvoice.core.d.ts.map +1 -1
- package/dist/esm/react-query/invoicesGetInvoice.d.ts +2 -2
- package/dist/esm/react-query/invoicesGetInvoice.d.ts.map +1 -1
- package/dist/esm/react-query/invoicesInvoicesExport.core.d.ts +1 -1
- package/dist/esm/react-query/invoicesInvoicesExport.core.d.ts.map +1 -1
- package/dist/esm/react-query/invoicesInvoicesExport.d.ts +2 -2
- package/dist/esm/react-query/invoicesInvoicesExport.d.ts.map +1 -1
- package/dist/esm/react-query/lookupsListLookupSystems.core.d.ts +1 -1
- package/dist/esm/react-query/lookupsListLookupSystems.core.d.ts.map +1 -1
- package/dist/esm/react-query/lookupsListLookupSystems.d.ts +2 -2
- package/dist/esm/react-query/lookupsListLookupSystems.d.ts.map +1 -1
- package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.d.ts +43 -0
- package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.js +60 -0
- package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.js.map +1 -0
- package/dist/esm/react-query/organizationsDeleteCompanyTargetFacility.d.ts +37 -0
- package/dist/esm/react-query/organizationsDeleteCompanyTargetFacility.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsDeleteCompanyTargetFacility.js +54 -0
- package/dist/esm/react-query/organizationsDeleteCompanyTargetFacility.js.map +1 -0
- package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.d.ts +46 -0
- package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.js +95 -0
- package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.js.map +1 -0
- package/dist/esm/react-query/organizationsListCompanyTargetFacilities.d.ts +130 -0
- package/dist/esm/react-query/organizationsListCompanyTargetFacilities.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsListCompanyTargetFacilities.js +149 -0
- package/dist/esm/react-query/organizationsListCompanyTargetFacilities.js.map +1 -0
- package/dist/esm/react-query/organizationsListOrSearchFacilities.core.d.ts +2 -0
- package/dist/esm/react-query/organizationsListOrSearchFacilities.core.d.ts.map +1 -1
- package/dist/esm/react-query/organizationsListOrSearchFacilities.core.js +2 -0
- package/dist/esm/react-query/organizationsListOrSearchFacilities.core.js.map +1 -1
- package/dist/esm/react-query/organizationsListOrSearchFacilities.d.ts +2 -0
- package/dist/esm/react-query/organizationsListOrSearchFacilities.d.ts.map +1 -1
- package/dist/esm/react-query/organizationsListOrSearchFacilities.js.map +1 -1
- package/dist/esm/react-query/vendorScansGetVendorScan.d.ts +6 -0
- package/dist/esm/react-query/vendorScansGetVendorScan.d.ts.map +1 -1
- package/dist/esm/react-query/vendorScansGetVendorScan.js +6 -0
- package/dist/esm/react-query/vendorScansGetVendorScan.js.map +1 -1
- package/dist/esm/react-query/vendorsDownloadVendorsExport.core.d.ts +12 -0
- package/dist/esm/react-query/vendorsDownloadVendorsExport.core.d.ts.map +1 -0
- package/dist/esm/react-query/vendorsDownloadVendorsExport.core.js +34 -0
- package/dist/esm/react-query/vendorsDownloadVendorsExport.core.js.map +1 -0
- package/dist/esm/react-query/vendorsDownloadVendorsExport.d.ts +33 -0
- package/dist/esm/react-query/vendorsDownloadVendorsExport.d.ts.map +1 -0
- package/dist/esm/react-query/vendorsDownloadVendorsExport.js +63 -0
- package/dist/esm/react-query/vendorsDownloadVendorsExport.js.map +1 -0
- package/dist/esm/react-query/vendorsGetVendorsExportStatus.core.d.ts +12 -0
- package/dist/esm/react-query/vendorsGetVendorsExportStatus.core.d.ts.map +1 -0
- package/dist/esm/react-query/vendorsGetVendorsExportStatus.core.js +34 -0
- package/dist/esm/react-query/vendorsGetVendorsExportStatus.core.js.map +1 -0
- package/dist/esm/react-query/vendorsGetVendorsExportStatus.d.ts +31 -0
- package/dist/esm/react-query/vendorsGetVendorsExportStatus.d.ts.map +1 -0
- package/dist/esm/react-query/vendorsGetVendorsExportStatus.js +61 -0
- package/dist/esm/react-query/vendorsGetVendorsExportStatus.js.map +1 -0
- package/dist/esm/react-query/vendorsVendorsExport.core.d.ts +40 -0
- package/dist/esm/react-query/vendorsVendorsExport.core.d.ts.map +1 -0
- package/dist/esm/react-query/vendorsVendorsExport.core.js +62 -0
- package/dist/esm/react-query/vendorsVendorsExport.core.js.map +1 -0
- package/dist/esm/react-query/vendorsVendorsExport.d.ts +95 -0
- package/dist/esm/react-query/vendorsVendorsExport.d.ts.map +1 -0
- package/dist/esm/react-query/vendorsVendorsExport.js +61 -0
- package/dist/esm/react-query/vendorsVendorsExport.js.map +1 -0
- package/dist/esm/sdk/companies.d.ts +9 -0
- package/dist/esm/sdk/companies.d.ts.map +1 -1
- package/dist/esm/sdk/companies.js +10 -0
- package/dist/esm/sdk/companies.js.map +1 -1
- package/dist/esm/sdk/organizations.d.ts +60 -0
- package/dist/esm/sdk/organizations.d.ts.map +1 -1
- package/dist/esm/sdk/organizations.js +67 -0
- package/dist/esm/sdk/organizations.js.map +1 -1
- package/dist/esm/sdk/vendors.d.ts +27 -0
- package/dist/esm/sdk/vendors.d.ts.map +1 -1
- package/dist/esm/sdk/vendors.js +36 -0
- package/dist/esm/sdk/vendors.js.map +1 -1
- package/dist/esm/sdk/vendorscans.d.ts +3 -0
- package/dist/esm/sdk/vendorscans.d.ts.map +1 -1
- package/dist/esm/sdk/vendorscans.js +3 -0
- package/dist/esm/sdk/vendorscans.js.map +1 -1
- package/dist/esm/types/async.d.ts.map +1 -1
- package/dist/esm/types/async.js +8 -7
- package/dist/esm/types/async.js.map +1 -1
- package/dist/esm/types/primitives.d.ts +0 -2
- package/dist/esm/types/primitives.d.ts.map +1 -1
- package/dist/esm/types/primitives.js +0 -21
- package/dist/esm/types/primitives.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/companies.test.ts +32 -0
- package/src/__tests__/organizations.test.ts +84 -0
- package/src/__tests__/vendors.test.ts +60 -0
- package/src/__tests__/webhooks.test.ts +1 -1
- package/src/__tests__/zones.test.ts +2 -9
- package/src/funcs/companiesListCompanyCredentials.ts +265 -0
- package/src/funcs/organizationsCreateCompanyTargetFacility.ts +204 -0
- package/src/funcs/organizationsDeleteCompanyTargetFacility.ts +193 -0
- package/src/funcs/organizationsListCompanyTargetFacilities.ts +283 -0
- package/src/funcs/organizationsListOrSearchFacilities.ts +1 -0
- package/src/funcs/vendorScansGetVendorScan.ts +3 -0
- package/src/funcs/vendorsDownloadVendorsExport.ts +190 -0
- package/src/funcs/vendorsGetVendorsExportStatus.ts +179 -0
- package/src/funcs/vendorsVendorsExport.ts +207 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/appointmentsummary.ts +59 -0
- package/src/models/components/companycredentiallistitem.ts +110 -0
- package/src/models/components/companytargetfacility.ts +124 -0
- package/src/models/components/emailpreferences.ts +0 -18
- package/src/models/components/expand.ts +5 -0
- package/src/models/components/index.ts +4 -0
- package/src/models/components/vendorcredentialsummary.ts +3 -0
- package/src/models/components/vendorscan.ts +102 -0
- package/src/models/components/vendorscanscreeningresponse.ts +61 -0
- package/src/models/operations/createcompanytargetfacility.ts +132 -0
- package/src/models/operations/createinvoice.ts +14 -10
- package/src/models/operations/deletecompanytargetfacility.ts +47 -0
- package/src/models/operations/downloadvendorsexport.ts +107 -0
- package/src/models/operations/getinvoice.ts +9 -7
- package/src/models/operations/getvendorsexportstatus.ts +108 -0
- package/src/models/operations/index.ts +7 -0
- package/src/models/operations/invoicesexport.ts +15 -13
- package/src/models/operations/listcompanycredentials.ts +195 -0
- package/src/models/operations/listcompanycredits.ts +9 -7
- package/src/models/operations/listcompanytargetfacilities.ts +242 -0
- package/src/models/operations/listlookupsystems.ts +7 -6
- package/src/models/operations/listorsearchfacilities.ts +22 -0
- package/src/models/operations/securityzonecheckin.ts +37 -40
- package/src/models/operations/vendorsexport.ts +303 -0
- package/src/react-query/companiesListCompanyCredentials.core.ts +211 -0
- package/src/react-query/companiesListCompanyCredentials.ts +277 -0
- package/src/react-query/companiesListCompanyCredits.core.ts +2 -2
- package/src/react-query/companiesListCompanyCredits.ts +2 -2
- package/src/react-query/index.ts +7 -0
- package/src/react-query/invoicesGetInvoice.core.ts +1 -1
- package/src/react-query/invoicesGetInvoice.ts +2 -2
- package/src/react-query/invoicesInvoicesExport.core.ts +1 -1
- package/src/react-query/invoicesInvoicesExport.ts +2 -2
- package/src/react-query/lookupsListLookupSystems.core.ts +1 -1
- package/src/react-query/lookupsListLookupSystems.ts +2 -2
- package/src/react-query/organizationsCreateCompanyTargetFacility.ts +129 -0
- package/src/react-query/organizationsDeleteCompanyTargetFacility.ts +122 -0
- package/src/react-query/organizationsListCompanyTargetFacilities.core.ts +223 -0
- package/src/react-query/organizationsListCompanyTargetFacilities.ts +339 -0
- package/src/react-query/organizationsListOrSearchFacilities.core.ts +4 -0
- package/src/react-query/organizationsListOrSearchFacilities.ts +2 -0
- package/src/react-query/vendorScansGetVendorScan.ts +6 -0
- package/src/react-query/vendorsDownloadVendorsExport.core.ts +77 -0
- package/src/react-query/vendorsDownloadVendorsExport.ts +151 -0
- package/src/react-query/vendorsGetVendorsExportStatus.core.ts +76 -0
- package/src/react-query/vendorsGetVendorsExportStatus.ts +149 -0
- package/src/react-query/vendorsVendorsExport.core.ts +134 -0
- package/src/react-query/vendorsVendorsExport.ts +209 -0
- package/src/sdk/companies.ts +20 -0
- package/src/sdk/organizations.ts +98 -0
- package/src/sdk/vendors.ts +60 -0
- package/src/sdk/vendorscans.ts +3 -0
- package/src/types/async.ts +8 -7
- package/src/types/primitives.ts +0 -24
|
@@ -11,30 +11,12 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
11
11
|
import * as types from "../../types/primitives.js";
|
|
12
12
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
13
13
|
|
|
14
|
-
/**
|
|
15
|
-
* Who receives vendor-related notification emails:
|
|
16
|
-
*
|
|
17
|
-
* @remarks
|
|
18
|
-
* - `none` — no recipients
|
|
19
|
-
* - `self` — the user (vendor) themselves
|
|
20
|
-
* - `company_manager` — the vendor's company manager only
|
|
21
|
-
* - `self_and_company_manager` — both
|
|
22
|
-
*/
|
|
23
14
|
export const NotificationRecipients = {
|
|
24
15
|
None: "none",
|
|
25
16
|
Self: "self",
|
|
26
17
|
CompanyManager: "company_manager",
|
|
27
18
|
SelfAndCompanyManager: "self_and_company_manager",
|
|
28
19
|
} as const;
|
|
29
|
-
/**
|
|
30
|
-
* Who receives vendor-related notification emails:
|
|
31
|
-
*
|
|
32
|
-
* @remarks
|
|
33
|
-
* - `none` — no recipients
|
|
34
|
-
* - `self` — the user (vendor) themselves
|
|
35
|
-
* - `company_manager` — the vendor's company manager only
|
|
36
|
-
* - `self_and_company_manager` — both
|
|
37
|
-
*/
|
|
38
20
|
export type NotificationRecipients = OpenEnum<typeof NotificationRecipients>;
|
|
39
21
|
|
|
40
22
|
/**
|
|
@@ -15,6 +15,7 @@ export const Expand = {
|
|
|
15
15
|
CompanyLocation: "company.location",
|
|
16
16
|
CompanyVendorFields: "company.vendor_fields",
|
|
17
17
|
CompanyVendorTypeRestrictions: "company.vendor_type_restrictions",
|
|
18
|
+
CompanyTargetFacilityFacility: "company_target_facility.facility",
|
|
18
19
|
ContactFacility: "contact.facility",
|
|
19
20
|
ContactSystem: "contact.system",
|
|
20
21
|
ContactDepartment: "contact.department",
|
|
@@ -105,6 +106,10 @@ export const Expand = {
|
|
|
105
106
|
VendorScanBadgeData: "vendor_scan.badge_data",
|
|
106
107
|
VendorScanVendor: "vendor_scan.vendor",
|
|
107
108
|
VendorScanZone: "vendor_scan.zone",
|
|
109
|
+
VendorScanDepartment: "vendor_scan.department",
|
|
110
|
+
VendorScanCompany: "vendor_scan.company",
|
|
111
|
+
VendorScanAppointment: "vendor_scan.appointment",
|
|
112
|
+
VendorScanScreeningResponses: "vendor_scan.screening_responses",
|
|
108
113
|
ZoneFacility: "zone.facility",
|
|
109
114
|
ZoneDepartment: "zone.department",
|
|
110
115
|
ZoneRules: "zone.rules",
|
|
@@ -4,10 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
export * from "./activestatus.js";
|
|
6
6
|
export * from "./alert.js";
|
|
7
|
+
export * from "./appointmentsummary.js";
|
|
7
8
|
export * from "./backgroundcheckresult.js";
|
|
8
9
|
export * from "./company.js";
|
|
10
|
+
export * from "./companycredentiallistitem.js";
|
|
9
11
|
export * from "./companylookup.js";
|
|
10
12
|
export * from "./companymanager.js";
|
|
13
|
+
export * from "./companytargetfacility.js";
|
|
11
14
|
export * from "./companyvendorfield.js";
|
|
12
15
|
export * from "./companyvendortyperestriction.js";
|
|
13
16
|
export * from "./contact.js";
|
|
@@ -87,6 +90,7 @@ export * from "./vendorrequiredcredential.js";
|
|
|
87
90
|
export * from "./vendorscan.js";
|
|
88
91
|
export * from "./vendorscanscreeninganswer.js";
|
|
89
92
|
export * from "./vendorscanscreeningquestion.js";
|
|
93
|
+
export * from "./vendorscanscreeningresponse.js";
|
|
90
94
|
export * from "./vendorscrubdetails.js";
|
|
91
95
|
export * from "./vendorscrubpurchase.js";
|
|
92
96
|
export * from "./vendortype.js";
|
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
BackgroundCheckResult$inboundSchema,
|
|
15
15
|
} from "./backgroundcheckresult.js";
|
|
16
16
|
import { Company, Company$inboundSchema } from "./company.js";
|
|
17
|
+
import { CompanyLookup, CompanyLookup$inboundSchema } from "./companylookup.js";
|
|
17
18
|
import { Credential, Credential$inboundSchema } from "./credential.js";
|
|
18
19
|
import { Invoice, Invoice$inboundSchema } from "./invoice.js";
|
|
19
20
|
import { Vendor, Vendor$inboundSchema } from "./vendor.js";
|
|
@@ -109,6 +110,7 @@ export type VendorCredentialSummary = {
|
|
|
109
110
|
totalPendingCredentials?: number | null | undefined;
|
|
110
111
|
backgroundCheckProviderId?: number | null | undefined;
|
|
111
112
|
requiresAdminReview?: boolean | null | undefined;
|
|
113
|
+
systems?: Array<CompanyLookup> | null | undefined;
|
|
112
114
|
};
|
|
113
115
|
|
|
114
116
|
/** @internal */
|
|
@@ -326,6 +328,7 @@ export const VendorCredentialSummary$inboundSchema: z.ZodType<
|
|
|
326
328
|
total_pending_credentials: z.nullable(types.number()).optional(),
|
|
327
329
|
background_check_provider_id: z.nullable(types.number()).optional(),
|
|
328
330
|
requires_admin_review: z.nullable(types.boolean()).optional(),
|
|
331
|
+
systems: z.nullable(z.array(CompanyLookup$inboundSchema)).optional(),
|
|
329
332
|
}).transform((v) => {
|
|
330
333
|
return remap$(v, {
|
|
331
334
|
"date_due": "dateDue",
|
|
@@ -9,8 +9,17 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import * as types from "../../types/primitives.js";
|
|
10
10
|
import { smartUnion } from "../../types/smartUnion.js";
|
|
11
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
|
+
import {
|
|
13
|
+
AppointmentSummary,
|
|
14
|
+
AppointmentSummary$inboundSchema,
|
|
15
|
+
} from "./appointmentsummary.js";
|
|
16
|
+
import { Company, Company$inboundSchema } from "./company.js";
|
|
12
17
|
import { Department, Department$inboundSchema } from "./department.js";
|
|
13
18
|
import { Vendor, Vendor$inboundSchema } from "./vendor.js";
|
|
19
|
+
import {
|
|
20
|
+
VendorScanScreeningResponse,
|
|
21
|
+
VendorScanScreeningResponse$inboundSchema,
|
|
22
|
+
} from "./vendorscanscreeningresponse.js";
|
|
14
23
|
import { Zone, Zone$inboundSchema } from "./zone.js";
|
|
15
24
|
|
|
16
25
|
export type VendorScanVendor = Vendor | number;
|
|
@@ -19,6 +28,16 @@ export type VendorScanZone = Zone | number;
|
|
|
19
28
|
|
|
20
29
|
export type VendorScanDepartment = Department | number;
|
|
21
30
|
|
|
31
|
+
/**
|
|
32
|
+
* The company captured at scan time. Returns the full Company object when requested via the `vendor_scan.company` expand scope, otherwise returns the company ID.
|
|
33
|
+
*/
|
|
34
|
+
export type VendorScanCompany = Company | number;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* The appointment associated with this scan. Returns a reduced Event object when requested via the `vendor_scan.appointment` expand scope, otherwise returns the event ID.
|
|
38
|
+
*/
|
|
39
|
+
export type Appointment = AppointmentSummary | number;
|
|
40
|
+
|
|
22
41
|
/**
|
|
23
42
|
* Reduced list of attributes of VendorScan record
|
|
24
43
|
*/
|
|
@@ -31,9 +50,35 @@ export type VendorScan = {
|
|
|
31
50
|
scanSuccess?: boolean | undefined;
|
|
32
51
|
scanType?: number | null | undefined;
|
|
33
52
|
notes?: string | null | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Free-text department name entered by the vendor when no department was selected. Displayed as "Other: <value>" in the legacy UI.
|
|
55
|
+
*/
|
|
56
|
+
departmentOther?: string | null | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Whether the scan result was overridden.
|
|
59
|
+
*/
|
|
60
|
+
override?: boolean | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Whether the scan is marked as ignored.
|
|
63
|
+
*/
|
|
64
|
+
ignore?: boolean | undefined;
|
|
65
|
+
visitPurpose?: string | null | undefined;
|
|
66
|
+
visitContact?: string | null | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* Estimated checkout time (ISO 8601 datetime).
|
|
69
|
+
*/
|
|
70
|
+
checkoutTime?: string | null | undefined;
|
|
34
71
|
vendor?: Vendor | number | undefined;
|
|
35
72
|
zone?: Zone | number | undefined;
|
|
36
73
|
department?: Department | number | null | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* The company captured at scan time. Returns the full Company object when requested via the `vendor_scan.company` expand scope, otherwise returns the company ID.
|
|
76
|
+
*/
|
|
77
|
+
company?: Company | number | null | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* The appointment associated with this scan. Returns a reduced Event object when requested via the `vendor_scan.appointment` expand scope, otherwise returns the event ID.
|
|
80
|
+
*/
|
|
81
|
+
appointment?: AppointmentSummary | number | null | undefined;
|
|
37
82
|
departmentEventId?: number | null | undefined;
|
|
38
83
|
facilityEventId?: number | null | undefined;
|
|
39
84
|
scanInVendorScanId?: number | null | undefined;
|
|
@@ -46,6 +91,10 @@ export type VendorScan = {
|
|
|
46
91
|
* Smart badge LED payload data. Only present when requested via the `vendor_scan.badge_data` expand scope.
|
|
47
92
|
*/
|
|
48
93
|
badgeData?: string | null | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* Screening question responses for this scan. Only present when requested via the `vendor_scan.screening_responses` expand scope.
|
|
96
|
+
*/
|
|
97
|
+
screeningResponses?: Array<VendorScanScreeningResponse> | null | undefined;
|
|
49
98
|
};
|
|
50
99
|
|
|
51
100
|
/** @internal */
|
|
@@ -99,6 +148,40 @@ export function vendorScanDepartmentFromJSON(
|
|
|
99
148
|
);
|
|
100
149
|
}
|
|
101
150
|
|
|
151
|
+
/** @internal */
|
|
152
|
+
export const VendorScanCompany$inboundSchema: z.ZodType<
|
|
153
|
+
VendorScanCompany,
|
|
154
|
+
z.ZodTypeDef,
|
|
155
|
+
unknown
|
|
156
|
+
> = smartUnion([Company$inboundSchema, types.number()]);
|
|
157
|
+
|
|
158
|
+
export function vendorScanCompanyFromJSON(
|
|
159
|
+
jsonString: string,
|
|
160
|
+
): SafeParseResult<VendorScanCompany, SDKValidationError> {
|
|
161
|
+
return safeParse(
|
|
162
|
+
jsonString,
|
|
163
|
+
(x) => VendorScanCompany$inboundSchema.parse(JSON.parse(x)),
|
|
164
|
+
`Failed to parse 'VendorScanCompany' from JSON`,
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/** @internal */
|
|
169
|
+
export const Appointment$inboundSchema: z.ZodType<
|
|
170
|
+
Appointment,
|
|
171
|
+
z.ZodTypeDef,
|
|
172
|
+
unknown
|
|
173
|
+
> = smartUnion([AppointmentSummary$inboundSchema, types.number()]);
|
|
174
|
+
|
|
175
|
+
export function appointmentFromJSON(
|
|
176
|
+
jsonString: string,
|
|
177
|
+
): SafeParseResult<Appointment, SDKValidationError> {
|
|
178
|
+
return safeParse(
|
|
179
|
+
jsonString,
|
|
180
|
+
(x) => Appointment$inboundSchema.parse(JSON.parse(x)),
|
|
181
|
+
`Failed to parse 'Appointment' from JSON`,
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
|
|
102
185
|
/** @internal */
|
|
103
186
|
export const VendorScan$inboundSchema: z.ZodType<
|
|
104
187
|
VendorScan,
|
|
@@ -113,10 +196,21 @@ export const VendorScan$inboundSchema: z.ZodType<
|
|
|
113
196
|
scan_success: types.optional(types.boolean()),
|
|
114
197
|
scan_type: z.nullable(types.number()).optional(),
|
|
115
198
|
notes: z.nullable(types.string()).optional(),
|
|
199
|
+
department_other: z.nullable(types.string()).optional(),
|
|
200
|
+
override: types.optional(types.boolean()),
|
|
201
|
+
ignore: types.optional(types.boolean()),
|
|
202
|
+
visit_purpose: z.nullable(types.string()).optional(),
|
|
203
|
+
visit_contact: z.nullable(types.string()).optional(),
|
|
204
|
+
checkout_time: z.nullable(types.string()).optional(),
|
|
116
205
|
vendor: types.optional(smartUnion([Vendor$inboundSchema, types.number()])),
|
|
117
206
|
zone: types.optional(smartUnion([Zone$inboundSchema, types.number()])),
|
|
118
207
|
department: z.nullable(smartUnion([Department$inboundSchema, types.number()]))
|
|
119
208
|
.optional(),
|
|
209
|
+
company: z.nullable(smartUnion([Company$inboundSchema, types.number()]))
|
|
210
|
+
.optional(),
|
|
211
|
+
appointment: z.nullable(
|
|
212
|
+
smartUnion([AppointmentSummary$inboundSchema, types.number()]),
|
|
213
|
+
).optional(),
|
|
120
214
|
department_event_id: z.nullable(types.number()).optional(),
|
|
121
215
|
facility_event_id: z.nullable(types.number()).optional(),
|
|
122
216
|
scan_in_vendor_scan_id: z.nullable(types.number()).optional(),
|
|
@@ -126,6 +220,9 @@ export const VendorScan$inboundSchema: z.ZodType<
|
|
|
126
220
|
requires_screening_questions: types.optional(types.boolean()),
|
|
127
221
|
recheck: types.optional(types.boolean()),
|
|
128
222
|
badge_data: z.nullable(types.string()).optional(),
|
|
223
|
+
screening_responses: z.nullable(
|
|
224
|
+
z.array(VendorScanScreeningResponse$inboundSchema),
|
|
225
|
+
).optional(),
|
|
129
226
|
}).transform((v) => {
|
|
130
227
|
return remap$(v, {
|
|
131
228
|
"qr_code": "qrCode",
|
|
@@ -133,6 +230,10 @@ export const VendorScan$inboundSchema: z.ZodType<
|
|
|
133
230
|
"scan_error": "scanError",
|
|
134
231
|
"scan_success": "scanSuccess",
|
|
135
232
|
"scan_type": "scanType",
|
|
233
|
+
"department_other": "departmentOther",
|
|
234
|
+
"visit_purpose": "visitPurpose",
|
|
235
|
+
"visit_contact": "visitContact",
|
|
236
|
+
"checkout_time": "checkoutTime",
|
|
136
237
|
"department_event_id": "departmentEventId",
|
|
137
238
|
"facility_event_id": "facilityEventId",
|
|
138
239
|
"scan_in_vendor_scan_id": "scanInVendorScanId",
|
|
@@ -141,6 +242,7 @@ export const VendorScan$inboundSchema: z.ZodType<
|
|
|
141
242
|
"finished_screening_questions": "finishedScreeningQuestions",
|
|
142
243
|
"requires_screening_questions": "requiresScreeningQuestions",
|
|
143
244
|
"badge_data": "badgeData",
|
|
245
|
+
"screening_responses": "screeningResponses",
|
|
144
246
|
});
|
|
145
247
|
});
|
|
146
248
|
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as types from "../../types/primitives.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* A screening question response associated with a vendor scan.
|
|
14
|
+
*/
|
|
15
|
+
export type VendorScanScreeningResponse = {
|
|
16
|
+
id: number;
|
|
17
|
+
screeningQuestionId?: number | null | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* The text of the screening question.
|
|
20
|
+
*/
|
|
21
|
+
question?: string | null | undefined;
|
|
22
|
+
screeningAnswerId?: number | null | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* The selected or entered answer. Returns custom_answer if provided, otherwise the preset answer text.
|
|
25
|
+
*/
|
|
26
|
+
answer?: string | null | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Free-text answer entered by the vendor, if applicable.
|
|
29
|
+
*/
|
|
30
|
+
customAnswer?: string | null | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const VendorScanScreeningResponse$inboundSchema: z.ZodType<
|
|
35
|
+
VendorScanScreeningResponse,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
unknown
|
|
38
|
+
> = z.object({
|
|
39
|
+
id: types.number(),
|
|
40
|
+
screening_question_id: z.nullable(types.number()).optional(),
|
|
41
|
+
question: z.nullable(types.string()).optional(),
|
|
42
|
+
screening_answer_id: z.nullable(types.number()).optional(),
|
|
43
|
+
answer: z.nullable(types.string()).optional(),
|
|
44
|
+
custom_answer: z.nullable(types.string()).optional(),
|
|
45
|
+
}).transform((v) => {
|
|
46
|
+
return remap$(v, {
|
|
47
|
+
"screening_question_id": "screeningQuestionId",
|
|
48
|
+
"screening_answer_id": "screeningAnswerId",
|
|
49
|
+
"custom_answer": "customAnswer",
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
export function vendorScanScreeningResponseFromJSON(
|
|
54
|
+
jsonString: string,
|
|
55
|
+
): SafeParseResult<VendorScanScreeningResponse, SDKValidationError> {
|
|
56
|
+
return safeParse(
|
|
57
|
+
jsonString,
|
|
58
|
+
(x) => VendorScanScreeningResponse$inboundSchema.parse(JSON.parse(x)),
|
|
59
|
+
`Failed to parse 'VendorScanScreeningResponse' from JSON`,
|
|
60
|
+
);
|
|
61
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
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 components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type CreateCompanyTargetFacilityRequestBody = {
|
|
13
|
+
/**
|
|
14
|
+
* The existing facility to target.
|
|
15
|
+
*/
|
|
16
|
+
facilityId: number;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export type CreateCompanyTargetFacilityRequest = {
|
|
20
|
+
/**
|
|
21
|
+
* The company that will target the facility.
|
|
22
|
+
*/
|
|
23
|
+
companyId: number;
|
|
24
|
+
/**
|
|
25
|
+
* 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.
|
|
26
|
+
*/
|
|
27
|
+
expand?: Array<components.Expand> | undefined;
|
|
28
|
+
requestBody: CreateCompanyTargetFacilityRequestBody;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* The CompanyTargetFacility link was created.
|
|
33
|
+
*/
|
|
34
|
+
export type CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk = {
|
|
35
|
+
/**
|
|
36
|
+
* 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.
|
|
37
|
+
*/
|
|
38
|
+
companyTargetFacility: components.CompanyTargetFacility;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export type CreateCompanyTargetFacilityRequestBody$Outbound = {
|
|
43
|
+
facility_id: number;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const CreateCompanyTargetFacilityRequestBody$outboundSchema: z.ZodType<
|
|
48
|
+
CreateCompanyTargetFacilityRequestBody$Outbound,
|
|
49
|
+
z.ZodTypeDef,
|
|
50
|
+
CreateCompanyTargetFacilityRequestBody
|
|
51
|
+
> = z.object({
|
|
52
|
+
facilityId: z.number().int(),
|
|
53
|
+
}).transform((v) => {
|
|
54
|
+
return remap$(v, {
|
|
55
|
+
facilityId: "facility_id",
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
export function createCompanyTargetFacilityRequestBodyToJSON(
|
|
60
|
+
createCompanyTargetFacilityRequestBody:
|
|
61
|
+
CreateCompanyTargetFacilityRequestBody,
|
|
62
|
+
): string {
|
|
63
|
+
return JSON.stringify(
|
|
64
|
+
CreateCompanyTargetFacilityRequestBody$outboundSchema.parse(
|
|
65
|
+
createCompanyTargetFacilityRequestBody,
|
|
66
|
+
),
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/** @internal */
|
|
71
|
+
export type CreateCompanyTargetFacilityRequest$Outbound = {
|
|
72
|
+
company_id: number;
|
|
73
|
+
expand?: Array<string> | undefined;
|
|
74
|
+
RequestBody: CreateCompanyTargetFacilityRequestBody$Outbound;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
/** @internal */
|
|
78
|
+
export const CreateCompanyTargetFacilityRequest$outboundSchema: z.ZodType<
|
|
79
|
+
CreateCompanyTargetFacilityRequest$Outbound,
|
|
80
|
+
z.ZodTypeDef,
|
|
81
|
+
CreateCompanyTargetFacilityRequest
|
|
82
|
+
> = z.object({
|
|
83
|
+
companyId: z.number().int(),
|
|
84
|
+
expand: z.array(components.Expand$outboundSchema).optional(),
|
|
85
|
+
requestBody: z.lazy(() =>
|
|
86
|
+
CreateCompanyTargetFacilityRequestBody$outboundSchema
|
|
87
|
+
),
|
|
88
|
+
}).transform((v) => {
|
|
89
|
+
return remap$(v, {
|
|
90
|
+
companyId: "company_id",
|
|
91
|
+
requestBody: "RequestBody",
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
export function createCompanyTargetFacilityRequestToJSON(
|
|
96
|
+
createCompanyTargetFacilityRequest: CreateCompanyTargetFacilityRequest,
|
|
97
|
+
): string {
|
|
98
|
+
return JSON.stringify(
|
|
99
|
+
CreateCompanyTargetFacilityRequest$outboundSchema.parse(
|
|
100
|
+
createCompanyTargetFacilityRequest,
|
|
101
|
+
),
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/** @internal */
|
|
106
|
+
export const CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk$inboundSchema:
|
|
107
|
+
z.ZodType<
|
|
108
|
+
CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk,
|
|
109
|
+
z.ZodTypeDef,
|
|
110
|
+
unknown
|
|
111
|
+
> = z.object({
|
|
112
|
+
company_target_facility: components.CompanyTargetFacility$inboundSchema,
|
|
113
|
+
}).transform((v) => {
|
|
114
|
+
return remap$(v, {
|
|
115
|
+
"company_target_facility": "companyTargetFacility",
|
|
116
|
+
});
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
export function createCompanyTargetFacilityCreateCompanyTargetFacilityOkFromJSON(
|
|
120
|
+
jsonString: string,
|
|
121
|
+
): SafeParseResult<
|
|
122
|
+
CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk,
|
|
123
|
+
SDKValidationError
|
|
124
|
+
> {
|
|
125
|
+
return safeParse(
|
|
126
|
+
jsonString,
|
|
127
|
+
(x) =>
|
|
128
|
+
CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk$inboundSchema
|
|
129
|
+
.parse(JSON.parse(x)),
|
|
130
|
+
`Failed to parse 'CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk' from JSON`,
|
|
131
|
+
);
|
|
132
|
+
}
|
|
@@ -111,7 +111,7 @@ export type RequestBodyLines = {
|
|
|
111
111
|
paymentHandlerData?: string | undefined;
|
|
112
112
|
};
|
|
113
113
|
|
|
114
|
-
export type
|
|
114
|
+
export type CreateInvoiceRequestBody2 = {
|
|
115
115
|
companyId: number;
|
|
116
116
|
lines?: Array<RequestBodyLines> | undefined;
|
|
117
117
|
credentialPricingIds?: Array<number> | null | undefined;
|
|
@@ -143,7 +143,7 @@ export type RequestBody1 = {
|
|
|
143
143
|
|
|
144
144
|
export type CreateInvoiceRequestBody =
|
|
145
145
|
| RequestBody1
|
|
146
|
-
|
|
|
146
|
+
| CreateInvoiceRequestBody2
|
|
147
147
|
| Three
|
|
148
148
|
| Four
|
|
149
149
|
| Five;
|
|
@@ -473,17 +473,17 @@ export function requestBodyLinesToJSON(
|
|
|
473
473
|
}
|
|
474
474
|
|
|
475
475
|
/** @internal */
|
|
476
|
-
export type
|
|
476
|
+
export type CreateInvoiceRequestBody2$Outbound = {
|
|
477
477
|
company_id: number;
|
|
478
478
|
lines?: Array<RequestBodyLines$Outbound> | undefined;
|
|
479
479
|
credential_pricing_ids?: Array<number> | null | undefined;
|
|
480
480
|
};
|
|
481
481
|
|
|
482
482
|
/** @internal */
|
|
483
|
-
export const
|
|
484
|
-
|
|
483
|
+
export const CreateInvoiceRequestBody2$outboundSchema: z.ZodType<
|
|
484
|
+
CreateInvoiceRequestBody2$Outbound,
|
|
485
485
|
z.ZodTypeDef,
|
|
486
|
-
|
|
486
|
+
CreateInvoiceRequestBody2
|
|
487
487
|
> = z.object({
|
|
488
488
|
companyId: z.number().int(),
|
|
489
489
|
lines: z.array(z.lazy(() => RequestBodyLines$outboundSchema)).optional(),
|
|
@@ -495,8 +495,12 @@ export const RequestBody2$outboundSchema: z.ZodType<
|
|
|
495
495
|
});
|
|
496
496
|
});
|
|
497
497
|
|
|
498
|
-
export function
|
|
499
|
-
|
|
498
|
+
export function createInvoiceRequestBody2ToJSON(
|
|
499
|
+
createInvoiceRequestBody2: CreateInvoiceRequestBody2,
|
|
500
|
+
): string {
|
|
501
|
+
return JSON.stringify(
|
|
502
|
+
CreateInvoiceRequestBody2$outboundSchema.parse(createInvoiceRequestBody2),
|
|
503
|
+
);
|
|
500
504
|
}
|
|
501
505
|
|
|
502
506
|
/** @internal */
|
|
@@ -580,7 +584,7 @@ export function requestBody1ToJSON(requestBody1: RequestBody1): string {
|
|
|
580
584
|
/** @internal */
|
|
581
585
|
export type CreateInvoiceRequestBody$Outbound =
|
|
582
586
|
| RequestBody1$Outbound
|
|
583
|
-
|
|
|
587
|
+
| CreateInvoiceRequestBody2$Outbound
|
|
584
588
|
| Three$Outbound
|
|
585
589
|
| Four$Outbound
|
|
586
590
|
| Five$Outbound;
|
|
@@ -592,7 +596,7 @@ export const CreateInvoiceRequestBody$outboundSchema: z.ZodType<
|
|
|
592
596
|
CreateInvoiceRequestBody
|
|
593
597
|
> = smartUnion([
|
|
594
598
|
z.lazy(() => RequestBody1$outboundSchema),
|
|
595
|
-
z.lazy(() =>
|
|
599
|
+
z.lazy(() => CreateInvoiceRequestBody2$outboundSchema),
|
|
596
600
|
z.lazy(() => Three$outboundSchema),
|
|
597
601
|
z.lazy(() => Four$outboundSchema),
|
|
598
602
|
z.lazy(() => Five$outboundSchema),
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
|
|
8
|
+
export type DeleteCompanyTargetFacilityRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* The company that owns the CompanyTargetFacility link.
|
|
11
|
+
*/
|
|
12
|
+
companyId: number;
|
|
13
|
+
/**
|
|
14
|
+
* CompanyTargetFacility id
|
|
15
|
+
*/
|
|
16
|
+
id: number;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export type DeleteCompanyTargetFacilityRequest$Outbound = {
|
|
21
|
+
company_id: number;
|
|
22
|
+
id: number;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const DeleteCompanyTargetFacilityRequest$outboundSchema: z.ZodType<
|
|
27
|
+
DeleteCompanyTargetFacilityRequest$Outbound,
|
|
28
|
+
z.ZodTypeDef,
|
|
29
|
+
DeleteCompanyTargetFacilityRequest
|
|
30
|
+
> = z.object({
|
|
31
|
+
companyId: z.number().int(),
|
|
32
|
+
id: z.number().int(),
|
|
33
|
+
}).transform((v) => {
|
|
34
|
+
return remap$(v, {
|
|
35
|
+
companyId: "company_id",
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export function deleteCompanyTargetFacilityRequestToJSON(
|
|
40
|
+
deleteCompanyTargetFacilityRequest: DeleteCompanyTargetFacilityRequest,
|
|
41
|
+
): string {
|
|
42
|
+
return JSON.stringify(
|
|
43
|
+
DeleteCompanyTargetFacilityRequest$outboundSchema.parse(
|
|
44
|
+
deleteCompanyTargetFacilityRequest,
|
|
45
|
+
),
|
|
46
|
+
);
|
|
47
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
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 DownloadVendorsExportRequest = {
|
|
13
|
+
/**
|
|
14
|
+
* Export id returned by the vendor export endpoint.
|
|
15
|
+
*/
|
|
16
|
+
id: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Export is still being generated.
|
|
21
|
+
*/
|
|
22
|
+
export type DownloadVendorsExportResponseBody = {
|
|
23
|
+
/**
|
|
24
|
+
* False while the export job is still running.
|
|
25
|
+
*/
|
|
26
|
+
ready?: boolean | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Human-readable message about the export status.
|
|
29
|
+
*/
|
|
30
|
+
message?: string | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export type DownloadVendorsExportResponse = {
|
|
34
|
+
headers: { [k: string]: Array<string> };
|
|
35
|
+
result?: DownloadVendorsExportResponseBody | undefined;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type DownloadVendorsExportRequest$Outbound = {
|
|
40
|
+
id: string;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const DownloadVendorsExportRequest$outboundSchema: z.ZodType<
|
|
45
|
+
DownloadVendorsExportRequest$Outbound,
|
|
46
|
+
z.ZodTypeDef,
|
|
47
|
+
DownloadVendorsExportRequest
|
|
48
|
+
> = z.object({
|
|
49
|
+
id: z.string(),
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
export function downloadVendorsExportRequestToJSON(
|
|
53
|
+
downloadVendorsExportRequest: DownloadVendorsExportRequest,
|
|
54
|
+
): string {
|
|
55
|
+
return JSON.stringify(
|
|
56
|
+
DownloadVendorsExportRequest$outboundSchema.parse(
|
|
57
|
+
downloadVendorsExportRequest,
|
|
58
|
+
),
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/** @internal */
|
|
63
|
+
export const DownloadVendorsExportResponseBody$inboundSchema: z.ZodType<
|
|
64
|
+
DownloadVendorsExportResponseBody,
|
|
65
|
+
z.ZodTypeDef,
|
|
66
|
+
unknown
|
|
67
|
+
> = z.object({
|
|
68
|
+
ready: types.optional(types.boolean()),
|
|
69
|
+
message: types.optional(types.string()),
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
export function downloadVendorsExportResponseBodyFromJSON(
|
|
73
|
+
jsonString: string,
|
|
74
|
+
): SafeParseResult<DownloadVendorsExportResponseBody, SDKValidationError> {
|
|
75
|
+
return safeParse(
|
|
76
|
+
jsonString,
|
|
77
|
+
(x) => DownloadVendorsExportResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
78
|
+
`Failed to parse 'DownloadVendorsExportResponseBody' from JSON`,
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/** @internal */
|
|
83
|
+
export const DownloadVendorsExportResponse$inboundSchema: z.ZodType<
|
|
84
|
+
DownloadVendorsExportResponse,
|
|
85
|
+
z.ZodTypeDef,
|
|
86
|
+
unknown
|
|
87
|
+
> = z.object({
|
|
88
|
+
Headers: z.record(z.array(z.string())).default({}),
|
|
89
|
+
Result: types.optional(
|
|
90
|
+
z.lazy(() => DownloadVendorsExportResponseBody$inboundSchema),
|
|
91
|
+
),
|
|
92
|
+
}).transform((v) => {
|
|
93
|
+
return remap$(v, {
|
|
94
|
+
"Headers": "headers",
|
|
95
|
+
"Result": "result",
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
export function downloadVendorsExportResponseFromJSON(
|
|
100
|
+
jsonString: string,
|
|
101
|
+
): SafeParseResult<DownloadVendorsExportResponse, SDKValidationError> {
|
|
102
|
+
return safeParse(
|
|
103
|
+
jsonString,
|
|
104
|
+
(x) => DownloadVendorsExportResponse$inboundSchema.parse(JSON.parse(x)),
|
|
105
|
+
`Failed to parse 'DownloadVendorsExportResponse' from JSON`,
|
|
106
|
+
);
|
|
107
|
+
}
|