diff --git a/.eslintrc.cjs b/.eslintrc.cjs index bad27a9..44db4be 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -71,7 +71,7 @@ module.exports = defineConfig({ "import/no-default-export": "off", "import/no-anonymous-default-export": "off", }, - files: ["**/plugins/**/*.ts", "**/templates/**/*.tsx", "*.config.ts"], + files: ["**/plugins/**/*.ts", "**/templates/**/*.tsx", "*.config.*"], }, ], }); diff --git a/.prettierignore b/.prettierignore index de472e3..ddbbe99 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,6 +1,5 @@ dist/ node_modules/ build/ -graphql/schema.ts generated.ts -graphql/schema.ts +**/graphql/schema.ts diff --git a/package.json b/package.json index cb3a0ea..851c42b 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,8 @@ "fastify-raw-body": "^4.3.0", "fastify-type-provider-zod": "^2.0.0", "graphql": "^16.9.0", - "graphql-yoga": "^5.6.2", + "graphql-tag": "^2.12.6", + "graphql-yoga": "^5.7.0", "husky": "^9.1.4", "jose": "^5.6.3", "jsonwebtoken": "^9.0.2", @@ -85,6 +86,7 @@ "@graphql-codegen/typescript-operations": "^4.2.3", "@graphql-typed-document-node/core": "^3.2.0", "@types/aws-lambda": "^8.10.145", + "@types/graphql": "^14.5.0", "@types/jsonwebtoken": "^9.0.6", "@types/node": "^20.14.9", "@types/pg": "^8.11.6", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5c7f4dd..d94783e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -68,8 +68,11 @@ importers: graphql: specifier: ^16.9.0 version: 16.9.0 + graphql-tag: + specifier: ^2.12.6 + version: 2.12.6(graphql@16.9.0) graphql-yoga: - specifier: ^5.6.2 + specifier: ^5.7.0 version: 5.7.0(graphql@16.9.0) husky: specifier: ^9.1.4 @@ -151,6 +154,9 @@ importers: '@types/aws-lambda': specifier: ^8.10.145 version: 8.10.145 + '@types/graphql': + specifier: ^14.5.0 + version: 14.5.0 '@types/jsonwebtoken': specifier: ^9.0.6 version: 9.0.6 @@ -2459,6 +2465,10 @@ packages: '@types/estree@1.0.5': resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==} + '@types/graphql@14.5.0': + resolution: {integrity: sha512-MOkzsEp1Jk5bXuAsHsUi6BVv0zCO+7/2PTiZMXWDSsMXvNU6w/PLMQT2vHn8hy2i0JqojPz1Sz6rsFjHtsU0lA==} + deprecated: This is a stub types definition. graphql provides its own type definitions, so you do not need this installed. + '@types/js-yaml@4.0.9': resolution: {integrity: sha512-k4MGaQl5TGo/iipqb2UDG2UwjXziSWkh0uysQelTlJpX1qGlpUZYm8PnO4DxG1qBomtJUdYJ6qR6xdIah10JLg==} @@ -7924,12 +7934,12 @@ snapshots: '@graphql-tools/optimize@1.4.0(graphql@16.9.0)': dependencies: graphql: 16.9.0 - tslib: 2.6.3 + tslib: 2.7.0 '@graphql-tools/optimize@2.0.0(graphql@16.9.0)': dependencies: graphql: 16.9.0 - tslib: 2.6.3 + tslib: 2.7.0 '@graphql-tools/prisma-loader@8.0.4(@types/node@20.16.5)(graphql@16.9.0)': dependencies: @@ -7962,7 +7972,7 @@ snapshots: '@ardatan/relay-compiler': 12.0.0(graphql@16.9.0) '@graphql-tools/utils': 9.2.1(graphql@16.9.0) graphql: 16.9.0 - tslib: 2.6.3 + tslib: 2.7.0 transitivePeerDependencies: - encoding - supports-color @@ -7972,7 +7982,7 @@ snapshots: '@ardatan/relay-compiler': 12.0.0(graphql@16.9.0) '@graphql-tools/utils': 10.5.4(graphql@16.9.0) graphql: 16.9.0 - tslib: 2.6.3 + tslib: 2.7.0 transitivePeerDependencies: - encoding - supports-color @@ -8018,13 +8028,13 @@ snapshots: '@graphql-tools/utils@8.13.1(graphql@16.9.0)': dependencies: graphql: 16.9.0 - tslib: 2.6.3 + tslib: 2.7.0 '@graphql-tools/utils@9.2.1(graphql@16.9.0)': dependencies: '@graphql-typed-document-node/core': 3.2.0(graphql@16.9.0) graphql: 16.9.0 - tslib: 2.6.3 + tslib: 2.7.0 '@graphql-tools/wrap@10.0.5(graphql@16.9.0)': dependencies: @@ -8851,6 +8861,10 @@ snapshots: '@types/estree@1.0.5': {} + '@types/graphql@14.5.0': + dependencies: + graphql: 16.9.0 + '@types/js-yaml@4.0.9': {} '@types/json-schema@7.0.15': {} @@ -9479,7 +9493,7 @@ snapshots: path-case: 3.0.4 sentence-case: 3.0.4 snake-case: 3.0.4 - tslib: 2.6.3 + tslib: 2.7.0 chardet@0.7.0: {} @@ -10705,7 +10719,7 @@ snapshots: graphql-tag@2.12.6(graphql@16.9.0): dependencies: graphql: 16.9.0 - tslib: 2.6.3 + tslib: 2.7.0 graphql-ws@5.16.0(graphql@16.9.0): dependencies: @@ -10949,7 +10963,7 @@ snapshots: is-lower-case@2.0.2: dependencies: - tslib: 2.6.3 + tslib: 2.7.0 is-negative-zero@2.0.3: {} @@ -10998,7 +11012,7 @@ snapshots: is-upper-case@2.0.2: dependencies: - tslib: 2.6.3 + tslib: 2.7.0 is-utf8@0.2.1: {} @@ -11265,11 +11279,11 @@ snapshots: lower-case-first@2.0.2: dependencies: - tslib: 2.6.3 + tslib: 2.7.0 lower-case@2.0.2: dependencies: - tslib: 2.6.3 + tslib: 2.7.0 lru-cache@10.4.3: {} @@ -12123,7 +12137,7 @@ snapshots: sponge-case@1.0.1: dependencies: - tslib: 2.6.3 + tslib: 2.7.0 sqs-consumer@11.1.0(@aws-sdk/client-sqs@3.658.1): dependencies: @@ -12228,7 +12242,7 @@ snapshots: swap-case@2.0.2: dependencies: - tslib: 2.6.3 + tslib: 2.7.0 synckit@0.9.1: dependencies: @@ -12263,7 +12277,7 @@ snapshots: title-case@3.0.3: dependencies: - tslib: 2.6.3 + tslib: 2.7.0 tmp@0.0.33: dependencies: @@ -12415,11 +12429,11 @@ snapshots: upper-case-first@2.0.2: dependencies: - tslib: 2.6.3 + tslib: 2.7.0 upper-case@2.0.2: dependencies: - tslib: 2.6.3 + tslib: 2.7.0 uri-js@4.4.1: dependencies: diff --git a/src/api/rest/routes.ts b/src/api/rest/routes.ts index 318e468..549b0fe 100644 --- a/src/api/rest/routes.ts +++ b/src/api/rest/routes.ts @@ -1,6 +1,8 @@ import type { FastifyPluginAsync } from "fastify/types/plugin"; import { type ZodTypeProvider } from "fastify-type-provider-zod"; +import { OrderCreatedSubscriptionDocument } from "@/graphql/operations/subscriptions/generated"; +import { validateDocumentAgainstData } from "@/lib/graphql/validate"; import { verifyJWTSignature } from "@/lib/saleor/auth"; import { saleorBearerHeader } from "@/lib/saleor/schema"; import { getJWKSProvider } from "@/providers/jwks"; @@ -25,4 +27,17 @@ export const restRoutes: FastifyPluginAsync = async (fastify) => { return { status: "ok" }; } ); + + fastify.withTypeProvider().post( + "/test", + + async (request, response) => { + const { isValid, error } = validateDocumentAgainstData({ + data: request.body, + document: OrderCreatedSubscriptionDocument, + }); + + return response.status(isValid ? 200 : 400).send({ isValid, error }); + } + ); }; diff --git a/src/emails-sender.ts b/src/emails-sender.ts index b9426c9..a45977e 100644 --- a/src/emails-sender.ts +++ b/src/emails-sender.ts @@ -17,7 +17,7 @@ export const logger = getLogger("emails-sender"); const parseRecord = (record: SQSRecord) => { try { - // FIXME: Proxy events has invalid format? Test with real data & localstack. + // FIXME: Proxy events has invalid format? Test with real data. const data = JSON.parse((record as any).Body); return data as SerializedPayload; } catch (error) { @@ -68,6 +68,8 @@ export const handler = async (event: SQSEvent, context: Context) => { props: { data }, template, }); + // TODO: Handle properly + // Will throw TypeError if failed to render / non transient await sender.send({ html, diff --git a/src/graphql/schema.ts b/src/graphql/schema.ts index fef9964..0384b88 100644 --- a/src/graphql/schema.ts +++ b/src/graphql/schema.ts @@ -4,45 +4,32 @@ /* @typescript-eslint/no-unused-vars */ 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: string; output: string }; - DateTime: { input: string; output: string }; - Day: { input: number; output: number }; - Decimal: { input: number; output: number }; - GenericScalar: { input: unknown; output: unknown }; - JSON: { input: unknown; output: unknown }; - JSONString: { input: string; output: string }; - Metadata: { input: Record; output: Record }; - Minute: { input: number; output: number }; - PositiveDecimal: { input: number; output: number }; - UUID: { input: string; output: string }; - Upload: { input: unknown; output: unknown }; - WeightScalar: { input: unknown; output: unknown }; - _Any: { input: unknown; output: unknown }; + 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: string; output: string; } + DateTime: { input: string; output: string; } + Day: { input: number; output: number; } + Decimal: { input: number; output: number; } + GenericScalar: { input: unknown; output: unknown; } + JSON: { input: unknown; output: unknown; } + JSONString: { input: string; output: string; } + Metadata: { input: Record; output: Record; } + Minute: { input: number; output: number; } + PositiveDecimal: { input: number; output: number; } + UUID: { input: string; output: string; } + Upload: { input: unknown; output: unknown; } + WeightScalar: { input: unknown; output: unknown; } + _Any: { input: unknown; output: unknown; } }; /** @@ -102,23 +89,23 @@ export type AccountChangeEmailRequested = Event & { /** The channel data. */ channel: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The new email address the user wants to change to. */ - newEmail: Maybe; + newEmail: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** The URL to redirect the user after he accepts the request. */ - redirectUrl: Maybe; + redirectUrl: Maybe; /** Shop data. */ shop: Maybe; /** The token required to confirm request. */ - token: Maybe; + token: Maybe; /** The user the event relates to. */ user: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -130,21 +117,21 @@ export type AccountConfirmationRequested = Event & { /** The channel data. */ channel: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** The URL to redirect the user after he accepts the request. */ - redirectUrl: Maybe; + redirectUrl: Maybe; /** Shop data. */ shop: Maybe; /** The token required to confirm request. */ - token: Maybe; + token: Maybe; /** The user the event relates to. */ user: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -156,21 +143,21 @@ export type AccountConfirmed = Event & { /** The channel data. */ channel: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** The URL to redirect the user after he accepts the request. */ - redirectUrl: Maybe; + redirectUrl: Maybe; /** Shop data. */ shop: Maybe; /** The token required to confirm request. */ - token: Maybe; + token: Maybe; /** The user the event relates to. */ user: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -197,21 +184,21 @@ export type AccountDeleteRequested = Event & { /** The channel data. */ channel: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** The URL to redirect the user after he accepts the request. */ - redirectUrl: Maybe; + redirectUrl: Maybe; /** Shop data. */ shop: Maybe; /** The token required to confirm request. */ - token: Maybe; + token: Maybe; /** The user the event relates to. */ user: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -223,21 +210,21 @@ export type AccountDeleted = Event & { /** The channel data. */ channel: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** The URL to redirect the user after he accepts the request. */ - redirectUrl: Maybe; + redirectUrl: Maybe; /** Shop data. */ shop: Maybe; /** The token required to confirm request. */ - token: Maybe; + token: Maybe; /** The user the event relates to. */ user: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -249,23 +236,23 @@ export type AccountEmailChanged = Event & { /** The channel data. */ channel: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The new email address. */ - newEmail: Maybe; + newEmail: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** The URL to redirect the user after he accepts the request. */ - redirectUrl: Maybe; + redirectUrl: Maybe; /** Shop data. */ shop: Maybe; /** The token required to confirm request. */ - token: Maybe; + token: Maybe; /** The user the event relates to. */ user: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** Represents errors in account mutations. */ @@ -275,49 +262,49 @@ export type AccountError = { /** The error code. */ code: AccountErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type AccountErrorCode = - | "ACCOUNT_NOT_CONFIRMED" - | "ACTIVATE_OWN_ACCOUNT" - | "ACTIVATE_SUPERUSER_ACCOUNT" - | "CHANNEL_INACTIVE" - | "DEACTIVATE_OWN_ACCOUNT" - | "DEACTIVATE_SUPERUSER_ACCOUNT" - | "DELETE_NON_STAFF_USER" - | "DELETE_OWN_ACCOUNT" - | "DELETE_STAFF_ACCOUNT" - | "DELETE_SUPERUSER_ACCOUNT" - | "DUPLICATED_INPUT_ITEM" - | "GRAPHQL_ERROR" - | "INACTIVE" - | "INVALID" - | "INVALID_CREDENTIALS" - | "INVALID_PASSWORD" - | "JWT_DECODE_ERROR" - | "JWT_INVALID_CSRF_TOKEN" - | "JWT_INVALID_TOKEN" - | "JWT_MISSING_TOKEN" - | "JWT_SIGNATURE_EXPIRED" - | "LEFT_NOT_MANAGEABLE_PERMISSION" - | "LOGIN_ATTEMPT_DELAYED" - | "MISSING_CHANNEL_SLUG" - | "NOT_FOUND" - | "OUT_OF_SCOPE_GROUP" - | "OUT_OF_SCOPE_PERMISSION" - | "OUT_OF_SCOPE_USER" - | "PASSWORD_ENTIRELY_NUMERIC" - | "PASSWORD_RESET_ALREADY_REQUESTED" - | "PASSWORD_TOO_COMMON" - | "PASSWORD_TOO_SHORT" - | "PASSWORD_TOO_SIMILAR" - | "REQUIRED" - | "UNIQUE" - | "UNKNOWN_IP_ADDRESS"; + | 'ACCOUNT_NOT_CONFIRMED' + | 'ACTIVATE_OWN_ACCOUNT' + | 'ACTIVATE_SUPERUSER_ACCOUNT' + | 'CHANNEL_INACTIVE' + | 'DEACTIVATE_OWN_ACCOUNT' + | 'DEACTIVATE_SUPERUSER_ACCOUNT' + | 'DELETE_NON_STAFF_USER' + | 'DELETE_OWN_ACCOUNT' + | 'DELETE_STAFF_ACCOUNT' + | 'DELETE_SUPERUSER_ACCOUNT' + | 'DUPLICATED_INPUT_ITEM' + | 'GRAPHQL_ERROR' + | 'INACTIVE' + | 'INVALID' + | 'INVALID_CREDENTIALS' + | 'INVALID_PASSWORD' + | 'JWT_DECODE_ERROR' + | 'JWT_INVALID_CSRF_TOKEN' + | 'JWT_INVALID_TOKEN' + | 'JWT_MISSING_TOKEN' + | 'JWT_SIGNATURE_EXPIRED' + | 'LEFT_NOT_MANAGEABLE_PERMISSION' + | 'LOGIN_ATTEMPT_DELAYED' + | 'MISSING_CHANNEL_SLUG' + | 'NOT_FOUND' + | 'OUT_OF_SCOPE_GROUP' + | 'OUT_OF_SCOPE_PERMISSION' + | 'OUT_OF_SCOPE_USER' + | 'PASSWORD_ENTIRELY_NUMERIC' + | 'PASSWORD_RESET_ALREADY_REQUESTED' + | 'PASSWORD_TOO_COMMON' + | 'PASSWORD_TOO_SHORT' + | 'PASSWORD_TOO_SIMILAR' + | 'REQUIRED' + | 'UNIQUE' + | 'UNKNOWN_IP_ADDRESS'; /** Fields required to update the user. */ export type AccountInput = { @@ -326,11 +313,11 @@ export type AccountInput = { /** Shipping address of the customer. */ defaultShippingAddress?: InputMaybe; /** Given name. */ - firstName?: InputMaybe; + firstName?: InputMaybe; /** User language code. */ languageCode?: InputMaybe; /** Family name. */ - lastName?: InputMaybe; + lastName?: InputMaybe; /** * Fields required to update the user metadata. * @@ -352,28 +339,28 @@ export type AccountRegister = { accountErrors: Array; errors: Array; /** Informs whether users need to confirm their email address. */ - requiresConfirmation: Maybe; + requiresConfirmation: Maybe; user: Maybe; }; /** Fields required to create a user. */ export type AccountRegisterInput = { /** Slug of a channel which will be used to notify users. Optional when only one channel exists. */ - channel?: InputMaybe; + channel?: InputMaybe; /** The email address of the user. */ - email: Scalars["String"]["input"]; + email: Scalars['String']['input']; /** Given name. */ - firstName?: InputMaybe; + firstName?: InputMaybe; /** User language code. */ languageCode?: InputMaybe; /** Family name. */ - lastName?: InputMaybe; + lastName?: InputMaybe; /** User public metadata. */ metadata?: InputMaybe>; /** Password. */ - password: Scalars["String"]["input"]; + password: Scalars['String']['input']; /** Base of frontend URL that will be needed to create confirmation URL. Required when account confirmation is enabled. */ - redirectUrl?: InputMaybe; + redirectUrl?: InputMaybe; }; /** @@ -416,21 +403,21 @@ export type AccountSetPasswordRequested = Event & { /** The channel data. */ channel: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** The URL to redirect the user after he accepts the request. */ - redirectUrl: Maybe; + redirectUrl: Maybe; /** Shop data. */ shop: Maybe; /** The token required to confirm request. */ - token: Maybe; + token: Maybe; /** The user the event relates to. */ user: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -450,96 +437,99 @@ export type AccountUpdate = { }; /** Represents user address data. */ -export type Address = Node & - ObjectWithMetadata & { - /** The city of the address. */ - city: Scalars["String"]["output"]; - /** The district of the address. */ - cityArea: Scalars["String"]["output"]; - /** Company or organization name. */ - companyName: Scalars["String"]["output"]; - /** The country of the address. */ - country: CountryDisplay; - /** The country area of the address. */ - countryArea: Scalars["String"]["output"]; - /** The given name of the address. */ - firstName: Scalars["String"]["output"]; - /** The ID of the address. */ - id: Scalars["ID"]["output"]; - /** Address is user's default billing address. */ - isDefaultBillingAddress: Maybe; - /** Address is user's default shipping address. */ - isDefaultShippingAddress: Maybe; - /** The family name of the address. */ - lastName: Scalars["String"]["output"]; - /** - * List of public metadata items. Can be accessed without permissions. - * - * Added in Saleor 3.10. - */ - metadata: Array; - /** - * A single key from public metadata. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.10. - */ - metafield: Maybe; - /** - * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.10. - */ - metafields: Maybe; - /** The phone number assigned the address. */ - phone: Maybe; - /** The postal code of the address. */ - postalCode: Scalars["String"]["output"]; - /** - * List of private metadata items. Requires staff permissions to access. - * - * Added in Saleor 3.10. - */ - privateMetadata: Array; - /** - * A single key from private metadata. Requires staff permissions to access. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.10. - */ - privateMetafield: Maybe; - /** - * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.10. - */ - privateMetafields: Maybe; - /** The first line of the address. */ - streetAddress1: Scalars["String"]["output"]; - /** The second line of the address. */ - streetAddress2: Scalars["String"]["output"]; - }; +export type Address = Node & ObjectWithMetadata & { + /** The city of the address. */ + city: Scalars['String']['output']; + /** The district of the address. */ + cityArea: Scalars['String']['output']; + /** Company or organization name. */ + companyName: Scalars['String']['output']; + /** The country of the address. */ + country: CountryDisplay; + /** The country area of the address. */ + countryArea: Scalars['String']['output']; + /** The given name of the address. */ + firstName: Scalars['String']['output']; + /** The ID of the address. */ + id: Scalars['ID']['output']; + /** Address is user's default billing address. */ + isDefaultBillingAddress: Maybe; + /** Address is user's default shipping address. */ + isDefaultShippingAddress: Maybe; + /** The family name of the address. */ + lastName: Scalars['String']['output']; + /** + * List of public metadata items. Can be accessed without permissions. + * + * Added in Saleor 3.10. + */ + metadata: Array; + /** + * A single key from public metadata. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.10. + */ + metafield: Maybe; + /** + * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.10. + */ + metafields: Maybe; + /** The phone number assigned the address. */ + phone: Maybe; + /** The postal code of the address. */ + postalCode: Scalars['String']['output']; + /** + * List of private metadata items. Requires staff permissions to access. + * + * Added in Saleor 3.10. + */ + privateMetadata: Array; + /** + * A single key from private metadata. Requires staff permissions to access. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.10. + */ + privateMetafield: Maybe; + /** + * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.10. + */ + privateMetafields: Maybe; + /** The first line of the address. */ + streetAddress1: Scalars['String']['output']; + /** The second line of the address. */ + streetAddress2: Scalars['String']['output']; +}; + /** Represents user address data. */ export type AddressMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents user address data. */ export type AddressMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Represents user address data. */ export type AddressPrivateMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents user address data. */ export type AddressPrivateMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; /** @@ -568,13 +558,13 @@ export type AddressCreated = Event & { /** The address the event relates to. */ address: Maybe
; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -603,30 +593,30 @@ export type AddressDeleted = Event & { /** The address the event relates to. */ address: Maybe
; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; export type AddressInput = { /** City. */ - city?: InputMaybe; + city?: InputMaybe; /** District. */ - cityArea?: InputMaybe; + cityArea?: InputMaybe; /** Company or organization. */ - companyName?: InputMaybe; + companyName?: InputMaybe; /** Country. */ country?: InputMaybe; /** State or province. */ - countryArea?: InputMaybe; + countryArea?: InputMaybe; /** Given name. */ - firstName?: InputMaybe; + firstName?: InputMaybe; /** Family name. */ - lastName?: InputMaybe; + lastName?: InputMaybe; /** * Address public metadata. * @@ -638,9 +628,9 @@ export type AddressInput = { * * Phone numbers are validated with Google's [libphonenumber](https://github.com/google/libphonenumber) library. */ - phone?: InputMaybe; + phone?: InputMaybe; /** Postal code. */ - postalCode?: InputMaybe; + postalCode?: InputMaybe; /** * Determine if the address should be validated. By default, Saleor accepts only address inputs matching ruleset from [Google Address Data]{https://chromium-i18n.appspot.com/ssl-address), using [i18naddress](https://github.com/mirumee/google-i18n-address) library. Some mutations may require additional permissions to use the the field. More info about permissions can be found in relevant mutation. * @@ -648,11 +638,11 @@ export type AddressInput = { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - skipValidation?: InputMaybe; + skipValidation?: InputMaybe; /** Address. */ - streetAddress1?: InputMaybe; + streetAddress1?: InputMaybe; /** Address. */ - streetAddress2?: InputMaybe; + streetAddress2?: InputMaybe; }; /** @@ -672,7 +662,9 @@ export type AddressSetDefault = { }; /** An enumeration. */ -export type AddressTypeEnum = "BILLING" | "SHIPPING"; +export type AddressTypeEnum = + | 'BILLING' + | 'SHIPPING'; /** * Updates an address. @@ -700,13 +692,13 @@ export type AddressUpdated = Event & { /** The address the event relates to. */ address: Maybe
; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** Represents address validation rules for a country. */ @@ -727,7 +719,7 @@ export type AddressValidationData = { * * [Click here for more information.](https://github.com/google/libaddressinput/wiki/AddressValidationMetadata) */ - addressFormat: Scalars["String"]["output"]; + addressFormat: Scalars['String']['output']; /** * The latin address format of the address validation rule. * @@ -744,49 +736,49 @@ export type AddressValidationData = { * * [Click here for more information.](https://github.com/google/libaddressinput/wiki/AddressValidationMetadata) */ - addressLatinFormat: Scalars["String"]["output"]; + addressLatinFormat: Scalars['String']['output']; /** The allowed fields to use in address. */ - allowedFields: Array; + allowedFields: Array; /** The available choices for the city area of the address validation rule. */ cityAreaChoices: Array; /** The formal name of the city area of the address validation rule. */ - cityAreaType: Scalars["String"]["output"]; + cityAreaType: Scalars['String']['output']; /** The available choices for the city of the address validation rule. */ cityChoices: Array; /** The formal name of the city of the address validation rule. */ - cityType: Scalars["String"]["output"]; + cityType: Scalars['String']['output']; /** The available choices for the country area of the address validation rule. */ countryAreaChoices: Array; /** The formal name of the county area of the address validation rule. */ - countryAreaType: Scalars["String"]["output"]; + countryAreaType: Scalars['String']['output']; /** The country code of the address validation rule. */ - countryCode: Scalars["String"]["output"]; + countryCode: Scalars['String']['output']; /** The country name of the address validation rule. */ - countryName: Scalars["String"]["output"]; + countryName: Scalars['String']['output']; /** The example postal code of the address validation rule. */ - postalCodeExamples: Array; + postalCodeExamples: Array; /** The regular expression for postal code validation. */ - postalCodeMatchers: Array; + postalCodeMatchers: Array; /** The postal code prefix of the address validation rule. */ - postalCodePrefix: Scalars["String"]["output"]; + postalCodePrefix: Scalars['String']['output']; /** The formal name of the postal code of the address validation rule. */ - postalCodeType: Scalars["String"]["output"]; + postalCodeType: Scalars['String']['output']; /** The required fields to create a valid address. */ - requiredFields: Array; + requiredFields: Array; /** The list of fields that should be in upper case for address validation rule. */ - upperFields: Array; + upperFields: Array; }; /** Represents allocation. */ export type Allocation = Node & { /** The ID of allocation. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** * Quantity allocated for orders. * * Requires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS. */ - quantity: Scalars["Int"]["output"]; + quantity: Scalars['Int']['output']; /** * The warehouse were items were allocated. * @@ -805,146 +797,149 @@ export type Allocation = Node & { * */ export type AllocationStrategyEnum = - | "PRIORITIZE_HIGH_STOCK" - | "PRIORITIZE_SORTING_ORDER"; + | 'PRIORITIZE_HIGH_STOCK' + | 'PRIORITIZE_SORTING_ORDER'; /** Represents app data. */ -export type App = Node & - ObjectWithMetadata & { - /** Description of this app. */ - aboutApp: Maybe; - /** JWT token used to authenticate by third-party app. */ - accessToken: Maybe; - /** URL to iframe with the app. */ - appUrl: Maybe; - /** - * The App's author name. - * - * Added in Saleor 3.13. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - author: Maybe; - /** - * App's brand data. - * - * Added in Saleor 3.14. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - brand: Maybe; - /** - * URL to iframe with the configuration for the app. - * @deprecated This field will be removed in Saleor 4.0. Use `appUrl` instead. - */ - configurationUrl: Maybe; - /** The date and time when the app was created. */ - created: Maybe; - /** - * Description of the data privacy defined for this app. - * @deprecated This field will be removed in Saleor 4.0. Use `dataPrivacyUrl` instead. - */ - dataPrivacy: Maybe; - /** URL to details about the privacy policy on the app owner page. */ - dataPrivacyUrl: Maybe; - /** - * App's dashboard extensions. - * - * Added in Saleor 3.1. - */ - extensions: Array; - /** Homepage of the app. */ - homepageUrl: Maybe; - /** The ID of the app. */ - id: Scalars["ID"]["output"]; - /** - * Canonical app ID from the manifest - * - * Added in Saleor 3.19. - */ - identifier: Maybe; - /** Determine if app will be set active or not. */ - isActive: Maybe; - /** - * URL to manifest used during app's installation. - * - * Added in Saleor 3.5. - */ - manifestUrl: Maybe; - /** List of public metadata items. Can be accessed without permissions. */ - metadata: Array; - /** - * A single key from public metadata. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - metafield: Maybe; - /** - * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - metafields: Maybe; - /** Name of the app. */ - name: Maybe; - /** List of the app's permissions. */ - permissions: Maybe>; - /** List of private metadata items. Requires staff permissions to access. */ - privateMetadata: Array; - /** - * A single key from private metadata. Requires staff permissions to access. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - privateMetafield: Maybe; - /** - * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - privateMetafields: Maybe; - /** Support page for the app. */ - supportUrl: Maybe; - /** - * Last 4 characters of the tokens. - * - * Requires one of the following permissions: MANAGE_APPS, OWNER. - */ - tokens: Maybe>; - /** Type of the app. */ - type: Maybe; - /** Version number of the app. */ - version: Maybe; - /** - * List of webhooks assigned to this app. - * - * Requires one of the following permissions: MANAGE_APPS, OWNER. - */ - webhooks: Maybe>; - }; +export type App = Node & ObjectWithMetadata & { + /** Description of this app. */ + aboutApp: Maybe; + /** JWT token used to authenticate by third-party app. */ + accessToken: Maybe; + /** URL to iframe with the app. */ + appUrl: Maybe; + /** + * The App's author name. + * + * Added in Saleor 3.13. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + author: Maybe; + /** + * App's brand data. + * + * Added in Saleor 3.14. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + brand: Maybe; + /** + * URL to iframe with the configuration for the app. + * @deprecated This field will be removed in Saleor 4.0. Use `appUrl` instead. + */ + configurationUrl: Maybe; + /** The date and time when the app was created. */ + created: Maybe; + /** + * Description of the data privacy defined for this app. + * @deprecated This field will be removed in Saleor 4.0. Use `dataPrivacyUrl` instead. + */ + dataPrivacy: Maybe; + /** URL to details about the privacy policy on the app owner page. */ + dataPrivacyUrl: Maybe; + /** + * App's dashboard extensions. + * + * Added in Saleor 3.1. + */ + extensions: Array; + /** Homepage of the app. */ + homepageUrl: Maybe; + /** The ID of the app. */ + id: Scalars['ID']['output']; + /** + * Canonical app ID from the manifest + * + * Added in Saleor 3.19. + */ + identifier: Maybe; + /** Determine if app will be set active or not. */ + isActive: Maybe; + /** + * URL to manifest used during app's installation. + * + * Added in Saleor 3.5. + */ + manifestUrl: Maybe; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * A single key from public metadata. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + metafield: Maybe; + /** + * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + metafields: Maybe; + /** Name of the app. */ + name: Maybe; + /** List of the app's permissions. */ + permissions: Maybe>; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * A single key from private metadata. Requires staff permissions to access. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + privateMetafield: Maybe; + /** + * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + privateMetafields: Maybe; + /** Support page for the app. */ + supportUrl: Maybe; + /** + * Last 4 characters of the tokens. + * + * Requires one of the following permissions: MANAGE_APPS, OWNER. + */ + tokens: Maybe>; + /** Type of the app. */ + type: Maybe; + /** Version number of the app. */ + version: Maybe; + /** + * List of webhooks assigned to this app. + * + * Requires one of the following permissions: MANAGE_APPS, OWNER. + */ + webhooks: Maybe>; +}; + /** Represents app data. */ export type AppMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents app data. */ export type AppMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Represents app data. */ export type AppPrivateMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents app data. */ export type AppPrivateMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; /** @@ -995,9 +990,10 @@ export type AppBrandLogo = { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - default: Scalars["String"]["output"]; + default: Scalars['String']['output']; }; + /** * Represents the app's brand logo data. * @@ -1007,7 +1003,7 @@ export type AppBrandLogo = { */ export type AppBrandLogoDefaultArgs = { format?: InputMaybe; - size?: InputMaybe; + size?: InputMaybe; }; export type AppCountableConnection = { @@ -1015,12 +1011,12 @@ export type AppCountableConnection = { /** Pagination data for this connection. */ pageInfo: PageInfo; /** A total count of items in the collection. */ - totalCount: Maybe; + totalCount: Maybe; }; export type AppCountableEdge = { /** A cursor for use in pagination. */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node: App; }; @@ -1036,7 +1032,7 @@ export type AppCreate = { /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ appErrors: Array; /** The newly created authentication token. */ - authToken: Maybe; + authToken: Maybe; errors: Array; }; @@ -1091,54 +1087,54 @@ export type AppDeleted = Event & { /** The application the event relates to. */ app: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; export type AppError = { /** The error code. */ code: AppErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; /** List of permissions which causes the error. */ permissions: Maybe>; }; /** An enumeration. */ export type AppErrorCode = - | "FORBIDDEN" - | "GRAPHQL_ERROR" - | "INVALID" - | "INVALID_CUSTOM_HEADERS" - | "INVALID_MANIFEST_FORMAT" - | "INVALID_PERMISSION" - | "INVALID_STATUS" - | "INVALID_URL_FORMAT" - | "MANIFEST_URL_CANT_CONNECT" - | "NOT_FOUND" - | "OUT_OF_SCOPE_APP" - | "OUT_OF_SCOPE_PERMISSION" - | "REQUIRED" - | "UNIQUE" - | "UNSUPPORTED_SALEOR_VERSION"; + | 'FORBIDDEN' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'INVALID_CUSTOM_HEADERS' + | 'INVALID_MANIFEST_FORMAT' + | 'INVALID_PERMISSION' + | 'INVALID_STATUS' + | 'INVALID_URL_FORMAT' + | 'MANIFEST_URL_CANT_CONNECT' + | 'NOT_FOUND' + | 'OUT_OF_SCOPE_APP' + | 'OUT_OF_SCOPE_PERMISSION' + | 'REQUIRED' + | 'UNIQUE' + | 'UNSUPPORTED_SALEOR_VERSION'; /** Represents app data. */ export type AppExtension = Node & { /** JWT token used to authenticate by third-party app extension. */ - accessToken: Maybe; + accessToken: Maybe; /** The app assigned to app extension. */ app: App; /** The ID of the app extension. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Label of the extension to show in the dashboard. */ - label: Scalars["String"]["output"]; + label: Scalars['String']['output']; /** Place where given extension will be mounted. */ mount: AppExtensionMountEnum; /** List of the app extension's permissions. */ @@ -1146,7 +1142,7 @@ export type AppExtension = Node & { /** Type of way how app extension will be opened. */ target: AppExtensionTargetEnum; /** URL of a view where extension's iframe is placed. */ - url: Scalars["String"]["output"]; + url: Scalars['String']['output']; }; export type AppExtensionCountableConnection = { @@ -1154,12 +1150,12 @@ export type AppExtensionCountableConnection = { /** Pagination data for this connection. */ pageInfo: PageInfo; /** A total count of items in the collection. */ - totalCount: Maybe; + totalCount: Maybe; }; export type AppExtensionCountableEdge = { /** A cursor for use in pagination. */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node: AppExtension; }; @@ -1171,21 +1167,21 @@ export type AppExtensionFilterInput = { /** All places where app extension can be mounted. */ export type AppExtensionMountEnum = - | "CUSTOMER_DETAILS_MORE_ACTIONS" - | "CUSTOMER_OVERVIEW_CREATE" - | "CUSTOMER_OVERVIEW_MORE_ACTIONS" - | "NAVIGATION_CATALOG" - | "NAVIGATION_CUSTOMERS" - | "NAVIGATION_DISCOUNTS" - | "NAVIGATION_ORDERS" - | "NAVIGATION_PAGES" - | "NAVIGATION_TRANSLATIONS" - | "ORDER_DETAILS_MORE_ACTIONS" - | "ORDER_OVERVIEW_CREATE" - | "ORDER_OVERVIEW_MORE_ACTIONS" - | "PRODUCT_DETAILS_MORE_ACTIONS" - | "PRODUCT_OVERVIEW_CREATE" - | "PRODUCT_OVERVIEW_MORE_ACTIONS"; + | 'CUSTOMER_DETAILS_MORE_ACTIONS' + | 'CUSTOMER_OVERVIEW_CREATE' + | 'CUSTOMER_OVERVIEW_MORE_ACTIONS' + | 'NAVIGATION_CATALOG' + | 'NAVIGATION_CUSTOMERS' + | 'NAVIGATION_DISCOUNTS' + | 'NAVIGATION_ORDERS' + | 'NAVIGATION_PAGES' + | 'NAVIGATION_TRANSLATIONS' + | 'ORDER_DETAILS_MORE_ACTIONS' + | 'ORDER_OVERVIEW_CREATE' + | 'ORDER_OVERVIEW_MORE_ACTIONS' + | 'PRODUCT_DETAILS_MORE_ACTIONS' + | 'PRODUCT_OVERVIEW_CREATE' + | 'PRODUCT_OVERVIEW_MORE_ACTIONS'; /** * All available ways of opening an app extension. @@ -1194,7 +1190,9 @@ export type AppExtensionMountEnum = * APP_PAGE - redirect to app's page * */ -export type AppExtensionTargetEnum = "APP_PAGE" | "POPUP"; +export type AppExtensionTargetEnum = + | 'APP_PAGE' + | 'POPUP'; /** * Fetch and validate manifest. @@ -1210,8 +1208,8 @@ export type AppFetchManifest = { }; export type AppFilterInput = { - isActive?: InputMaybe; - search?: InputMaybe; + isActive?: InputMaybe; + search?: InputMaybe; type?: InputMaybe; }; @@ -1221,9 +1219,9 @@ export type AppInput = { * * Added in Saleor 3.19. */ - identifier?: InputMaybe; + identifier?: InputMaybe; /** Name of the app. */ - name?: InputMaybe; + name?: InputMaybe; /** List of permission code names to assign to this app. */ permissions?: InputMaybe>; }; @@ -1238,41 +1236,40 @@ export type AppInstall = { export type AppInstallInput = { /** Determine if app will be set active or not. */ - activateAfterInstallation?: InputMaybe; + activateAfterInstallation?: InputMaybe; /** Name of the app to install. */ - appName?: InputMaybe; + appName?: InputMaybe; /** URL to app's manifest in JSON format. */ - manifestUrl?: InputMaybe; + manifestUrl?: InputMaybe; /** List of permission code names to assign to this app. */ permissions?: InputMaybe>; }; /** Represents ongoing installation of app. */ -export type AppInstallation = Job & - Node & { - /** The name of the app installation. */ - appName: Scalars["String"]["output"]; - /** - * App's brand data. - * - * Added in Saleor 3.14. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - brand: Maybe; - /** Created date time of job in ISO 8601 format. */ - createdAt: Scalars["DateTime"]["output"]; - /** The ID of the app installation. */ - id: Scalars["ID"]["output"]; - /** The URL address of manifest for the app installation. */ - manifestUrl: Scalars["String"]["output"]; - /** Job message. */ - message: Maybe; - /** Job status. */ - status: JobStatusEnum; - /** Date time of job last update in ISO 8601 format. */ - updatedAt: Scalars["DateTime"]["output"]; - }; +export type AppInstallation = Job & Node & { + /** The name of the app installation. */ + appName: Scalars['String']['output']; + /** + * App's brand data. + * + * Added in Saleor 3.14. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + brand: Maybe; + /** Created date time of job in ISO 8601 format. */ + createdAt: Scalars['DateTime']['output']; + /** The ID of the app installation. */ + id: Scalars['ID']['output']; + /** The URL address of manifest for the app installation. */ + manifestUrl: Scalars['String']['output']; + /** Job message. */ + message: Maybe; + /** Job status. */ + status: JobStatusEnum; + /** Date time of job last update in ISO 8601 format. */ + updatedAt: Scalars['DateTime']['output']; +}; /** * Event sent when new app is installed. @@ -1283,13 +1280,13 @@ export type AppInstalled = Event & { /** The application the event relates to. */ app: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -1325,9 +1322,10 @@ export type AppManifestBrandLogo = { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - default: Scalars["String"]["output"]; + default: Scalars['String']['output']; }; + /** * Represents the app's manifest brand data. * @@ -1337,12 +1335,12 @@ export type AppManifestBrandLogo = { */ export type AppManifestBrandLogoDefaultArgs = { format?: InputMaybe; - size?: InputMaybe; + size?: InputMaybe; }; export type AppManifestExtension = { /** Label of the extension to show in the dashboard. */ - label: Scalars["String"]["output"]; + label: Scalars['String']['output']; /** Place where given extension will be mounted. */ mount: AppExtensionMountEnum; /** List of the app extension's permissions. */ @@ -1350,7 +1348,7 @@ export type AppManifestExtension = { /** Type of way how app extension will be opened. */ target: AppExtensionTargetEnum; /** URL of a view where extension's iframe is placed. */ - url: Scalars["String"]["output"]; + url: Scalars['String']['output']; }; export type AppManifestRequiredSaleorVersion = { @@ -1361,7 +1359,7 @@ export type AppManifestRequiredSaleorVersion = { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - constraint: Scalars["String"]["output"]; + constraint: Scalars['String']['output']; /** * Informs if the Saleor version matches the required one. * @@ -1369,20 +1367,20 @@ export type AppManifestRequiredSaleorVersion = { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - satisfied: Scalars["Boolean"]["output"]; + satisfied: Scalars['Boolean']['output']; }; export type AppManifestWebhook = { /** The asynchronous events that webhook wants to subscribe. */ asyncEvents: Maybe>; /** The name of the webhook. */ - name: Scalars["String"]["output"]; + name: Scalars['String']['output']; /** Subscription query of a webhook */ - query: Scalars["String"]["output"]; + query: Scalars['String']['output']; /** The synchronous events that webhook wants to subscribe. */ syncEvents: Maybe>; /** The url to receive the payload. */ - targetUrl: Scalars["String"]["output"]; + targetUrl: Scalars['String']['output']; }; /** @@ -1402,9 +1400,9 @@ export type AppRetryInstall = { export type AppSortField = /** Sort apps by creation date. */ - | "CREATION_DATE" + | 'CREATION_DATE' /** Sort apps by name. */ - | "NAME"; + | 'NAME'; export type AppSortingInput = { /** Specifies the direction in which to sort apps. */ @@ -1422,23 +1420,23 @@ export type AppStatusChanged = Event & { /** The application the event relates to. */ app: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** Represents token data. */ export type AppToken = Node & { /** Last 4 characters of the token. */ - authToken: Maybe; + authToken: Maybe; /** The ID of the app token. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Name of the authenticated token. */ - name: Maybe; + name: Maybe; }; /** @@ -1451,7 +1449,7 @@ export type AppTokenCreate = { appErrors: Array; appToken: Maybe; /** The newly created authentication token. */ - authToken: Maybe; + authToken: Maybe; errors: Array; }; @@ -1469,9 +1467,9 @@ export type AppTokenDelete = { export type AppTokenInput = { /** ID of app. */ - app: Scalars["ID"]["input"]; + app: Scalars['ID']['input']; /** Name of the token. */ - name?: InputMaybe; + name?: InputMaybe; }; /** Verify provided app token. */ @@ -1480,15 +1478,15 @@ export type AppTokenVerify = { appErrors: Array; errors: Array; /** Determine if token is valid or not. */ - valid: Scalars["Boolean"]["output"]; + valid: Scalars['Boolean']['output']; }; /** Enum determining type of your App. */ export type AppTypeEnum = /** Local Saleor App. The app is fully manageable from dashboard. You can change assigned permissions, add webhooks, or authentication token */ - | "LOCAL" + | 'LOCAL' /** Third party external App. Installation is fully automated. Saleor uses a defined App manifest to gather all required information. */ - | "THIRDPARTY"; + | 'THIRDPARTY'; /** * Updates an existing app. @@ -1514,25 +1512,25 @@ export type AppUpdated = Event & { /** The application the event relates to. */ app: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** An enumeration. */ export type AreaUnitsEnum = - | "SQ_CM" - | "SQ_DM" - | "SQ_FT" - | "SQ_INCH" - | "SQ_KM" - | "SQ_M" - | "SQ_MM" - | "SQ_YD"; + | 'SQ_CM' + | 'SQ_DM' + | 'SQ_FT' + | 'SQ_INCH' + | 'SQ_KM' + | 'SQ_M' + | 'SQ_MM' + | 'SQ_YD'; /** * Assigns storefront's navigation menus. @@ -1556,143 +1554,150 @@ export type AssignedVariantAttribute = { /** Attribute assigned to variant. */ attribute: Attribute; /** Determines, whether assigned attribute is allowed for variant selection. Supported variant types for variant selection are: ['dropdown', 'boolean', 'swatch', 'numeric'] */ - variantSelection: Scalars["Boolean"]["output"]; + variantSelection: Scalars['Boolean']['output']; }; /** Custom attribute of a product. Attributes can be assigned to products and variants at the product type level. */ -export type Attribute = Node & - ObjectWithMetadata & { - /** - * Whether the attribute can be displayed in the admin product list. Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES, MANAGE_PRODUCTS, MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. - * @deprecated This field will be removed in Saleor 4.0. - */ - availableInGrid: Scalars["Boolean"]["output"]; - /** List of attribute's values. */ - choices: Maybe; - /** The entity type which can be used as a reference. */ - entityType: Maybe; - /** - * External ID of this attribute. - * - * Added in Saleor 3.10. - */ - externalReference: Maybe; - /** Whether the attribute can be filtered in dashboard. Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES, MANAGE_PRODUCTS, MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. */ - filterableInDashboard: Scalars["Boolean"]["output"]; - /** - * Whether the attribute can be filtered in storefront. Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES, MANAGE_PRODUCTS, MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. - * @deprecated This field will be removed in Saleor 4.0. - */ - filterableInStorefront: Scalars["Boolean"]["output"]; - /** The ID of the attribute. */ - id: Scalars["ID"]["output"]; - /** The input type to use for entering attribute values in the dashboard. */ - inputType: Maybe; - /** List of public metadata items. Can be accessed without permissions. */ - metadata: Array; - /** - * A single key from public metadata. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - metafield: Maybe; - /** - * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - metafields: Maybe; - /** Name of an attribute displayed in the interface. */ - name: Maybe; - /** List of private metadata items. Requires staff permissions to access. */ - privateMetadata: Array; - /** - * A single key from private metadata. Requires staff permissions to access. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - privateMetafield: Maybe; - /** - * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - privateMetafields: Maybe; - /** A list of product types that use this attribute as a product attribute. */ - productTypes: ProductTypeCountableConnection; - /** A list of product types that use this attribute as a product variant attribute. */ - productVariantTypes: ProductTypeCountableConnection; - /** Internal representation of an attribute name. */ - slug: Maybe; - /** - * The position of the attribute in the storefront navigation (0 by default). Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES, MANAGE_PRODUCTS, MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. - * @deprecated This field will be removed in Saleor 4.0. - */ - storefrontSearchPosition: Scalars["Int"]["output"]; - /** Returns translated attribute fields for the given language code. */ - translation: Maybe; - /** The attribute type. */ - type: Maybe; - /** The unit of attribute values. */ - unit: Maybe; - /** Whether the attribute requires values to be passed or not. Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES, MANAGE_PRODUCTS, MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. */ - valueRequired: Scalars["Boolean"]["output"]; - /** Whether the attribute should be visible or not in storefront. Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES, MANAGE_PRODUCTS, MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. */ - visibleInStorefront: Scalars["Boolean"]["output"]; - /** Flag indicating that attribute has predefined choices. */ - withChoices: Scalars["Boolean"]["output"]; - }; +export type Attribute = Node & ObjectWithMetadata & { + /** + * Whether the attribute can be displayed in the admin product list. Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES, MANAGE_PRODUCTS, MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + * @deprecated This field will be removed in Saleor 4.0. + */ + availableInGrid: Scalars['Boolean']['output']; + /** List of attribute's values. */ + choices: Maybe; + /** The entity type which can be used as a reference. */ + entityType: Maybe; + /** + * External ID of this attribute. + * + * Added in Saleor 3.10. + */ + externalReference: Maybe; + /** Whether the attribute can be filtered in dashboard. Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES, MANAGE_PRODUCTS, MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. */ + filterableInDashboard: Scalars['Boolean']['output']; + /** + * Whether the attribute can be filtered in storefront. Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES, MANAGE_PRODUCTS, MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + * @deprecated This field will be removed in Saleor 4.0. + */ + filterableInStorefront: Scalars['Boolean']['output']; + /** The ID of the attribute. */ + id: Scalars['ID']['output']; + /** The input type to use for entering attribute values in the dashboard. */ + inputType: Maybe; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * A single key from public metadata. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + metafield: Maybe; + /** + * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + metafields: Maybe; + /** Name of an attribute displayed in the interface. */ + name: Maybe; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * A single key from private metadata. Requires staff permissions to access. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + privateMetafield: Maybe; + /** + * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + privateMetafields: Maybe; + /** A list of product types that use this attribute as a product attribute. */ + productTypes: ProductTypeCountableConnection; + /** A list of product types that use this attribute as a product variant attribute. */ + productVariantTypes: ProductTypeCountableConnection; + /** Internal representation of an attribute name. */ + slug: Maybe; + /** + * The position of the attribute in the storefront navigation (0 by default). Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES, MANAGE_PRODUCTS, MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. + * @deprecated This field will be removed in Saleor 4.0. + */ + storefrontSearchPosition: Scalars['Int']['output']; + /** Returns translated attribute fields for the given language code. */ + translation: Maybe; + /** The attribute type. */ + type: Maybe; + /** The unit of attribute values. */ + unit: Maybe; + /** Whether the attribute requires values to be passed or not. Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES, MANAGE_PRODUCTS, MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. */ + valueRequired: Scalars['Boolean']['output']; + /** Whether the attribute should be visible or not in storefront. Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES, MANAGE_PRODUCTS, MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. */ + visibleInStorefront: Scalars['Boolean']['output']; + /** Flag indicating that attribute has predefined choices. */ + withChoices: Scalars['Boolean']['output']; +}; + /** Custom attribute of a product. Attributes can be assigned to products and variants at the product type level. */ export type AttributeChoicesArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; filter?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; sortBy?: InputMaybe; }; + /** Custom attribute of a product. Attributes can be assigned to products and variants at the product type level. */ export type AttributeMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Custom attribute of a product. Attributes can be assigned to products and variants at the product type level. */ export type AttributeMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Custom attribute of a product. Attributes can be assigned to products and variants at the product type level. */ export type AttributePrivateMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Custom attribute of a product. Attributes can be assigned to products and variants at the product type level. */ export type AttributePrivateMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Custom attribute of a product. Attributes can be assigned to products and variants at the product type level. */ export type AttributeProductTypesArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; + /** Custom attribute of a product. Attributes can be assigned to products and variants at the product type level. */ export type AttributeProductVariantTypesArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; + /** Custom attribute of a product. Attributes can be assigned to products and variants at the product type level. */ export type AttributeTranslationArgs = { languageCode: LanguageCodeEnum; @@ -1710,7 +1715,7 @@ export type AttributeTranslationArgs = { */ export type AttributeBulkCreate = { /** Returns how many objects were created. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; /** List of the created attributes. */ results: Array; @@ -1720,22 +1725,22 @@ export type AttributeBulkCreateError = { /** The error code. */ code: AttributeBulkCreateErrorCode; /** The error message. */ - message: Maybe; + message: Maybe; /** Path to field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - path: Maybe; + path: Maybe; }; /** An enumeration. */ export type AttributeBulkCreateErrorCode = - | "ALREADY_EXISTS" - | "BLANK" - | "DUPLICATED_INPUT_ITEM" - | "GRAPHQL_ERROR" - | "INVALID" - | "MAX_LENGTH" - | "NOT_FOUND" - | "REQUIRED" - | "UNIQUE"; + | 'ALREADY_EXISTS' + | 'BLANK' + | 'DUPLICATED_INPUT_ITEM' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'MAX_LENGTH' + | 'NOT_FOUND' + | 'REQUIRED' + | 'UNIQUE'; export type AttributeBulkCreateResult = { /** Attribute data. */ @@ -1756,7 +1761,7 @@ export type AttributeBulkDelete = { /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ attributeErrors: Array; /** Returns how many objects were affected. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; }; @@ -1771,7 +1776,7 @@ export type AttributeBulkDelete = { */ export type AttributeBulkTranslate = { /** Returns how many translations were created/updated. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; /** List of the translations. */ results: Array; @@ -1781,16 +1786,16 @@ export type AttributeBulkTranslateError = { /** The error code. */ code: AttributeTranslateErrorCode; /** The error message. */ - message: Maybe; + message: Maybe; /** Path to field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - path: Maybe; + path: Maybe; }; export type AttributeBulkTranslateInput = { /** External reference of an attribute. */ - externalReference?: InputMaybe; + externalReference?: InputMaybe; /** Attribute ID. */ - id?: InputMaybe; + id?: InputMaybe; /** Translation language code. */ languageCode: LanguageCodeEnum; /** Translation fields. */ @@ -1818,7 +1823,7 @@ export type AttributeBulkTranslateResult = { */ export type AttributeBulkUpdate = { /** Returns how many objects were updated. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; /** List of the updated attributes. */ results: Array; @@ -1828,30 +1833,30 @@ export type AttributeBulkUpdateError = { /** The error code. */ code: AttributeBulkUpdateErrorCode; /** The error message. */ - message: Maybe; + message: Maybe; /** Path to field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - path: Maybe; + path: Maybe; }; /** An enumeration. */ export type AttributeBulkUpdateErrorCode = - | "ALREADY_EXISTS" - | "BLANK" - | "DUPLICATED_INPUT_ITEM" - | "GRAPHQL_ERROR" - | "INVALID" - | "MAX_LENGTH" - | "NOT_FOUND" - | "REQUIRED" - | "UNIQUE"; + | 'ALREADY_EXISTS' + | 'BLANK' + | 'DUPLICATED_INPUT_ITEM' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'MAX_LENGTH' + | 'NOT_FOUND' + | 'REQUIRED' + | 'UNIQUE'; export type AttributeBulkUpdateInput = { /** External ID of this attribute. */ - externalReference?: InputMaybe; + externalReference?: InputMaybe; /** Fields to update. */ fields: AttributeUpdateInput; /** ID of an attribute to update. */ - id?: InputMaybe; + id?: InputMaybe; }; export type AttributeBulkUpdateResult = { @@ -1863,9 +1868,9 @@ export type AttributeBulkUpdateResult = { export type AttributeChoicesSortField = /** Sort attribute choice by name. */ - | "NAME" + | 'NAME' /** Sort attribute choice by slug. */ - | "SLUG"; + | 'SLUG'; export type AttributeChoicesSortingInput = { /** Specifies the direction in which to sort attribute choices. */ @@ -1879,12 +1884,12 @@ export type AttributeCountableConnection = { /** Pagination data for this connection. */ pageInfo: PageInfo; /** A total count of items in the collection. */ - totalCount: Maybe; + totalCount: Maybe; }; export type AttributeCountableEdge = { /** A cursor for use in pagination. */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node: Attribute; }; @@ -1913,7 +1918,7 @@ export type AttributeCreateInput = { * * DEPRECATED: this field will be removed in Saleor 4.0. */ - availableInGrid?: InputMaybe; + availableInGrid?: InputMaybe; /** The entity type which can be used as a reference. */ entityType?: InputMaybe; /** @@ -1921,39 +1926,39 @@ export type AttributeCreateInput = { * * Added in Saleor 3.10. */ - externalReference?: InputMaybe; + externalReference?: InputMaybe; /** Whether the attribute can be filtered in dashboard. */ - filterableInDashboard?: InputMaybe; + filterableInDashboard?: InputMaybe; /** * Whether the attribute can be filtered in storefront. * * DEPRECATED: this field will be removed in Saleor 4.0. */ - filterableInStorefront?: InputMaybe; + filterableInStorefront?: InputMaybe; /** The input type to use for entering attribute values in the dashboard. */ inputType?: InputMaybe; /** Whether the attribute is for variants only. */ - isVariantOnly?: InputMaybe; + isVariantOnly?: InputMaybe; /** Name of an attribute displayed in the interface. */ - name: Scalars["String"]["input"]; + name: Scalars['String']['input']; /** Internal representation of an attribute name. */ - slug?: InputMaybe; + slug?: InputMaybe; /** * The position of the attribute in the storefront navigation (0 by default). * * DEPRECATED: this field will be removed in Saleor 4.0. */ - storefrontSearchPosition?: InputMaybe; + storefrontSearchPosition?: InputMaybe; /** The attribute type. */ type: AttributeTypeEnum; /** The unit of attribute values. */ unit?: InputMaybe; /** Whether the attribute requires values to be passed or not. */ - valueRequired?: InputMaybe; + valueRequired?: InputMaybe; /** List of attribute's values. */ values?: InputMaybe>; /** Whether the attribute should be visible or not in storefront. */ - visibleInStorefront?: InputMaybe; + visibleInStorefront?: InputMaybe; }; /** @@ -1965,13 +1970,13 @@ export type AttributeCreated = Event & { /** The attribute the event relates to. */ attribute: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -1998,17 +2003,20 @@ export type AttributeDeleted = Event & { /** The attribute the event relates to. */ attribute: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** An enumeration. */ -export type AttributeEntityTypeEnum = "PAGE" | "PRODUCT" | "PRODUCT_VARIANT"; +export type AttributeEntityTypeEnum = + | 'PAGE' + | 'PRODUCT' + | 'PRODUCT_VARIANT'; export type AttributeEntityTypeEnumFilterInput = { /** The value equal to. */ @@ -2021,70 +2029,70 @@ export type AttributeError = { /** The error code. */ code: AttributeErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type AttributeErrorCode = - | "ALREADY_EXISTS" - | "GRAPHQL_ERROR" - | "INVALID" - | "NOT_FOUND" - | "REQUIRED" - | "UNIQUE"; + | 'ALREADY_EXISTS' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'REQUIRED' + | 'UNIQUE'; export type AttributeFilterInput = { - availableInGrid?: InputMaybe; + availableInGrid?: InputMaybe; /** * Specifies the channel by which the data should be filtered. * * DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead. */ - channel?: InputMaybe; - filterableInDashboard?: InputMaybe; - filterableInStorefront?: InputMaybe; - ids?: InputMaybe>; - inCategory?: InputMaybe; - inCollection?: InputMaybe; - isVariantOnly?: InputMaybe; + channel?: InputMaybe; + filterableInDashboard?: InputMaybe; + filterableInStorefront?: InputMaybe; + ids?: InputMaybe>; + inCategory?: InputMaybe; + inCollection?: InputMaybe; + isVariantOnly?: InputMaybe; metadata?: InputMaybe>; - search?: InputMaybe; - slugs?: InputMaybe>; + search?: InputMaybe; + slugs?: InputMaybe>; type?: InputMaybe; - valueRequired?: InputMaybe; - visibleInStorefront?: InputMaybe; + valueRequired?: InputMaybe; + visibleInStorefront?: InputMaybe; }; export type AttributeInput = { /** The boolean value of the attribute. */ - boolean?: InputMaybe; + boolean?: InputMaybe; /** The date range that the returned values should be in. In case of date/time attributes, the UTC midnight of the given date is used. */ date?: InputMaybe; /** The date/time range that the returned values should be in. */ dateTime?: InputMaybe; /** Internal representation of an attribute name. */ - slug: Scalars["String"]["input"]; + slug: Scalars['String']['input']; /** Internal representation of a value (unique per attribute). */ - values?: InputMaybe>; + values?: InputMaybe>; /** The range that the returned values should be in. */ valuesRange?: InputMaybe; }; /** An enumeration. */ export type AttributeInputTypeEnum = - | "BOOLEAN" - | "DATE" - | "DATE_TIME" - | "DROPDOWN" - | "FILE" - | "MULTISELECT" - | "NUMERIC" - | "PLAIN_TEXT" - | "REFERENCE" - | "RICH_TEXT" - | "SWATCH"; + | 'BOOLEAN' + | 'DATE' + | 'DATE_TIME' + | 'DROPDOWN' + | 'FILE' + | 'MULTISELECT' + | 'NUMERIC' + | 'PLAIN_TEXT' + | 'REFERENCE' + | 'RICH_TEXT' + | 'SWATCH'; export type AttributeInputTypeEnumFilterInput = { /** The value equal to. */ @@ -2112,23 +2120,23 @@ export type AttributeReorderValues = { export type AttributeSortField = /** Sort attributes based on whether they can be displayed or not in a product grid. */ - | "AVAILABLE_IN_GRID" + | 'AVAILABLE_IN_GRID' /** Sort attributes by the filterable in dashboard flag */ - | "FILTERABLE_IN_DASHBOARD" + | 'FILTERABLE_IN_DASHBOARD' /** Sort attributes by the filterable in storefront flag */ - | "FILTERABLE_IN_STOREFRONT" + | 'FILTERABLE_IN_STOREFRONT' /** Sort attributes by the variant only flag */ - | "IS_VARIANT_ONLY" + | 'IS_VARIANT_ONLY' /** Sort attributes by name */ - | "NAME" + | 'NAME' /** Sort attributes by slug */ - | "SLUG" + | 'SLUG' /** Sort attributes by their position in storefront */ - | "STOREFRONT_SEARCH_POSITION" + | 'STOREFRONT_SEARCH_POSITION' /** Sort attributes by the value required flag */ - | "VALUE_REQUIRED" + | 'VALUE_REQUIRED' /** Sort attributes by visibility in the storefront */ - | "VISIBLE_IN_STOREFRONT"; + | 'VISIBLE_IN_STOREFRONT'; export type AttributeSortingInput = { /** Specifies the direction in which to sort attributes. */ @@ -2149,15 +2157,16 @@ export type AttributeTranslatableContent = Node & { * * Added in Saleor 3.14. */ - attributeId: Scalars["ID"]["output"]; + attributeId: Scalars['ID']['output']; /** The ID of the attribute translatable content. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Name of the attribute to translate. */ - name: Scalars["String"]["output"]; + name: Scalars['String']['output']; /** Returns translated attribute fields for the given language code. */ translation: Maybe; }; + /** Represents attribute's original translatable fields and related translations. */ export type AttributeTranslatableContentTranslationArgs = { languageCode: LanguageCodeEnum; @@ -2177,19 +2186,19 @@ export type AttributeTranslate = { /** An enumeration. */ export type AttributeTranslateErrorCode = - | "GRAPHQL_ERROR" - | "INVALID" - | "NOT_FOUND" - | "REQUIRED"; + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'REQUIRED'; /** Represents attribute translations. */ export type AttributeTranslation = Node & { /** The ID of the attribute translation. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Translation language. */ language: LanguageDisplay; /** Translated attribute name. */ - name: Scalars["String"]["output"]; + name: Scalars['String']['output']; /** * Represents the attribute fields to translate. * @@ -2199,7 +2208,9 @@ export type AttributeTranslation = Node & { }; /** An enumeration. */ -export type AttributeTypeEnum = "PAGE_TYPE" | "PRODUCT_TYPE"; +export type AttributeTypeEnum = + | 'PAGE_TYPE' + | 'PRODUCT_TYPE'; export type AttributeTypeEnumFilterInput = { /** The value equal to. */ @@ -2236,41 +2247,41 @@ export type AttributeUpdateInput = { * * DEPRECATED: this field will be removed in Saleor 4.0. */ - availableInGrid?: InputMaybe; + availableInGrid?: InputMaybe; /** * External ID of this product. * * Added in Saleor 3.10. */ - externalReference?: InputMaybe; + externalReference?: InputMaybe; /** Whether the attribute can be filtered in dashboard. */ - filterableInDashboard?: InputMaybe; + filterableInDashboard?: InputMaybe; /** * Whether the attribute can be filtered in storefront. * * DEPRECATED: this field will be removed in Saleor 4.0. */ - filterableInStorefront?: InputMaybe; + filterableInStorefront?: InputMaybe; /** Whether the attribute is for variants only. */ - isVariantOnly?: InputMaybe; + isVariantOnly?: InputMaybe; /** Name of an attribute displayed in the interface. */ - name?: InputMaybe; + name?: InputMaybe; /** IDs of values to be removed from this attribute. */ - removeValues?: InputMaybe>; + removeValues?: InputMaybe>; /** Internal representation of an attribute name. */ - slug?: InputMaybe; + slug?: InputMaybe; /** * The position of the attribute in the storefront navigation (0 by default). * * DEPRECATED: this field will be removed in Saleor 4.0. */ - storefrontSearchPosition?: InputMaybe; + storefrontSearchPosition?: InputMaybe; /** The unit of attribute values. */ unit?: InputMaybe; /** Whether the attribute requires values to be passed or not. */ - valueRequired?: InputMaybe; + valueRequired?: InputMaybe; /** Whether the attribute should be visible or not in storefront. */ - visibleInStorefront?: InputMaybe; + visibleInStorefront?: InputMaybe; }; /** @@ -2282,55 +2293,56 @@ export type AttributeUpdated = Event & { /** The attribute the event relates to. */ attribute: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** Represents a value of an attribute. */ export type AttributeValue = Node & { /** Represents the boolean value of the attribute value. */ - boolean: Maybe; + boolean: Maybe; /** Represents the date value of the attribute value. */ - date: Maybe; + date: Maybe; /** Represents the date/time value of the attribute value. */ - dateTime: Maybe; + dateTime: Maybe; /** * External ID of this attribute value. * * Added in Saleor 3.10. */ - externalReference: Maybe; + externalReference: Maybe; /** Represents file URL and content type (if attribute value is a file). */ file: Maybe; /** The ID of the attribute value. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** The input type to use for entering attribute values in the dashboard. */ inputType: Maybe; /** Name of a value displayed in the interface. */ - name: Maybe; + name: Maybe; /** Represents the text of the attribute value, plain text without formatting. */ - plainText: Maybe; + plainText: Maybe; /** The ID of the attribute reference. */ - reference: Maybe; + reference: Maybe; /** * Represents the text of the attribute value, includes formatting. * * Rich text format. For reference see https://editorjs.io/ */ - richText: Maybe; + richText: Maybe; /** Internal representation of a value (unique per attribute). */ - slug: Maybe; + slug: Maybe; /** Returns translated attribute value fields for the given language code. */ translation: Maybe; /** Represent value of the attribute value (e.g. color values for swatch attributes). */ - value: Maybe; + value: Maybe; }; + /** Represents a value of an attribute. */ export type AttributeValueTranslationArgs = { languageCode: LanguageCodeEnum; @@ -2349,7 +2361,7 @@ export type AttributeValueBulkDelete = { /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ attributeErrors: Array; /** Returns how many objects were affected. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; }; @@ -2364,7 +2376,7 @@ export type AttributeValueBulkDelete = { */ export type AttributeValueBulkTranslate = { /** Returns how many translations were created/updated. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; /** List of the translations. */ results: Array; @@ -2374,16 +2386,16 @@ export type AttributeValueBulkTranslateError = { /** The error code. */ code: AttributeValueTranslateErrorCode; /** The error message. */ - message: Maybe; + message: Maybe; /** Path to field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - path: Maybe; + path: Maybe; }; export type AttributeValueBulkTranslateInput = { /** External reference of an attribute value. */ - externalReference?: InputMaybe; + externalReference?: InputMaybe; /** Attribute value ID. */ - id?: InputMaybe; + id?: InputMaybe; /** Translation language code. */ languageCode: LanguageCodeEnum; /** Translation fields. */ @@ -2402,12 +2414,12 @@ export type AttributeValueCountableConnection = { /** Pagination data for this connection. */ pageInfo: PageInfo; /** A total count of items in the collection. */ - totalCount: Maybe; + totalCount: Maybe; }; export type AttributeValueCountableEdge = { /** A cursor for use in pagination. */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node: AttributeValue; }; @@ -2432,23 +2444,23 @@ export type AttributeValueCreate = { export type AttributeValueCreateInput = { /** File content type. */ - contentType?: InputMaybe; + contentType?: InputMaybe; /** * External ID of this attribute value. * * Added in Saleor 3.10. */ - externalReference?: InputMaybe; + externalReference?: InputMaybe; /** URL of the file attribute. Every time, a new value is created. */ - fileUrl?: InputMaybe; + fileUrl?: InputMaybe; /** Name of a value displayed in the interface. */ - name: Scalars["String"]["input"]; + name: Scalars['String']['input']; /** * Represents the text of the attribute value, plain text without formatting. * * DEPRECATED: this field will be removed in Saleor 4.0.The plain text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. */ - plainText?: InputMaybe; + plainText?: InputMaybe; /** * Represents the text of the attribute value, includes formatting. * @@ -2456,9 +2468,9 @@ export type AttributeValueCreateInput = { * * DEPRECATED: this field will be removed in Saleor 4.0.The rich text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. */ - richText?: InputMaybe; + richText?: InputMaybe; /** Represent value of the attribute value (e.g. color values for swatch attributes). */ - value?: InputMaybe; + value?: InputMaybe; }; /** @@ -2470,13 +2482,13 @@ export type AttributeValueCreated = Event & { /** The attribute value the event relates to. */ attributeValue: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -2506,30 +2518,30 @@ export type AttributeValueDeleted = Event & { /** The attribute value the event relates to. */ attributeValue: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; export type AttributeValueFilterInput = { - ids?: InputMaybe>; - search?: InputMaybe; - slugs?: InputMaybe>; + ids?: InputMaybe>; + search?: InputMaybe; + slugs?: InputMaybe>; }; export type AttributeValueInput = { /** Represents the boolean value of the attribute value. */ - boolean?: InputMaybe; + boolean?: InputMaybe; /** File content type. */ - contentType?: InputMaybe; + contentType?: InputMaybe; /** Represents the date value of the attribute value. */ - date?: InputMaybe; + date?: InputMaybe; /** Represents the date/time value of the attribute value. */ - dateTime?: InputMaybe; + dateTime?: InputMaybe; /** * Attribute value ID or external reference. * @@ -2541,11 +2553,11 @@ export type AttributeValueInput = { * * Added in Saleor 3.14. */ - externalReference?: InputMaybe; + externalReference?: InputMaybe; /** URL of the file attribute. Every time, a new value is created. */ - file?: InputMaybe; + file?: InputMaybe; /** ID of the selected attribute. */ - id?: InputMaybe; + id?: InputMaybe; /** * List of attribute value IDs or external references. * @@ -2557,13 +2569,13 @@ export type AttributeValueInput = { * * Added in Saleor 3.9. */ - numeric?: InputMaybe; + numeric?: InputMaybe; /** Plain text content. */ - plainText?: InputMaybe; + plainText?: InputMaybe; /** List of entity IDs that will be used as references. */ - references?: InputMaybe>; + references?: InputMaybe>; /** Text content in JSON format. */ - richText?: InputMaybe; + richText?: InputMaybe; /** * Attribute value ID or external reference. * @@ -2571,7 +2583,7 @@ export type AttributeValueInput = { */ swatch?: InputMaybe; /** The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created. This field will be removed in Saleor 4.0. */ - values?: InputMaybe>; + values?: InputMaybe>; }; /** @@ -2589,11 +2601,11 @@ export type AttributeValueSelectableTypeInput = { * * Added in Saleor 3.14. */ - externalReference?: InputMaybe; + externalReference?: InputMaybe; /** ID of an attribute value. */ - id?: InputMaybe; + id?: InputMaybe; /** The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created. */ - value?: InputMaybe; + value?: InputMaybe; }; /** Represents attribute value's original translatable fields and related translations. */ @@ -2614,23 +2626,24 @@ export type AttributeValueTranslatableContent = Node & { * * Added in Saleor 3.14. */ - attributeValueId: Scalars["ID"]["output"]; + attributeValueId: Scalars['ID']['output']; /** The ID of the attribute value translatable content. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Name of the attribute value to translate. */ - name: Scalars["String"]["output"]; + name: Scalars['String']['output']; /** Attribute plain text value. */ - plainText: Maybe; + plainText: Maybe; /** * Attribute value. * * Rich text format. For reference see https://editorjs.io/ */ - richText: Maybe; + richText: Maybe; /** Returns translated attribute value fields for the given language code. */ translation: Maybe; }; + /** Represents attribute value's original translatable fields and related translations. */ export type AttributeValueTranslatableContentTranslationArgs = { languageCode: LanguageCodeEnum; @@ -2650,27 +2663,27 @@ export type AttributeValueTranslate = { /** An enumeration. */ export type AttributeValueTranslateErrorCode = - | "GRAPHQL_ERROR" - | "INVALID" - | "NOT_FOUND" - | "REQUIRED"; + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'REQUIRED'; /** Represents attribute value translations. */ export type AttributeValueTranslation = Node & { /** The ID of the attribute value translation. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Translation language. */ language: LanguageDisplay; /** Translated attribute value name. */ - name: Scalars["String"]["output"]; + name: Scalars['String']['output']; /** Translated plain text attribute value . */ - plainText: Maybe; + plainText: Maybe; /** * Translated rich-text attribute value. * * Rich text format. For reference see https://editorjs.io/ */ - richText: Maybe; + richText: Maybe; /** * Represents the attribute value fields to translate. * @@ -2680,15 +2693,15 @@ export type AttributeValueTranslation = Node & { }; export type AttributeValueTranslationInput = { - name?: InputMaybe; + name?: InputMaybe; /** Translated text. */ - plainText?: InputMaybe; + plainText?: InputMaybe; /** * Translated text. * * Rich text format. For reference see https://editorjs.io/ */ - richText?: InputMaybe; + richText?: InputMaybe; }; /** @@ -2711,23 +2724,23 @@ export type AttributeValueUpdate = { export type AttributeValueUpdateInput = { /** File content type. */ - contentType?: InputMaybe; + contentType?: InputMaybe; /** * External ID of this attribute value. * * Added in Saleor 3.10. */ - externalReference?: InputMaybe; + externalReference?: InputMaybe; /** URL of the file attribute. Every time, a new value is created. */ - fileUrl?: InputMaybe; + fileUrl?: InputMaybe; /** Name of a value displayed in the interface. */ - name?: InputMaybe; + name?: InputMaybe; /** * Represents the text of the attribute value, plain text without formatting. * * DEPRECATED: this field will be removed in Saleor 4.0.The plain text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. */ - plainText?: InputMaybe; + plainText?: InputMaybe; /** * Represents the text of the attribute value, includes formatting. * @@ -2735,9 +2748,9 @@ export type AttributeValueUpdateInput = { * * DEPRECATED: this field will be removed in Saleor 4.0.The rich text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. */ - richText?: InputMaybe; + richText?: InputMaybe; /** Represent value of the attribute value (e.g. color values for swatch attributes). */ - value?: InputMaybe; + value?: InputMaybe; }; /** @@ -2749,13 +2762,13 @@ export type AttributeValueUpdated = Event & { /** The attribute value the event relates to. */ attributeValue: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -2771,42 +2784,42 @@ export type AttributeWhereInput = { /** A list of conditions of which at least one must be met. */ OR?: InputMaybe>; entityType?: InputMaybe; - filterableInDashboard?: InputMaybe; - ids?: InputMaybe>; - inCategory?: InputMaybe; - inCollection?: InputMaybe; + filterableInDashboard?: InputMaybe; + ids?: InputMaybe>; + inCategory?: InputMaybe; + inCollection?: InputMaybe; inputType?: InputMaybe; metadata?: InputMaybe>; name?: InputMaybe; slug?: InputMaybe; type?: InputMaybe; unit?: InputMaybe; - valueRequired?: InputMaybe; - visibleInStorefront?: InputMaybe; - withChoices?: InputMaybe; + valueRequired?: InputMaybe; + visibleInStorefront?: InputMaybe; + withChoices?: InputMaybe; }; export type BulkAttributeValueInput = { /** The boolean value of an attribute to resolve. If the passed value is non-existent, it will be created. */ - boolean?: InputMaybe; + boolean?: InputMaybe; /** * File content type. * * Added in Saleor 3.12. */ - contentType?: InputMaybe; + contentType?: InputMaybe; /** * Represents the date value of the attribute value. * * Added in Saleor 3.12. */ - date?: InputMaybe; + date?: InputMaybe; /** * Represents the date/time value of the attribute value. * * Added in Saleor 3.12. */ - dateTime?: InputMaybe; + dateTime?: InputMaybe; /** * Attribute value ID. * @@ -2818,15 +2831,15 @@ export type BulkAttributeValueInput = { * * Added in Saleor 3.14. */ - externalReference?: InputMaybe; + externalReference?: InputMaybe; /** * URL of the file attribute. Every time, a new value is created. * * Added in Saleor 3.12. */ - file?: InputMaybe; + file?: InputMaybe; /** ID of the selected attribute. */ - id?: InputMaybe; + id?: InputMaybe; /** * List of attribute value IDs. * @@ -2838,25 +2851,25 @@ export type BulkAttributeValueInput = { * * Added in Saleor 3.12. */ - numeric?: InputMaybe; + numeric?: InputMaybe; /** * Plain text content. * * Added in Saleor 3.12. */ - plainText?: InputMaybe; + plainText?: InputMaybe; /** * List of entity IDs that will be used as references. * * Added in Saleor 3.12. */ - references?: InputMaybe>; + references?: InputMaybe>; /** * Text content in JSON format. * * Added in Saleor 3.12. */ - richText?: InputMaybe; + richText?: InputMaybe; /** * Attribute value ID. * @@ -2864,41 +2877,41 @@ export type BulkAttributeValueInput = { */ swatch?: InputMaybe; /** The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created.This field will be removed in Saleor 4.0. */ - values?: InputMaybe>; + values?: InputMaybe>; }; export type BulkProductError = { /** List of attributes IDs which causes the error. */ - attributes: Maybe>; + attributes: Maybe>; /** List of channel IDs which causes the error. */ - channels: Maybe>; + channels: Maybe>; /** The error code. */ code: ProductErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** Index of an input list item that caused the error. */ - index: Maybe; + index: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; /** List of attribute values IDs which causes the error. */ - values: Maybe>; + values: Maybe>; /** List of warehouse IDs which causes the error. */ - warehouses: Maybe>; + warehouses: Maybe>; }; export type BulkStockError = { /** List of attributes IDs which causes the error. */ - attributes: Maybe>; + attributes: Maybe>; /** The error code. */ code: ProductErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** Index of an input list item that caused the error. */ - index: Maybe; + index: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; /** List of attribute values IDs which causes the error. */ - values: Maybe>; + values: Maybe>; }; /** @@ -2908,38 +2921,38 @@ export type BulkStockError = { */ export type CalculateTaxes = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; taxBase: TaxableObject; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; export type CardInput = { /** Payment method nonce, a token returned by the appropriate provider's SDK. */ - code: Scalars["String"]["input"]; + code: Scalars['String']['input']; /** Card security code. */ - cvc?: InputMaybe; + cvc?: InputMaybe; /** Information about currency and amount. */ money: MoneyInput; }; export type CatalogueInput = { /** Categories related to the discount. */ - categories?: InputMaybe>; + categories?: InputMaybe>; /** Collections related to the discount. */ - collections?: InputMaybe>; + collections?: InputMaybe>; /** Products related to the discount. */ - products?: InputMaybe>; + products?: InputMaybe>; /** * Product variant related to the discount. * * Added in Saleor 3.1. */ - variants?: InputMaybe>; + variants?: InputMaybe>; }; export type CataloguePredicateInput = { @@ -2958,139 +2971,147 @@ export type CataloguePredicateInput = { }; /** Represents a single category of products. Categories allow to organize products in a tree-hierarchies which can be used for navigation in the storefront. */ -export type Category = Node & - ObjectWithMetadata & { - /** List of ancestors of the category. */ - ancestors: Maybe; - /** Background image of the category. */ - backgroundImage: Maybe; - /** List of children of the category. */ - children: Maybe; - /** - * Description of the category. - * - * Rich text format. For reference see https://editorjs.io/ - */ - description: Maybe; - /** - * Description of the category. - * - * Rich text format. For reference see https://editorjs.io/ - * @deprecated This field will be removed in Saleor 4.0. Use the `description` field instead. - */ - descriptionJson: Maybe; - /** The ID of the category. */ - id: Scalars["ID"]["output"]; - /** Level of the category. */ - level: Scalars["Int"]["output"]; - /** List of public metadata items. Can be accessed without permissions. */ - metadata: Array; - /** - * A single key from public metadata. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - metafield: Maybe; - /** - * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - metafields: Maybe; - /** Name of category */ - name: Scalars["String"]["output"]; - /** Parent category. */ - parent: Maybe; - /** List of private metadata items. Requires staff permissions to access. */ - privateMetadata: Array; - /** - * A single key from private metadata. Requires staff permissions to access. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - privateMetafield: Maybe; - /** - * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - privateMetafields: Maybe; - /** List of products in the category. Requires the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. */ - products: Maybe; - /** SEO description of category. */ - seoDescription: Maybe; - /** SEO title of category. */ - seoTitle: Maybe; - /** Slug of the category. */ - slug: Scalars["String"]["output"]; - /** Returns translated category fields for the given language code. */ - translation: Maybe; - /** - * The date and time when the category was last updated. - * - * Added in Saleor 3.17. - */ - updatedAt: Scalars["DateTime"]["output"]; - }; +export type Category = Node & ObjectWithMetadata & { + /** List of ancestors of the category. */ + ancestors: Maybe; + /** Background image of the category. */ + backgroundImage: Maybe; + /** List of children of the category. */ + children: Maybe; + /** + * Description of the category. + * + * Rich text format. For reference see https://editorjs.io/ + */ + description: Maybe; + /** + * Description of the category. + * + * Rich text format. For reference see https://editorjs.io/ + * @deprecated This field will be removed in Saleor 4.0. Use the `description` field instead. + */ + descriptionJson: Maybe; + /** The ID of the category. */ + id: Scalars['ID']['output']; + /** Level of the category. */ + level: Scalars['Int']['output']; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * A single key from public metadata. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + metafield: Maybe; + /** + * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + metafields: Maybe; + /** Name of category */ + name: Scalars['String']['output']; + /** Parent category. */ + parent: Maybe; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * A single key from private metadata. Requires staff permissions to access. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + privateMetafield: Maybe; + /** + * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + privateMetafields: Maybe; + /** List of products in the category. Requires the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. */ + products: Maybe; + /** SEO description of category. */ + seoDescription: Maybe; + /** SEO title of category. */ + seoTitle: Maybe; + /** Slug of the category. */ + slug: Scalars['String']['output']; + /** Returns translated category fields for the given language code. */ + translation: Maybe; + /** + * The date and time when the category was last updated. + * + * Added in Saleor 3.17. + */ + updatedAt: Scalars['DateTime']['output']; +}; + /** Represents a single category of products. Categories allow to organize products in a tree-hierarchies which can be used for navigation in the storefront. */ export type CategoryAncestorsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; + /** Represents a single category of products. Categories allow to organize products in a tree-hierarchies which can be used for navigation in the storefront. */ export type CategoryBackgroundImageArgs = { format?: InputMaybe; - size?: InputMaybe; + size?: InputMaybe; }; + /** Represents a single category of products. Categories allow to organize products in a tree-hierarchies which can be used for navigation in the storefront. */ export type CategoryChildrenArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; + /** Represents a single category of products. Categories allow to organize products in a tree-hierarchies which can be used for navigation in the storefront. */ export type CategoryMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents a single category of products. Categories allow to organize products in a tree-hierarchies which can be used for navigation in the storefront. */ export type CategoryMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Represents a single category of products. Categories allow to organize products in a tree-hierarchies which can be used for navigation in the storefront. */ export type CategoryPrivateMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents a single category of products. Categories allow to organize products in a tree-hierarchies which can be used for navigation in the storefront. */ export type CategoryPrivateMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Represents a single category of products. Categories allow to organize products in a tree-hierarchies which can be used for navigation in the storefront. */ export type CategoryProductsArgs = { - after?: InputMaybe; - before?: InputMaybe; - channel?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + channel?: InputMaybe; filter?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; sortBy?: InputMaybe; where?: InputMaybe; }; + /** Represents a single category of products. Categories allow to organize products in a tree-hierarchies which can be used for navigation in the storefront. */ export type CategoryTranslationArgs = { languageCode: LanguageCodeEnum; @@ -3103,7 +3124,7 @@ export type CategoryTranslationArgs = { */ export type CategoryBulkDelete = { /** Returns how many objects were affected. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ productErrors: Array; @@ -3114,12 +3135,12 @@ export type CategoryCountableConnection = { /** Pagination data for this connection. */ pageInfo: PageInfo; /** A total count of items in the collection. */ - totalCount: Maybe; + totalCount: Maybe; }; export type CategoryCountableEdge = { /** A cursor for use in pagination. */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node: Category; }; @@ -3145,13 +3166,13 @@ export type CategoryCreated = Event & { /** The category the event relates to. */ category: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -3175,20 +3196,20 @@ export type CategoryDeleted = Event & { /** The category the event relates to. */ category: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; export type CategoryFilterInput = { - ids?: InputMaybe>; + ids?: InputMaybe>; metadata?: InputMaybe>; - search?: InputMaybe; - slugs?: InputMaybe>; + search?: InputMaybe; + slugs?: InputMaybe>; /** * Filter by when was the most recent update. * @@ -3199,15 +3220,15 @@ export type CategoryFilterInput = { export type CategoryInput = { /** Background image file. */ - backgroundImage?: InputMaybe; + backgroundImage?: InputMaybe; /** Alt text for a product media. */ - backgroundImageAlt?: InputMaybe; + backgroundImageAlt?: InputMaybe; /** * Category description. * * Rich text format. For reference see https://editorjs.io/ */ - description?: InputMaybe; + description?: InputMaybe; /** * Fields required to update the category metadata. * @@ -3215,7 +3236,7 @@ export type CategoryInput = { */ metadata?: InputMaybe>; /** Category name. */ - name?: InputMaybe; + name?: InputMaybe; /** * Fields required to update the category private metadata. * @@ -3225,16 +3246,16 @@ export type CategoryInput = { /** Search engine optimization fields. */ seo?: InputMaybe; /** Category slug. */ - slug?: InputMaybe; + slug?: InputMaybe; }; export type CategorySortField = /** Sort categories by name. */ - | "NAME" + | 'NAME' /** Sort categories by product count. */ - | "PRODUCT_COUNT" + | 'PRODUCT_COUNT' /** Sort categories by subcategory count. */ - | "SUBCATEGORY_COUNT"; + | 'SUBCATEGORY_COUNT'; export type CategorySortingInput = { /** @@ -3242,7 +3263,7 @@ export type CategorySortingInput = { * * DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead. */ - channel?: InputMaybe; + channel?: InputMaybe; /** Specifies the direction in which to sort categories. */ direction: OrderDirection; /** Sort categories by the selected field. */ @@ -3261,32 +3282,33 @@ export type CategoryTranslatableContent = Node & { * * Added in Saleor 3.14. */ - categoryId: Scalars["ID"]["output"]; + categoryId: Scalars['ID']['output']; /** * Category description to translate. * * Rich text format. For reference see https://editorjs.io/ */ - description: Maybe; + description: Maybe; /** * Description of the category. * * Rich text format. For reference see https://editorjs.io/ * @deprecated This field will be removed in Saleor 4.0. Use the `description` field instead. */ - descriptionJson: Maybe; + descriptionJson: Maybe; /** The ID of the category translatable content. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Name of the category translatable content. */ - name: Scalars["String"]["output"]; + name: Scalars['String']['output']; /** SEO description to translate. */ - seoDescription: Maybe; + seoDescription: Maybe; /** SEO title to translate. */ - seoTitle: Maybe; + seoTitle: Maybe; /** Returns translated category fields for the given language code. */ translation: Maybe; }; + /** Represents category original translatable fields and related translations. */ export type CategoryTranslatableContentTranslationArgs = { languageCode: LanguageCodeEnum; @@ -3311,24 +3333,24 @@ export type CategoryTranslation = Node & { * * Rich text format. For reference see https://editorjs.io/ */ - description: Maybe; + description: Maybe; /** * Translated description of the category. * * Rich text format. For reference see https://editorjs.io/ * @deprecated This field will be removed in Saleor 4.0. Use the `description` field instead. */ - descriptionJson: Maybe; + descriptionJson: Maybe; /** The ID of the category translation. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Translation language. */ language: LanguageDisplay; /** Translated category name. */ - name: Maybe; + name: Maybe; /** Translated SEO description. */ - seoDescription: Maybe; + seoDescription: Maybe; /** Translated SEO title. */ - seoTitle: Maybe; + seoTitle: Maybe; /** * Represents the category fields to translate. * @@ -3358,13 +3380,13 @@ export type CategoryUpdated = Event & { /** The category the event relates to. */ category: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; export type CategoryWhereInput = { @@ -3372,178 +3394,182 @@ export type CategoryWhereInput = { AND?: InputMaybe>; /** A list of conditions of which at least one must be met. */ OR?: InputMaybe>; - ids?: InputMaybe>; + ids?: InputMaybe>; metadata?: InputMaybe>; }; /** Represents channel. */ -export type Channel = Node & - ObjectWithMetadata & { - /** - * Shipping methods that are available for the channel. - * - * Added in Saleor 3.6. - */ - availableShippingMethodsPerCountry: Maybe>; - /** - * Channel-specific checkout settings. - * - * Added in Saleor 3.15. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - * - * Requires one of the following permissions: MANAGE_CHANNELS, MANAGE_CHECKOUTS. - */ - checkoutSettings: CheckoutSettings; - /** - * List of shippable countries for the channel. - * - * Added in Saleor 3.6. - */ - countries: Maybe>; - /** - * A currency that is assigned to the channel. - * - * Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER. - */ - currencyCode: Scalars["String"]["output"]; - /** - * Default country for the channel. Default country can be used in checkout to determine the stock quantities or calculate taxes when the country was not explicitly provided. - * - * Added in Saleor 3.1. - * - * Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER. - */ - defaultCountry: CountryDisplay; - /** - * Whether a channel has associated orders. - * - * Requires one of the following permissions: MANAGE_CHANNELS. - */ - hasOrders: Scalars["Boolean"]["output"]; - /** The ID of the channel. */ - id: Scalars["ID"]["output"]; - /** - * Whether the channel is active. - * - * Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER. - */ - isActive: Scalars["Boolean"]["output"]; - /** - * List of public metadata items. Can be accessed without permissions. - * - * Added in Saleor 3.15. - */ - metadata: Array; - /** - * A single key from public metadata. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.15. - */ - metafield: Maybe; - /** - * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.15. - */ - metafields: Maybe; - /** - * Name of the channel. - * - * Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER. - */ - name: Scalars["String"]["output"]; - /** - * Channel-specific order settings. - * - * Added in Saleor 3.12. - * - * Requires one of the following permissions: MANAGE_CHANNELS, MANAGE_ORDERS. - */ - orderSettings: OrderSettings; - /** - * Channel-specific payment settings. - * - * Added in Saleor 3.16. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - * - * Requires one of the following permissions: MANAGE_CHANNELS, HANDLE_PAYMENTS. - */ - paymentSettings: PaymentSettings; - /** - * List of private metadata items. Requires staff permissions to access. - * - * Added in Saleor 3.15. - */ - privateMetadata: Array; - /** - * A single key from private metadata. Requires staff permissions to access. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.15. - */ - privateMetafield: Maybe; - /** - * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.15. - */ - privateMetafields: Maybe; - /** Slug of the channel. */ - slug: Scalars["String"]["output"]; - /** - * Define the stock setting for this channel. - * - * Added in Saleor 3.7. - * - * Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER. - */ - stockSettings: StockSettings; - /** - * Channel specific tax configuration. - * - * Added in Saleor 3.20. - * - * Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. - */ - taxConfiguration: TaxConfiguration; - /** - * List of warehouses assigned to this channel. - * - * Added in Saleor 3.5. - * - * Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER. - */ - warehouses: Array; - }; - -/** Represents channel. */ -export type ChannelAvailableShippingMethodsPerCountryArgs = { - countries?: InputMaybe>; -}; - -/** Represents channel. */ -export type ChannelMetafieldArgs = { - key: Scalars["String"]["input"]; -}; - -/** Represents channel. */ -export type ChannelMetafieldsArgs = { - keys?: InputMaybe>; -}; +export type Channel = Node & ObjectWithMetadata & { + /** + * Shipping methods that are available for the channel. + * + * Added in Saleor 3.6. + */ + availableShippingMethodsPerCountry: Maybe>; + /** + * Channel-specific checkout settings. + * + * Added in Saleor 3.15. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + * + * Requires one of the following permissions: MANAGE_CHANNELS, MANAGE_CHECKOUTS. + */ + checkoutSettings: CheckoutSettings; + /** + * List of shippable countries for the channel. + * + * Added in Saleor 3.6. + */ + countries: Maybe>; + /** + * A currency that is assigned to the channel. + * + * Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER. + */ + currencyCode: Scalars['String']['output']; + /** + * Default country for the channel. Default country can be used in checkout to determine the stock quantities or calculate taxes when the country was not explicitly provided. + * + * Added in Saleor 3.1. + * + * Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER. + */ + defaultCountry: CountryDisplay; + /** + * Whether a channel has associated orders. + * + * Requires one of the following permissions: MANAGE_CHANNELS. + */ + hasOrders: Scalars['Boolean']['output']; + /** The ID of the channel. */ + id: Scalars['ID']['output']; + /** + * Whether the channel is active. + * + * Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER. + */ + isActive: Scalars['Boolean']['output']; + /** + * List of public metadata items. Can be accessed without permissions. + * + * Added in Saleor 3.15. + */ + metadata: Array; + /** + * A single key from public metadata. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.15. + */ + metafield: Maybe; + /** + * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.15. + */ + metafields: Maybe; + /** + * Name of the channel. + * + * Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER. + */ + name: Scalars['String']['output']; + /** + * Channel-specific order settings. + * + * Added in Saleor 3.12. + * + * Requires one of the following permissions: MANAGE_CHANNELS, MANAGE_ORDERS. + */ + orderSettings: OrderSettings; + /** + * Channel-specific payment settings. + * + * Added in Saleor 3.16. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + * + * Requires one of the following permissions: MANAGE_CHANNELS, HANDLE_PAYMENTS. + */ + paymentSettings: PaymentSettings; + /** + * List of private metadata items. Requires staff permissions to access. + * + * Added in Saleor 3.15. + */ + privateMetadata: Array; + /** + * A single key from private metadata. Requires staff permissions to access. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.15. + */ + privateMetafield: Maybe; + /** + * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.15. + */ + privateMetafields: Maybe; + /** Slug of the channel. */ + slug: Scalars['String']['output']; + /** + * Define the stock setting for this channel. + * + * Added in Saleor 3.7. + * + * Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER. + */ + stockSettings: StockSettings; + /** + * Channel specific tax configuration. + * + * Added in Saleor 3.20. + * + * Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. + */ + taxConfiguration: TaxConfiguration; + /** + * List of warehouses assigned to this channel. + * + * Added in Saleor 3.5. + * + * Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER. + */ + warehouses: Array; +}; + + +/** Represents channel. */ +export type ChannelAvailableShippingMethodsPerCountryArgs = { + countries?: InputMaybe>; +}; + + +/** Represents channel. */ +export type ChannelMetafieldArgs = { + key: Scalars['String']['input']; +}; + + +/** Represents channel. */ +export type ChannelMetafieldsArgs = { + keys?: InputMaybe>; +}; + /** Represents channel. */ export type ChannelPrivateMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents channel. */ export type ChannelPrivateMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; /** @@ -3579,13 +3605,13 @@ export type ChannelCreate = { export type ChannelCreateInput = { /** List of shipping zones to assign to the channel. */ - addShippingZones?: InputMaybe>; + addShippingZones?: InputMaybe>; /** * List of warehouses to assign to the channel. * * Added in Saleor 3.5. */ - addWarehouses?: InputMaybe>; + addWarehouses?: InputMaybe>; /** * The channel checkout settings * @@ -3595,7 +3621,7 @@ export type ChannelCreateInput = { */ checkoutSettings?: InputMaybe; /** Currency of the channel. */ - currencyCode: Scalars["String"]["input"]; + currencyCode: Scalars['String']['input']; /** * Default country for the channel. Default country can be used in checkout to determine the stock quantities or calculate taxes when the country was not explicitly provided. * @@ -3603,7 +3629,7 @@ export type ChannelCreateInput = { */ defaultCountry: CountryCode; /** Determine if channel will be set active or not. */ - isActive?: InputMaybe; + isActive?: InputMaybe; /** * Channel public metadata. * @@ -3611,7 +3637,7 @@ export type ChannelCreateInput = { */ metadata?: InputMaybe>; /** Name of the channel. */ - name: Scalars["String"]["input"]; + name: Scalars['String']['input']; /** * The channel order settings * @@ -3633,7 +3659,7 @@ export type ChannelCreateInput = { */ privateMetadata?: InputMaybe>; /** Slug of the channel. */ - slug: Scalars["String"]["input"]; + slug: Scalars['String']['input']; /** * The channel stock settings. * @@ -3651,13 +3677,13 @@ export type ChannelCreated = Event & { /** The channel the event relates to. */ channel: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -3693,7 +3719,7 @@ export type ChannelDelete = { export type ChannelDeleteInput = { /** ID of channel to migrate orders from origin channel. */ - channelId: Scalars["ID"]["input"]; + channelId: Scalars['ID']['input']; }; /** @@ -3705,49 +3731,49 @@ export type ChannelDeleted = Event & { /** The channel the event relates to. */ channel: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; export type ChannelError = { /** The error code. */ code: ChannelErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; /** List of shipping zone IDs which causes the error. */ - shippingZones: Maybe>; + shippingZones: Maybe>; /** List of warehouses IDs which causes the error. */ - warehouses: Maybe>; + warehouses: Maybe>; }; /** An enumeration. */ export type ChannelErrorCode = - | "ALREADY_EXISTS" - | "CHANNELS_CURRENCY_MUST_BE_THE_SAME" - | "CHANNEL_WITH_ORDERS" - | "DUPLICATED_INPUT_ITEM" - | "GRAPHQL_ERROR" - | "INVALID" - | "NOT_FOUND" - | "REQUIRED" - | "UNIQUE"; + | 'ALREADY_EXISTS' + | 'CHANNELS_CURRENCY_MUST_BE_THE_SAME' + | 'CHANNEL_WITH_ORDERS' + | 'DUPLICATED_INPUT_ITEM' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'REQUIRED' + | 'UNIQUE'; export type ChannelListingUpdateInput = { /** ID of a channel listing. */ - channelListing: Scalars["ID"]["input"]; + channelListing: Scalars['ID']['input']; /** Cost price of the variant in channel. */ - costPrice?: InputMaybe; + costPrice?: InputMaybe; /** The threshold for preorder variant in channel. */ - preorderThreshold?: InputMaybe; + preorderThreshold?: InputMaybe; /** Price of the particular variant in channel. */ - price?: InputMaybe; + price?: InputMaybe; }; /** @@ -3759,13 +3785,13 @@ export type ChannelMetadataUpdated = Event & { /** The channel the event relates to. */ channel: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -3790,13 +3816,13 @@ export type ChannelStatusChanged = Event & { /** The channel the event relates to. */ channel: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -3820,13 +3846,13 @@ export type ChannelUpdate = { export type ChannelUpdateInput = { /** List of shipping zones to assign to the channel. */ - addShippingZones?: InputMaybe>; + addShippingZones?: InputMaybe>; /** * List of warehouses to assign to the channel. * * Added in Saleor 3.5. */ - addWarehouses?: InputMaybe>; + addWarehouses?: InputMaybe>; /** * The channel checkout settings * @@ -3842,7 +3868,7 @@ export type ChannelUpdateInput = { */ defaultCountry?: InputMaybe; /** Determine if channel will be set active or not. */ - isActive?: InputMaybe; + isActive?: InputMaybe; /** * Channel public metadata. * @@ -3850,7 +3876,7 @@ export type ChannelUpdateInput = { */ metadata?: InputMaybe>; /** Name of the channel. */ - name?: InputMaybe; + name?: InputMaybe; /** * The channel order settings * @@ -3872,15 +3898,15 @@ export type ChannelUpdateInput = { */ privateMetadata?: InputMaybe>; /** List of shipping zones to unassign from the channel. */ - removeShippingZones?: InputMaybe>; + removeShippingZones?: InputMaybe>; /** * List of warehouses to unassign from the channel. * * Added in Saleor 3.5. */ - removeWarehouses?: InputMaybe>; + removeWarehouses?: InputMaybe>; /** Slug of the channel. */ - slug?: InputMaybe; + slug?: InputMaybe; /** * The channel stock settings. * @@ -3898,272 +3924,276 @@ export type ChannelUpdated = Event & { /** The channel the event relates to. */ channel: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** Checkout object. */ -export type Checkout = Node & - ObjectWithMetadata & { - /** - * The authorize status of the checkout. - * - * Added in Saleor 3.13. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - * - * Triggers the following webhook events: - * - CHECKOUT_CALCULATE_TAXES (sync): Optionally triggered when checkout prices are expired. - */ - authorizeStatus: CheckoutAuthorizeStatusEnum; - /** - * Collection points that can be used for this order. - * - * Added in Saleor 3.1. - */ - availableCollectionPoints: Array; - /** - * List of available payment gateways. - * - * Triggers the following webhook events: - * - PAYMENT_LIST_GATEWAYS (sync): Fetch payment gateways available for checkout. - */ - availablePaymentGateways: Array; - /** - * Shipping methods that can be used with this checkout. - * - * Triggers the following webhook events: - * - SHIPPING_LIST_METHODS_FOR_CHECKOUT (sync): Optionally triggered when cached external shipping methods are invalid. - * - CHECKOUT_FILTER_SHIPPING_METHODS (sync): Optionally triggered when cached filtered shipping methods are invalid. - * @deprecated This field will be removed in Saleor 4.0. Use `shippingMethods` instead. - */ - availableShippingMethods: Array; - /** The billing address of the checkout. */ - billingAddress: Maybe
; - /** The channel for which checkout was created. */ - channel: Channel; - /** - * The charge status of the checkout. - * - * Added in Saleor 3.13. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - * - * Triggers the following webhook events: - * - CHECKOUT_CALCULATE_TAXES (sync): Optionally triggered when checkout prices are expired. - */ - chargeStatus: CheckoutChargeStatusEnum; - /** The date and time when the checkout was created. */ - created: Scalars["DateTime"]["output"]; - /** - * The delivery method selected for this checkout. - * - * Added in Saleor 3.1. - * - * Triggers the following webhook events: - * - SHIPPING_LIST_METHODS_FOR_CHECKOUT (sync): Optionally triggered when cached external shipping methods are invalid. - * - CHECKOUT_FILTER_SHIPPING_METHODS (sync): Optionally triggered when cached filtered shipping methods are invalid. - */ - deliveryMethod: Maybe; - /** The total discount applied to the checkout. Note: Only discount created via voucher are included in this field. */ - discount: Maybe; - /** The name of voucher assigned to the checkout. */ - discountName: Maybe; - /** - * Determines whether displayed prices should include taxes. - * - * Added in Saleor 3.9. - */ - displayGrossPrices: Scalars["Boolean"]["output"]; - /** Email of a customer. */ - email: Maybe; - /** List of gift cards associated with this checkout. */ - giftCards: Array; - /** The ID of the checkout. */ - id: Scalars["ID"]["output"]; - /** Returns True, if checkout requires shipping. */ - isShippingRequired: Scalars["Boolean"]["output"]; - /** Checkout language code. */ - languageCode: LanguageCodeEnum; - /** @deprecated This field will be removed in Saleor 4.0. Use `updatedAt` instead. */ - lastChange: Scalars["DateTime"]["output"]; - /** A list of checkout lines, each containing information about an item in the checkout. */ - lines: Array; - /** List of public metadata items. Can be accessed without permissions. */ - metadata: Array; - /** - * A single key from public metadata. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - metafield: Maybe; - /** - * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - metafields: Maybe; - /** The note for the checkout. */ - note: Scalars["String"]["output"]; - /** List of private metadata items. Requires staff permissions to access. */ - privateMetadata: Array; - /** - * A single key from private metadata. Requires staff permissions to access. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - privateMetafield: Maybe; - /** - * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - privateMetafields: Maybe; - /** - * List of problems with the checkout. - * - * Added in Saleor 3.15. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - problems: Maybe>; - /** The number of items purchased. */ - quantity: Scalars["Int"]["output"]; - /** The shipping address of the checkout. */ - shippingAddress: Maybe
; - /** - * The shipping method related with checkout. - * - * Triggers the following webhook events: - * - SHIPPING_LIST_METHODS_FOR_CHECKOUT (sync): Optionally triggered when cached external shipping methods are invalid. - * - CHECKOUT_FILTER_SHIPPING_METHODS (sync): Optionally triggered when cached filtered shipping methods are invalid. - * @deprecated This field will be removed in Saleor 4.0. Use `deliveryMethod` instead. - */ - shippingMethod: Maybe; - /** - * Shipping methods that can be used with this checkout. - * - * Triggers the following webhook events: - * - SHIPPING_LIST_METHODS_FOR_CHECKOUT (sync): Optionally triggered when cached external shipping methods are invalid. - * - CHECKOUT_FILTER_SHIPPING_METHODS (sync): Optionally triggered when cached filtered shipping methods are invalid. - */ - shippingMethods: Array; - /** - * The price of the shipping, with all the taxes included. Set to 0 when no delivery method is selected. - * - * Triggers the following webhook events: - * - CHECKOUT_CALCULATE_TAXES (sync): Optionally triggered when checkout prices are expired. - */ - shippingPrice: TaxedMoney; - /** - * Date when oldest stock reservation for this checkout expires or null if no stock is reserved. - * - * Added in Saleor 3.1. - */ - stockReservationExpires: Maybe; - /** - * List of user's stored payment methods that can be used in this checkout session. It uses the channel that the checkout was created in. When `amount` is not provided, `checkout.total` will be used as a default value. - * - * Added in Saleor 3.15. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - storedPaymentMethods: Maybe>; - /** - * The price of the checkout before shipping, with taxes included. - * - * Triggers the following webhook events: - * - CHECKOUT_CALCULATE_TAXES (sync): Optionally triggered when checkout prices are expired. - */ - subtotalPrice: TaxedMoney; - /** - * Returns True if checkout has to be exempt from taxes. - * - * Added in Saleor 3.8. - */ - taxExemption: Scalars["Boolean"]["output"]; - /** The checkout's token. */ - token: Scalars["UUID"]["output"]; - /** - * The difference between the paid and the checkout total amount. - * - * Added in Saleor 3.13. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - * - * Triggers the following webhook events: - * - CHECKOUT_CALCULATE_TAXES (sync): Optionally triggered when checkout prices are expired. - */ - totalBalance: Money; - /** - * The sum of the checkout line prices, with all the taxes,shipping costs, and discounts included. - * - * Triggers the following webhook events: - * - CHECKOUT_CALCULATE_TAXES (sync): Optionally triggered when checkout prices are expired. - */ - totalPrice: TaxedMoney; - /** - * List of transactions for the checkout. Requires one of the following permissions: MANAGE_CHECKOUTS, HANDLE_PAYMENTS. - * - * Added in Saleor 3.4. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - transactions: Maybe>; - /** Translation of the discountName field in the language set in Checkout.languageCode field.Note: this field is set automatically when Checkout.languageCode is defined; otherwise it's null */ - translatedDiscountName: Maybe; - /** - * Time of last modification of the given checkout. - * - * Added in Saleor 3.13. - */ - updatedAt: Scalars["DateTime"]["output"]; - /** The user assigned to the checkout. Requires one of the following permissions: MANAGE_USERS, HANDLE_PAYMENTS, OWNER. */ - user: Maybe; - /** - * The voucher assigned to the checkout. - * - * Added in Saleor 3.18. - * - * Requires one of the following permissions: MANAGE_DISCOUNTS. - */ - voucher: Maybe; - /** The code of voucher assigned to the checkout. */ - voucherCode: Maybe; - }; +export type Checkout = Node & ObjectWithMetadata & { + /** + * The authorize status of the checkout. + * + * Added in Saleor 3.13. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + * + * Triggers the following webhook events: + * - CHECKOUT_CALCULATE_TAXES (sync): Optionally triggered when checkout prices are expired. + */ + authorizeStatus: CheckoutAuthorizeStatusEnum; + /** + * Collection points that can be used for this order. + * + * Added in Saleor 3.1. + */ + availableCollectionPoints: Array; + /** + * List of available payment gateways. + * + * Triggers the following webhook events: + * - PAYMENT_LIST_GATEWAYS (sync): Fetch payment gateways available for checkout. + */ + availablePaymentGateways: Array; + /** + * Shipping methods that can be used with this checkout. + * + * Triggers the following webhook events: + * - SHIPPING_LIST_METHODS_FOR_CHECKOUT (sync): Optionally triggered when cached external shipping methods are invalid. + * - CHECKOUT_FILTER_SHIPPING_METHODS (sync): Optionally triggered when cached filtered shipping methods are invalid. + * @deprecated This field will be removed in Saleor 4.0. Use `shippingMethods` instead. + */ + availableShippingMethods: Array; + /** The billing address of the checkout. */ + billingAddress: Maybe
; + /** The channel for which checkout was created. */ + channel: Channel; + /** + * The charge status of the checkout. + * + * Added in Saleor 3.13. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + * + * Triggers the following webhook events: + * - CHECKOUT_CALCULATE_TAXES (sync): Optionally triggered when checkout prices are expired. + */ + chargeStatus: CheckoutChargeStatusEnum; + /** The date and time when the checkout was created. */ + created: Scalars['DateTime']['output']; + /** + * The delivery method selected for this checkout. + * + * Added in Saleor 3.1. + * + * Triggers the following webhook events: + * - SHIPPING_LIST_METHODS_FOR_CHECKOUT (sync): Optionally triggered when cached external shipping methods are invalid. + * - CHECKOUT_FILTER_SHIPPING_METHODS (sync): Optionally triggered when cached filtered shipping methods are invalid. + */ + deliveryMethod: Maybe; + /** The total discount applied to the checkout. Note: Only discount created via voucher are included in this field. */ + discount: Maybe; + /** The name of voucher assigned to the checkout. */ + discountName: Maybe; + /** + * Determines whether displayed prices should include taxes. + * + * Added in Saleor 3.9. + */ + displayGrossPrices: Scalars['Boolean']['output']; + /** Email of a customer. */ + email: Maybe; + /** List of gift cards associated with this checkout. */ + giftCards: Array; + /** The ID of the checkout. */ + id: Scalars['ID']['output']; + /** Returns True, if checkout requires shipping. */ + isShippingRequired: Scalars['Boolean']['output']; + /** Checkout language code. */ + languageCode: LanguageCodeEnum; + /** @deprecated This field will be removed in Saleor 4.0. Use `updatedAt` instead. */ + lastChange: Scalars['DateTime']['output']; + /** A list of checkout lines, each containing information about an item in the checkout. */ + lines: Array; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * A single key from public metadata. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + metafield: Maybe; + /** + * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + metafields: Maybe; + /** The note for the checkout. */ + note: Scalars['String']['output']; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * A single key from private metadata. Requires staff permissions to access. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + privateMetafield: Maybe; + /** + * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + privateMetafields: Maybe; + /** + * List of problems with the checkout. + * + * Added in Saleor 3.15. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + problems: Maybe>; + /** The number of items purchased. */ + quantity: Scalars['Int']['output']; + /** The shipping address of the checkout. */ + shippingAddress: Maybe
; + /** + * The shipping method related with checkout. + * + * Triggers the following webhook events: + * - SHIPPING_LIST_METHODS_FOR_CHECKOUT (sync): Optionally triggered when cached external shipping methods are invalid. + * - CHECKOUT_FILTER_SHIPPING_METHODS (sync): Optionally triggered when cached filtered shipping methods are invalid. + * @deprecated This field will be removed in Saleor 4.0. Use `deliveryMethod` instead. + */ + shippingMethod: Maybe; + /** + * Shipping methods that can be used with this checkout. + * + * Triggers the following webhook events: + * - SHIPPING_LIST_METHODS_FOR_CHECKOUT (sync): Optionally triggered when cached external shipping methods are invalid. + * - CHECKOUT_FILTER_SHIPPING_METHODS (sync): Optionally triggered when cached filtered shipping methods are invalid. + */ + shippingMethods: Array; + /** + * The price of the shipping, with all the taxes included. Set to 0 when no delivery method is selected. + * + * Triggers the following webhook events: + * - CHECKOUT_CALCULATE_TAXES (sync): Optionally triggered when checkout prices are expired. + */ + shippingPrice: TaxedMoney; + /** + * Date when oldest stock reservation for this checkout expires or null if no stock is reserved. + * + * Added in Saleor 3.1. + */ + stockReservationExpires: Maybe; + /** + * List of user's stored payment methods that can be used in this checkout session. It uses the channel that the checkout was created in. When `amount` is not provided, `checkout.total` will be used as a default value. + * + * Added in Saleor 3.15. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + storedPaymentMethods: Maybe>; + /** + * The price of the checkout before shipping, with taxes included. + * + * Triggers the following webhook events: + * - CHECKOUT_CALCULATE_TAXES (sync): Optionally triggered when checkout prices are expired. + */ + subtotalPrice: TaxedMoney; + /** + * Returns True if checkout has to be exempt from taxes. + * + * Added in Saleor 3.8. + */ + taxExemption: Scalars['Boolean']['output']; + /** The checkout's token. */ + token: Scalars['UUID']['output']; + /** + * The difference between the paid and the checkout total amount. + * + * Added in Saleor 3.13. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + * + * Triggers the following webhook events: + * - CHECKOUT_CALCULATE_TAXES (sync): Optionally triggered when checkout prices are expired. + */ + totalBalance: Money; + /** + * The sum of the checkout line prices, with all the taxes,shipping costs, and discounts included. + * + * Triggers the following webhook events: + * - CHECKOUT_CALCULATE_TAXES (sync): Optionally triggered when checkout prices are expired. + */ + totalPrice: TaxedMoney; + /** + * List of transactions for the checkout. Requires one of the following permissions: MANAGE_CHECKOUTS, HANDLE_PAYMENTS. + * + * Added in Saleor 3.4. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + transactions: Maybe>; + /** Translation of the discountName field in the language set in Checkout.languageCode field.Note: this field is set automatically when Checkout.languageCode is defined; otherwise it's null */ + translatedDiscountName: Maybe; + /** + * Time of last modification of the given checkout. + * + * Added in Saleor 3.13. + */ + updatedAt: Scalars['DateTime']['output']; + /** The user assigned to the checkout. Requires one of the following permissions: MANAGE_USERS, HANDLE_PAYMENTS, OWNER. */ + user: Maybe; + /** + * The voucher assigned to the checkout. + * + * Added in Saleor 3.18. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ + voucher: Maybe; + /** The code of voucher assigned to the checkout. */ + voucherCode: Maybe; +}; + /** Checkout object. */ export type CheckoutMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Checkout object. */ export type CheckoutMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Checkout object. */ export type CheckoutPrivateMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Checkout object. */ export type CheckoutPrivateMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Checkout object. */ export type CheckoutStoredPaymentMethodsArgs = { - amount?: InputMaybe; + amount?: InputMaybe; }; /** @@ -4182,11 +4212,11 @@ export type CheckoutAddPromoCode = { export type CheckoutAddressValidationRules = { /** Determines if an error should be raised when the provided address doesn't match the expected format. Example: using letters for postal code when the numbers are expected. */ - checkFieldsFormat?: InputMaybe; + checkFieldsFormat?: InputMaybe; /** Determines if an error should be raised when the provided address doesn't have all the required fields. The list of required fields is dynamic and depends on the country code (use the `addressValidationRules` query to fetch them). Note: country code is mandatory for all addresses regardless of the rules provided in this input. */ - checkRequiredFields?: InputMaybe; + checkRequiredFields?: InputMaybe; /** Determines if Saleor should apply normalization on address fields. Example: converting city field to uppercase letters. */ - enableFieldsNormalization?: InputMaybe; + enableFieldsNormalization?: InputMaybe; }; /** @@ -4204,7 +4234,10 @@ export type CheckoutAddressValidationRules = { * FULL - the cover funds covers the checkout's total * */ -export type CheckoutAuthorizeStatusEnum = "FULL" | "NONE" | "PARTIAL"; +export type CheckoutAuthorizeStatusEnum = + | 'FULL' + | 'NONE' + | 'PARTIAL'; /** * Update billing address in the existing checkout. @@ -4238,10 +4271,10 @@ export type CheckoutBillingAddressUpdate = { * */ export type CheckoutChargeStatusEnum = - | "FULL" - | "NONE" - | "OVERCHARGED" - | "PARTIAL"; + | 'FULL' + | 'NONE' + | 'OVERCHARGED' + | 'PARTIAL'; /** * Completes the checkout. As a result a new order is created. The mutation allows to create the unpaid order when setting `orderSettings.allowUnpaidOrders` for given `Channel` is set to `true`. When `orderSettings.allowUnpaidOrders` is set to `false`, checkout can be completed only when attached `Payment`/`TransactionItem`s fully cover the checkout's total. When processing the checkout with `Payment`, in case of required additional confirmation step like 3D secure, the `confirmationNeeded` flag will be set to True and no order will be created until payment is confirmed with second call of this mutation. @@ -4262,9 +4295,9 @@ export type CheckoutComplete = { /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ checkoutErrors: Array; /** Confirmation data used to process additional authorization steps. */ - confirmationData: Maybe; + confirmationData: Maybe; /** Set to true if payment needs to be confirmed before checkout is complete. */ - confirmationNeeded: Scalars["Boolean"]["output"]; + confirmationNeeded: Scalars['Boolean']['output']; errors: Array; /** Placed order. */ order: Maybe; @@ -4275,12 +4308,12 @@ export type CheckoutCountableConnection = { /** Pagination data for this connection. */ pageInfo: PageInfo; /** A total count of items in the collection. */ - totalCount: Maybe; + totalCount: Maybe; }; export type CheckoutCountableEdge = { /** A cursor for use in pagination. */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node: Checkout; }; @@ -4301,7 +4334,7 @@ export type CheckoutCreate = { * Whether the checkout was created or the current active one was returned. Refer to checkoutLinesAdd and checkoutLinesUpdate to merge a cart with an active checkout. * @deprecated This field will be removed in Saleor 4.0. Always returns `true`. */ - created: Maybe; + created: Maybe; errors: Array; }; @@ -4324,46 +4357,46 @@ export type CheckoutCreateFromOrderError = { /** The error code. */ code: CheckoutCreateFromOrderErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type CheckoutCreateFromOrderErrorCode = - | "CHANNEL_INACTIVE" - | "GRAPHQL_ERROR" - | "INVALID" - | "ORDER_NOT_FOUND" - | "TAX_ERROR"; + | 'CHANNEL_INACTIVE' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'ORDER_NOT_FOUND' + | 'TAX_ERROR'; export type CheckoutCreateFromOrderUnavailableVariant = { /** The error code. */ code: CheckoutCreateFromOrderUnavailableVariantErrorCode; /** Order line ID that is unavailable. */ - lineId: Scalars["ID"]["output"]; + lineId: Scalars['ID']['output']; /** The error message. */ - message: Scalars["String"]["output"]; + message: Scalars['String']['output']; /** Variant ID that is unavailable. */ - variantId: Scalars["ID"]["output"]; + variantId: Scalars['ID']['output']; }; /** An enumeration. */ export type CheckoutCreateFromOrderUnavailableVariantErrorCode = - | "INSUFFICIENT_STOCK" - | "NOT_FOUND" - | "PRODUCT_NOT_PUBLISHED" - | "PRODUCT_UNAVAILABLE_FOR_PURCHASE" - | "QUANTITY_GREATER_THAN_LIMIT" - | "UNAVAILABLE_VARIANT_IN_CHANNEL"; + | 'INSUFFICIENT_STOCK' + | 'NOT_FOUND' + | 'PRODUCT_NOT_PUBLISHED' + | 'PRODUCT_UNAVAILABLE_FOR_PURCHASE' + | 'QUANTITY_GREATER_THAN_LIMIT' + | 'UNAVAILABLE_VARIANT_IN_CHANNEL'; export type CheckoutCreateInput = { /** Billing address of the customer. `skipValidation` requires HANDLE_CHECKOUTS and AUTHENTICATED_APP permissions. */ billingAddress?: InputMaybe; /** Slug of a channel in which to create a checkout. */ - channel?: InputMaybe; + channel?: InputMaybe; /** The customer's email address. */ - email?: InputMaybe; + email?: InputMaybe; /** Checkout language code. */ languageCode?: InputMaybe; /** A list of checkout lines, each containing information about an item in the checkout. */ @@ -4387,13 +4420,13 @@ export type CheckoutCreated = Event & { /** The checkout the event relates to. */ checkout: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -4463,57 +4496,57 @@ export type CheckoutError = { /** The error code. */ code: CheckoutErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** List of line Ids which cause the error. */ - lines: Maybe>; + lines: Maybe>; /** The error message. */ - message: Maybe; + message: Maybe; /** List of variant IDs which causes the error. */ - variants: Maybe>; + variants: Maybe>; }; /** An enumeration. */ export type CheckoutErrorCode = - | "BILLING_ADDRESS_NOT_SET" - | "CHANNEL_INACTIVE" - | "CHECKOUT_NOT_FULLY_PAID" - | "DELIVERY_METHOD_NOT_APPLICABLE" - | "EMAIL_NOT_SET" - | "GIFT_CARD_NOT_APPLICABLE" - | "GRAPHQL_ERROR" - | "INACTIVE_PAYMENT" - | "INSUFFICIENT_STOCK" - | "INVALID" - | "INVALID_SHIPPING_METHOD" - | "MISSING_CHANNEL_SLUG" - | "NON_EDITABLE_GIFT_LINE" - | "NON_REMOVABLE_GIFT_LINE" - | "NOT_FOUND" - | "NO_LINES" - | "PAYMENT_ERROR" - | "PRODUCT_NOT_PUBLISHED" - | "PRODUCT_UNAVAILABLE_FOR_PURCHASE" - | "QUANTITY_GREATER_THAN_LIMIT" - | "REQUIRED" - | "SHIPPING_ADDRESS_NOT_SET" - | "SHIPPING_CHANGE_FORBIDDEN" - | "SHIPPING_METHOD_NOT_APPLICABLE" - | "SHIPPING_METHOD_NOT_SET" - | "SHIPPING_NOT_REQUIRED" - | "TAX_ERROR" - | "UNAVAILABLE_VARIANT_IN_CHANNEL" - | "UNIQUE" - | "VOUCHER_NOT_APPLICABLE" - | "ZERO_QUANTITY"; + | 'BILLING_ADDRESS_NOT_SET' + | 'CHANNEL_INACTIVE' + | 'CHECKOUT_NOT_FULLY_PAID' + | 'DELIVERY_METHOD_NOT_APPLICABLE' + | 'EMAIL_NOT_SET' + | 'GIFT_CARD_NOT_APPLICABLE' + | 'GRAPHQL_ERROR' + | 'INACTIVE_PAYMENT' + | 'INSUFFICIENT_STOCK' + | 'INVALID' + | 'INVALID_SHIPPING_METHOD' + | 'MISSING_CHANNEL_SLUG' + | 'NON_EDITABLE_GIFT_LINE' + | 'NON_REMOVABLE_GIFT_LINE' + | 'NOT_FOUND' + | 'NO_LINES' + | 'PAYMENT_ERROR' + | 'PRODUCT_NOT_PUBLISHED' + | 'PRODUCT_UNAVAILABLE_FOR_PURCHASE' + | 'QUANTITY_GREATER_THAN_LIMIT' + | 'REQUIRED' + | 'SHIPPING_ADDRESS_NOT_SET' + | 'SHIPPING_CHANGE_FORBIDDEN' + | 'SHIPPING_METHOD_NOT_APPLICABLE' + | 'SHIPPING_METHOD_NOT_SET' + | 'SHIPPING_NOT_REQUIRED' + | 'TAX_ERROR' + | 'UNAVAILABLE_VARIANT_IN_CHANNEL' + | 'UNIQUE' + | 'VOUCHER_NOT_APPLICABLE' + | 'ZERO_QUANTITY'; export type CheckoutFilterInput = { authorizeStatus?: InputMaybe>; - channels?: InputMaybe>; + channels?: InputMaybe>; chargeStatus?: InputMaybe>; created?: InputMaybe; - customer?: InputMaybe; + customer?: InputMaybe; metadata?: InputMaybe>; - search?: InputMaybe; + search?: InputMaybe; updatedAt?: InputMaybe; }; @@ -4526,7 +4559,7 @@ export type CheckoutFilterShippingMethods = Event & { /** The checkout the event relates to. */ checkout: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ @@ -4538,7 +4571,7 @@ export type CheckoutFilterShippingMethods = Event & { */ shippingMethods: Maybe>; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -4552,13 +4585,13 @@ export type CheckoutFullyPaid = Event & { /** The checkout the event relates to. */ checkout: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -4575,111 +4608,114 @@ export type CheckoutLanguageCodeUpdate = { errors: Array; }; -/** Represents an item in the checkout. */ -export type CheckoutLine = Node & - ObjectWithMetadata & { - /** The ID of the checkout line. */ - id: Scalars["ID"]["output"]; - /** - * Determine if the line is a gift. - * - * Added in Saleor 3.19. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - isGift: Maybe; - /** - * List of public metadata items. Can be accessed without permissions. - * - * Added in Saleor 3.5. - */ - metadata: Array; - /** - * A single key from public metadata. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.5. - */ - metafield: Maybe; - /** - * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.5. - */ - metafields: Maybe; - /** - * List of private metadata items. Requires staff permissions to access. - * - * Added in Saleor 3.5. - */ - privateMetadata: Array; - /** - * A single key from private metadata. Requires staff permissions to access. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.5. - */ - privateMetafield: Maybe; - /** - * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.5. - */ - privateMetafields: Maybe; - /** - * List of problems with the checkout line. - * - * Added in Saleor 3.15. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - problems: Maybe>; - /** The quantity of product variant assigned to the checkout line. */ - quantity: Scalars["Int"]["output"]; - /** Indicates whether the item need to be delivered. */ - requiresShipping: Scalars["Boolean"]["output"]; - /** - * The sum of the checkout line price, taxes and discounts. - * - * Triggers the following webhook events: - * - CHECKOUT_CALCULATE_TAXES (sync): Optionally triggered when checkout prices are expired. - */ - totalPrice: TaxedMoney; - /** The sum of the checkout line price, without discounts. */ - undiscountedTotalPrice: Money; - /** The unit price of the checkout line, without discounts. */ - undiscountedUnitPrice: Money; - /** - * The unit price of the checkout line, with taxes and discounts. - * - * Triggers the following webhook events: - * - CHECKOUT_CALCULATE_TAXES (sync): Optionally triggered when checkout prices are expired. - */ - unitPrice: TaxedMoney; - /** The product variant from which the checkout line was created. */ - variant: ProductVariant; - }; +/** Represents an item in the checkout. */ +export type CheckoutLine = Node & ObjectWithMetadata & { + /** The ID of the checkout line. */ + id: Scalars['ID']['output']; + /** + * Determine if the line is a gift. + * + * Added in Saleor 3.19. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + isGift: Maybe; + /** + * List of public metadata items. Can be accessed without permissions. + * + * Added in Saleor 3.5. + */ + metadata: Array; + /** + * A single key from public metadata. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.5. + */ + metafield: Maybe; + /** + * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.5. + */ + metafields: Maybe; + /** + * List of private metadata items. Requires staff permissions to access. + * + * Added in Saleor 3.5. + */ + privateMetadata: Array; + /** + * A single key from private metadata. Requires staff permissions to access. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.5. + */ + privateMetafield: Maybe; + /** + * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.5. + */ + privateMetafields: Maybe; + /** + * List of problems with the checkout line. + * + * Added in Saleor 3.15. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + problems: Maybe>; + /** The quantity of product variant assigned to the checkout line. */ + quantity: Scalars['Int']['output']; + /** Indicates whether the item need to be delivered. */ + requiresShipping: Scalars['Boolean']['output']; + /** + * The sum of the checkout line price, taxes and discounts. + * + * Triggers the following webhook events: + * - CHECKOUT_CALCULATE_TAXES (sync): Optionally triggered when checkout prices are expired. + */ + totalPrice: TaxedMoney; + /** The sum of the checkout line price, without discounts. */ + undiscountedTotalPrice: Money; + /** The unit price of the checkout line, without discounts. */ + undiscountedUnitPrice: Money; + /** + * The unit price of the checkout line, with taxes and discounts. + * + * Triggers the following webhook events: + * - CHECKOUT_CALCULATE_TAXES (sync): Optionally triggered when checkout prices are expired. + */ + unitPrice: TaxedMoney; + /** The product variant from which the checkout line was created. */ + variant: ProductVariant; +}; + /** Represents an item in the checkout. */ export type CheckoutLineMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents an item in the checkout. */ export type CheckoutLineMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Represents an item in the checkout. */ export type CheckoutLinePrivateMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents an item in the checkout. */ export type CheckoutLinePrivateMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; export type CheckoutLineCountableConnection = { @@ -4687,12 +4723,12 @@ export type CheckoutLineCountableConnection = { /** Pagination data for this connection. */ pageInfo: PageInfo; /** A total count of items in the collection. */ - totalCount: Maybe; + totalCount: Maybe; }; export type CheckoutLineCountableEdge = { /** A cursor for use in pagination. */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node: CheckoutLine; }; @@ -4717,7 +4753,7 @@ export type CheckoutLineInput = { * * Added in Saleor 3.6. */ - forceNewLine?: InputMaybe; + forceNewLine?: InputMaybe; /** * Fields required to update the object's metadata. * @@ -4729,11 +4765,11 @@ export type CheckoutLineInput = { * * Added in Saleor 3.1. */ - price?: InputMaybe; + price?: InputMaybe; /** The number of items purchased. */ - quantity: Scalars["Int"]["input"]; + quantity: Scalars['Int']['input']; /** ID of the product variant. */ - variantId: Scalars["ID"]["input"]; + variantId: Scalars['ID']['input']; }; /** @@ -4743,9 +4779,7 @@ export type CheckoutLineInput = { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ -export type CheckoutLineProblem = - | CheckoutLineProblemInsufficientStock - | CheckoutLineProblemVariantNotAvailable; +export type CheckoutLineProblem = CheckoutLineProblemInsufficientStock | CheckoutLineProblemVariantNotAvailable; /** * Indicates insufficient stock for a given checkout line.Placing the order will not be possible until solving this problem. @@ -4756,7 +4790,7 @@ export type CheckoutLineProblem = */ export type CheckoutLineProblemInsufficientStock = { /** Available quantity of a variant. */ - availableQuantity: Maybe; + availableQuantity: Maybe; /** The line that has variant with insufficient stock. */ line: CheckoutLine; /** The variant with insufficient stock. */ @@ -4781,21 +4815,21 @@ export type CheckoutLineUpdateInput = { * * Added in Saleor 3.6. */ - lineId?: InputMaybe; + lineId?: InputMaybe; /** * Custom price of the item. Can be set only by apps with `HANDLE_CHECKOUTS` permission. When the line with the same variant will be provided multiple times, the last price will be used. * * Added in Saleor 3.1. */ - price?: InputMaybe; + price?: InputMaybe; /** The number of items purchased. Optional for apps, required for any other users. */ - quantity?: InputMaybe; + quantity?: InputMaybe; /** * ID of the product variant. * * DEPRECATED: this field will be removed in Saleor 4.0. Use `lineId` instead. */ - variantId?: InputMaybe; + variantId?: InputMaybe; }; /** @@ -4847,13 +4881,13 @@ export type CheckoutMetadataUpdated = Event & { /** The checkout the event relates to. */ checkout: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** Create a new payment for given checkout. */ @@ -4874,9 +4908,7 @@ export type CheckoutPaymentCreate = { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ -export type CheckoutProblem = - | CheckoutLineProblemInsufficientStock - | CheckoutLineProblemVariantNotAvailable; +export type CheckoutProblem = CheckoutLineProblemInsufficientStock | CheckoutLineProblemVariantNotAvailable; /** * Remove a gift card or a voucher from a checkout. @@ -4905,7 +4937,7 @@ export type CheckoutSettings = { * * Added in Saleor 3.15.This field will be removed in Saleor 4.0. */ - useLegacyErrorFlow: Scalars["Boolean"]["output"]; + useLegacyErrorFlow: Scalars['Boolean']['output']; }; export type CheckoutSettingsInput = { @@ -4916,7 +4948,7 @@ export type CheckoutSettingsInput = { * * DEPRECATED: this field will be removed in Saleor 4.0. */ - useLegacyErrorFlow?: InputMaybe; + useLegacyErrorFlow?: InputMaybe; }; /** @@ -4950,11 +4982,11 @@ export type CheckoutShippingMethodUpdate = { export type CheckoutSortField = /** Sort checkouts by creation date. */ - | "CREATION_DATE" + | 'CREATION_DATE' /** Sort checkouts by customer. */ - | "CUSTOMER" + | 'CUSTOMER' /** Sort checkouts by payment. */ - | "PAYMENT"; + | 'PAYMENT'; export type CheckoutSortingInput = { /** Specifies the direction in which to sort checkouts. */ @@ -4972,13 +5004,13 @@ export type CheckoutUpdated = Event & { /** The checkout the event relates to. */ checkout: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; export type CheckoutValidationRules = { @@ -4990,122 +5022,128 @@ export type CheckoutValidationRules = { export type ChoiceValue = { /** The raw name of the choice. */ - raw: Maybe; + raw: Maybe; /** The verbose name of the choice. */ - verbose: Maybe; + verbose: Maybe; }; /** Represents a collection of products. */ -export type Collection = Node & - ObjectWithMetadata & { - /** Background image of the collection. */ - backgroundImage: Maybe; - /** Channel given to retrieve this collection. Also used by federation gateway to resolve this object in a federated query. */ - channel: Maybe; - /** - * List of channels in which the collection is available. - * - * Requires one of the following permissions: MANAGE_PRODUCTS. - */ - channelListings: Maybe>; - /** - * Description of the collection. - * - * Rich text format. For reference see https://editorjs.io/ - */ - description: Maybe; - /** - * Description of the collection. - * - * Rich text format. For reference see https://editorjs.io/ - * @deprecated This field will be removed in Saleor 4.0. Use the `description` field instead. - */ - descriptionJson: Maybe; - /** The ID of the collection. */ - id: Scalars["ID"]["output"]; - /** List of public metadata items. Can be accessed without permissions. */ - metadata: Array; - /** - * A single key from public metadata. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - metafield: Maybe; - /** - * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - metafields: Maybe; - /** Name of the collection. */ - name: Scalars["String"]["output"]; - /** List of private metadata items. Requires staff permissions to access. */ - privateMetadata: Array; - /** - * A single key from private metadata. Requires staff permissions to access. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - privateMetafield: Maybe; - /** - * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - privateMetafields: Maybe; - /** List of products in this collection. */ - products: Maybe; - /** SEO description of the collection. */ - seoDescription: Maybe; - /** SEO title of the collection. */ - seoTitle: Maybe; - /** Slug of the collection. */ - slug: Scalars["String"]["output"]; - /** Returns translated collection fields for the given language code. */ - translation: Maybe; - }; +export type Collection = Node & ObjectWithMetadata & { + /** Background image of the collection. */ + backgroundImage: Maybe; + /** Channel given to retrieve this collection. Also used by federation gateway to resolve this object in a federated query. */ + channel: Maybe; + /** + * List of channels in which the collection is available. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + channelListings: Maybe>; + /** + * Description of the collection. + * + * Rich text format. For reference see https://editorjs.io/ + */ + description: Maybe; + /** + * Description of the collection. + * + * Rich text format. For reference see https://editorjs.io/ + * @deprecated This field will be removed in Saleor 4.0. Use the `description` field instead. + */ + descriptionJson: Maybe; + /** The ID of the collection. */ + id: Scalars['ID']['output']; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * A single key from public metadata. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + metafield: Maybe; + /** + * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + metafields: Maybe; + /** Name of the collection. */ + name: Scalars['String']['output']; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * A single key from private metadata. Requires staff permissions to access. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + privateMetafield: Maybe; + /** + * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + privateMetafields: Maybe; + /** List of products in this collection. */ + products: Maybe; + /** SEO description of the collection. */ + seoDescription: Maybe; + /** SEO title of the collection. */ + seoTitle: Maybe; + /** Slug of the collection. */ + slug: Scalars['String']['output']; + /** Returns translated collection fields for the given language code. */ + translation: Maybe; +}; + /** Represents a collection of products. */ export type CollectionBackgroundImageArgs = { format?: InputMaybe; - size?: InputMaybe; + size?: InputMaybe; }; + /** Represents a collection of products. */ export type CollectionMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents a collection of products. */ export type CollectionMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Represents a collection of products. */ export type CollectionPrivateMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents a collection of products. */ export type CollectionPrivateMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Represents a collection of products. */ export type CollectionProductsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; filter?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; sortBy?: InputMaybe; where?: InputMaybe; }; + /** Represents a collection of products. */ export type CollectionTranslationArgs = { languageCode: LanguageCodeEnum; @@ -5133,7 +5171,7 @@ export type CollectionBulkDelete = { /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ collectionErrors: Array; /** Returns how many objects were affected. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; }; @@ -5142,32 +5180,32 @@ export type CollectionChannelListing = Node & { /** The channel to which the collection belongs. */ channel: Channel; /** The ID of the collection channel listing. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Indicates if the collection is published in the channel. */ - isPublished: Scalars["Boolean"]["output"]; + isPublished: Scalars['Boolean']['output']; /** @deprecated This field will be removed in Saleor 4.0. Use the `publishedAt` field to fetch the publication date. */ - publicationDate: Maybe; + publicationDate: Maybe; /** * The collection publication date. * * Added in Saleor 3.3. */ - publishedAt: Maybe; + publishedAt: Maybe; }; export type CollectionChannelListingError = { /** List of attributes IDs which causes the error. */ - attributes: Maybe>; + attributes: Maybe>; /** List of channels IDs which causes the error. */ - channels: Maybe>; + channels: Maybe>; /** The error code. */ code: ProductErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; /** List of attribute values IDs which causes the error. */ - values: Maybe>; + values: Maybe>; }; /** @@ -5187,7 +5225,7 @@ export type CollectionChannelListingUpdateInput = { /** List of channels to which the collection should be assigned. */ addChannels?: InputMaybe>; /** List of channels from which the collection should be unassigned. */ - removeChannels?: InputMaybe>; + removeChannels?: InputMaybe>; }; /** Represents a connection to a list of collections. */ @@ -5196,12 +5234,12 @@ export type CollectionCountableConnection = { /** Pagination data for this connection. */ pageInfo: PageInfo; /** A total count of items in the collection. */ - totalCount: Maybe; + totalCount: Maybe; }; export type CollectionCountableEdge = { /** A cursor for use in pagination. */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node: Collection; }; @@ -5220,17 +5258,17 @@ export type CollectionCreate = { export type CollectionCreateInput = { /** Background image file. */ - backgroundImage?: InputMaybe; + backgroundImage?: InputMaybe; /** Alt text for an image. */ - backgroundImageAlt?: InputMaybe; + backgroundImageAlt?: InputMaybe; /** * Description of the collection. * * Rich text format. For reference see https://editorjs.io/ */ - description?: InputMaybe; + description?: InputMaybe; /** Informs whether a collection is published. */ - isPublished?: InputMaybe; + isPublished?: InputMaybe; /** * Fields required to update the collection metadata. * @@ -5238,7 +5276,7 @@ export type CollectionCreateInput = { */ metadata?: InputMaybe>; /** Name of the collection. */ - name?: InputMaybe; + name?: InputMaybe; /** * Fields required to update the collection private metadata. * @@ -5246,17 +5284,17 @@ export type CollectionCreateInput = { */ privateMetadata?: InputMaybe>; /** List of products to be added to the collection. */ - products?: InputMaybe>; + products?: InputMaybe>; /** * Publication date. ISO 8601 standard. * * DEPRECATED: this field will be removed in Saleor 4.0. */ - publicationDate?: InputMaybe; + publicationDate?: InputMaybe; /** Search engine optimization fields. */ seo?: InputMaybe; /** Slug of the collection. */ - slug?: InputMaybe; + slug?: InputMaybe; }; /** @@ -5268,22 +5306,23 @@ export type CollectionCreated = Event & { /** The collection the event relates to. */ collection: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; + /** * Event sent when new collection is created. * * Added in Saleor 3.2. */ export type CollectionCreatedCollectionArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; /** @@ -5307,44 +5346,45 @@ export type CollectionDeleted = Event & { /** The collection the event relates to. */ collection: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; + /** * Event sent when collection is deleted. * * Added in Saleor 3.2. */ export type CollectionDeletedCollectionArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; export type CollectionError = { /** The error code. */ code: CollectionErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; /** List of products IDs which causes the error. */ - products: Maybe>; + products: Maybe>; }; /** An enumeration. */ export type CollectionErrorCode = - | "CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT" - | "DUPLICATED_INPUT_ITEM" - | "GRAPHQL_ERROR" - | "INVALID" - | "NOT_FOUND" - | "REQUIRED" - | "UNIQUE"; + | 'CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT' + | 'DUPLICATED_INPUT_ITEM' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'REQUIRED' + | 'UNIQUE'; export type CollectionFilterInput = { /** @@ -5352,27 +5392,27 @@ export type CollectionFilterInput = { * * DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead. */ - channel?: InputMaybe; - ids?: InputMaybe>; + channel?: InputMaybe; + ids?: InputMaybe>; metadata?: InputMaybe>; published?: InputMaybe; - search?: InputMaybe; - slugs?: InputMaybe>; + search?: InputMaybe; + slugs?: InputMaybe>; }; export type CollectionInput = { /** Background image file. */ - backgroundImage?: InputMaybe; + backgroundImage?: InputMaybe; /** Alt text for an image. */ - backgroundImageAlt?: InputMaybe; + backgroundImageAlt?: InputMaybe; /** * Description of the collection. * * Rich text format. For reference see https://editorjs.io/ */ - description?: InputMaybe; + description?: InputMaybe; /** Informs whether a collection is published. */ - isPublished?: InputMaybe; + isPublished?: InputMaybe; /** * Fields required to update the collection metadata. * @@ -5380,7 +5420,7 @@ export type CollectionInput = { */ metadata?: InputMaybe>; /** Name of the collection. */ - name?: InputMaybe; + name?: InputMaybe; /** * Fields required to update the collection private metadata. * @@ -5392,11 +5432,11 @@ export type CollectionInput = { * * DEPRECATED: this field will be removed in Saleor 4.0. */ - publicationDate?: InputMaybe; + publicationDate?: InputMaybe; /** Search engine optimization fields. */ seo?: InputMaybe; /** Slug of the collection. */ - slug?: InputMaybe; + slug?: InputMaybe; }; /** @@ -5408,25 +5448,28 @@ export type CollectionMetadataUpdated = Event & { /** The collection the event relates to. */ collection: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; + /** * Event sent when collection metadata is updated. * * Added in Saleor 3.8. */ export type CollectionMetadataUpdatedCollectionArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; -export type CollectionPublished = "HIDDEN" | "PUBLISHED"; +export type CollectionPublished = + | 'HIDDEN' + | 'PUBLISHED'; /** * Remove products from a collection. @@ -5460,23 +5503,23 @@ export type CollectionSortField = * * This option requires a channel filter to work as the values can vary between channels. */ - | "AVAILABILITY" + | 'AVAILABILITY' /** Sort collections by name. */ - | "NAME" + | 'NAME' /** Sort collections by product count. */ - | "PRODUCT_COUNT" + | 'PRODUCT_COUNT' /** * Sort collections by publication date. * * This option requires a channel filter to work as the values can vary between channels. */ - | "PUBLICATION_DATE" + | 'PUBLICATION_DATE' /** * Sort collections by publication date. * * This option requires a channel filter to work as the values can vary between channels. */ - | "PUBLISHED_AT"; + | 'PUBLISHED_AT'; export type CollectionSortingInput = { /** @@ -5484,7 +5527,7 @@ export type CollectionSortingInput = { * * DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead. */ - channel?: InputMaybe; + channel?: InputMaybe; /** Specifies the direction in which to sort collections. */ direction: OrderDirection; /** Sort collections by the selected field. */ @@ -5503,32 +5546,33 @@ export type CollectionTranslatableContent = Node & { * * Added in Saleor 3.14. */ - collectionId: Scalars["ID"]["output"]; + collectionId: Scalars['ID']['output']; /** * Collection's description to translate. * * Rich text format. For reference see https://editorjs.io/ */ - description: Maybe; + description: Maybe; /** * Description of the collection. * * Rich text format. For reference see https://editorjs.io/ * @deprecated This field will be removed in Saleor 4.0. Use the `description` field instead. */ - descriptionJson: Maybe; + descriptionJson: Maybe; /** The ID of the collection translatable content. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Collection's name to translate. */ - name: Scalars["String"]["output"]; + name: Scalars['String']['output']; /** SEO description to translate. */ - seoDescription: Maybe; + seoDescription: Maybe; /** SEO title to translate. */ - seoTitle: Maybe; + seoTitle: Maybe; /** Returns translated collection fields for the given language code. */ translation: Maybe; }; + /** Represents collection's original translatable fields and related translations. */ export type CollectionTranslatableContentTranslationArgs = { languageCode: LanguageCodeEnum; @@ -5553,24 +5597,24 @@ export type CollectionTranslation = Node & { * * Rich text format. For reference see https://editorjs.io/ */ - description: Maybe; + description: Maybe; /** * Translated description of the collection. * * Rich text format. For reference see https://editorjs.io/ * @deprecated This field will be removed in Saleor 4.0. Use the `description` field instead. */ - descriptionJson: Maybe; + descriptionJson: Maybe; /** The ID of the collection translation. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Translation language. */ language: LanguageDisplay; /** Translated collection name. */ - name: Maybe; + name: Maybe; /** Translated SEO description. */ - seoDescription: Maybe; + seoDescription: Maybe; /** Translated SEO title. */ - seoTitle: Maybe; + seoTitle: Maybe; /** * Represents the collection fields to translate. * @@ -5600,22 +5644,23 @@ export type CollectionUpdated = Event & { /** The collection the event relates to. */ collection: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; + /** * Event sent when collection is updated. * * Added in Saleor 3.2. */ export type CollectionUpdatedCollectionArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; export type CollectionWhereInput = { @@ -5623,40 +5668,40 @@ export type CollectionWhereInput = { AND?: InputMaybe>; /** A list of conditions of which at least one must be met. */ OR?: InputMaybe>; - ids?: InputMaybe>; + ids?: InputMaybe>; metadata?: InputMaybe>; }; /** Stores information about a single configuration field. */ export type ConfigurationItem = { /** Help text for the field. */ - helpText: Maybe; + helpText: Maybe; /** Label for the field. */ - label: Maybe; + label: Maybe; /** Name of the field. */ - name: Scalars["String"]["output"]; + name: Scalars['String']['output']; /** Type of the field. */ type: Maybe; /** Current value of the field. */ - value: Maybe; + value: Maybe; }; export type ConfigurationItemInput = { /** Name of the field to update. */ - name: Scalars["String"]["input"]; + name: Scalars['String']['input']; /** Value of the given field to update. */ - value?: InputMaybe; + value?: InputMaybe; }; /** An enumeration. */ export type ConfigurationTypeFieldEnum = - | "BOOLEAN" - | "MULTILINE" - | "OUTPUT" - | "PASSWORD" - | "SECRET" - | "SECRETMULTILINE" - | "STRING"; + | 'BOOLEAN' + | 'MULTILINE' + | 'OUTPUT' + | 'PASSWORD' + | 'SECRET' + | 'SECRETMULTILINE' + | 'STRING'; /** * Confirm user account with token sent by email during registration. @@ -5696,262 +5741,262 @@ export type ConfirmEmailChange = { * The `EU` value is DEPRECATED and will be removed in Saleor 3.21. */ export type CountryCode = - | "AD" - | "AE" - | "AF" - | "AG" - | "AI" - | "AL" - | "AM" - | "AO" - | "AQ" - | "AR" - | "AS" - | "AT" - | "AU" - | "AW" - | "AX" - | "AZ" - | "BA" - | "BB" - | "BD" - | "BE" - | "BF" - | "BG" - | "BH" - | "BI" - | "BJ" - | "BL" - | "BM" - | "BN" - | "BO" - | "BQ" - | "BR" - | "BS" - | "BT" - | "BV" - | "BW" - | "BY" - | "BZ" - | "CA" - | "CC" - | "CD" - | "CF" - | "CG" - | "CH" - | "CI" - | "CK" - | "CL" - | "CM" - | "CN" - | "CO" - | "CR" - | "CU" - | "CV" - | "CW" - | "CX" - | "CY" - | "CZ" - | "DE" - | "DJ" - | "DK" - | "DM" - | "DO" - | "DZ" - | "EC" - | "EE" - | "EG" - | "EH" - | "ER" - | "ES" - | "ET" - | "EU" - | "FI" - | "FJ" - | "FK" - | "FM" - | "FO" - | "FR" - | "GA" - | "GB" - | "GD" - | "GE" - | "GF" - | "GG" - | "GH" - | "GI" - | "GL" - | "GM" - | "GN" - | "GP" - | "GQ" - | "GR" - | "GS" - | "GT" - | "GU" - | "GW" - | "GY" - | "HK" - | "HM" - | "HN" - | "HR" - | "HT" - | "HU" - | "ID" - | "IE" - | "IL" - | "IM" - | "IN" - | "IO" - | "IQ" - | "IR" - | "IS" - | "IT" - | "JE" - | "JM" - | "JO" - | "JP" - | "KE" - | "KG" - | "KH" - | "KI" - | "KM" - | "KN" - | "KP" - | "KR" - | "KW" - | "KY" - | "KZ" - | "LA" - | "LB" - | "LC" - | "LI" - | "LK" - | "LR" - | "LS" - | "LT" - | "LU" - | "LV" - | "LY" - | "MA" - | "MC" - | "MD" - | "ME" - | "MF" - | "MG" - | "MH" - | "MK" - | "ML" - | "MM" - | "MN" - | "MO" - | "MP" - | "MQ" - | "MR" - | "MS" - | "MT" - | "MU" - | "MV" - | "MW" - | "MX" - | "MY" - | "MZ" - | "NA" - | "NC" - | "NE" - | "NF" - | "NG" - | "NI" - | "NL" - | "NO" - | "NP" - | "NR" - | "NU" - | "NZ" - | "OM" - | "PA" - | "PE" - | "PF" - | "PG" - | "PH" - | "PK" - | "PL" - | "PM" - | "PN" - | "PR" - | "PS" - | "PT" - | "PW" - | "PY" - | "QA" - | "RE" - | "RO" - | "RS" - | "RU" - | "RW" - | "SA" - | "SB" - | "SC" - | "SD" - | "SE" - | "SG" - | "SH" - | "SI" - | "SJ" - | "SK" - | "SL" - | "SM" - | "SN" - | "SO" - | "SR" - | "SS" - | "ST" - | "SV" - | "SX" - | "SY" - | "SZ" - | "TC" - | "TD" - | "TF" - | "TG" - | "TH" - | "TJ" - | "TK" - | "TL" - | "TM" - | "TN" - | "TO" - | "TR" - | "TT" - | "TV" - | "TW" - | "TZ" - | "UA" - | "UG" - | "UM" - | "US" - | "UY" - | "UZ" - | "VA" - | "VC" - | "VE" - | "VG" - | "VI" - | "VN" - | "VU" - | "WF" - | "WS" - | "YE" - | "YT" - | "ZA" - | "ZM" - | "ZW"; + | 'AD' + | 'AE' + | 'AF' + | 'AG' + | 'AI' + | 'AL' + | 'AM' + | 'AO' + | 'AQ' + | 'AR' + | 'AS' + | 'AT' + | 'AU' + | 'AW' + | 'AX' + | 'AZ' + | 'BA' + | 'BB' + | 'BD' + | 'BE' + | 'BF' + | 'BG' + | 'BH' + | 'BI' + | 'BJ' + | 'BL' + | 'BM' + | 'BN' + | 'BO' + | 'BQ' + | 'BR' + | 'BS' + | 'BT' + | 'BV' + | 'BW' + | 'BY' + | 'BZ' + | 'CA' + | 'CC' + | 'CD' + | 'CF' + | 'CG' + | 'CH' + | 'CI' + | 'CK' + | 'CL' + | 'CM' + | 'CN' + | 'CO' + | 'CR' + | 'CU' + | 'CV' + | 'CW' + | 'CX' + | 'CY' + | 'CZ' + | 'DE' + | 'DJ' + | 'DK' + | 'DM' + | 'DO' + | 'DZ' + | 'EC' + | 'EE' + | 'EG' + | 'EH' + | 'ER' + | 'ES' + | 'ET' + | 'EU' + | 'FI' + | 'FJ' + | 'FK' + | 'FM' + | 'FO' + | 'FR' + | 'GA' + | 'GB' + | 'GD' + | 'GE' + | 'GF' + | 'GG' + | 'GH' + | 'GI' + | 'GL' + | 'GM' + | 'GN' + | 'GP' + | 'GQ' + | 'GR' + | 'GS' + | 'GT' + | 'GU' + | 'GW' + | 'GY' + | 'HK' + | 'HM' + | 'HN' + | 'HR' + | 'HT' + | 'HU' + | 'ID' + | 'IE' + | 'IL' + | 'IM' + | 'IN' + | 'IO' + | 'IQ' + | 'IR' + | 'IS' + | 'IT' + | 'JE' + | 'JM' + | 'JO' + | 'JP' + | 'KE' + | 'KG' + | 'KH' + | 'KI' + | 'KM' + | 'KN' + | 'KP' + | 'KR' + | 'KW' + | 'KY' + | 'KZ' + | 'LA' + | 'LB' + | 'LC' + | 'LI' + | 'LK' + | 'LR' + | 'LS' + | 'LT' + | 'LU' + | 'LV' + | 'LY' + | 'MA' + | 'MC' + | 'MD' + | 'ME' + | 'MF' + | 'MG' + | 'MH' + | 'MK' + | 'ML' + | 'MM' + | 'MN' + | 'MO' + | 'MP' + | 'MQ' + | 'MR' + | 'MS' + | 'MT' + | 'MU' + | 'MV' + | 'MW' + | 'MX' + | 'MY' + | 'MZ' + | 'NA' + | 'NC' + | 'NE' + | 'NF' + | 'NG' + | 'NI' + | 'NL' + | 'NO' + | 'NP' + | 'NR' + | 'NU' + | 'NZ' + | 'OM' + | 'PA' + | 'PE' + | 'PF' + | 'PG' + | 'PH' + | 'PK' + | 'PL' + | 'PM' + | 'PN' + | 'PR' + | 'PS' + | 'PT' + | 'PW' + | 'PY' + | 'QA' + | 'RE' + | 'RO' + | 'RS' + | 'RU' + | 'RW' + | 'SA' + | 'SB' + | 'SC' + | 'SD' + | 'SE' + | 'SG' + | 'SH' + | 'SI' + | 'SJ' + | 'SK' + | 'SL' + | 'SM' + | 'SN' + | 'SO' + | 'SR' + | 'SS' + | 'ST' + | 'SV' + | 'SX' + | 'SY' + | 'SZ' + | 'TC' + | 'TD' + | 'TF' + | 'TG' + | 'TH' + | 'TJ' + | 'TK' + | 'TL' + | 'TM' + | 'TN' + | 'TO' + | 'TR' + | 'TT' + | 'TV' + | 'TW' + | 'TZ' + | 'UA' + | 'UG' + | 'UM' + | 'US' + | 'UY' + | 'UZ' + | 'VA' + | 'VC' + | 'VE' + | 'VG' + | 'VI' + | 'VN' + | 'VU' + | 'WF' + | 'WS' + | 'YE' + | 'YT' + | 'ZA' + | 'ZM' + | 'ZW'; export type CountryDisplay = { /** Country code. */ - code: Scalars["String"]["output"]; + code: Scalars['String']['output']; /** Country name. */ - country: Scalars["String"]["output"]; + country: Scalars['String']['output']; /** * Country tax. * @deprecated This field will be removed in Saleor 4.0. Always returns `null`. Use `TaxClassCountryRate` type to manage tax rates per country. @@ -5961,21 +6006,21 @@ export type CountryDisplay = { export type CountryFilterInput = { /** Boolean for filtering countries by having shipping zone assigned.If 'true', return countries with shipping zone assigned.If 'false', return countries without any shipping zone assigned.If the argument is not provided (null), return all countries. */ - attachedToShippingZones?: InputMaybe; + attachedToShippingZones?: InputMaybe; }; export type CountryRateInput = { /** Country in which this rate applies. */ countryCode: CountryCode; /** Tax rate value provided as percentage. Example: provide `23` to represent `23%` tax rate. */ - rate: Scalars["Float"]["input"]; + rate: Scalars['Float']['input']; }; export type CountryRateUpdateInput = { /** Country in which this rate applies. */ countryCode: CountryCode; /** Tax rate value provided as percentage. Example: provide `23` to represent `23%` tax rate. Provide `null` to remove the particular rate. */ - rate?: InputMaybe; + rate?: InputMaybe; }; /** Create JWT token. */ @@ -5983,27 +6028,27 @@ export type CreateToken = { /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ accountErrors: Array; /** CSRF token required to re-generate access token. */ - csrfToken: Maybe; + csrfToken: Maybe; errors: Array; /** JWT refresh token, required to re-generate access token. */ - refreshToken: Maybe; + refreshToken: Maybe; /** JWT token, required to authenticate. */ - token: Maybe; + token: Maybe; /** A user instance. */ user: Maybe; }; export type CreditCard = { /** Card brand. */ - brand: Scalars["String"]["output"]; + brand: Scalars['String']['output']; /** Two-digit number representing the card’s expiration month. */ - expMonth: Maybe; + expMonth: Maybe; /** Four-digit number representing the card’s expiration year. */ - expYear: Maybe; + expYear: Maybe; /** First 4 digits of the card number. */ - firstDigits: Maybe; + firstDigits: Maybe; /** Last 4 digits of the card number. */ - lastDigits: Scalars["String"]["output"]; + lastDigits: Scalars['String']['output']; }; /** @@ -6018,7 +6063,7 @@ export type CustomerBulkDelete = { /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ accountErrors: Array; /** Returns how many objects were affected. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; }; @@ -6044,7 +6089,7 @@ export type CustomerBulkResult = { */ export type CustomerBulkUpdate = { /** Returns how many objects were created. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; /** List of the updated customers. */ results: Array; @@ -6054,27 +6099,27 @@ export type CustomerBulkUpdateError = { /** The error code. */ code: CustomerBulkUpdateErrorCode; /** The error message. */ - message: Maybe; + message: Maybe; /** Path to field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - path: Maybe; + path: Maybe; }; /** An enumeration. */ export type CustomerBulkUpdateErrorCode = - | "BLANK" - | "DUPLICATED_INPUT_ITEM" - | "GRAPHQL_ERROR" - | "INVALID" - | "MAX_LENGTH" - | "NOT_FOUND" - | "REQUIRED" - | "UNIQUE"; + | 'BLANK' + | 'DUPLICATED_INPUT_ITEM' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'MAX_LENGTH' + | 'NOT_FOUND' + | 'REQUIRED' + | 'UNIQUE'; export type CustomerBulkUpdateInput = { /** External ID of a customer to update. */ - externalReference?: InputMaybe; + externalReference?: InputMaybe; /** ID of a customer to update. */ - id?: InputMaybe; + id?: InputMaybe; /** Fields required to update a customer. */ input: CustomerInput; }; @@ -6104,7 +6149,7 @@ export type CustomerCreate = { */ export type CustomerCreated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ @@ -6112,7 +6157,7 @@ export type CustomerCreated = Event & { /** The user the event relates to. */ user: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -6135,13 +6180,13 @@ export type CustomerEvent = Node & { /** App that performed the action. */ app: Maybe; /** Number of objects concerned by the event. */ - count: Maybe; + count: Maybe; /** Date when event happened at in ISO 8601 format. */ - date: Maybe; + date: Maybe; /** The ID of the customer event. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Content of the event. */ - message: Maybe; + message: Maybe; /** The concerned order. */ order: Maybe; /** The concerned order line. */ @@ -6154,21 +6199,21 @@ export type CustomerEvent = Node & { /** An enumeration. */ export type CustomerEventsEnum = - | "ACCOUNT_ACTIVATED" - | "ACCOUNT_CREATED" - | "ACCOUNT_DEACTIVATED" - | "CUSTOMER_DELETED" - | "DIGITAL_LINK_DOWNLOADED" - | "EMAIL_ASSIGNED" - | "EMAIL_CHANGED" - | "EMAIL_CHANGED_REQUEST" - | "NAME_ASSIGNED" - | "NOTE_ADDED" - | "NOTE_ADDED_TO_ORDER" - | "PASSWORD_CHANGED" - | "PASSWORD_RESET" - | "PASSWORD_RESET_LINK_SENT" - | "PLACED_ORDER"; + | 'ACCOUNT_ACTIVATED' + | 'ACCOUNT_CREATED' + | 'ACCOUNT_DEACTIVATED' + | 'CUSTOMER_DELETED' + | 'DIGITAL_LINK_DOWNLOADED' + | 'EMAIL_ASSIGNED' + | 'EMAIL_CHANGED' + | 'EMAIL_CHANGED_REQUEST' + | 'NAME_ASSIGNED' + | 'NOTE_ADDED' + | 'NOTE_ADDED_TO_ORDER' + | 'PASSWORD_CHANGED' + | 'PASSWORD_RESET' + | 'PASSWORD_RESET_LINK_SENT' + | 'PLACED_ORDER'; export type CustomerFilterInput = { dateJoined?: InputMaybe; @@ -6177,11 +6222,11 @@ export type CustomerFilterInput = { * * Added in Saleor 3.8. */ - ids?: InputMaybe>; + ids?: InputMaybe>; metadata?: InputMaybe>; numberOfOrders?: InputMaybe; placedOrders?: InputMaybe; - search?: InputMaybe; + search?: InputMaybe; updatedAt?: InputMaybe; }; @@ -6191,27 +6236,27 @@ export type CustomerInput = { /** Shipping address of the customer. */ defaultShippingAddress?: InputMaybe; /** The unique email address of the user. */ - email?: InputMaybe; + email?: InputMaybe; /** * External ID of the customer. * * Added in Saleor 3.10. */ - externalReference?: InputMaybe; + externalReference?: InputMaybe; /** Given name. */ - firstName?: InputMaybe; + firstName?: InputMaybe; /** User account is active. */ - isActive?: InputMaybe; + isActive?: InputMaybe; /** * User account is confirmed. * * Added in Saleor 3.15. */ - isConfirmed?: InputMaybe; + isConfirmed?: InputMaybe; /** User language code. */ languageCode?: InputMaybe; /** Family name. */ - lastName?: InputMaybe; + lastName?: InputMaybe; /** * Fields required to update the user metadata. * @@ -6219,7 +6264,7 @@ export type CustomerInput = { */ metadata?: InputMaybe>; /** A note about the user. */ - note?: InputMaybe; + note?: InputMaybe; /** * Fields required to update the user private metadata. * @@ -6235,7 +6280,7 @@ export type CustomerInput = { */ export type CustomerMetadataUpdated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ @@ -6243,7 +6288,7 @@ export type CustomerMetadataUpdated = Event & { /** The user the event relates to. */ user: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -6269,7 +6314,7 @@ export type CustomerUpdate = { */ export type CustomerUpdated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ @@ -6277,14 +6322,14 @@ export type CustomerUpdated = Event & { /** The user the event relates to. */ user: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; export type DateRangeInput = { /** Start date. */ - gte?: InputMaybe; + gte?: InputMaybe; /** End date. */ - lte?: InputMaybe; + lte?: InputMaybe; }; /** @@ -6296,18 +6341,18 @@ export type DateRangeInput = { */ export type DateTimeFilterInput = { /** The value equal to. */ - eq?: InputMaybe; + eq?: InputMaybe; /** The value included in. */ - oneOf?: InputMaybe>; + oneOf?: InputMaybe>; /** The value in range. */ range?: InputMaybe; }; export type DateTimeRangeInput = { /** Start date. */ - gte?: InputMaybe; + gte?: InputMaybe; /** End date. */ - lte?: InputMaybe; + lte?: InputMaybe; }; /** @@ -6330,18 +6375,18 @@ export type DeactivateAllUserTokens = { */ export type DecimalFilterInput = { /** The value equal to. */ - eq?: InputMaybe; + eq?: InputMaybe; /** The value included in. */ - oneOf?: InputMaybe>; + oneOf?: InputMaybe>; /** The value in range. */ range?: InputMaybe; }; export type DecimalRangeInput = { /** Decimal value greater than or equal to. */ - gte?: InputMaybe; + gte?: InputMaybe; /** Decimal value less than or equal to. */ - lte?: InputMaybe; + lte?: InputMaybe; }; /** Delete metadata of an object. To use it, you need to have access to the modified object. */ @@ -6368,76 +6413,79 @@ export type DeletePrivateMetadata = { export type DeliveryMethod = ShippingMethod | Warehouse; /** Represents digital content associated with a product variant. */ -export type DigitalContent = Node & - ObjectWithMetadata & { - /** Indicator for automatic fulfillment of digital content. */ - automaticFulfillment: Scalars["Boolean"]["output"]; - /** File associated with digital content. */ - contentFile: Scalars["String"]["output"]; - /** The ID of the digital content. */ - id: Scalars["ID"]["output"]; - /** Maximum number of allowed downloads for the digital content. */ - maxDownloads: Maybe; - /** List of public metadata items. Can be accessed without permissions. */ - metadata: Array; - /** - * A single key from public metadata. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - metafield: Maybe; - /** - * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - metafields: Maybe; - /** List of private metadata items. Requires staff permissions to access. */ - privateMetadata: Array; - /** - * A single key from private metadata. Requires staff permissions to access. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - privateMetafield: Maybe; - /** - * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - privateMetafields: Maybe; - /** Product variant assigned to digital content. */ - productVariant: ProductVariant; - /** Number of days the URL for the digital content remains valid. */ - urlValidDays: Maybe; - /** List of URLs for the digital variant. */ - urls: Maybe>; - /** Default settings indicator for digital content. */ - useDefaultSettings: Scalars["Boolean"]["output"]; - }; +export type DigitalContent = Node & ObjectWithMetadata & { + /** Indicator for automatic fulfillment of digital content. */ + automaticFulfillment: Scalars['Boolean']['output']; + /** File associated with digital content. */ + contentFile: Scalars['String']['output']; + /** The ID of the digital content. */ + id: Scalars['ID']['output']; + /** Maximum number of allowed downloads for the digital content. */ + maxDownloads: Maybe; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * A single key from public metadata. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + metafield: Maybe; + /** + * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + metafields: Maybe; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * A single key from private metadata. Requires staff permissions to access. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + privateMetafield: Maybe; + /** + * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + privateMetafields: Maybe; + /** Product variant assigned to digital content. */ + productVariant: ProductVariant; + /** Number of days the URL for the digital content remains valid. */ + urlValidDays: Maybe; + /** List of URLs for the digital variant. */ + urls: Maybe>; + /** Default settings indicator for digital content. */ + useDefaultSettings: Scalars['Boolean']['output']; +}; + /** Represents digital content associated with a product variant. */ export type DigitalContentMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents digital content associated with a product variant. */ export type DigitalContentMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Represents digital content associated with a product variant. */ export type DigitalContentPrivateMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents digital content associated with a product variant. */ export type DigitalContentPrivateMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; /** A connection to a list of digital content items. */ @@ -6446,12 +6494,12 @@ export type DigitalContentCountableConnection = { /** Pagination data for this connection. */ pageInfo: PageInfo; /** A total count of items in the collection. */ - totalCount: Maybe; + totalCount: Maybe; }; export type DigitalContentCountableEdge = { /** A cursor for use in pagination. */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node: DigitalContent; }; @@ -6483,9 +6531,9 @@ export type DigitalContentDelete = { export type DigitalContentInput = { /** Overwrite default automatic_fulfillment setting for variant. */ - automaticFulfillment?: InputMaybe; + automaticFulfillment?: InputMaybe; /** Determines how many times a download link can be accessed by a customer. */ - maxDownloads?: InputMaybe; + maxDownloads?: InputMaybe; /** * Fields required to update the digital content metadata. * @@ -6499,9 +6547,9 @@ export type DigitalContentInput = { */ privateMetadata?: InputMaybe>; /** Determines for how many days a download link is active since it was generated. */ - urlValidDays?: InputMaybe; + urlValidDays?: InputMaybe; /** Use default digital content settings for this product. */ - useDefaultSettings: Scalars["Boolean"]["input"]; + useDefaultSettings: Scalars['Boolean']['input']; }; /** @@ -6519,11 +6567,11 @@ export type DigitalContentUpdate = { export type DigitalContentUploadInput = { /** Overwrite default automatic_fulfillment setting for variant. */ - automaticFulfillment?: InputMaybe; + automaticFulfillment?: InputMaybe; /** Represents an file in a multipart request. */ - contentFile: Scalars["Upload"]["input"]; + contentFile: Scalars['Upload']['input']; /** Determines how many times a download link can be accessed by a customer. */ - maxDownloads?: InputMaybe; + maxDownloads?: InputMaybe; /** * Fields required to update the digital content metadata. * @@ -6537,9 +6585,9 @@ export type DigitalContentUploadInput = { */ privateMetadata?: InputMaybe>; /** Determines for how many days a download link is active since it was generated. */ - urlValidDays?: InputMaybe; + urlValidDays?: InputMaybe; /** Use default digital content settings for this product. */ - useDefaultSettings: Scalars["Boolean"]["input"]; + useDefaultSettings: Scalars['Boolean']['input']; }; /** Represents a URL for digital content. */ @@ -6547,15 +6595,15 @@ export type DigitalContentUrl = Node & { /** Digital content associated with the URL. */ content: DigitalContent; /** Date and time when the digital content URL was created. */ - created: Scalars["DateTime"]["output"]; + created: Scalars['DateTime']['output']; /** Number of times digital content has been downloaded. */ - downloadNum: Scalars["Int"]["output"]; + downloadNum: Scalars['Int']['output']; /** The ID of the digital content URL. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** UUID of digital content. */ - token: Scalars["UUID"]["output"]; + token: Scalars['UUID']['output']; /** URL for digital content. */ - url: Maybe; + url: Maybe; }; /** @@ -6572,43 +6620,48 @@ export type DigitalContentUrlCreate = { export type DigitalContentUrlCreateInput = { /** Digital content ID which URL will belong to. */ - content: Scalars["ID"]["input"]; + content: Scalars['ID']['input']; }; export type DiscountError = { /** List of channels IDs which causes the error. */ - channels: Maybe>; + channels: Maybe>; /** The error code. */ code: DiscountErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; /** List of products IDs which causes the error. */ - products: Maybe>; + products: Maybe>; /** * List of voucher codes which causes the error. * * Added in Saleor 3.18. */ - voucherCodes: Maybe>; + voucherCodes: Maybe>; }; /** An enumeration. */ export type DiscountErrorCode = - | "ALREADY_EXISTS" - | "CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT" - | "DUPLICATED_INPUT_ITEM" - | "GRAPHQL_ERROR" - | "INVALID" - | "NOT_FOUND" - | "REQUIRED" - | "UNIQUE" - | "VOUCHER_ALREADY_USED"; - -export type DiscountStatusEnum = "ACTIVE" | "EXPIRED" | "SCHEDULED"; - -export type DiscountValueTypeEnum = "FIXED" | "PERCENTAGE"; + | 'ALREADY_EXISTS' + | 'CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT' + | 'DUPLICATED_INPUT_ITEM' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'REQUIRED' + | 'UNIQUE' + | 'VOUCHER_ALREADY_USED'; + +export type DiscountStatusEnum = + | 'ACTIVE' + | 'EXPIRED' + | 'SCHEDULED'; + +export type DiscountValueTypeEnum = + | 'FIXED' + | 'PERCENTAGE'; export type DiscountedObjectWhereInput = { /** List of conditions that must be met. */ @@ -6623,23 +6676,23 @@ export type DiscountedObjectWhereInput = { /** An enumeration. */ export type DistanceUnitsEnum = - | "CM" - | "DM" - | "FT" - | "INCH" - | "KM" - | "M" - | "MM" - | "YD"; + | 'CM' + | 'DM' + | 'FT' + | 'INCH' + | 'KM' + | 'M' + | 'MM' + | 'YD'; /** Represents API domain. */ export type Domain = { /** The host name of the domain. */ - host: Scalars["String"]["output"]; + host: Scalars['String']['output']; /** Inform if SSL is enabled. */ - sslEnabled: Scalars["Boolean"]["output"]; + sslEnabled: Scalars['Boolean']['output']; /** The absolute URL of the API. */ - url: Scalars["String"]["output"]; + url: Scalars['String']['output']; }; /** @@ -6649,7 +6702,7 @@ export type Domain = { */ export type DraftOrderBulkDelete = { /** Returns how many objects were affected. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ orderErrors: Array; @@ -6684,37 +6737,37 @@ export type DraftOrderCreateInput = { /** Billing address of the customer. */ billingAddress?: InputMaybe; /** ID of the channel associated with the order. */ - channelId?: InputMaybe; + channelId?: InputMaybe; /** A note from a customer. Visible by customers in the order summary. */ - customerNote?: InputMaybe; + customerNote?: InputMaybe; /** Discount amount for the order. */ - discount?: InputMaybe; + discount?: InputMaybe; /** * External ID of this order. * * Added in Saleor 3.10. */ - externalReference?: InputMaybe; + externalReference?: InputMaybe; /** Variant line input consisting of variant ID and quantity of products. */ lines?: InputMaybe>; /** URL of a view where users should be redirected to see the order details. URL in RFC 1808 format. */ - redirectUrl?: InputMaybe; + redirectUrl?: InputMaybe; /** Shipping address of the customer. */ shippingAddress?: InputMaybe; /** ID of a selected shipping method. */ - shippingMethod?: InputMaybe; + shippingMethod?: InputMaybe; /** Customer associated with the draft order. */ - user?: InputMaybe; + user?: InputMaybe; /** Email address of the customer. */ - userEmail?: InputMaybe; + userEmail?: InputMaybe; /** ID of the voucher associated with the order. */ - voucher?: InputMaybe; + voucher?: InputMaybe; /** * A code of the voucher associated with the order. * * Added in Saleor 3.18. */ - voucherCode?: InputMaybe; + voucherCode?: InputMaybe; }; /** @@ -6724,7 +6777,7 @@ export type DraftOrderCreateInput = { */ export type DraftOrderCreated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The order the event relates to. */ @@ -6732,7 +6785,7 @@ export type DraftOrderCreated = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -6754,7 +6807,7 @@ export type DraftOrderDelete = { */ export type DraftOrderDeleted = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The order the event relates to. */ @@ -6762,42 +6815,42 @@ export type DraftOrderDeleted = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; export type DraftOrderInput = { /** Billing address of the customer. */ billingAddress?: InputMaybe; /** ID of the channel associated with the order. */ - channelId?: InputMaybe; + channelId?: InputMaybe; /** A note from a customer. Visible by customers in the order summary. */ - customerNote?: InputMaybe; + customerNote?: InputMaybe; /** Discount amount for the order. */ - discount?: InputMaybe; + discount?: InputMaybe; /** * External ID of this order. * * Added in Saleor 3.10. */ - externalReference?: InputMaybe; + externalReference?: InputMaybe; /** URL of a view where users should be redirected to see the order details. URL in RFC 1808 format. */ - redirectUrl?: InputMaybe; + redirectUrl?: InputMaybe; /** Shipping address of the customer. */ shippingAddress?: InputMaybe; /** ID of a selected shipping method. */ - shippingMethod?: InputMaybe; + shippingMethod?: InputMaybe; /** Customer associated with the draft order. */ - user?: InputMaybe; + user?: InputMaybe; /** Email address of the customer. */ - userEmail?: InputMaybe; + userEmail?: InputMaybe; /** ID of the voucher associated with the order. */ - voucher?: InputMaybe; + voucher?: InputMaybe; /** * A code of the voucher associated with the order. * * Added in Saleor 3.18. */ - voucherCode?: InputMaybe; + voucherCode?: InputMaybe; }; /** @@ -6807,7 +6860,7 @@ export type DraftOrderInput = { */ export type DraftOrderLinesBulkDelete = { /** Returns how many objects were affected. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ orderErrors: Array; @@ -6832,7 +6885,7 @@ export type DraftOrderUpdate = { */ export type DraftOrderUpdated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The order the event relates to. */ @@ -6840,26 +6893,26 @@ export type DraftOrderUpdated = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; export type ErrorPolicyEnum = /** Save what is possible within a single row. If there are errors in an input data row, try to save it partially and skip the invalid part. */ - | "IGNORE_FAILED" + | 'IGNORE_FAILED' /** Reject all rows if there is at least one error in any of them. */ - | "REJECT_EVERYTHING" + | 'REJECT_EVERYTHING' /** Reject rows with errors. */ - | "REJECT_FAILED_ROWS"; + | 'REJECT_FAILED_ROWS'; export type Event = { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** Event delivery. */ @@ -6867,46 +6920,47 @@ export type EventDelivery = Node & { /** Event delivery attempts. */ attempts: Maybe; /** Creation time of an event delivery. */ - createdAt: Scalars["DateTime"]["output"]; + createdAt: Scalars['DateTime']['output']; /** Webhook event type. */ eventType: WebhookEventTypeEnum; /** The ID of an event delivery. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Event payload. */ - payload: Maybe; + payload: Maybe; /** Event delivery status. */ status: EventDeliveryStatusEnum; }; + /** Event delivery. */ export type EventDeliveryAttemptsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; sortBy?: InputMaybe; }; /** Event delivery attempts. */ export type EventDeliveryAttempt = Node & { /** Event delivery creation date and time. */ - createdAt: Scalars["DateTime"]["output"]; + createdAt: Scalars['DateTime']['output']; /** Delivery attempt duration. */ - duration: Maybe; + duration: Maybe; /** The ID of Event Delivery Attempt. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Request headers for delivery attempt. */ - requestHeaders: Maybe; + requestHeaders: Maybe; /** Delivery attempt response content. */ - response: Maybe; + response: Maybe; /** Response headers for delivery attempt. */ - responseHeaders: Maybe; + responseHeaders: Maybe; /** Delivery attempt response status code. */ - responseStatusCode: Maybe; + responseStatusCode: Maybe; /** Event delivery status. */ status: EventDeliveryStatusEnum; /** Task id for delivery attempt. */ - taskId: Maybe; + taskId: Maybe; }; export type EventDeliveryAttemptCountableConnection = { @@ -6914,19 +6968,19 @@ export type EventDeliveryAttemptCountableConnection = { /** Pagination data for this connection. */ pageInfo: PageInfo; /** A total count of items in the collection. */ - totalCount: Maybe; + totalCount: Maybe; }; export type EventDeliveryAttemptCountableEdge = { /** A cursor for use in pagination. */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node: EventDeliveryAttempt; }; export type EventDeliveryAttemptSortField = /** Sort event delivery attempts by created at. */ - "CREATED_AT"; + | 'CREATED_AT'; export type EventDeliveryAttemptSortingInput = { /** Specifies the direction in which to sort attempts. */ @@ -6940,12 +6994,12 @@ export type EventDeliveryCountableConnection = { /** Pagination data for this connection. */ pageInfo: PageInfo; /** A total count of items in the collection. */ - totalCount: Maybe; + totalCount: Maybe; }; export type EventDeliveryCountableEdge = { /** A cursor for use in pagination. */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node: EventDelivery; }; @@ -6968,7 +7022,7 @@ export type EventDeliveryRetry = { export type EventDeliverySortField = /** Sort event deliveries by created at. */ - "CREATED_AT"; + | 'CREATED_AT'; export type EventDeliverySortingInput = { /** Specifies the direction in which to sort deliveries. */ @@ -6977,34 +7031,37 @@ export type EventDeliverySortingInput = { field: EventDeliverySortField; }; -export type EventDeliveryStatusEnum = "FAILED" | "PENDING" | "SUCCESS"; +export type EventDeliveryStatusEnum = + | 'FAILED' + | 'PENDING' + | 'SUCCESS'; export type ExportError = { /** The error code. */ code: ExportErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type ExportErrorCode = - | "GRAPHQL_ERROR" - | "INVALID" - | "NOT_FOUND" - | "REQUIRED"; + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'REQUIRED'; /** History log of export file. */ export type ExportEvent = Node & { /** App which performed the action. Requires one of the following permissions: OWNER, MANAGE_APPS. */ app: Maybe; /** Date when event happened at in ISO 8601 format. */ - date: Scalars["DateTime"]["output"]; + date: Scalars['DateTime']['output']; /** The ID of the object. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Content of the event. */ - message: Scalars["String"]["output"]; + message: Scalars['String']['output']; /** Export event type. */ type: ExportEventsEnum; /** User who performed the action. Requires one of the following permissions: OWNER, MANAGE_STAFF. */ @@ -7013,64 +7070,63 @@ export type ExportEvent = Node & { /** An enumeration. */ export type ExportEventsEnum = - | "EXPORTED_FILE_SENT" - | "EXPORT_DELETED" - | "EXPORT_FAILED" - | "EXPORT_FAILED_INFO_SENT" - | "EXPORT_PENDING" - | "EXPORT_SUCCESS"; + | 'EXPORTED_FILE_SENT' + | 'EXPORT_DELETED' + | 'EXPORT_FAILED' + | 'EXPORT_FAILED_INFO_SENT' + | 'EXPORT_PENDING' + | 'EXPORT_SUCCESS'; /** Represents a job data of exported file. */ -export type ExportFile = Job & - Node & { - /** The app which requests file export. */ - app: Maybe; - /** Created date time of job in ISO 8601 format. */ - createdAt: Scalars["DateTime"]["output"]; - /** List of events associated with the export. */ - events: Maybe>; - /** The ID of the export file. */ - id: Scalars["ID"]["output"]; - /** Job message. */ - message: Maybe; - /** Job status. */ - status: JobStatusEnum; - /** Date time of job last update in ISO 8601 format. */ - updatedAt: Scalars["DateTime"]["output"]; - /** The URL of field to download. */ - url: Maybe; - /** The user who requests file export. */ - user: Maybe; - }; +export type ExportFile = Job & Node & { + /** The app which requests file export. */ + app: Maybe; + /** Created date time of job in ISO 8601 format. */ + createdAt: Scalars['DateTime']['output']; + /** List of events associated with the export. */ + events: Maybe>; + /** The ID of the export file. */ + id: Scalars['ID']['output']; + /** Job message. */ + message: Maybe; + /** Job status. */ + status: JobStatusEnum; + /** Date time of job last update in ISO 8601 format. */ + updatedAt: Scalars['DateTime']['output']; + /** The URL of field to download. */ + url: Maybe; + /** The user who requests file export. */ + user: Maybe; +}; export type ExportFileCountableConnection = { edges: Array; /** Pagination data for this connection. */ pageInfo: PageInfo; /** A total count of items in the collection. */ - totalCount: Maybe; + totalCount: Maybe; }; export type ExportFileCountableEdge = { /** A cursor for use in pagination. */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node: ExportFile; }; export type ExportFileFilterInput = { - app?: InputMaybe; + app?: InputMaybe; createdAt?: InputMaybe; status?: InputMaybe; updatedAt?: InputMaybe; - user?: InputMaybe; + user?: InputMaybe; }; export type ExportFileSortField = - | "CREATED_AT" - | "LAST_MODIFIED_AT" - | "STATUS" - | "UPDATED_AT"; + | 'CREATED_AT' + | 'LAST_MODIFIED_AT' + | 'STATUS' + | 'UPDATED_AT'; export type ExportFileSortingInput = { /** Specifies the direction in which to sort export file. */ @@ -7102,20 +7158,20 @@ export type ExportGiftCardsInput = { /** Filtering options for gift cards. */ filter?: InputMaybe; /** List of gift cards IDs to export. */ - ids?: InputMaybe>; + ids?: InputMaybe>; /** Determine which gift cards should be exported. */ scope: ExportScope; }; export type ExportInfoInput = { /** List of attribute ids witch should be exported. */ - attributes?: InputMaybe>; + attributes?: InputMaybe>; /** List of channels ids which should be exported. */ - channels?: InputMaybe>; + channels?: InputMaybe>; /** List of product fields witch should be exported. */ fields?: InputMaybe>; /** List of warehouse ids witch should be exported. */ - warehouses?: InputMaybe>; + warehouses?: InputMaybe>; }; /** @@ -7143,18 +7199,18 @@ export type ExportProductsInput = { /** Filtering options for products. */ filter?: InputMaybe; /** List of products IDs to export. */ - ids?: InputMaybe>; + ids?: InputMaybe>; /** Determine which products should be exported. */ scope: ExportScope; }; export type ExportScope = /** Export all products. */ - | "ALL" + | 'ALL' /** Export the filtered products. */ - | "FILTER" + | 'FILTER' /** Export products with given ids. */ - | "IDS"; + | 'IDS'; /** * Export voucher codes to csv/xlsx file. @@ -7178,17 +7234,17 @@ export type ExportVoucherCodesInput = { /** Type of exported file. */ fileType: FileTypesEnum; /** List of voucher code IDs to export. */ - ids?: InputMaybe>; + ids?: InputMaybe>; /** The ID of the voucher. If provided, exports all codes belonging to the voucher. */ - voucherId?: InputMaybe; + voucherId?: InputMaybe; }; /** External authentication plugin. */ export type ExternalAuthentication = { /** ID of external authentication plugin. */ - id: Scalars["String"]["output"]; + id: Scalars['String']['output']; /** Name of external authentication plugin. */ - name: Maybe; + name: Maybe; }; /** Prepare external authentication URL for user by custom plugin. */ @@ -7196,7 +7252,7 @@ export type ExternalAuthenticationUrl = { /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ accountErrors: Array; /** The data returned by authentication plugin. */ - authenticationData: Maybe; + authenticationData: Maybe; errors: Array; }; @@ -7206,24 +7262,24 @@ export type ExternalLogout = { accountErrors: Array; errors: Array; /** The data returned by authentication plugin. */ - logoutData: Maybe; + logoutData: Maybe; }; export type ExternalNotificationError = { /** The error code. */ code: ExternalNotificationErrorCodes; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type ExternalNotificationErrorCodes = - | "CHANNEL_INACTIVE" - | "INVALID_MODEL_TYPE" - | "NOT_FOUND" - | "REQUIRED"; + | 'CHANNEL_INACTIVE' + | 'INVALID_MODEL_TYPE' + | 'NOT_FOUND' + | 'REQUIRED'; /** * Trigger sending a notification with the notify plugin method. Serializes nodes provided as ids parameter and includes this data in the notification payload. @@ -7236,11 +7292,11 @@ export type ExternalNotificationTrigger = { export type ExternalNotificationTriggerInput = { /** External event type. This field is passed to a plugin as an event type. */ - externalEventType: Scalars["String"]["input"]; + externalEventType: Scalars['String']['input']; /** Additional payload that will be merged with the one based on the business object ID. */ - extraPayload?: InputMaybe; + extraPayload?: InputMaybe; /** The list of customers or orders node IDs that will be serialized and included in the notification payload. */ - ids: Array; + ids: Array; }; /** Obtain external access tokens for user by custom plugin. */ @@ -7248,12 +7304,12 @@ export type ExternalObtainAccessTokens = { /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ accountErrors: Array; /** CSRF token required to re-generate external access token. */ - csrfToken: Maybe; + csrfToken: Maybe; errors: Array; /** The refresh token, required to re-generate external access token. */ - refreshToken: Maybe; + refreshToken: Maybe; /** The token, required to authenticate. */ - token: Maybe; + token: Maybe; /** A user instance. */ user: Maybe; }; @@ -7263,12 +7319,12 @@ export type ExternalRefresh = { /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ accountErrors: Array; /** CSRF token required to re-generate external access token. */ - csrfToken: Maybe; + csrfToken: Maybe; errors: Array; /** The refresh token, required to re-generate external access token. */ - refreshToken: Maybe; + refreshToken: Maybe; /** The token, required to authenticate. */ - token: Maybe; + token: Maybe; /** A user instance. */ user: Maybe; }; @@ -7279,22 +7335,24 @@ export type ExternalVerify = { accountErrors: Array; errors: Array; /** Determine if authentication data is valid or not. */ - isValid: Scalars["Boolean"]["output"]; + isValid: Scalars['Boolean']['output']; /** User assigned to data. */ user: Maybe; /** External data. */ - verifyData: Maybe; + verifyData: Maybe; }; export type File = { /** Content type of the file. */ - contentType: Maybe; + contentType: Maybe; /** The URL of the file. */ - url: Scalars["String"]["output"]; + url: Scalars['String']['output']; }; /** An enumeration. */ -export type FileTypesEnum = "CSV" | "XLSX"; +export type FileTypesEnum = + | 'CSV' + | 'XLSX'; /** * Upload a file. This mutation must be sent as a `multipart` request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec @@ -7309,88 +7367,91 @@ export type FileUpload = { }; /** Represents order fulfillment. */ -export type Fulfillment = Node & - ObjectWithMetadata & { - /** Date and time when fulfillment was created. */ - created: Scalars["DateTime"]["output"]; - /** Sequence in which the fulfillments were created for an order. */ - fulfillmentOrder: Scalars["Int"]["output"]; - /** ID of the fulfillment. */ - id: Scalars["ID"]["output"]; - /** List of lines for the fulfillment. */ - lines: Maybe>; - /** List of public metadata items. Can be accessed without permissions. */ - metadata: Array; - /** - * A single key from public metadata. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - metafield: Maybe; - /** - * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - metafields: Maybe; - /** List of private metadata items. Requires staff permissions to access. */ - privateMetadata: Array; - /** - * A single key from private metadata. Requires staff permissions to access. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - privateMetafield: Maybe; - /** - * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - privateMetafields: Maybe; - /** - * Amount of refunded shipping price. - * - * Added in Saleor 3.14. - */ - shippingRefundedAmount: Maybe; - /** Status of fulfillment. */ - status: FulfillmentStatus; - /** User-friendly fulfillment status. */ - statusDisplay: Maybe; - /** - * Total refunded amount assigned to this fulfillment. - * - * Added in Saleor 3.14. - */ - totalRefundedAmount: Maybe; - /** Fulfillment tracking number. */ - trackingNumber: Scalars["String"]["output"]; - /** Warehouse from fulfillment was fulfilled. */ - warehouse: Maybe; - }; +export type Fulfillment = Node & ObjectWithMetadata & { + /** Date and time when fulfillment was created. */ + created: Scalars['DateTime']['output']; + /** Sequence in which the fulfillments were created for an order. */ + fulfillmentOrder: Scalars['Int']['output']; + /** ID of the fulfillment. */ + id: Scalars['ID']['output']; + /** List of lines for the fulfillment. */ + lines: Maybe>; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * A single key from public metadata. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + metafield: Maybe; + /** + * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + metafields: Maybe; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * A single key from private metadata. Requires staff permissions to access. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + privateMetafield: Maybe; + /** + * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + privateMetafields: Maybe; + /** + * Amount of refunded shipping price. + * + * Added in Saleor 3.14. + */ + shippingRefundedAmount: Maybe; + /** Status of fulfillment. */ + status: FulfillmentStatus; + /** User-friendly fulfillment status. */ + statusDisplay: Maybe; + /** + * Total refunded amount assigned to this fulfillment. + * + * Added in Saleor 3.14. + */ + totalRefundedAmount: Maybe; + /** Fulfillment tracking number. */ + trackingNumber: Scalars['String']['output']; + /** Warehouse from fulfillment was fulfilled. */ + warehouse: Maybe; +}; + /** Represents order fulfillment. */ export type FulfillmentMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents order fulfillment. */ export type FulfillmentMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Represents order fulfillment. */ export type FulfillmentPrivateMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents order fulfillment. */ export type FulfillmentPrivateMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; /** @@ -7422,7 +7483,7 @@ export type FulfillmentApproved = Event & { /** The fulfillment the event relates to. */ fulfillment: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** @@ -7430,13 +7491,13 @@ export type FulfillmentApproved = Event & { * * Added in Saleor 3.16. */ - notifyCustomer: Scalars["Boolean"]["output"]; + notifyCustomer: Scalars['Boolean']['output']; /** The order the fulfillment belongs to. */ order: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -7456,7 +7517,7 @@ export type FulfillmentCancel = { export type FulfillmentCancelInput = { /** ID of a warehouse where items will be restocked. Optional when fulfillment is in WAITING_FOR_APPROVAL state. */ - warehouseId?: InputMaybe; + warehouseId?: InputMaybe; }; /** @@ -7468,7 +7529,7 @@ export type FulfillmentCanceled = Event & { /** The fulfillment the event relates to. */ fulfillment: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The order the fulfillment belongs to. */ @@ -7476,7 +7537,7 @@ export type FulfillmentCanceled = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -7488,7 +7549,7 @@ export type FulfillmentCreated = Event & { /** The fulfillment the event relates to. */ fulfillment: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** @@ -7496,23 +7557,23 @@ export type FulfillmentCreated = Event & { * * Added in Saleor 3.16. */ - notifyCustomer: Scalars["Boolean"]["output"]; + notifyCustomer: Scalars['Boolean']['output']; /** The order the fulfillment belongs to. */ order: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** Represents line of the fulfillment. */ export type FulfillmentLine = Node & { /** ID of the fulfillment line. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** The order line to which the fulfillment line is related. */ orderLine: Maybe; /** The number of items included in the fulfillment line. */ - quantity: Scalars["Int"]["output"]; + quantity: Scalars['Int']['output']; }; /** @@ -7524,7 +7585,7 @@ export type FulfillmentMetadataUpdated = Event & { /** The fulfillment the event relates to. */ fulfillment: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The order the fulfillment belongs to. */ @@ -7532,7 +7593,7 @@ export type FulfillmentMetadataUpdated = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -7571,13 +7632,13 @@ export type FulfillmentReturnProducts = { /** An enumeration. */ export type FulfillmentStatus = - | "CANCELED" - | "FULFILLED" - | "REFUNDED" - | "REFUNDED_AND_RETURNED" - | "REPLACED" - | "RETURNED" - | "WAITING_FOR_APPROVAL"; + | 'CANCELED' + | 'FULFILLED' + | 'REFUNDED' + | 'REFUNDED_AND_RETURNED' + | 'REPLACED' + | 'RETURNED' + | 'WAITING_FOR_APPROVAL'; /** * Event sent when the tracking number is updated. @@ -7588,7 +7649,7 @@ export type FulfillmentTrackingNumberUpdated = Event & { /** The fulfillment the event relates to. */ fulfillment: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The order the fulfillment belongs to. */ @@ -7596,7 +7657,7 @@ export type FulfillmentTrackingNumberUpdated = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -7619,179 +7680,183 @@ export type FulfillmentUpdateTracking = { export type FulfillmentUpdateTrackingInput = { /** If true, send an email notification to the customer. */ - notifyCustomer?: InputMaybe; + notifyCustomer?: InputMaybe; /** Fulfillment tracking number. */ - trackingNumber?: InputMaybe; + trackingNumber?: InputMaybe; }; /** Payment gateway client configuration key and value pair. */ export type GatewayConfigLine = { /** Gateway config key. */ - field: Scalars["String"]["output"]; + field: Scalars['String']['output']; /** Gateway config value for key. */ - value: Maybe; + value: Maybe; }; /** A gift card is a prepaid electronic payment card accepted in stores. They can be used during checkout by providing a valid gift card codes. */ -export type GiftCard = Node & - ObjectWithMetadata & { - /** - * App which created the gift card. - * - * Added in Saleor 3.1. - * - * Requires one of the following permissions: MANAGE_APPS, OWNER. - */ - app: Maybe; - /** - * Slug of the channel where the gift card was bought. - * - * Added in Saleor 3.1. - */ - boughtInChannel: Maybe; - /** - * Gift card code. It can be fetched both by a staff member with 'MANAGE_GIFT_CARD' when gift card hasn't been used yet or a user who bought or issued the gift card. - * - * Requires one of the following permissions: MANAGE_GIFT_CARD, OWNER. - */ - code: Scalars["String"]["output"]; - /** Date and time when gift card was created. */ - created: Scalars["DateTime"]["output"]; - /** - * The user who bought or issued a gift card. - * - * Added in Saleor 3.1. - */ - createdBy: Maybe; - /** - * Email address of the user who bought or issued gift card. - * - * Added in Saleor 3.1. - * - * Requires one of the following permissions: MANAGE_USERS, OWNER. - */ - createdByEmail: Maybe; - currentBalance: Money; - /** Code in format which allows displaying in a user interface. */ - displayCode: Scalars["String"]["output"]; - /** - * End date of gift card. - * @deprecated This field will be removed in Saleor 4.0. Use `expiryDate` field instead. - */ - endDate: Maybe; - /** - * List of events associated with the gift card. - * - * Added in Saleor 3.1. - * - * Requires one of the following permissions: MANAGE_GIFT_CARD. - */ - events: Array; - /** Expiry date of the gift card. */ - expiryDate: Maybe; - /** ID of the gift card. */ - id: Scalars["ID"]["output"]; - initialBalance: Money; - isActive: Scalars["Boolean"]["output"]; - /** Last 4 characters of gift card code. */ - last4CodeChars: Scalars["String"]["output"]; - /** Date and time when gift card was last used. */ - lastUsedOn: Maybe; - /** List of public metadata items. Can be accessed without permissions. */ - metadata: Array; - /** - * A single key from public metadata. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - metafield: Maybe; - /** - * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - metafields: Maybe; - /** List of private metadata items. Requires staff permissions to access. */ - privateMetadata: Array; - /** - * A single key from private metadata. Requires staff permissions to access. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - privateMetafield: Maybe; - /** - * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - privateMetafields: Maybe; - /** - * Related gift card product. - * - * Added in Saleor 3.1. - */ - product: Maybe; - /** - * Start date of gift card. - * @deprecated This field will be removed in Saleor 4.0. - */ - startDate: Maybe; - /** - * The gift card tag. - * - * Added in Saleor 3.1. - * - * Requires one of the following permissions: MANAGE_GIFT_CARD. - */ - tags: Array; - /** - * The customer who used a gift card. - * - * Added in Saleor 3.1. - * @deprecated This field will be removed in Saleor 4.0. - */ - usedBy: Maybe; - /** - * Email address of the customer who used a gift card. - * - * Added in Saleor 3.1. - * @deprecated This field will be removed in Saleor 4.0. - */ - usedByEmail: Maybe; - /** - * The customer who bought a gift card. - * @deprecated This field will be removed in Saleor 4.0. Use `createdBy` field instead. - */ - user: Maybe; - }; +export type GiftCard = Node & ObjectWithMetadata & { + /** + * App which created the gift card. + * + * Added in Saleor 3.1. + * + * Requires one of the following permissions: MANAGE_APPS, OWNER. + */ + app: Maybe; + /** + * Slug of the channel where the gift card was bought. + * + * Added in Saleor 3.1. + */ + boughtInChannel: Maybe; + /** + * Gift card code. It can be fetched both by a staff member with 'MANAGE_GIFT_CARD' when gift card hasn't been used yet or a user who bought or issued the gift card. + * + * Requires one of the following permissions: MANAGE_GIFT_CARD, OWNER. + */ + code: Scalars['String']['output']; + /** Date and time when gift card was created. */ + created: Scalars['DateTime']['output']; + /** + * The user who bought or issued a gift card. + * + * Added in Saleor 3.1. + */ + createdBy: Maybe; + /** + * Email address of the user who bought or issued gift card. + * + * Added in Saleor 3.1. + * + * Requires one of the following permissions: MANAGE_USERS, OWNER. + */ + createdByEmail: Maybe; + currentBalance: Money; + /** Code in format which allows displaying in a user interface. */ + displayCode: Scalars['String']['output']; + /** + * End date of gift card. + * @deprecated This field will be removed in Saleor 4.0. Use `expiryDate` field instead. + */ + endDate: Maybe; + /** + * List of events associated with the gift card. + * + * Added in Saleor 3.1. + * + * Requires one of the following permissions: MANAGE_GIFT_CARD. + */ + events: Array; + /** Expiry date of the gift card. */ + expiryDate: Maybe; + /** ID of the gift card. */ + id: Scalars['ID']['output']; + initialBalance: Money; + isActive: Scalars['Boolean']['output']; + /** Last 4 characters of gift card code. */ + last4CodeChars: Scalars['String']['output']; + /** Date and time when gift card was last used. */ + lastUsedOn: Maybe; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * A single key from public metadata. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + metafield: Maybe; + /** + * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + metafields: Maybe; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * A single key from private metadata. Requires staff permissions to access. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + privateMetafield: Maybe; + /** + * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + privateMetafields: Maybe; + /** + * Related gift card product. + * + * Added in Saleor 3.1. + */ + product: Maybe; + /** + * Start date of gift card. + * @deprecated This field will be removed in Saleor 4.0. + */ + startDate: Maybe; + /** + * The gift card tag. + * + * Added in Saleor 3.1. + * + * Requires one of the following permissions: MANAGE_GIFT_CARD. + */ + tags: Array; + /** + * The customer who used a gift card. + * + * Added in Saleor 3.1. + * @deprecated This field will be removed in Saleor 4.0. + */ + usedBy: Maybe; + /** + * Email address of the customer who used a gift card. + * + * Added in Saleor 3.1. + * @deprecated This field will be removed in Saleor 4.0. + */ + usedByEmail: Maybe; + /** + * The customer who bought a gift card. + * @deprecated This field will be removed in Saleor 4.0. Use `createdBy` field instead. + */ + user: Maybe; +}; + /** A gift card is a prepaid electronic payment card accepted in stores. They can be used during checkout by providing a valid gift card codes. */ export type GiftCardEventsArgs = { filter?: InputMaybe; }; + /** A gift card is a prepaid electronic payment card accepted in stores. They can be used during checkout by providing a valid gift card codes. */ export type GiftCardMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** A gift card is a prepaid electronic payment card accepted in stores. They can be used during checkout by providing a valid gift card codes. */ export type GiftCardMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** A gift card is a prepaid electronic payment card accepted in stores. They can be used during checkout by providing a valid gift card codes. */ export type GiftCardPrivateMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** A gift card is a prepaid electronic payment card accepted in stores. They can be used during checkout by providing a valid gift card codes. */ export type GiftCardPrivateMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; /** @@ -7830,7 +7895,7 @@ export type GiftCardAddNote = { export type GiftCardAddNoteInput = { /** Note message. */ - message: Scalars["String"]["input"]; + message: Scalars['String']['input']; }; /** @@ -7845,7 +7910,7 @@ export type GiftCardAddNoteInput = { */ export type GiftCardBulkActivate = { /** Returns how many objects were affected. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; }; @@ -7862,7 +7927,7 @@ export type GiftCardBulkActivate = { */ export type GiftCardBulkCreate = { /** Returns how many objects were created. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; /** List of created gift cards. */ giftCards: Array; @@ -7872,13 +7937,13 @@ export type GiftCardBulkCreateInput = { /** Balance of the gift card. */ balance: PriceInput; /** The number of cards to issue. */ - count: Scalars["Int"]["input"]; + count: Scalars['Int']['input']; /** The gift card expiry date. */ - expiryDate?: InputMaybe; + expiryDate?: InputMaybe; /** Determine if gift card is active. */ - isActive: Scalars["Boolean"]["input"]; + isActive: Scalars['Boolean']['input']; /** The gift card tags. */ - tags?: InputMaybe>; + tags?: InputMaybe>; }; /** @@ -7893,7 +7958,7 @@ export type GiftCardBulkCreateInput = { */ export type GiftCardBulkDeactivate = { /** Returns how many objects were affected. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; }; @@ -7909,7 +7974,7 @@ export type GiftCardBulkDeactivate = { */ export type GiftCardBulkDelete = { /** Returns how many objects were affected. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; }; @@ -7918,12 +7983,12 @@ export type GiftCardCountableConnection = { /** Pagination data for this connection. */ pageInfo: PageInfo; /** A total count of items in the collection. */ - totalCount: Maybe; + totalCount: Maybe; }; export type GiftCardCountableEdge = { /** A cursor for use in pagination. */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node: GiftCard; }; @@ -7950,7 +8015,7 @@ export type GiftCardCreateInput = { * * Added in Saleor 3.1. */ - addTags?: InputMaybe>; + addTags?: InputMaybe>; /** Balance of the gift card. */ balance: PriceInput; /** @@ -7958,45 +8023,45 @@ export type GiftCardCreateInput = { * * Added in Saleor 3.1. */ - channel?: InputMaybe; + channel?: InputMaybe; /** * Code to use the gift card. * * DEPRECATED: this field will be removed in Saleor 4.0. The code is now auto generated. */ - code?: InputMaybe; + code?: InputMaybe; /** * End date of the gift card in ISO 8601 format. * * DEPRECATED: this field will be removed in Saleor 4.0. Use `expiryDate` from `expirySettings` instead. */ - endDate?: InputMaybe; + endDate?: InputMaybe; /** * The gift card expiry date. * * Added in Saleor 3.1. */ - expiryDate?: InputMaybe; + expiryDate?: InputMaybe; /** * Determine if gift card is active. * * Added in Saleor 3.1. */ - isActive: Scalars["Boolean"]["input"]; + isActive: Scalars['Boolean']['input']; /** * The gift card note from the staff member. * * Added in Saleor 3.1. */ - note?: InputMaybe; + note?: InputMaybe; /** * Start date of the gift card in ISO 8601 format. * * DEPRECATED: this field will be removed in Saleor 4.0. */ - startDate?: InputMaybe; + startDate?: InputMaybe; /** Email of the customer to whom gift card will be sent. */ - userEmail?: InputMaybe; + userEmail?: InputMaybe; }; /** @@ -8008,13 +8073,13 @@ export type GiftCardCreated = Event & { /** The gift card the event relates to. */ giftCard: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -8059,36 +8124,36 @@ export type GiftCardDeleted = Event & { /** The gift card the event relates to. */ giftCard: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; export type GiftCardError = { /** The error code. */ code: GiftCardErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; /** List of tag values that cause the error. */ - tags: Maybe>; + tags: Maybe>; }; /** An enumeration. */ export type GiftCardErrorCode = - | "ALREADY_EXISTS" - | "DUPLICATED_INPUT_ITEM" - | "EXPIRED_GIFT_CARD" - | "GRAPHQL_ERROR" - | "INVALID" - | "NOT_FOUND" - | "REQUIRED" - | "UNIQUE"; + | 'ALREADY_EXISTS' + | 'DUPLICATED_INPUT_ITEM' + | 'EXPIRED_GIFT_CARD' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'REQUIRED' + | 'UNIQUE'; /** * History log of the gift card. @@ -8101,25 +8166,25 @@ export type GiftCardEvent = Node & { /** The gift card balance. */ balance: Maybe; /** Date when event happened at in ISO 8601 format. */ - date: Maybe; + date: Maybe; /** Email of the customer. */ - email: Maybe; + email: Maybe; /** The gift card expiry date. */ - expiryDate: Maybe; + expiryDate: Maybe; /** ID of the event associated with a gift card. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Content of the event. */ - message: Maybe; + message: Maybe; /** Previous gift card expiry date. */ - oldExpiryDate: Maybe; + oldExpiryDate: Maybe; /** The list of old gift card tags. */ - oldTags: Maybe>; + oldTags: Maybe>; /** The order ID where gift card was used or bought. */ - orderId: Maybe; + orderId: Maybe; /** User-friendly number of an order where gift card was used or bought. */ - orderNumber: Maybe; + orderNumber: Maybe; /** The list of gift card tags. */ - tags: Maybe>; + tags: Maybe>; /** Gift card event type. */ type: Maybe; /** User who performed the action. Requires one of the following permissions: MANAGE_USERS, MANAGE_STAFF, OWNER. */ @@ -8138,24 +8203,24 @@ export type GiftCardEventBalance = { }; export type GiftCardEventFilterInput = { - orders?: InputMaybe>; + orders?: InputMaybe>; type?: InputMaybe; }; /** An enumeration. */ export type GiftCardEventsEnum = - | "ACTIVATED" - | "BALANCE_RESET" - | "BOUGHT" - | "DEACTIVATED" - | "EXPIRY_DATE_UPDATED" - | "ISSUED" - | "NOTE_ADDED" - | "RESENT" - | "SENT_TO_CUSTOMER" - | "TAGS_UPDATED" - | "UPDATED" - | "USED_IN_ORDER"; + | 'ACTIVATED' + | 'BALANCE_RESET' + | 'BOUGHT' + | 'DEACTIVATED' + | 'EXPIRY_DATE_UPDATED' + | 'ISSUED' + | 'NOTE_ADDED' + | 'RESENT' + | 'SENT_TO_CUSTOMER' + | 'TAGS_UPDATED' + | 'UPDATED' + | 'USED_IN_ORDER'; /** * Event sent when gift card export is completed. @@ -8166,27 +8231,27 @@ export type GiftCardExportCompleted = Event & { /** The export file for gift cards. */ export: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; export type GiftCardFilterInput = { - code?: InputMaybe; - createdByEmail?: InputMaybe; - currency?: InputMaybe; + code?: InputMaybe; + createdByEmail?: InputMaybe; + currency?: InputMaybe; currentBalance?: InputMaybe; initialBalance?: InputMaybe; - isActive?: InputMaybe; + isActive?: InputMaybe; metadata?: InputMaybe>; - products?: InputMaybe>; - tags?: InputMaybe>; - used?: InputMaybe; - usedBy?: InputMaybe>; + products?: InputMaybe>; + tags?: InputMaybe>; + used?: InputMaybe; + usedBy?: InputMaybe>; }; /** @@ -8198,13 +8263,13 @@ export type GiftCardMetadataUpdated = Event & { /** The gift card the event relates to. */ giftCard: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -8225,11 +8290,11 @@ export type GiftCardResend = { export type GiftCardResendInput = { /** Slug of a channel from which the email should be sent. */ - channel: Scalars["String"]["input"]; + channel: Scalars['String']['input']; /** Email to which gift card should be send. */ - email?: InputMaybe; + email?: InputMaybe; /** ID of a gift card to resend. */ - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; /** @@ -8241,19 +8306,19 @@ export type GiftCardResendInput = { */ export type GiftCardSent = Event & { /** Slug of a channel for which this gift card email was sent. */ - channel: Maybe; + channel: Maybe; /** The gift card the event relates to. */ giftCard: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** E-mail address to which gift card was sent. */ - sentToEmail: Maybe; + sentToEmail: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** Gift card related settings from site settings. */ @@ -8268,19 +8333,21 @@ export type GiftCardSettingsError = { /** The error code. */ code: GiftCardSettingsErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type GiftCardSettingsErrorCode = - | "GRAPHQL_ERROR" - | "INVALID" - | "REQUIRED"; + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'REQUIRED'; /** An enumeration. */ -export type GiftCardSettingsExpiryTypeEnum = "EXPIRY_PERIOD" | "NEVER_EXPIRE"; +export type GiftCardSettingsExpiryTypeEnum = + | 'EXPIRY_PERIOD' + | 'NEVER_EXPIRE'; /** * Update gift card settings. @@ -8306,13 +8373,13 @@ export type GiftCardSortField = * * Added in Saleor 3.8. */ - | "CREATED_AT" + | 'CREATED_AT' /** Sort gift cards by current balance. */ - | "CURRENT_BALANCE" + | 'CURRENT_BALANCE' /** Sort gift cards by product. */ - | "PRODUCT" + | 'PRODUCT' /** Sort gift cards by used by. */ - | "USED_BY"; + | 'USED_BY'; export type GiftCardSortingInput = { /** Specifies the direction in which to sort gift cards. */ @@ -8330,13 +8397,13 @@ export type GiftCardStatusChanged = Event & { /** The gift card the event relates to. */ giftCard: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -8346,9 +8413,9 @@ export type GiftCardStatusChanged = Event & { */ export type GiftCardTag = Node & { /** ID of the tag associated with a gift card. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Name of the tag associated with a gift card. */ - name: Scalars["String"]["output"]; + name: Scalars['String']['output']; }; export type GiftCardTagCountableConnection = { @@ -8356,18 +8423,18 @@ export type GiftCardTagCountableConnection = { /** Pagination data for this connection. */ pageInfo: PageInfo; /** A total count of items in the collection. */ - totalCount: Maybe; + totalCount: Maybe; }; export type GiftCardTagCountableEdge = { /** A cursor for use in pagination. */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node: GiftCardTag; }; export type GiftCardTagFilterInput = { - search?: InputMaybe; + search?: InputMaybe; }; /** @@ -8391,37 +8458,37 @@ export type GiftCardUpdateInput = { * * Added in Saleor 3.1. */ - addTags?: InputMaybe>; + addTags?: InputMaybe>; /** * The gift card balance amount. * * Added in Saleor 3.1. */ - balanceAmount?: InputMaybe; + balanceAmount?: InputMaybe; /** * End date of the gift card in ISO 8601 format. * * DEPRECATED: this field will be removed in Saleor 4.0. Use `expiryDate` from `expirySettings` instead. */ - endDate?: InputMaybe; + endDate?: InputMaybe; /** * The gift card expiry date. * * Added in Saleor 3.1. */ - expiryDate?: InputMaybe; + expiryDate?: InputMaybe; /** * The gift card tags to remove. * * Added in Saleor 3.1. */ - removeTags?: InputMaybe>; + removeTags?: InputMaybe>; /** * Start date of the gift card in ISO 8601 format. * * DEPRECATED: this field will be removed in Saleor 4.0. */ - startDate?: InputMaybe; + startDate?: InputMaybe; }; /** @@ -8433,13 +8500,13 @@ export type GiftCardUpdated = Event & { /** The gift card the event relates to. */ giftCard: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -8451,9 +8518,9 @@ export type GiftCardUpdated = Event & { */ export type GlobalIdFilterInput = { /** The value equal to. */ - eq?: InputMaybe; + eq?: InputMaybe; /** The value included in. */ - oneOf?: InputMaybe>; + oneOf?: InputMaybe>; }; /** Represents permission group data. */ @@ -8467,9 +8534,9 @@ export type Group = Node & { */ accessibleChannels: Maybe>; /** The ID of the group. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** The name of the group. */ - name: Scalars["String"]["output"]; + name: Scalars['String']['output']; /** List of group permissions */ permissions: Maybe>; /** @@ -8479,9 +8546,9 @@ export type Group = Node & { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - restrictedAccessToChannels: Scalars["Boolean"]["output"]; + restrictedAccessToChannels: Scalars['Boolean']['output']; /** True, if the currently authenticated user has rights to manage a group. */ - userCanManage: Scalars["Boolean"]["output"]; + userCanManage: Scalars['Boolean']['output']; /** * List of group users * @@ -8495,115 +8562,119 @@ export type GroupCountableConnection = { /** Pagination data for this connection. */ pageInfo: PageInfo; /** A total count of items in the collection. */ - totalCount: Maybe; + totalCount: Maybe; }; export type GroupCountableEdge = { /** A cursor for use in pagination. */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node: Group; }; /** Thumbnail formats for icon images. */ -export type IconThumbnailFormatEnum = "ORIGINAL" | "WEBP"; +export type IconThumbnailFormatEnum = + | 'ORIGINAL' + | 'WEBP'; /** Represents an image. */ export type Image = { /** Alt text for an image. */ - alt: Maybe; + alt: Maybe; /** The URL of the image. */ - url: Scalars["String"]["output"]; + url: Scalars['String']['output']; }; export type IntRangeInput = { /** Value greater than or equal to. */ - gte?: InputMaybe; + gte?: InputMaybe; /** Value less than or equal to. */ - lte?: InputMaybe; + lte?: InputMaybe; +}; + +/** Represents an Invoice. */ +export type Invoice = Job & Node & ObjectWithMetadata & { + /** Date and time at which invoice was created. */ + createdAt: Scalars['DateTime']['output']; + /** + * URL to view an invoice. + * @deprecated This field will be removed in Saleor 4.0. Use `url` field.This field will be removed in 4.0 + */ + externalUrl: Maybe; + /** The ID of the object. */ + id: Scalars['ID']['output']; + /** Message associated with an invoice. */ + message: Maybe; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * A single key from public metadata. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + metafield: Maybe; + /** + * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + metafields: Maybe; + /** Invoice number. */ + number: Maybe; + /** + * Order related to the invoice. + * + * Added in Saleor 3.10. + */ + order: Maybe; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * A single key from private metadata. Requires staff permissions to access. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + privateMetafield: Maybe; + /** + * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + privateMetafields: Maybe; + /** Job status. */ + status: JobStatusEnum; + /** Date and time at which invoice was updated. */ + updatedAt: Scalars['DateTime']['output']; + /** URL to view/download an invoice. This can be an internal URL if the Invoicing Plugin was used or an external URL if it has been provided. */ + url: Maybe; }; -/** Represents an Invoice. */ -export type Invoice = Job & - Node & - ObjectWithMetadata & { - /** Date and time at which invoice was created. */ - createdAt: Scalars["DateTime"]["output"]; - /** - * URL to view an invoice. - * @deprecated This field will be removed in Saleor 4.0. Use `url` field.This field will be removed in 4.0 - */ - externalUrl: Maybe; - /** The ID of the object. */ - id: Scalars["ID"]["output"]; - /** Message associated with an invoice. */ - message: Maybe; - /** List of public metadata items. Can be accessed without permissions. */ - metadata: Array; - /** - * A single key from public metadata. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - metafield: Maybe; - /** - * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - metafields: Maybe; - /** Invoice number. */ - number: Maybe; - /** - * Order related to the invoice. - * - * Added in Saleor 3.10. - */ - order: Maybe; - /** List of private metadata items. Requires staff permissions to access. */ - privateMetadata: Array; - /** - * A single key from private metadata. Requires staff permissions to access. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - privateMetafield: Maybe; - /** - * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - privateMetafields: Maybe; - /** Job status. */ - status: JobStatusEnum; - /** Date and time at which invoice was updated. */ - updatedAt: Scalars["DateTime"]["output"]; - /** URL to view/download an invoice. This can be an internal URL if the Invoicing Plugin was used or an external URL if it has been provided. */ - url: Maybe; - }; /** Represents an Invoice. */ export type InvoiceMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents an Invoice. */ export type InvoiceMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Represents an Invoice. */ export type InvoicePrivateMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents an Invoice. */ export type InvoicePrivateMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; /** @@ -8626,7 +8697,7 @@ export type InvoiceCreateInput = { */ metadata?: InputMaybe>; /** Invoice number. */ - number: Scalars["String"]["input"]; + number: Scalars['String']['input']; /** * Fields required to update the invoice private metadata. * @@ -8634,7 +8705,7 @@ export type InvoiceCreateInput = { */ privateMetadata?: InputMaybe>; /** URL of an invoice to download. */ - url: Scalars["String"]["input"]; + url: Scalars['String']['input']; }; /** @@ -8658,7 +8729,7 @@ export type InvoiceDeleted = Event & { /** The invoice the event relates to. */ invoice: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** @@ -8670,28 +8741,28 @@ export type InvoiceDeleted = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; export type InvoiceError = { /** The error code. */ code: InvoiceErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type InvoiceErrorCode = - | "EMAIL_NOT_SET" - | "INVALID_STATUS" - | "NOT_FOUND" - | "NOT_READY" - | "NO_INVOICE_PLUGIN" - | "NUMBER_NOT_SET" - | "REQUIRED" - | "URL_NOT_SET"; + | 'EMAIL_NOT_SET' + | 'INVALID_STATUS' + | 'NOT_FOUND' + | 'NOT_READY' + | 'NO_INVOICE_PLUGIN' + | 'NUMBER_NOT_SET' + | 'REQUIRED' + | 'URL_NOT_SET'; /** * Request an invoice for the order using plugin. @@ -8734,7 +8805,7 @@ export type InvoiceRequested = Event & { /** The invoice the event relates to. */ invoice: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** @@ -8746,7 +8817,7 @@ export type InvoiceRequested = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -8774,7 +8845,7 @@ export type InvoiceSent = Event & { /** The invoice the event relates to. */ invoice: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** @@ -8786,7 +8857,7 @@ export type InvoiceSent = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -8805,805 +8876,809 @@ export type IssuingPrincipal = App | User; export type Job = { /** Created date time of job in ISO 8601 format. */ - createdAt: Scalars["DateTime"]["output"]; + createdAt: Scalars['DateTime']['output']; /** Job message. */ - message: Maybe; + message: Maybe; /** Job status. */ status: JobStatusEnum; /** Date time of job last update in ISO 8601 format. */ - updatedAt: Scalars["DateTime"]["output"]; + updatedAt: Scalars['DateTime']['output']; }; /** An enumeration. */ -export type JobStatusEnum = "DELETED" | "FAILED" | "PENDING" | "SUCCESS"; +export type JobStatusEnum = + | 'DELETED' + | 'FAILED' + | 'PENDING' + | 'SUCCESS'; /** An enumeration. */ export type LanguageCodeEnum = - | "AF" - | "AF_NA" - | "AF_ZA" - | "AGQ" - | "AGQ_CM" - | "AK" - | "AK_GH" - | "AM" - | "AM_ET" - | "AR" - | "AR_AE" - | "AR_BH" - | "AR_DJ" - | "AR_DZ" - | "AR_EG" - | "AR_EH" - | "AR_ER" - | "AR_IL" - | "AR_IQ" - | "AR_JO" - | "AR_KM" - | "AR_KW" - | "AR_LB" - | "AR_LY" - | "AR_MA" - | "AR_MR" - | "AR_OM" - | "AR_PS" - | "AR_QA" - | "AR_SA" - | "AR_SD" - | "AR_SO" - | "AR_SS" - | "AR_SY" - | "AR_TD" - | "AR_TN" - | "AR_YE" - | "AS" - | "ASA" - | "ASA_TZ" - | "AST" - | "AST_ES" - | "AS_IN" - | "AZ" - | "AZ_CYRL" - | "AZ_CYRL_AZ" - | "AZ_LATN" - | "AZ_LATN_AZ" - | "BAS" - | "BAS_CM" - | "BE" - | "BEM" - | "BEM_ZM" - | "BEZ" - | "BEZ_TZ" - | "BE_BY" - | "BG" - | "BG_BG" - | "BM" - | "BM_ML" - | "BN" - | "BN_BD" - | "BN_IN" - | "BO" - | "BO_CN" - | "BO_IN" - | "BR" - | "BRX" - | "BRX_IN" - | "BR_FR" - | "BS" - | "BS_CYRL" - | "BS_CYRL_BA" - | "BS_LATN" - | "BS_LATN_BA" - | "CA" - | "CA_AD" - | "CA_ES" - | "CA_ES_VALENCIA" - | "CA_FR" - | "CA_IT" - | "CCP" - | "CCP_BD" - | "CCP_IN" - | "CE" - | "CEB" - | "CEB_PH" - | "CE_RU" - | "CGG" - | "CGG_UG" - | "CHR" - | "CHR_US" - | "CKB" - | "CKB_IQ" - | "CKB_IR" - | "CS" - | "CS_CZ" - | "CU" - | "CU_RU" - | "CY" - | "CY_GB" - | "DA" - | "DAV" - | "DAV_KE" - | "DA_DK" - | "DA_GL" - | "DE" - | "DE_AT" - | "DE_BE" - | "DE_CH" - | "DE_DE" - | "DE_IT" - | "DE_LI" - | "DE_LU" - | "DJE" - | "DJE_NE" - | "DSB" - | "DSB_DE" - | "DUA" - | "DUA_CM" - | "DYO" - | "DYO_SN" - | "DZ" - | "DZ_BT" - | "EBU" - | "EBU_KE" - | "EE" - | "EE_GH" - | "EE_TG" - | "EL" - | "EL_CY" - | "EL_GR" - | "EN" - | "EN_AE" - | "EN_AG" - | "EN_AI" - | "EN_AS" - | "EN_AT" - | "EN_AU" - | "EN_BB" - | "EN_BE" - | "EN_BI" - | "EN_BM" - | "EN_BS" - | "EN_BW" - | "EN_BZ" - | "EN_CA" - | "EN_CC" - | "EN_CH" - | "EN_CK" - | "EN_CM" - | "EN_CX" - | "EN_CY" - | "EN_DE" - | "EN_DG" - | "EN_DK" - | "EN_DM" - | "EN_ER" - | "EN_FI" - | "EN_FJ" - | "EN_FK" - | "EN_FM" - | "EN_GB" - | "EN_GD" - | "EN_GG" - | "EN_GH" - | "EN_GI" - | "EN_GM" - | "EN_GU" - | "EN_GY" - | "EN_HK" - | "EN_IE" - | "EN_IL" - | "EN_IM" - | "EN_IN" - | "EN_IO" - | "EN_JE" - | "EN_JM" - | "EN_KE" - | "EN_KI" - | "EN_KN" - | "EN_KY" - | "EN_LC" - | "EN_LR" - | "EN_LS" - | "EN_MG" - | "EN_MH" - | "EN_MO" - | "EN_MP" - | "EN_MS" - | "EN_MT" - | "EN_MU" - | "EN_MW" - | "EN_MY" - | "EN_NA" - | "EN_NF" - | "EN_NG" - | "EN_NL" - | "EN_NR" - | "EN_NU" - | "EN_NZ" - | "EN_PG" - | "EN_PH" - | "EN_PK" - | "EN_PN" - | "EN_PR" - | "EN_PW" - | "EN_RW" - | "EN_SB" - | "EN_SC" - | "EN_SD" - | "EN_SE" - | "EN_SG" - | "EN_SH" - | "EN_SI" - | "EN_SL" - | "EN_SS" - | "EN_SX" - | "EN_SZ" - | "EN_TC" - | "EN_TK" - | "EN_TO" - | "EN_TT" - | "EN_TV" - | "EN_TZ" - | "EN_UG" - | "EN_UM" - | "EN_US" - | "EN_VC" - | "EN_VG" - | "EN_VI" - | "EN_VU" - | "EN_WS" - | "EN_ZA" - | "EN_ZM" - | "EN_ZW" - | "EO" - | "ES" - | "ES_AR" - | "ES_BO" - | "ES_BR" - | "ES_BZ" - | "ES_CL" - | "ES_CO" - | "ES_CR" - | "ES_CU" - | "ES_DO" - | "ES_EA" - | "ES_EC" - | "ES_ES" - | "ES_GQ" - | "ES_GT" - | "ES_HN" - | "ES_IC" - | "ES_MX" - | "ES_NI" - | "ES_PA" - | "ES_PE" - | "ES_PH" - | "ES_PR" - | "ES_PY" - | "ES_SV" - | "ES_US" - | "ES_UY" - | "ES_VE" - | "ET" - | "ET_EE" - | "EU" - | "EU_ES" - | "EWO" - | "EWO_CM" - | "FA" - | "FA_AF" - | "FA_IR" - | "FF" - | "FF_ADLM" - | "FF_ADLM_BF" - | "FF_ADLM_CM" - | "FF_ADLM_GH" - | "FF_ADLM_GM" - | "FF_ADLM_GN" - | "FF_ADLM_GW" - | "FF_ADLM_LR" - | "FF_ADLM_MR" - | "FF_ADLM_NE" - | "FF_ADLM_NG" - | "FF_ADLM_SL" - | "FF_ADLM_SN" - | "FF_LATN" - | "FF_LATN_BF" - | "FF_LATN_CM" - | "FF_LATN_GH" - | "FF_LATN_GM" - | "FF_LATN_GN" - | "FF_LATN_GW" - | "FF_LATN_LR" - | "FF_LATN_MR" - | "FF_LATN_NE" - | "FF_LATN_NG" - | "FF_LATN_SL" - | "FF_LATN_SN" - | "FI" - | "FIL" - | "FIL_PH" - | "FI_FI" - | "FO" - | "FO_DK" - | "FO_FO" - | "FR" - | "FR_BE" - | "FR_BF" - | "FR_BI" - | "FR_BJ" - | "FR_BL" - | "FR_CA" - | "FR_CD" - | "FR_CF" - | "FR_CG" - | "FR_CH" - | "FR_CI" - | "FR_CM" - | "FR_DJ" - | "FR_DZ" - | "FR_FR" - | "FR_GA" - | "FR_GF" - | "FR_GN" - | "FR_GP" - | "FR_GQ" - | "FR_HT" - | "FR_KM" - | "FR_LU" - | "FR_MA" - | "FR_MC" - | "FR_MF" - | "FR_MG" - | "FR_ML" - | "FR_MQ" - | "FR_MR" - | "FR_MU" - | "FR_NC" - | "FR_NE" - | "FR_PF" - | "FR_PM" - | "FR_RE" - | "FR_RW" - | "FR_SC" - | "FR_SN" - | "FR_SY" - | "FR_TD" - | "FR_TG" - | "FR_TN" - | "FR_VU" - | "FR_WF" - | "FR_YT" - | "FUR" - | "FUR_IT" - | "FY" - | "FY_NL" - | "GA" - | "GA_GB" - | "GA_IE" - | "GD" - | "GD_GB" - | "GL" - | "GL_ES" - | "GSW" - | "GSW_CH" - | "GSW_FR" - | "GSW_LI" - | "GU" - | "GUZ" - | "GUZ_KE" - | "GU_IN" - | "GV" - | "GV_IM" - | "HA" - | "HAW" - | "HAW_US" - | "HA_GH" - | "HA_NE" - | "HA_NG" - | "HE" - | "HE_IL" - | "HI" - | "HI_IN" - | "HR" - | "HR_BA" - | "HR_HR" - | "HSB" - | "HSB_DE" - | "HU" - | "HU_HU" - | "HY" - | "HY_AM" - | "IA" - | "ID" - | "ID_ID" - | "IG" - | "IG_NG" - | "II" - | "II_CN" - | "IS" - | "IS_IS" - | "IT" - | "IT_CH" - | "IT_IT" - | "IT_SM" - | "IT_VA" - | "JA" - | "JA_JP" - | "JGO" - | "JGO_CM" - | "JMC" - | "JMC_TZ" - | "JV" - | "JV_ID" - | "KA" - | "KAB" - | "KAB_DZ" - | "KAM" - | "KAM_KE" - | "KA_GE" - | "KDE" - | "KDE_TZ" - | "KEA" - | "KEA_CV" - | "KHQ" - | "KHQ_ML" - | "KI" - | "KI_KE" - | "KK" - | "KKJ" - | "KKJ_CM" - | "KK_KZ" - | "KL" - | "KLN" - | "KLN_KE" - | "KL_GL" - | "KM" - | "KM_KH" - | "KN" - | "KN_IN" - | "KO" - | "KOK" - | "KOK_IN" - | "KO_KP" - | "KO_KR" - | "KS" - | "KSB" - | "KSB_TZ" - | "KSF" - | "KSF_CM" - | "KSH" - | "KSH_DE" - | "KS_ARAB" - | "KS_ARAB_IN" - | "KU" - | "KU_TR" - | "KW" - | "KW_GB" - | "KY" - | "KY_KG" - | "LAG" - | "LAG_TZ" - | "LB" - | "LB_LU" - | "LG" - | "LG_UG" - | "LKT" - | "LKT_US" - | "LN" - | "LN_AO" - | "LN_CD" - | "LN_CF" - | "LN_CG" - | "LO" - | "LO_LA" - | "LRC" - | "LRC_IQ" - | "LRC_IR" - | "LT" - | "LT_LT" - | "LU" - | "LUO" - | "LUO_KE" - | "LUY" - | "LUY_KE" - | "LU_CD" - | "LV" - | "LV_LV" - | "MAI" - | "MAI_IN" - | "MAS" - | "MAS_KE" - | "MAS_TZ" - | "MER" - | "MER_KE" - | "MFE" - | "MFE_MU" - | "MG" - | "MGH" - | "MGH_MZ" - | "MGO" - | "MGO_CM" - | "MG_MG" - | "MI" - | "MI_NZ" - | "MK" - | "MK_MK" - | "ML" - | "ML_IN" - | "MN" - | "MNI" - | "MNI_BENG" - | "MNI_BENG_IN" - | "MN_MN" - | "MR" - | "MR_IN" - | "MS" - | "MS_BN" - | "MS_ID" - | "MS_MY" - | "MS_SG" - | "MT" - | "MT_MT" - | "MUA" - | "MUA_CM" - | "MY" - | "MY_MM" - | "MZN" - | "MZN_IR" - | "NAQ" - | "NAQ_NA" - | "NB" - | "NB_NO" - | "NB_SJ" - | "ND" - | "NDS" - | "NDS_DE" - | "NDS_NL" - | "ND_ZW" - | "NE" - | "NE_IN" - | "NE_NP" - | "NL" - | "NL_AW" - | "NL_BE" - | "NL_BQ" - | "NL_CW" - | "NL_NL" - | "NL_SR" - | "NL_SX" - | "NMG" - | "NMG_CM" - | "NN" - | "NNH" - | "NNH_CM" - | "NN_NO" - | "NUS" - | "NUS_SS" - | "NYN" - | "NYN_UG" - | "OM" - | "OM_ET" - | "OM_KE" - | "OR" - | "OR_IN" - | "OS" - | "OS_GE" - | "OS_RU" - | "PA" - | "PA_ARAB" - | "PA_ARAB_PK" - | "PA_GURU" - | "PA_GURU_IN" - | "PCM" - | "PCM_NG" - | "PL" - | "PL_PL" - | "PRG" - | "PS" - | "PS_AF" - | "PS_PK" - | "PT" - | "PT_AO" - | "PT_BR" - | "PT_CH" - | "PT_CV" - | "PT_GQ" - | "PT_GW" - | "PT_LU" - | "PT_MO" - | "PT_MZ" - | "PT_PT" - | "PT_ST" - | "PT_TL" - | "QU" - | "QU_BO" - | "QU_EC" - | "QU_PE" - | "RM" - | "RM_CH" - | "RN" - | "RN_BI" - | "RO" - | "ROF" - | "ROF_TZ" - | "RO_MD" - | "RO_RO" - | "RU" - | "RU_BY" - | "RU_KG" - | "RU_KZ" - | "RU_MD" - | "RU_RU" - | "RU_UA" - | "RW" - | "RWK" - | "RWK_TZ" - | "RW_RW" - | "SAH" - | "SAH_RU" - | "SAQ" - | "SAQ_KE" - | "SAT" - | "SAT_OLCK" - | "SAT_OLCK_IN" - | "SBP" - | "SBP_TZ" - | "SD" - | "SD_ARAB" - | "SD_ARAB_PK" - | "SD_DEVA" - | "SD_DEVA_IN" - | "SE" - | "SEH" - | "SEH_MZ" - | "SES" - | "SES_ML" - | "SE_FI" - | "SE_NO" - | "SE_SE" - | "SG" - | "SG_CF" - | "SHI" - | "SHI_LATN" - | "SHI_LATN_MA" - | "SHI_TFNG" - | "SHI_TFNG_MA" - | "SI" - | "SI_LK" - | "SK" - | "SK_SK" - | "SL" - | "SL_SI" - | "SMN" - | "SMN_FI" - | "SN" - | "SN_ZW" - | "SO" - | "SO_DJ" - | "SO_ET" - | "SO_KE" - | "SO_SO" - | "SQ" - | "SQ_AL" - | "SQ_MK" - | "SQ_XK" - | "SR" - | "SR_CYRL" - | "SR_CYRL_BA" - | "SR_CYRL_ME" - | "SR_CYRL_RS" - | "SR_CYRL_XK" - | "SR_LATN" - | "SR_LATN_BA" - | "SR_LATN_ME" - | "SR_LATN_RS" - | "SR_LATN_XK" - | "SU" - | "SU_LATN" - | "SU_LATN_ID" - | "SV" - | "SV_AX" - | "SV_FI" - | "SV_SE" - | "SW" - | "SW_CD" - | "SW_KE" - | "SW_TZ" - | "SW_UG" - | "TA" - | "TA_IN" - | "TA_LK" - | "TA_MY" - | "TA_SG" - | "TE" - | "TEO" - | "TEO_KE" - | "TEO_UG" - | "TE_IN" - | "TG" - | "TG_TJ" - | "TH" - | "TH_TH" - | "TI" - | "TI_ER" - | "TI_ET" - | "TK" - | "TK_TM" - | "TO" - | "TO_TO" - | "TR" - | "TR_CY" - | "TR_TR" - | "TT" - | "TT_RU" - | "TWQ" - | "TWQ_NE" - | "TZM" - | "TZM_MA" - | "UG" - | "UG_CN" - | "UK" - | "UK_UA" - | "UR" - | "UR_IN" - | "UR_PK" - | "UZ" - | "UZ_ARAB" - | "UZ_ARAB_AF" - | "UZ_CYRL" - | "UZ_CYRL_UZ" - | "UZ_LATN" - | "UZ_LATN_UZ" - | "VAI" - | "VAI_LATN" - | "VAI_LATN_LR" - | "VAI_VAII" - | "VAI_VAII_LR" - | "VI" - | "VI_VN" - | "VO" - | "VUN" - | "VUN_TZ" - | "WAE" - | "WAE_CH" - | "WO" - | "WO_SN" - | "XH" - | "XH_ZA" - | "XOG" - | "XOG_UG" - | "YAV" - | "YAV_CM" - | "YI" - | "YO" - | "YO_BJ" - | "YO_NG" - | "YUE" - | "YUE_HANS" - | "YUE_HANS_CN" - | "YUE_HANT" - | "YUE_HANT_HK" - | "ZGH" - | "ZGH_MA" - | "ZH" - | "ZH_HANS" - | "ZH_HANS_CN" - | "ZH_HANS_HK" - | "ZH_HANS_MO" - | "ZH_HANS_SG" - | "ZH_HANT" - | "ZH_HANT_HK" - | "ZH_HANT_MO" - | "ZH_HANT_TW" - | "ZU" - | "ZU_ZA"; + | 'AF' + | 'AF_NA' + | 'AF_ZA' + | 'AGQ' + | 'AGQ_CM' + | 'AK' + | 'AK_GH' + | 'AM' + | 'AM_ET' + | 'AR' + | 'AR_AE' + | 'AR_BH' + | 'AR_DJ' + | 'AR_DZ' + | 'AR_EG' + | 'AR_EH' + | 'AR_ER' + | 'AR_IL' + | 'AR_IQ' + | 'AR_JO' + | 'AR_KM' + | 'AR_KW' + | 'AR_LB' + | 'AR_LY' + | 'AR_MA' + | 'AR_MR' + | 'AR_OM' + | 'AR_PS' + | 'AR_QA' + | 'AR_SA' + | 'AR_SD' + | 'AR_SO' + | 'AR_SS' + | 'AR_SY' + | 'AR_TD' + | 'AR_TN' + | 'AR_YE' + | 'AS' + | 'ASA' + | 'ASA_TZ' + | 'AST' + | 'AST_ES' + | 'AS_IN' + | 'AZ' + | 'AZ_CYRL' + | 'AZ_CYRL_AZ' + | 'AZ_LATN' + | 'AZ_LATN_AZ' + | 'BAS' + | 'BAS_CM' + | 'BE' + | 'BEM' + | 'BEM_ZM' + | 'BEZ' + | 'BEZ_TZ' + | 'BE_BY' + | 'BG' + | 'BG_BG' + | 'BM' + | 'BM_ML' + | 'BN' + | 'BN_BD' + | 'BN_IN' + | 'BO' + | 'BO_CN' + | 'BO_IN' + | 'BR' + | 'BRX' + | 'BRX_IN' + | 'BR_FR' + | 'BS' + | 'BS_CYRL' + | 'BS_CYRL_BA' + | 'BS_LATN' + | 'BS_LATN_BA' + | 'CA' + | 'CA_AD' + | 'CA_ES' + | 'CA_ES_VALENCIA' + | 'CA_FR' + | 'CA_IT' + | 'CCP' + | 'CCP_BD' + | 'CCP_IN' + | 'CE' + | 'CEB' + | 'CEB_PH' + | 'CE_RU' + | 'CGG' + | 'CGG_UG' + | 'CHR' + | 'CHR_US' + | 'CKB' + | 'CKB_IQ' + | 'CKB_IR' + | 'CS' + | 'CS_CZ' + | 'CU' + | 'CU_RU' + | 'CY' + | 'CY_GB' + | 'DA' + | 'DAV' + | 'DAV_KE' + | 'DA_DK' + | 'DA_GL' + | 'DE' + | 'DE_AT' + | 'DE_BE' + | 'DE_CH' + | 'DE_DE' + | 'DE_IT' + | 'DE_LI' + | 'DE_LU' + | 'DJE' + | 'DJE_NE' + | 'DSB' + | 'DSB_DE' + | 'DUA' + | 'DUA_CM' + | 'DYO' + | 'DYO_SN' + | 'DZ' + | 'DZ_BT' + | 'EBU' + | 'EBU_KE' + | 'EE' + | 'EE_GH' + | 'EE_TG' + | 'EL' + | 'EL_CY' + | 'EL_GR' + | 'EN' + | 'EN_AE' + | 'EN_AG' + | 'EN_AI' + | 'EN_AS' + | 'EN_AT' + | 'EN_AU' + | 'EN_BB' + | 'EN_BE' + | 'EN_BI' + | 'EN_BM' + | 'EN_BS' + | 'EN_BW' + | 'EN_BZ' + | 'EN_CA' + | 'EN_CC' + | 'EN_CH' + | 'EN_CK' + | 'EN_CM' + | 'EN_CX' + | 'EN_CY' + | 'EN_DE' + | 'EN_DG' + | 'EN_DK' + | 'EN_DM' + | 'EN_ER' + | 'EN_FI' + | 'EN_FJ' + | 'EN_FK' + | 'EN_FM' + | 'EN_GB' + | 'EN_GD' + | 'EN_GG' + | 'EN_GH' + | 'EN_GI' + | 'EN_GM' + | 'EN_GU' + | 'EN_GY' + | 'EN_HK' + | 'EN_IE' + | 'EN_IL' + | 'EN_IM' + | 'EN_IN' + | 'EN_IO' + | 'EN_JE' + | 'EN_JM' + | 'EN_KE' + | 'EN_KI' + | 'EN_KN' + | 'EN_KY' + | 'EN_LC' + | 'EN_LR' + | 'EN_LS' + | 'EN_MG' + | 'EN_MH' + | 'EN_MO' + | 'EN_MP' + | 'EN_MS' + | 'EN_MT' + | 'EN_MU' + | 'EN_MW' + | 'EN_MY' + | 'EN_NA' + | 'EN_NF' + | 'EN_NG' + | 'EN_NL' + | 'EN_NR' + | 'EN_NU' + | 'EN_NZ' + | 'EN_PG' + | 'EN_PH' + | 'EN_PK' + | 'EN_PN' + | 'EN_PR' + | 'EN_PW' + | 'EN_RW' + | 'EN_SB' + | 'EN_SC' + | 'EN_SD' + | 'EN_SE' + | 'EN_SG' + | 'EN_SH' + | 'EN_SI' + | 'EN_SL' + | 'EN_SS' + | 'EN_SX' + | 'EN_SZ' + | 'EN_TC' + | 'EN_TK' + | 'EN_TO' + | 'EN_TT' + | 'EN_TV' + | 'EN_TZ' + | 'EN_UG' + | 'EN_UM' + | 'EN_US' + | 'EN_VC' + | 'EN_VG' + | 'EN_VI' + | 'EN_VU' + | 'EN_WS' + | 'EN_ZA' + | 'EN_ZM' + | 'EN_ZW' + | 'EO' + | 'ES' + | 'ES_AR' + | 'ES_BO' + | 'ES_BR' + | 'ES_BZ' + | 'ES_CL' + | 'ES_CO' + | 'ES_CR' + | 'ES_CU' + | 'ES_DO' + | 'ES_EA' + | 'ES_EC' + | 'ES_ES' + | 'ES_GQ' + | 'ES_GT' + | 'ES_HN' + | 'ES_IC' + | 'ES_MX' + | 'ES_NI' + | 'ES_PA' + | 'ES_PE' + | 'ES_PH' + | 'ES_PR' + | 'ES_PY' + | 'ES_SV' + | 'ES_US' + | 'ES_UY' + | 'ES_VE' + | 'ET' + | 'ET_EE' + | 'EU' + | 'EU_ES' + | 'EWO' + | 'EWO_CM' + | 'FA' + | 'FA_AF' + | 'FA_IR' + | 'FF' + | 'FF_ADLM' + | 'FF_ADLM_BF' + | 'FF_ADLM_CM' + | 'FF_ADLM_GH' + | 'FF_ADLM_GM' + | 'FF_ADLM_GN' + | 'FF_ADLM_GW' + | 'FF_ADLM_LR' + | 'FF_ADLM_MR' + | 'FF_ADLM_NE' + | 'FF_ADLM_NG' + | 'FF_ADLM_SL' + | 'FF_ADLM_SN' + | 'FF_LATN' + | 'FF_LATN_BF' + | 'FF_LATN_CM' + | 'FF_LATN_GH' + | 'FF_LATN_GM' + | 'FF_LATN_GN' + | 'FF_LATN_GW' + | 'FF_LATN_LR' + | 'FF_LATN_MR' + | 'FF_LATN_NE' + | 'FF_LATN_NG' + | 'FF_LATN_SL' + | 'FF_LATN_SN' + | 'FI' + | 'FIL' + | 'FIL_PH' + | 'FI_FI' + | 'FO' + | 'FO_DK' + | 'FO_FO' + | 'FR' + | 'FR_BE' + | 'FR_BF' + | 'FR_BI' + | 'FR_BJ' + | 'FR_BL' + | 'FR_CA' + | 'FR_CD' + | 'FR_CF' + | 'FR_CG' + | 'FR_CH' + | 'FR_CI' + | 'FR_CM' + | 'FR_DJ' + | 'FR_DZ' + | 'FR_FR' + | 'FR_GA' + | 'FR_GF' + | 'FR_GN' + | 'FR_GP' + | 'FR_GQ' + | 'FR_HT' + | 'FR_KM' + | 'FR_LU' + | 'FR_MA' + | 'FR_MC' + | 'FR_MF' + | 'FR_MG' + | 'FR_ML' + | 'FR_MQ' + | 'FR_MR' + | 'FR_MU' + | 'FR_NC' + | 'FR_NE' + | 'FR_PF' + | 'FR_PM' + | 'FR_RE' + | 'FR_RW' + | 'FR_SC' + | 'FR_SN' + | 'FR_SY' + | 'FR_TD' + | 'FR_TG' + | 'FR_TN' + | 'FR_VU' + | 'FR_WF' + | 'FR_YT' + | 'FUR' + | 'FUR_IT' + | 'FY' + | 'FY_NL' + | 'GA' + | 'GA_GB' + | 'GA_IE' + | 'GD' + | 'GD_GB' + | 'GL' + | 'GL_ES' + | 'GSW' + | 'GSW_CH' + | 'GSW_FR' + | 'GSW_LI' + | 'GU' + | 'GUZ' + | 'GUZ_KE' + | 'GU_IN' + | 'GV' + | 'GV_IM' + | 'HA' + | 'HAW' + | 'HAW_US' + | 'HA_GH' + | 'HA_NE' + | 'HA_NG' + | 'HE' + | 'HE_IL' + | 'HI' + | 'HI_IN' + | 'HR' + | 'HR_BA' + | 'HR_HR' + | 'HSB' + | 'HSB_DE' + | 'HU' + | 'HU_HU' + | 'HY' + | 'HY_AM' + | 'IA' + | 'ID' + | 'ID_ID' + | 'IG' + | 'IG_NG' + | 'II' + | 'II_CN' + | 'IS' + | 'IS_IS' + | 'IT' + | 'IT_CH' + | 'IT_IT' + | 'IT_SM' + | 'IT_VA' + | 'JA' + | 'JA_JP' + | 'JGO' + | 'JGO_CM' + | 'JMC' + | 'JMC_TZ' + | 'JV' + | 'JV_ID' + | 'KA' + | 'KAB' + | 'KAB_DZ' + | 'KAM' + | 'KAM_KE' + | 'KA_GE' + | 'KDE' + | 'KDE_TZ' + | 'KEA' + | 'KEA_CV' + | 'KHQ' + | 'KHQ_ML' + | 'KI' + | 'KI_KE' + | 'KK' + | 'KKJ' + | 'KKJ_CM' + | 'KK_KZ' + | 'KL' + | 'KLN' + | 'KLN_KE' + | 'KL_GL' + | 'KM' + | 'KM_KH' + | 'KN' + | 'KN_IN' + | 'KO' + | 'KOK' + | 'KOK_IN' + | 'KO_KP' + | 'KO_KR' + | 'KS' + | 'KSB' + | 'KSB_TZ' + | 'KSF' + | 'KSF_CM' + | 'KSH' + | 'KSH_DE' + | 'KS_ARAB' + | 'KS_ARAB_IN' + | 'KU' + | 'KU_TR' + | 'KW' + | 'KW_GB' + | 'KY' + | 'KY_KG' + | 'LAG' + | 'LAG_TZ' + | 'LB' + | 'LB_LU' + | 'LG' + | 'LG_UG' + | 'LKT' + | 'LKT_US' + | 'LN' + | 'LN_AO' + | 'LN_CD' + | 'LN_CF' + | 'LN_CG' + | 'LO' + | 'LO_LA' + | 'LRC' + | 'LRC_IQ' + | 'LRC_IR' + | 'LT' + | 'LT_LT' + | 'LU' + | 'LUO' + | 'LUO_KE' + | 'LUY' + | 'LUY_KE' + | 'LU_CD' + | 'LV' + | 'LV_LV' + | 'MAI' + | 'MAI_IN' + | 'MAS' + | 'MAS_KE' + | 'MAS_TZ' + | 'MER' + | 'MER_KE' + | 'MFE' + | 'MFE_MU' + | 'MG' + | 'MGH' + | 'MGH_MZ' + | 'MGO' + | 'MGO_CM' + | 'MG_MG' + | 'MI' + | 'MI_NZ' + | 'MK' + | 'MK_MK' + | 'ML' + | 'ML_IN' + | 'MN' + | 'MNI' + | 'MNI_BENG' + | 'MNI_BENG_IN' + | 'MN_MN' + | 'MR' + | 'MR_IN' + | 'MS' + | 'MS_BN' + | 'MS_ID' + | 'MS_MY' + | 'MS_SG' + | 'MT' + | 'MT_MT' + | 'MUA' + | 'MUA_CM' + | 'MY' + | 'MY_MM' + | 'MZN' + | 'MZN_IR' + | 'NAQ' + | 'NAQ_NA' + | 'NB' + | 'NB_NO' + | 'NB_SJ' + | 'ND' + | 'NDS' + | 'NDS_DE' + | 'NDS_NL' + | 'ND_ZW' + | 'NE' + | 'NE_IN' + | 'NE_NP' + | 'NL' + | 'NL_AW' + | 'NL_BE' + | 'NL_BQ' + | 'NL_CW' + | 'NL_NL' + | 'NL_SR' + | 'NL_SX' + | 'NMG' + | 'NMG_CM' + | 'NN' + | 'NNH' + | 'NNH_CM' + | 'NN_NO' + | 'NUS' + | 'NUS_SS' + | 'NYN' + | 'NYN_UG' + | 'OM' + | 'OM_ET' + | 'OM_KE' + | 'OR' + | 'OR_IN' + | 'OS' + | 'OS_GE' + | 'OS_RU' + | 'PA' + | 'PA_ARAB' + | 'PA_ARAB_PK' + | 'PA_GURU' + | 'PA_GURU_IN' + | 'PCM' + | 'PCM_NG' + | 'PL' + | 'PL_PL' + | 'PRG' + | 'PS' + | 'PS_AF' + | 'PS_PK' + | 'PT' + | 'PT_AO' + | 'PT_BR' + | 'PT_CH' + | 'PT_CV' + | 'PT_GQ' + | 'PT_GW' + | 'PT_LU' + | 'PT_MO' + | 'PT_MZ' + | 'PT_PT' + | 'PT_ST' + | 'PT_TL' + | 'QU' + | 'QU_BO' + | 'QU_EC' + | 'QU_PE' + | 'RM' + | 'RM_CH' + | 'RN' + | 'RN_BI' + | 'RO' + | 'ROF' + | 'ROF_TZ' + | 'RO_MD' + | 'RO_RO' + | 'RU' + | 'RU_BY' + | 'RU_KG' + | 'RU_KZ' + | 'RU_MD' + | 'RU_RU' + | 'RU_UA' + | 'RW' + | 'RWK' + | 'RWK_TZ' + | 'RW_RW' + | 'SAH' + | 'SAH_RU' + | 'SAQ' + | 'SAQ_KE' + | 'SAT' + | 'SAT_OLCK' + | 'SAT_OLCK_IN' + | 'SBP' + | 'SBP_TZ' + | 'SD' + | 'SD_ARAB' + | 'SD_ARAB_PK' + | 'SD_DEVA' + | 'SD_DEVA_IN' + | 'SE' + | 'SEH' + | 'SEH_MZ' + | 'SES' + | 'SES_ML' + | 'SE_FI' + | 'SE_NO' + | 'SE_SE' + | 'SG' + | 'SG_CF' + | 'SHI' + | 'SHI_LATN' + | 'SHI_LATN_MA' + | 'SHI_TFNG' + | 'SHI_TFNG_MA' + | 'SI' + | 'SI_LK' + | 'SK' + | 'SK_SK' + | 'SL' + | 'SL_SI' + | 'SMN' + | 'SMN_FI' + | 'SN' + | 'SN_ZW' + | 'SO' + | 'SO_DJ' + | 'SO_ET' + | 'SO_KE' + | 'SO_SO' + | 'SQ' + | 'SQ_AL' + | 'SQ_MK' + | 'SQ_XK' + | 'SR' + | 'SR_CYRL' + | 'SR_CYRL_BA' + | 'SR_CYRL_ME' + | 'SR_CYRL_RS' + | 'SR_CYRL_XK' + | 'SR_LATN' + | 'SR_LATN_BA' + | 'SR_LATN_ME' + | 'SR_LATN_RS' + | 'SR_LATN_XK' + | 'SU' + | 'SU_LATN' + | 'SU_LATN_ID' + | 'SV' + | 'SV_AX' + | 'SV_FI' + | 'SV_SE' + | 'SW' + | 'SW_CD' + | 'SW_KE' + | 'SW_TZ' + | 'SW_UG' + | 'TA' + | 'TA_IN' + | 'TA_LK' + | 'TA_MY' + | 'TA_SG' + | 'TE' + | 'TEO' + | 'TEO_KE' + | 'TEO_UG' + | 'TE_IN' + | 'TG' + | 'TG_TJ' + | 'TH' + | 'TH_TH' + | 'TI' + | 'TI_ER' + | 'TI_ET' + | 'TK' + | 'TK_TM' + | 'TO' + | 'TO_TO' + | 'TR' + | 'TR_CY' + | 'TR_TR' + | 'TT' + | 'TT_RU' + | 'TWQ' + | 'TWQ_NE' + | 'TZM' + | 'TZM_MA' + | 'UG' + | 'UG_CN' + | 'UK' + | 'UK_UA' + | 'UR' + | 'UR_IN' + | 'UR_PK' + | 'UZ' + | 'UZ_ARAB' + | 'UZ_ARAB_AF' + | 'UZ_CYRL' + | 'UZ_CYRL_UZ' + | 'UZ_LATN' + | 'UZ_LATN_UZ' + | 'VAI' + | 'VAI_LATN' + | 'VAI_LATN_LR' + | 'VAI_VAII' + | 'VAI_VAII_LR' + | 'VI' + | 'VI_VN' + | 'VO' + | 'VUN' + | 'VUN_TZ' + | 'WAE' + | 'WAE_CH' + | 'WO' + | 'WO_SN' + | 'XH' + | 'XH_ZA' + | 'XOG' + | 'XOG_UG' + | 'YAV' + | 'YAV_CM' + | 'YI' + | 'YO' + | 'YO_BJ' + | 'YO_NG' + | 'YUE' + | 'YUE_HANS' + | 'YUE_HANS_CN' + | 'YUE_HANT' + | 'YUE_HANT_HK' + | 'ZGH' + | 'ZGH_MA' + | 'ZH' + | 'ZH_HANS' + | 'ZH_HANS_CN' + | 'ZH_HANS_HK' + | 'ZH_HANS_MO' + | 'ZH_HANS_SG' + | 'ZH_HANT' + | 'ZH_HANT_HK' + | 'ZH_HANT_MO' + | 'ZH_HANT_TW' + | 'ZU' + | 'ZU_ZA'; export type LanguageDisplay = { /** ISO 639 representation of the language name. */ code: LanguageCodeEnum; /** Full name of the language. */ - language: Scalars["String"]["output"]; + language: Scalars['String']['output']; }; /** Store the current and allowed usage. */ @@ -9616,15 +9691,15 @@ export type LimitInfo = { export type Limits = { /** Defines the number of channels. */ - channels: Maybe; + channels: Maybe; /** Defines the number of order. */ - orders: Maybe; + orders: Maybe; /** Defines the number of product variants. */ - productVariants: Maybe; + productVariants: Maybe; /** Defines the number of staff users. */ - staffUsers: Maybe; + staffUsers: Maybe; /** Defines the number of warehouses. */ - warehouses: Maybe; + warehouses: Maybe; }; /** @@ -9638,7 +9713,7 @@ export type ListStoredPaymentMethods = Event & { /** Channel in context which was used to fetch the list of payment methods. */ channel: Channel; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ @@ -9646,21 +9721,21 @@ export type ListStoredPaymentMethods = Event & { /** The user for which the app should return a list of payment methods. */ user: User; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** The manifest definition. */ export type Manifest = { /** Description of the app displayed in the dashboard. */ - about: Maybe; + about: Maybe; /** App website rendered in the dashboard. */ - appUrl: Maybe; + appUrl: Maybe; /** * The audience that will be included in all JWT tokens for the app. * * Added in Saleor 3.8. */ - audience: Maybe; + audience: Maybe; /** * The App's author name. * @@ -9668,7 +9743,7 @@ export type Manifest = { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - author: Maybe; + author: Maybe; /** * App's brand data. * @@ -9681,22 +9756,22 @@ export type Manifest = { * URL to iframe with the configuration for the app. * @deprecated This field will be removed in Saleor 4.0. Use `appUrl` instead. */ - configurationUrl: Maybe; + configurationUrl: Maybe; /** * Description of the data privacy defined for this app. * @deprecated This field will be removed in Saleor 4.0. Use `dataPrivacyUrl` instead. */ - dataPrivacy: Maybe; + dataPrivacy: Maybe; /** URL to the full privacy policy. */ - dataPrivacyUrl: Maybe; + dataPrivacyUrl: Maybe; /** List of extensions that will be mounted in Saleor's dashboard. For details, please [see the extension section.](https://docs.saleor.io/docs/3.x/developer/extending/apps/extending-dashboard-with-apps#key-concepts) */ extensions: Array; /** External URL to the app homepage. */ - homepageUrl: Maybe; + homepageUrl: Maybe; /** The identifier of the manifest for the app. */ - identifier: Scalars["String"]["output"]; + identifier: Scalars['String']['output']; /** The name of the manifest for the app . */ - name: Scalars["String"]["output"]; + name: Scalars['String']['output']; /** The array permissions required for the app. */ permissions: Maybe>; /** @@ -9708,11 +9783,11 @@ export type Manifest = { */ requiredSaleorVersion: Maybe; /** External URL to the page where app users can find support. */ - supportUrl: Maybe; + supportUrl: Maybe; /** Endpoint used during process of app installation, [see installing an app.](https://docs.saleor.io/docs/3.x/developer/extending/apps/installing-apps#installing-an-app) */ - tokenTargetUrl: Maybe; + tokenTargetUrl: Maybe; /** The version of the manifest for the app. */ - version: Scalars["String"]["output"]; + version: Scalars['String']['output']; /** * List of the app's webhooks. * @@ -9724,9 +9799,9 @@ export type Manifest = { /** Metadata for the Margin class. */ export type Margin = { /** The starting value of the margin. */ - start: Maybe; + start: Maybe; /** The ending value of the margin. */ - stop: Maybe; + stop: Maybe; }; /** @@ -9740,44 +9815,46 @@ export type Margin = { * * */ -export type MarkAsPaidStrategyEnum = "PAYMENT_FLOW" | "TRANSACTION_FLOW"; +export type MarkAsPaidStrategyEnum = + | 'PAYMENT_FLOW' + | 'TRANSACTION_FLOW'; /** An enumeration. */ export type MeasurementUnitsEnum = - | "ACRE_FT" - | "ACRE_IN" - | "CM" - | "CUBIC_CENTIMETER" - | "CUBIC_DECIMETER" - | "CUBIC_FOOT" - | "CUBIC_INCH" - | "CUBIC_METER" - | "CUBIC_MILLIMETER" - | "CUBIC_YARD" - | "DM" - | "FL_OZ" - | "FT" - | "G" - | "INCH" - | "KG" - | "KM" - | "LB" - | "LITER" - | "M" - | "MM" - | "OZ" - | "PINT" - | "QT" - | "SQ_CM" - | "SQ_DM" - | "SQ_FT" - | "SQ_INCH" - | "SQ_KM" - | "SQ_M" - | "SQ_MM" - | "SQ_YD" - | "TONNE" - | "YD"; + | 'ACRE_FT' + | 'ACRE_IN' + | 'CM' + | 'CUBIC_CENTIMETER' + | 'CUBIC_DECIMETER' + | 'CUBIC_FOOT' + | 'CUBIC_INCH' + | 'CUBIC_METER' + | 'CUBIC_MILLIMETER' + | 'CUBIC_YARD' + | 'DM' + | 'FL_OZ' + | 'FT' + | 'G' + | 'INCH' + | 'KG' + | 'KM' + | 'LB' + | 'LITER' + | 'M' + | 'MM' + | 'OZ' + | 'PINT' + | 'QT' + | 'SQ_CM' + | 'SQ_DM' + | 'SQ_FT' + | 'SQ_INCH' + | 'SQ_KM' + | 'SQ_M' + | 'SQ_MM' + | 'SQ_YD' + | 'TONNE' + | 'YD'; export type MeasurementUnitsEnumFilterInput = { /** The value equal to. */ @@ -9788,15 +9865,15 @@ export type MeasurementUnitsEnumFilterInput = { export type MediaChoicesSortField = /** Sort media by ID. */ - "ID"; + | 'ID'; export type MediaInput = { /** Alt text for a product media. */ - alt?: InputMaybe; + alt?: InputMaybe; /** Represents an image file in a multipart request. */ - image?: InputMaybe; + image?: InputMaybe; /** Represents an URL to an external media. */ - mediaUrl?: InputMaybe; + mediaUrl?: InputMaybe; }; export type MediaSortingInput = { @@ -9807,68 +9884,71 @@ export type MediaSortingInput = { }; /** Represents a single menu - an object that is used to help navigate through the store. */ -export type Menu = Node & - ObjectWithMetadata & { - /** The ID of the menu. */ - id: Scalars["ID"]["output"]; - /** Menu items associated with this menu. */ - items: Maybe>; - /** List of public metadata items. Can be accessed without permissions. */ - metadata: Array; - /** - * A single key from public metadata. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - metafield: Maybe; - /** - * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - metafields: Maybe; - /** The name of the menu. */ - name: Scalars["String"]["output"]; - /** List of private metadata items. Requires staff permissions to access. */ - privateMetadata: Array; - /** - * A single key from private metadata. Requires staff permissions to access. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - privateMetafield: Maybe; - /** - * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - privateMetafields: Maybe; - /** Slug of the menu. */ - slug: Scalars["String"]["output"]; - }; +export type Menu = Node & ObjectWithMetadata & { + /** The ID of the menu. */ + id: Scalars['ID']['output']; + /** Menu items associated with this menu. */ + items: Maybe>; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * A single key from public metadata. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + metafield: Maybe; + /** + * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + metafields: Maybe; + /** The name of the menu. */ + name: Scalars['String']['output']; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * A single key from private metadata. Requires staff permissions to access. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + privateMetafield: Maybe; + /** + * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + privateMetafields: Maybe; + /** Slug of the menu. */ + slug: Scalars['String']['output']; +}; + /** Represents a single menu - an object that is used to help navigate through the store. */ export type MenuMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents a single menu - an object that is used to help navigate through the store. */ export type MenuMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Represents a single menu - an object that is used to help navigate through the store. */ export type MenuPrivateMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents a single menu - an object that is used to help navigate through the store. */ export type MenuPrivateMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; /** @@ -9881,7 +9961,7 @@ export type MenuPrivateMetafieldsArgs = { */ export type MenuBulkDelete = { /** Returns how many objects were affected. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ menuErrors: Array; @@ -9892,12 +9972,12 @@ export type MenuCountableConnection = { /** Pagination data for this connection. */ pageInfo: PageInfo; /** A total count of items in the collection. */ - totalCount: Maybe; + totalCount: Maybe; }; export type MenuCountableEdge = { /** A cursor for use in pagination. */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node: Menu; }; @@ -9921,9 +10001,9 @@ export type MenuCreateInput = { /** List of menu items. */ items?: InputMaybe>; /** Name of the menu. */ - name: Scalars["String"]["input"]; + name: Scalars['String']['input']; /** Slug of the menu. Will be generated if not provided. */ - slug?: InputMaybe; + slug?: InputMaybe; }; /** @@ -9933,7 +10013,7 @@ export type MenuCreateInput = { */ export type MenuCreated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The menu the event relates to. */ @@ -9941,16 +10021,17 @@ export type MenuCreated = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; + /** * Event sent when new menu is created. * * Added in Saleor 3.4. */ export type MenuCreatedMenuArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; /** @@ -9975,7 +10056,7 @@ export type MenuDelete = { */ export type MenuDeleted = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The menu the event relates to. */ @@ -9983,132 +10064,137 @@ export type MenuDeleted = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; + /** * Event sent when menu is deleted. * * Added in Saleor 3.4. */ export type MenuDeletedMenuArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; export type MenuError = { /** The error code. */ code: MenuErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type MenuErrorCode = - | "CANNOT_ASSIGN_NODE" - | "GRAPHQL_ERROR" - | "INVALID" - | "INVALID_MENU_ITEM" - | "NOT_FOUND" - | "NO_MENU_ITEM_PROVIDED" - | "REQUIRED" - | "TOO_MANY_MENU_ITEMS" - | "UNIQUE"; + | 'CANNOT_ASSIGN_NODE' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'INVALID_MENU_ITEM' + | 'NOT_FOUND' + | 'NO_MENU_ITEM_PROVIDED' + | 'REQUIRED' + | 'TOO_MANY_MENU_ITEMS' + | 'UNIQUE'; export type MenuFilterInput = { metadata?: InputMaybe>; - search?: InputMaybe; - slug?: InputMaybe>; - slugs?: InputMaybe>; + search?: InputMaybe; + slug?: InputMaybe>; + slugs?: InputMaybe>; }; export type MenuInput = { /** Name of the menu. */ - name?: InputMaybe; + name?: InputMaybe; /** Slug of the menu. */ - slug?: InputMaybe; + slug?: InputMaybe; }; /** Represents a single item of the related menu. Can store categories, collection or pages. */ -export type MenuItem = Node & - ObjectWithMetadata & { - /** Category associated with the menu item. */ - category: Maybe; - /** Represents the child items of the current menu item. */ - children: Maybe>; - /** A collection associated with this menu item. Requires one of the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. */ - collection: Maybe; - /** The ID of the menu item. */ - id: Scalars["ID"]["output"]; - /** Indicates the position of the menu item within the menu structure. */ - level: Scalars["Int"]["output"]; - /** Represents the menu to which the menu item belongs. */ - menu: Menu; - /** List of public metadata items. Can be accessed without permissions. */ - metadata: Array; - /** - * A single key from public metadata. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - metafield: Maybe; - /** - * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - metafields: Maybe; - /** The name of the menu item. */ - name: Scalars["String"]["output"]; - /** A page associated with this menu item. Requires one of the following permissions to include unpublished items: MANAGE_PAGES. */ - page: Maybe; - /** ID of parent menu item. If empty, menu will be top level menu. */ - parent: Maybe; - /** List of private metadata items. Requires staff permissions to access. */ - privateMetadata: Array; - /** - * A single key from private metadata. Requires staff permissions to access. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - privateMetafield: Maybe; - /** - * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - privateMetafields: Maybe; - /** Returns translated menu item fields for the given language code. */ - translation: Maybe; - /** URL to the menu item. */ - url: Maybe; - }; +export type MenuItem = Node & ObjectWithMetadata & { + /** Category associated with the menu item. */ + category: Maybe; + /** Represents the child items of the current menu item. */ + children: Maybe>; + /** A collection associated with this menu item. Requires one of the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. */ + collection: Maybe; + /** The ID of the menu item. */ + id: Scalars['ID']['output']; + /** Indicates the position of the menu item within the menu structure. */ + level: Scalars['Int']['output']; + /** Represents the menu to which the menu item belongs. */ + menu: Menu; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * A single key from public metadata. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + metafield: Maybe; + /** + * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + metafields: Maybe; + /** The name of the menu item. */ + name: Scalars['String']['output']; + /** A page associated with this menu item. Requires one of the following permissions to include unpublished items: MANAGE_PAGES. */ + page: Maybe; + /** ID of parent menu item. If empty, menu will be top level menu. */ + parent: Maybe; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * A single key from private metadata. Requires staff permissions to access. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + privateMetafield: Maybe; + /** + * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + privateMetafields: Maybe; + /** Returns translated menu item fields for the given language code. */ + translation: Maybe; + /** URL to the menu item. */ + url: Maybe; +}; + /** Represents a single item of the related menu. Can store categories, collection or pages. */ export type MenuItemMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents a single item of the related menu. Can store categories, collection or pages. */ export type MenuItemMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Represents a single item of the related menu. Can store categories, collection or pages. */ export type MenuItemPrivateMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents a single item of the related menu. Can store categories, collection or pages. */ export type MenuItemPrivateMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Represents a single item of the related menu. Can store categories, collection or pages. */ export type MenuItemTranslationArgs = { languageCode: LanguageCodeEnum; @@ -10124,7 +10210,7 @@ export type MenuItemTranslationArgs = { */ export type MenuItemBulkDelete = { /** Returns how many objects were affected. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ menuErrors: Array; @@ -10135,12 +10221,12 @@ export type MenuItemCountableConnection = { /** Pagination data for this connection. */ pageInfo: PageInfo; /** A total count of items in the collection. */ - totalCount: Maybe; + totalCount: Maybe; }; export type MenuItemCountableEdge = { /** A cursor for use in pagination. */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node: MenuItem; }; @@ -10162,19 +10248,19 @@ export type MenuItemCreate = { export type MenuItemCreateInput = { /** Category to which item points. */ - category?: InputMaybe; + category?: InputMaybe; /** Collection to which item points. */ - collection?: InputMaybe; + collection?: InputMaybe; /** Menu to which item belongs. */ - menu: Scalars["ID"]["input"]; + menu: Scalars['ID']['input']; /** Name of the menu item. */ - name: Scalars["String"]["input"]; + name: Scalars['String']['input']; /** Page to which item points. */ - page?: InputMaybe; + page?: InputMaybe; /** ID of the parent menu. If empty, menu will be top level menu. */ - parent?: InputMaybe; + parent?: InputMaybe; /** URL of the pointed item. */ - url?: InputMaybe; + url?: InputMaybe; }; /** @@ -10184,7 +10270,7 @@ export type MenuItemCreateInput = { */ export type MenuItemCreated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The menu item the event relates to. */ @@ -10192,16 +10278,17 @@ export type MenuItemCreated = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; + /** * Event sent when new menu item is created. * * Added in Saleor 3.4. */ export type MenuItemCreatedMenuItemArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; /** @@ -10226,7 +10313,7 @@ export type MenuItemDelete = { */ export type MenuItemDeleted = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The menu item the event relates to. */ @@ -10234,34 +10321,35 @@ export type MenuItemDeleted = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; + /** * Event sent when menu item is deleted. * * Added in Saleor 3.4. */ export type MenuItemDeletedMenuItemArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; export type MenuItemFilterInput = { metadata?: InputMaybe>; - search?: InputMaybe; + search?: InputMaybe; }; export type MenuItemInput = { /** Category to which item points. */ - category?: InputMaybe; + category?: InputMaybe; /** Collection to which item points. */ - collection?: InputMaybe; + collection?: InputMaybe; /** Name of the menu item. */ - name?: InputMaybe; + name?: InputMaybe; /** Page to which item points. */ - page?: InputMaybe; + page?: InputMaybe; /** URL of the pointed item. */ - url?: InputMaybe; + url?: InputMaybe; }; /** @@ -10282,11 +10370,11 @@ export type MenuItemMove = { export type MenuItemMoveInput = { /** The menu item ID to move. */ - itemId: Scalars["ID"]["input"]; + itemId: Scalars['ID']['input']; /** ID of the parent menu. If empty, menu will be top level menu. */ - parentId?: InputMaybe; + parentId?: InputMaybe; /** The new relative sorting position of the item (from -inf to +inf). 1 moves the item one position forward, -1 moves the item one position backward, 0 leaves the item unchanged. */ - sortOrder?: InputMaybe; + sortOrder?: InputMaybe; }; export type MenuItemSortingInput = { @@ -10299,7 +10387,7 @@ export type MenuItemSortingInput = { /** Represents menu item's original translatable fields and related translations. */ export type MenuItemTranslatableContent = Node & { /** The ID of the menu item translatable content. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** * Represents a single item of the related menu. Can store categories, collection or pages. * @deprecated This field will be removed in Saleor 4.0. Get model fields from the root level queries. @@ -10310,13 +10398,14 @@ export type MenuItemTranslatableContent = Node & { * * Added in Saleor 3.14. */ - menuItemId: Scalars["ID"]["output"]; + menuItemId: Scalars['ID']['output']; /** Name of the menu item to translate. */ - name: Scalars["String"]["output"]; + name: Scalars['String']['output']; /** Returns translated menu item fields for the given language code. */ translation: Maybe; }; + /** Represents menu item's original translatable fields and related translations. */ export type MenuItemTranslatableContentTranslationArgs = { languageCode: LanguageCodeEnum; @@ -10337,11 +10426,11 @@ export type MenuItemTranslate = { /** Represents menu item translations. */ export type MenuItemTranslation = Node & { /** The ID of the menu item translation. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Translation language. */ language: LanguageDisplay; /** Translated menu item name. */ - name: Scalars["String"]["output"]; + name: Scalars['String']['output']; /** * Represents the menu item fields to translate. * @@ -10372,7 +10461,7 @@ export type MenuItemUpdate = { */ export type MenuItemUpdated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The menu item the event relates to. */ @@ -10380,27 +10469,28 @@ export type MenuItemUpdated = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; + /** * Event sent when menu item is updated. * * Added in Saleor 3.4. */ export type MenuItemUpdatedMenuItemArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; export type MenuItemsSortField = /** Sort menu items by name. */ - "NAME"; + | 'NAME'; export type MenuSortField = /** Sort menus by items count. */ - | "ITEMS_COUNT" + | 'ITEMS_COUNT' /** Sort menus by name. */ - | "NAME"; + | 'NAME'; export type MenuSortingInput = { /** Specifies the direction in which to sort menus. */ @@ -10431,7 +10521,7 @@ export type MenuUpdate = { */ export type MenuUpdated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The menu the event relates to. */ @@ -10439,69 +10529,70 @@ export type MenuUpdated = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; + /** * Event sent when menu is updated. * * Added in Saleor 3.4. */ export type MenuUpdatedMenuArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; export type MetadataError = { /** The error code. */ code: MetadataErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type MetadataErrorCode = - | "GRAPHQL_ERROR" - | "INVALID" - | "NOT_FOUND" - | "NOT_UPDATED" - | "REQUIRED"; + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'NOT_UPDATED' + | 'REQUIRED'; export type MetadataFilter = { /** Key of a metadata item. */ - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; /** Value of a metadata item. */ - value?: InputMaybe; + value?: InputMaybe; }; export type MetadataInput = { /** Key of a metadata item. */ - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; /** Value of a metadata item. */ - value: Scalars["String"]["input"]; + value: Scalars['String']['input']; }; export type MetadataItem = { /** Key of a metadata item. */ - key: Scalars["String"]["output"]; + key: Scalars['String']['output']; /** Value of a metadata item. */ - value: Scalars["String"]["output"]; + value: Scalars['String']['output']; }; /** Represents amount of money in specific currency. */ export type Money = { /** Amount of money. */ - amount: Scalars["Float"]["output"]; + amount: Scalars['Float']['output']; /** Currency code. */ - currency: Scalars["String"]["output"]; + currency: Scalars['String']['output']; }; export type MoneyInput = { /** Amount of money. */ - amount: Scalars["PositiveDecimal"]["input"]; + amount: Scalars['PositiveDecimal']['input']; /** Currency code. */ - currency: Scalars["String"]["input"]; + currency: Scalars['String']['input']; }; /** Represents a range of amounts of money. */ @@ -10514,9 +10605,9 @@ export type MoneyRange = { export type MoveProductInput = { /** The ID of the product to move. */ - productId: Scalars["ID"]["input"]; + productId: Scalars['ID']['input']; /** The relative sorting position of the product (from -inf to +inf) starting from the first given product's actual position.1 moves the item one position forward, -1 moves the item one position backward, 0 leaves the item unchanged. */ - sortOrder?: InputMaybe; + sortOrder?: InputMaybe; }; export type Mutation = { @@ -13026,1610 +13117,1931 @@ export type Mutation = { webhookUpdate: Maybe; }; + export type MutationAccountAddressCreateArgs = { - customerId?: InputMaybe; + customerId?: InputMaybe; input: AddressInput; type?: InputMaybe; }; + export type MutationAccountAddressDeleteArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationAccountAddressUpdateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: AddressInput; }; + export type MutationAccountDeleteArgs = { - token: Scalars["String"]["input"]; + token: Scalars['String']['input']; }; + export type MutationAccountRegisterArgs = { input: AccountRegisterInput; }; + export type MutationAccountRequestDeletionArgs = { - channel?: InputMaybe; - redirectUrl: Scalars["String"]["input"]; + channel?: InputMaybe; + redirectUrl: Scalars['String']['input']; }; + export type MutationAccountSetDefaultAddressArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; type: AddressTypeEnum; }; + export type MutationAccountUpdateArgs = { - customerId?: InputMaybe; + customerId?: InputMaybe; input: AccountInput; }; + export type MutationAddressCreateArgs = { input: AddressInput; - userId: Scalars["ID"]["input"]; + userId: Scalars['ID']['input']; }; + export type MutationAddressDeleteArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationAddressSetDefaultArgs = { - addressId: Scalars["ID"]["input"]; + addressId: Scalars['ID']['input']; type: AddressTypeEnum; - userId: Scalars["ID"]["input"]; + userId: Scalars['ID']['input']; }; + export type MutationAddressUpdateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: AddressInput; }; + export type MutationAppActivateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationAppCreateArgs = { input: AppInput; }; + export type MutationAppDeactivateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationAppDeleteArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationAppDeleteFailedInstallationArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationAppFetchManifestArgs = { - manifestUrl: Scalars["String"]["input"]; + manifestUrl: Scalars['String']['input']; }; + export type MutationAppInstallArgs = { input: AppInstallInput; }; + export type MutationAppRetryInstallArgs = { - activateAfterInstallation?: InputMaybe; - id: Scalars["ID"]["input"]; + activateAfterInstallation?: InputMaybe; + id: Scalars['ID']['input']; }; + export type MutationAppTokenCreateArgs = { input: AppTokenInput; }; + export type MutationAppTokenDeleteArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationAppTokenVerifyArgs = { - token: Scalars["String"]["input"]; + token: Scalars['String']['input']; }; + export type MutationAppUpdateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: AppInput; }; + export type MutationAssignNavigationArgs = { - menu?: InputMaybe; + menu?: InputMaybe; navigationType: NavigationType; }; + export type MutationAssignWarehouseShippingZoneArgs = { - id: Scalars["ID"]["input"]; - shippingZoneIds: Array; + id: Scalars['ID']['input']; + shippingZoneIds: Array; }; + export type MutationAttributeBulkCreateArgs = { attributes: Array; errorPolicy?: InputMaybe; }; + export type MutationAttributeBulkDeleteArgs = { - ids: Array; + ids: Array; }; + export type MutationAttributeBulkTranslateArgs = { errorPolicy?: InputMaybe; translations: Array; }; + export type MutationAttributeBulkUpdateArgs = { attributes: Array; errorPolicy?: InputMaybe; }; + export type MutationAttributeCreateArgs = { input: AttributeCreateInput; }; + export type MutationAttributeDeleteArgs = { - externalReference?: InputMaybe; - id?: InputMaybe; + externalReference?: InputMaybe; + id?: InputMaybe; }; + export type MutationAttributeReorderValuesArgs = { - attributeId: Scalars["ID"]["input"]; + attributeId: Scalars['ID']['input']; moves: Array; }; + export type MutationAttributeTranslateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: NameTranslationInput; languageCode: LanguageCodeEnum; }; + export type MutationAttributeUpdateArgs = { - externalReference?: InputMaybe; - id?: InputMaybe; + externalReference?: InputMaybe; + id?: InputMaybe; input: AttributeUpdateInput; }; + export type MutationAttributeValueBulkDeleteArgs = { - ids: Array; + ids: Array; }; + export type MutationAttributeValueBulkTranslateArgs = { errorPolicy?: InputMaybe; translations: Array; }; + export type MutationAttributeValueCreateArgs = { - attribute: Scalars["ID"]["input"]; + attribute: Scalars['ID']['input']; input: AttributeValueCreateInput; }; + export type MutationAttributeValueDeleteArgs = { - externalReference?: InputMaybe; - id?: InputMaybe; + externalReference?: InputMaybe; + id?: InputMaybe; }; + export type MutationAttributeValueTranslateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: AttributeValueTranslationInput; languageCode: LanguageCodeEnum; }; + export type MutationAttributeValueUpdateArgs = { - externalReference?: InputMaybe; - id?: InputMaybe; + externalReference?: InputMaybe; + id?: InputMaybe; input: AttributeValueUpdateInput; }; + export type MutationCategoryBulkDeleteArgs = { - ids: Array; + ids: Array; }; + export type MutationCategoryCreateArgs = { input: CategoryInput; - parent?: InputMaybe; + parent?: InputMaybe; }; + export type MutationCategoryDeleteArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationCategoryTranslateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: TranslationInput; languageCode: LanguageCodeEnum; }; + export type MutationCategoryUpdateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: CategoryInput; }; + export type MutationChannelActivateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationChannelCreateArgs = { input: ChannelCreateInput; }; + export type MutationChannelDeactivateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationChannelDeleteArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input?: InputMaybe; }; + export type MutationChannelReorderWarehousesArgs = { - channelId: Scalars["ID"]["input"]; + channelId: Scalars['ID']['input']; moves: Array; }; + export type MutationChannelUpdateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: ChannelUpdateInput; }; + export type MutationCheckoutAddPromoCodeArgs = { - checkoutId?: InputMaybe; - id?: InputMaybe; - promoCode: Scalars["String"]["input"]; - token?: InputMaybe; + checkoutId?: InputMaybe; + id?: InputMaybe; + promoCode: Scalars['String']['input']; + token?: InputMaybe; }; + export type MutationCheckoutBillingAddressUpdateArgs = { billingAddress: AddressInput; - checkoutId?: InputMaybe; - id?: InputMaybe; - token?: InputMaybe; + checkoutId?: InputMaybe; + id?: InputMaybe; + token?: InputMaybe; validationRules?: InputMaybe; }; + export type MutationCheckoutCompleteArgs = { - checkoutId?: InputMaybe; - id?: InputMaybe; + checkoutId?: InputMaybe; + id?: InputMaybe; metadata?: InputMaybe>; - paymentData?: InputMaybe; - redirectUrl?: InputMaybe; - storeSource?: InputMaybe; - token?: InputMaybe; + paymentData?: InputMaybe; + redirectUrl?: InputMaybe; + storeSource?: InputMaybe; + token?: InputMaybe; }; + export type MutationCheckoutCreateArgs = { input: CheckoutCreateInput; }; + export type MutationCheckoutCreateFromOrderArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationCheckoutCustomerAttachArgs = { - checkoutId?: InputMaybe; - customerId?: InputMaybe; - id?: InputMaybe; - token?: InputMaybe; + checkoutId?: InputMaybe; + customerId?: InputMaybe; + id?: InputMaybe; + token?: InputMaybe; }; + export type MutationCheckoutCustomerDetachArgs = { - checkoutId?: InputMaybe; - id?: InputMaybe; - token?: InputMaybe; + checkoutId?: InputMaybe; + id?: InputMaybe; + token?: InputMaybe; }; + export type MutationCheckoutDeliveryMethodUpdateArgs = { - deliveryMethodId?: InputMaybe; - id?: InputMaybe; - token?: InputMaybe; + deliveryMethodId?: InputMaybe; + id?: InputMaybe; + token?: InputMaybe; }; + export type MutationCheckoutEmailUpdateArgs = { - checkoutId?: InputMaybe; - email: Scalars["String"]["input"]; - id?: InputMaybe; - token?: InputMaybe; + checkoutId?: InputMaybe; + email: Scalars['String']['input']; + id?: InputMaybe; + token?: InputMaybe; }; + export type MutationCheckoutLanguageCodeUpdateArgs = { - checkoutId?: InputMaybe; - id?: InputMaybe; + checkoutId?: InputMaybe; + id?: InputMaybe; languageCode: LanguageCodeEnum; - token?: InputMaybe; + token?: InputMaybe; }; + export type MutationCheckoutLineDeleteArgs = { - checkoutId?: InputMaybe; - id?: InputMaybe; - lineId?: InputMaybe; - token?: InputMaybe; + checkoutId?: InputMaybe; + id?: InputMaybe; + lineId?: InputMaybe; + token?: InputMaybe; }; + export type MutationCheckoutLinesAddArgs = { - checkoutId?: InputMaybe; - id?: InputMaybe; + checkoutId?: InputMaybe; + id?: InputMaybe; lines: Array; - token?: InputMaybe; + token?: InputMaybe; }; + export type MutationCheckoutLinesDeleteArgs = { - id?: InputMaybe; - linesIds: Array; - token?: InputMaybe; + id?: InputMaybe; + linesIds: Array; + token?: InputMaybe; }; + export type MutationCheckoutLinesUpdateArgs = { - checkoutId?: InputMaybe; - id?: InputMaybe; + checkoutId?: InputMaybe; + id?: InputMaybe; lines: Array; - token?: InputMaybe; + token?: InputMaybe; }; + export type MutationCheckoutPaymentCreateArgs = { - checkoutId?: InputMaybe; - id?: InputMaybe; + checkoutId?: InputMaybe; + id?: InputMaybe; input: PaymentInput; - token?: InputMaybe; + token?: InputMaybe; }; + export type MutationCheckoutRemovePromoCodeArgs = { - checkoutId?: InputMaybe; - id?: InputMaybe; - promoCode?: InputMaybe; - promoCodeId?: InputMaybe; - token?: InputMaybe; + checkoutId?: InputMaybe; + id?: InputMaybe; + promoCode?: InputMaybe; + promoCodeId?: InputMaybe; + token?: InputMaybe; }; + export type MutationCheckoutShippingAddressUpdateArgs = { - checkoutId?: InputMaybe; - id?: InputMaybe; + checkoutId?: InputMaybe; + id?: InputMaybe; shippingAddress: AddressInput; - token?: InputMaybe; + token?: InputMaybe; validationRules?: InputMaybe; }; + export type MutationCheckoutShippingMethodUpdateArgs = { - checkoutId?: InputMaybe; - id?: InputMaybe; - shippingMethodId?: InputMaybe; - token?: InputMaybe; + checkoutId?: InputMaybe; + id?: InputMaybe; + shippingMethodId?: InputMaybe; + token?: InputMaybe; }; + export type MutationCollectionAddProductsArgs = { - collectionId: Scalars["ID"]["input"]; - products: Array; + collectionId: Scalars['ID']['input']; + products: Array; }; + export type MutationCollectionBulkDeleteArgs = { - ids: Array; + ids: Array; }; + export type MutationCollectionChannelListingUpdateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: CollectionChannelListingUpdateInput; }; + export type MutationCollectionCreateArgs = { input: CollectionCreateInput; }; + export type MutationCollectionDeleteArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationCollectionRemoveProductsArgs = { - collectionId: Scalars["ID"]["input"]; - products: Array; + collectionId: Scalars['ID']['input']; + products: Array; }; + export type MutationCollectionReorderProductsArgs = { - collectionId: Scalars["ID"]["input"]; + collectionId: Scalars['ID']['input']; moves: Array; }; + export type MutationCollectionTranslateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: TranslationInput; languageCode: LanguageCodeEnum; }; + export type MutationCollectionUpdateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: CollectionInput; }; + export type MutationConfirmAccountArgs = { - email: Scalars["String"]["input"]; - token: Scalars["String"]["input"]; + email: Scalars['String']['input']; + token: Scalars['String']['input']; }; + export type MutationConfirmEmailChangeArgs = { - channel?: InputMaybe; - token: Scalars["String"]["input"]; + channel?: InputMaybe; + token: Scalars['String']['input']; }; + export type MutationCreateWarehouseArgs = { input: WarehouseCreateInput; }; + export type MutationCustomerBulkDeleteArgs = { - ids: Array; + ids: Array; }; + export type MutationCustomerBulkUpdateArgs = { customers: Array; errorPolicy?: InputMaybe; }; + export type MutationCustomerCreateArgs = { input: UserCreateInput; }; + export type MutationCustomerDeleteArgs = { - externalReference?: InputMaybe; - id?: InputMaybe; + externalReference?: InputMaybe; + id?: InputMaybe; }; + export type MutationCustomerUpdateArgs = { - externalReference?: InputMaybe; - id?: InputMaybe; + externalReference?: InputMaybe; + id?: InputMaybe; input: CustomerInput; }; + export type MutationDeleteMetadataArgs = { - id: Scalars["ID"]["input"]; - keys: Array; + id: Scalars['ID']['input']; + keys: Array; }; + export type MutationDeletePrivateMetadataArgs = { - id: Scalars["ID"]["input"]; - keys: Array; + id: Scalars['ID']['input']; + keys: Array; }; + export type MutationDeleteWarehouseArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationDigitalContentCreateArgs = { input: DigitalContentUploadInput; - variantId: Scalars["ID"]["input"]; + variantId: Scalars['ID']['input']; }; + export type MutationDigitalContentDeleteArgs = { - variantId: Scalars["ID"]["input"]; + variantId: Scalars['ID']['input']; }; + export type MutationDigitalContentUpdateArgs = { input: DigitalContentInput; - variantId: Scalars["ID"]["input"]; + variantId: Scalars['ID']['input']; }; + export type MutationDigitalContentUrlCreateArgs = { input: DigitalContentUrlCreateInput; }; + export type MutationDraftOrderBulkDeleteArgs = { - ids: Array; + ids: Array; }; + export type MutationDraftOrderCompleteArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationDraftOrderCreateArgs = { input: DraftOrderCreateInput; }; + export type MutationDraftOrderDeleteArgs = { - externalReference?: InputMaybe; - id?: InputMaybe; + externalReference?: InputMaybe; + id?: InputMaybe; }; + export type MutationDraftOrderLinesBulkDeleteArgs = { - ids: Array; + ids: Array; }; + export type MutationDraftOrderUpdateArgs = { - externalReference?: InputMaybe; - id?: InputMaybe; + externalReference?: InputMaybe; + id?: InputMaybe; input: DraftOrderInput; }; + export type MutationEventDeliveryRetryArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationExportGiftCardsArgs = { input: ExportGiftCardsInput; }; + export type MutationExportProductsArgs = { input: ExportProductsInput; }; + export type MutationExportVoucherCodesArgs = { input: ExportVoucherCodesInput; }; + export type MutationExternalAuthenticationUrlArgs = { - input: Scalars["JSONString"]["input"]; - pluginId: Scalars["String"]["input"]; + input: Scalars['JSONString']['input']; + pluginId: Scalars['String']['input']; }; + export type MutationExternalLogoutArgs = { - input: Scalars["JSONString"]["input"]; - pluginId: Scalars["String"]["input"]; + input: Scalars['JSONString']['input']; + pluginId: Scalars['String']['input']; }; + export type MutationExternalNotificationTriggerArgs = { - channel: Scalars["String"]["input"]; + channel: Scalars['String']['input']; input: ExternalNotificationTriggerInput; - pluginId?: InputMaybe; + pluginId?: InputMaybe; }; + export type MutationExternalObtainAccessTokensArgs = { - input: Scalars["JSONString"]["input"]; - pluginId: Scalars["String"]["input"]; + input: Scalars['JSONString']['input']; + pluginId: Scalars['String']['input']; }; + export type MutationExternalRefreshArgs = { - input: Scalars["JSONString"]["input"]; - pluginId: Scalars["String"]["input"]; + input: Scalars['JSONString']['input']; + pluginId: Scalars['String']['input']; }; + export type MutationExternalVerifyArgs = { - input: Scalars["JSONString"]["input"]; - pluginId: Scalars["String"]["input"]; + input: Scalars['JSONString']['input']; + pluginId: Scalars['String']['input']; }; + export type MutationFileUploadArgs = { - file: Scalars["Upload"]["input"]; + file: Scalars['Upload']['input']; }; + export type MutationGiftCardActivateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationGiftCardAddNoteArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: GiftCardAddNoteInput; }; + export type MutationGiftCardBulkActivateArgs = { - ids: Array; + ids: Array; }; + export type MutationGiftCardBulkCreateArgs = { input: GiftCardBulkCreateInput; }; + export type MutationGiftCardBulkDeactivateArgs = { - ids: Array; + ids: Array; }; + export type MutationGiftCardBulkDeleteArgs = { - ids: Array; + ids: Array; }; + export type MutationGiftCardCreateArgs = { input: GiftCardCreateInput; }; + export type MutationGiftCardDeactivateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationGiftCardDeleteArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationGiftCardResendArgs = { input: GiftCardResendInput; }; + export type MutationGiftCardSettingsUpdateArgs = { input: GiftCardSettingsUpdateInput; }; + export type MutationGiftCardUpdateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: GiftCardUpdateInput; }; + export type MutationInvoiceCreateArgs = { input: InvoiceCreateInput; - orderId: Scalars["ID"]["input"]; + orderId: Scalars['ID']['input']; }; + export type MutationInvoiceDeleteArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationInvoiceRequestArgs = { - number?: InputMaybe; - orderId: Scalars["ID"]["input"]; + number?: InputMaybe; + orderId: Scalars['ID']['input']; }; + export type MutationInvoiceRequestDeleteArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationInvoiceSendNotificationArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationInvoiceUpdateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: UpdateInvoiceInput; }; + export type MutationMenuBulkDeleteArgs = { - ids: Array; + ids: Array; }; + export type MutationMenuCreateArgs = { input: MenuCreateInput; }; + export type MutationMenuDeleteArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationMenuItemBulkDeleteArgs = { - ids: Array; + ids: Array; }; + export type MutationMenuItemCreateArgs = { input: MenuItemCreateInput; }; + export type MutationMenuItemDeleteArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationMenuItemMoveArgs = { - menu: Scalars["ID"]["input"]; + menu: Scalars['ID']['input']; moves: Array; }; + export type MutationMenuItemTranslateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: NameTranslationInput; languageCode: LanguageCodeEnum; }; + export type MutationMenuItemUpdateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: MenuItemInput; }; + export type MutationMenuUpdateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: MenuInput; }; + export type MutationOrderAddNoteArgs = { input: OrderAddNoteInput; - order: Scalars["ID"]["input"]; + order: Scalars['ID']['input']; }; + export type MutationOrderBulkCancelArgs = { - ids: Array; + ids: Array; }; + export type MutationOrderBulkCreateArgs = { errorPolicy?: InputMaybe; orders: Array; stockUpdatePolicy?: InputMaybe; }; + export type MutationOrderCancelArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationOrderCaptureArgs = { - amount: Scalars["PositiveDecimal"]["input"]; - id: Scalars["ID"]["input"]; + amount: Scalars['PositiveDecimal']['input']; + id: Scalars['ID']['input']; }; + export type MutationOrderConfirmArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationOrderCreateFromCheckoutArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; metadata?: InputMaybe>; privateMetadata?: InputMaybe>; - removeCheckout?: InputMaybe; + removeCheckout?: InputMaybe; }; + export type MutationOrderDiscountAddArgs = { input: OrderDiscountCommonInput; - orderId: Scalars["ID"]["input"]; + orderId: Scalars['ID']['input']; }; + export type MutationOrderDiscountDeleteArgs = { - discountId: Scalars["ID"]["input"]; + discountId: Scalars['ID']['input']; }; + export type MutationOrderDiscountUpdateArgs = { - discountId: Scalars["ID"]["input"]; + discountId: Scalars['ID']['input']; input: OrderDiscountCommonInput; }; + export type MutationOrderFulfillArgs = { input: OrderFulfillInput; - order?: InputMaybe; + order?: InputMaybe; }; + export type MutationOrderFulfillmentApproveArgs = { - allowStockToBeExceeded?: InputMaybe; - id: Scalars["ID"]["input"]; - notifyCustomer: Scalars["Boolean"]["input"]; + allowStockToBeExceeded?: InputMaybe; + id: Scalars['ID']['input']; + notifyCustomer: Scalars['Boolean']['input']; }; + export type MutationOrderFulfillmentCancelArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input?: InputMaybe; }; + export type MutationOrderFulfillmentRefundProductsArgs = { input: OrderRefundProductsInput; - order: Scalars["ID"]["input"]; + order: Scalars['ID']['input']; }; + export type MutationOrderFulfillmentReturnProductsArgs = { input: OrderReturnProductsInput; - order: Scalars["ID"]["input"]; + order: Scalars['ID']['input']; }; + export type MutationOrderFulfillmentUpdateTrackingArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: FulfillmentUpdateTrackingInput; }; + export type MutationOrderGrantRefundCreateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: OrderGrantRefundCreateInput; }; + export type MutationOrderGrantRefundUpdateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: OrderGrantRefundUpdateInput; }; + export type MutationOrderLineDeleteArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationOrderLineDiscountRemoveArgs = { - orderLineId: Scalars["ID"]["input"]; + orderLineId: Scalars['ID']['input']; }; + export type MutationOrderLineDiscountUpdateArgs = { input: OrderDiscountCommonInput; - orderLineId: Scalars["ID"]["input"]; + orderLineId: Scalars['ID']['input']; }; + export type MutationOrderLineUpdateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: OrderLineInput; }; + export type MutationOrderLinesCreateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: Array; }; + export type MutationOrderMarkAsPaidArgs = { - id: Scalars["ID"]["input"]; - transactionReference?: InputMaybe; + id: Scalars['ID']['input']; + transactionReference?: InputMaybe; }; + export type MutationOrderNoteAddArgs = { input: OrderNoteInput; - order: Scalars["ID"]["input"]; + order: Scalars['ID']['input']; }; + export type MutationOrderNoteUpdateArgs = { input: OrderNoteInput; - note: Scalars["ID"]["input"]; + note: Scalars['ID']['input']; }; + export type MutationOrderRefundArgs = { - amount: Scalars["PositiveDecimal"]["input"]; - id: Scalars["ID"]["input"]; + amount: Scalars['PositiveDecimal']['input']; + id: Scalars['ID']['input']; }; + export type MutationOrderSettingsUpdateArgs = { input: OrderSettingsUpdateInput; }; + export type MutationOrderUpdateArgs = { - externalReference?: InputMaybe; - id?: InputMaybe; + externalReference?: InputMaybe; + id?: InputMaybe; input: OrderUpdateInput; }; + export type MutationOrderUpdateShippingArgs = { input: OrderUpdateShippingInput; - order: Scalars["ID"]["input"]; + order: Scalars['ID']['input']; }; + export type MutationOrderVoidArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationPageAttributeAssignArgs = { - attributeIds: Array; - pageTypeId: Scalars["ID"]["input"]; + attributeIds: Array; + pageTypeId: Scalars['ID']['input']; }; + export type MutationPageAttributeUnassignArgs = { - attributeIds: Array; - pageTypeId: Scalars["ID"]["input"]; + attributeIds: Array; + pageTypeId: Scalars['ID']['input']; }; + export type MutationPageBulkDeleteArgs = { - ids: Array; + ids: Array; }; + export type MutationPageBulkPublishArgs = { - ids: Array; - isPublished: Scalars["Boolean"]["input"]; + ids: Array; + isPublished: Scalars['Boolean']['input']; }; + export type MutationPageCreateArgs = { input: PageCreateInput; }; + export type MutationPageDeleteArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationPageReorderAttributeValuesArgs = { - attributeId: Scalars["ID"]["input"]; + attributeId: Scalars['ID']['input']; moves: Array; - pageId: Scalars["ID"]["input"]; + pageId: Scalars['ID']['input']; }; + export type MutationPageTranslateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: PageTranslationInput; languageCode: LanguageCodeEnum; }; + export type MutationPageTypeBulkDeleteArgs = { - ids: Array; + ids: Array; }; + export type MutationPageTypeCreateArgs = { input: PageTypeCreateInput; }; + export type MutationPageTypeDeleteArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationPageTypeReorderAttributesArgs = { moves: Array; - pageTypeId: Scalars["ID"]["input"]; + pageTypeId: Scalars['ID']['input']; }; + export type MutationPageTypeUpdateArgs = { - id?: InputMaybe; + id?: InputMaybe; input: PageTypeUpdateInput; }; + export type MutationPageUpdateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: PageInput; }; + export type MutationPasswordChangeArgs = { - newPassword: Scalars["String"]["input"]; - oldPassword?: InputMaybe; + newPassword: Scalars['String']['input']; + oldPassword?: InputMaybe; }; + export type MutationPaymentCaptureArgs = { - amount?: InputMaybe; - paymentId: Scalars["ID"]["input"]; + amount?: InputMaybe; + paymentId: Scalars['ID']['input']; }; + export type MutationPaymentCheckBalanceArgs = { input: PaymentCheckBalanceInput; }; + export type MutationPaymentGatewayInitializeArgs = { - amount?: InputMaybe; - id: Scalars["ID"]["input"]; + amount?: InputMaybe; + id: Scalars['ID']['input']; paymentGateways?: InputMaybe>; }; + export type MutationPaymentGatewayInitializeTokenizationArgs = { - channel: Scalars["String"]["input"]; - data?: InputMaybe; - id: Scalars["String"]["input"]; + channel: Scalars['String']['input']; + data?: InputMaybe; + id: Scalars['String']['input']; }; + export type MutationPaymentInitializeArgs = { - channel?: InputMaybe; - gateway: Scalars["String"]["input"]; - paymentData?: InputMaybe; + channel?: InputMaybe; + gateway: Scalars['String']['input']; + paymentData?: InputMaybe; }; + export type MutationPaymentMethodInitializeTokenizationArgs = { - channel: Scalars["String"]["input"]; - data?: InputMaybe; - id: Scalars["String"]["input"]; + channel: Scalars['String']['input']; + data?: InputMaybe; + id: Scalars['String']['input']; paymentFlowToSupport: TokenizedPaymentFlowEnum; }; + export type MutationPaymentMethodProcessTokenizationArgs = { - channel: Scalars["String"]["input"]; - data?: InputMaybe; - id: Scalars["String"]["input"]; + channel: Scalars['String']['input']; + data?: InputMaybe; + id: Scalars['String']['input']; }; + export type MutationPaymentRefundArgs = { - amount?: InputMaybe; - paymentId: Scalars["ID"]["input"]; + amount?: InputMaybe; + paymentId: Scalars['ID']['input']; }; + export type MutationPaymentVoidArgs = { - paymentId: Scalars["ID"]["input"]; + paymentId: Scalars['ID']['input']; }; + export type MutationPermissionGroupCreateArgs = { input: PermissionGroupCreateInput; }; + export type MutationPermissionGroupDeleteArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationPermissionGroupUpdateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: PermissionGroupUpdateInput; }; + export type MutationPluginUpdateArgs = { - channelId?: InputMaybe; - id: Scalars["ID"]["input"]; + channelId?: InputMaybe; + id: Scalars['ID']['input']; input: PluginUpdateInput; }; + export type MutationProductAttributeAssignArgs = { operations: Array; - productTypeId: Scalars["ID"]["input"]; + productTypeId: Scalars['ID']['input']; }; + export type MutationProductAttributeAssignmentUpdateArgs = { operations: Array; - productTypeId: Scalars["ID"]["input"]; + productTypeId: Scalars['ID']['input']; }; + export type MutationProductAttributeUnassignArgs = { - attributeIds: Array; - productTypeId: Scalars["ID"]["input"]; + attributeIds: Array; + productTypeId: Scalars['ID']['input']; }; + export type MutationProductBulkCreateArgs = { errorPolicy?: InputMaybe; products: Array; }; + export type MutationProductBulkDeleteArgs = { - ids: Array; + ids: Array; }; + export type MutationProductBulkTranslateArgs = { errorPolicy?: InputMaybe; translations: Array; }; + export type MutationProductChannelListingUpdateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: ProductChannelListingUpdateInput; }; + export type MutationProductCreateArgs = { input: ProductCreateInput; }; + export type MutationProductDeleteArgs = { - externalReference?: InputMaybe; - id?: InputMaybe; + externalReference?: InputMaybe; + id?: InputMaybe; }; + export type MutationProductMediaBulkDeleteArgs = { - ids: Array; + ids: Array; }; + export type MutationProductMediaCreateArgs = { input: ProductMediaCreateInput; }; + export type MutationProductMediaDeleteArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationProductMediaReorderArgs = { - mediaIds: Array; - productId: Scalars["ID"]["input"]; + mediaIds: Array; + productId: Scalars['ID']['input']; }; + export type MutationProductMediaUpdateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: ProductMediaUpdateInput; }; + export type MutationProductReorderAttributeValuesArgs = { - attributeId: Scalars["ID"]["input"]; + attributeId: Scalars['ID']['input']; moves: Array; - productId: Scalars["ID"]["input"]; + productId: Scalars['ID']['input']; }; + export type MutationProductTranslateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: TranslationInput; languageCode: LanguageCodeEnum; }; + export type MutationProductTypeBulkDeleteArgs = { - ids: Array; + ids: Array; }; + export type MutationProductTypeCreateArgs = { input: ProductTypeInput; }; + export type MutationProductTypeDeleteArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationProductTypeReorderAttributesArgs = { moves: Array; - productTypeId: Scalars["ID"]["input"]; + productTypeId: Scalars['ID']['input']; type: ProductAttributeType; }; + export type MutationProductTypeUpdateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: ProductTypeInput; }; + export type MutationProductUpdateArgs = { - externalReference?: InputMaybe; - id?: InputMaybe; + externalReference?: InputMaybe; + id?: InputMaybe; input: ProductInput; }; + export type MutationProductVariantBulkCreateArgs = { errorPolicy?: InputMaybe; - product: Scalars["ID"]["input"]; + product: Scalars['ID']['input']; variants: Array; }; + export type MutationProductVariantBulkDeleteArgs = { - ids?: InputMaybe>; - skus?: InputMaybe>; + ids?: InputMaybe>; + skus?: InputMaybe>; }; + export type MutationProductVariantBulkTranslateArgs = { errorPolicy?: InputMaybe; translations: Array; }; + export type MutationProductVariantBulkUpdateArgs = { errorPolicy?: InputMaybe; - product: Scalars["ID"]["input"]; + product: Scalars['ID']['input']; variants: Array; }; + export type MutationProductVariantChannelListingUpdateArgs = { - id?: InputMaybe; + id?: InputMaybe; input: Array; - sku?: InputMaybe; + sku?: InputMaybe; }; + export type MutationProductVariantCreateArgs = { input: ProductVariantCreateInput; }; + export type MutationProductVariantDeleteArgs = { - externalReference?: InputMaybe; - id?: InputMaybe; - sku?: InputMaybe; + externalReference?: InputMaybe; + id?: InputMaybe; + sku?: InputMaybe; }; + export type MutationProductVariantPreorderDeactivateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationProductVariantReorderArgs = { moves: Array; - productId: Scalars["ID"]["input"]; + productId: Scalars['ID']['input']; }; + export type MutationProductVariantReorderAttributeValuesArgs = { - attributeId: Scalars["ID"]["input"]; + attributeId: Scalars['ID']['input']; moves: Array; - variantId: Scalars["ID"]["input"]; + variantId: Scalars['ID']['input']; }; + export type MutationProductVariantSetDefaultArgs = { - productId: Scalars["ID"]["input"]; - variantId: Scalars["ID"]["input"]; + productId: Scalars['ID']['input']; + variantId: Scalars['ID']['input']; }; + export type MutationProductVariantStocksCreateArgs = { stocks: Array; - variantId: Scalars["ID"]["input"]; + variantId: Scalars['ID']['input']; }; + export type MutationProductVariantStocksDeleteArgs = { - sku?: InputMaybe; - variantId?: InputMaybe; - warehouseIds?: InputMaybe>; + sku?: InputMaybe; + variantId?: InputMaybe; + warehouseIds?: InputMaybe>; }; + export type MutationProductVariantStocksUpdateArgs = { - sku?: InputMaybe; + sku?: InputMaybe; stocks: Array; - variantId?: InputMaybe; + variantId?: InputMaybe; }; + export type MutationProductVariantTranslateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: NameTranslationInput; languageCode: LanguageCodeEnum; }; + export type MutationProductVariantUpdateArgs = { - externalReference?: InputMaybe; - id?: InputMaybe; + externalReference?: InputMaybe; + id?: InputMaybe; input: ProductVariantInput; - sku?: InputMaybe; + sku?: InputMaybe; }; + export type MutationPromotionBulkDeleteArgs = { - ids: Array; + ids: Array; }; + export type MutationPromotionCreateArgs = { input: PromotionCreateInput; }; + export type MutationPromotionDeleteArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationPromotionRuleCreateArgs = { input: PromotionRuleCreateInput; }; + export type MutationPromotionRuleDeleteArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationPromotionRuleTranslateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: PromotionRuleTranslationInput; languageCode: LanguageCodeEnum; }; + export type MutationPromotionRuleUpdateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: PromotionRuleUpdateInput; }; + export type MutationPromotionTranslateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: PromotionTranslationInput; languageCode: LanguageCodeEnum; }; + export type MutationPromotionUpdateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: PromotionUpdateInput; }; + export type MutationRequestEmailChangeArgs = { - channel?: InputMaybe; - newEmail: Scalars["String"]["input"]; - password: Scalars["String"]["input"]; - redirectUrl: Scalars["String"]["input"]; + channel?: InputMaybe; + newEmail: Scalars['String']['input']; + password: Scalars['String']['input']; + redirectUrl: Scalars['String']['input']; }; + export type MutationRequestPasswordResetArgs = { - channel?: InputMaybe; - email: Scalars["String"]["input"]; - redirectUrl: Scalars["String"]["input"]; + channel?: InputMaybe; + email: Scalars['String']['input']; + redirectUrl: Scalars['String']['input']; }; + export type MutationSaleBulkDeleteArgs = { - ids: Array; + ids: Array; }; + export type MutationSaleCataloguesAddArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: CatalogueInput; }; + export type MutationSaleCataloguesRemoveArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: CatalogueInput; }; + export type MutationSaleChannelListingUpdateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: SaleChannelListingInput; }; + export type MutationSaleCreateArgs = { input: SaleInput; }; + export type MutationSaleDeleteArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationSaleTranslateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: NameTranslationInput; languageCode: LanguageCodeEnum; }; + export type MutationSaleUpdateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: SaleInput; }; + export type MutationSendConfirmationEmailArgs = { - channel: Scalars["String"]["input"]; - redirectUrl: Scalars["String"]["input"]; + channel: Scalars['String']['input']; + redirectUrl: Scalars['String']['input']; }; + export type MutationSetPasswordArgs = { - email: Scalars["String"]["input"]; - password: Scalars["String"]["input"]; - token: Scalars["String"]["input"]; + email: Scalars['String']['input']; + password: Scalars['String']['input']; + token: Scalars['String']['input']; }; + export type MutationShippingMethodChannelListingUpdateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: ShippingMethodChannelListingInput; }; + export type MutationShippingPriceBulkDeleteArgs = { - ids: Array; + ids: Array; }; + export type MutationShippingPriceCreateArgs = { input: ShippingPriceInput; }; + export type MutationShippingPriceDeleteArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationShippingPriceExcludeProductsArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: ShippingPriceExcludeProductsInput; }; + export type MutationShippingPriceRemoveProductFromExcludeArgs = { - id: Scalars["ID"]["input"]; - products: Array; + id: Scalars['ID']['input']; + products: Array; }; + export type MutationShippingPriceTranslateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: ShippingPriceTranslationInput; languageCode: LanguageCodeEnum; }; + export type MutationShippingPriceUpdateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: ShippingPriceInput; }; + export type MutationShippingZoneBulkDeleteArgs = { - ids: Array; + ids: Array; }; + export type MutationShippingZoneCreateArgs = { input: ShippingZoneCreateInput; }; + export type MutationShippingZoneDeleteArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationShippingZoneUpdateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: ShippingZoneUpdateInput; }; + export type MutationShopAddressUpdateArgs = { input?: InputMaybe; }; + export type MutationShopDomainUpdateArgs = { input?: InputMaybe; }; + export type MutationShopSettingsTranslateArgs = { input: ShopSettingsTranslationInput; languageCode: LanguageCodeEnum; }; + export type MutationShopSettingsUpdateArgs = { input: ShopSettingsInput; }; + export type MutationStaffBulkDeleteArgs = { - ids: Array; + ids: Array; }; + export type MutationStaffCreateArgs = { input: StaffCreateInput; }; + export type MutationStaffDeleteArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationStaffNotificationRecipientCreateArgs = { input: StaffNotificationRecipientInput; }; + export type MutationStaffNotificationRecipientDeleteArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationStaffNotificationRecipientUpdateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: StaffNotificationRecipientInput; }; + export type MutationStaffUpdateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: StaffUpdateInput; }; + export type MutationStockBulkUpdateArgs = { errorPolicy?: InputMaybe; stocks: Array; }; + export type MutationStoredPaymentMethodRequestDeleteArgs = { - channel: Scalars["String"]["input"]; - id: Scalars["ID"]["input"]; + channel: Scalars['String']['input']; + id: Scalars['ID']['input']; }; + export type MutationTaxClassCreateArgs = { input: TaxClassCreateInput; }; + export type MutationTaxClassDeleteArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationTaxClassUpdateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: TaxClassUpdateInput; }; + export type MutationTaxConfigurationUpdateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: TaxConfigurationUpdateInput; }; + export type MutationTaxCountryConfigurationDeleteArgs = { countryCode: CountryCode; }; + export type MutationTaxCountryConfigurationUpdateArgs = { countryCode: CountryCode; updateTaxClassRates: Array; }; + export type MutationTaxExemptionManageArgs = { - id: Scalars["ID"]["input"]; - taxExemption: Scalars["Boolean"]["input"]; + id: Scalars['ID']['input']; + taxExemption: Scalars['Boolean']['input']; }; + export type MutationTokenCreateArgs = { - audience?: InputMaybe; - email: Scalars["String"]["input"]; - password: Scalars["String"]["input"]; + audience?: InputMaybe; + email: Scalars['String']['input']; + password: Scalars['String']['input']; }; + export type MutationTokenRefreshArgs = { - csrfToken?: InputMaybe; - refreshToken?: InputMaybe; + csrfToken?: InputMaybe; + refreshToken?: InputMaybe; }; + export type MutationTokenVerifyArgs = { - token: Scalars["String"]["input"]; + token: Scalars['String']['input']; }; + export type MutationTransactionCreateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; transaction: TransactionCreateInput; transactionEvent?: InputMaybe; }; + export type MutationTransactionEventReportArgs = { - amount?: InputMaybe; + amount?: InputMaybe; availableActions?: InputMaybe>; - externalUrl?: InputMaybe; - id?: InputMaybe; - message?: InputMaybe; - pspReference: Scalars["String"]["input"]; - time?: InputMaybe; - token?: InputMaybe; + externalUrl?: InputMaybe; + id?: InputMaybe; + message?: InputMaybe; + pspReference: Scalars['String']['input']; + time?: InputMaybe; + token?: InputMaybe; transactionMetadata?: InputMaybe>; transactionPrivateMetadata?: InputMaybe>; type: TransactionEventTypeEnum; }; + export type MutationTransactionInitializeArgs = { action?: InputMaybe; - amount?: InputMaybe; - customerIpAddress?: InputMaybe; - id: Scalars["ID"]["input"]; - idempotencyKey?: InputMaybe; + amount?: InputMaybe; + customerIpAddress?: InputMaybe; + id: Scalars['ID']['input']; + idempotencyKey?: InputMaybe; paymentGateway: PaymentGatewayToInitialize; }; + export type MutationTransactionProcessArgs = { - customerIpAddress?: InputMaybe; - data?: InputMaybe; - id?: InputMaybe; - token?: InputMaybe; + customerIpAddress?: InputMaybe; + data?: InputMaybe; + id?: InputMaybe; + token?: InputMaybe; }; + export type MutationTransactionRequestActionArgs = { actionType: TransactionActionEnum; - amount?: InputMaybe; - id?: InputMaybe; - token?: InputMaybe; + amount?: InputMaybe; + id?: InputMaybe; + token?: InputMaybe; }; + export type MutationTransactionRequestRefundForGrantedRefundArgs = { - grantedRefundId: Scalars["ID"]["input"]; - id?: InputMaybe; - token?: InputMaybe; + grantedRefundId: Scalars['ID']['input']; + id?: InputMaybe; + token?: InputMaybe; }; + export type MutationTransactionUpdateArgs = { - id?: InputMaybe; - token?: InputMaybe; + id?: InputMaybe; + token?: InputMaybe; transaction?: InputMaybe; transactionEvent?: InputMaybe; }; + export type MutationUnassignWarehouseShippingZoneArgs = { - id: Scalars["ID"]["input"]; - shippingZoneIds: Array; + id: Scalars['ID']['input']; + shippingZoneIds: Array; }; + export type MutationUpdateMetadataArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: Array; }; + export type MutationUpdatePrivateMetadataArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: Array; }; + export type MutationUpdateWarehouseArgs = { - externalReference?: InputMaybe; - id?: InputMaybe; + externalReference?: InputMaybe; + id?: InputMaybe; input: WarehouseUpdateInput; }; + export type MutationUserAvatarUpdateArgs = { - image: Scalars["Upload"]["input"]; + image: Scalars['Upload']['input']; }; + export type MutationUserBulkSetActiveArgs = { - ids: Array; - isActive: Scalars["Boolean"]["input"]; + ids: Array; + isActive: Scalars['Boolean']['input']; }; + export type MutationVariantMediaAssignArgs = { - mediaId: Scalars["ID"]["input"]; - variantId: Scalars["ID"]["input"]; + mediaId: Scalars['ID']['input']; + variantId: Scalars['ID']['input']; }; + export type MutationVariantMediaUnassignArgs = { - mediaId: Scalars["ID"]["input"]; - variantId: Scalars["ID"]["input"]; + mediaId: Scalars['ID']['input']; + variantId: Scalars['ID']['input']; }; + export type MutationVoucherBulkDeleteArgs = { - ids: Array; + ids: Array; }; + export type MutationVoucherCataloguesAddArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: CatalogueInput; }; + export type MutationVoucherCataloguesRemoveArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: CatalogueInput; }; + export type MutationVoucherChannelListingUpdateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: VoucherChannelListingInput; }; + export type MutationVoucherCodeBulkDeleteArgs = { - ids: Array; + ids: Array; }; + export type MutationVoucherCreateArgs = { input: VoucherInput; }; + export type MutationVoucherDeleteArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationVoucherTranslateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: NameTranslationInput; languageCode: LanguageCodeEnum; }; + export type MutationVoucherUpdateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: VoucherInput; }; + export type MutationWebhookCreateArgs = { input: WebhookCreateInput; }; + export type MutationWebhookDeleteArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type MutationWebhookDryRunArgs = { - objectId: Scalars["ID"]["input"]; - query: Scalars["String"]["input"]; + objectId: Scalars['ID']['input']; + query: Scalars['String']['input']; }; + export type MutationWebhookTriggerArgs = { - objectId: Scalars["ID"]["input"]; - webhookId: Scalars["ID"]["input"]; + objectId: Scalars['ID']['input']; + webhookId: Scalars['ID']['input']; }; + export type MutationWebhookUpdateArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; input: WebhookUpdateInput; }; export type NameTranslationInput = { - name?: InputMaybe; + name?: InputMaybe; }; export type NavigationType = /** Main storefront navigation. */ - | "MAIN" + | 'MAIN' /** Secondary storefront navigation. */ - | "SECONDARY"; + | 'SECONDARY'; /** An object with an ID */ export type Node = { /** The ID of the object. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; }; export type ObjectWithMetadata = { @@ -14640,409 +15052,416 @@ export type ObjectWithMetadata = { * * Tip: Use GraphQL aliases to fetch multiple keys. */ - metafield: Maybe; - /** Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. */ - metafields: Maybe; + metafield: Maybe; + /** Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. */ + metafields: Maybe; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * A single key from private metadata. Requires staff permissions to access. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + */ + privateMetafield: Maybe; + /** Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. */ + privateMetafields: Maybe; +}; + + +export type ObjectWithMetadataMetafieldArgs = { + key: Scalars['String']['input']; +}; + + +export type ObjectWithMetadataMetafieldsArgs = { + keys?: InputMaybe>; +}; + + +export type ObjectWithMetadataPrivateMetafieldArgs = { + key: Scalars['String']['input']; +}; + + +export type ObjectWithMetadataPrivateMetafieldsArgs = { + keys?: InputMaybe>; +}; + +/** Represents an order in the shop. */ +export type Order = Node & ObjectWithMetadata & { + /** List of actions that can be performed in the current state of an order. */ + actions: Array; + /** + * The authorize status of the order. + * + * Added in Saleor 3.4. + */ + authorizeStatus: OrderAuthorizeStatusEnum; + /** + * Collection points that can be used for this order. + * + * Added in Saleor 3.1. + */ + availableCollectionPoints: Array; + /** + * Shipping methods that can be used with this order. + * @deprecated Use `shippingMethods`, this field will be removed in 4.0 + */ + availableShippingMethods: Maybe>; + /** Billing address. The full data can be access for orders created in Saleor 3.2 and later, for other orders requires one of the following permissions: MANAGE_ORDERS, OWNER. */ + billingAddress: Maybe
; + /** Informs whether a draft order can be finalized(turned into a regular order). */ + canFinalize: Scalars['Boolean']['output']; + /** Channel through which the order was placed. */ + channel: Channel; + /** + * The charge status of the order. + * + * Added in Saleor 3.4. + */ + chargeStatus: OrderChargeStatusEnum; + /** + * ID of the checkout that the order was created from. + * + * Added in Saleor 3.11. + */ + checkoutId: Maybe; + /** Name of the collection point where the order should be picked up by the customer. */ + collectionPointName: Maybe; + /** Date and time when the order was created. */ + created: Scalars['DateTime']['output']; + /** Additional information provided by the customer about the order. */ + customerNote: Scalars['String']['output']; + /** + * The delivery method selected for this order. + * + * Added in Saleor 3.1. + */ + deliveryMethod: Maybe; + /** + * Returns applied discount. + * @deprecated This field will be removed in Saleor 4.0. Use the `discounts` field instead. + */ + discount: Maybe; + /** + * Discount name. + * @deprecated This field will be removed in Saleor 4.0. Use the `discounts` field instead. + */ + discountName: Maybe; + /** List of all discounts assigned to the order. */ + discounts: Array; + /** + * Determines whether displayed prices should include taxes. + * + * Added in Saleor 3.9. + */ + displayGrossPrices: Scalars['Boolean']['output']; + /** List of errors that occurred during order validation. */ + errors: Array; + /** + * List of events associated with the order. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + events: Array; + /** + * External ID of this order. + * + * Added in Saleor 3.10. + */ + externalReference: Maybe; + /** List of shipments for the order. */ + fulfillments: Array; + /** List of user gift cards. */ + giftCards: Array; + /** + * List of granted refunds. + * + * Added in Saleor 3.13. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + grantedRefunds: Array; + /** ID of the order. */ + id: Scalars['ID']['output']; + /** List of order invoices. Can be fetched for orders created in Saleor 3.2 and later, for other orders requires one of the following permissions: MANAGE_ORDERS, OWNER. */ + invoices: Array; + /** Informs if an order is fully paid. */ + isPaid: Scalars['Boolean']['output']; + /** Returns True, if order requires shipping. */ + isShippingRequired: Scalars['Boolean']['output']; + /** @deprecated This field will be removed in Saleor 4.0. Use the `languageCodeEnum` field to fetch the language code. */ + languageCode: Scalars['String']['output']; + /** Order language code. */ + languageCodeEnum: LanguageCodeEnum; + /** List of order lines. */ + lines: Array; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * A single key from public metadata. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + metafield: Maybe; + /** + * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + metafields: Maybe; + /** User-friendly number of an order. */ + number: Scalars['String']['output']; + /** The order origin. */ + origin: OrderOriginEnum; + /** The ID of the order that was the base for this order. */ + original: Maybe; + /** Internal payment status. */ + paymentStatus: PaymentChargeStatusEnum; + /** User-friendly payment status. */ + paymentStatusDisplay: Scalars['String']['output']; + /** List of payments for the order. */ + payments: Array; /** List of private metadata items. Requires staff permissions to access. */ privateMetadata: Array; /** * A single key from private metadata. Requires staff permissions to access. * * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. */ - privateMetafield: Maybe; - /** Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. */ - privateMetafields: Maybe; -}; - -export type ObjectWithMetadataMetafieldArgs = { - key: Scalars["String"]["input"]; -}; - -export type ObjectWithMetadataMetafieldsArgs = { - keys?: InputMaybe>; -}; - -export type ObjectWithMetadataPrivateMetafieldArgs = { - key: Scalars["String"]["input"]; -}; - -export type ObjectWithMetadataPrivateMetafieldsArgs = { - keys?: InputMaybe>; + privateMetafield: Maybe; + /** + * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + privateMetafields: Maybe; + /** URL to which user should be redirected after order is placed. */ + redirectUrl: Maybe; + /** Shipping address. The full data can be access for orders created in Saleor 3.2 and later, for other orders requires one of the following permissions: MANAGE_ORDERS, OWNER. */ + shippingAddress: Maybe
; + /** + * Shipping method for this order. + * @deprecated This field will be removed in Saleor 4.0. Use `deliveryMethod` instead. + */ + shippingMethod: Maybe; + /** Method used for shipping. */ + shippingMethodName: Maybe; + /** Shipping methods related to this order. */ + shippingMethods: Array; + /** Total price of shipping. */ + shippingPrice: TaxedMoney; + /** + * Denormalized tax class assigned to the shipping method. + * + * Added in Saleor 3.9. + * + * Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. + */ + shippingTaxClass: Maybe; + /** + * Denormalized public metadata of the shipping method's tax class. + * + * Added in Saleor 3.9. + */ + shippingTaxClassMetadata: Array; + /** + * Denormalized name of the tax class assigned to the shipping method. + * + * Added in Saleor 3.9. + */ + shippingTaxClassName: Maybe; + /** + * Denormalized private metadata of the shipping method's tax class. Requires staff permissions to access. + * + * Added in Saleor 3.9. + */ + shippingTaxClassPrivateMetadata: Array; + /** The shipping tax rate value. */ + shippingTaxRate: Scalars['Float']['output']; + /** Status of the order. */ + status: OrderStatus; + /** User-friendly order status. */ + statusDisplay: Scalars['String']['output']; + /** The sum of line prices not including shipping. */ + subtotal: TaxedMoney; + /** + * Returns True if order has to be exempt from taxes. + * + * Added in Saleor 3.8. + */ + taxExemption: Scalars['Boolean']['output']; + /** @deprecated This field will be removed in Saleor 4.0. Use `id` instead. */ + token: Scalars['String']['output']; + /** Total amount of the order. */ + total: TaxedMoney; + /** + * Total amount of ongoing authorize requests for the order's transactions. + * + * Added in Saleor 3.13. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + totalAuthorizePending: Money; + /** Amount authorized for the order. */ + totalAuthorized: Money; + /** The difference between the paid and the order total amount. */ + totalBalance: Money; + /** + * Total amount of ongoing cancel requests for the order's transactions. + * + * Added in Saleor 3.13. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + totalCancelPending: Money; + /** + * Amount canceled for the order. + * + * Added in Saleor 3.13. + */ + totalCanceled: Money; + /** + * Amount captured for the order. + * @deprecated This field will be removed in Saleor 4.0. Use `totalCharged` instead. + */ + totalCaptured: Money; + /** + * Total amount of ongoing charge requests for the order's transactions. + * + * Added in Saleor 3.13. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + totalChargePending: Money; + /** + * Amount charged for the order. + * + * Added in Saleor 3.13. + */ + totalCharged: Money; + /** + * Total amount of granted refund. + * + * Added in Saleor 3.13. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + totalGrantedRefund: Money; + /** + * Total amount of ongoing refund requests for the order's transactions. + * + * Added in Saleor 3.13. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + totalRefundPending: Money; + /** + * Total refund amount for the order. + * + * Added in Saleor 3.13. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + totalRefunded: Money; + /** + * The difference amount between granted refund and the amounts that are pending and refunded. + * + * Added in Saleor 3.13. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + totalRemainingGrant: Money; + /** Google Analytics tracking client ID. This field will be removed in Saleor 4.0. */ + trackingClientId: Scalars['String']['output']; + /** + * List of transactions for the order. Requires one of the following permissions: MANAGE_ORDERS, HANDLE_PAYMENTS. + * + * Added in Saleor 3.4. + */ + transactions: Array; + /** + * Translated discount name. + * @deprecated This field will be removed in Saleor 4.0. Use the `discounts` field instead. + */ + translatedDiscountName: Maybe; + /** + * Undiscounted total price of shipping. + * + * Added in Saleor 3.19. + */ + undiscountedShippingPrice: Maybe; + /** Undiscounted total amount of the order. */ + undiscountedTotal: TaxedMoney; + /** Date and time when the order was created. */ + updatedAt: Scalars['DateTime']['output']; + /** User who placed the order. This field is set only for orders placed by authenticated users. Can be fetched for orders created in Saleor 3.2 and later, for other orders requires one of the following permissions: MANAGE_USERS, MANAGE_ORDERS, HANDLE_PAYMENTS, OWNER. */ + user: Maybe; + /** Email address of the customer. The full data can be access for orders created in Saleor 3.2 and later, for other orders requires one of the following permissions: MANAGE_ORDERS, OWNER. */ + userEmail: Maybe; + /** Voucher linked to the order. */ + voucher: Maybe; + /** + * Voucher code that was used for Order. + * + * Added in Saleor 3.18. + */ + voucherCode: Maybe; + /** Weight of the order. */ + weight: Weight; }; -/** Represents an order in the shop. */ -export type Order = Node & - ObjectWithMetadata & { - /** List of actions that can be performed in the current state of an order. */ - actions: Array; - /** - * The authorize status of the order. - * - * Added in Saleor 3.4. - */ - authorizeStatus: OrderAuthorizeStatusEnum; - /** - * Collection points that can be used for this order. - * - * Added in Saleor 3.1. - */ - availableCollectionPoints: Array; - /** - * Shipping methods that can be used with this order. - * @deprecated Use `shippingMethods`, this field will be removed in 4.0 - */ - availableShippingMethods: Maybe>; - /** Billing address. The full data can be access for orders created in Saleor 3.2 and later, for other orders requires one of the following permissions: MANAGE_ORDERS, OWNER. */ - billingAddress: Maybe
; - /** Informs whether a draft order can be finalized(turned into a regular order). */ - canFinalize: Scalars["Boolean"]["output"]; - /** Channel through which the order was placed. */ - channel: Channel; - /** - * The charge status of the order. - * - * Added in Saleor 3.4. - */ - chargeStatus: OrderChargeStatusEnum; - /** - * ID of the checkout that the order was created from. - * - * Added in Saleor 3.11. - */ - checkoutId: Maybe; - /** Name of the collection point where the order should be picked up by the customer. */ - collectionPointName: Maybe; - /** Date and time when the order was created. */ - created: Scalars["DateTime"]["output"]; - /** Additional information provided by the customer about the order. */ - customerNote: Scalars["String"]["output"]; - /** - * The delivery method selected for this order. - * - * Added in Saleor 3.1. - */ - deliveryMethod: Maybe; - /** - * Returns applied discount. - * @deprecated This field will be removed in Saleor 4.0. Use the `discounts` field instead. - */ - discount: Maybe; - /** - * Discount name. - * @deprecated This field will be removed in Saleor 4.0. Use the `discounts` field instead. - */ - discountName: Maybe; - /** List of all discounts assigned to the order. */ - discounts: Array; - /** - * Determines whether displayed prices should include taxes. - * - * Added in Saleor 3.9. - */ - displayGrossPrices: Scalars["Boolean"]["output"]; - /** List of errors that occurred during order validation. */ - errors: Array; - /** - * List of events associated with the order. - * - * Requires one of the following permissions: MANAGE_ORDERS. - */ - events: Array; - /** - * External ID of this order. - * - * Added in Saleor 3.10. - */ - externalReference: Maybe; - /** List of shipments for the order. */ - fulfillments: Array; - /** List of user gift cards. */ - giftCards: Array; - /** - * List of granted refunds. - * - * Added in Saleor 3.13. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - * - * Requires one of the following permissions: MANAGE_ORDERS. - */ - grantedRefunds: Array; - /** ID of the order. */ - id: Scalars["ID"]["output"]; - /** List of order invoices. Can be fetched for orders created in Saleor 3.2 and later, for other orders requires one of the following permissions: MANAGE_ORDERS, OWNER. */ - invoices: Array; - /** Informs if an order is fully paid. */ - isPaid: Scalars["Boolean"]["output"]; - /** Returns True, if order requires shipping. */ - isShippingRequired: Scalars["Boolean"]["output"]; - /** @deprecated This field will be removed in Saleor 4.0. Use the `languageCodeEnum` field to fetch the language code. */ - languageCode: Scalars["String"]["output"]; - /** Order language code. */ - languageCodeEnum: LanguageCodeEnum; - /** List of order lines. */ - lines: Array; - /** List of public metadata items. Can be accessed without permissions. */ - metadata: Array; - /** - * A single key from public metadata. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - metafield: Maybe; - /** - * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - metafields: Maybe; - /** User-friendly number of an order. */ - number: Scalars["String"]["output"]; - /** The order origin. */ - origin: OrderOriginEnum; - /** The ID of the order that was the base for this order. */ - original: Maybe; - /** Internal payment status. */ - paymentStatus: PaymentChargeStatusEnum; - /** User-friendly payment status. */ - paymentStatusDisplay: Scalars["String"]["output"]; - /** List of payments for the order. */ - payments: Array; - /** List of private metadata items. Requires staff permissions to access. */ - privateMetadata: Array; - /** - * A single key from private metadata. Requires staff permissions to access. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - privateMetafield: Maybe; - /** - * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - privateMetafields: Maybe; - /** URL to which user should be redirected after order is placed. */ - redirectUrl: Maybe; - /** Shipping address. The full data can be access for orders created in Saleor 3.2 and later, for other orders requires one of the following permissions: MANAGE_ORDERS, OWNER. */ - shippingAddress: Maybe
; - /** - * Shipping method for this order. - * @deprecated This field will be removed in Saleor 4.0. Use `deliveryMethod` instead. - */ - shippingMethod: Maybe; - /** Method used for shipping. */ - shippingMethodName: Maybe; - /** Shipping methods related to this order. */ - shippingMethods: Array; - /** Total price of shipping. */ - shippingPrice: TaxedMoney; - /** - * Denormalized tax class assigned to the shipping method. - * - * Added in Saleor 3.9. - * - * Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. - */ - shippingTaxClass: Maybe; - /** - * Denormalized public metadata of the shipping method's tax class. - * - * Added in Saleor 3.9. - */ - shippingTaxClassMetadata: Array; - /** - * Denormalized name of the tax class assigned to the shipping method. - * - * Added in Saleor 3.9. - */ - shippingTaxClassName: Maybe; - /** - * Denormalized private metadata of the shipping method's tax class. Requires staff permissions to access. - * - * Added in Saleor 3.9. - */ - shippingTaxClassPrivateMetadata: Array; - /** The shipping tax rate value. */ - shippingTaxRate: Scalars["Float"]["output"]; - /** Status of the order. */ - status: OrderStatus; - /** User-friendly order status. */ - statusDisplay: Scalars["String"]["output"]; - /** The sum of line prices not including shipping. */ - subtotal: TaxedMoney; - /** - * Returns True if order has to be exempt from taxes. - * - * Added in Saleor 3.8. - */ - taxExemption: Scalars["Boolean"]["output"]; - /** @deprecated This field will be removed in Saleor 4.0. Use `id` instead. */ - token: Scalars["String"]["output"]; - /** Total amount of the order. */ - total: TaxedMoney; - /** - * Total amount of ongoing authorize requests for the order's transactions. - * - * Added in Saleor 3.13. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - * - * Requires one of the following permissions: MANAGE_ORDERS. - */ - totalAuthorizePending: Money; - /** Amount authorized for the order. */ - totalAuthorized: Money; - /** The difference between the paid and the order total amount. */ - totalBalance: Money; - /** - * Total amount of ongoing cancel requests for the order's transactions. - * - * Added in Saleor 3.13. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - * - * Requires one of the following permissions: MANAGE_ORDERS. - */ - totalCancelPending: Money; - /** - * Amount canceled for the order. - * - * Added in Saleor 3.13. - */ - totalCanceled: Money; - /** - * Amount captured for the order. - * @deprecated This field will be removed in Saleor 4.0. Use `totalCharged` instead. - */ - totalCaptured: Money; - /** - * Total amount of ongoing charge requests for the order's transactions. - * - * Added in Saleor 3.13. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - * - * Requires one of the following permissions: MANAGE_ORDERS. - */ - totalChargePending: Money; - /** - * Amount charged for the order. - * - * Added in Saleor 3.13. - */ - totalCharged: Money; - /** - * Total amount of granted refund. - * - * Added in Saleor 3.13. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - * - * Requires one of the following permissions: MANAGE_ORDERS. - */ - totalGrantedRefund: Money; - /** - * Total amount of ongoing refund requests for the order's transactions. - * - * Added in Saleor 3.13. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - * - * Requires one of the following permissions: MANAGE_ORDERS. - */ - totalRefundPending: Money; - /** - * Total refund amount for the order. - * - * Added in Saleor 3.13. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - totalRefunded: Money; - /** - * The difference amount between granted refund and the amounts that are pending and refunded. - * - * Added in Saleor 3.13. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - * - * Requires one of the following permissions: MANAGE_ORDERS. - */ - totalRemainingGrant: Money; - /** Google Analytics tracking client ID. This field will be removed in Saleor 4.0. */ - trackingClientId: Scalars["String"]["output"]; - /** - * List of transactions for the order. Requires one of the following permissions: MANAGE_ORDERS, HANDLE_PAYMENTS. - * - * Added in Saleor 3.4. - */ - transactions: Array; - /** - * Translated discount name. - * @deprecated This field will be removed in Saleor 4.0. Use the `discounts` field instead. - */ - translatedDiscountName: Maybe; - /** - * Undiscounted total price of shipping. - * - * Added in Saleor 3.19. - */ - undiscountedShippingPrice: Maybe; - /** Undiscounted total amount of the order. */ - undiscountedTotal: TaxedMoney; - /** Date and time when the order was created. */ - updatedAt: Scalars["DateTime"]["output"]; - /** User who placed the order. This field is set only for orders placed by authenticated users. Can be fetched for orders created in Saleor 3.2 and later, for other orders requires one of the following permissions: MANAGE_USERS, MANAGE_ORDERS, HANDLE_PAYMENTS, OWNER. */ - user: Maybe; - /** Email address of the customer. The full data can be access for orders created in Saleor 3.2 and later, for other orders requires one of the following permissions: MANAGE_ORDERS, OWNER. */ - userEmail: Maybe; - /** Voucher linked to the order. */ - voucher: Maybe; - /** - * Voucher code that was used for Order. - * - * Added in Saleor 3.18. - */ - voucherCode: Maybe; - /** Weight of the order. */ - weight: Weight; - }; /** Represents an order in the shop. */ export type OrderMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents an order in the shop. */ export type OrderMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Represents an order in the shop. */ export type OrderPrivateMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents an order in the shop. */ export type OrderPrivateMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; export type OrderAction = /** Represents the capture action. */ - | "CAPTURE" + | 'CAPTURE' /** Represents a mark-as-paid action. */ - | "MARK_AS_PAID" + | 'MARK_AS_PAID' /** Represents a refund action. */ - | "REFUND" + | 'REFUND' /** Represents a void action. */ - | "VOID"; + | 'VOID'; /** * Adds note to the order. @@ -15067,7 +15486,7 @@ export type OrderAddNoteInput = { * * DEPRECATED: this field will be removed in Saleor 4.0. */ - message: Scalars["String"]["input"]; + message: Scalars['String']['input']; }; /** @@ -15087,7 +15506,10 @@ export type OrderAddNoteInput = { * `order.total`-`order.totalGrantedRefund` * */ -export type OrderAuthorizeStatusEnum = "FULL" | "NONE" | "PARTIAL"; +export type OrderAuthorizeStatusEnum = + | 'FULL' + | 'NONE' + | 'PARTIAL'; /** * Cancels orders. @@ -15096,7 +15518,7 @@ export type OrderAuthorizeStatusEnum = "FULL" | "NONE" | "PARTIAL"; */ export type OrderBulkCancel = { /** Returns how many objects were affected. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ orderErrors: Array; @@ -15113,7 +15535,7 @@ export type OrderBulkCancel = { */ export type OrderBulkCreate = { /** Returns how many objects were created. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; /** List of the created orders. */ results: Array; @@ -15121,102 +15543,102 @@ export type OrderBulkCreate = { export type OrderBulkCreateDeliveryMethodInput = { /** The ID of the shipping method. */ - shippingMethodId?: InputMaybe; + shippingMethodId?: InputMaybe; /** The name of the shipping method. */ - shippingMethodName?: InputMaybe; + shippingMethodName?: InputMaybe; /** The price of the shipping. */ shippingPrice?: InputMaybe; /** The ID of the tax class. */ - shippingTaxClassId?: InputMaybe; + shippingTaxClassId?: InputMaybe; /** Metadata of the tax class. */ shippingTaxClassMetadata?: InputMaybe>; /** The name of the tax class. */ - shippingTaxClassName?: InputMaybe; + shippingTaxClassName?: InputMaybe; /** Private metadata of the tax class. */ shippingTaxClassPrivateMetadata?: InputMaybe>; /** Tax rate of the shipping. */ - shippingTaxRate?: InputMaybe; + shippingTaxRate?: InputMaybe; /** The ID of the warehouse. */ - warehouseId?: InputMaybe; + warehouseId?: InputMaybe; /** The name of the warehouse. */ - warehouseName?: InputMaybe; + warehouseName?: InputMaybe; }; export type OrderBulkCreateError = { /** The error code. */ code: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; /** Path to field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - path: Maybe; + path: Maybe; }; /** An enumeration. */ export type OrderBulkCreateErrorCode = - | "BULK_LIMIT" - | "FUTURE_DATE" - | "GRAPHQL_ERROR" - | "INCORRECT_CURRENCY" - | "INSUFFICIENT_STOCK" - | "INVALID" - | "INVALID_QUANTITY" - | "METADATA_KEY_REQUIRED" - | "NEGATIVE_INDEX" - | "NON_EXISTING_STOCK" - | "NOTE_LENGTH" - | "NOT_FOUND" - | "NO_RELATED_ORDER_LINE" - | "ORDER_LINE_FULFILLMENT_LINE_MISMATCH" - | "PRICE_ERROR" - | "REQUIRED" - | "TOO_MANY_IDENTIFIERS" - | "UNIQUE"; + | 'BULK_LIMIT' + | 'FUTURE_DATE' + | 'GRAPHQL_ERROR' + | 'INCORRECT_CURRENCY' + | 'INSUFFICIENT_STOCK' + | 'INVALID' + | 'INVALID_QUANTITY' + | 'METADATA_KEY_REQUIRED' + | 'NEGATIVE_INDEX' + | 'NON_EXISTING_STOCK' + | 'NOTE_LENGTH' + | 'NOT_FOUND' + | 'NO_RELATED_ORDER_LINE' + | 'ORDER_LINE_FULFILLMENT_LINE_MISMATCH' + | 'PRICE_ERROR' + | 'REQUIRED' + | 'TOO_MANY_IDENTIFIERS' + | 'UNIQUE'; export type OrderBulkCreateFulfillmentInput = { /** List of items informing how to fulfill the order. */ lines?: InputMaybe>; /** Fulfillment's tracking code. */ - trackingCode?: InputMaybe; + trackingCode?: InputMaybe; }; export type OrderBulkCreateFulfillmentLineInput = { /** 0-based index of order line, which the fulfillment line refers to. */ - orderLineIndex: Scalars["Int"]["input"]; + orderLineIndex: Scalars['Int']['input']; /** The number of line items to be fulfilled from given warehouse. */ - quantity: Scalars["Int"]["input"]; + quantity: Scalars['Int']['input']; /** The external ID of the product variant. */ - variantExternalReference?: InputMaybe; + variantExternalReference?: InputMaybe; /** The ID of the product variant. */ - variantId?: InputMaybe; + variantId?: InputMaybe; /** The SKU of the product variant. */ - variantSku?: InputMaybe; + variantSku?: InputMaybe; /** ID of the warehouse from which the item will be fulfilled. */ - warehouse: Scalars["ID"]["input"]; + warehouse: Scalars['ID']['input']; }; export type OrderBulkCreateInput = { /** Billing address of the customer. */ billingAddress: AddressInput; /** Slug of the channel associated with the order. */ - channel: Scalars["String"]["input"]; + channel: Scalars['String']['input']; /** The date, when the order was inserted to Saleor database. */ - createdAt: Scalars["DateTime"]["input"]; + createdAt: Scalars['DateTime']['input']; /** Currency code. */ - currency: Scalars["String"]["input"]; + currency: Scalars['String']['input']; /** Note about customer. */ - customerNote?: InputMaybe; + customerNote?: InputMaybe; /** The delivery method selected for this order. */ deliveryMethod?: InputMaybe; /** List of discounts. */ discounts?: InputMaybe>; /** Determines whether displayed prices should include taxes. */ - displayGrossPrices?: InputMaybe; + displayGrossPrices?: InputMaybe; /** External ID of the order. */ - externalReference?: InputMaybe; + externalReference?: InputMaybe; /** Fulfillments of the order. */ fulfillments?: InputMaybe>; /** List of gift card codes associated with the order. */ - giftCards?: InputMaybe>; + giftCards?: InputMaybe>; /** Invoices related to the order. */ invoices?: InputMaybe>; /** Order language code. */ @@ -15230,7 +15652,7 @@ export type OrderBulkCreateInput = { /** Private metadata of the order. */ privateMetadata?: InputMaybe>; /** URL of a view, where users should be redirected to see the order details. */ - redirectUrl?: InputMaybe; + redirectUrl?: InputMaybe; /** Shipping address of the customer. */ shippingAddress?: InputMaybe; /** Status of the order. */ @@ -15244,82 +15666,82 @@ export type OrderBulkCreateInput = { * * Added in Saleor 3.18. */ - voucherCode?: InputMaybe; + voucherCode?: InputMaybe; /** Weight of the order in kg. */ - weight?: InputMaybe; + weight?: InputMaybe; }; export type OrderBulkCreateInvoiceInput = { /** The date, when the invoice was created. */ - createdAt: Scalars["DateTime"]["input"]; + createdAt: Scalars['DateTime']['input']; /** Metadata of the invoice. */ metadata?: InputMaybe>; /** Invoice number. */ - number?: InputMaybe; + number?: InputMaybe; /** Private metadata of the invoice. */ privateMetadata?: InputMaybe>; /** URL of the invoice to download. */ - url?: InputMaybe; + url?: InputMaybe; }; export type OrderBulkCreateNoteInput = { /** The app ID associated with the message. */ - appId?: InputMaybe; + appId?: InputMaybe; /** The date associated with the message. */ - date?: InputMaybe; + date?: InputMaybe; /** Note message. Max characters: 255. */ - message: Scalars["String"]["input"]; + message: Scalars['String']['input']; /** The user email associated with the message. */ - userEmail?: InputMaybe; + userEmail?: InputMaybe; /** The user external ID associated with the message. */ - userExternalReference?: InputMaybe; + userExternalReference?: InputMaybe; /** The user ID associated with the message. */ - userId?: InputMaybe; + userId?: InputMaybe; }; export type OrderBulkCreateOrderLineInput = { /** The date, when the order line was created. */ - createdAt: Scalars["DateTime"]["input"]; + createdAt: Scalars['DateTime']['input']; /** Gift card flag. */ - isGiftCard: Scalars["Boolean"]["input"]; + isGiftCard: Scalars['Boolean']['input']; /** Determines whether shipping of the order line items is required. */ - isShippingRequired: Scalars["Boolean"]["input"]; + isShippingRequired: Scalars['Boolean']['input']; /** Metadata of the order line. */ metadata?: InputMaybe>; /** Private metadata of the order line. */ privateMetadata?: InputMaybe>; /** The name of the product. */ - productName?: InputMaybe; + productName?: InputMaybe; /** Number of items in the order line */ - quantity: Scalars["Int"]["input"]; + quantity: Scalars['Int']['input']; /** The ID of the tax class. */ - taxClassId?: InputMaybe; + taxClassId?: InputMaybe; /** Metadata of the tax class. */ taxClassMetadata?: InputMaybe>; /** The name of the tax class. */ - taxClassName?: InputMaybe; + taxClassName?: InputMaybe; /** Private metadata of the tax class. */ taxClassPrivateMetadata?: InputMaybe>; /** Tax rate of the order line. */ - taxRate?: InputMaybe; + taxRate?: InputMaybe; /** Price of the order line. */ totalPrice: TaxedMoneyInput; /** Translation of the product name. */ - translatedProductName?: InputMaybe; + translatedProductName?: InputMaybe; /** Translation of the product variant name. */ - translatedVariantName?: InputMaybe; + translatedVariantName?: InputMaybe; /** Price of the order line excluding applied discount. */ undiscountedTotalPrice: TaxedMoneyInput; /** The external ID of the product variant. */ - variantExternalReference?: InputMaybe; + variantExternalReference?: InputMaybe; /** The ID of the product variant. */ - variantId?: InputMaybe; + variantId?: InputMaybe; /** The name of the product variant. */ - variantName?: InputMaybe; + variantName?: InputMaybe; /** The SKU of the product variant. */ - variantSku?: InputMaybe; + variantSku?: InputMaybe; /** The ID of the warehouse, where the line will be allocated. */ - warehouse: Scalars["ID"]["input"]; + warehouse: Scalars['ID']['input']; }; export type OrderBulkCreateResult = { @@ -15331,11 +15753,11 @@ export type OrderBulkCreateResult = { export type OrderBulkCreateUserInput = { /** Customer email associated with the order. */ - email?: InputMaybe; + email?: InputMaybe; /** Customer external ID associated with the order. */ - externalReference?: InputMaybe; + externalReference?: InputMaybe; /** Customer ID associated with the order. */ - id?: InputMaybe; + id?: InputMaybe; }; /** @@ -15347,7 +15769,7 @@ export type OrderBulkCreateUserInput = { */ export type OrderBulkCreated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The orders the event relates to. */ @@ -15355,7 +15777,7 @@ export type OrderBulkCreated = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -15378,7 +15800,7 @@ export type OrderCancel = { */ export type OrderCancelled = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The order the event relates to. */ @@ -15386,7 +15808,7 @@ export type OrderCancelled = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -15423,7 +15845,11 @@ export type OrderCapture = { * `order.total`-`order.totalGrantedRefund` * */ -export type OrderChargeStatusEnum = "FULL" | "NONE" | "OVERCHARGED" | "PARTIAL"; +export type OrderChargeStatusEnum = + | 'FULL' + | 'NONE' + | 'OVERCHARGED' + | 'PARTIAL'; /** * Confirms an unconfirmed order by changing status to unfulfilled. @@ -15444,7 +15870,7 @@ export type OrderConfirm = { */ export type OrderConfirmed = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The order the event relates to. */ @@ -15452,7 +15878,7 @@ export type OrderConfirmed = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; export type OrderCountableConnection = { @@ -15460,12 +15886,12 @@ export type OrderCountableConnection = { /** Pagination data for this connection. */ pageInfo: PageInfo; /** A total count of items in the collection. */ - totalCount: Maybe; + totalCount: Maybe; }; export type OrderCountableEdge = { /** A cursor for use in pagination. */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node: Order; }; @@ -15497,31 +15923,31 @@ export type OrderCreateFromCheckoutError = { /** The error code. */ code: OrderCreateFromCheckoutErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** List of line Ids which cause the error. */ - lines: Maybe>; + lines: Maybe>; /** The error message. */ - message: Maybe; + message: Maybe; /** List of variant IDs which causes the error. */ - variants: Maybe>; + variants: Maybe>; }; /** An enumeration. */ export type OrderCreateFromCheckoutErrorCode = - | "BILLING_ADDRESS_NOT_SET" - | "CHANNEL_INACTIVE" - | "CHECKOUT_NOT_FOUND" - | "EMAIL_NOT_SET" - | "GIFT_CARD_NOT_APPLICABLE" - | "GRAPHQL_ERROR" - | "INSUFFICIENT_STOCK" - | "INVALID_SHIPPING_METHOD" - | "NO_LINES" - | "SHIPPING_ADDRESS_NOT_SET" - | "SHIPPING_METHOD_NOT_SET" - | "TAX_ERROR" - | "UNAVAILABLE_VARIANT_IN_CHANNEL" - | "VOUCHER_NOT_APPLICABLE"; + | 'BILLING_ADDRESS_NOT_SET' + | 'CHANNEL_INACTIVE' + | 'CHECKOUT_NOT_FOUND' + | 'EMAIL_NOT_SET' + | 'GIFT_CARD_NOT_APPLICABLE' + | 'GRAPHQL_ERROR' + | 'INSUFFICIENT_STOCK' + | 'INVALID_SHIPPING_METHOD' + | 'NO_LINES' + | 'SHIPPING_ADDRESS_NOT_SET' + | 'SHIPPING_METHOD_NOT_SET' + | 'TAX_ERROR' + | 'UNAVAILABLE_VARIANT_IN_CHANNEL' + | 'VOUCHER_NOT_APPLICABLE'; /** * Event sent when new order is created. @@ -15530,7 +15956,7 @@ export type OrderCreateFromCheckoutErrorCode = */ export type OrderCreated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The order the event relates to. */ @@ -15538,35 +15964,35 @@ export type OrderCreated = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; export type OrderDirection = /** Specifies an ascending sort order. */ - | "ASC" + | 'ASC' /** Specifies a descending sort order. */ - | "DESC"; + | 'DESC'; /** Contains all details related to the applied discount to the order. */ export type OrderDiscount = Node & { /** Returns amount of discount. */ amount: Money; /** The ID of discount applied. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** The name of applied discount. */ - name: Maybe; + name: Maybe; /** * Explanation for the applied discount. * * Requires one of the following permissions: MANAGE_ORDERS. */ - reason: Maybe; + reason: Maybe; /** Translated name of the applied discount. */ - translatedName: Maybe; + translatedName: Maybe; /** The type of applied discount: Sale, Voucher or Manual. */ type: OrderDiscountType; /** Value of the discount. Can store fixed value or percent value */ - value: Scalars["PositiveDecimal"]["output"]; + value: Scalars['PositiveDecimal']['output']; /** Type of the discount: fixed or percent */ valueType: DiscountValueTypeEnum; }; @@ -15586,9 +16012,9 @@ export type OrderDiscountAdd = { export type OrderDiscountCommonInput = { /** Explanation for the applied discount. */ - reason?: InputMaybe; + reason?: InputMaybe; /** Value of the discount. Can store fixed value or percent value */ - value: Scalars["PositiveDecimal"]["input"]; + value: Scalars['PositiveDecimal']['input']; /** Type of the discount: fixed or percent */ valueType: DiscountValueTypeEnum; }; @@ -15608,11 +16034,11 @@ export type OrderDiscountDelete = { /** An enumeration. */ export type OrderDiscountType = - | "MANUAL" - | "ORDER_PROMOTION" - | "PROMOTION" - | "SALE" - | "VOUCHER"; + | 'MANUAL' + | 'ORDER_PROMOTION' + | 'PROMOTION' + | 'SALE' + | 'VOUCHER'; /** * Update discount for the order. @@ -15628,11 +16054,11 @@ export type OrderDiscountUpdate = { }; export type OrderDraftFilterInput = { - channels?: InputMaybe>; + channels?: InputMaybe>; created?: InputMaybe; - customer?: InputMaybe; + customer?: InputMaybe; metadata?: InputMaybe>; - search?: InputMaybe; + search?: InputMaybe; }; export type OrderError = { @@ -15641,94 +16067,94 @@ export type OrderError = { /** The error code. */ code: OrderErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; /** List of order line IDs that cause the error. */ - orderLines: Maybe>; + orderLines: Maybe>; /** List of product variants that are associated with the error */ - variants: Maybe>; + variants: Maybe>; /** Warehouse ID which causes the error. */ - warehouse: Maybe; + warehouse: Maybe; }; /** An enumeration. */ export type OrderErrorCode = - | "BILLING_ADDRESS_NOT_SET" - | "CANNOT_CANCEL_FULFILLMENT" - | "CANNOT_CANCEL_ORDER" - | "CANNOT_DELETE" - | "CANNOT_DISCOUNT" - | "CANNOT_FULFILL_UNPAID_ORDER" - | "CANNOT_REFUND" - | "CAPTURE_INACTIVE_PAYMENT" - | "CHANNEL_INACTIVE" - | "DUPLICATED_INPUT_ITEM" - | "FULFILL_ORDER_LINE" - | "GIFT_CARD_LINE" - | "GRAPHQL_ERROR" - | "INSUFFICIENT_STOCK" - | "INVALID" - | "INVALID_QUANTITY" - | "INVALID_VOUCHER" - | "INVALID_VOUCHER_CODE" - | "NON_EDITABLE_GIFT_LINE" - | "NON_REMOVABLE_GIFT_LINE" - | "NOT_AVAILABLE_IN_CHANNEL" - | "NOT_EDITABLE" - | "NOT_FOUND" - | "ORDER_NO_SHIPPING_ADDRESS" - | "PAYMENT_ERROR" - | "PAYMENT_MISSING" - | "PRODUCT_NOT_PUBLISHED" - | "PRODUCT_UNAVAILABLE_FOR_PURCHASE" - | "REQUIRED" - | "SHIPPING_METHOD_NOT_APPLICABLE" - | "SHIPPING_METHOD_REQUIRED" - | "TAX_ERROR" - | "TRANSACTION_ERROR" - | "UNIQUE" - | "VOID_INACTIVE_PAYMENT" - | "ZERO_QUANTITY"; + | 'BILLING_ADDRESS_NOT_SET' + | 'CANNOT_CANCEL_FULFILLMENT' + | 'CANNOT_CANCEL_ORDER' + | 'CANNOT_DELETE' + | 'CANNOT_DISCOUNT' + | 'CANNOT_FULFILL_UNPAID_ORDER' + | 'CANNOT_REFUND' + | 'CAPTURE_INACTIVE_PAYMENT' + | 'CHANNEL_INACTIVE' + | 'DUPLICATED_INPUT_ITEM' + | 'FULFILL_ORDER_LINE' + | 'GIFT_CARD_LINE' + | 'GRAPHQL_ERROR' + | 'INSUFFICIENT_STOCK' + | 'INVALID' + | 'INVALID_QUANTITY' + | 'INVALID_VOUCHER' + | 'INVALID_VOUCHER_CODE' + | 'NON_EDITABLE_GIFT_LINE' + | 'NON_REMOVABLE_GIFT_LINE' + | 'NOT_AVAILABLE_IN_CHANNEL' + | 'NOT_EDITABLE' + | 'NOT_FOUND' + | 'ORDER_NO_SHIPPING_ADDRESS' + | 'PAYMENT_ERROR' + | 'PAYMENT_MISSING' + | 'PRODUCT_NOT_PUBLISHED' + | 'PRODUCT_UNAVAILABLE_FOR_PURCHASE' + | 'REQUIRED' + | 'SHIPPING_METHOD_NOT_APPLICABLE' + | 'SHIPPING_METHOD_REQUIRED' + | 'TAX_ERROR' + | 'TRANSACTION_ERROR' + | 'UNIQUE' + | 'VOID_INACTIVE_PAYMENT' + | 'ZERO_QUANTITY'; /** History log of the order. */ export type OrderEvent = Node & { /** Amount of money. */ - amount: Maybe; + amount: Maybe; /** App that performed the action. Requires of of the following permissions: MANAGE_APPS, MANAGE_ORDERS, OWNER. */ app: Maybe; /** Composed ID of the Fulfillment. */ - composedId: Maybe; + composedId: Maybe; /** Date when event happened at in ISO 8601 format. */ - date: Maybe; + date: Maybe; /** The discount applied to the order. */ discount: Maybe; /** Email of the customer. */ - email: Maybe; + email: Maybe; /** Type of an email sent to the customer. */ emailType: Maybe; /** The lines fulfilled. */ fulfilledItems: Maybe>; /** ID of the event associated with an order. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Number of an invoice related to the order. */ - invoiceNumber: Maybe; + invoiceNumber: Maybe; /** The concerned lines. */ lines: Maybe>; /** Content of the event. */ - message: Maybe; + message: Maybe; /** User-friendly number of an order. */ - orderNumber: Maybe; + orderNumber: Maybe; /** List of oversold lines names. */ - oversoldItems: Maybe>; + oversoldItems: Maybe>; /** The payment gateway of the payment. */ - paymentGateway: Maybe; + paymentGateway: Maybe; /** The payment reference from the payment provider. */ - paymentId: Maybe; + paymentId: Maybe; /** Number of items. */ - quantity: Maybe; + quantity: Maybe; /** The reference of payment's transaction. */ - reference: Maybe; + reference: Maybe; /** * The order event which is related to this event. * @@ -15740,9 +16166,9 @@ export type OrderEvent = Node & { /** The order which is related to this order. */ relatedOrder: Maybe; /** Define if shipping costs were included to the refund. */ - shippingCostsIncluded: Maybe; + shippingCostsIncluded: Maybe; /** The transaction reference of captured payment. */ - transactionReference: Maybe; + transactionReference: Maybe; /** Order event type. */ type: Maybe; /** User who performed the action. */ @@ -15756,12 +16182,12 @@ export type OrderEventCountableConnection = { /** Pagination data for this connection. */ pageInfo: PageInfo; /** A total count of items in the collection. */ - totalCount: Maybe; + totalCount: Maybe; }; export type OrderEventCountableEdge = { /** A cursor for use in pagination. */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node: OrderEvent; }; @@ -15772,13 +16198,13 @@ export type OrderEventDiscountObject = { /** Returns amount of discount. */ oldAmount: Maybe; /** Value of the discount. Can store fixed value or percent value. */ - oldValue: Maybe; + oldValue: Maybe; /** Type of the discount: fixed or percent. */ oldValueType: Maybe; /** Explanation for the applied discount. */ - reason: Maybe; + reason: Maybe; /** Value of the discount. Can store fixed value or percent value. */ - value: Scalars["PositiveDecimal"]["output"]; + value: Scalars['PositiveDecimal']['output']; /** Type of the discount: fixed or percent. */ valueType: DiscountValueTypeEnum; }; @@ -15787,76 +16213,76 @@ export type OrderEventOrderLineObject = { /** The discount applied to the order line. */ discount: Maybe; /** The variant name. */ - itemName: Maybe; + itemName: Maybe; /** The order line. */ orderLine: Maybe; /** The variant quantity. */ - quantity: Maybe; + quantity: Maybe; }; /** An enumeration. */ export type OrderEventsEmailsEnum = - | "CONFIRMED" - | "DIGITAL_LINKS" - | "FULFILLMENT_CONFIRMATION" - | "ORDER_CANCEL" - | "ORDER_CONFIRMATION" - | "ORDER_REFUND" - | "PAYMENT_CONFIRMATION" - | "SHIPPING_CONFIRMATION" - | "TRACKING_UPDATED"; + | 'CONFIRMED' + | 'DIGITAL_LINKS' + | 'FULFILLMENT_CONFIRMATION' + | 'ORDER_CANCEL' + | 'ORDER_CONFIRMATION' + | 'ORDER_REFUND' + | 'PAYMENT_CONFIRMATION' + | 'SHIPPING_CONFIRMATION' + | 'TRACKING_UPDATED'; /** The different order event types. */ export type OrderEventsEnum = - | "ADDED_PRODUCTS" - | "CANCELED" - | "CONFIRMED" - | "DRAFT_CREATED" - | "DRAFT_CREATED_FROM_REPLACE" - | "EMAIL_SENT" - | "EXPIRED" - | "EXTERNAL_SERVICE_NOTIFICATION" - | "FULFILLMENT_AWAITS_APPROVAL" - | "FULFILLMENT_CANCELED" - | "FULFILLMENT_FULFILLED_ITEMS" - | "FULFILLMENT_REFUNDED" - | "FULFILLMENT_REPLACED" - | "FULFILLMENT_RESTOCKED_ITEMS" - | "FULFILLMENT_RETURNED" - | "INVOICE_GENERATED" - | "INVOICE_REQUESTED" - | "INVOICE_SENT" - | "INVOICE_UPDATED" - | "NOTE_ADDED" - | "NOTE_UPDATED" - | "ORDER_DISCOUNT_ADDED" - | "ORDER_DISCOUNT_AUTOMATICALLY_UPDATED" - | "ORDER_DISCOUNT_DELETED" - | "ORDER_DISCOUNT_UPDATED" - | "ORDER_FULLY_PAID" - | "ORDER_LINE_DISCOUNT_REMOVED" - | "ORDER_LINE_DISCOUNT_UPDATED" - | "ORDER_LINE_PRODUCT_DELETED" - | "ORDER_LINE_VARIANT_DELETED" - | "ORDER_MARKED_AS_PAID" - | "ORDER_REPLACEMENT_CREATED" - | "OTHER" - | "OVERSOLD_ITEMS" - | "PAYMENT_AUTHORIZED" - | "PAYMENT_CAPTURED" - | "PAYMENT_FAILED" - | "PAYMENT_REFUNDED" - | "PAYMENT_VOIDED" - | "PLACED" - | "PLACED_FROM_DRAFT" - | "REMOVED_PRODUCTS" - | "TRACKING_UPDATED" - | "TRANSACTION_CANCEL_REQUESTED" - | "TRANSACTION_CHARGE_REQUESTED" - | "TRANSACTION_EVENT" - | "TRANSACTION_MARK_AS_PAID_FAILED" - | "TRANSACTION_REFUND_REQUESTED" - | "UPDATED_ADDRESS"; + | 'ADDED_PRODUCTS' + | 'CANCELED' + | 'CONFIRMED' + | 'DRAFT_CREATED' + | 'DRAFT_CREATED_FROM_REPLACE' + | 'EMAIL_SENT' + | 'EXPIRED' + | 'EXTERNAL_SERVICE_NOTIFICATION' + | 'FULFILLMENT_AWAITS_APPROVAL' + | 'FULFILLMENT_CANCELED' + | 'FULFILLMENT_FULFILLED_ITEMS' + | 'FULFILLMENT_REFUNDED' + | 'FULFILLMENT_REPLACED' + | 'FULFILLMENT_RESTOCKED_ITEMS' + | 'FULFILLMENT_RETURNED' + | 'INVOICE_GENERATED' + | 'INVOICE_REQUESTED' + | 'INVOICE_SENT' + | 'INVOICE_UPDATED' + | 'NOTE_ADDED' + | 'NOTE_UPDATED' + | 'ORDER_DISCOUNT_ADDED' + | 'ORDER_DISCOUNT_AUTOMATICALLY_UPDATED' + | 'ORDER_DISCOUNT_DELETED' + | 'ORDER_DISCOUNT_UPDATED' + | 'ORDER_FULLY_PAID' + | 'ORDER_LINE_DISCOUNT_REMOVED' + | 'ORDER_LINE_DISCOUNT_UPDATED' + | 'ORDER_LINE_PRODUCT_DELETED' + | 'ORDER_LINE_VARIANT_DELETED' + | 'ORDER_MARKED_AS_PAID' + | 'ORDER_REPLACEMENT_CREATED' + | 'OTHER' + | 'OVERSOLD_ITEMS' + | 'PAYMENT_AUTHORIZED' + | 'PAYMENT_CAPTURED' + | 'PAYMENT_FAILED' + | 'PAYMENT_REFUNDED' + | 'PAYMENT_VOIDED' + | 'PLACED' + | 'PLACED_FROM_DRAFT' + | 'REMOVED_PRODUCTS' + | 'TRACKING_UPDATED' + | 'TRANSACTION_CANCEL_REQUESTED' + | 'TRANSACTION_CHARGE_REQUESTED' + | 'TRANSACTION_EVENT' + | 'TRANSACTION_MARK_AS_PAID_FAILED' + | 'TRANSACTION_REFUND_REQUESTED' + | 'UPDATED_ADDRESS'; /** * Event sent when order becomes expired. @@ -15867,7 +16293,7 @@ export type OrderEventsEnum = */ export type OrderExpired = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The order the event relates to. */ @@ -15875,26 +16301,26 @@ export type OrderExpired = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; export type OrderFilterInput = { authorizeStatus?: InputMaybe>; - channels?: InputMaybe>; + channels?: InputMaybe>; chargeStatus?: InputMaybe>; - checkoutIds?: InputMaybe>; - checkoutTokens?: InputMaybe>; + checkoutIds?: InputMaybe>; + checkoutTokens?: InputMaybe>; created?: InputMaybe; - customer?: InputMaybe; - giftCardBought?: InputMaybe; - giftCardUsed?: InputMaybe; - ids?: InputMaybe>; - isClickAndCollect?: InputMaybe; - isPreorder?: InputMaybe; + customer?: InputMaybe; + giftCardBought?: InputMaybe; + giftCardUsed?: InputMaybe; + ids?: InputMaybe>; + isClickAndCollect?: InputMaybe; + isPreorder?: InputMaybe; metadata?: InputMaybe>; - numbers?: InputMaybe>; + numbers?: InputMaybe>; paymentStatus?: InputMaybe>; - search?: InputMaybe; + search?: InputMaybe; status?: InputMaybe>; updatedAt?: InputMaybe; }; @@ -15906,7 +16332,7 @@ export type OrderFilterInput = { */ export type OrderFilterShippingMethods = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The order the event relates to. */ @@ -15920,7 +16346,7 @@ export type OrderFilterShippingMethods = Event & { */ shippingMethods: Maybe>; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -15946,31 +16372,31 @@ export type OrderFulfill = { export type OrderFulfillInput = { /** If true, then allow proceed fulfillment when stock is exceeded. */ - allowStockToBeExceeded?: InputMaybe; + allowStockToBeExceeded?: InputMaybe; /** List of items informing how to fulfill the order. */ lines: Array; /** If true, send an email notification to the customer. */ - notifyCustomer?: InputMaybe; + notifyCustomer?: InputMaybe; /** * Fulfillment tracking number. * * Added in Saleor 3.6. */ - trackingNumber?: InputMaybe; + trackingNumber?: InputMaybe; }; export type OrderFulfillLineInput = { /** The ID of the order line. */ - orderLineId?: InputMaybe; + orderLineId?: InputMaybe; /** List of stock items to create. */ stocks: Array; }; export type OrderFulfillStockInput = { /** The number of line items to be fulfilled from given warehouse. */ - quantity: Scalars["Int"]["input"]; + quantity: Scalars['Int']['input']; /** ID of the warehouse from which the item will be fulfilled. */ - warehouse: Scalars["ID"]["input"]; + warehouse: Scalars['ID']['input']; }; /** @@ -15980,7 +16406,7 @@ export type OrderFulfillStockInput = { */ export type OrderFulfilled = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The order the event relates to. */ @@ -15988,7 +16414,7 @@ export type OrderFulfilled = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -15998,7 +16424,7 @@ export type OrderFulfilled = Event & { */ export type OrderFullyPaid = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The order the event relates to. */ @@ -16006,7 +16432,7 @@ export type OrderFullyPaid = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -16018,7 +16444,7 @@ export type OrderFullyPaid = Event & { */ export type OrderFullyRefunded = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The order the event relates to. */ @@ -16026,7 +16452,7 @@ export type OrderFullyRefunded = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -16050,7 +16476,7 @@ export type OrderGrantRefundCreateError = { /** The error code. */ code: OrderGrantRefundCreateErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** * List of lines which cause the error. * @@ -16060,21 +16486,21 @@ export type OrderGrantRefundCreateError = { */ lines: Maybe>; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type OrderGrantRefundCreateErrorCode = - | "AMOUNT_GREATER_THAN_AVAILABLE" - | "GRAPHQL_ERROR" - | "INVALID" - | "NOT_FOUND" - | "REQUIRED" - | "SHIPPING_COSTS_ALREADY_GRANTED"; + | 'AMOUNT_GREATER_THAN_AVAILABLE' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'REQUIRED' + | 'SHIPPING_COSTS_ALREADY_GRANTED'; export type OrderGrantRefundCreateInput = { /** Amount of the granted refund. If not provided, the amount will be calculated automatically based on provided `lines` and `grantRefundForShipping`. */ - amount?: InputMaybe; + amount?: InputMaybe; /** * Determine if granted refund should include shipping costs. * @@ -16082,7 +16508,7 @@ export type OrderGrantRefundCreateInput = { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - grantRefundForShipping?: InputMaybe; + grantRefundForShipping?: InputMaybe; /** * Lines to assign to granted refund. * @@ -16092,7 +16518,7 @@ export type OrderGrantRefundCreateInput = { */ lines?: InputMaybe>; /** Reason of the granted refund. */ - reason?: InputMaybe; + reason?: InputMaybe; /** * The ID of the transaction item related to the granted refund. If `amount` provided in the input, the transaction.chargedAmount needs to be equal or greater than provided `amount`.If `amount` is not provided in the input and calculated automatically by Saleor, the `min(calculatedAmount, transaction.chargedAmount)` will be used.Field will be required starting from Saleor 3.21. * @@ -16100,33 +16526,33 @@ export type OrderGrantRefundCreateInput = { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - transactionId?: InputMaybe; + transactionId?: InputMaybe; }; export type OrderGrantRefundCreateLineError = { /** The error code. */ code: OrderGrantRefundCreateLineErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The ID of the line related to the error. */ - lineId: Scalars["ID"]["output"]; + lineId: Scalars['ID']['output']; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type OrderGrantRefundCreateLineErrorCode = - | "GRAPHQL_ERROR" - | "NOT_FOUND" - | "QUANTITY_GREATER_THAN_AVAILABLE"; + | 'GRAPHQL_ERROR' + | 'NOT_FOUND' + | 'QUANTITY_GREATER_THAN_AVAILABLE'; export type OrderGrantRefundCreateLineInput = { /** The ID of the order line. */ - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; /** The quantity of line items to be marked to refund. */ - quantity: Scalars["Int"]["input"]; + quantity: Scalars['Int']['input']; /** Reason of the granted refund for the line. */ - reason?: InputMaybe; + reason?: InputMaybe; }; /** @@ -16158,9 +16584,9 @@ export type OrderGrantRefundUpdateError = { /** The error code. */ code: OrderGrantRefundUpdateErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; /** * List of lines to remove which cause the error. * @@ -16173,12 +16599,12 @@ export type OrderGrantRefundUpdateError = { /** An enumeration. */ export type OrderGrantRefundUpdateErrorCode = - | "AMOUNT_GREATER_THAN_AVAILABLE" - | "GRAPHQL_ERROR" - | "INVALID" - | "NOT_FOUND" - | "REQUIRED" - | "SHIPPING_COSTS_ALREADY_GRANTED"; + | 'AMOUNT_GREATER_THAN_AVAILABLE' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'REQUIRED' + | 'SHIPPING_COSTS_ALREADY_GRANTED'; export type OrderGrantRefundUpdateInput = { /** @@ -16190,7 +16616,7 @@ export type OrderGrantRefundUpdateInput = { */ addLines?: InputMaybe>; /** Amount of the granted refund. if not provided and `addLines` or `removeLines` or `grantRefundForShipping` is provided, amount will be calculated automatically. */ - amount?: InputMaybe; + amount?: InputMaybe; /** * Determine if granted refund should include shipping costs. * @@ -16198,9 +16624,9 @@ export type OrderGrantRefundUpdateInput = { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - grantRefundForShipping?: InputMaybe; + grantRefundForShipping?: InputMaybe; /** Reason of the granted refund. */ - reason?: InputMaybe; + reason?: InputMaybe; /** * Lines to remove from granted refund. * @@ -16208,7 +16634,7 @@ export type OrderGrantRefundUpdateInput = { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - removeLines?: InputMaybe>; + removeLines?: InputMaybe>; /** * The ID of the transaction item related to the granted refund. If `amount` provided in the input, the transaction.chargedAmount needs to be equal or greater than provided `amount`.If `amount` is not provided in the input and calculated automatically by Saleor, the `min(calculatedAmount, transaction.chargedAmount)` will be used.Field will be required starting from Saleor 3.21. * @@ -16216,34 +16642,34 @@ export type OrderGrantRefundUpdateInput = { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - transactionId?: InputMaybe; + transactionId?: InputMaybe; }; export type OrderGrantRefundUpdateLineAddInput = { /** The ID of the order line. */ - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; /** The quantity of line items to be marked to refund. */ - quantity: Scalars["Int"]["input"]; + quantity: Scalars['Int']['input']; /** Reason of the granted refund for the line. */ - reason?: InputMaybe; + reason?: InputMaybe; }; export type OrderGrantRefundUpdateLineError = { /** The error code. */ code: OrderGrantRefundUpdateLineErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The ID of the line related to the error. */ - lineId: Scalars["ID"]["output"]; + lineId: Scalars['ID']['output']; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type OrderGrantRefundUpdateLineErrorCode = - | "GRAPHQL_ERROR" - | "NOT_FOUND" - | "QUANTITY_GREATER_THAN_AVAILABLE"; + | 'GRAPHQL_ERROR' + | 'NOT_FOUND' + | 'QUANTITY_GREATER_THAN_AVAILABLE'; /** * The details of granted refund. @@ -16258,8 +16684,8 @@ export type OrderGrantedRefund = { /** App that performed the action. */ app: Maybe; /** Time of creation. */ - createdAt: Scalars["DateTime"]["output"]; - id: Scalars["ID"]["output"]; + createdAt: Scalars['DateTime']['output']; + id: Scalars['ID']['output']; /** * Lines assigned to the granted refund. * @@ -16269,7 +16695,7 @@ export type OrderGrantedRefund = { */ lines: Maybe>; /** Reason of the refund. */ - reason: Maybe; + reason: Maybe; /** * If true, the refunded amount includes the shipping price.If false, the refunded amount does not include the shipping price. * @@ -16277,7 +16703,7 @@ export type OrderGrantedRefund = { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - shippingCostsIncluded: Scalars["Boolean"]["output"]; + shippingCostsIncluded: Scalars['Boolean']['output']; /** * Status of the granted refund calculated based on transactionItem assigned to granted refund. * @@ -16297,7 +16723,7 @@ export type OrderGrantedRefund = { */ transactionEvents: Maybe>; /** Time of last update. */ - updatedAt: Scalars["DateTime"]["output"]; + updatedAt: Scalars['DateTime']['output']; /** User who performed the action. Requires of of the following permissions: MANAGE_USERS, MANAGE_STAFF, OWNER. */ user: Maybe; }; @@ -16310,13 +16736,13 @@ export type OrderGrantedRefund = { * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ export type OrderGrantedRefundLine = { - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Line of the order associated with this granted refund. */ orderLine: OrderLine; /** Number of items to refund. */ - quantity: Scalars["Int"]["output"]; + quantity: Scalars['Int']['output']; /** Reason for refunding the line. */ - reason: Maybe; + reason: Maybe; }; /** @@ -16329,186 +16755,190 @@ export type OrderGrantedRefundLine = { * */ export type OrderGrantedRefundStatusEnum = - | "FAILURE" - | "NONE" - | "PENDING" - | "SUCCESS"; + | 'FAILURE' + | 'NONE' + | 'PENDING' + | 'SUCCESS'; /** Represents order line of particular order. */ -export type OrderLine = Node & - ObjectWithMetadata & { - /** - * List of allocations across warehouses. - * - * Requires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS. - */ - allocations: Maybe>; - digitalContentUrl: Maybe; - /** ID of the order line. */ - id: Scalars["ID"]["output"]; - /** - * Determine if the line is a gift. - * - * Added in Saleor 3.19. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - isGift: Maybe; - /** - * Returns True, if the line unit price was overridden. - * - * Added in Saleor 3.14. - */ - isPriceOverridden: Maybe; - /** Whether the product variant requires shipping. */ - isShippingRequired: Scalars["Boolean"]["output"]; - /** - * List of public metadata items. Can be accessed without permissions. - * - * Added in Saleor 3.5. - */ - metadata: Array; - /** - * A single key from public metadata. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.5. - */ - metafield: Maybe; - /** - * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.5. - */ - metafields: Maybe; - /** - * List of private metadata items. Requires staff permissions to access. - * - * Added in Saleor 3.5. - */ - privateMetadata: Array; - /** - * A single key from private metadata. Requires staff permissions to access. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.5. - */ - privateMetafield: Maybe; - /** - * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.5. - */ - privateMetafields: Maybe; - /** Name of the product in order line. */ - productName: Scalars["String"]["output"]; - /** SKU of the product variant. */ - productSku: Maybe; - /** The ID of the product variant. */ - productVariantId: Maybe; - /** Number of variant items ordered. */ - quantity: Scalars["Int"]["output"]; - /** Number of variant items fulfilled. */ - quantityFulfilled: Scalars["Int"]["output"]; - /** - * A quantity of items remaining to be fulfilled. - * - * Added in Saleor 3.1. - */ - quantityToFulfill: Scalars["Int"]["output"]; - /** - * Denormalized sale ID, set when order line is created for a product variant that is on sale. - * - * Added in Saleor 3.14. - */ - saleId: Maybe; - /** - * Denormalized tax class of the product in this order line. - * - * Added in Saleor 3.9. - * - * Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. - */ - taxClass: Maybe; - /** - * Denormalized public metadata of the tax class. - * - * Added in Saleor 3.9. - */ - taxClassMetadata: Array; - /** - * Denormalized name of the tax class. - * - * Added in Saleor 3.9. - */ - taxClassName: Maybe; - /** - * Denormalized private metadata of the tax class. Requires staff permissions to access. - * - * Added in Saleor 3.9. - */ - taxClassPrivateMetadata: Array; - /** Rate of tax applied on product variant. */ - taxRate: Scalars["Float"]["output"]; - thumbnail: Maybe; - /** Price of the order line. */ - totalPrice: TaxedMoney; - /** Product name in the customer's language */ - translatedProductName: Scalars["String"]["output"]; - /** Variant name in the customer's language */ - translatedVariantName: Scalars["String"]["output"]; - /** Price of the order line without discounts. */ - undiscountedTotalPrice: TaxedMoney; - /** Price of the single item in the order line without applied an order line discount. */ - undiscountedUnitPrice: TaxedMoney; - /** The discount applied to the single order line. */ - unitDiscount: Money; - /** Reason for any discounts applied on a product in the order. */ - unitDiscountReason: Maybe; - /** Type of the discount: fixed or percent */ - unitDiscountType: Maybe; - /** Value of the discount. Can store fixed value or percent value */ - unitDiscountValue: Scalars["PositiveDecimal"]["output"]; - /** Price of the single item in the order line. */ - unitPrice: TaxedMoney; - /** A purchased product variant. Note: this field may be null if the variant has been removed from stock at all. Requires one of the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. */ - variant: Maybe; - /** Name of the variant of product in order line. */ - variantName: Scalars["String"]["output"]; - /** - * Voucher code that was used for this order line. - * - * Added in Saleor 3.14. - */ - voucherCode: Maybe; - }; +export type OrderLine = Node & ObjectWithMetadata & { + /** + * List of allocations across warehouses. + * + * Requires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS. + */ + allocations: Maybe>; + digitalContentUrl: Maybe; + /** ID of the order line. */ + id: Scalars['ID']['output']; + /** + * Determine if the line is a gift. + * + * Added in Saleor 3.19. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + isGift: Maybe; + /** + * Returns True, if the line unit price was overridden. + * + * Added in Saleor 3.14. + */ + isPriceOverridden: Maybe; + /** Whether the product variant requires shipping. */ + isShippingRequired: Scalars['Boolean']['output']; + /** + * List of public metadata items. Can be accessed without permissions. + * + * Added in Saleor 3.5. + */ + metadata: Array; + /** + * A single key from public metadata. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.5. + */ + metafield: Maybe; + /** + * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.5. + */ + metafields: Maybe; + /** + * List of private metadata items. Requires staff permissions to access. + * + * Added in Saleor 3.5. + */ + privateMetadata: Array; + /** + * A single key from private metadata. Requires staff permissions to access. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.5. + */ + privateMetafield: Maybe; + /** + * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.5. + */ + privateMetafields: Maybe; + /** Name of the product in order line. */ + productName: Scalars['String']['output']; + /** SKU of the product variant. */ + productSku: Maybe; + /** The ID of the product variant. */ + productVariantId: Maybe; + /** Number of variant items ordered. */ + quantity: Scalars['Int']['output']; + /** Number of variant items fulfilled. */ + quantityFulfilled: Scalars['Int']['output']; + /** + * A quantity of items remaining to be fulfilled. + * + * Added in Saleor 3.1. + */ + quantityToFulfill: Scalars['Int']['output']; + /** + * Denormalized sale ID, set when order line is created for a product variant that is on sale. + * + * Added in Saleor 3.14. + */ + saleId: Maybe; + /** + * Denormalized tax class of the product in this order line. + * + * Added in Saleor 3.9. + * + * Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. + */ + taxClass: Maybe; + /** + * Denormalized public metadata of the tax class. + * + * Added in Saleor 3.9. + */ + taxClassMetadata: Array; + /** + * Denormalized name of the tax class. + * + * Added in Saleor 3.9. + */ + taxClassName: Maybe; + /** + * Denormalized private metadata of the tax class. Requires staff permissions to access. + * + * Added in Saleor 3.9. + */ + taxClassPrivateMetadata: Array; + /** Rate of tax applied on product variant. */ + taxRate: Scalars['Float']['output']; + thumbnail: Maybe; + /** Price of the order line. */ + totalPrice: TaxedMoney; + /** Product name in the customer's language */ + translatedProductName: Scalars['String']['output']; + /** Variant name in the customer's language */ + translatedVariantName: Scalars['String']['output']; + /** Price of the order line without discounts. */ + undiscountedTotalPrice: TaxedMoney; + /** Price of the single item in the order line without applied an order line discount. */ + undiscountedUnitPrice: TaxedMoney; + /** The discount applied to the single order line. */ + unitDiscount: Money; + /** Reason for any discounts applied on a product in the order. */ + unitDiscountReason: Maybe; + /** Type of the discount: fixed or percent */ + unitDiscountType: Maybe; + /** Value of the discount. Can store fixed value or percent value */ + unitDiscountValue: Scalars['PositiveDecimal']['output']; + /** Price of the single item in the order line. */ + unitPrice: TaxedMoney; + /** A purchased product variant. Note: this field may be null if the variant has been removed from stock at all. Requires one of the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. */ + variant: Maybe; + /** Name of the variant of product in order line. */ + variantName: Scalars['String']['output']; + /** + * Voucher code that was used for this order line. + * + * Added in Saleor 3.14. + */ + voucherCode: Maybe; +}; + /** Represents order line of particular order. */ export type OrderLineMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents order line of particular order. */ export type OrderLineMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Represents order line of particular order. */ export type OrderLinePrivateMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents order line of particular order. */ export type OrderLinePrivateMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Represents order line of particular order. */ export type OrderLineThumbnailArgs = { format?: InputMaybe; - size?: InputMaybe; + size?: InputMaybe; }; export type OrderLineCreateInput = { @@ -16517,7 +16947,7 @@ export type OrderLineCreateInput = { * * Added in Saleor 3.6. */ - forceNewLine?: InputMaybe; + forceNewLine?: InputMaybe; /** * Custom price of the item.When the line with the same variant will be provided multiple times, the last price will be used. * @@ -16525,11 +16955,11 @@ export type OrderLineCreateInput = { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - price?: InputMaybe; + price?: InputMaybe; /** Number of variant items ordered. */ - quantity: Scalars["Int"]["input"]; + quantity: Scalars['Int']['input']; /** Product variant ID. */ - variantId: Scalars["ID"]["input"]; + variantId: Scalars['ID']['input']; }; /** @@ -16579,7 +17009,7 @@ export type OrderLineDiscountUpdate = { export type OrderLineInput = { /** Number of variant items ordered. */ - quantity: Scalars["Int"]["input"]; + quantity: Scalars['Int']['input']; }; /** @@ -16631,7 +17061,7 @@ export type OrderMarkAsPaid = { */ export type OrderMetadataUpdated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The order the event relates to. */ @@ -16639,7 +17069,7 @@ export type OrderMetadataUpdated = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -16663,17 +17093,19 @@ export type OrderNoteAddError = { /** The error code. */ code: Maybe; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ -export type OrderNoteAddErrorCode = "GRAPHQL_ERROR" | "REQUIRED"; +export type OrderNoteAddErrorCode = + | 'GRAPHQL_ERROR' + | 'REQUIRED'; export type OrderNoteInput = { /** Note message. */ - message: Scalars["String"]["input"]; + message: Scalars['String']['input']; }; /** @@ -16697,21 +17129,25 @@ export type OrderNoteUpdateError = { /** The error code. */ code: Maybe; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type OrderNoteUpdateErrorCode = - | "GRAPHQL_ERROR" - | "NOT_FOUND" - | "REQUIRED"; + | 'GRAPHQL_ERROR' + | 'NOT_FOUND' + | 'REQUIRED'; export type OrderOrCheckout = Checkout | Order; /** An enumeration. */ -export type OrderOriginEnum = "BULK_CREATE" | "CHECKOUT" | "DRAFT" | "REISSUE"; +export type OrderOriginEnum = + | 'BULK_CREATE' + | 'CHECKOUT' + | 'DRAFT' + | 'REISSUE'; /** * Payment has been made. The order may be partially or fully paid. @@ -16722,7 +17158,7 @@ export type OrderOriginEnum = "BULK_CREATE" | "CHECKOUT" | "DRAFT" | "REISSUE"; */ export type OrderPaid = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The order the event relates to. */ @@ -16730,7 +17166,7 @@ export type OrderPaid = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; export type OrderPredicateInput = { @@ -16757,25 +17193,25 @@ export type OrderRefund = { export type OrderRefundFulfillmentLineInput = { /** The ID of the fulfillment line to refund. */ - fulfillmentLineId: Scalars["ID"]["input"]; + fulfillmentLineId: Scalars['ID']['input']; /** The number of items to be refunded. */ - quantity: Scalars["Int"]["input"]; + quantity: Scalars['Int']['input']; }; export type OrderRefundLineInput = { /** The ID of the order line to refund. */ - orderLineId: Scalars["ID"]["input"]; + orderLineId: Scalars['ID']['input']; /** The number of items to be refunded. */ - quantity: Scalars["Int"]["input"]; + quantity: Scalars['Int']['input']; }; export type OrderRefundProductsInput = { /** The total amount of refund when the value is provided manually. */ - amountToRefund?: InputMaybe; + amountToRefund?: InputMaybe; /** List of fulfilled lines to refund. */ fulfillmentLines?: InputMaybe>; /** If true, Saleor will refund shipping costs. If amountToRefund is providedincludeShippingCosts will be ignored. */ - includeShippingCosts?: InputMaybe; + includeShippingCosts?: InputMaybe; /** List of unfulfilled lines to refund. */ orderLines?: InputMaybe>; }; @@ -16789,7 +17225,7 @@ export type OrderRefundProductsInput = { */ export type OrderRefunded = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The order the event relates to. */ @@ -16797,38 +17233,38 @@ export type OrderRefunded = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; export type OrderReturnFulfillmentLineInput = { /** The ID of the fulfillment line to return. */ - fulfillmentLineId: Scalars["ID"]["input"]; + fulfillmentLineId: Scalars['ID']['input']; /** The number of items to be returned. */ - quantity: Scalars["Int"]["input"]; + quantity: Scalars['Int']['input']; /** Determines, if the line should be added to replace order. */ - replace?: InputMaybe; + replace?: InputMaybe; }; export type OrderReturnLineInput = { /** The ID of the order line to return. */ - orderLineId: Scalars["ID"]["input"]; + orderLineId: Scalars['ID']['input']; /** The number of items to be returned. */ - quantity: Scalars["Int"]["input"]; + quantity: Scalars['Int']['input']; /** Determines, if the line should be added to replace order. */ - replace?: InputMaybe; + replace?: InputMaybe; }; export type OrderReturnProductsInput = { /** The total amount of refund when the value is provided manually. */ - amountToRefund?: InputMaybe; + amountToRefund?: InputMaybe; /** List of fulfilled lines to return. */ fulfillmentLines?: InputMaybe>; /** If true, Saleor will refund shipping costs. If amountToRefund is providedincludeShippingCosts will be ignored. */ - includeShippingCosts?: InputMaybe; + includeShippingCosts?: InputMaybe; /** List of unfulfilled lines to return. */ orderLines?: InputMaybe>; /** If true, Saleor will call refund action for all lines. */ - refund?: InputMaybe; + refund?: InputMaybe; }; /** Represents the channel-specific order settings. */ @@ -16840,11 +17276,11 @@ export type OrderSettings = { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - allowUnpaidOrders: Scalars["Boolean"]["output"]; + allowUnpaidOrders: Scalars['Boolean']['output']; /** When disabled, all new orders from checkout will be marked as unconfirmed. When enabled orders from checkout will become unfulfilled immediately. */ - automaticallyConfirmAllNewOrders: Scalars["Boolean"]["output"]; + automaticallyConfirmAllNewOrders: Scalars['Boolean']['output']; /** When enabled, all non-shippable gift card orders will be fulfilled automatically. */ - automaticallyFulfillNonShippableGiftCard: Scalars["Boolean"]["output"]; + automaticallyFulfillNonShippableGiftCard: Scalars['Boolean']['output']; /** * The time in days after expired orders will be deleted. * @@ -16852,7 +17288,7 @@ export type OrderSettings = { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - deleteExpiredOrdersAfter: Scalars["Day"]["output"]; + deleteExpiredOrdersAfter: Scalars['Day']['output']; /** * Expiration time in minutes. Default null - means do not expire any orders. * @@ -16860,7 +17296,7 @@ export type OrderSettings = { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - expireOrdersAfter: Maybe; + expireOrdersAfter: Maybe; /** * Determine if voucher applied on draft order should be count toward voucher usage. * @@ -16868,7 +17304,7 @@ export type OrderSettings = { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - includeDraftOrderInVoucherUsage: Scalars["Boolean"]["output"]; + includeDraftOrderInVoucherUsage: Scalars['Boolean']['output']; /** * Determine what strategy will be used to mark the order as paid. Based on the chosen option, the proper object will be created and attached to the order when it's manually marked as paid. * `PAYMENT_FLOW` - [default option] creates the `Payment` object. @@ -16885,13 +17321,14 @@ export type OrderSettingsError = { /** The error code. */ code: OrderSettingsErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ -export type OrderSettingsErrorCode = "INVALID"; +export type OrderSettingsErrorCode = + | 'INVALID'; export type OrderSettingsInput = { /** @@ -16901,13 +17338,11 @@ export type OrderSettingsInput = { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - allowUnpaidOrders?: InputMaybe; + allowUnpaidOrders?: InputMaybe; /** When disabled, all new orders from checkout will be marked as unconfirmed. When enabled orders from checkout will become unfulfilled immediately. By default set to True */ - automaticallyConfirmAllNewOrders?: InputMaybe; + automaticallyConfirmAllNewOrders?: InputMaybe; /** When enabled, all non-shippable gift card orders will be fulfilled automatically. By default set to True. */ - automaticallyFulfillNonShippableGiftCard?: InputMaybe< - Scalars["Boolean"]["input"] - >; + automaticallyFulfillNonShippableGiftCard?: InputMaybe; /** * The time in days after expired orders will be deleted.Allowed range is from 1 to 120. * @@ -16915,7 +17350,7 @@ export type OrderSettingsInput = { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - deleteExpiredOrdersAfter?: InputMaybe; + deleteExpiredOrdersAfter?: InputMaybe; /** * Expiration time in minutes. Default null - means do not expire any orders. Enter 0 or null to disable. * @@ -16923,7 +17358,7 @@ export type OrderSettingsInput = { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - expireOrdersAfter?: InputMaybe; + expireOrdersAfter?: InputMaybe; /** * Specify whether a coupon applied to draft orders will count toward voucher usage. * @@ -16933,7 +17368,7 @@ export type OrderSettingsInput = { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - includeDraftOrderInVoucherUsage?: InputMaybe; + includeDraftOrderInVoucherUsage?: InputMaybe; /** * Determine what strategy will be used to mark the order as paid. Based on the chosen option, the proper object will be created and attached to the order when it's manually marked as paid. * `PAYMENT_FLOW` - [default option] creates the `Payment` object. @@ -16961,11 +17396,9 @@ export type OrderSettingsUpdate = { export type OrderSettingsUpdateInput = { /** When disabled, all new orders from checkout will be marked as unconfirmed. When enabled orders from checkout will become unfulfilled immediately. By default set to True */ - automaticallyConfirmAllNewOrders?: InputMaybe; + automaticallyConfirmAllNewOrders?: InputMaybe; /** When enabled, all non-shippable gift card orders will be fulfilled automatically. By default set to True. */ - automaticallyFulfillNonShippableGiftCard?: InputMaybe< - Scalars["Boolean"]["input"] - >; + automaticallyFulfillNonShippableGiftCard?: InputMaybe; }; export type OrderSortField = @@ -16974,25 +17407,25 @@ export type OrderSortField = * * DEPRECATED: this field will be removed in Saleor 4.0. */ - | "CREATED_AT" + | 'CREATED_AT' /** * Sort orders by creation date. * * DEPRECATED: this field will be removed in Saleor 4.0. */ - | "CREATION_DATE" + | 'CREATION_DATE' /** Sort orders by customer. */ - | "CUSTOMER" + | 'CUSTOMER' /** Sort orders by fulfillment status. */ - | "FULFILLMENT_STATUS" + | 'FULFILLMENT_STATUS' /** Sort orders by last modified at. */ - | "LAST_MODIFIED_AT" + | 'LAST_MODIFIED_AT' /** Sort orders by number. */ - | "NUMBER" + | 'NUMBER' /** Sort orders by payment. */ - | "PAYMENT" + | 'PAYMENT' /** Sort orders by rank. Note: This option is available only with the `search` filter. */ - | "RANK"; + | 'RANK'; export type OrderSortingInput = { /** Specifies the direction in which to sort orders. */ @@ -17003,24 +17436,24 @@ export type OrderSortingInput = { /** An enumeration. */ export type OrderStatus = - | "CANCELED" - | "DRAFT" - | "EXPIRED" - | "FULFILLED" - | "PARTIALLY_FULFILLED" - | "PARTIALLY_RETURNED" - | "RETURNED" - | "UNCONFIRMED" - | "UNFULFILLED"; + | 'CANCELED' + | 'DRAFT' + | 'EXPIRED' + | 'FULFILLED' + | 'PARTIALLY_FULFILLED' + | 'PARTIALLY_RETURNED' + | 'RETURNED' + | 'UNCONFIRMED' + | 'UNFULFILLED'; export type OrderStatusFilter = - | "CANCELED" - | "FULFILLED" - | "PARTIALLY_FULFILLED" - | "READY_TO_CAPTURE" - | "READY_TO_FULFILL" - | "UNCONFIRMED" - | "UNFULFILLED"; + | 'CANCELED' + | 'FULFILLED' + | 'PARTIALLY_FULFILLED' + | 'READY_TO_CAPTURE' + | 'READY_TO_FULFILL' + | 'UNCONFIRMED' + | 'UNFULFILLED'; /** * Updates an order. @@ -17042,11 +17475,11 @@ export type OrderUpdateInput = { * * Added in Saleor 3.10. */ - externalReference?: InputMaybe; + externalReference?: InputMaybe; /** Shipping address of the customer. */ shippingAddress?: InputMaybe; /** Email address of the customer. */ - userEmail?: InputMaybe; + userEmail?: InputMaybe; }; /** @@ -17064,7 +17497,7 @@ export type OrderUpdateShipping = { export type OrderUpdateShippingInput = { /** ID of the selected shipping method, pass null to remove currently assigned shipping method. */ - shippingMethod?: InputMaybe; + shippingMethod?: InputMaybe; }; /** @@ -17074,7 +17507,7 @@ export type OrderUpdateShippingInput = { */ export type OrderUpdated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The order the event relates to. */ @@ -17082,7 +17515,7 @@ export type OrderUpdated = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -17098,104 +17531,108 @@ export type OrderVoid = { orderErrors: Array; }; -/** A static page that can be manually added by a shop operator through the dashboard. */ -export type Page = Node & - ObjectWithMetadata & { - /** List of attributes assigned to this product. */ - attributes: Array; - /** - * Content of the page. - * - * Rich text format. For reference see https://editorjs.io/ - */ - content: Maybe; - /** - * Content of the page. - * - * Rich text format. For reference see https://editorjs.io/ - * @deprecated This field will be removed in Saleor 4.0. Use the `content` field instead. - */ - contentJson: Scalars["JSONString"]["output"]; - /** Date and time at which page was created. */ - created: Scalars["DateTime"]["output"]; - /** ID of the page. */ - id: Scalars["ID"]["output"]; - /** Determines if the page is published. */ - isPublished: Scalars["Boolean"]["output"]; - /** List of public metadata items. Can be accessed without permissions. */ - metadata: Array; - /** - * A single key from public metadata. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - metafield: Maybe; - /** - * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - metafields: Maybe; - /** Determines the type of page */ - pageType: PageType; - /** List of private metadata items. Requires staff permissions to access. */ - privateMetadata: Array; - /** - * A single key from private metadata. Requires staff permissions to access. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - privateMetafield: Maybe; - /** - * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - privateMetafields: Maybe; - /** @deprecated This field will be removed in Saleor 4.0. Use the `publishedAt` field to fetch the publication date. */ - publicationDate: Maybe; - /** - * The page publication date. - * - * Added in Saleor 3.3. - */ - publishedAt: Maybe; - /** Description of the page for SEO. */ - seoDescription: Maybe; - /** Title of the page for SEO. */ - seoTitle: Maybe; - /** Slug of the page. */ - slug: Scalars["String"]["output"]; - /** Title of the page. */ - title: Scalars["String"]["output"]; - /** Returns translated page fields for the given language code. */ - translation: Maybe; - }; +/** A static page that can be manually added by a shop operator through the dashboard. */ +export type Page = Node & ObjectWithMetadata & { + /** List of attributes assigned to this product. */ + attributes: Array; + /** + * Content of the page. + * + * Rich text format. For reference see https://editorjs.io/ + */ + content: Maybe; + /** + * Content of the page. + * + * Rich text format. For reference see https://editorjs.io/ + * @deprecated This field will be removed in Saleor 4.0. Use the `content` field instead. + */ + contentJson: Scalars['JSONString']['output']; + /** Date and time at which page was created. */ + created: Scalars['DateTime']['output']; + /** ID of the page. */ + id: Scalars['ID']['output']; + /** Determines if the page is published. */ + isPublished: Scalars['Boolean']['output']; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * A single key from public metadata. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + metafield: Maybe; + /** + * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + metafields: Maybe; + /** Determines the type of page */ + pageType: PageType; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * A single key from private metadata. Requires staff permissions to access. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + privateMetafield: Maybe; + /** + * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + privateMetafields: Maybe; + /** @deprecated This field will be removed in Saleor 4.0. Use the `publishedAt` field to fetch the publication date. */ + publicationDate: Maybe; + /** + * The page publication date. + * + * Added in Saleor 3.3. + */ + publishedAt: Maybe; + /** Description of the page for SEO. */ + seoDescription: Maybe; + /** Title of the page for SEO. */ + seoTitle: Maybe; + /** Slug of the page. */ + slug: Scalars['String']['output']; + /** Title of the page. */ + title: Scalars['String']['output']; + /** Returns translated page fields for the given language code. */ + translation: Maybe; +}; + /** A static page that can be manually added by a shop operator through the dashboard. */ export type PageMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** A static page that can be manually added by a shop operator through the dashboard. */ export type PageMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** A static page that can be manually added by a shop operator through the dashboard. */ export type PagePrivateMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** A static page that can be manually added by a shop operator through the dashboard. */ export type PagePrivateMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** A static page that can be manually added by a shop operator through the dashboard. */ export type PageTranslationArgs = { languageCode: LanguageCodeEnum; @@ -17234,7 +17671,7 @@ export type PageAttributeUnassign = { */ export type PageBulkDelete = { /** Returns how many objects were affected. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ pageErrors: Array; @@ -17247,7 +17684,7 @@ export type PageBulkDelete = { */ export type PageBulkPublish = { /** Returns how many objects were affected. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ pageErrors: Array; @@ -17258,12 +17695,12 @@ export type PageCountableConnection = { /** Pagination data for this connection. */ pageInfo: PageInfo; /** A total count of items in the collection. */ - totalCount: Maybe; + totalCount: Maybe; }; export type PageCountableEdge = { /** A cursor for use in pagination. */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node: Page; }; @@ -17288,29 +17725,29 @@ export type PageCreateInput = { * * Rich text format. For reference see https://editorjs.io/ */ - content?: InputMaybe; + content?: InputMaybe; /** Determines if page is visible in the storefront. */ - isPublished?: InputMaybe; + isPublished?: InputMaybe; /** ID of the page type that page belongs to. */ - pageType: Scalars["ID"]["input"]; + pageType: Scalars['ID']['input']; /** * Publication date. ISO 8601 standard. * * DEPRECATED: this field will be removed in Saleor 4.0. Use `publishedAt` field instead. */ - publicationDate?: InputMaybe; + publicationDate?: InputMaybe; /** * Publication date time. ISO 8601 standard. * * Added in Saleor 3.3. */ - publishedAt?: InputMaybe; + publishedAt?: InputMaybe; /** Search engine optimization fields. */ seo?: InputMaybe; /** Page internal name. */ - slug?: InputMaybe; + slug?: InputMaybe; /** Page title. */ - title?: InputMaybe; + title?: InputMaybe; }; /** @@ -17320,7 +17757,7 @@ export type PageCreateInput = { */ export type PageCreated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The page the event relates to. */ @@ -17328,7 +17765,7 @@ export type PageCreated = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -17350,7 +17787,7 @@ export type PageDelete = { */ export type PageDeleted = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The page the event relates to. */ @@ -17358,50 +17795,50 @@ export type PageDeleted = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; export type PageError = { /** List of attributes IDs which causes the error. */ - attributes: Maybe>; + attributes: Maybe>; /** The error code. */ code: PageErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; /** List of attribute values IDs which causes the error. */ - values: Maybe>; + values: Maybe>; }; /** An enumeration. */ export type PageErrorCode = - | "ATTRIBUTE_ALREADY_ASSIGNED" - | "DUPLICATED_INPUT_ITEM" - | "GRAPHQL_ERROR" - | "INVALID" - | "NOT_FOUND" - | "REQUIRED" - | "UNIQUE"; + | 'ATTRIBUTE_ALREADY_ASSIGNED' + | 'DUPLICATED_INPUT_ITEM' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'REQUIRED' + | 'UNIQUE'; export type PageFilterInput = { - ids?: InputMaybe>; + ids?: InputMaybe>; metadata?: InputMaybe>; - pageTypes?: InputMaybe>; - search?: InputMaybe; - slugs?: InputMaybe>; + pageTypes?: InputMaybe>; + search?: InputMaybe; + slugs?: InputMaybe>; }; /** The Relay compliant `PageInfo` type, containing data necessary to paginate this connection. */ export type PageInfo = { /** When paginating forwards, the cursor to continue. */ - endCursor: Maybe; + endCursor: Maybe; /** When paginating forwards, are there more items? */ - hasNextPage: Scalars["Boolean"]["output"]; + hasNextPage: Scalars['Boolean']['output']; /** When paginating backwards, are there more items? */ - hasPreviousPage: Scalars["Boolean"]["output"]; + hasPreviousPage: Scalars['Boolean']['output']; /** When paginating backwards, the cursor to continue. */ - startCursor: Maybe; + startCursor: Maybe; }; export type PageInput = { @@ -17412,27 +17849,27 @@ export type PageInput = { * * Rich text format. For reference see https://editorjs.io/ */ - content?: InputMaybe; + content?: InputMaybe; /** Determines if page is visible in the storefront. */ - isPublished?: InputMaybe; + isPublished?: InputMaybe; /** * Publication date. ISO 8601 standard. * * DEPRECATED: this field will be removed in Saleor 4.0. Use `publishedAt` field instead. */ - publicationDate?: InputMaybe; + publicationDate?: InputMaybe; /** * Publication date time. ISO 8601 standard. * * Added in Saleor 3.3. */ - publishedAt?: InputMaybe; + publishedAt?: InputMaybe; /** Search engine optimization fields. */ seo?: InputMaybe; /** Page internal name. */ - slug?: InputMaybe; + slug?: InputMaybe; /** Page title. */ - title?: InputMaybe; + title?: InputMaybe; }; /** @@ -17454,31 +17891,31 @@ export type PageSortField = * * DEPRECATED: this field will be removed in Saleor 4.0. */ - | "CREATED_AT" + | 'CREATED_AT' /** * Sort pages by creation date. * * DEPRECATED: this field will be removed in Saleor 4.0. */ - | "CREATION_DATE" + | 'CREATION_DATE' /** * Sort pages by publication date. * * DEPRECATED: this field will be removed in Saleor 4.0. */ - | "PUBLICATION_DATE" + | 'PUBLICATION_DATE' /** * Sort pages by publication date. * * DEPRECATED: this field will be removed in Saleor 4.0. */ - | "PUBLISHED_AT" + | 'PUBLISHED_AT' /** Sort pages by slug. */ - | "SLUG" + | 'SLUG' /** Sort pages by title. */ - | "TITLE" + | 'TITLE' /** Sort pages by visibility. */ - | "VISIBILITY"; + | 'VISIBILITY'; export type PageSortingInput = { /** Specifies the direction in which to sort pages. */ @@ -17496,16 +17933,16 @@ export type PageTranslatableContent = Node & { * * Rich text format. For reference see https://editorjs.io/ */ - content: Maybe; + content: Maybe; /** * Content of the page. * * Rich text format. For reference see https://editorjs.io/ * @deprecated This field will be removed in Saleor 4.0. Use the `content` field instead. */ - contentJson: Maybe; + contentJson: Maybe; /** The ID of the page translatable content. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** * A static page that can be manually added by a shop operator through the dashboard. * @deprecated This field will be removed in Saleor 4.0. Get model fields from the root level queries. @@ -17516,17 +17953,18 @@ export type PageTranslatableContent = Node & { * * Added in Saleor 3.14. */ - pageId: Scalars["ID"]["output"]; + pageId: Scalars['ID']['output']; /** SEO description to translate. */ - seoDescription: Maybe; + seoDescription: Maybe; /** SEO title to translate. */ - seoTitle: Maybe; + seoTitle: Maybe; /** Page title to translate. */ - title: Scalars["String"]["output"]; + title: Scalars['String']['output']; /** Returns translated page fields for the given language code. */ translation: Maybe; }; + /** Represents page's original translatable fields and related translations. */ export type PageTranslatableContentTranslationArgs = { languageCode: LanguageCodeEnum; @@ -17551,24 +17989,24 @@ export type PageTranslation = Node & { * * Rich text format. For reference see https://editorjs.io/ */ - content: Maybe; + content: Maybe; /** * Translated description of the page. * * Rich text format. For reference see https://editorjs.io/ * @deprecated This field will be removed in Saleor 4.0. Use the `content` field instead. */ - contentJson: Maybe; + contentJson: Maybe; /** The ID of the page translation. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Translation language. */ language: LanguageDisplay; /** Translated SEO description. */ - seoDescription: Maybe; + seoDescription: Maybe; /** Translated SEO title. */ - seoTitle: Maybe; + seoTitle: Maybe; /** Translated page title. */ - title: Maybe; + title: Maybe; /** * Represents the page fields to translate. * @@ -17583,97 +18021,101 @@ export type PageTranslationInput = { * * Rich text format. For reference see https://editorjs.io/ */ - content?: InputMaybe; - seoDescription?: InputMaybe; - seoTitle?: InputMaybe; - title?: InputMaybe; + content?: InputMaybe; + seoDescription?: InputMaybe; + seoTitle?: InputMaybe; + title?: InputMaybe; }; /** Represents a type of page. It defines what attributes are available to pages of this type. */ -export type PageType = Node & - ObjectWithMetadata & { - /** Page attributes of that page type. */ - attributes: Maybe>; - /** - * Attributes that can be assigned to the page type. - * - * Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES. - */ - availableAttributes: Maybe; - /** - * Whether page type has pages assigned. - * - * Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES. - */ - hasPages: Maybe; - /** ID of the page type. */ - id: Scalars["ID"]["output"]; - /** List of public metadata items. Can be accessed without permissions. */ - metadata: Array; - /** - * A single key from public metadata. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - metafield: Maybe; - /** - * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - metafields: Maybe; - /** Name of the page type. */ - name: Scalars["String"]["output"]; - /** List of private metadata items. Requires staff permissions to access. */ - privateMetadata: Array; - /** - * A single key from private metadata. Requires staff permissions to access. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - privateMetafield: Maybe; - /** - * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - privateMetafields: Maybe; - /** Slug of the page type. */ - slug: Scalars["String"]["output"]; - }; +export type PageType = Node & ObjectWithMetadata & { + /** Page attributes of that page type. */ + attributes: Maybe>; + /** + * Attributes that can be assigned to the page type. + * + * Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES. + */ + availableAttributes: Maybe; + /** + * Whether page type has pages assigned. + * + * Requires one of the following permissions: MANAGE_PAGES, MANAGE_PAGE_TYPES_AND_ATTRIBUTES. + */ + hasPages: Maybe; + /** ID of the page type. */ + id: Scalars['ID']['output']; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * A single key from public metadata. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + metafield: Maybe; + /** + * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + metafields: Maybe; + /** Name of the page type. */ + name: Scalars['String']['output']; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * A single key from private metadata. Requires staff permissions to access. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + privateMetafield: Maybe; + /** + * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + privateMetafields: Maybe; + /** Slug of the page type. */ + slug: Scalars['String']['output']; +}; + /** Represents a type of page. It defines what attributes are available to pages of this type. */ export type PageTypeAvailableAttributesArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; filter?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; where?: InputMaybe; }; + /** Represents a type of page. It defines what attributes are available to pages of this type. */ export type PageTypeMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents a type of page. It defines what attributes are available to pages of this type. */ export type PageTypeMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Represents a type of page. It defines what attributes are available to pages of this type. */ export type PageTypePrivateMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents a type of page. It defines what attributes are available to pages of this type. */ export type PageTypePrivateMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; /** @@ -17683,7 +18125,7 @@ export type PageTypePrivateMetafieldsArgs = { */ export type PageTypeBulkDelete = { /** Returns how many objects were affected. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ pageErrors: Array; @@ -17694,12 +18136,12 @@ export type PageTypeCountableConnection = { /** Pagination data for this connection. */ pageInfo: PageInfo; /** A total count of items in the collection. */ - totalCount: Maybe; + totalCount: Maybe; }; export type PageTypeCountableEdge = { /** A cursor for use in pagination. */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node: PageType; }; @@ -17718,11 +18160,11 @@ export type PageTypeCreate = { export type PageTypeCreateInput = { /** List of attribute IDs to be assigned to the page type. */ - addAttributes?: InputMaybe>; + addAttributes?: InputMaybe>; /** Name of the page type. */ - name?: InputMaybe; + name?: InputMaybe; /** Page type slug. */ - slug?: InputMaybe; + slug?: InputMaybe; }; /** @@ -17732,7 +18174,7 @@ export type PageTypeCreateInput = { */ export type PageTypeCreated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The page type the event relates to. */ @@ -17740,7 +18182,7 @@ export type PageTypeCreated = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -17762,7 +18204,7 @@ export type PageTypeDelete = { */ export type PageTypeDeleted = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The page type the event relates to. */ @@ -17770,12 +18212,12 @@ export type PageTypeDeleted = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; export type PageTypeFilterInput = { - search?: InputMaybe; - slugs?: InputMaybe>; + search?: InputMaybe; + slugs?: InputMaybe>; }; /** @@ -17793,9 +18235,9 @@ export type PageTypeReorderAttributes = { export type PageTypeSortField = /** Sort page types by name. */ - | "NAME" + | 'NAME' /** Sort page types by slug. */ - | "SLUG"; + | 'SLUG'; export type PageTypeSortingInput = { /** Specifies the direction in which to sort page types. */ @@ -17818,13 +18260,13 @@ export type PageTypeUpdate = { export type PageTypeUpdateInput = { /** List of attribute IDs to be assigned to the page type. */ - addAttributes?: InputMaybe>; + addAttributes?: InputMaybe>; /** Name of the page type. */ - name?: InputMaybe; + name?: InputMaybe; /** List of attribute IDs to be assigned to the page type. */ - removeAttributes?: InputMaybe>; + removeAttributes?: InputMaybe>; /** Page type slug. */ - slug?: InputMaybe; + slug?: InputMaybe; }; /** @@ -17834,7 +18276,7 @@ export type PageTypeUpdateInput = { */ export type PageTypeUpdated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The page type the event relates to. */ @@ -17842,7 +18284,7 @@ export type PageTypeUpdated = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -17864,7 +18306,7 @@ export type PageUpdate = { */ export type PageUpdated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The page the event relates to. */ @@ -17872,7 +18314,7 @@ export type PageUpdated = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -17889,128 +18331,131 @@ export type PasswordChange = { }; /** Represents a payment of a given type. */ -export type Payment = Node & - ObjectWithMetadata & { - /** - * List of actions that can be performed in the current state of a payment. - * - * Requires one of the following permissions: MANAGE_ORDERS. - */ - actions: Array; - /** - * Maximum amount of money that can be captured. - * - * Requires one of the following permissions: MANAGE_ORDERS. - */ - availableCaptureAmount: Maybe; - /** - * Maximum amount of money that can be refunded. - * - * Requires one of the following permissions: MANAGE_ORDERS. - */ - availableRefundAmount: Maybe; - /** Total amount captured for this payment. */ - capturedAmount: Maybe; - /** Internal payment status. */ - chargeStatus: PaymentChargeStatusEnum; - /** Checkout associated with a payment. */ - checkout: Maybe; - /** Date and time at which payment was created. */ - created: Scalars["DateTime"]["output"]; - /** The details of the card used for this payment. */ - creditCard: Maybe; - /** - * IP address of the user who created the payment. - * - * Requires one of the following permissions: MANAGE_ORDERS. - */ - customerIpAddress: Maybe; - /** Payment gateway used for payment. */ - gateway: Scalars["String"]["output"]; - /** ID of the payment. */ - id: Scalars["ID"]["output"]; - /** Determines if the payment is active or not. */ - isActive: Scalars["Boolean"]["output"]; - /** List of public metadata items. Can be accessed without permissions. */ - metadata: Array; - /** - * A single key from public metadata. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - metafield: Maybe; - /** - * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - metafields: Maybe; - /** Date and time at which payment was modified. */ - modified: Scalars["DateTime"]["output"]; - /** Order associated with a payment. */ - order: Maybe; - /** - * Informs whether this is a partial payment. - * - * Added in Saleor 3.14. - */ - partial: Scalars["Boolean"]["output"]; - /** Type of method used for payment. */ - paymentMethodType: Scalars["String"]["output"]; - /** List of private metadata items. Requires staff permissions to access. */ - privateMetadata: Array; - /** - * A single key from private metadata. Requires staff permissions to access. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - privateMetafield: Maybe; - /** - * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - privateMetafields: Maybe; - /** - * PSP reference of the payment. - * - * Added in Saleor 3.14. - */ - pspReference: Maybe; - /** Unique token associated with a payment. */ - token: Scalars["String"]["output"]; - /** Total amount of the payment. */ - total: Maybe; - /** - * List of all transactions within this payment. - * - * Requires one of the following permissions: MANAGE_ORDERS. - */ - transactions: Maybe>; - }; +export type Payment = Node & ObjectWithMetadata & { + /** + * List of actions that can be performed in the current state of a payment. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + actions: Array; + /** + * Maximum amount of money that can be captured. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + availableCaptureAmount: Maybe; + /** + * Maximum amount of money that can be refunded. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + availableRefundAmount: Maybe; + /** Total amount captured for this payment. */ + capturedAmount: Maybe; + /** Internal payment status. */ + chargeStatus: PaymentChargeStatusEnum; + /** Checkout associated with a payment. */ + checkout: Maybe; + /** Date and time at which payment was created. */ + created: Scalars['DateTime']['output']; + /** The details of the card used for this payment. */ + creditCard: Maybe; + /** + * IP address of the user who created the payment. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + customerIpAddress: Maybe; + /** Payment gateway used for payment. */ + gateway: Scalars['String']['output']; + /** ID of the payment. */ + id: Scalars['ID']['output']; + /** Determines if the payment is active or not. */ + isActive: Scalars['Boolean']['output']; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * A single key from public metadata. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + metafield: Maybe; + /** + * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + metafields: Maybe; + /** Date and time at which payment was modified. */ + modified: Scalars['DateTime']['output']; + /** Order associated with a payment. */ + order: Maybe; + /** + * Informs whether this is a partial payment. + * + * Added in Saleor 3.14. + */ + partial: Scalars['Boolean']['output']; + /** Type of method used for payment. */ + paymentMethodType: Scalars['String']['output']; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * A single key from private metadata. Requires staff permissions to access. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + privateMetafield: Maybe; + /** + * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + privateMetafields: Maybe; + /** + * PSP reference of the payment. + * + * Added in Saleor 3.14. + */ + pspReference: Maybe; + /** Unique token associated with a payment. */ + token: Scalars['String']['output']; + /** Total amount of the payment. */ + total: Maybe; + /** + * List of all transactions within this payment. + * + * Requires one of the following permissions: MANAGE_ORDERS. + */ + transactions: Maybe>; +}; + /** Represents a payment of a given type. */ export type PaymentMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents a payment of a given type. */ export type PaymentMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Represents a payment of a given type. */ export type PaymentPrivateMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents a payment of a given type. */ export type PaymentPrivateMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; /** @@ -18020,7 +18465,7 @@ export type PaymentPrivateMetafieldsArgs = { */ export type PaymentAuthorize = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** Look up a payment. */ @@ -18028,7 +18473,7 @@ export type PaymentAuthorize = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -18051,7 +18496,7 @@ export type PaymentCapture = { */ export type PaymentCaptureEvent = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** Look up a payment. */ @@ -18059,24 +18504,24 @@ export type PaymentCaptureEvent = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** An enumeration. */ export type PaymentChargeStatusEnum = - | "CANCELLED" - | "FULLY_CHARGED" - | "FULLY_REFUNDED" - | "NOT_CHARGED" - | "PARTIALLY_CHARGED" - | "PARTIALLY_REFUNDED" - | "PENDING" - | "REFUSED"; + | 'CANCELLED' + | 'FULLY_CHARGED' + | 'FULLY_REFUNDED' + | 'NOT_CHARGED' + | 'PARTIALLY_CHARGED' + | 'PARTIALLY_REFUNDED' + | 'PENDING' + | 'REFUSED'; /** Check payment balance. */ export type PaymentCheckBalance = { /** Response from the gateway. */ - data: Maybe; + data: Maybe; errors: Array; /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ paymentErrors: Array; @@ -18086,11 +18531,11 @@ export type PaymentCheckBalanceInput = { /** Information about card. */ card: CardInput; /** Slug of a channel for which the data should be returned. */ - channel: Scalars["String"]["input"]; + channel: Scalars['String']['input']; /** An ID of a payment gateway to check. */ - gatewayId: Scalars["String"]["input"]; + gatewayId: Scalars['String']['input']; /** Payment method name. */ - method: Scalars["String"]["input"]; + method: Scalars['String']['input']; }; /** @@ -18100,7 +18545,7 @@ export type PaymentCheckBalanceInput = { */ export type PaymentConfirmEvent = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** Look up a payment. */ @@ -18108,7 +18553,7 @@ export type PaymentConfirmEvent = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; export type PaymentCountableConnection = { @@ -18116,12 +18561,12 @@ export type PaymentCountableConnection = { /** Pagination data for this connection. */ pageInfo: PageInfo; /** A total count of items in the collection. */ - totalCount: Maybe; + totalCount: Maybe; }; export type PaymentCountableEdge = { /** A cursor for use in pagination. */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node: Payment; }; @@ -18130,42 +18575,42 @@ export type PaymentError = { /** The error code. */ code: PaymentErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; /** List of variant IDs which causes the error. */ - variants: Maybe>; + variants: Maybe>; }; /** An enumeration. */ export type PaymentErrorCode = - | "BALANCE_CHECK_ERROR" - | "BILLING_ADDRESS_NOT_SET" - | "CHANNEL_INACTIVE" - | "CHECKOUT_COMPLETION_IN_PROGRESS" - | "CHECKOUT_EMAIL_NOT_SET" - | "GRAPHQL_ERROR" - | "INVALID" - | "INVALID_SHIPPING_METHOD" - | "NOT_FOUND" - | "NOT_SUPPORTED_GATEWAY" - | "NO_CHECKOUT_LINES" - | "PARTIAL_PAYMENT_NOT_ALLOWED" - | "PAYMENT_ERROR" - | "REQUIRED" - | "SHIPPING_ADDRESS_NOT_SET" - | "SHIPPING_METHOD_NOT_SET" - | "UNAVAILABLE_VARIANT_IN_CHANNEL" - | "UNIQUE"; + | 'BALANCE_CHECK_ERROR' + | 'BILLING_ADDRESS_NOT_SET' + | 'CHANNEL_INACTIVE' + | 'CHECKOUT_COMPLETION_IN_PROGRESS' + | 'CHECKOUT_EMAIL_NOT_SET' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'INVALID_SHIPPING_METHOD' + | 'NOT_FOUND' + | 'NOT_SUPPORTED_GATEWAY' + | 'NO_CHECKOUT_LINES' + | 'PARTIAL_PAYMENT_NOT_ALLOWED' + | 'PAYMENT_ERROR' + | 'REQUIRED' + | 'SHIPPING_ADDRESS_NOT_SET' + | 'SHIPPING_METHOD_NOT_SET' + | 'UNAVAILABLE_VARIANT_IN_CHANNEL' + | 'UNIQUE'; export type PaymentFilterInput = { - checkouts?: InputMaybe>; + checkouts?: InputMaybe>; /** * Filter by ids. * * Added in Saleor 3.8. */ - ids?: InputMaybe>; + ids?: InputMaybe>; }; /** Available payment gateway backend with configuration necessary to setup client. */ @@ -18173,35 +18618,35 @@ export type PaymentGateway = { /** Payment gateway client configuration. */ config: Array; /** Payment gateway supported currencies. */ - currencies: Array; + currencies: Array; /** Payment gateway ID. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Payment gateway name. */ - name: Scalars["String"]["output"]; + name: Scalars['String']['output']; }; export type PaymentGatewayConfig = { /** The JSON data required to initialize the payment gateway. */ - data: Maybe; + data: Maybe; errors: Maybe>; /** The app identifier. */ - id: Scalars["String"]["output"]; + id: Scalars['String']['output']; }; export type PaymentGatewayConfigError = { /** The error code. */ code: PaymentGatewayConfigErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type PaymentGatewayConfigErrorCode = - | "GRAPHQL_ERROR" - | "INVALID" - | "NOT_FOUND"; + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND'; /** * Initializes a payment gateway session. It triggers the webhook `PAYMENT_GATEWAY_INITIALIZE_SESSION`, to the requested `paymentGateways`. If `paymentGateways` is not provided, the webhook will be send to all subscribed payment gateways. There is a limit of 100 transaction items per checkout / order. @@ -18220,16 +18665,16 @@ export type PaymentGatewayInitializeError = { /** The error code. */ code: PaymentGatewayInitializeErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type PaymentGatewayInitializeErrorCode = - | "GRAPHQL_ERROR" - | "INVALID" - | "NOT_FOUND"; + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND'; /** * Event sent when user wants to initialize the payment gateway. @@ -18240,11 +18685,11 @@ export type PaymentGatewayInitializeErrorCode = */ export type PaymentGatewayInitializeSession = Event & { /** Amount requested for initializing the payment gateway. */ - amount: Maybe; + amount: Maybe; /** Payment gateway data in JSON format, received from storefront. */ - data: Maybe; + data: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ @@ -18252,7 +18697,7 @@ export type PaymentGatewayInitializeSession = Event & { /** Checkout or order */ sourceObject: OrderOrCheckout; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -18269,7 +18714,7 @@ export type PaymentGatewayInitializeSession = Event & { */ export type PaymentGatewayInitializeTokenization = { /** A data returned by payment app. */ - data: Maybe; + data: Maybe; errors: Array; /** A status of the payment gateway initialization. */ result: PaymentGatewayInitializeTokenizationResult; @@ -18279,18 +18724,18 @@ export type PaymentGatewayInitializeTokenizationError = { /** The error code. */ code: PaymentGatewayInitializeTokenizationErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type PaymentGatewayInitializeTokenizationErrorCode = - | "CHANNEL_INACTIVE" - | "GATEWAY_ERROR" - | "GRAPHQL_ERROR" - | "INVALID" - | "NOT_FOUND"; + | 'CHANNEL_INACTIVE' + | 'GATEWAY_ERROR' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND'; /** * Result of initialize payment gateway for tokenization of payment method. @@ -18302,9 +18747,9 @@ export type PaymentGatewayInitializeTokenizationErrorCode = * */ export type PaymentGatewayInitializeTokenizationResult = - | "FAILED_TO_DELIVER" - | "FAILED_TO_INITIALIZE" - | "SUCCESSFULLY_INITIALIZED"; + | 'FAILED_TO_DELIVER' + | 'FAILED_TO_INITIALIZE' + | 'SUCCESSFULLY_INITIALIZED'; /** * Event sent to initialize a new session in payment gateway to store the payment method. @@ -18317,9 +18762,9 @@ export type PaymentGatewayInitializeTokenizationSession = Event & { /** Channel related to the requested action. */ channel: Channel; /** Payment gateway data in JSON format, received from storefront. */ - data: Maybe; + data: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ @@ -18327,14 +18772,14 @@ export type PaymentGatewayInitializeTokenizationSession = Event & { /** The user related to the requested action. */ user: User; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; export type PaymentGatewayToInitialize = { /** The data that will be passed to the payment gateway. */ - data?: InputMaybe; + data?: InputMaybe; /** The identifier of the payment gateway app to initialize. */ - id: Scalars["String"]["input"]; + id: Scalars['String']['input']; }; /** Initializes payment process when it is required by gateway. */ @@ -18349,18 +18794,18 @@ export type PaymentInitialize = { /** Server-side data generated by a payment gateway. Optional step when the payment provider requires an additional action to initialize payment session. */ export type PaymentInitialized = { /** Initialized data by gateway. */ - data: Maybe; + data: Maybe; /** ID of a payment gateway. */ - gateway: Scalars["String"]["output"]; + gateway: Scalars['String']['output']; /** Payment gateway name. */ - name: Scalars["String"]["output"]; + name: Scalars['String']['output']; }; export type PaymentInput = { /** Total amount of the transaction, including all taxes and discounts. If no amount is provided, the checkout total will be used. */ - amount?: InputMaybe; + amount?: InputMaybe; /** A gateway to use with that payment. */ - gateway: Scalars["String"]["input"]; + gateway: Scalars['String']['input']; /** * User public metadata. * @@ -18368,7 +18813,7 @@ export type PaymentInput = { */ metadata?: InputMaybe>; /** URL of a storefront view where user should be redirected after requiring additional actions. Payment with additional actions will not be finished if this field is not provided. */ - returnUrl?: InputMaybe; + returnUrl?: InputMaybe; /** * Payment store type. * @@ -18376,7 +18821,7 @@ export type PaymentInput = { */ storePaymentMethod?: InputMaybe; /** Client-side generated payment token, representing customer's billing data in a secure manner. */ - token?: InputMaybe; + token?: InputMaybe; }; /** @@ -18388,13 +18833,13 @@ export type PaymentListGateways = Event & { /** The checkout the event relates to. */ checkout: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -18411,10 +18856,10 @@ export type PaymentListGateways = Event & { */ export type PaymentMethodInitializeTokenization = { /** A data returned by the payment app. */ - data: Maybe; + data: Maybe; errors: Array; /** The identifier of the payment method. */ - id: Maybe; + id: Maybe; /** A status of the payment method tokenization. */ result: PaymentMethodTokenizationResult; }; @@ -18423,18 +18868,18 @@ export type PaymentMethodInitializeTokenizationError = { /** The error code. */ code: PaymentMethodInitializeTokenizationErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type PaymentMethodInitializeTokenizationErrorCode = - | "CHANNEL_INACTIVE" - | "GATEWAY_ERROR" - | "GRAPHQL_ERROR" - | "INVALID" - | "NOT_FOUND"; + | 'CHANNEL_INACTIVE' + | 'GATEWAY_ERROR' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND'; /** * Event sent when user requests a tokenization of payment method. @@ -18447,9 +18892,9 @@ export type PaymentMethodInitializeTokenizationSession = Event & { /** Channel related to the requested action. */ channel: Channel; /** Payment gateway data in JSON format, received from storefront. */ - data: Maybe; + data: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The payment flow that the tokenized payment method should support. */ @@ -18459,7 +18904,7 @@ export type PaymentMethodInitializeTokenizationSession = Event & { /** The user related to the requested action. */ user: User; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -18476,10 +18921,10 @@ export type PaymentMethodInitializeTokenizationSession = Event & { */ export type PaymentMethodProcessTokenization = { /** A data returned by the payment app. */ - data: Maybe; + data: Maybe; errors: Array; /** The identifier of the payment method. */ - id: Maybe; + id: Maybe; /** A status of the payment method tokenization. */ result: PaymentMethodTokenizationResult; }; @@ -18488,18 +18933,18 @@ export type PaymentMethodProcessTokenizationError = { /** The error code. */ code: PaymentMethodProcessTokenizationErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type PaymentMethodProcessTokenizationErrorCode = - | "CHANNEL_INACTIVE" - | "GATEWAY_ERROR" - | "GRAPHQL_ERROR" - | "INVALID" - | "NOT_FOUND"; + | 'CHANNEL_INACTIVE' + | 'GATEWAY_ERROR' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND'; /** * Event sent when user continues a tokenization of payment method. @@ -18512,11 +18957,11 @@ export type PaymentMethodProcessTokenizationSession = Event & { /** Channel related to the requested action. */ channel: Channel; /** Payment gateway data in JSON format, received from storefront. */ - data: Maybe; + data: Maybe; /** The ID returned by app from `PAYMENT_METHOD_INITIALIZE_TOKENIZATION_SESSION` webhook. */ - id: Scalars["String"]["output"]; + id: Scalars['String']['output']; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ @@ -18524,16 +18969,16 @@ export type PaymentMethodProcessTokenizationSession = Event & { /** The user related to the requested action. */ user: User; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; export type PaymentMethodRequestDeleteError = { /** The error code. */ code: StoredPaymentMethodRequestDeleteErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** @@ -18548,11 +18993,11 @@ export type PaymentMethodRequestDeleteError = { * */ export type PaymentMethodTokenizationResult = - | "ADDITIONAL_ACTION_REQUIRED" - | "FAILED_TO_DELIVER" - | "FAILED_TO_TOKENIZE" - | "PENDING" - | "SUCCESSFULLY_TOKENIZED"; + | 'ADDITIONAL_ACTION_REQUIRED' + | 'FAILED_TO_DELIVER' + | 'FAILED_TO_TOKENIZE' + | 'PENDING' + | 'SUCCESSFULLY_TOKENIZED'; /** * Process payment. @@ -18561,7 +19006,7 @@ export type PaymentMethodTokenizationResult = */ export type PaymentProcessEvent = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** Look up a payment. */ @@ -18569,7 +19014,7 @@ export type PaymentProcessEvent = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -18592,7 +19037,7 @@ export type PaymentRefund = { */ export type PaymentRefundEvent = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** Look up a payment. */ @@ -18600,7 +19045,7 @@ export type PaymentRefundEvent = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** Represents the channel-specific payment settings. */ @@ -18631,7 +19076,7 @@ export type PaymentSource = { /** Stored credit card details if available. */ creditCardInfo: Maybe; /** Payment gateway name. */ - gateway: Scalars["String"]["output"]; + gateway: Scalars['String']['output']; /** * List of public metadata items. * @@ -18641,7 +19086,7 @@ export type PaymentSource = { */ metadata: Array; /** ID of stored payment method. */ - paymentMethodId: Maybe; + paymentMethodId: Maybe; }; /** @@ -18664,7 +19109,7 @@ export type PaymentVoid = { */ export type PaymentVoidEvent = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** Look up a payment. */ @@ -18672,7 +19117,7 @@ export type PaymentVoidEvent = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** Represents a permission object in a friendly form. */ @@ -18680,35 +19125,35 @@ export type Permission = { /** Internal code for permission. */ code: PermissionEnum; /** Describe action(s) allowed to do by permission. */ - name: Scalars["String"]["output"]; + name: Scalars['String']['output']; }; /** An enumeration. */ export type PermissionEnum = - | "HANDLE_CHECKOUTS" - | "HANDLE_PAYMENTS" - | "HANDLE_TAXES" - | "IMPERSONATE_USER" - | "MANAGE_APPS" - | "MANAGE_CHANNELS" - | "MANAGE_CHECKOUTS" - | "MANAGE_DISCOUNTS" - | "MANAGE_GIFT_CARD" - | "MANAGE_MENUS" - | "MANAGE_OBSERVABILITY" - | "MANAGE_ORDERS" - | "MANAGE_ORDERS_IMPORT" - | "MANAGE_PAGES" - | "MANAGE_PAGE_TYPES_AND_ATTRIBUTES" - | "MANAGE_PLUGINS" - | "MANAGE_PRODUCTS" - | "MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES" - | "MANAGE_SETTINGS" - | "MANAGE_SHIPPING" - | "MANAGE_STAFF" - | "MANAGE_TAXES" - | "MANAGE_TRANSLATIONS" - | "MANAGE_USERS"; + | 'HANDLE_CHECKOUTS' + | 'HANDLE_PAYMENTS' + | 'HANDLE_TAXES' + | 'IMPERSONATE_USER' + | 'MANAGE_APPS' + | 'MANAGE_CHANNELS' + | 'MANAGE_CHECKOUTS' + | 'MANAGE_DISCOUNTS' + | 'MANAGE_GIFT_CARD' + | 'MANAGE_MENUS' + | 'MANAGE_OBSERVABILITY' + | 'MANAGE_ORDERS' + | 'MANAGE_ORDERS_IMPORT' + | 'MANAGE_PAGES' + | 'MANAGE_PAGE_TYPES_AND_ATTRIBUTES' + | 'MANAGE_PLUGINS' + | 'MANAGE_PRODUCTS' + | 'MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES' + | 'MANAGE_SETTINGS' + | 'MANAGE_SHIPPING' + | 'MANAGE_STAFF' + | 'MANAGE_TAXES' + | 'MANAGE_TRANSLATIONS' + | 'MANAGE_USERS'; /** * Create new permission group. Apps are not allowed to perform this mutation. @@ -18733,13 +19178,13 @@ export type PermissionGroupCreateInput = { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - addChannels?: InputMaybe>; + addChannels?: InputMaybe>; /** List of permission code names to assign to this group. */ addPermissions?: InputMaybe>; /** List of users to assign to this group. */ - addUsers?: InputMaybe>; + addUsers?: InputMaybe>; /** Group name. */ - name: Scalars["String"]["input"]; + name: Scalars['String']['input']; /** * Determine if the group has restricted access to channels. DEFAULT: False * @@ -18747,7 +19192,7 @@ export type PermissionGroupCreateInput = { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - restrictedAccessToChannels?: InputMaybe; + restrictedAccessToChannels?: InputMaybe; }; /** @@ -18757,7 +19202,7 @@ export type PermissionGroupCreateInput = { */ export type PermissionGroupCreated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The permission group the event relates to. */ @@ -18765,7 +19210,7 @@ export type PermissionGroupCreated = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -18790,7 +19235,7 @@ export type PermissionGroupDelete = { */ export type PermissionGroupDeleted = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The permission group the event relates to. */ @@ -18798,45 +19243,45 @@ export type PermissionGroupDeleted = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; export type PermissionGroupError = { /** List of channels IDs which causes the error. */ - channels: Maybe>; + channels: Maybe>; /** The error code. */ code: PermissionGroupErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; /** List of permissions which causes the error. */ permissions: Maybe>; /** List of user IDs which causes the error. */ - users: Maybe>; + users: Maybe>; }; /** An enumeration. */ export type PermissionGroupErrorCode = - | "ASSIGN_NON_STAFF_MEMBER" - | "CANNOT_REMOVE_FROM_LAST_GROUP" - | "DUPLICATED_INPUT_ITEM" - | "LEFT_NOT_MANAGEABLE_PERMISSION" - | "OUT_OF_SCOPE_CHANNEL" - | "OUT_OF_SCOPE_PERMISSION" - | "OUT_OF_SCOPE_USER" - | "REQUIRED" - | "UNIQUE"; + | 'ASSIGN_NON_STAFF_MEMBER' + | 'CANNOT_REMOVE_FROM_LAST_GROUP' + | 'DUPLICATED_INPUT_ITEM' + | 'LEFT_NOT_MANAGEABLE_PERMISSION' + | 'OUT_OF_SCOPE_CHANNEL' + | 'OUT_OF_SCOPE_PERMISSION' + | 'OUT_OF_SCOPE_USER' + | 'REQUIRED' + | 'UNIQUE'; export type PermissionGroupFilterInput = { - ids?: InputMaybe>; - search?: InputMaybe; + ids?: InputMaybe>; + search?: InputMaybe; }; /** Sorting options for permission groups. */ export type PermissionGroupSortField = /** Sort permission group accounts by name. */ - "NAME"; + | 'NAME'; export type PermissionGroupSortingInput = { /** Specifies the direction in which to sort permission group. */ @@ -18868,13 +19313,13 @@ export type PermissionGroupUpdateInput = { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - addChannels?: InputMaybe>; + addChannels?: InputMaybe>; /** List of permission code names to assign to this group. */ addPermissions?: InputMaybe>; /** List of users to assign to this group. */ - addUsers?: InputMaybe>; + addUsers?: InputMaybe>; /** Group name. */ - name?: InputMaybe; + name?: InputMaybe; /** * List of channels to unassign from this group. * @@ -18882,11 +19327,11 @@ export type PermissionGroupUpdateInput = { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - removeChannels?: InputMaybe>; + removeChannels?: InputMaybe>; /** List of permission code names to unassign from this group. */ removePermissions?: InputMaybe>; /** List of users to unassign from this group. */ - removeUsers?: InputMaybe>; + removeUsers?: InputMaybe>; /** * Determine if the group has restricted access to channels. * @@ -18894,7 +19339,7 @@ export type PermissionGroupUpdateInput = { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - restrictedAccessToChannels?: InputMaybe; + restrictedAccessToChannels?: InputMaybe; }; /** @@ -18904,7 +19349,7 @@ export type PermissionGroupUpdateInput = { */ export type PermissionGroupUpdated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The permission group the event relates to. */ @@ -18912,7 +19357,7 @@ export type PermissionGroupUpdated = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** Plugin. */ @@ -18920,38 +19365,40 @@ export type Plugin = { /** Channel-specific plugin configuration. */ channelConfigurations: Array; /** Description of the plugin. */ - description: Scalars["String"]["output"]; + description: Scalars['String']['output']; /** Global configuration of the plugin (not channel-specific). */ globalConfiguration: Maybe; /** Identifier of the plugin. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Name of the plugin. */ - name: Scalars["String"]["output"]; + name: Scalars['String']['output']; }; /** Stores information about a configuration of plugin. */ export type PluginConfiguration = { /** Determines if plugin is active or not. */ - active: Scalars["Boolean"]["output"]; + active: Scalars['Boolean']['output']; /** The channel to which the plugin configuration is assigned to. */ channel: Maybe; /** Configuration of the plugin. */ configuration: Maybe>; }; -export type PluginConfigurationType = "GLOBAL" | "PER_CHANNEL"; +export type PluginConfigurationType = + | 'GLOBAL' + | 'PER_CHANNEL'; export type PluginCountableConnection = { edges: Array; /** Pagination data for this connection. */ pageInfo: PageInfo; /** A total count of items in the collection. */ - totalCount: Maybe; + totalCount: Maybe; }; export type PluginCountableEdge = { /** A cursor for use in pagination. */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node: Plugin; }; @@ -18960,27 +19407,29 @@ export type PluginError = { /** The error code. */ code: PluginErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type PluginErrorCode = - | "GRAPHQL_ERROR" - | "INVALID" - | "NOT_FOUND" - | "PLUGIN_MISCONFIGURED" - | "REQUIRED" - | "UNIQUE"; + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'PLUGIN_MISCONFIGURED' + | 'REQUIRED' + | 'UNIQUE'; export type PluginFilterInput = { - search?: InputMaybe; + search?: InputMaybe; statusInChannels?: InputMaybe; type?: InputMaybe; }; -export type PluginSortField = "IS_ACTIVE" | "NAME"; +export type PluginSortField = + | 'IS_ACTIVE' + | 'NAME'; export type PluginSortingInput = { /** Specifies the direction in which to sort plugins. */ @@ -18990,8 +19439,8 @@ export type PluginSortingInput = { }; export type PluginStatusInChannelsInput = { - active: Scalars["Boolean"]["input"]; - channels: Array; + active: Scalars['Boolean']['input']; + channels: Array; }; /** @@ -19008,276 +19457,290 @@ export type PluginUpdate = { export type PluginUpdateInput = { /** Indicates whether the plugin should be enabled. */ - active?: InputMaybe; + active?: InputMaybe; /** Configuration of the plugin. */ configuration?: InputMaybe>; }; /** An enumeration. */ -export type PostalCodeRuleInclusionTypeEnum = "EXCLUDE" | "INCLUDE"; +export type PostalCodeRuleInclusionTypeEnum = + | 'EXCLUDE' + | 'INCLUDE'; /** Represents preorder settings for product variant. */ export type PreorderData = { /** Preorder end date. */ - endDate: Maybe; + endDate: Maybe; /** * Total number of sold product variant during preorder. * * Requires one of the following permissions: MANAGE_PRODUCTS. */ - globalSoldUnits: Scalars["Int"]["output"]; + globalSoldUnits: Scalars['Int']['output']; /** * The global preorder threshold for product variant. * * Requires one of the following permissions: MANAGE_PRODUCTS. */ - globalThreshold: Maybe; + globalThreshold: Maybe; }; export type PreorderSettingsInput = { /** The end date for preorder. */ - endDate?: InputMaybe; + endDate?: InputMaybe; /** The global threshold for preorder variant. */ - globalThreshold?: InputMaybe; + globalThreshold?: InputMaybe; }; /** Represents preorder variant data for channel. */ export type PreorderThreshold = { /** Preorder threshold for product variant in this channel. */ - quantity: Maybe; + quantity: Maybe; /** Number of sold product variant in this channel. */ - soldUnits: Scalars["Int"]["output"]; + soldUnits: Scalars['Int']['output']; }; export type PriceInput = { /** Amount of money. */ - amount: Scalars["PositiveDecimal"]["input"]; + amount: Scalars['PositiveDecimal']['input']; /** Currency code. */ - currency: Scalars["String"]["input"]; + currency: Scalars['String']['input']; }; export type PriceRangeInput = { /** Price greater than or equal to. */ - gte?: InputMaybe; + gte?: InputMaybe; /** Price less than or equal to. */ - lte?: InputMaybe; + lte?: InputMaybe; }; /** Represents an individual item for sale in the storefront. */ -export type Product = Node & - ObjectWithMetadata & { - /** - * Get a single attribute attached to product by attribute slug. - * - * Added in Saleor 3.9. - */ - attribute: Maybe; - /** List of attributes assigned to this product. */ - attributes: Array; - /** - * Date when product is available for purchase. - * @deprecated This field will be removed in Saleor 4.0. Use the `availableForPurchaseAt` field to fetch the available for purchase date. - */ - availableForPurchase: Maybe; - /** Date when product is available for purchase. */ - availableForPurchaseAt: Maybe; - category: Maybe; - /** Channel given to retrieve this product. Also used by federation gateway to resolve this object in a federated query. */ - channel: Maybe; - /** - * List of availability in channels for the product. - * - * Requires one of the following permissions: MANAGE_PRODUCTS. - */ - channelListings: Maybe>; - /** @deprecated This field will be removed in Saleor 4.0. Use `Channel.taxConfiguration` field to determine whether tax collection is enabled. */ - chargeTaxes: Scalars["Boolean"]["output"]; - /** List of collections for the product. Requires the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. */ - collections: Maybe>; - /** The date and time when the product was created. */ - created: Scalars["DateTime"]["output"]; - /** Default variant of the product. */ - defaultVariant: Maybe; - /** - * Description of the product. - * - * Rich text format. For reference see https://editorjs.io/ - */ - description: Maybe; - /** - * Description of the product. - * - * Rich text format. For reference see https://editorjs.io/ - * @deprecated This field will be removed in Saleor 4.0. Use the `description` field instead. - */ - descriptionJson: Maybe; - /** - * External ID of this product. - * - * Added in Saleor 3.10. - */ - externalReference: Maybe; - /** The ID of the product. */ - id: Scalars["ID"]["output"]; - /** - * Get a single product image by ID. - * @deprecated This field will be removed in Saleor 4.0. Use the `mediaById` field instead. - */ - imageById: Maybe; - /** - * List of images for the product. - * @deprecated This field will be removed in Saleor 4.0. Use the `media` field instead. - */ - images: Maybe>; - /** Whether the product is in stock, set as available for purchase in the given channel, and published. */ - isAvailable: Maybe; - /** Refers to a state that can be set by admins to control whether a product is available for purchase in storefronts. This does not guarantee the availability of stock. When set to `False`, this product is still visible to customers, but it cannot be purchased. */ - isAvailableForPurchase: Maybe; - /** List of media for the product. */ - media: Maybe>; - /** Get a single product media by ID. */ - mediaById: Maybe; - /** List of public metadata items. Can be accessed without permissions. */ - metadata: Array; - /** - * A single key from public metadata. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - metafield: Maybe; - /** - * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - metafields: Maybe; - /** SEO description of the product. */ - name: Scalars["String"]["output"]; - /** Lists the storefront product's pricing, the current price and discounts, only meant for displaying. */ - pricing: Maybe; - /** List of private metadata items. Requires staff permissions to access. */ - privateMetadata: Array; - /** - * A single key from private metadata. Requires staff permissions to access. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - privateMetafield: Maybe; - /** - * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - privateMetafields: Maybe; - /** Type of the product. */ - productType: ProductType; - /** Rating of the product. */ - rating: Maybe; - /** SEO description of the product. */ - seoDescription: Maybe; - /** SEO title of the product. */ - seoTitle: Maybe; - /** Slug of the product. */ - slug: Scalars["String"]["output"]; - /** - * Tax class assigned to this product type. All products of this product type use this tax class, unless it's overridden in the `Product` type. - * - * Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. - */ - taxClass: Maybe; - /** - * A type of tax. Assigned by enabled tax gateway - * @deprecated This field will be removed in Saleor 4.0. Use `taxClass` field instead. - */ - taxType: Maybe; - /** Thumbnail of the product. */ - thumbnail: Maybe; - /** Returns translated product fields for the given language code. */ - translation: Maybe; - /** The date and time when the product was last updated. */ - updatedAt: Scalars["DateTime"]["output"]; - /** - * Get a single variant by SKU or ID. - * - * Added in Saleor 3.9. - * @deprecated This field will be removed in Saleor 4.0. Use top-level `variant` query. - */ - variant: Maybe; - /** List of variants for the product. Requires the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. */ - variants: Maybe>; - /** Weight of the product. */ - weight: Maybe; - }; +export type Product = Node & ObjectWithMetadata & { + /** + * Get a single attribute attached to product by attribute slug. + * + * Added in Saleor 3.9. + */ + attribute: Maybe; + /** List of attributes assigned to this product. */ + attributes: Array; + /** + * Date when product is available for purchase. + * @deprecated This field will be removed in Saleor 4.0. Use the `availableForPurchaseAt` field to fetch the available for purchase date. + */ + availableForPurchase: Maybe; + /** Date when product is available for purchase. */ + availableForPurchaseAt: Maybe; + category: Maybe; + /** Channel given to retrieve this product. Also used by federation gateway to resolve this object in a federated query. */ + channel: Maybe; + /** + * List of availability in channels for the product. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + channelListings: Maybe>; + /** @deprecated This field will be removed in Saleor 4.0. Use `Channel.taxConfiguration` field to determine whether tax collection is enabled. */ + chargeTaxes: Scalars['Boolean']['output']; + /** List of collections for the product. Requires the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. */ + collections: Maybe>; + /** The date and time when the product was created. */ + created: Scalars['DateTime']['output']; + /** Default variant of the product. */ + defaultVariant: Maybe; + /** + * Description of the product. + * + * Rich text format. For reference see https://editorjs.io/ + */ + description: Maybe; + /** + * Description of the product. + * + * Rich text format. For reference see https://editorjs.io/ + * @deprecated This field will be removed in Saleor 4.0. Use the `description` field instead. + */ + descriptionJson: Maybe; + /** + * External ID of this product. + * + * Added in Saleor 3.10. + */ + externalReference: Maybe; + /** The ID of the product. */ + id: Scalars['ID']['output']; + /** + * Get a single product image by ID. + * @deprecated This field will be removed in Saleor 4.0. Use the `mediaById` field instead. + */ + imageById: Maybe; + /** + * List of images for the product. + * @deprecated This field will be removed in Saleor 4.0. Use the `media` field instead. + */ + images: Maybe>; + /** Whether the product is in stock, set as available for purchase in the given channel, and published. */ + isAvailable: Maybe; + /** Refers to a state that can be set by admins to control whether a product is available for purchase in storefronts. This does not guarantee the availability of stock. When set to `False`, this product is still visible to customers, but it cannot be purchased. */ + isAvailableForPurchase: Maybe; + /** List of media for the product. */ + media: Maybe>; + /** Get a single product media by ID. */ + mediaById: Maybe; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * A single key from public metadata. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + metafield: Maybe; + /** + * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + metafields: Maybe; + /** SEO description of the product. */ + name: Scalars['String']['output']; + /** Lists the storefront product's pricing, the current price and discounts, only meant for displaying. */ + pricing: Maybe; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * A single key from private metadata. Requires staff permissions to access. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + privateMetafield: Maybe; + /** + * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + privateMetafields: Maybe; + /** Type of the product. */ + productType: ProductType; + /** Rating of the product. */ + rating: Maybe; + /** SEO description of the product. */ + seoDescription: Maybe; + /** SEO title of the product. */ + seoTitle: Maybe; + /** Slug of the product. */ + slug: Scalars['String']['output']; + /** + * Tax class assigned to this product type. All products of this product type use this tax class, unless it's overridden in the `Product` type. + * + * Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. + */ + taxClass: Maybe; + /** + * A type of tax. Assigned by enabled tax gateway + * @deprecated This field will be removed in Saleor 4.0. Use `taxClass` field instead. + */ + taxType: Maybe; + /** Thumbnail of the product. */ + thumbnail: Maybe; + /** Returns translated product fields for the given language code. */ + translation: Maybe; + /** The date and time when the product was last updated. */ + updatedAt: Scalars['DateTime']['output']; + /** + * Get a single variant by SKU or ID. + * + * Added in Saleor 3.9. + * @deprecated This field will be removed in Saleor 4.0. Use top-level `variant` query. + */ + variant: Maybe; + /** List of variants for the product. Requires the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS. */ + variants: Maybe>; + /** Weight of the product. */ + weight: Maybe; +}; + /** Represents an individual item for sale in the storefront. */ export type ProductAttributeArgs = { - slug: Scalars["String"]["input"]; + slug: Scalars['String']['input']; }; + /** Represents an individual item for sale in the storefront. */ export type ProductImageByIdArgs = { - id?: InputMaybe; + id?: InputMaybe; }; + /** Represents an individual item for sale in the storefront. */ export type ProductIsAvailableArgs = { address?: InputMaybe; }; + /** Represents an individual item for sale in the storefront. */ export type ProductMediaArgs = { sortBy?: InputMaybe; }; + /** Represents an individual item for sale in the storefront. */ export type ProductMediaByIdArgs = { - id?: InputMaybe; + id?: InputMaybe; }; + /** Represents an individual item for sale in the storefront. */ export type ProductMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents an individual item for sale in the storefront. */ export type ProductMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Represents an individual item for sale in the storefront. */ export type ProductPricingArgs = { address?: InputMaybe; }; + /** Represents an individual item for sale in the storefront. */ export type ProductPrivateMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents an individual item for sale in the storefront. */ export type ProductPrivateMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Represents an individual item for sale in the storefront. */ export type ProductThumbnailArgs = { format?: InputMaybe; - size?: InputMaybe; + size?: InputMaybe; }; + /** Represents an individual item for sale in the storefront. */ export type ProductTranslationArgs = { languageCode: LanguageCodeEnum; }; + /** Represents an individual item for sale in the storefront. */ export type ProductVariantArgs = { - id?: InputMaybe; - sku?: InputMaybe; + id?: InputMaybe; + sku?: InputMaybe; }; /** @@ -19295,7 +19758,7 @@ export type ProductAttributeAssign = { export type ProductAttributeAssignInput = { /** The ID of the attribute to assign. */ - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; /** The attribute type to be assigned as. */ type: ProductAttributeType; /** @@ -19303,7 +19766,7 @@ export type ProductAttributeAssignInput = { * * Added in Saleor 3.1. */ - variantSelection?: InputMaybe; + variantSelection?: InputMaybe; }; /** @@ -19323,16 +19786,18 @@ export type ProductAttributeAssignmentUpdate = { export type ProductAttributeAssignmentUpdateInput = { /** The ID of the attribute to assign. */ - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; /** * Whether attribute is allowed in variant selection. Allowed types are: ['dropdown', 'boolean', 'swatch', 'numeric']. * * Added in Saleor 3.1. */ - variantSelection: Scalars["Boolean"]["input"]; + variantSelection: Scalars['Boolean']['input']; }; -export type ProductAttributeType = "PRODUCT" | "VARIANT"; +export type ProductAttributeType = + | 'PRODUCT' + | 'VARIANT'; /** * Un-assign attributes from a given product type. @@ -19358,7 +19823,7 @@ export type ProductAttributeUnassign = { */ export type ProductBulkCreate = { /** Returns how many objects were created. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; /** List of the created products. */ results: Array; @@ -19366,44 +19831,44 @@ export type ProductBulkCreate = { export type ProductBulkCreateError = { /** List of attributes IDs which causes the error. */ - attributes: Maybe>; + attributes: Maybe>; /** List of channel IDs which causes the error. */ - channels: Maybe>; + channels: Maybe>; /** The error code. */ code: ProductBulkCreateErrorCode; /** The error message. */ - message: Maybe; + message: Maybe; /** Path to field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - path: Maybe; + path: Maybe; /** List of attribute values IDs which causes the error. */ - values: Maybe>; + values: Maybe>; /** List of warehouse IDs which causes the error. */ - warehouses: Maybe>; + warehouses: Maybe>; }; /** An enumeration. */ export type ProductBulkCreateErrorCode = - | "ATTRIBUTE_ALREADY_ASSIGNED" - | "ATTRIBUTE_CANNOT_BE_ASSIGNED" - | "ATTRIBUTE_VARIANTS_DISABLED" - | "BLANK" - | "DUPLICATED_INPUT_ITEM" - | "GRAPHQL_ERROR" - | "INVALID" - | "INVALID_PRICE" - | "MAX_LENGTH" - | "NOT_FOUND" - | "PRODUCT_NOT_ASSIGNED_TO_CHANNEL" - | "PRODUCT_WITHOUT_CATEGORY" - | "REQUIRED" - | "UNIQUE" - | "UNSUPPORTED_MEDIA_PROVIDER"; + | 'ATTRIBUTE_ALREADY_ASSIGNED' + | 'ATTRIBUTE_CANNOT_BE_ASSIGNED' + | 'ATTRIBUTE_VARIANTS_DISABLED' + | 'BLANK' + | 'DUPLICATED_INPUT_ITEM' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'INVALID_PRICE' + | 'MAX_LENGTH' + | 'NOT_FOUND' + | 'PRODUCT_NOT_ASSIGNED_TO_CHANNEL' + | 'PRODUCT_WITHOUT_CATEGORY' + | 'REQUIRED' + | 'UNIQUE' + | 'UNSUPPORTED_MEDIA_PROVIDER'; export type ProductBulkCreateInput = { /** List of attributes. */ attributes?: InputMaybe>; /** ID of the product's category. */ - category?: InputMaybe; + category?: InputMaybe; /** List of channels in which the product is available. */ channelListings?: InputMaybe>; /** @@ -19411,45 +19876,45 @@ export type ProductBulkCreateInput = { * * DEPRECATED: this field will be removed in Saleor 4.0. Use `Channel.taxConfiguration` to configure whether tax collection is enabled. */ - chargeTaxes?: InputMaybe; + chargeTaxes?: InputMaybe; /** List of IDs of collections that the product belongs to. */ - collections?: InputMaybe>; + collections?: InputMaybe>; /** * Product description. * * Rich text format. For reference see https://editorjs.io/ */ - description?: InputMaybe; + description?: InputMaybe; /** External ID of this product. */ - externalReference?: InputMaybe; + externalReference?: InputMaybe; /** List of media inputs associated with the product. */ media?: InputMaybe>; /** Fields required to update the product metadata. */ metadata?: InputMaybe>; /** Product name. */ - name?: InputMaybe; + name?: InputMaybe; /** Fields required to update the product private metadata. */ privateMetadata?: InputMaybe>; /** ID of the type that product belongs to. */ - productType: Scalars["ID"]["input"]; + productType: Scalars['ID']['input']; /** Defines the product rating value. */ - rating?: InputMaybe; + rating?: InputMaybe; /** Search engine optimization fields. */ seo?: InputMaybe; /** Product slug. */ - slug?: InputMaybe; + slug?: InputMaybe; /** ID of a tax class to assign to this product. If not provided, product will use the tax class which is assigned to the product type. */ - taxClass?: InputMaybe; + taxClass?: InputMaybe; /** * Tax rate for enabled tax gateway. * * DEPRECATED: this field will be removed in Saleor 4.0. Use tax classes to control the tax calculation for a product. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. */ - taxCode?: InputMaybe; + taxCode?: InputMaybe; /** Input list of product variants to create. */ variants?: InputMaybe>; /** Weight of the Product. */ - weight?: InputMaybe; + weight?: InputMaybe; }; /** @@ -19459,7 +19924,7 @@ export type ProductBulkCreateInput = { */ export type ProductBulkDelete = { /** Returns how many objects were affected. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ productErrors: Array; @@ -19487,7 +19952,7 @@ export type ProductBulkResult = { */ export type ProductBulkTranslate = { /** Returns how many translations were created/updated. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; /** List of the translations. */ results: Array; @@ -19497,16 +19962,16 @@ export type ProductBulkTranslateError = { /** The error code. */ code: ProductTranslateErrorCode; /** The error message. */ - message: Maybe; + message: Maybe; /** Path to field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - path: Maybe; + path: Maybe; }; export type ProductBulkTranslateInput = { /** External reference of an product. */ - externalReference?: InputMaybe; + externalReference?: InputMaybe; /** Product ID. */ - id?: InputMaybe; + id?: InputMaybe; /** Translation language code. */ languageCode: LanguageCodeEnum; /** Translation fields. */ @@ -19523,23 +19988,23 @@ export type ProductBulkTranslateResult = { /** Represents product channel listing. */ export type ProductChannelListing = Node & { /** @deprecated This field will be removed in Saleor 4.0. Use the `availableForPurchaseAt` field to fetch the available for purchase date. */ - availableForPurchase: Maybe; + availableForPurchase: Maybe; /** * The product available for purchase date time. * * Added in Saleor 3.3. */ - availableForPurchaseAt: Maybe; + availableForPurchaseAt: Maybe; /** The channel in which the product is listed. */ channel: Channel; /** The price of the cheapest variant (including discounts). */ discountedPrice: Maybe; /** The ID of the product channel listing. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Refers to a state that can be set by admins to control whether a product is available for purchase in storefronts in this channel. This does not guarantee the availability of stock. When set to `False`, this product is still visible to customers, but it cannot be purchased. */ - isAvailableForPurchase: Maybe; + isAvailableForPurchase: Maybe; /** Indicates if the product is published in the channel. */ - isPublished: Scalars["Boolean"]["output"]; + isPublished: Scalars['Boolean']['output']; /** * Range of margin percentage value. * @@ -19549,13 +20014,13 @@ export type ProductChannelListing = Node & { /** Lists the storefront product's pricing, the current price and discounts, only meant for displaying. */ pricing: Maybe; /** @deprecated This field will be removed in Saleor 4.0. Use the `publishedAt` field to fetch the publication date. */ - publicationDate: Maybe; + publicationDate: Maybe; /** * The product publication date time. * * Added in Saleor 3.3. */ - publishedAt: Maybe; + publishedAt: Maybe; /** * Purchase cost of product. * @@ -19563,9 +20028,10 @@ export type ProductChannelListing = Node & { */ purchaseCost: Maybe; /** Indicates product visibility in the channel listings. */ - visibleInListings: Scalars["Boolean"]["output"]; + visibleInListings: Scalars['Boolean']['output']; }; + /** Represents product channel listing. */ export type ProductChannelListingPricingArgs = { address?: InputMaybe; @@ -19573,73 +20039,73 @@ export type ProductChannelListingPricingArgs = { export type ProductChannelListingAddInput = { /** List of variants to which the channel should be assigned. */ - addVariants?: InputMaybe>; + addVariants?: InputMaybe>; /** * A start date time from which a product will be available for purchase. When not set and `isAvailable` is set to True, the current day is assumed. * * Added in Saleor 3.3. */ - availableForPurchaseAt?: InputMaybe; + availableForPurchaseAt?: InputMaybe; /** * A start date from which a product will be available for purchase. When not set and isAvailable is set to True, the current day is assumed. * * DEPRECATED: this field will be removed in Saleor 4.0. Use `availableForPurchaseAt` field instead. */ - availableForPurchaseDate?: InputMaybe; + availableForPurchaseDate?: InputMaybe; /** ID of a channel. */ - channelId: Scalars["ID"]["input"]; + channelId: Scalars['ID']['input']; /** Determines if product should be available for purchase in this channel. This does not guarantee the availability of stock. When set to `False`, this product is still visible to customers, but it cannot be purchased. */ - isAvailableForPurchase?: InputMaybe; + isAvailableForPurchase?: InputMaybe; /** Determines if object is visible to customers. */ - isPublished?: InputMaybe; + isPublished?: InputMaybe; /** * Publication date. ISO 8601 standard. * * DEPRECATED: this field will be removed in Saleor 4.0. Use `publishedAt` field instead. */ - publicationDate?: InputMaybe; + publicationDate?: InputMaybe; /** * Publication date time. ISO 8601 standard. * * Added in Saleor 3.3. */ - publishedAt?: InputMaybe; + publishedAt?: InputMaybe; /** List of variants from which the channel should be unassigned. */ - removeVariants?: InputMaybe>; + removeVariants?: InputMaybe>; /** Determines if product is visible in product listings (doesn't apply to product collections). */ - visibleInListings?: InputMaybe; + visibleInListings?: InputMaybe; }; export type ProductChannelListingCreateInput = { /** A start date time from which a product will be available for purchase. When not set and `isAvailable` is set to True, the current day is assumed. */ - availableForPurchaseAt?: InputMaybe; + availableForPurchaseAt?: InputMaybe; /** ID of a channel. */ - channelId: Scalars["ID"]["input"]; + channelId: Scalars['ID']['input']; /** Determines if product should be available for purchase in this channel. This does not guarantee the availability of stock. When set to `False`, this product is still visible to customers, but it cannot be purchased. */ - isAvailableForPurchase?: InputMaybe; + isAvailableForPurchase?: InputMaybe; /** Determines if object is visible to customers. */ - isPublished?: InputMaybe; + isPublished?: InputMaybe; /** Publication date time. ISO 8601 standard. */ - publishedAt?: InputMaybe; + publishedAt?: InputMaybe; /** Determines if product is visible in product listings (doesn't apply to product collections). */ - visibleInListings?: InputMaybe; + visibleInListings?: InputMaybe; }; export type ProductChannelListingError = { /** List of attributes IDs which causes the error. */ - attributes: Maybe>; + attributes: Maybe>; /** List of channels IDs which causes the error. */ - channels: Maybe>; + channels: Maybe>; /** The error code. */ code: ProductErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; /** List of attribute values IDs which causes the error. */ - values: Maybe>; + values: Maybe>; /** List of variants IDs which causes the error. */ - variants: Maybe>; + variants: Maybe>; }; /** @@ -19657,7 +20123,7 @@ export type ProductChannelListingUpdate = { export type ProductChannelListingUpdateInput = { /** List of channels from which the product should be unassigned. */ - removeChannels?: InputMaybe>; + removeChannels?: InputMaybe>; /** List of channels to which the product should be assigned or updated. */ updateChannels?: InputMaybe>; }; @@ -19667,12 +20133,12 @@ export type ProductCountableConnection = { /** Pagination data for this connection. */ pageInfo: PageInfo; /** A total count of items in the collection. */ - totalCount: Maybe; + totalCount: Maybe; }; export type ProductCountableEdge = { /** A cursor for use in pagination. */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node: Product; }; @@ -19693,27 +20159,27 @@ export type ProductCreateInput = { /** List of attributes. */ attributes?: InputMaybe>; /** ID of the product's category. */ - category?: InputMaybe; + category?: InputMaybe; /** * Determine if taxes are being charged for the product. * * DEPRECATED: this field will be removed in Saleor 4.0. Use `Channel.taxConfiguration` to configure whether tax collection is enabled. */ - chargeTaxes?: InputMaybe; + chargeTaxes?: InputMaybe; /** List of IDs of collections that the product belongs to. */ - collections?: InputMaybe>; + collections?: InputMaybe>; /** * Product description. * * Rich text format. For reference see https://editorjs.io/ */ - description?: InputMaybe; + description?: InputMaybe; /** * External ID of this product. * * Added in Saleor 3.10. */ - externalReference?: InputMaybe; + externalReference?: InputMaybe; /** * Fields required to update the product metadata. * @@ -19721,7 +20187,7 @@ export type ProductCreateInput = { */ metadata?: InputMaybe>; /** Product name. */ - name?: InputMaybe; + name?: InputMaybe; /** * Fields required to update the product private metadata. * @@ -19729,23 +20195,23 @@ export type ProductCreateInput = { */ privateMetadata?: InputMaybe>; /** ID of the type that product belongs to. */ - productType: Scalars["ID"]["input"]; + productType: Scalars['ID']['input']; /** Defines the product rating value. */ - rating?: InputMaybe; + rating?: InputMaybe; /** Search engine optimization fields. */ seo?: InputMaybe; /** Product slug. */ - slug?: InputMaybe; + slug?: InputMaybe; /** ID of a tax class to assign to this product. If not provided, product will use the tax class which is assigned to the product type. */ - taxClass?: InputMaybe; + taxClass?: InputMaybe; /** * Tax rate for enabled tax gateway. * * DEPRECATED: this field will be removed in Saleor 4.0. Use tax classes to control the tax calculation for a product. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. */ - taxCode?: InputMaybe; + taxCode?: InputMaybe; /** Weight of the Product. */ - weight?: InputMaybe; + weight?: InputMaybe; }; /** @@ -19757,7 +20223,7 @@ export type ProductCreated = Event & { /** The category of the product. */ category: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The product the event relates to. */ @@ -19765,16 +20231,17 @@ export type ProductCreated = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; + /** * Event sent when new product is created. * * Added in Saleor 3.2. */ export type ProductCreatedProductArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; /** @@ -19798,7 +20265,7 @@ export type ProductDeleted = Event & { /** The category of the product. */ category: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The product the event relates to. */ @@ -19806,53 +20273,54 @@ export type ProductDeleted = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; + /** * Event sent when product is deleted. * * Added in Saleor 3.2. */ export type ProductDeletedProductArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; export type ProductError = { /** List of attributes IDs which causes the error. */ - attributes: Maybe>; + attributes: Maybe>; /** The error code. */ code: ProductErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; /** List of attribute values IDs which causes the error. */ - values: Maybe>; + values: Maybe>; }; /** An enumeration. */ export type ProductErrorCode = - | "ALREADY_EXISTS" - | "ATTRIBUTE_ALREADY_ASSIGNED" - | "ATTRIBUTE_CANNOT_BE_ASSIGNED" - | "ATTRIBUTE_VARIANTS_DISABLED" - | "CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT" - | "DUPLICATED_INPUT_ITEM" - | "GRAPHQL_ERROR" - | "INVALID" - | "INVALID_PRICE" - | "MEDIA_ALREADY_ASSIGNED" - | "NOT_FOUND" - | "NOT_PRODUCTS_IMAGE" - | "NOT_PRODUCTS_VARIANT" - | "PREORDER_VARIANT_CANNOT_BE_DEACTIVATED" - | "PRODUCT_NOT_ASSIGNED_TO_CHANNEL" - | "PRODUCT_WITHOUT_CATEGORY" - | "REQUIRED" - | "UNIQUE" - | "UNSUPPORTED_MEDIA_PROVIDER" - | "VARIANT_NO_DIGITAL_CONTENT"; + | 'ALREADY_EXISTS' + | 'ATTRIBUTE_ALREADY_ASSIGNED' + | 'ATTRIBUTE_CANNOT_BE_ASSIGNED' + | 'ATTRIBUTE_VARIANTS_DISABLED' + | 'CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT' + | 'DUPLICATED_INPUT_ITEM' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'INVALID_PRICE' + | 'MEDIA_ALREADY_ASSIGNED' + | 'NOT_FOUND' + | 'NOT_PRODUCTS_IMAGE' + | 'NOT_PRODUCTS_VARIANT' + | 'PREORDER_VARIANT_CANNOT_BE_DEACTIVATED' + | 'PRODUCT_NOT_ASSIGNED_TO_CHANNEL' + | 'PRODUCT_WITHOUT_CATEGORY' + | 'REQUIRED' + | 'UNIQUE' + | 'UNSUPPORTED_MEDIA_PROVIDER' + | 'VARIANT_NO_DIGITAL_CONTENT'; /** * Event sent when product export is completed. @@ -19863,28 +20331,28 @@ export type ProductExportCompleted = Event & { /** The export file for products. */ export: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; export type ProductFieldEnum = - | "CATEGORY" - | "CHARGE_TAXES" - | "COLLECTIONS" - | "DESCRIPTION" - | "NAME" - | "PRODUCT_MEDIA" - | "PRODUCT_TYPE" - | "PRODUCT_WEIGHT" - | "VARIANT_ID" - | "VARIANT_MEDIA" - | "VARIANT_SKU" - | "VARIANT_WEIGHT"; + | 'CATEGORY' + | 'CHARGE_TAXES' + | 'COLLECTIONS' + | 'DESCRIPTION' + | 'NAME' + | 'PRODUCT_MEDIA' + | 'PRODUCT_TYPE' + | 'PRODUCT_WEIGHT' + | 'VARIANT_ID' + | 'VARIANT_MEDIA' + | 'VARIANT_SKU' + | 'VARIANT_WEIGHT'; export type ProductFilterInput = { attributes?: InputMaybe>; @@ -19893,46 +20361,46 @@ export type ProductFilterInput = { * * Added in Saleor 3.8. */ - availableFrom?: InputMaybe; - categories?: InputMaybe>; + availableFrom?: InputMaybe; + categories?: InputMaybe>; /** * Specifies the channel by which the data should be filtered. * * DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead. */ - channel?: InputMaybe; - collections?: InputMaybe>; + channel?: InputMaybe; + collections?: InputMaybe>; /** Filter on whether product is a gift card or not. */ - giftCard?: InputMaybe; - hasCategory?: InputMaybe; - hasPreorderedVariants?: InputMaybe; - ids?: InputMaybe>; + giftCard?: InputMaybe; + hasCategory?: InputMaybe; + hasPreorderedVariants?: InputMaybe; + ids?: InputMaybe>; /** * Filter by availability for purchase. * * Added in Saleor 3.8. */ - isAvailable?: InputMaybe; - isPublished?: InputMaybe; + isAvailable?: InputMaybe; + isPublished?: InputMaybe; /** * Filter by visibility in product listings. * * Added in Saleor 3.8. */ - isVisibleInListing?: InputMaybe; + isVisibleInListing?: InputMaybe; metadata?: InputMaybe>; /** Filter by the lowest variant price after discounts. */ minimalPrice?: InputMaybe; price?: InputMaybe; - productTypes?: InputMaybe>; + productTypes?: InputMaybe>; /** * Filter by the publication date. * * Added in Saleor 3.8. */ - publishedFrom?: InputMaybe; - search?: InputMaybe; - slugs?: InputMaybe>; + publishedFrom?: InputMaybe; + search?: InputMaybe; + slugs?: InputMaybe>; /** Filter by variants having specific stock status. */ stockAvailability?: InputMaybe; stocks?: InputMaybe; @@ -19943,46 +20411,47 @@ export type ProductFilterInput = { /** Represents a product image. */ export type ProductImage = { /** The alt text of the image. */ - alt: Maybe; + alt: Maybe; /** The ID of the image. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** The new relative sorting position of the item (from -inf to +inf). 1 moves the item one position forward, -1 moves the item one position backward, 0 leaves the item unchanged. */ - sortOrder: Maybe; + sortOrder: Maybe; /** The URL of the image. */ - url: Scalars["String"]["output"]; + url: Scalars['String']['output']; }; + /** Represents a product image. */ export type ProductImageUrlArgs = { format?: InputMaybe; - size?: InputMaybe; + size?: InputMaybe; }; export type ProductInput = { /** List of attributes. */ attributes?: InputMaybe>; /** ID of the product's category. */ - category?: InputMaybe; + category?: InputMaybe; /** * Determine if taxes are being charged for the product. * * DEPRECATED: this field will be removed in Saleor 4.0. Use `Channel.taxConfiguration` to configure whether tax collection is enabled. */ - chargeTaxes?: InputMaybe; + chargeTaxes?: InputMaybe; /** List of IDs of collections that the product belongs to. */ - collections?: InputMaybe>; + collections?: InputMaybe>; /** * Product description. * * Rich text format. For reference see https://editorjs.io/ */ - description?: InputMaybe; + description?: InputMaybe; /** * External ID of this product. * * Added in Saleor 3.10. */ - externalReference?: InputMaybe; + externalReference?: InputMaybe; /** * Fields required to update the product metadata. * @@ -19990,7 +20459,7 @@ export type ProductInput = { */ metadata?: InputMaybe>; /** Product name. */ - name?: InputMaybe; + name?: InputMaybe; /** * Fields required to update the product private metadata. * @@ -19998,110 +20467,114 @@ export type ProductInput = { */ privateMetadata?: InputMaybe>; /** Defines the product rating value. */ - rating?: InputMaybe; + rating?: InputMaybe; /** Search engine optimization fields. */ seo?: InputMaybe; /** Product slug. */ - slug?: InputMaybe; + slug?: InputMaybe; /** ID of a tax class to assign to this product. If not provided, product will use the tax class which is assigned to the product type. */ - taxClass?: InputMaybe; + taxClass?: InputMaybe; + /** + * Tax rate for enabled tax gateway. + * + * DEPRECATED: this field will be removed in Saleor 4.0. Use tax classes to control the tax calculation for a product. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. + */ + taxCode?: InputMaybe; + /** Weight of the Product. */ + weight?: InputMaybe; +}; + +/** Represents a product media. */ +export type ProductMedia = Node & ObjectWithMetadata & { + /** The alt text of the media. */ + alt: Scalars['String']['output']; + /** The unique ID of the product media. */ + id: Scalars['ID']['output']; + /** + * List of public metadata items. Can be accessed without permissions. + * + * Added in Saleor 3.12. + */ + metadata: Array; + /** + * A single key from public metadata. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.12. + */ + metafield: Maybe; + /** + * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.12. + */ + metafields: Maybe; + /** The oEmbed data of the media. */ + oembedData: Scalars['JSONString']['output']; + /** + * List of private metadata items. Requires staff permissions to access. + * + * Added in Saleor 3.12. + */ + privateMetadata: Array; + /** + * A single key from private metadata. Requires staff permissions to access. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.12. + */ + privateMetafield: Maybe; + /** + * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.12. + */ + privateMetafields: Maybe; /** - * Tax rate for enabled tax gateway. + * Product id the media refers to. * - * DEPRECATED: this field will be removed in Saleor 4.0. Use tax classes to control the tax calculation for a product. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. + * Added in Saleor 3.12. */ - taxCode?: InputMaybe; - /** Weight of the Product. */ - weight?: InputMaybe; + productId: Maybe; + /** The sort order of the media. */ + sortOrder: Maybe; + /** The type of the media. */ + type: ProductMediaType; + /** The URL of the media. */ + url: Scalars['String']['output']; }; -/** Represents a product media. */ -export type ProductMedia = Node & - ObjectWithMetadata & { - /** The alt text of the media. */ - alt: Scalars["String"]["output"]; - /** The unique ID of the product media. */ - id: Scalars["ID"]["output"]; - /** - * List of public metadata items. Can be accessed without permissions. - * - * Added in Saleor 3.12. - */ - metadata: Array; - /** - * A single key from public metadata. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.12. - */ - metafield: Maybe; - /** - * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.12. - */ - metafields: Maybe; - /** The oEmbed data of the media. */ - oembedData: Scalars["JSONString"]["output"]; - /** - * List of private metadata items. Requires staff permissions to access. - * - * Added in Saleor 3.12. - */ - privateMetadata: Array; - /** - * A single key from private metadata. Requires staff permissions to access. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.12. - */ - privateMetafield: Maybe; - /** - * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.12. - */ - privateMetafields: Maybe; - /** - * Product id the media refers to. - * - * Added in Saleor 3.12. - */ - productId: Maybe; - /** The sort order of the media. */ - sortOrder: Maybe; - /** The type of the media. */ - type: ProductMediaType; - /** The URL of the media. */ - url: Scalars["String"]["output"]; - }; /** Represents a product media. */ export type ProductMediaMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents a product media. */ export type ProductMediaMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Represents a product media. */ export type ProductMediaPrivateMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents a product media. */ export type ProductMediaPrivateMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Represents a product media. */ export type ProductMediaUrlArgs = { format?: InputMaybe; - size?: InputMaybe; + size?: InputMaybe; }; /** @@ -20111,7 +20584,7 @@ export type ProductMediaUrlArgs = { */ export type ProductMediaBulkDelete = { /** Returns how many objects were affected. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ productErrors: Array; @@ -20132,13 +20605,13 @@ export type ProductMediaCreate = { export type ProductMediaCreateInput = { /** Alt text for a product media. */ - alt?: InputMaybe; + alt?: InputMaybe; /** Represents an image file in a multipart request. */ - image?: InputMaybe; + image?: InputMaybe; /** Represents an URL to an external media. */ - mediaUrl?: InputMaybe; + mediaUrl?: InputMaybe; /** ID of an product. */ - product: Scalars["ID"]["input"]; + product: Scalars['ID']['input']; }; /** @@ -20148,7 +20621,7 @@ export type ProductMediaCreateInput = { */ export type ProductMediaCreated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The product media the event relates to. */ @@ -20156,7 +20629,7 @@ export type ProductMediaCreated = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -20179,7 +20652,7 @@ export type ProductMediaDelete = { */ export type ProductMediaDeleted = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The product media the event relates to. */ @@ -20187,7 +20660,7 @@ export type ProductMediaDeleted = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -20204,7 +20677,9 @@ export type ProductMediaReorder = { }; /** An enumeration. */ -export type ProductMediaType = "IMAGE" | "VIDEO"; +export type ProductMediaType = + | 'IMAGE' + | 'VIDEO'; /** * Updates a product media. @@ -20221,7 +20696,7 @@ export type ProductMediaUpdate = { export type ProductMediaUpdateInput = { /** Alt text for a product media. */ - alt?: InputMaybe; + alt?: InputMaybe; }; /** @@ -20231,7 +20706,7 @@ export type ProductMediaUpdateInput = { */ export type ProductMediaUpdated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The product media the event relates to. */ @@ -20239,7 +20714,7 @@ export type ProductMediaUpdated = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -20251,7 +20726,7 @@ export type ProductMetadataUpdated = Event & { /** The category of the product. */ category: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The product the event relates to. */ @@ -20259,16 +20734,17 @@ export type ProductMetadataUpdated = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; + /** * Event sent when product metadata is updated. * * Added in Saleor 3.8. */ export type ProductMetadataUpdatedProductArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; export type ProductOrder = { @@ -20276,13 +20752,13 @@ export type ProductOrder = { * Sort product by the selected attribute's values. * Note: this doesn't take translations into account yet. */ - attributeId?: InputMaybe; + attributeId?: InputMaybe; /** * Specifies the channel in which to sort the data. * * DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead. */ - channel?: InputMaybe; + channel?: InputMaybe; /** Specifies the direction in which to sort products. */ direction: OrderDirection; /** Sort products by the selected field. */ @@ -20295,57 +20771,57 @@ export type ProductOrderField = * * This option requires a channel filter to work as the values can vary between channels. */ - | "COLLECTION" + | 'COLLECTION' /** * Sort products by creation date. * * Added in Saleor 3.8. */ - | "CREATED_AT" + | 'CREATED_AT' /** Sort products by update date. */ - | "DATE" + | 'DATE' /** Sort products by update date. */ - | "LAST_MODIFIED" + | 'LAST_MODIFIED' /** Sort products by update date. */ - | "LAST_MODIFIED_AT" + | 'LAST_MODIFIED_AT' /** * Sort products by a minimal price of a product's variant. * * This option requires a channel filter to work as the values can vary between channels. */ - | "MINIMAL_PRICE" + | 'MINIMAL_PRICE' /** Sort products by name. */ - | "NAME" + | 'NAME' /** * Sort products by price. * * This option requires a channel filter to work as the values can vary between channels. */ - | "PRICE" + | 'PRICE' /** * Sort products by publication date. * * This option requires a channel filter to work as the values can vary between channels. */ - | "PUBLICATION_DATE" + | 'PUBLICATION_DATE' /** * Sort products by publication status. * * This option requires a channel filter to work as the values can vary between channels. */ - | "PUBLISHED" + | 'PUBLISHED' /** * Sort products by publication date. * * This option requires a channel filter to work as the values can vary between channels. */ - | "PUBLISHED_AT" + | 'PUBLISHED_AT' /** Sort products by rank. Note: This option is available only with the `search` filter. */ - | "RANK" + | 'RANK' /** Sort products by rating. */ - | "RATING" + | 'RATING' /** Sort products by type. */ - | "TYPE"; + | 'TYPE'; /** Represents availability of a product in the storefront. */ export type ProductPricingInfo = { @@ -20361,9 +20837,9 @@ export type ProductPricingInfo = { * * Added in Saleor 3.9. */ - displayGrossPrices: Scalars["Boolean"]["output"]; + displayGrossPrices: Scalars['Boolean']['output']; /** Whether it is in sale or not. */ - onSale: Maybe; + onSale: Maybe; /** The discounted price range of the product variants. */ priceRange: Maybe; /** @@ -20390,7 +20866,7 @@ export type ProductReorderAttributeValues = { export type ProductStockFilterInput = { quantity?: InputMaybe; - warehouseIds?: InputMaybe>; + warehouseIds?: InputMaybe>; }; /** Represents product's original translatable fields and related translations. */ @@ -20402,18 +20878,18 @@ export type ProductTranslatableContent = Node & { * * Rich text format. For reference see https://editorjs.io/ */ - description: Maybe; + description: Maybe; /** * Description of the product. * * Rich text format. For reference see https://editorjs.io/ * @deprecated This field will be removed in Saleor 4.0. Use the `description` field instead. */ - descriptionJson: Maybe; + descriptionJson: Maybe; /** The ID of the product translatable content. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Product's name to translate. */ - name: Scalars["String"]["output"]; + name: Scalars['String']['output']; /** * Represents an individual item for sale in the storefront. * @deprecated This field will be removed in Saleor 4.0. Get model fields from the root level queries. @@ -20424,15 +20900,16 @@ export type ProductTranslatableContent = Node & { * * Added in Saleor 3.14. */ - productId: Scalars["ID"]["output"]; + productId: Scalars['ID']['output']; /** SEO description to translate. */ - seoDescription: Maybe; + seoDescription: Maybe; /** SEO title to translate. */ - seoTitle: Maybe; + seoTitle: Maybe; /** Returns translated product fields for the given language code. */ translation: Maybe; }; + /** Represents product's original translatable fields and related translations. */ export type ProductTranslatableContentTranslationArgs = { languageCode: LanguageCodeEnum; @@ -20452,10 +20929,10 @@ export type ProductTranslate = { /** An enumeration. */ export type ProductTranslateErrorCode = - | "GRAPHQL_ERROR" - | "INVALID" - | "NOT_FOUND" - | "REQUIRED"; + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'REQUIRED'; /** Represents product translations. */ export type ProductTranslation = Node & { @@ -20464,24 +20941,24 @@ export type ProductTranslation = Node & { * * Rich text format. For reference see https://editorjs.io/ */ - description: Maybe; + description: Maybe; /** * Translated description of the product. * * Rich text format. For reference see https://editorjs.io/ * @deprecated This field will be removed in Saleor 4.0. Use the `description` field instead. */ - descriptionJson: Maybe; + descriptionJson: Maybe; /** The ID of the product translation. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Translation language. */ language: LanguageDisplay; /** Translated product name. */ - name: Maybe; + name: Maybe; /** Translated SEO description. */ - seoDescription: Maybe; + seoDescription: Maybe; /** Translated SEO title. */ - seoTitle: Maybe; + seoTitle: Maybe; /** * Represents the product fields to translate. * @@ -20491,137 +20968,144 @@ export type ProductTranslation = Node & { }; /** Represents a type of product. It defines what attributes are available to products of this type. */ -export type ProductType = Node & - ObjectWithMetadata & { - /** - * Variant attributes of that product type with attached variant selection. - * - * Added in Saleor 3.1. - */ - assignedVariantAttributes: Maybe>; - /** - * List of attributes which can be assigned to this product type. - * - * Requires one of the following permissions: MANAGE_PRODUCTS. - */ - availableAttributes: Maybe; - /** Whether the product type has variants. */ - hasVariants: Scalars["Boolean"]["output"]; - /** The ID of the product type. */ - id: Scalars["ID"]["output"]; - /** Whether the product type is digital. */ - isDigital: Scalars["Boolean"]["output"]; - /** Whether shipping is required for this product type. */ - isShippingRequired: Scalars["Boolean"]["output"]; - /** The product type kind. */ - kind: ProductTypeKindEnum; - /** List of public metadata items. Can be accessed without permissions. */ - metadata: Array; - /** - * A single key from public metadata. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - metafield: Maybe; - /** - * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - metafields: Maybe; - /** Name of the product type. */ - name: Scalars["String"]["output"]; - /** List of private metadata items. Requires staff permissions to access. */ - privateMetadata: Array; - /** - * A single key from private metadata. Requires staff permissions to access. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - privateMetafield: Maybe; - /** - * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - privateMetafields: Maybe; - /** Product attributes of that product type. */ - productAttributes: Maybe>; - /** - * List of products of this type. - * @deprecated This field will be removed in Saleor 4.0. Use the top-level `products` query with the `productTypes` filter. - */ - products: Maybe; - /** Slug of the product type. */ - slug: Scalars["String"]["output"]; - /** - * Tax class assigned to this product type. All products of this product type use this tax class, unless it's overridden in the `Product` type. - * - * Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. - */ - taxClass: Maybe; - /** - * A type of tax. Assigned by enabled tax gateway - * @deprecated This field will be removed in Saleor 4.0. Use `taxClass` field instead. - */ - taxType: Maybe; - /** - * Variant attributes of that product type. - * @deprecated This field will be removed in Saleor 4.0. Use `assignedVariantAttributes` instead. - */ - variantAttributes: Maybe>; - /** Weight of the product type. */ - weight: Maybe; - }; +export type ProductType = Node & ObjectWithMetadata & { + /** + * Variant attributes of that product type with attached variant selection. + * + * Added in Saleor 3.1. + */ + assignedVariantAttributes: Maybe>; + /** + * List of attributes which can be assigned to this product type. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + availableAttributes: Maybe; + /** Whether the product type has variants. */ + hasVariants: Scalars['Boolean']['output']; + /** The ID of the product type. */ + id: Scalars['ID']['output']; + /** Whether the product type is digital. */ + isDigital: Scalars['Boolean']['output']; + /** Whether shipping is required for this product type. */ + isShippingRequired: Scalars['Boolean']['output']; + /** The product type kind. */ + kind: ProductTypeKindEnum; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * A single key from public metadata. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + metafield: Maybe; + /** + * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + metafields: Maybe; + /** Name of the product type. */ + name: Scalars['String']['output']; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * A single key from private metadata. Requires staff permissions to access. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + privateMetafield: Maybe; + /** + * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + privateMetafields: Maybe; + /** Product attributes of that product type. */ + productAttributes: Maybe>; + /** + * List of products of this type. + * @deprecated This field will be removed in Saleor 4.0. Use the top-level `products` query with the `productTypes` filter. + */ + products: Maybe; + /** Slug of the product type. */ + slug: Scalars['String']['output']; + /** + * Tax class assigned to this product type. All products of this product type use this tax class, unless it's overridden in the `Product` type. + * + * Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. + */ + taxClass: Maybe; + /** + * A type of tax. Assigned by enabled tax gateway + * @deprecated This field will be removed in Saleor 4.0. Use `taxClass` field instead. + */ + taxType: Maybe; + /** + * Variant attributes of that product type. + * @deprecated This field will be removed in Saleor 4.0. Use `assignedVariantAttributes` instead. + */ + variantAttributes: Maybe>; + /** Weight of the product type. */ + weight: Maybe; +}; + /** Represents a type of product. It defines what attributes are available to products of this type. */ export type ProductTypeAssignedVariantAttributesArgs = { variantSelection?: InputMaybe; }; + /** Represents a type of product. It defines what attributes are available to products of this type. */ export type ProductTypeAvailableAttributesArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; filter?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; where?: InputMaybe; }; + /** Represents a type of product. It defines what attributes are available to products of this type. */ export type ProductTypeMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents a type of product. It defines what attributes are available to products of this type. */ export type ProductTypeMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Represents a type of product. It defines what attributes are available to products of this type. */ export type ProductTypePrivateMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents a type of product. It defines what attributes are available to products of this type. */ export type ProductTypePrivateMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Represents a type of product. It defines what attributes are available to products of this type. */ export type ProductTypeProductsArgs = { - after?: InputMaybe; - before?: InputMaybe; - channel?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + channel?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; + /** Represents a type of product. It defines what attributes are available to products of this type. */ export type ProductTypeVariantAttributesArgs = { variantSelection?: InputMaybe; @@ -20634,25 +21118,27 @@ export type ProductTypeVariantAttributesArgs = { */ export type ProductTypeBulkDelete = { /** Returns how many objects were affected. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ productErrors: Array; }; -export type ProductTypeConfigurable = "CONFIGURABLE" | "SIMPLE"; +export type ProductTypeConfigurable = + | 'CONFIGURABLE' + | 'SIMPLE'; export type ProductTypeCountableConnection = { edges: Array; /** Pagination data for this connection. */ pageInfo: PageInfo; /** A total count of items in the collection. */ - totalCount: Maybe; + totalCount: Maybe; }; export type ProductTypeCountableEdge = { /** A cursor for use in pagination. */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node: ProductType; }; @@ -20681,49 +21167,53 @@ export type ProductTypeDelete = { productType: Maybe; }; -export type ProductTypeEnum = "DIGITAL" | "SHIPPABLE"; +export type ProductTypeEnum = + | 'DIGITAL' + | 'SHIPPABLE'; export type ProductTypeFilterInput = { configurable?: InputMaybe; - ids?: InputMaybe>; + ids?: InputMaybe>; kind?: InputMaybe; metadata?: InputMaybe>; productType?: InputMaybe; - search?: InputMaybe; - slugs?: InputMaybe>; + search?: InputMaybe; + slugs?: InputMaybe>; }; export type ProductTypeInput = { /** Determines if product of this type has multiple variants. This option mainly simplifies product management in the dashboard. There is always at least one variant created under the hood. */ - hasVariants?: InputMaybe; + hasVariants?: InputMaybe; /** Determines if products are digital. */ - isDigital?: InputMaybe; + isDigital?: InputMaybe; /** Determines if shipping is required for products of this variant. */ - isShippingRequired?: InputMaybe; + isShippingRequired?: InputMaybe; /** The product type kind. */ kind?: InputMaybe; /** Name of the product type. */ - name?: InputMaybe; + name?: InputMaybe; /** List of attributes shared among all product variants. */ - productAttributes?: InputMaybe>; + productAttributes?: InputMaybe>; /** Product type slug. */ - slug?: InputMaybe; + slug?: InputMaybe; /** ID of a tax class to assign to this product type. All products of this product type would use this tax class, unless it's overridden in the `Product` type. */ - taxClass?: InputMaybe; + taxClass?: InputMaybe; /** * Tax rate for enabled tax gateway. * * DEPRECATED: this field will be removed in Saleor 4.0.. Use tax classes to control the tax calculation for a product type. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. */ - taxCode?: InputMaybe; + taxCode?: InputMaybe; /** List of attributes used to distinguish between different variants of a product. */ - variantAttributes?: InputMaybe>; + variantAttributes?: InputMaybe>; /** Weight of the ProductType items. */ - weight?: InputMaybe; + weight?: InputMaybe; }; /** An enumeration. */ -export type ProductTypeKindEnum = "GIFT_CARD" | "NORMAL"; +export type ProductTypeKindEnum = + | 'GIFT_CARD' + | 'NORMAL'; /** * Reorder the attributes of a product type. @@ -20740,11 +21230,11 @@ export type ProductTypeReorderAttributes = { export type ProductTypeSortField = /** Sort products by type. */ - | "DIGITAL" + | 'DIGITAL' /** Sort products by name. */ - | "NAME" + | 'NAME' /** Sort products by shipping. */ - | "SHIPPING_REQUIRED"; + | 'SHIPPING_REQUIRED'; export type ProductTypeSortingInput = { /** Specifies the direction in which to sort product types. */ @@ -20786,7 +21276,7 @@ export type ProductUpdated = Event & { /** The category of the product. */ category: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The product the event relates to. */ @@ -20794,181 +21284,191 @@ export type ProductUpdated = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; + /** * Event sent when product is updated. * * Added in Saleor 3.2. */ export type ProductUpdatedProductArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; /** Represents a version of a product such as different size or color. */ -export type ProductVariant = Node & - ObjectWithMetadata & { - /** List of attributes assigned to this variant. */ - attributes: Array; - /** Channel given to retrieve this product variant. Also used by federation gateway to resolve this object in a federated query. */ - channel: Maybe; - /** - * List of price information in channels for the product. - * - * Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER. - */ - channelListings: Maybe>; - /** The date and time when the product variant was created. */ - created: Scalars["DateTime"]["output"]; - /** - * Digital content for the product variant. - * - * Requires one of the following permissions: MANAGE_PRODUCTS. - */ - digitalContent: Maybe; - /** - * External ID of this product. - * - * Added in Saleor 3.10. - */ - externalReference: Maybe; - /** The ID of the product variant. */ - id: Scalars["ID"]["output"]; - /** - * List of images for the product variant. - * @deprecated This field will be removed in Saleor 4.0. Use the `media` field instead. - */ - images: Maybe>; - /** Gross margin percentage value. */ - margin: Maybe; - /** List of media for the product variant. */ - media: Maybe>; - /** List of public metadata items. Can be accessed without permissions. */ - metadata: Array; - /** - * A single key from public metadata. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - metafield: Maybe; - /** - * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - metafields: Maybe; - /** The name of the product variant. */ - name: Scalars["String"]["output"]; - /** - * Preorder data for product variant. - * - * Added in Saleor 3.1. - */ - preorder: Maybe; - /** Lists the storefront variant's pricing, the current price and discounts, only meant for displaying. */ - pricing: Maybe; - /** List of private metadata items. Requires staff permissions to access. */ - privateMetadata: Array; - /** - * A single key from private metadata. Requires staff permissions to access. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - privateMetafield: Maybe; - /** - * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - privateMetafields: Maybe; - /** The product to which the variant belongs. */ - product: Product; - /** Quantity of a product available for sale in one checkout. Field value will be `null` when no `limitQuantityPerCheckout` in global settings has been set, and `productVariant` stocks are not tracked. */ - quantityAvailable: Maybe; - /** The maximum quantity of this variant that a customer can purchase. */ - quantityLimitPerCustomer: Maybe; - /** - * Total quantity ordered. - * - * Requires one of the following permissions: MANAGE_PRODUCTS. - */ - quantityOrdered: Maybe; - /** - * Total revenue generated by a variant in given period of time. Note: this field should be queried using `reportProductSales` query as it uses optimizations suitable for such calculations. - * - * Requires one of the following permissions: MANAGE_PRODUCTS. - */ - revenue: Maybe; - /** The SKU (stock keeping unit) of the product variant. */ - sku: Maybe; - /** - * Stocks for the product variant. - * - * Requires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS. - */ - stocks: Maybe>; - /** Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. If the field is not provided, `Shop.trackInventoryByDefault` will be used. */ - trackInventory: Scalars["Boolean"]["output"]; - /** Returns translated product variant fields for the given language code. */ - translation: Maybe; - /** The date and time when the product variant was last updated. */ - updatedAt: Scalars["DateTime"]["output"]; - /** The weight of the product variant. */ - weight: Maybe; - }; +export type ProductVariant = Node & ObjectWithMetadata & { + /** List of attributes assigned to this variant. */ + attributes: Array; + /** Channel given to retrieve this product variant. Also used by federation gateway to resolve this object in a federated query. */ + channel: Maybe; + /** + * List of price information in channels for the product. + * + * Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_STAFF_USER. + */ + channelListings: Maybe>; + /** The date and time when the product variant was created. */ + created: Scalars['DateTime']['output']; + /** + * Digital content for the product variant. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + digitalContent: Maybe; + /** + * External ID of this product. + * + * Added in Saleor 3.10. + */ + externalReference: Maybe; + /** The ID of the product variant. */ + id: Scalars['ID']['output']; + /** + * List of images for the product variant. + * @deprecated This field will be removed in Saleor 4.0. Use the `media` field instead. + */ + images: Maybe>; + /** Gross margin percentage value. */ + margin: Maybe; + /** List of media for the product variant. */ + media: Maybe>; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * A single key from public metadata. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + metafield: Maybe; + /** + * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + metafields: Maybe; + /** The name of the product variant. */ + name: Scalars['String']['output']; + /** + * Preorder data for product variant. + * + * Added in Saleor 3.1. + */ + preorder: Maybe; + /** Lists the storefront variant's pricing, the current price and discounts, only meant for displaying. */ + pricing: Maybe; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * A single key from private metadata. Requires staff permissions to access. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + privateMetafield: Maybe; + /** + * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + privateMetafields: Maybe; + /** The product to which the variant belongs. */ + product: Product; + /** Quantity of a product available for sale in one checkout. Field value will be `null` when no `limitQuantityPerCheckout` in global settings has been set, and `productVariant` stocks are not tracked. */ + quantityAvailable: Maybe; + /** The maximum quantity of this variant that a customer can purchase. */ + quantityLimitPerCustomer: Maybe; + /** + * Total quantity ordered. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + quantityOrdered: Maybe; + /** + * Total revenue generated by a variant in given period of time. Note: this field should be queried using `reportProductSales` query as it uses optimizations suitable for such calculations. + * + * Requires one of the following permissions: MANAGE_PRODUCTS. + */ + revenue: Maybe; + /** The SKU (stock keeping unit) of the product variant. */ + sku: Maybe; + /** + * Stocks for the product variant. + * + * Requires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS. + */ + stocks: Maybe>; + /** Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. If the field is not provided, `Shop.trackInventoryByDefault` will be used. */ + trackInventory: Scalars['Boolean']['output']; + /** Returns translated product variant fields for the given language code. */ + translation: Maybe; + /** The date and time when the product variant was last updated. */ + updatedAt: Scalars['DateTime']['output']; + /** The weight of the product variant. */ + weight: Maybe; +}; + /** Represents a version of a product such as different size or color. */ export type ProductVariantAttributesArgs = { variantSelection?: InputMaybe; }; + /** Represents a version of a product such as different size or color. */ export type ProductVariantMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents a version of a product such as different size or color. */ export type ProductVariantMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Represents a version of a product such as different size or color. */ export type ProductVariantPricingArgs = { address?: InputMaybe; }; + /** Represents a version of a product such as different size or color. */ export type ProductVariantPrivateMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents a version of a product such as different size or color. */ export type ProductVariantPrivateMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Represents a version of a product such as different size or color. */ export type ProductVariantQuantityAvailableArgs = { address?: InputMaybe; countryCode?: InputMaybe; }; + /** Represents a version of a product such as different size or color. */ export type ProductVariantRevenueArgs = { period?: InputMaybe; }; + /** Represents a version of a product such as different size or color. */ export type ProductVariantStocksArgs = { address?: InputMaybe; countryCode?: InputMaybe; }; + /** Represents a version of a product such as different size or color. */ export type ProductVariantTranslationArgs = { languageCode: LanguageCodeEnum; @@ -20981,7 +21481,7 @@ export type ProductVariantTranslationArgs = { */ export type ProductVariantBackInStock = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The product variant the event relates to. */ @@ -20989,18 +21489,19 @@ export type ProductVariantBackInStock = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; /** Look up a warehouse. */ warehouse: Maybe; }; + /** * Event sent when product variant is back in stock. * * Added in Saleor 3.2. */ export type ProductVariantBackInStockProductVariantArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; /** @@ -21012,7 +21513,7 @@ export type ProductVariantBulkCreate = { /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ bulkProductErrors: Array; /** Returns how many objects were created. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; /** List of the created variants.This field will be removed in Saleor 4.0. */ productVariants: Array; @@ -21034,7 +21535,7 @@ export type ProductVariantBulkCreateInput = { * * Added in Saleor 3.10. */ - externalReference?: InputMaybe; + externalReference?: InputMaybe; /** * Fields required to update the product variant metadata. * @@ -21042,7 +21543,7 @@ export type ProductVariantBulkCreateInput = { */ metadata?: InputMaybe>; /** Variant name. */ - name?: InputMaybe; + name?: InputMaybe; /** * Determines if variant is in preorder. * @@ -21060,15 +21561,15 @@ export type ProductVariantBulkCreateInput = { * * Added in Saleor 3.1. */ - quantityLimitPerCustomer?: InputMaybe; + quantityLimitPerCustomer?: InputMaybe; /** Stock keeping unit. */ - sku?: InputMaybe; + sku?: InputMaybe; /** Stocks of a product available for sale. */ stocks?: InputMaybe>; /** Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. If the field is not provided, `Shop.trackInventoryByDefault` will be used. */ - trackInventory?: InputMaybe; + trackInventory?: InputMaybe; /** Weight of the Product Variant. */ - weight?: InputMaybe; + weight?: InputMaybe; }; /** @@ -21078,7 +21579,7 @@ export type ProductVariantBulkCreateInput = { */ export type ProductVariantBulkDelete = { /** Returns how many objects were affected. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ productErrors: Array; @@ -21086,54 +21587,54 @@ export type ProductVariantBulkDelete = { export type ProductVariantBulkError = { /** List of attributes IDs which causes the error. */ - attributes: Maybe>; + attributes: Maybe>; /** List of channel listings IDs which causes the error. */ - channelListings: Maybe>; + channelListings: Maybe>; /** * List of channel IDs which causes the error. * * Added in Saleor 3.12. */ - channels: Maybe>; + channels: Maybe>; /** The error code. */ code: ProductVariantBulkErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; /** * Path to field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. * * Added in Saleor 3.14. */ - path: Maybe; + path: Maybe; /** * List of stocks IDs which causes the error. * * Added in Saleor 3.12. */ - stocks: Maybe>; + stocks: Maybe>; /** List of attribute values IDs which causes the error. */ - values: Maybe>; + values: Maybe>; /** List of warehouse IDs which causes the error. */ - warehouses: Maybe>; + warehouses: Maybe>; }; /** An enumeration. */ export type ProductVariantBulkErrorCode = - | "ATTRIBUTE_ALREADY_ASSIGNED" - | "ATTRIBUTE_CANNOT_BE_ASSIGNED" - | "ATTRIBUTE_VARIANTS_DISABLED" - | "DUPLICATED_INPUT_ITEM" - | "GRAPHQL_ERROR" - | "INVALID" - | "INVALID_PRICE" - | "NOT_FOUND" - | "NOT_PRODUCTS_VARIANT" - | "PRODUCT_NOT_ASSIGNED_TO_CHANNEL" - | "REQUIRED" - | "STOCK_ALREADY_EXISTS" - | "UNIQUE"; + | 'ATTRIBUTE_ALREADY_ASSIGNED' + | 'ATTRIBUTE_CANNOT_BE_ASSIGNED' + | 'ATTRIBUTE_VARIANTS_DISABLED' + | 'DUPLICATED_INPUT_ITEM' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'INVALID_PRICE' + | 'NOT_FOUND' + | 'NOT_PRODUCTS_VARIANT' + | 'PRODUCT_NOT_ASSIGNED_TO_CHANNEL' + | 'REQUIRED' + | 'STOCK_ALREADY_EXISTS' + | 'UNIQUE'; export type ProductVariantBulkResult = { /** List of errors occurred on create attempt. */ @@ -21157,7 +21658,7 @@ export type ProductVariantBulkResult = { */ export type ProductVariantBulkTranslate = { /** Returns how many translations were created/updated. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; /** List of the translations. */ results: Array; @@ -21167,16 +21668,16 @@ export type ProductVariantBulkTranslateError = { /** The error code. */ code: ProductVariantTranslateErrorCode; /** The error message. */ - message: Maybe; + message: Maybe; /** Path to field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - path: Maybe; + path: Maybe; }; export type ProductVariantBulkTranslateInput = { /** External reference of a product variant. */ - externalReference?: InputMaybe; + externalReference?: InputMaybe; /** Product variant ID. */ - id?: InputMaybe; + id?: InputMaybe; /** Translation language code. */ languageCode: LanguageCodeEnum; /** Translation fields. */ @@ -21201,7 +21702,7 @@ export type ProductVariantBulkTranslateResult = { */ export type ProductVariantBulkUpdate = { /** Returns how many objects were updated. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; /** List of the updated variants. */ results: Array; @@ -21228,9 +21729,9 @@ export type ProductVariantBulkUpdateInput = { * * Added in Saleor 3.10. */ - externalReference?: InputMaybe; + externalReference?: InputMaybe; /** ID of the product variant to update. */ - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; /** * Fields required to update the product variant metadata. * @@ -21238,7 +21739,7 @@ export type ProductVariantBulkUpdateInput = { */ metadata?: InputMaybe>; /** Variant name. */ - name?: InputMaybe; + name?: InputMaybe; /** * Determines if variant is in preorder. * @@ -21256,9 +21757,9 @@ export type ProductVariantBulkUpdateInput = { * * Added in Saleor 3.1. */ - quantityLimitPerCustomer?: InputMaybe; + quantityLimitPerCustomer?: InputMaybe; /** Stock keeping unit. */ - sku?: InputMaybe; + sku?: InputMaybe; /** * Stocks input. * @@ -21268,9 +21769,9 @@ export type ProductVariantBulkUpdateInput = { */ stocks?: InputMaybe; /** Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. If the field is not provided, `Shop.trackInventoryByDefault` will be used. */ - trackInventory?: InputMaybe; + trackInventory?: InputMaybe; /** Weight of the Product Variant. */ - weight?: InputMaybe; + weight?: InputMaybe; }; /** Represents product variant channel listing. */ @@ -21280,13 +21781,13 @@ export type ProductVariantChannelListing = Node & { /** Cost price of the variant. */ costPrice: Maybe; /** The ID of the variant channel listing. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** * Gross margin percentage value. * * Requires one of the following permissions: MANAGE_PRODUCTS. */ - margin: Maybe; + margin: Maybe; /** * Preorder variant data. * @@ -21299,17 +21800,17 @@ export type ProductVariantChannelListing = Node & { export type ProductVariantChannelListingAddInput = { /** ID of a channel. */ - channelId: Scalars["ID"]["input"]; + channelId: Scalars['ID']['input']; /** Cost price of the variant in channel. */ - costPrice?: InputMaybe; + costPrice?: InputMaybe; /** * The threshold for preorder variant in channel. * * Added in Saleor 3.1. */ - preorderThreshold?: InputMaybe; + preorderThreshold?: InputMaybe; /** Price of the particular variant in channel. */ - price: Scalars["PositiveDecimal"]["input"]; + price: Scalars['PositiveDecimal']['input']; }; /** @@ -21329,7 +21830,7 @@ export type ProductVariantChannelListingUpdateInput = { /** List of channels to create variant channel listings. */ create?: InputMaybe>; /** List of channel listings to remove. */ - remove?: InputMaybe>; + remove?: InputMaybe>; /** List of channel listings to update. */ update?: InputMaybe>; }; @@ -21339,12 +21840,12 @@ export type ProductVariantCountableConnection = { /** Pagination data for this connection. */ pageInfo: PageInfo; /** A total count of items in the collection. */ - totalCount: Maybe; + totalCount: Maybe; }; export type ProductVariantCountableEdge = { /** A cursor for use in pagination. */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node: ProductVariant; }; @@ -21369,7 +21870,7 @@ export type ProductVariantCreateInput = { * * Added in Saleor 3.10. */ - externalReference?: InputMaybe; + externalReference?: InputMaybe; /** * Fields required to update the product variant metadata. * @@ -21377,7 +21878,7 @@ export type ProductVariantCreateInput = { */ metadata?: InputMaybe>; /** Variant name. */ - name?: InputMaybe; + name?: InputMaybe; /** * Determines if variant is in preorder. * @@ -21391,21 +21892,21 @@ export type ProductVariantCreateInput = { */ privateMetadata?: InputMaybe>; /** Product ID of which type is the variant. */ - product: Scalars["ID"]["input"]; + product: Scalars['ID']['input']; /** * Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. * * Added in Saleor 3.1. */ - quantityLimitPerCustomer?: InputMaybe; + quantityLimitPerCustomer?: InputMaybe; /** Stock keeping unit. */ - sku?: InputMaybe; + sku?: InputMaybe; /** Stocks of a product available for sale. */ stocks?: InputMaybe>; /** Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. If the field is not provided, `Shop.trackInventoryByDefault` will be used. */ - trackInventory?: InputMaybe; + trackInventory?: InputMaybe; /** Weight of the Product Variant. */ - weight?: InputMaybe; + weight?: InputMaybe; }; /** @@ -21415,7 +21916,7 @@ export type ProductVariantCreateInput = { */ export type ProductVariantCreated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The product variant the event relates to. */ @@ -21423,16 +21924,17 @@ export type ProductVariantCreated = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; + /** * Event sent when new product variant is created. * * Added in Saleor 3.2. */ export type ProductVariantCreatedProductVariantArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; /** @@ -21454,7 +21956,7 @@ export type ProductVariantDelete = { */ export type ProductVariantDeleted = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The product variant the event relates to. */ @@ -21462,23 +21964,24 @@ export type ProductVariantDeleted = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; + /** * Event sent when product variant is deleted. * * Added in Saleor 3.2. */ export type ProductVariantDeletedProductVariantArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; export type ProductVariantFilterInput = { - isPreorder?: InputMaybe; + isPreorder?: InputMaybe; metadata?: InputMaybe>; - search?: InputMaybe; - sku?: InputMaybe>; + search?: InputMaybe; + sku?: InputMaybe>; updatedAt?: InputMaybe; }; @@ -21490,7 +21993,7 @@ export type ProductVariantInput = { * * Added in Saleor 3.10. */ - externalReference?: InputMaybe; + externalReference?: InputMaybe; /** * Fields required to update the product variant metadata. * @@ -21498,7 +22001,7 @@ export type ProductVariantInput = { */ metadata?: InputMaybe>; /** Variant name. */ - name?: InputMaybe; + name?: InputMaybe; /** * Determines if variant is in preorder. * @@ -21516,13 +22019,13 @@ export type ProductVariantInput = { * * Added in Saleor 3.1. */ - quantityLimitPerCustomer?: InputMaybe; + quantityLimitPerCustomer?: InputMaybe; /** Stock keeping unit. */ - sku?: InputMaybe; + sku?: InputMaybe; /** Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. If the field is not provided, `Shop.trackInventoryByDefault` will be used. */ - trackInventory?: InputMaybe; + trackInventory?: InputMaybe; /** Weight of the Product Variant. */ - weight?: InputMaybe; + weight?: InputMaybe; }; /** @@ -21532,7 +22035,7 @@ export type ProductVariantInput = { */ export type ProductVariantMetadataUpdated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The product variant the event relates to. */ @@ -21540,16 +22043,17 @@ export type ProductVariantMetadataUpdated = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; + /** * Event sent when product variant metadata is updated. * * Added in Saleor 3.8. */ export type ProductVariantMetadataUpdatedProductVariantArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; /** @@ -21559,7 +22063,7 @@ export type ProductVariantMetadataUpdatedProductVariantArgs = { */ export type ProductVariantOutOfStock = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The product variant the event relates to. */ @@ -21567,18 +22071,19 @@ export type ProductVariantOutOfStock = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; /** Look up a warehouse. */ warehouse: Maybe; }; + /** * Event sent when product variant is out of stock. * * Added in Saleor 3.2. */ export type ProductVariantOutOfStockProductVariantArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; /** @@ -21633,7 +22138,7 @@ export type ProductVariantSetDefault = { export type ProductVariantSortField = /** Sort products variants by last modified at. */ - "LAST_MODIFIED_AT"; + | 'LAST_MODIFIED_AT'; export type ProductVariantSortingInput = { /** Specifies the direction in which to sort productVariants. */ @@ -21651,7 +22156,7 @@ export type ProductVariantSortingInput = { */ export type ProductVariantStockUpdated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The product variant the event relates to. */ @@ -21659,11 +22164,12 @@ export type ProductVariantStockUpdated = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; /** Look up a warehouse. */ warehouse: Maybe; }; + /** * Event sent when product variant stock is updated. * @@ -21672,7 +22178,7 @@ export type ProductVariantStockUpdated = Event & { * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ export type ProductVariantStockUpdatedProductVariantArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; /** @@ -21718,7 +22224,7 @@ export type ProductVariantStocksUpdateInput = { /** List of warehouses to create stocks. */ create?: InputMaybe>; /** List of stocks to remove. */ - remove?: InputMaybe>; + remove?: InputMaybe>; /** List of stocks to update. */ update?: InputMaybe>; }; @@ -21728,9 +22234,9 @@ export type ProductVariantTranslatableContent = Node & { /** List of product variant attribute values that can be translated. */ attributeValues: Array; /** The ID of the product variant translatable content. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Name of the product variant to translate. */ - name: Scalars["String"]["output"]; + name: Scalars['String']['output']; /** * Represents a version of a product such as different size or color. * @deprecated This field will be removed in Saleor 4.0. Get model fields from the root level queries. @@ -21741,11 +22247,12 @@ export type ProductVariantTranslatableContent = Node & { * * Added in Saleor 3.14. */ - productVariantId: Scalars["ID"]["output"]; + productVariantId: Scalars['ID']['output']; /** Returns translated product variant fields for the given language code. */ translation: Maybe; }; + /** Represents product variant's original translatable fields and related translations. */ export type ProductVariantTranslatableContentTranslationArgs = { languageCode: LanguageCodeEnum; @@ -21765,19 +22272,19 @@ export type ProductVariantTranslate = { /** An enumeration. */ export type ProductVariantTranslateErrorCode = - | "GRAPHQL_ERROR" - | "INVALID" - | "NOT_FOUND" - | "REQUIRED"; + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'REQUIRED'; /** Represents product variant translations. */ export type ProductVariantTranslation = Node & { /** The ID of the product variant translation. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Translation language. */ language: LanguageDisplay; /** Translated product variant name. */ - name: Scalars["String"]["output"]; + name: Scalars['String']['output']; /** * Represents the product variant fields to translate. * @@ -21805,7 +22312,7 @@ export type ProductVariantUpdate = { */ export type ProductVariantUpdated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The product variant the event relates to. */ @@ -21813,16 +22320,17 @@ export type ProductVariantUpdated = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; + /** * Event sent when product variant is updated. * * Added in Saleor 3.2. */ export type ProductVariantUpdatedProductVariantArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; export type ProductVariantWhereInput = { @@ -21830,7 +22338,7 @@ export type ProductVariantWhereInput = { AND?: InputMaybe>; /** A list of conditions of which at least one must be met. */ OR?: InputMaybe>; - ids?: InputMaybe>; + ids?: InputMaybe>; metadata?: InputMaybe>; }; @@ -21842,24 +22350,24 @@ export type ProductWhereInput = { /** Filter by attributes associated with the product. */ attributes?: InputMaybe>; /** Filter by the date of availability for purchase. */ - availableFrom?: InputMaybe; + availableFrom?: InputMaybe; /** Filter by product category. */ category?: InputMaybe; /** Filter by collection. */ collection?: InputMaybe; /** Filter on whether product is a gift card or not. */ - giftCard?: InputMaybe; + giftCard?: InputMaybe; /** Filter by product with category assigned. */ - hasCategory?: InputMaybe; + hasCategory?: InputMaybe; /** Filter by product with preordered variants. */ - hasPreorderedVariants?: InputMaybe; - ids?: InputMaybe>; + hasPreorderedVariants?: InputMaybe; + ids?: InputMaybe>; /** Filter by availability for purchase. */ - isAvailable?: InputMaybe; + isAvailable?: InputMaybe; /** Filter by public visibility. */ - isPublished?: InputMaybe; + isPublished?: InputMaybe; /** Filter by visibility on the channel. */ - isVisibleInListing?: InputMaybe; + isVisibleInListing?: InputMaybe; metadata?: InputMaybe>; /** Filter by the lowest variant price after discounts. */ minimalPrice?: InputMaybe; @@ -21870,7 +22378,7 @@ export type ProductWhereInput = { /** Filter by product type. */ productType?: InputMaybe; /** Filter by the publication date. */ - publishedFrom?: InputMaybe; + publishedFrom?: InputMaybe; /** Filter by product slug. */ slug?: InputMaybe; /** Filter by variants having specific stock status. */ @@ -21888,68 +22396,68 @@ export type ProductWhereInput = { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ -export type Promotion = Node & - ObjectWithMetadata & { - /** Date time of promotion creation. */ - createdAt: Scalars["DateTime"]["output"]; - /** Description of the promotion. */ - description: Maybe; - /** End date of the promotion. */ - endDate: Maybe; - /** The list of events associated with the promotion. */ - events: Maybe>; - id: Scalars["ID"]["output"]; - /** List of public metadata items. Can be accessed without permissions. */ - metadata: Array; - /** - * A single key from public metadata. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - metafield: Maybe; - /** - * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - metafields: Maybe; - /** Name of the promotion. */ - name: Scalars["String"]["output"]; - /** List of private metadata items. Requires staff permissions to access. */ - privateMetadata: Array; - /** - * A single key from private metadata. Requires staff permissions to access. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - privateMetafield: Maybe; - /** - * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - privateMetafields: Maybe; - /** The list of promotion rules. */ - rules: Maybe>; - /** Start date of the promotion. */ - startDate: Scalars["DateTime"]["output"]; - /** Returns translated promotion fields for the given language code. */ - translation: Maybe; - /** - * The type of the promotion. Implicate if the discount is applied on catalogue or order level. - * - * Added in Saleor 3.19. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - type: Maybe; - /** Date time of last update of promotion. */ - updatedAt: Scalars["DateTime"]["output"]; - }; +export type Promotion = Node & ObjectWithMetadata & { + /** Date time of promotion creation. */ + createdAt: Scalars['DateTime']['output']; + /** Description of the promotion. */ + description: Maybe; + /** End date of the promotion. */ + endDate: Maybe; + /** The list of events associated with the promotion. */ + events: Maybe>; + id: Scalars['ID']['output']; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * A single key from public metadata. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + metafield: Maybe; + /** + * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + metafields: Maybe; + /** Name of the promotion. */ + name: Scalars['String']['output']; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * A single key from private metadata. Requires staff permissions to access. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + privateMetafield: Maybe; + /** + * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + privateMetafields: Maybe; + /** The list of promotion rules. */ + rules: Maybe>; + /** Start date of the promotion. */ + startDate: Scalars['DateTime']['output']; + /** Returns translated promotion fields for the given language code. */ + translation: Maybe; + /** + * The type of the promotion. Implicate if the discount is applied on catalogue or order level. + * + * Added in Saleor 3.19. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + type: Maybe; + /** Date time of last update of promotion. */ + updatedAt: Scalars['DateTime']['output']; +}; + /** * Represents the promotion that allow creating discounts based on given conditions, and is visible to all the customers. @@ -21959,9 +22467,10 @@ export type Promotion = Node & * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ export type PromotionMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** * Represents the promotion that allow creating discounts based on given conditions, and is visible to all the customers. * @@ -21970,9 +22479,10 @@ export type PromotionMetafieldArgs = { * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ export type PromotionMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** * Represents the promotion that allow creating discounts based on given conditions, and is visible to all the customers. * @@ -21981,9 +22491,10 @@ export type PromotionMetafieldsArgs = { * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ export type PromotionPrivateMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** * Represents the promotion that allow creating discounts based on given conditions, and is visible to all the customers. * @@ -21992,9 +22503,10 @@ export type PromotionPrivateMetafieldArgs = { * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ export type PromotionPrivateMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** * Represents the promotion that allow creating discounts based on given conditions, and is visible to all the customers. * @@ -22020,7 +22532,7 @@ export type PromotionTranslationArgs = { */ export type PromotionBulkDelete = { /** Returns how many objects were affected. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; }; @@ -22029,12 +22541,12 @@ export type PromotionCountableConnection = { /** Pagination data for this connection. */ pageInfo: PageInfo; /** A total count of items in the collection. */ - totalCount: Maybe; + totalCount: Maybe; }; export type PromotionCountableEdge = { /** A cursor for use in pagination. */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node: Promotion; }; @@ -22061,45 +22573,45 @@ export type PromotionCreateError = { /** The error code. */ code: PromotionCreateErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** Limit of gifts assigned to promotion rule. */ - giftsLimit: Maybe; + giftsLimit: Maybe; /** Number of gifts defined for this promotion rule exceeding the limit. */ - giftsLimitExceedBy: Maybe; + giftsLimitExceedBy: Maybe; /** Index of an input list item that caused the error. */ - index: Maybe; + index: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; /** Limit of rules with orderPredicate defined. */ - rulesLimit: Maybe; + rulesLimit: Maybe; /** Number of rules with orderPredicate defined exceeding the limit. */ - rulesLimitExceedBy: Maybe; + rulesLimitExceedBy: Maybe; }; /** An enumeration. */ export type PromotionCreateErrorCode = - | "GIFTS_NUMBER_LIMIT" - | "GRAPHQL_ERROR" - | "INVALID" - | "INVALID_GIFT_TYPE" - | "INVALID_PRECISION" - | "MISSING_CHANNELS" - | "MULTIPLE_CURRENCIES_NOT_ALLOWED" - | "NOT_FOUND" - | "REQUIRED" - | "RULES_NUMBER_LIMIT"; + | 'GIFTS_NUMBER_LIMIT' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'INVALID_GIFT_TYPE' + | 'INVALID_PRECISION' + | 'MISSING_CHANNELS' + | 'MULTIPLE_CURRENCIES_NOT_ALLOWED' + | 'NOT_FOUND' + | 'REQUIRED' + | 'RULES_NUMBER_LIMIT'; export type PromotionCreateInput = { /** Promotion description. */ - description?: InputMaybe; + description?: InputMaybe; /** The end date of the promotion in ISO 8601 format. */ - endDate?: InputMaybe; + endDate?: InputMaybe; /** Promotion name. */ - name: Scalars["String"]["input"]; + name: Scalars['String']['input']; /** List of promotion rules. */ rules?: InputMaybe>; /** The start date of the promotion in ISO 8601 format. */ - startDate?: InputMaybe; + startDate?: InputMaybe; /** * Defines the promotion type. Implicate the required promotion rules predicate type and whether the promotion rules will give the catalogue or order discount. * @@ -22117,7 +22629,7 @@ export type PromotionCreateInput = { */ export type PromotionCreated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The promotion the event relates to. */ @@ -22125,7 +22637,7 @@ export type PromotionCreated = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -22135,20 +22647,19 @@ export type PromotionCreated = Event & { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ -export type PromotionCreatedEvent = Node & - PromotionEventInterface & { - /** - * User or App that created the promotion event. - * - * Requires one of the following permissions: MANAGE_STAFF, MANAGE_APPS, OWNER. - */ - createdBy: Maybe; - /** Date when event happened. */ - date: Scalars["DateTime"]["output"]; - id: Scalars["ID"]["output"]; - /** Promotion event type. */ - type: PromotionEventsEnum; - }; +export type PromotionCreatedEvent = Node & PromotionEventInterface & { + /** + * User or App that created the promotion event. + * + * Requires one of the following permissions: MANAGE_STAFF, MANAGE_APPS, OWNER. + */ + createdBy: Maybe; + /** Date when event happened. */ + date: Scalars['DateTime']['output']; + id: Scalars['ID']['output']; + /** Promotion event type. */ + type: PromotionEventsEnum; +}; /** * Deletes a promotion. @@ -22171,13 +22682,15 @@ export type PromotionDeleteError = { /** The error code. */ code: PromotionDeleteErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ -export type PromotionDeleteErrorCode = "GRAPHQL_ERROR" | "NOT_FOUND"; +export type PromotionDeleteErrorCode = + | 'GRAPHQL_ERROR' + | 'NOT_FOUND'; /** * Event sent when promotion is deleted. @@ -22188,7 +22701,7 @@ export type PromotionDeleteErrorCode = "GRAPHQL_ERROR" | "NOT_FOUND"; */ export type PromotionDeleted = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The promotion the event relates to. */ @@ -22196,7 +22709,7 @@ export type PromotionDeleted = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -22208,7 +22721,7 @@ export type PromotionDeleted = Event & { */ export type PromotionEnded = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The promotion the event relates to. */ @@ -22216,7 +22729,7 @@ export type PromotionEnded = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -22226,29 +22739,21 @@ export type PromotionEnded = Event & { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ -export type PromotionEndedEvent = Node & - PromotionEventInterface & { - /** - * User or App that created the promotion event. - * - * Requires one of the following permissions: MANAGE_STAFF, MANAGE_APPS, OWNER. - */ - createdBy: Maybe; - /** Date when event happened. */ - date: Scalars["DateTime"]["output"]; - id: Scalars["ID"]["output"]; - /** Promotion event type. */ - type: PromotionEventsEnum; - }; - -export type PromotionEvent = - | PromotionCreatedEvent - | PromotionEndedEvent - | PromotionRuleCreatedEvent - | PromotionRuleDeletedEvent - | PromotionRuleUpdatedEvent - | PromotionStartedEvent - | PromotionUpdatedEvent; +export type PromotionEndedEvent = Node & PromotionEventInterface & { + /** + * User or App that created the promotion event. + * + * Requires one of the following permissions: MANAGE_STAFF, MANAGE_APPS, OWNER. + */ + createdBy: Maybe; + /** Date when event happened. */ + date: Scalars['DateTime']['output']; + id: Scalars['ID']['output']; + /** Promotion event type. */ + type: PromotionEventsEnum; +}; + +export type PromotionEvent = PromotionCreatedEvent | PromotionEndedEvent | PromotionRuleCreatedEvent | PromotionRuleDeletedEvent | PromotionRuleUpdatedEvent | PromotionStartedEvent | PromotionUpdatedEvent; export type PromotionEventInterface = { /** @@ -22258,21 +22763,21 @@ export type PromotionEventInterface = { */ createdBy: Maybe; /** Date when event happened. */ - date: Scalars["DateTime"]["output"]; - id: Scalars["ID"]["output"]; + date: Scalars['DateTime']['output']; + id: Scalars['ID']['output']; /** Promotion event type. */ type: PromotionEventsEnum; }; /** An enumeration. */ export type PromotionEventsEnum = - | "PROMOTION_CREATED" - | "PROMOTION_ENDED" - | "PROMOTION_STARTED" - | "PROMOTION_UPDATED" - | "RULE_CREATED" - | "RULE_DELETED" - | "RULE_UPDATED"; + | 'PROMOTION_CREATED' + | 'PROMOTION_ENDED' + | 'PROMOTION_STARTED' + | 'PROMOTION_UPDATED' + | 'RULE_CREATED' + | 'RULE_DELETED' + | 'RULE_UPDATED'; /** * Represents the promotion rule that specifies the conditions that must be met to apply the promotion discount. @@ -22283,7 +22788,7 @@ export type PromotionEventsEnum = */ export type PromotionRule = Node & { /** The catalogue predicate that must be met to apply the rule reward. */ - cataloguePredicate: Maybe; + cataloguePredicate: Maybe; /** * List of channels where the rule applies. * @@ -22291,7 +22796,7 @@ export type PromotionRule = Node & { */ channels: Maybe>; /** Description of the promotion rule. */ - description: Maybe; + description: Maybe; /** * Product variant IDs available as a gift to choose. * @@ -22299,7 +22804,7 @@ export type PromotionRule = Node & { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - giftIds: Maybe>; + giftIds: Maybe>; /** * Defines the maximum number of gifts to choose from the gifts list. * @@ -22307,10 +22812,10 @@ export type PromotionRule = Node & { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - giftsLimit: Maybe; - id: Scalars["ID"]["output"]; + giftsLimit: Maybe; + id: Scalars['ID']['output']; /** Name of the promotion rule. */ - name: Maybe; + name: Maybe; /** * The checkout/order predicate that must be met to apply the rule reward. * @@ -22318,7 +22823,7 @@ export type PromotionRule = Node & { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - orderPredicate: Maybe; + orderPredicate: Maybe; /** * The type of the predicate that must be met to apply the reward. * @@ -22344,13 +22849,14 @@ export type PromotionRule = Node & { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - rewardValue: Maybe; + rewardValue: Maybe; /** The type of reward value of the promotion rule. */ rewardValueType: Maybe; /** Returns translated promotion rule fields for the given language code. */ translation: Maybe; }; + /** * Represents the promotion rule that specifies the conditions that must be met to apply the promotion discount. * @@ -22383,39 +22889,39 @@ export type PromotionRuleCreateError = { /** The error code. */ code: PromotionRuleCreateErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** Limit of gifts assigned to promotion rule. */ - giftsLimit: Maybe; + giftsLimit: Maybe; /** Number of gifts defined for this promotion rule exceeding the limit. */ - giftsLimitExceedBy: Maybe; + giftsLimitExceedBy: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; /** Limit of rules with orderPredicate defined. */ - rulesLimit: Maybe; + rulesLimit: Maybe; /** Number of rules with orderPredicate defined exceeding the limit. */ - rulesLimitExceedBy: Maybe; + rulesLimitExceedBy: Maybe; }; /** An enumeration. */ export type PromotionRuleCreateErrorCode = - | "GIFTS_NUMBER_LIMIT" - | "GRAPHQL_ERROR" - | "INVALID" - | "INVALID_GIFT_TYPE" - | "INVALID_PRECISION" - | "MISSING_CHANNELS" - | "MULTIPLE_CURRENCIES_NOT_ALLOWED" - | "NOT_FOUND" - | "REQUIRED" - | "RULES_NUMBER_LIMIT"; + | 'GIFTS_NUMBER_LIMIT' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'INVALID_GIFT_TYPE' + | 'INVALID_PRECISION' + | 'MISSING_CHANNELS' + | 'MULTIPLE_CURRENCIES_NOT_ALLOWED' + | 'NOT_FOUND' + | 'REQUIRED' + | 'RULES_NUMBER_LIMIT'; export type PromotionRuleCreateInput = { /** Defines the conditions on the catalogue level that must be met for the reward to be applied. */ cataloguePredicate?: InputMaybe; /** List of channel ids to which the rule should apply to. */ - channels?: InputMaybe>; + channels?: InputMaybe>; /** Promotion rule description. */ - description?: InputMaybe; + description?: InputMaybe; /** * Product variant IDs available as a gift to choose. * @@ -22423,9 +22929,9 @@ export type PromotionRuleCreateInput = { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - gifts?: InputMaybe>; + gifts?: InputMaybe>; /** Promotion rule name. */ - name?: InputMaybe; + name?: InputMaybe; /** * Defines the conditions on the checkout/draft order level that must be met for the reward to be applied. * @@ -22435,7 +22941,7 @@ export type PromotionRuleCreateInput = { */ orderPredicate?: InputMaybe; /** The ID of the promotion that rule belongs to. */ - promotion: Scalars["ID"]["input"]; + promotion: Scalars['ID']['input']; /** * Defines the reward type of the promotion rule. * @@ -22445,7 +22951,7 @@ export type PromotionRuleCreateInput = { */ rewardType?: InputMaybe; /** Defines the discount value. Required when catalogue predicate is provided. */ - rewardValue?: InputMaybe; + rewardValue?: InputMaybe; /** Defines the promotion rule reward value type. Must be provided together with reward value. */ rewardValueType?: InputMaybe; }; @@ -22459,7 +22965,7 @@ export type PromotionRuleCreateInput = { */ export type PromotionRuleCreated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The promotion rule the event relates to. */ @@ -22467,7 +22973,7 @@ export type PromotionRuleCreated = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -22477,23 +22983,21 @@ export type PromotionRuleCreated = Event & { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ -export type PromotionRuleCreatedEvent = Node & - PromotionEventInterface & - PromotionRuleEventInterface & { - /** - * User or App that created the promotion event. - * - * Requires one of the following permissions: MANAGE_STAFF, MANAGE_APPS, OWNER. - */ - createdBy: Maybe; - /** Date when event happened. */ - date: Scalars["DateTime"]["output"]; - id: Scalars["ID"]["output"]; - /** The rule ID associated with the promotion event. */ - ruleId: Maybe; - /** Promotion event type. */ - type: PromotionEventsEnum; - }; +export type PromotionRuleCreatedEvent = Node & PromotionEventInterface & PromotionRuleEventInterface & { + /** + * User or App that created the promotion event. + * + * Requires one of the following permissions: MANAGE_STAFF, MANAGE_APPS, OWNER. + */ + createdBy: Maybe; + /** Date when event happened. */ + date: Scalars['DateTime']['output']; + id: Scalars['ID']['output']; + /** The rule ID associated with the promotion event. */ + ruleId: Maybe; + /** Promotion event type. */ + type: PromotionEventsEnum; +}; /** * Deletes a promotion rule. @@ -22516,13 +23020,15 @@ export type PromotionRuleDeleteError = { /** The error code. */ code: PromotionRuleDeleteErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ -export type PromotionRuleDeleteErrorCode = "GRAPHQL_ERROR" | "NOT_FOUND"; +export type PromotionRuleDeleteErrorCode = + | 'GRAPHQL_ERROR' + | 'NOT_FOUND'; /** * Event sent when new promotion rule is deleted. @@ -22533,7 +23039,7 @@ export type PromotionRuleDeleteErrorCode = "GRAPHQL_ERROR" | "NOT_FOUND"; */ export type PromotionRuleDeleted = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The promotion rule the event relates to. */ @@ -22541,7 +23047,7 @@ export type PromotionRuleDeleted = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -22551,23 +23057,21 @@ export type PromotionRuleDeleted = Event & { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ -export type PromotionRuleDeletedEvent = Node & - PromotionEventInterface & - PromotionRuleEventInterface & { - /** - * User or App that created the promotion event. - * - * Requires one of the following permissions: MANAGE_STAFF, MANAGE_APPS, OWNER. - */ - createdBy: Maybe; - /** Date when event happened. */ - date: Scalars["DateTime"]["output"]; - id: Scalars["ID"]["output"]; - /** The rule ID associated with the promotion event. */ - ruleId: Maybe; - /** Promotion event type. */ - type: PromotionEventsEnum; - }; +export type PromotionRuleDeletedEvent = Node & PromotionEventInterface & PromotionRuleEventInterface & { + /** + * User or App that created the promotion event. + * + * Requires one of the following permissions: MANAGE_STAFF, MANAGE_APPS, OWNER. + */ + createdBy: Maybe; + /** Date when event happened. */ + date: Scalars['DateTime']['output']; + id: Scalars['ID']['output']; + /** The rule ID associated with the promotion event. */ + ruleId: Maybe; + /** Promotion event type. */ + type: PromotionEventsEnum; +}; /** * History log of the promotion event related to rule. @@ -22578,16 +23082,16 @@ export type PromotionRuleDeletedEvent = Node & */ export type PromotionRuleEventInterface = { /** The rule ID associated with the promotion event. */ - ruleId: Maybe; + ruleId: Maybe; }; export type PromotionRuleInput = { /** Defines the conditions on the catalogue level that must be met for the reward to be applied. */ cataloguePredicate?: InputMaybe; /** List of channel ids to which the rule should apply to. */ - channels?: InputMaybe>; + channels?: InputMaybe>; /** Promotion rule description. */ - description?: InputMaybe; + description?: InputMaybe; /** * Product variant IDs available as a gift to choose. * @@ -22595,9 +23099,9 @@ export type PromotionRuleInput = { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - gifts?: InputMaybe>; + gifts?: InputMaybe>; /** Promotion rule name. */ - name?: InputMaybe; + name?: InputMaybe; /** * Defines the conditions on the checkout/draft order level that must be met for the reward to be applied. * @@ -22615,7 +23119,7 @@ export type PromotionRuleInput = { */ rewardType?: InputMaybe; /** Defines the discount value. Required when catalogue predicate is provided. */ - rewardValue?: InputMaybe; + rewardValue?: InputMaybe; /** Defines the promotion rule reward value type. Must be provided together with reward value. */ rewardValueType?: InputMaybe; }; @@ -22631,21 +23135,22 @@ export type PromotionRuleTranslatableContent = Node & { * * Rich text format. For reference see https://editorjs.io/ */ - description: Maybe; + description: Maybe; /** ID of the promotion rule translatable content. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Name of the promotion rule. */ - name: Maybe; + name: Maybe; /** * ID of the promotion rule to translate. * * Added in Saleor 3.14. */ - promotionRuleId: Scalars["ID"]["output"]; + promotionRuleId: Scalars['ID']['output']; /** Returns translated promotion rule fields for the given language code. */ translation: Maybe; }; + /** * Represents promotion rule's original translatable fields and related translations. * @@ -22678,13 +23183,13 @@ export type PromotionRuleTranslation = Node & { * * Rich text format. For reference see https://editorjs.io/ */ - description: Maybe; + description: Maybe; /** ID of the promotion rule translation. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Translation language. */ language: LanguageDisplay; /** Translated name of the promotion rule. */ - name: Maybe; + name: Maybe; /** * Represents the promotion rule fields to translate. * @@ -22699,8 +23204,8 @@ export type PromotionRuleTranslationInput = { * * Rich text format. For reference see https://editorjs.io/ */ - description?: InputMaybe; - name?: InputMaybe; + description?: InputMaybe; + name?: InputMaybe; }; /** @@ -22722,35 +23227,35 @@ export type PromotionRuleUpdate = { export type PromotionRuleUpdateError = { /** List of channel IDs which causes the error. */ - channels: Maybe>; + channels: Maybe>; /** The error code. */ code: PromotionRuleUpdateErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** Limit of gifts assigned to promotion rule. */ - giftsLimit: Maybe; + giftsLimit: Maybe; /** Number of gifts defined for this promotion rule exceeding the limit. */ - giftsLimitExceedBy: Maybe; + giftsLimitExceedBy: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type PromotionRuleUpdateErrorCode = - | "DUPLICATED_INPUT_ITEM" - | "GIFTS_NUMBER_LIMIT" - | "GRAPHQL_ERROR" - | "INVALID" - | "INVALID_GIFT_TYPE" - | "INVALID_PRECISION" - | "MISSING_CHANNELS" - | "MULTIPLE_CURRENCIES_NOT_ALLOWED" - | "NOT_FOUND" - | "REQUIRED"; + | 'DUPLICATED_INPUT_ITEM' + | 'GIFTS_NUMBER_LIMIT' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'INVALID_GIFT_TYPE' + | 'INVALID_PRECISION' + | 'MISSING_CHANNELS' + | 'MULTIPLE_CURRENCIES_NOT_ALLOWED' + | 'NOT_FOUND' + | 'REQUIRED'; export type PromotionRuleUpdateInput = { /** List of channel ids to add. */ - addChannels?: InputMaybe>; + addChannels?: InputMaybe>; /** * List of variant IDs available as a gift to add. * @@ -22758,13 +23263,13 @@ export type PromotionRuleUpdateInput = { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - addGifts?: InputMaybe>; + addGifts?: InputMaybe>; /** Defines the conditions on the catalogue level that must be met for the reward to be applied. */ cataloguePredicate?: InputMaybe; /** Promotion rule description. */ - description?: InputMaybe; + description?: InputMaybe; /** Promotion rule name. */ - name?: InputMaybe; + name?: InputMaybe; /** * Defines the conditions on the checkout/draft order level that must be met for the reward to be applied. * @@ -22774,7 +23279,7 @@ export type PromotionRuleUpdateInput = { */ orderPredicate?: InputMaybe; /** List of channel ids to remove. */ - removeChannels?: InputMaybe>; + removeChannels?: InputMaybe>; /** * List of variant IDs available as a gift to remove. * @@ -22782,7 +23287,7 @@ export type PromotionRuleUpdateInput = { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - removeGifts?: InputMaybe>; + removeGifts?: InputMaybe>; /** * Defines the reward type of the promotion rule. * @@ -22792,7 +23297,7 @@ export type PromotionRuleUpdateInput = { */ rewardType?: InputMaybe; /** Defines the discount value. Required when catalogue predicate is provided. */ - rewardValue?: InputMaybe; + rewardValue?: InputMaybe; /** Defines the promotion rule reward value type. Must be provided together with reward value. */ rewardValueType?: InputMaybe; }; @@ -22806,7 +23311,7 @@ export type PromotionRuleUpdateInput = { */ export type PromotionRuleUpdated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The promotion rule the event relates to. */ @@ -22814,7 +23319,7 @@ export type PromotionRuleUpdated = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -22824,33 +23329,31 @@ export type PromotionRuleUpdated = Event & { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ -export type PromotionRuleUpdatedEvent = Node & - PromotionEventInterface & - PromotionRuleEventInterface & { - /** - * User or App that created the promotion event. - * - * Requires one of the following permissions: MANAGE_STAFF, MANAGE_APPS, OWNER. - */ - createdBy: Maybe; - /** Date when event happened. */ - date: Scalars["DateTime"]["output"]; - id: Scalars["ID"]["output"]; - /** The rule ID associated with the promotion event. */ - ruleId: Maybe; - /** Promotion event type. */ - type: PromotionEventsEnum; - }; +export type PromotionRuleUpdatedEvent = Node & PromotionEventInterface & PromotionRuleEventInterface & { + /** + * User or App that created the promotion event. + * + * Requires one of the following permissions: MANAGE_STAFF, MANAGE_APPS, OWNER. + */ + createdBy: Maybe; + /** Date when event happened. */ + date: Scalars['DateTime']['output']; + id: Scalars['ID']['output']; + /** The rule ID associated with the promotion event. */ + ruleId: Maybe; + /** Promotion event type. */ + type: PromotionEventsEnum; +}; export type PromotionSortField = /** Sort promotions by created at. */ - | "CREATED_AT" + | 'CREATED_AT' /** Sort promotions by end date. */ - | "END_DATE" + | 'END_DATE' /** Sort promotions by name. */ - | "NAME" + | 'NAME' /** Sort promotions by start date. */ - | "START_DATE"; + | 'START_DATE'; export type PromotionSortingInput = { /** Specifies the direction in which to sort promotions. */ @@ -22868,7 +23371,7 @@ export type PromotionSortingInput = { */ export type PromotionStarted = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The promotion the event relates to. */ @@ -22876,7 +23379,7 @@ export type PromotionStarted = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -22886,20 +23389,19 @@ export type PromotionStarted = Event & { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ -export type PromotionStartedEvent = Node & - PromotionEventInterface & { - /** - * User or App that created the promotion event. - * - * Requires one of the following permissions: MANAGE_STAFF, MANAGE_APPS, OWNER. - */ - createdBy: Maybe; - /** Date when event happened. */ - date: Scalars["DateTime"]["output"]; - id: Scalars["ID"]["output"]; - /** Promotion event type. */ - type: PromotionEventsEnum; - }; +export type PromotionStartedEvent = Node & PromotionEventInterface & { + /** + * User or App that created the promotion event. + * + * Requires one of the following permissions: MANAGE_STAFF, MANAGE_APPS, OWNER. + */ + createdBy: Maybe; + /** Date when event happened. */ + date: Scalars['DateTime']['output']; + id: Scalars['ID']['output']; + /** Promotion event type. */ + type: PromotionEventsEnum; +}; /** * Represents promotion's original translatable fields and related translations. @@ -22912,17 +23414,18 @@ export type PromotionTranslatableContent = Node & { * * Rich text format. For reference see https://editorjs.io/ */ - description: Maybe; + description: Maybe; /** ID of the promotion translatable content. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Name of the promotion. */ - name: Scalars["String"]["output"]; + name: Scalars['String']['output']; /** ID of the promotion to translate. */ - promotionId: Scalars["ID"]["output"]; + promotionId: Scalars['ID']['output']; /** Returns translated promotion fields for the given language code. */ translation: Maybe; }; + /** * Represents promotion's original translatable fields and related translations. * @@ -22955,13 +23458,13 @@ export type PromotionTranslation = Node & { * * Rich text format. For reference see https://editorjs.io/ */ - description: Maybe; + description: Maybe; /** ID of the promotion translation. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Translation language. */ language: LanguageDisplay; /** Translated name of the promotion. */ - name: Maybe; + name: Maybe; /** * Represents the promotion fields to translate. * @@ -22976,12 +23479,14 @@ export type PromotionTranslationInput = { * * Rich text format. For reference see https://editorjs.io/ */ - description?: InputMaybe; - name?: InputMaybe; + description?: InputMaybe; + name?: InputMaybe; }; /** An enumeration. */ -export type PromotionTypeEnum = "CATALOGUE" | "ORDER"; +export type PromotionTypeEnum = + | 'CATALOGUE' + | 'ORDER'; export type PromotionTypeEnumFilterInput = { /** The value equal to. */ @@ -23013,27 +23518,27 @@ export type PromotionUpdateError = { /** The error code. */ code: PromotionUpdateErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type PromotionUpdateErrorCode = - | "GRAPHQL_ERROR" - | "INVALID" - | "NOT_FOUND" - | "REQUIRED"; + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'REQUIRED'; export type PromotionUpdateInput = { /** Promotion description. */ - description?: InputMaybe; + description?: InputMaybe; /** The end date of the promotion in ISO 8601 format. */ - endDate?: InputMaybe; + endDate?: InputMaybe; /** Promotion name. */ - name?: InputMaybe; + name?: InputMaybe; /** The start date of the promotion in ISO 8601 format. */ - startDate?: InputMaybe; + startDate?: InputMaybe; }; /** @@ -23045,7 +23550,7 @@ export type PromotionUpdateInput = { */ export type PromotionUpdated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The promotion the event relates to. */ @@ -23053,7 +23558,7 @@ export type PromotionUpdated = Event & { /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -23063,20 +23568,19 @@ export type PromotionUpdated = Event & { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ -export type PromotionUpdatedEvent = Node & - PromotionEventInterface & { - /** - * User or App that created the promotion event. - * - * Requires one of the following permissions: MANAGE_STAFF, MANAGE_APPS, OWNER. - */ - createdBy: Maybe; - /** Date when event happened. */ - date: Scalars["DateTime"]["output"]; - id: Scalars["ID"]["output"]; - /** Promotion event type. */ - type: PromotionEventsEnum; - }; +export type PromotionUpdatedEvent = Node & PromotionEventInterface & { + /** + * User or App that created the promotion event. + * + * Requires one of the following permissions: MANAGE_STAFF, MANAGE_APPS, OWNER. + */ + createdBy: Maybe; + /** Date when event happened. */ + date: Scalars['DateTime']['output']; + id: Scalars['ID']['output']; + /** Promotion event type. */ + type: PromotionEventsEnum; +}; export type PromotionWhereInput = { /** List of conditions that must be met. */ @@ -23085,8 +23589,8 @@ export type PromotionWhereInput = { OR?: InputMaybe>; /** Filter promotions by end date. */ endDate?: InputMaybe; - ids?: InputMaybe>; - isOldSale?: InputMaybe; + ids?: InputMaybe>; + isOldSale?: InputMaybe; metadata?: InputMaybe>; /** Filter by promotion name. */ name?: InputMaybe; @@ -23097,21 +23601,21 @@ export type PromotionWhereInput = { export type PublishableChannelListingInput = { /** ID of a channel. */ - channelId: Scalars["ID"]["input"]; + channelId: Scalars['ID']['input']; /** Determines if object is visible to customers. */ - isPublished?: InputMaybe; + isPublished?: InputMaybe; /** * Publication date. ISO 8601 standard. * * DEPRECATED: this field will be removed in Saleor 4.0. Use `publishedAt` field instead. */ - publicationDate?: InputMaybe; + publicationDate?: InputMaybe; /** * Publication date time. ISO 8601 standard. * * Added in Saleor 3.3. */ - publishedAt?: InputMaybe; + publishedAt?: InputMaybe; }; export type Query = { @@ -23246,7 +23750,7 @@ export type Query = { * * Requires one of the following permissions: MANAGE_GIFT_CARD. */ - giftCardCurrencies: Array; + giftCardCurrencies: Array; /** * Gift card related settings from site settings. * @@ -23551,530 +24055,606 @@ export type Query = { */ webhookEvents: Maybe>; /** Retrieve a sample payload for a given webhook event based on real data. It can be useful for some integrations where sample payload is required. */ - webhookSamplePayload: Maybe; + webhookSamplePayload: Maybe; }; + export type Query_EntitiesArgs = { - representations?: InputMaybe>>; + representations?: InputMaybe>>; }; + export type QueryAddressArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type QueryAddressValidationRulesArgs = { - city?: InputMaybe; - cityArea?: InputMaybe; - countryArea?: InputMaybe; + city?: InputMaybe; + cityArea?: InputMaybe; + countryArea?: InputMaybe; countryCode: CountryCode; }; + export type QueryAppArgs = { - id?: InputMaybe; + id?: InputMaybe; }; + export type QueryAppExtensionArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type QueryAppExtensionsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; filter?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; + export type QueryAppsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; filter?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; sortBy?: InputMaybe; }; + export type QueryAttributeArgs = { - externalReference?: InputMaybe; - id?: InputMaybe; - slug?: InputMaybe; + externalReference?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }; + export type QueryAttributesArgs = { - after?: InputMaybe; - before?: InputMaybe; - channel?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + channel?: InputMaybe; filter?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - search?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + search?: InputMaybe; sortBy?: InputMaybe; where?: InputMaybe; }; + export type QueryCategoriesArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; filter?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - level?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + level?: InputMaybe; sortBy?: InputMaybe; where?: InputMaybe; }; + export type QueryCategoryArgs = { - id?: InputMaybe; - slug?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }; + export type QueryChannelArgs = { - id?: InputMaybe; - slug?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }; + export type QueryCheckoutArgs = { - id?: InputMaybe; - token?: InputMaybe; + id?: InputMaybe; + token?: InputMaybe; }; + export type QueryCheckoutLinesArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; + export type QueryCheckoutsArgs = { - after?: InputMaybe; - before?: InputMaybe; - channel?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + channel?: InputMaybe; filter?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; sortBy?: InputMaybe; }; + export type QueryCollectionArgs = { - channel?: InputMaybe; - id?: InputMaybe; - slug?: InputMaybe; + channel?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }; + export type QueryCollectionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - channel?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + channel?: InputMaybe; filter?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; sortBy?: InputMaybe; where?: InputMaybe; }; + export type QueryCustomersArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; filter?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; sortBy?: InputMaybe; }; + export type QueryDigitalContentArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type QueryDigitalContentsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; + export type QueryDraftOrdersArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; filter?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; sortBy?: InputMaybe; }; + export type QueryExportFileArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type QueryExportFilesArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; filter?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; sortBy?: InputMaybe; }; + export type QueryGiftCardArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type QueryGiftCardTagsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; filter?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; + export type QueryGiftCardsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; filter?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - search?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + search?: InputMaybe; sortBy?: InputMaybe; }; + export type QueryHomepageEventsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; + export type QueryMenuArgs = { - channel?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - slug?: InputMaybe; + channel?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + slug?: InputMaybe; }; + export type QueryMenuItemArgs = { - channel?: InputMaybe; - id: Scalars["ID"]["input"]; + channel?: InputMaybe; + id: Scalars['ID']['input']; }; + export type QueryMenuItemsArgs = { - after?: InputMaybe; - before?: InputMaybe; - channel?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + channel?: InputMaybe; filter?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; sortBy?: InputMaybe; }; + export type QueryMenusArgs = { - after?: InputMaybe; - before?: InputMaybe; - channel?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + channel?: InputMaybe; filter?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; sortBy?: InputMaybe; }; + export type QueryOrderArgs = { - externalReference?: InputMaybe; - id?: InputMaybe; + externalReference?: InputMaybe; + id?: InputMaybe; }; + export type QueryOrderByTokenArgs = { - token: Scalars["UUID"]["input"]; + token: Scalars['UUID']['input']; }; + export type QueryOrdersArgs = { - after?: InputMaybe; - before?: InputMaybe; - channel?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + channel?: InputMaybe; filter?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; sortBy?: InputMaybe; }; + export type QueryOrdersTotalArgs = { - channel?: InputMaybe; + channel?: InputMaybe; period?: InputMaybe; }; + export type QueryPageArgs = { - id?: InputMaybe; - slug?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }; + export type QueryPageTypeArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type QueryPageTypesArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; filter?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; sortBy?: InputMaybe; }; + export type QueryPagesArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; filter?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; sortBy?: InputMaybe; }; + export type QueryPaymentArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type QueryPaymentsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; filter?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; + export type QueryPermissionGroupArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type QueryPermissionGroupsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; filter?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; sortBy?: InputMaybe; }; + export type QueryPluginArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type QueryPluginsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; filter?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; sortBy?: InputMaybe; }; + export type QueryProductArgs = { - channel?: InputMaybe; - externalReference?: InputMaybe; - id?: InputMaybe; - slug?: InputMaybe; + channel?: InputMaybe; + externalReference?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }; + export type QueryProductTypeArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type QueryProductTypesArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; filter?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; sortBy?: InputMaybe; }; + export type QueryProductVariantArgs = { - channel?: InputMaybe; - externalReference?: InputMaybe; - id?: InputMaybe; - sku?: InputMaybe; + channel?: InputMaybe; + externalReference?: InputMaybe; + id?: InputMaybe; + sku?: InputMaybe; }; + export type QueryProductVariantsArgs = { - after?: InputMaybe; - before?: InputMaybe; - channel?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + channel?: InputMaybe; filter?: InputMaybe; - first?: InputMaybe; - ids?: InputMaybe>; - last?: InputMaybe; + first?: InputMaybe; + ids?: InputMaybe>; + last?: InputMaybe; sortBy?: InputMaybe; where?: InputMaybe; }; + export type QueryProductsArgs = { - after?: InputMaybe; - before?: InputMaybe; - channel?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + channel?: InputMaybe; filter?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - search?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + search?: InputMaybe; sortBy?: InputMaybe; where?: InputMaybe; }; + export type QueryPromotionArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type QueryPromotionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; sortBy?: InputMaybe; where?: InputMaybe; }; + export type QueryReportProductSalesArgs = { - after?: InputMaybe; - before?: InputMaybe; - channel: Scalars["String"]["input"]; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + channel: Scalars['String']['input']; + first?: InputMaybe; + last?: InputMaybe; period: ReportingPeriod; }; + export type QuerySaleArgs = { - channel?: InputMaybe; - id: Scalars["ID"]["input"]; + channel?: InputMaybe; + id: Scalars['ID']['input']; }; + export type QuerySalesArgs = { - after?: InputMaybe; - before?: InputMaybe; - channel?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + channel?: InputMaybe; filter?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - query?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + query?: InputMaybe; sortBy?: InputMaybe; }; + export type QueryShippingZoneArgs = { - channel?: InputMaybe; - id: Scalars["ID"]["input"]; + channel?: InputMaybe; + id: Scalars['ID']['input']; }; + export type QueryShippingZonesArgs = { - after?: InputMaybe; - before?: InputMaybe; - channel?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + channel?: InputMaybe; filter?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; + export type QueryStaffUsersArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; filter?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; sortBy?: InputMaybe; }; + export type QueryStockArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type QueryStocksArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; filter?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; + export type QueryTaxClassArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type QueryTaxClassesArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; filter?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; sortBy?: InputMaybe; }; + export type QueryTaxConfigurationArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type QueryTaxConfigurationsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; filter?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; + export type QueryTaxCountryConfigurationArgs = { countryCode: CountryCode; }; + export type QueryTransactionArgs = { - id?: InputMaybe; - token?: InputMaybe; + id?: InputMaybe; + token?: InputMaybe; }; + export type QueryTranslationArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; kind: TranslatableKinds; }; + export type QueryTranslationsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; kind: TranslatableKinds; - last?: InputMaybe; + last?: InputMaybe; }; + export type QueryUserArgs = { - email?: InputMaybe; - externalReference?: InputMaybe; - id?: InputMaybe; + email?: InputMaybe; + externalReference?: InputMaybe; + id?: InputMaybe; }; + export type QueryVoucherArgs = { - channel?: InputMaybe; - id: Scalars["ID"]["input"]; + channel?: InputMaybe; + id: Scalars['ID']['input']; }; + export type QueryVouchersArgs = { - after?: InputMaybe; - before?: InputMaybe; - channel?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + channel?: InputMaybe; filter?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - query?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + query?: InputMaybe; sortBy?: InputMaybe; }; + export type QueryWarehouseArgs = { - externalReference?: InputMaybe; - id?: InputMaybe; + externalReference?: InputMaybe; + id?: InputMaybe; }; + export type QueryWarehousesArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; filter?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; sortBy?: InputMaybe; }; + export type QueryWebhookArgs = { - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; }; + export type QueryWebhookSamplePayloadArgs = { eventType: WebhookSampleEventTypeEnum; }; @@ -24082,9 +24662,9 @@ export type QueryWebhookSamplePayloadArgs = { /** Represents a reduced VAT rate for a particular type of goods. */ export type ReducedRate = { /** Reduced VAT rate in percent. */ - rate: Scalars["Float"]["output"]; + rate: Scalars['Float']['output']; /** A type of goods. */ - rateType: Scalars["String"]["output"]; + rateType: Scalars['String']['output']; }; /** Refresh JWT token. Mutation tries to take refreshToken from the input. If it fails it will try to take `refreshToken` from the http-only cookie `refreshToken`. `csrfToken` is required when `refreshToken` is provided as a cookie. */ @@ -24093,19 +24673,21 @@ export type RefreshToken = { accountErrors: Array; errors: Array; /** JWT token, required to authenticate. */ - token: Maybe; + token: Maybe; /** A user instance. */ user: Maybe; }; export type ReorderInput = { /** The ID of the item to move. */ - id: Scalars["ID"]["input"]; + id: Scalars['ID']['input']; /** The new relative sorting position of the item (from -inf to +inf). 1 moves the item one position forward, -1 moves the item one position backward, 0 leaves the item unchanged. */ - sortOrder?: InputMaybe; + sortOrder?: InputMaybe; }; -export type ReportingPeriod = "THIS_MONTH" | "TODAY"; +export type ReportingPeriod = + | 'THIS_MONTH' + | 'TODAY'; /** * Request email change of the logged in user. @@ -24139,99 +24721,103 @@ export type RequestPasswordReset = { }; /** An enumeration. */ -export type RewardTypeEnum = "GIFT" | "SUBTOTAL_DISCOUNT"; +export type RewardTypeEnum = + | 'GIFT' + | 'SUBTOTAL_DISCOUNT'; /** An enumeration. */ -export type RewardValueTypeEnum = "FIXED" | "PERCENTAGE"; +export type RewardValueTypeEnum = + | 'FIXED' + | 'PERCENTAGE'; /** * Sales allow creating discounts for categories, collections or products and are visible to all the customers. * * DEPRECATED: this type will be removed in Saleor 4.0. Use `Promotion` type instead. */ -export type Sale = Node & - ObjectWithMetadata & { - /** List of categories this sale applies to. */ - categories: Maybe; - /** - * List of channels available for the sale. - * - * Requires one of the following permissions: MANAGE_DISCOUNTS. - */ - channelListings: Maybe>; - /** - * List of collections this sale applies to. - * - * Requires one of the following permissions: MANAGE_DISCOUNTS. - */ - collections: Maybe; - /** The date and time when the sale was created. */ - created: Scalars["DateTime"]["output"]; - /** Currency code for sale. */ - currency: Maybe; - /** Sale value. */ - discountValue: Maybe; - /** The end date and time of the sale. */ - endDate: Maybe; - /** The ID of the sale. */ - id: Scalars["ID"]["output"]; - /** List of public metadata items. Can be accessed without permissions. */ - metadata: Array; - /** - * A single key from public metadata. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - metafield: Maybe; - /** - * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - metafields: Maybe; - /** The name of the sale. */ - name: Scalars["String"]["output"]; - /** List of private metadata items. Requires staff permissions to access. */ - privateMetadata: Array; - /** - * A single key from private metadata. Requires staff permissions to access. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - privateMetafield: Maybe; - /** - * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - privateMetafields: Maybe; - /** - * List of products this sale applies to. - * - * Requires one of the following permissions: MANAGE_DISCOUNTS. - */ - products: Maybe; - /** The start date and time of the sale. */ - startDate: Scalars["DateTime"]["output"]; - /** Returns translated sale fields for the given language code. */ - translation: Maybe; - /** Type of the sale, fixed or percentage. */ - type: SaleType; - /** The date and time when the sale was updated. */ - updatedAt: Scalars["DateTime"]["output"]; - /** - * List of product variants this sale applies to. - * - * Added in Saleor 3.1. - * - * Requires one of the following permissions: MANAGE_DISCOUNTS. - */ - variants: Maybe; - }; +export type Sale = Node & ObjectWithMetadata & { + /** List of categories this sale applies to. */ + categories: Maybe; + /** + * List of channels available for the sale. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ + channelListings: Maybe>; + /** + * List of collections this sale applies to. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ + collections: Maybe; + /** The date and time when the sale was created. */ + created: Scalars['DateTime']['output']; + /** Currency code for sale. */ + currency: Maybe; + /** Sale value. */ + discountValue: Maybe; + /** The end date and time of the sale. */ + endDate: Maybe; + /** The ID of the sale. */ + id: Scalars['ID']['output']; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * A single key from public metadata. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + metafield: Maybe; + /** + * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + metafields: Maybe; + /** The name of the sale. */ + name: Scalars['String']['output']; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * A single key from private metadata. Requires staff permissions to access. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + privateMetafield: Maybe; + /** + * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + privateMetafields: Maybe; + /** + * List of products this sale applies to. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ + products: Maybe; + /** The start date and time of the sale. */ + startDate: Scalars['DateTime']['output']; + /** Returns translated sale fields for the given language code. */ + translation: Maybe; + /** Type of the sale, fixed or percentage. */ + type: SaleType; + /** The date and time when the sale was updated. */ + updatedAt: Scalars['DateTime']['output']; + /** + * List of product variants this sale applies to. + * + * Added in Saleor 3.1. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ + variants: Maybe; +}; + /** * Sales allow creating discounts for categories, collections or products and are visible to all the customers. @@ -24239,72 +24825,79 @@ export type Sale = Node & * DEPRECATED: this type will be removed in Saleor 4.0. Use `Promotion` type instead. */ export type SaleCategoriesArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; + /** * Sales allow creating discounts for categories, collections or products and are visible to all the customers. * * DEPRECATED: this type will be removed in Saleor 4.0. Use `Promotion` type instead. */ export type SaleCollectionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; + /** * Sales allow creating discounts for categories, collections or products and are visible to all the customers. * * DEPRECATED: this type will be removed in Saleor 4.0. Use `Promotion` type instead. */ export type SaleMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** * Sales allow creating discounts for categories, collections or products and are visible to all the customers. * * DEPRECATED: this type will be removed in Saleor 4.0. Use `Promotion` type instead. */ export type SaleMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** * Sales allow creating discounts for categories, collections or products and are visible to all the customers. * * DEPRECATED: this type will be removed in Saleor 4.0. Use `Promotion` type instead. */ export type SalePrivateMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** * Sales allow creating discounts for categories, collections or products and are visible to all the customers. * * DEPRECATED: this type will be removed in Saleor 4.0. Use `Promotion` type instead. */ export type SalePrivateMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** * Sales allow creating discounts for categories, collections or products and are visible to all the customers. * * DEPRECATED: this type will be removed in Saleor 4.0. Use `Promotion` type instead. */ export type SaleProductsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; + /** * Sales allow creating discounts for categories, collections or products and are visible to all the customers. * @@ -24314,16 +24907,17 @@ export type SaleTranslationArgs = { languageCode: LanguageCodeEnum; }; + /** * Sales allow creating discounts for categories, collections or products and are visible to all the customers. * * DEPRECATED: this type will be removed in Saleor 4.0. Use `Promotion` type instead. */ export type SaleVariantsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; /** @@ -24354,7 +24948,7 @@ export type SaleAddCatalogues = { */ export type SaleBulkDelete = { /** Returns how many objects were affected. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ discountErrors: Array; errors: Array; @@ -24369,25 +24963,25 @@ export type SaleChannelListing = Node & { /** The channel in which the sale is available. */ channel: Channel; /** The currency in which the discount value is specified. */ - currency: Scalars["String"]["output"]; + currency: Scalars['String']['output']; /** The value of the discount applied to the sale in the channel. */ - discountValue: Scalars["Float"]["output"]; + discountValue: Scalars['Float']['output']; /** The ID of the channel listing. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; }; export type SaleChannelListingAddInput = { /** ID of a channel. */ - channelId: Scalars["ID"]["input"]; + channelId: Scalars['ID']['input']; /** The value of the discount. */ - discountValue: Scalars["PositiveDecimal"]["input"]; + discountValue: Scalars['PositiveDecimal']['input']; }; export type SaleChannelListingInput = { /** List of channels to which the sale should be assigned. */ addChannels?: InputMaybe>; /** List of channels from which the sale should be unassigned. */ - removeChannels?: InputMaybe>; + removeChannels?: InputMaybe>; }; /** @@ -24410,12 +25004,12 @@ export type SaleCountableConnection = { /** Pagination data for this connection. */ pageInfo: PageInfo; /** A total count of items in the collection. */ - totalCount: Maybe; + totalCount: Maybe; }; export type SaleCountableEdge = { /** A cursor for use in pagination. */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node: Sale; }; @@ -24446,7 +25040,7 @@ export type SaleCreate = { */ export type SaleCreated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ @@ -24454,9 +25048,10 @@ export type SaleCreated = Event & { /** The sale the event relates to. */ sale: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; + /** * Event sent when new sale is created. * @@ -24465,7 +25060,7 @@ export type SaleCreated = Event & { * DEPRECATED: this event will be removed in Saleor 4.0. Use `PromotionCreated` event instead. */ export type SaleCreatedSaleArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; /** @@ -24494,7 +25089,7 @@ export type SaleDelete = { */ export type SaleDeleted = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ @@ -24502,9 +25097,10 @@ export type SaleDeleted = Event & { /** The sale the event relates to. */ sale: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; + /** * Event sent when sale is deleted. * @@ -24513,13 +25109,13 @@ export type SaleDeleted = Event & { * DEPRECATED: this event will be removed in Saleor 4.0. Use `PromotionDeleted` event instead. */ export type SaleDeletedSaleArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; export type SaleFilterInput = { metadata?: InputMaybe>; saleType?: InputMaybe; - search?: InputMaybe; + search?: InputMaybe; started?: InputMaybe; status?: InputMaybe>; updatedAt?: InputMaybe; @@ -24527,22 +25123,22 @@ export type SaleFilterInput = { export type SaleInput = { /** Categories related to the discount. */ - categories?: InputMaybe>; + categories?: InputMaybe>; /** Collections related to the discount. */ - collections?: InputMaybe>; + collections?: InputMaybe>; /** End date of the voucher in ISO 8601 format. */ - endDate?: InputMaybe; + endDate?: InputMaybe; /** Voucher name. */ - name?: InputMaybe; + name?: InputMaybe; /** Products related to the discount. */ - products?: InputMaybe>; + products?: InputMaybe>; /** Start date of the voucher in ISO 8601 format. */ - startDate?: InputMaybe; + startDate?: InputMaybe; /** Fixed or percentage. */ type?: InputMaybe; /** Value of the voucher. */ - value?: InputMaybe; - variants?: InputMaybe>; + value?: InputMaybe; + variants?: InputMaybe>; }; /** @@ -24565,23 +25161,23 @@ export type SaleRemoveCatalogues = { export type SaleSortField = /** Sort sales by created at. */ - | "CREATED_AT" + | 'CREATED_AT' /** Sort sales by end date. */ - | "END_DATE" + | 'END_DATE' /** Sort sales by last modified at. */ - | "LAST_MODIFIED_AT" + | 'LAST_MODIFIED_AT' /** Sort sales by name. */ - | "NAME" + | 'NAME' /** Sort sales by start date. */ - | "START_DATE" + | 'START_DATE' /** Sort sales by type. */ - | "TYPE" + | 'TYPE' /** * Sort sales by value. * * This option requires a channel filter to work as the values can vary between channels. */ - | "VALUE"; + | 'VALUE'; export type SaleSortingInput = { /** @@ -24589,7 +25185,7 @@ export type SaleSortingInput = { * * DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead. */ - channel?: InputMaybe; + channel?: InputMaybe; /** Specifies the direction in which to sort sales. */ direction: OrderDirection; /** Sort sales by the selected field. */ @@ -24605,7 +25201,7 @@ export type SaleSortingInput = { */ export type SaleToggle = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ @@ -24617,9 +25213,10 @@ export type SaleToggle = Event & { */ sale: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; + /** * The event informs about the start or end of the sale. * @@ -24628,7 +25225,7 @@ export type SaleToggle = Event & { * DEPRECATED: this event will be removed in Saleor 4.0. Use `PromotionStarted` and `PromotionEnded` events instead. */ export type SaleToggleSaleArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; /** @@ -24638,9 +25235,9 @@ export type SaleToggleSaleArgs = { */ export type SaleTranslatableContent = Node & { /** The ID of the sale translatable content. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Name of the sale to translate. */ - name: Scalars["String"]["output"]; + name: Scalars['String']['output']; /** * Sales allow creating discounts for categories, collections or products and are visible to all the customers. * @@ -24653,11 +25250,12 @@ export type SaleTranslatableContent = Node & { * * Added in Saleor 3.14. */ - saleId: Scalars["ID"]["output"]; + saleId: Scalars['ID']['output']; /** Returns translated sale fields for the given language code. */ translation: Maybe; }; + /** * Represents sale's original translatable fields and related translations. * @@ -24688,11 +25286,11 @@ export type SaleTranslate = { */ export type SaleTranslation = Node & { /** The ID of the sale translation. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Translation language. */ language: LanguageDisplay; /** Translated name of sale. */ - name: Maybe; + name: Maybe; /** * Represents the sale fields to translate. * @@ -24701,7 +25299,9 @@ export type SaleTranslation = Node & { translatableContent: Maybe; }; -export type SaleType = "FIXED" | "PERCENTAGE"; +export type SaleType = + | 'FIXED' + | 'PERCENTAGE'; /** * Updates a sale. @@ -24730,7 +25330,7 @@ export type SaleUpdate = { */ export type SaleUpdated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ @@ -24738,9 +25338,10 @@ export type SaleUpdated = Event & { /** The sale the event relates to. */ sale: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; + /** * Event sent when sale is updated. * @@ -24749,7 +25350,7 @@ export type SaleUpdated = Event & { * DEPRECATED: this event will be removed in Saleor 4.0. Use `PromotionUpdated` event instead. */ export type SaleUpdatedSaleArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; /** Represents a custom attribute. */ @@ -24781,23 +25382,23 @@ export type SendConfirmationEmailError = { /** The error code. */ code: SendConfirmationEmailErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type SendConfirmationEmailErrorCode = - | "ACCOUNT_CONFIRMED" - | "CONFIRMATION_ALREADY_REQUESTED" - | "INVALID" - | "MISSING_CHANNEL_SLUG"; + | 'ACCOUNT_CONFIRMED' + | 'CONFIRMATION_ALREADY_REQUESTED' + | 'INVALID' + | 'MISSING_CHANNEL_SLUG'; export type SeoInput = { /** SEO description. */ - description?: InputMaybe; + description?: InputMaybe; /** SEO title. */ - title?: InputMaybe; + title?: InputMaybe; }; /** Sets the user's password from the token sent by email using the RequestPasswordReset mutation. */ @@ -24805,39 +25406,39 @@ export type SetPassword = { /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ accountErrors: Array; /** CSRF token required to re-generate access token. */ - csrfToken: Maybe; + csrfToken: Maybe; errors: Array; /** JWT refresh token, required to re-generate access token. */ - refreshToken: Maybe; + refreshToken: Maybe; /** JWT token, required to authenticate. */ - token: Maybe; + token: Maybe; /** A user instance. */ user: Maybe; }; export type ShippingError = { /** List of channels IDs which causes the error. */ - channels: Maybe>; + channels: Maybe>; /** The error code. */ code: ShippingErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; /** List of warehouse IDs which causes the error. */ - warehouses: Maybe>; + warehouses: Maybe>; }; /** An enumeration. */ export type ShippingErrorCode = - | "ALREADY_EXISTS" - | "DUPLICATED_INPUT_ITEM" - | "GRAPHQL_ERROR" - | "INVALID" - | "MAX_LESS_THAN_MIN" - | "NOT_FOUND" - | "REQUIRED" - | "UNIQUE"; + | 'ALREADY_EXISTS' + | 'DUPLICATED_INPUT_ITEM' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'MAX_LESS_THAN_MIN' + | 'NOT_FOUND' + | 'REQUIRED' + | 'UNIQUE'; /** * List shipping methods for checkout. @@ -24848,7 +25449,7 @@ export type ShippingListMethodsForCheckout = Event & { /** The checkout the event relates to. */ checkout: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ @@ -24860,95 +25461,99 @@ export type ShippingListMethodsForCheckout = Event & { */ shippingMethods: Maybe>; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** Shipping methods that can be used as means of shipping for orders and checkouts. */ -export type ShippingMethod = Node & - ObjectWithMetadata & { - /** Describes if this shipping method is active and can be selected. */ - active: Scalars["Boolean"]["output"]; - /** - * Shipping method description. - * - * Rich text format. For reference see https://editorjs.io/ - */ - description: Maybe; - /** Unique ID of ShippingMethod available for Order. */ - id: Scalars["ID"]["output"]; - /** Maximum delivery days for this shipping method. */ - maximumDeliveryDays: Maybe; - /** Maximum order price for this shipping method. */ - maximumOrderPrice: Maybe; - /** - * Maximum order weight for this shipping method. - * @deprecated This field will be removed in Saleor 4.0. - */ - maximumOrderWeight: Maybe; - /** Message connected to this shipping method. */ - message: Maybe; - /** List of public metadata items. Can be accessed without permissions. */ - metadata: Array; - /** - * A single key from public metadata. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - */ - metafield: Maybe; - /** Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. */ - metafields: Maybe; - /** Minimum delivery days for this shipping method. */ - minimumDeliveryDays: Maybe; - /** Minimal order price for this shipping method. */ - minimumOrderPrice: Maybe; - /** - * Minimum order weight for this shipping method. - * @deprecated This field will be removed in Saleor 4.0. - */ - minimumOrderWeight: Maybe; - /** Shipping method name. */ - name: Scalars["String"]["output"]; - /** The price of selected shipping method. */ - price: Money; - /** List of private metadata items. Requires staff permissions to access. */ - privateMetadata: Array; - /** - * A single key from private metadata. Requires staff permissions to access. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - */ - privateMetafield: Maybe; - /** Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. */ - privateMetafields: Maybe; - /** Returns translated shipping method fields for the given language code. */ - translation: Maybe; - /** - * Type of the shipping method. - * @deprecated This field will be removed in Saleor 4.0. - */ - type: Maybe; - }; +export type ShippingMethod = Node & ObjectWithMetadata & { + /** Describes if this shipping method is active and can be selected. */ + active: Scalars['Boolean']['output']; + /** + * Shipping method description. + * + * Rich text format. For reference see https://editorjs.io/ + */ + description: Maybe; + /** Unique ID of ShippingMethod available for Order. */ + id: Scalars['ID']['output']; + /** Maximum delivery days for this shipping method. */ + maximumDeliveryDays: Maybe; + /** Maximum order price for this shipping method. */ + maximumOrderPrice: Maybe; + /** + * Maximum order weight for this shipping method. + * @deprecated This field will be removed in Saleor 4.0. + */ + maximumOrderWeight: Maybe; + /** Message connected to this shipping method. */ + message: Maybe; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * A single key from public metadata. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + */ + metafield: Maybe; + /** Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. */ + metafields: Maybe; + /** Minimum delivery days for this shipping method. */ + minimumDeliveryDays: Maybe; + /** Minimal order price for this shipping method. */ + minimumOrderPrice: Maybe; + /** + * Minimum order weight for this shipping method. + * @deprecated This field will be removed in Saleor 4.0. + */ + minimumOrderWeight: Maybe; + /** Shipping method name. */ + name: Scalars['String']['output']; + /** The price of selected shipping method. */ + price: Money; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * A single key from private metadata. Requires staff permissions to access. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + */ + privateMetafield: Maybe; + /** Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. */ + privateMetafields: Maybe; + /** Returns translated shipping method fields for the given language code. */ + translation: Maybe; + /** + * Type of the shipping method. + * @deprecated This field will be removed in Saleor 4.0. + */ + type: Maybe; +}; + /** Shipping methods that can be used as means of shipping for orders and checkouts. */ export type ShippingMethodMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Shipping methods that can be used as means of shipping for orders and checkouts. */ export type ShippingMethodMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Shipping methods that can be used as means of shipping for orders and checkouts. */ export type ShippingMethodPrivateMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Shipping methods that can be used as means of shipping for orders and checkouts. */ export type ShippingMethodPrivateMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Shipping methods that can be used as means of shipping for orders and checkouts. */ export type ShippingMethodTranslationArgs = { languageCode: LanguageCodeEnum; @@ -24959,7 +25564,7 @@ export type ShippingMethodChannelListing = Node & { /** The channel associated with the shipping method channel listing. */ channel: Channel; /** The ID of shipping method channel listing. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Maximum order price. */ maximumOrderPrice: Maybe; /** Minimum order price. */ @@ -24970,20 +25575,20 @@ export type ShippingMethodChannelListing = Node & { export type ShippingMethodChannelListingAddInput = { /** ID of a channel. */ - channelId: Scalars["ID"]["input"]; + channelId: Scalars['ID']['input']; /** Maximum order price to use this shipping method. */ - maximumOrderPrice?: InputMaybe; + maximumOrderPrice?: InputMaybe; /** Minimum order price to use this shipping method. */ - minimumOrderPrice?: InputMaybe; + minimumOrderPrice?: InputMaybe; /** Shipping price of the shipping method in this channel. */ - price?: InputMaybe; + price?: InputMaybe; }; export type ShippingMethodChannelListingInput = { /** List of channels to which the shipping method should be assigned. */ addChannels?: InputMaybe>; /** List of channels from which the shipping method should be unassigned. */ - removeChannels?: InputMaybe>; + removeChannels?: InputMaybe>; }; /** @@ -25002,13 +25607,13 @@ export type ShippingMethodChannelListingUpdate = { /** Represents shipping method postal code rule. */ export type ShippingMethodPostalCodeRule = Node & { /** End address range. */ - end: Maybe; + end: Maybe; /** The ID of the object. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Inclusion type of the postal code rule. */ inclusionType: Maybe; /** Start address range. */ - start: Maybe; + start: Maybe; }; /** Represents shipping method's original translatable fields and related translations. */ @@ -25018,11 +25623,11 @@ export type ShippingMethodTranslatableContent = Node & { * * Rich text format. For reference see https://editorjs.io/ */ - description: Maybe; + description: Maybe; /** The ID of the shipping method translatable content. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Shipping method name to translate. */ - name: Scalars["String"]["output"]; + name: Scalars['String']['output']; /** * Shipping method are the methods you'll use to get customer's orders to them. They are directly exposed to the customers. * @@ -25035,11 +25640,12 @@ export type ShippingMethodTranslatableContent = Node & { * * Added in Saleor 3.14. */ - shippingMethodId: Scalars["ID"]["output"]; + shippingMethodId: Scalars['ID']['output']; /** Returns translated shipping method fields for the given language code. */ translation: Maybe; }; + /** Represents shipping method's original translatable fields and related translations. */ export type ShippingMethodTranslatableContentTranslationArgs = { languageCode: LanguageCodeEnum; @@ -25050,141 +25656,148 @@ export type ShippingMethodTranslation = Node & { /** * Translated description of the shipping method. * - * Rich text format. For reference see https://editorjs.io/ + * Rich text format. For reference see https://editorjs.io/ + */ + description: Maybe; + /** The ID of the shipping method translation. */ + id: Scalars['ID']['output']; + /** Translation language. */ + language: LanguageDisplay; + /** Translated shipping method name. */ + name: Maybe; + /** + * Represents the shipping method fields to translate. + * + * Added in Saleor 3.14. + */ + translatableContent: Maybe; +}; + +/** Shipping method are the methods you'll use to get customer's orders to them. They are directly exposed to the customers. */ +export type ShippingMethodType = Node & ObjectWithMetadata & { + /** + * List of channels available for the method. + * + * Requires one of the following permissions: MANAGE_SHIPPING. + */ + channelListings: Maybe>; + /** + * Shipping method description. + * + * Rich text format. For reference see https://editorjs.io/ + */ + description: Maybe; + /** + * List of excluded products for the shipping method. + * + * Requires one of the following permissions: MANAGE_SHIPPING. + */ + excludedProducts: Maybe; + /** Shipping method ID. */ + id: Scalars['ID']['output']; + /** Maximum number of days for delivery. */ + maximumDeliveryDays: Maybe; + /** The price of the cheapest variant (including discounts). */ + maximumOrderPrice: Maybe; + /** Maximum order weight to use this shipping method. */ + maximumOrderWeight: Maybe; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * A single key from public metadata. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + metafield: Maybe; + /** + * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + metafields: Maybe; + /** Minimal number of days for delivery. */ + minimumDeliveryDays: Maybe; + /** The price of the cheapest variant (including discounts). */ + minimumOrderPrice: Maybe; + /** Minimum order weight to use this shipping method. */ + minimumOrderWeight: Maybe; + /** Shipping method name. */ + name: Scalars['String']['output']; + /** Postal code ranges rule of exclusion or inclusion of the shipping method. */ + postalCodeRules: Maybe>; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * A single key from private metadata. Requires staff permissions to access. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + privateMetafield: Maybe; + /** + * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. */ - description: Maybe; - /** The ID of the shipping method translation. */ - id: Scalars["ID"]["output"]; - /** Translation language. */ - language: LanguageDisplay; - /** Translated shipping method name. */ - name: Maybe; + privateMetafields: Maybe; /** - * Represents the shipping method fields to translate. + * Tax class assigned to this shipping method. * - * Added in Saleor 3.14. + * Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. */ - translatableContent: Maybe; + taxClass: Maybe; + /** Returns translated shipping method fields for the given language code. */ + translation: Maybe; + /** Type of the shipping method. */ + type: Maybe; }; -/** Shipping method are the methods you'll use to get customer's orders to them. They are directly exposed to the customers. */ -export type ShippingMethodType = Node & - ObjectWithMetadata & { - /** - * List of channels available for the method. - * - * Requires one of the following permissions: MANAGE_SHIPPING. - */ - channelListings: Maybe>; - /** - * Shipping method description. - * - * Rich text format. For reference see https://editorjs.io/ - */ - description: Maybe; - /** - * List of excluded products for the shipping method. - * - * Requires one of the following permissions: MANAGE_SHIPPING. - */ - excludedProducts: Maybe; - /** Shipping method ID. */ - id: Scalars["ID"]["output"]; - /** Maximum number of days for delivery. */ - maximumDeliveryDays: Maybe; - /** The price of the cheapest variant (including discounts). */ - maximumOrderPrice: Maybe; - /** Maximum order weight to use this shipping method. */ - maximumOrderWeight: Maybe; - /** List of public metadata items. Can be accessed without permissions. */ - metadata: Array; - /** - * A single key from public metadata. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - metafield: Maybe; - /** - * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - metafields: Maybe; - /** Minimal number of days for delivery. */ - minimumDeliveryDays: Maybe; - /** The price of the cheapest variant (including discounts). */ - minimumOrderPrice: Maybe; - /** Minimum order weight to use this shipping method. */ - minimumOrderWeight: Maybe; - /** Shipping method name. */ - name: Scalars["String"]["output"]; - /** Postal code ranges rule of exclusion or inclusion of the shipping method. */ - postalCodeRules: Maybe>; - /** List of private metadata items. Requires staff permissions to access. */ - privateMetadata: Array; - /** - * A single key from private metadata. Requires staff permissions to access. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - privateMetafield: Maybe; - /** - * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - privateMetafields: Maybe; - /** - * Tax class assigned to this shipping method. - * - * Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. - */ - taxClass: Maybe; - /** Returns translated shipping method fields for the given language code. */ - translation: Maybe; - /** Type of the shipping method. */ - type: Maybe; - }; /** Shipping method are the methods you'll use to get customer's orders to them. They are directly exposed to the customers. */ export type ShippingMethodTypeExcludedProductsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; + /** Shipping method are the methods you'll use to get customer's orders to them. They are directly exposed to the customers. */ export type ShippingMethodTypeMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Shipping method are the methods you'll use to get customer's orders to them. They are directly exposed to the customers. */ export type ShippingMethodTypeMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Shipping method are the methods you'll use to get customer's orders to them. They are directly exposed to the customers. */ export type ShippingMethodTypePrivateMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Shipping method are the methods you'll use to get customer's orders to them. They are directly exposed to the customers. */ export type ShippingMethodTypePrivateMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Shipping method are the methods you'll use to get customer's orders to them. They are directly exposed to the customers. */ export type ShippingMethodTypeTranslationArgs = { languageCode: LanguageCodeEnum; }; /** An enumeration. */ -export type ShippingMethodTypeEnum = "PRICE" | "WEIGHT"; +export type ShippingMethodTypeEnum = + | 'PRICE' + | 'WEIGHT'; /** * List of shipping methods available for the country. @@ -25200,9 +25813,9 @@ export type ShippingMethodsPerCountry = { export type ShippingPostalCodeRulesCreateInputRange = { /** End range of the postal code. */ - end?: InputMaybe; + end?: InputMaybe; /** Start range of the postal code. */ - start: Scalars["String"]["input"]; + start: Scalars['String']['input']; }; /** @@ -25212,7 +25825,7 @@ export type ShippingPostalCodeRulesCreateInputRange = { */ export type ShippingPriceBulkDelete = { /** Returns how many objects were affected. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ shippingErrors: Array; @@ -25239,7 +25852,7 @@ export type ShippingPriceCreate = { */ export type ShippingPriceCreated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ @@ -25249,25 +25862,27 @@ export type ShippingPriceCreated = Event & { /** The shipping zone the shipping method belongs to. */ shippingZone: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; + /** * Event sent when new shipping price is created. * * Added in Saleor 3.2. */ export type ShippingPriceCreatedShippingMethodArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; + /** * Event sent when new shipping price is created. * * Added in Saleor 3.2. */ export type ShippingPriceCreatedShippingZoneArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; /** @@ -25292,7 +25907,7 @@ export type ShippingPriceDelete = { */ export type ShippingPriceDeleted = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ @@ -25302,25 +25917,27 @@ export type ShippingPriceDeleted = Event & { /** The shipping zone the shipping method belongs to. */ shippingZone: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; + /** * Event sent when shipping price is deleted. * * Added in Saleor 3.2. */ export type ShippingPriceDeletedShippingMethodArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; + /** * Event sent when shipping price is deleted. * * Added in Saleor 3.2. */ export type ShippingPriceDeletedShippingZoneArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; /** @@ -25338,34 +25955,32 @@ export type ShippingPriceExcludeProducts = { export type ShippingPriceExcludeProductsInput = { /** List of products which will be excluded. */ - products: Array; + products: Array; }; export type ShippingPriceInput = { /** Postal code rules to add. */ - addPostalCodeRules?: InputMaybe< - Array - >; + addPostalCodeRules?: InputMaybe>; /** Postal code rules to delete. */ - deletePostalCodeRules?: InputMaybe>; + deletePostalCodeRules?: InputMaybe>; /** Shipping method description. */ - description?: InputMaybe; + description?: InputMaybe; /** Inclusion type for currently assigned postal code rules. */ inclusionType?: InputMaybe; /** Maximum number of days for delivery. */ - maximumDeliveryDays?: InputMaybe; + maximumDeliveryDays?: InputMaybe; /** Maximum order weight to use this shipping method. */ - maximumOrderWeight?: InputMaybe; + maximumOrderWeight?: InputMaybe; /** Minimal number of days for delivery. */ - minimumDeliveryDays?: InputMaybe; + minimumDeliveryDays?: InputMaybe; /** Minimum order weight to use this shipping method. */ - minimumOrderWeight?: InputMaybe; + minimumOrderWeight?: InputMaybe; /** Name of the shipping method. */ - name?: InputMaybe; + name?: InputMaybe; /** Shipping zone this method belongs to. */ - shippingZone?: InputMaybe; + shippingZone?: InputMaybe; /** ID of a tax class to assign to this shipping method. If not provided, the default tax class will be used. */ - taxClass?: InputMaybe; + taxClass?: InputMaybe; /** Shipping type: price or weight based. */ type?: InputMaybe; }; @@ -25401,8 +26016,8 @@ export type ShippingPriceTranslationInput = { * * Rich text format. For reference see https://editorjs.io/ */ - description?: InputMaybe; - name?: InputMaybe; + description?: InputMaybe; + name?: InputMaybe; }; /** @@ -25426,7 +26041,7 @@ export type ShippingPriceUpdate = { */ export type ShippingPriceUpdated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ @@ -25436,100 +26051,105 @@ export type ShippingPriceUpdated = Event & { /** The shipping zone the shipping method belongs to. */ shippingZone: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; + /** * Event sent when shipping price is updated. * * Added in Saleor 3.2. */ export type ShippingPriceUpdatedShippingMethodArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; + /** * Event sent when shipping price is updated. * * Added in Saleor 3.2. */ export type ShippingPriceUpdatedShippingZoneArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; /** Represents a shipping zone in the shop. Zones are the concept used only for grouping shipping methods in the dashboard, and are never exposed to the customers directly. */ -export type ShippingZone = Node & - ObjectWithMetadata & { - /** List of channels for shipping zone. */ - channels: Array; - /** List of countries available for the method. */ - countries: Array; - /** Indicates if the shipping zone is default one. */ - default: Scalars["Boolean"]["output"]; - /** Description of a shipping zone. */ - description: Maybe; - /** The ID of shipping zone. */ - id: Scalars["ID"]["output"]; - /** List of public metadata items. Can be accessed without permissions. */ - metadata: Array; - /** - * A single key from public metadata. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - metafield: Maybe; - /** - * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - metafields: Maybe; - /** Shipping zone name. */ - name: Scalars["String"]["output"]; - /** Lowest and highest prices for the shipping. */ - priceRange: Maybe; - /** List of private metadata items. Requires staff permissions to access. */ - privateMetadata: Array; - /** - * A single key from private metadata. Requires staff permissions to access. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - privateMetafield: Maybe; - /** - * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - privateMetafields: Maybe; - /** List of shipping methods available for orders shipped to countries within this shipping zone. */ - shippingMethods: Maybe>; - /** List of warehouses for shipping zone. */ - warehouses: Array; - }; +export type ShippingZone = Node & ObjectWithMetadata & { + /** List of channels for shipping zone. */ + channels: Array; + /** List of countries available for the method. */ + countries: Array; + /** Indicates if the shipping zone is default one. */ + default: Scalars['Boolean']['output']; + /** Description of a shipping zone. */ + description: Maybe; + /** The ID of shipping zone. */ + id: Scalars['ID']['output']; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * A single key from public metadata. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + metafield: Maybe; + /** + * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + metafields: Maybe; + /** Shipping zone name. */ + name: Scalars['String']['output']; + /** Lowest and highest prices for the shipping. */ + priceRange: Maybe; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * A single key from private metadata. Requires staff permissions to access. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + privateMetafield: Maybe; + /** + * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + privateMetafields: Maybe; + /** List of shipping methods available for orders shipped to countries within this shipping zone. */ + shippingMethods: Maybe>; + /** List of warehouses for shipping zone. */ + warehouses: Array; +}; + /** Represents a shipping zone in the shop. Zones are the concept used only for grouping shipping methods in the dashboard, and are never exposed to the customers directly. */ export type ShippingZoneMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents a shipping zone in the shop. Zones are the concept used only for grouping shipping methods in the dashboard, and are never exposed to the customers directly. */ export type ShippingZoneMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Represents a shipping zone in the shop. Zones are the concept used only for grouping shipping methods in the dashboard, and are never exposed to the customers directly. */ export type ShippingZonePrivateMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents a shipping zone in the shop. Zones are the concept used only for grouping shipping methods in the dashboard, and are never exposed to the customers directly. */ export type ShippingZonePrivateMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; /** @@ -25539,7 +26159,7 @@ export type ShippingZonePrivateMetafieldsArgs = { */ export type ShippingZoneBulkDelete = { /** Returns how many objects were affected. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ shippingErrors: Array; @@ -25550,12 +26170,12 @@ export type ShippingZoneCountableConnection = { /** Pagination data for this connection. */ pageInfo: PageInfo; /** A total count of items in the collection. */ - totalCount: Maybe; + totalCount: Maybe; }; export type ShippingZoneCountableEdge = { /** A cursor for use in pagination. */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node: ShippingZone; }; @@ -25574,17 +26194,17 @@ export type ShippingZoneCreate = { export type ShippingZoneCreateInput = { /** List of channels to assign to the shipping zone. */ - addChannels?: InputMaybe>; + addChannels?: InputMaybe>; /** List of warehouses to assign to a shipping zone */ - addWarehouses?: InputMaybe>; + addWarehouses?: InputMaybe>; /** List of countries in this shipping zone. */ - countries?: InputMaybe>; + countries?: InputMaybe>; /** Default shipping zone will be used for countries not covered by other zones. */ - default?: InputMaybe; + default?: InputMaybe; /** Description of the shipping zone. */ - description?: InputMaybe; + description?: InputMaybe; /** Shipping zone's name. Visible only to the staff. */ - name?: InputMaybe; + name?: InputMaybe; }; /** @@ -25594,7 +26214,7 @@ export type ShippingZoneCreateInput = { */ export type ShippingZoneCreated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ @@ -25602,16 +26222,17 @@ export type ShippingZoneCreated = Event & { /** The shipping zone the event relates to. */ shippingZone: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; + /** * Event sent when new shipping zone is created. * * Added in Saleor 3.2. */ export type ShippingZoneCreatedShippingZoneArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; /** @@ -25633,7 +26254,7 @@ export type ShippingZoneDelete = { */ export type ShippingZoneDeleted = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ @@ -25641,21 +26262,22 @@ export type ShippingZoneDeleted = Event & { /** The shipping zone the event relates to. */ shippingZone: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; + /** * Event sent when shipping zone is deleted. * * Added in Saleor 3.2. */ export type ShippingZoneDeletedShippingZoneArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; export type ShippingZoneFilterInput = { - channels?: InputMaybe>; - search?: InputMaybe; + channels?: InputMaybe>; + search?: InputMaybe; }; /** @@ -25665,7 +26287,7 @@ export type ShippingZoneFilterInput = { */ export type ShippingZoneMetadataUpdated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ @@ -25673,16 +26295,17 @@ export type ShippingZoneMetadataUpdated = Event & { /** The shipping zone the event relates to. */ shippingZone: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; + /** * Event sent when shipping zone metadata is updated. * * Added in Saleor 3.8. */ export type ShippingZoneMetadataUpdatedShippingZoneArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; /** @@ -25699,21 +26322,21 @@ export type ShippingZoneUpdate = { export type ShippingZoneUpdateInput = { /** List of channels to assign to the shipping zone. */ - addChannels?: InputMaybe>; + addChannels?: InputMaybe>; /** List of warehouses to assign to a shipping zone */ - addWarehouses?: InputMaybe>; + addWarehouses?: InputMaybe>; /** List of countries in this shipping zone. */ - countries?: InputMaybe>; + countries?: InputMaybe>; /** Default shipping zone will be used for countries not covered by other zones. */ - default?: InputMaybe; + default?: InputMaybe; /** Description of the shipping zone. */ - description?: InputMaybe; + description?: InputMaybe; /** Shipping zone's name. Visible only to the staff. */ - name?: InputMaybe; + name?: InputMaybe; /** List of channels to unassign from the shipping zone. */ - removeChannels?: InputMaybe>; + removeChannels?: InputMaybe>; /** List of warehouses to unassign from a shipping zone */ - removeWarehouses?: InputMaybe>; + removeWarehouses?: InputMaybe>; }; /** @@ -25723,7 +26346,7 @@ export type ShippingZoneUpdateInput = { */ export type ShippingZoneUpdated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ @@ -25731,16 +26354,17 @@ export type ShippingZoneUpdated = Event & { /** The shipping zone the event relates to. */ shippingZone: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; + /** * Event sent when shipping zone is updated. * * Added in Saleor 3.2. */ export type ShippingZoneUpdatedShippingZoneArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; /** Represents a shop resource containing general shop data and configuration. */ @@ -25752,13 +26376,13 @@ export type Shop = ObjectWithMetadata & { * * Requires one of the following permissions: MANAGE_SETTINGS. */ - allowLoginWithoutConfirmation: Maybe; + allowLoginWithoutConfirmation: Maybe; /** * Enable automatic fulfillment for all digital products. * * Requires one of the following permissions: MANAGE_SETTINGS. */ - automaticFulfillmentDigitalProducts: Maybe; + automaticFulfillmentDigitalProducts: Maybe; /** List of available external authentications. */ availableExternalAuthentications: Array; /** List of available payment gateways. */ @@ -25780,18 +26404,18 @@ export type Shop = ObjectWithMetadata & { * * Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. */ - channelCurrencies: Array; + channelCurrencies: Array; /** * Charge taxes on shipping. * @deprecated This field will be removed in Saleor 4.0. Use `ShippingMethodType.taxClass` to determine whether taxes are calculated for shipping methods; if a tax class is set, the taxes will be calculated, otherwise no tax rate will be applied. */ - chargeTaxesOnShipping: Scalars["Boolean"]["output"]; + chargeTaxesOnShipping: Scalars['Boolean']['output']; /** Company address. */ companyAddress: Maybe
; /** List of countries available in the shop. */ countries: Array; /** URL of a view where customers can set their password. */ - customerSetPasswordUrl: Maybe; + customerSetPasswordUrl: Maybe; /** Shop's default country. */ defaultCountry: Maybe; /** @@ -25799,34 +26423,34 @@ export type Shop = ObjectWithMetadata & { * * Requires one of the following permissions: MANAGE_SETTINGS. */ - defaultDigitalMaxDownloads: Maybe; + defaultDigitalMaxDownloads: Maybe; /** * Default number of days which digital content URL will be valid. * * Requires one of the following permissions: MANAGE_SETTINGS. */ - defaultDigitalUrlValidDays: Maybe; + defaultDigitalUrlValidDays: Maybe; /** * Default shop's email sender's address. * * Requires one of the following permissions: MANAGE_SETTINGS. */ - defaultMailSenderAddress: Maybe; + defaultMailSenderAddress: Maybe; /** * Default shop's email sender's name. * * Requires one of the following permissions: MANAGE_SETTINGS. */ - defaultMailSenderName: Maybe; + defaultMailSenderName: Maybe; /** Default weight unit. */ defaultWeightUnit: Maybe; /** Shop's description. */ - description: Maybe; + description: Maybe; /** * Display prices with tax in store. * @deprecated This field will be removed in Saleor 4.0. Use `Channel.taxConfiguration` to determine whether to display gross or net prices. */ - displayGrossPrices: Scalars["Boolean"]["output"]; + displayGrossPrices: Scalars['Boolean']['output']; /** Shop's domain data. */ domain: Domain; /** @@ -25836,28 +26460,28 @@ export type Shop = ObjectWithMetadata & { * * Requires one of the following permissions: MANAGE_SETTINGS. */ - enableAccountConfirmationByEmail: Maybe; + enableAccountConfirmationByEmail: Maybe; /** * Allow to approve fulfillments which are unpaid. * * Added in Saleor 3.1. */ - fulfillmentAllowUnpaid: Scalars["Boolean"]["output"]; + fulfillmentAllowUnpaid: Scalars['Boolean']['output']; /** * Automatically approve all new fulfillments. * * Added in Saleor 3.1. */ - fulfillmentAutoApprove: Scalars["Boolean"]["output"]; + fulfillmentAutoApprove: Scalars['Boolean']['output']; /** Header text. */ - headerText: Maybe; + headerText: Maybe; /** ID of the shop. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** * Include taxes in prices. * @deprecated This field will be removed in Saleor 4.0. Use `Channel.taxConfiguration.pricesEnteredWithTax` to determine whether prices are entered with tax. */ - includeTaxesInPrices: Scalars["Boolean"]["output"]; + includeTaxesInPrices: Scalars['Boolean']['output']; /** List of the shops's supported languages. */ languages: Array; /** @@ -25867,7 +26491,7 @@ export type Shop = ObjectWithMetadata & { * * Requires one of the following permissions: MANAGE_SETTINGS. */ - limitQuantityPerCheckout: Maybe; + limitQuantityPerCheckout: Maybe; /** * Resource limitations and current usage if any set for a shop * @@ -25882,15 +26506,15 @@ export type Shop = ObjectWithMetadata & { * * Tip: Use GraphQL aliases to fetch multiple keys. */ - metafield: Maybe; + metafield: Maybe; /** Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. */ - metafields: Maybe; + metafields: Maybe; /** Shop's name. */ - name: Scalars["String"]["output"]; + name: Scalars['String']['output']; /** List of available permissions. */ permissions: Array; /** List of possible phone prefixes. */ - phonePrefixes: Array; + phonePrefixes: Array; /** List of private metadata items. Requires staff permissions to access. */ privateMetadata: Array; /** @@ -25898,9 +26522,9 @@ export type Shop = ObjectWithMetadata & { * * Tip: Use GraphQL aliases to fetch multiple keys. */ - privateMetafield: Maybe; + privateMetafield: Maybe; /** Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. */ - privateMetafields: Maybe; + privateMetafields: Maybe; /** * Default number of minutes stock will be reserved for anonymous checkout or null when stock reservation is disabled. * @@ -25908,7 +26532,7 @@ export type Shop = ObjectWithMetadata & { * * Requires one of the following permissions: MANAGE_SETTINGS. */ - reserveStockDurationAnonymousUser: Maybe; + reserveStockDurationAnonymousUser: Maybe; /** * Default number of minutes stock will be reserved for authenticated checkout or null when stock reservation is disabled. * @@ -25916,13 +26540,13 @@ export type Shop = ObjectWithMetadata & { * * Requires one of the following permissions: MANAGE_SETTINGS. */ - reserveStockDurationAuthenticatedUser: Maybe; + reserveStockDurationAuthenticatedUser: Maybe; /** * Minor Saleor API version. * * Added in Saleor 3.5. */ - schemaVersion: Scalars["String"]["output"]; + schemaVersion: Scalars['String']['output']; /** * List of staff notification recipients. * @@ -25930,7 +26554,7 @@ export type Shop = ObjectWithMetadata & { */ staffNotificationRecipients: Maybe>; /** This field is used as a default value for `ProductVariant.trackInventory`. */ - trackInventoryByDefault: Maybe; + trackInventoryByDefault: Maybe; /** Returns translated shop fields for the given language code. */ translation: Maybe; /** @@ -25938,47 +26562,55 @@ export type Shop = ObjectWithMetadata & { * * Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP. */ - version: Scalars["String"]["output"]; + version: Scalars['String']['output']; }; + /** Represents a shop resource containing general shop data and configuration. */ export type ShopAvailablePaymentGatewaysArgs = { - channel?: InputMaybe; - currency?: InputMaybe; + channel?: InputMaybe; + currency?: InputMaybe; }; + /** Represents a shop resource containing general shop data and configuration. */ export type ShopAvailableShippingMethodsArgs = { address?: InputMaybe; - channel: Scalars["String"]["input"]; + channel: Scalars['String']['input']; }; + /** Represents a shop resource containing general shop data and configuration. */ export type ShopCountriesArgs = { filter?: InputMaybe; languageCode?: InputMaybe; }; + /** Represents a shop resource containing general shop data and configuration. */ export type ShopMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents a shop resource containing general shop data and configuration. */ export type ShopMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Represents a shop resource containing general shop data and configuration. */ export type ShopPrivateMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents a shop resource containing general shop data and configuration. */ export type ShopPrivateMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Represents a shop resource containing general shop data and configuration. */ export type ShopTranslationArgs = { languageCode: LanguageCodeEnum; @@ -26016,20 +26648,20 @@ export type ShopError = { /** The error code. */ code: ShopErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type ShopErrorCode = - | "ALREADY_EXISTS" - | "CANNOT_FETCH_TAX_RATES" - | "GRAPHQL_ERROR" - | "INVALID" - | "NOT_FOUND" - | "REQUIRED" - | "UNIQUE"; + | 'ALREADY_EXISTS' + | 'CANNOT_FETCH_TAX_RATES' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'REQUIRED' + | 'UNIQUE'; /** * Fetch tax rates. @@ -26051,7 +26683,7 @@ export type ShopFetchTaxRates = { */ export type ShopMetadataUpdated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ @@ -26059,7 +26691,7 @@ export type ShopMetadataUpdated = Event & { /** Shop data. */ shop: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; export type ShopSettingsInput = { @@ -26068,67 +26700,67 @@ export type ShopSettingsInput = { * * Added in Saleor 3.15. */ - allowLoginWithoutConfirmation?: InputMaybe; + allowLoginWithoutConfirmation?: InputMaybe; /** Enable automatic fulfillment for all digital products. */ - automaticFulfillmentDigitalProducts?: InputMaybe; + automaticFulfillmentDigitalProducts?: InputMaybe; /** * Charge taxes on shipping. * * DEPRECATED: this field will be removed in Saleor 4.0. To enable taxes for a shipping method, assign a tax class to the shipping method with `shippingPriceCreate` or `shippingPriceUpdate` mutations. */ - chargeTaxesOnShipping?: InputMaybe; + chargeTaxesOnShipping?: InputMaybe; /** URL of a view where customers can set their password. */ - customerSetPasswordUrl?: InputMaybe; + customerSetPasswordUrl?: InputMaybe; /** Default number of max downloads per digital content URL. */ - defaultDigitalMaxDownloads?: InputMaybe; + defaultDigitalMaxDownloads?: InputMaybe; /** Default number of days which digital content URL will be valid. */ - defaultDigitalUrlValidDays?: InputMaybe; + defaultDigitalUrlValidDays?: InputMaybe; /** Default email sender's address. */ - defaultMailSenderAddress?: InputMaybe; + defaultMailSenderAddress?: InputMaybe; /** Default email sender's name. */ - defaultMailSenderName?: InputMaybe; + defaultMailSenderName?: InputMaybe; /** Default weight unit. */ defaultWeightUnit?: InputMaybe; /** SEO description. */ - description?: InputMaybe; + description?: InputMaybe; /** * Display prices with tax in store. * * DEPRECATED: this field will be removed in Saleor 4.0. Use `taxConfigurationUpdate` mutation to configure this setting per channel or country. */ - displayGrossPrices?: InputMaybe; + displayGrossPrices?: InputMaybe; /** * Enable automatic account confirmation by email. * * Added in Saleor 3.14. */ - enableAccountConfirmationByEmail?: InputMaybe; + enableAccountConfirmationByEmail?: InputMaybe; /** * Enable ability to approve fulfillments which are unpaid. * * Added in Saleor 3.1. */ - fulfillmentAllowUnpaid?: InputMaybe; + fulfillmentAllowUnpaid?: InputMaybe; /** * Enable automatic approval of all new fulfillments. * * Added in Saleor 3.1. */ - fulfillmentAutoApprove?: InputMaybe; + fulfillmentAutoApprove?: InputMaybe; /** Header text. */ - headerText?: InputMaybe; + headerText?: InputMaybe; /** * Include taxes in prices. * * DEPRECATED: this field will be removed in Saleor 4.0. Use `taxConfigurationUpdate` mutation to configure this setting per channel or country. */ - includeTaxesInPrices?: InputMaybe; + includeTaxesInPrices?: InputMaybe; /** * Default number of maximum line quantity in single checkout. Minimum possible value is 1, default value is 50. * * Added in Saleor 3.1. */ - limitQuantityPerCheckout?: InputMaybe; + limitQuantityPerCheckout?: InputMaybe; /** * Shop public metadata. * @@ -26146,15 +26778,15 @@ export type ShopSettingsInput = { * * Added in Saleor 3.1. */ - reserveStockDurationAnonymousUser?: InputMaybe; + reserveStockDurationAnonymousUser?: InputMaybe; /** * Default number of minutes stock will be reserved for authenticated checkout. Enter 0 or null to disable. * * Added in Saleor 3.1. */ - reserveStockDurationAuthenticatedUser?: InputMaybe; + reserveStockDurationAuthenticatedUser?: InputMaybe; /** This field is used as a default value for `ProductVariant.trackInventory`. */ - trackInventoryByDefault?: InputMaybe; + trackInventoryByDefault?: InputMaybe; }; /** @@ -26171,8 +26803,8 @@ export type ShopSettingsTranslate = { }; export type ShopSettingsTranslationInput = { - description?: InputMaybe; - headerText?: InputMaybe; + description?: InputMaybe; + headerText?: InputMaybe; }; /** @@ -26194,20 +26826,20 @@ export type ShopSettingsUpdate = { /** Represents shop translations. */ export type ShopTranslation = Node & { /** Translated description of sale. */ - description: Scalars["String"]["output"]; + description: Scalars['String']['output']; /** Translated header text of sale. */ - headerText: Scalars["String"]["output"]; + headerText: Scalars['String']['output']; /** The ID of the shop translation. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Translation language. */ language: LanguageDisplay; }; export type SiteDomainInput = { /** Domain name for shop. */ - domain?: InputMaybe; + domain?: InputMaybe; /** Shop site name. */ - name?: InputMaybe; + name?: InputMaybe; }; /** @@ -26220,7 +26852,7 @@ export type SiteDomainInput = { */ export type StaffBulkDelete = { /** Returns how many objects were affected. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ staffErrors: Array; @@ -26246,15 +26878,15 @@ export type StaffCreate = { /** Fields required to create a staff user. */ export type StaffCreateInput = { /** List of permission group IDs to which user should be assigned. */ - addGroups?: InputMaybe>; + addGroups?: InputMaybe>; /** The unique email address of the user. */ - email?: InputMaybe; + email?: InputMaybe; /** Given name. */ - firstName?: InputMaybe; + firstName?: InputMaybe; /** User account is active. */ - isActive?: InputMaybe; + isActive?: InputMaybe; /** Family name. */ - lastName?: InputMaybe; + lastName?: InputMaybe; /** * Fields required to update the user metadata. * @@ -26262,7 +26894,7 @@ export type StaffCreateInput = { */ metadata?: InputMaybe>; /** A note about the user. */ - note?: InputMaybe; + note?: InputMaybe; /** * Fields required to update the user private metadata. * @@ -26270,7 +26902,7 @@ export type StaffCreateInput = { */ privateMetadata?: InputMaybe>; /** URL of a view where users should be redirected to set the password. URL in RFC 1808 format. */ - redirectUrl?: InputMaybe; + redirectUrl?: InputMaybe; }; /** @@ -26280,7 +26912,7 @@ export type StaffCreateInput = { */ export type StaffCreated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ @@ -26288,7 +26920,7 @@ export type StaffCreated = Event & { /** The user the event relates to. */ user: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -26313,7 +26945,7 @@ export type StaffDelete = { */ export type StaffDeleted = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ @@ -26321,7 +26953,7 @@ export type StaffDeleted = Event & { /** The user the event relates to. */ user: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; export type StaffError = { @@ -26330,32 +26962,32 @@ export type StaffError = { /** The error code. */ code: AccountErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** List of permission group IDs which cause the error. */ - groups: Maybe>; + groups: Maybe>; /** The error message. */ - message: Maybe; + message: Maybe; /** List of permissions which causes the error. */ permissions: Maybe>; /** List of user IDs which causes the error. */ - users: Maybe>; + users: Maybe>; }; /** Represents status of a staff account. */ export type StaffMemberStatus = /** User account has been activated. */ - | "ACTIVE" + | 'ACTIVE' /** User account has not been activated yet. */ - | "DEACTIVATED"; + | 'DEACTIVATED'; /** Represents a recipient of email notifications send by Saleor, such as notifications about new orders. Notifications can be assigned to staff users or arbitrary email addresses. */ export type StaffNotificationRecipient = Node & { /** Determines if a notification active. */ - active: Maybe; + active: Maybe; /** Returns email address of a user subscribed to email notifications. */ - email: Maybe; + email: Maybe; /** The ID of the staff notification recipient. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Returns a user subscribed to email notifications. */ user: Maybe; }; @@ -26386,11 +27018,11 @@ export type StaffNotificationRecipientDelete = { export type StaffNotificationRecipientInput = { /** Determines if a notification active. */ - active?: InputMaybe; + active?: InputMaybe; /** Email address of a user subscribed to email notifications. */ - email?: InputMaybe; + email?: InputMaybe; /** The ID of the user subscribed to email notifications.. */ - user?: InputMaybe; + user?: InputMaybe; }; /** @@ -26414,21 +27046,21 @@ export type StaffSetPasswordRequested = Event & { /** The channel data. */ channel: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** The URL to redirect the user after he accepts the request. */ - redirectUrl: Maybe; + redirectUrl: Maybe; /** Shop data. */ shop: Maybe; /** The token required to confirm request. */ - token: Maybe; + token: Maybe; /** The user the event relates to. */ user: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -26449,15 +27081,15 @@ export type StaffUpdate = { /** Fields required to update a staff user. */ export type StaffUpdateInput = { /** List of permission group IDs to which user should be assigned. */ - addGroups?: InputMaybe>; + addGroups?: InputMaybe>; /** The unique email address of the user. */ - email?: InputMaybe; + email?: InputMaybe; /** Given name. */ - firstName?: InputMaybe; + firstName?: InputMaybe; /** User account is active. */ - isActive?: InputMaybe; + isActive?: InputMaybe; /** Family name. */ - lastName?: InputMaybe; + lastName?: InputMaybe; /** * Fields required to update the user metadata. * @@ -26465,7 +27097,7 @@ export type StaffUpdateInput = { */ metadata?: InputMaybe>; /** A note about the user. */ - note?: InputMaybe; + note?: InputMaybe; /** * Fields required to update the user private metadata. * @@ -26473,7 +27105,7 @@ export type StaffUpdateInput = { */ privateMetadata?: InputMaybe>; /** List of permission group IDs from which user should be unassigned. */ - removeGroups?: InputMaybe>; + removeGroups?: InputMaybe>; }; /** @@ -26483,7 +27115,7 @@ export type StaffUpdateInput = { */ export type StaffUpdated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ @@ -26491,19 +27123,19 @@ export type StaffUpdated = Event & { /** The user the event relates to. */ user: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; export type StaffUserInput = { - ids?: InputMaybe>; - search?: InputMaybe; + ids?: InputMaybe>; + search?: InputMaybe; status?: InputMaybe; }; /** Represents stock. */ export type Stock = Node & { /** The ID of stock. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Information about the product variant. */ productVariant: ProductVariant; /** @@ -26511,24 +27143,26 @@ export type Stock = Node & { * * Requires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS. */ - quantity: Scalars["Int"]["output"]; + quantity: Scalars['Int']['output']; /** * Quantity allocated for orders. * * Requires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS. */ - quantityAllocated: Scalars["Int"]["output"]; + quantityAllocated: Scalars['Int']['output']; /** * Quantity reserved for checkouts. * * Requires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS. */ - quantityReserved: Scalars["Int"]["output"]; + quantityReserved: Scalars['Int']['output']; /** The warehouse associated with the stock. */ warehouse: Warehouse; }; -export type StockAvailability = "IN_STOCK" | "OUT_OF_STOCK"; +export type StockAvailability = + | 'IN_STOCK' + | 'OUT_OF_STOCK'; export type StockBulkResult = { /** List of errors occurred on create or update attempt. */ @@ -26551,7 +27185,7 @@ export type StockBulkResult = { */ export type StockBulkUpdate = { /** Returns how many objects were updated. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; /** List of the updated stocks. */ results: Array; @@ -26561,29 +27195,29 @@ export type StockBulkUpdateError = { /** The error code. */ code: StockBulkUpdateErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type StockBulkUpdateErrorCode = - | "GRAPHQL_ERROR" - | "INVALID" - | "NOT_FOUND" - | "REQUIRED"; + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'REQUIRED'; export type StockBulkUpdateInput = { /** Quantity of items available for sell. */ - quantity: Scalars["Int"]["input"]; + quantity: Scalars['Int']['input']; /** Variant external reference. */ - variantExternalReference?: InputMaybe; + variantExternalReference?: InputMaybe; /** Variant ID. */ - variantId?: InputMaybe; + variantId?: InputMaybe; /** Warehouse external reference. */ - warehouseExternalReference?: InputMaybe; + warehouseExternalReference?: InputMaybe; /** Warehouse ID. */ - warehouseId?: InputMaybe; + warehouseId?: InputMaybe; }; export type StockCountableConnection = { @@ -26591,12 +27225,12 @@ export type StockCountableConnection = { /** Pagination data for this connection. */ pageInfo: PageInfo; /** A total count of items in the collection. */ - totalCount: Maybe; + totalCount: Maybe; }; export type StockCountableEdge = { /** A cursor for use in pagination. */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node: Stock; }; @@ -26605,30 +27239,30 @@ export type StockError = { /** The error code. */ code: StockErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type StockErrorCode = - | "ALREADY_EXISTS" - | "GRAPHQL_ERROR" - | "INVALID" - | "NOT_FOUND" - | "REQUIRED" - | "UNIQUE"; + | 'ALREADY_EXISTS' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'REQUIRED' + | 'UNIQUE'; export type StockFilterInput = { - quantity?: InputMaybe; - search?: InputMaybe; + quantity?: InputMaybe; + search?: InputMaybe; }; export type StockInput = { /** Quantity of items available for sell. */ - quantity: Scalars["Int"]["input"]; + quantity: Scalars['Int']['input']; /** Warehouse in which stock is located. */ - warehouse: Scalars["ID"]["input"]; + warehouse: Scalars['ID']['input']; }; /** @@ -26648,9 +27282,9 @@ export type StockSettingsInput = { export type StockUpdateInput = { /** Quantity of items available for sell. */ - quantity: Scalars["Int"]["input"]; + quantity: Scalars['Int']['input']; /** Stock. */ - stock: Scalars["ID"]["input"]; + stock: Scalars['ID']['input']; }; /** @@ -26661,16 +27295,19 @@ export type StockUpdateInput = { * FORCE - force update, if there is not enough stock. * */ -export type StockUpdatePolicyEnum = "FORCE" | "SKIP" | "UPDATE"; +export type StockUpdatePolicyEnum = + | 'FORCE' + | 'SKIP' + | 'UPDATE'; /** Enum representing the type of a payment storage in a gateway. */ export type StorePaymentMethodEnum = /** Storage is disabled. The payment is not stored. */ - | "NONE" + | 'NONE' /** Off session storage type. The payment is stored to be reused even if the customer is absent. */ - | "OFF_SESSION" + | 'OFF_SESSION' /** On session storage type. The payment is stored only to be reused when the customer is present in the checkout flow. */ - | "ON_SESSION"; + | 'ON_SESSION'; /** * Represents a payment method stored for user (tokenized) in payment gateway. @@ -26683,18 +27320,18 @@ export type StoredPaymentMethod = { /** Stored credit card details if available. */ creditCardInfo: Maybe; /** JSON data returned by Payment Provider app for this payment method. */ - data: Maybe; + data: Maybe; /** Payment gateway that stores this payment method. */ gateway: PaymentGateway; /** Stored payment method ID. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Payment method name. Example: last 4 digits of credit card, obfuscated email, etc. */ - name: Maybe; + name: Maybe; /** ID of stored payment method used to make payment actions. Note: method ID is unique only within the payment gateway. */ - paymentMethodId: Scalars["String"]["output"]; + paymentMethodId: Scalars['String']['output']; supportedPaymentFlows: Maybe>; /** Type of the payment method. Example: credit card, wallet, etc. */ - type: Scalars["String"]["output"]; + type: Scalars['String']['output']; }; /** @@ -26708,17 +27345,17 @@ export type StoredPaymentMethodDeleteRequested = Event & { /** Channel related to the requested delete action. */ channel: Channel; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The ID of the payment method that should be deleted by the payment gateway. */ - paymentMethodId: Scalars["String"]["output"]; + paymentMethodId: Scalars['String']['output']; /** The application receiving the webhook. */ recipient: Maybe; /** The user for which the app should proceed with payment method delete request. */ user: User; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -26741,11 +27378,11 @@ export type StoredPaymentMethodRequestDelete = { /** An enumeration. */ export type StoredPaymentMethodRequestDeleteErrorCode = - | "CHANNEL_INACTIVE" - | "GATEWAY_ERROR" - | "GRAPHQL_ERROR" - | "INVALID" - | "NOT_FOUND"; + | 'CHANNEL_INACTIVE' + | 'GATEWAY_ERROR' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND'; /** * Result of deleting a stored payment method. @@ -26758,9 +27395,9 @@ export type StoredPaymentMethodRequestDeleteErrorCode = * */ export type StoredPaymentMethodRequestDeleteResult = - | "FAILED_TO_DELETE" - | "FAILED_TO_DELIVER" - | "SUCCESSFULLY_DELETED"; + | 'FAILED_TO_DELETE' + | 'FAILED_TO_DELIVER' + | 'SUCCESSFULLY_DELETED'; /** * Define the filtering options for string fields. @@ -26771,9 +27408,9 @@ export type StoredPaymentMethodRequestDeleteResult = */ export type StringFilterInput = { /** The value equal to. */ - eq?: InputMaybe; + eq?: InputMaybe; /** The value included in. */ - oneOf?: InputMaybe>; + oneOf?: InputMaybe>; }; export type Subscription = { @@ -26905,114 +27542,131 @@ export type Subscription = { orderUpdated: Maybe; }; + export type SubscriptionDraftOrderCreatedArgs = { - channels?: InputMaybe>; + channels?: InputMaybe>; }; + export type SubscriptionDraftOrderDeletedArgs = { - channels?: InputMaybe>; + channels?: InputMaybe>; }; + export type SubscriptionDraftOrderUpdatedArgs = { - channels?: InputMaybe>; + channels?: InputMaybe>; }; + export type SubscriptionOrderBulkCreatedArgs = { - channels?: InputMaybe>; + channels?: InputMaybe>; }; + export type SubscriptionOrderCancelledArgs = { - channels?: InputMaybe>; + channels?: InputMaybe>; }; + export type SubscriptionOrderConfirmedArgs = { - channels?: InputMaybe>; + channels?: InputMaybe>; }; + export type SubscriptionOrderCreatedArgs = { - channels?: InputMaybe>; + channels?: InputMaybe>; }; + export type SubscriptionOrderExpiredArgs = { - channels?: InputMaybe>; + channels?: InputMaybe>; }; + export type SubscriptionOrderFulfilledArgs = { - channels?: InputMaybe>; + channels?: InputMaybe>; }; + export type SubscriptionOrderFullyPaidArgs = { - channels?: InputMaybe>; + channels?: InputMaybe>; }; + export type SubscriptionOrderFullyRefundedArgs = { - channels?: InputMaybe>; + channels?: InputMaybe>; }; + export type SubscriptionOrderMetadataUpdatedArgs = { - channels?: InputMaybe>; + channels?: InputMaybe>; }; + export type SubscriptionOrderPaidArgs = { - channels?: InputMaybe>; + channels?: InputMaybe>; }; + export type SubscriptionOrderRefundedArgs = { - channels?: InputMaybe>; + channels?: InputMaybe>; }; + export type SubscriptionOrderUpdatedArgs = { - channels?: InputMaybe>; + channels?: InputMaybe>; }; -export type TaxCalculationStrategy = "FLAT_RATES" | "TAX_APP"; +export type TaxCalculationStrategy = + | 'FLAT_RATES' + | 'TAX_APP'; /** * Tax class is a named object used to define tax rates per country. Tax class can be assigned to product types, products and shipping methods to define their tax rates. * * Added in Saleor 3.9. */ -export type TaxClass = Node & - ObjectWithMetadata & { - /** Country-specific tax rates for this tax class. */ - countries: Array; - /** The ID of the object. */ - id: Scalars["ID"]["output"]; - /** List of public metadata items. Can be accessed without permissions. */ - metadata: Array; - /** - * A single key from public metadata. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - metafield: Maybe; - /** - * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - metafields: Maybe; - /** Name of the tax class. */ - name: Scalars["String"]["output"]; - /** List of private metadata items. Requires staff permissions to access. */ - privateMetadata: Array; - /** - * A single key from private metadata. Requires staff permissions to access. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - privateMetafield: Maybe; - /** - * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - privateMetafields: Maybe; - }; +export type TaxClass = Node & ObjectWithMetadata & { + /** Country-specific tax rates for this tax class. */ + countries: Array; + /** The ID of the object. */ + id: Scalars['ID']['output']; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * A single key from public metadata. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + metafield: Maybe; + /** + * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + metafields: Maybe; + /** Name of the tax class. */ + name: Scalars['String']['output']; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * A single key from private metadata. Requires staff permissions to access. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + privateMetafield: Maybe; + /** + * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + privateMetafields: Maybe; +}; + /** * Tax class is a named object used to define tax rates per country. Tax class can be assigned to product types, products and shipping methods to define their tax rates. @@ -27020,34 +27674,37 @@ export type TaxClass = Node & * Added in Saleor 3.9. */ export type TaxClassMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** * Tax class is a named object used to define tax rates per country. Tax class can be assigned to product types, products and shipping methods to define their tax rates. * * Added in Saleor 3.9. */ export type TaxClassMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** * Tax class is a named object used to define tax rates per country. Tax class can be assigned to product types, products and shipping methods to define their tax rates. * * Added in Saleor 3.9. */ export type TaxClassPrivateMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** * Tax class is a named object used to define tax rates per country. Tax class can be assigned to product types, products and shipping methods to define their tax rates. * * Added in Saleor 3.9. */ export type TaxClassPrivateMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; export type TaxClassCountableConnection = { @@ -27055,12 +27712,12 @@ export type TaxClassCountableConnection = { /** Pagination data for this connection. */ pageInfo: PageInfo; /** A total count of items in the collection. */ - totalCount: Maybe; + totalCount: Maybe; }; export type TaxClassCountableEdge = { /** A cursor for use in pagination. */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node: TaxClass; }; @@ -27074,7 +27731,7 @@ export type TaxClassCountryRate = { /** Country in which this tax rate applies. */ country: CountryDisplay; /** Tax rate value. */ - rate: Scalars["Float"]["output"]; + rate: Scalars['Float']['output']; /** Related tax class. */ taxClass: Maybe; }; @@ -27095,21 +27752,24 @@ export type TaxClassCreateError = { /** The error code. */ code: TaxClassCreateErrorCode; /** List of country codes for which the configuration is invalid. */ - countryCodes: Array; + countryCodes: Array; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ -export type TaxClassCreateErrorCode = "GRAPHQL_ERROR" | "INVALID" | "NOT_FOUND"; +export type TaxClassCreateErrorCode = + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND'; export type TaxClassCreateInput = { /** List of country-specific tax rates to create for this tax class. */ createCountryRates?: InputMaybe>; /** Name of the tax class. */ - name: Scalars["String"]["input"]; + name: Scalars['String']['input']; }; /** @@ -27128,30 +27788,33 @@ export type TaxClassDeleteError = { /** The error code. */ code: TaxClassDeleteErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ -export type TaxClassDeleteErrorCode = "GRAPHQL_ERROR" | "INVALID" | "NOT_FOUND"; +export type TaxClassDeleteErrorCode = + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND'; export type TaxClassFilterInput = { countries?: InputMaybe>; - ids?: InputMaybe>; + ids?: InputMaybe>; metadata?: InputMaybe>; }; export type TaxClassRateInput = { /** Tax rate value. */ - rate?: InputMaybe; + rate?: InputMaybe; /** ID of a tax class for which to update the tax rate */ - taxClassId?: InputMaybe; + taxClassId?: InputMaybe; }; export type TaxClassSortField = /** Sort tax classes by name. */ - "NAME"; + | 'NAME'; export type TaxClassSortingInput = { /** Specifies the direction in which to sort tax classes. */ @@ -27176,23 +27839,23 @@ export type TaxClassUpdateError = { /** The error code. */ code: TaxClassUpdateErrorCode; /** List of country codes for which the configuration is invalid. */ - countryCodes: Array; + countryCodes: Array; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type TaxClassUpdateErrorCode = - | "DUPLICATED_INPUT_ITEM" - | "GRAPHQL_ERROR" - | "INVALID" - | "NOT_FOUND"; + | 'DUPLICATED_INPUT_ITEM' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND'; export type TaxClassUpdateInput = { /** Name of the tax class. */ - name?: InputMaybe; + name?: InputMaybe; /** List of country codes for which to remove the tax class rates. Note: It removes all rates for given country code. */ removeCountryRates?: InputMaybe>; /** List of country-specific tax rates to create or update for this tax class. */ @@ -27204,61 +27867,61 @@ export type TaxClassUpdateInput = { * * Added in Saleor 3.9. */ -export type TaxConfiguration = Node & - ObjectWithMetadata & { - /** A channel to which the tax configuration applies to. */ - channel: Channel; - /** Determines whether taxes are charged in the given channel. */ - chargeTaxes: Scalars["Boolean"]["output"]; - /** List of country-specific exceptions in tax configuration. */ - countries: Array; - /** Determines whether displayed prices should include taxes. */ - displayGrossPrices: Scalars["Boolean"]["output"]; - /** The ID of the object. */ - id: Scalars["ID"]["output"]; - /** List of public metadata items. Can be accessed without permissions. */ - metadata: Array; - /** - * A single key from public metadata. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - metafield: Maybe; - /** - * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - metafields: Maybe; - /** Determines whether prices are entered with the tax included. */ - pricesEnteredWithTax: Scalars["Boolean"]["output"]; - /** List of private metadata items. Requires staff permissions to access. */ - privateMetadata: Array; - /** - * A single key from private metadata. Requires staff permissions to access. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - privateMetafield: Maybe; - /** - * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - privateMetafields: Maybe; - /** - * The tax app `App.identifier` that will be used to calculate the taxes for the given channel. Empty value for `TAX_APP` set as `taxCalculationStrategy` means that Saleor will iterate over all installed tax apps. If multiple tax apps exist with provided tax app id use the `App` with newest `created` date. Will become mandatory in 4.0 for `TAX_APP` `taxCalculationStrategy`. - * - * Added in Saleor 3.19. - */ - taxAppId: Maybe; - /** The default strategy to use for tax calculation in the given channel. Taxes can be calculated either using user-defined flat rates or with a tax app. Empty value means that no method is selected and taxes are not calculated. */ - taxCalculationStrategy: Maybe; - }; +export type TaxConfiguration = Node & ObjectWithMetadata & { + /** A channel to which the tax configuration applies to. */ + channel: Channel; + /** Determines whether taxes are charged in the given channel. */ + chargeTaxes: Scalars['Boolean']['output']; + /** List of country-specific exceptions in tax configuration. */ + countries: Array; + /** Determines whether displayed prices should include taxes. */ + displayGrossPrices: Scalars['Boolean']['output']; + /** The ID of the object. */ + id: Scalars['ID']['output']; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * A single key from public metadata. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + metafield: Maybe; + /** + * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + metafields: Maybe; + /** Determines whether prices are entered with the tax included. */ + pricesEnteredWithTax: Scalars['Boolean']['output']; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * A single key from private metadata. Requires staff permissions to access. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + privateMetafield: Maybe; + /** + * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + privateMetafields: Maybe; + /** + * The tax app `App.identifier` that will be used to calculate the taxes for the given channel. Empty value for `TAX_APP` set as `taxCalculationStrategy` means that Saleor will iterate over all installed tax apps. If multiple tax apps exist with provided tax app id use the `App` with newest `created` date. Will become mandatory in 4.0 for `TAX_APP` `taxCalculationStrategy`. + * + * Added in Saleor 3.19. + */ + taxAppId: Maybe; + /** The default strategy to use for tax calculation in the given channel. Taxes can be calculated either using user-defined flat rates or with a tax app. Empty value means that no method is selected and taxes are not calculated. */ + taxCalculationStrategy: Maybe; +}; + /** * Channel-specific tax configuration. @@ -27266,34 +27929,37 @@ export type TaxConfiguration = Node & * Added in Saleor 3.9. */ export type TaxConfigurationMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** * Channel-specific tax configuration. * * Added in Saleor 3.9. */ export type TaxConfigurationMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** * Channel-specific tax configuration. * * Added in Saleor 3.9. */ export type TaxConfigurationPrivateMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** * Channel-specific tax configuration. * * Added in Saleor 3.9. */ export type TaxConfigurationPrivateMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; export type TaxConfigurationCountableConnection = { @@ -27301,18 +27967,18 @@ export type TaxConfigurationCountableConnection = { /** Pagination data for this connection. */ pageInfo: PageInfo; /** A total count of items in the collection. */ - totalCount: Maybe; + totalCount: Maybe; }; export type TaxConfigurationCountableEdge = { /** A cursor for use in pagination. */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node: TaxConfiguration; }; export type TaxConfigurationFilterInput = { - ids?: InputMaybe>; + ids?: InputMaybe>; metadata?: InputMaybe>; }; @@ -27323,34 +27989,34 @@ export type TaxConfigurationFilterInput = { */ export type TaxConfigurationPerCountry = { /** Determines whether taxes are charged in this country. */ - chargeTaxes: Scalars["Boolean"]["output"]; + chargeTaxes: Scalars['Boolean']['output']; /** Country in which this configuration applies. */ country: CountryDisplay; /** Determines whether displayed prices should include taxes for this country. */ - displayGrossPrices: Scalars["Boolean"]["output"]; + displayGrossPrices: Scalars['Boolean']['output']; /** * The tax app `App.identifier` that will be used to calculate the taxes for the given channel and country. If not provided, use the value from the channel's tax configuration. * * Added in Saleor 3.19. */ - taxAppId: Maybe; + taxAppId: Maybe; /** A country-specific strategy to use for tax calculation. Taxes can be calculated either using user-defined flat rates or with a tax app. If not provided, use the value from the channel's tax configuration. */ taxCalculationStrategy: Maybe; }; export type TaxConfigurationPerCountryInput = { /** Determines whether taxes are charged in this country. */ - chargeTaxes: Scalars["Boolean"]["input"]; + chargeTaxes: Scalars['Boolean']['input']; /** Country in which this configuration applies. */ countryCode: CountryCode; /** Determines whether displayed prices should include taxes for this country. */ - displayGrossPrices: Scalars["Boolean"]["input"]; + displayGrossPrices: Scalars['Boolean']['input']; /** * The tax app `App.identifier` that will be used to calculate the taxes for the given channel and country. If not provided, use the value from the channel's tax configuration. * * Added in Saleor 3.19. */ - taxAppId?: InputMaybe; + taxAppId?: InputMaybe; /** A country-specific strategy to use for tax calculation. Taxes can be calculated either using user-defined flat rates or with a tax app. If not provided, use the value from the channel's tax configuration. */ taxCalculationStrategy?: InputMaybe; }; @@ -27371,27 +28037,27 @@ export type TaxConfigurationUpdateError = { /** The error code. */ code: TaxConfigurationUpdateErrorCode; /** List of country codes for which the configuration is invalid. */ - countryCodes: Array; + countryCodes: Array; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type TaxConfigurationUpdateErrorCode = - | "DUPLICATED_INPUT_ITEM" - | "GRAPHQL_ERROR" - | "INVALID" - | "NOT_FOUND"; + | 'DUPLICATED_INPUT_ITEM' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND'; export type TaxConfigurationUpdateInput = { /** Determines whether taxes are charged in the given channel. */ - chargeTaxes?: InputMaybe; + chargeTaxes?: InputMaybe; /** Determines whether displayed prices should include taxes. */ - displayGrossPrices?: InputMaybe; + displayGrossPrices?: InputMaybe; /** Determines whether prices are entered with the tax included. */ - pricesEnteredWithTax?: InputMaybe; + pricesEnteredWithTax?: InputMaybe; /** List of country codes for which to remove the tax configuration. */ removeCountriesConfiguration?: InputMaybe>; /** @@ -27399,13 +28065,11 @@ export type TaxConfigurationUpdateInput = { * * Added in Saleor 3.19. */ - taxAppId?: InputMaybe; + taxAppId?: InputMaybe; /** The default strategy to use for tax calculation in the given channel. Taxes can be calculated either using user-defined flat rates or with a tax app. Empty value means that no method is selected and taxes are not calculated. */ taxCalculationStrategy?: InputMaybe; /** List of tax country configurations to create or update (identified by a country code). */ - updateCountriesConfiguration?: InputMaybe< - Array - >; + updateCountriesConfiguration?: InputMaybe>; }; /** @@ -27437,16 +28101,16 @@ export type TaxCountryConfigurationDeleteError = { /** The error code. */ code: TaxCountryConfigurationDeleteErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type TaxCountryConfigurationDeleteErrorCode = - | "GRAPHQL_ERROR" - | "INVALID" - | "NOT_FOUND"; + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND'; /** * Update tax class rates for a specific country. @@ -27465,20 +28129,20 @@ export type TaxCountryConfigurationUpdateError = { /** The error code. */ code: TaxCountryConfigurationUpdateErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; /** List of tax class IDs for which the update failed. */ - taxClassIds: Array; + taxClassIds: Array; }; /** An enumeration. */ export type TaxCountryConfigurationUpdateErrorCode = - | "CANNOT_CREATE_NEGATIVE_RATE" - | "GRAPHQL_ERROR" - | "INVALID" - | "NOT_FOUND" - | "ONLY_ONE_DEFAULT_COUNTRY_RATE_ALLOWED"; + | 'CANNOT_CREATE_NEGATIVE_RATE' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'ONLY_ONE_DEFAULT_COUNTRY_RATE_ALLOWED'; /** * Exempt checkout or order from charging the taxes. When tax exemption is enabled, taxes won't be charged for the checkout or order. Taxes may still be calculated in cases when product prices are entered with the tax included and the net price needs to be known. @@ -27496,17 +28160,17 @@ export type TaxExemptionManageError = { /** The error code. */ code: TaxExemptionManageErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type TaxExemptionManageErrorCode = - | "GRAPHQL_ERROR" - | "INVALID" - | "NOT_EDITABLE_ORDER" - | "NOT_FOUND"; + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_EDITABLE_ORDER' + | 'NOT_FOUND'; export type TaxSourceLine = CheckoutLine | OrderLine; @@ -27515,9 +28179,9 @@ export type TaxSourceObject = Checkout | Order; /** Representation of tax types fetched from tax gateway. */ export type TaxType = { /** Description of the tax type. */ - description: Maybe; + description: Maybe; /** External tax code used to identify given tax group. */ - taxCode: Maybe; + taxCode: Maybe; }; /** Taxable object. */ @@ -27526,13 +28190,13 @@ export type TaxableObject = { address: Maybe
; channel: Channel; /** The currency of the object. */ - currency: Scalars["String"]["output"]; + currency: Scalars['String']['output']; /** List of discounts. */ discounts: Array; /** List of lines assigned to the object. */ lines: Array; /** Determines if prices contain entered tax.. */ - pricesEnteredWithTax: Scalars["Boolean"]["output"]; + pricesEnteredWithTax: Scalars['Boolean']['output']; /** The price of shipping method, includes shipping voucher discount if applied. */ shippingPrice: Money; /** The source object related to this tax object. */ @@ -27544,23 +28208,25 @@ export type TaxableObjectDiscount = { /** The amount of the discount. */ amount: Money; /** The name of the discount. */ - name: Maybe; + name: Maybe; /** Indicates which part of the order the discount should affect: SUBTOTAL or SHIPPING. */ type: TaxableObjectDiscountTypeEnum; }; /** Indicates which part of the order the discount should affect: SUBTOTAL or SHIPPING. */ -export type TaxableObjectDiscountTypeEnum = "SHIPPING" | "SUBTOTAL"; +export type TaxableObjectDiscountTypeEnum = + | 'SHIPPING' + | 'SUBTOTAL'; export type TaxableObjectLine = { /** Determines if taxes are being charged for the product. */ - chargeTaxes: Scalars["Boolean"]["output"]; + chargeTaxes: Scalars['Boolean']['output']; /** The product name. */ - productName: Scalars["String"]["output"]; + productName: Scalars['String']['output']; /** The product sku. */ - productSku: Maybe; + productSku: Maybe; /** Number of items. */ - quantity: Scalars["Int"]["output"]; + quantity: Scalars['Int']['output']; /** The source line related to this tax line. */ sourceLine: TaxSourceLine; /** Price of the order line. The price includes catalogue promotions, specific product and applied once per order voucher discounts. The price does not include the entire order discount. */ @@ -27568,13 +28234,13 @@ export type TaxableObjectLine = { /** Price of the single item in the order line. The price includes catalogue promotions, specific product and applied once per order voucher discounts. The price does not include the entire order discount. */ unitPrice: Money; /** The variant name. */ - variantName: Scalars["String"]["output"]; + variantName: Scalars['String']['output']; }; /** Represents a monetary value with taxes. In cases where taxes were not applied, net and gross values will be equal. */ export type TaxedMoney = { /** Currency code. */ - currency: Scalars["String"]["output"]; + currency: Scalars['String']['output']; /** Amount of money including taxes. */ gross: Money; /** Amount of money without taxes. */ @@ -27585,9 +28251,9 @@ export type TaxedMoney = { export type TaxedMoneyInput = { /** Gross value of an item. */ - gross: Scalars["PositiveDecimal"]["input"]; + gross: Scalars['PositiveDecimal']['input']; /** Net value of an item. */ - net: Scalars["PositiveDecimal"]["input"]; + net: Scalars['PositiveDecimal']['input']; }; /** Represents a range of monetary values. */ @@ -27609,9 +28275,9 @@ export type ThumbnailCreated = Event & { * * Added in Saleor 3.12. */ - id: Maybe; + id: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** @@ -27619,13 +28285,13 @@ export type ThumbnailCreated = Event & { * * Added in Saleor 3.12. */ - mediaUrl: Maybe; + mediaUrl: Maybe; /** * Object the thumbnail refers to. * * Added in Saleor 3.12. */ - objectId: Maybe; + objectId: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** @@ -27633,30 +28299,37 @@ export type ThumbnailCreated = Event & { * * Added in Saleor 3.12. */ - url: Maybe; + url: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** An enumeration. */ -export type ThumbnailFormatEnum = "AVIF" | "ORIGINAL" | "WEBP"; +export type ThumbnailFormatEnum = + | 'AVIF' + | 'ORIGINAL' + | 'WEBP'; export type TimePeriod = { /** The length of the period. */ - amount: Scalars["Int"]["output"]; + amount: Scalars['Int']['output']; /** The type of the period. */ type: TimePeriodTypeEnum; }; export type TimePeriodInputType = { /** The length of the period. */ - amount: Scalars["Int"]["input"]; + amount: Scalars['Int']['input']; /** The type of the period. */ type: TimePeriodTypeEnum; }; /** An enumeration. */ -export type TimePeriodTypeEnum = "DAY" | "MONTH" | "WEEK" | "YEAR"; +export type TimePeriodTypeEnum = + | 'DAY' + | 'MONTH' + | 'WEEK' + | 'YEAR'; /** * Represents possible tokenized payment flows that can be used to process payment. @@ -27666,41 +28339,42 @@ export type TimePeriodTypeEnum = "DAY" | "MONTH" | "WEEK" | "YEAR"; * checkout form (might require additional authentication from user) * */ -export type TokenizedPaymentFlowEnum = "INTERACTIVE"; +export type TokenizedPaymentFlowEnum = + | 'INTERACTIVE'; /** An object representing a single payment. */ export type Transaction = Node & { /** Total amount of the transaction. */ amount: Maybe; /** Date and time at which transaction was created. */ - created: Scalars["DateTime"]["output"]; + created: Scalars['DateTime']['output']; /** Error associated with transaction, if any. */ - error: Maybe; + error: Maybe; /** Response returned by payment gateway. */ - gatewayResponse: Scalars["JSONString"]["output"]; + gatewayResponse: Scalars['JSONString']['output']; /** ID of the transaction. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Determines if the transaction was successful. */ - isSuccess: Scalars["Boolean"]["output"]; + isSuccess: Scalars['Boolean']['output']; /** Determines the type of transaction. */ kind: TransactionKind; /** Determines the payment associated with a transaction. */ payment: Payment; /** Unique token associated with a transaction. */ - token: Scalars["String"]["output"]; + token: Scalars['String']['output']; }; export type TransactionAction = { /** Determines the action type. */ actionType: TransactionActionEnum; /** Transaction request amount. Null when action type is VOID. */ - amount: Maybe; + amount: Maybe; /** * Currency code. * * Added in Saleor 3.16. */ - currency: Scalars["String"]["output"]; + currency: Scalars['String']['output']; }; /** @@ -27712,7 +28386,10 @@ export type TransactionAction = { * CANCEL - Represents a cancel action. Added in Saleor 3.12. * */ -export type TransactionActionEnum = "CANCEL" | "CHARGE" | "REFUND"; +export type TransactionActionEnum = + | 'CANCEL' + | 'CHARGE' + | 'REFUND'; /** * Event sent when transaction cancelation is requested. @@ -27725,7 +28402,7 @@ export type TransactionCancelationRequested = Event & { /** Requested action data. */ action: TransactionAction; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ @@ -27733,7 +28410,7 @@ export type TransactionCancelationRequested = Event & { /** Look up a transaction. */ transaction: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -27747,7 +28424,7 @@ export type TransactionChargeRequested = Event & { /** Requested action data. */ action: TransactionAction; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ @@ -27755,7 +28432,7 @@ export type TransactionChargeRequested = Event & { /** Look up a transaction. */ transaction: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -27776,19 +28453,19 @@ export type TransactionCreateError = { /** The error code. */ code: TransactionCreateErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type TransactionCreateErrorCode = - | "GRAPHQL_ERROR" - | "INCORRECT_CURRENCY" - | "INVALID" - | "METADATA_KEY_REQUIRED" - | "NOT_FOUND" - | "UNIQUE"; + | 'GRAPHQL_ERROR' + | 'INCORRECT_CURRENCY' + | 'INVALID' + | 'METADATA_KEY_REQUIRED' + | 'NOT_FOUND' + | 'UNIQUE'; export type TransactionCreateInput = { /** Amount authorized by this transaction. */ @@ -27810,13 +28487,13 @@ export type TransactionCreateInput = { * * Added in Saleor 3.13. */ - externalUrl?: InputMaybe; + externalUrl?: InputMaybe; /** * The message of the transaction. * * Added in Saleor 3.13. */ - message?: InputMaybe; + message?: InputMaybe; /** Payment public metadata. */ metadata?: InputMaybe>; /** @@ -27824,7 +28501,7 @@ export type TransactionCreateInput = { * * Added in Saleor 3.13. */ - name?: InputMaybe; + name?: InputMaybe; /** Payment private metadata. */ privateMetadata?: InputMaybe>; /** @@ -27832,7 +28509,7 @@ export type TransactionCreateInput = { * * Added in Saleor 3.13. */ - pspReference?: InputMaybe; + pspReference?: InputMaybe; }; /** Represents transaction's event. */ @@ -27844,7 +28521,7 @@ export type TransactionEvent = Node & { */ amount: Money; /** Date and time at which a transaction event was created. */ - createdAt: Scalars["DateTime"]["output"]; + createdAt: Scalars['DateTime']['output']; /** * User or App that created the transaction event. * @@ -27856,27 +28533,27 @@ export type TransactionEvent = Node & { * * Added in Saleor 3.13. */ - externalUrl: Scalars["String"]["output"]; + externalUrl: Scalars['String']['output']; /** The ID of the object. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** * Idempotency key assigned to the event. * * Added in Saleor 3.14. */ - idempotencyKey: Maybe; + idempotencyKey: Maybe; /** * Message related to the transaction's event. * * Added in Saleor 3.13. */ - message: Scalars["String"]["output"]; + message: Scalars['String']['output']; /** * PSP reference of transaction. * * Added in Saleor 3.13. */ - pspReference: Scalars["String"]["output"]; + pspReference: Scalars['String']['output']; /** * The type of action related to this event. * @@ -27891,13 +28568,13 @@ export type TransactionEventInput = { * * Added in Saleor 3.13. */ - message?: InputMaybe; + message?: InputMaybe; /** * PSP Reference related to this action. * * Added in Saleor 3.13. */ - pspReference?: InputMaybe; + pspReference?: InputMaybe; }; /** @@ -27916,7 +28593,7 @@ export type TransactionEventInput = { */ export type TransactionEventReport = { /** Defines if the reported event hasn't been processed earlier. */ - alreadyProcessed: Maybe; + alreadyProcessed: Maybe; errors: Array; /** The transaction related to the reported event. */ transaction: Maybe; @@ -27928,19 +28605,19 @@ export type TransactionEventReportError = { /** The error code. */ code: TransactionEventReportErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type TransactionEventReportErrorCode = - | "ALREADY_EXISTS" - | "GRAPHQL_ERROR" - | "INCORRECT_DETAILS" - | "INVALID" - | "NOT_FOUND" - | "REQUIRED"; + | 'ALREADY_EXISTS' + | 'GRAPHQL_ERROR' + | 'INCORRECT_DETAILS' + | 'INVALID' + | 'NOT_FOUND' + | 'REQUIRED'; /** * Represents possible event types. @@ -27971,24 +28648,24 @@ export type TransactionEventReportErrorCode = * */ export type TransactionEventTypeEnum = - | "AUTHORIZATION_ACTION_REQUIRED" - | "AUTHORIZATION_ADJUSTMENT" - | "AUTHORIZATION_FAILURE" - | "AUTHORIZATION_REQUEST" - | "AUTHORIZATION_SUCCESS" - | "CANCEL_FAILURE" - | "CANCEL_REQUEST" - | "CANCEL_SUCCESS" - | "CHARGE_ACTION_REQUIRED" - | "CHARGE_BACK" - | "CHARGE_FAILURE" - | "CHARGE_REQUEST" - | "CHARGE_SUCCESS" - | "INFO" - | "REFUND_FAILURE" - | "REFUND_REQUEST" - | "REFUND_REVERSE" - | "REFUND_SUCCESS"; + | 'AUTHORIZATION_ACTION_REQUIRED' + | 'AUTHORIZATION_ADJUSTMENT' + | 'AUTHORIZATION_FAILURE' + | 'AUTHORIZATION_REQUEST' + | 'AUTHORIZATION_SUCCESS' + | 'CANCEL_FAILURE' + | 'CANCEL_REQUEST' + | 'CANCEL_SUCCESS' + | 'CHARGE_ACTION_REQUIRED' + | 'CHARGE_BACK' + | 'CHARGE_FAILURE' + | 'CHARGE_REQUEST' + | 'CHARGE_SUCCESS' + | 'INFO' + | 'REFUND_FAILURE' + | 'REFUND_REQUEST' + | 'REFUND_REVERSE' + | 'REFUND_SUCCESS'; /** * Determine the transaction flow strategy. @@ -27997,7 +28674,9 @@ export type TransactionEventTypeEnum = * CHARGE - the processed transaction should be charged. * */ -export type TransactionFlowStrategyEnum = "AUTHORIZATION" | "CHARGE"; +export type TransactionFlowStrategyEnum = + | 'AUTHORIZATION' + | 'CHARGE'; /** * Initializes a transaction session. It triggers the webhook `TRANSACTION_INITIALIZE_SESSION`, to the requested `paymentGateways`. There is a limit of 100 transaction items per checkout / order. @@ -28008,7 +28687,7 @@ export type TransactionFlowStrategyEnum = "AUTHORIZATION" | "CHARGE"; */ export type TransactionInitialize = { /** The JSON data required to finalize the payment. */ - data: Maybe; + data: Maybe; errors: Array; /** The initialized transaction. */ transaction: Maybe; @@ -28020,18 +28699,18 @@ export type TransactionInitializeError = { /** The error code. */ code: TransactionInitializeErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type TransactionInitializeErrorCode = - | "CHECKOUT_COMPLETION_IN_PROGRESS" - | "GRAPHQL_ERROR" - | "INVALID" - | "NOT_FOUND" - | "UNIQUE"; + | 'CHECKOUT_COMPLETION_IN_PROGRESS' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'UNIQUE'; /** * Event sent when user starts processing the payment. @@ -28044,171 +28723,171 @@ export type TransactionInitializeSession = Event & { /** Action to proceed for the transaction */ action: TransactionProcessAction; /** - * The customer's IP address. If not provided as a parameter in the mutation, Saleor will try to determine the customer's IP address on its own. + * The customer's IP address. If not provided as a parameter in the mutation, Saleor will try to determine the customer's IP address on its own. + * + * Added in Saleor 3.16. + */ + customerIpAddress: Maybe; + /** Payment gateway data in JSON format, received from storefront. */ + data: Maybe; + /** + * Idempotency key assigned to the transaction initialize. + * + * Added in Saleor 3.14. + */ + idempotencyKey: Scalars['String']['output']; + /** Time of the event. */ + issuedAt: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal: Maybe; + /** Merchant reference assigned to this payment. */ + merchantReference: Scalars['String']['output']; + /** The application receiving the webhook. */ + recipient: Maybe; + /** Checkout or order */ + sourceObject: OrderOrCheckout; + /** Look up a transaction. */ + transaction: TransactionItem; + /** Saleor version that triggered the event. */ + version: Maybe; +}; + +/** + * Represents a payment transaction. + * + * Added in Saleor 3.4. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ +export type TransactionItem = Node & ObjectWithMetadata & { + /** List of actions that can be performed in the current state of a payment. */ + actions: Array; + /** + * Total amount of ongoing authorization requests for the transaction. + * + * Added in Saleor 3.13. + */ + authorizePendingAmount: Money; + /** Total amount authorized for this payment. */ + authorizedAmount: Money; + /** + * Total amount of ongoing cancel requests for the transaction. + * + * Added in Saleor 3.13. + */ + cancelPendingAmount: Money; + /** + * Total amount canceled for this payment. + * + * Added in Saleor 3.13. + */ + canceledAmount: Money; + /** + * Total amount of ongoing charge requests for the transaction. + * + * Added in Saleor 3.13. + */ + chargePendingAmount: Money; + /** Total amount charged for this payment. */ + chargedAmount: Money; + /** + * The related checkout. + * + * Added in Saleor 3.14. + */ + checkout: Maybe; + /** Date and time at which payment transaction was created. */ + createdAt: Scalars['DateTime']['output']; + /** + * User or App that created the transaction. + * + * Added in Saleor 3.13. + */ + createdBy: Maybe; + /** List of all transaction's events. */ + events: Array; + /** + * The url that will allow to redirect user to payment provider page with transaction details. + * + * Added in Saleor 3.13. + */ + externalUrl: Scalars['String']['output']; + /** The ID of the object. */ + id: Scalars['ID']['output']; + /** + * Message related to the transaction. + * + * Added in Saleor 3.13. + */ + message: Scalars['String']['output']; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * A single key from public metadata. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + metafield: Maybe; + /** + * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + metafields: Maybe; + /** Date and time at which payment transaction was modified. */ + modifiedAt: Scalars['DateTime']['output']; + /** + * Name of the transaction. + * + * Added in Saleor 3.13. + */ + name: Scalars['String']['output']; + /** + * The related order. + * + * Added in Saleor 3.6. + */ + order: Maybe; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * A single key from private metadata. Requires staff permissions to access. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + privateMetafield: Maybe; + /** + * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. * - * Added in Saleor 3.16. + * Added in Saleor 3.3. */ - customerIpAddress: Maybe; - /** Payment gateway data in JSON format, received from storefront. */ - data: Maybe; + privateMetafields: Maybe; /** - * Idempotency key assigned to the transaction initialize. + * PSP reference of transaction. + * + * Added in Saleor 3.13. + */ + pspReference: Scalars['String']['output']; + /** + * Total amount of ongoing refund requests for the transaction. + * + * Added in Saleor 3.13. + */ + refundPendingAmount: Money; + /** Total amount refunded for this payment. */ + refundedAmount: Money; + /** + * The transaction token. * * Added in Saleor 3.14. */ - idempotencyKey: Scalars["String"]["output"]; - /** Time of the event. */ - issuedAt: Maybe; - /** The user or application that triggered the event. */ - issuingPrincipal: Maybe; - /** Merchant reference assigned to this payment. */ - merchantReference: Scalars["String"]["output"]; - /** The application receiving the webhook. */ - recipient: Maybe; - /** Checkout or order */ - sourceObject: OrderOrCheckout; - /** Look up a transaction. */ - transaction: TransactionItem; - /** Saleor version that triggered the event. */ - version: Maybe; + token: Scalars['UUID']['output']; }; -/** - * Represents a payment transaction. - * - * Added in Saleor 3.4. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ -export type TransactionItem = Node & - ObjectWithMetadata & { - /** List of actions that can be performed in the current state of a payment. */ - actions: Array; - /** - * Total amount of ongoing authorization requests for the transaction. - * - * Added in Saleor 3.13. - */ - authorizePendingAmount: Money; - /** Total amount authorized for this payment. */ - authorizedAmount: Money; - /** - * Total amount of ongoing cancel requests for the transaction. - * - * Added in Saleor 3.13. - */ - cancelPendingAmount: Money; - /** - * Total amount canceled for this payment. - * - * Added in Saleor 3.13. - */ - canceledAmount: Money; - /** - * Total amount of ongoing charge requests for the transaction. - * - * Added in Saleor 3.13. - */ - chargePendingAmount: Money; - /** Total amount charged for this payment. */ - chargedAmount: Money; - /** - * The related checkout. - * - * Added in Saleor 3.14. - */ - checkout: Maybe; - /** Date and time at which payment transaction was created. */ - createdAt: Scalars["DateTime"]["output"]; - /** - * User or App that created the transaction. - * - * Added in Saleor 3.13. - */ - createdBy: Maybe; - /** List of all transaction's events. */ - events: Array; - /** - * The url that will allow to redirect user to payment provider page with transaction details. - * - * Added in Saleor 3.13. - */ - externalUrl: Scalars["String"]["output"]; - /** The ID of the object. */ - id: Scalars["ID"]["output"]; - /** - * Message related to the transaction. - * - * Added in Saleor 3.13. - */ - message: Scalars["String"]["output"]; - /** List of public metadata items. Can be accessed without permissions. */ - metadata: Array; - /** - * A single key from public metadata. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - metafield: Maybe; - /** - * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - metafields: Maybe; - /** Date and time at which payment transaction was modified. */ - modifiedAt: Scalars["DateTime"]["output"]; - /** - * Name of the transaction. - * - * Added in Saleor 3.13. - */ - name: Scalars["String"]["output"]; - /** - * The related order. - * - * Added in Saleor 3.6. - */ - order: Maybe; - /** List of private metadata items. Requires staff permissions to access. */ - privateMetadata: Array; - /** - * A single key from private metadata. Requires staff permissions to access. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - privateMetafield: Maybe; - /** - * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - privateMetafields: Maybe; - /** - * PSP reference of transaction. - * - * Added in Saleor 3.13. - */ - pspReference: Scalars["String"]["output"]; - /** - * Total amount of ongoing refund requests for the transaction. - * - * Added in Saleor 3.13. - */ - refundPendingAmount: Money; - /** Total amount refunded for this payment. */ - refundedAmount: Money; - /** - * The transaction token. - * - * Added in Saleor 3.14. - */ - token: Scalars["UUID"]["output"]; - }; /** * Represents a payment transaction. @@ -28218,9 +28897,10 @@ export type TransactionItem = Node & * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ export type TransactionItemMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** * Represents a payment transaction. * @@ -28229,9 +28909,10 @@ export type TransactionItemMetafieldArgs = { * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ export type TransactionItemMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** * Represents a payment transaction. * @@ -28240,9 +28921,10 @@ export type TransactionItemMetafieldsArgs = { * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ export type TransactionItemPrivateMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** * Represents a payment transaction. * @@ -28251,7 +28933,7 @@ export type TransactionItemPrivateMetafieldArgs = { * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ export type TransactionItemPrivateMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; /** @@ -28261,7 +28943,7 @@ export type TransactionItemPrivateMetafieldsArgs = { */ export type TransactionItemMetadataUpdated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ @@ -28269,21 +28951,21 @@ export type TransactionItemMetadataUpdated = Event & { /** Look up a transaction. */ transaction: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** An enumeration. */ export type TransactionKind = - | "ACTION_TO_CONFIRM" - | "AUTH" - | "CANCEL" - | "CAPTURE" - | "CONFIRM" - | "EXTERNAL" - | "PENDING" - | "REFUND" - | "REFUND_ONGOING" - | "VOID"; + | 'ACTION_TO_CONFIRM' + | 'AUTH' + | 'CANCEL' + | 'CAPTURE' + | 'CONFIRM' + | 'EXTERNAL' + | 'PENDING' + | 'REFUND' + | 'REFUND_ONGOING' + | 'VOID'; /** * Processes a transaction session. It triggers the webhook `TRANSACTION_PROCESS_SESSION`, to the assigned `paymentGateways`. @@ -28294,7 +28976,7 @@ export type TransactionKind = */ export type TransactionProcess = { /** The json data required to finalize the payment. */ - data: Maybe; + data: Maybe; errors: Array; /** The processed transaction. */ transaction: Maybe; @@ -28305,29 +28987,29 @@ export type TransactionProcess = { export type TransactionProcessAction = { actionType: TransactionFlowStrategyEnum; /** Transaction amount to process. */ - amount: Scalars["PositiveDecimal"]["output"]; + amount: Scalars['PositiveDecimal']['output']; /** Currency of the amount. */ - currency: Scalars["String"]["output"]; + currency: Scalars['String']['output']; }; export type TransactionProcessError = { /** The error code. */ code: TransactionProcessErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type TransactionProcessErrorCode = - | "CHECKOUT_COMPLETION_IN_PROGRESS" - | "GRAPHQL_ERROR" - | "INVALID" - | "MISSING_PAYMENT_APP" - | "MISSING_PAYMENT_APP_RELATION" - | "NOT_FOUND" - | "TRANSACTION_ALREADY_PROCESSED"; + | 'CHECKOUT_COMPLETION_IN_PROGRESS' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'MISSING_PAYMENT_APP' + | 'MISSING_PAYMENT_APP_RELATION' + | 'NOT_FOUND' + | 'TRANSACTION_ALREADY_PROCESSED'; /** * Event sent when user has additional payment action to process. @@ -28344,15 +29026,15 @@ export type TransactionProcessSession = Event & { * * Added in Saleor 3.16. */ - customerIpAddress: Maybe; + customerIpAddress: Maybe; /** Payment gateway data in JSON format, received from storefront. */ - data: Maybe; + data: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** Merchant reference assigned to this payment. */ - merchantReference: Scalars["String"]["output"]; + merchantReference: Scalars['String']['output']; /** The application receiving the webhook. */ recipient: Maybe; /** Checkout or order */ @@ -28360,7 +29042,7 @@ export type TransactionProcessSession = Event & { /** Look up a transaction. */ transaction: TransactionItem; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -28382,7 +29064,7 @@ export type TransactionRefundRequested = Event & { */ grantedRefund: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ @@ -28390,7 +29072,7 @@ export type TransactionRefundRequested = Event & { /** Look up a transaction. */ transaction: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -28411,17 +29093,17 @@ export type TransactionRequestActionError = { /** The error code. */ code: TransactionRequestActionErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type TransactionRequestActionErrorCode = - | "GRAPHQL_ERROR" - | "INVALID" - | "MISSING_TRANSACTION_ACTION_REQUEST_WEBHOOK" - | "NOT_FOUND"; + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'MISSING_TRANSACTION_ACTION_REQUEST_WEBHOOK' + | 'NOT_FOUND'; /** * Request a refund for payment transaction based on granted refund. @@ -28441,20 +29123,20 @@ export type TransactionRequestRefundForGrantedRefundError = { /** The error code. */ code: TransactionRequestRefundForGrantedRefundErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type TransactionRequestRefundForGrantedRefundErrorCode = - | "AMOUNT_GREATER_THAN_AVAILABLE" - | "GRAPHQL_ERROR" - | "INVALID" - | "MISSING_TRANSACTION_ACTION_REQUEST_WEBHOOK" - | "NOT_FOUND" - | "REFUND_ALREADY_PROCESSED" - | "REFUND_IS_PENDING"; + | 'AMOUNT_GREATER_THAN_AVAILABLE' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'MISSING_TRANSACTION_ACTION_REQUEST_WEBHOOK' + | 'NOT_FOUND' + | 'REFUND_ALREADY_PROCESSED' + | 'REFUND_IS_PENDING'; /** * Update transaction. @@ -28474,19 +29156,19 @@ export type TransactionUpdateError = { /** The error code. */ code: TransactionUpdateErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type TransactionUpdateErrorCode = - | "GRAPHQL_ERROR" - | "INCORRECT_CURRENCY" - | "INVALID" - | "METADATA_KEY_REQUIRED" - | "NOT_FOUND" - | "UNIQUE"; + | 'GRAPHQL_ERROR' + | 'INCORRECT_CURRENCY' + | 'INVALID' + | 'METADATA_KEY_REQUIRED' + | 'NOT_FOUND' + | 'UNIQUE'; export type TransactionUpdateInput = { /** Amount authorized by this transaction. */ @@ -28508,13 +29190,13 @@ export type TransactionUpdateInput = { * * Added in Saleor 3.13. */ - externalUrl?: InputMaybe; + externalUrl?: InputMaybe; /** * The message of the transaction. * * Added in Saleor 3.13. */ - message?: InputMaybe; + message?: InputMaybe; /** Payment public metadata. */ metadata?: InputMaybe>; /** @@ -28522,7 +29204,7 @@ export type TransactionUpdateInput = { * * Added in Saleor 3.13. */ - name?: InputMaybe; + name?: InputMaybe; /** Payment private metadata. */ privateMetadata?: InputMaybe>; /** @@ -28530,53 +29212,40 @@ export type TransactionUpdateInput = { * * Added in Saleor 3.13. */ - pspReference?: InputMaybe; + pspReference?: InputMaybe; }; -export type TranslatableItem = - | AttributeTranslatableContent - | AttributeValueTranslatableContent - | CategoryTranslatableContent - | CollectionTranslatableContent - | MenuItemTranslatableContent - | PageTranslatableContent - | ProductTranslatableContent - | ProductVariantTranslatableContent - | PromotionRuleTranslatableContent - | PromotionTranslatableContent - | SaleTranslatableContent - | ShippingMethodTranslatableContent - | VoucherTranslatableContent; +export type TranslatableItem = AttributeTranslatableContent | AttributeValueTranslatableContent | CategoryTranslatableContent | CollectionTranslatableContent | MenuItemTranslatableContent | PageTranslatableContent | ProductTranslatableContent | ProductVariantTranslatableContent | PromotionRuleTranslatableContent | PromotionTranslatableContent | SaleTranslatableContent | ShippingMethodTranslatableContent | VoucherTranslatableContent; export type TranslatableItemConnection = { edges: Array; /** Pagination data for this connection. */ pageInfo: PageInfo; /** A total count of items in the collection. */ - totalCount: Maybe; + totalCount: Maybe; }; export type TranslatableItemEdge = { /** A cursor for use in pagination. */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node: TranslatableItem; }; export type TranslatableKinds = - | "ATTRIBUTE" - | "ATTRIBUTE_VALUE" - | "CATEGORY" - | "COLLECTION" - | "MENU_ITEM" - | "PAGE" - | "PRODUCT" - | "PROMOTION" - | "PROMOTION_RULE" - | "SALE" - | "SHIPPING_METHOD" - | "VARIANT" - | "VOUCHER"; + | 'ATTRIBUTE' + | 'ATTRIBUTE_VALUE' + | 'CATEGORY' + | 'COLLECTION' + | 'MENU_ITEM' + | 'PAGE' + | 'PRODUCT' + | 'PROMOTION' + | 'PROMOTION_RULE' + | 'SALE' + | 'SHIPPING_METHOD' + | 'VARIANT' + | 'VOUCHER'; /** * Event sent when new translation is created. @@ -28585,7 +29254,7 @@ export type TranslatableKinds = */ export type TranslationCreated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ @@ -28593,24 +29262,24 @@ export type TranslationCreated = Event & { /** The translation the event relates to. */ translation: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; export type TranslationError = { /** The error code. */ code: TranslationErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type TranslationErrorCode = - | "GRAPHQL_ERROR" - | "INVALID" - | "NOT_FOUND" - | "REQUIRED"; + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'REQUIRED'; export type TranslationInput = { /** @@ -28618,26 +29287,13 @@ export type TranslationInput = { * * Rich text format. For reference see https://editorjs.io/ */ - description?: InputMaybe; - name?: InputMaybe; - seoDescription?: InputMaybe; - seoTitle?: InputMaybe; + description?: InputMaybe; + name?: InputMaybe; + seoDescription?: InputMaybe; + seoTitle?: InputMaybe; }; -export type TranslationTypes = - | AttributeTranslation - | AttributeValueTranslation - | CategoryTranslation - | CollectionTranslation - | MenuItemTranslation - | PageTranslation - | ProductTranslation - | ProductVariantTranslation - | PromotionRuleTranslation - | PromotionTranslation - | SaleTranslation - | ShippingMethodTranslation - | VoucherTranslation; +export type TranslationTypes = AttributeTranslation | AttributeValueTranslation | CategoryTranslation | CollectionTranslation | MenuItemTranslation | PageTranslation | ProductTranslation | ProductVariantTranslation | PromotionRuleTranslation | PromotionTranslation | SaleTranslation | ShippingMethodTranslation | VoucherTranslation; /** * Event sent when translation is updated. @@ -28646,7 +29302,7 @@ export type TranslationTypes = */ export type TranslationUpdated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ @@ -28654,7 +29310,7 @@ export type TranslationUpdated = Event & { /** The translation the event relates to. */ translation: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; export type UpdateInvoiceInput = { @@ -28665,7 +29321,7 @@ export type UpdateInvoiceInput = { */ metadata?: InputMaybe>; /** Invoice number */ - number?: InputMaybe; + number?: InputMaybe; /** * Fields required to update the invoice private metadata. * @@ -28673,7 +29329,7 @@ export type UpdateInvoiceInput = { */ privateMetadata?: InputMaybe>; /** URL of an invoice to download. */ - url?: InputMaybe; + url?: InputMaybe; }; /** Updates metadata of an object. To use it, you need to have access to the modified object. */ @@ -28696,226 +29352,238 @@ export type UploadError = { /** The error code. */ code: UploadErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ -export type UploadErrorCode = "GRAPHQL_ERROR"; +export type UploadErrorCode = + | 'GRAPHQL_ERROR'; /** Represents user data. */ -export type User = Node & - ObjectWithMetadata & { - /** - * List of channels the user has access to. The sum of channels from all user groups. If at least one group has `restrictedAccessToChannels` set to False - all channels are returned. - * - * Added in Saleor 3.14. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - accessibleChannels: Maybe>; - /** List of all user's addresses. */ - addresses: Array
; - /** The avatar of the user. */ - avatar: Maybe; - /** - * Returns the last open checkout of this user. - * @deprecated This field will be removed in Saleor 4.0. Use the `checkoutTokens` field to fetch the user checkouts. - */ - checkout: Maybe; - /** Returns the checkout ID's assigned to this user. */ - checkoutIds: Maybe>; - /** - * Returns the checkout UUID's assigned to this user. - * @deprecated This field will be removed in Saleor 4.0. Use `checkoutIds` instead. - */ - checkoutTokens: Maybe>; - /** - * Returns checkouts assigned to this user. - * - * Added in Saleor 3.8. - */ - checkouts: Maybe; - /** The data when the user create account. */ - dateJoined: Scalars["DateTime"]["output"]; - /** The default billing address of the user. */ - defaultBillingAddress: Maybe
; - /** The default shipping address of the user. */ - defaultShippingAddress: Maybe
; - /** List of user's permission groups which user can manage. */ - editableGroups: Maybe>; - /** The email address of the user. */ - email: Scalars["String"]["output"]; - /** - * List of events associated with the user. - * - * Requires one of the following permissions: MANAGE_USERS, MANAGE_STAFF. - */ - events: Maybe>; - /** - * External ID of this user. - * - * Added in Saleor 3.10. - */ - externalReference: Maybe; - /** The given name of the address. */ - firstName: Scalars["String"]["output"]; - /** List of the user gift cards. */ - giftCards: Maybe; - /** The ID of the user. */ - id: Scalars["ID"]["output"]; - /** Determine if the user is active. */ - isActive: Scalars["Boolean"]["output"]; - /** - * Determines if user has confirmed email. - * - * Added in Saleor 3.15. - */ - isConfirmed: Scalars["Boolean"]["output"]; - /** Determine if the user is a staff admin. */ - isStaff: Scalars["Boolean"]["output"]; - /** User language code. */ - languageCode: LanguageCodeEnum; - /** The date when the user last time log in to the system. */ - lastLogin: Maybe; - /** The family name of the address. */ - lastName: Scalars["String"]["output"]; - /** List of public metadata items. Can be accessed without permissions. */ - metadata: Array; - /** - * A single key from public metadata. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - metafield: Maybe; - /** - * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - metafields: Maybe; - /** - * A note about the customer. - * - * Requires one of the following permissions: MANAGE_USERS, MANAGE_STAFF. - */ - note: Maybe; - /** List of user's orders. Requires one of the following permissions: MANAGE_STAFF, OWNER. */ - orders: Maybe; - /** List of user's permission groups. */ - permissionGroups: Maybe>; - /** List of private metadata items. Requires staff permissions to access. */ - privateMetadata: Array; - /** - * A single key from private metadata. Requires staff permissions to access. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - privateMetafield: Maybe; - /** - * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - privateMetafields: Maybe; - /** - * Determine if user have restricted access to channels. False if at least one user group has `restrictedAccessToChannels` set to False. - * - * Added in Saleor 3.14. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - restrictedAccessToChannels: Scalars["Boolean"]["output"]; - /** - * Returns a list of user's stored payment methods that can be used in provided channel. The field returns a list of stored payment methods by payment apps. When `amount` is not provided, 0 will be used as default value. - * - * Added in Saleor 3.15. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - storedPaymentMethods: Maybe>; - /** List of stored payment sources. The field returns a list of payment sources stored for payment plugins. */ - storedPaymentSources: Maybe>; - /** The data when the user last update the account information. */ - updatedAt: Scalars["DateTime"]["output"]; - /** List of user's permissions. */ - userPermissions: Maybe>; - }; +export type User = Node & ObjectWithMetadata & { + /** + * List of channels the user has access to. The sum of channels from all user groups. If at least one group has `restrictedAccessToChannels` set to False - all channels are returned. + * + * Added in Saleor 3.14. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + accessibleChannels: Maybe>; + /** List of all user's addresses. */ + addresses: Array
; + /** The avatar of the user. */ + avatar: Maybe; + /** + * Returns the last open checkout of this user. + * @deprecated This field will be removed in Saleor 4.0. Use the `checkoutTokens` field to fetch the user checkouts. + */ + checkout: Maybe; + /** Returns the checkout ID's assigned to this user. */ + checkoutIds: Maybe>; + /** + * Returns the checkout UUID's assigned to this user. + * @deprecated This field will be removed in Saleor 4.0. Use `checkoutIds` instead. + */ + checkoutTokens: Maybe>; + /** + * Returns checkouts assigned to this user. + * + * Added in Saleor 3.8. + */ + checkouts: Maybe; + /** The data when the user create account. */ + dateJoined: Scalars['DateTime']['output']; + /** The default billing address of the user. */ + defaultBillingAddress: Maybe
; + /** The default shipping address of the user. */ + defaultShippingAddress: Maybe
; + /** List of user's permission groups which user can manage. */ + editableGroups: Maybe>; + /** The email address of the user. */ + email: Scalars['String']['output']; + /** + * List of events associated with the user. + * + * Requires one of the following permissions: MANAGE_USERS, MANAGE_STAFF. + */ + events: Maybe>; + /** + * External ID of this user. + * + * Added in Saleor 3.10. + */ + externalReference: Maybe; + /** The given name of the address. */ + firstName: Scalars['String']['output']; + /** List of the user gift cards. */ + giftCards: Maybe; + /** The ID of the user. */ + id: Scalars['ID']['output']; + /** Determine if the user is active. */ + isActive: Scalars['Boolean']['output']; + /** + * Determines if user has confirmed email. + * + * Added in Saleor 3.15. + */ + isConfirmed: Scalars['Boolean']['output']; + /** Determine if the user is a staff admin. */ + isStaff: Scalars['Boolean']['output']; + /** User language code. */ + languageCode: LanguageCodeEnum; + /** The date when the user last time log in to the system. */ + lastLogin: Maybe; + /** The family name of the address. */ + lastName: Scalars['String']['output']; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * A single key from public metadata. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + metafield: Maybe; + /** + * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + metafields: Maybe; + /** + * A note about the customer. + * + * Requires one of the following permissions: MANAGE_USERS, MANAGE_STAFF. + */ + note: Maybe; + /** List of user's orders. Requires one of the following permissions: MANAGE_STAFF, OWNER. */ + orders: Maybe; + /** List of user's permission groups. */ + permissionGroups: Maybe>; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * A single key from private metadata. Requires staff permissions to access. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + privateMetafield: Maybe; + /** + * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + privateMetafields: Maybe; + /** + * Determine if user have restricted access to channels. False if at least one user group has `restrictedAccessToChannels` set to False. + * + * Added in Saleor 3.14. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + restrictedAccessToChannels: Scalars['Boolean']['output']; + /** + * Returns a list of user's stored payment methods that can be used in provided channel. The field returns a list of stored payment methods by payment apps. When `amount` is not provided, 0 will be used as default value. + * + * Added in Saleor 3.15. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + storedPaymentMethods: Maybe>; + /** List of stored payment sources. The field returns a list of payment sources stored for payment plugins. */ + storedPaymentSources: Maybe>; + /** The data when the user last update the account information. */ + updatedAt: Scalars['DateTime']['output']; + /** List of user's permissions. */ + userPermissions: Maybe>; +}; + /** Represents user data. */ export type UserAvatarArgs = { format?: InputMaybe; - size?: InputMaybe; + size?: InputMaybe; }; + /** Represents user data. */ export type UserCheckoutIdsArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; + /** Represents user data. */ export type UserCheckoutTokensArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; + /** Represents user data. */ export type UserCheckoutsArgs = { - after?: InputMaybe; - before?: InputMaybe; - channel?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + channel?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; + /** Represents user data. */ export type UserGiftCardsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; + /** Represents user data. */ export type UserMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents user data. */ export type UserMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Represents user data. */ export type UserOrdersArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; + /** Represents user data. */ export type UserPrivateMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents user data. */ export type UserPrivateMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Represents user data. */ export type UserStoredPaymentMethodsArgs = { - channel: Scalars["String"]["input"]; + channel: Scalars['String']['input']; }; + /** Represents user data. */ export type UserStoredPaymentSourcesArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; /** @@ -28953,7 +29621,7 @@ export type UserBulkSetActive = { /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ accountErrors: Array; /** Returns how many objects were affected. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; }; @@ -28962,35 +29630,35 @@ export type UserCountableConnection = { /** Pagination data for this connection. */ pageInfo: PageInfo; /** A total count of items in the collection. */ - totalCount: Maybe; + totalCount: Maybe; }; export type UserCountableEdge = { /** A cursor for use in pagination. */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node: User; }; export type UserCreateInput = { /** Slug of a channel which will be used for notify user. Optional when only one channel exists. */ - channel?: InputMaybe; + channel?: InputMaybe; /** Billing address of the customer. */ defaultBillingAddress?: InputMaybe; /** Shipping address of the customer. */ defaultShippingAddress?: InputMaybe; /** The unique email address of the user. */ - email?: InputMaybe; + email?: InputMaybe; /** * External ID of the customer. * * Added in Saleor 3.10. */ - externalReference?: InputMaybe; + externalReference?: InputMaybe; /** Given name. */ - firstName?: InputMaybe; + firstName?: InputMaybe; /** User account is active. */ - isActive?: InputMaybe; + isActive?: InputMaybe; /** * User account is confirmed. * @@ -29000,11 +29668,11 @@ export type UserCreateInput = { * * The user will be always set as unconfirmed. The confirmation will take place when the user sets the password. */ - isConfirmed?: InputMaybe; + isConfirmed?: InputMaybe; /** User language code. */ languageCode?: InputMaybe; /** Family name. */ - lastName?: InputMaybe; + lastName?: InputMaybe; /** * Fields required to update the user metadata. * @@ -29012,7 +29680,7 @@ export type UserCreateInput = { */ metadata?: InputMaybe>; /** A note about the user. */ - note?: InputMaybe; + note?: InputMaybe; /** * Fields required to update the user private metadata. * @@ -29020,7 +29688,7 @@ export type UserCreateInput = { */ privateMetadata?: InputMaybe>; /** URL of a view where users should be redirected to set the password. URL in RFC 1808 format. */ - redirectUrl?: InputMaybe; + redirectUrl?: InputMaybe; }; export type UserOrApp = App | User; @@ -29030,29 +29698,30 @@ export type UserPermission = { /** Internal code for permission. */ code: PermissionEnum; /** Describe action(s) allowed to do by permission. */ - name: Scalars["String"]["output"]; + name: Scalars['String']['output']; /** List of user permission groups which contains this permission. */ sourcePermissionGroups: Maybe>; }; + /** Represents user's permissions. */ export type UserPermissionSourcePermissionGroupsArgs = { - userId: Scalars["ID"]["input"]; + userId: Scalars['ID']['input']; }; export type UserSortField = /** Sort users by created at. */ - | "CREATED_AT" + | 'CREATED_AT' /** Sort users by email. */ - | "EMAIL" + | 'EMAIL' /** Sort users by first name. */ - | "FIRST_NAME" + | 'FIRST_NAME' /** Sort users by last modified at. */ - | "LAST_MODIFIED_AT" + | 'LAST_MODIFIED_AT' /** Sort users by last name. */ - | "LAST_NAME" + | 'LAST_NAME' /** Sort users by order count. */ - | "ORDER_COUNT"; + | 'ORDER_COUNT'; export type UserSortingInput = { /** Specifies the direction in which to sort users. */ @@ -29064,17 +29733,17 @@ export type UserSortingInput = { /** Represents a VAT rate for a country. */ export type Vat = { /** Country code. */ - countryCode: Scalars["String"]["output"]; + countryCode: Scalars['String']['output']; /** Country's VAT rate exceptions for specific types of goods. */ reducedRates: Array; /** Standard VAT rate in percent. */ - standardRate: Maybe; + standardRate: Maybe; }; export type VariantAttributeScope = - | "ALL" - | "NOT_VARIANT_SELECTION" - | "VARIANT_SELECTION"; + | 'ALL' + | 'NOT_VARIANT_SELECTION' + | 'VARIANT_SELECTION'; /** * Assign an media to a product variant. @@ -29112,7 +29781,7 @@ export type VariantPricingInfo = { */ discountLocalCurrency: Maybe; /** Whether it is in sale or not. */ - onSale: Maybe; + onSale: Maybe; /** The price, with any discount subtracted. */ price: Maybe; /** @@ -29130,207 +29799,216 @@ export type VerifyToken = { accountErrors: Array; errors: Array; /** Determine if token is valid or not. */ - isValid: Scalars["Boolean"]["output"]; + isValid: Scalars['Boolean']['output']; /** JWT payload. */ - payload: Maybe; + payload: Maybe; /** User assigned to token. */ user: Maybe; }; /** An enumeration. */ export type VolumeUnitsEnum = - | "ACRE_FT" - | "ACRE_IN" - | "CUBIC_CENTIMETER" - | "CUBIC_DECIMETER" - | "CUBIC_FOOT" - | "CUBIC_INCH" - | "CUBIC_METER" - | "CUBIC_MILLIMETER" - | "CUBIC_YARD" - | "FL_OZ" - | "LITER" - | "PINT" - | "QT"; + | 'ACRE_FT' + | 'ACRE_IN' + | 'CUBIC_CENTIMETER' + | 'CUBIC_DECIMETER' + | 'CUBIC_FOOT' + | 'CUBIC_INCH' + | 'CUBIC_METER' + | 'CUBIC_MILLIMETER' + | 'CUBIC_YARD' + | 'FL_OZ' + | 'LITER' + | 'PINT' + | 'QT'; /** Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes. */ -export type Voucher = Node & - ObjectWithMetadata & { - /** Determine if the voucher usage should be limited to one use per customer. */ - applyOncePerCustomer: Scalars["Boolean"]["output"]; - /** Determine if the voucher should be applied once per order. If set to True, the voucher is applied to a single cheapest eligible product in checkout. */ - applyOncePerOrder: Scalars["Boolean"]["output"]; - /** List of categories this voucher applies to. */ - categories: Maybe; - /** - * List of availability in channels for the voucher. - * - * Requires one of the following permissions: MANAGE_DISCOUNTS. - */ - channelListings: Maybe>; - /** The code of the voucher.This field will be removed in Saleor 4.0. */ - code: Maybe; - /** - * List of codes available for this voucher. - * - * Added in Saleor 3.18. - */ - codes: Maybe; - /** - * List of collections this voucher applies to. - * - * Requires one of the following permissions: MANAGE_DISCOUNTS. - */ - collections: Maybe; - /** List of countries available for the shipping voucher. */ - countries: Maybe>; - /** Currency code for voucher. */ - currency: Maybe; - /** Voucher value. */ - discountValue: Maybe; - /** Determines a type of discount for voucher - value or percentage */ - discountValueType: DiscountValueTypeEnum; - /** The end date and time of voucher. */ - endDate: Maybe; - /** The ID of the voucher. */ - id: Scalars["ID"]["output"]; - /** List of public metadata items. Can be accessed without permissions. */ - metadata: Array; - /** - * A single key from public metadata. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - metafield: Maybe; - /** - * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - metafields: Maybe; - /** Determine minimum quantity of items for checkout. */ - minCheckoutItemsQuantity: Maybe; - /** Minimum order value to apply voucher. */ - minSpent: Maybe; - /** The name of the voucher. */ - name: Maybe; - /** Determine if the voucher is available only for staff members. */ - onlyForStaff: Scalars["Boolean"]["output"]; - /** List of private metadata items. Requires staff permissions to access. */ - privateMetadata: Array; - /** - * A single key from private metadata. Requires staff permissions to access. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - privateMetafield: Maybe; - /** - * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - privateMetafields: Maybe; - /** - * List of products this voucher applies to. - * - * Requires one of the following permissions: MANAGE_DISCOUNTS. - */ - products: Maybe; - /** - * Determine if the voucher codes can be used once or multiple times. - * - * Added in Saleor 3.18. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - singleUse: Scalars["Boolean"]["output"]; - /** The start date and time of voucher. */ - startDate: Scalars["DateTime"]["output"]; - /** Returns translated voucher fields for the given language code. */ - translation: Maybe; - /** Determines a type of voucher. */ - type: VoucherTypeEnum; - /** The number of times a voucher can be used. */ - usageLimit: Maybe; - /** Usage count of the voucher. */ - used: Scalars["Int"]["output"]; - /** - * List of product variants this voucher applies to. - * - * Added in Saleor 3.1. - * - * Requires one of the following permissions: MANAGE_DISCOUNTS. - */ - variants: Maybe; - }; +export type Voucher = Node & ObjectWithMetadata & { + /** Determine if the voucher usage should be limited to one use per customer. */ + applyOncePerCustomer: Scalars['Boolean']['output']; + /** Determine if the voucher should be applied once per order. If set to True, the voucher is applied to a single cheapest eligible product in checkout. */ + applyOncePerOrder: Scalars['Boolean']['output']; + /** List of categories this voucher applies to. */ + categories: Maybe; + /** + * List of availability in channels for the voucher. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ + channelListings: Maybe>; + /** The code of the voucher.This field will be removed in Saleor 4.0. */ + code: Maybe; + /** + * List of codes available for this voucher. + * + * Added in Saleor 3.18. + */ + codes: Maybe; + /** + * List of collections this voucher applies to. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ + collections: Maybe; + /** List of countries available for the shipping voucher. */ + countries: Maybe>; + /** Currency code for voucher. */ + currency: Maybe; + /** Voucher value. */ + discountValue: Maybe; + /** Determines a type of discount for voucher - value or percentage */ + discountValueType: DiscountValueTypeEnum; + /** The end date and time of voucher. */ + endDate: Maybe; + /** The ID of the voucher. */ + id: Scalars['ID']['output']; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * A single key from public metadata. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + metafield: Maybe; + /** + * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + metafields: Maybe; + /** Determine minimum quantity of items for checkout. */ + minCheckoutItemsQuantity: Maybe; + /** Minimum order value to apply voucher. */ + minSpent: Maybe; + /** The name of the voucher. */ + name: Maybe; + /** Determine if the voucher is available only for staff members. */ + onlyForStaff: Scalars['Boolean']['output']; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * A single key from private metadata. Requires staff permissions to access. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + privateMetafield: Maybe; + /** + * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + privateMetafields: Maybe; + /** + * List of products this voucher applies to. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ + products: Maybe; + /** + * Determine if the voucher codes can be used once or multiple times. + * + * Added in Saleor 3.18. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + singleUse: Scalars['Boolean']['output']; + /** The start date and time of voucher. */ + startDate: Scalars['DateTime']['output']; + /** Returns translated voucher fields for the given language code. */ + translation: Maybe; + /** Determines a type of voucher. */ + type: VoucherTypeEnum; + /** The number of times a voucher can be used. */ + usageLimit: Maybe; + /** Usage count of the voucher. */ + used: Scalars['Int']['output']; + /** + * List of product variants this voucher applies to. + * + * Added in Saleor 3.1. + * + * Requires one of the following permissions: MANAGE_DISCOUNTS. + */ + variants: Maybe; +}; + /** Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes. */ export type VoucherCategoriesArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; + /** Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes. */ export type VoucherCodesArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; + /** Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes. */ export type VoucherCollectionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; + /** Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes. */ export type VoucherMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes. */ export type VoucherMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes. */ export type VoucherPrivateMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes. */ export type VoucherPrivateMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes. */ export type VoucherProductsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; + /** Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes. */ export type VoucherTranslationArgs = { languageCode: LanguageCodeEnum; }; + /** Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes. */ export type VoucherVariantsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; /** @@ -29359,7 +30037,7 @@ export type VoucherAddCatalogues = { */ export type VoucherBulkDelete = { /** Returns how many objects were affected. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; /** @deprecated This field will be removed in Saleor 4.0. Use `errors` field instead. */ discountErrors: Array; errors: Array; @@ -29370,29 +30048,29 @@ export type VoucherChannelListing = Node & { /** The channel in which voucher can be applied. */ channel: Channel; /** Currency code for voucher in a channel. */ - currency: Scalars["String"]["output"]; + currency: Scalars['String']['output']; /** The value of the discount on voucher in a channel. */ - discountValue: Scalars["Float"]["output"]; + discountValue: Scalars['Float']['output']; /** The ID of channel listing. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Minimum order value for voucher to apply in channel. */ minSpent: Maybe; }; export type VoucherChannelListingAddInput = { /** ID of a channel. */ - channelId: Scalars["ID"]["input"]; + channelId: Scalars['ID']['input']; /** Value of the voucher. */ - discountValue?: InputMaybe; + discountValue?: InputMaybe; /** Min purchase amount required to apply the voucher. */ - minAmountSpent?: InputMaybe; + minAmountSpent?: InputMaybe; }; export type VoucherChannelListingInput = { /** List of channels to which the voucher should be assigned. */ addChannels?: InputMaybe>; /** List of channels from which the voucher should be unassigned. */ - removeChannels?: InputMaybe>; + removeChannels?: InputMaybe>; }; /** @@ -29420,15 +30098,15 @@ export type VoucherChannelListingUpdate = { */ export type VoucherCode = { /** Code to use the voucher. */ - code: Maybe; + code: Maybe; /** Date time of code creation. */ - createdAt: Scalars["DateTime"]["output"]; + createdAt: Scalars['DateTime']['output']; /** The ID of the voucher code. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Whether a code is active or not. */ - isActive: Maybe; + isActive: Maybe; /** Number of times a code has been used. */ - used: Maybe; + used: Maybe; }; /** @@ -29443,7 +30121,7 @@ export type VoucherCode = { */ export type VoucherCodeBulkDelete = { /** Returns how many codes were deleted. */ - count: Scalars["Int"]["output"]; + count: Scalars['Int']['output']; errors: Array; }; @@ -29451,30 +30129,30 @@ export type VoucherCodeBulkDeleteError = { /** The error code. */ code: VoucherCodeBulkDeleteErrorCode; /** The error message. */ - message: Maybe; + message: Maybe; /** Path to field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - path: Maybe; + path: Maybe; /** List of voucher codes which causes the error. */ - voucherCodes: Maybe>; + voucherCodes: Maybe>; }; /** An enumeration. */ export type VoucherCodeBulkDeleteErrorCode = - | "GRAPHQL_ERROR" - | "INVALID" - | "NOT_FOUND"; + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND'; export type VoucherCodeCountableConnection = { edges: Array; /** Pagination data for this connection. */ pageInfo: PageInfo; /** A total count of items in the collection. */ - totalCount: Maybe; + totalCount: Maybe; }; export type VoucherCodeCountableEdge = { /** A cursor for use in pagination. */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node: VoucherCode; }; @@ -29488,13 +30166,13 @@ export type VoucherCodeExportCompleted = Event & { /** The export file for voucher codes. */ export: Maybe; /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; }; /** @@ -29504,13 +30182,13 @@ export type VoucherCodeExportCompleted = Event & { */ export type VoucherCodesCreated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; /** The voucher codes the event relates to. */ voucherCodes: Maybe>; }; @@ -29522,13 +30200,13 @@ export type VoucherCodesCreated = Event & { */ export type VoucherCodesDeleted = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; /** The voucher codes the event relates to. */ voucherCodes: Maybe>; }; @@ -29538,12 +30216,12 @@ export type VoucherCountableConnection = { /** Pagination data for this connection. */ pageInfo: PageInfo; /** A total count of items in the collection. */ - totalCount: Maybe; + totalCount: Maybe; }; export type VoucherCountableEdge = { /** A cursor for use in pagination. */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node: Voucher; }; @@ -29571,24 +30249,25 @@ export type VoucherCreate = { */ export type VoucherCreated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; /** The voucher the event relates to. */ voucher: Maybe; }; + /** * Event sent when new voucher is created. * * Added in Saleor 3.4. */ export type VoucherCreatedVoucherArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; /** @@ -29613,33 +30292,37 @@ export type VoucherDelete = { */ export type VoucherDeleted = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; /** The voucher the event relates to. */ voucher: Maybe; }; + /** * Event sent when voucher is deleted. * * Added in Saleor 3.4. */ export type VoucherDeletedVoucherArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; -export type VoucherDiscountType = "FIXED" | "PERCENTAGE" | "SHIPPING"; +export type VoucherDiscountType = + | 'FIXED' + | 'PERCENTAGE' + | 'SHIPPING'; export type VoucherFilterInput = { discountType?: InputMaybe>; - ids?: InputMaybe>; + ids?: InputMaybe>; metadata?: InputMaybe>; - search?: InputMaybe; + search?: InputMaybe; started?: InputMaybe; status?: InputMaybe>; timesUsed?: InputMaybe; @@ -29653,31 +30336,31 @@ export type VoucherInput = { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - addCodes?: InputMaybe>; + addCodes?: InputMaybe>; /** Voucher should be applied once per customer. */ - applyOncePerCustomer?: InputMaybe; + applyOncePerCustomer?: InputMaybe; /** Voucher should be applied to the cheapest item or entire order. */ - applyOncePerOrder?: InputMaybe; + applyOncePerOrder?: InputMaybe; /** Categories discounted by the voucher. */ - categories?: InputMaybe>; + categories?: InputMaybe>; /** Code to use the voucher. This field will be removed in Saleor 4.0. Use `addCodes` instead. */ - code?: InputMaybe; + code?: InputMaybe; /** Collections discounted by the voucher. */ - collections?: InputMaybe>; + collections?: InputMaybe>; /** Country codes that can be used with the shipping voucher. */ - countries?: InputMaybe>; + countries?: InputMaybe>; /** Choices: fixed or percentage. */ discountValueType?: InputMaybe; /** End date of the voucher in ISO 8601 format. */ - endDate?: InputMaybe; + endDate?: InputMaybe; /** Minimal quantity of checkout items required to apply the voucher. */ - minCheckoutItemsQuantity?: InputMaybe; + minCheckoutItemsQuantity?: InputMaybe; /** Voucher name. */ - name?: InputMaybe; + name?: InputMaybe; /** Voucher can be used only by staff user. */ - onlyForStaff?: InputMaybe; + onlyForStaff?: InputMaybe; /** Products discounted by the voucher. */ - products?: InputMaybe>; + products?: InputMaybe>; /** * When set to 'True', each voucher code can be used only once; otherwise, codes can be used multiple times depending on `usageLimit`. * @@ -29687,19 +30370,19 @@ export type VoucherInput = { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - singleUse?: InputMaybe; + singleUse?: InputMaybe; /** Start date of the voucher in ISO 8601 format. */ - startDate?: InputMaybe; + startDate?: InputMaybe; /** Voucher type: PRODUCT, CATEGORY SHIPPING or ENTIRE_ORDER. */ type?: InputMaybe; /** Limit number of times this voucher can be used in total. */ - usageLimit?: InputMaybe; + usageLimit?: InputMaybe; /** * Variants discounted by the voucher. * * Added in Saleor 3.1. */ - variants?: InputMaybe>; + variants?: InputMaybe>; }; /** @@ -29709,24 +30392,25 @@ export type VoucherInput = { */ export type VoucherMetadataUpdated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; /** The voucher the event relates to. */ voucher: Maybe; }; + /** * Event sent when voucher metadata is updated. * * Added in Saleor 3.8. */ export type VoucherMetadataUpdatedVoucherArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; /** @@ -29751,33 +30435,33 @@ export type VoucherSortField = * * DEPRECATED: this field will be removed in Saleor 4.0. */ - | "CODE" + | 'CODE' /** Sort vouchers by end date. */ - | "END_DATE" + | 'END_DATE' /** * Sort vouchers by minimum spent amount. * * This option requires a channel filter to work as the values can vary between channels. */ - | "MINIMUM_SPENT_AMOUNT" + | 'MINIMUM_SPENT_AMOUNT' /** * Sort vouchers by name. * * Added in Saleor 3.18. */ - | "NAME" + | 'NAME' /** Sort vouchers by start date. */ - | "START_DATE" + | 'START_DATE' /** Sort vouchers by type. */ - | "TYPE" + | 'TYPE' /** Sort vouchers by usage limit. */ - | "USAGE_LIMIT" + | 'USAGE_LIMIT' /** * Sort vouchers by value. * * This option requires a channel filter to work as the values can vary between channels. */ - | "VALUE"; + | 'VALUE'; export type VoucherSortingInput = { /** @@ -29785,7 +30469,7 @@ export type VoucherSortingInput = { * * DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead. */ - channel?: InputMaybe; + channel?: InputMaybe; /** Specifies the direction in which to sort vouchers. */ direction: OrderDirection; /** Sort vouchers by the selected field. */ @@ -29795,9 +30479,9 @@ export type VoucherSortingInput = { /** Represents voucher's original translatable fields and related translations. */ export type VoucherTranslatableContent = Node & { /** The ID of the voucher translatable content. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Voucher name to translate. */ - name: Maybe; + name: Maybe; /** Returns translated voucher fields for the given language code. */ translation: Maybe; /** @@ -29812,9 +30496,10 @@ export type VoucherTranslatableContent = Node & { * * Added in Saleor 3.14. */ - voucherId: Scalars["ID"]["output"]; + voucherId: Scalars['ID']['output']; }; + /** Represents voucher's original translatable fields and related translations. */ export type VoucherTranslatableContentTranslationArgs = { languageCode: LanguageCodeEnum; @@ -29835,11 +30520,11 @@ export type VoucherTranslate = { /** Represents voucher translations. */ export type VoucherTranslation = Node & { /** The ID of the voucher translation. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Translation language. */ language: LanguageDisplay; /** Translated voucher name. */ - name: Maybe; + name: Maybe; /** * Represents the voucher fields to translate. * @@ -29848,7 +30533,10 @@ export type VoucherTranslation = Node & { translatableContent: Maybe; }; -export type VoucherTypeEnum = "ENTIRE_ORDER" | "SHIPPING" | "SPECIFIC_PRODUCT"; +export type VoucherTypeEnum = + | 'ENTIRE_ORDER' + | 'SHIPPING' + | 'SPECIFIC_PRODUCT'; /** * Updates a voucher. @@ -29873,152 +30561,161 @@ export type VoucherUpdate = { */ export type VoucherUpdated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; /** The voucher the event relates to. */ voucher: Maybe; }; + /** * Event sent when voucher is updated. * * Added in Saleor 3.4. */ export type VoucherUpdatedVoucherArgs = { - channel?: InputMaybe; + channel?: InputMaybe; }; /** Represents warehouse. */ -export type Warehouse = Node & - ObjectWithMetadata & { - /** Address of the warehouse. */ - address: Address; - /** - * Click and collect options: local, all or disabled. - * - * Added in Saleor 3.1. - */ - clickAndCollectOption: WarehouseClickAndCollectOptionEnum; - /** - * Warehouse company name. - * @deprecated This field will be removed in Saleor 4.0. Use `Address.companyName` instead. - */ - companyName: Scalars["String"]["output"]; - /** Warehouse email. */ - email: Scalars["String"]["output"]; - /** - * External ID of this warehouse. - * - * Added in Saleor 3.10. - */ - externalReference: Maybe; - /** The ID of the warehouse. */ - id: Scalars["ID"]["output"]; - /** Determine if the warehouse is private. */ - isPrivate: Scalars["Boolean"]["output"]; - /** List of public metadata items. Can be accessed without permissions. */ - metadata: Array; - /** - * A single key from public metadata. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - metafield: Maybe; - /** - * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - metafields: Maybe; - /** Warehouse name. */ - name: Scalars["String"]["output"]; - /** List of private metadata items. Requires staff permissions to access. */ - privateMetadata: Array; - /** - * A single key from private metadata. Requires staff permissions to access. - * - * Tip: Use GraphQL aliases to fetch multiple keys. - * - * Added in Saleor 3.3. - */ - privateMetafield: Maybe; - /** - * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. - * - * Added in Saleor 3.3. - */ - privateMetafields: Maybe; - /** Shipping zones supported by the warehouse. */ - shippingZones: ShippingZoneCountableConnection; - /** Warehouse slug. */ - slug: Scalars["String"]["output"]; - /** - * Stocks that belong to this warehouse. - * - * Added in Saleor 3.20. - * - * Requires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS. - */ - stocks: Maybe; - }; +export type Warehouse = Node & ObjectWithMetadata & { + /** Address of the warehouse. */ + address: Address; + /** + * Click and collect options: local, all or disabled. + * + * Added in Saleor 3.1. + */ + clickAndCollectOption: WarehouseClickAndCollectOptionEnum; + /** + * Warehouse company name. + * @deprecated This field will be removed in Saleor 4.0. Use `Address.companyName` instead. + */ + companyName: Scalars['String']['output']; + /** Warehouse email. */ + email: Scalars['String']['output']; + /** + * External ID of this warehouse. + * + * Added in Saleor 3.10. + */ + externalReference: Maybe; + /** The ID of the warehouse. */ + id: Scalars['ID']['output']; + /** Determine if the warehouse is private. */ + isPrivate: Scalars['Boolean']['output']; + /** List of public metadata items. Can be accessed without permissions. */ + metadata: Array; + /** + * A single key from public metadata. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + metafield: Maybe; + /** + * Public metadata. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + metafields: Maybe; + /** Warehouse name. */ + name: Scalars['String']['output']; + /** List of private metadata items. Requires staff permissions to access. */ + privateMetadata: Array; + /** + * A single key from private metadata. Requires staff permissions to access. + * + * Tip: Use GraphQL aliases to fetch multiple keys. + * + * Added in Saleor 3.3. + */ + privateMetafield: Maybe; + /** + * Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. + * + * Added in Saleor 3.3. + */ + privateMetafields: Maybe; + /** Shipping zones supported by the warehouse. */ + shippingZones: ShippingZoneCountableConnection; + /** Warehouse slug. */ + slug: Scalars['String']['output']; + /** + * Stocks that belong to this warehouse. + * + * Added in Saleor 3.20. + * + * Requires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS. + */ + stocks: Maybe; +}; + /** Represents warehouse. */ export type WarehouseMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents warehouse. */ export type WarehouseMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Represents warehouse. */ export type WarehousePrivateMetafieldArgs = { - key: Scalars["String"]["input"]; + key: Scalars['String']['input']; }; + /** Represents warehouse. */ export type WarehousePrivateMetafieldsArgs = { - keys?: InputMaybe>; + keys?: InputMaybe>; }; + /** Represents warehouse. */ export type WarehouseShippingZonesArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; + /** Represents warehouse. */ export type WarehouseStocksArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; /** An enumeration. */ -export type WarehouseClickAndCollectOptionEnum = "ALL" | "DISABLED" | "LOCAL"; +export type WarehouseClickAndCollectOptionEnum = + | 'ALL' + | 'DISABLED' + | 'LOCAL'; export type WarehouseCountableConnection = { edges: Array; /** Pagination data for this connection. */ pageInfo: PageInfo; /** A total count of items in the collection. */ - totalCount: Maybe; + totalCount: Maybe; }; export type WarehouseCountableEdge = { /** A cursor for use in pagination. */ - cursor: Scalars["String"]["output"]; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node: Warehouse; }; @@ -30039,23 +30736,23 @@ export type WarehouseCreateInput = { /** Address of the warehouse. */ address: AddressInput; /** The email address of the warehouse. */ - email?: InputMaybe; + email?: InputMaybe; /** * External ID of the warehouse. * * Added in Saleor 3.10. */ - externalReference?: InputMaybe; + externalReference?: InputMaybe; /** Warehouse name. */ - name: Scalars["String"]["input"]; + name: Scalars['String']['input']; /** * Shipping zones supported by the warehouse. * * DEPRECATED: this field will be removed in Saleor 4.0. Providing the zone ids will raise a ValidationError. */ - shippingZones?: InputMaybe>; + shippingZones?: InputMaybe>; /** Warehouse slug. */ - slug?: InputMaybe; + slug?: InputMaybe; }; /** @@ -30065,13 +30762,13 @@ export type WarehouseCreateInput = { */ export type WarehouseCreated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; /** The warehouse the event relates to. */ warehouse: Maybe; }; @@ -30095,13 +30792,13 @@ export type WarehouseDelete = { */ export type WarehouseDeleted = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; /** The warehouse the event relates to. */ warehouse: Maybe; }; @@ -30110,30 +30807,30 @@ export type WarehouseError = { /** The error code. */ code: WarehouseErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; /** List of shipping zones IDs which causes the error. */ - shippingZones: Maybe>; + shippingZones: Maybe>; }; /** An enumeration. */ export type WarehouseErrorCode = - | "ALREADY_EXISTS" - | "GRAPHQL_ERROR" - | "INVALID" - | "NOT_FOUND" - | "REQUIRED" - | "UNIQUE"; + | 'ALREADY_EXISTS' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'REQUIRED' + | 'UNIQUE'; export type WarehouseFilterInput = { - channels?: InputMaybe>; + channels?: InputMaybe>; clickAndCollectOption?: InputMaybe; - ids?: InputMaybe>; - isPrivate?: InputMaybe; + ids?: InputMaybe>; + isPrivate?: InputMaybe; metadata?: InputMaybe>; - search?: InputMaybe; - slugs?: InputMaybe>; + search?: InputMaybe; + slugs?: InputMaybe>; }; /** @@ -30143,13 +30840,13 @@ export type WarehouseFilterInput = { */ export type WarehouseMetadataUpdated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; /** The warehouse the event relates to. */ warehouse: Maybe; }; @@ -30180,7 +30877,7 @@ export type WarehouseShippingZoneUnassign = { export type WarehouseSortField = /** Sort warehouses by name. */ - "NAME"; + | 'NAME'; export type WarehouseSortingInput = { /** Specifies the direction in which to sort warehouses. */ @@ -30211,23 +30908,23 @@ export type WarehouseUpdateInput = { */ clickAndCollectOption?: InputMaybe; /** The email address of the warehouse. */ - email?: InputMaybe; + email?: InputMaybe; /** * External ID of the warehouse. * * Added in Saleor 3.10. */ - externalReference?: InputMaybe; + externalReference?: InputMaybe; /** * Visibility of warehouse stocks. * * Added in Saleor 3.1. */ - isPrivate?: InputMaybe; + isPrivate?: InputMaybe; /** Warehouse name. */ - name?: InputMaybe; + name?: InputMaybe; /** Warehouse slug. */ - slug?: InputMaybe; + slug?: InputMaybe; }; /** @@ -30237,13 +30934,13 @@ export type WarehouseUpdateInput = { */ export type WarehouseUpdated = Event & { /** Time of the event. */ - issuedAt: Maybe; + issuedAt: Maybe; /** The user or application that triggered the event. */ issuingPrincipal: Maybe; /** The application receiving the webhook. */ recipient: Maybe; /** Saleor version that triggered the event. */ - version: Maybe; + version: Maybe; /** The warehouse the event relates to. */ warehouse: Maybe; }; @@ -30261,7 +30958,7 @@ export type Webhook = Node & { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - customHeaders: Maybe; + customHeaders: Maybe; /** Event deliveries. */ eventDeliveries: Maybe; /** @@ -30270,31 +30967,32 @@ export type Webhook = Node & { */ events: Array; /** The ID of webhook. */ - id: Scalars["ID"]["output"]; + id: Scalars['ID']['output']; /** Informs if webhook is activated. */ - isActive: Scalars["Boolean"]["output"]; + isActive: Scalars['Boolean']['output']; /** The name of webhook. */ - name: Maybe; + name: Maybe; /** * Used to create a hash signature for each payload. * @deprecated This field will be removed in Saleor 4.0. As of Saleor 3.5, webhook payloads default to signing using a verifiable JWS. */ - secretKey: Maybe; + secretKey: Maybe; /** Used to define payloads for specific events. */ - subscriptionQuery: Maybe; + subscriptionQuery: Maybe; /** List of synchronous webhook events. */ syncEvents: Array; /** Target URL for webhook. */ - targetUrl: Scalars["String"]["output"]; + targetUrl: Scalars['String']['output']; }; + /** Webhook. */ export type WebhookEventDeliveriesArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; filter?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; sortBy?: InputMaybe; }; @@ -30312,7 +31010,7 @@ export type WebhookCreate = { export type WebhookCreateInput = { /** ID of the app to which webhook belongs. */ - app?: InputMaybe; + app?: InputMaybe; /** The asynchronous events that webhook wants to subscribe. */ asyncEvents?: InputMaybe>; /** @@ -30322,7 +31020,7 @@ export type WebhookCreateInput = { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - customHeaders?: InputMaybe; + customHeaders?: InputMaybe; /** * The events that webhook wants to subscribe. * @@ -30330,25 +31028,25 @@ export type WebhookCreateInput = { */ events?: InputMaybe>; /** Determine if webhook will be set active or not. */ - isActive?: InputMaybe; + isActive?: InputMaybe; /** The name of the webhook. */ - name?: InputMaybe; + name?: InputMaybe; /** * Subscription query used to define a webhook payload. * * Added in Saleor 3.2. */ - query?: InputMaybe; + query?: InputMaybe; /** * The secret key used to create a hash signature with each payload. * * DEPRECATED: this field will be removed in Saleor 4.0. As of Saleor 3.5, webhook payloads default to signing using a verifiable JWS. */ - secretKey?: InputMaybe; + secretKey?: InputMaybe; /** The synchronous events that webhook wants to subscribe. */ syncEvents?: InputMaybe>; /** The url to receive the payload. */ - targetUrl?: InputMaybe; + targetUrl?: InputMaybe; }; /** @@ -30375,60 +31073,60 @@ export type WebhookDelete = { export type WebhookDryRun = { errors: Array; /** JSON payload, that would be sent out to webhook's target URL. */ - payload: Maybe; + payload: Maybe; }; export type WebhookDryRunError = { /** The error code. */ code: WebhookDryRunErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type WebhookDryRunErrorCode = - | "GRAPHQL_ERROR" - | "INVALID_ID" - | "MISSING_EVENT" - | "MISSING_PERMISSION" - | "MISSING_SUBSCRIPTION" - | "NOT_FOUND" - | "SYNTAX" - | "TYPE_NOT_SUPPORTED" - | "UNABLE_TO_PARSE"; + | 'GRAPHQL_ERROR' + | 'INVALID_ID' + | 'MISSING_EVENT' + | 'MISSING_PERMISSION' + | 'MISSING_SUBSCRIPTION' + | 'NOT_FOUND' + | 'SYNTAX' + | 'TYPE_NOT_SUPPORTED' + | 'UNABLE_TO_PARSE'; export type WebhookError = { /** The error code. */ code: WebhookErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type WebhookErrorCode = - | "DELETE_FAILED" - | "GRAPHQL_ERROR" - | "INVALID" - | "INVALID_CUSTOM_HEADERS" - | "INVALID_NOTIFY_WITH_SUBSCRIPTION" - | "MISSING_EVENT" - | "MISSING_SUBSCRIPTION" - | "NOT_FOUND" - | "REQUIRED" - | "SYNTAX" - | "UNABLE_TO_PARSE" - | "UNIQUE"; + | 'DELETE_FAILED' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'INVALID_CUSTOM_HEADERS' + | 'INVALID_NOTIFY_WITH_SUBSCRIPTION' + | 'MISSING_EVENT' + | 'MISSING_SUBSCRIPTION' + | 'NOT_FOUND' + | 'REQUIRED' + | 'SYNTAX' + | 'UNABLE_TO_PARSE' + | 'UNIQUE'; /** Webhook event. */ export type WebhookEvent = { /** Internal name of the event type. */ eventType: WebhookEventTypeEnum; /** Display name of the event. */ - name: Scalars["String"]["output"]; + name: Scalars['String']['output']; }; /** Asynchronous webhook event. */ @@ -30436,7 +31134,7 @@ export type WebhookEventAsync = { /** Internal name of the event type. */ eventType: WebhookEventTypeAsyncEnum; /** Display name of the event. */ - name: Scalars["String"]["output"]; + name: Scalars['String']['output']; }; /** Synchronous webhook event. */ @@ -30444,143 +31142,143 @@ export type WebhookEventSync = { /** Internal name of the event type. */ eventType: WebhookEventTypeSyncEnum; /** Display name of the event. */ - name: Scalars["String"]["output"]; + name: Scalars['String']['output']; }; /** Enum determining type of webhook. */ export type WebhookEventTypeAsyncEnum = /** An account email change is requested. */ - | "ACCOUNT_CHANGE_EMAIL_REQUESTED" + | 'ACCOUNT_CHANGE_EMAIL_REQUESTED' /** An account confirmation is requested. */ - | "ACCOUNT_CONFIRMATION_REQUESTED" + | 'ACCOUNT_CONFIRMATION_REQUESTED' /** An account is confirmed. */ - | "ACCOUNT_CONFIRMED" + | 'ACCOUNT_CONFIRMED' /** An account is deleted. */ - | "ACCOUNT_DELETED" + | 'ACCOUNT_DELETED' /** An account delete is requested. */ - | "ACCOUNT_DELETE_REQUESTED" + | 'ACCOUNT_DELETE_REQUESTED' /** An account email was changed */ - | "ACCOUNT_EMAIL_CHANGED" + | 'ACCOUNT_EMAIL_CHANGED' /** Setting a new password for the account is requested. */ - | "ACCOUNT_SET_PASSWORD_REQUESTED" + | 'ACCOUNT_SET_PASSWORD_REQUESTED' /** A new address created. */ - | "ADDRESS_CREATED" + | 'ADDRESS_CREATED' /** An address deleted. */ - | "ADDRESS_DELETED" + | 'ADDRESS_DELETED' /** An address updated. */ - | "ADDRESS_UPDATED" + | 'ADDRESS_UPDATED' /** * All the events. * * DEPRECATED: this value will be removed in Saleor 4.0. */ - | "ANY_EVENTS" + | 'ANY_EVENTS' /** An app deleted. */ - | "APP_DELETED" + | 'APP_DELETED' /** A new app installed. */ - | "APP_INSTALLED" + | 'APP_INSTALLED' /** An app status is changed. */ - | "APP_STATUS_CHANGED" + | 'APP_STATUS_CHANGED' /** An app updated. */ - | "APP_UPDATED" + | 'APP_UPDATED' /** A new attribute is created. */ - | "ATTRIBUTE_CREATED" + | 'ATTRIBUTE_CREATED' /** An attribute is deleted. */ - | "ATTRIBUTE_DELETED" + | 'ATTRIBUTE_DELETED' /** An attribute is updated. */ - | "ATTRIBUTE_UPDATED" + | 'ATTRIBUTE_UPDATED' /** A new attribute value is created. */ - | "ATTRIBUTE_VALUE_CREATED" + | 'ATTRIBUTE_VALUE_CREATED' /** An attribute value is deleted. */ - | "ATTRIBUTE_VALUE_DELETED" + | 'ATTRIBUTE_VALUE_DELETED' /** An attribute value is updated. */ - | "ATTRIBUTE_VALUE_UPDATED" + | 'ATTRIBUTE_VALUE_UPDATED' /** A new category created. */ - | "CATEGORY_CREATED" + | 'CATEGORY_CREATED' /** A category is deleted. */ - | "CATEGORY_DELETED" + | 'CATEGORY_DELETED' /** A category is updated. */ - | "CATEGORY_UPDATED" + | 'CATEGORY_UPDATED' /** A new channel created. */ - | "CHANNEL_CREATED" + | 'CHANNEL_CREATED' /** A channel is deleted. */ - | "CHANNEL_DELETED" + | 'CHANNEL_DELETED' /** A channel metadata is updated. */ - | "CHANNEL_METADATA_UPDATED" + | 'CHANNEL_METADATA_UPDATED' /** A channel status is changed. */ - | "CHANNEL_STATUS_CHANGED" + | 'CHANNEL_STATUS_CHANGED' /** A channel is updated. */ - | "CHANNEL_UPDATED" + | 'CHANNEL_UPDATED' /** A new checkout is created. */ - | "CHECKOUT_CREATED" - | "CHECKOUT_FULLY_PAID" + | 'CHECKOUT_CREATED' + | 'CHECKOUT_FULLY_PAID' /** * A checkout metadata is updated. * * Added in Saleor 3.8. */ - | "CHECKOUT_METADATA_UPDATED" + | 'CHECKOUT_METADATA_UPDATED' /** A checkout is updated. It also triggers all updates related to the checkout. */ - | "CHECKOUT_UPDATED" + | 'CHECKOUT_UPDATED' /** A new collection is created. */ - | "COLLECTION_CREATED" + | 'COLLECTION_CREATED' /** A collection is deleted. */ - | "COLLECTION_DELETED" + | 'COLLECTION_DELETED' /** * A collection metadata is updated. * * Added in Saleor 3.8. */ - | "COLLECTION_METADATA_UPDATED" + | 'COLLECTION_METADATA_UPDATED' /** A collection is updated. */ - | "COLLECTION_UPDATED" + | 'COLLECTION_UPDATED' /** A new customer account is created. */ - | "CUSTOMER_CREATED" + | 'CUSTOMER_CREATED' /** A customer account is deleted. */ - | "CUSTOMER_DELETED" + | 'CUSTOMER_DELETED' /** * A customer account metadata is updated. * * Added in Saleor 3.8. */ - | "CUSTOMER_METADATA_UPDATED" + | 'CUSTOMER_METADATA_UPDATED' /** A customer account is updated. */ - | "CUSTOMER_UPDATED" + | 'CUSTOMER_UPDATED' /** A draft order is created. */ - | "DRAFT_ORDER_CREATED" + | 'DRAFT_ORDER_CREATED' /** A draft order is deleted. */ - | "DRAFT_ORDER_DELETED" + | 'DRAFT_ORDER_DELETED' /** A draft order is updated. */ - | "DRAFT_ORDER_UPDATED" + | 'DRAFT_ORDER_UPDATED' /** A fulfillment is approved. */ - | "FULFILLMENT_APPROVED" + | 'FULFILLMENT_APPROVED' /** A fulfillment is cancelled. */ - | "FULFILLMENT_CANCELED" + | 'FULFILLMENT_CANCELED' /** A new fulfillment is created. */ - | "FULFILLMENT_CREATED" + | 'FULFILLMENT_CREATED' /** * A fulfillment metadata is updated. * * Added in Saleor 3.8. */ - | "FULFILLMENT_METADATA_UPDATED" - | "FULFILLMENT_TRACKING_NUMBER_UPDATED" + | 'FULFILLMENT_METADATA_UPDATED' + | 'FULFILLMENT_TRACKING_NUMBER_UPDATED' /** A new gift card created. */ - | "GIFT_CARD_CREATED" + | 'GIFT_CARD_CREATED' /** A gift card is deleted. */ - | "GIFT_CARD_DELETED" + | 'GIFT_CARD_DELETED' /** * A gift card export is completed. * * Added in Saleor 3.16. */ - | "GIFT_CARD_EXPORT_COMPLETED" + | 'GIFT_CARD_EXPORT_COMPLETED' /** * A gift card metadata is updated. * * Added in Saleor 3.8. */ - | "GIFT_CARD_METADATA_UPDATED" + | 'GIFT_CARD_METADATA_UPDATED' /** * A gift card has been sent. * @@ -30588,37 +31286,37 @@ export type WebhookEventTypeAsyncEnum = * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - | "GIFT_CARD_SENT" + | 'GIFT_CARD_SENT' /** A gift card status is changed. */ - | "GIFT_CARD_STATUS_CHANGED" + | 'GIFT_CARD_STATUS_CHANGED' /** A gift card is updated. */ - | "GIFT_CARD_UPDATED" + | 'GIFT_CARD_UPDATED' /** An invoice is deleted. */ - | "INVOICE_DELETED" + | 'INVOICE_DELETED' /** An invoice for order requested. */ - | "INVOICE_REQUESTED" + | 'INVOICE_REQUESTED' /** Invoice has been sent. */ - | "INVOICE_SENT" + | 'INVOICE_SENT' /** A new menu created. */ - | "MENU_CREATED" + | 'MENU_CREATED' /** A menu is deleted. */ - | "MENU_DELETED" + | 'MENU_DELETED' /** A new menu item created. */ - | "MENU_ITEM_CREATED" + | 'MENU_ITEM_CREATED' /** A menu item is deleted. */ - | "MENU_ITEM_DELETED" + | 'MENU_ITEM_DELETED' /** A menu item is updated. */ - | "MENU_ITEM_UPDATED" + | 'MENU_ITEM_UPDATED' /** A menu is updated. */ - | "MENU_UPDATED" + | 'MENU_UPDATED' /** * User notification triggered. * * DEPRECATED: this value will be removed in Saleor 4.0. See the docs for more details about migrating from NOTIFY_USER to other events: https://docs.saleor.io/docs/next/upgrade-guides/notify-user-deprecation */ - | "NOTIFY_USER" + | 'NOTIFY_USER' /** An observability event is created. */ - | "OBSERVABILITY" + | 'OBSERVABILITY' /** * Orders are imported. * @@ -30626,19 +31324,19 @@ export type WebhookEventTypeAsyncEnum = * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - | "ORDER_BULK_CREATED" + | 'ORDER_BULK_CREATED' /** An order is cancelled. */ - | "ORDER_CANCELLED" + | 'ORDER_CANCELLED' /** An order is confirmed (status change unconfirmed -> unfulfilled) by a staff user using the OrderConfirm mutation. It also triggers when the user completes the checkout and the shop setting `automatically_confirm_all_new_orders` is enabled. */ - | "ORDER_CONFIRMED" + | 'ORDER_CONFIRMED' /** A new order is placed. */ - | "ORDER_CREATED" + | 'ORDER_CREATED' /** An order is expired. */ - | "ORDER_EXPIRED" + | 'ORDER_EXPIRED' /** An order is fulfilled. */ - | "ORDER_FULFILLED" + | 'ORDER_FULFILLED' /** Payment is made and an order is fully paid. */ - | "ORDER_FULLY_PAID" + | 'ORDER_FULLY_PAID' /** * The order is fully refunded. * @@ -30646,13 +31344,13 @@ export type WebhookEventTypeAsyncEnum = * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - | "ORDER_FULLY_REFUNDED" + | 'ORDER_FULLY_REFUNDED' /** * An order metadata is updated. * * Added in Saleor 3.8. */ - | "ORDER_METADATA_UPDATED" + | 'ORDER_METADATA_UPDATED' /** * Payment has been made. The order may be partially or fully paid. * @@ -30660,7 +31358,7 @@ export type WebhookEventTypeAsyncEnum = * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - | "ORDER_PAID" + | 'ORDER_PAID' /** * The order received a refund. The order may be partially or fully refunded. * @@ -30668,328 +31366,328 @@ export type WebhookEventTypeAsyncEnum = * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - | "ORDER_REFUNDED" + | 'ORDER_REFUNDED' /** An order is updated; triggered for all changes related to an order; covers all other order webhooks, except for ORDER_CREATED. */ - | "ORDER_UPDATED" + | 'ORDER_UPDATED' /** A new page is created. */ - | "PAGE_CREATED" + | 'PAGE_CREATED' /** A page is deleted. */ - | "PAGE_DELETED" + | 'PAGE_DELETED' /** A new page type is created. */ - | "PAGE_TYPE_CREATED" + | 'PAGE_TYPE_CREATED' /** A page type is deleted. */ - | "PAGE_TYPE_DELETED" + | 'PAGE_TYPE_DELETED' /** A page type is updated. */ - | "PAGE_TYPE_UPDATED" + | 'PAGE_TYPE_UPDATED' /** A page is updated. */ - | "PAGE_UPDATED" + | 'PAGE_UPDATED' /** A new permission group is created. */ - | "PERMISSION_GROUP_CREATED" + | 'PERMISSION_GROUP_CREATED' /** A permission group is deleted. */ - | "PERMISSION_GROUP_DELETED" + | 'PERMISSION_GROUP_DELETED' /** A permission group is updated. */ - | "PERMISSION_GROUP_UPDATED" + | 'PERMISSION_GROUP_UPDATED' /** A new product is created. */ - | "PRODUCT_CREATED" + | 'PRODUCT_CREATED' /** A product is deleted. */ - | "PRODUCT_DELETED" + | 'PRODUCT_DELETED' /** * A product export is completed. * * Added in Saleor 3.16. */ - | "PRODUCT_EXPORT_COMPLETED" + | 'PRODUCT_EXPORT_COMPLETED' /** * A new product media is created. * * Added in Saleor 3.12. */ - | "PRODUCT_MEDIA_CREATED" + | 'PRODUCT_MEDIA_CREATED' /** * A product media is deleted. * * Added in Saleor 3.12. */ - | "PRODUCT_MEDIA_DELETED" + | 'PRODUCT_MEDIA_DELETED' /** * A product media is updated. * * Added in Saleor 3.12. */ - | "PRODUCT_MEDIA_UPDATED" + | 'PRODUCT_MEDIA_UPDATED' /** * A product metadata is updated. * * Added in Saleor 3.8. */ - | "PRODUCT_METADATA_UPDATED" + | 'PRODUCT_METADATA_UPDATED' /** A product is updated. */ - | "PRODUCT_UPDATED" + | 'PRODUCT_UPDATED' /** A product variant is back in stock. */ - | "PRODUCT_VARIANT_BACK_IN_STOCK" + | 'PRODUCT_VARIANT_BACK_IN_STOCK' /** A new product variant is created. */ - | "PRODUCT_VARIANT_CREATED" + | 'PRODUCT_VARIANT_CREATED' /** A product variant is deleted. Warning: this event will not be executed when parent product has been deleted. Check PRODUCT_DELETED. */ - | "PRODUCT_VARIANT_DELETED" + | 'PRODUCT_VARIANT_DELETED' /** * A product variant metadata is updated. * * Added in Saleor 3.8. */ - | "PRODUCT_VARIANT_METADATA_UPDATED" + | 'PRODUCT_VARIANT_METADATA_UPDATED' /** A product variant is out of stock. */ - | "PRODUCT_VARIANT_OUT_OF_STOCK" + | 'PRODUCT_VARIANT_OUT_OF_STOCK' /** A product variant stock is updated */ - | "PRODUCT_VARIANT_STOCK_UPDATED" + | 'PRODUCT_VARIANT_STOCK_UPDATED' /** A product variant is updated. */ - | "PRODUCT_VARIANT_UPDATED" + | 'PRODUCT_VARIANT_UPDATED' /** A promotion is created. */ - | "PROMOTION_CREATED" + | 'PROMOTION_CREATED' /** A promotion is deleted. */ - | "PROMOTION_DELETED" + | 'PROMOTION_DELETED' /** A promotion is deactivated. */ - | "PROMOTION_ENDED" + | 'PROMOTION_ENDED' /** A promotion rule is created. */ - | "PROMOTION_RULE_CREATED" + | 'PROMOTION_RULE_CREATED' /** A promotion rule is deleted. */ - | "PROMOTION_RULE_DELETED" + | 'PROMOTION_RULE_DELETED' /** A promotion rule is updated. */ - | "PROMOTION_RULE_UPDATED" + | 'PROMOTION_RULE_UPDATED' /** A promotion is activated. */ - | "PROMOTION_STARTED" + | 'PROMOTION_STARTED' /** A promotion is updated. */ - | "PROMOTION_UPDATED" + | 'PROMOTION_UPDATED' /** A sale is created. */ - | "SALE_CREATED" + | 'SALE_CREATED' /** A sale is deleted. */ - | "SALE_DELETED" + | 'SALE_DELETED' /** A sale is activated or deactivated. */ - | "SALE_TOGGLE" + | 'SALE_TOGGLE' /** A sale is updated. */ - | "SALE_UPDATED" + | 'SALE_UPDATED' /** A new shipping price is created. */ - | "SHIPPING_PRICE_CREATED" + | 'SHIPPING_PRICE_CREATED' /** A shipping price is deleted. */ - | "SHIPPING_PRICE_DELETED" + | 'SHIPPING_PRICE_DELETED' /** A shipping price is updated. */ - | "SHIPPING_PRICE_UPDATED" + | 'SHIPPING_PRICE_UPDATED' /** A new shipping zone is created. */ - | "SHIPPING_ZONE_CREATED" + | 'SHIPPING_ZONE_CREATED' /** A shipping zone is deleted. */ - | "SHIPPING_ZONE_DELETED" + | 'SHIPPING_ZONE_DELETED' /** * A shipping zone metadata is updated. * * Added in Saleor 3.8. */ - | "SHIPPING_ZONE_METADATA_UPDATED" + | 'SHIPPING_ZONE_METADATA_UPDATED' /** A shipping zone is updated. */ - | "SHIPPING_ZONE_UPDATED" + | 'SHIPPING_ZONE_UPDATED' /** * Shop metadata is updated. * * Added in Saleor 3.15. */ - | "SHOP_METADATA_UPDATED" + | 'SHOP_METADATA_UPDATED' /** A new staff user is created. */ - | "STAFF_CREATED" + | 'STAFF_CREATED' /** A staff user is deleted. */ - | "STAFF_DELETED" + | 'STAFF_DELETED' /** Setting a new password for the staff account is requested. */ - | "STAFF_SET_PASSWORD_REQUESTED" + | 'STAFF_SET_PASSWORD_REQUESTED' /** A staff user is updated. */ - | "STAFF_UPDATED" + | 'STAFF_UPDATED' /** * A thumbnail is created. * * Added in Saleor 3.12. */ - | "THUMBNAIL_CREATED" + | 'THUMBNAIL_CREATED' /** * Transaction item metadata is updated. * * Added in Saleor 3.8. */ - | "TRANSACTION_ITEM_METADATA_UPDATED" + | 'TRANSACTION_ITEM_METADATA_UPDATED' /** A new translation is created. */ - | "TRANSLATION_CREATED" + | 'TRANSLATION_CREATED' /** A translation is updated. */ - | "TRANSLATION_UPDATED" - | "VOUCHER_CODES_CREATED" - | "VOUCHER_CODES_DELETED" + | 'TRANSLATION_UPDATED' + | 'VOUCHER_CODES_CREATED' + | 'VOUCHER_CODES_DELETED' /** * A voucher code export is completed. * * Added in Saleor 3.18. */ - | "VOUCHER_CODE_EXPORT_COMPLETED" + | 'VOUCHER_CODE_EXPORT_COMPLETED' /** A new voucher created. */ - | "VOUCHER_CREATED" + | 'VOUCHER_CREATED' /** A voucher is deleted. */ - | "VOUCHER_DELETED" + | 'VOUCHER_DELETED' /** * A voucher metadata is updated. * * Added in Saleor 3.8. */ - | "VOUCHER_METADATA_UPDATED" + | 'VOUCHER_METADATA_UPDATED' /** A voucher is updated. */ - | "VOUCHER_UPDATED" + | 'VOUCHER_UPDATED' /** A new warehouse created. */ - | "WAREHOUSE_CREATED" + | 'WAREHOUSE_CREATED' /** A warehouse is deleted. */ - | "WAREHOUSE_DELETED" + | 'WAREHOUSE_DELETED' /** * A warehouse metadata is updated. * * Added in Saleor 3.8. */ - | "WAREHOUSE_METADATA_UPDATED" + | 'WAREHOUSE_METADATA_UPDATED' /** A warehouse is updated. */ - | "WAREHOUSE_UPDATED"; + | 'WAREHOUSE_UPDATED'; /** Enum determining type of webhook. */ export type WebhookEventTypeEnum = /** An account email change is requested. */ - | "ACCOUNT_CHANGE_EMAIL_REQUESTED" + | 'ACCOUNT_CHANGE_EMAIL_REQUESTED' /** An account confirmation is requested. */ - | "ACCOUNT_CONFIRMATION_REQUESTED" + | 'ACCOUNT_CONFIRMATION_REQUESTED' /** An account is confirmed. */ - | "ACCOUNT_CONFIRMED" + | 'ACCOUNT_CONFIRMED' /** An account is deleted. */ - | "ACCOUNT_DELETED" + | 'ACCOUNT_DELETED' /** An account delete is requested. */ - | "ACCOUNT_DELETE_REQUESTED" + | 'ACCOUNT_DELETE_REQUESTED' /** An account email was changed */ - | "ACCOUNT_EMAIL_CHANGED" + | 'ACCOUNT_EMAIL_CHANGED' /** Setting a new password for the account is requested. */ - | "ACCOUNT_SET_PASSWORD_REQUESTED" + | 'ACCOUNT_SET_PASSWORD_REQUESTED' /** A new address created. */ - | "ADDRESS_CREATED" + | 'ADDRESS_CREATED' /** An address deleted. */ - | "ADDRESS_DELETED" + | 'ADDRESS_DELETED' /** An address updated. */ - | "ADDRESS_UPDATED" + | 'ADDRESS_UPDATED' /** * All the events. * * DEPRECATED: this value will be removed in Saleor 4.0. */ - | "ANY_EVENTS" + | 'ANY_EVENTS' /** An app deleted. */ - | "APP_DELETED" + | 'APP_DELETED' /** A new app installed. */ - | "APP_INSTALLED" + | 'APP_INSTALLED' /** An app status is changed. */ - | "APP_STATUS_CHANGED" + | 'APP_STATUS_CHANGED' /** An app updated. */ - | "APP_UPDATED" + | 'APP_UPDATED' /** A new attribute is created. */ - | "ATTRIBUTE_CREATED" + | 'ATTRIBUTE_CREATED' /** An attribute is deleted. */ - | "ATTRIBUTE_DELETED" + | 'ATTRIBUTE_DELETED' /** An attribute is updated. */ - | "ATTRIBUTE_UPDATED" + | 'ATTRIBUTE_UPDATED' /** A new attribute value is created. */ - | "ATTRIBUTE_VALUE_CREATED" + | 'ATTRIBUTE_VALUE_CREATED' /** An attribute value is deleted. */ - | "ATTRIBUTE_VALUE_DELETED" + | 'ATTRIBUTE_VALUE_DELETED' /** An attribute value is updated. */ - | "ATTRIBUTE_VALUE_UPDATED" + | 'ATTRIBUTE_VALUE_UPDATED' /** A new category created. */ - | "CATEGORY_CREATED" + | 'CATEGORY_CREATED' /** A category is deleted. */ - | "CATEGORY_DELETED" + | 'CATEGORY_DELETED' /** A category is updated. */ - | "CATEGORY_UPDATED" + | 'CATEGORY_UPDATED' /** A new channel created. */ - | "CHANNEL_CREATED" + | 'CHANNEL_CREATED' /** A channel is deleted. */ - | "CHANNEL_DELETED" + | 'CHANNEL_DELETED' /** A channel metadata is updated. */ - | "CHANNEL_METADATA_UPDATED" + | 'CHANNEL_METADATA_UPDATED' /** A channel status is changed. */ - | "CHANNEL_STATUS_CHANGED" + | 'CHANNEL_STATUS_CHANGED' /** A channel is updated. */ - | "CHANNEL_UPDATED" + | 'CHANNEL_UPDATED' /** * Event called for checkout tax calculation. * * Added in Saleor 3.6. */ - | "CHECKOUT_CALCULATE_TAXES" + | 'CHECKOUT_CALCULATE_TAXES' /** A new checkout is created. */ - | "CHECKOUT_CREATED" + | 'CHECKOUT_CREATED' /** Filter shipping methods for checkout. */ - | "CHECKOUT_FILTER_SHIPPING_METHODS" - | "CHECKOUT_FULLY_PAID" + | 'CHECKOUT_FILTER_SHIPPING_METHODS' + | 'CHECKOUT_FULLY_PAID' /** * A checkout metadata is updated. * * Added in Saleor 3.8. */ - | "CHECKOUT_METADATA_UPDATED" + | 'CHECKOUT_METADATA_UPDATED' /** A checkout is updated. It also triggers all updates related to the checkout. */ - | "CHECKOUT_UPDATED" + | 'CHECKOUT_UPDATED' /** A new collection is created. */ - | "COLLECTION_CREATED" + | 'COLLECTION_CREATED' /** A collection is deleted. */ - | "COLLECTION_DELETED" + | 'COLLECTION_DELETED' /** * A collection metadata is updated. * * Added in Saleor 3.8. */ - | "COLLECTION_METADATA_UPDATED" + | 'COLLECTION_METADATA_UPDATED' /** A collection is updated. */ - | "COLLECTION_UPDATED" + | 'COLLECTION_UPDATED' /** A new customer account is created. */ - | "CUSTOMER_CREATED" + | 'CUSTOMER_CREATED' /** A customer account is deleted. */ - | "CUSTOMER_DELETED" + | 'CUSTOMER_DELETED' /** * A customer account metadata is updated. * * Added in Saleor 3.8. */ - | "CUSTOMER_METADATA_UPDATED" + | 'CUSTOMER_METADATA_UPDATED' /** A customer account is updated. */ - | "CUSTOMER_UPDATED" + | 'CUSTOMER_UPDATED' /** A draft order is created. */ - | "DRAFT_ORDER_CREATED" + | 'DRAFT_ORDER_CREATED' /** A draft order is deleted. */ - | "DRAFT_ORDER_DELETED" + | 'DRAFT_ORDER_DELETED' /** A draft order is updated. */ - | "DRAFT_ORDER_UPDATED" + | 'DRAFT_ORDER_UPDATED' /** A fulfillment is approved. */ - | "FULFILLMENT_APPROVED" + | 'FULFILLMENT_APPROVED' /** A fulfillment is cancelled. */ - | "FULFILLMENT_CANCELED" + | 'FULFILLMENT_CANCELED' /** A new fulfillment is created. */ - | "FULFILLMENT_CREATED" + | 'FULFILLMENT_CREATED' /** * A fulfillment metadata is updated. * * Added in Saleor 3.8. */ - | "FULFILLMENT_METADATA_UPDATED" - | "FULFILLMENT_TRACKING_NUMBER_UPDATED" + | 'FULFILLMENT_METADATA_UPDATED' + | 'FULFILLMENT_TRACKING_NUMBER_UPDATED' /** A new gift card created. */ - | "GIFT_CARD_CREATED" + | 'GIFT_CARD_CREATED' /** A gift card is deleted. */ - | "GIFT_CARD_DELETED" + | 'GIFT_CARD_DELETED' /** * A gift card export is completed. * * Added in Saleor 3.16. */ - | "GIFT_CARD_EXPORT_COMPLETED" + | 'GIFT_CARD_EXPORT_COMPLETED' /** * A gift card metadata is updated. * * Added in Saleor 3.8. */ - | "GIFT_CARD_METADATA_UPDATED" + | 'GIFT_CARD_METADATA_UPDATED' /** * A gift card has been sent. * @@ -30997,38 +31695,38 @@ export type WebhookEventTypeEnum = * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - | "GIFT_CARD_SENT" + | 'GIFT_CARD_SENT' /** A gift card status is changed. */ - | "GIFT_CARD_STATUS_CHANGED" + | 'GIFT_CARD_STATUS_CHANGED' /** A gift card is updated. */ - | "GIFT_CARD_UPDATED" + | 'GIFT_CARD_UPDATED' /** An invoice is deleted. */ - | "INVOICE_DELETED" + | 'INVOICE_DELETED' /** An invoice for order requested. */ - | "INVOICE_REQUESTED" + | 'INVOICE_REQUESTED' /** Invoice has been sent. */ - | "INVOICE_SENT" - | "LIST_STORED_PAYMENT_METHODS" + | 'INVOICE_SENT' + | 'LIST_STORED_PAYMENT_METHODS' /** A new menu created. */ - | "MENU_CREATED" + | 'MENU_CREATED' /** A menu is deleted. */ - | "MENU_DELETED" + | 'MENU_DELETED' /** A new menu item created. */ - | "MENU_ITEM_CREATED" + | 'MENU_ITEM_CREATED' /** A menu item is deleted. */ - | "MENU_ITEM_DELETED" + | 'MENU_ITEM_DELETED' /** A menu item is updated. */ - | "MENU_ITEM_UPDATED" + | 'MENU_ITEM_UPDATED' /** A menu is updated. */ - | "MENU_UPDATED" + | 'MENU_UPDATED' /** * User notification triggered. * * DEPRECATED: this value will be removed in Saleor 4.0. See the docs for more details about migrating from NOTIFY_USER to other events: https://docs.saleor.io/docs/next/upgrade-guides/notify-user-deprecation */ - | "NOTIFY_USER" + | 'NOTIFY_USER' /** An observability event is created. */ - | "OBSERVABILITY" + | 'OBSERVABILITY' /** * Orders are imported. * @@ -31036,27 +31734,27 @@ export type WebhookEventTypeEnum = * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - | "ORDER_BULK_CREATED" + | 'ORDER_BULK_CREATED' /** * Event called for order tax calculation. * * Added in Saleor 3.6. */ - | "ORDER_CALCULATE_TAXES" + | 'ORDER_CALCULATE_TAXES' /** An order is cancelled. */ - | "ORDER_CANCELLED" + | 'ORDER_CANCELLED' /** An order is confirmed (status change unconfirmed -> unfulfilled) by a staff user using the OrderConfirm mutation. It also triggers when the user completes the checkout and the shop setting `automatically_confirm_all_new_orders` is enabled. */ - | "ORDER_CONFIRMED" + | 'ORDER_CONFIRMED' /** A new order is placed. */ - | "ORDER_CREATED" + | 'ORDER_CREATED' /** An order is expired. */ - | "ORDER_EXPIRED" + | 'ORDER_EXPIRED' /** Filter shipping methods for order. */ - | "ORDER_FILTER_SHIPPING_METHODS" + | 'ORDER_FILTER_SHIPPING_METHODS' /** An order is fulfilled. */ - | "ORDER_FULFILLED" + | 'ORDER_FULFILLED' /** Payment is made and an order is fully paid. */ - | "ORDER_FULLY_PAID" + | 'ORDER_FULLY_PAID' /** * The order is fully refunded. * @@ -31064,13 +31762,13 @@ export type WebhookEventTypeEnum = * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - | "ORDER_FULLY_REFUNDED" + | 'ORDER_FULLY_REFUNDED' /** * An order metadata is updated. * * Added in Saleor 3.8. */ - | "ORDER_METADATA_UPDATED" + | 'ORDER_METADATA_UPDATED' /** * Payment has been made. The order may be partially or fully paid. * @@ -31078,7 +31776,7 @@ export type WebhookEventTypeEnum = * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - | "ORDER_PAID" + | 'ORDER_PAID' /** * The order received a refund. The order may be partially or fully refunded. * @@ -31086,164 +31784,164 @@ export type WebhookEventTypeEnum = * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - | "ORDER_REFUNDED" + | 'ORDER_REFUNDED' /** An order is updated; triggered for all changes related to an order; covers all other order webhooks, except for ORDER_CREATED. */ - | "ORDER_UPDATED" + | 'ORDER_UPDATED' /** A new page is created. */ - | "PAGE_CREATED" + | 'PAGE_CREATED' /** A page is deleted. */ - | "PAGE_DELETED" + | 'PAGE_DELETED' /** A new page type is created. */ - | "PAGE_TYPE_CREATED" + | 'PAGE_TYPE_CREATED' /** A page type is deleted. */ - | "PAGE_TYPE_DELETED" + | 'PAGE_TYPE_DELETED' /** A page type is updated. */ - | "PAGE_TYPE_UPDATED" + | 'PAGE_TYPE_UPDATED' /** A page is updated. */ - | "PAGE_UPDATED" + | 'PAGE_UPDATED' /** Authorize payment. */ - | "PAYMENT_AUTHORIZE" + | 'PAYMENT_AUTHORIZE' /** Capture payment. */ - | "PAYMENT_CAPTURE" + | 'PAYMENT_CAPTURE' /** Confirm payment. */ - | "PAYMENT_CONFIRM" - | "PAYMENT_GATEWAY_INITIALIZE_SESSION" - | "PAYMENT_GATEWAY_INITIALIZE_TOKENIZATION_SESSION" + | 'PAYMENT_CONFIRM' + | 'PAYMENT_GATEWAY_INITIALIZE_SESSION' + | 'PAYMENT_GATEWAY_INITIALIZE_TOKENIZATION_SESSION' /** Listing available payment gateways. */ - | "PAYMENT_LIST_GATEWAYS" - | "PAYMENT_METHOD_INITIALIZE_TOKENIZATION_SESSION" - | "PAYMENT_METHOD_PROCESS_TOKENIZATION_SESSION" + | 'PAYMENT_LIST_GATEWAYS' + | 'PAYMENT_METHOD_INITIALIZE_TOKENIZATION_SESSION' + | 'PAYMENT_METHOD_PROCESS_TOKENIZATION_SESSION' /** Process payment. */ - | "PAYMENT_PROCESS" + | 'PAYMENT_PROCESS' /** Refund payment. */ - | "PAYMENT_REFUND" + | 'PAYMENT_REFUND' /** Void payment. */ - | "PAYMENT_VOID" + | 'PAYMENT_VOID' /** A new permission group is created. */ - | "PERMISSION_GROUP_CREATED" + | 'PERMISSION_GROUP_CREATED' /** A permission group is deleted. */ - | "PERMISSION_GROUP_DELETED" + | 'PERMISSION_GROUP_DELETED' /** A permission group is updated. */ - | "PERMISSION_GROUP_UPDATED" + | 'PERMISSION_GROUP_UPDATED' /** A new product is created. */ - | "PRODUCT_CREATED" + | 'PRODUCT_CREATED' /** A product is deleted. */ - | "PRODUCT_DELETED" + | 'PRODUCT_DELETED' /** * A product export is completed. * * Added in Saleor 3.16. */ - | "PRODUCT_EXPORT_COMPLETED" + | 'PRODUCT_EXPORT_COMPLETED' /** * A new product media is created. * * Added in Saleor 3.12. */ - | "PRODUCT_MEDIA_CREATED" + | 'PRODUCT_MEDIA_CREATED' /** * A product media is deleted. * * Added in Saleor 3.12. */ - | "PRODUCT_MEDIA_DELETED" + | 'PRODUCT_MEDIA_DELETED' /** * A product media is updated. * * Added in Saleor 3.12. */ - | "PRODUCT_MEDIA_UPDATED" + | 'PRODUCT_MEDIA_UPDATED' /** * A product metadata is updated. * * Added in Saleor 3.8. */ - | "PRODUCT_METADATA_UPDATED" + | 'PRODUCT_METADATA_UPDATED' /** A product is updated. */ - | "PRODUCT_UPDATED" + | 'PRODUCT_UPDATED' /** A product variant is back in stock. */ - | "PRODUCT_VARIANT_BACK_IN_STOCK" + | 'PRODUCT_VARIANT_BACK_IN_STOCK' /** A new product variant is created. */ - | "PRODUCT_VARIANT_CREATED" + | 'PRODUCT_VARIANT_CREATED' /** A product variant is deleted. Warning: this event will not be executed when parent product has been deleted. Check PRODUCT_DELETED. */ - | "PRODUCT_VARIANT_DELETED" + | 'PRODUCT_VARIANT_DELETED' /** * A product variant metadata is updated. * * Added in Saleor 3.8. */ - | "PRODUCT_VARIANT_METADATA_UPDATED" + | 'PRODUCT_VARIANT_METADATA_UPDATED' /** A product variant is out of stock. */ - | "PRODUCT_VARIANT_OUT_OF_STOCK" + | 'PRODUCT_VARIANT_OUT_OF_STOCK' /** A product variant stock is updated */ - | "PRODUCT_VARIANT_STOCK_UPDATED" + | 'PRODUCT_VARIANT_STOCK_UPDATED' /** A product variant is updated. */ - | "PRODUCT_VARIANT_UPDATED" + | 'PRODUCT_VARIANT_UPDATED' /** A promotion is created. */ - | "PROMOTION_CREATED" + | 'PROMOTION_CREATED' /** A promotion is deleted. */ - | "PROMOTION_DELETED" + | 'PROMOTION_DELETED' /** A promotion is deactivated. */ - | "PROMOTION_ENDED" + | 'PROMOTION_ENDED' /** A promotion rule is created. */ - | "PROMOTION_RULE_CREATED" + | 'PROMOTION_RULE_CREATED' /** A promotion rule is deleted. */ - | "PROMOTION_RULE_DELETED" + | 'PROMOTION_RULE_DELETED' /** A promotion rule is updated. */ - | "PROMOTION_RULE_UPDATED" + | 'PROMOTION_RULE_UPDATED' /** A promotion is activated. */ - | "PROMOTION_STARTED" + | 'PROMOTION_STARTED' /** A promotion is updated. */ - | "PROMOTION_UPDATED" + | 'PROMOTION_UPDATED' /** A sale is created. */ - | "SALE_CREATED" + | 'SALE_CREATED' /** A sale is deleted. */ - | "SALE_DELETED" + | 'SALE_DELETED' /** A sale is activated or deactivated. */ - | "SALE_TOGGLE" + | 'SALE_TOGGLE' /** A sale is updated. */ - | "SALE_UPDATED" + | 'SALE_UPDATED' /** Fetch external shipping methods for checkout. */ - | "SHIPPING_LIST_METHODS_FOR_CHECKOUT" + | 'SHIPPING_LIST_METHODS_FOR_CHECKOUT' /** A new shipping price is created. */ - | "SHIPPING_PRICE_CREATED" + | 'SHIPPING_PRICE_CREATED' /** A shipping price is deleted. */ - | "SHIPPING_PRICE_DELETED" + | 'SHIPPING_PRICE_DELETED' /** A shipping price is updated. */ - | "SHIPPING_PRICE_UPDATED" + | 'SHIPPING_PRICE_UPDATED' /** A new shipping zone is created. */ - | "SHIPPING_ZONE_CREATED" + | 'SHIPPING_ZONE_CREATED' /** A shipping zone is deleted. */ - | "SHIPPING_ZONE_DELETED" + | 'SHIPPING_ZONE_DELETED' /** * A shipping zone metadata is updated. * * Added in Saleor 3.8. */ - | "SHIPPING_ZONE_METADATA_UPDATED" + | 'SHIPPING_ZONE_METADATA_UPDATED' /** A shipping zone is updated. */ - | "SHIPPING_ZONE_UPDATED" + | 'SHIPPING_ZONE_UPDATED' /** * Shop metadata is updated. * * Added in Saleor 3.15. */ - | "SHOP_METADATA_UPDATED" + | 'SHOP_METADATA_UPDATED' /** A new staff user is created. */ - | "STAFF_CREATED" + | 'STAFF_CREATED' /** A staff user is deleted. */ - | "STAFF_DELETED" + | 'STAFF_DELETED' /** Setting a new password for the staff account is requested. */ - | "STAFF_SET_PASSWORD_REQUESTED" + | 'STAFF_SET_PASSWORD_REQUESTED' /** A staff user is updated. */ - | "STAFF_UPDATED" - | "STORED_PAYMENT_METHOD_DELETE_REQUESTED" + | 'STAFF_UPDATED' + | 'STORED_PAYMENT_METHOD_DELETE_REQUESTED' /** * A thumbnail is created. * * Added in Saleor 3.12. */ - | "THUMBNAIL_CREATED" + | 'THUMBNAIL_CREATED' /** * Event called when cancel has been requested for transaction. * @@ -31251,7 +31949,7 @@ export type WebhookEventTypeEnum = * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - | "TRANSACTION_CANCELATION_REQUESTED" + | 'TRANSACTION_CANCELATION_REQUESTED' /** * Event called when charge has been requested for transaction. * @@ -31259,15 +31957,15 @@ export type WebhookEventTypeEnum = * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - | "TRANSACTION_CHARGE_REQUESTED" - | "TRANSACTION_INITIALIZE_SESSION" + | 'TRANSACTION_CHARGE_REQUESTED' + | 'TRANSACTION_INITIALIZE_SESSION' /** * Transaction item metadata is updated. * * Added in Saleor 3.8. */ - | "TRANSACTION_ITEM_METADATA_UPDATED" - | "TRANSACTION_PROCESS_SESSION" + | 'TRANSACTION_ITEM_METADATA_UPDATED' + | 'TRANSACTION_PROCESS_SESSION' /** * Event called when refund has been requested for transaction. * @@ -31275,43 +31973,43 @@ export type WebhookEventTypeEnum = * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - | "TRANSACTION_REFUND_REQUESTED" + | 'TRANSACTION_REFUND_REQUESTED' /** A new translation is created. */ - | "TRANSLATION_CREATED" + | 'TRANSLATION_CREATED' /** A translation is updated. */ - | "TRANSLATION_UPDATED" - | "VOUCHER_CODES_CREATED" - | "VOUCHER_CODES_DELETED" + | 'TRANSLATION_UPDATED' + | 'VOUCHER_CODES_CREATED' + | 'VOUCHER_CODES_DELETED' /** * A voucher code export is completed. * * Added in Saleor 3.18. */ - | "VOUCHER_CODE_EXPORT_COMPLETED" + | 'VOUCHER_CODE_EXPORT_COMPLETED' /** A new voucher created. */ - | "VOUCHER_CREATED" + | 'VOUCHER_CREATED' /** A voucher is deleted. */ - | "VOUCHER_DELETED" + | 'VOUCHER_DELETED' /** * A voucher metadata is updated. * * Added in Saleor 3.8. */ - | "VOUCHER_METADATA_UPDATED" + | 'VOUCHER_METADATA_UPDATED' /** A voucher is updated. */ - | "VOUCHER_UPDATED" + | 'VOUCHER_UPDATED' /** A new warehouse created. */ - | "WAREHOUSE_CREATED" + | 'WAREHOUSE_CREATED' /** A warehouse is deleted. */ - | "WAREHOUSE_DELETED" + | 'WAREHOUSE_DELETED' /** * A warehouse metadata is updated. * * Added in Saleor 3.8. */ - | "WAREHOUSE_METADATA_UPDATED" + | 'WAREHOUSE_METADATA_UPDATED' /** A warehouse is updated. */ - | "WAREHOUSE_UPDATED"; + | 'WAREHOUSE_UPDATED'; /** Enum determining type of webhook. */ export type WebhookEventTypeSyncEnum = @@ -31320,39 +32018,39 @@ export type WebhookEventTypeSyncEnum = * * Added in Saleor 3.6. */ - | "CHECKOUT_CALCULATE_TAXES" + | 'CHECKOUT_CALCULATE_TAXES' /** Filter shipping methods for checkout. */ - | "CHECKOUT_FILTER_SHIPPING_METHODS" - | "LIST_STORED_PAYMENT_METHODS" + | 'CHECKOUT_FILTER_SHIPPING_METHODS' + | 'LIST_STORED_PAYMENT_METHODS' /** * Event called for order tax calculation. * * Added in Saleor 3.6. */ - | "ORDER_CALCULATE_TAXES" + | 'ORDER_CALCULATE_TAXES' /** Filter shipping methods for order. */ - | "ORDER_FILTER_SHIPPING_METHODS" + | 'ORDER_FILTER_SHIPPING_METHODS' /** Authorize payment. */ - | "PAYMENT_AUTHORIZE" + | 'PAYMENT_AUTHORIZE' /** Capture payment. */ - | "PAYMENT_CAPTURE" + | 'PAYMENT_CAPTURE' /** Confirm payment. */ - | "PAYMENT_CONFIRM" - | "PAYMENT_GATEWAY_INITIALIZE_SESSION" - | "PAYMENT_GATEWAY_INITIALIZE_TOKENIZATION_SESSION" + | 'PAYMENT_CONFIRM' + | 'PAYMENT_GATEWAY_INITIALIZE_SESSION' + | 'PAYMENT_GATEWAY_INITIALIZE_TOKENIZATION_SESSION' /** Listing available payment gateways. */ - | "PAYMENT_LIST_GATEWAYS" - | "PAYMENT_METHOD_INITIALIZE_TOKENIZATION_SESSION" - | "PAYMENT_METHOD_PROCESS_TOKENIZATION_SESSION" + | 'PAYMENT_LIST_GATEWAYS' + | 'PAYMENT_METHOD_INITIALIZE_TOKENIZATION_SESSION' + | 'PAYMENT_METHOD_PROCESS_TOKENIZATION_SESSION' /** Process payment. */ - | "PAYMENT_PROCESS" + | 'PAYMENT_PROCESS' /** Refund payment. */ - | "PAYMENT_REFUND" + | 'PAYMENT_REFUND' /** Void payment. */ - | "PAYMENT_VOID" + | 'PAYMENT_VOID' /** Fetch external shipping methods for checkout. */ - | "SHIPPING_LIST_METHODS_FOR_CHECKOUT" - | "STORED_PAYMENT_METHOD_DELETE_REQUESTED" + | 'SHIPPING_LIST_METHODS_FOR_CHECKOUT' + | 'STORED_PAYMENT_METHOD_DELETE_REQUESTED' /** * Event called when cancel has been requested for transaction. * @@ -31360,7 +32058,7 @@ export type WebhookEventTypeSyncEnum = * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - | "TRANSACTION_CANCELATION_REQUESTED" + | 'TRANSACTION_CANCELATION_REQUESTED' /** * Event called when charge has been requested for transaction. * @@ -31368,9 +32066,9 @@ export type WebhookEventTypeSyncEnum = * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - | "TRANSACTION_CHARGE_REQUESTED" - | "TRANSACTION_INITIALIZE_SESSION" - | "TRANSACTION_PROCESS_SESSION" + | 'TRANSACTION_CHARGE_REQUESTED' + | 'TRANSACTION_INITIALIZE_SESSION' + | 'TRANSACTION_PROCESS_SESSION' /** * Event called when refund has been requested for transaction. * @@ -31378,151 +32076,151 @@ export type WebhookEventTypeSyncEnum = * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - | "TRANSACTION_REFUND_REQUESTED"; + | 'TRANSACTION_REFUND_REQUESTED'; /** An enumeration. */ export type WebhookSampleEventTypeEnum = - | "ACCOUNT_CHANGE_EMAIL_REQUESTED" - | "ACCOUNT_CONFIRMATION_REQUESTED" - | "ACCOUNT_CONFIRMED" - | "ACCOUNT_DELETED" - | "ACCOUNT_DELETE_REQUESTED" - | "ACCOUNT_EMAIL_CHANGED" - | "ACCOUNT_SET_PASSWORD_REQUESTED" - | "ADDRESS_CREATED" - | "ADDRESS_DELETED" - | "ADDRESS_UPDATED" - | "APP_DELETED" - | "APP_INSTALLED" - | "APP_STATUS_CHANGED" - | "APP_UPDATED" - | "ATTRIBUTE_CREATED" - | "ATTRIBUTE_DELETED" - | "ATTRIBUTE_UPDATED" - | "ATTRIBUTE_VALUE_CREATED" - | "ATTRIBUTE_VALUE_DELETED" - | "ATTRIBUTE_VALUE_UPDATED" - | "CATEGORY_CREATED" - | "CATEGORY_DELETED" - | "CATEGORY_UPDATED" - | "CHANNEL_CREATED" - | "CHANNEL_DELETED" - | "CHANNEL_METADATA_UPDATED" - | "CHANNEL_STATUS_CHANGED" - | "CHANNEL_UPDATED" - | "CHECKOUT_CREATED" - | "CHECKOUT_FULLY_PAID" - | "CHECKOUT_METADATA_UPDATED" - | "CHECKOUT_UPDATED" - | "COLLECTION_CREATED" - | "COLLECTION_DELETED" - | "COLLECTION_METADATA_UPDATED" - | "COLLECTION_UPDATED" - | "CUSTOMER_CREATED" - | "CUSTOMER_DELETED" - | "CUSTOMER_METADATA_UPDATED" - | "CUSTOMER_UPDATED" - | "DRAFT_ORDER_CREATED" - | "DRAFT_ORDER_DELETED" - | "DRAFT_ORDER_UPDATED" - | "FULFILLMENT_APPROVED" - | "FULFILLMENT_CANCELED" - | "FULFILLMENT_CREATED" - | "FULFILLMENT_METADATA_UPDATED" - | "FULFILLMENT_TRACKING_NUMBER_UPDATED" - | "GIFT_CARD_CREATED" - | "GIFT_CARD_DELETED" - | "GIFT_CARD_EXPORT_COMPLETED" - | "GIFT_CARD_METADATA_UPDATED" - | "GIFT_CARD_SENT" - | "GIFT_CARD_STATUS_CHANGED" - | "GIFT_CARD_UPDATED" - | "INVOICE_DELETED" - | "INVOICE_REQUESTED" - | "INVOICE_SENT" - | "MENU_CREATED" - | "MENU_DELETED" - | "MENU_ITEM_CREATED" - | "MENU_ITEM_DELETED" - | "MENU_ITEM_UPDATED" - | "MENU_UPDATED" - | "NOTIFY_USER" - | "OBSERVABILITY" - | "ORDER_BULK_CREATED" - | "ORDER_CANCELLED" - | "ORDER_CONFIRMED" - | "ORDER_CREATED" - | "ORDER_EXPIRED" - | "ORDER_FULFILLED" - | "ORDER_FULLY_PAID" - | "ORDER_FULLY_REFUNDED" - | "ORDER_METADATA_UPDATED" - | "ORDER_PAID" - | "ORDER_REFUNDED" - | "ORDER_UPDATED" - | "PAGE_CREATED" - | "PAGE_DELETED" - | "PAGE_TYPE_CREATED" - | "PAGE_TYPE_DELETED" - | "PAGE_TYPE_UPDATED" - | "PAGE_UPDATED" - | "PERMISSION_GROUP_CREATED" - | "PERMISSION_GROUP_DELETED" - | "PERMISSION_GROUP_UPDATED" - | "PRODUCT_CREATED" - | "PRODUCT_DELETED" - | "PRODUCT_EXPORT_COMPLETED" - | "PRODUCT_MEDIA_CREATED" - | "PRODUCT_MEDIA_DELETED" - | "PRODUCT_MEDIA_UPDATED" - | "PRODUCT_METADATA_UPDATED" - | "PRODUCT_UPDATED" - | "PRODUCT_VARIANT_BACK_IN_STOCK" - | "PRODUCT_VARIANT_CREATED" - | "PRODUCT_VARIANT_DELETED" - | "PRODUCT_VARIANT_METADATA_UPDATED" - | "PRODUCT_VARIANT_OUT_OF_STOCK" - | "PRODUCT_VARIANT_STOCK_UPDATED" - | "PRODUCT_VARIANT_UPDATED" - | "PROMOTION_CREATED" - | "PROMOTION_DELETED" - | "PROMOTION_ENDED" - | "PROMOTION_RULE_CREATED" - | "PROMOTION_RULE_DELETED" - | "PROMOTION_RULE_UPDATED" - | "PROMOTION_STARTED" - | "PROMOTION_UPDATED" - | "SALE_CREATED" - | "SALE_DELETED" - | "SALE_TOGGLE" - | "SALE_UPDATED" - | "SHIPPING_PRICE_CREATED" - | "SHIPPING_PRICE_DELETED" - | "SHIPPING_PRICE_UPDATED" - | "SHIPPING_ZONE_CREATED" - | "SHIPPING_ZONE_DELETED" - | "SHIPPING_ZONE_METADATA_UPDATED" - | "SHIPPING_ZONE_UPDATED" - | "SHOP_METADATA_UPDATED" - | "STAFF_CREATED" - | "STAFF_DELETED" - | "STAFF_SET_PASSWORD_REQUESTED" - | "STAFF_UPDATED" - | "THUMBNAIL_CREATED" - | "TRANSACTION_ITEM_METADATA_UPDATED" - | "TRANSLATION_CREATED" - | "TRANSLATION_UPDATED" - | "VOUCHER_CODES_CREATED" - | "VOUCHER_CODES_DELETED" - | "VOUCHER_CODE_EXPORT_COMPLETED" - | "VOUCHER_CREATED" - | "VOUCHER_DELETED" - | "VOUCHER_METADATA_UPDATED" - | "VOUCHER_UPDATED" - | "WAREHOUSE_CREATED" - | "WAREHOUSE_DELETED" - | "WAREHOUSE_METADATA_UPDATED" - | "WAREHOUSE_UPDATED"; + | 'ACCOUNT_CHANGE_EMAIL_REQUESTED' + | 'ACCOUNT_CONFIRMATION_REQUESTED' + | 'ACCOUNT_CONFIRMED' + | 'ACCOUNT_DELETED' + | 'ACCOUNT_DELETE_REQUESTED' + | 'ACCOUNT_EMAIL_CHANGED' + | 'ACCOUNT_SET_PASSWORD_REQUESTED' + | 'ADDRESS_CREATED' + | 'ADDRESS_DELETED' + | 'ADDRESS_UPDATED' + | 'APP_DELETED' + | 'APP_INSTALLED' + | 'APP_STATUS_CHANGED' + | 'APP_UPDATED' + | 'ATTRIBUTE_CREATED' + | 'ATTRIBUTE_DELETED' + | 'ATTRIBUTE_UPDATED' + | 'ATTRIBUTE_VALUE_CREATED' + | 'ATTRIBUTE_VALUE_DELETED' + | 'ATTRIBUTE_VALUE_UPDATED' + | 'CATEGORY_CREATED' + | 'CATEGORY_DELETED' + | 'CATEGORY_UPDATED' + | 'CHANNEL_CREATED' + | 'CHANNEL_DELETED' + | 'CHANNEL_METADATA_UPDATED' + | 'CHANNEL_STATUS_CHANGED' + | 'CHANNEL_UPDATED' + | 'CHECKOUT_CREATED' + | 'CHECKOUT_FULLY_PAID' + | 'CHECKOUT_METADATA_UPDATED' + | 'CHECKOUT_UPDATED' + | 'COLLECTION_CREATED' + | 'COLLECTION_DELETED' + | 'COLLECTION_METADATA_UPDATED' + | 'COLLECTION_UPDATED' + | 'CUSTOMER_CREATED' + | 'CUSTOMER_DELETED' + | 'CUSTOMER_METADATA_UPDATED' + | 'CUSTOMER_UPDATED' + | 'DRAFT_ORDER_CREATED' + | 'DRAFT_ORDER_DELETED' + | 'DRAFT_ORDER_UPDATED' + | 'FULFILLMENT_APPROVED' + | 'FULFILLMENT_CANCELED' + | 'FULFILLMENT_CREATED' + | 'FULFILLMENT_METADATA_UPDATED' + | 'FULFILLMENT_TRACKING_NUMBER_UPDATED' + | 'GIFT_CARD_CREATED' + | 'GIFT_CARD_DELETED' + | 'GIFT_CARD_EXPORT_COMPLETED' + | 'GIFT_CARD_METADATA_UPDATED' + | 'GIFT_CARD_SENT' + | 'GIFT_CARD_STATUS_CHANGED' + | 'GIFT_CARD_UPDATED' + | 'INVOICE_DELETED' + | 'INVOICE_REQUESTED' + | 'INVOICE_SENT' + | 'MENU_CREATED' + | 'MENU_DELETED' + | 'MENU_ITEM_CREATED' + | 'MENU_ITEM_DELETED' + | 'MENU_ITEM_UPDATED' + | 'MENU_UPDATED' + | 'NOTIFY_USER' + | 'OBSERVABILITY' + | 'ORDER_BULK_CREATED' + | 'ORDER_CANCELLED' + | 'ORDER_CONFIRMED' + | 'ORDER_CREATED' + | 'ORDER_EXPIRED' + | 'ORDER_FULFILLED' + | 'ORDER_FULLY_PAID' + | 'ORDER_FULLY_REFUNDED' + | 'ORDER_METADATA_UPDATED' + | 'ORDER_PAID' + | 'ORDER_REFUNDED' + | 'ORDER_UPDATED' + | 'PAGE_CREATED' + | 'PAGE_DELETED' + | 'PAGE_TYPE_CREATED' + | 'PAGE_TYPE_DELETED' + | 'PAGE_TYPE_UPDATED' + | 'PAGE_UPDATED' + | 'PERMISSION_GROUP_CREATED' + | 'PERMISSION_GROUP_DELETED' + | 'PERMISSION_GROUP_UPDATED' + | 'PRODUCT_CREATED' + | 'PRODUCT_DELETED' + | 'PRODUCT_EXPORT_COMPLETED' + | 'PRODUCT_MEDIA_CREATED' + | 'PRODUCT_MEDIA_DELETED' + | 'PRODUCT_MEDIA_UPDATED' + | 'PRODUCT_METADATA_UPDATED' + | 'PRODUCT_UPDATED' + | 'PRODUCT_VARIANT_BACK_IN_STOCK' + | 'PRODUCT_VARIANT_CREATED' + | 'PRODUCT_VARIANT_DELETED' + | 'PRODUCT_VARIANT_METADATA_UPDATED' + | 'PRODUCT_VARIANT_OUT_OF_STOCK' + | 'PRODUCT_VARIANT_STOCK_UPDATED' + | 'PRODUCT_VARIANT_UPDATED' + | 'PROMOTION_CREATED' + | 'PROMOTION_DELETED' + | 'PROMOTION_ENDED' + | 'PROMOTION_RULE_CREATED' + | 'PROMOTION_RULE_DELETED' + | 'PROMOTION_RULE_UPDATED' + | 'PROMOTION_STARTED' + | 'PROMOTION_UPDATED' + | 'SALE_CREATED' + | 'SALE_DELETED' + | 'SALE_TOGGLE' + | 'SALE_UPDATED' + | 'SHIPPING_PRICE_CREATED' + | 'SHIPPING_PRICE_DELETED' + | 'SHIPPING_PRICE_UPDATED' + | 'SHIPPING_ZONE_CREATED' + | 'SHIPPING_ZONE_DELETED' + | 'SHIPPING_ZONE_METADATA_UPDATED' + | 'SHIPPING_ZONE_UPDATED' + | 'SHOP_METADATA_UPDATED' + | 'STAFF_CREATED' + | 'STAFF_DELETED' + | 'STAFF_SET_PASSWORD_REQUESTED' + | 'STAFF_UPDATED' + | 'THUMBNAIL_CREATED' + | 'TRANSACTION_ITEM_METADATA_UPDATED' + | 'TRANSLATION_CREATED' + | 'TRANSLATION_UPDATED' + | 'VOUCHER_CODES_CREATED' + | 'VOUCHER_CODES_DELETED' + | 'VOUCHER_CODE_EXPORT_COMPLETED' + | 'VOUCHER_CREATED' + | 'VOUCHER_DELETED' + | 'VOUCHER_METADATA_UPDATED' + | 'VOUCHER_UPDATED' + | 'WAREHOUSE_CREATED' + | 'WAREHOUSE_DELETED' + | 'WAREHOUSE_METADATA_UPDATED' + | 'WAREHOUSE_UPDATED'; /** * Trigger a webhook event. Supports a single event (the first, if multiple provided in the `webhook.subscription_query`). Requires permission relevant to processed event. Successfully delivered webhook returns `delivery` with status='PENDING' and empty payload. @@ -31542,23 +32240,23 @@ export type WebhookTriggerError = { /** The error code. */ code: WebhookTriggerErrorCode; /** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */ - field: Maybe; + field: Maybe; /** The error message. */ - message: Maybe; + message: Maybe; }; /** An enumeration. */ export type WebhookTriggerErrorCode = - | "GRAPHQL_ERROR" - | "INVALID_ID" - | "MISSING_EVENT" - | "MISSING_PERMISSION" - | "MISSING_QUERY" - | "MISSING_SUBSCRIPTION" - | "NOT_FOUND" - | "SYNTAX" - | "TYPE_NOT_SUPPORTED" - | "UNABLE_TO_PARSE"; + | 'GRAPHQL_ERROR' + | 'INVALID_ID' + | 'MISSING_EVENT' + | 'MISSING_PERMISSION' + | 'MISSING_QUERY' + | 'MISSING_SUBSCRIPTION' + | 'NOT_FOUND' + | 'SYNTAX' + | 'TYPE_NOT_SUPPORTED' + | 'UNABLE_TO_PARSE'; /** * Updates a webhook subscription. @@ -31574,7 +32272,7 @@ export type WebhookUpdate = { export type WebhookUpdateInput = { /** ID of the app to which webhook belongs. */ - app?: InputMaybe; + app?: InputMaybe; /** The asynchronous events that webhook wants to subscribe. */ asyncEvents?: InputMaybe>; /** @@ -31584,7 +32282,7 @@ export type WebhookUpdateInput = { * * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - customHeaders?: InputMaybe; + customHeaders?: InputMaybe; /** * The events that webhook wants to subscribe. * @@ -31592,25 +32290,25 @@ export type WebhookUpdateInput = { */ events?: InputMaybe>; /** Determine if webhook will be set active or not. */ - isActive?: InputMaybe; + isActive?: InputMaybe; /** The new name of the webhook. */ - name?: InputMaybe; + name?: InputMaybe; /** * Subscription query used to define a webhook payload. * * Added in Saleor 3.2. */ - query?: InputMaybe; + query?: InputMaybe; /** * Use to create a hash signature with each payload. * * DEPRECATED: this field will be removed in Saleor 4.0. As of Saleor 3.5, webhook payloads default to signing using a verifiable JWS. */ - secretKey?: InputMaybe; + secretKey?: InputMaybe; /** The synchronous events that webhook wants to subscribe. */ syncEvents?: InputMaybe>; /** The url to receive the payload. */ - targetUrl?: InputMaybe; + targetUrl?: InputMaybe; }; /** Represents weight value in a specific weight unit. */ @@ -31618,28 +32316,21 @@ export type Weight = { /** Weight unit. */ unit: WeightUnitsEnum; /** Weight value. Returns a value with maximal three decimal places */ - value: Scalars["Float"]["output"]; + value: Scalars['Float']['output']; }; /** An enumeration. */ -export type WeightUnitsEnum = "G" | "KG" | "LB" | "OZ" | "TONNE"; +export type WeightUnitsEnum = + | 'G' + | 'KG' + | 'LB' + | 'OZ' + | 'TONNE'; /** _Entity union as defined by Federation spec. */ -export type _Entity = - | Address - | App - | Category - | Collection - | Group - | Order - | PageType - | Product - | ProductMedia - | ProductType - | ProductVariant - | User; +export type _Entity = Address | App | Category | Collection | Group | Order | PageType | Product | ProductMedia | ProductType | ProductVariant | User; /** _Service manifest as defined by Federation spec. */ export type _Service = { - sdl: Maybe; + sdl: Maybe; }; diff --git a/src/lib/graphql/client.ts b/src/lib/graphql/client.ts index da6e3a6..cb86256 100644 --- a/src/lib/graphql/client.ts +++ b/src/lib/graphql/client.ts @@ -1,4 +1,3 @@ -import type { DocumentTypeDecoration } from "@graphql-typed-document-node/core"; import { type FastifyBaseLogger } from "fastify"; import { CONFIG } from "@/config"; @@ -15,6 +14,7 @@ import { type AnyVariables, type FetchOptions, type GraphQLResponse, + type TypedDocumentTypeDecoration, } from "./types"; export type GraphqlClient = ReturnType; @@ -31,7 +31,7 @@ export const graphqlClient = ( TResult = unknown, TVariables extends AnyVariables = AnyVariables, >( - query: DocumentTypeDecoration & { toString(): string }, + query: TypedDocumentTypeDecoration, input?: { options?: FetchOptions; variables?: TVariables; diff --git a/src/lib/graphql/types.ts b/src/lib/graphql/types.ts index 870de92..02f0301 100644 --- a/src/lib/graphql/types.ts +++ b/src/lib/graphql/types.ts @@ -1,3 +1,5 @@ +import { type DocumentTypeDecoration } from "@graphql-typed-document-node/core"; + export type FetchOptions = Omit; export type AnyVariables = Record | undefined; @@ -20,3 +22,6 @@ export type GraphQLResponse = { exception?: object; }; }; + +export type TypedDocumentTypeDecoration = + DocumentTypeDecoration & { toString(): string }; diff --git a/src/lib/graphql/validate.ts b/src/lib/graphql/validate.ts new file mode 100644 index 0000000..c2aef3c --- /dev/null +++ b/src/lib/graphql/validate.ts @@ -0,0 +1,123 @@ +import { + type ExecutableDefinitionNode, + type FieldNode, + Kind, + parse, + type SelectionSetNode, +} from "graphql"; + +import { BaseError } from "../errors"; +import { type TypedDocumentTypeDecoration } from "./types"; + +type FieldInfo = { + selectionSet?: FieldMap; + type?: any; +}; + +type FieldMap = { + [key: string]: FieldInfo; +}; + +const extractFieldsFromAST = (selectionSet: SelectionSetNode): FieldMap => { + const fields: FieldMap = {}; + + selectionSet.selections.forEach((selection) => { + if (selection.kind === Kind.FIELD) { + const fieldName = selection.name.value; + + if (selection.selectionSet) { + // Recursively extract nested fields + fields[fieldName] = { + type: "object", + selectionSet: extractFieldsFromAST(selection.selectionSet), + }; + } else { + fields[fieldName] = { type: "scalar" }; // Placeholder for scalar fields + } + } else if (selection.kind === Kind.INLINE_FRAGMENT) { + // Handle inline fragments and merge the fields into the main set + const fragmentFields = extractFieldsFromAST(selection.selectionSet); + Object.assign(fields, fragmentFields); + } + }); + + return fields; +}; +class ValidationError extends BaseError {} + +const validatePayload = (payload: any, fields: FieldMap, path: string = "") => { + // Ensure that the payload does not have any extra fields + for (const fieldName of Object.keys(payload)) { + // Skip __typename field + if (fieldName === "__typename") { + continue; + } + + if (!(fieldName in fields)) { + throw new ValidationError(`Invalid field: ${path}.${fieldName}.`); + } + } + + // Validate that each expected field is present in the payload + for (const [fieldName, fieldInfo] of Object.entries(fields)) { + const newPath = path ? `${path}.${fieldName}` : fieldName; + + if (!(fieldName in payload)) { + throw new ValidationError(`Missing field: ${newPath}.`); + } + + if (fieldInfo.type === "object" && fieldInfo.selectionSet) { + // If it's an edges field, ensure it's an array + if (fieldName === "edges" && !Array.isArray(payload[fieldName])) { + throw new ValidationError(`Edges field must be an array: ${newPath}.`); + } + + // If the field has a nested selectionSet, recursively validate it + if (Array.isArray(payload[fieldName])) { + // If it's an array, validate each object in the array + for (const item of payload[fieldName]) { + validatePayload(item, fieldInfo.selectionSet, newPath); + } + } else { + // Otherwise, recursively validate the nested object + validatePayload(payload[fieldName], fieldInfo.selectionSet, newPath); + } + } + } +}; + +export const validateDocumentAgainstData = ({ + document, + data, + rootField = "event", +}: { + data: any; + document: TypedDocumentTypeDecoration; + rootField?: string; +}) => { + const ast = parse(document.toString()); + + const definitions = ast.definitions[0] as ExecutableDefinitionNode; + + const eventField = definitions.selectionSet.selections.find((node) => { + const selection = node as FieldNode; + return selection.name && selection.name.value === rootField; + }) as FieldNode; + + if (!eventField?.selectionSet) { + return { isValid: false, error: "Cannot find root field." }; + } + + const rootFields = extractFieldsFromAST(eventField.selectionSet); + + try { + validatePayload(data, rootFields); + return { isValid: true, error: null }; + } catch (error) { + if (error instanceof ValidationError) { + return { isValid: false, error: error.message }; + } + + throw error; + } +};