@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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { usersLogsUserIntoTheSystem } from "../../funcs/usersLogsUserIntoTheSystem.js";
|
|
6
6
|
import * as operations from "../../models/operations/index.js";
|
|
7
7
|
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
8
|
|
|
@@ -10,8 +10,8 @@ const args = {
|
|
|
10
10
|
request: operations.LogsUserIntoTheSystemRequestBody$inboundSchema,
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
-
export const tool$
|
|
14
|
-
name: "
|
|
13
|
+
export const tool$usersLogsUserIntoTheSystem: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "users_logs-user-into-the-system",
|
|
15
15
|
description: `Logs user into the system
|
|
16
16
|
|
|
17
17
|
This endpoint allows a user to authenticate themselves and retrieve a permanent token for access.
|
|
@@ -47,7 +47,7 @@ Requires: \`saml_login\`
|
|
|
47
47
|
5. Fetch the user object from \`/users/me\` using the token`,
|
|
48
48
|
args,
|
|
49
49
|
tool: async (client, args, ctx) => {
|
|
50
|
-
const [result, apiCall] = await
|
|
50
|
+
const [result, apiCall] = await usersLogsUserIntoTheSystem(
|
|
51
51
|
client,
|
|
52
52
|
args.request,
|
|
53
53
|
{ fetchOptions: { signal: ctx.signal } },
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { usersMagiclink } from "../../funcs/usersMagiclink.js";
|
|
6
6
|
import * as operations from "../../models/operations/index.js";
|
|
7
7
|
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
8
|
|
|
@@ -10,14 +10,14 @@ const args = {
|
|
|
10
10
|
request: operations.MagiclinkRequestBody$inboundSchema,
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
-
export const tool$
|
|
14
|
-
name: "
|
|
13
|
+
export const tool$usersMagiclink: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "users_magiclink",
|
|
15
15
|
description: `Magic link
|
|
16
16
|
|
|
17
17
|
It sends an email with a magic link to allow the user to log in.`,
|
|
18
18
|
args,
|
|
19
19
|
tool: async (client, args, ctx) => {
|
|
20
|
-
const [result, apiCall] = await
|
|
20
|
+
const [result, apiCall] = await usersMagiclink(
|
|
21
21
|
client,
|
|
22
22
|
args.request,
|
|
23
23
|
{ fetchOptions: { signal: ctx.signal } },
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { usersPassword } from "../../funcs/usersPassword.js";
|
|
6
6
|
import * as operations from "../../models/operations/index.js";
|
|
7
7
|
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
8
|
|
|
@@ -10,15 +10,15 @@ const args = {
|
|
|
10
10
|
request: operations.PasswordRequestBody$inboundSchema,
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
-
export const tool$
|
|
14
|
-
name: "
|
|
13
|
+
export const tool$usersPassword: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "users_password",
|
|
15
15
|
description: `Password reset
|
|
16
16
|
|
|
17
17
|
Resets the a user's password using a password_reset_id that was sent to them via email.
|
|
18
18
|
See /users/passwordresetrequest to initiate a password reset flow.`,
|
|
19
19
|
args,
|
|
20
20
|
tool: async (client, args, ctx) => {
|
|
21
|
-
const [result, apiCall] = await
|
|
21
|
+
const [result, apiCall] = await usersPassword(
|
|
22
22
|
client,
|
|
23
23
|
args.request,
|
|
24
24
|
{ fetchOptions: { signal: ctx.signal } },
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { usersPasswordResetRequest } from "../../funcs/usersPasswordResetRequest.js";
|
|
6
6
|
import * as operations from "../../models/operations/index.js";
|
|
7
7
|
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
8
|
|
|
@@ -10,14 +10,14 @@ const args = {
|
|
|
10
10
|
request: operations.PasswordResetRequestRequestBody$inboundSchema,
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
-
export const tool$
|
|
14
|
-
name: "
|
|
13
|
+
export const tool$usersPasswordResetRequest: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "users_password-reset-request",
|
|
15
15
|
description: `Password reset request
|
|
16
16
|
|
|
17
17
|
It sends an email with a link for resetting a user's password.`,
|
|
18
18
|
args,
|
|
19
19
|
tool: async (client, args, ctx) => {
|
|
20
|
-
const [result, apiCall] = await
|
|
20
|
+
const [result, apiCall] = await usersPasswordResetRequest(
|
|
21
21
|
client,
|
|
22
22
|
args.request,
|
|
23
23
|
{ fetchOptions: { signal: ctx.signal } },
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { vendorsExpediteTimeRemaining } from "../../funcs/vendorsExpediteTimeRemaining.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.ExpediteTimeRemainingRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$vendorsExpediteTimeRemaining: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "vendors_expedite-time-remaining",
|
|
15
|
+
description: `Expedite time remaining
|
|
16
|
+
|
|
17
|
+
For vendors who have a paid 24-hour expedite credentials invoice, get the remaining time (in seconds) for which submitted credentials will be expedited.`,
|
|
18
|
+
args,
|
|
19
|
+
tool: async (client, args, ctx) => {
|
|
20
|
+
const [result, apiCall] = await vendorsExpediteTimeRemaining(
|
|
21
|
+
client,
|
|
22
|
+
args.request,
|
|
23
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
24
|
+
).$inspect();
|
|
25
|
+
|
|
26
|
+
if (!result.ok) {
|
|
27
|
+
return {
|
|
28
|
+
content: [{ type: "text", text: result.error.message }],
|
|
29
|
+
isError: true,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const value = result.value;
|
|
34
|
+
|
|
35
|
+
return formatResult(value, apiCall);
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { vendorsListVendorCredentials } from "../../funcs/vendorsListVendorCredentials.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.ListVendorCredentialsRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$vendorsListVendorCredentials: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "vendors_list-vendor-credentials",
|
|
15
|
+
description: `List Vendor Credentials
|
|
16
|
+
|
|
17
|
+
Lists vendor credentials, required credentials, and company credentials. Utilized in Vendor Dashboard.`,
|
|
18
|
+
args,
|
|
19
|
+
tool: async (client, args, ctx) => {
|
|
20
|
+
const [result, apiCall] = await vendorsListVendorCredentials(
|
|
21
|
+
client,
|
|
22
|
+
args.request,
|
|
23
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
24
|
+
).$inspect();
|
|
25
|
+
|
|
26
|
+
if (!result.ok) {
|
|
27
|
+
return {
|
|
28
|
+
content: [{ type: "text", text: result.error.message }],
|
|
29
|
+
isError: true,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const value = result.value;
|
|
34
|
+
|
|
35
|
+
return formatResult(value, apiCall);
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { vendorsListVendorInvoices } from "../../funcs/vendorsListVendorInvoices.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.ListVendorInvoicesRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$vendorsListVendorInvoices: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "vendors_list-vendor-invoices",
|
|
15
|
+
description: `List vendor invoices
|
|
16
|
+
|
|
17
|
+
List invoices for Vendors
|
|
18
|
+
|
|
19
|
+
Available \`expand\` scopes are:
|
|
20
|
+
|
|
21
|
+
invoice.line_items`,
|
|
22
|
+
args,
|
|
23
|
+
tool: async (client, args, ctx) => {
|
|
24
|
+
const [result, apiCall] = await vendorsListVendorInvoices(
|
|
25
|
+
client,
|
|
26
|
+
args.request,
|
|
27
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
28
|
+
).$inspect();
|
|
29
|
+
|
|
30
|
+
if (!result.ok) {
|
|
31
|
+
return {
|
|
32
|
+
content: [{ type: "text", text: result.error.message }],
|
|
33
|
+
isError: true,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const value = result.value.result;
|
|
38
|
+
|
|
39
|
+
return formatResult(value, apiCall);
|
|
40
|
+
},
|
|
41
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Status values
|
|
10
|
+
*/
|
|
11
|
+
export const ActiveStatus = {
|
|
12
|
+
Active: "Active",
|
|
13
|
+
Inactive: "Inactive",
|
|
14
|
+
Deleted: "Deleted",
|
|
15
|
+
} as const;
|
|
16
|
+
/**
|
|
17
|
+
* Status values
|
|
18
|
+
*/
|
|
19
|
+
export type ActiveStatus = ClosedEnum<typeof ActiveStatus>;
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const ActiveStatus$inboundSchema: z.ZodNativeEnum<typeof ActiveStatus> =
|
|
23
|
+
z.nativeEnum(ActiveStatus);
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const ActiveStatus$outboundSchema: z.ZodNativeEnum<typeof ActiveStatus> =
|
|
27
|
+
ActiveStatus$inboundSchema;
|
|
28
|
+
|
|
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 namespace ActiveStatus$ {
|
|
34
|
+
/** @deprecated use `ActiveStatus$inboundSchema` instead. */
|
|
35
|
+
export const inboundSchema = ActiveStatus$inboundSchema;
|
|
36
|
+
/** @deprecated use `ActiveStatus$outboundSchema` instead. */
|
|
37
|
+
export const outboundSchema = ActiveStatus$outboundSchema;
|
|
38
|
+
}
|
|
@@ -30,12 +30,12 @@ export type ContactFacility = FacilitySummary | number;
|
|
|
30
30
|
|
|
31
31
|
export type System = SystemSummary | number;
|
|
32
32
|
|
|
33
|
-
export const
|
|
33
|
+
export const Status = {
|
|
34
34
|
Active: "Active",
|
|
35
35
|
Inactive: "Inactive",
|
|
36
36
|
Deleted: "Deleted",
|
|
37
37
|
} as const;
|
|
38
|
-
export type
|
|
38
|
+
export type Status = ClosedEnum<typeof Status>;
|
|
39
39
|
|
|
40
40
|
export type Department = DepartmentSummary | number;
|
|
41
41
|
|
|
@@ -45,7 +45,7 @@ export type Department = DepartmentSummary | number;
|
|
|
45
45
|
export type Contact = {
|
|
46
46
|
facility?: FacilitySummary | number | undefined;
|
|
47
47
|
system?: SystemSummary | number | undefined;
|
|
48
|
-
status:
|
|
48
|
+
status: Status;
|
|
49
49
|
position?: string | null | undefined;
|
|
50
50
|
department?: DepartmentSummary | number | null | undefined;
|
|
51
51
|
};
|
|
@@ -138,24 +138,22 @@ export function systemFromJSON(
|
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
/** @internal */
|
|
141
|
-
export const
|
|
142
|
-
|
|
143
|
-
> = z.nativeEnum(ContactStatus);
|
|
141
|
+
export const Status$inboundSchema: z.ZodNativeEnum<typeof Status> = z
|
|
142
|
+
.nativeEnum(Status);
|
|
144
143
|
|
|
145
144
|
/** @internal */
|
|
146
|
-
export const
|
|
147
|
-
|
|
148
|
-
> = ContactStatus$inboundSchema;
|
|
145
|
+
export const Status$outboundSchema: z.ZodNativeEnum<typeof Status> =
|
|
146
|
+
Status$inboundSchema;
|
|
149
147
|
|
|
150
148
|
/**
|
|
151
149
|
* @internal
|
|
152
150
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
153
151
|
*/
|
|
154
|
-
export namespace
|
|
155
|
-
/** @deprecated use `
|
|
156
|
-
export const inboundSchema =
|
|
157
|
-
/** @deprecated use `
|
|
158
|
-
export const outboundSchema =
|
|
152
|
+
export namespace Status$ {
|
|
153
|
+
/** @deprecated use `Status$inboundSchema` instead. */
|
|
154
|
+
export const inboundSchema = Status$inboundSchema;
|
|
155
|
+
/** @deprecated use `Status$outboundSchema` instead. */
|
|
156
|
+
export const outboundSchema = Status$outboundSchema;
|
|
159
157
|
}
|
|
160
158
|
|
|
161
159
|
/** @internal */
|
|
@@ -208,7 +206,7 @@ export const Contact$inboundSchema: z.ZodType<Contact, z.ZodTypeDef, unknown> =
|
|
|
208
206
|
facility: z.union([FacilitySummary$inboundSchema, z.number().int()])
|
|
209
207
|
.optional(),
|
|
210
208
|
system: z.union([SystemSummary$inboundSchema, z.number().int()]).optional(),
|
|
211
|
-
status:
|
|
209
|
+
status: Status$inboundSchema,
|
|
212
210
|
position: z.nullable(z.string()).optional(),
|
|
213
211
|
department: z.nullable(
|
|
214
212
|
z.union([DepartmentSummary$inboundSchema, z.number().int()]),
|
|
@@ -233,7 +231,7 @@ export const Contact$outboundSchema: z.ZodType<
|
|
|
233
231
|
facility: z.union([FacilitySummary$outboundSchema, z.number().int()])
|
|
234
232
|
.optional(),
|
|
235
233
|
system: z.union([SystemSummary$outboundSchema, z.number().int()]).optional(),
|
|
236
|
-
status:
|
|
234
|
+
status: Status$outboundSchema,
|
|
237
235
|
position: z.nullable(z.string()).optional(),
|
|
238
236
|
department: z.nullable(
|
|
239
237
|
z.union([DepartmentSummary$outboundSchema, z.number().int()]),
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Status values
|
|
10
|
+
*/
|
|
11
|
+
export const CredentialStatus = {
|
|
12
|
+
PendingApproval: "Pending Approval",
|
|
13
|
+
PendingVendor: "Pending Vendor",
|
|
14
|
+
Declined: "Declined",
|
|
15
|
+
Expired: "Expired",
|
|
16
|
+
Suspended: "Suspended",
|
|
17
|
+
Denied: "Denied",
|
|
18
|
+
Approved: "Approved",
|
|
19
|
+
} as const;
|
|
20
|
+
/**
|
|
21
|
+
* Status values
|
|
22
|
+
*/
|
|
23
|
+
export type CredentialStatus = ClosedEnum<typeof CredentialStatus>;
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const CredentialStatus$inboundSchema: z.ZodNativeEnum<
|
|
27
|
+
typeof CredentialStatus
|
|
28
|
+
> = z.nativeEnum(CredentialStatus);
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const CredentialStatus$outboundSchema: z.ZodNativeEnum<
|
|
32
|
+
typeof CredentialStatus
|
|
33
|
+
> = CredentialStatus$inboundSchema;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @internal
|
|
37
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
38
|
+
*/
|
|
39
|
+
export namespace CredentialStatus$ {
|
|
40
|
+
/** @deprecated use `CredentialStatus$inboundSchema` instead. */
|
|
41
|
+
export const inboundSchema = CredentialStatus$inboundSchema;
|
|
42
|
+
/** @deprecated use `CredentialStatus$outboundSchema` instead. */
|
|
43
|
+
export const outboundSchema = CredentialStatus$outboundSchema;
|
|
44
|
+
}
|
|
@@ -26,6 +26,11 @@ export const Expand = {
|
|
|
26
26
|
VendorUser: "vendor.user",
|
|
27
27
|
VendorVendorType: "vendor.vendor_type",
|
|
28
28
|
VendorPaymentProfile: "vendor.payment_profile",
|
|
29
|
+
SupportArticleDescription: "support_article.description",
|
|
30
|
+
SupportArticlePublished: "support_article.published",
|
|
31
|
+
SupportArticleNotes: "support_article.notes",
|
|
32
|
+
SupportArticleSupportCategory: "support_article.support_category",
|
|
33
|
+
InvoiceLineItems: "invoice.line_items",
|
|
29
34
|
} as const;
|
|
30
35
|
/**
|
|
31
36
|
* An expansion scope that is valid for the object being requested.
|
|
@@ -2,14 +2,18 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
export * from "./activestatus.js";
|
|
5
6
|
export * from "./company.js";
|
|
6
7
|
export * from "./contact.js";
|
|
8
|
+
export * from "./credentialstatus.js";
|
|
7
9
|
export * from "./departmentsummary.js";
|
|
8
10
|
export * from "./desc.js";
|
|
9
11
|
export * from "./expand.js";
|
|
10
12
|
export * from "./facility.js";
|
|
11
13
|
export * from "./facilitysummary.js";
|
|
12
14
|
export * from "./imageset.js";
|
|
15
|
+
export * from "./invoice.js";
|
|
16
|
+
export * from "./invoiceitem.js";
|
|
13
17
|
export * from "./loginemailandpassword.js";
|
|
14
18
|
export * from "./loginrequirementsfromemail.js";
|
|
15
19
|
export * from "./mfarequiredresponse.js";
|
|
@@ -17,8 +21,10 @@ export * from "./pager.js";
|
|
|
17
21
|
export * from "./passwordrequiredresponse.js";
|
|
18
22
|
export * from "./samlloginrequiredresponse.js";
|
|
19
23
|
export * from "./security.js";
|
|
20
|
-
export * from "./
|
|
24
|
+
export * from "./supportarticle.js";
|
|
21
25
|
export * from "./systemsummary.js";
|
|
22
26
|
export * from "./user.js";
|
|
27
|
+
export * from "./vendorcredentialslim.js";
|
|
23
28
|
export * from "./vendorjobtitle.js";
|
|
29
|
+
export * from "./vendorrequiredcredential.js";
|
|
24
30
|
export * from "./vendortype.js";
|
|
@@ -0,0 +1,99 @@
|
|
|
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 { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
InvoiceItem,
|
|
12
|
+
InvoiceItem$inboundSchema,
|
|
13
|
+
InvoiceItem$Outbound,
|
|
14
|
+
InvoiceItem$outboundSchema,
|
|
15
|
+
} from "./invoiceitem.js";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* A simplified representation of an Invoice
|
|
19
|
+
*/
|
|
20
|
+
export type Invoice = {
|
|
21
|
+
id: number;
|
|
22
|
+
invoiceNumber?: string | null | undefined;
|
|
23
|
+
amount?: number | null | undefined;
|
|
24
|
+
status?: string | null | undefined;
|
|
25
|
+
financialStatus?: string | null | undefined;
|
|
26
|
+
items?: Array<InvoiceItem> | undefined;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const Invoice$inboundSchema: z.ZodType<Invoice, z.ZodTypeDef, unknown> =
|
|
31
|
+
z.object({
|
|
32
|
+
id: z.number().int(),
|
|
33
|
+
invoice_number: z.nullable(z.string()).optional(),
|
|
34
|
+
amount: z.nullable(z.number().int()).optional(),
|
|
35
|
+
status: z.nullable(z.string()).optional(),
|
|
36
|
+
financial_status: z.nullable(z.string()).optional(),
|
|
37
|
+
items: z.array(InvoiceItem$inboundSchema).optional(),
|
|
38
|
+
}).transform((v) => {
|
|
39
|
+
return remap$(v, {
|
|
40
|
+
"invoice_number": "invoiceNumber",
|
|
41
|
+
"financial_status": "financialStatus",
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export type Invoice$Outbound = {
|
|
47
|
+
id: number;
|
|
48
|
+
invoice_number?: string | null | undefined;
|
|
49
|
+
amount?: number | null | undefined;
|
|
50
|
+
status?: string | null | undefined;
|
|
51
|
+
financial_status?: string | null | undefined;
|
|
52
|
+
items?: Array<InvoiceItem$Outbound> | undefined;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const Invoice$outboundSchema: z.ZodType<
|
|
57
|
+
Invoice$Outbound,
|
|
58
|
+
z.ZodTypeDef,
|
|
59
|
+
Invoice
|
|
60
|
+
> = z.object({
|
|
61
|
+
id: z.number().int(),
|
|
62
|
+
invoiceNumber: z.nullable(z.string()).optional(),
|
|
63
|
+
amount: z.nullable(z.number().int()).optional(),
|
|
64
|
+
status: z.nullable(z.string()).optional(),
|
|
65
|
+
financialStatus: z.nullable(z.string()).optional(),
|
|
66
|
+
items: z.array(InvoiceItem$outboundSchema).optional(),
|
|
67
|
+
}).transform((v) => {
|
|
68
|
+
return remap$(v, {
|
|
69
|
+
invoiceNumber: "invoice_number",
|
|
70
|
+
financialStatus: "financial_status",
|
|
71
|
+
});
|
|
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
|
+
export namespace Invoice$ {
|
|
79
|
+
/** @deprecated use `Invoice$inboundSchema` instead. */
|
|
80
|
+
export const inboundSchema = Invoice$inboundSchema;
|
|
81
|
+
/** @deprecated use `Invoice$outboundSchema` instead. */
|
|
82
|
+
export const outboundSchema = Invoice$outboundSchema;
|
|
83
|
+
/** @deprecated use `Invoice$Outbound` instead. */
|
|
84
|
+
export type Outbound = Invoice$Outbound;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function invoiceToJSON(invoice: Invoice): string {
|
|
88
|
+
return JSON.stringify(Invoice$outboundSchema.parse(invoice));
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function invoiceFromJSON(
|
|
92
|
+
jsonString: string,
|
|
93
|
+
): SafeParseResult<Invoice, SDKValidationError> {
|
|
94
|
+
return safeParse(
|
|
95
|
+
jsonString,
|
|
96
|
+
(x) => Invoice$inboundSchema.parse(JSON.parse(x)),
|
|
97
|
+
`Failed to parse 'Invoice' from JSON`,
|
|
98
|
+
);
|
|
99
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
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 { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Reduced list of attributes of the Invoice line item record
|
|
13
|
+
*/
|
|
14
|
+
export type InvoiceItem = {
|
|
15
|
+
itemId?: number | undefined;
|
|
16
|
+
dateStarts?: string | null | undefined;
|
|
17
|
+
dateEnds?: string | null | undefined;
|
|
18
|
+
isSubscription?: boolean | null | undefined;
|
|
19
|
+
productTitle?: string | null | undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const InvoiceItem$inboundSchema: z.ZodType<
|
|
24
|
+
InvoiceItem,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z.object({
|
|
28
|
+
item_id: z.number().int().optional(),
|
|
29
|
+
date_starts: z.nullable(z.string()).optional(),
|
|
30
|
+
date_ends: z.nullable(z.string()).optional(),
|
|
31
|
+
is_subscription: z.nullable(z.boolean()).optional(),
|
|
32
|
+
product_title: z.nullable(z.string()).optional(),
|
|
33
|
+
}).transform((v) => {
|
|
34
|
+
return remap$(v, {
|
|
35
|
+
"item_id": "itemId",
|
|
36
|
+
"date_starts": "dateStarts",
|
|
37
|
+
"date_ends": "dateEnds",
|
|
38
|
+
"is_subscription": "isSubscription",
|
|
39
|
+
"product_title": "productTitle",
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export type InvoiceItem$Outbound = {
|
|
45
|
+
item_id?: number | undefined;
|
|
46
|
+
date_starts?: string | null | undefined;
|
|
47
|
+
date_ends?: string | null | undefined;
|
|
48
|
+
is_subscription?: boolean | null | undefined;
|
|
49
|
+
product_title?: string | null | undefined;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export const InvoiceItem$outboundSchema: z.ZodType<
|
|
54
|
+
InvoiceItem$Outbound,
|
|
55
|
+
z.ZodTypeDef,
|
|
56
|
+
InvoiceItem
|
|
57
|
+
> = z.object({
|
|
58
|
+
itemId: z.number().int().optional(),
|
|
59
|
+
dateStarts: z.nullable(z.string()).optional(),
|
|
60
|
+
dateEnds: z.nullable(z.string()).optional(),
|
|
61
|
+
isSubscription: z.nullable(z.boolean()).optional(),
|
|
62
|
+
productTitle: z.nullable(z.string()).optional(),
|
|
63
|
+
}).transform((v) => {
|
|
64
|
+
return remap$(v, {
|
|
65
|
+
itemId: "item_id",
|
|
66
|
+
dateStarts: "date_starts",
|
|
67
|
+
dateEnds: "date_ends",
|
|
68
|
+
isSubscription: "is_subscription",
|
|
69
|
+
productTitle: "product_title",
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @internal
|
|
75
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
76
|
+
*/
|
|
77
|
+
export namespace InvoiceItem$ {
|
|
78
|
+
/** @deprecated use `InvoiceItem$inboundSchema` instead. */
|
|
79
|
+
export const inboundSchema = InvoiceItem$inboundSchema;
|
|
80
|
+
/** @deprecated use `InvoiceItem$outboundSchema` instead. */
|
|
81
|
+
export const outboundSchema = InvoiceItem$outboundSchema;
|
|
82
|
+
/** @deprecated use `InvoiceItem$Outbound` instead. */
|
|
83
|
+
export type Outbound = InvoiceItem$Outbound;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function invoiceItemToJSON(invoiceItem: InvoiceItem): string {
|
|
87
|
+
return JSON.stringify(InvoiceItem$outboundSchema.parse(invoiceItem));
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function invoiceItemFromJSON(
|
|
91
|
+
jsonString: string,
|
|
92
|
+
): SafeParseResult<InvoiceItem, SDKValidationError> {
|
|
93
|
+
return safeParse(
|
|
94
|
+
jsonString,
|
|
95
|
+
(x) => InvoiceItem$inboundSchema.parse(JSON.parse(x)),
|
|
96
|
+
`Failed to parse 'InvoiceItem' from JSON`,
|
|
97
|
+
);
|
|
98
|
+
}
|