|
|
@@ -124,6 +124,11 @@ export type BooleanCustomFieldConfig = CustomField & {
|
|
|
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 */
|
|
|
export type BooleanOperators = {
|
|
|
eq?: Maybe<Scalars['Boolean']>;
|
|
|
@@ -775,6 +780,11 @@ export type CustomerSortParameter = {
|
|
|
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 */
|
|
|
export type DateOperators = {
|
|
|
eq?: Maybe<Scalars['DateTime']>;
|
|
|
@@ -853,6 +863,7 @@ export enum ErrorCode {
|
|
|
COUPON_CODE_LIMIT_ERROR = 'COUPON_CODE_LIMIT_ERROR',
|
|
|
ALREADY_LOGGED_IN_ERROR = 'ALREADY_LOGGED_IN_ERROR',
|
|
|
MISSING_PASSWORD_ERROR = 'MISSING_PASSWORD_ERROR',
|
|
|
+ PASSWORD_VALIDATION_ERROR = 'PASSWORD_VALIDATION_ERROR',
|
|
|
PASSWORD_ALREADY_SET_ERROR = 'PASSWORD_ALREADY_SET_ERROR',
|
|
|
VERIFICATION_TOKEN_INVALID_ERROR = 'VERIFICATION_TOKEN_INVALID_ERROR',
|
|
|
VERIFICATION_TOKEN_EXPIRED_ERROR = 'VERIFICATION_TOKEN_EXPIRED_ERROR',
|
|
|
@@ -1064,6 +1075,11 @@ export enum HistoryEntryType {
|
|
|
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 */
|
|
|
export type IdOperators = {
|
|
|
eq?: Maybe<Scalars['String']>;
|
|
|
@@ -1734,6 +1750,11 @@ export type NotVerifiedError = ErrorResult & {
|
|
|
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 */
|
|
|
export type NumberOperators = {
|
|
|
eq?: Maybe<Scalars['Float']>;
|
|
|
@@ -2043,6 +2064,13 @@ export type PasswordResetTokenInvalidError = ErrorResult & {
|
|
|
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 & {
|
|
|
id: Scalars['ID'];
|
|
|
createdAt: Scalars['DateTime'];
|
|
|
@@ -2605,7 +2633,11 @@ export type Refund = Node & {
|
|
|
metadata?: Maybe<Scalars['JSON']>;
|
|
|
};
|
|
|
|
|
|
-export type RegisterCustomerAccountResult = Success | MissingPasswordError | NativeAuthStrategyError;
|
|
|
+export type RegisterCustomerAccountResult =
|
|
|
+ | Success
|
|
|
+ | MissingPasswordError
|
|
|
+ | PasswordValidationError
|
|
|
+ | NativeAuthStrategyError;
|
|
|
|
|
|
export type RegisterCustomerInput = {
|
|
|
emailAddress: Scalars['String'];
|
|
|
@@ -2644,6 +2676,7 @@ export type ResetPasswordResult =
|
|
|
| CurrentUser
|
|
|
| PasswordResetTokenInvalidError
|
|
|
| PasswordResetTokenExpiredError
|
|
|
+ | PasswordValidationError
|
|
|
| NativeAuthStrategyError
|
|
|
| NotVerifiedError;
|
|
|
|
|
|
@@ -2812,6 +2845,11 @@ export type StringFieldOption = {
|
|
|
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 */
|
|
|
export type StringOperators = {
|
|
|
eq?: Maybe<Scalars['String']>;
|
|
|
@@ -2928,7 +2966,11 @@ export type UpdateCustomerInput = {
|
|
|
customFields?: Maybe<Scalars['JSON']>;
|
|
|
};
|
|
|
|
|
|
-export type UpdateCustomerPasswordResult = Success | InvalidCredentialsError | NativeAuthStrategyError;
|
|
|
+export type UpdateCustomerPasswordResult =
|
|
|
+ | Success
|
|
|
+ | InvalidCredentialsError
|
|
|
+ | PasswordValidationError
|
|
|
+ | NativeAuthStrategyError;
|
|
|
|
|
|
export type UpdateOrderInput = {
|
|
|
customFields?: Maybe<Scalars['JSON']>;
|
|
|
@@ -2976,6 +3018,7 @@ export type VerifyCustomerAccountResult =
|
|
|
| VerificationTokenInvalidError
|
|
|
| VerificationTokenExpiredError
|
|
|
| MissingPasswordError
|
|
|
+ | PasswordValidationError
|
|
|
| PasswordAlreadySetError
|
|
|
| NativeAuthStrategyError;
|
|
|
|
|
|
@@ -3091,6 +3134,7 @@ export type RegisterMutation = {
|
|
|
registerCustomerAccount:
|
|
|
| Pick<Success, 'success'>
|
|
|
| Pick<MissingPasswordError, 'errorCode' | 'message'>
|
|
|
+ | Pick<PasswordValidationError, 'errorCode' | 'message' | 'validationErrorMessage'>
|
|
|
| Pick<NativeAuthStrategyError, 'errorCode' | 'message'>;
|
|
|
};
|
|
|
|
|
|
@@ -3109,6 +3153,7 @@ export type VerifyMutation = {
|
|
|
| Pick<VerificationTokenInvalidError, 'errorCode' | 'message'>
|
|
|
| Pick<VerificationTokenExpiredError, 'errorCode' | 'message'>
|
|
|
| Pick<MissingPasswordError, 'errorCode' | 'message'>
|
|
|
+ | Pick<PasswordValidationError, 'errorCode' | 'message' | 'validationErrorMessage'>
|
|
|
| Pick<PasswordAlreadySetError, 'errorCode' | 'message'>
|
|
|
| Pick<NativeAuthStrategyError, 'errorCode' | 'message'>;
|
|
|
};
|
|
|
@@ -3143,6 +3188,7 @@ export type ResetPasswordMutation = {
|
|
|
| CurrentUserShopFragment
|
|
|
| Pick<PasswordResetTokenInvalidError, 'errorCode' | 'message'>
|
|
|
| Pick<PasswordResetTokenExpiredError, 'errorCode' | 'message'>
|
|
|
+ | Pick<PasswordValidationError, 'errorCode' | 'message' | 'validationErrorMessage'>
|
|
|
| Pick<NativeAuthStrategyError, 'errorCode' | 'message'>
|
|
|
| Pick<NotVerifiedError, 'errorCode' | 'message'>;
|
|
|
};
|
|
|
@@ -3213,6 +3259,7 @@ export type UpdatePasswordMutation = {
|
|
|
updateCustomerPassword:
|
|
|
| Pick<Success, 'success'>
|
|
|
| Pick<InvalidCredentialsError, 'errorCode' | 'message'>
|
|
|
+ | Pick<PasswordValidationError, 'errorCode' | 'message'>
|
|
|
| Pick<NativeAuthStrategyError, 'errorCode' | 'message'>;
|
|
|
};
|
|
|
|
|
|
@@ -3627,6 +3674,10 @@ export namespace Register {
|
|
|
NonNullable<RegisterMutation['registerCustomerAccount']>,
|
|
|
{ __typename?: 'ErrorResult' }
|
|
|
>;
|
|
|
+ export type PasswordValidationErrorInlineFragment = DiscriminateUnion<
|
|
|
+ NonNullable<RegisterMutation['registerCustomerAccount']>,
|
|
|
+ { __typename?: 'PasswordValidationError' }
|
|
|
+ >;
|
|
|
}
|
|
|
|
|
|
export namespace CurrentUserShop {
|
|
|
@@ -3642,6 +3693,10 @@ export namespace Verify {
|
|
|
NonNullable<VerifyMutation['verifyCustomerAccount']>,
|
|
|
{ __typename?: 'ErrorResult' }
|
|
|
>;
|
|
|
+ export type PasswordValidationErrorInlineFragment = DiscriminateUnion<
|
|
|
+ NonNullable<VerifyMutation['verifyCustomerAccount']>,
|
|
|
+ { __typename?: 'PasswordValidationError' }
|
|
|
+ >;
|
|
|
}
|
|
|
|
|
|
export namespace RefreshToken {
|
|
|
@@ -3682,6 +3737,10 @@ export namespace ResetPassword {
|
|
|
NonNullable<ResetPasswordMutation['resetPassword']>,
|
|
|
{ __typename?: 'ErrorResult' }
|
|
|
>;
|
|
|
+ export type PasswordValidationErrorInlineFragment = DiscriminateUnion<
|
|
|
+ NonNullable<ResetPasswordMutation['resetPassword']>,
|
|
|
+ { __typename?: 'PasswordValidationError' }
|
|
|
+ >;
|
|
|
}
|
|
|
|
|
|
export namespace RequestUpdateEmailAddress {
|