From 8065498fa90c3ee81ccdd87760b5a0eb48a88453 Mon Sep 17 00:00:00 2001 From: Michael Bromley Date: Tue, 20 Feb 2024 10:05:27 +0100 Subject: [PATCH] chore: Update generated types --- ...generated-e2e-asset-server-plugin-types.ts | 34 +++++++++++++++++++ ...enerated-e2e-elasticsearch-plugin-types.ts | 34 +++++++++++++++++++ .../e2e/graphql/generated-admin-types.ts | 34 +++++++++++++++++++ 3 files changed, 102 insertions(+) diff --git a/packages/asset-server-plugin/e2e/graphql/generated-e2e-asset-server-plugin-types.ts b/packages/asset-server-plugin/e2e/graphql/generated-e2e-asset-server-plugin-types.ts index a23cb67b76..af68f4b6cf 100644 --- a/packages/asset-server-plugin/e2e/graphql/generated-e2e-asset-server-plugin-types.ts +++ b/packages/asset-server-plugin/e2e/graphql/generated-e2e-asset-server-plugin-types.ts @@ -1509,6 +1509,24 @@ export type Discount = { type: AdjustmentType; }; +export type DuplicateEntityError = ErrorResult & { + duplicationError: Scalars['String']['output']; + errorCode: ErrorCode; + message: Scalars['String']['output']; +}; + +export type DuplicateEntityInput = { + duplicatorInput: ConfigurableOperationInput; + entityId: Scalars['ID']['input']; + entityName: Scalars['String']['input']; +}; + +export type DuplicateEntityResult = DuplicateEntityError | DuplicateEntitySuccess; + +export type DuplicateEntitySuccess = { + newEntityId: Scalars['ID']['output']; +}; + /** Returned when attempting to create a Customer with an email address already registered to an existing User. */ export type EmailAddressConflictError = ErrorResult & { errorCode: ErrorCode; @@ -1526,6 +1544,14 @@ export type EntityCustomFields = { entityName: Scalars['String']['output']; }; +export type EntityDuplicatorDefinition = { + args: Array; + code: Scalars['String']['output']; + description: Scalars['String']['output']; + forEntities: Array; + requiresPermission: Array; +}; + export enum ErrorCode { ALREADY_REFUNDED_ERROR = 'ALREADY_REFUNDED_ERROR', CANCEL_ACTIVE_ORDER_ERROR = 'CANCEL_ACTIVE_ORDER_ERROR', @@ -1535,6 +1561,7 @@ export enum ErrorCode { COUPON_CODE_INVALID_ERROR = 'COUPON_CODE_INVALID_ERROR', COUPON_CODE_LIMIT_ERROR = 'COUPON_CODE_LIMIT_ERROR', CREATE_FULFILLMENT_ERROR = 'CREATE_FULFILLMENT_ERROR', + DUPLICATE_ENTITY_ERROR = 'DUPLICATE_ENTITY_ERROR', EMAIL_ADDRESS_CONFLICT_ERROR = 'EMAIL_ADDRESS_CONFLICT_ERROR', EMPTY_ORDER_LINE_SELECTION_ERROR = 'EMPTY_ORDER_LINE_SELECTION_ERROR', FACET_IN_USE_ERROR = 'FACET_IN_USE_ERROR', @@ -2720,6 +2747,7 @@ export type Mutation = { deleteZone: DeletionResponse; /** Delete a Zone */ deleteZones: Array; + duplicateEntity: DuplicateEntityResult; flushBufferedJobs: Success; importProducts?: Maybe; /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */ @@ -3333,6 +3361,11 @@ export type MutationDeleteZonesArgs = { }; +export type MutationDuplicateEntityArgs = { + input: DuplicateEntityInput; +}; + + export type MutationFlushBufferedJobsArgs = { bufferIds?: InputMaybe>; }; @@ -4826,6 +4859,7 @@ export type Query = { customers: CustomerList; /** Returns a list of eligible shipping methods for the draft Order */ eligibleShippingMethodsForDraftOrder: Array; + entityDuplicators: Array; facet?: Maybe; facetValues: FacetValueList; facets: FacetList; diff --git a/packages/elasticsearch-plugin/e2e/graphql/generated-e2e-elasticsearch-plugin-types.ts b/packages/elasticsearch-plugin/e2e/graphql/generated-e2e-elasticsearch-plugin-types.ts index 996655fb1d..62ead648a6 100644 --- a/packages/elasticsearch-plugin/e2e/graphql/generated-e2e-elasticsearch-plugin-types.ts +++ b/packages/elasticsearch-plugin/e2e/graphql/generated-e2e-elasticsearch-plugin-types.ts @@ -1509,6 +1509,24 @@ export type Discount = { type: AdjustmentType; }; +export type DuplicateEntityError = ErrorResult & { + duplicationError: Scalars['String']['output']; + errorCode: ErrorCode; + message: Scalars['String']['output']; +}; + +export type DuplicateEntityInput = { + duplicatorInput: ConfigurableOperationInput; + entityId: Scalars['ID']['input']; + entityName: Scalars['String']['input']; +}; + +export type DuplicateEntityResult = DuplicateEntityError | DuplicateEntitySuccess; + +export type DuplicateEntitySuccess = { + newEntityId: Scalars['ID']['output']; +}; + /** Returned when attempting to create a Customer with an email address already registered to an existing User. */ export type EmailAddressConflictError = ErrorResult & { errorCode: ErrorCode; @@ -1526,6 +1544,14 @@ export type EntityCustomFields = { entityName: Scalars['String']['output']; }; +export type EntityDuplicatorDefinition = { + args: Array; + code: Scalars['String']['output']; + description: Scalars['String']['output']; + forEntities: Array; + requiresPermission: Array; +}; + export enum ErrorCode { ALREADY_REFUNDED_ERROR = 'ALREADY_REFUNDED_ERROR', CANCEL_ACTIVE_ORDER_ERROR = 'CANCEL_ACTIVE_ORDER_ERROR', @@ -1535,6 +1561,7 @@ export enum ErrorCode { COUPON_CODE_INVALID_ERROR = 'COUPON_CODE_INVALID_ERROR', COUPON_CODE_LIMIT_ERROR = 'COUPON_CODE_LIMIT_ERROR', CREATE_FULFILLMENT_ERROR = 'CREATE_FULFILLMENT_ERROR', + DUPLICATE_ENTITY_ERROR = 'DUPLICATE_ENTITY_ERROR', EMAIL_ADDRESS_CONFLICT_ERROR = 'EMAIL_ADDRESS_CONFLICT_ERROR', EMPTY_ORDER_LINE_SELECTION_ERROR = 'EMPTY_ORDER_LINE_SELECTION_ERROR', FACET_IN_USE_ERROR = 'FACET_IN_USE_ERROR', @@ -2720,6 +2747,7 @@ export type Mutation = { deleteZone: DeletionResponse; /** Delete a Zone */ deleteZones: Array; + duplicateEntity: DuplicateEntityResult; flushBufferedJobs: Success; importProducts?: Maybe; /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */ @@ -3333,6 +3361,11 @@ export type MutationDeleteZonesArgs = { }; +export type MutationDuplicateEntityArgs = { + input: DuplicateEntityInput; +}; + + export type MutationFlushBufferedJobsArgs = { bufferIds?: InputMaybe>; }; @@ -4826,6 +4859,7 @@ export type Query = { customers: CustomerList; /** Returns a list of eligible shipping methods for the draft Order */ eligibleShippingMethodsForDraftOrder: Array; + entityDuplicators: Array; facet?: Maybe; facetValues: FacetValueList; facets: FacetList; diff --git a/packages/payments-plugin/e2e/graphql/generated-admin-types.ts b/packages/payments-plugin/e2e/graphql/generated-admin-types.ts index fa6288cc6a..388d6f3694 100644 --- a/packages/payments-plugin/e2e/graphql/generated-admin-types.ts +++ b/packages/payments-plugin/e2e/graphql/generated-admin-types.ts @@ -1509,6 +1509,24 @@ export type Discount = { type: AdjustmentType; }; +export type DuplicateEntityError = ErrorResult & { + duplicationError: Scalars['String']['output']; + errorCode: ErrorCode; + message: Scalars['String']['output']; +}; + +export type DuplicateEntityInput = { + duplicatorInput: ConfigurableOperationInput; + entityId: Scalars['ID']['input']; + entityName: Scalars['String']['input']; +}; + +export type DuplicateEntityResult = DuplicateEntityError | DuplicateEntitySuccess; + +export type DuplicateEntitySuccess = { + newEntityId: Scalars['ID']['output']; +}; + /** Returned when attempting to create a Customer with an email address already registered to an existing User. */ export type EmailAddressConflictError = ErrorResult & { errorCode: ErrorCode; @@ -1526,6 +1544,14 @@ export type EntityCustomFields = { entityName: Scalars['String']['output']; }; +export type EntityDuplicatorDefinition = { + args: Array; + code: Scalars['String']['output']; + description: Scalars['String']['output']; + forEntities: Array; + requiresPermission: Array; +}; + export enum ErrorCode { ALREADY_REFUNDED_ERROR = 'ALREADY_REFUNDED_ERROR', CANCEL_ACTIVE_ORDER_ERROR = 'CANCEL_ACTIVE_ORDER_ERROR', @@ -1535,6 +1561,7 @@ export enum ErrorCode { COUPON_CODE_INVALID_ERROR = 'COUPON_CODE_INVALID_ERROR', COUPON_CODE_LIMIT_ERROR = 'COUPON_CODE_LIMIT_ERROR', CREATE_FULFILLMENT_ERROR = 'CREATE_FULFILLMENT_ERROR', + DUPLICATE_ENTITY_ERROR = 'DUPLICATE_ENTITY_ERROR', EMAIL_ADDRESS_CONFLICT_ERROR = 'EMAIL_ADDRESS_CONFLICT_ERROR', EMPTY_ORDER_LINE_SELECTION_ERROR = 'EMPTY_ORDER_LINE_SELECTION_ERROR', FACET_IN_USE_ERROR = 'FACET_IN_USE_ERROR', @@ -2720,6 +2747,7 @@ export type Mutation = { deleteZone: DeletionResponse; /** Delete a Zone */ deleteZones: Array; + duplicateEntity: DuplicateEntityResult; flushBufferedJobs: Success; importProducts?: Maybe; /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */ @@ -3333,6 +3361,11 @@ export type MutationDeleteZonesArgs = { }; +export type MutationDuplicateEntityArgs = { + input: DuplicateEntityInput; +}; + + export type MutationFlushBufferedJobsArgs = { bufferIds?: InputMaybe>; }; @@ -4826,6 +4859,7 @@ export type Query = { customers: CustomerList; /** Returns a list of eligible shipping methods for the draft Order */ eligibleShippingMethodsForDraftOrder: Array; + entityDuplicators: Array; facet?: Maybe; facetValues: FacetValueList; facets: FacetList;