|
|
@@ -7,8 +7,8 @@ export type Scalars = {
|
|
|
Boolean: boolean;
|
|
|
Int: number;
|
|
|
Float: number;
|
|
|
- DateTime: any;
|
|
|
JSON: any;
|
|
|
+ DateTime: any;
|
|
|
Upload: any;
|
|
|
};
|
|
|
|
|
|
@@ -18,159 +18,161 @@ export class ErrorResult {
|
|
|
message: Scalars['String'];
|
|
|
}
|
|
|
|
|
|
-export class AlreadyLoggedInError extends ErrorResult {
|
|
|
- readonly __typename = 'AlreadyLoggedInError';
|
|
|
- readonly errorCode = 'ALREADY_LOGGED_IN_ERROR' as any;
|
|
|
- readonly message = 'ALREADY_LOGGED_IN_ERROR';
|
|
|
+export class NativeAuthStrategyError extends ErrorResult {
|
|
|
+ readonly __typename = 'NativeAuthStrategyError';
|
|
|
+ readonly errorCode = 'NATIVE_AUTH_STRATEGY_ERROR' as any;
|
|
|
+ readonly message = 'NATIVE_AUTH_STRATEGY_ERROR';
|
|
|
constructor(
|
|
|
) {
|
|
|
super();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-export class CouponCodeExpiredError extends ErrorResult {
|
|
|
- readonly __typename = 'CouponCodeExpiredError';
|
|
|
- readonly errorCode = 'COUPON_CODE_EXPIRED_ERROR' as any;
|
|
|
- readonly message = 'COUPON_CODE_EXPIRED_ERROR';
|
|
|
+export class InvalidCredentialsError extends ErrorResult {
|
|
|
+ readonly __typename = 'InvalidCredentialsError';
|
|
|
+ readonly errorCode = 'INVALID_CREDENTIALS_ERROR' as any;
|
|
|
+ readonly message = 'INVALID_CREDENTIALS_ERROR';
|
|
|
constructor(
|
|
|
- public couponCode: Scalars['String'],
|
|
|
) {
|
|
|
super();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-export class CouponCodeInvalidError extends ErrorResult {
|
|
|
- readonly __typename = 'CouponCodeInvalidError';
|
|
|
- readonly errorCode = 'COUPON_CODE_INVALID_ERROR' as any;
|
|
|
- readonly message = 'COUPON_CODE_INVALID_ERROR';
|
|
|
+export class OrderStateTransitionError extends ErrorResult {
|
|
|
+ readonly __typename = 'OrderStateTransitionError';
|
|
|
+ readonly errorCode = 'ORDER_STATE_TRANSITION_ERROR' as any;
|
|
|
+ readonly message = 'ORDER_STATE_TRANSITION_ERROR';
|
|
|
constructor(
|
|
|
- public couponCode: Scalars['String'],
|
|
|
+ public transitionError: Scalars['String'],
|
|
|
+ public fromState: Scalars['String'],
|
|
|
+ public toState: Scalars['String'],
|
|
|
) {
|
|
|
super();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-export class CouponCodeLimitError extends ErrorResult {
|
|
|
- readonly __typename = 'CouponCodeLimitError';
|
|
|
- readonly errorCode = 'COUPON_CODE_LIMIT_ERROR' as any;
|
|
|
- readonly message = 'COUPON_CODE_LIMIT_ERROR';
|
|
|
+export class EmailAddressConflictError extends ErrorResult {
|
|
|
+ readonly __typename = 'EmailAddressConflictError';
|
|
|
+ readonly errorCode = 'EMAIL_ADDRESS_CONFLICT_ERROR' as any;
|
|
|
+ readonly message = 'EMAIL_ADDRESS_CONFLICT_ERROR';
|
|
|
constructor(
|
|
|
- public couponCode: Scalars['String'],
|
|
|
- public limit: Scalars['Int'],
|
|
|
) {
|
|
|
super();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-export class EmailAddressConflictError extends ErrorResult {
|
|
|
- readonly __typename = 'EmailAddressConflictError';
|
|
|
- readonly errorCode = 'EMAIL_ADDRESS_CONFLICT_ERROR' as any;
|
|
|
- readonly message = 'EMAIL_ADDRESS_CONFLICT_ERROR';
|
|
|
+export class OrderModificationError extends ErrorResult {
|
|
|
+ readonly __typename = 'OrderModificationError';
|
|
|
+ readonly errorCode = 'ORDER_MODIFICATION_ERROR' as any;
|
|
|
+ readonly message = 'ORDER_MODIFICATION_ERROR';
|
|
|
constructor(
|
|
|
) {
|
|
|
super();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-export class IdentifierChangeTokenExpiredError extends ErrorResult {
|
|
|
- readonly __typename = 'IdentifierChangeTokenExpiredError';
|
|
|
- readonly errorCode = 'IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR' as any;
|
|
|
- readonly message = 'IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR';
|
|
|
+export class OrderLimitError extends ErrorResult {
|
|
|
+ readonly __typename = 'OrderLimitError';
|
|
|
+ readonly errorCode = 'ORDER_LIMIT_ERROR' as any;
|
|
|
+ readonly message = 'ORDER_LIMIT_ERROR';
|
|
|
constructor(
|
|
|
+ public maxItems: Scalars['Int'],
|
|
|
) {
|
|
|
super();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-export class IdentifierChangeTokenInvalidError extends ErrorResult {
|
|
|
- readonly __typename = 'IdentifierChangeTokenInvalidError';
|
|
|
- readonly errorCode = 'IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR' as any;
|
|
|
- readonly message = 'IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR';
|
|
|
+export class NegativeQuantityError extends ErrorResult {
|
|
|
+ readonly __typename = 'NegativeQuantityError';
|
|
|
+ readonly errorCode = 'NEGATIVE_QUANTITY_ERROR' as any;
|
|
|
+ readonly message = 'NEGATIVE_QUANTITY_ERROR';
|
|
|
constructor(
|
|
|
) {
|
|
|
super();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-export class InvalidCredentialsError extends ErrorResult {
|
|
|
- readonly __typename = 'InvalidCredentialsError';
|
|
|
- readonly errorCode = 'INVALID_CREDENTIALS_ERROR' as any;
|
|
|
- readonly message = 'INVALID_CREDENTIALS_ERROR';
|
|
|
+export class OrderPaymentStateError extends ErrorResult {
|
|
|
+ readonly __typename = 'OrderPaymentStateError';
|
|
|
+ readonly errorCode = 'ORDER_PAYMENT_STATE_ERROR' as any;
|
|
|
+ readonly message = 'ORDER_PAYMENT_STATE_ERROR';
|
|
|
constructor(
|
|
|
) {
|
|
|
super();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-export class MissingPasswordError extends ErrorResult {
|
|
|
- readonly __typename = 'MissingPasswordError';
|
|
|
- readonly errorCode = 'MISSING_PASSWORD_ERROR' as any;
|
|
|
- readonly message = 'MISSING_PASSWORD_ERROR';
|
|
|
+export class PaymentFailedError extends ErrorResult {
|
|
|
+ readonly __typename = 'PaymentFailedError';
|
|
|
+ readonly errorCode = 'PAYMENT_FAILED_ERROR' as any;
|
|
|
+ readonly message = 'PAYMENT_FAILED_ERROR';
|
|
|
constructor(
|
|
|
+ public paymentErrorMessage: Scalars['String'],
|
|
|
) {
|
|
|
super();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-export class NativeAuthStrategyError extends ErrorResult {
|
|
|
- readonly __typename = 'NativeAuthStrategyError';
|
|
|
- readonly errorCode = 'NATIVE_AUTH_STRATEGY_ERROR' as any;
|
|
|
- readonly message = 'NATIVE_AUTH_STRATEGY_ERROR';
|
|
|
+export class PaymentDeclinedError extends ErrorResult {
|
|
|
+ readonly __typename = 'PaymentDeclinedError';
|
|
|
+ readonly errorCode = 'PAYMENT_DECLINED_ERROR' as any;
|
|
|
+ readonly message = 'PAYMENT_DECLINED_ERROR';
|
|
|
constructor(
|
|
|
+ public paymentErrorMessage: Scalars['String'],
|
|
|
) {
|
|
|
super();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-export class NegativeQuantityError extends ErrorResult {
|
|
|
- readonly __typename = 'NegativeQuantityError';
|
|
|
- readonly errorCode = 'NEGATIVE_QUANTITY_ERROR' as any;
|
|
|
- readonly message = 'NEGATIVE_QUANTITY_ERROR';
|
|
|
+export class CouponCodeInvalidError extends ErrorResult {
|
|
|
+ readonly __typename = 'CouponCodeInvalidError';
|
|
|
+ readonly errorCode = 'COUPON_CODE_INVALID_ERROR' as any;
|
|
|
+ readonly message = 'COUPON_CODE_INVALID_ERROR';
|
|
|
constructor(
|
|
|
+ public couponCode: Scalars['String'],
|
|
|
) {
|
|
|
super();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-export class OrderLimitError extends ErrorResult {
|
|
|
- readonly __typename = 'OrderLimitError';
|
|
|
- readonly errorCode = 'ORDER_LIMIT_ERROR' as any;
|
|
|
- readonly message = 'ORDER_LIMIT_ERROR';
|
|
|
+export class CouponCodeExpiredError extends ErrorResult {
|
|
|
+ readonly __typename = 'CouponCodeExpiredError';
|
|
|
+ readonly errorCode = 'COUPON_CODE_EXPIRED_ERROR' as any;
|
|
|
+ readonly message = 'COUPON_CODE_EXPIRED_ERROR';
|
|
|
constructor(
|
|
|
- public maxItems: Scalars['Int'],
|
|
|
+ public couponCode: Scalars['String'],
|
|
|
) {
|
|
|
super();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-export class OrderModificationError extends ErrorResult {
|
|
|
- readonly __typename = 'OrderModificationError';
|
|
|
- readonly errorCode = 'ORDER_MODIFICATION_ERROR' as any;
|
|
|
- readonly message = 'ORDER_MODIFICATION_ERROR';
|
|
|
+export class CouponCodeLimitError extends ErrorResult {
|
|
|
+ readonly __typename = 'CouponCodeLimitError';
|
|
|
+ readonly errorCode = 'COUPON_CODE_LIMIT_ERROR' as any;
|
|
|
+ readonly message = 'COUPON_CODE_LIMIT_ERROR';
|
|
|
constructor(
|
|
|
+ public couponCode: Scalars['String'],
|
|
|
+ public limit: Scalars['Int'],
|
|
|
) {
|
|
|
super();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-export class OrderPaymentStateError extends ErrorResult {
|
|
|
- readonly __typename = 'OrderPaymentStateError';
|
|
|
- readonly errorCode = 'ORDER_PAYMENT_STATE_ERROR' as any;
|
|
|
- readonly message = 'ORDER_PAYMENT_STATE_ERROR';
|
|
|
+export class AlreadyLoggedInError extends ErrorResult {
|
|
|
+ readonly __typename = 'AlreadyLoggedInError';
|
|
|
+ readonly errorCode = 'ALREADY_LOGGED_IN_ERROR' as any;
|
|
|
+ readonly message = 'ALREADY_LOGGED_IN_ERROR';
|
|
|
constructor(
|
|
|
) {
|
|
|
super();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-export class OrderStateTransitionError extends ErrorResult {
|
|
|
- readonly __typename = 'OrderStateTransitionError';
|
|
|
- readonly errorCode = 'ORDER_STATE_TRANSITION_ERROR' as any;
|
|
|
- readonly message = 'ORDER_STATE_TRANSITION_ERROR';
|
|
|
+export class MissingPasswordError extends ErrorResult {
|
|
|
+ readonly __typename = 'MissingPasswordError';
|
|
|
+ readonly errorCode = 'MISSING_PASSWORD_ERROR' as any;
|
|
|
+ readonly message = 'MISSING_PASSWORD_ERROR';
|
|
|
constructor(
|
|
|
- public transitionError: Scalars['String'],
|
|
|
- public fromState: Scalars['String'],
|
|
|
- public toState: Scalars['String'],
|
|
|
) {
|
|
|
super();
|
|
|
}
|
|
|
@@ -186,62 +188,60 @@ export class PasswordAlreadySetError extends ErrorResult {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-export class PasswordResetTokenExpiredError extends ErrorResult {
|
|
|
- readonly __typename = 'PasswordResetTokenExpiredError';
|
|
|
- readonly errorCode = 'PASSWORD_RESET_TOKEN_EXPIRED_ERROR' as any;
|
|
|
- readonly message = 'PASSWORD_RESET_TOKEN_EXPIRED_ERROR';
|
|
|
+export class VerificationTokenInvalidError extends ErrorResult {
|
|
|
+ readonly __typename = 'VerificationTokenInvalidError';
|
|
|
+ readonly errorCode = 'VERIFICATION_TOKEN_INVALID_ERROR' as any;
|
|
|
+ readonly message = 'VERIFICATION_TOKEN_INVALID_ERROR';
|
|
|
constructor(
|
|
|
) {
|
|
|
super();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-export class PasswordResetTokenInvalidError extends ErrorResult {
|
|
|
- readonly __typename = 'PasswordResetTokenInvalidError';
|
|
|
- readonly errorCode = 'PASSWORD_RESET_TOKEN_INVALID_ERROR' as any;
|
|
|
- readonly message = 'PASSWORD_RESET_TOKEN_INVALID_ERROR';
|
|
|
+export class VerificationTokenExpiredError extends ErrorResult {
|
|
|
+ readonly __typename = 'VerificationTokenExpiredError';
|
|
|
+ readonly errorCode = 'VERIFICATION_TOKEN_EXPIRED_ERROR' as any;
|
|
|
+ readonly message = 'VERIFICATION_TOKEN_EXPIRED_ERROR';
|
|
|
constructor(
|
|
|
) {
|
|
|
super();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-export class PaymentDeclinedError extends ErrorResult {
|
|
|
- readonly __typename = 'PaymentDeclinedError';
|
|
|
- readonly errorCode = 'PAYMENT_DECLINED_ERROR' as any;
|
|
|
- readonly message = 'PAYMENT_DECLINED_ERROR';
|
|
|
+export class IdentifierChangeTokenInvalidError extends ErrorResult {
|
|
|
+ readonly __typename = 'IdentifierChangeTokenInvalidError';
|
|
|
+ readonly errorCode = 'IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR' as any;
|
|
|
+ readonly message = 'IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR';
|
|
|
constructor(
|
|
|
- public paymentErrorMessage: Scalars['String'],
|
|
|
) {
|
|
|
super();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-export class PaymentFailedError extends ErrorResult {
|
|
|
- readonly __typename = 'PaymentFailedError';
|
|
|
- readonly errorCode = 'PAYMENT_FAILED_ERROR' as any;
|
|
|
- readonly message = 'PAYMENT_FAILED_ERROR';
|
|
|
+export class IdentifierChangeTokenExpiredError extends ErrorResult {
|
|
|
+ readonly __typename = 'IdentifierChangeTokenExpiredError';
|
|
|
+ readonly errorCode = 'IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR' as any;
|
|
|
+ readonly message = 'IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR';
|
|
|
constructor(
|
|
|
- public paymentErrorMessage: Scalars['String'],
|
|
|
) {
|
|
|
super();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-export class VerificationTokenExpiredError extends ErrorResult {
|
|
|
- readonly __typename = 'VerificationTokenExpiredError';
|
|
|
- readonly errorCode = 'VERIFICATION_TOKEN_EXPIRED_ERROR' as any;
|
|
|
- readonly message = 'VERIFICATION_TOKEN_EXPIRED_ERROR';
|
|
|
+export class PasswordResetTokenInvalidError extends ErrorResult {
|
|
|
+ readonly __typename = 'PasswordResetTokenInvalidError';
|
|
|
+ readonly errorCode = 'PASSWORD_RESET_TOKEN_INVALID_ERROR' as any;
|
|
|
+ readonly message = 'PASSWORD_RESET_TOKEN_INVALID_ERROR';
|
|
|
constructor(
|
|
|
) {
|
|
|
super();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-export class VerificationTokenInvalidError extends ErrorResult {
|
|
|
- readonly __typename = 'VerificationTokenInvalidError';
|
|
|
- readonly errorCode = 'VERIFICATION_TOKEN_INVALID_ERROR' as any;
|
|
|
- readonly message = 'VERIFICATION_TOKEN_INVALID_ERROR';
|
|
|
+export class PasswordResetTokenExpiredError extends ErrorResult {
|
|
|
+ readonly __typename = 'PasswordResetTokenExpiredError';
|
|
|
+ readonly errorCode = 'PASSWORD_RESET_TOKEN_EXPIRED_ERROR' as any;
|
|
|
+ readonly message = 'PASSWORD_RESET_TOKEN_EXPIRED_ERROR';
|
|
|
constructor(
|
|
|
) {
|
|
|
super();
|
|
|
@@ -249,7 +249,7 @@ export class VerificationTokenInvalidError extends ErrorResult {
|
|
|
}
|
|
|
|
|
|
|
|
|
-const errorTypeNames = new Set(['OrderModificationError', 'OrderLimitError', 'NegativeQuantityError', 'CouponCodeExpiredError', 'CouponCodeInvalidError', 'CouponCodeLimitError', 'OrderStateTransitionError', 'OrderPaymentStateError', 'PaymentFailedError', 'PaymentDeclinedError', 'AlreadyLoggedInError', 'EmailAddressConflictError', 'InvalidCredentialsError', 'NativeAuthStrategyError', 'MissingPasswordError', 'VerificationTokenInvalidError', 'VerificationTokenExpiredError', 'PasswordAlreadySetError', 'IdentifierChangeTokenInvalidError', 'IdentifierChangeTokenExpiredError', 'PasswordResetTokenInvalidError', 'PasswordResetTokenExpiredError']);
|
|
|
+const errorTypeNames = new Set(['NativeAuthStrategyError', 'InvalidCredentialsError', 'OrderStateTransitionError', 'EmailAddressConflictError', 'OrderModificationError', 'OrderLimitError', 'NegativeQuantityError', 'OrderPaymentStateError', 'PaymentFailedError', 'PaymentDeclinedError', 'CouponCodeInvalidError', 'CouponCodeExpiredError', 'CouponCodeLimitError', 'AlreadyLoggedInError', 'MissingPasswordError', 'PasswordAlreadySetError', 'VerificationTokenInvalidError', 'VerificationTokenExpiredError', 'IdentifierChangeTokenInvalidError', 'IdentifierChangeTokenExpiredError', 'PasswordResetTokenInvalidError', 'PasswordResetTokenExpiredError']);
|
|
|
function isGraphQLError(input: any): input is import('@vendure/common/lib/generated-types').ErrorResult {
|
|
|
return input instanceof ErrorResult || errorTypeNames.has(input.__typename);
|
|
|
}
|