@greensecurity/javascript-sdk 0.15.0 → 0.16.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/README.md +31 -19
- package/bin/mcp-server.js +834 -198
- package/bin/mcp-server.js.map +45 -32
- package/funcs/organizationsListOrSearchFacilities.d.ts +1 -1
- package/funcs/organizationsListOrSearchFacilities.d.ts.map +1 -1
- package/funcs/organizationsListOrSearchFacilities.js +2 -2
- 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 +16 -0
- package/funcs/supportArticlesListOrSearchSupportArticles.d.ts.map +1 -0
- package/funcs/supportArticlesListOrSearchSupportArticles.js +118 -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/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/vendorsListVendorJobTitles.d.ts +1 -1
- package/funcs/vendorsListVendorJobTitles.d.ts.map +1 -1
- package/funcs/vendorsListVendorJobTitles.js +1 -1
- 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 +19 -13
- package/mcp-server/server.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/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/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 +12 -0
- package/models/components/expand.d.ts.map +1 -1
- package/models/components/expand.js +4 -0
- package/models/components/expand.js.map +1 -1
- package/models/components/index.d.ts +5 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +5 -1
- package/models/components/index.js.map +1 -1
- 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/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 +3 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +3 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listorsearchfacilities.d.ts +15 -15
- package/models/operations/listorsearchfacilities.d.ts.map +1 -1
- package/models/operations/listorsearchfacilities.js +20 -18
- package/models/operations/listorsearchfacilities.js.map +1 -1
- package/models/operations/listorsearchsupportarticles.d.ts +81 -0
- package/models/operations/listorsearchsupportarticles.d.ts.map +1 -0
- package/models/operations/listorsearchsupportarticles.js +114 -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/listvendorjobtitles.d.ts +13 -13
- package/models/operations/listvendorjobtitles.d.ts.map +1 -1
- package/models/operations/listvendorjobtitles.js +16 -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 +9 -6
- package/react-query/index.d.ts.map +1 -1
- package/react-query/index.js +9 -6
- package/react-query/index.js.map +1 -1
- package/react-query/organizationsListOrSearchFacilities.d.ts +4 -4
- package/react-query/organizationsListOrSearchFacilities.d.ts.map +1 -1
- package/react-query/organizationsListOrSearchFacilities.js +1 -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 +50 -0
- package/react-query/supportArticlesListOrSearchSupportArticles.d.ts.map +1 -0
- package/react-query/supportArticlesListOrSearchSupportArticles.js +101 -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/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/vendorsListVendorJobTitles.d.ts +1 -1
- package/react-query/vendorsListVendorJobTitles.d.ts.map +1 -1
- package/sdk/organizations.d.ts +1 -1
- package/sdk/organizations.d.ts.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 +27 -0
- package/sdk/supportarticles.d.ts.map +1 -0
- package/sdk/supportarticles.js +39 -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 +9 -2
- package/sdk/vendors.d.ts.map +1 -1
- package/sdk/vendors.js +10 -0
- package/sdk/vendors.js.map +1 -1
- package/src/__tests__/organizations.test.ts +5 -175
- package/src/__tests__/supportarticles.test.ts +63 -0
- package/src/__tests__/user.test.ts +13 -7
- package/src/__tests__/vendors.test.ts +7 -1
- package/src/funcs/organizationsListOrSearchFacilities.ts +8 -5
- package/src/funcs/supportArticlesGetSupportArticle.ts +181 -0
- package/src/funcs/supportArticlesListOrSearchSupportArticles.ts +165 -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/vendorsListVendorCredentials.ts +169 -0
- package/src/funcs/vendorsListVendorJobTitles.ts +7 -4
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +19 -13
- 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/vendorsListVendorCredentials.ts +37 -0
- 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 +4 -0
- package/src/models/components/index.ts +5 -1
- 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/getsupportarticle.ts +77 -0
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/listorsearchfacilities.ts +49 -37
- package/src/models/operations/listorsearchsupportarticles.ts +186 -0
- package/src/models/operations/listvendorcredentials.ts +281 -0
- package/src/models/operations/listvendorjobtitles.ts +31 -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 +9 -6
- package/src/react-query/organizationsListOrSearchFacilities.ts +5 -5
- package/src/react-query/supportArticlesGetSupportArticle.ts +192 -0
- package/src/react-query/supportArticlesListOrSearchSupportArticles.ts +201 -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/vendorsListVendorCredentials.ts +200 -0
- package/src/react-query/vendorsListVendorJobTitles.ts +1 -1
- package/src/sdk/organizations.ts +1 -1
- package/src/sdk/sdk.ts +10 -4
- package/src/sdk/supportarticles.ts +53 -0
- package/src/sdk/{user.ts → users.ts} +16 -16
- package/src/sdk/vendors.ts +22 -2
- 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
|
*/
|
|
@@ -77,13 +77,14 @@ export const ListOrSearchFacilitiesRequest$inboundSchema: z.ZodType<
|
|
|
77
77
|
system_id: z.number().int().optional(),
|
|
78
78
|
name_like: z.string().optional(),
|
|
79
79
|
state_like: z.string().optional(),
|
|
80
|
-
|
|
80
|
+
active_status: components.ActiveStatus$inboundSchema.default("Active"),
|
|
81
81
|
}).transform((v) => {
|
|
82
82
|
return remap$(v, {
|
|
83
83
|
"items_per_page": "itemsPerPage",
|
|
84
84
|
"system_id": "systemId",
|
|
85
85
|
"name_like": "nameLike",
|
|
86
86
|
"state_like": "stateLike",
|
|
87
|
+
"active_status": "activeStatus",
|
|
87
88
|
});
|
|
88
89
|
});
|
|
89
90
|
|
|
@@ -97,7 +98,7 @@ export type ListOrSearchFacilitiesRequest$Outbound = {
|
|
|
97
98
|
system_id?: number | undefined;
|
|
98
99
|
name_like?: string | undefined;
|
|
99
100
|
state_like?: string | undefined;
|
|
100
|
-
|
|
101
|
+
active_status: string;
|
|
101
102
|
};
|
|
102
103
|
|
|
103
104
|
/** @internal */
|
|
@@ -114,13 +115,14 @@ export const ListOrSearchFacilitiesRequest$outboundSchema: z.ZodType<
|
|
|
114
115
|
systemId: z.number().int().optional(),
|
|
115
116
|
nameLike: z.string().optional(),
|
|
116
117
|
stateLike: z.string().optional(),
|
|
117
|
-
|
|
118
|
+
activeStatus: components.ActiveStatus$outboundSchema.default("Active"),
|
|
118
119
|
}).transform((v) => {
|
|
119
120
|
return remap$(v, {
|
|
120
121
|
itemsPerPage: "items_per_page",
|
|
121
122
|
systemId: "system_id",
|
|
122
123
|
nameLike: "name_like",
|
|
123
124
|
stateLike: "state_like",
|
|
125
|
+
activeStatus: "active_status",
|
|
124
126
|
});
|
|
125
127
|
});
|
|
126
128
|
|
|
@@ -158,62 +160,72 @@ export function listOrSearchFacilitiesRequestFromJSON(
|
|
|
158
160
|
}
|
|
159
161
|
|
|
160
162
|
/** @internal */
|
|
161
|
-
export const
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
163
|
+
export const ListOrSearchFacilitiesListOrSearchFacilitiesOk$inboundSchema:
|
|
164
|
+
z.ZodType<
|
|
165
|
+
ListOrSearchFacilitiesListOrSearchFacilitiesOk,
|
|
166
|
+
z.ZodTypeDef,
|
|
167
|
+
unknown
|
|
168
|
+
> = z.object({
|
|
169
|
+
pager: components.Pager$inboundSchema,
|
|
170
|
+
items: z.array(components.Facility$inboundSchema),
|
|
171
|
+
});
|
|
169
172
|
|
|
170
173
|
/** @internal */
|
|
171
|
-
export type
|
|
174
|
+
export type ListOrSearchFacilitiesListOrSearchFacilitiesOk$Outbound = {
|
|
172
175
|
pager: components.Pager$Outbound;
|
|
173
176
|
items: Array<components.Facility$Outbound>;
|
|
174
177
|
};
|
|
175
178
|
|
|
176
179
|
/** @internal */
|
|
177
|
-
export const
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
180
|
+
export const ListOrSearchFacilitiesListOrSearchFacilitiesOk$outboundSchema:
|
|
181
|
+
z.ZodType<
|
|
182
|
+
ListOrSearchFacilitiesListOrSearchFacilitiesOk$Outbound,
|
|
183
|
+
z.ZodTypeDef,
|
|
184
|
+
ListOrSearchFacilitiesListOrSearchFacilitiesOk
|
|
185
|
+
> = z.object({
|
|
186
|
+
pager: components.Pager$outboundSchema,
|
|
187
|
+
items: z.array(components.Facility$outboundSchema),
|
|
188
|
+
});
|
|
185
189
|
|
|
186
190
|
/**
|
|
187
191
|
* @internal
|
|
188
192
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
189
193
|
*/
|
|
190
|
-
export namespace
|
|
191
|
-
/** @deprecated use `
|
|
192
|
-
export const inboundSchema =
|
|
193
|
-
|
|
194
|
+
export namespace ListOrSearchFacilitiesListOrSearchFacilitiesOk$ {
|
|
195
|
+
/** @deprecated use `ListOrSearchFacilitiesListOrSearchFacilitiesOk$inboundSchema` instead. */
|
|
196
|
+
export const inboundSchema =
|
|
197
|
+
ListOrSearchFacilitiesListOrSearchFacilitiesOk$inboundSchema;
|
|
198
|
+
/** @deprecated use `ListOrSearchFacilitiesListOrSearchFacilitiesOk$outboundSchema` instead. */
|
|
194
199
|
export const outboundSchema =
|
|
195
|
-
|
|
196
|
-
/** @deprecated use `
|
|
197
|
-
export type Outbound =
|
|
200
|
+
ListOrSearchFacilitiesListOrSearchFacilitiesOk$outboundSchema;
|
|
201
|
+
/** @deprecated use `ListOrSearchFacilitiesListOrSearchFacilitiesOk$Outbound` instead. */
|
|
202
|
+
export type Outbound =
|
|
203
|
+
ListOrSearchFacilitiesListOrSearchFacilitiesOk$Outbound;
|
|
198
204
|
}
|
|
199
205
|
|
|
200
|
-
export function
|
|
201
|
-
|
|
206
|
+
export function listOrSearchFacilitiesListOrSearchFacilitiesOkToJSON(
|
|
207
|
+
listOrSearchFacilitiesListOrSearchFacilitiesOk:
|
|
208
|
+
ListOrSearchFacilitiesListOrSearchFacilitiesOk,
|
|
202
209
|
): string {
|
|
203
210
|
return JSON.stringify(
|
|
204
|
-
|
|
205
|
-
|
|
211
|
+
ListOrSearchFacilitiesListOrSearchFacilitiesOk$outboundSchema.parse(
|
|
212
|
+
listOrSearchFacilitiesListOrSearchFacilitiesOk,
|
|
206
213
|
),
|
|
207
214
|
);
|
|
208
215
|
}
|
|
209
216
|
|
|
210
|
-
export function
|
|
217
|
+
export function listOrSearchFacilitiesListOrSearchFacilitiesOkFromJSON(
|
|
211
218
|
jsonString: string,
|
|
212
|
-
): SafeParseResult<
|
|
219
|
+
): SafeParseResult<
|
|
220
|
+
ListOrSearchFacilitiesListOrSearchFacilitiesOk,
|
|
221
|
+
SDKValidationError
|
|
222
|
+
> {
|
|
213
223
|
return safeParse(
|
|
214
224
|
jsonString,
|
|
215
225
|
(x) =>
|
|
216
|
-
|
|
217
|
-
|
|
226
|
+
ListOrSearchFacilitiesListOrSearchFacilitiesOk$inboundSchema.parse(
|
|
227
|
+
JSON.parse(x),
|
|
228
|
+
),
|
|
229
|
+
`Failed to parse 'ListOrSearchFacilitiesListOrSearchFacilitiesOk' from JSON`,
|
|
218
230
|
);
|
|
219
231
|
}
|
|
@@ -0,0 +1,186 @@
|
|
|
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
|
+
/** @internal */
|
|
43
|
+
export const ListOrSearchSupportArticlesRequest$inboundSchema: z.ZodType<
|
|
44
|
+
ListOrSearchSupportArticlesRequest,
|
|
45
|
+
z.ZodTypeDef,
|
|
46
|
+
unknown
|
|
47
|
+
> = z.object({
|
|
48
|
+
sort: z.nullable(z.string()).optional(),
|
|
49
|
+
desc: components.Desc$inboundSchema.optional(),
|
|
50
|
+
page: z.number().int().optional(),
|
|
51
|
+
items_per_page: z.number().int().optional(),
|
|
52
|
+
}).transform((v) => {
|
|
53
|
+
return remap$(v, {
|
|
54
|
+
"items_per_page": "itemsPerPage",
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export type ListOrSearchSupportArticlesRequest$Outbound = {
|
|
60
|
+
sort?: string | null | undefined;
|
|
61
|
+
desc?: components.Desc$Outbound | undefined;
|
|
62
|
+
page?: number | undefined;
|
|
63
|
+
items_per_page?: number | undefined;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
/** @internal */
|
|
67
|
+
export const ListOrSearchSupportArticlesRequest$outboundSchema: z.ZodType<
|
|
68
|
+
ListOrSearchSupportArticlesRequest$Outbound,
|
|
69
|
+
z.ZodTypeDef,
|
|
70
|
+
ListOrSearchSupportArticlesRequest
|
|
71
|
+
> = z.object({
|
|
72
|
+
sort: z.nullable(z.string()).optional(),
|
|
73
|
+
desc: components.Desc$outboundSchema.optional(),
|
|
74
|
+
page: z.number().int().optional(),
|
|
75
|
+
itemsPerPage: z.number().int().optional(),
|
|
76
|
+
}).transform((v) => {
|
|
77
|
+
return remap$(v, {
|
|
78
|
+
itemsPerPage: "items_per_page",
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* @internal
|
|
84
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
85
|
+
*/
|
|
86
|
+
export namespace ListOrSearchSupportArticlesRequest$ {
|
|
87
|
+
/** @deprecated use `ListOrSearchSupportArticlesRequest$inboundSchema` instead. */
|
|
88
|
+
export const inboundSchema = ListOrSearchSupportArticlesRequest$inboundSchema;
|
|
89
|
+
/** @deprecated use `ListOrSearchSupportArticlesRequest$outboundSchema` instead. */
|
|
90
|
+
export const outboundSchema =
|
|
91
|
+
ListOrSearchSupportArticlesRequest$outboundSchema;
|
|
92
|
+
/** @deprecated use `ListOrSearchSupportArticlesRequest$Outbound` instead. */
|
|
93
|
+
export type Outbound = ListOrSearchSupportArticlesRequest$Outbound;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function listOrSearchSupportArticlesRequestToJSON(
|
|
97
|
+
listOrSearchSupportArticlesRequest: ListOrSearchSupportArticlesRequest,
|
|
98
|
+
): string {
|
|
99
|
+
return JSON.stringify(
|
|
100
|
+
ListOrSearchSupportArticlesRequest$outboundSchema.parse(
|
|
101
|
+
listOrSearchSupportArticlesRequest,
|
|
102
|
+
),
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function listOrSearchSupportArticlesRequestFromJSON(
|
|
107
|
+
jsonString: string,
|
|
108
|
+
): SafeParseResult<ListOrSearchSupportArticlesRequest, SDKValidationError> {
|
|
109
|
+
return safeParse(
|
|
110
|
+
jsonString,
|
|
111
|
+
(x) =>
|
|
112
|
+
ListOrSearchSupportArticlesRequest$inboundSchema.parse(JSON.parse(x)),
|
|
113
|
+
`Failed to parse 'ListOrSearchSupportArticlesRequest' from JSON`,
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/** @internal */
|
|
118
|
+
export const ListOrSearchSupportArticlesListOrSearchArticlesOk$inboundSchema:
|
|
119
|
+
z.ZodType<
|
|
120
|
+
ListOrSearchSupportArticlesListOrSearchArticlesOk,
|
|
121
|
+
z.ZodTypeDef,
|
|
122
|
+
unknown
|
|
123
|
+
> = z.object({
|
|
124
|
+
pager: components.Pager$inboundSchema,
|
|
125
|
+
items: z.array(components.SupportArticle$inboundSchema),
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
/** @internal */
|
|
129
|
+
export type ListOrSearchSupportArticlesListOrSearchArticlesOk$Outbound = {
|
|
130
|
+
pager: components.Pager$Outbound;
|
|
131
|
+
items: Array<components.SupportArticle$Outbound>;
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
/** @internal */
|
|
135
|
+
export const ListOrSearchSupportArticlesListOrSearchArticlesOk$outboundSchema:
|
|
136
|
+
z.ZodType<
|
|
137
|
+
ListOrSearchSupportArticlesListOrSearchArticlesOk$Outbound,
|
|
138
|
+
z.ZodTypeDef,
|
|
139
|
+
ListOrSearchSupportArticlesListOrSearchArticlesOk
|
|
140
|
+
> = z.object({
|
|
141
|
+
pager: components.Pager$outboundSchema,
|
|
142
|
+
items: z.array(components.SupportArticle$outboundSchema),
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* @internal
|
|
147
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
148
|
+
*/
|
|
149
|
+
export namespace ListOrSearchSupportArticlesListOrSearchArticlesOk$ {
|
|
150
|
+
/** @deprecated use `ListOrSearchSupportArticlesListOrSearchArticlesOk$inboundSchema` instead. */
|
|
151
|
+
export const inboundSchema =
|
|
152
|
+
ListOrSearchSupportArticlesListOrSearchArticlesOk$inboundSchema;
|
|
153
|
+
/** @deprecated use `ListOrSearchSupportArticlesListOrSearchArticlesOk$outboundSchema` instead. */
|
|
154
|
+
export const outboundSchema =
|
|
155
|
+
ListOrSearchSupportArticlesListOrSearchArticlesOk$outboundSchema;
|
|
156
|
+
/** @deprecated use `ListOrSearchSupportArticlesListOrSearchArticlesOk$Outbound` instead. */
|
|
157
|
+
export type Outbound =
|
|
158
|
+
ListOrSearchSupportArticlesListOrSearchArticlesOk$Outbound;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export function listOrSearchSupportArticlesListOrSearchArticlesOkToJSON(
|
|
162
|
+
listOrSearchSupportArticlesListOrSearchArticlesOk:
|
|
163
|
+
ListOrSearchSupportArticlesListOrSearchArticlesOk,
|
|
164
|
+
): string {
|
|
165
|
+
return JSON.stringify(
|
|
166
|
+
ListOrSearchSupportArticlesListOrSearchArticlesOk$outboundSchema.parse(
|
|
167
|
+
listOrSearchSupportArticlesListOrSearchArticlesOk,
|
|
168
|
+
),
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export function listOrSearchSupportArticlesListOrSearchArticlesOkFromJSON(
|
|
173
|
+
jsonString: string,
|
|
174
|
+
): SafeParseResult<
|
|
175
|
+
ListOrSearchSupportArticlesListOrSearchArticlesOk,
|
|
176
|
+
SDKValidationError
|
|
177
|
+
> {
|
|
178
|
+
return safeParse(
|
|
179
|
+
jsonString,
|
|
180
|
+
(x) =>
|
|
181
|
+
ListOrSearchSupportArticlesListOrSearchArticlesOk$inboundSchema.parse(
|
|
182
|
+
JSON.parse(x),
|
|
183
|
+
),
|
|
184
|
+
`Failed to parse 'ListOrSearchSupportArticlesListOrSearchArticlesOk' from JSON`,
|
|
185
|
+
);
|
|
186
|
+
}
|
|
@@ -0,0 +1,281 @@
|
|
|
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 ListVendorCredentialsRequest = {
|
|
13
|
+
/**
|
|
14
|
+
* Search by credential status (Pending Approval, Declined, Expired...)
|
|
15
|
+
*/
|
|
16
|
+
credentialStatus?: components.CredentialStatus | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* The ID associated with a medical facility
|
|
19
|
+
*/
|
|
20
|
+
facilityId?: number | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* False will return credentials that apply to vendor's company
|
|
23
|
+
*/
|
|
24
|
+
includeVc?: number | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* False will exclude credentials that apply to company
|
|
27
|
+
*/
|
|
28
|
+
includeCc?: number | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Marking as a 1 will return vendor credentials listed as urgent
|
|
31
|
+
*/
|
|
32
|
+
urgent?: number | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* ID of the vendor rep.
|
|
35
|
+
*/
|
|
36
|
+
vendorId: number;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export type Credentials = {
|
|
40
|
+
id: number;
|
|
41
|
+
name: string;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* The request was successful, and the server has returned the requested resource in the response body.
|
|
46
|
+
*/
|
|
47
|
+
export type ListVendorCredentialsResponseBody = {
|
|
48
|
+
vendorRequiredCredentials: Array<components.VendorRequiredCredential>;
|
|
49
|
+
credentials: Array<Credentials>;
|
|
50
|
+
vendorCredentials: Array<components.VendorCredentialSlim>;
|
|
51
|
+
/**
|
|
52
|
+
* Pagination information for a pageable list
|
|
53
|
+
*/
|
|
54
|
+
pager: components.Pager;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const ListVendorCredentialsRequest$inboundSchema: z.ZodType<
|
|
59
|
+
ListVendorCredentialsRequest,
|
|
60
|
+
z.ZodTypeDef,
|
|
61
|
+
unknown
|
|
62
|
+
> = z.object({
|
|
63
|
+
credential_status: components.CredentialStatus$inboundSchema.default(
|
|
64
|
+
"Pending Vendor",
|
|
65
|
+
),
|
|
66
|
+
facility_id: z.number().optional(),
|
|
67
|
+
include_vc: z.number().optional(),
|
|
68
|
+
include_cc: z.number().optional(),
|
|
69
|
+
urgent: z.number().optional(),
|
|
70
|
+
vendor_id: z.number().int(),
|
|
71
|
+
}).transform((v) => {
|
|
72
|
+
return remap$(v, {
|
|
73
|
+
"credential_status": "credentialStatus",
|
|
74
|
+
"facility_id": "facilityId",
|
|
75
|
+
"include_vc": "includeVc",
|
|
76
|
+
"include_cc": "includeCc",
|
|
77
|
+
"vendor_id": "vendorId",
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
/** @internal */
|
|
82
|
+
export type ListVendorCredentialsRequest$Outbound = {
|
|
83
|
+
credential_status: string;
|
|
84
|
+
facility_id?: number | undefined;
|
|
85
|
+
include_vc?: number | undefined;
|
|
86
|
+
include_cc?: number | undefined;
|
|
87
|
+
urgent?: number | undefined;
|
|
88
|
+
vendor_id: number;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
/** @internal */
|
|
92
|
+
export const ListVendorCredentialsRequest$outboundSchema: z.ZodType<
|
|
93
|
+
ListVendorCredentialsRequest$Outbound,
|
|
94
|
+
z.ZodTypeDef,
|
|
95
|
+
ListVendorCredentialsRequest
|
|
96
|
+
> = z.object({
|
|
97
|
+
credentialStatus: components.CredentialStatus$outboundSchema.default(
|
|
98
|
+
"Pending Vendor",
|
|
99
|
+
),
|
|
100
|
+
facilityId: z.number().optional(),
|
|
101
|
+
includeVc: z.number().optional(),
|
|
102
|
+
includeCc: z.number().optional(),
|
|
103
|
+
urgent: z.number().optional(),
|
|
104
|
+
vendorId: z.number().int(),
|
|
105
|
+
}).transform((v) => {
|
|
106
|
+
return remap$(v, {
|
|
107
|
+
credentialStatus: "credential_status",
|
|
108
|
+
facilityId: "facility_id",
|
|
109
|
+
includeVc: "include_vc",
|
|
110
|
+
includeCc: "include_cc",
|
|
111
|
+
vendorId: "vendor_id",
|
|
112
|
+
});
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* @internal
|
|
117
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
118
|
+
*/
|
|
119
|
+
export namespace ListVendorCredentialsRequest$ {
|
|
120
|
+
/** @deprecated use `ListVendorCredentialsRequest$inboundSchema` instead. */
|
|
121
|
+
export const inboundSchema = ListVendorCredentialsRequest$inboundSchema;
|
|
122
|
+
/** @deprecated use `ListVendorCredentialsRequest$outboundSchema` instead. */
|
|
123
|
+
export const outboundSchema = ListVendorCredentialsRequest$outboundSchema;
|
|
124
|
+
/** @deprecated use `ListVendorCredentialsRequest$Outbound` instead. */
|
|
125
|
+
export type Outbound = ListVendorCredentialsRequest$Outbound;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export function listVendorCredentialsRequestToJSON(
|
|
129
|
+
listVendorCredentialsRequest: ListVendorCredentialsRequest,
|
|
130
|
+
): string {
|
|
131
|
+
return JSON.stringify(
|
|
132
|
+
ListVendorCredentialsRequest$outboundSchema.parse(
|
|
133
|
+
listVendorCredentialsRequest,
|
|
134
|
+
),
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export function listVendorCredentialsRequestFromJSON(
|
|
139
|
+
jsonString: string,
|
|
140
|
+
): SafeParseResult<ListVendorCredentialsRequest, SDKValidationError> {
|
|
141
|
+
return safeParse(
|
|
142
|
+
jsonString,
|
|
143
|
+
(x) => ListVendorCredentialsRequest$inboundSchema.parse(JSON.parse(x)),
|
|
144
|
+
`Failed to parse 'ListVendorCredentialsRequest' from JSON`,
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/** @internal */
|
|
149
|
+
export const Credentials$inboundSchema: z.ZodType<
|
|
150
|
+
Credentials,
|
|
151
|
+
z.ZodTypeDef,
|
|
152
|
+
unknown
|
|
153
|
+
> = z.object({
|
|
154
|
+
id: z.number().int(),
|
|
155
|
+
name: z.string(),
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
/** @internal */
|
|
159
|
+
export type Credentials$Outbound = {
|
|
160
|
+
id: number;
|
|
161
|
+
name: string;
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
/** @internal */
|
|
165
|
+
export const Credentials$outboundSchema: z.ZodType<
|
|
166
|
+
Credentials$Outbound,
|
|
167
|
+
z.ZodTypeDef,
|
|
168
|
+
Credentials
|
|
169
|
+
> = z.object({
|
|
170
|
+
id: z.number().int(),
|
|
171
|
+
name: z.string(),
|
|
172
|
+
});
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* @internal
|
|
176
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
177
|
+
*/
|
|
178
|
+
export namespace Credentials$ {
|
|
179
|
+
/** @deprecated use `Credentials$inboundSchema` instead. */
|
|
180
|
+
export const inboundSchema = Credentials$inboundSchema;
|
|
181
|
+
/** @deprecated use `Credentials$outboundSchema` instead. */
|
|
182
|
+
export const outboundSchema = Credentials$outboundSchema;
|
|
183
|
+
/** @deprecated use `Credentials$Outbound` instead. */
|
|
184
|
+
export type Outbound = Credentials$Outbound;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export function credentialsToJSON(credentials: Credentials): string {
|
|
188
|
+
return JSON.stringify(Credentials$outboundSchema.parse(credentials));
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export function credentialsFromJSON(
|
|
192
|
+
jsonString: string,
|
|
193
|
+
): SafeParseResult<Credentials, SDKValidationError> {
|
|
194
|
+
return safeParse(
|
|
195
|
+
jsonString,
|
|
196
|
+
(x) => Credentials$inboundSchema.parse(JSON.parse(x)),
|
|
197
|
+
`Failed to parse 'Credentials' from JSON`,
|
|
198
|
+
);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/** @internal */
|
|
202
|
+
export const ListVendorCredentialsResponseBody$inboundSchema: z.ZodType<
|
|
203
|
+
ListVendorCredentialsResponseBody,
|
|
204
|
+
z.ZodTypeDef,
|
|
205
|
+
unknown
|
|
206
|
+
> = z.object({
|
|
207
|
+
vendor_required_credentials: z.array(
|
|
208
|
+
components.VendorRequiredCredential$inboundSchema,
|
|
209
|
+
),
|
|
210
|
+
credentials: z.array(z.lazy(() => Credentials$inboundSchema)),
|
|
211
|
+
vendor_credentials: z.array(components.VendorCredentialSlim$inboundSchema),
|
|
212
|
+
pager: components.Pager$inboundSchema,
|
|
213
|
+
}).transform((v) => {
|
|
214
|
+
return remap$(v, {
|
|
215
|
+
"vendor_required_credentials": "vendorRequiredCredentials",
|
|
216
|
+
"vendor_credentials": "vendorCredentials",
|
|
217
|
+
});
|
|
218
|
+
});
|
|
219
|
+
|
|
220
|
+
/** @internal */
|
|
221
|
+
export type ListVendorCredentialsResponseBody$Outbound = {
|
|
222
|
+
vendor_required_credentials: Array<
|
|
223
|
+
components.VendorRequiredCredential$Outbound
|
|
224
|
+
>;
|
|
225
|
+
credentials: Array<Credentials$Outbound>;
|
|
226
|
+
vendor_credentials: Array<components.VendorCredentialSlim$Outbound>;
|
|
227
|
+
pager: components.Pager$Outbound;
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
/** @internal */
|
|
231
|
+
export const ListVendorCredentialsResponseBody$outboundSchema: z.ZodType<
|
|
232
|
+
ListVendorCredentialsResponseBody$Outbound,
|
|
233
|
+
z.ZodTypeDef,
|
|
234
|
+
ListVendorCredentialsResponseBody
|
|
235
|
+
> = z.object({
|
|
236
|
+
vendorRequiredCredentials: z.array(
|
|
237
|
+
components.VendorRequiredCredential$outboundSchema,
|
|
238
|
+
),
|
|
239
|
+
credentials: z.array(z.lazy(() => Credentials$outboundSchema)),
|
|
240
|
+
vendorCredentials: z.array(components.VendorCredentialSlim$outboundSchema),
|
|
241
|
+
pager: components.Pager$outboundSchema,
|
|
242
|
+
}).transform((v) => {
|
|
243
|
+
return remap$(v, {
|
|
244
|
+
vendorRequiredCredentials: "vendor_required_credentials",
|
|
245
|
+
vendorCredentials: "vendor_credentials",
|
|
246
|
+
});
|
|
247
|
+
});
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* @internal
|
|
251
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
252
|
+
*/
|
|
253
|
+
export namespace ListVendorCredentialsResponseBody$ {
|
|
254
|
+
/** @deprecated use `ListVendorCredentialsResponseBody$inboundSchema` instead. */
|
|
255
|
+
export const inboundSchema = ListVendorCredentialsResponseBody$inboundSchema;
|
|
256
|
+
/** @deprecated use `ListVendorCredentialsResponseBody$outboundSchema` instead. */
|
|
257
|
+
export const outboundSchema =
|
|
258
|
+
ListVendorCredentialsResponseBody$outboundSchema;
|
|
259
|
+
/** @deprecated use `ListVendorCredentialsResponseBody$Outbound` instead. */
|
|
260
|
+
export type Outbound = ListVendorCredentialsResponseBody$Outbound;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
export function listVendorCredentialsResponseBodyToJSON(
|
|
264
|
+
listVendorCredentialsResponseBody: ListVendorCredentialsResponseBody,
|
|
265
|
+
): string {
|
|
266
|
+
return JSON.stringify(
|
|
267
|
+
ListVendorCredentialsResponseBody$outboundSchema.parse(
|
|
268
|
+
listVendorCredentialsResponseBody,
|
|
269
|
+
),
|
|
270
|
+
);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export function listVendorCredentialsResponseBodyFromJSON(
|
|
274
|
+
jsonString: string,
|
|
275
|
+
): SafeParseResult<ListVendorCredentialsResponseBody, SDKValidationError> {
|
|
276
|
+
return safeParse(
|
|
277
|
+
jsonString,
|
|
278
|
+
(x) => ListVendorCredentialsResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
279
|
+
`Failed to parse 'ListVendorCredentialsResponseBody' from JSON`,
|
|
280
|
+
);
|
|
281
|
+
}
|