Merge pull request #376 from mirumee/fix/update-schema

Sync schema with core
This commit is contained in:
Marcin Gębala 2020-01-20 15:54:01 +01:00 committed by GitHub
commit 5f767f2699
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 413 additions and 327 deletions

View file

@ -66,6 +66,7 @@ input AccountInput {
type AccountRegister {
errors: [Error!]
requiresConfirmation: Boolean!
accountErrors: [AccountError!]
user: User
}
@ -73,6 +74,7 @@ type AccountRegister {
input AccountRegisterInput {
email: String!
password: String!
redirectUrl: String!
}
type AccountRequestDeletion {
@ -287,7 +289,8 @@ input AttributeFilterInput {
input AttributeInput {
slug: String!
value: String!
value: String
values: [String]
}
enum AttributeInputTypeEnum {
@ -317,7 +320,7 @@ enum AttributeSortField {
input AttributeSortingInput {
direction: OrderDirection!
field: AttributeSortField
field: AttributeSortField!
}
type AttributeTranslatableContent implements Node {
@ -556,6 +559,7 @@ type CategoryDelete {
input CategoryFilterInput {
search: String
ids: [ID]
}
input CategoryInput {
@ -576,7 +580,7 @@ enum CategorySortField {
input CategorySortingInput {
direction: OrderDirection!
field: CategorySortField
field: CategorySortField!
}
type CategoryTranslatableContent implements Node {
@ -921,6 +925,7 @@ type CollectionDelete {
input CollectionFilterInput {
published: CollectionPublished
search: String
ids: [ID]
}
input CollectionInput {
@ -960,7 +965,7 @@ enum CollectionSortField {
input CollectionSortingInput {
direction: OrderDirection!
field: CollectionSortField
field: CollectionSortField!
}
type CollectionTranslatableContent implements Node {
@ -1027,6 +1032,16 @@ enum ConfigurationTypeFieldEnum {
PASSWORD
}
type ConfirmAccount {
errors: [Error!]
}
type ConfirmEmailChange {
errors: [Error!]
user: User
accountErrors: [AccountError!]
}
enum CountryCode {
AF
AX
@ -1300,12 +1315,6 @@ type CreditCard {
expYear: Int!
}
type CustomerAddressCreate {
errors: [Error!]
user: User
address: Address
}
type CustomerBulkDelete {
errors: [Error!]
count: Int!
@ -1339,6 +1348,9 @@ enum CustomerEventsEnum {
ACCOUNT_CREATED
PASSWORD_RESET_LINK_SENT
PASSWORD_RESET
EMAIL_CHANGED_REQUEST
PASSWORD_CHANGED
EMAIL_CHANGED
PLACED_ORDER
NOTE_ADDED_TO_ORDER
DIGITAL_LINK_DOWNLOADED
@ -1366,29 +1378,6 @@ input CustomerInput {
note: String
}
type CustomerPasswordReset {
errors: [Error!]
}
input CustomerPasswordResetInput {
email: String!
}
type CustomerRegister {
errors: [Error!]
user: User
}
input CustomerRegisterInput {
email: String!
password: String!
}
type CustomerSetDefaultAddress {
errors: [Error!]
user: User
}
type CustomerUpdate {
errors: [Error!]
accountErrors: [AccountError!]
@ -1411,8 +1400,6 @@ input DateTimeRangeInput {
scalar Decimal
union DefaultTranslationItem = ProductTranslatableContent | CollectionTranslatableContent | CategoryTranslatableContent | AttributeTranslatableContent | AttributeValueTranslatableContent | ProductVariantTranslatableContent | PageTranslatableContent | ShippingMethodTranslatableContent | SaleTranslatableContent | VoucherTranslatableContent | MenuItemTranslatableContent
type DigitalContent implements Node {
useDefaultSettings: Boolean!
automaticFulfillment: Boolean!
@ -1851,11 +1838,6 @@ type LanguageDisplay {
language: String!
}
type LoggedUserUpdate {
errors: [Error!]
user: User
}
type Margin {
start: Int
stop: Int
@ -2006,7 +1988,7 @@ input MenuItemMoveInput {
input MenuItemSortingInput {
direction: OrderDirection!
field: MenuItemsSortField
field: MenuItemsSortField!
}
type MenuItemTranslatableContent implements Node {
@ -2044,7 +2026,7 @@ enum MenuSortField {
input MenuSortingInput {
direction: OrderDirection!
field: MenuSortField
field: MenuSortField!
}
type MenuUpdate {
@ -2098,11 +2080,25 @@ input MoveProductInput {
}
type Mutation {
wishlistAddProduct(productId: ID!): WishlistAddProductMutation
wishlistRemoveProduct(productId: ID!): WishlistRemoveProductMutation
wishlistAddVariant(variantId: ID!): WishlistAddProductVariantMutation
wishlistRemoveVariant(variantId: ID!): WishlistRemoveProductVariantMutation
webhookCreate(input: WebhookCreateInput!): WebhookCreate
webhookDelete(id: ID!): WebhookDelete
webhookUpdate(id: ID!, input: WebhookUpdateInput!): WebhookUpdate
createWarehouse(input: WarehouseCreateInput!): WarehouseCreate
updateWarehouse(id: ID!, input: WarehouseUpdateInput!): WarehouseUpdate
deleteWarehouse(id: ID!): WarehouseDelete
createStock(input: StockInput!): StockCreate
updateStock(id: ID!, input: StockInput!): StockUpdate
deleteStock(id: ID!): StockDelete
bulkDeleteStock(ids: [ID]!): StockBulkDelete
authorizationKeyAdd(input: AuthorizationKeyInput!, keyType: AuthorizationKeyType!): AuthorizationKeyAdd
authorizationKeyDelete(keyType: AuthorizationKeyType!): AuthorizationKeyDelete
staffNotificationRecipientCreate(input: StaffNotificationRecipientInput!): StaffNotificationRecipientCreate
staffNotificationRecipientUpdate(id: ID!, input: StaffNotificationRecipientInput!): StaffNotificationRecipientUpdate
staffNotificationRecipientDelete(id: ID!): StaffNotificationRecipientDelete
homepageCollectionUpdate(collection: ID): HomepageCollectionUpdate
shopDomainUpdate(input: SiteDomainInput): ShopDomainUpdate
shopSettingsUpdate(input: ShopSettingsInput!): ShopSettingsUpdate
@ -2271,7 +2267,7 @@ type Mutation {
tokenVerify(token: String!): VerifyToken
checkoutAddPromoCode(checkoutId: ID!, promoCode: String!): CheckoutAddPromoCode
checkoutBillingAddressUpdate(billingAddress: AddressInput!, checkoutId: ID!): CheckoutBillingAddressUpdate
checkoutComplete(checkoutId: ID!, storeSource: Boolean = false): CheckoutComplete
checkoutComplete(checkoutId: ID!, redirectUrl: String, storeSource: Boolean = false): CheckoutComplete
checkoutCreate(input: CheckoutCreateInput!): CheckoutCreate
checkoutCustomerAttach(checkoutId: ID!, customerId: ID!): CheckoutCustomerAttach
checkoutCustomerDetach(checkoutId: ID!): CheckoutCustomerDetach
@ -2288,8 +2284,11 @@ type Mutation {
checkoutUpdatePrivateMetadata(id: ID!, input: MetaInput!): CheckoutUpdatePrivateMeta
checkoutClearPrivateMetadata(id: ID!, input: MetaPath!): CheckoutClearPrivateMeta
requestPasswordReset(email: String!, redirectUrl: String!): RequestPasswordReset
confirmAccount(email: String!, token: String!): ConfirmAccount
setPassword(token: String!, email: String!, password: String!): SetPassword
passwordChange(newPassword: String!, oldPassword: String!): PasswordChange
requestEmailChange(newEmail: String!, password: String!, redirectUrl: String!): RequestEmailChange
confirmEmailChange(token: String!): ConfirmEmailChange
accountAddressCreate(input: AddressInput!, type: AddressTypeEnum): AccountAddressCreate
accountAddressUpdate(id: ID!, input: AddressInput!): AccountAddressUpdate
accountAddressDelete(id: ID!): AccountAddressDelete
@ -2299,11 +2298,6 @@ type Mutation {
accountRequestDeletion(redirectUrl: String!): AccountRequestDeletion
accountDelete(token: String!): AccountDelete
accountUpdateMeta(input: MetaInput!): AccountUpdateMeta
customerPasswordReset(input: CustomerPasswordResetInput!): CustomerPasswordReset
customerAddressCreate(input: AddressInput!, type: AddressTypeEnum): CustomerAddressCreate
customerSetDefaultAddress(id: ID!, type: AddressTypeEnum!): CustomerSetDefaultAddress
customerRegister(input: CustomerRegisterInput!): CustomerRegister
loggedUserUpdate(input: UserAddressInput!): LoggedUserUpdate
addressCreate(input: AddressInput!, userId: ID!): AddressCreate
addressUpdate(id: ID!, input: AddressInput!): AddressUpdate
addressDelete(id: ID!): AddressDelete
@ -2330,7 +2324,6 @@ type Mutation {
serviceAccountClearPrivateMetadata(id: ID!, input: MetaPath!): ServiceAccountClearPrivateMeta
serviceAccountTokenCreate(input: ServiceAccountTokenInput!): ServiceAccountTokenCreate
serviceAccountTokenDelete(id: ID!): ServiceAccountTokenDelete
passwordReset(email: String!): PasswordReset
}
input NameTranslationInput {
@ -2617,7 +2610,7 @@ enum OrderSortField {
input OrderSortingInput {
direction: OrderDirection!
field: OrderSortField
field: OrderSortField!
}
enum OrderStatus {
@ -2751,7 +2744,7 @@ enum PageSortField {
input PageSortingInput {
direction: OrderDirection!
field: PageSortField
field: PageSortField!
}
type PageTranslatableContent implements Node {
@ -2799,10 +2792,6 @@ type PasswordChange {
accountErrors: [AccountError!]
}
type PasswordReset {
errors: [Error!]
}
type Payment implements Node {
id: ID!
gateway: String!
@ -2912,10 +2901,9 @@ enum PermissionEnum {
MANAGE_USERS
MANAGE_STAFF
MANAGE_SERVICE_ACCOUNTS
IMPERSONATE_USERS
MANAGE_DISCOUNTS
MANAGE_GIFT_CARD
MANAGE_PLUGINS
MANAGE_GIFT_CARD
MANAGE_MENUS
MANAGE_ORDERS
MANAGE_PAGES
@ -2958,7 +2946,7 @@ enum PluginSortField {
input PluginSortingInput {
direction: OrderDirection!
field: PluginSortField
field: PluginSortField!
}
type PluginUpdate {
@ -3109,6 +3097,7 @@ input ProductFilterInput {
productType: ID
search: String
minimalPrice: PriceRangeInput
productTypes: [ID]
}
type ProductImage implements Node {
@ -3303,6 +3292,7 @@ input ProductTypeFilterInput {
search: String
configurable: ProductTypeConfigurable
productType: ProductTypeEnum
ids: [ID]
}
input ProductTypeInput {
@ -3330,7 +3320,7 @@ enum ProductTypeSortField {
input ProductTypeSortingInput {
direction: OrderDirection!
field: ProductTypeSortField
field: ProductTypeSortField!
}
type ProductTypeUpdate {
@ -3375,15 +3365,15 @@ type ProductVariant implements Node {
sku: String!
product: Product!
trackInventory: Boolean!
quantityAllocated: Int!
weight: Weight
privateMeta: [MetaStore]!
meta: [MetaStore]!
quantity: Int!
stockQuantity: Int!
quantity: Int! @deprecated(reason: "This field will be removed in Saleor 2.11. Use the stock field instead.")
quantityAllocated: Int @deprecated(reason: "This field will be removed in Saleor 2.11. Use the stock field instead.")
stockQuantity: Int! @deprecated(reason: "This field will be removed in Saleor 2.11. Use the stock field instead.")
priceOverride: Money
pricing: VariantPricingInfo
isAvailable: Boolean
isAvailable: Boolean @deprecated(reason: "This field will be removed in Saleor 2.11. Use the stock field instead.")
attributes: [SelectedAttribute!]!
costPrice: Money
margin: Int
@ -3392,6 +3382,7 @@ type ProductVariant implements Node {
images: [ProductImage]
translation(languageCode: LanguageCodeEnum!): ProductVariantTranslation
digitalContent: DigitalContent
stock(country: String): [Stock]
}
type ProductVariantBulkCreate {
@ -3514,8 +3505,12 @@ type Query {
webhooks(sortBy: WebhookSortingInput, filter: WebhookFilterInput, before: String, after: String, first: Int, last: Int): WebhookCountableConnection
webhookEvents: [WebhookEvent]
webhookSamplePayload(eventType: WebhookEventTypeEnum!): JSONString
warehouse(id: ID!): Warehouse
warehouses(filter: WarehouseFilterInput, before: String, after: String, first: Int, last: Int): WarehouseCountableConnection
translations(kind: TranslatableKinds!, before: String, after: String, first: Int, last: Int): TranslatableItemConnection
translation(id: ID!, kind: TranslatableKinds!): DefaultTranslationItem
translation(id: ID!, kind: TranslatableKinds!): TranslatableItem
stock(id: ID!): Stock
stocks(filter: StockFilterInput, before: String, after: String, first: Int, last: Int): StockCountableConnection
shop: Shop
shippingZone(id: ID!): ShippingZone
shippingZones(before: String, after: String, first: Int, last: Int): ShippingZoneCountableConnection
@ -3569,7 +3564,6 @@ type Query {
serviceAccounts(filter: ServiceAccountFilterInput, sortBy: ServiceAccountSortingInput, before: String, after: String, first: Int, last: Int): ServiceAccountCountableConnection
serviceAccount(id: ID!): ServiceAccount
user(id: ID!): User
node(id: ID!): Node
_entities(representations: [_Any]): [_Entity]
_service: _Service
}
@ -3594,6 +3588,12 @@ enum ReportingPeriod {
THIS_MONTH
}
type RequestEmailChange {
errors: [Error!]
user: User
accountErrors: [AccountError!]
}
type RequestPasswordReset {
errors: [Error!]
accountErrors: [AccountError!]
@ -3676,7 +3676,7 @@ enum SaleSortField {
input SaleSortingInput {
direction: OrderDirection!
field: SaleSortField
field: SaleSortField!
}
type SaleTranslatableContent implements Node {
@ -3776,7 +3776,7 @@ enum ServiceAccountSortField {
input ServiceAccountSortingInput {
direction: OrderDirection!
field: ServiceAccountSortField
field: ServiceAccountSortField!
}
type ServiceAccountToken implements Node {
@ -3990,6 +3990,7 @@ type Shop {
defaultDigitalUrlValidDays: Int
companyAddress: Address
customerSetPasswordUrl: String
staffNotificationRecipients: [StaffNotificationRecipient]
}
type ShopAddressUpdate {
@ -4112,6 +4113,37 @@ enum StaffMemberStatus {
DEACTIVATED
}
type StaffNotificationRecipient implements Node {
user: User
active: Boolean
id: ID!
email: String
}
type StaffNotificationRecipientCreate {
errors: [Error!]
shopErrors: [ShopError!]
staffNotificationRecipient: StaffNotificationRecipient
}
type StaffNotificationRecipientDelete {
errors: [Error!]
shopErrors: [ShopError!]
staffNotificationRecipient: StaffNotificationRecipient
}
input StaffNotificationRecipientInput {
user: ID
email: String
active: Boolean
}
type StaffNotificationRecipientUpdate {
errors: [Error!]
shopErrors: [ShopError!]
staffNotificationRecipient: StaffNotificationRecipient
}
type StaffUpdate {
errors: [Error!]
accountErrors: [AccountError!]
@ -4123,11 +4155,81 @@ input StaffUserInput {
search: String
}
type Stock implements Node {
warehouse: Warehouse!
productVariant: ProductVariant!
quantity: Int!
quantityAllocated: Int!
id: ID!
stockQuantity: Int!
}
enum StockAvailability {
IN_STOCK
OUT_OF_STOCK
}
type StockBulkDelete {
errors: [Error!]
count: Int!
stockError: [StockError!]
}
type StockCountableConnection {
pageInfo: PageInfo!
edges: [StockCountableEdge!]!
totalCount: Int
}
type StockCountableEdge {
node: Stock!
cursor: String!
}
type StockCreate {
errors: [Error!]
stockErrors: [StockError!]
stock: Stock
}
type StockDelete {
errors: [Error!]
stock: Stock
}
enum StockErorrCode {
ALREADY_EXISTS
GRAPHQL_ERROR
INVALID
NOT_FOUND
REQUIRED
UNIQUE
}
type StockError {
field: String
message: String
code: StockErorrCode
}
input StockFilterInput {
quantity: Float
quantityAllocated: Float
search: String
}
input StockInput {
productVariant: ID!
warehouse: ID!
quantity: Int
}
type StockUpdate {
errors: [Error!]
stockError: [StockError!]
stock: Stock
}
enum TaxRateType {
ACCOMMODATION
ADMISSION_TO_CULTURAL_EVENTS
@ -4206,7 +4308,7 @@ enum TransactionKind {
CONFIRM
}
union TranslatableItem = Product | Category | Collection | Attribute | AttributeValue | ProductVariant | Page | ShippingMethod | Sale | Voucher | MenuItem
union TranslatableItem = ProductTranslatableContent | CollectionTranslatableContent | CategoryTranslatableContent | AttributeTranslatableContent | AttributeValueTranslatableContent | ProductVariantTranslatableContent | PageTranslatableContent | ShippingMethodTranslatableContent | SaleTranslatableContent | VoucherTranslatableContent | MenuItemTranslatableContent
type TranslatableItemConnection {
pageInfo: PageInfo!
@ -4267,11 +4369,7 @@ type User implements Node {
avatar(size: Int): Image
events: [CustomerEvent]
storedPaymentSources: [PaymentSource]
}
input UserAddressInput {
defaultBillingAddress: AddressInput
defaultShippingAddress: AddressInput
wishlist(before: String, after: String, first: Int, last: Int): WishlistItemCountableConnection
}
type UserAvatarDelete {
@ -4335,7 +4433,7 @@ enum UserSortField {
input UserSortingInput {
direction: OrderDirection!
field: UserSortField
field: UserSortField!
}
type UserUpdateMeta {
@ -4487,7 +4585,7 @@ enum VoucherSortField {
input VoucherSortingInput {
direction: OrderDirection!
field: VoucherSortField
field: VoucherSortField!
}
type VoucherTranslatableContent implements Node {
@ -4519,6 +4617,90 @@ type VoucherUpdate {
voucher: Voucher
}
type Warehouse implements Node {
id: ID!
name: String!
companyName: String!
shippingZones(before: String, after: String, first: Int, last: Int): ShippingZoneCountableConnection!
address: Address!
email: String!
}
input WarehouseAddressInput {
streetAddress1: String!
streetAddress2: String
city: String!
cityArea: String
postalCode: String
country: CountryCode!
countryArea: String
phone: String
}
type WarehouseCountableConnection {
pageInfo: PageInfo!
edges: [WarehouseCountableEdge!]!
totalCount: Int
}
type WarehouseCountableEdge {
node: Warehouse!
cursor: String!
}
type WarehouseCreate {
errors: [Error!]
warehouseErrors: [WarehouseError!]
warehouse: Warehouse
}
input WarehouseCreateInput {
name: String!
companyName: String
shippingZones: [ID]
email: String
address: WarehouseAddressInput!
}
type WarehouseDelete {
errors: [Error!]
warehouseErrors: [WarehouseError!]
warehouse: Warehouse
}
type WarehouseError {
field: String
message: String
code: WarehouseErrorCode
}
enum WarehouseErrorCode {
ALREADY_EXISTS
GRAPHQL_ERROR
INVALID
NOT_FOUND
REQUIRED
UNIQUE
}
input WarehouseFilterInput {
search: String
}
type WarehouseUpdate {
errors: [Error!]
warehouseErrors: [WarehouseError!]
warehouse: Warehouse
}
input WarehouseUpdateInput {
name: String!
companyName: String
shippingZones: [ID]
email: String
address: WarehouseAddressInput
}
type Webhook implements Node {
name: String
serviceAccount: ServiceAccount!
@ -4605,7 +4787,7 @@ enum WebhookSortField {
input WebhookSortingInput {
direction: OrderDirection!
field: WebhookSortField
field: WebhookSortField!
}
type WebhookUpdate {
@ -4637,6 +4819,68 @@ enum WeightUnitsEnum {
G
}
type Wishlist implements Node {
id: ID!
createdAt: DateTime!
items(before: String, after: String, first: Int, last: Int, id: ID): WishlistItemCountableConnection!
}
type WishlistAddProductMutation {
errors: [Error!]
wishlist: [WishlistItem]
wishlistErrors: [WishlistError!]
}
type WishlistAddProductVariantMutation {
errors: [Error!]
wishlist: [WishlistItem]
wishlistErrors: [WishlistError!]
}
type WishlistError {
field: String
message: String
code: WishlistErrorCode
}
enum WishlistErrorCode {
GRAPHQL_ERROR
INVALID
NOT_FOUND
REQUIRED
UNIQUE
}
type WishlistItem implements Node {
id: ID!
wishlist: Wishlist!
product: Product!
variants(before: String, after: String, first: Int, last: Int): ProductVariantCountableConnection!
}
type WishlistItemCountableConnection {
pageInfo: PageInfo!
edges: [WishlistItemCountableEdge!]!
totalCount: Int
}
type WishlistItemCountableEdge {
node: WishlistItem!
cursor: String!
}
type WishlistRemoveProductMutation {
errors: [Error!]
wishlist: [WishlistItem]
wishlistErrors: [WishlistError!]
}
type WishlistRemoveProductVariantMutation {
errors: [Error!]
wishlist: [WishlistItem]
wishlistErrors: [WishlistError!]
}
scalar _Any
union _Entity = Address | ServiceAccount | User | ProductVariant | Product | ProductType | Collection | Category | ProductImage

View file

@ -391,10 +391,6 @@ export const sortPageProps: SortPage<string> = {
};
export const permissions: ShopInfo_shop_permissions[] = [
{
code: PermissionEnum.IMPERSONATE_USERS,
name: "Impersonate customers."
},
{
code: PermissionEnum.MANAGE_DISCOUNTS,
name: "Manage sales and vouchers."

View file

@ -135,7 +135,7 @@ export interface Product_variants {
priceOverride: Product_variants_priceOverride | null;
margin: number | null;
quantity: number;
quantityAllocated: number;
quantityAllocated: number | null;
stockQuantity: number;
}

View file

@ -141,7 +141,7 @@ export interface ProductCreate_productCreate_product_variants {
priceOverride: ProductCreate_productCreate_product_variants_priceOverride | null;
margin: number | null;
quantity: number;
quantityAllocated: number;
quantityAllocated: number | null;
stockQuantity: number;
}

View file

@ -135,7 +135,7 @@ export interface ProductDetails_product_variants {
priceOverride: ProductDetails_product_variants_priceOverride | null;
margin: number | null;
quantity: number;
quantityAllocated: number;
quantityAllocated: number | null;
stockQuantity: number;
}

View file

@ -141,7 +141,7 @@ export interface ProductImageCreate_productImageCreate_product_variants {
priceOverride: ProductImageCreate_productImageCreate_product_variants_priceOverride | null;
margin: number | null;
quantity: number;
quantityAllocated: number;
quantityAllocated: number | null;
stockQuantity: number;
}

View file

@ -141,7 +141,7 @@ export interface ProductImageUpdate_productImageUpdate_product_variants {
priceOverride: ProductImageUpdate_productImageUpdate_product_variants_priceOverride | null;
margin: number | null;
quantity: number;
quantityAllocated: number;
quantityAllocated: number | null;
stockQuantity: number;
}

View file

@ -141,7 +141,7 @@ export interface ProductUpdate_productUpdate_product_variants {
priceOverride: ProductUpdate_productUpdate_product_variants_priceOverride | null;
margin: number | null;
quantity: number;
quantityAllocated: number;
quantityAllocated: number | null;
stockQuantity: number;
}

View file

@ -100,5 +100,5 @@ export interface ProductVariant {
product: ProductVariant_product;
sku: string;
quantity: number;
quantityAllocated: number;
quantityAllocated: number | null;
}

View file

@ -100,7 +100,7 @@ export interface ProductVariantDetails_productVariant {
product: ProductVariantDetails_productVariant_product;
sku: string;
quantity: number;
quantityAllocated: number;
quantityAllocated: number | null;
}
export interface ProductVariantDetails {

View file

@ -141,7 +141,7 @@ export interface SimpleProductUpdate_productUpdate_product_variants {
priceOverride: SimpleProductUpdate_productUpdate_product_variants_priceOverride | null;
margin: number | null;
quantity: number;
quantityAllocated: number;
quantityAllocated: number | null;
stockQuantity: number;
}
@ -282,7 +282,7 @@ export interface SimpleProductUpdate_productVariantUpdate_productVariant {
product: SimpleProductUpdate_productVariantUpdate_productVariant_product;
sku: string;
quantity: number;
quantityAllocated: number;
quantityAllocated: number | null;
}
export interface SimpleProductUpdate_productVariantUpdate {

View file

@ -109,7 +109,7 @@ export interface VariantCreate_productVariantCreate_productVariant {
product: VariantCreate_productVariantCreate_productVariant_product;
sku: string;
quantity: number;
quantityAllocated: number;
quantityAllocated: number | null;
}
export interface VariantCreate_productVariantCreate {

View file

@ -106,7 +106,7 @@ export interface VariantImageAssign_variantImageAssign_productVariant {
product: VariantImageAssign_variantImageAssign_productVariant_product;
sku: string;
quantity: number;
quantityAllocated: number;
quantityAllocated: number | null;
}
export interface VariantImageAssign_variantImageAssign {

View file

@ -106,7 +106,7 @@ export interface VariantImageUnassign_variantImageUnassign_productVariant {
product: VariantImageUnassign_variantImageUnassign_productVariant_product;
sku: string;
quantity: number;
quantityAllocated: number;
quantityAllocated: number | null;
}
export interface VariantImageUnassign_variantImageUnassign {

View file

@ -109,7 +109,7 @@ export interface VariantUpdate_productVariantUpdate_productVariant {
product: VariantUpdate_productVariantUpdate_productVariant_product;
sku: string;
quantity: number;
quantityAllocated: number;
quantityAllocated: number | null;
}
export interface VariantUpdate_productVariantUpdate {

View file

@ -29683,6 +29683,61 @@ exports[`Storyshots Views / Configuration partial access 1`] = `
</div>
</div>
</div>
<div
class="ConfigurationPage-configurationCategory-id"
>
<div
class="ConfigurationPage-configurationLabel-id"
>
<div
class="MuiTypography-root-id MuiTypography-body1-id"
>
Product Settings
</div>
</div>
<div
class="ConfigurationPage-configurationItem-id"
>
<div
class="MuiPaper-root-id MuiPaper-elevation0-id MuiCard-root-id ConfigurationPage-card-id MuiPaper-rounded-id"
>
<div
class="MuiCardContent-root-id ConfigurationPage-cardContent-id"
>
<div
class="ConfigurationPage-icon-id"
>
<svg
aria-hidden="true"
class="MuiSvgIcon-root-id MuiSvgIcon-fontSizeInherit-id"
focusable="false"
role="presentation"
viewBox="0 0 44 44"
>
<path
clip-rule="evenodd"
d="M2 0H34.6316V21.0526H32.5263V2.10526H4.10526V37.8947H32.5263V35.2632H34.6316V40H2V0ZM8.31579 20H11.4737V23.1579H8.31579V20ZM16.7368 20H13.5789V23.1579H16.7368V20ZM18.8421 20H22V23.1579H18.8421V20ZM27.2632 20H24.1053V23.1579H27.2632V20ZM8.31579 25.2632H11.4737V28.4211H8.31579V25.2632ZM16.7368 25.2632H13.5789V28.4211H16.7368V25.2632ZM18.8421 25.2632H22V28.4211H18.8421V25.2632ZM11.4737 30.5263H8.31579V33.6842H11.4737V30.5263ZM13.5789 30.5263H16.7368V33.6842H13.5789V30.5263ZM22 30.5263H18.8421V33.6842H22V30.5263ZM26.2105 9.47368H10.4211V14.7368H26.2105V9.47368ZM8.31579 7.36842V16.8421H28.3158V7.36842H8.31579ZM37.7895 30.5263H34.6316V33.6842H37.7895V30.5263ZM28.3158 24.2105H31.4737V27.3684H28.3158V24.2105ZM29.0602 34.4285L38.5339 24.9548L37.0452 23.4662L27.5715 32.9398L29.0602 34.4285Z"
fill="#06847B"
fill-rule="evenodd"
/>
</svg>
</div>
<div>
<div
class="MuiTypography-root-id ConfigurationPage-sectionTitle-id MuiTypography-body1-id MuiTypography-colorPrimary-id"
>
Taxes
</div>
<div
class="MuiTypography-root-id ConfigurationPage-sectionDescription-id MuiTypography-body1-id"
>
Manage how your store charges tax
</div>
</div>
</div>
</div>
</div>
</div>
<div
class="ConfigurationPage-configurationCategory-id"
>
@ -29716,7 +29771,7 @@ exports[`Storyshots Views / Configuration partial access 1`] = `
>
<path
clip-rule="evenodd"
d="M35.9075 11.3232C40.8772 19.931 37.928 30.9378 29.3202 35.9075C20.7123 40.8772 9.70553 37.928 4.7358 29.3201C-0.233933 20.7123 2.71533 9.70553 11.3232 4.7358C19.931 -0.233933 30.9378 2.71533 35.9075 11.3232ZM37.6393 10.3233C43.1612 19.8876 39.8842 32.1173 30.32 37.6393C20.7557 43.1612 8.52596 39.8842 3.00404 30.32C-2.51789 20.7557 0.759069 8.52596 10.3233 3.00404C19.8876 -2.51789 32.1173 0.759069 37.6393 10.3233ZM14.9402 14.5709L31.0335 9.60975L26.0724 25.7031L21.7789 21.4096C22.3117 20.6975 22.2544 19.6836 21.6072 19.0364C20.9599 18.3891 19.946 18.3319 19.2339 18.8647L14.9402 14.5709ZM19.0359 21.6077C18.3884 20.9602 18.3314 19.946 18.8646 19.2338L14.571 14.9402L9.6098 31.0335L25.7032 26.0723L21.4097 21.7789C20.6976 22.3122 19.6833 22.2551 19.0359 21.6077ZM18.7012 15.504L28.0085 12.6348L25.1393 21.9421L18.7012 15.504Z"
d="M31.8208 5.55248L30.7926 8.35093L31.545 9.18475C33.147 10.9601 34.3637 13.1054 35.0581 15.4817L35.3837 16.596L38.1395 17.0712V23.1349L35.3838 23.6101L35.0582 24.7244C34.4073 26.9518 33.2976 28.9763 31.8417 30.6834L31.1357 31.5111L32.2146 34.4475L26.7281 37.6084L24.9142 35.4411L23.7814 35.7276C22.572 36.0334 21.3058 36.1961 20 36.1961C18.6942 36.1961 17.428 36.0334 16.2186 35.7276L15.0858 35.4411L13.2719 37.6084L7.78535 34.4475L8.86424 31.5111L8.15831 30.6834C6.70243 28.9763 5.59267 26.9518 4.94182 24.7244L4.61622 23.6101L1.86047 23.1349L1.86047 17.0712L4.61625 16.596L4.94186 15.4817C5.63625 13.1054 6.85296 10.9601 8.45495 9.18475L9.20736 8.35093L8.17916 5.55248L13.6657 2.39164L15.5348 4.62486L16.6397 4.37851C17.7208 4.1375 18.8448 4.01018 20 4.01018C21.1552 4.01018 22.2792 4.1375 23.3603 4.37851L24.4652 4.62486L26.3343 2.39164L31.8208 5.55248ZM40 24.702V15.5042L36.8439 14.9599C36.0699 12.311 34.7134 9.91885 32.9263 7.93836L34.1077 4.72285L25.9098 0L23.7651 2.56262C22.5521 2.2922 21.2924 2.14972 20 2.14972C18.7076 2.14972 17.4479 2.2922 16.2349 2.56262L14.0902 0L5.89227 4.72285L7.07371 7.93836C5.28657 9.91885 3.93009 12.311 3.15607 14.9599L0 15.5042V24.702L3.15603 25.2462C3.88152 27.7291 5.11876 29.9864 6.74273 31.8906L5.49846 35.2772L13.6964 40L15.7625 37.5313C17.1197 37.8744 18.539 38.0565 20 38.0565C21.461 38.0565 22.8803 37.8744 24.2375 37.5313L26.3036 40L34.5015 35.2772L33.2573 31.8906C34.8812 29.9864 36.1185 27.7291 36.844 25.2462L40 24.702ZM28.4425 20C28.4425 24.6627 24.6627 28.4425 20 28.4425C15.3373 28.4425 11.5574 24.6627 11.5574 20C11.5574 15.3373 15.3373 11.5574 20 11.5574C24.6627 11.5574 28.4425 15.3373 28.4425 20ZM30.303 20C30.303 25.6902 25.6902 30.303 20 30.303C14.3097 30.303 9.69693 25.6902 9.69693 20C9.69693 14.3097 14.3097 9.69693 20 9.69693C25.6902 9.69693 30.303 14.3097 30.303 20Z"
fill="#06847B"
fill-rule="evenodd"
/>
@ -29726,12 +29781,12 @@ exports[`Storyshots Views / Configuration partial access 1`] = `
<div
class="MuiTypography-root-id ConfigurationPage-sectionTitle-id MuiTypography-body1-id MuiTypography-colorPrimary-id"
>
Navigation
Site Settings
</div>
<div
class="MuiTypography-root-id ConfigurationPage-sectionDescription-id MuiTypography-body1-id"
>
Define how users can navigate through your store
View and update your site settings
</div>
</div>
</div>
@ -111069,29 +111124,6 @@ exports[`Storyshots Views / Services / Create service default 1`] = `
<div
class="MuiCardContent-root-id"
>
<div>
<label
class="MuiFormControlLabel-root-id"
>
<button
class="MuiButtonBase-root-id Checkbox-root-id"
tabindex="0"
type="button"
>
<input
class="Checkbox-box-id"
name="IMPERSONATE_USERS"
type="checkbox"
value="false"
/>
</button>
<span
class="MuiTypography-root-id MuiFormControlLabel-label-id MuiTypography-body1-id"
>
Impersonate customers
</span>
</label>
</div>
<div>
<label
class="MuiFormControlLabel-root-id"
@ -111587,29 +111619,6 @@ exports[`Storyshots Views / Services / Create service form errors 1`] = `
<div
class="MuiCardContent-root-id"
>
<div>
<label
class="MuiFormControlLabel-root-id"
>
<button
class="MuiButtonBase-root-id Checkbox-root-id"
tabindex="0"
type="button"
>
<input
class="Checkbox-box-id"
name="IMPERSONATE_USERS"
type="checkbox"
value="false"
/>
</button>
<span
class="MuiTypography-root-id MuiFormControlLabel-label-id MuiTypography-body1-id"
>
Impersonate customers
</span>
</label>
</div>
<div>
<label
class="MuiFormControlLabel-root-id"
@ -112103,31 +112112,6 @@ exports[`Storyshots Views / Services / Create service loading 1`] = `
<div
class="MuiCardContent-root-id"
>
<div>
<label
class="MuiFormControlLabel-root-id MuiFormControlLabel-disabled-id"
>
<button
class="MuiButtonBase-root-id Checkbox-root-id MuiButtonBase-disabled-id"
disabled=""
tabindex="-1"
type="button"
>
<input
class="Checkbox-box-id Checkbox-disabled-id"
disabled=""
name="IMPERSONATE_USERS"
type="checkbox"
value="false"
/>
</button>
<span
class="MuiTypography-root-id MuiFormControlLabel-label-id MuiFormControlLabel-disabled-id MuiTypography-body1-id"
>
Impersonate customers
</span>
</label>
</div>
<div>
<label
class="MuiFormControlLabel-root-id MuiFormControlLabel-disabled-id"
@ -112765,29 +112749,6 @@ exports[`Storyshots Views / Services / Service details default 1`] = `
<div
class="MuiCardContent-root-id"
>
<div>
<label
class="MuiFormControlLabel-root-id"
>
<button
class="MuiButtonBase-root-id Checkbox-root-id"
tabindex="0"
type="button"
>
<input
class="Checkbox-box-id"
name="IMPERSONATE_USERS"
type="checkbox"
value="false"
/>
</button>
<span
class="MuiTypography-root-id MuiFormControlLabel-label-id MuiTypography-body1-id"
>
Impersonate customers
</span>
</label>
</div>
<div>
<label
class="MuiFormControlLabel-root-id"
@ -113477,29 +113438,6 @@ exports[`Storyshots Views / Services / Service details default token 1`] = `
<div
class="MuiCardContent-root-id"
>
<div>
<label
class="MuiFormControlLabel-root-id"
>
<button
class="MuiButtonBase-root-id Checkbox-root-id"
tabindex="0"
type="button"
>
<input
class="Checkbox-box-id"
name="IMPERSONATE_USERS"
type="checkbox"
value="false"
/>
</button>
<span
class="MuiTypography-root-id MuiFormControlLabel-label-id MuiTypography-body1-id"
>
Impersonate customers
</span>
</label>
</div>
<div>
<label
class="MuiFormControlLabel-root-id"
@ -114111,29 +114049,6 @@ exports[`Storyshots Views / Services / Service details form errors 1`] = `
<div
class="MuiCardContent-root-id"
>
<div>
<label
class="MuiFormControlLabel-root-id"
>
<button
class="MuiButtonBase-root-id Checkbox-root-id"
tabindex="0"
type="button"
>
<input
class="Checkbox-box-id"
name="IMPERSONATE_USERS"
type="checkbox"
value="false"
/>
</button>
<span
class="MuiTypography-root-id MuiFormControlLabel-label-id MuiTypography-body1-id"
>
Impersonate customers
</span>
</label>
</div>
<div>
<label
class="MuiFormControlLabel-root-id"
@ -114756,31 +114671,6 @@ exports[`Storyshots Views / Services / Service details loading 1`] = `
<div
class="MuiCardContent-root-id"
>
<div>
<label
class="MuiFormControlLabel-root-id MuiFormControlLabel-disabled-id"
>
<button
class="MuiButtonBase-root-id Checkbox-root-id MuiButtonBase-disabled-id"
disabled=""
tabindex="-1"
type="button"
>
<input
class="Checkbox-box-id Checkbox-disabled-id"
disabled=""
name="IMPERSONATE_USERS"
type="checkbox"
value="false"
/>
</button>
<span
class="MuiTypography-root-id MuiFormControlLabel-label-id MuiFormControlLabel-disabled-id MuiTypography-body1-id"
>
Impersonate customers
</span>
</label>
</div>
<div>
<label
class="MuiFormControlLabel-root-id MuiFormControlLabel-disabled-id"
@ -123843,31 +123733,6 @@ exports[`Storyshots Views / Staff / Staff member details loading 1`] = `
<div
class="MuiCardContent-root-id"
>
<div>
<label
class="MuiFormControlLabel-root-id MuiFormControlLabel-disabled-id"
>
<button
class="MuiButtonBase-root-id Checkbox-root-id MuiButtonBase-disabled-id"
disabled=""
tabindex="-1"
type="button"
>
<input
class="Checkbox-box-id Checkbox-disabled-id"
disabled=""
name="IMPERSONATE_USERS"
type="checkbox"
value="false"
/>
</button>
<span
class="MuiTypography-root-id MuiFormControlLabel-label-id MuiFormControlLabel-disabled-id MuiTypography-body1-id"
>
Impersonate customers
</span>
</label>
</div>
<div>
<label
class="MuiFormControlLabel-root-id MuiFormControlLabel-disabled-id"
@ -124499,32 +124364,9 @@ exports[`Storyshots Views / Staff / Staff member details not admin 1`] = `
>
<input
class="Checkbox-box-id"
name="IMPERSONATE_USERS"
type="checkbox"
value="false"
/>
</button>
<span
class="MuiTypography-root-id MuiFormControlLabel-label-id MuiTypography-body1-id"
>
Impersonate customers
</span>
</label>
</div>
<div>
<label
class="MuiFormControlLabel-root-id"
>
<button
class="MuiButtonBase-root-id Checkbox-root-id"
tabindex="0"
type="button"
>
<input
class="Checkbox-box-id Checkbox-checked-id"
name="MANAGE_DISCOUNTS"
type="checkbox"
value="true"
value="false"
/>
</button>
<span

View file

@ -479,7 +479,6 @@ export enum PaymentChargeStatusEnum {
}
export enum PermissionEnum {
IMPERSONATE_USERS = "IMPERSONATE_USERS",
MANAGE_CHECKOUTS = "MANAGE_CHECKOUTS",
MANAGE_DISCOUNTS = "MANAGE_DISCOUNTS",
MANAGE_GIFT_CARD = "MANAGE_GIFT_CARD",
@ -712,12 +711,13 @@ export interface AttributeFilterInput {
export interface AttributeInput {
slug: string;
value: string;
value?: string | null;
values?: (string | null)[] | null;
}
export interface AttributeSortingInput {
direction: OrderDirection;
field?: AttributeSortField | null;
field: AttributeSortField;
}
export interface AttributeUpdateInput {
@ -756,6 +756,7 @@ export interface CatalogueInput {
export interface CategoryFilterInput {
search?: string | null;
ids?: (string | null)[] | null;
}
export interface CategoryInput {
@ -770,7 +771,7 @@ export interface CategoryInput {
export interface CategorySortingInput {
direction: OrderDirection;
field?: CategorySortField | null;
field: CategorySortField;
}
export interface CollectionCreateInput {
@ -789,6 +790,7 @@ export interface CollectionCreateInput {
export interface CollectionFilterInput {
published?: CollectionPublished | null;
search?: string | null;
ids?: (string | null)[] | null;
}
export interface CollectionInput {
@ -805,7 +807,7 @@ export interface CollectionInput {
export interface CollectionSortingInput {
direction: OrderDirection;
field?: CollectionSortField | null;
field: CollectionSortField;
}
export interface ConfigurationItemInput {
@ -908,7 +910,7 @@ export interface MenuItemMoveInput {
export interface MenuSortingInput {
direction: OrderDirection;
field?: MenuSortField | null;
field: MenuSortField;
}
export interface NameTranslationInput {
@ -944,7 +946,7 @@ export interface OrderLineInput {
export interface OrderSortingInput {
direction: OrderDirection;
field?: OrderSortField | null;
field: OrderSortField;
}
export interface OrderUpdateInput {
@ -973,7 +975,7 @@ export interface PageInput {
export interface PageSortingInput {
direction: OrderDirection;
field?: PageSortField | null;
field: PageSortField;
}
export interface PageTranslationInput {
@ -986,7 +988,7 @@ export interface PageTranslationInput {
export interface PluginSortingInput {
direction: OrderDirection;
field?: PluginSortField | null;
field: PluginSortField;
}
export interface PluginUpdateInput {
@ -1010,6 +1012,7 @@ export interface ProductFilterInput {
productType?: string | null;
search?: string | null;
minimalPrice?: PriceRangeInput | null;
productTypes?: (string | null)[] | null;
}
export interface ProductOrder {
@ -1022,6 +1025,7 @@ export interface ProductTypeFilterInput {
search?: string | null;
configurable?: ProductTypeConfigurable | null;
productType?: ProductTypeEnum | null;
ids?: (string | null)[] | null;
}
export interface ProductTypeInput {
@ -1037,7 +1041,7 @@ export interface ProductTypeInput {
export interface ProductTypeSortingInput {
direction: OrderDirection;
field?: ProductTypeSortField | null;
field: ProductTypeSortField;
}
export interface ProductVariantBulkCreateInput {
@ -1096,7 +1100,7 @@ export interface SaleInput {
export interface SaleSortingInput {
direction: OrderDirection;
field?: SaleSortField | null;
field: SaleSortField;
}
export interface SeoInput {
@ -1117,7 +1121,7 @@ export interface ServiceAccountInput {
export interface ServiceAccountSortingInput {
direction: OrderDirection;
field?: ServiceAccountSortField | null;
field: ServiceAccountSortField;
}
export interface ServiceAccountTokenInput {
@ -1208,7 +1212,7 @@ export interface UserCreateInput {
export interface UserSortingInput {
direction: OrderDirection;
field?: UserSortField | null;
field: UserSortField;
}
export interface VoucherFilterInput {
@ -1240,7 +1244,7 @@ export interface VoucherInput {
export interface VoucherSortingInput {
direction: OrderDirection;
field?: VoucherSortField | null;
field: VoucherSortField;
}
export interface WebhookCreateInput {
@ -1259,7 +1263,7 @@ export interface WebhookFilterInput {
export interface WebhookSortingInput {
direction: OrderDirection;
field?: WebhookSortField | null;
field: WebhookSortField;
}
export interface WebhookUpdateInput {

View file

@ -63,7 +63,7 @@ export function asSortParams<
interface SortingInput<T extends string> {
direction: OrderDirection;
field?: T | null;
field: T;
}
type GetSortQueryField<TUrlField extends string, TSortField extends string> = (
sort: TUrlField