@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,110 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as types from "../../types/primitives.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
import {
|
|
12
|
+
VendorCredentialSummary,
|
|
13
|
+
VendorCredentialSummary$inboundSchema,
|
|
14
|
+
} from "./vendorcredentialsummary.js";
|
|
15
|
+
|
|
16
|
+
export type CompanyCredentialListItemCredential = {
|
|
17
|
+
id: number;
|
|
18
|
+
name: string;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export type VendorCredentialLast = {
|
|
22
|
+
id: number;
|
|
23
|
+
status: string;
|
|
24
|
+
version: number;
|
|
25
|
+
dateExpires?: string | null | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export type CompanyCredentialListItem = {
|
|
29
|
+
credential: CompanyCredentialListItemCredential;
|
|
30
|
+
/**
|
|
31
|
+
* Reduced list of attributes of Vendor Credential record
|
|
32
|
+
*/
|
|
33
|
+
vendorCredential: VendorCredentialSummary | null;
|
|
34
|
+
vendorCredentialLast?: VendorCredentialLast | null | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const CompanyCredentialListItemCredential$inboundSchema: z.ZodType<
|
|
39
|
+
CompanyCredentialListItemCredential,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
unknown
|
|
42
|
+
> = z.object({
|
|
43
|
+
id: types.number(),
|
|
44
|
+
name: types.string(),
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
export function companyCredentialListItemCredentialFromJSON(
|
|
48
|
+
jsonString: string,
|
|
49
|
+
): SafeParseResult<CompanyCredentialListItemCredential, SDKValidationError> {
|
|
50
|
+
return safeParse(
|
|
51
|
+
jsonString,
|
|
52
|
+
(x) =>
|
|
53
|
+
CompanyCredentialListItemCredential$inboundSchema.parse(JSON.parse(x)),
|
|
54
|
+
`Failed to parse 'CompanyCredentialListItemCredential' from JSON`,
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const VendorCredentialLast$inboundSchema: z.ZodType<
|
|
60
|
+
VendorCredentialLast,
|
|
61
|
+
z.ZodTypeDef,
|
|
62
|
+
unknown
|
|
63
|
+
> = z.object({
|
|
64
|
+
id: types.number(),
|
|
65
|
+
status: types.string(),
|
|
66
|
+
version: types.number(),
|
|
67
|
+
date_expires: z.nullable(types.string()).optional(),
|
|
68
|
+
}).transform((v) => {
|
|
69
|
+
return remap$(v, {
|
|
70
|
+
"date_expires": "dateExpires",
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
export function vendorCredentialLastFromJSON(
|
|
75
|
+
jsonString: string,
|
|
76
|
+
): SafeParseResult<VendorCredentialLast, SDKValidationError> {
|
|
77
|
+
return safeParse(
|
|
78
|
+
jsonString,
|
|
79
|
+
(x) => VendorCredentialLast$inboundSchema.parse(JSON.parse(x)),
|
|
80
|
+
`Failed to parse 'VendorCredentialLast' from JSON`,
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/** @internal */
|
|
85
|
+
export const CompanyCredentialListItem$inboundSchema: z.ZodType<
|
|
86
|
+
CompanyCredentialListItem,
|
|
87
|
+
z.ZodTypeDef,
|
|
88
|
+
unknown
|
|
89
|
+
> = z.object({
|
|
90
|
+
credential: z.lazy(() => CompanyCredentialListItemCredential$inboundSchema),
|
|
91
|
+
vendor_credential: types.nullable(VendorCredentialSummary$inboundSchema),
|
|
92
|
+
vendor_credential_last: z.nullable(
|
|
93
|
+
z.lazy(() => VendorCredentialLast$inboundSchema),
|
|
94
|
+
).optional(),
|
|
95
|
+
}).transform((v) => {
|
|
96
|
+
return remap$(v, {
|
|
97
|
+
"vendor_credential": "vendorCredential",
|
|
98
|
+
"vendor_credential_last": "vendorCredentialLast",
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
export function companyCredentialListItemFromJSON(
|
|
103
|
+
jsonString: string,
|
|
104
|
+
): SafeParseResult<CompanyCredentialListItem, SDKValidationError> {
|
|
105
|
+
return safeParse(
|
|
106
|
+
jsonString,
|
|
107
|
+
(x) => CompanyCredentialListItem$inboundSchema.parse(JSON.parse(x)),
|
|
108
|
+
`Failed to parse 'CompanyCredentialListItem' from JSON`,
|
|
109
|
+
);
|
|
110
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as types from "../../types/primitives.js";
|
|
10
|
+
import { smartUnion } from "../../types/smartUnion.js";
|
|
11
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
|
+
import { Facility, Facility$inboundSchema } from "./facility.js";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* The linked facility. Returns the facility ID by default; pass `company_target_facility.facility` to `expand` to receive the full facility object.
|
|
16
|
+
*/
|
|
17
|
+
export type CompanyTargetFacilityFacility = Facility | number;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Per-facility counts of the company's individuals (vendors) currently targeting this facility.
|
|
21
|
+
*/
|
|
22
|
+
export type IndividualCounts = {
|
|
23
|
+
/**
|
|
24
|
+
* Total individuals from the company targeting this facility.
|
|
25
|
+
*/
|
|
26
|
+
total?: number | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Individuals targeting this facility whose credentialing subscription is active.
|
|
29
|
+
*/
|
|
30
|
+
active?: number | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Describes the facilities that a company would like to do business with. These are called "target facilities" for the company. A company may target/untarget any number of facilities which will kick off the process of becoming compliant with that facility's vendor policies.
|
|
35
|
+
*/
|
|
36
|
+
export type CompanyTargetFacility = {
|
|
37
|
+
/**
|
|
38
|
+
* CompanyTargetFacility row ID. Null when returned via `include_potential_targets=true` for a facility not yet targeted by the company.
|
|
39
|
+
*/
|
|
40
|
+
id: number | null;
|
|
41
|
+
/**
|
|
42
|
+
* The linked facility. Returns the facility ID by default; pass `company_target_facility.facility` to `expand` to receive the full facility object.
|
|
43
|
+
*/
|
|
44
|
+
facility: Facility | number | null;
|
|
45
|
+
/**
|
|
46
|
+
* Link status (Approved, Pending, or Denied). This value is computed by the daily background job from the company's credential state — it is not directly settable through the API.
|
|
47
|
+
*/
|
|
48
|
+
status: string | null;
|
|
49
|
+
contracted?: boolean | undefined;
|
|
50
|
+
dateCreated?: Date | null | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Per-facility counts of the company's individuals (vendors) currently targeting this facility.
|
|
53
|
+
*/
|
|
54
|
+
individualCounts?: IndividualCounts | null | undefined;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const CompanyTargetFacilityFacility$inboundSchema: z.ZodType<
|
|
59
|
+
CompanyTargetFacilityFacility,
|
|
60
|
+
z.ZodTypeDef,
|
|
61
|
+
unknown
|
|
62
|
+
> = smartUnion([Facility$inboundSchema, types.number()]);
|
|
63
|
+
|
|
64
|
+
export function companyTargetFacilityFacilityFromJSON(
|
|
65
|
+
jsonString: string,
|
|
66
|
+
): SafeParseResult<CompanyTargetFacilityFacility, SDKValidationError> {
|
|
67
|
+
return safeParse(
|
|
68
|
+
jsonString,
|
|
69
|
+
(x) => CompanyTargetFacilityFacility$inboundSchema.parse(JSON.parse(x)),
|
|
70
|
+
`Failed to parse 'CompanyTargetFacilityFacility' from JSON`,
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/** @internal */
|
|
75
|
+
export const IndividualCounts$inboundSchema: z.ZodType<
|
|
76
|
+
IndividualCounts,
|
|
77
|
+
z.ZodTypeDef,
|
|
78
|
+
unknown
|
|
79
|
+
> = z.object({
|
|
80
|
+
total: types.optional(types.number()),
|
|
81
|
+
active: types.optional(types.number()),
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
export function individualCountsFromJSON(
|
|
85
|
+
jsonString: string,
|
|
86
|
+
): SafeParseResult<IndividualCounts, SDKValidationError> {
|
|
87
|
+
return safeParse(
|
|
88
|
+
jsonString,
|
|
89
|
+
(x) => IndividualCounts$inboundSchema.parse(JSON.parse(x)),
|
|
90
|
+
`Failed to parse 'IndividualCounts' from JSON`,
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/** @internal */
|
|
95
|
+
export const CompanyTargetFacility$inboundSchema: z.ZodType<
|
|
96
|
+
CompanyTargetFacility,
|
|
97
|
+
z.ZodTypeDef,
|
|
98
|
+
unknown
|
|
99
|
+
> = z.object({
|
|
100
|
+
id: types.nullable(types.number()),
|
|
101
|
+
facility: types.nullable(
|
|
102
|
+
smartUnion([Facility$inboundSchema, types.number()]),
|
|
103
|
+
),
|
|
104
|
+
status: types.nullable(types.string()),
|
|
105
|
+
contracted: types.optional(types.boolean()),
|
|
106
|
+
date_created: z.nullable(types.date()).optional(),
|
|
107
|
+
individual_counts: z.nullable(z.lazy(() => IndividualCounts$inboundSchema))
|
|
108
|
+
.optional(),
|
|
109
|
+
}).transform((v) => {
|
|
110
|
+
return remap$(v, {
|
|
111
|
+
"date_created": "dateCreated",
|
|
112
|
+
"individual_counts": "individualCounts",
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
export function companyTargetFacilityFromJSON(
|
|
117
|
+
jsonString: string,
|
|
118
|
+
): SafeParseResult<CompanyTargetFacility, SDKValidationError> {
|
|
119
|
+
return safeParse(
|
|
120
|
+
jsonString,
|
|
121
|
+
(x) => CompanyTargetFacility$inboundSchema.parse(JSON.parse(x)),
|
|
122
|
+
`Failed to parse 'CompanyTargetFacility' from JSON`,
|
|
123
|
+
);
|
|
124
|
+
}
|
|
@@ -11,30 +11,12 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
11
11
|
import * as types from "../../types/primitives.js";
|
|
12
12
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
13
13
|
|
|
14
|
-
/**
|
|
15
|
-
* Who receives vendor-related notification emails:
|
|
16
|
-
*
|
|
17
|
-
* @remarks
|
|
18
|
-
* - `none` — no recipients
|
|
19
|
-
* - `self` — the user (vendor) themselves
|
|
20
|
-
* - `company_manager` — the vendor's company manager only
|
|
21
|
-
* - `self_and_company_manager` — both
|
|
22
|
-
*/
|
|
23
14
|
export const NotificationRecipients = {
|
|
24
15
|
None: "none",
|
|
25
16
|
Self: "self",
|
|
26
17
|
CompanyManager: "company_manager",
|
|
27
18
|
SelfAndCompanyManager: "self_and_company_manager",
|
|
28
19
|
} as const;
|
|
29
|
-
/**
|
|
30
|
-
* Who receives vendor-related notification emails:
|
|
31
|
-
*
|
|
32
|
-
* @remarks
|
|
33
|
-
* - `none` — no recipients
|
|
34
|
-
* - `self` — the user (vendor) themselves
|
|
35
|
-
* - `company_manager` — the vendor's company manager only
|
|
36
|
-
* - `self_and_company_manager` — both
|
|
37
|
-
*/
|
|
38
20
|
export type NotificationRecipients = OpenEnum<typeof NotificationRecipients>;
|
|
39
21
|
|
|
40
22
|
/**
|
|
@@ -10,9 +10,12 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
10
10
|
*/
|
|
11
11
|
export const Expand = {
|
|
12
12
|
User: "user",
|
|
13
|
+
UserEmailPreferences: "user.email_preferences",
|
|
14
|
+
UserPaymentProfile: "user.payment_profile",
|
|
13
15
|
CompanyLocation: "company.location",
|
|
14
16
|
CompanyVendorFields: "company.vendor_fields",
|
|
15
17
|
CompanyVendorTypeRestrictions: "company.vendor_type_restrictions",
|
|
18
|
+
CompanyTargetFacilityFacility: "company_target_facility.facility",
|
|
16
19
|
ContactFacility: "contact.facility",
|
|
17
20
|
ContactSystem: "contact.system",
|
|
18
21
|
ContactDepartment: "contact.department",
|
|
@@ -103,6 +106,10 @@ export const Expand = {
|
|
|
103
106
|
VendorScanBadgeData: "vendor_scan.badge_data",
|
|
104
107
|
VendorScanVendor: "vendor_scan.vendor",
|
|
105
108
|
VendorScanZone: "vendor_scan.zone",
|
|
109
|
+
VendorScanDepartment: "vendor_scan.department",
|
|
110
|
+
VendorScanCompany: "vendor_scan.company",
|
|
111
|
+
VendorScanAppointment: "vendor_scan.appointment",
|
|
112
|
+
VendorScanScreeningResponses: "vendor_scan.screening_responses",
|
|
106
113
|
ZoneFacility: "zone.facility",
|
|
107
114
|
ZoneDepartment: "zone.department",
|
|
108
115
|
ZoneRules: "zone.rules",
|
|
@@ -4,10 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
export * from "./activestatus.js";
|
|
6
6
|
export * from "./alert.js";
|
|
7
|
+
export * from "./appointmentsummary.js";
|
|
7
8
|
export * from "./backgroundcheckresult.js";
|
|
8
9
|
export * from "./company.js";
|
|
10
|
+
export * from "./companycredentiallistitem.js";
|
|
9
11
|
export * from "./companylookup.js";
|
|
10
12
|
export * from "./companymanager.js";
|
|
13
|
+
export * from "./companytargetfacility.js";
|
|
11
14
|
export * from "./companyvendorfield.js";
|
|
12
15
|
export * from "./companyvendortyperestriction.js";
|
|
13
16
|
export * from "./contact.js";
|
|
@@ -87,6 +90,7 @@ export * from "./vendorrequiredcredential.js";
|
|
|
87
90
|
export * from "./vendorscan.js";
|
|
88
91
|
export * from "./vendorscanscreeninganswer.js";
|
|
89
92
|
export * from "./vendorscanscreeningquestion.js";
|
|
93
|
+
export * from "./vendorscanscreeningresponse.js";
|
|
90
94
|
export * from "./vendorscrubdetails.js";
|
|
91
95
|
export * from "./vendorscrubpurchase.js";
|
|
92
96
|
export * from "./vendortype.js";
|
|
@@ -10,11 +10,11 @@ import * as types from "../../types/primitives.js";
|
|
|
10
10
|
import { smartUnion } from "../../types/smartUnion.js";
|
|
11
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
12
|
|
|
13
|
-
export type
|
|
13
|
+
export type PaymentProfile22 = {};
|
|
14
14
|
|
|
15
|
-
export type PaymentProfile2 = number |
|
|
15
|
+
export type PaymentProfile2 = number | PaymentProfile22;
|
|
16
16
|
|
|
17
|
-
export type
|
|
17
|
+
export type PaymentProfile3 = {
|
|
18
18
|
id?: number | undefined;
|
|
19
19
|
isValid?: boolean | null | undefined;
|
|
20
20
|
cardType?: string | null | undefined;
|
|
@@ -26,19 +26,22 @@ export type PaymentProfile1 = {
|
|
|
26
26
|
/**
|
|
27
27
|
* Reduced list of attributes of the Payment Profile record
|
|
28
28
|
*/
|
|
29
|
-
export type PaymentProfile =
|
|
29
|
+
export type PaymentProfile = PaymentProfile3 | number | PaymentProfile22;
|
|
30
30
|
|
|
31
31
|
/** @internal */
|
|
32
|
-
export const
|
|
33
|
-
|
|
32
|
+
export const PaymentProfile22$inboundSchema: z.ZodType<
|
|
33
|
+
PaymentProfile22,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
unknown
|
|
36
|
+
> = z.object({});
|
|
34
37
|
|
|
35
|
-
export function
|
|
38
|
+
export function paymentProfile22FromJSON(
|
|
36
39
|
jsonString: string,
|
|
37
|
-
): SafeParseResult<
|
|
40
|
+
): SafeParseResult<PaymentProfile22, SDKValidationError> {
|
|
38
41
|
return safeParse(
|
|
39
42
|
jsonString,
|
|
40
|
-
(x) =>
|
|
41
|
-
`Failed to parse '
|
|
43
|
+
(x) => PaymentProfile22$inboundSchema.parse(JSON.parse(x)),
|
|
44
|
+
`Failed to parse 'PaymentProfile22' from JSON`,
|
|
42
45
|
);
|
|
43
46
|
}
|
|
44
47
|
|
|
@@ -47,7 +50,7 @@ export const PaymentProfile2$inboundSchema: z.ZodType<
|
|
|
47
50
|
PaymentProfile2,
|
|
48
51
|
z.ZodTypeDef,
|
|
49
52
|
unknown
|
|
50
|
-
> = smartUnion([types.number(), z.lazy(() =>
|
|
53
|
+
> = smartUnion([types.number(), z.lazy(() => PaymentProfile22$inboundSchema)]);
|
|
51
54
|
|
|
52
55
|
export function paymentProfile2FromJSON(
|
|
53
56
|
jsonString: string,
|
|
@@ -60,8 +63,8 @@ export function paymentProfile2FromJSON(
|
|
|
60
63
|
}
|
|
61
64
|
|
|
62
65
|
/** @internal */
|
|
63
|
-
export const
|
|
64
|
-
|
|
66
|
+
export const PaymentProfile3$inboundSchema: z.ZodType<
|
|
67
|
+
PaymentProfile3,
|
|
65
68
|
z.ZodTypeDef,
|
|
66
69
|
unknown
|
|
67
70
|
> = z.object({
|
|
@@ -81,13 +84,13 @@ export const PaymentProfile1$inboundSchema: z.ZodType<
|
|
|
81
84
|
});
|
|
82
85
|
});
|
|
83
86
|
|
|
84
|
-
export function
|
|
87
|
+
export function paymentProfile3FromJSON(
|
|
85
88
|
jsonString: string,
|
|
86
|
-
): SafeParseResult<
|
|
89
|
+
): SafeParseResult<PaymentProfile3, SDKValidationError> {
|
|
87
90
|
return safeParse(
|
|
88
91
|
jsonString,
|
|
89
|
-
(x) =>
|
|
90
|
-
`Failed to parse '
|
|
92
|
+
(x) => PaymentProfile3$inboundSchema.parse(JSON.parse(x)),
|
|
93
|
+
`Failed to parse 'PaymentProfile3' from JSON`,
|
|
91
94
|
);
|
|
92
95
|
}
|
|
93
96
|
|
|
@@ -97,8 +100,8 @@ export const PaymentProfile$inboundSchema: z.ZodType<
|
|
|
97
100
|
z.ZodTypeDef,
|
|
98
101
|
unknown
|
|
99
102
|
> = smartUnion([
|
|
100
|
-
z.lazy(() =>
|
|
101
|
-
smartUnion([types.number(), z.lazy(() =>
|
|
103
|
+
z.lazy(() => PaymentProfile3$inboundSchema),
|
|
104
|
+
smartUnion([types.number(), z.lazy(() => PaymentProfile22$inboundSchema)]),
|
|
102
105
|
]);
|
|
103
106
|
|
|
104
107
|
export function paymentProfileFromJSON(
|
|
@@ -9,6 +9,7 @@ import * as openEnums from "../../types/enums.js";
|
|
|
9
9
|
import { OpenEnum } from "../../types/enums.js";
|
|
10
10
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
11
11
|
import * as types from "../../types/primitives.js";
|
|
12
|
+
import { smartUnion } from "../../types/smartUnion.js";
|
|
12
13
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
13
14
|
import {
|
|
14
15
|
EmailPreferences,
|
|
@@ -36,6 +37,24 @@ export const UserType = {
|
|
|
36
37
|
*/
|
|
37
38
|
export type UserType = OpenEnum<typeof UserType>;
|
|
38
39
|
|
|
40
|
+
export type Two2 = {};
|
|
41
|
+
|
|
42
|
+
export type Two = number | Two2;
|
|
43
|
+
|
|
44
|
+
export type PaymentProfile1 = {
|
|
45
|
+
id?: number | undefined;
|
|
46
|
+
isValid?: boolean | null | undefined;
|
|
47
|
+
cardType?: string | null | undefined;
|
|
48
|
+
cardLast4?: string | null | undefined;
|
|
49
|
+
isDummy?: boolean | null | undefined;
|
|
50
|
+
profileType?: string | null | undefined;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Reduced list of attributes of the Payment Profile record
|
|
55
|
+
*/
|
|
56
|
+
export type UserDetailsPaymentProfile = PaymentProfile1 | number | Two2;
|
|
57
|
+
|
|
39
58
|
/**
|
|
40
59
|
* Core user profile fields returned by user detail and update endpoints.
|
|
41
60
|
*/
|
|
@@ -90,6 +109,16 @@ export type UserDetails = {
|
|
|
90
109
|
* the migration window but are deprecated.
|
|
91
110
|
*/
|
|
92
111
|
emailPreferences?: EmailPreferences | undefined;
|
|
112
|
+
/**
|
|
113
|
+
* The user's payment profile. Returned only when the request
|
|
114
|
+
*
|
|
115
|
+
* @remarks
|
|
116
|
+
* includes `expand=user.payment_profile` on `GET /users/me`.
|
|
117
|
+
* When expanded, this property is `null` if the user has no
|
|
118
|
+
* payment profile on file, or a populated `PaymentProfile`
|
|
119
|
+
* object if one exists. When not expanded, this property is omitted.
|
|
120
|
+
*/
|
|
121
|
+
paymentProfile?: PaymentProfile1 | number | Two2 | null | undefined;
|
|
93
122
|
};
|
|
94
123
|
|
|
95
124
|
/** @internal */
|
|
@@ -99,6 +128,86 @@ export const UserType$inboundSchema: z.ZodType<
|
|
|
99
128
|
unknown
|
|
100
129
|
> = openEnums.inboundSchema(UserType);
|
|
101
130
|
|
|
131
|
+
/** @internal */
|
|
132
|
+
export const Two2$inboundSchema: z.ZodType<Two2, z.ZodTypeDef, unknown> = z
|
|
133
|
+
.object({});
|
|
134
|
+
|
|
135
|
+
export function two2FromJSON(
|
|
136
|
+
jsonString: string,
|
|
137
|
+
): SafeParseResult<Two2, SDKValidationError> {
|
|
138
|
+
return safeParse(
|
|
139
|
+
jsonString,
|
|
140
|
+
(x) => Two2$inboundSchema.parse(JSON.parse(x)),
|
|
141
|
+
`Failed to parse 'Two2' from JSON`,
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/** @internal */
|
|
146
|
+
export const Two$inboundSchema: z.ZodType<Two, z.ZodTypeDef, unknown> =
|
|
147
|
+
smartUnion([types.number(), z.lazy(() => Two2$inboundSchema)]);
|
|
148
|
+
|
|
149
|
+
export function twoFromJSON(
|
|
150
|
+
jsonString: string,
|
|
151
|
+
): SafeParseResult<Two, SDKValidationError> {
|
|
152
|
+
return safeParse(
|
|
153
|
+
jsonString,
|
|
154
|
+
(x) => Two$inboundSchema.parse(JSON.parse(x)),
|
|
155
|
+
`Failed to parse 'Two' from JSON`,
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/** @internal */
|
|
160
|
+
export const PaymentProfile1$inboundSchema: z.ZodType<
|
|
161
|
+
PaymentProfile1,
|
|
162
|
+
z.ZodTypeDef,
|
|
163
|
+
unknown
|
|
164
|
+
> = z.object({
|
|
165
|
+
id: types.optional(types.number()),
|
|
166
|
+
is_valid: z.nullable(types.boolean()).optional(),
|
|
167
|
+
card_type: z.nullable(types.string()).optional(),
|
|
168
|
+
card_last4: z.nullable(types.string()).optional(),
|
|
169
|
+
is_dummy: z.nullable(types.boolean()).optional(),
|
|
170
|
+
profile_type: z.nullable(types.string()).optional(),
|
|
171
|
+
}).transform((v) => {
|
|
172
|
+
return remap$(v, {
|
|
173
|
+
"is_valid": "isValid",
|
|
174
|
+
"card_type": "cardType",
|
|
175
|
+
"card_last4": "cardLast4",
|
|
176
|
+
"is_dummy": "isDummy",
|
|
177
|
+
"profile_type": "profileType",
|
|
178
|
+
});
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
export function paymentProfile1FromJSON(
|
|
182
|
+
jsonString: string,
|
|
183
|
+
): SafeParseResult<PaymentProfile1, SDKValidationError> {
|
|
184
|
+
return safeParse(
|
|
185
|
+
jsonString,
|
|
186
|
+
(x) => PaymentProfile1$inboundSchema.parse(JSON.parse(x)),
|
|
187
|
+
`Failed to parse 'PaymentProfile1' from JSON`,
|
|
188
|
+
);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/** @internal */
|
|
192
|
+
export const UserDetailsPaymentProfile$inboundSchema: z.ZodType<
|
|
193
|
+
UserDetailsPaymentProfile,
|
|
194
|
+
z.ZodTypeDef,
|
|
195
|
+
unknown
|
|
196
|
+
> = smartUnion([
|
|
197
|
+
z.lazy(() => PaymentProfile1$inboundSchema),
|
|
198
|
+
smartUnion([types.number(), z.lazy(() => Two2$inboundSchema)]),
|
|
199
|
+
]);
|
|
200
|
+
|
|
201
|
+
export function userDetailsPaymentProfileFromJSON(
|
|
202
|
+
jsonString: string,
|
|
203
|
+
): SafeParseResult<UserDetailsPaymentProfile, SDKValidationError> {
|
|
204
|
+
return safeParse(
|
|
205
|
+
jsonString,
|
|
206
|
+
(x) => UserDetailsPaymentProfile$inboundSchema.parse(JSON.parse(x)),
|
|
207
|
+
`Failed to parse 'UserDetailsPaymentProfile' from JSON`,
|
|
208
|
+
);
|
|
209
|
+
}
|
|
210
|
+
|
|
102
211
|
/** @internal */
|
|
103
212
|
export const UserDetails$inboundSchema: z.ZodType<
|
|
104
213
|
UserDetails,
|
|
@@ -119,6 +228,12 @@ export const UserDetails$inboundSchema: z.ZodType<
|
|
|
119
228
|
image_urls: z.nullable(ImageSet$inboundSchema).optional(),
|
|
120
229
|
location: z.nullable(UserLocation$inboundSchema).optional(),
|
|
121
230
|
email_preferences: types.optional(EmailPreferences$inboundSchema),
|
|
231
|
+
payment_profile: z.nullable(
|
|
232
|
+
smartUnion([
|
|
233
|
+
z.lazy(() => PaymentProfile1$inboundSchema),
|
|
234
|
+
smartUnion([types.number(), z.lazy(() => Two2$inboundSchema)]),
|
|
235
|
+
]),
|
|
236
|
+
).optional(),
|
|
122
237
|
}).transform((v) => {
|
|
123
238
|
return remap$(v, {
|
|
124
239
|
"first_name": "firstName",
|
|
@@ -129,6 +244,7 @@ export const UserDetails$inboundSchema: z.ZodType<
|
|
|
129
244
|
"user_type": "userType",
|
|
130
245
|
"image_urls": "imageUrls",
|
|
131
246
|
"email_preferences": "emailPreferences",
|
|
247
|
+
"payment_profile": "paymentProfile",
|
|
132
248
|
});
|
|
133
249
|
});
|
|
134
250
|
|
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
BackgroundCheckResult$inboundSchema,
|
|
15
15
|
} from "./backgroundcheckresult.js";
|
|
16
16
|
import { Company, Company$inboundSchema } from "./company.js";
|
|
17
|
+
import { CompanyLookup, CompanyLookup$inboundSchema } from "./companylookup.js";
|
|
17
18
|
import { Credential, Credential$inboundSchema } from "./credential.js";
|
|
18
19
|
import { Invoice, Invoice$inboundSchema } from "./invoice.js";
|
|
19
20
|
import { Vendor, Vendor$inboundSchema } from "./vendor.js";
|
|
@@ -109,6 +110,7 @@ export type VendorCredentialSummary = {
|
|
|
109
110
|
totalPendingCredentials?: number | null | undefined;
|
|
110
111
|
backgroundCheckProviderId?: number | null | undefined;
|
|
111
112
|
requiresAdminReview?: boolean | null | undefined;
|
|
113
|
+
systems?: Array<CompanyLookup> | null | undefined;
|
|
112
114
|
};
|
|
113
115
|
|
|
114
116
|
/** @internal */
|
|
@@ -326,6 +328,7 @@ export const VendorCredentialSummary$inboundSchema: z.ZodType<
|
|
|
326
328
|
total_pending_credentials: z.nullable(types.number()).optional(),
|
|
327
329
|
background_check_provider_id: z.nullable(types.number()).optional(),
|
|
328
330
|
requires_admin_review: z.nullable(types.boolean()).optional(),
|
|
331
|
+
systems: z.nullable(z.array(CompanyLookup$inboundSchema)).optional(),
|
|
329
332
|
}).transform((v) => {
|
|
330
333
|
return remap$(v, {
|
|
331
334
|
"date_due": "dateDue",
|