Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
185 changes: 1 addition & 184 deletions .mock/definition/__package__.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ errors:
- value:
code: forms_require_republish
message: To access this feature, the site needs to be republished.
- value:
key: value
- value:
code: ecommerce_not_enabled
message: Ecommerce is not yet initialized
Expand All @@ -95,7 +93,7 @@ types:
discriminated: false
union:
- InvalidScopes
- UsersNotEnabled
- NotEnterprisePlanSite
source:
openapi: ../../../openapi/referenced-specs/v2.yml
BadRequestErrorBody:
Expand Down Expand Up @@ -125,13 +123,6 @@ types:
docs: Filter items last published after this date
source:
openapi: ../../../openapi/referenced-specs/v2.yml
ConflictErrorBody:
discriminated: false
union:
- DuplicateUserEmail
- UserLimitReached
source:
openapi: ../../../openapi/referenced-specs/v2.yml
AuthorizedUser:
properties:
id:
Expand Down Expand Up @@ -2587,9 +2578,6 @@ types:
- ecomm_new_order
- ecomm_order_changed
- ecomm_inventory_changed
- user_account_added
- user_account_updated
- user_account_deleted
- collection_item_created
- collection_item_changed
- collection_item_deleted
Expand Down Expand Up @@ -2776,177 +2764,6 @@ types:
pagination: optional<Pagination>
source:
openapi: ../../../openapi/referenced-specs/v2.yml
UserStatus:
enum:
- invited
- verified
- unverified
docs: The status of the user
source:
openapi: ../../../openapi/referenced-specs/v2.yml
UserAccessGroupsItemType:
enum:
- admin
- ecommerce
docs: |
The type of access group based on how it was assigned to the user.
* `admin` - Assigned to the user via API or in the designer
* `ecommerce` - Assigned to the user via an ecommerce purchase
inline: true
source:
openapi: ../../../openapi/referenced-specs/v2.yml
UserAccessGroupsItem:
docs: Access group slugs and types
properties:
slug:
type: optional<string>
docs: Access group identifier for APIs
type:
type: optional<UserAccessGroupsItemType>
docs: |
The type of access group based on how it was assigned to the user.
* `admin` - Assigned to the user via API or in the designer
* `ecommerce` - Assigned to the user via an ecommerce purchase
source:
openapi: ../../../openapi/referenced-specs/v2.yml
UserDataData:
properties:
name:
type: optional<string>
docs: |
The name of the user
email:
type: optional<string>
docs: |
The email address of the user
accept-privacy:
type: optional<boolean>
docs: |
Boolean indicating if the user has accepted the privacy policy
accept-communications:
type: optional<boolean>
docs: |
Boolean indicating if the user has accepted to receive communications
additionalProperties:
type: optional<string>
docs: Custom user attributes
source:
openapi: ../../../openapi/referenced-specs/v2.yml
inline: true
UserData:
docs: An object containing the User's basic info and custom fields
properties:
data: optional<UserDataData>
source:
openapi: ../../../openapi/referenced-specs/v2.yml
User:
docs: >
The fields that define the schema for a given Item are based on the
Collection that Item belongs to. Beyond the user defined fields, there are
a handful of additional fields that are automatically created for all
items
properties:
id:
type: optional<string>
docs: Unique identifier for the User
access: read-only
isEmailVerified:
type: optional<boolean>
docs: Shows whether the user has verified their email address
access: read-only
lastUpdated:
type: optional<datetime>
docs: The timestamp the user was updated
access: read-only
invitedOn:
type: optional<datetime>
docs: The timestamp the user was invited
access: read-only
createdOn:
type: optional<datetime>
docs: The timestamp the user was created
access: read-only
lastLogin:
type: optional<datetime>
docs: The timestamp the user was logged in
access: read-only
status: optional<UserStatus>
accessGroups:
type: optional<list<UserAccessGroupsItem>>
docs: Access groups the user belongs to
data: optional<UserData>
source:
openapi: ../../../openapi/referenced-specs/v2.yml
UserList:
docs: The list users results
properties:
count:
type: optional<integer>
docs: Number of users returned
limit:
type: optional<integer>
docs: The limit specified in the request
default: 10
offset:
type: optional<integer>
docs: The offset specified for pagination
default: 0
total:
type: optional<integer>
docs: Total number of users in the collection
users:
type: optional<list<User>>
docs: List of Users for a Site
source:
openapi: ../../../openapi/referenced-specs/v2.yml
UsersNotEnabled: unknown
DuplicateUserEmail: unknown
UserLimitReached: unknown
AccessGroup:
properties:
id:
type: optional<string>
docs: Unique identifier for the Access Group
name:
type: optional<string>
docs: Name of the the Access Group
shortId:
type: optional<string>
docs: >-
Shortened unique identifier based on name, optimized for its use in
the user’s JWT
slug:
type: optional<string>
docs: >-
Shortened unique identifier based on name, optimized for human
readability and public API use
createdOn:
type: optional<datetime>
docs: The date the Access Group was created
source:
openapi: ../../../openapi/referenced-specs/v2.yml
AccessGroupList:
docs: The list access groups results
properties:
count:
type: optional<integer>
docs: Number of access groups returned
limit:
type: optional<integer>
docs: The limit specified in the request
default: 10
offset:
type: optional<integer>
docs: The offset specified for pagination
default: 0
total:
type: optional<integer>
docs: Total number of access groups in the collection
accessGroups:
type: optional<list<AccessGroup>>
docs: List of Site Access Groups
source:
openapi: ../../../openapi/referenced-specs/v2.yml
SkuPropertyListEnumItem:
docs: Enumerated Product variants/Options for the SKU
properties:
Expand Down
94 changes: 0 additions & 94 deletions .mock/definition/accessGroups.yml

This file was deleted.

Loading