@greensecurity/javascript-sdk 0.30.44 → 0.30.48
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/REACT_QUERY.md +27 -11
- package/README.md +10 -4
- package/bin/mcp-server.js +2262 -770
- package/bin/mcp-server.js.map +80 -65
- package/dist/commonjs/__tests__/vendormanagedbycompanies.test.js +1 -1
- package/dist/commonjs/__tests__/vendors.test.js +40 -2
- package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js +45 -1
- package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
- package/dist/commonjs/__tests__/zones.test.js +5 -87
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/funcs/organizationsGetFacility.js +2 -2
- package/dist/commonjs/funcs/organizationsGetFacility.js.map +1 -1
- package/dist/commonjs/funcs/organizationsListOrSearchFacilities.js +2 -2
- package/dist/commonjs/funcs/supportArticlesGetSupportArticle.d.ts +1 -1
- package/dist/commonjs/funcs/supportArticlesGetSupportArticle.d.ts.map +1 -1
- package/dist/commonjs/funcs/supportArticlesGetSupportArticle.js +2 -2
- package/dist/commonjs/funcs/supportArticlesGetSupportArticle.js.map +1 -1
- package/dist/commonjs/funcs/supportArticlesListOrSearchSupportArticles.d.ts +2 -1
- package/dist/commonjs/funcs/supportArticlesListOrSearchSupportArticles.d.ts.map +1 -1
- package/dist/commonjs/funcs/supportArticlesListOrSearchSupportArticles.js +3 -2
- package/dist/commonjs/funcs/supportArticlesListOrSearchSupportArticles.js.map +1 -1
- package/dist/commonjs/funcs/usersChangePassword.d.ts +1 -1
- package/dist/commonjs/funcs/usersChangePassword.d.ts.map +1 -1
- package/dist/commonjs/funcs/usersChangePassword.js +1 -1
- package/dist/commonjs/funcs/usersChangePassword.js.map +1 -1
- package/dist/commonjs/funcs/usersGetCurrentUser.d.ts +1 -1
- package/dist/commonjs/funcs/usersGetCurrentUser.d.ts.map +1 -1
- package/dist/commonjs/funcs/usersGetCurrentUser.js +2 -2
- package/dist/commonjs/funcs/usersGetCurrentUser.js.map +1 -1
- package/dist/commonjs/funcs/usersGetUserById.d.ts +1 -1
- package/dist/commonjs/funcs/usersGetUserById.d.ts.map +1 -1
- package/dist/commonjs/funcs/usersGetUserById.js +2 -2
- package/dist/commonjs/funcs/usersGetUserById.js.map +1 -1
- package/dist/commonjs/funcs/usersMagiclink.d.ts +1 -1
- package/dist/commonjs/funcs/usersMagiclink.d.ts.map +1 -1
- package/dist/commonjs/funcs/usersMagiclink.js +2 -2
- package/dist/commonjs/funcs/usersMagiclink.js.map +1 -1
- package/dist/commonjs/funcs/usersPassword.d.ts +1 -1
- package/dist/commonjs/funcs/usersPassword.d.ts.map +1 -1
- package/dist/commonjs/funcs/usersPassword.js +2 -2
- package/dist/commonjs/funcs/usersPassword.js.map +1 -1
- package/dist/commonjs/funcs/usersPasswordResetRequest.d.ts +1 -1
- package/dist/commonjs/funcs/usersPasswordResetRequest.d.ts.map +1 -1
- package/dist/commonjs/funcs/usersPasswordResetRequest.js +2 -2
- package/dist/commonjs/funcs/usersPasswordResetRequest.js.map +1 -1
- package/dist/commonjs/funcs/{usersLogsUserIntoTheSystem.d.ts → usersPostAuthenticate.d.ts} +2 -2
- package/dist/commonjs/funcs/usersPostAuthenticate.d.ts.map +1 -0
- package/dist/commonjs/funcs/{usersLogsUserIntoTheSystem.js → usersPostAuthenticate.js} +7 -7
- package/dist/commonjs/funcs/usersPostAuthenticate.js.map +1 -0
- package/dist/commonjs/funcs/vendorScansVendorScanOut.d.ts +1 -1
- package/dist/commonjs/funcs/vendorScansVendorScanOut.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorScansVendorScanOut.js +1 -1
- package/dist/commonjs/funcs/vendorScansVendorScanOut.js.map +1 -1
- package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.js +2 -1
- package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.js.map +1 -1
- package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.js +2 -1
- package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.js.map +1 -1
- package/dist/commonjs/funcs/vendorsExpediteTimeRemaining.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsExpediteTimeRemaining.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsExpediteTimeRemaining.js +2 -2
- package/dist/commonjs/funcs/vendorsExpediteTimeRemaining.js.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.d.ts +34 -0
- package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.d.ts.map +1 -0
- package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.js +145 -0
- package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.js.map +1 -0
- package/dist/commonjs/funcs/vendorsGetVendorInvoiceDetails.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorInvoiceDetails.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorInvoiceDetails.js +2 -2
- package/dist/commonjs/funcs/vendorsGetVendorInvoiceDetails.js.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.js +2 -2
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorAdditionalFacilityFields.js +2 -2
- package/dist/commonjs/funcs/vendorsListVendorAdditionalFacilityFields.js.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorCredentials.d.ts +2 -1
- package/dist/commonjs/funcs/vendorsListVendorCredentials.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorCredentials.js +3 -2
- package/dist/commonjs/funcs/vendorsListVendorCredentials.js.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorCredits.js +2 -2
- package/dist/commonjs/funcs/vendorsListVendorCredits.js.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorFacilityStatuses.js +2 -2
- package/dist/commonjs/funcs/vendorsListVendorFacilityStatuses.js.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorInvoices.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsListVendorInvoices.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorInvoices.js +2 -2
- package/dist/commonjs/funcs/vendorsListVendorInvoices.js.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorManagedByCompanies.js +2 -2
- package/dist/commonjs/funcs/vendorsListVendorManagedByCompanies.js.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorScrubDetails.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsListVendorScrubDetails.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorScrubDetails.js +2 -2
- package/dist/commonjs/funcs/vendorsListVendorScrubDetails.js.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorScrubPurchases.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsListVendorScrubPurchases.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorScrubPurchases.js +2 -2
- package/dist/commonjs/funcs/vendorsListVendorScrubPurchases.js.map +1 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.js +2 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.js.map +1 -1
- package/dist/commonjs/funcs/webhooksGetWebhookEndpoint.js +2 -2
- package/dist/commonjs/funcs/webhooksGetWebhookEndpoint.js.map +1 -1
- package/dist/commonjs/funcs/webhooksListAllWebhookEndpoints.d.ts +1 -1
- package/dist/commonjs/funcs/webhooksListAllWebhookEndpoints.d.ts.map +1 -1
- package/dist/commonjs/funcs/webhooksListAllWebhookEndpoints.js +1 -1
- package/dist/commonjs/funcs/webhooksListAllWebhookEndpoints.js.map +1 -1
- package/dist/commonjs/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.d.ts +18 -0
- package/dist/commonjs/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.d.ts.map +1 -0
- package/dist/commonjs/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.js +123 -0
- package/dist/commonjs/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.js.map +1 -0
- package/dist/commonjs/funcs/zonesSecurityZoneCheckin.d.ts +2 -3
- package/dist/commonjs/funcs/zonesSecurityZoneCheckin.d.ts.map +1 -1
- package/dist/commonjs/funcs/zonesSecurityZoneCheckin.js +2 -3
- package/dist/commonjs/funcs/zonesSecurityZoneCheckin.js.map +1 -1
- 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/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +7 -3
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/usersPostAuthenticate.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/usersPostAuthenticate.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/{usersLogsUserIntoTheSystem.js → usersPostAuthenticate.js} +7 -7
- package/dist/commonjs/mcp-server/tools/usersPostAuthenticate.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorCredentialDetails.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorCredentialDetails.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorCredentialDetails.js +81 -0
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorCredentialDetails.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/webhooksUpdatesTheWebhookEndpointWithTheGivenId.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/webhooksUpdatesTheWebhookEndpointWithTheGivenId.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/webhooksUpdatesTheWebhookEndpointWithTheGivenId.js +64 -0
- package/dist/commonjs/mcp-server/tools/webhooksUpdatesTheWebhookEndpointWithTheGivenId.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/zonesSecurityZoneCheckin.js +1 -1
- package/dist/commonjs/mcp-server/tools/zonesSecurityZoneCheckin.js.map +1 -1
- package/dist/commonjs/models/components/backgroundcheckresult.d.ts +186 -0
- package/dist/commonjs/models/components/backgroundcheckresult.d.ts.map +1 -0
- package/dist/commonjs/models/components/backgroundcheckresult.js +241 -0
- package/dist/commonjs/models/components/backgroundcheckresult.js.map +1 -0
- package/dist/commonjs/models/components/credential.d.ts +156 -0
- package/dist/commonjs/models/components/credential.d.ts.map +1 -0
- package/dist/commonjs/models/components/credential.js +186 -0
- package/dist/commonjs/models/components/credential.js.map +1 -0
- package/dist/commonjs/models/components/credentialdocument.d.ts +95 -0
- package/dist/commonjs/models/components/credentialdocument.d.ts.map +1 -0
- package/dist/commonjs/models/components/credentialdocument.js +152 -0
- package/dist/commonjs/models/components/credentialdocument.js.map +1 -0
- package/dist/commonjs/models/components/datarequest.d.ts +138 -0
- package/dist/commonjs/models/components/datarequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/datarequest.js +203 -0
- package/dist/commonjs/models/components/datarequest.js.map +1 -0
- package/dist/commonjs/models/components/expand.d.ts +45 -0
- package/dist/commonjs/models/components/expand.d.ts.map +1 -1
- package/dist/commonjs/models/components/expand.js +15 -0
- package/dist/commonjs/models/components/expand.js.map +1 -1
- package/dist/commonjs/models/components/facility.d.ts +10 -10
- package/dist/commonjs/models/components/facility.d.ts.map +1 -1
- package/dist/commonjs/models/components/facility.js +10 -10
- package/dist/commonjs/models/components/facility.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +9 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +9 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/invoice.d.ts +2 -2
- package/dist/commonjs/models/components/invoice.js +2 -2
- package/dist/commonjs/models/components/invoiceitem.d.ts +52 -4
- package/dist/commonjs/models/components/invoiceitem.d.ts.map +1 -1
- package/dist/commonjs/models/components/invoiceitem.js +60 -9
- package/dist/commonjs/models/components/invoiceitem.js.map +1 -1
- package/dist/commonjs/models/components/product.d.ts +36 -0
- package/dist/commonjs/models/components/product.d.ts.map +1 -0
- package/dist/commonjs/models/components/product.js +73 -0
- package/dist/commonjs/models/components/product.js.map +1 -0
- package/dist/commonjs/models/components/screeningresponse.d.ts +52 -0
- package/dist/commonjs/models/components/screeningresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/screeningresponse.js +116 -0
- package/dist/commonjs/models/components/screeningresponse.js.map +1 -0
- package/dist/commonjs/models/components/user.d.ts +2 -2
- package/dist/commonjs/models/components/user.d.ts.map +1 -1
- package/dist/commonjs/models/components/user.js +2 -2
- package/dist/commonjs/models/components/user.js.map +1 -1
- package/dist/commonjs/models/components/vendor.d.ts +48 -6
- package/dist/commonjs/models/components/vendor.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendor.js +69 -7
- package/dist/commonjs/models/components/vendor.js.map +1 -1
- package/dist/commonjs/models/components/vendorcredentialdatarequest.d.ts +148 -0
- package/dist/commonjs/models/components/vendorcredentialdatarequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/vendorcredentialdatarequest.js +228 -0
- package/dist/commonjs/models/components/vendorcredentialdatarequest.js.map +1 -0
- package/dist/commonjs/models/components/vendorcredentialfile.d.ts +125 -0
- package/dist/commonjs/models/components/vendorcredentialfile.d.ts.map +1 -0
- package/dist/commonjs/models/components/vendorcredentialfile.js +211 -0
- package/dist/commonjs/models/components/vendorcredentialfile.js.map +1 -0
- package/dist/commonjs/models/components/vendorcredentialsummary.d.ts +172 -0
- package/dist/commonjs/models/components/vendorcredentialsummary.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendorcredentialsummary.js +238 -1
- package/dist/commonjs/models/components/vendorcredentialsummary.js.map +1 -1
- package/dist/commonjs/models/components/vendorscan.d.ts +80 -0
- package/dist/commonjs/models/components/vendorscan.d.ts.map +1 -0
- package/dist/commonjs/models/components/vendorscan.js +144 -0
- package/dist/commonjs/models/components/vendorscan.js.map +1 -0
- package/dist/commonjs/models/operations/addvendormanagedbycompany.d.ts +13 -13
- package/dist/commonjs/models/operations/addvendormanagedbycompany.d.ts.map +1 -1
- package/dist/commonjs/models/operations/addvendormanagedbycompany.js +16 -16
- package/dist/commonjs/models/operations/addvendormanagedbycompany.js.map +1 -1
- package/dist/commonjs/models/operations/changepassword.d.ts +13 -13
- package/dist/commonjs/models/operations/changepassword.d.ts.map +1 -1
- package/dist/commonjs/models/operations/changepassword.js +16 -16
- package/dist/commonjs/models/operations/changepassword.js.map +1 -1
- package/dist/commonjs/models/operations/deletevendormanagedbycompany.d.ts +13 -13
- package/dist/commonjs/models/operations/deletevendormanagedbycompany.d.ts.map +1 -1
- package/dist/commonjs/models/operations/deletevendormanagedbycompany.js +18 -16
- package/dist/commonjs/models/operations/deletevendormanagedbycompany.js.map +1 -1
- package/dist/commonjs/models/operations/expeditetimeremaining.d.ts +13 -13
- package/dist/commonjs/models/operations/expeditetimeremaining.d.ts.map +1 -1
- package/dist/commonjs/models/operations/expeditetimeremaining.js +16 -16
- package/dist/commonjs/models/operations/expeditetimeremaining.js.map +1 -1
- package/dist/commonjs/models/operations/getvendorcredentialdetails.d.ts +74 -0
- package/dist/commonjs/models/operations/getvendorcredentialdetails.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getvendorcredentialdetails.js +118 -0
- package/dist/commonjs/models/operations/getvendorcredentialdetails.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +3 -1
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +3 -1
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listallwebhookendpoints.d.ts +13 -13
- package/dist/commonjs/models/operations/listallwebhookendpoints.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listallwebhookendpoints.js +16 -16
- package/dist/commonjs/models/operations/listallwebhookendpoints.js.map +1 -1
- package/dist/commonjs/models/operations/listvendoradditionalfacilityfields.d.ts +15 -15
- package/dist/commonjs/models/operations/listvendoradditionalfacilityfields.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listvendoradditionalfacilityfields.js +20 -18
- package/dist/commonjs/models/operations/listvendoradditionalfacilityfields.js.map +1 -1
- package/dist/commonjs/models/operations/listvendorcredentials.d.ts +25 -25
- package/dist/commonjs/models/operations/listvendorcredentials.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listvendorcredentials.js +26 -26
- package/dist/commonjs/models/operations/listvendorcredentials.js.map +1 -1
- package/dist/commonjs/models/operations/listvendorcredits.d.ts +15 -15
- package/dist/commonjs/models/operations/listvendorcredits.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listvendorcredits.js +18 -18
- package/dist/commonjs/models/operations/listvendorcredits.js.map +1 -1
- package/dist/commonjs/models/operations/listvendorfacilitystatuses.d.ts +15 -15
- package/dist/commonjs/models/operations/listvendorfacilitystatuses.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listvendorfacilitystatuses.js +19 -18
- package/dist/commonjs/models/operations/listvendorfacilitystatuses.js.map +1 -1
- package/dist/commonjs/models/operations/listvendorinvoices.d.ts +17 -17
- package/dist/commonjs/models/operations/listvendorinvoices.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listvendorinvoices.js +20 -20
- package/dist/commonjs/models/operations/listvendorinvoices.js.map +1 -1
- package/dist/commonjs/models/operations/listvendormanagedbycompanies.d.ts +15 -15
- package/dist/commonjs/models/operations/listvendormanagedbycompanies.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listvendormanagedbycompanies.js +20 -18
- package/dist/commonjs/models/operations/listvendormanagedbycompanies.js.map +1 -1
- package/dist/commonjs/models/operations/listvendorscrubpackages.d.ts +2 -2
- package/dist/commonjs/models/operations/listvendorscrubpackages.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listvendorscrubpackages.js +2 -2
- package/dist/commonjs/models/operations/listvendorscrubpackages.js.map +1 -1
- package/dist/commonjs/models/operations/listvendorscrubpurchases.d.ts +15 -15
- package/dist/commonjs/models/operations/listvendorscrubpurchases.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listvendorscrubpurchases.js +18 -18
- package/dist/commonjs/models/operations/listvendorscrubpurchases.js.map +1 -1
- package/dist/commonjs/models/operations/postauthenticate.d.ts +98 -0
- package/dist/commonjs/models/operations/postauthenticate.d.ts.map +1 -0
- package/dist/commonjs/models/operations/{logsuserintothesystem.js → postauthenticate.js} +47 -47
- package/dist/commonjs/models/operations/postauthenticate.js.map +1 -0
- package/dist/commonjs/models/operations/securityzonecheckin.d.ts +190 -4
- package/dist/commonjs/models/operations/securityzonecheckin.d.ts.map +1 -1
- package/dist/commonjs/models/operations/securityzonecheckin.js +244 -1
- package/dist/commonjs/models/operations/securityzonecheckin.js.map +1 -1
- package/dist/commonjs/models/operations/updatesthewebhookendpointwiththegivenid.d.ts +35 -0
- package/dist/commonjs/models/operations/updatesthewebhookendpointwiththegivenid.d.ts.map +1 -0
- package/dist/commonjs/models/operations/updatesthewebhookendpointwiththegivenid.js +81 -0
- package/dist/commonjs/models/operations/updatesthewebhookendpointwiththegivenid.js.map +1 -0
- package/dist/commonjs/models/operations/updatevendormanagedbycompany.d.ts +13 -13
- package/dist/commonjs/models/operations/updatevendormanagedbycompany.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatevendormanagedbycompany.js +18 -16
- package/dist/commonjs/models/operations/updatevendormanagedbycompany.js.map +1 -1
- package/dist/commonjs/models/operations/vendorscanout.d.ts +13 -13
- package/dist/commonjs/models/operations/vendorscanout.d.ts.map +1 -1
- package/dist/commonjs/models/operations/vendorscanout.js +16 -16
- package/dist/commonjs/models/operations/vendorscanout.js.map +1 -1
- package/dist/commonjs/react-query/index.d.ts +3 -1
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +3 -1
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/usersChangePassword.d.ts +1 -1
- package/dist/commonjs/react-query/usersChangePassword.d.ts.map +1 -1
- package/dist/{esm/react-query/usersLogsUserIntoTheSystem.d.ts → commonjs/react-query/usersPostAuthenticate.d.ts} +8 -8
- package/dist/commonjs/react-query/usersPostAuthenticate.d.ts.map +1 -0
- package/dist/commonjs/react-query/{usersLogsUserIntoTheSystem.js → usersPostAuthenticate.js} +13 -13
- package/dist/commonjs/react-query/usersPostAuthenticate.js.map +1 -0
- package/dist/commonjs/react-query/vendorScansVendorScanOut.d.ts +1 -1
- package/dist/commonjs/react-query/vendorScansVendorScanOut.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsAddVendorManagedByCompany.d.ts +1 -1
- package/dist/commonjs/react-query/vendorsAddVendorManagedByCompany.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsDeleteVendorManagedByCompany.d.ts +1 -1
- package/dist/commonjs/react-query/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsExpediteTimeRemaining.d.ts +1 -1
- package/dist/commonjs/react-query/vendorsExpediteTimeRemaining.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.d.ts +79 -0
- package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.js +132 -0
- package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.js.map +1 -0
- package/dist/commonjs/react-query/vendorsUpdateVendorManagedByCompany.d.ts +1 -1
- package/dist/commonjs/react-query/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -1
- package/dist/commonjs/react-query/webhooksListAllWebhookEndpoints.d.ts +1 -1
- package/dist/commonjs/react-query/webhooksListAllWebhookEndpoints.d.ts.map +1 -1
- package/dist/commonjs/react-query/webhooksUpdatesTheWebhookEndpointWithTheGivenId.d.ts +24 -0
- package/dist/commonjs/react-query/webhooksUpdatesTheWebhookEndpointWithTheGivenId.d.ts.map +1 -0
- package/dist/commonjs/react-query/webhooksUpdatesTheWebhookEndpointWithTheGivenId.js +51 -0
- package/dist/commonjs/react-query/webhooksUpdatesTheWebhookEndpointWithTheGivenId.js.map +1 -0
- package/dist/commonjs/react-query/zonesSecurityZoneCheckin.d.ts +2 -3
- package/dist/commonjs/react-query/zonesSecurityZoneCheckin.d.ts.map +1 -1
- package/dist/commonjs/react-query/zonesSecurityZoneCheckin.js +1 -1
- package/dist/commonjs/react-query/zonesSecurityZoneCheckin.js.map +1 -1
- package/dist/commonjs/sdk/users.d.ts +2 -2
- package/dist/commonjs/sdk/users.d.ts.map +1 -1
- package/dist/commonjs/sdk/users.js +3 -3
- package/dist/commonjs/sdk/users.js.map +1 -1
- package/dist/commonjs/sdk/vendors.d.ts +28 -4
- package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
- package/dist/commonjs/sdk/vendors.js +27 -0
- package/dist/commonjs/sdk/vendors.js.map +1 -1
- package/dist/commonjs/sdk/vendorscans.d.ts +1 -1
- package/dist/commonjs/sdk/vendorscans.d.ts.map +1 -1
- package/dist/commonjs/sdk/webhooks.d.ts +8 -1
- package/dist/commonjs/sdk/webhooks.d.ts.map +1 -1
- package/dist/commonjs/sdk/webhooks.js +10 -0
- package/dist/commonjs/sdk/webhooks.js.map +1 -1
- package/dist/commonjs/sdk/zones.d.ts +2 -3
- package/dist/commonjs/sdk/zones.d.ts.map +1 -1
- package/dist/commonjs/sdk/zones.js +1 -1
- package/dist/commonjs/sdk/zones.js.map +1 -1
- package/dist/esm/__tests__/vendormanagedbycompanies.test.js +1 -1
- package/dist/esm/__tests__/vendors.test.js +40 -2
- package/dist/esm/__tests__/vendors.test.js.map +1 -1
- package/dist/esm/__tests__/webhooks.test.js +45 -1
- package/dist/esm/__tests__/webhooks.test.js.map +1 -1
- package/dist/esm/__tests__/zones.test.js +5 -87
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/funcs/organizationsGetFacility.js +2 -2
- package/dist/esm/funcs/organizationsGetFacility.js.map +1 -1
- package/dist/esm/funcs/organizationsListOrSearchFacilities.js +2 -2
- package/dist/esm/funcs/supportArticlesGetSupportArticle.d.ts +1 -1
- package/dist/esm/funcs/supportArticlesGetSupportArticle.d.ts.map +1 -1
- package/dist/esm/funcs/supportArticlesGetSupportArticle.js +2 -2
- package/dist/esm/funcs/supportArticlesGetSupportArticle.js.map +1 -1
- package/dist/esm/funcs/supportArticlesListOrSearchSupportArticles.d.ts +2 -1
- package/dist/esm/funcs/supportArticlesListOrSearchSupportArticles.d.ts.map +1 -1
- package/dist/esm/funcs/supportArticlesListOrSearchSupportArticles.js +3 -2
- package/dist/esm/funcs/supportArticlesListOrSearchSupportArticles.js.map +1 -1
- package/dist/esm/funcs/usersChangePassword.d.ts +1 -1
- package/dist/esm/funcs/usersChangePassword.d.ts.map +1 -1
- package/dist/esm/funcs/usersChangePassword.js +1 -1
- package/dist/esm/funcs/usersChangePassword.js.map +1 -1
- package/dist/esm/funcs/usersGetCurrentUser.d.ts +1 -1
- package/dist/esm/funcs/usersGetCurrentUser.d.ts.map +1 -1
- package/dist/esm/funcs/usersGetCurrentUser.js +2 -2
- package/dist/esm/funcs/usersGetCurrentUser.js.map +1 -1
- package/dist/esm/funcs/usersGetUserById.d.ts +1 -1
- package/dist/esm/funcs/usersGetUserById.d.ts.map +1 -1
- package/dist/esm/funcs/usersGetUserById.js +2 -2
- package/dist/esm/funcs/usersGetUserById.js.map +1 -1
- package/dist/esm/funcs/usersMagiclink.d.ts +1 -1
- package/dist/esm/funcs/usersMagiclink.d.ts.map +1 -1
- package/dist/esm/funcs/usersMagiclink.js +2 -2
- package/dist/esm/funcs/usersMagiclink.js.map +1 -1
- package/dist/esm/funcs/usersPassword.d.ts +1 -1
- package/dist/esm/funcs/usersPassword.d.ts.map +1 -1
- package/dist/esm/funcs/usersPassword.js +2 -2
- package/dist/esm/funcs/usersPassword.js.map +1 -1
- package/dist/esm/funcs/usersPasswordResetRequest.d.ts +1 -1
- package/dist/esm/funcs/usersPasswordResetRequest.d.ts.map +1 -1
- package/dist/esm/funcs/usersPasswordResetRequest.js +2 -2
- package/dist/esm/funcs/usersPasswordResetRequest.js.map +1 -1
- package/dist/esm/funcs/{usersLogsUserIntoTheSystem.d.ts → usersPostAuthenticate.d.ts} +2 -2
- package/dist/esm/funcs/usersPostAuthenticate.d.ts.map +1 -0
- package/dist/esm/funcs/{usersLogsUserIntoTheSystem.js → usersPostAuthenticate.js} +6 -6
- package/dist/esm/funcs/usersPostAuthenticate.js.map +1 -0
- package/dist/esm/funcs/vendorScansVendorScanOut.d.ts +1 -1
- package/dist/esm/funcs/vendorScansVendorScanOut.d.ts.map +1 -1
- package/dist/esm/funcs/vendorScansVendorScanOut.js +1 -1
- package/dist/esm/funcs/vendorScansVendorScanOut.js.map +1 -1
- package/dist/esm/funcs/vendorsAddVendorManagedByCompany.d.ts +1 -1
- package/dist/esm/funcs/vendorsAddVendorManagedByCompany.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsAddVendorManagedByCompany.js +2 -1
- package/dist/esm/funcs/vendorsAddVendorManagedByCompany.js.map +1 -1
- package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.d.ts +1 -1
- package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.js +2 -1
- package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.js.map +1 -1
- package/dist/esm/funcs/vendorsExpediteTimeRemaining.d.ts +1 -1
- package/dist/esm/funcs/vendorsExpediteTimeRemaining.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsExpediteTimeRemaining.js +2 -2
- package/dist/esm/funcs/vendorsExpediteTimeRemaining.js.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorCredentialDetails.d.ts +34 -0
- package/dist/esm/funcs/vendorsGetVendorCredentialDetails.d.ts.map +1 -0
- package/dist/esm/funcs/vendorsGetVendorCredentialDetails.js +109 -0
- package/dist/esm/funcs/vendorsGetVendorCredentialDetails.js.map +1 -0
- package/dist/esm/funcs/vendorsGetVendorInvoiceDetails.d.ts +1 -1
- package/dist/esm/funcs/vendorsGetVendorInvoiceDetails.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorInvoiceDetails.js +2 -2
- package/dist/esm/funcs/vendorsGetVendorInvoiceDetails.js.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorsDetails.js +2 -2
- package/dist/esm/funcs/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/esm/funcs/vendorsListVendorAdditionalFacilityFields.js +2 -2
- package/dist/esm/funcs/vendorsListVendorAdditionalFacilityFields.js.map +1 -1
- package/dist/esm/funcs/vendorsListVendorCredentials.d.ts +2 -1
- package/dist/esm/funcs/vendorsListVendorCredentials.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsListVendorCredentials.js +3 -2
- package/dist/esm/funcs/vendorsListVendorCredentials.js.map +1 -1
- package/dist/esm/funcs/vendorsListVendorCredits.js +2 -2
- package/dist/esm/funcs/vendorsListVendorCredits.js.map +1 -1
- package/dist/esm/funcs/vendorsListVendorFacilityStatuses.js +2 -2
- package/dist/esm/funcs/vendorsListVendorFacilityStatuses.js.map +1 -1
- package/dist/esm/funcs/vendorsListVendorInvoices.d.ts +1 -1
- package/dist/esm/funcs/vendorsListVendorInvoices.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsListVendorInvoices.js +2 -2
- package/dist/esm/funcs/vendorsListVendorInvoices.js.map +1 -1
- package/dist/esm/funcs/vendorsListVendorManagedByCompanies.js +2 -2
- package/dist/esm/funcs/vendorsListVendorManagedByCompanies.js.map +1 -1
- package/dist/esm/funcs/vendorsListVendorScrubDetails.d.ts +1 -1
- package/dist/esm/funcs/vendorsListVendorScrubDetails.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsListVendorScrubDetails.js +2 -2
- package/dist/esm/funcs/vendorsListVendorScrubDetails.js.map +1 -1
- package/dist/esm/funcs/vendorsListVendorScrubPurchases.d.ts +1 -1
- package/dist/esm/funcs/vendorsListVendorScrubPurchases.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsListVendorScrubPurchases.js +2 -2
- package/dist/esm/funcs/vendorsListVendorScrubPurchases.js.map +1 -1
- package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.d.ts +1 -1
- package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.js +2 -1
- package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.js.map +1 -1
- package/dist/esm/funcs/webhooksGetWebhookEndpoint.js +2 -2
- package/dist/esm/funcs/webhooksGetWebhookEndpoint.js.map +1 -1
- package/dist/esm/funcs/webhooksListAllWebhookEndpoints.d.ts +1 -1
- package/dist/esm/funcs/webhooksListAllWebhookEndpoints.d.ts.map +1 -1
- package/dist/esm/funcs/webhooksListAllWebhookEndpoints.js +1 -1
- package/dist/esm/funcs/webhooksListAllWebhookEndpoints.js.map +1 -1
- package/dist/esm/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.d.ts +18 -0
- package/dist/esm/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.d.ts.map +1 -0
- package/dist/esm/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.js +87 -0
- package/dist/esm/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.js.map +1 -0
- package/dist/esm/funcs/zonesSecurityZoneCheckin.d.ts +2 -3
- package/dist/esm/funcs/zonesSecurityZoneCheckin.d.ts.map +1 -1
- package/dist/esm/funcs/zonesSecurityZoneCheckin.js +2 -3
- package/dist/esm/funcs/zonesSecurityZoneCheckin.js.map +1 -1
- 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/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +7 -3
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/usersPostAuthenticate.d.ts +8 -0
- package/dist/esm/mcp-server/tools/usersPostAuthenticate.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/{usersLogsUserIntoTheSystem.js → usersPostAuthenticate.js} +6 -6
- package/dist/esm/mcp-server/tools/usersPostAuthenticate.js.map +1 -0
- package/dist/esm/mcp-server/tools/vendorsGetVendorCredentialDetails.d.ts +8 -0
- package/dist/esm/mcp-server/tools/vendorsGetVendorCredentialDetails.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/vendorsGetVendorCredentialDetails.js +45 -0
- package/dist/esm/mcp-server/tools/vendorsGetVendorCredentialDetails.js.map +1 -0
- package/dist/esm/mcp-server/tools/webhooksUpdatesTheWebhookEndpointWithTheGivenId.d.ts +8 -0
- package/dist/esm/mcp-server/tools/webhooksUpdatesTheWebhookEndpointWithTheGivenId.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/webhooksUpdatesTheWebhookEndpointWithTheGivenId.js +28 -0
- package/dist/esm/mcp-server/tools/webhooksUpdatesTheWebhookEndpointWithTheGivenId.js.map +1 -0
- package/dist/esm/mcp-server/tools/zonesSecurityZoneCheckin.js +1 -1
- package/dist/esm/mcp-server/tools/zonesSecurityZoneCheckin.js.map +1 -1
- package/dist/esm/models/components/backgroundcheckresult.d.ts +186 -0
- package/dist/esm/models/components/backgroundcheckresult.d.ts.map +1 -0
- package/dist/esm/models/components/backgroundcheckresult.js +197 -0
- package/dist/esm/models/components/backgroundcheckresult.js.map +1 -0
- package/dist/esm/models/components/credential.d.ts +156 -0
- package/dist/esm/models/components/credential.d.ts.map +1 -0
- package/dist/esm/models/components/credential.js +148 -0
- package/dist/esm/models/components/credential.js.map +1 -0
- package/dist/esm/models/components/credentialdocument.d.ts +95 -0
- package/dist/esm/models/components/credentialdocument.d.ts.map +1 -0
- package/dist/esm/models/components/credentialdocument.js +110 -0
- package/dist/esm/models/components/credentialdocument.js.map +1 -0
- package/dist/esm/models/components/datarequest.d.ts +138 -0
- package/dist/esm/models/components/datarequest.d.ts.map +1 -0
- package/dist/esm/models/components/datarequest.js +161 -0
- package/dist/esm/models/components/datarequest.js.map +1 -0
- package/dist/esm/models/components/expand.d.ts +45 -0
- package/dist/esm/models/components/expand.d.ts.map +1 -1
- package/dist/esm/models/components/expand.js +15 -0
- package/dist/esm/models/components/expand.js.map +1 -1
- package/dist/esm/models/components/facility.d.ts +10 -10
- package/dist/esm/models/components/facility.d.ts.map +1 -1
- package/dist/esm/models/components/facility.js +10 -10
- package/dist/esm/models/components/facility.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +9 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +9 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/invoice.d.ts +2 -2
- package/dist/esm/models/components/invoice.js +2 -2
- package/dist/esm/models/components/invoiceitem.d.ts +52 -4
- package/dist/esm/models/components/invoiceitem.d.ts.map +1 -1
- package/dist/esm/models/components/invoiceitem.js +55 -8
- package/dist/esm/models/components/invoiceitem.js.map +1 -1
- package/dist/esm/models/components/product.d.ts +36 -0
- package/dist/esm/models/components/product.d.ts.map +1 -0
- package/dist/esm/models/components/product.js +35 -0
- package/dist/esm/models/components/product.js.map +1 -0
- package/dist/esm/models/components/screeningresponse.d.ts +52 -0
- package/dist/esm/models/components/screeningresponse.d.ts.map +1 -0
- package/dist/esm/models/components/screeningresponse.js +78 -0
- package/dist/esm/models/components/screeningresponse.js.map +1 -0
- package/dist/esm/models/components/user.d.ts +2 -2
- package/dist/esm/models/components/user.d.ts.map +1 -1
- package/dist/esm/models/components/user.js +2 -2
- package/dist/esm/models/components/user.js.map +1 -1
- package/dist/esm/models/components/vendor.d.ts +48 -6
- package/dist/esm/models/components/vendor.d.ts.map +1 -1
- package/dist/esm/models/components/vendor.js +64 -6
- package/dist/esm/models/components/vendor.js.map +1 -1
- package/dist/esm/models/components/vendorcredentialdatarequest.d.ts +148 -0
- package/dist/esm/models/components/vendorcredentialdatarequest.d.ts.map +1 -0
- package/dist/esm/models/components/vendorcredentialdatarequest.js +184 -0
- package/dist/esm/models/components/vendorcredentialdatarequest.js.map +1 -0
- package/dist/esm/models/components/vendorcredentialfile.d.ts +125 -0
- package/dist/esm/models/components/vendorcredentialfile.d.ts.map +1 -0
- package/dist/esm/models/components/vendorcredentialfile.js +167 -0
- package/dist/esm/models/components/vendorcredentialfile.js.map +1 -0
- package/dist/esm/models/components/vendorcredentialsummary.d.ts +172 -0
- package/dist/esm/models/components/vendorcredentialsummary.d.ts.map +1 -1
- package/dist/esm/models/components/vendorcredentialsummary.js +227 -0
- package/dist/esm/models/components/vendorcredentialsummary.js.map +1 -1
- package/dist/esm/models/components/vendorscan.d.ts +80 -0
- package/dist/esm/models/components/vendorscan.d.ts.map +1 -0
- package/dist/esm/models/components/vendorscan.js +104 -0
- package/dist/esm/models/components/vendorscan.js.map +1 -0
- package/dist/esm/models/operations/addvendormanagedbycompany.d.ts +13 -13
- package/dist/esm/models/operations/addvendormanagedbycompany.d.ts.map +1 -1
- package/dist/esm/models/operations/addvendormanagedbycompany.js +13 -13
- package/dist/esm/models/operations/addvendormanagedbycompany.js.map +1 -1
- package/dist/esm/models/operations/changepassword.d.ts +13 -13
- package/dist/esm/models/operations/changepassword.d.ts.map +1 -1
- package/dist/esm/models/operations/changepassword.js +13 -13
- package/dist/esm/models/operations/changepassword.js.map +1 -1
- package/dist/esm/models/operations/deletevendormanagedbycompany.d.ts +13 -13
- package/dist/esm/models/operations/deletevendormanagedbycompany.d.ts.map +1 -1
- package/dist/esm/models/operations/deletevendormanagedbycompany.js +15 -13
- package/dist/esm/models/operations/deletevendormanagedbycompany.js.map +1 -1
- package/dist/esm/models/operations/expeditetimeremaining.d.ts +13 -13
- package/dist/esm/models/operations/expeditetimeremaining.d.ts.map +1 -1
- package/dist/esm/models/operations/expeditetimeremaining.js +13 -13
- package/dist/esm/models/operations/expeditetimeremaining.js.map +1 -1
- package/dist/esm/models/operations/getvendorcredentialdetails.d.ts +74 -0
- package/dist/esm/models/operations/getvendorcredentialdetails.d.ts.map +1 -0
- package/dist/esm/models/operations/getvendorcredentialdetails.js +78 -0
- package/dist/esm/models/operations/getvendorcredentialdetails.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +3 -1
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +3 -1
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listallwebhookendpoints.d.ts +13 -13
- package/dist/esm/models/operations/listallwebhookendpoints.d.ts.map +1 -1
- package/dist/esm/models/operations/listallwebhookendpoints.js +13 -13
- package/dist/esm/models/operations/listallwebhookendpoints.js.map +1 -1
- package/dist/esm/models/operations/listvendoradditionalfacilityfields.d.ts +15 -15
- package/dist/esm/models/operations/listvendoradditionalfacilityfields.d.ts.map +1 -1
- package/dist/esm/models/operations/listvendoradditionalfacilityfields.js +17 -15
- package/dist/esm/models/operations/listvendoradditionalfacilityfields.js.map +1 -1
- package/dist/esm/models/operations/listvendorcredentials.d.ts +25 -25
- package/dist/esm/models/operations/listvendorcredentials.d.ts.map +1 -1
- package/dist/esm/models/operations/listvendorcredentials.js +23 -23
- package/dist/esm/models/operations/listvendorcredentials.js.map +1 -1
- package/dist/esm/models/operations/listvendorcredits.d.ts +15 -15
- package/dist/esm/models/operations/listvendorcredits.d.ts.map +1 -1
- package/dist/esm/models/operations/listvendorcredits.js +15 -15
- package/dist/esm/models/operations/listvendorcredits.js.map +1 -1
- package/dist/esm/models/operations/listvendorfacilitystatuses.d.ts +15 -15
- package/dist/esm/models/operations/listvendorfacilitystatuses.d.ts.map +1 -1
- package/dist/esm/models/operations/listvendorfacilitystatuses.js +16 -15
- package/dist/esm/models/operations/listvendorfacilitystatuses.js.map +1 -1
- package/dist/esm/models/operations/listvendorinvoices.d.ts +17 -17
- package/dist/esm/models/operations/listvendorinvoices.d.ts.map +1 -1
- package/dist/esm/models/operations/listvendorinvoices.js +17 -17
- package/dist/esm/models/operations/listvendorinvoices.js.map +1 -1
- package/dist/esm/models/operations/listvendormanagedbycompanies.d.ts +15 -15
- package/dist/esm/models/operations/listvendormanagedbycompanies.d.ts.map +1 -1
- package/dist/esm/models/operations/listvendormanagedbycompanies.js +17 -15
- package/dist/esm/models/operations/listvendormanagedbycompanies.js.map +1 -1
- package/dist/esm/models/operations/listvendorscrubpackages.d.ts +2 -2
- package/dist/esm/models/operations/listvendorscrubpackages.d.ts.map +1 -1
- package/dist/esm/models/operations/listvendorscrubpackages.js +2 -2
- package/dist/esm/models/operations/listvendorscrubpackages.js.map +1 -1
- package/dist/esm/models/operations/listvendorscrubpurchases.d.ts +15 -15
- package/dist/esm/models/operations/listvendorscrubpurchases.d.ts.map +1 -1
- package/dist/esm/models/operations/listvendorscrubpurchases.js +15 -15
- package/dist/esm/models/operations/listvendorscrubpurchases.js.map +1 -1
- package/dist/esm/models/operations/postauthenticate.d.ts +98 -0
- package/dist/esm/models/operations/postauthenticate.d.ts.map +1 -0
- package/dist/esm/models/operations/postauthenticate.js +122 -0
- package/dist/esm/models/operations/postauthenticate.js.map +1 -0
- package/dist/esm/models/operations/securityzonecheckin.d.ts +190 -4
- package/dist/esm/models/operations/securityzonecheckin.d.ts.map +1 -1
- package/dist/esm/models/operations/securityzonecheckin.js +239 -0
- package/dist/esm/models/operations/securityzonecheckin.js.map +1 -1
- package/dist/esm/models/operations/updatesthewebhookendpointwiththegivenid.d.ts +35 -0
- package/dist/esm/models/operations/updatesthewebhookendpointwiththegivenid.d.ts.map +1 -0
- package/dist/esm/models/operations/updatesthewebhookendpointwiththegivenid.js +43 -0
- package/dist/esm/models/operations/updatesthewebhookendpointwiththegivenid.js.map +1 -0
- package/dist/esm/models/operations/updatevendormanagedbycompany.d.ts +13 -13
- package/dist/esm/models/operations/updatevendormanagedbycompany.d.ts.map +1 -1
- package/dist/esm/models/operations/updatevendormanagedbycompany.js +15 -13
- package/dist/esm/models/operations/updatevendormanagedbycompany.js.map +1 -1
- package/dist/esm/models/operations/vendorscanout.d.ts +13 -13
- package/dist/esm/models/operations/vendorscanout.d.ts.map +1 -1
- package/dist/esm/models/operations/vendorscanout.js +13 -13
- package/dist/esm/models/operations/vendorscanout.js.map +1 -1
- package/dist/esm/react-query/index.d.ts +3 -1
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +3 -1
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/usersChangePassword.d.ts +1 -1
- package/dist/esm/react-query/usersChangePassword.d.ts.map +1 -1
- package/dist/{commonjs/react-query/usersLogsUserIntoTheSystem.d.ts → esm/react-query/usersPostAuthenticate.d.ts} +8 -8
- package/dist/esm/react-query/usersPostAuthenticate.d.ts.map +1 -0
- package/dist/esm/react-query/{usersLogsUserIntoTheSystem.js → usersPostAuthenticate.js} +10 -10
- package/dist/esm/react-query/usersPostAuthenticate.js.map +1 -0
- package/dist/esm/react-query/vendorScansVendorScanOut.d.ts +1 -1
- package/dist/esm/react-query/vendorScansVendorScanOut.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsAddVendorManagedByCompany.d.ts +1 -1
- package/dist/esm/react-query/vendorsAddVendorManagedByCompany.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsDeleteVendorManagedByCompany.d.ts +1 -1
- package/dist/esm/react-query/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsExpediteTimeRemaining.d.ts +1 -1
- package/dist/esm/react-query/vendorsExpediteTimeRemaining.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsGetVendorCredentialDetails.d.ts +79 -0
- package/dist/esm/react-query/vendorsGetVendorCredentialDetails.d.ts.map +1 -0
- package/dist/esm/react-query/vendorsGetVendorCredentialDetails.js +122 -0
- package/dist/esm/react-query/vendorsGetVendorCredentialDetails.js.map +1 -0
- package/dist/esm/react-query/vendorsUpdateVendorManagedByCompany.d.ts +1 -1
- package/dist/esm/react-query/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -1
- package/dist/esm/react-query/webhooksListAllWebhookEndpoints.d.ts +1 -1
- package/dist/esm/react-query/webhooksListAllWebhookEndpoints.d.ts.map +1 -1
- package/dist/esm/react-query/webhooksUpdatesTheWebhookEndpointWithTheGivenId.d.ts +24 -0
- package/dist/esm/react-query/webhooksUpdatesTheWebhookEndpointWithTheGivenId.d.ts.map +1 -0
- package/dist/esm/react-query/webhooksUpdatesTheWebhookEndpointWithTheGivenId.js +46 -0
- package/dist/esm/react-query/webhooksUpdatesTheWebhookEndpointWithTheGivenId.js.map +1 -0
- package/dist/esm/react-query/zonesSecurityZoneCheckin.d.ts +2 -3
- package/dist/esm/react-query/zonesSecurityZoneCheckin.d.ts.map +1 -1
- package/dist/esm/react-query/zonesSecurityZoneCheckin.js +1 -1
- package/dist/esm/react-query/zonesSecurityZoneCheckin.js.map +1 -1
- package/dist/esm/sdk/users.d.ts +2 -2
- package/dist/esm/sdk/users.d.ts.map +1 -1
- package/dist/esm/sdk/users.js +3 -3
- package/dist/esm/sdk/users.js.map +1 -1
- package/dist/esm/sdk/vendors.d.ts +28 -4
- package/dist/esm/sdk/vendors.d.ts.map +1 -1
- package/dist/esm/sdk/vendors.js +27 -0
- package/dist/esm/sdk/vendors.js.map +1 -1
- package/dist/esm/sdk/vendorscans.d.ts +1 -1
- package/dist/esm/sdk/vendorscans.d.ts.map +1 -1
- package/dist/esm/sdk/webhooks.d.ts +8 -1
- package/dist/esm/sdk/webhooks.d.ts.map +1 -1
- package/dist/esm/sdk/webhooks.js +10 -0
- package/dist/esm/sdk/webhooks.js.map +1 -1
- package/dist/esm/sdk/zones.d.ts +2 -3
- package/dist/esm/sdk/zones.d.ts.map +1 -1
- package/dist/esm/sdk/zones.js +1 -1
- package/dist/esm/sdk/zones.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/vendormanagedbycompanies.test.ts +1 -1
- package/src/__tests__/vendors.test.ts +43 -2
- package/src/__tests__/webhooks.test.ts +50 -1
- package/src/__tests__/zones.test.ts +5 -87
- package/src/funcs/organizationsGetFacility.ts +2 -2
- package/src/funcs/organizationsListOrSearchFacilities.ts +2 -2
- package/src/funcs/supportArticlesGetSupportArticle.ts +6 -2
- package/src/funcs/supportArticlesListOrSearchSupportArticles.ts +12 -1
- package/src/funcs/usersChangePassword.ts +4 -4
- package/src/funcs/usersGetCurrentUser.ts +5 -1
- package/src/funcs/usersGetUserById.ts +5 -1
- package/src/funcs/usersMagiclink.ts +5 -1
- package/src/funcs/usersPassword.ts +6 -2
- package/src/funcs/usersPasswordResetRequest.ts +6 -2
- package/src/funcs/{usersLogsUserIntoTheSystem.ts → usersPostAuthenticate.ts} +16 -12
- package/src/funcs/vendorScansVendorScanOut.ts +4 -4
- package/src/funcs/vendorsAddVendorManagedByCompany.ts +8 -4
- package/src/funcs/vendorsDeleteVendorManagedByCompany.ts +5 -4
- package/src/funcs/vendorsExpediteTimeRemaining.ts +13 -6
- package/src/funcs/vendorsGetVendorCredentialDetails.ts +204 -0
- package/src/funcs/vendorsGetVendorInvoiceDetails.ts +6 -2
- package/src/funcs/vendorsGetVendorsDetails.ts +2 -2
- package/src/funcs/vendorsListVendorAdditionalFacilityFields.ts +2 -2
- package/src/funcs/vendorsListVendorCredentials.ts +12 -1
- package/src/funcs/vendorsListVendorCredits.ts +2 -2
- package/src/funcs/vendorsListVendorFacilityStatuses.ts +2 -2
- package/src/funcs/vendorsListVendorInvoices.ts +7 -2
- package/src/funcs/vendorsListVendorManagedByCompanies.ts +2 -2
- package/src/funcs/vendorsListVendorScrubDetails.ts +6 -2
- package/src/funcs/vendorsListVendorScrubPurchases.ts +7 -2
- package/src/funcs/vendorsUpdateVendorManagedByCompany.ts +5 -4
- package/src/funcs/webhooksGetWebhookEndpoint.ts +2 -2
- package/src/funcs/webhooksListAllWebhookEndpoints.ts +7 -4
- package/src/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.ts +176 -0
- package/src/funcs/zonesSecurityZoneCheckin.ts +5 -6
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +7 -3
- package/src/mcp-server/tools/{usersLogsUserIntoTheSystem.ts → usersPostAuthenticate.ts} +5 -5
- package/src/mcp-server/tools/vendorsGetVendorCredentialDetails.ts +56 -0
- package/src/mcp-server/tools/webhooksUpdatesTheWebhookEndpointWithTheGivenId.ts +40 -0
- package/src/mcp-server/tools/zonesSecurityZoneCheckin.ts +1 -1
- package/src/models/components/backgroundcheckresult.ts +378 -0
- package/src/models/components/credential.ts +239 -0
- package/src/models/components/credentialdocument.ts +231 -0
- package/src/models/components/datarequest.ts +274 -0
- package/src/models/components/expand.ts +22 -0
- package/src/models/components/facility.ts +20 -20
- package/src/models/components/index.ts +9 -0
- package/src/models/components/invoice.ts +4 -4
- package/src/models/components/invoiceitem.ts +126 -12
- package/src/models/components/product.ts +70 -0
- package/src/models/components/screeningresponse.ts +136 -0
- package/src/models/components/user.ts +4 -4
- package/src/models/components/vendor.ts +115 -9
- package/src/models/components/vendorcredentialdatarequest.ts +397 -0
- package/src/models/components/vendorcredentialfile.ts +354 -0
- package/src/models/components/vendorcredentialsummary.ts +501 -0
- package/src/models/components/vendorscan.ts +198 -0
- package/src/models/operations/addvendormanagedbycompany.ts +40 -31
- package/src/models/operations/changepassword.ts +23 -21
- package/src/models/operations/deletevendormanagedbycompany.ts +39 -37
- package/src/models/operations/expeditetimeremaining.ts +48 -37
- package/src/models/operations/getvendorcredentialdetails.ts +181 -0
- package/src/models/operations/index.ts +3 -1
- package/src/models/operations/listallwebhookendpoints.ts +42 -33
- package/src/models/operations/listvendoradditionalfacilityfields.ts +43 -39
- package/src/models/operations/listvendorcredentials.ts +46 -50
- package/src/models/operations/listvendorcredits.ts +29 -26
- package/src/models/operations/listvendorfacilitystatuses.ts +49 -38
- package/src/models/operations/listvendorinvoices.ts +34 -30
- package/src/models/operations/listvendormanagedbycompanies.ts +52 -44
- package/src/models/operations/listvendorscrubpackages.ts +4 -4
- package/src/models/operations/listvendorscrubpurchases.ts +50 -37
- package/src/models/operations/{logsuserintothesystem.ts → postauthenticate.ts} +65 -68
- package/src/models/operations/securityzonecheckin.ts +428 -4
- package/src/models/operations/updatesthewebhookendpointwiththegivenid.ts +97 -0
- package/src/models/operations/updatevendormanagedbycompany.ts +39 -37
- package/src/models/operations/vendorscanout.ts +23 -21
- package/src/react-query/index.ts +3 -1
- package/src/react-query/usersChangePassword.ts +1 -1
- package/src/react-query/{usersLogsUserIntoTheSystem.ts → usersPostAuthenticate.ts} +20 -20
- package/src/react-query/vendorScansVendorScanOut.ts +1 -1
- package/src/react-query/vendorsAddVendorManagedByCompany.ts +1 -1
- package/src/react-query/vendorsDeleteVendorManagedByCompany.ts +1 -1
- package/src/react-query/vendorsExpediteTimeRemaining.ts +1 -1
- package/src/react-query/vendorsGetVendorCredentialDetails.ts +223 -0
- package/src/react-query/vendorsUpdateVendorManagedByCompany.ts +1 -1
- package/src/react-query/webhooksListAllWebhookEndpoints.ts +1 -1
- package/src/react-query/webhooksUpdatesTheWebhookEndpointWithTheGivenId.ts +98 -0
- package/src/react-query/zonesSecurityZoneCheckin.ts +3 -3
- package/src/sdk/users.ts +6 -6
- package/src/sdk/vendors.ts +43 -4
- package/src/sdk/vendorscans.ts +1 -1
- package/src/sdk/webhooks.ts +19 -1
- package/src/sdk/zones.ts +2 -3
- package/dist/commonjs/funcs/usersLogsUserIntoTheSystem.d.ts.map +0 -1
- package/dist/commonjs/funcs/usersLogsUserIntoTheSystem.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/usersLogsUserIntoTheSystem.d.ts +0 -8
- package/dist/commonjs/mcp-server/tools/usersLogsUserIntoTheSystem.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/usersLogsUserIntoTheSystem.js.map +0 -1
- package/dist/commonjs/models/operations/logsuserintothesystem.d.ts +0 -98
- package/dist/commonjs/models/operations/logsuserintothesystem.d.ts.map +0 -1
- package/dist/commonjs/models/operations/logsuserintothesystem.js.map +0 -1
- package/dist/commonjs/react-query/usersLogsUserIntoTheSystem.d.ts.map +0 -1
- package/dist/commonjs/react-query/usersLogsUserIntoTheSystem.js.map +0 -1
- package/dist/esm/funcs/usersLogsUserIntoTheSystem.d.ts.map +0 -1
- package/dist/esm/funcs/usersLogsUserIntoTheSystem.js.map +0 -1
- package/dist/esm/mcp-server/tools/usersLogsUserIntoTheSystem.d.ts +0 -8
- package/dist/esm/mcp-server/tools/usersLogsUserIntoTheSystem.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/usersLogsUserIntoTheSystem.js.map +0 -1
- package/dist/esm/models/operations/logsuserintothesystem.d.ts +0 -98
- package/dist/esm/models/operations/logsuserintothesystem.d.ts.map +0 -1
- package/dist/esm/models/operations/logsuserintothesystem.js +0 -122
- package/dist/esm/models/operations/logsuserintothesystem.js.map +0 -1
- package/dist/esm/react-query/usersLogsUserIntoTheSystem.d.ts.map +0 -1
- package/dist/esm/react-query/usersLogsUserIntoTheSystem.js.map +0 -1
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export const DataType = {
|
|
13
|
+
File: "File",
|
|
14
|
+
Url: "URL",
|
|
15
|
+
ShortText: "Short Text",
|
|
16
|
+
LongText: "Long Text",
|
|
17
|
+
Date: "Date",
|
|
18
|
+
} as const;
|
|
19
|
+
export type DataType = ClosedEnum<typeof DataType>;
|
|
20
|
+
|
|
21
|
+
export type Url = {
|
|
22
|
+
value?: string | null | undefined;
|
|
23
|
+
func?: string | null | undefined;
|
|
24
|
+
expires?: string | null | undefined;
|
|
25
|
+
daysValid?: number | null | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export type DataRequestFile = {
|
|
29
|
+
fileName?: string | null | undefined;
|
|
30
|
+
contentType?: string | null | undefined;
|
|
31
|
+
fileSize?: number | null | undefined;
|
|
32
|
+
updatedAt?: string | null | undefined;
|
|
33
|
+
url?: string | null | undefined;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export type DataRequest = {
|
|
37
|
+
id?: number | undefined;
|
|
38
|
+
dataType?: DataType | undefined;
|
|
39
|
+
name?: string | null | undefined;
|
|
40
|
+
description?: string | null | undefined;
|
|
41
|
+
url?: Url | null | undefined;
|
|
42
|
+
file?: DataRequestFile | null | undefined;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const DataType$inboundSchema: z.ZodNativeEnum<typeof DataType> = z
|
|
47
|
+
.nativeEnum(DataType);
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const DataType$outboundSchema: z.ZodNativeEnum<typeof DataType> =
|
|
51
|
+
DataType$inboundSchema;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
56
|
+
*/
|
|
57
|
+
export namespace DataType$ {
|
|
58
|
+
/** @deprecated use `DataType$inboundSchema` instead. */
|
|
59
|
+
export const inboundSchema = DataType$inboundSchema;
|
|
60
|
+
/** @deprecated use `DataType$outboundSchema` instead. */
|
|
61
|
+
export const outboundSchema = DataType$outboundSchema;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/** @internal */
|
|
65
|
+
export const Url$inboundSchema: z.ZodType<Url, z.ZodTypeDef, unknown> = z
|
|
66
|
+
.object({
|
|
67
|
+
value: z.nullable(z.string()).optional(),
|
|
68
|
+
func: z.nullable(z.string()).optional(),
|
|
69
|
+
expires: z.nullable(z.string()).optional(),
|
|
70
|
+
days_valid: z.nullable(z.number().int()).optional(),
|
|
71
|
+
}).transform((v) => {
|
|
72
|
+
return remap$(v, {
|
|
73
|
+
"days_valid": "daysValid",
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
/** @internal */
|
|
78
|
+
export type Url$Outbound = {
|
|
79
|
+
value?: string | null | undefined;
|
|
80
|
+
func?: string | null | undefined;
|
|
81
|
+
expires?: string | null | undefined;
|
|
82
|
+
days_valid?: number | null | undefined;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
/** @internal */
|
|
86
|
+
export const Url$outboundSchema: z.ZodType<Url$Outbound, z.ZodTypeDef, Url> = z
|
|
87
|
+
.object({
|
|
88
|
+
value: z.nullable(z.string()).optional(),
|
|
89
|
+
func: z.nullable(z.string()).optional(),
|
|
90
|
+
expires: z.nullable(z.string()).optional(),
|
|
91
|
+
daysValid: z.nullable(z.number().int()).optional(),
|
|
92
|
+
}).transform((v) => {
|
|
93
|
+
return remap$(v, {
|
|
94
|
+
daysValid: "days_valid",
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* @internal
|
|
100
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
101
|
+
*/
|
|
102
|
+
export namespace Url$ {
|
|
103
|
+
/** @deprecated use `Url$inboundSchema` instead. */
|
|
104
|
+
export const inboundSchema = Url$inboundSchema;
|
|
105
|
+
/** @deprecated use `Url$outboundSchema` instead. */
|
|
106
|
+
export const outboundSchema = Url$outboundSchema;
|
|
107
|
+
/** @deprecated use `Url$Outbound` instead. */
|
|
108
|
+
export type Outbound = Url$Outbound;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function urlToJSON(url: Url): string {
|
|
112
|
+
return JSON.stringify(Url$outboundSchema.parse(url));
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function urlFromJSON(
|
|
116
|
+
jsonString: string,
|
|
117
|
+
): SafeParseResult<Url, SDKValidationError> {
|
|
118
|
+
return safeParse(
|
|
119
|
+
jsonString,
|
|
120
|
+
(x) => Url$inboundSchema.parse(JSON.parse(x)),
|
|
121
|
+
`Failed to parse 'Url' from JSON`,
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/** @internal */
|
|
126
|
+
export const DataRequestFile$inboundSchema: z.ZodType<
|
|
127
|
+
DataRequestFile,
|
|
128
|
+
z.ZodTypeDef,
|
|
129
|
+
unknown
|
|
130
|
+
> = z.object({
|
|
131
|
+
file_name: z.nullable(z.string()).optional(),
|
|
132
|
+
content_type: z.nullable(z.string()).optional(),
|
|
133
|
+
file_size: z.nullable(z.number().int()).optional(),
|
|
134
|
+
updated_at: z.nullable(z.string()).optional(),
|
|
135
|
+
url: z.nullable(z.string()).optional(),
|
|
136
|
+
}).transform((v) => {
|
|
137
|
+
return remap$(v, {
|
|
138
|
+
"file_name": "fileName",
|
|
139
|
+
"content_type": "contentType",
|
|
140
|
+
"file_size": "fileSize",
|
|
141
|
+
"updated_at": "updatedAt",
|
|
142
|
+
});
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
/** @internal */
|
|
146
|
+
export type DataRequestFile$Outbound = {
|
|
147
|
+
file_name?: string | null | undefined;
|
|
148
|
+
content_type?: string | null | undefined;
|
|
149
|
+
file_size?: number | null | undefined;
|
|
150
|
+
updated_at?: string | null | undefined;
|
|
151
|
+
url?: string | null | undefined;
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
/** @internal */
|
|
155
|
+
export const DataRequestFile$outboundSchema: z.ZodType<
|
|
156
|
+
DataRequestFile$Outbound,
|
|
157
|
+
z.ZodTypeDef,
|
|
158
|
+
DataRequestFile
|
|
159
|
+
> = z.object({
|
|
160
|
+
fileName: z.nullable(z.string()).optional(),
|
|
161
|
+
contentType: z.nullable(z.string()).optional(),
|
|
162
|
+
fileSize: z.nullable(z.number().int()).optional(),
|
|
163
|
+
updatedAt: z.nullable(z.string()).optional(),
|
|
164
|
+
url: z.nullable(z.string()).optional(),
|
|
165
|
+
}).transform((v) => {
|
|
166
|
+
return remap$(v, {
|
|
167
|
+
fileName: "file_name",
|
|
168
|
+
contentType: "content_type",
|
|
169
|
+
fileSize: "file_size",
|
|
170
|
+
updatedAt: "updated_at",
|
|
171
|
+
});
|
|
172
|
+
});
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* @internal
|
|
176
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
177
|
+
*/
|
|
178
|
+
export namespace DataRequestFile$ {
|
|
179
|
+
/** @deprecated use `DataRequestFile$inboundSchema` instead. */
|
|
180
|
+
export const inboundSchema = DataRequestFile$inboundSchema;
|
|
181
|
+
/** @deprecated use `DataRequestFile$outboundSchema` instead. */
|
|
182
|
+
export const outboundSchema = DataRequestFile$outboundSchema;
|
|
183
|
+
/** @deprecated use `DataRequestFile$Outbound` instead. */
|
|
184
|
+
export type Outbound = DataRequestFile$Outbound;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export function dataRequestFileToJSON(
|
|
188
|
+
dataRequestFile: DataRequestFile,
|
|
189
|
+
): string {
|
|
190
|
+
return JSON.stringify(DataRequestFile$outboundSchema.parse(dataRequestFile));
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export function dataRequestFileFromJSON(
|
|
194
|
+
jsonString: string,
|
|
195
|
+
): SafeParseResult<DataRequestFile, SDKValidationError> {
|
|
196
|
+
return safeParse(
|
|
197
|
+
jsonString,
|
|
198
|
+
(x) => DataRequestFile$inboundSchema.parse(JSON.parse(x)),
|
|
199
|
+
`Failed to parse 'DataRequestFile' from JSON`,
|
|
200
|
+
);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/** @internal */
|
|
204
|
+
export const DataRequest$inboundSchema: z.ZodType<
|
|
205
|
+
DataRequest,
|
|
206
|
+
z.ZodTypeDef,
|
|
207
|
+
unknown
|
|
208
|
+
> = z.object({
|
|
209
|
+
id: z.number().int().optional(),
|
|
210
|
+
data_type: DataType$inboundSchema.optional(),
|
|
211
|
+
name: z.nullable(z.string()).optional(),
|
|
212
|
+
description: z.nullable(z.string()).optional(),
|
|
213
|
+
url: z.nullable(z.lazy(() => Url$inboundSchema)).optional(),
|
|
214
|
+
file: z.nullable(z.lazy(() => DataRequestFile$inboundSchema)).optional(),
|
|
215
|
+
}).transform((v) => {
|
|
216
|
+
return remap$(v, {
|
|
217
|
+
"data_type": "dataType",
|
|
218
|
+
});
|
|
219
|
+
});
|
|
220
|
+
|
|
221
|
+
/** @internal */
|
|
222
|
+
export type DataRequest$Outbound = {
|
|
223
|
+
id?: number | undefined;
|
|
224
|
+
data_type?: string | undefined;
|
|
225
|
+
name?: string | null | undefined;
|
|
226
|
+
description?: string | null | undefined;
|
|
227
|
+
url?: Url$Outbound | null | undefined;
|
|
228
|
+
file?: DataRequestFile$Outbound | null | undefined;
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
/** @internal */
|
|
232
|
+
export const DataRequest$outboundSchema: z.ZodType<
|
|
233
|
+
DataRequest$Outbound,
|
|
234
|
+
z.ZodTypeDef,
|
|
235
|
+
DataRequest
|
|
236
|
+
> = z.object({
|
|
237
|
+
id: z.number().int().optional(),
|
|
238
|
+
dataType: DataType$outboundSchema.optional(),
|
|
239
|
+
name: z.nullable(z.string()).optional(),
|
|
240
|
+
description: z.nullable(z.string()).optional(),
|
|
241
|
+
url: z.nullable(z.lazy(() => Url$outboundSchema)).optional(),
|
|
242
|
+
file: z.nullable(z.lazy(() => DataRequestFile$outboundSchema)).optional(),
|
|
243
|
+
}).transform((v) => {
|
|
244
|
+
return remap$(v, {
|
|
245
|
+
dataType: "data_type",
|
|
246
|
+
});
|
|
247
|
+
});
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* @internal
|
|
251
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
252
|
+
*/
|
|
253
|
+
export namespace DataRequest$ {
|
|
254
|
+
/** @deprecated use `DataRequest$inboundSchema` instead. */
|
|
255
|
+
export const inboundSchema = DataRequest$inboundSchema;
|
|
256
|
+
/** @deprecated use `DataRequest$outboundSchema` instead. */
|
|
257
|
+
export const outboundSchema = DataRequest$outboundSchema;
|
|
258
|
+
/** @deprecated use `DataRequest$Outbound` instead. */
|
|
259
|
+
export type Outbound = DataRequest$Outbound;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
export function dataRequestToJSON(dataRequest: DataRequest): string {
|
|
263
|
+
return JSON.stringify(DataRequest$outboundSchema.parse(dataRequest));
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
export function dataRequestFromJSON(
|
|
267
|
+
jsonString: string,
|
|
268
|
+
): SafeParseResult<DataRequest, SDKValidationError> {
|
|
269
|
+
return safeParse(
|
|
270
|
+
jsonString,
|
|
271
|
+
(x) => DataRequest$inboundSchema.parse(JSON.parse(x)),
|
|
272
|
+
`Failed to parse 'DataRequest' from JSON`,
|
|
273
|
+
);
|
|
274
|
+
}
|
|
@@ -40,6 +40,28 @@ export const Expand = {
|
|
|
40
40
|
SupportArticleSupportCategory: "support_article.support_category",
|
|
41
41
|
InvoiceLineItems: "invoice.line_items",
|
|
42
42
|
InvoiceInvoiceTransactions: "invoice.invoice_transactions",
|
|
43
|
+
VendorCredentialCredential: "vendor_credential.credential",
|
|
44
|
+
VendorCredentialVendor: "vendor_credential.vendor",
|
|
45
|
+
VendorCredentialInvoice: "vendor_credential.invoice",
|
|
46
|
+
VendorCredentialVendorCredentialFiles:
|
|
47
|
+
"vendor_credential.vendor_credential_files",
|
|
48
|
+
VendorCredentialLatestVendorCredentialId:
|
|
49
|
+
"vendor_credential.latest_vendor_credential_id",
|
|
50
|
+
VendorCredentialPreviouslyApproved: "vendor_credential.previously_approved",
|
|
51
|
+
VendorCredentialUnsatisfiedDependencies:
|
|
52
|
+
"vendor_credential.unsatisfied_dependencies",
|
|
53
|
+
VendorCredentialAllowExpediting: "vendor_credential.allow_expediting",
|
|
54
|
+
VendorCredentialUnpaidExpeditedInvoiceId:
|
|
55
|
+
"vendor_credential.unpaid_expedited_invoice_id",
|
|
56
|
+
VendorCredentialExpeditedOffers: "vendor_credential.expedited_offers",
|
|
57
|
+
VendorCredentialBackgroundCheckResults:
|
|
58
|
+
"vendor_credential.background_check_results",
|
|
59
|
+
VendorCredentialVendorCredentialDefaultStatus:
|
|
60
|
+
"vendor_credential.vendor_credential_default_status",
|
|
61
|
+
VendorCredentialVendorCredentialDataRequests:
|
|
62
|
+
"vendor_credential.vendor_credential_data_requests",
|
|
63
|
+
VendorCredentialCredentialVariants: "vendor_credential.credential_variants",
|
|
64
|
+
VendorCredentialTargetsChop: "vendor_credential.targets_chop",
|
|
43
65
|
} as const;
|
|
44
66
|
/**
|
|
45
67
|
* An expansion scope that is valid for the object being requested.
|
|
@@ -48,23 +48,23 @@ export type Contacts = {
|
|
|
48
48
|
/**
|
|
49
49
|
* This object represents a contact at the system or facility level. Use it to verify vendors, create appointments, or check in visitors.
|
|
50
50
|
*/
|
|
51
|
-
contact?: Contact | undefined;
|
|
51
|
+
contact?: Contact | null | undefined;
|
|
52
52
|
/**
|
|
53
53
|
* This object represents a contact at the system or facility level. Use it to verify vendors, create appointments, or check in visitors.
|
|
54
54
|
*/
|
|
55
|
-
adminContact?: Contact | undefined;
|
|
55
|
+
adminContact?: Contact | null | undefined;
|
|
56
56
|
/**
|
|
57
57
|
* This object represents a contact at the system or facility level. Use it to verify vendors, create appointments, or check in visitors.
|
|
58
58
|
*/
|
|
59
|
-
techContact?: Contact | undefined;
|
|
59
|
+
techContact?: Contact | null | undefined;
|
|
60
60
|
/**
|
|
61
61
|
* This object represents a contact at the system or facility level. Use it to verify vendors, create appointments, or check in visitors.
|
|
62
62
|
*/
|
|
63
|
-
greenSecurityCsm?: Contact | undefined;
|
|
63
|
+
greenSecurityCsm?: Contact | null | undefined;
|
|
64
64
|
/**
|
|
65
65
|
* This object represents a contact at the system or facility level. Use it to verify vendors, create appointments, or check in visitors.
|
|
66
66
|
*/
|
|
67
|
-
accountManager?: Contact | undefined;
|
|
67
|
+
accountManager?: Contact | null | undefined;
|
|
68
68
|
};
|
|
69
69
|
|
|
70
70
|
export type VendorCounts = {
|
|
@@ -282,11 +282,11 @@ export const Contacts$inboundSchema: z.ZodType<
|
|
|
282
282
|
z.ZodTypeDef,
|
|
283
283
|
unknown
|
|
284
284
|
> = z.object({
|
|
285
|
-
contact: Contact$inboundSchema.optional(),
|
|
286
|
-
admin_contact: Contact$inboundSchema.optional(),
|
|
287
|
-
tech_contact: Contact$inboundSchema.optional(),
|
|
288
|
-
green_security_csm: Contact$inboundSchema.optional(),
|
|
289
|
-
account_manager: Contact$inboundSchema.optional(),
|
|
285
|
+
contact: z.nullable(Contact$inboundSchema).optional(),
|
|
286
|
+
admin_contact: z.nullable(Contact$inboundSchema).optional(),
|
|
287
|
+
tech_contact: z.nullable(Contact$inboundSchema).optional(),
|
|
288
|
+
green_security_csm: z.nullable(Contact$inboundSchema).optional(),
|
|
289
|
+
account_manager: z.nullable(Contact$inboundSchema).optional(),
|
|
290
290
|
}).transform((v) => {
|
|
291
291
|
return remap$(v, {
|
|
292
292
|
"admin_contact": "adminContact",
|
|
@@ -298,11 +298,11 @@ export const Contacts$inboundSchema: z.ZodType<
|
|
|
298
298
|
|
|
299
299
|
/** @internal */
|
|
300
300
|
export type Contacts$Outbound = {
|
|
301
|
-
contact?: Contact$Outbound | undefined;
|
|
302
|
-
admin_contact?: Contact$Outbound | undefined;
|
|
303
|
-
tech_contact?: Contact$Outbound | undefined;
|
|
304
|
-
green_security_csm?: Contact$Outbound | undefined;
|
|
305
|
-
account_manager?: Contact$Outbound | undefined;
|
|
301
|
+
contact?: Contact$Outbound | null | undefined;
|
|
302
|
+
admin_contact?: Contact$Outbound | null | undefined;
|
|
303
|
+
tech_contact?: Contact$Outbound | null | undefined;
|
|
304
|
+
green_security_csm?: Contact$Outbound | null | undefined;
|
|
305
|
+
account_manager?: Contact$Outbound | null | undefined;
|
|
306
306
|
};
|
|
307
307
|
|
|
308
308
|
/** @internal */
|
|
@@ -311,11 +311,11 @@ export const Contacts$outboundSchema: z.ZodType<
|
|
|
311
311
|
z.ZodTypeDef,
|
|
312
312
|
Contacts
|
|
313
313
|
> = z.object({
|
|
314
|
-
contact: Contact$outboundSchema.optional(),
|
|
315
|
-
adminContact: Contact$outboundSchema.optional(),
|
|
316
|
-
techContact: Contact$outboundSchema.optional(),
|
|
317
|
-
greenSecurityCsm: Contact$outboundSchema.optional(),
|
|
318
|
-
accountManager: Contact$outboundSchema.optional(),
|
|
314
|
+
contact: z.nullable(Contact$outboundSchema).optional(),
|
|
315
|
+
adminContact: z.nullable(Contact$outboundSchema).optional(),
|
|
316
|
+
techContact: z.nullable(Contact$outboundSchema).optional(),
|
|
317
|
+
greenSecurityCsm: z.nullable(Contact$outboundSchema).optional(),
|
|
318
|
+
accountManager: z.nullable(Contact$outboundSchema).optional(),
|
|
319
319
|
}).transform((v) => {
|
|
320
320
|
return remap$(v, {
|
|
321
321
|
adminContact: "admin_contact",
|
|
@@ -3,10 +3,14 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
export * from "./activestatus.js";
|
|
6
|
+
export * from "./backgroundcheckresult.js";
|
|
6
7
|
export * from "./company.js";
|
|
7
8
|
export * from "./contact.js";
|
|
9
|
+
export * from "./credential.js";
|
|
10
|
+
export * from "./credentialdocument.js";
|
|
8
11
|
export * from "./credentialstatus.js";
|
|
9
12
|
export * from "./credit.js";
|
|
13
|
+
export * from "./datarequest.js";
|
|
10
14
|
export * from "./department.js";
|
|
11
15
|
export * from "./departmentsummary.js";
|
|
12
16
|
export * from "./desc.js";
|
|
@@ -23,9 +27,11 @@ export * from "./loginrequirementsfromemail.js";
|
|
|
23
27
|
export * from "./mfarequiredresponse.js";
|
|
24
28
|
export * from "./pager.js";
|
|
25
29
|
export * from "./passwordrequiredresponse.js";
|
|
30
|
+
export * from "./product.js";
|
|
26
31
|
export * from "./productvariant.js";
|
|
27
32
|
export * from "./samlloginrequiredresponse.js";
|
|
28
33
|
export * from "./scantype.js";
|
|
34
|
+
export * from "./screeningresponse.js";
|
|
29
35
|
export * from "./security.js";
|
|
30
36
|
export * from "./state.js";
|
|
31
37
|
export * from "./subscription.js";
|
|
@@ -36,12 +42,15 @@ export * from "./user.js";
|
|
|
36
42
|
export * from "./userlocation.js";
|
|
37
43
|
export * from "./vendor.js";
|
|
38
44
|
export * from "./vendoradditionalfacilityfields.js";
|
|
45
|
+
export * from "./vendorcredentialdatarequest.js";
|
|
46
|
+
export * from "./vendorcredentialfile.js";
|
|
39
47
|
export * from "./vendorcredentialscontainer.js";
|
|
40
48
|
export * from "./vendorcredentialsummary.js";
|
|
41
49
|
export * from "./vendorfacilitystatusview.js";
|
|
42
50
|
export * from "./vendorjobtitle.js";
|
|
43
51
|
export * from "./vendormanagedbycompany.js";
|
|
44
52
|
export * from "./vendorrequiredcredential.js";
|
|
53
|
+
export * from "./vendorscan.js";
|
|
45
54
|
export * from "./vendorscrubdetails.js";
|
|
46
55
|
export * from "./vendorscrubpurchase.js";
|
|
47
56
|
export * from "./vendortype.js";
|
|
@@ -35,7 +35,7 @@ export type Invoice = {
|
|
|
35
35
|
convenienceFee?: number | null | undefined;
|
|
36
36
|
shipping?: number | null | undefined;
|
|
37
37
|
discount?: number | undefined;
|
|
38
|
-
|
|
38
|
+
lines?: Array<InvoiceItem> | null | undefined;
|
|
39
39
|
transactions?: Array<InvoiceTransaction> | null | undefined;
|
|
40
40
|
};
|
|
41
41
|
|
|
@@ -53,7 +53,7 @@ export const Invoice$inboundSchema: z.ZodType<Invoice, z.ZodTypeDef, unknown> =
|
|
|
53
53
|
convenience_fee: z.nullable(z.number()).optional(),
|
|
54
54
|
shipping: z.nullable(z.number().int()).optional(),
|
|
55
55
|
discount: z.number().int().optional(),
|
|
56
|
-
|
|
56
|
+
lines: z.nullable(z.array(InvoiceItem$inboundSchema)).optional(),
|
|
57
57
|
transactions: z.nullable(z.array(InvoiceTransaction$inboundSchema))
|
|
58
58
|
.optional(),
|
|
59
59
|
}).transform((v) => {
|
|
@@ -79,7 +79,7 @@ export type Invoice$Outbound = {
|
|
|
79
79
|
convenience_fee?: number | null | undefined;
|
|
80
80
|
shipping?: number | null | undefined;
|
|
81
81
|
discount?: number | undefined;
|
|
82
|
-
|
|
82
|
+
lines?: Array<InvoiceItem$Outbound> | null | undefined;
|
|
83
83
|
transactions?: Array<InvoiceTransaction$Outbound> | null | undefined;
|
|
84
84
|
};
|
|
85
85
|
|
|
@@ -100,7 +100,7 @@ export const Invoice$outboundSchema: z.ZodType<
|
|
|
100
100
|
convenienceFee: z.nullable(z.number()).optional(),
|
|
101
101
|
shipping: z.nullable(z.number().int()).optional(),
|
|
102
102
|
discount: z.number().int().optional(),
|
|
103
|
-
|
|
103
|
+
lines: z.nullable(z.array(InvoiceItem$outboundSchema)).optional(),
|
|
104
104
|
transactions: z.nullable(z.array(InvoiceTransaction$outboundSchema))
|
|
105
105
|
.optional(),
|
|
106
106
|
}).transform((v) => {
|
|
@@ -7,60 +7,171 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
Product,
|
|
12
|
+
Product$inboundSchema,
|
|
13
|
+
Product$Outbound,
|
|
14
|
+
Product$outboundSchema,
|
|
15
|
+
} from "./product.js";
|
|
16
|
+
import {
|
|
17
|
+
ProductVariant,
|
|
18
|
+
ProductVariant$inboundSchema,
|
|
19
|
+
ProductVariant$Outbound,
|
|
20
|
+
ProductVariant$outboundSchema,
|
|
21
|
+
} from "./productvariant.js";
|
|
22
|
+
|
|
23
|
+
export type Variant = ProductVariant | number;
|
|
24
|
+
|
|
25
|
+
export type InvoiceItemProduct = Product | number;
|
|
10
26
|
|
|
11
27
|
/**
|
|
12
28
|
* Reduced list of attributes of the Invoice line item record
|
|
13
29
|
*/
|
|
14
30
|
export type InvoiceItem = {
|
|
15
|
-
|
|
31
|
+
id?: number | undefined;
|
|
16
32
|
dateStarts?: string | null | undefined;
|
|
17
33
|
dateEnds?: string | null | undefined;
|
|
18
34
|
isSubscription?: boolean | null | undefined;
|
|
19
35
|
productTitle?: string | null | undefined;
|
|
20
|
-
|
|
36
|
+
title?: string | null | undefined;
|
|
21
37
|
quantity?: number | null | undefined;
|
|
22
38
|
unitPrice?: number | null | undefined;
|
|
23
39
|
subtotal?: number | null | undefined;
|
|
40
|
+
variant?: ProductVariant | number | null | undefined;
|
|
41
|
+
product?: Product | number | null | undefined;
|
|
24
42
|
};
|
|
25
43
|
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const Variant$inboundSchema: z.ZodType<Variant, z.ZodTypeDef, unknown> =
|
|
46
|
+
z.union([ProductVariant$inboundSchema, z.number().int()]);
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export type Variant$Outbound = ProductVariant$Outbound | number;
|
|
50
|
+
|
|
51
|
+
/** @internal */
|
|
52
|
+
export const Variant$outboundSchema: z.ZodType<
|
|
53
|
+
Variant$Outbound,
|
|
54
|
+
z.ZodTypeDef,
|
|
55
|
+
Variant
|
|
56
|
+
> = z.union([ProductVariant$outboundSchema, z.number().int()]);
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
61
|
+
*/
|
|
62
|
+
export namespace Variant$ {
|
|
63
|
+
/** @deprecated use `Variant$inboundSchema` instead. */
|
|
64
|
+
export const inboundSchema = Variant$inboundSchema;
|
|
65
|
+
/** @deprecated use `Variant$outboundSchema` instead. */
|
|
66
|
+
export const outboundSchema = Variant$outboundSchema;
|
|
67
|
+
/** @deprecated use `Variant$Outbound` instead. */
|
|
68
|
+
export type Outbound = Variant$Outbound;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function variantToJSON(variant: Variant): string {
|
|
72
|
+
return JSON.stringify(Variant$outboundSchema.parse(variant));
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function variantFromJSON(
|
|
76
|
+
jsonString: string,
|
|
77
|
+
): SafeParseResult<Variant, SDKValidationError> {
|
|
78
|
+
return safeParse(
|
|
79
|
+
jsonString,
|
|
80
|
+
(x) => Variant$inboundSchema.parse(JSON.parse(x)),
|
|
81
|
+
`Failed to parse 'Variant' from JSON`,
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/** @internal */
|
|
86
|
+
export const InvoiceItemProduct$inboundSchema: z.ZodType<
|
|
87
|
+
InvoiceItemProduct,
|
|
88
|
+
z.ZodTypeDef,
|
|
89
|
+
unknown
|
|
90
|
+
> = z.union([Product$inboundSchema, z.number().int()]);
|
|
91
|
+
|
|
92
|
+
/** @internal */
|
|
93
|
+
export type InvoiceItemProduct$Outbound = Product$Outbound | number;
|
|
94
|
+
|
|
95
|
+
/** @internal */
|
|
96
|
+
export const InvoiceItemProduct$outboundSchema: z.ZodType<
|
|
97
|
+
InvoiceItemProduct$Outbound,
|
|
98
|
+
z.ZodTypeDef,
|
|
99
|
+
InvoiceItemProduct
|
|
100
|
+
> = z.union([Product$outboundSchema, z.number().int()]);
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @internal
|
|
104
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
105
|
+
*/
|
|
106
|
+
export namespace InvoiceItemProduct$ {
|
|
107
|
+
/** @deprecated use `InvoiceItemProduct$inboundSchema` instead. */
|
|
108
|
+
export const inboundSchema = InvoiceItemProduct$inboundSchema;
|
|
109
|
+
/** @deprecated use `InvoiceItemProduct$outboundSchema` instead. */
|
|
110
|
+
export const outboundSchema = InvoiceItemProduct$outboundSchema;
|
|
111
|
+
/** @deprecated use `InvoiceItemProduct$Outbound` instead. */
|
|
112
|
+
export type Outbound = InvoiceItemProduct$Outbound;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function invoiceItemProductToJSON(
|
|
116
|
+
invoiceItemProduct: InvoiceItemProduct,
|
|
117
|
+
): string {
|
|
118
|
+
return JSON.stringify(
|
|
119
|
+
InvoiceItemProduct$outboundSchema.parse(invoiceItemProduct),
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export function invoiceItemProductFromJSON(
|
|
124
|
+
jsonString: string,
|
|
125
|
+
): SafeParseResult<InvoiceItemProduct, SDKValidationError> {
|
|
126
|
+
return safeParse(
|
|
127
|
+
jsonString,
|
|
128
|
+
(x) => InvoiceItemProduct$inboundSchema.parse(JSON.parse(x)),
|
|
129
|
+
`Failed to parse 'InvoiceItemProduct' from JSON`,
|
|
130
|
+
);
|
|
131
|
+
}
|
|
132
|
+
|
|
26
133
|
/** @internal */
|
|
27
134
|
export const InvoiceItem$inboundSchema: z.ZodType<
|
|
28
135
|
InvoiceItem,
|
|
29
136
|
z.ZodTypeDef,
|
|
30
137
|
unknown
|
|
31
138
|
> = z.object({
|
|
32
|
-
|
|
139
|
+
id: z.number().int().optional(),
|
|
33
140
|
date_starts: z.nullable(z.string()).optional(),
|
|
34
141
|
date_ends: z.nullable(z.string()).optional(),
|
|
35
142
|
is_subscription: z.nullable(z.boolean()).optional(),
|
|
36
143
|
product_title: z.nullable(z.string()).optional(),
|
|
37
|
-
|
|
144
|
+
title: z.nullable(z.string()).optional(),
|
|
38
145
|
quantity: z.nullable(z.number()).optional(),
|
|
39
146
|
unit_price: z.nullable(z.number().int()).optional(),
|
|
40
147
|
subtotal: z.nullable(z.number().int()).optional(),
|
|
148
|
+
variant: z.nullable(z.union([ProductVariant$inboundSchema, z.number().int()]))
|
|
149
|
+
.optional(),
|
|
150
|
+
product: z.nullable(z.union([Product$inboundSchema, z.number().int()]))
|
|
151
|
+
.optional(),
|
|
41
152
|
}).transform((v) => {
|
|
42
153
|
return remap$(v, {
|
|
43
|
-
"item_id": "itemId",
|
|
44
154
|
"date_starts": "dateStarts",
|
|
45
155
|
"date_ends": "dateEnds",
|
|
46
156
|
"is_subscription": "isSubscription",
|
|
47
157
|
"product_title": "productTitle",
|
|
48
|
-
"item_title": "itemTitle",
|
|
49
158
|
"unit_price": "unitPrice",
|
|
50
159
|
});
|
|
51
160
|
});
|
|
52
161
|
|
|
53
162
|
/** @internal */
|
|
54
163
|
export type InvoiceItem$Outbound = {
|
|
55
|
-
|
|
164
|
+
id?: number | undefined;
|
|
56
165
|
date_starts?: string | null | undefined;
|
|
57
166
|
date_ends?: string | null | undefined;
|
|
58
167
|
is_subscription?: boolean | null | undefined;
|
|
59
168
|
product_title?: string | null | undefined;
|
|
60
|
-
|
|
169
|
+
title?: string | null | undefined;
|
|
61
170
|
quantity?: number | null | undefined;
|
|
62
171
|
unit_price?: number | null | undefined;
|
|
63
172
|
subtotal?: number | null | undefined;
|
|
173
|
+
variant?: ProductVariant$Outbound | number | null | undefined;
|
|
174
|
+
product?: Product$Outbound | number | null | undefined;
|
|
64
175
|
};
|
|
65
176
|
|
|
66
177
|
/** @internal */
|
|
@@ -69,23 +180,26 @@ export const InvoiceItem$outboundSchema: z.ZodType<
|
|
|
69
180
|
z.ZodTypeDef,
|
|
70
181
|
InvoiceItem
|
|
71
182
|
> = z.object({
|
|
72
|
-
|
|
183
|
+
id: z.number().int().optional(),
|
|
73
184
|
dateStarts: z.nullable(z.string()).optional(),
|
|
74
185
|
dateEnds: z.nullable(z.string()).optional(),
|
|
75
186
|
isSubscription: z.nullable(z.boolean()).optional(),
|
|
76
187
|
productTitle: z.nullable(z.string()).optional(),
|
|
77
|
-
|
|
188
|
+
title: z.nullable(z.string()).optional(),
|
|
78
189
|
quantity: z.nullable(z.number()).optional(),
|
|
79
190
|
unitPrice: z.nullable(z.number().int()).optional(),
|
|
80
191
|
subtotal: z.nullable(z.number().int()).optional(),
|
|
192
|
+
variant: z.nullable(
|
|
193
|
+
z.union([ProductVariant$outboundSchema, z.number().int()]),
|
|
194
|
+
).optional(),
|
|
195
|
+
product: z.nullable(z.union([Product$outboundSchema, z.number().int()]))
|
|
196
|
+
.optional(),
|
|
81
197
|
}).transform((v) => {
|
|
82
198
|
return remap$(v, {
|
|
83
|
-
itemId: "item_id",
|
|
84
199
|
dateStarts: "date_starts",
|
|
85
200
|
dateEnds: "date_ends",
|
|
86
201
|
isSubscription: "is_subscription",
|
|
87
202
|
productTitle: "product_title",
|
|
88
|
-
itemTitle: "item_title",
|
|
89
203
|
unitPrice: "unit_price",
|
|
90
204
|
});
|
|
91
205
|
});
|