@greensecurity/javascript-sdk 0.44.0-beta.1 → 0.44.0-beta.10
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 +7 -13
- 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 +7 -13
- 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 +7 -13
- 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,268 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
InfiniteData,
|
|
7
|
+
InvalidateQueryFilters,
|
|
8
|
+
QueryClient,
|
|
9
|
+
QueryKey,
|
|
10
|
+
useInfiniteQuery,
|
|
11
|
+
UseInfiniteQueryResult,
|
|
12
|
+
useQuery,
|
|
13
|
+
UseQueryResult,
|
|
14
|
+
useSuspenseInfiniteQuery,
|
|
15
|
+
UseSuspenseInfiniteQueryResult,
|
|
16
|
+
useSuspenseQuery,
|
|
17
|
+
UseSuspenseQueryResult,
|
|
18
|
+
} from "@tanstack/react-query";
|
|
19
|
+
import * as components from "../models/components/index.js";
|
|
20
|
+
import { GreenSecurityError } from "../models/errors/greensecurityerror.js";
|
|
21
|
+
import {
|
|
22
|
+
ConnectionError,
|
|
23
|
+
InvalidRequestError,
|
|
24
|
+
RequestAbortedError,
|
|
25
|
+
RequestTimeoutError,
|
|
26
|
+
UnexpectedClientError,
|
|
27
|
+
} from "../models/errors/httpclienterrors.js";
|
|
28
|
+
import * as errors from "../models/errors/index.js";
|
|
29
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
30
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
31
|
+
import * as operations from "../models/operations/index.js";
|
|
32
|
+
import { useGreenSecurityContext } from "./_context.js";
|
|
33
|
+
import {
|
|
34
|
+
InfiniteQueryHookOptions,
|
|
35
|
+
QueryHookOptions,
|
|
36
|
+
SuspenseInfiniteQueryHookOptions,
|
|
37
|
+
SuspenseQueryHookOptions,
|
|
38
|
+
TupleToPrefixes,
|
|
39
|
+
} from "./_types.js";
|
|
40
|
+
import {
|
|
41
|
+
buildCompaniesListCompanyCreditsInfiniteQuery,
|
|
42
|
+
buildCompaniesListCompanyCreditsQuery,
|
|
43
|
+
CompaniesListCompanyCreditsInfiniteQueryData,
|
|
44
|
+
CompaniesListCompanyCreditsPageParams,
|
|
45
|
+
CompaniesListCompanyCreditsQueryData,
|
|
46
|
+
prefetchCompaniesListCompanyCredits,
|
|
47
|
+
prefetchCompaniesListCompanyCreditsInfinite,
|
|
48
|
+
queryKeyCompaniesListCompanyCredits,
|
|
49
|
+
queryKeyCompaniesListCompanyCreditsInfinite,
|
|
50
|
+
} from "./companiesListCompanyCredits.core.js";
|
|
51
|
+
export {
|
|
52
|
+
buildCompaniesListCompanyCreditsInfiniteQuery,
|
|
53
|
+
buildCompaniesListCompanyCreditsQuery,
|
|
54
|
+
type CompaniesListCompanyCreditsInfiniteQueryData,
|
|
55
|
+
type CompaniesListCompanyCreditsPageParams,
|
|
56
|
+
type CompaniesListCompanyCreditsQueryData,
|
|
57
|
+
prefetchCompaniesListCompanyCredits,
|
|
58
|
+
prefetchCompaniesListCompanyCreditsInfinite,
|
|
59
|
+
queryKeyCompaniesListCompanyCredits,
|
|
60
|
+
queryKeyCompaniesListCompanyCreditsInfinite,
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export type CompaniesListCompanyCreditsQueryError =
|
|
64
|
+
| errors.ApiErrorResponse
|
|
65
|
+
| GreenSecurityError
|
|
66
|
+
| ResponseValidationError
|
|
67
|
+
| ConnectionError
|
|
68
|
+
| RequestAbortedError
|
|
69
|
+
| RequestTimeoutError
|
|
70
|
+
| InvalidRequestError
|
|
71
|
+
| UnexpectedClientError
|
|
72
|
+
| SDKValidationError;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* List credits related to a company
|
|
76
|
+
*
|
|
77
|
+
* @remarks
|
|
78
|
+
* Returns a paginated list of credits associated with the specified company, including incoming and outgoing transactions.
|
|
79
|
+
*/
|
|
80
|
+
export function useCompaniesListCompanyCredits(
|
|
81
|
+
request: operations.ListCompanyCreditsRequest,
|
|
82
|
+
options?: QueryHookOptions<
|
|
83
|
+
CompaniesListCompanyCreditsQueryData,
|
|
84
|
+
CompaniesListCompanyCreditsQueryError
|
|
85
|
+
>,
|
|
86
|
+
): UseQueryResult<
|
|
87
|
+
CompaniesListCompanyCreditsQueryData,
|
|
88
|
+
CompaniesListCompanyCreditsQueryError
|
|
89
|
+
> {
|
|
90
|
+
const client = useGreenSecurityContext();
|
|
91
|
+
return useQuery({
|
|
92
|
+
...buildCompaniesListCompanyCreditsQuery(
|
|
93
|
+
client,
|
|
94
|
+
request,
|
|
95
|
+
options,
|
|
96
|
+
),
|
|
97
|
+
...options,
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* List credits related to a company
|
|
103
|
+
*
|
|
104
|
+
* @remarks
|
|
105
|
+
* Returns a paginated list of credits associated with the specified company, including incoming and outgoing transactions.
|
|
106
|
+
*/
|
|
107
|
+
export function useCompaniesListCompanyCreditsSuspense(
|
|
108
|
+
request: operations.ListCompanyCreditsRequest,
|
|
109
|
+
options?: SuspenseQueryHookOptions<
|
|
110
|
+
CompaniesListCompanyCreditsQueryData,
|
|
111
|
+
CompaniesListCompanyCreditsQueryError
|
|
112
|
+
>,
|
|
113
|
+
): UseSuspenseQueryResult<
|
|
114
|
+
CompaniesListCompanyCreditsQueryData,
|
|
115
|
+
CompaniesListCompanyCreditsQueryError
|
|
116
|
+
> {
|
|
117
|
+
const client = useGreenSecurityContext();
|
|
118
|
+
return useSuspenseQuery({
|
|
119
|
+
...buildCompaniesListCompanyCreditsQuery(
|
|
120
|
+
client,
|
|
121
|
+
request,
|
|
122
|
+
options,
|
|
123
|
+
),
|
|
124
|
+
...options,
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* List credits related to a company
|
|
130
|
+
*
|
|
131
|
+
* @remarks
|
|
132
|
+
* Returns a paginated list of credits associated with the specified company, including incoming and outgoing transactions.
|
|
133
|
+
*/
|
|
134
|
+
export function useCompaniesListCompanyCreditsInfinite(
|
|
135
|
+
request: operations.ListCompanyCreditsRequest,
|
|
136
|
+
options?: InfiniteQueryHookOptions<
|
|
137
|
+
CompaniesListCompanyCreditsInfiniteQueryData,
|
|
138
|
+
CompaniesListCompanyCreditsQueryError
|
|
139
|
+
>,
|
|
140
|
+
): UseInfiniteQueryResult<
|
|
141
|
+
InfiniteData<
|
|
142
|
+
CompaniesListCompanyCreditsInfiniteQueryData,
|
|
143
|
+
CompaniesListCompanyCreditsPageParams
|
|
144
|
+
>,
|
|
145
|
+
CompaniesListCompanyCreditsQueryError
|
|
146
|
+
> {
|
|
147
|
+
const client = useGreenSecurityContext();
|
|
148
|
+
return useInfiniteQuery<
|
|
149
|
+
CompaniesListCompanyCreditsInfiniteQueryData,
|
|
150
|
+
CompaniesListCompanyCreditsQueryError,
|
|
151
|
+
InfiniteData<
|
|
152
|
+
CompaniesListCompanyCreditsInfiniteQueryData,
|
|
153
|
+
CompaniesListCompanyCreditsPageParams
|
|
154
|
+
>,
|
|
155
|
+
QueryKey,
|
|
156
|
+
CompaniesListCompanyCreditsPageParams
|
|
157
|
+
>({
|
|
158
|
+
...buildCompaniesListCompanyCreditsInfiniteQuery(
|
|
159
|
+
client,
|
|
160
|
+
request,
|
|
161
|
+
options,
|
|
162
|
+
),
|
|
163
|
+
initialPageParam: options?.initialPageParam,
|
|
164
|
+
getNextPageParam: (previousPage) => previousPage["~next"],
|
|
165
|
+
...options,
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* List credits related to a company
|
|
171
|
+
*
|
|
172
|
+
* @remarks
|
|
173
|
+
* Returns a paginated list of credits associated with the specified company, including incoming and outgoing transactions.
|
|
174
|
+
*/
|
|
175
|
+
export function useCompaniesListCompanyCreditsInfiniteSuspense(
|
|
176
|
+
request: operations.ListCompanyCreditsRequest,
|
|
177
|
+
options?: SuspenseInfiniteQueryHookOptions<
|
|
178
|
+
CompaniesListCompanyCreditsInfiniteQueryData,
|
|
179
|
+
CompaniesListCompanyCreditsQueryError
|
|
180
|
+
>,
|
|
181
|
+
): UseSuspenseInfiniteQueryResult<
|
|
182
|
+
InfiniteData<
|
|
183
|
+
CompaniesListCompanyCreditsInfiniteQueryData,
|
|
184
|
+
CompaniesListCompanyCreditsPageParams
|
|
185
|
+
>,
|
|
186
|
+
CompaniesListCompanyCreditsQueryError
|
|
187
|
+
> {
|
|
188
|
+
const client = useGreenSecurityContext();
|
|
189
|
+
return useSuspenseInfiniteQuery<
|
|
190
|
+
CompaniesListCompanyCreditsInfiniteQueryData,
|
|
191
|
+
CompaniesListCompanyCreditsQueryError,
|
|
192
|
+
InfiniteData<
|
|
193
|
+
CompaniesListCompanyCreditsInfiniteQueryData,
|
|
194
|
+
CompaniesListCompanyCreditsPageParams
|
|
195
|
+
>,
|
|
196
|
+
QueryKey,
|
|
197
|
+
CompaniesListCompanyCreditsPageParams
|
|
198
|
+
>({
|
|
199
|
+
...buildCompaniesListCompanyCreditsInfiniteQuery(
|
|
200
|
+
client,
|
|
201
|
+
request,
|
|
202
|
+
options,
|
|
203
|
+
),
|
|
204
|
+
initialPageParam: options?.initialPageParam,
|
|
205
|
+
getNextPageParam: (previousPage) => previousPage["~next"],
|
|
206
|
+
...options,
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export function setCompaniesListCompanyCreditsData(
|
|
211
|
+
client: QueryClient,
|
|
212
|
+
queryKeyBase: [
|
|
213
|
+
id: number,
|
|
214
|
+
parameters: {
|
|
215
|
+
sort?: operations.ListCompanyCreditsQueryParamSort | undefined;
|
|
216
|
+
desc?: components.Desc | undefined;
|
|
217
|
+
page?: number | undefined;
|
|
218
|
+
itemsPerPage?: number | undefined;
|
|
219
|
+
expand?: Array<components.Expand> | undefined;
|
|
220
|
+
},
|
|
221
|
+
],
|
|
222
|
+
data: CompaniesListCompanyCreditsQueryData,
|
|
223
|
+
): CompaniesListCompanyCreditsQueryData | undefined {
|
|
224
|
+
const key = queryKeyCompaniesListCompanyCredits(...queryKeyBase);
|
|
225
|
+
|
|
226
|
+
return client.setQueryData<CompaniesListCompanyCreditsQueryData>(key, data);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export function invalidateCompaniesListCompanyCredits(
|
|
230
|
+
client: QueryClient,
|
|
231
|
+
queryKeyBase: TupleToPrefixes<
|
|
232
|
+
[
|
|
233
|
+
id: number,
|
|
234
|
+
parameters: {
|
|
235
|
+
sort?: operations.ListCompanyCreditsQueryParamSort | undefined;
|
|
236
|
+
desc?: components.Desc | undefined;
|
|
237
|
+
page?: number | undefined;
|
|
238
|
+
itemsPerPage?: number | undefined;
|
|
239
|
+
expand?: Array<components.Expand> | undefined;
|
|
240
|
+
},
|
|
241
|
+
]
|
|
242
|
+
>,
|
|
243
|
+
filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
|
|
244
|
+
): Promise<void> {
|
|
245
|
+
return client.invalidateQueries({
|
|
246
|
+
...filters,
|
|
247
|
+
queryKey: [
|
|
248
|
+
"@greensecurity/javascript-sdk",
|
|
249
|
+
"companies",
|
|
250
|
+
"listCompanyCredits",
|
|
251
|
+
...queryKeyBase,
|
|
252
|
+
],
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
export function invalidateAllCompaniesListCompanyCredits(
|
|
257
|
+
client: QueryClient,
|
|
258
|
+
filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
|
|
259
|
+
): Promise<void> {
|
|
260
|
+
return client.invalidateQueries({
|
|
261
|
+
...filters,
|
|
262
|
+
queryKey: [
|
|
263
|
+
"@greensecurity/javascript-sdk",
|
|
264
|
+
"companies",
|
|
265
|
+
"listCompanyCredits",
|
|
266
|
+
],
|
|
267
|
+
});
|
|
268
|
+
}
|
package/src/react-query/index.ts
CHANGED
|
@@ -9,6 +9,8 @@ export * from "./alertsListAlerts.js";
|
|
|
9
9
|
export * from "./alertsUpdateUserAlerts.js";
|
|
10
10
|
export * from "./companiesAddCompanyManager.js";
|
|
11
11
|
export * from "./companiesGetCompany.js";
|
|
12
|
+
export * from "./companiesListCompanyCredentials.js";
|
|
13
|
+
export * from "./companiesListCompanyCredits.js";
|
|
12
14
|
export * from "./companiesListCompanyManagers.js";
|
|
13
15
|
export * from "./companiesListOrSearchCompanies.js";
|
|
14
16
|
export * from "./companiesLookupCompanies.js";
|
|
@@ -41,7 +43,10 @@ export * from "./invoicesMakePayment.js";
|
|
|
41
43
|
export * from "./invoicesUpdateInvoice.js";
|
|
42
44
|
export * from "./lookupsListLookupSystems.js";
|
|
43
45
|
export * from "./mobileDevicesAddMobileDevice.js";
|
|
46
|
+
export * from "./organizationsCreateCompanyTargetFacility.js";
|
|
47
|
+
export * from "./organizationsDeleteCompanyTargetFacility.js";
|
|
44
48
|
export * from "./organizationsGetFacility.js";
|
|
49
|
+
export * from "./organizationsListCompanyTargetFacilities.js";
|
|
45
50
|
export * from "./organizationsListOrSearchDepartmentContacts.js";
|
|
46
51
|
export * from "./organizationsListOrSearchDepartments.js";
|
|
47
52
|
export * from "./organizationsListOrSearchFacilities.js";
|
|
@@ -85,6 +90,7 @@ export * from "./vendorsCreateVendorRegistration.js";
|
|
|
85
90
|
export * from "./vendorsDeclineVendorCredential.js";
|
|
86
91
|
export * from "./vendorsDeleteVendorCredentialFile.js";
|
|
87
92
|
export * from "./vendorsDeleteVendorManagedByCompany.js";
|
|
93
|
+
export * from "./vendorsDownloadVendorsExport.js";
|
|
88
94
|
export * from "./vendorsExpediteTimeRemaining.js";
|
|
89
95
|
export * from "./vendorsGetNextUnansweredScreeningQuestion.js";
|
|
90
96
|
export * from "./vendorsGetSubscription.js";
|
|
@@ -94,6 +100,7 @@ export * from "./vendorsGetVendorInvoiceDetails.js";
|
|
|
94
100
|
export * from "./vendorsGetVendorInvoiceReceipt.js";
|
|
95
101
|
export * from "./vendorsGetVendorLegalName.js";
|
|
96
102
|
export * from "./vendorsGetVendorsDetails.js";
|
|
103
|
+
export * from "./vendorsGetVendorsExportStatus.js";
|
|
97
104
|
export * from "./vendorsGetVendorUploadHistory.js";
|
|
98
105
|
export * from "./vendorsListVendorAdditionalFacilityFields.js";
|
|
99
106
|
export * from "./vendorsListVendorCredentialDataRequests.js";
|
|
@@ -120,6 +127,7 @@ export * from "./vendorsUpdateVendorCustomField.js";
|
|
|
120
127
|
export * from "./vendorsUpdateVendorDetails.js";
|
|
121
128
|
export * from "./vendorsUpdateVendorManagedByCompany.js";
|
|
122
129
|
export * from "./vendorsUpdateVendorScrubDetails.js";
|
|
130
|
+
export * from "./vendorsVendorsExport.js";
|
|
123
131
|
export * from "./webhooksGetWebhookEndpoint.js";
|
|
124
132
|
export * from "./webhooksListAllWebhookEndpoints.js";
|
|
125
133
|
export * from "./webhooksUpdatesTheWebhookEndpointWithTheGivenId.js";
|
|
@@ -75,7 +75,7 @@ export function buildInvoicesGetInvoiceQuery(
|
|
|
75
75
|
|
|
76
76
|
export function queryKeyInvoicesGetInvoice(
|
|
77
77
|
parameters: {
|
|
78
|
-
status: Array<operations.
|
|
78
|
+
status: Array<operations.GetInvoiceQueryParamStatus>;
|
|
79
79
|
productType?: operations.ProductType | undefined;
|
|
80
80
|
vendorId?: string | undefined;
|
|
81
81
|
companyId?: number | undefined;
|
|
@@ -115,7 +115,7 @@ export function setInvoicesGetInvoiceData(
|
|
|
115
115
|
client: QueryClient,
|
|
116
116
|
queryKeyBase: [
|
|
117
117
|
parameters: {
|
|
118
|
-
status: Array<operations.
|
|
118
|
+
status: Array<operations.GetInvoiceQueryParamStatus>;
|
|
119
119
|
productType?: operations.ProductType | undefined;
|
|
120
120
|
vendorId?: string | undefined;
|
|
121
121
|
companyId?: number | undefined;
|
|
@@ -134,7 +134,7 @@ export function invalidateInvoicesGetInvoice(
|
|
|
134
134
|
client: QueryClient,
|
|
135
135
|
queryKeyBase: TupleToPrefixes<
|
|
136
136
|
[parameters: {
|
|
137
|
-
status: Array<operations.
|
|
137
|
+
status: Array<operations.GetInvoiceQueryParamStatus>;
|
|
138
138
|
productType?: operations.ProductType | undefined;
|
|
139
139
|
vendorId?: string | undefined;
|
|
140
140
|
companyId?: number | undefined;
|
|
@@ -88,7 +88,7 @@ export function queryKeyInvoicesInvoicesExport(
|
|
|
88
88
|
facilityId?: number | undefined;
|
|
89
89
|
systemId?: number | undefined;
|
|
90
90
|
sort?: string | undefined;
|
|
91
|
-
desc?: operations.
|
|
91
|
+
desc?: operations.QueryParamDesc | undefined;
|
|
92
92
|
itemsPerPage?: number | undefined;
|
|
93
93
|
expand?: string | undefined;
|
|
94
94
|
},
|
|
@@ -120,7 +120,7 @@ export function setInvoicesInvoicesExportData(
|
|
|
120
120
|
facilityId?: number | undefined;
|
|
121
121
|
systemId?: number | undefined;
|
|
122
122
|
sort?: string | undefined;
|
|
123
|
-
desc?: operations.
|
|
123
|
+
desc?: operations.QueryParamDesc | undefined;
|
|
124
124
|
itemsPerPage?: number | undefined;
|
|
125
125
|
expand?: string | undefined;
|
|
126
126
|
},
|
|
@@ -144,7 +144,7 @@ export function invalidateInvoicesInvoicesExport(
|
|
|
144
144
|
facilityId?: number | undefined;
|
|
145
145
|
systemId?: number | undefined;
|
|
146
146
|
sort?: string | undefined;
|
|
147
|
-
desc?: operations.
|
|
147
|
+
desc?: operations.QueryParamDesc | undefined;
|
|
148
148
|
itemsPerPage?: number | undefined;
|
|
149
149
|
expand?: string | undefined;
|
|
150
150
|
}]
|
|
@@ -71,7 +71,7 @@ export function buildLookupsListLookupSystemsQuery(
|
|
|
71
71
|
|
|
72
72
|
export function queryKeyLookupsListLookupSystems(
|
|
73
73
|
parameters: {
|
|
74
|
-
expand?: Array<operations.
|
|
74
|
+
expand?: Array<operations.QueryParamExpand> | undefined;
|
|
75
75
|
use?: operations.Use | undefined;
|
|
76
76
|
},
|
|
77
77
|
): QueryKey {
|
|
@@ -124,7 +124,7 @@ export function setLookupsListLookupSystemsData(
|
|
|
124
124
|
client: QueryClient,
|
|
125
125
|
queryKeyBase: [
|
|
126
126
|
parameters: {
|
|
127
|
-
expand?: Array<operations.
|
|
127
|
+
expand?: Array<operations.QueryParamExpand> | undefined;
|
|
128
128
|
use?: operations.Use | undefined;
|
|
129
129
|
},
|
|
130
130
|
],
|
|
@@ -139,7 +139,7 @@ export function invalidateLookupsListLookupSystems(
|
|
|
139
139
|
client: QueryClient,
|
|
140
140
|
queryKeyBase: TupleToPrefixes<
|
|
141
141
|
[parameters: {
|
|
142
|
-
expand?: Array<operations.
|
|
142
|
+
expand?: Array<operations.QueryParamExpand> | undefined;
|
|
143
143
|
use?: operations.Use | undefined;
|
|
144
144
|
}]
|
|
145
145
|
>,
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
MutationKey,
|
|
7
|
+
useMutation,
|
|
8
|
+
UseMutationResult,
|
|
9
|
+
} from "@tanstack/react-query";
|
|
10
|
+
import { GreenSecurityCore } from "../core.js";
|
|
11
|
+
import { organizationsCreateCompanyTargetFacility } from "../funcs/organizationsCreateCompanyTargetFacility.js";
|
|
12
|
+
import { combineSignals } from "../lib/primitives.js";
|
|
13
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
14
|
+
import { GreenSecurityError } from "../models/errors/greensecurityerror.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/httpclienterrors.js";
|
|
22
|
+
import * as errors from "../models/errors/index.js";
|
|
23
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
25
|
+
import * as operations from "../models/operations/index.js";
|
|
26
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
27
|
+
import { useGreenSecurityContext } from "./_context.js";
|
|
28
|
+
import { MutationHookOptions } from "./_types.js";
|
|
29
|
+
|
|
30
|
+
export type OrganizationsCreateCompanyTargetFacilityMutationVariables = {
|
|
31
|
+
request: operations.CreateCompanyTargetFacilityRequest;
|
|
32
|
+
options?: RequestOptions;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export type OrganizationsCreateCompanyTargetFacilityMutationData =
|
|
36
|
+
operations.CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk;
|
|
37
|
+
|
|
38
|
+
export type OrganizationsCreateCompanyTargetFacilityMutationError =
|
|
39
|
+
| errors.ApiErrorResponse
|
|
40
|
+
| GreenSecurityError
|
|
41
|
+
| ResponseValidationError
|
|
42
|
+
| ConnectionError
|
|
43
|
+
| RequestAbortedError
|
|
44
|
+
| RequestTimeoutError
|
|
45
|
+
| InvalidRequestError
|
|
46
|
+
| UnexpectedClientError
|
|
47
|
+
| SDKValidationError;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Add a company target facility
|
|
51
|
+
*
|
|
52
|
+
* @remarks
|
|
53
|
+
* Links the URL's company to an existing facility. The link is created with
|
|
54
|
+
* status `Pending`. Only the link row is created — the Facility entity
|
|
55
|
+
* itself is never created or modified by this endpoint.
|
|
56
|
+
*
|
|
57
|
+
* Access control: the URL's `company_id` must be in the caller's update
|
|
58
|
+
* scope for Company, AND the `facility_id` must be in the caller's create
|
|
59
|
+
* scope for Facility (a facility on the company's site, or a facility
|
|
60
|
+
* reachable via the API user's site/system/facility-scoped activation).
|
|
61
|
+
* Either being out of scope returns `404 Company not found` /
|
|
62
|
+
* `404 Facility not found` respectively. Deleted facilities also return
|
|
63
|
+
* `404 Facility not found`.
|
|
64
|
+
*
|
|
65
|
+
* Available `expand` scopes are:
|
|
66
|
+
*
|
|
67
|
+
* - company_target_facility.facility
|
|
68
|
+
*/
|
|
69
|
+
export function useOrganizationsCreateCompanyTargetFacilityMutation(
|
|
70
|
+
options?: MutationHookOptions<
|
|
71
|
+
OrganizationsCreateCompanyTargetFacilityMutationData,
|
|
72
|
+
OrganizationsCreateCompanyTargetFacilityMutationError,
|
|
73
|
+
OrganizationsCreateCompanyTargetFacilityMutationVariables
|
|
74
|
+
>,
|
|
75
|
+
): UseMutationResult<
|
|
76
|
+
OrganizationsCreateCompanyTargetFacilityMutationData,
|
|
77
|
+
OrganizationsCreateCompanyTargetFacilityMutationError,
|
|
78
|
+
OrganizationsCreateCompanyTargetFacilityMutationVariables
|
|
79
|
+
> {
|
|
80
|
+
const client = useGreenSecurityContext();
|
|
81
|
+
return useMutation({
|
|
82
|
+
...buildOrganizationsCreateCompanyTargetFacilityMutation(client, options),
|
|
83
|
+
...options,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function mutationKeyOrganizationsCreateCompanyTargetFacility(): MutationKey {
|
|
88
|
+
return [
|
|
89
|
+
"@greensecurity/javascript-sdk",
|
|
90
|
+
"organizations",
|
|
91
|
+
"createCompanyTargetFacility",
|
|
92
|
+
];
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function buildOrganizationsCreateCompanyTargetFacilityMutation(
|
|
96
|
+
client$: GreenSecurityCore,
|
|
97
|
+
hookOptions?: RequestOptions,
|
|
98
|
+
): {
|
|
99
|
+
mutationKey: MutationKey;
|
|
100
|
+
mutationFn: (
|
|
101
|
+
variables: OrganizationsCreateCompanyTargetFacilityMutationVariables,
|
|
102
|
+
) => Promise<OrganizationsCreateCompanyTargetFacilityMutationData>;
|
|
103
|
+
} {
|
|
104
|
+
return {
|
|
105
|
+
mutationKey: mutationKeyOrganizationsCreateCompanyTargetFacility(),
|
|
106
|
+
mutationFn: function organizationsCreateCompanyTargetFacilityMutationFn({
|
|
107
|
+
request,
|
|
108
|
+
options,
|
|
109
|
+
}): Promise<OrganizationsCreateCompanyTargetFacilityMutationData> {
|
|
110
|
+
const mergedOptions = {
|
|
111
|
+
...hookOptions,
|
|
112
|
+
...options,
|
|
113
|
+
fetchOptions: {
|
|
114
|
+
...hookOptions?.fetchOptions,
|
|
115
|
+
...options?.fetchOptions,
|
|
116
|
+
signal: combineSignals(
|
|
117
|
+
hookOptions?.fetchOptions?.signal,
|
|
118
|
+
options?.fetchOptions?.signal,
|
|
119
|
+
),
|
|
120
|
+
},
|
|
121
|
+
};
|
|
122
|
+
return unwrapAsync(organizationsCreateCompanyTargetFacility(
|
|
123
|
+
client$,
|
|
124
|
+
request,
|
|
125
|
+
mergedOptions,
|
|
126
|
+
));
|
|
127
|
+
},
|
|
128
|
+
};
|
|
129
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
MutationKey,
|
|
7
|
+
useMutation,
|
|
8
|
+
UseMutationResult,
|
|
9
|
+
} from "@tanstack/react-query";
|
|
10
|
+
import { GreenSecurityCore } from "../core.js";
|
|
11
|
+
import { organizationsDeleteCompanyTargetFacility } from "../funcs/organizationsDeleteCompanyTargetFacility.js";
|
|
12
|
+
import { combineSignals } from "../lib/primitives.js";
|
|
13
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
14
|
+
import { GreenSecurityError } from "../models/errors/greensecurityerror.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/httpclienterrors.js";
|
|
22
|
+
import * as errors from "../models/errors/index.js";
|
|
23
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
25
|
+
import * as operations from "../models/operations/index.js";
|
|
26
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
27
|
+
import { useGreenSecurityContext } from "./_context.js";
|
|
28
|
+
import { MutationHookOptions } from "./_types.js";
|
|
29
|
+
|
|
30
|
+
export type OrganizationsDeleteCompanyTargetFacilityMutationVariables = {
|
|
31
|
+
request: operations.DeleteCompanyTargetFacilityRequest;
|
|
32
|
+
options?: RequestOptions;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export type OrganizationsDeleteCompanyTargetFacilityMutationData = boolean;
|
|
36
|
+
|
|
37
|
+
export type OrganizationsDeleteCompanyTargetFacilityMutationError =
|
|
38
|
+
| errors.ApiErrorResponse
|
|
39
|
+
| GreenSecurityError
|
|
40
|
+
| ResponseValidationError
|
|
41
|
+
| ConnectionError
|
|
42
|
+
| RequestAbortedError
|
|
43
|
+
| RequestTimeoutError
|
|
44
|
+
| InvalidRequestError
|
|
45
|
+
| UnexpectedClientError
|
|
46
|
+
| SDKValidationError;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Remove a company target facility
|
|
50
|
+
*
|
|
51
|
+
* @remarks
|
|
52
|
+
* Removes a CompanyTargetFacility link. Blocked when any of the company's
|
|
53
|
+
* individuals still target the same facility (to avoid orphaning their
|
|
54
|
+
* vendor-scoped target rows). Only the link row is removed — the Facility
|
|
55
|
+
* entity itself is never touched.
|
|
56
|
+
*
|
|
57
|
+
* Access control: the URL's `company_id` must be in the caller's update
|
|
58
|
+
* scope for Company (a company manager's or vendor's own company, or a
|
|
59
|
+
* company whose app is activated for the API user). Callers outside that
|
|
60
|
+
* scope receive `404 Company not found`.
|
|
61
|
+
*/
|
|
62
|
+
export function useOrganizationsDeleteCompanyTargetFacilityMutation(
|
|
63
|
+
options?: MutationHookOptions<
|
|
64
|
+
OrganizationsDeleteCompanyTargetFacilityMutationData,
|
|
65
|
+
OrganizationsDeleteCompanyTargetFacilityMutationError,
|
|
66
|
+
OrganizationsDeleteCompanyTargetFacilityMutationVariables
|
|
67
|
+
>,
|
|
68
|
+
): UseMutationResult<
|
|
69
|
+
OrganizationsDeleteCompanyTargetFacilityMutationData,
|
|
70
|
+
OrganizationsDeleteCompanyTargetFacilityMutationError,
|
|
71
|
+
OrganizationsDeleteCompanyTargetFacilityMutationVariables
|
|
72
|
+
> {
|
|
73
|
+
const client = useGreenSecurityContext();
|
|
74
|
+
return useMutation({
|
|
75
|
+
...buildOrganizationsDeleteCompanyTargetFacilityMutation(client, options),
|
|
76
|
+
...options,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function mutationKeyOrganizationsDeleteCompanyTargetFacility(): MutationKey {
|
|
81
|
+
return [
|
|
82
|
+
"@greensecurity/javascript-sdk",
|
|
83
|
+
"organizations",
|
|
84
|
+
"deleteCompanyTargetFacility",
|
|
85
|
+
];
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function buildOrganizationsDeleteCompanyTargetFacilityMutation(
|
|
89
|
+
client$: GreenSecurityCore,
|
|
90
|
+
hookOptions?: RequestOptions,
|
|
91
|
+
): {
|
|
92
|
+
mutationKey: MutationKey;
|
|
93
|
+
mutationFn: (
|
|
94
|
+
variables: OrganizationsDeleteCompanyTargetFacilityMutationVariables,
|
|
95
|
+
) => Promise<OrganizationsDeleteCompanyTargetFacilityMutationData>;
|
|
96
|
+
} {
|
|
97
|
+
return {
|
|
98
|
+
mutationKey: mutationKeyOrganizationsDeleteCompanyTargetFacility(),
|
|
99
|
+
mutationFn: function organizationsDeleteCompanyTargetFacilityMutationFn({
|
|
100
|
+
request,
|
|
101
|
+
options,
|
|
102
|
+
}): Promise<OrganizationsDeleteCompanyTargetFacilityMutationData> {
|
|
103
|
+
const mergedOptions = {
|
|
104
|
+
...hookOptions,
|
|
105
|
+
...options,
|
|
106
|
+
fetchOptions: {
|
|
107
|
+
...hookOptions?.fetchOptions,
|
|
108
|
+
...options?.fetchOptions,
|
|
109
|
+
signal: combineSignals(
|
|
110
|
+
hookOptions?.fetchOptions?.signal,
|
|
111
|
+
options?.fetchOptions?.signal,
|
|
112
|
+
),
|
|
113
|
+
},
|
|
114
|
+
};
|
|
115
|
+
return unwrapAsync(organizationsDeleteCompanyTargetFacility(
|
|
116
|
+
client$,
|
|
117
|
+
request,
|
|
118
|
+
mergedOptions,
|
|
119
|
+
));
|
|
120
|
+
},
|
|
121
|
+
};
|
|
122
|
+
}
|