|
|
@@ -804,9 +804,9 @@ export type CreatePromotionInput = {
|
|
|
customFields?: InputMaybe<Scalars['JSON']>;
|
|
|
enabled: Scalars['Boolean'];
|
|
|
endsAt?: InputMaybe<Scalars['DateTime']>;
|
|
|
- name: Scalars['String'];
|
|
|
perCustomerUsageLimit?: InputMaybe<Scalars['Int']>;
|
|
|
startsAt?: InputMaybe<Scalars['DateTime']>;
|
|
|
+ translations: Array<PromotionTranslationInput>;
|
|
|
};
|
|
|
|
|
|
export type CreatePromotionResult = MissingConditionsError | Promotion;
|
|
|
@@ -4487,18 +4487,21 @@ export type Promotion = Node & {
|
|
|
couponCode?: Maybe<Scalars['String']>;
|
|
|
createdAt: Scalars['DateTime'];
|
|
|
customFields?: Maybe<Scalars['JSON']>;
|
|
|
+ description: Scalars['String'];
|
|
|
enabled: Scalars['Boolean'];
|
|
|
endsAt?: Maybe<Scalars['DateTime']>;
|
|
|
id: Scalars['ID'];
|
|
|
name: Scalars['String'];
|
|
|
perCustomerUsageLimit?: Maybe<Scalars['Int']>;
|
|
|
startsAt?: Maybe<Scalars['DateTime']>;
|
|
|
+ translations: Array<PromotionTranslation>;
|
|
|
updatedAt: Scalars['DateTime'];
|
|
|
};
|
|
|
|
|
|
export type PromotionFilterParameter = {
|
|
|
couponCode?: InputMaybe<StringOperators>;
|
|
|
createdAt?: InputMaybe<DateOperators>;
|
|
|
+ description?: InputMaybe<StringOperators>;
|
|
|
enabled?: InputMaybe<BooleanOperators>;
|
|
|
endsAt?: InputMaybe<DateOperators>;
|
|
|
id?: InputMaybe<IdOperators>;
|
|
|
@@ -4530,6 +4533,7 @@ export type PromotionListOptions = {
|
|
|
export type PromotionSortParameter = {
|
|
|
couponCode?: InputMaybe<SortOrder>;
|
|
|
createdAt?: InputMaybe<SortOrder>;
|
|
|
+ description?: InputMaybe<SortOrder>;
|
|
|
endsAt?: InputMaybe<SortOrder>;
|
|
|
id?: InputMaybe<SortOrder>;
|
|
|
name?: InputMaybe<SortOrder>;
|
|
|
@@ -4538,6 +4542,24 @@ export type PromotionSortParameter = {
|
|
|
updatedAt?: InputMaybe<SortOrder>;
|
|
|
};
|
|
|
|
|
|
+export type PromotionTranslation = {
|
|
|
+ __typename?: 'PromotionTranslation';
|
|
|
+ createdAt: Scalars['DateTime'];
|
|
|
+ description: Scalars['String'];
|
|
|
+ id: Scalars['ID'];
|
|
|
+ languageCode: LanguageCode;
|
|
|
+ name: Scalars['String'];
|
|
|
+ updatedAt: Scalars['DateTime'];
|
|
|
+};
|
|
|
+
|
|
|
+export type PromotionTranslationInput = {
|
|
|
+ customFields?: InputMaybe<Scalars['JSON']>;
|
|
|
+ description?: InputMaybe<Scalars['String']>;
|
|
|
+ id?: InputMaybe<Scalars['ID']>;
|
|
|
+ languageCode: LanguageCode;
|
|
|
+ name?: InputMaybe<Scalars['String']>;
|
|
|
+};
|
|
|
+
|
|
|
/** Returned if the specified quantity of an OrderLine is greater than the number of items in that line */
|
|
|
export type QuantityTooGreatError = ErrorResult & {
|
|
|
__typename?: 'QuantityTooGreatError';
|
|
|
@@ -5878,9 +5900,9 @@ export type UpdatePromotionInput = {
|
|
|
enabled?: InputMaybe<Scalars['Boolean']>;
|
|
|
endsAt?: InputMaybe<Scalars['DateTime']>;
|
|
|
id: Scalars['ID'];
|
|
|
- name?: InputMaybe<Scalars['String']>;
|
|
|
perCustomerUsageLimit?: InputMaybe<Scalars['Int']>;
|
|
|
startsAt?: InputMaybe<Scalars['DateTime']>;
|
|
|
+ translations?: InputMaybe<Array<PromotionTranslationInput>>;
|
|
|
};
|
|
|
|
|
|
export type UpdatePromotionResult = MissingConditionsError | Promotion;
|
|
|
@@ -7088,21 +7110,21 @@ export type DeleteTagMutationVariables = Exact<{
|
|
|
|
|
|
export type DeleteTagMutation = { deleteTag: { __typename?: 'DeletionResponse', message?: string | null, result: DeletionResult } };
|
|
|
|
|
|
-export type PromotionFragment = { __typename?: 'Promotion', id: string, createdAt: any, updatedAt: any, name: string, enabled: boolean, couponCode?: string | null, perCustomerUsageLimit?: number | null, startsAt?: any | null, endsAt?: any | null, conditions: Array<{ __typename?: 'ConfigurableOperation', code: string, args: Array<{ __typename?: 'ConfigArg', name: string, value: string }> }>, actions: Array<{ __typename?: 'ConfigurableOperation', code: string, args: Array<{ __typename?: 'ConfigArg', name: string, value: string }> }> };
|
|
|
+export type PromotionFragment = { __typename?: 'Promotion', id: string, createdAt: any, updatedAt: any, name: string, description: string, enabled: boolean, couponCode?: string | null, perCustomerUsageLimit?: number | null, startsAt?: any | null, endsAt?: any | null, conditions: Array<{ __typename?: 'ConfigurableOperation', code: string, args: Array<{ __typename?: 'ConfigArg', name: string, value: string }> }>, actions: Array<{ __typename?: 'ConfigurableOperation', code: string, args: Array<{ __typename?: 'ConfigArg', name: string, value: string }> }>, translations: Array<{ __typename?: 'PromotionTranslation', id: string, languageCode: LanguageCode, name: string, description: string }> };
|
|
|
|
|
|
export type GetPromotionListQueryVariables = Exact<{
|
|
|
options?: InputMaybe<PromotionListOptions>;
|
|
|
}>;
|
|
|
|
|
|
|
|
|
-export type GetPromotionListQuery = { promotions: { __typename?: 'PromotionList', totalItems: number, items: Array<{ __typename?: 'Promotion', id: string, createdAt: any, updatedAt: any, name: string, enabled: boolean, couponCode?: string | null, perCustomerUsageLimit?: number | null, startsAt?: any | null, endsAt?: any | null, conditions: Array<{ __typename?: 'ConfigurableOperation', code: string, args: Array<{ __typename?: 'ConfigArg', name: string, value: string }> }>, actions: Array<{ __typename?: 'ConfigurableOperation', code: string, args: Array<{ __typename?: 'ConfigArg', name: string, value: string }> }> }> } };
|
|
|
+export type GetPromotionListQuery = { promotions: { __typename?: 'PromotionList', totalItems: number, items: Array<{ __typename?: 'Promotion', id: string, createdAt: any, updatedAt: any, name: string, description: string, enabled: boolean, couponCode?: string | null, perCustomerUsageLimit?: number | null, startsAt?: any | null, endsAt?: any | null, conditions: Array<{ __typename?: 'ConfigurableOperation', code: string, args: Array<{ __typename?: 'ConfigArg', name: string, value: string }> }>, actions: Array<{ __typename?: 'ConfigurableOperation', code: string, args: Array<{ __typename?: 'ConfigArg', name: string, value: string }> }>, translations: Array<{ __typename?: 'PromotionTranslation', id: string, languageCode: LanguageCode, name: string, description: string }> }> } };
|
|
|
|
|
|
export type GetPromotionQueryVariables = Exact<{
|
|
|
id: Scalars['ID'];
|
|
|
}>;
|
|
|
|
|
|
|
|
|
-export type GetPromotionQuery = { promotion?: { __typename?: 'Promotion', id: string, createdAt: any, updatedAt: any, name: string, enabled: boolean, couponCode?: string | null, perCustomerUsageLimit?: number | null, startsAt?: any | null, endsAt?: any | null, conditions: Array<{ __typename?: 'ConfigurableOperation', code: string, args: Array<{ __typename?: 'ConfigArg', name: string, value: string }> }>, actions: Array<{ __typename?: 'ConfigurableOperation', code: string, args: Array<{ __typename?: 'ConfigArg', name: string, value: string }> }> } | null };
|
|
|
+export type GetPromotionQuery = { promotion?: { __typename?: 'Promotion', id: string, createdAt: any, updatedAt: any, name: string, description: string, enabled: boolean, couponCode?: string | null, perCustomerUsageLimit?: number | null, startsAt?: any | null, endsAt?: any | null, conditions: Array<{ __typename?: 'ConfigurableOperation', code: string, args: Array<{ __typename?: 'ConfigArg', name: string, value: string }> }>, actions: Array<{ __typename?: 'ConfigurableOperation', code: string, args: Array<{ __typename?: 'ConfigArg', name: string, value: string }> }>, translations: Array<{ __typename?: 'PromotionTranslation', id: string, languageCode: LanguageCode, name: string, description: string }> } | null };
|
|
|
|
|
|
export type GetAdjustmentOperationsQueryVariables = Exact<{ [key: string]: never; }>;
|
|
|
|
|
|
@@ -7114,14 +7136,14 @@ export type CreatePromotionMutationVariables = Exact<{
|
|
|
}>;
|
|
|
|
|
|
|
|
|
-export type CreatePromotionMutation = { createPromotion: { __typename?: 'MissingConditionsError', errorCode: ErrorCode, message: string } | { __typename?: 'Promotion', id: string, createdAt: any, updatedAt: any, name: string, enabled: boolean, couponCode?: string | null, perCustomerUsageLimit?: number | null, startsAt?: any | null, endsAt?: any | null, conditions: Array<{ __typename?: 'ConfigurableOperation', code: string, args: Array<{ __typename?: 'ConfigArg', name: string, value: string }> }>, actions: Array<{ __typename?: 'ConfigurableOperation', code: string, args: Array<{ __typename?: 'ConfigArg', name: string, value: string }> }> } };
|
|
|
+export type CreatePromotionMutation = { createPromotion: { __typename?: 'MissingConditionsError', errorCode: ErrorCode, message: string } | { __typename?: 'Promotion', id: string, createdAt: any, updatedAt: any, name: string, description: string, enabled: boolean, couponCode?: string | null, perCustomerUsageLimit?: number | null, startsAt?: any | null, endsAt?: any | null, conditions: Array<{ __typename?: 'ConfigurableOperation', code: string, args: Array<{ __typename?: 'ConfigArg', name: string, value: string }> }>, actions: Array<{ __typename?: 'ConfigurableOperation', code: string, args: Array<{ __typename?: 'ConfigArg', name: string, value: string }> }>, translations: Array<{ __typename?: 'PromotionTranslation', id: string, languageCode: LanguageCode, name: string, description: string }> } };
|
|
|
|
|
|
export type UpdatePromotionMutationVariables = Exact<{
|
|
|
input: UpdatePromotionInput;
|
|
|
}>;
|
|
|
|
|
|
|
|
|
-export type UpdatePromotionMutation = { updatePromotion: { __typename?: 'MissingConditionsError' } | { __typename?: 'Promotion', id: string, createdAt: any, updatedAt: any, name: string, enabled: boolean, couponCode?: string | null, perCustomerUsageLimit?: number | null, startsAt?: any | null, endsAt?: any | null, conditions: Array<{ __typename?: 'ConfigurableOperation', code: string, args: Array<{ __typename?: 'ConfigArg', name: string, value: string }> }>, actions: Array<{ __typename?: 'ConfigurableOperation', code: string, args: Array<{ __typename?: 'ConfigArg', name: string, value: string }> }> } };
|
|
|
+export type UpdatePromotionMutation = { updatePromotion: { __typename?: 'MissingConditionsError' } | { __typename?: 'Promotion', id: string, createdAt: any, updatedAt: any, name: string, description: string, enabled: boolean, couponCode?: string | null, perCustomerUsageLimit?: number | null, startsAt?: any | null, endsAt?: any | null, conditions: Array<{ __typename?: 'ConfigurableOperation', code: string, args: Array<{ __typename?: 'ConfigArg', name: string, value: string }> }>, actions: Array<{ __typename?: 'ConfigurableOperation', code: string, args: Array<{ __typename?: 'ConfigArg', name: string, value: string }> }>, translations: Array<{ __typename?: 'PromotionTranslation', id: string, languageCode: LanguageCode, name: string, description: string }> } };
|
|
|
|
|
|
export type DeletePromotionMutationVariables = Exact<{
|
|
|
id: Scalars['ID'];
|