|
@@ -57,6 +57,7 @@ export type Adjustment = {
|
|
|
export enum AdjustmentType {
|
|
export enum AdjustmentType {
|
|
|
PROMOTION = 'PROMOTION',
|
|
PROMOTION = 'PROMOTION',
|
|
|
DISTRIBUTED_ORDER_PROMOTION = 'DISTRIBUTED_ORDER_PROMOTION',
|
|
DISTRIBUTED_ORDER_PROMOTION = 'DISTRIBUTED_ORDER_PROMOTION',
|
|
|
|
|
+ OTHER = 'OTHER',
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/** Returned when attempting to set the Customer for an Order when already logged in. */
|
|
/** Returned when attempting to set the Customer for an Order when already logged in. */
|
|
@@ -123,6 +124,11 @@ export type BooleanCustomFieldConfig = CustomField & {
|
|
|
ui?: Maybe<Scalars['JSON']>;
|
|
ui?: Maybe<Scalars['JSON']>;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+/** Operators for filtering on a list of Boolean fields */
|
|
|
|
|
+export type BooleanListOperators = {
|
|
|
|
|
+ inList: Scalars['Boolean'];
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
/** Operators for filtering on a Boolean field */
|
|
/** Operators for filtering on a Boolean field */
|
|
|
export type BooleanOperators = {
|
|
export type BooleanOperators = {
|
|
|
eq?: Maybe<Scalars['Boolean']>;
|
|
eq?: Maybe<Scalars['Boolean']>;
|
|
@@ -774,6 +780,11 @@ export type CustomerSortParameter = {
|
|
|
emailAddress?: Maybe<SortOrder>;
|
|
emailAddress?: Maybe<SortOrder>;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+/** Operators for filtering on a list of Date fields */
|
|
|
|
|
+export type DateListOperators = {
|
|
|
|
|
+ inList: Scalars['DateTime'];
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
/** Operators for filtering on a DateTime field */
|
|
/** Operators for filtering on a DateTime field */
|
|
|
export type DateOperators = {
|
|
export type DateOperators = {
|
|
|
eq?: Maybe<Scalars['DateTime']>;
|
|
eq?: Maybe<Scalars['DateTime']>;
|
|
@@ -841,17 +852,18 @@ export enum ErrorCode {
|
|
|
ORDER_LIMIT_ERROR = 'ORDER_LIMIT_ERROR',
|
|
ORDER_LIMIT_ERROR = 'ORDER_LIMIT_ERROR',
|
|
|
NEGATIVE_QUANTITY_ERROR = 'NEGATIVE_QUANTITY_ERROR',
|
|
NEGATIVE_QUANTITY_ERROR = 'NEGATIVE_QUANTITY_ERROR',
|
|
|
INSUFFICIENT_STOCK_ERROR = 'INSUFFICIENT_STOCK_ERROR',
|
|
INSUFFICIENT_STOCK_ERROR = 'INSUFFICIENT_STOCK_ERROR',
|
|
|
|
|
+ COUPON_CODE_INVALID_ERROR = 'COUPON_CODE_INVALID_ERROR',
|
|
|
|
|
+ COUPON_CODE_EXPIRED_ERROR = 'COUPON_CODE_EXPIRED_ERROR',
|
|
|
|
|
+ COUPON_CODE_LIMIT_ERROR = 'COUPON_CODE_LIMIT_ERROR',
|
|
|
ORDER_MODIFICATION_ERROR = 'ORDER_MODIFICATION_ERROR',
|
|
ORDER_MODIFICATION_ERROR = 'ORDER_MODIFICATION_ERROR',
|
|
|
INELIGIBLE_SHIPPING_METHOD_ERROR = 'INELIGIBLE_SHIPPING_METHOD_ERROR',
|
|
INELIGIBLE_SHIPPING_METHOD_ERROR = 'INELIGIBLE_SHIPPING_METHOD_ERROR',
|
|
|
ORDER_PAYMENT_STATE_ERROR = 'ORDER_PAYMENT_STATE_ERROR',
|
|
ORDER_PAYMENT_STATE_ERROR = 'ORDER_PAYMENT_STATE_ERROR',
|
|
|
INELIGIBLE_PAYMENT_METHOD_ERROR = 'INELIGIBLE_PAYMENT_METHOD_ERROR',
|
|
INELIGIBLE_PAYMENT_METHOD_ERROR = 'INELIGIBLE_PAYMENT_METHOD_ERROR',
|
|
|
PAYMENT_FAILED_ERROR = 'PAYMENT_FAILED_ERROR',
|
|
PAYMENT_FAILED_ERROR = 'PAYMENT_FAILED_ERROR',
|
|
|
PAYMENT_DECLINED_ERROR = 'PAYMENT_DECLINED_ERROR',
|
|
PAYMENT_DECLINED_ERROR = 'PAYMENT_DECLINED_ERROR',
|
|
|
- COUPON_CODE_INVALID_ERROR = 'COUPON_CODE_INVALID_ERROR',
|
|
|
|
|
- COUPON_CODE_EXPIRED_ERROR = 'COUPON_CODE_EXPIRED_ERROR',
|
|
|
|
|
- COUPON_CODE_LIMIT_ERROR = 'COUPON_CODE_LIMIT_ERROR',
|
|
|
|
|
ALREADY_LOGGED_IN_ERROR = 'ALREADY_LOGGED_IN_ERROR',
|
|
ALREADY_LOGGED_IN_ERROR = 'ALREADY_LOGGED_IN_ERROR',
|
|
|
MISSING_PASSWORD_ERROR = 'MISSING_PASSWORD_ERROR',
|
|
MISSING_PASSWORD_ERROR = 'MISSING_PASSWORD_ERROR',
|
|
|
|
|
+ PASSWORD_VALIDATION_ERROR = 'PASSWORD_VALIDATION_ERROR',
|
|
|
PASSWORD_ALREADY_SET_ERROR = 'PASSWORD_ALREADY_SET_ERROR',
|
|
PASSWORD_ALREADY_SET_ERROR = 'PASSWORD_ALREADY_SET_ERROR',
|
|
|
VERIFICATION_TOKEN_INVALID_ERROR = 'VERIFICATION_TOKEN_INVALID_ERROR',
|
|
VERIFICATION_TOKEN_INVALID_ERROR = 'VERIFICATION_TOKEN_INVALID_ERROR',
|
|
|
VERIFICATION_TOKEN_EXPIRED_ERROR = 'VERIFICATION_TOKEN_EXPIRED_ERROR',
|
|
VERIFICATION_TOKEN_EXPIRED_ERROR = 'VERIFICATION_TOKEN_EXPIRED_ERROR',
|
|
@@ -1063,6 +1075,11 @@ export enum HistoryEntryType {
|
|
|
ORDER_MODIFIED = 'ORDER_MODIFIED',
|
|
ORDER_MODIFIED = 'ORDER_MODIFIED',
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+/** Operators for filtering on a list of ID fields */
|
|
|
|
|
+export type IdListOperators = {
|
|
|
|
|
+ inList: Scalars['ID'];
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
/** Operators for filtering on an ID field */
|
|
/** Operators for filtering on an ID field */
|
|
|
export type IdOperators = {
|
|
export type IdOperators = {
|
|
|
eq?: Maybe<Scalars['String']>;
|
|
eq?: Maybe<Scalars['String']>;
|
|
@@ -1551,7 +1568,7 @@ export type Mutation = {
|
|
|
/**
|
|
/**
|
|
|
* Verify a Customer email address with the token sent to that address. Only applicable if `authOptions.requireVerification` is set to true.
|
|
* Verify a Customer email address with the token sent to that address. Only applicable if `authOptions.requireVerification` is set to true.
|
|
|
*
|
|
*
|
|
|
- * If the Customer was not registered with a password in the `registerCustomerAccount` mutation, the a password _must_ be
|
|
|
|
|
|
|
+ * If the Customer was not registered with a password in the `registerCustomerAccount` mutation, the password _must_ be
|
|
|
* provided here.
|
|
* provided here.
|
|
|
*/
|
|
*/
|
|
|
verifyCustomerAccount: VerifyCustomerAccountResult;
|
|
verifyCustomerAccount: VerifyCustomerAccountResult;
|
|
@@ -1733,6 +1750,11 @@ export type NotVerifiedError = ErrorResult & {
|
|
|
message: Scalars['String'];
|
|
message: Scalars['String'];
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+/** Operators for filtering on a list of Number fields */
|
|
|
|
|
+export type NumberListOperators = {
|
|
|
|
|
+ inList: Scalars['Float'];
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
/** Operators for filtering on a Int or Float field */
|
|
/** Operators for filtering on a Int or Float field */
|
|
|
export type NumberOperators = {
|
|
export type NumberOperators = {
|
|
|
eq?: Maybe<Scalars['Float']>;
|
|
eq?: Maybe<Scalars['Float']>;
|
|
@@ -2042,6 +2064,13 @@ export type PasswordResetTokenInvalidError = ErrorResult & {
|
|
|
message: Scalars['String'];
|
|
message: Scalars['String'];
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+/** Returned when attempting to register or verify a customer account where the given password fails password validation. */
|
|
|
|
|
+export type PasswordValidationError = ErrorResult & {
|
|
|
|
|
+ errorCode: ErrorCode;
|
|
|
|
|
+ message: Scalars['String'];
|
|
|
|
|
+ validationErrorMessage: Scalars['String'];
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
export type Payment = Node & {
|
|
export type Payment = Node & {
|
|
|
id: Scalars['ID'];
|
|
id: Scalars['ID'];
|
|
|
createdAt: Scalars['DateTime'];
|
|
createdAt: Scalars['DateTime'];
|
|
@@ -2604,7 +2633,11 @@ export type Refund = Node & {
|
|
|
metadata?: Maybe<Scalars['JSON']>;
|
|
metadata?: Maybe<Scalars['JSON']>;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-export type RegisterCustomerAccountResult = Success | MissingPasswordError | NativeAuthStrategyError;
|
|
|
|
|
|
|
+export type RegisterCustomerAccountResult =
|
|
|
|
|
+ | Success
|
|
|
|
|
+ | MissingPasswordError
|
|
|
|
|
+ | PasswordValidationError
|
|
|
|
|
+ | NativeAuthStrategyError;
|
|
|
|
|
|
|
|
export type RegisterCustomerInput = {
|
|
export type RegisterCustomerInput = {
|
|
|
emailAddress: Scalars['String'];
|
|
emailAddress: Scalars['String'];
|
|
@@ -2643,6 +2676,7 @@ export type ResetPasswordResult =
|
|
|
| CurrentUser
|
|
| CurrentUser
|
|
|
| PasswordResetTokenInvalidError
|
|
| PasswordResetTokenInvalidError
|
|
|
| PasswordResetTokenExpiredError
|
|
| PasswordResetTokenExpiredError
|
|
|
|
|
+ | PasswordValidationError
|
|
|
| NativeAuthStrategyError
|
|
| NativeAuthStrategyError
|
|
|
| NotVerifiedError;
|
|
| NotVerifiedError;
|
|
|
|
|
|
|
@@ -2702,7 +2736,7 @@ export type SearchResult = {
|
|
|
facetValueIds: Array<Scalars['ID']>;
|
|
facetValueIds: Array<Scalars['ID']>;
|
|
|
/** An array of ids of the Collections in which this result appears */
|
|
/** An array of ids of the Collections in which this result appears */
|
|
|
collectionIds: Array<Scalars['ID']>;
|
|
collectionIds: Array<Scalars['ID']>;
|
|
|
- /** A relevence score for the result. Differs between database implementations */
|
|
|
|
|
|
|
+ /** A relevance score for the result. Differs between database implementations */
|
|
|
score: Scalars['Float'];
|
|
score: Scalars['Float'];
|
|
|
};
|
|
};
|
|
|
|
|
|
|
@@ -2811,6 +2845,11 @@ export type StringFieldOption = {
|
|
|
label?: Maybe<Array<LocalizedString>>;
|
|
label?: Maybe<Array<LocalizedString>>;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+/** Operators for filtering on a list of String fields */
|
|
|
|
|
+export type StringListOperators = {
|
|
|
|
|
+ inList: Scalars['String'];
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
/** Operators for filtering on a String field */
|
|
/** Operators for filtering on a String field */
|
|
|
export type StringOperators = {
|
|
export type StringOperators = {
|
|
|
eq?: Maybe<Scalars['String']>;
|
|
eq?: Maybe<Scalars['String']>;
|
|
@@ -2927,7 +2966,11 @@ export type UpdateCustomerInput = {
|
|
|
customFields?: Maybe<Scalars['JSON']>;
|
|
customFields?: Maybe<Scalars['JSON']>;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-export type UpdateCustomerPasswordResult = Success | InvalidCredentialsError | NativeAuthStrategyError;
|
|
|
|
|
|
|
+export type UpdateCustomerPasswordResult =
|
|
|
|
|
+ | Success
|
|
|
|
|
+ | InvalidCredentialsError
|
|
|
|
|
+ | PasswordValidationError
|
|
|
|
|
+ | NativeAuthStrategyError;
|
|
|
|
|
|
|
|
export type UpdateOrderInput = {
|
|
export type UpdateOrderInput = {
|
|
|
customFields?: Maybe<Scalars['JSON']>;
|
|
customFields?: Maybe<Scalars['JSON']>;
|
|
@@ -2975,6 +3018,7 @@ export type VerifyCustomerAccountResult =
|
|
|
| VerificationTokenInvalidError
|
|
| VerificationTokenInvalidError
|
|
|
| VerificationTokenExpiredError
|
|
| VerificationTokenExpiredError
|
|
|
| MissingPasswordError
|
|
| MissingPasswordError
|
|
|
|
|
+ | PasswordValidationError
|
|
|
| PasswordAlreadySetError
|
|
| PasswordAlreadySetError
|
|
|
| NativeAuthStrategyError;
|
|
| NativeAuthStrategyError;
|
|
|
|
|
|
|
@@ -3090,6 +3134,7 @@ export type RegisterMutation = {
|
|
|
registerCustomerAccount:
|
|
registerCustomerAccount:
|
|
|
| Pick<Success, 'success'>
|
|
| Pick<Success, 'success'>
|
|
|
| Pick<MissingPasswordError, 'errorCode' | 'message'>
|
|
| Pick<MissingPasswordError, 'errorCode' | 'message'>
|
|
|
|
|
+ | Pick<PasswordValidationError, 'errorCode' | 'message' | 'validationErrorMessage'>
|
|
|
| Pick<NativeAuthStrategyError, 'errorCode' | 'message'>;
|
|
| Pick<NativeAuthStrategyError, 'errorCode' | 'message'>;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
@@ -3108,6 +3153,7 @@ export type VerifyMutation = {
|
|
|
| Pick<VerificationTokenInvalidError, 'errorCode' | 'message'>
|
|
| Pick<VerificationTokenInvalidError, 'errorCode' | 'message'>
|
|
|
| Pick<VerificationTokenExpiredError, 'errorCode' | 'message'>
|
|
| Pick<VerificationTokenExpiredError, 'errorCode' | 'message'>
|
|
|
| Pick<MissingPasswordError, 'errorCode' | 'message'>
|
|
| Pick<MissingPasswordError, 'errorCode' | 'message'>
|
|
|
|
|
+ | Pick<PasswordValidationError, 'errorCode' | 'message' | 'validationErrorMessage'>
|
|
|
| Pick<PasswordAlreadySetError, 'errorCode' | 'message'>
|
|
| Pick<PasswordAlreadySetError, 'errorCode' | 'message'>
|
|
|
| Pick<NativeAuthStrategyError, 'errorCode' | 'message'>;
|
|
| Pick<NativeAuthStrategyError, 'errorCode' | 'message'>;
|
|
|
};
|
|
};
|
|
@@ -3142,6 +3188,7 @@ export type ResetPasswordMutation = {
|
|
|
| CurrentUserShopFragment
|
|
| CurrentUserShopFragment
|
|
|
| Pick<PasswordResetTokenInvalidError, 'errorCode' | 'message'>
|
|
| Pick<PasswordResetTokenInvalidError, 'errorCode' | 'message'>
|
|
|
| Pick<PasswordResetTokenExpiredError, 'errorCode' | 'message'>
|
|
| Pick<PasswordResetTokenExpiredError, 'errorCode' | 'message'>
|
|
|
|
|
+ | Pick<PasswordValidationError, 'errorCode' | 'message' | 'validationErrorMessage'>
|
|
|
| Pick<NativeAuthStrategyError, 'errorCode' | 'message'>
|
|
| Pick<NativeAuthStrategyError, 'errorCode' | 'message'>
|
|
|
| Pick<NotVerifiedError, 'errorCode' | 'message'>;
|
|
| Pick<NotVerifiedError, 'errorCode' | 'message'>;
|
|
|
};
|
|
};
|
|
@@ -3212,6 +3259,7 @@ export type UpdatePasswordMutation = {
|
|
|
updateCustomerPassword:
|
|
updateCustomerPassword:
|
|
|
| Pick<Success, 'success'>
|
|
| Pick<Success, 'success'>
|
|
|
| Pick<InvalidCredentialsError, 'errorCode' | 'message'>
|
|
| Pick<InvalidCredentialsError, 'errorCode' | 'message'>
|
|
|
|
|
+ | Pick<PasswordValidationError, 'errorCode' | 'message'>
|
|
|
| Pick<NativeAuthStrategyError, 'errorCode' | 'message'>;
|
|
| Pick<NativeAuthStrategyError, 'errorCode' | 'message'>;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
@@ -3626,6 +3674,10 @@ export namespace Register {
|
|
|
NonNullable<RegisterMutation['registerCustomerAccount']>,
|
|
NonNullable<RegisterMutation['registerCustomerAccount']>,
|
|
|
{ __typename?: 'ErrorResult' }
|
|
{ __typename?: 'ErrorResult' }
|
|
|
>;
|
|
>;
|
|
|
|
|
+ export type PasswordValidationErrorInlineFragment = DiscriminateUnion<
|
|
|
|
|
+ NonNullable<RegisterMutation['registerCustomerAccount']>,
|
|
|
|
|
+ { __typename?: 'PasswordValidationError' }
|
|
|
|
|
+ >;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
export namespace CurrentUserShop {
|
|
export namespace CurrentUserShop {
|
|
@@ -3641,6 +3693,10 @@ export namespace Verify {
|
|
|
NonNullable<VerifyMutation['verifyCustomerAccount']>,
|
|
NonNullable<VerifyMutation['verifyCustomerAccount']>,
|
|
|
{ __typename?: 'ErrorResult' }
|
|
{ __typename?: 'ErrorResult' }
|
|
|
>;
|
|
>;
|
|
|
|
|
+ export type PasswordValidationErrorInlineFragment = DiscriminateUnion<
|
|
|
|
|
+ NonNullable<VerifyMutation['verifyCustomerAccount']>,
|
|
|
|
|
+ { __typename?: 'PasswordValidationError' }
|
|
|
|
|
+ >;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
export namespace RefreshToken {
|
|
export namespace RefreshToken {
|
|
@@ -3681,6 +3737,10 @@ export namespace ResetPassword {
|
|
|
NonNullable<ResetPasswordMutation['resetPassword']>,
|
|
NonNullable<ResetPasswordMutation['resetPassword']>,
|
|
|
{ __typename?: 'ErrorResult' }
|
|
{ __typename?: 'ErrorResult' }
|
|
|
>;
|
|
>;
|
|
|
|
|
+ export type PasswordValidationErrorInlineFragment = DiscriminateUnion<
|
|
|
|
|
+ NonNullable<ResetPasswordMutation['resetPassword']>,
|
|
|
|
|
+ { __typename?: 'PasswordValidationError' }
|
|
|
|
|
+ >;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
export namespace RequestUpdateEmailAddress {
|
|
export namespace RequestUpdateEmailAddress {
|