Merge pull request #357 from mirumee/ref/stop-using-deprecated
Stop using deprecated fields
This commit is contained in:
commit
10cd3ab972
59 changed files with 364 additions and 189 deletions
|
@ -23,6 +23,7 @@ All notable, unreleased changes to this project will be documented in this file.
|
||||||
- Move mutation state to mutation - #297 by @dominik-zeglen
|
- Move mutation state to mutation - #297 by @dominik-zeglen
|
||||||
- Add table sorting - #292 by @dominik-zeglen
|
- Add table sorting - #292 by @dominik-zeglen
|
||||||
- Unify dialog handling - #296 by @dominik-zeglen
|
- Unify dialog handling - #296 by @dominik-zeglen
|
||||||
|
- Stop using deprecated fields - #357 by @dominik-zeglen
|
||||||
|
|
||||||
## 2.0.0
|
## 2.0.0
|
||||||
|
|
||||||
|
|
|
@ -301,8 +301,6 @@ type AttributeReorderValues {
|
||||||
productErrors: [ProductError!]
|
productErrors: [ProductError!]
|
||||||
}
|
}
|
||||||
|
|
||||||
scalar AttributeScalar
|
|
||||||
|
|
||||||
enum AttributeSortField {
|
enum AttributeSortField {
|
||||||
NAME
|
NAME
|
||||||
SLUG
|
SLUG
|
||||||
|
@ -635,7 +633,6 @@ type Checkout implements Node {
|
||||||
shippingAddress: Address
|
shippingAddress: Address
|
||||||
shippingMethod: ShippingMethod
|
shippingMethod: ShippingMethod
|
||||||
note: String!
|
note: String!
|
||||||
discountAmount: Money @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.10, use discount instead.")
|
|
||||||
discount: Money
|
discount: Money
|
||||||
discountName: String
|
discountName: String
|
||||||
translatedDiscountName: String
|
translatedDiscountName: String
|
||||||
|
@ -833,12 +830,6 @@ type CheckoutUpdatePrivateMeta {
|
||||||
checkout: Checkout
|
checkout: Checkout
|
||||||
}
|
}
|
||||||
|
|
||||||
type CheckoutUpdateVoucher {
|
|
||||||
errors: [Error!]
|
|
||||||
checkout: Checkout
|
|
||||||
checkoutErrors: [CheckoutError!]
|
|
||||||
}
|
|
||||||
|
|
||||||
type ChoiceValue {
|
type ChoiceValue {
|
||||||
raw: String
|
raw: String
|
||||||
verbose: String
|
verbose: String
|
||||||
|
@ -1698,7 +1689,7 @@ type FulfillmentUpdateTracking {
|
||||||
|
|
||||||
input FulfillmentUpdateTrackingInput {
|
input FulfillmentUpdateTrackingInput {
|
||||||
trackingNumber: String
|
trackingNumber: String
|
||||||
notifyCustomer: Boolean
|
notifyCustomer: Boolean = false
|
||||||
}
|
}
|
||||||
|
|
||||||
type GatewayConfigLine {
|
type GatewayConfigLine {
|
||||||
|
@ -1939,7 +1930,6 @@ input MenuInput {
|
||||||
type MenuItem implements Node {
|
type MenuItem implements Node {
|
||||||
id: ID!
|
id: ID!
|
||||||
name: String!
|
name: String!
|
||||||
sortOrder: Int @deprecated(reason: "Will be dropped in 2.10 and is deprecated since 2.9: use the position in list instead and relative calculus to determine shift position.")
|
|
||||||
menu: Menu!
|
menu: Menu!
|
||||||
parent: MenuItem
|
parent: MenuItem
|
||||||
category: Category
|
category: Category
|
||||||
|
@ -2293,7 +2283,6 @@ type Mutation {
|
||||||
checkoutPaymentCreate(checkoutId: ID!, input: PaymentInput!): CheckoutPaymentCreate
|
checkoutPaymentCreate(checkoutId: ID!, input: PaymentInput!): CheckoutPaymentCreate
|
||||||
checkoutShippingAddressUpdate(checkoutId: ID!, shippingAddress: AddressInput!): CheckoutShippingAddressUpdate
|
checkoutShippingAddressUpdate(checkoutId: ID!, shippingAddress: AddressInput!): CheckoutShippingAddressUpdate
|
||||||
checkoutShippingMethodUpdate(checkoutId: ID, shippingMethodId: ID!): CheckoutShippingMethodUpdate
|
checkoutShippingMethodUpdate(checkoutId: ID, shippingMethodId: ID!): CheckoutShippingMethodUpdate
|
||||||
checkoutUpdateVoucher(checkoutId: ID!, voucherCode: String): CheckoutUpdateVoucher
|
|
||||||
checkoutUpdateMetadata(id: ID!, input: MetaInput!): CheckoutUpdateMeta
|
checkoutUpdateMetadata(id: ID!, input: MetaInput!): CheckoutUpdateMeta
|
||||||
checkoutClearMetadata(id: ID!, input: MetaPath!): CheckoutClearMeta
|
checkoutClearMetadata(id: ID!, input: MetaPath!): CheckoutClearMeta
|
||||||
checkoutUpdatePrivateMetadata(id: ID!, input: MetaInput!): CheckoutUpdatePrivateMeta
|
checkoutUpdatePrivateMetadata(id: ID!, input: MetaInput!): CheckoutUpdatePrivateMeta
|
||||||
|
@ -2404,7 +2393,6 @@ type Order implements Node {
|
||||||
totalBalance: Money!
|
totalBalance: Money!
|
||||||
userEmail: String
|
userEmail: String
|
||||||
isShippingRequired: Boolean!
|
isShippingRequired: Boolean!
|
||||||
discountAmount: Money! @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.10, use discount instead.")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
enum OrderAction {
|
enum OrderAction {
|
||||||
|
@ -2936,6 +2924,7 @@ enum PermissionEnum {
|
||||||
MANAGE_SETTINGS
|
MANAGE_SETTINGS
|
||||||
MANAGE_TRANSLATIONS
|
MANAGE_TRANSLATIONS
|
||||||
MANAGE_WEBHOOKS
|
MANAGE_WEBHOOKS
|
||||||
|
MANAGE_CHECKOUTS
|
||||||
}
|
}
|
||||||
|
|
||||||
type Plugin implements Node {
|
type Plugin implements Node {
|
||||||
|
@ -3006,11 +2995,9 @@ type Product implements Node {
|
||||||
meta: [MetaStore]!
|
meta: [MetaStore]!
|
||||||
url: String!
|
url: String!
|
||||||
thumbnail(size: Int): Image
|
thumbnail(size: Int): Image
|
||||||
availability: ProductPricingInfo @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.10, Has been renamed to `pricing`.")
|
|
||||||
pricing: ProductPricingInfo
|
pricing: ProductPricingInfo
|
||||||
isAvailable: Boolean
|
isAvailable: Boolean
|
||||||
basePrice: Money
|
basePrice: Money
|
||||||
price: Money @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.10, has been replaced by `basePrice`")
|
|
||||||
minimalVariantPrice: Money
|
minimalVariantPrice: Money
|
||||||
taxType: TaxType
|
taxType: TaxType
|
||||||
attributes: [SelectedAttribute!]!
|
attributes: [SelectedAttribute!]!
|
||||||
|
@ -3125,8 +3112,8 @@ input ProductFilterInput {
|
||||||
}
|
}
|
||||||
|
|
||||||
type ProductImage implements Node {
|
type ProductImage implements Node {
|
||||||
sortOrder: Int
|
|
||||||
id: ID!
|
id: ID!
|
||||||
|
sortOrder: Int
|
||||||
alt: String!
|
alt: String!
|
||||||
url(size: Int): String!
|
url(size: Int): String!
|
||||||
}
|
}
|
||||||
|
@ -3210,7 +3197,6 @@ enum ProductOrderField {
|
||||||
}
|
}
|
||||||
|
|
||||||
type ProductPricingInfo {
|
type ProductPricingInfo {
|
||||||
available: Boolean @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.10, this has been moved to the parent type as 'isAvailable'.")
|
|
||||||
onSale: Boolean
|
onSale: Boolean
|
||||||
discount: TaxedMoney
|
discount: TaxedMoney
|
||||||
discountLocalCurrency: TaxedMoney
|
discountLocalCurrency: TaxedMoney
|
||||||
|
@ -3396,8 +3382,6 @@ type ProductVariant implements Node {
|
||||||
quantity: Int!
|
quantity: Int!
|
||||||
stockQuantity: Int!
|
stockQuantity: Int!
|
||||||
priceOverride: Money
|
priceOverride: Money
|
||||||
price: Money @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.10, has been replaced by 'pricing.priceUndiscounted'")
|
|
||||||
availability: VariantPricingInfo @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.10, has been renamed to `pricing`.")
|
|
||||||
pricing: VariantPricingInfo
|
pricing: VariantPricingInfo
|
||||||
isAvailable: Boolean
|
isAvailable: Boolean
|
||||||
attributes: [SelectedAttribute!]!
|
attributes: [SelectedAttribute!]!
|
||||||
|
@ -3537,34 +3521,33 @@ type Query {
|
||||||
shippingZones(before: String, after: String, first: Int, last: Int): ShippingZoneCountableConnection
|
shippingZones(before: String, after: String, first: Int, last: Int): ShippingZoneCountableConnection
|
||||||
digitalContent(id: ID!): DigitalContent
|
digitalContent(id: ID!): DigitalContent
|
||||||
digitalContents(before: String, after: String, first: Int, last: Int): DigitalContentCountableConnection
|
digitalContents(before: String, after: String, first: Int, last: Int): DigitalContentCountableConnection
|
||||||
attributes(query: String, inCategory: ID, inCollection: ID, filter: AttributeFilterInput, sortBy: AttributeSortingInput, before: String, after: String, first: Int, last: Int): AttributeCountableConnection
|
attributes(filter: AttributeFilterInput, sortBy: AttributeSortingInput, before: String, after: String, first: Int, last: Int): AttributeCountableConnection
|
||||||
attribute(id: ID!): Attribute
|
attribute(id: ID!): Attribute
|
||||||
categories(query: String, filter: CategoryFilterInput, sortBy: CategorySortingInput, level: Int, before: String, after: String, first: Int, last: Int): CategoryCountableConnection
|
categories(filter: CategoryFilterInput, sortBy: CategorySortingInput, level: Int, before: String, after: String, first: Int, last: Int): CategoryCountableConnection
|
||||||
category(id: ID!): Category
|
category(id: ID!): Category
|
||||||
collection(id: ID!): Collection
|
collection(id: ID!): Collection
|
||||||
collections(filter: CollectionFilterInput, sortBy: CollectionSortingInput, query: String, before: String, after: String, first: Int, last: Int): CollectionCountableConnection
|
collections(filter: CollectionFilterInput, sortBy: CollectionSortingInput, before: String, after: String, first: Int, last: Int): CollectionCountableConnection
|
||||||
product(id: ID!): Product
|
product(id: ID!): Product
|
||||||
products(filter: ProductFilterInput, attributes: [AttributeScalar], categories: [ID], collections: [ID], sortBy: ProductOrder, stockAvailability: StockAvailability, query: String, before: String, after: String, first: Int, last: Int): ProductCountableConnection
|
products(filter: ProductFilterInput, sortBy: ProductOrder, stockAvailability: StockAvailability, before: String, after: String, first: Int, last: Int): ProductCountableConnection
|
||||||
productType(id: ID!): ProductType
|
productType(id: ID!): ProductType
|
||||||
productTypes(filter: ProductTypeFilterInput, query: String, sortBy: ProductTypeSortingInput, before: String, after: String, first: Int, last: Int): ProductTypeCountableConnection
|
productTypes(filter: ProductTypeFilterInput, sortBy: ProductTypeSortingInput, before: String, after: String, first: Int, last: Int): ProductTypeCountableConnection
|
||||||
productVariant(id: ID!): ProductVariant
|
productVariant(id: ID!): ProductVariant
|
||||||
productVariants(ids: [ID], before: String, after: String, first: Int, last: Int): ProductVariantCountableConnection
|
productVariants(ids: [ID], before: String, after: String, first: Int, last: Int): ProductVariantCountableConnection
|
||||||
reportProductSales(period: ReportingPeriod!, before: String, after: String, first: Int, last: Int): ProductVariantCountableConnection
|
reportProductSales(period: ReportingPeriod!, before: String, after: String, first: Int, last: Int): ProductVariantCountableConnection
|
||||||
payment(id: ID!): Payment
|
payment(id: ID!): Payment
|
||||||
payments(before: String, after: String, first: Int, last: Int): PaymentCountableConnection
|
payments(before: String, after: String, first: Int, last: Int): PaymentCountableConnection
|
||||||
paymentClientToken(gateway: String!): String @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.10, use payment gateway config instead in availablePaymentGateways.")
|
|
||||||
page(id: ID, slug: String): Page
|
page(id: ID, slug: String): Page
|
||||||
pages(query: String, sortBy: PageSortingInput, filter: PageFilterInput, before: String, after: String, first: Int, last: Int): PageCountableConnection
|
pages(sortBy: PageSortingInput, filter: PageFilterInput, before: String, after: String, first: Int, last: Int): PageCountableConnection
|
||||||
homepageEvents(before: String, after: String, first: Int, last: Int): OrderEventCountableConnection
|
homepageEvents(before: String, after: String, first: Int, last: Int): OrderEventCountableConnection
|
||||||
order(id: ID!): Order
|
order(id: ID!): Order
|
||||||
orders(sortBy: OrderSortingInput, filter: OrderFilterInput, query: String, created: ReportingPeriod, status: OrderStatusFilter, before: String, after: String, first: Int, last: Int): OrderCountableConnection
|
orders(sortBy: OrderSortingInput, filter: OrderFilterInput, created: ReportingPeriod, status: OrderStatusFilter, before: String, after: String, first: Int, last: Int): OrderCountableConnection
|
||||||
draftOrders(sortBy: OrderSortingInput, filter: OrderDraftFilterInput, query: String, created: ReportingPeriod, before: String, after: String, first: Int, last: Int): OrderCountableConnection
|
draftOrders(sortBy: OrderSortingInput, filter: OrderDraftFilterInput, created: ReportingPeriod, before: String, after: String, first: Int, last: Int): OrderCountableConnection
|
||||||
ordersTotal(period: ReportingPeriod): TaxedMoney
|
ordersTotal(period: ReportingPeriod): TaxedMoney
|
||||||
orderByToken(token: UUID!): Order
|
orderByToken(token: UUID!): Order
|
||||||
menu(id: ID, name: String): Menu
|
menu(id: ID, name: String): Menu
|
||||||
menus(query: String, sortBy: MenuSortingInput, filter: MenuFilterInput, before: String, after: String, first: Int, last: Int): MenuCountableConnection
|
menus(sortBy: MenuSortingInput, filter: MenuFilterInput, before: String, after: String, first: Int, last: Int): MenuCountableConnection
|
||||||
menuItem(id: ID!): MenuItem
|
menuItem(id: ID!): MenuItem
|
||||||
menuItems(query: String, sortBy: MenuItemSortingInput, filter: MenuItemFilterInput, before: String, after: String, first: Int, last: Int): MenuItemCountableConnection
|
menuItems(sortBy: MenuItemSortingInput, filter: MenuItemFilterInput, before: String, after: String, first: Int, last: Int): MenuItemCountableConnection
|
||||||
giftCard(id: ID!): GiftCard
|
giftCard(id: ID!): GiftCard
|
||||||
giftCards(before: String, after: String, first: Int, last: Int): GiftCardCountableConnection
|
giftCards(before: String, after: String, first: Int, last: Int): GiftCardCountableConnection
|
||||||
plugin(id: ID!): Plugin
|
plugin(id: ID!): Plugin
|
||||||
|
@ -3579,9 +3562,10 @@ type Query {
|
||||||
checkoutLine(id: ID): CheckoutLine
|
checkoutLine(id: ID): CheckoutLine
|
||||||
checkoutLines(before: String, after: String, first: Int, last: Int): CheckoutLineCountableConnection
|
checkoutLines(before: String, after: String, first: Int, last: Int): CheckoutLineCountableConnection
|
||||||
addressValidationRules(countryCode: CountryCode!, countryArea: String, city: String, cityArea: String): AddressValidationData
|
addressValidationRules(countryCode: CountryCode!, countryArea: String, city: String, cityArea: String): AddressValidationData
|
||||||
customers(filter: CustomerFilterInput, sortBy: UserSortingInput, query: String, before: String, after: String, first: Int, last: Int): UserCountableConnection
|
address(id: ID!): Address
|
||||||
|
customers(filter: CustomerFilterInput, sortBy: UserSortingInput, before: String, after: String, first: Int, last: Int): UserCountableConnection
|
||||||
me: User
|
me: User
|
||||||
staffUsers(filter: StaffUserInput, sortBy: UserSortingInput, query: String, before: String, after: String, first: Int, last: Int): UserCountableConnection
|
staffUsers(filter: StaffUserInput, sortBy: UserSortingInput, before: String, after: String, first: Int, last: Int): UserCountableConnection
|
||||||
serviceAccounts(filter: ServiceAccountFilterInput, sortBy: ServiceAccountSortingInput, before: String, after: String, first: Int, last: Int): ServiceAccountCountableConnection
|
serviceAccounts(filter: ServiceAccountFilterInput, sortBy: ServiceAccountSortingInput, before: String, after: String, first: Int, last: Int): ServiceAccountCountableConnection
|
||||||
serviceAccount(id: ID!): ServiceAccount
|
serviceAccount(id: ID!): ServiceAccount
|
||||||
user(id: ID!): User
|
user(id: ID!): User
|
||||||
|
@ -3725,7 +3709,6 @@ type SaleUpdate {
|
||||||
|
|
||||||
type SelectedAttribute {
|
type SelectedAttribute {
|
||||||
attribute: Attribute!
|
attribute: Attribute!
|
||||||
value: AttributeValue @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.10, use values instead.")
|
|
||||||
values: [AttributeValue]!
|
values: [AttributeValue]!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4106,7 +4089,6 @@ input StaffCreateInput {
|
||||||
isActive: Boolean
|
isActive: Boolean
|
||||||
note: String
|
note: String
|
||||||
permissions: [PermissionEnum]
|
permissions: [PermissionEnum]
|
||||||
sendPasswordEmail: Boolean
|
|
||||||
redirectUrl: String
|
redirectUrl: String
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4341,7 +4323,6 @@ input UserCreateInput {
|
||||||
email: String
|
email: String
|
||||||
isActive: Boolean
|
isActive: Boolean
|
||||||
note: String
|
note: String
|
||||||
sendPasswordEmail: Boolean
|
|
||||||
redirectUrl: String
|
redirectUrl: String
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4390,7 +4371,6 @@ type VariantImageUnassign {
|
||||||
}
|
}
|
||||||
|
|
||||||
type VariantPricingInfo {
|
type VariantPricingInfo {
|
||||||
available: Boolean @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.10, this has been moved to the parent type as 'isAvailable'.")
|
|
||||||
onSale: Boolean
|
onSale: Boolean
|
||||||
discount: TaxedMoney
|
discount: TaxedMoney
|
||||||
discountLocalCurrency: TaxedMoney
|
discountLocalCurrency: TaxedMoney
|
||||||
|
@ -4424,7 +4404,6 @@ type Voucher implements Node {
|
||||||
products(before: String, after: String, first: Int, last: Int): ProductCountableConnection
|
products(before: String, after: String, first: Int, last: Int): ProductCountableConnection
|
||||||
countries: [CountryDisplay]
|
countries: [CountryDisplay]
|
||||||
translation(languageCode: LanguageCodeEnum!): VoucherTranslation
|
translation(languageCode: LanguageCodeEnum!): VoucherTranslation
|
||||||
minAmountSpent: Money @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.10, use the minSpent field instead.")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type VoucherAddCatalogues {
|
type VoucherAddCatalogues {
|
||||||
|
@ -4610,6 +4589,7 @@ enum WebhookEventTypeEnum {
|
||||||
ORDER_FULFILLED
|
ORDER_FULFILLED
|
||||||
CUSTOMER_CREATED
|
CUSTOMER_CREATED
|
||||||
PRODUCT_CREATED
|
PRODUCT_CREATED
|
||||||
|
CHECKOUT_QUANTITY_CHANGED
|
||||||
}
|
}
|
||||||
|
|
||||||
input WebhookFilterInput {
|
input WebhookFilterInput {
|
||||||
|
|
|
@ -54,8 +54,6 @@ const attributeList = gql`
|
||||||
${pageInfoFragment}
|
${pageInfoFragment}
|
||||||
query AttributeList(
|
query AttributeList(
|
||||||
$filter: AttributeFilterInput
|
$filter: AttributeFilterInput
|
||||||
$inCategory: ID
|
|
||||||
$inCollection: ID
|
|
||||||
$before: String
|
$before: String
|
||||||
$after: String
|
$after: String
|
||||||
$first: Int
|
$first: Int
|
||||||
|
@ -64,8 +62,6 @@ const attributeList = gql`
|
||||||
) {
|
) {
|
||||||
attributes(
|
attributes(
|
||||||
filter: $filter
|
filter: $filter
|
||||||
inCategory: $inCategory
|
|
||||||
inCollection: $inCollection
|
|
||||||
before: $before
|
before: $before
|
||||||
after: $after
|
after: $after
|
||||||
first: $first
|
first: $first
|
||||||
|
|
|
@ -51,8 +51,6 @@ export interface AttributeList {
|
||||||
|
|
||||||
export interface AttributeListVariables {
|
export interface AttributeListVariables {
|
||||||
filter?: AttributeFilterInput | null;
|
filter?: AttributeFilterInput | null;
|
||||||
inCategory?: string | null;
|
|
||||||
inCollection?: string | null;
|
|
||||||
before?: string | null;
|
before?: string | null;
|
||||||
after?: string | null;
|
after?: string | null;
|
||||||
first?: number | null;
|
first?: number | null;
|
||||||
|
|
|
@ -65,8 +65,7 @@ export const CustomerCreate: React.FC<{}> = () => {
|
||||||
email: formData.email,
|
email: formData.email,
|
||||||
firstName: formData.customerFirstName,
|
firstName: formData.customerFirstName,
|
||||||
lastName: formData.customerLastName,
|
lastName: formData.customerLastName,
|
||||||
note: formData.note,
|
note: formData.note
|
||||||
sendPasswordEmail: false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -32,8 +32,8 @@ export interface FormData {
|
||||||
endTime: string;
|
endTime: string;
|
||||||
hasEndDate: boolean;
|
hasEndDate: boolean;
|
||||||
hasUsageLimit: boolean;
|
hasUsageLimit: boolean;
|
||||||
minAmountSpent: string;
|
|
||||||
minCheckoutItemsQuantity: string;
|
minCheckoutItemsQuantity: string;
|
||||||
|
minSpent: string;
|
||||||
requirementsPicker: RequirementsPicker;
|
requirementsPicker: RequirementsPicker;
|
||||||
startDate: string;
|
startDate: string;
|
||||||
startTime: string;
|
startTime: string;
|
||||||
|
@ -70,8 +70,8 @@ const VoucherCreatePage: React.FC<VoucherCreatePageProps> = ({
|
||||||
endTime: "",
|
endTime: "",
|
||||||
hasEndDate: false,
|
hasEndDate: false,
|
||||||
hasUsageLimit: false,
|
hasUsageLimit: false,
|
||||||
minAmountSpent: "0",
|
|
||||||
minCheckoutItemsQuantity: "0",
|
minCheckoutItemsQuantity: "0",
|
||||||
|
minSpent: "0",
|
||||||
requirementsPicker: RequirementsPicker.NONE,
|
requirementsPicker: RequirementsPicker.NONE,
|
||||||
startDate: "",
|
startDate: "",
|
||||||
startTime: "",
|
startTime: "",
|
||||||
|
|
|
@ -55,7 +55,7 @@ export interface FormData {
|
||||||
endTime: string;
|
endTime: string;
|
||||||
hasEndDate: boolean;
|
hasEndDate: boolean;
|
||||||
hasUsageLimit: boolean;
|
hasUsageLimit: boolean;
|
||||||
minAmountSpent: string;
|
minSpent: string;
|
||||||
minCheckoutItemsQuantity: string;
|
minCheckoutItemsQuantity: string;
|
||||||
requirementsPicker: RequirementsPicker;
|
requirementsPicker: RequirementsPicker;
|
||||||
startDate: string;
|
startDate: string;
|
||||||
|
@ -132,7 +132,7 @@ const VoucherDetailsPage: React.FC<VoucherDetailsPageProps> = ({
|
||||||
const intl = useIntl();
|
const intl = useIntl();
|
||||||
|
|
||||||
let requirementsPickerInitValue;
|
let requirementsPickerInitValue;
|
||||||
if (maybe(() => voucher.minAmountSpent.amount) > 0) {
|
if (maybe(() => voucher.minSpent.amount) > 0) {
|
||||||
requirementsPickerInitValue = RequirementsPicker.ORDER;
|
requirementsPickerInitValue = RequirementsPicker.ORDER;
|
||||||
} else if (maybe(() => voucher.minCheckoutItemsQuantity) > 0) {
|
} else if (maybe(() => voucher.minCheckoutItemsQuantity) > 0) {
|
||||||
requirementsPickerInitValue = RequirementsPicker.ITEM;
|
requirementsPickerInitValue = RequirementsPicker.ITEM;
|
||||||
|
@ -152,11 +152,11 @@ const VoucherDetailsPage: React.FC<VoucherDetailsPageProps> = ({
|
||||||
endTime: splitDateTime(maybe(() => voucher.endDate, "")).time,
|
endTime: splitDateTime(maybe(() => voucher.endDate, "")).time,
|
||||||
hasEndDate: maybe(() => !!voucher.endDate),
|
hasEndDate: maybe(() => !!voucher.endDate),
|
||||||
hasUsageLimit: maybe(() => !!voucher.usageLimit),
|
hasUsageLimit: maybe(() => !!voucher.usageLimit),
|
||||||
minAmountSpent: maybe(() => voucher.minAmountSpent.amount.toString(), "0"),
|
|
||||||
minCheckoutItemsQuantity: maybe(
|
minCheckoutItemsQuantity: maybe(
|
||||||
() => voucher.minCheckoutItemsQuantity.toString(),
|
() => voucher.minCheckoutItemsQuantity.toString(),
|
||||||
"0"
|
"0"
|
||||||
),
|
),
|
||||||
|
minSpent: maybe(() => voucher.minSpent.amount.toString(), "0"),
|
||||||
requirementsPicker: requirementsPickerInitValue,
|
requirementsPicker: requirementsPickerInitValue,
|
||||||
startDate: splitDateTime(maybe(() => voucher.startDate, "")).date,
|
startDate: splitDateTime(maybe(() => voucher.startDate, "")).date,
|
||||||
startTime: splitDateTime(maybe(() => voucher.startDate, "")).time,
|
startTime: splitDateTime(maybe(() => voucher.startDate, "")).time,
|
||||||
|
|
|
@ -233,9 +233,9 @@ const VoucherList: React.FC<VoucherListProps> = props => {
|
||||||
{maybe<React.ReactNode>(() => voucher.code, <Skeleton />)}
|
{maybe<React.ReactNode>(() => voucher.code, <Skeleton />)}
|
||||||
</TableCell>
|
</TableCell>
|
||||||
<TableCell className={classes.colMinSpent}>
|
<TableCell className={classes.colMinSpent}>
|
||||||
{voucher && voucher.minAmountSpent ? (
|
{voucher && voucher.minSpent ? (
|
||||||
<Money money={voucher.minAmountSpent} />
|
<Money money={voucher.minSpent} />
|
||||||
) : voucher && voucher.minAmountSpent === null ? (
|
) : voucher && voucher.minSpent === null ? (
|
||||||
"-"
|
"-"
|
||||||
) : (
|
) : (
|
||||||
<Skeleton />
|
<Skeleton />
|
||||||
|
|
|
@ -15,7 +15,7 @@ interface VoucherRequirementsProps {
|
||||||
data: FormData;
|
data: FormData;
|
||||||
defaultCurrency: string;
|
defaultCurrency: string;
|
||||||
disabled: boolean;
|
disabled: boolean;
|
||||||
errors: FormErrors<"minAmountSpent" | "minCheckoutItemsQuantity">;
|
errors: FormErrors<"minSpent" | "minCheckoutItemsQuantity">;
|
||||||
onChange: (event: React.ChangeEvent<any>) => void;
|
onChange: (event: React.ChangeEvent<any>) => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -76,11 +76,11 @@ const VoucherRequirements = ({
|
||||||
{data.requirementsPicker === RequirementsPicker.ORDER ? (
|
{data.requirementsPicker === RequirementsPicker.ORDER ? (
|
||||||
<TextField
|
<TextField
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
error={!!errors.minAmountSpent}
|
error={!!errors.minSpent}
|
||||||
helperText={errors.minAmountSpent}
|
helperText={errors.minSpent}
|
||||||
label={minimalOrderValueText}
|
label={minimalOrderValueText}
|
||||||
name={"minAmountSpent" as keyof FormData}
|
name={"minSpent" as keyof FormData}
|
||||||
value={data.minAmountSpent}
|
value={data.minSpent}
|
||||||
onChange={onChange}
|
onChange={onChange}
|
||||||
fullWidth
|
fullWidth
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -121,12 +121,7 @@ const VoucherSummary: React.FC<VoucherSummaryProps> = ({
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography>
|
<Typography>
|
||||||
{maybe<React.ReactNode>(
|
{maybe<React.ReactNode>(
|
||||||
() =>
|
() => (voucher.minSpent ? <Money money={voucher.minSpent} /> : "-"),
|
||||||
voucher.minAmountSpent ? (
|
|
||||||
<Money money={voucher.minAmountSpent} />
|
|
||||||
) : (
|
|
||||||
"-"
|
|
||||||
),
|
|
||||||
<Skeleton />
|
<Skeleton />
|
||||||
)}
|
)}
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
|
@ -72,8 +72,8 @@ export const voucherList: VoucherList_vouchers_edges_node[] = [
|
||||||
discountValueType: "PERCENTAGE" as DiscountValueTypeEnum,
|
discountValueType: "PERCENTAGE" as DiscountValueTypeEnum,
|
||||||
endDate: null,
|
endDate: null,
|
||||||
id: "Vm91Y2hlcjox",
|
id: "Vm91Y2hlcjox",
|
||||||
minAmountSpent: null,
|
|
||||||
minCheckoutItemsQuantity: null,
|
minCheckoutItemsQuantity: null,
|
||||||
|
minSpent: null,
|
||||||
startDate: "2019-01-03",
|
startDate: "2019-01-03",
|
||||||
usageLimit: null
|
usageLimit: null
|
||||||
},
|
},
|
||||||
|
@ -85,12 +85,12 @@ export const voucherList: VoucherList_vouchers_edges_node[] = [
|
||||||
discountValueType: "FIXED" as DiscountValueTypeEnum,
|
discountValueType: "FIXED" as DiscountValueTypeEnum,
|
||||||
endDate: null,
|
endDate: null,
|
||||||
id: "Vm91Y2hlcjoy",
|
id: "Vm91Y2hlcjoy",
|
||||||
minAmountSpent: {
|
minCheckoutItemsQuantity: 0,
|
||||||
|
minSpent: {
|
||||||
__typename: "Money" as "Money",
|
__typename: "Money" as "Money",
|
||||||
amount: 200,
|
amount: 200,
|
||||||
currency: "USD"
|
currency: "USD"
|
||||||
},
|
},
|
||||||
minCheckoutItemsQuantity: 0,
|
|
||||||
startDate: "2019-01-03",
|
startDate: "2019-01-03",
|
||||||
usageLimit: 150
|
usageLimit: 150
|
||||||
}
|
}
|
||||||
|
@ -281,12 +281,12 @@ export const voucherDetails: VoucherDetails_voucher = {
|
||||||
discountValueType: DiscountValueTypeEnum.FIXED,
|
discountValueType: DiscountValueTypeEnum.FIXED,
|
||||||
endDate: null,
|
endDate: null,
|
||||||
id: "Vm91Y2hlcjoy",
|
id: "Vm91Y2hlcjoy",
|
||||||
minAmountSpent: {
|
minCheckoutItemsQuantity: 0,
|
||||||
|
minSpent: {
|
||||||
__typename: "Money",
|
__typename: "Money",
|
||||||
amount: 200,
|
amount: 200,
|
||||||
currency: "USD"
|
currency: "USD"
|
||||||
},
|
},
|
||||||
minCheckoutItemsQuantity: 0,
|
|
||||||
products: {
|
products: {
|
||||||
__typename: "ProductCountableConnection",
|
__typename: "ProductCountableConnection",
|
||||||
edges: [],
|
edges: [],
|
||||||
|
|
|
@ -92,7 +92,7 @@ export const voucherFragment = gql`
|
||||||
code
|
code
|
||||||
country
|
country
|
||||||
}
|
}
|
||||||
minAmountSpent {
|
minSpent {
|
||||||
currency
|
currency
|
||||||
amount
|
amount
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ export interface VoucherCataloguesAdd_voucherCataloguesAdd_voucher_countries {
|
||||||
country: string;
|
country: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface VoucherCataloguesAdd_voucherCataloguesAdd_voucher_minAmountSpent {
|
export interface VoucherCataloguesAdd_voucherCataloguesAdd_voucher_minSpent {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
currency: string;
|
currency: string;
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -140,7 +140,7 @@ export interface VoucherCataloguesAdd_voucherCataloguesAdd_voucher {
|
||||||
discountValueType: DiscountValueTypeEnum;
|
discountValueType: DiscountValueTypeEnum;
|
||||||
discountValue: number;
|
discountValue: number;
|
||||||
countries: (VoucherCataloguesAdd_voucherCataloguesAdd_voucher_countries | null)[] | null;
|
countries: (VoucherCataloguesAdd_voucherCataloguesAdd_voucher_countries | null)[] | null;
|
||||||
minAmountSpent: VoucherCataloguesAdd_voucherCataloguesAdd_voucher_minAmountSpent | null;
|
minSpent: VoucherCataloguesAdd_voucherCataloguesAdd_voucher_minSpent | null;
|
||||||
minCheckoutItemsQuantity: number | null;
|
minCheckoutItemsQuantity: number | null;
|
||||||
type: VoucherTypeEnum;
|
type: VoucherTypeEnum;
|
||||||
used: number;
|
used: number;
|
||||||
|
|
|
@ -20,7 +20,7 @@ export interface VoucherCataloguesRemove_voucherCataloguesRemove_voucher_countri
|
||||||
country: string;
|
country: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface VoucherCataloguesRemove_voucherCataloguesRemove_voucher_minAmountSpent {
|
export interface VoucherCataloguesRemove_voucherCataloguesRemove_voucher_minSpent {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
currency: string;
|
currency: string;
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -140,7 +140,7 @@ export interface VoucherCataloguesRemove_voucherCataloguesRemove_voucher {
|
||||||
discountValueType: DiscountValueTypeEnum;
|
discountValueType: DiscountValueTypeEnum;
|
||||||
discountValue: number;
|
discountValue: number;
|
||||||
countries: (VoucherCataloguesRemove_voucherCataloguesRemove_voucher_countries | null)[] | null;
|
countries: (VoucherCataloguesRemove_voucherCataloguesRemove_voucher_countries | null)[] | null;
|
||||||
minAmountSpent: VoucherCataloguesRemove_voucherCataloguesRemove_voucher_minAmountSpent | null;
|
minSpent: VoucherCataloguesRemove_voucherCataloguesRemove_voucher_minSpent | null;
|
||||||
minCheckoutItemsQuantity: number | null;
|
minCheckoutItemsQuantity: number | null;
|
||||||
type: VoucherTypeEnum;
|
type: VoucherTypeEnum;
|
||||||
used: number;
|
used: number;
|
||||||
|
|
|
@ -20,7 +20,7 @@ export interface VoucherCreate_voucherCreate_voucher_countries {
|
||||||
country: string;
|
country: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface VoucherCreate_voucherCreate_voucher_minAmountSpent {
|
export interface VoucherCreate_voucherCreate_voucher_minSpent {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
currency: string;
|
currency: string;
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -36,7 +36,7 @@ export interface VoucherCreate_voucherCreate_voucher {
|
||||||
discountValueType: DiscountValueTypeEnum;
|
discountValueType: DiscountValueTypeEnum;
|
||||||
discountValue: number;
|
discountValue: number;
|
||||||
countries: (VoucherCreate_voucherCreate_voucher_countries | null)[] | null;
|
countries: (VoucherCreate_voucherCreate_voucher_countries | null)[] | null;
|
||||||
minAmountSpent: VoucherCreate_voucherCreate_voucher_minAmountSpent | null;
|
minSpent: VoucherCreate_voucherCreate_voucher_minSpent | null;
|
||||||
minCheckoutItemsQuantity: number | null;
|
minCheckoutItemsQuantity: number | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ export interface VoucherDetails_voucher_countries {
|
||||||
country: string;
|
country: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface VoucherDetails_voucher_minAmountSpent {
|
export interface VoucherDetails_voucher_minSpent {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
currency: string;
|
currency: string;
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -134,7 +134,7 @@ export interface VoucherDetails_voucher {
|
||||||
discountValueType: DiscountValueTypeEnum;
|
discountValueType: DiscountValueTypeEnum;
|
||||||
discountValue: number;
|
discountValue: number;
|
||||||
countries: (VoucherDetails_voucher_countries | null)[] | null;
|
countries: (VoucherDetails_voucher_countries | null)[] | null;
|
||||||
minAmountSpent: VoucherDetails_voucher_minAmountSpent | null;
|
minSpent: VoucherDetails_voucher_minSpent | null;
|
||||||
minCheckoutItemsQuantity: number | null;
|
minCheckoutItemsQuantity: number | null;
|
||||||
type: VoucherTypeEnum;
|
type: VoucherTypeEnum;
|
||||||
used: number;
|
used: number;
|
||||||
|
|
|
@ -14,7 +14,7 @@ export interface VoucherDetailsFragment_countries {
|
||||||
country: string;
|
country: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface VoucherDetailsFragment_minAmountSpent {
|
export interface VoucherDetailsFragment_minSpent {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
currency: string;
|
currency: string;
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -134,7 +134,7 @@ export interface VoucherDetailsFragment {
|
||||||
discountValueType: DiscountValueTypeEnum;
|
discountValueType: DiscountValueTypeEnum;
|
||||||
discountValue: number;
|
discountValue: number;
|
||||||
countries: (VoucherDetailsFragment_countries | null)[] | null;
|
countries: (VoucherDetailsFragment_countries | null)[] | null;
|
||||||
minAmountSpent: VoucherDetailsFragment_minAmountSpent | null;
|
minSpent: VoucherDetailsFragment_minSpent | null;
|
||||||
minCheckoutItemsQuantity: number | null;
|
minCheckoutItemsQuantity: number | null;
|
||||||
type: VoucherTypeEnum;
|
type: VoucherTypeEnum;
|
||||||
used: number;
|
used: number;
|
||||||
|
|
|
@ -14,7 +14,7 @@ export interface VoucherFragment_countries {
|
||||||
country: string;
|
country: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface VoucherFragment_minAmountSpent {
|
export interface VoucherFragment_minSpent {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
currency: string;
|
currency: string;
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -30,6 +30,6 @@ export interface VoucherFragment {
|
||||||
discountValueType: DiscountValueTypeEnum;
|
discountValueType: DiscountValueTypeEnum;
|
||||||
discountValue: number;
|
discountValue: number;
|
||||||
countries: (VoucherFragment_countries | null)[] | null;
|
countries: (VoucherFragment_countries | null)[] | null;
|
||||||
minAmountSpent: VoucherFragment_minAmountSpent | null;
|
minSpent: VoucherFragment_minSpent | null;
|
||||||
minCheckoutItemsQuantity: number | null;
|
minCheckoutItemsQuantity: number | null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,7 @@ export interface VoucherList_vouchers_edges_node_countries {
|
||||||
country: string;
|
country: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface VoucherList_vouchers_edges_node_minAmountSpent {
|
export interface VoucherList_vouchers_edges_node_minSpent {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
currency: string;
|
currency: string;
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -30,7 +30,7 @@ export interface VoucherList_vouchers_edges_node {
|
||||||
discountValueType: DiscountValueTypeEnum;
|
discountValueType: DiscountValueTypeEnum;
|
||||||
discountValue: number;
|
discountValue: number;
|
||||||
countries: (VoucherList_vouchers_edges_node_countries | null)[] | null;
|
countries: (VoucherList_vouchers_edges_node_countries | null)[] | null;
|
||||||
minAmountSpent: VoucherList_vouchers_edges_node_minAmountSpent | null;
|
minSpent: VoucherList_vouchers_edges_node_minSpent | null;
|
||||||
minCheckoutItemsQuantity: number | null;
|
minCheckoutItemsQuantity: number | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ export interface VoucherUpdate_voucherUpdate_voucher_countries {
|
||||||
country: string;
|
country: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface VoucherUpdate_voucherUpdate_voucher_minAmountSpent {
|
export interface VoucherUpdate_voucherUpdate_voucher_minSpent {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
currency: string;
|
currency: string;
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -36,7 +36,7 @@ export interface VoucherUpdate_voucherUpdate_voucher {
|
||||||
discountValueType: DiscountValueTypeEnum;
|
discountValueType: DiscountValueTypeEnum;
|
||||||
discountValue: number;
|
discountValue: number;
|
||||||
countries: (VoucherUpdate_voucherUpdate_voucher_countries | null)[] | null;
|
countries: (VoucherUpdate_voucherUpdate_voucher_countries | null)[] | null;
|
||||||
minAmountSpent: VoucherUpdate_voucherUpdate_voucher_minAmountSpent | null;
|
minSpent: VoucherUpdate_voucherUpdate_voucher_minSpent | null;
|
||||||
minCheckoutItemsQuantity: number | null;
|
minCheckoutItemsQuantity: number | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -65,7 +65,7 @@ export const VoucherDetails: React.FC = () => {
|
||||||
minAmountSpent:
|
minAmountSpent:
|
||||||
formData.requirementsPicker !== RequirementsPicker.ORDER
|
formData.requirementsPicker !== RequirementsPicker.ORDER
|
||||||
? 0
|
? 0
|
||||||
: parseFloat(formData.minAmountSpent),
|
: parseFloat(formData.minSpent),
|
||||||
minCheckoutItemsQuantity:
|
minCheckoutItemsQuantity:
|
||||||
formData.requirementsPicker !== RequirementsPicker.ITEM
|
formData.requirementsPicker !== RequirementsPicker.ITEM
|
||||||
? 0
|
? 0
|
||||||
|
|
|
@ -318,7 +318,7 @@ export const VoucherDetails: React.FC<VoucherDetailsProps> = ({
|
||||||
formData.requirementsPicker !==
|
formData.requirementsPicker !==
|
||||||
RequirementsPicker.ORDER
|
RequirementsPicker.ORDER
|
||||||
? 0
|
? 0
|
||||||
: parseFloat(formData.minAmountSpent),
|
: parseFloat(formData.minSpent),
|
||||||
minCheckoutItemsQuantity:
|
minCheckoutItemsQuantity:
|
||||||
formData.requirementsPicker !==
|
formData.requirementsPicker !==
|
||||||
RequirementsPicker.ITEM
|
RequirementsPicker.ITEM
|
||||||
|
|
|
@ -93,7 +93,7 @@ export const HomeProductList: React.FC<HomeProductListProps> = props => {
|
||||||
<Typography color={"textSecondary"}>
|
<Typography color={"textSecondary"}>
|
||||||
{maybe(() =>
|
{maybe(() =>
|
||||||
variant.attributes
|
variant.attributes
|
||||||
.map(attribute => attribute.value.name)
|
.map(attribute => attribute.values[0].name)
|
||||||
.join(" / ")
|
.join(" / ")
|
||||||
)}
|
)}
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
|
@ -289,12 +289,14 @@ export const shop: (placeholderImage: string) => Home = (
|
||||||
attributes: [
|
attributes: [
|
||||||
{
|
{
|
||||||
__typename: "SelectedAttribute",
|
__typename: "SelectedAttribute",
|
||||||
value: {
|
values: [
|
||||||
__typename: "AttributeValue",
|
{
|
||||||
id: "QXR0cmlidXRlVmFsdWU6OTI=",
|
__typename: "AttributeValue",
|
||||||
name: "XS",
|
id: "QXR0cmlidXRlVmFsdWU6OTI=",
|
||||||
sortOrder: 0
|
name: "XS",
|
||||||
}
|
sortOrder: 0
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
id: "UHJvZHVjdFZhcmlhbnQ6NDM=",
|
id: "UHJvZHVjdFZhcmlhbnQ6NDM=",
|
||||||
|
|
|
@ -34,7 +34,7 @@ const home = gql`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
attributes {
|
attributes {
|
||||||
value {
|
values {
|
||||||
id
|
id
|
||||||
name
|
name
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,7 +50,7 @@ export interface Home_productTopToday_edges_node_revenue {
|
||||||
gross: Home_productTopToday_edges_node_revenue_gross;
|
gross: Home_productTopToday_edges_node_revenue_gross;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Home_productTopToday_edges_node_attributes_value {
|
export interface Home_productTopToday_edges_node_attributes_values {
|
||||||
__typename: "AttributeValue";
|
__typename: "AttributeValue";
|
||||||
id: string;
|
id: string;
|
||||||
name: string | null;
|
name: string | null;
|
||||||
|
@ -58,7 +58,7 @@ export interface Home_productTopToday_edges_node_attributes_value {
|
||||||
|
|
||||||
export interface Home_productTopToday_edges_node_attributes {
|
export interface Home_productTopToday_edges_node_attributes {
|
||||||
__typename: "SelectedAttribute";
|
__typename: "SelectedAttribute";
|
||||||
value: Home_productTopToday_edges_node_attributes_value | null;
|
values: (Home_productTopToday_edges_node_attributes_values | null)[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Home_productTopToday_edges_node_product_thumbnail {
|
export interface Home_productTopToday_edges_node_product_thumbnail {
|
||||||
|
|
|
@ -48,7 +48,6 @@ export const menu: MenuDetails_menu = {
|
||||||
level: 0,
|
level: 0,
|
||||||
name: "Jewelry",
|
name: "Jewelry",
|
||||||
page: null,
|
page: null,
|
||||||
sortOrder: 0,
|
|
||||||
url: null
|
url: null
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -64,7 +63,6 @@ export const menu: MenuDetails_menu = {
|
||||||
level: 0,
|
level: 0,
|
||||||
name: "Glasses",
|
name: "Glasses",
|
||||||
page: null,
|
page: null,
|
||||||
sortOrder: 1,
|
|
||||||
url: null
|
url: null
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -73,7 +71,6 @@ export const menu: MenuDetails_menu = {
|
||||||
level: 0,
|
level: 0,
|
||||||
name: "Accessories",
|
name: "Accessories",
|
||||||
page: null,
|
page: null,
|
||||||
sortOrder: 0,
|
|
||||||
url: null
|
url: null
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -89,7 +86,6 @@ export const menu: MenuDetails_menu = {
|
||||||
level: 0,
|
level: 0,
|
||||||
name: "Groceries",
|
name: "Groceries",
|
||||||
page: null,
|
page: null,
|
||||||
sortOrder: 1,
|
|
||||||
url: null
|
url: null
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -105,7 +101,6 @@ export const menu: MenuDetails_menu = {
|
||||||
level: 0,
|
level: 0,
|
||||||
name: "Apparel",
|
name: "Apparel",
|
||||||
page: null,
|
page: null,
|
||||||
sortOrder: 2,
|
|
||||||
url: null
|
url: null
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
|
@ -31,7 +31,6 @@ export const menuItemFragment = gql`
|
||||||
id
|
id
|
||||||
title
|
title
|
||||||
}
|
}
|
||||||
sortOrder
|
|
||||||
url
|
url
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
|
@ -140,7 +140,6 @@ export interface MenuDetails_menu_items_children_children_children_children_chil
|
||||||
level: number;
|
level: number;
|
||||||
name: string;
|
name: string;
|
||||||
page: MenuDetails_menu_items_children_children_children_children_children_children_page | null;
|
page: MenuDetails_menu_items_children_children_children_children_children_children_page | null;
|
||||||
sortOrder: number | null;
|
|
||||||
url: string | null;
|
url: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -152,7 +151,6 @@ export interface MenuDetails_menu_items_children_children_children_children_chil
|
||||||
level: number;
|
level: number;
|
||||||
name: string;
|
name: string;
|
||||||
page: MenuDetails_menu_items_children_children_children_children_children_page | null;
|
page: MenuDetails_menu_items_children_children_children_children_children_page | null;
|
||||||
sortOrder: number | null;
|
|
||||||
url: string | null;
|
url: string | null;
|
||||||
children: (MenuDetails_menu_items_children_children_children_children_children_children | null)[] | null;
|
children: (MenuDetails_menu_items_children_children_children_children_children_children | null)[] | null;
|
||||||
}
|
}
|
||||||
|
@ -165,7 +163,6 @@ export interface MenuDetails_menu_items_children_children_children_children {
|
||||||
level: number;
|
level: number;
|
||||||
name: string;
|
name: string;
|
||||||
page: MenuDetails_menu_items_children_children_children_children_page | null;
|
page: MenuDetails_menu_items_children_children_children_children_page | null;
|
||||||
sortOrder: number | null;
|
|
||||||
url: string | null;
|
url: string | null;
|
||||||
children: (MenuDetails_menu_items_children_children_children_children_children | null)[] | null;
|
children: (MenuDetails_menu_items_children_children_children_children_children | null)[] | null;
|
||||||
}
|
}
|
||||||
|
@ -178,7 +175,6 @@ export interface MenuDetails_menu_items_children_children_children {
|
||||||
level: number;
|
level: number;
|
||||||
name: string;
|
name: string;
|
||||||
page: MenuDetails_menu_items_children_children_children_page | null;
|
page: MenuDetails_menu_items_children_children_children_page | null;
|
||||||
sortOrder: number | null;
|
|
||||||
url: string | null;
|
url: string | null;
|
||||||
children: (MenuDetails_menu_items_children_children_children_children | null)[] | null;
|
children: (MenuDetails_menu_items_children_children_children_children | null)[] | null;
|
||||||
}
|
}
|
||||||
|
@ -191,7 +187,6 @@ export interface MenuDetails_menu_items_children_children {
|
||||||
level: number;
|
level: number;
|
||||||
name: string;
|
name: string;
|
||||||
page: MenuDetails_menu_items_children_children_page | null;
|
page: MenuDetails_menu_items_children_children_page | null;
|
||||||
sortOrder: number | null;
|
|
||||||
url: string | null;
|
url: string | null;
|
||||||
children: (MenuDetails_menu_items_children_children_children | null)[] | null;
|
children: (MenuDetails_menu_items_children_children_children | null)[] | null;
|
||||||
}
|
}
|
||||||
|
@ -204,7 +199,6 @@ export interface MenuDetails_menu_items_children {
|
||||||
level: number;
|
level: number;
|
||||||
name: string;
|
name: string;
|
||||||
page: MenuDetails_menu_items_children_page | null;
|
page: MenuDetails_menu_items_children_page | null;
|
||||||
sortOrder: number | null;
|
|
||||||
url: string | null;
|
url: string | null;
|
||||||
children: (MenuDetails_menu_items_children_children | null)[] | null;
|
children: (MenuDetails_menu_items_children_children | null)[] | null;
|
||||||
}
|
}
|
||||||
|
@ -217,7 +211,6 @@ export interface MenuDetails_menu_items {
|
||||||
level: number;
|
level: number;
|
||||||
name: string;
|
name: string;
|
||||||
page: MenuDetails_menu_items_page | null;
|
page: MenuDetails_menu_items_page | null;
|
||||||
sortOrder: number | null;
|
|
||||||
url: string | null;
|
url: string | null;
|
||||||
children: (MenuDetails_menu_items_children | null)[] | null;
|
children: (MenuDetails_menu_items_children | null)[] | null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -140,7 +140,6 @@ export interface MenuDetailsFragment_items_children_children_children_children_c
|
||||||
level: number;
|
level: number;
|
||||||
name: string;
|
name: string;
|
||||||
page: MenuDetailsFragment_items_children_children_children_children_children_children_page | null;
|
page: MenuDetailsFragment_items_children_children_children_children_children_children_page | null;
|
||||||
sortOrder: number | null;
|
|
||||||
url: string | null;
|
url: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -152,7 +151,6 @@ export interface MenuDetailsFragment_items_children_children_children_children_c
|
||||||
level: number;
|
level: number;
|
||||||
name: string;
|
name: string;
|
||||||
page: MenuDetailsFragment_items_children_children_children_children_children_page | null;
|
page: MenuDetailsFragment_items_children_children_children_children_children_page | null;
|
||||||
sortOrder: number | null;
|
|
||||||
url: string | null;
|
url: string | null;
|
||||||
children: (MenuDetailsFragment_items_children_children_children_children_children_children | null)[] | null;
|
children: (MenuDetailsFragment_items_children_children_children_children_children_children | null)[] | null;
|
||||||
}
|
}
|
||||||
|
@ -165,7 +163,6 @@ export interface MenuDetailsFragment_items_children_children_children_children {
|
||||||
level: number;
|
level: number;
|
||||||
name: string;
|
name: string;
|
||||||
page: MenuDetailsFragment_items_children_children_children_children_page | null;
|
page: MenuDetailsFragment_items_children_children_children_children_page | null;
|
||||||
sortOrder: number | null;
|
|
||||||
url: string | null;
|
url: string | null;
|
||||||
children: (MenuDetailsFragment_items_children_children_children_children_children | null)[] | null;
|
children: (MenuDetailsFragment_items_children_children_children_children_children | null)[] | null;
|
||||||
}
|
}
|
||||||
|
@ -178,7 +175,6 @@ export interface MenuDetailsFragment_items_children_children_children {
|
||||||
level: number;
|
level: number;
|
||||||
name: string;
|
name: string;
|
||||||
page: MenuDetailsFragment_items_children_children_children_page | null;
|
page: MenuDetailsFragment_items_children_children_children_page | null;
|
||||||
sortOrder: number | null;
|
|
||||||
url: string | null;
|
url: string | null;
|
||||||
children: (MenuDetailsFragment_items_children_children_children_children | null)[] | null;
|
children: (MenuDetailsFragment_items_children_children_children_children | null)[] | null;
|
||||||
}
|
}
|
||||||
|
@ -191,7 +187,6 @@ export interface MenuDetailsFragment_items_children_children {
|
||||||
level: number;
|
level: number;
|
||||||
name: string;
|
name: string;
|
||||||
page: MenuDetailsFragment_items_children_children_page | null;
|
page: MenuDetailsFragment_items_children_children_page | null;
|
||||||
sortOrder: number | null;
|
|
||||||
url: string | null;
|
url: string | null;
|
||||||
children: (MenuDetailsFragment_items_children_children_children | null)[] | null;
|
children: (MenuDetailsFragment_items_children_children_children | null)[] | null;
|
||||||
}
|
}
|
||||||
|
@ -204,7 +199,6 @@ export interface MenuDetailsFragment_items_children {
|
||||||
level: number;
|
level: number;
|
||||||
name: string;
|
name: string;
|
||||||
page: MenuDetailsFragment_items_children_page | null;
|
page: MenuDetailsFragment_items_children_page | null;
|
||||||
sortOrder: number | null;
|
|
||||||
url: string | null;
|
url: string | null;
|
||||||
children: (MenuDetailsFragment_items_children_children | null)[] | null;
|
children: (MenuDetailsFragment_items_children_children | null)[] | null;
|
||||||
}
|
}
|
||||||
|
@ -217,7 +211,6 @@ export interface MenuDetailsFragment_items {
|
||||||
level: number;
|
level: number;
|
||||||
name: string;
|
name: string;
|
||||||
page: MenuDetailsFragment_items_page | null;
|
page: MenuDetailsFragment_items_page | null;
|
||||||
sortOrder: number | null;
|
|
||||||
url: string | null;
|
url: string | null;
|
||||||
children: (MenuDetailsFragment_items_children | null)[] | null;
|
children: (MenuDetailsFragment_items_children | null)[] | null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -148,7 +148,6 @@ export interface MenuItemCreate_menuItemCreate_menuItem_menu_items_children_chil
|
||||||
level: number;
|
level: number;
|
||||||
name: string;
|
name: string;
|
||||||
page: MenuItemCreate_menuItemCreate_menuItem_menu_items_children_children_children_children_children_children_page | null;
|
page: MenuItemCreate_menuItemCreate_menuItem_menu_items_children_children_children_children_children_children_page | null;
|
||||||
sortOrder: number | null;
|
|
||||||
url: string | null;
|
url: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -160,7 +159,6 @@ export interface MenuItemCreate_menuItemCreate_menuItem_menu_items_children_chil
|
||||||
level: number;
|
level: number;
|
||||||
name: string;
|
name: string;
|
||||||
page: MenuItemCreate_menuItemCreate_menuItem_menu_items_children_children_children_children_children_page | null;
|
page: MenuItemCreate_menuItemCreate_menuItem_menu_items_children_children_children_children_children_page | null;
|
||||||
sortOrder: number | null;
|
|
||||||
url: string | null;
|
url: string | null;
|
||||||
children: (MenuItemCreate_menuItemCreate_menuItem_menu_items_children_children_children_children_children_children | null)[] | null;
|
children: (MenuItemCreate_menuItemCreate_menuItem_menu_items_children_children_children_children_children_children | null)[] | null;
|
||||||
}
|
}
|
||||||
|
@ -173,7 +171,6 @@ export interface MenuItemCreate_menuItemCreate_menuItem_menu_items_children_chil
|
||||||
level: number;
|
level: number;
|
||||||
name: string;
|
name: string;
|
||||||
page: MenuItemCreate_menuItemCreate_menuItem_menu_items_children_children_children_children_page | null;
|
page: MenuItemCreate_menuItemCreate_menuItem_menu_items_children_children_children_children_page | null;
|
||||||
sortOrder: number | null;
|
|
||||||
url: string | null;
|
url: string | null;
|
||||||
children: (MenuItemCreate_menuItemCreate_menuItem_menu_items_children_children_children_children_children | null)[] | null;
|
children: (MenuItemCreate_menuItemCreate_menuItem_menu_items_children_children_children_children_children | null)[] | null;
|
||||||
}
|
}
|
||||||
|
@ -186,7 +183,6 @@ export interface MenuItemCreate_menuItemCreate_menuItem_menu_items_children_chil
|
||||||
level: number;
|
level: number;
|
||||||
name: string;
|
name: string;
|
||||||
page: MenuItemCreate_menuItemCreate_menuItem_menu_items_children_children_children_page | null;
|
page: MenuItemCreate_menuItemCreate_menuItem_menu_items_children_children_children_page | null;
|
||||||
sortOrder: number | null;
|
|
||||||
url: string | null;
|
url: string | null;
|
||||||
children: (MenuItemCreate_menuItemCreate_menuItem_menu_items_children_children_children_children | null)[] | null;
|
children: (MenuItemCreate_menuItemCreate_menuItem_menu_items_children_children_children_children | null)[] | null;
|
||||||
}
|
}
|
||||||
|
@ -199,7 +195,6 @@ export interface MenuItemCreate_menuItemCreate_menuItem_menu_items_children_chil
|
||||||
level: number;
|
level: number;
|
||||||
name: string;
|
name: string;
|
||||||
page: MenuItemCreate_menuItemCreate_menuItem_menu_items_children_children_page | null;
|
page: MenuItemCreate_menuItemCreate_menuItem_menu_items_children_children_page | null;
|
||||||
sortOrder: number | null;
|
|
||||||
url: string | null;
|
url: string | null;
|
||||||
children: (MenuItemCreate_menuItemCreate_menuItem_menu_items_children_children_children | null)[] | null;
|
children: (MenuItemCreate_menuItemCreate_menuItem_menu_items_children_children_children | null)[] | null;
|
||||||
}
|
}
|
||||||
|
@ -212,7 +207,6 @@ export interface MenuItemCreate_menuItemCreate_menuItem_menu_items_children {
|
||||||
level: number;
|
level: number;
|
||||||
name: string;
|
name: string;
|
||||||
page: MenuItemCreate_menuItemCreate_menuItem_menu_items_children_page | null;
|
page: MenuItemCreate_menuItemCreate_menuItem_menu_items_children_page | null;
|
||||||
sortOrder: number | null;
|
|
||||||
url: string | null;
|
url: string | null;
|
||||||
children: (MenuItemCreate_menuItemCreate_menuItem_menu_items_children_children | null)[] | null;
|
children: (MenuItemCreate_menuItemCreate_menuItem_menu_items_children_children | null)[] | null;
|
||||||
}
|
}
|
||||||
|
@ -225,7 +219,6 @@ export interface MenuItemCreate_menuItemCreate_menuItem_menu_items {
|
||||||
level: number;
|
level: number;
|
||||||
name: string;
|
name: string;
|
||||||
page: MenuItemCreate_menuItemCreate_menuItem_menu_items_page | null;
|
page: MenuItemCreate_menuItemCreate_menuItem_menu_items_page | null;
|
||||||
sortOrder: number | null;
|
|
||||||
url: string | null;
|
url: string | null;
|
||||||
children: (MenuItemCreate_menuItemCreate_menuItem_menu_items_children | null)[] | null;
|
children: (MenuItemCreate_menuItemCreate_menuItem_menu_items_children | null)[] | null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,6 +32,5 @@ export interface MenuItemFragment {
|
||||||
level: number;
|
level: number;
|
||||||
name: string;
|
name: string;
|
||||||
page: MenuItemFragment_page | null;
|
page: MenuItemFragment_page | null;
|
||||||
sortOrder: number | null;
|
|
||||||
url: string | null;
|
url: string | null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -140,7 +140,6 @@ export interface MenuItemNestedFragment_children_children_children_children_chil
|
||||||
level: number;
|
level: number;
|
||||||
name: string;
|
name: string;
|
||||||
page: MenuItemNestedFragment_children_children_children_children_children_children_page | null;
|
page: MenuItemNestedFragment_children_children_children_children_children_children_page | null;
|
||||||
sortOrder: number | null;
|
|
||||||
url: string | null;
|
url: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -152,7 +151,6 @@ export interface MenuItemNestedFragment_children_children_children_children_chil
|
||||||
level: number;
|
level: number;
|
||||||
name: string;
|
name: string;
|
||||||
page: MenuItemNestedFragment_children_children_children_children_children_page | null;
|
page: MenuItemNestedFragment_children_children_children_children_children_page | null;
|
||||||
sortOrder: number | null;
|
|
||||||
url: string | null;
|
url: string | null;
|
||||||
children: (MenuItemNestedFragment_children_children_children_children_children_children | null)[] | null;
|
children: (MenuItemNestedFragment_children_children_children_children_children_children | null)[] | null;
|
||||||
}
|
}
|
||||||
|
@ -165,7 +163,6 @@ export interface MenuItemNestedFragment_children_children_children_children {
|
||||||
level: number;
|
level: number;
|
||||||
name: string;
|
name: string;
|
||||||
page: MenuItemNestedFragment_children_children_children_children_page | null;
|
page: MenuItemNestedFragment_children_children_children_children_page | null;
|
||||||
sortOrder: number | null;
|
|
||||||
url: string | null;
|
url: string | null;
|
||||||
children: (MenuItemNestedFragment_children_children_children_children_children | null)[] | null;
|
children: (MenuItemNestedFragment_children_children_children_children_children | null)[] | null;
|
||||||
}
|
}
|
||||||
|
@ -178,7 +175,6 @@ export interface MenuItemNestedFragment_children_children_children {
|
||||||
level: number;
|
level: number;
|
||||||
name: string;
|
name: string;
|
||||||
page: MenuItemNestedFragment_children_children_children_page | null;
|
page: MenuItemNestedFragment_children_children_children_page | null;
|
||||||
sortOrder: number | null;
|
|
||||||
url: string | null;
|
url: string | null;
|
||||||
children: (MenuItemNestedFragment_children_children_children_children | null)[] | null;
|
children: (MenuItemNestedFragment_children_children_children_children | null)[] | null;
|
||||||
}
|
}
|
||||||
|
@ -191,7 +187,6 @@ export interface MenuItemNestedFragment_children_children {
|
||||||
level: number;
|
level: number;
|
||||||
name: string;
|
name: string;
|
||||||
page: MenuItemNestedFragment_children_children_page | null;
|
page: MenuItemNestedFragment_children_children_page | null;
|
||||||
sortOrder: number | null;
|
|
||||||
url: string | null;
|
url: string | null;
|
||||||
children: (MenuItemNestedFragment_children_children_children | null)[] | null;
|
children: (MenuItemNestedFragment_children_children_children | null)[] | null;
|
||||||
}
|
}
|
||||||
|
@ -204,7 +199,6 @@ export interface MenuItemNestedFragment_children {
|
||||||
level: number;
|
level: number;
|
||||||
name: string;
|
name: string;
|
||||||
page: MenuItemNestedFragment_children_page | null;
|
page: MenuItemNestedFragment_children_page | null;
|
||||||
sortOrder: number | null;
|
|
||||||
url: string | null;
|
url: string | null;
|
||||||
children: (MenuItemNestedFragment_children_children | null)[] | null;
|
children: (MenuItemNestedFragment_children_children | null)[] | null;
|
||||||
}
|
}
|
||||||
|
@ -217,7 +211,6 @@ export interface MenuItemNestedFragment {
|
||||||
level: number;
|
level: number;
|
||||||
name: string;
|
name: string;
|
||||||
page: MenuItemNestedFragment_page | null;
|
page: MenuItemNestedFragment_page | null;
|
||||||
sortOrder: number | null;
|
|
||||||
url: string | null;
|
url: string | null;
|
||||||
children: (MenuItemNestedFragment_children | null)[] | null;
|
children: (MenuItemNestedFragment_children | null)[] | null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,7 +40,6 @@ export interface MenuItemUpdate_menuItemUpdate_menuItem {
|
||||||
level: number;
|
level: number;
|
||||||
name: string;
|
name: string;
|
||||||
page: MenuItemUpdate_menuItemUpdate_menuItem_page | null;
|
page: MenuItemUpdate_menuItemUpdate_menuItem_page | null;
|
||||||
sortOrder: number | null;
|
|
||||||
url: string | null;
|
url: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -303,7 +303,9 @@ const OrderProductAddDialog: React.FC<OrderProductAddDialogProps> = props => {
|
||||||
</div>
|
</div>
|
||||||
</TableCell>
|
</TableCell>
|
||||||
<TableCell className={classes.textRight}>
|
<TableCell className={classes.textRight}>
|
||||||
<Money money={variant.price} />
|
<Money
|
||||||
|
money={variant.pricing.priceUndiscounted.net}
|
||||||
|
/>
|
||||||
</TableCell>
|
</TableCell>
|
||||||
</TableRow>
|
</TableRow>
|
||||||
)
|
)
|
||||||
|
|
|
@ -10,6 +10,7 @@ import {
|
||||||
} from "../types/globalTypes";
|
} from "../types/globalTypes";
|
||||||
import { OrderDetails_order } from "./types/OrderDetails";
|
import { OrderDetails_order } from "./types/OrderDetails";
|
||||||
import { OrderList_orders_edges_node } from "./types/OrderList";
|
import { OrderList_orders_edges_node } from "./types/OrderList";
|
||||||
|
import { SearchOrderVariant_search_edges_node } from "./types/SearchOrderVariant";
|
||||||
|
|
||||||
export const clients: SearchCustomers_search_edges_node[] = [
|
export const clients: SearchCustomers_search_edges_node[] = [
|
||||||
{
|
{
|
||||||
|
@ -1163,7 +1164,9 @@ export const shippingMethods = [
|
||||||
{ country: "whole world", id: "s1", name: "DHL", price: {} },
|
{ country: "whole world", id: "s1", name: "DHL", price: {} },
|
||||||
{ country: "Afghanistan", id: "s2", name: "UPS" }
|
{ country: "Afghanistan", id: "s2", name: "UPS" }
|
||||||
];
|
];
|
||||||
export const orderLineSearch = (placeholderImage: string) => [
|
export const orderLineSearch = (
|
||||||
|
placeholderImage: string
|
||||||
|
): SearchOrderVariant_search_edges_node[] => [
|
||||||
{
|
{
|
||||||
__typename: "Product" as "Product",
|
__typename: "Product" as "Product",
|
||||||
id: "UHJvZHVjdDo3Mg==",
|
id: "UHJvZHVjdDo3Mg==",
|
||||||
|
@ -1177,21 +1180,51 @@ export const orderLineSearch = (placeholderImage: string) => [
|
||||||
__typename: "ProductVariant" as "ProductVariant",
|
__typename: "ProductVariant" as "ProductVariant",
|
||||||
id: "UHJvZHVjdFZhcmlhbnQ6MjAy",
|
id: "UHJvZHVjdFZhcmlhbnQ6MjAy",
|
||||||
name: "500ml",
|
name: "500ml",
|
||||||
price: { __typename: "Money" as "Money", amount: 3.0, currency: "USD" },
|
pricing: {
|
||||||
|
__typename: "VariantPricingInfo",
|
||||||
|
priceUndiscounted: {
|
||||||
|
__typename: "TaxedMoney",
|
||||||
|
net: {
|
||||||
|
__typename: "Money" as "Money",
|
||||||
|
amount: 3.0,
|
||||||
|
currency: "USD"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
sku: "93855755"
|
sku: "93855755"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__typename: "ProductVariant" as "ProductVariant",
|
__typename: "ProductVariant" as "ProductVariant",
|
||||||
id: "UHJvZHVjdFZhcmlhbnQ6MjAz",
|
id: "UHJvZHVjdFZhcmlhbnQ6MjAz",
|
||||||
name: "1l",
|
name: "1l",
|
||||||
price: { __typename: "Money" as "Money", amount: 5.0, currency: "USD" },
|
pricing: {
|
||||||
|
__typename: "VariantPricingInfo",
|
||||||
|
priceUndiscounted: {
|
||||||
|
__typename: "TaxedMoney",
|
||||||
|
net: {
|
||||||
|
__typename: "Money" as "Money",
|
||||||
|
amount: 5.0,
|
||||||
|
currency: "USD"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
sku: "43226647"
|
sku: "43226647"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__typename: "ProductVariant" as "ProductVariant",
|
__typename: "ProductVariant" as "ProductVariant",
|
||||||
id: "UHJvZHVjdFZhcmlhbnQ6MjA0",
|
id: "UHJvZHVjdFZhcmlhbnQ6MjA0",
|
||||||
name: "2l",
|
name: "2l",
|
||||||
price: { __typename: "Money" as "Money", amount: 7.0, currency: "USD" },
|
pricing: {
|
||||||
|
__typename: "VariantPricingInfo",
|
||||||
|
priceUndiscounted: {
|
||||||
|
__typename: "TaxedMoney",
|
||||||
|
net: {
|
||||||
|
__typename: "Money" as "Money",
|
||||||
|
amount: 7.0,
|
||||||
|
currency: "USD"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
sku: "80884671"
|
sku: "80884671"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -1209,21 +1242,51 @@ export const orderLineSearch = (placeholderImage: string) => [
|
||||||
__typename: "ProductVariant" as "ProductVariant",
|
__typename: "ProductVariant" as "ProductVariant",
|
||||||
id: "UHJvZHVjdFZhcmlhbnQ6MjEx",
|
id: "UHJvZHVjdFZhcmlhbnQ6MjEx",
|
||||||
name: "500ml",
|
name: "500ml",
|
||||||
price: { __typename: "Money" as "Money", amount: 3.0, currency: "USD" },
|
pricing: {
|
||||||
|
__typename: "VariantPricingInfo",
|
||||||
|
priceUndiscounted: {
|
||||||
|
__typename: "TaxedMoney",
|
||||||
|
net: {
|
||||||
|
__typename: "Money" as "Money",
|
||||||
|
amount: 3.0,
|
||||||
|
currency: "USD"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
sku: "43200242"
|
sku: "43200242"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__typename: "ProductVariant" as "ProductVariant",
|
__typename: "ProductVariant" as "ProductVariant",
|
||||||
id: "UHJvZHVjdFZhcmlhbnQ6MjEy",
|
id: "UHJvZHVjdFZhcmlhbnQ6MjEy",
|
||||||
name: "1l",
|
name: "1l",
|
||||||
price: { __typename: "Money" as "Money", amount: 5.0, currency: "USD" },
|
pricing: {
|
||||||
|
__typename: "VariantPricingInfo",
|
||||||
|
priceUndiscounted: {
|
||||||
|
__typename: "TaxedMoney",
|
||||||
|
net: {
|
||||||
|
__typename: "Money" as "Money",
|
||||||
|
amount: 5.0,
|
||||||
|
currency: "USD"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
sku: "79129513"
|
sku: "79129513"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__typename: "ProductVariant" as "ProductVariant",
|
__typename: "ProductVariant" as "ProductVariant",
|
||||||
id: "UHJvZHVjdFZhcmlhbnQ6MjEz",
|
id: "UHJvZHVjdFZhcmlhbnQ6MjEz",
|
||||||
name: "2l",
|
name: "2l",
|
||||||
price: { __typename: "Money" as "Money", amount: 7.0, currency: "USD" },
|
pricing: {
|
||||||
|
__typename: "VariantPricingInfo",
|
||||||
|
priceUndiscounted: {
|
||||||
|
__typename: "TaxedMoney",
|
||||||
|
net: {
|
||||||
|
__typename: "Money" as "Money",
|
||||||
|
amount: 7.0,
|
||||||
|
currency: "USD"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
sku: "75799450"
|
sku: "75799450"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -291,7 +291,7 @@ export const TypedOrderDetailsQuery = TypedQuery<
|
||||||
|
|
||||||
export const searchOrderVariant = gql`
|
export const searchOrderVariant = gql`
|
||||||
query SearchOrderVariant($first: Int!, $query: String!, $after: String) {
|
query SearchOrderVariant($first: Int!, $query: String!, $after: String) {
|
||||||
search: products(query: $query, first: $first, after: $after) {
|
search: products(first: $first, after: $after, filter: { search: $query }) {
|
||||||
edges {
|
edges {
|
||||||
node {
|
node {
|
||||||
id
|
id
|
||||||
|
@ -303,9 +303,13 @@ export const searchOrderVariant = gql`
|
||||||
id
|
id
|
||||||
name
|
name
|
||||||
sku
|
sku
|
||||||
price {
|
pricing {
|
||||||
amount
|
priceUndiscounted {
|
||||||
currency
|
net {
|
||||||
|
amount
|
||||||
|
currency
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,18 +11,28 @@ export interface SearchOrderVariant_search_edges_node_thumbnail {
|
||||||
url: string;
|
url: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SearchOrderVariant_search_edges_node_variants_price {
|
export interface SearchOrderVariant_search_edges_node_variants_pricing_priceUndiscounted_net {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface SearchOrderVariant_search_edges_node_variants_pricing_priceUndiscounted {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
net: SearchOrderVariant_search_edges_node_variants_pricing_priceUndiscounted_net;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface SearchOrderVariant_search_edges_node_variants_pricing {
|
||||||
|
__typename: "VariantPricingInfo";
|
||||||
|
priceUndiscounted: SearchOrderVariant_search_edges_node_variants_pricing_priceUndiscounted | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface SearchOrderVariant_search_edges_node_variants {
|
export interface SearchOrderVariant_search_edges_node_variants {
|
||||||
__typename: "ProductVariant";
|
__typename: "ProductVariant";
|
||||||
id: string;
|
id: string;
|
||||||
name: string;
|
name: string;
|
||||||
sku: string;
|
sku: string;
|
||||||
price: SearchOrderVariant_search_edges_node_variants_price | null;
|
pricing: SearchOrderVariant_search_edges_node_variants_pricing | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SearchOrderVariant_search_edges_node {
|
export interface SearchOrderVariant_search_edges_node {
|
||||||
|
|
|
@ -995,12 +995,14 @@ export const variant = (placeholderImage: string): ProductVariant => ({
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
value: {
|
values: [
|
||||||
__typename: "AttributeValue",
|
{
|
||||||
id: "ptav47282",
|
__typename: "AttributeValue",
|
||||||
name: "portals",
|
id: "ptav47282",
|
||||||
slug: "portals"
|
name: "portals",
|
||||||
}
|
slug: "portals"
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__typename: "SelectedAttribute",
|
__typename: "SelectedAttribute",
|
||||||
|
@ -1037,12 +1039,14 @@ export const variant = (placeholderImage: string): ProductVariant => ({
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
value: {
|
values: [
|
||||||
__typename: "AttributeValue",
|
{
|
||||||
id: "ptav14907",
|
__typename: "AttributeValue",
|
||||||
name: "Auto Loan Account",
|
id: "ptav14907",
|
||||||
slug: "Auto-Loan-Account"
|
name: "Auto Loan Account",
|
||||||
}
|
slug: "Auto-Loan-Account"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
costPrice: {
|
costPrice: {
|
||||||
|
|
|
@ -167,7 +167,7 @@ export const fragmentVariant = gql`
|
||||||
slug
|
slug
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
value {
|
values {
|
||||||
id
|
id
|
||||||
name
|
name
|
||||||
slug
|
slug
|
||||||
|
|
|
@ -22,7 +22,7 @@ export interface ProductVariant_attributes_attribute {
|
||||||
values: (ProductVariant_attributes_attribute_values | null)[] | null;
|
values: (ProductVariant_attributes_attribute_values | null)[] | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ProductVariant_attributes_value {
|
export interface ProductVariant_attributes_values {
|
||||||
__typename: "AttributeValue";
|
__typename: "AttributeValue";
|
||||||
id: string;
|
id: string;
|
||||||
name: string | null;
|
name: string | null;
|
||||||
|
@ -32,7 +32,7 @@ export interface ProductVariant_attributes_value {
|
||||||
export interface ProductVariant_attributes {
|
export interface ProductVariant_attributes {
|
||||||
__typename: "SelectedAttribute";
|
__typename: "SelectedAttribute";
|
||||||
attribute: ProductVariant_attributes_attribute;
|
attribute: ProductVariant_attributes_attribute;
|
||||||
value: ProductVariant_attributes_value | null;
|
values: (ProductVariant_attributes_values | null)[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ProductVariant_costPrice {
|
export interface ProductVariant_costPrice {
|
||||||
|
|
|
@ -22,7 +22,7 @@ export interface ProductVariantDetails_productVariant_attributes_attribute {
|
||||||
values: (ProductVariantDetails_productVariant_attributes_attribute_values | null)[] | null;
|
values: (ProductVariantDetails_productVariant_attributes_attribute_values | null)[] | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ProductVariantDetails_productVariant_attributes_value {
|
export interface ProductVariantDetails_productVariant_attributes_values {
|
||||||
__typename: "AttributeValue";
|
__typename: "AttributeValue";
|
||||||
id: string;
|
id: string;
|
||||||
name: string | null;
|
name: string | null;
|
||||||
|
@ -32,7 +32,7 @@ export interface ProductVariantDetails_productVariant_attributes_value {
|
||||||
export interface ProductVariantDetails_productVariant_attributes {
|
export interface ProductVariantDetails_productVariant_attributes {
|
||||||
__typename: "SelectedAttribute";
|
__typename: "SelectedAttribute";
|
||||||
attribute: ProductVariantDetails_productVariant_attributes_attribute;
|
attribute: ProductVariantDetails_productVariant_attributes_attribute;
|
||||||
value: ProductVariantDetails_productVariant_attributes_value | null;
|
values: (ProductVariantDetails_productVariant_attributes_values | null)[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ProductVariantDetails_productVariant_costPrice {
|
export interface ProductVariantDetails_productVariant_costPrice {
|
||||||
|
|
|
@ -204,7 +204,7 @@ export interface SimpleProductUpdate_productVariantUpdate_productVariant_attribu
|
||||||
values: (SimpleProductUpdate_productVariantUpdate_productVariant_attributes_attribute_values | null)[] | null;
|
values: (SimpleProductUpdate_productVariantUpdate_productVariant_attributes_attribute_values | null)[] | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SimpleProductUpdate_productVariantUpdate_productVariant_attributes_value {
|
export interface SimpleProductUpdate_productVariantUpdate_productVariant_attributes_values {
|
||||||
__typename: "AttributeValue";
|
__typename: "AttributeValue";
|
||||||
id: string;
|
id: string;
|
||||||
name: string | null;
|
name: string | null;
|
||||||
|
@ -214,7 +214,7 @@ export interface SimpleProductUpdate_productVariantUpdate_productVariant_attribu
|
||||||
export interface SimpleProductUpdate_productVariantUpdate_productVariant_attributes {
|
export interface SimpleProductUpdate_productVariantUpdate_productVariant_attributes {
|
||||||
__typename: "SelectedAttribute";
|
__typename: "SelectedAttribute";
|
||||||
attribute: SimpleProductUpdate_productVariantUpdate_productVariant_attributes_attribute;
|
attribute: SimpleProductUpdate_productVariantUpdate_productVariant_attributes_attribute;
|
||||||
value: SimpleProductUpdate_productVariantUpdate_productVariant_attributes_value | null;
|
values: (SimpleProductUpdate_productVariantUpdate_productVariant_attributes_values | null)[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SimpleProductUpdate_productVariantUpdate_productVariant_costPrice {
|
export interface SimpleProductUpdate_productVariantUpdate_productVariant_costPrice {
|
||||||
|
|
|
@ -31,7 +31,7 @@ export interface VariantCreate_productVariantCreate_productVariant_attributes_at
|
||||||
values: (VariantCreate_productVariantCreate_productVariant_attributes_attribute_values | null)[] | null;
|
values: (VariantCreate_productVariantCreate_productVariant_attributes_attribute_values | null)[] | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface VariantCreate_productVariantCreate_productVariant_attributes_value {
|
export interface VariantCreate_productVariantCreate_productVariant_attributes_values {
|
||||||
__typename: "AttributeValue";
|
__typename: "AttributeValue";
|
||||||
id: string;
|
id: string;
|
||||||
name: string | null;
|
name: string | null;
|
||||||
|
@ -41,7 +41,7 @@ export interface VariantCreate_productVariantCreate_productVariant_attributes_va
|
||||||
export interface VariantCreate_productVariantCreate_productVariant_attributes {
|
export interface VariantCreate_productVariantCreate_productVariant_attributes {
|
||||||
__typename: "SelectedAttribute";
|
__typename: "SelectedAttribute";
|
||||||
attribute: VariantCreate_productVariantCreate_productVariant_attributes_attribute;
|
attribute: VariantCreate_productVariantCreate_productVariant_attributes_attribute;
|
||||||
value: VariantCreate_productVariantCreate_productVariant_attributes_value | null;
|
values: (VariantCreate_productVariantCreate_productVariant_attributes_values | null)[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface VariantCreate_productVariantCreate_productVariant_costPrice {
|
export interface VariantCreate_productVariantCreate_productVariant_costPrice {
|
||||||
|
|
|
@ -28,7 +28,7 @@ export interface VariantImageAssign_variantImageAssign_productVariant_attributes
|
||||||
values: (VariantImageAssign_variantImageAssign_productVariant_attributes_attribute_values | null)[] | null;
|
values: (VariantImageAssign_variantImageAssign_productVariant_attributes_attribute_values | null)[] | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface VariantImageAssign_variantImageAssign_productVariant_attributes_value {
|
export interface VariantImageAssign_variantImageAssign_productVariant_attributes_values {
|
||||||
__typename: "AttributeValue";
|
__typename: "AttributeValue";
|
||||||
id: string;
|
id: string;
|
||||||
name: string | null;
|
name: string | null;
|
||||||
|
@ -38,7 +38,7 @@ export interface VariantImageAssign_variantImageAssign_productVariant_attributes
|
||||||
export interface VariantImageAssign_variantImageAssign_productVariant_attributes {
|
export interface VariantImageAssign_variantImageAssign_productVariant_attributes {
|
||||||
__typename: "SelectedAttribute";
|
__typename: "SelectedAttribute";
|
||||||
attribute: VariantImageAssign_variantImageAssign_productVariant_attributes_attribute;
|
attribute: VariantImageAssign_variantImageAssign_productVariant_attributes_attribute;
|
||||||
value: VariantImageAssign_variantImageAssign_productVariant_attributes_value | null;
|
values: (VariantImageAssign_variantImageAssign_productVariant_attributes_values | null)[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface VariantImageAssign_variantImageAssign_productVariant_costPrice {
|
export interface VariantImageAssign_variantImageAssign_productVariant_costPrice {
|
||||||
|
|
|
@ -28,7 +28,7 @@ export interface VariantImageUnassign_variantImageUnassign_productVariant_attrib
|
||||||
values: (VariantImageUnassign_variantImageUnassign_productVariant_attributes_attribute_values | null)[] | null;
|
values: (VariantImageUnassign_variantImageUnassign_productVariant_attributes_attribute_values | null)[] | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface VariantImageUnassign_variantImageUnassign_productVariant_attributes_value {
|
export interface VariantImageUnassign_variantImageUnassign_productVariant_attributes_values {
|
||||||
__typename: "AttributeValue";
|
__typename: "AttributeValue";
|
||||||
id: string;
|
id: string;
|
||||||
name: string | null;
|
name: string | null;
|
||||||
|
@ -38,7 +38,7 @@ export interface VariantImageUnassign_variantImageUnassign_productVariant_attrib
|
||||||
export interface VariantImageUnassign_variantImageUnassign_productVariant_attributes {
|
export interface VariantImageUnassign_variantImageUnassign_productVariant_attributes {
|
||||||
__typename: "SelectedAttribute";
|
__typename: "SelectedAttribute";
|
||||||
attribute: VariantImageUnassign_variantImageUnassign_productVariant_attributes_attribute;
|
attribute: VariantImageUnassign_variantImageUnassign_productVariant_attributes_attribute;
|
||||||
value: VariantImageUnassign_variantImageUnassign_productVariant_attributes_value | null;
|
values: (VariantImageUnassign_variantImageUnassign_productVariant_attributes_values | null)[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface VariantImageUnassign_variantImageUnassign_productVariant_costPrice {
|
export interface VariantImageUnassign_variantImageUnassign_productVariant_costPrice {
|
||||||
|
|
|
@ -31,7 +31,7 @@ export interface VariantUpdate_productVariantUpdate_productVariant_attributes_at
|
||||||
values: (VariantUpdate_productVariantUpdate_productVariant_attributes_attribute_values | null)[] | null;
|
values: (VariantUpdate_productVariantUpdate_productVariant_attributes_attribute_values | null)[] | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface VariantUpdate_productVariantUpdate_productVariant_attributes_value {
|
export interface VariantUpdate_productVariantUpdate_productVariant_attributes_values {
|
||||||
__typename: "AttributeValue";
|
__typename: "AttributeValue";
|
||||||
id: string;
|
id: string;
|
||||||
name: string | null;
|
name: string | null;
|
||||||
|
@ -41,7 +41,7 @@ export interface VariantUpdate_productVariantUpdate_productVariant_attributes_va
|
||||||
export interface VariantUpdate_productVariantUpdate_productVariant_attributes {
|
export interface VariantUpdate_productVariantUpdate_productVariant_attributes {
|
||||||
__typename: "SelectedAttribute";
|
__typename: "SelectedAttribute";
|
||||||
attribute: VariantUpdate_productVariantUpdate_productVariant_attributes_attribute;
|
attribute: VariantUpdate_productVariantUpdate_productVariant_attributes_attribute;
|
||||||
value: VariantUpdate_productVariantUpdate_productVariant_attributes_value | null;
|
values: (VariantUpdate_productVariantUpdate_productVariant_attributes_values | null)[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface VariantUpdate_productVariantUpdate_productVariant_costPrice {
|
export interface VariantUpdate_productVariantUpdate_productVariant_costPrice {
|
||||||
|
|
|
@ -96,7 +96,7 @@ export function getAttributeInputFromVariant(
|
||||||
},
|
},
|
||||||
id: attribute.attribute.id,
|
id: attribute.attribute.id,
|
||||||
label: attribute.attribute.name,
|
label: attribute.attribute.name,
|
||||||
value: maybe(() => attribute.value.slug, null)
|
value: maybe(() => attribute.values[0].slug, null)
|
||||||
})),
|
})),
|
||||||
[]
|
[]
|
||||||
);
|
);
|
||||||
|
|
|
@ -10,7 +10,11 @@ import {
|
||||||
export const searchCategories = gql`
|
export const searchCategories = gql`
|
||||||
${pageInfoFragment}
|
${pageInfoFragment}
|
||||||
query SearchCategories($after: String, $first: Int!, $query: String!) {
|
query SearchCategories($after: String, $first: Int!, $query: String!) {
|
||||||
search: categories(after: $after, first: $first, query: $query) {
|
search: categories(
|
||||||
|
after: $after
|
||||||
|
first: $first
|
||||||
|
filter: { search: $query }
|
||||||
|
) {
|
||||||
edges {
|
edges {
|
||||||
node {
|
node {
|
||||||
id
|
id
|
||||||
|
|
|
@ -10,7 +10,11 @@ import {
|
||||||
export const searchCollections = gql`
|
export const searchCollections = gql`
|
||||||
${pageInfoFragment}
|
${pageInfoFragment}
|
||||||
query SearchCollections($after: String, $first: Int!, $query: String!) {
|
query SearchCollections($after: String, $first: Int!, $query: String!) {
|
||||||
search: collections(after: $after, first: $first, query: $query) {
|
search: collections(
|
||||||
|
after: $after
|
||||||
|
first: $first
|
||||||
|
filter: { search: $query }
|
||||||
|
) {
|
||||||
edges {
|
edges {
|
||||||
node {
|
node {
|
||||||
id
|
id
|
||||||
|
|
|
@ -10,7 +10,11 @@ import {
|
||||||
export const searchCustomers = gql`
|
export const searchCustomers = gql`
|
||||||
${pageInfoFragment}
|
${pageInfoFragment}
|
||||||
query SearchCustomers($after: String, $first: Int!, $query: String!) {
|
query SearchCustomers($after: String, $first: Int!, $query: String!) {
|
||||||
search: customers(after: $after, first: $first, query: $query) {
|
search: customers(
|
||||||
|
after: $after
|
||||||
|
first: $first
|
||||||
|
filter: { search: $query }
|
||||||
|
) {
|
||||||
edges {
|
edges {
|
||||||
node {
|
node {
|
||||||
id
|
id
|
||||||
|
|
|
@ -7,7 +7,7 @@ import { SearchPages, SearchPagesVariables } from "./types/SearchPages";
|
||||||
export const searchPages = gql`
|
export const searchPages = gql`
|
||||||
${pageInfoFragment}
|
${pageInfoFragment}
|
||||||
query SearchPages($after: String, $first: Int!, $query: String!) {
|
query SearchPages($after: String, $first: Int!, $query: String!) {
|
||||||
search: pages(after: $after, first: $first, query: $query) {
|
search: pages(after: $after, first: $first, filter: { search: $query }) {
|
||||||
edges {
|
edges {
|
||||||
node {
|
node {
|
||||||
id
|
id
|
||||||
|
|
|
@ -10,7 +10,7 @@ import {
|
||||||
export const searchProducts = gql`
|
export const searchProducts = gql`
|
||||||
${pageInfoFragment}
|
${pageInfoFragment}
|
||||||
query SearchProducts($after: String, $first: Int!, $query: String!) {
|
query SearchProducts($after: String, $first: Int!, $query: String!) {
|
||||||
search: products(after: $after, first: $first, query: $query) {
|
search: products(after: $after, first: $first, filter: { search: $query }) {
|
||||||
edges {
|
edges {
|
||||||
node {
|
node {
|
||||||
id
|
id
|
||||||
|
|
|
@ -143,8 +143,7 @@ export const StaffList: React.FC<StaffListProps> = ({ params }) => {
|
||||||
window.location.origin,
|
window.location.origin,
|
||||||
APP_MOUNT_URI === "/" ? "" : APP_MOUNT_URI,
|
APP_MOUNT_URI === "/" ? "" : APP_MOUNT_URI,
|
||||||
newPasswordUrl().replace(/\?/, "")
|
newPasswordUrl().replace(/\?/, "")
|
||||||
),
|
)
|
||||||
sendPasswordEmail: true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -47845,7 +47845,7 @@ exports[`Storyshots Views / Discounts / Voucher details default 1`] = `
|
||||||
<input
|
<input
|
||||||
aria-invalid="false"
|
aria-invalid="false"
|
||||||
class="MuiInputBase-input-id MuiOutlinedInput-input-id"
|
class="MuiInputBase-input-id MuiOutlinedInput-input-id"
|
||||||
name="minAmountSpent"
|
name="minSpent"
|
||||||
type="text"
|
type="text"
|
||||||
value="200"
|
value="200"
|
||||||
/>
|
/>
|
||||||
|
@ -48941,7 +48941,7 @@ exports[`Storyshots Views / Discounts / Voucher details form errors 1`] = `
|
||||||
<input
|
<input
|
||||||
aria-invalid="true"
|
aria-invalid="true"
|
||||||
class="MuiInputBase-input-id MuiOutlinedInput-input-id"
|
class="MuiInputBase-input-id MuiOutlinedInput-input-id"
|
||||||
name="minAmountSpent"
|
name="minSpent"
|
||||||
type="text"
|
type="text"
|
||||||
value="200"
|
value="200"
|
||||||
/>
|
/>
|
||||||
|
@ -127941,6 +127941,29 @@ exports[`Storyshots Views / Webhooks / Create webhook default 1`] = `
|
||||||
<hr
|
<hr
|
||||||
class="Hr-root-id"
|
class="Hr-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="CHECKOUT_QUANTITY_CHANGED"
|
||||||
|
type="checkbox"
|
||||||
|
value="false"
|
||||||
|
/>
|
||||||
|
</button>
|
||||||
|
<span
|
||||||
|
class="MuiTypography-root-id MuiFormControlLabel-label-id MuiTypography-body1-id"
|
||||||
|
>
|
||||||
|
Changed quantity in checkout
|
||||||
|
</span>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label
|
<label
|
||||||
class="MuiFormControlLabel-root-id"
|
class="MuiFormControlLabel-root-id"
|
||||||
|
@ -128479,6 +128502,29 @@ exports[`Storyshots Views / Webhooks / Create webhook form errors 1`] = `
|
||||||
<hr
|
<hr
|
||||||
class="Hr-root-id"
|
class="Hr-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="CHECKOUT_QUANTITY_CHANGED"
|
||||||
|
type="checkbox"
|
||||||
|
value="false"
|
||||||
|
/>
|
||||||
|
</button>
|
||||||
|
<span
|
||||||
|
class="MuiTypography-root-id MuiFormControlLabel-label-id MuiTypography-body1-id"
|
||||||
|
>
|
||||||
|
Changed quantity in checkout
|
||||||
|
</span>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label
|
<label
|
||||||
class="MuiFormControlLabel-root-id"
|
class="MuiFormControlLabel-root-id"
|
||||||
|
@ -129018,6 +129064,31 @@ exports[`Storyshots Views / Webhooks / Create webhook loading 1`] = `
|
||||||
<hr
|
<hr
|
||||||
class="Hr-root-id"
|
class="Hr-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="CHECKOUT_QUANTITY_CHANGED"
|
||||||
|
type="checkbox"
|
||||||
|
value="false"
|
||||||
|
/>
|
||||||
|
</button>
|
||||||
|
<span
|
||||||
|
class="MuiTypography-root-id MuiFormControlLabel-label-id MuiFormControlLabel-disabled-id MuiTypography-body1-id"
|
||||||
|
>
|
||||||
|
Changed quantity in checkout
|
||||||
|
</span>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label
|
<label
|
||||||
class="MuiFormControlLabel-root-id MuiFormControlLabel-disabled-id"
|
class="MuiFormControlLabel-root-id MuiFormControlLabel-disabled-id"
|
||||||
|
@ -129573,6 +129644,29 @@ exports[`Storyshots Views / Webhooks / Webhook details default 1`] = `
|
||||||
<hr
|
<hr
|
||||||
class="Hr-root-id"
|
class="Hr-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="CHECKOUT_QUANTITY_CHANGED"
|
||||||
|
type="checkbox"
|
||||||
|
value="false"
|
||||||
|
/>
|
||||||
|
</button>
|
||||||
|
<span
|
||||||
|
class="MuiTypography-root-id MuiFormControlLabel-label-id MuiTypography-body1-id"
|
||||||
|
>
|
||||||
|
Changed quantity in checkout
|
||||||
|
</span>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label
|
<label
|
||||||
class="MuiFormControlLabel-root-id"
|
class="MuiFormControlLabel-root-id"
|
||||||
|
@ -130111,6 +130205,29 @@ exports[`Storyshots Views / Webhooks / Webhook details form errors 1`] = `
|
||||||
<hr
|
<hr
|
||||||
class="Hr-root-id"
|
class="Hr-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="CHECKOUT_QUANTITY_CHANGED"
|
||||||
|
type="checkbox"
|
||||||
|
value="false"
|
||||||
|
/>
|
||||||
|
</button>
|
||||||
|
<span
|
||||||
|
class="MuiTypography-root-id MuiFormControlLabel-label-id MuiTypography-body1-id"
|
||||||
|
>
|
||||||
|
Changed quantity in checkout
|
||||||
|
</span>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label
|
<label
|
||||||
class="MuiFormControlLabel-root-id"
|
class="MuiFormControlLabel-root-id"
|
||||||
|
@ -130650,6 +130767,31 @@ exports[`Storyshots Views / Webhooks / Webhook details loading 1`] = `
|
||||||
<hr
|
<hr
|
||||||
class="Hr-root-id"
|
class="Hr-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="CHECKOUT_QUANTITY_CHANGED"
|
||||||
|
type="checkbox"
|
||||||
|
value="false"
|
||||||
|
/>
|
||||||
|
</button>
|
||||||
|
<span
|
||||||
|
class="MuiTypography-root-id MuiFormControlLabel-label-id MuiFormControlLabel-disabled-id MuiTypography-body1-id"
|
||||||
|
>
|
||||||
|
Changed quantity in checkout
|
||||||
|
</span>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label
|
<label
|
||||||
class="MuiFormControlLabel-root-id MuiFormControlLabel-disabled-id"
|
class="MuiFormControlLabel-root-id MuiFormControlLabel-disabled-id"
|
||||||
|
|
|
@ -28,7 +28,7 @@ storiesOf("Views / Discounts / Voucher create", module)
|
||||||
"code",
|
"code",
|
||||||
"discountType",
|
"discountType",
|
||||||
"endDate",
|
"endDate",
|
||||||
"minAmountSpent",
|
"minSpent",
|
||||||
"name",
|
"name",
|
||||||
"startDate",
|
"startDate",
|
||||||
"type",
|
"type",
|
||||||
|
|
|
@ -53,7 +53,7 @@ storiesOf("Views / Discounts / Voucher details", module)
|
||||||
"code",
|
"code",
|
||||||
"discountType",
|
"discountType",
|
||||||
"endDate",
|
"endDate",
|
||||||
"minAmountSpent",
|
"minSpent",
|
||||||
"name",
|
"name",
|
||||||
"startDate",
|
"startDate",
|
||||||
"type",
|
"type",
|
||||||
|
|
|
@ -480,6 +480,7 @@ export enum PaymentChargeStatusEnum {
|
||||||
|
|
||||||
export enum PermissionEnum {
|
export enum PermissionEnum {
|
||||||
IMPERSONATE_USERS = "IMPERSONATE_USERS",
|
IMPERSONATE_USERS = "IMPERSONATE_USERS",
|
||||||
|
MANAGE_CHECKOUTS = "MANAGE_CHECKOUTS",
|
||||||
MANAGE_DISCOUNTS = "MANAGE_DISCOUNTS",
|
MANAGE_DISCOUNTS = "MANAGE_DISCOUNTS",
|
||||||
MANAGE_GIFT_CARD = "MANAGE_GIFT_CARD",
|
MANAGE_GIFT_CARD = "MANAGE_GIFT_CARD",
|
||||||
MANAGE_MENUS = "MANAGE_MENUS",
|
MANAGE_MENUS = "MANAGE_MENUS",
|
||||||
|
@ -640,6 +641,7 @@ export enum WebhookErrorCode {
|
||||||
|
|
||||||
export enum WebhookEventTypeEnum {
|
export enum WebhookEventTypeEnum {
|
||||||
ANY_EVENTS = "ANY_EVENTS",
|
ANY_EVENTS = "ANY_EVENTS",
|
||||||
|
CHECKOUT_QUANTITY_CHANGED = "CHECKOUT_QUANTITY_CHANGED",
|
||||||
CUSTOMER_CREATED = "CUSTOMER_CREATED",
|
CUSTOMER_CREATED = "CUSTOMER_CREATED",
|
||||||
ORDER_CANCELLED = "ORDER_CANCELLED",
|
ORDER_CANCELLED = "ORDER_CANCELLED",
|
||||||
ORDER_CREATED = "ORDER_CREATED",
|
ORDER_CREATED = "ORDER_CREATED",
|
||||||
|
@ -1168,7 +1170,6 @@ export interface StaffCreateInput {
|
||||||
isActive?: boolean | null;
|
isActive?: boolean | null;
|
||||||
note?: string | null;
|
note?: string | null;
|
||||||
permissions?: (PermissionEnum | null)[] | null;
|
permissions?: (PermissionEnum | null)[] | null;
|
||||||
sendPasswordEmail?: boolean | null;
|
|
||||||
redirectUrl?: string | null;
|
redirectUrl?: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1202,7 +1203,6 @@ export interface UserCreateInput {
|
||||||
email?: string | null;
|
email?: string | null;
|
||||||
isActive?: boolean | null;
|
isActive?: boolean | null;
|
||||||
note?: string | null;
|
note?: string | null;
|
||||||
sendPasswordEmail?: boolean | null;
|
|
||||||
redirectUrl?: string | null;
|
redirectUrl?: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -59,6 +59,10 @@ const WebhookEvents: React.FC<WebhookEventsProps> = ({
|
||||||
[WebhookEventTypeEnum.PRODUCT_CREATED]: intl.formatMessage({
|
[WebhookEventTypeEnum.PRODUCT_CREATED]: intl.formatMessage({
|
||||||
defaultMessage: "Product created",
|
defaultMessage: "Product created",
|
||||||
description: "event"
|
description: "event"
|
||||||
|
}),
|
||||||
|
[WebhookEventTypeEnum.CHECKOUT_QUANTITY_CHANGED]: intl.formatMessage({
|
||||||
|
defaultMessage: "Changed quantity in checkout",
|
||||||
|
description: "event"
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue