@greensecurity/javascript-sdk 0.15.1 → 0.17.0
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 +68 -30
- package/README.md +74 -19
- package/bin/mcp-server.js +1494 -215
- package/bin/mcp-server.js.map +56 -34
- package/funcs/organizationsListOrSearchFacilities.d.ts +4 -1
- package/funcs/organizationsListOrSearchFacilities.d.ts.map +1 -1
- package/funcs/organizationsListOrSearchFacilities.js +47 -10
- package/funcs/organizationsListOrSearchFacilities.js.map +1 -1
- package/funcs/supportArticlesGetSupportArticle.d.ts +25 -0
- package/funcs/supportArticlesGetSupportArticle.d.ts.map +1 -0
- package/funcs/supportArticlesGetSupportArticle.js +132 -0
- package/funcs/supportArticlesGetSupportArticle.js.map +1 -0
- package/funcs/supportArticlesListOrSearchSupportArticles.d.ts +19 -0
- package/funcs/supportArticlesListOrSearchSupportArticles.d.ts.map +1 -0
- package/funcs/supportArticlesListOrSearchSupportArticles.js +153 -0
- package/funcs/supportArticlesListOrSearchSupportArticles.js.map +1 -0
- package/funcs/{userGetCurrentUser.d.ts → usersGetCurrentUser.d.ts} +2 -2
- package/funcs/usersGetCurrentUser.d.ts.map +1 -0
- package/funcs/{userGetCurrentUser.js → usersGetCurrentUser.js} +3 -3
- package/funcs/usersGetCurrentUser.js.map +1 -0
- package/funcs/{userGetUserById.d.ts → usersGetUserById.d.ts} +2 -2
- package/funcs/usersGetUserById.d.ts.map +1 -0
- package/funcs/{userGetUserById.js → usersGetUserById.js} +3 -3
- package/funcs/usersGetUserById.js.map +1 -0
- package/funcs/{userLogsUserIntoTheSystem.d.ts → usersLogsUserIntoTheSystem.d.ts} +2 -2
- package/funcs/usersLogsUserIntoTheSystem.d.ts.map +1 -0
- package/funcs/{userLogsUserIntoTheSystem.js → usersLogsUserIntoTheSystem.js} +3 -3
- package/funcs/usersLogsUserIntoTheSystem.js.map +1 -0
- package/funcs/{userMagiclink.d.ts → usersMagiclink.d.ts} +2 -2
- package/funcs/usersMagiclink.d.ts.map +1 -0
- package/funcs/{userMagiclink.js → usersMagiclink.js} +4 -4
- package/funcs/usersMagiclink.js.map +1 -0
- package/funcs/{userPassword.d.ts → usersPassword.d.ts} +2 -2
- package/funcs/usersPassword.d.ts.map +1 -0
- package/funcs/{userPassword.js → usersPassword.js} +4 -4
- package/funcs/usersPassword.js.map +1 -0
- package/funcs/{userPasswordResetRequest.d.ts → usersPasswordResetRequest.d.ts} +2 -2
- package/funcs/usersPasswordResetRequest.d.ts.map +1 -0
- package/funcs/{userPasswordResetRequest.js → usersPasswordResetRequest.js} +4 -4
- package/funcs/usersPasswordResetRequest.js.map +1 -0
- package/funcs/vendorsCreateVendorRegistration.d.ts +1 -1
- package/funcs/vendorsCreateVendorRegistration.d.ts.map +1 -1
- package/funcs/vendorsCreateVendorRegistration.js +2 -1
- package/funcs/vendorsCreateVendorRegistration.js.map +1 -1
- package/funcs/vendorsExpediteTimeRemaining.d.ts +17 -0
- package/funcs/vendorsExpediteTimeRemaining.d.ts.map +1 -0
- package/funcs/vendorsExpediteTimeRemaining.js +120 -0
- package/funcs/vendorsExpediteTimeRemaining.js.map +1 -0
- package/funcs/vendorsListVendorCredentials.d.ts +16 -0
- package/funcs/vendorsListVendorCredentials.d.ts.map +1 -0
- package/funcs/vendorsListVendorCredentials.js +124 -0
- package/funcs/vendorsListVendorCredentials.js.map +1 -0
- package/funcs/vendorsListVendorInvoices.d.ts +24 -0
- package/funcs/vendorsListVendorInvoices.d.ts.map +1 -0
- package/funcs/vendorsListVendorInvoices.js +166 -0
- package/funcs/vendorsListVendorInvoices.js.map +1 -0
- package/funcs/vendorsListVendorJobTitles.d.ts +4 -1
- package/funcs/vendorsListVendorJobTitles.d.ts.map +1 -1
- package/funcs/vendorsListVendorJobTitles.js +39 -6
- package/funcs/vendorsListVendorJobTitles.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +23 -13
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/organizationsListOrSearchFacilities.js +1 -1
- package/mcp-server/tools/organizationsListOrSearchFacilities.js.map +1 -1
- package/mcp-server/tools/supportArticlesGetSupportArticle.d.ts +8 -0
- package/mcp-server/tools/supportArticlesGetSupportArticle.d.ts.map +1 -0
- package/mcp-server/tools/supportArticlesGetSupportArticle.js +71 -0
- package/mcp-server/tools/supportArticlesGetSupportArticle.js.map +1 -0
- package/mcp-server/tools/supportArticlesListOrSearchSupportArticles.d.ts +8 -0
- package/mcp-server/tools/supportArticlesListOrSearchSupportArticles.d.ts.map +1 -0
- package/mcp-server/tools/supportArticlesListOrSearchSupportArticles.js +64 -0
- package/mcp-server/tools/supportArticlesListOrSearchSupportArticles.js.map +1 -0
- package/mcp-server/tools/usersGetCurrentUser.d.ts +3 -0
- package/mcp-server/tools/usersGetCurrentUser.d.ts.map +1 -0
- package/mcp-server/tools/usersGetCurrentUser.js +26 -0
- package/mcp-server/tools/usersGetCurrentUser.js.map +1 -0
- package/mcp-server/tools/usersGetUserById.d.ts +8 -0
- package/mcp-server/tools/usersGetUserById.d.ts.map +1 -0
- package/mcp-server/tools/usersGetUserById.js +64 -0
- package/mcp-server/tools/usersGetUserById.js.map +1 -0
- package/mcp-server/tools/usersLogsUserIntoTheSystem.d.ts +8 -0
- package/mcp-server/tools/usersLogsUserIntoTheSystem.d.ts.map +1 -0
- package/mcp-server/tools/usersLogsUserIntoTheSystem.js +94 -0
- package/mcp-server/tools/usersLogsUserIntoTheSystem.js.map +1 -0
- package/mcp-server/tools/usersMagiclink.d.ts +8 -0
- package/mcp-server/tools/usersMagiclink.d.ts.map +1 -0
- package/mcp-server/tools/usersMagiclink.js +64 -0
- package/mcp-server/tools/usersMagiclink.js.map +1 -0
- package/mcp-server/tools/usersPassword.d.ts +8 -0
- package/mcp-server/tools/usersPassword.d.ts.map +1 -0
- package/mcp-server/tools/usersPassword.js +65 -0
- package/mcp-server/tools/usersPassword.js.map +1 -0
- package/mcp-server/tools/usersPasswordResetRequest.d.ts +8 -0
- package/mcp-server/tools/usersPasswordResetRequest.d.ts.map +1 -0
- package/mcp-server/tools/usersPasswordResetRequest.js +64 -0
- package/mcp-server/tools/usersPasswordResetRequest.js.map +1 -0
- package/mcp-server/tools/vendorsExpediteTimeRemaining.d.ts +8 -0
- package/mcp-server/tools/vendorsExpediteTimeRemaining.d.ts.map +1 -0
- package/mcp-server/tools/vendorsExpediteTimeRemaining.js +64 -0
- package/mcp-server/tools/vendorsExpediteTimeRemaining.js.map +1 -0
- package/mcp-server/tools/vendorsListVendorCredentials.d.ts +8 -0
- package/mcp-server/tools/vendorsListVendorCredentials.d.ts.map +1 -0
- package/mcp-server/tools/vendorsListVendorCredentials.js +64 -0
- package/mcp-server/tools/vendorsListVendorCredentials.js.map +1 -0
- package/mcp-server/tools/vendorsListVendorInvoices.d.ts +8 -0
- package/mcp-server/tools/vendorsListVendorInvoices.d.ts.map +1 -0
- package/mcp-server/tools/vendorsListVendorInvoices.js +68 -0
- package/mcp-server/tools/vendorsListVendorInvoices.js.map +1 -0
- package/mcp-server/tools/vendorsListVendorJobTitles.js +1 -1
- package/mcp-server/tools/vendorsListVendorJobTitles.js.map +1 -1
- package/models/components/{status.d.ts → activestatus.d.ts} +8 -8
- package/models/components/activestatus.d.ts.map +1 -0
- package/models/components/{status.js → activestatus.js} +12 -13
- package/models/components/activestatus.js.map +1 -0
- package/models/components/contact.d.ts +8 -8
- package/models/components/contact.d.ts.map +1 -1
- package/models/components/contact.js +14 -13
- package/models/components/contact.js.map +1 -1
- package/models/components/credentialstatus.d.ts +49 -0
- package/models/components/credentialstatus.d.ts.map +1 -0
- package/models/components/credentialstatus.js +68 -0
- package/models/components/credentialstatus.js.map +1 -0
- package/models/components/expand.d.ts +15 -0
- package/models/components/expand.d.ts.map +1 -1
- package/models/components/expand.js +5 -0
- package/models/components/expand.js.map +1 -1
- package/models/components/index.d.ts +7 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +7 -1
- package/models/components/index.js.map +1 -1
- package/models/components/invoice.d.ts +43 -0
- package/models/components/invoice.d.ts.map +1 -0
- package/models/components/invoice.js +91 -0
- package/models/components/invoice.js.map +1 -0
- package/models/components/invoiceitem.d.ts +40 -0
- package/models/components/invoiceitem.d.ts.map +1 -0
- package/models/components/invoiceitem.js +94 -0
- package/models/components/invoiceitem.js.map +1 -0
- package/models/components/supportarticle.d.ts +43 -0
- package/models/components/supportarticle.d.ts.map +1 -0
- package/models/components/supportarticle.js +92 -0
- package/models/components/supportarticle.js.map +1 -0
- package/models/components/vendorcredentialslim.d.ts +44 -0
- package/models/components/vendorcredentialslim.d.ts.map +1 -0
- package/models/components/vendorcredentialslim.js +94 -0
- package/models/components/vendorcredentialslim.js.map +1 -0
- package/models/components/vendorrequiredcredential.d.ts +42 -0
- package/models/components/vendorrequiredcredential.d.ts.map +1 -0
- package/models/components/vendorrequiredcredential.js +96 -0
- package/models/components/vendorrequiredcredential.js.map +1 -0
- package/models/operations/createvendorregistration.d.ts +13 -13
- package/models/operations/createvendorregistration.d.ts.map +1 -1
- package/models/operations/createvendorregistration.js +18 -16
- package/models/operations/createvendorregistration.js.map +1 -1
- package/models/operations/expeditetimeremaining.d.ts +60 -0
- package/models/operations/expeditetimeremaining.d.ts.map +1 -0
- package/models/operations/expeditetimeremaining.js +113 -0
- package/models/operations/expeditetimeremaining.js.map +1 -0
- package/models/operations/getsupportarticle.d.ts +38 -0
- package/models/operations/getsupportarticle.d.ts.map +1 -0
- package/models/operations/getsupportarticle.js +72 -0
- package/models/operations/getsupportarticle.js.map +1 -0
- package/models/operations/index.d.ts +5 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +5 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listorsearchfacilities.d.ts +40 -15
- package/models/operations/listorsearchfacilities.d.ts.map +1 -1
- package/models/operations/listorsearchfacilities.js +55 -18
- package/models/operations/listorsearchfacilities.js.map +1 -1
- package/models/operations/listorsearchsupportarticles.d.ts +106 -0
- package/models/operations/listorsearchsupportarticles.d.ts.map +1 -0
- package/models/operations/listorsearchsupportarticles.js +149 -0
- package/models/operations/listorsearchsupportarticles.js.map +1 -0
- package/models/operations/listvendorcredentials.d.ts +122 -0
- package/models/operations/listvendorcredentials.d.ts.map +1 -0
- package/models/operations/listvendorcredentials.js +169 -0
- package/models/operations/listvendorcredentials.js.map +1 -0
- package/models/operations/listvendorinvoices.d.ts +116 -0
- package/models/operations/listvendorinvoices.d.ts.map +1 -0
- package/models/operations/listvendorinvoices.js +155 -0
- package/models/operations/listvendorinvoices.js.map +1 -0
- package/models/operations/listvendorjobtitles.d.ts +38 -13
- package/models/operations/listvendorjobtitles.d.ts.map +1 -1
- package/models/operations/listvendorjobtitles.js +51 -16
- package/models/operations/listvendorjobtitles.js.map +1 -1
- package/models/operations/magiclink.d.ts +13 -13
- package/models/operations/magiclink.d.ts.map +1 -1
- package/models/operations/magiclink.js +16 -16
- package/models/operations/magiclink.js.map +1 -1
- package/models/operations/password.d.ts +13 -13
- package/models/operations/password.d.ts.map +1 -1
- package/models/operations/password.js +16 -16
- package/models/operations/password.js.map +1 -1
- package/models/operations/passwordresetrequest.d.ts +13 -13
- package/models/operations/passwordresetrequest.d.ts.map +1 -1
- package/models/operations/passwordresetrequest.js +16 -16
- package/models/operations/passwordresetrequest.js.map +1 -1
- package/package.json +1 -1
- package/react-query/index.d.ts +11 -6
- package/react-query/index.d.ts.map +1 -1
- package/react-query/index.js +11 -6
- package/react-query/index.js.map +1 -1
- package/react-query/organizationsListOrSearchFacilities.d.ts +57 -6
- package/react-query/organizationsListOrSearchFacilities.d.ts.map +1 -1
- package/react-query/organizationsListOrSearchFacilities.js +90 -1
- package/react-query/organizationsListOrSearchFacilities.js.map +1 -1
- package/react-query/supportArticlesGetSupportArticle.d.ts +57 -0
- package/react-query/supportArticlesGetSupportArticle.d.ts.map +1 -0
- package/react-query/supportArticlesGetSupportArticle.js +113 -0
- package/react-query/supportArticlesGetSupportArticle.js.map +1 -0
- package/react-query/supportArticlesListOrSearchSupportArticles.d.ts +75 -0
- package/react-query/supportArticlesListOrSearchSupportArticles.d.ts.map +1 -0
- package/react-query/supportArticlesListOrSearchSupportArticles.js +159 -0
- package/react-query/supportArticlesListOrSearchSupportArticles.js.map +1 -0
- package/react-query/usersGetCurrentUser.d.ts +29 -0
- package/react-query/usersGetCurrentUser.d.ts.map +1 -0
- package/react-query/usersGetCurrentUser.js +75 -0
- package/react-query/usersGetCurrentUser.js.map +1 -0
- package/react-query/usersGetUserById.d.ts +31 -0
- package/react-query/usersGetUserById.d.ts.map +1 -0
- package/react-query/usersGetUserById.js +87 -0
- package/react-query/usersGetUserById.js.map +1 -0
- package/react-query/{userLogsUserIntoTheSystem.d.ts → usersLogsUserIntoTheSystem.d.ts} +7 -7
- package/react-query/usersLogsUserIntoTheSystem.d.ts.map +1 -0
- package/react-query/{userLogsUserIntoTheSystem.js → usersLogsUserIntoTheSystem.js} +13 -13
- package/react-query/usersLogsUserIntoTheSystem.js.map +1 -0
- package/react-query/usersMagiclink.d.ts +23 -0
- package/react-query/usersMagiclink.d.ts.map +1 -0
- package/react-query/{userMagiclink.js → usersMagiclink.js} +13 -13
- package/react-query/usersMagiclink.js.map +1 -0
- package/react-query/usersPassword.d.ts +24 -0
- package/react-query/usersPassword.d.ts.map +1 -0
- package/react-query/{userPassword.js → usersPassword.js} +13 -13
- package/react-query/usersPassword.js.map +1 -0
- package/react-query/usersPasswordResetRequest.d.ts +23 -0
- package/react-query/usersPasswordResetRequest.d.ts.map +1 -0
- package/react-query/{userPasswordResetRequest.js → usersPasswordResetRequest.js} +13 -13
- package/react-query/usersPasswordResetRequest.js.map +1 -0
- package/react-query/vendorsCreateVendorRegistration.d.ts +1 -1
- package/react-query/vendorsCreateVendorRegistration.d.ts.map +1 -1
- package/react-query/vendorsExpediteTimeRemaining.d.ts +30 -0
- package/react-query/vendorsExpediteTimeRemaining.d.ts.map +1 -0
- package/react-query/vendorsExpediteTimeRemaining.js +96 -0
- package/react-query/vendorsExpediteTimeRemaining.js.map +1 -0
- package/react-query/vendorsListVendorCredentials.d.ts +55 -0
- package/react-query/vendorsListVendorCredentials.d.ts.map +1 -0
- package/react-query/vendorsListVendorCredentials.js +103 -0
- package/react-query/vendorsListVendorCredentials.js.map +1 -0
- package/react-query/vendorsListVendorInvoices.d.ts +96 -0
- package/react-query/vendorsListVendorInvoices.d.ts.map +1 -0
- package/react-query/vendorsListVendorInvoices.js +178 -0
- package/react-query/vendorsListVendorInvoices.js.map +1 -0
- package/react-query/vendorsListVendorJobTitles.d.ts +28 -3
- package/react-query/vendorsListVendorJobTitles.d.ts.map +1 -1
- package/react-query/vendorsListVendorJobTitles.js +59 -0
- package/react-query/vendorsListVendorJobTitles.js.map +1 -1
- package/sdk/organizations.d.ts +4 -1
- package/sdk/organizations.d.ts.map +1 -1
- package/sdk/organizations.js +2 -1
- package/sdk/organizations.js.map +1 -1
- package/sdk/sdk.d.ts +6 -3
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +7 -3
- package/sdk/sdk.js.map +1 -1
- package/sdk/supportarticles.d.ts +30 -0
- package/sdk/supportarticles.d.ts.map +1 -0
- package/sdk/supportarticles.js +40 -0
- package/sdk/supportarticles.js.map +1 -0
- package/sdk/{user.d.ts → users.d.ts} +5 -5
- package/sdk/users.d.ts.map +1 -0
- package/sdk/{user.js → users.js} +16 -16
- package/sdk/users.js.map +1 -0
- package/sdk/vendors.d.ts +32 -2
- package/sdk/vendors.d.ts.map +1 -1
- package/sdk/vendors.js +36 -1
- package/sdk/vendors.js.map +1 -1
- package/src/__tests__/organizations.test.ts +5 -175
- package/src/__tests__/supportarticles.test.ts +64 -0
- package/src/__tests__/user.test.ts +13 -7
- package/src/__tests__/vendors.test.ts +65 -2
- package/src/funcs/organizationsListOrSearchFacilities.ts +116 -39
- package/src/funcs/supportArticlesGetSupportArticle.ts +181 -0
- package/src/funcs/supportArticlesListOrSearchSupportArticles.ts +234 -0
- package/src/funcs/{userGetCurrentUser.ts → usersGetCurrentUser.ts} +1 -1
- package/src/funcs/{userGetUserById.ts → usersGetUserById.ts} +1 -1
- package/src/funcs/{userLogsUserIntoTheSystem.ts → usersLogsUserIntoTheSystem.ts} +1 -1
- package/src/funcs/{userMagiclink.ts → usersMagiclink.ts} +5 -5
- package/src/funcs/{userPassword.ts → usersPassword.ts} +5 -5
- package/src/funcs/{userPasswordResetRequest.ts → usersPasswordResetRequest.ts} +8 -5
- package/src/funcs/vendorsCreateVendorRegistration.ts +8 -4
- package/src/funcs/vendorsExpediteTimeRemaining.ts +171 -0
- package/src/funcs/vendorsListVendorCredentials.ts +169 -0
- package/src/funcs/vendorsListVendorInvoices.ts +255 -0
- package/src/funcs/vendorsListVendorJobTitles.ts +101 -30
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +23 -13
- package/src/mcp-server/tools/organizationsListOrSearchFacilities.ts +1 -1
- package/src/mcp-server/tools/supportArticlesGetSupportArticle.ts +46 -0
- package/src/mcp-server/tools/supportArticlesListOrSearchSupportArticles.ts +39 -0
- package/src/mcp-server/tools/{userGetCurrentUser.ts → usersGetCurrentUser.ts} +4 -4
- package/src/mcp-server/tools/{userGetUserById.ts → usersGetUserById.ts} +4 -4
- package/src/mcp-server/tools/{userLogsUserIntoTheSystem.ts → usersLogsUserIntoTheSystem.ts} +4 -4
- package/src/mcp-server/tools/{userMagiclink.ts → usersMagiclink.ts} +4 -4
- package/src/mcp-server/tools/{userPassword.ts → usersPassword.ts} +4 -4
- package/src/mcp-server/tools/{userPasswordResetRequest.ts → usersPasswordResetRequest.ts} +4 -4
- package/src/mcp-server/tools/vendorsExpediteTimeRemaining.ts +37 -0
- package/src/mcp-server/tools/vendorsListVendorCredentials.ts +37 -0
- package/src/mcp-server/tools/vendorsListVendorInvoices.ts +41 -0
- package/src/mcp-server/tools/vendorsListVendorJobTitles.ts +1 -1
- package/src/models/components/activestatus.ts +38 -0
- package/src/models/components/contact.ts +14 -16
- package/src/models/components/credentialstatus.ts +44 -0
- package/src/models/components/expand.ts +5 -0
- package/src/models/components/index.ts +7 -1
- package/src/models/components/invoice.ts +99 -0
- package/src/models/components/invoiceitem.ts +98 -0
- package/src/models/components/supportarticle.ts +99 -0
- package/src/models/components/vendorcredentialslim.ts +106 -0
- package/src/models/components/vendorrequiredcredential.ts +106 -0
- package/src/models/operations/createvendorregistration.ts +39 -32
- package/src/models/operations/expeditetimeremaining.ts +152 -0
- package/src/models/operations/getsupportarticle.ts +77 -0
- package/src/models/operations/index.ts +5 -0
- package/src/models/operations/listorsearchfacilities.ts +118 -34
- package/src/models/operations/listorsearchsupportarticles.ts +261 -0
- package/src/models/operations/listvendorcredentials.ts +281 -0
- package/src/models/operations/listvendorinvoices.ts +252 -0
- package/src/models/operations/listvendorjobtitles.ts +99 -22
- package/src/models/operations/magiclink.ts +21 -21
- package/src/models/operations/password.ts +21 -21
- package/src/models/operations/passwordresetrequest.ts +39 -31
- package/src/react-query/index.ts +11 -6
- package/src/react-query/organizationsListOrSearchFacilities.ts +183 -5
- package/src/react-query/supportArticlesGetSupportArticle.ts +192 -0
- package/src/react-query/supportArticlesListOrSearchSupportArticles.ts +349 -0
- package/src/react-query/{userGetCurrentUser.ts → usersGetCurrentUser.ts} +27 -27
- package/src/react-query/{userGetUserById.ts → usersGetUserById.ts} +31 -29
- package/src/react-query/{userLogsUserIntoTheSystem.ts → usersLogsUserIntoTheSystem.ts} +18 -18
- package/src/react-query/{userMagiclink.ts → usersMagiclink.ts} +18 -18
- package/src/react-query/{userPassword.ts → usersPassword.ts} +18 -18
- package/src/react-query/{userPasswordResetRequest.ts → usersPasswordResetRequest.ts} +19 -19
- package/src/react-query/vendorsCreateVendorRegistration.ts +1 -1
- package/src/react-query/vendorsExpediteTimeRemaining.ts +165 -0
- package/src/react-query/vendorsListVendorCredentials.ts +200 -0
- package/src/react-query/vendorsListVendorInvoices.ts +364 -0
- package/src/react-query/vendorsListVendorJobTitles.ts +149 -1
- package/src/sdk/organizations.ts +5 -2
- package/src/sdk/sdk.ts +10 -4
- package/src/sdk/supportarticles.ts +59 -0
- package/src/sdk/{user.ts → users.ts} +16 -16
- package/src/sdk/vendors.ts +68 -3
- package/funcs/userGetCurrentUser.d.ts.map +0 -1
- package/funcs/userGetCurrentUser.js.map +0 -1
- package/funcs/userGetUserById.d.ts.map +0 -1
- package/funcs/userGetUserById.js.map +0 -1
- package/funcs/userLogsUserIntoTheSystem.d.ts.map +0 -1
- package/funcs/userLogsUserIntoTheSystem.js.map +0 -1
- package/funcs/userMagiclink.d.ts.map +0 -1
- package/funcs/userMagiclink.js.map +0 -1
- package/funcs/userPassword.d.ts.map +0 -1
- package/funcs/userPassword.js.map +0 -1
- package/funcs/userPasswordResetRequest.d.ts.map +0 -1
- package/funcs/userPasswordResetRequest.js.map +0 -1
- package/models/components/status.d.ts.map +0 -1
- package/models/components/status.js.map +0 -1
- package/react-query/userGetCurrentUser.d.ts +0 -29
- package/react-query/userGetCurrentUser.d.ts.map +0 -1
- package/react-query/userGetCurrentUser.js +0 -75
- package/react-query/userGetCurrentUser.js.map +0 -1
- package/react-query/userGetUserById.d.ts +0 -31
- package/react-query/userGetUserById.d.ts.map +0 -1
- package/react-query/userGetUserById.js +0 -87
- package/react-query/userGetUserById.js.map +0 -1
- package/react-query/userLogsUserIntoTheSystem.d.ts.map +0 -1
- package/react-query/userLogsUserIntoTheSystem.js.map +0 -1
- package/react-query/userMagiclink.d.ts +0 -23
- package/react-query/userMagiclink.d.ts.map +0 -1
- package/react-query/userMagiclink.js.map +0 -1
- package/react-query/userPassword.d.ts +0 -24
- package/react-query/userPassword.d.ts.map +0 -1
- package/react-query/userPassword.js.map +0 -1
- package/react-query/userPasswordResetRequest.d.ts +0 -23
- package/react-query/userPasswordResetRequest.d.ts.map +0 -1
- package/react-query/userPasswordResetRequest.js.map +0 -1
- package/sdk/user.d.ts.map +0 -1
- package/sdk/user.js.map +0 -1
- package/src/models/components/status.ts +0 -38
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,+CAA6B;AAC7B,+CAA6B;AAC7B,yDAAuC;AACvC,4CAA0B;AAC1B,8CAA4B;AAC5B,gDAA8B;AAC9B,uDAAqC;AACrC,gDAA8B;AAC9B,6DAA2C;AAC3C,kEAAgD;AAChD,2DAAyC;AACzC,6CAA2B;AAC3B,gEAA8C;AAC9C,iEAA+C;AAC/C,gDAA8B;AAC9B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,oDAAkC;AAClC,+CAA6B;AAC7B,+CAA6B;AAC7B,wDAAsC;AACtC,yDAAuC;AACvC,4CAA0B;AAC1B,8CAA4B;AAC5B,gDAA8B;AAC9B,uDAAqC;AACrC,gDAA8B;AAC9B,+CAA6B;AAC7B,mDAAiC;AACjC,6DAA2C;AAC3C,kEAAgD;AAChD,2DAAyC;AACzC,6CAA2B;AAC3B,gEAA8C;AAC9C,iEAA+C;AAC/C,gDAA8B;AAC9B,sDAAoC;AACpC,qDAAmC;AACnC,4CAA0B;AAC1B,4DAA0C;AAC1C,sDAAoC;AACpC,gEAA8C;AAC9C,kDAAgC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { InvoiceItem, InvoiceItem$Outbound } from "./invoiceitem.js";
|
|
5
|
+
/**
|
|
6
|
+
* A simplified representation of an Invoice
|
|
7
|
+
*/
|
|
8
|
+
export type Invoice = {
|
|
9
|
+
id: number;
|
|
10
|
+
invoiceNumber?: string | null | undefined;
|
|
11
|
+
amount?: number | null | undefined;
|
|
12
|
+
status?: string | null | undefined;
|
|
13
|
+
financialStatus?: string | null | undefined;
|
|
14
|
+
items?: Array<InvoiceItem> | undefined;
|
|
15
|
+
};
|
|
16
|
+
/** @internal */
|
|
17
|
+
export declare const Invoice$inboundSchema: z.ZodType<Invoice, z.ZodTypeDef, unknown>;
|
|
18
|
+
/** @internal */
|
|
19
|
+
export type Invoice$Outbound = {
|
|
20
|
+
id: number;
|
|
21
|
+
invoice_number?: string | null | undefined;
|
|
22
|
+
amount?: number | null | undefined;
|
|
23
|
+
status?: string | null | undefined;
|
|
24
|
+
financial_status?: string | null | undefined;
|
|
25
|
+
items?: Array<InvoiceItem$Outbound> | undefined;
|
|
26
|
+
};
|
|
27
|
+
/** @internal */
|
|
28
|
+
export declare const Invoice$outboundSchema: z.ZodType<Invoice$Outbound, z.ZodTypeDef, Invoice>;
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
32
|
+
*/
|
|
33
|
+
export declare namespace Invoice$ {
|
|
34
|
+
/** @deprecated use `Invoice$inboundSchema` instead. */
|
|
35
|
+
const inboundSchema: z.ZodType<Invoice, z.ZodTypeDef, unknown>;
|
|
36
|
+
/** @deprecated use `Invoice$outboundSchema` instead. */
|
|
37
|
+
const outboundSchema: z.ZodType<Invoice$Outbound, z.ZodTypeDef, Invoice>;
|
|
38
|
+
/** @deprecated use `Invoice$Outbound` instead. */
|
|
39
|
+
type Outbound = Invoice$Outbound;
|
|
40
|
+
}
|
|
41
|
+
export declare function invoiceToJSON(invoice: Invoice): string;
|
|
42
|
+
export declare function invoiceFromJSON(jsonString: string): SafeParseResult<Invoice, SDKValidationError>;
|
|
43
|
+
//# sourceMappingURL=invoice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoice.d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sBAAsB,EAAE,CAAC,CAAC,OAAO,CAC5C,gBAAgB,EAChB,CAAC,CAAC,UAAU,EACZ,OAAO,CAaP,CAAC;AAEH;;;GAGG;AACH,yBAAiB,QAAQ,CAAC;IACxB,uDAAuD;IAChD,MAAM,aAAa,2CAAwB,CAAC;IACnD,wDAAwD;IACjD,MAAM,cAAc,oDAAyB,CAAC;IACrD,kDAAkD;IAClD,KAAY,QAAQ,GAAG,gBAAgB,CAAC;CACzC;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAEtD;AAED,wBAAgB,eAAe,CAC7B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAM9C"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Invoice$ = exports.Invoice$outboundSchema = exports.Invoice$inboundSchema = void 0;
|
|
40
|
+
exports.invoiceToJSON = invoiceToJSON;
|
|
41
|
+
exports.invoiceFromJSON = invoiceFromJSON;
|
|
42
|
+
const z = __importStar(require("zod"));
|
|
43
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
44
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
45
|
+
const invoiceitem_js_1 = require("./invoiceitem.js");
|
|
46
|
+
/** @internal */
|
|
47
|
+
exports.Invoice$inboundSchema = z.object({
|
|
48
|
+
id: z.number().int(),
|
|
49
|
+
invoice_number: z.nullable(z.string()).optional(),
|
|
50
|
+
amount: z.nullable(z.number().int()).optional(),
|
|
51
|
+
status: z.nullable(z.string()).optional(),
|
|
52
|
+
financial_status: z.nullable(z.string()).optional(),
|
|
53
|
+
items: z.array(invoiceitem_js_1.InvoiceItem$inboundSchema).optional(),
|
|
54
|
+
}).transform((v) => {
|
|
55
|
+
return (0, primitives_js_1.remap)(v, {
|
|
56
|
+
"invoice_number": "invoiceNumber",
|
|
57
|
+
"financial_status": "financialStatus",
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
/** @internal */
|
|
61
|
+
exports.Invoice$outboundSchema = z.object({
|
|
62
|
+
id: z.number().int(),
|
|
63
|
+
invoiceNumber: z.nullable(z.string()).optional(),
|
|
64
|
+
amount: z.nullable(z.number().int()).optional(),
|
|
65
|
+
status: z.nullable(z.string()).optional(),
|
|
66
|
+
financialStatus: z.nullable(z.string()).optional(),
|
|
67
|
+
items: z.array(invoiceitem_js_1.InvoiceItem$outboundSchema).optional(),
|
|
68
|
+
}).transform((v) => {
|
|
69
|
+
return (0, primitives_js_1.remap)(v, {
|
|
70
|
+
invoiceNumber: "invoice_number",
|
|
71
|
+
financialStatus: "financial_status",
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
/**
|
|
75
|
+
* @internal
|
|
76
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
77
|
+
*/
|
|
78
|
+
var Invoice$;
|
|
79
|
+
(function (Invoice$) {
|
|
80
|
+
/** @deprecated use `Invoice$inboundSchema` instead. */
|
|
81
|
+
Invoice$.inboundSchema = exports.Invoice$inboundSchema;
|
|
82
|
+
/** @deprecated use `Invoice$outboundSchema` instead. */
|
|
83
|
+
Invoice$.outboundSchema = exports.Invoice$outboundSchema;
|
|
84
|
+
})(Invoice$ || (exports.Invoice$ = Invoice$ = {}));
|
|
85
|
+
function invoiceToJSON(invoice) {
|
|
86
|
+
return JSON.stringify(exports.Invoice$outboundSchema.parse(invoice));
|
|
87
|
+
}
|
|
88
|
+
function invoiceFromJSON(jsonString) {
|
|
89
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Invoice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Invoice' from JSON`);
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=invoice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoice.js","sourceRoot":"","sources":["../../src/models/components/invoice.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoFH,sCAEC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AAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACzC,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAClD,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,2CAA0B,CAAC,CAAC,QAAQ,EAAE;CACtD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,aAAa,EAAE,gBAAgB;QAC/B,eAAe,EAAE,kBAAkB;KACpC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,QAAQ,CAOxB;AAPD,WAAiB,QAAQ;IACvB,uDAAuD;IAC1C,sBAAa,GAAG,6BAAqB,CAAC;IACnD,wDAAwD;IAC3C,uBAAc,GAAG,8BAAsB,CAAC;AAGvD,CAAC,EAPgB,QAAQ,wBAAR,QAAQ,QAOxB;AAED,SAAgB,aAAa,CAAC,OAAgB;IAC5C,OAAO,IAAI,CAAC,SAAS,CAAC,8BAAsB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,SAAgB,eAAe,CAC7B,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,6BAAqB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjD,qCAAqC,CACtC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
/**
|
|
5
|
+
* Reduced list of attributes of the Invoice line item record
|
|
6
|
+
*/
|
|
7
|
+
export type InvoiceItem = {
|
|
8
|
+
itemId?: number | undefined;
|
|
9
|
+
dateStarts?: string | null | undefined;
|
|
10
|
+
dateEnds?: string | null | undefined;
|
|
11
|
+
isSubscription?: boolean | null | undefined;
|
|
12
|
+
productTitle?: string | null | undefined;
|
|
13
|
+
};
|
|
14
|
+
/** @internal */
|
|
15
|
+
export declare const InvoiceItem$inboundSchema: z.ZodType<InvoiceItem, z.ZodTypeDef, unknown>;
|
|
16
|
+
/** @internal */
|
|
17
|
+
export type InvoiceItem$Outbound = {
|
|
18
|
+
item_id?: number | undefined;
|
|
19
|
+
date_starts?: string | null | undefined;
|
|
20
|
+
date_ends?: string | null | undefined;
|
|
21
|
+
is_subscription?: boolean | null | undefined;
|
|
22
|
+
product_title?: string | null | undefined;
|
|
23
|
+
};
|
|
24
|
+
/** @internal */
|
|
25
|
+
export declare const InvoiceItem$outboundSchema: z.ZodType<InvoiceItem$Outbound, z.ZodTypeDef, InvoiceItem>;
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
29
|
+
*/
|
|
30
|
+
export declare namespace InvoiceItem$ {
|
|
31
|
+
/** @deprecated use `InvoiceItem$inboundSchema` instead. */
|
|
32
|
+
const inboundSchema: z.ZodType<InvoiceItem, z.ZodTypeDef, unknown>;
|
|
33
|
+
/** @deprecated use `InvoiceItem$outboundSchema` instead. */
|
|
34
|
+
const outboundSchema: z.ZodType<InvoiceItem$Outbound, z.ZodTypeDef, InvoiceItem>;
|
|
35
|
+
/** @deprecated use `InvoiceItem$Outbound` instead. */
|
|
36
|
+
type Outbound = InvoiceItem$Outbound;
|
|
37
|
+
}
|
|
38
|
+
export declare function invoiceItemToJSON(invoiceItem: InvoiceItem): string;
|
|
39
|
+
export declare function invoiceItemFromJSON(jsonString: string): SafeParseResult<InvoiceItem, SDKValidationError>;
|
|
40
|
+
//# sourceMappingURL=invoiceitem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoiceitem.d.ts","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AAa,+CAA4B,CAAC;IACvD,4DAA4D;IACrD,MAAM,cAAc,4DAA6B,CAAC;IACzD,sDAAsD;IACtD,KAAY,QAAQ,GAAG,oBAAoB,CAAC;CAC7C;AAED,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAElE;AAED,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAMlD"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.InvoiceItem$ = exports.InvoiceItem$outboundSchema = exports.InvoiceItem$inboundSchema = void 0;
|
|
40
|
+
exports.invoiceItemToJSON = invoiceItemToJSON;
|
|
41
|
+
exports.invoiceItemFromJSON = invoiceItemFromJSON;
|
|
42
|
+
const z = __importStar(require("zod"));
|
|
43
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
44
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
45
|
+
/** @internal */
|
|
46
|
+
exports.InvoiceItem$inboundSchema = z.object({
|
|
47
|
+
item_id: z.number().int().optional(),
|
|
48
|
+
date_starts: z.nullable(z.string()).optional(),
|
|
49
|
+
date_ends: z.nullable(z.string()).optional(),
|
|
50
|
+
is_subscription: z.nullable(z.boolean()).optional(),
|
|
51
|
+
product_title: z.nullable(z.string()).optional(),
|
|
52
|
+
}).transform((v) => {
|
|
53
|
+
return (0, primitives_js_1.remap)(v, {
|
|
54
|
+
"item_id": "itemId",
|
|
55
|
+
"date_starts": "dateStarts",
|
|
56
|
+
"date_ends": "dateEnds",
|
|
57
|
+
"is_subscription": "isSubscription",
|
|
58
|
+
"product_title": "productTitle",
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
/** @internal */
|
|
62
|
+
exports.InvoiceItem$outboundSchema = z.object({
|
|
63
|
+
itemId: z.number().int().optional(),
|
|
64
|
+
dateStarts: z.nullable(z.string()).optional(),
|
|
65
|
+
dateEnds: z.nullable(z.string()).optional(),
|
|
66
|
+
isSubscription: z.nullable(z.boolean()).optional(),
|
|
67
|
+
productTitle: z.nullable(z.string()).optional(),
|
|
68
|
+
}).transform((v) => {
|
|
69
|
+
return (0, primitives_js_1.remap)(v, {
|
|
70
|
+
itemId: "item_id",
|
|
71
|
+
dateStarts: "date_starts",
|
|
72
|
+
dateEnds: "date_ends",
|
|
73
|
+
isSubscription: "is_subscription",
|
|
74
|
+
productTitle: "product_title",
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
/**
|
|
78
|
+
* @internal
|
|
79
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
80
|
+
*/
|
|
81
|
+
var InvoiceItem$;
|
|
82
|
+
(function (InvoiceItem$) {
|
|
83
|
+
/** @deprecated use `InvoiceItem$inboundSchema` instead. */
|
|
84
|
+
InvoiceItem$.inboundSchema = exports.InvoiceItem$inboundSchema;
|
|
85
|
+
/** @deprecated use `InvoiceItem$outboundSchema` instead. */
|
|
86
|
+
InvoiceItem$.outboundSchema = exports.InvoiceItem$outboundSchema;
|
|
87
|
+
})(InvoiceItem$ || (exports.InvoiceItem$ = InvoiceItem$ = {}));
|
|
88
|
+
function invoiceItemToJSON(invoiceItem) {
|
|
89
|
+
return JSON.stringify(exports.InvoiceItem$outboundSchema.parse(invoiceItem));
|
|
90
|
+
}
|
|
91
|
+
function invoiceItemFromJSON(jsonString) {
|
|
92
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.InvoiceItem$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InvoiceItem' from JSON`);
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=invoiceitem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoiceitem.js","sourceRoot":"","sources":["../../src/models/components/invoiceitem.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmFH,8CAEC;AAED,kDAQC;AA7FD,uCAAyB;AACzB,2DAA0D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,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAChD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,MAAM,EAAE,SAAS;QACjB,UAAU,EAAE,aAAa;QACzB,QAAQ,EAAE,WAAW;QACrB,cAAc,EAAE,iBAAiB;QACjC,YAAY,EAAE,eAAe;KAC9B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,YAAY,CAO5B;AAPD,WAAiB,YAAY;IAC3B,2DAA2D;IAC9C,0BAAa,GAAG,iCAAyB,CAAC;IACvD,4DAA4D;IAC/C,2BAAc,GAAG,kCAA0B,CAAC;AAG3D,CAAC,EAPgB,YAAY,4BAAZ,YAAY,QAO5B;AAED,SAAgB,iBAAiB,CAAC,WAAwB;IACxD,OAAO,IAAI,CAAC,SAAS,CAAC,kCAA0B,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;AACvE,CAAC;AAED,SAAgB,mBAAmB,CACjC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,iCAAyB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrD,yCAAyC,CAC1C,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type SupportArticle = {
|
|
5
|
+
id: number;
|
|
6
|
+
title: string | null;
|
|
7
|
+
description?: string | null | undefined;
|
|
8
|
+
content?: string | null | undefined;
|
|
9
|
+
published?: boolean | null | undefined;
|
|
10
|
+
notes?: string | null | undefined;
|
|
11
|
+
videoUrl?: string | null | undefined;
|
|
12
|
+
category?: string | null | undefined;
|
|
13
|
+
};
|
|
14
|
+
/** @internal */
|
|
15
|
+
export declare const SupportArticle$inboundSchema: z.ZodType<SupportArticle, z.ZodTypeDef, unknown>;
|
|
16
|
+
/** @internal */
|
|
17
|
+
export type SupportArticle$Outbound = {
|
|
18
|
+
id: number;
|
|
19
|
+
title: string | null;
|
|
20
|
+
description?: string | null | undefined;
|
|
21
|
+
content?: string | null | undefined;
|
|
22
|
+
published?: boolean | null | undefined;
|
|
23
|
+
notes?: string | null | undefined;
|
|
24
|
+
video_url?: string | null | undefined;
|
|
25
|
+
category?: string | null | undefined;
|
|
26
|
+
};
|
|
27
|
+
/** @internal */
|
|
28
|
+
export declare const SupportArticle$outboundSchema: z.ZodType<SupportArticle$Outbound, z.ZodTypeDef, SupportArticle>;
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
32
|
+
*/
|
|
33
|
+
export declare namespace SupportArticle$ {
|
|
34
|
+
/** @deprecated use `SupportArticle$inboundSchema` instead. */
|
|
35
|
+
const inboundSchema: z.ZodType<SupportArticle, z.ZodTypeDef, unknown>;
|
|
36
|
+
/** @deprecated use `SupportArticle$outboundSchema` instead. */
|
|
37
|
+
const outboundSchema: z.ZodType<SupportArticle$Outbound, z.ZodTypeDef, SupportArticle>;
|
|
38
|
+
/** @deprecated use `SupportArticle$Outbound` instead. */
|
|
39
|
+
type Outbound = SupportArticle$Outbound;
|
|
40
|
+
}
|
|
41
|
+
export declare function supportArticleToJSON(supportArticle: SupportArticle): string;
|
|
42
|
+
export declare function supportArticleFromJSON(jsonString: string): SafeParseResult<SupportArticle, SDKValidationError>;
|
|
43
|
+
//# sourceMappingURL=supportarticle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supportarticle.d.ts","sourceRoot":"","sources":["../../src/models/components/supportarticle.ts"],"names":[],"mappings":"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AS,CAAC;CACtC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,cAAc,CAcd,CAAC;AAEH;;;GAGG;AACH,yBAAiB,eAAe,CAAC;IAC/B,8DAA8D;IACvD,MAAM,aAAa,kDAA+B,CAAC;IAC1D,+DAA+D;IACxD,MAAM,cAAc,kEAAgC,CAAC;IAC5D,yDAAyD;IACzD,KAAY,QAAQ,GAAG,uBAAuB,CAAC;CAChD;AAED,wBAAgB,oBAAoB,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,CAE3E;AAED,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAMrD"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.SupportArticle$ = exports.SupportArticle$outboundSchema = exports.SupportArticle$inboundSchema = void 0;
|
|
40
|
+
exports.supportArticleToJSON = supportArticleToJSON;
|
|
41
|
+
exports.supportArticleFromJSON = supportArticleFromJSON;
|
|
42
|
+
const z = __importStar(require("zod"));
|
|
43
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
44
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
45
|
+
/** @internal */
|
|
46
|
+
exports.SupportArticle$inboundSchema = z.object({
|
|
47
|
+
id: z.number().int(),
|
|
48
|
+
title: z.nullable(z.string()),
|
|
49
|
+
description: z.nullable(z.string()).optional(),
|
|
50
|
+
content: z.nullable(z.string()).optional(),
|
|
51
|
+
published: z.nullable(z.boolean()).optional(),
|
|
52
|
+
notes: z.nullable(z.string()).optional(),
|
|
53
|
+
video_url: z.nullable(z.string()).optional(),
|
|
54
|
+
category: z.nullable(z.string()).optional(),
|
|
55
|
+
}).transform((v) => {
|
|
56
|
+
return (0, primitives_js_1.remap)(v, {
|
|
57
|
+
"video_url": "videoUrl",
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
/** @internal */
|
|
61
|
+
exports.SupportArticle$outboundSchema = z.object({
|
|
62
|
+
id: z.number().int(),
|
|
63
|
+
title: z.nullable(z.string()),
|
|
64
|
+
description: z.nullable(z.string()).optional(),
|
|
65
|
+
content: z.nullable(z.string()).optional(),
|
|
66
|
+
published: z.nullable(z.boolean()).optional(),
|
|
67
|
+
notes: z.nullable(z.string()).optional(),
|
|
68
|
+
videoUrl: z.nullable(z.string()).optional(),
|
|
69
|
+
category: z.nullable(z.string()).optional(),
|
|
70
|
+
}).transform((v) => {
|
|
71
|
+
return (0, primitives_js_1.remap)(v, {
|
|
72
|
+
videoUrl: "video_url",
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
/**
|
|
76
|
+
* @internal
|
|
77
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
78
|
+
*/
|
|
79
|
+
var SupportArticle$;
|
|
80
|
+
(function (SupportArticle$) {
|
|
81
|
+
/** @deprecated use `SupportArticle$inboundSchema` instead. */
|
|
82
|
+
SupportArticle$.inboundSchema = exports.SupportArticle$inboundSchema;
|
|
83
|
+
/** @deprecated use `SupportArticle$outboundSchema` instead. */
|
|
84
|
+
SupportArticle$.outboundSchema = exports.SupportArticle$outboundSchema;
|
|
85
|
+
})(SupportArticle$ || (exports.SupportArticle$ = SupportArticle$ = {}));
|
|
86
|
+
function supportArticleToJSON(supportArticle) {
|
|
87
|
+
return JSON.stringify(exports.SupportArticle$outboundSchema.parse(supportArticle));
|
|
88
|
+
}
|
|
89
|
+
function supportArticleFromJSON(jsonString) {
|
|
90
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SupportArticle$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SupportArticle' from JSON`);
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=supportarticle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supportarticle.js","sourceRoot":"","sources":["../../src/models/components/supportarticle.ts"],"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AC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxD,4CAA4C,CAC7C,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
/**
|
|
5
|
+
* Reduced list of attributes of Vendor Credential record
|
|
6
|
+
*/
|
|
7
|
+
export type VendorCredentialSlim = {
|
|
8
|
+
id: number;
|
|
9
|
+
status: string;
|
|
10
|
+
companyId: number;
|
|
11
|
+
dateDue: string;
|
|
12
|
+
dateExpires: string;
|
|
13
|
+
notes: string;
|
|
14
|
+
expedited: boolean;
|
|
15
|
+
};
|
|
16
|
+
/** @internal */
|
|
17
|
+
export declare const VendorCredentialSlim$inboundSchema: z.ZodType<VendorCredentialSlim, z.ZodTypeDef, unknown>;
|
|
18
|
+
/** @internal */
|
|
19
|
+
export type VendorCredentialSlim$Outbound = {
|
|
20
|
+
id: number;
|
|
21
|
+
status: string;
|
|
22
|
+
company_id: number;
|
|
23
|
+
date_due: string;
|
|
24
|
+
date_expires: string;
|
|
25
|
+
notes: string;
|
|
26
|
+
expedited: boolean;
|
|
27
|
+
};
|
|
28
|
+
/** @internal */
|
|
29
|
+
export declare const VendorCredentialSlim$outboundSchema: z.ZodType<VendorCredentialSlim$Outbound, z.ZodTypeDef, VendorCredentialSlim>;
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
33
|
+
*/
|
|
34
|
+
export declare namespace VendorCredentialSlim$ {
|
|
35
|
+
/** @deprecated use `VendorCredentialSlim$inboundSchema` instead. */
|
|
36
|
+
const inboundSchema: z.ZodType<VendorCredentialSlim, z.ZodTypeDef, unknown>;
|
|
37
|
+
/** @deprecated use `VendorCredentialSlim$outboundSchema` instead. */
|
|
38
|
+
const outboundSchema: z.ZodType<VendorCredentialSlim$Outbound, z.ZodTypeDef, VendorCredentialSlim>;
|
|
39
|
+
/** @deprecated use `VendorCredentialSlim$Outbound` instead. */
|
|
40
|
+
type Outbound = VendorCredentialSlim$Outbound;
|
|
41
|
+
}
|
|
42
|
+
export declare function vendorCredentialSlimToJSON(vendorCredentialSlim: VendorCredentialSlim): string;
|
|
43
|
+
export declare function vendorCredentialSlimFromJSON(jsonString: string): SafeParseResult<VendorCredentialSlim, SDKValidationError>;
|
|
44
|
+
//# sourceMappingURL=vendorcredentialslim.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendorcredentialslim.d.ts","sourceRoot":"","sources":["../../src/models/components/vendorcredentialslim.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,OAAO,CAeP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,6BAA6B,GAAG;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,oBAAoB,CAepB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,qBAAqB,CAAC;IACrC,oEAAoE;IAC7D,MAAM,aAAa,wDAAqC,CAAC;IAChE,qEAAqE;IAC9D,MAAM,cAAc,8EAAsC,CAAC;IAClE,+DAA+D;IAC/D,KAAY,QAAQ,GAAG,6BAA6B,CAAC;CACtD;AAED,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR;AAED,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAM3D"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.VendorCredentialSlim$ = exports.VendorCredentialSlim$outboundSchema = exports.VendorCredentialSlim$inboundSchema = void 0;
|
|
40
|
+
exports.vendorCredentialSlimToJSON = vendorCredentialSlimToJSON;
|
|
41
|
+
exports.vendorCredentialSlimFromJSON = vendorCredentialSlimFromJSON;
|
|
42
|
+
const z = __importStar(require("zod"));
|
|
43
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
44
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
45
|
+
/** @internal */
|
|
46
|
+
exports.VendorCredentialSlim$inboundSchema = z.object({
|
|
47
|
+
id: z.number().int(),
|
|
48
|
+
status: z.string(),
|
|
49
|
+
company_id: z.number().int(),
|
|
50
|
+
date_due: z.string(),
|
|
51
|
+
date_expires: z.string(),
|
|
52
|
+
notes: z.string(),
|
|
53
|
+
expedited: z.boolean(),
|
|
54
|
+
}).transform((v) => {
|
|
55
|
+
return (0, primitives_js_1.remap)(v, {
|
|
56
|
+
"company_id": "companyId",
|
|
57
|
+
"date_due": "dateDue",
|
|
58
|
+
"date_expires": "dateExpires",
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
/** @internal */
|
|
62
|
+
exports.VendorCredentialSlim$outboundSchema = z.object({
|
|
63
|
+
id: z.number().int(),
|
|
64
|
+
status: z.string(),
|
|
65
|
+
companyId: z.number().int(),
|
|
66
|
+
dateDue: z.string(),
|
|
67
|
+
dateExpires: z.string(),
|
|
68
|
+
notes: z.string(),
|
|
69
|
+
expedited: z.boolean(),
|
|
70
|
+
}).transform((v) => {
|
|
71
|
+
return (0, primitives_js_1.remap)(v, {
|
|
72
|
+
companyId: "company_id",
|
|
73
|
+
dateDue: "date_due",
|
|
74
|
+
dateExpires: "date_expires",
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
/**
|
|
78
|
+
* @internal
|
|
79
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
80
|
+
*/
|
|
81
|
+
var VendorCredentialSlim$;
|
|
82
|
+
(function (VendorCredentialSlim$) {
|
|
83
|
+
/** @deprecated use `VendorCredentialSlim$inboundSchema` instead. */
|
|
84
|
+
VendorCredentialSlim$.inboundSchema = exports.VendorCredentialSlim$inboundSchema;
|
|
85
|
+
/** @deprecated use `VendorCredentialSlim$outboundSchema` instead. */
|
|
86
|
+
VendorCredentialSlim$.outboundSchema = exports.VendorCredentialSlim$outboundSchema;
|
|
87
|
+
})(VendorCredentialSlim$ || (exports.VendorCredentialSlim$ = VendorCredentialSlim$ = {}));
|
|
88
|
+
function vendorCredentialSlimToJSON(vendorCredentialSlim) {
|
|
89
|
+
return JSON.stringify(exports.VendorCredentialSlim$outboundSchema.parse(vendorCredentialSlim));
|
|
90
|
+
}
|
|
91
|
+
function vendorCredentialSlimFromJSON(jsonString) {
|
|
92
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.VendorCredentialSlim$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VendorCredentialSlim' from JSON`);
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=vendorcredentialslim.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendorcredentialslim.js","sourceRoot":"","sources":["../../src/models/components/vendorcredentialslim.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuFH,gEAMC;AAED,oEAQC;AArGD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAiBjD,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACpB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC5B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;CACvB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,YAAY,EAAE,WAAW;QACzB,UAAU,EAAE,SAAS;QACrB,cAAc,EAAE,aAAa;KAC9B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAaH,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACpB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC3B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;CACvB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,YAAY;QACvB,OAAO,EAAE,UAAU;QACnB,WAAW,EAAE,cAAc;KAC5B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,qBAAqB,CAOrC;AAPD,WAAiB,qBAAqB;IACpC,oEAAoE;IACvD,mCAAa,GAAG,0CAAkC,CAAC;IAChE,qEAAqE;IACxD,oCAAc,GAAG,2CAAmC,CAAC;AAGpE,CAAC,EAPgB,qBAAqB,qCAArB,qBAAqB,QAOrC;AAED,SAAgB,0BAA0B,CACxC,oBAA0C;IAE1C,OAAO,IAAI,CAAC,SAAS,CACnB,2CAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AACJ,CAAC;AAED,SAAgB,4BAA4B,CAC1C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0CAAkC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9D,kDAAkD,CACnD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
/**
|
|
5
|
+
* A simplified representation of a VendorRequiredCredential, typically used in list views.
|
|
6
|
+
*/
|
|
7
|
+
export type VendorRequiredCredential = {
|
|
8
|
+
id: number;
|
|
9
|
+
vendorId: number;
|
|
10
|
+
facilityId?: number | null | undefined;
|
|
11
|
+
credentialIds: string | null;
|
|
12
|
+
dateCalculated: string;
|
|
13
|
+
companyCredentialIds: string | null;
|
|
14
|
+
};
|
|
15
|
+
/** @internal */
|
|
16
|
+
export declare const VendorRequiredCredential$inboundSchema: z.ZodType<VendorRequiredCredential, z.ZodTypeDef, unknown>;
|
|
17
|
+
/** @internal */
|
|
18
|
+
export type VendorRequiredCredential$Outbound = {
|
|
19
|
+
id: number;
|
|
20
|
+
vendor_id: number;
|
|
21
|
+
facility_id?: number | null | undefined;
|
|
22
|
+
credential_ids: string | null;
|
|
23
|
+
date_calculated: string;
|
|
24
|
+
company_credential_ids: string | null;
|
|
25
|
+
};
|
|
26
|
+
/** @internal */
|
|
27
|
+
export declare const VendorRequiredCredential$outboundSchema: z.ZodType<VendorRequiredCredential$Outbound, z.ZodTypeDef, VendorRequiredCredential>;
|
|
28
|
+
/**
|
|
29
|
+
* @internal
|
|
30
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
31
|
+
*/
|
|
32
|
+
export declare namespace VendorRequiredCredential$ {
|
|
33
|
+
/** @deprecated use `VendorRequiredCredential$inboundSchema` instead. */
|
|
34
|
+
const inboundSchema: z.ZodType<VendorRequiredCredential, z.ZodTypeDef, unknown>;
|
|
35
|
+
/** @deprecated use `VendorRequiredCredential$outboundSchema` instead. */
|
|
36
|
+
const outboundSchema: z.ZodType<VendorRequiredCredential$Outbound, z.ZodTypeDef, VendorRequiredCredential>;
|
|
37
|
+
/** @deprecated use `VendorRequiredCredential$Outbound` instead. */
|
|
38
|
+
type Outbound = VendorRequiredCredential$Outbound;
|
|
39
|
+
}
|
|
40
|
+
export declare function vendorRequiredCredentialToJSON(vendorRequiredCredential: VendorRequiredCredential): string;
|
|
41
|
+
export declare function vendorRequiredCredentialFromJSON(jsonString: string): SafeParseResult<VendorRequiredCredential, SDKValidationError>;
|
|
42
|
+
//# sourceMappingURL=vendorrequiredcredential.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendorrequiredcredential.d.ts","sourceRoot":"","sources":["../../src/models/components/vendorrequiredcredential.ts"],"names":[],"mappings":"AAIA,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