From a0cb99bdc43259e962e9806a86b6421b641f1e74 Mon Sep 17 00:00:00 2001 From: Mikael Araya Date: Tue, 10 Mar 2026 23:01:38 +0300 Subject: [PATCH 1/7] Extend engine and admin-ui to support ticket management --- admin-ui/src/gql/types.ts | 12416 ++-------------- .../src/modules/common/components/Layout.tsx | 7 + .../product/fragments/TokenFragment.ts | 1 + .../src/modules/product/hooks/useProduct.ts | 50 + .../ticketing/components/EventTokenList.tsx | 71 + .../components/EventTokenListItem.tsx | 103 + .../components/TicketEventDetail.tsx | 264 + .../ticketing/components/TicketEventList.tsx | 38 + .../components/TicketEventListItem.tsx | 98 + .../modules/ticketing/hooks/useCancelEvent.ts | 24 + .../ticketing/hooks/useCancelTicket.ts | 30 + .../ticketing/hooks/useEventProducts.ts | 77 + admin-ui/src/modules/ticketing/index.ts | 3 + .../modules/token/components/TokenDetail.tsx | 13 + .../modules/token/components/TokenList.tsx | 6 + .../token/components/TokenListItem.tsx | 5 + .../pages/ticketing/TicketEventDetailPage.tsx | 35 + admin-ui/src/pages/ticketing/index.tsx | 102 + admin-ui/src/pages/tokens/TokenDetailPage.tsx | 83 +- packages/api/src/resolvers/mutations/index.ts | 4 + .../mutations/warehousing/cancelEvent.ts | 37 + .../mutations/warehousing/cancelTicket.ts | 36 + packages/api/src/resolvers/queries/index.ts | 4 + .../resolvers/queries/products/products.ts | 7 +- .../queries/ticketing/ticketEvents.ts | 33 + .../queries/ticketing/ticketEventsCount.ts | 23 + .../api/src/resolvers/type/token-types.ts | 4 + packages/api/src/schema/mutation.ts | 11 + packages/api/src/schema/query.ts | 18 + packages/api/src/schema/types/warehousing.ts | 1 + .../src/module/configureProductsModule.ts | 12 + 31 files changed, 2810 insertions(+), 10806 deletions(-) create mode 100644 admin-ui/src/modules/ticketing/components/EventTokenList.tsx create mode 100644 admin-ui/src/modules/ticketing/components/EventTokenListItem.tsx create mode 100644 admin-ui/src/modules/ticketing/components/TicketEventDetail.tsx create mode 100644 admin-ui/src/modules/ticketing/components/TicketEventList.tsx create mode 100644 admin-ui/src/modules/ticketing/components/TicketEventListItem.tsx create mode 100644 admin-ui/src/modules/ticketing/hooks/useCancelEvent.ts create mode 100644 admin-ui/src/modules/ticketing/hooks/useCancelTicket.ts create mode 100644 admin-ui/src/modules/ticketing/hooks/useEventProducts.ts create mode 100644 admin-ui/src/modules/ticketing/index.ts create mode 100644 admin-ui/src/pages/ticketing/TicketEventDetailPage.tsx create mode 100644 admin-ui/src/pages/ticketing/index.tsx create mode 100644 packages/api/src/resolvers/mutations/warehousing/cancelEvent.ts create mode 100644 packages/api/src/resolvers/mutations/warehousing/cancelTicket.ts create mode 100644 packages/api/src/resolvers/queries/ticketing/ticketEvents.ts create mode 100644 packages/api/src/resolvers/queries/ticketing/ticketEventsCount.ts diff --git a/admin-ui/src/gql/types.ts b/admin-ui/src/gql/types.ts index 461a3b541c..91f6981eb2 100644 --- a/admin-ui/src/gql/types.ts +++ b/admin-ui/src/gql/types.ts @@ -1,36 +1,23 @@ export type Maybe = T | null; export type InputMaybe = Maybe; -export type Exact = { - [K in keyof T]: T[K]; -}; -export type MakeOptional = Omit & { - [SubKey in K]?: Maybe; -}; -export type MakeMaybe = Omit & { - [SubKey in K]: Maybe; -}; -export type MakeEmpty< - T extends { [key: string]: unknown }, - K extends keyof T, -> = { [_ in K]?: never }; -export type Incremental = - | T - | { - [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never; - }; +export type Exact = { [K in keyof T]: T[K] }; +export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; +export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { [_ in K]?: never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: { input: string; output: string }; - String: { input: string; output: string }; - Boolean: { input: boolean; output: boolean }; - Int: { input: number; output: number }; - Float: { input: number; output: number }; - Date: { input: any; output: any }; - DateTimeISO: { input: any; output: any }; - JSON: { input: any; output: any }; - Locale: { input: any; output: any }; - LowerCaseString: { input: any; output: any }; - Timestamp: { input: any; output: any }; + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } + Date: { input: any; output: any; } + DateTimeISO: { input: any; output: any; } + JSON: { input: any; output: any; } + Locale: { input: any; output: any; } + LowerCaseString: { input: any; output: any; } + Timestamp: { input: any; output: any; } }; export type IAddress = { @@ -98,16 +85,19 @@ export type IAssortment = { updated?: Maybe; }; + /** Assortment */ export type IAssortmentChildrenArgs = { includeInactive?: InputMaybe; }; + /** Assortment */ export type IAssortmentChildrenCountArgs = { includeInactive?: InputMaybe; }; + /** Assortment */ export type IAssortmentMediaArgs = { limit?: InputMaybe; @@ -115,6 +105,7 @@ export type IAssortmentMediaArgs = { tags?: InputMaybe>; }; + /** Assortment */ export type IAssortmentSearchProductsArgs = { filterQuery?: InputMaybe>; @@ -124,6 +115,7 @@ export type IAssortmentSearchProductsArgs = { queryString?: InputMaybe; }; + /** Assortment */ export type IAssortmentTextsArgs = { forceLocale?: InputMaybe; @@ -153,6 +145,7 @@ export type IAssortmentMedia = { texts?: Maybe; }; + export type IAssortmentMediaTextsArgs = { forceLocale?: InputMaybe; }; @@ -186,6 +179,7 @@ export type IAssortmentPathLink = { link?: Maybe; }; + /** * A connection that represents an uplink from assortment to assortment, * assortmentId and assortmentTexts are there for convenience @@ -208,6 +202,7 @@ export type IAssortmentSearchResult = { assortmentsCount: Scalars['Int']['output']; }; + export type IAssortmentSearchResultAssortmentsArgs = { limit?: InputMaybe; offset?: InputMaybe; @@ -262,17 +257,20 @@ export type IBundleProduct = IProduct & { updated?: Maybe; }; + /** A Bundle product consists of multiple products */ export type IBundleProductCatalogPriceArgs = { currencyCode?: InputMaybe; quantity?: InputMaybe; }; + /** A Bundle product consists of multiple products */ export type IBundleProductLeveledCatalogPricesArgs = { currencyCode?: InputMaybe; }; + /** A Bundle product consists of multiple products */ export type IBundleProductMediaArgs = { limit?: InputMaybe; @@ -280,6 +278,7 @@ export type IBundleProductMediaArgs = { tags?: InputMaybe>; }; + /** A Bundle product consists of multiple products */ export type IBundleProductReviewsArgs = { limit?: InputMaybe; @@ -288,11 +287,13 @@ export type IBundleProductReviewsArgs = { sort?: InputMaybe>; }; + /** A Bundle product consists of multiple products */ export type IBundleProductReviewsCountArgs = { queryString?: InputMaybe; }; + /** A Bundle product consists of multiple products */ export type IBundleProductSiblingsArgs = { assortmentId?: InputMaybe; @@ -301,6 +302,7 @@ export type IBundleProductSiblingsArgs = { offset?: InputMaybe; }; + /** A Bundle product consists of multiple products */ export type IBundleProductSimulatedPriceArgs = { configuration?: InputMaybe>; @@ -309,6 +311,7 @@ export type IBundleProductSimulatedPriceArgs = { useNetPrice?: InputMaybe; }; + /** A Bundle product consists of multiple products */ export type IBundleProductTextsArgs = { forceLocale?: InputMaybe; @@ -316,7 +319,7 @@ export type IBundleProductTextsArgs = { export enum ICacheControlScope { Private = 'PRIVATE', - Public = 'PUBLIC', + Public = 'PUBLIC' } export type IColor = { @@ -327,9 +330,7 @@ export type IColor = { red?: Maybe; }; -export type IConfigurableOrBundleProduct = - | IBundleProduct - | IConfigurableProduct; +export type IConfigurableOrBundleProduct = IBundleProduct | IConfigurableProduct; /** Configurable Product (Proxy) */ export type IConfigurableProduct = IProduct & { @@ -357,11 +358,13 @@ export type IConfigurableProduct = IProduct & { variations?: Maybe>; }; + /** Configurable Product (Proxy) */ export type IConfigurableProductAssignmentsArgs = { includeInactive?: InputMaybe; }; + /** Configurable Product (Proxy) */ export type IConfigurableProductCatalogPriceRangeArgs = { currencyCode?: InputMaybe; @@ -370,6 +373,7 @@ export type IConfigurableProductCatalogPriceRangeArgs = { vectors?: InputMaybe>; }; + /** Configurable Product (Proxy) */ export type IConfigurableProductMediaArgs = { limit?: InputMaybe; @@ -377,12 +381,14 @@ export type IConfigurableProductMediaArgs = { tags?: InputMaybe>; }; + /** Configurable Product (Proxy) */ export type IConfigurableProductProductsArgs = { includeInactive?: InputMaybe; vectors?: InputMaybe>; }; + /** Configurable Product (Proxy) */ export type IConfigurableProductReviewsArgs = { limit?: InputMaybe; @@ -391,11 +397,13 @@ export type IConfigurableProductReviewsArgs = { sort?: InputMaybe>; }; + /** Configurable Product (Proxy) */ export type IConfigurableProductReviewsCountArgs = { queryString?: InputMaybe; }; + /** Configurable Product (Proxy) */ export type IConfigurableProductSiblingsArgs = { assortmentId?: InputMaybe; @@ -404,6 +412,7 @@ export type IConfigurableProductSiblingsArgs = { offset?: InputMaybe; }; + /** Configurable Product (Proxy) */ export type IConfigurableProductSimulatedPriceRangeArgs = { currencyCode?: InputMaybe; @@ -413,6 +422,7 @@ export type IConfigurableProductSimulatedPriceRangeArgs = { vectors?: InputMaybe>; }; + /** Configurable Product (Proxy) */ export type IConfigurableProductTextsArgs = { forceLocale?: InputMaybe; @@ -445,6 +455,7 @@ export type ICountry = { name?: Maybe; }; + export type ICountryNameArgs = { forceLocale?: InputMaybe; }; @@ -536,6 +547,7 @@ export type IDeliveryProvider = { updated?: Maybe; }; + export type IDeliveryProviderSimulatedPriceArgs = { context?: InputMaybe; currencyCode?: InputMaybe; @@ -547,7 +559,7 @@ export enum IDeliveryProviderError { AdapterNotFound = 'ADAPTER_NOT_FOUND', IncompleteConfiguration = 'INCOMPLETE_CONFIGURATION', NotImplemented = 'NOT_IMPLEMENTED', - WrongCredentials = 'WRONG_CREDENTIALS', + WrongCredentials = 'WRONG_CREDENTIALS' } export type IDeliveryProviderPickUp = IDeliveryProvider & { @@ -564,6 +576,7 @@ export type IDeliveryProviderPickUp = IDeliveryProvider & { updated?: Maybe; }; + export type IDeliveryProviderPickUpSimulatedPriceArgs = { context?: InputMaybe; currencyCode?: InputMaybe; @@ -584,6 +597,7 @@ export type IDeliveryProviderShipping = IDeliveryProvider & { updated?: Maybe; }; + export type IDeliveryProviderShippingSimulatedPriceArgs = { context?: InputMaybe; currencyCode?: InputMaybe; @@ -595,7 +609,7 @@ export enum IDeliveryProviderType { /** Pick-Up */ Pickup = 'PICKUP', /** Shipping */ - Shipping = 'SHIPPING', + Shipping = 'SHIPPING' } export type IDimensions = { @@ -605,18 +619,22 @@ export type IDimensions = { width?: Maybe; }; + export type IDimensionsHeightArgs = { unit?: InputMaybe; }; + export type IDimensionsLengthArgs = { unit?: InputMaybe; }; + export type IDimensionsWeightArgs = { unit?: InputMaybe; }; + export type IDimensionsWidthArgs = { unit?: InputMaybe; }; @@ -656,6 +674,7 @@ export type IEnrollment = { user: IUser; }; + /** Enrollment */ export type IEnrollmentIsExpiredArgs = { referenceDate?: InputMaybe; @@ -706,7 +725,7 @@ export enum IEnrollmentStatus { /** Paused because of overdue payments */ Paused = 'PAUSED', /** Terminated / Ended enrollment */ - Terminated = 'TERMINATED', + Terminated = 'TERMINATED' } export type IEvent = { @@ -854,14 +873,14 @@ export enum IEventType { WorkAllocated = 'WORK_ALLOCATED', WorkDeleted = 'WORK_DELETED', WorkFinished = 'WORK_FINISHED', - WorkRescheduled = 'WORK_RESCHEDULED', + WorkRescheduled = 'WORK_RESCHEDULED' } export enum IExternalLinkTarget { /** Open on new tab */ Blank = 'BLANK', /** Open in own Iframe */ - Self = 'SELF', + Self = 'SELF' } export type IFilter = { @@ -875,6 +894,7 @@ export type IFilter = { updated?: Maybe; }; + export type IFilterTextsArgs = { forceLocale?: InputMaybe; }; @@ -885,6 +905,7 @@ export type IFilterOption = { value?: Maybe; }; + export type IFilterOptionTextsArgs = { forceLocale?: InputMaybe; }; @@ -915,7 +936,7 @@ export enum IFilterType { /** Single-choice */ SingleChoice = 'SINGLE_CHOICE', /** Switch / Boolean */ - Switch = 'SWITCH', + Switch = 'SWITCH' } export type IGeoPosition = { @@ -936,7 +957,7 @@ export type ILanguage = { export enum ILengthUnit { Feet = 'FEET', Meters = 'METERS', - Millimeters = 'MILLIMETERS', + Millimeters = 'MILLIMETERS' } export type ILoadedFilter = { @@ -966,7 +987,7 @@ export type ILoginMethodResponse = { export enum IMassUnit { Gram = 'GRAM', Kilogram = 'KILOGRAM', - Pounds = 'POUNDS', + Pounds = 'POUNDS' } export type IMedia = { @@ -977,6 +998,7 @@ export type IMedia = { url?: Maybe; }; + export type IMediaUrlArgs = { baseUrl?: InputMaybe; version?: InputMaybe; @@ -1039,6 +1061,13 @@ export type IMutation = { * In those cases please use createBookmark and removeBookmark */ bookmark: IBookmark; + /** + * Cancel all tickets for an event (tokenized product). Invalidates all non-cancelled tokens. + * Returns the number of tickets cancelled. + */ + cancelEvent: Scalars['Int']['output']; + /** Cancel a ticket (token). Sets the cancelled flag on the token metadata. */ + cancelTicket: IToken; /** Change the current user's password. Must be logged in. */ changePassword?: Maybe; /** @@ -1266,9 +1295,7 @@ export type IMutation = { /** Sign a generic order payment */ signPaymentProviderForCheckout: Scalars['String']['output']; /** Sign a generic payment provider for registration */ - signPaymentProviderForCredentialRegistration?: Maybe< - Scalars['String']['output'] - >; + signPaymentProviderForCredentialRegistration?: Maybe; /** End customer impersonated user session and resume the impersonator session */ stopImpersonation?: Maybe; /** Terminate an actively running enrollment by changing it's status to TERMINATED */ @@ -1352,33 +1379,39 @@ export type IMutation = { verifyWeb3Address: IUser; }; + export type IMutationActivateEnrollmentArgs = { enrollmentId: Scalars['ID']['input']; }; + export type IMutationAddAssortmentFilterArgs = { assortmentId: Scalars['ID']['input']; filterId: Scalars['ID']['input']; tags?: InputMaybe>; }; + export type IMutationAddAssortmentLinkArgs = { childAssortmentId: Scalars['ID']['input']; parentAssortmentId: Scalars['ID']['input']; tags?: InputMaybe>; }; + export type IMutationAddAssortmentProductArgs = { assortmentId: Scalars['ID']['input']; productId: Scalars['ID']['input']; tags?: InputMaybe>; }; + export type IMutationAddCartDiscountArgs = { code: Scalars['String']['input']; orderId?: InputMaybe; }; + export type IMutationAddCartProductArgs = { configuration?: InputMaybe>; orderId?: InputMaybe; @@ -1386,6 +1419,7 @@ export type IMutationAddCartProductArgs = { quantity?: InputMaybe; }; + export type IMutationAddCartQuotationArgs = { configuration?: InputMaybe>; orderId?: InputMaybe; @@ -1393,41 +1427,49 @@ export type IMutationAddCartQuotationArgs = { quotationId: Scalars['ID']['input']; }; + export type IMutationAddEmailArgs = { email: Scalars['String']['input']; userId?: InputMaybe; }; + export type IMutationAddMultipleCartProductsArgs = { items: Array; orderId?: InputMaybe; }; + export type IMutationAddProductAssignmentArgs = { productId: Scalars['ID']['input']; proxyId: Scalars['ID']['input']; vectors: Array; }; + export type IMutationAddProductReviewVoteArgs = { meta?: InputMaybe; productReviewId: Scalars['ID']['input']; type: IProductReviewVoteType; }; + export type IMutationAddPushSubscriptionArgs = { subscription: Scalars['JSON']['input']; unsubscribeFromOtherUsers?: InputMaybe; }; + export type IMutationAddWeb3AddressArgs = { address: Scalars['String']['input']; }; + export type IMutationAddWebAuthnCredentialsArgs = { credentials: Scalars['JSON']['input']; }; + export type IMutationAddWorkArgs = { input?: InputMaybe; originalWorkId?: InputMaybe; @@ -1438,33 +1480,49 @@ export type IMutationAddWorkArgs = { worker?: InputMaybe; }; + export type IMutationAllocateWorkArgs = { types?: InputMaybe>>; worker?: InputMaybe; }; + export type IMutationBookmarkArgs = { bookmarked?: InputMaybe; productId: Scalars['ID']['input']; }; + +export type IMutationCancelEventArgs = { + productId: Scalars['ID']['input']; +}; + + +export type IMutationCancelTicketArgs = { + tokenId: Scalars['ID']['input']; +}; + + export type IMutationChangePasswordArgs = { newPassword: Scalars['String']['input']; oldPassword: Scalars['String']['input']; }; + export type IMutationCheckoutCartArgs = { deliveryContext?: InputMaybe; orderId?: InputMaybe; paymentContext?: InputMaybe; }; + export type IMutationConfirmMediaUploadArgs = { mediaUploadTicketId: Scalars['ID']['input']; size: Scalars['Int']['input']; type: Scalars['String']['input']; }; + export type IMutationConfirmOrderArgs = { comment?: InputMaybe; deliveryContext?: InputMaybe; @@ -1472,33 +1530,40 @@ export type IMutationConfirmOrderArgs = { paymentContext?: InputMaybe; }; + export type IMutationCreateAssortmentArgs = { assortment: ICreateAssortmentInput; texts?: InputMaybe>; }; + export type IMutationCreateBookmarkArgs = { meta?: InputMaybe; productId: Scalars['ID']['input']; userId: Scalars['ID']['input']; }; + export type IMutationCreateCartArgs = { orderNumber: Scalars['String']['input']; }; + export type IMutationCreateCountryArgs = { country: ICreateCountryInput; }; + export type IMutationCreateCurrencyArgs = { currency: ICreateCurrencyInput; }; + export type IMutationCreateDeliveryProviderArgs = { deliveryProvider: ICreateDeliveryProviderInput; }; + export type IMutationCreateEnrollmentArgs = { billingAddress?: InputMaybe; contact?: InputMaybe; @@ -1508,52 +1573,62 @@ export type IMutationCreateEnrollmentArgs = { plan: IEnrollmentPlanInput; }; + export type IMutationCreateFilterArgs = { filter: ICreateFilterInput; texts?: InputMaybe>; }; + export type IMutationCreateFilterOptionArgs = { filterId: Scalars['ID']['input']; option: Scalars['String']['input']; texts?: InputMaybe>; }; + export type IMutationCreateLanguageArgs = { language: ICreateLanguageInput; }; + export type IMutationCreatePaymentProviderArgs = { paymentProvider: ICreatePaymentProviderInput; }; + export type IMutationCreateProductArgs = { product: ICreateProductInput; texts?: InputMaybe>; }; + export type IMutationCreateProductBundleItemArgs = { item: ICreateProductBundleItemInput; productId: Scalars['ID']['input']; }; + export type IMutationCreateProductReviewArgs = { productId: Scalars['ID']['input']; productReview: IProductReviewInput; }; + export type IMutationCreateProductVariationArgs = { productId: Scalars['ID']['input']; texts?: InputMaybe>; variation: ICreateProductVariationInput; }; + export type IMutationCreateProductVariationOptionArgs = { option: Scalars['String']['input']; productVariationId: Scalars['ID']['input']; texts?: InputMaybe>; }; + export type IMutationCreateUserArgs = { email?: InputMaybe; password?: InputMaybe; @@ -1562,40 +1637,48 @@ export type IMutationCreateUserArgs = { webAuthnPublicKeyCredentials?: InputMaybe; }; + export type IMutationCreateWarehousingProviderArgs = { warehousingProvider: ICreateWarehousingProviderInput; }; + export type IMutationCreateWebAuthnCredentialCreationOptionsArgs = { extensionOptions?: InputMaybe; username: Scalars['String']['input']; }; + export type IMutationCreateWebAuthnCredentialRequestOptionsArgs = { extensionOptions?: InputMaybe; username?: InputMaybe; }; + export type IMutationDeliverOrderArgs = { orderId: Scalars['ID']['input']; }; + export type IMutationEmptyCartArgs = { orderId?: InputMaybe; }; + export type IMutationEnrollUserArgs = { email: Scalars['String']['input']; password?: InputMaybe; profile: IUserProfileInput; }; + export type IMutationExportTokenArgs = { quantity?: Scalars['Int']['input']; recipientWalletAddress: Scalars['String']['input']; tokenId: Scalars['ID']['input']; }; + export type IMutationFinishWorkArgs = { error?: InputMaybe; finished?: InputMaybe; @@ -1606,74 +1689,90 @@ export type IMutationFinishWorkArgs = { worker?: InputMaybe; }; + export type IMutationForgotPasswordArgs = { email: Scalars['String']['input']; }; + export type IMutationImpersonateArgs = { userId: Scalars['ID']['input']; }; + export type IMutationInvalidateTokenArgs = { tokenId: Scalars['ID']['input']; }; + export type IMutationLoginWithPasswordArgs = { email?: InputMaybe; password: Scalars['String']['input']; username?: InputMaybe; }; + export type IMutationLoginWithWebAuthnArgs = { webAuthnPublicKeyCredentials: Scalars['JSON']['input']; }; + export type IMutationMakeQuotationProposalArgs = { quotationContext?: InputMaybe; quotationId: Scalars['ID']['input']; }; + export type IMutationMarkPaymentCredentialsPreferredArgs = { paymentCredentialsId: Scalars['ID']['input']; }; + export type IMutationPageViewArgs = { path: Scalars['String']['input']; referrer?: InputMaybe; }; + export type IMutationPayOrderArgs = { orderId: Scalars['ID']['input']; }; + export type IMutationPrepareAssortmentMediaUploadArgs = { assortmentId: Scalars['ID']['input']; mediaName: Scalars['String']['input']; }; + export type IMutationPrepareProductMediaUploadArgs = { mediaName: Scalars['String']['input']; productId: Scalars['ID']['input']; }; + export type IMutationPrepareUserAvatarUploadArgs = { mediaName: Scalars['String']['input']; userId?: InputMaybe; }; + export type IMutationProcessNextWorkArgs = { worker?: InputMaybe; }; + export type IMutationPublishProductArgs = { productId: Scalars['ID']['input']; }; + export type IMutationRegisterPaymentCredentialsArgs = { paymentProviderId: Scalars['ID']['input']; transactionContext: Scalars['JSON']['input']; }; + export type IMutationRejectOrderArgs = { comment?: InputMaybe; deliveryContext?: InputMaybe; @@ -1681,241 +1780,296 @@ export type IMutationRejectOrderArgs = { paymentContext?: InputMaybe; }; + export type IMutationRejectQuotationArgs = { quotationContext?: InputMaybe; quotationId: Scalars['ID']['input']; }; + export type IMutationRemoveAssortmentArgs = { assortmentId: Scalars['ID']['input']; }; + export type IMutationRemoveAssortmentFilterArgs = { assortmentFilterId: Scalars['ID']['input']; }; + export type IMutationRemoveAssortmentLinkArgs = { assortmentLinkId: Scalars['ID']['input']; }; + export type IMutationRemoveAssortmentMediaArgs = { assortmentMediaId: Scalars['ID']['input']; }; + export type IMutationRemoveAssortmentProductArgs = { assortmentProductId: Scalars['ID']['input']; }; + export type IMutationRemoveBookmarkArgs = { bookmarkId: Scalars['ID']['input']; }; + export type IMutationRemoveBundleItemArgs = { index: Scalars['Int']['input']; productId: Scalars['ID']['input']; }; + export type IMutationRemoveCartDiscountArgs = { discountId: Scalars['ID']['input']; }; + export type IMutationRemoveCartItemArgs = { itemId: Scalars['ID']['input']; }; + export type IMutationRemoveCountryArgs = { countryId: Scalars['ID']['input']; }; + export type IMutationRemoveCurrencyArgs = { currencyId: Scalars['ID']['input']; }; + export type IMutationRemoveDeliveryProviderArgs = { deliveryProviderId: Scalars['ID']['input']; }; + export type IMutationRemoveEmailArgs = { email: Scalars['String']['input']; userId?: InputMaybe; }; + export type IMutationRemoveFilterArgs = { filterId: Scalars['ID']['input']; }; + export type IMutationRemoveFilterOptionArgs = { filterId: Scalars['ID']['input']; filterOptionValue: Scalars['String']['input']; }; + export type IMutationRemoveLanguageArgs = { languageId: Scalars['ID']['input']; }; + export type IMutationRemoveOrderArgs = { orderId: Scalars['ID']['input']; }; + export type IMutationRemovePaymentCredentialsArgs = { paymentCredentialsId: Scalars['ID']['input']; }; + export type IMutationRemovePaymentProviderArgs = { paymentProviderId: Scalars['ID']['input']; }; + export type IMutationRemoveProductArgs = { productId: Scalars['ID']['input']; }; + export type IMutationRemoveProductAssignmentArgs = { proxyId: Scalars['ID']['input']; vectors: Array; }; + export type IMutationRemoveProductMediaArgs = { productMediaId: Scalars['ID']['input']; }; + export type IMutationRemoveProductReviewArgs = { productReviewId: Scalars['ID']['input']; }; + export type IMutationRemoveProductReviewVoteArgs = { productReviewId: Scalars['ID']['input']; type?: InputMaybe; }; + export type IMutationRemoveProductVariationArgs = { productVariationId: Scalars['ID']['input']; }; + export type IMutationRemoveProductVariationOptionArgs = { productVariationId: Scalars['ID']['input']; productVariationOptionValue: Scalars['String']['input']; }; + export type IMutationRemovePushSubscriptionArgs = { p256dh: Scalars['String']['input']; }; + export type IMutationRemoveUserArgs = { removeUserReviews?: InputMaybe; userId?: InputMaybe; }; + export type IMutationRemoveUserProductReviewsArgs = { userId: Scalars['ID']['input']; }; + export type IMutationRemoveWarehousingProviderArgs = { warehousingProviderId: Scalars['ID']['input']; }; + export type IMutationRemoveWeb3AddressArgs = { address: Scalars['String']['input']; }; + export type IMutationRemoveWebAuthnCredentialsArgs = { credentialsId: Scalars['ID']['input']; }; + export type IMutationRemoveWorkArgs = { workId: Scalars['ID']['input']; }; + export type IMutationReorderAssortmentFiltersArgs = { sortKeys: Array; }; + export type IMutationReorderAssortmentLinksArgs = { sortKeys: Array; }; + export type IMutationReorderAssortmentMediaArgs = { sortKeys: Array; }; + export type IMutationReorderAssortmentProductsArgs = { sortKeys: Array; }; + export type IMutationReorderProductMediaArgs = { sortKeys: Array; }; + export type IMutationRequestQuotationArgs = { configuration?: InputMaybe>; productId: Scalars['ID']['input']; }; + export type IMutationResetPasswordArgs = { newPassword: Scalars['String']['input']; token: Scalars['String']['input']; }; + export type IMutationSendEnrollmentEmailArgs = { email: Scalars['String']['input']; }; + export type IMutationSendVerificationEmailArgs = { email?: InputMaybe; }; + export type IMutationSetPasswordArgs = { newPassword: Scalars['String']['input']; userId: Scalars['ID']['input']; }; + export type IMutationSetRolesArgs = { roles: Array; userId: Scalars['ID']['input']; }; + export type IMutationSetUserTagsArgs = { tags: Array>; userId: Scalars['ID']['input']; }; + export type IMutationSetUsernameArgs = { userId: Scalars['ID']['input']; username: Scalars['String']['input']; }; + export type IMutationSignPaymentProviderForCheckoutArgs = { orderPaymentId?: InputMaybe; transactionContext?: InputMaybe; }; + export type IMutationSignPaymentProviderForCredentialRegistrationArgs = { paymentProviderId: Scalars['ID']['input']; transactionContext?: InputMaybe; }; + export type IMutationTerminateEnrollmentArgs = { enrollmentId: Scalars['ID']['input']; }; + export type IMutationUnpublishProductArgs = { productId: Scalars['ID']['input']; }; + export type IMutationUpdateAssortmentArgs = { assortment: IUpdateAssortmentInput; assortmentId: Scalars['ID']['input']; }; + export type IMutationUpdateAssortmentMediaTextsArgs = { assortmentMediaId: Scalars['ID']['input']; texts: Array; }; + export type IMutationUpdateAssortmentTextsArgs = { assortmentId: Scalars['ID']['input']; texts: Array; }; + export type IMutationUpdateCartArgs = { billingAddress?: InputMaybe; contact?: InputMaybe; @@ -1925,6 +2079,7 @@ export type IMutationUpdateCartArgs = { paymentProviderId?: InputMaybe; }; + export type IMutationUpdateCartDeliveryPickUpArgs = { deliveryProviderId: Scalars['ID']['input']; meta?: InputMaybe; @@ -1932,6 +2087,7 @@ export type IMutationUpdateCartDeliveryPickUpArgs = { orderPickUpLocationId: Scalars['ID']['input']; }; + export type IMutationUpdateCartDeliveryShippingArgs = { address?: InputMaybe; deliveryProviderId: Scalars['ID']['input']; @@ -1939,39 +2095,46 @@ export type IMutationUpdateCartDeliveryShippingArgs = { orderId?: InputMaybe; }; + export type IMutationUpdateCartItemArgs = { configuration?: InputMaybe>; itemId: Scalars['ID']['input']; quantity?: InputMaybe; }; + export type IMutationUpdateCartPaymentGenericArgs = { meta?: InputMaybe; orderId?: InputMaybe; paymentProviderId: Scalars['ID']['input']; }; + export type IMutationUpdateCartPaymentInvoiceArgs = { meta?: InputMaybe; orderId?: InputMaybe; paymentProviderId: Scalars['ID']['input']; }; + export type IMutationUpdateCountryArgs = { country: IUpdateCountryInput; countryId: Scalars['ID']['input']; }; + export type IMutationUpdateCurrencyArgs = { currency: IUpdateCurrencyInput; currencyId: Scalars['ID']['input']; }; + export type IMutationUpdateDeliveryProviderArgs = { deliveryProvider: IUpdateProviderInput; deliveryProviderId: Scalars['ID']['input']; }; + export type IMutationUpdateEnrollmentArgs = { billingAddress?: InputMaybe; contact?: InputMaybe; @@ -1982,98 +2145,117 @@ export type IMutationUpdateEnrollmentArgs = { plan?: InputMaybe; }; + export type IMutationUpdateFilterArgs = { filter: IUpdateFilterInput; filterId: Scalars['ID']['input']; }; + export type IMutationUpdateFilterTextsArgs = { filterId: Scalars['ID']['input']; filterOptionValue?: InputMaybe; texts: Array; }; + export type IMutationUpdateLanguageArgs = { language: IUpdateLanguageInput; languageId: Scalars['ID']['input']; }; + export type IMutationUpdatePaymentProviderArgs = { paymentProvider: IUpdateProviderInput; paymentProviderId: Scalars['ID']['input']; }; + export type IMutationUpdateProductArgs = { product: IUpdateProductInput; productId: Scalars['ID']['input']; }; + export type IMutationUpdateProductCommerceArgs = { commerce: IUpdateProductCommerceInput; productId: Scalars['ID']['input']; }; + export type IMutationUpdateProductMediaTextsArgs = { productMediaId: Scalars['ID']['input']; texts: Array; }; + export type IMutationUpdateProductPlanArgs = { plan: IUpdateProductPlanInput; productId: Scalars['ID']['input']; }; + export type IMutationUpdateProductReviewArgs = { productReview: IProductReviewInput; productReviewId: Scalars['ID']['input']; }; + export type IMutationUpdateProductSupplyArgs = { productId: Scalars['ID']['input']; supply: IUpdateProductSupplyInput; }; + export type IMutationUpdateProductTextsArgs = { productId: Scalars['ID']['input']; texts: Array; }; + export type IMutationUpdateProductTokenizationArgs = { productId: Scalars['ID']['input']; tokenization: IUpdateProductTokenizationInput; }; + export type IMutationUpdateProductVariationTextsArgs = { productVariationId: Scalars['ID']['input']; productVariationOptionValue?: InputMaybe; texts: Array; }; + export type IMutationUpdateProductWarehousingArgs = { productId: Scalars['ID']['input']; warehousing: IUpdateProductWarehousingInput; }; + export type IMutationUpdateUserProfileArgs = { meta?: InputMaybe; profile?: InputMaybe; userId?: InputMaybe; }; + export type IMutationUpdateWarehousingProviderArgs = { warehousingProvider: IUpdateProviderInput; warehousingProviderId: Scalars['ID']['input']; }; + export type IMutationVerifyEmailArgs = { token: Scalars['String']['input']; }; + export type IMutationVerifyQuotationArgs = { quotationContext?: InputMaybe; quotationId: Scalars['ID']['input']; }; + export type IMutationVerifyWeb3AddressArgs = { address: Scalars['String']['input']; hash: Scalars['String']['input']; @@ -2105,6 +2287,7 @@ export type IOrder = { user?: Maybe; }; + /** Just an order */ export type IOrderTotalArgs = { category?: InputMaybe; @@ -2153,7 +2336,7 @@ export enum IOrderDeliveryStatus { /** Order is not delivered */ Open = 'OPEN', /** Delivery returned */ - Returned = 'RETURNED', + Returned = 'RETURNED' } export type IOrderDiscount = { @@ -2166,6 +2349,7 @@ export type IOrderDiscount = { trigger: IOrderDiscountTrigger; }; + export type IOrderDiscountTotalArgs = { useNetPrice?: InputMaybe; }; @@ -2174,7 +2358,7 @@ export enum IOrderDiscountTrigger { /** System triggered */ System = 'SYSTEM', /** User triggered */ - User = 'USER', + User = 'USER' } export type IOrderDiscountable = { @@ -2205,11 +2389,13 @@ export type IOrderItem = { unitPrice?: Maybe; }; + export type IOrderItemTotalArgs = { category?: InputMaybe; useNetPrice?: InputMaybe; }; + export type IOrderItemUnitPriceArgs = { useNetPrice?: InputMaybe; }; @@ -2233,7 +2419,7 @@ export enum IOrderItemPriceCategory { /** Items */ Item = 'ITEM', /** Tax */ - Tax = 'TAX', + Tax = 'TAX' } export type IOrderPayment = { @@ -2285,7 +2471,7 @@ export enum IOrderPaymentStatus { /** Order has been paid */ Paid = 'PAID', /** Order has been refunded */ - Refunded = 'REFUNDED', + Refunded = 'REFUNDED' } export enum IOrderPriceCategory { @@ -2298,7 +2484,7 @@ export enum IOrderPriceCategory { /** Payment Fees */ Payment = 'PAYMENT', /** Tax */ - Taxes = 'TAXES', + Taxes = 'TAXES' } export type IOrderStatistics = { @@ -2330,7 +2516,7 @@ export enum IOrderStatus { /** Order has been sent but confirmation awaiting */ Pending = 'PENDING', /** Order has been rejected */ - Rejected = 'REJECTED', + Rejected = 'REJECTED' } export type IPaymentCredentials = { @@ -2362,6 +2548,7 @@ export type IPaymentProvider = { updated?: Maybe; }; + export type IPaymentProviderSimulatedPriceArgs = { context?: InputMaybe; currencyCode?: InputMaybe; @@ -2373,14 +2560,14 @@ export enum IPaymentProviderError { AdapterNotFound = 'ADAPTER_NOT_FOUND', IncompleteConfiguration = 'INCOMPLETE_CONFIGURATION', NotImplemented = 'NOT_IMPLEMENTED', - WrongCredentials = 'WRONG_CREDENTIALS', + WrongCredentials = 'WRONG_CREDENTIALS' } export enum IPaymentProviderType { /** Generic */ Generic = 'GENERIC', /** Invoice */ - Invoice = 'INVOICE', + Invoice = 'INVOICE' } export type IPickUpLocation = { @@ -2415,22 +2602,26 @@ export type IPlanProduct = IProduct & { updated?: Maybe; }; + /** Plan (Virtual Product that somebody can enroll to) */ export type IPlanProductAssortmentPathsArgs = { forceLocale?: InputMaybe; }; + /** Plan (Virtual Product that somebody can enroll to) */ export type IPlanProductCatalogPriceArgs = { currencyCode?: InputMaybe; quantity?: InputMaybe; }; + /** Plan (Virtual Product that somebody can enroll to) */ export type IPlanProductLeveledCatalogPricesArgs = { currencyCode?: InputMaybe; }; + /** Plan (Virtual Product that somebody can enroll to) */ export type IPlanProductMediaArgs = { limit?: InputMaybe; @@ -2438,6 +2629,7 @@ export type IPlanProductMediaArgs = { tags?: InputMaybe>; }; + /** Plan (Virtual Product that somebody can enroll to) */ export type IPlanProductReviewsArgs = { limit?: InputMaybe; @@ -2446,11 +2638,13 @@ export type IPlanProductReviewsArgs = { sort?: InputMaybe>; }; + /** Plan (Virtual Product that somebody can enroll to) */ export type IPlanProductReviewsCountArgs = { queryString?: InputMaybe; }; + /** Plan (Virtual Product that somebody can enroll to) */ export type IPlanProductSiblingsArgs = { assortmentId?: InputMaybe; @@ -2459,6 +2653,7 @@ export type IPlanProductSiblingsArgs = { offset?: InputMaybe; }; + /** Plan (Virtual Product that somebody can enroll to) */ export type IPlanProductSimulatedPriceArgs = { configuration?: InputMaybe>; @@ -2467,6 +2662,7 @@ export type IPlanProductSimulatedPriceArgs = { useNetPrice?: InputMaybe; }; + /** Plan (Virtual Product that somebody can enroll to) */ export type IPlanProductTextsArgs = { forceLocale?: InputMaybe; @@ -2508,6 +2704,7 @@ export type IProduct = { updated?: Maybe; }; + /** Abstract Product */ export type IProductMediaArgs = { limit?: InputMaybe; @@ -2515,6 +2712,7 @@ export type IProductMediaArgs = { tags?: InputMaybe>; }; + /** Abstract Product */ export type IProductReviewsArgs = { limit?: InputMaybe; @@ -2523,11 +2721,13 @@ export type IProductReviewsArgs = { sort?: InputMaybe>; }; + /** Abstract Product */ export type IProductReviewsCountArgs = { queryString?: InputMaybe; }; + /** Abstract Product */ export type IProductSiblingsArgs = { assortmentId?: InputMaybe; @@ -2536,6 +2736,7 @@ export type IProductSiblingsArgs = { offset?: InputMaybe; }; + /** Abstract Product */ export type IProductTextsArgs = { forceLocale?: InputMaybe; @@ -2591,6 +2792,7 @@ export type IProductMedia = { texts?: Maybe; }; + export type IProductMediaTextsArgs = { forceLocale?: InputMaybe; }; @@ -2621,12 +2823,12 @@ export enum IProductPlanConfigurationInterval { Hours = 'HOURS', Months = 'MONTHS', Weeks = 'WEEKS', - Years = 'YEARS', + Years = 'YEARS' } export enum IProductPlanUsageCalculationType { Licensed = 'LICENSED', - Metered = 'METERED', + Metered = 'METERED' } export type IProductReview = { @@ -2643,6 +2845,7 @@ export type IProductReview = { voteCount?: Maybe; }; + export type IProductReviewVoteCountArgs = { type?: InputMaybe; }; @@ -2662,7 +2865,7 @@ export type IProductReviewVote = { export enum IProductReviewVoteType { Downvote = 'DOWNVOTE', Report = 'REPORT', - Upvote = 'UPVOTE', + Upvote = 'UPVOTE' } /** Search result */ @@ -2673,6 +2876,7 @@ export type IProductSearchResult = { productsCount: Scalars['Int']['output']; }; + /** Search result */ export type IProductSearchResultProductsArgs = { limit?: InputMaybe; @@ -2685,7 +2889,7 @@ export enum IProductStatus { /** Deleted */ Deleted = 'DELETED', /** Unpublished (hidden from catalog) */ - Draft = 'DRAFT', + Draft = 'DRAFT' } export type IProductTextInput = { @@ -2716,7 +2920,7 @@ export enum IProductType { ConfigurableProduct = 'CONFIGURABLE_PRODUCT', PlanProduct = 'PLAN_PRODUCT', SimpleProduct = 'SIMPLE_PRODUCT', - TokenizedProduct = 'TOKENIZED_PRODUCT', + TokenizedProduct = 'TOKENIZED_PRODUCT' } export type IProductVariation = { @@ -2727,6 +2931,7 @@ export type IProductVariation = { type?: Maybe; }; + export type IProductVariationTextsArgs = { forceLocale?: InputMaybe; }; @@ -2753,6 +2958,7 @@ export type IProductVariationOption = { value?: Maybe; }; + export type IProductVariationOptionTextsArgs = { forceLocale?: InputMaybe; }; @@ -2774,7 +2980,7 @@ export enum IProductVariationType { /** Color Picker */ Color = 'COLOR', /** Text Answers */ - Text = 'TEXT', + Text = 'TEXT' } export type IPushSubscription = { @@ -2938,11 +3144,13 @@ export type IQuery = { workStatistics: Array; }; + export type IQueryAssortmentArgs = { assortmentId?: InputMaybe; slug?: InputMaybe; }; + export type IQueryAssortmentsArgs = { includeInactive?: InputMaybe; includeLeaves?: InputMaybe; @@ -2954,6 +3162,7 @@ export type IQueryAssortmentsArgs = { tags?: InputMaybe>; }; + export type IQueryAssortmentsCountArgs = { includeInactive?: InputMaybe; includeLeaves?: InputMaybe; @@ -2962,6 +3171,7 @@ export type IQueryAssortmentsCountArgs = { tags?: InputMaybe>; }; + export type IQueryCountriesArgs = { includeInactive?: InputMaybe; limit?: InputMaybe; @@ -2970,15 +3180,18 @@ export type IQueryCountriesArgs = { sort?: InputMaybe>; }; + export type IQueryCountriesCountArgs = { includeInactive?: InputMaybe; queryString?: InputMaybe; }; + export type IQueryCountryArgs = { countryId: Scalars['ID']['input']; }; + export type IQueryCurrenciesArgs = { includeInactive?: InputMaybe; limit?: InputMaybe; @@ -2987,35 +3200,43 @@ export type IQueryCurrenciesArgs = { sort?: InputMaybe>; }; + export type IQueryCurrenciesCountArgs = { includeInactive?: InputMaybe; queryString?: InputMaybe; }; + export type IQueryCurrencyArgs = { currencyId: Scalars['ID']['input']; }; + export type IQueryDeliveryInterfacesArgs = { type?: InputMaybe; }; + export type IQueryDeliveryProviderArgs = { deliveryProviderId: Scalars['ID']['input']; }; + export type IQueryDeliveryProvidersArgs = { type?: InputMaybe; }; + export type IQueryDeliveryProvidersCountArgs = { type?: InputMaybe; }; + export type IQueryEnrollmentArgs = { enrollmentId: Scalars['ID']['input']; }; + export type IQueryEnrollmentsArgs = { limit?: InputMaybe; offset?: InputMaybe; @@ -3024,20 +3245,24 @@ export type IQueryEnrollmentsArgs = { status?: InputMaybe>; }; + export type IQueryEnrollmentsCountArgs = { queryString?: InputMaybe; status?: InputMaybe>; }; + export type IQueryEventArgs = { eventId: Scalars['ID']['input']; }; + export type IQueryEventStatisticsArgs = { dateRange?: InputMaybe; types?: InputMaybe>; }; + export type IQueryEventsArgs = { created?: InputMaybe; limit?: InputMaybe; @@ -3047,16 +3272,19 @@ export type IQueryEventsArgs = { types?: InputMaybe>; }; + export type IQueryEventsCountArgs = { created?: InputMaybe; queryString?: InputMaybe; types?: InputMaybe>; }; + export type IQueryFilterArgs = { filterId?: InputMaybe; }; + export type IQueryFiltersArgs = { includeInactive?: InputMaybe; limit?: InputMaybe; @@ -3065,15 +3293,18 @@ export type IQueryFiltersArgs = { sort?: InputMaybe>; }; + export type IQueryFiltersCountArgs = { includeInactive?: InputMaybe; queryString?: InputMaybe; }; + export type IQueryLanguageArgs = { languageId: Scalars['ID']['input']; }; + export type IQueryLanguagesArgs = { includeInactive?: InputMaybe; limit?: InputMaybe; @@ -3082,19 +3313,23 @@ export type IQueryLanguagesArgs = { sort?: InputMaybe>; }; + export type IQueryLanguagesCountArgs = { includeInactive?: InputMaybe; queryString?: InputMaybe; }; + export type IQueryOrderArgs = { orderId: Scalars['ID']['input']; }; + export type IQueryOrderStatisticsArgs = { dateRange?: InputMaybe; }; + export type IQueryOrdersArgs = { dateRange?: InputMaybe; deliveryProviderIds?: InputMaybe>; @@ -3107,6 +3342,7 @@ export type IQueryOrdersArgs = { status?: InputMaybe>; }; + export type IQueryOrdersCountArgs = { dateRange?: InputMaybe; deliveryProviderIds?: InputMaybe>; @@ -3116,35 +3352,43 @@ export type IQueryOrdersCountArgs = { status?: InputMaybe>; }; + export type IQueryPaymentInterfacesArgs = { type?: InputMaybe; }; + export type IQueryPaymentProviderArgs = { paymentProviderId: Scalars['ID']['input']; }; + export type IQueryPaymentProvidersArgs = { type?: InputMaybe; }; + export type IQueryPaymentProvidersCountArgs = { type?: InputMaybe; }; + export type IQueryProductArgs = { productId?: InputMaybe; slug?: InputMaybe; }; + export type IQueryProductCatalogPricesArgs = { productId: Scalars['ID']['input']; }; + export type IQueryProductReviewArgs = { productReviewId: Scalars['ID']['input']; }; + export type IQueryProductReviewsArgs = { limit?: InputMaybe; offset?: InputMaybe; @@ -3152,10 +3396,12 @@ export type IQueryProductReviewsArgs = { sort?: InputMaybe>; }; + export type IQueryProductReviewsCountArgs = { queryString?: InputMaybe; }; + export type IQueryProductsArgs = { includeDrafts?: InputMaybe; limit?: InputMaybe; @@ -3164,19 +3410,24 @@ export type IQueryProductsArgs = { slugs?: InputMaybe>; sort?: InputMaybe>; tags?: InputMaybe>; + type?: InputMaybe; }; + export type IQueryProductsCountArgs = { includeDrafts?: InputMaybe; queryString?: InputMaybe; slugs?: InputMaybe>; tags?: InputMaybe>; + type?: InputMaybe; }; + export type IQueryQuotationArgs = { quotationId: Scalars['ID']['input']; }; + export type IQueryQuotationsArgs = { limit?: InputMaybe; offset?: InputMaybe; @@ -3184,10 +3435,12 @@ export type IQueryQuotationsArgs = { sort?: InputMaybe>; }; + export type IQueryQuotationsCountArgs = { queryString?: InputMaybe; }; + export type IQuerySearchAssortmentsArgs = { assortmentIds?: InputMaybe>; includeInactive?: InputMaybe; @@ -3195,6 +3448,7 @@ export type IQuerySearchAssortmentsArgs = { queryString?: InputMaybe; }; + export type IQuerySearchProductsArgs = { assortmentId?: InputMaybe; filterQuery?: InputMaybe>; @@ -3204,50 +3458,61 @@ export type IQuerySearchProductsArgs = { queryString?: InputMaybe; }; + export type IQueryTokenArgs = { tokenId: Scalars['ID']['input']; }; + export type IQueryTokensArgs = { limit?: InputMaybe; offset?: InputMaybe; queryString?: InputMaybe; }; + export type IQueryTokensCountArgs = { queryString?: InputMaybe; }; + export type IQueryTranslatedAssortmentMediaTextsArgs = { assortmentMediaId: Scalars['ID']['input']; }; + export type IQueryTranslatedAssortmentTextsArgs = { assortmentId: Scalars['ID']['input']; }; + export type IQueryTranslatedFilterTextsArgs = { filterId: Scalars['ID']['input']; filterOptionValue?: InputMaybe; }; + export type IQueryTranslatedProductMediaTextsArgs = { productMediaId: Scalars['ID']['input']; }; + export type IQueryTranslatedProductTextsArgs = { productId: Scalars['ID']['input']; }; + export type IQueryTranslatedProductVariationTextsArgs = { productVariationId: Scalars['ID']['input']; productVariationOptionValue?: InputMaybe; }; + export type IQueryUserArgs = { userId?: InputMaybe; }; + export type IQueryUsersArgs = { emailVerified?: InputMaybe; includeGuests?: InputMaybe; @@ -3259,6 +3524,7 @@ export type IQueryUsersArgs = { tags?: InputMaybe>; }; + export type IQueryUsersCountArgs = { emailVerified?: InputMaybe; includeGuests?: InputMaybe; @@ -3267,34 +3533,42 @@ export type IQueryUsersCountArgs = { tags?: InputMaybe>; }; + export type IQueryValidateResetPasswordTokenArgs = { token: Scalars['String']['input']; }; + export type IQueryValidateVerifyEmailTokenArgs = { token: Scalars['String']['input']; }; + export type IQueryWarehousingInterfacesArgs = { type?: InputMaybe; }; + export type IQueryWarehousingProviderArgs = { warehousingProviderId: Scalars['ID']['input']; }; + export type IQueryWarehousingProvidersArgs = { type?: InputMaybe; }; + export type IQueryWarehousingProvidersCountArgs = { type?: InputMaybe; }; + export type IQueryWorkArgs = { workId: Scalars['ID']['input']; }; + export type IQueryWorkQueueArgs = { created?: InputMaybe; limit?: InputMaybe; @@ -3305,6 +3579,7 @@ export type IQueryWorkQueueArgs = { types?: InputMaybe>; }; + export type IQueryWorkQueueCountArgs = { created?: InputMaybe; queryString?: InputMaybe; @@ -3312,6 +3587,7 @@ export type IQueryWorkQueueCountArgs = { types?: InputMaybe>; }; + export type IQueryWorkStatisticsArgs = { dateRange?: InputMaybe; types?: InputMaybe>; @@ -3335,6 +3611,7 @@ export type IQuotation = { user: IUser; }; + /** Quotation */ export type IQuotationIsExpiredArgs = { referenceDate?: InputMaybe; @@ -3344,7 +3621,7 @@ export enum IQuotationDocumentType { /** Other */ Other = 'OTHER', /** Proposal */ - Proposal = 'PROPOSAL', + Proposal = 'PROPOSAL' } export enum IQuotationStatus { @@ -3357,7 +3634,7 @@ export enum IQuotationStatus { /** Quotation has been rejected by either party */ Rejected = 'REJECTED', /** Request for Proposal */ - Requested = 'REQUESTED', + Requested = 'REQUESTED' } export type IReorderAssortmentFilterInput = { @@ -3496,11 +3773,11 @@ export enum IRoleAction { ViewWarehousingProviders = 'viewWarehousingProviders', ViewWork = 'viewWork', ViewWorkQueue = 'viewWorkQueue', - VoteProductReview = 'voteProductReview', + VoteProductReview = 'voteProductReview' } export enum ISearchOrderBy { - Default = 'default', + Default = 'default' } /** Search result */ @@ -3511,6 +3788,7 @@ export type ISearchResult = { productsCount: Scalars['Int']['output']; }; + /** Search result */ export type ISearchResultProductsArgs = { limit?: InputMaybe; @@ -3556,17 +3834,20 @@ export type ISimpleProduct = IProduct & { updated?: Maybe; }; + /** Simple Product */ export type ISimpleProductCatalogPriceArgs = { currencyCode?: InputMaybe; quantity?: InputMaybe; }; + /** Simple Product */ export type ISimpleProductLeveledCatalogPricesArgs = { currencyCode?: InputMaybe; }; + /** Simple Product */ export type ISimpleProductMediaArgs = { limit?: InputMaybe; @@ -3574,6 +3855,7 @@ export type ISimpleProductMediaArgs = { tags?: InputMaybe>; }; + /** Simple Product */ export type ISimpleProductReviewsArgs = { limit?: InputMaybe; @@ -3582,11 +3864,13 @@ export type ISimpleProductReviewsArgs = { sort?: InputMaybe>; }; + /** Simple Product */ export type ISimpleProductReviewsCountArgs = { queryString?: InputMaybe; }; + /** Simple Product */ export type ISimpleProductSiblingsArgs = { assortmentId?: InputMaybe; @@ -3595,6 +3879,7 @@ export type ISimpleProductSiblingsArgs = { offset?: InputMaybe; }; + /** Simple Product */ export type ISimpleProductSimulatedDispatchesArgs = { deliveryProviderType?: InputMaybe; @@ -3602,6 +3887,7 @@ export type ISimpleProductSimulatedDispatchesArgs = { referenceDate?: InputMaybe; }; + /** Simple Product */ export type ISimpleProductSimulatedPriceArgs = { configuration?: InputMaybe>; @@ -3610,12 +3896,14 @@ export type ISimpleProductSimulatedPriceArgs = { useNetPrice?: InputMaybe; }; + /** Simple Product */ export type ISimpleProductSimulatedStocksArgs = { deliveryProviderType?: InputMaybe; referenceDate?: InputMaybe; }; + /** Simple Product */ export type ISimpleProductTextsArgs = { forceLocale?: InputMaybe; @@ -3623,12 +3911,12 @@ export type ISimpleProductTextsArgs = { export enum ISmartContractStandard { Erc721 = 'ERC721', - Erc1155 = 'ERC1155', + Erc1155 = 'ERC1155' } export enum ISortDirection { Asc = 'ASC', - Desc = 'DESC', + Desc = 'DESC' } export type ISortOptionInput = { @@ -3655,6 +3943,7 @@ export type IToken = { ercMetadata?: Maybe; expiryDate?: Maybe; invalidatedDate?: Maybe; + isCanceled?: Maybe; isInvalidateable: Scalars['Boolean']['output']; product: ITokenizedProduct; quantity: Scalars['Int']['output']; @@ -3664,6 +3953,7 @@ export type IToken = { walletAddress?: Maybe; }; + export type ITokenErcMetadataArgs = { forceLocale?: InputMaybe; }; @@ -3671,7 +3961,7 @@ export type ITokenErcMetadataArgs = { export enum ITokenExportStatus { Centralized = 'CENTRALIZED', Decentralized = 'DECENTRALIZED', - Exporting = 'EXPORTING', + Exporting = 'EXPORTING' } /** Tokenized Product (Blockchain materialized Product) */ @@ -3701,22 +3991,26 @@ export type ITokenizedProduct = IProduct & { updated?: Maybe; }; + /** Tokenized Product (Blockchain materialized Product) */ export type ITokenizedProductAssortmentPathsArgs = { forceLocale?: InputMaybe; }; + /** Tokenized Product (Blockchain materialized Product) */ export type ITokenizedProductCatalogPriceArgs = { currencyCode?: InputMaybe; quantity?: InputMaybe; }; + /** Tokenized Product (Blockchain materialized Product) */ export type ITokenizedProductLeveledCatalogPricesArgs = { currencyCode?: InputMaybe; }; + /** Tokenized Product (Blockchain materialized Product) */ export type ITokenizedProductMediaArgs = { limit?: InputMaybe; @@ -3724,6 +4018,7 @@ export type ITokenizedProductMediaArgs = { tags?: InputMaybe>; }; + /** Tokenized Product (Blockchain materialized Product) */ export type ITokenizedProductReviewsArgs = { limit?: InputMaybe; @@ -3732,11 +4027,13 @@ export type ITokenizedProductReviewsArgs = { sort?: InputMaybe>; }; + /** Tokenized Product (Blockchain materialized Product) */ export type ITokenizedProductReviewsCountArgs = { queryString?: InputMaybe; }; + /** Tokenized Product (Blockchain materialized Product) */ export type ITokenizedProductSiblingsArgs = { assortmentId?: InputMaybe; @@ -3745,6 +4042,7 @@ export type ITokenizedProductSiblingsArgs = { offset?: InputMaybe; }; + /** Tokenized Product (Blockchain materialized Product) */ export type ITokenizedProductSimulatedPriceArgs = { configuration?: InputMaybe>; @@ -3753,11 +4051,13 @@ export type ITokenizedProductSimulatedPriceArgs = { useNetPrice?: InputMaybe; }; + /** Tokenized Product (Blockchain materialized Product) */ export type ITokenizedProductSimulatedStocksArgs = { referenceDate?: InputMaybe; }; + /** Tokenized Product (Blockchain materialized Product) */ export type ITokenizedProductTextsArgs = { forceLocale?: InputMaybe; @@ -3879,10 +4179,12 @@ export type IUser = { webAuthnCredentials: Array; }; + export type IUserCartArgs = { orderNumber?: InputMaybe; }; + export type IUserEnrollmentsArgs = { limit?: InputMaybe; offset?: InputMaybe; @@ -3891,6 +4193,7 @@ export type IUserEnrollmentsArgs = { status?: InputMaybe>; }; + export type IUserOrdersArgs = { includeCarts?: InputMaybe; limit?: InputMaybe; @@ -3900,6 +4203,7 @@ export type IUserOrdersArgs = { status?: InputMaybe>; }; + export type IUserQuotationsArgs = { limit?: InputMaybe; offset?: InputMaybe; @@ -3907,6 +4211,7 @@ export type IUserQuotationsArgs = { sort?: InputMaybe>; }; + export type IUserReviewsArgs = { limit?: InputMaybe; offset?: InputMaybe; @@ -3965,14 +4270,14 @@ export enum IWarehousingProviderError { AdapterNotFound = 'ADAPTER_NOT_FOUND', IncompleteConfiguration = 'INCOMPLETE_CONFIGURATION', NotImplemented = 'NOT_IMPLEMENTED', - WrongCredentials = 'WRONG_CREDENTIALS', + WrongCredentials = 'WRONG_CREDENTIALS' } export enum IWarehousingProviderType { /** Physical warehousing providers resemble stores or facilities that hold a quantity of stocks physically in stock. */ Physical = 'PHYSICAL', /** Virtual warehousing providers resemble software that control ownership and validity of virtual products (for ex. smart contract bridges) */ - Virtual = 'VIRTUAL', + Virtual = 'VIRTUAL' } export type IWeb3Address = { @@ -4052,7 +4357,7 @@ export enum IWorkStatus { Deleted = 'DELETED', Failed = 'FAILED', New = 'NEW', - Success = 'SUCCESS', + Success = 'SUCCESS' } export enum IWorkType { @@ -4075,7 +4380,7 @@ export enum IWorkType { UpdateCoinbaseRates = 'UPDATE_COINBASE_RATES', UpdateEcbRates = 'UPDATE_ECB_RATES', UpdateTokenOwnership = 'UPDATE_TOKEN_OWNERSHIP', - ZombieKiller = 'ZOMBIE_KILLER', + ZombieKiller = 'ZOMBIE_KILLER' } /** One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string. */ @@ -4096,6 +4401,7 @@ export type I__Field = { deprecationReason?: Maybe; }; + /** Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type. */ export type I__FieldArgsArgs = { includeDeprecated?: InputMaybe; @@ -4131,6 +4437,7 @@ export type I__Type = { isOneOf?: Maybe; }; + /** * The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. * @@ -4140,6 +4447,7 @@ export type I__TypeFieldsArgs = { includeDeprecated?: InputMaybe; }; + /** * The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. * @@ -4149,6 +4457,7 @@ export type I__TypeEnumValuesArgs = { includeDeprecated?: InputMaybe; }; + /** * The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. * @@ -4175,133 +4484,21 @@ export enum I__TypeKind { /** Indicates this type is a list. `ofType` is a valid field. */ List = 'LIST', /** Indicates this type is a non-null. `ofType` is a valid field. */ - NonNull = 'NON_NULL', + NonNull = 'NON_NULL' } -export type IMd5MetaDataFragment = { - legalHeader?: string | null; - description?: string | null; - authenticatorVersion?: number | null; - protocolFamily?: string | null; - schema?: number | null; - authenticationAlgorithms?: Array | null; - publicKeyAlgAndEncodings?: Array | null; - attestationTypes?: Array | null; - keyProtection?: Array | null; - upv?: Array | null; - tcDisplay?: Array | null; - icon?: string | null; - authenticatorGetInfo?: any | null; -}; - -export type IMd5MetaDataFragmentVariables = Exact<{ [key: string]: never }>; - -export type IUserFragment = { - _id: string; - allowedActions: Array; - username?: string | null; - isGuest: boolean; - isInitialPassword: boolean; - name: string; - roles?: Array | null; - tags?: Array | null; - deleted?: any | null; - lastBillingAddress?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - addressLine2?: string | null; - postalCode?: string | null; - countryCode?: string | null; - regionCode?: string | null; - city?: string | null; - } | null; - lastContact?: { - emailAddress?: string | null; - telNumber?: string | null; - } | null; - lastLogin?: { - countryCode?: string | null; - locale?: any | null; - remoteAddress?: string | null; - remotePort?: number | null; - timestamp: any; - userAgent?: string | null; - } | null; - avatar?: { - _id: string; - name: string; - size: number; - type: string; - url?: string | null; - } | null; - paymentCredentials: Array<{ - _id: string; - isValid: boolean; - isPreferred: boolean; - paymentProvider: { - _id: string; - type?: IPaymentProviderType | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - }; - }>; - emails?: Array<{ verified: boolean; address: string }> | null; - web3Addresses: Array<{ - address: string; - nonce?: number | null; - verified: boolean; - }>; - webAuthnCredentials: Array<{ - _id: string; - created: any; - aaguid: string; - counter: number; - mdsMetadata?: { - legalHeader?: string | null; - description?: string | null; - authenticatorVersion?: number | null; - protocolFamily?: string | null; - schema?: number | null; - authenticationAlgorithms?: Array | null; - publicKeyAlgAndEncodings?: Array | null; - attestationTypes?: Array | null; - keyProtection?: Array | null; - upv?: Array | null; - tcDisplay?: Array | null; - icon?: string | null; - authenticatorGetInfo?: any | null; - } | null; - }>; - profile?: { - displayName?: string | null; - phoneMobile?: string | null; - gender?: string | null; - birthday?: any | null; - address?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - addressLine2?: string | null; - postalCode?: string | null; - countryCode?: string | null; - regionCode?: string | null; - city?: string | null; - } | null; - } | null; - primaryEmail?: { verified: boolean; address: string } | null; - cart?: { _id: string; items?: Array<{ _id: string }> | null } | null; - orders: Array<{ _id: string; items?: Array<{ _id: string }> | null }>; -}; - -export type IUserFragmentVariables = Exact<{ [key: string]: never }>; - -export type ILogoutMutationVariables = Exact<{ [key: string]: never }>; +export type IMd5MetaDataFragment = { legalHeader?: string | null, description?: string | null, authenticatorVersion?: number | null, protocolFamily?: string | null, schema?: number | null, authenticationAlgorithms?: Array | null, publicKeyAlgAndEncodings?: Array | null, attestationTypes?: Array | null, keyProtection?: Array | null, upv?: Array | null, tcDisplay?: Array | null, icon?: string | null, authenticatorGetInfo?: any | null }; + + +export type IMd5MetaDataFragmentVariables = Exact<{ [key: string]: never; }>; + +export type IUserFragment = { _id: string, allowedActions: Array, username?: string | null, isGuest: boolean, isInitialPassword: boolean, name: string, roles?: Array | null, tags?: Array | null, deleted?: any | null, lastBillingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null, lastContact?: { emailAddress?: string | null, telNumber?: string | null } | null, lastLogin?: { countryCode?: string | null, locale?: any | null, remoteAddress?: string | null, remotePort?: number | null, timestamp: any, userAgent?: string | null } | null, avatar?: { _id: string, name: string, size: number, type: string, url?: string | null } | null, paymentCredentials: Array<{ _id: string, isValid: boolean, isPreferred: boolean, paymentProvider: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }>, emails?: Array<{ verified: boolean, address: string }> | null, web3Addresses: Array<{ address: string, nonce?: number | null, verified: boolean }>, webAuthnCredentials: Array<{ _id: string, created: any, aaguid: string, counter: number, mdsMetadata?: { legalHeader?: string | null, description?: string | null, authenticatorVersion?: number | null, protocolFamily?: string | null, schema?: number | null, authenticationAlgorithms?: Array | null, publicKeyAlgAndEncodings?: Array | null, attestationTypes?: Array | null, keyProtection?: Array | null, upv?: Array | null, tcDisplay?: Array | null, icon?: string | null, authenticatorGetInfo?: any | null } | null }>, profile?: { displayName?: string | null, phoneMobile?: string | null, gender?: string | null, birthday?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null } | null, primaryEmail?: { verified: boolean, address: string } | null, cart?: { _id: string, items?: Array<{ _id: string }> | null } | null, orders: Array<{ _id: string, items?: Array<{ _id: string }> | null }> }; + + +export type IUserFragmentVariables = Exact<{ [key: string]: never; }>; + +export type ILogoutMutationVariables = Exact<{ [key: string]: never; }>; + export type ILogoutMutation = { logout?: { success?: boolean | null } | null }; @@ -4310,337 +4507,30 @@ export type IAddEmailMutationVariables = Exact<{ userId?: InputMaybe; }>; -export type IAddEmailMutation = { - addEmail: { - _id: string; - allowedActions: Array; - username?: string | null; - isGuest: boolean; - isInitialPassword: boolean; - name: string; - roles?: Array | null; - tags?: Array | null; - deleted?: any | null; - lastBillingAddress?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - addressLine2?: string | null; - postalCode?: string | null; - countryCode?: string | null; - regionCode?: string | null; - city?: string | null; - } | null; - lastContact?: { - emailAddress?: string | null; - telNumber?: string | null; - } | null; - lastLogin?: { - countryCode?: string | null; - locale?: any | null; - remoteAddress?: string | null; - remotePort?: number | null; - timestamp: any; - userAgent?: string | null; - } | null; - avatar?: { - _id: string; - name: string; - size: number; - type: string; - url?: string | null; - } | null; - paymentCredentials: Array<{ - _id: string; - isValid: boolean; - isPreferred: boolean; - paymentProvider: { - _id: string; - type?: IPaymentProviderType | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - }; - }>; - emails?: Array<{ verified: boolean; address: string }> | null; - web3Addresses: Array<{ - address: string; - nonce?: number | null; - verified: boolean; - }>; - webAuthnCredentials: Array<{ - _id: string; - created: any; - aaguid: string; - counter: number; - mdsMetadata?: { - legalHeader?: string | null; - description?: string | null; - authenticatorVersion?: number | null; - protocolFamily?: string | null; - schema?: number | null; - authenticationAlgorithms?: Array | null; - publicKeyAlgAndEncodings?: Array | null; - attestationTypes?: Array | null; - keyProtection?: Array | null; - upv?: Array | null; - tcDisplay?: Array | null; - icon?: string | null; - authenticatorGetInfo?: any | null; - } | null; - }>; - profile?: { - displayName?: string | null; - phoneMobile?: string | null; - gender?: string | null; - birthday?: any | null; - address?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - addressLine2?: string | null; - postalCode?: string | null; - countryCode?: string | null; - regionCode?: string | null; - city?: string | null; - } | null; - } | null; - primaryEmail?: { verified: boolean; address: string } | null; - cart?: { _id: string; items?: Array<{ _id: string }> | null } | null; - orders: Array<{ _id: string; items?: Array<{ _id: string }> | null }>; - }; -}; + +export type IAddEmailMutation = { addEmail: { _id: string, allowedActions: Array, username?: string | null, isGuest: boolean, isInitialPassword: boolean, name: string, roles?: Array | null, tags?: Array | null, deleted?: any | null, lastBillingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null, lastContact?: { emailAddress?: string | null, telNumber?: string | null } | null, lastLogin?: { countryCode?: string | null, locale?: any | null, remoteAddress?: string | null, remotePort?: number | null, timestamp: any, userAgent?: string | null } | null, avatar?: { _id: string, name: string, size: number, type: string, url?: string | null } | null, paymentCredentials: Array<{ _id: string, isValid: boolean, isPreferred: boolean, paymentProvider: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }>, emails?: Array<{ verified: boolean, address: string }> | null, web3Addresses: Array<{ address: string, nonce?: number | null, verified: boolean }>, webAuthnCredentials: Array<{ _id: string, created: any, aaguid: string, counter: number, mdsMetadata?: { legalHeader?: string | null, description?: string | null, authenticatorVersion?: number | null, protocolFamily?: string | null, schema?: number | null, authenticationAlgorithms?: Array | null, publicKeyAlgAndEncodings?: Array | null, attestationTypes?: Array | null, keyProtection?: Array | null, upv?: Array | null, tcDisplay?: Array | null, icon?: string | null, authenticatorGetInfo?: any | null } | null }>, profile?: { displayName?: string | null, phoneMobile?: string | null, gender?: string | null, birthday?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null } | null, primaryEmail?: { verified: boolean, address: string } | null, cart?: { _id: string, items?: Array<{ _id: string }> | null } | null, orders: Array<{ _id: string, items?: Array<{ _id: string }> | null }> } }; export type IAddWeb3AddressMutationVariables = Exact<{ address: Scalars['String']['input']; }>; -export type IAddWeb3AddressMutation = { - addWeb3Address: { - _id: string; - allowedActions: Array; - username?: string | null; - isGuest: boolean; - isInitialPassword: boolean; - name: string; - roles?: Array | null; - tags?: Array | null; - deleted?: any | null; - lastBillingAddress?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - addressLine2?: string | null; - postalCode?: string | null; - countryCode?: string | null; - regionCode?: string | null; - city?: string | null; - } | null; - lastContact?: { - emailAddress?: string | null; - telNumber?: string | null; - } | null; - lastLogin?: { - countryCode?: string | null; - locale?: any | null; - remoteAddress?: string | null; - remotePort?: number | null; - timestamp: any; - userAgent?: string | null; - } | null; - avatar?: { - _id: string; - name: string; - size: number; - type: string; - url?: string | null; - } | null; - paymentCredentials: Array<{ - _id: string; - isValid: boolean; - isPreferred: boolean; - paymentProvider: { - _id: string; - type?: IPaymentProviderType | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - }; - }>; - emails?: Array<{ verified: boolean; address: string }> | null; - web3Addresses: Array<{ - address: string; - nonce?: number | null; - verified: boolean; - }>; - webAuthnCredentials: Array<{ - _id: string; - created: any; - aaguid: string; - counter: number; - mdsMetadata?: { - legalHeader?: string | null; - description?: string | null; - authenticatorVersion?: number | null; - protocolFamily?: string | null; - schema?: number | null; - authenticationAlgorithms?: Array | null; - publicKeyAlgAndEncodings?: Array | null; - attestationTypes?: Array | null; - keyProtection?: Array | null; - upv?: Array | null; - tcDisplay?: Array | null; - icon?: string | null; - authenticatorGetInfo?: any | null; - } | null; - }>; - profile?: { - displayName?: string | null; - phoneMobile?: string | null; - gender?: string | null; - birthday?: any | null; - address?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - addressLine2?: string | null; - postalCode?: string | null; - countryCode?: string | null; - regionCode?: string | null; - city?: string | null; - } | null; - } | null; - primaryEmail?: { verified: boolean; address: string } | null; - cart?: { _id: string; items?: Array<{ _id: string }> | null } | null; - orders: Array<{ _id: string; items?: Array<{ _id: string }> | null }>; - }; -}; + +export type IAddWeb3AddressMutation = { addWeb3Address: { _id: string, allowedActions: Array, username?: string | null, isGuest: boolean, isInitialPassword: boolean, name: string, roles?: Array | null, tags?: Array | null, deleted?: any | null, lastBillingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null, lastContact?: { emailAddress?: string | null, telNumber?: string | null } | null, lastLogin?: { countryCode?: string | null, locale?: any | null, remoteAddress?: string | null, remotePort?: number | null, timestamp: any, userAgent?: string | null } | null, avatar?: { _id: string, name: string, size: number, type: string, url?: string | null } | null, paymentCredentials: Array<{ _id: string, isValid: boolean, isPreferred: boolean, paymentProvider: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }>, emails?: Array<{ verified: boolean, address: string }> | null, web3Addresses: Array<{ address: string, nonce?: number | null, verified: boolean }>, webAuthnCredentials: Array<{ _id: string, created: any, aaguid: string, counter: number, mdsMetadata?: { legalHeader?: string | null, description?: string | null, authenticatorVersion?: number | null, protocolFamily?: string | null, schema?: number | null, authenticationAlgorithms?: Array | null, publicKeyAlgAndEncodings?: Array | null, attestationTypes?: Array | null, keyProtection?: Array | null, upv?: Array | null, tcDisplay?: Array | null, icon?: string | null, authenticatorGetInfo?: any | null } | null }>, profile?: { displayName?: string | null, phoneMobile?: string | null, gender?: string | null, birthday?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null } | null, primaryEmail?: { verified: boolean, address: string } | null, cart?: { _id: string, items?: Array<{ _id: string }> | null } | null, orders: Array<{ _id: string, items?: Array<{ _id: string }> | null }> } }; export type IAddWebAuthnCredentialsMutationVariables = Exact<{ credentials: Scalars['JSON']['input']; }>; -export type IAddWebAuthnCredentialsMutation = { - addWebAuthnCredentials: { - _id: string; - allowedActions: Array; - username?: string | null; - isGuest: boolean; - isInitialPassword: boolean; - name: string; - roles?: Array | null; - tags?: Array | null; - deleted?: any | null; - webAuthnCredentials: Array<{ - _id: string; - created: any; - aaguid: string; - counter: number; - mdsMetadata?: { - legalHeader?: string | null; - description?: string | null; - authenticatorVersion?: number | null; - protocolFamily?: string | null; - schema?: number | null; - authenticationAlgorithms?: Array | null; - publicKeyAlgAndEncodings?: Array | null; - attestationTypes?: Array | null; - keyProtection?: Array | null; - upv?: Array | null; - tcDisplay?: Array | null; - icon?: string | null; - authenticatorGetInfo?: any | null; - } | null; - }>; - lastBillingAddress?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - addressLine2?: string | null; - postalCode?: string | null; - countryCode?: string | null; - regionCode?: string | null; - city?: string | null; - } | null; - lastContact?: { - emailAddress?: string | null; - telNumber?: string | null; - } | null; - lastLogin?: { - countryCode?: string | null; - locale?: any | null; - remoteAddress?: string | null; - remotePort?: number | null; - timestamp: any; - userAgent?: string | null; - } | null; - avatar?: { - _id: string; - name: string; - size: number; - type: string; - url?: string | null; - } | null; - paymentCredentials: Array<{ - _id: string; - isValid: boolean; - isPreferred: boolean; - paymentProvider: { - _id: string; - type?: IPaymentProviderType | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - }; - }>; - emails?: Array<{ verified: boolean; address: string }> | null; - web3Addresses: Array<{ - address: string; - nonce?: number | null; - verified: boolean; - }>; - profile?: { - displayName?: string | null; - phoneMobile?: string | null; - gender?: string | null; - birthday?: any | null; - address?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - addressLine2?: string | null; - postalCode?: string | null; - countryCode?: string | null; - regionCode?: string | null; - city?: string | null; - } | null; - } | null; - primaryEmail?: { verified: boolean; address: string } | null; - cart?: { _id: string; items?: Array<{ _id: string }> | null } | null; - orders: Array<{ _id: string; items?: Array<{ _id: string }> | null }>; - }; -}; + +export type IAddWebAuthnCredentialsMutation = { addWebAuthnCredentials: { _id: string, allowedActions: Array, username?: string | null, isGuest: boolean, isInitialPassword: boolean, name: string, roles?: Array | null, tags?: Array | null, deleted?: any | null, webAuthnCredentials: Array<{ _id: string, created: any, aaguid: string, counter: number, mdsMetadata?: { legalHeader?: string | null, description?: string | null, authenticatorVersion?: number | null, protocolFamily?: string | null, schema?: number | null, authenticationAlgorithms?: Array | null, publicKeyAlgAndEncodings?: Array | null, attestationTypes?: Array | null, keyProtection?: Array | null, upv?: Array | null, tcDisplay?: Array | null, icon?: string | null, authenticatorGetInfo?: any | null } | null }>, lastBillingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null, lastContact?: { emailAddress?: string | null, telNumber?: string | null } | null, lastLogin?: { countryCode?: string | null, locale?: any | null, remoteAddress?: string | null, remotePort?: number | null, timestamp: any, userAgent?: string | null } | null, avatar?: { _id: string, name: string, size: number, type: string, url?: string | null } | null, paymentCredentials: Array<{ _id: string, isValid: boolean, isPreferred: boolean, paymentProvider: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }>, emails?: Array<{ verified: boolean, address: string }> | null, web3Addresses: Array<{ address: string, nonce?: number | null, verified: boolean }>, profile?: { displayName?: string | null, phoneMobile?: string | null, gender?: string | null, birthday?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null } | null, primaryEmail?: { verified: boolean, address: string } | null, cart?: { _id: string, items?: Array<{ _id: string }> | null } | null, orders: Array<{ _id: string, items?: Array<{ _id: string }> | null }> } }; export type IChangePasswordMutationVariables = Exact<{ oldPassword: Scalars['String']['input']; newPassword: Scalars['String']['input']; }>; -export type IChangePasswordMutation = { - changePassword?: { success?: boolean | null } | null; -}; + +export type IChangePasswordMutation = { changePassword?: { success?: boolean | null } | null }; export type ICreateUserMutationVariables = Exact<{ username?: InputMaybe; @@ -4650,137 +4540,33 @@ export type ICreateUserMutationVariables = Exact<{ webAuthnPublicKeyCredentials?: InputMaybe; }>; -export type ICreateUserMutation = { - createUser?: { _id: string; tokenExpires: any } | null; -}; + +export type ICreateUserMutation = { createUser?: { _id: string, tokenExpires: any } | null }; export type ICreateWebAuthnCredentialCreationOptionsMutationVariables = Exact<{ username: Scalars['String']['input']; }>; -export type ICreateWebAuthnCredentialCreationOptionsMutation = { - createWebAuthnCredentialCreationOptions?: any | null; -}; + +export type ICreateWebAuthnCredentialCreationOptionsMutation = { createWebAuthnCredentialCreationOptions?: any | null }; export type ICreateWebAuthnCredentialRequestOptionsMutationVariables = Exact<{ username?: InputMaybe; }>; -export type ICreateWebAuthnCredentialRequestOptionsMutation = { - createWebAuthnCredentialRequestOptions?: any | null; -}; - -export type ICurrentUserQueryVariables = Exact<{ [key: string]: never }>; - -export type ICurrentUserQuery = { - me?: { - _id: string; - allowedActions: Array; - username?: string | null; - isGuest: boolean; - isInitialPassword: boolean; - name: string; - roles?: Array | null; - tags?: Array | null; - deleted?: any | null; - lastBillingAddress?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - addressLine2?: string | null; - postalCode?: string | null; - countryCode?: string | null; - regionCode?: string | null; - city?: string | null; - } | null; - lastContact?: { - emailAddress?: string | null; - telNumber?: string | null; - } | null; - lastLogin?: { - countryCode?: string | null; - locale?: any | null; - remoteAddress?: string | null; - remotePort?: number | null; - timestamp: any; - userAgent?: string | null; - } | null; - avatar?: { - _id: string; - name: string; - size: number; - type: string; - url?: string | null; - } | null; - paymentCredentials: Array<{ - _id: string; - isValid: boolean; - isPreferred: boolean; - paymentProvider: { - _id: string; - type?: IPaymentProviderType | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - }; - }>; - emails?: Array<{ verified: boolean; address: string }> | null; - web3Addresses: Array<{ - address: string; - nonce?: number | null; - verified: boolean; - }>; - webAuthnCredentials: Array<{ - _id: string; - created: any; - aaguid: string; - counter: number; - mdsMetadata?: { - legalHeader?: string | null; - description?: string | null; - authenticatorVersion?: number | null; - protocolFamily?: string | null; - schema?: number | null; - authenticationAlgorithms?: Array | null; - publicKeyAlgAndEncodings?: Array | null; - attestationTypes?: Array | null; - keyProtection?: Array | null; - upv?: Array | null; - tcDisplay?: Array | null; - icon?: string | null; - authenticatorGetInfo?: any | null; - } | null; - }>; - profile?: { - displayName?: string | null; - phoneMobile?: string | null; - gender?: string | null; - birthday?: any | null; - address?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - addressLine2?: string | null; - postalCode?: string | null; - countryCode?: string | null; - regionCode?: string | null; - city?: string | null; - } | null; - } | null; - primaryEmail?: { verified: boolean; address: string } | null; - cart?: { _id: string; items?: Array<{ _id: string }> | null } | null; - orders: Array<{ _id: string; items?: Array<{ _id: string }> | null }>; - } | null; -}; + +export type ICreateWebAuthnCredentialRequestOptionsMutation = { createWebAuthnCredentialRequestOptions?: any | null }; + +export type ICurrentUserQueryVariables = Exact<{ [key: string]: never; }>; + + +export type ICurrentUserQuery = { me?: { _id: string, allowedActions: Array, username?: string | null, isGuest: boolean, isInitialPassword: boolean, name: string, roles?: Array | null, tags?: Array | null, deleted?: any | null, lastBillingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null, lastContact?: { emailAddress?: string | null, telNumber?: string | null } | null, lastLogin?: { countryCode?: string | null, locale?: any | null, remoteAddress?: string | null, remotePort?: number | null, timestamp: any, userAgent?: string | null } | null, avatar?: { _id: string, name: string, size: number, type: string, url?: string | null } | null, paymentCredentials: Array<{ _id: string, isValid: boolean, isPreferred: boolean, paymentProvider: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }>, emails?: Array<{ verified: boolean, address: string }> | null, web3Addresses: Array<{ address: string, nonce?: number | null, verified: boolean }>, webAuthnCredentials: Array<{ _id: string, created: any, aaguid: string, counter: number, mdsMetadata?: { legalHeader?: string | null, description?: string | null, authenticatorVersion?: number | null, protocolFamily?: string | null, schema?: number | null, authenticationAlgorithms?: Array | null, publicKeyAlgAndEncodings?: Array | null, attestationTypes?: Array | null, keyProtection?: Array | null, upv?: Array | null, tcDisplay?: Array | null, icon?: string | null, authenticatorGetInfo?: any | null } | null }>, profile?: { displayName?: string | null, phoneMobile?: string | null, gender?: string | null, birthday?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null } | null, primaryEmail?: { verified: boolean, address: string } | null, cart?: { _id: string, items?: Array<{ _id: string }> | null } | null, orders: Array<{ _id: string, items?: Array<{ _id: string }> | null }> } | null }; export type IDeleteUserMutationVariables = Exact<{ userId?: InputMaybe; }>; + export type IDeleteUserMutation = { removeUser: { _id: string } }; export type IEnrollUserMutationVariables = Exact<{ @@ -4789,118 +4575,15 @@ export type IEnrollUserMutationVariables = Exact<{ profile: IUserProfileInput; }>; -export type IEnrollUserMutation = { - enrollUser: { - _id: string; - allowedActions: Array; - username?: string | null; - isGuest: boolean; - isInitialPassword: boolean; - name: string; - roles?: Array | null; - tags?: Array | null; - deleted?: any | null; - lastBillingAddress?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - addressLine2?: string | null; - postalCode?: string | null; - countryCode?: string | null; - regionCode?: string | null; - city?: string | null; - } | null; - lastContact?: { - emailAddress?: string | null; - telNumber?: string | null; - } | null; - lastLogin?: { - countryCode?: string | null; - locale?: any | null; - remoteAddress?: string | null; - remotePort?: number | null; - timestamp: any; - userAgent?: string | null; - } | null; - avatar?: { - _id: string; - name: string; - size: number; - type: string; - url?: string | null; - } | null; - paymentCredentials: Array<{ - _id: string; - isValid: boolean; - isPreferred: boolean; - paymentProvider: { - _id: string; - type?: IPaymentProviderType | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - }; - }>; - emails?: Array<{ verified: boolean; address: string }> | null; - web3Addresses: Array<{ - address: string; - nonce?: number | null; - verified: boolean; - }>; - webAuthnCredentials: Array<{ - _id: string; - created: any; - aaguid: string; - counter: number; - mdsMetadata?: { - legalHeader?: string | null; - description?: string | null; - authenticatorVersion?: number | null; - protocolFamily?: string | null; - schema?: number | null; - authenticationAlgorithms?: Array | null; - publicKeyAlgAndEncodings?: Array | null; - attestationTypes?: Array | null; - keyProtection?: Array | null; - upv?: Array | null; - tcDisplay?: Array | null; - icon?: string | null; - authenticatorGetInfo?: any | null; - } | null; - }>; - profile?: { - displayName?: string | null; - phoneMobile?: string | null; - gender?: string | null; - birthday?: any | null; - address?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - addressLine2?: string | null; - postalCode?: string | null; - countryCode?: string | null; - regionCode?: string | null; - city?: string | null; - } | null; - } | null; - primaryEmail?: { verified: boolean; address: string } | null; - cart?: { _id: string; items?: Array<{ _id: string }> | null } | null; - orders: Array<{ _id: string; items?: Array<{ _id: string }> | null }>; - }; -}; + +export type IEnrollUserMutation = { enrollUser: { _id: string, allowedActions: Array, username?: string | null, isGuest: boolean, isInitialPassword: boolean, name: string, roles?: Array | null, tags?: Array | null, deleted?: any | null, lastBillingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null, lastContact?: { emailAddress?: string | null, telNumber?: string | null } | null, lastLogin?: { countryCode?: string | null, locale?: any | null, remoteAddress?: string | null, remotePort?: number | null, timestamp: any, userAgent?: string | null } | null, avatar?: { _id: string, name: string, size: number, type: string, url?: string | null } | null, paymentCredentials: Array<{ _id: string, isValid: boolean, isPreferred: boolean, paymentProvider: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }>, emails?: Array<{ verified: boolean, address: string }> | null, web3Addresses: Array<{ address: string, nonce?: number | null, verified: boolean }>, webAuthnCredentials: Array<{ _id: string, created: any, aaguid: string, counter: number, mdsMetadata?: { legalHeader?: string | null, description?: string | null, authenticatorVersion?: number | null, protocolFamily?: string | null, schema?: number | null, authenticationAlgorithms?: Array | null, publicKeyAlgAndEncodings?: Array | null, attestationTypes?: Array | null, keyProtection?: Array | null, upv?: Array | null, tcDisplay?: Array | null, icon?: string | null, authenticatorGetInfo?: any | null } | null }>, profile?: { displayName?: string | null, phoneMobile?: string | null, gender?: string | null, birthday?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null } | null, primaryEmail?: { verified: boolean, address: string } | null, cart?: { _id: string, items?: Array<{ _id: string }> | null } | null, orders: Array<{ _id: string, items?: Array<{ _id: string }> | null }> } }; export type IForgotPasswordMutationVariables = Exact<{ email: Scalars['String']['input']; }>; -export type IForgotPasswordMutation = { - forgotPassword?: { success?: boolean | null } | null; -}; + +export type IForgotPasswordMutation = { forgotPassword?: { success?: boolean | null } | null }; export type ILoginWithPasswordMutationVariables = Exact<{ username?: InputMaybe; @@ -4908,968 +4591,114 @@ export type ILoginWithPasswordMutationVariables = Exact<{ password: Scalars['String']['input']; }>; -export type ILoginWithPasswordMutation = { - loginWithPassword?: { - _id: string; - tokenExpires: any; - user?: { - _id: string; - allowedActions: Array; - roles?: Array | null; - } | null; - } | null; -}; + +export type ILoginWithPasswordMutation = { loginWithPassword?: { _id: string, tokenExpires: any, user?: { _id: string, allowedActions: Array, roles?: Array | null } | null } | null }; export type ILoginWithWebAuthnMutationVariables = Exact<{ webAuthnPublicKeyCredentials: Scalars['JSON']['input']; }>; -export type ILoginWithWebAuthnMutation = { - loginWithWebAuthn?: { _id: string; tokenExpires: any } | null; -}; + +export type ILoginWithWebAuthnMutation = { loginWithWebAuthn?: { _id: string, tokenExpires: any } | null }; export type IRemoveEmailMutationVariables = Exact<{ email: Scalars['String']['input']; userId?: InputMaybe; }>; -export type IRemoveEmailMutation = { - removeEmail: { - _id: string; - allowedActions: Array; - username?: string | null; - isGuest: boolean; - isInitialPassword: boolean; - name: string; - roles?: Array | null; - tags?: Array | null; - deleted?: any | null; - lastBillingAddress?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - addressLine2?: string | null; - postalCode?: string | null; - countryCode?: string | null; - regionCode?: string | null; - city?: string | null; - } | null; - lastContact?: { - emailAddress?: string | null; - telNumber?: string | null; - } | null; - lastLogin?: { - countryCode?: string | null; - locale?: any | null; - remoteAddress?: string | null; - remotePort?: number | null; - timestamp: any; - userAgent?: string | null; - } | null; - avatar?: { - _id: string; - name: string; - size: number; - type: string; - url?: string | null; - } | null; - paymentCredentials: Array<{ - _id: string; - isValid: boolean; - isPreferred: boolean; - paymentProvider: { - _id: string; - type?: IPaymentProviderType | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - }; - }>; - emails?: Array<{ verified: boolean; address: string }> | null; - web3Addresses: Array<{ - address: string; - nonce?: number | null; - verified: boolean; - }>; - webAuthnCredentials: Array<{ - _id: string; - created: any; - aaguid: string; - counter: number; - mdsMetadata?: { - legalHeader?: string | null; - description?: string | null; - authenticatorVersion?: number | null; - protocolFamily?: string | null; - schema?: number | null; - authenticationAlgorithms?: Array | null; - publicKeyAlgAndEncodings?: Array | null; - attestationTypes?: Array | null; - keyProtection?: Array | null; - upv?: Array | null; - tcDisplay?: Array | null; - icon?: string | null; - authenticatorGetInfo?: any | null; - } | null; - }>; - profile?: { - displayName?: string | null; - phoneMobile?: string | null; - gender?: string | null; - birthday?: any | null; - address?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - addressLine2?: string | null; - postalCode?: string | null; - countryCode?: string | null; - regionCode?: string | null; - city?: string | null; - } | null; - } | null; - primaryEmail?: { verified: boolean; address: string } | null; - cart?: { _id: string; items?: Array<{ _id: string }> | null } | null; - orders: Array<{ _id: string; items?: Array<{ _id: string }> | null }>; - }; -}; + +export type IRemoveEmailMutation = { removeEmail: { _id: string, allowedActions: Array, username?: string | null, isGuest: boolean, isInitialPassword: boolean, name: string, roles?: Array | null, tags?: Array | null, deleted?: any | null, lastBillingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null, lastContact?: { emailAddress?: string | null, telNumber?: string | null } | null, lastLogin?: { countryCode?: string | null, locale?: any | null, remoteAddress?: string | null, remotePort?: number | null, timestamp: any, userAgent?: string | null } | null, avatar?: { _id: string, name: string, size: number, type: string, url?: string | null } | null, paymentCredentials: Array<{ _id: string, isValid: boolean, isPreferred: boolean, paymentProvider: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }>, emails?: Array<{ verified: boolean, address: string }> | null, web3Addresses: Array<{ address: string, nonce?: number | null, verified: boolean }>, webAuthnCredentials: Array<{ _id: string, created: any, aaguid: string, counter: number, mdsMetadata?: { legalHeader?: string | null, description?: string | null, authenticatorVersion?: number | null, protocolFamily?: string | null, schema?: number | null, authenticationAlgorithms?: Array | null, publicKeyAlgAndEncodings?: Array | null, attestationTypes?: Array | null, keyProtection?: Array | null, upv?: Array | null, tcDisplay?: Array | null, icon?: string | null, authenticatorGetInfo?: any | null } | null }>, profile?: { displayName?: string | null, phoneMobile?: string | null, gender?: string | null, birthday?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null } | null, primaryEmail?: { verified: boolean, address: string } | null, cart?: { _id: string, items?: Array<{ _id: string }> | null } | null, orders: Array<{ _id: string, items?: Array<{ _id: string }> | null }> } }; export type IRemoveWeb3AddressMutationVariables = Exact<{ address: Scalars['String']['input']; }>; -export type IRemoveWeb3AddressMutation = { - removeWeb3Address: { - _id: string; - allowedActions: Array; - username?: string | null; - isGuest: boolean; - isInitialPassword: boolean; - name: string; - roles?: Array | null; - tags?: Array | null; - deleted?: any | null; - lastBillingAddress?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - addressLine2?: string | null; - postalCode?: string | null; - countryCode?: string | null; - regionCode?: string | null; - city?: string | null; - } | null; - lastContact?: { - emailAddress?: string | null; - telNumber?: string | null; - } | null; - lastLogin?: { - countryCode?: string | null; - locale?: any | null; - remoteAddress?: string | null; - remotePort?: number | null; - timestamp: any; - userAgent?: string | null; - } | null; - avatar?: { - _id: string; - name: string; - size: number; - type: string; - url?: string | null; - } | null; - paymentCredentials: Array<{ - _id: string; - isValid: boolean; - isPreferred: boolean; - paymentProvider: { - _id: string; - type?: IPaymentProviderType | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - }; - }>; - emails?: Array<{ verified: boolean; address: string }> | null; - web3Addresses: Array<{ - address: string; - nonce?: number | null; - verified: boolean; - }>; - webAuthnCredentials: Array<{ - _id: string; - created: any; - aaguid: string; - counter: number; - mdsMetadata?: { - legalHeader?: string | null; - description?: string | null; - authenticatorVersion?: number | null; - protocolFamily?: string | null; - schema?: number | null; - authenticationAlgorithms?: Array | null; - publicKeyAlgAndEncodings?: Array | null; - attestationTypes?: Array | null; - keyProtection?: Array | null; - upv?: Array | null; - tcDisplay?: Array | null; - icon?: string | null; - authenticatorGetInfo?: any | null; - } | null; - }>; - profile?: { - displayName?: string | null; - phoneMobile?: string | null; - gender?: string | null; - birthday?: any | null; - address?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - addressLine2?: string | null; - postalCode?: string | null; - countryCode?: string | null; - regionCode?: string | null; - city?: string | null; - } | null; - } | null; - primaryEmail?: { verified: boolean; address: string } | null; - cart?: { _id: string; items?: Array<{ _id: string }> | null } | null; - orders: Array<{ _id: string; items?: Array<{ _id: string }> | null }>; - }; -}; + +export type IRemoveWeb3AddressMutation = { removeWeb3Address: { _id: string, allowedActions: Array, username?: string | null, isGuest: boolean, isInitialPassword: boolean, name: string, roles?: Array | null, tags?: Array | null, deleted?: any | null, lastBillingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null, lastContact?: { emailAddress?: string | null, telNumber?: string | null } | null, lastLogin?: { countryCode?: string | null, locale?: any | null, remoteAddress?: string | null, remotePort?: number | null, timestamp: any, userAgent?: string | null } | null, avatar?: { _id: string, name: string, size: number, type: string, url?: string | null } | null, paymentCredentials: Array<{ _id: string, isValid: boolean, isPreferred: boolean, paymentProvider: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }>, emails?: Array<{ verified: boolean, address: string }> | null, web3Addresses: Array<{ address: string, nonce?: number | null, verified: boolean }>, webAuthnCredentials: Array<{ _id: string, created: any, aaguid: string, counter: number, mdsMetadata?: { legalHeader?: string | null, description?: string | null, authenticatorVersion?: number | null, protocolFamily?: string | null, schema?: number | null, authenticationAlgorithms?: Array | null, publicKeyAlgAndEncodings?: Array | null, attestationTypes?: Array | null, keyProtection?: Array | null, upv?: Array | null, tcDisplay?: Array | null, icon?: string | null, authenticatorGetInfo?: any | null } | null }>, profile?: { displayName?: string | null, phoneMobile?: string | null, gender?: string | null, birthday?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null } | null, primaryEmail?: { verified: boolean, address: string } | null, cart?: { _id: string, items?: Array<{ _id: string }> | null } | null, orders: Array<{ _id: string, items?: Array<{ _id: string }> | null }> } }; export type IRemoveWebAuthCredentialsMutationVariables = Exact<{ credentialsId: Scalars['ID']['input']; }>; -export type IRemoveWebAuthCredentialsMutation = { - removeWebAuthnCredentials: { - _id: string; - allowedActions: Array; - username?: string | null; - isGuest: boolean; - isInitialPassword: boolean; - name: string; - roles?: Array | null; - tags?: Array | null; - deleted?: any | null; - lastBillingAddress?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - addressLine2?: string | null; - postalCode?: string | null; - countryCode?: string | null; - regionCode?: string | null; - city?: string | null; - } | null; - lastContact?: { - emailAddress?: string | null; - telNumber?: string | null; - } | null; - lastLogin?: { - countryCode?: string | null; - locale?: any | null; - remoteAddress?: string | null; - remotePort?: number | null; - timestamp: any; - userAgent?: string | null; - } | null; - avatar?: { - _id: string; - name: string; - size: number; - type: string; - url?: string | null; - } | null; - paymentCredentials: Array<{ - _id: string; - isValid: boolean; - isPreferred: boolean; - paymentProvider: { - _id: string; - type?: IPaymentProviderType | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - }; - }>; - emails?: Array<{ verified: boolean; address: string }> | null; - web3Addresses: Array<{ - address: string; - nonce?: number | null; - verified: boolean; - }>; - webAuthnCredentials: Array<{ - _id: string; - created: any; - aaguid: string; - counter: number; - mdsMetadata?: { - legalHeader?: string | null; - description?: string | null; - authenticatorVersion?: number | null; - protocolFamily?: string | null; - schema?: number | null; - authenticationAlgorithms?: Array | null; - publicKeyAlgAndEncodings?: Array | null; - attestationTypes?: Array | null; - keyProtection?: Array | null; - upv?: Array | null; - tcDisplay?: Array | null; - icon?: string | null; - authenticatorGetInfo?: any | null; - } | null; - }>; - profile?: { - displayName?: string | null; - phoneMobile?: string | null; - gender?: string | null; - birthday?: any | null; - address?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - addressLine2?: string | null; - postalCode?: string | null; - countryCode?: string | null; - regionCode?: string | null; - city?: string | null; - } | null; - } | null; - primaryEmail?: { verified: boolean; address: string } | null; - cart?: { _id: string; items?: Array<{ _id: string }> | null } | null; - orders: Array<{ _id: string; items?: Array<{ _id: string }> | null }>; - }; -}; + +export type IRemoveWebAuthCredentialsMutation = { removeWebAuthnCredentials: { _id: string, allowedActions: Array, username?: string | null, isGuest: boolean, isInitialPassword: boolean, name: string, roles?: Array | null, tags?: Array | null, deleted?: any | null, lastBillingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null, lastContact?: { emailAddress?: string | null, telNumber?: string | null } | null, lastLogin?: { countryCode?: string | null, locale?: any | null, remoteAddress?: string | null, remotePort?: number | null, timestamp: any, userAgent?: string | null } | null, avatar?: { _id: string, name: string, size: number, type: string, url?: string | null } | null, paymentCredentials: Array<{ _id: string, isValid: boolean, isPreferred: boolean, paymentProvider: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }>, emails?: Array<{ verified: boolean, address: string }> | null, web3Addresses: Array<{ address: string, nonce?: number | null, verified: boolean }>, webAuthnCredentials: Array<{ _id: string, created: any, aaguid: string, counter: number, mdsMetadata?: { legalHeader?: string | null, description?: string | null, authenticatorVersion?: number | null, protocolFamily?: string | null, schema?: number | null, authenticationAlgorithms?: Array | null, publicKeyAlgAndEncodings?: Array | null, attestationTypes?: Array | null, keyProtection?: Array | null, upv?: Array | null, tcDisplay?: Array | null, icon?: string | null, authenticatorGetInfo?: any | null } | null }>, profile?: { displayName?: string | null, phoneMobile?: string | null, gender?: string | null, birthday?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null } | null, primaryEmail?: { verified: boolean, address: string } | null, cart?: { _id: string, items?: Array<{ _id: string }> | null } | null, orders: Array<{ _id: string, items?: Array<{ _id: string }> | null }> } }; export type IResetPasswordMutationVariables = Exact<{ newPlainPassword: Scalars['String']['input']; token: Scalars['String']['input']; }>; -export type IResetPasswordMutation = { - resetPassword?: { _id: string; tokenExpires: any } | null; -}; + +export type IResetPasswordMutation = { resetPassword?: { _id: string, tokenExpires: any } | null }; export type ISendVerificationEmailMutationVariables = Exact<{ email?: InputMaybe; }>; -export type ISendVerificationEmailMutation = { - sendVerificationEmail?: { success?: boolean | null } | null; -}; + +export type ISendVerificationEmailMutation = { sendVerificationEmail?: { success?: boolean | null } | null }; export type ISetPasswordMutationVariables = Exact<{ newPlainPassword: Scalars['String']['input']; userId: Scalars['ID']['input']; }>; -export type ISetPasswordMutation = { - setPassword: { - _id: string; - allowedActions: Array; - username?: string | null; - isGuest: boolean; - isInitialPassword: boolean; - name: string; - roles?: Array | null; - tags?: Array | null; - deleted?: any | null; - lastBillingAddress?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - addressLine2?: string | null; - postalCode?: string | null; - countryCode?: string | null; - regionCode?: string | null; - city?: string | null; - } | null; - lastContact?: { - emailAddress?: string | null; - telNumber?: string | null; - } | null; - lastLogin?: { - countryCode?: string | null; - locale?: any | null; - remoteAddress?: string | null; - remotePort?: number | null; - timestamp: any; - userAgent?: string | null; - } | null; - avatar?: { - _id: string; - name: string; - size: number; - type: string; - url?: string | null; - } | null; - paymentCredentials: Array<{ - _id: string; - isValid: boolean; - isPreferred: boolean; - paymentProvider: { - _id: string; - type?: IPaymentProviderType | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - }; - }>; - emails?: Array<{ verified: boolean; address: string }> | null; - web3Addresses: Array<{ - address: string; - nonce?: number | null; - verified: boolean; - }>; - webAuthnCredentials: Array<{ - _id: string; - created: any; - aaguid: string; - counter: number; - mdsMetadata?: { - legalHeader?: string | null; - description?: string | null; - authenticatorVersion?: number | null; - protocolFamily?: string | null; - schema?: number | null; - authenticationAlgorithms?: Array | null; - publicKeyAlgAndEncodings?: Array | null; - attestationTypes?: Array | null; - keyProtection?: Array | null; - upv?: Array | null; - tcDisplay?: Array | null; - icon?: string | null; - authenticatorGetInfo?: any | null; - } | null; - }>; - profile?: { - displayName?: string | null; - phoneMobile?: string | null; - gender?: string | null; - birthday?: any | null; - address?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - addressLine2?: string | null; - postalCode?: string | null; - countryCode?: string | null; - regionCode?: string | null; - city?: string | null; - } | null; - } | null; - primaryEmail?: { verified: boolean; address: string } | null; - cart?: { _id: string; items?: Array<{ _id: string }> | null } | null; - orders: Array<{ _id: string; items?: Array<{ _id: string }> | null }>; - }; -}; + +export type ISetPasswordMutation = { setPassword: { _id: string, allowedActions: Array, username?: string | null, isGuest: boolean, isInitialPassword: boolean, name: string, roles?: Array | null, tags?: Array | null, deleted?: any | null, lastBillingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null, lastContact?: { emailAddress?: string | null, telNumber?: string | null } | null, lastLogin?: { countryCode?: string | null, locale?: any | null, remoteAddress?: string | null, remotePort?: number | null, timestamp: any, userAgent?: string | null } | null, avatar?: { _id: string, name: string, size: number, type: string, url?: string | null } | null, paymentCredentials: Array<{ _id: string, isValid: boolean, isPreferred: boolean, paymentProvider: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }>, emails?: Array<{ verified: boolean, address: string }> | null, web3Addresses: Array<{ address: string, nonce?: number | null, verified: boolean }>, webAuthnCredentials: Array<{ _id: string, created: any, aaguid: string, counter: number, mdsMetadata?: { legalHeader?: string | null, description?: string | null, authenticatorVersion?: number | null, protocolFamily?: string | null, schema?: number | null, authenticationAlgorithms?: Array | null, publicKeyAlgAndEncodings?: Array | null, attestationTypes?: Array | null, keyProtection?: Array | null, upv?: Array | null, tcDisplay?: Array | null, icon?: string | null, authenticatorGetInfo?: any | null } | null }>, profile?: { displayName?: string | null, phoneMobile?: string | null, gender?: string | null, birthday?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null } | null, primaryEmail?: { verified: boolean, address: string } | null, cart?: { _id: string, items?: Array<{ _id: string }> | null } | null, orders: Array<{ _id: string, items?: Array<{ _id: string }> | null }> } }; export type ISetRolesMutationVariables = Exact<{ roles: Array; userId: Scalars['ID']['input']; }>; -export type ISetRolesMutation = { - setRoles: { - _id: string; - allowedActions: Array; - username?: string | null; - isGuest: boolean; - isInitialPassword: boolean; - name: string; - roles?: Array | null; - tags?: Array | null; - deleted?: any | null; - lastBillingAddress?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - addressLine2?: string | null; - postalCode?: string | null; - countryCode?: string | null; - regionCode?: string | null; - city?: string | null; - } | null; - lastContact?: { - emailAddress?: string | null; - telNumber?: string | null; - } | null; - lastLogin?: { - countryCode?: string | null; - locale?: any | null; - remoteAddress?: string | null; - remotePort?: number | null; - timestamp: any; - userAgent?: string | null; - } | null; - avatar?: { - _id: string; - name: string; - size: number; - type: string; - url?: string | null; - } | null; - paymentCredentials: Array<{ - _id: string; - isValid: boolean; - isPreferred: boolean; - paymentProvider: { - _id: string; - type?: IPaymentProviderType | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - }; - }>; - emails?: Array<{ verified: boolean; address: string }> | null; - web3Addresses: Array<{ - address: string; - nonce?: number | null; - verified: boolean; - }>; - webAuthnCredentials: Array<{ - _id: string; - created: any; - aaguid: string; - counter: number; - mdsMetadata?: { - legalHeader?: string | null; - description?: string | null; - authenticatorVersion?: number | null; - protocolFamily?: string | null; - schema?: number | null; - authenticationAlgorithms?: Array | null; - publicKeyAlgAndEncodings?: Array | null; - attestationTypes?: Array | null; - keyProtection?: Array | null; - upv?: Array | null; - tcDisplay?: Array | null; - icon?: string | null; - authenticatorGetInfo?: any | null; - } | null; - }>; - profile?: { - displayName?: string | null; - phoneMobile?: string | null; - gender?: string | null; - birthday?: any | null; - address?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - addressLine2?: string | null; - postalCode?: string | null; - countryCode?: string | null; - regionCode?: string | null; - city?: string | null; - } | null; - } | null; - primaryEmail?: { verified: boolean; address: string } | null; - cart?: { _id: string; items?: Array<{ _id: string }> | null } | null; - orders: Array<{ _id: string; items?: Array<{ _id: string }> | null }>; - }; -}; + +export type ISetRolesMutation = { setRoles: { _id: string, allowedActions: Array, username?: string | null, isGuest: boolean, isInitialPassword: boolean, name: string, roles?: Array | null, tags?: Array | null, deleted?: any | null, lastBillingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null, lastContact?: { emailAddress?: string | null, telNumber?: string | null } | null, lastLogin?: { countryCode?: string | null, locale?: any | null, remoteAddress?: string | null, remotePort?: number | null, timestamp: any, userAgent?: string | null } | null, avatar?: { _id: string, name: string, size: number, type: string, url?: string | null } | null, paymentCredentials: Array<{ _id: string, isValid: boolean, isPreferred: boolean, paymentProvider: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }>, emails?: Array<{ verified: boolean, address: string }> | null, web3Addresses: Array<{ address: string, nonce?: number | null, verified: boolean }>, webAuthnCredentials: Array<{ _id: string, created: any, aaguid: string, counter: number, mdsMetadata?: { legalHeader?: string | null, description?: string | null, authenticatorVersion?: number | null, protocolFamily?: string | null, schema?: number | null, authenticationAlgorithms?: Array | null, publicKeyAlgAndEncodings?: Array | null, attestationTypes?: Array | null, keyProtection?: Array | null, upv?: Array | null, tcDisplay?: Array | null, icon?: string | null, authenticatorGetInfo?: any | null } | null }>, profile?: { displayName?: string | null, phoneMobile?: string | null, gender?: string | null, birthday?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null } | null, primaryEmail?: { verified: boolean, address: string } | null, cart?: { _id: string, items?: Array<{ _id: string }> | null } | null, orders: Array<{ _id: string, items?: Array<{ _id: string }> | null }> } }; export type ISetUserTagsMutationVariables = Exact<{ tags: Array>; userId: Scalars['ID']['input']; }>; -export type ISetUserTagsMutation = { - setUserTags: { _id: string; tags?: Array | null }; -}; + +export type ISetUserTagsMutation = { setUserTags: { _id: string, tags?: Array | null } }; export type ISetUsernameMutationVariables = Exact<{ username: Scalars['String']['input']; userId: Scalars['ID']['input']; }>; -export type ISetUsernameMutation = { - setUsername: { - _id: string; - allowedActions: Array; - username?: string | null; - isGuest: boolean; - isInitialPassword: boolean; - name: string; - roles?: Array | null; - tags?: Array | null; - deleted?: any | null; - lastBillingAddress?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - addressLine2?: string | null; - postalCode?: string | null; - countryCode?: string | null; - regionCode?: string | null; - city?: string | null; - } | null; - lastContact?: { - emailAddress?: string | null; - telNumber?: string | null; - } | null; - lastLogin?: { - countryCode?: string | null; - locale?: any | null; - remoteAddress?: string | null; - remotePort?: number | null; - timestamp: any; - userAgent?: string | null; - } | null; - avatar?: { - _id: string; - name: string; - size: number; - type: string; - url?: string | null; - } | null; - paymentCredentials: Array<{ - _id: string; - isValid: boolean; - isPreferred: boolean; - paymentProvider: { - _id: string; - type?: IPaymentProviderType | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - }; - }>; - emails?: Array<{ verified: boolean; address: string }> | null; - web3Addresses: Array<{ - address: string; - nonce?: number | null; - verified: boolean; - }>; - webAuthnCredentials: Array<{ - _id: string; - created: any; - aaguid: string; - counter: number; - mdsMetadata?: { - legalHeader?: string | null; - description?: string | null; - authenticatorVersion?: number | null; - protocolFamily?: string | null; - schema?: number | null; - authenticationAlgorithms?: Array | null; - publicKeyAlgAndEncodings?: Array | null; - attestationTypes?: Array | null; - keyProtection?: Array | null; - upv?: Array | null; - tcDisplay?: Array | null; - icon?: string | null; - authenticatorGetInfo?: any | null; - } | null; - }>; - profile?: { - displayName?: string | null; - phoneMobile?: string | null; - gender?: string | null; - birthday?: any | null; - address?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - addressLine2?: string | null; - postalCode?: string | null; - countryCode?: string | null; - regionCode?: string | null; - city?: string | null; - } | null; - } | null; - primaryEmail?: { verified: boolean; address: string } | null; - cart?: { _id: string; items?: Array<{ _id: string }> | null } | null; - orders: Array<{ _id: string; items?: Array<{ _id: string }> | null }>; - }; -}; + +export type ISetUsernameMutation = { setUsername: { _id: string, allowedActions: Array, username?: string | null, isGuest: boolean, isInitialPassword: boolean, name: string, roles?: Array | null, tags?: Array | null, deleted?: any | null, lastBillingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null, lastContact?: { emailAddress?: string | null, telNumber?: string | null } | null, lastLogin?: { countryCode?: string | null, locale?: any | null, remoteAddress?: string | null, remotePort?: number | null, timestamp: any, userAgent?: string | null } | null, avatar?: { _id: string, name: string, size: number, type: string, url?: string | null } | null, paymentCredentials: Array<{ _id: string, isValid: boolean, isPreferred: boolean, paymentProvider: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }>, emails?: Array<{ verified: boolean, address: string }> | null, web3Addresses: Array<{ address: string, nonce?: number | null, verified: boolean }>, webAuthnCredentials: Array<{ _id: string, created: any, aaguid: string, counter: number, mdsMetadata?: { legalHeader?: string | null, description?: string | null, authenticatorVersion?: number | null, protocolFamily?: string | null, schema?: number | null, authenticationAlgorithms?: Array | null, publicKeyAlgAndEncodings?: Array | null, attestationTypes?: Array | null, keyProtection?: Array | null, upv?: Array | null, tcDisplay?: Array | null, icon?: string | null, authenticatorGetInfo?: any | null } | null }>, profile?: { displayName?: string | null, phoneMobile?: string | null, gender?: string | null, birthday?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null } | null, primaryEmail?: { verified: boolean, address: string } | null, cart?: { _id: string, items?: Array<{ _id: string }> | null } | null, orders: Array<{ _id: string, items?: Array<{ _id: string }> | null }> } }; export type IPrepareUserAvatarUploadMutationVariables = Exact<{ mediaName: Scalars['String']['input']; userId?: InputMaybe; }>; -export type IPrepareUserAvatarUploadMutation = { - prepareUserAvatarUpload: { _id: string; putURL: string; expires: any }; -}; + +export type IPrepareUserAvatarUploadMutation = { prepareUserAvatarUpload: { _id: string, putURL: string, expires: any } }; export type IUpdateUserProfileMutationVariables = Exact<{ profile: IUserProfileInput; userId?: InputMaybe; }>; -export type IUpdateUserProfileMutation = { - updateUserProfile: { - _id: string; - allowedActions: Array; - username?: string | null; - isGuest: boolean; - isInitialPassword: boolean; - name: string; - roles?: Array | null; - tags?: Array | null; - deleted?: any | null; - lastBillingAddress?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - addressLine2?: string | null; - postalCode?: string | null; - countryCode?: string | null; - regionCode?: string | null; - city?: string | null; - } | null; - lastContact?: { - emailAddress?: string | null; - telNumber?: string | null; - } | null; - lastLogin?: { - countryCode?: string | null; - locale?: any | null; - remoteAddress?: string | null; - remotePort?: number | null; - timestamp: any; - userAgent?: string | null; - } | null; - avatar?: { - _id: string; - name: string; - size: number; - type: string; - url?: string | null; - } | null; - paymentCredentials: Array<{ - _id: string; - isValid: boolean; - isPreferred: boolean; - paymentProvider: { - _id: string; - type?: IPaymentProviderType | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - }; - }>; - emails?: Array<{ verified: boolean; address: string }> | null; - web3Addresses: Array<{ - address: string; - nonce?: number | null; - verified: boolean; - }>; - webAuthnCredentials: Array<{ - _id: string; - created: any; - aaguid: string; - counter: number; - mdsMetadata?: { - legalHeader?: string | null; - description?: string | null; - authenticatorVersion?: number | null; - protocolFamily?: string | null; - schema?: number | null; - authenticationAlgorithms?: Array | null; - publicKeyAlgAndEncodings?: Array | null; - attestationTypes?: Array | null; - keyProtection?: Array | null; - upv?: Array | null; - tcDisplay?: Array | null; - icon?: string | null; - authenticatorGetInfo?: any | null; - } | null; - }>; - profile?: { - displayName?: string | null; - phoneMobile?: string | null; - gender?: string | null; - birthday?: any | null; - address?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - addressLine2?: string | null; - postalCode?: string | null; - countryCode?: string | null; - regionCode?: string | null; - city?: string | null; - } | null; - } | null; - primaryEmail?: { verified: boolean; address: string } | null; - cart?: { _id: string; items?: Array<{ _id: string }> | null } | null; - orders: Array<{ _id: string; items?: Array<{ _id: string }> | null }>; - }; -}; + +export type IUpdateUserProfileMutation = { updateUserProfile: { _id: string, allowedActions: Array, username?: string | null, isGuest: boolean, isInitialPassword: boolean, name: string, roles?: Array | null, tags?: Array | null, deleted?: any | null, lastBillingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null, lastContact?: { emailAddress?: string | null, telNumber?: string | null } | null, lastLogin?: { countryCode?: string | null, locale?: any | null, remoteAddress?: string | null, remotePort?: number | null, timestamp: any, userAgent?: string | null } | null, avatar?: { _id: string, name: string, size: number, type: string, url?: string | null } | null, paymentCredentials: Array<{ _id: string, isValid: boolean, isPreferred: boolean, paymentProvider: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }>, emails?: Array<{ verified: boolean, address: string }> | null, web3Addresses: Array<{ address: string, nonce?: number | null, verified: boolean }>, webAuthnCredentials: Array<{ _id: string, created: any, aaguid: string, counter: number, mdsMetadata?: { legalHeader?: string | null, description?: string | null, authenticatorVersion?: number | null, protocolFamily?: string | null, schema?: number | null, authenticationAlgorithms?: Array | null, publicKeyAlgAndEncodings?: Array | null, attestationTypes?: Array | null, keyProtection?: Array | null, upv?: Array | null, tcDisplay?: Array | null, icon?: string | null, authenticatorGetInfo?: any | null } | null }>, profile?: { displayName?: string | null, phoneMobile?: string | null, gender?: string | null, birthday?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null } | null, primaryEmail?: { verified: boolean, address: string } | null, cart?: { _id: string, items?: Array<{ _id: string }> | null } | null, orders: Array<{ _id: string, items?: Array<{ _id: string }> | null }> } }; export type IUserQueryVariables = Exact<{ userId?: InputMaybe; }>; -export type IUserQuery = { - user?: { - _id: string; - allowedActions: Array; - username?: string | null; - isGuest: boolean; - isInitialPassword: boolean; - name: string; - roles?: Array | null; - tags?: Array | null; - deleted?: any | null; - lastBillingAddress?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - addressLine2?: string | null; - postalCode?: string | null; - countryCode?: string | null; - regionCode?: string | null; - city?: string | null; - } | null; - lastContact?: { - emailAddress?: string | null; - telNumber?: string | null; - } | null; - lastLogin?: { - countryCode?: string | null; - locale?: any | null; - remoteAddress?: string | null; - remotePort?: number | null; - timestamp: any; - userAgent?: string | null; - } | null; - avatar?: { - _id: string; - name: string; - size: number; - type: string; - url?: string | null; - } | null; - paymentCredentials: Array<{ - _id: string; - isValid: boolean; - isPreferred: boolean; - paymentProvider: { - _id: string; - type?: IPaymentProviderType | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - }; - }>; - emails?: Array<{ verified: boolean; address: string }> | null; - web3Addresses: Array<{ - address: string; - nonce?: number | null; - verified: boolean; - }>; - webAuthnCredentials: Array<{ - _id: string; - created: any; - aaguid: string; - counter: number; - mdsMetadata?: { - legalHeader?: string | null; - description?: string | null; - authenticatorVersion?: number | null; - protocolFamily?: string | null; - schema?: number | null; - authenticationAlgorithms?: Array | null; - publicKeyAlgAndEncodings?: Array | null; - attestationTypes?: Array | null; - keyProtection?: Array | null; - upv?: Array | null; - tcDisplay?: Array | null; - icon?: string | null; - authenticatorGetInfo?: any | null; - } | null; - }>; - profile?: { - displayName?: string | null; - phoneMobile?: string | null; - gender?: string | null; - birthday?: any | null; - address?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - addressLine2?: string | null; - postalCode?: string | null; - countryCode?: string | null; - regionCode?: string | null; - city?: string | null; - } | null; - } | null; - primaryEmail?: { verified: boolean; address: string } | null; - cart?: { _id: string; items?: Array<{ _id: string }> | null } | null; - orders: Array<{ _id: string; items?: Array<{ _id: string }> | null }>; - } | null; -}; + +export type IUserQuery = { user?: { _id: string, allowedActions: Array, username?: string | null, isGuest: boolean, isInitialPassword: boolean, name: string, roles?: Array | null, tags?: Array | null, deleted?: any | null, lastBillingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null, lastContact?: { emailAddress?: string | null, telNumber?: string | null } | null, lastLogin?: { countryCode?: string | null, locale?: any | null, remoteAddress?: string | null, remotePort?: number | null, timestamp: any, userAgent?: string | null } | null, avatar?: { _id: string, name: string, size: number, type: string, url?: string | null } | null, paymentCredentials: Array<{ _id: string, isValid: boolean, isPreferred: boolean, paymentProvider: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }>, emails?: Array<{ verified: boolean, address: string }> | null, web3Addresses: Array<{ address: string, nonce?: number | null, verified: boolean }>, webAuthnCredentials: Array<{ _id: string, created: any, aaguid: string, counter: number, mdsMetadata?: { legalHeader?: string | null, description?: string | null, authenticatorVersion?: number | null, protocolFamily?: string | null, schema?: number | null, authenticationAlgorithms?: Array | null, publicKeyAlgAndEncodings?: Array | null, attestationTypes?: Array | null, keyProtection?: Array | null, upv?: Array | null, tcDisplay?: Array | null, icon?: string | null, authenticatorGetInfo?: any | null } | null }>, profile?: { displayName?: string | null, phoneMobile?: string | null, gender?: string | null, birthday?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null } | null, primaryEmail?: { verified: boolean, address: string } | null, cart?: { _id: string, items?: Array<{ _id: string }> | null } | null, orders: Array<{ _id: string, items?: Array<{ _id: string }> | null }> } | null }; export type IUserWebAuthnCredentialsQueryVariables = Exact<{ userId: Scalars['ID']['input']; }>; -export type IUserWebAuthnCredentialsQuery = { - user?: { - _id: string; - webAuthnCredentials: Array<{ - _id: string; - created: any; - aaguid: string; - counter: number; - mdsMetadata?: { - legalHeader?: string | null; - description?: string | null; - authenticatorVersion?: number | null; - protocolFamily?: string | null; - schema?: number | null; - authenticationAlgorithms?: Array | null; - publicKeyAlgAndEncodings?: Array | null; - attestationTypes?: Array | null; - keyProtection?: Array | null; - upv?: Array | null; - tcDisplay?: Array | null; - icon?: string | null; - authenticatorGetInfo?: any | null; - } | null; - }>; - } | null; -}; + +export type IUserWebAuthnCredentialsQuery = { user?: { _id: string, webAuthnCredentials: Array<{ _id: string, created: any, aaguid: string, counter: number, mdsMetadata?: { legalHeader?: string | null, description?: string | null, authenticatorVersion?: number | null, protocolFamily?: string | null, schema?: number | null, authenticationAlgorithms?: Array | null, publicKeyAlgAndEncodings?: Array | null, attestationTypes?: Array | null, keyProtection?: Array | null, upv?: Array | null, tcDisplay?: Array | null, icon?: string | null, authenticatorGetInfo?: any | null } | null }> } | null }; export type IUsersQueryVariables = Exact<{ limit?: InputMaybe; @@ -5881,111 +4710,8 @@ export type IUsersQueryVariables = Exact<{ tags?: InputMaybe>; }>; -export type IUsersQuery = { - usersCount: number; - users: Array<{ - _id: string; - allowedActions: Array; - username?: string | null; - isGuest: boolean; - isInitialPassword: boolean; - name: string; - roles?: Array | null; - tags?: Array | null; - deleted?: any | null; - lastBillingAddress?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - addressLine2?: string | null; - postalCode?: string | null; - countryCode?: string | null; - regionCode?: string | null; - city?: string | null; - } | null; - lastContact?: { - emailAddress?: string | null; - telNumber?: string | null; - } | null; - lastLogin?: { - countryCode?: string | null; - locale?: any | null; - remoteAddress?: string | null; - remotePort?: number | null; - timestamp: any; - userAgent?: string | null; - } | null; - avatar?: { - _id: string; - name: string; - size: number; - type: string; - url?: string | null; - } | null; - paymentCredentials: Array<{ - _id: string; - isValid: boolean; - isPreferred: boolean; - paymentProvider: { - _id: string; - type?: IPaymentProviderType | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - }; - }>; - emails?: Array<{ verified: boolean; address: string }> | null; - web3Addresses: Array<{ - address: string; - nonce?: number | null; - verified: boolean; - }>; - webAuthnCredentials: Array<{ - _id: string; - created: any; - aaguid: string; - counter: number; - mdsMetadata?: { - legalHeader?: string | null; - description?: string | null; - authenticatorVersion?: number | null; - protocolFamily?: string | null; - schema?: number | null; - authenticationAlgorithms?: Array | null; - publicKeyAlgAndEncodings?: Array | null; - attestationTypes?: Array | null; - keyProtection?: Array | null; - upv?: Array | null; - tcDisplay?: Array | null; - icon?: string | null; - authenticatorGetInfo?: any | null; - } | null; - }>; - profile?: { - displayName?: string | null; - phoneMobile?: string | null; - gender?: string | null; - birthday?: any | null; - address?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - addressLine2?: string | null; - postalCode?: string | null; - countryCode?: string | null; - regionCode?: string | null; - city?: string | null; - } | null; - } | null; - primaryEmail?: { verified: boolean; address: string } | null; - cart?: { _id: string; items?: Array<{ _id: string }> | null } | null; - orders: Array<{ _id: string; items?: Array<{ _id: string }> | null }>; - }>; -}; + +export type IUsersQuery = { usersCount: number, users: Array<{ _id: string, allowedActions: Array, username?: string | null, isGuest: boolean, isInitialPassword: boolean, name: string, roles?: Array | null, tags?: Array | null, deleted?: any | null, lastBillingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null, lastContact?: { emailAddress?: string | null, telNumber?: string | null } | null, lastLogin?: { countryCode?: string | null, locale?: any | null, remoteAddress?: string | null, remotePort?: number | null, timestamp: any, userAgent?: string | null } | null, avatar?: { _id: string, name: string, size: number, type: string, url?: string | null } | null, paymentCredentials: Array<{ _id: string, isValid: boolean, isPreferred: boolean, paymentProvider: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }>, emails?: Array<{ verified: boolean, address: string }> | null, web3Addresses: Array<{ address: string, nonce?: number | null, verified: boolean }>, webAuthnCredentials: Array<{ _id: string, created: any, aaguid: string, counter: number, mdsMetadata?: { legalHeader?: string | null, description?: string | null, authenticatorVersion?: number | null, protocolFamily?: string | null, schema?: number | null, authenticationAlgorithms?: Array | null, publicKeyAlgAndEncodings?: Array | null, attestationTypes?: Array | null, keyProtection?: Array | null, upv?: Array | null, tcDisplay?: Array | null, icon?: string | null, authenticatorGetInfo?: any | null } | null }>, profile?: { displayName?: string | null, phoneMobile?: string | null, gender?: string | null, birthday?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null } | null, primaryEmail?: { verified: boolean, address: string } | null, cart?: { _id: string, items?: Array<{ _id: string }> | null } | null, orders: Array<{ _id: string, items?: Array<{ _id: string }> | null }> }> }; export type IUsersCountQueryVariables = Exact<{ includeGuests?: InputMaybe; @@ -5994,373 +4720,67 @@ export type IUsersCountQueryVariables = Exact<{ emailVerified?: InputMaybe; }>; + export type IUsersCountQuery = { usersCount: number }; export type IValidateVerifyEmailTokenQueryVariables = Exact<{ token: Scalars['String']['input']; }>; -export type IValidateVerifyEmailTokenQuery = { - validateVerifyEmailToken: boolean; -}; + +export type IValidateVerifyEmailTokenQuery = { validateVerifyEmailToken: boolean }; export type IValidateResetPasswordTokenQueryVariables = Exact<{ token: Scalars['String']['input']; }>; -export type IValidateResetPasswordTokenQuery = { - validateResetPasswordToken: boolean; -}; + +export type IValidateResetPasswordTokenQuery = { validateResetPasswordToken: boolean }; export type IVerifyEmailMutationVariables = Exact<{ token: Scalars['String']['input']; }>; -export type IVerifyEmailMutation = { - verifyEmail?: { - _id: string; - tokenExpires: any; - user?: { - _id: string; - allowedActions: Array; - username?: string | null; - isGuest: boolean; - isInitialPassword: boolean; - name: string; - roles?: Array | null; - tags?: Array | null; - deleted?: any | null; - lastBillingAddress?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - addressLine2?: string | null; - postalCode?: string | null; - countryCode?: string | null; - regionCode?: string | null; - city?: string | null; - } | null; - lastContact?: { - emailAddress?: string | null; - telNumber?: string | null; - } | null; - lastLogin?: { - countryCode?: string | null; - locale?: any | null; - remoteAddress?: string | null; - remotePort?: number | null; - timestamp: any; - userAgent?: string | null; - } | null; - avatar?: { - _id: string; - name: string; - size: number; - type: string; - url?: string | null; - } | null; - paymentCredentials: Array<{ - _id: string; - isValid: boolean; - isPreferred: boolean; - paymentProvider: { - _id: string; - type?: IPaymentProviderType | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - }; - }>; - emails?: Array<{ verified: boolean; address: string }> | null; - web3Addresses: Array<{ - address: string; - nonce?: number | null; - verified: boolean; - }>; - webAuthnCredentials: Array<{ - _id: string; - created: any; - aaguid: string; - counter: number; - mdsMetadata?: { - legalHeader?: string | null; - description?: string | null; - authenticatorVersion?: number | null; - protocolFamily?: string | null; - schema?: number | null; - authenticationAlgorithms?: Array | null; - publicKeyAlgAndEncodings?: Array | null; - attestationTypes?: Array | null; - keyProtection?: Array | null; - upv?: Array | null; - tcDisplay?: Array | null; - icon?: string | null; - authenticatorGetInfo?: any | null; - } | null; - }>; - profile?: { - displayName?: string | null; - phoneMobile?: string | null; - gender?: string | null; - birthday?: any | null; - address?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - addressLine2?: string | null; - postalCode?: string | null; - countryCode?: string | null; - regionCode?: string | null; - city?: string | null; - } | null; - } | null; - primaryEmail?: { verified: boolean; address: string } | null; - cart?: { _id: string; items?: Array<{ _id: string }> | null } | null; - orders: Array<{ _id: string; items?: Array<{ _id: string }> | null }>; - } | null; - } | null; -}; + +export type IVerifyEmailMutation = { verifyEmail?: { _id: string, tokenExpires: any, user?: { _id: string, allowedActions: Array, username?: string | null, isGuest: boolean, isInitialPassword: boolean, name: string, roles?: Array | null, tags?: Array | null, deleted?: any | null, lastBillingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null, lastContact?: { emailAddress?: string | null, telNumber?: string | null } | null, lastLogin?: { countryCode?: string | null, locale?: any | null, remoteAddress?: string | null, remotePort?: number | null, timestamp: any, userAgent?: string | null } | null, avatar?: { _id: string, name: string, size: number, type: string, url?: string | null } | null, paymentCredentials: Array<{ _id: string, isValid: boolean, isPreferred: boolean, paymentProvider: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }>, emails?: Array<{ verified: boolean, address: string }> | null, web3Addresses: Array<{ address: string, nonce?: number | null, verified: boolean }>, webAuthnCredentials: Array<{ _id: string, created: any, aaguid: string, counter: number, mdsMetadata?: { legalHeader?: string | null, description?: string | null, authenticatorVersion?: number | null, protocolFamily?: string | null, schema?: number | null, authenticationAlgorithms?: Array | null, publicKeyAlgAndEncodings?: Array | null, attestationTypes?: Array | null, keyProtection?: Array | null, upv?: Array | null, tcDisplay?: Array | null, icon?: string | null, authenticatorGetInfo?: any | null } | null }>, profile?: { displayName?: string | null, phoneMobile?: string | null, gender?: string | null, birthday?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null } | null, primaryEmail?: { verified: boolean, address: string } | null, cart?: { _id: string, items?: Array<{ _id: string }> | null } | null, orders: Array<{ _id: string, items?: Array<{ _id: string }> | null }> } | null } | null }; export type IVerifyWeb3AddressMutationVariables = Exact<{ address: Scalars['String']['input']; hash: Scalars['String']['input']; }>; -export type IVerifyWeb3AddressMutation = { - verifyWeb3Address: { - _id: string; - allowedActions: Array; - username?: string | null; - isGuest: boolean; - isInitialPassword: boolean; - name: string; - roles?: Array | null; - tags?: Array | null; - deleted?: any | null; - lastBillingAddress?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - addressLine2?: string | null; - postalCode?: string | null; - countryCode?: string | null; - regionCode?: string | null; - city?: string | null; - } | null; - lastContact?: { - emailAddress?: string | null; - telNumber?: string | null; - } | null; - lastLogin?: { - countryCode?: string | null; - locale?: any | null; - remoteAddress?: string | null; - remotePort?: number | null; - timestamp: any; - userAgent?: string | null; - } | null; - avatar?: { - _id: string; - name: string; - size: number; - type: string; - url?: string | null; - } | null; - paymentCredentials: Array<{ - _id: string; - isValid: boolean; - isPreferred: boolean; - paymentProvider: { - _id: string; - type?: IPaymentProviderType | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - }; - }>; - emails?: Array<{ verified: boolean; address: string }> | null; - web3Addresses: Array<{ - address: string; - nonce?: number | null; - verified: boolean; - }>; - webAuthnCredentials: Array<{ - _id: string; - created: any; - aaguid: string; - counter: number; - mdsMetadata?: { - legalHeader?: string | null; - description?: string | null; - authenticatorVersion?: number | null; - protocolFamily?: string | null; - schema?: number | null; - authenticationAlgorithms?: Array | null; - publicKeyAlgAndEncodings?: Array | null; - attestationTypes?: Array | null; - keyProtection?: Array | null; - upv?: Array | null; - tcDisplay?: Array | null; - icon?: string | null; - authenticatorGetInfo?: any | null; - } | null; - }>; - profile?: { - displayName?: string | null; - phoneMobile?: string | null; - gender?: string | null; - birthday?: any | null; - address?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - addressLine2?: string | null; - postalCode?: string | null; - countryCode?: string | null; - regionCode?: string | null; - city?: string | null; - } | null; - } | null; - primaryEmail?: { verified: boolean; address: string } | null; - cart?: { _id: string; items?: Array<{ _id: string }> | null } | null; - orders: Array<{ _id: string; items?: Array<{ _id: string }> | null }>; - }; -}; - -export type IAssortmentChildrenFragment = { - _id: string; - childrenCount: number; - texts?: { - _id: string; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - } | null; -}; - -export type IAssortmentChildrenFragmentVariables = Exact<{ - [key: string]: never; -}>; - -export type IAssortmentFragment = { - _id: string; - isActive?: boolean | null; - created?: any | null; - updated?: any | null; - sequence: number; - isRoot?: boolean | null; - tags?: Array | null; - childrenCount: number; - texts?: { - _id: string; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; -}; - -export type IAssortmentFragmentVariables = Exact<{ [key: string]: never }>; - -export type IAssortmentLinkFragment = { - _id: string; - sortKey: number; - parent: { - _id: string; - isActive?: boolean | null; - created?: any | null; - updated?: any | null; - sequence: number; - isRoot?: boolean | null; - tags?: Array | null; - childrenCount: number; - texts?: { - _id: string; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - }; - child: { - _id: string; - isActive?: boolean | null; - created?: any | null; - updated?: any | null; - sequence: number; - isRoot?: boolean | null; - tags?: Array | null; - childrenCount: number; - texts?: { - _id: string; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - }; -}; - -export type IAssortmentLinkFragmentVariables = Exact<{ [key: string]: never }>; - -export type IAssortmentMediaFragment = { - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - texts?: { - _id: string; - locale: any; - title?: string | null; - subtitle?: string | null; - } | null; -}; - -export type IAssortmentMediaFragmentVariables = Exact<{ [key: string]: never }>; - -export type IAssortmentMediaTextsFragment = { - _id: string; - locale: any; - title?: string | null; - subtitle?: string | null; -}; - -export type IAssortmentMediaTextsFragmentVariables = Exact<{ - [key: string]: never; -}>; - -export type IAssortmentTextsFragment = { - _id: string; - locale: any; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; -}; - -export type IAssortmentTextsFragmentVariables = Exact<{ [key: string]: never }>; + +export type IVerifyWeb3AddressMutation = { verifyWeb3Address: { _id: string, allowedActions: Array, username?: string | null, isGuest: boolean, isInitialPassword: boolean, name: string, roles?: Array | null, tags?: Array | null, deleted?: any | null, lastBillingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null, lastContact?: { emailAddress?: string | null, telNumber?: string | null } | null, lastLogin?: { countryCode?: string | null, locale?: any | null, remoteAddress?: string | null, remotePort?: number | null, timestamp: any, userAgent?: string | null } | null, avatar?: { _id: string, name: string, size: number, type: string, url?: string | null } | null, paymentCredentials: Array<{ _id: string, isValid: boolean, isPreferred: boolean, paymentProvider: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }>, emails?: Array<{ verified: boolean, address: string }> | null, web3Addresses: Array<{ address: string, nonce?: number | null, verified: boolean }>, webAuthnCredentials: Array<{ _id: string, created: any, aaguid: string, counter: number, mdsMetadata?: { legalHeader?: string | null, description?: string | null, authenticatorVersion?: number | null, protocolFamily?: string | null, schema?: number | null, authenticationAlgorithms?: Array | null, publicKeyAlgAndEncodings?: Array | null, attestationTypes?: Array | null, keyProtection?: Array | null, upv?: Array | null, tcDisplay?: Array | null, icon?: string | null, authenticatorGetInfo?: any | null } | null }>, profile?: { displayName?: string | null, phoneMobile?: string | null, gender?: string | null, birthday?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null } | null, primaryEmail?: { verified: boolean, address: string } | null, cart?: { _id: string, items?: Array<{ _id: string }> | null } | null, orders: Array<{ _id: string, items?: Array<{ _id: string }> | null }> } }; + +export type IAssortmentChildrenFragment = { _id: string, childrenCount: number, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null } | null }; + + +export type IAssortmentChildrenFragmentVariables = Exact<{ [key: string]: never; }>; + +export type IAssortmentFragment = { _id: string, isActive?: boolean | null, created?: any | null, updated?: any | null, sequence: number, isRoot?: boolean | null, tags?: Array | null, childrenCount: number, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> }; + + +export type IAssortmentFragmentVariables = Exact<{ [key: string]: never; }>; + +export type IAssortmentLinkFragment = { _id: string, sortKey: number, parent: { _id: string, isActive?: boolean | null, created?: any | null, updated?: any | null, sequence: number, isRoot?: boolean | null, tags?: Array | null, childrenCount: number, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> }, child: { _id: string, isActive?: boolean | null, created?: any | null, updated?: any | null, sequence: number, isRoot?: boolean | null, tags?: Array | null, childrenCount: number, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } }; + + +export type IAssortmentLinkFragmentVariables = Exact<{ [key: string]: never; }>; + +export type IAssortmentMediaFragment = { _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null, texts?: { _id: string, locale: any, title?: string | null, subtitle?: string | null } | null }; + + +export type IAssortmentMediaFragmentVariables = Exact<{ [key: string]: never; }>; + +export type IAssortmentMediaTextsFragment = { _id: string, locale: any, title?: string | null, subtitle?: string | null }; + + +export type IAssortmentMediaTextsFragmentVariables = Exact<{ [key: string]: never; }>; + +export type IAssortmentTextsFragment = { _id: string, locale: any, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null }; + + +export type IAssortmentTextsFragmentVariables = Exact<{ [key: string]: never; }>; export type IAddAssortmentFilterMutationVariables = Exact<{ assortmentId: Scalars['ID']['input']; @@ -6368,9 +4788,8 @@ export type IAddAssortmentFilterMutationVariables = Exact<{ tags?: InputMaybe>; }>; -export type IAddAssortmentFilterMutation = { - addAssortmentFilter: { _id: string }; -}; + +export type IAddAssortmentFilterMutation = { addAssortmentFilter: { _id: string } }; export type IAddAssortmentLinkMutationVariables = Exact<{ parentAssortmentId: Scalars['ID']['input']; @@ -6378,6 +4797,7 @@ export type IAddAssortmentLinkMutationVariables = Exact<{ tags?: InputMaybe>; }>; + export type IAddAssortmentLinkMutation = { addAssortmentLink: { _id: string } }; export type IPrepareAssortmentMediaUploadMutationVariables = Exact<{ @@ -6385,9 +4805,8 @@ export type IPrepareAssortmentMediaUploadMutationVariables = Exact<{ assortmentId: Scalars['ID']['input']; }>; -export type IPrepareAssortmentMediaUploadMutation = { - prepareAssortmentMediaUpload: { _id: string; putURL: string; expires: any }; -}; + +export type IPrepareAssortmentMediaUploadMutation = { prepareAssortmentMediaUpload: { _id: string, putURL: string, expires: any } }; export type IAddAssortmentProductMutationVariables = Exact<{ assortmentId: Scalars['ID']['input']; @@ -6395,9 +4814,8 @@ export type IAddAssortmentProductMutationVariables = Exact<{ tags?: InputMaybe>; }>; -export type IAddAssortmentProductMutation = { - addAssortmentProduct: { _id: string }; -}; + +export type IAddAssortmentProductMutation = { addAssortmentProduct: { _id: string } }; export type IAssortmentQueryVariables = Exact<{ assortmentId?: InputMaybe; @@ -6405,30 +4823,8 @@ export type IAssortmentQueryVariables = Exact<{ forceLocale?: InputMaybe; }>; -export type IAssortmentQuery = { - assortment?: { - _id: string; - isActive?: boolean | null; - created?: any | null; - updated?: any | null; - sequence: number; - isRoot?: boolean | null; - tags?: Array | null; - childrenCount: number; - texts?: { - _id: string; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - } | null; -}; + +export type IAssortmentQuery = { assortment?: { _id: string, isActive?: boolean | null, created?: any | null, updated?: any | null, sequence: number, isRoot?: boolean | null, tags?: Array | null, childrenCount: number, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } | null }; export type IAssortmentChildrenQueryVariables = Exact<{ slugs?: InputMaybe>; @@ -6436,62 +4832,16 @@ export type IAssortmentChildrenQueryVariables = Exact<{ includeLeaves?: InputMaybe; }>; -export type IAssortmentChildrenQuery = { - assortments: Array<{ - _id: string; - childrenCount: number; - children?: Array<{ - _id: string; - childrenCount: number; - texts?: { - _id: string; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - } | null; - }> | null; - texts?: { - _id: string; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - } | null; - }>; -}; + +export type IAssortmentChildrenQuery = { assortments: Array<{ _id: string, childrenCount: number, children?: Array<{ _id: string, childrenCount: number, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null } | null }> | null, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null } | null }> }; export type IAssortmentFiltersQueryVariables = Exact<{ assortmentId?: InputMaybe; slug?: InputMaybe; }>; -export type IAssortmentFiltersQuery = { - assortment?: { - _id: string; - filterAssignments?: Array<{ - _id: string; - sortKey: number; - tags?: Array | null; - filter: { - _id: string; - updated?: any | null; - created?: any | null; - key?: string | null; - isActive?: boolean | null; - type?: IFilterType | null; - options?: Array<{ - _id: string; - value?: string | null; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - locale: any; - } | null; - }> | null; - }; - }> | null; - } | null; -}; + +export type IAssortmentFiltersQuery = { assortment?: { _id: string, filterAssignments?: Array<{ _id: string, sortKey: number, tags?: Array | null, filter: { _id: string, updated?: any | null, created?: any | null, key?: string | null, isActive?: boolean | null, type?: IFilterType | null, options?: Array<{ _id: string, value?: string | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, locale: any } | null }> | null } }> | null } | null }; export type IAssortmentLinksQueryVariables = Exact<{ assortmentId?: InputMaybe; @@ -6499,98 +4849,23 @@ export type IAssortmentLinksQueryVariables = Exact<{ forceLocale?: InputMaybe; }>; -export type IAssortmentLinksQuery = { - assortment?: { - _id: string; - linkedAssortments?: Array<{ - _id: string; - sortKey: number; - parent: { - _id: string; - isActive?: boolean | null; - created?: any | null; - updated?: any | null; - sequence: number; - isRoot?: boolean | null; - tags?: Array | null; - childrenCount: number; - texts?: { - _id: string; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - }; - child: { - _id: string; - isActive?: boolean | null; - created?: any | null; - updated?: any | null; - sequence: number; - isRoot?: boolean | null; - tags?: Array | null; - childrenCount: number; - texts?: { - _id: string; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - }; - }> | null; - } | null; -}; + +export type IAssortmentLinksQuery = { assortment?: { _id: string, linkedAssortments?: Array<{ _id: string, sortKey: number, parent: { _id: string, isActive?: boolean | null, created?: any | null, updated?: any | null, sequence: number, isRoot?: boolean | null, tags?: Array | null, childrenCount: number, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> }, child: { _id: string, isActive?: boolean | null, created?: any | null, updated?: any | null, sequence: number, isRoot?: boolean | null, tags?: Array | null, childrenCount: number, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } }> | null } | null }; export type IAssortmentMediaQueryVariables = Exact<{ assortmentId?: InputMaybe; slug?: InputMaybe; }>; -export type IAssortmentMediaQuery = { - assortment?: { - _id: string; - media: Array<{ - _id: string; - tags?: Array | null; - sortKey: number; - texts?: { - _id: string; - locale: any; - title?: string | null; - subtitle?: string | null; - } | null; - file?: { - _id: string; - url?: string | null; - name: string; - size: number; - type: string; - } | null; - }>; - } | null; -}; + +export type IAssortmentMediaQuery = { assortment?: { _id: string, media: Array<{ _id: string, tags?: Array | null, sortKey: number, texts?: { _id: string, locale: any, title?: string | null, subtitle?: string | null } | null, file?: { _id: string, url?: string | null, name: string, size: number, type: string } | null }> } | null }; export type IAssortmentPathsQueryVariables = Exact<{ assortmentId: Scalars['ID']['input']; }>; -export type IAssortmentPathsQuery = { - assortment?: { - assortmentPaths: Array<{ links: Array<{ assortmentId: string }> }>; - } | null; -}; + +export type IAssortmentPathsQuery = { assortment?: { assortmentPaths: Array<{ links: Array<{ assortmentId: string }> }> } | null }; export type IAssortmentProductsQueryVariables = Exact<{ assortmentId?: InputMaybe; @@ -6598,151 +4873,23 @@ export type IAssortmentProductsQueryVariables = Exact<{ forceLocale?: InputMaybe; }>; -export type IAssortmentProductsQuery = { - assortment?: { - _id: string; - productAssignments?: Array<{ - _id: string; - sortKey: number; - tags?: Array | null; - product: - | { - _id: string; - sequence: number; - status: IProductStatus; - tags?: Array | null; - updated?: any | null; - published?: any | null; - proxies: Array< - | { __typename: 'BundleProduct' } - | { __typename: 'ConfigurableProduct' } - >; - texts?: { - _id: string; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - vendor?: string | null; - brand?: string | null; - labels?: Array | null; - locale: any; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - tags?: Array | null; - updated?: any | null; - published?: any | null; - texts?: { - _id: string; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - vendor?: string | null; - brand?: string | null; - labels?: Array | null; - locale: any; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - tags?: Array | null; - updated?: any | null; - published?: any | null; - catalogPrice?: { amount: number; currencyCode: string } | null; - proxies: Array< - | { __typename: 'BundleProduct' } - | { __typename: 'ConfigurableProduct' } - >; - texts?: { - _id: string; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - vendor?: string | null; - brand?: string | null; - labels?: Array | null; - locale: any; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - tags?: Array | null; - updated?: any | null; - published?: any | null; - catalogPrice?: { amount: number; currencyCode: string } | null; - proxies: Array< - | { __typename: 'BundleProduct' } - | { __typename: 'ConfigurableProduct' } - >; - texts?: { - _id: string; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - vendor?: string | null; - brand?: string | null; - labels?: Array | null; - locale: any; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - tags?: Array | null; - updated?: any | null; - published?: any | null; - texts?: { - _id: string; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - vendor?: string | null; - brand?: string | null; - labels?: Array | null; - locale: any; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - }; - }> | null; - } | null; -}; + +export type IAssortmentProductsQuery = { assortment?: { _id: string, productAssignments?: Array<{ _id: string, sortKey: number, tags?: Array | null, product: + | { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, proxies: Array< + | { __typename: 'BundleProduct' } + | { __typename: 'ConfigurableProduct' } + >, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, catalogPrice?: { amount: number, currencyCode: string } | null, proxies: Array< + | { __typename: 'BundleProduct' } + | { __typename: 'ConfigurableProduct' } + >, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, catalogPrice?: { amount: number, currencyCode: string } | null, proxies: Array< + | { __typename: 'BundleProduct' } + | { __typename: 'ConfigurableProduct' } + >, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } + }> | null } | null }; export type IAssortmentsQueryVariables = Exact<{ queryString?: InputMaybe; @@ -6756,32 +4903,8 @@ export type IAssortmentsQueryVariables = Exact<{ forceLocale?: InputMaybe; }>; -export type IAssortmentsQuery = { - assortmentsCount: number; - assortments: Array<{ - _id: string; - isActive?: boolean | null; - created?: any | null; - updated?: any | null; - sequence: number; - isRoot?: boolean | null; - tags?: Array | null; - childrenCount: number; - linkedAssortments?: Array<{ child: { _id: string } }> | null; - texts?: { - _id: string; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - }>; -}; + +export type IAssortmentsQuery = { assortmentsCount: number, assortments: Array<{ _id: string, isActive?: boolean | null, created?: any | null, updated?: any | null, sequence: number, isRoot?: boolean | null, tags?: Array | null, childrenCount: number, linkedAssortments?: Array<{ child: { _id: string } }> | null, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> }> }; export type IAssortmentsCountQueryVariables = Exact<{ queryString?: InputMaybe; @@ -6790,6 +4913,7 @@ export type IAssortmentsCountQueryVariables = Exact<{ includeLeaves?: InputMaybe; }>; + export type IAssortmentsCountQuery = { assortmentsCount: number }; export type ICreateAssortmentMutationVariables = Exact<{ @@ -6797,111 +4921,92 @@ export type ICreateAssortmentMutationVariables = Exact<{ texts?: InputMaybe>; }>; + export type ICreateAssortmentMutation = { createAssortment: { _id: string } }; export type IRemoveAssortmentMutationVariables = Exact<{ assortmentId: Scalars['ID']['input']; }>; + export type IRemoveAssortmentMutation = { removeAssortment: { _id: string } }; export type IRemoveAssortmentFilterMutationVariables = Exact<{ assortmentFilterId: Scalars['ID']['input']; }>; -export type IRemoveAssortmentFilterMutation = { - removeAssortmentFilter: { _id: string }; -}; + +export type IRemoveAssortmentFilterMutation = { removeAssortmentFilter: { _id: string } }; export type IRemoveAssortmentLinkMutationVariables = Exact<{ assortmentLinkId: Scalars['ID']['input']; }>; -export type IRemoveAssortmentLinkMutation = { - removeAssortmentLink: { _id: string }; -}; + +export type IRemoveAssortmentLinkMutation = { removeAssortmentLink: { _id: string } }; export type IRemoveAssortmentMediaMutationVariables = Exact<{ assortmentMediaId: Scalars['ID']['input']; }>; -export type IRemoveAssortmentMediaMutation = { - removeAssortmentMedia: { _id: string }; -}; + +export type IRemoveAssortmentMediaMutation = { removeAssortmentMedia: { _id: string } }; export type IRemoveAssortmentProductMutationVariables = Exact<{ assortmentProductId: Scalars['ID']['input']; }>; -export type IRemoveAssortmentProductMutation = { - removeAssortmentProduct: { _id: string }; -}; + +export type IRemoveAssortmentProductMutation = { removeAssortmentProduct: { _id: string } }; export type IReorderAssortmentFiltersMutationVariables = Exact<{ sortKeys: Array; }>; -export type IReorderAssortmentFiltersMutation = { - reorderAssortmentFilters: Array<{ _id: string; sortKey: number }>; -}; + +export type IReorderAssortmentFiltersMutation = { reorderAssortmentFilters: Array<{ _id: string, sortKey: number }> }; export type IReorderAssortmentLinksMutationVariables = Exact<{ sortKeys: Array; }>; -export type IReorderAssortmentLinksMutation = { - reorderAssortmentLinks: Array<{ _id: string; sortKey: number }>; -}; + +export type IReorderAssortmentLinksMutation = { reorderAssortmentLinks: Array<{ _id: string, sortKey: number }> }; export type IReorderAssortmentMediaMutationVariables = Exact<{ sortKeys: Array; }>; -export type IReorderAssortmentMediaMutation = { - reorderAssortmentMedia: Array<{ _id: string; sortKey: number }>; -}; + +export type IReorderAssortmentMediaMutation = { reorderAssortmentMedia: Array<{ _id: string, sortKey: number }> }; export type IReorderAssortmentProductsMutationVariables = Exact<{ sortKeys: Array; }>; -export type IReorderAssortmentProductsMutation = { - reorderAssortmentProducts: Array<{ _id: string; sortKey: number }>; -}; + +export type IReorderAssortmentProductsMutation = { reorderAssortmentProducts: Array<{ _id: string, sortKey: number }> }; export type ITranslatedAssortmentMediaTextsQueryVariables = Exact<{ assortmentMediaId: Scalars['ID']['input']; }>; -export type ITranslatedAssortmentMediaTextsQuery = { - translatedAssortmentMediaTexts: Array<{ - _id: string; - locale: any; - title?: string | null; - subtitle?: string | null; - }>; -}; + +export type ITranslatedAssortmentMediaTextsQuery = { translatedAssortmentMediaTexts: Array<{ _id: string, locale: any, title?: string | null, subtitle?: string | null }> }; export type ITranslatedAssortmentTextsQueryVariables = Exact<{ assortmentId: Scalars['ID']['input']; }>; -export type ITranslatedAssortmentTextsQuery = { - translatedAssortmentTexts: Array<{ - _id: string; - locale: any; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - }>; -}; + +export type ITranslatedAssortmentTextsQuery = { translatedAssortmentTexts: Array<{ _id: string, locale: any, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null }> }; export type IUpdateAssortmentMutationVariables = Exact<{ assortment: IUpdateAssortmentInput; assortmentId: Scalars['ID']['input']; }>; + export type IUpdateAssortmentMutation = { updateAssortment: { _id: string } }; export type IUpdateAssortmentMediaTextsMutationVariables = Exact<{ @@ -6909,43 +5014,21 @@ export type IUpdateAssortmentMediaTextsMutationVariables = Exact<{ texts: Array; }>; -export type IUpdateAssortmentMediaTextsMutation = { - updateAssortmentMediaTexts: Array<{ - _id: string; - locale: any; - title?: string | null; - subtitle?: string | null; - }>; -}; + +export type IUpdateAssortmentMediaTextsMutation = { updateAssortmentMediaTexts: Array<{ _id: string, locale: any, title?: string | null, subtitle?: string | null }> }; export type IUpdateAssortmentTextsMutationVariables = Exact<{ assortmentId: Scalars['ID']['input']; texts: Array; }>; -export type IUpdateAssortmentTextsMutation = { - updateAssortmentTexts: Array<{ - _id: string; - locale: any; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - }>; -}; -export type IAddressFragment = { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - postalCode?: string | null; - city?: string | null; - countryCode?: string | null; - regionCode?: string | null; -}; +export type IUpdateAssortmentTextsMutation = { updateAssortmentTexts: Array<{ _id: string, locale: any, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null }> }; + +export type IAddressFragment = { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, postalCode?: string | null, city?: string | null, countryCode?: string | null, regionCode?: string | null }; + -export type IAddressFragmentVariables = Exact<{ [key: string]: never }>; +export type IAddressFragmentVariables = Exact<{ [key: string]: never; }>; export type IConfirmMediaUploadMutationVariables = Exact<{ mediaUploadTicketId: Scalars['ID']['input']; @@ -6953,691 +5036,77 @@ export type IConfirmMediaUploadMutationVariables = Exact<{ type: Scalars['String']['input']; }>; -export type IConfirmMediaUploadMutation = { - confirmMediaUpload: { - _id: string; - name: string; - type: string; - size: number; - url?: string | null; - }; -}; + +export type IConfirmMediaUploadMutation = { confirmMediaUpload: { _id: string, name: string, type: string, size: number, url?: string | null } }; export type IOrderAnalyticsQueryVariables = Exact<{ dateRange?: InputMaybe; }>; -export type IOrderAnalyticsQuery = { - orderStatistics: { - confirmCount: number; - confirmRecords: Array<{ - date: string; - count: number; - total: { amount: number; currencyCode: string }; - }>; - }; -}; + +export type IOrderAnalyticsQuery = { orderStatistics: { confirmCount: number, confirmRecords: Array<{ date: string, count: number, total: { amount: number, currencyCode: string } }> } }; export type IOrdersWithItemsQueryVariables = Exact<{ limit?: InputMaybe; includeCarts?: InputMaybe; }>; -export type IOrdersWithItemsQuery = { - orders: Array<{ - _id: string; - orderNumber?: string | null; - status?: IOrderStatus | null; - created?: any | null; - updated?: any | null; - ordered?: any | null; - confirmed?: any | null; - fulfilled?: any | null; - totalTax?: { amount: number; currencyCode: string } | null; - itemsTotal?: { amount: number; currencyCode: string } | null; - totalDiscount?: { amount: number; currencyCode: string } | null; - totalPayment?: { amount: number; currencyCode: string } | null; - totalDelivery?: { amount: number; currencyCode: string } | null; - user?: { - _id: string; - username?: string | null; - isGuest: boolean; - avatar?: { _id: string; url?: string | null } | null; - profile?: { - displayName?: string | null; - address?: { - firstName?: string | null; - lastName?: string | null; - } | null; - } | null; - } | null; - discounts?: Array<{ - _id: string; - trigger: IOrderDiscountTrigger; - code?: string | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - total: { - amount: number; - currencyCode: string; - isTaxable: boolean; - isNetPrice: boolean; - }; - discounted?: Array< - | { - _id: string; - orderDiscount: { - _id: string; - total: { - amount: number; - currencyCode: string; - isTaxable: boolean; - isNetPrice: boolean; - }; - }; - total: { - amount: number; - currencyCode: string; - isTaxable: boolean; - isNetPrice: boolean; - }; - } - | { - _id: string; - orderDiscount: { - _id: string; - total: { - amount: number; - currencyCode: string; - isTaxable: boolean; - isNetPrice: boolean; - }; - }; - total: { - amount: number; - currencyCode: string; - isTaxable: boolean; - isNetPrice: boolean; - }; - } - | { - _id: string; - orderDiscount: { - _id: string; - total: { - amount: number; - currencyCode: string; - isTaxable: boolean; - isNetPrice: boolean; - }; - }; - total: { - amount: number; - currencyCode: string; - isTaxable: boolean; - isNetPrice: boolean; - }; - } - | { - _id: string; - orderDiscount: { - _id: string; - total: { - amount: number; - currencyCode: string; - isTaxable: boolean; - isNetPrice: boolean; - }; - }; - total: { - amount: number; - currencyCode: string; - isTaxable: boolean; - isNetPrice: boolean; - }; - } - > | null; - }> | null; - payment?: - | { - _id: string; - status?: IOrderPaymentStatus | null; - paid?: any | null; - provider?: { - _id: string; - type?: IPaymentProviderType | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - } | null; - fee?: { currencyCode: string; amount: number } | null; - } - | { - _id: string; - status?: IOrderPaymentStatus | null; - paid?: any | null; - provider?: { - _id: string; - type?: IPaymentProviderType | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - } | null; - fee?: { currencyCode: string; amount: number } | null; - } - | { - _id: string; - status?: IOrderPaymentStatus | null; - paid?: any | null; - provider?: { - _id: string; - type?: IPaymentProviderType | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - } | null; - fee?: { currencyCode: string; amount: number } | null; - } - | null; - contact?: { - telNumber?: string | null; - emailAddress?: string | null; - } | null; - country?: { - _id: string; - isoCode?: string | null; - flagEmoji?: string | null; - name?: string | null; - } | null; - currency?: { - _id: string; - isoCode: string; - isActive?: boolean | null; - } | null; - billingAddress?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - postalCode?: string | null; - city?: string | null; - countryCode?: string | null; - regionCode?: string | null; - } | null; - delivery?: - | { - _id: string; - status?: IOrderDeliveryStatus | null; - delivered?: any | null; - activePickUpLocation?: { - _id: string; - name: string; - address?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - postalCode?: string | null; - city?: string | null; - countryCode?: string | null; - regionCode?: string | null; - } | null; - } | null; - provider?: - | { - _id: string; - created?: any | null; - updated?: any | null; - deleted?: any | null; - type?: IDeliveryProviderType | null; - configuration?: any | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - } - | { - _id: string; - created?: any | null; - updated?: any | null; - deleted?: any | null; - type?: IDeliveryProviderType | null; - configuration?: any | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - } - | null; - fee?: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - } | null; - discounts?: Array<{ - _id: string; - orderDiscount: { - _id: string; - trigger: IOrderDiscountTrigger; - code?: string | null; - order: { _id: string; orderNumber?: string | null }; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - total: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - }; - discounted?: Array< - | { - _id: string; - orderDiscount: { - _id: string; - trigger: IOrderDiscountTrigger; - code?: string | null; - order: { _id: string; orderNumber?: string | null }; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - total: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - }; - }; - } - | { - _id: string; - orderDiscount: { - _id: string; - trigger: IOrderDiscountTrigger; - code?: string | null; - order: { _id: string; orderNumber?: string | null }; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - total: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - }; - }; - } - | { - _id: string; - orderDiscount: { - _id: string; - trigger: IOrderDiscountTrigger; - code?: string | null; - order: { _id: string; orderNumber?: string | null }; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - total: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - }; - }; - } - | { - _id: string; - orderDiscount: { - _id: string; - trigger: IOrderDiscountTrigger; - code?: string | null; - order: { _id: string; orderNumber?: string | null }; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - total: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - }; - }; - } - > | null; - }; - }> | null; - } - | { - _id: string; - status?: IOrderDeliveryStatus | null; - delivered?: any | null; - address?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - postalCode?: string | null; - city?: string | null; - countryCode?: string | null; - regionCode?: string | null; - } | null; - provider?: - | { - _id: string; - created?: any | null; - updated?: any | null; - deleted?: any | null; - type?: IDeliveryProviderType | null; - configuration?: any | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - } - | { - _id: string; - created?: any | null; - updated?: any | null; - deleted?: any | null; - type?: IDeliveryProviderType | null; - configuration?: any | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - } - | null; - fee?: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - } | null; - discounts?: Array<{ - _id: string; - orderDiscount: { - _id: string; - trigger: IOrderDiscountTrigger; - code?: string | null; - order: { _id: string; orderNumber?: string | null }; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - total: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - }; - discounted?: Array< - | { - _id: string; - orderDiscount: { - _id: string; - trigger: IOrderDiscountTrigger; - code?: string | null; - order: { _id: string; orderNumber?: string | null }; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - total: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - }; - }; - } - | { - _id: string; - orderDiscount: { - _id: string; - trigger: IOrderDiscountTrigger; - code?: string | null; - order: { _id: string; orderNumber?: string | null }; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - total: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - }; - }; - } - | { - _id: string; - orderDiscount: { - _id: string; - trigger: IOrderDiscountTrigger; - code?: string | null; - order: { _id: string; orderNumber?: string | null }; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - total: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - }; - }; - } - | { - _id: string; - orderDiscount: { - _id: string; - trigger: IOrderDiscountTrigger; - code?: string | null; - order: { _id: string; orderNumber?: string | null }; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - total: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - }; - }; - } - > | null; - }; - }> | null; - } - | null; - total?: { isTaxable: boolean; amount: number; currencyCode: string } | null; - items?: Array<{ - _id: string; - quantity: number; - product: - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - brand?: string | null; - vendor?: string | null; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - brand?: string | null; - vendor?: string | null; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - brand?: string | null; - vendor?: string | null; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - brand?: string | null; - vendor?: string | null; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - brand?: string | null; - vendor?: string | null; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - }; - unitPrice?: { - amount: number; - isTaxable: boolean; - isNetPrice: boolean; - currencyCode: string; - } | null; - total?: { - amount: number; - isTaxable: boolean; - isNetPrice: boolean; - currencyCode: string; - } | null; - }> | null; - }>; -}; - -export type IShopStatusQueryVariables = Exact<{ [key: string]: never }>; - -export type IShopStatusQuery = { - countriesCount: number; - currenciesCount: number; - languagesCount: number; - productsCount: number; - assortmentsCount: number; - filtersCount: number; - deliveryProvidersCount: number; - paymentProvidersCount: number; -}; - -export type IShopInfoQueryVariables = Exact<{ [key: string]: never }>; - -export type IShopInfoQuery = { - shopInfo: { - _id: string; - version?: string | null; - language?: { - _id: string; - isoCode?: string | null; - name?: string | null; - } | null; - country?: { - _id: string; - isoCode?: string | null; - flagEmoji?: string | null; - name?: string | null; - defaultCurrency?: { _id: string; isoCode: string } | null; - } | null; - adminUiConfig: { - singleSignOnURL?: string | null; - productTags: Array; - assortmentTags: Array; - userTags: Array; - externalLinks: Array<{ - href?: string | null; - title?: string | null; - target?: IExternalLinkTarget | null; - }>; - customProperties: Array<{ entityName: string; inlineFragment: string }>; - }; - }; -}; - -export type ISystemRolesQueryVariables = Exact<{ [key: string]: never }>; - -export type ISystemRolesQuery = { - shopInfo: { _id: string; userRoles: Array }; -}; - -export type ICountryFragment = { - _id: string; - isoCode?: string | null; - isActive?: boolean | null; - isBase?: boolean | null; - defaultCurrency?: { _id: string; isoCode: string } | null; -}; - -export type ICountryFragmentVariables = Exact<{ [key: string]: never }>; + +export type IOrdersWithItemsQuery = { orders: Array<{ _id: string, orderNumber?: string | null, status?: IOrderStatus | null, created?: any | null, updated?: any | null, ordered?: any | null, confirmed?: any | null, fulfilled?: any | null, totalTax?: { amount: number, currencyCode: string } | null, itemsTotal?: { amount: number, currencyCode: string } | null, totalDiscount?: { amount: number, currencyCode: string } | null, totalPayment?: { amount: number, currencyCode: string } | null, totalDelivery?: { amount: number, currencyCode: string } | null, user?: { _id: string, username?: string | null, isGuest: boolean, avatar?: { _id: string, url?: string | null } | null, profile?: { displayName?: string | null, address?: { firstName?: string | null, lastName?: string | null } | null } | null } | null, discounts?: Array<{ _id: string, trigger: IOrderDiscountTrigger, code?: string | null, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean }, discounted?: Array< + | { _id: string, orderDiscount: { _id: string, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } }, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } } + | { _id: string, orderDiscount: { _id: string, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } }, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } } + | { _id: string, orderDiscount: { _id: string, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } }, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } } + | { _id: string, orderDiscount: { _id: string, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } }, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } } + > | null }> | null, payment?: + | { _id: string, status?: IOrderPaymentStatus | null, paid?: any | null, provider?: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } | null, fee?: { currencyCode: string, amount: number } | null } + | { _id: string, status?: IOrderPaymentStatus | null, paid?: any | null, provider?: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } | null, fee?: { currencyCode: string, amount: number } | null } + | { _id: string, status?: IOrderPaymentStatus | null, paid?: any | null, provider?: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } | null, fee?: { currencyCode: string, amount: number } | null } + | null, contact?: { telNumber?: string | null, emailAddress?: string | null } | null, country?: { _id: string, isoCode?: string | null, flagEmoji?: string | null, name?: string | null } | null, currency?: { _id: string, isoCode: string, isActive?: boolean | null } | null, billingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, postalCode?: string | null, city?: string | null, countryCode?: string | null, regionCode?: string | null } | null, delivery?: + | { _id: string, status?: IOrderDeliveryStatus | null, delivered?: any | null, activePickUpLocation?: { _id: string, name: string, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, postalCode?: string | null, city?: string | null, countryCode?: string | null, regionCode?: string | null } | null } | null, provider?: + | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, configuration?: any | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } + | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, configuration?: any | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } + | null, fee?: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } | null, discounts?: Array<{ _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string }, discounted?: Array< + | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } + | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } + | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } + | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } + > | null } }> | null } + | { _id: string, status?: IOrderDeliveryStatus | null, delivered?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, postalCode?: string | null, city?: string | null, countryCode?: string | null, regionCode?: string | null } | null, provider?: + | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, configuration?: any | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } + | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, configuration?: any | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } + | null, fee?: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } | null, discounts?: Array<{ _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string }, discounted?: Array< + | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } + | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } + | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } + | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } + > | null } }> | null } + | null, total?: { isTaxable: boolean, amount: number, currencyCode: string } | null, items?: Array<{ _id: string, quantity: number, product: + | { _id: string, texts?: { _id: string, slug?: string | null, brand?: string | null, vendor?: string | null, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, brand?: string | null, vendor?: string | null, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, brand?: string | null, vendor?: string | null, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, brand?: string | null, vendor?: string | null, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, brand?: string | null, vendor?: string | null, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + , unitPrice?: { amount: number, isTaxable: boolean, isNetPrice: boolean, currencyCode: string } | null, total?: { amount: number, isTaxable: boolean, isNetPrice: boolean, currencyCode: string } | null }> | null }> }; + +export type IShopStatusQueryVariables = Exact<{ [key: string]: never; }>; + + +export type IShopStatusQuery = { countriesCount: number, currenciesCount: number, languagesCount: number, productsCount: number, assortmentsCount: number, filtersCount: number, deliveryProvidersCount: number, paymentProvidersCount: number }; + +export type IShopInfoQueryVariables = Exact<{ [key: string]: never; }>; + + +export type IShopInfoQuery = { shopInfo: { _id: string, version?: string | null, language?: { _id: string, isoCode?: string | null, name?: string | null } | null, country?: { _id: string, isoCode?: string | null, flagEmoji?: string | null, name?: string | null, defaultCurrency?: { _id: string, isoCode: string } | null } | null, adminUiConfig: { singleSignOnURL?: string | null, productTags: Array, assortmentTags: Array, userTags: Array, externalLinks: Array<{ href?: string | null, title?: string | null, target?: IExternalLinkTarget | null }>, customProperties: Array<{ entityName: string, inlineFragment: string }> } } }; + +export type ISystemRolesQueryVariables = Exact<{ [key: string]: never; }>; + + +export type ISystemRolesQuery = { shopInfo: { _id: string, userRoles: Array } }; + +export type ICountryFragment = { _id: string, isoCode?: string | null, isActive?: boolean | null, isBase?: boolean | null, defaultCurrency?: { _id: string, isoCode: string } | null }; + + +export type ICountryFragmentVariables = Exact<{ [key: string]: never; }>; export type ICountriesQueryVariables = Exact<{ queryString?: InputMaybe; @@ -7647,97 +5116,49 @@ export type ICountriesQueryVariables = Exact<{ sort?: InputMaybe>; }>; -export type ICountriesQuery = { - countriesCount: number; - countries: Array<{ - _id: string; - isoCode?: string | null; - isActive?: boolean | null; - isBase?: boolean | null; - defaultCurrency?: { _id: string; isoCode: string } | null; - }>; -}; + +export type ICountriesQuery = { countriesCount: number, countries: Array<{ _id: string, isoCode?: string | null, isActive?: boolean | null, isBase?: boolean | null, defaultCurrency?: { _id: string, isoCode: string } | null }> }; export type ICountryQueryVariables = Exact<{ countryId: Scalars['ID']['input']; }>; -export type ICountryQuery = { - country?: { - _id: string; - isoCode?: string | null; - isActive?: boolean | null; - isBase?: boolean | null; - defaultCurrency?: { _id: string; isoCode: string } | null; - } | null; -}; + +export type ICountryQuery = { country?: { _id: string, isoCode?: string | null, isActive?: boolean | null, isBase?: boolean | null, defaultCurrency?: { _id: string, isoCode: string } | null } | null }; export type ICreateCountryMutationVariables = Exact<{ country: ICreateCountryInput; }>; -export type ICreateCountryMutation = { - createCountry: { - _id: string; - isoCode?: string | null; - isActive?: boolean | null; - isBase?: boolean | null; - defaultCurrency?: { _id: string; isoCode: string } | null; - }; -}; + +export type ICreateCountryMutation = { createCountry: { _id: string, isoCode?: string | null, isActive?: boolean | null, isBase?: boolean | null, defaultCurrency?: { _id: string, isoCode: string } | null } }; export type IRemoveCountryMutationVariables = Exact<{ countryId: Scalars['ID']['input']; }>; -export type IRemoveCountryMutation = { - removeCountry: { - _id: string; - isoCode?: string | null; - isActive?: boolean | null; - isBase?: boolean | null; - defaultCurrency?: { _id: string; isoCode: string } | null; - }; -}; + +export type IRemoveCountryMutation = { removeCountry: { _id: string, isoCode?: string | null, isActive?: boolean | null, isBase?: boolean | null, defaultCurrency?: { _id: string, isoCode: string } | null } }; export type IUpdateCountryMutationVariables = Exact<{ country: IUpdateCountryInput; countryId: Scalars['ID']['input']; }>; -export type IUpdateCountryMutation = { - updateCountry: { - _id: string; - isoCode?: string | null; - isActive?: boolean | null; - isBase?: boolean | null; - defaultCurrency?: { _id: string; isoCode: string } | null; - }; -}; -export type ICurrencyFragment = { - _id: string; - isoCode: string; - isActive?: boolean | null; - contractAddress?: string | null; - decimals?: number | null; -}; +export type IUpdateCountryMutation = { updateCountry: { _id: string, isoCode?: string | null, isActive?: boolean | null, isBase?: boolean | null, defaultCurrency?: { _id: string, isoCode: string } | null } }; + +export type ICurrencyFragment = { _id: string, isoCode: string, isActive?: boolean | null, contractAddress?: string | null, decimals?: number | null }; -export type ICurrencyFragmentVariables = Exact<{ [key: string]: never }>; + +export type ICurrencyFragmentVariables = Exact<{ [key: string]: never; }>; export type ICreateCurrencyMutationVariables = Exact<{ currency: ICreateCurrencyInput; }>; -export type ICreateCurrencyMutation = { - createCurrency: { - _id: string; - isoCode: string; - isActive?: boolean | null; - contractAddress?: string | null; - decimals?: number | null; - }; -}; + +export type ICreateCurrencyMutation = { createCurrency: { _id: string, isoCode: string, isActive?: boolean | null, contractAddress?: string | null, decimals?: number | null } }; export type ICurrenciesQueryVariables = Exact<{ queryString?: InputMaybe; @@ -7747,582 +5168,136 @@ export type ICurrenciesQueryVariables = Exact<{ sort?: InputMaybe>; }>; -export type ICurrenciesQuery = { - currenciesCount: number; - currencies: Array<{ - _id: string; - isoCode: string; - isActive?: boolean | null; - contractAddress?: string | null; - decimals?: number | null; - }>; -}; + +export type ICurrenciesQuery = { currenciesCount: number, currencies: Array<{ _id: string, isoCode: string, isActive?: boolean | null, contractAddress?: string | null, decimals?: number | null }> }; export type ICurrencyQueryVariables = Exact<{ currencyId: Scalars['ID']['input']; }>; -export type ICurrencyQuery = { - currency?: { - _id: string; - isoCode: string; - isActive?: boolean | null; - contractAddress?: string | null; - decimals?: number | null; - } | null; -}; + +export type ICurrencyQuery = { currency?: { _id: string, isoCode: string, isActive?: boolean | null, contractAddress?: string | null, decimals?: number | null } | null }; export type IRemoveCurrencyMutationVariables = Exact<{ currencyId: Scalars['ID']['input']; }>; -export type IRemoveCurrencyMutation = { - removeCurrency: { - _id: string; - isoCode: string; - isActive?: boolean | null; - contractAddress?: string | null; - decimals?: number | null; - }; -}; + +export type IRemoveCurrencyMutation = { removeCurrency: { _id: string, isoCode: string, isActive?: boolean | null, contractAddress?: string | null, decimals?: number | null } }; export type IUpdateCurrencyMutationVariables = Exact<{ currency: IUpdateCurrencyInput; currencyId: Scalars['ID']['input']; }>; -export type IUpdateCurrencyMutation = { - updateCurrency: { - _id: string; - isoCode: string; - isActive?: boolean | null; - contractAddress?: string | null; - decimals?: number | null; - }; -}; + +export type IUpdateCurrencyMutation = { updateCurrency: { _id: string, isoCode: string, isActive?: boolean | null, contractAddress?: string | null, decimals?: number | null } }; export type ICreateDeliveryProviderMutationVariables = Exact<{ deliveryProvider: ICreateDeliveryProviderInput; }>; -export type ICreateDeliveryProviderMutation = { - createDeliveryProvider: - | { - _id: string; - created?: any | null; - updated?: any | null; - deleted?: any | null; - type?: IDeliveryProviderType | null; - isActive?: boolean | null; - configuration?: any | null; - configurationError?: IDeliveryProviderError | null; - pickUpLocations: Array<{ - _id: string; - name: string; - address?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - postalCode?: string | null; - city?: string | null; - countryCode?: string | null; - regionCode?: string | null; - } | null; - }>; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - } - | { - _id: string; - created?: any | null; - updated?: any | null; - deleted?: any | null; - type?: IDeliveryProviderType | null; - isActive?: boolean | null; - configuration?: any | null; - configurationError?: IDeliveryProviderError | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - }; -}; + +export type ICreateDeliveryProviderMutation = { createDeliveryProvider: + | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, isActive?: boolean | null, configuration?: any | null, configurationError?: IDeliveryProviderError | null, pickUpLocations: Array<{ _id: string, name: string, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, postalCode?: string | null, city?: string | null, countryCode?: string | null, regionCode?: string | null } | null }>, interface?: { _id: string, label?: string | null, version?: string | null } | null } + | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, isActive?: boolean | null, configuration?: any | null, configurationError?: IDeliveryProviderError | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } + }; export type IDeliveryInterfacesQueryVariables = Exact<{ providerType?: InputMaybe; }>; -export type IDeliveryInterfacesQuery = { - deliveryInterfaces: Array<{ - _id: string; - label?: string | null; - value: string; - }>; -}; + +export type IDeliveryInterfacesQuery = { deliveryInterfaces: Array<{ _id: string, label?: string | null, value: string }> }; export type IDeliveryProviderQueryVariables = Exact<{ deliveryProviderId: Scalars['ID']['input']; }>; -export type IDeliveryProviderQuery = { - deliveryProvider?: - | { - _id: string; - created?: any | null; - updated?: any | null; - deleted?: any | null; - type?: IDeliveryProviderType | null; - isActive?: boolean | null; - configuration?: any | null; - configurationError?: IDeliveryProviderError | null; - pickUpLocations: Array<{ - _id: string; - name: string; - address?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - postalCode?: string | null; - city?: string | null; - countryCode?: string | null; - regionCode?: string | null; - } | null; - }>; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - } - | { - _id: string; - created?: any | null; - updated?: any | null; - deleted?: any | null; - type?: IDeliveryProviderType | null; - isActive?: boolean | null; - configuration?: any | null; - configurationError?: IDeliveryProviderError | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - } - | null; -}; - -export type IDeliveryProvidersTypeQueryVariables = Exact<{ - [key: string]: never; -}>; - -export type IDeliveryProvidersTypeQuery = { - deliveryProviderType?: { - options?: Array<{ value: string; label?: string | null }> | null; - } | null; -}; + +export type IDeliveryProviderQuery = { deliveryProvider?: + | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, isActive?: boolean | null, configuration?: any | null, configurationError?: IDeliveryProviderError | null, pickUpLocations: Array<{ _id: string, name: string, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, postalCode?: string | null, city?: string | null, countryCode?: string | null, regionCode?: string | null } | null }>, interface?: { _id: string, label?: string | null, version?: string | null } | null } + | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, isActive?: boolean | null, configuration?: any | null, configurationError?: IDeliveryProviderError | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } + | null }; + +export type IDeliveryProvidersTypeQueryVariables = Exact<{ [key: string]: never; }>; + + +export type IDeliveryProvidersTypeQuery = { deliveryProviderType?: { options?: Array<{ value: string, label?: string | null }> | null } | null }; export type IDeliveryProvidersQueryVariables = Exact<{ type?: InputMaybe; }>; -export type IDeliveryProvidersQuery = { - deliveryProvidersCount: number; - deliveryProviders: Array< - | { - _id: string; - created?: any | null; - updated?: any | null; - deleted?: any | null; - type?: IDeliveryProviderType | null; - isActive?: boolean | null; - configuration?: any | null; - configurationError?: IDeliveryProviderError | null; - pickUpLocations: Array<{ - _id: string; - name: string; - address?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - postalCode?: string | null; - city?: string | null; - countryCode?: string | null; - regionCode?: string | null; - } | null; - }>; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - } - | { - _id: string; - created?: any | null; - updated?: any | null; - deleted?: any | null; - type?: IDeliveryProviderType | null; - isActive?: boolean | null; - configuration?: any | null; - configurationError?: IDeliveryProviderError | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - } - >; -}; - -export type IOrderDeliveryStatusQueryVariables = Exact<{ - [key: string]: never; -}>; - -export type IOrderDeliveryStatusQuery = { - deliveryStatusType?: { - options?: Array<{ value: string; label?: string | null }> | null; - } | null; -}; + +export type IDeliveryProvidersQuery = { deliveryProvidersCount: number, deliveryProviders: Array< + | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, isActive?: boolean | null, configuration?: any | null, configurationError?: IDeliveryProviderError | null, pickUpLocations: Array<{ _id: string, name: string, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, postalCode?: string | null, city?: string | null, countryCode?: string | null, regionCode?: string | null } | null }>, interface?: { _id: string, label?: string | null, version?: string | null } | null } + | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, isActive?: boolean | null, configuration?: any | null, configurationError?: IDeliveryProviderError | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } + > }; + +export type IOrderDeliveryStatusQueryVariables = Exact<{ [key: string]: never; }>; + + +export type IOrderDeliveryStatusQuery = { deliveryStatusType?: { options?: Array<{ value: string, label?: string | null }> | null } | null }; export type IRemoveDeliveryProviderMutationVariables = Exact<{ deliveryProviderId: Scalars['ID']['input']; }>; -export type IRemoveDeliveryProviderMutation = { - removeDeliveryProvider: { _id: string } | { _id: string }; -}; + +export type IRemoveDeliveryProviderMutation = { removeDeliveryProvider: + | { _id: string } + | { _id: string } + }; export type IUpdateDeliveryProviderMutationVariables = Exact<{ deliveryProvider: IUpdateProviderInput; deliveryProviderId: Scalars['ID']['input']; }>; -export type IUpdateDeliveryProviderMutation = { - updateDeliveryProvider: - | { - _id: string; - created?: any | null; - updated?: any | null; - deleted?: any | null; - type?: IDeliveryProviderType | null; - isActive?: boolean | null; - configuration?: any | null; - configurationError?: IDeliveryProviderError | null; - pickUpLocations: Array<{ - _id: string; - name: string; - address?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - postalCode?: string | null; - city?: string | null; - countryCode?: string | null; - regionCode?: string | null; - } | null; - }>; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - } - | { - _id: string; - created?: any | null; - updated?: any | null; - deleted?: any | null; - type?: IDeliveryProviderType | null; - isActive?: boolean | null; - configuration?: any | null; - configurationError?: IDeliveryProviderError | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - }; -}; - -export type IEnrollmentDetailFragment = { - _id: string; - enrollmentNumber?: string | null; - updated?: any | null; - status: IEnrollmentStatus; - created: any; - expires?: any | null; - isExpired?: boolean | null; - country?: { _id: string; isoCode?: string | null } | null; - billingAddress?: { - addressLine?: string | null; - addressLine2?: string | null; - city?: string | null; - company?: string | null; - countryCode?: string | null; - firstName?: string | null; - lastName?: string | null; - postalCode?: string | null; - regionCode?: string | null; - } | null; - contact?: { emailAddress?: string | null; telNumber?: string | null } | null; - currency?: { - _id: string; - contractAddress?: string | null; - decimals?: number | null; - isActive?: boolean | null; - isoCode: string; - } | null; - delivery?: { - provider?: - | { - _id: string; - configuration?: any | null; - configurationError?: IDeliveryProviderError | null; - isActive?: boolean | null; - type?: IDeliveryProviderType | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - simulatedPrice?: { - amount: number; - currencyCode: string; - isNetPrice: boolean; - isTaxable: boolean; - } | null; - } - | { - _id: string; - configuration?: any | null; - configurationError?: IDeliveryProviderError | null; - isActive?: boolean | null; - type?: IDeliveryProviderType | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - simulatedPrice?: { - amount: number; - currencyCode: string; - isNetPrice: boolean; - isTaxable: boolean; - } | null; - } - | null; - } | null; - payment?: { - provider?: { - _id: string; - configuration?: any | null; - configurationError?: IPaymentProviderError | null; - isActive?: boolean | null; - type?: IPaymentProviderType | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - } | null; - } | null; - periods: Array<{ - end: any; - isTrial: boolean; - start: any; - order?: { _id: string } | null; - }>; - plan: { - quantity: number; - configuration?: Array<{ key: string; value: string }> | null; - product: { - _id: string; - texts?: { _id: string; title?: string | null } | null; - }; - }; - user: { - _id: string; - username?: string | null; - name: string; - avatar?: { _id: string; url?: string | null } | null; - }; -}; - -export type IEnrollmentDetailFragmentVariables = Exact<{ - [key: string]: never; -}>; - -export type IEnrollmentFragment = { - _id: string; - enrollmentNumber?: string | null; - updated?: any | null; - status: IEnrollmentStatus; - created: any; - expires?: any | null; - isExpired?: boolean | null; - country?: { _id: string; isoCode?: string | null } | null; - currency?: { _id: string; isoCode: string } | null; - periods: Array<{ start: any; end: any; isTrial: boolean }>; - payment?: { provider?: { _id: string } | null } | null; - delivery?: { provider?: { _id: string } | { _id: string } | null } | null; - plan: { - quantity: number; - product: { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - texts?: { _id: string; title?: string | null } | null; - }; - }; - user: { - _id: string; - username?: string | null; - name: string; - avatar?: { _id: string; url?: string | null } | null; - }; -}; - -export type IEnrollmentFragmentVariables = Exact<{ [key: string]: never }>; + +export type IUpdateDeliveryProviderMutation = { updateDeliveryProvider: + | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, isActive?: boolean | null, configuration?: any | null, configurationError?: IDeliveryProviderError | null, pickUpLocations: Array<{ _id: string, name: string, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, postalCode?: string | null, city?: string | null, countryCode?: string | null, regionCode?: string | null } | null }>, interface?: { _id: string, label?: string | null, version?: string | null } | null } + | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, isActive?: boolean | null, configuration?: any | null, configurationError?: IDeliveryProviderError | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } + }; + +export type IEnrollmentDetailFragment = { _id: string, enrollmentNumber?: string | null, updated?: any | null, status: IEnrollmentStatus, created: any, expires?: any | null, isExpired?: boolean | null, country?: { _id: string, isoCode?: string | null } | null, billingAddress?: { addressLine?: string | null, addressLine2?: string | null, city?: string | null, company?: string | null, countryCode?: string | null, firstName?: string | null, lastName?: string | null, postalCode?: string | null, regionCode?: string | null } | null, contact?: { emailAddress?: string | null, telNumber?: string | null } | null, currency?: { _id: string, contractAddress?: string | null, decimals?: number | null, isActive?: boolean | null, isoCode: string } | null, delivery?: { provider?: + | { _id: string, configuration?: any | null, configurationError?: IDeliveryProviderError | null, isActive?: boolean | null, type?: IDeliveryProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null, simulatedPrice?: { amount: number, currencyCode: string, isNetPrice: boolean, isTaxable: boolean } | null } + | { _id: string, configuration?: any | null, configurationError?: IDeliveryProviderError | null, isActive?: boolean | null, type?: IDeliveryProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null, simulatedPrice?: { amount: number, currencyCode: string, isNetPrice: boolean, isTaxable: boolean } | null } + | null } | null, payment?: { provider?: { _id: string, configuration?: any | null, configurationError?: IPaymentProviderError | null, isActive?: boolean | null, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } | null } | null, periods: Array<{ end: any, isTrial: boolean, start: any, order?: { _id: string } | null }>, plan: { quantity: number, configuration?: Array<{ key: string, value: string }> | null, product: { _id: string, texts?: { _id: string, title?: string | null } | null } }, user: { _id: string, username?: string | null, name: string, avatar?: { _id: string, url?: string | null } | null } }; + + +export type IEnrollmentDetailFragmentVariables = Exact<{ [key: string]: never; }>; + +export type IEnrollmentFragment = { _id: string, enrollmentNumber?: string | null, updated?: any | null, status: IEnrollmentStatus, created: any, expires?: any | null, isExpired?: boolean | null, country?: { _id: string, isoCode?: string | null } | null, currency?: { _id: string, isoCode: string } | null, periods: Array<{ start: any, end: any, isTrial: boolean }>, payment?: { provider?: { _id: string } | null } | null, delivery?: { provider?: + | { _id: string } + | { _id: string } + | null } | null, plan: { quantity: number, product: { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }>, texts?: { _id: string, title?: string | null } | null } }, user: { _id: string, username?: string | null, name: string, avatar?: { _id: string, url?: string | null } | null } }; + + +export type IEnrollmentFragmentVariables = Exact<{ [key: string]: never; }>; export type IActivateEnrollmentMutationVariables = Exact<{ enrollmentId: Scalars['ID']['input']; }>; -export type IActivateEnrollmentMutation = { - activateEnrollment: { _id: string }; -}; + +export type IActivateEnrollmentMutation = { activateEnrollment: { _id: string } }; export type IEnrollmentQueryVariables = Exact<{ enrollmentId: Scalars['ID']['input']; }>; -export type IEnrollmentQuery = { - enrollment?: { - _id: string; - enrollmentNumber?: string | null; - updated?: any | null; - status: IEnrollmentStatus; - created: any; - expires?: any | null; - isExpired?: boolean | null; - country?: { _id: string; isoCode?: string | null } | null; - billingAddress?: { - addressLine?: string | null; - addressLine2?: string | null; - city?: string | null; - company?: string | null; - countryCode?: string | null; - firstName?: string | null; - lastName?: string | null; - postalCode?: string | null; - regionCode?: string | null; - } | null; - contact?: { - emailAddress?: string | null; - telNumber?: string | null; - } | null; - currency?: { - _id: string; - contractAddress?: string | null; - decimals?: number | null; - isActive?: boolean | null; - isoCode: string; - } | null; - delivery?: { - provider?: - | { - _id: string; - configuration?: any | null; - configurationError?: IDeliveryProviderError | null; - isActive?: boolean | null; - type?: IDeliveryProviderType | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - simulatedPrice?: { - amount: number; - currencyCode: string; - isNetPrice: boolean; - isTaxable: boolean; - } | null; - } - | { - _id: string; - configuration?: any | null; - configurationError?: IDeliveryProviderError | null; - isActive?: boolean | null; - type?: IDeliveryProviderType | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - simulatedPrice?: { - amount: number; - currencyCode: string; - isNetPrice: boolean; - isTaxable: boolean; - } | null; - } - | null; - } | null; - payment?: { - provider?: { - _id: string; - configuration?: any | null; - configurationError?: IPaymentProviderError | null; - isActive?: boolean | null; - type?: IPaymentProviderType | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - } | null; - } | null; - periods: Array<{ - end: any; - isTrial: boolean; - start: any; - order?: { _id: string } | null; - }>; - plan: { - quantity: number; - configuration?: Array<{ key: string; value: string }> | null; - product: { - _id: string; - texts?: { _id: string; title?: string | null } | null; - }; - }; - user: { - _id: string; - username?: string | null; - name: string; - avatar?: { _id: string; url?: string | null } | null; - }; - } | null; -}; - -export type IEnrollmentStatusQueryVariables = Exact<{ [key: string]: never }>; - -export type IEnrollmentStatusQuery = { - enrollmentStatusTypes?: { - options?: Array<{ value: string; label?: string | null }> | null; - } | null; -}; + +export type IEnrollmentQuery = { enrollment?: { _id: string, enrollmentNumber?: string | null, updated?: any | null, status: IEnrollmentStatus, created: any, expires?: any | null, isExpired?: boolean | null, country?: { _id: string, isoCode?: string | null } | null, billingAddress?: { addressLine?: string | null, addressLine2?: string | null, city?: string | null, company?: string | null, countryCode?: string | null, firstName?: string | null, lastName?: string | null, postalCode?: string | null, regionCode?: string | null } | null, contact?: { emailAddress?: string | null, telNumber?: string | null } | null, currency?: { _id: string, contractAddress?: string | null, decimals?: number | null, isActive?: boolean | null, isoCode: string } | null, delivery?: { provider?: + | { _id: string, configuration?: any | null, configurationError?: IDeliveryProviderError | null, isActive?: boolean | null, type?: IDeliveryProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null, simulatedPrice?: { amount: number, currencyCode: string, isNetPrice: boolean, isTaxable: boolean } | null } + | { _id: string, configuration?: any | null, configurationError?: IDeliveryProviderError | null, isActive?: boolean | null, type?: IDeliveryProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null, simulatedPrice?: { amount: number, currencyCode: string, isNetPrice: boolean, isTaxable: boolean } | null } + | null } | null, payment?: { provider?: { _id: string, configuration?: any | null, configurationError?: IPaymentProviderError | null, isActive?: boolean | null, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } | null } | null, periods: Array<{ end: any, isTrial: boolean, start: any, order?: { _id: string } | null }>, plan: { quantity: number, configuration?: Array<{ key: string, value: string }> | null, product: { _id: string, texts?: { _id: string, title?: string | null } | null } }, user: { _id: string, username?: string | null, name: string, avatar?: { _id: string, url?: string | null } | null } } | null }; + +export type IEnrollmentStatusQueryVariables = Exact<{ [key: string]: never; }>; + + +export type IEnrollmentStatusQuery = { enrollmentStatusTypes?: { options?: Array<{ value: string, label?: string | null }> | null } | null }; export type IEnrollmentsQueryVariables = Exact<{ offset?: InputMaybe; @@ -8332,128 +5307,53 @@ export type IEnrollmentsQueryVariables = Exact<{ status?: InputMaybe>; }>; -export type IEnrollmentsQuery = { - enrollmentsCount: number; - enrollments: Array<{ - _id: string; - enrollmentNumber?: string | null; - updated?: any | null; - status: IEnrollmentStatus; - created: any; - expires?: any | null; - isExpired?: boolean | null; - country?: { _id: string; isoCode?: string | null } | null; - currency?: { _id: string; isoCode: string } | null; - periods: Array<{ start: any; end: any; isTrial: boolean }>; - payment?: { provider?: { _id: string } | null } | null; - delivery?: { provider?: { _id: string } | { _id: string } | null } | null; - plan: { - quantity: number; - product: { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - texts?: { _id: string; title?: string | null } | null; - }; - }; - user: { - _id: string; - username?: string | null; - name: string; - avatar?: { _id: string; url?: string | null } | null; - }; - }>; -}; + +export type IEnrollmentsQuery = { enrollmentsCount: number, enrollments: Array<{ _id: string, enrollmentNumber?: string | null, updated?: any | null, status: IEnrollmentStatus, created: any, expires?: any | null, isExpired?: boolean | null, country?: { _id: string, isoCode?: string | null } | null, currency?: { _id: string, isoCode: string } | null, periods: Array<{ start: any, end: any, isTrial: boolean }>, payment?: { provider?: { _id: string } | null } | null, delivery?: { provider?: + | { _id: string } + | { _id: string } + | null } | null, plan: { quantity: number, product: { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }>, texts?: { _id: string, title?: string | null } | null } }, user: { _id: string, username?: string | null, name: string, avatar?: { _id: string, url?: string | null } | null } }> }; export type ISendEnrollmentEmailMutationVariables = Exact<{ email: Scalars['String']['input']; }>; -export type ISendEnrollmentEmailMutation = { - sendEnrollmentEmail?: { success?: boolean | null } | null; -}; + +export type ISendEnrollmentEmailMutation = { sendEnrollmentEmail?: { success?: boolean | null } | null }; export type ITerminateEnrollmentMutationVariables = Exact<{ enrollmentId: Scalars['ID']['input']; }>; -export type ITerminateEnrollmentMutation = { - terminateEnrollment: { _id: string }; -}; + +export type ITerminateEnrollmentMutation = { terminateEnrollment: { _id: string } }; export type IUserEnrollmentsQueryVariables = Exact<{ userId: Scalars['ID']['input']; queryString?: InputMaybe; }>; -export type IUserEnrollmentsQuery = { - user?: { - _id: string; - enrollments: Array<{ - _id: string; - enrollmentNumber?: string | null; - updated?: any | null; - status: IEnrollmentStatus; - created: any; - expires?: any | null; - isExpired?: boolean | null; - country?: { _id: string; isoCode?: string | null } | null; - currency?: { _id: string; isoCode: string } | null; - periods: Array<{ start: any; end: any; isTrial: boolean }>; - payment?: { provider?: { _id: string } | null } | null; - delivery?: { provider?: { _id: string } | { _id: string } | null } | null; - plan: { - quantity: number; - product: { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - texts?: { _id: string; title?: string | null } | null; - }; - }; - user: { - _id: string; - username?: string | null; - name: string; - avatar?: { _id: string; url?: string | null } | null; - }; - }>; - } | null; -}; - -export type IEventFragment = { - _id: string; - type: string; - payload?: any | null; - created: any; -}; - -export type IEventFragmentVariables = Exact<{ [key: string]: never }>; + +export type IUserEnrollmentsQuery = { user?: { _id: string, enrollments: Array<{ _id: string, enrollmentNumber?: string | null, updated?: any | null, status: IEnrollmentStatus, created: any, expires?: any | null, isExpired?: boolean | null, country?: { _id: string, isoCode?: string | null } | null, currency?: { _id: string, isoCode: string } | null, periods: Array<{ start: any, end: any, isTrial: boolean }>, payment?: { provider?: { _id: string } | null } | null, delivery?: { provider?: + | { _id: string } + | { _id: string } + | null } | null, plan: { quantity: number, product: { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }>, texts?: { _id: string, title?: string | null } | null } }, user: { _id: string, username?: string | null, name: string, avatar?: { _id: string, url?: string | null } | null } }> } | null }; + +export type IEventFragment = { _id: string, type: string, payload?: any | null, created: any }; + + +export type IEventFragmentVariables = Exact<{ [key: string]: never; }>; export type IEventQueryVariables = Exact<{ eventId: Scalars['ID']['input']; }>; -export type IEventQuery = { - event?: { - _id: string; - type: string; - payload?: any | null; - created: any; - } | null; -}; -export type IEventsTypeQueryVariables = Exact<{ [key: string]: never }>; +export type IEventQuery = { event?: { _id: string, type: string, payload?: any | null, created: any } | null }; + +export type IEventsTypeQueryVariables = Exact<{ [key: string]: never; }>; -export type IEventsTypeQuery = { - eventTypes?: { - options?: Array<{ value: string; label: string }> | null; - } | null; -}; + +export type IEventsTypeQuery = { eventTypes?: { options?: Array<{ value: string, label: string }> | null } | null }; export type IEventsQueryVariables = Exact<{ types?: InputMaybe>; @@ -8464,84 +5364,31 @@ export type IEventsQueryVariables = Exact<{ created?: InputMaybe; }>; -export type IEventsQuery = { - eventsCount: number; - events: Array<{ - _id: string; - type: string; - payload?: any | null; - created: any; - }>; -}; -export type IFilterFragment = { - _id: string; - updated?: any | null; - created?: any | null; - key?: string | null; - isActive?: boolean | null; - type?: IFilterType | null; - options?: Array<{ - _id: string; - value?: string | null; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - locale: any; - } | null; - }> | null; -}; +export type IEventsQuery = { eventsCount: number, events: Array<{ _id: string, type: string, payload?: any | null, created: any }> }; -export type IFilterFragmentVariables = Exact<{ [key: string]: never }>; +export type IFilterFragment = { _id: string, updated?: any | null, created?: any | null, key?: string | null, isActive?: boolean | null, type?: IFilterType | null, options?: Array<{ _id: string, value?: string | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, locale: any } | null }> | null }; -export type IFilterOptionFragment = { - _id: string; - value?: string | null; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - locale: any; - } | null; -}; -export type IFilterOptionFragmentVariables = Exact<{ [key: string]: never }>; +export type IFilterFragmentVariables = Exact<{ [key: string]: never; }>; -export type IFilterTextsFragment = { - _id: string; - locale: any; - title?: string | null; - subtitle?: string | null; -}; +export type IFilterOptionFragment = { _id: string, value?: string | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, locale: any } | null }; + + +export type IFilterOptionFragmentVariables = Exact<{ [key: string]: never; }>; + +export type IFilterTextsFragment = { _id: string, locale: any, title?: string | null, subtitle?: string | null }; -export type IFilterTextsFragmentVariables = Exact<{ [key: string]: never }>; + +export type IFilterTextsFragmentVariables = Exact<{ [key: string]: never; }>; export type ICreateFilterMutationVariables = Exact<{ filter: ICreateFilterInput; texts: Array; }>; -export type ICreateFilterMutation = { - createFilter: { - _id: string; - updated?: any | null; - created?: any | null; - key?: string | null; - isActive?: boolean | null; - type?: IFilterType | null; - options?: Array<{ - _id: string; - value?: string | null; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - locale: any; - } | null; - }> | null; - }; -}; + +export type ICreateFilterMutation = { createFilter: { _id: string, updated?: any | null, created?: any | null, key?: string | null, isActive?: boolean | null, type?: IFilterType | null, options?: Array<{ _id: string, value?: string | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, locale: any } | null }> | null } }; export type ICreateFilterOptionMutationVariables = Exact<{ filterId: Scalars['ID']['input']; @@ -8549,69 +5396,28 @@ export type ICreateFilterOptionMutationVariables = Exact<{ texts?: InputMaybe>; }>; -export type ICreateFilterOptionMutation = { - createFilterOption: { _id: string }; -}; + +export type ICreateFilterOptionMutation = { createFilterOption: { _id: string } }; export type IFilterQueryVariables = Exact<{ filterId?: InputMaybe; }>; -export type IFilterQuery = { - filter?: { - _id: string; - updated?: any | null; - created?: any | null; - key?: string | null; - isActive?: boolean | null; - type?: IFilterType | null; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - locale: any; - } | null; - options?: Array<{ - _id: string; - value?: string | null; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - locale: any; - } | null; - }> | null; - } | null; -}; + +export type IFilterQuery = { filter?: { _id: string, updated?: any | null, created?: any | null, key?: string | null, isActive?: boolean | null, type?: IFilterType | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, locale: any } | null, options?: Array<{ _id: string, value?: string | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, locale: any } | null }> | null } | null }; export type IFilterOptionsQueryVariables = Exact<{ filterId?: InputMaybe; forceLocale?: InputMaybe; }>; -export type IFilterOptionsQuery = { - filter?: { - _id: string; - options?: Array<{ - _id: string; - value?: string | null; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - locale: any; - } | null; - }> | null; - } | null; -}; -export type IFilterTypesQueryVariables = Exact<{ [key: string]: never }>; +export type IFilterOptionsQuery = { filter?: { _id: string, options?: Array<{ _id: string, value?: string | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, locale: any } | null }> | null } | null }; -export type IFilterTypesQuery = { - filterTypes?: { - options?: Array<{ label: string; value: string }> | null; - } | null; -}; +export type IFilterTypesQueryVariables = Exact<{ [key: string]: never; }>; + + +export type IFilterTypesQuery = { filterTypes?: { options?: Array<{ label: string, value: string }> | null } | null }; export type IFiltersQueryVariables = Exact<{ queryString?: InputMaybe; @@ -8621,45 +5427,22 @@ export type IFiltersQueryVariables = Exact<{ sort?: InputMaybe>; }>; -export type IFiltersQuery = { - filtersCount: number; - filters: Array<{ - _id: string; - updated?: any | null; - created?: any | null; - key?: string | null; - isActive?: boolean | null; - type?: IFilterType | null; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - locale: any; - } | null; - options?: Array<{ - _id: string; - value?: string | null; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - locale: any; - } | null; - }> | null; - }>; -}; + +export type IFiltersQuery = { filtersCount: number, filters: Array<{ _id: string, updated?: any | null, created?: any | null, key?: string | null, isActive?: boolean | null, type?: IFilterType | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, locale: any } | null, options?: Array<{ _id: string, value?: string | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, locale: any } | null }> | null }> }; export type IFiltersCountQueryVariables = Exact<{ queryString?: InputMaybe; includeInactive?: InputMaybe; }>; + export type IFiltersCountQuery = { filtersCount: number }; export type IRemoveFilterMutationVariables = Exact<{ filterId: Scalars['ID']['input']; }>; + export type IRemoveFilterMutation = { removeFilter: { _id: string } }; export type IRemoveFilterOptionMutationVariables = Exact<{ @@ -8667,49 +5450,24 @@ export type IRemoveFilterOptionMutationVariables = Exact<{ filterOptionValue: Scalars['String']['input']; }>; -export type IRemoveFilterOptionMutation = { - removeFilterOption: { _id: string }; -}; + +export type IRemoveFilterOptionMutation = { removeFilterOption: { _id: string } }; export type ITranslatedFilterTextsQueryVariables = Exact<{ filterId: Scalars['ID']['input']; filterOptionValue?: InputMaybe; }>; -export type ITranslatedFilterTextsQuery = { - translatedFilterTexts: Array<{ - _id: string; - locale: any; - title?: string | null; - subtitle?: string | null; - }>; -}; + +export type ITranslatedFilterTextsQuery = { translatedFilterTexts: Array<{ _id: string, locale: any, title?: string | null, subtitle?: string | null }> }; export type IUpdateFilterMutationVariables = Exact<{ filter: IUpdateFilterInput; filterId: Scalars['ID']['input']; }>; -export type IUpdateFilterMutation = { - updateFilter: { - _id: string; - updated?: any | null; - created?: any | null; - key?: string | null; - isActive?: boolean | null; - type?: IFilterType | null; - options?: Array<{ - _id: string; - value?: string | null; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - locale: any; - } | null; - }> | null; - }; -}; + +export type IUpdateFilterMutation = { updateFilter: { _id: string, updated?: any | null, created?: any | null, key?: string | null, isActive?: boolean | null, type?: IFilterType | null, options?: Array<{ _id: string, value?: string | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, locale: any } | null }> | null } }; export type IUpdateFilterTextsMutationVariables = Exact<{ filterId: Scalars['ID']['input']; @@ -8717,52 +5475,27 @@ export type IUpdateFilterTextsMutationVariables = Exact<{ texts: Array; }>; -export type IUpdateFilterTextsMutation = { - updateFilterTexts: Array<{ - _id: string; - locale: any; - title?: string | null; - subtitle?: string | null; - }>; -}; -export type ILanguageFragment = { - _id: string; - isoCode?: string | null; - isActive?: boolean | null; - isBase?: boolean | null; - name?: string | null; -}; +export type IUpdateFilterTextsMutation = { updateFilterTexts: Array<{ _id: string, locale: any, title?: string | null, subtitle?: string | null }> }; -export type ILanguageFragmentVariables = Exact<{ [key: string]: never }>; +export type ILanguageFragment = { _id: string, isoCode?: string | null, isActive?: boolean | null, isBase?: boolean | null, name?: string | null }; + + +export type ILanguageFragmentVariables = Exact<{ [key: string]: never; }>; export type ICreateLanguageMutationVariables = Exact<{ language: ICreateLanguageInput; }>; -export type ICreateLanguageMutation = { - createLanguage: { - _id: string; - isoCode?: string | null; - isActive?: boolean | null; - isBase?: boolean | null; - name?: string | null; - }; -}; + +export type ICreateLanguageMutation = { createLanguage: { _id: string, isoCode?: string | null, isActive?: boolean | null, isBase?: boolean | null, name?: string | null } }; export type ILanguageQueryVariables = Exact<{ languageId: Scalars['ID']['input']; }>; -export type ILanguageQuery = { - language?: { - _id: string; - isoCode?: string | null; - isActive?: boolean | null; - isBase?: boolean | null; - name?: string | null; - } | null; -}; + +export type ILanguageQuery = { language?: { _id: string, isoCode?: string | null, isActive?: boolean | null, isBase?: boolean | null, name?: string | null } | null }; export type ILanguagesQueryVariables = Exact<{ queryString?: InputMaybe; @@ -8772,1277 +5505,127 @@ export type ILanguagesQueryVariables = Exact<{ sort?: InputMaybe>; }>; -export type ILanguagesQuery = { - languagesCount: number; - languages: Array<{ - _id: string; - isoCode?: string | null; - isActive?: boolean | null; - isBase?: boolean | null; - name?: string | null; - } | null>; -}; + +export type ILanguagesQuery = { languagesCount: number, languages: Array<{ _id: string, isoCode?: string | null, isActive?: boolean | null, isBase?: boolean | null, name?: string | null } | null> }; export type IRemoveLanguageMutationVariables = Exact<{ languageId: Scalars['ID']['input']; }>; -export type IRemoveLanguageMutation = { - removeLanguage: { - _id: string; - isoCode?: string | null; - isActive?: boolean | null; - isBase?: boolean | null; - name?: string | null; - }; -}; + +export type IRemoveLanguageMutation = { removeLanguage: { _id: string, isoCode?: string | null, isActive?: boolean | null, isBase?: boolean | null, name?: string | null } }; export type IUpdateLanguageMutationVariables = Exact<{ language: IUpdateLanguageInput; languageId: Scalars['ID']['input']; }>; -export type IUpdateLanguageMutation = { - updateLanguage: { - _id: string; - isoCode?: string | null; - isActive?: boolean | null; - isBase?: boolean | null; - name?: string | null; - }; -}; - -export type IOrderDetailFragment = { - _id: string; - orderNumber?: string | null; - status?: IOrderStatus | null; - created?: any | null; - updated?: any | null; - ordered?: any | null; - confirmed?: any | null; - fulfilled?: any | null; - totalTax?: { amount: number; currencyCode: string } | null; - itemsTotal?: { amount: number; currencyCode: string } | null; - totalDiscount?: { amount: number; currencyCode: string } | null; - totalPayment?: { amount: number; currencyCode: string } | null; - totalDelivery?: { amount: number; currencyCode: string } | null; - user?: { - _id: string; - username?: string | null; - isGuest: boolean; - avatar?: { _id: string; url?: string | null } | null; - profile?: { - displayName?: string | null; - address?: { firstName?: string | null; lastName?: string | null } | null; - } | null; - } | null; - discounts?: Array<{ - _id: string; - trigger: IOrderDiscountTrigger; - code?: string | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - total: { - amount: number; - currencyCode: string; - isTaxable: boolean; - isNetPrice: boolean; - }; - discounted?: Array< - | { - _id: string; - orderDiscount: { - _id: string; - total: { - amount: number; - currencyCode: string; - isTaxable: boolean; - isNetPrice: boolean; - }; - }; - total: { - amount: number; - currencyCode: string; - isTaxable: boolean; - isNetPrice: boolean; - }; - } - | { - _id: string; - orderDiscount: { - _id: string; - total: { - amount: number; - currencyCode: string; - isTaxable: boolean; - isNetPrice: boolean; - }; - }; - total: { - amount: number; - currencyCode: string; - isTaxable: boolean; - isNetPrice: boolean; - }; - } - | { - _id: string; - orderDiscount: { - _id: string; - total: { - amount: number; - currencyCode: string; - isTaxable: boolean; - isNetPrice: boolean; - }; - }; - total: { - amount: number; - currencyCode: string; - isTaxable: boolean; - isNetPrice: boolean; - }; - } - | { - _id: string; - orderDiscount: { - _id: string; - total: { - amount: number; - currencyCode: string; - isTaxable: boolean; - isNetPrice: boolean; - }; - }; - total: { - amount: number; - currencyCode: string; - isTaxable: boolean; - isNetPrice: boolean; - }; - } - > | null; - }> | null; - payment?: - | { - _id: string; - status?: IOrderPaymentStatus | null; - paid?: any | null; - provider?: { - _id: string; - type?: IPaymentProviderType | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - } | null; - fee?: { currencyCode: string; amount: number } | null; - } - | { - _id: string; - status?: IOrderPaymentStatus | null; - paid?: any | null; - provider?: { - _id: string; - type?: IPaymentProviderType | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - } | null; - fee?: { currencyCode: string; amount: number } | null; - } - | { - _id: string; - status?: IOrderPaymentStatus | null; - paid?: any | null; - provider?: { - _id: string; - type?: IPaymentProviderType | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - } | null; - fee?: { currencyCode: string; amount: number } | null; - } - | null; - contact?: { telNumber?: string | null; emailAddress?: string | null } | null; - country?: { - _id: string; - isoCode?: string | null; - flagEmoji?: string | null; - name?: string | null; - } | null; - currency?: { _id: string; isoCode: string; isActive?: boolean | null } | null; - billingAddress?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - postalCode?: string | null; - city?: string | null; - countryCode?: string | null; - regionCode?: string | null; - } | null; - delivery?: - | { - _id: string; - status?: IOrderDeliveryStatus | null; - delivered?: any | null; - activePickUpLocation?: { - _id: string; - name: string; - address?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - postalCode?: string | null; - city?: string | null; - countryCode?: string | null; - regionCode?: string | null; - } | null; - } | null; - provider?: - | { - _id: string; - created?: any | null; - updated?: any | null; - deleted?: any | null; - type?: IDeliveryProviderType | null; - configuration?: any | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - } - | { - _id: string; - created?: any | null; - updated?: any | null; - deleted?: any | null; - type?: IDeliveryProviderType | null; - configuration?: any | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - } - | null; - fee?: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - } | null; - discounts?: Array<{ - _id: string; - orderDiscount: { - _id: string; - trigger: IOrderDiscountTrigger; - code?: string | null; - order: { _id: string; orderNumber?: string | null }; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - total: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - }; - discounted?: Array< - | { - _id: string; - orderDiscount: { - _id: string; - trigger: IOrderDiscountTrigger; - code?: string | null; - order: { _id: string; orderNumber?: string | null }; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - total: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - }; - }; - } - | { - _id: string; - orderDiscount: { - _id: string; - trigger: IOrderDiscountTrigger; - code?: string | null; - order: { _id: string; orderNumber?: string | null }; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - total: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - }; - }; - } - | { - _id: string; - orderDiscount: { - _id: string; - trigger: IOrderDiscountTrigger; - code?: string | null; - order: { _id: string; orderNumber?: string | null }; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - total: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - }; - }; - } - | { - _id: string; - orderDiscount: { - _id: string; - trigger: IOrderDiscountTrigger; - code?: string | null; - order: { _id: string; orderNumber?: string | null }; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - total: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - }; - }; - } - > | null; - }; - }> | null; - } - | { - _id: string; - status?: IOrderDeliveryStatus | null; - delivered?: any | null; - address?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - postalCode?: string | null; - city?: string | null; - countryCode?: string | null; - regionCode?: string | null; - } | null; - provider?: - | { - _id: string; - created?: any | null; - updated?: any | null; - deleted?: any | null; - type?: IDeliveryProviderType | null; - configuration?: any | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - } - | { - _id: string; - created?: any | null; - updated?: any | null; - deleted?: any | null; - type?: IDeliveryProviderType | null; - configuration?: any | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - } - | null; - fee?: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - } | null; - discounts?: Array<{ - _id: string; - orderDiscount: { - _id: string; - trigger: IOrderDiscountTrigger; - code?: string | null; - order: { _id: string; orderNumber?: string | null }; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - total: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - }; - discounted?: Array< - | { - _id: string; - orderDiscount: { - _id: string; - trigger: IOrderDiscountTrigger; - code?: string | null; - order: { _id: string; orderNumber?: string | null }; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - total: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - }; - }; - } - | { - _id: string; - orderDiscount: { - _id: string; - trigger: IOrderDiscountTrigger; - code?: string | null; - order: { _id: string; orderNumber?: string | null }; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - total: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - }; - }; - } - | { - _id: string; - orderDiscount: { - _id: string; - trigger: IOrderDiscountTrigger; - code?: string | null; - order: { _id: string; orderNumber?: string | null }; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - total: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - }; - }; - } - | { - _id: string; - orderDiscount: { - _id: string; - trigger: IOrderDiscountTrigger; - code?: string | null; - order: { _id: string; orderNumber?: string | null }; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - total: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - }; - }; - } - > | null; - }; - }> | null; - } - | null; - total?: { isTaxable: boolean; amount: number; currencyCode: string } | null; - items?: Array<{ - _id: string; - quantity: number; - product: - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - brand?: string | null; - vendor?: string | null; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - brand?: string | null; - vendor?: string | null; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - brand?: string | null; - vendor?: string | null; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - brand?: string | null; - vendor?: string | null; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - brand?: string | null; - vendor?: string | null; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - }; - unitPrice?: { - amount: number; - isTaxable: boolean; - isNetPrice: boolean; - currencyCode: string; - } | null; - total?: { - amount: number; - isTaxable: boolean; - isNetPrice: boolean; - currencyCode: string; - } | null; - }> | null; -}; - -export type IOrderDetailFragmentVariables = Exact<{ [key: string]: never }>; - -export type IOrderFragment = { - _id: string; - status?: IOrderStatus | null; - created?: any | null; - updated?: any | null; - ordered?: any | null; - orderNumber?: string | null; - confirmed?: any | null; - fulfilled?: any | null; - contact?: { telNumber?: string | null; emailAddress?: string | null } | null; - total?: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - } | null; - user?: { - _id: string; - username?: string | null; - isGuest: boolean; - avatar?: { _id: string; url?: string | null } | null; - profile?: { - displayName?: string | null; - address?: { firstName?: string | null; lastName?: string | null } | null; - } | null; - } | null; -}; - -export type IOrderFragmentVariables = Exact<{ [key: string]: never }>; + +export type IUpdateLanguageMutation = { updateLanguage: { _id: string, isoCode?: string | null, isActive?: boolean | null, isBase?: boolean | null, name?: string | null } }; + +export type IOrderDetailFragment = { _id: string, orderNumber?: string | null, status?: IOrderStatus | null, created?: any | null, updated?: any | null, ordered?: any | null, confirmed?: any | null, fulfilled?: any | null, totalTax?: { amount: number, currencyCode: string } | null, itemsTotal?: { amount: number, currencyCode: string } | null, totalDiscount?: { amount: number, currencyCode: string } | null, totalPayment?: { amount: number, currencyCode: string } | null, totalDelivery?: { amount: number, currencyCode: string } | null, user?: { _id: string, username?: string | null, isGuest: boolean, avatar?: { _id: string, url?: string | null } | null, profile?: { displayName?: string | null, address?: { firstName?: string | null, lastName?: string | null } | null } | null } | null, discounts?: Array<{ _id: string, trigger: IOrderDiscountTrigger, code?: string | null, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean }, discounted?: Array< + | { _id: string, orderDiscount: { _id: string, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } }, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } } + | { _id: string, orderDiscount: { _id: string, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } }, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } } + | { _id: string, orderDiscount: { _id: string, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } }, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } } + | { _id: string, orderDiscount: { _id: string, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } }, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } } + > | null }> | null, payment?: + | { _id: string, status?: IOrderPaymentStatus | null, paid?: any | null, provider?: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } | null, fee?: { currencyCode: string, amount: number } | null } + | { _id: string, status?: IOrderPaymentStatus | null, paid?: any | null, provider?: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } | null, fee?: { currencyCode: string, amount: number } | null } + | { _id: string, status?: IOrderPaymentStatus | null, paid?: any | null, provider?: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } | null, fee?: { currencyCode: string, amount: number } | null } + | null, contact?: { telNumber?: string | null, emailAddress?: string | null } | null, country?: { _id: string, isoCode?: string | null, flagEmoji?: string | null, name?: string | null } | null, currency?: { _id: string, isoCode: string, isActive?: boolean | null } | null, billingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, postalCode?: string | null, city?: string | null, countryCode?: string | null, regionCode?: string | null } | null, delivery?: + | { _id: string, status?: IOrderDeliveryStatus | null, delivered?: any | null, activePickUpLocation?: { _id: string, name: string, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, postalCode?: string | null, city?: string | null, countryCode?: string | null, regionCode?: string | null } | null } | null, provider?: + | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, configuration?: any | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } + | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, configuration?: any | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } + | null, fee?: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } | null, discounts?: Array<{ _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string }, discounted?: Array< + | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } + | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } + | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } + | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } + > | null } }> | null } + | { _id: string, status?: IOrderDeliveryStatus | null, delivered?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, postalCode?: string | null, city?: string | null, countryCode?: string | null, regionCode?: string | null } | null, provider?: + | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, configuration?: any | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } + | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, configuration?: any | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } + | null, fee?: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } | null, discounts?: Array<{ _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string }, discounted?: Array< + | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } + | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } + | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } + | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } + > | null } }> | null } + | null, total?: { isTaxable: boolean, amount: number, currencyCode: string } | null, items?: Array<{ _id: string, quantity: number, product: + | { _id: string, texts?: { _id: string, slug?: string | null, brand?: string | null, vendor?: string | null, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, brand?: string | null, vendor?: string | null, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, brand?: string | null, vendor?: string | null, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, brand?: string | null, vendor?: string | null, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, brand?: string | null, vendor?: string | null, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + , unitPrice?: { amount: number, isTaxable: boolean, isNetPrice: boolean, currencyCode: string } | null, total?: { amount: number, isTaxable: boolean, isNetPrice: boolean, currencyCode: string } | null }> | null }; + + +export type IOrderDetailFragmentVariables = Exact<{ [key: string]: never; }>; + +export type IOrderFragment = { _id: string, status?: IOrderStatus | null, created?: any | null, updated?: any | null, ordered?: any | null, orderNumber?: string | null, confirmed?: any | null, fulfilled?: any | null, contact?: { telNumber?: string | null, emailAddress?: string | null } | null, total?: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } | null, user?: { _id: string, username?: string | null, isGuest: boolean, avatar?: { _id: string, url?: string | null } | null, profile?: { displayName?: string | null, address?: { firstName?: string | null, lastName?: string | null } | null } | null } | null }; + + +export type IOrderFragmentVariables = Exact<{ [key: string]: never; }>; export type IConfirmOrderMutationVariables = Exact<{ orderId: Scalars['ID']['input']; }>; + export type IConfirmOrderMutation = { confirmOrder: { _id: string } }; export type IDeliverOrderMutationVariables = Exact<{ orderId: Scalars['ID']['input']; }>; + export type IDeliverOrderMutation = { deliverOrder: { _id: string } }; export type IOrderQueryVariables = Exact<{ orderId: Scalars['ID']['input']; }>; -export type IOrderQuery = { - order?: { - _id: string; - orderNumber?: string | null; - status?: IOrderStatus | null; - created?: any | null; - updated?: any | null; - ordered?: any | null; - confirmed?: any | null; - fulfilled?: any | null; - totalTax?: { amount: number; currencyCode: string } | null; - itemsTotal?: { amount: number; currencyCode: string } | null; - totalDiscount?: { amount: number; currencyCode: string } | null; - totalPayment?: { amount: number; currencyCode: string } | null; - totalDelivery?: { amount: number; currencyCode: string } | null; - user?: { - _id: string; - username?: string | null; - isGuest: boolean; - avatar?: { _id: string; url?: string | null } | null; - profile?: { - displayName?: string | null; - address?: { - firstName?: string | null; - lastName?: string | null; - } | null; - } | null; - } | null; - discounts?: Array<{ - _id: string; - trigger: IOrderDiscountTrigger; - code?: string | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - total: { - amount: number; - currencyCode: string; - isTaxable: boolean; - isNetPrice: boolean; - }; - discounted?: Array< - | { - _id: string; - orderDiscount: { - _id: string; - total: { - amount: number; - currencyCode: string; - isTaxable: boolean; - isNetPrice: boolean; - }; - }; - total: { - amount: number; - currencyCode: string; - isTaxable: boolean; - isNetPrice: boolean; - }; - } - | { - _id: string; - orderDiscount: { - _id: string; - total: { - amount: number; - currencyCode: string; - isTaxable: boolean; - isNetPrice: boolean; - }; - }; - total: { - amount: number; - currencyCode: string; - isTaxable: boolean; - isNetPrice: boolean; - }; - } - | { - _id: string; - orderDiscount: { - _id: string; - total: { - amount: number; - currencyCode: string; - isTaxable: boolean; - isNetPrice: boolean; - }; - }; - total: { - amount: number; - currencyCode: string; - isTaxable: boolean; - isNetPrice: boolean; - }; - } - | { - _id: string; - orderDiscount: { - _id: string; - total: { - amount: number; - currencyCode: string; - isTaxable: boolean; - isNetPrice: boolean; - }; - }; - total: { - amount: number; - currencyCode: string; - isTaxable: boolean; - isNetPrice: boolean; - }; - } - > | null; - }> | null; - payment?: - | { - _id: string; - status?: IOrderPaymentStatus | null; - paid?: any | null; - provider?: { - _id: string; - type?: IPaymentProviderType | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - } | null; - fee?: { currencyCode: string; amount: number } | null; - } - | { - _id: string; - status?: IOrderPaymentStatus | null; - paid?: any | null; - provider?: { - _id: string; - type?: IPaymentProviderType | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - } | null; - fee?: { currencyCode: string; amount: number } | null; - } - | { - _id: string; - status?: IOrderPaymentStatus | null; - paid?: any | null; - provider?: { - _id: string; - type?: IPaymentProviderType | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - } | null; - fee?: { currencyCode: string; amount: number } | null; - } - | null; - contact?: { - telNumber?: string | null; - emailAddress?: string | null; - } | null; - country?: { - _id: string; - isoCode?: string | null; - flagEmoji?: string | null; - name?: string | null; - } | null; - currency?: { - _id: string; - isoCode: string; - isActive?: boolean | null; - } | null; - billingAddress?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - postalCode?: string | null; - city?: string | null; - countryCode?: string | null; - regionCode?: string | null; - } | null; - delivery?: - | { - _id: string; - status?: IOrderDeliveryStatus | null; - delivered?: any | null; - activePickUpLocation?: { - _id: string; - name: string; - address?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - postalCode?: string | null; - city?: string | null; - countryCode?: string | null; - regionCode?: string | null; - } | null; - } | null; - provider?: - | { - _id: string; - created?: any | null; - updated?: any | null; - deleted?: any | null; - type?: IDeliveryProviderType | null; - configuration?: any | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - } - | { - _id: string; - created?: any | null; - updated?: any | null; - deleted?: any | null; - type?: IDeliveryProviderType | null; - configuration?: any | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - } - | null; - fee?: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - } | null; - discounts?: Array<{ - _id: string; - orderDiscount: { - _id: string; - trigger: IOrderDiscountTrigger; - code?: string | null; - order: { _id: string; orderNumber?: string | null }; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - total: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - }; - discounted?: Array< - | { - _id: string; - orderDiscount: { - _id: string; - trigger: IOrderDiscountTrigger; - code?: string | null; - order: { _id: string; orderNumber?: string | null }; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - total: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - }; - }; - } - | { - _id: string; - orderDiscount: { - _id: string; - trigger: IOrderDiscountTrigger; - code?: string | null; - order: { _id: string; orderNumber?: string | null }; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - total: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - }; - }; - } - | { - _id: string; - orderDiscount: { - _id: string; - trigger: IOrderDiscountTrigger; - code?: string | null; - order: { _id: string; orderNumber?: string | null }; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - total: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - }; - }; - } - | { - _id: string; - orderDiscount: { - _id: string; - trigger: IOrderDiscountTrigger; - code?: string | null; - order: { _id: string; orderNumber?: string | null }; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - total: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - }; - }; - } - > | null; - }; - }> | null; - } - | { - _id: string; - status?: IOrderDeliveryStatus | null; - delivered?: any | null; - address?: { - firstName?: string | null; - lastName?: string | null; - company?: string | null; - addressLine?: string | null; - postalCode?: string | null; - city?: string | null; - countryCode?: string | null; - regionCode?: string | null; - } | null; - provider?: - | { - _id: string; - created?: any | null; - updated?: any | null; - deleted?: any | null; - type?: IDeliveryProviderType | null; - configuration?: any | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - } - | { - _id: string; - created?: any | null; - updated?: any | null; - deleted?: any | null; - type?: IDeliveryProviderType | null; - configuration?: any | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - } - | null; - fee?: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - } | null; - discounts?: Array<{ - _id: string; - orderDiscount: { - _id: string; - trigger: IOrderDiscountTrigger; - code?: string | null; - order: { _id: string; orderNumber?: string | null }; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - total: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - }; - discounted?: Array< - | { - _id: string; - orderDiscount: { - _id: string; - trigger: IOrderDiscountTrigger; - code?: string | null; - order: { _id: string; orderNumber?: string | null }; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - total: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - }; - }; - } - | { - _id: string; - orderDiscount: { - _id: string; - trigger: IOrderDiscountTrigger; - code?: string | null; - order: { _id: string; orderNumber?: string | null }; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - total: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - }; - }; - } - | { - _id: string; - orderDiscount: { - _id: string; - trigger: IOrderDiscountTrigger; - code?: string | null; - order: { _id: string; orderNumber?: string | null }; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - total: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - }; - }; - } - | { - _id: string; - orderDiscount: { - _id: string; - trigger: IOrderDiscountTrigger; - code?: string | null; - order: { _id: string; orderNumber?: string | null }; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - total: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - }; - }; - } - > | null; - }; - }> | null; - } - | null; - total?: { isTaxable: boolean; amount: number; currencyCode: string } | null; - items?: Array<{ - _id: string; - quantity: number; - product: - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - brand?: string | null; - vendor?: string | null; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - brand?: string | null; - vendor?: string | null; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - brand?: string | null; - vendor?: string | null; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - brand?: string | null; - vendor?: string | null; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - brand?: string | null; - vendor?: string | null; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - }; - unitPrice?: { - amount: number; - isTaxable: boolean; - isNetPrice: boolean; - currencyCode: string; - } | null; - total?: { - amount: number; - isTaxable: boolean; - isNetPrice: boolean; - currencyCode: string; - } | null; - }> | null; - } | null; -}; - -export type IOrderStatusQueryVariables = Exact<{ [key: string]: never }>; - -export type IOrderStatusQuery = { - orderStatusType?: { - options?: Array<{ value: string; label?: string | null }> | null; - } | null; -}; + +export type IOrderQuery = { order?: { _id: string, orderNumber?: string | null, status?: IOrderStatus | null, created?: any | null, updated?: any | null, ordered?: any | null, confirmed?: any | null, fulfilled?: any | null, totalTax?: { amount: number, currencyCode: string } | null, itemsTotal?: { amount: number, currencyCode: string } | null, totalDiscount?: { amount: number, currencyCode: string } | null, totalPayment?: { amount: number, currencyCode: string } | null, totalDelivery?: { amount: number, currencyCode: string } | null, user?: { _id: string, username?: string | null, isGuest: boolean, avatar?: { _id: string, url?: string | null } | null, profile?: { displayName?: string | null, address?: { firstName?: string | null, lastName?: string | null } | null } | null } | null, discounts?: Array<{ _id: string, trigger: IOrderDiscountTrigger, code?: string | null, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean }, discounted?: Array< + | { _id: string, orderDiscount: { _id: string, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } }, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } } + | { _id: string, orderDiscount: { _id: string, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } }, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } } + | { _id: string, orderDiscount: { _id: string, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } }, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } } + | { _id: string, orderDiscount: { _id: string, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } }, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } } + > | null }> | null, payment?: + | { _id: string, status?: IOrderPaymentStatus | null, paid?: any | null, provider?: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } | null, fee?: { currencyCode: string, amount: number } | null } + | { _id: string, status?: IOrderPaymentStatus | null, paid?: any | null, provider?: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } | null, fee?: { currencyCode: string, amount: number } | null } + | { _id: string, status?: IOrderPaymentStatus | null, paid?: any | null, provider?: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } | null, fee?: { currencyCode: string, amount: number } | null } + | null, contact?: { telNumber?: string | null, emailAddress?: string | null } | null, country?: { _id: string, isoCode?: string | null, flagEmoji?: string | null, name?: string | null } | null, currency?: { _id: string, isoCode: string, isActive?: boolean | null } | null, billingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, postalCode?: string | null, city?: string | null, countryCode?: string | null, regionCode?: string | null } | null, delivery?: + | { _id: string, status?: IOrderDeliveryStatus | null, delivered?: any | null, activePickUpLocation?: { _id: string, name: string, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, postalCode?: string | null, city?: string | null, countryCode?: string | null, regionCode?: string | null } | null } | null, provider?: + | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, configuration?: any | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } + | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, configuration?: any | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } + | null, fee?: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } | null, discounts?: Array<{ _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string }, discounted?: Array< + | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } + | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } + | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } + | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } + > | null } }> | null } + | { _id: string, status?: IOrderDeliveryStatus | null, delivered?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, postalCode?: string | null, city?: string | null, countryCode?: string | null, regionCode?: string | null } | null, provider?: + | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, configuration?: any | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } + | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, configuration?: any | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } + | null, fee?: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } | null, discounts?: Array<{ _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string }, discounted?: Array< + | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } + | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } + | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } + | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } + > | null } }> | null } + | null, total?: { isTaxable: boolean, amount: number, currencyCode: string } | null, items?: Array<{ _id: string, quantity: number, product: + | { _id: string, texts?: { _id: string, slug?: string | null, brand?: string | null, vendor?: string | null, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, brand?: string | null, vendor?: string | null, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, brand?: string | null, vendor?: string | null, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, brand?: string | null, vendor?: string | null, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, brand?: string | null, vendor?: string | null, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + , unitPrice?: { amount: number, isTaxable: boolean, isNetPrice: boolean, currencyCode: string } | null, total?: { amount: number, isTaxable: boolean, isNetPrice: boolean, currencyCode: string } | null }> | null } | null }; + +export type IOrderStatusQueryVariables = Exact<{ [key: string]: never; }>; + + +export type IOrderStatusQuery = { orderStatusType?: { options?: Array<{ value: string, label?: string | null }> | null } | null }; export type IOrdersQueryVariables = Exact<{ limit?: InputMaybe; @@ -10056,59 +5639,28 @@ export type IOrdersQueryVariables = Exact<{ status?: InputMaybe>; }>; -export type IOrdersQuery = { - ordersCount: number; - orders: Array<{ - _id: string; - status?: IOrderStatus | null; - created?: any | null; - updated?: any | null; - ordered?: any | null; - orderNumber?: string | null; - confirmed?: any | null; - fulfilled?: any | null; - contact?: { - telNumber?: string | null; - emailAddress?: string | null; - } | null; - total?: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - } | null; - user?: { - _id: string; - username?: string | null; - isGuest: boolean; - avatar?: { _id: string; url?: string | null } | null; - profile?: { - displayName?: string | null; - address?: { - firstName?: string | null; - lastName?: string | null; - } | null; - } | null; - } | null; - }>; -}; + +export type IOrdersQuery = { ordersCount: number, orders: Array<{ _id: string, status?: IOrderStatus | null, created?: any | null, updated?: any | null, ordered?: any | null, orderNumber?: string | null, confirmed?: any | null, fulfilled?: any | null, contact?: { telNumber?: string | null, emailAddress?: string | null } | null, total?: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } | null, user?: { _id: string, username?: string | null, isGuest: boolean, avatar?: { _id: string, url?: string | null } | null, profile?: { displayName?: string | null, address?: { firstName?: string | null, lastName?: string | null } | null } | null } | null }> }; export type IPayOrderMutationVariables = Exact<{ orderId: Scalars['ID']['input']; }>; + export type IPayOrderMutation = { payOrder: { _id: string } }; export type IRejectOrderMutationVariables = Exact<{ orderId: Scalars['ID']['input']; }>; + export type IRejectOrderMutation = { rejectOrder: { _id: string } }; export type IRemoveOrderMutationVariables = Exact<{ orderId: Scalars['ID']['input']; }>; + export type IRemoveOrderMutation = { removeOrder: { _id: string } }; export type IUserOrderQueryVariables = Exact<{ @@ -10118,279 +5670,77 @@ export type IUserOrderQueryVariables = Exact<{ includeCarts?: InputMaybe; }>; -export type IUserOrderQuery = { - user?: { - orders: Array<{ - _id: string; - status?: IOrderStatus | null; - created?: any | null; - updated?: any | null; - ordered?: any | null; - orderNumber?: string | null; - confirmed?: any | null; - fulfilled?: any | null; - contact?: { - telNumber?: string | null; - emailAddress?: string | null; - } | null; - total?: { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - currencyCode: string; - } | null; - user?: { - _id: string; - username?: string | null; - isGuest: boolean; - avatar?: { _id: string; url?: string | null } | null; - profile?: { - displayName?: string | null; - address?: { - firstName?: string | null; - lastName?: string | null; - } | null; - } | null; - } | null; - }>; - } | null; -}; - -export type IPaymentProviderFragment = { - _id: string; - created?: any | null; - updated?: any | null; - deleted?: any | null; - isActive?: boolean | null; - type?: IPaymentProviderType | null; - configuration?: any | null; - configurationError?: IPaymentProviderError | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; -}; - -export type IPaymentProviderFragmentVariables = Exact<{ [key: string]: never }>; + +export type IUserOrderQuery = { user?: { orders: Array<{ _id: string, status?: IOrderStatus | null, created?: any | null, updated?: any | null, ordered?: any | null, orderNumber?: string | null, confirmed?: any | null, fulfilled?: any | null, contact?: { telNumber?: string | null, emailAddress?: string | null } | null, total?: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } | null, user?: { _id: string, username?: string | null, isGuest: boolean, avatar?: { _id: string, url?: string | null } | null, profile?: { displayName?: string | null, address?: { firstName?: string | null, lastName?: string | null } | null } | null } | null }> } | null }; + +export type IPaymentProviderFragment = { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, isActive?: boolean | null, type?: IPaymentProviderType | null, configuration?: any | null, configurationError?: IPaymentProviderError | null, interface?: { _id: string, label?: string | null, version?: string | null } | null }; + + +export type IPaymentProviderFragmentVariables = Exact<{ [key: string]: never; }>; export type ICreatePaymentProviderMutationVariables = Exact<{ paymentProvider: ICreatePaymentProviderInput; }>; -export type ICreatePaymentProviderMutation = { - createPaymentProvider: { - _id: string; - created?: any | null; - updated?: any | null; - deleted?: any | null; - isActive?: boolean | null; - type?: IPaymentProviderType | null; - configuration?: any | null; - configurationError?: IPaymentProviderError | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - }; -}; + +export type ICreatePaymentProviderMutation = { createPaymentProvider: { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, isActive?: boolean | null, type?: IPaymentProviderType | null, configuration?: any | null, configurationError?: IPaymentProviderError | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }; export type IPaymentInterfacesQueryVariables = Exact<{ providerType?: InputMaybe; }>; -export type IPaymentInterfacesQuery = { - paymentInterfaces: Array<{ - _id: string; - label?: string | null; - value: string; - }>; -}; + +export type IPaymentInterfacesQuery = { paymentInterfaces: Array<{ _id: string, label?: string | null, value: string }> }; export type IPaymentProviderQueryVariables = Exact<{ paymentProviderId: Scalars['ID']['input']; }>; -export type IPaymentProviderQuery = { - paymentProvider?: { - _id: string; - created?: any | null; - updated?: any | null; - deleted?: any | null; - isActive?: boolean | null; - type?: IPaymentProviderType | null; - configuration?: any | null; - configurationError?: IPaymentProviderError | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - } | null; -}; -export type IPaymentProvidersTypeQueryVariables = Exact<{ - [key: string]: never; -}>; +export type IPaymentProviderQuery = { paymentProvider?: { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, isActive?: boolean | null, type?: IPaymentProviderType | null, configuration?: any | null, configurationError?: IPaymentProviderError | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } | null }; + +export type IPaymentProvidersTypeQueryVariables = Exact<{ [key: string]: never; }>; -export type IPaymentProvidersTypeQuery = { - paymentProviderType?: { - options?: Array<{ value: string; label?: string | null }> | null; - } | null; -}; + +export type IPaymentProvidersTypeQuery = { paymentProviderType?: { options?: Array<{ value: string, label?: string | null }> | null } | null }; export type IPaymentProvidersQueryVariables = Exact<{ type?: InputMaybe; }>; -export type IPaymentProvidersQuery = { - paymentProvidersCount: number; - paymentProviders: Array<{ - _id: string; - created?: any | null; - updated?: any | null; - deleted?: any | null; - isActive?: boolean | null; - type?: IPaymentProviderType | null; - configuration?: any | null; - configurationError?: IPaymentProviderError | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - }>; -}; -export type IOrderPaymentStatusQueryVariables = Exact<{ [key: string]: never }>; +export type IPaymentProvidersQuery = { paymentProvidersCount: number, paymentProviders: Array<{ _id: string, created?: any | null, updated?: any | null, deleted?: any | null, isActive?: boolean | null, type?: IPaymentProviderType | null, configuration?: any | null, configurationError?: IPaymentProviderError | null, interface?: { _id: string, label?: string | null, version?: string | null } | null }> }; -export type IOrderPaymentStatusQuery = { - paymentStatusTypes?: { - options?: Array<{ value: string; label?: string | null }> | null; - } | null; -}; +export type IOrderPaymentStatusQueryVariables = Exact<{ [key: string]: never; }>; + + +export type IOrderPaymentStatusQuery = { paymentStatusTypes?: { options?: Array<{ value: string, label?: string | null }> | null } | null }; export type IRemovePaymentProviderMutationVariables = Exact<{ paymentProviderId: Scalars['ID']['input']; }>; -export type IRemovePaymentProviderMutation = { - removePaymentProvider: { _id: string }; -}; + +export type IRemovePaymentProviderMutation = { removePaymentProvider: { _id: string } }; export type IUpdatePaymentProviderMutationVariables = Exact<{ paymentProvider: IUpdateProviderInput; paymentProviderId: Scalars['ID']['input']; }>; -export type IUpdatePaymentProviderMutation = { - updatePaymentProvider: { - _id: string; - created?: any | null; - updated?: any | null; - deleted?: any | null; - isActive?: boolean | null; - type?: IPaymentProviderType | null; - configuration?: any | null; - configurationError?: IPaymentProviderError | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - }; -}; - -export type IProductReviewDetailFragment = { - _id: string; - created?: any | null; - updated?: any | null; - deleted?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - upVote?: number | null; - downVote?: number | null; - voteReport?: number | null; - author: { - _id: string; - username?: string | null; - name: string; - isGuest: boolean; - profile?: { - displayName?: string | null; - address?: { firstName?: string | null; lastName?: string | null } | null; - } | null; - avatar?: { _id: string; url?: string | null } | null; - }; - product: - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - }; - ownVotes: Array<{ timestamp: any; type: IProductReviewVoteType }>; -}; - -export type IProductReviewDetailFragmentVariables = Exact<{ - [key: string]: never; -}>; + +export type IUpdatePaymentProviderMutation = { updatePaymentProvider: { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, isActive?: boolean | null, type?: IPaymentProviderType | null, configuration?: any | null, configurationError?: IPaymentProviderError | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }; + +export type IProductReviewDetailFragment = { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, rating?: number | null, title?: string | null, review?: string | null, upVote?: number | null, downVote?: number | null, voteReport?: number | null, author: { _id: string, username?: string | null, name: string, isGuest: boolean, profile?: { displayName?: string | null, address?: { firstName?: string | null, lastName?: string | null } | null } | null, avatar?: { _id: string, url?: string | null } | null }, product: + | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + , ownVotes: Array<{ timestamp: any, type: IProductReviewVoteType }> }; + + +export type IProductReviewDetailFragmentVariables = Exact<{ [key: string]: never; }>; export type IAddProductReviewVoteMutationVariables = Exact<{ productReviewId: Scalars['ID']['input']; @@ -10399,9 +5749,8 @@ export type IAddProductReviewVoteMutationVariables = Exact<{ forceLocale?: InputMaybe; }>; -export type IAddProductReviewVoteMutation = { - addProductReviewVote: { _id: string }; -}; + +export type IAddProductReviewVoteMutation = { addProductReviewVote: { _id: string } }; export type ICreateProductReviewMutationVariables = Exact<{ productId: Scalars['ID']['input']; @@ -10409,9 +5758,8 @@ export type ICreateProductReviewMutationVariables = Exact<{ forceLocale?: InputMaybe; }>; -export type ICreateProductReviewMutation = { - createProductReview: { _id: string }; -}; + +export type ICreateProductReviewMutation = { createProductReview: { _id: string } }; export type IProductReviewByProductQueryVariables = Exact<{ productId?: InputMaybe; @@ -10422,478 +5770,51 @@ export type IProductReviewByProductQueryVariables = Exact<{ forceLocale?: InputMaybe; }>; -export type IProductReviewByProductQuery = { - product?: - | { - _id: string; - reviewsCount: number; - reviews: Array<{ - _id: string; - created?: any | null; - updated?: any | null; - deleted?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - upVote?: number | null; - downVote?: number | null; - voteReport?: number | null; - author: { - _id: string; - username?: string | null; - name: string; - isGuest: boolean; - profile?: { - displayName?: string | null; - address?: { - firstName?: string | null; - lastName?: string | null; - } | null; - } | null; - avatar?: { _id: string; url?: string | null } | null; - }; - product: - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - }; - ownVotes: Array<{ timestamp: any; type: IProductReviewVoteType }>; - }>; - } - | { - _id: string; - reviewsCount: number; - reviews: Array<{ - _id: string; - created?: any | null; - updated?: any | null; - deleted?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - upVote?: number | null; - downVote?: number | null; - voteReport?: number | null; - author: { - _id: string; - username?: string | null; - name: string; - isGuest: boolean; - profile?: { - displayName?: string | null; - address?: { - firstName?: string | null; - lastName?: string | null; - } | null; - } | null; - avatar?: { _id: string; url?: string | null } | null; - }; - product: - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - }; - ownVotes: Array<{ timestamp: any; type: IProductReviewVoteType }>; - }>; - } - | { - _id: string; - reviewsCount: number; - reviews: Array<{ - _id: string; - created?: any | null; - updated?: any | null; - deleted?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - upVote?: number | null; - downVote?: number | null; - voteReport?: number | null; - author: { - _id: string; - username?: string | null; - name: string; - isGuest: boolean; - profile?: { - displayName?: string | null; - address?: { - firstName?: string | null; - lastName?: string | null; - } | null; - } | null; - avatar?: { _id: string; url?: string | null } | null; - }; - product: - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - }; - ownVotes: Array<{ timestamp: any; type: IProductReviewVoteType }>; - }>; - } - | { - _id: string; - reviewsCount: number; - reviews: Array<{ - _id: string; - created?: any | null; - updated?: any | null; - deleted?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - upVote?: number | null; - downVote?: number | null; - voteReport?: number | null; - author: { - _id: string; - username?: string | null; - name: string; - isGuest: boolean; - profile?: { - displayName?: string | null; - address?: { - firstName?: string | null; - lastName?: string | null; - } | null; - } | null; - avatar?: { _id: string; url?: string | null } | null; - }; - product: - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - }; - ownVotes: Array<{ timestamp: any; type: IProductReviewVoteType }>; - }>; - } - | { - _id: string; - reviewsCount: number; - reviews: Array<{ - _id: string; - created?: any | null; - updated?: any | null; - deleted?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - upVote?: number | null; - downVote?: number | null; - voteReport?: number | null; - author: { - _id: string; - username?: string | null; - name: string; - isGuest: boolean; - profile?: { - displayName?: string | null; - address?: { - firstName?: string | null; - lastName?: string | null; - } | null; - } | null; - avatar?: { _id: string; url?: string | null } | null; - }; - product: - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - }; - ownVotes: Array<{ timestamp: any; type: IProductReviewVoteType }>; - }>; - } - | null; -}; + +export type IProductReviewByProductQuery = { product?: + | { _id: string, reviewsCount: number, reviews: Array<{ _id: string, created?: any | null, updated?: any | null, deleted?: any | null, rating?: number | null, title?: string | null, review?: string | null, upVote?: number | null, downVote?: number | null, voteReport?: number | null, author: { _id: string, username?: string | null, name: string, isGuest: boolean, profile?: { displayName?: string | null, address?: { firstName?: string | null, lastName?: string | null } | null } | null, avatar?: { _id: string, url?: string | null } | null }, product: + | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + , ownVotes: Array<{ timestamp: any, type: IProductReviewVoteType }> }> } + | { _id: string, reviewsCount: number, reviews: Array<{ _id: string, created?: any | null, updated?: any | null, deleted?: any | null, rating?: number | null, title?: string | null, review?: string | null, upVote?: number | null, downVote?: number | null, voteReport?: number | null, author: { _id: string, username?: string | null, name: string, isGuest: boolean, profile?: { displayName?: string | null, address?: { firstName?: string | null, lastName?: string | null } | null } | null, avatar?: { _id: string, url?: string | null } | null }, product: + | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + , ownVotes: Array<{ timestamp: any, type: IProductReviewVoteType }> }> } + | { _id: string, reviewsCount: number, reviews: Array<{ _id: string, created?: any | null, updated?: any | null, deleted?: any | null, rating?: number | null, title?: string | null, review?: string | null, upVote?: number | null, downVote?: number | null, voteReport?: number | null, author: { _id: string, username?: string | null, name: string, isGuest: boolean, profile?: { displayName?: string | null, address?: { firstName?: string | null, lastName?: string | null } | null } | null, avatar?: { _id: string, url?: string | null } | null }, product: + | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + , ownVotes: Array<{ timestamp: any, type: IProductReviewVoteType }> }> } + | { _id: string, reviewsCount: number, reviews: Array<{ _id: string, created?: any | null, updated?: any | null, deleted?: any | null, rating?: number | null, title?: string | null, review?: string | null, upVote?: number | null, downVote?: number | null, voteReport?: number | null, author: { _id: string, username?: string | null, name: string, isGuest: boolean, profile?: { displayName?: string | null, address?: { firstName?: string | null, lastName?: string | null } | null } | null, avatar?: { _id: string, url?: string | null } | null }, product: + | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + , ownVotes: Array<{ timestamp: any, type: IProductReviewVoteType }> }> } + | { _id: string, reviewsCount: number, reviews: Array<{ _id: string, created?: any | null, updated?: any | null, deleted?: any | null, rating?: number | null, title?: string | null, review?: string | null, upVote?: number | null, downVote?: number | null, voteReport?: number | null, author: { _id: string, username?: string | null, name: string, isGuest: boolean, profile?: { displayName?: string | null, address?: { firstName?: string | null, lastName?: string | null } | null } | null, avatar?: { _id: string, url?: string | null } | null }, product: + | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + , ownVotes: Array<{ timestamp: any, type: IProductReviewVoteType }> }> } + | null }; export type IRemoveProductReviewMutationVariables = Exact<{ productReviewId: Scalars['ID']['input']; }>; -export type IRemoveProductReviewMutation = { - removeProductReview: { _id: string }; -}; + +export type IRemoveProductReviewMutation = { removeProductReview: { _id: string } }; export type IRemoveProductReviewVoteMutationVariables = Exact<{ productReviewId: Scalars['ID']['input']; @@ -10901,9 +5822,8 @@ export type IRemoveProductReviewVoteMutationVariables = Exact<{ forceLocale?: InputMaybe; }>; -export type IRemoveProductReviewVoteMutation = { - removeProductReviewVote: { _id: string }; -}; + +export type IRemoveProductReviewVoteMutation = { removeProductReviewVote: { _id: string } }; export type IUserProductReviewsQueryVariables = Exact<{ userId: Scalars['ID']['input']; @@ -10913,840 +5833,155 @@ export type IUserProductReviewsQueryVariables = Exact<{ forceLocale?: InputMaybe; }>; -export type IUserProductReviewsQuery = { - user?: { - _id: string; - reviewsCount: number; - reviews: Array<{ - _id: string; - created?: any | null; - updated?: any | null; - deleted?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - upVote?: number | null; - downVote?: number | null; - voteReport?: number | null; - product: - | { - _id: string; - sequence: number; - status: IProductStatus; - tags?: Array | null; - updated?: any | null; - published?: any | null; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - slug?: string | null; - description?: string | null; - vendor?: string | null; - brand?: string | null; - labels?: Array | null; - locale: any; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - proxies: Array< - | { __typename: 'BundleProduct' } - | { __typename: 'ConfigurableProduct' } - >; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - tags?: Array | null; - updated?: any | null; - published?: any | null; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - slug?: string | null; - description?: string | null; - vendor?: string | null; - brand?: string | null; - labels?: Array | null; - locale: any; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - tags?: Array | null; - updated?: any | null; - published?: any | null; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - slug?: string | null; - description?: string | null; - vendor?: string | null; - brand?: string | null; - labels?: Array | null; - locale: any; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - catalogPrice?: { amount: number; currencyCode: string } | null; - proxies: Array< - | { __typename: 'BundleProduct' } - | { __typename: 'ConfigurableProduct' } - >; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - tags?: Array | null; - updated?: any | null; - published?: any | null; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - slug?: string | null; - description?: string | null; - vendor?: string | null; - brand?: string | null; - labels?: Array | null; - locale: any; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - catalogPrice?: { amount: number; currencyCode: string } | null; - proxies: Array< - | { __typename: 'BundleProduct' } - | { __typename: 'ConfigurableProduct' } - >; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - tags?: Array | null; - updated?: any | null; - published?: any | null; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - slug?: string | null; - description?: string | null; - vendor?: string | null; - brand?: string | null; - labels?: Array | null; - locale: any; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - }; - author: { - _id: string; - username?: string | null; - name: string; - isGuest: boolean; - profile?: { - displayName?: string | null; - address?: { - firstName?: string | null; - lastName?: string | null; - } | null; - } | null; - avatar?: { _id: string; url?: string | null } | null; - }; - ownVotes: Array<{ timestamp: any; type: IProductReviewVoteType }>; - }>; - } | null; -}; - -export type IProductAssignmentFragment = { - _id: string; - vectors?: Array<{ - _id: string; - option?: { - _id: string; - value?: string | null; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - } | null; - } | null; - variation?: { - _id: string; - key?: string | null; - texts?: { _id: string; locale: any; title?: string | null } | null; - } | null; - }> | null; - product?: - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - slug?: string | null; - subtitle?: string | null; - } | null; - } - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - slug?: string | null; - subtitle?: string | null; - } | null; - } - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - slug?: string | null; - subtitle?: string | null; - } | null; - } - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - slug?: string | null; - subtitle?: string | null; - } | null; - } - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - slug?: string | null; - subtitle?: string | null; - } | null; - } - | null; -}; - -export type IProductAssignmentFragmentVariables = Exact<{ - [key: string]: never; -}>; - -type IProductBriefFragment_BundleProduct = { - _id: string; - sequence: number; - status: IProductStatus; - tags?: Array | null; - updated?: any | null; - published?: any | null; - proxies: Array< - { __typename: 'BundleProduct' } | { __typename: 'ConfigurableProduct' } - >; - texts?: { - _id: string; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - vendor?: string | null; - brand?: string | null; - labels?: Array | null; - locale: any; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; -}; - -type IProductBriefFragment_ConfigurableProduct = { - _id: string; - sequence: number; - status: IProductStatus; - tags?: Array | null; - updated?: any | null; - published?: any | null; - texts?: { - _id: string; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - vendor?: string | null; - brand?: string | null; - labels?: Array | null; - locale: any; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; -}; - -type IProductBriefFragment_PlanProduct = { - _id: string; - sequence: number; - status: IProductStatus; - tags?: Array | null; - updated?: any | null; - published?: any | null; - catalogPrice?: { amount: number; currencyCode: string } | null; - proxies: Array< - { __typename: 'BundleProduct' } | { __typename: 'ConfigurableProduct' } - >; - texts?: { - _id: string; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - vendor?: string | null; - brand?: string | null; - labels?: Array | null; - locale: any; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; -}; - -type IProductBriefFragment_SimpleProduct = { - _id: string; - sequence: number; - status: IProductStatus; - tags?: Array | null; - updated?: any | null; - published?: any | null; - catalogPrice?: { amount: number; currencyCode: string } | null; - proxies: Array< - { __typename: 'BundleProduct' } | { __typename: 'ConfigurableProduct' } - >; - texts?: { - _id: string; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - vendor?: string | null; - brand?: string | null; - labels?: Array | null; - locale: any; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; -}; - -type IProductBriefFragment_TokenizedProduct = { - _id: string; - sequence: number; - status: IProductStatus; - tags?: Array | null; - updated?: any | null; - published?: any | null; - texts?: { - _id: string; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - vendor?: string | null; - brand?: string | null; - labels?: Array | null; - locale: any; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; -}; + +export type IUserProductReviewsQuery = { user?: { _id: string, reviewsCount: number, reviews: Array<{ _id: string, created?: any | null, updated?: any | null, deleted?: any | null, rating?: number | null, title?: string | null, review?: string | null, upVote?: number | null, downVote?: number | null, voteReport?: number | null, product: + | { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, slug?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, proxies: Array< + | { __typename: 'BundleProduct' } + | { __typename: 'ConfigurableProduct' } + > } + | { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, slug?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, slug?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, catalogPrice?: { amount: number, currencyCode: string } | null, proxies: Array< + | { __typename: 'BundleProduct' } + | { __typename: 'ConfigurableProduct' } + > } + | { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, slug?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, catalogPrice?: { amount: number, currencyCode: string } | null, proxies: Array< + | { __typename: 'BundleProduct' } + | { __typename: 'ConfigurableProduct' } + > } + | { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, slug?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } + , author: { _id: string, username?: string | null, name: string, isGuest: boolean, profile?: { displayName?: string | null, address?: { firstName?: string | null, lastName?: string | null } | null } | null, avatar?: { _id: string, url?: string | null } | null }, ownVotes: Array<{ timestamp: any, type: IProductReviewVoteType }> }> } | null }; + +export type IProductAssignmentFragment = { _id: string, vectors?: Array<{ _id: string, option?: { _id: string, value?: string | null, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null } | null, variation?: { _id: string, key?: string | null, texts?: { _id: string, locale: any, title?: string | null } | null } | null }> | null, product?: + | { _id: string, texts?: { _id: string, title?: string | null, slug?: string | null, subtitle?: string | null } | null } + | { _id: string, texts?: { _id: string, title?: string | null, slug?: string | null, subtitle?: string | null } | null } + | { _id: string, texts?: { _id: string, title?: string | null, slug?: string | null, subtitle?: string | null } | null } + | { _id: string, texts?: { _id: string, title?: string | null, slug?: string | null, subtitle?: string | null } | null } + | { _id: string, texts?: { _id: string, title?: string | null, slug?: string | null, subtitle?: string | null } | null } + | null }; + + +export type IProductAssignmentFragmentVariables = Exact<{ [key: string]: never; }>; + +type IProductBriefFragment_BundleProduct = { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, proxies: Array< + | { __typename: 'BundleProduct' } + | { __typename: 'ConfigurableProduct' } + >, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> }; + +type IProductBriefFragment_ConfigurableProduct = { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> }; + +type IProductBriefFragment_PlanProduct = { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, catalogPrice?: { amount: number, currencyCode: string } | null, proxies: Array< + | { __typename: 'BundleProduct' } + | { __typename: 'ConfigurableProduct' } + >, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> }; + +type IProductBriefFragment_SimpleProduct = { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, catalogPrice?: { amount: number, currencyCode: string } | null, proxies: Array< + | { __typename: 'BundleProduct' } + | { __typename: 'ConfigurableProduct' } + >, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> }; + +type IProductBriefFragment_TokenizedProduct = { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> }; export type IProductBriefFragment = | IProductBriefFragment_BundleProduct | IProductBriefFragment_ConfigurableProduct | IProductBriefFragment_PlanProduct | IProductBriefFragment_SimpleProduct - | IProductBriefFragment_TokenizedProduct; - -export type IProductBriefFragmentVariables = Exact<{ [key: string]: never }>; - -export type IProductCatalogPriceFragment = { - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - maxQuantity?: number | null; - country: { - _id: string; - isoCode?: string | null; - name?: string | null; - flagEmoji?: string | null; - }; - currency: { _id: string; isoCode: string; isActive?: boolean | null }; -}; - -export type IProductCatalogPriceFragmentVariables = Exact<{ - [key: string]: never; -}>; - -type IProductDetailFragment_BundleProduct = { - _id: string; - sequence: number; - status: IProductStatus; - created?: any | null; - tags?: Array | null; - updated?: any | null; - published?: any | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - reviews: Array<{ - _id: string; - created?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - voteCount?: number | null; - author: { _id: string; username?: string | null; isGuest: boolean }; - ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; - }>; - siblings: Array< - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - >; -}; - -type IProductDetailFragment_ConfigurableProduct = { - _id: string; - sequence: number; - status: IProductStatus; - created?: any | null; - tags?: Array | null; - updated?: any | null; - published?: any | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - reviews: Array<{ - _id: string; - created?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - voteCount?: number | null; - author: { _id: string; username?: string | null; isGuest: boolean }; - ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; - }>; - siblings: Array< - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - >; -}; - -type IProductDetailFragment_PlanProduct = { - _id: string; - sequence: number; - status: IProductStatus; - created?: any | null; - tags?: Array | null; - updated?: any | null; - published?: any | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - reviews: Array<{ - _id: string; - created?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - voteCount?: number | null; - author: { _id: string; username?: string | null; isGuest: boolean }; - ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; - }>; - siblings: Array< - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - >; -}; - -type IProductDetailFragment_SimpleProduct = { - _id: string; - sequence: number; - status: IProductStatus; - created?: any | null; - tags?: Array | null; - updated?: any | null; - published?: any | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - reviews: Array<{ - _id: string; - created?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - voteCount?: number | null; - author: { _id: string; username?: string | null; isGuest: boolean }; - ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; - }>; - siblings: Array< - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - >; -}; - -type IProductDetailFragment_TokenizedProduct = { - _id: string; - sequence: number; - status: IProductStatus; - created?: any | null; - tags?: Array | null; - updated?: any | null; - published?: any | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - reviews: Array<{ - _id: string; - created?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - voteCount?: number | null; - author: { _id: string; username?: string | null; isGuest: boolean }; - ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; - }>; - siblings: Array< - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - >; -}; + | IProductBriefFragment_TokenizedProduct +; + + +export type IProductBriefFragmentVariables = Exact<{ [key: string]: never; }>; + +export type IProductCatalogPriceFragment = { isTaxable: boolean, isNetPrice: boolean, amount: number, maxQuantity?: number | null, country: { _id: string, isoCode?: string | null, name?: string | null, flagEmoji?: string | null }, currency: { _id: string, isoCode: string, isActive?: boolean | null } }; + + +export type IProductCatalogPriceFragmentVariables = Exact<{ [key: string]: never; }>; + +type IProductDetailFragment_BundleProduct = { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + > }; + +type IProductDetailFragment_ConfigurableProduct = { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + > }; + +type IProductDetailFragment_PlanProduct = { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + > }; + +type IProductDetailFragment_SimpleProduct = { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + > }; + +type IProductDetailFragment_TokenizedProduct = { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + > }; export type IProductDetailFragment = | IProductDetailFragment_BundleProduct | IProductDetailFragment_ConfigurableProduct | IProductDetailFragment_PlanProduct | IProductDetailFragment_SimpleProduct - | IProductDetailFragment_TokenizedProduct; + | IProductDetailFragment_TokenizedProduct +; -export type IProductDetailFragmentVariables = Exact<{ [key: string]: never }>; -export type IProductDimensionFragment = { - weight?: number | null; - length?: number | null; - width?: number | null; - height?: number | null; -}; +export type IProductDetailFragmentVariables = Exact<{ [key: string]: never; }>; -export type IProductDimensionFragmentVariables = Exact<{ - [key: string]: never; -}>; +export type IProductDimensionFragment = { weight?: number | null, length?: number | null, width?: number | null, height?: number | null }; -export type IProductMediaFragment = { - _id: string; - tags?: Array | null; - sortKey: number; - file?: { - _id: string; - name: string; - type: string; - size: number; - url?: string | null; - } | null; - texts?: { - _id: string; - locale: any; - title?: string | null; - subtitle?: string | null; - } | null; -}; -export type IProductMediaFragmentVariables = Exact<{ [key: string]: never }>; +export type IProductDimensionFragmentVariables = Exact<{ [key: string]: never; }>; -export type IProductMediaTextsFragment = { - _id: string; - locale: any; - title?: string | null; - subtitle?: string | null; -}; +export type IProductMediaFragment = { _id: string, tags?: Array | null, sortKey: number, file?: { _id: string, name: string, type: string, size: number, url?: string | null } | null, texts?: { _id: string, locale: any, title?: string | null, subtitle?: string | null } | null }; -export type IProductMediaTextsFragmentVariables = Exact<{ - [key: string]: never; -}>; -export type IProductPlanConfigurationFragment = { - usageCalculationType: IProductPlanUsageCalculationType; - billingInterval: IProductPlanConfigurationInterval; - trialInterval?: IProductPlanConfigurationInterval | null; - trialIntervalCount?: number | null; - billingIntervalCount?: number | null; -}; - -export type IProductPlanConfigurationFragmentVariables = Exact<{ - [key: string]: never; -}>; - -export type IProductTextsFragment = { - _id: string; - locale: any; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - vendor?: string | null; - brand?: string | null; - labels?: Array | null; -}; - -export type IProductTextsFragmentVariables = Exact<{ [key: string]: never }>; - -export type IProductVariationFragment = { - _id: string; - type?: IProductVariationType | null; - key?: string | null; - texts?: { - _id: string; - locale: any; - title?: string | null; - subtitle?: string | null; - } | null; - options?: Array<{ - _id: string; - value?: string | null; - texts?: { - _id: string; - locale: any; - title?: string | null; - subtitle?: string | null; - } | null; - }> | null; -}; - -export type IProductVariationFragmentVariables = Exact<{ - [key: string]: never; -}>; - -export type ITokenFragment = { - _id: string; - walletAddress?: string | null; - status: ITokenExportStatus; - quantity: number; - contractAddress?: string | null; - chainId?: string | null; - tokenSerialNumber?: string | null; - invalidatedDate?: any | null; - expiryDate?: any | null; - ercMetadata?: any | null; - accessKey: string; - isInvalidateable: boolean; -}; +export type IProductMediaFragmentVariables = Exact<{ [key: string]: never; }>; + +export type IProductMediaTextsFragment = { _id: string, locale: any, title?: string | null, subtitle?: string | null }; + + +export type IProductMediaTextsFragmentVariables = Exact<{ [key: string]: never; }>; + +export type IProductPlanConfigurationFragment = { usageCalculationType: IProductPlanUsageCalculationType, billingInterval: IProductPlanConfigurationInterval, trialInterval?: IProductPlanConfigurationInterval | null, trialIntervalCount?: number | null, billingIntervalCount?: number | null }; + + +export type IProductPlanConfigurationFragmentVariables = Exact<{ [key: string]: never; }>; + +export type IProductTextsFragment = { _id: string, locale: any, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null }; + -export type ITokenFragmentVariables = Exact<{ [key: string]: never }>; +export type IProductTextsFragmentVariables = Exact<{ [key: string]: never; }>; + +export type IProductVariationFragment = { _id: string, type?: IProductVariationType | null, key?: string | null, texts?: { _id: string, locale: any, title?: string | null, subtitle?: string | null } | null, options?: Array<{ _id: string, value?: string | null, texts?: { _id: string, locale: any, title?: string | null, subtitle?: string | null } | null }> | null }; + + +export type IProductVariationFragmentVariables = Exact<{ [key: string]: never; }>; + +export type ITokenFragment = { _id: string, walletAddress?: string | null, status: ITokenExportStatus, quantity: number, contractAddress?: string | null, chainId?: string | null, tokenSerialNumber?: string | null, invalidatedDate?: any | null, expiryDate?: any | null, ercMetadata?: any | null, accessKey: string, isInvalidateable: boolean, isCanceled?: boolean | null }; + + +export type ITokenFragmentVariables = Exact<{ [key: string]: never; }>; export type IAddProductAssignmentMutationVariables = Exact<{ proxyId: Scalars['ID']['input']; @@ -11754,406 +5989,80 @@ export type IAddProductAssignmentMutationVariables = Exact<{ vectors: Array; }>; -export type IAddProductAssignmentMutation = { - addProductAssignment: + +export type IAddProductAssignmentMutation = { addProductAssignment: | { _id: string } | { _id: string } | { _id: string } | { _id: string } - | { _id: string }; -}; + | { _id: string } + }; export type IPrepareProductMediaUploadMutationVariables = Exact<{ mediaName: Scalars['String']['input']; productId: Scalars['ID']['input']; }>; -export type IPrepareProductMediaUploadMutation = { - prepareProductMediaUpload: { _id: string; putURL: string; expires: any }; -}; + +export type IPrepareProductMediaUploadMutation = { prepareProductMediaUpload: { _id: string, putURL: string, expires: any } }; export type ICreateProductMutationVariables = Exact<{ product: ICreateProductInput; texts?: InputMaybe>; }>; -export type ICreateProductMutation = { - createProduct: - | { - _id: string; - sequence: number; - status: IProductStatus; - created?: any | null; - tags?: Array | null; - updated?: any | null; - published?: any | null; - texts?: { - _id: string; - locale: any; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - vendor?: string | null; - brand?: string | null; - labels?: Array | null; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - reviews: Array<{ - _id: string; - created?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - voteCount?: number | null; - author: { _id: string; username?: string | null; isGuest: boolean }; - ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; - }>; - siblings: Array< - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - >; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - created?: any | null; - tags?: Array | null; - updated?: any | null; - published?: any | null; - texts?: { - _id: string; - locale: any; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - vendor?: string | null; - brand?: string | null; - labels?: Array | null; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - reviews: Array<{ - _id: string; - created?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - voteCount?: number | null; - author: { _id: string; username?: string | null; isGuest: boolean }; - ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; - }>; - siblings: Array< - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - >; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - created?: any | null; - tags?: Array | null; - updated?: any | null; - published?: any | null; - texts?: { - _id: string; - locale: any; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - vendor?: string | null; - brand?: string | null; - labels?: Array | null; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - reviews: Array<{ - _id: string; - created?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - voteCount?: number | null; - author: { _id: string; username?: string | null; isGuest: boolean }; - ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; - }>; - siblings: Array< - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - >; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - created?: any | null; - tags?: Array | null; - updated?: any | null; - published?: any | null; - texts?: { - _id: string; - locale: any; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - vendor?: string | null; - brand?: string | null; - labels?: Array | null; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - reviews: Array<{ - _id: string; - created?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - voteCount?: number | null; - author: { _id: string; username?: string | null; isGuest: boolean }; - ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; - }>; - siblings: Array< - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - >; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - created?: any | null; - tags?: Array | null; - updated?: any | null; - published?: any | null; - texts?: { - _id: string; - locale: any; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - vendor?: string | null; - brand?: string | null; - labels?: Array | null; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - reviews: Array<{ - _id: string; - created?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - voteCount?: number | null; - author: { _id: string; username?: string | null; isGuest: boolean }; - ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; - }>; - siblings: Array< - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - >; - }; -}; + +export type ICreateProductMutation = { createProduct: + | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, locale: any, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + > } + | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, locale: any, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + > } + | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, locale: any, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + > } + | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, locale: any, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + > } + | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, locale: any, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + > } + }; export type ICreateProductBundleItemMutationVariables = Exact<{ productId: Scalars['ID']['input']; item: ICreateProductBundleItemInput; }>; -export type ICreateProductBundleItemMutation = { - createProductBundleItem: + +export type ICreateProductBundleItemMutation = { createProductBundleItem: | { _id: string } | { _id: string } | { _id: string } | { _id: string } - | { _id: string }; -}; + | { _id: string } + }; export type ICreateProductVariationMutationVariables = Exact<{ productId: Scalars['ID']['input']; @@ -12161,9 +6070,8 @@ export type ICreateProductVariationMutationVariables = Exact<{ texts?: InputMaybe>; }>; -export type ICreateProductVariationMutation = { - createProductVariation: { _id: string }; -}; + +export type ICreateProductVariationMutation = { createProductVariation: { _id: string } }; export type ICreateProductVariationOptionMutationVariables = Exact<{ productVariationId: Scalars['ID']['input']; @@ -12171,9 +6079,8 @@ export type ICreateProductVariationOptionMutationVariables = Exact<{ texts?: InputMaybe>; }>; -export type ICreateProductVariationOptionMutation = { - createProductVariationOption: { _id: string }; -}; + +export type ICreateProductVariationOptionMutation = { createProductVariationOption: { _id: string } }; export type IExportTokenMutationVariables = Exact<{ tokenId: Scalars['ID']['input']; @@ -12181,483 +6088,81 @@ export type IExportTokenMutationVariables = Exact<{ recipientWalletAddress: Scalars['String']['input']; }>; -export type IExportTokenMutation = { - exportToken: { - _id: string; - walletAddress?: string | null; - status: ITokenExportStatus; - quantity: number; - contractAddress?: string | null; - chainId?: string | null; - tokenSerialNumber?: string | null; - invalidatedDate?: any | null; - expiryDate?: any | null; - ercMetadata?: any | null; - accessKey: string; - isInvalidateable: boolean; - }; -}; + +export type IExportTokenMutation = { exportToken: { _id: string, walletAddress?: string | null, status: ITokenExportStatus, quantity: number, contractAddress?: string | null, chainId?: string | null, tokenSerialNumber?: string | null, invalidatedDate?: any | null, expiryDate?: any | null, ercMetadata?: any | null, accessKey: string, isInvalidateable: boolean, isCanceled?: boolean | null } }; export type IProductQueryVariables = Exact<{ productId?: InputMaybe; slug?: InputMaybe; }>; -export type IProductQuery = { - product?: - | { - _id: string; - sequence: number; - status: IProductStatus; - created?: any | null; - tags?: Array | null; - updated?: any | null; - published?: any | null; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - description?: string | null; - } | null; - proxies: Array< - | { __typename: 'BundleProduct' } - | { __typename: 'ConfigurableProduct' } - >; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - reviews: Array<{ - _id: string; - created?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - voteCount?: number | null; - author: { _id: string; username?: string | null; isGuest: boolean }; - ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; - }>; - siblings: Array< - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - >; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - created?: any | null; - tags?: Array | null; - updated?: any | null; - published?: any | null; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - reviews: Array<{ - _id: string; - created?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - voteCount?: number | null; - author: { _id: string; username?: string | null; isGuest: boolean }; - ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; - }>; - siblings: Array< - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - >; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - created?: any | null; - tags?: Array | null; - updated?: any | null; - published?: any | null; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - description?: string | null; - } | null; - proxies: Array< - | { __typename: 'BundleProduct' } - | { __typename: 'ConfigurableProduct' } - >; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - reviews: Array<{ - _id: string; - created?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - voteCount?: number | null; - author: { _id: string; username?: string | null; isGuest: boolean }; - ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; - }>; - siblings: Array< - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - >; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - created?: any | null; - tags?: Array | null; - updated?: any | null; - published?: any | null; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - description?: string | null; - } | null; - proxies: Array< - | { __typename: 'BundleProduct' } - | { __typename: 'ConfigurableProduct' } - >; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - reviews: Array<{ - _id: string; - created?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - voteCount?: number | null; - author: { _id: string; username?: string | null; isGuest: boolean }; - ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; - }>; - siblings: Array< - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - >; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - created?: any | null; - tags?: Array | null; - updated?: any | null; - published?: any | null; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - reviews: Array<{ - _id: string; - created?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - voteCount?: number | null; - author: { _id: string; username?: string | null; isGuest: boolean }; - ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; - }>; - siblings: Array< - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - >; - } - | null; -}; + +export type IProductQuery = { product?: + | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, description?: string | null } | null, proxies: Array< + | { __typename: 'BundleProduct' } + | { __typename: 'ConfigurableProduct' } + >, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + > } + | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, description?: string | null } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + > } + | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, description?: string | null } | null, proxies: Array< + | { __typename: 'BundleProduct' } + | { __typename: 'ConfigurableProduct' } + >, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + > } + | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, description?: string | null } | null, proxies: Array< + | { __typename: 'BundleProduct' } + | { __typename: 'ConfigurableProduct' } + >, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + > } + | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, description?: string | null } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + > } + | null }; export type IProductAssignmentsQueryVariables = Exact<{ productId?: InputMaybe; slug?: InputMaybe; }>; -export type IProductAssignmentsQuery = { - product?: + +export type IProductAssignmentsQuery = { product?: | { _id: string } - | { - _id: string; - texts?: { - _id: string; - subtitle?: string | null; - slug?: string | null; - title?: string | null; - } | null; - variations?: Array<{ - _id: string; - key?: string | null; - texts?: { _id: string; title?: string | null } | null; - options?: Array<{ - _id: string; - value?: string | null; - texts?: { _id: string; title?: string | null } | null; - }> | null; - }> | null; - assignments: Array<{ - _id: string; - vectors?: Array<{ - _id: string; - option?: { - _id: string; - value?: string | null; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - } | null; - } | null; - variation?: { - _id: string; - key?: string | null; - texts?: { - _id: string; - locale: any; - title?: string | null; - } | null; - } | null; - }> | null; - product?: - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - slug?: string | null; - subtitle?: string | null; - } | null; - } - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - slug?: string | null; - subtitle?: string | null; - } | null; - } - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - slug?: string | null; - subtitle?: string | null; - } | null; - } - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - slug?: string | null; - subtitle?: string | null; - } | null; - } - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - slug?: string | null; - subtitle?: string | null; - } | null; - } - | null; - }>; - } + | { _id: string, texts?: { _id: string, subtitle?: string | null, slug?: string | null, title?: string | null } | null, variations?: Array<{ _id: string, key?: string | null, texts?: { _id: string, title?: string | null } | null, options?: Array<{ _id: string, value?: string | null, texts?: { _id: string, title?: string | null } | null }> | null }> | null, assignments: Array<{ _id: string, vectors?: Array<{ _id: string, option?: { _id: string, value?: string | null, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null } | null, variation?: { _id: string, key?: string | null, texts?: { _id: string, locale: any, title?: string | null } | null } | null }> | null, product?: + | { _id: string, texts?: { _id: string, title?: string | null, slug?: string | null, subtitle?: string | null } | null } + | { _id: string, texts?: { _id: string, title?: string | null, slug?: string | null, subtitle?: string | null } | null } + | { _id: string, texts?: { _id: string, title?: string | null, slug?: string | null, subtitle?: string | null } | null } + | { _id: string, texts?: { _id: string, title?: string | null, slug?: string | null, subtitle?: string | null } | null } + | { _id: string, texts?: { _id: string, title?: string | null, slug?: string | null, subtitle?: string | null } | null } + | null }> } | { _id: string } | { _id: string } | { _id: string } - | null; -}; + | null }; export type IProductBundleItemsQueryVariables = Exact<{ productId?: InputMaybe; @@ -12665,327 +6170,69 @@ export type IProductBundleItemsQueryVariables = Exact<{ forceLocale?: InputMaybe; }>; -export type IProductBundleItemsQuery = { - product?: - | { - _id: string; - bundleItems?: Array<{ - quantity: number; - product: - | { - _id: string; - sequence: number; - status: IProductStatus; - tags?: Array | null; - updated?: any | null; - published?: any | null; - proxies: Array< - | { __typename: 'BundleProduct' } - | { __typename: 'ConfigurableProduct' } - >; - texts?: { - _id: string; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - vendor?: string | null; - brand?: string | null; - labels?: Array | null; - locale: any; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - tags?: Array | null; - updated?: any | null; - published?: any | null; - texts?: { - _id: string; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - vendor?: string | null; - brand?: string | null; - labels?: Array | null; - locale: any; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - tags?: Array | null; - updated?: any | null; - published?: any | null; - catalogPrice?: { amount: number; currencyCode: string } | null; - proxies: Array< - | { __typename: 'BundleProduct' } - | { __typename: 'ConfigurableProduct' } - >; - texts?: { - _id: string; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - vendor?: string | null; - brand?: string | null; - labels?: Array | null; - locale: any; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - tags?: Array | null; - updated?: any | null; - published?: any | null; - catalogPrice?: { amount: number; currencyCode: string } | null; - proxies: Array< - | { __typename: 'BundleProduct' } - | { __typename: 'ConfigurableProduct' } - >; - texts?: { - _id: string; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - vendor?: string | null; - brand?: string | null; - labels?: Array | null; - locale: any; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - tags?: Array | null; - updated?: any | null; - published?: any | null; - texts?: { - _id: string; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - vendor?: string | null; - brand?: string | null; - labels?: Array | null; - locale: any; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - }; - }> | null; - } + +export type IProductBundleItemsQuery = { product?: + | { _id: string, bundleItems?: Array<{ quantity: number, product: + | { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, proxies: Array< + | { __typename: 'BundleProduct' } + | { __typename: 'ConfigurableProduct' } + >, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, catalogPrice?: { amount: number, currencyCode: string } | null, proxies: Array< + | { __typename: 'BundleProduct' } + | { __typename: 'ConfigurableProduct' } + >, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, catalogPrice?: { amount: number, currencyCode: string } | null, proxies: Array< + | { __typename: 'BundleProduct' } + | { __typename: 'ConfigurableProduct' } + >, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } + }> | null } | { _id: string } | { _id: string } | { _id: string } | { _id: string } - | null; -}; + | null }; export type IProductCatalogPricesQueryVariables = Exact<{ productId: Scalars['ID']['input']; }>; -export type IProductCatalogPricesQuery = { - productCatalogPrices: Array<{ - isTaxable: boolean; - isNetPrice: boolean; - amount: number; - maxQuantity?: number | null; - country: { - _id: string; - isoCode?: string | null; - name?: string | null; - flagEmoji?: string | null; - }; - currency: { _id: string; isoCode: string; isActive?: boolean | null }; - }>; -}; + +export type IProductCatalogPricesQuery = { productCatalogPrices: Array<{ isTaxable: boolean, isNetPrice: boolean, amount: number, maxQuantity?: number | null, country: { _id: string, isoCode?: string | null, name?: string | null, flagEmoji?: string | null }, currency: { _id: string, isoCode: string, isActive?: boolean | null } }> }; export type IProductMediaQueryVariables = Exact<{ productId?: InputMaybe; slug?: InputMaybe; }>; -export type IProductMediaQuery = { - product?: - | { - _id: string; - media: Array<{ - _id: string; - tags?: Array | null; - sortKey: number; - file?: { - _id: string; - name: string; - type: string; - size: number; - url?: string | null; - } | null; - texts?: { - _id: string; - locale: any; - title?: string | null; - subtitle?: string | null; - } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - tags?: Array | null; - sortKey: number; - file?: { - _id: string; - name: string; - type: string; - size: number; - url?: string | null; - } | null; - texts?: { - _id: string; - locale: any; - title?: string | null; - subtitle?: string | null; - } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - tags?: Array | null; - sortKey: number; - file?: { - _id: string; - name: string; - type: string; - size: number; - url?: string | null; - } | null; - texts?: { - _id: string; - locale: any; - title?: string | null; - subtitle?: string | null; - } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - tags?: Array | null; - sortKey: number; - file?: { - _id: string; - name: string; - type: string; - size: number; - url?: string | null; - } | null; - texts?: { - _id: string; - locale: any; - title?: string | null; - subtitle?: string | null; - } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - tags?: Array | null; - sortKey: number; - file?: { - _id: string; - name: string; - type: string; - size: number; - url?: string | null; - } | null; - texts?: { - _id: string; - locale: any; - title?: string | null; - subtitle?: string | null; - } | null; - }>; - } - | null; -}; + +export type IProductMediaQuery = { product?: + | { _id: string, media: Array<{ _id: string, tags?: Array | null, sortKey: number, file?: { _id: string, name: string, type: string, size: number, url?: string | null } | null, texts?: { _id: string, locale: any, title?: string | null, subtitle?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, tags?: Array | null, sortKey: number, file?: { _id: string, name: string, type: string, size: number, url?: string | null } | null, texts?: { _id: string, locale: any, title?: string | null, subtitle?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, tags?: Array | null, sortKey: number, file?: { _id: string, name: string, type: string, size: number, url?: string | null } | null, texts?: { _id: string, locale: any, title?: string | null, subtitle?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, tags?: Array | null, sortKey: number, file?: { _id: string, name: string, type: string, size: number, url?: string | null } | null, texts?: { _id: string, locale: any, title?: string | null, subtitle?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, tags?: Array | null, sortKey: number, file?: { _id: string, name: string, type: string, size: number, url?: string | null } | null, texts?: { _id: string, locale: any, title?: string | null, subtitle?: string | null } | null }> } + | null }; export type IProductPlanQueryVariables = Exact<{ productId?: InputMaybe; slug?: InputMaybe; }>; -export type IProductPlanQuery = { - product?: + +export type IProductPlanQuery = { product?: | { _id: string } | { _id: string } - | { - _id: string; - plan?: { - usageCalculationType: IProductPlanUsageCalculationType; - billingInterval: IProductPlanConfigurationInterval; - trialInterval?: IProductPlanConfigurationInterval | null; - trialIntervalCount?: number | null; - billingIntervalCount?: number | null; - } | null; - } + | { _id: string, plan?: { usageCalculationType: IProductPlanUsageCalculationType, billingInterval: IProductPlanConfigurationInterval, trialInterval?: IProductPlanConfigurationInterval | null, trialIntervalCount?: number | null, billingIntervalCount?: number | null } | null } | { _id: string } | { _id: string } - | null; -}; + | null }; -export type IProductPlanConfigurationOptionsQueryVariables = Exact<{ - [key: string]: never; -}>; +export type IProductPlanConfigurationOptionsQueryVariables = Exact<{ [key: string]: never; }>; -export type IProductPlanConfigurationOptionsQuery = { - usageCalculationTypes?: { - options?: Array<{ value: string; label?: string | null }> | null; - } | null; - configurationIntervals?: { - options?: Array<{ value: string; label?: string | null }> | null; - } | null; -}; + +export type IProductPlanConfigurationOptionsQuery = { usageCalculationTypes?: { options?: Array<{ value: string, label?: string | null }> | null } | null, configurationIntervals?: { options?: Array<{ value: string, label?: string | null }> | null } | null }; export type IProductReviewsQueryVariables = Exact<{ queryString?: InputMaybe; @@ -12995,149 +6242,47 @@ export type IProductReviewsQueryVariables = Exact<{ forceLocale?: InputMaybe; }>; -export type IProductReviewsQuery = { - productReviews: Array<{ - _id: string; - created?: any | null; - updated?: any | null; - deleted?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - upVote?: number | null; - downVote?: number | null; - voteReport?: number | null; - author: { - _id: string; - username?: string | null; - name: string; - isGuest: boolean; - profile?: { - displayName?: string | null; - address?: { - firstName?: string | null; - lastName?: string | null; - } | null; - } | null; - avatar?: { _id: string; url?: string | null } | null; - }; - product: - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - title?: string | null; - subtitle?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - }; - ownVotes: Array<{ timestamp: any; type: IProductReviewVoteType }>; - }>; -}; + +export type IProductReviewsQuery = { productReviews: Array<{ _id: string, created?: any | null, updated?: any | null, deleted?: any | null, rating?: number | null, title?: string | null, review?: string | null, upVote?: number | null, downVote?: number | null, voteReport?: number | null, author: { _id: string, username?: string | null, name: string, isGuest: boolean, profile?: { displayName?: string | null, address?: { firstName?: string | null, lastName?: string | null } | null } | null, avatar?: { _id: string, url?: string | null } | null }, product: + | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + , ownVotes: Array<{ timestamp: any, type: IProductReviewVoteType }> }> }; export type IProductSupplyQueryVariables = Exact<{ productId?: InputMaybe; slug?: InputMaybe; }>; -export type IProductSupplyQuery = { - product?: + +export type IProductSupplyQuery = { product?: | { _id: string } | { _id: string } | { _id: string } - | { - _id: string; - dimensions?: { - weight?: number | null; - length?: number | null; - width?: number | null; - height?: number | null; - } | null; - } + | { _id: string, dimensions?: { weight?: number | null, length?: number | null, width?: number | null, height?: number | null } | null } | { _id: string } - | null; -}; + | null }; export type IProductTokenizationQueryVariables = Exact<{ productId?: InputMaybe; slug?: InputMaybe; }>; -export type IProductTokenizationQuery = { - product?: + +export type IProductTokenizationQuery = { product?: | { _id: string } | { _id: string } | { _id: string } | { _id: string } - | { - contractStandard?: ISmartContractStandard | null; - contractAddress?: string | null; - _id: string; - contractConfiguration?: { tokenId: string; supply: number } | null; - } - | null; -}; + | { contractStandard?: ISmartContractStandard | null, contractAddress?: string | null, _id: string, contractConfiguration?: { tokenId: string, supply: number } | null } + | null }; -export type IProductVariationTypeQueryVariables = Exact<{ - [key: string]: never; -}>; +export type IProductVariationTypeQueryVariables = Exact<{ [key: string]: never; }>; -export type IProductVariationTypeQuery = { - variationTypes?: { - options?: Array<{ value: string; label?: string | null }> | null; - } | null; -}; + +export type IProductVariationTypeQuery = { variationTypes?: { options?: Array<{ value: string, label?: string | null }> | null } | null }; export type IProductVariationsQueryVariables = Exact<{ productId?: InputMaybe; @@ -13145,53 +6290,28 @@ export type IProductVariationsQueryVariables = Exact<{ locale?: InputMaybe; }>; -export type IProductVariationsQuery = { - product?: + +export type IProductVariationsQuery = { product?: | { _id: string } - | { - _id: string; - variations?: Array<{ - _id: string; - type?: IProductVariationType | null; - key?: string | null; - texts?: { - _id: string; - locale: any; - title?: string | null; - subtitle?: string | null; - } | null; - options?: Array<{ - _id: string; - value?: string | null; - texts?: { - _id: string; - locale: any; - title?: string | null; - subtitle?: string | null; - } | null; - }> | null; - }> | null; - } + | { _id: string, variations?: Array<{ _id: string, type?: IProductVariationType | null, key?: string | null, texts?: { _id: string, locale: any, title?: string | null, subtitle?: string | null } | null, options?: Array<{ _id: string, value?: string | null, texts?: { _id: string, locale: any, title?: string | null, subtitle?: string | null } | null }> | null }> | null } | { _id: string } | { _id: string } | { _id: string } - | null; -}; + | null }; export type IProductWarehousingQueryVariables = Exact<{ productId?: InputMaybe; slug?: InputMaybe; }>; -export type IProductWarehousingQuery = { - product?: + +export type IProductWarehousingQuery = { product?: | { _id: string } | { _id: string } | { _id: string } - | { sku?: string | null; baseUnit?: string | null; _id: string } + | { sku?: string | null, baseUnit?: string | null, _id: string } | { _id: string } - | null; -}; + | null }; export type IProductsQueryVariables = Exact<{ queryString?: InputMaybe; @@ -13204,153 +6324,23 @@ export type IProductsQueryVariables = Exact<{ forceLocale?: InputMaybe; }>; -export type IProductsQuery = { - productsCount: number; - products: Array< - | { - _id: string; - sequence: number; - status: IProductStatus; - tags?: Array | null; - updated?: any | null; - published?: any | null; - proxies: Array< - | { __typename: 'BundleProduct' } - | { __typename: 'ConfigurableProduct' } - >; - texts?: { - _id: string; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - vendor?: string | null; - brand?: string | null; - labels?: Array | null; - locale: any; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - tags?: Array | null; - updated?: any | null; - published?: any | null; - texts?: { - _id: string; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - vendor?: string | null; - brand?: string | null; - labels?: Array | null; - locale: any; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - tags?: Array | null; - updated?: any | null; - published?: any | null; - catalogPrice?: { amount: number; currencyCode: string } | null; - proxies: Array< - | { __typename: 'BundleProduct' } - | { __typename: 'ConfigurableProduct' } - >; - texts?: { - _id: string; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - vendor?: string | null; - brand?: string | null; - labels?: Array | null; - locale: any; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - sku?: string | null; - baseUnit?: string | null; - _id: string; - sequence: number; - status: IProductStatus; - tags?: Array | null; - updated?: any | null; - published?: any | null; - dimensions?: { - weight?: number | null; - length?: number | null; - width?: number | null; - height?: number | null; - } | null; - catalogPrice?: { amount: number; currencyCode: string } | null; - proxies: Array< - | { __typename: 'BundleProduct' } - | { __typename: 'ConfigurableProduct' } - >; - texts?: { - _id: string; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - vendor?: string | null; - brand?: string | null; - labels?: Array | null; - locale: any; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - tags?: Array | null; - updated?: any | null; - published?: any | null; - texts?: { - _id: string; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - vendor?: string | null; - brand?: string | null; - labels?: Array | null; - locale: any; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - } - >; -}; + +export type IProductsQuery = { productsCount: number, products: Array< + | { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, proxies: Array< + | { __typename: 'BundleProduct' } + | { __typename: 'ConfigurableProduct' } + >, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, catalogPrice?: { amount: number, currencyCode: string } | null, proxies: Array< + | { __typename: 'BundleProduct' } + | { __typename: 'ConfigurableProduct' } + >, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } + | { sku?: string | null, baseUnit?: string | null, _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, dimensions?: { weight?: number | null, length?: number | null, width?: number | null, height?: number | null } | null, catalogPrice?: { amount: number, currencyCode: string } | null, proxies: Array< + | { __typename: 'BundleProduct' } + | { __typename: 'ConfigurableProduct' } + >, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } + > }; export type IProductsCountQueryVariables = Exact<{ queryString?: InputMaybe; @@ -13359,1458 +6349,323 @@ export type IProductsCountQueryVariables = Exact<{ includeDrafts?: InputMaybe; }>; + export type IProductsCountQuery = { productsCount: number }; export type IPublishProductMutationVariables = Exact<{ productId: Scalars['ID']['input']; }>; -export type IPublishProductMutation = { - publishProduct: - | { - _id: string; - sequence: number; - status: IProductStatus; - created?: any | null; - tags?: Array | null; - updated?: any | null; - published?: any | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - reviews: Array<{ - _id: string; - created?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - voteCount?: number | null; - author: { _id: string; username?: string | null; isGuest: boolean }; - ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; - }>; - siblings: Array< - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - >; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - created?: any | null; - tags?: Array | null; - updated?: any | null; - published?: any | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - reviews: Array<{ - _id: string; - created?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - voteCount?: number | null; - author: { _id: string; username?: string | null; isGuest: boolean }; - ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; - }>; - siblings: Array< - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - >; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - created?: any | null; - tags?: Array | null; - updated?: any | null; - published?: any | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - reviews: Array<{ - _id: string; - created?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - voteCount?: number | null; - author: { _id: string; username?: string | null; isGuest: boolean }; - ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; - }>; - siblings: Array< - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - >; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - created?: any | null; - tags?: Array | null; - updated?: any | null; - published?: any | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - reviews: Array<{ - _id: string; - created?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - voteCount?: number | null; - author: { _id: string; username?: string | null; isGuest: boolean }; - ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; - }>; - siblings: Array< - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - >; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - created?: any | null; - tags?: Array | null; - updated?: any | null; - published?: any | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - reviews: Array<{ - _id: string; - created?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - voteCount?: number | null; - author: { _id: string; username?: string | null; isGuest: boolean }; - ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; - }>; - siblings: Array< - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - >; - }; -}; + +export type IPublishProductMutation = { publishProduct: + | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + > } + | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + > } + | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + > } + | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + > } + | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + > } + }; export type IReOrderProductMediaMutationVariables = Exact<{ sortKeys: Array; }>; -export type IReOrderProductMediaMutation = { - reorderProductMedia: Array<{ _id: string }>; -}; + +export type IReOrderProductMediaMutation = { reorderProductMedia: Array<{ _id: string }> }; export type IRemoveBundleItemMutationVariables = Exact<{ productId: Scalars['ID']['input']; index: Scalars['Int']['input']; }>; -export type IRemoveBundleItemMutation = { - removeBundleItem: + +export type IRemoveBundleItemMutation = { removeBundleItem: | { _id: string } | { _id: string } | { _id: string } | { _id: string } - | { _id: string }; -}; + | { _id: string } + }; export type IRemoveProductMutationVariables = Exact<{ productId: Scalars['ID']['input']; }>; -export type IRemoveProductMutation = { - removeProduct: + +export type IRemoveProductMutation = { removeProduct: | { _id: string } | { _id: string } | { _id: string } | { _id: string } - | { _id: string }; -}; + | { _id: string } + }; export type IRemoveProductAssignmentMutationVariables = Exact<{ proxyId: Scalars['ID']['input']; vectors: Array; }>; -export type IRemoveProductAssignmentMutation = { - removeProductAssignment: + +export type IRemoveProductAssignmentMutation = { removeProductAssignment: | { _id: string } | { _id: string } | { _id: string } | { _id: string } - | { _id: string }; -}; + | { _id: string } + }; export type IRemoveProductMediaMutationVariables = Exact<{ productMediaId: Scalars['ID']['input']; }>; -export type IRemoveProductMediaMutation = { - removeProductMedia: { _id: string }; -}; + +export type IRemoveProductMediaMutation = { removeProductMedia: { _id: string } }; export type IRemoveProductVariationMutationVariables = Exact<{ productVariationId: Scalars['ID']['input']; }>; -export type IRemoveProductVariationMutation = { - removeProductVariation: { _id: string }; -}; + +export type IRemoveProductVariationMutation = { removeProductVariation: { _id: string } }; export type IRemoveProductVariationOptionMutationVariables = Exact<{ productVariationId: Scalars['ID']['input']; productVariationOptionValue: Scalars['String']['input']; }>; -export type IRemoveProductVariationOptionMutation = { - removeProductVariationOption: { _id: string }; -}; -export type ISmartContractStandardsQueryVariables = Exact<{ - [key: string]: never; -}>; +export type IRemoveProductVariationOptionMutation = { removeProductVariationOption: { _id: string } }; + +export type ISmartContractStandardsQueryVariables = Exact<{ [key: string]: never; }>; -export type ISmartContractStandardsQuery = { - smartContractStandards?: { - options?: Array<{ value: string; label: string }> | null; - } | null; -}; + +export type ISmartContractStandardsQuery = { smartContractStandards?: { options?: Array<{ value: string, label: string }> | null } | null }; export type ITranslatedProductMediaTextsQueryVariables = Exact<{ productMediaId: Scalars['ID']['input']; }>; -export type ITranslatedProductMediaTextsQuery = { - translatedProductMediaTexts: Array<{ - _id: string; - locale: any; - title?: string | null; - subtitle?: string | null; - }>; -}; + +export type ITranslatedProductMediaTextsQuery = { translatedProductMediaTexts: Array<{ _id: string, locale: any, title?: string | null, subtitle?: string | null }> }; export type ITranslatedProductTextsQueryVariables = Exact<{ productId: Scalars['ID']['input']; }>; -export type ITranslatedProductTextsQuery = { - translatedProductTexts: Array<{ - _id: string; - locale: any; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - vendor?: string | null; - brand?: string | null; - labels?: Array | null; - }>; -}; + +export type ITranslatedProductTextsQuery = { translatedProductTexts: Array<{ _id: string, locale: any, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null }> }; export type IUnpublishProductMutationVariables = Exact<{ productId: Scalars['ID']['input']; }>; -export type IUnpublishProductMutation = { - unpublishProduct: - | { - _id: string; - sequence: number; - status: IProductStatus; - created?: any | null; - tags?: Array | null; - updated?: any | null; - published?: any | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - reviews: Array<{ - _id: string; - created?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - voteCount?: number | null; - author: { _id: string; username?: string | null; isGuest: boolean }; - ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; - }>; - siblings: Array< - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - >; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - created?: any | null; - tags?: Array | null; - updated?: any | null; - published?: any | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - reviews: Array<{ - _id: string; - created?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - voteCount?: number | null; - author: { _id: string; username?: string | null; isGuest: boolean }; - ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; - }>; - siblings: Array< - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - >; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - created?: any | null; - tags?: Array | null; - updated?: any | null; - published?: any | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - reviews: Array<{ - _id: string; - created?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - voteCount?: number | null; - author: { _id: string; username?: string | null; isGuest: boolean }; - ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; - }>; - siblings: Array< - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - >; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - created?: any | null; - tags?: Array | null; - updated?: any | null; - published?: any | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - reviews: Array<{ - _id: string; - created?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - voteCount?: number | null; - author: { _id: string; username?: string | null; isGuest: boolean }; - ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; - }>; - siblings: Array< - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - >; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - created?: any | null; - tags?: Array | null; - updated?: any | null; - published?: any | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - reviews: Array<{ - _id: string; - created?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - voteCount?: number | null; - author: { _id: string; username?: string | null; isGuest: boolean }; - ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; - }>; - siblings: Array< - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - >; - }; -}; + +export type IUnpublishProductMutation = { unpublishProduct: + | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + > } + | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + > } + | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + > } + | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + > } + | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + > } + }; export type IUpdateProductMutationVariables = Exact<{ productId: Scalars['ID']['input']; product: IUpdateProductInput; }>; -export type IUpdateProductMutation = { - updateProduct?: - | { - _id: string; - sequence: number; - status: IProductStatus; - created?: any | null; - tags?: Array | null; - updated?: any | null; - published?: any | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - reviews: Array<{ - _id: string; - created?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - voteCount?: number | null; - author: { _id: string; username?: string | null; isGuest: boolean }; - ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; - }>; - siblings: Array< - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - >; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - created?: any | null; - tags?: Array | null; - updated?: any | null; - published?: any | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - reviews: Array<{ - _id: string; - created?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - voteCount?: number | null; - author: { _id: string; username?: string | null; isGuest: boolean }; - ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; - }>; - siblings: Array< - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - >; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - created?: any | null; - tags?: Array | null; - updated?: any | null; - published?: any | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - reviews: Array<{ - _id: string; - created?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - voteCount?: number | null; - author: { _id: string; username?: string | null; isGuest: boolean }; - ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; - }>; - siblings: Array< - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - >; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - created?: any | null; - tags?: Array | null; - updated?: any | null; - published?: any | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - reviews: Array<{ - _id: string; - created?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - voteCount?: number | null; - author: { _id: string; username?: string | null; isGuest: boolean }; - ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; - }>; - siblings: Array< - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - >; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - created?: any | null; - tags?: Array | null; - updated?: any | null; - published?: any | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - reviews: Array<{ - _id: string; - created?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - voteCount?: number | null; - author: { _id: string; username?: string | null; isGuest: boolean }; - ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; - }>; - siblings: Array< - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - >; - } - | null; -}; + +export type IUpdateProductMutation = { updateProduct?: + | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + > } + | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + > } + | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + > } + | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + > } + | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + > } + | null }; export type IUpdateProductCommerceMutationVariables = Exact<{ productId: Scalars['ID']['input']; commerce: IUpdateProductCommerceInput; }>; -export type IUpdateProductCommerceMutation = { - updateProductCommerce?: - | { - _id: string; - sequence: number; - status: IProductStatus; - created?: any | null; - tags?: Array | null; - updated?: any | null; - published?: any | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - reviews: Array<{ - _id: string; - created?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - voteCount?: number | null; - author: { _id: string; username?: string | null; isGuest: boolean }; - ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; - }>; - siblings: Array< - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - >; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - created?: any | null; - tags?: Array | null; - updated?: any | null; - published?: any | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - reviews: Array<{ - _id: string; - created?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - voteCount?: number | null; - author: { _id: string; username?: string | null; isGuest: boolean }; - ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; - }>; - siblings: Array< - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - >; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - created?: any | null; - tags?: Array | null; - updated?: any | null; - published?: any | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - reviews: Array<{ - _id: string; - created?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - voteCount?: number | null; - author: { _id: string; username?: string | null; isGuest: boolean }; - ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; - }>; - siblings: Array< - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - >; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - created?: any | null; - tags?: Array | null; - updated?: any | null; - published?: any | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - reviews: Array<{ - _id: string; - created?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - voteCount?: number | null; - author: { _id: string; username?: string | null; isGuest: boolean }; - ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; - }>; - siblings: Array< - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - >; - } - | { - _id: string; - sequence: number; - status: IProductStatus; - created?: any | null; - tags?: Array | null; - updated?: any | null; - published?: any | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - reviews: Array<{ - _id: string; - created?: any | null; - rating?: number | null; - title?: string | null; - review?: string | null; - voteCount?: number | null; - author: { _id: string; username?: string | null; isGuest: boolean }; - ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; - }>; - siblings: Array< - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - | { - _id: string; - media: Array<{ - _id: string; - file?: { _id: string; url?: string | null } | null; - }>; - } - >; - } - | null; -}; + +export type IUpdateProductCommerceMutation = { updateProductCommerce?: + | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + > } + | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + > } + | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + > } + | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + > } + | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } + > } + | null }; export type IUpdateProductMediaTextsMutationVariables = Exact<{ productMediaId: Scalars['ID']['input']; texts: Array; }>; -export type IUpdateProductMediaTextsMutation = { - updateProductMediaTexts: Array<{ - _id: string; - locale: any; - title?: string | null; - subtitle?: string | null; - }>; -}; + +export type IUpdateProductMediaTextsMutation = { updateProductMediaTexts: Array<{ _id: string, locale: any, title?: string | null, subtitle?: string | null }> }; export type IUpdateProductPlanMutationVariables = Exact<{ productId: Scalars['ID']['input']; plan: IUpdateProductPlanInput; }>; -export type IUpdateProductPlanMutation = { - updateProductPlan?: + +export type IUpdateProductPlanMutation = { updateProductPlan?: | { _id: string } | { _id: string } | { _id: string } | { _id: string } | { _id: string } - | null; -}; + | null }; export type IUpdateProductSupplyMutationVariables = Exact<{ productId: Scalars['ID']['input']; supply: IUpdateProductSupplyInput; }>; -export type IUpdateProductSupplyMutation = { - updateProductSupply?: + +export type IUpdateProductSupplyMutation = { updateProductSupply?: | { _id: string } | { _id: string } | { _id: string } - | { - _id: string; - dimensions?: { - weight?: number | null; - length?: number | null; - width?: number | null; - height?: number | null; - } | null; - } + | { _id: string, dimensions?: { weight?: number | null, length?: number | null, width?: number | null, height?: number | null } | null } | { _id: string } - | null; -}; + | null }; export type IUpdateProductTextsMutationVariables = Exact<{ productId: Scalars['ID']['input']; texts: Array; }>; -export type IUpdateProductTextsMutation = { - updateProductTexts: Array<{ - _id: string; - locale: any; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - vendor?: string | null; - brand?: string | null; - labels?: Array | null; - }>; -}; + +export type IUpdateProductTextsMutation = { updateProductTexts: Array<{ _id: string, locale: any, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null }> }; export type IUpdateProductTokenizationMutationVariables = Exact<{ productId: Scalars['ID']['input']; tokenization: IUpdateProductTokenizationInput; }>; -export type IUpdateProductTokenizationMutation = { - updateProductTokenization?: { _id: string } | null; -}; + +export type IUpdateProductTokenizationMutation = { updateProductTokenization?: { _id: string } | null }; export type IUpdateProductVariationTextsMutationVariables = Exact<{ productVariationId: Scalars['ID']['input']; @@ -14818,503 +6673,84 @@ export type IUpdateProductVariationTextsMutationVariables = Exact<{ texts: Array; }>; -export type IUpdateProductVariationTextsMutation = { - updateProductVariationTexts: Array<{ _id: string }>; -}; + +export type IUpdateProductVariationTextsMutation = { updateProductVariationTexts: Array<{ _id: string }> }; export type IUpdateProductWarehousingMutationVariables = Exact<{ productId: Scalars['ID']['input']; warehousing: IUpdateProductWarehousingInput; }>; -export type IUpdateProductWarehousingMutation = { - updateProductWarehousing?: + +export type IUpdateProductWarehousingMutation = { updateProductWarehousing?: | { _id: string } | { _id: string } | { _id: string } - | { sku?: string | null; baseUnit?: string | null; _id: string } + | { sku?: string | null, baseUnit?: string | null, _id: string } | { _id: string } - | null; -}; + | null }; export type IUserTokensQueryVariables = Exact<{ userId: Scalars['ID']['input']; forceLocale?: InputMaybe; }>; -export type IUserTokensQuery = { - user?: { - _id: string; - web3Addresses: Array<{ - address: string; - nonce?: number | null; - verified: boolean; - }>; - tokens: Array<{ - _id: string; - walletAddress?: string | null; - status: ITokenExportStatus; - quantity: number; - contractAddress?: string | null; - chainId?: string | null; - tokenSerialNumber?: string | null; - invalidatedDate?: any | null; - expiryDate?: any | null; - ercMetadata?: any | null; - accessKey: string; - isInvalidateable: boolean; - product: { - _id: string; - sequence: number; - status: IProductStatus; - tags?: Array | null; - updated?: any | null; - published?: any | null; - simulatedPrice?: { amount: number; currencyCode: string } | null; - texts?: { - _id: string; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - vendor?: string | null; - brand?: string | null; - labels?: Array | null; - locale: any; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - }; - }>; - } | null; -}; - -export type IQuotationDetailFragment = { - _id: string; - status: IQuotationStatus; - created: any; - expires?: any | null; - updated?: any | null; - isExpired?: boolean | null; - quotationNumber?: string | null; - fulfilled?: any | null; - rejected?: any | null; - user: { - _id: string; - username?: string | null; - name: string; - avatar?: { _id: string; url?: string | null } | null; - primaryEmail?: { verified: boolean; address: string } | null; - }; - configuration?: Array<{ key: string; value: string }> | null; - country?: { - _id: string; - isoCode?: string | null; - flagEmoji?: string | null; - name?: string | null; - } | null; - currency?: { _id: string; isoCode: string; isActive?: boolean | null } | null; - product: - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - }; -}; - -export type IQuotationDetailFragmentVariables = Exact<{ [key: string]: never }>; - -export type IQuotationFragment = { - _id: string; - status: IQuotationStatus; - created: any; - expires?: any | null; - updated?: any | null; - isExpired?: boolean | null; - quotationNumber?: string | null; - fulfilled?: any | null; - rejected?: any | null; - user: { - _id: string; - username?: string | null; - name: string; - avatar?: { _id: string; url?: string | null } | null; - primaryEmail?: { verified: boolean; address: string } | null; - }; - product: - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - }; - currency?: { - _id: string; - contractAddress?: string | null; - decimals?: number | null; - isoCode: string; - } | null; -}; - -export type IQuotationFragmentVariables = Exact<{ [key: string]: never }>; + +export type IUserTokensQuery = { user?: { _id: string, web3Addresses: Array<{ address: string, nonce?: number | null, verified: boolean }>, tokens: Array<{ _id: string, walletAddress?: string | null, status: ITokenExportStatus, quantity: number, contractAddress?: string | null, chainId?: string | null, tokenSerialNumber?: string | null, invalidatedDate?: any | null, expiryDate?: any | null, ercMetadata?: any | null, accessKey: string, isInvalidateable: boolean, isCanceled?: boolean | null, product: { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, simulatedPrice?: { amount: number, currencyCode: string } | null, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } }> } | null }; + +export type IQuotationDetailFragment = { _id: string, status: IQuotationStatus, created: any, expires?: any | null, updated?: any | null, isExpired?: boolean | null, quotationNumber?: string | null, fulfilled?: any | null, rejected?: any | null, user: { _id: string, username?: string | null, name: string, avatar?: { _id: string, url?: string | null } | null, primaryEmail?: { verified: boolean, address: string } | null }, configuration?: Array<{ key: string, value: string }> | null, country?: { _id: string, isoCode?: string | null, flagEmoji?: string | null, name?: string | null } | null, currency?: { _id: string, isoCode: string, isActive?: boolean | null } | null, product: + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + }; + + +export type IQuotationDetailFragmentVariables = Exact<{ [key: string]: never; }>; + +export type IQuotationFragment = { _id: string, status: IQuotationStatus, created: any, expires?: any | null, updated?: any | null, isExpired?: boolean | null, quotationNumber?: string | null, fulfilled?: any | null, rejected?: any | null, user: { _id: string, username?: string | null, name: string, avatar?: { _id: string, url?: string | null } | null, primaryEmail?: { verified: boolean, address: string } | null }, product: + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + , currency?: { _id: string, contractAddress?: string | null, decimals?: number | null, isoCode: string } | null }; + + +export type IQuotationFragmentVariables = Exact<{ [key: string]: never; }>; export type IMakeQuotationProposalMutationVariables = Exact<{ quotationId: Scalars['ID']['input']; quotationContext?: InputMaybe; }>; -export type IMakeQuotationProposalMutation = { - makeQuotationProposal: { - _id: string; - status: IQuotationStatus; - created: any; - expires?: any | null; - updated?: any | null; - isExpired?: boolean | null; - quotationNumber?: string | null; - fulfilled?: any | null; - rejected?: any | null; - user: { - _id: string; - username?: string | null; - name: string; - avatar?: { _id: string; url?: string | null } | null; - primaryEmail?: { verified: boolean; address: string } | null; - }; - configuration?: Array<{ key: string; value: string }> | null; - country?: { - _id: string; - isoCode?: string | null; - flagEmoji?: string | null; - name?: string | null; - } | null; - currency?: { - _id: string; - isoCode: string; - isActive?: boolean | null; - } | null; - product: - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - }; - }; -}; + +export type IMakeQuotationProposalMutation = { makeQuotationProposal: { _id: string, status: IQuotationStatus, created: any, expires?: any | null, updated?: any | null, isExpired?: boolean | null, quotationNumber?: string | null, fulfilled?: any | null, rejected?: any | null, user: { _id: string, username?: string | null, name: string, avatar?: { _id: string, url?: string | null } | null, primaryEmail?: { verified: boolean, address: string } | null }, configuration?: Array<{ key: string, value: string }> | null, country?: { _id: string, isoCode?: string | null, flagEmoji?: string | null, name?: string | null } | null, currency?: { _id: string, isoCode: string, isActive?: boolean | null } | null, product: + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + } }; export type IQuotationQueryVariables = Exact<{ quotationId: Scalars['ID']['input']; }>; -export type IQuotationQuery = { - quotationsCount: number; - quotation?: { - _id: string; - status: IQuotationStatus; - created: any; - expires?: any | null; - updated?: any | null; - isExpired?: boolean | null; - quotationNumber?: string | null; - fulfilled?: any | null; - rejected?: any | null; - user: { - _id: string; - username?: string | null; - name: string; - avatar?: { _id: string; url?: string | null } | null; - primaryEmail?: { verified: boolean; address: string } | null; - }; - configuration?: Array<{ key: string; value: string }> | null; - country?: { - _id: string; - isoCode?: string | null; - flagEmoji?: string | null; - name?: string | null; - } | null; - currency?: { - _id: string; - isoCode: string; - isActive?: boolean | null; - } | null; - product: - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - }; - } | null; -}; - -export type IQuotationStatusQueryVariables = Exact<{ [key: string]: never }>; - -export type IQuotationStatusQuery = { - quotationStatusType?: { - options?: Array<{ value: string; label?: string | null }> | null; - } | null; -}; + +export type IQuotationQuery = { quotationsCount: number, quotation?: { _id: string, status: IQuotationStatus, created: any, expires?: any | null, updated?: any | null, isExpired?: boolean | null, quotationNumber?: string | null, fulfilled?: any | null, rejected?: any | null, user: { _id: string, username?: string | null, name: string, avatar?: { _id: string, url?: string | null } | null, primaryEmail?: { verified: boolean, address: string } | null }, configuration?: Array<{ key: string, value: string }> | null, country?: { _id: string, isoCode?: string | null, flagEmoji?: string | null, name?: string | null } | null, currency?: { _id: string, isoCode: string, isActive?: boolean | null } | null, product: + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + } | null }; + +export type IQuotationStatusQueryVariables = Exact<{ [key: string]: never; }>; + + +export type IQuotationStatusQuery = { quotationStatusType?: { options?: Array<{ value: string, label?: string | null }> | null } | null }; export type IQuotationsQueryVariables = Exact<{ limit?: InputMaybe; @@ -15323,515 +6759,123 @@ export type IQuotationsQueryVariables = Exact<{ sort?: InputMaybe>; }>; -export type IQuotationsQuery = { - quotationsCount: number; - quotations: Array<{ - _id: string; - status: IQuotationStatus; - created: any; - expires?: any | null; - updated?: any | null; - isExpired?: boolean | null; - quotationNumber?: string | null; - fulfilled?: any | null; - rejected?: any | null; - user: { - _id: string; - username?: string | null; - name: string; - avatar?: { _id: string; url?: string | null } | null; - primaryEmail?: { verified: boolean; address: string } | null; - }; - product: - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - }; - currency?: { - _id: string; - contractAddress?: string | null; - decimals?: number | null; - isoCode: string; - } | null; - }>; -}; + +export type IQuotationsQuery = { quotationsCount: number, quotations: Array<{ _id: string, status: IQuotationStatus, created: any, expires?: any | null, updated?: any | null, isExpired?: boolean | null, quotationNumber?: string | null, fulfilled?: any | null, rejected?: any | null, user: { _id: string, username?: string | null, name: string, avatar?: { _id: string, url?: string | null } | null, primaryEmail?: { verified: boolean, address: string } | null }, product: + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + , currency?: { _id: string, contractAddress?: string | null, decimals?: number | null, isoCode: string } | null }> }; export type IRejectQuotationMutationVariables = Exact<{ quotationId: Scalars['ID']['input']; quotationContext?: InputMaybe; }>; -export type IRejectQuotationMutation = { - rejectQuotation: { - _id: string; - status: IQuotationStatus; - created: any; - expires?: any | null; - updated?: any | null; - isExpired?: boolean | null; - quotationNumber?: string | null; - fulfilled?: any | null; - rejected?: any | null; - user: { - _id: string; - username?: string | null; - name: string; - avatar?: { _id: string; url?: string | null } | null; - primaryEmail?: { verified: boolean; address: string } | null; - }; - configuration?: Array<{ key: string; value: string }> | null; - country?: { - _id: string; - isoCode?: string | null; - flagEmoji?: string | null; - name?: string | null; - } | null; - currency?: { - _id: string; - isoCode: string; - isActive?: boolean | null; - } | null; - product: - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - }; - }; -}; + +export type IRejectQuotationMutation = { rejectQuotation: { _id: string, status: IQuotationStatus, created: any, expires?: any | null, updated?: any | null, isExpired?: boolean | null, quotationNumber?: string | null, fulfilled?: any | null, rejected?: any | null, user: { _id: string, username?: string | null, name: string, avatar?: { _id: string, url?: string | null } | null, primaryEmail?: { verified: boolean, address: string } | null }, configuration?: Array<{ key: string, value: string }> | null, country?: { _id: string, isoCode?: string | null, flagEmoji?: string | null, name?: string | null } | null, currency?: { _id: string, isoCode: string, isActive?: boolean | null } | null, product: + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + } }; export type IUserQuotationsQueryVariables = Exact<{ userId: Scalars['ID']['input']; queryString?: InputMaybe; }>; -export type IUserQuotationsQuery = { - user?: { - _id: string; - quotations: Array<{ - _id: string; - status: IQuotationStatus; - created: any; - expires?: any | null; - updated?: any | null; - isExpired?: boolean | null; - quotationNumber?: string | null; - fulfilled?: any | null; - rejected?: any | null; - user: { - _id: string; - username?: string | null; - name: string; - avatar?: { _id: string; url?: string | null } | null; - primaryEmail?: { verified: boolean; address: string } | null; - }; - product: - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - }; - currency?: { - _id: string; - contractAddress?: string | null; - decimals?: number | null; - isoCode: string; - } | null; - }>; - } | null; -}; + +export type IUserQuotationsQuery = { user?: { _id: string, quotations: Array<{ _id: string, status: IQuotationStatus, created: any, expires?: any | null, updated?: any | null, isExpired?: boolean | null, quotationNumber?: string | null, fulfilled?: any | null, rejected?: any | null, user: { _id: string, username?: string | null, name: string, avatar?: { _id: string, url?: string | null } | null, primaryEmail?: { verified: boolean, address: string } | null }, product: + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + , currency?: { _id: string, contractAddress?: string | null, decimals?: number | null, isoCode: string } | null }> } | null }; export type IVerifyQuotationMutationVariables = Exact<{ quotationId: Scalars['ID']['input']; quotationContext?: InputMaybe; }>; -export type IVerifyQuotationMutation = { - verifyQuotation: { - _id: string; - status: IQuotationStatus; - created: any; - expires?: any | null; - updated?: any | null; - isExpired?: boolean | null; - quotationNumber?: string | null; - fulfilled?: any | null; - rejected?: any | null; - user: { - _id: string; - username?: string | null; - name: string; - avatar?: { _id: string; url?: string | null } | null; - primaryEmail?: { verified: boolean; address: string } | null; - }; - configuration?: Array<{ key: string; value: string }> | null; - country?: { - _id: string; - isoCode?: string | null; - flagEmoji?: string | null; - name?: string | null; - } | null; - currency?: { - _id: string; - isoCode: string; - isActive?: boolean | null; - } | null; - product: - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - } - | { - _id: string; - texts?: { - _id: string; - slug?: string | null; - subtitle?: string | null; - title?: string | null; - description?: string | null; - } | null; - media: Array<{ - _id: string; - file?: { _id: string; type: string; url?: string | null } | null; - }>; - }; - }; -}; + +export type IVerifyQuotationMutation = { verifyQuotation: { _id: string, status: IQuotationStatus, created: any, expires?: any | null, updated?: any | null, isExpired?: boolean | null, quotationNumber?: string | null, fulfilled?: any | null, rejected?: any | null, user: { _id: string, username?: string | null, name: string, avatar?: { _id: string, url?: string | null } | null, primaryEmail?: { verified: boolean, address: string } | null }, configuration?: Array<{ key: string, value: string }> | null, country?: { _id: string, isoCode?: string | null, flagEmoji?: string | null, name?: string | null } | null, currency?: { _id: string, isoCode: string, isActive?: boolean | null } | null, product: + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } + } }; + +export type IEventProductFragment = { _id: string, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, tokensCount: number, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null, name: string } | null }>, contractConfiguration?: { ercMetadataProperties?: any | null, supply: number } | null, simulatedStocks?: Array<{ quantity?: number | null }> | null }; + + +export type IEventProductFragmentVariables = Exact<{ [key: string]: never; }>; + +export type ICancelEventMutationVariables = Exact<{ + productId: Scalars['ID']['input']; +}>; + + +export type ICancelEventMutation = { cancelEvent: number }; + +export type ICancelTicketMutationVariables = Exact<{ + tokenId: Scalars['ID']['input']; +}>; + + +export type ICancelTicketMutation = { cancelTicket: { _id: string, isCanceled?: boolean | null, invalidatedDate?: any | null, isInvalidateable: boolean, tokenSerialNumber?: string | null } }; + +export type IEventProductQueryVariables = Exact<{ + slug: Scalars['String']['input']; + forceLocale?: InputMaybe; +}>; + + +export type IEventProductQuery = { product?: + | { _id: string, status: IProductStatus, tags?: Array | null } + | { _id: string, status: IProductStatus, tags?: Array | null } + | { _id: string, status: IProductStatus, tags?: Array | null } + | { _id: string, status: IProductStatus, tags?: Array | null } + | { tokensCount: number, _id: string, status: IProductStatus, tags?: Array | null, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null, name: string } | null }>, contractConfiguration?: { ercMetadataProperties?: any | null, supply: number } | null, simulatedStocks?: Array<{ quantity?: number | null }> | null, tokens: Array<{ _id: string, tokenSerialNumber?: string | null, isCanceled?: boolean | null, invalidatedDate?: any | null, isInvalidateable: boolean, quantity: number, status: ITokenExportStatus, walletAddress?: string | null, user?: { _id: string, username?: string | null, isGuest: boolean, primaryEmail?: { address: string, verified: boolean } | null, avatar?: { _id: string, url?: string | null } | null, profile?: { displayName?: string | null, address?: { firstName?: string | null, lastName?: string | null } | null } | null, lastContact?: { emailAddress?: string | null, telNumber?: string | null } | null } | null }> } + | null }; + +export type IEventProductsQueryVariables = Exact<{ + queryString?: InputMaybe; + tags?: InputMaybe>; + type?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; + includeDrafts?: InputMaybe; + forceLocale?: InputMaybe; +}>; + + +export type IEventProductsQuery = { productsCount: number, products: Array< + | { _id: string, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null } + | { _id: string, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null } + | { _id: string, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null } + | { _id: string, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null } + | { tokensCount: number, _id: string, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null, name: string } | null }>, contractConfiguration?: { ercMetadataProperties?: any | null, supply: number } | null, simulatedStocks?: Array<{ quantity?: number | null }> | null } + > }; export type IInvalidateTokenMutationVariables = Exact<{ tokenId: Scalars['ID']['input']; }>; -export type IInvalidateTokenMutation = { - invalidateToken: { - _id: string; - walletAddress?: string | null; - status: ITokenExportStatus; - quantity: number; - contractAddress?: string | null; - chainId?: string | null; - tokenSerialNumber?: string | null; - invalidatedDate?: any | null; - expiryDate?: any | null; - ercMetadata?: any | null; - accessKey: string; - isInvalidateable: boolean; - }; -}; + +export type IInvalidateTokenMutation = { invalidateToken: { _id: string, walletAddress?: string | null, status: ITokenExportStatus, quantity: number, contractAddress?: string | null, chainId?: string | null, tokenSerialNumber?: string | null, invalidatedDate?: any | null, expiryDate?: any | null, ercMetadata?: any | null, accessKey: string, isInvalidateable: boolean, isCanceled?: boolean | null } }; export type ITokenQueryVariables = Exact<{ tokenId: Scalars['ID']['input']; forceLocale?: InputMaybe; }>; -export type ITokenQuery = { - token?: { - _id: string; - walletAddress?: string | null; - status: ITokenExportStatus; - quantity: number; - contractAddress?: string | null; - chainId?: string | null; - tokenSerialNumber?: string | null; - invalidatedDate?: any | null; - expiryDate?: any | null; - ercMetadata?: any | null; - accessKey: string; - isInvalidateable: boolean; - product: { - _id: string; - sequence: number; - status: IProductStatus; - tags?: Array | null; - updated?: any | null; - published?: any | null; - simulatedPrice?: { amount: number; currencyCode: string } | null; - texts?: { - _id: string; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - vendor?: string | null; - brand?: string | null; - labels?: Array | null; - locale: any; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - }; - user?: { - _id: string; - username?: string | null; - isGuest: boolean; - name: string; - avatar?: { _id: string; url?: string | null } | null; - primaryEmail?: { verified: boolean; address: string } | null; - lastContact?: { - telNumber?: string | null; - emailAddress?: string | null; - } | null; - profile?: { - displayName?: string | null; - address?: { - firstName?: string | null; - lastName?: string | null; - } | null; - } | null; - } | null; - } | null; -}; + +export type ITokenQuery = { token?: { _id: string, walletAddress?: string | null, status: ITokenExportStatus, quantity: number, contractAddress?: string | null, chainId?: string | null, tokenSerialNumber?: string | null, invalidatedDate?: any | null, expiryDate?: any | null, ercMetadata?: any | null, accessKey: string, isInvalidateable: boolean, isCanceled?: boolean | null, product: { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, simulatedPrice?: { amount: number, currencyCode: string } | null, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> }, user?: { _id: string, username?: string | null, isGuest: boolean, name: string, avatar?: { _id: string, url?: string | null } | null, primaryEmail?: { verified: boolean, address: string } | null, lastContact?: { telNumber?: string | null, emailAddress?: string | null } | null, profile?: { displayName?: string | null, address?: { firstName?: string | null, lastName?: string | null } | null } | null } | null } | null }; export type ITokensQueryVariables = Exact<{ queryString?: InputMaybe; @@ -15840,220 +6884,66 @@ export type ITokensQueryVariables = Exact<{ forceLocale?: InputMaybe; }>; -export type ITokensQuery = { - tokensCount: number; - tokens: Array<{ - _id: string; - walletAddress?: string | null; - status: ITokenExportStatus; - quantity: number; - contractAddress?: string | null; - chainId?: string | null; - tokenSerialNumber?: string | null; - invalidatedDate?: any | null; - expiryDate?: any | null; - ercMetadata?: any | null; - accessKey: string; - isInvalidateable: boolean; - product: { - _id: string; - sequence: number; - status: IProductStatus; - tags?: Array | null; - updated?: any | null; - published?: any | null; - simulatedPrice?: { amount: number; currencyCode: string } | null; - texts?: { - _id: string; - slug?: string | null; - title?: string | null; - subtitle?: string | null; - description?: string | null; - vendor?: string | null; - brand?: string | null; - labels?: Array | null; - locale: any; - } | null; - media: Array<{ - _id: string; - tags?: Array | null; - file?: { _id: string; url?: string | null } | null; - }>; - }; - user?: { - _id: string; - username?: string | null; - isGuest: boolean; - primaryEmail?: { address: string; verified: boolean } | null; - avatar?: { _id: string; url?: string | null } | null; - profile?: { - displayName?: string | null; - address?: { - firstName?: string | null; - lastName?: string | null; - } | null; - } | null; - } | null; - }>; -}; - -export type IWarehousingProviderFragment = { - _id: string; - created?: any | null; - updated?: any | null; - deleted?: any | null; - isActive?: boolean | null; - type?: IWarehousingProviderType | null; - configuration?: any | null; - configurationError?: IWarehousingProviderError | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; -}; - -export type IWarehousingProviderFragmentVariables = Exact<{ - [key: string]: never; -}>; + +export type ITokensQuery = { tokensCount: number, tokens: Array<{ _id: string, walletAddress?: string | null, status: ITokenExportStatus, quantity: number, contractAddress?: string | null, chainId?: string | null, tokenSerialNumber?: string | null, invalidatedDate?: any | null, expiryDate?: any | null, ercMetadata?: any | null, accessKey: string, isInvalidateable: boolean, isCanceled?: boolean | null, product: { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, simulatedPrice?: { amount: number, currencyCode: string } | null, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> }, user?: { _id: string, username?: string | null, isGuest: boolean, primaryEmail?: { address: string, verified: boolean } | null, avatar?: { _id: string, url?: string | null } | null, profile?: { displayName?: string | null, address?: { firstName?: string | null, lastName?: string | null } | null } | null } | null }> }; + +export type IWarehousingProviderFragment = { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, isActive?: boolean | null, type?: IWarehousingProviderType | null, configuration?: any | null, configurationError?: IWarehousingProviderError | null, interface?: { _id: string, label?: string | null, version?: string | null } | null }; + + +export type IWarehousingProviderFragmentVariables = Exact<{ [key: string]: never; }>; export type ICreateWarehousingProviderMutationVariables = Exact<{ warehousingProvider: ICreateWarehousingProviderInput; }>; -export type ICreateWarehousingProviderMutation = { - createWarehousingProvider: { - _id: string; - created?: any | null; - updated?: any | null; - deleted?: any | null; - isActive?: boolean | null; - type?: IWarehousingProviderType | null; - configuration?: any | null; - configurationError?: IWarehousingProviderError | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - }; -}; + +export type ICreateWarehousingProviderMutation = { createWarehousingProvider: { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, isActive?: boolean | null, type?: IWarehousingProviderType | null, configuration?: any | null, configurationError?: IWarehousingProviderError | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }; export type IRemoveWarehousingProviderMutationVariables = Exact<{ warehousingProviderId: Scalars['ID']['input']; }>; -export type IRemoveWarehousingProviderMutation = { - removeWarehousingProvider: { _id: string }; -}; + +export type IRemoveWarehousingProviderMutation = { removeWarehousingProvider: { _id: string } }; export type IUpdateWarehousingProviderMutationVariables = Exact<{ warehousingProvider: IUpdateProviderInput; warehousingProviderId: Scalars['ID']['input']; }>; -export type IUpdateWarehousingProviderMutation = { - updateWarehousingProvider: { - _id: string; - created?: any | null; - updated?: any | null; - deleted?: any | null; - isActive?: boolean | null; - type?: IWarehousingProviderType | null; - configuration?: any | null; - configurationError?: IWarehousingProviderError | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - }; -}; + +export type IUpdateWarehousingProviderMutation = { updateWarehousingProvider: { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, isActive?: boolean | null, type?: IWarehousingProviderType | null, configuration?: any | null, configurationError?: IWarehousingProviderError | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }; export type IWarehousingInterfacesQueryVariables = Exact<{ providerType?: InputMaybe; }>; -export type IWarehousingInterfacesQuery = { - warehousingInterfaces: Array<{ - _id: string; - label?: string | null; - value: string; - }>; -}; + +export type IWarehousingInterfacesQuery = { warehousingInterfaces: Array<{ _id: string, label?: string | null, value: string }> }; export type IWarehousingProviderQueryVariables = Exact<{ warehousingProviderId: Scalars['ID']['input']; }>; -export type IWarehousingProviderQuery = { - warehousingProvider?: { - _id: string; - created?: any | null; - updated?: any | null; - deleted?: any | null; - isActive?: boolean | null; - type?: IWarehousingProviderType | null; - configuration?: any | null; - configurationError?: IWarehousingProviderError | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - } | null; -}; -export type IWarehousingProvidersTypeQueryVariables = Exact<{ - [key: string]: never; -}>; +export type IWarehousingProviderQuery = { warehousingProvider?: { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, isActive?: boolean | null, type?: IWarehousingProviderType | null, configuration?: any | null, configurationError?: IWarehousingProviderError | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } | null }; + +export type IWarehousingProvidersTypeQueryVariables = Exact<{ [key: string]: never; }>; -export type IWarehousingProvidersTypeQuery = { - warehousingProviderType?: { - options?: Array<{ value: string; label?: string | null }> | null; - } | null; -}; + +export type IWarehousingProvidersTypeQuery = { warehousingProviderType?: { options?: Array<{ value: string, label?: string | null }> | null } | null }; export type IWarehousingProvidersQueryVariables = Exact<{ type?: InputMaybe; }>; -export type IWarehousingProvidersQuery = { - warehousingProvidersCount: number; - warehousingProviders: Array<{ - _id: string; - created?: any | null; - updated?: any | null; - deleted?: any | null; - isActive?: boolean | null; - type?: IWarehousingProviderType | null; - configuration?: any | null; - configurationError?: IWarehousingProviderError | null; - interface?: { - _id: string; - label?: string | null; - version?: string | null; - } | null; - }>; -}; - -export type IWorkFragment = { - _id: string; - type: IWorkType; - scheduled?: any | null; - status: IWorkStatus; - started?: any | null; - success?: boolean | null; - finished?: any | null; - created: any; - deleted?: any | null; - retries: number; - input?: any | null; - result?: any | null; - original?: { _id: string; retries: number } | null; -}; -export type IWorkFragmentVariables = Exact<{ [key: string]: never }>; +export type IWarehousingProvidersQuery = { warehousingProvidersCount: number, warehousingProviders: Array<{ _id: string, created?: any | null, updated?: any | null, deleted?: any | null, isActive?: boolean | null, type?: IWarehousingProviderType | null, configuration?: any | null, configurationError?: IWarehousingProviderError | null, interface?: { _id: string, label?: string | null, version?: string | null } | null }> }; + +export type IWorkFragment = { _id: string, type: IWorkType, scheduled?: any | null, status: IWorkStatus, started?: any | null, success?: boolean | null, finished?: any | null, created: any, deleted?: any | null, retries: number, input?: any | null, result?: any | null, original?: { _id: string, retries: number } | null }; + + +export type IWorkFragmentVariables = Exact<{ [key: string]: never; }>; export type IActiveWorkTypesQueryVariables = Exact<{ [key: string]: never }>; @@ -16068,6 +6958,7 @@ export type IAddWorkMutationVariables = Exact<{ retries?: Scalars['Int']['input']; }>; + export type IAddWorkMutation = { addWork?: { _id: string } | null }; export type IAllocateWorkMutationVariables = Exact<{ @@ -16075,47 +6966,27 @@ export type IAllocateWorkMutationVariables = Exact<{ worker?: InputMaybe; }>; + export type IAllocateWorkMutation = { allocateWork?: { _id: string } | null }; -export type IWorkTypesQueryVariables = Exact<{ [key: string]: never }>; +export type IWorkTypesQueryVariables = Exact<{ [key: string]: never; }>; -export type IWorkTypesQuery = { - registeredWorkTypes?: { - options?: Array<{ value: string; label: string }> | null; - } | null; -}; + +export type IWorkTypesQuery = { registeredWorkTypes?: { options?: Array<{ value: string, label: string }> | null } | null }; export type IRemoveWorkMutationVariables = Exact<{ workId: Scalars['ID']['input']; }>; + export type IRemoveWorkMutation = { removeWork: { _id: string } }; export type IWorkQueryVariables = Exact<{ workId: Scalars['ID']['input']; }>; -export type IWorkQuery = { - work?: { - error?: any | null; - priority: number; - worker?: string | null; - timeout?: number | null; - _id: string; - type: IWorkType; - scheduled?: any | null; - status: IWorkStatus; - started?: any | null; - success?: boolean | null; - finished?: any | null; - created: any; - deleted?: any | null; - retries: number; - input?: any | null; - result?: any | null; - original?: { _id: string; retries: number } | null; - } | null; -}; + +export type IWorkQuery = { work?: { error?: any | null, priority: number, worker?: string | null, timeout?: number | null, _id: string, type: IWorkType, scheduled?: any | null, status: IWorkStatus, started?: any | null, success?: boolean | null, finished?: any | null, created: any, deleted?: any | null, retries: number, input?: any | null, result?: any | null, original?: { _id: string, retries: number } | null } | null }; export type IWorkQueueQueryVariables = Exact<{ queryString?: InputMaybe; @@ -16127,22 +6998,5 @@ export type IWorkQueueQueryVariables = Exact<{ sort?: InputMaybe>; }>; -export type IWorkQueueQuery = { - activeWorkTypes: Array; - workQueueCount: number; - workQueue: Array<{ - _id: string; - type: IWorkType; - scheduled?: any | null; - status: IWorkStatus; - started?: any | null; - success?: boolean | null; - finished?: any | null; - created: any; - deleted?: any | null; - retries: number; - input?: any | null; - result?: any | null; - original?: { _id: string; retries: number } | null; - }>; -}; + +export type IWorkQueueQuery = { activeWorkTypes: Array, workQueueCount: number, workQueue: Array<{ _id: string, type: IWorkType, scheduled?: any | null, status: IWorkStatus, started?: any | null, success?: boolean | null, finished?: any | null, created: any, deleted?: any | null, retries: number, input?: any | null, result?: any | null, original?: { _id: string, retries: number } | null }> }; diff --git a/admin-ui/src/modules/common/components/Layout.tsx b/admin-ui/src/modules/common/components/Layout.tsx index 107a89734b..0536fcc241 100644 --- a/admin-ui/src/modules/common/components/Layout.tsx +++ b/admin-ui/src/modules/common/components/Layout.tsx @@ -15,6 +15,7 @@ import { CubeIcon, DocumentTextIcon, FolderArrowDownIcon, + TicketIcon, } from '@heroicons/react/24/outline'; import Link from 'next/link'; import React, { useState } from 'react'; @@ -180,6 +181,12 @@ const Layout = ({ href: '/tokens', requiredRole: 'viewTokens', }, + isSystemReady && { + name: formatMessage({ id: 'ticketing', defaultMessage: 'Ticketing' }), + icon: TicketIcon, + href: '/ticketing', + requiredRole: 'viewTokens', + }, { name: formatMessage({ id: 'system', defaultMessage: 'System settings' }), icon: Cog8ToothIcon, diff --git a/admin-ui/src/modules/product/fragments/TokenFragment.ts b/admin-ui/src/modules/product/fragments/TokenFragment.ts index ce0b9415e1..142262b9af 100644 --- a/admin-ui/src/modules/product/fragments/TokenFragment.ts +++ b/admin-ui/src/modules/product/fragments/TokenFragment.ts @@ -14,6 +14,7 @@ const TokenFragment = gql` ercMetadata accessKey isInvalidateable + isCanceled } `; diff --git a/admin-ui/src/modules/product/hooks/useProduct.ts b/admin-ui/src/modules/product/hooks/useProduct.ts index 8932c983be..329810895f 100644 --- a/admin-ui/src/modules/product/hooks/useProduct.ts +++ b/admin-ui/src/modules/product/hooks/useProduct.ts @@ -57,6 +57,56 @@ const GetProductQuery = (inlineFragment = '') => gql` __typename } } + ... on TokenizedProduct { + texts { + _id + title + subtitle + description + } + contractConfiguration { + ercMetadataProperties + supply + } + simulatedStocks { + quantity + } + tokensCount + tokens { + _id + tokenSerialNumber + isCanceled + invalidatedDate + isInvalidateable + quantity + status + walletAddress + user { + _id + username + isGuest + primaryEmail { + address + verified + } + avatar { + _id + url + } + profile { + displayName + address { + firstName + lastName + } + } + lastContact { + emailAddress + telNumber + } + } + } + } } } ${ProductDetailFragment} diff --git a/admin-ui/src/modules/ticketing/components/EventTokenList.tsx b/admin-ui/src/modules/ticketing/components/EventTokenList.tsx new file mode 100644 index 0000000000..78ced8f7bd --- /dev/null +++ b/admin-ui/src/modules/ticketing/components/EventTokenList.tsx @@ -0,0 +1,71 @@ +import { useIntl } from 'react-intl'; +import Table from '../../common/components/Table'; +import EventTokenListItem from './EventTokenListItem'; + +const EventTokenList = ({ tokens, onCancelTicket, onInvalidateTicket }) => { + const { formatMessage } = useIntl(); + + if (!tokens?.length) { + return ( +

+ {formatMessage({ + id: 'no_tickets_issued', + defaultMessage: 'No tickets have been issued yet.', + })} +

+ ); + } + + return ( + + + + {formatMessage({ + id: 'ticket_number', + defaultMessage: 'Ticket #', + })} + + + {formatMessage({ + id: 'attendee', + defaultMessage: 'Attendee', + })} + + + {formatMessage({ + id: 'email', + defaultMessage: 'E-Mail', + })} + + + {formatMessage({ + id: 'phone', + defaultMessage: 'Phone', + })} + + + {formatMessage({ + id: 'redeemed', + defaultMessage: 'Redeemed', + })} + + + {formatMessage({ + id: 'actions', + defaultMessage: 'Actions', + })} + + + {tokens.map((token) => ( + + ))} +
+ ); +}; + +export default EventTokenList; diff --git a/admin-ui/src/modules/ticketing/components/EventTokenListItem.tsx b/admin-ui/src/modules/ticketing/components/EventTokenListItem.tsx new file mode 100644 index 0000000000..ae0e49cd94 --- /dev/null +++ b/admin-ui/src/modules/ticketing/components/EventTokenListItem.tsx @@ -0,0 +1,103 @@ +import Link from 'next/link'; +import { useIntl } from 'react-intl'; +import Table from '../../common/components/Table'; +import Badge from '../../common/components/Badge'; +import useFormatDateTime from '../../common/utils/useFormatDateTime'; +import formatUsername from '../../common/utils/formatUsername'; +import MediaAvatar from '../../common/components/MediaAvatar'; + +const EventTokenListItem = ({ token, onCancelTicket, onInvalidateTicket }) => { + const { formatMessage } = useIntl(); + const { formatDateTime } = useFormatDateTime(); + + return ( + + + + {token.tokenSerialNumber || token._id?.slice(-8)} + + + + {token.user && ( + + + {formatUsername(token.user)} + + )} + + + + {token.user?.lastContact?.emailAddress || + token.user?.primaryEmail?.address || + '-'} + + + + + {token.user?.lastContact?.telNumber || '-'} + + + + {token.invalidatedDate ? ( + + ) : ( + - + )} + + +
+ {token.isCanceled ? ( + + ) : ( + <> + + {token.isInvalidateable && !token.invalidatedDate && ( + + )} + + )} +
+
+
+ ); +}; + +export default EventTokenListItem; diff --git a/admin-ui/src/modules/ticketing/components/TicketEventDetail.tsx b/admin-ui/src/modules/ticketing/components/TicketEventDetail.tsx new file mode 100644 index 0000000000..413950db78 --- /dev/null +++ b/admin-ui/src/modules/ticketing/components/TicketEventDetail.tsx @@ -0,0 +1,264 @@ +import Link from 'next/link'; +import { useCallback } from 'react'; +import { useIntl } from 'react-intl'; +import { toast } from 'react-toastify'; +import useModal from '../../modal/hooks/useModal'; +import DangerMessage from '../../modal/components/DangerMessage'; +import useFormatDateTime from '../../common/utils/useFormatDateTime'; +import ImageWithFallback from '../../common/components/ImageWithFallback'; +import defaultNextImageLoader from '../../common/utils/defaultNextImageLoader'; +import Badge from '../../common/components/Badge'; +import EventTokenList from './EventTokenList'; +import useCancelTicket from '../hooks/useCancelTicket'; +import useCancelEvent from '../hooks/useCancelEvent'; +import useInvalidateTicket from '../../token/hooks/useInvalidateTicket'; +import generateUniqueId from '../../common/utils/getUniqueId'; + +const TicketEventDetail = ({ product }) => { + const { formatMessage } = useIntl(); + const { formatDateTime } = useFormatDateTime(); + const { setModal } = useModal(); + const { cancelTicket } = useCancelTicket(); + const { cancelEvent } = useCancelEvent(); + const { invalidateTicket } = useInvalidateTicket(); + + const slot = + product?.contractConfiguration?.ercMetadataProperties?.slot; + const supply = product?.contractConfiguration?.supply || 0; + const remaining = + product?.simulatedStocks?.reduce((acc, cur) => acc + cur.quantity, 0) || 0; + const sold = supply - remaining; + + const activeTokens = + product?.tokens?.filter((t) => !t.isCanceled) || []; + const redeemedTokens = activeTokens.filter((t) => t.invalidatedDate); + + const onCancelEvent = useCallback(async () => { + await setModal( + setModal('')} + message={formatMessage({ + id: 'cancel_event_confirmation', + defaultMessage: + 'Are you sure you want to cancel this event? All tickets will be cancelled.', + })} + onOkClick={async () => { + setModal(''); + try { + await cancelEvent({ productId: product._id }); + toast.success( + formatMessage({ + id: 'event_cancelled', + defaultMessage: 'Event cancelled successfully', + }), + ); + } catch (e) { + toast.error(e.message); + } + }} + okText={formatMessage({ + id: 'cancel_event', + defaultMessage: 'Cancel Event', + })} + />, + ); + }, [product?._id]); + + const onCancelTicket = useCallback( + async (tokenId: string) => { + await setModal( + setModal('')} + message={formatMessage({ + id: 'cancel_ticket_confirmation', + defaultMessage: + 'Are you sure you want to cancel this ticket?', + })} + onOkClick={async () => { + setModal(''); + try { + await cancelTicket({ tokenId }); + toast.success( + formatMessage({ + id: 'ticket_cancelled', + defaultMessage: 'Ticket cancelled successfully', + }), + ); + } catch (e) { + toast.error(e.message); + } + }} + okText={formatMessage({ + id: 'cancel_ticket', + defaultMessage: 'Cancel Ticket', + })} + />, + ); + }, + [], + ); + + const onInvalidateTicket = useCallback(async (tokenId: string) => { + try { + await invalidateTicket({ tokenId }); + toast.success( + formatMessage({ + id: 'ticket_redeemed', + defaultMessage: 'Ticket redeemed successfully', + }), + ); + } catch (e) { + toast.error( + formatMessage({ + id: 'ticket_redeem_error', + defaultMessage: 'Ticket already redeemed or not redeemable at this time', + }), + ); + } + }, []); + + if (!product) return null; + + return ( +
+
+
+
+ + + +
+
+

+ {product?.texts?.title} +

+ {product?.texts?.subtitle && ( +

+ {product.texts.subtitle} +

+ )} + {product?.texts?.description && ( +

+ {product.texts.description} +

+ )} + +
+
+ + {formatMessage({ + id: 'event_date', + defaultMessage: 'Event Date', + })} + +

+ {slot + ? formatDateTime(slot, { + dateStyle: 'full', + timeStyle: 'short', + }) + : '-'} +

+
+
+ + {formatMessage({ + id: 'status', + defaultMessage: 'Status', + })} + +
+ +
+
+
+ + {formatMessage({ + id: 'tickets_sold', + defaultMessage: 'Tickets Sold', + })} + +

+ {sold} + / {supply} +

+
+
+ + {formatMessage({ + id: 'tickets_redeemed', + defaultMessage: 'Tickets Redeemed', + })} + +

+ + {redeemedTokens.length} + + + {' '} + / {activeTokens.length} + +

+
+
+ + {product.status === 'ACTIVE' && ( +
+ +
+ )} +
+
+
+ +
+

+ {formatMessage( + { + id: 'attendee_list', + defaultMessage: 'Attendees ({count})', + }, + { count: product?.tokens?.length || 0 }, + )} +

+ +
+
+ ); +}; + +export default TicketEventDetail; diff --git a/admin-ui/src/modules/ticketing/components/TicketEventList.tsx b/admin-ui/src/modules/ticketing/components/TicketEventList.tsx new file mode 100644 index 0000000000..e5ef253edb --- /dev/null +++ b/admin-ui/src/modules/ticketing/components/TicketEventList.tsx @@ -0,0 +1,38 @@ +import { useIntl } from 'react-intl'; +import Table from '../../common/components/Table'; +import TicketEventListItem from './TicketEventListItem'; + +const TicketEventList = ({ products }) => { + const { formatMessage } = useIntl(); + + return ( + + + {' '} + + {formatMessage({ id: 'title', defaultMessage: 'Title' })} + + + {formatMessage({ + id: 'event_date', + defaultMessage: 'Event Date', + })} + + + {formatMessage({ + id: 'tickets_sold', + defaultMessage: 'Tickets Sold', + })} + + + {formatMessage({ id: 'status', defaultMessage: 'Status' })} + + + {(products || []).map((product) => ( + + ))} +
+ ); +}; + +export default TicketEventList; diff --git a/admin-ui/src/modules/ticketing/components/TicketEventListItem.tsx b/admin-ui/src/modules/ticketing/components/TicketEventListItem.tsx new file mode 100644 index 0000000000..4ed5e1cfe2 --- /dev/null +++ b/admin-ui/src/modules/ticketing/components/TicketEventListItem.tsx @@ -0,0 +1,98 @@ +import Link from 'next/link'; +import Table from '../../common/components/Table'; +import Badge from '../../common/components/Badge'; +import useFormatDateTime from '../../common/utils/useFormatDateTime'; +import ImageWithFallback from '../../common/components/ImageWithFallback'; +import defaultNextImageLoader from '../../common/utils/defaultNextImageLoader'; +import generateUniqueId from '../../common/utils/getUniqueId'; + +const EVENT_STATUSES = { + ACTIVE: 'emerald', + DRAFT: 'amber', + DELETED: 'rose', +}; + +const TicketEventListItem = ({ product }) => { + const { formatDateTime } = useFormatDateTime(); + const slot = + product?.contractConfiguration?.ercMetadataProperties?.slot; + + const supply = product?.contractConfiguration?.supply || 0; + const remaining = + product?.simulatedStocks?.reduce((acc, cur) => acc + cur.quantity, 0) || 0; + const sold = supply - remaining; + const ticketUrl = `/ticketing?slug=${generateUniqueId(product)}`; + return ( + + + + + + + + + {product?.texts?.title || 'Untitled'} + {product?.texts?.subtitle && ( + + {product.texts.subtitle} + + )} + + + +
+ {slot + ? formatDateTime(slot, { + month: 'short', + year: 'numeric', + day: 'numeric', + hour: 'numeric', + minute: 'numeric', + }) + : '-'} +
+
+ +
+ + {sold} + + / + {supply} + {supply > 0 && ( +
+
+
+ )} +
+ + + + + + ); +}; + +export default TicketEventListItem; diff --git a/admin-ui/src/modules/ticketing/hooks/useCancelEvent.ts b/admin-ui/src/modules/ticketing/hooks/useCancelEvent.ts new file mode 100644 index 0000000000..fbe46af5aa --- /dev/null +++ b/admin-ui/src/modules/ticketing/hooks/useCancelEvent.ts @@ -0,0 +1,24 @@ +import { gql } from '@apollo/client'; +import { useMutation } from '@apollo/client/react'; + +const CancelEventMutation = gql` + mutation CancelEvent($productId: ID!) { + cancelEvent(productId: $productId) + } +`; + +const useCancelEvent = () => { + const [cancelEventMutation] = useMutation(CancelEventMutation); + + const cancelEvent = async ({ productId }: { productId: string }) => { + const result = await cancelEventMutation({ + variables: { productId }, + refetchQueries: ['Product', 'TicketEvents', 'Tokens'], + }); + return result; + }; + + return { cancelEvent }; +}; + +export default useCancelEvent; diff --git a/admin-ui/src/modules/ticketing/hooks/useCancelTicket.ts b/admin-ui/src/modules/ticketing/hooks/useCancelTicket.ts new file mode 100644 index 0000000000..ce505f93a8 --- /dev/null +++ b/admin-ui/src/modules/ticketing/hooks/useCancelTicket.ts @@ -0,0 +1,30 @@ +import { gql } from '@apollo/client'; +import { useMutation } from '@apollo/client/react'; + +const CancelTicketMutation = gql` + mutation CancelTicket($tokenId: ID!) { + cancelTicket(tokenId: $tokenId) { + _id + isCanceled + invalidatedDate + isInvalidateable + tokenSerialNumber + } + } +`; + +const useCancelTicket = () => { + const [cancelTicketMutation] = useMutation(CancelTicketMutation); + + const cancelTicket = async ({ tokenId }: { tokenId: string }) => { + const result = await cancelTicketMutation({ + variables: { tokenId }, + refetchQueries: ['Product', 'TicketEvents', 'Tokens', 'Token'], + }); + return result; + }; + + return { cancelTicket }; +}; + +export default useCancelTicket; diff --git a/admin-ui/src/modules/ticketing/hooks/useEventProducts.ts b/admin-ui/src/modules/ticketing/hooks/useEventProducts.ts new file mode 100644 index 0000000000..cacceaa440 --- /dev/null +++ b/admin-ui/src/modules/ticketing/hooks/useEventProducts.ts @@ -0,0 +1,77 @@ +import { gql } from '@apollo/client'; +import { useQuery } from '@apollo/client/react'; + +const TicketEventsQuery = gql` + query TicketEvents( + $queryString: String + $limit: Int + $offset: Int + $includeDrafts: Boolean = true + $forceLocale: Locale + ) { + ticketEvents( + queryString: $queryString + limit: $limit + offset: $offset + includeDrafts: $includeDrafts + ) { + _id + status + tags + updated + published + ... on TokenizedProduct { + texts(forceLocale: $forceLocale) { + _id + slug + title + subtitle + description + } + media(limit: 1) { + _id + file { + _id + url + name + } + } + contractConfiguration { + ercMetadataProperties + supply + } + simulatedStocks { + quantity + } + tokensCount + } + } + ticketEventsCount( + includeDrafts: $includeDrafts + queryString: $queryString + ) + } +`; + +const useEventProducts = ({ + queryString = null, + limit = 50, + offset = 0, +}: { + queryString?: string; + limit?: number; + offset?: number; +}) => { + const { data, loading, error } = useQuery(TicketEventsQuery, { + variables: { queryString, limit, offset }, + }); + + return { + products: data?.ticketEvents || [], + productsCount: data?.ticketEventsCount || 0, + loading, + error, + }; +}; + +export default useEventProducts; diff --git a/admin-ui/src/modules/ticketing/index.ts b/admin-ui/src/modules/ticketing/index.ts new file mode 100644 index 0000000000..a3977c2f2a --- /dev/null +++ b/admin-ui/src/modules/ticketing/index.ts @@ -0,0 +1,3 @@ +export { default as useEventProducts } from './hooks/useEventProducts'; +export { default as useCancelTicket } from './hooks/useCancelTicket'; +export { default as useCancelEvent } from './hooks/useCancelEvent'; diff --git a/admin-ui/src/modules/token/components/TokenDetail.tsx b/admin-ui/src/modules/token/components/TokenDetail.tsx index b536de8fbc..b460c44ca0 100644 --- a/admin-ui/src/modules/token/components/TokenDetail.tsx +++ b/admin-ui/src/modules/token/components/TokenDetail.tsx @@ -122,6 +122,19 @@ const TokenDetail = ({ token }) => {

+ {token?.isCanceled && ( +
+ + {formatMessage({ + id: 'cancelled_status', + defaultMessage: 'Cancelled', + })} + : + + +
+ )} + {token?.walletAddress && (
diff --git a/admin-ui/src/modules/token/components/TokenList.tsx b/admin-ui/src/modules/token/components/TokenList.tsx index 0234239ca2..74aa0ed18c 100644 --- a/admin-ui/src/modules/token/components/TokenList.tsx +++ b/admin-ui/src/modules/token/components/TokenList.tsx @@ -33,6 +33,12 @@ const TokenList = ({ tokens }) => { defaultMessage: 'Invalidated', })} + + {formatMessage({ + id: 'token_cancelled', + defaultMessage: 'Cancelled', + })} + {(tokens || []).map((token) => ( diff --git a/admin-ui/src/modules/token/components/TokenListItem.tsx b/admin-ui/src/modules/token/components/TokenListItem.tsx index 750e9017a3..50119b6c17 100644 --- a/admin-ui/src/modules/token/components/TokenListItem.tsx +++ b/admin-ui/src/modules/token/components/TokenListItem.tsx @@ -69,6 +69,11 @@ const TokenListItem = ({ token }) => { : null}
+ + {token.isCanceled ? ( + + ) : null} +
); }; diff --git a/admin-ui/src/pages/ticketing/TicketEventDetailPage.tsx b/admin-ui/src/pages/ticketing/TicketEventDetailPage.tsx new file mode 100644 index 0000000000..7a57078ae5 --- /dev/null +++ b/admin-ui/src/pages/ticketing/TicketEventDetailPage.tsx @@ -0,0 +1,35 @@ +import { useIntl } from 'react-intl'; +import BreadCrumbs from '../../modules/common/components/BreadCrumbs'; +import PageHeader from '../../modules/common/components/PageHeader'; +import Loading from '../../modules/common/components/Loading'; +import TicketEventDetail from '../../modules/ticketing/components/TicketEventDetail'; +import useProduct from '../../modules/product/hooks/useProduct'; + +const TicketEventDetailPage = ({ slug }) => { + const { formatMessage } = useIntl(); + const { product, loading } = useProduct({ slug: slug as string }); + + if (loading) return ; + + return ( + <> + +
+ +
+ + + ); +}; + +export default TicketEventDetailPage; diff --git a/admin-ui/src/pages/ticketing/index.tsx b/admin-ui/src/pages/ticketing/index.tsx new file mode 100644 index 0000000000..c191276e34 --- /dev/null +++ b/admin-ui/src/pages/ticketing/index.tsx @@ -0,0 +1,102 @@ +import { useIntl } from 'react-intl'; +import { useRouter } from 'next/router'; + +import BreadCrumbs from '../../modules/common/components/BreadCrumbs'; +import PageHeader from '../../modules/common/components/PageHeader'; +import Loading from '../../modules/common/components/Loading'; +import NoData from '../../modules/common/components/NoData'; +import ListHeader from '../../modules/common/components/ListHeader'; +import SearchWithTags from '../../modules/common/components/SearchWithTags'; +import AnimatedCounter from '../../modules/common/components/AnimatedCounter'; +import TicketEventList from '../../modules/ticketing/components/TicketEventList'; +import useEventProducts from '../../modules/ticketing/hooks/useEventProducts'; +import TicketEventDetailPage from './TicketEventDetailPage'; + +const TicketingPage = () => { + const { formatMessage } = useIntl(); + const { query, push } = useRouter(); + + const { queryString, slug, ...rest } = query; + + const setQueryString = (searchString) => { + const { skip, ...withoutSkip } = rest; + if (searchString) + push({ + query: { + ...withoutSkip, + queryString: searchString, + }, + }); + else + push({ + query: { + ...rest, + }, + }); + }; + + const { products, productsCount, loading } = useEventProducts({ + limit: 0, + offset: 0, + queryString: queryString as string, + }); + + if (slug) return ; + + const headerText = + productsCount === 1 + ? formatMessage({ + id: 'event_header', + defaultMessage: '1 Event', + }) + : formatMessage( + { + id: 'event_count_header', + defaultMessage: '{count} Events', + }, + { count: }, + ); + + return ( + <> + + +
+ + + + <> + {loading ? ( + + ) : ( + + )} + {!loading && !products?.length && ( + + )} + + +
+ + ); +}; + +export default TicketingPage; diff --git a/admin-ui/src/pages/tokens/TokenDetailPage.tsx b/admin-ui/src/pages/tokens/TokenDetailPage.tsx index 9bd520bff5..3d18f22bb2 100644 --- a/admin-ui/src/pages/tokens/TokenDetailPage.tsx +++ b/admin-ui/src/pages/tokens/TokenDetailPage.tsx @@ -1,4 +1,3 @@ -import { useRouter } from 'next/router'; import { IRoleAction } from '../../gql/types'; import useToken from '../../modules/token/hooks/useToken'; @@ -12,6 +11,7 @@ import HeaderDeleteButton from '../../modules/common/components/HeaderDeleteButt import DangerMessage from '../../modules/modal/components/DangerMessage'; import useModal from '../../modules/modal/hooks/useModal'; import useInvalidateTicket from '../../modules/token/hooks/useInvalidateTicket'; +import useCancelTicket from '../../modules/ticketing/hooks/useCancelTicket'; import { toast } from 'react-toastify'; import { useCallback } from 'react'; import useAuth from '../../modules/Auth/useAuth'; @@ -20,8 +20,10 @@ const TokenDetailPage = ({ tokenId }) => { const { formatMessage } = useIntl(); const { setModal } = useModal(); - const { token, loading } = useToken({ tokenId: tokenId as string }); + const { token: rawToken, loading } = useToken({ tokenId: tokenId as string }); + const token = rawToken as typeof rawToken & { isCanceled?: boolean }; const { invalidateTicket } = useInvalidateTicket(); + const { cancelTicket } = useCancelTicket(); const { hasRole } = useAuth(); const onInvalidateToken = useCallback(async () => { @@ -29,23 +31,54 @@ const TokenDetailPage = ({ tokenId }) => { setModal('')} message={formatMessage({ - id: 'delete_paymentProvider_confirmation', + id: 'invalidate_token_confirmation', defaultMessage: - 'This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this Payment provider? ', + 'Are you sure you want to invalidate this token? This marks it as redeemed.', })} onOkClick={async () => { setModal(''); await invalidateTicket({ tokenId }); toast.success( formatMessage({ - id: 'payment_provider_deleted', - defaultMessage: 'Payment provider deleted successfully', + id: 'token_invalidated', + defaultMessage: 'Token invalidated successfully', }), ); }} okText={formatMessage({ - id: 'delete_payment_provider', - defaultMessage: 'Delete payment provider', + id: 'invalidate_token', + defaultMessage: 'Invalidate', + })} + />, + ); + }, [tokenId]); + + const onCancelToken = useCallback(async () => { + await setModal( + setModal('')} + message={formatMessage({ + id: 'cancel_ticket_confirmation', + defaultMessage: + 'Are you sure you want to cancel this ticket? This action cannot be undone.', + })} + onOkClick={async () => { + setModal(''); + try { + await cancelTicket({ tokenId }); + toast.success( + formatMessage({ + id: 'ticket_cancelled', + defaultMessage: 'Ticket cancelled successfully', + }), + ); + } catch (e) { + toast.error(e.message); + } + }} + okText={formatMessage({ + id: 'cancel_ticket', + defaultMessage: 'Cancel Ticket', })} />, ); @@ -72,17 +105,29 @@ const TokenDetailPage = ({ tokenId }) => { )}
- {!token.invalidatedDate && - token.isInvalidateable && - hasRole(IRoleAction.UpdateToken) ? ( - - ) : null} +
+ {!token.isCanceled && hasRole(IRoleAction.UpdateToken) && ( + + )} + {!token.invalidatedDate && + token.isInvalidateable && + !token.isCanceled && + hasRole(IRoleAction.UpdateToken) ? ( + + ) : null} +
diff --git a/packages/api/src/resolvers/mutations/index.ts b/packages/api/src/resolvers/mutations/index.ts index f155fb0e9c..da806845ec 100755 --- a/packages/api/src/resolvers/mutations/index.ts +++ b/packages/api/src/resolvers/mutations/index.ts @@ -84,6 +84,8 @@ import updateWarehousingProvider from './warehousing/updateWarehousingProvider.t import removeWarehousingProvider from './warehousing/removeWarehousingProvider.ts'; import exportToken from './warehousing/exportToken.ts'; import invalidateToken from './warehousing/invalidateToken.ts'; +import cancelTicket from './warehousing/cancelTicket.ts'; +import cancelEvent from './warehousing/cancelEvent.ts'; import setPassword from './accounts/setPassword.ts'; import setRoles from './users/setRoles.ts'; import setUsername from './accounts/setUsername.ts'; @@ -266,6 +268,8 @@ export default { removeWarehousingProvider: acl(actions.manageWarehousingProviders)(removeWarehousingProvider), exportToken: acl(actions.updateToken)(exportToken), invalidateToken: acl(actions.updateToken)(invalidateToken), + cancelTicket: acl(actions.updateToken)(cancelTicket), + cancelEvent: acl(actions.manageProducts)(cancelEvent), createFilter: acl(actions.manageFilters)(createFilter), updateFilter: acl(actions.manageFilters)(updateFilter), removeFilter: acl(actions.manageFilters)(removeFilter), diff --git a/packages/api/src/resolvers/mutations/warehousing/cancelEvent.ts b/packages/api/src/resolvers/mutations/warehousing/cancelEvent.ts new file mode 100644 index 0000000000..4108fa32f5 --- /dev/null +++ b/packages/api/src/resolvers/mutations/warehousing/cancelEvent.ts @@ -0,0 +1,37 @@ +import type { Context } from '../../../context.ts'; +import { log } from '@unchainedshop/logger'; +import { InvalidIdError, ProductNotFoundError } from '../../../errors.ts'; + +export default async function cancelEvent( + root: never, + { productId }: { productId: string }, + context: Context, +) { + const { modules, services, userId } = context; + log(`mutation cancelEvent ${productId}`, { userId }); + + if (!productId) throw new InvalidIdError({ productId }); + + const product = await modules.products.findProduct({ productId }); + if (!product) throw new ProductNotFoundError({ productId }); + + // Use ticketing service if available + if ((services as any).ticketing?.cancelTicketsForProduct) { + return (services as any).ticketing.cancelTicketsForProduct(productId); + } + + // Fallback: cancel all tokens for the product manually + const tokensToCancel = await modules.warehousing.findTokens({ + productId, + 'meta.cancelled': null, + }); + + for (const token of tokensToCancel) { + await modules.warehousing.invalidateToken(token._id); + if ((modules as any).passes?.cancelTicket) { + await (modules as any).passes.cancelTicket(token._id); + } + } + + return tokensToCancel.length; +} diff --git a/packages/api/src/resolvers/mutations/warehousing/cancelTicket.ts b/packages/api/src/resolvers/mutations/warehousing/cancelTicket.ts new file mode 100644 index 0000000000..f5f2f1e2d5 --- /dev/null +++ b/packages/api/src/resolvers/mutations/warehousing/cancelTicket.ts @@ -0,0 +1,36 @@ +import type { Context } from '../../../context.ts'; +import { log } from '@unchainedshop/logger'; +import { InvalidIdError, TokenNotFoundError } from '../../../errors.ts'; + +export default async function cancelTicket( + root: never, + { tokenId }: { tokenId: string }, + context: Context, +) { + const { modules, userId } = context; + log(`mutation cancelTicket ${tokenId}`, { userId }); + + if (!tokenId) throw new InvalidIdError({ tokenId }); + + const token = await modules.warehousing.findToken({ tokenId }); + if (!token) throw new TokenNotFoundError({ tokenId }); + + if (token.meta?.cancelled) { + return token; + } + + // Use ticketing module if available, otherwise update directly + if ((modules as any).passes?.cancelTicket) { + return (modules as any).passes.cancelTicket(tokenId); + } + + // Fallback: directly update token meta + const tokens = await modules.warehousing.findTokens({ _id: tokenId }); + const existingToken = tokens[0]; + if (!existingToken) throw new TokenNotFoundError({ tokenId }); + + // Invalidate the token and mark as cancelled + await modules.warehousing.invalidateToken(tokenId); + const updatedToken = await modules.warehousing.findToken({ tokenId }); + return updatedToken; +} diff --git a/packages/api/src/resolvers/queries/index.ts b/packages/api/src/resolvers/queries/index.ts index 1202330967..c37977c345 100755 --- a/packages/api/src/resolvers/queries/index.ts +++ b/packages/api/src/resolvers/queries/index.ts @@ -64,6 +64,8 @@ import warehousingProvidersCount from './warehousing/warehousingProvidersCount.t import token from './warehousing/token.ts'; import tokens from './warehousing/tokens.ts'; import tokensCount from './warehousing/tokensCount.ts'; +import ticketEvents from './ticketing/ticketEvents.ts'; +import ticketEventsCount from './ticketing/ticketEventsCount.ts'; import work from './worker/work.ts'; import workQueue from './worker/workQueue.ts'; import workStatistics from './worker/workStatistics.ts'; @@ -108,6 +110,8 @@ export default { token: acl(actions.viewToken)(token), tokens: acl(actions.viewTokens)(tokens), tokensCount: acl(actions.viewTokens)(tokensCount), + ticketEvents: acl(actions.viewTokens)(ticketEvents), + ticketEventsCount: acl(actions.viewTokens)(ticketEventsCount), translatedProductTexts: acl(actions.viewTranslations)(translatedProductTexts), translatedProductMediaTexts: acl(actions.viewTranslations)(translatedProductMediaTexts), translatedProductVariationTexts: acl(actions.viewTranslations)(translatedProductVariationTexts), diff --git a/packages/api/src/resolvers/queries/products/products.ts b/packages/api/src/resolvers/queries/products/products.ts index ff6dbd7224..40456f6057 100644 --- a/packages/api/src/resolvers/queries/products/products.ts +++ b/packages/api/src/resolvers/queries/products/products.ts @@ -12,11 +12,6 @@ export default async function products( }, { modules, userId }: Context, ) { - log( - `query products: ${params.limit || 0} ${params.offset || 0} ${ - params.includeDrafts ? 'includeDrafts' : '' - } ${params.slugs?.join(',')}`, - { userId }, - ); + log(`query products `, { ...params, userId }); return modules.products.findProducts(params); } diff --git a/packages/api/src/resolvers/queries/ticketing/ticketEvents.ts b/packages/api/src/resolvers/queries/ticketing/ticketEvents.ts new file mode 100644 index 0000000000..7377426cdd --- /dev/null +++ b/packages/api/src/resolvers/queries/ticketing/ticketEvents.ts @@ -0,0 +1,33 @@ +import { log } from '@unchainedshop/logger'; +import type { SortOption } from '@unchainedshop/utils'; +import type { Context } from '../../../context.ts'; + +export default async function ticketEvents( + root: never, + { + queryString, + limit = 50, + offset = 0, + includeDrafts = true, + sort, + }: { + queryString?: string; + limit: number; + offset: number; + includeDrafts?: boolean; + sort?: SortOption[]; + }, + { modules, userId }: Context, +) { + log(`query ticketEvents`, { userId }); + + return modules.products.findProducts({ + type: 'TOKENIZED_PRODUCT', + contractStandard: 'ERC721', + queryString, + includeDrafts, + limit, + offset, + sort, + }); +} diff --git a/packages/api/src/resolvers/queries/ticketing/ticketEventsCount.ts b/packages/api/src/resolvers/queries/ticketing/ticketEventsCount.ts new file mode 100644 index 0000000000..b26a23b812 --- /dev/null +++ b/packages/api/src/resolvers/queries/ticketing/ticketEventsCount.ts @@ -0,0 +1,23 @@ +import { log } from '@unchainedshop/logger'; +import type { Context } from '../../../context.ts'; + +export default async function ticketEventsCount( + root: never, + { + queryString, + includeDrafts = true, + }: { + queryString?: string; + includeDrafts?: boolean; + }, + { modules, userId }: Context, +) { + log(`query ticketEventsCount`, { userId }); + + return modules.products.count({ + type: 'TOKENIZED_PRODUCT', + contractStandard: 'ERC721', + queryString, + includeDrafts, + }); +} diff --git a/packages/api/src/resolvers/type/token-types.ts b/packages/api/src/resolvers/type/token-types.ts index 83952e4911..650209f60e 100644 --- a/packages/api/src/resolvers/type/token-types.ts +++ b/packages/api/src/resolvers/type/token-types.ts @@ -36,6 +36,10 @@ export const Token = { return services.warehousing.isTokenInvalidateable({ token }); }, + isCanceled: async (token: TokenSurrogate) => { + return Boolean(token.meta?.cancelled); + }, + accessKey: async (token: TokenSurrogate, params: never, requestContext: Context) => { const { modules } = requestContext; await checkAction(requestContext, actions.updateToken, [undefined, { tokenId: token._id }]); diff --git a/packages/api/src/schema/mutation.ts b/packages/api/src/schema/mutation.ts index d5305ec405..aee784d555 100644 --- a/packages/api/src/schema/mutation.ts +++ b/packages/api/src/schema/mutation.ts @@ -858,6 +858,17 @@ export default [ invalidateToken(tokenId: ID!): Token! exportToken(tokenId: ID!, quantity: Int! = 1, recipientWalletAddress: String!): Token! + """ + Cancel a ticket (token). Sets the cancelled flag on the token metadata. + """ + cancelTicket(tokenId: ID!): Token! + + """ + Cancel all tickets for an event (tokenized product). Invalidates all non-cancelled tokens. + Returns the number of tickets cancelled. + """ + cancelEvent(productId: ID!): Int! + """ Store user W3C Push subscription object """ diff --git a/packages/api/src/schema/query.ts b/packages/api/src/schema/query.ts index 018447c250..bc3a4ba72a 100644 --- a/packages/api/src/schema/query.ts +++ b/packages/api/src/schema/query.ts @@ -50,6 +50,7 @@ export default [ slugs: [String!] includeDrafts: Boolean = false queryString: String + type: ProductType ): Int! @cacheControl(maxAge: 180) """ @@ -65,6 +66,7 @@ export default [ offset: Int = 0 includeDrafts: Boolean = false sort: [SortOptionInput!] + type: ProductType ): [Product!]! """ @@ -225,6 +227,22 @@ export default [ """ tokensCount(queryString: String): Int! + """ + List all ticket events (tokenized products), by default includes drafts + """ + ticketEvents( + queryString: String + limit: Int = 50 + offset: Int = 0 + includeDrafts: Boolean = true + sort: [SortOptionInput!] + ): [Product!]! + + """ + Returns total number of ticket events (tokenized products) + """ + ticketEventsCount(queryString: String, includeDrafts: Boolean = true): Int! + """ Returns total number of payment providers, optionally filtered by type """ diff --git a/packages/api/src/schema/types/warehousing.ts b/packages/api/src/schema/types/warehousing.ts index 8e21f192aa..f64af5115e 100644 --- a/packages/api/src/schema/types/warehousing.ts +++ b/packages/api/src/schema/types/warehousing.ts @@ -60,6 +60,7 @@ export default [ chainId: String tokenSerialNumber: String ercMetadata(forceLocale: Locale): JSON + isCanceled: Boolean } `, ]; diff --git a/packages/core-products/src/module/configureProductsModule.ts b/packages/core-products/src/module/configureProductsModule.ts index 02782dd3f6..ebf7c374dd 100644 --- a/packages/core-products/src/module/configureProductsModule.ts +++ b/packages/core-products/src/module/configureProductsModule.ts @@ -34,6 +34,8 @@ export interface ProductQuery { slugs?: string[]; tags?: string[]; skus?: string[]; + type?: string; + contractStandard?: string; bundleItemProductIds?: string[]; proxyAssignmentProductIds?: string[]; } @@ -75,9 +77,19 @@ export const buildFindSelector = ({ skus, bundleItemProductIds, proxyAssignmentProductIds, + type, + contractStandard, }: ProductQuery) => { const selector: mongodb.Filter = productSelector ? { ...productSelector } : {}; + if (type && !selector.type) { + selector.type = type as ProductType; + } + + if (contractStandard) { + (selector as any)['tokenization.contractStandard'] = contractStandard; + } + if (productIds && !selector._id) { selector._id = { $in: productIds }; } From 826c365fd43fb04015be9af0d3965d0f6e1d66fc Mon Sep 17 00:00:00 2001 From: Mikael Araya Date: Tue, 10 Mar 2026 23:33:15 +0300 Subject: [PATCH 2/7] Extend erc minter --- admin-ui/src/gql/types.ts | 12503 ++++++++++++++-- .../components/TicketEventDetail.tsx | 71 +- .../ticketing/components/TicketEventList.tsx | 2 +- .../components/TicketEventListItem.tsx | 3 +- .../ticketing/hooks/useEventProducts.ts | 5 +- .../pages/ticketing/TicketEventDetailPage.tsx | 4 +- admin-ui/src/pages/ticketing/index.tsx | 9 +- packages/api/src/errors.ts | 5 + .../mutations/warehousing/cancelEvent.ts | 31 +- .../mutations/warehousing/cancelTicket.ts | 23 +- .../mutations/warehousing/invalidateToken.ts | 10 +- packages/core/src/services/index.ts | 2 + .../core/src/services/onTokenInvalidated.ts | 30 + .../src/warehousing/eth-minter/adapter.ts | 150 +- 14 files changed, 11122 insertions(+), 1726 deletions(-) create mode 100644 packages/core/src/services/onTokenInvalidated.ts diff --git a/admin-ui/src/gql/types.ts b/admin-ui/src/gql/types.ts index 91f6981eb2..8b34dd229b 100644 --- a/admin-ui/src/gql/types.ts +++ b/admin-ui/src/gql/types.ts @@ -1,23 +1,36 @@ export type Maybe = T | null; export type InputMaybe = Maybe; -export type Exact = { [K in keyof T]: T[K] }; -export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; -export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; -export type MakeEmpty = { [_ in K]?: never }; -export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; +export type Exact = { + [K in keyof T]: T[K]; +}; +export type MakeOptional = Omit & { + [SubKey in K]?: Maybe; +}; +export type MakeMaybe = Omit & { + [SubKey in K]: Maybe; +}; +export type MakeEmpty< + T extends { [key: string]: unknown }, + K extends keyof T, +> = { [_ in K]?: never }; +export type Incremental = + | T + | { + [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never; + }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: { input: string; output: string; } - String: { input: string; output: string; } - Boolean: { input: boolean; output: boolean; } - Int: { input: number; output: number; } - Float: { input: number; output: number; } - Date: { input: any; output: any; } - DateTimeISO: { input: any; output: any; } - JSON: { input: any; output: any; } - Locale: { input: any; output: any; } - LowerCaseString: { input: any; output: any; } - Timestamp: { input: any; output: any; } + ID: { input: string; output: string }; + String: { input: string; output: string }; + Boolean: { input: boolean; output: boolean }; + Int: { input: number; output: number }; + Float: { input: number; output: number }; + Date: { input: any; output: any }; + DateTimeISO: { input: any; output: any }; + JSON: { input: any; output: any }; + Locale: { input: any; output: any }; + LowerCaseString: { input: any; output: any }; + Timestamp: { input: any; output: any }; }; export type IAddress = { @@ -85,19 +98,16 @@ export type IAssortment = { updated?: Maybe; }; - /** Assortment */ export type IAssortmentChildrenArgs = { includeInactive?: InputMaybe; }; - /** Assortment */ export type IAssortmentChildrenCountArgs = { includeInactive?: InputMaybe; }; - /** Assortment */ export type IAssortmentMediaArgs = { limit?: InputMaybe; @@ -105,7 +115,6 @@ export type IAssortmentMediaArgs = { tags?: InputMaybe>; }; - /** Assortment */ export type IAssortmentSearchProductsArgs = { filterQuery?: InputMaybe>; @@ -115,7 +124,6 @@ export type IAssortmentSearchProductsArgs = { queryString?: InputMaybe; }; - /** Assortment */ export type IAssortmentTextsArgs = { forceLocale?: InputMaybe; @@ -145,7 +153,6 @@ export type IAssortmentMedia = { texts?: Maybe; }; - export type IAssortmentMediaTextsArgs = { forceLocale?: InputMaybe; }; @@ -179,7 +186,6 @@ export type IAssortmentPathLink = { link?: Maybe; }; - /** * A connection that represents an uplink from assortment to assortment, * assortmentId and assortmentTexts are there for convenience @@ -202,7 +208,6 @@ export type IAssortmentSearchResult = { assortmentsCount: Scalars['Int']['output']; }; - export type IAssortmentSearchResultAssortmentsArgs = { limit?: InputMaybe; offset?: InputMaybe; @@ -257,20 +262,17 @@ export type IBundleProduct = IProduct & { updated?: Maybe; }; - /** A Bundle product consists of multiple products */ export type IBundleProductCatalogPriceArgs = { currencyCode?: InputMaybe; quantity?: InputMaybe; }; - /** A Bundle product consists of multiple products */ export type IBundleProductLeveledCatalogPricesArgs = { currencyCode?: InputMaybe; }; - /** A Bundle product consists of multiple products */ export type IBundleProductMediaArgs = { limit?: InputMaybe; @@ -278,7 +280,6 @@ export type IBundleProductMediaArgs = { tags?: InputMaybe>; }; - /** A Bundle product consists of multiple products */ export type IBundleProductReviewsArgs = { limit?: InputMaybe; @@ -287,13 +288,11 @@ export type IBundleProductReviewsArgs = { sort?: InputMaybe>; }; - /** A Bundle product consists of multiple products */ export type IBundleProductReviewsCountArgs = { queryString?: InputMaybe; }; - /** A Bundle product consists of multiple products */ export type IBundleProductSiblingsArgs = { assortmentId?: InputMaybe; @@ -302,7 +301,6 @@ export type IBundleProductSiblingsArgs = { offset?: InputMaybe; }; - /** A Bundle product consists of multiple products */ export type IBundleProductSimulatedPriceArgs = { configuration?: InputMaybe>; @@ -311,7 +309,6 @@ export type IBundleProductSimulatedPriceArgs = { useNetPrice?: InputMaybe; }; - /** A Bundle product consists of multiple products */ export type IBundleProductTextsArgs = { forceLocale?: InputMaybe; @@ -319,7 +316,7 @@ export type IBundleProductTextsArgs = { export enum ICacheControlScope { Private = 'PRIVATE', - Public = 'PUBLIC' + Public = 'PUBLIC', } export type IColor = { @@ -330,7 +327,9 @@ export type IColor = { red?: Maybe; }; -export type IConfigurableOrBundleProduct = IBundleProduct | IConfigurableProduct; +export type IConfigurableOrBundleProduct = + | IBundleProduct + | IConfigurableProduct; /** Configurable Product (Proxy) */ export type IConfigurableProduct = IProduct & { @@ -358,13 +357,11 @@ export type IConfigurableProduct = IProduct & { variations?: Maybe>; }; - /** Configurable Product (Proxy) */ export type IConfigurableProductAssignmentsArgs = { includeInactive?: InputMaybe; }; - /** Configurable Product (Proxy) */ export type IConfigurableProductCatalogPriceRangeArgs = { currencyCode?: InputMaybe; @@ -373,7 +370,6 @@ export type IConfigurableProductCatalogPriceRangeArgs = { vectors?: InputMaybe>; }; - /** Configurable Product (Proxy) */ export type IConfigurableProductMediaArgs = { limit?: InputMaybe; @@ -381,14 +377,12 @@ export type IConfigurableProductMediaArgs = { tags?: InputMaybe>; }; - /** Configurable Product (Proxy) */ export type IConfigurableProductProductsArgs = { includeInactive?: InputMaybe; vectors?: InputMaybe>; }; - /** Configurable Product (Proxy) */ export type IConfigurableProductReviewsArgs = { limit?: InputMaybe; @@ -397,13 +391,11 @@ export type IConfigurableProductReviewsArgs = { sort?: InputMaybe>; }; - /** Configurable Product (Proxy) */ export type IConfigurableProductReviewsCountArgs = { queryString?: InputMaybe; }; - /** Configurable Product (Proxy) */ export type IConfigurableProductSiblingsArgs = { assortmentId?: InputMaybe; @@ -412,7 +404,6 @@ export type IConfigurableProductSiblingsArgs = { offset?: InputMaybe; }; - /** Configurable Product (Proxy) */ export type IConfigurableProductSimulatedPriceRangeArgs = { currencyCode?: InputMaybe; @@ -422,7 +413,6 @@ export type IConfigurableProductSimulatedPriceRangeArgs = { vectors?: InputMaybe>; }; - /** Configurable Product (Proxy) */ export type IConfigurableProductTextsArgs = { forceLocale?: InputMaybe; @@ -455,7 +445,6 @@ export type ICountry = { name?: Maybe; }; - export type ICountryNameArgs = { forceLocale?: InputMaybe; }; @@ -547,7 +536,6 @@ export type IDeliveryProvider = { updated?: Maybe; }; - export type IDeliveryProviderSimulatedPriceArgs = { context?: InputMaybe; currencyCode?: InputMaybe; @@ -559,7 +547,7 @@ export enum IDeliveryProviderError { AdapterNotFound = 'ADAPTER_NOT_FOUND', IncompleteConfiguration = 'INCOMPLETE_CONFIGURATION', NotImplemented = 'NOT_IMPLEMENTED', - WrongCredentials = 'WRONG_CREDENTIALS' + WrongCredentials = 'WRONG_CREDENTIALS', } export type IDeliveryProviderPickUp = IDeliveryProvider & { @@ -576,7 +564,6 @@ export type IDeliveryProviderPickUp = IDeliveryProvider & { updated?: Maybe; }; - export type IDeliveryProviderPickUpSimulatedPriceArgs = { context?: InputMaybe; currencyCode?: InputMaybe; @@ -597,7 +584,6 @@ export type IDeliveryProviderShipping = IDeliveryProvider & { updated?: Maybe; }; - export type IDeliveryProviderShippingSimulatedPriceArgs = { context?: InputMaybe; currencyCode?: InputMaybe; @@ -609,7 +595,7 @@ export enum IDeliveryProviderType { /** Pick-Up */ Pickup = 'PICKUP', /** Shipping */ - Shipping = 'SHIPPING' + Shipping = 'SHIPPING', } export type IDimensions = { @@ -619,22 +605,18 @@ export type IDimensions = { width?: Maybe; }; - export type IDimensionsHeightArgs = { unit?: InputMaybe; }; - export type IDimensionsLengthArgs = { unit?: InputMaybe; }; - export type IDimensionsWeightArgs = { unit?: InputMaybe; }; - export type IDimensionsWidthArgs = { unit?: InputMaybe; }; @@ -674,7 +656,6 @@ export type IEnrollment = { user: IUser; }; - /** Enrollment */ export type IEnrollmentIsExpiredArgs = { referenceDate?: InputMaybe; @@ -725,7 +706,7 @@ export enum IEnrollmentStatus { /** Paused because of overdue payments */ Paused = 'PAUSED', /** Terminated / Ended enrollment */ - Terminated = 'TERMINATED' + Terminated = 'TERMINATED', } export type IEvent = { @@ -873,14 +854,14 @@ export enum IEventType { WorkAllocated = 'WORK_ALLOCATED', WorkDeleted = 'WORK_DELETED', WorkFinished = 'WORK_FINISHED', - WorkRescheduled = 'WORK_RESCHEDULED' + WorkRescheduled = 'WORK_RESCHEDULED', } export enum IExternalLinkTarget { /** Open on new tab */ Blank = 'BLANK', /** Open in own Iframe */ - Self = 'SELF' + Self = 'SELF', } export type IFilter = { @@ -894,7 +875,6 @@ export type IFilter = { updated?: Maybe; }; - export type IFilterTextsArgs = { forceLocale?: InputMaybe; }; @@ -905,7 +885,6 @@ export type IFilterOption = { value?: Maybe; }; - export type IFilterOptionTextsArgs = { forceLocale?: InputMaybe; }; @@ -936,7 +915,7 @@ export enum IFilterType { /** Single-choice */ SingleChoice = 'SINGLE_CHOICE', /** Switch / Boolean */ - Switch = 'SWITCH' + Switch = 'SWITCH', } export type IGeoPosition = { @@ -957,7 +936,7 @@ export type ILanguage = { export enum ILengthUnit { Feet = 'FEET', Meters = 'METERS', - Millimeters = 'MILLIMETERS' + Millimeters = 'MILLIMETERS', } export type ILoadedFilter = { @@ -987,7 +966,7 @@ export type ILoginMethodResponse = { export enum IMassUnit { Gram = 'GRAM', Kilogram = 'KILOGRAM', - Pounds = 'POUNDS' + Pounds = 'POUNDS', } export type IMedia = { @@ -998,7 +977,6 @@ export type IMedia = { url?: Maybe; }; - export type IMediaUrlArgs = { baseUrl?: InputMaybe; version?: InputMaybe; @@ -1295,7 +1273,9 @@ export type IMutation = { /** Sign a generic order payment */ signPaymentProviderForCheckout: Scalars['String']['output']; /** Sign a generic payment provider for registration */ - signPaymentProviderForCredentialRegistration?: Maybe; + signPaymentProviderForCredentialRegistration?: Maybe< + Scalars['String']['output'] + >; /** End customer impersonated user session and resume the impersonator session */ stopImpersonation?: Maybe; /** Terminate an actively running enrollment by changing it's status to TERMINATED */ @@ -1379,39 +1359,33 @@ export type IMutation = { verifyWeb3Address: IUser; }; - export type IMutationActivateEnrollmentArgs = { enrollmentId: Scalars['ID']['input']; }; - export type IMutationAddAssortmentFilterArgs = { assortmentId: Scalars['ID']['input']; filterId: Scalars['ID']['input']; tags?: InputMaybe>; }; - export type IMutationAddAssortmentLinkArgs = { childAssortmentId: Scalars['ID']['input']; parentAssortmentId: Scalars['ID']['input']; tags?: InputMaybe>; }; - export type IMutationAddAssortmentProductArgs = { assortmentId: Scalars['ID']['input']; productId: Scalars['ID']['input']; tags?: InputMaybe>; }; - export type IMutationAddCartDiscountArgs = { code: Scalars['String']['input']; orderId?: InputMaybe; }; - export type IMutationAddCartProductArgs = { configuration?: InputMaybe>; orderId?: InputMaybe; @@ -1419,7 +1393,6 @@ export type IMutationAddCartProductArgs = { quantity?: InputMaybe; }; - export type IMutationAddCartQuotationArgs = { configuration?: InputMaybe>; orderId?: InputMaybe; @@ -1427,49 +1400,41 @@ export type IMutationAddCartQuotationArgs = { quotationId: Scalars['ID']['input']; }; - export type IMutationAddEmailArgs = { email: Scalars['String']['input']; userId?: InputMaybe; }; - export type IMutationAddMultipleCartProductsArgs = { items: Array; orderId?: InputMaybe; }; - export type IMutationAddProductAssignmentArgs = { productId: Scalars['ID']['input']; proxyId: Scalars['ID']['input']; vectors: Array; }; - export type IMutationAddProductReviewVoteArgs = { meta?: InputMaybe; productReviewId: Scalars['ID']['input']; type: IProductReviewVoteType; }; - export type IMutationAddPushSubscriptionArgs = { subscription: Scalars['JSON']['input']; unsubscribeFromOtherUsers?: InputMaybe; }; - export type IMutationAddWeb3AddressArgs = { address: Scalars['String']['input']; }; - export type IMutationAddWebAuthnCredentialsArgs = { credentials: Scalars['JSON']['input']; }; - export type IMutationAddWorkArgs = { input?: InputMaybe; originalWorkId?: InputMaybe; @@ -1480,49 +1445,41 @@ export type IMutationAddWorkArgs = { worker?: InputMaybe; }; - export type IMutationAllocateWorkArgs = { types?: InputMaybe>>; worker?: InputMaybe; }; - export type IMutationBookmarkArgs = { bookmarked?: InputMaybe; productId: Scalars['ID']['input']; }; - export type IMutationCancelEventArgs = { productId: Scalars['ID']['input']; }; - export type IMutationCancelTicketArgs = { tokenId: Scalars['ID']['input']; }; - export type IMutationChangePasswordArgs = { newPassword: Scalars['String']['input']; oldPassword: Scalars['String']['input']; }; - export type IMutationCheckoutCartArgs = { deliveryContext?: InputMaybe; orderId?: InputMaybe; paymentContext?: InputMaybe; }; - export type IMutationConfirmMediaUploadArgs = { mediaUploadTicketId: Scalars['ID']['input']; size: Scalars['Int']['input']; type: Scalars['String']['input']; }; - export type IMutationConfirmOrderArgs = { comment?: InputMaybe; deliveryContext?: InputMaybe; @@ -1530,40 +1487,33 @@ export type IMutationConfirmOrderArgs = { paymentContext?: InputMaybe; }; - export type IMutationCreateAssortmentArgs = { assortment: ICreateAssortmentInput; texts?: InputMaybe>; }; - export type IMutationCreateBookmarkArgs = { meta?: InputMaybe; productId: Scalars['ID']['input']; userId: Scalars['ID']['input']; }; - export type IMutationCreateCartArgs = { orderNumber: Scalars['String']['input']; }; - export type IMutationCreateCountryArgs = { country: ICreateCountryInput; }; - export type IMutationCreateCurrencyArgs = { currency: ICreateCurrencyInput; }; - export type IMutationCreateDeliveryProviderArgs = { deliveryProvider: ICreateDeliveryProviderInput; }; - export type IMutationCreateEnrollmentArgs = { billingAddress?: InputMaybe; contact?: InputMaybe; @@ -1573,62 +1523,52 @@ export type IMutationCreateEnrollmentArgs = { plan: IEnrollmentPlanInput; }; - export type IMutationCreateFilterArgs = { filter: ICreateFilterInput; texts?: InputMaybe>; }; - export type IMutationCreateFilterOptionArgs = { filterId: Scalars['ID']['input']; option: Scalars['String']['input']; texts?: InputMaybe>; }; - export type IMutationCreateLanguageArgs = { language: ICreateLanguageInput; }; - export type IMutationCreatePaymentProviderArgs = { paymentProvider: ICreatePaymentProviderInput; }; - export type IMutationCreateProductArgs = { product: ICreateProductInput; texts?: InputMaybe>; }; - export type IMutationCreateProductBundleItemArgs = { item: ICreateProductBundleItemInput; productId: Scalars['ID']['input']; }; - export type IMutationCreateProductReviewArgs = { productId: Scalars['ID']['input']; productReview: IProductReviewInput; }; - export type IMutationCreateProductVariationArgs = { productId: Scalars['ID']['input']; texts?: InputMaybe>; variation: ICreateProductVariationInput; }; - export type IMutationCreateProductVariationOptionArgs = { option: Scalars['String']['input']; productVariationId: Scalars['ID']['input']; texts?: InputMaybe>; }; - export type IMutationCreateUserArgs = { email?: InputMaybe; password?: InputMaybe; @@ -1637,48 +1577,40 @@ export type IMutationCreateUserArgs = { webAuthnPublicKeyCredentials?: InputMaybe; }; - export type IMutationCreateWarehousingProviderArgs = { warehousingProvider: ICreateWarehousingProviderInput; }; - export type IMutationCreateWebAuthnCredentialCreationOptionsArgs = { extensionOptions?: InputMaybe; username: Scalars['String']['input']; }; - export type IMutationCreateWebAuthnCredentialRequestOptionsArgs = { extensionOptions?: InputMaybe; username?: InputMaybe; }; - export type IMutationDeliverOrderArgs = { orderId: Scalars['ID']['input']; }; - export type IMutationEmptyCartArgs = { orderId?: InputMaybe; }; - export type IMutationEnrollUserArgs = { email: Scalars['String']['input']; password?: InputMaybe; profile: IUserProfileInput; }; - export type IMutationExportTokenArgs = { quantity?: Scalars['Int']['input']; recipientWalletAddress: Scalars['String']['input']; tokenId: Scalars['ID']['input']; }; - export type IMutationFinishWorkArgs = { error?: InputMaybe; finished?: InputMaybe; @@ -1689,90 +1621,74 @@ export type IMutationFinishWorkArgs = { worker?: InputMaybe; }; - export type IMutationForgotPasswordArgs = { email: Scalars['String']['input']; }; - export type IMutationImpersonateArgs = { userId: Scalars['ID']['input']; }; - export type IMutationInvalidateTokenArgs = { tokenId: Scalars['ID']['input']; }; - export type IMutationLoginWithPasswordArgs = { email?: InputMaybe; password: Scalars['String']['input']; username?: InputMaybe; }; - export type IMutationLoginWithWebAuthnArgs = { webAuthnPublicKeyCredentials: Scalars['JSON']['input']; }; - export type IMutationMakeQuotationProposalArgs = { quotationContext?: InputMaybe; quotationId: Scalars['ID']['input']; }; - export type IMutationMarkPaymentCredentialsPreferredArgs = { paymentCredentialsId: Scalars['ID']['input']; }; - export type IMutationPageViewArgs = { path: Scalars['String']['input']; referrer?: InputMaybe; }; - export type IMutationPayOrderArgs = { orderId: Scalars['ID']['input']; }; - export type IMutationPrepareAssortmentMediaUploadArgs = { assortmentId: Scalars['ID']['input']; mediaName: Scalars['String']['input']; }; - export type IMutationPrepareProductMediaUploadArgs = { mediaName: Scalars['String']['input']; productId: Scalars['ID']['input']; }; - export type IMutationPrepareUserAvatarUploadArgs = { mediaName: Scalars['String']['input']; userId?: InputMaybe; }; - export type IMutationProcessNextWorkArgs = { worker?: InputMaybe; }; - export type IMutationPublishProductArgs = { productId: Scalars['ID']['input']; }; - export type IMutationRegisterPaymentCredentialsArgs = { paymentProviderId: Scalars['ID']['input']; transactionContext: Scalars['JSON']['input']; }; - export type IMutationRejectOrderArgs = { comment?: InputMaybe; deliveryContext?: InputMaybe; @@ -1780,296 +1696,241 @@ export type IMutationRejectOrderArgs = { paymentContext?: InputMaybe; }; - export type IMutationRejectQuotationArgs = { quotationContext?: InputMaybe; quotationId: Scalars['ID']['input']; }; - export type IMutationRemoveAssortmentArgs = { assortmentId: Scalars['ID']['input']; }; - export type IMutationRemoveAssortmentFilterArgs = { assortmentFilterId: Scalars['ID']['input']; }; - export type IMutationRemoveAssortmentLinkArgs = { assortmentLinkId: Scalars['ID']['input']; }; - export type IMutationRemoveAssortmentMediaArgs = { assortmentMediaId: Scalars['ID']['input']; }; - export type IMutationRemoveAssortmentProductArgs = { assortmentProductId: Scalars['ID']['input']; }; - export type IMutationRemoveBookmarkArgs = { bookmarkId: Scalars['ID']['input']; }; - export type IMutationRemoveBundleItemArgs = { index: Scalars['Int']['input']; productId: Scalars['ID']['input']; }; - export type IMutationRemoveCartDiscountArgs = { discountId: Scalars['ID']['input']; }; - export type IMutationRemoveCartItemArgs = { itemId: Scalars['ID']['input']; }; - export type IMutationRemoveCountryArgs = { countryId: Scalars['ID']['input']; }; - export type IMutationRemoveCurrencyArgs = { currencyId: Scalars['ID']['input']; }; - export type IMutationRemoveDeliveryProviderArgs = { deliveryProviderId: Scalars['ID']['input']; }; - export type IMutationRemoveEmailArgs = { email: Scalars['String']['input']; userId?: InputMaybe; }; - export type IMutationRemoveFilterArgs = { filterId: Scalars['ID']['input']; }; - export type IMutationRemoveFilterOptionArgs = { filterId: Scalars['ID']['input']; filterOptionValue: Scalars['String']['input']; }; - export type IMutationRemoveLanguageArgs = { languageId: Scalars['ID']['input']; }; - export type IMutationRemoveOrderArgs = { orderId: Scalars['ID']['input']; }; - export type IMutationRemovePaymentCredentialsArgs = { paymentCredentialsId: Scalars['ID']['input']; }; - export type IMutationRemovePaymentProviderArgs = { paymentProviderId: Scalars['ID']['input']; }; - export type IMutationRemoveProductArgs = { productId: Scalars['ID']['input']; }; - export type IMutationRemoveProductAssignmentArgs = { proxyId: Scalars['ID']['input']; vectors: Array; }; - export type IMutationRemoveProductMediaArgs = { productMediaId: Scalars['ID']['input']; }; - export type IMutationRemoveProductReviewArgs = { productReviewId: Scalars['ID']['input']; }; - export type IMutationRemoveProductReviewVoteArgs = { productReviewId: Scalars['ID']['input']; type?: InputMaybe; }; - export type IMutationRemoveProductVariationArgs = { productVariationId: Scalars['ID']['input']; }; - export type IMutationRemoveProductVariationOptionArgs = { productVariationId: Scalars['ID']['input']; productVariationOptionValue: Scalars['String']['input']; }; - export type IMutationRemovePushSubscriptionArgs = { p256dh: Scalars['String']['input']; }; - export type IMutationRemoveUserArgs = { removeUserReviews?: InputMaybe; userId?: InputMaybe; }; - export type IMutationRemoveUserProductReviewsArgs = { userId: Scalars['ID']['input']; }; - export type IMutationRemoveWarehousingProviderArgs = { warehousingProviderId: Scalars['ID']['input']; }; - export type IMutationRemoveWeb3AddressArgs = { address: Scalars['String']['input']; }; - export type IMutationRemoveWebAuthnCredentialsArgs = { credentialsId: Scalars['ID']['input']; }; - export type IMutationRemoveWorkArgs = { workId: Scalars['ID']['input']; }; - export type IMutationReorderAssortmentFiltersArgs = { sortKeys: Array; }; - export type IMutationReorderAssortmentLinksArgs = { sortKeys: Array; }; - export type IMutationReorderAssortmentMediaArgs = { sortKeys: Array; }; - export type IMutationReorderAssortmentProductsArgs = { sortKeys: Array; }; - export type IMutationReorderProductMediaArgs = { sortKeys: Array; }; - export type IMutationRequestQuotationArgs = { configuration?: InputMaybe>; productId: Scalars['ID']['input']; }; - export type IMutationResetPasswordArgs = { newPassword: Scalars['String']['input']; token: Scalars['String']['input']; }; - export type IMutationSendEnrollmentEmailArgs = { email: Scalars['String']['input']; }; - export type IMutationSendVerificationEmailArgs = { email?: InputMaybe; }; - export type IMutationSetPasswordArgs = { newPassword: Scalars['String']['input']; userId: Scalars['ID']['input']; }; - export type IMutationSetRolesArgs = { roles: Array; userId: Scalars['ID']['input']; }; - export type IMutationSetUserTagsArgs = { tags: Array>; userId: Scalars['ID']['input']; }; - export type IMutationSetUsernameArgs = { userId: Scalars['ID']['input']; username: Scalars['String']['input']; }; - export type IMutationSignPaymentProviderForCheckoutArgs = { orderPaymentId?: InputMaybe; transactionContext?: InputMaybe; }; - export type IMutationSignPaymentProviderForCredentialRegistrationArgs = { paymentProviderId: Scalars['ID']['input']; transactionContext?: InputMaybe; }; - export type IMutationTerminateEnrollmentArgs = { enrollmentId: Scalars['ID']['input']; }; - export type IMutationUnpublishProductArgs = { productId: Scalars['ID']['input']; }; - export type IMutationUpdateAssortmentArgs = { assortment: IUpdateAssortmentInput; assortmentId: Scalars['ID']['input']; }; - export type IMutationUpdateAssortmentMediaTextsArgs = { assortmentMediaId: Scalars['ID']['input']; texts: Array; }; - export type IMutationUpdateAssortmentTextsArgs = { assortmentId: Scalars['ID']['input']; texts: Array; }; - export type IMutationUpdateCartArgs = { billingAddress?: InputMaybe; contact?: InputMaybe; @@ -2079,7 +1940,6 @@ export type IMutationUpdateCartArgs = { paymentProviderId?: InputMaybe; }; - export type IMutationUpdateCartDeliveryPickUpArgs = { deliveryProviderId: Scalars['ID']['input']; meta?: InputMaybe; @@ -2087,7 +1947,6 @@ export type IMutationUpdateCartDeliveryPickUpArgs = { orderPickUpLocationId: Scalars['ID']['input']; }; - export type IMutationUpdateCartDeliveryShippingArgs = { address?: InputMaybe; deliveryProviderId: Scalars['ID']['input']; @@ -2095,46 +1954,39 @@ export type IMutationUpdateCartDeliveryShippingArgs = { orderId?: InputMaybe; }; - export type IMutationUpdateCartItemArgs = { configuration?: InputMaybe>; itemId: Scalars['ID']['input']; quantity?: InputMaybe; }; - export type IMutationUpdateCartPaymentGenericArgs = { meta?: InputMaybe; orderId?: InputMaybe; paymentProviderId: Scalars['ID']['input']; }; - export type IMutationUpdateCartPaymentInvoiceArgs = { meta?: InputMaybe; orderId?: InputMaybe; paymentProviderId: Scalars['ID']['input']; }; - export type IMutationUpdateCountryArgs = { country: IUpdateCountryInput; countryId: Scalars['ID']['input']; }; - export type IMutationUpdateCurrencyArgs = { currency: IUpdateCurrencyInput; currencyId: Scalars['ID']['input']; }; - export type IMutationUpdateDeliveryProviderArgs = { deliveryProvider: IUpdateProviderInput; deliveryProviderId: Scalars['ID']['input']; }; - export type IMutationUpdateEnrollmentArgs = { billingAddress?: InputMaybe; contact?: InputMaybe; @@ -2145,117 +1997,98 @@ export type IMutationUpdateEnrollmentArgs = { plan?: InputMaybe; }; - export type IMutationUpdateFilterArgs = { filter: IUpdateFilterInput; filterId: Scalars['ID']['input']; }; - export type IMutationUpdateFilterTextsArgs = { filterId: Scalars['ID']['input']; filterOptionValue?: InputMaybe; texts: Array; }; - export type IMutationUpdateLanguageArgs = { language: IUpdateLanguageInput; languageId: Scalars['ID']['input']; }; - export type IMutationUpdatePaymentProviderArgs = { paymentProvider: IUpdateProviderInput; paymentProviderId: Scalars['ID']['input']; }; - export type IMutationUpdateProductArgs = { product: IUpdateProductInput; productId: Scalars['ID']['input']; }; - export type IMutationUpdateProductCommerceArgs = { commerce: IUpdateProductCommerceInput; productId: Scalars['ID']['input']; }; - export type IMutationUpdateProductMediaTextsArgs = { productMediaId: Scalars['ID']['input']; texts: Array; }; - export type IMutationUpdateProductPlanArgs = { plan: IUpdateProductPlanInput; productId: Scalars['ID']['input']; }; - export type IMutationUpdateProductReviewArgs = { productReview: IProductReviewInput; productReviewId: Scalars['ID']['input']; }; - export type IMutationUpdateProductSupplyArgs = { productId: Scalars['ID']['input']; supply: IUpdateProductSupplyInput; }; - export type IMutationUpdateProductTextsArgs = { productId: Scalars['ID']['input']; texts: Array; }; - export type IMutationUpdateProductTokenizationArgs = { productId: Scalars['ID']['input']; tokenization: IUpdateProductTokenizationInput; }; - export type IMutationUpdateProductVariationTextsArgs = { productVariationId: Scalars['ID']['input']; productVariationOptionValue?: InputMaybe; texts: Array; }; - export type IMutationUpdateProductWarehousingArgs = { productId: Scalars['ID']['input']; warehousing: IUpdateProductWarehousingInput; }; - export type IMutationUpdateUserProfileArgs = { meta?: InputMaybe; profile?: InputMaybe; userId?: InputMaybe; }; - export type IMutationUpdateWarehousingProviderArgs = { warehousingProvider: IUpdateProviderInput; warehousingProviderId: Scalars['ID']['input']; }; - export type IMutationVerifyEmailArgs = { token: Scalars['String']['input']; }; - export type IMutationVerifyQuotationArgs = { quotationContext?: InputMaybe; quotationId: Scalars['ID']['input']; }; - export type IMutationVerifyWeb3AddressArgs = { address: Scalars['String']['input']; hash: Scalars['String']['input']; @@ -2287,7 +2120,6 @@ export type IOrder = { user?: Maybe; }; - /** Just an order */ export type IOrderTotalArgs = { category?: InputMaybe; @@ -2336,7 +2168,7 @@ export enum IOrderDeliveryStatus { /** Order is not delivered */ Open = 'OPEN', /** Delivery returned */ - Returned = 'RETURNED' + Returned = 'RETURNED', } export type IOrderDiscount = { @@ -2349,7 +2181,6 @@ export type IOrderDiscount = { trigger: IOrderDiscountTrigger; }; - export type IOrderDiscountTotalArgs = { useNetPrice?: InputMaybe; }; @@ -2358,7 +2189,7 @@ export enum IOrderDiscountTrigger { /** System triggered */ System = 'SYSTEM', /** User triggered */ - User = 'USER' + User = 'USER', } export type IOrderDiscountable = { @@ -2389,13 +2220,11 @@ export type IOrderItem = { unitPrice?: Maybe; }; - export type IOrderItemTotalArgs = { category?: InputMaybe; useNetPrice?: InputMaybe; }; - export type IOrderItemUnitPriceArgs = { useNetPrice?: InputMaybe; }; @@ -2419,7 +2248,7 @@ export enum IOrderItemPriceCategory { /** Items */ Item = 'ITEM', /** Tax */ - Tax = 'TAX' + Tax = 'TAX', } export type IOrderPayment = { @@ -2471,7 +2300,7 @@ export enum IOrderPaymentStatus { /** Order has been paid */ Paid = 'PAID', /** Order has been refunded */ - Refunded = 'REFUNDED' + Refunded = 'REFUNDED', } export enum IOrderPriceCategory { @@ -2484,7 +2313,7 @@ export enum IOrderPriceCategory { /** Payment Fees */ Payment = 'PAYMENT', /** Tax */ - Taxes = 'TAXES' + Taxes = 'TAXES', } export type IOrderStatistics = { @@ -2516,7 +2345,7 @@ export enum IOrderStatus { /** Order has been sent but confirmation awaiting */ Pending = 'PENDING', /** Order has been rejected */ - Rejected = 'REJECTED' + Rejected = 'REJECTED', } export type IPaymentCredentials = { @@ -2548,7 +2377,6 @@ export type IPaymentProvider = { updated?: Maybe; }; - export type IPaymentProviderSimulatedPriceArgs = { context?: InputMaybe; currencyCode?: InputMaybe; @@ -2560,14 +2388,14 @@ export enum IPaymentProviderError { AdapterNotFound = 'ADAPTER_NOT_FOUND', IncompleteConfiguration = 'INCOMPLETE_CONFIGURATION', NotImplemented = 'NOT_IMPLEMENTED', - WrongCredentials = 'WRONG_CREDENTIALS' + WrongCredentials = 'WRONG_CREDENTIALS', } export enum IPaymentProviderType { /** Generic */ Generic = 'GENERIC', /** Invoice */ - Invoice = 'INVOICE' + Invoice = 'INVOICE', } export type IPickUpLocation = { @@ -2602,26 +2430,22 @@ export type IPlanProduct = IProduct & { updated?: Maybe; }; - /** Plan (Virtual Product that somebody can enroll to) */ export type IPlanProductAssortmentPathsArgs = { forceLocale?: InputMaybe; }; - /** Plan (Virtual Product that somebody can enroll to) */ export type IPlanProductCatalogPriceArgs = { currencyCode?: InputMaybe; quantity?: InputMaybe; }; - /** Plan (Virtual Product that somebody can enroll to) */ export type IPlanProductLeveledCatalogPricesArgs = { currencyCode?: InputMaybe; }; - /** Plan (Virtual Product that somebody can enroll to) */ export type IPlanProductMediaArgs = { limit?: InputMaybe; @@ -2629,7 +2453,6 @@ export type IPlanProductMediaArgs = { tags?: InputMaybe>; }; - /** Plan (Virtual Product that somebody can enroll to) */ export type IPlanProductReviewsArgs = { limit?: InputMaybe; @@ -2638,13 +2461,11 @@ export type IPlanProductReviewsArgs = { sort?: InputMaybe>; }; - /** Plan (Virtual Product that somebody can enroll to) */ export type IPlanProductReviewsCountArgs = { queryString?: InputMaybe; }; - /** Plan (Virtual Product that somebody can enroll to) */ export type IPlanProductSiblingsArgs = { assortmentId?: InputMaybe; @@ -2653,7 +2474,6 @@ export type IPlanProductSiblingsArgs = { offset?: InputMaybe; }; - /** Plan (Virtual Product that somebody can enroll to) */ export type IPlanProductSimulatedPriceArgs = { configuration?: InputMaybe>; @@ -2662,7 +2482,6 @@ export type IPlanProductSimulatedPriceArgs = { useNetPrice?: InputMaybe; }; - /** Plan (Virtual Product that somebody can enroll to) */ export type IPlanProductTextsArgs = { forceLocale?: InputMaybe; @@ -2704,7 +2523,6 @@ export type IProduct = { updated?: Maybe; }; - /** Abstract Product */ export type IProductMediaArgs = { limit?: InputMaybe; @@ -2712,7 +2530,6 @@ export type IProductMediaArgs = { tags?: InputMaybe>; }; - /** Abstract Product */ export type IProductReviewsArgs = { limit?: InputMaybe; @@ -2721,13 +2538,11 @@ export type IProductReviewsArgs = { sort?: InputMaybe>; }; - /** Abstract Product */ export type IProductReviewsCountArgs = { queryString?: InputMaybe; }; - /** Abstract Product */ export type IProductSiblingsArgs = { assortmentId?: InputMaybe; @@ -2736,7 +2551,6 @@ export type IProductSiblingsArgs = { offset?: InputMaybe; }; - /** Abstract Product */ export type IProductTextsArgs = { forceLocale?: InputMaybe; @@ -2792,7 +2606,6 @@ export type IProductMedia = { texts?: Maybe; }; - export type IProductMediaTextsArgs = { forceLocale?: InputMaybe; }; @@ -2823,12 +2636,12 @@ export enum IProductPlanConfigurationInterval { Hours = 'HOURS', Months = 'MONTHS', Weeks = 'WEEKS', - Years = 'YEARS' + Years = 'YEARS', } export enum IProductPlanUsageCalculationType { Licensed = 'LICENSED', - Metered = 'METERED' + Metered = 'METERED', } export type IProductReview = { @@ -2845,7 +2658,6 @@ export type IProductReview = { voteCount?: Maybe; }; - export type IProductReviewVoteCountArgs = { type?: InputMaybe; }; @@ -2865,7 +2677,7 @@ export type IProductReviewVote = { export enum IProductReviewVoteType { Downvote = 'DOWNVOTE', Report = 'REPORT', - Upvote = 'UPVOTE' + Upvote = 'UPVOTE', } /** Search result */ @@ -2876,7 +2688,6 @@ export type IProductSearchResult = { productsCount: Scalars['Int']['output']; }; - /** Search result */ export type IProductSearchResultProductsArgs = { limit?: InputMaybe; @@ -2889,7 +2700,7 @@ export enum IProductStatus { /** Deleted */ Deleted = 'DELETED', /** Unpublished (hidden from catalog) */ - Draft = 'DRAFT' + Draft = 'DRAFT', } export type IProductTextInput = { @@ -2920,7 +2731,7 @@ export enum IProductType { ConfigurableProduct = 'CONFIGURABLE_PRODUCT', PlanProduct = 'PLAN_PRODUCT', SimpleProduct = 'SIMPLE_PRODUCT', - TokenizedProduct = 'TOKENIZED_PRODUCT' + TokenizedProduct = 'TOKENIZED_PRODUCT', } export type IProductVariation = { @@ -2931,7 +2742,6 @@ export type IProductVariation = { type?: Maybe; }; - export type IProductVariationTextsArgs = { forceLocale?: InputMaybe; }; @@ -2958,7 +2768,6 @@ export type IProductVariationOption = { value?: Maybe; }; - export type IProductVariationOptionTextsArgs = { forceLocale?: InputMaybe; }; @@ -2980,7 +2789,7 @@ export enum IProductVariationType { /** Color Picker */ Color = 'COLOR', /** Text Answers */ - Text = 'TEXT' + Text = 'TEXT', } export type IPushSubscription = { @@ -3098,6 +2907,10 @@ export type IQuery = { searchProducts: IProductSearchResult; /** Get shop-global data and the resolved country/language pair */ shopInfo: IShop; + /** List all ticket events (tokenized products), by default includes drafts */ + ticketEvents: Array; + /** Returns total number of ticket events (tokenized products) */ + ticketEventsCount: Scalars['Int']['output']; /** Get token */ token?: Maybe; /** Get all tokens */ @@ -3144,13 +2957,11 @@ export type IQuery = { workStatistics: Array; }; - export type IQueryAssortmentArgs = { assortmentId?: InputMaybe; slug?: InputMaybe; }; - export type IQueryAssortmentsArgs = { includeInactive?: InputMaybe; includeLeaves?: InputMaybe; @@ -3162,7 +2973,6 @@ export type IQueryAssortmentsArgs = { tags?: InputMaybe>; }; - export type IQueryAssortmentsCountArgs = { includeInactive?: InputMaybe; includeLeaves?: InputMaybe; @@ -3171,7 +2981,6 @@ export type IQueryAssortmentsCountArgs = { tags?: InputMaybe>; }; - export type IQueryCountriesArgs = { includeInactive?: InputMaybe; limit?: InputMaybe; @@ -3180,18 +2989,15 @@ export type IQueryCountriesArgs = { sort?: InputMaybe>; }; - export type IQueryCountriesCountArgs = { includeInactive?: InputMaybe; queryString?: InputMaybe; }; - export type IQueryCountryArgs = { countryId: Scalars['ID']['input']; }; - export type IQueryCurrenciesArgs = { includeInactive?: InputMaybe; limit?: InputMaybe; @@ -3200,43 +3006,35 @@ export type IQueryCurrenciesArgs = { sort?: InputMaybe>; }; - export type IQueryCurrenciesCountArgs = { includeInactive?: InputMaybe; queryString?: InputMaybe; }; - export type IQueryCurrencyArgs = { currencyId: Scalars['ID']['input']; }; - export type IQueryDeliveryInterfacesArgs = { type?: InputMaybe; }; - export type IQueryDeliveryProviderArgs = { deliveryProviderId: Scalars['ID']['input']; }; - export type IQueryDeliveryProvidersArgs = { type?: InputMaybe; }; - export type IQueryDeliveryProvidersCountArgs = { type?: InputMaybe; }; - export type IQueryEnrollmentArgs = { enrollmentId: Scalars['ID']['input']; }; - export type IQueryEnrollmentsArgs = { limit?: InputMaybe; offset?: InputMaybe; @@ -3245,24 +3043,20 @@ export type IQueryEnrollmentsArgs = { status?: InputMaybe>; }; - export type IQueryEnrollmentsCountArgs = { queryString?: InputMaybe; status?: InputMaybe>; }; - export type IQueryEventArgs = { eventId: Scalars['ID']['input']; }; - export type IQueryEventStatisticsArgs = { dateRange?: InputMaybe; types?: InputMaybe>; }; - export type IQueryEventsArgs = { created?: InputMaybe; limit?: InputMaybe; @@ -3272,19 +3066,16 @@ export type IQueryEventsArgs = { types?: InputMaybe>; }; - export type IQueryEventsCountArgs = { created?: InputMaybe; queryString?: InputMaybe; types?: InputMaybe>; }; - export type IQueryFilterArgs = { filterId?: InputMaybe; }; - export type IQueryFiltersArgs = { includeInactive?: InputMaybe; limit?: InputMaybe; @@ -3293,18 +3084,15 @@ export type IQueryFiltersArgs = { sort?: InputMaybe>; }; - export type IQueryFiltersCountArgs = { includeInactive?: InputMaybe; queryString?: InputMaybe; }; - export type IQueryLanguageArgs = { languageId: Scalars['ID']['input']; }; - export type IQueryLanguagesArgs = { includeInactive?: InputMaybe; limit?: InputMaybe; @@ -3313,23 +3101,19 @@ export type IQueryLanguagesArgs = { sort?: InputMaybe>; }; - export type IQueryLanguagesCountArgs = { includeInactive?: InputMaybe; queryString?: InputMaybe; }; - export type IQueryOrderArgs = { orderId: Scalars['ID']['input']; }; - export type IQueryOrderStatisticsArgs = { dateRange?: InputMaybe; }; - export type IQueryOrdersArgs = { dateRange?: InputMaybe; deliveryProviderIds?: InputMaybe>; @@ -3342,7 +3126,6 @@ export type IQueryOrdersArgs = { status?: InputMaybe>; }; - export type IQueryOrdersCountArgs = { dateRange?: InputMaybe; deliveryProviderIds?: InputMaybe>; @@ -3352,43 +3135,35 @@ export type IQueryOrdersCountArgs = { status?: InputMaybe>; }; - export type IQueryPaymentInterfacesArgs = { type?: InputMaybe; }; - export type IQueryPaymentProviderArgs = { paymentProviderId: Scalars['ID']['input']; }; - export type IQueryPaymentProvidersArgs = { type?: InputMaybe; }; - export type IQueryPaymentProvidersCountArgs = { type?: InputMaybe; }; - export type IQueryProductArgs = { productId?: InputMaybe; slug?: InputMaybe; }; - export type IQueryProductCatalogPricesArgs = { productId: Scalars['ID']['input']; }; - export type IQueryProductReviewArgs = { productReviewId: Scalars['ID']['input']; }; - export type IQueryProductReviewsArgs = { limit?: InputMaybe; offset?: InputMaybe; @@ -3396,12 +3171,10 @@ export type IQueryProductReviewsArgs = { sort?: InputMaybe>; }; - export type IQueryProductReviewsCountArgs = { queryString?: InputMaybe; }; - export type IQueryProductsArgs = { includeDrafts?: InputMaybe; limit?: InputMaybe; @@ -3413,7 +3186,6 @@ export type IQueryProductsArgs = { type?: InputMaybe; }; - export type IQueryProductsCountArgs = { includeDrafts?: InputMaybe; queryString?: InputMaybe; @@ -3422,12 +3194,10 @@ export type IQueryProductsCountArgs = { type?: InputMaybe; }; - export type IQueryQuotationArgs = { quotationId: Scalars['ID']['input']; }; - export type IQueryQuotationsArgs = { limit?: InputMaybe; offset?: InputMaybe; @@ -3435,12 +3205,10 @@ export type IQueryQuotationsArgs = { sort?: InputMaybe>; }; - export type IQueryQuotationsCountArgs = { queryString?: InputMaybe; }; - export type IQuerySearchAssortmentsArgs = { assortmentIds?: InputMaybe>; includeInactive?: InputMaybe; @@ -3448,7 +3216,6 @@ export type IQuerySearchAssortmentsArgs = { queryString?: InputMaybe; }; - export type IQuerySearchProductsArgs = { assortmentId?: InputMaybe; filterQuery?: InputMaybe>; @@ -3458,61 +3225,63 @@ export type IQuerySearchProductsArgs = { queryString?: InputMaybe; }; - +export type IQueryTicketEventsArgs = { + includeDrafts?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; + queryString?: InputMaybe; + sort?: InputMaybe>; +}; + +export type IQueryTicketEventsCountArgs = { + includeDrafts?: InputMaybe; + queryString?: InputMaybe; +}; + export type IQueryTokenArgs = { tokenId: Scalars['ID']['input']; }; - export type IQueryTokensArgs = { limit?: InputMaybe; offset?: InputMaybe; queryString?: InputMaybe; }; - export type IQueryTokensCountArgs = { queryString?: InputMaybe; }; - export type IQueryTranslatedAssortmentMediaTextsArgs = { assortmentMediaId: Scalars['ID']['input']; }; - export type IQueryTranslatedAssortmentTextsArgs = { assortmentId: Scalars['ID']['input']; }; - export type IQueryTranslatedFilterTextsArgs = { filterId: Scalars['ID']['input']; filterOptionValue?: InputMaybe; }; - export type IQueryTranslatedProductMediaTextsArgs = { productMediaId: Scalars['ID']['input']; }; - export type IQueryTranslatedProductTextsArgs = { productId: Scalars['ID']['input']; }; - export type IQueryTranslatedProductVariationTextsArgs = { productVariationId: Scalars['ID']['input']; productVariationOptionValue?: InputMaybe; }; - export type IQueryUserArgs = { userId?: InputMaybe; }; - export type IQueryUsersArgs = { emailVerified?: InputMaybe; includeGuests?: InputMaybe; @@ -3524,7 +3293,6 @@ export type IQueryUsersArgs = { tags?: InputMaybe>; }; - export type IQueryUsersCountArgs = { emailVerified?: InputMaybe; includeGuests?: InputMaybe; @@ -3533,42 +3301,34 @@ export type IQueryUsersCountArgs = { tags?: InputMaybe>; }; - export type IQueryValidateResetPasswordTokenArgs = { token: Scalars['String']['input']; }; - export type IQueryValidateVerifyEmailTokenArgs = { token: Scalars['String']['input']; }; - export type IQueryWarehousingInterfacesArgs = { type?: InputMaybe; }; - export type IQueryWarehousingProviderArgs = { warehousingProviderId: Scalars['ID']['input']; }; - export type IQueryWarehousingProvidersArgs = { type?: InputMaybe; }; - export type IQueryWarehousingProvidersCountArgs = { type?: InputMaybe; }; - export type IQueryWorkArgs = { workId: Scalars['ID']['input']; }; - export type IQueryWorkQueueArgs = { created?: InputMaybe; limit?: InputMaybe; @@ -3579,7 +3339,6 @@ export type IQueryWorkQueueArgs = { types?: InputMaybe>; }; - export type IQueryWorkQueueCountArgs = { created?: InputMaybe; queryString?: InputMaybe; @@ -3587,7 +3346,6 @@ export type IQueryWorkQueueCountArgs = { types?: InputMaybe>; }; - export type IQueryWorkStatisticsArgs = { dateRange?: InputMaybe; types?: InputMaybe>; @@ -3611,7 +3369,6 @@ export type IQuotation = { user: IUser; }; - /** Quotation */ export type IQuotationIsExpiredArgs = { referenceDate?: InputMaybe; @@ -3621,7 +3378,7 @@ export enum IQuotationDocumentType { /** Other */ Other = 'OTHER', /** Proposal */ - Proposal = 'PROPOSAL' + Proposal = 'PROPOSAL', } export enum IQuotationStatus { @@ -3634,7 +3391,7 @@ export enum IQuotationStatus { /** Quotation has been rejected by either party */ Rejected = 'REJECTED', /** Request for Proposal */ - Requested = 'REQUESTED' + Requested = 'REQUESTED', } export type IReorderAssortmentFilterInput = { @@ -3773,11 +3530,11 @@ export enum IRoleAction { ViewWarehousingProviders = 'viewWarehousingProviders', ViewWork = 'viewWork', ViewWorkQueue = 'viewWorkQueue', - VoteProductReview = 'voteProductReview' + VoteProductReview = 'voteProductReview', } export enum ISearchOrderBy { - Default = 'default' + Default = 'default', } /** Search result */ @@ -3788,7 +3545,6 @@ export type ISearchResult = { productsCount: Scalars['Int']['output']; }; - /** Search result */ export type ISearchResultProductsArgs = { limit?: InputMaybe; @@ -3834,20 +3590,17 @@ export type ISimpleProduct = IProduct & { updated?: Maybe; }; - /** Simple Product */ export type ISimpleProductCatalogPriceArgs = { currencyCode?: InputMaybe; quantity?: InputMaybe; }; - /** Simple Product */ export type ISimpleProductLeveledCatalogPricesArgs = { currencyCode?: InputMaybe; }; - /** Simple Product */ export type ISimpleProductMediaArgs = { limit?: InputMaybe; @@ -3855,7 +3608,6 @@ export type ISimpleProductMediaArgs = { tags?: InputMaybe>; }; - /** Simple Product */ export type ISimpleProductReviewsArgs = { limit?: InputMaybe; @@ -3864,13 +3616,11 @@ export type ISimpleProductReviewsArgs = { sort?: InputMaybe>; }; - /** Simple Product */ export type ISimpleProductReviewsCountArgs = { queryString?: InputMaybe; }; - /** Simple Product */ export type ISimpleProductSiblingsArgs = { assortmentId?: InputMaybe; @@ -3879,7 +3629,6 @@ export type ISimpleProductSiblingsArgs = { offset?: InputMaybe; }; - /** Simple Product */ export type ISimpleProductSimulatedDispatchesArgs = { deliveryProviderType?: InputMaybe; @@ -3887,7 +3636,6 @@ export type ISimpleProductSimulatedDispatchesArgs = { referenceDate?: InputMaybe; }; - /** Simple Product */ export type ISimpleProductSimulatedPriceArgs = { configuration?: InputMaybe>; @@ -3896,14 +3644,12 @@ export type ISimpleProductSimulatedPriceArgs = { useNetPrice?: InputMaybe; }; - /** Simple Product */ export type ISimpleProductSimulatedStocksArgs = { deliveryProviderType?: InputMaybe; referenceDate?: InputMaybe; }; - /** Simple Product */ export type ISimpleProductTextsArgs = { forceLocale?: InputMaybe; @@ -3911,12 +3657,12 @@ export type ISimpleProductTextsArgs = { export enum ISmartContractStandard { Erc721 = 'ERC721', - Erc1155 = 'ERC1155' + Erc1155 = 'ERC1155', } export enum ISortDirection { Asc = 'ASC', - Desc = 'DESC' + Desc = 'DESC', } export type ISortOptionInput = { @@ -3953,7 +3699,6 @@ export type IToken = { walletAddress?: Maybe; }; - export type ITokenErcMetadataArgs = { forceLocale?: InputMaybe; }; @@ -3961,7 +3706,7 @@ export type ITokenErcMetadataArgs = { export enum ITokenExportStatus { Centralized = 'CENTRALIZED', Decentralized = 'DECENTRALIZED', - Exporting = 'EXPORTING' + Exporting = 'EXPORTING', } /** Tokenized Product (Blockchain materialized Product) */ @@ -3991,26 +3736,22 @@ export type ITokenizedProduct = IProduct & { updated?: Maybe; }; - /** Tokenized Product (Blockchain materialized Product) */ export type ITokenizedProductAssortmentPathsArgs = { forceLocale?: InputMaybe; }; - /** Tokenized Product (Blockchain materialized Product) */ export type ITokenizedProductCatalogPriceArgs = { currencyCode?: InputMaybe; quantity?: InputMaybe; }; - /** Tokenized Product (Blockchain materialized Product) */ export type ITokenizedProductLeveledCatalogPricesArgs = { currencyCode?: InputMaybe; }; - /** Tokenized Product (Blockchain materialized Product) */ export type ITokenizedProductMediaArgs = { limit?: InputMaybe; @@ -4018,7 +3759,6 @@ export type ITokenizedProductMediaArgs = { tags?: InputMaybe>; }; - /** Tokenized Product (Blockchain materialized Product) */ export type ITokenizedProductReviewsArgs = { limit?: InputMaybe; @@ -4027,13 +3767,11 @@ export type ITokenizedProductReviewsArgs = { sort?: InputMaybe>; }; - /** Tokenized Product (Blockchain materialized Product) */ export type ITokenizedProductReviewsCountArgs = { queryString?: InputMaybe; }; - /** Tokenized Product (Blockchain materialized Product) */ export type ITokenizedProductSiblingsArgs = { assortmentId?: InputMaybe; @@ -4042,7 +3780,6 @@ export type ITokenizedProductSiblingsArgs = { offset?: InputMaybe; }; - /** Tokenized Product (Blockchain materialized Product) */ export type ITokenizedProductSimulatedPriceArgs = { configuration?: InputMaybe>; @@ -4051,13 +3788,11 @@ export type ITokenizedProductSimulatedPriceArgs = { useNetPrice?: InputMaybe; }; - /** Tokenized Product (Blockchain materialized Product) */ export type ITokenizedProductSimulatedStocksArgs = { referenceDate?: InputMaybe; }; - /** Tokenized Product (Blockchain materialized Product) */ export type ITokenizedProductTextsArgs = { forceLocale?: InputMaybe; @@ -4179,12 +3914,10 @@ export type IUser = { webAuthnCredentials: Array; }; - export type IUserCartArgs = { orderNumber?: InputMaybe; }; - export type IUserEnrollmentsArgs = { limit?: InputMaybe; offset?: InputMaybe; @@ -4193,7 +3926,6 @@ export type IUserEnrollmentsArgs = { status?: InputMaybe>; }; - export type IUserOrdersArgs = { includeCarts?: InputMaybe; limit?: InputMaybe; @@ -4203,7 +3935,6 @@ export type IUserOrdersArgs = { status?: InputMaybe>; }; - export type IUserQuotationsArgs = { limit?: InputMaybe; offset?: InputMaybe; @@ -4211,7 +3942,6 @@ export type IUserQuotationsArgs = { sort?: InputMaybe>; }; - export type IUserReviewsArgs = { limit?: InputMaybe; offset?: InputMaybe; @@ -4270,14 +4000,14 @@ export enum IWarehousingProviderError { AdapterNotFound = 'ADAPTER_NOT_FOUND', IncompleteConfiguration = 'INCOMPLETE_CONFIGURATION', NotImplemented = 'NOT_IMPLEMENTED', - WrongCredentials = 'WRONG_CREDENTIALS' + WrongCredentials = 'WRONG_CREDENTIALS', } export enum IWarehousingProviderType { /** Physical warehousing providers resemble stores or facilities that hold a quantity of stocks physically in stock. */ Physical = 'PHYSICAL', /** Virtual warehousing providers resemble software that control ownership and validity of virtual products (for ex. smart contract bridges) */ - Virtual = 'VIRTUAL' + Virtual = 'VIRTUAL', } export type IWeb3Address = { @@ -4357,7 +4087,7 @@ export enum IWorkStatus { Deleted = 'DELETED', Failed = 'FAILED', New = 'NEW', - Success = 'SUCCESS' + Success = 'SUCCESS', } export enum IWorkType { @@ -4380,7 +4110,7 @@ export enum IWorkType { UpdateCoinbaseRates = 'UPDATE_COINBASE_RATES', UpdateEcbRates = 'UPDATE_ECB_RATES', UpdateTokenOwnership = 'UPDATE_TOKEN_OWNERSHIP', - ZombieKiller = 'ZOMBIE_KILLER' + ZombieKiller = 'ZOMBIE_KILLER', } /** One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string. */ @@ -4401,7 +4131,6 @@ export type I__Field = { deprecationReason?: Maybe; }; - /** Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type. */ export type I__FieldArgsArgs = { includeDeprecated?: InputMaybe; @@ -4437,7 +4166,6 @@ export type I__Type = { isOneOf?: Maybe; }; - /** * The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. * @@ -4447,7 +4175,6 @@ export type I__TypeFieldsArgs = { includeDeprecated?: InputMaybe; }; - /** * The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. * @@ -4457,7 +4184,6 @@ export type I__TypeEnumValuesArgs = { includeDeprecated?: InputMaybe; }; - /** * The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. * @@ -4484,21 +4210,133 @@ export enum I__TypeKind { /** Indicates this type is a list. `ofType` is a valid field. */ List = 'LIST', /** Indicates this type is a non-null. `ofType` is a valid field. */ - NonNull = 'NON_NULL' + NonNull = 'NON_NULL', } -export type IMd5MetaDataFragment = { legalHeader?: string | null, description?: string | null, authenticatorVersion?: number | null, protocolFamily?: string | null, schema?: number | null, authenticationAlgorithms?: Array | null, publicKeyAlgAndEncodings?: Array | null, attestationTypes?: Array | null, keyProtection?: Array | null, upv?: Array | null, tcDisplay?: Array | null, icon?: string | null, authenticatorGetInfo?: any | null }; - - -export type IMd5MetaDataFragmentVariables = Exact<{ [key: string]: never; }>; - -export type IUserFragment = { _id: string, allowedActions: Array, username?: string | null, isGuest: boolean, isInitialPassword: boolean, name: string, roles?: Array | null, tags?: Array | null, deleted?: any | null, lastBillingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null, lastContact?: { emailAddress?: string | null, telNumber?: string | null } | null, lastLogin?: { countryCode?: string | null, locale?: any | null, remoteAddress?: string | null, remotePort?: number | null, timestamp: any, userAgent?: string | null } | null, avatar?: { _id: string, name: string, size: number, type: string, url?: string | null } | null, paymentCredentials: Array<{ _id: string, isValid: boolean, isPreferred: boolean, paymentProvider: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }>, emails?: Array<{ verified: boolean, address: string }> | null, web3Addresses: Array<{ address: string, nonce?: number | null, verified: boolean }>, webAuthnCredentials: Array<{ _id: string, created: any, aaguid: string, counter: number, mdsMetadata?: { legalHeader?: string | null, description?: string | null, authenticatorVersion?: number | null, protocolFamily?: string | null, schema?: number | null, authenticationAlgorithms?: Array | null, publicKeyAlgAndEncodings?: Array | null, attestationTypes?: Array | null, keyProtection?: Array | null, upv?: Array | null, tcDisplay?: Array | null, icon?: string | null, authenticatorGetInfo?: any | null } | null }>, profile?: { displayName?: string | null, phoneMobile?: string | null, gender?: string | null, birthday?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null } | null, primaryEmail?: { verified: boolean, address: string } | null, cart?: { _id: string, items?: Array<{ _id: string }> | null } | null, orders: Array<{ _id: string, items?: Array<{ _id: string }> | null }> }; - - -export type IUserFragmentVariables = Exact<{ [key: string]: never; }>; - -export type ILogoutMutationVariables = Exact<{ [key: string]: never; }>; - +export type IMd5MetaDataFragment = { + legalHeader?: string | null; + description?: string | null; + authenticatorVersion?: number | null; + protocolFamily?: string | null; + schema?: number | null; + authenticationAlgorithms?: Array | null; + publicKeyAlgAndEncodings?: Array | null; + attestationTypes?: Array | null; + keyProtection?: Array | null; + upv?: Array | null; + tcDisplay?: Array | null; + icon?: string | null; + authenticatorGetInfo?: any | null; +}; + +export type IMd5MetaDataFragmentVariables = Exact<{ [key: string]: never }>; + +export type IUserFragment = { + _id: string; + allowedActions: Array; + username?: string | null; + isGuest: boolean; + isInitialPassword: boolean; + name: string; + roles?: Array | null; + tags?: Array | null; + deleted?: any | null; + lastBillingAddress?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + addressLine2?: string | null; + postalCode?: string | null; + countryCode?: string | null; + regionCode?: string | null; + city?: string | null; + } | null; + lastContact?: { + emailAddress?: string | null; + telNumber?: string | null; + } | null; + lastLogin?: { + countryCode?: string | null; + locale?: any | null; + remoteAddress?: string | null; + remotePort?: number | null; + timestamp: any; + userAgent?: string | null; + } | null; + avatar?: { + _id: string; + name: string; + size: number; + type: string; + url?: string | null; + } | null; + paymentCredentials: Array<{ + _id: string; + isValid: boolean; + isPreferred: boolean; + paymentProvider: { + _id: string; + type?: IPaymentProviderType | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + }; + }>; + emails?: Array<{ verified: boolean; address: string }> | null; + web3Addresses: Array<{ + address: string; + nonce?: number | null; + verified: boolean; + }>; + webAuthnCredentials: Array<{ + _id: string; + created: any; + aaguid: string; + counter: number; + mdsMetadata?: { + legalHeader?: string | null; + description?: string | null; + authenticatorVersion?: number | null; + protocolFamily?: string | null; + schema?: number | null; + authenticationAlgorithms?: Array | null; + publicKeyAlgAndEncodings?: Array | null; + attestationTypes?: Array | null; + keyProtection?: Array | null; + upv?: Array | null; + tcDisplay?: Array | null; + icon?: string | null; + authenticatorGetInfo?: any | null; + } | null; + }>; + profile?: { + displayName?: string | null; + phoneMobile?: string | null; + gender?: string | null; + birthday?: any | null; + address?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + addressLine2?: string | null; + postalCode?: string | null; + countryCode?: string | null; + regionCode?: string | null; + city?: string | null; + } | null; + } | null; + primaryEmail?: { verified: boolean; address: string } | null; + cart?: { _id: string; items?: Array<{ _id: string }> | null } | null; + orders: Array<{ _id: string; items?: Array<{ _id: string }> | null }>; +}; + +export type IUserFragmentVariables = Exact<{ [key: string]: never }>; + +export type ILogoutMutationVariables = Exact<{ [key: string]: never }>; export type ILogoutMutation = { logout?: { success?: boolean | null } | null }; @@ -4507,30 +4345,337 @@ export type IAddEmailMutationVariables = Exact<{ userId?: InputMaybe; }>; - -export type IAddEmailMutation = { addEmail: { _id: string, allowedActions: Array, username?: string | null, isGuest: boolean, isInitialPassword: boolean, name: string, roles?: Array | null, tags?: Array | null, deleted?: any | null, lastBillingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null, lastContact?: { emailAddress?: string | null, telNumber?: string | null } | null, lastLogin?: { countryCode?: string | null, locale?: any | null, remoteAddress?: string | null, remotePort?: number | null, timestamp: any, userAgent?: string | null } | null, avatar?: { _id: string, name: string, size: number, type: string, url?: string | null } | null, paymentCredentials: Array<{ _id: string, isValid: boolean, isPreferred: boolean, paymentProvider: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }>, emails?: Array<{ verified: boolean, address: string }> | null, web3Addresses: Array<{ address: string, nonce?: number | null, verified: boolean }>, webAuthnCredentials: Array<{ _id: string, created: any, aaguid: string, counter: number, mdsMetadata?: { legalHeader?: string | null, description?: string | null, authenticatorVersion?: number | null, protocolFamily?: string | null, schema?: number | null, authenticationAlgorithms?: Array | null, publicKeyAlgAndEncodings?: Array | null, attestationTypes?: Array | null, keyProtection?: Array | null, upv?: Array | null, tcDisplay?: Array | null, icon?: string | null, authenticatorGetInfo?: any | null } | null }>, profile?: { displayName?: string | null, phoneMobile?: string | null, gender?: string | null, birthday?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null } | null, primaryEmail?: { verified: boolean, address: string } | null, cart?: { _id: string, items?: Array<{ _id: string }> | null } | null, orders: Array<{ _id: string, items?: Array<{ _id: string }> | null }> } }; +export type IAddEmailMutation = { + addEmail: { + _id: string; + allowedActions: Array; + username?: string | null; + isGuest: boolean; + isInitialPassword: boolean; + name: string; + roles?: Array | null; + tags?: Array | null; + deleted?: any | null; + lastBillingAddress?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + addressLine2?: string | null; + postalCode?: string | null; + countryCode?: string | null; + regionCode?: string | null; + city?: string | null; + } | null; + lastContact?: { + emailAddress?: string | null; + telNumber?: string | null; + } | null; + lastLogin?: { + countryCode?: string | null; + locale?: any | null; + remoteAddress?: string | null; + remotePort?: number | null; + timestamp: any; + userAgent?: string | null; + } | null; + avatar?: { + _id: string; + name: string; + size: number; + type: string; + url?: string | null; + } | null; + paymentCredentials: Array<{ + _id: string; + isValid: boolean; + isPreferred: boolean; + paymentProvider: { + _id: string; + type?: IPaymentProviderType | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + }; + }>; + emails?: Array<{ verified: boolean; address: string }> | null; + web3Addresses: Array<{ + address: string; + nonce?: number | null; + verified: boolean; + }>; + webAuthnCredentials: Array<{ + _id: string; + created: any; + aaguid: string; + counter: number; + mdsMetadata?: { + legalHeader?: string | null; + description?: string | null; + authenticatorVersion?: number | null; + protocolFamily?: string | null; + schema?: number | null; + authenticationAlgorithms?: Array | null; + publicKeyAlgAndEncodings?: Array | null; + attestationTypes?: Array | null; + keyProtection?: Array | null; + upv?: Array | null; + tcDisplay?: Array | null; + icon?: string | null; + authenticatorGetInfo?: any | null; + } | null; + }>; + profile?: { + displayName?: string | null; + phoneMobile?: string | null; + gender?: string | null; + birthday?: any | null; + address?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + addressLine2?: string | null; + postalCode?: string | null; + countryCode?: string | null; + regionCode?: string | null; + city?: string | null; + } | null; + } | null; + primaryEmail?: { verified: boolean; address: string } | null; + cart?: { _id: string; items?: Array<{ _id: string }> | null } | null; + orders: Array<{ _id: string; items?: Array<{ _id: string }> | null }>; + }; +}; export type IAddWeb3AddressMutationVariables = Exact<{ address: Scalars['String']['input']; }>; - -export type IAddWeb3AddressMutation = { addWeb3Address: { _id: string, allowedActions: Array, username?: string | null, isGuest: boolean, isInitialPassword: boolean, name: string, roles?: Array | null, tags?: Array | null, deleted?: any | null, lastBillingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null, lastContact?: { emailAddress?: string | null, telNumber?: string | null } | null, lastLogin?: { countryCode?: string | null, locale?: any | null, remoteAddress?: string | null, remotePort?: number | null, timestamp: any, userAgent?: string | null } | null, avatar?: { _id: string, name: string, size: number, type: string, url?: string | null } | null, paymentCredentials: Array<{ _id: string, isValid: boolean, isPreferred: boolean, paymentProvider: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }>, emails?: Array<{ verified: boolean, address: string }> | null, web3Addresses: Array<{ address: string, nonce?: number | null, verified: boolean }>, webAuthnCredentials: Array<{ _id: string, created: any, aaguid: string, counter: number, mdsMetadata?: { legalHeader?: string | null, description?: string | null, authenticatorVersion?: number | null, protocolFamily?: string | null, schema?: number | null, authenticationAlgorithms?: Array | null, publicKeyAlgAndEncodings?: Array | null, attestationTypes?: Array | null, keyProtection?: Array | null, upv?: Array | null, tcDisplay?: Array | null, icon?: string | null, authenticatorGetInfo?: any | null } | null }>, profile?: { displayName?: string | null, phoneMobile?: string | null, gender?: string | null, birthday?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null } | null, primaryEmail?: { verified: boolean, address: string } | null, cart?: { _id: string, items?: Array<{ _id: string }> | null } | null, orders: Array<{ _id: string, items?: Array<{ _id: string }> | null }> } }; +export type IAddWeb3AddressMutation = { + addWeb3Address: { + _id: string; + allowedActions: Array; + username?: string | null; + isGuest: boolean; + isInitialPassword: boolean; + name: string; + roles?: Array | null; + tags?: Array | null; + deleted?: any | null; + lastBillingAddress?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + addressLine2?: string | null; + postalCode?: string | null; + countryCode?: string | null; + regionCode?: string | null; + city?: string | null; + } | null; + lastContact?: { + emailAddress?: string | null; + telNumber?: string | null; + } | null; + lastLogin?: { + countryCode?: string | null; + locale?: any | null; + remoteAddress?: string | null; + remotePort?: number | null; + timestamp: any; + userAgent?: string | null; + } | null; + avatar?: { + _id: string; + name: string; + size: number; + type: string; + url?: string | null; + } | null; + paymentCredentials: Array<{ + _id: string; + isValid: boolean; + isPreferred: boolean; + paymentProvider: { + _id: string; + type?: IPaymentProviderType | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + }; + }>; + emails?: Array<{ verified: boolean; address: string }> | null; + web3Addresses: Array<{ + address: string; + nonce?: number | null; + verified: boolean; + }>; + webAuthnCredentials: Array<{ + _id: string; + created: any; + aaguid: string; + counter: number; + mdsMetadata?: { + legalHeader?: string | null; + description?: string | null; + authenticatorVersion?: number | null; + protocolFamily?: string | null; + schema?: number | null; + authenticationAlgorithms?: Array | null; + publicKeyAlgAndEncodings?: Array | null; + attestationTypes?: Array | null; + keyProtection?: Array | null; + upv?: Array | null; + tcDisplay?: Array | null; + icon?: string | null; + authenticatorGetInfo?: any | null; + } | null; + }>; + profile?: { + displayName?: string | null; + phoneMobile?: string | null; + gender?: string | null; + birthday?: any | null; + address?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + addressLine2?: string | null; + postalCode?: string | null; + countryCode?: string | null; + regionCode?: string | null; + city?: string | null; + } | null; + } | null; + primaryEmail?: { verified: boolean; address: string } | null; + cart?: { _id: string; items?: Array<{ _id: string }> | null } | null; + orders: Array<{ _id: string; items?: Array<{ _id: string }> | null }>; + }; +}; export type IAddWebAuthnCredentialsMutationVariables = Exact<{ credentials: Scalars['JSON']['input']; }>; - -export type IAddWebAuthnCredentialsMutation = { addWebAuthnCredentials: { _id: string, allowedActions: Array, username?: string | null, isGuest: boolean, isInitialPassword: boolean, name: string, roles?: Array | null, tags?: Array | null, deleted?: any | null, webAuthnCredentials: Array<{ _id: string, created: any, aaguid: string, counter: number, mdsMetadata?: { legalHeader?: string | null, description?: string | null, authenticatorVersion?: number | null, protocolFamily?: string | null, schema?: number | null, authenticationAlgorithms?: Array | null, publicKeyAlgAndEncodings?: Array | null, attestationTypes?: Array | null, keyProtection?: Array | null, upv?: Array | null, tcDisplay?: Array | null, icon?: string | null, authenticatorGetInfo?: any | null } | null }>, lastBillingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null, lastContact?: { emailAddress?: string | null, telNumber?: string | null } | null, lastLogin?: { countryCode?: string | null, locale?: any | null, remoteAddress?: string | null, remotePort?: number | null, timestamp: any, userAgent?: string | null } | null, avatar?: { _id: string, name: string, size: number, type: string, url?: string | null } | null, paymentCredentials: Array<{ _id: string, isValid: boolean, isPreferred: boolean, paymentProvider: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }>, emails?: Array<{ verified: boolean, address: string }> | null, web3Addresses: Array<{ address: string, nonce?: number | null, verified: boolean }>, profile?: { displayName?: string | null, phoneMobile?: string | null, gender?: string | null, birthday?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null } | null, primaryEmail?: { verified: boolean, address: string } | null, cart?: { _id: string, items?: Array<{ _id: string }> | null } | null, orders: Array<{ _id: string, items?: Array<{ _id: string }> | null }> } }; +export type IAddWebAuthnCredentialsMutation = { + addWebAuthnCredentials: { + _id: string; + allowedActions: Array; + username?: string | null; + isGuest: boolean; + isInitialPassword: boolean; + name: string; + roles?: Array | null; + tags?: Array | null; + deleted?: any | null; + webAuthnCredentials: Array<{ + _id: string; + created: any; + aaguid: string; + counter: number; + mdsMetadata?: { + legalHeader?: string | null; + description?: string | null; + authenticatorVersion?: number | null; + protocolFamily?: string | null; + schema?: number | null; + authenticationAlgorithms?: Array | null; + publicKeyAlgAndEncodings?: Array | null; + attestationTypes?: Array | null; + keyProtection?: Array | null; + upv?: Array | null; + tcDisplay?: Array | null; + icon?: string | null; + authenticatorGetInfo?: any | null; + } | null; + }>; + lastBillingAddress?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + addressLine2?: string | null; + postalCode?: string | null; + countryCode?: string | null; + regionCode?: string | null; + city?: string | null; + } | null; + lastContact?: { + emailAddress?: string | null; + telNumber?: string | null; + } | null; + lastLogin?: { + countryCode?: string | null; + locale?: any | null; + remoteAddress?: string | null; + remotePort?: number | null; + timestamp: any; + userAgent?: string | null; + } | null; + avatar?: { + _id: string; + name: string; + size: number; + type: string; + url?: string | null; + } | null; + paymentCredentials: Array<{ + _id: string; + isValid: boolean; + isPreferred: boolean; + paymentProvider: { + _id: string; + type?: IPaymentProviderType | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + }; + }>; + emails?: Array<{ verified: boolean; address: string }> | null; + web3Addresses: Array<{ + address: string; + nonce?: number | null; + verified: boolean; + }>; + profile?: { + displayName?: string | null; + phoneMobile?: string | null; + gender?: string | null; + birthday?: any | null; + address?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + addressLine2?: string | null; + postalCode?: string | null; + countryCode?: string | null; + regionCode?: string | null; + city?: string | null; + } | null; + } | null; + primaryEmail?: { verified: boolean; address: string } | null; + cart?: { _id: string; items?: Array<{ _id: string }> | null } | null; + orders: Array<{ _id: string; items?: Array<{ _id: string }> | null }>; + }; +}; export type IChangePasswordMutationVariables = Exact<{ oldPassword: Scalars['String']['input']; newPassword: Scalars['String']['input']; }>; - -export type IChangePasswordMutation = { changePassword?: { success?: boolean | null } | null }; +export type IChangePasswordMutation = { + changePassword?: { success?: boolean | null } | null; +}; export type ICreateUserMutationVariables = Exact<{ username?: InputMaybe; @@ -4540,33 +4685,137 @@ export type ICreateUserMutationVariables = Exact<{ webAuthnPublicKeyCredentials?: InputMaybe; }>; - -export type ICreateUserMutation = { createUser?: { _id: string, tokenExpires: any } | null }; +export type ICreateUserMutation = { + createUser?: { _id: string; tokenExpires: any } | null; +}; export type ICreateWebAuthnCredentialCreationOptionsMutationVariables = Exact<{ username: Scalars['String']['input']; }>; - -export type ICreateWebAuthnCredentialCreationOptionsMutation = { createWebAuthnCredentialCreationOptions?: any | null }; +export type ICreateWebAuthnCredentialCreationOptionsMutation = { + createWebAuthnCredentialCreationOptions?: any | null; +}; export type ICreateWebAuthnCredentialRequestOptionsMutationVariables = Exact<{ username?: InputMaybe; }>; - -export type ICreateWebAuthnCredentialRequestOptionsMutation = { createWebAuthnCredentialRequestOptions?: any | null }; - -export type ICurrentUserQueryVariables = Exact<{ [key: string]: never; }>; - - -export type ICurrentUserQuery = { me?: { _id: string, allowedActions: Array, username?: string | null, isGuest: boolean, isInitialPassword: boolean, name: string, roles?: Array | null, tags?: Array | null, deleted?: any | null, lastBillingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null, lastContact?: { emailAddress?: string | null, telNumber?: string | null } | null, lastLogin?: { countryCode?: string | null, locale?: any | null, remoteAddress?: string | null, remotePort?: number | null, timestamp: any, userAgent?: string | null } | null, avatar?: { _id: string, name: string, size: number, type: string, url?: string | null } | null, paymentCredentials: Array<{ _id: string, isValid: boolean, isPreferred: boolean, paymentProvider: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }>, emails?: Array<{ verified: boolean, address: string }> | null, web3Addresses: Array<{ address: string, nonce?: number | null, verified: boolean }>, webAuthnCredentials: Array<{ _id: string, created: any, aaguid: string, counter: number, mdsMetadata?: { legalHeader?: string | null, description?: string | null, authenticatorVersion?: number | null, protocolFamily?: string | null, schema?: number | null, authenticationAlgorithms?: Array | null, publicKeyAlgAndEncodings?: Array | null, attestationTypes?: Array | null, keyProtection?: Array | null, upv?: Array | null, tcDisplay?: Array | null, icon?: string | null, authenticatorGetInfo?: any | null } | null }>, profile?: { displayName?: string | null, phoneMobile?: string | null, gender?: string | null, birthday?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null } | null, primaryEmail?: { verified: boolean, address: string } | null, cart?: { _id: string, items?: Array<{ _id: string }> | null } | null, orders: Array<{ _id: string, items?: Array<{ _id: string }> | null }> } | null }; +export type ICreateWebAuthnCredentialRequestOptionsMutation = { + createWebAuthnCredentialRequestOptions?: any | null; +}; + +export type ICurrentUserQueryVariables = Exact<{ [key: string]: never }>; + +export type ICurrentUserQuery = { + me?: { + _id: string; + allowedActions: Array; + username?: string | null; + isGuest: boolean; + isInitialPassword: boolean; + name: string; + roles?: Array | null; + tags?: Array | null; + deleted?: any | null; + lastBillingAddress?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + addressLine2?: string | null; + postalCode?: string | null; + countryCode?: string | null; + regionCode?: string | null; + city?: string | null; + } | null; + lastContact?: { + emailAddress?: string | null; + telNumber?: string | null; + } | null; + lastLogin?: { + countryCode?: string | null; + locale?: any | null; + remoteAddress?: string | null; + remotePort?: number | null; + timestamp: any; + userAgent?: string | null; + } | null; + avatar?: { + _id: string; + name: string; + size: number; + type: string; + url?: string | null; + } | null; + paymentCredentials: Array<{ + _id: string; + isValid: boolean; + isPreferred: boolean; + paymentProvider: { + _id: string; + type?: IPaymentProviderType | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + }; + }>; + emails?: Array<{ verified: boolean; address: string }> | null; + web3Addresses: Array<{ + address: string; + nonce?: number | null; + verified: boolean; + }>; + webAuthnCredentials: Array<{ + _id: string; + created: any; + aaguid: string; + counter: number; + mdsMetadata?: { + legalHeader?: string | null; + description?: string | null; + authenticatorVersion?: number | null; + protocolFamily?: string | null; + schema?: number | null; + authenticationAlgorithms?: Array | null; + publicKeyAlgAndEncodings?: Array | null; + attestationTypes?: Array | null; + keyProtection?: Array | null; + upv?: Array | null; + tcDisplay?: Array | null; + icon?: string | null; + authenticatorGetInfo?: any | null; + } | null; + }>; + profile?: { + displayName?: string | null; + phoneMobile?: string | null; + gender?: string | null; + birthday?: any | null; + address?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + addressLine2?: string | null; + postalCode?: string | null; + countryCode?: string | null; + regionCode?: string | null; + city?: string | null; + } | null; + } | null; + primaryEmail?: { verified: boolean; address: string } | null; + cart?: { _id: string; items?: Array<{ _id: string }> | null } | null; + orders: Array<{ _id: string; items?: Array<{ _id: string }> | null }>; + } | null; +}; export type IDeleteUserMutationVariables = Exact<{ userId?: InputMaybe; }>; - export type IDeleteUserMutation = { removeUser: { _id: string } }; export type IEnrollUserMutationVariables = Exact<{ @@ -4575,15 +4824,118 @@ export type IEnrollUserMutationVariables = Exact<{ profile: IUserProfileInput; }>; - -export type IEnrollUserMutation = { enrollUser: { _id: string, allowedActions: Array, username?: string | null, isGuest: boolean, isInitialPassword: boolean, name: string, roles?: Array | null, tags?: Array | null, deleted?: any | null, lastBillingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null, lastContact?: { emailAddress?: string | null, telNumber?: string | null } | null, lastLogin?: { countryCode?: string | null, locale?: any | null, remoteAddress?: string | null, remotePort?: number | null, timestamp: any, userAgent?: string | null } | null, avatar?: { _id: string, name: string, size: number, type: string, url?: string | null } | null, paymentCredentials: Array<{ _id: string, isValid: boolean, isPreferred: boolean, paymentProvider: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }>, emails?: Array<{ verified: boolean, address: string }> | null, web3Addresses: Array<{ address: string, nonce?: number | null, verified: boolean }>, webAuthnCredentials: Array<{ _id: string, created: any, aaguid: string, counter: number, mdsMetadata?: { legalHeader?: string | null, description?: string | null, authenticatorVersion?: number | null, protocolFamily?: string | null, schema?: number | null, authenticationAlgorithms?: Array | null, publicKeyAlgAndEncodings?: Array | null, attestationTypes?: Array | null, keyProtection?: Array | null, upv?: Array | null, tcDisplay?: Array | null, icon?: string | null, authenticatorGetInfo?: any | null } | null }>, profile?: { displayName?: string | null, phoneMobile?: string | null, gender?: string | null, birthday?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null } | null, primaryEmail?: { verified: boolean, address: string } | null, cart?: { _id: string, items?: Array<{ _id: string }> | null } | null, orders: Array<{ _id: string, items?: Array<{ _id: string }> | null }> } }; +export type IEnrollUserMutation = { + enrollUser: { + _id: string; + allowedActions: Array; + username?: string | null; + isGuest: boolean; + isInitialPassword: boolean; + name: string; + roles?: Array | null; + tags?: Array | null; + deleted?: any | null; + lastBillingAddress?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + addressLine2?: string | null; + postalCode?: string | null; + countryCode?: string | null; + regionCode?: string | null; + city?: string | null; + } | null; + lastContact?: { + emailAddress?: string | null; + telNumber?: string | null; + } | null; + lastLogin?: { + countryCode?: string | null; + locale?: any | null; + remoteAddress?: string | null; + remotePort?: number | null; + timestamp: any; + userAgent?: string | null; + } | null; + avatar?: { + _id: string; + name: string; + size: number; + type: string; + url?: string | null; + } | null; + paymentCredentials: Array<{ + _id: string; + isValid: boolean; + isPreferred: boolean; + paymentProvider: { + _id: string; + type?: IPaymentProviderType | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + }; + }>; + emails?: Array<{ verified: boolean; address: string }> | null; + web3Addresses: Array<{ + address: string; + nonce?: number | null; + verified: boolean; + }>; + webAuthnCredentials: Array<{ + _id: string; + created: any; + aaguid: string; + counter: number; + mdsMetadata?: { + legalHeader?: string | null; + description?: string | null; + authenticatorVersion?: number | null; + protocolFamily?: string | null; + schema?: number | null; + authenticationAlgorithms?: Array | null; + publicKeyAlgAndEncodings?: Array | null; + attestationTypes?: Array | null; + keyProtection?: Array | null; + upv?: Array | null; + tcDisplay?: Array | null; + icon?: string | null; + authenticatorGetInfo?: any | null; + } | null; + }>; + profile?: { + displayName?: string | null; + phoneMobile?: string | null; + gender?: string | null; + birthday?: any | null; + address?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + addressLine2?: string | null; + postalCode?: string | null; + countryCode?: string | null; + regionCode?: string | null; + city?: string | null; + } | null; + } | null; + primaryEmail?: { verified: boolean; address: string } | null; + cart?: { _id: string; items?: Array<{ _id: string }> | null } | null; + orders: Array<{ _id: string; items?: Array<{ _id: string }> | null }>; + }; +}; export type IForgotPasswordMutationVariables = Exact<{ email: Scalars['String']['input']; }>; - -export type IForgotPasswordMutation = { forgotPassword?: { success?: boolean | null } | null }; +export type IForgotPasswordMutation = { + forgotPassword?: { success?: boolean | null } | null; +}; export type ILoginWithPasswordMutationVariables = Exact<{ username?: InputMaybe; @@ -4591,114 +4943,968 @@ export type ILoginWithPasswordMutationVariables = Exact<{ password: Scalars['String']['input']; }>; - -export type ILoginWithPasswordMutation = { loginWithPassword?: { _id: string, tokenExpires: any, user?: { _id: string, allowedActions: Array, roles?: Array | null } | null } | null }; +export type ILoginWithPasswordMutation = { + loginWithPassword?: { + _id: string; + tokenExpires: any; + user?: { + _id: string; + allowedActions: Array; + roles?: Array | null; + } | null; + } | null; +}; export type ILoginWithWebAuthnMutationVariables = Exact<{ webAuthnPublicKeyCredentials: Scalars['JSON']['input']; }>; - -export type ILoginWithWebAuthnMutation = { loginWithWebAuthn?: { _id: string, tokenExpires: any } | null }; +export type ILoginWithWebAuthnMutation = { + loginWithWebAuthn?: { _id: string; tokenExpires: any } | null; +}; export type IRemoveEmailMutationVariables = Exact<{ email: Scalars['String']['input']; userId?: InputMaybe; }>; - -export type IRemoveEmailMutation = { removeEmail: { _id: string, allowedActions: Array, username?: string | null, isGuest: boolean, isInitialPassword: boolean, name: string, roles?: Array | null, tags?: Array | null, deleted?: any | null, lastBillingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null, lastContact?: { emailAddress?: string | null, telNumber?: string | null } | null, lastLogin?: { countryCode?: string | null, locale?: any | null, remoteAddress?: string | null, remotePort?: number | null, timestamp: any, userAgent?: string | null } | null, avatar?: { _id: string, name: string, size: number, type: string, url?: string | null } | null, paymentCredentials: Array<{ _id: string, isValid: boolean, isPreferred: boolean, paymentProvider: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }>, emails?: Array<{ verified: boolean, address: string }> | null, web3Addresses: Array<{ address: string, nonce?: number | null, verified: boolean }>, webAuthnCredentials: Array<{ _id: string, created: any, aaguid: string, counter: number, mdsMetadata?: { legalHeader?: string | null, description?: string | null, authenticatorVersion?: number | null, protocolFamily?: string | null, schema?: number | null, authenticationAlgorithms?: Array | null, publicKeyAlgAndEncodings?: Array | null, attestationTypes?: Array | null, keyProtection?: Array | null, upv?: Array | null, tcDisplay?: Array | null, icon?: string | null, authenticatorGetInfo?: any | null } | null }>, profile?: { displayName?: string | null, phoneMobile?: string | null, gender?: string | null, birthday?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null } | null, primaryEmail?: { verified: boolean, address: string } | null, cart?: { _id: string, items?: Array<{ _id: string }> | null } | null, orders: Array<{ _id: string, items?: Array<{ _id: string }> | null }> } }; +export type IRemoveEmailMutation = { + removeEmail: { + _id: string; + allowedActions: Array; + username?: string | null; + isGuest: boolean; + isInitialPassword: boolean; + name: string; + roles?: Array | null; + tags?: Array | null; + deleted?: any | null; + lastBillingAddress?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + addressLine2?: string | null; + postalCode?: string | null; + countryCode?: string | null; + regionCode?: string | null; + city?: string | null; + } | null; + lastContact?: { + emailAddress?: string | null; + telNumber?: string | null; + } | null; + lastLogin?: { + countryCode?: string | null; + locale?: any | null; + remoteAddress?: string | null; + remotePort?: number | null; + timestamp: any; + userAgent?: string | null; + } | null; + avatar?: { + _id: string; + name: string; + size: number; + type: string; + url?: string | null; + } | null; + paymentCredentials: Array<{ + _id: string; + isValid: boolean; + isPreferred: boolean; + paymentProvider: { + _id: string; + type?: IPaymentProviderType | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + }; + }>; + emails?: Array<{ verified: boolean; address: string }> | null; + web3Addresses: Array<{ + address: string; + nonce?: number | null; + verified: boolean; + }>; + webAuthnCredentials: Array<{ + _id: string; + created: any; + aaguid: string; + counter: number; + mdsMetadata?: { + legalHeader?: string | null; + description?: string | null; + authenticatorVersion?: number | null; + protocolFamily?: string | null; + schema?: number | null; + authenticationAlgorithms?: Array | null; + publicKeyAlgAndEncodings?: Array | null; + attestationTypes?: Array | null; + keyProtection?: Array | null; + upv?: Array | null; + tcDisplay?: Array | null; + icon?: string | null; + authenticatorGetInfo?: any | null; + } | null; + }>; + profile?: { + displayName?: string | null; + phoneMobile?: string | null; + gender?: string | null; + birthday?: any | null; + address?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + addressLine2?: string | null; + postalCode?: string | null; + countryCode?: string | null; + regionCode?: string | null; + city?: string | null; + } | null; + } | null; + primaryEmail?: { verified: boolean; address: string } | null; + cart?: { _id: string; items?: Array<{ _id: string }> | null } | null; + orders: Array<{ _id: string; items?: Array<{ _id: string }> | null }>; + }; +}; export type IRemoveWeb3AddressMutationVariables = Exact<{ address: Scalars['String']['input']; }>; - -export type IRemoveWeb3AddressMutation = { removeWeb3Address: { _id: string, allowedActions: Array, username?: string | null, isGuest: boolean, isInitialPassword: boolean, name: string, roles?: Array | null, tags?: Array | null, deleted?: any | null, lastBillingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null, lastContact?: { emailAddress?: string | null, telNumber?: string | null } | null, lastLogin?: { countryCode?: string | null, locale?: any | null, remoteAddress?: string | null, remotePort?: number | null, timestamp: any, userAgent?: string | null } | null, avatar?: { _id: string, name: string, size: number, type: string, url?: string | null } | null, paymentCredentials: Array<{ _id: string, isValid: boolean, isPreferred: boolean, paymentProvider: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }>, emails?: Array<{ verified: boolean, address: string }> | null, web3Addresses: Array<{ address: string, nonce?: number | null, verified: boolean }>, webAuthnCredentials: Array<{ _id: string, created: any, aaguid: string, counter: number, mdsMetadata?: { legalHeader?: string | null, description?: string | null, authenticatorVersion?: number | null, protocolFamily?: string | null, schema?: number | null, authenticationAlgorithms?: Array | null, publicKeyAlgAndEncodings?: Array | null, attestationTypes?: Array | null, keyProtection?: Array | null, upv?: Array | null, tcDisplay?: Array | null, icon?: string | null, authenticatorGetInfo?: any | null } | null }>, profile?: { displayName?: string | null, phoneMobile?: string | null, gender?: string | null, birthday?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null } | null, primaryEmail?: { verified: boolean, address: string } | null, cart?: { _id: string, items?: Array<{ _id: string }> | null } | null, orders: Array<{ _id: string, items?: Array<{ _id: string }> | null }> } }; +export type IRemoveWeb3AddressMutation = { + removeWeb3Address: { + _id: string; + allowedActions: Array; + username?: string | null; + isGuest: boolean; + isInitialPassword: boolean; + name: string; + roles?: Array | null; + tags?: Array | null; + deleted?: any | null; + lastBillingAddress?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + addressLine2?: string | null; + postalCode?: string | null; + countryCode?: string | null; + regionCode?: string | null; + city?: string | null; + } | null; + lastContact?: { + emailAddress?: string | null; + telNumber?: string | null; + } | null; + lastLogin?: { + countryCode?: string | null; + locale?: any | null; + remoteAddress?: string | null; + remotePort?: number | null; + timestamp: any; + userAgent?: string | null; + } | null; + avatar?: { + _id: string; + name: string; + size: number; + type: string; + url?: string | null; + } | null; + paymentCredentials: Array<{ + _id: string; + isValid: boolean; + isPreferred: boolean; + paymentProvider: { + _id: string; + type?: IPaymentProviderType | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + }; + }>; + emails?: Array<{ verified: boolean; address: string }> | null; + web3Addresses: Array<{ + address: string; + nonce?: number | null; + verified: boolean; + }>; + webAuthnCredentials: Array<{ + _id: string; + created: any; + aaguid: string; + counter: number; + mdsMetadata?: { + legalHeader?: string | null; + description?: string | null; + authenticatorVersion?: number | null; + protocolFamily?: string | null; + schema?: number | null; + authenticationAlgorithms?: Array | null; + publicKeyAlgAndEncodings?: Array | null; + attestationTypes?: Array | null; + keyProtection?: Array | null; + upv?: Array | null; + tcDisplay?: Array | null; + icon?: string | null; + authenticatorGetInfo?: any | null; + } | null; + }>; + profile?: { + displayName?: string | null; + phoneMobile?: string | null; + gender?: string | null; + birthday?: any | null; + address?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + addressLine2?: string | null; + postalCode?: string | null; + countryCode?: string | null; + regionCode?: string | null; + city?: string | null; + } | null; + } | null; + primaryEmail?: { verified: boolean; address: string } | null; + cart?: { _id: string; items?: Array<{ _id: string }> | null } | null; + orders: Array<{ _id: string; items?: Array<{ _id: string }> | null }>; + }; +}; export type IRemoveWebAuthCredentialsMutationVariables = Exact<{ credentialsId: Scalars['ID']['input']; }>; - -export type IRemoveWebAuthCredentialsMutation = { removeWebAuthnCredentials: { _id: string, allowedActions: Array, username?: string | null, isGuest: boolean, isInitialPassword: boolean, name: string, roles?: Array | null, tags?: Array | null, deleted?: any | null, lastBillingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null, lastContact?: { emailAddress?: string | null, telNumber?: string | null } | null, lastLogin?: { countryCode?: string | null, locale?: any | null, remoteAddress?: string | null, remotePort?: number | null, timestamp: any, userAgent?: string | null } | null, avatar?: { _id: string, name: string, size: number, type: string, url?: string | null } | null, paymentCredentials: Array<{ _id: string, isValid: boolean, isPreferred: boolean, paymentProvider: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }>, emails?: Array<{ verified: boolean, address: string }> | null, web3Addresses: Array<{ address: string, nonce?: number | null, verified: boolean }>, webAuthnCredentials: Array<{ _id: string, created: any, aaguid: string, counter: number, mdsMetadata?: { legalHeader?: string | null, description?: string | null, authenticatorVersion?: number | null, protocolFamily?: string | null, schema?: number | null, authenticationAlgorithms?: Array | null, publicKeyAlgAndEncodings?: Array | null, attestationTypes?: Array | null, keyProtection?: Array | null, upv?: Array | null, tcDisplay?: Array | null, icon?: string | null, authenticatorGetInfo?: any | null } | null }>, profile?: { displayName?: string | null, phoneMobile?: string | null, gender?: string | null, birthday?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null } | null, primaryEmail?: { verified: boolean, address: string } | null, cart?: { _id: string, items?: Array<{ _id: string }> | null } | null, orders: Array<{ _id: string, items?: Array<{ _id: string }> | null }> } }; +export type IRemoveWebAuthCredentialsMutation = { + removeWebAuthnCredentials: { + _id: string; + allowedActions: Array; + username?: string | null; + isGuest: boolean; + isInitialPassword: boolean; + name: string; + roles?: Array | null; + tags?: Array | null; + deleted?: any | null; + lastBillingAddress?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + addressLine2?: string | null; + postalCode?: string | null; + countryCode?: string | null; + regionCode?: string | null; + city?: string | null; + } | null; + lastContact?: { + emailAddress?: string | null; + telNumber?: string | null; + } | null; + lastLogin?: { + countryCode?: string | null; + locale?: any | null; + remoteAddress?: string | null; + remotePort?: number | null; + timestamp: any; + userAgent?: string | null; + } | null; + avatar?: { + _id: string; + name: string; + size: number; + type: string; + url?: string | null; + } | null; + paymentCredentials: Array<{ + _id: string; + isValid: boolean; + isPreferred: boolean; + paymentProvider: { + _id: string; + type?: IPaymentProviderType | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + }; + }>; + emails?: Array<{ verified: boolean; address: string }> | null; + web3Addresses: Array<{ + address: string; + nonce?: number | null; + verified: boolean; + }>; + webAuthnCredentials: Array<{ + _id: string; + created: any; + aaguid: string; + counter: number; + mdsMetadata?: { + legalHeader?: string | null; + description?: string | null; + authenticatorVersion?: number | null; + protocolFamily?: string | null; + schema?: number | null; + authenticationAlgorithms?: Array | null; + publicKeyAlgAndEncodings?: Array | null; + attestationTypes?: Array | null; + keyProtection?: Array | null; + upv?: Array | null; + tcDisplay?: Array | null; + icon?: string | null; + authenticatorGetInfo?: any | null; + } | null; + }>; + profile?: { + displayName?: string | null; + phoneMobile?: string | null; + gender?: string | null; + birthday?: any | null; + address?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + addressLine2?: string | null; + postalCode?: string | null; + countryCode?: string | null; + regionCode?: string | null; + city?: string | null; + } | null; + } | null; + primaryEmail?: { verified: boolean; address: string } | null; + cart?: { _id: string; items?: Array<{ _id: string }> | null } | null; + orders: Array<{ _id: string; items?: Array<{ _id: string }> | null }>; + }; +}; export type IResetPasswordMutationVariables = Exact<{ newPlainPassword: Scalars['String']['input']; token: Scalars['String']['input']; }>; - -export type IResetPasswordMutation = { resetPassword?: { _id: string, tokenExpires: any } | null }; +export type IResetPasswordMutation = { + resetPassword?: { _id: string; tokenExpires: any } | null; +}; export type ISendVerificationEmailMutationVariables = Exact<{ email?: InputMaybe; }>; - -export type ISendVerificationEmailMutation = { sendVerificationEmail?: { success?: boolean | null } | null }; +export type ISendVerificationEmailMutation = { + sendVerificationEmail?: { success?: boolean | null } | null; +}; export type ISetPasswordMutationVariables = Exact<{ newPlainPassword: Scalars['String']['input']; userId: Scalars['ID']['input']; }>; - -export type ISetPasswordMutation = { setPassword: { _id: string, allowedActions: Array, username?: string | null, isGuest: boolean, isInitialPassword: boolean, name: string, roles?: Array | null, tags?: Array | null, deleted?: any | null, lastBillingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null, lastContact?: { emailAddress?: string | null, telNumber?: string | null } | null, lastLogin?: { countryCode?: string | null, locale?: any | null, remoteAddress?: string | null, remotePort?: number | null, timestamp: any, userAgent?: string | null } | null, avatar?: { _id: string, name: string, size: number, type: string, url?: string | null } | null, paymentCredentials: Array<{ _id: string, isValid: boolean, isPreferred: boolean, paymentProvider: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }>, emails?: Array<{ verified: boolean, address: string }> | null, web3Addresses: Array<{ address: string, nonce?: number | null, verified: boolean }>, webAuthnCredentials: Array<{ _id: string, created: any, aaguid: string, counter: number, mdsMetadata?: { legalHeader?: string | null, description?: string | null, authenticatorVersion?: number | null, protocolFamily?: string | null, schema?: number | null, authenticationAlgorithms?: Array | null, publicKeyAlgAndEncodings?: Array | null, attestationTypes?: Array | null, keyProtection?: Array | null, upv?: Array | null, tcDisplay?: Array | null, icon?: string | null, authenticatorGetInfo?: any | null } | null }>, profile?: { displayName?: string | null, phoneMobile?: string | null, gender?: string | null, birthday?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null } | null, primaryEmail?: { verified: boolean, address: string } | null, cart?: { _id: string, items?: Array<{ _id: string }> | null } | null, orders: Array<{ _id: string, items?: Array<{ _id: string }> | null }> } }; +export type ISetPasswordMutation = { + setPassword: { + _id: string; + allowedActions: Array; + username?: string | null; + isGuest: boolean; + isInitialPassword: boolean; + name: string; + roles?: Array | null; + tags?: Array | null; + deleted?: any | null; + lastBillingAddress?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + addressLine2?: string | null; + postalCode?: string | null; + countryCode?: string | null; + regionCode?: string | null; + city?: string | null; + } | null; + lastContact?: { + emailAddress?: string | null; + telNumber?: string | null; + } | null; + lastLogin?: { + countryCode?: string | null; + locale?: any | null; + remoteAddress?: string | null; + remotePort?: number | null; + timestamp: any; + userAgent?: string | null; + } | null; + avatar?: { + _id: string; + name: string; + size: number; + type: string; + url?: string | null; + } | null; + paymentCredentials: Array<{ + _id: string; + isValid: boolean; + isPreferred: boolean; + paymentProvider: { + _id: string; + type?: IPaymentProviderType | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + }; + }>; + emails?: Array<{ verified: boolean; address: string }> | null; + web3Addresses: Array<{ + address: string; + nonce?: number | null; + verified: boolean; + }>; + webAuthnCredentials: Array<{ + _id: string; + created: any; + aaguid: string; + counter: number; + mdsMetadata?: { + legalHeader?: string | null; + description?: string | null; + authenticatorVersion?: number | null; + protocolFamily?: string | null; + schema?: number | null; + authenticationAlgorithms?: Array | null; + publicKeyAlgAndEncodings?: Array | null; + attestationTypes?: Array | null; + keyProtection?: Array | null; + upv?: Array | null; + tcDisplay?: Array | null; + icon?: string | null; + authenticatorGetInfo?: any | null; + } | null; + }>; + profile?: { + displayName?: string | null; + phoneMobile?: string | null; + gender?: string | null; + birthday?: any | null; + address?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + addressLine2?: string | null; + postalCode?: string | null; + countryCode?: string | null; + regionCode?: string | null; + city?: string | null; + } | null; + } | null; + primaryEmail?: { verified: boolean; address: string } | null; + cart?: { _id: string; items?: Array<{ _id: string }> | null } | null; + orders: Array<{ _id: string; items?: Array<{ _id: string }> | null }>; + }; +}; export type ISetRolesMutationVariables = Exact<{ roles: Array; userId: Scalars['ID']['input']; }>; - -export type ISetRolesMutation = { setRoles: { _id: string, allowedActions: Array, username?: string | null, isGuest: boolean, isInitialPassword: boolean, name: string, roles?: Array | null, tags?: Array | null, deleted?: any | null, lastBillingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null, lastContact?: { emailAddress?: string | null, telNumber?: string | null } | null, lastLogin?: { countryCode?: string | null, locale?: any | null, remoteAddress?: string | null, remotePort?: number | null, timestamp: any, userAgent?: string | null } | null, avatar?: { _id: string, name: string, size: number, type: string, url?: string | null } | null, paymentCredentials: Array<{ _id: string, isValid: boolean, isPreferred: boolean, paymentProvider: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }>, emails?: Array<{ verified: boolean, address: string }> | null, web3Addresses: Array<{ address: string, nonce?: number | null, verified: boolean }>, webAuthnCredentials: Array<{ _id: string, created: any, aaguid: string, counter: number, mdsMetadata?: { legalHeader?: string | null, description?: string | null, authenticatorVersion?: number | null, protocolFamily?: string | null, schema?: number | null, authenticationAlgorithms?: Array | null, publicKeyAlgAndEncodings?: Array | null, attestationTypes?: Array | null, keyProtection?: Array | null, upv?: Array | null, tcDisplay?: Array | null, icon?: string | null, authenticatorGetInfo?: any | null } | null }>, profile?: { displayName?: string | null, phoneMobile?: string | null, gender?: string | null, birthday?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null } | null, primaryEmail?: { verified: boolean, address: string } | null, cart?: { _id: string, items?: Array<{ _id: string }> | null } | null, orders: Array<{ _id: string, items?: Array<{ _id: string }> | null }> } }; +export type ISetRolesMutation = { + setRoles: { + _id: string; + allowedActions: Array; + username?: string | null; + isGuest: boolean; + isInitialPassword: boolean; + name: string; + roles?: Array | null; + tags?: Array | null; + deleted?: any | null; + lastBillingAddress?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + addressLine2?: string | null; + postalCode?: string | null; + countryCode?: string | null; + regionCode?: string | null; + city?: string | null; + } | null; + lastContact?: { + emailAddress?: string | null; + telNumber?: string | null; + } | null; + lastLogin?: { + countryCode?: string | null; + locale?: any | null; + remoteAddress?: string | null; + remotePort?: number | null; + timestamp: any; + userAgent?: string | null; + } | null; + avatar?: { + _id: string; + name: string; + size: number; + type: string; + url?: string | null; + } | null; + paymentCredentials: Array<{ + _id: string; + isValid: boolean; + isPreferred: boolean; + paymentProvider: { + _id: string; + type?: IPaymentProviderType | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + }; + }>; + emails?: Array<{ verified: boolean; address: string }> | null; + web3Addresses: Array<{ + address: string; + nonce?: number | null; + verified: boolean; + }>; + webAuthnCredentials: Array<{ + _id: string; + created: any; + aaguid: string; + counter: number; + mdsMetadata?: { + legalHeader?: string | null; + description?: string | null; + authenticatorVersion?: number | null; + protocolFamily?: string | null; + schema?: number | null; + authenticationAlgorithms?: Array | null; + publicKeyAlgAndEncodings?: Array | null; + attestationTypes?: Array | null; + keyProtection?: Array | null; + upv?: Array | null; + tcDisplay?: Array | null; + icon?: string | null; + authenticatorGetInfo?: any | null; + } | null; + }>; + profile?: { + displayName?: string | null; + phoneMobile?: string | null; + gender?: string | null; + birthday?: any | null; + address?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + addressLine2?: string | null; + postalCode?: string | null; + countryCode?: string | null; + regionCode?: string | null; + city?: string | null; + } | null; + } | null; + primaryEmail?: { verified: boolean; address: string } | null; + cart?: { _id: string; items?: Array<{ _id: string }> | null } | null; + orders: Array<{ _id: string; items?: Array<{ _id: string }> | null }>; + }; +}; export type ISetUserTagsMutationVariables = Exact<{ tags: Array>; userId: Scalars['ID']['input']; }>; - -export type ISetUserTagsMutation = { setUserTags: { _id: string, tags?: Array | null } }; +export type ISetUserTagsMutation = { + setUserTags: { _id: string; tags?: Array | null }; +}; export type ISetUsernameMutationVariables = Exact<{ username: Scalars['String']['input']; userId: Scalars['ID']['input']; }>; - -export type ISetUsernameMutation = { setUsername: { _id: string, allowedActions: Array, username?: string | null, isGuest: boolean, isInitialPassword: boolean, name: string, roles?: Array | null, tags?: Array | null, deleted?: any | null, lastBillingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null, lastContact?: { emailAddress?: string | null, telNumber?: string | null } | null, lastLogin?: { countryCode?: string | null, locale?: any | null, remoteAddress?: string | null, remotePort?: number | null, timestamp: any, userAgent?: string | null } | null, avatar?: { _id: string, name: string, size: number, type: string, url?: string | null } | null, paymentCredentials: Array<{ _id: string, isValid: boolean, isPreferred: boolean, paymentProvider: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }>, emails?: Array<{ verified: boolean, address: string }> | null, web3Addresses: Array<{ address: string, nonce?: number | null, verified: boolean }>, webAuthnCredentials: Array<{ _id: string, created: any, aaguid: string, counter: number, mdsMetadata?: { legalHeader?: string | null, description?: string | null, authenticatorVersion?: number | null, protocolFamily?: string | null, schema?: number | null, authenticationAlgorithms?: Array | null, publicKeyAlgAndEncodings?: Array | null, attestationTypes?: Array | null, keyProtection?: Array | null, upv?: Array | null, tcDisplay?: Array | null, icon?: string | null, authenticatorGetInfo?: any | null } | null }>, profile?: { displayName?: string | null, phoneMobile?: string | null, gender?: string | null, birthday?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null } | null, primaryEmail?: { verified: boolean, address: string } | null, cart?: { _id: string, items?: Array<{ _id: string }> | null } | null, orders: Array<{ _id: string, items?: Array<{ _id: string }> | null }> } }; +export type ISetUsernameMutation = { + setUsername: { + _id: string; + allowedActions: Array; + username?: string | null; + isGuest: boolean; + isInitialPassword: boolean; + name: string; + roles?: Array | null; + tags?: Array | null; + deleted?: any | null; + lastBillingAddress?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + addressLine2?: string | null; + postalCode?: string | null; + countryCode?: string | null; + regionCode?: string | null; + city?: string | null; + } | null; + lastContact?: { + emailAddress?: string | null; + telNumber?: string | null; + } | null; + lastLogin?: { + countryCode?: string | null; + locale?: any | null; + remoteAddress?: string | null; + remotePort?: number | null; + timestamp: any; + userAgent?: string | null; + } | null; + avatar?: { + _id: string; + name: string; + size: number; + type: string; + url?: string | null; + } | null; + paymentCredentials: Array<{ + _id: string; + isValid: boolean; + isPreferred: boolean; + paymentProvider: { + _id: string; + type?: IPaymentProviderType | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + }; + }>; + emails?: Array<{ verified: boolean; address: string }> | null; + web3Addresses: Array<{ + address: string; + nonce?: number | null; + verified: boolean; + }>; + webAuthnCredentials: Array<{ + _id: string; + created: any; + aaguid: string; + counter: number; + mdsMetadata?: { + legalHeader?: string | null; + description?: string | null; + authenticatorVersion?: number | null; + protocolFamily?: string | null; + schema?: number | null; + authenticationAlgorithms?: Array | null; + publicKeyAlgAndEncodings?: Array | null; + attestationTypes?: Array | null; + keyProtection?: Array | null; + upv?: Array | null; + tcDisplay?: Array | null; + icon?: string | null; + authenticatorGetInfo?: any | null; + } | null; + }>; + profile?: { + displayName?: string | null; + phoneMobile?: string | null; + gender?: string | null; + birthday?: any | null; + address?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + addressLine2?: string | null; + postalCode?: string | null; + countryCode?: string | null; + regionCode?: string | null; + city?: string | null; + } | null; + } | null; + primaryEmail?: { verified: boolean; address: string } | null; + cart?: { _id: string; items?: Array<{ _id: string }> | null } | null; + orders: Array<{ _id: string; items?: Array<{ _id: string }> | null }>; + }; +}; export type IPrepareUserAvatarUploadMutationVariables = Exact<{ mediaName: Scalars['String']['input']; userId?: InputMaybe; }>; - -export type IPrepareUserAvatarUploadMutation = { prepareUserAvatarUpload: { _id: string, putURL: string, expires: any } }; +export type IPrepareUserAvatarUploadMutation = { + prepareUserAvatarUpload: { _id: string; putURL: string; expires: any }; +}; export type IUpdateUserProfileMutationVariables = Exact<{ profile: IUserProfileInput; userId?: InputMaybe; }>; - -export type IUpdateUserProfileMutation = { updateUserProfile: { _id: string, allowedActions: Array, username?: string | null, isGuest: boolean, isInitialPassword: boolean, name: string, roles?: Array | null, tags?: Array | null, deleted?: any | null, lastBillingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null, lastContact?: { emailAddress?: string | null, telNumber?: string | null } | null, lastLogin?: { countryCode?: string | null, locale?: any | null, remoteAddress?: string | null, remotePort?: number | null, timestamp: any, userAgent?: string | null } | null, avatar?: { _id: string, name: string, size: number, type: string, url?: string | null } | null, paymentCredentials: Array<{ _id: string, isValid: boolean, isPreferred: boolean, paymentProvider: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }>, emails?: Array<{ verified: boolean, address: string }> | null, web3Addresses: Array<{ address: string, nonce?: number | null, verified: boolean }>, webAuthnCredentials: Array<{ _id: string, created: any, aaguid: string, counter: number, mdsMetadata?: { legalHeader?: string | null, description?: string | null, authenticatorVersion?: number | null, protocolFamily?: string | null, schema?: number | null, authenticationAlgorithms?: Array | null, publicKeyAlgAndEncodings?: Array | null, attestationTypes?: Array | null, keyProtection?: Array | null, upv?: Array | null, tcDisplay?: Array | null, icon?: string | null, authenticatorGetInfo?: any | null } | null }>, profile?: { displayName?: string | null, phoneMobile?: string | null, gender?: string | null, birthday?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null } | null, primaryEmail?: { verified: boolean, address: string } | null, cart?: { _id: string, items?: Array<{ _id: string }> | null } | null, orders: Array<{ _id: string, items?: Array<{ _id: string }> | null }> } }; +export type IUpdateUserProfileMutation = { + updateUserProfile: { + _id: string; + allowedActions: Array; + username?: string | null; + isGuest: boolean; + isInitialPassword: boolean; + name: string; + roles?: Array | null; + tags?: Array | null; + deleted?: any | null; + lastBillingAddress?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + addressLine2?: string | null; + postalCode?: string | null; + countryCode?: string | null; + regionCode?: string | null; + city?: string | null; + } | null; + lastContact?: { + emailAddress?: string | null; + telNumber?: string | null; + } | null; + lastLogin?: { + countryCode?: string | null; + locale?: any | null; + remoteAddress?: string | null; + remotePort?: number | null; + timestamp: any; + userAgent?: string | null; + } | null; + avatar?: { + _id: string; + name: string; + size: number; + type: string; + url?: string | null; + } | null; + paymentCredentials: Array<{ + _id: string; + isValid: boolean; + isPreferred: boolean; + paymentProvider: { + _id: string; + type?: IPaymentProviderType | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + }; + }>; + emails?: Array<{ verified: boolean; address: string }> | null; + web3Addresses: Array<{ + address: string; + nonce?: number | null; + verified: boolean; + }>; + webAuthnCredentials: Array<{ + _id: string; + created: any; + aaguid: string; + counter: number; + mdsMetadata?: { + legalHeader?: string | null; + description?: string | null; + authenticatorVersion?: number | null; + protocolFamily?: string | null; + schema?: number | null; + authenticationAlgorithms?: Array | null; + publicKeyAlgAndEncodings?: Array | null; + attestationTypes?: Array | null; + keyProtection?: Array | null; + upv?: Array | null; + tcDisplay?: Array | null; + icon?: string | null; + authenticatorGetInfo?: any | null; + } | null; + }>; + profile?: { + displayName?: string | null; + phoneMobile?: string | null; + gender?: string | null; + birthday?: any | null; + address?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + addressLine2?: string | null; + postalCode?: string | null; + countryCode?: string | null; + regionCode?: string | null; + city?: string | null; + } | null; + } | null; + primaryEmail?: { verified: boolean; address: string } | null; + cart?: { _id: string; items?: Array<{ _id: string }> | null } | null; + orders: Array<{ _id: string; items?: Array<{ _id: string }> | null }>; + }; +}; export type IUserQueryVariables = Exact<{ userId?: InputMaybe; }>; - -export type IUserQuery = { user?: { _id: string, allowedActions: Array, username?: string | null, isGuest: boolean, isInitialPassword: boolean, name: string, roles?: Array | null, tags?: Array | null, deleted?: any | null, lastBillingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null, lastContact?: { emailAddress?: string | null, telNumber?: string | null } | null, lastLogin?: { countryCode?: string | null, locale?: any | null, remoteAddress?: string | null, remotePort?: number | null, timestamp: any, userAgent?: string | null } | null, avatar?: { _id: string, name: string, size: number, type: string, url?: string | null } | null, paymentCredentials: Array<{ _id: string, isValid: boolean, isPreferred: boolean, paymentProvider: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }>, emails?: Array<{ verified: boolean, address: string }> | null, web3Addresses: Array<{ address: string, nonce?: number | null, verified: boolean }>, webAuthnCredentials: Array<{ _id: string, created: any, aaguid: string, counter: number, mdsMetadata?: { legalHeader?: string | null, description?: string | null, authenticatorVersion?: number | null, protocolFamily?: string | null, schema?: number | null, authenticationAlgorithms?: Array | null, publicKeyAlgAndEncodings?: Array | null, attestationTypes?: Array | null, keyProtection?: Array | null, upv?: Array | null, tcDisplay?: Array | null, icon?: string | null, authenticatorGetInfo?: any | null } | null }>, profile?: { displayName?: string | null, phoneMobile?: string | null, gender?: string | null, birthday?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null } | null, primaryEmail?: { verified: boolean, address: string } | null, cart?: { _id: string, items?: Array<{ _id: string }> | null } | null, orders: Array<{ _id: string, items?: Array<{ _id: string }> | null }> } | null }; +export type IUserQuery = { + user?: { + _id: string; + allowedActions: Array; + username?: string | null; + isGuest: boolean; + isInitialPassword: boolean; + name: string; + roles?: Array | null; + tags?: Array | null; + deleted?: any | null; + lastBillingAddress?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + addressLine2?: string | null; + postalCode?: string | null; + countryCode?: string | null; + regionCode?: string | null; + city?: string | null; + } | null; + lastContact?: { + emailAddress?: string | null; + telNumber?: string | null; + } | null; + lastLogin?: { + countryCode?: string | null; + locale?: any | null; + remoteAddress?: string | null; + remotePort?: number | null; + timestamp: any; + userAgent?: string | null; + } | null; + avatar?: { + _id: string; + name: string; + size: number; + type: string; + url?: string | null; + } | null; + paymentCredentials: Array<{ + _id: string; + isValid: boolean; + isPreferred: boolean; + paymentProvider: { + _id: string; + type?: IPaymentProviderType | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + }; + }>; + emails?: Array<{ verified: boolean; address: string }> | null; + web3Addresses: Array<{ + address: string; + nonce?: number | null; + verified: boolean; + }>; + webAuthnCredentials: Array<{ + _id: string; + created: any; + aaguid: string; + counter: number; + mdsMetadata?: { + legalHeader?: string | null; + description?: string | null; + authenticatorVersion?: number | null; + protocolFamily?: string | null; + schema?: number | null; + authenticationAlgorithms?: Array | null; + publicKeyAlgAndEncodings?: Array | null; + attestationTypes?: Array | null; + keyProtection?: Array | null; + upv?: Array | null; + tcDisplay?: Array | null; + icon?: string | null; + authenticatorGetInfo?: any | null; + } | null; + }>; + profile?: { + displayName?: string | null; + phoneMobile?: string | null; + gender?: string | null; + birthday?: any | null; + address?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + addressLine2?: string | null; + postalCode?: string | null; + countryCode?: string | null; + regionCode?: string | null; + city?: string | null; + } | null; + } | null; + primaryEmail?: { verified: boolean; address: string } | null; + cart?: { _id: string; items?: Array<{ _id: string }> | null } | null; + orders: Array<{ _id: string; items?: Array<{ _id: string }> | null }>; + } | null; +}; export type IUserWebAuthnCredentialsQueryVariables = Exact<{ userId: Scalars['ID']['input']; }>; - -export type IUserWebAuthnCredentialsQuery = { user?: { _id: string, webAuthnCredentials: Array<{ _id: string, created: any, aaguid: string, counter: number, mdsMetadata?: { legalHeader?: string | null, description?: string | null, authenticatorVersion?: number | null, protocolFamily?: string | null, schema?: number | null, authenticationAlgorithms?: Array | null, publicKeyAlgAndEncodings?: Array | null, attestationTypes?: Array | null, keyProtection?: Array | null, upv?: Array | null, tcDisplay?: Array | null, icon?: string | null, authenticatorGetInfo?: any | null } | null }> } | null }; +export type IUserWebAuthnCredentialsQuery = { + user?: { + _id: string; + webAuthnCredentials: Array<{ + _id: string; + created: any; + aaguid: string; + counter: number; + mdsMetadata?: { + legalHeader?: string | null; + description?: string | null; + authenticatorVersion?: number | null; + protocolFamily?: string | null; + schema?: number | null; + authenticationAlgorithms?: Array | null; + publicKeyAlgAndEncodings?: Array | null; + attestationTypes?: Array | null; + keyProtection?: Array | null; + upv?: Array | null; + tcDisplay?: Array | null; + icon?: string | null; + authenticatorGetInfo?: any | null; + } | null; + }>; + } | null; +}; export type IUsersQueryVariables = Exact<{ limit?: InputMaybe; @@ -4710,8 +5916,111 @@ export type IUsersQueryVariables = Exact<{ tags?: InputMaybe>; }>; - -export type IUsersQuery = { usersCount: number, users: Array<{ _id: string, allowedActions: Array, username?: string | null, isGuest: boolean, isInitialPassword: boolean, name: string, roles?: Array | null, tags?: Array | null, deleted?: any | null, lastBillingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null, lastContact?: { emailAddress?: string | null, telNumber?: string | null } | null, lastLogin?: { countryCode?: string | null, locale?: any | null, remoteAddress?: string | null, remotePort?: number | null, timestamp: any, userAgent?: string | null } | null, avatar?: { _id: string, name: string, size: number, type: string, url?: string | null } | null, paymentCredentials: Array<{ _id: string, isValid: boolean, isPreferred: boolean, paymentProvider: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }>, emails?: Array<{ verified: boolean, address: string }> | null, web3Addresses: Array<{ address: string, nonce?: number | null, verified: boolean }>, webAuthnCredentials: Array<{ _id: string, created: any, aaguid: string, counter: number, mdsMetadata?: { legalHeader?: string | null, description?: string | null, authenticatorVersion?: number | null, protocolFamily?: string | null, schema?: number | null, authenticationAlgorithms?: Array | null, publicKeyAlgAndEncodings?: Array | null, attestationTypes?: Array | null, keyProtection?: Array | null, upv?: Array | null, tcDisplay?: Array | null, icon?: string | null, authenticatorGetInfo?: any | null } | null }>, profile?: { displayName?: string | null, phoneMobile?: string | null, gender?: string | null, birthday?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null } | null, primaryEmail?: { verified: boolean, address: string } | null, cart?: { _id: string, items?: Array<{ _id: string }> | null } | null, orders: Array<{ _id: string, items?: Array<{ _id: string }> | null }> }> }; +export type IUsersQuery = { + usersCount: number; + users: Array<{ + _id: string; + allowedActions: Array; + username?: string | null; + isGuest: boolean; + isInitialPassword: boolean; + name: string; + roles?: Array | null; + tags?: Array | null; + deleted?: any | null; + lastBillingAddress?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + addressLine2?: string | null; + postalCode?: string | null; + countryCode?: string | null; + regionCode?: string | null; + city?: string | null; + } | null; + lastContact?: { + emailAddress?: string | null; + telNumber?: string | null; + } | null; + lastLogin?: { + countryCode?: string | null; + locale?: any | null; + remoteAddress?: string | null; + remotePort?: number | null; + timestamp: any; + userAgent?: string | null; + } | null; + avatar?: { + _id: string; + name: string; + size: number; + type: string; + url?: string | null; + } | null; + paymentCredentials: Array<{ + _id: string; + isValid: boolean; + isPreferred: boolean; + paymentProvider: { + _id: string; + type?: IPaymentProviderType | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + }; + }>; + emails?: Array<{ verified: boolean; address: string }> | null; + web3Addresses: Array<{ + address: string; + nonce?: number | null; + verified: boolean; + }>; + webAuthnCredentials: Array<{ + _id: string; + created: any; + aaguid: string; + counter: number; + mdsMetadata?: { + legalHeader?: string | null; + description?: string | null; + authenticatorVersion?: number | null; + protocolFamily?: string | null; + schema?: number | null; + authenticationAlgorithms?: Array | null; + publicKeyAlgAndEncodings?: Array | null; + attestationTypes?: Array | null; + keyProtection?: Array | null; + upv?: Array | null; + tcDisplay?: Array | null; + icon?: string | null; + authenticatorGetInfo?: any | null; + } | null; + }>; + profile?: { + displayName?: string | null; + phoneMobile?: string | null; + gender?: string | null; + birthday?: any | null; + address?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + addressLine2?: string | null; + postalCode?: string | null; + countryCode?: string | null; + regionCode?: string | null; + city?: string | null; + } | null; + } | null; + primaryEmail?: { verified: boolean; address: string } | null; + cart?: { _id: string; items?: Array<{ _id: string }> | null } | null; + orders: Array<{ _id: string; items?: Array<{ _id: string }> | null }>; + }>; +}; export type IUsersCountQueryVariables = Exact<{ includeGuests?: InputMaybe; @@ -4720,67 +6029,373 @@ export type IUsersCountQueryVariables = Exact<{ emailVerified?: InputMaybe; }>; - export type IUsersCountQuery = { usersCount: number }; export type IValidateVerifyEmailTokenQueryVariables = Exact<{ token: Scalars['String']['input']; }>; - -export type IValidateVerifyEmailTokenQuery = { validateVerifyEmailToken: boolean }; +export type IValidateVerifyEmailTokenQuery = { + validateVerifyEmailToken: boolean; +}; export type IValidateResetPasswordTokenQueryVariables = Exact<{ token: Scalars['String']['input']; }>; - -export type IValidateResetPasswordTokenQuery = { validateResetPasswordToken: boolean }; +export type IValidateResetPasswordTokenQuery = { + validateResetPasswordToken: boolean; +}; export type IVerifyEmailMutationVariables = Exact<{ token: Scalars['String']['input']; }>; - -export type IVerifyEmailMutation = { verifyEmail?: { _id: string, tokenExpires: any, user?: { _id: string, allowedActions: Array, username?: string | null, isGuest: boolean, isInitialPassword: boolean, name: string, roles?: Array | null, tags?: Array | null, deleted?: any | null, lastBillingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null, lastContact?: { emailAddress?: string | null, telNumber?: string | null } | null, lastLogin?: { countryCode?: string | null, locale?: any | null, remoteAddress?: string | null, remotePort?: number | null, timestamp: any, userAgent?: string | null } | null, avatar?: { _id: string, name: string, size: number, type: string, url?: string | null } | null, paymentCredentials: Array<{ _id: string, isValid: boolean, isPreferred: boolean, paymentProvider: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }>, emails?: Array<{ verified: boolean, address: string }> | null, web3Addresses: Array<{ address: string, nonce?: number | null, verified: boolean }>, webAuthnCredentials: Array<{ _id: string, created: any, aaguid: string, counter: number, mdsMetadata?: { legalHeader?: string | null, description?: string | null, authenticatorVersion?: number | null, protocolFamily?: string | null, schema?: number | null, authenticationAlgorithms?: Array | null, publicKeyAlgAndEncodings?: Array | null, attestationTypes?: Array | null, keyProtection?: Array | null, upv?: Array | null, tcDisplay?: Array | null, icon?: string | null, authenticatorGetInfo?: any | null } | null }>, profile?: { displayName?: string | null, phoneMobile?: string | null, gender?: string | null, birthday?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null } | null, primaryEmail?: { verified: boolean, address: string } | null, cart?: { _id: string, items?: Array<{ _id: string }> | null } | null, orders: Array<{ _id: string, items?: Array<{ _id: string }> | null }> } | null } | null }; +export type IVerifyEmailMutation = { + verifyEmail?: { + _id: string; + tokenExpires: any; + user?: { + _id: string; + allowedActions: Array; + username?: string | null; + isGuest: boolean; + isInitialPassword: boolean; + name: string; + roles?: Array | null; + tags?: Array | null; + deleted?: any | null; + lastBillingAddress?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + addressLine2?: string | null; + postalCode?: string | null; + countryCode?: string | null; + regionCode?: string | null; + city?: string | null; + } | null; + lastContact?: { + emailAddress?: string | null; + telNumber?: string | null; + } | null; + lastLogin?: { + countryCode?: string | null; + locale?: any | null; + remoteAddress?: string | null; + remotePort?: number | null; + timestamp: any; + userAgent?: string | null; + } | null; + avatar?: { + _id: string; + name: string; + size: number; + type: string; + url?: string | null; + } | null; + paymentCredentials: Array<{ + _id: string; + isValid: boolean; + isPreferred: boolean; + paymentProvider: { + _id: string; + type?: IPaymentProviderType | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + }; + }>; + emails?: Array<{ verified: boolean; address: string }> | null; + web3Addresses: Array<{ + address: string; + nonce?: number | null; + verified: boolean; + }>; + webAuthnCredentials: Array<{ + _id: string; + created: any; + aaguid: string; + counter: number; + mdsMetadata?: { + legalHeader?: string | null; + description?: string | null; + authenticatorVersion?: number | null; + protocolFamily?: string | null; + schema?: number | null; + authenticationAlgorithms?: Array | null; + publicKeyAlgAndEncodings?: Array | null; + attestationTypes?: Array | null; + keyProtection?: Array | null; + upv?: Array | null; + tcDisplay?: Array | null; + icon?: string | null; + authenticatorGetInfo?: any | null; + } | null; + }>; + profile?: { + displayName?: string | null; + phoneMobile?: string | null; + gender?: string | null; + birthday?: any | null; + address?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + addressLine2?: string | null; + postalCode?: string | null; + countryCode?: string | null; + regionCode?: string | null; + city?: string | null; + } | null; + } | null; + primaryEmail?: { verified: boolean; address: string } | null; + cart?: { _id: string; items?: Array<{ _id: string }> | null } | null; + orders: Array<{ _id: string; items?: Array<{ _id: string }> | null }>; + } | null; + } | null; +}; export type IVerifyWeb3AddressMutationVariables = Exact<{ address: Scalars['String']['input']; hash: Scalars['String']['input']; }>; - -export type IVerifyWeb3AddressMutation = { verifyWeb3Address: { _id: string, allowedActions: Array, username?: string | null, isGuest: boolean, isInitialPassword: boolean, name: string, roles?: Array | null, tags?: Array | null, deleted?: any | null, lastBillingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null, lastContact?: { emailAddress?: string | null, telNumber?: string | null } | null, lastLogin?: { countryCode?: string | null, locale?: any | null, remoteAddress?: string | null, remotePort?: number | null, timestamp: any, userAgent?: string | null } | null, avatar?: { _id: string, name: string, size: number, type: string, url?: string | null } | null, paymentCredentials: Array<{ _id: string, isValid: boolean, isPreferred: boolean, paymentProvider: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }>, emails?: Array<{ verified: boolean, address: string }> | null, web3Addresses: Array<{ address: string, nonce?: number | null, verified: boolean }>, webAuthnCredentials: Array<{ _id: string, created: any, aaguid: string, counter: number, mdsMetadata?: { legalHeader?: string | null, description?: string | null, authenticatorVersion?: number | null, protocolFamily?: string | null, schema?: number | null, authenticationAlgorithms?: Array | null, publicKeyAlgAndEncodings?: Array | null, attestationTypes?: Array | null, keyProtection?: Array | null, upv?: Array | null, tcDisplay?: Array | null, icon?: string | null, authenticatorGetInfo?: any | null } | null }>, profile?: { displayName?: string | null, phoneMobile?: string | null, gender?: string | null, birthday?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, addressLine2?: string | null, postalCode?: string | null, countryCode?: string | null, regionCode?: string | null, city?: string | null } | null } | null, primaryEmail?: { verified: boolean, address: string } | null, cart?: { _id: string, items?: Array<{ _id: string }> | null } | null, orders: Array<{ _id: string, items?: Array<{ _id: string }> | null }> } }; - -export type IAssortmentChildrenFragment = { _id: string, childrenCount: number, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null } | null }; - - -export type IAssortmentChildrenFragmentVariables = Exact<{ [key: string]: never; }>; - -export type IAssortmentFragment = { _id: string, isActive?: boolean | null, created?: any | null, updated?: any | null, sequence: number, isRoot?: boolean | null, tags?: Array | null, childrenCount: number, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> }; - - -export type IAssortmentFragmentVariables = Exact<{ [key: string]: never; }>; - -export type IAssortmentLinkFragment = { _id: string, sortKey: number, parent: { _id: string, isActive?: boolean | null, created?: any | null, updated?: any | null, sequence: number, isRoot?: boolean | null, tags?: Array | null, childrenCount: number, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> }, child: { _id: string, isActive?: boolean | null, created?: any | null, updated?: any | null, sequence: number, isRoot?: boolean | null, tags?: Array | null, childrenCount: number, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } }; - - -export type IAssortmentLinkFragmentVariables = Exact<{ [key: string]: never; }>; - -export type IAssortmentMediaFragment = { _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null, texts?: { _id: string, locale: any, title?: string | null, subtitle?: string | null } | null }; - - -export type IAssortmentMediaFragmentVariables = Exact<{ [key: string]: never; }>; - -export type IAssortmentMediaTextsFragment = { _id: string, locale: any, title?: string | null, subtitle?: string | null }; - - -export type IAssortmentMediaTextsFragmentVariables = Exact<{ [key: string]: never; }>; - -export type IAssortmentTextsFragment = { _id: string, locale: any, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null }; - - -export type IAssortmentTextsFragmentVariables = Exact<{ [key: string]: never; }>; +export type IVerifyWeb3AddressMutation = { + verifyWeb3Address: { + _id: string; + allowedActions: Array; + username?: string | null; + isGuest: boolean; + isInitialPassword: boolean; + name: string; + roles?: Array | null; + tags?: Array | null; + deleted?: any | null; + lastBillingAddress?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + addressLine2?: string | null; + postalCode?: string | null; + countryCode?: string | null; + regionCode?: string | null; + city?: string | null; + } | null; + lastContact?: { + emailAddress?: string | null; + telNumber?: string | null; + } | null; + lastLogin?: { + countryCode?: string | null; + locale?: any | null; + remoteAddress?: string | null; + remotePort?: number | null; + timestamp: any; + userAgent?: string | null; + } | null; + avatar?: { + _id: string; + name: string; + size: number; + type: string; + url?: string | null; + } | null; + paymentCredentials: Array<{ + _id: string; + isValid: boolean; + isPreferred: boolean; + paymentProvider: { + _id: string; + type?: IPaymentProviderType | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + }; + }>; + emails?: Array<{ verified: boolean; address: string }> | null; + web3Addresses: Array<{ + address: string; + nonce?: number | null; + verified: boolean; + }>; + webAuthnCredentials: Array<{ + _id: string; + created: any; + aaguid: string; + counter: number; + mdsMetadata?: { + legalHeader?: string | null; + description?: string | null; + authenticatorVersion?: number | null; + protocolFamily?: string | null; + schema?: number | null; + authenticationAlgorithms?: Array | null; + publicKeyAlgAndEncodings?: Array | null; + attestationTypes?: Array | null; + keyProtection?: Array | null; + upv?: Array | null; + tcDisplay?: Array | null; + icon?: string | null; + authenticatorGetInfo?: any | null; + } | null; + }>; + profile?: { + displayName?: string | null; + phoneMobile?: string | null; + gender?: string | null; + birthday?: any | null; + address?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + addressLine2?: string | null; + postalCode?: string | null; + countryCode?: string | null; + regionCode?: string | null; + city?: string | null; + } | null; + } | null; + primaryEmail?: { verified: boolean; address: string } | null; + cart?: { _id: string; items?: Array<{ _id: string }> | null } | null; + orders: Array<{ _id: string; items?: Array<{ _id: string }> | null }>; + }; +}; + +export type IAssortmentChildrenFragment = { + _id: string; + childrenCount: number; + texts?: { + _id: string; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + } | null; +}; + +export type IAssortmentChildrenFragmentVariables = Exact<{ + [key: string]: never; +}>; + +export type IAssortmentFragment = { + _id: string; + isActive?: boolean | null; + created?: any | null; + updated?: any | null; + sequence: number; + isRoot?: boolean | null; + tags?: Array | null; + childrenCount: number; + texts?: { + _id: string; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; +}; + +export type IAssortmentFragmentVariables = Exact<{ [key: string]: never }>; + +export type IAssortmentLinkFragment = { + _id: string; + sortKey: number; + parent: { + _id: string; + isActive?: boolean | null; + created?: any | null; + updated?: any | null; + sequence: number; + isRoot?: boolean | null; + tags?: Array | null; + childrenCount: number; + texts?: { + _id: string; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + }; + child: { + _id: string; + isActive?: boolean | null; + created?: any | null; + updated?: any | null; + sequence: number; + isRoot?: boolean | null; + tags?: Array | null; + childrenCount: number; + texts?: { + _id: string; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + }; +}; + +export type IAssortmentLinkFragmentVariables = Exact<{ [key: string]: never }>; + +export type IAssortmentMediaFragment = { + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + texts?: { + _id: string; + locale: any; + title?: string | null; + subtitle?: string | null; + } | null; +}; + +export type IAssortmentMediaFragmentVariables = Exact<{ [key: string]: never }>; + +export type IAssortmentMediaTextsFragment = { + _id: string; + locale: any; + title?: string | null; + subtitle?: string | null; +}; + +export type IAssortmentMediaTextsFragmentVariables = Exact<{ + [key: string]: never; +}>; + +export type IAssortmentTextsFragment = { + _id: string; + locale: any; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; +}; + +export type IAssortmentTextsFragmentVariables = Exact<{ [key: string]: never }>; export type IAddAssortmentFilterMutationVariables = Exact<{ assortmentId: Scalars['ID']['input']; @@ -4788,8 +6403,9 @@ export type IAddAssortmentFilterMutationVariables = Exact<{ tags?: InputMaybe>; }>; - -export type IAddAssortmentFilterMutation = { addAssortmentFilter: { _id: string } }; +export type IAddAssortmentFilterMutation = { + addAssortmentFilter: { _id: string }; +}; export type IAddAssortmentLinkMutationVariables = Exact<{ parentAssortmentId: Scalars['ID']['input']; @@ -4797,7 +6413,6 @@ export type IAddAssortmentLinkMutationVariables = Exact<{ tags?: InputMaybe>; }>; - export type IAddAssortmentLinkMutation = { addAssortmentLink: { _id: string } }; export type IPrepareAssortmentMediaUploadMutationVariables = Exact<{ @@ -4805,8 +6420,9 @@ export type IPrepareAssortmentMediaUploadMutationVariables = Exact<{ assortmentId: Scalars['ID']['input']; }>; - -export type IPrepareAssortmentMediaUploadMutation = { prepareAssortmentMediaUpload: { _id: string, putURL: string, expires: any } }; +export type IPrepareAssortmentMediaUploadMutation = { + prepareAssortmentMediaUpload: { _id: string; putURL: string; expires: any }; +}; export type IAddAssortmentProductMutationVariables = Exact<{ assortmentId: Scalars['ID']['input']; @@ -4814,8 +6430,9 @@ export type IAddAssortmentProductMutationVariables = Exact<{ tags?: InputMaybe>; }>; - -export type IAddAssortmentProductMutation = { addAssortmentProduct: { _id: string } }; +export type IAddAssortmentProductMutation = { + addAssortmentProduct: { _id: string }; +}; export type IAssortmentQueryVariables = Exact<{ assortmentId?: InputMaybe; @@ -4823,8 +6440,30 @@ export type IAssortmentQueryVariables = Exact<{ forceLocale?: InputMaybe; }>; - -export type IAssortmentQuery = { assortment?: { _id: string, isActive?: boolean | null, created?: any | null, updated?: any | null, sequence: number, isRoot?: boolean | null, tags?: Array | null, childrenCount: number, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } | null }; +export type IAssortmentQuery = { + assortment?: { + _id: string; + isActive?: boolean | null; + created?: any | null; + updated?: any | null; + sequence: number; + isRoot?: boolean | null; + tags?: Array | null; + childrenCount: number; + texts?: { + _id: string; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + } | null; +}; export type IAssortmentChildrenQueryVariables = Exact<{ slugs?: InputMaybe>; @@ -4832,16 +6471,62 @@ export type IAssortmentChildrenQueryVariables = Exact<{ includeLeaves?: InputMaybe; }>; - -export type IAssortmentChildrenQuery = { assortments: Array<{ _id: string, childrenCount: number, children?: Array<{ _id: string, childrenCount: number, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null } | null }> | null, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null } | null }> }; +export type IAssortmentChildrenQuery = { + assortments: Array<{ + _id: string; + childrenCount: number; + children?: Array<{ + _id: string; + childrenCount: number; + texts?: { + _id: string; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + } | null; + }> | null; + texts?: { + _id: string; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + } | null; + }>; +}; export type IAssortmentFiltersQueryVariables = Exact<{ assortmentId?: InputMaybe; slug?: InputMaybe; }>; - -export type IAssortmentFiltersQuery = { assortment?: { _id: string, filterAssignments?: Array<{ _id: string, sortKey: number, tags?: Array | null, filter: { _id: string, updated?: any | null, created?: any | null, key?: string | null, isActive?: boolean | null, type?: IFilterType | null, options?: Array<{ _id: string, value?: string | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, locale: any } | null }> | null } }> | null } | null }; +export type IAssortmentFiltersQuery = { + assortment?: { + _id: string; + filterAssignments?: Array<{ + _id: string; + sortKey: number; + tags?: Array | null; + filter: { + _id: string; + updated?: any | null; + created?: any | null; + key?: string | null; + isActive?: boolean | null; + type?: IFilterType | null; + options?: Array<{ + _id: string; + value?: string | null; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + locale: any; + } | null; + }> | null; + }; + }> | null; + } | null; +}; export type IAssortmentLinksQueryVariables = Exact<{ assortmentId?: InputMaybe; @@ -4849,23 +6534,98 @@ export type IAssortmentLinksQueryVariables = Exact<{ forceLocale?: InputMaybe; }>; - -export type IAssortmentLinksQuery = { assortment?: { _id: string, linkedAssortments?: Array<{ _id: string, sortKey: number, parent: { _id: string, isActive?: boolean | null, created?: any | null, updated?: any | null, sequence: number, isRoot?: boolean | null, tags?: Array | null, childrenCount: number, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> }, child: { _id: string, isActive?: boolean | null, created?: any | null, updated?: any | null, sequence: number, isRoot?: boolean | null, tags?: Array | null, childrenCount: number, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } }> | null } | null }; +export type IAssortmentLinksQuery = { + assortment?: { + _id: string; + linkedAssortments?: Array<{ + _id: string; + sortKey: number; + parent: { + _id: string; + isActive?: boolean | null; + created?: any | null; + updated?: any | null; + sequence: number; + isRoot?: boolean | null; + tags?: Array | null; + childrenCount: number; + texts?: { + _id: string; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + }; + child: { + _id: string; + isActive?: boolean | null; + created?: any | null; + updated?: any | null; + sequence: number; + isRoot?: boolean | null; + tags?: Array | null; + childrenCount: number; + texts?: { + _id: string; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + }; + }> | null; + } | null; +}; export type IAssortmentMediaQueryVariables = Exact<{ assortmentId?: InputMaybe; slug?: InputMaybe; }>; - -export type IAssortmentMediaQuery = { assortment?: { _id: string, media: Array<{ _id: string, tags?: Array | null, sortKey: number, texts?: { _id: string, locale: any, title?: string | null, subtitle?: string | null } | null, file?: { _id: string, url?: string | null, name: string, size: number, type: string } | null }> } | null }; +export type IAssortmentMediaQuery = { + assortment?: { + _id: string; + media: Array<{ + _id: string; + tags?: Array | null; + sortKey: number; + texts?: { + _id: string; + locale: any; + title?: string | null; + subtitle?: string | null; + } | null; + file?: { + _id: string; + url?: string | null; + name: string; + size: number; + type: string; + } | null; + }>; + } | null; +}; export type IAssortmentPathsQueryVariables = Exact<{ assortmentId: Scalars['ID']['input']; }>; - -export type IAssortmentPathsQuery = { assortment?: { assortmentPaths: Array<{ links: Array<{ assortmentId: string }> }> } | null }; +export type IAssortmentPathsQuery = { + assortment?: { + assortmentPaths: Array<{ links: Array<{ assortmentId: string }> }>; + } | null; +}; export type IAssortmentProductsQueryVariables = Exact<{ assortmentId?: InputMaybe; @@ -4873,23 +6633,151 @@ export type IAssortmentProductsQueryVariables = Exact<{ forceLocale?: InputMaybe; }>; - -export type IAssortmentProductsQuery = { assortment?: { _id: string, productAssignments?: Array<{ _id: string, sortKey: number, tags?: Array | null, product: - | { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, proxies: Array< - | { __typename: 'BundleProduct' } - | { __typename: 'ConfigurableProduct' } - >, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, catalogPrice?: { amount: number, currencyCode: string } | null, proxies: Array< - | { __typename: 'BundleProduct' } - | { __typename: 'ConfigurableProduct' } - >, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, catalogPrice?: { amount: number, currencyCode: string } | null, proxies: Array< - | { __typename: 'BundleProduct' } - | { __typename: 'ConfigurableProduct' } - >, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } - }> | null } | null }; +export type IAssortmentProductsQuery = { + assortment?: { + _id: string; + productAssignments?: Array<{ + _id: string; + sortKey: number; + tags?: Array | null; + product: + | { + _id: string; + sequence: number; + status: IProductStatus; + tags?: Array | null; + updated?: any | null; + published?: any | null; + proxies: Array< + | { __typename: 'BundleProduct' } + | { __typename: 'ConfigurableProduct' } + >; + texts?: { + _id: string; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + vendor?: string | null; + brand?: string | null; + labels?: Array | null; + locale: any; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + sequence: number; + status: IProductStatus; + tags?: Array | null; + updated?: any | null; + published?: any | null; + texts?: { + _id: string; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + vendor?: string | null; + brand?: string | null; + labels?: Array | null; + locale: any; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + sequence: number; + status: IProductStatus; + tags?: Array | null; + updated?: any | null; + published?: any | null; + catalogPrice?: { amount: number; currencyCode: string } | null; + proxies: Array< + | { __typename: 'BundleProduct' } + | { __typename: 'ConfigurableProduct' } + >; + texts?: { + _id: string; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + vendor?: string | null; + brand?: string | null; + labels?: Array | null; + locale: any; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + sequence: number; + status: IProductStatus; + tags?: Array | null; + updated?: any | null; + published?: any | null; + catalogPrice?: { amount: number; currencyCode: string } | null; + proxies: Array< + | { __typename: 'BundleProduct' } + | { __typename: 'ConfigurableProduct' } + >; + texts?: { + _id: string; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + vendor?: string | null; + brand?: string | null; + labels?: Array | null; + locale: any; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + sequence: number; + status: IProductStatus; + tags?: Array | null; + updated?: any | null; + published?: any | null; + texts?: { + _id: string; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + vendor?: string | null; + brand?: string | null; + labels?: Array | null; + locale: any; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + }; + }> | null; + } | null; +}; export type IAssortmentsQueryVariables = Exact<{ queryString?: InputMaybe; @@ -4903,8 +6791,32 @@ export type IAssortmentsQueryVariables = Exact<{ forceLocale?: InputMaybe; }>; - -export type IAssortmentsQuery = { assortmentsCount: number, assortments: Array<{ _id: string, isActive?: boolean | null, created?: any | null, updated?: any | null, sequence: number, isRoot?: boolean | null, tags?: Array | null, childrenCount: number, linkedAssortments?: Array<{ child: { _id: string } }> | null, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> }> }; +export type IAssortmentsQuery = { + assortmentsCount: number; + assortments: Array<{ + _id: string; + isActive?: boolean | null; + created?: any | null; + updated?: any | null; + sequence: number; + isRoot?: boolean | null; + tags?: Array | null; + childrenCount: number; + linkedAssortments?: Array<{ child: { _id: string } }> | null; + texts?: { + _id: string; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + }>; +}; export type IAssortmentsCountQueryVariables = Exact<{ queryString?: InputMaybe; @@ -4913,7 +6825,6 @@ export type IAssortmentsCountQueryVariables = Exact<{ includeLeaves?: InputMaybe; }>; - export type IAssortmentsCountQuery = { assortmentsCount: number }; export type ICreateAssortmentMutationVariables = Exact<{ @@ -4921,92 +6832,111 @@ export type ICreateAssortmentMutationVariables = Exact<{ texts?: InputMaybe>; }>; - export type ICreateAssortmentMutation = { createAssortment: { _id: string } }; export type IRemoveAssortmentMutationVariables = Exact<{ assortmentId: Scalars['ID']['input']; }>; - export type IRemoveAssortmentMutation = { removeAssortment: { _id: string } }; export type IRemoveAssortmentFilterMutationVariables = Exact<{ assortmentFilterId: Scalars['ID']['input']; }>; - -export type IRemoveAssortmentFilterMutation = { removeAssortmentFilter: { _id: string } }; +export type IRemoveAssortmentFilterMutation = { + removeAssortmentFilter: { _id: string }; +}; export type IRemoveAssortmentLinkMutationVariables = Exact<{ assortmentLinkId: Scalars['ID']['input']; }>; - -export type IRemoveAssortmentLinkMutation = { removeAssortmentLink: { _id: string } }; +export type IRemoveAssortmentLinkMutation = { + removeAssortmentLink: { _id: string }; +}; export type IRemoveAssortmentMediaMutationVariables = Exact<{ assortmentMediaId: Scalars['ID']['input']; }>; - -export type IRemoveAssortmentMediaMutation = { removeAssortmentMedia: { _id: string } }; +export type IRemoveAssortmentMediaMutation = { + removeAssortmentMedia: { _id: string }; +}; export type IRemoveAssortmentProductMutationVariables = Exact<{ assortmentProductId: Scalars['ID']['input']; }>; - -export type IRemoveAssortmentProductMutation = { removeAssortmentProduct: { _id: string } }; +export type IRemoveAssortmentProductMutation = { + removeAssortmentProduct: { _id: string }; +}; export type IReorderAssortmentFiltersMutationVariables = Exact<{ sortKeys: Array; }>; - -export type IReorderAssortmentFiltersMutation = { reorderAssortmentFilters: Array<{ _id: string, sortKey: number }> }; +export type IReorderAssortmentFiltersMutation = { + reorderAssortmentFilters: Array<{ _id: string; sortKey: number }>; +}; export type IReorderAssortmentLinksMutationVariables = Exact<{ sortKeys: Array; }>; - -export type IReorderAssortmentLinksMutation = { reorderAssortmentLinks: Array<{ _id: string, sortKey: number }> }; +export type IReorderAssortmentLinksMutation = { + reorderAssortmentLinks: Array<{ _id: string; sortKey: number }>; +}; export type IReorderAssortmentMediaMutationVariables = Exact<{ sortKeys: Array; }>; - -export type IReorderAssortmentMediaMutation = { reorderAssortmentMedia: Array<{ _id: string, sortKey: number }> }; +export type IReorderAssortmentMediaMutation = { + reorderAssortmentMedia: Array<{ _id: string; sortKey: number }>; +}; export type IReorderAssortmentProductsMutationVariables = Exact<{ sortKeys: Array; }>; - -export type IReorderAssortmentProductsMutation = { reorderAssortmentProducts: Array<{ _id: string, sortKey: number }> }; +export type IReorderAssortmentProductsMutation = { + reorderAssortmentProducts: Array<{ _id: string; sortKey: number }>; +}; export type ITranslatedAssortmentMediaTextsQueryVariables = Exact<{ assortmentMediaId: Scalars['ID']['input']; }>; - -export type ITranslatedAssortmentMediaTextsQuery = { translatedAssortmentMediaTexts: Array<{ _id: string, locale: any, title?: string | null, subtitle?: string | null }> }; +export type ITranslatedAssortmentMediaTextsQuery = { + translatedAssortmentMediaTexts: Array<{ + _id: string; + locale: any; + title?: string | null; + subtitle?: string | null; + }>; +}; export type ITranslatedAssortmentTextsQueryVariables = Exact<{ assortmentId: Scalars['ID']['input']; }>; - -export type ITranslatedAssortmentTextsQuery = { translatedAssortmentTexts: Array<{ _id: string, locale: any, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null }> }; +export type ITranslatedAssortmentTextsQuery = { + translatedAssortmentTexts: Array<{ + _id: string; + locale: any; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + }>; +}; export type IUpdateAssortmentMutationVariables = Exact<{ assortment: IUpdateAssortmentInput; assortmentId: Scalars['ID']['input']; }>; - export type IUpdateAssortmentMutation = { updateAssortment: { _id: string } }; export type IUpdateAssortmentMediaTextsMutationVariables = Exact<{ @@ -5014,21 +6944,43 @@ export type IUpdateAssortmentMediaTextsMutationVariables = Exact<{ texts: Array; }>; - -export type IUpdateAssortmentMediaTextsMutation = { updateAssortmentMediaTexts: Array<{ _id: string, locale: any, title?: string | null, subtitle?: string | null }> }; +export type IUpdateAssortmentMediaTextsMutation = { + updateAssortmentMediaTexts: Array<{ + _id: string; + locale: any; + title?: string | null; + subtitle?: string | null; + }>; +}; export type IUpdateAssortmentTextsMutationVariables = Exact<{ assortmentId: Scalars['ID']['input']; texts: Array; }>; +export type IUpdateAssortmentTextsMutation = { + updateAssortmentTexts: Array<{ + _id: string; + locale: any; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + }>; +}; -export type IUpdateAssortmentTextsMutation = { updateAssortmentTexts: Array<{ _id: string, locale: any, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null }> }; - -export type IAddressFragment = { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, postalCode?: string | null, city?: string | null, countryCode?: string | null, regionCode?: string | null }; - +export type IAddressFragment = { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + postalCode?: string | null; + city?: string | null; + countryCode?: string | null; + regionCode?: string | null; +}; -export type IAddressFragmentVariables = Exact<{ [key: string]: never; }>; +export type IAddressFragmentVariables = Exact<{ [key: string]: never }>; export type IConfirmMediaUploadMutationVariables = Exact<{ mediaUploadTicketId: Scalars['ID']['input']; @@ -5036,77 +6988,691 @@ export type IConfirmMediaUploadMutationVariables = Exact<{ type: Scalars['String']['input']; }>; - -export type IConfirmMediaUploadMutation = { confirmMediaUpload: { _id: string, name: string, type: string, size: number, url?: string | null } }; +export type IConfirmMediaUploadMutation = { + confirmMediaUpload: { + _id: string; + name: string; + type: string; + size: number; + url?: string | null; + }; +}; export type IOrderAnalyticsQueryVariables = Exact<{ dateRange?: InputMaybe; }>; - -export type IOrderAnalyticsQuery = { orderStatistics: { confirmCount: number, confirmRecords: Array<{ date: string, count: number, total: { amount: number, currencyCode: string } }> } }; +export type IOrderAnalyticsQuery = { + orderStatistics: { + confirmCount: number; + confirmRecords: Array<{ + date: string; + count: number; + total: { amount: number; currencyCode: string }; + }>; + }; +}; export type IOrdersWithItemsQueryVariables = Exact<{ limit?: InputMaybe; includeCarts?: InputMaybe; }>; - -export type IOrdersWithItemsQuery = { orders: Array<{ _id: string, orderNumber?: string | null, status?: IOrderStatus | null, created?: any | null, updated?: any | null, ordered?: any | null, confirmed?: any | null, fulfilled?: any | null, totalTax?: { amount: number, currencyCode: string } | null, itemsTotal?: { amount: number, currencyCode: string } | null, totalDiscount?: { amount: number, currencyCode: string } | null, totalPayment?: { amount: number, currencyCode: string } | null, totalDelivery?: { amount: number, currencyCode: string } | null, user?: { _id: string, username?: string | null, isGuest: boolean, avatar?: { _id: string, url?: string | null } | null, profile?: { displayName?: string | null, address?: { firstName?: string | null, lastName?: string | null } | null } | null } | null, discounts?: Array<{ _id: string, trigger: IOrderDiscountTrigger, code?: string | null, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean }, discounted?: Array< - | { _id: string, orderDiscount: { _id: string, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } }, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } } - | { _id: string, orderDiscount: { _id: string, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } }, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } } - | { _id: string, orderDiscount: { _id: string, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } }, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } } - | { _id: string, orderDiscount: { _id: string, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } }, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } } - > | null }> | null, payment?: - | { _id: string, status?: IOrderPaymentStatus | null, paid?: any | null, provider?: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } | null, fee?: { currencyCode: string, amount: number } | null } - | { _id: string, status?: IOrderPaymentStatus | null, paid?: any | null, provider?: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } | null, fee?: { currencyCode: string, amount: number } | null } - | { _id: string, status?: IOrderPaymentStatus | null, paid?: any | null, provider?: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } | null, fee?: { currencyCode: string, amount: number } | null } - | null, contact?: { telNumber?: string | null, emailAddress?: string | null } | null, country?: { _id: string, isoCode?: string | null, flagEmoji?: string | null, name?: string | null } | null, currency?: { _id: string, isoCode: string, isActive?: boolean | null } | null, billingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, postalCode?: string | null, city?: string | null, countryCode?: string | null, regionCode?: string | null } | null, delivery?: - | { _id: string, status?: IOrderDeliveryStatus | null, delivered?: any | null, activePickUpLocation?: { _id: string, name: string, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, postalCode?: string | null, city?: string | null, countryCode?: string | null, regionCode?: string | null } | null } | null, provider?: - | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, configuration?: any | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } - | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, configuration?: any | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } - | null, fee?: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } | null, discounts?: Array<{ _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string }, discounted?: Array< - | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } - | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } - | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } - | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } - > | null } }> | null } - | { _id: string, status?: IOrderDeliveryStatus | null, delivered?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, postalCode?: string | null, city?: string | null, countryCode?: string | null, regionCode?: string | null } | null, provider?: - | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, configuration?: any | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } - | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, configuration?: any | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } - | null, fee?: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } | null, discounts?: Array<{ _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string }, discounted?: Array< - | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } - | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } - | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } - | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } - > | null } }> | null } - | null, total?: { isTaxable: boolean, amount: number, currencyCode: string } | null, items?: Array<{ _id: string, quantity: number, product: - | { _id: string, texts?: { _id: string, slug?: string | null, brand?: string | null, vendor?: string | null, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, brand?: string | null, vendor?: string | null, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, brand?: string | null, vendor?: string | null, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, brand?: string | null, vendor?: string | null, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, brand?: string | null, vendor?: string | null, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - , unitPrice?: { amount: number, isTaxable: boolean, isNetPrice: boolean, currencyCode: string } | null, total?: { amount: number, isTaxable: boolean, isNetPrice: boolean, currencyCode: string } | null }> | null }> }; - -export type IShopStatusQueryVariables = Exact<{ [key: string]: never; }>; - - -export type IShopStatusQuery = { countriesCount: number, currenciesCount: number, languagesCount: number, productsCount: number, assortmentsCount: number, filtersCount: number, deliveryProvidersCount: number, paymentProvidersCount: number }; - -export type IShopInfoQueryVariables = Exact<{ [key: string]: never; }>; - - -export type IShopInfoQuery = { shopInfo: { _id: string, version?: string | null, language?: { _id: string, isoCode?: string | null, name?: string | null } | null, country?: { _id: string, isoCode?: string | null, flagEmoji?: string | null, name?: string | null, defaultCurrency?: { _id: string, isoCode: string } | null } | null, adminUiConfig: { singleSignOnURL?: string | null, productTags: Array, assortmentTags: Array, userTags: Array, externalLinks: Array<{ href?: string | null, title?: string | null, target?: IExternalLinkTarget | null }>, customProperties: Array<{ entityName: string, inlineFragment: string }> } } }; - -export type ISystemRolesQueryVariables = Exact<{ [key: string]: never; }>; - - -export type ISystemRolesQuery = { shopInfo: { _id: string, userRoles: Array } }; - -export type ICountryFragment = { _id: string, isoCode?: string | null, isActive?: boolean | null, isBase?: boolean | null, defaultCurrency?: { _id: string, isoCode: string } | null }; - - -export type ICountryFragmentVariables = Exact<{ [key: string]: never; }>; +export type IOrdersWithItemsQuery = { + orders: Array<{ + _id: string; + orderNumber?: string | null; + status?: IOrderStatus | null; + created?: any | null; + updated?: any | null; + ordered?: any | null; + confirmed?: any | null; + fulfilled?: any | null; + totalTax?: { amount: number; currencyCode: string } | null; + itemsTotal?: { amount: number; currencyCode: string } | null; + totalDiscount?: { amount: number; currencyCode: string } | null; + totalPayment?: { amount: number; currencyCode: string } | null; + totalDelivery?: { amount: number; currencyCode: string } | null; + user?: { + _id: string; + username?: string | null; + isGuest: boolean; + avatar?: { _id: string; url?: string | null } | null; + profile?: { + displayName?: string | null; + address?: { + firstName?: string | null; + lastName?: string | null; + } | null; + } | null; + } | null; + discounts?: Array<{ + _id: string; + trigger: IOrderDiscountTrigger; + code?: string | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + total: { + amount: number; + currencyCode: string; + isTaxable: boolean; + isNetPrice: boolean; + }; + discounted?: Array< + | { + _id: string; + orderDiscount: { + _id: string; + total: { + amount: number; + currencyCode: string; + isTaxable: boolean; + isNetPrice: boolean; + }; + }; + total: { + amount: number; + currencyCode: string; + isTaxable: boolean; + isNetPrice: boolean; + }; + } + | { + _id: string; + orderDiscount: { + _id: string; + total: { + amount: number; + currencyCode: string; + isTaxable: boolean; + isNetPrice: boolean; + }; + }; + total: { + amount: number; + currencyCode: string; + isTaxable: boolean; + isNetPrice: boolean; + }; + } + | { + _id: string; + orderDiscount: { + _id: string; + total: { + amount: number; + currencyCode: string; + isTaxable: boolean; + isNetPrice: boolean; + }; + }; + total: { + amount: number; + currencyCode: string; + isTaxable: boolean; + isNetPrice: boolean; + }; + } + | { + _id: string; + orderDiscount: { + _id: string; + total: { + amount: number; + currencyCode: string; + isTaxable: boolean; + isNetPrice: boolean; + }; + }; + total: { + amount: number; + currencyCode: string; + isTaxable: boolean; + isNetPrice: boolean; + }; + } + > | null; + }> | null; + payment?: + | { + _id: string; + status?: IOrderPaymentStatus | null; + paid?: any | null; + provider?: { + _id: string; + type?: IPaymentProviderType | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + } | null; + fee?: { currencyCode: string; amount: number } | null; + } + | { + _id: string; + status?: IOrderPaymentStatus | null; + paid?: any | null; + provider?: { + _id: string; + type?: IPaymentProviderType | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + } | null; + fee?: { currencyCode: string; amount: number } | null; + } + | { + _id: string; + status?: IOrderPaymentStatus | null; + paid?: any | null; + provider?: { + _id: string; + type?: IPaymentProviderType | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + } | null; + fee?: { currencyCode: string; amount: number } | null; + } + | null; + contact?: { + telNumber?: string | null; + emailAddress?: string | null; + } | null; + country?: { + _id: string; + isoCode?: string | null; + flagEmoji?: string | null; + name?: string | null; + } | null; + currency?: { + _id: string; + isoCode: string; + isActive?: boolean | null; + } | null; + billingAddress?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + postalCode?: string | null; + city?: string | null; + countryCode?: string | null; + regionCode?: string | null; + } | null; + delivery?: + | { + _id: string; + status?: IOrderDeliveryStatus | null; + delivered?: any | null; + activePickUpLocation?: { + _id: string; + name: string; + address?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + postalCode?: string | null; + city?: string | null; + countryCode?: string | null; + regionCode?: string | null; + } | null; + } | null; + provider?: + | { + _id: string; + created?: any | null; + updated?: any | null; + deleted?: any | null; + type?: IDeliveryProviderType | null; + configuration?: any | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + } + | { + _id: string; + created?: any | null; + updated?: any | null; + deleted?: any | null; + type?: IDeliveryProviderType | null; + configuration?: any | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + } + | null; + fee?: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + } | null; + discounts?: Array<{ + _id: string; + orderDiscount: { + _id: string; + trigger: IOrderDiscountTrigger; + code?: string | null; + order: { _id: string; orderNumber?: string | null }; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + total: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + }; + discounted?: Array< + | { + _id: string; + orderDiscount: { + _id: string; + trigger: IOrderDiscountTrigger; + code?: string | null; + order: { _id: string; orderNumber?: string | null }; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + total: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + }; + }; + } + | { + _id: string; + orderDiscount: { + _id: string; + trigger: IOrderDiscountTrigger; + code?: string | null; + order: { _id: string; orderNumber?: string | null }; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + total: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + }; + }; + } + | { + _id: string; + orderDiscount: { + _id: string; + trigger: IOrderDiscountTrigger; + code?: string | null; + order: { _id: string; orderNumber?: string | null }; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + total: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + }; + }; + } + | { + _id: string; + orderDiscount: { + _id: string; + trigger: IOrderDiscountTrigger; + code?: string | null; + order: { _id: string; orderNumber?: string | null }; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + total: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + }; + }; + } + > | null; + }; + }> | null; + } + | { + _id: string; + status?: IOrderDeliveryStatus | null; + delivered?: any | null; + address?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + postalCode?: string | null; + city?: string | null; + countryCode?: string | null; + regionCode?: string | null; + } | null; + provider?: + | { + _id: string; + created?: any | null; + updated?: any | null; + deleted?: any | null; + type?: IDeliveryProviderType | null; + configuration?: any | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + } + | { + _id: string; + created?: any | null; + updated?: any | null; + deleted?: any | null; + type?: IDeliveryProviderType | null; + configuration?: any | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + } + | null; + fee?: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + } | null; + discounts?: Array<{ + _id: string; + orderDiscount: { + _id: string; + trigger: IOrderDiscountTrigger; + code?: string | null; + order: { _id: string; orderNumber?: string | null }; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + total: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + }; + discounted?: Array< + | { + _id: string; + orderDiscount: { + _id: string; + trigger: IOrderDiscountTrigger; + code?: string | null; + order: { _id: string; orderNumber?: string | null }; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + total: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + }; + }; + } + | { + _id: string; + orderDiscount: { + _id: string; + trigger: IOrderDiscountTrigger; + code?: string | null; + order: { _id: string; orderNumber?: string | null }; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + total: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + }; + }; + } + | { + _id: string; + orderDiscount: { + _id: string; + trigger: IOrderDiscountTrigger; + code?: string | null; + order: { _id: string; orderNumber?: string | null }; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + total: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + }; + }; + } + | { + _id: string; + orderDiscount: { + _id: string; + trigger: IOrderDiscountTrigger; + code?: string | null; + order: { _id: string; orderNumber?: string | null }; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + total: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + }; + }; + } + > | null; + }; + }> | null; + } + | null; + total?: { isTaxable: boolean; amount: number; currencyCode: string } | null; + items?: Array<{ + _id: string; + quantity: number; + product: + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + brand?: string | null; + vendor?: string | null; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + brand?: string | null; + vendor?: string | null; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + brand?: string | null; + vendor?: string | null; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + brand?: string | null; + vendor?: string | null; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + brand?: string | null; + vendor?: string | null; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + }; + unitPrice?: { + amount: number; + isTaxable: boolean; + isNetPrice: boolean; + currencyCode: string; + } | null; + total?: { + amount: number; + isTaxable: boolean; + isNetPrice: boolean; + currencyCode: string; + } | null; + }> | null; + }>; +}; + +export type IShopStatusQueryVariables = Exact<{ [key: string]: never }>; + +export type IShopStatusQuery = { + countriesCount: number; + currenciesCount: number; + languagesCount: number; + productsCount: number; + assortmentsCount: number; + filtersCount: number; + deliveryProvidersCount: number; + paymentProvidersCount: number; +}; + +export type IShopInfoQueryVariables = Exact<{ [key: string]: never }>; + +export type IShopInfoQuery = { + shopInfo: { + _id: string; + version?: string | null; + language?: { + _id: string; + isoCode?: string | null; + name?: string | null; + } | null; + country?: { + _id: string; + isoCode?: string | null; + flagEmoji?: string | null; + name?: string | null; + defaultCurrency?: { _id: string; isoCode: string } | null; + } | null; + adminUiConfig: { + singleSignOnURL?: string | null; + productTags: Array; + assortmentTags: Array; + userTags: Array; + externalLinks: Array<{ + href?: string | null; + title?: string | null; + target?: IExternalLinkTarget | null; + }>; + customProperties: Array<{ entityName: string; inlineFragment: string }>; + }; + }; +}; + +export type ISystemRolesQueryVariables = Exact<{ [key: string]: never }>; + +export type ISystemRolesQuery = { + shopInfo: { _id: string; userRoles: Array }; +}; + +export type ICountryFragment = { + _id: string; + isoCode?: string | null; + isActive?: boolean | null; + isBase?: boolean | null; + defaultCurrency?: { _id: string; isoCode: string } | null; +}; + +export type ICountryFragmentVariables = Exact<{ [key: string]: never }>; export type ICountriesQueryVariables = Exact<{ queryString?: InputMaybe; @@ -5116,49 +7682,97 @@ export type ICountriesQueryVariables = Exact<{ sort?: InputMaybe>; }>; - -export type ICountriesQuery = { countriesCount: number, countries: Array<{ _id: string, isoCode?: string | null, isActive?: boolean | null, isBase?: boolean | null, defaultCurrency?: { _id: string, isoCode: string } | null }> }; +export type ICountriesQuery = { + countriesCount: number; + countries: Array<{ + _id: string; + isoCode?: string | null; + isActive?: boolean | null; + isBase?: boolean | null; + defaultCurrency?: { _id: string; isoCode: string } | null; + }>; +}; export type ICountryQueryVariables = Exact<{ countryId: Scalars['ID']['input']; }>; - -export type ICountryQuery = { country?: { _id: string, isoCode?: string | null, isActive?: boolean | null, isBase?: boolean | null, defaultCurrency?: { _id: string, isoCode: string } | null } | null }; +export type ICountryQuery = { + country?: { + _id: string; + isoCode?: string | null; + isActive?: boolean | null; + isBase?: boolean | null; + defaultCurrency?: { _id: string; isoCode: string } | null; + } | null; +}; export type ICreateCountryMutationVariables = Exact<{ country: ICreateCountryInput; }>; - -export type ICreateCountryMutation = { createCountry: { _id: string, isoCode?: string | null, isActive?: boolean | null, isBase?: boolean | null, defaultCurrency?: { _id: string, isoCode: string } | null } }; +export type ICreateCountryMutation = { + createCountry: { + _id: string; + isoCode?: string | null; + isActive?: boolean | null; + isBase?: boolean | null; + defaultCurrency?: { _id: string; isoCode: string } | null; + }; +}; export type IRemoveCountryMutationVariables = Exact<{ countryId: Scalars['ID']['input']; }>; - -export type IRemoveCountryMutation = { removeCountry: { _id: string, isoCode?: string | null, isActive?: boolean | null, isBase?: boolean | null, defaultCurrency?: { _id: string, isoCode: string } | null } }; +export type IRemoveCountryMutation = { + removeCountry: { + _id: string; + isoCode?: string | null; + isActive?: boolean | null; + isBase?: boolean | null; + defaultCurrency?: { _id: string; isoCode: string } | null; + }; +}; export type IUpdateCountryMutationVariables = Exact<{ country: IUpdateCountryInput; countryId: Scalars['ID']['input']; }>; +export type IUpdateCountryMutation = { + updateCountry: { + _id: string; + isoCode?: string | null; + isActive?: boolean | null; + isBase?: boolean | null; + defaultCurrency?: { _id: string; isoCode: string } | null; + }; +}; -export type IUpdateCountryMutation = { updateCountry: { _id: string, isoCode?: string | null, isActive?: boolean | null, isBase?: boolean | null, defaultCurrency?: { _id: string, isoCode: string } | null } }; - -export type ICurrencyFragment = { _id: string, isoCode: string, isActive?: boolean | null, contractAddress?: string | null, decimals?: number | null }; - +export type ICurrencyFragment = { + _id: string; + isoCode: string; + isActive?: boolean | null; + contractAddress?: string | null; + decimals?: number | null; +}; -export type ICurrencyFragmentVariables = Exact<{ [key: string]: never; }>; +export type ICurrencyFragmentVariables = Exact<{ [key: string]: never }>; export type ICreateCurrencyMutationVariables = Exact<{ currency: ICreateCurrencyInput; }>; - -export type ICreateCurrencyMutation = { createCurrency: { _id: string, isoCode: string, isActive?: boolean | null, contractAddress?: string | null, decimals?: number | null } }; +export type ICreateCurrencyMutation = { + createCurrency: { + _id: string; + isoCode: string; + isActive?: boolean | null; + contractAddress?: string | null; + decimals?: number | null; + }; +}; export type ICurrenciesQueryVariables = Exact<{ queryString?: InputMaybe; @@ -5168,136 +7782,582 @@ export type ICurrenciesQueryVariables = Exact<{ sort?: InputMaybe>; }>; - -export type ICurrenciesQuery = { currenciesCount: number, currencies: Array<{ _id: string, isoCode: string, isActive?: boolean | null, contractAddress?: string | null, decimals?: number | null }> }; +export type ICurrenciesQuery = { + currenciesCount: number; + currencies: Array<{ + _id: string; + isoCode: string; + isActive?: boolean | null; + contractAddress?: string | null; + decimals?: number | null; + }>; +}; export type ICurrencyQueryVariables = Exact<{ currencyId: Scalars['ID']['input']; }>; - -export type ICurrencyQuery = { currency?: { _id: string, isoCode: string, isActive?: boolean | null, contractAddress?: string | null, decimals?: number | null } | null }; +export type ICurrencyQuery = { + currency?: { + _id: string; + isoCode: string; + isActive?: boolean | null; + contractAddress?: string | null; + decimals?: number | null; + } | null; +}; export type IRemoveCurrencyMutationVariables = Exact<{ currencyId: Scalars['ID']['input']; }>; - -export type IRemoveCurrencyMutation = { removeCurrency: { _id: string, isoCode: string, isActive?: boolean | null, contractAddress?: string | null, decimals?: number | null } }; +export type IRemoveCurrencyMutation = { + removeCurrency: { + _id: string; + isoCode: string; + isActive?: boolean | null; + contractAddress?: string | null; + decimals?: number | null; + }; +}; export type IUpdateCurrencyMutationVariables = Exact<{ currency: IUpdateCurrencyInput; currencyId: Scalars['ID']['input']; }>; - -export type IUpdateCurrencyMutation = { updateCurrency: { _id: string, isoCode: string, isActive?: boolean | null, contractAddress?: string | null, decimals?: number | null } }; +export type IUpdateCurrencyMutation = { + updateCurrency: { + _id: string; + isoCode: string; + isActive?: boolean | null; + contractAddress?: string | null; + decimals?: number | null; + }; +}; export type ICreateDeliveryProviderMutationVariables = Exact<{ deliveryProvider: ICreateDeliveryProviderInput; }>; - -export type ICreateDeliveryProviderMutation = { createDeliveryProvider: - | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, isActive?: boolean | null, configuration?: any | null, configurationError?: IDeliveryProviderError | null, pickUpLocations: Array<{ _id: string, name: string, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, postalCode?: string | null, city?: string | null, countryCode?: string | null, regionCode?: string | null } | null }>, interface?: { _id: string, label?: string | null, version?: string | null } | null } - | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, isActive?: boolean | null, configuration?: any | null, configurationError?: IDeliveryProviderError | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } - }; +export type ICreateDeliveryProviderMutation = { + createDeliveryProvider: + | { + _id: string; + created?: any | null; + updated?: any | null; + deleted?: any | null; + type?: IDeliveryProviderType | null; + isActive?: boolean | null; + configuration?: any | null; + configurationError?: IDeliveryProviderError | null; + pickUpLocations: Array<{ + _id: string; + name: string; + address?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + postalCode?: string | null; + city?: string | null; + countryCode?: string | null; + regionCode?: string | null; + } | null; + }>; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + } + | { + _id: string; + created?: any | null; + updated?: any | null; + deleted?: any | null; + type?: IDeliveryProviderType | null; + isActive?: boolean | null; + configuration?: any | null; + configurationError?: IDeliveryProviderError | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + }; +}; export type IDeliveryInterfacesQueryVariables = Exact<{ providerType?: InputMaybe; }>; - -export type IDeliveryInterfacesQuery = { deliveryInterfaces: Array<{ _id: string, label?: string | null, value: string }> }; +export type IDeliveryInterfacesQuery = { + deliveryInterfaces: Array<{ + _id: string; + label?: string | null; + value: string; + }>; +}; export type IDeliveryProviderQueryVariables = Exact<{ deliveryProviderId: Scalars['ID']['input']; }>; - -export type IDeliveryProviderQuery = { deliveryProvider?: - | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, isActive?: boolean | null, configuration?: any | null, configurationError?: IDeliveryProviderError | null, pickUpLocations: Array<{ _id: string, name: string, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, postalCode?: string | null, city?: string | null, countryCode?: string | null, regionCode?: string | null } | null }>, interface?: { _id: string, label?: string | null, version?: string | null } | null } - | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, isActive?: boolean | null, configuration?: any | null, configurationError?: IDeliveryProviderError | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } - | null }; - -export type IDeliveryProvidersTypeQueryVariables = Exact<{ [key: string]: never; }>; - - -export type IDeliveryProvidersTypeQuery = { deliveryProviderType?: { options?: Array<{ value: string, label?: string | null }> | null } | null }; +export type IDeliveryProviderQuery = { + deliveryProvider?: + | { + _id: string; + created?: any | null; + updated?: any | null; + deleted?: any | null; + type?: IDeliveryProviderType | null; + isActive?: boolean | null; + configuration?: any | null; + configurationError?: IDeliveryProviderError | null; + pickUpLocations: Array<{ + _id: string; + name: string; + address?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + postalCode?: string | null; + city?: string | null; + countryCode?: string | null; + regionCode?: string | null; + } | null; + }>; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + } + | { + _id: string; + created?: any | null; + updated?: any | null; + deleted?: any | null; + type?: IDeliveryProviderType | null; + isActive?: boolean | null; + configuration?: any | null; + configurationError?: IDeliveryProviderError | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + } + | null; +}; + +export type IDeliveryProvidersTypeQueryVariables = Exact<{ + [key: string]: never; +}>; + +export type IDeliveryProvidersTypeQuery = { + deliveryProviderType?: { + options?: Array<{ value: string; label?: string | null }> | null; + } | null; +}; export type IDeliveryProvidersQueryVariables = Exact<{ type?: InputMaybe; }>; - -export type IDeliveryProvidersQuery = { deliveryProvidersCount: number, deliveryProviders: Array< - | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, isActive?: boolean | null, configuration?: any | null, configurationError?: IDeliveryProviderError | null, pickUpLocations: Array<{ _id: string, name: string, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, postalCode?: string | null, city?: string | null, countryCode?: string | null, regionCode?: string | null } | null }>, interface?: { _id: string, label?: string | null, version?: string | null } | null } - | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, isActive?: boolean | null, configuration?: any | null, configurationError?: IDeliveryProviderError | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } - > }; - -export type IOrderDeliveryStatusQueryVariables = Exact<{ [key: string]: never; }>; - - -export type IOrderDeliveryStatusQuery = { deliveryStatusType?: { options?: Array<{ value: string, label?: string | null }> | null } | null }; +export type IDeliveryProvidersQuery = { + deliveryProvidersCount: number; + deliveryProviders: Array< + | { + _id: string; + created?: any | null; + updated?: any | null; + deleted?: any | null; + type?: IDeliveryProviderType | null; + isActive?: boolean | null; + configuration?: any | null; + configurationError?: IDeliveryProviderError | null; + pickUpLocations: Array<{ + _id: string; + name: string; + address?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + postalCode?: string | null; + city?: string | null; + countryCode?: string | null; + regionCode?: string | null; + } | null; + }>; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + } + | { + _id: string; + created?: any | null; + updated?: any | null; + deleted?: any | null; + type?: IDeliveryProviderType | null; + isActive?: boolean | null; + configuration?: any | null; + configurationError?: IDeliveryProviderError | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + } + >; +}; + +export type IOrderDeliveryStatusQueryVariables = Exact<{ + [key: string]: never; +}>; + +export type IOrderDeliveryStatusQuery = { + deliveryStatusType?: { + options?: Array<{ value: string; label?: string | null }> | null; + } | null; +}; export type IRemoveDeliveryProviderMutationVariables = Exact<{ deliveryProviderId: Scalars['ID']['input']; }>; - -export type IRemoveDeliveryProviderMutation = { removeDeliveryProvider: - | { _id: string } - | { _id: string } - }; +export type IRemoveDeliveryProviderMutation = { + removeDeliveryProvider: { _id: string } | { _id: string }; +}; export type IUpdateDeliveryProviderMutationVariables = Exact<{ deliveryProvider: IUpdateProviderInput; deliveryProviderId: Scalars['ID']['input']; }>; - -export type IUpdateDeliveryProviderMutation = { updateDeliveryProvider: - | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, isActive?: boolean | null, configuration?: any | null, configurationError?: IDeliveryProviderError | null, pickUpLocations: Array<{ _id: string, name: string, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, postalCode?: string | null, city?: string | null, countryCode?: string | null, regionCode?: string | null } | null }>, interface?: { _id: string, label?: string | null, version?: string | null } | null } - | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, isActive?: boolean | null, configuration?: any | null, configurationError?: IDeliveryProviderError | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } - }; - -export type IEnrollmentDetailFragment = { _id: string, enrollmentNumber?: string | null, updated?: any | null, status: IEnrollmentStatus, created: any, expires?: any | null, isExpired?: boolean | null, country?: { _id: string, isoCode?: string | null } | null, billingAddress?: { addressLine?: string | null, addressLine2?: string | null, city?: string | null, company?: string | null, countryCode?: string | null, firstName?: string | null, lastName?: string | null, postalCode?: string | null, regionCode?: string | null } | null, contact?: { emailAddress?: string | null, telNumber?: string | null } | null, currency?: { _id: string, contractAddress?: string | null, decimals?: number | null, isActive?: boolean | null, isoCode: string } | null, delivery?: { provider?: - | { _id: string, configuration?: any | null, configurationError?: IDeliveryProviderError | null, isActive?: boolean | null, type?: IDeliveryProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null, simulatedPrice?: { amount: number, currencyCode: string, isNetPrice: boolean, isTaxable: boolean } | null } - | { _id: string, configuration?: any | null, configurationError?: IDeliveryProviderError | null, isActive?: boolean | null, type?: IDeliveryProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null, simulatedPrice?: { amount: number, currencyCode: string, isNetPrice: boolean, isTaxable: boolean } | null } - | null } | null, payment?: { provider?: { _id: string, configuration?: any | null, configurationError?: IPaymentProviderError | null, isActive?: boolean | null, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } | null } | null, periods: Array<{ end: any, isTrial: boolean, start: any, order?: { _id: string } | null }>, plan: { quantity: number, configuration?: Array<{ key: string, value: string }> | null, product: { _id: string, texts?: { _id: string, title?: string | null } | null } }, user: { _id: string, username?: string | null, name: string, avatar?: { _id: string, url?: string | null } | null } }; - - -export type IEnrollmentDetailFragmentVariables = Exact<{ [key: string]: never; }>; - -export type IEnrollmentFragment = { _id: string, enrollmentNumber?: string | null, updated?: any | null, status: IEnrollmentStatus, created: any, expires?: any | null, isExpired?: boolean | null, country?: { _id: string, isoCode?: string | null } | null, currency?: { _id: string, isoCode: string } | null, periods: Array<{ start: any, end: any, isTrial: boolean }>, payment?: { provider?: { _id: string } | null } | null, delivery?: { provider?: - | { _id: string } - | { _id: string } - | null } | null, plan: { quantity: number, product: { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }>, texts?: { _id: string, title?: string | null } | null } }, user: { _id: string, username?: string | null, name: string, avatar?: { _id: string, url?: string | null } | null } }; - - -export type IEnrollmentFragmentVariables = Exact<{ [key: string]: never; }>; +export type IUpdateDeliveryProviderMutation = { + updateDeliveryProvider: + | { + _id: string; + created?: any | null; + updated?: any | null; + deleted?: any | null; + type?: IDeliveryProviderType | null; + isActive?: boolean | null; + configuration?: any | null; + configurationError?: IDeliveryProviderError | null; + pickUpLocations: Array<{ + _id: string; + name: string; + address?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + postalCode?: string | null; + city?: string | null; + countryCode?: string | null; + regionCode?: string | null; + } | null; + }>; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + } + | { + _id: string; + created?: any | null; + updated?: any | null; + deleted?: any | null; + type?: IDeliveryProviderType | null; + isActive?: boolean | null; + configuration?: any | null; + configurationError?: IDeliveryProviderError | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + }; +}; + +export type IEnrollmentDetailFragment = { + _id: string; + enrollmentNumber?: string | null; + updated?: any | null; + status: IEnrollmentStatus; + created: any; + expires?: any | null; + isExpired?: boolean | null; + country?: { _id: string; isoCode?: string | null } | null; + billingAddress?: { + addressLine?: string | null; + addressLine2?: string | null; + city?: string | null; + company?: string | null; + countryCode?: string | null; + firstName?: string | null; + lastName?: string | null; + postalCode?: string | null; + regionCode?: string | null; + } | null; + contact?: { emailAddress?: string | null; telNumber?: string | null } | null; + currency?: { + _id: string; + contractAddress?: string | null; + decimals?: number | null; + isActive?: boolean | null; + isoCode: string; + } | null; + delivery?: { + provider?: + | { + _id: string; + configuration?: any | null; + configurationError?: IDeliveryProviderError | null; + isActive?: boolean | null; + type?: IDeliveryProviderType | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + simulatedPrice?: { + amount: number; + currencyCode: string; + isNetPrice: boolean; + isTaxable: boolean; + } | null; + } + | { + _id: string; + configuration?: any | null; + configurationError?: IDeliveryProviderError | null; + isActive?: boolean | null; + type?: IDeliveryProviderType | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + simulatedPrice?: { + amount: number; + currencyCode: string; + isNetPrice: boolean; + isTaxable: boolean; + } | null; + } + | null; + } | null; + payment?: { + provider?: { + _id: string; + configuration?: any | null; + configurationError?: IPaymentProviderError | null; + isActive?: boolean | null; + type?: IPaymentProviderType | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + } | null; + } | null; + periods: Array<{ + end: any; + isTrial: boolean; + start: any; + order?: { _id: string } | null; + }>; + plan: { + quantity: number; + configuration?: Array<{ key: string; value: string }> | null; + product: { + _id: string; + texts?: { _id: string; title?: string | null } | null; + }; + }; + user: { + _id: string; + username?: string | null; + name: string; + avatar?: { _id: string; url?: string | null } | null; + }; +}; + +export type IEnrollmentDetailFragmentVariables = Exact<{ + [key: string]: never; +}>; + +export type IEnrollmentFragment = { + _id: string; + enrollmentNumber?: string | null; + updated?: any | null; + status: IEnrollmentStatus; + created: any; + expires?: any | null; + isExpired?: boolean | null; + country?: { _id: string; isoCode?: string | null } | null; + currency?: { _id: string; isoCode: string } | null; + periods: Array<{ start: any; end: any; isTrial: boolean }>; + payment?: { provider?: { _id: string } | null } | null; + delivery?: { provider?: { _id: string } | { _id: string } | null } | null; + plan: { + quantity: number; + product: { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + texts?: { _id: string; title?: string | null } | null; + }; + }; + user: { + _id: string; + username?: string | null; + name: string; + avatar?: { _id: string; url?: string | null } | null; + }; +}; + +export type IEnrollmentFragmentVariables = Exact<{ [key: string]: never }>; export type IActivateEnrollmentMutationVariables = Exact<{ enrollmentId: Scalars['ID']['input']; }>; - -export type IActivateEnrollmentMutation = { activateEnrollment: { _id: string } }; +export type IActivateEnrollmentMutation = { + activateEnrollment: { _id: string }; +}; export type IEnrollmentQueryVariables = Exact<{ enrollmentId: Scalars['ID']['input']; }>; - -export type IEnrollmentQuery = { enrollment?: { _id: string, enrollmentNumber?: string | null, updated?: any | null, status: IEnrollmentStatus, created: any, expires?: any | null, isExpired?: boolean | null, country?: { _id: string, isoCode?: string | null } | null, billingAddress?: { addressLine?: string | null, addressLine2?: string | null, city?: string | null, company?: string | null, countryCode?: string | null, firstName?: string | null, lastName?: string | null, postalCode?: string | null, regionCode?: string | null } | null, contact?: { emailAddress?: string | null, telNumber?: string | null } | null, currency?: { _id: string, contractAddress?: string | null, decimals?: number | null, isActive?: boolean | null, isoCode: string } | null, delivery?: { provider?: - | { _id: string, configuration?: any | null, configurationError?: IDeliveryProviderError | null, isActive?: boolean | null, type?: IDeliveryProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null, simulatedPrice?: { amount: number, currencyCode: string, isNetPrice: boolean, isTaxable: boolean } | null } - | { _id: string, configuration?: any | null, configurationError?: IDeliveryProviderError | null, isActive?: boolean | null, type?: IDeliveryProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null, simulatedPrice?: { amount: number, currencyCode: string, isNetPrice: boolean, isTaxable: boolean } | null } - | null } | null, payment?: { provider?: { _id: string, configuration?: any | null, configurationError?: IPaymentProviderError | null, isActive?: boolean | null, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } | null } | null, periods: Array<{ end: any, isTrial: boolean, start: any, order?: { _id: string } | null }>, plan: { quantity: number, configuration?: Array<{ key: string, value: string }> | null, product: { _id: string, texts?: { _id: string, title?: string | null } | null } }, user: { _id: string, username?: string | null, name: string, avatar?: { _id: string, url?: string | null } | null } } | null }; - -export type IEnrollmentStatusQueryVariables = Exact<{ [key: string]: never; }>; - - -export type IEnrollmentStatusQuery = { enrollmentStatusTypes?: { options?: Array<{ value: string, label?: string | null }> | null } | null }; +export type IEnrollmentQuery = { + enrollment?: { + _id: string; + enrollmentNumber?: string | null; + updated?: any | null; + status: IEnrollmentStatus; + created: any; + expires?: any | null; + isExpired?: boolean | null; + country?: { _id: string; isoCode?: string | null } | null; + billingAddress?: { + addressLine?: string | null; + addressLine2?: string | null; + city?: string | null; + company?: string | null; + countryCode?: string | null; + firstName?: string | null; + lastName?: string | null; + postalCode?: string | null; + regionCode?: string | null; + } | null; + contact?: { + emailAddress?: string | null; + telNumber?: string | null; + } | null; + currency?: { + _id: string; + contractAddress?: string | null; + decimals?: number | null; + isActive?: boolean | null; + isoCode: string; + } | null; + delivery?: { + provider?: + | { + _id: string; + configuration?: any | null; + configurationError?: IDeliveryProviderError | null; + isActive?: boolean | null; + type?: IDeliveryProviderType | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + simulatedPrice?: { + amount: number; + currencyCode: string; + isNetPrice: boolean; + isTaxable: boolean; + } | null; + } + | { + _id: string; + configuration?: any | null; + configurationError?: IDeliveryProviderError | null; + isActive?: boolean | null; + type?: IDeliveryProviderType | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + simulatedPrice?: { + amount: number; + currencyCode: string; + isNetPrice: boolean; + isTaxable: boolean; + } | null; + } + | null; + } | null; + payment?: { + provider?: { + _id: string; + configuration?: any | null; + configurationError?: IPaymentProviderError | null; + isActive?: boolean | null; + type?: IPaymentProviderType | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + } | null; + } | null; + periods: Array<{ + end: any; + isTrial: boolean; + start: any; + order?: { _id: string } | null; + }>; + plan: { + quantity: number; + configuration?: Array<{ key: string; value: string }> | null; + product: { + _id: string; + texts?: { _id: string; title?: string | null } | null; + }; + }; + user: { + _id: string; + username?: string | null; + name: string; + avatar?: { _id: string; url?: string | null } | null; + }; + } | null; +}; + +export type IEnrollmentStatusQueryVariables = Exact<{ [key: string]: never }>; + +export type IEnrollmentStatusQuery = { + enrollmentStatusTypes?: { + options?: Array<{ value: string; label?: string | null }> | null; + } | null; +}; export type IEnrollmentsQueryVariables = Exact<{ offset?: InputMaybe; @@ -5307,53 +8367,128 @@ export type IEnrollmentsQueryVariables = Exact<{ status?: InputMaybe>; }>; - -export type IEnrollmentsQuery = { enrollmentsCount: number, enrollments: Array<{ _id: string, enrollmentNumber?: string | null, updated?: any | null, status: IEnrollmentStatus, created: any, expires?: any | null, isExpired?: boolean | null, country?: { _id: string, isoCode?: string | null } | null, currency?: { _id: string, isoCode: string } | null, periods: Array<{ start: any, end: any, isTrial: boolean }>, payment?: { provider?: { _id: string } | null } | null, delivery?: { provider?: - | { _id: string } - | { _id: string } - | null } | null, plan: { quantity: number, product: { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }>, texts?: { _id: string, title?: string | null } | null } }, user: { _id: string, username?: string | null, name: string, avatar?: { _id: string, url?: string | null } | null } }> }; +export type IEnrollmentsQuery = { + enrollmentsCount: number; + enrollments: Array<{ + _id: string; + enrollmentNumber?: string | null; + updated?: any | null; + status: IEnrollmentStatus; + created: any; + expires?: any | null; + isExpired?: boolean | null; + country?: { _id: string; isoCode?: string | null } | null; + currency?: { _id: string; isoCode: string } | null; + periods: Array<{ start: any; end: any; isTrial: boolean }>; + payment?: { provider?: { _id: string } | null } | null; + delivery?: { provider?: { _id: string } | { _id: string } | null } | null; + plan: { + quantity: number; + product: { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + texts?: { _id: string; title?: string | null } | null; + }; + }; + user: { + _id: string; + username?: string | null; + name: string; + avatar?: { _id: string; url?: string | null } | null; + }; + }>; +}; export type ISendEnrollmentEmailMutationVariables = Exact<{ email: Scalars['String']['input']; }>; - -export type ISendEnrollmentEmailMutation = { sendEnrollmentEmail?: { success?: boolean | null } | null }; +export type ISendEnrollmentEmailMutation = { + sendEnrollmentEmail?: { success?: boolean | null } | null; +}; export type ITerminateEnrollmentMutationVariables = Exact<{ enrollmentId: Scalars['ID']['input']; }>; - -export type ITerminateEnrollmentMutation = { terminateEnrollment: { _id: string } }; +export type ITerminateEnrollmentMutation = { + terminateEnrollment: { _id: string }; +}; export type IUserEnrollmentsQueryVariables = Exact<{ userId: Scalars['ID']['input']; queryString?: InputMaybe; }>; - -export type IUserEnrollmentsQuery = { user?: { _id: string, enrollments: Array<{ _id: string, enrollmentNumber?: string | null, updated?: any | null, status: IEnrollmentStatus, created: any, expires?: any | null, isExpired?: boolean | null, country?: { _id: string, isoCode?: string | null } | null, currency?: { _id: string, isoCode: string } | null, periods: Array<{ start: any, end: any, isTrial: boolean }>, payment?: { provider?: { _id: string } | null } | null, delivery?: { provider?: - | { _id: string } - | { _id: string } - | null } | null, plan: { quantity: number, product: { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }>, texts?: { _id: string, title?: string | null } | null } }, user: { _id: string, username?: string | null, name: string, avatar?: { _id: string, url?: string | null } | null } }> } | null }; - -export type IEventFragment = { _id: string, type: string, payload?: any | null, created: any }; - - -export type IEventFragmentVariables = Exact<{ [key: string]: never; }>; +export type IUserEnrollmentsQuery = { + user?: { + _id: string; + enrollments: Array<{ + _id: string; + enrollmentNumber?: string | null; + updated?: any | null; + status: IEnrollmentStatus; + created: any; + expires?: any | null; + isExpired?: boolean | null; + country?: { _id: string; isoCode?: string | null } | null; + currency?: { _id: string; isoCode: string } | null; + periods: Array<{ start: any; end: any; isTrial: boolean }>; + payment?: { provider?: { _id: string } | null } | null; + delivery?: { provider?: { _id: string } | { _id: string } | null } | null; + plan: { + quantity: number; + product: { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + texts?: { _id: string; title?: string | null } | null; + }; + }; + user: { + _id: string; + username?: string | null; + name: string; + avatar?: { _id: string; url?: string | null } | null; + }; + }>; + } | null; +}; + +export type IEventFragment = { + _id: string; + type: string; + payload?: any | null; + created: any; +}; + +export type IEventFragmentVariables = Exact<{ [key: string]: never }>; export type IEventQueryVariables = Exact<{ eventId: Scalars['ID']['input']; }>; +export type IEventQuery = { + event?: { + _id: string; + type: string; + payload?: any | null; + created: any; + } | null; +}; -export type IEventQuery = { event?: { _id: string, type: string, payload?: any | null, created: any } | null }; - -export type IEventsTypeQueryVariables = Exact<{ [key: string]: never; }>; - +export type IEventsTypeQueryVariables = Exact<{ [key: string]: never }>; -export type IEventsTypeQuery = { eventTypes?: { options?: Array<{ value: string, label: string }> | null } | null }; +export type IEventsTypeQuery = { + eventTypes?: { + options?: Array<{ value: string; label: string }> | null; + } | null; +}; export type IEventsQueryVariables = Exact<{ types?: InputMaybe>; @@ -5364,31 +8499,84 @@ export type IEventsQueryVariables = Exact<{ created?: InputMaybe; }>; +export type IEventsQuery = { + eventsCount: number; + events: Array<{ + _id: string; + type: string; + payload?: any | null; + created: any; + }>; +}; -export type IEventsQuery = { eventsCount: number, events: Array<{ _id: string, type: string, payload?: any | null, created: any }> }; - -export type IFilterFragment = { _id: string, updated?: any | null, created?: any | null, key?: string | null, isActive?: boolean | null, type?: IFilterType | null, options?: Array<{ _id: string, value?: string | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, locale: any } | null }> | null }; - - -export type IFilterFragmentVariables = Exact<{ [key: string]: never; }>; - -export type IFilterOptionFragment = { _id: string, value?: string | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, locale: any } | null }; +export type IFilterFragment = { + _id: string; + updated?: any | null; + created?: any | null; + key?: string | null; + isActive?: boolean | null; + type?: IFilterType | null; + options?: Array<{ + _id: string; + value?: string | null; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + locale: any; + } | null; + }> | null; +}; +export type IFilterFragmentVariables = Exact<{ [key: string]: never }>; -export type IFilterOptionFragmentVariables = Exact<{ [key: string]: never; }>; +export type IFilterOptionFragment = { + _id: string; + value?: string | null; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + locale: any; + } | null; +}; -export type IFilterTextsFragment = { _id: string, locale: any, title?: string | null, subtitle?: string | null }; +export type IFilterOptionFragmentVariables = Exact<{ [key: string]: never }>; +export type IFilterTextsFragment = { + _id: string; + locale: any; + title?: string | null; + subtitle?: string | null; +}; -export type IFilterTextsFragmentVariables = Exact<{ [key: string]: never; }>; +export type IFilterTextsFragmentVariables = Exact<{ [key: string]: never }>; export type ICreateFilterMutationVariables = Exact<{ filter: ICreateFilterInput; texts: Array; }>; - -export type ICreateFilterMutation = { createFilter: { _id: string, updated?: any | null, created?: any | null, key?: string | null, isActive?: boolean | null, type?: IFilterType | null, options?: Array<{ _id: string, value?: string | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, locale: any } | null }> | null } }; +export type ICreateFilterMutation = { + createFilter: { + _id: string; + updated?: any | null; + created?: any | null; + key?: string | null; + isActive?: boolean | null; + type?: IFilterType | null; + options?: Array<{ + _id: string; + value?: string | null; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + locale: any; + } | null; + }> | null; + }; +}; export type ICreateFilterOptionMutationVariables = Exact<{ filterId: Scalars['ID']['input']; @@ -5396,28 +8584,69 @@ export type ICreateFilterOptionMutationVariables = Exact<{ texts?: InputMaybe>; }>; - -export type ICreateFilterOptionMutation = { createFilterOption: { _id: string } }; +export type ICreateFilterOptionMutation = { + createFilterOption: { _id: string }; +}; export type IFilterQueryVariables = Exact<{ filterId?: InputMaybe; }>; - -export type IFilterQuery = { filter?: { _id: string, updated?: any | null, created?: any | null, key?: string | null, isActive?: boolean | null, type?: IFilterType | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, locale: any } | null, options?: Array<{ _id: string, value?: string | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, locale: any } | null }> | null } | null }; +export type IFilterQuery = { + filter?: { + _id: string; + updated?: any | null; + created?: any | null; + key?: string | null; + isActive?: boolean | null; + type?: IFilterType | null; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + locale: any; + } | null; + options?: Array<{ + _id: string; + value?: string | null; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + locale: any; + } | null; + }> | null; + } | null; +}; export type IFilterOptionsQueryVariables = Exact<{ filterId?: InputMaybe; forceLocale?: InputMaybe; }>; +export type IFilterOptionsQuery = { + filter?: { + _id: string; + options?: Array<{ + _id: string; + value?: string | null; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + locale: any; + } | null; + }> | null; + } | null; +}; -export type IFilterOptionsQuery = { filter?: { _id: string, options?: Array<{ _id: string, value?: string | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, locale: any } | null }> | null } | null }; - -export type IFilterTypesQueryVariables = Exact<{ [key: string]: never; }>; - +export type IFilterTypesQueryVariables = Exact<{ [key: string]: never }>; -export type IFilterTypesQuery = { filterTypes?: { options?: Array<{ label: string, value: string }> | null } | null }; +export type IFilterTypesQuery = { + filterTypes?: { + options?: Array<{ label: string; value: string }> | null; + } | null; +}; export type IFiltersQueryVariables = Exact<{ queryString?: InputMaybe; @@ -5427,22 +8656,45 @@ export type IFiltersQueryVariables = Exact<{ sort?: InputMaybe>; }>; - -export type IFiltersQuery = { filtersCount: number, filters: Array<{ _id: string, updated?: any | null, created?: any | null, key?: string | null, isActive?: boolean | null, type?: IFilterType | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, locale: any } | null, options?: Array<{ _id: string, value?: string | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, locale: any } | null }> | null }> }; +export type IFiltersQuery = { + filtersCount: number; + filters: Array<{ + _id: string; + updated?: any | null; + created?: any | null; + key?: string | null; + isActive?: boolean | null; + type?: IFilterType | null; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + locale: any; + } | null; + options?: Array<{ + _id: string; + value?: string | null; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + locale: any; + } | null; + }> | null; + }>; +}; export type IFiltersCountQueryVariables = Exact<{ queryString?: InputMaybe; includeInactive?: InputMaybe; }>; - export type IFiltersCountQuery = { filtersCount: number }; export type IRemoveFilterMutationVariables = Exact<{ filterId: Scalars['ID']['input']; }>; - export type IRemoveFilterMutation = { removeFilter: { _id: string } }; export type IRemoveFilterOptionMutationVariables = Exact<{ @@ -5450,24 +8702,49 @@ export type IRemoveFilterOptionMutationVariables = Exact<{ filterOptionValue: Scalars['String']['input']; }>; - -export type IRemoveFilterOptionMutation = { removeFilterOption: { _id: string } }; +export type IRemoveFilterOptionMutation = { + removeFilterOption: { _id: string }; +}; export type ITranslatedFilterTextsQueryVariables = Exact<{ filterId: Scalars['ID']['input']; filterOptionValue?: InputMaybe; }>; - -export type ITranslatedFilterTextsQuery = { translatedFilterTexts: Array<{ _id: string, locale: any, title?: string | null, subtitle?: string | null }> }; +export type ITranslatedFilterTextsQuery = { + translatedFilterTexts: Array<{ + _id: string; + locale: any; + title?: string | null; + subtitle?: string | null; + }>; +}; export type IUpdateFilterMutationVariables = Exact<{ filter: IUpdateFilterInput; filterId: Scalars['ID']['input']; }>; - -export type IUpdateFilterMutation = { updateFilter: { _id: string, updated?: any | null, created?: any | null, key?: string | null, isActive?: boolean | null, type?: IFilterType | null, options?: Array<{ _id: string, value?: string | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, locale: any } | null }> | null } }; +export type IUpdateFilterMutation = { + updateFilter: { + _id: string; + updated?: any | null; + created?: any | null; + key?: string | null; + isActive?: boolean | null; + type?: IFilterType | null; + options?: Array<{ + _id: string; + value?: string | null; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + locale: any; + } | null; + }> | null; + }; +}; export type IUpdateFilterTextsMutationVariables = Exact<{ filterId: Scalars['ID']['input']; @@ -5475,27 +8752,52 @@ export type IUpdateFilterTextsMutationVariables = Exact<{ texts: Array; }>; +export type IUpdateFilterTextsMutation = { + updateFilterTexts: Array<{ + _id: string; + locale: any; + title?: string | null; + subtitle?: string | null; + }>; +}; -export type IUpdateFilterTextsMutation = { updateFilterTexts: Array<{ _id: string, locale: any, title?: string | null, subtitle?: string | null }> }; - -export type ILanguageFragment = { _id: string, isoCode?: string | null, isActive?: boolean | null, isBase?: boolean | null, name?: string | null }; - +export type ILanguageFragment = { + _id: string; + isoCode?: string | null; + isActive?: boolean | null; + isBase?: boolean | null; + name?: string | null; +}; -export type ILanguageFragmentVariables = Exact<{ [key: string]: never; }>; +export type ILanguageFragmentVariables = Exact<{ [key: string]: never }>; export type ICreateLanguageMutationVariables = Exact<{ language: ICreateLanguageInput; }>; - -export type ICreateLanguageMutation = { createLanguage: { _id: string, isoCode?: string | null, isActive?: boolean | null, isBase?: boolean | null, name?: string | null } }; +export type ICreateLanguageMutation = { + createLanguage: { + _id: string; + isoCode?: string | null; + isActive?: boolean | null; + isBase?: boolean | null; + name?: string | null; + }; +}; export type ILanguageQueryVariables = Exact<{ languageId: Scalars['ID']['input']; }>; - -export type ILanguageQuery = { language?: { _id: string, isoCode?: string | null, isActive?: boolean | null, isBase?: boolean | null, name?: string | null } | null }; +export type ILanguageQuery = { + language?: { + _id: string; + isoCode?: string | null; + isActive?: boolean | null; + isBase?: boolean | null; + name?: string | null; + } | null; +}; export type ILanguagesQueryVariables = Exact<{ queryString?: InputMaybe; @@ -5505,127 +8807,1277 @@ export type ILanguagesQueryVariables = Exact<{ sort?: InputMaybe>; }>; - -export type ILanguagesQuery = { languagesCount: number, languages: Array<{ _id: string, isoCode?: string | null, isActive?: boolean | null, isBase?: boolean | null, name?: string | null } | null> }; +export type ILanguagesQuery = { + languagesCount: number; + languages: Array<{ + _id: string; + isoCode?: string | null; + isActive?: boolean | null; + isBase?: boolean | null; + name?: string | null; + } | null>; +}; export type IRemoveLanguageMutationVariables = Exact<{ languageId: Scalars['ID']['input']; }>; - -export type IRemoveLanguageMutation = { removeLanguage: { _id: string, isoCode?: string | null, isActive?: boolean | null, isBase?: boolean | null, name?: string | null } }; +export type IRemoveLanguageMutation = { + removeLanguage: { + _id: string; + isoCode?: string | null; + isActive?: boolean | null; + isBase?: boolean | null; + name?: string | null; + }; +}; export type IUpdateLanguageMutationVariables = Exact<{ language: IUpdateLanguageInput; languageId: Scalars['ID']['input']; }>; - -export type IUpdateLanguageMutation = { updateLanguage: { _id: string, isoCode?: string | null, isActive?: boolean | null, isBase?: boolean | null, name?: string | null } }; - -export type IOrderDetailFragment = { _id: string, orderNumber?: string | null, status?: IOrderStatus | null, created?: any | null, updated?: any | null, ordered?: any | null, confirmed?: any | null, fulfilled?: any | null, totalTax?: { amount: number, currencyCode: string } | null, itemsTotal?: { amount: number, currencyCode: string } | null, totalDiscount?: { amount: number, currencyCode: string } | null, totalPayment?: { amount: number, currencyCode: string } | null, totalDelivery?: { amount: number, currencyCode: string } | null, user?: { _id: string, username?: string | null, isGuest: boolean, avatar?: { _id: string, url?: string | null } | null, profile?: { displayName?: string | null, address?: { firstName?: string | null, lastName?: string | null } | null } | null } | null, discounts?: Array<{ _id: string, trigger: IOrderDiscountTrigger, code?: string | null, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean }, discounted?: Array< - | { _id: string, orderDiscount: { _id: string, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } }, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } } - | { _id: string, orderDiscount: { _id: string, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } }, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } } - | { _id: string, orderDiscount: { _id: string, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } }, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } } - | { _id: string, orderDiscount: { _id: string, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } }, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } } - > | null }> | null, payment?: - | { _id: string, status?: IOrderPaymentStatus | null, paid?: any | null, provider?: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } | null, fee?: { currencyCode: string, amount: number } | null } - | { _id: string, status?: IOrderPaymentStatus | null, paid?: any | null, provider?: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } | null, fee?: { currencyCode: string, amount: number } | null } - | { _id: string, status?: IOrderPaymentStatus | null, paid?: any | null, provider?: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } | null, fee?: { currencyCode: string, amount: number } | null } - | null, contact?: { telNumber?: string | null, emailAddress?: string | null } | null, country?: { _id: string, isoCode?: string | null, flagEmoji?: string | null, name?: string | null } | null, currency?: { _id: string, isoCode: string, isActive?: boolean | null } | null, billingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, postalCode?: string | null, city?: string | null, countryCode?: string | null, regionCode?: string | null } | null, delivery?: - | { _id: string, status?: IOrderDeliveryStatus | null, delivered?: any | null, activePickUpLocation?: { _id: string, name: string, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, postalCode?: string | null, city?: string | null, countryCode?: string | null, regionCode?: string | null } | null } | null, provider?: - | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, configuration?: any | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } - | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, configuration?: any | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } - | null, fee?: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } | null, discounts?: Array<{ _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string }, discounted?: Array< - | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } - | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } - | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } - | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } - > | null } }> | null } - | { _id: string, status?: IOrderDeliveryStatus | null, delivered?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, postalCode?: string | null, city?: string | null, countryCode?: string | null, regionCode?: string | null } | null, provider?: - | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, configuration?: any | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } - | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, configuration?: any | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } - | null, fee?: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } | null, discounts?: Array<{ _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string }, discounted?: Array< - | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } - | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } - | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } - | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } - > | null } }> | null } - | null, total?: { isTaxable: boolean, amount: number, currencyCode: string } | null, items?: Array<{ _id: string, quantity: number, product: - | { _id: string, texts?: { _id: string, slug?: string | null, brand?: string | null, vendor?: string | null, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, brand?: string | null, vendor?: string | null, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, brand?: string | null, vendor?: string | null, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, brand?: string | null, vendor?: string | null, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, brand?: string | null, vendor?: string | null, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - , unitPrice?: { amount: number, isTaxable: boolean, isNetPrice: boolean, currencyCode: string } | null, total?: { amount: number, isTaxable: boolean, isNetPrice: boolean, currencyCode: string } | null }> | null }; - - -export type IOrderDetailFragmentVariables = Exact<{ [key: string]: never; }>; - -export type IOrderFragment = { _id: string, status?: IOrderStatus | null, created?: any | null, updated?: any | null, ordered?: any | null, orderNumber?: string | null, confirmed?: any | null, fulfilled?: any | null, contact?: { telNumber?: string | null, emailAddress?: string | null } | null, total?: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } | null, user?: { _id: string, username?: string | null, isGuest: boolean, avatar?: { _id: string, url?: string | null } | null, profile?: { displayName?: string | null, address?: { firstName?: string | null, lastName?: string | null } | null } | null } | null }; - - -export type IOrderFragmentVariables = Exact<{ [key: string]: never; }>; +export type IUpdateLanguageMutation = { + updateLanguage: { + _id: string; + isoCode?: string | null; + isActive?: boolean | null; + isBase?: boolean | null; + name?: string | null; + }; +}; + +export type IOrderDetailFragment = { + _id: string; + orderNumber?: string | null; + status?: IOrderStatus | null; + created?: any | null; + updated?: any | null; + ordered?: any | null; + confirmed?: any | null; + fulfilled?: any | null; + totalTax?: { amount: number; currencyCode: string } | null; + itemsTotal?: { amount: number; currencyCode: string } | null; + totalDiscount?: { amount: number; currencyCode: string } | null; + totalPayment?: { amount: number; currencyCode: string } | null; + totalDelivery?: { amount: number; currencyCode: string } | null; + user?: { + _id: string; + username?: string | null; + isGuest: boolean; + avatar?: { _id: string; url?: string | null } | null; + profile?: { + displayName?: string | null; + address?: { firstName?: string | null; lastName?: string | null } | null; + } | null; + } | null; + discounts?: Array<{ + _id: string; + trigger: IOrderDiscountTrigger; + code?: string | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + total: { + amount: number; + currencyCode: string; + isTaxable: boolean; + isNetPrice: boolean; + }; + discounted?: Array< + | { + _id: string; + orderDiscount: { + _id: string; + total: { + amount: number; + currencyCode: string; + isTaxable: boolean; + isNetPrice: boolean; + }; + }; + total: { + amount: number; + currencyCode: string; + isTaxable: boolean; + isNetPrice: boolean; + }; + } + | { + _id: string; + orderDiscount: { + _id: string; + total: { + amount: number; + currencyCode: string; + isTaxable: boolean; + isNetPrice: boolean; + }; + }; + total: { + amount: number; + currencyCode: string; + isTaxable: boolean; + isNetPrice: boolean; + }; + } + | { + _id: string; + orderDiscount: { + _id: string; + total: { + amount: number; + currencyCode: string; + isTaxable: boolean; + isNetPrice: boolean; + }; + }; + total: { + amount: number; + currencyCode: string; + isTaxable: boolean; + isNetPrice: boolean; + }; + } + | { + _id: string; + orderDiscount: { + _id: string; + total: { + amount: number; + currencyCode: string; + isTaxable: boolean; + isNetPrice: boolean; + }; + }; + total: { + amount: number; + currencyCode: string; + isTaxable: boolean; + isNetPrice: boolean; + }; + } + > | null; + }> | null; + payment?: + | { + _id: string; + status?: IOrderPaymentStatus | null; + paid?: any | null; + provider?: { + _id: string; + type?: IPaymentProviderType | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + } | null; + fee?: { currencyCode: string; amount: number } | null; + } + | { + _id: string; + status?: IOrderPaymentStatus | null; + paid?: any | null; + provider?: { + _id: string; + type?: IPaymentProviderType | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + } | null; + fee?: { currencyCode: string; amount: number } | null; + } + | { + _id: string; + status?: IOrderPaymentStatus | null; + paid?: any | null; + provider?: { + _id: string; + type?: IPaymentProviderType | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + } | null; + fee?: { currencyCode: string; amount: number } | null; + } + | null; + contact?: { telNumber?: string | null; emailAddress?: string | null } | null; + country?: { + _id: string; + isoCode?: string | null; + flagEmoji?: string | null; + name?: string | null; + } | null; + currency?: { _id: string; isoCode: string; isActive?: boolean | null } | null; + billingAddress?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + postalCode?: string | null; + city?: string | null; + countryCode?: string | null; + regionCode?: string | null; + } | null; + delivery?: + | { + _id: string; + status?: IOrderDeliveryStatus | null; + delivered?: any | null; + activePickUpLocation?: { + _id: string; + name: string; + address?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + postalCode?: string | null; + city?: string | null; + countryCode?: string | null; + regionCode?: string | null; + } | null; + } | null; + provider?: + | { + _id: string; + created?: any | null; + updated?: any | null; + deleted?: any | null; + type?: IDeliveryProviderType | null; + configuration?: any | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + } + | { + _id: string; + created?: any | null; + updated?: any | null; + deleted?: any | null; + type?: IDeliveryProviderType | null; + configuration?: any | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + } + | null; + fee?: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + } | null; + discounts?: Array<{ + _id: string; + orderDiscount: { + _id: string; + trigger: IOrderDiscountTrigger; + code?: string | null; + order: { _id: string; orderNumber?: string | null }; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + total: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + }; + discounted?: Array< + | { + _id: string; + orderDiscount: { + _id: string; + trigger: IOrderDiscountTrigger; + code?: string | null; + order: { _id: string; orderNumber?: string | null }; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + total: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + }; + }; + } + | { + _id: string; + orderDiscount: { + _id: string; + trigger: IOrderDiscountTrigger; + code?: string | null; + order: { _id: string; orderNumber?: string | null }; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + total: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + }; + }; + } + | { + _id: string; + orderDiscount: { + _id: string; + trigger: IOrderDiscountTrigger; + code?: string | null; + order: { _id: string; orderNumber?: string | null }; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + total: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + }; + }; + } + | { + _id: string; + orderDiscount: { + _id: string; + trigger: IOrderDiscountTrigger; + code?: string | null; + order: { _id: string; orderNumber?: string | null }; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + total: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + }; + }; + } + > | null; + }; + }> | null; + } + | { + _id: string; + status?: IOrderDeliveryStatus | null; + delivered?: any | null; + address?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + postalCode?: string | null; + city?: string | null; + countryCode?: string | null; + regionCode?: string | null; + } | null; + provider?: + | { + _id: string; + created?: any | null; + updated?: any | null; + deleted?: any | null; + type?: IDeliveryProviderType | null; + configuration?: any | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + } + | { + _id: string; + created?: any | null; + updated?: any | null; + deleted?: any | null; + type?: IDeliveryProviderType | null; + configuration?: any | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + } + | null; + fee?: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + } | null; + discounts?: Array<{ + _id: string; + orderDiscount: { + _id: string; + trigger: IOrderDiscountTrigger; + code?: string | null; + order: { _id: string; orderNumber?: string | null }; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + total: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + }; + discounted?: Array< + | { + _id: string; + orderDiscount: { + _id: string; + trigger: IOrderDiscountTrigger; + code?: string | null; + order: { _id: string; orderNumber?: string | null }; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + total: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + }; + }; + } + | { + _id: string; + orderDiscount: { + _id: string; + trigger: IOrderDiscountTrigger; + code?: string | null; + order: { _id: string; orderNumber?: string | null }; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + total: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + }; + }; + } + | { + _id: string; + orderDiscount: { + _id: string; + trigger: IOrderDiscountTrigger; + code?: string | null; + order: { _id: string; orderNumber?: string | null }; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + total: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + }; + }; + } + | { + _id: string; + orderDiscount: { + _id: string; + trigger: IOrderDiscountTrigger; + code?: string | null; + order: { _id: string; orderNumber?: string | null }; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + total: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + }; + }; + } + > | null; + }; + }> | null; + } + | null; + total?: { isTaxable: boolean; amount: number; currencyCode: string } | null; + items?: Array<{ + _id: string; + quantity: number; + product: + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + brand?: string | null; + vendor?: string | null; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + brand?: string | null; + vendor?: string | null; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + brand?: string | null; + vendor?: string | null; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + brand?: string | null; + vendor?: string | null; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + brand?: string | null; + vendor?: string | null; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + }; + unitPrice?: { + amount: number; + isTaxable: boolean; + isNetPrice: boolean; + currencyCode: string; + } | null; + total?: { + amount: number; + isTaxable: boolean; + isNetPrice: boolean; + currencyCode: string; + } | null; + }> | null; +}; + +export type IOrderDetailFragmentVariables = Exact<{ [key: string]: never }>; + +export type IOrderFragment = { + _id: string; + status?: IOrderStatus | null; + created?: any | null; + updated?: any | null; + ordered?: any | null; + orderNumber?: string | null; + confirmed?: any | null; + fulfilled?: any | null; + contact?: { telNumber?: string | null; emailAddress?: string | null } | null; + total?: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + } | null; + user?: { + _id: string; + username?: string | null; + isGuest: boolean; + avatar?: { _id: string; url?: string | null } | null; + profile?: { + displayName?: string | null; + address?: { firstName?: string | null; lastName?: string | null } | null; + } | null; + } | null; +}; + +export type IOrderFragmentVariables = Exact<{ [key: string]: never }>; export type IConfirmOrderMutationVariables = Exact<{ orderId: Scalars['ID']['input']; }>; - export type IConfirmOrderMutation = { confirmOrder: { _id: string } }; export type IDeliverOrderMutationVariables = Exact<{ orderId: Scalars['ID']['input']; }>; - export type IDeliverOrderMutation = { deliverOrder: { _id: string } }; export type IOrderQueryVariables = Exact<{ orderId: Scalars['ID']['input']; }>; - -export type IOrderQuery = { order?: { _id: string, orderNumber?: string | null, status?: IOrderStatus | null, created?: any | null, updated?: any | null, ordered?: any | null, confirmed?: any | null, fulfilled?: any | null, totalTax?: { amount: number, currencyCode: string } | null, itemsTotal?: { amount: number, currencyCode: string } | null, totalDiscount?: { amount: number, currencyCode: string } | null, totalPayment?: { amount: number, currencyCode: string } | null, totalDelivery?: { amount: number, currencyCode: string } | null, user?: { _id: string, username?: string | null, isGuest: boolean, avatar?: { _id: string, url?: string | null } | null, profile?: { displayName?: string | null, address?: { firstName?: string | null, lastName?: string | null } | null } | null } | null, discounts?: Array<{ _id: string, trigger: IOrderDiscountTrigger, code?: string | null, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean }, discounted?: Array< - | { _id: string, orderDiscount: { _id: string, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } }, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } } - | { _id: string, orderDiscount: { _id: string, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } }, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } } - | { _id: string, orderDiscount: { _id: string, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } }, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } } - | { _id: string, orderDiscount: { _id: string, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } }, total: { amount: number, currencyCode: string, isTaxable: boolean, isNetPrice: boolean } } - > | null }> | null, payment?: - | { _id: string, status?: IOrderPaymentStatus | null, paid?: any | null, provider?: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } | null, fee?: { currencyCode: string, amount: number } | null } - | { _id: string, status?: IOrderPaymentStatus | null, paid?: any | null, provider?: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } | null, fee?: { currencyCode: string, amount: number } | null } - | { _id: string, status?: IOrderPaymentStatus | null, paid?: any | null, provider?: { _id: string, type?: IPaymentProviderType | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } | null, fee?: { currencyCode: string, amount: number } | null } - | null, contact?: { telNumber?: string | null, emailAddress?: string | null } | null, country?: { _id: string, isoCode?: string | null, flagEmoji?: string | null, name?: string | null } | null, currency?: { _id: string, isoCode: string, isActive?: boolean | null } | null, billingAddress?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, postalCode?: string | null, city?: string | null, countryCode?: string | null, regionCode?: string | null } | null, delivery?: - | { _id: string, status?: IOrderDeliveryStatus | null, delivered?: any | null, activePickUpLocation?: { _id: string, name: string, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, postalCode?: string | null, city?: string | null, countryCode?: string | null, regionCode?: string | null } | null } | null, provider?: - | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, configuration?: any | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } - | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, configuration?: any | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } - | null, fee?: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } | null, discounts?: Array<{ _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string }, discounted?: Array< - | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } - | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } - | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } - | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } - > | null } }> | null } - | { _id: string, status?: IOrderDeliveryStatus | null, delivered?: any | null, address?: { firstName?: string | null, lastName?: string | null, company?: string | null, addressLine?: string | null, postalCode?: string | null, city?: string | null, countryCode?: string | null, regionCode?: string | null } | null, provider?: - | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, configuration?: any | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } - | { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, type?: IDeliveryProviderType | null, configuration?: any | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } - | null, fee?: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } | null, discounts?: Array<{ _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string }, discounted?: Array< - | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } - | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } - | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } - | { _id: string, orderDiscount: { _id: string, trigger: IOrderDiscountTrigger, code?: string | null, order: { _id: string, orderNumber?: string | null }, interface?: { _id: string, label?: string | null, version?: string | null } | null, total: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } } } - > | null } }> | null } - | null, total?: { isTaxable: boolean, amount: number, currencyCode: string } | null, items?: Array<{ _id: string, quantity: number, product: - | { _id: string, texts?: { _id: string, slug?: string | null, brand?: string | null, vendor?: string | null, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, brand?: string | null, vendor?: string | null, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, brand?: string | null, vendor?: string | null, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, brand?: string | null, vendor?: string | null, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, brand?: string | null, vendor?: string | null, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - , unitPrice?: { amount: number, isTaxable: boolean, isNetPrice: boolean, currencyCode: string } | null, total?: { amount: number, isTaxable: boolean, isNetPrice: boolean, currencyCode: string } | null }> | null } | null }; - -export type IOrderStatusQueryVariables = Exact<{ [key: string]: never; }>; - - -export type IOrderStatusQuery = { orderStatusType?: { options?: Array<{ value: string, label?: string | null }> | null } | null }; +export type IOrderQuery = { + order?: { + _id: string; + orderNumber?: string | null; + status?: IOrderStatus | null; + created?: any | null; + updated?: any | null; + ordered?: any | null; + confirmed?: any | null; + fulfilled?: any | null; + totalTax?: { amount: number; currencyCode: string } | null; + itemsTotal?: { amount: number; currencyCode: string } | null; + totalDiscount?: { amount: number; currencyCode: string } | null; + totalPayment?: { amount: number; currencyCode: string } | null; + totalDelivery?: { amount: number; currencyCode: string } | null; + user?: { + _id: string; + username?: string | null; + isGuest: boolean; + avatar?: { _id: string; url?: string | null } | null; + profile?: { + displayName?: string | null; + address?: { + firstName?: string | null; + lastName?: string | null; + } | null; + } | null; + } | null; + discounts?: Array<{ + _id: string; + trigger: IOrderDiscountTrigger; + code?: string | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + total: { + amount: number; + currencyCode: string; + isTaxable: boolean; + isNetPrice: boolean; + }; + discounted?: Array< + | { + _id: string; + orderDiscount: { + _id: string; + total: { + amount: number; + currencyCode: string; + isTaxable: boolean; + isNetPrice: boolean; + }; + }; + total: { + amount: number; + currencyCode: string; + isTaxable: boolean; + isNetPrice: boolean; + }; + } + | { + _id: string; + orderDiscount: { + _id: string; + total: { + amount: number; + currencyCode: string; + isTaxable: boolean; + isNetPrice: boolean; + }; + }; + total: { + amount: number; + currencyCode: string; + isTaxable: boolean; + isNetPrice: boolean; + }; + } + | { + _id: string; + orderDiscount: { + _id: string; + total: { + amount: number; + currencyCode: string; + isTaxable: boolean; + isNetPrice: boolean; + }; + }; + total: { + amount: number; + currencyCode: string; + isTaxable: boolean; + isNetPrice: boolean; + }; + } + | { + _id: string; + orderDiscount: { + _id: string; + total: { + amount: number; + currencyCode: string; + isTaxable: boolean; + isNetPrice: boolean; + }; + }; + total: { + amount: number; + currencyCode: string; + isTaxable: boolean; + isNetPrice: boolean; + }; + } + > | null; + }> | null; + payment?: + | { + _id: string; + status?: IOrderPaymentStatus | null; + paid?: any | null; + provider?: { + _id: string; + type?: IPaymentProviderType | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + } | null; + fee?: { currencyCode: string; amount: number } | null; + } + | { + _id: string; + status?: IOrderPaymentStatus | null; + paid?: any | null; + provider?: { + _id: string; + type?: IPaymentProviderType | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + } | null; + fee?: { currencyCode: string; amount: number } | null; + } + | { + _id: string; + status?: IOrderPaymentStatus | null; + paid?: any | null; + provider?: { + _id: string; + type?: IPaymentProviderType | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + } | null; + fee?: { currencyCode: string; amount: number } | null; + } + | null; + contact?: { + telNumber?: string | null; + emailAddress?: string | null; + } | null; + country?: { + _id: string; + isoCode?: string | null; + flagEmoji?: string | null; + name?: string | null; + } | null; + currency?: { + _id: string; + isoCode: string; + isActive?: boolean | null; + } | null; + billingAddress?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + postalCode?: string | null; + city?: string | null; + countryCode?: string | null; + regionCode?: string | null; + } | null; + delivery?: + | { + _id: string; + status?: IOrderDeliveryStatus | null; + delivered?: any | null; + activePickUpLocation?: { + _id: string; + name: string; + address?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + postalCode?: string | null; + city?: string | null; + countryCode?: string | null; + regionCode?: string | null; + } | null; + } | null; + provider?: + | { + _id: string; + created?: any | null; + updated?: any | null; + deleted?: any | null; + type?: IDeliveryProviderType | null; + configuration?: any | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + } + | { + _id: string; + created?: any | null; + updated?: any | null; + deleted?: any | null; + type?: IDeliveryProviderType | null; + configuration?: any | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + } + | null; + fee?: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + } | null; + discounts?: Array<{ + _id: string; + orderDiscount: { + _id: string; + trigger: IOrderDiscountTrigger; + code?: string | null; + order: { _id: string; orderNumber?: string | null }; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + total: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + }; + discounted?: Array< + | { + _id: string; + orderDiscount: { + _id: string; + trigger: IOrderDiscountTrigger; + code?: string | null; + order: { _id: string; orderNumber?: string | null }; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + total: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + }; + }; + } + | { + _id: string; + orderDiscount: { + _id: string; + trigger: IOrderDiscountTrigger; + code?: string | null; + order: { _id: string; orderNumber?: string | null }; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + total: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + }; + }; + } + | { + _id: string; + orderDiscount: { + _id: string; + trigger: IOrderDiscountTrigger; + code?: string | null; + order: { _id: string; orderNumber?: string | null }; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + total: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + }; + }; + } + | { + _id: string; + orderDiscount: { + _id: string; + trigger: IOrderDiscountTrigger; + code?: string | null; + order: { _id: string; orderNumber?: string | null }; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + total: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + }; + }; + } + > | null; + }; + }> | null; + } + | { + _id: string; + status?: IOrderDeliveryStatus | null; + delivered?: any | null; + address?: { + firstName?: string | null; + lastName?: string | null; + company?: string | null; + addressLine?: string | null; + postalCode?: string | null; + city?: string | null; + countryCode?: string | null; + regionCode?: string | null; + } | null; + provider?: + | { + _id: string; + created?: any | null; + updated?: any | null; + deleted?: any | null; + type?: IDeliveryProviderType | null; + configuration?: any | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + } + | { + _id: string; + created?: any | null; + updated?: any | null; + deleted?: any | null; + type?: IDeliveryProviderType | null; + configuration?: any | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + } + | null; + fee?: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + } | null; + discounts?: Array<{ + _id: string; + orderDiscount: { + _id: string; + trigger: IOrderDiscountTrigger; + code?: string | null; + order: { _id: string; orderNumber?: string | null }; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + total: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + }; + discounted?: Array< + | { + _id: string; + orderDiscount: { + _id: string; + trigger: IOrderDiscountTrigger; + code?: string | null; + order: { _id: string; orderNumber?: string | null }; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + total: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + }; + }; + } + | { + _id: string; + orderDiscount: { + _id: string; + trigger: IOrderDiscountTrigger; + code?: string | null; + order: { _id: string; orderNumber?: string | null }; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + total: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + }; + }; + } + | { + _id: string; + orderDiscount: { + _id: string; + trigger: IOrderDiscountTrigger; + code?: string | null; + order: { _id: string; orderNumber?: string | null }; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + total: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + }; + }; + } + | { + _id: string; + orderDiscount: { + _id: string; + trigger: IOrderDiscountTrigger; + code?: string | null; + order: { _id: string; orderNumber?: string | null }; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + total: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + }; + }; + } + > | null; + }; + }> | null; + } + | null; + total?: { isTaxable: boolean; amount: number; currencyCode: string } | null; + items?: Array<{ + _id: string; + quantity: number; + product: + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + brand?: string | null; + vendor?: string | null; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + brand?: string | null; + vendor?: string | null; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + brand?: string | null; + vendor?: string | null; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + brand?: string | null; + vendor?: string | null; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + brand?: string | null; + vendor?: string | null; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + }; + unitPrice?: { + amount: number; + isTaxable: boolean; + isNetPrice: boolean; + currencyCode: string; + } | null; + total?: { + amount: number; + isTaxable: boolean; + isNetPrice: boolean; + currencyCode: string; + } | null; + }> | null; + } | null; +}; + +export type IOrderStatusQueryVariables = Exact<{ [key: string]: never }>; + +export type IOrderStatusQuery = { + orderStatusType?: { + options?: Array<{ value: string; label?: string | null }> | null; + } | null; +}; export type IOrdersQueryVariables = Exact<{ limit?: InputMaybe; @@ -5639,28 +10091,59 @@ export type IOrdersQueryVariables = Exact<{ status?: InputMaybe>; }>; - -export type IOrdersQuery = { ordersCount: number, orders: Array<{ _id: string, status?: IOrderStatus | null, created?: any | null, updated?: any | null, ordered?: any | null, orderNumber?: string | null, confirmed?: any | null, fulfilled?: any | null, contact?: { telNumber?: string | null, emailAddress?: string | null } | null, total?: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } | null, user?: { _id: string, username?: string | null, isGuest: boolean, avatar?: { _id: string, url?: string | null } | null, profile?: { displayName?: string | null, address?: { firstName?: string | null, lastName?: string | null } | null } | null } | null }> }; +export type IOrdersQuery = { + ordersCount: number; + orders: Array<{ + _id: string; + status?: IOrderStatus | null; + created?: any | null; + updated?: any | null; + ordered?: any | null; + orderNumber?: string | null; + confirmed?: any | null; + fulfilled?: any | null; + contact?: { + telNumber?: string | null; + emailAddress?: string | null; + } | null; + total?: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + } | null; + user?: { + _id: string; + username?: string | null; + isGuest: boolean; + avatar?: { _id: string; url?: string | null } | null; + profile?: { + displayName?: string | null; + address?: { + firstName?: string | null; + lastName?: string | null; + } | null; + } | null; + } | null; + }>; +}; export type IPayOrderMutationVariables = Exact<{ orderId: Scalars['ID']['input']; }>; - export type IPayOrderMutation = { payOrder: { _id: string } }; export type IRejectOrderMutationVariables = Exact<{ orderId: Scalars['ID']['input']; }>; - export type IRejectOrderMutation = { rejectOrder: { _id: string } }; export type IRemoveOrderMutationVariables = Exact<{ orderId: Scalars['ID']['input']; }>; - export type IRemoveOrderMutation = { removeOrder: { _id: string } }; export type IUserOrderQueryVariables = Exact<{ @@ -5670,77 +10153,279 @@ export type IUserOrderQueryVariables = Exact<{ includeCarts?: InputMaybe; }>; - -export type IUserOrderQuery = { user?: { orders: Array<{ _id: string, status?: IOrderStatus | null, created?: any | null, updated?: any | null, ordered?: any | null, orderNumber?: string | null, confirmed?: any | null, fulfilled?: any | null, contact?: { telNumber?: string | null, emailAddress?: string | null } | null, total?: { isTaxable: boolean, isNetPrice: boolean, amount: number, currencyCode: string } | null, user?: { _id: string, username?: string | null, isGuest: boolean, avatar?: { _id: string, url?: string | null } | null, profile?: { displayName?: string | null, address?: { firstName?: string | null, lastName?: string | null } | null } | null } | null }> } | null }; - -export type IPaymentProviderFragment = { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, isActive?: boolean | null, type?: IPaymentProviderType | null, configuration?: any | null, configurationError?: IPaymentProviderError | null, interface?: { _id: string, label?: string | null, version?: string | null } | null }; - - -export type IPaymentProviderFragmentVariables = Exact<{ [key: string]: never; }>; +export type IUserOrderQuery = { + user?: { + orders: Array<{ + _id: string; + status?: IOrderStatus | null; + created?: any | null; + updated?: any | null; + ordered?: any | null; + orderNumber?: string | null; + confirmed?: any | null; + fulfilled?: any | null; + contact?: { + telNumber?: string | null; + emailAddress?: string | null; + } | null; + total?: { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + currencyCode: string; + } | null; + user?: { + _id: string; + username?: string | null; + isGuest: boolean; + avatar?: { _id: string; url?: string | null } | null; + profile?: { + displayName?: string | null; + address?: { + firstName?: string | null; + lastName?: string | null; + } | null; + } | null; + } | null; + }>; + } | null; +}; + +export type IPaymentProviderFragment = { + _id: string; + created?: any | null; + updated?: any | null; + deleted?: any | null; + isActive?: boolean | null; + type?: IPaymentProviderType | null; + configuration?: any | null; + configurationError?: IPaymentProviderError | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; +}; + +export type IPaymentProviderFragmentVariables = Exact<{ [key: string]: never }>; export type ICreatePaymentProviderMutationVariables = Exact<{ paymentProvider: ICreatePaymentProviderInput; }>; - -export type ICreatePaymentProviderMutation = { createPaymentProvider: { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, isActive?: boolean | null, type?: IPaymentProviderType | null, configuration?: any | null, configurationError?: IPaymentProviderError | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }; +export type ICreatePaymentProviderMutation = { + createPaymentProvider: { + _id: string; + created?: any | null; + updated?: any | null; + deleted?: any | null; + isActive?: boolean | null; + type?: IPaymentProviderType | null; + configuration?: any | null; + configurationError?: IPaymentProviderError | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + }; +}; export type IPaymentInterfacesQueryVariables = Exact<{ providerType?: InputMaybe; }>; - -export type IPaymentInterfacesQuery = { paymentInterfaces: Array<{ _id: string, label?: string | null, value: string }> }; +export type IPaymentInterfacesQuery = { + paymentInterfaces: Array<{ + _id: string; + label?: string | null; + value: string; + }>; +}; export type IPaymentProviderQueryVariables = Exact<{ paymentProviderId: Scalars['ID']['input']; }>; +export type IPaymentProviderQuery = { + paymentProvider?: { + _id: string; + created?: any | null; + updated?: any | null; + deleted?: any | null; + isActive?: boolean | null; + type?: IPaymentProviderType | null; + configuration?: any | null; + configurationError?: IPaymentProviderError | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + } | null; +}; -export type IPaymentProviderQuery = { paymentProvider?: { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, isActive?: boolean | null, type?: IPaymentProviderType | null, configuration?: any | null, configurationError?: IPaymentProviderError | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } | null }; - -export type IPaymentProvidersTypeQueryVariables = Exact<{ [key: string]: never; }>; - +export type IPaymentProvidersTypeQueryVariables = Exact<{ + [key: string]: never; +}>; -export type IPaymentProvidersTypeQuery = { paymentProviderType?: { options?: Array<{ value: string, label?: string | null }> | null } | null }; +export type IPaymentProvidersTypeQuery = { + paymentProviderType?: { + options?: Array<{ value: string; label?: string | null }> | null; + } | null; +}; export type IPaymentProvidersQueryVariables = Exact<{ type?: InputMaybe; }>; +export type IPaymentProvidersQuery = { + paymentProvidersCount: number; + paymentProviders: Array<{ + _id: string; + created?: any | null; + updated?: any | null; + deleted?: any | null; + isActive?: boolean | null; + type?: IPaymentProviderType | null; + configuration?: any | null; + configurationError?: IPaymentProviderError | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + }>; +}; -export type IPaymentProvidersQuery = { paymentProvidersCount: number, paymentProviders: Array<{ _id: string, created?: any | null, updated?: any | null, deleted?: any | null, isActive?: boolean | null, type?: IPaymentProviderType | null, configuration?: any | null, configurationError?: IPaymentProviderError | null, interface?: { _id: string, label?: string | null, version?: string | null } | null }> }; - -export type IOrderPaymentStatusQueryVariables = Exact<{ [key: string]: never; }>; - +export type IOrderPaymentStatusQueryVariables = Exact<{ [key: string]: never }>; -export type IOrderPaymentStatusQuery = { paymentStatusTypes?: { options?: Array<{ value: string, label?: string | null }> | null } | null }; +export type IOrderPaymentStatusQuery = { + paymentStatusTypes?: { + options?: Array<{ value: string; label?: string | null }> | null; + } | null; +}; export type IRemovePaymentProviderMutationVariables = Exact<{ paymentProviderId: Scalars['ID']['input']; }>; - -export type IRemovePaymentProviderMutation = { removePaymentProvider: { _id: string } }; +export type IRemovePaymentProviderMutation = { + removePaymentProvider: { _id: string }; +}; export type IUpdatePaymentProviderMutationVariables = Exact<{ paymentProvider: IUpdateProviderInput; paymentProviderId: Scalars['ID']['input']; }>; - -export type IUpdatePaymentProviderMutation = { updatePaymentProvider: { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, isActive?: boolean | null, type?: IPaymentProviderType | null, configuration?: any | null, configurationError?: IPaymentProviderError | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }; - -export type IProductReviewDetailFragment = { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, rating?: number | null, title?: string | null, review?: string | null, upVote?: number | null, downVote?: number | null, voteReport?: number | null, author: { _id: string, username?: string | null, name: string, isGuest: boolean, profile?: { displayName?: string | null, address?: { firstName?: string | null, lastName?: string | null } | null } | null, avatar?: { _id: string, url?: string | null } | null }, product: - | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - , ownVotes: Array<{ timestamp: any, type: IProductReviewVoteType }> }; - - -export type IProductReviewDetailFragmentVariables = Exact<{ [key: string]: never; }>; +export type IUpdatePaymentProviderMutation = { + updatePaymentProvider: { + _id: string; + created?: any | null; + updated?: any | null; + deleted?: any | null; + isActive?: boolean | null; + type?: IPaymentProviderType | null; + configuration?: any | null; + configurationError?: IPaymentProviderError | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + }; +}; + +export type IProductReviewDetailFragment = { + _id: string; + created?: any | null; + updated?: any | null; + deleted?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + upVote?: number | null; + downVote?: number | null; + voteReport?: number | null; + author: { + _id: string; + username?: string | null; + name: string; + isGuest: boolean; + profile?: { + displayName?: string | null; + address?: { firstName?: string | null; lastName?: string | null } | null; + } | null; + avatar?: { _id: string; url?: string | null } | null; + }; + product: + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + }; + ownVotes: Array<{ timestamp: any; type: IProductReviewVoteType }>; +}; + +export type IProductReviewDetailFragmentVariables = Exact<{ + [key: string]: never; +}>; export type IAddProductReviewVoteMutationVariables = Exact<{ productReviewId: Scalars['ID']['input']; @@ -5749,8 +10434,9 @@ export type IAddProductReviewVoteMutationVariables = Exact<{ forceLocale?: InputMaybe; }>; - -export type IAddProductReviewVoteMutation = { addProductReviewVote: { _id: string } }; +export type IAddProductReviewVoteMutation = { + addProductReviewVote: { _id: string }; +}; export type ICreateProductReviewMutationVariables = Exact<{ productId: Scalars['ID']['input']; @@ -5758,8 +10444,9 @@ export type ICreateProductReviewMutationVariables = Exact<{ forceLocale?: InputMaybe; }>; - -export type ICreateProductReviewMutation = { createProductReview: { _id: string } }; +export type ICreateProductReviewMutation = { + createProductReview: { _id: string }; +}; export type IProductReviewByProductQueryVariables = Exact<{ productId?: InputMaybe; @@ -5770,51 +10457,478 @@ export type IProductReviewByProductQueryVariables = Exact<{ forceLocale?: InputMaybe; }>; - -export type IProductReviewByProductQuery = { product?: - | { _id: string, reviewsCount: number, reviews: Array<{ _id: string, created?: any | null, updated?: any | null, deleted?: any | null, rating?: number | null, title?: string | null, review?: string | null, upVote?: number | null, downVote?: number | null, voteReport?: number | null, author: { _id: string, username?: string | null, name: string, isGuest: boolean, profile?: { displayName?: string | null, address?: { firstName?: string | null, lastName?: string | null } | null } | null, avatar?: { _id: string, url?: string | null } | null }, product: - | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - , ownVotes: Array<{ timestamp: any, type: IProductReviewVoteType }> }> } - | { _id: string, reviewsCount: number, reviews: Array<{ _id: string, created?: any | null, updated?: any | null, deleted?: any | null, rating?: number | null, title?: string | null, review?: string | null, upVote?: number | null, downVote?: number | null, voteReport?: number | null, author: { _id: string, username?: string | null, name: string, isGuest: boolean, profile?: { displayName?: string | null, address?: { firstName?: string | null, lastName?: string | null } | null } | null, avatar?: { _id: string, url?: string | null } | null }, product: - | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - , ownVotes: Array<{ timestamp: any, type: IProductReviewVoteType }> }> } - | { _id: string, reviewsCount: number, reviews: Array<{ _id: string, created?: any | null, updated?: any | null, deleted?: any | null, rating?: number | null, title?: string | null, review?: string | null, upVote?: number | null, downVote?: number | null, voteReport?: number | null, author: { _id: string, username?: string | null, name: string, isGuest: boolean, profile?: { displayName?: string | null, address?: { firstName?: string | null, lastName?: string | null } | null } | null, avatar?: { _id: string, url?: string | null } | null }, product: - | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - , ownVotes: Array<{ timestamp: any, type: IProductReviewVoteType }> }> } - | { _id: string, reviewsCount: number, reviews: Array<{ _id: string, created?: any | null, updated?: any | null, deleted?: any | null, rating?: number | null, title?: string | null, review?: string | null, upVote?: number | null, downVote?: number | null, voteReport?: number | null, author: { _id: string, username?: string | null, name: string, isGuest: boolean, profile?: { displayName?: string | null, address?: { firstName?: string | null, lastName?: string | null } | null } | null, avatar?: { _id: string, url?: string | null } | null }, product: - | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - , ownVotes: Array<{ timestamp: any, type: IProductReviewVoteType }> }> } - | { _id: string, reviewsCount: number, reviews: Array<{ _id: string, created?: any | null, updated?: any | null, deleted?: any | null, rating?: number | null, title?: string | null, review?: string | null, upVote?: number | null, downVote?: number | null, voteReport?: number | null, author: { _id: string, username?: string | null, name: string, isGuest: boolean, profile?: { displayName?: string | null, address?: { firstName?: string | null, lastName?: string | null } | null } | null, avatar?: { _id: string, url?: string | null } | null }, product: - | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - , ownVotes: Array<{ timestamp: any, type: IProductReviewVoteType }> }> } - | null }; +export type IProductReviewByProductQuery = { + product?: + | { + _id: string; + reviewsCount: number; + reviews: Array<{ + _id: string; + created?: any | null; + updated?: any | null; + deleted?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + upVote?: number | null; + downVote?: number | null; + voteReport?: number | null; + author: { + _id: string; + username?: string | null; + name: string; + isGuest: boolean; + profile?: { + displayName?: string | null; + address?: { + firstName?: string | null; + lastName?: string | null; + } | null; + } | null; + avatar?: { _id: string; url?: string | null } | null; + }; + product: + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + }; + ownVotes: Array<{ timestamp: any; type: IProductReviewVoteType }>; + }>; + } + | { + _id: string; + reviewsCount: number; + reviews: Array<{ + _id: string; + created?: any | null; + updated?: any | null; + deleted?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + upVote?: number | null; + downVote?: number | null; + voteReport?: number | null; + author: { + _id: string; + username?: string | null; + name: string; + isGuest: boolean; + profile?: { + displayName?: string | null; + address?: { + firstName?: string | null; + lastName?: string | null; + } | null; + } | null; + avatar?: { _id: string; url?: string | null } | null; + }; + product: + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + }; + ownVotes: Array<{ timestamp: any; type: IProductReviewVoteType }>; + }>; + } + | { + _id: string; + reviewsCount: number; + reviews: Array<{ + _id: string; + created?: any | null; + updated?: any | null; + deleted?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + upVote?: number | null; + downVote?: number | null; + voteReport?: number | null; + author: { + _id: string; + username?: string | null; + name: string; + isGuest: boolean; + profile?: { + displayName?: string | null; + address?: { + firstName?: string | null; + lastName?: string | null; + } | null; + } | null; + avatar?: { _id: string; url?: string | null } | null; + }; + product: + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + }; + ownVotes: Array<{ timestamp: any; type: IProductReviewVoteType }>; + }>; + } + | { + _id: string; + reviewsCount: number; + reviews: Array<{ + _id: string; + created?: any | null; + updated?: any | null; + deleted?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + upVote?: number | null; + downVote?: number | null; + voteReport?: number | null; + author: { + _id: string; + username?: string | null; + name: string; + isGuest: boolean; + profile?: { + displayName?: string | null; + address?: { + firstName?: string | null; + lastName?: string | null; + } | null; + } | null; + avatar?: { _id: string; url?: string | null } | null; + }; + product: + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + }; + ownVotes: Array<{ timestamp: any; type: IProductReviewVoteType }>; + }>; + } + | { + _id: string; + reviewsCount: number; + reviews: Array<{ + _id: string; + created?: any | null; + updated?: any | null; + deleted?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + upVote?: number | null; + downVote?: number | null; + voteReport?: number | null; + author: { + _id: string; + username?: string | null; + name: string; + isGuest: boolean; + profile?: { + displayName?: string | null; + address?: { + firstName?: string | null; + lastName?: string | null; + } | null; + } | null; + avatar?: { _id: string; url?: string | null } | null; + }; + product: + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + }; + ownVotes: Array<{ timestamp: any; type: IProductReviewVoteType }>; + }>; + } + | null; +}; export type IRemoveProductReviewMutationVariables = Exact<{ productReviewId: Scalars['ID']['input']; }>; - -export type IRemoveProductReviewMutation = { removeProductReview: { _id: string } }; +export type IRemoveProductReviewMutation = { + removeProductReview: { _id: string }; +}; export type IRemoveProductReviewVoteMutationVariables = Exact<{ productReviewId: Scalars['ID']['input']; @@ -5822,8 +10936,9 @@ export type IRemoveProductReviewVoteMutationVariables = Exact<{ forceLocale?: InputMaybe; }>; - -export type IRemoveProductReviewVoteMutation = { removeProductReviewVote: { _id: string } }; +export type IRemoveProductReviewVoteMutation = { + removeProductReviewVote: { _id: string }; +}; export type IUserProductReviewsQueryVariables = Exact<{ userId: Scalars['ID']['input']; @@ -5833,155 +10948,841 @@ export type IUserProductReviewsQueryVariables = Exact<{ forceLocale?: InputMaybe; }>; - -export type IUserProductReviewsQuery = { user?: { _id: string, reviewsCount: number, reviews: Array<{ _id: string, created?: any | null, updated?: any | null, deleted?: any | null, rating?: number | null, title?: string | null, review?: string | null, upVote?: number | null, downVote?: number | null, voteReport?: number | null, product: - | { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, slug?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, proxies: Array< - | { __typename: 'BundleProduct' } - | { __typename: 'ConfigurableProduct' } - > } - | { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, slug?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, slug?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, catalogPrice?: { amount: number, currencyCode: string } | null, proxies: Array< - | { __typename: 'BundleProduct' } - | { __typename: 'ConfigurableProduct' } - > } - | { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, slug?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, catalogPrice?: { amount: number, currencyCode: string } | null, proxies: Array< - | { __typename: 'BundleProduct' } - | { __typename: 'ConfigurableProduct' } - > } - | { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, slug?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } - , author: { _id: string, username?: string | null, name: string, isGuest: boolean, profile?: { displayName?: string | null, address?: { firstName?: string | null, lastName?: string | null } | null } | null, avatar?: { _id: string, url?: string | null } | null }, ownVotes: Array<{ timestamp: any, type: IProductReviewVoteType }> }> } | null }; - -export type IProductAssignmentFragment = { _id: string, vectors?: Array<{ _id: string, option?: { _id: string, value?: string | null, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null } | null, variation?: { _id: string, key?: string | null, texts?: { _id: string, locale: any, title?: string | null } | null } | null }> | null, product?: - | { _id: string, texts?: { _id: string, title?: string | null, slug?: string | null, subtitle?: string | null } | null } - | { _id: string, texts?: { _id: string, title?: string | null, slug?: string | null, subtitle?: string | null } | null } - | { _id: string, texts?: { _id: string, title?: string | null, slug?: string | null, subtitle?: string | null } | null } - | { _id: string, texts?: { _id: string, title?: string | null, slug?: string | null, subtitle?: string | null } | null } - | { _id: string, texts?: { _id: string, title?: string | null, slug?: string | null, subtitle?: string | null } | null } - | null }; - - -export type IProductAssignmentFragmentVariables = Exact<{ [key: string]: never; }>; - -type IProductBriefFragment_BundleProduct = { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, proxies: Array< - | { __typename: 'BundleProduct' } - | { __typename: 'ConfigurableProduct' } - >, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> }; - -type IProductBriefFragment_ConfigurableProduct = { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> }; - -type IProductBriefFragment_PlanProduct = { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, catalogPrice?: { amount: number, currencyCode: string } | null, proxies: Array< - | { __typename: 'BundleProduct' } - | { __typename: 'ConfigurableProduct' } - >, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> }; - -type IProductBriefFragment_SimpleProduct = { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, catalogPrice?: { amount: number, currencyCode: string } | null, proxies: Array< - | { __typename: 'BundleProduct' } - | { __typename: 'ConfigurableProduct' } - >, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> }; - -type IProductBriefFragment_TokenizedProduct = { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> }; +export type IUserProductReviewsQuery = { + user?: { + _id: string; + reviewsCount: number; + reviews: Array<{ + _id: string; + created?: any | null; + updated?: any | null; + deleted?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + upVote?: number | null; + downVote?: number | null; + voteReport?: number | null; + product: + | { + _id: string; + sequence: number; + status: IProductStatus; + tags?: Array | null; + updated?: any | null; + published?: any | null; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + slug?: string | null; + description?: string | null; + vendor?: string | null; + brand?: string | null; + labels?: Array | null; + locale: any; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + proxies: Array< + | { __typename: 'BundleProduct' } + | { __typename: 'ConfigurableProduct' } + >; + } + | { + _id: string; + sequence: number; + status: IProductStatus; + tags?: Array | null; + updated?: any | null; + published?: any | null; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + slug?: string | null; + description?: string | null; + vendor?: string | null; + brand?: string | null; + labels?: Array | null; + locale: any; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + sequence: number; + status: IProductStatus; + tags?: Array | null; + updated?: any | null; + published?: any | null; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + slug?: string | null; + description?: string | null; + vendor?: string | null; + brand?: string | null; + labels?: Array | null; + locale: any; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + catalogPrice?: { amount: number; currencyCode: string } | null; + proxies: Array< + | { __typename: 'BundleProduct' } + | { __typename: 'ConfigurableProduct' } + >; + } + | { + _id: string; + sequence: number; + status: IProductStatus; + tags?: Array | null; + updated?: any | null; + published?: any | null; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + slug?: string | null; + description?: string | null; + vendor?: string | null; + brand?: string | null; + labels?: Array | null; + locale: any; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + catalogPrice?: { amount: number; currencyCode: string } | null; + proxies: Array< + | { __typename: 'BundleProduct' } + | { __typename: 'ConfigurableProduct' } + >; + } + | { + _id: string; + sequence: number; + status: IProductStatus; + tags?: Array | null; + updated?: any | null; + published?: any | null; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + slug?: string | null; + description?: string | null; + vendor?: string | null; + brand?: string | null; + labels?: Array | null; + locale: any; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + }; + author: { + _id: string; + username?: string | null; + name: string; + isGuest: boolean; + profile?: { + displayName?: string | null; + address?: { + firstName?: string | null; + lastName?: string | null; + } | null; + } | null; + avatar?: { _id: string; url?: string | null } | null; + }; + ownVotes: Array<{ timestamp: any; type: IProductReviewVoteType }>; + }>; + } | null; +}; + +export type IProductAssignmentFragment = { + _id: string; + vectors?: Array<{ + _id: string; + option?: { + _id: string; + value?: string | null; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + } | null; + } | null; + variation?: { + _id: string; + key?: string | null; + texts?: { _id: string; locale: any; title?: string | null } | null; + } | null; + }> | null; + product?: + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + slug?: string | null; + subtitle?: string | null; + } | null; + } + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + slug?: string | null; + subtitle?: string | null; + } | null; + } + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + slug?: string | null; + subtitle?: string | null; + } | null; + } + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + slug?: string | null; + subtitle?: string | null; + } | null; + } + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + slug?: string | null; + subtitle?: string | null; + } | null; + } + | null; +}; + +export type IProductAssignmentFragmentVariables = Exact<{ + [key: string]: never; +}>; + +type IProductBriefFragment_BundleProduct = { + _id: string; + sequence: number; + status: IProductStatus; + tags?: Array | null; + updated?: any | null; + published?: any | null; + proxies: Array< + { __typename: 'BundleProduct' } | { __typename: 'ConfigurableProduct' } + >; + texts?: { + _id: string; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + vendor?: string | null; + brand?: string | null; + labels?: Array | null; + locale: any; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; +}; + +type IProductBriefFragment_ConfigurableProduct = { + _id: string; + sequence: number; + status: IProductStatus; + tags?: Array | null; + updated?: any | null; + published?: any | null; + texts?: { + _id: string; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + vendor?: string | null; + brand?: string | null; + labels?: Array | null; + locale: any; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; +}; + +type IProductBriefFragment_PlanProduct = { + _id: string; + sequence: number; + status: IProductStatus; + tags?: Array | null; + updated?: any | null; + published?: any | null; + catalogPrice?: { amount: number; currencyCode: string } | null; + proxies: Array< + { __typename: 'BundleProduct' } | { __typename: 'ConfigurableProduct' } + >; + texts?: { + _id: string; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + vendor?: string | null; + brand?: string | null; + labels?: Array | null; + locale: any; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; +}; + +type IProductBriefFragment_SimpleProduct = { + _id: string; + sequence: number; + status: IProductStatus; + tags?: Array | null; + updated?: any | null; + published?: any | null; + catalogPrice?: { amount: number; currencyCode: string } | null; + proxies: Array< + { __typename: 'BundleProduct' } | { __typename: 'ConfigurableProduct' } + >; + texts?: { + _id: string; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + vendor?: string | null; + brand?: string | null; + labels?: Array | null; + locale: any; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; +}; + +type IProductBriefFragment_TokenizedProduct = { + _id: string; + sequence: number; + status: IProductStatus; + tags?: Array | null; + updated?: any | null; + published?: any | null; + texts?: { + _id: string; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + vendor?: string | null; + brand?: string | null; + labels?: Array | null; + locale: any; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; +}; export type IProductBriefFragment = | IProductBriefFragment_BundleProduct | IProductBriefFragment_ConfigurableProduct | IProductBriefFragment_PlanProduct | IProductBriefFragment_SimpleProduct - | IProductBriefFragment_TokenizedProduct -; - - -export type IProductBriefFragmentVariables = Exact<{ [key: string]: never; }>; - -export type IProductCatalogPriceFragment = { isTaxable: boolean, isNetPrice: boolean, amount: number, maxQuantity?: number | null, country: { _id: string, isoCode?: string | null, name?: string | null, flagEmoji?: string | null }, currency: { _id: string, isoCode: string, isActive?: boolean | null } }; - - -export type IProductCatalogPriceFragmentVariables = Exact<{ [key: string]: never; }>; - -type IProductDetailFragment_BundleProduct = { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - > }; - -type IProductDetailFragment_ConfigurableProduct = { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - > }; - -type IProductDetailFragment_PlanProduct = { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - > }; - -type IProductDetailFragment_SimpleProduct = { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - > }; - -type IProductDetailFragment_TokenizedProduct = { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - > }; + | IProductBriefFragment_TokenizedProduct; + +export type IProductBriefFragmentVariables = Exact<{ [key: string]: never }>; + +export type IProductCatalogPriceFragment = { + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + maxQuantity?: number | null; + country: { + _id: string; + isoCode?: string | null; + name?: string | null; + flagEmoji?: string | null; + }; + currency: { _id: string; isoCode: string; isActive?: boolean | null }; +}; + +export type IProductCatalogPriceFragmentVariables = Exact<{ + [key: string]: never; +}>; + +type IProductDetailFragment_BundleProduct = { + _id: string; + sequence: number; + status: IProductStatus; + created?: any | null; + tags?: Array | null; + updated?: any | null; + published?: any | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + reviews: Array<{ + _id: string; + created?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + voteCount?: number | null; + author: { _id: string; username?: string | null; isGuest: boolean }; + ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; + }>; + siblings: Array< + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + >; +}; + +type IProductDetailFragment_ConfigurableProduct = { + _id: string; + sequence: number; + status: IProductStatus; + created?: any | null; + tags?: Array | null; + updated?: any | null; + published?: any | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + reviews: Array<{ + _id: string; + created?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + voteCount?: number | null; + author: { _id: string; username?: string | null; isGuest: boolean }; + ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; + }>; + siblings: Array< + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + >; +}; + +type IProductDetailFragment_PlanProduct = { + _id: string; + sequence: number; + status: IProductStatus; + created?: any | null; + tags?: Array | null; + updated?: any | null; + published?: any | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + reviews: Array<{ + _id: string; + created?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + voteCount?: number | null; + author: { _id: string; username?: string | null; isGuest: boolean }; + ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; + }>; + siblings: Array< + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + >; +}; + +type IProductDetailFragment_SimpleProduct = { + _id: string; + sequence: number; + status: IProductStatus; + created?: any | null; + tags?: Array | null; + updated?: any | null; + published?: any | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + reviews: Array<{ + _id: string; + created?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + voteCount?: number | null; + author: { _id: string; username?: string | null; isGuest: boolean }; + ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; + }>; + siblings: Array< + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + >; +}; + +type IProductDetailFragment_TokenizedProduct = { + _id: string; + sequence: number; + status: IProductStatus; + created?: any | null; + tags?: Array | null; + updated?: any | null; + published?: any | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + reviews: Array<{ + _id: string; + created?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + voteCount?: number | null; + author: { _id: string; username?: string | null; isGuest: boolean }; + ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; + }>; + siblings: Array< + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + >; +}; export type IProductDetailFragment = | IProductDetailFragment_BundleProduct | IProductDetailFragment_ConfigurableProduct | IProductDetailFragment_PlanProduct | IProductDetailFragment_SimpleProduct - | IProductDetailFragment_TokenizedProduct -; - - -export type IProductDetailFragmentVariables = Exact<{ [key: string]: never; }>; - -export type IProductDimensionFragment = { weight?: number | null, length?: number | null, width?: number | null, height?: number | null }; - - -export type IProductDimensionFragmentVariables = Exact<{ [key: string]: never; }>; - -export type IProductMediaFragment = { _id: string, tags?: Array | null, sortKey: number, file?: { _id: string, name: string, type: string, size: number, url?: string | null } | null, texts?: { _id: string, locale: any, title?: string | null, subtitle?: string | null } | null }; - - -export type IProductMediaFragmentVariables = Exact<{ [key: string]: never; }>; - -export type IProductMediaTextsFragment = { _id: string, locale: any, title?: string | null, subtitle?: string | null }; + | IProductDetailFragment_TokenizedProduct; +export type IProductDetailFragmentVariables = Exact<{ [key: string]: never }>; -export type IProductMediaTextsFragmentVariables = Exact<{ [key: string]: never; }>; - -export type IProductPlanConfigurationFragment = { usageCalculationType: IProductPlanUsageCalculationType, billingInterval: IProductPlanConfigurationInterval, trialInterval?: IProductPlanConfigurationInterval | null, trialIntervalCount?: number | null, billingIntervalCount?: number | null }; - - -export type IProductPlanConfigurationFragmentVariables = Exact<{ [key: string]: never; }>; - -export type IProductTextsFragment = { _id: string, locale: any, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null }; - +export type IProductDimensionFragment = { + weight?: number | null; + length?: number | null; + width?: number | null; + height?: number | null; +}; -export type IProductTextsFragmentVariables = Exact<{ [key: string]: never; }>; +export type IProductDimensionFragmentVariables = Exact<{ + [key: string]: never; +}>; -export type IProductVariationFragment = { _id: string, type?: IProductVariationType | null, key?: string | null, texts?: { _id: string, locale: any, title?: string | null, subtitle?: string | null } | null, options?: Array<{ _id: string, value?: string | null, texts?: { _id: string, locale: any, title?: string | null, subtitle?: string | null } | null }> | null }; +export type IProductMediaFragment = { + _id: string; + tags?: Array | null; + sortKey: number; + file?: { + _id: string; + name: string; + type: string; + size: number; + url?: string | null; + } | null; + texts?: { + _id: string; + locale: any; + title?: string | null; + subtitle?: string | null; + } | null; +}; +export type IProductMediaFragmentVariables = Exact<{ [key: string]: never }>; -export type IProductVariationFragmentVariables = Exact<{ [key: string]: never; }>; +export type IProductMediaTextsFragment = { + _id: string; + locale: any; + title?: string | null; + subtitle?: string | null; +}; -export type ITokenFragment = { _id: string, walletAddress?: string | null, status: ITokenExportStatus, quantity: number, contractAddress?: string | null, chainId?: string | null, tokenSerialNumber?: string | null, invalidatedDate?: any | null, expiryDate?: any | null, ercMetadata?: any | null, accessKey: string, isInvalidateable: boolean, isCanceled?: boolean | null }; +export type IProductMediaTextsFragmentVariables = Exact<{ + [key: string]: never; +}>; +export type IProductPlanConfigurationFragment = { + usageCalculationType: IProductPlanUsageCalculationType; + billingInterval: IProductPlanConfigurationInterval; + trialInterval?: IProductPlanConfigurationInterval | null; + trialIntervalCount?: number | null; + billingIntervalCount?: number | null; +}; + +export type IProductPlanConfigurationFragmentVariables = Exact<{ + [key: string]: never; +}>; + +export type IProductTextsFragment = { + _id: string; + locale: any; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + vendor?: string | null; + brand?: string | null; + labels?: Array | null; +}; + +export type IProductTextsFragmentVariables = Exact<{ [key: string]: never }>; + +export type IProductVariationFragment = { + _id: string; + type?: IProductVariationType | null; + key?: string | null; + texts?: { + _id: string; + locale: any; + title?: string | null; + subtitle?: string | null; + } | null; + options?: Array<{ + _id: string; + value?: string | null; + texts?: { + _id: string; + locale: any; + title?: string | null; + subtitle?: string | null; + } | null; + }> | null; +}; + +export type IProductVariationFragmentVariables = Exact<{ + [key: string]: never; +}>; + +export type ITokenFragment = { + _id: string; + walletAddress?: string | null; + status: ITokenExportStatus; + quantity: number; + contractAddress?: string | null; + chainId?: string | null; + tokenSerialNumber?: string | null; + invalidatedDate?: any | null; + expiryDate?: any | null; + ercMetadata?: any | null; + accessKey: string; + isInvalidateable: boolean; + isCanceled?: boolean | null; +}; -export type ITokenFragmentVariables = Exact<{ [key: string]: never; }>; +export type ITokenFragmentVariables = Exact<{ [key: string]: never }>; export type IAddProductAssignmentMutationVariables = Exact<{ proxyId: Scalars['ID']['input']; @@ -5989,80 +11790,406 @@ export type IAddProductAssignmentMutationVariables = Exact<{ vectors: Array; }>; - -export type IAddProductAssignmentMutation = { addProductAssignment: - | { _id: string } +export type IAddProductAssignmentMutation = { + addProductAssignment: | { _id: string } | { _id: string } | { _id: string } | { _id: string } - }; + | { _id: string }; +}; export type IPrepareProductMediaUploadMutationVariables = Exact<{ mediaName: Scalars['String']['input']; productId: Scalars['ID']['input']; }>; - -export type IPrepareProductMediaUploadMutation = { prepareProductMediaUpload: { _id: string, putURL: string, expires: any } }; +export type IPrepareProductMediaUploadMutation = { + prepareProductMediaUpload: { _id: string; putURL: string; expires: any }; +}; export type ICreateProductMutationVariables = Exact<{ product: ICreateProductInput; texts?: InputMaybe>; }>; - -export type ICreateProductMutation = { createProduct: - | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, locale: any, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - > } - | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, locale: any, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - > } - | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, locale: any, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - > } - | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, locale: any, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - > } - | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, locale: any, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - > } - }; +export type ICreateProductMutation = { + createProduct: + | { + _id: string; + sequence: number; + status: IProductStatus; + created?: any | null; + tags?: Array | null; + updated?: any | null; + published?: any | null; + texts?: { + _id: string; + locale: any; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + vendor?: string | null; + brand?: string | null; + labels?: Array | null; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + reviews: Array<{ + _id: string; + created?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + voteCount?: number | null; + author: { _id: string; username?: string | null; isGuest: boolean }; + ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; + }>; + siblings: Array< + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + >; + } + | { + _id: string; + sequence: number; + status: IProductStatus; + created?: any | null; + tags?: Array | null; + updated?: any | null; + published?: any | null; + texts?: { + _id: string; + locale: any; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + vendor?: string | null; + brand?: string | null; + labels?: Array | null; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + reviews: Array<{ + _id: string; + created?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + voteCount?: number | null; + author: { _id: string; username?: string | null; isGuest: boolean }; + ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; + }>; + siblings: Array< + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + >; + } + | { + _id: string; + sequence: number; + status: IProductStatus; + created?: any | null; + tags?: Array | null; + updated?: any | null; + published?: any | null; + texts?: { + _id: string; + locale: any; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + vendor?: string | null; + brand?: string | null; + labels?: Array | null; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + reviews: Array<{ + _id: string; + created?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + voteCount?: number | null; + author: { _id: string; username?: string | null; isGuest: boolean }; + ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; + }>; + siblings: Array< + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + >; + } + | { + _id: string; + sequence: number; + status: IProductStatus; + created?: any | null; + tags?: Array | null; + updated?: any | null; + published?: any | null; + texts?: { + _id: string; + locale: any; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + vendor?: string | null; + brand?: string | null; + labels?: Array | null; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + reviews: Array<{ + _id: string; + created?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + voteCount?: number | null; + author: { _id: string; username?: string | null; isGuest: boolean }; + ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; + }>; + siblings: Array< + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + >; + } + | { + _id: string; + sequence: number; + status: IProductStatus; + created?: any | null; + tags?: Array | null; + updated?: any | null; + published?: any | null; + texts?: { + _id: string; + locale: any; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + vendor?: string | null; + brand?: string | null; + labels?: Array | null; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + reviews: Array<{ + _id: string; + created?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + voteCount?: number | null; + author: { _id: string; username?: string | null; isGuest: boolean }; + ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; + }>; + siblings: Array< + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + >; + }; +}; export type ICreateProductBundleItemMutationVariables = Exact<{ productId: Scalars['ID']['input']; item: ICreateProductBundleItemInput; }>; - -export type ICreateProductBundleItemMutation = { createProductBundleItem: - | { _id: string } +export type ICreateProductBundleItemMutation = { + createProductBundleItem: | { _id: string } | { _id: string } | { _id: string } | { _id: string } - }; + | { _id: string }; +}; export type ICreateProductVariationMutationVariables = Exact<{ productId: Scalars['ID']['input']; @@ -6070,8 +12197,9 @@ export type ICreateProductVariationMutationVariables = Exact<{ texts?: InputMaybe>; }>; - -export type ICreateProductVariationMutation = { createProductVariation: { _id: string } }; +export type ICreateProductVariationMutation = { + createProductVariation: { _id: string }; +}; export type ICreateProductVariationOptionMutationVariables = Exact<{ productVariationId: Scalars['ID']['input']; @@ -6079,8 +12207,9 @@ export type ICreateProductVariationOptionMutationVariables = Exact<{ texts?: InputMaybe>; }>; - -export type ICreateProductVariationOptionMutation = { createProductVariationOption: { _id: string } }; +export type ICreateProductVariationOptionMutation = { + createProductVariationOption: { _id: string }; +}; export type IExportTokenMutationVariables = Exact<{ tokenId: Scalars['ID']['input']; @@ -6088,81 +12217,518 @@ export type IExportTokenMutationVariables = Exact<{ recipientWalletAddress: Scalars['String']['input']; }>; - -export type IExportTokenMutation = { exportToken: { _id: string, walletAddress?: string | null, status: ITokenExportStatus, quantity: number, contractAddress?: string | null, chainId?: string | null, tokenSerialNumber?: string | null, invalidatedDate?: any | null, expiryDate?: any | null, ercMetadata?: any | null, accessKey: string, isInvalidateable: boolean, isCanceled?: boolean | null } }; +export type IExportTokenMutation = { + exportToken: { + _id: string; + walletAddress?: string | null; + status: ITokenExportStatus; + quantity: number; + contractAddress?: string | null; + chainId?: string | null; + tokenSerialNumber?: string | null; + invalidatedDate?: any | null; + expiryDate?: any | null; + ercMetadata?: any | null; + accessKey: string; + isInvalidateable: boolean; + isCanceled?: boolean | null; + }; +}; export type IProductQueryVariables = Exact<{ productId?: InputMaybe; slug?: InputMaybe; }>; - -export type IProductQuery = { product?: - | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, description?: string | null } | null, proxies: Array< - | { __typename: 'BundleProduct' } - | { __typename: 'ConfigurableProduct' } - >, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - > } - | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, description?: string | null } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - > } - | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, description?: string | null } | null, proxies: Array< - | { __typename: 'BundleProduct' } - | { __typename: 'ConfigurableProduct' } - >, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - > } - | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, description?: string | null } | null, proxies: Array< - | { __typename: 'BundleProduct' } - | { __typename: 'ConfigurableProduct' } - >, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - > } - | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, title?: string | null, subtitle?: string | null, description?: string | null } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - > } - | null }; +export type IProductQuery = { + product?: + | { + _id: string; + sequence: number; + status: IProductStatus; + created?: any | null; + tags?: Array | null; + updated?: any | null; + published?: any | null; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + description?: string | null; + } | null; + proxies: Array< + | { __typename: 'BundleProduct' } + | { __typename: 'ConfigurableProduct' } + >; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + reviews: Array<{ + _id: string; + created?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + voteCount?: number | null; + author: { _id: string; username?: string | null; isGuest: boolean }; + ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; + }>; + siblings: Array< + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + >; + } + | { + _id: string; + sequence: number; + status: IProductStatus; + created?: any | null; + tags?: Array | null; + updated?: any | null; + published?: any | null; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + reviews: Array<{ + _id: string; + created?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + voteCount?: number | null; + author: { _id: string; username?: string | null; isGuest: boolean }; + ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; + }>; + siblings: Array< + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + >; + } + | { + _id: string; + sequence: number; + status: IProductStatus; + created?: any | null; + tags?: Array | null; + updated?: any | null; + published?: any | null; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + description?: string | null; + } | null; + proxies: Array< + | { __typename: 'BundleProduct' } + | { __typename: 'ConfigurableProduct' } + >; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + reviews: Array<{ + _id: string; + created?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + voteCount?: number | null; + author: { _id: string; username?: string | null; isGuest: boolean }; + ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; + }>; + siblings: Array< + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + >; + } + | { + _id: string; + sequence: number; + status: IProductStatus; + created?: any | null; + tags?: Array | null; + updated?: any | null; + published?: any | null; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + description?: string | null; + } | null; + proxies: Array< + | { __typename: 'BundleProduct' } + | { __typename: 'ConfigurableProduct' } + >; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + reviews: Array<{ + _id: string; + created?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + voteCount?: number | null; + author: { _id: string; username?: string | null; isGuest: boolean }; + ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; + }>; + siblings: Array< + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + >; + } + | { + tokensCount: number; + _id: string; + sequence: number; + status: IProductStatus; + created?: any | null; + tags?: Array | null; + updated?: any | null; + published?: any | null; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + description?: string | null; + } | null; + contractConfiguration?: { + ercMetadataProperties?: any | null; + supply: number; + } | null; + simulatedStocks?: Array<{ quantity?: number | null }> | null; + tokens: Array<{ + _id: string; + tokenSerialNumber?: string | null; + isCanceled?: boolean | null; + invalidatedDate?: any | null; + isInvalidateable: boolean; + quantity: number; + status: ITokenExportStatus; + walletAddress?: string | null; + user?: { + _id: string; + username?: string | null; + isGuest: boolean; + primaryEmail?: { address: string; verified: boolean } | null; + avatar?: { _id: string; url?: string | null } | null; + profile?: { + displayName?: string | null; + address?: { + firstName?: string | null; + lastName?: string | null; + } | null; + } | null; + lastContact?: { + emailAddress?: string | null; + telNumber?: string | null; + } | null; + } | null; + }>; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + reviews: Array<{ + _id: string; + created?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + voteCount?: number | null; + author: { _id: string; username?: string | null; isGuest: boolean }; + ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; + }>; + siblings: Array< + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + >; + } + | null; +}; export type IProductAssignmentsQueryVariables = Exact<{ productId?: InputMaybe; slug?: InputMaybe; }>; - -export type IProductAssignmentsQuery = { product?: +export type IProductAssignmentsQuery = { + product?: | { _id: string } - | { _id: string, texts?: { _id: string, subtitle?: string | null, slug?: string | null, title?: string | null } | null, variations?: Array<{ _id: string, key?: string | null, texts?: { _id: string, title?: string | null } | null, options?: Array<{ _id: string, value?: string | null, texts?: { _id: string, title?: string | null } | null }> | null }> | null, assignments: Array<{ _id: string, vectors?: Array<{ _id: string, option?: { _id: string, value?: string | null, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null } | null, variation?: { _id: string, key?: string | null, texts?: { _id: string, locale: any, title?: string | null } | null } | null }> | null, product?: - | { _id: string, texts?: { _id: string, title?: string | null, slug?: string | null, subtitle?: string | null } | null } - | { _id: string, texts?: { _id: string, title?: string | null, slug?: string | null, subtitle?: string | null } | null } - | { _id: string, texts?: { _id: string, title?: string | null, slug?: string | null, subtitle?: string | null } | null } - | { _id: string, texts?: { _id: string, title?: string | null, slug?: string | null, subtitle?: string | null } | null } - | { _id: string, texts?: { _id: string, title?: string | null, slug?: string | null, subtitle?: string | null } | null } - | null }> } + | { + _id: string; + texts?: { + _id: string; + subtitle?: string | null; + slug?: string | null; + title?: string | null; + } | null; + variations?: Array<{ + _id: string; + key?: string | null; + texts?: { _id: string; title?: string | null } | null; + options?: Array<{ + _id: string; + value?: string | null; + texts?: { _id: string; title?: string | null } | null; + }> | null; + }> | null; + assignments: Array<{ + _id: string; + vectors?: Array<{ + _id: string; + option?: { + _id: string; + value?: string | null; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + } | null; + } | null; + variation?: { + _id: string; + key?: string | null; + texts?: { + _id: string; + locale: any; + title?: string | null; + } | null; + } | null; + }> | null; + product?: + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + slug?: string | null; + subtitle?: string | null; + } | null; + } + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + slug?: string | null; + subtitle?: string | null; + } | null; + } + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + slug?: string | null; + subtitle?: string | null; + } | null; + } + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + slug?: string | null; + subtitle?: string | null; + } | null; + } + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + slug?: string | null; + subtitle?: string | null; + } | null; + } + | null; + }>; + } | { _id: string } | { _id: string } | { _id: string } - | null }; + | null; +}; export type IProductBundleItemsQueryVariables = Exact<{ productId?: InputMaybe; @@ -6170,69 +12736,327 @@ export type IProductBundleItemsQueryVariables = Exact<{ forceLocale?: InputMaybe; }>; - -export type IProductBundleItemsQuery = { product?: - | { _id: string, bundleItems?: Array<{ quantity: number, product: - | { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, proxies: Array< - | { __typename: 'BundleProduct' } - | { __typename: 'ConfigurableProduct' } - >, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, catalogPrice?: { amount: number, currencyCode: string } | null, proxies: Array< - | { __typename: 'BundleProduct' } - | { __typename: 'ConfigurableProduct' } - >, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, catalogPrice?: { amount: number, currencyCode: string } | null, proxies: Array< - | { __typename: 'BundleProduct' } - | { __typename: 'ConfigurableProduct' } - >, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } - }> | null } +export type IProductBundleItemsQuery = { + product?: + | { + _id: string; + bundleItems?: Array<{ + quantity: number; + product: + | { + _id: string; + sequence: number; + status: IProductStatus; + tags?: Array | null; + updated?: any | null; + published?: any | null; + proxies: Array< + | { __typename: 'BundleProduct' } + | { __typename: 'ConfigurableProduct' } + >; + texts?: { + _id: string; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + vendor?: string | null; + brand?: string | null; + labels?: Array | null; + locale: any; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + sequence: number; + status: IProductStatus; + tags?: Array | null; + updated?: any | null; + published?: any | null; + texts?: { + _id: string; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + vendor?: string | null; + brand?: string | null; + labels?: Array | null; + locale: any; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + sequence: number; + status: IProductStatus; + tags?: Array | null; + updated?: any | null; + published?: any | null; + catalogPrice?: { amount: number; currencyCode: string } | null; + proxies: Array< + | { __typename: 'BundleProduct' } + | { __typename: 'ConfigurableProduct' } + >; + texts?: { + _id: string; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + vendor?: string | null; + brand?: string | null; + labels?: Array | null; + locale: any; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + sequence: number; + status: IProductStatus; + tags?: Array | null; + updated?: any | null; + published?: any | null; + catalogPrice?: { amount: number; currencyCode: string } | null; + proxies: Array< + | { __typename: 'BundleProduct' } + | { __typename: 'ConfigurableProduct' } + >; + texts?: { + _id: string; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + vendor?: string | null; + brand?: string | null; + labels?: Array | null; + locale: any; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + sequence: number; + status: IProductStatus; + tags?: Array | null; + updated?: any | null; + published?: any | null; + texts?: { + _id: string; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + vendor?: string | null; + brand?: string | null; + labels?: Array | null; + locale: any; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + }; + }> | null; + } | { _id: string } | { _id: string } | { _id: string } | { _id: string } - | null }; + | null; +}; export type IProductCatalogPricesQueryVariables = Exact<{ productId: Scalars['ID']['input']; }>; - -export type IProductCatalogPricesQuery = { productCatalogPrices: Array<{ isTaxable: boolean, isNetPrice: boolean, amount: number, maxQuantity?: number | null, country: { _id: string, isoCode?: string | null, name?: string | null, flagEmoji?: string | null }, currency: { _id: string, isoCode: string, isActive?: boolean | null } }> }; +export type IProductCatalogPricesQuery = { + productCatalogPrices: Array<{ + isTaxable: boolean; + isNetPrice: boolean; + amount: number; + maxQuantity?: number | null; + country: { + _id: string; + isoCode?: string | null; + name?: string | null; + flagEmoji?: string | null; + }; + currency: { _id: string; isoCode: string; isActive?: boolean | null }; + }>; +}; export type IProductMediaQueryVariables = Exact<{ productId?: InputMaybe; slug?: InputMaybe; }>; - -export type IProductMediaQuery = { product?: - | { _id: string, media: Array<{ _id: string, tags?: Array | null, sortKey: number, file?: { _id: string, name: string, type: string, size: number, url?: string | null } | null, texts?: { _id: string, locale: any, title?: string | null, subtitle?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, tags?: Array | null, sortKey: number, file?: { _id: string, name: string, type: string, size: number, url?: string | null } | null, texts?: { _id: string, locale: any, title?: string | null, subtitle?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, tags?: Array | null, sortKey: number, file?: { _id: string, name: string, type: string, size: number, url?: string | null } | null, texts?: { _id: string, locale: any, title?: string | null, subtitle?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, tags?: Array | null, sortKey: number, file?: { _id: string, name: string, type: string, size: number, url?: string | null } | null, texts?: { _id: string, locale: any, title?: string | null, subtitle?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, tags?: Array | null, sortKey: number, file?: { _id: string, name: string, type: string, size: number, url?: string | null } | null, texts?: { _id: string, locale: any, title?: string | null, subtitle?: string | null } | null }> } - | null }; +export type IProductMediaQuery = { + product?: + | { + _id: string; + media: Array<{ + _id: string; + tags?: Array | null; + sortKey: number; + file?: { + _id: string; + name: string; + type: string; + size: number; + url?: string | null; + } | null; + texts?: { + _id: string; + locale: any; + title?: string | null; + subtitle?: string | null; + } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + tags?: Array | null; + sortKey: number; + file?: { + _id: string; + name: string; + type: string; + size: number; + url?: string | null; + } | null; + texts?: { + _id: string; + locale: any; + title?: string | null; + subtitle?: string | null; + } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + tags?: Array | null; + sortKey: number; + file?: { + _id: string; + name: string; + type: string; + size: number; + url?: string | null; + } | null; + texts?: { + _id: string; + locale: any; + title?: string | null; + subtitle?: string | null; + } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + tags?: Array | null; + sortKey: number; + file?: { + _id: string; + name: string; + type: string; + size: number; + url?: string | null; + } | null; + texts?: { + _id: string; + locale: any; + title?: string | null; + subtitle?: string | null; + } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + tags?: Array | null; + sortKey: number; + file?: { + _id: string; + name: string; + type: string; + size: number; + url?: string | null; + } | null; + texts?: { + _id: string; + locale: any; + title?: string | null; + subtitle?: string | null; + } | null; + }>; + } + | null; +}; export type IProductPlanQueryVariables = Exact<{ productId?: InputMaybe; slug?: InputMaybe; }>; - -export type IProductPlanQuery = { product?: +export type IProductPlanQuery = { + product?: | { _id: string } | { _id: string } - | { _id: string, plan?: { usageCalculationType: IProductPlanUsageCalculationType, billingInterval: IProductPlanConfigurationInterval, trialInterval?: IProductPlanConfigurationInterval | null, trialIntervalCount?: number | null, billingIntervalCount?: number | null } | null } + | { + _id: string; + plan?: { + usageCalculationType: IProductPlanUsageCalculationType; + billingInterval: IProductPlanConfigurationInterval; + trialInterval?: IProductPlanConfigurationInterval | null; + trialIntervalCount?: number | null; + billingIntervalCount?: number | null; + } | null; + } | { _id: string } | { _id: string } - | null }; - -export type IProductPlanConfigurationOptionsQueryVariables = Exact<{ [key: string]: never; }>; + | null; +}; +export type IProductPlanConfigurationOptionsQueryVariables = Exact<{ + [key: string]: never; +}>; -export type IProductPlanConfigurationOptionsQuery = { usageCalculationTypes?: { options?: Array<{ value: string, label?: string | null }> | null } | null, configurationIntervals?: { options?: Array<{ value: string, label?: string | null }> | null } | null }; +export type IProductPlanConfigurationOptionsQuery = { + usageCalculationTypes?: { + options?: Array<{ value: string; label?: string | null }> | null; + } | null; + configurationIntervals?: { + options?: Array<{ value: string; label?: string | null }> | null; + } | null; +}; export type IProductReviewsQueryVariables = Exact<{ queryString?: InputMaybe; @@ -6242,47 +13066,149 @@ export type IProductReviewsQueryVariables = Exact<{ forceLocale?: InputMaybe; }>; - -export type IProductReviewsQuery = { productReviews: Array<{ _id: string, created?: any | null, updated?: any | null, deleted?: any | null, rating?: number | null, title?: string | null, review?: string | null, upVote?: number | null, downVote?: number | null, voteReport?: number | null, author: { _id: string, username?: string | null, name: string, isGuest: boolean, profile?: { displayName?: string | null, address?: { firstName?: string | null, lastName?: string | null } | null } | null, avatar?: { _id: string, url?: string | null } | null }, product: - | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, title?: string | null, subtitle?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - , ownVotes: Array<{ timestamp: any, type: IProductReviewVoteType }> }> }; +export type IProductReviewsQuery = { + productReviews: Array<{ + _id: string; + created?: any | null; + updated?: any | null; + deleted?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + upVote?: number | null; + downVote?: number | null; + voteReport?: number | null; + author: { + _id: string; + username?: string | null; + name: string; + isGuest: boolean; + profile?: { + displayName?: string | null; + address?: { + firstName?: string | null; + lastName?: string | null; + } | null; + } | null; + avatar?: { _id: string; url?: string | null } | null; + }; + product: + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + }; + ownVotes: Array<{ timestamp: any; type: IProductReviewVoteType }>; + }>; +}; export type IProductSupplyQueryVariables = Exact<{ productId?: InputMaybe; slug?: InputMaybe; }>; - -export type IProductSupplyQuery = { product?: +export type IProductSupplyQuery = { + product?: | { _id: string } | { _id: string } | { _id: string } - | { _id: string, dimensions?: { weight?: number | null, length?: number | null, width?: number | null, height?: number | null } | null } + | { + _id: string; + dimensions?: { + weight?: number | null; + length?: number | null; + width?: number | null; + height?: number | null; + } | null; + } | { _id: string } - | null }; + | null; +}; export type IProductTokenizationQueryVariables = Exact<{ productId?: InputMaybe; slug?: InputMaybe; }>; - -export type IProductTokenizationQuery = { product?: +export type IProductTokenizationQuery = { + product?: | { _id: string } | { _id: string } | { _id: string } | { _id: string } - | { contractStandard?: ISmartContractStandard | null, contractAddress?: string | null, _id: string, contractConfiguration?: { tokenId: string, supply: number } | null } - | null }; - -export type IProductVariationTypeQueryVariables = Exact<{ [key: string]: never; }>; + | { + contractStandard?: ISmartContractStandard | null; + contractAddress?: string | null; + _id: string; + contractConfiguration?: { tokenId: string; supply: number } | null; + } + | null; +}; +export type IProductVariationTypeQueryVariables = Exact<{ + [key: string]: never; +}>; -export type IProductVariationTypeQuery = { variationTypes?: { options?: Array<{ value: string, label?: string | null }> | null } | null }; +export type IProductVariationTypeQuery = { + variationTypes?: { + options?: Array<{ value: string; label?: string | null }> | null; + } | null; +}; export type IProductVariationsQueryVariables = Exact<{ productId?: InputMaybe; @@ -6290,28 +13216,53 @@ export type IProductVariationsQueryVariables = Exact<{ locale?: InputMaybe; }>; - -export type IProductVariationsQuery = { product?: +export type IProductVariationsQuery = { + product?: | { _id: string } - | { _id: string, variations?: Array<{ _id: string, type?: IProductVariationType | null, key?: string | null, texts?: { _id: string, locale: any, title?: string | null, subtitle?: string | null } | null, options?: Array<{ _id: string, value?: string | null, texts?: { _id: string, locale: any, title?: string | null, subtitle?: string | null } | null }> | null }> | null } + | { + _id: string; + variations?: Array<{ + _id: string; + type?: IProductVariationType | null; + key?: string | null; + texts?: { + _id: string; + locale: any; + title?: string | null; + subtitle?: string | null; + } | null; + options?: Array<{ + _id: string; + value?: string | null; + texts?: { + _id: string; + locale: any; + title?: string | null; + subtitle?: string | null; + } | null; + }> | null; + }> | null; + } | { _id: string } | { _id: string } | { _id: string } - | null }; + | null; +}; export type IProductWarehousingQueryVariables = Exact<{ productId?: InputMaybe; slug?: InputMaybe; }>; - -export type IProductWarehousingQuery = { product?: +export type IProductWarehousingQuery = { + product?: | { _id: string } | { _id: string } | { _id: string } - | { sku?: string | null, baseUnit?: string | null, _id: string } + | { sku?: string | null; baseUnit?: string | null; _id: string } | { _id: string } - | null }; + | null; +}; export type IProductsQueryVariables = Exact<{ queryString?: InputMaybe; @@ -6324,23 +13275,153 @@ export type IProductsQueryVariables = Exact<{ forceLocale?: InputMaybe; }>; - -export type IProductsQuery = { productsCount: number, products: Array< - | { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, proxies: Array< - | { __typename: 'BundleProduct' } - | { __typename: 'ConfigurableProduct' } - >, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, catalogPrice?: { amount: number, currencyCode: string } | null, proxies: Array< - | { __typename: 'BundleProduct' } - | { __typename: 'ConfigurableProduct' } - >, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } - | { sku?: string | null, baseUnit?: string | null, _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, dimensions?: { weight?: number | null, length?: number | null, width?: number | null, height?: number | null } | null, catalogPrice?: { amount: number, currencyCode: string } | null, proxies: Array< - | { __typename: 'BundleProduct' } - | { __typename: 'ConfigurableProduct' } - >, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } - > }; +export type IProductsQuery = { + productsCount: number; + products: Array< + | { + _id: string; + sequence: number; + status: IProductStatus; + tags?: Array | null; + updated?: any | null; + published?: any | null; + proxies: Array< + | { __typename: 'BundleProduct' } + | { __typename: 'ConfigurableProduct' } + >; + texts?: { + _id: string; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + vendor?: string | null; + brand?: string | null; + labels?: Array | null; + locale: any; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + sequence: number; + status: IProductStatus; + tags?: Array | null; + updated?: any | null; + published?: any | null; + texts?: { + _id: string; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + vendor?: string | null; + brand?: string | null; + labels?: Array | null; + locale: any; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + sequence: number; + status: IProductStatus; + tags?: Array | null; + updated?: any | null; + published?: any | null; + catalogPrice?: { amount: number; currencyCode: string } | null; + proxies: Array< + | { __typename: 'BundleProduct' } + | { __typename: 'ConfigurableProduct' } + >; + texts?: { + _id: string; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + vendor?: string | null; + brand?: string | null; + labels?: Array | null; + locale: any; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + sku?: string | null; + baseUnit?: string | null; + _id: string; + sequence: number; + status: IProductStatus; + tags?: Array | null; + updated?: any | null; + published?: any | null; + dimensions?: { + weight?: number | null; + length?: number | null; + width?: number | null; + height?: number | null; + } | null; + catalogPrice?: { amount: number; currencyCode: string } | null; + proxies: Array< + | { __typename: 'BundleProduct' } + | { __typename: 'ConfigurableProduct' } + >; + texts?: { + _id: string; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + vendor?: string | null; + brand?: string | null; + labels?: Array | null; + locale: any; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + sequence: number; + status: IProductStatus; + tags?: Array | null; + updated?: any | null; + published?: any | null; + texts?: { + _id: string; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + vendor?: string | null; + brand?: string | null; + labels?: Array | null; + locale: any; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + } + >; +}; export type IProductsCountQueryVariables = Exact<{ queryString?: InputMaybe; @@ -6349,323 +13430,1458 @@ export type IProductsCountQueryVariables = Exact<{ includeDrafts?: InputMaybe; }>; - export type IProductsCountQuery = { productsCount: number }; export type IPublishProductMutationVariables = Exact<{ productId: Scalars['ID']['input']; }>; - -export type IPublishProductMutation = { publishProduct: - | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - > } - | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - > } - | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - > } - | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - > } - | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - > } - }; +export type IPublishProductMutation = { + publishProduct: + | { + _id: string; + sequence: number; + status: IProductStatus; + created?: any | null; + tags?: Array | null; + updated?: any | null; + published?: any | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + reviews: Array<{ + _id: string; + created?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + voteCount?: number | null; + author: { _id: string; username?: string | null; isGuest: boolean }; + ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; + }>; + siblings: Array< + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + >; + } + | { + _id: string; + sequence: number; + status: IProductStatus; + created?: any | null; + tags?: Array | null; + updated?: any | null; + published?: any | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + reviews: Array<{ + _id: string; + created?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + voteCount?: number | null; + author: { _id: string; username?: string | null; isGuest: boolean }; + ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; + }>; + siblings: Array< + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + >; + } + | { + _id: string; + sequence: number; + status: IProductStatus; + created?: any | null; + tags?: Array | null; + updated?: any | null; + published?: any | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + reviews: Array<{ + _id: string; + created?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + voteCount?: number | null; + author: { _id: string; username?: string | null; isGuest: boolean }; + ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; + }>; + siblings: Array< + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + >; + } + | { + _id: string; + sequence: number; + status: IProductStatus; + created?: any | null; + tags?: Array | null; + updated?: any | null; + published?: any | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + reviews: Array<{ + _id: string; + created?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + voteCount?: number | null; + author: { _id: string; username?: string | null; isGuest: boolean }; + ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; + }>; + siblings: Array< + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + >; + } + | { + _id: string; + sequence: number; + status: IProductStatus; + created?: any | null; + tags?: Array | null; + updated?: any | null; + published?: any | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + reviews: Array<{ + _id: string; + created?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + voteCount?: number | null; + author: { _id: string; username?: string | null; isGuest: boolean }; + ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; + }>; + siblings: Array< + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + >; + }; +}; export type IReOrderProductMediaMutationVariables = Exact<{ sortKeys: Array; }>; - -export type IReOrderProductMediaMutation = { reorderProductMedia: Array<{ _id: string }> }; +export type IReOrderProductMediaMutation = { + reorderProductMedia: Array<{ _id: string }>; +}; export type IRemoveBundleItemMutationVariables = Exact<{ productId: Scalars['ID']['input']; index: Scalars['Int']['input']; }>; - -export type IRemoveBundleItemMutation = { removeBundleItem: - | { _id: string } +export type IRemoveBundleItemMutation = { + removeBundleItem: | { _id: string } | { _id: string } | { _id: string } | { _id: string } - }; + | { _id: string }; +}; export type IRemoveProductMutationVariables = Exact<{ productId: Scalars['ID']['input']; }>; - -export type IRemoveProductMutation = { removeProduct: - | { _id: string } +export type IRemoveProductMutation = { + removeProduct: | { _id: string } | { _id: string } | { _id: string } | { _id: string } - }; + | { _id: string }; +}; export type IRemoveProductAssignmentMutationVariables = Exact<{ proxyId: Scalars['ID']['input']; vectors: Array; }>; - -export type IRemoveProductAssignmentMutation = { removeProductAssignment: - | { _id: string } +export type IRemoveProductAssignmentMutation = { + removeProductAssignment: | { _id: string } | { _id: string } | { _id: string } | { _id: string } - }; + | { _id: string }; +}; export type IRemoveProductMediaMutationVariables = Exact<{ productMediaId: Scalars['ID']['input']; }>; - -export type IRemoveProductMediaMutation = { removeProductMedia: { _id: string } }; +export type IRemoveProductMediaMutation = { + removeProductMedia: { _id: string }; +}; export type IRemoveProductVariationMutationVariables = Exact<{ productVariationId: Scalars['ID']['input']; }>; - -export type IRemoveProductVariationMutation = { removeProductVariation: { _id: string } }; +export type IRemoveProductVariationMutation = { + removeProductVariation: { _id: string }; +}; export type IRemoveProductVariationOptionMutationVariables = Exact<{ productVariationId: Scalars['ID']['input']; productVariationOptionValue: Scalars['String']['input']; }>; +export type IRemoveProductVariationOptionMutation = { + removeProductVariationOption: { _id: string }; +}; -export type IRemoveProductVariationOptionMutation = { removeProductVariationOption: { _id: string } }; - -export type ISmartContractStandardsQueryVariables = Exact<{ [key: string]: never; }>; - +export type ISmartContractStandardsQueryVariables = Exact<{ + [key: string]: never; +}>; -export type ISmartContractStandardsQuery = { smartContractStandards?: { options?: Array<{ value: string, label: string }> | null } | null }; +export type ISmartContractStandardsQuery = { + smartContractStandards?: { + options?: Array<{ value: string; label: string }> | null; + } | null; +}; export type ITranslatedProductMediaTextsQueryVariables = Exact<{ productMediaId: Scalars['ID']['input']; }>; - -export type ITranslatedProductMediaTextsQuery = { translatedProductMediaTexts: Array<{ _id: string, locale: any, title?: string | null, subtitle?: string | null }> }; +export type ITranslatedProductMediaTextsQuery = { + translatedProductMediaTexts: Array<{ + _id: string; + locale: any; + title?: string | null; + subtitle?: string | null; + }>; +}; export type ITranslatedProductTextsQueryVariables = Exact<{ productId: Scalars['ID']['input']; }>; - -export type ITranslatedProductTextsQuery = { translatedProductTexts: Array<{ _id: string, locale: any, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null }> }; +export type ITranslatedProductTextsQuery = { + translatedProductTexts: Array<{ + _id: string; + locale: any; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + vendor?: string | null; + brand?: string | null; + labels?: Array | null; + }>; +}; export type IUnpublishProductMutationVariables = Exact<{ productId: Scalars['ID']['input']; }>; - -export type IUnpublishProductMutation = { unpublishProduct: - | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - > } - | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - > } - | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - > } - | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - > } - | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - > } - }; +export type IUnpublishProductMutation = { + unpublishProduct: + | { + _id: string; + sequence: number; + status: IProductStatus; + created?: any | null; + tags?: Array | null; + updated?: any | null; + published?: any | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + reviews: Array<{ + _id: string; + created?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + voteCount?: number | null; + author: { _id: string; username?: string | null; isGuest: boolean }; + ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; + }>; + siblings: Array< + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + >; + } + | { + _id: string; + sequence: number; + status: IProductStatus; + created?: any | null; + tags?: Array | null; + updated?: any | null; + published?: any | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + reviews: Array<{ + _id: string; + created?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + voteCount?: number | null; + author: { _id: string; username?: string | null; isGuest: boolean }; + ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; + }>; + siblings: Array< + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + >; + } + | { + _id: string; + sequence: number; + status: IProductStatus; + created?: any | null; + tags?: Array | null; + updated?: any | null; + published?: any | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + reviews: Array<{ + _id: string; + created?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + voteCount?: number | null; + author: { _id: string; username?: string | null; isGuest: boolean }; + ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; + }>; + siblings: Array< + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + >; + } + | { + _id: string; + sequence: number; + status: IProductStatus; + created?: any | null; + tags?: Array | null; + updated?: any | null; + published?: any | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + reviews: Array<{ + _id: string; + created?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + voteCount?: number | null; + author: { _id: string; username?: string | null; isGuest: boolean }; + ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; + }>; + siblings: Array< + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + >; + } + | { + _id: string; + sequence: number; + status: IProductStatus; + created?: any | null; + tags?: Array | null; + updated?: any | null; + published?: any | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + reviews: Array<{ + _id: string; + created?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + voteCount?: number | null; + author: { _id: string; username?: string | null; isGuest: boolean }; + ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; + }>; + siblings: Array< + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + >; + }; +}; export type IUpdateProductMutationVariables = Exact<{ productId: Scalars['ID']['input']; product: IUpdateProductInput; }>; - -export type IUpdateProductMutation = { updateProduct?: - | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - > } - | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - > } - | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - > } - | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - > } - | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - > } - | null }; +export type IUpdateProductMutation = { + updateProduct?: + | { + _id: string; + sequence: number; + status: IProductStatus; + created?: any | null; + tags?: Array | null; + updated?: any | null; + published?: any | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + reviews: Array<{ + _id: string; + created?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + voteCount?: number | null; + author: { _id: string; username?: string | null; isGuest: boolean }; + ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; + }>; + siblings: Array< + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + >; + } + | { + _id: string; + sequence: number; + status: IProductStatus; + created?: any | null; + tags?: Array | null; + updated?: any | null; + published?: any | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + reviews: Array<{ + _id: string; + created?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + voteCount?: number | null; + author: { _id: string; username?: string | null; isGuest: boolean }; + ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; + }>; + siblings: Array< + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + >; + } + | { + _id: string; + sequence: number; + status: IProductStatus; + created?: any | null; + tags?: Array | null; + updated?: any | null; + published?: any | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + reviews: Array<{ + _id: string; + created?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + voteCount?: number | null; + author: { _id: string; username?: string | null; isGuest: boolean }; + ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; + }>; + siblings: Array< + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + >; + } + | { + _id: string; + sequence: number; + status: IProductStatus; + created?: any | null; + tags?: Array | null; + updated?: any | null; + published?: any | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + reviews: Array<{ + _id: string; + created?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + voteCount?: number | null; + author: { _id: string; username?: string | null; isGuest: boolean }; + ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; + }>; + siblings: Array< + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + >; + } + | { + _id: string; + sequence: number; + status: IProductStatus; + created?: any | null; + tags?: Array | null; + updated?: any | null; + published?: any | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + reviews: Array<{ + _id: string; + created?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + voteCount?: number | null; + author: { _id: string; username?: string | null; isGuest: boolean }; + ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; + }>; + siblings: Array< + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + >; + } + | null; +}; export type IUpdateProductCommerceMutationVariables = Exact<{ productId: Scalars['ID']['input']; commerce: IUpdateProductCommerceInput; }>; - -export type IUpdateProductCommerceMutation = { updateProductCommerce?: - | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - > } - | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - > } - | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - > } - | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - > } - | { _id: string, sequence: number, status: IProductStatus, created?: any | null, tags?: Array | null, updated?: any | null, published?: any | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }>, reviews: Array<{ _id: string, created?: any | null, rating?: number | null, title?: string | null, review?: string | null, voteCount?: number | null, author: { _id: string, username?: string | null, isGuest: boolean }, ownVotes: Array<{ type: IProductReviewVoteType, timestamp: any }> }>, siblings: Array< - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - | { _id: string, media: Array<{ _id: string, file?: { _id: string, url?: string | null } | null }> } - > } - | null }; +export type IUpdateProductCommerceMutation = { + updateProductCommerce?: + | { + _id: string; + sequence: number; + status: IProductStatus; + created?: any | null; + tags?: Array | null; + updated?: any | null; + published?: any | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + reviews: Array<{ + _id: string; + created?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + voteCount?: number | null; + author: { _id: string; username?: string | null; isGuest: boolean }; + ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; + }>; + siblings: Array< + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + >; + } + | { + _id: string; + sequence: number; + status: IProductStatus; + created?: any | null; + tags?: Array | null; + updated?: any | null; + published?: any | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + reviews: Array<{ + _id: string; + created?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + voteCount?: number | null; + author: { _id: string; username?: string | null; isGuest: boolean }; + ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; + }>; + siblings: Array< + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + >; + } + | { + _id: string; + sequence: number; + status: IProductStatus; + created?: any | null; + tags?: Array | null; + updated?: any | null; + published?: any | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + reviews: Array<{ + _id: string; + created?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + voteCount?: number | null; + author: { _id: string; username?: string | null; isGuest: boolean }; + ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; + }>; + siblings: Array< + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + >; + } + | { + _id: string; + sequence: number; + status: IProductStatus; + created?: any | null; + tags?: Array | null; + updated?: any | null; + published?: any | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + reviews: Array<{ + _id: string; + created?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + voteCount?: number | null; + author: { _id: string; username?: string | null; isGuest: boolean }; + ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; + }>; + siblings: Array< + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + >; + } + | { + _id: string; + sequence: number; + status: IProductStatus; + created?: any | null; + tags?: Array | null; + updated?: any | null; + published?: any | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + reviews: Array<{ + _id: string; + created?: any | null; + rating?: number | null; + title?: string | null; + review?: string | null; + voteCount?: number | null; + author: { _id: string; username?: string | null; isGuest: boolean }; + ownVotes: Array<{ type: IProductReviewVoteType; timestamp: any }>; + }>; + siblings: Array< + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + | { + _id: string; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null } | null; + }>; + } + >; + } + | null; +}; export type IUpdateProductMediaTextsMutationVariables = Exact<{ productMediaId: Scalars['ID']['input']; texts: Array; }>; - -export type IUpdateProductMediaTextsMutation = { updateProductMediaTexts: Array<{ _id: string, locale: any, title?: string | null, subtitle?: string | null }> }; +export type IUpdateProductMediaTextsMutation = { + updateProductMediaTexts: Array<{ + _id: string; + locale: any; + title?: string | null; + subtitle?: string | null; + }>; +}; export type IUpdateProductPlanMutationVariables = Exact<{ productId: Scalars['ID']['input']; plan: IUpdateProductPlanInput; }>; - -export type IUpdateProductPlanMutation = { updateProductPlan?: +export type IUpdateProductPlanMutation = { + updateProductPlan?: | { _id: string } | { _id: string } | { _id: string } | { _id: string } | { _id: string } - | null }; + | null; +}; export type IUpdateProductSupplyMutationVariables = Exact<{ productId: Scalars['ID']['input']; supply: IUpdateProductSupplyInput; }>; - -export type IUpdateProductSupplyMutation = { updateProductSupply?: +export type IUpdateProductSupplyMutation = { + updateProductSupply?: | { _id: string } | { _id: string } | { _id: string } - | { _id: string, dimensions?: { weight?: number | null, length?: number | null, width?: number | null, height?: number | null } | null } + | { + _id: string; + dimensions?: { + weight?: number | null; + length?: number | null; + width?: number | null; + height?: number | null; + } | null; + } | { _id: string } - | null }; + | null; +}; export type IUpdateProductTextsMutationVariables = Exact<{ productId: Scalars['ID']['input']; texts: Array; }>; - -export type IUpdateProductTextsMutation = { updateProductTexts: Array<{ _id: string, locale: any, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null }> }; +export type IUpdateProductTextsMutation = { + updateProductTexts: Array<{ + _id: string; + locale: any; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + vendor?: string | null; + brand?: string | null; + labels?: Array | null; + }>; +}; export type IUpdateProductTokenizationMutationVariables = Exact<{ productId: Scalars['ID']['input']; tokenization: IUpdateProductTokenizationInput; }>; - -export type IUpdateProductTokenizationMutation = { updateProductTokenization?: { _id: string } | null }; +export type IUpdateProductTokenizationMutation = { + updateProductTokenization?: { _id: string } | null; +}; export type IUpdateProductVariationTextsMutationVariables = Exact<{ productVariationId: Scalars['ID']['input']; @@ -6673,84 +14889,504 @@ export type IUpdateProductVariationTextsMutationVariables = Exact<{ texts: Array; }>; - -export type IUpdateProductVariationTextsMutation = { updateProductVariationTexts: Array<{ _id: string }> }; +export type IUpdateProductVariationTextsMutation = { + updateProductVariationTexts: Array<{ _id: string }>; +}; export type IUpdateProductWarehousingMutationVariables = Exact<{ productId: Scalars['ID']['input']; warehousing: IUpdateProductWarehousingInput; }>; - -export type IUpdateProductWarehousingMutation = { updateProductWarehousing?: +export type IUpdateProductWarehousingMutation = { + updateProductWarehousing?: | { _id: string } | { _id: string } | { _id: string } - | { sku?: string | null, baseUnit?: string | null, _id: string } + | { sku?: string | null; baseUnit?: string | null; _id: string } | { _id: string } - | null }; + | null; +}; export type IUserTokensQueryVariables = Exact<{ userId: Scalars['ID']['input']; forceLocale?: InputMaybe; }>; - -export type IUserTokensQuery = { user?: { _id: string, web3Addresses: Array<{ address: string, nonce?: number | null, verified: boolean }>, tokens: Array<{ _id: string, walletAddress?: string | null, status: ITokenExportStatus, quantity: number, contractAddress?: string | null, chainId?: string | null, tokenSerialNumber?: string | null, invalidatedDate?: any | null, expiryDate?: any | null, ercMetadata?: any | null, accessKey: string, isInvalidateable: boolean, isCanceled?: boolean | null, product: { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, simulatedPrice?: { amount: number, currencyCode: string } | null, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> } }> } | null }; - -export type IQuotationDetailFragment = { _id: string, status: IQuotationStatus, created: any, expires?: any | null, updated?: any | null, isExpired?: boolean | null, quotationNumber?: string | null, fulfilled?: any | null, rejected?: any | null, user: { _id: string, username?: string | null, name: string, avatar?: { _id: string, url?: string | null } | null, primaryEmail?: { verified: boolean, address: string } | null }, configuration?: Array<{ key: string, value: string }> | null, country?: { _id: string, isoCode?: string | null, flagEmoji?: string | null, name?: string | null } | null, currency?: { _id: string, isoCode: string, isActive?: boolean | null } | null, product: - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - }; - - -export type IQuotationDetailFragmentVariables = Exact<{ [key: string]: never; }>; - -export type IQuotationFragment = { _id: string, status: IQuotationStatus, created: any, expires?: any | null, updated?: any | null, isExpired?: boolean | null, quotationNumber?: string | null, fulfilled?: any | null, rejected?: any | null, user: { _id: string, username?: string | null, name: string, avatar?: { _id: string, url?: string | null } | null, primaryEmail?: { verified: boolean, address: string } | null }, product: - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - , currency?: { _id: string, contractAddress?: string | null, decimals?: number | null, isoCode: string } | null }; - - -export type IQuotationFragmentVariables = Exact<{ [key: string]: never; }>; +export type IUserTokensQuery = { + user?: { + _id: string; + web3Addresses: Array<{ + address: string; + nonce?: number | null; + verified: boolean; + }>; + tokens: Array<{ + _id: string; + walletAddress?: string | null; + status: ITokenExportStatus; + quantity: number; + contractAddress?: string | null; + chainId?: string | null; + tokenSerialNumber?: string | null; + invalidatedDate?: any | null; + expiryDate?: any | null; + ercMetadata?: any | null; + accessKey: string; + isInvalidateable: boolean; + isCanceled?: boolean | null; + product: { + _id: string; + sequence: number; + status: IProductStatus; + tags?: Array | null; + updated?: any | null; + published?: any | null; + simulatedPrice?: { amount: number; currencyCode: string } | null; + texts?: { + _id: string; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + vendor?: string | null; + brand?: string | null; + labels?: Array | null; + locale: any; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + }; + }>; + } | null; +}; + +export type IQuotationDetailFragment = { + _id: string; + status: IQuotationStatus; + created: any; + expires?: any | null; + updated?: any | null; + isExpired?: boolean | null; + quotationNumber?: string | null; + fulfilled?: any | null; + rejected?: any | null; + user: { + _id: string; + username?: string | null; + name: string; + avatar?: { _id: string; url?: string | null } | null; + primaryEmail?: { verified: boolean; address: string } | null; + }; + configuration?: Array<{ key: string; value: string }> | null; + country?: { + _id: string; + isoCode?: string | null; + flagEmoji?: string | null; + name?: string | null; + } | null; + currency?: { _id: string; isoCode: string; isActive?: boolean | null } | null; + product: + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + }; +}; + +export type IQuotationDetailFragmentVariables = Exact<{ [key: string]: never }>; + +export type IQuotationFragment = { + _id: string; + status: IQuotationStatus; + created: any; + expires?: any | null; + updated?: any | null; + isExpired?: boolean | null; + quotationNumber?: string | null; + fulfilled?: any | null; + rejected?: any | null; + user: { + _id: string; + username?: string | null; + name: string; + avatar?: { _id: string; url?: string | null } | null; + primaryEmail?: { verified: boolean; address: string } | null; + }; + product: + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + }; + currency?: { + _id: string; + contractAddress?: string | null; + decimals?: number | null; + isoCode: string; + } | null; +}; + +export type IQuotationFragmentVariables = Exact<{ [key: string]: never }>; export type IMakeQuotationProposalMutationVariables = Exact<{ quotationId: Scalars['ID']['input']; quotationContext?: InputMaybe; }>; - -export type IMakeQuotationProposalMutation = { makeQuotationProposal: { _id: string, status: IQuotationStatus, created: any, expires?: any | null, updated?: any | null, isExpired?: boolean | null, quotationNumber?: string | null, fulfilled?: any | null, rejected?: any | null, user: { _id: string, username?: string | null, name: string, avatar?: { _id: string, url?: string | null } | null, primaryEmail?: { verified: boolean, address: string } | null }, configuration?: Array<{ key: string, value: string }> | null, country?: { _id: string, isoCode?: string | null, flagEmoji?: string | null, name?: string | null } | null, currency?: { _id: string, isoCode: string, isActive?: boolean | null } | null, product: - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - } }; +export type IMakeQuotationProposalMutation = { + makeQuotationProposal: { + _id: string; + status: IQuotationStatus; + created: any; + expires?: any | null; + updated?: any | null; + isExpired?: boolean | null; + quotationNumber?: string | null; + fulfilled?: any | null; + rejected?: any | null; + user: { + _id: string; + username?: string | null; + name: string; + avatar?: { _id: string; url?: string | null } | null; + primaryEmail?: { verified: boolean; address: string } | null; + }; + configuration?: Array<{ key: string; value: string }> | null; + country?: { + _id: string; + isoCode?: string | null; + flagEmoji?: string | null; + name?: string | null; + } | null; + currency?: { + _id: string; + isoCode: string; + isActive?: boolean | null; + } | null; + product: + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + }; + }; +}; export type IQuotationQueryVariables = Exact<{ quotationId: Scalars['ID']['input']; }>; - -export type IQuotationQuery = { quotationsCount: number, quotation?: { _id: string, status: IQuotationStatus, created: any, expires?: any | null, updated?: any | null, isExpired?: boolean | null, quotationNumber?: string | null, fulfilled?: any | null, rejected?: any | null, user: { _id: string, username?: string | null, name: string, avatar?: { _id: string, url?: string | null } | null, primaryEmail?: { verified: boolean, address: string } | null }, configuration?: Array<{ key: string, value: string }> | null, country?: { _id: string, isoCode?: string | null, flagEmoji?: string | null, name?: string | null } | null, currency?: { _id: string, isoCode: string, isActive?: boolean | null } | null, product: - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - } | null }; - -export type IQuotationStatusQueryVariables = Exact<{ [key: string]: never; }>; - - -export type IQuotationStatusQuery = { quotationStatusType?: { options?: Array<{ value: string, label?: string | null }> | null } | null }; +export type IQuotationQuery = { + quotationsCount: number; + quotation?: { + _id: string; + status: IQuotationStatus; + created: any; + expires?: any | null; + updated?: any | null; + isExpired?: boolean | null; + quotationNumber?: string | null; + fulfilled?: any | null; + rejected?: any | null; + user: { + _id: string; + username?: string | null; + name: string; + avatar?: { _id: string; url?: string | null } | null; + primaryEmail?: { verified: boolean; address: string } | null; + }; + configuration?: Array<{ key: string; value: string }> | null; + country?: { + _id: string; + isoCode?: string | null; + flagEmoji?: string | null; + name?: string | null; + } | null; + currency?: { + _id: string; + isoCode: string; + isActive?: boolean | null; + } | null; + product: + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + }; + } | null; +}; + +export type IQuotationStatusQueryVariables = Exact<{ [key: string]: never }>; + +export type IQuotationStatusQuery = { + quotationStatusType?: { + options?: Array<{ value: string; label?: string | null }> | null; + } | null; +}; export type IQuotationsQueryVariables = Exact<{ limit?: InputMaybe; @@ -6759,123 +15395,603 @@ export type IQuotationsQueryVariables = Exact<{ sort?: InputMaybe>; }>; - -export type IQuotationsQuery = { quotationsCount: number, quotations: Array<{ _id: string, status: IQuotationStatus, created: any, expires?: any | null, updated?: any | null, isExpired?: boolean | null, quotationNumber?: string | null, fulfilled?: any | null, rejected?: any | null, user: { _id: string, username?: string | null, name: string, avatar?: { _id: string, url?: string | null } | null, primaryEmail?: { verified: boolean, address: string } | null }, product: - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - , currency?: { _id: string, contractAddress?: string | null, decimals?: number | null, isoCode: string } | null }> }; +export type IQuotationsQuery = { + quotationsCount: number; + quotations: Array<{ + _id: string; + status: IQuotationStatus; + created: any; + expires?: any | null; + updated?: any | null; + isExpired?: boolean | null; + quotationNumber?: string | null; + fulfilled?: any | null; + rejected?: any | null; + user: { + _id: string; + username?: string | null; + name: string; + avatar?: { _id: string; url?: string | null } | null; + primaryEmail?: { verified: boolean; address: string } | null; + }; + product: + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + }; + currency?: { + _id: string; + contractAddress?: string | null; + decimals?: number | null; + isoCode: string; + } | null; + }>; +}; export type IRejectQuotationMutationVariables = Exact<{ quotationId: Scalars['ID']['input']; quotationContext?: InputMaybe; }>; - -export type IRejectQuotationMutation = { rejectQuotation: { _id: string, status: IQuotationStatus, created: any, expires?: any | null, updated?: any | null, isExpired?: boolean | null, quotationNumber?: string | null, fulfilled?: any | null, rejected?: any | null, user: { _id: string, username?: string | null, name: string, avatar?: { _id: string, url?: string | null } | null, primaryEmail?: { verified: boolean, address: string } | null }, configuration?: Array<{ key: string, value: string }> | null, country?: { _id: string, isoCode?: string | null, flagEmoji?: string | null, name?: string | null } | null, currency?: { _id: string, isoCode: string, isActive?: boolean | null } | null, product: - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - } }; +export type IRejectQuotationMutation = { + rejectQuotation: { + _id: string; + status: IQuotationStatus; + created: any; + expires?: any | null; + updated?: any | null; + isExpired?: boolean | null; + quotationNumber?: string | null; + fulfilled?: any | null; + rejected?: any | null; + user: { + _id: string; + username?: string | null; + name: string; + avatar?: { _id: string; url?: string | null } | null; + primaryEmail?: { verified: boolean; address: string } | null; + }; + configuration?: Array<{ key: string; value: string }> | null; + country?: { + _id: string; + isoCode?: string | null; + flagEmoji?: string | null; + name?: string | null; + } | null; + currency?: { + _id: string; + isoCode: string; + isActive?: boolean | null; + } | null; + product: + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + }; + }; +}; export type IUserQuotationsQueryVariables = Exact<{ userId: Scalars['ID']['input']; queryString?: InputMaybe; }>; - -export type IUserQuotationsQuery = { user?: { _id: string, quotations: Array<{ _id: string, status: IQuotationStatus, created: any, expires?: any | null, updated?: any | null, isExpired?: boolean | null, quotationNumber?: string | null, fulfilled?: any | null, rejected?: any | null, user: { _id: string, username?: string | null, name: string, avatar?: { _id: string, url?: string | null } | null, primaryEmail?: { verified: boolean, address: string } | null }, product: - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - , currency?: { _id: string, contractAddress?: string | null, decimals?: number | null, isoCode: string } | null }> } | null }; +export type IUserQuotationsQuery = { + user?: { + _id: string; + quotations: Array<{ + _id: string; + status: IQuotationStatus; + created: any; + expires?: any | null; + updated?: any | null; + isExpired?: boolean | null; + quotationNumber?: string | null; + fulfilled?: any | null; + rejected?: any | null; + user: { + _id: string; + username?: string | null; + name: string; + avatar?: { _id: string; url?: string | null } | null; + primaryEmail?: { verified: boolean; address: string } | null; + }; + product: + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + }; + currency?: { + _id: string; + contractAddress?: string | null; + decimals?: number | null; + isoCode: string; + } | null; + }>; + } | null; +}; export type IVerifyQuotationMutationVariables = Exact<{ quotationId: Scalars['ID']['input']; quotationContext?: InputMaybe; }>; - -export type IVerifyQuotationMutation = { verifyQuotation: { _id: string, status: IQuotationStatus, created: any, expires?: any | null, updated?: any | null, isExpired?: boolean | null, quotationNumber?: string | null, fulfilled?: any | null, rejected?: any | null, user: { _id: string, username?: string | null, name: string, avatar?: { _id: string, url?: string | null } | null, primaryEmail?: { verified: boolean, address: string } | null }, configuration?: Array<{ key: string, value: string }> | null, country?: { _id: string, isoCode?: string | null, flagEmoji?: string | null, name?: string | null } | null, currency?: { _id: string, isoCode: string, isActive?: boolean | null } | null, product: - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - | { _id: string, texts?: { _id: string, slug?: string | null, subtitle?: string | null, title?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, type: string, url?: string | null } | null }> } - } }; - -export type IEventProductFragment = { _id: string, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, tokensCount: number, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null, name: string } | null }>, contractConfiguration?: { ercMetadataProperties?: any | null, supply: number } | null, simulatedStocks?: Array<{ quantity?: number | null }> | null }; - - -export type IEventProductFragmentVariables = Exact<{ [key: string]: never; }>; +export type IVerifyQuotationMutation = { + verifyQuotation: { + _id: string; + status: IQuotationStatus; + created: any; + expires?: any | null; + updated?: any | null; + isExpired?: boolean | null; + quotationNumber?: string | null; + fulfilled?: any | null; + rejected?: any | null; + user: { + _id: string; + username?: string | null; + name: string; + avatar?: { _id: string; url?: string | null } | null; + primaryEmail?: { verified: boolean; address: string } | null; + }; + configuration?: Array<{ key: string; value: string }> | null; + country?: { + _id: string; + isoCode?: string | null; + flagEmoji?: string | null; + name?: string | null; + } | null; + currency?: { + _id: string; + isoCode: string; + isActive?: boolean | null; + } | null; + product: + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + } + | { + _id: string; + texts?: { + _id: string; + slug?: string | null; + subtitle?: string | null; + title?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; type: string; url?: string | null } | null; + }>; + }; + }; +}; export type ICancelEventMutationVariables = Exact<{ productId: Scalars['ID']['input']; }>; - export type ICancelEventMutation = { cancelEvent: number }; export type ICancelTicketMutationVariables = Exact<{ tokenId: Scalars['ID']['input']; }>; +export type ICancelTicketMutation = { + cancelTicket: { + _id: string; + isCanceled?: boolean | null; + invalidatedDate?: any | null; + isInvalidateable: boolean; + tokenSerialNumber?: string | null; + }; +}; -export type ICancelTicketMutation = { cancelTicket: { _id: string, isCanceled?: boolean | null, invalidatedDate?: any | null, isInvalidateable: boolean, tokenSerialNumber?: string | null } }; - -export type IEventProductQueryVariables = Exact<{ - slug: Scalars['String']['input']; - forceLocale?: InputMaybe; -}>; - - -export type IEventProductQuery = { product?: - | { _id: string, status: IProductStatus, tags?: Array | null } - | { _id: string, status: IProductStatus, tags?: Array | null } - | { _id: string, status: IProductStatus, tags?: Array | null } - | { _id: string, status: IProductStatus, tags?: Array | null } - | { tokensCount: number, _id: string, status: IProductStatus, tags?: Array | null, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null, name: string } | null }>, contractConfiguration?: { ercMetadataProperties?: any | null, supply: number } | null, simulatedStocks?: Array<{ quantity?: number | null }> | null, tokens: Array<{ _id: string, tokenSerialNumber?: string | null, isCanceled?: boolean | null, invalidatedDate?: any | null, isInvalidateable: boolean, quantity: number, status: ITokenExportStatus, walletAddress?: string | null, user?: { _id: string, username?: string | null, isGuest: boolean, primaryEmail?: { address: string, verified: boolean } | null, avatar?: { _id: string, url?: string | null } | null, profile?: { displayName?: string | null, address?: { firstName?: string | null, lastName?: string | null } | null } | null, lastContact?: { emailAddress?: string | null, telNumber?: string | null } | null } | null }> } - | null }; - -export type IEventProductsQueryVariables = Exact<{ +export type ITicketEventsQueryVariables = Exact<{ queryString?: InputMaybe; - tags?: InputMaybe>; - type?: InputMaybe; limit?: InputMaybe; offset?: InputMaybe; includeDrafts?: InputMaybe; forceLocale?: InputMaybe; }>; - -export type IEventProductsQuery = { productsCount: number, products: Array< - | { _id: string, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null } - | { _id: string, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null } - | { _id: string, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null } - | { _id: string, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null } - | { tokensCount: number, _id: string, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null } | null, media: Array<{ _id: string, file?: { _id: string, url?: string | null, name: string } | null }>, contractConfiguration?: { ercMetadataProperties?: any | null, supply: number } | null, simulatedStocks?: Array<{ quantity?: number | null }> | null } - > }; +export type ITicketEventsQuery = { + ticketEventsCount: number; + ticketEvents: Array< + | { + _id: string; + status: IProductStatus; + tags?: Array | null; + updated?: any | null; + published?: any | null; + } + | { + _id: string; + status: IProductStatus; + tags?: Array | null; + updated?: any | null; + published?: any | null; + } + | { + _id: string; + status: IProductStatus; + tags?: Array | null; + updated?: any | null; + published?: any | null; + } + | { + _id: string; + status: IProductStatus; + tags?: Array | null; + updated?: any | null; + published?: any | null; + } + | { + tokensCount: number; + _id: string; + status: IProductStatus; + tags?: Array | null; + updated?: any | null; + published?: any | null; + texts?: { + _id: string; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + } | null; + media: Array<{ + _id: string; + file?: { _id: string; url?: string | null; name: string } | null; + }>; + contractConfiguration?: { + ercMetadataProperties?: any | null; + supply: number; + } | null; + simulatedStocks?: Array<{ quantity?: number | null }> | null; + } + >; +}; export type IInvalidateTokenMutationVariables = Exact<{ tokenId: Scalars['ID']['input']; }>; - -export type IInvalidateTokenMutation = { invalidateToken: { _id: string, walletAddress?: string | null, status: ITokenExportStatus, quantity: number, contractAddress?: string | null, chainId?: string | null, tokenSerialNumber?: string | null, invalidatedDate?: any | null, expiryDate?: any | null, ercMetadata?: any | null, accessKey: string, isInvalidateable: boolean, isCanceled?: boolean | null } }; +export type IInvalidateTokenMutation = { + invalidateToken: { + _id: string; + walletAddress?: string | null; + status: ITokenExportStatus; + quantity: number; + contractAddress?: string | null; + chainId?: string | null; + tokenSerialNumber?: string | null; + invalidatedDate?: any | null; + expiryDate?: any | null; + ercMetadata?: any | null; + accessKey: string; + isInvalidateable: boolean; + isCanceled?: boolean | null; + }; +}; export type ITokenQueryVariables = Exact<{ tokenId: Scalars['ID']['input']; forceLocale?: InputMaybe; }>; - -export type ITokenQuery = { token?: { _id: string, walletAddress?: string | null, status: ITokenExportStatus, quantity: number, contractAddress?: string | null, chainId?: string | null, tokenSerialNumber?: string | null, invalidatedDate?: any | null, expiryDate?: any | null, ercMetadata?: any | null, accessKey: string, isInvalidateable: boolean, isCanceled?: boolean | null, product: { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, simulatedPrice?: { amount: number, currencyCode: string } | null, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> }, user?: { _id: string, username?: string | null, isGuest: boolean, name: string, avatar?: { _id: string, url?: string | null } | null, primaryEmail?: { verified: boolean, address: string } | null, lastContact?: { telNumber?: string | null, emailAddress?: string | null } | null, profile?: { displayName?: string | null, address?: { firstName?: string | null, lastName?: string | null } | null } | null } | null } | null }; +export type ITokenQuery = { + token?: { + _id: string; + walletAddress?: string | null; + status: ITokenExportStatus; + quantity: number; + contractAddress?: string | null; + chainId?: string | null; + tokenSerialNumber?: string | null; + invalidatedDate?: any | null; + expiryDate?: any | null; + ercMetadata?: any | null; + accessKey: string; + isInvalidateable: boolean; + isCanceled?: boolean | null; + product: { + _id: string; + sequence: number; + status: IProductStatus; + tags?: Array | null; + updated?: any | null; + published?: any | null; + simulatedPrice?: { amount: number; currencyCode: string } | null; + texts?: { + _id: string; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + vendor?: string | null; + brand?: string | null; + labels?: Array | null; + locale: any; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + }; + user?: { + _id: string; + username?: string | null; + isGuest: boolean; + name: string; + avatar?: { _id: string; url?: string | null } | null; + primaryEmail?: { verified: boolean; address: string } | null; + lastContact?: { + telNumber?: string | null; + emailAddress?: string | null; + } | null; + profile?: { + displayName?: string | null; + address?: { + firstName?: string | null; + lastName?: string | null; + } | null; + } | null; + } | null; + } | null; +}; export type ITokensQueryVariables = Exact<{ queryString?: InputMaybe; @@ -6884,66 +16000,221 @@ export type ITokensQueryVariables = Exact<{ forceLocale?: InputMaybe; }>; - -export type ITokensQuery = { tokensCount: number, tokens: Array<{ _id: string, walletAddress?: string | null, status: ITokenExportStatus, quantity: number, contractAddress?: string | null, chainId?: string | null, tokenSerialNumber?: string | null, invalidatedDate?: any | null, expiryDate?: any | null, ercMetadata?: any | null, accessKey: string, isInvalidateable: boolean, isCanceled?: boolean | null, product: { _id: string, sequence: number, status: IProductStatus, tags?: Array | null, updated?: any | null, published?: any | null, simulatedPrice?: { amount: number, currencyCode: string } | null, texts?: { _id: string, slug?: string | null, title?: string | null, subtitle?: string | null, description?: string | null, vendor?: string | null, brand?: string | null, labels?: Array | null, locale: any } | null, media: Array<{ _id: string, tags?: Array | null, file?: { _id: string, url?: string | null } | null }> }, user?: { _id: string, username?: string | null, isGuest: boolean, primaryEmail?: { address: string, verified: boolean } | null, avatar?: { _id: string, url?: string | null } | null, profile?: { displayName?: string | null, address?: { firstName?: string | null, lastName?: string | null } | null } | null } | null }> }; - -export type IWarehousingProviderFragment = { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, isActive?: boolean | null, type?: IWarehousingProviderType | null, configuration?: any | null, configurationError?: IWarehousingProviderError | null, interface?: { _id: string, label?: string | null, version?: string | null } | null }; - - -export type IWarehousingProviderFragmentVariables = Exact<{ [key: string]: never; }>; +export type ITokensQuery = { + tokensCount: number; + tokens: Array<{ + _id: string; + walletAddress?: string | null; + status: ITokenExportStatus; + quantity: number; + contractAddress?: string | null; + chainId?: string | null; + tokenSerialNumber?: string | null; + invalidatedDate?: any | null; + expiryDate?: any | null; + ercMetadata?: any | null; + accessKey: string; + isInvalidateable: boolean; + isCanceled?: boolean | null; + product: { + _id: string; + sequence: number; + status: IProductStatus; + tags?: Array | null; + updated?: any | null; + published?: any | null; + simulatedPrice?: { amount: number; currencyCode: string } | null; + texts?: { + _id: string; + slug?: string | null; + title?: string | null; + subtitle?: string | null; + description?: string | null; + vendor?: string | null; + brand?: string | null; + labels?: Array | null; + locale: any; + } | null; + media: Array<{ + _id: string; + tags?: Array | null; + file?: { _id: string; url?: string | null } | null; + }>; + }; + user?: { + _id: string; + username?: string | null; + isGuest: boolean; + primaryEmail?: { address: string; verified: boolean } | null; + avatar?: { _id: string; url?: string | null } | null; + profile?: { + displayName?: string | null; + address?: { + firstName?: string | null; + lastName?: string | null; + } | null; + } | null; + } | null; + }>; +}; + +export type IWarehousingProviderFragment = { + _id: string; + created?: any | null; + updated?: any | null; + deleted?: any | null; + isActive?: boolean | null; + type?: IWarehousingProviderType | null; + configuration?: any | null; + configurationError?: IWarehousingProviderError | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; +}; + +export type IWarehousingProviderFragmentVariables = Exact<{ + [key: string]: never; +}>; export type ICreateWarehousingProviderMutationVariables = Exact<{ warehousingProvider: ICreateWarehousingProviderInput; }>; - -export type ICreateWarehousingProviderMutation = { createWarehousingProvider: { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, isActive?: boolean | null, type?: IWarehousingProviderType | null, configuration?: any | null, configurationError?: IWarehousingProviderError | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }; +export type ICreateWarehousingProviderMutation = { + createWarehousingProvider: { + _id: string; + created?: any | null; + updated?: any | null; + deleted?: any | null; + isActive?: boolean | null; + type?: IWarehousingProviderType | null; + configuration?: any | null; + configurationError?: IWarehousingProviderError | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + }; +}; export type IRemoveWarehousingProviderMutationVariables = Exact<{ warehousingProviderId: Scalars['ID']['input']; }>; - -export type IRemoveWarehousingProviderMutation = { removeWarehousingProvider: { _id: string } }; +export type IRemoveWarehousingProviderMutation = { + removeWarehousingProvider: { _id: string }; +}; export type IUpdateWarehousingProviderMutationVariables = Exact<{ warehousingProvider: IUpdateProviderInput; warehousingProviderId: Scalars['ID']['input']; }>; - -export type IUpdateWarehousingProviderMutation = { updateWarehousingProvider: { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, isActive?: boolean | null, type?: IWarehousingProviderType | null, configuration?: any | null, configurationError?: IWarehousingProviderError | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } }; +export type IUpdateWarehousingProviderMutation = { + updateWarehousingProvider: { + _id: string; + created?: any | null; + updated?: any | null; + deleted?: any | null; + isActive?: boolean | null; + type?: IWarehousingProviderType | null; + configuration?: any | null; + configurationError?: IWarehousingProviderError | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + }; +}; export type IWarehousingInterfacesQueryVariables = Exact<{ providerType?: InputMaybe; }>; - -export type IWarehousingInterfacesQuery = { warehousingInterfaces: Array<{ _id: string, label?: string | null, value: string }> }; +export type IWarehousingInterfacesQuery = { + warehousingInterfaces: Array<{ + _id: string; + label?: string | null; + value: string; + }>; +}; export type IWarehousingProviderQueryVariables = Exact<{ warehousingProviderId: Scalars['ID']['input']; }>; +export type IWarehousingProviderQuery = { + warehousingProvider?: { + _id: string; + created?: any | null; + updated?: any | null; + deleted?: any | null; + isActive?: boolean | null; + type?: IWarehousingProviderType | null; + configuration?: any | null; + configurationError?: IWarehousingProviderError | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + } | null; +}; -export type IWarehousingProviderQuery = { warehousingProvider?: { _id: string, created?: any | null, updated?: any | null, deleted?: any | null, isActive?: boolean | null, type?: IWarehousingProviderType | null, configuration?: any | null, configurationError?: IWarehousingProviderError | null, interface?: { _id: string, label?: string | null, version?: string | null } | null } | null }; - -export type IWarehousingProvidersTypeQueryVariables = Exact<{ [key: string]: never; }>; - +export type IWarehousingProvidersTypeQueryVariables = Exact<{ + [key: string]: never; +}>; -export type IWarehousingProvidersTypeQuery = { warehousingProviderType?: { options?: Array<{ value: string, label?: string | null }> | null } | null }; +export type IWarehousingProvidersTypeQuery = { + warehousingProviderType?: { + options?: Array<{ value: string; label?: string | null }> | null; + } | null; +}; export type IWarehousingProvidersQueryVariables = Exact<{ type?: InputMaybe; }>; +export type IWarehousingProvidersQuery = { + warehousingProvidersCount: number; + warehousingProviders: Array<{ + _id: string; + created?: any | null; + updated?: any | null; + deleted?: any | null; + isActive?: boolean | null; + type?: IWarehousingProviderType | null; + configuration?: any | null; + configurationError?: IWarehousingProviderError | null; + interface?: { + _id: string; + label?: string | null; + version?: string | null; + } | null; + }>; +}; + +export type IWorkFragment = { + _id: string; + type: IWorkType; + scheduled?: any | null; + status: IWorkStatus; + started?: any | null; + success?: boolean | null; + finished?: any | null; + created: any; + deleted?: any | null; + retries: number; + input?: any | null; + result?: any | null; + original?: { _id: string; retries: number } | null; +}; -export type IWarehousingProvidersQuery = { warehousingProvidersCount: number, warehousingProviders: Array<{ _id: string, created?: any | null, updated?: any | null, deleted?: any | null, isActive?: boolean | null, type?: IWarehousingProviderType | null, configuration?: any | null, configurationError?: IWarehousingProviderError | null, interface?: { _id: string, label?: string | null, version?: string | null } | null }> }; - -export type IWorkFragment = { _id: string, type: IWorkType, scheduled?: any | null, status: IWorkStatus, started?: any | null, success?: boolean | null, finished?: any | null, created: any, deleted?: any | null, retries: number, input?: any | null, result?: any | null, original?: { _id: string, retries: number } | null }; - - -export type IWorkFragmentVariables = Exact<{ [key: string]: never; }>; +export type IWorkFragmentVariables = Exact<{ [key: string]: never }>; export type IActiveWorkTypesQueryVariables = Exact<{ [key: string]: never }>; @@ -6958,7 +16229,6 @@ export type IAddWorkMutationVariables = Exact<{ retries?: Scalars['Int']['input']; }>; - export type IAddWorkMutation = { addWork?: { _id: string } | null }; export type IAllocateWorkMutationVariables = Exact<{ @@ -6966,27 +16236,47 @@ export type IAllocateWorkMutationVariables = Exact<{ worker?: InputMaybe; }>; - export type IAllocateWorkMutation = { allocateWork?: { _id: string } | null }; -export type IWorkTypesQueryVariables = Exact<{ [key: string]: never; }>; +export type IWorkTypesQueryVariables = Exact<{ [key: string]: never }>; - -export type IWorkTypesQuery = { registeredWorkTypes?: { options?: Array<{ value: string, label: string }> | null } | null }; +export type IWorkTypesQuery = { + registeredWorkTypes?: { + options?: Array<{ value: string; label: string }> | null; + } | null; +}; export type IRemoveWorkMutationVariables = Exact<{ workId: Scalars['ID']['input']; }>; - export type IRemoveWorkMutation = { removeWork: { _id: string } }; export type IWorkQueryVariables = Exact<{ workId: Scalars['ID']['input']; }>; - -export type IWorkQuery = { work?: { error?: any | null, priority: number, worker?: string | null, timeout?: number | null, _id: string, type: IWorkType, scheduled?: any | null, status: IWorkStatus, started?: any | null, success?: boolean | null, finished?: any | null, created: any, deleted?: any | null, retries: number, input?: any | null, result?: any | null, original?: { _id: string, retries: number } | null } | null }; +export type IWorkQuery = { + work?: { + error?: any | null; + priority: number; + worker?: string | null; + timeout?: number | null; + _id: string; + type: IWorkType; + scheduled?: any | null; + status: IWorkStatus; + started?: any | null; + success?: boolean | null; + finished?: any | null; + created: any; + deleted?: any | null; + retries: number; + input?: any | null; + result?: any | null; + original?: { _id: string; retries: number } | null; + } | null; +}; export type IWorkQueueQueryVariables = Exact<{ queryString?: InputMaybe; @@ -6998,5 +16288,22 @@ export type IWorkQueueQueryVariables = Exact<{ sort?: InputMaybe>; }>; - -export type IWorkQueueQuery = { activeWorkTypes: Array, workQueueCount: number, workQueue: Array<{ _id: string, type: IWorkType, scheduled?: any | null, status: IWorkStatus, started?: any | null, success?: boolean | null, finished?: any | null, created: any, deleted?: any | null, retries: number, input?: any | null, result?: any | null, original?: { _id: string, retries: number } | null }> }; +export type IWorkQueueQuery = { + activeWorkTypes: Array; + workQueueCount: number; + workQueue: Array<{ + _id: string; + type: IWorkType; + scheduled?: any | null; + status: IWorkStatus; + started?: any | null; + success?: boolean | null; + finished?: any | null; + created: any; + deleted?: any | null; + retries: number; + input?: any | null; + result?: any | null; + original?: { _id: string; retries: number } | null; + }>; +}; diff --git a/admin-ui/src/modules/ticketing/components/TicketEventDetail.tsx b/admin-ui/src/modules/ticketing/components/TicketEventDetail.tsx index 413950db78..818cc1221e 100644 --- a/admin-ui/src/modules/ticketing/components/TicketEventDetail.tsx +++ b/admin-ui/src/modules/ticketing/components/TicketEventDetail.tsx @@ -22,15 +22,13 @@ const TicketEventDetail = ({ product }) => { const { cancelEvent } = useCancelEvent(); const { invalidateTicket } = useInvalidateTicket(); - const slot = - product?.contractConfiguration?.ercMetadataProperties?.slot; + const slot = product?.contractConfiguration?.ercMetadataProperties?.slot; const supply = product?.contractConfiguration?.supply || 0; const remaining = product?.simulatedStocks?.reduce((acc, cur) => acc + cur.quantity, 0) || 0; const sold = supply - remaining; - const activeTokens = - product?.tokens?.filter((t) => !t.isCanceled) || []; + const activeTokens = product?.tokens?.filter((t) => !t.isCanceled) || []; const redeemedTokens = activeTokens.filter((t) => t.invalidatedDate); const onCancelEvent = useCallback(async () => { @@ -64,39 +62,35 @@ const TicketEventDetail = ({ product }) => { ); }, [product?._id]); - const onCancelTicket = useCallback( - async (tokenId: string) => { - await setModal( - setModal('')} - message={formatMessage({ - id: 'cancel_ticket_confirmation', - defaultMessage: - 'Are you sure you want to cancel this ticket?', - })} - onOkClick={async () => { - setModal(''); - try { - await cancelTicket({ tokenId }); - toast.success( - formatMessage({ - id: 'ticket_cancelled', - defaultMessage: 'Ticket cancelled successfully', - }), - ); - } catch (e) { - toast.error(e.message); - } - }} - okText={formatMessage({ - id: 'cancel_ticket', - defaultMessage: 'Cancel Ticket', - })} - />, - ); - }, - [], - ); + const onCancelTicket = useCallback(async (tokenId: string) => { + await setModal( + setModal('')} + message={formatMessage({ + id: 'cancel_ticket_confirmation', + defaultMessage: 'Are you sure you want to cancel this ticket?', + })} + onOkClick={async () => { + setModal(''); + try { + await cancelTicket({ tokenId }); + toast.success( + formatMessage({ + id: 'ticket_cancelled', + defaultMessage: 'Ticket cancelled successfully', + }), + ); + } catch (e) { + toast.error(e.message); + } + }} + okText={formatMessage({ + id: 'cancel_ticket', + defaultMessage: 'Cancel Ticket', + })} + />, + ); + }, []); const onInvalidateTicket = useCallback(async (tokenId: string) => { try { @@ -111,7 +105,8 @@ const TicketEventDetail = ({ product }) => { toast.error( formatMessage({ id: 'ticket_redeem_error', - defaultMessage: 'Ticket already redeemed or not redeemable at this time', + defaultMessage: + 'Ticket already redeemed or not redeemable at this time', }), ); } diff --git a/admin-ui/src/modules/ticketing/components/TicketEventList.tsx b/admin-ui/src/modules/ticketing/components/TicketEventList.tsx index e5ef253edb..58047c1adb 100644 --- a/admin-ui/src/modules/ticketing/components/TicketEventList.tsx +++ b/admin-ui/src/modules/ticketing/components/TicketEventList.tsx @@ -8,7 +8,7 @@ const TicketEventList = ({ products }) => { return ( - {' '} + {formatMessage({ id: 'title', defaultMessage: 'Title' })} diff --git a/admin-ui/src/modules/ticketing/components/TicketEventListItem.tsx b/admin-ui/src/modules/ticketing/components/TicketEventListItem.tsx index 4ed5e1cfe2..766392f008 100644 --- a/admin-ui/src/modules/ticketing/components/TicketEventListItem.tsx +++ b/admin-ui/src/modules/ticketing/components/TicketEventListItem.tsx @@ -14,8 +14,7 @@ const EVENT_STATUSES = { const TicketEventListItem = ({ product }) => { const { formatDateTime } = useFormatDateTime(); - const slot = - product?.contractConfiguration?.ercMetadataProperties?.slot; + const slot = product?.contractConfiguration?.ercMetadataProperties?.slot; const supply = product?.contractConfiguration?.supply || 0; const remaining = diff --git a/admin-ui/src/modules/ticketing/hooks/useEventProducts.ts b/admin-ui/src/modules/ticketing/hooks/useEventProducts.ts index cacceaa440..a4f059b797 100644 --- a/admin-ui/src/modules/ticketing/hooks/useEventProducts.ts +++ b/admin-ui/src/modules/ticketing/hooks/useEventProducts.ts @@ -46,10 +46,7 @@ const TicketEventsQuery = gql` tokensCount } } - ticketEventsCount( - includeDrafts: $includeDrafts - queryString: $queryString - ) + ticketEventsCount(includeDrafts: $includeDrafts, queryString: $queryString) } `; diff --git a/admin-ui/src/pages/ticketing/TicketEventDetailPage.tsx b/admin-ui/src/pages/ticketing/TicketEventDetailPage.tsx index 7a57078ae5..4e398890bd 100644 --- a/admin-ui/src/pages/ticketing/TicketEventDetailPage.tsx +++ b/admin-ui/src/pages/ticketing/TicketEventDetailPage.tsx @@ -13,9 +13,7 @@ const TicketEventDetailPage = ({ slug }) => { return ( <> - +
{ title={formatMessage( { id: 'ticketing_page_title', - defaultMessage: - '{count, plural, one {# Event} other {# Events}}', + defaultMessage: '{count, plural, one {# Event} other {# Events}}', }, { count: productsCount }, )} @@ -79,11 +78,7 @@ const TicketingPage = () => { defaultSearchValue={queryString} > <> - {loading ? ( - - ) : ( - - )} + {loading ? : } {!loading && !products?.length && ( Promise; +} + +interface TicketingServices { + ticketing?: { + cancelTicketsForProduct: (productId: string) => Promise; + }; +} export default async function cancelEvent( root: never, @@ -15,22 +26,24 @@ export default async function cancelEvent( const product = await modules.products.findProduct({ productId }); if (!product) throw new ProductNotFoundError({ productId }); - // Use ticketing service if available - if ((services as any).ticketing?.cancelTicketsForProduct) { - return (services as any).ticketing.cancelTicketsForProduct(productId); + const passes = (modules as unknown as Record).passes as PassesModule | undefined; + if (!passes?.cancelTicket) { + throw new TicketingModuleNotFoundError({}); + } + + const ticketingServices = services as unknown as TicketingServices; + if (ticketingServices.ticketing?.cancelTicketsForProduct) { + return ticketingServices.ticketing.cancelTicketsForProduct(productId); } - // Fallback: cancel all tokens for the product manually + // Cancel all tokens for the product const tokensToCancel = await modules.warehousing.findTokens({ productId, 'meta.cancelled': null, }); for (const token of tokensToCancel) { - await modules.warehousing.invalidateToken(token._id); - if ((modules as any).passes?.cancelTicket) { - await (modules as any).passes.cancelTicket(token._id); - } + await passes.cancelTicket(token._id); } return tokensToCancel.length; diff --git a/packages/api/src/resolvers/mutations/warehousing/cancelTicket.ts b/packages/api/src/resolvers/mutations/warehousing/cancelTicket.ts index f5f2f1e2d5..2c3a91d852 100644 --- a/packages/api/src/resolvers/mutations/warehousing/cancelTicket.ts +++ b/packages/api/src/resolvers/mutations/warehousing/cancelTicket.ts @@ -1,6 +1,11 @@ import type { Context } from '../../../context.ts'; +import type { TokenSurrogate } from '@unchainedshop/core-warehousing'; import { log } from '@unchainedshop/logger'; -import { InvalidIdError, TokenNotFoundError } from '../../../errors.ts'; +import { InvalidIdError, TokenNotFoundError, TicketingModuleNotFoundError } from '../../../errors.ts'; + +interface PassesModule { + cancelTicket: (tokenId: string) => Promise; +} export default async function cancelTicket( root: never, @@ -19,18 +24,10 @@ export default async function cancelTicket( return token; } - // Use ticketing module if available, otherwise update directly - if ((modules as any).passes?.cancelTicket) { - return (modules as any).passes.cancelTicket(tokenId); + const passes = (modules as unknown as Record).passes as PassesModule | undefined; + if (!passes?.cancelTicket) { + throw new TicketingModuleNotFoundError({}); } - // Fallback: directly update token meta - const tokens = await modules.warehousing.findTokens({ _id: tokenId }); - const existingToken = tokens[0]; - if (!existingToken) throw new TokenNotFoundError({ tokenId }); - - // Invalidate the token and mark as cancelled - await modules.warehousing.invalidateToken(tokenId); - const updatedToken = await modules.warehousing.findToken({ tokenId }); - return updatedToken; + return passes.cancelTicket(tokenId); } diff --git a/packages/api/src/resolvers/mutations/warehousing/invalidateToken.ts b/packages/api/src/resolvers/mutations/warehousing/invalidateToken.ts index ad489e0916..8ff83246ef 100644 --- a/packages/api/src/resolvers/mutations/warehousing/invalidateToken.ts +++ b/packages/api/src/resolvers/mutations/warehousing/invalidateToken.ts @@ -14,7 +14,7 @@ export default async function invalidateToken( { tokenId }: { tokenId: string }, context: Context, ) { - const { modules, userId } = context; + const { modules, services, userId } = context; log(`mutation invalidateToken ${tokenId}`, { userId, }); @@ -44,5 +44,11 @@ export default async function invalidateToken( if (!isInvalidateable) throw new TokenWrongStatusError({ tokenId }); - return modules.warehousing.invalidateToken(tokenId); + const invalidatedToken = await modules.warehousing.invalidateToken(tokenId); + + if (invalidatedToken) { + await services.warehousing.onTokenInvalidated({ token: invalidatedToken }); + } + + return invalidatedToken; } diff --git a/packages/core/src/services/index.ts b/packages/core/src/services/index.ts index 83c9ff0583..6e94335c4a 100644 --- a/packages/core/src/services/index.ts +++ b/packages/core/src/services/index.ts @@ -57,6 +57,7 @@ import { simulateConfigurablePriceRangeService } from './simulateConfigurablePri import { createFileDownloadURLService } from './createFileDownloadURL.ts'; import { resolveTokenStatusService } from './resolveTokenStatus.ts'; import { isTokenInvalidateableService } from './isTokenInvalidateable.ts'; +import { onTokenInvalidatedService } from './onTokenInvalidated.ts'; // Auto-Inject Unchained API as last parameter // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy @@ -186,6 +187,7 @@ export default function initServices(modules: Modules, customServices: CustomSer ercMetadata: ercMetadataService as Bound, resolveTokenStatus: resolveTokenStatusService as Bound, isTokenInvalidateable: isTokenInvalidateableService as Bound, + onTokenInvalidated: onTokenInvalidatedService as Bound, }, worker: { addMessage: addMessageService as Bound, diff --git a/packages/core/src/services/onTokenInvalidated.ts b/packages/core/src/services/onTokenInvalidated.ts new file mode 100644 index 0000000000..c1eac3bd3b --- /dev/null +++ b/packages/core/src/services/onTokenInvalidated.ts @@ -0,0 +1,30 @@ +import { type TokenSurrogate, WarehousingProviderType } from '@unchainedshop/core-warehousing'; +import { WarehousingDirector } from '../directors/WarehousingDirector.ts'; +import type { Modules } from '../modules.ts'; + +export async function onTokenInvalidatedService( + this: Modules, + { + token, + }: { + token: TokenSurrogate; + }, +): Promise { + const product = await this.products.findProduct({ productId: token.productId }); + if (!product) return null; + + const virtualProviders = (await this.warehousing.allProviders()).filter( + ({ type }) => type === WarehousingProviderType.VIRTUAL, + ); + + return WarehousingDirector.tokenMetadata( + virtualProviders, + { + token, + product, + quantity: token?.quantity || 1, + referenceDate: new Date(), + }, + { modules: this }, + ); +} diff --git a/packages/plugins/src/warehousing/eth-minter/adapter.ts b/packages/plugins/src/warehousing/eth-minter/adapter.ts index c6a6d55e59..7c14743a72 100644 --- a/packages/plugins/src/warehousing/eth-minter/adapter.ts +++ b/packages/plugins/src/warehousing/eth-minter/adapter.ts @@ -14,6 +14,64 @@ import { createLogger } from '@unchainedshop/logger'; const logger = createLogger('unchained:eth-minter'); +const buildTokenMetadata = async ({ + product, + token, + tokenSerialNumber, + modules, + locale, + ercMetadataProperties, + tokenId, +}: { + product: any; + token: any; + tokenSerialNumber: string; + modules: any; + locale: any; + ercMetadataProperties: any; + tokenId?: string; +}) => { + const { ROOT_URL = 'http://localhost:4010' } = process.env; + + const allLanguages = await modules.languages.findLanguages({ + includeInactive: false, + }); + + const [firstMedia] = await modules.products.media.findProductMedias({ + productId: product._id, + limit: 1, + }); + const file = firstMedia && (await modules.files.findFile({ fileId: firstMedia.mediaId })); + + const fileAdapter = file && getFileAdapter(); + const signedUrl = await fileAdapter?.createDownloadURL(file!); + const url = signedUrl && (await modules.files.normalizeUrl(signedUrl, {})); + const text = await modules.products.texts.findLocalizedText({ + productId: product._id, + locale: locale || systemLocale, + }); + + const name = `${text.title} #${tokenSerialNumber}`; + + const isDefaultLanguageActive = locale ? locale.language === systemLocale.language : true; + const localization = isDefaultLanguageActive + ? { + uri: `${ROOT_URL}/erc-metadata/${product._id}/{locale}/${tokenId}.json`, + default: systemLocale.language, + locales: allLanguages.map((lang) => lang.isoCode), + } + : undefined; + + return { + name, + description: text.description, + image: url, + properties: ercMetadataProperties, + localization, + ...(token?.meta || {}), + }; +}; + export const ETHMinter: IWarehousingAdapter = { ...WarehousingAdapter, @@ -29,21 +87,27 @@ export const ETHMinter: IWarehousingAdapter = { }, actions: (configuration, context) => { - const { MINTER_TOKEN_OFFSET = '0', ROOT_URL = 'http://localhost:4010' } = process.env; + const { MINTER_TOKEN_OFFSET = '0' } = process.env; const { product, orderPosition, token, modules, locale } = context as WarehousingContext & UnchainedCore; const { contractAddress, contractStandard, tokenId, supply, ercMetadataProperties } = product?.tokenization || {}; - const getTokensCreated = async () => { - const existingTokens = await modules.warehousing.findTokens( + + const getTokensCreated = async ({ skipCancelled = false } = {}) => { + const selector: Record = contractStandard === ProductContractStandard.ERC721 - ? { contractAddress: contractStandard } + ? { productId: product!._id } : { - contractAddress: contractStandard, + productId: product!._id, tokenSerialNumber: tokenId, - }, - ); + }; + + if (skipCancelled) { + selector['meta.cancelled'] = { $ne: true }; + } + + const existingTokens = await modules.warehousing.findTokens(selector); const tokensCreated = existingTokens.reduce((acc, curToken) => { return acc + curToken.quantity; }, 0); @@ -68,17 +132,33 @@ export const ETHMinter: IWarehousingAdapter = { }, stock: async () => { - const tokensCreated = await getTokensCreated(); + const tokensCreated = await getTokensCreated({ skipCancelled: true }); return supply ? supply - tokensCreated : 0; }, - tokenize: async () => { - // Upload Image to IPFS - // Upload Metadata to IPFS - // Prepare metadata + async isInvalidateable(tokenSerialNumber, referenceDate) { + if (token?.invalidatedDate) return false; + + const slot = ercMetadataProperties?.slot; + if (!slot) return true; + + const currentDate = new Date(referenceDate); + const earliestEntry = new Date(slot); + earliestEntry.setHours(earliestEntry.getHours() - 2); + + const latestEntry = new Date(slot); + latestEntry.setHours(latestEntry.getHours() + 1); + + return ( + earliestEntry.getTime() < currentDate.getTime() && + latestEntry.getTime() > currentDate.getTime() + ); + }, + + tokenize: async () => { const chainId = configuration.find(({ key }) => key === 'chainId')?.value || undefined; - const meta = { contractStandard }; + const meta = { contractStandard, orderId: orderPosition?.orderId }; const tokensCreated = await getTokensCreated(); if (!orderPosition) { @@ -121,43 +201,15 @@ export const ETHMinter: IWarehousingAdapter = { throw new Error('Product not found in context'); } - const allLanguages = await modules.languages.findLanguages({ - includeInactive: false, + return buildTokenMetadata({ + product, + token, + tokenSerialNumber, + modules, + locale, + ercMetadataProperties, + tokenId, }); - - const [firstMedia] = await modules.products.media.findProductMedias({ - productId: product._id, - limit: 1, - }); - const file = firstMedia && (await modules.files.findFile({ fileId: firstMedia.mediaId })); - - const fileAdapter = file && getFileAdapter(); - const signedUrl = await fileAdapter?.createDownloadURL(file!); - const url = signedUrl && (await modules.files.normalizeUrl(signedUrl, {})); - const text = await modules.products.texts.findLocalizedText({ - productId: product._id, - locale: locale || systemLocale, - }); - - const name = `${text.title} #${tokenSerialNumber}`; - - const isDefaultLanguageActive = locale ? locale.language === systemLocale.language : true; - const localization = isDefaultLanguageActive - ? { - uri: `${ROOT_URL}/erc-metadata/${product._id}/${locale}/${tokenId}.json`, - default: systemLocale.language, - locales: allLanguages.map((lang) => lang.isoCode), - } - : undefined; - - return { - name, - description: text.description, - image: url, - properties: ercMetadataProperties, - localization, - ...(token?.meta || {}), - }; }, }; }, From 9c1be29ee042bb7332608ed1c739a880a08e1c57 Mon Sep 17 00:00:00 2001 From: Mikael Araya Date: Wed, 11 Mar 2026 00:57:58 +0300 Subject: [PATCH 3/7] Adjust cancel and redeem event/ticket --- admin-ui/src/gql/types.ts | 13 +++-------- .../src/modules/product/hooks/useProduct.ts | 1 + .../components/EventTokenListItem.tsx | 22 ++++++++++--------- .../components/TicketEventDetail.tsx | 16 ++++++++------ .../components/TicketEventListItem.tsx | 8 +++++-- .../ticketing/hooks/useEventProducts.ts | 1 + packages/api/src/errors.ts | 5 +++++ .../mutations/warehousing/cancelTicket.ts | 11 +++++++++- .../queries/ticketing/ticketEvents.ts | 1 - .../type/product/product-tokenized-types.ts | 4 ++++ .../schema/types/product/tokenized-product.ts | 1 + packages/ticketing/src/index.ts | 8 +++---- packages/ticketing/src/services.ts | 2 +- 13 files changed, 57 insertions(+), 36 deletions(-) diff --git a/admin-ui/src/gql/types.ts b/admin-ui/src/gql/types.ts index 8b34dd229b..4eb38b514d 100644 --- a/admin-ui/src/gql/types.ts +++ b/admin-ui/src/gql/types.ts @@ -3718,6 +3718,7 @@ export type ITokenizedProduct = IProduct & { contractConfiguration?: Maybe; contractStandard?: Maybe; created?: Maybe; + isCanceled?: Maybe; leveledCatalogPrices: Array; media: Array; proxies: Array; @@ -4091,25 +4092,15 @@ export enum IWorkStatus { } export enum IWorkType { - Budgetsms = 'BUDGETSMS', - Bulkgate = 'BULKGATE', BulkExport = 'BULK_EXPORT', BulkImport = 'BULK_IMPORT', Email = 'EMAIL', - EnrollmentOrderGenerator = 'ENROLLMENT_ORDER_GENERATOR', ErrorNotifications = 'ERROR_NOTIFICATIONS', - ExportToken = 'EXPORT_TOKEN', External = 'EXTERNAL', Heartbeat = 'HEARTBEAT', HttpRequest = 'HTTP_REQUEST', Message = 'MESSAGE', - Push = 'PUSH', - RefreshTokens = 'REFRESH_TOKENS', - Twilio = 'TWILIO', Unknown = 'UNKNOWN', - UpdateCoinbaseRates = 'UPDATE_COINBASE_RATES', - UpdateEcbRates = 'UPDATE_ECB_RATES', - UpdateTokenOwnership = 'UPDATE_TOKEN_OWNERSHIP', ZombieKiller = 'ZOMBIE_KILLER', } @@ -12524,6 +12515,7 @@ export type IProductQuery = { } | { tokensCount: number; + isCanceled?: boolean | null; _id: string; sequence: number; status: IProductStatus; @@ -15879,6 +15871,7 @@ export type ITicketEventsQuery = { } | { tokensCount: number; + isCanceled?: boolean | null; _id: string; status: IProductStatus; tags?: Array | null; diff --git a/admin-ui/src/modules/product/hooks/useProduct.ts b/admin-ui/src/modules/product/hooks/useProduct.ts index 329810895f..5a891f46cc 100644 --- a/admin-ui/src/modules/product/hooks/useProduct.ts +++ b/admin-ui/src/modules/product/hooks/useProduct.ts @@ -72,6 +72,7 @@ const GetProductQuery = (inlineFragment = '') => gql` quantity } tokensCount + isCanceled tokens { _id tokenSerialNumber diff --git a/admin-ui/src/modules/ticketing/components/EventTokenListItem.tsx b/admin-ui/src/modules/ticketing/components/EventTokenListItem.tsx index ae0e49cd94..9cec49fd12 100644 --- a/admin-ui/src/modules/ticketing/components/EventTokenListItem.tsx +++ b/admin-ui/src/modules/ticketing/components/EventTokenListItem.tsx @@ -70,16 +70,18 @@ const EventTokenListItem = ({ token, onCancelTicket, onInvalidateTicket }) => { /> ) : ( <> - + {!token.invalidatedDate && ( + + )} {token.isInvalidateable && !token.invalidatedDate && (
- {product.status === 'ACTIVE' && ( + {product.status === 'ACTIVE' && !product.isCanceled && (
+
+ + {intl.formatMessage({ + id: 'open_gate_control', + defaultMessage: 'Open Gate Control', + })} + +
diff --git a/admin-ui/src/modules/apollo/utils/createApolloClient.ts b/admin-ui/src/modules/apollo/utils/createApolloClient.ts index b0606f6ad4..3137f8bb86 100644 --- a/admin-ui/src/modules/apollo/utils/createApolloClient.ts +++ b/admin-ui/src/modules/apollo/utils/createApolloClient.ts @@ -17,6 +17,7 @@ const allowedHeaders = [ 'x-mapihttpcapability', 'x-real-ip', 'x-user-identity', + 'x-passcode', 'host', 'cookie', 'authorization', @@ -60,6 +61,16 @@ const createApolloClient = ({ includeExtensions: true, }); + const passCodeLink = new SetContextLink(() => { + if (typeof window !== 'undefined') { + const passCode = window.sessionStorage.getItem('gate-passcode'); + if (passCode) { + return { headers: { 'x-passcode': passCode } }; + } + } + return {}; + }); + const errorLink = new ErrorLink(({ error, operation }) => { if (CombinedGraphQLErrors.is(error)) { error.errors.forEach(({ message, locations, path, extensions }) => { @@ -89,7 +100,9 @@ const createApolloClient = ({ }, ssrMode: typeof window === 'undefined', - link: ApolloLink.from([errorLink, localeLink, httpLink].filter(Boolean)), + link: ApolloLink.from( + [errorLink, passCodeLink, localeLink, httpLink].filter(Boolean), + ), cache, devtools: { enabled: process.env.NODE_ENV === 'development', diff --git a/admin-ui/src/modules/product/hooks/useProduct.ts b/admin-ui/src/modules/product/hooks/useProduct.ts index 5a891f46cc..b723771427 100644 --- a/admin-ui/src/modules/product/hooks/useProduct.ts +++ b/admin-ui/src/modules/product/hooks/useProduct.ts @@ -73,6 +73,7 @@ const GetProductQuery = (inlineFragment = '') => gql` } tokensCount isCanceled + scannerPassCode tokens { _id tokenSerialNumber diff --git a/admin-ui/src/modules/ticketing/components/GateAttendeeList.tsx b/admin-ui/src/modules/ticketing/components/GateAttendeeList.tsx new file mode 100644 index 0000000000..2d2cec35dc --- /dev/null +++ b/admin-ui/src/modules/ticketing/components/GateAttendeeList.tsx @@ -0,0 +1,180 @@ +import { useCallback } from 'react'; +import { useIntl } from 'react-intl'; +import { toast } from 'react-toastify'; +import Table from '../../common/components/Table'; +import Badge from '../../common/components/Badge'; +import useFormatDateTime from '../../common/utils/useFormatDateTime'; +import formatUsername from '../../common/utils/formatUsername'; +import useInvalidateTicket from '../../token/hooks/useInvalidateTicket'; + +const GateAttendeeList = ({ event }) => { + const { formatMessage } = useIntl(); + const { formatDateTime } = useFormatDateTime(); + const { invalidateTicket } = useInvalidateTicket(); + + const slot = event?.contractConfiguration?.ercMetadataProperties?.slot; + const tokens = event?.tokens || []; + const activeTokens = tokens.filter((t) => !t.isCanceled); + const redeemedCount = activeTokens.filter((t) => t.invalidatedDate).length; + + const onRedeem = useCallback(async (tokenId: string) => { + try { + await invalidateTicket({ tokenId }); + toast.success( + formatMessage({ + id: 'gate_ticket_redeemed', + defaultMessage: 'Ticket redeemed successfully', + }), + ); + } catch (e) { + toast.error( + formatMessage({ + id: 'gate_redeem_error', + defaultMessage: + 'Could not redeem ticket. It may already be redeemed or not yet redeemable.', + }), + ); + } + }, []); + + return ( +
+
+
+

+ {event?.texts?.title} +

+ {slot && ( +

+ {formatDateTime(slot, { + dateStyle: 'full', + timeStyle: 'short', + })} +

+ )} +
+
+ + {redeemedCount} + + / {activeTokens.length} +

+ {formatMessage({ + id: 'gate_redeemed', + defaultMessage: 'redeemed', + })} +

+
+
+ + {!activeTokens.length ? ( +

+ {formatMessage({ + id: 'gate_no_tickets', + defaultMessage: 'No tickets for this event.', + })} +

+ ) : ( +
+ + + {formatMessage({ + id: 'ticket_number', + defaultMessage: 'Ticket #', + })} + + + {formatMessage({ + id: 'attendee', + defaultMessage: 'Attendee', + })} + + + {formatMessage({ + id: 'email', + defaultMessage: 'E-Mail', + })} + + + {formatMessage({ + id: 'status', + defaultMessage: 'Status', + })} + + + {formatMessage({ + id: 'actions', + defaultMessage: 'Actions', + })} + + + {activeTokens.map((token) => ( + + + + {token.tokenSerialNumber || token._id?.slice(-8)} + + + + + {token.user ? formatUsername(token.user) : '-'} + + + + + {token.user?.lastContact?.emailAddress || + token.user?.primaryEmail?.address || + '-'} + + + + {token.invalidatedDate ? ( + + ) : ( + + )} + + + {!token.invalidatedDate && token.isInvalidateable && ( + + )} + {token.invalidatedDate && ( + + {formatMessage({ + id: 'gate_checked_in', + defaultMessage: 'Checked in', + })} + + )} + + + ))} +
+ )} + + ); +}; + +export default GateAttendeeList; diff --git a/admin-ui/src/modules/ticketing/components/GateControl.tsx b/admin-ui/src/modules/ticketing/components/GateControl.tsx new file mode 100644 index 0000000000..058cff19a9 --- /dev/null +++ b/admin-ui/src/modules/ticketing/components/GateControl.tsx @@ -0,0 +1,50 @@ +import { useIntl } from 'react-intl'; +import Loading from '../../common/components/Loading'; +import NoData from '../../common/components/NoData'; +import useGateEvents from '../hooks/useGateEvents'; +import GateAttendeeList from './GateAttendeeList'; + +const GateControl = ({ onLogout }) => { + const { formatMessage } = useIntl(); + const { todayEvents, loading } = useGateEvents(); + + return ( +
+
+

+ {formatMessage({ + id: 'gate_todays_events', + defaultMessage: "Today's Events", + })} +

+ +
+ + {loading ? ( + + ) : todayEvents.length ? ( + todayEvents.map((event) => ( + + )) + ) : ( + + )} +
+ ); +}; + +export default GateControl; diff --git a/admin-ui/src/modules/ticketing/components/GatePassCodeForm.tsx b/admin-ui/src/modules/ticketing/components/GatePassCodeForm.tsx new file mode 100644 index 0000000000..002f393e8b --- /dev/null +++ b/admin-ui/src/modules/ticketing/components/GatePassCodeForm.tsx @@ -0,0 +1,72 @@ +import { useState } from 'react'; +import { useIntl } from 'react-intl'; +import { toast } from 'react-toastify'; +import useIsPassCodeValid from '../hooks/useIsPassCodeValid'; + +const GatePassCodeForm = ({ onAuthenticated }) => { + const { formatMessage } = useIntl(); + const { validatePassCode, loading } = useIsPassCodeValid(); + const [passCode, setPassCode] = useState(''); + + const handleSubmit = async (e) => { + e.preventDefault(); + if (!passCode.trim()) return; + + const valid = await validatePassCode(passCode.trim()); + if (valid) { + onAuthenticated(); + } else { + toast.error( + formatMessage({ + id: 'gate_invalid_passcode', + defaultMessage: 'Invalid pass code. Please try again.', + }), + ); + } + }; + + return ( +
+
+

+ {formatMessage({ + id: 'gate_enter_passcode', + defaultMessage: + 'Enter the scanner pass code to activate the gate control.', + })} +

+
+ setPassCode(e.target.value)} + placeholder={formatMessage({ + id: 'gate_passcode_placeholder', + defaultMessage: 'Pass code', + })} + className="mb-4 block w-full rounded-md border border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-700 px-4 py-2 text-sm text-slate-900 dark:text-slate-100 placeholder-slate-400 focus:border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500" + required + autoFocus + /> + +
+
+
+ ); +}; + +export default GatePassCodeForm; diff --git a/admin-ui/src/modules/ticketing/components/TicketEventDetail.tsx b/admin-ui/src/modules/ticketing/components/TicketEventDetail.tsx index 257ec51abb..33a10f056f 100644 --- a/admin-ui/src/modules/ticketing/components/TicketEventDetail.tsx +++ b/admin-ui/src/modules/ticketing/components/TicketEventDetail.tsx @@ -1,5 +1,5 @@ import Link from 'next/link'; -import { useCallback } from 'react'; +import { useCallback, useState } from 'react'; import { useIntl } from 'react-intl'; import { toast } from 'react-toastify'; import useModal from '../../modal/hooks/useModal'; @@ -12,6 +12,7 @@ import EventTokenList from './EventTokenList'; import useCancelTicket from '../hooks/useCancelTicket'; import useCancelEvent from '../hooks/useCancelEvent'; import useInvalidateTicket from '../../token/hooks/useInvalidateTicket'; +import useSetScannerPassCode from '../hooks/useSetScannerPassCode'; import generateUniqueId from '../../common/utils/getUniqueId'; const TicketEventDetail = ({ product }) => { @@ -21,6 +22,8 @@ const TicketEventDetail = ({ product }) => { const { cancelTicket } = useCancelTicket(); const { cancelEvent } = useCancelEvent(); const { invalidateTicket } = useInvalidateTicket(); + const { setScannerPassCode } = useSetScannerPassCode(); + const [passCodeInput, setPassCodeInput] = useState(''); const slot = product?.contractConfiguration?.ercMetadataProperties?.slot; const supply = product?.contractConfiguration?.supply || 0; @@ -238,6 +241,117 @@ const TicketEventDetail = ({ product }) => { +
+

+ {formatMessage({ + id: 'gate_control_settings', + defaultMessage: 'Gate Control', + })} +

+

+ {formatMessage({ + id: 'gate_control_description', + defaultMessage: + 'Set a scanner pass code to enable gate control for this event. Share this code with gate operators.', + })} +

+
+
+ + setPassCodeInput(e.target.value)} + placeholder={ + product?.scannerPassCode + ? formatMessage({ + id: 'scanner_pass_code_set', + defaultMessage: + 'Pass code is set (enter new value to change)', + }) + : formatMessage({ + id: 'scanner_pass_code_placeholder', + defaultMessage: 'Enter a pass code for gate operators', + }) + } + className="block w-full rounded-md border border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-700 px-3 py-2 text-sm text-slate-900 dark:text-slate-100 placeholder-slate-400 focus:border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500" + /> +
+ + {product?.scannerPassCode && ( + + )} +
+ {product?.scannerPassCode && ( +

+ {formatMessage({ + id: 'scanner_pass_code_active', + defaultMessage: 'Gate control is active for this event.', + })} +

+ )} +
+

{formatMessage( diff --git a/admin-ui/src/modules/ticketing/hooks/useGateEvents.ts b/admin-ui/src/modules/ticketing/hooks/useGateEvents.ts new file mode 100644 index 0000000000..14154b53e2 --- /dev/null +++ b/admin-ui/src/modules/ticketing/hooks/useGateEvents.ts @@ -0,0 +1,94 @@ +import { gql } from '@apollo/client'; +import { useQuery } from '@apollo/client/react'; +import { + IGateEventsQuery, + IGateEventsQueryVariables, +} from '../../../gql/types'; + +const GateEventsQuery = gql` + query GateEvents { + ticketEvents(limit: 100, includeDrafts: false) { + _id + status + ... on TokenizedProduct { + texts { + _id + title + subtitle + } + contractConfiguration { + ercMetadataProperties + supply + } + isCanceled + tokens { + _id + tokenSerialNumber + isCanceled + invalidatedDate + isInvalidateable + ercMetadata + user { + _id + username + isGuest + primaryEmail { + address + verified + } + avatar { + _id + url + } + profile { + displayName + address { + firstName + lastName + } + } + lastContact { + emailAddress + telNumber + } + } + } + } + } + } +`; + +const isToday = (dateStr: string) => { + if (!dateStr) return false; + const today = new Date().toLocaleDateString(); + const target = new Date(dateStr).toLocaleDateString(); + return today === target; +}; + +const useGateEvents = () => { + const { data, loading, error, refetch } = useQuery< + IGateEventsQuery, + IGateEventsQueryVariables + >(GateEventsQuery, { + fetchPolicy: 'cache-and-network', + pollInterval: 10000, + }); + + const allEvents = data?.ticketEvents || []; + const todayEvents = allEvents.filter( + (p: any) => + p?.tokens?.length && + !p.isCanceled && + isToday(p?.contractConfiguration?.ercMetadataProperties?.slot), + ); + + return { + todayEvents, + allEvents, + loading, + error, + refetch, + }; +}; + +export default useGateEvents; diff --git a/admin-ui/src/modules/ticketing/hooks/useIsPassCodeValid.ts b/admin-ui/src/modules/ticketing/hooks/useIsPassCodeValid.ts new file mode 100644 index 0000000000..e1e70ce1f6 --- /dev/null +++ b/admin-ui/src/modules/ticketing/hooks/useIsPassCodeValid.ts @@ -0,0 +1,46 @@ +import { gql } from '@apollo/client'; +import { useLazyQuery } from '@apollo/client/react'; +import { + IIsPassCodeValidQuery, + IIsPassCodeValidQueryVariables, +} from '../../../gql/types'; + +const IsPassCodeValidQuery = gql` + query IsPassCodeValid($productId: ID) { + isPassCodeValid(productId: $productId) + } +`; + +const useIsPassCodeValid = () => { + const [checkPassCode, { data, loading, error }] = useLazyQuery< + IIsPassCodeValidQuery, + IIsPassCodeValidQueryVariables + >(IsPassCodeValidQuery, { + fetchPolicy: 'network-only', + }); + + const validatePassCode = async (passCode: string, productId?: string) => { + window.sessionStorage.setItem('gate-passcode', passCode); + const result = await checkPassCode({ + variables: { productId }, + }); + if (!result.data?.isPassCodeValid) { + window.sessionStorage.removeItem('gate-passcode'); + } + return result.data?.isPassCodeValid || false; + }; + + const clearPassCode = () => { + window.sessionStorage.removeItem('gate-passcode'); + }; + + return { + validatePassCode, + clearPassCode, + isValid: data?.isPassCodeValid || false, + loading, + error, + }; +}; + +export default useIsPassCodeValid; diff --git a/admin-ui/src/modules/ticketing/hooks/useSetScannerPassCode.ts b/admin-ui/src/modules/ticketing/hooks/useSetScannerPassCode.ts new file mode 100644 index 0000000000..9494306616 --- /dev/null +++ b/admin-ui/src/modules/ticketing/hooks/useSetScannerPassCode.ts @@ -0,0 +1,41 @@ +import { gql } from '@apollo/client'; +import { useMutation } from '@apollo/client/react'; +import { + ISetEventScannerPassCodeMutation, + ISetEventScannerPassCodeMutationVariables, +} from '../../../gql/types'; + +const SetEventScannerPassCodeMutation = gql` + mutation SetEventScannerPassCode($productId: ID!, $passCode: String) { + setEventScannerPassCode(productId: $productId, passCode: $passCode) { + _id + ... on TokenizedProduct { + scannerPassCode + } + } + } +`; + +const useSetScannerPassCode = () => { + const [setPassCodeMutation] = useMutation< + ISetEventScannerPassCodeMutation, + ISetEventScannerPassCodeMutationVariables + >(SetEventScannerPassCodeMutation); + + const setScannerPassCode = async ({ + productId, + passCode, + }: { + productId: string; + passCode: string | null; + }) => { + return setPassCodeMutation({ + variables: { productId, passCode }, + refetchQueries: ['Product'], + }); + }; + + return { setScannerPassCode }; +}; + +export default useSetScannerPassCode; diff --git a/admin-ui/src/modules/ticketing/index.ts b/admin-ui/src/modules/ticketing/index.ts index a3977c2f2a..d672fe521b 100644 --- a/admin-ui/src/modules/ticketing/index.ts +++ b/admin-ui/src/modules/ticketing/index.ts @@ -1,3 +1,6 @@ export { default as useEventProducts } from './hooks/useEventProducts'; export { default as useCancelTicket } from './hooks/useCancelTicket'; export { default as useCancelEvent } from './hooks/useCancelEvent'; +export { default as useIsPassCodeValid } from './hooks/useIsPassCodeValid'; +export { default as useGateEvents } from './hooks/useGateEvents'; +export { default as useSetScannerPassCode } from './hooks/useSetScannerPassCode'; diff --git a/admin-ui/src/pages/ticketing/gate.tsx b/admin-ui/src/pages/ticketing/gate.tsx new file mode 100644 index 0000000000..48df0c9cb0 --- /dev/null +++ b/admin-ui/src/pages/ticketing/gate.tsx @@ -0,0 +1,55 @@ +import { useState, useEffect } from 'react'; +import Link from 'next/link'; +import { useIntl } from 'react-intl'; +import useCurrentUser from '../../modules/accounts/hooks/useCurrentUser'; +import GatePassCodeForm from '../../modules/ticketing/components/GatePassCodeForm'; +import GateControl from '../../modules/ticketing/components/GateControl'; + +const GateControlPage = () => { + const { formatMessage } = useIntl(); + const { currentUser } = useCurrentUser(); + const [authenticated, setAuthenticated] = useState(false); + + useEffect(() => { + const stored = window.sessionStorage.getItem('gate-passcode'); + if (stored) setAuthenticated(true); + }, []); + + const handleLogout = () => { + window.sessionStorage.removeItem('gate-passcode'); + setAuthenticated(false); + }; + + return ( +
+
+

+ {formatMessage({ + id: 'gate_control_header', + defaultMessage: 'Gate Control', + })} +

+
+
+ + {formatMessage({ + id: currentUser?._id ? 'back_to_admin' : 'back_to_login', + defaultMessage: currentUser?._id ? 'Back to Admin' : 'Log in', + })} + +
+ {authenticated ? ( + + ) : ( + setAuthenticated(true)} /> + )} +
+ ); +}; + +GateControlPage.getLayout = (page) => page; + +export default GateControlPage; diff --git a/admin-ui/src/pages/ticketing/index.tsx b/admin-ui/src/pages/ticketing/index.tsx index e720bd53b9..2a0b912755 100644 --- a/admin-ui/src/pages/ticketing/index.tsx +++ b/admin-ui/src/pages/ticketing/index.tsx @@ -1,3 +1,4 @@ +import Link from 'next/link'; import { useIntl } from 'react-intl'; import { useRouter } from 'next/router'; @@ -60,16 +61,27 @@ const TicketingPage = () => { return ( <> - +
+ + + {formatMessage({ + id: 'gate_control', + defaultMessage: 'Gate Control', + })} + +
diff --git a/package-lock.json b/package-lock.json index e741409985..26f71a093f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21684,6 +21684,7 @@ "@unchainedshop/api": "^4.6.0", "@unchainedshop/core": "^4.6.0", "@unchainedshop/core-files": "^4.6.0", + "@unchainedshop/core-orders": "^4.6.0", "@unchainedshop/core-warehousing": "^4.6.0", "@unchainedshop/core-worker": "^4.6.0", "@unchainedshop/events": "^4.6.0", diff --git a/packages/api/src/resolvers/mutations/index.ts b/packages/api/src/resolvers/mutations/index.ts index da806845ec..7165699026 100755 --- a/packages/api/src/resolvers/mutations/index.ts +++ b/packages/api/src/resolvers/mutations/index.ts @@ -86,6 +86,7 @@ import exportToken from './warehousing/exportToken.ts'; import invalidateToken from './warehousing/invalidateToken.ts'; import cancelTicket from './warehousing/cancelTicket.ts'; import cancelEvent from './warehousing/cancelEvent.ts'; +import setEventScannerPassCode from './warehousing/setEventScannerPassCode.ts'; import setPassword from './accounts/setPassword.ts'; import setRoles from './users/setRoles.ts'; import setUsername from './accounts/setUsername.ts'; @@ -270,6 +271,7 @@ export default { invalidateToken: acl(actions.updateToken)(invalidateToken), cancelTicket: acl(actions.updateToken)(cancelTicket), cancelEvent: acl(actions.manageProducts)(cancelEvent), + setEventScannerPassCode: acl(actions.manageProducts)(setEventScannerPassCode), createFilter: acl(actions.manageFilters)(createFilter), updateFilter: acl(actions.manageFilters)(updateFilter), removeFilter: acl(actions.manageFilters)(removeFilter), diff --git a/packages/api/src/resolvers/mutations/warehousing/cancelEvent.ts b/packages/api/src/resolvers/mutations/warehousing/cancelEvent.ts index 6d3eec71b3..623c2c8dfe 100644 --- a/packages/api/src/resolvers/mutations/warehousing/cancelEvent.ts +++ b/packages/api/src/resolvers/mutations/warehousing/cancelEvent.ts @@ -1,24 +1,20 @@ import type { Context } from '../../../context.ts'; -import type { TokenSurrogate } from '@unchainedshop/core-warehousing'; import { log } from '@unchainedshop/logger'; -import { InvalidIdError, ProductNotFoundError, TicketingModuleNotFoundError } from '../../../errors.ts'; +import { ProductStatus } from '@unchainedshop/core-products'; +import { + InvalidIdError, + ProductNotFoundError, + ProductWrongStatusError, + TicketingModuleNotFoundError, +} from '../../../errors.ts'; -interface PassesModule { - cancelTicket: (tokenId: string) => Promise; -} - -interface TicketingServices { - ticketing?: { - cancelTicketsForProduct: (productId: string) => Promise; - }; -} export default async function cancelEvent( root: never, - { productId }: { productId: string }, + { productId, generateDiscount }: { productId: string; generateDiscount?: boolean }, context: Context, ) { - const { modules, services, userId } = context; + const { modules, services, userId, countryCode, currencyCode } = context; log(`mutation cancelEvent ${productId}`, { userId }); if (!productId) throw new InvalidIdError({ productId }); @@ -26,25 +22,42 @@ export default async function cancelEvent( const product = await modules.products.findProduct({ productId }); if (!product) throw new ProductNotFoundError({ productId }); - const passes = (modules as unknown as Record).passes as PassesModule | undefined; + if (product.status !== ProductStatus.ACTIVE) { + throw new ProductWrongStatusError({ productId }); + } + + const passes = (modules as unknown as Record).passes as any if (!passes?.cancelTicket) { throw new TicketingModuleNotFoundError({}); } - const ticketingServices = services as unknown as TicketingServices; - if (ticketingServices.ticketing?.cancelTicketsForProduct) { - return ticketingServices.ticketing.cancelTicketsForProduct(productId); + const ticketingServices = (services as unknown as any).ticketing; + if (!ticketingServices?.cancelTicketsForProduct) { + throw new TicketingModuleNotFoundError({}); } - // Cancel all tokens for the product - const tokensToCancel = await modules.warehousing.findTokens({ - productId, - 'meta.cancelled': null, + const result = await ticketingServices.cancelTicketsForProduct(productId, { + generateDiscount, + countryCode, + currencyCode, }); - for (const token of tokensToCancel) { - await passes.cancelTicket(token._id); + if (result.discountCodes?.length) { + await Promise.allSettled( + result.discountCodes.map(async ({ userId: ticketUserId, discountCode, amount }) => { + await modules.worker.addWork({ + type: 'MESSAGE', + input: { + template: 'EVENT_CANCELLED', + productId, + userId: ticketUserId, + discountCode, + discountAmount: amount, + }, + }); + }), + ); } - return tokensToCancel.length; + return result.cancelledCount; } diff --git a/packages/api/src/resolvers/mutations/warehousing/cancelTicket.ts b/packages/api/src/resolvers/mutations/warehousing/cancelTicket.ts index ddb300e01f..f72d7d9d44 100644 --- a/packages/api/src/resolvers/mutations/warehousing/cancelTicket.ts +++ b/packages/api/src/resolvers/mutations/warehousing/cancelTicket.ts @@ -1,5 +1,4 @@ import type { Context } from '../../../context.ts'; -import type { TokenSurrogate } from '@unchainedshop/core-warehousing'; import { log } from '@unchainedshop/logger'; import { InvalidIdError, @@ -8,17 +7,14 @@ import { TicketingModuleNotFoundError, } from '../../../errors.ts'; -interface PassesModule { - cancelTicket: (tokenId: string) => Promise; -} export default async function cancelTicket( root: never, - { tokenId }: { tokenId: string }, + { tokenId, generateDiscount = true }: { tokenId: string; generateDiscount?: boolean }, context: Context, ) { - const { modules, userId } = context; - log(`mutation cancelTicket ${tokenId}`, { userId }); + const { modules, services, userId, countryCode, currencyCode } = context; + log(`mutation cancelTicket ${tokenId}`, { userId, generateDiscount }); if (!tokenId) throw new InvalidIdError({ tokenId }); @@ -33,10 +29,34 @@ export default async function cancelTicket( throw new TokenAlreadyRedeemedError({ tokenId }); } - const passes = (modules as unknown as Record).passes as PassesModule | undefined; + const passes = (modules as unknown as Record).passes as any; if (!passes?.cancelTicket) { throw new TicketingModuleNotFoundError({}); } - return passes.cancelTicket(tokenId); + const ticketingServices = (services as unknown as any).ticketing; + if (!ticketingServices?.cancelTicketWithDiscount) { + throw new TicketingModuleNotFoundError({}); + } + + const result = await ticketingServices.cancelTicketWithDiscount(tokenId, { + generateDiscount, + countryCode, + currencyCode, + }); + + if (result.discountCode && token.userId) { + await modules.worker.addWork({ + type: 'MESSAGE', + input: { + template: 'TICKET_CANCELLED', + tokenId: token._id, + userId: token.userId, + discountCode: result.discountCode, + discountAmount: result.amount, + }, + }); + } + + return result.token; } diff --git a/packages/api/src/resolvers/mutations/warehousing/setEventScannerPassCode.ts b/packages/api/src/resolvers/mutations/warehousing/setEventScannerPassCode.ts new file mode 100644 index 0000000000..7e54fa88b5 --- /dev/null +++ b/packages/api/src/resolvers/mutations/warehousing/setEventScannerPassCode.ts @@ -0,0 +1,29 @@ +import { log } from '@unchainedshop/logger'; +import { InvalidIdError, ProductNotFoundError } from '../../../errors.ts'; +import type { Context } from '../../../context.ts'; + +export default async function setEventScannerPassCode( + root: never, + { productId, passCode }: { productId: string; passCode?: string | null }, + { modules, userId }: Context, +) { + log(`mutation setEventScannerPassCode ${productId}`, { userId }); + + if (!productId) throw new InvalidIdError({ productId }); + + const product = await modules.products.findProduct({ productId }); + if (!product) throw new ProductNotFoundError({ productId }); + + const existingMeta = (product.meta as Record) || {}; + const updatedMeta = { ...existingMeta }; + + if (passCode === null || passCode === undefined) { + delete updatedMeta.scannerPassCode; + } else { + updatedMeta.scannerPassCode = passCode; + } + + await modules.products.update(productId, { meta: updatedMeta }); + + return modules.products.findProduct({ productId }); +} diff --git a/packages/api/src/resolvers/queries/index.ts b/packages/api/src/resolvers/queries/index.ts index c37977c345..8c613f2a5a 100755 --- a/packages/api/src/resolvers/queries/index.ts +++ b/packages/api/src/resolvers/queries/index.ts @@ -66,6 +66,7 @@ import tokens from './warehousing/tokens.ts'; import tokensCount from './warehousing/tokensCount.ts'; import ticketEvents from './ticketing/ticketEvents.ts'; import ticketEventsCount from './ticketing/ticketEventsCount.ts'; +import isPassCodeValid from './ticketing/isPassCodeValid.ts'; import work from './worker/work.ts'; import workQueue from './worker/workQueue.ts'; import workStatistics from './worker/workStatistics.ts'; @@ -110,8 +111,9 @@ export default { token: acl(actions.viewToken)(token), tokens: acl(actions.viewTokens)(tokens), tokensCount: acl(actions.viewTokens)(tokensCount), - ticketEvents: acl(actions.viewTokens)(ticketEvents), - ticketEventsCount: acl(actions.viewTokens)(ticketEventsCount), + ticketEvents: acl(actions.gateControl)(ticketEvents), + ticketEventsCount: acl(actions.gateControl)(ticketEventsCount), + isPassCodeValid: acl(actions.validatePassCode)(isPassCodeValid), translatedProductTexts: acl(actions.viewTranslations)(translatedProductTexts), translatedProductMediaTexts: acl(actions.viewTranslations)(translatedProductMediaTexts), translatedProductVariationTexts: acl(actions.viewTranslations)(translatedProductVariationTexts), diff --git a/packages/api/src/resolvers/queries/ticketing/isPassCodeValid.ts b/packages/api/src/resolvers/queries/ticketing/isPassCodeValid.ts new file mode 100644 index 0000000000..387564ea4f --- /dev/null +++ b/packages/api/src/resolvers/queries/ticketing/isPassCodeValid.ts @@ -0,0 +1,28 @@ +import { log } from '@unchainedshop/logger'; +import type { Context } from '../../../context.ts'; +import { TicketingModuleNotFoundError } from '../../../errors.ts'; + +interface TicketingServices { + ticketing?: { + isPassCodeValid: (passCode: string, productId?: string) => Promise; + }; +} + +export default async function isPassCodeValid( + root: never, + { productId }: { productId?: string }, + context: Context, +) { + const { services, userId } = context; + log(`query isPassCodeValid`, { userId }); + + const passCode = context.getHeader('x-passcode') as string; + if (!passCode) return false; + + const ticketingServices = services as unknown as TicketingServices; + if (!ticketingServices.ticketing?.isPassCodeValid) { + throw new TicketingModuleNotFoundError({}); + } + + return ticketingServices.ticketing.isPassCodeValid(passCode, productId); +} diff --git a/packages/api/src/resolvers/queries/ticketing/ticketEvents.ts b/packages/api/src/resolvers/queries/ticketing/ticketEvents.ts index 066abb7736..32780e98c0 100644 --- a/packages/api/src/resolvers/queries/ticketing/ticketEvents.ts +++ b/packages/api/src/resolvers/queries/ticketing/ticketEvents.ts @@ -1,6 +1,7 @@ import { log } from '@unchainedshop/logger'; import type { SortOption } from '@unchainedshop/utils'; import type { Context } from '../../../context.ts'; +import { TicketingModuleNotFoundError } from '../../../errors.ts'; export default async function ticketEvents( root: never, @@ -17,10 +18,33 @@ export default async function ticketEvents( includeDrafts?: boolean; sort?: SortOption[]; }, - { modules, userId }: Context, + context: Context, ) { + const { modules, userId } = context; log(`query ticketEvents`, { userId }); + const passCode = context.getHeader('x-passcode') as string; + const ticketingServices = (context.services as any)?.ticketing; + + if (!userId && passCode) { + if (!ticketingServices?.productIdsForPassCode) { + throw new TicketingModuleNotFoundError({}); + } + const productIds = await ticketingServices.productIdsForPassCode(passCode); + if (!productIds.length) return []; + + const products = await modules.products.findProducts({ + type: 'TOKENIZED_PRODUCT', + queryString, + includeDrafts: false, + limit, + offset, + sort, + }); + + return products.filter((p) => productIds.includes(p._id)); + } + return modules.products.findProducts({ type: 'TOKENIZED_PRODUCT', queryString, diff --git a/packages/api/src/resolvers/queries/ticketing/ticketEventsCount.ts b/packages/api/src/resolvers/queries/ticketing/ticketEventsCount.ts index b26a23b812..7a9d382e4a 100644 --- a/packages/api/src/resolvers/queries/ticketing/ticketEventsCount.ts +++ b/packages/api/src/resolvers/queries/ticketing/ticketEventsCount.ts @@ -1,5 +1,6 @@ import { log } from '@unchainedshop/logger'; import type { Context } from '../../../context.ts'; +import { TicketingModuleNotFoundError } from '../../../errors.ts'; export default async function ticketEventsCount( root: never, @@ -10,10 +11,22 @@ export default async function ticketEventsCount( queryString?: string; includeDrafts?: boolean; }, - { modules, userId }: Context, + context: Context, ) { + const { modules, userId } = context; log(`query ticketEventsCount`, { userId }); + const passCode = context.getHeader('x-passcode') as string; + const ticketingServices = (context.services as any)?.ticketing; + + if (!userId && passCode) { + if (!ticketingServices?.productIdsForPassCode) { + throw new TicketingModuleNotFoundError({}); + } + const productIds = await ticketingServices.productIdsForPassCode(passCode); + return productIds.length; + } + return modules.products.count({ type: 'TOKENIZED_PRODUCT', contractStandard: 'ERC721', diff --git a/packages/api/src/resolvers/type/product/product-tokenized-types.ts b/packages/api/src/resolvers/type/product/product-tokenized-types.ts index 18a556db3e..64b00bfca4 100644 --- a/packages/api/src/resolvers/type/product/product-tokenized-types.ts +++ b/packages/api/src/resolvers/type/product/product-tokenized-types.ts @@ -57,18 +57,37 @@ export const TokenizedProduct = { }, async tokens(product: Product, params: never, requestContext: Context) { - await checkAction(requestContext, actions.viewTokens, [undefined, params]); + try { + await checkAction(requestContext, actions.viewTokens, [undefined, params]); + } catch { + const passCode = requestContext.getHeader('x-passcode') as string; + const ticketingServices = (requestContext.services as any)?.ticketing; + const isValid = await ticketingServices?.isPassCodeValid?.(passCode, product._id); + if (!isValid) return []; + } const tokens = await requestContext.modules.warehousing.findTokens({ productId: product._id, }); return tokens; }, async tokensCount(product: Product, params: never, requestContext: Context) { - await checkAction(requestContext, actions.viewTokens, [undefined, params]); + try { + await checkAction(requestContext, actions.viewTokens, [undefined, params]); + } catch { + const passCode = requestContext.getHeader('x-passcode') as string; + const ticketingServices = (requestContext.services as any)?.ticketing; + const isValid = await ticketingServices?.isPassCodeValid?.(passCode, product._id); + if (!isValid) return 0; + } return requestContext.modules.warehousing.tokensCount({ productId: product._id, }); }, + + async scannerPassCode(product: Product, params: never, requestContext: Context) { + await checkAction(requestContext, actions.manageProducts, [undefined, params]); + return (product.meta as Record)?.scannerPassCode || null; + }, }; delete (TokenizedProduct as any).salesUnit; diff --git a/packages/api/src/roles/all.ts b/packages/api/src/roles/all.ts index 05c8b1943e..e1bfc89d42 100644 --- a/packages/api/src/roles/all.ts +++ b/packages/api/src/roles/all.ts @@ -111,6 +111,16 @@ export const all = (role, actions) => { role.allow(actions.viewOrder, () => false); role.allow(actions.viewQuotation, () => false); role.allow(actions.viewEnrollment, () => false); + const hasValidPassCode = async (_root: any, _params: any, context: Context) => { + const passCode = context.getHeader?.('x-passcode'); + if (!passCode) return false; + const ticketingServices = (context.services as any)?.ticketing; + if (!ticketingServices?.isPassCodeValid) return false; + return ticketingServices.isPassCodeValid(passCode); + }; + + role.allow(actions.validatePassCode, () => true); + role.allow(actions.gateControl, hasValidPassCode); role.allow(actions.viewTokens, () => false); role.allow(actions.viewStatistics, () => false); role.allow(actions.uploadUserAvatar, () => false); @@ -129,8 +139,23 @@ export const all = (role, actions) => { role.allow(actions.viewUserEnrollments, isInLoginMutationResponse); role.allow(actions.viewUserProductReviews, isInLoginMutationResponse); - // special case: access to token sometimes works via a X-Token-AccessKey Header and thus should also be allowed for anonymous users - role.allow(actions.updateToken, isOwnedToken); + // special case: access to token sometimes works via a X-Token-AccessKey Header or valid gate pass code + const hasValidPassCodeForToken = async (_root: any, params: any, context: Context) => { + const passCode = context.getHeader?.('x-passcode'); + if (!passCode) return false; + const ticketingServices = (context.services as any)?.ticketing; + if (!ticketingServices?.isPassCodeValid) return false; + const tokenId = params?.tokenId; + if (!tokenId) return false; + const token = await context.modules.warehousing.findToken({ tokenId }); + if (!token) return false; + return ticketingServices.isPassCodeValid(passCode, token.productId); + }; + const isOwnedTokenOrValidPassCode = async (root: any, params: any, context: Context) => { + if (await isOwnedToken(root, params, context)) return true; + return hasValidPassCodeForToken(root, params, context); + }; + role.allow(actions.updateToken, isOwnedTokenOrValidPassCode); role.allow(actions.viewToken, isOwnedToken); // special case: access to file downloads should work when meta.isPrivate is not set diff --git a/packages/api/src/roles/index.ts b/packages/api/src/roles/index.ts index fa89fed09c..1c0c5eaff0 100644 --- a/packages/api/src/roles/index.ts +++ b/packages/api/src/roles/index.ts @@ -123,6 +123,8 @@ const actions: Record = [ 'downloadFile', 'uploadUserAvatar', 'uploadTempFile', + 'validatePassCode', + 'gateControl', ].reduce((oldValue, actionValue) => { const newValue = oldValue; newValue[actionValue] = actionValue; diff --git a/packages/api/src/roles/loggedIn.ts b/packages/api/src/roles/loggedIn.ts index 8df654f936..ac815f4a40 100644 --- a/packages/api/src/roles/loggedIn.ts +++ b/packages/api/src/roles/loggedIn.ts @@ -250,4 +250,6 @@ export const loggedIn = (role: any, actions: Record) => { role.allow(actions.uploadUserAvatar, canUpdateAvatar); role.allow(actions.uploadTempFile, canUpdateAvatar); role.allow(actions.logoutAllSessions, () => true); + role.allow(actions.validatePassCode, () => true); + role.allow(actions.gateControl, () => true); }; diff --git a/packages/api/src/schema/mutation.ts b/packages/api/src/schema/mutation.ts index aee784d555..4b9aa02317 100644 --- a/packages/api/src/schema/mutation.ts +++ b/packages/api/src/schema/mutation.ts @@ -860,14 +860,22 @@ export default [ """ Cancel a ticket (token). Sets the cancelled flag on the token metadata. + Optionally generates a discount code for reimbursement. """ - cancelTicket(tokenId: ID!): Token! + cancelTicket(tokenId: ID!, generateDiscount: Boolean): Token! """ Cancel all tickets for an event (tokenized product). Invalidates all non-cancelled tokens. + Optionally generates discount codes for affected users. Returns the number of tickets cancelled. """ - cancelEvent(productId: ID!): Int! + cancelEvent(productId: ID!, generateDiscount: Boolean): Int! + + """ + Set or remove the scanner pass code for gate control on a tokenized product. + Pass null to remove the pass code. + """ + setEventScannerPassCode(productId: ID!, passCode: String): Product! """ Store user W3C Push subscription object diff --git a/packages/api/src/schema/query.ts b/packages/api/src/schema/query.ts index bc3a4ba72a..0855cd05a9 100644 --- a/packages/api/src/schema/query.ts +++ b/packages/api/src/schema/query.ts @@ -243,6 +243,12 @@ export default [ """ ticketEventsCount(queryString: String, includeDrafts: Boolean = true): Int! + """ + Validates a scanner pass code for gate access. Pass code is checked via x-passcode header. + Optionally restricted to a specific product. + """ + isPassCodeValid(productId: ID): Boolean! + """ Returns total number of payment providers, optionally filtered by type """ diff --git a/packages/api/src/schema/types/product/tokenized-product.ts b/packages/api/src/schema/types/product/tokenized-product.ts index 31327b2aa8..7fd6a2400a 100644 --- a/packages/api/src/schema/types/product/tokenized-product.ts +++ b/packages/api/src/schema/types/product/tokenized-product.ts @@ -62,6 +62,7 @@ export default [ tokens: [Token!]! tokensCount: Int! isCanceled: Boolean + scannerPassCode: String @cacheControl(scope: PRIVATE, maxAge: 0) } `, ]; diff --git a/packages/core/src/factory/registerVirtualWarehousing.ts b/packages/core/src/factory/registerVirtualWarehousing.ts index 279cb39a75..d8e5e958d8 100644 --- a/packages/core/src/factory/registerVirtualWarehousing.ts +++ b/packages/core/src/factory/registerVirtualWarehousing.ts @@ -16,18 +16,18 @@ export default function registerVirtualWarehousing Promise); + | number + | (( + referenceDate: Date, + configuration: WarehousingConfiguration, + context: WarehousingContext, + ) => Promise); tokenize: ( configuration: WarehousingConfiguration, @@ -88,15 +88,15 @@ export default function registerVirtualWarehousing { MessagingDirector.registerTemplate(MessageTypes.QUOTATION_STATUS, resolveQuotationStatusTemplate); MessagingDirector.registerTemplate(MessageTypes.ENROLLMENT_STATUS, resolveEnrollmentStatusTemplate); MessagingDirector.registerTemplate(MessageTypes.ERROR_REPORT, resolveErrorReportTemplate); + MessagingDirector.registerTemplate(MessageTypes.EVENT_CANCELLED, resolveEventCancelledTemplate); + MessagingDirector.registerTemplate(MessageTypes.TICKET_CANCELLED, resolveTicketCancelledTemplate); subscribe('ORDER_CHECKOUT', async ({ payload }: RawPayloadType<{ order: Order }>) => { const { order } = payload; diff --git a/packages/platform/src/templates/resolveEventCancelledTemplate.ts b/packages/platform/src/templates/resolveEventCancelledTemplate.ts new file mode 100644 index 0000000000..a2d0d4fe34 --- /dev/null +++ b/packages/platform/src/templates/resolveEventCancelledTemplate.ts @@ -0,0 +1,69 @@ +import type { TemplateResolver } from '@unchainedshop/core'; + +const { EMAIL_FROM, EMAIL_WEBSITE_NAME = 'Unchained Shop', EMAIL_WEBSITE_URL } = process.env; + +export const resolveEventCancelledTemplate: TemplateResolver<{ + productId: string; + userId: string; + discountCode?: string; + discountAmount?: number; +}> = async ({ productId, userId, discountCode, discountAmount }, { modules }) => { + const user = await modules.users.findUserById(userId); + if (!user) return []; + + const product = await modules.products.findProduct({ productId }); + if (!product) return []; + + const recipient = + user.lastContact?.emailAddress || modules.users.primaryEmail(user)?.address; + if (!recipient) return []; + + const locale = modules.users.userLocale(user); + const productText = await modules.products.texts.findLocalizedText({ + productId, + locale, + }); + const eventTitle = productText?.title || 'Event'; + + const slot = (product as any).tokenization?.ercMetadataProperties?.slot || product.meta?.slot; + const slotText = slot + ? new Date(slot).toLocaleString(locale.baseName, { dateStyle: 'medium', timeStyle: 'short' }) + : ''; + + const location = product.meta?.location || ''; + + const eventDetails = [slotText, location].filter(Boolean).join(' at '); + + let text = `Hello + +We regret to inform you that the event "${eventTitle}"${eventDetails ? ` (${eventDetails})` : ''} has been cancelled.`; + + if (discountCode && discountAmount) { + text += ` + +As compensation, you have received a discount code worth ${(discountAmount / 100).toFixed(2)}: + + ${discountCode} + +You can use this code for future purchases.`; + } + + text += ` + +We apologize for the inconvenience. + +${EMAIL_WEBSITE_NAME}${EMAIL_WEBSITE_URL ? `\n${EMAIL_WEBSITE_URL}` : ''} +`; + + return [ + { + type: 'EMAIL', + input: { + from: `${EMAIL_WEBSITE_NAME} <${EMAIL_FROM || 'noreply@unchained.local'}>`, + to: recipient, + subject: `${eventTitle}: Event Cancelled`, + text, + }, + }, + ]; +}; diff --git a/packages/platform/src/templates/resolveTicketCancelledTemplate.ts b/packages/platform/src/templates/resolveTicketCancelledTemplate.ts new file mode 100644 index 0000000000..276675f946 --- /dev/null +++ b/packages/platform/src/templates/resolveTicketCancelledTemplate.ts @@ -0,0 +1,72 @@ +import type { TemplateResolver } from '@unchainedshop/core'; + +const { EMAIL_FROM, EMAIL_WEBSITE_NAME = 'Unchained Shop', EMAIL_WEBSITE_URL } = process.env; + +export const resolveTicketCancelledTemplate: TemplateResolver<{ + tokenId: string; + userId: string; + discountCode?: string; + discountAmount?: number; +}> = async ({ tokenId, userId, discountCode, discountAmount }, { modules }) => { + const user = await modules.users.findUserById(userId); + if (!user) return []; + + const token = await modules.warehousing.findToken({ tokenId }); + if (!token) return []; + + const product = await modules.products.findProduct({ productId: token.productId }); + if (!product) return []; + + const recipient = + user.lastContact?.emailAddress || modules.users.primaryEmail(user)?.address; + if (!recipient) return []; + + const locale = modules.users.userLocale(user); + const productText = await modules.products.texts.findLocalizedText({ + productId: token.productId, + locale, + }); + const eventTitle = productText?.title || 'Event'; + + const slot = (product as any).tokenization?.ercMetadataProperties?.slot || product.meta?.slot; + const slotText = slot + ? new Date(slot).toLocaleString(locale.baseName, { dateStyle: 'medium', timeStyle: 'short' }) + : ''; + + const location = product.meta?.location || ''; + + const eventDetails = [slotText, location].filter(Boolean).join(' at '); + + let text = `Hello + +Your ticket for "${eventTitle}"${eventDetails ? ` (${eventDetails})` : ''} has been cancelled.`; + + if (discountCode && discountAmount) { + text += ` + +As compensation, you have received a discount code worth ${(discountAmount / 100).toFixed(2)}: + + ${discountCode} + +You can use this code for future purchases.`; + } + + text += ` + +If you have any questions, please don't hesitate to contact us. + +${EMAIL_WEBSITE_NAME}${EMAIL_WEBSITE_URL ? `\n${EMAIL_WEBSITE_URL}` : ''} +`; + + return [ + { + type: 'EMAIL', + input: { + from: `${EMAIL_WEBSITE_NAME} <${EMAIL_FROM || 'noreply@unchained.local'}>`, + to: recipient, + subject: `${eventTitle}: Ticket Cancelled`, + text, + }, + }, + ]; +}; diff --git a/packages/plugins/src/pricing/discount-reimbursement-code/adapter.ts b/packages/plugins/src/pricing/discount-reimbursement-code/adapter.ts new file mode 100644 index 0000000000..bc994ba747 --- /dev/null +++ b/packages/plugins/src/pricing/discount-reimbursement-code/adapter.ts @@ -0,0 +1,89 @@ +import { + OrderDiscountAdapter, + type OrderDiscountConfiguration, + type IDiscountAdapter, +} from '@unchainedshop/core'; + +export interface PassesModule { + verifyDiscountCode: (code: string) => Promise; + discountCodeUsageBalance: (code: string) => Promise; +} + +const getPassesModule = (modules: Record): PassesModule | null => { + const passes = modules.passes as PassesModule | undefined; + if (!passes?.verifyDiscountCode || !passes?.discountCodeUsageBalance) return null; + return passes; +}; + +export const ReimbursementCode: IDiscountAdapter = { + ...OrderDiscountAdapter, + + key: 'shop.unchained.discount.reimbursement-code', + label: 'Reimbursement Code', + version: '1.0.0', + orderIndex: 2, + + isManualAdditionAllowed: async () => true, + isManualRemovalAllowed: async () => true, + + actions: async ({ context }) => { + const passes = getPassesModule(context.modules as unknown as Record); + + const discountAmount = passes ? await passes.verifyDiscountCode(context.code!) : null; + + const remainingDiscount = async (): Promise => { + if (!passes || discountAmount === null) return 0; + const used = await passes.discountCodeUsageBalance(context.code!); + const value = (discountAmount || 0) / 100; + return Math.max(0, Math.round((value - used) / value)); + }; + + const orderPositions = await context.modules.orders.positions.findOrderPositions({ + orderId: context?.order?._id as string, + }); + + const totalTickets = (orderPositions || []).reduce( + (sum, { quantity }) => sum + quantity, + 0, + ); + + return { + ...(await OrderDiscountAdapter.actions({ context })), + + reserve: async () => { + const remaining = await remainingDiscount(); + return { remainingDiscount: remaining }; + }, + + isValidForSystemTriggering: async () => false, + + isValidForCodeTriggering: async () => { + if (discountAmount === null) return false; + + const remaining = await remainingDiscount(); + const reservation = context.orderDiscount?.reservation; + + if (!remaining) { + if (reservation) return false; + throw new Error('DISCOUNT_USAGE_LIMIT_EXCEEDED'); + } + + if (reservation) { + const reservedItems = Math.max(0, Math.min(reservation.remainingDiscount, totalTickets)); + const currentItems = Math.max(0, Math.min(remaining, totalTickets)); + if (currentItems < reservedItems) return false; + } + + return true; + }, + + discountForPricingAdapterKey({ pricingAdapterKey }) { + if (pricingAdapterKey !== 'shop.unchained.pricing.order-discount') return null; + if (discountAmount === null) return null; + return { fixedRate: discountAmount }; + }, + }; + }, +}; + +export default ReimbursementCode; diff --git a/packages/plugins/src/pricing/discount-reimbursement-code/index.ts b/packages/plugins/src/pricing/discount-reimbursement-code/index.ts new file mode 100644 index 0000000000..567fcb0db8 --- /dev/null +++ b/packages/plugins/src/pricing/discount-reimbursement-code/index.ts @@ -0,0 +1,14 @@ +import { type IPlugin } from '@unchainedshop/core'; +import { ReimbursementCode } from './adapter.ts'; + +export const ReimbursementCodePlugin: IPlugin = { + key: 'shop.unchained.discount.reimbursement-code', + label: 'Reimbursement Code Discount Plugin', + version: '1.0.0', + + adapters: [ReimbursementCode], +}; + +export default ReimbursementCodePlugin; + +export { ReimbursementCode } from './adapter.ts'; diff --git a/packages/ticketing/package.json b/packages/ticketing/package.json index ab905b3721..19122915ea 100644 --- a/packages/ticketing/package.json +++ b/packages/ticketing/package.json @@ -37,6 +37,7 @@ "@unchainedshop/api": "^4.6.0", "@unchainedshop/core": "^4.6.0", "@unchainedshop/core-files": "^4.6.0", + "@unchainedshop/core-orders": "^4.6.0", "@unchainedshop/core-warehousing": "^4.6.0", "@unchainedshop/core-worker": "^4.6.0", "@unchainedshop/events": "^4.6.0", diff --git a/packages/ticketing/src/discount-codes.ts b/packages/ticketing/src/discount-codes.ts new file mode 100644 index 0000000000..6f4d18f037 --- /dev/null +++ b/packages/ticketing/src/discount-codes.ts @@ -0,0 +1,111 @@ + +export interface DiscountCodeHandlers { + generate: (amount: number) => Promise; + verify: (code: string) => Promise; +} + +const defaultDiscountCodeSecret = + '0000000000000000000000000000000000000000000000000000000000000000'; + +async function siphash24Digest(payload: Uint8Array, key: Uint8Array): Promise { + const cryptoKey = await crypto.subtle.importKey( + 'raw', + key as ArrayBufferView, + { name: 'HMAC', hash: 'SHA-256' }, + false, + ['sign'], + ); + const signature = await crypto.subtle.sign('HMAC', cryptoKey, payload as ArrayBufferView); + return new Uint8Array(signature).slice(0, 8); +} + +function toBase58(buffer: Uint8Array): string { + const ALPHABET = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'; + let num = 0n; + for (const byte of buffer) { + num = num * 256n + BigInt(byte); + } + if (num === 0n) return ALPHABET[0]; + let result = ''; + while (num > 0n) { + result = ALPHABET[Number(num % 58n)] + result; + num = num / 58n; + } + return result; +} + +function fromBase58(str: string): Uint8Array { + const ALPHABET = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'; + let num = 0n; + for (const char of str) { + const index = ALPHABET.indexOf(char); + if (index === -1) throw new Error(`Invalid base58 character: ${char}`); + num = num * 58n + BigInt(index); + } + const bytes: number[] = []; + while (num > 0n) { + bytes.unshift(Number(num & 0xffn)); + num = num >> 8n; + } + return new Uint8Array(bytes); +} + +export function createDefaultDiscountCodeHandlers(): DiscountCodeHandlers { + const secret = process.env.DISCOUNT_CODE_SECRET || defaultDiscountCodeSecret; + const keyBytes = new Uint8Array(secret.match(/.{1,2}/g)!.map((byte) => parseInt(byte, 16))); + + const generate = async (priceAmount: number): Promise => { + const salt = crypto.getRandomValues(new Uint16Array(1))[0]; + const priceCents = Math.floor(priceAmount / 100); + const uint16Array = new Uint16Array([priceCents, salt]); + const payloadBuffer = new Uint8Array( + uint16Array.buffer, + uint16Array.byteOffset, + uint16Array.byteLength, + ); + + const hash = await siphash24Digest(payloadBuffer, keyBytes); + const signature = toBase58(hash); + const payload = toBase58(payloadBuffer); + + return signature.replace(/(.{4})(.{4})(.*)/, `${payload}-$1-$2-$3`); + }; + + const verify = async (dashedSignature: string): Promise => { + try { + const [payload] = dashedSignature.split('-'); + const payloadBytes = fromBase58(payload); + // Ensure we have exactly 4 bytes for two uint16 values + const padded = new Uint8Array(4); + padded.set(payloadBytes.slice(0, 4)); + const uint16Array = new Uint16Array(padded.buffer); + + const priceCents = uint16Array[0]; + const salt = uint16Array[1]; + + const priceAmount = Math.floor(priceCents * 100); + const correctSignature = await generate(priceAmount); + + // Need to regenerate with same salt for comparison + const saltedUint16 = new Uint16Array([priceCents, salt]); + const saltedPayload = new Uint8Array( + saltedUint16.buffer, + saltedUint16.byteOffset, + saltedUint16.byteLength, + ); + const hash = await siphash24Digest(saltedPayload, keyBytes); + const sig = toBase58(hash); + const pay = toBase58(saltedPayload); + const expected = sig.replace(/(.{4})(.{4})(.*)/, `${pay}-$1-$2-$3`); + + if (expected === dashedSignature) { + return priceAmount; + } + } catch { + /* invalid code */ + } + return null; + }; + + return { generate, verify }; +} diff --git a/packages/ticketing/src/index.ts b/packages/ticketing/src/index.ts index a9ecf52f90..b727bd9be8 100644 --- a/packages/ticketing/src/index.ts +++ b/packages/ticketing/src/index.ts @@ -1,19 +1,20 @@ import { subscribe } from '@unchainedshop/events'; import type { RawPayloadType } from '@unchainedshop/events'; import { WorkerEventTypes, type Work } from '@unchainedshop/core-worker'; -import type { UnchainedCore } from '@unchainedshop/core'; +import { type UnchainedCore } from '@unchainedshop/core'; import { RendererTypes, registerRenderer } from './template-registry.ts'; -import ticketingModules, { type TicketingModule } from './module.ts'; +import ticketingModules, { type TicketingModule, type TicketingOptions } from './module.ts'; import setupMagicKey from './magic-key.ts'; import ticketingServices, { type TicketingServices } from './services.ts'; +import type { DiscountCodeHandlers } from './discount-codes.ts'; export type TicketingAPI = UnchainedCore & { modules: TicketingModule; services: TicketingServices; }; -export type { RendererTypes, TicketingModule, TicketingServices }; +export type { RendererTypes, TicketingModule, TicketingServices, TicketingOptions, DiscountCodeHandlers }; export { ticketingServices, ticketingModules }; @@ -52,6 +53,7 @@ export default function setupTicketing( createGoogleWalletPass, }); + if (!process.env.UNCHAINED_SECRET) throw new Error( 'Unchained Ticketing needs the UNCHAINED_SECRET environment variable to be set in order to allow magic key access to orders and tokens.', diff --git a/packages/ticketing/src/module.ts b/packages/ticketing/src/module.ts index dfc967657a..9e2d7c2ae4 100644 --- a/packages/ticketing/src/module.ts +++ b/packages/ticketing/src/module.ts @@ -8,14 +8,25 @@ import type { File } from '@unchainedshop/core-files'; import { RendererTypes, getRenderer } from './template-registry.ts'; import { buildPassBinary, pushToApplePushNotificationService } from './mobile-tickets/apple-wallet.ts'; +import { + type DiscountCodeHandlers, + createDefaultDiscountCodeHandlers, +} from './discount-codes.ts'; +import { OrdersCollection, OrderStatus } from '@unchainedshop/core-orders'; export const APPLE_WALLET_PASSES_FILE_DIRECTORY = 'apple-wallet-passes'; const logger = createLogger('unchained:apple-wallet-webservice'); -const configurePasses = async ({ db }: ModuleInput>) => { +export interface TicketingOptions { + discountCode?: DiscountCodeHandlers; +} + +const configurePasses = async ({ db, options }: ModuleInput) => { + const discountCodeHandlers = options?.discountCode || createDefaultDiscountCodeHandlers(); const MediaObjects = await MediaObjectsCollection(db); const TokenSurrogates = await TokenSurrogateCollection(db); + const Orders = await OrdersCollection(db); await buildDbIndexes(TokenSurrogates as any, [ { index: { 'meta.cancelled': 1 }, options: { sparse: true } }, @@ -224,6 +235,61 @@ const configurePasses = async ({ db }: ModuleInput>) => { } return TokenSurrogates.countDocuments(selector); }; + const discountCodeUsageBalance = async (discountCode: string): Promise => { + const orders = await Orders.aggregate([ + { + $match: { + status: { + $in: [OrderStatus.CONFIRMED, OrderStatus.FULFILLED], + }, + }, + }, + { + $lookup: { + from: 'order_discounts', + localField: 'calculation.discountId', + foreignField: '_id', + as: 'discounts', + }, + }, + { + $unwind: '$discounts', + }, + { + $match: { 'discounts.code': discountCode }, + }, + { + $project: { + calculations: { + $filter: { + input: '$calculation', + as: 'calc', + cond: { + $and: [ + { $eq: ['$$calc.category', 'DISCOUNTS'] }, + { $eq: ['$$calc.discountId', '$discounts._id'] }, + ], + }, + }, + }, + }, + }, + ]).toArray(); + + return Math.round( + Math.abs( + orders.reduce((prev, { calculations }) => { + return ( + prev + + (calculations as any[]).reduce( + (p: number, { amount }: { amount: number }) => p + amount / 100, + 0, + ) + ); + }, 0), + ), + ); + }; return { upsertAppleWalletPass, @@ -237,6 +303,9 @@ const configurePasses = async ({ db }: ModuleInput>) => { cancelTicket, isTicketCancelled, getTicketsCreated, + generateDiscountCode: discountCodeHandlers.generate, + verifyDiscountCode: discountCodeHandlers.verify, + discountCodeUsageBalance, }; }; diff --git a/packages/ticketing/src/services.ts b/packages/ticketing/src/services.ts index 195933c1b3..6ddb2e013b 100644 --- a/packages/ticketing/src/services.ts +++ b/packages/ticketing/src/services.ts @@ -1,10 +1,21 @@ +import { ProductType } from '@unchainedshop/core-products'; import type { TicketingModule } from './module.ts'; import type { Bound, UnchainedCore } from '@unchainedshop/core'; +interface DiscountOptions { + generateDiscount?: boolean; + countryCode?: string; + currencyCode?: string; +} + async function cancelTicketsForProduct( this: TicketingModule & UnchainedCore['modules'], productId: string, -): Promise { + options?: DiscountOptions, +): Promise<{ + cancelledCount: number; + discountCodes?: Array<{ userId: string; discountCode: string; amount: number }>; +}> { const tokensToCancel = await this.warehousing.findTokens({ productId, 'meta.cancelled': null, @@ -19,17 +30,126 @@ async function cancelTicketsForProduct( 'meta.cancelled': true, }); - return tokensToCancel.length; + let discountCodes: Array<{ userId: string; discountCode: string; amount: number }> | undefined; + + if (options?.generateDiscount && tokensToCancel.length > 0 && options.countryCode) { + const product = await this.products.findProduct({ productId }); + const price = + product && + (await this.products.prices.price(product, { + countryCode: options.countryCode, + currencyCode: options.currencyCode, + })); + + if (price?.amount) { + const userTokenCounts = tokensToCancel.reduce( + (acc, token) => { + if (token.userId) { + acc[token.userId] = (acc[token.userId] || 0) + 1; + } + return acc; + }, + {} as Record, + ); + + discountCodes = []; + for (const [userId, quantity] of Object.entries(userTokenCounts)) { + const totalAmount = price.amount * quantity; + const discountCode = await this.passes.generateDiscountCode(totalAmount); + discountCodes.push({ userId, discountCode, amount: totalAmount }); + } + } + } + + return { cancelledCount: tokensToCancel.length, discountCodes }; +} + +async function cancelTicketWithDiscount( + this: TicketingModule & UnchainedCore['modules'], + tokenId: string, + options?: DiscountOptions, +): Promise<{ token: any; discountCode?: string; amount?: number }> { + await this.warehousing.invalidateToken(tokenId); + const cancelledToken = await this.passes.cancelTicket(tokenId); + + let discountCode: string | undefined; + let amount: number | undefined; + + if (options?.generateDiscount && cancelledToken && options.countryCode) { + const product = await this.products.findProduct({ productId: cancelledToken.productId }); + const price = + product && + (await this.products.prices.price(product, { + countryCode: options.countryCode, + currencyCode: options.currencyCode, + })); + + if (price?.amount) { + amount = price.amount; + discountCode = await this.passes.generateDiscountCode(amount); + } + } + + return { token: cancelledToken, discountCode, amount }; +} + +async function isPassCodeValid( + this: TicketingModule & UnchainedCore['modules'], + passCode: string, + productId?: string, +): Promise { + if (!passCode) return false; + + const products = await this.products.findProducts({ + type: ProductType.TOKENIZED_PRODUCT, + includeDrafts: false, + }); + + const matchingProducts = productId ? products.filter((p) => p._id === productId) : products; + + return matchingProducts + .filter(Boolean) + .some( + (p) => + (p.meta as Record)?.scannerPassCode?.toLowerCase().trim() === + passCode.toLowerCase().trim(), + ); +} + +async function productIdsForPassCode( + this: TicketingModule & UnchainedCore['modules'], + passCode: string, +): Promise { + if (!passCode) return []; + + const products = await this.products.findProducts({ + type: ProductType.TOKENIZED_PRODUCT, + includeDrafts: false, + }); + + return products + .filter( + (p) => + (p.meta as Record)?.scannerPassCode?.toLowerCase().trim() === + passCode.toLowerCase().trim(), + ) + .map((p) => p._id); } export default { ticketing: { cancelTicketsForProduct, + cancelTicketWithDiscount, + isPassCodeValid, + productIdsForPassCode, }, }; export interface TicketingServices { ticketing: { cancelTicketsForProduct: Bound; + cancelTicketWithDiscount: Bound; + isPassCodeValid: Bound; + productIdsForPassCode: Bound; }; } From 80100b9693aa00cc1c1136039430cc8dbe30a60e Mon Sep 17 00:00:00 2001 From: Mikael Araya Date: Wed, 11 Mar 2026 23:52:46 +0300 Subject: [PATCH 5/7] Use cookie based access control for admin-ui gate control and improve access control implementation --- admin-ui/src/gql/types.ts | 84 ++++++-- .../apollo/utils/createApolloClient.ts | 15 +- .../ticketing/components/GateAttendeeList.tsx | 182 +++++++++--------- .../ticketing/components/GateControl.tsx | 110 ++++++++--- .../ticketing/components/GateEventList.tsx | 93 +++++++++ .../components/TicketEventDetail.tsx | 58 ++++-- .../modules/ticketing/hooks/useCancelEvent.ts | 14 +- .../ticketing/hooks/useCancelTicket.ts | 14 +- .../ticketing/hooks/useCheckGateCookie.ts | 32 +++ .../ticketing/hooks/useGateEventDetail.ts | 79 ++++++++ .../modules/ticketing/hooks/useGateEvents.ts | 62 ++---- .../ticketing/hooks/useIsPassCodeValid.ts | 62 +++--- admin-ui/src/pages/ticketing/gate.tsx | 31 +-- admin-ui/src/pages/tokens/TokenDetailPage.tsx | 30 ++- packages/api/src/context.ts | 26 ++- packages/api/src/express/index.ts | 3 + packages/api/src/fastify/index.ts | 3 + packages/api/src/resolvers/mutations/index.ts | 4 + .../mutations/warehousing/authenticateGate.ts | 58 ++++++ .../mutations/warehousing/cancelEvent.ts | 20 +- .../mutations/warehousing/cancelTicket.ts | 16 +- .../warehousing/deauthenticateGate.ts | 36 ++++ .../queries/ticketing/isPassCodeValid.ts | 2 +- .../queries/ticketing/ticketEvents.ts | 43 +++-- .../queries/ticketing/ticketEventsCount.ts | 36 +++- .../type/product/product-tokenized-types.ts | 4 +- packages/api/src/roles/all.ts | 10 +- packages/api/src/schema/mutation.ts | 11 ++ packages/api/src/schema/query.ts | 9 +- .../src/factory/registerVirtualWarehousing.ts | 12 +- .../resolveEventCancelledTemplate.ts | 3 +- .../resolveTicketCancelledTemplate.ts | 3 +- .../discount-reimbursement-code/adapter.ts | 5 +- packages/ticketing/src/discount-codes.ts | 5 +- packages/ticketing/src/index.ts | 9 +- packages/ticketing/src/module.ts | 5 +- packages/ticketing/src/services.ts | 50 ++++- 37 files changed, 894 insertions(+), 345 deletions(-) create mode 100644 admin-ui/src/modules/ticketing/components/GateEventList.tsx create mode 100644 admin-ui/src/modules/ticketing/hooks/useCheckGateCookie.ts create mode 100644 admin-ui/src/modules/ticketing/hooks/useGateEventDetail.ts create mode 100644 packages/api/src/resolvers/mutations/warehousing/authenticateGate.ts create mode 100644 packages/api/src/resolvers/mutations/warehousing/deauthenticateGate.ts diff --git a/admin-ui/src/gql/types.ts b/admin-ui/src/gql/types.ts index d2b3449db1..98c3d6266b 100644 --- a/admin-ui/src/gql/types.ts +++ b/admin-ui/src/gql/types.ts @@ -1033,6 +1033,11 @@ export type IMutation = { * Optional worker to identify the worker. */ allocateWork?: Maybe; + /** + * Authenticate gate control by validating a pass code and setting an HttpOnly cookie. + * Returns true if the pass code is valid. + */ + authenticateGate: Scalars['Boolean']['output']; /** * Toggle Bookmark state on a product as currently logged in user, * Does not work when multiple bookmarks with different explicit meta configurations exist. @@ -1101,6 +1106,8 @@ export type IMutation = { createWebAuthnCredentialCreationOptions?: Maybe; /** Create WebAuthn PublicKeyCredentialRequestrOptions to use for WebAuthn Login Flow */ createWebAuthnCredentialRequestOptions?: Maybe; + /** Deauthenticate gate control by clearing the gate pass code cookie. */ + deauthenticateGate: Scalars['Boolean']['output']; /** Manually mark a undelivered order as delivered */ deliverOrder: IOrder; /** @@ -1459,6 +1466,10 @@ export type IMutationAllocateWorkArgs = { worker?: InputMaybe; }; +export type IMutationAuthenticateGateArgs = { + passCode: Scalars['String']['input']; +}; + export type IMutationBookmarkArgs = { bookmarked?: InputMaybe; productId: Scalars['ID']['input']; @@ -2867,7 +2878,7 @@ export type IQuery = { /** User impersonating currently logged in user */ impersonator?: Maybe; /** - * Validates a scanner pass code for gate access. Pass code is checked via x-passcode header. + * Validates a scanner pass code for gate access. Pass code is read from the unchained_gate_passcode cookie (set via authenticateGate mutation). * Optionally restricted to a specific product. */ isPassCodeValid: Scalars['Boolean']['output']; @@ -3254,12 +3265,14 @@ export type IQueryTicketEventsArgs = { includeDrafts?: InputMaybe; limit?: InputMaybe; offset?: InputMaybe; + onlyInvalidateable?: InputMaybe; queryString?: InputMaybe; sort?: InputMaybe>; }; export type IQueryTicketEventsCountArgs = { includeDrafts?: InputMaybe; + onlyInvalidateable?: InputMaybe; queryString?: InputMaybe; }; @@ -15851,12 +15864,14 @@ export type IVerifyQuotationMutation = { export type ICancelEventMutationVariables = Exact<{ productId: Scalars['ID']['input']; + generateDiscount?: InputMaybe; }>; export type ICancelEventMutation = { cancelEvent: number }; export type ICancelTicketMutationVariables = Exact<{ tokenId: Scalars['ID']['input']; + generateDiscount?: InputMaybe; }>; export type ICancelTicketMutation = { @@ -15869,6 +15884,10 @@ export type ICancelTicketMutation = { }; }; +export type ICheckGateCookieQueryVariables = Exact<{ [key: string]: never }>; + +export type ICheckGateCookieQuery = { isPassCodeValid: boolean }; + export type ITicketEventsQueryVariables = Exact<{ queryString?: InputMaybe; limit?: InputMaybe; @@ -15936,18 +15955,19 @@ export type ITicketEventsQuery = { >; }; -export type IGateEventsQueryVariables = Exact<{ [key: string]: never }>; +export type IGateEventDetailQueryVariables = Exact<{ + productId: Scalars['ID']['input']; +}>; -export type IGateEventsQuery = { - ticketEvents: Array< - | { _id: string; status: IProductStatus } - | { _id: string; status: IProductStatus } - | { _id: string; status: IProductStatus } - | { _id: string; status: IProductStatus } +export type IGateEventDetailQuery = { + product?: + | { _id: string } + | { _id: string } + | { _id: string } + | { _id: string } | { isCanceled?: boolean | null; _id: string; - status: IProductStatus; texts?: { _id: string; title?: string | null; @@ -15984,14 +16004,54 @@ export type IGateEventsQuery = { } | null; }>; } + | null; +}; + +export type IGateEventsQueryVariables = Exact<{ + onlyInvalidateable: Scalars['Boolean']['input']; +}>; + +export type IGateEventsQuery = { + ticketEvents: Array< + | { _id: string; status: IProductStatus } + | { _id: string; status: IProductStatus } + | { _id: string; status: IProductStatus } + | { _id: string; status: IProductStatus } + | { + isCanceled?: boolean | null; + _id: string; + status: IProductStatus; + texts?: { + _id: string; + title?: string | null; + subtitle?: string | null; + } | null; + contractConfiguration?: { + ercMetadataProperties?: any | null; + supply: number; + } | null; + tokens: Array<{ + _id: string; + tokenSerialNumber?: string | null; + isCanceled?: boolean | null; + invalidatedDate?: any | null; + isInvalidateable: boolean; + }>; + } >; }; -export type IIsPassCodeValidQueryVariables = Exact<{ - productId?: InputMaybe; +export type IAuthenticateGateMutationVariables = Exact<{ + passCode: Scalars['String']['input']; +}>; + +export type IAuthenticateGateMutation = { authenticateGate: boolean }; + +export type IDeauthenticateGateMutationVariables = Exact<{ + [key: string]: never; }>; -export type IIsPassCodeValidQuery = { isPassCodeValid: boolean }; +export type IDeauthenticateGateMutation = { deauthenticateGate: boolean }; export type ISetEventScannerPassCodeMutationVariables = Exact<{ productId: Scalars['ID']['input']; diff --git a/admin-ui/src/modules/apollo/utils/createApolloClient.ts b/admin-ui/src/modules/apollo/utils/createApolloClient.ts index 3137f8bb86..b0606f6ad4 100644 --- a/admin-ui/src/modules/apollo/utils/createApolloClient.ts +++ b/admin-ui/src/modules/apollo/utils/createApolloClient.ts @@ -17,7 +17,6 @@ const allowedHeaders = [ 'x-mapihttpcapability', 'x-real-ip', 'x-user-identity', - 'x-passcode', 'host', 'cookie', 'authorization', @@ -61,16 +60,6 @@ const createApolloClient = ({ includeExtensions: true, }); - const passCodeLink = new SetContextLink(() => { - if (typeof window !== 'undefined') { - const passCode = window.sessionStorage.getItem('gate-passcode'); - if (passCode) { - return { headers: { 'x-passcode': passCode } }; - } - } - return {}; - }); - const errorLink = new ErrorLink(({ error, operation }) => { if (CombinedGraphQLErrors.is(error)) { error.errors.forEach(({ message, locations, path, extensions }) => { @@ -100,9 +89,7 @@ const createApolloClient = ({ }, ssrMode: typeof window === 'undefined', - link: ApolloLink.from( - [errorLink, passCodeLink, localeLink, httpLink].filter(Boolean), - ), + link: ApolloLink.from([errorLink, localeLink, httpLink].filter(Boolean)), cache, devtools: { enabled: process.env.NODE_ENV === 'development', diff --git a/admin-ui/src/modules/ticketing/components/GateAttendeeList.tsx b/admin-ui/src/modules/ticketing/components/GateAttendeeList.tsx index 2d2cec35dc..c0a1f466eb 100644 --- a/admin-ui/src/modules/ticketing/components/GateAttendeeList.tsx +++ b/admin-ui/src/modules/ticketing/components/GateAttendeeList.tsx @@ -7,7 +7,7 @@ import useFormatDateTime from '../../common/utils/useFormatDateTime'; import formatUsername from '../../common/utils/formatUsername'; import useInvalidateTicket from '../../token/hooks/useInvalidateTicket'; -const GateAttendeeList = ({ event }) => { +const GateAttendeeList = ({ event, onRefetch }) => { const { formatMessage } = useIntl(); const { formatDateTime } = useFormatDateTime(); const { invalidateTicket } = useInvalidateTicket(); @@ -26,6 +26,7 @@ const GateAttendeeList = ({ event }) => { defaultMessage: 'Ticket redeemed successfully', }), ); + onRefetch?.(); } catch (e) { toast.error( formatMessage({ @@ -38,12 +39,9 @@ const GateAttendeeList = ({ event }) => { }, []); return ( -
+
-

- {event?.texts?.title} -

{slot && (

{formatDateTime(slot, { @@ -75,103 +73,105 @@ const GateAttendeeList = ({ event }) => { })}

) : ( - - - - {formatMessage({ - id: 'ticket_number', - defaultMessage: 'Ticket #', - })} - - - {formatMessage({ - id: 'attendee', - defaultMessage: 'Attendee', - })} - - - {formatMessage({ - id: 'email', - defaultMessage: 'E-Mail', - })} - - - {formatMessage({ - id: 'status', - defaultMessage: 'Status', - })} - - - {formatMessage({ - id: 'actions', - defaultMessage: 'Actions', - })} - - - {activeTokens.map((token) => ( - +
+
+ - - {token.tokenSerialNumber || token._id?.slice(-8)} - + {formatMessage({ + id: 'ticket_number', + defaultMessage: 'Ticket #', + })} - - {token.user ? formatUsername(token.user) : '-'} - + {formatMessage({ + id: 'attendee', + defaultMessage: 'Attendee', + })} - - {token.user?.lastContact?.emailAddress || - token.user?.primaryEmail?.address || - '-'} - + {formatMessage({ + id: 'email', + defaultMessage: 'E-Mail', + })} - {token.invalidatedDate ? ( - - ) : ( - - )} + {formatMessage({ + id: 'status', + defaultMessage: 'Status', + })} - {!token.invalidatedDate && token.isInvalidateable && ( - - )} - {token.invalidatedDate && ( - - {formatMessage({ - id: 'gate_checked_in', - defaultMessage: 'Checked in', - })} - - )} + {formatMessage({ + id: 'actions', + defaultMessage: 'Actions', + })} - ))} -
+ {activeTokens.map((token) => ( + + + + {token.tokenSerialNumber || token._id?.slice(-8)} + + + + + {token.user ? formatUsername(token.user) : '-'} + + + + + {token.user?.lastContact?.emailAddress || + token.user?.primaryEmail?.address || + '-'} + + + + {token.invalidatedDate ? ( + + ) : ( + + )} + + + {!token.invalidatedDate && token.isInvalidateable && ( + + )} + {token.invalidatedDate && ( + + {formatMessage({ + id: 'gate_checked_in', + defaultMessage: 'Checked in', + })} + + )} + + + ))} + +
)}
); diff --git a/admin-ui/src/modules/ticketing/components/GateControl.tsx b/admin-ui/src/modules/ticketing/components/GateControl.tsx index 058cff19a9..ae0825a0a0 100644 --- a/admin-ui/src/modules/ticketing/components/GateControl.tsx +++ b/admin-ui/src/modules/ticketing/components/GateControl.tsx @@ -1,45 +1,105 @@ +import { useState } from 'react'; import { useIntl } from 'react-intl'; import Loading from '../../common/components/Loading'; import NoData from '../../common/components/NoData'; import useGateEvents from '../hooks/useGateEvents'; +import useGateEventDetail from '../hooks/useGateEventDetail'; +import useIsPassCodeValid from '../hooks/useIsPassCodeValid'; +import GateEventList from './GateEventList'; import GateAttendeeList from './GateAttendeeList'; -const GateControl = ({ onLogout }) => { +const GateControl = ({ onLogout, isAdmin = false }) => { const { formatMessage } = useIntl(); - const { todayEvents, loading } = useGateEvents(); + const { clearPassCode } = useIsPassCodeValid(); + const { events, loading: eventsLoading } = useGateEvents({ + onlyInvalidateable: !isAdmin, + }); + const [selectedEventId, setSelectedEventId] = useState(null); + const { + event: selectedEvent, + loading: detailLoading, + refetch, + } = useGateEventDetail(selectedEventId); + + const selectedEventFromList: any = selectedEventId + ? events.find((e: any) => e._id === selectedEventId) + : null; + + const title = + selectedEventFromList?.texts?.title || (selectedEvent as any)?.texts?.title; return (
-

- {formatMessage({ - id: 'gate_todays_events', - defaultMessage: "Today's Events", - })} -

- +
+ {selectedEventId && ( + + )} +

+ {selectedEventId + ? title + : formatMessage({ + id: isAdmin ? 'gate_all_events' : 'gate_active_events', + defaultMessage: isAdmin ? 'All Events' : 'Active Events', + })} +

+
+ {onLogout && ( + + )}
- {loading ? ( + {selectedEventId ? ( + detailLoading && !selectedEvent ? ( + + ) : selectedEvent ? ( + + ) : ( + + ) + ) : eventsLoading ? ( - ) : todayEvents.length ? ( - todayEvents.map((event) => ( - - )) + ) : events.length ? ( + setSelectedEventId(e._id)} + /> ) : ( )} diff --git a/admin-ui/src/modules/ticketing/components/GateEventList.tsx b/admin-ui/src/modules/ticketing/components/GateEventList.tsx new file mode 100644 index 0000000000..d5bb2db989 --- /dev/null +++ b/admin-ui/src/modules/ticketing/components/GateEventList.tsx @@ -0,0 +1,93 @@ +import { useIntl } from 'react-intl'; +import useFormatDateTime from '../../common/utils/useFormatDateTime'; +import Badge from '../../common/components/Badge'; + +const GateEventList = ({ events, onSelectEvent }) => { + const { formatMessage } = useIntl(); + const { formatDateTime } = useFormatDateTime(); + + return ( +
+ {events.map((event: any) => { + const slot = event?.contractConfiguration?.ercMetadataProperties?.slot; + const tokens = event?.tokens || []; + const activeTokens = tokens.filter((t) => !t.isCanceled); + const redeemedCount = activeTokens.filter( + (t) => t.invalidatedDate, + ).length; + const invalidateableCount = activeTokens.filter( + (t) => t.isInvalidateable && !t.invalidatedDate, + ).length; + + return ( + + ); + })} +
+ ); +}; + +export default GateEventList; diff --git a/admin-ui/src/modules/ticketing/components/TicketEventDetail.tsx b/admin-ui/src/modules/ticketing/components/TicketEventDetail.tsx index 33a10f056f..34aec13c79 100644 --- a/admin-ui/src/modules/ticketing/components/TicketEventDetail.tsx +++ b/admin-ui/src/modules/ticketing/components/TicketEventDetail.tsx @@ -35,18 +35,36 @@ const TicketEventDetail = ({ product }) => { const redeemedTokens = activeTokens.filter((t) => t.invalidatedDate); const onCancelEvent = useCallback(async () => { + let generateDiscount = false; await setModal( setModal('')} - message={formatMessage({ - id: 'cancel_event_confirmation', - defaultMessage: - 'Are you sure you want to cancel this event? All tickets will be cancelled.', - })} + message={ + <> + {formatMessage({ + id: 'cancel_event_confirmation', + defaultMessage: + 'Are you sure you want to cancel this event? All tickets will be cancelled.', + })} + + + } onOkClick={async () => { setModal(''); try { - await cancelEvent({ productId: product._id }); + await cancelEvent({ productId: product._id, generateDiscount }); toast.success( formatMessage({ id: 'event_cancelled', @@ -66,17 +84,35 @@ const TicketEventDetail = ({ product }) => { }, [product?._id]); const onCancelTicket = useCallback(async (tokenId: string) => { + let generateDiscount = false; await setModal( setModal('')} - message={formatMessage({ - id: 'cancel_ticket_confirmation', - defaultMessage: 'Are you sure you want to cancel this ticket?', - })} + message={ + <> + {formatMessage({ + id: 'cancel_ticket_confirmation', + defaultMessage: 'Are you sure you want to cancel this ticket?', + })} + + + } onOkClick={async () => { setModal(''); try { - await cancelTicket({ tokenId }); + await cancelTicket({ tokenId, generateDiscount }); toast.success( formatMessage({ id: 'ticket_cancelled', diff --git a/admin-ui/src/modules/ticketing/hooks/useCancelEvent.ts b/admin-ui/src/modules/ticketing/hooks/useCancelEvent.ts index fbe46af5aa..0f77cb9bf8 100644 --- a/admin-ui/src/modules/ticketing/hooks/useCancelEvent.ts +++ b/admin-ui/src/modules/ticketing/hooks/useCancelEvent.ts @@ -2,17 +2,23 @@ import { gql } from '@apollo/client'; import { useMutation } from '@apollo/client/react'; const CancelEventMutation = gql` - mutation CancelEvent($productId: ID!) { - cancelEvent(productId: $productId) + mutation CancelEvent($productId: ID!, $generateDiscount: Boolean) { + cancelEvent(productId: $productId, generateDiscount: $generateDiscount) } `; const useCancelEvent = () => { const [cancelEventMutation] = useMutation(CancelEventMutation); - const cancelEvent = async ({ productId }: { productId: string }) => { + const cancelEvent = async ({ + productId, + generateDiscount, + }: { + productId: string; + generateDiscount?: boolean; + }) => { const result = await cancelEventMutation({ - variables: { productId }, + variables: { productId, generateDiscount }, refetchQueries: ['Product', 'TicketEvents', 'Tokens'], }); return result; diff --git a/admin-ui/src/modules/ticketing/hooks/useCancelTicket.ts b/admin-ui/src/modules/ticketing/hooks/useCancelTicket.ts index ce505f93a8..9f462f061b 100644 --- a/admin-ui/src/modules/ticketing/hooks/useCancelTicket.ts +++ b/admin-ui/src/modules/ticketing/hooks/useCancelTicket.ts @@ -2,8 +2,8 @@ import { gql } from '@apollo/client'; import { useMutation } from '@apollo/client/react'; const CancelTicketMutation = gql` - mutation CancelTicket($tokenId: ID!) { - cancelTicket(tokenId: $tokenId) { + mutation CancelTicket($tokenId: ID!, $generateDiscount: Boolean) { + cancelTicket(tokenId: $tokenId, generateDiscount: $generateDiscount) { _id isCanceled invalidatedDate @@ -16,9 +16,15 @@ const CancelTicketMutation = gql` const useCancelTicket = () => { const [cancelTicketMutation] = useMutation(CancelTicketMutation); - const cancelTicket = async ({ tokenId }: { tokenId: string }) => { + const cancelTicket = async ({ + tokenId, + generateDiscount, + }: { + tokenId: string; + generateDiscount?: boolean; + }) => { const result = await cancelTicketMutation({ - variables: { tokenId }, + variables: { tokenId, generateDiscount }, refetchQueries: ['Product', 'TicketEvents', 'Tokens', 'Token'], }); return result; diff --git a/admin-ui/src/modules/ticketing/hooks/useCheckGateCookie.ts b/admin-ui/src/modules/ticketing/hooks/useCheckGateCookie.ts new file mode 100644 index 0000000000..afeac321f2 --- /dev/null +++ b/admin-ui/src/modules/ticketing/hooks/useCheckGateCookie.ts @@ -0,0 +1,32 @@ +import { gql } from '@apollo/client'; +import { useQuery } from '@apollo/client/react'; +import { useCurrentUser } from '../../accounts'; +import { + ICheckGateCookieQuery, + ICheckGateCookieQueryVariables, +} from '../../../gql/types'; + +const CheckGateCookieQuery = gql` + query CheckGateCookie { + isPassCodeValid + } +`; +const useCheckGateCookie = () => { + const { currentUser } = useCurrentUser(); + const isAdmin = Boolean(currentUser?._id); + const { data, loading, refetch } = useQuery< + ICheckGateCookieQuery, + ICheckGateCookieQueryVariables + >(CheckGateCookieQuery, { + fetchPolicy: 'cache-and-network', + skip: isAdmin, + }); + const authenticated = isAdmin || data?.isPassCodeValid === true; + return { + authenticated, + loading, + refetch, + }; +}; + +export default useCheckGateCookie; diff --git a/admin-ui/src/modules/ticketing/hooks/useGateEventDetail.ts b/admin-ui/src/modules/ticketing/hooks/useGateEventDetail.ts new file mode 100644 index 0000000000..b641dc87f1 --- /dev/null +++ b/admin-ui/src/modules/ticketing/hooks/useGateEventDetail.ts @@ -0,0 +1,79 @@ +import { gql } from '@apollo/client'; +import { useQuery } from '@apollo/client/react'; +import { + IGateEventDetailQuery, + IGateEventDetailQueryVariables, +} from '../../../gql/types'; + +const GateEventDetailQuery = gql` + query GateEventDetail($productId: ID!) { + product(productId: $productId) { + _id + ... on TokenizedProduct { + texts { + _id + title + subtitle + } + contractConfiguration { + ercMetadataProperties + supply + } + isCanceled + tokens { + _id + tokenSerialNumber + isCanceled + invalidatedDate + isInvalidateable + ercMetadata + user { + _id + username + isGuest + primaryEmail { + address + verified + } + avatar { + _id + url + } + profile { + displayName + address { + firstName + lastName + } + } + lastContact { + emailAddress + telNumber + } + } + } + } + } + } +`; + +const useGateEventDetail = (productId: string | null) => { + const { data, loading, error, refetch, previousData } = useQuery< + IGateEventDetailQuery, + IGateEventDetailQueryVariables + >(GateEventDetailQuery, { + variables: { productId }, + skip: !productId, + fetchPolicy: 'cache-and-network', + pollInterval: 10000, + }); + + return { + event: data?.product || previousData?.product || null, + loading, + error, + refetch, + }; +}; + +export default useGateEventDetail; diff --git a/admin-ui/src/modules/ticketing/hooks/useGateEvents.ts b/admin-ui/src/modules/ticketing/hooks/useGateEvents.ts index 14154b53e2..ce5e52f079 100644 --- a/admin-ui/src/modules/ticketing/hooks/useGateEvents.ts +++ b/admin-ui/src/modules/ticketing/hooks/useGateEvents.ts @@ -6,8 +6,12 @@ import { } from '../../../gql/types'; const GateEventsQuery = gql` - query GateEvents { - ticketEvents(limit: 100, includeDrafts: false) { + query GateEvents($onlyInvalidateable: Boolean!) { + ticketEvents( + limit: 100 + includeDrafts: false + onlyInvalidateable: $onlyInvalidateable + ) { _id status ... on TokenizedProduct { @@ -27,64 +31,32 @@ const GateEventsQuery = gql` isCanceled invalidatedDate isInvalidateable - ercMetadata - user { - _id - username - isGuest - primaryEmail { - address - verified - } - avatar { - _id - url - } - profile { - displayName - address { - firstName - lastName - } - } - lastContact { - emailAddress - telNumber - } - } } } } } `; -const isToday = (dateStr: string) => { - if (!dateStr) return false; - const today = new Date().toLocaleDateString(); - const target = new Date(dateStr).toLocaleDateString(); - return today === target; -}; - -const useGateEvents = () => { - const { data, loading, error, refetch } = useQuery< +const useGateEvents = ({ + onlyInvalidateable = false, +}: { onlyInvalidateable?: boolean } = {}) => { + const { data, loading, error, refetch, previousData } = useQuery< IGateEventsQuery, IGateEventsQueryVariables >(GateEventsQuery, { + variables: { onlyInvalidateable }, fetchPolicy: 'cache-and-network', pollInterval: 10000, }); - const allEvents = data?.ticketEvents || []; - const todayEvents = allEvents.filter( - (p: any) => - p?.tokens?.length && - !p.isCanceled && - isToday(p?.contractConfiguration?.ercMetadataProperties?.slot), - ); + const events = ( + data?.ticketEvents || + previousData?.ticketEvents || + [] + ).filter((p: any) => p?.tokens?.length && !p.isCanceled); return { - todayEvents, - allEvents, + events, loading, error, refetch, diff --git a/admin-ui/src/modules/ticketing/hooks/useIsPassCodeValid.ts b/admin-ui/src/modules/ticketing/hooks/useIsPassCodeValid.ts index e1e70ce1f6..d6ea4e66f4 100644 --- a/admin-ui/src/modules/ticketing/hooks/useIsPassCodeValid.ts +++ b/admin-ui/src/modules/ticketing/hooks/useIsPassCodeValid.ts @@ -1,45 +1,57 @@ import { gql } from '@apollo/client'; -import { useLazyQuery } from '@apollo/client/react'; +import { useMutation } from '@apollo/client/react'; import { - IIsPassCodeValidQuery, - IIsPassCodeValidQueryVariables, + IAuthenticateGateMutation, + IAuthenticateGateMutationVariables, + IDeauthenticateGateMutation, + IDeauthenticateGateMutationVariables, } from '../../../gql/types'; -const IsPassCodeValidQuery = gql` - query IsPassCodeValid($productId: ID) { - isPassCodeValid(productId: $productId) +const AuthenticateGateMutation = gql` + mutation AuthenticateGate($passCode: String!) { + authenticateGate(passCode: $passCode) + } +`; + +const DeauthenticateGateMutation = gql` + mutation DeauthenticateGate { + deauthenticateGate } `; const useIsPassCodeValid = () => { - const [checkPassCode, { data, loading, error }] = useLazyQuery< - IIsPassCodeValidQuery, - IIsPassCodeValidQueryVariables - >(IsPassCodeValidQuery, { - fetchPolicy: 'network-only', - }); + const [authenticateGate, { loading: authLoading }] = useMutation< + IAuthenticateGateMutation, + IAuthenticateGateMutationVariables + >(AuthenticateGateMutation); + const [deauthenticateGate, { loading: deauthLoading }] = useMutation< + IDeauthenticateGateMutation, + IDeauthenticateGateMutationVariables + >(DeauthenticateGateMutation); - const validatePassCode = async (passCode: string, productId?: string) => { - window.sessionStorage.setItem('gate-passcode', passCode); - const result = await checkPassCode({ - variables: { productId }, - }); - if (!result.data?.isPassCodeValid) { - window.sessionStorage.removeItem('gate-passcode'); + const validatePassCode = async (passCode: string) => { + try { + const result = await authenticateGate({ + variables: { passCode }, + }); + return result.data?.authenticateGate || false; + } catch { + return false; } - return result.data?.isPassCodeValid || false; }; - const clearPassCode = () => { - window.sessionStorage.removeItem('gate-passcode'); + const clearPassCode = async () => { + try { + await deauthenticateGate(); + } catch { + // ignore + } }; return { validatePassCode, clearPassCode, - isValid: data?.isPassCodeValid || false, - loading, - error, + loading: authLoading || deauthLoading, }; }; diff --git a/admin-ui/src/pages/ticketing/gate.tsx b/admin-ui/src/pages/ticketing/gate.tsx index 48df0c9cb0..04b1c0cc89 100644 --- a/admin-ui/src/pages/ticketing/gate.tsx +++ b/admin-ui/src/pages/ticketing/gate.tsx @@ -1,24 +1,22 @@ -import { useState, useEffect } from 'react'; import Link from 'next/link'; import { useIntl } from 'react-intl'; +import { gql } from '@apollo/client'; import useCurrentUser from '../../modules/accounts/hooks/useCurrentUser'; import GatePassCodeForm from '../../modules/ticketing/components/GatePassCodeForm'; import GateControl from '../../modules/ticketing/components/GateControl'; +import useCheckGateCookie from '../../modules/ticketing/hooks/useCheckGateCookie'; + +const CheckGateCookieQuery = gql` + query CheckGateCookie { + isPassCodeValid + } +`; const GateControlPage = () => { const { formatMessage } = useIntl(); const { currentUser } = useCurrentUser(); - const [authenticated, setAuthenticated] = useState(false); - - useEffect(() => { - const stored = window.sessionStorage.getItem('gate-passcode'); - if (stored) setAuthenticated(true); - }, []); - - const handleLogout = () => { - window.sessionStorage.removeItem('gate-passcode'); - setAuthenticated(false); - }; + const isAdmin = Boolean(currentUser?._id); + const { authenticated, loading, refetch } = useCheckGateCookie(); return (
@@ -42,9 +40,12 @@ const GateControlPage = () => {
{authenticated ? ( - - ) : ( - setAuthenticated(true)} /> + refetch() : undefined} + isAdmin={isAdmin} + /> + ) : loading ? null : ( + refetch()} /> )}
); diff --git a/admin-ui/src/pages/tokens/TokenDetailPage.tsx b/admin-ui/src/pages/tokens/TokenDetailPage.tsx index 3d18f22bb2..397000eff9 100644 --- a/admin-ui/src/pages/tokens/TokenDetailPage.tsx +++ b/admin-ui/src/pages/tokens/TokenDetailPage.tsx @@ -54,18 +54,36 @@ const TokenDetailPage = ({ tokenId }) => { }, [tokenId]); const onCancelToken = useCallback(async () => { + let generateDiscount = false; await setModal( setModal('')} - message={formatMessage({ - id: 'cancel_ticket_confirmation', - defaultMessage: - 'Are you sure you want to cancel this ticket? This action cannot be undone.', - })} + message={ + <> + {formatMessage({ + id: 'cancel_ticket_confirmation', + defaultMessage: + 'Are you sure you want to cancel this ticket? This action cannot be undone.', + })} + + + } onOkClick={async () => { setModal(''); try { - await cancelTicket({ tokenId }); + await cancelTicket({ tokenId, generateDiscount }); toast.success( formatMessage({ id: 'ticket_cancelled', diff --git a/packages/api/src/context.ts b/packages/api/src/context.ts index cc9d16c1de..384bfc8e76 100644 --- a/packages/api/src/context.ts +++ b/packages/api/src/context.ts @@ -37,9 +37,22 @@ export interface AdminUiConfig { defaultUserTags?: string[]; } +export interface CookieOptions { + domain?: string; + path?: string; + secure?: boolean; + httpOnly?: boolean; + sameSite?: 'strict' | 'lax' | 'none' | boolean; + maxAge?: number; + expires?: Date; +} + export interface UnchainedHTTPServerContext { setHeader: (key: string, value: string) => void; getHeader: (key: string) => string; + getCookie: (name: string) => string | undefined; + setCookie: (name: string, value: string, options: CookieOptions) => void; + clearCookie: (name: string, options: CookieOptions) => void; remoteAddress?: string; remotePort?: number; } @@ -75,6 +88,9 @@ export const createContextResolver = async ({ getHeader, setHeader, + getCookie, + setCookie, + clearCookie, remoteAddress, remotePort, userId, @@ -84,7 +100,15 @@ export const createContextResolver = login, logout, }) => { - const abstractHttpServerContext = { remoteAddress, remotePort, getHeader, setHeader }; + const abstractHttpServerContext = { + remoteAddress, + remotePort, + getHeader, + setHeader, + getCookie, + setCookie, + clearCookie, + }; const loaders = instantiateLoaders(unchainedAPI); const localeContext = await getLocaleContext(abstractHttpServerContext, unchainedAPI); diff --git a/packages/api/src/express/index.ts b/packages/api/src/express/index.ts index 2e0d95aa9f..3c4db9f9aa 100644 --- a/packages/api/src/express/index.ts +++ b/packages/api/src/express/index.ts @@ -98,6 +98,9 @@ const createAddContextMiddleware = (authConfig?: AuthConfig, trustProxy = false) { setHeader, getHeader, + getCookie, + setCookie, + clearCookie, remoteAddress, remotePort, login: authContext.login, diff --git a/packages/api/src/fastify/index.ts b/packages/api/src/fastify/index.ts index 8d3fec499b..add945d83c 100644 --- a/packages/api/src/fastify/index.ts +++ b/packages/api/src/fastify/index.ts @@ -83,6 +83,9 @@ const createMiddlewareHook = (authConfig?: AuthConfig, trustProxy = false) => { setHeader, getHeader, + getCookie, + setCookie, + clearCookie, remoteAddress, remotePort, login: authContext.login, diff --git a/packages/api/src/resolvers/mutations/index.ts b/packages/api/src/resolvers/mutations/index.ts index 7165699026..3e531ad350 100755 --- a/packages/api/src/resolvers/mutations/index.ts +++ b/packages/api/src/resolvers/mutations/index.ts @@ -87,6 +87,8 @@ import invalidateToken from './warehousing/invalidateToken.ts'; import cancelTicket from './warehousing/cancelTicket.ts'; import cancelEvent from './warehousing/cancelEvent.ts'; import setEventScannerPassCode from './warehousing/setEventScannerPassCode.ts'; +import authenticateGate from './warehousing/authenticateGate.ts'; +import deauthenticateGate from './warehousing/deauthenticateGate.ts'; import setPassword from './accounts/setPassword.ts'; import setRoles from './users/setRoles.ts'; import setUsername from './accounts/setUsername.ts'; @@ -272,6 +274,8 @@ export default { cancelTicket: acl(actions.updateToken)(cancelTicket), cancelEvent: acl(actions.manageProducts)(cancelEvent), setEventScannerPassCode: acl(actions.manageProducts)(setEventScannerPassCode), + authenticateGate: acl(actions.validatePassCode)(authenticateGate), + deauthenticateGate: acl(actions.validatePassCode)(deauthenticateGate), createFilter: acl(actions.manageFilters)(createFilter), updateFilter: acl(actions.manageFilters)(updateFilter), removeFilter: acl(actions.manageFilters)(removeFilter), diff --git a/packages/api/src/resolvers/mutations/warehousing/authenticateGate.ts b/packages/api/src/resolvers/mutations/warehousing/authenticateGate.ts new file mode 100644 index 0000000000..e0c7be880b --- /dev/null +++ b/packages/api/src/resolvers/mutations/warehousing/authenticateGate.ts @@ -0,0 +1,58 @@ +import { log } from '@unchainedshop/logger'; +import type { Context } from '../../../context.ts'; +import { TicketingModuleNotFoundError } from '../../../errors.ts'; + +const { + UNCHAINED_COOKIE_PATH = '/', + UNCHAINED_COOKIE_DOMAIN, + UNCHAINED_COOKIE_SAMESITE = 'lax', + UNCHAINED_COOKIE_INSECURE, +} = process.env; + +const GATE_COOKIE_NAME = 'unchained_gate_passcode'; +const GATE_COOKIE_MAX_AGE = 24 * 60 * 60 * 1000; // 24 hours + +export default async function authenticateGate( + root: never, + { passCode }: { passCode: string }, + context: Context, +) { + const { services, userId } = context; + log(`mutation authenticateGate`, { userId }); + + if (!passCode) return false; + + const ticketingServices = services as unknown as { + ticketing?: { + isPassCodeValid: (passCode: string, productId?: string) => Promise; + }; + }; + + if (!ticketingServices.ticketing?.isPassCodeValid) { + throw new TicketingModuleNotFoundError({}); + } + + const isValid = await ticketingServices.ticketing.isPassCodeValid(passCode); + if (!isValid) return false; + + const secure = !UNCHAINED_COOKIE_INSECURE; + const sameSite = + ( + { + none: 'none', + lax: 'lax', + strict: 'strict', + } as Record + )[UNCHAINED_COOKIE_SAMESITE?.trim()?.toLowerCase()] || 'lax'; + + context.setCookie(GATE_COOKIE_NAME, passCode, { + domain: UNCHAINED_COOKIE_DOMAIN, + path: UNCHAINED_COOKIE_PATH, + secure, + httpOnly: true, + sameSite, + maxAge: GATE_COOKIE_MAX_AGE, + }); + + return true; +} diff --git a/packages/api/src/resolvers/mutations/warehousing/cancelEvent.ts b/packages/api/src/resolvers/mutations/warehousing/cancelEvent.ts index 623c2c8dfe..a49ff21f7f 100644 --- a/packages/api/src/resolvers/mutations/warehousing/cancelEvent.ts +++ b/packages/api/src/resolvers/mutations/warehousing/cancelEvent.ts @@ -8,7 +8,6 @@ import { TicketingModuleNotFoundError, } from '../../../errors.ts'; - export default async function cancelEvent( root: never, { productId, generateDiscount }: { productId: string; generateDiscount?: boolean }, @@ -26,7 +25,7 @@ export default async function cancelEvent( throw new ProductWrongStatusError({ productId }); } - const passes = (modules as unknown as Record).passes as any + const passes = (modules as unknown as Record).passes as any; if (!passes?.cancelTicket) { throw new TicketingModuleNotFoundError({}); } @@ -42,22 +41,5 @@ export default async function cancelEvent( currencyCode, }); - if (result.discountCodes?.length) { - await Promise.allSettled( - result.discountCodes.map(async ({ userId: ticketUserId, discountCode, amount }) => { - await modules.worker.addWork({ - type: 'MESSAGE', - input: { - template: 'EVENT_CANCELLED', - productId, - userId: ticketUserId, - discountCode, - discountAmount: amount, - }, - }); - }), - ); - } - return result.cancelledCount; } diff --git a/packages/api/src/resolvers/mutations/warehousing/cancelTicket.ts b/packages/api/src/resolvers/mutations/warehousing/cancelTicket.ts index f72d7d9d44..4940a93c77 100644 --- a/packages/api/src/resolvers/mutations/warehousing/cancelTicket.ts +++ b/packages/api/src/resolvers/mutations/warehousing/cancelTicket.ts @@ -7,10 +7,9 @@ import { TicketingModuleNotFoundError, } from '../../../errors.ts'; - export default async function cancelTicket( root: never, - { tokenId, generateDiscount = true }: { tokenId: string; generateDiscount?: boolean }, + { tokenId, generateDiscount }: { tokenId: string; generateDiscount?: boolean }, context: Context, ) { const { modules, services, userId, countryCode, currencyCode } = context; @@ -45,18 +44,5 @@ export default async function cancelTicket( currencyCode, }); - if (result.discountCode && token.userId) { - await modules.worker.addWork({ - type: 'MESSAGE', - input: { - template: 'TICKET_CANCELLED', - tokenId: token._id, - userId: token.userId, - discountCode: result.discountCode, - discountAmount: result.amount, - }, - }); - } - return result.token; } diff --git a/packages/api/src/resolvers/mutations/warehousing/deauthenticateGate.ts b/packages/api/src/resolvers/mutations/warehousing/deauthenticateGate.ts new file mode 100644 index 0000000000..deef278503 --- /dev/null +++ b/packages/api/src/resolvers/mutations/warehousing/deauthenticateGate.ts @@ -0,0 +1,36 @@ +import { log } from '@unchainedshop/logger'; +import type { Context } from '../../../context.ts'; + +const { + UNCHAINED_COOKIE_PATH = '/', + UNCHAINED_COOKIE_DOMAIN, + UNCHAINED_COOKIE_SAMESITE = 'lax', + UNCHAINED_COOKIE_INSECURE, +} = process.env; + +const GATE_COOKIE_NAME = 'unchained_gate_passcode'; + +export default async function deauthenticateGate(root: never, _: never, context: Context) { + const { userId } = context; + log(`mutation deauthenticateGate`, { userId }); + + const secure = !UNCHAINED_COOKIE_INSECURE; + const sameSite = + ( + { + none: 'none', + lax: 'lax', + strict: 'strict', + } as Record + )[UNCHAINED_COOKIE_SAMESITE?.trim()?.toLowerCase()] || 'lax'; + + context.clearCookie(GATE_COOKIE_NAME, { + domain: UNCHAINED_COOKIE_DOMAIN, + path: UNCHAINED_COOKIE_PATH, + secure, + httpOnly: true, + sameSite, + }); + + return true; +} diff --git a/packages/api/src/resolvers/queries/ticketing/isPassCodeValid.ts b/packages/api/src/resolvers/queries/ticketing/isPassCodeValid.ts index 387564ea4f..b7e6469975 100644 --- a/packages/api/src/resolvers/queries/ticketing/isPassCodeValid.ts +++ b/packages/api/src/resolvers/queries/ticketing/isPassCodeValid.ts @@ -16,7 +16,7 @@ export default async function isPassCodeValid( const { services, userId } = context; log(`query isPassCodeValid`, { userId }); - const passCode = context.getHeader('x-passcode') as string; + const passCode = context.getCookie('unchained_gate_passcode'); if (!passCode) return false; const ticketingServices = services as unknown as TicketingServices; diff --git a/packages/api/src/resolvers/queries/ticketing/ticketEvents.ts b/packages/api/src/resolvers/queries/ticketing/ticketEvents.ts index 32780e98c0..f2811e4d5f 100644 --- a/packages/api/src/resolvers/queries/ticketing/ticketEvents.ts +++ b/packages/api/src/resolvers/queries/ticketing/ticketEvents.ts @@ -11,21 +11,25 @@ export default async function ticketEvents( offset = 0, includeDrafts = true, sort, + onlyInvalidateable = false, }: { queryString?: string; limit: number; offset: number; includeDrafts?: boolean; sort?: SortOption[]; + onlyInvalidateable?: boolean; }, context: Context, ) { - const { modules, userId } = context; + const { modules, services, userId } = context; log(`query ticketEvents`, { userId }); - const passCode = context.getHeader('x-passcode') as string; + const passCode = context.getCookie?.('unchained_gate_passcode'); const ticketingServices = (context.services as any)?.ticketing; + let products; + if (!userId && passCode) { if (!ticketingServices?.productIdsForPassCode) { throw new TicketingModuleNotFoundError({}); @@ -33,7 +37,7 @@ export default async function ticketEvents( const productIds = await ticketingServices.productIdsForPassCode(passCode); if (!productIds.length) return []; - const products = await modules.products.findProducts({ + const allProducts = await modules.products.findProducts({ type: 'TOKENIZED_PRODUCT', queryString, includeDrafts: false, @@ -42,15 +46,30 @@ export default async function ticketEvents( sort, }); - return products.filter((p) => productIds.includes(p._id)); + products = allProducts.filter((p) => productIds.includes(p._id)); + } else { + products = await modules.products.findProducts({ + type: 'TOKENIZED_PRODUCT', + queryString, + includeDrafts, + limit, + offset, + sort, + }); } - return modules.products.findProducts({ - type: 'TOKENIZED_PRODUCT', - queryString, - includeDrafts, - limit, - offset, - sort, - }); + if (onlyInvalidateable) { + const filtered = await Promise.all( + products.map(async (product) => { + const tokens = await modules.warehousing.findTokens({ productId: product._id }); + const hasInvalidateable = await Promise.all( + tokens.map((token) => services.warehousing.isTokenInvalidateable({ token })), + ); + return hasInvalidateable.some(Boolean) ? product : null; + }), + ); + return filtered.filter(Boolean); + } + + return products; } diff --git a/packages/api/src/resolvers/queries/ticketing/ticketEventsCount.ts b/packages/api/src/resolvers/queries/ticketing/ticketEventsCount.ts index 7a9d382e4a..4c68d51ad6 100644 --- a/packages/api/src/resolvers/queries/ticketing/ticketEventsCount.ts +++ b/packages/api/src/resolvers/queries/ticketing/ticketEventsCount.ts @@ -7,16 +7,18 @@ export default async function ticketEventsCount( { queryString, includeDrafts = true, + onlyInvalidateable = false, }: { queryString?: string; includeDrafts?: boolean; + onlyInvalidateable?: boolean; }, context: Context, ) { - const { modules, userId } = context; + const { modules, services, userId } = context; log(`query ticketEventsCount`, { userId }); - const passCode = context.getHeader('x-passcode') as string; + const passCode = context.getCookie?.('unchained_gate_passcode'); const ticketingServices = (context.services as any)?.ticketing; if (!userId && passCode) { @@ -24,12 +26,38 @@ export default async function ticketEventsCount( throw new TicketingModuleNotFoundError({}); } const productIds = await ticketingServices.productIdsForPassCode(passCode); - return productIds.length; + if (!onlyInvalidateable) return productIds.length; + + let count = 0; + for (const productId of productIds) { + const tokens = await modules.warehousing.findTokens({ productId }); + const hasInvalidateable = await Promise.all( + tokens.map((token) => services.warehousing.isTokenInvalidateable({ token })), + ); + if (hasInvalidateable.some(Boolean)) count++; + } + return count; + } + + if (onlyInvalidateable) { + const products = await modules.products.findProducts({ + type: 'TOKENIZED_PRODUCT', + queryString, + includeDrafts, + }); + let count = 0; + for (const product of products) { + const tokens = await modules.warehousing.findTokens({ productId: product._id }); + const hasInvalidateable = await Promise.all( + tokens.map((token) => services.warehousing.isTokenInvalidateable({ token })), + ); + if (hasInvalidateable.some(Boolean)) count++; + } + return count; } return modules.products.count({ type: 'TOKENIZED_PRODUCT', - contractStandard: 'ERC721', queryString, includeDrafts, }); diff --git a/packages/api/src/resolvers/type/product/product-tokenized-types.ts b/packages/api/src/resolvers/type/product/product-tokenized-types.ts index 64b00bfca4..a9b59cb31a 100644 --- a/packages/api/src/resolvers/type/product/product-tokenized-types.ts +++ b/packages/api/src/resolvers/type/product/product-tokenized-types.ts @@ -60,7 +60,7 @@ export const TokenizedProduct = { try { await checkAction(requestContext, actions.viewTokens, [undefined, params]); } catch { - const passCode = requestContext.getHeader('x-passcode') as string; + const passCode = requestContext.getCookie?.('unchained_gate_passcode'); const ticketingServices = (requestContext.services as any)?.ticketing; const isValid = await ticketingServices?.isPassCodeValid?.(passCode, product._id); if (!isValid) return []; @@ -74,7 +74,7 @@ export const TokenizedProduct = { try { await checkAction(requestContext, actions.viewTokens, [undefined, params]); } catch { - const passCode = requestContext.getHeader('x-passcode') as string; + const passCode = requestContext.getCookie?.('unchained_gate_passcode'); const ticketingServices = (requestContext.services as any)?.ticketing; const isValid = await ticketingServices?.isPassCodeValid?.(passCode, product._id); if (!isValid) return 0; diff --git a/packages/api/src/roles/all.ts b/packages/api/src/roles/all.ts index e1bfc89d42..afe31ba680 100644 --- a/packages/api/src/roles/all.ts +++ b/packages/api/src/roles/all.ts @@ -112,7 +112,7 @@ export const all = (role, actions) => { role.allow(actions.viewQuotation, () => false); role.allow(actions.viewEnrollment, () => false); const hasValidPassCode = async (_root: any, _params: any, context: Context) => { - const passCode = context.getHeader?.('x-passcode'); + const passCode = context.getCookie?.('unchained_gate_passcode'); if (!passCode) return false; const ticketingServices = (context.services as any)?.ticketing; if (!ticketingServices?.isPassCodeValid) return false; @@ -135,13 +135,17 @@ export const all = (role, actions) => { role.allow(actions.viewUserOrders, isInLoginMutationResponse); role.allow(actions.viewUserTokens, isInLoginMutationResponse); role.allow(actions.viewUserQuotations, isInLoginMutationResponse); - role.allow(actions.viewUserPrivateInfos, isInLoginMutationResponse); + const isInLoginOrHasValidPassCode = async (root: any, params: any, context: Context) => { + if (isInLoginMutationResponse(root)) return true; + return hasValidPassCode(root, params, context); + }; + role.allow(actions.viewUserPrivateInfos, isInLoginOrHasValidPassCode); role.allow(actions.viewUserEnrollments, isInLoginMutationResponse); role.allow(actions.viewUserProductReviews, isInLoginMutationResponse); // special case: access to token sometimes works via a X-Token-AccessKey Header or valid gate pass code const hasValidPassCodeForToken = async (_root: any, params: any, context: Context) => { - const passCode = context.getHeader?.('x-passcode'); + const passCode = context.getCookie?.('unchained_gate_passcode'); if (!passCode) return false; const ticketingServices = (context.services as any)?.ticketing; if (!ticketingServices?.isPassCodeValid) return false; diff --git a/packages/api/src/schema/mutation.ts b/packages/api/src/schema/mutation.ts index 4b9aa02317..a97e151407 100644 --- a/packages/api/src/schema/mutation.ts +++ b/packages/api/src/schema/mutation.ts @@ -877,6 +877,17 @@ export default [ """ setEventScannerPassCode(productId: ID!, passCode: String): Product! + """ + Authenticate gate control by validating a pass code and setting an HttpOnly cookie. + Returns true if the pass code is valid. + """ + authenticateGate(passCode: String!): Boolean! + + """ + Deauthenticate gate control by clearing the gate pass code cookie. + """ + deauthenticateGate: Boolean! + """ Store user W3C Push subscription object """ diff --git a/packages/api/src/schema/query.ts b/packages/api/src/schema/query.ts index 0855cd05a9..df4af2215d 100644 --- a/packages/api/src/schema/query.ts +++ b/packages/api/src/schema/query.ts @@ -236,15 +236,20 @@ export default [ offset: Int = 0 includeDrafts: Boolean = true sort: [SortOptionInput!] + onlyInvalidateable: Boolean = false ): [Product!]! """ Returns total number of ticket events (tokenized products) """ - ticketEventsCount(queryString: String, includeDrafts: Boolean = true): Int! + ticketEventsCount( + queryString: String + includeDrafts: Boolean = true + onlyInvalidateable: Boolean = false + ): Int! """ - Validates a scanner pass code for gate access. Pass code is checked via x-passcode header. + Validates a scanner pass code for gate access. Pass code is read from the unchained_gate_passcode cookie (set via authenticateGate mutation). Optionally restricted to a specific product. """ isPassCodeValid(productId: ID): Boolean! diff --git a/packages/core/src/factory/registerVirtualWarehousing.ts b/packages/core/src/factory/registerVirtualWarehousing.ts index d8e5e958d8..a5c604dc62 100644 --- a/packages/core/src/factory/registerVirtualWarehousing.ts +++ b/packages/core/src/factory/registerVirtualWarehousing.ts @@ -22,12 +22,12 @@ export default function registerVirtualWarehousing Promise); + | number + | (( + referenceDate: Date, + configuration: WarehousingConfiguration, + context: WarehousingContext, + ) => Promise); tokenize: ( configuration: WarehousingConfiguration, diff --git a/packages/platform/src/templates/resolveEventCancelledTemplate.ts b/packages/platform/src/templates/resolveEventCancelledTemplate.ts index a2d0d4fe34..de43e88769 100644 --- a/packages/platform/src/templates/resolveEventCancelledTemplate.ts +++ b/packages/platform/src/templates/resolveEventCancelledTemplate.ts @@ -14,8 +14,7 @@ export const resolveEventCancelledTemplate: TemplateResolver<{ const product = await modules.products.findProduct({ productId }); if (!product) return []; - const recipient = - user.lastContact?.emailAddress || modules.users.primaryEmail(user)?.address; + const recipient = user.lastContact?.emailAddress || modules.users.primaryEmail(user)?.address; if (!recipient) return []; const locale = modules.users.userLocale(user); diff --git a/packages/platform/src/templates/resolveTicketCancelledTemplate.ts b/packages/platform/src/templates/resolveTicketCancelledTemplate.ts index 276675f946..44ba89ebac 100644 --- a/packages/platform/src/templates/resolveTicketCancelledTemplate.ts +++ b/packages/platform/src/templates/resolveTicketCancelledTemplate.ts @@ -17,8 +17,7 @@ export const resolveTicketCancelledTemplate: TemplateResolver<{ const product = await modules.products.findProduct({ productId: token.productId }); if (!product) return []; - const recipient = - user.lastContact?.emailAddress || modules.users.primaryEmail(user)?.address; + const recipient = user.lastContact?.emailAddress || modules.users.primaryEmail(user)?.address; if (!recipient) return []; const locale = modules.users.userLocale(user); diff --git a/packages/plugins/src/pricing/discount-reimbursement-code/adapter.ts b/packages/plugins/src/pricing/discount-reimbursement-code/adapter.ts index bc994ba747..540654da58 100644 --- a/packages/plugins/src/pricing/discount-reimbursement-code/adapter.ts +++ b/packages/plugins/src/pricing/discount-reimbursement-code/adapter.ts @@ -42,10 +42,7 @@ export const ReimbursementCode: IDiscountAdapter = { orderId: context?.order?._id as string, }); - const totalTickets = (orderPositions || []).reduce( - (sum, { quantity }) => sum + quantity, - 0, - ); + const totalTickets = (orderPositions || []).reduce((sum, { quantity }) => sum + quantity, 0); return { ...(await OrderDiscountAdapter.actions({ context })), diff --git a/packages/ticketing/src/discount-codes.ts b/packages/ticketing/src/discount-codes.ts index 6f4d18f037..e6922987b3 100644 --- a/packages/ticketing/src/discount-codes.ts +++ b/packages/ticketing/src/discount-codes.ts @@ -1,11 +1,9 @@ - export interface DiscountCodeHandlers { generate: (amount: number) => Promise; verify: (code: string) => Promise; } -const defaultDiscountCodeSecret = - '0000000000000000000000000000000000000000000000000000000000000000'; +const defaultDiscountCodeSecret = '0000000000000000000000000000000000000000000000000000000000000000'; async function siphash24Digest(payload: Uint8Array, key: Uint8Array): Promise { const cryptoKey = await crypto.subtle.importKey( @@ -84,7 +82,6 @@ export function createDefaultDiscountCodeHandlers(): DiscountCodeHandlers { const salt = uint16Array[1]; const priceAmount = Math.floor(priceCents * 100); - const correctSignature = await generate(priceAmount); // Need to regenerate with same salt for comparison const saltedUint16 = new Uint16Array([priceCents, salt]); diff --git a/packages/ticketing/src/index.ts b/packages/ticketing/src/index.ts index b727bd9be8..7f72b1f6f6 100644 --- a/packages/ticketing/src/index.ts +++ b/packages/ticketing/src/index.ts @@ -14,7 +14,13 @@ export type TicketingAPI = UnchainedCore & { services: TicketingServices; }; -export type { RendererTypes, TicketingModule, TicketingServices, TicketingOptions, DiscountCodeHandlers }; +export type { + RendererTypes, + TicketingModule, + TicketingServices, + TicketingOptions, + DiscountCodeHandlers, +}; export { ticketingServices, ticketingModules }; @@ -53,7 +59,6 @@ export default function setupTicketing( createGoogleWalletPass, }); - if (!process.env.UNCHAINED_SECRET) throw new Error( 'Unchained Ticketing needs the UNCHAINED_SECRET environment variable to be set in order to allow magic key access to orders and tokens.', diff --git a/packages/ticketing/src/module.ts b/packages/ticketing/src/module.ts index 9e2d7c2ae4..0260f08f29 100644 --- a/packages/ticketing/src/module.ts +++ b/packages/ticketing/src/module.ts @@ -8,10 +8,7 @@ import type { File } from '@unchainedshop/core-files'; import { RendererTypes, getRenderer } from './template-registry.ts'; import { buildPassBinary, pushToApplePushNotificationService } from './mobile-tickets/apple-wallet.ts'; -import { - type DiscountCodeHandlers, - createDefaultDiscountCodeHandlers, -} from './discount-codes.ts'; +import { type DiscountCodeHandlers, createDefaultDiscountCodeHandlers } from './discount-codes.ts'; import { OrdersCollection, OrderStatus } from '@unchainedshop/core-orders'; export const APPLE_WALLET_PASSES_FILE_DIRECTORY = 'apple-wallet-passes'; diff --git a/packages/ticketing/src/services.ts b/packages/ticketing/src/services.ts index 6ddb2e013b..32a9914cd8 100644 --- a/packages/ticketing/src/services.ts +++ b/packages/ticketing/src/services.ts @@ -14,7 +14,6 @@ async function cancelTicketsForProduct( options?: DiscountOptions, ): Promise<{ cancelledCount: number; - discountCodes?: Array<{ userId: string; discountCode: string; amount: number }>; }> { const tokensToCancel = await this.warehousing.findTokens({ productId, @@ -30,7 +29,9 @@ async function cancelTicketsForProduct( 'meta.cancelled': true, }); - let discountCodes: Array<{ userId: string; discountCode: string; amount: number }> | undefined; + const affectedUserIds = [...new Set(tokensToCancel.map((t) => t.userId).filter(Boolean))] as string[]; + + const discountByUser = new Map(); if (options?.generateDiscount && tokensToCancel.length > 0 && options.countryCode) { const product = await this.products.findProduct({ productId }); @@ -52,28 +53,44 @@ async function cancelTicketsForProduct( {} as Record, ); - discountCodes = []; for (const [userId, quantity] of Object.entries(userTokenCounts)) { const totalAmount = price.amount * quantity; const discountCode = await this.passes.generateDiscountCode(totalAmount); - discountCodes.push({ userId, discountCode, amount: totalAmount }); + discountByUser.set(userId, { discountCode, amount: totalAmount }); } } } - return { cancelledCount: tokensToCancel.length, discountCodes }; + await Promise.allSettled( + affectedUserIds.map(async (userId) => { + const discount = discountByUser.get(userId); + await this.worker.addWork({ + type: 'MESSAGE', + input: { + template: 'EVENT_CANCELLED', + productId, + userId, + discountCode: discount?.discountCode, + discountAmount: discount?.amount, + }, + }); + }), + ); + + return { cancelledCount: tokensToCancel.length }; } async function cancelTicketWithDiscount( this: TicketingModule & UnchainedCore['modules'], tokenId: string, options?: DiscountOptions, -): Promise<{ token: any; discountCode?: string; amount?: number }> { +): Promise<{ token: any }> { + const token = await this.warehousing.findToken({ tokenId }); await this.warehousing.invalidateToken(tokenId); const cancelledToken = await this.passes.cancelTicket(tokenId); let discountCode: string | undefined; - let amount: number | undefined; + let discountAmount: number | undefined; if (options?.generateDiscount && cancelledToken && options.countryCode) { const product = await this.products.findProduct({ productId: cancelledToken.productId }); @@ -85,12 +102,25 @@ async function cancelTicketWithDiscount( })); if (price?.amount) { - amount = price.amount; - discountCode = await this.passes.generateDiscountCode(amount); + discountAmount = price.amount; + discountCode = await this.passes.generateDiscountCode(discountAmount); } } - return { token: cancelledToken, discountCode, amount }; + if (token?.userId) { + await this.worker.addWork({ + type: 'MESSAGE', + input: { + template: 'TICKET_CANCELLED', + tokenId, + userId: token.userId, + discountCode, + discountAmount, + }, + }); + } + + return { token: cancelledToken }; } async function isPassCodeValid( From 71d6a09ae79ce23f571d52bf265ecd8e232dcee1 Mon Sep 17 00:00:00 2001 From: Mikael Araya Date: Thu, 12 Mar 2026 00:56:24 +0300 Subject: [PATCH 6/7] Make gate control cookie configurable and move gate control access control to roles --- packages/api/src/gate-cookie.ts | 33 +++++++++++++++++++ .../mutations/warehousing/authenticateGate.ts | 30 ++--------------- .../warehousing/deauthenticateGate.ts | 28 ++-------------- .../queries/ticketing/isPassCodeValid.ts | 3 +- .../queries/ticketing/ticketEvents.ts | 3 +- .../queries/ticketing/ticketEventsCount.ts | 3 +- .../type/product/product-tokenized-types.ts | 14 +++----- packages/api/src/roles/all.ts | 16 +++++++-- 8 files changed, 60 insertions(+), 70 deletions(-) create mode 100644 packages/api/src/gate-cookie.ts diff --git a/packages/api/src/gate-cookie.ts b/packages/api/src/gate-cookie.ts new file mode 100644 index 0000000000..1c0e6ab667 --- /dev/null +++ b/packages/api/src/gate-cookie.ts @@ -0,0 +1,33 @@ +import type { CookieOptions } from './context.ts'; + +const { + UNCHAINED_GATE_COOKIE_NAME = 'unchained_gate_passcode', + UNCHAINED_GATE_COOKIE_MAX_AGE_SECONDS = '86400', // 24 hours + UNCHAINED_COOKIE_PATH = '/', + UNCHAINED_COOKIE_DOMAIN, + UNCHAINED_COOKIE_SAMESITE = 'lax', + UNCHAINED_COOKIE_INSECURE, +} = process.env; + +export const GATE_COOKIE_NAME = UNCHAINED_GATE_COOKIE_NAME; +export const GATE_COOKIE_MAX_AGE = parseInt(UNCHAINED_GATE_COOKIE_MAX_AGE_SECONDS, 10) * 1000; + +const resolveSameSite = (): CookieOptions['sameSite'] => + ( + { + none: 'none', + lax: 'lax', + strict: 'strict', + } as Record + )[UNCHAINED_COOKIE_SAMESITE?.trim()?.toLowerCase()] || 'lax'; + +export function getGateCookieOptions(maxAge?: number): CookieOptions { + return { + domain: UNCHAINED_COOKIE_DOMAIN, + path: UNCHAINED_COOKIE_PATH, + secure: !UNCHAINED_COOKIE_INSECURE, + httpOnly: true, + sameSite: resolveSameSite(), + maxAge, + }; +} diff --git a/packages/api/src/resolvers/mutations/warehousing/authenticateGate.ts b/packages/api/src/resolvers/mutations/warehousing/authenticateGate.ts index e0c7be880b..b045ddb2c9 100644 --- a/packages/api/src/resolvers/mutations/warehousing/authenticateGate.ts +++ b/packages/api/src/resolvers/mutations/warehousing/authenticateGate.ts @@ -1,16 +1,7 @@ import { log } from '@unchainedshop/logger'; import type { Context } from '../../../context.ts'; import { TicketingModuleNotFoundError } from '../../../errors.ts'; - -const { - UNCHAINED_COOKIE_PATH = '/', - UNCHAINED_COOKIE_DOMAIN, - UNCHAINED_COOKIE_SAMESITE = 'lax', - UNCHAINED_COOKIE_INSECURE, -} = process.env; - -const GATE_COOKIE_NAME = 'unchained_gate_passcode'; -const GATE_COOKIE_MAX_AGE = 24 * 60 * 60 * 1000; // 24 hours +import { GATE_COOKIE_NAME, GATE_COOKIE_MAX_AGE, getGateCookieOptions } from '../../../gate-cookie.ts'; export default async function authenticateGate( root: never, @@ -35,24 +26,7 @@ export default async function authenticateGate( const isValid = await ticketingServices.ticketing.isPassCodeValid(passCode); if (!isValid) return false; - const secure = !UNCHAINED_COOKIE_INSECURE; - const sameSite = - ( - { - none: 'none', - lax: 'lax', - strict: 'strict', - } as Record - )[UNCHAINED_COOKIE_SAMESITE?.trim()?.toLowerCase()] || 'lax'; - - context.setCookie(GATE_COOKIE_NAME, passCode, { - domain: UNCHAINED_COOKIE_DOMAIN, - path: UNCHAINED_COOKIE_PATH, - secure, - httpOnly: true, - sameSite, - maxAge: GATE_COOKIE_MAX_AGE, - }); + context.setCookie(GATE_COOKIE_NAME, passCode, getGateCookieOptions(GATE_COOKIE_MAX_AGE)); return true; } diff --git a/packages/api/src/resolvers/mutations/warehousing/deauthenticateGate.ts b/packages/api/src/resolvers/mutations/warehousing/deauthenticateGate.ts index deef278503..eea2a3273c 100644 --- a/packages/api/src/resolvers/mutations/warehousing/deauthenticateGate.ts +++ b/packages/api/src/resolvers/mutations/warehousing/deauthenticateGate.ts @@ -1,36 +1,12 @@ import { log } from '@unchainedshop/logger'; import type { Context } from '../../../context.ts'; - -const { - UNCHAINED_COOKIE_PATH = '/', - UNCHAINED_COOKIE_DOMAIN, - UNCHAINED_COOKIE_SAMESITE = 'lax', - UNCHAINED_COOKIE_INSECURE, -} = process.env; - -const GATE_COOKIE_NAME = 'unchained_gate_passcode'; +import { GATE_COOKIE_NAME, getGateCookieOptions } from '../../../gate-cookie.ts'; export default async function deauthenticateGate(root: never, _: never, context: Context) { const { userId } = context; log(`mutation deauthenticateGate`, { userId }); - const secure = !UNCHAINED_COOKIE_INSECURE; - const sameSite = - ( - { - none: 'none', - lax: 'lax', - strict: 'strict', - } as Record - )[UNCHAINED_COOKIE_SAMESITE?.trim()?.toLowerCase()] || 'lax'; - - context.clearCookie(GATE_COOKIE_NAME, { - domain: UNCHAINED_COOKIE_DOMAIN, - path: UNCHAINED_COOKIE_PATH, - secure, - httpOnly: true, - sameSite, - }); + context.clearCookie(GATE_COOKIE_NAME, getGateCookieOptions()); return true; } diff --git a/packages/api/src/resolvers/queries/ticketing/isPassCodeValid.ts b/packages/api/src/resolvers/queries/ticketing/isPassCodeValid.ts index b7e6469975..93590412bf 100644 --- a/packages/api/src/resolvers/queries/ticketing/isPassCodeValid.ts +++ b/packages/api/src/resolvers/queries/ticketing/isPassCodeValid.ts @@ -1,6 +1,7 @@ import { log } from '@unchainedshop/logger'; import type { Context } from '../../../context.ts'; import { TicketingModuleNotFoundError } from '../../../errors.ts'; +import { GATE_COOKIE_NAME } from '../../../gate-cookie.ts'; interface TicketingServices { ticketing?: { @@ -16,7 +17,7 @@ export default async function isPassCodeValid( const { services, userId } = context; log(`query isPassCodeValid`, { userId }); - const passCode = context.getCookie('unchained_gate_passcode'); + const passCode = context.getCookie(GATE_COOKIE_NAME); if (!passCode) return false; const ticketingServices = services as unknown as TicketingServices; diff --git a/packages/api/src/resolvers/queries/ticketing/ticketEvents.ts b/packages/api/src/resolvers/queries/ticketing/ticketEvents.ts index f2811e4d5f..b96ce9e03a 100644 --- a/packages/api/src/resolvers/queries/ticketing/ticketEvents.ts +++ b/packages/api/src/resolvers/queries/ticketing/ticketEvents.ts @@ -2,6 +2,7 @@ import { log } from '@unchainedshop/logger'; import type { SortOption } from '@unchainedshop/utils'; import type { Context } from '../../../context.ts'; import { TicketingModuleNotFoundError } from '../../../errors.ts'; +import { GATE_COOKIE_NAME } from '../../../gate-cookie.ts'; export default async function ticketEvents( root: never, @@ -25,7 +26,7 @@ export default async function ticketEvents( const { modules, services, userId } = context; log(`query ticketEvents`, { userId }); - const passCode = context.getCookie?.('unchained_gate_passcode'); + const passCode = context.getCookie?.(GATE_COOKIE_NAME); const ticketingServices = (context.services as any)?.ticketing; let products; diff --git a/packages/api/src/resolvers/queries/ticketing/ticketEventsCount.ts b/packages/api/src/resolvers/queries/ticketing/ticketEventsCount.ts index 4c68d51ad6..0018b62849 100644 --- a/packages/api/src/resolvers/queries/ticketing/ticketEventsCount.ts +++ b/packages/api/src/resolvers/queries/ticketing/ticketEventsCount.ts @@ -1,6 +1,7 @@ import { log } from '@unchainedshop/logger'; import type { Context } from '../../../context.ts'; import { TicketingModuleNotFoundError } from '../../../errors.ts'; +import { GATE_COOKIE_NAME } from '../../../gate-cookie.ts'; export default async function ticketEventsCount( root: never, @@ -18,7 +19,7 @@ export default async function ticketEventsCount( const { modules, services, userId } = context; log(`query ticketEventsCount`, { userId }); - const passCode = context.getCookie?.('unchained_gate_passcode'); + const passCode = context.getCookie?.(GATE_COOKIE_NAME); const ticketingServices = (context.services as any)?.ticketing; if (!userId && passCode) { diff --git a/packages/api/src/resolvers/type/product/product-tokenized-types.ts b/packages/api/src/resolvers/type/product/product-tokenized-types.ts index a9b59cb31a..9811d1e511 100644 --- a/packages/api/src/resolvers/type/product/product-tokenized-types.ts +++ b/packages/api/src/resolvers/type/product/product-tokenized-types.ts @@ -58,12 +58,9 @@ export const TokenizedProduct = { async tokens(product: Product, params: never, requestContext: Context) { try { - await checkAction(requestContext, actions.viewTokens, [undefined, params]); + await checkAction(requestContext, actions.viewTokens, [product, params]); } catch { - const passCode = requestContext.getCookie?.('unchained_gate_passcode'); - const ticketingServices = (requestContext.services as any)?.ticketing; - const isValid = await ticketingServices?.isPassCodeValid?.(passCode, product._id); - if (!isValid) return []; + return []; } const tokens = await requestContext.modules.warehousing.findTokens({ productId: product._id, @@ -72,12 +69,9 @@ export const TokenizedProduct = { }, async tokensCount(product: Product, params: never, requestContext: Context) { try { - await checkAction(requestContext, actions.viewTokens, [undefined, params]); + await checkAction(requestContext, actions.viewTokens, [product, params]); } catch { - const passCode = requestContext.getCookie?.('unchained_gate_passcode'); - const ticketingServices = (requestContext.services as any)?.ticketing; - const isValid = await ticketingServices?.isPassCodeValid?.(passCode, product._id); - if (!isValid) return 0; + return 0; } return requestContext.modules.warehousing.tokensCount({ productId: product._id, diff --git a/packages/api/src/roles/all.ts b/packages/api/src/roles/all.ts index afe31ba680..7fec6131d0 100644 --- a/packages/api/src/roles/all.ts +++ b/packages/api/src/roles/all.ts @@ -1,4 +1,5 @@ import type { Context } from '../context.ts'; +import { GATE_COOKIE_NAME } from '../gate-cookie.ts'; export const all = (role, actions) => { const isInLoginMutationResponse = (root) => { @@ -112,7 +113,7 @@ export const all = (role, actions) => { role.allow(actions.viewQuotation, () => false); role.allow(actions.viewEnrollment, () => false); const hasValidPassCode = async (_root: any, _params: any, context: Context) => { - const passCode = context.getCookie?.('unchained_gate_passcode'); + const passCode = context.getCookie?.(GATE_COOKIE_NAME); if (!passCode) return false; const ticketingServices = (context.services as any)?.ticketing; if (!ticketingServices?.isPassCodeValid) return false; @@ -121,7 +122,16 @@ export const all = (role, actions) => { role.allow(actions.validatePassCode, () => true); role.allow(actions.gateControl, hasValidPassCode); - role.allow(actions.viewTokens, () => false); + + const hasValidPassCodeForProduct = async (root: any, _params: any, context: Context) => { + if (!root?._id) return false; + const passCode = context.getCookie?.(GATE_COOKIE_NAME); + if (!passCode) return false; + const ticketingServices = (context.services as any)?.ticketing; + if (!ticketingServices?.isPassCodeValid) return false; + return ticketingServices.isPassCodeValid(passCode, root._id); + }; + role.allow(actions.viewTokens, hasValidPassCodeForProduct); role.allow(actions.viewStatistics, () => false); role.allow(actions.uploadUserAvatar, () => false); role.allow(actions.uploadTempFile, () => false); @@ -145,7 +155,7 @@ export const all = (role, actions) => { // special case: access to token sometimes works via a X-Token-AccessKey Header or valid gate pass code const hasValidPassCodeForToken = async (_root: any, params: any, context: Context) => { - const passCode = context.getCookie?.('unchained_gate_passcode'); + const passCode = context.getCookie?.(GATE_COOKIE_NAME); if (!passCode) return false; const ticketingServices = (context.services as any)?.ticketing; if (!ticketingServices?.isPassCodeValid) return false; From d70588072f5687c1ffc27eda0b58700836c4278a Mon Sep 17 00:00:00 2001 From: Mikael Araya Date: Thu, 12 Mar 2026 01:34:01 +0300 Subject: [PATCH 7/7] Clean up --- packages/api/src/gate-cookie.ts | 4 +- .../mutations/warehousing/invalidateToken.ts | 6 +- packages/core/src/factory/index.ts | 2 - .../src/factory/registerVirtualWarehousing.ts | 116 ------------------ packages/core/src/services/index.ts | 2 - .../core/src/services/onTokenInvalidated.ts | 30 ----- 6 files changed, 3 insertions(+), 157 deletions(-) delete mode 100644 packages/core/src/factory/registerVirtualWarehousing.ts delete mode 100644 packages/core/src/services/onTokenInvalidated.ts diff --git a/packages/api/src/gate-cookie.ts b/packages/api/src/gate-cookie.ts index 1c0e6ab667..21435bdc45 100644 --- a/packages/api/src/gate-cookie.ts +++ b/packages/api/src/gate-cookie.ts @@ -14,11 +14,11 @@ export const GATE_COOKIE_MAX_AGE = parseInt(UNCHAINED_GATE_COOKIE_MAX_AGE_SECOND const resolveSameSite = (): CookieOptions['sameSite'] => ( - { + ({ none: 'none', lax: 'lax', strict: 'strict', - } as Record + }) as Record )[UNCHAINED_COOKIE_SAMESITE?.trim()?.toLowerCase()] || 'lax'; export function getGateCookieOptions(maxAge?: number): CookieOptions { diff --git a/packages/api/src/resolvers/mutations/warehousing/invalidateToken.ts b/packages/api/src/resolvers/mutations/warehousing/invalidateToken.ts index 8ff83246ef..a81e006594 100644 --- a/packages/api/src/resolvers/mutations/warehousing/invalidateToken.ts +++ b/packages/api/src/resolvers/mutations/warehousing/invalidateToken.ts @@ -14,7 +14,7 @@ export default async function invalidateToken( { tokenId }: { tokenId: string }, context: Context, ) { - const { modules, services, userId } = context; + const { modules, userId } = context; log(`mutation invalidateToken ${tokenId}`, { userId, }); @@ -46,9 +46,5 @@ export default async function invalidateToken( const invalidatedToken = await modules.warehousing.invalidateToken(tokenId); - if (invalidatedToken) { - await services.warehousing.onTokenInvalidated({ token: invalidatedToken }); - } - return invalidatedToken; } diff --git a/packages/core/src/factory/index.ts b/packages/core/src/factory/index.ts index dbb7359c6b..918e17569c 100644 --- a/packages/core/src/factory/index.ts +++ b/packages/core/src/factory/index.ts @@ -3,7 +3,6 @@ import registerPickUpDelivery from './registerPickUpDelivery.ts'; import registerShippingDelivery from './registerShippingDelivery.ts'; import registerWorker from './registerWorker.ts'; import registerPhysicalWarehousing from './registerPhysicalWarehousing.ts'; -import registerVirtualWarehousing from './registerVirtualWarehousing.ts'; import registerProductSearchFilter from './registerProductSearchFilter.ts'; import registerAssortmentSearchFilter from './registerAssortmentSearchFilter.ts'; import registerInvoicePayment from './registerInvoicePayment.ts'; @@ -15,7 +14,6 @@ export { registerInvoicePayment, registerWorker, registerPhysicalWarehousing, - registerVirtualWarehousing, registerProductSearchFilter, registerAssortmentSearchFilter, }; diff --git a/packages/core/src/factory/registerVirtualWarehousing.ts b/packages/core/src/factory/registerVirtualWarehousing.ts deleted file mode 100644 index a5c604dc62..0000000000 --- a/packages/core/src/factory/registerVirtualWarehousing.ts +++ /dev/null @@ -1,116 +0,0 @@ -import { - type TokenSurrogate, - type WarehousingConfiguration, - WarehousingProviderType, -} from '@unchainedshop/core-warehousing'; -import { - WarehousingAdapter, - type WarehousingContext, - type IPlugin, - type IWarehousingAdapter, -} from '../core-index.ts'; -import { pluginRegistry } from '../plugins/PluginRegistry.ts'; - -export default function registerVirtualWarehousing>({ - adapterId, - orderIndex = 0, - stock, - tokenize, - tokenMetadata: tokenMetadataFn, - isInvalidateable: isInvalidateableFn, -}: { - adapterId: string; - orderIndex?: number; - stock?: - | number - | (( - referenceDate: Date, - configuration: WarehousingConfiguration, - context: WarehousingContext, - ) => Promise); - - tokenize: ( - configuration: WarehousingConfiguration, - context: WarehousingContext, - ) => Promise[]>; - - tokenMetadata?: ( - serialNumber: string, - referenceDate: Date, - configuration: WarehousingConfiguration, - context: WarehousingContext, - ) => Promise; - - isInvalidateable?: ( - serialNumber: string, - referenceDate: Date, - configuration: WarehousingConfiguration, - context: WarehousingContext, - ) => Promise; -}): IPlugin { - const adapter: IWarehousingAdapter = { - ...WarehousingAdapter, - - key: 'shop.unchained.warehousing.virtual.' + adapterId, - label: 'Virtual Wareshousing: ' + adapterId, - version: '1.0.0', - orderIndex, - - initialConfiguration: [{ key: 'shipping-hub', value: 'Shipping Hub' }], - - typeSupported: (type) => { - return type === WarehousingProviderType.VIRTUAL; - }, - - actions: (configuration, context) => { - return { - ...WarehousingAdapter.actions(configuration, context), - - isActive() { - return true; - }, - - configurationError() { - return null; - }, - - stock: async (referenceDate) => { - if (typeof stock === 'number') { - return stock; - } else if (typeof stock === 'function') { - return stock(referenceDate, configuration, context); - } - return 99999; - }, - - async tokenize() { - return tokenize(configuration, context); - }, - - async tokenMetadata(serialNumber, referenceDate) { - if (tokenMetadataFn) { - return tokenMetadataFn(serialNumber, referenceDate, configuration, context); - } - return null; - }, - - async isInvalidateable(serialNumber, referenceDate) { - if (isInvalidateableFn) { - return isInvalidateableFn(serialNumber, referenceDate, configuration, context); - } - return false; - }, - }; - }, - }; - - const plugin: IPlugin = { - key: adapter.key, - label: adapter.label, - version: adapter.version, - adapters: [adapter], - }; - - pluginRegistry.register(plugin); - return plugin; -} diff --git a/packages/core/src/services/index.ts b/packages/core/src/services/index.ts index 6e94335c4a..83c9ff0583 100644 --- a/packages/core/src/services/index.ts +++ b/packages/core/src/services/index.ts @@ -57,7 +57,6 @@ import { simulateConfigurablePriceRangeService } from './simulateConfigurablePri import { createFileDownloadURLService } from './createFileDownloadURL.ts'; import { resolveTokenStatusService } from './resolveTokenStatus.ts'; import { isTokenInvalidateableService } from './isTokenInvalidateable.ts'; -import { onTokenInvalidatedService } from './onTokenInvalidated.ts'; // Auto-Inject Unchained API as last parameter // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy @@ -187,7 +186,6 @@ export default function initServices(modules: Modules, customServices: CustomSer ercMetadata: ercMetadataService as Bound, resolveTokenStatus: resolveTokenStatusService as Bound, isTokenInvalidateable: isTokenInvalidateableService as Bound, - onTokenInvalidated: onTokenInvalidatedService as Bound, }, worker: { addMessage: addMessageService as Bound, diff --git a/packages/core/src/services/onTokenInvalidated.ts b/packages/core/src/services/onTokenInvalidated.ts deleted file mode 100644 index c1eac3bd3b..0000000000 --- a/packages/core/src/services/onTokenInvalidated.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { type TokenSurrogate, WarehousingProviderType } from '@unchainedshop/core-warehousing'; -import { WarehousingDirector } from '../directors/WarehousingDirector.ts'; -import type { Modules } from '../modules.ts'; - -export async function onTokenInvalidatedService( - this: Modules, - { - token, - }: { - token: TokenSurrogate; - }, -): Promise { - const product = await this.products.findProduct({ productId: token.productId }); - if (!product) return null; - - const virtualProviders = (await this.warehousing.allProviders()).filter( - ({ type }) => type === WarehousingProviderType.VIRTUAL, - ); - - return WarehousingDirector.tokenMetadata( - virtualProviders, - { - token, - product, - quantity: token?.quantity || 1, - referenceDate: new Date(), - }, - { modules: this }, - ); -}