@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
|
@@ -30,13 +30,13 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* @remarks
|
|
31
31
|
* It sends an email with a magic link to allow the user to log in.
|
|
32
32
|
*/
|
|
33
|
-
export function
|
|
33
|
+
export function usersMagiclink(
|
|
34
34
|
client: GreenSecurityCore,
|
|
35
35
|
request: operations.MagiclinkRequestBody,
|
|
36
36
|
options?: RequestOptions,
|
|
37
37
|
): APIPromise<
|
|
38
38
|
Result<
|
|
39
|
-
operations.
|
|
39
|
+
operations.MagiclinkMagiclinkOk,
|
|
40
40
|
| errors.ApiErrorResponse
|
|
41
41
|
| APIError
|
|
42
42
|
| SDKValidationError
|
|
@@ -61,7 +61,7 @@ async function $do(
|
|
|
61
61
|
): Promise<
|
|
62
62
|
[
|
|
63
63
|
Result<
|
|
64
|
-
operations.
|
|
64
|
+
operations.MagiclinkMagiclinkOk,
|
|
65
65
|
| errors.ApiErrorResponse
|
|
66
66
|
| APIError
|
|
67
67
|
| SDKValidationError
|
|
@@ -139,7 +139,7 @@ async function $do(
|
|
|
139
139
|
};
|
|
140
140
|
|
|
141
141
|
const [result] = await M.match<
|
|
142
|
-
operations.
|
|
142
|
+
operations.MagiclinkMagiclinkOk,
|
|
143
143
|
| errors.ApiErrorResponse
|
|
144
144
|
| APIError
|
|
145
145
|
| SDKValidationError
|
|
@@ -149,7 +149,7 @@ async function $do(
|
|
|
149
149
|
| RequestTimeoutError
|
|
150
150
|
| ConnectionError
|
|
151
151
|
>(
|
|
152
|
-
M.json(200, operations.
|
|
152
|
+
M.json(200, operations.MagiclinkMagiclinkOk$inboundSchema),
|
|
153
153
|
M.jsonErr(404, errors.ApiErrorResponse$inboundSchema),
|
|
154
154
|
M.fail("4XX"),
|
|
155
155
|
M.fail("5XX"),
|
|
@@ -31,13 +31,13 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
* Resets the a user's password using a password_reset_id that was sent to them via email.
|
|
32
32
|
* See /users/passwordresetrequest to initiate a password reset flow.
|
|
33
33
|
*/
|
|
34
|
-
export function
|
|
34
|
+
export function usersPassword(
|
|
35
35
|
client: GreenSecurityCore,
|
|
36
36
|
request: operations.PasswordRequestBody,
|
|
37
37
|
options?: RequestOptions,
|
|
38
38
|
): APIPromise<
|
|
39
39
|
Result<
|
|
40
|
-
operations.
|
|
40
|
+
operations.PasswordPasswordOk,
|
|
41
41
|
| errors.ApiErrorResponse
|
|
42
42
|
| APIError
|
|
43
43
|
| SDKValidationError
|
|
@@ -62,7 +62,7 @@ async function $do(
|
|
|
62
62
|
): Promise<
|
|
63
63
|
[
|
|
64
64
|
Result<
|
|
65
|
-
operations.
|
|
65
|
+
operations.PasswordPasswordOk,
|
|
66
66
|
| errors.ApiErrorResponse
|
|
67
67
|
| APIError
|
|
68
68
|
| SDKValidationError
|
|
@@ -140,7 +140,7 @@ async function $do(
|
|
|
140
140
|
};
|
|
141
141
|
|
|
142
142
|
const [result] = await M.match<
|
|
143
|
-
operations.
|
|
143
|
+
operations.PasswordPasswordOk,
|
|
144
144
|
| errors.ApiErrorResponse
|
|
145
145
|
| APIError
|
|
146
146
|
| SDKValidationError
|
|
@@ -150,7 +150,7 @@ async function $do(
|
|
|
150
150
|
| RequestTimeoutError
|
|
151
151
|
| ConnectionError
|
|
152
152
|
>(
|
|
153
|
-
M.json(200, operations.
|
|
153
|
+
M.json(200, operations.PasswordPasswordOk$inboundSchema),
|
|
154
154
|
M.jsonErr(404, errors.ApiErrorResponse$inboundSchema),
|
|
155
155
|
M.fail("4XX"),
|
|
156
156
|
M.fail("5XX"),
|
|
@@ -30,13 +30,13 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* @remarks
|
|
31
31
|
* It sends an email with a link for resetting a user's password.
|
|
32
32
|
*/
|
|
33
|
-
export function
|
|
33
|
+
export function usersPasswordResetRequest(
|
|
34
34
|
client: GreenSecurityCore,
|
|
35
35
|
request: operations.PasswordResetRequestRequestBody,
|
|
36
36
|
options?: RequestOptions,
|
|
37
37
|
): APIPromise<
|
|
38
38
|
Result<
|
|
39
|
-
operations.
|
|
39
|
+
operations.PasswordResetRequestPasswordResetRequestOk,
|
|
40
40
|
| errors.ApiErrorResponse
|
|
41
41
|
| APIError
|
|
42
42
|
| SDKValidationError
|
|
@@ -61,7 +61,7 @@ async function $do(
|
|
|
61
61
|
): Promise<
|
|
62
62
|
[
|
|
63
63
|
Result<
|
|
64
|
-
operations.
|
|
64
|
+
operations.PasswordResetRequestPasswordResetRequestOk,
|
|
65
65
|
| errors.ApiErrorResponse
|
|
66
66
|
| APIError
|
|
67
67
|
| SDKValidationError
|
|
@@ -140,7 +140,7 @@ async function $do(
|
|
|
140
140
|
};
|
|
141
141
|
|
|
142
142
|
const [result] = await M.match<
|
|
143
|
-
operations.
|
|
143
|
+
operations.PasswordResetRequestPasswordResetRequestOk,
|
|
144
144
|
| errors.ApiErrorResponse
|
|
145
145
|
| APIError
|
|
146
146
|
| SDKValidationError
|
|
@@ -150,7 +150,10 @@ async function $do(
|
|
|
150
150
|
| RequestTimeoutError
|
|
151
151
|
| ConnectionError
|
|
152
152
|
>(
|
|
153
|
-
M.json(
|
|
153
|
+
M.json(
|
|
154
|
+
200,
|
|
155
|
+
operations.PasswordResetRequestPasswordResetRequestOk$inboundSchema,
|
|
156
|
+
),
|
|
154
157
|
M.jsonErr(404, errors.ApiErrorResponse$inboundSchema),
|
|
155
158
|
M.fail("4XX"),
|
|
156
159
|
M.fail("5XX"),
|
|
@@ -35,7 +35,7 @@ export function vendorsCreateVendorRegistration(
|
|
|
35
35
|
options?: RequestOptions,
|
|
36
36
|
): APIPromise<
|
|
37
37
|
Result<
|
|
38
|
-
operations.
|
|
38
|
+
operations.CreateVendorRegistrationCreateVendorRegistrationCreated,
|
|
39
39
|
| errors.ApiErrorResponse
|
|
40
40
|
| APIError
|
|
41
41
|
| SDKValidationError
|
|
@@ -60,7 +60,7 @@ async function $do(
|
|
|
60
60
|
): Promise<
|
|
61
61
|
[
|
|
62
62
|
Result<
|
|
63
|
-
operations.
|
|
63
|
+
operations.CreateVendorRegistrationCreateVendorRegistrationCreated,
|
|
64
64
|
| errors.ApiErrorResponse
|
|
65
65
|
| APIError
|
|
66
66
|
| SDKValidationError
|
|
@@ -137,7 +137,7 @@ async function $do(
|
|
|
137
137
|
};
|
|
138
138
|
|
|
139
139
|
const [result] = await M.match<
|
|
140
|
-
operations.
|
|
140
|
+
operations.CreateVendorRegistrationCreateVendorRegistrationCreated,
|
|
141
141
|
| errors.ApiErrorResponse
|
|
142
142
|
| APIError
|
|
143
143
|
| SDKValidationError
|
|
@@ -147,7 +147,11 @@ async function $do(
|
|
|
147
147
|
| RequestTimeoutError
|
|
148
148
|
| ConnectionError
|
|
149
149
|
>(
|
|
150
|
-
M.json(
|
|
150
|
+
M.json(
|
|
151
|
+
201,
|
|
152
|
+
operations
|
|
153
|
+
.CreateVendorRegistrationCreateVendorRegistrationCreated$inboundSchema,
|
|
154
|
+
),
|
|
151
155
|
M.jsonErr([400, 401, 403, 409], errors.ApiErrorResponse$inboundSchema),
|
|
152
156
|
M.fail("4XX"),
|
|
153
157
|
M.fail("5XX"),
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { GreenSecurityCore } from "../core.js";
|
|
6
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import { APIError } from "../models/errors/apierror.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
22
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
|
+
import * as operations from "../models/operations/index.js";
|
|
24
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
25
|
+
import { Result } from "../types/fp.js";
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Expedite time remaining
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* For vendors who have a paid 24-hour expedite credentials invoice, get the remaining time (in seconds) for which submitted credentials will be expedited.
|
|
32
|
+
*/
|
|
33
|
+
export function vendorsExpediteTimeRemaining(
|
|
34
|
+
client: GreenSecurityCore,
|
|
35
|
+
request: operations.ExpediteTimeRemainingRequest,
|
|
36
|
+
options?: RequestOptions,
|
|
37
|
+
): APIPromise<
|
|
38
|
+
Result<
|
|
39
|
+
operations.ExpediteTimeRemainingResponseBody,
|
|
40
|
+
| errors.ApiErrorResponse
|
|
41
|
+
| APIError
|
|
42
|
+
| SDKValidationError
|
|
43
|
+
| UnexpectedClientError
|
|
44
|
+
| InvalidRequestError
|
|
45
|
+
| RequestAbortedError
|
|
46
|
+
| RequestTimeoutError
|
|
47
|
+
| ConnectionError
|
|
48
|
+
>
|
|
49
|
+
> {
|
|
50
|
+
return new APIPromise($do(
|
|
51
|
+
client,
|
|
52
|
+
request,
|
|
53
|
+
options,
|
|
54
|
+
));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
async function $do(
|
|
58
|
+
client: GreenSecurityCore,
|
|
59
|
+
request: operations.ExpediteTimeRemainingRequest,
|
|
60
|
+
options?: RequestOptions,
|
|
61
|
+
): Promise<
|
|
62
|
+
[
|
|
63
|
+
Result<
|
|
64
|
+
operations.ExpediteTimeRemainingResponseBody,
|
|
65
|
+
| errors.ApiErrorResponse
|
|
66
|
+
| APIError
|
|
67
|
+
| SDKValidationError
|
|
68
|
+
| UnexpectedClientError
|
|
69
|
+
| InvalidRequestError
|
|
70
|
+
| RequestAbortedError
|
|
71
|
+
| RequestTimeoutError
|
|
72
|
+
| ConnectionError
|
|
73
|
+
>,
|
|
74
|
+
APICall,
|
|
75
|
+
]
|
|
76
|
+
> {
|
|
77
|
+
const parsed = safeParse(
|
|
78
|
+
request,
|
|
79
|
+
(value) =>
|
|
80
|
+
operations.ExpediteTimeRemainingRequest$outboundSchema.parse(value),
|
|
81
|
+
"Input validation failed",
|
|
82
|
+
);
|
|
83
|
+
if (!parsed.ok) {
|
|
84
|
+
return [parsed, { status: "invalid" }];
|
|
85
|
+
}
|
|
86
|
+
const payload = parsed.value;
|
|
87
|
+
const body = null;
|
|
88
|
+
|
|
89
|
+
const pathParams = {
|
|
90
|
+
vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
|
|
91
|
+
explode: false,
|
|
92
|
+
charEncoding: "percent",
|
|
93
|
+
}),
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
const path = pathToFunc("/vendors/{vendor_id_or_me}/expedite-time-remaining")(
|
|
97
|
+
pathParams,
|
|
98
|
+
);
|
|
99
|
+
|
|
100
|
+
const headers = new Headers(compactMap({
|
|
101
|
+
Accept: "application/json",
|
|
102
|
+
}));
|
|
103
|
+
|
|
104
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
105
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
106
|
+
|
|
107
|
+
const context = {
|
|
108
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
109
|
+
operationID: "expediteTimeRemaining",
|
|
110
|
+
oAuth2Scopes: [],
|
|
111
|
+
|
|
112
|
+
resolvedSecurity: requestSecurity,
|
|
113
|
+
|
|
114
|
+
securitySource: client._options.security,
|
|
115
|
+
retryConfig: options?.retries
|
|
116
|
+
|| client._options.retryConfig
|
|
117
|
+
|| { strategy: "none" },
|
|
118
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
const requestRes = client._createRequest(context, {
|
|
122
|
+
security: requestSecurity,
|
|
123
|
+
method: "GET",
|
|
124
|
+
baseURL: options?.serverURL,
|
|
125
|
+
path: path,
|
|
126
|
+
headers: headers,
|
|
127
|
+
body: body,
|
|
128
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
129
|
+
}, options);
|
|
130
|
+
if (!requestRes.ok) {
|
|
131
|
+
return [requestRes, { status: "invalid" }];
|
|
132
|
+
}
|
|
133
|
+
const req = requestRes.value;
|
|
134
|
+
|
|
135
|
+
const doResult = await client._do(req, {
|
|
136
|
+
context,
|
|
137
|
+
errorCodes: ["400", "401", "4XX", "5XX"],
|
|
138
|
+
retryConfig: context.retryConfig,
|
|
139
|
+
retryCodes: context.retryCodes,
|
|
140
|
+
});
|
|
141
|
+
if (!doResult.ok) {
|
|
142
|
+
return [doResult, { status: "request-error", request: req }];
|
|
143
|
+
}
|
|
144
|
+
const response = doResult.value;
|
|
145
|
+
|
|
146
|
+
const responseFields = {
|
|
147
|
+
HttpMeta: { Response: response, Request: req },
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
const [result] = await M.match<
|
|
151
|
+
operations.ExpediteTimeRemainingResponseBody,
|
|
152
|
+
| errors.ApiErrorResponse
|
|
153
|
+
| APIError
|
|
154
|
+
| SDKValidationError
|
|
155
|
+
| UnexpectedClientError
|
|
156
|
+
| InvalidRequestError
|
|
157
|
+
| RequestAbortedError
|
|
158
|
+
| RequestTimeoutError
|
|
159
|
+
| ConnectionError
|
|
160
|
+
>(
|
|
161
|
+
M.json(200, operations.ExpediteTimeRemainingResponseBody$inboundSchema),
|
|
162
|
+
M.jsonErr([400, 401], errors.ApiErrorResponse$inboundSchema),
|
|
163
|
+
M.fail("4XX"),
|
|
164
|
+
M.fail("5XX"),
|
|
165
|
+
)(response, { extraFields: responseFields });
|
|
166
|
+
if (!result.ok) {
|
|
167
|
+
return [result, { status: "complete", request: req, response }];
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
return [result, { status: "complete", request: req, response }];
|
|
171
|
+
}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { GreenSecurityCore } from "../core.js";
|
|
6
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import { APIError } from "../models/errors/apierror.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
|
+
import * as operations from "../models/operations/index.js";
|
|
23
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
24
|
+
import { Result } from "../types/fp.js";
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* List Vendor Credentials
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* Lists vendor credentials, required credentials, and company credentials. Utilized in Vendor Dashboard.
|
|
31
|
+
*/
|
|
32
|
+
export function vendorsListVendorCredentials(
|
|
33
|
+
client: GreenSecurityCore,
|
|
34
|
+
request: operations.ListVendorCredentialsRequest,
|
|
35
|
+
options?: RequestOptions,
|
|
36
|
+
): APIPromise<
|
|
37
|
+
Result<
|
|
38
|
+
operations.ListVendorCredentialsResponseBody,
|
|
39
|
+
| APIError
|
|
40
|
+
| SDKValidationError
|
|
41
|
+
| UnexpectedClientError
|
|
42
|
+
| InvalidRequestError
|
|
43
|
+
| RequestAbortedError
|
|
44
|
+
| RequestTimeoutError
|
|
45
|
+
| ConnectionError
|
|
46
|
+
>
|
|
47
|
+
> {
|
|
48
|
+
return new APIPromise($do(
|
|
49
|
+
client,
|
|
50
|
+
request,
|
|
51
|
+
options,
|
|
52
|
+
));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
async function $do(
|
|
56
|
+
client: GreenSecurityCore,
|
|
57
|
+
request: operations.ListVendorCredentialsRequest,
|
|
58
|
+
options?: RequestOptions,
|
|
59
|
+
): Promise<
|
|
60
|
+
[
|
|
61
|
+
Result<
|
|
62
|
+
operations.ListVendorCredentialsResponseBody,
|
|
63
|
+
| APIError
|
|
64
|
+
| SDKValidationError
|
|
65
|
+
| UnexpectedClientError
|
|
66
|
+
| InvalidRequestError
|
|
67
|
+
| RequestAbortedError
|
|
68
|
+
| RequestTimeoutError
|
|
69
|
+
| ConnectionError
|
|
70
|
+
>,
|
|
71
|
+
APICall,
|
|
72
|
+
]
|
|
73
|
+
> {
|
|
74
|
+
const parsed = safeParse(
|
|
75
|
+
request,
|
|
76
|
+
(value) =>
|
|
77
|
+
operations.ListVendorCredentialsRequest$outboundSchema.parse(value),
|
|
78
|
+
"Input validation failed",
|
|
79
|
+
);
|
|
80
|
+
if (!parsed.ok) {
|
|
81
|
+
return [parsed, { status: "invalid" }];
|
|
82
|
+
}
|
|
83
|
+
const payload = parsed.value;
|
|
84
|
+
const body = null;
|
|
85
|
+
|
|
86
|
+
const pathParams = {
|
|
87
|
+
vendor_id: encodeSimple("vendor_id", payload.vendor_id, {
|
|
88
|
+
explode: false,
|
|
89
|
+
charEncoding: "percent",
|
|
90
|
+
}),
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
const path = pathToFunc("/vendors/{vendor_id}/credentials")(pathParams);
|
|
94
|
+
|
|
95
|
+
const query = encodeFormQuery({
|
|
96
|
+
"credential_status": payload.credential_status,
|
|
97
|
+
"facility_id": payload.facility_id,
|
|
98
|
+
"include_cc": payload.include_cc,
|
|
99
|
+
"include_vc": payload.include_vc,
|
|
100
|
+
"urgent": payload.urgent,
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
const headers = new Headers(compactMap({
|
|
104
|
+
Accept: "application/json",
|
|
105
|
+
}));
|
|
106
|
+
|
|
107
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
108
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
109
|
+
|
|
110
|
+
const context = {
|
|
111
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
112
|
+
operationID: "listVendorCredentials",
|
|
113
|
+
oAuth2Scopes: [],
|
|
114
|
+
|
|
115
|
+
resolvedSecurity: requestSecurity,
|
|
116
|
+
|
|
117
|
+
securitySource: client._options.security,
|
|
118
|
+
retryConfig: options?.retries
|
|
119
|
+
|| client._options.retryConfig
|
|
120
|
+
|| { strategy: "none" },
|
|
121
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
const requestRes = client._createRequest(context, {
|
|
125
|
+
security: requestSecurity,
|
|
126
|
+
method: "GET",
|
|
127
|
+
baseURL: options?.serverURL,
|
|
128
|
+
path: path,
|
|
129
|
+
headers: headers,
|
|
130
|
+
query: query,
|
|
131
|
+
body: body,
|
|
132
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
133
|
+
}, options);
|
|
134
|
+
if (!requestRes.ok) {
|
|
135
|
+
return [requestRes, { status: "invalid" }];
|
|
136
|
+
}
|
|
137
|
+
const req = requestRes.value;
|
|
138
|
+
|
|
139
|
+
const doResult = await client._do(req, {
|
|
140
|
+
context,
|
|
141
|
+
errorCodes: ["4XX", "5XX"],
|
|
142
|
+
retryConfig: context.retryConfig,
|
|
143
|
+
retryCodes: context.retryCodes,
|
|
144
|
+
});
|
|
145
|
+
if (!doResult.ok) {
|
|
146
|
+
return [doResult, { status: "request-error", request: req }];
|
|
147
|
+
}
|
|
148
|
+
const response = doResult.value;
|
|
149
|
+
|
|
150
|
+
const [result] = await M.match<
|
|
151
|
+
operations.ListVendorCredentialsResponseBody,
|
|
152
|
+
| APIError
|
|
153
|
+
| SDKValidationError
|
|
154
|
+
| UnexpectedClientError
|
|
155
|
+
| InvalidRequestError
|
|
156
|
+
| RequestAbortedError
|
|
157
|
+
| RequestTimeoutError
|
|
158
|
+
| ConnectionError
|
|
159
|
+
>(
|
|
160
|
+
M.json(200, operations.ListVendorCredentialsResponseBody$inboundSchema),
|
|
161
|
+
M.fail("4XX"),
|
|
162
|
+
M.fail("5XX"),
|
|
163
|
+
)(response);
|
|
164
|
+
if (!result.ok) {
|
|
165
|
+
return [result, { status: "complete", request: req, response }];
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
return [result, { status: "complete", request: req, response }];
|
|
169
|
+
}
|