@teemill/website 0.3.0 → 0.4.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.
- package/README.md +2 -2
- package/api.ts +678 -15
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +665 -12
- package/dist/api.js +37 -11
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +665 -12
- package/dist/esm/api.js +36 -10
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Website API
|
|
5
5
|
* Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.4.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -42,6 +42,158 @@ export interface ApiError {
|
|
|
42
42
|
*/
|
|
43
43
|
'message': string;
|
|
44
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @interface Application
|
|
49
|
+
*/
|
|
50
|
+
export interface Application {
|
|
51
|
+
/**
|
|
52
|
+
* Unique object identifier
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof Application
|
|
55
|
+
*/
|
|
56
|
+
'id'?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Technology to use for the application.
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof Application
|
|
61
|
+
*/
|
|
62
|
+
'technology': ApplicationTechnologyEnum;
|
|
63
|
+
/**
|
|
64
|
+
* Placement of the application. Available placements depend on the chosen product and technology.
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof Application
|
|
67
|
+
*/
|
|
68
|
+
'placement': ApplicationPlacementEnum;
|
|
69
|
+
/**
|
|
70
|
+
* 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.
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof Application
|
|
73
|
+
*/
|
|
74
|
+
'src': string;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {ApplicationMockup}
|
|
78
|
+
* @memberof Application
|
|
79
|
+
*/
|
|
80
|
+
'mockup'?: ApplicationMockup | null;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export const ApplicationTechnologyEnum = {
|
|
84
|
+
Dtg: 'dtg',
|
|
85
|
+
Embroidery: 'embroidery',
|
|
86
|
+
Dtf: 'dtf',
|
|
87
|
+
Pretreat: 'pretreat',
|
|
88
|
+
MugSublimation: 'mug_sublimation',
|
|
89
|
+
ManualPrint: 'manual_print',
|
|
90
|
+
AdditionalApplication: 'additional_application',
|
|
91
|
+
NotebookSublimation: 'notebook_sublimation',
|
|
92
|
+
DuplexPrint: 'duplex_print'
|
|
93
|
+
} as const;
|
|
94
|
+
|
|
95
|
+
export type ApplicationTechnologyEnum = typeof ApplicationTechnologyEnum[keyof typeof ApplicationTechnologyEnum];
|
|
96
|
+
export const ApplicationPlacementEnum = {
|
|
97
|
+
Front: 'front',
|
|
98
|
+
Back: 'back',
|
|
99
|
+
Left: 'left',
|
|
100
|
+
Right: 'right',
|
|
101
|
+
Neck: 'neck'
|
|
102
|
+
} as const;
|
|
103
|
+
|
|
104
|
+
export type ApplicationPlacementEnum = typeof ApplicationPlacementEnum[keyof typeof ApplicationPlacementEnum];
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @export
|
|
109
|
+
* @interface ApplicationMockup
|
|
110
|
+
*/
|
|
111
|
+
export interface ApplicationMockup {
|
|
112
|
+
/**
|
|
113
|
+
* Drive image URL. If provided, this will be used as the mockup image for the variant application rather than generating a new one.
|
|
114
|
+
* @type {string}
|
|
115
|
+
* @memberof ApplicationMockup
|
|
116
|
+
*/
|
|
117
|
+
'file': string;
|
|
118
|
+
/**
|
|
119
|
+
* Publicly available mockup image URL. This is a preview of the mockup image for the given application.
|
|
120
|
+
* @type {string}
|
|
121
|
+
* @memberof ApplicationMockup
|
|
122
|
+
*/
|
|
123
|
+
'preview'?: string;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @export
|
|
128
|
+
* @interface AttachCrossSellProductsRequest
|
|
129
|
+
*/
|
|
130
|
+
export interface AttachCrossSellProductsRequest {
|
|
131
|
+
/**
|
|
132
|
+
* A list of product IDs to attach as cross-sell products. The order in which they are sent is the order they will be saved in.
|
|
133
|
+
* @type {Array<string>}
|
|
134
|
+
* @memberof AttachCrossSellProductsRequest
|
|
135
|
+
*/
|
|
136
|
+
'products'?: Array<string>;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* @export
|
|
141
|
+
* @interface Attribute
|
|
142
|
+
*/
|
|
143
|
+
export interface Attribute {
|
|
144
|
+
/**
|
|
145
|
+
* Attribute name
|
|
146
|
+
* @type {string}
|
|
147
|
+
* @memberof Attribute
|
|
148
|
+
*/
|
|
149
|
+
'name': string;
|
|
150
|
+
/**
|
|
151
|
+
* Attribute value
|
|
152
|
+
* @type {string}
|
|
153
|
+
* @memberof Attribute
|
|
154
|
+
*/
|
|
155
|
+
'value': string;
|
|
156
|
+
/**
|
|
157
|
+
*
|
|
158
|
+
* @type {AttributeThumbnail}
|
|
159
|
+
* @memberof Attribute
|
|
160
|
+
*/
|
|
161
|
+
'thumbnail'?: AttributeThumbnail;
|
|
162
|
+
/**
|
|
163
|
+
* Attribute tags
|
|
164
|
+
* @type {Array<string>}
|
|
165
|
+
* @memberof Attribute
|
|
166
|
+
*/
|
|
167
|
+
'tags'?: Array<string>;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Attribute thumbnail, intended for interfaces like storefront colour selector.
|
|
171
|
+
* @export
|
|
172
|
+
* @interface AttributeThumbnail
|
|
173
|
+
*/
|
|
174
|
+
export interface AttributeThumbnail {
|
|
175
|
+
/**
|
|
176
|
+
*
|
|
177
|
+
* @type {string}
|
|
178
|
+
* @memberof AttributeThumbnail
|
|
179
|
+
*/
|
|
180
|
+
'type'?: AttributeThumbnailTypeEnum;
|
|
181
|
+
/**
|
|
182
|
+
*
|
|
183
|
+
* @type {string}
|
|
184
|
+
* @memberof AttributeThumbnail
|
|
185
|
+
*/
|
|
186
|
+
'value'?: string;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export const AttributeThumbnailTypeEnum = {
|
|
190
|
+
Text: 'text',
|
|
191
|
+
Color: 'color',
|
|
192
|
+
Image: 'image'
|
|
193
|
+
} as const;
|
|
194
|
+
|
|
195
|
+
export type AttributeThumbnailTypeEnum = typeof AttributeThumbnailTypeEnum[keyof typeof AttributeThumbnailTypeEnum];
|
|
196
|
+
|
|
45
197
|
/**
|
|
46
198
|
*
|
|
47
199
|
* @export
|
|
@@ -55,6 +207,61 @@ export interface AuthorizeStripe200Response {
|
|
|
55
207
|
*/
|
|
56
208
|
'redirect_url': string;
|
|
57
209
|
}
|
|
210
|
+
/**
|
|
211
|
+
* Image description
|
|
212
|
+
* @export
|
|
213
|
+
* @interface Image
|
|
214
|
+
*/
|
|
215
|
+
export interface Image {
|
|
216
|
+
/**
|
|
217
|
+
* Unique object identifier
|
|
218
|
+
* @type {string}
|
|
219
|
+
* @memberof Image
|
|
220
|
+
*/
|
|
221
|
+
'id'?: string;
|
|
222
|
+
/**
|
|
223
|
+
*
|
|
224
|
+
* @type {string}
|
|
225
|
+
* @memberof Image
|
|
226
|
+
*/
|
|
227
|
+
'src'?: string;
|
|
228
|
+
/**
|
|
229
|
+
*
|
|
230
|
+
* @type {string}
|
|
231
|
+
* @memberof Image
|
|
232
|
+
*/
|
|
233
|
+
'type'?: string | null;
|
|
234
|
+
/**
|
|
235
|
+
*
|
|
236
|
+
* @type {string}
|
|
237
|
+
* @memberof Image
|
|
238
|
+
*/
|
|
239
|
+
'alt'?: string;
|
|
240
|
+
/**
|
|
241
|
+
* List of variant Ids
|
|
242
|
+
* @type {Array<string>}
|
|
243
|
+
* @memberof Image
|
|
244
|
+
*/
|
|
245
|
+
'variantIds'?: Array<string>;
|
|
246
|
+
/**
|
|
247
|
+
*
|
|
248
|
+
* @type {number}
|
|
249
|
+
* @memberof Image
|
|
250
|
+
*/
|
|
251
|
+
'sortOrder'?: number;
|
|
252
|
+
/**
|
|
253
|
+
*
|
|
254
|
+
* @type {string}
|
|
255
|
+
* @memberof Image
|
|
256
|
+
*/
|
|
257
|
+
'createdAt'?: string;
|
|
258
|
+
/**
|
|
259
|
+
*
|
|
260
|
+
* @type {string}
|
|
261
|
+
* @memberof Image
|
|
262
|
+
*/
|
|
263
|
+
'updatedAt'?: string;
|
|
264
|
+
}
|
|
58
265
|
/**
|
|
59
266
|
*
|
|
60
267
|
* @export
|
|
@@ -105,6 +312,25 @@ export interface MenuItem {
|
|
|
105
312
|
*/
|
|
106
313
|
'submenu': Array<SubmenuInner>;
|
|
107
314
|
}
|
|
315
|
+
/**
|
|
316
|
+
* Key/value pairs that can be used to store additional information on the product
|
|
317
|
+
* @export
|
|
318
|
+
* @interface MetaField
|
|
319
|
+
*/
|
|
320
|
+
export interface MetaField {
|
|
321
|
+
/**
|
|
322
|
+
* The name or key of the property
|
|
323
|
+
* @type {string}
|
|
324
|
+
* @memberof MetaField
|
|
325
|
+
*/
|
|
326
|
+
'name'?: string;
|
|
327
|
+
/**
|
|
328
|
+
* The string value of the property
|
|
329
|
+
* @type {string}
|
|
330
|
+
* @memberof MetaField
|
|
331
|
+
*/
|
|
332
|
+
'value'?: string;
|
|
333
|
+
}
|
|
108
334
|
/**
|
|
109
335
|
*
|
|
110
336
|
* @export
|
|
@@ -138,6 +364,278 @@ export const PaymentAccountMethodEnum = {
|
|
|
138
364
|
|
|
139
365
|
export type PaymentAccountMethodEnum = typeof PaymentAccountMethodEnum[keyof typeof PaymentAccountMethodEnum];
|
|
140
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'?: PriceCurrencyCodeEnum;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
export const PriceCurrencyCodeEnum = {
|
|
388
|
+
Gbp: 'GBP'
|
|
389
|
+
} as const;
|
|
390
|
+
|
|
391
|
+
export type PriceCurrencyCodeEnum = typeof PriceCurrencyCodeEnum[keyof typeof PriceCurrencyCodeEnum];
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
*
|
|
395
|
+
* @export
|
|
396
|
+
* @interface Product
|
|
397
|
+
*/
|
|
398
|
+
export interface Product {
|
|
399
|
+
/**
|
|
400
|
+
* Unique object identifier
|
|
401
|
+
* @type {string}
|
|
402
|
+
* @memberof Product
|
|
403
|
+
*/
|
|
404
|
+
'id'?: string;
|
|
405
|
+
/**
|
|
406
|
+
* A reference to the resource location
|
|
407
|
+
* @type {string}
|
|
408
|
+
* @memberof Product
|
|
409
|
+
*/
|
|
410
|
+
'ref'?: string;
|
|
411
|
+
/**
|
|
412
|
+
*
|
|
413
|
+
* @type {string}
|
|
414
|
+
* @memberof Product
|
|
415
|
+
*/
|
|
416
|
+
'title': string;
|
|
417
|
+
/**
|
|
418
|
+
*
|
|
419
|
+
* @type {string}
|
|
420
|
+
* @memberof Product
|
|
421
|
+
*/
|
|
422
|
+
'description': string;
|
|
423
|
+
/**
|
|
424
|
+
*
|
|
425
|
+
* @type {string}
|
|
426
|
+
* @memberof Product
|
|
427
|
+
*/
|
|
428
|
+
'slug'?: string;
|
|
429
|
+
/**
|
|
430
|
+
*
|
|
431
|
+
* @type {boolean}
|
|
432
|
+
* @memberof Product
|
|
433
|
+
*/
|
|
434
|
+
'enabled'?: boolean;
|
|
435
|
+
/**
|
|
436
|
+
*
|
|
437
|
+
* @type {SeoMetadata}
|
|
438
|
+
* @memberof Product
|
|
439
|
+
*/
|
|
440
|
+
'seoMetadata'?: SeoMetadata;
|
|
441
|
+
/**
|
|
442
|
+
*
|
|
443
|
+
* @type {Array<string>}
|
|
444
|
+
* @memberof Product
|
|
445
|
+
*/
|
|
446
|
+
'tags'?: Array<string>;
|
|
447
|
+
/**
|
|
448
|
+
*
|
|
449
|
+
* @type {Array<string>}
|
|
450
|
+
* @memberof Product
|
|
451
|
+
*/
|
|
452
|
+
'internalTags'?: Array<string>;
|
|
453
|
+
/**
|
|
454
|
+
*
|
|
455
|
+
* @type {string}
|
|
456
|
+
* @memberof Product
|
|
457
|
+
*/
|
|
458
|
+
'createdAt'?: string;
|
|
459
|
+
/**
|
|
460
|
+
*
|
|
461
|
+
* @type {string}
|
|
462
|
+
* @memberof Product
|
|
463
|
+
*/
|
|
464
|
+
'updatedAt'?: string;
|
|
465
|
+
/**
|
|
466
|
+
*
|
|
467
|
+
* @type {string}
|
|
468
|
+
* @memberof Product
|
|
469
|
+
*/
|
|
470
|
+
'publishedAt'?: string;
|
|
471
|
+
/**
|
|
472
|
+
* Images
|
|
473
|
+
* @type {Array<Image>}
|
|
474
|
+
* @memberof Product
|
|
475
|
+
*/
|
|
476
|
+
'images'?: Array<Image>;
|
|
477
|
+
/**
|
|
478
|
+
* Videos
|
|
479
|
+
* @type {Array<Video>}
|
|
480
|
+
* @memberof Product
|
|
481
|
+
*/
|
|
482
|
+
'videos'?: Array<Video>;
|
|
483
|
+
/**
|
|
484
|
+
* Variants
|
|
485
|
+
* @type {Array<Variant>}
|
|
486
|
+
* @memberof Product
|
|
487
|
+
*/
|
|
488
|
+
'variants'?: Array<Variant>;
|
|
489
|
+
/**
|
|
490
|
+
* Additional files attached to the product.
|
|
491
|
+
* @type {Array<ProductAdditionalFilesInner>}
|
|
492
|
+
* @memberof Product
|
|
493
|
+
*/
|
|
494
|
+
'additionalFiles'?: Array<ProductAdditionalFilesInner>;
|
|
495
|
+
/**
|
|
496
|
+
* List of application sets associated with this product
|
|
497
|
+
* @type {Array<ProductApplicationSetsInner>}
|
|
498
|
+
* @memberof Product
|
|
499
|
+
*/
|
|
500
|
+
'applicationSets'?: Array<ProductApplicationSetsInner>;
|
|
501
|
+
/**
|
|
502
|
+
* The average review rating. This field is only present if included in the fields query parameter
|
|
503
|
+
* @type {number}
|
|
504
|
+
* @memberof Product
|
|
505
|
+
*/
|
|
506
|
+
'reviewScore'?: number | null;
|
|
507
|
+
/**
|
|
508
|
+
* A count of reviews. This field is only present if included in the fields query parameter
|
|
509
|
+
* @type {number}
|
|
510
|
+
* @memberof Product
|
|
511
|
+
*/
|
|
512
|
+
'reviewCount'?: number;
|
|
513
|
+
/**
|
|
514
|
+
*
|
|
515
|
+
* @type {string}
|
|
516
|
+
* @memberof Product
|
|
517
|
+
*/
|
|
518
|
+
'sku'?: string;
|
|
519
|
+
/**
|
|
520
|
+
* A count of sales. This field is only present if included in the fields query parameter
|
|
521
|
+
* @type {number}
|
|
522
|
+
* @memberof Product
|
|
523
|
+
*/
|
|
524
|
+
'sales'?: number;
|
|
525
|
+
/**
|
|
526
|
+
*
|
|
527
|
+
* @type {boolean}
|
|
528
|
+
* @memberof Product
|
|
529
|
+
*/
|
|
530
|
+
'includeInDataFeeds'?: boolean;
|
|
531
|
+
/**
|
|
532
|
+
*
|
|
533
|
+
* @type {ProductWarehouseProduct}
|
|
534
|
+
* @memberof Product
|
|
535
|
+
*/
|
|
536
|
+
'warehouseProduct'?: ProductWarehouseProduct;
|
|
537
|
+
/**
|
|
538
|
+
*
|
|
539
|
+
* @type {Array<MetaField>}
|
|
540
|
+
* @memberof Product
|
|
541
|
+
*/
|
|
542
|
+
'metafields'?: Array<MetaField>;
|
|
543
|
+
}
|
|
544
|
+
/**
|
|
545
|
+
*
|
|
546
|
+
* @export
|
|
547
|
+
* @interface ProductAdditionalFilesInner
|
|
548
|
+
*/
|
|
549
|
+
export interface ProductAdditionalFilesInner {
|
|
550
|
+
/**
|
|
551
|
+
* Unique object identifier
|
|
552
|
+
* @type {string}
|
|
553
|
+
* @memberof ProductAdditionalFilesInner
|
|
554
|
+
*/
|
|
555
|
+
'id'?: string;
|
|
556
|
+
/**
|
|
557
|
+
* File URL
|
|
558
|
+
* @type {string}
|
|
559
|
+
* @memberof ProductAdditionalFilesInner
|
|
560
|
+
*/
|
|
561
|
+
'src'?: string;
|
|
562
|
+
}
|
|
563
|
+
/**
|
|
564
|
+
*
|
|
565
|
+
* @export
|
|
566
|
+
* @interface ProductApplicationSetsInner
|
|
567
|
+
*/
|
|
568
|
+
export interface ProductApplicationSetsInner {
|
|
569
|
+
/**
|
|
570
|
+
* Unique object identifier
|
|
571
|
+
* @type {string}
|
|
572
|
+
* @memberof ProductApplicationSetsInner
|
|
573
|
+
*/
|
|
574
|
+
'id'?: string;
|
|
575
|
+
/**
|
|
576
|
+
* A reference to the resource location
|
|
577
|
+
* @type {string}
|
|
578
|
+
* @memberof ProductApplicationSetsInner
|
|
579
|
+
*/
|
|
580
|
+
'ref'?: string;
|
|
581
|
+
/**
|
|
582
|
+
* Name of the application set
|
|
583
|
+
* @type {string}
|
|
584
|
+
* @memberof ProductApplicationSetsInner
|
|
585
|
+
*/
|
|
586
|
+
'name'?: string;
|
|
587
|
+
}
|
|
588
|
+
/**
|
|
589
|
+
*
|
|
590
|
+
* @export
|
|
591
|
+
* @interface ProductWarehouseProduct
|
|
592
|
+
*/
|
|
593
|
+
export interface ProductWarehouseProduct {
|
|
594
|
+
/**
|
|
595
|
+
* Unique object identifier
|
|
596
|
+
* @type {string}
|
|
597
|
+
* @memberof ProductWarehouseProduct
|
|
598
|
+
*/
|
|
599
|
+
'id'?: string;
|
|
600
|
+
/**
|
|
601
|
+
* Reference to the product in the Global Fulfillment Network (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.
|
|
602
|
+
* @type {string}
|
|
603
|
+
* @memberof ProductWarehouseProduct
|
|
604
|
+
*/
|
|
605
|
+
'gfnProductRef'?: string;
|
|
606
|
+
}
|
|
607
|
+
/**
|
|
608
|
+
* SEO metadata for the product
|
|
609
|
+
* @export
|
|
610
|
+
* @interface SeoMetadata
|
|
611
|
+
*/
|
|
612
|
+
export interface SeoMetadata {
|
|
613
|
+
/**
|
|
614
|
+
* Meta title for the product. This appears in search engine results and social shares. If not provided, the product title will be used.
|
|
615
|
+
* @type {string}
|
|
616
|
+
* @memberof SeoMetadata
|
|
617
|
+
*/
|
|
618
|
+
'title'?: string;
|
|
619
|
+
/**
|
|
620
|
+
* Meta description for the product. This appears in search engine results and social shares. If not provided, the product description will be used.
|
|
621
|
+
* @type {string}
|
|
622
|
+
* @memberof SeoMetadata
|
|
623
|
+
*/
|
|
624
|
+
'description'?: string | null;
|
|
625
|
+
}
|
|
626
|
+
/**
|
|
627
|
+
*
|
|
628
|
+
* @export
|
|
629
|
+
* @interface Stock
|
|
630
|
+
*/
|
|
631
|
+
export interface Stock {
|
|
632
|
+
/**
|
|
633
|
+
*
|
|
634
|
+
* @type {number}
|
|
635
|
+
* @memberof Stock
|
|
636
|
+
*/
|
|
637
|
+
'level'?: number;
|
|
638
|
+
}
|
|
141
639
|
/**
|
|
142
640
|
*
|
|
143
641
|
* @export
|
|
@@ -324,6 +822,171 @@ export interface UpdateMenuRequestSubmenuItem {
|
|
|
324
822
|
*/
|
|
325
823
|
'order': number;
|
|
326
824
|
}
|
|
825
|
+
/**
|
|
826
|
+
*
|
|
827
|
+
* @export
|
|
828
|
+
* @interface Variant
|
|
829
|
+
*/
|
|
830
|
+
export interface Variant {
|
|
831
|
+
/**
|
|
832
|
+
* Unique object identifier
|
|
833
|
+
* @type {string}
|
|
834
|
+
* @memberof Variant
|
|
835
|
+
*/
|
|
836
|
+
'id'?: string;
|
|
837
|
+
/**
|
|
838
|
+
* 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.
|
|
839
|
+
* @type {Array<Attribute>}
|
|
840
|
+
* @memberof Variant
|
|
841
|
+
*/
|
|
842
|
+
'attributes': Array<Attribute>;
|
|
843
|
+
/**
|
|
844
|
+
*
|
|
845
|
+
* @type {string}
|
|
846
|
+
* @memberof Variant
|
|
847
|
+
*/
|
|
848
|
+
'sku': string;
|
|
849
|
+
/**
|
|
850
|
+
* A reference to the resource location
|
|
851
|
+
* @type {string}
|
|
852
|
+
* @memberof Variant
|
|
853
|
+
*/
|
|
854
|
+
'ref'?: string;
|
|
855
|
+
/**
|
|
856
|
+
*
|
|
857
|
+
* @type {VariantProduct}
|
|
858
|
+
* @memberof Variant
|
|
859
|
+
*/
|
|
860
|
+
'product'?: VariantProduct;
|
|
861
|
+
/**
|
|
862
|
+
*
|
|
863
|
+
* @type {number}
|
|
864
|
+
* @memberof Variant
|
|
865
|
+
*/
|
|
866
|
+
'sortOrder'?: number;
|
|
867
|
+
/**
|
|
868
|
+
*
|
|
869
|
+
* @type {Price}
|
|
870
|
+
* @memberof Variant
|
|
871
|
+
*/
|
|
872
|
+
'retailPrice'?: Price;
|
|
873
|
+
/**
|
|
874
|
+
*
|
|
875
|
+
* @type {Price}
|
|
876
|
+
* @memberof Variant
|
|
877
|
+
*/
|
|
878
|
+
'salePrice'?: Price;
|
|
879
|
+
/**
|
|
880
|
+
*
|
|
881
|
+
* @type {Price}
|
|
882
|
+
* @memberof Variant
|
|
883
|
+
*/
|
|
884
|
+
'price'?: Price;
|
|
885
|
+
/**
|
|
886
|
+
*
|
|
887
|
+
* @type {Stock}
|
|
888
|
+
* @memberof Variant
|
|
889
|
+
*/
|
|
890
|
+
'stock'?: Stock;
|
|
891
|
+
/**
|
|
892
|
+
*
|
|
893
|
+
* @type {string}
|
|
894
|
+
* @memberof Variant
|
|
895
|
+
*/
|
|
896
|
+
'createdAt'?: string;
|
|
897
|
+
/**
|
|
898
|
+
*
|
|
899
|
+
* @type {string}
|
|
900
|
+
* @memberof Variant
|
|
901
|
+
*/
|
|
902
|
+
'updatedAt'?: string;
|
|
903
|
+
/**
|
|
904
|
+
*
|
|
905
|
+
* @type {string}
|
|
906
|
+
* @memberof Variant
|
|
907
|
+
*/
|
|
908
|
+
'publishedAt'?: string;
|
|
909
|
+
/**
|
|
910
|
+
* Images
|
|
911
|
+
* @type {Array<Image>}
|
|
912
|
+
* @memberof Variant
|
|
913
|
+
*/
|
|
914
|
+
'images'?: Array<Image>;
|
|
915
|
+
/**
|
|
916
|
+
* Design applications. If not provided, the product will be blank.
|
|
917
|
+
* @type {Array<Application>}
|
|
918
|
+
* @memberof Variant
|
|
919
|
+
*/
|
|
920
|
+
'applications'?: Array<Application>;
|
|
921
|
+
/**
|
|
922
|
+
* Global Trade Item Number
|
|
923
|
+
* @type {string}
|
|
924
|
+
* @memberof Variant
|
|
925
|
+
*/
|
|
926
|
+
'gtin'?: string | null;
|
|
927
|
+
}
|
|
928
|
+
/**
|
|
929
|
+
*
|
|
930
|
+
* @export
|
|
931
|
+
* @interface VariantProduct
|
|
932
|
+
*/
|
|
933
|
+
export interface VariantProduct {
|
|
934
|
+
/**
|
|
935
|
+
* Unique object identifier
|
|
936
|
+
* @type {string}
|
|
937
|
+
* @memberof VariantProduct
|
|
938
|
+
*/
|
|
939
|
+
'id'?: string;
|
|
940
|
+
/**
|
|
941
|
+
* A reference to the resource location
|
|
942
|
+
* @type {string}
|
|
943
|
+
* @memberof VariantProduct
|
|
944
|
+
*/
|
|
945
|
+
'ref'?: string;
|
|
946
|
+
}
|
|
947
|
+
/**
|
|
948
|
+
* Video object
|
|
949
|
+
* @export
|
|
950
|
+
* @interface Video
|
|
951
|
+
*/
|
|
952
|
+
export interface Video {
|
|
953
|
+
/**
|
|
954
|
+
* Unique object identifier
|
|
955
|
+
* @type {string}
|
|
956
|
+
* @memberof Video
|
|
957
|
+
*/
|
|
958
|
+
'id'?: string;
|
|
959
|
+
/**
|
|
960
|
+
*
|
|
961
|
+
* @type {string}
|
|
962
|
+
* @memberof Video
|
|
963
|
+
*/
|
|
964
|
+
'src'?: string;
|
|
965
|
+
/**
|
|
966
|
+
*
|
|
967
|
+
* @type {string}
|
|
968
|
+
* @memberof Video
|
|
969
|
+
*/
|
|
970
|
+
'alt'?: string;
|
|
971
|
+
/**
|
|
972
|
+
*
|
|
973
|
+
* @type {number}
|
|
974
|
+
* @memberof Video
|
|
975
|
+
*/
|
|
976
|
+
'sortOrder'?: number;
|
|
977
|
+
/**
|
|
978
|
+
*
|
|
979
|
+
* @type {string}
|
|
980
|
+
* @memberof Video
|
|
981
|
+
*/
|
|
982
|
+
'createdAt'?: string;
|
|
983
|
+
/**
|
|
984
|
+
*
|
|
985
|
+
* @type {string}
|
|
986
|
+
* @memberof Video
|
|
987
|
+
*/
|
|
988
|
+
'updatedAt'?: string;
|
|
989
|
+
}
|
|
327
990
|
|
|
328
991
|
/**
|
|
329
992
|
* CrossSellApi - axios parameter creator
|
|
@@ -336,11 +999,11 @@ export const CrossSellApiAxiosParamCreator = function (configuration?: Configura
|
|
|
336
999
|
* @summary Attach cross-sell products
|
|
337
1000
|
* @param {string} project What project it is
|
|
338
1001
|
* @param {string} productId Product\'s unique identifier
|
|
339
|
-
* @param {
|
|
1002
|
+
* @param {AttachCrossSellProductsRequest} [attachCrossSellProductsRequest]
|
|
340
1003
|
* @param {*} [options] Override http request option.
|
|
341
1004
|
* @throws {RequiredError}
|
|
342
1005
|
*/
|
|
343
|
-
attachCrossSellProducts: async (project: string, productId: string,
|
|
1006
|
+
attachCrossSellProducts: async (project: string, productId: string, attachCrossSellProductsRequest?: AttachCrossSellProductsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
344
1007
|
// verify required parameter 'project' is not null or undefined
|
|
345
1008
|
assertParamExists('attachCrossSellProducts', 'project', project)
|
|
346
1009
|
// verify required parameter 'productId' is not null or undefined
|
|
@@ -354,7 +1017,7 @@ export const CrossSellApiAxiosParamCreator = function (configuration?: Configura
|
|
|
354
1017
|
baseOptions = configuration.baseOptions;
|
|
355
1018
|
}
|
|
356
1019
|
|
|
357
|
-
const localVarRequestOptions = { method: '
|
|
1020
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
358
1021
|
const localVarHeaderParameter = {} as any;
|
|
359
1022
|
const localVarQueryParameter = {} as any;
|
|
360
1023
|
|
|
@@ -376,7 +1039,7 @@ export const CrossSellApiAxiosParamCreator = function (configuration?: Configura
|
|
|
376
1039
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
377
1040
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
378
1041
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
379
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
1042
|
+
localVarRequestOptions.data = serializeDataIfNeeded(attachCrossSellProductsRequest, localVarRequestOptions, configuration)
|
|
380
1043
|
|
|
381
1044
|
return {
|
|
382
1045
|
url: toPathString(localVarUrlObj),
|
|
@@ -446,12 +1109,12 @@ export const CrossSellApiFp = function(configuration?: Configuration) {
|
|
|
446
1109
|
* @summary Attach cross-sell products
|
|
447
1110
|
* @param {string} project What project it is
|
|
448
1111
|
* @param {string} productId Product\'s unique identifier
|
|
449
|
-
* @param {
|
|
1112
|
+
* @param {AttachCrossSellProductsRequest} [attachCrossSellProductsRequest]
|
|
450
1113
|
* @param {*} [options] Override http request option.
|
|
451
1114
|
* @throws {RequiredError}
|
|
452
1115
|
*/
|
|
453
|
-
async attachCrossSellProducts(project: string, productId: string,
|
|
454
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.attachCrossSellProducts(project, productId,
|
|
1116
|
+
async attachCrossSellProducts(project: string, productId: string, attachCrossSellProductsRequest?: AttachCrossSellProductsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Product>>> {
|
|
1117
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.attachCrossSellProducts(project, productId, attachCrossSellProductsRequest, options);
|
|
455
1118
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
456
1119
|
const localVarOperationServerBasePath = operationServerMap['CrossSellApi.attachCrossSellProducts']?.[localVarOperationServerIndex]?.url;
|
|
457
1120
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -464,7 +1127,7 @@ export const CrossSellApiFp = function(configuration?: Configuration) {
|
|
|
464
1127
|
* @param {*} [options] Override http request option.
|
|
465
1128
|
* @throws {RequiredError}
|
|
466
1129
|
*/
|
|
467
|
-
async getCrossSellProducts(project: string, productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<
|
|
1130
|
+
async getCrossSellProducts(project: string, productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Product>>> {
|
|
468
1131
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getCrossSellProducts(project, productId, options);
|
|
469
1132
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
470
1133
|
const localVarOperationServerBasePath = operationServerMap['CrossSellApi.getCrossSellProducts']?.[localVarOperationServerIndex]?.url;
|
|
@@ -487,8 +1150,8 @@ export const CrossSellApiFactory = function (configuration?: Configuration, base
|
|
|
487
1150
|
* @param {*} [options] Override http request option.
|
|
488
1151
|
* @throws {RequiredError}
|
|
489
1152
|
*/
|
|
490
|
-
attachCrossSellProducts(requestParameters: CrossSellApiAttachCrossSellProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<
|
|
491
|
-
return localVarFp.attachCrossSellProducts(requestParameters.project, requestParameters.productId, requestParameters.
|
|
1153
|
+
attachCrossSellProducts(requestParameters: CrossSellApiAttachCrossSellProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<Product>> {
|
|
1154
|
+
return localVarFp.attachCrossSellProducts(requestParameters.project, requestParameters.productId, requestParameters.attachCrossSellProductsRequest, options).then((request) => request(axios, basePath));
|
|
492
1155
|
},
|
|
493
1156
|
/**
|
|
494
1157
|
*
|
|
@@ -497,7 +1160,7 @@ export const CrossSellApiFactory = function (configuration?: Configuration, base
|
|
|
497
1160
|
* @param {*} [options] Override http request option.
|
|
498
1161
|
* @throws {RequiredError}
|
|
499
1162
|
*/
|
|
500
|
-
getCrossSellProducts(requestParameters: CrossSellApiGetCrossSellProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<
|
|
1163
|
+
getCrossSellProducts(requestParameters: CrossSellApiGetCrossSellProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<Product>> {
|
|
501
1164
|
return localVarFp.getCrossSellProducts(requestParameters.project, requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
502
1165
|
},
|
|
503
1166
|
};
|
|
@@ -525,10 +1188,10 @@ export interface CrossSellApiAttachCrossSellProductsRequest {
|
|
|
525
1188
|
|
|
526
1189
|
/**
|
|
527
1190
|
*
|
|
528
|
-
* @type {
|
|
1191
|
+
* @type {AttachCrossSellProductsRequest}
|
|
529
1192
|
* @memberof CrossSellApiAttachCrossSellProducts
|
|
530
1193
|
*/
|
|
531
|
-
readonly
|
|
1194
|
+
readonly attachCrossSellProductsRequest?: AttachCrossSellProductsRequest
|
|
532
1195
|
}
|
|
533
1196
|
|
|
534
1197
|
/**
|
|
@@ -568,7 +1231,7 @@ export class CrossSellApi extends BaseAPI {
|
|
|
568
1231
|
* @memberof CrossSellApi
|
|
569
1232
|
*/
|
|
570
1233
|
public attachCrossSellProducts(requestParameters: CrossSellApiAttachCrossSellProductsRequest, options?: RawAxiosRequestConfig) {
|
|
571
|
-
return CrossSellApiFp(this.configuration).attachCrossSellProducts(requestParameters.project, requestParameters.productId, requestParameters.
|
|
1234
|
+
return CrossSellApiFp(this.configuration).attachCrossSellProducts(requestParameters.project, requestParameters.productId, requestParameters.attachCrossSellProductsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
572
1235
|
}
|
|
573
1236
|
|
|
574
1237
|
/**
|