diff --git a/@generated/graphql/index.ts b/@generated/graphql/index.ts index e4a113d5..d697f75f 100644 --- a/@generated/graphql/index.ts +++ b/@generated/graphql/index.ts @@ -1,175 +1,181 @@ -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 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 }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string - String: string - Boolean: boolean - Int: number - Float: number + ID: string; + String: string; + Boolean: boolean; + Int: number; + Float: number; /** A date string, such as 2007-12-03, compliant with the ISO 8601 standard for representation of dates and times using the Gregorian calendar. */ - Date: any + Date: any; /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */ - JSON: any + JSON: any; /** A string or the string representation of an object (a stringified object). */ - ObjectOrString: any -} + ObjectOrString: any; +}; export type BooleanQueryOperatorInput = { - eq: InputMaybe - in: InputMaybe>> - ne: InputMaybe - nin: InputMaybe>> -} + eq: InputMaybe; + in: InputMaybe>>; + ne: InputMaybe; + nin: InputMaybe>>; +}; export type DateQueryOperatorInput = { - eq: InputMaybe - gt: InputMaybe - gte: InputMaybe - in: InputMaybe>> - lt: InputMaybe - lte: InputMaybe - ne: InputMaybe - nin: InputMaybe>> -} + eq: InputMaybe; + gt: InputMaybe; + gte: InputMaybe; + in: InputMaybe>>; + lt: InputMaybe; + lte: InputMaybe; + ne: InputMaybe; + nin: InputMaybe>>; +}; export type Directory = Node & { - absolutePath: Scalars['String'] - accessTime: Scalars['Date'] - atime: Scalars['Date'] - atimeMs: Scalars['Float'] - base: Scalars['String'] - birthTime: Scalars['Date'] + absolutePath: Scalars['String']; + accessTime: Scalars['Date']; + atime: Scalars['Date']; + atimeMs: Scalars['Float']; + base: Scalars['String']; + birthTime: Scalars['Date']; /** @deprecated Use `birthTime` instead */ - birthtime: Maybe + birthtime: Maybe; /** @deprecated Use `birthTime` instead */ - birthtimeMs: Maybe - changeTime: Scalars['Date'] - children: Array - ctime: Scalars['Date'] - ctimeMs: Scalars['Float'] - dev: Scalars['Int'] - dir: Scalars['String'] - ext: Scalars['String'] - extension: Scalars['String'] - gid: Scalars['Int'] - id: Scalars['ID'] - ino: Scalars['Float'] - internal: Internal - mode: Scalars['Int'] - modifiedTime: Scalars['Date'] - mtime: Scalars['Date'] - mtimeMs: Scalars['Float'] - name: Scalars['String'] - nlink: Scalars['Int'] - parent: Maybe - prettySize: Scalars['String'] - rdev: Scalars['Int'] - relativeDirectory: Scalars['String'] - relativePath: Scalars['String'] - root: Scalars['String'] - size: Scalars['Int'] - sourceInstanceName: Scalars['String'] - uid: Scalars['Int'] -} + birthtimeMs: Maybe; + changeTime: Scalars['Date']; + children: Array; + ctime: Scalars['Date']; + ctimeMs: Scalars['Float']; + dev: Scalars['Int']; + dir: Scalars['String']; + ext: Scalars['String']; + extension: Scalars['String']; + gid: Scalars['Int']; + id: Scalars['ID']; + ino: Scalars['Float']; + internal: Internal; + mode: Scalars['Int']; + modifiedTime: Scalars['Date']; + mtime: Scalars['Date']; + mtimeMs: Scalars['Float']; + name: Scalars['String']; + nlink: Scalars['Int']; + parent: Maybe; + prettySize: Scalars['String']; + rdev: Scalars['Int']; + relativeDirectory: Scalars['String']; + relativePath: Scalars['String']; + root: Scalars['String']; + size: Scalars['Int']; + sourceInstanceName: Scalars['String']; + uid: Scalars['Int']; +}; + export type DirectoryAccessTimeArgs = { - difference: InputMaybe - formatString: InputMaybe - fromNow: InputMaybe - locale: InputMaybe -} + difference: InputMaybe; + formatString: InputMaybe; + fromNow: InputMaybe; + locale: InputMaybe; +}; + export type DirectoryAtimeArgs = { - difference: InputMaybe - formatString: InputMaybe - fromNow: InputMaybe - locale: InputMaybe -} + difference: InputMaybe; + formatString: InputMaybe; + fromNow: InputMaybe; + locale: InputMaybe; +}; + export type DirectoryBirthTimeArgs = { - difference: InputMaybe - formatString: InputMaybe - fromNow: InputMaybe - locale: InputMaybe -} + difference: InputMaybe; + formatString: InputMaybe; + fromNow: InputMaybe; + locale: InputMaybe; +}; + export type DirectoryChangeTimeArgs = { - difference: InputMaybe - formatString: InputMaybe - fromNow: InputMaybe - locale: InputMaybe -} + difference: InputMaybe; + formatString: InputMaybe; + fromNow: InputMaybe; + locale: InputMaybe; +}; + export type DirectoryCtimeArgs = { - difference: InputMaybe - formatString: InputMaybe - fromNow: InputMaybe - locale: InputMaybe -} + difference: InputMaybe; + formatString: InputMaybe; + fromNow: InputMaybe; + locale: InputMaybe; +}; + export type DirectoryModifiedTimeArgs = { - difference: InputMaybe - formatString: InputMaybe - fromNow: InputMaybe - locale: InputMaybe -} + difference: InputMaybe; + formatString: InputMaybe; + fromNow: InputMaybe; + locale: InputMaybe; +}; + export type DirectoryMtimeArgs = { - difference: InputMaybe - formatString: InputMaybe - fromNow: InputMaybe - locale: InputMaybe -} + difference: InputMaybe; + formatString: InputMaybe; + fromNow: InputMaybe; + locale: InputMaybe; +}; export type DirectoryConnection = { - distinct: Array - edges: Array - group: Array - max: Maybe - min: Maybe - nodes: Array - pageInfo: PageInfo - sum: Maybe - totalCount: Scalars['Int'] -} + distinct: Array; + edges: Array; + group: Array; + max: Maybe; + min: Maybe; + nodes: Array; + pageInfo: PageInfo; + sum: Maybe; + totalCount: Scalars['Int']; +}; + export type DirectoryConnectionDistinctArgs = { - field: DirectoryFieldsEnum -} + field: DirectoryFieldsEnum; +}; + export type DirectoryConnectionGroupArgs = { - field: DirectoryFieldsEnum - limit: InputMaybe - skip: InputMaybe -} + field: DirectoryFieldsEnum; + limit: InputMaybe; + skip: InputMaybe; +}; + export type DirectoryConnectionMaxArgs = { - field: DirectoryFieldsEnum -} + field: DirectoryFieldsEnum; +}; + export type DirectoryConnectionMinArgs = { - field: DirectoryFieldsEnum -} + field: DirectoryFieldsEnum; +}; + export type DirectoryConnectionSumArgs = { - field: DirectoryFieldsEnum -} + field: DirectoryFieldsEnum; +}; export type DirectoryEdge = { - next: Maybe - node: Directory - previous: Maybe -} + next: Maybe; + node: Directory; + previous: Maybe; +}; export type DirectoryFieldsEnum = | 'absolutePath' @@ -288,215 +294,232 @@ export type DirectoryFieldsEnum = | 'root' | 'size' | 'sourceInstanceName' - | 'uid' + | 'uid'; export type DirectoryFilterInput = { - absolutePath: InputMaybe - accessTime: InputMaybe - atime: InputMaybe - atimeMs: InputMaybe - base: InputMaybe - birthTime: InputMaybe - birthtime: InputMaybe - birthtimeMs: InputMaybe - changeTime: InputMaybe - children: InputMaybe - ctime: InputMaybe - ctimeMs: InputMaybe - dev: InputMaybe - dir: InputMaybe - ext: InputMaybe - extension: InputMaybe - gid: InputMaybe - id: InputMaybe - ino: InputMaybe - internal: InputMaybe - mode: InputMaybe - modifiedTime: InputMaybe - mtime: InputMaybe - mtimeMs: InputMaybe - name: InputMaybe - nlink: InputMaybe - parent: InputMaybe - prettySize: InputMaybe - rdev: InputMaybe - relativeDirectory: InputMaybe - relativePath: InputMaybe - root: InputMaybe - size: InputMaybe - sourceInstanceName: InputMaybe - uid: InputMaybe -} + absolutePath: InputMaybe; + accessTime: InputMaybe; + atime: InputMaybe; + atimeMs: InputMaybe; + base: InputMaybe; + birthTime: InputMaybe; + birthtime: InputMaybe; + birthtimeMs: InputMaybe; + changeTime: InputMaybe; + children: InputMaybe; + ctime: InputMaybe; + ctimeMs: InputMaybe; + dev: InputMaybe; + dir: InputMaybe; + ext: InputMaybe; + extension: InputMaybe; + gid: InputMaybe; + id: InputMaybe; + ino: InputMaybe; + internal: InputMaybe; + mode: InputMaybe; + modifiedTime: InputMaybe; + mtime: InputMaybe; + mtimeMs: InputMaybe; + name: InputMaybe; + nlink: InputMaybe; + parent: InputMaybe; + prettySize: InputMaybe; + rdev: InputMaybe; + relativeDirectory: InputMaybe; + relativePath: InputMaybe; + root: InputMaybe; + size: InputMaybe; + sourceInstanceName: InputMaybe; + uid: InputMaybe; +}; export type DirectoryGroupConnection = { - distinct: Array - edges: Array - field: Scalars['String'] - fieldValue: Maybe - group: Array - max: Maybe - min: Maybe - nodes: Array - pageInfo: PageInfo - sum: Maybe - totalCount: Scalars['Int'] -} + distinct: Array; + edges: Array; + field: Scalars['String']; + fieldValue: Maybe; + group: Array; + max: Maybe; + min: Maybe; + nodes: Array; + pageInfo: PageInfo; + sum: Maybe; + totalCount: Scalars['Int']; +}; + export type DirectoryGroupConnectionDistinctArgs = { - field: DirectoryFieldsEnum -} + field: DirectoryFieldsEnum; +}; + export type DirectoryGroupConnectionGroupArgs = { - field: DirectoryFieldsEnum - limit: InputMaybe - skip: InputMaybe -} + field: DirectoryFieldsEnum; + limit: InputMaybe; + skip: InputMaybe; +}; + export type DirectoryGroupConnectionMaxArgs = { - field: DirectoryFieldsEnum -} + field: DirectoryFieldsEnum; +}; + export type DirectoryGroupConnectionMinArgs = { - field: DirectoryFieldsEnum -} + field: DirectoryFieldsEnum; +}; + export type DirectoryGroupConnectionSumArgs = { - field: DirectoryFieldsEnum -} + field: DirectoryFieldsEnum; +}; export type DirectorySortInput = { - fields: InputMaybe>> - order: InputMaybe>> -} + fields: InputMaybe>>; + order: InputMaybe>>; +}; export type File = Node & { - absolutePath: Scalars['String'] - accessTime: Scalars['Date'] - atime: Scalars['Date'] - atimeMs: Scalars['Float'] - base: Scalars['String'] - birthTime: Scalars['Date'] + absolutePath: Scalars['String']; + accessTime: Scalars['Date']; + atime: Scalars['Date']; + atimeMs: Scalars['Float']; + base: Scalars['String']; + birthTime: Scalars['Date']; /** @deprecated Use `birthTime` instead */ - birthtime: Maybe + birthtime: Maybe; /** @deprecated Use `birthTime` instead */ - birthtimeMs: Maybe - changeTime: Scalars['Date'] - children: Array - ctime: Scalars['Date'] - ctimeMs: Scalars['Float'] - dev: Scalars['Int'] - dir: Scalars['String'] - ext: Scalars['String'] - extension: Scalars['String'] - gid: Scalars['Int'] - id: Scalars['ID'] - ino: Scalars['Float'] - internal: Internal - mode: Scalars['Int'] - modifiedTime: Scalars['Date'] - mtime: Scalars['Date'] - mtimeMs: Scalars['Float'] - name: Scalars['String'] - nlink: Scalars['Int'] - parent: Maybe - prettySize: Scalars['String'] - rdev: Scalars['Int'] - relativeDirectory: Scalars['String'] - relativePath: Scalars['String'] - root: Scalars['String'] - size: Scalars['Int'] - sourceInstanceName: Scalars['String'] - uid: Scalars['Int'] -} + birthtimeMs: Maybe; + changeTime: Scalars['Date']; + children: Array; + ctime: Scalars['Date']; + ctimeMs: Scalars['Float']; + dev: Scalars['Int']; + dir: Scalars['String']; + ext: Scalars['String']; + extension: Scalars['String']; + gid: Scalars['Int']; + id: Scalars['ID']; + ino: Scalars['Float']; + internal: Internal; + mode: Scalars['Int']; + modifiedTime: Scalars['Date']; + mtime: Scalars['Date']; + mtimeMs: Scalars['Float']; + name: Scalars['String']; + nlink: Scalars['Int']; + parent: Maybe; + prettySize: Scalars['String']; + rdev: Scalars['Int']; + relativeDirectory: Scalars['String']; + relativePath: Scalars['String']; + root: Scalars['String']; + size: Scalars['Int']; + sourceInstanceName: Scalars['String']; + uid: Scalars['Int']; +}; + export type FileAccessTimeArgs = { - difference: InputMaybe - formatString: InputMaybe - fromNow: InputMaybe - locale: InputMaybe -} + difference: InputMaybe; + formatString: InputMaybe; + fromNow: InputMaybe; + locale: InputMaybe; +}; + export type FileAtimeArgs = { - difference: InputMaybe - formatString: InputMaybe - fromNow: InputMaybe - locale: InputMaybe -} + difference: InputMaybe; + formatString: InputMaybe; + fromNow: InputMaybe; + locale: InputMaybe; +}; + export type FileBirthTimeArgs = { - difference: InputMaybe - formatString: InputMaybe - fromNow: InputMaybe - locale: InputMaybe -} + difference: InputMaybe; + formatString: InputMaybe; + fromNow: InputMaybe; + locale: InputMaybe; +}; + export type FileChangeTimeArgs = { - difference: InputMaybe - formatString: InputMaybe - fromNow: InputMaybe - locale: InputMaybe -} + difference: InputMaybe; + formatString: InputMaybe; + fromNow: InputMaybe; + locale: InputMaybe; +}; + export type FileCtimeArgs = { - difference: InputMaybe - formatString: InputMaybe - fromNow: InputMaybe - locale: InputMaybe -} + difference: InputMaybe; + formatString: InputMaybe; + fromNow: InputMaybe; + locale: InputMaybe; +}; + export type FileModifiedTimeArgs = { - difference: InputMaybe - formatString: InputMaybe - fromNow: InputMaybe - locale: InputMaybe -} + difference: InputMaybe; + formatString: InputMaybe; + fromNow: InputMaybe; + locale: InputMaybe; +}; + export type FileMtimeArgs = { - difference: InputMaybe - formatString: InputMaybe - fromNow: InputMaybe - locale: InputMaybe -} + difference: InputMaybe; + formatString: InputMaybe; + fromNow: InputMaybe; + locale: InputMaybe; +}; export type FileConnection = { - distinct: Array - edges: Array - group: Array - max: Maybe - min: Maybe - nodes: Array - pageInfo: PageInfo - sum: Maybe - totalCount: Scalars['Int'] -} + distinct: Array; + edges: Array; + group: Array; + max: Maybe; + min: Maybe; + nodes: Array; + pageInfo: PageInfo; + sum: Maybe; + totalCount: Scalars['Int']; +}; + export type FileConnectionDistinctArgs = { - field: FileFieldsEnum -} + field: FileFieldsEnum; +}; + export type FileConnectionGroupArgs = { - field: FileFieldsEnum - limit: InputMaybe - skip: InputMaybe -} + field: FileFieldsEnum; + limit: InputMaybe; + skip: InputMaybe; +}; + export type FileConnectionMaxArgs = { - field: FileFieldsEnum -} + field: FileFieldsEnum; +}; + export type FileConnectionMinArgs = { - field: FileFieldsEnum -} + field: FileFieldsEnum; +}; + export type FileConnectionSumArgs = { - field: FileFieldsEnum -} + field: FileFieldsEnum; +}; export type FileEdge = { - next: Maybe - node: File - previous: Maybe -} + next: Maybe; + node: File; + previous: Maybe; +}; export type FileFieldsEnum = | 'absolutePath' @@ -615,588 +638,647 @@ export type FileFieldsEnum = | 'root' | 'size' | 'sourceInstanceName' - | 'uid' + | 'uid'; export type FileFilterInput = { - absolutePath: InputMaybe - accessTime: InputMaybe - atime: InputMaybe - atimeMs: InputMaybe - base: InputMaybe - birthTime: InputMaybe - birthtime: InputMaybe - birthtimeMs: InputMaybe - changeTime: InputMaybe - children: InputMaybe - ctime: InputMaybe - ctimeMs: InputMaybe - dev: InputMaybe - dir: InputMaybe - ext: InputMaybe - extension: InputMaybe - gid: InputMaybe - id: InputMaybe - ino: InputMaybe - internal: InputMaybe - mode: InputMaybe - modifiedTime: InputMaybe - mtime: InputMaybe - mtimeMs: InputMaybe - name: InputMaybe - nlink: InputMaybe - parent: InputMaybe - prettySize: InputMaybe - rdev: InputMaybe - relativeDirectory: InputMaybe - relativePath: InputMaybe - root: InputMaybe - size: InputMaybe - sourceInstanceName: InputMaybe - uid: InputMaybe -} + absolutePath: InputMaybe; + accessTime: InputMaybe; + atime: InputMaybe; + atimeMs: InputMaybe; + base: InputMaybe; + birthTime: InputMaybe; + birthtime: InputMaybe; + birthtimeMs: InputMaybe; + changeTime: InputMaybe; + children: InputMaybe; + ctime: InputMaybe; + ctimeMs: InputMaybe; + dev: InputMaybe; + dir: InputMaybe; + ext: InputMaybe; + extension: InputMaybe; + gid: InputMaybe; + id: InputMaybe; + ino: InputMaybe; + internal: InputMaybe; + mode: InputMaybe; + modifiedTime: InputMaybe; + mtime: InputMaybe; + mtimeMs: InputMaybe; + name: InputMaybe; + nlink: InputMaybe; + parent: InputMaybe; + prettySize: InputMaybe; + rdev: InputMaybe; + relativeDirectory: InputMaybe; + relativePath: InputMaybe; + root: InputMaybe; + size: InputMaybe; + sourceInstanceName: InputMaybe; + uid: InputMaybe; +}; export type FileGroupConnection = { - distinct: Array - edges: Array - field: Scalars['String'] - fieldValue: Maybe - group: Array - max: Maybe - min: Maybe - nodes: Array - pageInfo: PageInfo - sum: Maybe - totalCount: Scalars['Int'] -} + distinct: Array; + edges: Array; + field: Scalars['String']; + fieldValue: Maybe; + group: Array; + max: Maybe; + min: Maybe; + nodes: Array; + pageInfo: PageInfo; + sum: Maybe; + totalCount: Scalars['Int']; +}; + export type FileGroupConnectionDistinctArgs = { - field: FileFieldsEnum -} + field: FileFieldsEnum; +}; + export type FileGroupConnectionGroupArgs = { - field: FileFieldsEnum - limit: InputMaybe - skip: InputMaybe -} + field: FileFieldsEnum; + limit: InputMaybe; + skip: InputMaybe; +}; + export type FileGroupConnectionMaxArgs = { - field: FileFieldsEnum -} + field: FileFieldsEnum; +}; + export type FileGroupConnectionMinArgs = { - field: FileFieldsEnum -} + field: FileFieldsEnum; +}; + export type FileGroupConnectionSumArgs = { - field: FileFieldsEnum -} + field: FileFieldsEnum; +}; export type FileSortInput = { - fields: InputMaybe>> - order: InputMaybe>> -} + fields: InputMaybe>>; + order: InputMaybe>>; +}; export type FloatQueryOperatorInput = { - eq: InputMaybe - gt: InputMaybe - gte: InputMaybe - in: InputMaybe>> - lt: InputMaybe - lte: InputMaybe - ne: InputMaybe - nin: InputMaybe>> -} + eq: InputMaybe; + gt: InputMaybe; + gte: InputMaybe; + in: InputMaybe>>; + lt: InputMaybe; + lte: InputMaybe; + ne: InputMaybe; + nin: InputMaybe>>; +}; /** Shopping cart input. */ export type IStoreCart = { /** Order information, including `orderNumber` and `acceptedOffer`. */ - order: IStoreOrder -} + order: IStoreOrder; +}; + +export type IStoreCurrency = { + /** Currency code, e.g: USD */ + code: Scalars['String']; + /** Currency symbol, e.g: $ */ + symbol: Scalars['String']; +}; /** Image input. */ export type IStoreImage = { /** Alias for the input image. */ - alternateName: Scalars['String'] + alternateName: Scalars['String']; /** Image input URL. */ - url: Scalars['String'] -} + url: Scalars['String']; +}; /** Offer input. */ export type IStoreOffer = { /** Information on the item being offered. */ - itemOffered: IStoreProduct + itemOffered: IStoreProduct; /** This is displayed as the "from" price in the context of promotions' price comparison. This may change before it reaches the shelf. */ - listPrice: Scalars['Float'] + listPrice: Scalars['Float']; /** Also known as spot price. */ - price: Scalars['Float'] + price: Scalars['Float']; /** Number of items offered. */ - quantity: Scalars['Int'] + quantity: Scalars['Int']; /** Seller responsible for the offer. */ - seller: IStoreOrganization -} + seller: IStoreOrganization; +}; /** Offer input. */ export type IStoreOrder = { /** Array with information on each accepted offer. */ - acceptedOffer: Array + acceptedOffer: Array; /** ID of the order in [VTEX order management](https://help.vtex.com/en/tutorial/license-manager-resources-oms--60QcBsvWeum02cFi3GjBzg#). */ - orderNumber: Scalars['String'] -} + orderNumber: Scalars['String']; +}; /** Organization input. */ export type IStoreOrganization = { /** Organization ID. */ - identifier: Scalars['String'] -} + identifier: Scalars['String']; +}; + +/** Client profile data. */ +export type IStorePerson = { + /** Client email. */ + email: Scalars['String']; + /** Client last name. */ + familyName: Scalars['String']; + /** Client first name. */ + givenName: Scalars['String']; + /** Client ID. */ + id: Scalars['String']; +}; /** Product input. Products are variants within product groups, equivalent to VTEX [SKUs](https://help.vtex.com/en/tutorial/what-is-an-sku--1K75s4RXAQyOuGUYKMM68u#). For example, you may have a **Shirt** product group with associated products such as **Blue shirt size L**, **Green shirt size XL** and so on. */ export type IStoreProduct = { /** Custom Product Additional Properties. */ - additionalProperty: InputMaybe> + additionalProperty: InputMaybe>; /** Array of product images. */ - image: Array + image: Array; /** Product name. */ - name: Scalars['String'] + name: Scalars['String']; /** Stock Keeping Unit. Merchant-specific ID for the product. */ - sku: Scalars['String'] -} + sku: Scalars['String']; +}; export type IStorePropertyValue = { /** Property name. */ - name: Scalars['String'] + name: Scalars['String']; + /** Property id. This propert changes according to the content of the object. */ + propertyID: InputMaybe; /** Property value. May hold a string or the string representation of an object. */ - value: Scalars['ObjectOrString'] + value: Scalars['ObjectOrString']; /** Specifies the nature of the value */ - valueReference: Scalars['String'] -} + valueReference: Scalars['String']; +}; /** Selected facet input. */ export type IStoreSelectedFacet = { - key: Scalars['String'] - value: Scalars['String'] -} + key: Scalars['String']; + value: Scalars['String']; +}; /** Session input. */ export type IStoreSession = { /** Session input channel. */ - channel: InputMaybe + channel: InputMaybe; /** Session input country. */ - country: InputMaybe + country: Scalars['String']; + /** Session input currency. */ + currency: IStoreCurrency; + /** Session input locale. */ + locale: Scalars['String']; /** Session input postal code. */ - postalCode: InputMaybe -} + person: InputMaybe; + /** Session input postal code. */ + postalCode: InputMaybe; +}; export type IntQueryOperatorInput = { - eq: InputMaybe - gt: InputMaybe - gte: InputMaybe - in: InputMaybe>> - lt: InputMaybe - lte: InputMaybe - ne: InputMaybe - nin: InputMaybe>> -} + eq: InputMaybe; + gt: InputMaybe; + gte: InputMaybe; + in: InputMaybe>>; + lt: InputMaybe; + lte: InputMaybe; + ne: InputMaybe; + nin: InputMaybe>>; +}; export type Internal = { - content: Maybe - contentDigest: Scalars['String'] - description: Maybe - fieldOwners: Maybe>> - ignoreType: Maybe - mediaType: Maybe - owner: Scalars['String'] - type: Scalars['String'] -} + content: Maybe; + contentDigest: Scalars['String']; + description: Maybe; + fieldOwners: Maybe>>; + ignoreType: Maybe; + mediaType: Maybe; + owner: Scalars['String']; + type: Scalars['String']; +}; export type InternalFilterInput = { - content: InputMaybe - contentDigest: InputMaybe - description: InputMaybe - fieldOwners: InputMaybe - ignoreType: InputMaybe - mediaType: InputMaybe - owner: InputMaybe - type: InputMaybe -} + content: InputMaybe; + contentDigest: InputMaybe; + description: InputMaybe; + fieldOwners: InputMaybe; + ignoreType: InputMaybe; + mediaType: InputMaybe; + owner: InputMaybe; + type: InputMaybe; +}; export type JsonQueryOperatorInput = { - eq: InputMaybe - glob: InputMaybe - in: InputMaybe>> - ne: InputMaybe - nin: InputMaybe>> - regex: InputMaybe -} + eq: InputMaybe; + glob: InputMaybe; + in: InputMaybe>>; + ne: InputMaybe; + nin: InputMaybe>>; + regex: InputMaybe; +}; export type Mutation = { - /** Update session information. */ - updateSession: StoreSession /** Returns the order if anything has changed in it, or `null` if the order is valid. */ - validateCart: Maybe -} + validateCart: Maybe; + /** Validate session information. */ + validateSession: Maybe; +}; -export type MutationUpdateSessionArgs = { - session: IStoreSession -} export type MutationValidateCartArgs = { - cart: IStoreCart -} + cart: IStoreCart; +}; + + +export type MutationValidateSessionArgs = { + search: Scalars['String']; + session: IStoreSession; +}; /** Node Interface */ export type Node = { - children: Array - id: Scalars['ID'] - internal: Internal - parent: Maybe -} + children: Array; + id: Scalars['ID']; + internal: Internal; + parent: Maybe; +}; export type NodeFilterInput = { - children: InputMaybe - id: InputMaybe - internal: InputMaybe - parent: InputMaybe -} + children: InputMaybe; + id: InputMaybe; + internal: InputMaybe; + parent: InputMaybe; +}; export type NodeFilterListInput = { - elemMatch: InputMaybe -} + elemMatch: InputMaybe; +}; export type PageInfo = { - currentPage: Scalars['Int'] - hasNextPage: Scalars['Boolean'] - hasPreviousPage: Scalars['Boolean'] - itemCount: Scalars['Int'] - pageCount: Scalars['Int'] - perPage: Maybe - totalCount: Scalars['Int'] -} + currentPage: Scalars['Int']; + hasNextPage: Scalars['Boolean']; + hasPreviousPage: Scalars['Boolean']; + itemCount: Scalars['Int']; + pageCount: Scalars['Int']; + perPage: Maybe; + totalCount: Scalars['Int']; +}; export type Query = { /** All collections query. */ - allCollections: StoreCollectionConnection - allDirectory: DirectoryConnection - allFile: FileConnection + allCollections: StoreCollectionConnection; + allDirectory: DirectoryConnection; + allFile: FileConnection; /** All products query. */ - allProducts: StoreProductConnection - allSite: SiteConnection - allSiteBuildMetadata: SiteBuildMetadataConnection - allSiteFunction: SiteFunctionConnection - allSitePage: SitePageConnection - allSitePlugin: SitePluginConnection + allProducts: StoreProductConnection; + allSite: SiteConnection; + allSiteBuildMetadata: SiteBuildMetadataConnection; + allSiteFunction: SiteFunctionConnection; + allSitePage: SitePageConnection; + allSitePlugin: SitePluginConnection; /** Collection query. */ - collection: StoreCollection - directory: Maybe - file: Maybe - /** Person query. */ - person: Maybe + collection: StoreCollection; + directory: Maybe; + file: Maybe; /** Product query. */ - product: StoreProduct + product: StoreProduct; /** Search query. */ - search: StoreSearchResult - site: Maybe - siteBuildMetadata: Maybe - siteFunction: Maybe - sitePage: Maybe - sitePlugin: Maybe -} + search: StoreSearchResult; + site: Maybe; + siteBuildMetadata: Maybe; + siteFunction: Maybe; + sitePage: Maybe; + sitePlugin: Maybe; +}; + export type QueryAllCollectionsArgs = { - after: InputMaybe - first: Scalars['Int'] -} + after: InputMaybe; + first: Scalars['Int']; +}; + export type QueryAllDirectoryArgs = { - filter: InputMaybe - limit: InputMaybe - skip: InputMaybe - sort: InputMaybe -} + filter: InputMaybe; + limit: InputMaybe; + skip: InputMaybe; + sort: InputMaybe; +}; + export type QueryAllFileArgs = { - filter: InputMaybe - limit: InputMaybe - skip: InputMaybe - sort: InputMaybe -} + filter: InputMaybe; + limit: InputMaybe; + skip: InputMaybe; + sort: InputMaybe; +}; + export type QueryAllProductsArgs = { - after: InputMaybe - first: Scalars['Int'] -} + after: InputMaybe; + first: Scalars['Int']; +}; + export type QueryAllSiteArgs = { - filter: InputMaybe - limit: InputMaybe - skip: InputMaybe - sort: InputMaybe -} + filter: InputMaybe; + limit: InputMaybe; + skip: InputMaybe; + sort: InputMaybe; +}; + export type QueryAllSiteBuildMetadataArgs = { - filter: InputMaybe - limit: InputMaybe - skip: InputMaybe - sort: InputMaybe -} + filter: InputMaybe; + limit: InputMaybe; + skip: InputMaybe; + sort: InputMaybe; +}; + export type QueryAllSiteFunctionArgs = { - filter: InputMaybe - limit: InputMaybe - skip: InputMaybe - sort: InputMaybe -} + filter: InputMaybe; + limit: InputMaybe; + skip: InputMaybe; + sort: InputMaybe; +}; + export type QueryAllSitePageArgs = { - filter: InputMaybe - limit: InputMaybe - skip: InputMaybe - sort: InputMaybe -} + filter: InputMaybe; + limit: InputMaybe; + skip: InputMaybe; + sort: InputMaybe; +}; + export type QueryAllSitePluginArgs = { - filter: InputMaybe - limit: InputMaybe - skip: InputMaybe - sort: InputMaybe -} + filter: InputMaybe; + limit: InputMaybe; + skip: InputMaybe; + sort: InputMaybe; +}; + export type QueryCollectionArgs = { - slug: Scalars['String'] -} + slug: Scalars['String']; +}; + export type QueryDirectoryArgs = { - absolutePath: InputMaybe - accessTime: InputMaybe - atime: InputMaybe - atimeMs: InputMaybe - base: InputMaybe - birthTime: InputMaybe - birthtime: InputMaybe - birthtimeMs: InputMaybe - changeTime: InputMaybe - children: InputMaybe - ctime: InputMaybe - ctimeMs: InputMaybe - dev: InputMaybe - dir: InputMaybe - ext: InputMaybe - extension: InputMaybe - gid: InputMaybe - id: InputMaybe - ino: InputMaybe - internal: InputMaybe - mode: InputMaybe - modifiedTime: InputMaybe - mtime: InputMaybe - mtimeMs: InputMaybe - name: InputMaybe - nlink: InputMaybe - parent: InputMaybe - prettySize: InputMaybe - rdev: InputMaybe - relativeDirectory: InputMaybe - relativePath: InputMaybe - root: InputMaybe - size: InputMaybe - sourceInstanceName: InputMaybe - uid: InputMaybe -} + absolutePath: InputMaybe; + accessTime: InputMaybe; + atime: InputMaybe; + atimeMs: InputMaybe; + base: InputMaybe; + birthTime: InputMaybe; + birthtime: InputMaybe; + birthtimeMs: InputMaybe; + changeTime: InputMaybe; + children: InputMaybe; + ctime: InputMaybe; + ctimeMs: InputMaybe; + dev: InputMaybe; + dir: InputMaybe; + ext: InputMaybe; + extension: InputMaybe; + gid: InputMaybe; + id: InputMaybe; + ino: InputMaybe; + internal: InputMaybe; + mode: InputMaybe; + modifiedTime: InputMaybe; + mtime: InputMaybe; + mtimeMs: InputMaybe; + name: InputMaybe; + nlink: InputMaybe; + parent: InputMaybe; + prettySize: InputMaybe; + rdev: InputMaybe; + relativeDirectory: InputMaybe; + relativePath: InputMaybe; + root: InputMaybe; + size: InputMaybe; + sourceInstanceName: InputMaybe; + uid: InputMaybe; +}; + export type QueryFileArgs = { - absolutePath: InputMaybe - accessTime: InputMaybe - atime: InputMaybe - atimeMs: InputMaybe - base: InputMaybe - birthTime: InputMaybe - birthtime: InputMaybe - birthtimeMs: InputMaybe - changeTime: InputMaybe - children: InputMaybe - ctime: InputMaybe - ctimeMs: InputMaybe - dev: InputMaybe - dir: InputMaybe - ext: InputMaybe - extension: InputMaybe - gid: InputMaybe - id: InputMaybe - ino: InputMaybe - internal: InputMaybe - mode: InputMaybe - modifiedTime: InputMaybe - mtime: InputMaybe - mtimeMs: InputMaybe - name: InputMaybe - nlink: InputMaybe - parent: InputMaybe - prettySize: InputMaybe - rdev: InputMaybe - relativeDirectory: InputMaybe - relativePath: InputMaybe - root: InputMaybe - size: InputMaybe - sourceInstanceName: InputMaybe - uid: InputMaybe -} + absolutePath: InputMaybe; + accessTime: InputMaybe; + atime: InputMaybe; + atimeMs: InputMaybe; + base: InputMaybe; + birthTime: InputMaybe; + birthtime: InputMaybe; + birthtimeMs: InputMaybe; + changeTime: InputMaybe; + children: InputMaybe; + ctime: InputMaybe; + ctimeMs: InputMaybe; + dev: InputMaybe; + dir: InputMaybe; + ext: InputMaybe; + extension: InputMaybe; + gid: InputMaybe; + id: InputMaybe; + ino: InputMaybe; + internal: InputMaybe; + mode: InputMaybe; + modifiedTime: InputMaybe; + mtime: InputMaybe; + mtimeMs: InputMaybe; + name: InputMaybe; + nlink: InputMaybe; + parent: InputMaybe; + prettySize: InputMaybe; + rdev: InputMaybe; + relativeDirectory: InputMaybe; + relativePath: InputMaybe; + root: InputMaybe; + size: InputMaybe; + sourceInstanceName: InputMaybe; + uid: InputMaybe; +}; + export type QueryProductArgs = { - locator: Array -} + locator: Array; +}; + export type QuerySearchArgs = { - after: InputMaybe - first: Scalars['Int'] - selectedFacets: InputMaybe> - sort?: InputMaybe - term?: InputMaybe -} + after: InputMaybe; + first: Scalars['Int']; + selectedFacets: InputMaybe>; + sort?: InputMaybe; + term?: InputMaybe; +}; + export type QuerySiteArgs = { - buildTime: InputMaybe - children: InputMaybe - flags: InputMaybe - host: InputMaybe - id: InputMaybe - internal: InputMaybe - jsxRuntime: InputMaybe - parent: InputMaybe - pathPrefix: InputMaybe - polyfill: InputMaybe - port: InputMaybe - siteMetadata: InputMaybe - trailingSlash: InputMaybe -} + buildTime: InputMaybe; + children: InputMaybe; + flags: InputMaybe; + host: InputMaybe; + id: InputMaybe; + internal: InputMaybe; + jsxRuntime: InputMaybe; + parent: InputMaybe; + pathPrefix: InputMaybe; + polyfill: InputMaybe; + port: InputMaybe; + siteMetadata: InputMaybe; + trailingSlash: InputMaybe; +}; + export type QuerySiteBuildMetadataArgs = { - buildTime: InputMaybe - children: InputMaybe - id: InputMaybe - internal: InputMaybe - parent: InputMaybe -} + buildTime: InputMaybe; + children: InputMaybe; + id: InputMaybe; + internal: InputMaybe; + parent: InputMaybe; +}; + export type QuerySiteFunctionArgs = { - absoluteCompiledFilePath: InputMaybe - children: InputMaybe - functionRoute: InputMaybe - id: InputMaybe - internal: InputMaybe - matchPath: InputMaybe - originalAbsoluteFilePath: InputMaybe - originalRelativeFilePath: InputMaybe - parent: InputMaybe - pluginName: InputMaybe - relativeCompiledFilePath: InputMaybe -} + absoluteCompiledFilePath: InputMaybe; + children: InputMaybe; + functionRoute: InputMaybe; + id: InputMaybe; + internal: InputMaybe; + matchPath: InputMaybe; + originalAbsoluteFilePath: InputMaybe; + originalRelativeFilePath: InputMaybe; + parent: InputMaybe; + pluginName: InputMaybe; + relativeCompiledFilePath: InputMaybe; +}; + export type QuerySitePageArgs = { - children: InputMaybe - component: InputMaybe - componentChunkName: InputMaybe - id: InputMaybe - internal: InputMaybe - internalComponentName: InputMaybe - matchPath: InputMaybe - pageContext: InputMaybe - parent: InputMaybe - path: InputMaybe - pluginCreator: InputMaybe -} + children: InputMaybe; + component: InputMaybe; + componentChunkName: InputMaybe; + id: InputMaybe; + internal: InputMaybe; + internalComponentName: InputMaybe; + matchPath: InputMaybe; + pageContext: InputMaybe; + parent: InputMaybe; + path: InputMaybe; + pluginCreator: InputMaybe; +}; + export type QuerySitePluginArgs = { - browserAPIs: InputMaybe - children: InputMaybe - id: InputMaybe - internal: InputMaybe - name: InputMaybe - nodeAPIs: InputMaybe - packageJson: InputMaybe - parent: InputMaybe - pluginFilepath: InputMaybe - pluginOptions: InputMaybe - resolve: InputMaybe - ssrAPIs: InputMaybe - version: InputMaybe -} + browserAPIs: InputMaybe; + children: InputMaybe; + id: InputMaybe; + internal: InputMaybe; + name: InputMaybe; + nodeAPIs: InputMaybe; + packageJson: InputMaybe; + parent: InputMaybe; + pluginFilepath: InputMaybe; + pluginOptions: InputMaybe; + resolve: InputMaybe; + ssrAPIs: InputMaybe; + version: InputMaybe; +}; export type Site = Node & { - buildTime: Maybe - children: Array - flags: Maybe - host: Maybe - id: Scalars['ID'] - internal: Internal - jsxRuntime: Maybe - parent: Maybe - pathPrefix: Maybe - polyfill: Maybe - port: Maybe - siteMetadata: Maybe - trailingSlash: Maybe -} + buildTime: Maybe; + children: Array; + flags: Maybe; + host: Maybe; + id: Scalars['ID']; + internal: Internal; + jsxRuntime: Maybe; + parent: Maybe; + pathPrefix: Maybe; + polyfill: Maybe; + port: Maybe; + siteMetadata: Maybe; + trailingSlash: Maybe; +}; + export type SiteBuildTimeArgs = { - difference: InputMaybe - formatString: InputMaybe - fromNow: InputMaybe - locale: InputMaybe -} + difference: InputMaybe; + formatString: InputMaybe; + fromNow: InputMaybe; + locale: InputMaybe; +}; export type SiteBuildMetadata = Node & { - buildTime: Maybe - children: Array - id: Scalars['ID'] - internal: Internal - parent: Maybe -} + buildTime: Maybe; + children: Array; + id: Scalars['ID']; + internal: Internal; + parent: Maybe; +}; + export type SiteBuildMetadataBuildTimeArgs = { - difference: InputMaybe - formatString: InputMaybe - fromNow: InputMaybe - locale: InputMaybe -} + difference: InputMaybe; + formatString: InputMaybe; + fromNow: InputMaybe; + locale: InputMaybe; +}; export type SiteBuildMetadataConnection = { - distinct: Array - edges: Array - group: Array - max: Maybe - min: Maybe - nodes: Array - pageInfo: PageInfo - sum: Maybe - totalCount: Scalars['Int'] -} + distinct: Array; + edges: Array; + group: Array; + max: Maybe; + min: Maybe; + nodes: Array; + pageInfo: PageInfo; + sum: Maybe; + totalCount: Scalars['Int']; +}; + export type SiteBuildMetadataConnectionDistinctArgs = { - field: SiteBuildMetadataFieldsEnum -} + field: SiteBuildMetadataFieldsEnum; +}; + export type SiteBuildMetadataConnectionGroupArgs = { - field: SiteBuildMetadataFieldsEnum - limit: InputMaybe - skip: InputMaybe -} + field: SiteBuildMetadataFieldsEnum; + limit: InputMaybe; + skip: InputMaybe; +}; + export type SiteBuildMetadataConnectionMaxArgs = { - field: SiteBuildMetadataFieldsEnum -} + field: SiteBuildMetadataFieldsEnum; +}; + export type SiteBuildMetadataConnectionMinArgs = { - field: SiteBuildMetadataFieldsEnum -} + field: SiteBuildMetadataFieldsEnum; +}; + export type SiteBuildMetadataConnectionSumArgs = { - field: SiteBuildMetadataFieldsEnum -} + field: SiteBuildMetadataFieldsEnum; +}; export type SiteBuildMetadataEdge = { - next: Maybe - node: SiteBuildMetadata - previous: Maybe -} + next: Maybe; + node: SiteBuildMetadata; + previous: Maybe; +}; export type SiteBuildMetadataFieldsEnum = | 'buildTime' @@ -1285,96 +1367,106 @@ export type SiteBuildMetadataFieldsEnum = | 'parent___parent___internal___owner' | 'parent___parent___internal___type' | 'parent___parent___parent___children' - | 'parent___parent___parent___id' + | 'parent___parent___parent___id'; export type SiteBuildMetadataFilterInput = { - buildTime: InputMaybe - children: InputMaybe - id: InputMaybe - internal: InputMaybe - parent: InputMaybe -} + buildTime: InputMaybe; + children: InputMaybe; + id: InputMaybe; + internal: InputMaybe; + parent: InputMaybe; +}; export type SiteBuildMetadataGroupConnection = { - distinct: Array - edges: Array - field: Scalars['String'] - fieldValue: Maybe - group: Array - max: Maybe - min: Maybe - nodes: Array - pageInfo: PageInfo - sum: Maybe - totalCount: Scalars['Int'] -} + distinct: Array; + edges: Array; + field: Scalars['String']; + fieldValue: Maybe; + group: Array; + max: Maybe; + min: Maybe; + nodes: Array; + pageInfo: PageInfo; + sum: Maybe; + totalCount: Scalars['Int']; +}; + export type SiteBuildMetadataGroupConnectionDistinctArgs = { - field: SiteBuildMetadataFieldsEnum -} + field: SiteBuildMetadataFieldsEnum; +}; + export type SiteBuildMetadataGroupConnectionGroupArgs = { - field: SiteBuildMetadataFieldsEnum - limit: InputMaybe - skip: InputMaybe -} + field: SiteBuildMetadataFieldsEnum; + limit: InputMaybe; + skip: InputMaybe; +}; + export type SiteBuildMetadataGroupConnectionMaxArgs = { - field: SiteBuildMetadataFieldsEnum -} + field: SiteBuildMetadataFieldsEnum; +}; + export type SiteBuildMetadataGroupConnectionMinArgs = { - field: SiteBuildMetadataFieldsEnum -} + field: SiteBuildMetadataFieldsEnum; +}; + export type SiteBuildMetadataGroupConnectionSumArgs = { - field: SiteBuildMetadataFieldsEnum -} + field: SiteBuildMetadataFieldsEnum; +}; export type SiteBuildMetadataSortInput = { - fields: InputMaybe>> - order: InputMaybe>> -} + fields: InputMaybe>>; + order: InputMaybe>>; +}; export type SiteConnection = { - distinct: Array - edges: Array - group: Array - max: Maybe - min: Maybe - nodes: Array - pageInfo: PageInfo - sum: Maybe - totalCount: Scalars['Int'] -} + distinct: Array; + edges: Array; + group: Array; + max: Maybe; + min: Maybe; + nodes: Array; + pageInfo: PageInfo; + sum: Maybe; + totalCount: Scalars['Int']; +}; + export type SiteConnectionDistinctArgs = { - field: SiteFieldsEnum -} + field: SiteFieldsEnum; +}; + export type SiteConnectionGroupArgs = { - field: SiteFieldsEnum - limit: InputMaybe - skip: InputMaybe -} + field: SiteFieldsEnum; + limit: InputMaybe; + skip: InputMaybe; +}; + export type SiteConnectionMaxArgs = { - field: SiteFieldsEnum -} + field: SiteFieldsEnum; +}; + export type SiteConnectionMinArgs = { - field: SiteFieldsEnum -} + field: SiteFieldsEnum; +}; + export type SiteConnectionSumArgs = { - field: SiteFieldsEnum -} + field: SiteFieldsEnum; +}; export type SiteEdge = { - next: Maybe - node: Site - previous: Maybe -} + next: Maybe; + node: Site; + previous: Maybe; +}; export type SiteFieldsEnum = | 'buildTime' @@ -1476,87 +1568,92 @@ export type SiteFieldsEnum = | 'siteMetadata___siteUrl' | 'siteMetadata___title' | 'siteMetadata___titleTemplate' - | 'trailingSlash' + | 'trailingSlash'; export type SiteFilterInput = { - buildTime: InputMaybe - children: InputMaybe - flags: InputMaybe - host: InputMaybe - id: InputMaybe - internal: InputMaybe - jsxRuntime: InputMaybe - parent: InputMaybe - pathPrefix: InputMaybe - polyfill: InputMaybe - port: InputMaybe - siteMetadata: InputMaybe - trailingSlash: InputMaybe -} + buildTime: InputMaybe; + children: InputMaybe; + flags: InputMaybe; + host: InputMaybe; + id: InputMaybe; + internal: InputMaybe; + jsxRuntime: InputMaybe; + parent: InputMaybe; + pathPrefix: InputMaybe; + polyfill: InputMaybe; + port: InputMaybe; + siteMetadata: InputMaybe; + trailingSlash: InputMaybe; +}; export type SiteFlags = { - FAST_DEV: Maybe - PARALLEL_SOURCING: Maybe -} + FAST_DEV: Maybe; + PARALLEL_SOURCING: Maybe; +}; export type SiteFlagsFilterInput = { - FAST_DEV: InputMaybe - PARALLEL_SOURCING: InputMaybe -} + FAST_DEV: InputMaybe; + PARALLEL_SOURCING: InputMaybe; +}; export type SiteFunction = Node & { - absoluteCompiledFilePath: Scalars['String'] - children: Array - functionRoute: Scalars['String'] - id: Scalars['ID'] - internal: Internal - matchPath: Maybe - originalAbsoluteFilePath: Scalars['String'] - originalRelativeFilePath: Scalars['String'] - parent: Maybe - pluginName: Scalars['String'] - relativeCompiledFilePath: Scalars['String'] -} + absoluteCompiledFilePath: Scalars['String']; + children: Array; + functionRoute: Scalars['String']; + id: Scalars['ID']; + internal: Internal; + matchPath: Maybe; + originalAbsoluteFilePath: Scalars['String']; + originalRelativeFilePath: Scalars['String']; + parent: Maybe; + pluginName: Scalars['String']; + relativeCompiledFilePath: Scalars['String']; +}; export type SiteFunctionConnection = { - distinct: Array - edges: Array - group: Array - max: Maybe - min: Maybe - nodes: Array - pageInfo: PageInfo - sum: Maybe - totalCount: Scalars['Int'] -} + distinct: Array; + edges: Array; + group: Array; + max: Maybe; + min: Maybe; + nodes: Array; + pageInfo: PageInfo; + sum: Maybe; + totalCount: Scalars['Int']; +}; + export type SiteFunctionConnectionDistinctArgs = { - field: SiteFunctionFieldsEnum -} + field: SiteFunctionFieldsEnum; +}; + export type SiteFunctionConnectionGroupArgs = { - field: SiteFunctionFieldsEnum - limit: InputMaybe - skip: InputMaybe -} + field: SiteFunctionFieldsEnum; + limit: InputMaybe; + skip: InputMaybe; +}; + export type SiteFunctionConnectionMaxArgs = { - field: SiteFunctionFieldsEnum -} + field: SiteFunctionFieldsEnum; +}; + export type SiteFunctionConnectionMinArgs = { - field: SiteFunctionFieldsEnum -} + field: SiteFunctionFieldsEnum; +}; + export type SiteFunctionConnectionSumArgs = { - field: SiteFunctionFieldsEnum -} + field: SiteFunctionFieldsEnum; +}; export type SiteFunctionEdge = { - next: Maybe - node: SiteFunction - previous: Maybe -} + next: Maybe; + node: SiteFunction; + previous: Maybe; +}; export type SiteFunctionFieldsEnum = | 'absoluteCompiledFilePath' @@ -1651,152 +1748,167 @@ export type SiteFunctionFieldsEnum = | 'parent___parent___parent___children' | 'parent___parent___parent___id' | 'pluginName' - | 'relativeCompiledFilePath' + | 'relativeCompiledFilePath'; export type SiteFunctionFilterInput = { - absoluteCompiledFilePath: InputMaybe - children: InputMaybe - functionRoute: InputMaybe - id: InputMaybe - internal: InputMaybe - matchPath: InputMaybe - originalAbsoluteFilePath: InputMaybe - originalRelativeFilePath: InputMaybe - parent: InputMaybe - pluginName: InputMaybe - relativeCompiledFilePath: InputMaybe -} + absoluteCompiledFilePath: InputMaybe; + children: InputMaybe; + functionRoute: InputMaybe; + id: InputMaybe; + internal: InputMaybe; + matchPath: InputMaybe; + originalAbsoluteFilePath: InputMaybe; + originalRelativeFilePath: InputMaybe; + parent: InputMaybe; + pluginName: InputMaybe; + relativeCompiledFilePath: InputMaybe; +}; export type SiteFunctionGroupConnection = { - distinct: Array - edges: Array - field: Scalars['String'] - fieldValue: Maybe - group: Array - max: Maybe - min: Maybe - nodes: Array - pageInfo: PageInfo - sum: Maybe - totalCount: Scalars['Int'] -} + distinct: Array; + edges: Array; + field: Scalars['String']; + fieldValue: Maybe; + group: Array; + max: Maybe; + min: Maybe; + nodes: Array; + pageInfo: PageInfo; + sum: Maybe; + totalCount: Scalars['Int']; +}; + export type SiteFunctionGroupConnectionDistinctArgs = { - field: SiteFunctionFieldsEnum -} + field: SiteFunctionFieldsEnum; +}; + export type SiteFunctionGroupConnectionGroupArgs = { - field: SiteFunctionFieldsEnum - limit: InputMaybe - skip: InputMaybe -} + field: SiteFunctionFieldsEnum; + limit: InputMaybe; + skip: InputMaybe; +}; + export type SiteFunctionGroupConnectionMaxArgs = { - field: SiteFunctionFieldsEnum -} + field: SiteFunctionFieldsEnum; +}; + export type SiteFunctionGroupConnectionMinArgs = { - field: SiteFunctionFieldsEnum -} + field: SiteFunctionFieldsEnum; +}; + export type SiteFunctionGroupConnectionSumArgs = { - field: SiteFunctionFieldsEnum -} + field: SiteFunctionFieldsEnum; +}; export type SiteFunctionSortInput = { - fields: InputMaybe>> - order: InputMaybe>> -} + fields: InputMaybe>>; + order: InputMaybe>>; +}; export type SiteGroupConnection = { - distinct: Array - edges: Array - field: Scalars['String'] - fieldValue: Maybe - group: Array - max: Maybe - min: Maybe - nodes: Array - pageInfo: PageInfo - sum: Maybe - totalCount: Scalars['Int'] -} + distinct: Array; + edges: Array; + field: Scalars['String']; + fieldValue: Maybe; + group: Array; + max: Maybe; + min: Maybe; + nodes: Array; + pageInfo: PageInfo; + sum: Maybe; + totalCount: Scalars['Int']; +}; + export type SiteGroupConnectionDistinctArgs = { - field: SiteFieldsEnum -} + field: SiteFieldsEnum; +}; + export type SiteGroupConnectionGroupArgs = { - field: SiteFieldsEnum - limit: InputMaybe - skip: InputMaybe -} + field: SiteFieldsEnum; + limit: InputMaybe; + skip: InputMaybe; +}; + export type SiteGroupConnectionMaxArgs = { - field: SiteFieldsEnum -} + field: SiteFieldsEnum; +}; + export type SiteGroupConnectionMinArgs = { - field: SiteFieldsEnum -} + field: SiteFieldsEnum; +}; + export type SiteGroupConnectionSumArgs = { - field: SiteFieldsEnum -} + field: SiteFieldsEnum; +}; export type SitePage = Node & { - children: Array - component: Scalars['String'] - componentChunkName: Scalars['String'] - id: Scalars['ID'] - internal: Internal - internalComponentName: Scalars['String'] - matchPath: Maybe - pageContext: Maybe - parent: Maybe - path: Scalars['String'] - pluginCreator: Maybe -} + children: Array; + component: Scalars['String']; + componentChunkName: Scalars['String']; + id: Scalars['ID']; + internal: Internal; + internalComponentName: Scalars['String']; + matchPath: Maybe; + pageContext: Maybe; + parent: Maybe; + path: Scalars['String']; + pluginCreator: Maybe; +}; export type SitePageConnection = { - distinct: Array - edges: Array - group: Array - max: Maybe - min: Maybe - nodes: Array - pageInfo: PageInfo - sum: Maybe - totalCount: Scalars['Int'] -} + distinct: Array; + edges: Array; + group: Array; + max: Maybe; + min: Maybe; + nodes: Array; + pageInfo: PageInfo; + sum: Maybe; + totalCount: Scalars['Int']; +}; + export type SitePageConnectionDistinctArgs = { - field: SitePageFieldsEnum -} + field: SitePageFieldsEnum; +}; + export type SitePageConnectionGroupArgs = { - field: SitePageFieldsEnum - limit: InputMaybe - skip: InputMaybe -} + field: SitePageFieldsEnum; + limit: InputMaybe; + skip: InputMaybe; +}; + export type SitePageConnectionMaxArgs = { - field: SitePageFieldsEnum -} + field: SitePageFieldsEnum; +}; + export type SitePageConnectionMinArgs = { - field: SitePageFieldsEnum -} + field: SitePageFieldsEnum; +}; + export type SitePageConnectionSumArgs = { - field: SitePageFieldsEnum -} + field: SitePageFieldsEnum; +}; export type SitePageEdge = { - next: Maybe - node: SitePage - previous: Maybe -} + next: Maybe; + node: SitePage; + previous: Maybe; +}; export type SitePageFieldsEnum = | 'children' @@ -1937,118 +2049,128 @@ export type SitePageFieldsEnum = | 'pluginCreator___pluginOptions' | 'pluginCreator___resolve' | 'pluginCreator___ssrAPIs' - | 'pluginCreator___version' + | 'pluginCreator___version'; export type SitePageFilterInput = { - children: InputMaybe - component: InputMaybe - componentChunkName: InputMaybe - id: InputMaybe - internal: InputMaybe - internalComponentName: InputMaybe - matchPath: InputMaybe - pageContext: InputMaybe - parent: InputMaybe - path: InputMaybe - pluginCreator: InputMaybe -} + children: InputMaybe; + component: InputMaybe; + componentChunkName: InputMaybe; + id: InputMaybe; + internal: InputMaybe; + internalComponentName: InputMaybe; + matchPath: InputMaybe; + pageContext: InputMaybe; + parent: InputMaybe; + path: InputMaybe; + pluginCreator: InputMaybe; +}; export type SitePageGroupConnection = { - distinct: Array - edges: Array - field: Scalars['String'] - fieldValue: Maybe - group: Array - max: Maybe - min: Maybe - nodes: Array - pageInfo: PageInfo - sum: Maybe - totalCount: Scalars['Int'] -} + distinct: Array; + edges: Array; + field: Scalars['String']; + fieldValue: Maybe; + group: Array; + max: Maybe; + min: Maybe; + nodes: Array; + pageInfo: PageInfo; + sum: Maybe; + totalCount: Scalars['Int']; +}; + export type SitePageGroupConnectionDistinctArgs = { - field: SitePageFieldsEnum -} + field: SitePageFieldsEnum; +}; + export type SitePageGroupConnectionGroupArgs = { - field: SitePageFieldsEnum - limit: InputMaybe - skip: InputMaybe -} + field: SitePageFieldsEnum; + limit: InputMaybe; + skip: InputMaybe; +}; + export type SitePageGroupConnectionMaxArgs = { - field: SitePageFieldsEnum -} + field: SitePageFieldsEnum; +}; + export type SitePageGroupConnectionMinArgs = { - field: SitePageFieldsEnum -} + field: SitePageFieldsEnum; +}; + export type SitePageGroupConnectionSumArgs = { - field: SitePageFieldsEnum -} + field: SitePageFieldsEnum; +}; export type SitePageSortInput = { - fields: InputMaybe>> - order: InputMaybe>> -} + fields: InputMaybe>>; + order: InputMaybe>>; +}; export type SitePlugin = Node & { - browserAPIs: Maybe>> - children: Array - id: Scalars['ID'] - internal: Internal - name: Maybe - nodeAPIs: Maybe>> - packageJson: Maybe - parent: Maybe - pluginFilepath: Maybe - pluginOptions: Maybe - resolve: Maybe - ssrAPIs: Maybe>> - version: Maybe -} + browserAPIs: Maybe>>; + children: Array; + id: Scalars['ID']; + internal: Internal; + name: Maybe; + nodeAPIs: Maybe>>; + packageJson: Maybe; + parent: Maybe; + pluginFilepath: Maybe; + pluginOptions: Maybe; + resolve: Maybe; + ssrAPIs: Maybe>>; + version: Maybe; +}; export type SitePluginConnection = { - distinct: Array - edges: Array - group: Array - max: Maybe - min: Maybe - nodes: Array - pageInfo: PageInfo - sum: Maybe - totalCount: Scalars['Int'] -} + distinct: Array; + edges: Array; + group: Array; + max: Maybe; + min: Maybe; + nodes: Array; + pageInfo: PageInfo; + sum: Maybe; + totalCount: Scalars['Int']; +}; + export type SitePluginConnectionDistinctArgs = { - field: SitePluginFieldsEnum -} + field: SitePluginFieldsEnum; +}; + export type SitePluginConnectionGroupArgs = { - field: SitePluginFieldsEnum - limit: InputMaybe - skip: InputMaybe -} + field: SitePluginFieldsEnum; + limit: InputMaybe; + skip: InputMaybe; +}; + export type SitePluginConnectionMaxArgs = { - field: SitePluginFieldsEnum -} + field: SitePluginFieldsEnum; +}; + export type SitePluginConnectionMinArgs = { - field: SitePluginFieldsEnum -} + field: SitePluginFieldsEnum; +}; + export type SitePluginConnectionSumArgs = { - field: SitePluginFieldsEnum -} + field: SitePluginFieldsEnum; +}; export type SitePluginEdge = { - next: Maybe - node: SitePlugin - previous: Maybe -} + next: Maybe; + node: SitePlugin; + previous: Maybe; +}; export type SitePluginFieldsEnum = | 'browserAPIs' @@ -2145,429 +2267,452 @@ export type SitePluginFieldsEnum = | 'pluginOptions' | 'resolve' | 'ssrAPIs' - | 'version' + | 'version'; export type SitePluginFilterInput = { - browserAPIs: InputMaybe - children: InputMaybe - id: InputMaybe - internal: InputMaybe - name: InputMaybe - nodeAPIs: InputMaybe - packageJson: InputMaybe - parent: InputMaybe - pluginFilepath: InputMaybe - pluginOptions: InputMaybe - resolve: InputMaybe - ssrAPIs: InputMaybe - version: InputMaybe -} + browserAPIs: InputMaybe; + children: InputMaybe; + id: InputMaybe; + internal: InputMaybe; + name: InputMaybe; + nodeAPIs: InputMaybe; + packageJson: InputMaybe; + parent: InputMaybe; + pluginFilepath: InputMaybe; + pluginOptions: InputMaybe; + resolve: InputMaybe; + ssrAPIs: InputMaybe; + version: InputMaybe; +}; export type SitePluginGroupConnection = { - distinct: Array - edges: Array - field: Scalars['String'] - fieldValue: Maybe - group: Array - max: Maybe - min: Maybe - nodes: Array - pageInfo: PageInfo - sum: Maybe - totalCount: Scalars['Int'] -} + distinct: Array; + edges: Array; + field: Scalars['String']; + fieldValue: Maybe; + group: Array; + max: Maybe; + min: Maybe; + nodes: Array; + pageInfo: PageInfo; + sum: Maybe; + totalCount: Scalars['Int']; +}; + export type SitePluginGroupConnectionDistinctArgs = { - field: SitePluginFieldsEnum -} + field: SitePluginFieldsEnum; +}; + export type SitePluginGroupConnectionGroupArgs = { - field: SitePluginFieldsEnum - limit: InputMaybe - skip: InputMaybe -} + field: SitePluginFieldsEnum; + limit: InputMaybe; + skip: InputMaybe; +}; + export type SitePluginGroupConnectionMaxArgs = { - field: SitePluginFieldsEnum -} + field: SitePluginFieldsEnum; +}; + export type SitePluginGroupConnectionMinArgs = { - field: SitePluginFieldsEnum -} + field: SitePluginFieldsEnum; +}; + export type SitePluginGroupConnectionSumArgs = { - field: SitePluginFieldsEnum -} + field: SitePluginFieldsEnum; +}; export type SitePluginSortInput = { - fields: InputMaybe>> - order: InputMaybe>> -} + fields: InputMaybe>>; + order: InputMaybe>>; +}; export type SiteSiteMetadata = { - author: Maybe - description: Maybe - siteUrl: Maybe - title: Maybe - titleTemplate: Maybe -} + author: Maybe; + description: Maybe; + siteUrl: Maybe; + title: Maybe; + titleTemplate: Maybe; +}; export type SiteSiteMetadataFilterInput = { - author: InputMaybe - description: InputMaybe - siteUrl: InputMaybe - title: InputMaybe - titleTemplate: InputMaybe -} + author: InputMaybe; + description: InputMaybe; + siteUrl: InputMaybe; + title: InputMaybe; + titleTemplate: InputMaybe; +}; export type SiteSortInput = { - fields: InputMaybe>> - order: InputMaybe>> -} + fields: InputMaybe>>; + order: InputMaybe>>; +}; -export type SortOrderEnum = 'ASC' | 'DESC' +export type SortOrderEnum = + | 'ASC' + | 'DESC'; /** Aggregate offer information, for a given SKU that is available to be fulfilled by multiple sellers. */ export type StoreAggregateOffer = { /** Highest price among all sellers. */ - highPrice: Scalars['Float'] + highPrice: Scalars['Float']; /** Lowest price among all sellers. */ - lowPrice: Scalars['Float'] + lowPrice: Scalars['Float']; /** Number of sellers selling this SKU. */ - offerCount: Scalars['Int'] + offerCount: Scalars['Int']; /** Array with information on each available offer. */ - offers: Array + offers: Array; /** ISO code of the currency used for the offer prices. */ - priceCurrency: Scalars['String'] -} + priceCurrency: Scalars['String']; +}; /** Average rating, based on multiple ratings or reviews. */ export type StoreAggregateRating = { /** Value of the aggregate rating. */ - ratingValue: Scalars['Float'] + ratingValue: Scalars['Float']; /** Total number of ratings. */ - reviewCount: Scalars['Int'] -} + reviewCount: Scalars['Int']; +}; /** information about the author of a product review or rating. */ export type StoreAuthor = { /** Author name. */ - name: Scalars['String'] -} + name: Scalars['String']; +}; /** Brand of a given product. */ export type StoreBrand = { /** Brand name. */ - name: Scalars['String'] -} + name: Scalars['String']; +}; /** List of items consisting of chain linked web pages, ending with the current page. */ export type StoreBreadcrumbList = { /** Array with breadcrumb elements. */ - itemListElement: Array + itemListElement: Array; /** Number of breadcrumbs in the list. */ - numberOfItems: Scalars['Int'] -} + numberOfItems: Scalars['Int']; +}; /** Shopping cart information. */ export type StoreCart = { /** List of shopping cart messages. */ - messages: Array + messages: Array; /** Order information, including `orderNumber` and `acceptedOffer`. */ - order: StoreOrder -} + order: StoreOrder; +}; /** Shopping cart message. */ export type StoreCartMessage = { /** Shopping cart message status, which can be `INFO`, `WARNING` OR `ERROR`. */ - status: StoreStatus + status: StoreStatus; /** Shopping cart message text. */ - text: Scalars['String'] -} + text: Scalars['String']; +}; /** Product collection information. */ export type StoreCollection = { /** List of items consisting of chain linked web pages, ending with the current page. */ - breadcrumbList: StoreBreadcrumbList + breadcrumbList: StoreBreadcrumbList; /** Collection ID. */ - id: Scalars['ID'] + id: Scalars['ID']; /** Collection meta information. Used for search. */ - meta: StoreCollectionMeta + meta: StoreCollectionMeta; /** Meta tag data. */ - seo: StoreSeo + seo: StoreSeo; /** Corresponding collection URL slug, with which to retrieve this entity. */ - slug: Scalars['String'] + slug: Scalars['String']; /** Collection type. */ - type: StoreCollectionType -} + type: StoreCollectionType; +}; /** Collection connection pagination information. */ export type StoreCollectionConnection = { /** Array with collection connection page edges. */ - edges: Array + edges: Array; /** Collection connection page information. */ - pageInfo: StorePageInfo -} + pageInfo: StorePageInfo; +}; /** Collection pagination edge. */ export type StoreCollectionEdge = { /** Collection pagination cursor. */ - cursor: Scalars['String'] + cursor: Scalars['String']; /** Collection pagination node. */ - node: StoreCollection -} + node: StoreCollection; +}; /** Product collection facet, used for search. */ export type StoreCollectionFacet = { /** Facet key. */ - key: Scalars['String'] + key: Scalars['String']; /** Facet value. */ - value: Scalars['String'] -} + value: Scalars['String']; +}; /** Collection meta information. Used for search. */ export type StoreCollectionMeta = { /** List of selected collection facets. */ - selectedFacets: Array -} + selectedFacets: Array; +}; /** Product collection type. Possible values are `Department`, `Category`, `Brand` or `Cluster`. */ export type StoreCollectionType = | 'Brand' | 'Category' | 'Cluster' - | 'Department' + | 'Department'; + +/** Currency information. */ +export type StoreCurrency = { + /** Currency code, e.g: USD */ + code: Scalars['String']; + /** Currency symbol, e.g: $ */ + symbol: Scalars['String']; +}; /** Search facet information. */ export type StoreFacet = { /** Facet key. */ - key: Scalars['String'] + key: Scalars['String']; /** Facet label. */ - label: Scalars['String'] + label: Scalars['String']; /** Facet type. Possible values are `BOOLEAN` and `RANGE`. */ - type: StoreFacetType + type: StoreFacetType; /** Array with information on each facet value. */ - values: Array -} + values: Array; +}; /** Search facet type. */ -export type StoreFacetType = 'BOOLEAN' | 'RANGE' +export type StoreFacetType = + | 'BOOLEAN' + | 'RANGE'; /** Information of a specific facet value. */ export type StoreFacetValue = { /** Facet value label. */ - label: Scalars['String'] + label: Scalars['String']; /** Number of items with this facet. */ - quantity: Scalars['Int'] + quantity: Scalars['Int']; /** Indicates whether facet is selected. */ - selected: Scalars['Boolean'] + selected: Scalars['Boolean']; /** Facet value. */ - value: Scalars['String'] -} + value: Scalars['String']; +}; /** Image. */ export type StoreImage = { /** Alias for the image. */ - alternateName: Scalars['String'] + alternateName: Scalars['String']; /** Image URL. */ - url: Scalars['String'] -} + url: Scalars['String']; +}; /** Item of a list. */ export type StoreListItem = { /** List item value. */ - item: Scalars['String'] + item: Scalars['String']; /** Name of the list item. */ - name: Scalars['String'] + name: Scalars['String']; /** Position of the item in the list. */ - position: Scalars['Int'] -} + position: Scalars['Int']; +}; /** Offer information. */ export type StoreOffer = { /** Offer item availability. */ - availability: Scalars['String'] + availability: Scalars['String']; /** Offer item condition. */ - itemCondition: Scalars['String'] + itemCondition: Scalars['String']; /** Information on the item being offered. */ - itemOffered: StoreProduct + itemOffered: StoreProduct; /** This is displayed as the "from" price in the context of promotions' price comparison. This may change before it reaches the shelf. */ - listPrice: Scalars['Float'] + listPrice: Scalars['Float']; /** Also known as spot price. */ - price: Scalars['Float'] + price: Scalars['Float']; /** ISO code of the currency used for the offer prices. */ - priceCurrency: Scalars['String'] + priceCurrency: Scalars['String']; /** Next date in which price is scheduled to change. If there is no scheduled change, this will be set a year in the future from current time. */ - priceValidUntil: Scalars['String'] + priceValidUntil: Scalars['String']; /** Number of items offered. */ - quantity: Scalars['Int'] + quantity: Scalars['Int']; /** Seller responsible for the offer. */ - seller: StoreOrganization + seller: StoreOrganization; /** Computed price before applying coupons, taxes or benefits. This may change before it reaches the shelf. */ - sellingPrice: Scalars['Float'] -} + sellingPrice: Scalars['Float']; +}; /** Information of a specific order. */ export type StoreOrder = { /** Array with information on each accepted offer. */ - acceptedOffer: Array + acceptedOffer: Array; /** ID of the order in [VTEX order management](https://help.vtex.com/en/tutorial/license-manager-resources-oms--60QcBsvWeum02cFi3GjBzg#). */ - orderNumber: Scalars['String'] -} + orderNumber: Scalars['String']; +}; /** Organization. */ export type StoreOrganization = { /** Organization ID. */ - identifier: Scalars['String'] -} + identifier: Scalars['String']; +}; /** Page information. */ export type StorePageInfo = { /** Page cursor end. */ - endCursor: Scalars['String'] + endCursor: Scalars['String']; /** Indicates whether next page exists. */ - hasNextPage: Scalars['Boolean'] + hasNextPage: Scalars['Boolean']; /** Indicates whether previous page exists. */ - hasPreviousPage: Scalars['Boolean'] + hasPreviousPage: Scalars['Boolean']; /** Page cursor start. */ - startCursor: Scalars['String'] + startCursor: Scalars['String']; /** Total number of items (products or collections), not pages. */ - totalCount: Scalars['Int'] -} + totalCount: Scalars['Int']; +}; /** Client profile data. */ export type StorePerson = { /** Client email. */ - email: Scalars['String'] + email: Scalars['String']; /** Client last name. */ - familyName: Scalars['String'] + familyName: Scalars['String']; /** Client first name. */ - givenName: Scalars['String'] + givenName: Scalars['String']; /** Client ID. */ - id: Scalars['String'] -} + id: Scalars['String']; +}; /** Product information. Products are variants within product groups, equivalent to VTEX [SKUs](https://help.vtex.com/en/tutorial/what-is-an-sku--1K75s4RXAQyOuGUYKMM68u#). For example, you may have a **Shirt** product group with associated products such as **Blue shirt size L**, **Green shirt size XL** and so on. */ export type StoreProduct = { /** Array of additional properties. */ - additionalProperty: Array + additionalProperty: Array; /** Aggregate ratings data. */ - aggregateRating: StoreAggregateRating + aggregateRating: StoreAggregateRating; /** Product brand. */ - brand: StoreBrand + brand: StoreBrand; /** List of items consisting of chain linked web pages, ending with the current page. */ - breadcrumbList: StoreBreadcrumbList + breadcrumbList: StoreBreadcrumbList; /** Product description. */ - description: Scalars['String'] + description: Scalars['String']; /** Global Trade Item Number. */ - gtin: Scalars['String'] + gtin: Scalars['String']; /** Array of images. */ - image: Array + image: Array; /** Indicates product group related to this product. */ - isVariantOf: StoreProductGroup + isVariantOf: StoreProductGroup; /** Product name. */ - name: Scalars['String'] + name: Scalars['String']; /** Aggregate offer information. */ - offers: StoreAggregateOffer + offers: StoreAggregateOffer; /** Product ID, such as [ISBN](https://www.isbn-international.org/content/what-isbn) or similar global IDs. */ - productID: Scalars['String'] + productID: Scalars['String']; /** Array with review information. */ - review: Array + review: Array; /** Meta tag data. */ - seo: StoreSeo + seo: StoreSeo; /** Stock Keeping Unit. Merchant-specific ID for the product. */ - sku: Scalars['String'] + sku: Scalars['String']; /** Corresponding collection URL slug, with which to retrieve this entity. */ - slug: Scalars['String'] -} + slug: Scalars['String']; +}; /** Product connection pagination information. */ export type StoreProductConnection = { /** Array with product connection page edges. */ - edges: Array + edges: Array; /** Product connection page information. */ - pageInfo: StorePageInfo -} + pageInfo: StorePageInfo; +}; /** Product pagination edge. */ export type StoreProductEdge = { /** Product pagination cursor. */ - cursor: Scalars['String'] + cursor: Scalars['String']; /** Product pagination node. */ - node: StoreProduct -} + node: StoreProduct; +}; /** Product group information. Product groups are catalog entities that may contain variants. They are equivalent to VTEX [Products](https://help.vtex.com/en/tutorial/what-is-a-product--2zrB2gFCHyQokCKKE8kuAw#), whereas each variant is equivalent to a VTEX [SKU](https://help.vtex.com/en/tutorial/what-is-an-sku--1K75s4RXAQyOuGUYKMM68u#). For example, you may have a **Shirt** product group with associated products such as **Blue shirt size L**, **Green shirt size XL** and so on. */ export type StoreProductGroup = { /** Array of additional properties. */ - additionalProperty: Array + additionalProperty: Array; /** Array of variants related to product group. Variants are equivalent to VTEX [SKUs](https://help.vtex.com/en/tutorial/what-is-an-sku--1K75s4RXAQyOuGUYKMM68u#). */ - hasVariant: Array + hasVariant: Array; /** Product group name. */ - name: Scalars['String'] + name: Scalars['String']; /** Product group ID. */ - productGroupID: Scalars['String'] -} + productGroupID: Scalars['String']; +}; /** Properties that can be associated with products and products groups. */ export type StorePropertyValue = { /** Property name. */ - name: Scalars['String'] + name: Scalars['String']; /** Property id. This propert changes according to the content of the object. */ - propertyID: Scalars['String'] + propertyID: Scalars['String']; /** Property value. May hold a string or the string representation of an object. */ - value: Scalars['ObjectOrString'] + value: Scalars['ObjectOrString']; /** Specifies the nature of the value */ - valueReference: Scalars['String'] -} + valueReference: Scalars['String']; +}; /** Information of a given review. */ export type StoreReview = { /** Review author. */ - author: StoreAuthor + author: StoreAuthor; /** Review rating information. */ - reviewRating: StoreReviewRating -} + reviewRating: StoreReviewRating; +}; /** Information of a given review rating. */ export type StoreReviewRating = { /** Best rating value. */ - bestRating: Scalars['Float'] + bestRating: Scalars['Float']; /** Rating value. */ - ratingValue: Scalars['Float'] -} + ratingValue: Scalars['Float']; +}; /** Search result. */ export type StoreSearchResult = { /** Array of search result facets. */ - facets: Array + facets: Array; /** Search result products. */ - products: StoreProductConnection + products: StoreProductConnection; /** Search result suggestions. */ - suggestions: StoreSuggestions -} + suggestions: StoreSuggestions; +}; /** Search Engine Optimization (SEO) tags data. */ export type StoreSeo = { /** Canonical tag. */ - canonical: Scalars['String'] + canonical: Scalars['String']; /** Description tag. */ - description: Scalars['String'] + description: Scalars['String']; /** Title tag. */ - title: Scalars['String'] + title: Scalars['String']; /** Title template tag. */ - titleTemplate: Scalars['String'] -} + titleTemplate: Scalars['String']; +}; /** Session information. */ export type StoreSession = { /** Session channel. */ - channel: Maybe + channel: Maybe; /** Session country. */ - country: Maybe + country: Scalars['String']; + /** Session currency. */ + currency: StoreCurrency; + /** Session locale. */ + locale: Scalars['String']; /** Session postal code. */ - postalCode: Maybe -} + person: Maybe; + /** Session postal code. */ + postalCode: Maybe; +}; /** Product sorting options used in search. */ export type StoreSort = @@ -2578,429 +2723,131 @@ export type StoreSort = | 'price_asc' | 'price_desc' | 'release_desc' - | 'score_desc' + | 'score_desc'; /** Status used to indicate type of message. For instance, in shopping cart messages. */ -export type StoreStatus = 'ERROR' | 'INFO' | 'WARNING' +export type StoreStatus = + | 'ERROR' + | 'INFO' + | 'WARNING'; /** Suggestion term. */ export type StoreSuggestionTerm = { /** Its occurrences count. */ - count: Scalars['Int'] + count: Scalars['Int']; /** The term. */ - value: Scalars['String'] -} + value: Scalars['String']; +}; /** Suggestions information. */ export type StoreSuggestions = { /** Array with suggestion products' information. */ - products: Array + products: Array; /** Array with suggestion terms. */ - terms: Array -} + terms: Array; +}; export type StringQueryOperatorInput = { - eq: InputMaybe - glob: InputMaybe - in: InputMaybe>> - ne: InputMaybe - nin: InputMaybe>> - regex: InputMaybe -} - -export type ProductSummary_ProductFragment = { - slug: string - sku: string - name: string - gtin: string - id: string - brand: { name: string; brandName: string } - isVariantOf: { productGroupID: string; name: string } - image: Array<{ url: string; alternateName: string }> - offers: { - lowPrice: number - offers: Array<{ - availability: string - price: number - listPrice: number - quantity: number - seller: { identifier: string } - }> - } -} - -export type UpdateSessionMutationMutationVariables = Exact<{ - session: IStoreSession -}> - -export type UpdateSessionMutationMutation = { - updateSession: { channel: string | null } -} - -export type Filter_FacetsFragment = { - key: string - label: string - type: StoreFacetType - values: Array<{ - label: string - value: string - selected: boolean - quantity: number - }> -} + eq: InputMaybe; + glob: InputMaybe; + in: InputMaybe>>; + ne: InputMaybe; + nin: InputMaybe>>; + regex: InputMaybe; +}; + +export type ProductSummary_ProductFragment = { slug: string, sku: string, name: string, gtin: string, id: string, brand: { name: string, brandName: string }, isVariantOf: { productGroupID: string, name: string }, image: Array<{ url: string, alternateName: string }>, offers: { lowPrice: number, offers: Array<{ availability: string, price: number, listPrice: number, quantity: number, seller: { identifier: string } }> } }; + +export type Filter_FacetsFragment = { key: string, label: string, type: StoreFacetType, values: Array<{ label: string, value: string, selected: boolean, quantity: number }> }; export type SearchSuggestionsQueryQueryVariables = Exact<{ - term: Scalars['String'] - selectedFacets: InputMaybe | IStoreSelectedFacet> -}> - -export type SearchSuggestionsQueryQuery = { - search: { - suggestions: { - terms: Array<{ value: string }> - products: Array<{ - slug: string - sku: string - name: string - gtin: string - id: string - brand: { name: string; brandName: string } - isVariantOf: { productGroupID: string; name: string } - image: Array<{ url: string; alternateName: string }> - offers: { - lowPrice: number - offers: Array<{ - availability: string - price: number - listPrice: number - quantity: number - seller: { identifier: string } - }> - } - }> - } - } -} - -export type ProductDetailsFragment_ProductFragment = { - sku: string - name: string - gtin: string - description: string - id: string - isVariantOf: { productGroupID: string; name: string } - image: Array<{ url: string; alternateName: string }> - brand: { name: string } - offers: { - lowPrice: number - offers: Array<{ - availability: string - price: number - listPrice: number - seller: { identifier: string } - }> - } - breadcrumbList: { - itemListElement: Array<{ item: string; name: string; position: number }> - } - additionalProperty: Array<{ - propertyID: string - name: string - value: any - valueReference: string - }> -} + term: Scalars['String']; + selectedFacets: InputMaybe | IStoreSelectedFacet>; +}>; + + +export type SearchSuggestionsQueryQuery = { search: { suggestions: { terms: Array<{ value: string }>, products: Array<{ slug: string, sku: string, name: string, gtin: string, id: string, brand: { name: string, brandName: string }, isVariantOf: { productGroupID: string, name: string }, image: Array<{ url: string, alternateName: string }>, offers: { lowPrice: number, offers: Array<{ availability: string, price: number, listPrice: number, quantity: number, seller: { identifier: string } }> } }> } } }; + +export type ProductDetailsFragment_ProductFragment = { sku: string, name: string, gtin: string, description: string, id: string, isVariantOf: { productGroupID: string, name: string }, image: Array<{ url: string, alternateName: string }>, brand: { name: string }, offers: { lowPrice: number, offers: Array<{ availability: string, price: number, listPrice: number, seller: { identifier: string } }> }, breadcrumbList: { itemListElement: Array<{ item: string, name: string, position: number }> }, additionalProperty: Array<{ propertyID: string, name: string, value: any, valueReference: string }> }; export type ProductGalleryQueryQueryVariables = Exact<{ - first: Scalars['Int'] - after: Scalars['String'] - sort: StoreSort - term: Scalars['String'] - selectedFacets: Array | IStoreSelectedFacet -}> - -export type ProductGalleryQueryQuery = { - search: { - products: { - pageInfo: { totalCount: number } - edges: Array<{ - node: { - slug: string - sku: string - name: string - gtin: string - id: string - brand: { name: string; brandName: string } - isVariantOf: { productGroupID: string; name: string } - image: Array<{ url: string; alternateName: string }> - offers: { - lowPrice: number - offers: Array<{ - availability: string - price: number - listPrice: number - quantity: number - seller: { identifier: string } - }> - } - } - }> - } - facets: Array<{ - key: string - label: string - type: StoreFacetType - values: Array<{ - label: string - value: string - selected: boolean - quantity: number - }> - }> - } -} - -export type CollectionPageQueryQueryVariables = Exact<{ [key: string]: never }> - -export type CollectionPageQueryQuery = { - site: { - siteMetadata: { - titleTemplate: string | null - title: string | null - description: string | null - } | null - } | null -} + first: Scalars['Int']; + after: Scalars['String']; + sort: StoreSort; + term: Scalars['String']; + selectedFacets: Array | IStoreSelectedFacet; +}>; + + +export type ProductGalleryQueryQuery = { search: { products: { pageInfo: { totalCount: number }, edges: Array<{ node: { slug: string, sku: string, name: string, gtin: string, id: string, brand: { name: string, brandName: string }, isVariantOf: { productGroupID: string, name: string }, image: Array<{ url: string, alternateName: string }>, offers: { lowPrice: number, offers: Array<{ availability: string, price: number, listPrice: number, quantity: number, seller: { identifier: string } }> } } }> }, facets: Array<{ key: string, label: string, type: StoreFacetType, values: Array<{ label: string, value: string, selected: boolean, quantity: number }> }> } }; + +export type CollectionPageQueryQueryVariables = Exact<{ [key: string]: never; }>; + + +export type CollectionPageQueryQuery = { site: { siteMetadata: { titleTemplate: string | null, title: string | null, description: string | null } | null } | null }; export type ServerCollectionPageQueryQueryVariables = Exact<{ - slug: Scalars['String'] -}> - -export type ServerCollectionPageQueryQuery = { - collection: { - seo: { title: string; description: string } - breadcrumbList: { - itemListElement: Array<{ item: string; name: string; position: number }> - } - meta: { selectedFacets: Array<{ key: string; value: string }> } - } -} - -export type ProductPageQueryQueryVariables = Exact<{ [key: string]: never }> - -export type ProductPageQueryQuery = { - site: { - siteMetadata: { - title: string | null - description: string | null - titleTemplate: string | null - siteUrl: string | null - } | null - } | null -} + slug: Scalars['String']; +}>; + + +export type ServerCollectionPageQueryQuery = { collection: { seo: { title: string, description: string }, breadcrumbList: { itemListElement: Array<{ item: string, name: string, position: number }> }, meta: { selectedFacets: Array<{ key: string, value: string }> } } }; + +export type ProductPageQueryQueryVariables = Exact<{ [key: string]: never; }>; + + +export type ProductPageQueryQuery = { site: { siteMetadata: { title: string | null, description: string | null, titleTemplate: string | null, siteUrl: string | null } | null } | null }; export type ServerProductPageQueryQueryVariables = Exact<{ - id: Scalars['String'] -}> - -export type ServerProductPageQueryQuery = { - product: { - slug: string - sku: string - gtin: string - name: string - description: string - id: string - seo: { title: string; description: string } - brand: { name: string } - breadcrumbList: { - itemListElement: Array<{ item: string; name: string; position: number }> - } - image: Array<{ url: string; alternateName: string }> - offers: { - lowPrice: number - highPrice: number - priceCurrency: string - offers: Array<{ - availability: string - price: number - priceValidUntil: string - priceCurrency: string - itemCondition: string - listPrice: number - seller: { identifier: string } - }> - } - isVariantOf: { productGroupID: string; name: string } - additionalProperty: Array<{ - propertyID: string - name: string - value: any - valueReference: string - }> - } -} - -export type HomePageQueryQueryVariables = Exact<{ [key: string]: never }> - -export type HomePageQueryQuery = { - site: { - siteMetadata: { - title: string | null - description: string | null - titleTemplate: string | null - } | null - } | null -} - -export type SearchPageQueryQueryVariables = Exact<{ [key: string]: never }> - -export type SearchPageQueryQuery = { - site: { - siteMetadata: { - titleTemplate: string | null - title: string | null - description: string | null - } | null - } | null -} + id: Scalars['String']; +}>; + + +export type ServerProductPageQueryQuery = { product: { slug: string, sku: string, gtin: string, name: string, description: string, id: string, seo: { title: string, description: string }, brand: { name: string }, breadcrumbList: { itemListElement: Array<{ item: string, name: string, position: number }> }, image: Array<{ url: string, alternateName: string }>, offers: { lowPrice: number, highPrice: number, priceCurrency: string, offers: Array<{ availability: string, price: number, priceValidUntil: string, priceCurrency: string, itemCondition: string, listPrice: number, seller: { identifier: string } }> }, isVariantOf: { productGroupID: string, name: string }, additionalProperty: Array<{ propertyID: string, name: string, value: any, valueReference: string }> } }; + +export type HomePageQueryQueryVariables = Exact<{ [key: string]: never; }>; + + +export type HomePageQueryQuery = { site: { siteMetadata: { title: string | null, description: string | null, titleTemplate: string | null } | null } | null }; + +export type SearchPageQueryQueryVariables = Exact<{ [key: string]: never; }>; + + +export type SearchPageQueryQuery = { site: { siteMetadata: { titleTemplate: string | null, title: string | null, description: string | null } | null } | null }; export type ValidateCartMutationMutationVariables = Exact<{ - cart: IStoreCart -}> - -export type ValidateCartMutationMutation = { - validateCart: { - order: { - orderNumber: string - acceptedOffer: Array<{ - quantity: number - price: number - listPrice: number - seller: { identifier: string } - itemOffered: { - sku: string - name: string - gtin: string - image: Array<{ url: string; alternateName: string }> - brand: { name: string } - isVariantOf: { productGroupID: string; name: string } - additionalProperty: Array<{ - propertyID: string - name: string - value: any - valueReference: string - }> - } - }> - } - messages: Array<{ text: string; status: StoreStatus }> - } | null -} - -export type CartMessageFragment = { text: string; status: StoreStatus } - -export type CartItemFragment = { - quantity: number - price: number - listPrice: number - seller: { identifier: string } - itemOffered: { - sku: string - name: string - gtin: string - image: Array<{ url: string; alternateName: string }> - brand: { name: string } - isVariantOf: { productGroupID: string; name: string } - additionalProperty: Array<{ - propertyID: string - name: string - value: any - valueReference: string - }> - } -} - -export type PersonQueryQueryVariables = Exact<{ [key: string]: never }> - -export type PersonQueryQuery = { - person: { - id: string - email: string - givenName: string - familyName: string - } | null -} + cart: IStoreCart; +}>; + + +export type ValidateCartMutationMutation = { validateCart: { order: { orderNumber: string, acceptedOffer: Array<{ quantity: number, price: number, listPrice: number, seller: { identifier: string }, itemOffered: { sku: string, name: string, gtin: string, image: Array<{ url: string, alternateName: string }>, brand: { name: string }, isVariantOf: { productGroupID: string, name: string }, additionalProperty: Array<{ propertyID: string, name: string, value: any, valueReference: string }> } }> }, messages: Array<{ text: string, status: StoreStatus }> } | null }; + +export type CartMessageFragment = { text: string, status: StoreStatus }; + +export type CartItemFragment = { quantity: number, price: number, listPrice: number, seller: { identifier: string }, itemOffered: { sku: string, name: string, gtin: string, image: Array<{ url: string, alternateName: string }>, brand: { name: string }, isVariantOf: { productGroupID: string, name: string }, additionalProperty: Array<{ propertyID: string, name: string, value: any, valueReference: string }> } }; export type BrowserProductQueryQueryVariables = Exact<{ - locator: Array | IStoreSelectedFacet -}> - -export type BrowserProductQueryQuery = { - product: { - sku: string - name: string - gtin: string - description: string - id: string - isVariantOf: { productGroupID: string; name: string } - image: Array<{ url: string; alternateName: string }> - brand: { name: string } - offers: { - lowPrice: number - offers: Array<{ - availability: string - price: number - listPrice: number - seller: { identifier: string } - }> - } - breadcrumbList: { - itemListElement: Array<{ item: string; name: string; position: number }> - } - additionalProperty: Array<{ - propertyID: string - name: string - value: any - valueReference: string - }> - } -} + locator: Array | IStoreSelectedFacet; +}>; + + +export type BrowserProductQueryQuery = { product: { sku: string, name: string, gtin: string, description: string, id: string, isVariantOf: { productGroupID: string, name: string }, image: Array<{ url: string, alternateName: string }>, brand: { name: string }, offers: { lowPrice: number, offers: Array<{ availability: string, price: number, listPrice: number, seller: { identifier: string } }> }, breadcrumbList: { itemListElement: Array<{ item: string, name: string, position: number }> }, additionalProperty: Array<{ propertyID: string, name: string, value: any, valueReference: string }> } }; export type ProductsQueryQueryVariables = Exact<{ - first: Scalars['Int'] - after: InputMaybe - sort: StoreSort - term: Scalars['String'] - selectedFacets: Array | IStoreSelectedFacet -}> - -export type ProductsQueryQuery = { - search: { - products: { - pageInfo: { totalCount: number } - edges: Array<{ - node: { - slug: string - sku: string - name: string - gtin: string - id: string - brand: { name: string; brandName: string } - isVariantOf: { productGroupID: string; name: string } - image: Array<{ url: string; alternateName: string }> - offers: { - lowPrice: number - offers: Array<{ - availability: string - price: number - listPrice: number - quantity: number - seller: { identifier: string } - }> - } - } - }> - } - } -} + first: Scalars['Int']; + after: InputMaybe; + sort: StoreSort; + term: Scalars['String']; + selectedFacets: Array | IStoreSelectedFacet; +}>; + + +export type ProductsQueryQuery = { search: { products: { pageInfo: { totalCount: number }, edges: Array<{ node: { slug: string, sku: string, name: string, gtin: string, id: string, brand: { name: string, brandName: string }, isVariantOf: { productGroupID: string, name: string }, image: Array<{ url: string, alternateName: string }>, offers: { lowPrice: number, offers: Array<{ availability: string, price: number, listPrice: number, quantity: number, seller: { identifier: string } }> } } }> } } }; + +export type ValidateSessionMutationVariables = Exact<{ + session: IStoreSession; + search: Scalars['String']; +}>; + + +export type ValidateSessionMutation = { validateSession: { locale: string, channel: string | null, country: string, postalCode: string | null, currency: { code: string, symbol: string }, person: { id: string, email: string, givenName: string, familyName: string } | null } | null }; diff --git a/@generated/graphql/persisted.json b/@generated/graphql/persisted.json index 0f62bb0b..e56d0c44 100644 --- a/@generated/graphql/persisted.json +++ b/@generated/graphql/persisted.json @@ -1,15 +1 @@ -{ - "UpdateSessionMutation": "mutation UpdateSessionMutation($session: IStoreSession!) {\n updateSession(session: $session) {\n channel\n }\n}\n", - "SearchSuggestionsQuery": "query SearchSuggestionsQuery($term: String!, $selectedFacets: [IStoreSelectedFacet!]) {\n search(first: 5, term: $term, selectedFacets: $selectedFacets) {\n suggestions {\n terms {\n value\n }\n products {\n id: productID\n slug\n sku\n brand {\n brandName: name\n name\n }\n name\n gtin\n isVariantOf {\n productGroupID\n name\n }\n image {\n url\n alternateName\n }\n offers {\n lowPrice\n offers {\n availability\n price\n listPrice\n quantity\n seller {\n identifier\n }\n }\n }\n }\n }\n }\n}\n", - "ProductGalleryQuery": "query ProductGalleryQuery($first: Int!, $after: String!, $sort: StoreSort!, $term: String!, $selectedFacets: [IStoreSelectedFacet!]!) {\n search(\n first: $first\n after: $after\n sort: $sort\n term: $term\n selectedFacets: $selectedFacets\n ) {\n products {\n pageInfo {\n totalCount\n }\n edges {\n node {\n id: productID\n slug\n sku\n brand {\n brandName: name\n name\n }\n name\n gtin\n isVariantOf {\n productGroupID\n name\n }\n image {\n url\n alternateName\n }\n offers {\n lowPrice\n offers {\n availability\n price\n listPrice\n quantity\n seller {\n identifier\n }\n }\n }\n }\n }\n }\n facets {\n key\n label\n type\n values {\n label\n value\n selected\n quantity\n }\n }\n }\n}\n", - "CollectionPageQuery": "query CollectionPageQuery {\n site {\n siteMetadata {\n titleTemplate\n title\n description\n }\n }\n}\n", - "ServerCollectionPageQuery": "query ServerCollectionPageQuery($slug: String!) {\n collection(slug: $slug) {\n seo {\n title\n description\n }\n breadcrumbList {\n itemListElement {\n item\n name\n position\n }\n }\n meta {\n selectedFacets {\n key\n value\n }\n }\n }\n}\n", - "ProductPageQuery": "query ProductPageQuery {\n site {\n siteMetadata {\n title\n description\n titleTemplate\n siteUrl\n }\n }\n}\n", - "ServerProductPageQuery": "query ServerProductPageQuery($id: String!) {\n product(locator: [{key: \"id\", value: $id}]) {\n id: productID\n slug\n seo {\n title\n description\n }\n brand {\n name\n }\n sku\n gtin\n name\n description\n breadcrumbList {\n itemListElement {\n item\n name\n position\n }\n }\n image {\n url\n alternateName\n }\n offers {\n lowPrice\n highPrice\n priceCurrency\n offers {\n availability\n price\n priceValidUntil\n priceCurrency\n itemCondition\n seller {\n identifier\n }\n listPrice\n }\n }\n isVariantOf {\n productGroupID\n name\n }\n additionalProperty {\n propertyID\n name\n value\n valueReference\n }\n }\n}\n", - "HomePageQuery": "query HomePageQuery {\n site {\n siteMetadata {\n title\n description\n titleTemplate\n }\n }\n}\n", - "SearchPageQuery": "query SearchPageQuery {\n site {\n siteMetadata {\n titleTemplate\n title\n description\n }\n }\n}\n", - "ValidateCartMutation": "mutation ValidateCartMutation($cart: IStoreCart!) {\n validateCart(cart: $cart) {\n order {\n orderNumber\n acceptedOffer {\n seller {\n identifier\n }\n quantity\n price\n listPrice\n itemOffered {\n sku\n name\n image {\n url\n alternateName\n }\n brand {\n name\n }\n isVariantOf {\n productGroupID\n name\n }\n gtin\n additionalProperty {\n propertyID\n name\n value\n valueReference\n }\n }\n }\n }\n messages {\n text\n status\n }\n }\n}\n", - "PersonQuery": "query PersonQuery {\n person {\n id\n email\n givenName\n familyName\n }\n}\n", - "BrowserProductQuery": "query BrowserProductQuery($locator: [IStoreSelectedFacet!]!) {\n product(locator: $locator) {\n id: productID\n sku\n name\n gtin\n description\n isVariantOf {\n productGroupID\n name\n }\n image {\n url\n alternateName\n }\n brand {\n name\n }\n offers {\n lowPrice\n offers {\n availability\n price\n listPrice\n seller {\n identifier\n }\n }\n }\n breadcrumbList {\n itemListElement {\n item\n name\n position\n }\n }\n additionalProperty {\n propertyID\n name\n value\n valueReference\n }\n }\n}\n", - "ProductsQuery": "query ProductsQuery($first: Int!, $after: String, $sort: StoreSort!, $term: String!, $selectedFacets: [IStoreSelectedFacet!]!) {\n search(\n first: $first\n after: $after\n sort: $sort\n term: $term\n selectedFacets: $selectedFacets\n ) {\n products {\n pageInfo {\n totalCount\n }\n edges {\n node {\n id: productID\n slug\n sku\n brand {\n brandName: name\n name\n }\n name\n gtin\n isVariantOf {\n productGroupID\n name\n }\n image {\n url\n alternateName\n }\n offers {\n lowPrice\n offers {\n availability\n price\n listPrice\n quantity\n seller {\n identifier\n }\n }\n }\n }\n }\n }\n }\n}\n" -} +{"SearchSuggestionsQuery":"query SearchSuggestionsQuery($term: String!, $selectedFacets: [IStoreSelectedFacet!]) {\n search(first: 5, term: $term, selectedFacets: $selectedFacets) {\n suggestions {\n terms {\n value\n }\n products {\n id: productID\n slug\n sku\n brand {\n brandName: name\n name\n }\n name\n gtin\n isVariantOf {\n productGroupID\n name\n }\n image {\n url\n alternateName\n }\n offers {\n lowPrice\n offers {\n availability\n price\n listPrice\n quantity\n seller {\n identifier\n }\n }\n }\n }\n }\n }\n}\n","ProductGalleryQuery":"query ProductGalleryQuery($first: Int!, $after: String!, $sort: StoreSort!, $term: String!, $selectedFacets: [IStoreSelectedFacet!]!) {\n search(\n first: $first\n after: $after\n sort: $sort\n term: $term\n selectedFacets: $selectedFacets\n ) {\n products {\n pageInfo {\n totalCount\n }\n edges {\n node {\n id: productID\n slug\n sku\n brand {\n brandName: name\n name\n }\n name\n gtin\n isVariantOf {\n productGroupID\n name\n }\n image {\n url\n alternateName\n }\n offers {\n lowPrice\n offers {\n availability\n price\n listPrice\n quantity\n seller {\n identifier\n }\n }\n }\n }\n }\n }\n facets {\n key\n label\n type\n values {\n label\n value\n selected\n quantity\n }\n }\n }\n}\n","CollectionPageQuery":"query CollectionPageQuery {\n site {\n siteMetadata {\n titleTemplate\n title\n description\n }\n }\n}\n","ServerCollectionPageQuery":"query ServerCollectionPageQuery($slug: String!) {\n collection(slug: $slug) {\n seo {\n title\n description\n }\n breadcrumbList {\n itemListElement {\n item\n name\n position\n }\n }\n meta {\n selectedFacets {\n key\n value\n }\n }\n }\n}\n","ProductPageQuery":"query ProductPageQuery {\n site {\n siteMetadata {\n title\n description\n titleTemplate\n siteUrl\n }\n }\n}\n","ServerProductPageQuery":"query ServerProductPageQuery($id: String!) {\n product(locator: [{key: \"id\", value: $id}]) {\n id: productID\n slug\n seo {\n title\n description\n }\n brand {\n name\n }\n sku\n gtin\n name\n description\n breadcrumbList {\n itemListElement {\n item\n name\n position\n }\n }\n image {\n url\n alternateName\n }\n offers {\n lowPrice\n highPrice\n priceCurrency\n offers {\n availability\n price\n priceValidUntil\n priceCurrency\n itemCondition\n seller {\n identifier\n }\n listPrice\n }\n }\n isVariantOf {\n productGroupID\n name\n }\n additionalProperty {\n propertyID\n name\n value\n valueReference\n }\n }\n}\n","HomePageQuery":"query HomePageQuery {\n site {\n siteMetadata {\n title\n description\n titleTemplate\n }\n }\n}\n","SearchPageQuery":"query SearchPageQuery {\n site {\n siteMetadata {\n titleTemplate\n title\n description\n }\n }\n}\n","ValidateCartMutation":"mutation ValidateCartMutation($cart: IStoreCart!) {\n validateCart(cart: $cart) {\n order {\n orderNumber\n acceptedOffer {\n seller {\n identifier\n }\n quantity\n price\n listPrice\n itemOffered {\n sku\n name\n image {\n url\n alternateName\n }\n brand {\n name\n }\n isVariantOf {\n productGroupID\n name\n }\n gtin\n additionalProperty {\n propertyID\n name\n value\n valueReference\n }\n }\n }\n }\n messages {\n text\n status\n }\n }\n}\n","BrowserProductQuery":"query BrowserProductQuery($locator: [IStoreSelectedFacet!]!) {\n product(locator: $locator) {\n id: productID\n sku\n name\n gtin\n description\n isVariantOf {\n productGroupID\n name\n }\n image {\n url\n alternateName\n }\n brand {\n name\n }\n offers {\n lowPrice\n offers {\n availability\n price\n listPrice\n seller {\n identifier\n }\n }\n }\n breadcrumbList {\n itemListElement {\n item\n name\n position\n }\n }\n additionalProperty {\n propertyID\n name\n value\n valueReference\n }\n }\n}\n","ProductsQuery":"query ProductsQuery($first: Int!, $after: String, $sort: StoreSort!, $term: String!, $selectedFacets: [IStoreSelectedFacet!]!) {\n search(\n first: $first\n after: $after\n sort: $sort\n term: $term\n selectedFacets: $selectedFacets\n ) {\n products {\n pageInfo {\n totalCount\n }\n edges {\n node {\n id: productID\n slug\n sku\n brand {\n brandName: name\n name\n }\n name\n gtin\n isVariantOf {\n productGroupID\n name\n }\n image {\n url\n alternateName\n }\n offers {\n lowPrice\n offers {\n availability\n price\n listPrice\n quantity\n seller {\n identifier\n }\n }\n }\n }\n }\n }\n }\n}\n","ValidateSession":"mutation ValidateSession($session: IStoreSession!, $search: String!) {\n validateSession(session: $session, search: $search) {\n locale\n channel\n country\n postalCode\n currency {\n code\n symbol\n }\n person {\n id\n email\n givenName\n familyName\n }\n }\n}\n"} \ No newline at end of file diff --git a/gatsby-browser.tsx b/gatsby-browser.tsx index 93917d0f..6cf97014 100644 --- a/gatsby-browser.tsx +++ b/gatsby-browser.tsx @@ -12,6 +12,7 @@ import ErrorBoundary from 'src/sdk/error/ErrorBoundary' import TestProvider from 'src/sdk/tests' import { uiActions, uiEffects, uiInitialState } from 'src/sdk/ui' import { ModalProvider } from 'src/sdk/ui/modal' +import { validateSession } from 'src/sdk/session/validate' import type { GatsbyBrowser } from 'gatsby' import storeConfig from './store.config' @@ -32,6 +33,7 @@ export const wrapRootElement: GatsbyBrowser['wrapRootElement'] = ({ channel: storeConfig.channel, locale: storeConfig.locale, }} + onValidateSession={validateSession} > {element} diff --git a/gatsby-ssr.tsx b/gatsby-ssr.tsx index 633a5931..0d46ba19 100644 --- a/gatsby-ssr.tsx +++ b/gatsby-ssr.tsx @@ -1,4 +1,5 @@ import { CartProvider, SessionProvider, UIProvider } from '@faststore/sdk' +import { validateSession } from 'src/sdk/session/validate' import type { ReactNode } from 'react' import type { GatsbySSR } from 'gatsby' @@ -26,6 +27,7 @@ export const wrapRootElement: GatsbySSR['wrapRootElement'] = ({ element }) => ( channel: storeConfig.channel, locale: storeConfig.locale, }} + onValidateSession={validateSession} > {element} diff --git a/package.json b/package.json index 8e5cf051..350c6d10 100644 --- a/package.json +++ b/package.json @@ -30,10 +30,10 @@ "@envelop/graphql-jit": "^1.1.1", "@envelop/parser-cache": "^2.2.0", "@envelop/validation-cache": "^2.2.0", - "@faststore/api": "^1.8.40", - "@faststore/sdk": "^1.8.40", - "@faststore/ui": "^1.8.40", - "@vtex/graphql-utils": "^1.8.40", + "@faststore/api": "^1.8.49", + "@faststore/sdk": "^1.8.49", + "@faststore/ui": "^1.8.49", + "@vtex/graphql-utils": "^1.8.42", "gatsby": "^4.14.1", "gatsby-plugin-gatsby-cloud": "^4.14.0", "gatsby-plugin-manifest": "^4.14.0", @@ -69,7 +69,7 @@ "@storybook/react": "^6.4.20", "@testing-library/cypress": "^8.0.0", "@types/cypress": "^1.1.3", - "@vtex/lighthouse-config": "^1.8.40", + "@vtex/lighthouse-config": "^1.8.42", "@vtex/prettier-config": "1.0.0", "@vtex/tsconfig": "0.6.0", "autoprefixer": "^10.4.0", diff --git a/src/components/regionalization/RegionalizationInput/RegionalizationInput.tsx b/src/components/regionalization/RegionalizationInput/RegionalizationInput.tsx index caa6f580..8fde5bbd 100644 --- a/src/components/regionalization/RegionalizationInput/RegionalizationInput.tsx +++ b/src/components/regionalization/RegionalizationInput/RegionalizationInput.tsx @@ -1,25 +1,12 @@ import { useSession } from '@faststore/sdk' -import { gql } from '@vtex/graphql-utils' import { useRef, useState } from 'react' -import { request } from 'src/sdk/graphql/request' -import type { - UpdateSessionMutationMutation, - UpdateSessionMutationMutationVariables, -} from '@generated/graphql' import InputText from 'src/components/ui/InputText' +import { validateSession } from 'src/sdk/session/validate' import { useModal } from 'src/sdk/ui/modal/Provider' -export const UpdateSessionMutation = gql` - mutation UpdateSessionMutation($session: IStoreSession!) { - updateSession(session: $session) { - channel - } - } -` - export default function RegionalizationInput() { const inputRef = useRef(null) - const { country, setSession, ...partialSession } = useSession() + const { setSession, ...session } = useSession() const [errorMessage, setErrorMessage] = useState('') const { onModalClose } = useModal() @@ -33,24 +20,15 @@ export default function RegionalizationInput() { setErrorMessage('') try { - const { - updateSession: { channel }, - } = await request< - UpdateSessionMutationMutation, - UpdateSessionMutationMutationVariables - >(UpdateSessionMutation, { - session: { - channel: partialSession.channel, - postalCode: value, - country, - }, - }) - - setSession({ + const newSession = await validateSession({ + ...session, postalCode: value, - channel: channel ?? partialSession.channel, }) + if (newSession) { + setSession(newSession) + } + onModalClose() } catch (error) { setErrorMessage('You entered an invalid Zip Code') diff --git a/src/components/ui/Button/ButtonSignIn.tsx b/src/components/ui/Button/ButtonSignIn.tsx index 35fd31f5..ef5bff5d 100644 --- a/src/components/ui/Button/ButtonSignIn.tsx +++ b/src/components/ui/Button/ButtonSignIn.tsx @@ -1,9 +1,9 @@ import Icon from 'src/components/ui/Icon' -import usePersonQuery from 'src/sdk/person/usePersonQuery' import { ButtonLink } from 'src/components/ui/Button' +import { useSession } from '@faststore/sdk' const ButtonSignIn = () => { - const person = usePersonQuery() + const { person } = useSession() return ( { - const [data, setData] = useState(null) - - useEffect(() => { - let cancel = false - const effect = async () => { - const reqData = await request< - PersonQueryQuery, - PersonQueryQueryVariables - >( - query, - {}, - { - ...options, - fetchOptions: { ...options?.fetchOptions, method: 'POST' }, - } - ).catch(() => undefined) - - // If request fails (4xx or 5xx status code), try to refetch after 1s. - if (!reqData) { - setTimeout(effect, 1000) - - return - } - - if (cancel) { - return - } - - setData(reqData) - } - - setTimeout(effect, 0) - - return () => { - cancel = true - } - }, [options]) - const { setSession, user, ...session } = useSession() - const person = data?.person - - useEffect(() => { - if (!!person && person !== user) { - setSession({ - ...session, - user: person, - }) - } - }, [person, user, session, setSession]) - - return person -} - -export default usePersonQuery diff --git a/src/sdk/session/validate.ts b/src/sdk/session/validate.ts new file mode 100644 index 00000000..786433f2 --- /dev/null +++ b/src/sdk/session/validate.ts @@ -0,0 +1,38 @@ +import { gql } from '@vtex/graphql-utils' +import type { Session } from '@faststore/sdk' + +import type { + ValidateSessionMutation, + ValidateSessionMutationVariables, +} from '../../../@generated/graphql/index' +import { request } from '../graphql/request' + +export const mutation = gql` + mutation ValidateSession($session: IStoreSession!, $search: String!) { + validateSession(session: $session, search: $search) { + locale + channel + country + postalCode + currency { + code + symbol + } + person { + id + email + givenName + familyName + } + } + } +` + +export const validateSession = async (session: Session) => { + const data = await request< + ValidateSessionMutation, + ValidateSessionMutationVariables + >(mutation, { session, search: window.location.search }) + + return data.validateSession +} diff --git a/store.config.js b/store.config.js index 0f75a7fd..1b28ed95 100644 --- a/store.config.js +++ b/store.config.js @@ -10,7 +10,7 @@ module.exports = { }, // Default channel - channel: '{"salesChannel":"1"}', + channel: '{"salesChannel":"1","regionId":""}', locale: 'en-US', // Production URLs diff --git a/yarn.lock b/yarn.lock index e06ac68a..8fa0947f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1974,10 +1974,10 @@ minimatch "^3.0.4" strip-json-comments "^3.1.1" -"@faststore/api@^1.8.40": - version "1.8.40" - resolved "https://registry.yarnpkg.com/@faststore/api/-/api-1.8.40.tgz#d550ad8d28addd882404e274376df457ecd5cf9d" - integrity sha512-rECcwAuH9zaebo3EutFaSjkC8xYM6p00wRgULeyOzklGOVAy+DOy8oLIl/PU66rHN552RPeP6yIYsT4kPophfA== +"@faststore/api@^1.8.49": + version "1.8.49" + resolved "https://registry.yarnpkg.com/@faststore/api/-/api-1.8.49.tgz#2a83d612e813fda73b495022058af8303981e3a5" + integrity sha512-6RqZrjvZJXLGJvCy6gc2LXdpfth4H0QFLPhld9o8AxCa4+E94jUOmFAhXPR6zcCjZ2Ij7qGAkbnsThdXJ8klig== dependencies: "@graphql-tools/schema" "^8.2.0" "@rollup/plugin-graphql" "^1.0.0" @@ -1986,17 +1986,17 @@ isomorphic-unfetch "^3.1.0" p-limit "^3.1.0" -"@faststore/sdk@^1.8.40": - version "1.8.40" - resolved "https://registry.yarnpkg.com/@faststore/sdk/-/sdk-1.8.40.tgz#df9d539ec8add4d4f9b3fbed4b1f52a28dc0f0d3" - integrity sha512-LQHvF0XngrsfShU/8qd4Lh0ZBQKMPS6AkuGsn96LIIDUIF9Oz+hccme83J+oYocNOh6LoJj0fYiPXsiKEhWBPQ== +"@faststore/sdk@^1.8.49": + version "1.8.49" + resolved "https://registry.yarnpkg.com/@faststore/sdk/-/sdk-1.8.49.tgz#9f53d2212c0cdff5e7f26f5d81a0cf68a8873680" + integrity sha512-rjXQ6+BkDlPUmV0N18S7DDFKcclPNr1v/JooR4AV42+0j+IlzXlhbKvM4Gzll2VZ95Prv0BbNcejfosItBkDCg== dependencies: idb-keyval "^5.1.3" -"@faststore/ui@^1.8.40": - version "1.8.40" - resolved "https://registry.yarnpkg.com/@faststore/ui/-/ui-1.8.40.tgz#18ba0972bfcbe068fae99085e79ed85e9eb15033" - integrity sha512-0YXkwQTGJtNj6POu5qNgPcirC1XZkuiisfNoH3SHJpCSVBp4imUOH+9OGEwzQO0/UBUEq8vhVt7DXtcpC1rLKg== +"@faststore/ui@^1.8.49": + version "1.8.49" + resolved "https://registry.yarnpkg.com/@faststore/ui/-/ui-1.8.49.tgz#f92eb2f3f25a3f522d972ce0b661c12d8001506d" + integrity sha512-cUTleBMkzLF5yyMcpKc6BRIIBUiDXQpZD8O2s+K3npRuXd3Oby03foPX7sBhd36SVEj9FahpLgALhogrvhQQYw== dependencies: "@reach/popover" "^0.16.0" "@storybook/addon-a11y" "^6.4.4" @@ -5720,20 +5720,20 @@ resolved "https://registry.yarnpkg.com/@vercel/webpack-asset-relocator-loader/-/webpack-asset-relocator-loader-1.7.0.tgz#d3b707e0aba3111719f941dacb2408eff3c27319" integrity sha512-1Dy3BdOliDwxA7VZSIg55E1d/us2KvsCQOZV25fgufG//CsnZBGiSAL7qewTQf7YVHH0A9PHgzwMmKIZ8aFYVw== -"@vtex/graphql-utils@^1.8.40": - version "1.8.40" - resolved "https://registry.yarnpkg.com/@vtex/graphql-utils/-/graphql-utils-1.8.40.tgz#e7e81e8e9628aac921024902ba67fdd1920d0efe" - integrity sha512-CbE/aqtVcyTSLdmMt+7K4IScarWFWljAyIg5nFAdgW6ogwD/zaVJB/X7K/a91CBrjcjwZnHpEsKiynlIl6Haag== +"@vtex/graphql-utils@^1.8.42": + version "1.8.42" + resolved "https://registry.yarnpkg.com/@vtex/graphql-utils/-/graphql-utils-1.8.42.tgz#49917ccfc0ef8498ab4fd6b58dfa4cb6547eb504" + integrity sha512-RRDbPzi8oq5/yXkXWTr/ZblhDYBzzrwp5akhZ2dkNs0v99+fv8Ci9P/kTsObokmMUN5saDkp13uakiHnbxUZfg== dependencies: "@babel/traverse" "^7.15.4" "@babel/types" "^7.15.6" "@graphql-codegen/plugin-helpers" "^2.2.0" "@graphql-tools/relay-operation-optimizer" "^6.4.0" -"@vtex/lighthouse-config@^1.8.40": - version "1.8.40" - resolved "https://registry.yarnpkg.com/@vtex/lighthouse-config/-/lighthouse-config-1.8.40.tgz#76fb294e36237ef8701a98ed9818dc61fc341549" - integrity sha512-gAHGyQE4wkq4HfUz2koFl9f2nGEQL0GqNxrcfLGFwkDzwzfuQBSYCbNHGYSVttxqaHkIk5v2Zm5zUPXOZv+dDw== +"@vtex/lighthouse-config@^1.8.42": + version "1.8.42" + resolved "https://registry.yarnpkg.com/@vtex/lighthouse-config/-/lighthouse-config-1.8.42.tgz#8e359f5ee0e054dd62423397b579ac2d5e67a037" + integrity sha512-dKCC7/p4J/r+Wy6sib+9GjYLb18po4Bc+mboFkr6imWtZ8Fm4ZVuO8K06ZdXJzzpzXBJz7/DOntcl8R2TokWYw== "@vtex/prettier-config@1.0.0": version "1.0.0"