|
|
@@ -13,7 +13,7 @@ export type Scalars = {
|
|
|
Float: number;
|
|
|
DateTime: any;
|
|
|
JSON: any;
|
|
|
- Money: any;
|
|
|
+ Money: number;
|
|
|
Upload: any;
|
|
|
};
|
|
|
|
|
|
@@ -3122,9 +3122,9 @@ export type Zone = Node & {
|
|
|
updatedAt: Scalars['DateTime'];
|
|
|
};
|
|
|
|
|
|
-export type TestOrderFragmentFragment = { id: string, code: string, state: string, active: boolean, subTotal: any, subTotalWithTax: any, shipping: any, shippingWithTax: any, total: any, totalWithTax: any, couponCodes: Array<string>, discounts: Array<{ adjustmentSource: string, amount: any, amountWithTax: any, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: any, linePriceWithTax: any, unitPrice: any, unitPriceWithTax: any, unitPriceChangeSinceAdded: any, unitPriceWithTaxChangeSinceAdded: any, discountedUnitPriceWithTax: any, proratedUnitPriceWithTax: any, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: any, amountWithTax: any, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } };
|
|
|
+export type TestOrderFragmentFragment = { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array<string>, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } };
|
|
|
|
|
|
-export type UpdatedOrderFragment = { id: string, code: string, state: string, active: boolean, total: any, totalWithTax: any, lines: Array<{ id: string, quantity: number, linePrice: any, linePriceWithTax: any, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: any, amountWithTax: any, description: string, type: AdjustmentType }> }>, discounts: Array<{ adjustmentSource: string, amount: any, amountWithTax: any, description: string, type: AdjustmentType }> };
|
|
|
+export type UpdatedOrderFragment = { id: string, code: string, state: string, active: boolean, total: number, totalWithTax: number, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> };
|
|
|
|
|
|
export type AddItemToOrderMutationVariables = Exact<{
|
|
|
productVariantId: Scalars['ID'];
|
|
|
@@ -3132,14 +3132,14 @@ export type AddItemToOrderMutationVariables = Exact<{
|
|
|
}>;
|
|
|
|
|
|
|
|
|
-export type AddItemToOrderMutation = { addItemToOrder: { errorCode: ErrorCode, message: string, quantityAvailable: number, order: { id: string, code: string, state: string, active: boolean, total: any, totalWithTax: any, lines: Array<{ id: string, quantity: number, linePrice: any, linePriceWithTax: any, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: any, amountWithTax: any, description: string, type: AdjustmentType }> }>, discounts: Array<{ adjustmentSource: string, amount: any, amountWithTax: any, description: string, type: AdjustmentType }> } } | { errorCode: ErrorCode, message: string } | { id: string, code: string, state: string, active: boolean, total: any, totalWithTax: any, lines: Array<{ id: string, quantity: number, linePrice: any, linePriceWithTax: any, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: any, amountWithTax: any, description: string, type: AdjustmentType }> }>, discounts: Array<{ adjustmentSource: string, amount: any, amountWithTax: any, description: string, type: AdjustmentType }> } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } };
|
|
|
+export type AddItemToOrderMutation = { addItemToOrder: { errorCode: ErrorCode, message: string, quantityAvailable: number, order: { id: string, code: string, state: string, active: boolean, total: number, totalWithTax: number, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> } } | { errorCode: ErrorCode, message: string } | { id: string, code: string, state: string, active: boolean, total: number, totalWithTax: number, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } };
|
|
|
|
|
|
export type SearchProductsShopQueryVariables = Exact<{
|
|
|
input: SearchInput;
|
|
|
}>;
|
|
|
|
|
|
|
|
|
-export type SearchProductsShopQuery = { search: { totalItems: number, items: Array<{ productId: string, productName: string, productVariantId: string, productVariantName: string, sku: string, collectionIds: Array<string>, price: { min: any, max: any } | { value: any } }> } };
|
|
|
+export type SearchProductsShopQuery = { search: { totalItems: number, items: Array<{ productId: string, productName: string, productVariantId: string, productVariantName: string, sku: string, collectionIds: Array<string>, price: { min: number, max: number } | { value: number } }> } };
|
|
|
|
|
|
export type RegisterMutationVariables = Exact<{
|
|
|
input: RegisterCustomerInput;
|
|
|
@@ -3239,12 +3239,12 @@ export type UpdatePasswordMutation = { updateCustomerPassword: { errorCode: Erro
|
|
|
export type GetActiveOrderQueryVariables = Exact<{ [key: string]: never; }>;
|
|
|
|
|
|
|
|
|
-export type GetActiveOrderQuery = { activeOrder?: { id: string, code: string, state: string, active: boolean, subTotal: any, subTotalWithTax: any, shipping: any, shippingWithTax: any, total: any, totalWithTax: any, couponCodes: Array<string>, discounts: Array<{ adjustmentSource: string, amount: any, amountWithTax: any, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: any, linePriceWithTax: any, unitPrice: any, unitPriceWithTax: any, unitPriceChangeSinceAdded: any, unitPriceWithTaxChangeSinceAdded: any, discountedUnitPriceWithTax: any, proratedUnitPriceWithTax: any, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: any, amountWithTax: any, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | null };
|
|
|
+export type GetActiveOrderQuery = { activeOrder?: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array<string>, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | null };
|
|
|
|
|
|
export type GetActiveOrderWithPriceDataQueryVariables = Exact<{ [key: string]: never; }>;
|
|
|
|
|
|
|
|
|
-export type GetActiveOrderWithPriceDataQuery = { activeOrder?: { id: string, subTotal: any, subTotalWithTax: any, total: any, totalWithTax: any, lines: Array<{ id: string, unitPrice: any, unitPriceWithTax: any, taxRate: number, linePrice: any, lineTax: any, linePriceWithTax: any, taxLines: Array<{ taxRate: number, description: string }> }>, taxSummary: Array<{ description: string, taxRate: number, taxBase: any, taxTotal: any }> } | null };
|
|
|
+export type GetActiveOrderWithPriceDataQuery = { activeOrder?: { id: string, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, taxRate: number, linePrice: number, lineTax: number, linePriceWithTax: number, taxLines: Array<{ taxRate: number, description: string }> }>, taxSummary: Array<{ description: string, taxRate: number, taxBase: number, taxTotal: number }> } | null };
|
|
|
|
|
|
export type AdjustItemQuantityMutationVariables = Exact<{
|
|
|
orderLineId: Scalars['ID'];
|
|
|
@@ -3252,26 +3252,26 @@ export type AdjustItemQuantityMutationVariables = Exact<{
|
|
|
}>;
|
|
|
|
|
|
|
|
|
-export type AdjustItemQuantityMutation = { adjustOrderLine: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { id: string, code: string, state: string, active: boolean, subTotal: any, subTotalWithTax: any, shipping: any, shippingWithTax: any, total: any, totalWithTax: any, couponCodes: Array<string>, discounts: Array<{ adjustmentSource: string, amount: any, amountWithTax: any, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: any, linePriceWithTax: any, unitPrice: any, unitPriceWithTax: any, unitPriceChangeSinceAdded: any, unitPriceWithTaxChangeSinceAdded: any, discountedUnitPriceWithTax: any, proratedUnitPriceWithTax: any, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: any, amountWithTax: any, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } };
|
|
|
+export type AdjustItemQuantityMutation = { adjustOrderLine: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array<string>, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } };
|
|
|
|
|
|
export type RemoveItemFromOrderMutationVariables = Exact<{
|
|
|
orderLineId: Scalars['ID'];
|
|
|
}>;
|
|
|
|
|
|
|
|
|
-export type RemoveItemFromOrderMutation = { removeOrderLine: { id: string, code: string, state: string, active: boolean, subTotal: any, subTotalWithTax: any, shipping: any, shippingWithTax: any, total: any, totalWithTax: any, couponCodes: Array<string>, discounts: Array<{ adjustmentSource: string, amount: any, amountWithTax: any, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: any, linePriceWithTax: any, unitPrice: any, unitPriceWithTax: any, unitPriceChangeSinceAdded: any, unitPriceWithTaxChangeSinceAdded: any, discountedUnitPriceWithTax: any, proratedUnitPriceWithTax: any, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: any, amountWithTax: any, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | { errorCode: ErrorCode, message: string } };
|
|
|
+export type RemoveItemFromOrderMutation = { removeOrderLine: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array<string>, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | { errorCode: ErrorCode, message: string } };
|
|
|
|
|
|
export type GetShippingMethodsQueryVariables = Exact<{ [key: string]: never; }>;
|
|
|
|
|
|
|
|
|
-export type GetShippingMethodsQuery = { eligibleShippingMethods: Array<{ id: string, code: string, price: any, name: string, description: string }> };
|
|
|
+export type GetShippingMethodsQuery = { eligibleShippingMethods: Array<{ id: string, code: string, price: number, name: string, description: string }> };
|
|
|
|
|
|
export type SetShippingMethodMutationVariables = Exact<{
|
|
|
id: Array<Scalars['ID']> | Scalars['ID'];
|
|
|
}>;
|
|
|
|
|
|
|
|
|
-export type SetShippingMethodMutation = { setOrderShippingMethod: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { id: string, code: string, state: string, active: boolean, subTotal: any, subTotalWithTax: any, shipping: any, shippingWithTax: any, total: any, totalWithTax: any, couponCodes: Array<string>, discounts: Array<{ adjustmentSource: string, amount: any, amountWithTax: any, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: any, linePriceWithTax: any, unitPrice: any, unitPriceWithTax: any, unitPriceChangeSinceAdded: any, unitPriceWithTaxChangeSinceAdded: any, discountedUnitPriceWithTax: any, proratedUnitPriceWithTax: any, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: any, amountWithTax: any, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | { errorCode: ErrorCode, message: string } };
|
|
|
+export type SetShippingMethodMutation = { setOrderShippingMethod: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array<string>, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | { errorCode: ErrorCode, message: string } };
|
|
|
|
|
|
export type ActiveOrderCustomerFragment = { id: string, customer?: { id: string, emailAddress: string, firstName: string, lastName: string } | null, lines: Array<{ id: string }> };
|
|
|
|
|
|
@@ -3287,21 +3287,21 @@ export type GetOrderByCodeQueryVariables = Exact<{
|
|
|
}>;
|
|
|
|
|
|
|
|
|
-export type GetOrderByCodeQuery = { orderByCode?: { id: string, code: string, state: string, active: boolean, subTotal: any, subTotalWithTax: any, shipping: any, shippingWithTax: any, total: any, totalWithTax: any, couponCodes: Array<string>, discounts: Array<{ adjustmentSource: string, amount: any, amountWithTax: any, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: any, linePriceWithTax: any, unitPrice: any, unitPriceWithTax: any, unitPriceChangeSinceAdded: any, unitPriceWithTaxChangeSinceAdded: any, discountedUnitPriceWithTax: any, proratedUnitPriceWithTax: any, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: any, amountWithTax: any, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | null };
|
|
|
+export type GetOrderByCodeQuery = { orderByCode?: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array<string>, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | null };
|
|
|
|
|
|
export type GetOrderShopQueryVariables = Exact<{
|
|
|
id: Scalars['ID'];
|
|
|
}>;
|
|
|
|
|
|
|
|
|
-export type GetOrderShopQuery = { order?: { id: string, code: string, state: string, active: boolean, subTotal: any, subTotalWithTax: any, shipping: any, shippingWithTax: any, total: any, totalWithTax: any, couponCodes: Array<string>, discounts: Array<{ adjustmentSource: string, amount: any, amountWithTax: any, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: any, linePriceWithTax: any, unitPrice: any, unitPriceWithTax: any, unitPriceChangeSinceAdded: any, unitPriceWithTaxChangeSinceAdded: any, discountedUnitPriceWithTax: any, proratedUnitPriceWithTax: any, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: any, amountWithTax: any, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | null };
|
|
|
+export type GetOrderShopQuery = { order?: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array<string>, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | null };
|
|
|
|
|
|
export type GetOrderPromotionsByCodeQueryVariables = Exact<{
|
|
|
code: Scalars['String'];
|
|
|
}>;
|
|
|
|
|
|
|
|
|
-export type GetOrderPromotionsByCodeQuery = { orderByCode?: { id: string, code: string, state: string, active: boolean, subTotal: any, subTotalWithTax: any, shipping: any, shippingWithTax: any, total: any, totalWithTax: any, couponCodes: Array<string>, promotions: Array<{ id: string, name: string }>, discounts: Array<{ adjustmentSource: string, amount: any, amountWithTax: any, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: any, linePriceWithTax: any, unitPrice: any, unitPriceWithTax: any, unitPriceChangeSinceAdded: any, unitPriceWithTaxChangeSinceAdded: any, discountedUnitPriceWithTax: any, proratedUnitPriceWithTax: any, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: any, amountWithTax: any, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | null };
|
|
|
+export type GetOrderPromotionsByCodeQuery = { orderByCode?: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array<string>, promotions: Array<{ id: string, name: string }>, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | null };
|
|
|
|
|
|
export type GetAvailableCountriesQueryVariables = Exact<{ [key: string]: never; }>;
|
|
|
|
|
|
@@ -3313,7 +3313,7 @@ export type TransitionToStateMutationVariables = Exact<{
|
|
|
}>;
|
|
|
|
|
|
|
|
|
-export type TransitionToStateMutation = { transitionOrderToState?: { id: string, code: string, state: string, active: boolean, subTotal: any, subTotalWithTax: any, shipping: any, shippingWithTax: any, total: any, totalWithTax: any, couponCodes: Array<string>, discounts: Array<{ adjustmentSource: string, amount: any, amountWithTax: any, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: any, linePriceWithTax: any, unitPrice: any, unitPriceWithTax: any, unitPriceChangeSinceAdded: any, unitPriceWithTaxChangeSinceAdded: any, discountedUnitPriceWithTax: any, proratedUnitPriceWithTax: any, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: any, amountWithTax: any, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | { errorCode: ErrorCode, message: string, transitionError: string, fromState: string, toState: string } | null };
|
|
|
+export type TransitionToStateMutation = { transitionOrderToState?: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array<string>, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | { errorCode: ErrorCode, message: string, transitionError: string, fromState: string, toState: string } | null };
|
|
|
|
|
|
export type SetShippingAddressMutationVariables = Exact<{
|
|
|
input: CreateAddressInput;
|
|
|
@@ -3329,31 +3329,31 @@ export type SetBillingAddressMutationVariables = Exact<{
|
|
|
|
|
|
export type SetBillingAddressMutation = { setOrderBillingAddress: { errorCode: ErrorCode, message: string } | { billingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null } };
|
|
|
|
|
|
-export type TestOrderWithPaymentsFragment = { id: string, code: string, state: string, active: boolean, subTotal: any, subTotalWithTax: any, shipping: any, shippingWithTax: any, total: any, totalWithTax: any, couponCodes: Array<string>, payments?: Array<{ id: string, transactionId?: string | null, method: string, amount: any, state: string, metadata?: any | null }> | null, discounts: Array<{ adjustmentSource: string, amount: any, amountWithTax: any, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: any, linePriceWithTax: any, unitPrice: any, unitPriceWithTax: any, unitPriceChangeSinceAdded: any, unitPriceWithTaxChangeSinceAdded: any, discountedUnitPriceWithTax: any, proratedUnitPriceWithTax: any, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: any, amountWithTax: any, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } };
|
|
|
+export type TestOrderWithPaymentsFragment = { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array<string>, payments?: Array<{ id: string, transactionId?: string | null, method: string, amount: number, state: string, metadata?: any | null }> | null, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } };
|
|
|
|
|
|
export type GetActiveOrderWithPaymentsQueryVariables = Exact<{ [key: string]: never; }>;
|
|
|
|
|
|
|
|
|
-export type GetActiveOrderWithPaymentsQuery = { activeOrder?: { id: string, code: string, state: string, active: boolean, subTotal: any, subTotalWithTax: any, shipping: any, shippingWithTax: any, total: any, totalWithTax: any, couponCodes: Array<string>, payments?: Array<{ id: string, transactionId?: string | null, method: string, amount: any, state: string, metadata?: any | null }> | null, discounts: Array<{ adjustmentSource: string, amount: any, amountWithTax: any, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: any, linePriceWithTax: any, unitPrice: any, unitPriceWithTax: any, unitPriceChangeSinceAdded: any, unitPriceWithTaxChangeSinceAdded: any, discountedUnitPriceWithTax: any, proratedUnitPriceWithTax: any, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: any, amountWithTax: any, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | null };
|
|
|
+export type GetActiveOrderWithPaymentsQuery = { activeOrder?: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array<string>, payments?: Array<{ id: string, transactionId?: string | null, method: string, amount: number, state: string, metadata?: any | null }> | null, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | null };
|
|
|
|
|
|
export type AddPaymentToOrderMutationVariables = Exact<{
|
|
|
input: PaymentInput;
|
|
|
}>;
|
|
|
|
|
|
|
|
|
-export type AddPaymentToOrderMutation = { addPaymentToOrder: { errorCode: ErrorCode, message: string, eligibilityCheckerMessage?: string | null } | { errorCode: ErrorCode, message: string } | { id: string, code: string, state: string, active: boolean, subTotal: any, subTotalWithTax: any, shipping: any, shippingWithTax: any, total: any, totalWithTax: any, couponCodes: Array<string>, payments?: Array<{ id: string, transactionId?: string | null, method: string, amount: any, state: string, metadata?: any | null }> | null, discounts: Array<{ adjustmentSource: string, amount: any, amountWithTax: any, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: any, linePriceWithTax: any, unitPrice: any, unitPriceWithTax: any, unitPriceChangeSinceAdded: any, unitPriceWithTaxChangeSinceAdded: any, discountedUnitPriceWithTax: any, proratedUnitPriceWithTax: any, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: any, amountWithTax: any, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string, transitionError: string } | { errorCode: ErrorCode, message: string, paymentErrorMessage: string } | { errorCode: ErrorCode, message: string, paymentErrorMessage: string } };
|
|
|
+export type AddPaymentToOrderMutation = { addPaymentToOrder: { errorCode: ErrorCode, message: string, eligibilityCheckerMessage?: string | null } | { errorCode: ErrorCode, message: string } | { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array<string>, payments?: Array<{ id: string, transactionId?: string | null, method: string, amount: number, state: string, metadata?: any | null }> | null, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string, transitionError: string } | { errorCode: ErrorCode, message: string, paymentErrorMessage: string } | { errorCode: ErrorCode, message: string, paymentErrorMessage: string } };
|
|
|
|
|
|
export type GetActiveOrderPaymentsQueryVariables = Exact<{ [key: string]: never; }>;
|
|
|
|
|
|
|
|
|
-export type GetActiveOrderPaymentsQuery = { activeOrder?: { id: string, payments?: Array<{ id: string, transactionId?: string | null, method: string, amount: any, state: string, errorMessage?: string | null, metadata?: any | null }> | null } | null };
|
|
|
+export type GetActiveOrderPaymentsQuery = { activeOrder?: { id: string, payments?: Array<{ id: string, transactionId?: string | null, method: string, amount: number, state: string, errorMessage?: string | null, metadata?: any | null }> | null } | null };
|
|
|
|
|
|
export type GetOrderByCodeWithPaymentsQueryVariables = Exact<{
|
|
|
code: Scalars['String'];
|
|
|
}>;
|
|
|
|
|
|
|
|
|
-export type GetOrderByCodeWithPaymentsQuery = { orderByCode?: { id: string, code: string, state: string, active: boolean, subTotal: any, subTotalWithTax: any, shipping: any, shippingWithTax: any, total: any, totalWithTax: any, couponCodes: Array<string>, payments?: Array<{ id: string, transactionId?: string | null, method: string, amount: any, state: string, metadata?: any | null }> | null, discounts: Array<{ adjustmentSource: string, amount: any, amountWithTax: any, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: any, linePriceWithTax: any, unitPrice: any, unitPriceWithTax: any, unitPriceChangeSinceAdded: any, unitPriceWithTaxChangeSinceAdded: any, discountedUnitPriceWithTax: any, proratedUnitPriceWithTax: any, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: any, amountWithTax: any, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | null };
|
|
|
+export type GetOrderByCodeWithPaymentsQuery = { orderByCode?: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array<string>, payments?: Array<{ id: string, transactionId?: string | null, method: string, amount: number, state: string, metadata?: any | null }> | null, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | null };
|
|
|
|
|
|
export type GetActiveCustomerOrderWithItemFulfillmentsQueryVariables = Exact<{ [key: string]: never; }>;
|
|
|
|
|
|
@@ -3385,19 +3385,19 @@ export type ApplyCouponCodeMutationVariables = Exact<{
|
|
|
}>;
|
|
|
|
|
|
|
|
|
-export type ApplyCouponCodeMutation = { applyCouponCode: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { id: string, code: string, state: string, active: boolean, subTotal: any, subTotalWithTax: any, shipping: any, shippingWithTax: any, total: any, totalWithTax: any, couponCodes: Array<string>, discounts: Array<{ adjustmentSource: string, amount: any, amountWithTax: any, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: any, linePriceWithTax: any, unitPrice: any, unitPriceWithTax: any, unitPriceChangeSinceAdded: any, unitPriceWithTaxChangeSinceAdded: any, discountedUnitPriceWithTax: any, proratedUnitPriceWithTax: any, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: any, amountWithTax: any, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } };
|
|
|
+export type ApplyCouponCodeMutation = { applyCouponCode: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array<string>, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } };
|
|
|
|
|
|
export type RemoveCouponCodeMutationVariables = Exact<{
|
|
|
couponCode: Scalars['String'];
|
|
|
}>;
|
|
|
|
|
|
|
|
|
-export type RemoveCouponCodeMutation = { removeCouponCode?: { id: string, code: string, state: string, active: boolean, subTotal: any, subTotalWithTax: any, shipping: any, shippingWithTax: any, total: any, totalWithTax: any, couponCodes: Array<string>, discounts: Array<{ adjustmentSource: string, amount: any, amountWithTax: any, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: any, linePriceWithTax: any, unitPrice: any, unitPriceWithTax: any, unitPriceChangeSinceAdded: any, unitPriceWithTaxChangeSinceAdded: any, discountedUnitPriceWithTax: any, proratedUnitPriceWithTax: any, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: any, amountWithTax: any, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | null };
|
|
|
+export type RemoveCouponCodeMutation = { removeCouponCode?: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array<string>, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | null };
|
|
|
|
|
|
export type RemoveAllOrderLinesMutationVariables = Exact<{ [key: string]: never; }>;
|
|
|
|
|
|
|
|
|
-export type RemoveAllOrderLinesMutation = { removeAllOrderLines: { id: string, code: string, state: string, active: boolean, subTotal: any, subTotalWithTax: any, shipping: any, shippingWithTax: any, total: any, totalWithTax: any, couponCodes: Array<string>, discounts: Array<{ adjustmentSource: string, amount: any, amountWithTax: any, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: any, linePriceWithTax: any, unitPrice: any, unitPriceWithTax: any, unitPriceChangeSinceAdded: any, unitPriceWithTaxChangeSinceAdded: any, discountedUnitPriceWithTax: any, proratedUnitPriceWithTax: any, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: any, amountWithTax: any, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | { errorCode: ErrorCode, message: string } };
|
|
|
+export type RemoveAllOrderLinesMutation = { removeAllOrderLines: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array<string>, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | { errorCode: ErrorCode, message: string } };
|
|
|
|
|
|
export type GetEligiblePaymentMethodsQueryVariables = Exact<{ [key: string]: never; }>;
|
|
|
|
|
|
@@ -3423,4 +3423,4 @@ export type GetActiveCustomerWithOrdersProductPriceQueryVariables = Exact<{
|
|
|
}>;
|
|
|
|
|
|
|
|
|
-export type GetActiveCustomerWithOrdersProductPriceQuery = { activeCustomer?: { orders: { items: Array<{ lines: Array<{ linePrice: any, productVariant: { id: string, name: string, price: any } }> }> } } | null };
|
|
|
+export type GetActiveCustomerWithOrdersProductPriceQuery = { activeCustomer?: { orders: { items: Array<{ lines: Array<{ linePrice: number, productVariant: { id: string, name: string, price: number } }> }> } } | null };
|