@ominity/api-typescript 1.2.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/cms/contentList.d.ts.map +1 -1
- package/dist/commonjs/funcs/cms/contentList.js +5 -2
- package/dist/commonjs/funcs/cms/contentList.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/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/lib/sdks.d.ts +2 -0
- package/dist/commonjs/lib/sdks.d.ts.map +1 -1
- package/dist/commonjs/lib/sdks.js +6 -0
- 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/cms-content.d.ts +1 -1
- package/dist/commonjs/models/operations/cms-content.d.ts.map +1 -1
- package/dist/commonjs/models/operations/cms-content.js +1 -1
- package/dist/commonjs/models/operations/cms-content.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/channels/index.d.ts +1 -0
- package/dist/commonjs/sdk/channels/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/channels/index.js +4 -0
- package/dist/commonjs/sdk/channels/index.js.map +1 -1
- package/dist/commonjs/sdk/cms/index.d.ts +1 -0
- package/dist/commonjs/sdk/cms/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/cms/index.js +8 -0
- package/dist/commonjs/sdk/cms/index.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 +17 -0
- package/dist/commonjs/sdk/commerce/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/commerce/index.js +45 -1
- package/dist/commonjs/sdk/commerce/index.js.map +1 -1
- package/dist/commonjs/sdk/localization/index.d.ts +1 -0
- package/dist/commonjs/sdk/localization/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/localization/index.js +4 -0
- package/dist/commonjs/sdk/localization/index.js.map +1 -1
- package/dist/commonjs/sdk/sdk.d.ts +1 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +12 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/settings/index.d.ts +1 -0
- package/dist/commonjs/sdk/settings/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/settings/index.js +5 -0
- package/dist/commonjs/sdk/settings/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/commonjs/sdk/users/index.d.ts +1 -0
- package/dist/commonjs/sdk/users/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/users/index.js +7 -0
- package/dist/commonjs/sdk/users/index.js.map +1 -1
- package/dist/esm/funcs/cms/contentList.d.ts.map +1 -1
- package/dist/esm/funcs/cms/contentList.js +6 -3
- package/dist/esm/funcs/cms/contentList.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/lib/sdks.d.ts +2 -0
- package/dist/esm/lib/sdks.d.ts.map +1 -1
- package/dist/esm/lib/sdks.js +6 -0
- 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/cms-content.d.ts +1 -1
- package/dist/esm/models/operations/cms-content.d.ts.map +1 -1
- package/dist/esm/models/operations/cms-content.js +1 -1
- package/dist/esm/models/operations/cms-content.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/channels/index.d.ts +1 -0
- package/dist/esm/sdk/channels/index.d.ts.map +1 -1
- package/dist/esm/sdk/channels/index.js +4 -0
- package/dist/esm/sdk/channels/index.js.map +1 -1
- package/dist/esm/sdk/cms/index.d.ts +1 -0
- package/dist/esm/sdk/cms/index.d.ts.map +1 -1
- package/dist/esm/sdk/cms/index.js +8 -0
- package/dist/esm/sdk/cms/index.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 +17 -0
- package/dist/esm/sdk/commerce/index.d.ts.map +1 -1
- package/dist/esm/sdk/commerce/index.js +40 -0
- package/dist/esm/sdk/commerce/index.js.map +1 -1
- package/dist/esm/sdk/localization/index.d.ts +1 -0
- package/dist/esm/sdk/localization/index.d.ts.map +1 -1
- package/dist/esm/sdk/localization/index.js +4 -0
- package/dist/esm/sdk/localization/index.js.map +1 -1
- package/dist/esm/sdk/sdk.d.ts +1 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +12 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/settings/index.d.ts +1 -0
- package/dist/esm/sdk/settings/index.d.ts.map +1 -1
- package/dist/esm/sdk/settings/index.js +5 -0
- package/dist/esm/sdk/settings/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/dist/esm/sdk/users/index.d.ts +1 -0
- package/dist/esm/sdk/users/index.d.ts.map +1 -1
- package/dist/esm/sdk/users/index.js +7 -0
- package/dist/esm/sdk/users/index.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/cms/contentList.ts +10 -3
- 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/lib/sdks.ts +8 -0
- 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/cms-content.ts +2 -2
- 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/channels/index.ts +5 -0
- package/src/sdk/cms/index.ts +9 -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 +49 -0
- package/src/sdk/localization/index.ts +5 -1
- package/src/sdk/sdk.ts +13 -0
- package/src/sdk/settings/index.ts +6 -0
- package/src/sdk/users/customers.ts +12 -0
- package/src/sdk/users/index.ts +8 -0
|
@@ -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;
|
package/src/sdk/cms/index.ts
CHANGED
|
@@ -48,4 +48,13 @@ export class Cms extends ClientSDK {
|
|
|
48
48
|
get menus(): Menus {
|
|
49
49
|
return (this._menus ??= new Menus(this._options));
|
|
50
50
|
}
|
|
51
|
+
|
|
52
|
+
protected override _propagateLanguage(language: string | undefined): void {
|
|
53
|
+
this._components?.setLanguage(language);
|
|
54
|
+
this._content?.setLanguage(language);
|
|
55
|
+
this._contentTypes?.setLanguage(language);
|
|
56
|
+
this._layouts?.setLanguage(language);
|
|
57
|
+
this._pages?.setLanguage(language);
|
|
58
|
+
this._menus?.setLanguage(language);
|
|
59
|
+
}
|
|
51
60
|
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Commerce customer user roles SDK.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
customerUserRolesCreate,
|
|
7
|
+
customerUserRolesDelete,
|
|
8
|
+
customerUserRolesGet,
|
|
9
|
+
customerUserRolesList,
|
|
10
|
+
customerUserRolesUpdate,
|
|
11
|
+
} from "../../funcs/commerce/index.js";
|
|
12
|
+
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
13
|
+
import * as operations from "../../models/operations/index.js";
|
|
14
|
+
import { unwrapAsync } from "../../types/fp.js";
|
|
15
|
+
|
|
16
|
+
export class CustomerUserRoles extends ClientSDK {
|
|
17
|
+
async list(
|
|
18
|
+
request: operations.ListCustomerUserRolesRequest = {},
|
|
19
|
+
options?: RequestOptions,
|
|
20
|
+
): Promise<operations.ListCustomerUserRolesResponse> {
|
|
21
|
+
return unwrapAsync(customerUserRolesList(this, request, options));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
async get(
|
|
25
|
+
request: operations.GetCustomerUserRoleRequest,
|
|
26
|
+
options?: RequestOptions,
|
|
27
|
+
): Promise<operations.GetCustomerUserRoleResponse> {
|
|
28
|
+
return unwrapAsync(customerUserRolesGet(this, request, options));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
async create(
|
|
32
|
+
request: operations.CreateCustomerUserRoleRequest,
|
|
33
|
+
options?: RequestOptions,
|
|
34
|
+
): Promise<operations.CreateCustomerUserRoleResponse> {
|
|
35
|
+
return unwrapAsync(customerUserRolesCreate(this, request, options));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
async update(
|
|
39
|
+
request: operations.UpdateCustomerUserRoleRequest,
|
|
40
|
+
options?: RequestOptions,
|
|
41
|
+
): Promise<operations.UpdateCustomerUserRoleResponse> {
|
|
42
|
+
return unwrapAsync(customerUserRolesUpdate(this, request, options));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
async delete(
|
|
46
|
+
request: operations.DeleteCustomerUserRoleRequest,
|
|
47
|
+
options?: RequestOptions,
|
|
48
|
+
): Promise<operations.DeleteCustomerUserRoleResponse> {
|
|
49
|
+
return unwrapAsync(customerUserRolesDelete(this, request, options));
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Commerce customer users SDK.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
customerUsersDelete,
|
|
7
|
+
customerUsersGet,
|
|
8
|
+
customerUsersList,
|
|
9
|
+
customerUsersUpdate,
|
|
10
|
+
} from "../../funcs/commerce/index.js";
|
|
11
|
+
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
12
|
+
import * as operations from "../../models/operations/index.js";
|
|
13
|
+
import { unwrapAsync } from "../../types/fp.js";
|
|
14
|
+
|
|
15
|
+
export class CustomerUsers extends ClientSDK {
|
|
16
|
+
async list(
|
|
17
|
+
request: operations.ListCustomerUsersRequest,
|
|
18
|
+
options?: RequestOptions,
|
|
19
|
+
): Promise<operations.ListCustomerUsersResponse> {
|
|
20
|
+
return unwrapAsync(customerUsersList(this, request, options));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
async get(
|
|
24
|
+
request: operations.GetCustomerUserRequest,
|
|
25
|
+
options?: RequestOptions,
|
|
26
|
+
): Promise<operations.GetCustomerUserResponse> {
|
|
27
|
+
return unwrapAsync(customerUsersGet(this, request, options));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
async update(
|
|
31
|
+
request: operations.UpdateCustomerUserRequest,
|
|
32
|
+
options?: RequestOptions,
|
|
33
|
+
): Promise<operations.UpdateCustomerUserResponse> {
|
|
34
|
+
return unwrapAsync(customerUsersUpdate(this, request, options));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
async delete(
|
|
38
|
+
request: operations.DeleteCustomerUserRequest,
|
|
39
|
+
options?: RequestOptions,
|
|
40
|
+
): Promise<operations.DeleteCustomerUserResponse> {
|
|
41
|
+
return unwrapAsync(customerUsersDelete(this, request, options));
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -17,6 +17,10 @@ import { ShippingMethods } from "./shipping-methods.js";
|
|
|
17
17
|
import { ShippingZones } from "./shipping-zones.js";
|
|
18
18
|
import { Reviews } from "./reviews.js";
|
|
19
19
|
import { Currencies } from "./currencies.js";
|
|
20
|
+
import { CustomerUsers } from "./customer-users.js";
|
|
21
|
+
import { CustomerUserInvitations } from "./customer-user-invitations.js";
|
|
22
|
+
import { CustomerUserRoles } from "./customer-user-roles.js";
|
|
23
|
+
import { CustomerUserPermissions } from "./customer-user-permissions.js";
|
|
20
24
|
|
|
21
25
|
export { CartItems } from "./cart-items.js";
|
|
22
26
|
export { Carts } from "./carts.js";
|
|
@@ -32,6 +36,10 @@ export { ShippingMethods } from "./shipping-methods.js";
|
|
|
32
36
|
export { ShippingZones } from "./shipping-zones.js";
|
|
33
37
|
export { Reviews } from "./reviews.js";
|
|
34
38
|
export { Currencies } from "./currencies.js";
|
|
39
|
+
export { CustomerUsers } from "./customer-users.js";
|
|
40
|
+
export { CustomerUserInvitations } from "./customer-user-invitations.js";
|
|
41
|
+
export { CustomerUserRoles } from "./customer-user-roles.js";
|
|
42
|
+
export { CustomerUserPermissions } from "./customer-user-permissions.js";
|
|
35
43
|
|
|
36
44
|
export class Commerce extends ClientSDK {
|
|
37
45
|
private _cartItems?: CartItems;
|
|
@@ -48,6 +56,10 @@ export class Commerce extends ClientSDK {
|
|
|
48
56
|
private _shippingZones?: ShippingZones;
|
|
49
57
|
private _reviews?: Reviews;
|
|
50
58
|
private _currencies?: Currencies;
|
|
59
|
+
private _customerUsers?: CustomerUsers;
|
|
60
|
+
private _customerUserInvitations?: CustomerUserInvitations;
|
|
61
|
+
private _customerUserRoles?: CustomerUserRoles;
|
|
62
|
+
private _customerUserPermissions?: CustomerUserPermissions;
|
|
51
63
|
|
|
52
64
|
get cartItems(): CartItems {
|
|
53
65
|
return (this._cartItems ??= new CartItems(this._options));
|
|
@@ -104,4 +116,41 @@ export class Commerce extends ClientSDK {
|
|
|
104
116
|
get currencies(): Currencies {
|
|
105
117
|
return (this._currencies ??= new Currencies(this._options));
|
|
106
118
|
}
|
|
119
|
+
|
|
120
|
+
get customerUsers(): CustomerUsers {
|
|
121
|
+
return (this._customerUsers ??= new CustomerUsers(this._options));
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
get customerUserInvitations(): CustomerUserInvitations {
|
|
125
|
+
return (this._customerUserInvitations ??= new CustomerUserInvitations(this._options));
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
get customerUserRoles(): CustomerUserRoles {
|
|
129
|
+
return (this._customerUserRoles ??= new CustomerUserRoles(this._options));
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
get customerUserPermissions(): CustomerUserPermissions {
|
|
133
|
+
return (this._customerUserPermissions ??= new CustomerUserPermissions(this._options));
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
protected override _propagateLanguage(language: string | undefined): void {
|
|
137
|
+
this._cartItems?.setLanguage(language);
|
|
138
|
+
this._carts?.setLanguage(language);
|
|
139
|
+
this._categories?.setLanguage(language);
|
|
140
|
+
this._products?.setLanguage(language);
|
|
141
|
+
this._invoices?.setLanguage(language);
|
|
142
|
+
this._productGroups?.setLanguage(language);
|
|
143
|
+
this._subscriptionIntervals?.setLanguage(language);
|
|
144
|
+
this._orders?.setLanguage(language);
|
|
145
|
+
this._payments?.setLanguage(language);
|
|
146
|
+
this._vatValidations?.setLanguage(language);
|
|
147
|
+
this._shippingMethods?.setLanguage(language);
|
|
148
|
+
this._shippingZones?.setLanguage(language);
|
|
149
|
+
this._reviews?.setLanguage(language);
|
|
150
|
+
this._currencies?.setLanguage(language);
|
|
151
|
+
this._customerUsers?.setLanguage(language);
|
|
152
|
+
this._customerUserInvitations?.setLanguage(language);
|
|
153
|
+
this._customerUserRoles?.setLanguage(language);
|
|
154
|
+
this._customerUserPermissions?.setLanguage(language);
|
|
155
|
+
}
|
|
107
156
|
}
|
|
@@ -17,5 +17,9 @@ export class Localization extends ClientSDK {
|
|
|
17
17
|
get locales(): LocalizationLocales {
|
|
18
18
|
return (this._locales ??= new LocalizationLocales(this._options));
|
|
19
19
|
}
|
|
20
|
-
}
|
|
21
20
|
|
|
21
|
+
protected override _propagateLanguage(language: string | undefined): void {
|
|
22
|
+
this._languages?.setLanguage(language);
|
|
23
|
+
this._locales?.setLanguage(language);
|
|
24
|
+
}
|
|
25
|
+
}
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -96,4 +96,17 @@ export class Ominity extends ClientSDK {
|
|
|
96
96
|
get admins(): Admins {
|
|
97
97
|
return (this._admins ??= new Admins(this._options));
|
|
98
98
|
}
|
|
99
|
+
|
|
100
|
+
protected override _propagateLanguage(language: string | undefined): void {
|
|
101
|
+
this._commerce?.setLanguage(language);
|
|
102
|
+
this._cms?.setLanguage(language);
|
|
103
|
+
this._channels?.setLanguage(language);
|
|
104
|
+
this._settings?.setLanguage(language);
|
|
105
|
+
this._http?.setLanguage(language);
|
|
106
|
+
this._localization?.setLanguage(language);
|
|
107
|
+
this._oauth2?.setLanguage(language);
|
|
108
|
+
this._me?.setLanguage(language);
|
|
109
|
+
this._users?.setLanguage(language);
|
|
110
|
+
this._admins?.setLanguage(language);
|
|
111
|
+
}
|
|
99
112
|
}
|
|
@@ -27,4 +27,10 @@ export class Settings extends ClientSDK {
|
|
|
27
27
|
get paymentMethods(): PaymentMethods {
|
|
28
28
|
return (this._paymentMethods ??= new PaymentMethods(this._options));
|
|
29
29
|
}
|
|
30
|
+
|
|
31
|
+
protected override _propagateLanguage(language: string | undefined): void {
|
|
32
|
+
this._countries?.setLanguage(language);
|
|
33
|
+
this._socialProviders?.setLanguage(language);
|
|
34
|
+
this._paymentMethods?.setLanguage(language);
|
|
35
|
+
}
|
|
30
36
|
}
|
|
@@ -6,6 +6,7 @@ import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
|
6
6
|
import { unwrapAsync } from "../../types/fp.js";
|
|
7
7
|
import * as operations from "../../models/operations/index.js";
|
|
8
8
|
import { usersListCustomers } from "../../funcs/users/usersListCustomers.js";
|
|
9
|
+
import { usersGetCustomer } from "../../funcs/users/usersGetCustomer.js";
|
|
9
10
|
|
|
10
11
|
export class UserCustomers extends ClientSDK {
|
|
11
12
|
async list(
|
|
@@ -18,4 +19,15 @@ export class UserCustomers extends ClientSDK {
|
|
|
18
19
|
options,
|
|
19
20
|
));
|
|
20
21
|
}
|
|
22
|
+
|
|
23
|
+
async get(
|
|
24
|
+
request: operations.GetUserCustomerRequest,
|
|
25
|
+
options?: RequestOptions,
|
|
26
|
+
): Promise<operations.GetUserCustomerResponse> {
|
|
27
|
+
return unwrapAsync(usersGetCustomer(
|
|
28
|
+
this,
|
|
29
|
+
request,
|
|
30
|
+
options,
|
|
31
|
+
));
|
|
32
|
+
}
|
|
21
33
|
}
|
package/src/sdk/users/index.ts
CHANGED
|
@@ -121,4 +121,12 @@ export class Users extends ClientSDK {
|
|
|
121
121
|
options,
|
|
122
122
|
));
|
|
123
123
|
}
|
|
124
|
+
|
|
125
|
+
protected override _propagateLanguage(language: string | undefined): void {
|
|
126
|
+
this._logins?.setLanguage(language);
|
|
127
|
+
this._customers?.setLanguage(language);
|
|
128
|
+
this._oauthAccounts?.setLanguage(language);
|
|
129
|
+
this._mfaMethods?.setLanguage(language);
|
|
130
|
+
this._recoveryCodes?.setLanguage(language);
|
|
131
|
+
}
|
|
124
132
|
}
|