@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
|
@@ -30,12 +30,12 @@ export type ContactFacility = FacilitySummary | number;
|
|
|
30
30
|
|
|
31
31
|
export type System = SystemSummary | number;
|
|
32
32
|
|
|
33
|
-
export const
|
|
33
|
+
export const Status = {
|
|
34
34
|
Active: "Active",
|
|
35
35
|
Inactive: "Inactive",
|
|
36
36
|
Deleted: "Deleted",
|
|
37
37
|
} as const;
|
|
38
|
-
export type
|
|
38
|
+
export type Status = ClosedEnum<typeof Status>;
|
|
39
39
|
|
|
40
40
|
export type Department = DepartmentSummary | number;
|
|
41
41
|
|
|
@@ -45,7 +45,7 @@ export type Department = DepartmentSummary | number;
|
|
|
45
45
|
export type Contact = {
|
|
46
46
|
facility?: FacilitySummary | number | undefined;
|
|
47
47
|
system?: SystemSummary | number | undefined;
|
|
48
|
-
status:
|
|
48
|
+
status: Status;
|
|
49
49
|
position?: string | null | undefined;
|
|
50
50
|
department?: DepartmentSummary | number | null | undefined;
|
|
51
51
|
};
|
|
@@ -138,24 +138,22 @@ export function systemFromJSON(
|
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
/** @internal */
|
|
141
|
-
export const
|
|
142
|
-
|
|
143
|
-
> = z.nativeEnum(ContactStatus);
|
|
141
|
+
export const Status$inboundSchema: z.ZodNativeEnum<typeof Status> = z
|
|
142
|
+
.nativeEnum(Status);
|
|
144
143
|
|
|
145
144
|
/** @internal */
|
|
146
|
-
export const
|
|
147
|
-
|
|
148
|
-
> = ContactStatus$inboundSchema;
|
|
145
|
+
export const Status$outboundSchema: z.ZodNativeEnum<typeof Status> =
|
|
146
|
+
Status$inboundSchema;
|
|
149
147
|
|
|
150
148
|
/**
|
|
151
149
|
* @internal
|
|
152
150
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
153
151
|
*/
|
|
154
|
-
export namespace
|
|
155
|
-
/** @deprecated use `
|
|
156
|
-
export const inboundSchema =
|
|
157
|
-
/** @deprecated use `
|
|
158
|
-
export const outboundSchema =
|
|
152
|
+
export namespace Status$ {
|
|
153
|
+
/** @deprecated use `Status$inboundSchema` instead. */
|
|
154
|
+
export const inboundSchema = Status$inboundSchema;
|
|
155
|
+
/** @deprecated use `Status$outboundSchema` instead. */
|
|
156
|
+
export const outboundSchema = Status$outboundSchema;
|
|
159
157
|
}
|
|
160
158
|
|
|
161
159
|
/** @internal */
|
|
@@ -208,7 +206,7 @@ export const Contact$inboundSchema: z.ZodType<Contact, z.ZodTypeDef, unknown> =
|
|
|
208
206
|
facility: z.union([FacilitySummary$inboundSchema, z.number().int()])
|
|
209
207
|
.optional(),
|
|
210
208
|
system: z.union([SystemSummary$inboundSchema, z.number().int()]).optional(),
|
|
211
|
-
status:
|
|
209
|
+
status: Status$inboundSchema,
|
|
212
210
|
position: z.nullable(z.string()).optional(),
|
|
213
211
|
department: z.nullable(
|
|
214
212
|
z.union([DepartmentSummary$inboundSchema, z.number().int()]),
|
|
@@ -233,7 +231,7 @@ export const Contact$outboundSchema: z.ZodType<
|
|
|
233
231
|
facility: z.union([FacilitySummary$outboundSchema, z.number().int()])
|
|
234
232
|
.optional(),
|
|
235
233
|
system: z.union([SystemSummary$outboundSchema, z.number().int()]).optional(),
|
|
236
|
-
status:
|
|
234
|
+
status: Status$outboundSchema,
|
|
237
235
|
position: z.nullable(z.string()).optional(),
|
|
238
236
|
department: z.nullable(
|
|
239
237
|
z.union([DepartmentSummary$outboundSchema, z.number().int()]),
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Status values
|
|
10
|
+
*/
|
|
11
|
+
export const CredentialStatus = {
|
|
12
|
+
PendingApproval: "Pending Approval",
|
|
13
|
+
PendingVendor: "Pending Vendor",
|
|
14
|
+
Declined: "Declined",
|
|
15
|
+
Expired: "Expired",
|
|
16
|
+
Suspended: "Suspended",
|
|
17
|
+
Denied: "Denied",
|
|
18
|
+
Approved: "Approved",
|
|
19
|
+
} as const;
|
|
20
|
+
/**
|
|
21
|
+
* Status values
|
|
22
|
+
*/
|
|
23
|
+
export type CredentialStatus = ClosedEnum<typeof CredentialStatus>;
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const CredentialStatus$inboundSchema: z.ZodNativeEnum<
|
|
27
|
+
typeof CredentialStatus
|
|
28
|
+
> = z.nativeEnum(CredentialStatus);
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const CredentialStatus$outboundSchema: z.ZodNativeEnum<
|
|
32
|
+
typeof CredentialStatus
|
|
33
|
+
> = CredentialStatus$inboundSchema;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @internal
|
|
37
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
38
|
+
*/
|
|
39
|
+
export namespace CredentialStatus$ {
|
|
40
|
+
/** @deprecated use `CredentialStatus$inboundSchema` instead. */
|
|
41
|
+
export const inboundSchema = CredentialStatus$inboundSchema;
|
|
42
|
+
/** @deprecated use `CredentialStatus$outboundSchema` instead. */
|
|
43
|
+
export const outboundSchema = CredentialStatus$outboundSchema;
|
|
44
|
+
}
|
|
@@ -26,6 +26,10 @@ export const Expand = {
|
|
|
26
26
|
VendorUser: "vendor.user",
|
|
27
27
|
VendorVendorType: "vendor.vendor_type",
|
|
28
28
|
VendorPaymentProfile: "vendor.payment_profile",
|
|
29
|
+
SupportArticleDescription: "support_article.description",
|
|
30
|
+
SupportArticlePublished: "support_article.published",
|
|
31
|
+
SupportArticleNotes: "support_article.notes",
|
|
32
|
+
SupportArticleSupportCategory: "support_article.support_category",
|
|
29
33
|
} as const;
|
|
30
34
|
/**
|
|
31
35
|
* An expansion scope that is valid for the object being requested.
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
export * from "./activestatus.js";
|
|
5
6
|
export * from "./company.js";
|
|
6
7
|
export * from "./contact.js";
|
|
8
|
+
export * from "./credentialstatus.js";
|
|
7
9
|
export * from "./departmentsummary.js";
|
|
8
10
|
export * from "./desc.js";
|
|
9
11
|
export * from "./expand.js";
|
|
@@ -17,8 +19,10 @@ export * from "./pager.js";
|
|
|
17
19
|
export * from "./passwordrequiredresponse.js";
|
|
18
20
|
export * from "./samlloginrequiredresponse.js";
|
|
19
21
|
export * from "./security.js";
|
|
20
|
-
export * from "./
|
|
22
|
+
export * from "./supportarticle.js";
|
|
21
23
|
export * from "./systemsummary.js";
|
|
22
24
|
export * from "./user.js";
|
|
25
|
+
export * from "./vendorcredentialslim.js";
|
|
23
26
|
export * from "./vendorjobtitle.js";
|
|
27
|
+
export * from "./vendorrequiredcredential.js";
|
|
24
28
|
export * from "./vendortype.js";
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type SupportArticle = {
|
|
12
|
+
id: number;
|
|
13
|
+
title: string | null;
|
|
14
|
+
description?: string | null | undefined;
|
|
15
|
+
content?: string | null | undefined;
|
|
16
|
+
published?: boolean | null | undefined;
|
|
17
|
+
notes?: string | null | undefined;
|
|
18
|
+
videoUrl?: string | null | undefined;
|
|
19
|
+
category?: string | null | undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const SupportArticle$inboundSchema: z.ZodType<
|
|
24
|
+
SupportArticle,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z.object({
|
|
28
|
+
id: z.number().int(),
|
|
29
|
+
title: z.nullable(z.string()),
|
|
30
|
+
description: z.nullable(z.string()).optional(),
|
|
31
|
+
content: z.nullable(z.string()).optional(),
|
|
32
|
+
published: z.nullable(z.boolean()).optional(),
|
|
33
|
+
notes: z.nullable(z.string()).optional(),
|
|
34
|
+
video_url: z.nullable(z.string()).optional(),
|
|
35
|
+
category: z.nullable(z.string()).optional(),
|
|
36
|
+
}).transform((v) => {
|
|
37
|
+
return remap$(v, {
|
|
38
|
+
"video_url": "videoUrl",
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export type SupportArticle$Outbound = {
|
|
44
|
+
id: number;
|
|
45
|
+
title: string | null;
|
|
46
|
+
description?: string | null | undefined;
|
|
47
|
+
content?: string | null | undefined;
|
|
48
|
+
published?: boolean | null | undefined;
|
|
49
|
+
notes?: string | null | undefined;
|
|
50
|
+
video_url?: string | null | undefined;
|
|
51
|
+
category?: string | null | undefined;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const SupportArticle$outboundSchema: z.ZodType<
|
|
56
|
+
SupportArticle$Outbound,
|
|
57
|
+
z.ZodTypeDef,
|
|
58
|
+
SupportArticle
|
|
59
|
+
> = z.object({
|
|
60
|
+
id: z.number().int(),
|
|
61
|
+
title: z.nullable(z.string()),
|
|
62
|
+
description: z.nullable(z.string()).optional(),
|
|
63
|
+
content: z.nullable(z.string()).optional(),
|
|
64
|
+
published: z.nullable(z.boolean()).optional(),
|
|
65
|
+
notes: z.nullable(z.string()).optional(),
|
|
66
|
+
videoUrl: z.nullable(z.string()).optional(),
|
|
67
|
+
category: z.nullable(z.string()).optional(),
|
|
68
|
+
}).transform((v) => {
|
|
69
|
+
return remap$(v, {
|
|
70
|
+
videoUrl: "video_url",
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @internal
|
|
76
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
77
|
+
*/
|
|
78
|
+
export namespace SupportArticle$ {
|
|
79
|
+
/** @deprecated use `SupportArticle$inboundSchema` instead. */
|
|
80
|
+
export const inboundSchema = SupportArticle$inboundSchema;
|
|
81
|
+
/** @deprecated use `SupportArticle$outboundSchema` instead. */
|
|
82
|
+
export const outboundSchema = SupportArticle$outboundSchema;
|
|
83
|
+
/** @deprecated use `SupportArticle$Outbound` instead. */
|
|
84
|
+
export type Outbound = SupportArticle$Outbound;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function supportArticleToJSON(supportArticle: SupportArticle): string {
|
|
88
|
+
return JSON.stringify(SupportArticle$outboundSchema.parse(supportArticle));
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function supportArticleFromJSON(
|
|
92
|
+
jsonString: string,
|
|
93
|
+
): SafeParseResult<SupportArticle, SDKValidationError> {
|
|
94
|
+
return safeParse(
|
|
95
|
+
jsonString,
|
|
96
|
+
(x) => SupportArticle$inboundSchema.parse(JSON.parse(x)),
|
|
97
|
+
`Failed to parse 'SupportArticle' from JSON`,
|
|
98
|
+
);
|
|
99
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Reduced list of attributes of Vendor Credential record
|
|
13
|
+
*/
|
|
14
|
+
export type VendorCredentialSlim = {
|
|
15
|
+
id: number;
|
|
16
|
+
status: string;
|
|
17
|
+
companyId: number;
|
|
18
|
+
dateDue: string;
|
|
19
|
+
dateExpires: string;
|
|
20
|
+
notes: string;
|
|
21
|
+
expedited: boolean;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const VendorCredentialSlim$inboundSchema: z.ZodType<
|
|
26
|
+
VendorCredentialSlim,
|
|
27
|
+
z.ZodTypeDef,
|
|
28
|
+
unknown
|
|
29
|
+
> = z.object({
|
|
30
|
+
id: z.number().int(),
|
|
31
|
+
status: z.string(),
|
|
32
|
+
company_id: z.number().int(),
|
|
33
|
+
date_due: z.string(),
|
|
34
|
+
date_expires: z.string(),
|
|
35
|
+
notes: z.string(),
|
|
36
|
+
expedited: z.boolean(),
|
|
37
|
+
}).transform((v) => {
|
|
38
|
+
return remap$(v, {
|
|
39
|
+
"company_id": "companyId",
|
|
40
|
+
"date_due": "dateDue",
|
|
41
|
+
"date_expires": "dateExpires",
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export type VendorCredentialSlim$Outbound = {
|
|
47
|
+
id: number;
|
|
48
|
+
status: string;
|
|
49
|
+
company_id: number;
|
|
50
|
+
date_due: string;
|
|
51
|
+
date_expires: string;
|
|
52
|
+
notes: string;
|
|
53
|
+
expedited: boolean;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
/** @internal */
|
|
57
|
+
export const VendorCredentialSlim$outboundSchema: z.ZodType<
|
|
58
|
+
VendorCredentialSlim$Outbound,
|
|
59
|
+
z.ZodTypeDef,
|
|
60
|
+
VendorCredentialSlim
|
|
61
|
+
> = z.object({
|
|
62
|
+
id: z.number().int(),
|
|
63
|
+
status: z.string(),
|
|
64
|
+
companyId: z.number().int(),
|
|
65
|
+
dateDue: z.string(),
|
|
66
|
+
dateExpires: z.string(),
|
|
67
|
+
notes: z.string(),
|
|
68
|
+
expedited: z.boolean(),
|
|
69
|
+
}).transform((v) => {
|
|
70
|
+
return remap$(v, {
|
|
71
|
+
companyId: "company_id",
|
|
72
|
+
dateDue: "date_due",
|
|
73
|
+
dateExpires: "date_expires",
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @internal
|
|
79
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
80
|
+
*/
|
|
81
|
+
export namespace VendorCredentialSlim$ {
|
|
82
|
+
/** @deprecated use `VendorCredentialSlim$inboundSchema` instead. */
|
|
83
|
+
export const inboundSchema = VendorCredentialSlim$inboundSchema;
|
|
84
|
+
/** @deprecated use `VendorCredentialSlim$outboundSchema` instead. */
|
|
85
|
+
export const outboundSchema = VendorCredentialSlim$outboundSchema;
|
|
86
|
+
/** @deprecated use `VendorCredentialSlim$Outbound` instead. */
|
|
87
|
+
export type Outbound = VendorCredentialSlim$Outbound;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function vendorCredentialSlimToJSON(
|
|
91
|
+
vendorCredentialSlim: VendorCredentialSlim,
|
|
92
|
+
): string {
|
|
93
|
+
return JSON.stringify(
|
|
94
|
+
VendorCredentialSlim$outboundSchema.parse(vendorCredentialSlim),
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function vendorCredentialSlimFromJSON(
|
|
99
|
+
jsonString: string,
|
|
100
|
+
): SafeParseResult<VendorCredentialSlim, SDKValidationError> {
|
|
101
|
+
return safeParse(
|
|
102
|
+
jsonString,
|
|
103
|
+
(x) => VendorCredentialSlim$inboundSchema.parse(JSON.parse(x)),
|
|
104
|
+
`Failed to parse 'VendorCredentialSlim' from JSON`,
|
|
105
|
+
);
|
|
106
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* A simplified representation of a VendorRequiredCredential, typically used in list views.
|
|
13
|
+
*/
|
|
14
|
+
export type VendorRequiredCredential = {
|
|
15
|
+
id: number;
|
|
16
|
+
vendorId: number;
|
|
17
|
+
facilityId?: number | null | undefined;
|
|
18
|
+
credentialIds: string | null;
|
|
19
|
+
dateCalculated: string;
|
|
20
|
+
companyCredentialIds: string | null;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const VendorRequiredCredential$inboundSchema: z.ZodType<
|
|
25
|
+
VendorRequiredCredential,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
unknown
|
|
28
|
+
> = z.object({
|
|
29
|
+
id: z.number().int(),
|
|
30
|
+
vendor_id: z.number().int(),
|
|
31
|
+
facility_id: z.nullable(z.number().int()).optional(),
|
|
32
|
+
credential_ids: z.nullable(z.string()),
|
|
33
|
+
date_calculated: z.string(),
|
|
34
|
+
company_credential_ids: z.nullable(z.string()),
|
|
35
|
+
}).transform((v) => {
|
|
36
|
+
return remap$(v, {
|
|
37
|
+
"vendor_id": "vendorId",
|
|
38
|
+
"facility_id": "facilityId",
|
|
39
|
+
"credential_ids": "credentialIds",
|
|
40
|
+
"date_calculated": "dateCalculated",
|
|
41
|
+
"company_credential_ids": "companyCredentialIds",
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export type VendorRequiredCredential$Outbound = {
|
|
47
|
+
id: number;
|
|
48
|
+
vendor_id: number;
|
|
49
|
+
facility_id?: number | null | undefined;
|
|
50
|
+
credential_ids: string | null;
|
|
51
|
+
date_calculated: string;
|
|
52
|
+
company_credential_ids: string | null;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const VendorRequiredCredential$outboundSchema: z.ZodType<
|
|
57
|
+
VendorRequiredCredential$Outbound,
|
|
58
|
+
z.ZodTypeDef,
|
|
59
|
+
VendorRequiredCredential
|
|
60
|
+
> = z.object({
|
|
61
|
+
id: z.number().int(),
|
|
62
|
+
vendorId: z.number().int(),
|
|
63
|
+
facilityId: z.nullable(z.number().int()).optional(),
|
|
64
|
+
credentialIds: z.nullable(z.string()),
|
|
65
|
+
dateCalculated: z.string(),
|
|
66
|
+
companyCredentialIds: z.nullable(z.string()),
|
|
67
|
+
}).transform((v) => {
|
|
68
|
+
return remap$(v, {
|
|
69
|
+
vendorId: "vendor_id",
|
|
70
|
+
facilityId: "facility_id",
|
|
71
|
+
credentialIds: "credential_ids",
|
|
72
|
+
dateCalculated: "date_calculated",
|
|
73
|
+
companyCredentialIds: "company_credential_ids",
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @internal
|
|
79
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
80
|
+
*/
|
|
81
|
+
export namespace VendorRequiredCredential$ {
|
|
82
|
+
/** @deprecated use `VendorRequiredCredential$inboundSchema` instead. */
|
|
83
|
+
export const inboundSchema = VendorRequiredCredential$inboundSchema;
|
|
84
|
+
/** @deprecated use `VendorRequiredCredential$outboundSchema` instead. */
|
|
85
|
+
export const outboundSchema = VendorRequiredCredential$outboundSchema;
|
|
86
|
+
/** @deprecated use `VendorRequiredCredential$Outbound` instead. */
|
|
87
|
+
export type Outbound = VendorRequiredCredential$Outbound;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function vendorRequiredCredentialToJSON(
|
|
91
|
+
vendorRequiredCredential: VendorRequiredCredential,
|
|
92
|
+
): string {
|
|
93
|
+
return JSON.stringify(
|
|
94
|
+
VendorRequiredCredential$outboundSchema.parse(vendorRequiredCredential),
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function vendorRequiredCredentialFromJSON(
|
|
99
|
+
jsonString: string,
|
|
100
|
+
): SafeParseResult<VendorRequiredCredential, SDKValidationError> {
|
|
101
|
+
return safeParse(
|
|
102
|
+
jsonString,
|
|
103
|
+
(x) => VendorRequiredCredential$inboundSchema.parse(JSON.parse(x)),
|
|
104
|
+
`Failed to parse 'VendorRequiredCredential' from JSON`,
|
|
105
|
+
);
|
|
106
|
+
}
|
|
@@ -49,7 +49,7 @@ export type Data = {};
|
|
|
49
49
|
/**
|
|
50
50
|
* The request was successful, and a new resource was created.
|
|
51
51
|
*/
|
|
52
|
-
export type
|
|
52
|
+
export type CreateVendorRegistrationCreateVendorRegistrationCreated = {
|
|
53
53
|
data: Data;
|
|
54
54
|
};
|
|
55
55
|
|
|
@@ -178,60 +178,67 @@ export function dataFromJSON(
|
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
/** @internal */
|
|
181
|
-
export const
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
181
|
+
export const CreateVendorRegistrationCreateVendorRegistrationCreated$inboundSchema:
|
|
182
|
+
z.ZodType<
|
|
183
|
+
CreateVendorRegistrationCreateVendorRegistrationCreated,
|
|
184
|
+
z.ZodTypeDef,
|
|
185
|
+
unknown
|
|
186
|
+
> = z.object({
|
|
187
|
+
data: z.lazy(() => Data$inboundSchema),
|
|
188
|
+
});
|
|
188
189
|
|
|
189
190
|
/** @internal */
|
|
190
|
-
export type
|
|
191
|
+
export type CreateVendorRegistrationCreateVendorRegistrationCreated$Outbound = {
|
|
191
192
|
data: Data$Outbound;
|
|
192
193
|
};
|
|
193
194
|
|
|
194
195
|
/** @internal */
|
|
195
|
-
export const
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
196
|
+
export const CreateVendorRegistrationCreateVendorRegistrationCreated$outboundSchema:
|
|
197
|
+
z.ZodType<
|
|
198
|
+
CreateVendorRegistrationCreateVendorRegistrationCreated$Outbound,
|
|
199
|
+
z.ZodTypeDef,
|
|
200
|
+
CreateVendorRegistrationCreateVendorRegistrationCreated
|
|
201
|
+
> = z.object({
|
|
202
|
+
data: z.lazy(() => Data$outboundSchema),
|
|
203
|
+
});
|
|
202
204
|
|
|
203
205
|
/**
|
|
204
206
|
* @internal
|
|
205
207
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
206
208
|
*/
|
|
207
|
-
export namespace
|
|
208
|
-
/** @deprecated use `
|
|
209
|
+
export namespace CreateVendorRegistrationCreateVendorRegistrationCreated$ {
|
|
210
|
+
/** @deprecated use `CreateVendorRegistrationCreateVendorRegistrationCreated$inboundSchema` instead. */
|
|
209
211
|
export const inboundSchema =
|
|
210
|
-
|
|
211
|
-
/** @deprecated use `
|
|
212
|
+
CreateVendorRegistrationCreateVendorRegistrationCreated$inboundSchema;
|
|
213
|
+
/** @deprecated use `CreateVendorRegistrationCreateVendorRegistrationCreated$outboundSchema` instead. */
|
|
212
214
|
export const outboundSchema =
|
|
213
|
-
|
|
214
|
-
/** @deprecated use `
|
|
215
|
-
export type Outbound =
|
|
215
|
+
CreateVendorRegistrationCreateVendorRegistrationCreated$outboundSchema;
|
|
216
|
+
/** @deprecated use `CreateVendorRegistrationCreateVendorRegistrationCreated$Outbound` instead. */
|
|
217
|
+
export type Outbound =
|
|
218
|
+
CreateVendorRegistrationCreateVendorRegistrationCreated$Outbound;
|
|
216
219
|
}
|
|
217
220
|
|
|
218
|
-
export function
|
|
219
|
-
|
|
221
|
+
export function createVendorRegistrationCreateVendorRegistrationCreatedToJSON(
|
|
222
|
+
createVendorRegistrationCreateVendorRegistrationCreated:
|
|
223
|
+
CreateVendorRegistrationCreateVendorRegistrationCreated,
|
|
220
224
|
): string {
|
|
221
225
|
return JSON.stringify(
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
),
|
|
226
|
+
CreateVendorRegistrationCreateVendorRegistrationCreated$outboundSchema
|
|
227
|
+
.parse(createVendorRegistrationCreateVendorRegistrationCreated),
|
|
225
228
|
);
|
|
226
229
|
}
|
|
227
230
|
|
|
228
|
-
export function
|
|
231
|
+
export function createVendorRegistrationCreateVendorRegistrationCreatedFromJSON(
|
|
229
232
|
jsonString: string,
|
|
230
|
-
): SafeParseResult<
|
|
233
|
+
): SafeParseResult<
|
|
234
|
+
CreateVendorRegistrationCreateVendorRegistrationCreated,
|
|
235
|
+
SDKValidationError
|
|
236
|
+
> {
|
|
231
237
|
return safeParse(
|
|
232
238
|
jsonString,
|
|
233
239
|
(x) =>
|
|
234
|
-
|
|
235
|
-
|
|
240
|
+
CreateVendorRegistrationCreateVendorRegistrationCreated$inboundSchema
|
|
241
|
+
.parse(JSON.parse(x)),
|
|
242
|
+
`Failed to parse 'CreateVendorRegistrationCreateVendorRegistrationCreated' from JSON`,
|
|
236
243
|
);
|
|
237
244
|
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import * as components from "../components/index.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type GetSupportArticleRequest = {
|
|
12
|
+
/**
|
|
13
|
+
* The identifier of the object
|
|
14
|
+
*/
|
|
15
|
+
id: number;
|
|
16
|
+
/**
|
|
17
|
+
* An array-style parameter to identify which sections of an object to expand. See documentation for the endpoint for a list of valid expansion values.
|
|
18
|
+
*/
|
|
19
|
+
expand?: Array<components.Expand> | undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const GetSupportArticleRequest$inboundSchema: z.ZodType<
|
|
24
|
+
GetSupportArticleRequest,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z.object({
|
|
28
|
+
id: z.number().int(),
|
|
29
|
+
expand: z.array(components.Expand$inboundSchema).optional(),
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export type GetSupportArticleRequest$Outbound = {
|
|
34
|
+
id: number;
|
|
35
|
+
expand?: Array<string> | undefined;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const GetSupportArticleRequest$outboundSchema: z.ZodType<
|
|
40
|
+
GetSupportArticleRequest$Outbound,
|
|
41
|
+
z.ZodTypeDef,
|
|
42
|
+
GetSupportArticleRequest
|
|
43
|
+
> = z.object({
|
|
44
|
+
id: z.number().int(),
|
|
45
|
+
expand: z.array(components.Expand$outboundSchema).optional(),
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @internal
|
|
50
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
51
|
+
*/
|
|
52
|
+
export namespace GetSupportArticleRequest$ {
|
|
53
|
+
/** @deprecated use `GetSupportArticleRequest$inboundSchema` instead. */
|
|
54
|
+
export const inboundSchema = GetSupportArticleRequest$inboundSchema;
|
|
55
|
+
/** @deprecated use `GetSupportArticleRequest$outboundSchema` instead. */
|
|
56
|
+
export const outboundSchema = GetSupportArticleRequest$outboundSchema;
|
|
57
|
+
/** @deprecated use `GetSupportArticleRequest$Outbound` instead. */
|
|
58
|
+
export type Outbound = GetSupportArticleRequest$Outbound;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function getSupportArticleRequestToJSON(
|
|
62
|
+
getSupportArticleRequest: GetSupportArticleRequest,
|
|
63
|
+
): string {
|
|
64
|
+
return JSON.stringify(
|
|
65
|
+
GetSupportArticleRequest$outboundSchema.parse(getSupportArticleRequest),
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function getSupportArticleRequestFromJSON(
|
|
70
|
+
jsonString: string,
|
|
71
|
+
): SafeParseResult<GetSupportArticleRequest, SDKValidationError> {
|
|
72
|
+
return safeParse(
|
|
73
|
+
jsonString,
|
|
74
|
+
(x) => GetSupportArticleRequest$inboundSchema.parse(JSON.parse(x)),
|
|
75
|
+
`Failed to parse 'GetSupportArticleRequest' from JSON`,
|
|
76
|
+
);
|
|
77
|
+
}
|
|
@@ -4,8 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
export * from "./createvendorregistration.js";
|
|
6
6
|
export * from "./getfacility.js";
|
|
7
|
+
export * from "./getsupportarticle.js";
|
|
7
8
|
export * from "./getuserbyid.js";
|
|
8
9
|
export * from "./listorsearchfacilities.js";
|
|
10
|
+
export * from "./listorsearchsupportarticles.js";
|
|
11
|
+
export * from "./listvendorcredentials.js";
|
|
9
12
|
export * from "./listvendorjobtitles.js";
|
|
10
13
|
export * from "./logsuserintothesystem.js";
|
|
11
14
|
export * from "./magiclink.js";
|