|
| 1 | +export type Maybe<T> = T | null; |
| 2 | +export type InputMaybe<T> = Maybe<T>; |
| 3 | +export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] }; |
| 4 | +export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> }; |
| 5 | +export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> }; |
| 6 | +export type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never }; |
| 7 | +export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; |
| 8 | +/** All built-in and custom scalars, mapped to their actual values */ |
| 9 | +export type Scalars = { |
| 10 | + ID: { input: string; output: string }; |
| 11 | + String: { input: string; output: string }; |
| 12 | + Boolean: { input: boolean; output: boolean }; |
| 13 | + Int: { input: number; output: number }; |
| 14 | + Float: { input: number; output: number }; |
| 15 | +}; |
| 16 | + |
| 17 | +export type BaseCartLine = { |
| 18 | + id: Scalars['String']['output']; |
| 19 | + quantity: Scalars['Int']['output']; |
| 20 | +}; |
| 21 | + |
| 22 | +export type BaseCartLineConnection = { |
| 23 | + id: Scalars['String']['output']; |
| 24 | + nodes: Array<BaseCartLine>; |
| 25 | +}; |
| 26 | + |
| 27 | +export type Cart = { |
| 28 | + id: Scalars['String']['output']; |
| 29 | + lines: BaseCartLineConnection; |
| 30 | +}; |
| 31 | + |
| 32 | +export type CartLine = BaseCartLine & { |
| 33 | + id: Scalars['String']['output']; |
| 34 | + quantity: Scalars['Int']['output']; |
| 35 | +}; |
| 36 | + |
| 37 | +export type ComponentizableCartLine = BaseCartLine & { |
| 38 | + id: Scalars['String']['output']; |
| 39 | + quantity: Scalars['Int']['output']; |
| 40 | +}; |
| 41 | + |
| 42 | +export type QueryRoot = { |
| 43 | + cart?: Maybe<Cart>; |
| 44 | +}; |
| 45 | + |
| 46 | +export type CartLineFragment = { id: string; quantity: number }; |
| 47 | + |
| 48 | +export type TestQueryVariables = Exact<{ [key: string]: never }>; |
| 49 | + |
| 50 | +export type TestQuery = { cart?: { lines: { nodes: Array<{ id: string; quantity: number }> } } | null }; |
0 commit comments