Enable submitting in variant creator
This commit is contained in:
parent
bcc4f96f82
commit
1b3e304c79
6 changed files with 594 additions and 2012 deletions
2594
schema.graphql
2594
schema.graphql
File diff suppressed because it is too large
Load diff
|
@ -300,7 +300,6 @@ export const productCreateMutation = gql`
|
||||||
$basePrice: Decimal
|
$basePrice: Decimal
|
||||||
$productType: ID!
|
$productType: ID!
|
||||||
$sku: String
|
$sku: String
|
||||||
$stockQuantity: Int
|
|
||||||
$seo: SeoInput
|
$seo: SeoInput
|
||||||
$stocks: [StockInput!]!
|
$stocks: [StockInput!]!
|
||||||
$trackInventory: Boolean!
|
$trackInventory: Boolean!
|
||||||
|
@ -318,7 +317,6 @@ export const productCreateMutation = gql`
|
||||||
basePrice: $basePrice
|
basePrice: $basePrice
|
||||||
productType: $productType
|
productType: $productType
|
||||||
sku: $sku
|
sku: $sku
|
||||||
quantity: $stockQuantity
|
|
||||||
seo: $seo
|
seo: $seo
|
||||||
stocks: $stocks
|
stocks: $stocks
|
||||||
trackInventory: $trackInventory
|
trackInventory: $trackInventory
|
||||||
|
@ -366,7 +364,6 @@ export const variantUpdateMutation = gql`
|
||||||
$costPrice: Decimal
|
$costPrice: Decimal
|
||||||
$priceOverride: Decimal
|
$priceOverride: Decimal
|
||||||
$sku: String
|
$sku: String
|
||||||
$quantity: Int
|
|
||||||
$trackInventory: Boolean!
|
$trackInventory: Boolean!
|
||||||
$stocks: [StockInput!]!
|
$stocks: [StockInput!]!
|
||||||
) {
|
) {
|
||||||
|
@ -377,7 +374,6 @@ export const variantUpdateMutation = gql`
|
||||||
costPrice: $costPrice
|
costPrice: $costPrice
|
||||||
priceOverride: $priceOverride
|
priceOverride: $priceOverride
|
||||||
sku: $sku
|
sku: $sku
|
||||||
quantity: $quantity
|
|
||||||
trackInventory: $trackInventory
|
trackInventory: $trackInventory
|
||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
|
|
|
@ -224,7 +224,6 @@ export interface ProductCreateVariables {
|
||||||
basePrice?: any | null;
|
basePrice?: any | null;
|
||||||
productType: string;
|
productType: string;
|
||||||
sku?: string | null;
|
sku?: string | null;
|
||||||
stockQuantity?: number | null;
|
|
||||||
seo?: SeoInput | null;
|
seo?: SeoInput | null;
|
||||||
stocks: StockInput[];
|
stocks: StockInput[];
|
||||||
trackInventory: boolean;
|
trackInventory: boolean;
|
||||||
|
|
|
@ -264,7 +264,6 @@ export interface VariantUpdateVariables {
|
||||||
costPrice?: any | null;
|
costPrice?: any | null;
|
||||||
priceOverride?: any | null;
|
priceOverride?: any | null;
|
||||||
sku?: string | null;
|
sku?: string | null;
|
||||||
quantity?: number | null;
|
|
||||||
trackInventory: boolean;
|
trackInventory: boolean;
|
||||||
stocks: StockInput[];
|
stocks: StockInput[];
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,7 +98,6 @@ export const ProductVariant: React.FC<ProductVariantCreateProps> = ({
|
||||||
costPrice: decimal(formData.costPrice),
|
costPrice: decimal(formData.costPrice),
|
||||||
priceOverride: decimal(formData.priceOverride),
|
priceOverride: decimal(formData.priceOverride),
|
||||||
product: productId,
|
product: productId,
|
||||||
quantity: parseInt(formData.quantity, 0),
|
|
||||||
sku: formData.sku,
|
sku: formData.sku,
|
||||||
stocks: formData.stocks.map(stock => ({
|
stocks: formData.stocks.map(stock => ({
|
||||||
quantity: parseInt(stock.value, 0),
|
quantity: parseInt(stock.value, 0),
|
||||||
|
|
|
@ -1223,9 +1223,9 @@ export interface ProductVariantBulkCreateInput {
|
||||||
costPrice?: any | null;
|
costPrice?: any | null;
|
||||||
priceOverride?: any | null;
|
priceOverride?: any | null;
|
||||||
sku: string;
|
sku: string;
|
||||||
stocks: StockInput[];
|
|
||||||
trackInventory?: boolean | null;
|
trackInventory?: boolean | null;
|
||||||
weight?: any | null;
|
weight?: any | null;
|
||||||
|
stocks?: StockInput[] | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ProductVariantCreateInput {
|
export interface ProductVariantCreateInput {
|
||||||
|
@ -1233,7 +1233,6 @@ export interface ProductVariantCreateInput {
|
||||||
costPrice?: any | null;
|
costPrice?: any | null;
|
||||||
priceOverride?: any | null;
|
priceOverride?: any | null;
|
||||||
sku?: string | null;
|
sku?: string | null;
|
||||||
quantity?: number | null;
|
|
||||||
trackInventory?: boolean | null;
|
trackInventory?: boolean | null;
|
||||||
weight?: any | null;
|
weight?: any | null;
|
||||||
product: string;
|
product: string;
|
||||||
|
@ -1245,7 +1244,6 @@ export interface ProductVariantInput {
|
||||||
costPrice?: any | null;
|
costPrice?: any | null;
|
||||||
priceOverride?: any | null;
|
priceOverride?: any | null;
|
||||||
sku?: string | null;
|
sku?: string | null;
|
||||||
quantity?: number | null;
|
|
||||||
trackInventory?: boolean | null;
|
trackInventory?: boolean | null;
|
||||||
weight?: any | null;
|
weight?: any | null;
|
||||||
}
|
}
|
||||||
|
@ -1459,6 +1457,7 @@ export interface WarehouseCreateInput {
|
||||||
|
|
||||||
export interface WarehouseFilterInput {
|
export interface WarehouseFilterInput {
|
||||||
search?: string | null;
|
search?: string | null;
|
||||||
|
ids?: (string | null)[] | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface WarehouseSortingInput {
|
export interface WarehouseSortingInput {
|
||||||
|
|
Loading…
Reference in a new issue