@teemill/product-catalog 1.11.1 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. package/.openapi-generator/FILES +6 -29
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +3 -3
  4. package/api.ts +1598 -0
  5. package/base.ts +86 -0
  6. package/common.ts +150 -0
  7. package/configuration.ts +110 -0
  8. package/dist/api.d.ts +1126 -0
  9. package/dist/api.js +819 -0
  10. package/dist/base.d.ts +66 -0
  11. package/dist/base.js +65 -0
  12. package/dist/common.d.ts +65 -0
  13. package/dist/common.js +161 -0
  14. package/dist/configuration.d.ts +91 -0
  15. package/dist/configuration.js +43 -0
  16. package/dist/esm/api.d.ts +1126 -0
  17. package/dist/esm/api.js +808 -0
  18. package/dist/esm/base.d.ts +66 -0
  19. package/dist/esm/base.js +60 -0
  20. package/dist/esm/common.d.ts +65 -0
  21. package/dist/esm/common.js +149 -0
  22. package/dist/esm/configuration.d.ts +91 -0
  23. package/dist/esm/configuration.js +39 -0
  24. package/dist/esm/index.d.ts +13 -3
  25. package/dist/esm/index.js +13 -3
  26. package/dist/index.d.ts +13 -3
  27. package/dist/index.js +15 -5
  28. package/git_push.sh +57 -0
  29. package/index.ts +18 -0
  30. package/package.json +15 -3
  31. package/tsconfig.json +4 -6
  32. package/dist/apis/ProductsApi.d.ts +0 -107
  33. package/dist/apis/ProductsApi.js +0 -304
  34. package/dist/apis/VariantsApi.d.ts +0 -50
  35. package/dist/apis/VariantsApi.js +0 -131
  36. package/dist/apis/index.d.ts +0 -2
  37. package/dist/apis/index.js +0 -20
  38. package/dist/esm/apis/ProductsApi.d.ts +0 -107
  39. package/dist/esm/apis/ProductsApi.js +0 -300
  40. package/dist/esm/apis/VariantsApi.d.ts +0 -50
  41. package/dist/esm/apis/VariantsApi.js +0 -127
  42. package/dist/esm/apis/index.d.ts +0 -2
  43. package/dist/esm/apis/index.js +0 -4
  44. package/dist/esm/models/ApiError.d.ts +0 -37
  45. package/dist/esm/models/ApiError.js +0 -42
  46. package/dist/esm/models/Attribute.d.ts +0 -50
  47. package/dist/esm/models/Attribute.js +0 -49
  48. package/dist/esm/models/AttributeThumbnail.d.ts +0 -46
  49. package/dist/esm/models/AttributeThumbnail.js +0 -48
  50. package/dist/esm/models/CreateProductRequest.d.ts +0 -88
  51. package/dist/esm/models/CreateProductRequest.js +0 -63
  52. package/dist/esm/models/CreateProductRequestAdditionalFilesInner.d.ts +0 -31
  53. package/dist/esm/models/CreateProductRequestAdditionalFilesInner.js +0 -43
  54. package/dist/esm/models/CreateProductRequestImagesInner.d.ts +0 -31
  55. package/dist/esm/models/CreateProductRequestImagesInner.js +0 -38
  56. package/dist/esm/models/CreateProductRequestSeoMetadata.d.ts +0 -31
  57. package/dist/esm/models/CreateProductRequestSeoMetadata.js +0 -38
  58. package/dist/esm/models/CreateProductRequestVariantsInner.d.ts +0 -59
  59. package/dist/esm/models/CreateProductRequestVariantsInner.js +0 -57
  60. package/dist/esm/models/CreateProductRequestVariantsInnerApplicationsInner.d.ts +0 -63
  61. package/dist/esm/models/CreateProductRequestVariantsInnerApplicationsInner.js +0 -67
  62. package/dist/esm/models/CreateProductRequestVariantsInnerAttributesInner.d.ts +0 -37
  63. package/dist/esm/models/CreateProductRequestVariantsInnerAttributesInner.js +0 -46
  64. package/dist/esm/models/CreateProductRequestVariantsInnerImagesInner.d.ts +0 -31
  65. package/dist/esm/models/CreateProductRequestVariantsInnerImagesInner.js +0 -43
  66. package/dist/esm/models/CreateProductRequestVariantsInnerRetailPrice.d.ts +0 -37
  67. package/dist/esm/models/CreateProductRequestVariantsInnerRetailPrice.js +0 -46
  68. package/dist/esm/models/CreateProductVariant.d.ts +0 -59
  69. package/dist/esm/models/CreateProductVariant.js +0 -54
  70. package/dist/esm/models/CreateProductVariantApplicationsInner.d.ts +0 -54
  71. package/dist/esm/models/CreateProductVariantApplicationsInner.js +0 -58
  72. package/dist/esm/models/CreateProductVariantAttributesInner.d.ts +0 -37
  73. package/dist/esm/models/CreateProductVariantAttributesInner.js +0 -44
  74. package/dist/esm/models/CreateProductVariantRetailPrice.d.ts +0 -37
  75. package/dist/esm/models/CreateProductVariantRetailPrice.js +0 -44
  76. package/dist/esm/models/Image.d.ts +0 -67
  77. package/dist/esm/models/Image.js +0 -50
  78. package/dist/esm/models/ImportProducts200Response.d.ts +0 -31
  79. package/dist/esm/models/ImportProducts200Response.js +0 -38
  80. package/dist/esm/models/ModelFile.d.ts +0 -31
  81. package/dist/esm/models/ModelFile.js +0 -38
  82. package/dist/esm/models/Price.d.ts +0 -37
  83. package/dist/esm/models/Price.js +0 -40
  84. package/dist/esm/models/Product.d.ts +0 -113
  85. package/dist/esm/models/Product.js +0 -71
  86. package/dist/esm/models/ProductAdditionalFilesInner.d.ts +0 -37
  87. package/dist/esm/models/ProductAdditionalFilesInner.js +0 -40
  88. package/dist/esm/models/ProductsResponse.d.ts +0 -38
  89. package/dist/esm/models/ProductsResponse.js +0 -41
  90. package/dist/esm/models/SeoMetadata.d.ts +0 -31
  91. package/dist/esm/models/SeoMetadata.js +0 -38
  92. package/dist/esm/models/Stock.d.ts +0 -31
  93. package/dist/esm/models/Stock.js +0 -38
  94. package/dist/esm/models/UpdateProductRequest.d.ts +0 -87
  95. package/dist/esm/models/UpdateProductRequest.js +0 -58
  96. package/dist/esm/models/Variant.d.ts +0 -114
  97. package/dist/esm/models/Variant.js +0 -71
  98. package/dist/esm/models/VariantProduct.d.ts +0 -37
  99. package/dist/esm/models/VariantProduct.js +0 -40
  100. package/dist/esm/models/VariantsResponse.d.ts +0 -38
  101. package/dist/esm/models/VariantsResponse.js +0 -41
  102. package/dist/esm/models/index.d.ts +0 -23
  103. package/dist/esm/models/index.js +0 -25
  104. package/dist/esm/runtime.d.ts +0 -187
  105. package/dist/esm/runtime.js +0 -333
  106. package/dist/models/ApiError.d.ts +0 -37
  107. package/dist/models/ApiError.js +0 -49
  108. package/dist/models/Attribute.d.ts +0 -50
  109. package/dist/models/Attribute.js +0 -56
  110. package/dist/models/AttributeThumbnail.d.ts +0 -46
  111. package/dist/models/AttributeThumbnail.js +0 -55
  112. package/dist/models/CreateProductRequest.d.ts +0 -88
  113. package/dist/models/CreateProductRequest.js +0 -70
  114. package/dist/models/CreateProductRequestAdditionalFilesInner.d.ts +0 -31
  115. package/dist/models/CreateProductRequestAdditionalFilesInner.js +0 -50
  116. package/dist/models/CreateProductRequestImagesInner.d.ts +0 -31
  117. package/dist/models/CreateProductRequestImagesInner.js +0 -45
  118. package/dist/models/CreateProductRequestSeoMetadata.d.ts +0 -31
  119. package/dist/models/CreateProductRequestSeoMetadata.js +0 -45
  120. package/dist/models/CreateProductRequestVariantsInner.d.ts +0 -59
  121. package/dist/models/CreateProductRequestVariantsInner.js +0 -64
  122. package/dist/models/CreateProductRequestVariantsInnerApplicationsInner.d.ts +0 -63
  123. package/dist/models/CreateProductRequestVariantsInnerApplicationsInner.js +0 -74
  124. package/dist/models/CreateProductRequestVariantsInnerAttributesInner.d.ts +0 -37
  125. package/dist/models/CreateProductRequestVariantsInnerAttributesInner.js +0 -53
  126. package/dist/models/CreateProductRequestVariantsInnerImagesInner.d.ts +0 -31
  127. package/dist/models/CreateProductRequestVariantsInnerImagesInner.js +0 -50
  128. package/dist/models/CreateProductRequestVariantsInnerRetailPrice.d.ts +0 -37
  129. package/dist/models/CreateProductRequestVariantsInnerRetailPrice.js +0 -53
  130. package/dist/models/CreateProductVariant.d.ts +0 -59
  131. package/dist/models/CreateProductVariant.js +0 -61
  132. package/dist/models/CreateProductVariantApplicationsInner.d.ts +0 -54
  133. package/dist/models/CreateProductVariantApplicationsInner.js +0 -65
  134. package/dist/models/CreateProductVariantAttributesInner.d.ts +0 -37
  135. package/dist/models/CreateProductVariantAttributesInner.js +0 -51
  136. package/dist/models/CreateProductVariantRetailPrice.d.ts +0 -37
  137. package/dist/models/CreateProductVariantRetailPrice.js +0 -51
  138. package/dist/models/Image.d.ts +0 -67
  139. package/dist/models/Image.js +0 -57
  140. package/dist/models/ImportProducts200Response.d.ts +0 -31
  141. package/dist/models/ImportProducts200Response.js +0 -45
  142. package/dist/models/ModelFile.d.ts +0 -31
  143. package/dist/models/ModelFile.js +0 -45
  144. package/dist/models/Price.d.ts +0 -37
  145. package/dist/models/Price.js +0 -47
  146. package/dist/models/Product.d.ts +0 -113
  147. package/dist/models/Product.js +0 -78
  148. package/dist/models/ProductAdditionalFilesInner.d.ts +0 -37
  149. package/dist/models/ProductAdditionalFilesInner.js +0 -47
  150. package/dist/models/ProductsResponse.d.ts +0 -38
  151. package/dist/models/ProductsResponse.js +0 -48
  152. package/dist/models/SeoMetadata.d.ts +0 -31
  153. package/dist/models/SeoMetadata.js +0 -45
  154. package/dist/models/Stock.d.ts +0 -31
  155. package/dist/models/Stock.js +0 -45
  156. package/dist/models/UpdateProductRequest.d.ts +0 -87
  157. package/dist/models/UpdateProductRequest.js +0 -65
  158. package/dist/models/Variant.d.ts +0 -114
  159. package/dist/models/Variant.js +0 -78
  160. package/dist/models/VariantProduct.d.ts +0 -37
  161. package/dist/models/VariantProduct.js +0 -47
  162. package/dist/models/VariantsResponse.d.ts +0 -38
  163. package/dist/models/VariantsResponse.js +0 -48
  164. package/dist/models/index.d.ts +0 -23
  165. package/dist/models/index.js +0 -41
  166. package/dist/runtime.d.ts +0 -187
  167. package/dist/runtime.js +0 -349
  168. package/src/apis/ProductsApi.ts +0 -453
  169. package/src/apis/VariantsApi.ts +0 -186
  170. package/src/apis/index.ts +0 -4
  171. package/src/index.ts +0 -5
  172. package/src/models/ApiError.ts +0 -69
  173. package/src/models/Attribute.ts +0 -93
  174. package/src/models/AttributeThumbnail.ts +0 -80
  175. package/src/models/CreateProductRequest.ts +0 -153
  176. package/src/models/CreateProductRequestAdditionalFilesInner.ts +0 -65
  177. package/src/models/CreateProductRequestImagesInner.ts +0 -60
  178. package/src/models/CreateProductRequestSeoMetadata.ts +0 -60
  179. package/src/models/CreateProductRequestVariantsInner.ts +0 -124
  180. package/src/models/CreateProductRequestVariantsInnerApplicationsInner.ts +0 -108
  181. package/src/models/CreateProductRequestVariantsInnerAttributesInner.ts +0 -75
  182. package/src/models/CreateProductRequestVariantsInnerImagesInner.ts +0 -65
  183. package/src/models/CreateProductRequestVariantsInnerRetailPrice.ts +0 -75
  184. package/src/models/CreateProductVariant.ts +0 -119
  185. package/src/models/CreateProductVariantApplicationsInner.ts +0 -93
  186. package/src/models/CreateProductVariantAttributesInner.ts +0 -70
  187. package/src/models/CreateProductVariantRetailPrice.ts +0 -70
  188. package/src/models/Image.ts +0 -108
  189. package/src/models/ImportProducts200Response.ts +0 -60
  190. package/src/models/ModelFile.ts +0 -60
  191. package/src/models/Price.ts +0 -68
  192. package/src/models/Product.ts +0 -190
  193. package/src/models/ProductAdditionalFilesInner.ts +0 -68
  194. package/src/models/ProductsResponse.ts +0 -75
  195. package/src/models/SeoMetadata.ts +0 -60
  196. package/src/models/Stock.ts +0 -60
  197. package/src/models/UpdateProductRequest.ts +0 -145
  198. package/src/models/Variant.ts +0 -195
  199. package/src/models/VariantProduct.ts +0 -68
  200. package/src/models/VariantsResponse.ts +0 -75
  201. package/src/models/index.ts +0 -25
  202. package/src/runtime.ts +0 -441
package/dist/api.d.ts ADDED
@@ -0,0 +1,1126 @@
1
+ /**
2
+ * Product Catalog API
3
+ * Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
4
+ *
5
+ * The version of the OpenAPI document: 1.13.0
6
+ * Contact: hello@teemill.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from './configuration';
13
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ import type { RequestArgs } from './base';
15
+ import { BaseAPI } from './base';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ApiError
20
+ */
21
+ export interface ApiError {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ApiError
26
+ */
27
+ 'code'?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ApiError
32
+ */
33
+ 'message': string;
34
+ }
35
+ /**
36
+ *
37
+ * @export
38
+ * @interface Application
39
+ */
40
+ export interface Application {
41
+ /**
42
+ * Technology to use for the application.
43
+ * @type {string}
44
+ * @memberof Application
45
+ */
46
+ 'technology': string;
47
+ /**
48
+ * Placement of the application. Available placements depend on the chosen product and technology.
49
+ * @type {string}
50
+ * @memberof Application
51
+ */
52
+ 'placement': ApplicationPlacementEnum;
53
+ /**
54
+ * Publicly available design file URL. This will fill the design area of the warehouse product. It will be centered horizontally and aligned to the top of the design area. Accepts PNG and JPEG files.
55
+ * @type {string}
56
+ * @memberof Application
57
+ */
58
+ 'src': string;
59
+ }
60
+ export declare const ApplicationPlacementEnum: {
61
+ readonly Front: "front";
62
+ readonly Back: "back";
63
+ readonly Left: "left";
64
+ readonly Right: "right";
65
+ readonly Neck: "neck";
66
+ };
67
+ export type ApplicationPlacementEnum = typeof ApplicationPlacementEnum[keyof typeof ApplicationPlacementEnum];
68
+ /**
69
+ *
70
+ * @export
71
+ * @interface Attribute
72
+ */
73
+ export interface Attribute {
74
+ /**
75
+ * Attribute name
76
+ * @type {string}
77
+ * @memberof Attribute
78
+ */
79
+ 'name': string;
80
+ /**
81
+ * Attribute value
82
+ * @type {string}
83
+ * @memberof Attribute
84
+ */
85
+ 'value': string;
86
+ /**
87
+ *
88
+ * @type {AttributeThumbnail}
89
+ * @memberof Attribute
90
+ */
91
+ 'thumbnail'?: AttributeThumbnail;
92
+ /**
93
+ * Attribute tags
94
+ * @type {Array<string>}
95
+ * @memberof Attribute
96
+ */
97
+ 'tags'?: Array<string>;
98
+ }
99
+ /**
100
+ * Attribute thumbnail, intended for interfaces like storefront colour selector.
101
+ * @export
102
+ * @interface AttributeThumbnail
103
+ */
104
+ export interface AttributeThumbnail {
105
+ /**
106
+ *
107
+ * @type {string}
108
+ * @memberof AttributeThumbnail
109
+ */
110
+ 'type'?: AttributeThumbnailTypeEnum;
111
+ /**
112
+ *
113
+ * @type {string}
114
+ * @memberof AttributeThumbnail
115
+ */
116
+ 'value'?: string;
117
+ }
118
+ export declare const AttributeThumbnailTypeEnum: {
119
+ readonly Text: "text";
120
+ readonly Color: "color";
121
+ readonly Image: "image";
122
+ };
123
+ export type AttributeThumbnailTypeEnum = typeof AttributeThumbnailTypeEnum[keyof typeof AttributeThumbnailTypeEnum];
124
+ /**
125
+ *
126
+ * @export
127
+ * @interface CreateProductRequest
128
+ */
129
+ export interface CreateProductRequest {
130
+ /**
131
+ * Reference to the product in the GFN catalog that will be used as a base for this product. A list of available products for the given project can be obtained from the GFN Catalog API.
132
+ * @type {string}
133
+ * @memberof CreateProductRequest
134
+ */
135
+ 'gfnProductRef': string;
136
+ /**
137
+ * Product title
138
+ * @type {string}
139
+ * @memberof CreateProductRequest
140
+ */
141
+ 'title'?: string;
142
+ /**
143
+ * Product description
144
+ * @type {string}
145
+ * @memberof CreateProductRequest
146
+ */
147
+ 'description'?: string;
148
+ /**
149
+ * Whether the product is enabled upon creation.
150
+ * @type {boolean}
151
+ * @memberof CreateProductRequest
152
+ */
153
+ 'enabled'?: boolean;
154
+ /**
155
+ * A custom URL slug for the product. This must be unique for each product on the project.
156
+ * @type {string}
157
+ * @memberof CreateProductRequest
158
+ */
159
+ 'slug'?: string;
160
+ /**
161
+ *
162
+ * @type {CreateProductRequestSeoMetadata}
163
+ * @memberof CreateProductRequest
164
+ */
165
+ 'seoMetadata'?: CreateProductRequestSeoMetadata;
166
+ /**
167
+ * Additional product tags used for searching and filtering.
168
+ * @type {Array<string>}
169
+ * @memberof CreateProductRequest
170
+ */
171
+ 'tags'?: Array<string>;
172
+ /**
173
+ * Variants
174
+ * @type {Array<CreateProductVariant>}
175
+ * @memberof CreateProductRequest
176
+ */
177
+ 'variants': Array<CreateProductVariant>;
178
+ /**
179
+ * Images to attach to the product. For example, photos of models using/wearing the product.
180
+ * @type {Array<CreateProductRequestImagesInner>}
181
+ * @memberof CreateProductRequest
182
+ */
183
+ 'images'?: Array<CreateProductRequestImagesInner>;
184
+ /**
185
+ * Additional files to attach to the product. For example, original design files e.g. PSD, AI, etc.
186
+ * @type {Array<CreateProductRequestImagesInner>}
187
+ * @memberof CreateProductRequest
188
+ */
189
+ 'additionalFiles'?: Array<CreateProductRequestImagesInner>;
190
+ }
191
+ /**
192
+ *
193
+ * @export
194
+ * @interface CreateProductRequestImagesInner
195
+ */
196
+ export interface CreateProductRequestImagesInner {
197
+ /**
198
+ * Publicly available file URL.
199
+ * @type {string}
200
+ * @memberof CreateProductRequestImagesInner
201
+ */
202
+ 'src'?: string;
203
+ }
204
+ /**
205
+ *
206
+ * @export
207
+ * @interface CreateProductRequestSeoMetadata
208
+ */
209
+ export interface CreateProductRequestSeoMetadata {
210
+ /**
211
+ * Meta title for the product. This appears in search engine results and social shares. If not provided, the product title will be used.
212
+ * @type {string}
213
+ * @memberof CreateProductRequestSeoMetadata
214
+ */
215
+ 'title'?: string;
216
+ }
217
+ /**
218
+ *
219
+ * @export
220
+ * @interface CreateProductVariant
221
+ */
222
+ export interface CreateProductVariant {
223
+ /**
224
+ * Attributes associated to a variant such as Colour and Size.
225
+ * @type {Array<CreateProductVariantAttributesInner>}
226
+ * @memberof CreateProductVariant
227
+ */
228
+ 'attributes': Array<CreateProductVariantAttributesInner>;
229
+ /**
230
+ *
231
+ * @type {CreateProductVariantRetailPrice}
232
+ * @memberof CreateProductVariant
233
+ */
234
+ 'retailPrice': CreateProductVariantRetailPrice;
235
+ /**
236
+ * A custom stock keeping unit for the variant.
237
+ * @type {string}
238
+ * @memberof CreateProductVariant
239
+ */
240
+ 'sku'?: string;
241
+ /**
242
+ * Design applications. If not provided, the product will be blank.
243
+ * @type {Array<Application>}
244
+ * @memberof CreateProductVariant
245
+ */
246
+ 'applications'?: Array<Application>;
247
+ /**
248
+ * Only use if you want to override the main product image. If not provided, mockups will be generated using the design applications and the warehouse product provided. Accepts PNG and JPEG files.
249
+ * @type {Array<CreateProductRequestImagesInner>}
250
+ * @memberof CreateProductVariant
251
+ */
252
+ 'images'?: Array<CreateProductRequestImagesInner>;
253
+ }
254
+ /**
255
+ *
256
+ * @export
257
+ * @interface CreateProductVariantAttributesInner
258
+ */
259
+ export interface CreateProductVariantAttributesInner {
260
+ /**
261
+ * Attribute name
262
+ * @type {string}
263
+ * @memberof CreateProductVariantAttributesInner
264
+ */
265
+ 'name': string;
266
+ /**
267
+ * Attribute value
268
+ * @type {string}
269
+ * @memberof CreateProductVariantAttributesInner
270
+ */
271
+ 'value': string;
272
+ }
273
+ /**
274
+ * Variant retail price including tax.
275
+ * @export
276
+ * @interface CreateProductVariantRetailPrice
277
+ */
278
+ export interface CreateProductVariantRetailPrice {
279
+ /**
280
+ * Price including tax in the specified currency.
281
+ * @type {number}
282
+ * @memberof CreateProductVariantRetailPrice
283
+ */
284
+ 'amount': number;
285
+ /**
286
+ * Currency code for the currency the price is valued in.
287
+ * @type {string}
288
+ * @memberof CreateProductVariantRetailPrice
289
+ */
290
+ 'currencyCode': string;
291
+ }
292
+ /**
293
+ * Image description
294
+ * @export
295
+ * @interface Image
296
+ */
297
+ export interface Image {
298
+ /**
299
+ * Unique object identifier
300
+ * @type {string}
301
+ * @memberof Image
302
+ */
303
+ 'id'?: string;
304
+ /**
305
+ *
306
+ * @type {string}
307
+ * @memberof Image
308
+ */
309
+ 'src'?: string;
310
+ /**
311
+ *
312
+ * @type {string}
313
+ * @memberof Image
314
+ */
315
+ 'alt'?: string;
316
+ /**
317
+ * List of variant Ids
318
+ * @type {Array<string>}
319
+ * @memberof Image
320
+ */
321
+ 'variantIds'?: Array<string>;
322
+ /**
323
+ *
324
+ * @type {number}
325
+ * @memberof Image
326
+ */
327
+ 'sortOrder'?: number;
328
+ /**
329
+ *
330
+ * @type {string}
331
+ * @memberof Image
332
+ */
333
+ 'createdAt'?: string;
334
+ /**
335
+ *
336
+ * @type {string}
337
+ * @memberof Image
338
+ */
339
+ 'updatedAt'?: string;
340
+ }
341
+ /**
342
+ *
343
+ * @export
344
+ * @interface ImportProducts200Response
345
+ */
346
+ export interface ImportProducts200Response {
347
+ /**
348
+ * Id of the product import
349
+ * @type {string}
350
+ * @memberof ImportProducts200Response
351
+ */
352
+ 'importId'?: string;
353
+ }
354
+ /**
355
+ *
356
+ * @export
357
+ * @interface ModelFile
358
+ */
359
+ export interface ModelFile {
360
+ /**
361
+ * Publicly available file URL.
362
+ * @type {string}
363
+ * @memberof ModelFile
364
+ */
365
+ 'src'?: string;
366
+ }
367
+ /**
368
+ * Standard price definition that defines the amount, tax rate and currency.
369
+ * @export
370
+ * @interface Price
371
+ */
372
+ export interface Price {
373
+ /**
374
+ * Price including tax in the specified currency.
375
+ * @type {number}
376
+ * @memberof Price
377
+ */
378
+ 'amount'?: number;
379
+ /**
380
+ * Currency code for the currency the price is valued in.
381
+ * @type {string}
382
+ * @memberof Price
383
+ */
384
+ 'currencyCode'?: string;
385
+ }
386
+ /**
387
+ *
388
+ * @export
389
+ * @interface Product
390
+ */
391
+ export interface Product {
392
+ /**
393
+ * Unique object identifier
394
+ * @type {string}
395
+ * @memberof Product
396
+ */
397
+ 'id'?: string;
398
+ /**
399
+ * A reference to the resource location
400
+ * @type {string}
401
+ * @memberof Product
402
+ */
403
+ 'ref'?: string;
404
+ /**
405
+ *
406
+ * @type {string}
407
+ * @memberof Product
408
+ */
409
+ 'title': string;
410
+ /**
411
+ *
412
+ * @type {string}
413
+ * @memberof Product
414
+ */
415
+ 'description': string;
416
+ /**
417
+ *
418
+ * @type {string}
419
+ * @memberof Product
420
+ */
421
+ 'slug'?: string;
422
+ /**
423
+ *
424
+ * @type {boolean}
425
+ * @memberof Product
426
+ */
427
+ 'enabled'?: boolean;
428
+ /**
429
+ *
430
+ * @type {SeoMetadata}
431
+ * @memberof Product
432
+ */
433
+ 'seoMetadata'?: SeoMetadata;
434
+ /**
435
+ *
436
+ * @type {Array<string>}
437
+ * @memberof Product
438
+ */
439
+ 'tags'?: Array<string>;
440
+ /**
441
+ *
442
+ * @type {string}
443
+ * @memberof Product
444
+ */
445
+ 'createdAt'?: string;
446
+ /**
447
+ *
448
+ * @type {string}
449
+ * @memberof Product
450
+ */
451
+ 'updatedAt'?: string;
452
+ /**
453
+ *
454
+ * @type {string}
455
+ * @memberof Product
456
+ */
457
+ 'publishedAt'?: string;
458
+ /**
459
+ * Images
460
+ * @type {Array<Image>}
461
+ * @memberof Product
462
+ */
463
+ 'images'?: Array<Image>;
464
+ /**
465
+ * Variants
466
+ * @type {Array<Variant>}
467
+ * @memberof Product
468
+ */
469
+ 'variants'?: Array<Variant>;
470
+ /**
471
+ * Additional files attached to the product.
472
+ * @type {Array<ProductAdditionalFilesInner>}
473
+ * @memberof Product
474
+ */
475
+ 'additionalFiles'?: Array<ProductAdditionalFilesInner>;
476
+ }
477
+ /**
478
+ *
479
+ * @export
480
+ * @interface ProductAdditionalFilesInner
481
+ */
482
+ export interface ProductAdditionalFilesInner {
483
+ /**
484
+ * Unique object identifier
485
+ * @type {string}
486
+ * @memberof ProductAdditionalFilesInner
487
+ */
488
+ 'id'?: string;
489
+ /**
490
+ * File URL
491
+ * @type {string}
492
+ * @memberof ProductAdditionalFilesInner
493
+ */
494
+ 'src'?: string;
495
+ }
496
+ /**
497
+ *
498
+ * @export
499
+ * @interface ProductsResponse
500
+ */
501
+ export interface ProductsResponse {
502
+ /**
503
+ *
504
+ * @type {Array<Product>}
505
+ * @memberof ProductsResponse
506
+ */
507
+ 'products'?: Array<Product>;
508
+ /**
509
+ *
510
+ * @type {number}
511
+ * @memberof ProductsResponse
512
+ */
513
+ 'nextPageToken'?: number;
514
+ }
515
+ /**
516
+ * SEO metadata for the product
517
+ * @export
518
+ * @interface SeoMetadata
519
+ */
520
+ export interface SeoMetadata {
521
+ /**
522
+ * Meta title for the product. This appears in search engine results and social shares. If not provided, the product title will be used.
523
+ * @type {string}
524
+ * @memberof SeoMetadata
525
+ */
526
+ 'title'?: string;
527
+ }
528
+ /**
529
+ *
530
+ * @export
531
+ * @interface Stock
532
+ */
533
+ export interface Stock {
534
+ /**
535
+ *
536
+ * @type {number}
537
+ * @memberof Stock
538
+ */
539
+ 'level'?: number;
540
+ }
541
+ /**
542
+ *
543
+ * @export
544
+ * @interface UpdateProductRequest
545
+ */
546
+ export interface UpdateProductRequest {
547
+ /**
548
+ * Reference to the product in the GFN catalog that will be used as a base for this product. A list of available products for the given project can be obtained from the GFN Catalog API.
549
+ * @type {string}
550
+ * @memberof UpdateProductRequest
551
+ */
552
+ 'gfnProductRef'?: string;
553
+ /**
554
+ * Product title
555
+ * @type {string}
556
+ * @memberof UpdateProductRequest
557
+ */
558
+ 'title'?: string;
559
+ /**
560
+ * Product description
561
+ * @type {string}
562
+ * @memberof UpdateProductRequest
563
+ */
564
+ 'description'?: string;
565
+ /**
566
+ * Whether the product is enabled upon creation.
567
+ * @type {boolean}
568
+ * @memberof UpdateProductRequest
569
+ */
570
+ 'enabled'?: boolean;
571
+ /**
572
+ * A custom URL slug for the product. This must be unique for each product on the project.
573
+ * @type {string}
574
+ * @memberof UpdateProductRequest
575
+ */
576
+ 'slug'?: string;
577
+ /**
578
+ *
579
+ * @type {CreateProductRequestSeoMetadata}
580
+ * @memberof UpdateProductRequest
581
+ */
582
+ 'seoMetadata'?: CreateProductRequestSeoMetadata;
583
+ /**
584
+ * Additional product tags used for searching and filtering.
585
+ * @type {Array<string>}
586
+ * @memberof UpdateProductRequest
587
+ */
588
+ 'tags'?: Array<string>;
589
+ /**
590
+ * Variants
591
+ * @type {Array<CreateProductVariant>}
592
+ * @memberof UpdateProductRequest
593
+ */
594
+ 'variants'?: Array<CreateProductVariant>;
595
+ /**
596
+ * Images to attach to the product. For example, photos of models using/wearing the product.
597
+ * @type {Array<any>}
598
+ * @memberof UpdateProductRequest
599
+ */
600
+ 'images'?: Array<any>;
601
+ /**
602
+ * Additional files to attach to the product. For example, original design files e.g. PSD, AI, etc.
603
+ * @type {Array<any>}
604
+ * @memberof UpdateProductRequest
605
+ */
606
+ 'additionalFiles'?: Array<any>;
607
+ }
608
+ /**
609
+ *
610
+ * @export
611
+ * @interface Variant
612
+ */
613
+ export interface Variant {
614
+ /**
615
+ * Unique object identifier
616
+ * @type {string}
617
+ * @memberof Variant
618
+ */
619
+ 'id'?: string;
620
+ /**
621
+ * Attributes associated to a variant such as Colour and Size. An attribute can have thumbnail type of `text`, `color`, or `image`. Attribute tags are intended for grouping and filtering, e.g. by a group of colours.
622
+ * @type {Array<Attribute>}
623
+ * @memberof Variant
624
+ */
625
+ 'attributes': Array<Attribute>;
626
+ /**
627
+ *
628
+ * @type {string}
629
+ * @memberof Variant
630
+ */
631
+ 'sku': string;
632
+ /**
633
+ * A reference to the resource location
634
+ * @type {string}
635
+ * @memberof Variant
636
+ */
637
+ 'ref'?: string;
638
+ /**
639
+ *
640
+ * @type {VariantProduct}
641
+ * @memberof Variant
642
+ */
643
+ 'product'?: VariantProduct;
644
+ /**
645
+ *
646
+ * @type {number}
647
+ * @memberof Variant
648
+ */
649
+ 'sortOrder'?: number;
650
+ /**
651
+ *
652
+ * @type {Price}
653
+ * @memberof Variant
654
+ */
655
+ 'retailPrice'?: Price;
656
+ /**
657
+ *
658
+ * @type {Price}
659
+ * @memberof Variant
660
+ */
661
+ 'salePrice'?: Price;
662
+ /**
663
+ *
664
+ * @type {Price}
665
+ * @memberof Variant
666
+ */
667
+ 'price'?: Price;
668
+ /**
669
+ *
670
+ * @type {Stock}
671
+ * @memberof Variant
672
+ */
673
+ 'stock'?: Stock;
674
+ /**
675
+ *
676
+ * @type {string}
677
+ * @memberof Variant
678
+ */
679
+ 'createdAt'?: string;
680
+ /**
681
+ *
682
+ * @type {string}
683
+ * @memberof Variant
684
+ */
685
+ 'updatedAt'?: string;
686
+ /**
687
+ *
688
+ * @type {string}
689
+ * @memberof Variant
690
+ */
691
+ 'publishedAt'?: string;
692
+ /**
693
+ * Images
694
+ * @type {Array<Image>}
695
+ * @memberof Variant
696
+ */
697
+ 'images'?: Array<Image>;
698
+ /**
699
+ * Design applications. If not provided, the product will be blank.
700
+ * @type {Array<Application>}
701
+ * @memberof Variant
702
+ */
703
+ 'applications'?: Array<Application>;
704
+ }
705
+ /**
706
+ *
707
+ * @export
708
+ * @interface VariantProduct
709
+ */
710
+ export interface VariantProduct {
711
+ /**
712
+ * Unique object identifier
713
+ * @type {string}
714
+ * @memberof VariantProduct
715
+ */
716
+ 'id'?: string;
717
+ /**
718
+ * A reference to the resource location
719
+ * @type {string}
720
+ * @memberof VariantProduct
721
+ */
722
+ 'ref'?: string;
723
+ }
724
+ /**
725
+ *
726
+ * @export
727
+ * @interface VariantsResponse
728
+ */
729
+ export interface VariantsResponse {
730
+ /**
731
+ *
732
+ * @type {Array<Variant>}
733
+ * @memberof VariantsResponse
734
+ */
735
+ 'variants'?: Array<Variant>;
736
+ /**
737
+ *
738
+ * @type {number}
739
+ * @memberof VariantsResponse
740
+ */
741
+ 'nextPageToken'?: number;
742
+ }
743
+ /**
744
+ * ProductsApi - axios parameter creator
745
+ * @export
746
+ */
747
+ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuration) => {
748
+ /**
749
+ * Creates a new catalog product based on a given warehouse product with the variants and design applications provided. To select a warehouse product to base this product on, use the GFN Catalog API to list available options.
750
+ * @summary Create product
751
+ * @param {string} project What project it is
752
+ * @param {CreateProductRequest} [createProductRequest]
753
+ * @param {*} [options] Override http request option.
754
+ * @throws {RequiredError}
755
+ */
756
+ createProduct: (project: string, createProductRequest?: CreateProductRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
757
+ /**
758
+ * Deletes a catalog product
759
+ * @summary Delete catalog product
760
+ * @param {string} project What project it is
761
+ * @param {string} productId Product\&#39;s unique identifier
762
+ * @param {*} [options] Override http request option.
763
+ * @throws {RequiredError}
764
+ */
765
+ deleteProduct: (project: string, productId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
766
+ /**
767
+ * Gets a product by a given ID.
768
+ * @summary Get product
769
+ * @param {string} project What project it is
770
+ * @param {string} productId Product\&#39;s unique identifier
771
+ * @param {string} [fields] Filter response fields to only include a subset of the resource.
772
+ * @param {*} [options] Override http request option.
773
+ * @throws {RequiredError}
774
+ */
775
+ getProduct: (project: string, productId: string, fields?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
776
+ /**
777
+ * Lists all enabled store listing products attached to the given project.
778
+ * @summary List products
779
+ * @param {string} project What project it is
780
+ * @param {number} [pageToken] Page reference token
781
+ * @param {string} [search] Search term to filter based on product tags.
782
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
783
+ * @param {string} [fields] Filter response fields to only include a subset of the resource.
784
+ * @param {*} [options] Override http request option.
785
+ * @throws {RequiredError}
786
+ */
787
+ getProducts: (project: string, pageToken?: number, search?: string, pageSize?: number, fields?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
788
+ /**
789
+ * Initiates a product import from a CSV file. The result will be available as a notification within the dashboard.
790
+ * @summary Import products
791
+ * @param {string} project What project it is
792
+ * @param {string} [body] A data URL of a CSV file containing data for one or more products.
793
+ * @param {*} [options] Override http request option.
794
+ * @throws {RequiredError}
795
+ */
796
+ importProducts: (project: string, body?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
797
+ /**
798
+ * Updates a product by a given ID.
799
+ * @summary Update product
800
+ * @param {string} project What project it is
801
+ * @param {string} productId Product\&#39;s unique identifier
802
+ * @param {UpdateProductRequest} [updateProductRequest]
803
+ * @param {*} [options] Override http request option.
804
+ * @throws {RequiredError}
805
+ */
806
+ updateProduct: (project: string, productId: string, updateProductRequest?: UpdateProductRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
807
+ };
808
+ /**
809
+ * ProductsApi - functional programming interface
810
+ * @export
811
+ */
812
+ export declare const ProductsApiFp: (configuration?: Configuration) => {
813
+ /**
814
+ * Creates a new catalog product based on a given warehouse product with the variants and design applications provided. To select a warehouse product to base this product on, use the GFN Catalog API to list available options.
815
+ * @summary Create product
816
+ * @param {string} project What project it is
817
+ * @param {CreateProductRequest} [createProductRequest]
818
+ * @param {*} [options] Override http request option.
819
+ * @throws {RequiredError}
820
+ */
821
+ createProduct(project: string, createProductRequest?: CreateProductRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Product>>;
822
+ /**
823
+ * Deletes a catalog product
824
+ * @summary Delete catalog product
825
+ * @param {string} project What project it is
826
+ * @param {string} productId Product\&#39;s unique identifier
827
+ * @param {*} [options] Override http request option.
828
+ * @throws {RequiredError}
829
+ */
830
+ deleteProduct(project: string, productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
831
+ /**
832
+ * Gets a product by a given ID.
833
+ * @summary Get product
834
+ * @param {string} project What project it is
835
+ * @param {string} productId Product\&#39;s unique identifier
836
+ * @param {string} [fields] Filter response fields to only include a subset of the resource.
837
+ * @param {*} [options] Override http request option.
838
+ * @throws {RequiredError}
839
+ */
840
+ getProduct(project: string, productId: string, fields?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Product>>;
841
+ /**
842
+ * Lists all enabled store listing products attached to the given project.
843
+ * @summary List products
844
+ * @param {string} project What project it is
845
+ * @param {number} [pageToken] Page reference token
846
+ * @param {string} [search] Search term to filter based on product tags.
847
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
848
+ * @param {string} [fields] Filter response fields to only include a subset of the resource.
849
+ * @param {*} [options] Override http request option.
850
+ * @throws {RequiredError}
851
+ */
852
+ getProducts(project: string, pageToken?: number, search?: string, pageSize?: number, fields?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>>;
853
+ /**
854
+ * Initiates a product import from a CSV file. The result will be available as a notification within the dashboard.
855
+ * @summary Import products
856
+ * @param {string} project What project it is
857
+ * @param {string} [body] A data URL of a CSV file containing data for one or more products.
858
+ * @param {*} [options] Override http request option.
859
+ * @throws {RequiredError}
860
+ */
861
+ importProducts(project: string, body?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImportProducts200Response>>;
862
+ /**
863
+ * Updates a product by a given ID.
864
+ * @summary Update product
865
+ * @param {string} project What project it is
866
+ * @param {string} productId Product\&#39;s unique identifier
867
+ * @param {UpdateProductRequest} [updateProductRequest]
868
+ * @param {*} [options] Override http request option.
869
+ * @throws {RequiredError}
870
+ */
871
+ updateProduct(project: string, productId: string, updateProductRequest?: UpdateProductRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Product>>;
872
+ };
873
+ /**
874
+ * ProductsApi - factory interface
875
+ * @export
876
+ */
877
+ export declare const ProductsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
878
+ /**
879
+ * Creates a new catalog product based on a given warehouse product with the variants and design applications provided. To select a warehouse product to base this product on, use the GFN Catalog API to list available options.
880
+ * @summary Create product
881
+ * @param {string} project What project it is
882
+ * @param {CreateProductRequest} [createProductRequest]
883
+ * @param {*} [options] Override http request option.
884
+ * @throws {RequiredError}
885
+ */
886
+ createProduct(project: string, createProductRequest?: CreateProductRequest, options?: any): AxiosPromise<Product>;
887
+ /**
888
+ * Deletes a catalog product
889
+ * @summary Delete catalog product
890
+ * @param {string} project What project it is
891
+ * @param {string} productId Product\&#39;s unique identifier
892
+ * @param {*} [options] Override http request option.
893
+ * @throws {RequiredError}
894
+ */
895
+ deleteProduct(project: string, productId: string, options?: any): AxiosPromise<void>;
896
+ /**
897
+ * Gets a product by a given ID.
898
+ * @summary Get product
899
+ * @param {string} project What project it is
900
+ * @param {string} productId Product\&#39;s unique identifier
901
+ * @param {string} [fields] Filter response fields to only include a subset of the resource.
902
+ * @param {*} [options] Override http request option.
903
+ * @throws {RequiredError}
904
+ */
905
+ getProduct(project: string, productId: string, fields?: string, options?: any): AxiosPromise<Product>;
906
+ /**
907
+ * Lists all enabled store listing products attached to the given project.
908
+ * @summary List products
909
+ * @param {string} project What project it is
910
+ * @param {number} [pageToken] Page reference token
911
+ * @param {string} [search] Search term to filter based on product tags.
912
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
913
+ * @param {string} [fields] Filter response fields to only include a subset of the resource.
914
+ * @param {*} [options] Override http request option.
915
+ * @throws {RequiredError}
916
+ */
917
+ getProducts(project: string, pageToken?: number, search?: string, pageSize?: number, fields?: string, options?: any): AxiosPromise<ProductsResponse>;
918
+ /**
919
+ * Initiates a product import from a CSV file. The result will be available as a notification within the dashboard.
920
+ * @summary Import products
921
+ * @param {string} project What project it is
922
+ * @param {string} [body] A data URL of a CSV file containing data for one or more products.
923
+ * @param {*} [options] Override http request option.
924
+ * @throws {RequiredError}
925
+ */
926
+ importProducts(project: string, body?: string, options?: any): AxiosPromise<ImportProducts200Response>;
927
+ /**
928
+ * Updates a product by a given ID.
929
+ * @summary Update product
930
+ * @param {string} project What project it is
931
+ * @param {string} productId Product\&#39;s unique identifier
932
+ * @param {UpdateProductRequest} [updateProductRequest]
933
+ * @param {*} [options] Override http request option.
934
+ * @throws {RequiredError}
935
+ */
936
+ updateProduct(project: string, productId: string, updateProductRequest?: UpdateProductRequest, options?: any): AxiosPromise<Product>;
937
+ };
938
+ /**
939
+ * ProductsApi - object-oriented interface
940
+ * @export
941
+ * @class ProductsApi
942
+ * @extends {BaseAPI}
943
+ */
944
+ export declare class ProductsApi extends BaseAPI {
945
+ /**
946
+ * Creates a new catalog product based on a given warehouse product with the variants and design applications provided. To select a warehouse product to base this product on, use the GFN Catalog API to list available options.
947
+ * @summary Create product
948
+ * @param {string} project What project it is
949
+ * @param {CreateProductRequest} [createProductRequest]
950
+ * @param {*} [options] Override http request option.
951
+ * @throws {RequiredError}
952
+ * @memberof ProductsApi
953
+ */
954
+ createProduct(project: string, createProductRequest?: CreateProductRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Product, any>>;
955
+ /**
956
+ * Deletes a catalog product
957
+ * @summary Delete catalog product
958
+ * @param {string} project What project it is
959
+ * @param {string} productId Product\&#39;s unique identifier
960
+ * @param {*} [options] Override http request option.
961
+ * @throws {RequiredError}
962
+ * @memberof ProductsApi
963
+ */
964
+ deleteProduct(project: string, productId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
965
+ /**
966
+ * Gets a product by a given ID.
967
+ * @summary Get product
968
+ * @param {string} project What project it is
969
+ * @param {string} productId Product\&#39;s unique identifier
970
+ * @param {string} [fields] Filter response fields to only include a subset of the resource.
971
+ * @param {*} [options] Override http request option.
972
+ * @throws {RequiredError}
973
+ * @memberof ProductsApi
974
+ */
975
+ getProduct(project: string, productId: string, fields?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Product, any>>;
976
+ /**
977
+ * Lists all enabled store listing products attached to the given project.
978
+ * @summary List products
979
+ * @param {string} project What project it is
980
+ * @param {number} [pageToken] Page reference token
981
+ * @param {string} [search] Search term to filter based on product tags.
982
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
983
+ * @param {string} [fields] Filter response fields to only include a subset of the resource.
984
+ * @param {*} [options] Override http request option.
985
+ * @throws {RequiredError}
986
+ * @memberof ProductsApi
987
+ */
988
+ getProducts(project: string, pageToken?: number, search?: string, pageSize?: number, fields?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductsResponse, any>>;
989
+ /**
990
+ * Initiates a product import from a CSV file. The result will be available as a notification within the dashboard.
991
+ * @summary Import products
992
+ * @param {string} project What project it is
993
+ * @param {string} [body] A data URL of a CSV file containing data for one or more products.
994
+ * @param {*} [options] Override http request option.
995
+ * @throws {RequiredError}
996
+ * @memberof ProductsApi
997
+ */
998
+ importProducts(project: string, body?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ImportProducts200Response, any>>;
999
+ /**
1000
+ * Updates a product by a given ID.
1001
+ * @summary Update product
1002
+ * @param {string} project What project it is
1003
+ * @param {string} productId Product\&#39;s unique identifier
1004
+ * @param {UpdateProductRequest} [updateProductRequest]
1005
+ * @param {*} [options] Override http request option.
1006
+ * @throws {RequiredError}
1007
+ * @memberof ProductsApi
1008
+ */
1009
+ updateProduct(project: string, productId: string, updateProductRequest?: UpdateProductRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Product, any>>;
1010
+ }
1011
+ /**
1012
+ * VariantsApi - axios parameter creator
1013
+ * @export
1014
+ */
1015
+ export declare const VariantsApiAxiosParamCreator: (configuration?: Configuration) => {
1016
+ /**
1017
+ * Gets a variant by a given ID.
1018
+ * @summary Get variant
1019
+ * @param {string} project What project it is
1020
+ * @param {string} variantId Variants unique identifier
1021
+ * @param {string} [fields] Filter response fields to only include a subset of the resource.
1022
+ * @param {*} [options] Override http request option.
1023
+ * @throws {RequiredError}
1024
+ */
1025
+ getVariant: (project: string, variantId: string, fields?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1026
+ /**
1027
+ * Lists all variants that belong to enabled products attached to the given project.
1028
+ * @summary List variants
1029
+ * @param {string} project What project it is
1030
+ * @param {string} [search] Search term to filter based on product tags.
1031
+ * @param {number} [pageToken] Page reference token
1032
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1033
+ * @param {string} [fields] Filter response fields to only include a subset of the resource.
1034
+ * @param {*} [options] Override http request option.
1035
+ * @throws {RequiredError}
1036
+ */
1037
+ listVariants: (project: string, search?: string, pageToken?: number, pageSize?: number, fields?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1038
+ };
1039
+ /**
1040
+ * VariantsApi - functional programming interface
1041
+ * @export
1042
+ */
1043
+ export declare const VariantsApiFp: (configuration?: Configuration) => {
1044
+ /**
1045
+ * Gets a variant by a given ID.
1046
+ * @summary Get variant
1047
+ * @param {string} project What project it is
1048
+ * @param {string} variantId Variants unique identifier
1049
+ * @param {string} [fields] Filter response fields to only include a subset of the resource.
1050
+ * @param {*} [options] Override http request option.
1051
+ * @throws {RequiredError}
1052
+ */
1053
+ getVariant(project: string, variantId: string, fields?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Variant>>;
1054
+ /**
1055
+ * Lists all variants that belong to enabled products attached to the given project.
1056
+ * @summary List variants
1057
+ * @param {string} project What project it is
1058
+ * @param {string} [search] Search term to filter based on product tags.
1059
+ * @param {number} [pageToken] Page reference token
1060
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1061
+ * @param {string} [fields] Filter response fields to only include a subset of the resource.
1062
+ * @param {*} [options] Override http request option.
1063
+ * @throws {RequiredError}
1064
+ */
1065
+ listVariants(project: string, search?: string, pageToken?: number, pageSize?: number, fields?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VariantsResponse>>;
1066
+ };
1067
+ /**
1068
+ * VariantsApi - factory interface
1069
+ * @export
1070
+ */
1071
+ export declare const VariantsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
1072
+ /**
1073
+ * Gets a variant by a given ID.
1074
+ * @summary Get variant
1075
+ * @param {string} project What project it is
1076
+ * @param {string} variantId Variants unique identifier
1077
+ * @param {string} [fields] Filter response fields to only include a subset of the resource.
1078
+ * @param {*} [options] Override http request option.
1079
+ * @throws {RequiredError}
1080
+ */
1081
+ getVariant(project: string, variantId: string, fields?: string, options?: any): AxiosPromise<Variant>;
1082
+ /**
1083
+ * Lists all variants that belong to enabled products attached to the given project.
1084
+ * @summary List variants
1085
+ * @param {string} project What project it is
1086
+ * @param {string} [search] Search term to filter based on product tags.
1087
+ * @param {number} [pageToken] Page reference token
1088
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1089
+ * @param {string} [fields] Filter response fields to only include a subset of the resource.
1090
+ * @param {*} [options] Override http request option.
1091
+ * @throws {RequiredError}
1092
+ */
1093
+ listVariants(project: string, search?: string, pageToken?: number, pageSize?: number, fields?: string, options?: any): AxiosPromise<VariantsResponse>;
1094
+ };
1095
+ /**
1096
+ * VariantsApi - object-oriented interface
1097
+ * @export
1098
+ * @class VariantsApi
1099
+ * @extends {BaseAPI}
1100
+ */
1101
+ export declare class VariantsApi extends BaseAPI {
1102
+ /**
1103
+ * Gets a variant by a given ID.
1104
+ * @summary Get variant
1105
+ * @param {string} project What project it is
1106
+ * @param {string} variantId Variants unique identifier
1107
+ * @param {string} [fields] Filter response fields to only include a subset of the resource.
1108
+ * @param {*} [options] Override http request option.
1109
+ * @throws {RequiredError}
1110
+ * @memberof VariantsApi
1111
+ */
1112
+ getVariant(project: string, variantId: string, fields?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Variant, any>>;
1113
+ /**
1114
+ * Lists all variants that belong to enabled products attached to the given project.
1115
+ * @summary List variants
1116
+ * @param {string} project What project it is
1117
+ * @param {string} [search] Search term to filter based on product tags.
1118
+ * @param {number} [pageToken] Page reference token
1119
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1120
+ * @param {string} [fields] Filter response fields to only include a subset of the resource.
1121
+ * @param {*} [options] Override http request option.
1122
+ * @throws {RequiredError}
1123
+ * @memberof VariantsApi
1124
+ */
1125
+ listVariants(project: string, search?: string, pageToken?: number, pageSize?: number, fields?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VariantsResponse, any>>;
1126
+ }