|
|
@@ -1860,6 +1860,8 @@ export enum Permission {
|
|
|
UpdateSettings = 'UpdateSettings',
|
|
|
/** Grants permission to delete Settings */
|
|
|
DeleteSettings = 'DeleteSettings',
|
|
|
+ /** Allows external tools to sync stock levels */
|
|
|
+ SyncInventory = 'SyncInventory',
|
|
|
}
|
|
|
|
|
|
export type DeletionResponse = {
|
|
|
@@ -3105,8 +3107,11 @@ export type OrderItem = Node & {
|
|
|
createdAt: Scalars['DateTime'];
|
|
|
updatedAt: Scalars['DateTime'];
|
|
|
cancelled: Scalars['Boolean'];
|
|
|
+ /** The price of a single unit, excluding tax */
|
|
|
unitPrice: Scalars['Int'];
|
|
|
+ /** The price of a single unit, including tax */
|
|
|
unitPriceWithTax: Scalars['Int'];
|
|
|
+ /** @deprecated `unitPrice` is now always without tax */
|
|
|
unitPriceIncludesTax: Scalars['Boolean'];
|
|
|
taxRate: Scalars['Float'];
|
|
|
adjustments: Array<Adjustment>;
|
|
|
@@ -3124,7 +3129,15 @@ export type OrderLine = Node & {
|
|
|
unitPriceWithTax: Scalars['Int'];
|
|
|
quantity: Scalars['Int'];
|
|
|
items: Array<OrderItem>;
|
|
|
+ /** @deprecated Use `linePriceWithTax` instead */
|
|
|
totalPrice: Scalars['Int'];
|
|
|
+ taxRate: Scalars['Float'];
|
|
|
+ /** The total price of the line excluding tax */
|
|
|
+ linePrice: Scalars['Int'];
|
|
|
+ /** The total tax on this line */
|
|
|
+ lineTax: Scalars['Int'];
|
|
|
+ /** The total price of the line including tax */
|
|
|
+ linePriceWithTax: Scalars['Int'];
|
|
|
adjustments: Array<Adjustment>;
|
|
|
order: Order;
|
|
|
customFields?: Maybe<Scalars['JSON']>;
|
|
|
@@ -5150,19 +5163,9 @@ export type UpdateRoleMutationVariables = Exact<{
|
|
|
|
|
|
export type UpdateRoleMutation = { updateRole: RoleFragment };
|
|
|
|
|
|
-export type UpdateOptionGroupMutationVariables = Exact<{
|
|
|
- input: UpdateProductOptionGroupInput;
|
|
|
-}>;
|
|
|
-
|
|
|
-export type UpdateOptionGroupMutation = { updateProductOptionGroup: Pick<ProductOptionGroup, 'id'> };
|
|
|
-
|
|
|
-export type DeletePromotionAdHoc1MutationVariables = Exact<{ [key: string]: never }>;
|
|
|
-
|
|
|
-export type DeletePromotionAdHoc1Mutation = { deletePromotion: Pick<DeletionResponse, 'result'> };
|
|
|
-
|
|
|
-export type GetPromoProductsQueryVariables = Exact<{ [key: string]: never }>;
|
|
|
+export type GetProductsWithVariantPricesQueryVariables = Exact<{ [key: string]: never }>;
|
|
|
|
|
|
-export type GetPromoProductsQuery = {
|
|
|
+export type GetProductsWithVariantPricesQuery = {
|
|
|
products: {
|
|
|
items: Array<
|
|
|
Pick<Product, 'id' | 'slug'> & {
|
|
|
@@ -5176,6 +5179,16 @@ export type GetPromoProductsQuery = {
|
|
|
};
|
|
|
};
|
|
|
|
|
|
+export type UpdateOptionGroupMutationVariables = Exact<{
|
|
|
+ input: UpdateProductOptionGroupInput;
|
|
|
+}>;
|
|
|
+
|
|
|
+export type UpdateOptionGroupMutation = { updateProductOptionGroup: Pick<ProductOptionGroup, 'id'> };
|
|
|
+
|
|
|
+export type DeletePromotionAdHoc1MutationVariables = Exact<{ [key: string]: never }>;
|
|
|
+
|
|
|
+export type DeletePromotionAdHoc1Mutation = { deletePromotion: Pick<DeletionResponse, 'result'> };
|
|
|
+
|
|
|
export type SettlePaymentMutationVariables = Exact<{
|
|
|
id: Scalars['ID'];
|
|
|
}>;
|
|
|
@@ -6991,29 +7004,17 @@ export namespace UpdateRole {
|
|
|
export type UpdateRole = NonNullable<UpdateRoleMutation['updateRole']>;
|
|
|
}
|
|
|
|
|
|
-export namespace UpdateOptionGroup {
|
|
|
- export type Variables = UpdateOptionGroupMutationVariables;
|
|
|
- export type Mutation = UpdateOptionGroupMutation;
|
|
|
- export type UpdateProductOptionGroup = NonNullable<UpdateOptionGroupMutation['updateProductOptionGroup']>;
|
|
|
-}
|
|
|
-
|
|
|
-export namespace DeletePromotionAdHoc1 {
|
|
|
- export type Variables = DeletePromotionAdHoc1MutationVariables;
|
|
|
- export type Mutation = DeletePromotionAdHoc1Mutation;
|
|
|
- export type DeletePromotion = NonNullable<DeletePromotionAdHoc1Mutation['deletePromotion']>;
|
|
|
-}
|
|
|
-
|
|
|
-export namespace GetPromoProducts {
|
|
|
- export type Variables = GetPromoProductsQueryVariables;
|
|
|
- export type Query = GetPromoProductsQuery;
|
|
|
- export type Products = NonNullable<GetPromoProductsQuery['products']>;
|
|
|
+export namespace GetProductsWithVariantPrices {
|
|
|
+ export type Variables = GetProductsWithVariantPricesQueryVariables;
|
|
|
+ export type Query = GetProductsWithVariantPricesQuery;
|
|
|
+ export type Products = NonNullable<GetProductsWithVariantPricesQuery['products']>;
|
|
|
export type Items = NonNullable<
|
|
|
- NonNullable<NonNullable<GetPromoProductsQuery['products']>['items']>[number]
|
|
|
+ NonNullable<NonNullable<GetProductsWithVariantPricesQuery['products']>['items']>[number]
|
|
|
>;
|
|
|
export type Variants = NonNullable<
|
|
|
NonNullable<
|
|
|
NonNullable<
|
|
|
- NonNullable<NonNullable<GetPromoProductsQuery['products']>['items']>[number]
|
|
|
+ NonNullable<NonNullable<GetProductsWithVariantPricesQuery['products']>['items']>[number]
|
|
|
>['variants']
|
|
|
>[number]
|
|
|
>;
|
|
|
@@ -7022,7 +7023,9 @@ export namespace GetPromoProducts {
|
|
|
NonNullable<
|
|
|
NonNullable<
|
|
|
NonNullable<
|
|
|
- NonNullable<NonNullable<GetPromoProductsQuery['products']>['items']>[number]
|
|
|
+ NonNullable<
|
|
|
+ NonNullable<GetProductsWithVariantPricesQuery['products']>['items']
|
|
|
+ >[number]
|
|
|
>['variants']
|
|
|
>[number]
|
|
|
>['facetValues']
|
|
|
@@ -7030,6 +7033,18 @@ export namespace GetPromoProducts {
|
|
|
>;
|
|
|
}
|
|
|
|
|
|
+export namespace UpdateOptionGroup {
|
|
|
+ export type Variables = UpdateOptionGroupMutationVariables;
|
|
|
+ export type Mutation = UpdateOptionGroupMutation;
|
|
|
+ export type UpdateProductOptionGroup = NonNullable<UpdateOptionGroupMutation['updateProductOptionGroup']>;
|
|
|
+}
|
|
|
+
|
|
|
+export namespace DeletePromotionAdHoc1 {
|
|
|
+ export type Variables = DeletePromotionAdHoc1MutationVariables;
|
|
|
+ export type Mutation = DeletePromotionAdHoc1Mutation;
|
|
|
+ export type DeletePromotion = NonNullable<DeletePromotionAdHoc1Mutation['deletePromotion']>;
|
|
|
+}
|
|
|
+
|
|
|
export namespace SettlePayment {
|
|
|
export type Variables = SettlePaymentMutationVariables;
|
|
|
export type Mutation = SettlePaymentMutation;
|