@ominity/api-typescript 1.3.0 → 1.4.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/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/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/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/usersListCustomers.d.ts.map +1 -1
- package/dist/commonjs/funcs/users/usersListCustomers.js +6 -1
- package/dist/commonjs/funcs/users/usersListCustomers.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +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/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/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/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/usersListCustomers.d.ts.map +1 -1
- package/dist/esm/funcs/users/usersListCustomers.js +7 -2
- package/dist/esm/funcs/users/usersListCustomers.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +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/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/users/index.ts +1 -0
- package/src/funcs/users/usersGetCustomer.ts +164 -0
- package/src/funcs/users/usersListCustomers.ts +8 -1
- package/src/lib/config.ts +1 -1
- 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,52 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Customer user permission catalogue models.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
|
|
7
|
+
export type CustomerUserPermissionGroup = {
|
|
8
|
+
key: string;
|
|
9
|
+
label: string;
|
|
10
|
+
description: string | null;
|
|
11
|
+
icon: string | null;
|
|
12
|
+
order: number;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export type CustomerUserPermission = {
|
|
16
|
+
key: string;
|
|
17
|
+
label: string;
|
|
18
|
+
description: string | null;
|
|
19
|
+
group: string | null;
|
|
20
|
+
icon: string | null;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export type CustomerUserPermissionCatalog = {
|
|
24
|
+
resource: "customer_user_permission_catalog";
|
|
25
|
+
groups: Array<CustomerUserPermissionGroup>;
|
|
26
|
+
permissions: Array<CustomerUserPermission>;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const CustomerUserPermissionGroup$inboundSchema: z.ZodType<CustomerUserPermissionGroup> = z.object({
|
|
31
|
+
key: z.string(),
|
|
32
|
+
label: z.string(),
|
|
33
|
+
description: z.string().nullable(),
|
|
34
|
+
icon: z.string().nullable(),
|
|
35
|
+
order: z.number().int(),
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const CustomerUserPermission$inboundSchema: z.ZodType<CustomerUserPermission> = z.object({
|
|
40
|
+
key: z.string(),
|
|
41
|
+
label: z.string(),
|
|
42
|
+
description: z.string().nullable(),
|
|
43
|
+
group: z.string().nullable(),
|
|
44
|
+
icon: z.string().nullable(),
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
/** @internal */
|
|
48
|
+
export const CustomerUserPermissionCatalog$inboundSchema: z.ZodType<CustomerUserPermissionCatalog> = z.object({
|
|
49
|
+
resource: z.literal("customer_user_permission_catalog"),
|
|
50
|
+
groups: z.array(CustomerUserPermissionGroup$inboundSchema),
|
|
51
|
+
permissions: z.array(CustomerUserPermission$inboundSchema),
|
|
52
|
+
});
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Customer user role model.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { HalLinks, HalLinks$inboundSchema } from "../hal.js";
|
|
8
|
+
|
|
9
|
+
export type CustomerUserRole = {
|
|
10
|
+
resource: "customer_user_role";
|
|
11
|
+
id: number;
|
|
12
|
+
key: string;
|
|
13
|
+
name: string;
|
|
14
|
+
description: string;
|
|
15
|
+
nameTranslations: Record<string, string>;
|
|
16
|
+
descriptionTranslations: Record<string, string | null>;
|
|
17
|
+
permissions: Array<string>;
|
|
18
|
+
isSystem: boolean;
|
|
19
|
+
isAssignable: boolean;
|
|
20
|
+
updatedAt: string;
|
|
21
|
+
createdAt: string;
|
|
22
|
+
links?: HalLinks;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const CustomerUserRole$inboundSchema: z.ZodType<CustomerUserRole> = z.object({
|
|
27
|
+
resource: z.literal("customer_user_role"),
|
|
28
|
+
id: z.number().int(),
|
|
29
|
+
key: z.string(),
|
|
30
|
+
name: z.string(),
|
|
31
|
+
description: z.string(),
|
|
32
|
+
nameTranslations: z.record(z.string(), z.string()),
|
|
33
|
+
descriptionTranslations: z.record(z.string(), z.string().nullable()),
|
|
34
|
+
permissions: z.array(z.string()),
|
|
35
|
+
isSystem: z.boolean(),
|
|
36
|
+
isAssignable: z.boolean(),
|
|
37
|
+
updatedAt: z.string(),
|
|
38
|
+
createdAt: z.string(),
|
|
39
|
+
_links: HalLinks$inboundSchema.optional(),
|
|
40
|
+
}).loose().transform((v) => remap$(v, {
|
|
41
|
+
"_links": "links",
|
|
42
|
+
}) as CustomerUserRole);
|
|
@@ -5,16 +5,22 @@
|
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { HalLinks, HalLinks$inboundSchema } from "../hal.js";
|
|
8
|
+
import { Customer, Customer$inboundSchema } from "./customer.js";
|
|
9
|
+
import { CustomerUserRole, CustomerUserRole$inboundSchema } from "./customer-user-role.js";
|
|
8
10
|
|
|
9
11
|
export type CustomerUser = {
|
|
10
12
|
resource: "customer_user";
|
|
11
13
|
userId: number;
|
|
12
14
|
customerId: number;
|
|
13
15
|
roleId: number;
|
|
16
|
+
isOwner: boolean;
|
|
17
|
+
permissions: Array<string>;
|
|
14
18
|
firstName: string;
|
|
15
19
|
lastName: string;
|
|
16
20
|
email: string;
|
|
17
21
|
avatar?: string | null;
|
|
22
|
+
customer?: Customer;
|
|
23
|
+
role?: CustomerUserRole;
|
|
18
24
|
updatedAt: string;
|
|
19
25
|
createdAt: string;
|
|
20
26
|
links?: HalLinks;
|
|
@@ -26,6 +32,8 @@ export const CustomerUser$inboundSchema: z.ZodType<CustomerUser> = z.object({
|
|
|
26
32
|
userId: z.number().int(),
|
|
27
33
|
customerId: z.number().int(),
|
|
28
34
|
roleId: z.number().int(),
|
|
35
|
+
isOwner: z.boolean(),
|
|
36
|
+
permissions: z.array(z.string()),
|
|
29
37
|
firstName: z.string(),
|
|
30
38
|
lastName: z.string(),
|
|
31
39
|
email: z.string(),
|
|
@@ -33,8 +41,24 @@ export const CustomerUser$inboundSchema: z.ZodType<CustomerUser> = z.object({
|
|
|
33
41
|
updatedAt: z.string(),
|
|
34
42
|
createdAt: z.string(),
|
|
35
43
|
_links: HalLinks$inboundSchema.optional(),
|
|
44
|
+
_embedded: z.object({
|
|
45
|
+
customer: Customer$inboundSchema.optional(),
|
|
46
|
+
role: CustomerUserRole$inboundSchema.optional(),
|
|
47
|
+
}).loose().optional(),
|
|
36
48
|
}).loose().transform((v) => {
|
|
37
|
-
|
|
49
|
+
const embedded = v._embedded;
|
|
50
|
+
const customerUser = remap$(v, {
|
|
38
51
|
"_links": "links",
|
|
52
|
+
"_embedded": null,
|
|
39
53
|
}) as CustomerUser;
|
|
40
|
-
|
|
54
|
+
|
|
55
|
+
if (embedded?.role) {
|
|
56
|
+
customerUser.role = embedded.role;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
if (embedded?.customer) {
|
|
60
|
+
customerUser.customer = embedded.customer;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
return customerUser;
|
|
64
|
+
}) as unknown as z.ZodType<CustomerUser>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Commerce customer model.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { HalLinks, HalLinks$inboundSchema } from "../hal.js";
|
|
8
|
+
|
|
9
|
+
export type Customer = {
|
|
10
|
+
resource: "customer";
|
|
11
|
+
id: number;
|
|
12
|
+
type: string;
|
|
13
|
+
name: string;
|
|
14
|
+
email: string;
|
|
15
|
+
isGuest: boolean;
|
|
16
|
+
ownerId: number | null;
|
|
17
|
+
updatedAt: string;
|
|
18
|
+
createdAt: string;
|
|
19
|
+
links?: HalLinks;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const Customer$inboundSchema: z.ZodType<Customer> = z.object({
|
|
24
|
+
resource: z.literal("customer"),
|
|
25
|
+
id: z.number().int(),
|
|
26
|
+
type: z.string(),
|
|
27
|
+
name: z.string(),
|
|
28
|
+
email: z.string(),
|
|
29
|
+
isGuest: z.boolean(),
|
|
30
|
+
ownerId: z.number().int().nullable(),
|
|
31
|
+
updatedAt: z.string(),
|
|
32
|
+
createdAt: z.string(),
|
|
33
|
+
_links: HalLinks$inboundSchema.optional(),
|
|
34
|
+
}).loose().transform((v) => remap$(v, {
|
|
35
|
+
"_links": "links",
|
|
36
|
+
}) as Customer);
|
|
@@ -21,3 +21,8 @@ export * from "./shipping-method.js";
|
|
|
21
21
|
export * from "./shipping-zone.js";
|
|
22
22
|
export * from "./review.js";
|
|
23
23
|
export * from "./currency.js";
|
|
24
|
+
export * from "./customer-user.js";
|
|
25
|
+
export * from "./customer-user-invitation.js";
|
|
26
|
+
export * from "./customer.js";
|
|
27
|
+
export * from "./customer-user-role.js";
|
|
28
|
+
export * from "./customer-user-permission.js";
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Commerce customer user invitation operations.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import {
|
|
7
|
+
CustomerUserInvitation,
|
|
8
|
+
CustomerUserInvitation$inboundSchema,
|
|
9
|
+
} from "../commerce/customer-user-invitation.js";
|
|
10
|
+
import { CustomerUser, CustomerUser$inboundSchema } from "../commerce/customer-user.js";
|
|
11
|
+
import { HalLinks$inboundSchema } from "../hal.js";
|
|
12
|
+
import { buildPaginated, Paginated } from "../pagination.js";
|
|
13
|
+
|
|
14
|
+
const invitationAcceptUrlSchema = z.string().refine((value) => {
|
|
15
|
+
try {
|
|
16
|
+
const url = new URL(value.replaceAll("{token}", "invitation-token"));
|
|
17
|
+
|
|
18
|
+
return url.protocol === "http:" || url.protocol === "https:";
|
|
19
|
+
} catch {
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
}, "Invalid invitation acceptance URL");
|
|
23
|
+
|
|
24
|
+
export type CreateCustomerUserInvitationRequest = {
|
|
25
|
+
customerId: number;
|
|
26
|
+
data: {
|
|
27
|
+
email: string;
|
|
28
|
+
roleId: number;
|
|
29
|
+
acceptUrl: string;
|
|
30
|
+
language?: string | null | undefined;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export type CreateCustomerUserInvitationResponse = CustomerUserInvitation;
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const CreateCustomerUserInvitationRequest$outboundSchema: z.ZodType<CreateCustomerUserInvitationRequest> = z.object({
|
|
37
|
+
customerId: z.number().int(),
|
|
38
|
+
data: z.object({
|
|
39
|
+
email: z.string().email(),
|
|
40
|
+
roleId: z.number().int(),
|
|
41
|
+
acceptUrl: invitationAcceptUrlSchema,
|
|
42
|
+
language: z.string().nullable().optional(),
|
|
43
|
+
}),
|
|
44
|
+
});
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const CreateCustomerUserInvitationResponse$inboundSchema: z.ZodType<CreateCustomerUserInvitationResponse> = CustomerUserInvitation$inboundSchema;
|
|
47
|
+
|
|
48
|
+
export type ListCustomerUserInvitationsRequest = {
|
|
49
|
+
customerId: number;
|
|
50
|
+
filter?: {
|
|
51
|
+
id?: number | undefined;
|
|
52
|
+
email?: string | undefined;
|
|
53
|
+
role?: number | undefined;
|
|
54
|
+
} | undefined;
|
|
55
|
+
sort?: string | undefined;
|
|
56
|
+
page?: number | undefined;
|
|
57
|
+
limit?: number | undefined;
|
|
58
|
+
};
|
|
59
|
+
export type ListCustomerUserInvitationsResponse = Paginated<CustomerUserInvitation>;
|
|
60
|
+
|
|
61
|
+
/** @internal */
|
|
62
|
+
export const ListCustomerUserInvitationsRequest$outboundSchema: z.ZodType<ListCustomerUserInvitationsRequest> = z.object({
|
|
63
|
+
customerId: z.number().int(),
|
|
64
|
+
filter: z.object({
|
|
65
|
+
id: z.number().int().optional(),
|
|
66
|
+
email: z.string().optional(),
|
|
67
|
+
role: z.number().int().optional(),
|
|
68
|
+
}).optional(),
|
|
69
|
+
sort: z.string().optional(),
|
|
70
|
+
page: z.number().optional(),
|
|
71
|
+
limit: z.number().optional(),
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
/** @internal */
|
|
75
|
+
export const ListCustomerUserInvitationsResponse$inboundSchema: z.ZodType<ListCustomerUserInvitationsResponse> = z.object({
|
|
76
|
+
_embedded: z.object({
|
|
77
|
+
customer_user_invitations: z.array(CustomerUserInvitation$inboundSchema),
|
|
78
|
+
}),
|
|
79
|
+
count: z.number(),
|
|
80
|
+
_links: HalLinks$inboundSchema.optional(),
|
|
81
|
+
}).transform((value) => buildPaginated(
|
|
82
|
+
value._embedded.customer_user_invitations,
|
|
83
|
+
value.count,
|
|
84
|
+
value._links,
|
|
85
|
+
));
|
|
86
|
+
|
|
87
|
+
export type GetCustomerUserInvitationRequest = {
|
|
88
|
+
customerId: number;
|
|
89
|
+
id: number;
|
|
90
|
+
};
|
|
91
|
+
export type GetCustomerUserInvitationResponse = CustomerUserInvitation;
|
|
92
|
+
|
|
93
|
+
/** @internal */
|
|
94
|
+
export const GetCustomerUserInvitationRequest$outboundSchema: z.ZodType<GetCustomerUserInvitationRequest> = z.object({
|
|
95
|
+
customerId: z.number().int(),
|
|
96
|
+
id: z.number().int(),
|
|
97
|
+
});
|
|
98
|
+
/** @internal */
|
|
99
|
+
export const GetCustomerUserInvitationResponse$inboundSchema: z.ZodType<GetCustomerUserInvitationResponse> = CustomerUserInvitation$inboundSchema;
|
|
100
|
+
|
|
101
|
+
export type RevokeCustomerUserInvitationRequest = {
|
|
102
|
+
customerId: number;
|
|
103
|
+
id: number;
|
|
104
|
+
};
|
|
105
|
+
export type RevokeCustomerUserInvitationResponse = void;
|
|
106
|
+
|
|
107
|
+
/** @internal */
|
|
108
|
+
export const RevokeCustomerUserInvitationRequest$outboundSchema: z.ZodType<RevokeCustomerUserInvitationRequest> = z.object({
|
|
109
|
+
customerId: z.number().int(),
|
|
110
|
+
id: z.number().int(),
|
|
111
|
+
});
|
|
112
|
+
/** @internal */
|
|
113
|
+
export const RevokeCustomerUserInvitationResponse$inboundSchema: z.ZodType<RevokeCustomerUserInvitationResponse> = z.void();
|
|
114
|
+
|
|
115
|
+
export type InspectCustomerUserInvitationRequest = {
|
|
116
|
+
token: string;
|
|
117
|
+
};
|
|
118
|
+
export type InspectCustomerUserInvitationResponse = CustomerUserInvitation;
|
|
119
|
+
|
|
120
|
+
/** @internal */
|
|
121
|
+
export const InspectCustomerUserInvitationRequest$outboundSchema: z.ZodType<InspectCustomerUserInvitationRequest> = z.object({
|
|
122
|
+
token: z.string().min(1),
|
|
123
|
+
});
|
|
124
|
+
/** @internal */
|
|
125
|
+
export const InspectCustomerUserInvitationResponse$inboundSchema: z.ZodType<InspectCustomerUserInvitationResponse> = CustomerUserInvitation$inboundSchema;
|
|
126
|
+
|
|
127
|
+
export type AcceptCustomerUserInvitationRequest = {
|
|
128
|
+
token: string;
|
|
129
|
+
userId?: number | undefined;
|
|
130
|
+
};
|
|
131
|
+
export type AcceptCustomerUserInvitationResponse = CustomerUser;
|
|
132
|
+
|
|
133
|
+
/** @internal */
|
|
134
|
+
export const AcceptCustomerUserInvitationRequest$outboundSchema: z.ZodType<AcceptCustomerUserInvitationRequest> = z.object({
|
|
135
|
+
token: z.string().length(64),
|
|
136
|
+
userId: z.number().int().optional(),
|
|
137
|
+
});
|
|
138
|
+
/** @internal */
|
|
139
|
+
export const AcceptCustomerUserInvitationResponse$inboundSchema: z.ZodType<AcceptCustomerUserInvitationResponse> = CustomerUser$inboundSchema;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Commerce customer user permission operations.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import {
|
|
7
|
+
CustomerUserPermissionCatalog,
|
|
8
|
+
CustomerUserPermissionCatalog$inboundSchema,
|
|
9
|
+
} from "../commerce/customer-user-permission.js";
|
|
10
|
+
|
|
11
|
+
export type ListCustomerUserPermissionsRequest = Record<string, never>;
|
|
12
|
+
export type ListCustomerUserPermissionsResponse = CustomerUserPermissionCatalog;
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const ListCustomerUserPermissionsRequest$outboundSchema: z.ZodType<ListCustomerUserPermissionsRequest> = z.object({});
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const ListCustomerUserPermissionsResponse$inboundSchema: z.ZodType<ListCustomerUserPermissionsResponse> = CustomerUserPermissionCatalog$inboundSchema;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Commerce customer user role operations.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { CustomerUserRole, CustomerUserRole$inboundSchema } from "../commerce/customer-user-role.js";
|
|
7
|
+
import { HalLinks$inboundSchema } from "../hal.js";
|
|
8
|
+
import { buildPaginated, Paginated } from "../pagination.js";
|
|
9
|
+
|
|
10
|
+
export type CustomerUserRoleData = {
|
|
11
|
+
key: string;
|
|
12
|
+
name: Record<string, string>;
|
|
13
|
+
description?: Record<string, string | null> | undefined;
|
|
14
|
+
permissions: Array<string>;
|
|
15
|
+
isAssignable?: boolean | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export type ListCustomerUserRolesRequest = {
|
|
19
|
+
page?: number | undefined;
|
|
20
|
+
limit?: number | undefined;
|
|
21
|
+
};
|
|
22
|
+
export type ListCustomerUserRolesResponse = Paginated<CustomerUserRole>;
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const ListCustomerUserRolesRequest$outboundSchema: z.ZodType<ListCustomerUserRolesRequest> = z.object({
|
|
26
|
+
page: z.number().optional(),
|
|
27
|
+
limit: z.number().optional(),
|
|
28
|
+
});
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const ListCustomerUserRolesResponse$inboundSchema: z.ZodType<ListCustomerUserRolesResponse> = z.object({
|
|
31
|
+
_embedded: z.object({
|
|
32
|
+
customer_user_roles: z.array(CustomerUserRole$inboundSchema),
|
|
33
|
+
}),
|
|
34
|
+
count: z.number(),
|
|
35
|
+
_links: HalLinks$inboundSchema.optional(),
|
|
36
|
+
}).transform((v) => buildPaginated(v._embedded.customer_user_roles, v.count, v._links));
|
|
37
|
+
|
|
38
|
+
export type GetCustomerUserRoleRequest = { id: number };
|
|
39
|
+
export type GetCustomerUserRoleResponse = CustomerUserRole;
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const GetCustomerUserRoleRequest$outboundSchema: z.ZodType<GetCustomerUserRoleRequest> = z.object({
|
|
43
|
+
id: z.number().int(),
|
|
44
|
+
});
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const GetCustomerUserRoleResponse$inboundSchema: z.ZodType<GetCustomerUserRoleResponse> = CustomerUserRole$inboundSchema;
|
|
47
|
+
|
|
48
|
+
export type CreateCustomerUserRoleRequest = CustomerUserRoleData;
|
|
49
|
+
export type CreateCustomerUserRoleResponse = CustomerUserRole;
|
|
50
|
+
|
|
51
|
+
/** @internal */
|
|
52
|
+
export const CreateCustomerUserRoleRequest$outboundSchema: z.ZodType<CreateCustomerUserRoleRequest> = z.object({
|
|
53
|
+
key: z.string(),
|
|
54
|
+
name: z.record(z.string(), z.string()),
|
|
55
|
+
description: z.record(z.string(), z.string().nullable()).optional(),
|
|
56
|
+
permissions: z.array(z.string()),
|
|
57
|
+
isAssignable: z.boolean().optional(),
|
|
58
|
+
});
|
|
59
|
+
/** @internal */
|
|
60
|
+
export const CreateCustomerUserRoleResponse$inboundSchema: z.ZodType<CreateCustomerUserRoleResponse> = CustomerUserRole$inboundSchema;
|
|
61
|
+
|
|
62
|
+
export type UpdateCustomerUserRoleRequest = {
|
|
63
|
+
id: number;
|
|
64
|
+
data: {
|
|
65
|
+
key?: string | undefined;
|
|
66
|
+
name?: Record<string, string> | undefined;
|
|
67
|
+
description?: Record<string, string | null> | undefined;
|
|
68
|
+
permissions?: Array<string> | undefined;
|
|
69
|
+
isAssignable?: boolean | undefined;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
export type UpdateCustomerUserRoleResponse = CustomerUserRole;
|
|
73
|
+
|
|
74
|
+
/** @internal */
|
|
75
|
+
export const UpdateCustomerUserRoleRequest$outboundSchema: z.ZodType<UpdateCustomerUserRoleRequest> = z.object({
|
|
76
|
+
id: z.number().int(),
|
|
77
|
+
data: z.object({
|
|
78
|
+
key: z.string().optional(),
|
|
79
|
+
name: z.record(z.string(), z.string()).optional(),
|
|
80
|
+
description: z.record(z.string(), z.string().nullable()).optional(),
|
|
81
|
+
permissions: z.array(z.string()).optional(),
|
|
82
|
+
isAssignable: z.boolean().optional(),
|
|
83
|
+
}),
|
|
84
|
+
});
|
|
85
|
+
/** @internal */
|
|
86
|
+
export const UpdateCustomerUserRoleResponse$inboundSchema: z.ZodType<UpdateCustomerUserRoleResponse> = CustomerUserRole$inboundSchema;
|
|
87
|
+
|
|
88
|
+
export type DeleteCustomerUserRoleRequest = { id: number };
|
|
89
|
+
export type DeleteCustomerUserRoleResponse = void;
|
|
90
|
+
|
|
91
|
+
/** @internal */
|
|
92
|
+
export const DeleteCustomerUserRoleRequest$outboundSchema: z.ZodType<DeleteCustomerUserRoleRequest> = z.object({
|
|
93
|
+
id: z.number().int(),
|
|
94
|
+
});
|
|
95
|
+
/** @internal */
|
|
96
|
+
export const DeleteCustomerUserRoleResponse$inboundSchema: z.ZodType<DeleteCustomerUserRoleResponse> = z.void();
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Commerce customer user membership operations.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { CustomerUser, CustomerUser$inboundSchema } from "../commerce/customer-user.js";
|
|
7
|
+
import { HalLinks$inboundSchema } from "../hal.js";
|
|
8
|
+
import { buildPaginated, Paginated } from "../pagination.js";
|
|
9
|
+
|
|
10
|
+
export type ListCustomerUsersRequest = {
|
|
11
|
+
customerId: number;
|
|
12
|
+
filter?: {
|
|
13
|
+
id?: number | undefined;
|
|
14
|
+
} | undefined;
|
|
15
|
+
sort?: string | undefined;
|
|
16
|
+
page?: number | undefined;
|
|
17
|
+
limit?: number | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export type ListCustomerUsersResponse = Paginated<CustomerUser>;
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const ListCustomerUsersRequest$outboundSchema: z.ZodType<ListCustomerUsersRequest> = z.object({
|
|
24
|
+
customerId: z.number().int(),
|
|
25
|
+
filter: z.object({
|
|
26
|
+
id: z.number().int().optional(),
|
|
27
|
+
}).optional(),
|
|
28
|
+
sort: z.string().optional(),
|
|
29
|
+
page: z.number().optional(),
|
|
30
|
+
limit: z.number().optional(),
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const ListCustomerUsersResponse$inboundSchema: z.ZodType<ListCustomerUsersResponse> = z.object({
|
|
35
|
+
_embedded: z.object({
|
|
36
|
+
customer_users: z.array(CustomerUser$inboundSchema),
|
|
37
|
+
}),
|
|
38
|
+
count: z.number(),
|
|
39
|
+
_links: HalLinks$inboundSchema.optional(),
|
|
40
|
+
}).transform((v) => buildPaginated(v._embedded.customer_users, v.count, v._links));
|
|
41
|
+
|
|
42
|
+
export type GetCustomerUserRequest = {
|
|
43
|
+
customerId: number;
|
|
44
|
+
userId: number;
|
|
45
|
+
};
|
|
46
|
+
export type GetCustomerUserResponse = CustomerUser;
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const GetCustomerUserRequest$outboundSchema: z.ZodType<GetCustomerUserRequest> = z.object({
|
|
50
|
+
customerId: z.number().int(),
|
|
51
|
+
userId: z.number().int(),
|
|
52
|
+
});
|
|
53
|
+
/** @internal */
|
|
54
|
+
export const GetCustomerUserResponse$inboundSchema: z.ZodType<GetCustomerUserResponse> = CustomerUser$inboundSchema;
|
|
55
|
+
|
|
56
|
+
export type UpdateCustomerUserRequest = {
|
|
57
|
+
customerId: number;
|
|
58
|
+
userId: number;
|
|
59
|
+
data: {
|
|
60
|
+
roleId: number;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
export type UpdateCustomerUserResponse = CustomerUser;
|
|
64
|
+
|
|
65
|
+
/** @internal */
|
|
66
|
+
export const UpdateCustomerUserRequest$outboundSchema: z.ZodType<UpdateCustomerUserRequest> = z.object({
|
|
67
|
+
customerId: z.number().int(),
|
|
68
|
+
userId: z.number().int(),
|
|
69
|
+
data: z.object({
|
|
70
|
+
roleId: z.number().int(),
|
|
71
|
+
}),
|
|
72
|
+
});
|
|
73
|
+
/** @internal */
|
|
74
|
+
export const UpdateCustomerUserResponse$inboundSchema: z.ZodType<UpdateCustomerUserResponse> = CustomerUser$inboundSchema;
|
|
75
|
+
|
|
76
|
+
export type DeleteCustomerUserRequest = {
|
|
77
|
+
customerId: number;
|
|
78
|
+
userId: number;
|
|
79
|
+
};
|
|
80
|
+
export type DeleteCustomerUserResponse = void;
|
|
81
|
+
|
|
82
|
+
/** @internal */
|
|
83
|
+
export const DeleteCustomerUserRequest$outboundSchema: z.ZodType<DeleteCustomerUserRequest> = z.object({
|
|
84
|
+
customerId: z.number().int(),
|
|
85
|
+
userId: z.number().int(),
|
|
86
|
+
});
|
|
87
|
+
/** @internal */
|
|
88
|
+
export const DeleteCustomerUserResponse$inboundSchema: z.ZodType<DeleteCustomerUserResponse> = z.void();
|
|
@@ -18,6 +18,10 @@ export * from "./commerce-shipping-methods.js";
|
|
|
18
18
|
export * from "./commerce-shipping-zones.js";
|
|
19
19
|
export * from "./commerce-reviews.js";
|
|
20
20
|
export * from "./commerce-currencies.js";
|
|
21
|
+
export * from "./commerce-customer-users.js";
|
|
22
|
+
export * from "./commerce-customer-user-invitations.js";
|
|
23
|
+
export * from "./commerce-customer-user-roles.js";
|
|
24
|
+
export * from "./commerce-customer-user-permissions.js";
|
|
21
25
|
export * from "./settings-countries.js";
|
|
22
26
|
export * from "./settings-social-providers.js";
|
|
23
27
|
export * from "./settings-payment-methods.js";
|
|
@@ -12,6 +12,22 @@ export type ListUserCustomersRequest = {
|
|
|
12
12
|
* User ID.
|
|
13
13
|
*/
|
|
14
14
|
id: number;
|
|
15
|
+
/**
|
|
16
|
+
* Include related customer or role resources.
|
|
17
|
+
*/
|
|
18
|
+
include?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Filter by membership, role, or customer fields.
|
|
21
|
+
*/
|
|
22
|
+
filter?: {
|
|
23
|
+
id?: number | undefined;
|
|
24
|
+
role?: number | undefined;
|
|
25
|
+
customer?: number | undefined;
|
|
26
|
+
} | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Sort by membership fields.
|
|
29
|
+
*/
|
|
30
|
+
sort?: string | undefined;
|
|
15
31
|
/**
|
|
16
32
|
* Page number.
|
|
17
33
|
*/
|
|
@@ -29,6 +45,13 @@ export const ListUserCustomersRequest$outboundSchema: z.ZodType<
|
|
|
29
45
|
ListUserCustomersRequest
|
|
30
46
|
> = z.object({
|
|
31
47
|
id: z.number(),
|
|
48
|
+
include: z.string().optional(),
|
|
49
|
+
filter: z.object({
|
|
50
|
+
id: z.number().int().optional(),
|
|
51
|
+
role: z.number().int().optional(),
|
|
52
|
+
customer: z.number().int().optional(),
|
|
53
|
+
}).optional(),
|
|
54
|
+
sort: z.string().optional(),
|
|
32
55
|
page: z.number().optional(),
|
|
33
56
|
limit: z.number().optional(),
|
|
34
57
|
});
|
|
@@ -49,3 +72,21 @@ export const ListUserCustomersResponse$inboundSchema: z.ZodType<
|
|
|
49
72
|
v._links,
|
|
50
73
|
)
|
|
51
74
|
);
|
|
75
|
+
|
|
76
|
+
export type GetUserCustomerRequest = {
|
|
77
|
+
userId: number;
|
|
78
|
+
customerId: number;
|
|
79
|
+
include?: string | undefined;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
export type GetUserCustomerResponse = CustomerUser;
|
|
83
|
+
|
|
84
|
+
/** @internal */
|
|
85
|
+
export const GetUserCustomerRequest$outboundSchema: z.ZodType<GetUserCustomerRequest> = z.object({
|
|
86
|
+
userId: z.number().int(),
|
|
87
|
+
customerId: z.number().int(),
|
|
88
|
+
include: z.string().optional(),
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
/** @internal */
|
|
92
|
+
export const GetUserCustomerResponse$inboundSchema: z.ZodType<GetUserCustomerResponse> = CustomerUser$inboundSchema;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Commerce customer user invitations SDK.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
customerUserInvitationsAccept,
|
|
7
|
+
customerUserInvitationsCreate,
|
|
8
|
+
customerUserInvitationsGet,
|
|
9
|
+
customerUserInvitationsInspect,
|
|
10
|
+
customerUserInvitationsList,
|
|
11
|
+
customerUserInvitationsRevoke,
|
|
12
|
+
} from "../../funcs/commerce/index.js";
|
|
13
|
+
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
14
|
+
import * as operations from "../../models/operations/index.js";
|
|
15
|
+
import { unwrapAsync } from "../../types/fp.js";
|
|
16
|
+
|
|
17
|
+
export class CustomerUserInvitations extends ClientSDK {
|
|
18
|
+
async create(
|
|
19
|
+
request: operations.CreateCustomerUserInvitationRequest,
|
|
20
|
+
options?: RequestOptions,
|
|
21
|
+
): Promise<operations.CreateCustomerUserInvitationResponse> {
|
|
22
|
+
return unwrapAsync(customerUserInvitationsCreate(this, request, options));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
async list(
|
|
26
|
+
request: operations.ListCustomerUserInvitationsRequest,
|
|
27
|
+
options?: RequestOptions,
|
|
28
|
+
): Promise<operations.ListCustomerUserInvitationsResponse> {
|
|
29
|
+
return unwrapAsync(customerUserInvitationsList(this, request, options));
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
async get(
|
|
33
|
+
request: operations.GetCustomerUserInvitationRequest,
|
|
34
|
+
options?: RequestOptions,
|
|
35
|
+
): Promise<operations.GetCustomerUserInvitationResponse> {
|
|
36
|
+
return unwrapAsync(customerUserInvitationsGet(this, request, options));
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
async revoke(
|
|
40
|
+
request: operations.RevokeCustomerUserInvitationRequest,
|
|
41
|
+
options?: RequestOptions,
|
|
42
|
+
): Promise<operations.RevokeCustomerUserInvitationResponse> {
|
|
43
|
+
return unwrapAsync(customerUserInvitationsRevoke(this, request, options));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
async inspect(
|
|
47
|
+
request: operations.InspectCustomerUserInvitationRequest,
|
|
48
|
+
options?: RequestOptions,
|
|
49
|
+
): Promise<operations.InspectCustomerUserInvitationResponse> {
|
|
50
|
+
return unwrapAsync(customerUserInvitationsInspect(this, request, options));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
async accept(
|
|
54
|
+
request: operations.AcceptCustomerUserInvitationRequest,
|
|
55
|
+
options?: RequestOptions,
|
|
56
|
+
): Promise<operations.AcceptCustomerUserInvitationResponse> {
|
|
57
|
+
return unwrapAsync(customerUserInvitationsAccept(this, request, options));
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Commerce customer user permissions SDK.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { customerUserPermissionsList } from "../../funcs/commerce/index.js";
|
|
6
|
+
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
7
|
+
import * as operations from "../../models/operations/index.js";
|
|
8
|
+
import { unwrapAsync } from "../../types/fp.js";
|
|
9
|
+
|
|
10
|
+
export class CustomerUserPermissions extends ClientSDK {
|
|
11
|
+
async list(
|
|
12
|
+
options?: RequestOptions,
|
|
13
|
+
): Promise<operations.ListCustomerUserPermissionsResponse> {
|
|
14
|
+
return unwrapAsync(customerUserPermissionsList(this, {}, options));
|
|
15
|
+
}
|
|
16
|
+
}
|