|
|
@@ -172,7 +172,7 @@ export type Cancellation = Node &
|
|
|
orderLine: OrderLine;
|
|
|
};
|
|
|
|
|
|
-export type CancelOrderLinesInput = {
|
|
|
+export type CancelOrderInput = {
|
|
|
lines: Array<OrderLineInput>;
|
|
|
reason?: Maybe<Scalars['String']>;
|
|
|
};
|
|
|
@@ -453,12 +453,6 @@ export type CreateFacetValueWithFacetInput = {
|
|
|
translations: Array<FacetValueTranslationInput>;
|
|
|
};
|
|
|
|
|
|
-export type CreateFulfillmentInput = {
|
|
|
- lines: Array<OrderLineInput>;
|
|
|
- method: Scalars['String'];
|
|
|
- trackingCode?: Maybe<Scalars['String']>;
|
|
|
-};
|
|
|
-
|
|
|
export type CreateProductInput = {
|
|
|
featuredAssetId?: Maybe<Scalars['ID']>;
|
|
|
assetIds?: Maybe<Array<Scalars['ID']>>;
|
|
|
@@ -1052,6 +1046,12 @@ export type Fulfillment = Node & {
|
|
|
trackingCode?: Maybe<Scalars['String']>;
|
|
|
};
|
|
|
|
|
|
+export type FulfillOrderInput = {
|
|
|
+ lines: Array<OrderLineInput>;
|
|
|
+ method: Scalars['String'];
|
|
|
+ trackingCode?: Maybe<Scalars['String']>;
|
|
|
+};
|
|
|
+
|
|
|
export type GlobalSettings = {
|
|
|
__typename?: 'GlobalSettings';
|
|
|
id: Scalars['ID'];
|
|
|
@@ -1539,9 +1539,11 @@ export type Mutation = {
|
|
|
deleteFacetValues: Array<DeletionResponse>;
|
|
|
updateGlobalSettings: GlobalSettings;
|
|
|
importProducts?: Maybe<ImportInfo>;
|
|
|
- settlePayment?: Maybe<Payment>;
|
|
|
- createFulfillment?: Maybe<Fulfillment>;
|
|
|
- cancelOrderLines: Array<OrderLine>;
|
|
|
+ settlePayment: Payment;
|
|
|
+ fulfillOrder: Fulfillment;
|
|
|
+ cancelOrder: Order;
|
|
|
+ refundOrder: Refund;
|
|
|
+ settleRefund: Refund;
|
|
|
/** Update an existing PaymentMethod */
|
|
|
updatePaymentMethod: PaymentMethod;
|
|
|
/** Create a new ProductOptionGroup */
|
|
|
@@ -1563,25 +1565,25 @@ export type Mutation = {
|
|
|
generateVariantsForProduct: Product;
|
|
|
/** Update existing ProductVariants */
|
|
|
updateProductVariants: Array<Maybe<ProductVariant>>;
|
|
|
+ createPromotion: Promotion;
|
|
|
+ updatePromotion: Promotion;
|
|
|
+ deletePromotion: DeletionResponse;
|
|
|
/** Create a new Role */
|
|
|
createRole: Role;
|
|
|
/** Update an existing Role */
|
|
|
updateRole: Role;
|
|
|
- createPromotion: Promotion;
|
|
|
- updatePromotion: Promotion;
|
|
|
- deletePromotion: DeletionResponse;
|
|
|
/** Create a new ShippingMethod */
|
|
|
createShippingMethod: ShippingMethod;
|
|
|
/** Update an existing ShippingMethod */
|
|
|
updateShippingMethod: ShippingMethod;
|
|
|
- /** Create a new TaxRate */
|
|
|
- createTaxRate: TaxRate;
|
|
|
- /** Update an existing TaxRate */
|
|
|
- updateTaxRate: TaxRate;
|
|
|
/** Create a new TaxCategory */
|
|
|
createTaxCategory: TaxCategory;
|
|
|
/** Update an existing TaxCategory */
|
|
|
updateTaxCategory: TaxCategory;
|
|
|
+ /** Create a new TaxRate */
|
|
|
+ createTaxRate: TaxRate;
|
|
|
+ /** Update an existing TaxRate */
|
|
|
+ updateTaxRate: TaxRate;
|
|
|
/** Create a new Zone */
|
|
|
createZone: Zone;
|
|
|
/** Update an existing Zone */
|
|
|
@@ -1731,12 +1733,20 @@ export type MutationSettlePaymentArgs = {
|
|
|
id: Scalars['ID'];
|
|
|
};
|
|
|
|
|
|
-export type MutationCreateFulfillmentArgs = {
|
|
|
- input: CreateFulfillmentInput;
|
|
|
+export type MutationFulfillOrderArgs = {
|
|
|
+ input: FulfillOrderInput;
|
|
|
};
|
|
|
|
|
|
-export type MutationCancelOrderLinesArgs = {
|
|
|
- input: CancelOrderLinesInput;
|
|
|
+export type MutationCancelOrderArgs = {
|
|
|
+ input: CancelOrderInput;
|
|
|
+};
|
|
|
+
|
|
|
+export type MutationRefundOrderArgs = {
|
|
|
+ input: RefundOrderInput;
|
|
|
+};
|
|
|
+
|
|
|
+export type MutationSettleRefundArgs = {
|
|
|
+ input: SettleRefundInput;
|
|
|
};
|
|
|
|
|
|
export type MutationUpdatePaymentMethodArgs = {
|
|
|
@@ -1784,14 +1794,6 @@ export type MutationUpdateProductVariantsArgs = {
|
|
|
input: Array<UpdateProductVariantInput>;
|
|
|
};
|
|
|
|
|
|
-export type MutationCreateRoleArgs = {
|
|
|
- input: CreateRoleInput;
|
|
|
-};
|
|
|
-
|
|
|
-export type MutationUpdateRoleArgs = {
|
|
|
- input: UpdateRoleInput;
|
|
|
-};
|
|
|
-
|
|
|
export type MutationCreatePromotionArgs = {
|
|
|
input: CreatePromotionInput;
|
|
|
};
|
|
|
@@ -1804,20 +1806,20 @@ export type MutationDeletePromotionArgs = {
|
|
|
id: Scalars['ID'];
|
|
|
};
|
|
|
|
|
|
-export type MutationCreateShippingMethodArgs = {
|
|
|
- input: CreateShippingMethodInput;
|
|
|
+export type MutationCreateRoleArgs = {
|
|
|
+ input: CreateRoleInput;
|
|
|
};
|
|
|
|
|
|
-export type MutationUpdateShippingMethodArgs = {
|
|
|
- input: UpdateShippingMethodInput;
|
|
|
+export type MutationUpdateRoleArgs = {
|
|
|
+ input: UpdateRoleInput;
|
|
|
};
|
|
|
|
|
|
-export type MutationCreateTaxRateArgs = {
|
|
|
- input: CreateTaxRateInput;
|
|
|
+export type MutationCreateShippingMethodArgs = {
|
|
|
+ input: CreateShippingMethodInput;
|
|
|
};
|
|
|
|
|
|
-export type MutationUpdateTaxRateArgs = {
|
|
|
- input: UpdateTaxRateInput;
|
|
|
+export type MutationUpdateShippingMethodArgs = {
|
|
|
+ input: UpdateShippingMethodInput;
|
|
|
};
|
|
|
|
|
|
export type MutationCreateTaxCategoryArgs = {
|
|
|
@@ -1828,6 +1830,14 @@ export type MutationUpdateTaxCategoryArgs = {
|
|
|
input: UpdateTaxCategoryInput;
|
|
|
};
|
|
|
|
|
|
+export type MutationCreateTaxRateArgs = {
|
|
|
+ input: CreateTaxRateInput;
|
|
|
+};
|
|
|
+
|
|
|
+export type MutationUpdateTaxRateArgs = {
|
|
|
+ input: UpdateTaxRateInput;
|
|
|
+};
|
|
|
+
|
|
|
export type MutationCreateZoneArgs = {
|
|
|
input: CreateZoneInput;
|
|
|
};
|
|
|
@@ -1883,6 +1893,7 @@ export type Order = Node & {
|
|
|
lines: Array<OrderLine>;
|
|
|
adjustments: Array<Adjustment>;
|
|
|
payments?: Maybe<Array<Payment>>;
|
|
|
+ refunds?: Maybe<Array<Refund>>;
|
|
|
fulfillments?: Maybe<Array<Fulfillment>>;
|
|
|
subTotalBeforeTax: Scalars['Int'];
|
|
|
subTotal: Scalars['Int'];
|
|
|
@@ -2356,10 +2367,10 @@ export type Query = {
|
|
|
facets: FacetList;
|
|
|
facet?: Maybe<Facet>;
|
|
|
globalSettings: GlobalSettings;
|
|
|
- order?: Maybe<Order>;
|
|
|
- orders: OrderList;
|
|
|
job?: Maybe<JobInfo>;
|
|
|
jobs: Array<JobInfo>;
|
|
|
+ order?: Maybe<Order>;
|
|
|
+ orders: OrderList;
|
|
|
paymentMethods: PaymentMethodList;
|
|
|
paymentMethod?: Maybe<PaymentMethod>;
|
|
|
productOptionGroups: Array<ProductOptionGroup>;
|
|
|
@@ -2368,19 +2379,19 @@ export type Query = {
|
|
|
products: ProductList;
|
|
|
/** Get a Product either by id or slug. If neither id nor slug is speicified, an error will result. */
|
|
|
product?: Maybe<Product>;
|
|
|
- roles: RoleList;
|
|
|
- role?: Maybe<Role>;
|
|
|
promotion?: Maybe<Promotion>;
|
|
|
promotions: PromotionList;
|
|
|
adjustmentOperations: AdjustmentOperations;
|
|
|
+ roles: RoleList;
|
|
|
+ role?: Maybe<Role>;
|
|
|
shippingMethods: ShippingMethodList;
|
|
|
shippingMethod?: Maybe<ShippingMethod>;
|
|
|
shippingEligibilityCheckers: Array<ConfigurableOperation>;
|
|
|
shippingCalculators: Array<ConfigurableOperation>;
|
|
|
- taxRates: TaxRateList;
|
|
|
- taxRate?: Maybe<TaxRate>;
|
|
|
taxCategories: Array<TaxCategory>;
|
|
|
taxCategory?: Maybe<TaxCategory>;
|
|
|
+ taxRates: TaxRateList;
|
|
|
+ taxRate?: Maybe<TaxRate>;
|
|
|
zones: Array<Zone>;
|
|
|
zone?: Maybe<Zone>;
|
|
|
};
|
|
|
@@ -2445,14 +2456,6 @@ export type QueryFacetArgs = {
|
|
|
languageCode?: Maybe<LanguageCode>;
|
|
|
};
|
|
|
|
|
|
-export type QueryOrderArgs = {
|
|
|
- id: Scalars['ID'];
|
|
|
-};
|
|
|
-
|
|
|
-export type QueryOrdersArgs = {
|
|
|
- options?: Maybe<OrderListOptions>;
|
|
|
-};
|
|
|
-
|
|
|
export type QueryJobArgs = {
|
|
|
jobId: Scalars['String'];
|
|
|
};
|
|
|
@@ -2461,6 +2464,14 @@ export type QueryJobsArgs = {
|
|
|
input?: Maybe<JobListInput>;
|
|
|
};
|
|
|
|
|
|
+export type QueryOrderArgs = {
|
|
|
+ id: Scalars['ID'];
|
|
|
+};
|
|
|
+
|
|
|
+export type QueryOrdersArgs = {
|
|
|
+ options?: Maybe<OrderListOptions>;
|
|
|
+};
|
|
|
+
|
|
|
export type QueryPaymentMethodsArgs = {
|
|
|
options?: Maybe<PaymentMethodListOptions>;
|
|
|
};
|
|
|
@@ -2494,14 +2505,6 @@ export type QueryProductArgs = {
|
|
|
languageCode?: Maybe<LanguageCode>;
|
|
|
};
|
|
|
|
|
|
-export type QueryRolesArgs = {
|
|
|
- options?: Maybe<RoleListOptions>;
|
|
|
-};
|
|
|
-
|
|
|
-export type QueryRoleArgs = {
|
|
|
- id: Scalars['ID'];
|
|
|
-};
|
|
|
-
|
|
|
export type QueryPromotionArgs = {
|
|
|
id: Scalars['ID'];
|
|
|
};
|
|
|
@@ -2510,6 +2513,14 @@ export type QueryPromotionsArgs = {
|
|
|
options?: Maybe<PromotionListOptions>;
|
|
|
};
|
|
|
|
|
|
+export type QueryRolesArgs = {
|
|
|
+ options?: Maybe<RoleListOptions>;
|
|
|
+};
|
|
|
+
|
|
|
+export type QueryRoleArgs = {
|
|
|
+ id: Scalars['ID'];
|
|
|
+};
|
|
|
+
|
|
|
export type QueryShippingMethodsArgs = {
|
|
|
options?: Maybe<ShippingMethodListOptions>;
|
|
|
};
|
|
|
@@ -2518,6 +2529,10 @@ export type QueryShippingMethodArgs = {
|
|
|
id: Scalars['ID'];
|
|
|
};
|
|
|
|
|
|
+export type QueryTaxCategoryArgs = {
|
|
|
+ id: Scalars['ID'];
|
|
|
+};
|
|
|
+
|
|
|
export type QueryTaxRatesArgs = {
|
|
|
options?: Maybe<TaxRateListOptions>;
|
|
|
};
|
|
|
@@ -2526,12 +2541,33 @@ export type QueryTaxRateArgs = {
|
|
|
id: Scalars['ID'];
|
|
|
};
|
|
|
|
|
|
-export type QueryTaxCategoryArgs = {
|
|
|
+export type QueryZoneArgs = {
|
|
|
id: Scalars['ID'];
|
|
|
};
|
|
|
|
|
|
-export type QueryZoneArgs = {
|
|
|
+export type Refund = Node & {
|
|
|
+ __typename?: 'Refund';
|
|
|
id: Scalars['ID'];
|
|
|
+ createdAt: Scalars['DateTime'];
|
|
|
+ updatedAt: Scalars['DateTime'];
|
|
|
+ items: Scalars['Int'];
|
|
|
+ shipping: Scalars['Int'];
|
|
|
+ adjustment: Scalars['Int'];
|
|
|
+ total: Scalars['Int'];
|
|
|
+ method?: Maybe<Scalars['String']>;
|
|
|
+ state: Scalars['String'];
|
|
|
+ transactionId?: Maybe<Scalars['String']>;
|
|
|
+ orderItems: Array<OrderItem>;
|
|
|
+ paymentId: Scalars['ID'];
|
|
|
+ metadata?: Maybe<Scalars['JSON']>;
|
|
|
+};
|
|
|
+
|
|
|
+export type RefundOrderInput = {
|
|
|
+ lines: Array<OrderLineInput>;
|
|
|
+ shipping: Scalars['Int'];
|
|
|
+ adjustment: Scalars['Int'];
|
|
|
+ paymentId: Scalars['ID'];
|
|
|
+ reason?: Maybe<Scalars['String']>;
|
|
|
};
|
|
|
|
|
|
export type Return = Node &
|
|
|
@@ -2657,6 +2693,11 @@ export type ServerConfig = {
|
|
|
customFields?: Maybe<Scalars['JSON']>;
|
|
|
};
|
|
|
|
|
|
+export type SettleRefundInput = {
|
|
|
+ id: Scalars['ID'];
|
|
|
+ transactionId: Scalars['String'];
|
|
|
+};
|
|
|
+
|
|
|
export type ShippingMethod = Node & {
|
|
|
__typename?: 'ShippingMethod';
|
|
|
id: Scalars['ID'];
|
|
|
@@ -3959,19 +4000,17 @@ export type SettlePaymentMutationVariables = {
|
|
|
};
|
|
|
|
|
|
export type SettlePaymentMutation = { __typename?: 'Mutation' } & {
|
|
|
- settlePayment: Maybe<{ __typename?: 'Payment' } & Pick<Payment, 'id' | 'state' | 'metadata'>>;
|
|
|
+ settlePayment: { __typename?: 'Payment' } & Pick<Payment, 'id' | 'state' | 'metadata'>;
|
|
|
};
|
|
|
|
|
|
export type CreateFulfillmentMutationVariables = {
|
|
|
- input: CreateFulfillmentInput;
|
|
|
+ input: FulfillOrderInput;
|
|
|
};
|
|
|
|
|
|
export type CreateFulfillmentMutation = { __typename?: 'Mutation' } & {
|
|
|
- createFulfillment: Maybe<
|
|
|
- { __typename?: 'Fulfillment' } & Pick<Fulfillment, 'id' | 'method' | 'trackingCode'> & {
|
|
|
- orderItems: Array<{ __typename?: 'OrderItem' } & Pick<OrderItem, 'id'>>;
|
|
|
- }
|
|
|
- >;
|
|
|
+ fulfillOrder: { __typename?: 'Fulfillment' } & Pick<Fulfillment, 'id' | 'method' | 'trackingCode'> & {
|
|
|
+ orderItems: Array<{ __typename?: 'OrderItem' } & Pick<OrderItem, 'id'>>;
|
|
|
+ };
|
|
|
};
|
|
|
|
|
|
export type GetOrderFulfillmentsQueryVariables = {
|
|
|
@@ -4021,14 +4060,38 @@ export type GetOrderFulfillmentItemsQuery = { __typename?: 'Query' } & {
|
|
|
};
|
|
|
|
|
|
export type CancelOrderMutationVariables = {
|
|
|
- input: CancelOrderLinesInput;
|
|
|
+ input: CancelOrderInput;
|
|
|
};
|
|
|
|
|
|
export type CancelOrderMutation = { __typename?: 'Mutation' } & {
|
|
|
- cancelOrderLines: Array<
|
|
|
- { __typename?: 'OrderLine' } & Pick<OrderLine, 'id' | 'quantity'> & {
|
|
|
- items: Array<{ __typename?: 'OrderItem' } & Pick<OrderItem, 'id' | 'cancelled'>>;
|
|
|
- }
|
|
|
+ cancelOrder: { __typename?: 'Order' } & Pick<Order, 'id'> & {
|
|
|
+ lines: Array<
|
|
|
+ { __typename?: 'OrderLine' } & Pick<OrderLine, 'quantity'> & {
|
|
|
+ items: Array<{ __typename?: 'OrderItem' } & Pick<OrderItem, 'id' | 'cancelled'>>;
|
|
|
+ }
|
|
|
+ >;
|
|
|
+ };
|
|
|
+};
|
|
|
+
|
|
|
+export type RefundOrderMutationVariables = {
|
|
|
+ input: RefundOrderInput;
|
|
|
+};
|
|
|
+
|
|
|
+export type RefundOrderMutation = { __typename?: 'Mutation' } & {
|
|
|
+ refundOrder: { __typename?: 'Refund' } & Pick<
|
|
|
+ Refund,
|
|
|
+ 'id' | 'state' | 'items' | 'transactionId' | 'shipping' | 'total' | 'metadata'
|
|
|
+ >;
|
|
|
+};
|
|
|
+
|
|
|
+export type SettleRefundMutationVariables = {
|
|
|
+ input: SettleRefundInput;
|
|
|
+};
|
|
|
+
|
|
|
+export type SettleRefundMutation = { __typename?: 'Mutation' } & {
|
|
|
+ settleRefund: { __typename?: 'Refund' } & Pick<
|
|
|
+ Refund,
|
|
|
+ 'id' | 'state' | 'items' | 'transactionId' | 'shipping' | 'total' | 'metadata'
|
|
|
>;
|
|
|
};
|
|
|
|
|
|
@@ -4956,16 +5019,14 @@ export namespace GetOrder {
|
|
|
export namespace SettlePayment {
|
|
|
export type Variables = SettlePaymentMutationVariables;
|
|
|
export type Mutation = SettlePaymentMutation;
|
|
|
- export type SettlePayment = NonNullable<SettlePaymentMutation['settlePayment']>;
|
|
|
+ export type SettlePayment = SettlePaymentMutation['settlePayment'];
|
|
|
}
|
|
|
|
|
|
export namespace CreateFulfillment {
|
|
|
export type Variables = CreateFulfillmentMutationVariables;
|
|
|
export type Mutation = CreateFulfillmentMutation;
|
|
|
- export type CreateFulfillment = NonNullable<CreateFulfillmentMutation['createFulfillment']>;
|
|
|
- export type OrderItems = NonNullable<
|
|
|
- (NonNullable<CreateFulfillmentMutation['createFulfillment']>)['orderItems'][0]
|
|
|
- >;
|
|
|
+ export type FulfillOrder = CreateFulfillmentMutation['fulfillOrder'];
|
|
|
+ export type OrderItems = NonNullable<CreateFulfillmentMutation['fulfillOrder']['orderItems'][0]>;
|
|
|
}
|
|
|
|
|
|
export namespace GetOrderFulfillments {
|
|
|
@@ -5004,8 +5065,23 @@ export namespace GetOrderFulfillmentItems {
|
|
|
export namespace CancelOrder {
|
|
|
export type Variables = CancelOrderMutationVariables;
|
|
|
export type Mutation = CancelOrderMutation;
|
|
|
- export type CancelOrderLines = NonNullable<CancelOrderMutation['cancelOrderLines'][0]>;
|
|
|
- export type Items = NonNullable<(NonNullable<CancelOrderMutation['cancelOrderLines'][0]>)['items'][0]>;
|
|
|
+ export type CancelOrder = CancelOrderMutation['cancelOrder'];
|
|
|
+ export type Lines = NonNullable<CancelOrderMutation['cancelOrder']['lines'][0]>;
|
|
|
+ export type Items = NonNullable<
|
|
|
+ (NonNullable<CancelOrderMutation['cancelOrder']['lines'][0]>)['items'][0]
|
|
|
+ >;
|
|
|
+}
|
|
|
+
|
|
|
+export namespace RefundOrder {
|
|
|
+ export type Variables = RefundOrderMutationVariables;
|
|
|
+ export type Mutation = RefundOrderMutation;
|
|
|
+ export type RefundOrder = RefundOrderMutation['refundOrder'];
|
|
|
+}
|
|
|
+
|
|
|
+export namespace SettleRefund {
|
|
|
+ export type Variables = SettleRefundMutationVariables;
|
|
|
+ export type Mutation = SettleRefundMutation;
|
|
|
+ export type SettleRefund = SettleRefundMutation['settleRefund'];
|
|
|
}
|
|
|
|
|
|
export namespace AddOptionGroupToProduct {
|