Admin API / Types
ProductViewerState
ObjectThe caller's rights on one listing.
type ProductViewerStateFields
| Field | Type | Description |
|---|---|---|
canDelete | Boolean! | True when the caller can delete the listing now: lockReason is null, and the caller is the seller, has the MODERATOR role or higher for a PUBLIC listing, or has the ADMIN role or higher. Acting for a store owner gives no delete right. deleteProducts applies the same rule. |
canEdit | Boolean! | True when the caller can change the listing now: lockReason is null, the caller is the seller or active staff of the seller's live store, and no account restriction blocks the caller's edits. The MODERATOR role or higher gives no edit right on another seller's listing. Some changes have more rules, which the write checks: for example, only the seller can change the sale mode to a giveaway. |