1 export default `
2 enum ProductStatus {
3 draft
4 proposed
5 published
6 rejected
7 }
8
9 type Product {
10 id: ID!
11 title: String!
12 handle: String!
13 subtitle: String
14 description: String
15 is_giftcard: Boolean!
16 status: ProductStatus!
17 thumbnail: String
18 width: Float
19 weight: Float
20 length: Float
21 height: Float
22 origin_country: String
23 hs_code: String
24 mid_code: String
25 material: String
26 collection: ProductCollection
27 collection_id: String
28 categories: [ProductCategory]
29 type: ProductType
30 type_id: String
31 tags: [ProductTag!]!
32 variants: [ProductVariant!]!
33 options: [ProductOption!]!
34 images: [ProductImage!]!
35 discountable: Boolean
36 external_id: String
37 created_at: DateTime!
38 updated_at: DateTime!
39 deleted_at: DateTime
40 metadata: JSON
41 }
42
43 type ProductVariant {
44 id: ID!
45 title: String!
46 sku: String
47 barcode: String
48 ean: String
49 upc: String
50 allow_backorder: Boolean!
51 manage_inventory: Boolean!
52 requires_shipping: Boolean!
53 hs_code: String
54 origin_country: String
55 mid_code: String
56 material: String
57 weight: Float
58 length: Float
59 height: Float
60 width: Float
61 options: [ProductOptionValue!]!
62 images: [ProductImage!]!
63 thumbnail: String
64 metadata: JSON
65 product: Product
66 product_id: String
67 variant_rank: Int
68 created_at: DateTime!
69 updated_at: DateTime!
70 deleted_at: DateTime
71 }
72
73 type ProductCategory {
74 id: ID!
75 name: String!
76 description: String!
77 handle: String!
78 mpath: String!
79 is_active: Boolean!
80 is_internal: Boolean!
81 rank: Int!
82 metadata: JSON
83 parent_category: ProductCategory
84 parent_category_id: String
85 category_children: [ProductCategory!]!
86 products: [Product!]!
87 created_at: DateTime!
88 updated_at: DateTime!
89 deleted_at: DateTime
90 }
91
92 type ProductTag {
93 id: ID!
94 value: String!
95 metadata: JSON
96 products: [Product]
97 created_at: DateTime!
98 updated_at: DateTime!
99 deleted_at: DateTime
100 }
101
102 type ProductCollection {
103 id: ID!
104 title: String!
105 handle: String!
106 metadata: JSON
107 created_at: DateTime!
108 updated_at: DateTime!
109 deleted_at: DateTime
110 products: [Product]
111 }
112
113 type ProductType {
114 id: ID!
115 value: String!
116 metadata: JSON
117 products: [Product]
118 created_at: DateTime!
119 updated_at: DateTime!
120 deleted_at: DateTime
121 }
122
123 type ProductOption {
124 id: ID!
125 title: String!
126 is_exclusive: Boolean!
127 products: [Product!]!
128 values: [ProductOptionValue!]!
129 metadata: JSON
130 created_at: DateTime!
131 updated_at: DateTime!
132 deleted_at: DateTime
133 }
134
135 type ProductImage {
136 id: ID!
137 url: String!
138 rank: Int!
139 metadata: JSON
140 product: Product
141 product_id: String
142 variants: [ProductVariant]
143 created_at: DateTime!
144 updated_at: DateTime!
145 deleted_at: DateTime
146 }
147
148 type ProductOptionValue {
149 id: ID!
150 value: String!
151 option: ProductOption
152 option_id: String
153 variants: [ProductVariant]
154 metadata: JSON
155 created_at: DateTime!
156 updated_at: DateTime!
157 deleted_at: DateTime
158 }
159
160 type ProductVariantProductImage {
161 id: ID!
162 variant: ProductVariant!
163 variant_id: String!
164 image: ProductImage!
165 image_id: String!
166 created_at: DateTime!
167 updated_at: DateTime!
168 deleted_at: DateTime
169 }
170
171 `