@teemill/website 0.3.0 → 0.5.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 +684 -15
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +671 -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 +671 -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/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Website API
|
|
3
3
|
* 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)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.5.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -32,6 +32,151 @@ export interface ApiError {
|
|
|
32
32
|
*/
|
|
33
33
|
'message': string;
|
|
34
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @interface Application
|
|
39
|
+
*/
|
|
40
|
+
export interface Application {
|
|
41
|
+
/**
|
|
42
|
+
* Unique object identifier
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof Application
|
|
45
|
+
*/
|
|
46
|
+
'id'?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Technology to use for the application.
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof Application
|
|
51
|
+
*/
|
|
52
|
+
'technology': ApplicationTechnologyEnum;
|
|
53
|
+
/**
|
|
54
|
+
* Placement of the application. Available placements depend on the chosen product and technology.
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof Application
|
|
57
|
+
*/
|
|
58
|
+
'placement': ApplicationPlacementEnum;
|
|
59
|
+
/**
|
|
60
|
+
* 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.
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof Application
|
|
63
|
+
*/
|
|
64
|
+
'src': string;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {ApplicationMockup}
|
|
68
|
+
* @memberof Application
|
|
69
|
+
*/
|
|
70
|
+
'mockup'?: ApplicationMockup | null;
|
|
71
|
+
}
|
|
72
|
+
export declare const ApplicationTechnologyEnum: {
|
|
73
|
+
readonly Dtg: "dtg";
|
|
74
|
+
readonly Embroidery: "embroidery";
|
|
75
|
+
readonly Dtf: "dtf";
|
|
76
|
+
readonly Pretreat: "pretreat";
|
|
77
|
+
readonly MugSublimation: "mug_sublimation";
|
|
78
|
+
readonly ManualPrint: "manual_print";
|
|
79
|
+
readonly AdditionalApplication: "additional_application";
|
|
80
|
+
readonly NotebookSublimation: "notebook_sublimation";
|
|
81
|
+
readonly DuplexPrint: "duplex_print";
|
|
82
|
+
};
|
|
83
|
+
export type ApplicationTechnologyEnum = typeof ApplicationTechnologyEnum[keyof typeof ApplicationTechnologyEnum];
|
|
84
|
+
export declare const ApplicationPlacementEnum: {
|
|
85
|
+
readonly Front: "front";
|
|
86
|
+
readonly Back: "back";
|
|
87
|
+
readonly Left: "left";
|
|
88
|
+
readonly Right: "right";
|
|
89
|
+
readonly Neck: "neck";
|
|
90
|
+
};
|
|
91
|
+
export type ApplicationPlacementEnum = typeof ApplicationPlacementEnum[keyof typeof ApplicationPlacementEnum];
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @export
|
|
95
|
+
* @interface ApplicationMockup
|
|
96
|
+
*/
|
|
97
|
+
export interface ApplicationMockup {
|
|
98
|
+
/**
|
|
99
|
+
* Drive image URL. If provided, this will be used as the mockup image for the variant application rather than generating a new one.
|
|
100
|
+
* @type {string}
|
|
101
|
+
* @memberof ApplicationMockup
|
|
102
|
+
*/
|
|
103
|
+
'file': string;
|
|
104
|
+
/**
|
|
105
|
+
* Publicly available mockup image URL. This is a preview of the mockup image for the given application.
|
|
106
|
+
* @type {string}
|
|
107
|
+
* @memberof ApplicationMockup
|
|
108
|
+
*/
|
|
109
|
+
'preview'?: string;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @export
|
|
114
|
+
* @interface AttachCrossSellProductsRequest
|
|
115
|
+
*/
|
|
116
|
+
export interface AttachCrossSellProductsRequest {
|
|
117
|
+
/**
|
|
118
|
+
* 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.
|
|
119
|
+
* @type {Array<string>}
|
|
120
|
+
* @memberof AttachCrossSellProductsRequest
|
|
121
|
+
*/
|
|
122
|
+
'products'?: Array<string>;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @export
|
|
127
|
+
* @interface Attribute
|
|
128
|
+
*/
|
|
129
|
+
export interface Attribute {
|
|
130
|
+
/**
|
|
131
|
+
* Attribute name
|
|
132
|
+
* @type {string}
|
|
133
|
+
* @memberof Attribute
|
|
134
|
+
*/
|
|
135
|
+
'name': string;
|
|
136
|
+
/**
|
|
137
|
+
* Attribute value
|
|
138
|
+
* @type {string}
|
|
139
|
+
* @memberof Attribute
|
|
140
|
+
*/
|
|
141
|
+
'value': string;
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @type {AttributeThumbnail}
|
|
145
|
+
* @memberof Attribute
|
|
146
|
+
*/
|
|
147
|
+
'thumbnail'?: AttributeThumbnail;
|
|
148
|
+
/**
|
|
149
|
+
* Attribute tags
|
|
150
|
+
* @type {Array<string>}
|
|
151
|
+
* @memberof Attribute
|
|
152
|
+
*/
|
|
153
|
+
'tags'?: Array<string>;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Attribute thumbnail, intended for interfaces like storefront colour selector.
|
|
157
|
+
* @export
|
|
158
|
+
* @interface AttributeThumbnail
|
|
159
|
+
*/
|
|
160
|
+
export interface AttributeThumbnail {
|
|
161
|
+
/**
|
|
162
|
+
*
|
|
163
|
+
* @type {string}
|
|
164
|
+
* @memberof AttributeThumbnail
|
|
165
|
+
*/
|
|
166
|
+
'type'?: AttributeThumbnailTypeEnum;
|
|
167
|
+
/**
|
|
168
|
+
*
|
|
169
|
+
* @type {string}
|
|
170
|
+
* @memberof AttributeThumbnail
|
|
171
|
+
*/
|
|
172
|
+
'value'?: string;
|
|
173
|
+
}
|
|
174
|
+
export declare const AttributeThumbnailTypeEnum: {
|
|
175
|
+
readonly Text: "text";
|
|
176
|
+
readonly Color: "color";
|
|
177
|
+
readonly Image: "image";
|
|
178
|
+
};
|
|
179
|
+
export type AttributeThumbnailTypeEnum = typeof AttributeThumbnailTypeEnum[keyof typeof AttributeThumbnailTypeEnum];
|
|
35
180
|
/**
|
|
36
181
|
*
|
|
37
182
|
* @export
|
|
@@ -45,6 +190,61 @@ export interface AuthorizeStripe200Response {
|
|
|
45
190
|
*/
|
|
46
191
|
'redirect_url': string;
|
|
47
192
|
}
|
|
193
|
+
/**
|
|
194
|
+
* Image description
|
|
195
|
+
* @export
|
|
196
|
+
* @interface Image
|
|
197
|
+
*/
|
|
198
|
+
export interface Image {
|
|
199
|
+
/**
|
|
200
|
+
* Unique object identifier
|
|
201
|
+
* @type {string}
|
|
202
|
+
* @memberof Image
|
|
203
|
+
*/
|
|
204
|
+
'id'?: string;
|
|
205
|
+
/**
|
|
206
|
+
*
|
|
207
|
+
* @type {string}
|
|
208
|
+
* @memberof Image
|
|
209
|
+
*/
|
|
210
|
+
'src'?: string;
|
|
211
|
+
/**
|
|
212
|
+
*
|
|
213
|
+
* @type {string}
|
|
214
|
+
* @memberof Image
|
|
215
|
+
*/
|
|
216
|
+
'type'?: string | null;
|
|
217
|
+
/**
|
|
218
|
+
*
|
|
219
|
+
* @type {string}
|
|
220
|
+
* @memberof Image
|
|
221
|
+
*/
|
|
222
|
+
'alt'?: string;
|
|
223
|
+
/**
|
|
224
|
+
* List of variant Ids
|
|
225
|
+
* @type {Array<string>}
|
|
226
|
+
* @memberof Image
|
|
227
|
+
*/
|
|
228
|
+
'variantIds'?: Array<string>;
|
|
229
|
+
/**
|
|
230
|
+
*
|
|
231
|
+
* @type {number}
|
|
232
|
+
* @memberof Image
|
|
233
|
+
*/
|
|
234
|
+
'sortOrder'?: number;
|
|
235
|
+
/**
|
|
236
|
+
*
|
|
237
|
+
* @type {string}
|
|
238
|
+
* @memberof Image
|
|
239
|
+
*/
|
|
240
|
+
'createdAt'?: string;
|
|
241
|
+
/**
|
|
242
|
+
*
|
|
243
|
+
* @type {string}
|
|
244
|
+
* @memberof Image
|
|
245
|
+
*/
|
|
246
|
+
'updatedAt'?: string;
|
|
247
|
+
}
|
|
48
248
|
/**
|
|
49
249
|
*
|
|
50
250
|
* @export
|
|
@@ -95,6 +295,25 @@ export interface MenuItem {
|
|
|
95
295
|
*/
|
|
96
296
|
'submenu': Array<SubmenuInner>;
|
|
97
297
|
}
|
|
298
|
+
/**
|
|
299
|
+
* Key/value pairs that can be used to store additional information on the product
|
|
300
|
+
* @export
|
|
301
|
+
* @interface MetaField
|
|
302
|
+
*/
|
|
303
|
+
export interface MetaField {
|
|
304
|
+
/**
|
|
305
|
+
* The name or key of the property
|
|
306
|
+
* @type {string}
|
|
307
|
+
* @memberof MetaField
|
|
308
|
+
*/
|
|
309
|
+
'name'?: string;
|
|
310
|
+
/**
|
|
311
|
+
* The string value of the property
|
|
312
|
+
* @type {string}
|
|
313
|
+
* @memberof MetaField
|
|
314
|
+
*/
|
|
315
|
+
'value'?: string;
|
|
316
|
+
}
|
|
98
317
|
/**
|
|
99
318
|
*
|
|
100
319
|
* @export
|
|
@@ -127,6 +346,275 @@ export declare const PaymentAccountMethodEnum: {
|
|
|
127
346
|
readonly Paypal: "paypal";
|
|
128
347
|
};
|
|
129
348
|
export type PaymentAccountMethodEnum = typeof PaymentAccountMethodEnum[keyof typeof PaymentAccountMethodEnum];
|
|
349
|
+
/**
|
|
350
|
+
* Standard price definition that defines the amount, tax rate and currency.
|
|
351
|
+
* @export
|
|
352
|
+
* @interface Price
|
|
353
|
+
*/
|
|
354
|
+
export interface Price {
|
|
355
|
+
/**
|
|
356
|
+
* Price including tax in the specified currency.
|
|
357
|
+
* @type {number}
|
|
358
|
+
* @memberof Price
|
|
359
|
+
*/
|
|
360
|
+
'amount'?: number;
|
|
361
|
+
/**
|
|
362
|
+
* Currency code for the currency the price is valued in.
|
|
363
|
+
* @type {string}
|
|
364
|
+
* @memberof Price
|
|
365
|
+
*/
|
|
366
|
+
'currencyCode'?: PriceCurrencyCodeEnum;
|
|
367
|
+
}
|
|
368
|
+
export declare const PriceCurrencyCodeEnum: {
|
|
369
|
+
readonly Gbp: "GBP";
|
|
370
|
+
};
|
|
371
|
+
export type PriceCurrencyCodeEnum = typeof PriceCurrencyCodeEnum[keyof typeof PriceCurrencyCodeEnum];
|
|
372
|
+
/**
|
|
373
|
+
*
|
|
374
|
+
* @export
|
|
375
|
+
* @interface Product
|
|
376
|
+
*/
|
|
377
|
+
export interface Product {
|
|
378
|
+
/**
|
|
379
|
+
* Unique object identifier
|
|
380
|
+
* @type {string}
|
|
381
|
+
* @memberof Product
|
|
382
|
+
*/
|
|
383
|
+
'id'?: string;
|
|
384
|
+
/**
|
|
385
|
+
* A reference to the resource location
|
|
386
|
+
* @type {string}
|
|
387
|
+
* @memberof Product
|
|
388
|
+
*/
|
|
389
|
+
'ref'?: string;
|
|
390
|
+
/**
|
|
391
|
+
*
|
|
392
|
+
* @type {string}
|
|
393
|
+
* @memberof Product
|
|
394
|
+
*/
|
|
395
|
+
'title': string;
|
|
396
|
+
/**
|
|
397
|
+
*
|
|
398
|
+
* @type {string}
|
|
399
|
+
* @memberof Product
|
|
400
|
+
*/
|
|
401
|
+
'description': string;
|
|
402
|
+
/**
|
|
403
|
+
*
|
|
404
|
+
* @type {string}
|
|
405
|
+
* @memberof Product
|
|
406
|
+
*/
|
|
407
|
+
'slug'?: string;
|
|
408
|
+
/**
|
|
409
|
+
*
|
|
410
|
+
* @type {boolean}
|
|
411
|
+
* @memberof Product
|
|
412
|
+
*/
|
|
413
|
+
'enabled'?: boolean;
|
|
414
|
+
/**
|
|
415
|
+
*
|
|
416
|
+
* @type {SeoMetadata}
|
|
417
|
+
* @memberof Product
|
|
418
|
+
*/
|
|
419
|
+
'seoMetadata'?: SeoMetadata;
|
|
420
|
+
/**
|
|
421
|
+
*
|
|
422
|
+
* @type {Array<string>}
|
|
423
|
+
* @memberof Product
|
|
424
|
+
*/
|
|
425
|
+
'tags'?: Array<string>;
|
|
426
|
+
/**
|
|
427
|
+
*
|
|
428
|
+
* @type {Array<string>}
|
|
429
|
+
* @memberof Product
|
|
430
|
+
*/
|
|
431
|
+
'internalTags'?: Array<string>;
|
|
432
|
+
/**
|
|
433
|
+
*
|
|
434
|
+
* @type {string}
|
|
435
|
+
* @memberof Product
|
|
436
|
+
*/
|
|
437
|
+
'createdAt'?: string;
|
|
438
|
+
/**
|
|
439
|
+
*
|
|
440
|
+
* @type {string}
|
|
441
|
+
* @memberof Product
|
|
442
|
+
*/
|
|
443
|
+
'updatedAt'?: string;
|
|
444
|
+
/**
|
|
445
|
+
*
|
|
446
|
+
* @type {string}
|
|
447
|
+
* @memberof Product
|
|
448
|
+
*/
|
|
449
|
+
'publishedAt'?: string;
|
|
450
|
+
/**
|
|
451
|
+
* Images
|
|
452
|
+
* @type {Array<Image>}
|
|
453
|
+
* @memberof Product
|
|
454
|
+
*/
|
|
455
|
+
'images'?: Array<Image>;
|
|
456
|
+
/**
|
|
457
|
+
* Videos
|
|
458
|
+
* @type {Array<Video>}
|
|
459
|
+
* @memberof Product
|
|
460
|
+
*/
|
|
461
|
+
'videos'?: Array<Video>;
|
|
462
|
+
/**
|
|
463
|
+
* Variants
|
|
464
|
+
* @type {Array<Variant>}
|
|
465
|
+
* @memberof Product
|
|
466
|
+
*/
|
|
467
|
+
'variants'?: Array<Variant>;
|
|
468
|
+
/**
|
|
469
|
+
* Additional files attached to the product.
|
|
470
|
+
* @type {Array<ProductAdditionalFilesInner>}
|
|
471
|
+
* @memberof Product
|
|
472
|
+
*/
|
|
473
|
+
'additionalFiles'?: Array<ProductAdditionalFilesInner>;
|
|
474
|
+
/**
|
|
475
|
+
* List of application sets associated with this product
|
|
476
|
+
* @type {Array<ProductApplicationSetsInner>}
|
|
477
|
+
* @memberof Product
|
|
478
|
+
*/
|
|
479
|
+
'applicationSets'?: Array<ProductApplicationSetsInner>;
|
|
480
|
+
/**
|
|
481
|
+
* The average review rating. This field is only present if included in the fields query parameter
|
|
482
|
+
* @type {number}
|
|
483
|
+
* @memberof Product
|
|
484
|
+
*/
|
|
485
|
+
'reviewScore'?: number | null;
|
|
486
|
+
/**
|
|
487
|
+
* A count of reviews. This field is only present if included in the fields query parameter
|
|
488
|
+
* @type {number}
|
|
489
|
+
* @memberof Product
|
|
490
|
+
*/
|
|
491
|
+
'reviewCount'?: number;
|
|
492
|
+
/**
|
|
493
|
+
*
|
|
494
|
+
* @type {string}
|
|
495
|
+
* @memberof Product
|
|
496
|
+
*/
|
|
497
|
+
'sku'?: string;
|
|
498
|
+
/**
|
|
499
|
+
* A count of sales. This field is only present if included in the fields query parameter
|
|
500
|
+
* @type {number}
|
|
501
|
+
* @memberof Product
|
|
502
|
+
*/
|
|
503
|
+
'sales'?: number;
|
|
504
|
+
/**
|
|
505
|
+
*
|
|
506
|
+
* @type {boolean}
|
|
507
|
+
* @memberof Product
|
|
508
|
+
*/
|
|
509
|
+
'includeInDataFeeds'?: boolean;
|
|
510
|
+
/**
|
|
511
|
+
*
|
|
512
|
+
* @type {ProductWarehouseProduct}
|
|
513
|
+
* @memberof Product
|
|
514
|
+
*/
|
|
515
|
+
'warehouseProduct'?: ProductWarehouseProduct;
|
|
516
|
+
/**
|
|
517
|
+
*
|
|
518
|
+
* @type {Array<MetaField>}
|
|
519
|
+
* @memberof Product
|
|
520
|
+
*/
|
|
521
|
+
'metafields'?: Array<MetaField>;
|
|
522
|
+
}
|
|
523
|
+
/**
|
|
524
|
+
*
|
|
525
|
+
* @export
|
|
526
|
+
* @interface ProductAdditionalFilesInner
|
|
527
|
+
*/
|
|
528
|
+
export interface ProductAdditionalFilesInner {
|
|
529
|
+
/**
|
|
530
|
+
* Unique object identifier
|
|
531
|
+
* @type {string}
|
|
532
|
+
* @memberof ProductAdditionalFilesInner
|
|
533
|
+
*/
|
|
534
|
+
'id'?: string;
|
|
535
|
+
/**
|
|
536
|
+
* File URL
|
|
537
|
+
* @type {string}
|
|
538
|
+
* @memberof ProductAdditionalFilesInner
|
|
539
|
+
*/
|
|
540
|
+
'src'?: string;
|
|
541
|
+
}
|
|
542
|
+
/**
|
|
543
|
+
*
|
|
544
|
+
* @export
|
|
545
|
+
* @interface ProductApplicationSetsInner
|
|
546
|
+
*/
|
|
547
|
+
export interface ProductApplicationSetsInner {
|
|
548
|
+
/**
|
|
549
|
+
* Unique object identifier
|
|
550
|
+
* @type {string}
|
|
551
|
+
* @memberof ProductApplicationSetsInner
|
|
552
|
+
*/
|
|
553
|
+
'id'?: string;
|
|
554
|
+
/**
|
|
555
|
+
* A reference to the resource location
|
|
556
|
+
* @type {string}
|
|
557
|
+
* @memberof ProductApplicationSetsInner
|
|
558
|
+
*/
|
|
559
|
+
'ref'?: string;
|
|
560
|
+
/**
|
|
561
|
+
* Name of the application set
|
|
562
|
+
* @type {string}
|
|
563
|
+
* @memberof ProductApplicationSetsInner
|
|
564
|
+
*/
|
|
565
|
+
'name'?: string;
|
|
566
|
+
}
|
|
567
|
+
/**
|
|
568
|
+
*
|
|
569
|
+
* @export
|
|
570
|
+
* @interface ProductWarehouseProduct
|
|
571
|
+
*/
|
|
572
|
+
export interface ProductWarehouseProduct {
|
|
573
|
+
/**
|
|
574
|
+
* Unique object identifier
|
|
575
|
+
* @type {string}
|
|
576
|
+
* @memberof ProductWarehouseProduct
|
|
577
|
+
*/
|
|
578
|
+
'id'?: string;
|
|
579
|
+
/**
|
|
580
|
+
* 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.
|
|
581
|
+
* @type {string}
|
|
582
|
+
* @memberof ProductWarehouseProduct
|
|
583
|
+
*/
|
|
584
|
+
'gfnProductRef'?: string;
|
|
585
|
+
}
|
|
586
|
+
/**
|
|
587
|
+
* SEO metadata for the product
|
|
588
|
+
* @export
|
|
589
|
+
* @interface SeoMetadata
|
|
590
|
+
*/
|
|
591
|
+
export interface SeoMetadata {
|
|
592
|
+
/**
|
|
593
|
+
* Meta title for the product. This appears in search engine results and social shares. If not provided, the product title will be used.
|
|
594
|
+
* @type {string}
|
|
595
|
+
* @memberof SeoMetadata
|
|
596
|
+
*/
|
|
597
|
+
'title'?: string;
|
|
598
|
+
/**
|
|
599
|
+
* Meta description for the product. This appears in search engine results and social shares. If not provided, the product description will be used.
|
|
600
|
+
* @type {string}
|
|
601
|
+
* @memberof SeoMetadata
|
|
602
|
+
*/
|
|
603
|
+
'description'?: string | null;
|
|
604
|
+
}
|
|
605
|
+
/**
|
|
606
|
+
*
|
|
607
|
+
* @export
|
|
608
|
+
* @interface Stock
|
|
609
|
+
*/
|
|
610
|
+
export interface Stock {
|
|
611
|
+
/**
|
|
612
|
+
*
|
|
613
|
+
* @type {number}
|
|
614
|
+
* @memberof Stock
|
|
615
|
+
*/
|
|
616
|
+
'level'?: number;
|
|
617
|
+
}
|
|
130
618
|
/**
|
|
131
619
|
*
|
|
132
620
|
* @export
|
|
@@ -313,6 +801,177 @@ export interface UpdateMenuRequestSubmenuItem {
|
|
|
313
801
|
*/
|
|
314
802
|
'order': number;
|
|
315
803
|
}
|
|
804
|
+
/**
|
|
805
|
+
*
|
|
806
|
+
* @export
|
|
807
|
+
* @interface Variant
|
|
808
|
+
*/
|
|
809
|
+
export interface Variant {
|
|
810
|
+
/**
|
|
811
|
+
* Unique object identifier
|
|
812
|
+
* @type {string}
|
|
813
|
+
* @memberof Variant
|
|
814
|
+
*/
|
|
815
|
+
'id'?: string;
|
|
816
|
+
/**
|
|
817
|
+
* 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.
|
|
818
|
+
* @type {Array<Attribute>}
|
|
819
|
+
* @memberof Variant
|
|
820
|
+
*/
|
|
821
|
+
'attributes': Array<Attribute>;
|
|
822
|
+
/**
|
|
823
|
+
*
|
|
824
|
+
* @type {string}
|
|
825
|
+
* @memberof Variant
|
|
826
|
+
*/
|
|
827
|
+
'sku': string;
|
|
828
|
+
/**
|
|
829
|
+
* A reference to the resource location
|
|
830
|
+
* @type {string}
|
|
831
|
+
* @memberof Variant
|
|
832
|
+
*/
|
|
833
|
+
'ref'?: string;
|
|
834
|
+
/**
|
|
835
|
+
*
|
|
836
|
+
* @type {VariantProduct}
|
|
837
|
+
* @memberof Variant
|
|
838
|
+
*/
|
|
839
|
+
'product'?: VariantProduct;
|
|
840
|
+
/**
|
|
841
|
+
*
|
|
842
|
+
* @type {number}
|
|
843
|
+
* @memberof Variant
|
|
844
|
+
*/
|
|
845
|
+
'sortOrder'?: number;
|
|
846
|
+
/**
|
|
847
|
+
*
|
|
848
|
+
* @type {Price}
|
|
849
|
+
* @memberof Variant
|
|
850
|
+
*/
|
|
851
|
+
'retailPrice'?: Price;
|
|
852
|
+
/**
|
|
853
|
+
*
|
|
854
|
+
* @type {Price}
|
|
855
|
+
* @memberof Variant
|
|
856
|
+
*/
|
|
857
|
+
'salePrice'?: Price;
|
|
858
|
+
/**
|
|
859
|
+
*
|
|
860
|
+
* @type {Price}
|
|
861
|
+
* @memberof Variant
|
|
862
|
+
*/
|
|
863
|
+
'price'?: Price;
|
|
864
|
+
/**
|
|
865
|
+
*
|
|
866
|
+
* @type {Stock}
|
|
867
|
+
* @memberof Variant
|
|
868
|
+
*/
|
|
869
|
+
'stock'?: Stock;
|
|
870
|
+
/**
|
|
871
|
+
*
|
|
872
|
+
* @type {string}
|
|
873
|
+
* @memberof Variant
|
|
874
|
+
*/
|
|
875
|
+
'createdAt'?: string;
|
|
876
|
+
/**
|
|
877
|
+
*
|
|
878
|
+
* @type {string}
|
|
879
|
+
* @memberof Variant
|
|
880
|
+
*/
|
|
881
|
+
'updatedAt'?: string;
|
|
882
|
+
/**
|
|
883
|
+
*
|
|
884
|
+
* @type {string}
|
|
885
|
+
* @memberof Variant
|
|
886
|
+
*/
|
|
887
|
+
'publishedAt'?: string;
|
|
888
|
+
/**
|
|
889
|
+
* Images
|
|
890
|
+
* @type {Array<Image>}
|
|
891
|
+
* @memberof Variant
|
|
892
|
+
*/
|
|
893
|
+
'images'?: Array<Image>;
|
|
894
|
+
/**
|
|
895
|
+
* Design applications. If not provided, the product will be blank.
|
|
896
|
+
* @type {Array<Application>}
|
|
897
|
+
* @memberof Variant
|
|
898
|
+
*/
|
|
899
|
+
'applications'?: Array<Application>;
|
|
900
|
+
/**
|
|
901
|
+
* Global Trade Item Number
|
|
902
|
+
* @type {string}
|
|
903
|
+
* @memberof Variant
|
|
904
|
+
*/
|
|
905
|
+
'gtin'?: string | null;
|
|
906
|
+
/**
|
|
907
|
+
*
|
|
908
|
+
* @type {Array<MetaField>}
|
|
909
|
+
* @memberof Variant
|
|
910
|
+
*/
|
|
911
|
+
'metafields'?: Array<MetaField>;
|
|
912
|
+
}
|
|
913
|
+
/**
|
|
914
|
+
*
|
|
915
|
+
* @export
|
|
916
|
+
* @interface VariantProduct
|
|
917
|
+
*/
|
|
918
|
+
export interface VariantProduct {
|
|
919
|
+
/**
|
|
920
|
+
* Unique object identifier
|
|
921
|
+
* @type {string}
|
|
922
|
+
* @memberof VariantProduct
|
|
923
|
+
*/
|
|
924
|
+
'id'?: string;
|
|
925
|
+
/**
|
|
926
|
+
* A reference to the resource location
|
|
927
|
+
* @type {string}
|
|
928
|
+
* @memberof VariantProduct
|
|
929
|
+
*/
|
|
930
|
+
'ref'?: string;
|
|
931
|
+
}
|
|
932
|
+
/**
|
|
933
|
+
* Video object
|
|
934
|
+
* @export
|
|
935
|
+
* @interface Video
|
|
936
|
+
*/
|
|
937
|
+
export interface Video {
|
|
938
|
+
/**
|
|
939
|
+
* Unique object identifier
|
|
940
|
+
* @type {string}
|
|
941
|
+
* @memberof Video
|
|
942
|
+
*/
|
|
943
|
+
'id'?: string;
|
|
944
|
+
/**
|
|
945
|
+
*
|
|
946
|
+
* @type {string}
|
|
947
|
+
* @memberof Video
|
|
948
|
+
*/
|
|
949
|
+
'src'?: string;
|
|
950
|
+
/**
|
|
951
|
+
*
|
|
952
|
+
* @type {string}
|
|
953
|
+
* @memberof Video
|
|
954
|
+
*/
|
|
955
|
+
'alt'?: string;
|
|
956
|
+
/**
|
|
957
|
+
*
|
|
958
|
+
* @type {number}
|
|
959
|
+
* @memberof Video
|
|
960
|
+
*/
|
|
961
|
+
'sortOrder'?: number;
|
|
962
|
+
/**
|
|
963
|
+
*
|
|
964
|
+
* @type {string}
|
|
965
|
+
* @memberof Video
|
|
966
|
+
*/
|
|
967
|
+
'createdAt'?: string;
|
|
968
|
+
/**
|
|
969
|
+
*
|
|
970
|
+
* @type {string}
|
|
971
|
+
* @memberof Video
|
|
972
|
+
*/
|
|
973
|
+
'updatedAt'?: string;
|
|
974
|
+
}
|
|
316
975
|
/**
|
|
317
976
|
* CrossSellApi - axios parameter creator
|
|
318
977
|
* @export
|
|
@@ -323,11 +982,11 @@ export declare const CrossSellApiAxiosParamCreator: (configuration?: Configurati
|
|
|
323
982
|
* @summary Attach cross-sell products
|
|
324
983
|
* @param {string} project What project it is
|
|
325
984
|
* @param {string} productId Product\'s unique identifier
|
|
326
|
-
* @param {
|
|
985
|
+
* @param {AttachCrossSellProductsRequest} [attachCrossSellProductsRequest]
|
|
327
986
|
* @param {*} [options] Override http request option.
|
|
328
987
|
* @throws {RequiredError}
|
|
329
988
|
*/
|
|
330
|
-
attachCrossSellProducts: (project: string, productId: string,
|
|
989
|
+
attachCrossSellProducts: (project: string, productId: string, attachCrossSellProductsRequest?: AttachCrossSellProductsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
331
990
|
/**
|
|
332
991
|
*
|
|
333
992
|
* @summary Get cross-sell products linked to a product
|
|
@@ -348,11 +1007,11 @@ export declare const CrossSellApiFp: (configuration?: Configuration) => {
|
|
|
348
1007
|
* @summary Attach cross-sell products
|
|
349
1008
|
* @param {string} project What project it is
|
|
350
1009
|
* @param {string} productId Product\'s unique identifier
|
|
351
|
-
* @param {
|
|
1010
|
+
* @param {AttachCrossSellProductsRequest} [attachCrossSellProductsRequest]
|
|
352
1011
|
* @param {*} [options] Override http request option.
|
|
353
1012
|
* @throws {RequiredError}
|
|
354
1013
|
*/
|
|
355
|
-
attachCrossSellProducts(project: string, productId: string,
|
|
1014
|
+
attachCrossSellProducts(project: string, productId: string, attachCrossSellProductsRequest?: AttachCrossSellProductsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Product>>>;
|
|
356
1015
|
/**
|
|
357
1016
|
*
|
|
358
1017
|
* @summary Get cross-sell products linked to a product
|
|
@@ -361,7 +1020,7 @@ export declare const CrossSellApiFp: (configuration?: Configuration) => {
|
|
|
361
1020
|
* @param {*} [options] Override http request option.
|
|
362
1021
|
* @throws {RequiredError}
|
|
363
1022
|
*/
|
|
364
|
-
getCrossSellProducts(project: string, productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<
|
|
1023
|
+
getCrossSellProducts(project: string, productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Product>>>;
|
|
365
1024
|
};
|
|
366
1025
|
/**
|
|
367
1026
|
* CrossSellApi - factory interface
|
|
@@ -375,7 +1034,7 @@ export declare const CrossSellApiFactory: (configuration?: Configuration, basePa
|
|
|
375
1034
|
* @param {*} [options] Override http request option.
|
|
376
1035
|
* @throws {RequiredError}
|
|
377
1036
|
*/
|
|
378
|
-
attachCrossSellProducts(requestParameters: CrossSellApiAttachCrossSellProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<
|
|
1037
|
+
attachCrossSellProducts(requestParameters: CrossSellApiAttachCrossSellProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<Product>>;
|
|
379
1038
|
/**
|
|
380
1039
|
*
|
|
381
1040
|
* @summary Get cross-sell products linked to a product
|
|
@@ -383,7 +1042,7 @@ export declare const CrossSellApiFactory: (configuration?: Configuration, basePa
|
|
|
383
1042
|
* @param {*} [options] Override http request option.
|
|
384
1043
|
* @throws {RequiredError}
|
|
385
1044
|
*/
|
|
386
|
-
getCrossSellProducts(requestParameters: CrossSellApiGetCrossSellProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<
|
|
1045
|
+
getCrossSellProducts(requestParameters: CrossSellApiGetCrossSellProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<Product>>;
|
|
387
1046
|
};
|
|
388
1047
|
/**
|
|
389
1048
|
* Request parameters for attachCrossSellProducts operation in CrossSellApi.
|
|
@@ -405,10 +1064,10 @@ export interface CrossSellApiAttachCrossSellProductsRequest {
|
|
|
405
1064
|
readonly productId: string;
|
|
406
1065
|
/**
|
|
407
1066
|
*
|
|
408
|
-
* @type {
|
|
1067
|
+
* @type {AttachCrossSellProductsRequest}
|
|
409
1068
|
* @memberof CrossSellApiAttachCrossSellProducts
|
|
410
1069
|
*/
|
|
411
|
-
readonly
|
|
1070
|
+
readonly attachCrossSellProductsRequest?: AttachCrossSellProductsRequest;
|
|
412
1071
|
}
|
|
413
1072
|
/**
|
|
414
1073
|
* Request parameters for getCrossSellProducts operation in CrossSellApi.
|
|
@@ -444,7 +1103,7 @@ export declare class CrossSellApi extends BaseAPI {
|
|
|
444
1103
|
* @throws {RequiredError}
|
|
445
1104
|
* @memberof CrossSellApi
|
|
446
1105
|
*/
|
|
447
|
-
attachCrossSellProducts(requestParameters: CrossSellApiAttachCrossSellProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
1106
|
+
attachCrossSellProducts(requestParameters: CrossSellApiAttachCrossSellProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Product[], any>>;
|
|
448
1107
|
/**
|
|
449
1108
|
*
|
|
450
1109
|
* @summary Get cross-sell products linked to a product
|
|
@@ -453,7 +1112,7 @@ export declare class CrossSellApi extends BaseAPI {
|
|
|
453
1112
|
* @throws {RequiredError}
|
|
454
1113
|
* @memberof CrossSellApi
|
|
455
1114
|
*/
|
|
456
|
-
getCrossSellProducts(requestParameters: CrossSellApiGetCrossSellProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
1115
|
+
getCrossSellProducts(requestParameters: CrossSellApiGetCrossSellProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Product[], any>>;
|
|
457
1116
|
}
|
|
458
1117
|
/**
|
|
459
1118
|
* MenuApi - axios parameter creator
|