|
|
@@ -1063,6 +1063,50 @@ export type GlobalSettings = {
|
|
|
customFields?: Maybe<Scalars['JSON']>;
|
|
|
};
|
|
|
|
|
|
+export type HistoryEntry = Node & {
|
|
|
+ __typename?: 'HistoryEntry';
|
|
|
+ id: Scalars['ID'];
|
|
|
+ createdAt: Scalars['DateTime'];
|
|
|
+ updatedAt: Scalars['DateTime'];
|
|
|
+ type: HistoryEntryType;
|
|
|
+ administrator?: Maybe<Administrator>;
|
|
|
+ data: Scalars['JSON'];
|
|
|
+};
|
|
|
+
|
|
|
+export type HistoryEntryFilterParameter = {
|
|
|
+ createdAt?: Maybe<DateOperators>;
|
|
|
+ updatedAt?: Maybe<DateOperators>;
|
|
|
+ type?: Maybe<StringOperators>;
|
|
|
+};
|
|
|
+
|
|
|
+export type HistoryEntryList = PaginatedList & {
|
|
|
+ __typename?: 'HistoryEntryList';
|
|
|
+ items: Array<HistoryEntry>;
|
|
|
+ totalItems: Scalars['Int'];
|
|
|
+};
|
|
|
+
|
|
|
+export type HistoryEntryListOptions = {
|
|
|
+ skip?: Maybe<Scalars['Int']>;
|
|
|
+ take?: Maybe<Scalars['Int']>;
|
|
|
+ sort?: Maybe<HistoryEntrySortParameter>;
|
|
|
+ filter?: Maybe<HistoryEntryFilterParameter>;
|
|
|
+};
|
|
|
+
|
|
|
+export type HistoryEntrySortParameter = {
|
|
|
+ id?: Maybe<SortOrder>;
|
|
|
+ createdAt?: Maybe<SortOrder>;
|
|
|
+ updatedAt?: Maybe<SortOrder>;
|
|
|
+};
|
|
|
+
|
|
|
+export enum HistoryEntryType {
|
|
|
+ ORDER_STATE_TRANSITION = 'ORDER_STATE_TRANSITION',
|
|
|
+ ORDER_PAYMENT_TRANSITION = 'ORDER_PAYMENT_TRANSITION',
|
|
|
+ ORDER_FULLFILLMENT = 'ORDER_FULLFILLMENT',
|
|
|
+ ORDER_CANCELLATION = 'ORDER_CANCELLATION',
|
|
|
+ ORDER_REFUND_TRANSITION = 'ORDER_REFUND_TRANSITION',
|
|
|
+ ORDER_NOTE = 'ORDER_NOTE',
|
|
|
+}
|
|
|
+
|
|
|
export type ImportInfo = {
|
|
|
__typename?: 'ImportInfo';
|
|
|
errors?: Maybe<Array<Scalars['String']>>;
|
|
|
@@ -1537,8 +1581,8 @@ export type Mutation = {
|
|
|
updateFacetValues: Array<FacetValue>;
|
|
|
/** Delete one or more FacetValues */
|
|
|
deleteFacetValues: Array<DeletionResponse>;
|
|
|
- importProducts?: Maybe<ImportInfo>;
|
|
|
updateGlobalSettings: GlobalSettings;
|
|
|
+ importProducts?: Maybe<ImportInfo>;
|
|
|
settlePayment: Payment;
|
|
|
fulfillOrder: Fulfillment;
|
|
|
cancelOrder: Order;
|
|
|
@@ -1550,6 +1594,7 @@ export type Mutation = {
|
|
|
createProductOptionGroup: ProductOptionGroup;
|
|
|
/** Update an existing ProductOptionGroup */
|
|
|
updateProductOptionGroup: ProductOptionGroup;
|
|
|
+ reindex: JobInfo;
|
|
|
/** Create a new Product */
|
|
|
createProduct: Product;
|
|
|
/** Update an existing Product */
|
|
|
@@ -1564,7 +1609,6 @@ export type Mutation = {
|
|
|
generateVariantsForProduct: Product;
|
|
|
/** Update existing ProductVariants */
|
|
|
updateProductVariants: Array<Maybe<ProductVariant>>;
|
|
|
- reindex: JobInfo;
|
|
|
createPromotion: Promotion;
|
|
|
updatePromotion: Promotion;
|
|
|
deletePromotion: DeletionResponse;
|
|
|
@@ -1576,14 +1620,14 @@ export type Mutation = {
|
|
|
createShippingMethod: ShippingMethod;
|
|
|
/** Update an existing ShippingMethod */
|
|
|
updateShippingMethod: ShippingMethod;
|
|
|
- /** 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 TaxCategory */
|
|
|
+ createTaxCategory: TaxCategory;
|
|
|
+ /** Update an existing TaxCategory */
|
|
|
+ updateTaxCategory: TaxCategory;
|
|
|
/** Create a new Zone */
|
|
|
createZone: Zone;
|
|
|
/** Update an existing Zone */
|
|
|
@@ -1721,14 +1765,14 @@ export type MutationDeleteFacetValuesArgs = {
|
|
|
force?: Maybe<Scalars['Boolean']>;
|
|
|
};
|
|
|
|
|
|
-export type MutationImportProductsArgs = {
|
|
|
- csvFile: Scalars['Upload'];
|
|
|
-};
|
|
|
-
|
|
|
export type MutationUpdateGlobalSettingsArgs = {
|
|
|
input: UpdateGlobalSettingsInput;
|
|
|
};
|
|
|
|
|
|
+export type MutationImportProductsArgs = {
|
|
|
+ csvFile: Scalars['Upload'];
|
|
|
+};
|
|
|
+
|
|
|
export type MutationSettlePaymentArgs = {
|
|
|
id: Scalars['ID'];
|
|
|
};
|
|
|
@@ -1822,14 +1866,6 @@ export type MutationUpdateShippingMethodArgs = {
|
|
|
input: UpdateShippingMethodInput;
|
|
|
};
|
|
|
|
|
|
-export type MutationCreateTaxCategoryArgs = {
|
|
|
- input: CreateTaxCategoryInput;
|
|
|
-};
|
|
|
-
|
|
|
-export type MutationUpdateTaxCategoryArgs = {
|
|
|
- input: UpdateTaxCategoryInput;
|
|
|
-};
|
|
|
-
|
|
|
export type MutationCreateTaxRateArgs = {
|
|
|
input: CreateTaxRateInput;
|
|
|
};
|
|
|
@@ -1838,6 +1874,14 @@ export type MutationUpdateTaxRateArgs = {
|
|
|
input: UpdateTaxRateInput;
|
|
|
};
|
|
|
|
|
|
+export type MutationCreateTaxCategoryArgs = {
|
|
|
+ input: CreateTaxCategoryInput;
|
|
|
+};
|
|
|
+
|
|
|
+export type MutationUpdateTaxCategoryArgs = {
|
|
|
+ input: UpdateTaxCategoryInput;
|
|
|
+};
|
|
|
+
|
|
|
export type MutationCreateZoneArgs = {
|
|
|
input: CreateZoneInput;
|
|
|
};
|
|
|
@@ -1902,6 +1946,11 @@ export type Order = Node & {
|
|
|
shippingMethod?: Maybe<ShippingMethod>;
|
|
|
totalBeforeTax: Scalars['Int'];
|
|
|
total: Scalars['Int'];
|
|
|
+ history: HistoryEntryList;
|
|
|
+};
|
|
|
+
|
|
|
+export type OrderHistoryArgs = {
|
|
|
+ options?: Maybe<HistoryEntryListOptions>;
|
|
|
};
|
|
|
|
|
|
export type OrderAddress = {
|
|
|
@@ -2376,10 +2425,10 @@ export type Query = {
|
|
|
paymentMethod?: Maybe<PaymentMethod>;
|
|
|
productOptionGroups: Array<ProductOptionGroup>;
|
|
|
productOptionGroup?: Maybe<ProductOptionGroup>;
|
|
|
+ search: SearchResponse;
|
|
|
products: ProductList;
|
|
|
/** Get a Product either by id or slug. If neither id nor slug is speicified, an error will result. */
|
|
|
product?: Maybe<Product>;
|
|
|
- search: SearchResponse;
|
|
|
promotion?: Maybe<Promotion>;
|
|
|
promotions: PromotionList;
|
|
|
adjustmentOperations: AdjustmentOperations;
|
|
|
@@ -2389,10 +2438,10 @@ export type Query = {
|
|
|
shippingMethod?: Maybe<ShippingMethod>;
|
|
|
shippingEligibilityCheckers: Array<ConfigurableOperation>;
|
|
|
shippingCalculators: Array<ConfigurableOperation>;
|
|
|
- taxCategories: Array<TaxCategory>;
|
|
|
- taxCategory?: Maybe<TaxCategory>;
|
|
|
taxRates: TaxRateList;
|
|
|
taxRate?: Maybe<TaxRate>;
|
|
|
+ taxCategories: Array<TaxCategory>;
|
|
|
+ taxCategory?: Maybe<TaxCategory>;
|
|
|
zones: Array<Zone>;
|
|
|
zone?: Maybe<Zone>;
|
|
|
};
|
|
|
@@ -2491,6 +2540,10 @@ export type QueryProductOptionGroupArgs = {
|
|
|
languageCode?: Maybe<LanguageCode>;
|
|
|
};
|
|
|
|
|
|
+export type QuerySearchArgs = {
|
|
|
+ input: SearchInput;
|
|
|
+};
|
|
|
+
|
|
|
export type QueryProductsArgs = {
|
|
|
languageCode?: Maybe<LanguageCode>;
|
|
|
options?: Maybe<ProductListOptions>;
|
|
|
@@ -2502,10 +2555,6 @@ export type QueryProductArgs = {
|
|
|
languageCode?: Maybe<LanguageCode>;
|
|
|
};
|
|
|
|
|
|
-export type QuerySearchArgs = {
|
|
|
- input: SearchInput;
|
|
|
-};
|
|
|
-
|
|
|
export type QueryPromotionArgs = {
|
|
|
id: Scalars['ID'];
|
|
|
};
|
|
|
@@ -2530,10 +2579,6 @@ export type QueryShippingMethodArgs = {
|
|
|
id: Scalars['ID'];
|
|
|
};
|
|
|
|
|
|
-export type QueryTaxCategoryArgs = {
|
|
|
- id: Scalars['ID'];
|
|
|
-};
|
|
|
-
|
|
|
export type QueryTaxRatesArgs = {
|
|
|
options?: Maybe<TaxRateListOptions>;
|
|
|
};
|
|
|
@@ -2542,6 +2587,10 @@ export type QueryTaxRateArgs = {
|
|
|
id: Scalars['ID'];
|
|
|
};
|
|
|
|
|
|
+export type QueryTaxCategoryArgs = {
|
|
|
+ id: Scalars['ID'];
|
|
|
+};
|
|
|
+
|
|
|
export type QueryZoneArgs = {
|
|
|
id: Scalars['ID'];
|
|
|
};
|
|
|
@@ -2558,6 +2607,7 @@ export type Refund = Node & {
|
|
|
method?: Maybe<Scalars['String']>;
|
|
|
state: Scalars['String'];
|
|
|
transactionId?: Maybe<Scalars['String']>;
|
|
|
+ reason?: Maybe<Scalars['String']>;
|
|
|
orderItems: Array<OrderItem>;
|
|
|
paymentId: Scalars['ID'];
|
|
|
metadata?: Maybe<Scalars['JSON']>;
|
|
|
@@ -4096,6 +4146,27 @@ export type SettleRefundMutation = { __typename?: 'Mutation' } & {
|
|
|
>;
|
|
|
};
|
|
|
|
|
|
+export type GetOrderHistoryQueryVariables = {
|
|
|
+ id: Scalars['ID'];
|
|
|
+ options?: Maybe<HistoryEntryListOptions>;
|
|
|
+};
|
|
|
+
|
|
|
+export type GetOrderHistoryQuery = { __typename?: 'Query' } & {
|
|
|
+ order: Maybe<
|
|
|
+ { __typename?: 'Order' } & Pick<Order, 'id'> & {
|
|
|
+ history: { __typename?: 'HistoryEntryList' } & Pick<HistoryEntryList, 'totalItems'> & {
|
|
|
+ items: Array<
|
|
|
+ { __typename?: 'HistoryEntry' } & Pick<HistoryEntry, 'id' | 'type' | 'data'> & {
|
|
|
+ administrator: Maybe<
|
|
|
+ { __typename?: 'Administrator' } & Pick<Administrator, 'id'>
|
|
|
+ >;
|
|
|
+ }
|
|
|
+ >;
|
|
|
+ };
|
|
|
+ }
|
|
|
+ >;
|
|
|
+};
|
|
|
+
|
|
|
export type AddOptionGroupToProductMutationVariables = {
|
|
|
productId: Scalars['ID'];
|
|
|
optionGroupId: Scalars['ID'];
|
|
|
@@ -5085,6 +5156,17 @@ export namespace SettleRefund {
|
|
|
export type SettleRefund = SettleRefundMutation['settleRefund'];
|
|
|
}
|
|
|
|
|
|
+export namespace GetOrderHistory {
|
|
|
+ export type Variables = GetOrderHistoryQueryVariables;
|
|
|
+ export type Query = GetOrderHistoryQuery;
|
|
|
+ export type Order = NonNullable<GetOrderHistoryQuery['order']>;
|
|
|
+ export type History = (NonNullable<GetOrderHistoryQuery['order']>)['history'];
|
|
|
+ export type Items = NonNullable<(NonNullable<GetOrderHistoryQuery['order']>)['history']['items'][0]>;
|
|
|
+ export type Administrator = NonNullable<
|
|
|
+ (NonNullable<(NonNullable<GetOrderHistoryQuery['order']>)['history']['items'][0]>)['administrator']
|
|
|
+ >;
|
|
|
+}
|
|
|
+
|
|
|
export namespace AddOptionGroupToProduct {
|
|
|
export type Variables = AddOptionGroupToProductMutationVariables;
|
|
|
export type Mutation = AddOptionGroupToProductMutation;
|