@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
|
@@ -49,13 +49,13 @@ export type ListOrSearchFacilitiesRequest = {
|
|
|
49
49
|
*
|
|
50
50
|
* > NOTE: There may be times where it makes sense to show only active objects, active and inactive, or deleted. Some objects may have a separate property for `visible` which should override this state.
|
|
51
51
|
*/
|
|
52
|
-
|
|
52
|
+
activeStatus?: components.ActiveStatus | undefined;
|
|
53
53
|
};
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
56
|
* The request was successful, and the server has returned the requested resource in the response body.
|
|
57
57
|
*/
|
|
58
|
-
export type
|
|
58
|
+
export type ListOrSearchFacilitiesListOrSearchFacilitiesOk = {
|
|
59
59
|
/**
|
|
60
60
|
* Pagination information for a pageable list
|
|
61
61
|
*/
|
|
@@ -63,6 +63,10 @@ export type ListOrSearchFacilitiesResponseBody = {
|
|
|
63
63
|
items: Array<components.Facility>;
|
|
64
64
|
};
|
|
65
65
|
|
|
66
|
+
export type ListOrSearchFacilitiesResponse = {
|
|
67
|
+
result: ListOrSearchFacilitiesListOrSearchFacilitiesOk;
|
|
68
|
+
};
|
|
69
|
+
|
|
66
70
|
/** @internal */
|
|
67
71
|
export const ListOrSearchFacilitiesRequest$inboundSchema: z.ZodType<
|
|
68
72
|
ListOrSearchFacilitiesRequest,
|
|
@@ -77,13 +81,14 @@ export const ListOrSearchFacilitiesRequest$inboundSchema: z.ZodType<
|
|
|
77
81
|
system_id: z.number().int().optional(),
|
|
78
82
|
name_like: z.string().optional(),
|
|
79
83
|
state_like: z.string().optional(),
|
|
80
|
-
|
|
84
|
+
active_status: components.ActiveStatus$inboundSchema.default("Active"),
|
|
81
85
|
}).transform((v) => {
|
|
82
86
|
return remap$(v, {
|
|
83
87
|
"items_per_page": "itemsPerPage",
|
|
84
88
|
"system_id": "systemId",
|
|
85
89
|
"name_like": "nameLike",
|
|
86
90
|
"state_like": "stateLike",
|
|
91
|
+
"active_status": "activeStatus",
|
|
87
92
|
});
|
|
88
93
|
});
|
|
89
94
|
|
|
@@ -97,7 +102,7 @@ export type ListOrSearchFacilitiesRequest$Outbound = {
|
|
|
97
102
|
system_id?: number | undefined;
|
|
98
103
|
name_like?: string | undefined;
|
|
99
104
|
state_like?: string | undefined;
|
|
100
|
-
|
|
105
|
+
active_status: string;
|
|
101
106
|
};
|
|
102
107
|
|
|
103
108
|
/** @internal */
|
|
@@ -114,13 +119,14 @@ export const ListOrSearchFacilitiesRequest$outboundSchema: z.ZodType<
|
|
|
114
119
|
systemId: z.number().int().optional(),
|
|
115
120
|
nameLike: z.string().optional(),
|
|
116
121
|
stateLike: z.string().optional(),
|
|
117
|
-
|
|
122
|
+
activeStatus: components.ActiveStatus$outboundSchema.default("Active"),
|
|
118
123
|
}).transform((v) => {
|
|
119
124
|
return remap$(v, {
|
|
120
125
|
itemsPerPage: "items_per_page",
|
|
121
126
|
systemId: "system_id",
|
|
122
127
|
nameLike: "name_like",
|
|
123
128
|
stateLike: "state_like",
|
|
129
|
+
activeStatus: "active_status",
|
|
124
130
|
});
|
|
125
131
|
});
|
|
126
132
|
|
|
@@ -158,62 +164,140 @@ export function listOrSearchFacilitiesRequestFromJSON(
|
|
|
158
164
|
}
|
|
159
165
|
|
|
160
166
|
/** @internal */
|
|
161
|
-
export const
|
|
162
|
-
|
|
167
|
+
export const ListOrSearchFacilitiesListOrSearchFacilitiesOk$inboundSchema:
|
|
168
|
+
z.ZodType<
|
|
169
|
+
ListOrSearchFacilitiesListOrSearchFacilitiesOk,
|
|
170
|
+
z.ZodTypeDef,
|
|
171
|
+
unknown
|
|
172
|
+
> = z.object({
|
|
173
|
+
pager: components.Pager$inboundSchema,
|
|
174
|
+
items: z.array(components.Facility$inboundSchema),
|
|
175
|
+
});
|
|
176
|
+
|
|
177
|
+
/** @internal */
|
|
178
|
+
export type ListOrSearchFacilitiesListOrSearchFacilitiesOk$Outbound = {
|
|
179
|
+
pager: components.Pager$Outbound;
|
|
180
|
+
items: Array<components.Facility$Outbound>;
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
/** @internal */
|
|
184
|
+
export const ListOrSearchFacilitiesListOrSearchFacilitiesOk$outboundSchema:
|
|
185
|
+
z.ZodType<
|
|
186
|
+
ListOrSearchFacilitiesListOrSearchFacilitiesOk$Outbound,
|
|
187
|
+
z.ZodTypeDef,
|
|
188
|
+
ListOrSearchFacilitiesListOrSearchFacilitiesOk
|
|
189
|
+
> = z.object({
|
|
190
|
+
pager: components.Pager$outboundSchema,
|
|
191
|
+
items: z.array(components.Facility$outboundSchema),
|
|
192
|
+
});
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* @internal
|
|
196
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
197
|
+
*/
|
|
198
|
+
export namespace ListOrSearchFacilitiesListOrSearchFacilitiesOk$ {
|
|
199
|
+
/** @deprecated use `ListOrSearchFacilitiesListOrSearchFacilitiesOk$inboundSchema` instead. */
|
|
200
|
+
export const inboundSchema =
|
|
201
|
+
ListOrSearchFacilitiesListOrSearchFacilitiesOk$inboundSchema;
|
|
202
|
+
/** @deprecated use `ListOrSearchFacilitiesListOrSearchFacilitiesOk$outboundSchema` instead. */
|
|
203
|
+
export const outboundSchema =
|
|
204
|
+
ListOrSearchFacilitiesListOrSearchFacilitiesOk$outboundSchema;
|
|
205
|
+
/** @deprecated use `ListOrSearchFacilitiesListOrSearchFacilitiesOk$Outbound` instead. */
|
|
206
|
+
export type Outbound =
|
|
207
|
+
ListOrSearchFacilitiesListOrSearchFacilitiesOk$Outbound;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export function listOrSearchFacilitiesListOrSearchFacilitiesOkToJSON(
|
|
211
|
+
listOrSearchFacilitiesListOrSearchFacilitiesOk:
|
|
212
|
+
ListOrSearchFacilitiesListOrSearchFacilitiesOk,
|
|
213
|
+
): string {
|
|
214
|
+
return JSON.stringify(
|
|
215
|
+
ListOrSearchFacilitiesListOrSearchFacilitiesOk$outboundSchema.parse(
|
|
216
|
+
listOrSearchFacilitiesListOrSearchFacilitiesOk,
|
|
217
|
+
),
|
|
218
|
+
);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export function listOrSearchFacilitiesListOrSearchFacilitiesOkFromJSON(
|
|
222
|
+
jsonString: string,
|
|
223
|
+
): SafeParseResult<
|
|
224
|
+
ListOrSearchFacilitiesListOrSearchFacilitiesOk,
|
|
225
|
+
SDKValidationError
|
|
226
|
+
> {
|
|
227
|
+
return safeParse(
|
|
228
|
+
jsonString,
|
|
229
|
+
(x) =>
|
|
230
|
+
ListOrSearchFacilitiesListOrSearchFacilitiesOk$inboundSchema.parse(
|
|
231
|
+
JSON.parse(x),
|
|
232
|
+
),
|
|
233
|
+
`Failed to parse 'ListOrSearchFacilitiesListOrSearchFacilitiesOk' from JSON`,
|
|
234
|
+
);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/** @internal */
|
|
238
|
+
export const ListOrSearchFacilitiesResponse$inboundSchema: z.ZodType<
|
|
239
|
+
ListOrSearchFacilitiesResponse,
|
|
163
240
|
z.ZodTypeDef,
|
|
164
241
|
unknown
|
|
165
242
|
> = z.object({
|
|
166
|
-
|
|
167
|
-
|
|
243
|
+
Result: z.lazy(() =>
|
|
244
|
+
ListOrSearchFacilitiesListOrSearchFacilitiesOk$inboundSchema
|
|
245
|
+
),
|
|
246
|
+
}).transform((v) => {
|
|
247
|
+
return remap$(v, {
|
|
248
|
+
"Result": "result",
|
|
249
|
+
});
|
|
168
250
|
});
|
|
169
251
|
|
|
170
252
|
/** @internal */
|
|
171
|
-
export type
|
|
172
|
-
|
|
173
|
-
items: Array<components.Facility$Outbound>;
|
|
253
|
+
export type ListOrSearchFacilitiesResponse$Outbound = {
|
|
254
|
+
Result: ListOrSearchFacilitiesListOrSearchFacilitiesOk$Outbound;
|
|
174
255
|
};
|
|
175
256
|
|
|
176
257
|
/** @internal */
|
|
177
|
-
export const
|
|
178
|
-
|
|
258
|
+
export const ListOrSearchFacilitiesResponse$outboundSchema: z.ZodType<
|
|
259
|
+
ListOrSearchFacilitiesResponse$Outbound,
|
|
179
260
|
z.ZodTypeDef,
|
|
180
|
-
|
|
261
|
+
ListOrSearchFacilitiesResponse
|
|
181
262
|
> = z.object({
|
|
182
|
-
|
|
183
|
-
|
|
263
|
+
result: z.lazy(() =>
|
|
264
|
+
ListOrSearchFacilitiesListOrSearchFacilitiesOk$outboundSchema
|
|
265
|
+
),
|
|
266
|
+
}).transform((v) => {
|
|
267
|
+
return remap$(v, {
|
|
268
|
+
result: "Result",
|
|
269
|
+
});
|
|
184
270
|
});
|
|
185
271
|
|
|
186
272
|
/**
|
|
187
273
|
* @internal
|
|
188
274
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
189
275
|
*/
|
|
190
|
-
export namespace
|
|
191
|
-
/** @deprecated use `
|
|
192
|
-
export const inboundSchema =
|
|
193
|
-
/** @deprecated use `
|
|
194
|
-
export const outboundSchema =
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
export type Outbound = ListOrSearchFacilitiesResponseBody$Outbound;
|
|
276
|
+
export namespace ListOrSearchFacilitiesResponse$ {
|
|
277
|
+
/** @deprecated use `ListOrSearchFacilitiesResponse$inboundSchema` instead. */
|
|
278
|
+
export const inboundSchema = ListOrSearchFacilitiesResponse$inboundSchema;
|
|
279
|
+
/** @deprecated use `ListOrSearchFacilitiesResponse$outboundSchema` instead. */
|
|
280
|
+
export const outboundSchema = ListOrSearchFacilitiesResponse$outboundSchema;
|
|
281
|
+
/** @deprecated use `ListOrSearchFacilitiesResponse$Outbound` instead. */
|
|
282
|
+
export type Outbound = ListOrSearchFacilitiesResponse$Outbound;
|
|
198
283
|
}
|
|
199
284
|
|
|
200
|
-
export function
|
|
201
|
-
|
|
285
|
+
export function listOrSearchFacilitiesResponseToJSON(
|
|
286
|
+
listOrSearchFacilitiesResponse: ListOrSearchFacilitiesResponse,
|
|
202
287
|
): string {
|
|
203
288
|
return JSON.stringify(
|
|
204
|
-
|
|
205
|
-
|
|
289
|
+
ListOrSearchFacilitiesResponse$outboundSchema.parse(
|
|
290
|
+
listOrSearchFacilitiesResponse,
|
|
206
291
|
),
|
|
207
292
|
);
|
|
208
293
|
}
|
|
209
294
|
|
|
210
|
-
export function
|
|
295
|
+
export function listOrSearchFacilitiesResponseFromJSON(
|
|
211
296
|
jsonString: string,
|
|
212
|
-
): SafeParseResult<
|
|
297
|
+
): SafeParseResult<ListOrSearchFacilitiesResponse, SDKValidationError> {
|
|
213
298
|
return safeParse(
|
|
214
299
|
jsonString,
|
|
215
|
-
(x) =>
|
|
216
|
-
|
|
217
|
-
`Failed to parse 'ListOrSearchFacilitiesResponseBody' from JSON`,
|
|
300
|
+
(x) => ListOrSearchFacilitiesResponse$inboundSchema.parse(JSON.parse(x)),
|
|
301
|
+
`Failed to parse 'ListOrSearchFacilitiesResponse' from JSON`,
|
|
218
302
|
);
|
|
219
303
|
}
|
|
@@ -0,0 +1,261 @@
|
|
|
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 * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type ListOrSearchSupportArticlesRequest = {
|
|
13
|
+
/**
|
|
14
|
+
* A comma-separated list of object attributes to sort on.
|
|
15
|
+
*/
|
|
16
|
+
sort?: string | null | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Sort desc
|
|
19
|
+
*/
|
|
20
|
+
desc?: components.Desc | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* A 1-based offset for which page to request (defaults to 1)
|
|
23
|
+
*/
|
|
24
|
+
page?: number | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Number of items to show in a given page
|
|
27
|
+
*/
|
|
28
|
+
itemsPerPage?: number | undefined;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* The request was successful, and the server has returned the requested resource in the response body.
|
|
33
|
+
*/
|
|
34
|
+
export type ListOrSearchSupportArticlesListOrSearchArticlesOk = {
|
|
35
|
+
/**
|
|
36
|
+
* Pagination information for a pageable list
|
|
37
|
+
*/
|
|
38
|
+
pager: components.Pager;
|
|
39
|
+
items: Array<components.SupportArticle>;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export type ListOrSearchSupportArticlesResponse = {
|
|
43
|
+
result: ListOrSearchSupportArticlesListOrSearchArticlesOk;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const ListOrSearchSupportArticlesRequest$inboundSchema: z.ZodType<
|
|
48
|
+
ListOrSearchSupportArticlesRequest,
|
|
49
|
+
z.ZodTypeDef,
|
|
50
|
+
unknown
|
|
51
|
+
> = z.object({
|
|
52
|
+
sort: z.nullable(z.string()).optional(),
|
|
53
|
+
desc: components.Desc$inboundSchema.optional(),
|
|
54
|
+
page: z.number().int().optional(),
|
|
55
|
+
items_per_page: z.number().int().optional(),
|
|
56
|
+
}).transform((v) => {
|
|
57
|
+
return remap$(v, {
|
|
58
|
+
"items_per_page": "itemsPerPage",
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
/** @internal */
|
|
63
|
+
export type ListOrSearchSupportArticlesRequest$Outbound = {
|
|
64
|
+
sort?: string | null | undefined;
|
|
65
|
+
desc?: components.Desc$Outbound | undefined;
|
|
66
|
+
page?: number | undefined;
|
|
67
|
+
items_per_page?: number | undefined;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
/** @internal */
|
|
71
|
+
export const ListOrSearchSupportArticlesRequest$outboundSchema: z.ZodType<
|
|
72
|
+
ListOrSearchSupportArticlesRequest$Outbound,
|
|
73
|
+
z.ZodTypeDef,
|
|
74
|
+
ListOrSearchSupportArticlesRequest
|
|
75
|
+
> = z.object({
|
|
76
|
+
sort: z.nullable(z.string()).optional(),
|
|
77
|
+
desc: components.Desc$outboundSchema.optional(),
|
|
78
|
+
page: z.number().int().optional(),
|
|
79
|
+
itemsPerPage: z.number().int().optional(),
|
|
80
|
+
}).transform((v) => {
|
|
81
|
+
return remap$(v, {
|
|
82
|
+
itemsPerPage: "items_per_page",
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* @internal
|
|
88
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
89
|
+
*/
|
|
90
|
+
export namespace ListOrSearchSupportArticlesRequest$ {
|
|
91
|
+
/** @deprecated use `ListOrSearchSupportArticlesRequest$inboundSchema` instead. */
|
|
92
|
+
export const inboundSchema = ListOrSearchSupportArticlesRequest$inboundSchema;
|
|
93
|
+
/** @deprecated use `ListOrSearchSupportArticlesRequest$outboundSchema` instead. */
|
|
94
|
+
export const outboundSchema =
|
|
95
|
+
ListOrSearchSupportArticlesRequest$outboundSchema;
|
|
96
|
+
/** @deprecated use `ListOrSearchSupportArticlesRequest$Outbound` instead. */
|
|
97
|
+
export type Outbound = ListOrSearchSupportArticlesRequest$Outbound;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function listOrSearchSupportArticlesRequestToJSON(
|
|
101
|
+
listOrSearchSupportArticlesRequest: ListOrSearchSupportArticlesRequest,
|
|
102
|
+
): string {
|
|
103
|
+
return JSON.stringify(
|
|
104
|
+
ListOrSearchSupportArticlesRequest$outboundSchema.parse(
|
|
105
|
+
listOrSearchSupportArticlesRequest,
|
|
106
|
+
),
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function listOrSearchSupportArticlesRequestFromJSON(
|
|
111
|
+
jsonString: string,
|
|
112
|
+
): SafeParseResult<ListOrSearchSupportArticlesRequest, SDKValidationError> {
|
|
113
|
+
return safeParse(
|
|
114
|
+
jsonString,
|
|
115
|
+
(x) =>
|
|
116
|
+
ListOrSearchSupportArticlesRequest$inboundSchema.parse(JSON.parse(x)),
|
|
117
|
+
`Failed to parse 'ListOrSearchSupportArticlesRequest' from JSON`,
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/** @internal */
|
|
122
|
+
export const ListOrSearchSupportArticlesListOrSearchArticlesOk$inboundSchema:
|
|
123
|
+
z.ZodType<
|
|
124
|
+
ListOrSearchSupportArticlesListOrSearchArticlesOk,
|
|
125
|
+
z.ZodTypeDef,
|
|
126
|
+
unknown
|
|
127
|
+
> = z.object({
|
|
128
|
+
pager: components.Pager$inboundSchema,
|
|
129
|
+
items: z.array(components.SupportArticle$inboundSchema),
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
/** @internal */
|
|
133
|
+
export type ListOrSearchSupportArticlesListOrSearchArticlesOk$Outbound = {
|
|
134
|
+
pager: components.Pager$Outbound;
|
|
135
|
+
items: Array<components.SupportArticle$Outbound>;
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
/** @internal */
|
|
139
|
+
export const ListOrSearchSupportArticlesListOrSearchArticlesOk$outboundSchema:
|
|
140
|
+
z.ZodType<
|
|
141
|
+
ListOrSearchSupportArticlesListOrSearchArticlesOk$Outbound,
|
|
142
|
+
z.ZodTypeDef,
|
|
143
|
+
ListOrSearchSupportArticlesListOrSearchArticlesOk
|
|
144
|
+
> = z.object({
|
|
145
|
+
pager: components.Pager$outboundSchema,
|
|
146
|
+
items: z.array(components.SupportArticle$outboundSchema),
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* @internal
|
|
151
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
152
|
+
*/
|
|
153
|
+
export namespace ListOrSearchSupportArticlesListOrSearchArticlesOk$ {
|
|
154
|
+
/** @deprecated use `ListOrSearchSupportArticlesListOrSearchArticlesOk$inboundSchema` instead. */
|
|
155
|
+
export const inboundSchema =
|
|
156
|
+
ListOrSearchSupportArticlesListOrSearchArticlesOk$inboundSchema;
|
|
157
|
+
/** @deprecated use `ListOrSearchSupportArticlesListOrSearchArticlesOk$outboundSchema` instead. */
|
|
158
|
+
export const outboundSchema =
|
|
159
|
+
ListOrSearchSupportArticlesListOrSearchArticlesOk$outboundSchema;
|
|
160
|
+
/** @deprecated use `ListOrSearchSupportArticlesListOrSearchArticlesOk$Outbound` instead. */
|
|
161
|
+
export type Outbound =
|
|
162
|
+
ListOrSearchSupportArticlesListOrSearchArticlesOk$Outbound;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export function listOrSearchSupportArticlesListOrSearchArticlesOkToJSON(
|
|
166
|
+
listOrSearchSupportArticlesListOrSearchArticlesOk:
|
|
167
|
+
ListOrSearchSupportArticlesListOrSearchArticlesOk,
|
|
168
|
+
): string {
|
|
169
|
+
return JSON.stringify(
|
|
170
|
+
ListOrSearchSupportArticlesListOrSearchArticlesOk$outboundSchema.parse(
|
|
171
|
+
listOrSearchSupportArticlesListOrSearchArticlesOk,
|
|
172
|
+
),
|
|
173
|
+
);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export function listOrSearchSupportArticlesListOrSearchArticlesOkFromJSON(
|
|
177
|
+
jsonString: string,
|
|
178
|
+
): SafeParseResult<
|
|
179
|
+
ListOrSearchSupportArticlesListOrSearchArticlesOk,
|
|
180
|
+
SDKValidationError
|
|
181
|
+
> {
|
|
182
|
+
return safeParse(
|
|
183
|
+
jsonString,
|
|
184
|
+
(x) =>
|
|
185
|
+
ListOrSearchSupportArticlesListOrSearchArticlesOk$inboundSchema.parse(
|
|
186
|
+
JSON.parse(x),
|
|
187
|
+
),
|
|
188
|
+
`Failed to parse 'ListOrSearchSupportArticlesListOrSearchArticlesOk' from JSON`,
|
|
189
|
+
);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/** @internal */
|
|
193
|
+
export const ListOrSearchSupportArticlesResponse$inboundSchema: z.ZodType<
|
|
194
|
+
ListOrSearchSupportArticlesResponse,
|
|
195
|
+
z.ZodTypeDef,
|
|
196
|
+
unknown
|
|
197
|
+
> = z.object({
|
|
198
|
+
Result: z.lazy(() =>
|
|
199
|
+
ListOrSearchSupportArticlesListOrSearchArticlesOk$inboundSchema
|
|
200
|
+
),
|
|
201
|
+
}).transform((v) => {
|
|
202
|
+
return remap$(v, {
|
|
203
|
+
"Result": "result",
|
|
204
|
+
});
|
|
205
|
+
});
|
|
206
|
+
|
|
207
|
+
/** @internal */
|
|
208
|
+
export type ListOrSearchSupportArticlesResponse$Outbound = {
|
|
209
|
+
Result: ListOrSearchSupportArticlesListOrSearchArticlesOk$Outbound;
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
/** @internal */
|
|
213
|
+
export const ListOrSearchSupportArticlesResponse$outboundSchema: z.ZodType<
|
|
214
|
+
ListOrSearchSupportArticlesResponse$Outbound,
|
|
215
|
+
z.ZodTypeDef,
|
|
216
|
+
ListOrSearchSupportArticlesResponse
|
|
217
|
+
> = z.object({
|
|
218
|
+
result: z.lazy(() =>
|
|
219
|
+
ListOrSearchSupportArticlesListOrSearchArticlesOk$outboundSchema
|
|
220
|
+
),
|
|
221
|
+
}).transform((v) => {
|
|
222
|
+
return remap$(v, {
|
|
223
|
+
result: "Result",
|
|
224
|
+
});
|
|
225
|
+
});
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* @internal
|
|
229
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
230
|
+
*/
|
|
231
|
+
export namespace ListOrSearchSupportArticlesResponse$ {
|
|
232
|
+
/** @deprecated use `ListOrSearchSupportArticlesResponse$inboundSchema` instead. */
|
|
233
|
+
export const inboundSchema =
|
|
234
|
+
ListOrSearchSupportArticlesResponse$inboundSchema;
|
|
235
|
+
/** @deprecated use `ListOrSearchSupportArticlesResponse$outboundSchema` instead. */
|
|
236
|
+
export const outboundSchema =
|
|
237
|
+
ListOrSearchSupportArticlesResponse$outboundSchema;
|
|
238
|
+
/** @deprecated use `ListOrSearchSupportArticlesResponse$Outbound` instead. */
|
|
239
|
+
export type Outbound = ListOrSearchSupportArticlesResponse$Outbound;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
export function listOrSearchSupportArticlesResponseToJSON(
|
|
243
|
+
listOrSearchSupportArticlesResponse: ListOrSearchSupportArticlesResponse,
|
|
244
|
+
): string {
|
|
245
|
+
return JSON.stringify(
|
|
246
|
+
ListOrSearchSupportArticlesResponse$outboundSchema.parse(
|
|
247
|
+
listOrSearchSupportArticlesResponse,
|
|
248
|
+
),
|
|
249
|
+
);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
export function listOrSearchSupportArticlesResponseFromJSON(
|
|
253
|
+
jsonString: string,
|
|
254
|
+
): SafeParseResult<ListOrSearchSupportArticlesResponse, SDKValidationError> {
|
|
255
|
+
return safeParse(
|
|
256
|
+
jsonString,
|
|
257
|
+
(x) =>
|
|
258
|
+
ListOrSearchSupportArticlesResponse$inboundSchema.parse(JSON.parse(x)),
|
|
259
|
+
`Failed to parse 'ListOrSearchSupportArticlesResponse' from JSON`,
|
|
260
|
+
);
|
|
261
|
+
}
|