@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
package/sdk/{user.js → users.js}
RENAMED
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
6
|
+
exports.Users = void 0;
|
|
7
|
+
const usersGetCurrentUser_js_1 = require("../funcs/usersGetCurrentUser.js");
|
|
8
|
+
const usersGetUserById_js_1 = require("../funcs/usersGetUserById.js");
|
|
9
|
+
const usersLogsUserIntoTheSystem_js_1 = require("../funcs/usersLogsUserIntoTheSystem.js");
|
|
10
|
+
const usersMagiclink_js_1 = require("../funcs/usersMagiclink.js");
|
|
11
|
+
const usersPassword_js_1 = require("../funcs/usersPassword.js");
|
|
12
|
+
const usersPasswordResetRequest_js_1 = require("../funcs/usersPasswordResetRequest.js");
|
|
13
13
|
const sdks_js_1 = require("../lib/sdks.js");
|
|
14
14
|
const fp_js_1 = require("../types/fp.js");
|
|
15
|
-
class
|
|
15
|
+
class Users extends sdks_js_1.ClientSDK {
|
|
16
16
|
/**
|
|
17
17
|
* Get current user
|
|
18
18
|
*
|
|
@@ -20,7 +20,7 @@ class User extends sdks_js_1.ClientSDK {
|
|
|
20
20
|
* Returns a user object for the user represented by the authorization token
|
|
21
21
|
*/
|
|
22
22
|
async getCurrentUser(options) {
|
|
23
|
-
return (0, fp_js_1.unwrapAsync)((0,
|
|
23
|
+
return (0, fp_js_1.unwrapAsync)((0, usersGetCurrentUser_js_1.usersGetCurrentUser)(this, options));
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* Get user by id
|
|
@@ -29,7 +29,7 @@ class User extends sdks_js_1.ClientSDK {
|
|
|
29
29
|
* Returns a user object for the user represented by the identifier in the path.
|
|
30
30
|
*/
|
|
31
31
|
async getUserById(request, options) {
|
|
32
|
-
return (0, fp_js_1.unwrapAsync)((0,
|
|
32
|
+
return (0, fp_js_1.unwrapAsync)((0, usersGetUserById_js_1.usersGetUserById)(this, request, options));
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* Logs user into the system
|
|
@@ -68,7 +68,7 @@ class User extends sdks_js_1.ClientSDK {
|
|
|
68
68
|
* 5. Fetch the user object from `/users/me` using the token
|
|
69
69
|
*/
|
|
70
70
|
async logsUserIntoTheSystem(request, options) {
|
|
71
|
-
return (0, fp_js_1.unwrapAsync)((0,
|
|
71
|
+
return (0, fp_js_1.unwrapAsync)((0, usersLogsUserIntoTheSystem_js_1.usersLogsUserIntoTheSystem)(this, request, options));
|
|
72
72
|
}
|
|
73
73
|
/**
|
|
74
74
|
* Magic link
|
|
@@ -77,7 +77,7 @@ class User extends sdks_js_1.ClientSDK {
|
|
|
77
77
|
* It sends an email with a magic link to allow the user to log in.
|
|
78
78
|
*/
|
|
79
79
|
async magiclink(request, options) {
|
|
80
|
-
return (0, fp_js_1.unwrapAsync)((0,
|
|
80
|
+
return (0, fp_js_1.unwrapAsync)((0, usersMagiclink_js_1.usersMagiclink)(this, request, options));
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
83
83
|
* Password reset request
|
|
@@ -86,7 +86,7 @@ class User extends sdks_js_1.ClientSDK {
|
|
|
86
86
|
* It sends an email with a link for resetting a user's password.
|
|
87
87
|
*/
|
|
88
88
|
async passwordResetRequest(request, options) {
|
|
89
|
-
return (0, fp_js_1.unwrapAsync)((0,
|
|
89
|
+
return (0, fp_js_1.unwrapAsync)((0, usersPasswordResetRequest_js_1.usersPasswordResetRequest)(this, request, options));
|
|
90
90
|
}
|
|
91
91
|
/**
|
|
92
92
|
* Password reset
|
|
@@ -96,8 +96,8 @@ class User extends sdks_js_1.ClientSDK {
|
|
|
96
96
|
* See /users/passwordresetrequest to initiate a password reset flow.
|
|
97
97
|
*/
|
|
98
98
|
async password(request, options) {
|
|
99
|
-
return (0, fp_js_1.unwrapAsync)((0,
|
|
99
|
+
return (0, fp_js_1.unwrapAsync)((0, usersPassword_js_1.usersPassword)(this, request, options));
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
exports.
|
|
103
|
-
//# sourceMappingURL=
|
|
102
|
+
exports.Users = Users;
|
|
103
|
+
//# sourceMappingURL=users.js.map
|
package/sdk/users.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"users.js","sourceRoot":"","sources":["../src/sdk/users.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,4EAAsE;AACtE,sEAAgE;AAChE,0FAAoF;AACpF,kEAA4D;AAC5D,gEAA0D;AAC1D,wFAAkF;AAClF,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,KAAM,SAAQ,mBAAS;IAClC;;;;;OAKG;IACH,KAAK,CAAC,cAAc,CAClB,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4CAAmB,EACpC,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,WAAW,CACf,OAAsC,EACtC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sCAAgB,EACjC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACH,KAAK,CAAC,qBAAqB,CACzB,OAAoD,EACpD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0DAA0B,EAC3C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,SAAS,CACb,OAAwC,EACxC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kCAAc,EAC/B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,oBAAoB,CACxB,OAAmD,EACnD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wDAAyB,EAC1C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,QAAQ,CACZ,OAAuC,EACvC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gCAAa,EAC9B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAnID,sBAmIC"}
|
package/sdk/vendors.d.ts
CHANGED
|
@@ -7,13 +7,20 @@ export declare class Vendors extends ClientSDK {
|
|
|
7
7
|
* @remarks
|
|
8
8
|
* Create an initial vendor registration. Once successful, the vendor will be able to continue to filling out the rest of their onboarding profile.
|
|
9
9
|
*/
|
|
10
|
-
createVendorRegistration(request: operations.CreateVendorRegistrationRequestBody, options?: RequestOptions): Promise<operations.
|
|
10
|
+
createVendorRegistration(request: operations.CreateVendorRegistrationRequestBody, options?: RequestOptions): Promise<operations.CreateVendorRegistrationCreateVendorRegistrationCreated>;
|
|
11
11
|
/**
|
|
12
12
|
* List vendor job titles
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
15
|
* List valid job titles for Vendors. This can be used during sign up or in a filter.
|
|
16
16
|
*/
|
|
17
|
-
listVendorJobTitles(request: operations.ListVendorJobTitlesRequest, options?: RequestOptions): Promise<operations.
|
|
17
|
+
listVendorJobTitles(request: operations.ListVendorJobTitlesRequest, options?: RequestOptions): Promise<operations.ListVendorJobTitlesListVendorJobTitlesOk>;
|
|
18
|
+
/**
|
|
19
|
+
* List Vendor Credentials
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* Lists vendor credentials, required credentials, and company credentials. Utilized in Vendor Dashboard.
|
|
23
|
+
*/
|
|
24
|
+
listVendorCredentials(request: operations.ListVendorCredentialsRequest, options?: RequestOptions): Promise<operations.ListVendorCredentialsResponseBody>;
|
|
18
25
|
}
|
|
19
26
|
//# sourceMappingURL=vendors.d.ts.map
|
package/sdk/vendors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vendors.d.ts","sourceRoot":"","sources":["../src/sdk/vendors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vendors.d.ts","sourceRoot":"","sources":["../src/sdk/vendors.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,OAAQ,SAAQ,SAAS;IACpC;;;;;OAKG;IACG,wBAAwB,CAC5B,OAAO,EAAE,UAAU,CAAC,mCAAmC,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,UAAU,CAAC,uDAAuD,CACnE;IAQD;;;;;OAKG;IACG,mBAAmB,CACvB,OAAO,EAAE,UAAU,CAAC,0BAA0B,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,wCAAwC,CAAC;IAQ/D;;;;;OAKG;IACG,qBAAqB,CACzB,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,iCAAiC,CAAC;CAOzD"}
|
package/sdk/vendors.js
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Vendors = void 0;
|
|
7
7
|
const vendorsCreateVendorRegistration_js_1 = require("../funcs/vendorsCreateVendorRegistration.js");
|
|
8
|
+
const vendorsListVendorCredentials_js_1 = require("../funcs/vendorsListVendorCredentials.js");
|
|
8
9
|
const vendorsListVendorJobTitles_js_1 = require("../funcs/vendorsListVendorJobTitles.js");
|
|
9
10
|
const sdks_js_1 = require("../lib/sdks.js");
|
|
10
11
|
const fp_js_1 = require("../types/fp.js");
|
|
@@ -27,6 +28,15 @@ class Vendors extends sdks_js_1.ClientSDK {
|
|
|
27
28
|
async listVendorJobTitles(request, options) {
|
|
28
29
|
return (0, fp_js_1.unwrapAsync)((0, vendorsListVendorJobTitles_js_1.vendorsListVendorJobTitles)(this, request, options));
|
|
29
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* List Vendor Credentials
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* Lists vendor credentials, required credentials, and company credentials. Utilized in Vendor Dashboard.
|
|
36
|
+
*/
|
|
37
|
+
async listVendorCredentials(request, options) {
|
|
38
|
+
return (0, fp_js_1.unwrapAsync)((0, vendorsListVendorCredentials_js_1.vendorsListVendorCredentials)(this, request, options));
|
|
39
|
+
}
|
|
30
40
|
}
|
|
31
41
|
exports.Vendors = Vendors;
|
|
32
42
|
//# sourceMappingURL=vendors.js.map
|
package/sdk/vendors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vendors.js","sourceRoot":"","sources":["../src/sdk/vendors.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,oGAA8F;AAC9F,0FAAoF;AACpF,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,OAAQ,SAAQ,mBAAS;IACpC;;;;;OAKG;IACH,KAAK,CAAC,wBAAwB,CAC5B,OAAuD,EACvD,OAAwB;
|
|
1
|
+
{"version":3,"file":"vendors.js","sourceRoot":"","sources":["../src/sdk/vendors.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,oGAA8F;AAC9F,8FAAwF;AACxF,0FAAoF;AACpF,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,OAAQ,SAAQ,mBAAS;IACpC;;;;;OAKG;IACH,KAAK,CAAC,wBAAwB,CAC5B,OAAuD,EACvD,OAAwB;QAIxB,OAAO,IAAA,mBAAW,EAAC,IAAA,oEAA+B,EAChD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,mBAAmB,CACvB,OAA8C,EAC9C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0DAA0B,EAC3C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,qBAAqB,CACzB,OAAgD,EAChD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8DAA4B,EAC7C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AArDD,0BAqDC"}
|
|
@@ -2,184 +2,14 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import { expect, test } from "vitest";
|
|
5
|
+
import { assert, expect, it, test } from "vitest";
|
|
6
6
|
import { GreenSecurity } from "../index.js";
|
|
7
7
|
import { createTestHTTPClient } from "./testclient.js";
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
serverURL: "https://dev.repconnex.com:3000/api",
|
|
14
|
-
security: {
|
|
15
|
-
bearerJwt: "",
|
|
16
|
-
},
|
|
17
|
-
httpClient: testHttpClient,
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
const result = await greenSecurity.organizations.listOrSearchFacilities({
|
|
21
|
-
sort: "job",
|
|
22
|
-
desc: true,
|
|
23
|
-
itemsPerPage: 25,
|
|
24
|
-
expand: [
|
|
25
|
-
"facility.system",
|
|
26
|
-
],
|
|
27
|
-
});
|
|
28
|
-
expect(result).toBeDefined();
|
|
29
|
-
expect(result).toEqual({
|
|
30
|
-
pager: {
|
|
31
|
-
baseUrl: "api/vendors/job_titles",
|
|
32
|
-
sort: "job,title",
|
|
33
|
-
desc: 1,
|
|
34
|
-
itemCount: 228,
|
|
35
|
-
itemsPerPage: 513604,
|
|
36
|
-
page: 1,
|
|
37
|
-
useUrlParams: true,
|
|
38
|
-
},
|
|
39
|
-
items: [
|
|
40
|
-
{
|
|
41
|
-
contacts: {
|
|
42
|
-
contact: {
|
|
43
|
-
status: "Inactive",
|
|
44
|
-
department: {
|
|
45
|
-
id: 741158,
|
|
46
|
-
name: "<value>",
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
adminContact: {
|
|
50
|
-
status: "Deleted",
|
|
51
|
-
department: 123,
|
|
52
|
-
},
|
|
53
|
-
techContact: {
|
|
54
|
-
status: "Deleted",
|
|
55
|
-
department: 123,
|
|
56
|
-
},
|
|
57
|
-
greenSecurityCsm: {
|
|
58
|
-
status: "Inactive",
|
|
59
|
-
department: 123,
|
|
60
|
-
},
|
|
61
|
-
accountManager: {
|
|
62
|
-
status: "Active",
|
|
63
|
-
department: {
|
|
64
|
-
id: 602669,
|
|
65
|
-
name: "<value>",
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
imageUrls: {
|
|
70
|
-
tiny:
|
|
71
|
-
"https://d37hfq3t37fvvd.cloudfront.net/users/13226_tiny.jpeg?1538765266",
|
|
72
|
-
thumb:
|
|
73
|
-
"https://d37hfq3t37fvvd.cloudfront.net/users/13226_thumb.jpeg?1538765266",
|
|
74
|
-
large:
|
|
75
|
-
"https://d37hfq3t37fvvd.cloudfront.net/users/13226_large.jpeg?1538765266",
|
|
76
|
-
original:
|
|
77
|
-
"https://d37hfq3t37fvvd.cloudfront.net/users/13226_original.jpeg?1538765266",
|
|
78
|
-
},
|
|
79
|
-
vendorGuestPolicy: {
|
|
80
|
-
enabled: true,
|
|
81
|
-
vendorGuestLimitAndOr: "and",
|
|
82
|
-
vendorGuestRequireEmail: true,
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
contacts: {
|
|
87
|
-
contact: {
|
|
88
|
-
status: "Deleted",
|
|
89
|
-
department: 123,
|
|
90
|
-
},
|
|
91
|
-
adminContact: {
|
|
92
|
-
status: "Inactive",
|
|
93
|
-
department: {
|
|
94
|
-
id: 295998,
|
|
95
|
-
name: "<value>",
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
techContact: {
|
|
99
|
-
status: "Inactive",
|
|
100
|
-
department: {
|
|
101
|
-
id: 344138,
|
|
102
|
-
name: "<value>",
|
|
103
|
-
},
|
|
104
|
-
},
|
|
105
|
-
greenSecurityCsm: {
|
|
106
|
-
status: "Inactive",
|
|
107
|
-
department: {
|
|
108
|
-
id: 499522,
|
|
109
|
-
name: "<value>",
|
|
110
|
-
},
|
|
111
|
-
},
|
|
112
|
-
accountManager: {
|
|
113
|
-
status: "Deleted",
|
|
114
|
-
department: 123,
|
|
115
|
-
},
|
|
116
|
-
},
|
|
117
|
-
imageUrls: {
|
|
118
|
-
tiny:
|
|
119
|
-
"https://d37hfq3t37fvvd.cloudfront.net/users/13226_tiny.jpeg?1538765266",
|
|
120
|
-
thumb:
|
|
121
|
-
"https://d37hfq3t37fvvd.cloudfront.net/users/13226_thumb.jpeg?1538765266",
|
|
122
|
-
large:
|
|
123
|
-
"https://d37hfq3t37fvvd.cloudfront.net/users/13226_large.jpeg?1538765266",
|
|
124
|
-
original:
|
|
125
|
-
"https://d37hfq3t37fvvd.cloudfront.net/users/13226_original.jpeg?1538765266",
|
|
126
|
-
},
|
|
127
|
-
vendorGuestPolicy: {
|
|
128
|
-
enabled: true,
|
|
129
|
-
vendorGuestLimitAndOr: "and",
|
|
130
|
-
vendorGuestRequireEmail: false,
|
|
131
|
-
},
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
contacts: {
|
|
135
|
-
contact: {
|
|
136
|
-
status: "Active",
|
|
137
|
-
department: {
|
|
138
|
-
id: 674036,
|
|
139
|
-
name: "<value>",
|
|
140
|
-
},
|
|
141
|
-
},
|
|
142
|
-
adminContact: {
|
|
143
|
-
status: "Deleted",
|
|
144
|
-
department: 123,
|
|
145
|
-
},
|
|
146
|
-
techContact: {
|
|
147
|
-
status: "Inactive",
|
|
148
|
-
department: {
|
|
149
|
-
id: 800811,
|
|
150
|
-
name: "<value>",
|
|
151
|
-
},
|
|
152
|
-
},
|
|
153
|
-
greenSecurityCsm: {
|
|
154
|
-
status: "Inactive",
|
|
155
|
-
department: 123,
|
|
156
|
-
},
|
|
157
|
-
accountManager: {
|
|
158
|
-
status: "Inactive",
|
|
159
|
-
department: {
|
|
160
|
-
id: 603414,
|
|
161
|
-
name: "<value>",
|
|
162
|
-
},
|
|
163
|
-
},
|
|
164
|
-
},
|
|
165
|
-
imageUrls: {
|
|
166
|
-
tiny:
|
|
167
|
-
"https://d37hfq3t37fvvd.cloudfront.net/users/13226_tiny.jpeg?1538765266",
|
|
168
|
-
thumb:
|
|
169
|
-
"https://d37hfq3t37fvvd.cloudfront.net/users/13226_thumb.jpeg?1538765266",
|
|
170
|
-
large:
|
|
171
|
-
"https://d37hfq3t37fvvd.cloudfront.net/users/13226_large.jpeg?1538765266",
|
|
172
|
-
original:
|
|
173
|
-
"https://d37hfq3t37fvvd.cloudfront.net/users/13226_original.jpeg?1538765266",
|
|
174
|
-
},
|
|
175
|
-
vendorGuestPolicy: {
|
|
176
|
-
enabled: true,
|
|
177
|
-
vendorGuestLimitAndOr: "and",
|
|
178
|
-
vendorGuestRequireEmail: true,
|
|
179
|
-
},
|
|
180
|
-
},
|
|
181
|
-
],
|
|
182
|
-
});
|
|
9
|
+
it.skip("Organizations List Or Search Facilities", async () => {
|
|
10
|
+
assert.fail(
|
|
11
|
+
"incomplete test found please make sure to address the following errors: [`workflow step listOrSearchFacilities.test referencing operation listOrSearchFacilities does not contain query parameter status`]",
|
|
12
|
+
);
|
|
183
13
|
});
|
|
184
14
|
|
|
185
15
|
test("Organizations Get Facility", async () => {
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { expect, test } from "vitest";
|
|
6
|
+
import { GreenSecurity } from "../index.js";
|
|
7
|
+
import { createTestHTTPClient } from "./testclient.js";
|
|
8
|
+
|
|
9
|
+
test("Support Articles List Or Search Support Articles", async () => {
|
|
10
|
+
const testHttpClient = createTestHTTPClient("listOrSearchSupportArticles");
|
|
11
|
+
|
|
12
|
+
const greenSecurity = new GreenSecurity({
|
|
13
|
+
serverURL: "https://dev.repconnex.com:3000/api",
|
|
14
|
+
security: {
|
|
15
|
+
bearerJwt: "",
|
|
16
|
+
},
|
|
17
|
+
httpClient: testHttpClient,
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
const result = await greenSecurity.supportArticles
|
|
21
|
+
.listOrSearchSupportArticles({
|
|
22
|
+
sort: "job",
|
|
23
|
+
desc: true,
|
|
24
|
+
itemsPerPage: 25,
|
|
25
|
+
});
|
|
26
|
+
expect(result).toBeDefined();
|
|
27
|
+
expect(result).toEqual({
|
|
28
|
+
pager: {
|
|
29
|
+
baseUrl: "api/vendors/job_titles",
|
|
30
|
+
sort: "job,title",
|
|
31
|
+
desc: 1,
|
|
32
|
+
itemCount: 228,
|
|
33
|
+
itemsPerPage: 575975,
|
|
34
|
+
page: 1,
|
|
35
|
+
useUrlParams: true,
|
|
36
|
+
},
|
|
37
|
+
items: [],
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
test("Support Articles Get Support Article", async () => {
|
|
42
|
+
const testHttpClient = createTestHTTPClient("getSupportArticle");
|
|
43
|
+
|
|
44
|
+
const greenSecurity = new GreenSecurity({
|
|
45
|
+
serverURL: "https://dev.repconnex.com:3000/api",
|
|
46
|
+
security: {
|
|
47
|
+
bearerJwt: "",
|
|
48
|
+
},
|
|
49
|
+
httpClient: testHttpClient,
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
const result = await greenSecurity.supportArticles.getSupportArticle({
|
|
53
|
+
id: 971535,
|
|
54
|
+
expand: [
|
|
55
|
+
"facility.system",
|
|
56
|
+
],
|
|
57
|
+
});
|
|
58
|
+
expect(result).toBeDefined();
|
|
59
|
+
expect(result).toEqual({
|
|
60
|
+
id: 65,
|
|
61
|
+
title: "<value>",
|
|
62
|
+
});
|
|
63
|
+
});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import { expect, test } from "vitest";
|
|
5
|
+
import { assert, expect, it, test } from "vitest";
|
|
6
6
|
import { GreenSecurity } from "../index.js";
|
|
7
7
|
import { createTestHTTPClient } from "./testclient.js";
|
|
8
8
|
|
|
@@ -17,7 +17,7 @@ test("User Get User By Id", async () => {
|
|
|
17
17
|
httpClient: testHttpClient,
|
|
18
18
|
});
|
|
19
19
|
|
|
20
|
-
const result = await greenSecurity.
|
|
20
|
+
const result = await greenSecurity.users.getUserById({
|
|
21
21
|
id: 13226,
|
|
22
22
|
});
|
|
23
23
|
expect(result).toBeDefined();
|
|
@@ -64,7 +64,7 @@ test("User Get Current User", async () => {
|
|
|
64
64
|
httpClient: testHttpClient,
|
|
65
65
|
});
|
|
66
66
|
|
|
67
|
-
const result = await greenSecurity.
|
|
67
|
+
const result = await greenSecurity.users.getCurrentUser();
|
|
68
68
|
expect(result).toBeDefined();
|
|
69
69
|
expect(result).toEqual({
|
|
70
70
|
isGatekeeper: false,
|
|
@@ -115,7 +115,7 @@ test("User Logs User Into The System", async () => {
|
|
|
115
115
|
httpClient: testHttpClient,
|
|
116
116
|
});
|
|
117
117
|
|
|
118
|
-
const result = await greenSecurity.
|
|
118
|
+
const result = await greenSecurity.users.logsUserIntoTheSystem({
|
|
119
119
|
email: "user@example.com",
|
|
120
120
|
mfaCode: "123456",
|
|
121
121
|
password: "Hunter2",
|
|
@@ -170,7 +170,7 @@ test("User Magiclink", async () => {
|
|
|
170
170
|
httpClient: testHttpClient,
|
|
171
171
|
});
|
|
172
172
|
|
|
173
|
-
const result = await greenSecurity.
|
|
173
|
+
const result = await greenSecurity.users.magiclink({
|
|
174
174
|
email: "Ethel.Schroeder9@yahoo.com",
|
|
175
175
|
});
|
|
176
176
|
expect(result).toBeDefined();
|
|
@@ -187,7 +187,7 @@ test("User Password Reset Request", async () => {
|
|
|
187
187
|
httpClient: testHttpClient,
|
|
188
188
|
});
|
|
189
189
|
|
|
190
|
-
const result = await greenSecurity.
|
|
190
|
+
const result = await greenSecurity.users.passwordResetRequest({
|
|
191
191
|
email: "Deon76@yahoo.com",
|
|
192
192
|
});
|
|
193
193
|
expect(result).toBeDefined();
|
|
@@ -204,9 +204,15 @@ test("User Password", async () => {
|
|
|
204
204
|
httpClient: testHttpClient,
|
|
205
205
|
});
|
|
206
206
|
|
|
207
|
-
const result = await greenSecurity.
|
|
207
|
+
const result = await greenSecurity.users.password({
|
|
208
208
|
paswordResetToken: "<value>",
|
|
209
209
|
password: "BT_1LEAfXTRpaLs",
|
|
210
210
|
});
|
|
211
211
|
expect(result).toBeDefined();
|
|
212
212
|
});
|
|
213
|
+
|
|
214
|
+
it.skip("User Post Authenticate", async () => {
|
|
215
|
+
assert.fail(
|
|
216
|
+
"incomplete test found please make sure to address the following errors: [`workflow step postAuthenticate.test referencing operation postAuthenticate not found in document`]",
|
|
217
|
+
);
|
|
218
|
+
});
|
|
@@ -2,10 +2,16 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import { expect, test } from "vitest";
|
|
5
|
+
import { assert, expect, it, test } from "vitest";
|
|
6
6
|
import { GreenSecurity } from "../index.js";
|
|
7
7
|
import { createTestHTTPClient } from "./testclient.js";
|
|
8
8
|
|
|
9
|
+
it.skip("Vendors List Vendor Credentials", async () => {
|
|
10
|
+
assert.fail(
|
|
11
|
+
"incomplete test found please make sure to address the following errors: [`workflow step listVendorCredentials.authenticate referencing operation postAuthenticate not found in document`]",
|
|
12
|
+
);
|
|
13
|
+
});
|
|
14
|
+
|
|
9
15
|
test("Vendors Create Vendor Registration", async () => {
|
|
10
16
|
const testHttpClient = createTestHTTPClient("createVendorRegistration");
|
|
11
17
|
|
|
@@ -48,7 +48,7 @@ export function organizationsListOrSearchFacilities(
|
|
|
48
48
|
options?: RequestOptions,
|
|
49
49
|
): APIPromise<
|
|
50
50
|
Result<
|
|
51
|
-
operations.
|
|
51
|
+
operations.ListOrSearchFacilitiesListOrSearchFacilitiesOk,
|
|
52
52
|
| APIError
|
|
53
53
|
| SDKValidationError
|
|
54
54
|
| UnexpectedClientError
|
|
@@ -72,7 +72,7 @@ async function $do(
|
|
|
72
72
|
): Promise<
|
|
73
73
|
[
|
|
74
74
|
Result<
|
|
75
|
-
operations.
|
|
75
|
+
operations.ListOrSearchFacilitiesListOrSearchFacilitiesOk,
|
|
76
76
|
| APIError
|
|
77
77
|
| SDKValidationError
|
|
78
78
|
| UnexpectedClientError
|
|
@@ -99,6 +99,7 @@ async function $do(
|
|
|
99
99
|
const path = pathToFunc("/facilities")();
|
|
100
100
|
|
|
101
101
|
const query = encodeFormQuery({
|
|
102
|
+
"active_status": payload.active_status,
|
|
102
103
|
"desc": payload.desc,
|
|
103
104
|
"expand": payload.expand,
|
|
104
105
|
"items_per_page": payload.items_per_page,
|
|
@@ -106,7 +107,6 @@ async function $do(
|
|
|
106
107
|
"page": payload.page,
|
|
107
108
|
"sort": payload.sort,
|
|
108
109
|
"state_like": payload.state_like,
|
|
109
|
-
"status": payload.status,
|
|
110
110
|
"system_id": payload.system_id,
|
|
111
111
|
});
|
|
112
112
|
|
|
@@ -158,7 +158,7 @@ async function $do(
|
|
|
158
158
|
const response = doResult.value;
|
|
159
159
|
|
|
160
160
|
const [result] = await M.match<
|
|
161
|
-
operations.
|
|
161
|
+
operations.ListOrSearchFacilitiesListOrSearchFacilitiesOk,
|
|
162
162
|
| APIError
|
|
163
163
|
| SDKValidationError
|
|
164
164
|
| UnexpectedClientError
|
|
@@ -167,7 +167,10 @@ async function $do(
|
|
|
167
167
|
| RequestTimeoutError
|
|
168
168
|
| ConnectionError
|
|
169
169
|
>(
|
|
170
|
-
M.json(
|
|
170
|
+
M.json(
|
|
171
|
+
200,
|
|
172
|
+
operations.ListOrSearchFacilitiesListOrSearchFacilitiesOk$inboundSchema,
|
|
173
|
+
),
|
|
171
174
|
M.fail("4XX"),
|
|
172
175
|
M.fail("5XX"),
|
|
173
176
|
)(response);
|