@teemill/product-catalog 1.14.0 → 1.16.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/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/api.ts +419 -105
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +368 -89
- package/dist/api.js +77 -90
- 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 +368 -89
- package/dist/esm/api.js +76 -89
- 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/esm/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
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
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.16.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -13,6 +13,19 @@ import type { Configuration } from './configuration';
|
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import type { RequestArgs } from './base';
|
|
15
15
|
import { BaseAPI } from './base';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AdditionalFile
|
|
20
|
+
*/
|
|
21
|
+
export interface AdditionalFile {
|
|
22
|
+
/**
|
|
23
|
+
* Publicly available file URL.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AdditionalFile
|
|
26
|
+
*/
|
|
27
|
+
'src'?: string;
|
|
28
|
+
}
|
|
16
29
|
/**
|
|
17
30
|
*
|
|
18
31
|
* @export
|
|
@@ -43,7 +56,7 @@ export interface Application {
|
|
|
43
56
|
* @type {string}
|
|
44
57
|
* @memberof Application
|
|
45
58
|
*/
|
|
46
|
-
'technology':
|
|
59
|
+
'technology': ApplicationTechnologyEnum;
|
|
47
60
|
/**
|
|
48
61
|
* Placement of the application. Available placements depend on the chosen product and technology.
|
|
49
62
|
* @type {string}
|
|
@@ -56,7 +69,25 @@ export interface Application {
|
|
|
56
69
|
* @memberof Application
|
|
57
70
|
*/
|
|
58
71
|
'src': string;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {ApplicationMockup}
|
|
75
|
+
* @memberof Application
|
|
76
|
+
*/
|
|
77
|
+
'mockup'?: ApplicationMockup;
|
|
59
78
|
}
|
|
79
|
+
export declare const ApplicationTechnologyEnum: {
|
|
80
|
+
readonly Dtg: "dtg";
|
|
81
|
+
readonly Embroidery: "embroidery";
|
|
82
|
+
readonly Dtf: "dtf";
|
|
83
|
+
readonly Pretreat: "pretreat";
|
|
84
|
+
readonly MugSublimation: "mug_sublimation";
|
|
85
|
+
readonly ManualPrint: "manual_print";
|
|
86
|
+
readonly AdditionalApplication: "additional_application";
|
|
87
|
+
readonly NotebookSublimation: "notebook_sublimation";
|
|
88
|
+
readonly DuplexPrint: "duplex_print";
|
|
89
|
+
};
|
|
90
|
+
export type ApplicationTechnologyEnum = typeof ApplicationTechnologyEnum[keyof typeof ApplicationTechnologyEnum];
|
|
60
91
|
export declare const ApplicationPlacementEnum: {
|
|
61
92
|
readonly Front: "front";
|
|
62
93
|
readonly Back: "back";
|
|
@@ -65,6 +96,25 @@ export declare const ApplicationPlacementEnum: {
|
|
|
65
96
|
readonly Neck: "neck";
|
|
66
97
|
};
|
|
67
98
|
export type ApplicationPlacementEnum = typeof ApplicationPlacementEnum[keyof typeof ApplicationPlacementEnum];
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @export
|
|
102
|
+
* @interface ApplicationMockup
|
|
103
|
+
*/
|
|
104
|
+
export interface ApplicationMockup {
|
|
105
|
+
/**
|
|
106
|
+
* Drive image URL. If provided, this will be used as the mockup image for the variant application rather than generating a new one.
|
|
107
|
+
* @type {string}
|
|
108
|
+
* @memberof ApplicationMockup
|
|
109
|
+
*/
|
|
110
|
+
'file': string;
|
|
111
|
+
/**
|
|
112
|
+
* Publicly available mockup image URL. This is a preview of the mockup image for the given application.
|
|
113
|
+
* @type {string}
|
|
114
|
+
* @memberof ApplicationMockup
|
|
115
|
+
*/
|
|
116
|
+
'preview'?: string;
|
|
117
|
+
}
|
|
68
118
|
/**
|
|
69
119
|
*
|
|
70
120
|
* @export
|
|
@@ -169,6 +219,12 @@ export interface CreateProductRequest {
|
|
|
169
219
|
* @memberof CreateProductRequest
|
|
170
220
|
*/
|
|
171
221
|
'tags'?: Array<string>;
|
|
222
|
+
/**
|
|
223
|
+
* Internal tags used for internal searching and filtering.
|
|
224
|
+
* @type {Array<string>}
|
|
225
|
+
* @memberof CreateProductRequest
|
|
226
|
+
*/
|
|
227
|
+
'internalTags'?: Array<string>;
|
|
172
228
|
/**
|
|
173
229
|
* Variants
|
|
174
230
|
* @type {Array<CreateProductVariant>}
|
|
@@ -183,10 +239,23 @@ export interface CreateProductRequest {
|
|
|
183
239
|
'images'?: Array<CreateProductRequestImagesInner>;
|
|
184
240
|
/**
|
|
185
241
|
* Additional files to attach to the product. For example, original design files e.g. PSD, AI, etc.
|
|
186
|
-
* @type {Array<
|
|
242
|
+
* @type {Array<CreateProductRequestAdditionalFilesInner>}
|
|
187
243
|
* @memberof CreateProductRequest
|
|
188
244
|
*/
|
|
189
|
-
'additionalFiles'?: Array<
|
|
245
|
+
'additionalFiles'?: Array<CreateProductRequestAdditionalFilesInner>;
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
*
|
|
249
|
+
* @export
|
|
250
|
+
* @interface CreateProductRequestAdditionalFilesInner
|
|
251
|
+
*/
|
|
252
|
+
export interface CreateProductRequestAdditionalFilesInner {
|
|
253
|
+
/**
|
|
254
|
+
* Publicly available file URL.
|
|
255
|
+
* @type {string}
|
|
256
|
+
* @memberof CreateProductRequestAdditionalFilesInner
|
|
257
|
+
*/
|
|
258
|
+
'src'?: string;
|
|
190
259
|
}
|
|
191
260
|
/**
|
|
192
261
|
*
|
|
@@ -246,10 +315,10 @@ export interface CreateProductVariant {
|
|
|
246
315
|
'applications'?: Array<Application>;
|
|
247
316
|
/**
|
|
248
317
|
* 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<
|
|
318
|
+
* @type {Array<CreateProductVariantImagesInner>}
|
|
250
319
|
* @memberof CreateProductVariant
|
|
251
320
|
*/
|
|
252
|
-
'images'?: Array<
|
|
321
|
+
'images'?: Array<CreateProductVariantImagesInner>;
|
|
253
322
|
}
|
|
254
323
|
/**
|
|
255
324
|
*
|
|
@@ -262,7 +331,7 @@ export interface CreateProductVariantAttributesInner {
|
|
|
262
331
|
* @type {string}
|
|
263
332
|
* @memberof CreateProductVariantAttributesInner
|
|
264
333
|
*/
|
|
265
|
-
'name':
|
|
334
|
+
'name': CreateProductVariantAttributesInnerNameEnum;
|
|
266
335
|
/**
|
|
267
336
|
* Attribute value
|
|
268
337
|
* @type {string}
|
|
@@ -270,6 +339,24 @@ export interface CreateProductVariantAttributesInner {
|
|
|
270
339
|
*/
|
|
271
340
|
'value': string;
|
|
272
341
|
}
|
|
342
|
+
export declare const CreateProductVariantAttributesInnerNameEnum: {
|
|
343
|
+
readonly Size: "Size";
|
|
344
|
+
readonly Colour: "Colour";
|
|
345
|
+
};
|
|
346
|
+
export type CreateProductVariantAttributesInnerNameEnum = typeof CreateProductVariantAttributesInnerNameEnum[keyof typeof CreateProductVariantAttributesInnerNameEnum];
|
|
347
|
+
/**
|
|
348
|
+
*
|
|
349
|
+
* @export
|
|
350
|
+
* @interface CreateProductVariantImagesInner
|
|
351
|
+
*/
|
|
352
|
+
export interface CreateProductVariantImagesInner {
|
|
353
|
+
/**
|
|
354
|
+
* Publicly available file URL.
|
|
355
|
+
* @type {string}
|
|
356
|
+
* @memberof CreateProductVariantImagesInner
|
|
357
|
+
*/
|
|
358
|
+
'src'?: string;
|
|
359
|
+
}
|
|
273
360
|
/**
|
|
274
361
|
* Variant retail price including tax.
|
|
275
362
|
* @export
|
|
@@ -287,8 +374,12 @@ export interface CreateProductVariantRetailPrice {
|
|
|
287
374
|
* @type {string}
|
|
288
375
|
* @memberof CreateProductVariantRetailPrice
|
|
289
376
|
*/
|
|
290
|
-
'currencyCode':
|
|
377
|
+
'currencyCode': CreateProductVariantRetailPriceCurrencyCodeEnum;
|
|
291
378
|
}
|
|
379
|
+
export declare const CreateProductVariantRetailPriceCurrencyCodeEnum: {
|
|
380
|
+
readonly Gbp: "GBP";
|
|
381
|
+
};
|
|
382
|
+
export type CreateProductVariantRetailPriceCurrencyCodeEnum = typeof CreateProductVariantRetailPriceCurrencyCodeEnum[keyof typeof CreateProductVariantRetailPriceCurrencyCodeEnum];
|
|
292
383
|
/**
|
|
293
384
|
* Image description
|
|
294
385
|
* @export
|
|
@@ -341,28 +432,28 @@ export interface Image {
|
|
|
341
432
|
/**
|
|
342
433
|
*
|
|
343
434
|
* @export
|
|
344
|
-
* @interface
|
|
435
|
+
* @interface ImageFile
|
|
345
436
|
*/
|
|
346
|
-
export interface
|
|
437
|
+
export interface ImageFile {
|
|
347
438
|
/**
|
|
348
|
-
*
|
|
439
|
+
* Publicly available file URL.
|
|
349
440
|
* @type {string}
|
|
350
|
-
* @memberof
|
|
441
|
+
* @memberof ImageFile
|
|
351
442
|
*/
|
|
352
|
-
'
|
|
443
|
+
'src'?: string;
|
|
353
444
|
}
|
|
354
445
|
/**
|
|
355
446
|
*
|
|
356
447
|
* @export
|
|
357
|
-
* @interface
|
|
448
|
+
* @interface ImportProducts200Response
|
|
358
449
|
*/
|
|
359
|
-
export interface
|
|
450
|
+
export interface ImportProducts200Response {
|
|
360
451
|
/**
|
|
361
|
-
*
|
|
452
|
+
* Id of the product import
|
|
362
453
|
* @type {string}
|
|
363
|
-
* @memberof
|
|
454
|
+
* @memberof ImportProducts200Response
|
|
364
455
|
*/
|
|
365
|
-
'
|
|
456
|
+
'importId'?: string;
|
|
366
457
|
}
|
|
367
458
|
/**
|
|
368
459
|
* Standard price definition that defines the amount, tax rate and currency.
|
|
@@ -381,8 +472,12 @@ export interface Price {
|
|
|
381
472
|
* @type {string}
|
|
382
473
|
* @memberof Price
|
|
383
474
|
*/
|
|
384
|
-
'currencyCode'?:
|
|
475
|
+
'currencyCode'?: PriceCurrencyCodeEnum;
|
|
385
476
|
}
|
|
477
|
+
export declare const PriceCurrencyCodeEnum: {
|
|
478
|
+
readonly Gbp: "GBP";
|
|
479
|
+
};
|
|
480
|
+
export type PriceCurrencyCodeEnum = typeof PriceCurrencyCodeEnum[keyof typeof PriceCurrencyCodeEnum];
|
|
386
481
|
/**
|
|
387
482
|
*
|
|
388
483
|
* @export
|
|
@@ -437,6 +532,12 @@ export interface Product {
|
|
|
437
532
|
* @memberof Product
|
|
438
533
|
*/
|
|
439
534
|
'tags'?: Array<string>;
|
|
535
|
+
/**
|
|
536
|
+
*
|
|
537
|
+
* @type {Array<string>}
|
|
538
|
+
* @memberof Product
|
|
539
|
+
*/
|
|
540
|
+
'internalTags'?: Array<string>;
|
|
440
541
|
/**
|
|
441
542
|
*
|
|
442
543
|
* @type {string}
|
|
@@ -586,6 +687,12 @@ export interface UpdateProductRequest {
|
|
|
586
687
|
* @memberof UpdateProductRequest
|
|
587
688
|
*/
|
|
588
689
|
'tags'?: Array<string>;
|
|
690
|
+
/**
|
|
691
|
+
* Additional product tags used for internal searching and filtering.
|
|
692
|
+
* @type {Array<string>}
|
|
693
|
+
* @memberof UpdateProductRequest
|
|
694
|
+
*/
|
|
695
|
+
'internalTags'?: Array<string>;
|
|
589
696
|
/**
|
|
590
697
|
* Variants
|
|
591
698
|
* @type {Array<CreateProductVariant>}
|
|
@@ -594,16 +701,16 @@ export interface UpdateProductRequest {
|
|
|
594
701
|
'variants'?: Array<CreateProductVariant>;
|
|
595
702
|
/**
|
|
596
703
|
* Images to attach to the product. For example, photos of models using/wearing the product.
|
|
597
|
-
* @type {Array<
|
|
704
|
+
* @type {Array<ImageFile>}
|
|
598
705
|
* @memberof UpdateProductRequest
|
|
599
706
|
*/
|
|
600
|
-
'images'?: Array<
|
|
707
|
+
'images'?: Array<ImageFile>;
|
|
601
708
|
/**
|
|
602
709
|
* Additional files to attach to the product. For example, original design files e.g. PSD, AI, etc.
|
|
603
|
-
* @type {Array<
|
|
710
|
+
* @type {Array<AdditionalFile>}
|
|
604
711
|
* @memberof UpdateProductRequest
|
|
605
712
|
*/
|
|
606
|
-
'additionalFiles'?: Array<
|
|
713
|
+
'additionalFiles'?: Array<AdditionalFile>;
|
|
607
714
|
}
|
|
608
715
|
/**
|
|
609
716
|
*
|
|
@@ -884,63 +991,196 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
|
|
|
884
991
|
/**
|
|
885
992
|
* 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.
|
|
886
993
|
* @summary Create product
|
|
887
|
-
* @param {
|
|
888
|
-
* @param {CreateProductRequest} [createProductRequest]
|
|
994
|
+
* @param {ProductsApiCreateProductRequest} requestParameters Request parameters.
|
|
889
995
|
* @param {*} [options] Override http request option.
|
|
890
996
|
* @throws {RequiredError}
|
|
891
997
|
*/
|
|
892
|
-
createProduct(
|
|
998
|
+
createProduct(requestParameters: ProductsApiCreateProductRequest, options?: RawAxiosRequestConfig): AxiosPromise<Product>;
|
|
893
999
|
/**
|
|
894
1000
|
* Deletes a catalog product
|
|
895
1001
|
* @summary Delete catalog product
|
|
896
|
-
* @param {
|
|
897
|
-
* @param {string} productId Product\'s unique identifier
|
|
1002
|
+
* @param {ProductsApiDeleteProductRequest} requestParameters Request parameters.
|
|
898
1003
|
* @param {*} [options] Override http request option.
|
|
899
1004
|
* @throws {RequiredError}
|
|
900
1005
|
*/
|
|
901
|
-
deleteProduct(
|
|
1006
|
+
deleteProduct(requestParameters: ProductsApiDeleteProductRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
902
1007
|
/**
|
|
903
1008
|
* Gets a product by a given ID.
|
|
904
1009
|
* @summary Get product
|
|
905
|
-
* @param {
|
|
906
|
-
* @param {string} productId Product\'s unique identifier
|
|
907
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
1010
|
+
* @param {ProductsApiGetProductRequest} requestParameters Request parameters.
|
|
908
1011
|
* @param {*} [options] Override http request option.
|
|
909
1012
|
* @throws {RequiredError}
|
|
910
1013
|
*/
|
|
911
|
-
getProduct(
|
|
1014
|
+
getProduct(requestParameters: ProductsApiGetProductRequest, options?: RawAxiosRequestConfig): AxiosPromise<Product>;
|
|
912
1015
|
/**
|
|
913
1016
|
* Lists all enabled store listing products attached to the given project.
|
|
914
1017
|
* @summary List products
|
|
915
|
-
* @param {
|
|
916
|
-
* @param {number} [pageToken] Page reference token
|
|
917
|
-
* @param {string} [search] Search term to filter based on product tags.
|
|
918
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
919
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
1018
|
+
* @param {ProductsApiGetProductsRequest} requestParameters Request parameters.
|
|
920
1019
|
* @param {*} [options] Override http request option.
|
|
921
1020
|
* @throws {RequiredError}
|
|
922
1021
|
*/
|
|
923
|
-
getProducts(
|
|
1022
|
+
getProducts(requestParameters: ProductsApiGetProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductsResponse>;
|
|
924
1023
|
/**
|
|
925
1024
|
* Initiates a product import from a CSV file. The result will be available as a notification within the dashboard.
|
|
926
1025
|
* @summary Import products
|
|
927
|
-
* @param {
|
|
928
|
-
* @param {string} [body] A data URL of a CSV file containing data for one or more products.
|
|
1026
|
+
* @param {ProductsApiImportProductsRequest} requestParameters Request parameters.
|
|
929
1027
|
* @param {*} [options] Override http request option.
|
|
930
1028
|
* @throws {RequiredError}
|
|
931
1029
|
*/
|
|
932
|
-
importProducts(
|
|
1030
|
+
importProducts(requestParameters: ProductsApiImportProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ImportProducts200Response>;
|
|
933
1031
|
/**
|
|
934
1032
|
* Updates a product by a given ID.
|
|
935
1033
|
* @summary Update product
|
|
936
|
-
* @param {
|
|
937
|
-
* @param {string} productId Product\'s unique identifier
|
|
938
|
-
* @param {UpdateProductRequest} [updateProductRequest]
|
|
1034
|
+
* @param {ProductsApiUpdateProductRequest} requestParameters Request parameters.
|
|
939
1035
|
* @param {*} [options] Override http request option.
|
|
940
1036
|
* @throws {RequiredError}
|
|
941
1037
|
*/
|
|
942
|
-
updateProduct(
|
|
1038
|
+
updateProduct(requestParameters: ProductsApiUpdateProductRequest, options?: RawAxiosRequestConfig): AxiosPromise<Product>;
|
|
943
1039
|
};
|
|
1040
|
+
/**
|
|
1041
|
+
* Request parameters for createProduct operation in ProductsApi.
|
|
1042
|
+
* @export
|
|
1043
|
+
* @interface ProductsApiCreateProductRequest
|
|
1044
|
+
*/
|
|
1045
|
+
export interface ProductsApiCreateProductRequest {
|
|
1046
|
+
/**
|
|
1047
|
+
* What project it is
|
|
1048
|
+
* @type {string}
|
|
1049
|
+
* @memberof ProductsApiCreateProduct
|
|
1050
|
+
*/
|
|
1051
|
+
readonly project: string;
|
|
1052
|
+
/**
|
|
1053
|
+
*
|
|
1054
|
+
* @type {CreateProductRequest}
|
|
1055
|
+
* @memberof ProductsApiCreateProduct
|
|
1056
|
+
*/
|
|
1057
|
+
readonly createProductRequest?: CreateProductRequest;
|
|
1058
|
+
}
|
|
1059
|
+
/**
|
|
1060
|
+
* Request parameters for deleteProduct operation in ProductsApi.
|
|
1061
|
+
* @export
|
|
1062
|
+
* @interface ProductsApiDeleteProductRequest
|
|
1063
|
+
*/
|
|
1064
|
+
export interface ProductsApiDeleteProductRequest {
|
|
1065
|
+
/**
|
|
1066
|
+
* What project it is
|
|
1067
|
+
* @type {string}
|
|
1068
|
+
* @memberof ProductsApiDeleteProduct
|
|
1069
|
+
*/
|
|
1070
|
+
readonly project: string;
|
|
1071
|
+
/**
|
|
1072
|
+
* Product\'s unique identifier
|
|
1073
|
+
* @type {string}
|
|
1074
|
+
* @memberof ProductsApiDeleteProduct
|
|
1075
|
+
*/
|
|
1076
|
+
readonly productId: string;
|
|
1077
|
+
}
|
|
1078
|
+
/**
|
|
1079
|
+
* Request parameters for getProduct operation in ProductsApi.
|
|
1080
|
+
* @export
|
|
1081
|
+
* @interface ProductsApiGetProductRequest
|
|
1082
|
+
*/
|
|
1083
|
+
export interface ProductsApiGetProductRequest {
|
|
1084
|
+
/**
|
|
1085
|
+
* What project it is
|
|
1086
|
+
* @type {string}
|
|
1087
|
+
* @memberof ProductsApiGetProduct
|
|
1088
|
+
*/
|
|
1089
|
+
readonly project: string;
|
|
1090
|
+
/**
|
|
1091
|
+
* Product\'s unique identifier
|
|
1092
|
+
* @type {string}
|
|
1093
|
+
* @memberof ProductsApiGetProduct
|
|
1094
|
+
*/
|
|
1095
|
+
readonly productId: string;
|
|
1096
|
+
/**
|
|
1097
|
+
* Filter response fields to only include a subset of the resource.
|
|
1098
|
+
* @type {string}
|
|
1099
|
+
* @memberof ProductsApiGetProduct
|
|
1100
|
+
*/
|
|
1101
|
+
readonly fields?: string;
|
|
1102
|
+
}
|
|
1103
|
+
/**
|
|
1104
|
+
* Request parameters for getProducts operation in ProductsApi.
|
|
1105
|
+
* @export
|
|
1106
|
+
* @interface ProductsApiGetProductsRequest
|
|
1107
|
+
*/
|
|
1108
|
+
export interface ProductsApiGetProductsRequest {
|
|
1109
|
+
/**
|
|
1110
|
+
* What project it is
|
|
1111
|
+
* @type {string}
|
|
1112
|
+
* @memberof ProductsApiGetProducts
|
|
1113
|
+
*/
|
|
1114
|
+
readonly project: string;
|
|
1115
|
+
/**
|
|
1116
|
+
* Page reference token
|
|
1117
|
+
* @type {number}
|
|
1118
|
+
* @memberof ProductsApiGetProducts
|
|
1119
|
+
*/
|
|
1120
|
+
readonly pageToken?: number;
|
|
1121
|
+
/**
|
|
1122
|
+
* Search term to filter based on product tags.
|
|
1123
|
+
* @type {string}
|
|
1124
|
+
* @memberof ProductsApiGetProducts
|
|
1125
|
+
*/
|
|
1126
|
+
readonly search?: string;
|
|
1127
|
+
/**
|
|
1128
|
+
* Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1129
|
+
* @type {number}
|
|
1130
|
+
* @memberof ProductsApiGetProducts
|
|
1131
|
+
*/
|
|
1132
|
+
readonly pageSize?: number;
|
|
1133
|
+
/**
|
|
1134
|
+
* Filter response fields to only include a subset of the resource.
|
|
1135
|
+
* @type {string}
|
|
1136
|
+
* @memberof ProductsApiGetProducts
|
|
1137
|
+
*/
|
|
1138
|
+
readonly fields?: string;
|
|
1139
|
+
}
|
|
1140
|
+
/**
|
|
1141
|
+
* Request parameters for importProducts operation in ProductsApi.
|
|
1142
|
+
* @export
|
|
1143
|
+
* @interface ProductsApiImportProductsRequest
|
|
1144
|
+
*/
|
|
1145
|
+
export interface ProductsApiImportProductsRequest {
|
|
1146
|
+
/**
|
|
1147
|
+
* What project it is
|
|
1148
|
+
* @type {string}
|
|
1149
|
+
* @memberof ProductsApiImportProducts
|
|
1150
|
+
*/
|
|
1151
|
+
readonly project: string;
|
|
1152
|
+
/**
|
|
1153
|
+
* A data URL of a CSV file containing data for one or more products.
|
|
1154
|
+
* @type {string}
|
|
1155
|
+
* @memberof ProductsApiImportProducts
|
|
1156
|
+
*/
|
|
1157
|
+
readonly body?: string;
|
|
1158
|
+
}
|
|
1159
|
+
/**
|
|
1160
|
+
* Request parameters for updateProduct operation in ProductsApi.
|
|
1161
|
+
* @export
|
|
1162
|
+
* @interface ProductsApiUpdateProductRequest
|
|
1163
|
+
*/
|
|
1164
|
+
export interface ProductsApiUpdateProductRequest {
|
|
1165
|
+
/**
|
|
1166
|
+
* What project it is
|
|
1167
|
+
* @type {string}
|
|
1168
|
+
* @memberof ProductsApiUpdateProduct
|
|
1169
|
+
*/
|
|
1170
|
+
readonly project: string;
|
|
1171
|
+
/**
|
|
1172
|
+
* Product\'s unique identifier
|
|
1173
|
+
* @type {string}
|
|
1174
|
+
* @memberof ProductsApiUpdateProduct
|
|
1175
|
+
*/
|
|
1176
|
+
readonly productId: string;
|
|
1177
|
+
/**
|
|
1178
|
+
*
|
|
1179
|
+
* @type {UpdateProductRequest}
|
|
1180
|
+
* @memberof ProductsApiUpdateProduct
|
|
1181
|
+
*/
|
|
1182
|
+
readonly updateProductRequest?: UpdateProductRequest;
|
|
1183
|
+
}
|
|
944
1184
|
/**
|
|
945
1185
|
* ProductsApi - object-oriented interface
|
|
946
1186
|
* @export
|
|
@@ -951,68 +1191,57 @@ export declare class ProductsApi extends BaseAPI {
|
|
|
951
1191
|
/**
|
|
952
1192
|
* 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.
|
|
953
1193
|
* @summary Create product
|
|
954
|
-
* @param {
|
|
955
|
-
* @param {CreateProductRequest} [createProductRequest]
|
|
1194
|
+
* @param {ProductsApiCreateProductRequest} requestParameters Request parameters.
|
|
956
1195
|
* @param {*} [options] Override http request option.
|
|
957
1196
|
* @throws {RequiredError}
|
|
958
1197
|
* @memberof ProductsApi
|
|
959
1198
|
*/
|
|
960
|
-
createProduct(
|
|
1199
|
+
createProduct(requestParameters: ProductsApiCreateProductRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Product, any>>;
|
|
961
1200
|
/**
|
|
962
1201
|
* Deletes a catalog product
|
|
963
1202
|
* @summary Delete catalog product
|
|
964
|
-
* @param {
|
|
965
|
-
* @param {string} productId Product\'s unique identifier
|
|
1203
|
+
* @param {ProductsApiDeleteProductRequest} requestParameters Request parameters.
|
|
966
1204
|
* @param {*} [options] Override http request option.
|
|
967
1205
|
* @throws {RequiredError}
|
|
968
1206
|
* @memberof ProductsApi
|
|
969
1207
|
*/
|
|
970
|
-
deleteProduct(
|
|
1208
|
+
deleteProduct(requestParameters: ProductsApiDeleteProductRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
971
1209
|
/**
|
|
972
1210
|
* Gets a product by a given ID.
|
|
973
1211
|
* @summary Get product
|
|
974
|
-
* @param {
|
|
975
|
-
* @param {string} productId Product\'s unique identifier
|
|
976
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
1212
|
+
* @param {ProductsApiGetProductRequest} requestParameters Request parameters.
|
|
977
1213
|
* @param {*} [options] Override http request option.
|
|
978
1214
|
* @throws {RequiredError}
|
|
979
1215
|
* @memberof ProductsApi
|
|
980
1216
|
*/
|
|
981
|
-
getProduct(
|
|
1217
|
+
getProduct(requestParameters: ProductsApiGetProductRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Product, any>>;
|
|
982
1218
|
/**
|
|
983
1219
|
* Lists all enabled store listing products attached to the given project.
|
|
984
1220
|
* @summary List products
|
|
985
|
-
* @param {
|
|
986
|
-
* @param {number} [pageToken] Page reference token
|
|
987
|
-
* @param {string} [search] Search term to filter based on product tags.
|
|
988
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
989
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
1221
|
+
* @param {ProductsApiGetProductsRequest} requestParameters Request parameters.
|
|
990
1222
|
* @param {*} [options] Override http request option.
|
|
991
1223
|
* @throws {RequiredError}
|
|
992
1224
|
* @memberof ProductsApi
|
|
993
1225
|
*/
|
|
994
|
-
getProducts(
|
|
1226
|
+
getProducts(requestParameters: ProductsApiGetProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductsResponse, any>>;
|
|
995
1227
|
/**
|
|
996
1228
|
* Initiates a product import from a CSV file. The result will be available as a notification within the dashboard.
|
|
997
1229
|
* @summary Import products
|
|
998
|
-
* @param {
|
|
999
|
-
* @param {string} [body] A data URL of a CSV file containing data for one or more products.
|
|
1230
|
+
* @param {ProductsApiImportProductsRequest} requestParameters Request parameters.
|
|
1000
1231
|
* @param {*} [options] Override http request option.
|
|
1001
1232
|
* @throws {RequiredError}
|
|
1002
1233
|
* @memberof ProductsApi
|
|
1003
1234
|
*/
|
|
1004
|
-
importProducts(
|
|
1235
|
+
importProducts(requestParameters: ProductsApiImportProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ImportProducts200Response, any>>;
|
|
1005
1236
|
/**
|
|
1006
1237
|
* Updates a product by a given ID.
|
|
1007
1238
|
* @summary Update product
|
|
1008
|
-
* @param {
|
|
1009
|
-
* @param {string} productId Product\'s unique identifier
|
|
1010
|
-
* @param {UpdateProductRequest} [updateProductRequest]
|
|
1239
|
+
* @param {ProductsApiUpdateProductRequest} requestParameters Request parameters.
|
|
1011
1240
|
* @param {*} [options] Override http request option.
|
|
1012
1241
|
* @throws {RequiredError}
|
|
1013
1242
|
* @memberof ProductsApi
|
|
1014
1243
|
*/
|
|
1015
|
-
updateProduct(
|
|
1244
|
+
updateProduct(requestParameters: ProductsApiUpdateProductRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Product, any>>;
|
|
1016
1245
|
}
|
|
1017
1246
|
/**
|
|
1018
1247
|
* VariantsApi - axios parameter creator
|
|
@@ -1078,26 +1307,82 @@ export declare const VariantsApiFactory: (configuration?: Configuration, basePat
|
|
|
1078
1307
|
/**
|
|
1079
1308
|
* Gets a variant by a given ID.
|
|
1080
1309
|
* @summary Get variant
|
|
1081
|
-
* @param {
|
|
1082
|
-
* @param {string} variantId Variants unique identifier
|
|
1083
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
1310
|
+
* @param {VariantsApiGetVariantRequest} requestParameters Request parameters.
|
|
1084
1311
|
* @param {*} [options] Override http request option.
|
|
1085
1312
|
* @throws {RequiredError}
|
|
1086
1313
|
*/
|
|
1087
|
-
getVariant(
|
|
1314
|
+
getVariant(requestParameters: VariantsApiGetVariantRequest, options?: RawAxiosRequestConfig): AxiosPromise<Variant>;
|
|
1088
1315
|
/**
|
|
1089
1316
|
* Lists all variants that belong to enabled products attached to the given project.
|
|
1090
1317
|
* @summary List variants
|
|
1091
|
-
* @param {
|
|
1092
|
-
* @param {string} [search] Search term to filter based on product tags.
|
|
1093
|
-
* @param {number} [pageToken] Page reference token
|
|
1094
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1095
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
1318
|
+
* @param {VariantsApiListVariantsRequest} requestParameters Request parameters.
|
|
1096
1319
|
* @param {*} [options] Override http request option.
|
|
1097
1320
|
* @throws {RequiredError}
|
|
1098
1321
|
*/
|
|
1099
|
-
listVariants(
|
|
1322
|
+
listVariants(requestParameters: VariantsApiListVariantsRequest, options?: RawAxiosRequestConfig): AxiosPromise<VariantsResponse>;
|
|
1100
1323
|
};
|
|
1324
|
+
/**
|
|
1325
|
+
* Request parameters for getVariant operation in VariantsApi.
|
|
1326
|
+
* @export
|
|
1327
|
+
* @interface VariantsApiGetVariantRequest
|
|
1328
|
+
*/
|
|
1329
|
+
export interface VariantsApiGetVariantRequest {
|
|
1330
|
+
/**
|
|
1331
|
+
* What project it is
|
|
1332
|
+
* @type {string}
|
|
1333
|
+
* @memberof VariantsApiGetVariant
|
|
1334
|
+
*/
|
|
1335
|
+
readonly project: string;
|
|
1336
|
+
/**
|
|
1337
|
+
* Variants unique identifier
|
|
1338
|
+
* @type {string}
|
|
1339
|
+
* @memberof VariantsApiGetVariant
|
|
1340
|
+
*/
|
|
1341
|
+
readonly variantId: string;
|
|
1342
|
+
/**
|
|
1343
|
+
* Filter response fields to only include a subset of the resource.
|
|
1344
|
+
* @type {string}
|
|
1345
|
+
* @memberof VariantsApiGetVariant
|
|
1346
|
+
*/
|
|
1347
|
+
readonly fields?: string;
|
|
1348
|
+
}
|
|
1349
|
+
/**
|
|
1350
|
+
* Request parameters for listVariants operation in VariantsApi.
|
|
1351
|
+
* @export
|
|
1352
|
+
* @interface VariantsApiListVariantsRequest
|
|
1353
|
+
*/
|
|
1354
|
+
export interface VariantsApiListVariantsRequest {
|
|
1355
|
+
/**
|
|
1356
|
+
* What project it is
|
|
1357
|
+
* @type {string}
|
|
1358
|
+
* @memberof VariantsApiListVariants
|
|
1359
|
+
*/
|
|
1360
|
+
readonly project: string;
|
|
1361
|
+
/**
|
|
1362
|
+
* Search term to filter based on product tags.
|
|
1363
|
+
* @type {string}
|
|
1364
|
+
* @memberof VariantsApiListVariants
|
|
1365
|
+
*/
|
|
1366
|
+
readonly search?: string;
|
|
1367
|
+
/**
|
|
1368
|
+
* Page reference token
|
|
1369
|
+
* @type {number}
|
|
1370
|
+
* @memberof VariantsApiListVariants
|
|
1371
|
+
*/
|
|
1372
|
+
readonly pageToken?: number;
|
|
1373
|
+
/**
|
|
1374
|
+
* Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1375
|
+
* @type {number}
|
|
1376
|
+
* @memberof VariantsApiListVariants
|
|
1377
|
+
*/
|
|
1378
|
+
readonly pageSize?: number;
|
|
1379
|
+
/**
|
|
1380
|
+
* Filter response fields to only include a subset of the resource.
|
|
1381
|
+
* @type {string}
|
|
1382
|
+
* @memberof VariantsApiListVariants
|
|
1383
|
+
*/
|
|
1384
|
+
readonly fields?: string;
|
|
1385
|
+
}
|
|
1101
1386
|
/**
|
|
1102
1387
|
* VariantsApi - object-oriented interface
|
|
1103
1388
|
* @export
|
|
@@ -1108,25 +1393,19 @@ export declare class VariantsApi extends BaseAPI {
|
|
|
1108
1393
|
/**
|
|
1109
1394
|
* Gets a variant by a given ID.
|
|
1110
1395
|
* @summary Get variant
|
|
1111
|
-
* @param {
|
|
1112
|
-
* @param {string} variantId Variants unique identifier
|
|
1113
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
1396
|
+
* @param {VariantsApiGetVariantRequest} requestParameters Request parameters.
|
|
1114
1397
|
* @param {*} [options] Override http request option.
|
|
1115
1398
|
* @throws {RequiredError}
|
|
1116
1399
|
* @memberof VariantsApi
|
|
1117
1400
|
*/
|
|
1118
|
-
getVariant(
|
|
1401
|
+
getVariant(requestParameters: VariantsApiGetVariantRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Variant, any>>;
|
|
1119
1402
|
/**
|
|
1120
1403
|
* Lists all variants that belong to enabled products attached to the given project.
|
|
1121
1404
|
* @summary List variants
|
|
1122
|
-
* @param {
|
|
1123
|
-
* @param {string} [search] Search term to filter based on product tags.
|
|
1124
|
-
* @param {number} [pageToken] Page reference token
|
|
1125
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1126
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
1405
|
+
* @param {VariantsApiListVariantsRequest} requestParameters Request parameters.
|
|
1127
1406
|
* @param {*} [options] Override http request option.
|
|
1128
1407
|
* @throws {RequiredError}
|
|
1129
1408
|
* @memberof VariantsApi
|
|
1130
1409
|
*/
|
|
1131
|
-
listVariants(
|
|
1410
|
+
listVariants(requestParameters: VariantsApiListVariantsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VariantsResponse, any>>;
|
|
1132
1411
|
}
|