@ominity/api-typescript 1.3.0 → 1.4.1
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/dist/commonjs/funcs/admins/adminsGet.js +1 -1
- package/dist/commonjs/funcs/admins/adminsGet.js.map +1 -1
- package/dist/commonjs/funcs/commerce/customerUserInvitationsAccept.d.ts +10 -0
- package/dist/commonjs/funcs/commerce/customerUserInvitationsAccept.d.ts.map +1 -0
- package/dist/commonjs/funcs/commerce/customerUserInvitationsAccept.js +121 -0
- package/dist/commonjs/funcs/commerce/customerUserInvitationsAccept.js.map +1 -0
- package/dist/commonjs/funcs/commerce/customerUserInvitationsCreate.d.ts +10 -0
- package/dist/commonjs/funcs/commerce/customerUserInvitationsCreate.d.ts.map +1 -0
- package/dist/commonjs/funcs/commerce/customerUserInvitationsCreate.js +123 -0
- package/dist/commonjs/funcs/commerce/customerUserInvitationsCreate.js.map +1 -0
- package/dist/commonjs/funcs/commerce/customerUserInvitationsGet.d.ts +10 -0
- package/dist/commonjs/funcs/commerce/customerUserInvitationsGet.d.ts.map +1 -0
- package/dist/commonjs/funcs/commerce/customerUserInvitationsGet.js +114 -0
- package/dist/commonjs/funcs/commerce/customerUserInvitationsGet.js.map +1 -0
- package/dist/commonjs/funcs/commerce/customerUserInvitationsInspect.d.ts +10 -0
- package/dist/commonjs/funcs/commerce/customerUserInvitationsInspect.d.ts.map +1 -0
- package/dist/commonjs/funcs/commerce/customerUserInvitationsInspect.js +115 -0
- package/dist/commonjs/funcs/commerce/customerUserInvitationsInspect.js.map +1 -0
- package/dist/commonjs/funcs/commerce/customerUserInvitationsList.d.ts +10 -0
- package/dist/commonjs/funcs/commerce/customerUserInvitationsList.d.ts.map +1 -0
- package/dist/commonjs/funcs/commerce/customerUserInvitationsList.js +131 -0
- package/dist/commonjs/funcs/commerce/customerUserInvitationsList.js.map +1 -0
- package/dist/commonjs/funcs/commerce/customerUserInvitationsRevoke.d.ts +10 -0
- package/dist/commonjs/funcs/commerce/customerUserInvitationsRevoke.d.ts.map +1 -0
- package/dist/commonjs/funcs/commerce/customerUserInvitationsRevoke.js +112 -0
- package/dist/commonjs/funcs/commerce/customerUserInvitationsRevoke.js.map +1 -0
- package/dist/commonjs/funcs/commerce/customerUserPermissionsList.d.ts +10 -0
- package/dist/commonjs/funcs/commerce/customerUserPermissionsList.d.ts.map +1 -0
- package/dist/commonjs/funcs/commerce/customerUserPermissionsList.js +118 -0
- package/dist/commonjs/funcs/commerce/customerUserPermissionsList.js.map +1 -0
- package/dist/commonjs/funcs/commerce/customerUserRolesCreate.d.ts +10 -0
- package/dist/commonjs/funcs/commerce/customerUserRolesCreate.d.ts.map +1 -0
- package/dist/commonjs/funcs/commerce/customerUserRolesCreate.js +123 -0
- package/dist/commonjs/funcs/commerce/customerUserRolesCreate.js.map +1 -0
- package/dist/commonjs/funcs/commerce/customerUserRolesDelete.d.ts +10 -0
- package/dist/commonjs/funcs/commerce/customerUserRolesDelete.d.ts.map +1 -0
- package/dist/commonjs/funcs/commerce/customerUserRolesDelete.js +117 -0
- package/dist/commonjs/funcs/commerce/customerUserRolesDelete.js.map +1 -0
- package/dist/commonjs/funcs/commerce/customerUserRolesGet.d.ts +10 -0
- package/dist/commonjs/funcs/commerce/customerUserRolesGet.d.ts.map +1 -0
- package/dist/commonjs/funcs/commerce/customerUserRolesGet.js +119 -0
- package/dist/commonjs/funcs/commerce/customerUserRolesGet.js.map +1 -0
- package/dist/commonjs/funcs/commerce/customerUserRolesList.d.ts +10 -0
- package/dist/commonjs/funcs/commerce/customerUserRolesList.d.ts.map +1 -0
- package/dist/commonjs/funcs/commerce/customerUserRolesList.js +127 -0
- package/dist/commonjs/funcs/commerce/customerUserRolesList.js.map +1 -0
- package/dist/commonjs/funcs/commerce/customerUserRolesUpdate.d.ts +10 -0
- package/dist/commonjs/funcs/commerce/customerUserRolesUpdate.d.ts.map +1 -0
- package/dist/commonjs/funcs/commerce/customerUserRolesUpdate.js +123 -0
- package/dist/commonjs/funcs/commerce/customerUserRolesUpdate.js.map +1 -0
- package/dist/commonjs/funcs/commerce/customerUsersDelete.d.ts +10 -0
- package/dist/commonjs/funcs/commerce/customerUsersDelete.d.ts.map +1 -0
- package/dist/commonjs/funcs/commerce/customerUsersDelete.js +117 -0
- package/dist/commonjs/funcs/commerce/customerUsersDelete.js.map +1 -0
- package/dist/commonjs/funcs/commerce/customerUsersGet.d.ts +10 -0
- package/dist/commonjs/funcs/commerce/customerUsersGet.d.ts.map +1 -0
- package/dist/commonjs/funcs/commerce/customerUsersGet.js +119 -0
- package/dist/commonjs/funcs/commerce/customerUsersGet.js.map +1 -0
- package/dist/commonjs/funcs/commerce/customerUsersList.d.ts +10 -0
- package/dist/commonjs/funcs/commerce/customerUsersList.d.ts.map +1 -0
- package/dist/commonjs/funcs/commerce/customerUsersList.js +132 -0
- package/dist/commonjs/funcs/commerce/customerUsersList.js.map +1 -0
- package/dist/commonjs/funcs/commerce/customerUsersUpdate.d.ts +10 -0
- package/dist/commonjs/funcs/commerce/customerUsersUpdate.d.ts.map +1 -0
- package/dist/commonjs/funcs/commerce/customerUsersUpdate.js +123 -0
- package/dist/commonjs/funcs/commerce/customerUsersUpdate.js.map +1 -0
- package/dist/commonjs/funcs/commerce/index.d.ts +16 -0
- package/dist/commonjs/funcs/commerce/index.d.ts.map +1 -1
- package/dist/commonjs/funcs/commerce/index.js +16 -0
- package/dist/commonjs/funcs/commerce/index.js.map +1 -1
- package/dist/commonjs/funcs/oauth2/index.js +4 -4
- package/dist/commonjs/funcs/oauth2/index.js.map +1 -1
- package/dist/commonjs/funcs/users/index.d.ts +1 -0
- package/dist/commonjs/funcs/users/index.d.ts.map +1 -1
- package/dist/commonjs/funcs/users/index.js +1 -0
- package/dist/commonjs/funcs/users/index.js.map +1 -1
- package/dist/commonjs/funcs/users/usersDisableMfa.js +1 -1
- package/dist/commonjs/funcs/users/usersDisableMfa.js.map +1 -1
- package/dist/commonjs/funcs/users/usersEnableMfa.js +1 -1
- package/dist/commonjs/funcs/users/usersEnableMfa.js.map +1 -1
- package/dist/commonjs/funcs/users/usersGetCustomer.d.ts +10 -0
- package/dist/commonjs/funcs/users/usersGetCustomer.d.ts.map +1 -0
- package/dist/commonjs/funcs/users/usersGetCustomer.js +122 -0
- package/dist/commonjs/funcs/users/usersGetCustomer.js.map +1 -0
- package/dist/commonjs/funcs/users/usersGetMfaMethod.js +1 -1
- package/dist/commonjs/funcs/users/usersGetMfaMethod.js.map +1 -1
- package/dist/commonjs/funcs/users/usersIssueToken.js +1 -1
- package/dist/commonjs/funcs/users/usersIssueToken.js.map +1 -1
- package/dist/commonjs/funcs/users/usersListCustomers.d.ts.map +1 -1
- package/dist/commonjs/funcs/users/usersListCustomers.js +7 -2
- package/dist/commonjs/funcs/users/usersListCustomers.js.map +1 -1
- package/dist/commonjs/funcs/users/usersListMfaMethods.js +1 -1
- package/dist/commonjs/funcs/users/usersListMfaMethods.js.map +1 -1
- package/dist/commonjs/funcs/users/usersListOAuthAccounts.js +1 -1
- package/dist/commonjs/funcs/users/usersListOAuthAccounts.js.map +1 -1
- package/dist/commonjs/funcs/users/usersListRecoveryCodes.js +1 -1
- package/dist/commonjs/funcs/users/usersListRecoveryCodes.js.map +1 -1
- package/dist/commonjs/funcs/users/usersRegenerateRecoveryCodes.js +1 -1
- package/dist/commonjs/funcs/users/usersRegenerateRecoveryCodes.js.map +1 -1
- package/dist/commonjs/funcs/users/usersSendMfa.js +1 -1
- package/dist/commonjs/funcs/users/usersSendMfa.js.map +1 -1
- package/dist/commonjs/funcs/users/usersValidateMfa.js +1 -1
- package/dist/commonjs/funcs/users/usersValidateMfa.js.map +1 -1
- package/dist/commonjs/funcs/users/usersValidateRecoveryCode.js +1 -1
- package/dist/commonjs/funcs/users/usersValidateRecoveryCode.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +1 -1
- package/dist/commonjs/lib/encodings.d.ts +11 -0
- package/dist/commonjs/lib/encodings.d.ts.map +1 -1
- package/dist/commonjs/lib/encodings.js +23 -0
- package/dist/commonjs/lib/encodings.js.map +1 -1
- package/dist/commonjs/lib/sdks.d.ts +1 -0
- package/dist/commonjs/lib/sdks.d.ts.map +1 -1
- package/dist/commonjs/lib/sdks.js +16 -2
- package/dist/commonjs/lib/sdks.js.map +1 -1
- package/dist/commonjs/models/commerce/customer-user-invitation.d.ts +38 -0
- package/dist/commonjs/models/commerce/customer-user-invitation.d.ts.map +1 -0
- package/dist/commonjs/models/commerce/customer-user-invitation.js +89 -0
- package/dist/commonjs/models/commerce/customer-user-invitation.js.map +1 -0
- package/dist/commonjs/models/commerce/customer-user-permission.d.ts +27 -0
- package/dist/commonjs/models/commerce/customer-user-permission.d.ts.map +1 -0
- package/dist/commonjs/models/commerce/customer-user-permission.js +63 -0
- package/dist/commonjs/models/commerce/customer-user-permission.js.map +1 -0
- package/dist/commonjs/models/commerce/customer-user-role.d.ts +20 -0
- package/dist/commonjs/models/commerce/customer-user-role.d.ts.map +1 -0
- package/dist/commonjs/models/commerce/customer-user-role.js +61 -0
- package/dist/commonjs/models/commerce/customer-user-role.js.map +1 -0
- package/dist/commonjs/models/commerce/customer-user.d.ts +6 -0
- package/dist/commonjs/models/commerce/customer-user.d.ts.map +1 -1
- package/dist/commonjs/models/commerce/customer-user.js +18 -1
- package/dist/commonjs/models/commerce/customer-user.js.map +1 -1
- package/dist/commonjs/models/commerce/customer.d.ts +17 -0
- package/dist/commonjs/models/commerce/customer.d.ts.map +1 -0
- package/dist/commonjs/models/commerce/customer.js +58 -0
- package/dist/commonjs/models/commerce/customer.js.map +1 -0
- package/dist/commonjs/models/commerce/index.d.ts +5 -0
- package/dist/commonjs/models/commerce/index.d.ts.map +1 -1
- package/dist/commonjs/models/commerce/index.js +5 -0
- package/dist/commonjs/models/commerce/index.js.map +1 -1
- package/dist/commonjs/models/operations/commerce-customer-user-invitations.d.ts +70 -0
- package/dist/commonjs/models/operations/commerce-customer-user-invitations.d.ts.map +1 -0
- package/dist/commonjs/models/operations/commerce-customer-user-invitations.js +113 -0
- package/dist/commonjs/models/operations/commerce-customer-user-invitations.js.map +1 -0
- package/dist/commonjs/models/operations/commerce-customer-user-permissions.d.ts +9 -0
- package/dist/commonjs/models/operations/commerce-customer-user-permissions.d.ts.map +1 -0
- package/dist/commonjs/models/operations/commerce-customer-user-permissions.js +46 -0
- package/dist/commonjs/models/operations/commerce-customer-user-permissions.js.map +1 -0
- package/dist/commonjs/models/operations/commerce-customer-user-roles.d.ts +57 -0
- package/dist/commonjs/models/operations/commerce-customer-user-roles.d.ts.map +1 -0
- package/dist/commonjs/models/operations/commerce-customer-user-roles.js +92 -0
- package/dist/commonjs/models/operations/commerce-customer-user-roles.js.map +1 -0
- package/dist/commonjs/models/operations/commerce-customer-users.d.ts +48 -0
- package/dist/commonjs/models/operations/commerce-customer-users.d.ts.map +1 -0
- package/dist/commonjs/models/operations/commerce-customer-users.js +86 -0
- package/dist/commonjs/models/operations/commerce-customer-users.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +4 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +4 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/users-customers.d.ts +26 -0
- package/dist/commonjs/models/operations/users-customers.d.ts.map +1 -1
- package/dist/commonjs/models/operations/users-customers.js +16 -1
- package/dist/commonjs/models/operations/users-customers.js.map +1 -1
- package/dist/commonjs/sdk/commerce/customer-user-invitations.d.ts +11 -0
- package/dist/commonjs/sdk/commerce/customer-user-invitations.d.ts.map +1 -0
- package/dist/commonjs/sdk/commerce/customer-user-invitations.js +31 -0
- package/dist/commonjs/sdk/commerce/customer-user-invitations.js.map +1 -0
- package/dist/commonjs/sdk/commerce/customer-user-permissions.d.ts +6 -0
- package/dist/commonjs/sdk/commerce/customer-user-permissions.d.ts.map +1 -0
- package/dist/commonjs/sdk/commerce/customer-user-permissions.js +16 -0
- package/dist/commonjs/sdk/commerce/customer-user-permissions.js.map +1 -0
- package/dist/commonjs/sdk/commerce/customer-user-roles.d.ts +10 -0
- package/dist/commonjs/sdk/commerce/customer-user-roles.d.ts.map +1 -0
- package/dist/commonjs/sdk/commerce/customer-user-roles.js +28 -0
- package/dist/commonjs/sdk/commerce/customer-user-roles.js.map +1 -0
- package/dist/commonjs/sdk/commerce/customer-users.d.ts +9 -0
- package/dist/commonjs/sdk/commerce/customer-users.d.ts.map +1 -0
- package/dist/commonjs/sdk/commerce/customer-users.js +25 -0
- package/dist/commonjs/sdk/commerce/customer-users.js.map +1 -0
- package/dist/commonjs/sdk/commerce/index.d.ts +16 -0
- package/dist/commonjs/sdk/commerce/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/commerce/index.js +29 -1
- package/dist/commonjs/sdk/commerce/index.js.map +1 -1
- package/dist/commonjs/sdk/users/customers.d.ts +1 -0
- package/dist/commonjs/sdk/users/customers.d.ts.map +1 -1
- package/dist/commonjs/sdk/users/customers.js +4 -0
- package/dist/commonjs/sdk/users/customers.js.map +1 -1
- package/dist/esm/funcs/admins/adminsGet.js +2 -2
- package/dist/esm/funcs/admins/adminsGet.js.map +1 -1
- package/dist/esm/funcs/commerce/customerUserInvitationsAccept.d.ts +10 -0
- package/dist/esm/funcs/commerce/customerUserInvitationsAccept.d.ts.map +1 -0
- package/dist/esm/funcs/commerce/customerUserInvitationsAccept.js +85 -0
- package/dist/esm/funcs/commerce/customerUserInvitationsAccept.js.map +1 -0
- package/dist/esm/funcs/commerce/customerUserInvitationsCreate.d.ts +10 -0
- package/dist/esm/funcs/commerce/customerUserInvitationsCreate.d.ts.map +1 -0
- package/dist/esm/funcs/commerce/customerUserInvitationsCreate.js +87 -0
- package/dist/esm/funcs/commerce/customerUserInvitationsCreate.js.map +1 -0
- package/dist/esm/funcs/commerce/customerUserInvitationsGet.d.ts +10 -0
- package/dist/esm/funcs/commerce/customerUserInvitationsGet.d.ts.map +1 -0
- package/dist/esm/funcs/commerce/customerUserInvitationsGet.js +78 -0
- package/dist/esm/funcs/commerce/customerUserInvitationsGet.js.map +1 -0
- package/dist/esm/funcs/commerce/customerUserInvitationsInspect.d.ts +10 -0
- package/dist/esm/funcs/commerce/customerUserInvitationsInspect.d.ts.map +1 -0
- package/dist/esm/funcs/commerce/customerUserInvitationsInspect.js +79 -0
- package/dist/esm/funcs/commerce/customerUserInvitationsInspect.js.map +1 -0
- package/dist/esm/funcs/commerce/customerUserInvitationsList.d.ts +10 -0
- package/dist/esm/funcs/commerce/customerUserInvitationsList.d.ts.map +1 -0
- package/dist/esm/funcs/commerce/customerUserInvitationsList.js +95 -0
- package/dist/esm/funcs/commerce/customerUserInvitationsList.js.map +1 -0
- package/dist/esm/funcs/commerce/customerUserInvitationsRevoke.d.ts +10 -0
- package/dist/esm/funcs/commerce/customerUserInvitationsRevoke.d.ts.map +1 -0
- package/dist/esm/funcs/commerce/customerUserInvitationsRevoke.js +76 -0
- package/dist/esm/funcs/commerce/customerUserInvitationsRevoke.js.map +1 -0
- package/dist/esm/funcs/commerce/customerUserPermissionsList.d.ts +10 -0
- package/dist/esm/funcs/commerce/customerUserPermissionsList.d.ts.map +1 -0
- package/dist/esm/funcs/commerce/customerUserPermissionsList.js +82 -0
- package/dist/esm/funcs/commerce/customerUserPermissionsList.js.map +1 -0
- package/dist/esm/funcs/commerce/customerUserRolesCreate.d.ts +10 -0
- package/dist/esm/funcs/commerce/customerUserRolesCreate.d.ts.map +1 -0
- package/dist/esm/funcs/commerce/customerUserRolesCreate.js +87 -0
- package/dist/esm/funcs/commerce/customerUserRolesCreate.js.map +1 -0
- package/dist/esm/funcs/commerce/customerUserRolesDelete.d.ts +10 -0
- package/dist/esm/funcs/commerce/customerUserRolesDelete.d.ts.map +1 -0
- package/dist/esm/funcs/commerce/customerUserRolesDelete.js +81 -0
- package/dist/esm/funcs/commerce/customerUserRolesDelete.js.map +1 -0
- package/dist/esm/funcs/commerce/customerUserRolesGet.d.ts +10 -0
- package/dist/esm/funcs/commerce/customerUserRolesGet.d.ts.map +1 -0
- package/dist/esm/funcs/commerce/customerUserRolesGet.js +83 -0
- package/dist/esm/funcs/commerce/customerUserRolesGet.js.map +1 -0
- package/dist/esm/funcs/commerce/customerUserRolesList.d.ts +10 -0
- package/dist/esm/funcs/commerce/customerUserRolesList.d.ts.map +1 -0
- package/dist/esm/funcs/commerce/customerUserRolesList.js +91 -0
- package/dist/esm/funcs/commerce/customerUserRolesList.js.map +1 -0
- package/dist/esm/funcs/commerce/customerUserRolesUpdate.d.ts +10 -0
- package/dist/esm/funcs/commerce/customerUserRolesUpdate.d.ts.map +1 -0
- package/dist/esm/funcs/commerce/customerUserRolesUpdate.js +87 -0
- package/dist/esm/funcs/commerce/customerUserRolesUpdate.js.map +1 -0
- package/dist/esm/funcs/commerce/customerUsersDelete.d.ts +10 -0
- package/dist/esm/funcs/commerce/customerUsersDelete.d.ts.map +1 -0
- package/dist/esm/funcs/commerce/customerUsersDelete.js +81 -0
- package/dist/esm/funcs/commerce/customerUsersDelete.js.map +1 -0
- package/dist/esm/funcs/commerce/customerUsersGet.d.ts +10 -0
- package/dist/esm/funcs/commerce/customerUsersGet.d.ts.map +1 -0
- package/dist/esm/funcs/commerce/customerUsersGet.js +83 -0
- package/dist/esm/funcs/commerce/customerUsersGet.js.map +1 -0
- package/dist/esm/funcs/commerce/customerUsersList.d.ts +10 -0
- package/dist/esm/funcs/commerce/customerUsersList.d.ts.map +1 -0
- package/dist/esm/funcs/commerce/customerUsersList.js +96 -0
- package/dist/esm/funcs/commerce/customerUsersList.js.map +1 -0
- package/dist/esm/funcs/commerce/customerUsersUpdate.d.ts +10 -0
- package/dist/esm/funcs/commerce/customerUsersUpdate.d.ts.map +1 -0
- package/dist/esm/funcs/commerce/customerUsersUpdate.js +87 -0
- package/dist/esm/funcs/commerce/customerUsersUpdate.js.map +1 -0
- package/dist/esm/funcs/commerce/index.d.ts +16 -0
- package/dist/esm/funcs/commerce/index.d.ts.map +1 -1
- package/dist/esm/funcs/commerce/index.js +16 -0
- package/dist/esm/funcs/commerce/index.js.map +1 -1
- package/dist/esm/funcs/oauth2/index.js +5 -5
- package/dist/esm/funcs/oauth2/index.js.map +1 -1
- package/dist/esm/funcs/users/index.d.ts +1 -0
- package/dist/esm/funcs/users/index.d.ts.map +1 -1
- package/dist/esm/funcs/users/index.js +1 -0
- package/dist/esm/funcs/users/index.js.map +1 -1
- package/dist/esm/funcs/users/usersDisableMfa.js +2 -2
- package/dist/esm/funcs/users/usersDisableMfa.js.map +1 -1
- package/dist/esm/funcs/users/usersEnableMfa.js +2 -2
- package/dist/esm/funcs/users/usersEnableMfa.js.map +1 -1
- package/dist/esm/funcs/users/usersGetCustomer.d.ts +10 -0
- package/dist/esm/funcs/users/usersGetCustomer.d.ts.map +1 -0
- package/dist/esm/funcs/users/usersGetCustomer.js +86 -0
- package/dist/esm/funcs/users/usersGetCustomer.js.map +1 -0
- package/dist/esm/funcs/users/usersGetMfaMethod.js +2 -2
- package/dist/esm/funcs/users/usersGetMfaMethod.js.map +1 -1
- package/dist/esm/funcs/users/usersIssueToken.js +2 -2
- package/dist/esm/funcs/users/usersIssueToken.js.map +1 -1
- package/dist/esm/funcs/users/usersListCustomers.d.ts.map +1 -1
- package/dist/esm/funcs/users/usersListCustomers.js +8 -3
- package/dist/esm/funcs/users/usersListCustomers.js.map +1 -1
- package/dist/esm/funcs/users/usersListMfaMethods.js +2 -2
- package/dist/esm/funcs/users/usersListMfaMethods.js.map +1 -1
- package/dist/esm/funcs/users/usersListOAuthAccounts.js +2 -2
- package/dist/esm/funcs/users/usersListOAuthAccounts.js.map +1 -1
- package/dist/esm/funcs/users/usersListRecoveryCodes.js +2 -2
- package/dist/esm/funcs/users/usersListRecoveryCodes.js.map +1 -1
- package/dist/esm/funcs/users/usersRegenerateRecoveryCodes.js +2 -2
- package/dist/esm/funcs/users/usersRegenerateRecoveryCodes.js.map +1 -1
- package/dist/esm/funcs/users/usersSendMfa.js +2 -2
- package/dist/esm/funcs/users/usersSendMfa.js.map +1 -1
- package/dist/esm/funcs/users/usersValidateMfa.js +2 -2
- package/dist/esm/funcs/users/usersValidateMfa.js.map +1 -1
- package/dist/esm/funcs/users/usersValidateRecoveryCode.js +2 -2
- package/dist/esm/funcs/users/usersValidateRecoveryCode.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +1 -1
- package/dist/esm/lib/encodings.d.ts +11 -0
- package/dist/esm/lib/encodings.d.ts.map +1 -1
- package/dist/esm/lib/encodings.js +22 -0
- package/dist/esm/lib/encodings.js.map +1 -1
- package/dist/esm/lib/sdks.d.ts +1 -0
- package/dist/esm/lib/sdks.d.ts.map +1 -1
- package/dist/esm/lib/sdks.js +16 -2
- package/dist/esm/lib/sdks.js.map +1 -1
- package/dist/esm/models/commerce/customer-user-invitation.d.ts +38 -0
- package/dist/esm/models/commerce/customer-user-invitation.d.ts.map +1 -0
- package/dist/esm/models/commerce/customer-user-invitation.js +53 -0
- package/dist/esm/models/commerce/customer-user-invitation.js.map +1 -0
- package/dist/esm/models/commerce/customer-user-permission.d.ts +27 -0
- package/dist/esm/models/commerce/customer-user-permission.d.ts.map +1 -0
- package/dist/esm/models/commerce/customer-user-permission.js +27 -0
- package/dist/esm/models/commerce/customer-user-permission.js.map +1 -0
- package/dist/esm/models/commerce/customer-user-role.d.ts +20 -0
- package/dist/esm/models/commerce/customer-user-role.d.ts.map +1 -0
- package/dist/esm/models/commerce/customer-user-role.js +25 -0
- package/dist/esm/models/commerce/customer-user-role.js.map +1 -0
- package/dist/esm/models/commerce/customer-user.d.ts +6 -0
- package/dist/esm/models/commerce/customer-user.d.ts.map +1 -1
- package/dist/esm/models/commerce/customer-user.js +18 -1
- package/dist/esm/models/commerce/customer-user.js.map +1 -1
- package/dist/esm/models/commerce/customer.d.ts +17 -0
- package/dist/esm/models/commerce/customer.d.ts.map +1 -0
- package/dist/esm/models/commerce/customer.js +22 -0
- package/dist/esm/models/commerce/customer.js.map +1 -0
- package/dist/esm/models/commerce/index.d.ts +5 -0
- package/dist/esm/models/commerce/index.d.ts.map +1 -1
- package/dist/esm/models/commerce/index.js +5 -0
- package/dist/esm/models/commerce/index.js.map +1 -1
- package/dist/esm/models/operations/commerce-customer-user-invitations.d.ts +70 -0
- package/dist/esm/models/operations/commerce-customer-user-invitations.d.ts.map +1 -0
- package/dist/esm/models/operations/commerce-customer-user-invitations.js +77 -0
- package/dist/esm/models/operations/commerce-customer-user-invitations.js.map +1 -0
- package/dist/esm/models/operations/commerce-customer-user-permissions.d.ts +9 -0
- package/dist/esm/models/operations/commerce-customer-user-permissions.d.ts.map +1 -0
- package/dist/esm/models/operations/commerce-customer-user-permissions.js +10 -0
- package/dist/esm/models/operations/commerce-customer-user-permissions.js.map +1 -0
- package/dist/esm/models/operations/commerce-customer-user-roles.d.ts +57 -0
- package/dist/esm/models/operations/commerce-customer-user-roles.d.ts.map +1 -0
- package/dist/esm/models/operations/commerce-customer-user-roles.js +56 -0
- package/dist/esm/models/operations/commerce-customer-user-roles.js.map +1 -0
- package/dist/esm/models/operations/commerce-customer-users.d.ts +48 -0
- package/dist/esm/models/operations/commerce-customer-users.d.ts.map +1 -0
- package/dist/esm/models/operations/commerce-customer-users.js +50 -0
- package/dist/esm/models/operations/commerce-customer-users.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +4 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +4 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/users-customers.d.ts +26 -0
- package/dist/esm/models/operations/users-customers.d.ts.map +1 -1
- package/dist/esm/models/operations/users-customers.js +15 -0
- package/dist/esm/models/operations/users-customers.js.map +1 -1
- package/dist/esm/sdk/commerce/customer-user-invitations.d.ts +11 -0
- package/dist/esm/sdk/commerce/customer-user-invitations.d.ts.map +1 -0
- package/dist/esm/sdk/commerce/customer-user-invitations.js +27 -0
- package/dist/esm/sdk/commerce/customer-user-invitations.js.map +1 -0
- package/dist/esm/sdk/commerce/customer-user-permissions.d.ts +6 -0
- package/dist/esm/sdk/commerce/customer-user-permissions.d.ts.map +1 -0
- package/dist/esm/sdk/commerce/customer-user-permissions.js +12 -0
- package/dist/esm/sdk/commerce/customer-user-permissions.js.map +1 -0
- package/dist/esm/sdk/commerce/customer-user-roles.d.ts +10 -0
- package/dist/esm/sdk/commerce/customer-user-roles.d.ts.map +1 -0
- package/dist/esm/sdk/commerce/customer-user-roles.js +24 -0
- package/dist/esm/sdk/commerce/customer-user-roles.js.map +1 -0
- package/dist/esm/sdk/commerce/customer-users.d.ts +9 -0
- package/dist/esm/sdk/commerce/customer-users.d.ts.map +1 -0
- package/dist/esm/sdk/commerce/customer-users.js +21 -0
- package/dist/esm/sdk/commerce/customer-users.js.map +1 -0
- package/dist/esm/sdk/commerce/index.d.ts +16 -0
- package/dist/esm/sdk/commerce/index.d.ts.map +1 -1
- package/dist/esm/sdk/commerce/index.js +24 -0
- package/dist/esm/sdk/commerce/index.js.map +1 -1
- package/dist/esm/sdk/users/customers.d.ts +1 -0
- package/dist/esm/sdk/users/customers.d.ts.map +1 -1
- package/dist/esm/sdk/users/customers.js +4 -0
- package/dist/esm/sdk/users/customers.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/admins/adminsGet.ts +2 -2
- package/src/funcs/commerce/customerUserInvitationsAccept.ts +154 -0
- package/src/funcs/commerce/customerUserInvitationsCreate.ts +164 -0
- package/src/funcs/commerce/customerUserInvitationsGet.ts +147 -0
- package/src/funcs/commerce/customerUserInvitationsInspect.ts +152 -0
- package/src/funcs/commerce/customerUserInvitationsList.ts +163 -0
- package/src/funcs/commerce/customerUserInvitationsRevoke.ts +145 -0
- package/src/funcs/commerce/customerUserPermissionsList.ts +160 -0
- package/src/funcs/commerce/customerUserRolesCreate.ts +164 -0
- package/src/funcs/commerce/customerUserRolesDelete.ts +158 -0
- package/src/funcs/commerce/customerUserRolesGet.ts +160 -0
- package/src/funcs/commerce/customerUserRolesList.ts +169 -0
- package/src/funcs/commerce/customerUserRolesUpdate.ts +164 -0
- package/src/funcs/commerce/customerUsersDelete.ts +158 -0
- package/src/funcs/commerce/customerUsersGet.ts +160 -0
- package/src/funcs/commerce/customerUsersList.ts +174 -0
- package/src/funcs/commerce/customerUsersUpdate.ts +164 -0
- package/src/funcs/commerce/index.ts +16 -1
- package/src/funcs/oauth2/index.ts +5 -5
- package/src/funcs/users/index.ts +1 -0
- package/src/funcs/users/usersDisableMfa.ts +2 -2
- package/src/funcs/users/usersEnableMfa.ts +2 -2
- package/src/funcs/users/usersGetCustomer.ts +164 -0
- package/src/funcs/users/usersGetMfaMethod.ts +2 -2
- package/src/funcs/users/usersIssueToken.ts +2 -2
- package/src/funcs/users/usersListCustomers.ts +10 -3
- package/src/funcs/users/usersListMfaMethods.ts +2 -2
- package/src/funcs/users/usersListOAuthAccounts.ts +2 -2
- package/src/funcs/users/usersListRecoveryCodes.ts +2 -2
- package/src/funcs/users/usersRegenerateRecoveryCodes.ts +2 -2
- package/src/funcs/users/usersSendMfa.ts +2 -2
- package/src/funcs/users/usersValidateMfa.ts +2 -2
- package/src/funcs/users/usersValidateRecoveryCode.ts +2 -2
- package/src/lib/config.ts +1 -1
- package/src/lib/encodings.ts +29 -0
- package/src/lib/sdks.ts +18 -2
- package/src/models/commerce/customer-user-invitation.ts +94 -0
- package/src/models/commerce/customer-user-permission.ts +52 -0
- package/src/models/commerce/customer-user-role.ts +42 -0
- package/src/models/commerce/customer-user.ts +26 -2
- package/src/models/commerce/customer.ts +36 -0
- package/src/models/commerce/index.ts +5 -0
- package/src/models/operations/commerce-customer-user-invitations.ts +139 -0
- package/src/models/operations/commerce-customer-user-permissions.ts +17 -0
- package/src/models/operations/commerce-customer-user-roles.ts +96 -0
- package/src/models/operations/commerce-customer-users.ts +88 -0
- package/src/models/operations/index.ts +4 -0
- package/src/models/operations/users-customers.ts +41 -0
- package/src/sdk/commerce/customer-user-invitations.ts +59 -0
- package/src/sdk/commerce/customer-user-permissions.ts +16 -0
- package/src/sdk/commerce/customer-user-roles.ts +51 -0
- package/src/sdk/commerce/customer-users.ts +43 -0
- package/src/sdk/commerce/index.ts +32 -0
- package/src/sdk/users/customers.ts +12 -0
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Update customer user.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
6
|
+
import { encodeJSON } from "../../lib/encodings.js";
|
|
7
|
+
import * as M from "../../lib/matchers.js";
|
|
8
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
9
|
+
import { extractSecurity, resolveGlobalSecurity } from "../../lib/security.js";
|
|
10
|
+
import * as errors from "../../models/errors/index.js";
|
|
11
|
+
import { ResponseValidationError } from "../../models/errors/response-validation-error.js";
|
|
12
|
+
import { SDKValidationError } from "../../models/errors/sdk-validation-error.js";
|
|
13
|
+
import {
|
|
14
|
+
ConnectionError,
|
|
15
|
+
InvalidRequestError,
|
|
16
|
+
RequestAbortedError,
|
|
17
|
+
RequestTimeoutError,
|
|
18
|
+
UnexpectedClientError,
|
|
19
|
+
} from "../../models/errors/http-client-errors.js";
|
|
20
|
+
import * as operations from "../../models/operations/index.js";
|
|
21
|
+
import { APICall, APIPromise } from "../../types/async.js";
|
|
22
|
+
import { Result } from "../../types/fp.js";
|
|
23
|
+
|
|
24
|
+
export function customerUsersUpdate(
|
|
25
|
+
client: ClientSDK,
|
|
26
|
+
request: operations.UpdateCustomerUserRequest,
|
|
27
|
+
options?: RequestOptions,
|
|
28
|
+
): APIPromise<
|
|
29
|
+
Result<
|
|
30
|
+
operations.UpdateCustomerUserResponse,
|
|
31
|
+
| errors.ErrorResponse
|
|
32
|
+
| errors.OminityDefaultError
|
|
33
|
+
| ResponseValidationError
|
|
34
|
+
| ConnectionError
|
|
35
|
+
| RequestAbortedError
|
|
36
|
+
| RequestTimeoutError
|
|
37
|
+
| InvalidRequestError
|
|
38
|
+
| UnexpectedClientError
|
|
39
|
+
| SDKValidationError
|
|
40
|
+
>
|
|
41
|
+
> {
|
|
42
|
+
return new APIPromise($do(client, request, options));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
async function $do(
|
|
46
|
+
client: ClientSDK,
|
|
47
|
+
request: operations.UpdateCustomerUserRequest,
|
|
48
|
+
options?: RequestOptions,
|
|
49
|
+
): Promise<
|
|
50
|
+
[
|
|
51
|
+
Result<
|
|
52
|
+
operations.UpdateCustomerUserResponse,
|
|
53
|
+
| errors.ErrorResponse
|
|
54
|
+
| errors.OminityDefaultError
|
|
55
|
+
| ResponseValidationError
|
|
56
|
+
| ConnectionError
|
|
57
|
+
| RequestAbortedError
|
|
58
|
+
| RequestTimeoutError
|
|
59
|
+
| InvalidRequestError
|
|
60
|
+
| UnexpectedClientError
|
|
61
|
+
| SDKValidationError
|
|
62
|
+
>,
|
|
63
|
+
APICall,
|
|
64
|
+
]
|
|
65
|
+
> {
|
|
66
|
+
const parsed = safeParse(
|
|
67
|
+
request,
|
|
68
|
+
(value) => operations.UpdateCustomerUserRequest$outboundSchema.parse(value),
|
|
69
|
+
"Input validation failed",
|
|
70
|
+
);
|
|
71
|
+
if (!parsed.ok) {
|
|
72
|
+
return [parsed, { status: "invalid" }];
|
|
73
|
+
}
|
|
74
|
+
const payload = parsed.value;
|
|
75
|
+
const body = encodeJSON("body", payload.data, { explode: true });
|
|
76
|
+
|
|
77
|
+
const path = `/commerce/customers/${payload.customerId}/users/${payload.userId}`;
|
|
78
|
+
const headers = new Headers({
|
|
79
|
+
"Content-Type": "application/json",
|
|
80
|
+
Accept: "application/hal+json",
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
84
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
85
|
+
|
|
86
|
+
const context = {
|
|
87
|
+
options: client._options,
|
|
88
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
89
|
+
operationID: "customer.users.update",
|
|
90
|
+
oAuth2Scopes: null,
|
|
91
|
+
resolvedSecurity: requestSecurity,
|
|
92
|
+
securitySource: client._options.security,
|
|
93
|
+
retryConfig: options?.retries
|
|
94
|
+
|| client._options.retryConfig
|
|
95
|
+
|| {
|
|
96
|
+
strategy: "backoff",
|
|
97
|
+
backoff: {
|
|
98
|
+
initialInterval: 500,
|
|
99
|
+
maxInterval: 5000,
|
|
100
|
+
exponent: 2,
|
|
101
|
+
maxElapsedTime: 7500,
|
|
102
|
+
},
|
|
103
|
+
retryConnectionErrors: true,
|
|
104
|
+
}
|
|
105
|
+
|| { strategy: "none" },
|
|
106
|
+
retryCodes: options?.retryCodes || ["5xx"],
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
const requestRes = client._createRequest(context, {
|
|
110
|
+
security: requestSecurity,
|
|
111
|
+
method: "PATCH",
|
|
112
|
+
baseURL: options?.serverURL,
|
|
113
|
+
path,
|
|
114
|
+
headers,
|
|
115
|
+
body,
|
|
116
|
+
userAgent: client._options.userAgent,
|
|
117
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
118
|
+
}, options);
|
|
119
|
+
if (!requestRes.ok) {
|
|
120
|
+
return [requestRes, { status: "invalid" }];
|
|
121
|
+
}
|
|
122
|
+
const req = requestRes.value;
|
|
123
|
+
|
|
124
|
+
const doResult = await client._do(req, {
|
|
125
|
+
context,
|
|
126
|
+
errorCodes: ["400", "4XX", "5XX"],
|
|
127
|
+
retryConfig: context.retryConfig,
|
|
128
|
+
retryCodes: context.retryCodes,
|
|
129
|
+
});
|
|
130
|
+
if (!doResult.ok) {
|
|
131
|
+
return [doResult, { status: "request-error", request: req }];
|
|
132
|
+
}
|
|
133
|
+
const response = doResult.value;
|
|
134
|
+
|
|
135
|
+
const responseFields = {
|
|
136
|
+
HttpMeta: { Response: response, Request: req },
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
const [result] = await M.match<
|
|
140
|
+
operations.UpdateCustomerUserResponse,
|
|
141
|
+
| errors.ErrorResponse
|
|
142
|
+
| errors.OminityDefaultError
|
|
143
|
+
| ResponseValidationError
|
|
144
|
+
| ConnectionError
|
|
145
|
+
| RequestAbortedError
|
|
146
|
+
| RequestTimeoutError
|
|
147
|
+
| InvalidRequestError
|
|
148
|
+
| UnexpectedClientError
|
|
149
|
+
| SDKValidationError
|
|
150
|
+
>(
|
|
151
|
+
M.json(200, operations.UpdateCustomerUserResponse$inboundSchema, {
|
|
152
|
+
ctype: "application/hal+json",
|
|
153
|
+
}),
|
|
154
|
+
M.jsonErr("4XX", errors.ErrorResponse$inboundSchema, {
|
|
155
|
+
ctype: "application/hal+json",
|
|
156
|
+
}),
|
|
157
|
+
M.fail("5XX"),
|
|
158
|
+
)(response, req, { extraFields: responseFields });
|
|
159
|
+
if (!result.ok) {
|
|
160
|
+
return [result, { status: "complete", request: req, response }];
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
return [result, { status: "complete", request: req, response }];
|
|
164
|
+
}
|
|
@@ -35,4 +35,19 @@ export * from "./reviewsCreate.js";
|
|
|
35
35
|
export * from "./reviewsUpdate.js";
|
|
36
36
|
export * from "./currenciesList.js";
|
|
37
37
|
export * from "./currenciesGet.js";
|
|
38
|
-
|
|
38
|
+
export * from "./customerUsersList.js";
|
|
39
|
+
export * from "./customerUsersGet.js";
|
|
40
|
+
export * from "./customerUsersUpdate.js";
|
|
41
|
+
export * from "./customerUsersDelete.js";
|
|
42
|
+
export * from "./customerUserInvitationsList.js";
|
|
43
|
+
export * from "./customerUserInvitationsCreate.js";
|
|
44
|
+
export * from "./customerUserInvitationsGet.js";
|
|
45
|
+
export * from "./customerUserInvitationsRevoke.js";
|
|
46
|
+
export * from "./customerUserInvitationsInspect.js";
|
|
47
|
+
export * from "./customerUserInvitationsAccept.js";
|
|
48
|
+
export * from "./customerUserRolesList.js";
|
|
49
|
+
export * from "./customerUserRolesGet.js";
|
|
50
|
+
export * from "./customerUserRolesCreate.js";
|
|
51
|
+
export * from "./customerUserRolesUpdate.js";
|
|
52
|
+
export * from "./customerUserRolesDelete.js";
|
|
53
|
+
export * from "./customerUserPermissionsList.js";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
6
|
-
import { encodeJSON,
|
|
6
|
+
import { encodeJSON, encodePath } from "../../lib/encodings.js";
|
|
7
7
|
import * as M from "../../lib/matchers.js";
|
|
8
8
|
import { safeParse } from "../../lib/schemas.js";
|
|
9
9
|
import { baseURLWithoutAPIVersion } from "../../lib/url.js";
|
|
@@ -272,7 +272,7 @@ export async function oauth2RevokeAuthorizedToken(
|
|
|
272
272
|
return parsed;
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
-
const path =
|
|
275
|
+
const path = encodePath(
|
|
276
276
|
"/oauth2/tokens/{token_id}",
|
|
277
277
|
{ token_id: parsed.value.token_id },
|
|
278
278
|
{ explode: false, charEncoding: "percent" },
|
|
@@ -428,7 +428,7 @@ export async function oauth2UpdateClient(
|
|
|
428
428
|
redirect: parsed.value.redirect,
|
|
429
429
|
}, { explode: true });
|
|
430
430
|
|
|
431
|
-
const path =
|
|
431
|
+
const path = encodePath(
|
|
432
432
|
"/oauth2/clients/{client_id}",
|
|
433
433
|
{ client_id: parsed.value.client_id },
|
|
434
434
|
{ explode: false, charEncoding: "percent" },
|
|
@@ -483,7 +483,7 @@ export async function oauth2DeleteClient(
|
|
|
483
483
|
return parsed;
|
|
484
484
|
}
|
|
485
485
|
|
|
486
|
-
const path =
|
|
486
|
+
const path = encodePath(
|
|
487
487
|
"/oauth2/clients/{client_id}",
|
|
488
488
|
{ client_id: parsed.value.client_id },
|
|
489
489
|
{ explode: false, charEncoding: "percent" },
|
|
@@ -689,7 +689,7 @@ export async function oauth2DeletePersonalAccessToken(
|
|
|
689
689
|
return parsed;
|
|
690
690
|
}
|
|
691
691
|
|
|
692
|
-
const path =
|
|
692
|
+
const path = encodePath(
|
|
693
693
|
"/oauth2/personal-access-tokens/{token_id}",
|
|
694
694
|
{ token_id: parsed.value.token_id },
|
|
695
695
|
{ explode: false, charEncoding: "percent" },
|
package/src/funcs/users/index.ts
CHANGED
|
@@ -10,6 +10,7 @@ export * from "./usersUpdate.js";
|
|
|
10
10
|
export * from "./usersSendPasswordResetLink.js";
|
|
11
11
|
export * from "./usersResetPassword.js";
|
|
12
12
|
export * from "./usersListCustomers.js";
|
|
13
|
+
export * from "./usersGetCustomer.js";
|
|
13
14
|
export * from "./usersListOAuthAccounts.js";
|
|
14
15
|
export * from "./usersListMfaMethods.js";
|
|
15
16
|
export * from "./usersGetMfaMethod.js";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
7
|
+
encodePath,
|
|
8
8
|
} from "../../lib/encodings.js";
|
|
9
9
|
import * as M from "../../lib/matchers.js";
|
|
10
10
|
import { safeParse } from "../../lib/schemas.js";
|
|
@@ -82,7 +82,7 @@ async function $do(
|
|
|
82
82
|
const payload = parsed.value;
|
|
83
83
|
const body = null;
|
|
84
84
|
|
|
85
|
-
const path =
|
|
85
|
+
const path = encodePath(
|
|
86
86
|
"/users/{id}/mfa-methods/{method}",
|
|
87
87
|
{ "id": payload.id, "method": payload.method },
|
|
88
88
|
{ explode: false, charEncoding: "percent" },
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
7
|
+
encodePath,
|
|
8
8
|
} from "../../lib/encodings.js";
|
|
9
9
|
import * as M from "../../lib/matchers.js";
|
|
10
10
|
import { safeParse } from "../../lib/schemas.js";
|
|
@@ -82,7 +82,7 @@ async function $do(
|
|
|
82
82
|
const payload = parsed.value;
|
|
83
83
|
const body = null;
|
|
84
84
|
|
|
85
|
-
const path =
|
|
85
|
+
const path = encodePath(
|
|
86
86
|
"/users/{id}/mfa-methods/{method}/enable",
|
|
87
87
|
{ "id": payload.id, "method": payload.method },
|
|
88
88
|
{ explode: false, charEncoding: "percent" },
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Get a user customer membership.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { encodeFormQuery } from "../../lib/encodings.js";
|
|
6
|
+
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
7
|
+
import * as M from "../../lib/matchers.js";
|
|
8
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
9
|
+
import { extractSecurity, resolveGlobalSecurity } from "../../lib/security.js";
|
|
10
|
+
import * as errors from "../../models/errors/index.js";
|
|
11
|
+
import { ResponseValidationError } from "../../models/errors/response-validation-error.js";
|
|
12
|
+
import { SDKValidationError } from "../../models/errors/sdk-validation-error.js";
|
|
13
|
+
import {
|
|
14
|
+
ConnectionError,
|
|
15
|
+
InvalidRequestError,
|
|
16
|
+
RequestAbortedError,
|
|
17
|
+
RequestTimeoutError,
|
|
18
|
+
UnexpectedClientError,
|
|
19
|
+
} from "../../models/errors/http-client-errors.js";
|
|
20
|
+
import * as operations from "../../models/operations/index.js";
|
|
21
|
+
import { APICall, APIPromise } from "../../types/async.js";
|
|
22
|
+
import { Result } from "../../types/fp.js";
|
|
23
|
+
|
|
24
|
+
export function usersGetCustomer(
|
|
25
|
+
client: ClientSDK,
|
|
26
|
+
request: operations.GetUserCustomerRequest,
|
|
27
|
+
options?: RequestOptions,
|
|
28
|
+
): APIPromise<
|
|
29
|
+
Result<
|
|
30
|
+
operations.GetUserCustomerResponse,
|
|
31
|
+
| errors.ErrorResponse
|
|
32
|
+
| errors.OminityDefaultError
|
|
33
|
+
| ResponseValidationError
|
|
34
|
+
| ConnectionError
|
|
35
|
+
| RequestAbortedError
|
|
36
|
+
| RequestTimeoutError
|
|
37
|
+
| InvalidRequestError
|
|
38
|
+
| UnexpectedClientError
|
|
39
|
+
| SDKValidationError
|
|
40
|
+
>
|
|
41
|
+
> {
|
|
42
|
+
return new APIPromise($do(client, request, options));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
async function $do(
|
|
46
|
+
client: ClientSDK,
|
|
47
|
+
request: operations.GetUserCustomerRequest,
|
|
48
|
+
options?: RequestOptions,
|
|
49
|
+
): Promise<
|
|
50
|
+
[
|
|
51
|
+
Result<
|
|
52
|
+
operations.GetUserCustomerResponse,
|
|
53
|
+
| errors.ErrorResponse
|
|
54
|
+
| errors.OminityDefaultError
|
|
55
|
+
| ResponseValidationError
|
|
56
|
+
| ConnectionError
|
|
57
|
+
| RequestAbortedError
|
|
58
|
+
| RequestTimeoutError
|
|
59
|
+
| InvalidRequestError
|
|
60
|
+
| UnexpectedClientError
|
|
61
|
+
| SDKValidationError
|
|
62
|
+
>,
|
|
63
|
+
APICall,
|
|
64
|
+
]
|
|
65
|
+
> {
|
|
66
|
+
const parsed = safeParse(
|
|
67
|
+
request,
|
|
68
|
+
(value) => operations.GetUserCustomerRequest$outboundSchema.parse(value),
|
|
69
|
+
"Input validation failed",
|
|
70
|
+
);
|
|
71
|
+
if (!parsed.ok) {
|
|
72
|
+
return [parsed, { status: "invalid" }];
|
|
73
|
+
}
|
|
74
|
+
const payload = parsed.value;
|
|
75
|
+
const body = null;
|
|
76
|
+
|
|
77
|
+
const path = `/users/${payload.userId}/customers/${payload.customerId}`;
|
|
78
|
+
const query = encodeFormQuery({ include: payload.include });
|
|
79
|
+
const headers = new Headers({ Accept: "application/hal+json" });
|
|
80
|
+
|
|
81
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
82
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
83
|
+
|
|
84
|
+
const context = {
|
|
85
|
+
options: client._options,
|
|
86
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
87
|
+
operationID: "users.customers.get",
|
|
88
|
+
oAuth2Scopes: null,
|
|
89
|
+
resolvedSecurity: requestSecurity,
|
|
90
|
+
securitySource: client._options.security,
|
|
91
|
+
retryConfig: options?.retries
|
|
92
|
+
|| client._options.retryConfig
|
|
93
|
+
|| {
|
|
94
|
+
strategy: "backoff",
|
|
95
|
+
backoff: {
|
|
96
|
+
initialInterval: 500,
|
|
97
|
+
maxInterval: 5000,
|
|
98
|
+
exponent: 2,
|
|
99
|
+
maxElapsedTime: 7500,
|
|
100
|
+
},
|
|
101
|
+
retryConnectionErrors: true,
|
|
102
|
+
}
|
|
103
|
+
|| { strategy: "none" },
|
|
104
|
+
retryCodes: options?.retryCodes || ["5xx"],
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
const requestRes = client._createRequest(context, {
|
|
108
|
+
security: requestSecurity,
|
|
109
|
+
method: "GET",
|
|
110
|
+
baseURL: options?.serverURL,
|
|
111
|
+
path,
|
|
112
|
+
headers,
|
|
113
|
+
query,
|
|
114
|
+
body,
|
|
115
|
+
userAgent: client._options.userAgent,
|
|
116
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
117
|
+
}, options);
|
|
118
|
+
if (!requestRes.ok) {
|
|
119
|
+
return [requestRes, { status: "invalid" }];
|
|
120
|
+
}
|
|
121
|
+
const req = requestRes.value;
|
|
122
|
+
|
|
123
|
+
const doResult = await client._do(req, {
|
|
124
|
+
context,
|
|
125
|
+
errorCodes: ["400", "4XX", "5XX"],
|
|
126
|
+
retryConfig: context.retryConfig,
|
|
127
|
+
retryCodes: context.retryCodes,
|
|
128
|
+
});
|
|
129
|
+
if (!doResult.ok) {
|
|
130
|
+
return [doResult, { status: "request-error", request: req }];
|
|
131
|
+
}
|
|
132
|
+
const response = doResult.value;
|
|
133
|
+
|
|
134
|
+
const responseFields = {
|
|
135
|
+
HttpMeta: { Response: response, Request: req },
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
const [result] = await M.match<
|
|
139
|
+
operations.GetUserCustomerResponse,
|
|
140
|
+
| errors.ErrorResponse
|
|
141
|
+
| errors.OminityDefaultError
|
|
142
|
+
| ResponseValidationError
|
|
143
|
+
| ConnectionError
|
|
144
|
+
| RequestAbortedError
|
|
145
|
+
| RequestTimeoutError
|
|
146
|
+
| InvalidRequestError
|
|
147
|
+
| UnexpectedClientError
|
|
148
|
+
| SDKValidationError
|
|
149
|
+
>(
|
|
150
|
+
M.json(200, operations.GetUserCustomerResponse$inboundSchema, {
|
|
151
|
+
ctype: "application/hal+json",
|
|
152
|
+
}),
|
|
153
|
+
M.jsonErr("4XX", errors.ErrorResponse$inboundSchema, {
|
|
154
|
+
ctype: "application/hal+json",
|
|
155
|
+
}),
|
|
156
|
+
M.fail("5XX"),
|
|
157
|
+
)(response, req, { extraFields: responseFields });
|
|
158
|
+
if (!result.ok) {
|
|
159
|
+
return [result, { status: "complete", request: req, response }];
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
return [result, { status: "complete", request: req, response }];
|
|
163
|
+
}
|
|
164
|
+
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
7
|
+
encodePath,
|
|
8
8
|
} from "../../lib/encodings.js";
|
|
9
9
|
import * as M from "../../lib/matchers.js";
|
|
10
10
|
import { safeParse } from "../../lib/schemas.js";
|
|
@@ -82,7 +82,7 @@ async function $do(
|
|
|
82
82
|
const payload = parsed.value;
|
|
83
83
|
const body = null;
|
|
84
84
|
|
|
85
|
-
const path =
|
|
85
|
+
const path = encodePath(
|
|
86
86
|
"/users/{id}/mfa-methods/{method}",
|
|
87
87
|
{ "id": payload.id, "method": payload.method },
|
|
88
88
|
{ explode: false, charEncoding: "percent" },
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
7
|
+
encodePath,
|
|
8
8
|
} from "../../lib/encodings.js";
|
|
9
9
|
import * as M from "../../lib/matchers.js";
|
|
10
10
|
import { safeParse } from "../../lib/schemas.js";
|
|
@@ -81,7 +81,7 @@ async function $do(
|
|
|
81
81
|
const payload = parsed.value;
|
|
82
82
|
const body = null;
|
|
83
83
|
|
|
84
|
-
const path =
|
|
84
|
+
const path = encodePath(
|
|
85
85
|
"/users/{id}/token",
|
|
86
86
|
{ id: payload.id },
|
|
87
87
|
{ explode: false, charEncoding: "percent" },
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
7
|
+
encodeDeepObjectQuery,
|
|
8
|
+
encodePath,
|
|
8
9
|
encodeFormQuery,
|
|
9
10
|
queryJoin,
|
|
10
11
|
} from "../../lib/encodings.js";
|
|
@@ -85,18 +86,24 @@ async function $do(
|
|
|
85
86
|
const payload = parsed.value;
|
|
86
87
|
const body = null;
|
|
87
88
|
|
|
88
|
-
const path =
|
|
89
|
+
const path = encodePath(
|
|
89
90
|
"/users/{id}/customers",
|
|
90
91
|
{ "id": payload.id },
|
|
91
92
|
{ explode: false, charEncoding: "percent" },
|
|
92
93
|
) || "";
|
|
93
94
|
|
|
94
95
|
const baseQuery = encodeFormQuery({
|
|
96
|
+
include: payload.include,
|
|
97
|
+
sort: payload.sort,
|
|
95
98
|
page: payload.page,
|
|
96
99
|
limit: payload.limit,
|
|
97
100
|
});
|
|
98
101
|
|
|
99
|
-
const
|
|
102
|
+
const filterQuery = payload.filter != null
|
|
103
|
+
? encodeDeepObjectQuery({ filter: payload.filter })
|
|
104
|
+
: undefined;
|
|
105
|
+
|
|
106
|
+
const query = queryJoin(baseQuery, filterQuery);
|
|
100
107
|
|
|
101
108
|
const headers = new Headers({
|
|
102
109
|
Accept: "application/hal+json",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
6
|
-
import {
|
|
6
|
+
import { encodePath } from "../../lib/encodings.js";
|
|
7
7
|
import * as M from "../../lib/matchers.js";
|
|
8
8
|
import { safeParse } from "../../lib/schemas.js";
|
|
9
9
|
import { extractSecurity, resolveGlobalSecurity } from "../../lib/security.js";
|
|
@@ -80,7 +80,7 @@ async function $do(
|
|
|
80
80
|
const payload = parsed.value;
|
|
81
81
|
const body = null;
|
|
82
82
|
|
|
83
|
-
const path =
|
|
83
|
+
const path = encodePath(
|
|
84
84
|
"/users/{id}/mfa-methods",
|
|
85
85
|
{ "id": payload.id },
|
|
86
86
|
{ explode: false, charEncoding: "percent" },
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
7
|
+
encodePath,
|
|
8
8
|
encodeFormQuery,
|
|
9
9
|
queryJoin,
|
|
10
10
|
} from "../../lib/encodings.js";
|
|
@@ -85,7 +85,7 @@ async function $do(
|
|
|
85
85
|
const payload = parsed.value;
|
|
86
86
|
const body = null;
|
|
87
87
|
|
|
88
|
-
const path =
|
|
88
|
+
const path = encodePath(
|
|
89
89
|
"/users/{id}/oauthaccounts",
|
|
90
90
|
{ "id": payload.id },
|
|
91
91
|
{ explode: false, charEncoding: "percent" },
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
7
|
+
encodePath,
|
|
8
8
|
encodeFormQuery,
|
|
9
9
|
queryJoin,
|
|
10
10
|
} from "../../lib/encodings.js";
|
|
@@ -84,7 +84,7 @@ async function $do(
|
|
|
84
84
|
const payload = parsed.value;
|
|
85
85
|
const body = null;
|
|
86
86
|
|
|
87
|
-
const path =
|
|
87
|
+
const path = encodePath(
|
|
88
88
|
"/users/{id}/recovery-codes",
|
|
89
89
|
{ "id": payload.id },
|
|
90
90
|
{ explode: false, charEncoding: "percent" },
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
7
|
+
encodePath,
|
|
8
8
|
encodeJSON,
|
|
9
9
|
} from "../../lib/encodings.js";
|
|
10
10
|
import * as M from "../../lib/matchers.js";
|
|
@@ -83,7 +83,7 @@ async function $do(
|
|
|
83
83
|
const payload = parsed.value;
|
|
84
84
|
const body = encodeJSON("body", { confirm: payload.confirm }, { explode: true });
|
|
85
85
|
|
|
86
|
-
const path =
|
|
86
|
+
const path = encodePath(
|
|
87
87
|
"/users/{id}/recovery-codes",
|
|
88
88
|
{ "id": payload.id },
|
|
89
89
|
{ explode: false, charEncoding: "percent" },
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
7
|
+
encodePath,
|
|
8
8
|
} from "../../lib/encodings.js";
|
|
9
9
|
import * as M from "../../lib/matchers.js";
|
|
10
10
|
import { safeParse } from "../../lib/schemas.js";
|
|
@@ -82,7 +82,7 @@ async function $do(
|
|
|
82
82
|
const payload = parsed.value;
|
|
83
83
|
const body = null;
|
|
84
84
|
|
|
85
|
-
const path =
|
|
85
|
+
const path = encodePath(
|
|
86
86
|
"/users/{id}/mfa-methods/{method}/send",
|
|
87
87
|
{ "id": payload.id, "method": payload.method },
|
|
88
88
|
{ explode: false, charEncoding: "percent" },
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
7
|
+
encodePath,
|
|
8
8
|
encodeJSON,
|
|
9
9
|
} from "../../lib/encodings.js";
|
|
10
10
|
import * as M from "../../lib/matchers.js";
|
|
@@ -83,7 +83,7 @@ async function $do(
|
|
|
83
83
|
const payload = parsed.value;
|
|
84
84
|
const body = encodeJSON("body", { code: payload.code }, { explode: true });
|
|
85
85
|
|
|
86
|
-
const path =
|
|
86
|
+
const path = encodePath(
|
|
87
87
|
"/users/{id}/mfa-methods/{method}/validate",
|
|
88
88
|
{ "id": payload.id, "method": payload.method },
|
|
89
89
|
{ explode: false, charEncoding: "percent" },
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
7
|
+
encodePath,
|
|
8
8
|
encodeJSON,
|
|
9
9
|
} from "../../lib/encodings.js";
|
|
10
10
|
import * as M from "../../lib/matchers.js";
|
|
@@ -83,7 +83,7 @@ async function $do(
|
|
|
83
83
|
const payload = parsed.value;
|
|
84
84
|
const body = encodeJSON("body", { code: payload.code }, { explode: true });
|
|
85
85
|
|
|
86
|
-
const path =
|
|
86
|
+
const path = encodePath(
|
|
87
87
|
"/users/{id}/recovery-codes/validate",
|
|
88
88
|
{ "id": payload.id },
|
|
89
89
|
{ explode: false, charEncoding: "percent" },
|
package/src/lib/config.ts
CHANGED