@greensecurity/javascript-sdk 0.44.0-beta.1 → 0.44.0-beta.11
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 +24 -0
- package/dist/commonjs/__tests__/companies.test.js +63 -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__/zones.test.js +12 -14
- 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/companiesListCompanyCredits.d.ts +23 -0
- package/dist/commonjs/funcs/companiesListCompanyCredits.d.ts.map +1 -0
- package/dist/commonjs/funcs/companiesListCompanyCredits.js +167 -0
- package/dist/commonjs/funcs/companiesListCompanyCredits.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 +42 -0
- package/dist/commonjs/funcs/organizationsListCompanyTargetFacilities.d.ts.map +1 -0
- package/dist/commonjs/funcs/organizationsListCompanyTargetFacilities.js +194 -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/usersGetCurrentUser.d.ts +1 -0
- package/dist/commonjs/funcs/usersGetCurrentUser.d.ts.map +1 -1
- package/dist/commonjs/funcs/usersGetCurrentUser.js +1 -0
- package/dist/commonjs/funcs/usersGetCurrentUser.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/lib/config.js.map +1 -1
- 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 +7 -0
- package/dist/commonjs/models/components/expand.d.ts.map +1 -1
- package/dist/commonjs/models/components/expand.js +7 -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/paymentprofile.d.ts +8 -8
- package/dist/commonjs/models/components/paymentprofile.d.ts.map +1 -1
- package/dist/commonjs/models/components/paymentprofile.js +12 -13
- package/dist/commonjs/models/components/paymentprofile.js.map +1 -1
- package/dist/commonjs/models/components/userdetails.d.ts +36 -0
- package/dist/commonjs/models/components/userdetails.d.ts.map +1 -1
- package/dist/commonjs/models/components/userdetails.js +50 -1
- package/dist/commonjs/models/components/userdetails.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/components/zone.d.ts +5 -5
- package/dist/commonjs/models/components/zone.d.ts.map +1 -1
- package/dist/commonjs/models/components/zone.js +10 -8
- package/dist/commonjs/models/components/zone.js.map +1 -1
- 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 +8 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +8 -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 +127 -0
- package/dist/commonjs/models/operations/listcompanycredits.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listcompanycredits.js +128 -0
- package/dist/commonjs/models/operations/listcompanycredits.js.map +1 -0
- package/dist/commonjs/models/operations/listcompanytargetfacilities.d.ts +173 -0
- package/dist/commonjs/models/operations/listcompanytargetfacilities.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listcompanytargetfacilities.js +149 -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 +38 -0
- package/dist/commonjs/react-query/companiesListCompanyCredits.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/companiesListCompanyCredits.core.js +95 -0
- package/dist/commonjs/react-query/companiesListCompanyCredits.core.js.map +1 -0
- package/dist/commonjs/react-query/companiesListCompanyCredits.d.ts +62 -0
- package/dist/commonjs/react-query/companiesListCompanyCredits.d.ts.map +1 -0
- package/dist/commonjs/react-query/companiesListCompanyCredits.js +104 -0
- package/dist/commonjs/react-query/companiesListCompanyCredits.js.map +1 -0
- package/dist/commonjs/react-query/index.d.ts +8 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +8 -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 +54 -0
- package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.js +111 -0
- package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.js.map +1 -0
- package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.d.ts +154 -0
- package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.js +180 -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/usersGetCurrentUser.d.ts +2 -0
- package/dist/commonjs/react-query/usersGetCurrentUser.d.ts.map +1 -1
- package/dist/commonjs/react-query/usersGetCurrentUser.js +2 -0
- package/dist/commonjs/react-query/usersGetCurrentUser.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 +18 -0
- package/dist/commonjs/sdk/companies.d.ts.map +1 -1
- package/dist/commonjs/sdk/companies.js +20 -0
- package/dist/commonjs/sdk/companies.js.map +1 -1
- package/dist/commonjs/sdk/organizations.d.ts +64 -0
- package/dist/commonjs/sdk/organizations.d.ts.map +1 -1
- package/dist/commonjs/sdk/organizations.js +71 -0
- package/dist/commonjs/sdk/organizations.js.map +1 -1
- package/dist/commonjs/sdk/users.d.ts +1 -0
- package/dist/commonjs/sdk/users.d.ts.map +1 -1
- package/dist/commonjs/sdk/users.js +1 -0
- package/dist/commonjs/sdk/users.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 +63 -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__/zones.test.js +12 -14
- 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/companiesListCompanyCredits.d.ts +23 -0
- package/dist/esm/funcs/companiesListCompanyCredits.d.ts.map +1 -0
- package/dist/esm/funcs/companiesListCompanyCredits.js +131 -0
- package/dist/esm/funcs/companiesListCompanyCredits.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 +42 -0
- package/dist/esm/funcs/organizationsListCompanyTargetFacilities.d.ts.map +1 -0
- package/dist/esm/funcs/organizationsListCompanyTargetFacilities.js +158 -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/usersGetCurrentUser.d.ts +1 -0
- package/dist/esm/funcs/usersGetCurrentUser.d.ts.map +1 -1
- package/dist/esm/funcs/usersGetCurrentUser.js +1 -0
- package/dist/esm/funcs/usersGetCurrentUser.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/lib/config.js.map +1 -1
- 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 +7 -0
- package/dist/esm/models/components/expand.d.ts.map +1 -1
- package/dist/esm/models/components/expand.js +7 -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/paymentprofile.d.ts +8 -8
- package/dist/esm/models/components/paymentprofile.d.ts.map +1 -1
- package/dist/esm/models/components/paymentprofile.js +9 -10
- package/dist/esm/models/components/paymentprofile.js.map +1 -1
- package/dist/esm/models/components/userdetails.d.ts +36 -0
- package/dist/esm/models/components/userdetails.d.ts.map +1 -1
- package/dist/esm/models/components/userdetails.js +45 -0
- package/dist/esm/models/components/userdetails.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/components/zone.d.ts +5 -5
- package/dist/esm/models/components/zone.d.ts.map +1 -1
- package/dist/esm/models/components/zone.js +8 -6
- package/dist/esm/models/components/zone.js.map +1 -1
- 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 +8 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +8 -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 +127 -0
- package/dist/esm/models/operations/listcompanycredits.d.ts.map +1 -0
- package/dist/esm/models/operations/listcompanycredits.js +88 -0
- package/dist/esm/models/operations/listcompanycredits.js.map +1 -0
- package/dist/esm/models/operations/listcompanytargetfacilities.d.ts +173 -0
- package/dist/esm/models/operations/listcompanytargetfacilities.d.ts.map +1 -0
- package/dist/esm/models/operations/listcompanytargetfacilities.js +110 -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 +38 -0
- package/dist/esm/react-query/companiesListCompanyCredits.core.d.ts.map +1 -0
- package/dist/esm/react-query/companiesListCompanyCredits.core.js +87 -0
- package/dist/esm/react-query/companiesListCompanyCredits.core.js.map +1 -0
- package/dist/esm/react-query/companiesListCompanyCredits.d.ts +62 -0
- package/dist/esm/react-query/companiesListCompanyCredits.d.ts.map +1 -0
- package/dist/esm/react-query/companiesListCompanyCredits.js +89 -0
- package/dist/esm/react-query/companiesListCompanyCredits.js.map +1 -0
- package/dist/esm/react-query/index.d.ts +8 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +8 -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 +54 -0
- package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.js +103 -0
- package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.js.map +1 -0
- package/dist/esm/react-query/organizationsListCompanyTargetFacilities.d.ts +154 -0
- package/dist/esm/react-query/organizationsListCompanyTargetFacilities.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsListCompanyTargetFacilities.js +165 -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/usersGetCurrentUser.d.ts +2 -0
- package/dist/esm/react-query/usersGetCurrentUser.d.ts.map +1 -1
- package/dist/esm/react-query/usersGetCurrentUser.js +2 -0
- package/dist/esm/react-query/usersGetCurrentUser.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 +18 -0
- package/dist/esm/sdk/companies.d.ts.map +1 -1
- package/dist/esm/sdk/companies.js +20 -0
- package/dist/esm/sdk/companies.js.map +1 -1
- package/dist/esm/sdk/organizations.d.ts +64 -0
- package/dist/esm/sdk/organizations.d.ts.map +1 -1
- package/dist/esm/sdk/organizations.js +71 -0
- package/dist/esm/sdk/organizations.js.map +1 -1
- package/dist/esm/sdk/users.d.ts +1 -0
- package/dist/esm/sdk/users.d.ts.map +1 -1
- package/dist/esm/sdk/users.js +1 -0
- package/dist/esm/sdk/users.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 +69 -0
- package/src/__tests__/organizations.test.ts +84 -0
- package/src/__tests__/vendors.test.ts +60 -0
- package/src/__tests__/zones.test.ts +12 -14
- package/src/funcs/companiesListCompanyCredentials.ts +265 -0
- package/src/funcs/companiesListCompanyCredits.ts +261 -0
- package/src/funcs/organizationsCreateCompanyTargetFacility.ts +204 -0
- package/src/funcs/organizationsDeleteCompanyTargetFacility.ts +193 -0
- package/src/funcs/organizationsListCompanyTargetFacilities.ts +291 -0
- package/src/funcs/organizationsListOrSearchFacilities.ts +1 -0
- package/src/funcs/usersGetCurrentUser.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 +7 -0
- package/src/models/components/index.ts +4 -0
- package/src/models/components/paymentprofile.ts +22 -19
- package/src/models/components/userdetails.ts +116 -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/components/zone.ts +20 -14
- 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 +8 -0
- package/src/models/operations/invoicesexport.ts +15 -13
- package/src/models/operations/listcompanycredentials.ts +195 -0
- package/src/models/operations/listcompanycredits.ts +235 -0
- package/src/models/operations/listcompanytargetfacilities.ts +291 -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 +197 -0
- package/src/react-query/companiesListCompanyCredits.ts +268 -0
- package/src/react-query/index.ts +8 -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 +239 -0
- package/src/react-query/organizationsListCompanyTargetFacilities.ts +365 -0
- package/src/react-query/organizationsListOrSearchFacilities.core.ts +4 -0
- package/src/react-query/organizationsListOrSearchFacilities.ts +2 -0
- package/src/react-query/usersGetCurrentUser.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 +40 -0
- package/src/sdk/organizations.ts +102 -0
- package/src/sdk/users.ts +1 -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
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
InvalidateQueryFilters,
|
|
7
|
+
QueryClient,
|
|
8
|
+
useQuery,
|
|
9
|
+
UseQueryResult,
|
|
10
|
+
useSuspenseQuery,
|
|
11
|
+
UseSuspenseQueryResult,
|
|
12
|
+
} from "@tanstack/react-query";
|
|
13
|
+
import { GreenSecurityError } from "../models/errors/greensecurityerror.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
22
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
+
import * as operations from "../models/operations/index.js";
|
|
25
|
+
import { useGreenSecurityContext } from "./_context.js";
|
|
26
|
+
import {
|
|
27
|
+
QueryHookOptions,
|
|
28
|
+
SuspenseQueryHookOptions,
|
|
29
|
+
TupleToPrefixes,
|
|
30
|
+
} from "./_types.js";
|
|
31
|
+
import {
|
|
32
|
+
buildVendorsVendorsExportQuery,
|
|
33
|
+
prefetchVendorsVendorsExport,
|
|
34
|
+
queryKeyVendorsVendorsExport,
|
|
35
|
+
VendorsVendorsExportQueryData,
|
|
36
|
+
} from "./vendorsVendorsExport.core.js";
|
|
37
|
+
export {
|
|
38
|
+
buildVendorsVendorsExportQuery,
|
|
39
|
+
prefetchVendorsVendorsExport,
|
|
40
|
+
queryKeyVendorsVendorsExport,
|
|
41
|
+
type VendorsVendorsExportQueryData,
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export type VendorsVendorsExportQueryError =
|
|
45
|
+
| errors.ApiErrorResponse
|
|
46
|
+
| GreenSecurityError
|
|
47
|
+
| ResponseValidationError
|
|
48
|
+
| ConnectionError
|
|
49
|
+
| RequestAbortedError
|
|
50
|
+
| RequestTimeoutError
|
|
51
|
+
| InvalidRequestError
|
|
52
|
+
| UnexpectedClientError
|
|
53
|
+
| SDKValidationError;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Export vendors to CSV (async)
|
|
57
|
+
*
|
|
58
|
+
* @remarks
|
|
59
|
+
* Enqueues an asynchronous job to generate a CSV export of vendors based on the
|
|
60
|
+
* provided filters (the same filters supported by the vendors list endpoint).
|
|
61
|
+
* Returns a `status_url` to poll until the export is ready, plus a
|
|
62
|
+
* `download_url` and `status_id`.
|
|
63
|
+
*/
|
|
64
|
+
export function useVendorsVendorsExport(
|
|
65
|
+
request: operations.VendorsExportRequest,
|
|
66
|
+
options?: QueryHookOptions<
|
|
67
|
+
VendorsVendorsExportQueryData,
|
|
68
|
+
VendorsVendorsExportQueryError
|
|
69
|
+
>,
|
|
70
|
+
): UseQueryResult<
|
|
71
|
+
VendorsVendorsExportQueryData,
|
|
72
|
+
VendorsVendorsExportQueryError
|
|
73
|
+
> {
|
|
74
|
+
const client = useGreenSecurityContext();
|
|
75
|
+
return useQuery({
|
|
76
|
+
...buildVendorsVendorsExportQuery(
|
|
77
|
+
client,
|
|
78
|
+
request,
|
|
79
|
+
options,
|
|
80
|
+
),
|
|
81
|
+
...options,
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Export vendors to CSV (async)
|
|
87
|
+
*
|
|
88
|
+
* @remarks
|
|
89
|
+
* Enqueues an asynchronous job to generate a CSV export of vendors based on the
|
|
90
|
+
* provided filters (the same filters supported by the vendors list endpoint).
|
|
91
|
+
* Returns a `status_url` to poll until the export is ready, plus a
|
|
92
|
+
* `download_url` and `status_id`.
|
|
93
|
+
*/
|
|
94
|
+
export function useVendorsVendorsExportSuspense(
|
|
95
|
+
request: operations.VendorsExportRequest,
|
|
96
|
+
options?: SuspenseQueryHookOptions<
|
|
97
|
+
VendorsVendorsExportQueryData,
|
|
98
|
+
VendorsVendorsExportQueryError
|
|
99
|
+
>,
|
|
100
|
+
): UseSuspenseQueryResult<
|
|
101
|
+
VendorsVendorsExportQueryData,
|
|
102
|
+
VendorsVendorsExportQueryError
|
|
103
|
+
> {
|
|
104
|
+
const client = useGreenSecurityContext();
|
|
105
|
+
return useSuspenseQuery({
|
|
106
|
+
...buildVendorsVendorsExportQuery(
|
|
107
|
+
client,
|
|
108
|
+
request,
|
|
109
|
+
options,
|
|
110
|
+
),
|
|
111
|
+
...options,
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function setVendorsVendorsExportData(
|
|
116
|
+
client: QueryClient,
|
|
117
|
+
queryKeyBase: [
|
|
118
|
+
parameters: {
|
|
119
|
+
companyNameLike?: string | undefined;
|
|
120
|
+
firstNameLike?: string | undefined;
|
|
121
|
+
lastNameLike?: string | undefined;
|
|
122
|
+
fullNameLike?: string | undefined;
|
|
123
|
+
emailLike?: string | undefined;
|
|
124
|
+
phoneLike?: string | undefined;
|
|
125
|
+
addressLike?: string | undefined;
|
|
126
|
+
address2Like?: string | undefined;
|
|
127
|
+
cityLike?: string | undefined;
|
|
128
|
+
stateLike?: string | undefined;
|
|
129
|
+
zipLike?: string | undefined;
|
|
130
|
+
status?: string | undefined;
|
|
131
|
+
companyId?: number | undefined;
|
|
132
|
+
credentialingSubscriptionIdNull?: string | undefined;
|
|
133
|
+
scrubsSubscriptionIdNull?: string | undefined;
|
|
134
|
+
credentialingSubscriptionStatus?: string | undefined;
|
|
135
|
+
scrubsSubscriptionStatus?: string | undefined;
|
|
136
|
+
vendorTypeLike?: string | undefined;
|
|
137
|
+
vendorFieldValueLike?: string | undefined;
|
|
138
|
+
dateScannedGte?: Date | undefined;
|
|
139
|
+
dateScannedLte?: Date | undefined;
|
|
140
|
+
dateEndsGte?: Date | undefined;
|
|
141
|
+
dateEndsLte?: Date | undefined;
|
|
142
|
+
sort?: string | undefined;
|
|
143
|
+
desc?: operations.Desc | undefined;
|
|
144
|
+
itemsPerPage?: number | undefined;
|
|
145
|
+
expand?: string | undefined;
|
|
146
|
+
},
|
|
147
|
+
],
|
|
148
|
+
data: VendorsVendorsExportQueryData,
|
|
149
|
+
): VendorsVendorsExportQueryData | undefined {
|
|
150
|
+
const key = queryKeyVendorsVendorsExport(...queryKeyBase);
|
|
151
|
+
|
|
152
|
+
return client.setQueryData<VendorsVendorsExportQueryData>(key, data);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export function invalidateVendorsVendorsExport(
|
|
156
|
+
client: QueryClient,
|
|
157
|
+
queryKeyBase: TupleToPrefixes<
|
|
158
|
+
[parameters: {
|
|
159
|
+
companyNameLike?: string | undefined;
|
|
160
|
+
firstNameLike?: string | undefined;
|
|
161
|
+
lastNameLike?: string | undefined;
|
|
162
|
+
fullNameLike?: string | undefined;
|
|
163
|
+
emailLike?: string | undefined;
|
|
164
|
+
phoneLike?: string | undefined;
|
|
165
|
+
addressLike?: string | undefined;
|
|
166
|
+
address2Like?: string | undefined;
|
|
167
|
+
cityLike?: string | undefined;
|
|
168
|
+
stateLike?: string | undefined;
|
|
169
|
+
zipLike?: string | undefined;
|
|
170
|
+
status?: string | undefined;
|
|
171
|
+
companyId?: number | undefined;
|
|
172
|
+
credentialingSubscriptionIdNull?: string | undefined;
|
|
173
|
+
scrubsSubscriptionIdNull?: string | undefined;
|
|
174
|
+
credentialingSubscriptionStatus?: string | undefined;
|
|
175
|
+
scrubsSubscriptionStatus?: string | undefined;
|
|
176
|
+
vendorTypeLike?: string | undefined;
|
|
177
|
+
vendorFieldValueLike?: string | undefined;
|
|
178
|
+
dateScannedGte?: Date | undefined;
|
|
179
|
+
dateScannedLte?: Date | undefined;
|
|
180
|
+
dateEndsGte?: Date | undefined;
|
|
181
|
+
dateEndsLte?: Date | undefined;
|
|
182
|
+
sort?: string | undefined;
|
|
183
|
+
desc?: operations.Desc | undefined;
|
|
184
|
+
itemsPerPage?: number | undefined;
|
|
185
|
+
expand?: string | undefined;
|
|
186
|
+
}]
|
|
187
|
+
>,
|
|
188
|
+
filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
|
|
189
|
+
): Promise<void> {
|
|
190
|
+
return client.invalidateQueries({
|
|
191
|
+
...filters,
|
|
192
|
+
queryKey: [
|
|
193
|
+
"@greensecurity/javascript-sdk",
|
|
194
|
+
"vendors",
|
|
195
|
+
"vendorsExport",
|
|
196
|
+
...queryKeyBase,
|
|
197
|
+
],
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export function invalidateAllVendorsVendorsExport(
|
|
202
|
+
client: QueryClient,
|
|
203
|
+
filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
|
|
204
|
+
): Promise<void> {
|
|
205
|
+
return client.invalidateQueries({
|
|
206
|
+
...filters,
|
|
207
|
+
queryKey: ["@greensecurity/javascript-sdk", "vendors", "vendorsExport"],
|
|
208
|
+
});
|
|
209
|
+
}
|
package/src/sdk/companies.ts
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
import { companiesAddCompanyManager } from "../funcs/companiesAddCompanyManager.js";
|
|
6
6
|
import { companiesGetCompany } from "../funcs/companiesGetCompany.js";
|
|
7
|
+
import { companiesListCompanyCredentials } from "../funcs/companiesListCompanyCredentials.js";
|
|
8
|
+
import { companiesListCompanyCredits } from "../funcs/companiesListCompanyCredits.js";
|
|
7
9
|
import { companiesListCompanyManagers } from "../funcs/companiesListCompanyManagers.js";
|
|
8
10
|
import { companiesListOrSearchCompanies } from "../funcs/companiesListOrSearchCompanies.js";
|
|
9
11
|
import { companiesLookupCompanies } from "../funcs/companiesLookupCompanies.js";
|
|
@@ -112,4 +114,42 @@ export class Companies extends ClientSDK {
|
|
|
112
114
|
options,
|
|
113
115
|
));
|
|
114
116
|
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* List Company Credentials
|
|
120
|
+
*
|
|
121
|
+
* @remarks
|
|
122
|
+
* Lists credentials required for the specified company, based on CompanyRequiredCredentials.
|
|
123
|
+
*/
|
|
124
|
+
async listCompanyCredentials(
|
|
125
|
+
request: operations.ListCompanyCredentialsRequest,
|
|
126
|
+
options?: RequestOptions,
|
|
127
|
+
): Promise<
|
|
128
|
+
PageIterator<operations.ListCompanyCredentialsResponse, { page: number }>
|
|
129
|
+
> {
|
|
130
|
+
return unwrapResultIterator(companiesListCompanyCredentials(
|
|
131
|
+
this,
|
|
132
|
+
request,
|
|
133
|
+
options,
|
|
134
|
+
));
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* List credits related to a company
|
|
139
|
+
*
|
|
140
|
+
* @remarks
|
|
141
|
+
* Returns a paginated list of credits associated with the specified company, including incoming and outgoing transactions.
|
|
142
|
+
*/
|
|
143
|
+
async listCompanyCredits(
|
|
144
|
+
request: operations.ListCompanyCreditsRequest,
|
|
145
|
+
options?: RequestOptions,
|
|
146
|
+
): Promise<
|
|
147
|
+
PageIterator<operations.ListCompanyCreditsResponse, { page: number }>
|
|
148
|
+
> {
|
|
149
|
+
return unwrapResultIterator(companiesListCompanyCredits(
|
|
150
|
+
this,
|
|
151
|
+
request,
|
|
152
|
+
options,
|
|
153
|
+
));
|
|
154
|
+
}
|
|
115
155
|
}
|
package/src/sdk/organizations.ts
CHANGED
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
import { organizationsCreateCompanyTargetFacility } from "../funcs/organizationsCreateCompanyTargetFacility.js";
|
|
6
|
+
import { organizationsDeleteCompanyTargetFacility } from "../funcs/organizationsDeleteCompanyTargetFacility.js";
|
|
5
7
|
import { organizationsGetFacility } from "../funcs/organizationsGetFacility.js";
|
|
8
|
+
import { organizationsListCompanyTargetFacilities } from "../funcs/organizationsListCompanyTargetFacilities.js";
|
|
6
9
|
import { organizationsListOrSearchDepartmentContacts } from "../funcs/organizationsListOrSearchDepartmentContacts.js";
|
|
7
10
|
import { organizationsListOrSearchDepartments } from "../funcs/organizationsListOrSearchDepartments.js";
|
|
8
11
|
import { organizationsListOrSearchFacilities } from "../funcs/organizationsListOrSearchFacilities.js";
|
|
@@ -81,6 +84,105 @@ export class Organizations extends ClientSDK {
|
|
|
81
84
|
));
|
|
82
85
|
}
|
|
83
86
|
|
|
87
|
+
/**
|
|
88
|
+
* List company target facilities
|
|
89
|
+
*
|
|
90
|
+
* @remarks
|
|
91
|
+
* Lists the CompanyTargetFacility links for a company — the facilities the
|
|
92
|
+
* company is targeting. Each row carries the linked facility (with location
|
|
93
|
+
* and parent system), the link status, and per-facility counts of the
|
|
94
|
+
* company's individuals targeting it.
|
|
95
|
+
*
|
|
96
|
+
* When `include_potential_targets=true`, returns ALL non-deleted facilities
|
|
97
|
+
* via a LEFT JOIN. Targeted rows carry their CTF `id` and `status`; non-targeted
|
|
98
|
+
* rows have `id: null` and `status: "Not Targeted"`.
|
|
99
|
+
*
|
|
100
|
+
* Access control: the URL's `company_id` must be in the caller's read scope
|
|
101
|
+
* for Company (a company manager's or vendor's own company, or a company
|
|
102
|
+
* whose app is activated for the API user). Callers outside that scope
|
|
103
|
+
* receive `404 Company not found`.
|
|
104
|
+
*
|
|
105
|
+
* Filter with `has_individual` / `has_active_individual` to drive the
|
|
106
|
+
* facility roster views.
|
|
107
|
+
*
|
|
108
|
+
* Available `expand` scopes are:
|
|
109
|
+
*
|
|
110
|
+
* - company_target_facility.facility
|
|
111
|
+
*/
|
|
112
|
+
async listCompanyTargetFacilities(
|
|
113
|
+
request: operations.ListCompanyTargetFacilitiesRequest,
|
|
114
|
+
options?: RequestOptions,
|
|
115
|
+
): Promise<
|
|
116
|
+
PageIterator<
|
|
117
|
+
operations.ListCompanyTargetFacilitiesResponse,
|
|
118
|
+
{ page: number }
|
|
119
|
+
>
|
|
120
|
+
> {
|
|
121
|
+
return unwrapResultIterator(organizationsListCompanyTargetFacilities(
|
|
122
|
+
this,
|
|
123
|
+
request,
|
|
124
|
+
options,
|
|
125
|
+
));
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Add a company target facility
|
|
130
|
+
*
|
|
131
|
+
* @remarks
|
|
132
|
+
* Links the URL's company to an existing facility. The link is created with
|
|
133
|
+
* status `Pending`. Only the link row is created — the Facility entity
|
|
134
|
+
* itself is never created or modified by this endpoint.
|
|
135
|
+
*
|
|
136
|
+
* Access control: the URL's `company_id` must be in the caller's update
|
|
137
|
+
* scope for Company, AND the `facility_id` must be in the caller's create
|
|
138
|
+
* scope for Facility (a facility on the company's site, or a facility
|
|
139
|
+
* reachable via the API user's site/system/facility-scoped activation).
|
|
140
|
+
* Either being out of scope returns `404 Company not found` /
|
|
141
|
+
* `404 Facility not found` respectively. Deleted facilities also return
|
|
142
|
+
* `404 Facility not found`.
|
|
143
|
+
*
|
|
144
|
+
* Available `expand` scopes are:
|
|
145
|
+
*
|
|
146
|
+
* - company_target_facility.facility
|
|
147
|
+
*/
|
|
148
|
+
async createCompanyTargetFacility(
|
|
149
|
+
request: operations.CreateCompanyTargetFacilityRequest,
|
|
150
|
+
options?: RequestOptions,
|
|
151
|
+
): Promise<
|
|
152
|
+
operations.CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk
|
|
153
|
+
> {
|
|
154
|
+
return unwrapAsync(organizationsCreateCompanyTargetFacility(
|
|
155
|
+
this,
|
|
156
|
+
request,
|
|
157
|
+
options,
|
|
158
|
+
));
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Remove a company target facility
|
|
163
|
+
*
|
|
164
|
+
* @remarks
|
|
165
|
+
* Removes a CompanyTargetFacility link. Blocked when any of the company's
|
|
166
|
+
* individuals still target the same facility (to avoid orphaning their
|
|
167
|
+
* vendor-scoped target rows). Only the link row is removed — the Facility
|
|
168
|
+
* entity itself is never touched.
|
|
169
|
+
*
|
|
170
|
+
* Access control: the URL's `company_id` must be in the caller's update
|
|
171
|
+
* scope for Company (a company manager's or vendor's own company, or a
|
|
172
|
+
* company whose app is activated for the API user). Callers outside that
|
|
173
|
+
* scope receive `404 Company not found`.
|
|
174
|
+
*/
|
|
175
|
+
async deleteCompanyTargetFacility(
|
|
176
|
+
request: operations.DeleteCompanyTargetFacilityRequest,
|
|
177
|
+
options?: RequestOptions,
|
|
178
|
+
): Promise<boolean> {
|
|
179
|
+
return unwrapAsync(organizationsDeleteCompanyTargetFacility(
|
|
180
|
+
this,
|
|
181
|
+
request,
|
|
182
|
+
options,
|
|
183
|
+
));
|
|
184
|
+
}
|
|
185
|
+
|
|
84
186
|
/**
|
|
85
187
|
* List or search department contacts
|
|
86
188
|
*
|
package/src/sdk/users.ts
CHANGED
|
@@ -32,6 +32,7 @@ export class Users extends ClientSDK {
|
|
|
32
32
|
* Supported `expand` values:
|
|
33
33
|
* - `user` — return the full user record, including all profile fields stored against the user (sensitive columns such as passwords, MFA codes, and payment-provider IDs are always omitted)
|
|
34
34
|
* - `user.email_preferences` — include the user's `email_preferences` block (notification recipients and weekly email flags)
|
|
35
|
+
* - `user.payment_profile` — include the user's `payment_profile` block (card type, last four digits, validity flags) when expanded; if no payment profile is associated with the user, the response returns `payment_profile: null`
|
|
35
36
|
* - `company.location`, `company.vendor_type_restrictions`, `company.vendor_fields` — only valid for Company Manager users; embed extra fields on the user's company
|
|
36
37
|
*
|
|
37
38
|
* Multiple values can be combined with commas, e.g.
|
package/src/sdk/vendors.ts
CHANGED
|
@@ -18,6 +18,7 @@ import { vendorsCreateVendorRegistration } from "../funcs/vendorsCreateVendorReg
|
|
|
18
18
|
import { vendorsDeclineVendorCredential } from "../funcs/vendorsDeclineVendorCredential.js";
|
|
19
19
|
import { vendorsDeleteVendorCredentialFile } from "../funcs/vendorsDeleteVendorCredentialFile.js";
|
|
20
20
|
import { vendorsDeleteVendorManagedByCompany } from "../funcs/vendorsDeleteVendorManagedByCompany.js";
|
|
21
|
+
import { vendorsDownloadVendorsExport } from "../funcs/vendorsDownloadVendorsExport.js";
|
|
21
22
|
import { vendorsExpediteTimeRemaining } from "../funcs/vendorsExpediteTimeRemaining.js";
|
|
22
23
|
import { vendorsGetNextUnansweredScreeningQuestion } from "../funcs/vendorsGetNextUnansweredScreeningQuestion.js";
|
|
23
24
|
import { vendorsGetSubscription } from "../funcs/vendorsGetSubscription.js";
|
|
@@ -27,6 +28,7 @@ import { vendorsGetVendorInvoiceDetails } from "../funcs/vendorsGetVendorInvoice
|
|
|
27
28
|
import { vendorsGetVendorInvoiceReceipt } from "../funcs/vendorsGetVendorInvoiceReceipt.js";
|
|
28
29
|
import { vendorsGetVendorLegalName } from "../funcs/vendorsGetVendorLegalName.js";
|
|
29
30
|
import { vendorsGetVendorsDetails } from "../funcs/vendorsGetVendorsDetails.js";
|
|
31
|
+
import { vendorsGetVendorsExportStatus } from "../funcs/vendorsGetVendorsExportStatus.js";
|
|
30
32
|
import { vendorsGetVendorUploadHistory } from "../funcs/vendorsGetVendorUploadHistory.js";
|
|
31
33
|
import { vendorsListVendorAdditionalFacilityFields } from "../funcs/vendorsListVendorAdditionalFacilityFields.js";
|
|
32
34
|
import { vendorsListVendorCredentialDataRequests } from "../funcs/vendorsListVendorCredentialDataRequests.js";
|
|
@@ -53,6 +55,7 @@ import { vendorsUpdateVendorCustomField } from "../funcs/vendorsUpdateVendorCust
|
|
|
53
55
|
import { vendorsUpdateVendorDetails } from "../funcs/vendorsUpdateVendorDetails.js";
|
|
54
56
|
import { vendorsUpdateVendorManagedByCompany } from "../funcs/vendorsUpdateVendorManagedByCompany.js";
|
|
55
57
|
import { vendorsUpdateVendorScrubDetails } from "../funcs/vendorsUpdateVendorScrubDetails.js";
|
|
58
|
+
import { vendorsVendorsExport } from "../funcs/vendorsVendorsExport.js";
|
|
56
59
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
57
60
|
import * as components from "../models/components/index.js";
|
|
58
61
|
import * as operations from "../models/operations/index.js";
|
|
@@ -1004,6 +1007,63 @@ export class Vendors extends ClientSDK {
|
|
|
1004
1007
|
));
|
|
1005
1008
|
}
|
|
1006
1009
|
|
|
1010
|
+
/**
|
|
1011
|
+
* Export vendors to CSV (async)
|
|
1012
|
+
*
|
|
1013
|
+
* @remarks
|
|
1014
|
+
* Enqueues an asynchronous job to generate a CSV export of vendors based on the
|
|
1015
|
+
* provided filters (the same filters supported by the vendors list endpoint).
|
|
1016
|
+
* Returns a `status_url` to poll until the export is ready, plus a
|
|
1017
|
+
* `download_url` and `status_id`.
|
|
1018
|
+
*/
|
|
1019
|
+
async vendorsExport(
|
|
1020
|
+
request: operations.VendorsExportRequest,
|
|
1021
|
+
options?: RequestOptions,
|
|
1022
|
+
): Promise<operations.VendorsExportResponseBody> {
|
|
1023
|
+
return unwrapAsync(vendorsVendorsExport(
|
|
1024
|
+
this,
|
|
1025
|
+
request,
|
|
1026
|
+
options,
|
|
1027
|
+
));
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
/**
|
|
1031
|
+
* Get vendor export status
|
|
1032
|
+
*
|
|
1033
|
+
* @remarks
|
|
1034
|
+
* Poll the status of an asynchronous vendor export job. When `ready` is true,
|
|
1035
|
+
* the export is complete and can be downloaded via the download endpoint.
|
|
1036
|
+
*/
|
|
1037
|
+
async getVendorsExportStatus(
|
|
1038
|
+
request: operations.GetVendorsExportStatusRequest,
|
|
1039
|
+
options?: RequestOptions,
|
|
1040
|
+
): Promise<operations.GetVendorsExportStatusResponseBody> {
|
|
1041
|
+
return unwrapAsync(vendorsGetVendorsExportStatus(
|
|
1042
|
+
this,
|
|
1043
|
+
request,
|
|
1044
|
+
options,
|
|
1045
|
+
));
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
/**
|
|
1049
|
+
* Download vendors CSV
|
|
1050
|
+
*
|
|
1051
|
+
* @remarks
|
|
1052
|
+
* Downloads the exported vendors CSV. When the export is ready the server
|
|
1053
|
+
* responds with a 302 redirect to a short-lived presigned S3 URL. If the
|
|
1054
|
+
* export job is still running, responds with 202.
|
|
1055
|
+
*/
|
|
1056
|
+
async downloadVendorsExport(
|
|
1057
|
+
request: operations.DownloadVendorsExportRequest,
|
|
1058
|
+
options?: RequestOptions,
|
|
1059
|
+
): Promise<operations.DownloadVendorsExportResponse | undefined> {
|
|
1060
|
+
return unwrapAsync(vendorsDownloadVendorsExport(
|
|
1061
|
+
this,
|
|
1062
|
+
request,
|
|
1063
|
+
options,
|
|
1064
|
+
));
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1007
1067
|
/**
|
|
1008
1068
|
* Purchase scrub credits
|
|
1009
1069
|
*
|
package/src/sdk/vendorscans.ts
CHANGED
|
@@ -50,6 +50,9 @@ export class VendorScans extends ClientSDK {
|
|
|
50
50
|
* - vendor_scan.zone
|
|
51
51
|
* - vendor_scan.department
|
|
52
52
|
* - vendor_scan.badge_data
|
|
53
|
+
* - vendor_scan.company
|
|
54
|
+
* - vendor_scan.appointment
|
|
55
|
+
* - vendor_scan.screening_responses
|
|
53
56
|
*/
|
|
54
57
|
async getVendorScan(
|
|
55
58
|
request: operations.GetVendorScanRequest,
|
package/src/types/async.ts
CHANGED
|
@@ -21,16 +21,17 @@ export type APICall =
|
|
|
21
21
|
|
|
22
22
|
export class APIPromise<T> implements Promise<T> {
|
|
23
23
|
readonly #promise: Promise<[T, APICall]>;
|
|
24
|
-
|
|
24
|
+
#unwrapped: Promise<T> | null;
|
|
25
25
|
|
|
26
26
|
readonly [Symbol.toStringTag] = "APIPromise";
|
|
27
27
|
|
|
28
28
|
constructor(p: [T, APICall] | Promise<[T, APICall]>) {
|
|
29
29
|
this.#promise = p instanceof Promise ? p : Promise.resolve(p);
|
|
30
|
-
this.#unwrapped =
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
this.#unwrapped = p instanceof Promise ? null : Promise.resolve(p[0]);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
#getUnwrapped(): Promise<T> {
|
|
34
|
+
return (this.#unwrapped ??= this.#promise.then(([value]) => value));
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
then<TResult1 = T, TResult2 = never>(
|
|
@@ -55,11 +56,11 @@ export class APIPromise<T> implements Promise<T> {
|
|
|
55
56
|
| null
|
|
56
57
|
| undefined,
|
|
57
58
|
): Promise<T | TResult> {
|
|
58
|
-
return this.#
|
|
59
|
+
return this.#getUnwrapped().catch(onrejected);
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
finally(onfinally?: (() => void) | null | undefined): Promise<T> {
|
|
62
|
-
return this.#
|
|
63
|
+
return this.#getUnwrapped().finally(onfinally);
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
$inspect(): Promise<[T, APICall]> {
|
package/src/types/primitives.ts
CHANGED
|
@@ -62,24 +62,6 @@ export function number(): z.ZodType<number, z.ZodTypeDef, unknown> {
|
|
|
62
62
|
]);
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
export function bigint(): z.ZodType<bigint, z.ZodTypeDef, unknown> {
|
|
66
|
-
return z.union([
|
|
67
|
-
z.string().transform((x, ctx) => {
|
|
68
|
-
try {
|
|
69
|
-
return BigInt(x);
|
|
70
|
-
} catch (error) {
|
|
71
|
-
ctx.addIssue({
|
|
72
|
-
code: "invalid_type",
|
|
73
|
-
expected: "bigint",
|
|
74
|
-
received: "string",
|
|
75
|
-
});
|
|
76
|
-
return z.NEVER;
|
|
77
|
-
}
|
|
78
|
-
}),
|
|
79
|
-
zodDefaultToZeroValue(0n),
|
|
80
|
-
]);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
65
|
export function date(): z.ZodType<Date, z.ZodTypeDef, unknown> {
|
|
84
66
|
return z.union([
|
|
85
67
|
z.union([z.string(), zodDefaultToZeroValue(0)]).transform((x) =>
|
|
@@ -106,12 +88,6 @@ export function literal<T extends string | number | boolean>(
|
|
|
106
88
|
return z.union([z.literal(value), zodDefaultToZeroValue(value)]);
|
|
107
89
|
}
|
|
108
90
|
|
|
109
|
-
export function literalBigInt<T extends bigint>(
|
|
110
|
-
value: T,
|
|
111
|
-
): z.ZodType<T, z.ZodTypeDef, unknown> {
|
|
112
|
-
return z.literal(String(value)).transform((x) => BigInt(x)) as any;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
91
|
export function optional<T extends z.ZodType>(t: T) {
|
|
116
92
|
return z.union([
|
|
117
93
|
// Null -> undefined
|