@teemill/product-catalog 1.11.1 → 1.12.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/FILES +7 -29
- package/.openapi-generator/VERSION +1 -1
- package/README.md +3 -3
- package/api.ts +1592 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/configuration.ts +110 -0
- package/dist/api.d.ts +1120 -0
- package/dist/api.js +819 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +65 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +161 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +43 -0
- package/dist/esm/api.d.ts +1120 -0
- package/dist/esm/api.js +808 -0
- package/dist/esm/base.d.ts +66 -0
- package/dist/esm/base.js +60 -0
- package/dist/esm/common.d.ts +65 -0
- package/dist/esm/common.js +149 -0
- package/dist/esm/configuration.d.ts +91 -0
- package/dist/esm/configuration.js +39 -0
- package/dist/esm/index.d.ts +13 -3
- package/dist/esm/index.js +13 -3
- package/dist/index.d.ts +13 -3
- package/dist/index.js +15 -5
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/package.json +15 -3
- package/tsconfig.json +4 -6
- package/dist/apis/ProductsApi.d.ts +0 -107
- package/dist/apis/ProductsApi.js +0 -304
- package/dist/apis/VariantsApi.d.ts +0 -50
- package/dist/apis/VariantsApi.js +0 -131
- package/dist/apis/index.d.ts +0 -2
- package/dist/apis/index.js +0 -20
- package/dist/esm/apis/ProductsApi.d.ts +0 -107
- package/dist/esm/apis/ProductsApi.js +0 -300
- package/dist/esm/apis/VariantsApi.d.ts +0 -50
- package/dist/esm/apis/VariantsApi.js +0 -127
- package/dist/esm/apis/index.d.ts +0 -2
- package/dist/esm/apis/index.js +0 -4
- package/dist/esm/models/ApiError.d.ts +0 -37
- package/dist/esm/models/ApiError.js +0 -42
- package/dist/esm/models/Attribute.d.ts +0 -50
- package/dist/esm/models/Attribute.js +0 -49
- package/dist/esm/models/AttributeThumbnail.d.ts +0 -46
- package/dist/esm/models/AttributeThumbnail.js +0 -48
- package/dist/esm/models/CreateProductRequest.d.ts +0 -88
- package/dist/esm/models/CreateProductRequest.js +0 -63
- package/dist/esm/models/CreateProductRequestAdditionalFilesInner.d.ts +0 -31
- package/dist/esm/models/CreateProductRequestAdditionalFilesInner.js +0 -43
- package/dist/esm/models/CreateProductRequestImagesInner.d.ts +0 -31
- package/dist/esm/models/CreateProductRequestImagesInner.js +0 -38
- package/dist/esm/models/CreateProductRequestSeoMetadata.d.ts +0 -31
- package/dist/esm/models/CreateProductRequestSeoMetadata.js +0 -38
- package/dist/esm/models/CreateProductRequestVariantsInner.d.ts +0 -59
- package/dist/esm/models/CreateProductRequestVariantsInner.js +0 -57
- package/dist/esm/models/CreateProductRequestVariantsInnerApplicationsInner.d.ts +0 -63
- package/dist/esm/models/CreateProductRequestVariantsInnerApplicationsInner.js +0 -67
- package/dist/esm/models/CreateProductRequestVariantsInnerAttributesInner.d.ts +0 -37
- package/dist/esm/models/CreateProductRequestVariantsInnerAttributesInner.js +0 -46
- package/dist/esm/models/CreateProductRequestVariantsInnerImagesInner.d.ts +0 -31
- package/dist/esm/models/CreateProductRequestVariantsInnerImagesInner.js +0 -43
- package/dist/esm/models/CreateProductRequestVariantsInnerRetailPrice.d.ts +0 -37
- package/dist/esm/models/CreateProductRequestVariantsInnerRetailPrice.js +0 -46
- package/dist/esm/models/CreateProductVariant.d.ts +0 -59
- package/dist/esm/models/CreateProductVariant.js +0 -54
- package/dist/esm/models/CreateProductVariantApplicationsInner.d.ts +0 -54
- package/dist/esm/models/CreateProductVariantApplicationsInner.js +0 -58
- package/dist/esm/models/CreateProductVariantAttributesInner.d.ts +0 -37
- package/dist/esm/models/CreateProductVariantAttributesInner.js +0 -44
- package/dist/esm/models/CreateProductVariantRetailPrice.d.ts +0 -37
- package/dist/esm/models/CreateProductVariantRetailPrice.js +0 -44
- package/dist/esm/models/Image.d.ts +0 -67
- package/dist/esm/models/Image.js +0 -50
- package/dist/esm/models/ImportProducts200Response.d.ts +0 -31
- package/dist/esm/models/ImportProducts200Response.js +0 -38
- package/dist/esm/models/ModelFile.d.ts +0 -31
- package/dist/esm/models/ModelFile.js +0 -38
- package/dist/esm/models/Price.d.ts +0 -37
- package/dist/esm/models/Price.js +0 -40
- package/dist/esm/models/Product.d.ts +0 -113
- package/dist/esm/models/Product.js +0 -71
- package/dist/esm/models/ProductAdditionalFilesInner.d.ts +0 -37
- package/dist/esm/models/ProductAdditionalFilesInner.js +0 -40
- package/dist/esm/models/ProductsResponse.d.ts +0 -38
- package/dist/esm/models/ProductsResponse.js +0 -41
- package/dist/esm/models/SeoMetadata.d.ts +0 -31
- package/dist/esm/models/SeoMetadata.js +0 -38
- package/dist/esm/models/Stock.d.ts +0 -31
- package/dist/esm/models/Stock.js +0 -38
- package/dist/esm/models/UpdateProductRequest.d.ts +0 -87
- package/dist/esm/models/UpdateProductRequest.js +0 -58
- package/dist/esm/models/Variant.d.ts +0 -114
- package/dist/esm/models/Variant.js +0 -71
- package/dist/esm/models/VariantProduct.d.ts +0 -37
- package/dist/esm/models/VariantProduct.js +0 -40
- package/dist/esm/models/VariantsResponse.d.ts +0 -38
- package/dist/esm/models/VariantsResponse.js +0 -41
- package/dist/esm/models/index.d.ts +0 -23
- package/dist/esm/models/index.js +0 -25
- package/dist/esm/runtime.d.ts +0 -187
- package/dist/esm/runtime.js +0 -333
- package/dist/models/ApiError.d.ts +0 -37
- package/dist/models/ApiError.js +0 -49
- package/dist/models/Attribute.d.ts +0 -50
- package/dist/models/Attribute.js +0 -56
- package/dist/models/AttributeThumbnail.d.ts +0 -46
- package/dist/models/AttributeThumbnail.js +0 -55
- package/dist/models/CreateProductRequest.d.ts +0 -88
- package/dist/models/CreateProductRequest.js +0 -70
- package/dist/models/CreateProductRequestAdditionalFilesInner.d.ts +0 -31
- package/dist/models/CreateProductRequestAdditionalFilesInner.js +0 -50
- package/dist/models/CreateProductRequestImagesInner.d.ts +0 -31
- package/dist/models/CreateProductRequestImagesInner.js +0 -45
- package/dist/models/CreateProductRequestSeoMetadata.d.ts +0 -31
- package/dist/models/CreateProductRequestSeoMetadata.js +0 -45
- package/dist/models/CreateProductRequestVariantsInner.d.ts +0 -59
- package/dist/models/CreateProductRequestVariantsInner.js +0 -64
- package/dist/models/CreateProductRequestVariantsInnerApplicationsInner.d.ts +0 -63
- package/dist/models/CreateProductRequestVariantsInnerApplicationsInner.js +0 -74
- package/dist/models/CreateProductRequestVariantsInnerAttributesInner.d.ts +0 -37
- package/dist/models/CreateProductRequestVariantsInnerAttributesInner.js +0 -53
- package/dist/models/CreateProductRequestVariantsInnerImagesInner.d.ts +0 -31
- package/dist/models/CreateProductRequestVariantsInnerImagesInner.js +0 -50
- package/dist/models/CreateProductRequestVariantsInnerRetailPrice.d.ts +0 -37
- package/dist/models/CreateProductRequestVariantsInnerRetailPrice.js +0 -53
- package/dist/models/CreateProductVariant.d.ts +0 -59
- package/dist/models/CreateProductVariant.js +0 -61
- package/dist/models/CreateProductVariantApplicationsInner.d.ts +0 -54
- package/dist/models/CreateProductVariantApplicationsInner.js +0 -65
- package/dist/models/CreateProductVariantAttributesInner.d.ts +0 -37
- package/dist/models/CreateProductVariantAttributesInner.js +0 -51
- package/dist/models/CreateProductVariantRetailPrice.d.ts +0 -37
- package/dist/models/CreateProductVariantRetailPrice.js +0 -51
- package/dist/models/Image.d.ts +0 -67
- package/dist/models/Image.js +0 -57
- package/dist/models/ImportProducts200Response.d.ts +0 -31
- package/dist/models/ImportProducts200Response.js +0 -45
- package/dist/models/ModelFile.d.ts +0 -31
- package/dist/models/ModelFile.js +0 -45
- package/dist/models/Price.d.ts +0 -37
- package/dist/models/Price.js +0 -47
- package/dist/models/Product.d.ts +0 -113
- package/dist/models/Product.js +0 -78
- package/dist/models/ProductAdditionalFilesInner.d.ts +0 -37
- package/dist/models/ProductAdditionalFilesInner.js +0 -47
- package/dist/models/ProductsResponse.d.ts +0 -38
- package/dist/models/ProductsResponse.js +0 -48
- package/dist/models/SeoMetadata.d.ts +0 -31
- package/dist/models/SeoMetadata.js +0 -45
- package/dist/models/Stock.d.ts +0 -31
- package/dist/models/Stock.js +0 -45
- package/dist/models/UpdateProductRequest.d.ts +0 -87
- package/dist/models/UpdateProductRequest.js +0 -65
- package/dist/models/Variant.d.ts +0 -114
- package/dist/models/Variant.js +0 -78
- package/dist/models/VariantProduct.d.ts +0 -37
- package/dist/models/VariantProduct.js +0 -47
- package/dist/models/VariantsResponse.d.ts +0 -38
- package/dist/models/VariantsResponse.js +0 -48
- package/dist/models/index.d.ts +0 -23
- package/dist/models/index.js +0 -41
- package/dist/runtime.d.ts +0 -187
- package/dist/runtime.js +0 -349
- package/src/apis/ProductsApi.ts +0 -453
- package/src/apis/VariantsApi.ts +0 -186
- package/src/apis/index.ts +0 -4
- package/src/index.ts +0 -5
- package/src/models/ApiError.ts +0 -69
- package/src/models/Attribute.ts +0 -93
- package/src/models/AttributeThumbnail.ts +0 -80
- package/src/models/CreateProductRequest.ts +0 -153
- package/src/models/CreateProductRequestAdditionalFilesInner.ts +0 -65
- package/src/models/CreateProductRequestImagesInner.ts +0 -60
- package/src/models/CreateProductRequestSeoMetadata.ts +0 -60
- package/src/models/CreateProductRequestVariantsInner.ts +0 -124
- package/src/models/CreateProductRequestVariantsInnerApplicationsInner.ts +0 -108
- package/src/models/CreateProductRequestVariantsInnerAttributesInner.ts +0 -75
- package/src/models/CreateProductRequestVariantsInnerImagesInner.ts +0 -65
- package/src/models/CreateProductRequestVariantsInnerRetailPrice.ts +0 -75
- package/src/models/CreateProductVariant.ts +0 -119
- package/src/models/CreateProductVariantApplicationsInner.ts +0 -93
- package/src/models/CreateProductVariantAttributesInner.ts +0 -70
- package/src/models/CreateProductVariantRetailPrice.ts +0 -70
- package/src/models/Image.ts +0 -108
- package/src/models/ImportProducts200Response.ts +0 -60
- package/src/models/ModelFile.ts +0 -60
- package/src/models/Price.ts +0 -68
- package/src/models/Product.ts +0 -190
- package/src/models/ProductAdditionalFilesInner.ts +0 -68
- package/src/models/ProductsResponse.ts +0 -75
- package/src/models/SeoMetadata.ts +0 -60
- package/src/models/Stock.ts +0 -60
- package/src/models/UpdateProductRequest.ts +0 -145
- package/src/models/Variant.ts +0 -195
- package/src/models/VariantProduct.ts +0 -68
- package/src/models/VariantsResponse.ts +0 -75
- package/src/models/index.ts +0 -25
- package/src/runtime.ts +0 -441
package/dist/api.d.ts
ADDED
|
@@ -0,0 +1,1120 @@
|
|
|
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.12.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 Attribute
|
|
39
|
+
*/
|
|
40
|
+
export interface Attribute {
|
|
41
|
+
/**
|
|
42
|
+
* Attribute name
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof Attribute
|
|
45
|
+
*/
|
|
46
|
+
'name': string;
|
|
47
|
+
/**
|
|
48
|
+
* Attribute value
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof Attribute
|
|
51
|
+
*/
|
|
52
|
+
'value': string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {AttributeThumbnail}
|
|
56
|
+
* @memberof Attribute
|
|
57
|
+
*/
|
|
58
|
+
'thumbnail'?: AttributeThumbnail;
|
|
59
|
+
/**
|
|
60
|
+
* Attribute tags
|
|
61
|
+
* @type {Array<string>}
|
|
62
|
+
* @memberof Attribute
|
|
63
|
+
*/
|
|
64
|
+
'tags'?: Array<string>;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Attribute thumbnail, intended for interfaces like storefront colour selector.
|
|
68
|
+
* @export
|
|
69
|
+
* @interface AttributeThumbnail
|
|
70
|
+
*/
|
|
71
|
+
export interface AttributeThumbnail {
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof AttributeThumbnail
|
|
76
|
+
*/
|
|
77
|
+
'type'?: AttributeThumbnailTypeEnum;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof AttributeThumbnail
|
|
82
|
+
*/
|
|
83
|
+
'value'?: string;
|
|
84
|
+
}
|
|
85
|
+
export declare const AttributeThumbnailTypeEnum: {
|
|
86
|
+
readonly Text: "text";
|
|
87
|
+
readonly Color: "color";
|
|
88
|
+
readonly Image: "image";
|
|
89
|
+
};
|
|
90
|
+
export type AttributeThumbnailTypeEnum = typeof AttributeThumbnailTypeEnum[keyof typeof AttributeThumbnailTypeEnum];
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @export
|
|
94
|
+
* @interface CreateProductRequest
|
|
95
|
+
*/
|
|
96
|
+
export interface CreateProductRequest {
|
|
97
|
+
/**
|
|
98
|
+
* 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.
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof CreateProductRequest
|
|
101
|
+
*/
|
|
102
|
+
'gfnProductRef': string;
|
|
103
|
+
/**
|
|
104
|
+
* Product title
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof CreateProductRequest
|
|
107
|
+
*/
|
|
108
|
+
'title'?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Product description
|
|
111
|
+
* @type {string}
|
|
112
|
+
* @memberof CreateProductRequest
|
|
113
|
+
*/
|
|
114
|
+
'description'?: string;
|
|
115
|
+
/**
|
|
116
|
+
* Whether the product is enabled upon creation.
|
|
117
|
+
* @type {boolean}
|
|
118
|
+
* @memberof CreateProductRequest
|
|
119
|
+
*/
|
|
120
|
+
'enabled'?: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* A custom URL slug for the product. This must be unique for each product on the project.
|
|
123
|
+
* @type {string}
|
|
124
|
+
* @memberof CreateProductRequest
|
|
125
|
+
*/
|
|
126
|
+
'slug'?: string;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* @type {CreateProductRequestSeoMetadata}
|
|
130
|
+
* @memberof CreateProductRequest
|
|
131
|
+
*/
|
|
132
|
+
'seoMetadata'?: CreateProductRequestSeoMetadata;
|
|
133
|
+
/**
|
|
134
|
+
* Additional product tags used for searching and filtering.
|
|
135
|
+
* @type {Array<string>}
|
|
136
|
+
* @memberof CreateProductRequest
|
|
137
|
+
*/
|
|
138
|
+
'tags'?: Array<string>;
|
|
139
|
+
/**
|
|
140
|
+
* Variants
|
|
141
|
+
* @type {Array<CreateProductVariant>}
|
|
142
|
+
* @memberof CreateProductRequest
|
|
143
|
+
*/
|
|
144
|
+
'variants': Array<CreateProductVariant>;
|
|
145
|
+
/**
|
|
146
|
+
* Images to attach to the product. For example, photos of models using/wearing the product.
|
|
147
|
+
* @type {Array<CreateProductRequestImagesInner>}
|
|
148
|
+
* @memberof CreateProductRequest
|
|
149
|
+
*/
|
|
150
|
+
'images'?: Array<CreateProductRequestImagesInner>;
|
|
151
|
+
/**
|
|
152
|
+
* Additional files to attach to the product. For example, original design files e.g. PSD, AI, etc.
|
|
153
|
+
* @type {Array<CreateProductRequestImagesInner>}
|
|
154
|
+
* @memberof CreateProductRequest
|
|
155
|
+
*/
|
|
156
|
+
'additionalFiles'?: Array<CreateProductRequestImagesInner>;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
*
|
|
160
|
+
* @export
|
|
161
|
+
* @interface CreateProductRequestImagesInner
|
|
162
|
+
*/
|
|
163
|
+
export interface CreateProductRequestImagesInner {
|
|
164
|
+
/**
|
|
165
|
+
* Publicly available file URL.
|
|
166
|
+
* @type {string}
|
|
167
|
+
* @memberof CreateProductRequestImagesInner
|
|
168
|
+
*/
|
|
169
|
+
'src'?: string;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
*
|
|
173
|
+
* @export
|
|
174
|
+
* @interface CreateProductRequestSeoMetadata
|
|
175
|
+
*/
|
|
176
|
+
export interface CreateProductRequestSeoMetadata {
|
|
177
|
+
/**
|
|
178
|
+
* Meta title for the product. This appears in search engine results and social shares. If not provided, the product title will be used.
|
|
179
|
+
* @type {string}
|
|
180
|
+
* @memberof CreateProductRequestSeoMetadata
|
|
181
|
+
*/
|
|
182
|
+
'title'?: string;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
*
|
|
186
|
+
* @export
|
|
187
|
+
* @interface CreateProductVariant
|
|
188
|
+
*/
|
|
189
|
+
export interface CreateProductVariant {
|
|
190
|
+
/**
|
|
191
|
+
* Attributes associated to a variant such as Colour and Size.
|
|
192
|
+
* @type {Array<CreateProductVariantAttributesInner>}
|
|
193
|
+
* @memberof CreateProductVariant
|
|
194
|
+
*/
|
|
195
|
+
'attributes': Array<CreateProductVariantAttributesInner>;
|
|
196
|
+
/**
|
|
197
|
+
*
|
|
198
|
+
* @type {CreateProductVariantRetailPrice}
|
|
199
|
+
* @memberof CreateProductVariant
|
|
200
|
+
*/
|
|
201
|
+
'retailPrice': CreateProductVariantRetailPrice;
|
|
202
|
+
/**
|
|
203
|
+
* A custom stock keeping unit for the variant.
|
|
204
|
+
* @type {string}
|
|
205
|
+
* @memberof CreateProductVariant
|
|
206
|
+
*/
|
|
207
|
+
'sku'?: string;
|
|
208
|
+
/**
|
|
209
|
+
* Design applications. If not provided, the product will be blank.
|
|
210
|
+
* @type {Array<CreateProductVariantApplicationsInner>}
|
|
211
|
+
* @memberof CreateProductVariant
|
|
212
|
+
*/
|
|
213
|
+
'applications'?: Array<CreateProductVariantApplicationsInner>;
|
|
214
|
+
/**
|
|
215
|
+
* 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.
|
|
216
|
+
* @type {Array<CreateProductRequestImagesInner>}
|
|
217
|
+
* @memberof CreateProductVariant
|
|
218
|
+
*/
|
|
219
|
+
'images'?: Array<CreateProductRequestImagesInner>;
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
*
|
|
223
|
+
* @export
|
|
224
|
+
* @interface CreateProductVariantApplicationsInner
|
|
225
|
+
*/
|
|
226
|
+
export interface CreateProductVariantApplicationsInner {
|
|
227
|
+
/**
|
|
228
|
+
* Technology to use for the application.
|
|
229
|
+
* @type {string}
|
|
230
|
+
* @memberof CreateProductVariantApplicationsInner
|
|
231
|
+
*/
|
|
232
|
+
'technology': string;
|
|
233
|
+
/**
|
|
234
|
+
* Placement of the application. Available placements depend on the chosen product and technology.
|
|
235
|
+
* @type {string}
|
|
236
|
+
* @memberof CreateProductVariantApplicationsInner
|
|
237
|
+
*/
|
|
238
|
+
'placement': CreateProductVariantApplicationsInnerPlacementEnum;
|
|
239
|
+
/**
|
|
240
|
+
* 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.
|
|
241
|
+
* @type {string}
|
|
242
|
+
* @memberof CreateProductVariantApplicationsInner
|
|
243
|
+
*/
|
|
244
|
+
'src': string;
|
|
245
|
+
}
|
|
246
|
+
export declare const CreateProductVariantApplicationsInnerPlacementEnum: {
|
|
247
|
+
readonly Front: "front";
|
|
248
|
+
readonly Back: "back";
|
|
249
|
+
readonly Left: "left";
|
|
250
|
+
readonly Right: "right";
|
|
251
|
+
readonly Neck: "neck";
|
|
252
|
+
};
|
|
253
|
+
export type CreateProductVariantApplicationsInnerPlacementEnum = typeof CreateProductVariantApplicationsInnerPlacementEnum[keyof typeof CreateProductVariantApplicationsInnerPlacementEnum];
|
|
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
|
+
/**
|
|
700
|
+
*
|
|
701
|
+
* @export
|
|
702
|
+
* @interface VariantProduct
|
|
703
|
+
*/
|
|
704
|
+
export interface VariantProduct {
|
|
705
|
+
/**
|
|
706
|
+
* Unique object identifier
|
|
707
|
+
* @type {string}
|
|
708
|
+
* @memberof VariantProduct
|
|
709
|
+
*/
|
|
710
|
+
'id'?: string;
|
|
711
|
+
/**
|
|
712
|
+
* A reference to the resource location
|
|
713
|
+
* @type {string}
|
|
714
|
+
* @memberof VariantProduct
|
|
715
|
+
*/
|
|
716
|
+
'ref'?: string;
|
|
717
|
+
}
|
|
718
|
+
/**
|
|
719
|
+
*
|
|
720
|
+
* @export
|
|
721
|
+
* @interface VariantsResponse
|
|
722
|
+
*/
|
|
723
|
+
export interface VariantsResponse {
|
|
724
|
+
/**
|
|
725
|
+
*
|
|
726
|
+
* @type {Array<Variant>}
|
|
727
|
+
* @memberof VariantsResponse
|
|
728
|
+
*/
|
|
729
|
+
'variants'?: Array<Variant>;
|
|
730
|
+
/**
|
|
731
|
+
*
|
|
732
|
+
* @type {number}
|
|
733
|
+
* @memberof VariantsResponse
|
|
734
|
+
*/
|
|
735
|
+
'nextPageToken'?: number;
|
|
736
|
+
}
|
|
737
|
+
/**
|
|
738
|
+
* ProductsApi - axios parameter creator
|
|
739
|
+
* @export
|
|
740
|
+
*/
|
|
741
|
+
export declare const ProductsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
742
|
+
/**
|
|
743
|
+
* 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.
|
|
744
|
+
* @summary Create product
|
|
745
|
+
* @param {string} project What project it is
|
|
746
|
+
* @param {CreateProductRequest} [createProductRequest]
|
|
747
|
+
* @param {*} [options] Override http request option.
|
|
748
|
+
* @throws {RequiredError}
|
|
749
|
+
*/
|
|
750
|
+
createProduct: (project: string, createProductRequest?: CreateProductRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
751
|
+
/**
|
|
752
|
+
* Deletes a catalog product
|
|
753
|
+
* @summary Delete catalog product
|
|
754
|
+
* @param {string} project What project it is
|
|
755
|
+
* @param {string} productId Product\'s unique identifier
|
|
756
|
+
* @param {*} [options] Override http request option.
|
|
757
|
+
* @throws {RequiredError}
|
|
758
|
+
*/
|
|
759
|
+
deleteProduct: (project: string, productId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
760
|
+
/**
|
|
761
|
+
* Gets a product by a given ID.
|
|
762
|
+
* @summary Get product
|
|
763
|
+
* @param {string} project What project it is
|
|
764
|
+
* @param {string} productId Product\'s unique identifier
|
|
765
|
+
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
766
|
+
* @param {*} [options] Override http request option.
|
|
767
|
+
* @throws {RequiredError}
|
|
768
|
+
*/
|
|
769
|
+
getProduct: (project: string, productId: string, fields?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
770
|
+
/**
|
|
771
|
+
* Lists all enabled store listing products attached to the given project.
|
|
772
|
+
* @summary List products
|
|
773
|
+
* @param {string} project What project it is
|
|
774
|
+
* @param {number} [pageToken] Page reference token
|
|
775
|
+
* @param {string} [search] Search term to filter based on product tags.
|
|
776
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
777
|
+
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
778
|
+
* @param {*} [options] Override http request option.
|
|
779
|
+
* @throws {RequiredError}
|
|
780
|
+
*/
|
|
781
|
+
getProducts: (project: string, pageToken?: number, search?: string, pageSize?: number, fields?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
782
|
+
/**
|
|
783
|
+
* Initiates a product import from a CSV file. The result will be available as a notification within the dashboard.
|
|
784
|
+
* @summary Import products
|
|
785
|
+
* @param {string} project What project it is
|
|
786
|
+
* @param {string} [body] A data URL of a CSV file containing data for one or more products.
|
|
787
|
+
* @param {*} [options] Override http request option.
|
|
788
|
+
* @throws {RequiredError}
|
|
789
|
+
*/
|
|
790
|
+
importProducts: (project: string, body?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
791
|
+
/**
|
|
792
|
+
* Updates a product by a given ID.
|
|
793
|
+
* @summary Update product
|
|
794
|
+
* @param {string} project What project it is
|
|
795
|
+
* @param {string} productId Product\'s unique identifier
|
|
796
|
+
* @param {UpdateProductRequest} [updateProductRequest]
|
|
797
|
+
* @param {*} [options] Override http request option.
|
|
798
|
+
* @throws {RequiredError}
|
|
799
|
+
*/
|
|
800
|
+
updateProduct: (project: string, productId: string, updateProductRequest?: UpdateProductRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
801
|
+
};
|
|
802
|
+
/**
|
|
803
|
+
* ProductsApi - functional programming interface
|
|
804
|
+
* @export
|
|
805
|
+
*/
|
|
806
|
+
export declare const ProductsApiFp: (configuration?: Configuration) => {
|
|
807
|
+
/**
|
|
808
|
+
* 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.
|
|
809
|
+
* @summary Create product
|
|
810
|
+
* @param {string} project What project it is
|
|
811
|
+
* @param {CreateProductRequest} [createProductRequest]
|
|
812
|
+
* @param {*} [options] Override http request option.
|
|
813
|
+
* @throws {RequiredError}
|
|
814
|
+
*/
|
|
815
|
+
createProduct(project: string, createProductRequest?: CreateProductRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Product>>;
|
|
816
|
+
/**
|
|
817
|
+
* Deletes a catalog product
|
|
818
|
+
* @summary Delete catalog product
|
|
819
|
+
* @param {string} project What project it is
|
|
820
|
+
* @param {string} productId Product\'s unique identifier
|
|
821
|
+
* @param {*} [options] Override http request option.
|
|
822
|
+
* @throws {RequiredError}
|
|
823
|
+
*/
|
|
824
|
+
deleteProduct(project: string, productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
825
|
+
/**
|
|
826
|
+
* Gets a product by a given ID.
|
|
827
|
+
* @summary Get product
|
|
828
|
+
* @param {string} project What project it is
|
|
829
|
+
* @param {string} productId Product\'s unique identifier
|
|
830
|
+
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
831
|
+
* @param {*} [options] Override http request option.
|
|
832
|
+
* @throws {RequiredError}
|
|
833
|
+
*/
|
|
834
|
+
getProduct(project: string, productId: string, fields?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Product>>;
|
|
835
|
+
/**
|
|
836
|
+
* Lists all enabled store listing products attached to the given project.
|
|
837
|
+
* @summary List products
|
|
838
|
+
* @param {string} project What project it is
|
|
839
|
+
* @param {number} [pageToken] Page reference token
|
|
840
|
+
* @param {string} [search] Search term to filter based on product tags.
|
|
841
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
842
|
+
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
843
|
+
* @param {*} [options] Override http request option.
|
|
844
|
+
* @throws {RequiredError}
|
|
845
|
+
*/
|
|
846
|
+
getProducts(project: string, pageToken?: number, search?: string, pageSize?: number, fields?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>>;
|
|
847
|
+
/**
|
|
848
|
+
* Initiates a product import from a CSV file. The result will be available as a notification within the dashboard.
|
|
849
|
+
* @summary Import products
|
|
850
|
+
* @param {string} project What project it is
|
|
851
|
+
* @param {string} [body] A data URL of a CSV file containing data for one or more products.
|
|
852
|
+
* @param {*} [options] Override http request option.
|
|
853
|
+
* @throws {RequiredError}
|
|
854
|
+
*/
|
|
855
|
+
importProducts(project: string, body?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImportProducts200Response>>;
|
|
856
|
+
/**
|
|
857
|
+
* Updates a product by a given ID.
|
|
858
|
+
* @summary Update product
|
|
859
|
+
* @param {string} project What project it is
|
|
860
|
+
* @param {string} productId Product\'s unique identifier
|
|
861
|
+
* @param {UpdateProductRequest} [updateProductRequest]
|
|
862
|
+
* @param {*} [options] Override http request option.
|
|
863
|
+
* @throws {RequiredError}
|
|
864
|
+
*/
|
|
865
|
+
updateProduct(project: string, productId: string, updateProductRequest?: UpdateProductRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Product>>;
|
|
866
|
+
};
|
|
867
|
+
/**
|
|
868
|
+
* ProductsApi - factory interface
|
|
869
|
+
* @export
|
|
870
|
+
*/
|
|
871
|
+
export declare const ProductsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
872
|
+
/**
|
|
873
|
+
* 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.
|
|
874
|
+
* @summary Create product
|
|
875
|
+
* @param {string} project What project it is
|
|
876
|
+
* @param {CreateProductRequest} [createProductRequest]
|
|
877
|
+
* @param {*} [options] Override http request option.
|
|
878
|
+
* @throws {RequiredError}
|
|
879
|
+
*/
|
|
880
|
+
createProduct(project: string, createProductRequest?: CreateProductRequest, options?: any): AxiosPromise<Product>;
|
|
881
|
+
/**
|
|
882
|
+
* Deletes a catalog product
|
|
883
|
+
* @summary Delete catalog product
|
|
884
|
+
* @param {string} project What project it is
|
|
885
|
+
* @param {string} productId Product\'s unique identifier
|
|
886
|
+
* @param {*} [options] Override http request option.
|
|
887
|
+
* @throws {RequiredError}
|
|
888
|
+
*/
|
|
889
|
+
deleteProduct(project: string, productId: string, options?: any): AxiosPromise<void>;
|
|
890
|
+
/**
|
|
891
|
+
* Gets a product by a given ID.
|
|
892
|
+
* @summary Get product
|
|
893
|
+
* @param {string} project What project it is
|
|
894
|
+
* @param {string} productId Product\'s unique identifier
|
|
895
|
+
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
896
|
+
* @param {*} [options] Override http request option.
|
|
897
|
+
* @throws {RequiredError}
|
|
898
|
+
*/
|
|
899
|
+
getProduct(project: string, productId: string, fields?: string, options?: any): AxiosPromise<Product>;
|
|
900
|
+
/**
|
|
901
|
+
* Lists all enabled store listing products attached to the given project.
|
|
902
|
+
* @summary List products
|
|
903
|
+
* @param {string} project What project it is
|
|
904
|
+
* @param {number} [pageToken] Page reference token
|
|
905
|
+
* @param {string} [search] Search term to filter based on product tags.
|
|
906
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
907
|
+
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
908
|
+
* @param {*} [options] Override http request option.
|
|
909
|
+
* @throws {RequiredError}
|
|
910
|
+
*/
|
|
911
|
+
getProducts(project: string, pageToken?: number, search?: string, pageSize?: number, fields?: string, options?: any): AxiosPromise<ProductsResponse>;
|
|
912
|
+
/**
|
|
913
|
+
* Initiates a product import from a CSV file. The result will be available as a notification within the dashboard.
|
|
914
|
+
* @summary Import products
|
|
915
|
+
* @param {string} project What project it is
|
|
916
|
+
* @param {string} [body] A data URL of a CSV file containing data for one or more products.
|
|
917
|
+
* @param {*} [options] Override http request option.
|
|
918
|
+
* @throws {RequiredError}
|
|
919
|
+
*/
|
|
920
|
+
importProducts(project: string, body?: string, options?: any): AxiosPromise<ImportProducts200Response>;
|
|
921
|
+
/**
|
|
922
|
+
* Updates a product by a given ID.
|
|
923
|
+
* @summary Update product
|
|
924
|
+
* @param {string} project What project it is
|
|
925
|
+
* @param {string} productId Product\'s unique identifier
|
|
926
|
+
* @param {UpdateProductRequest} [updateProductRequest]
|
|
927
|
+
* @param {*} [options] Override http request option.
|
|
928
|
+
* @throws {RequiredError}
|
|
929
|
+
*/
|
|
930
|
+
updateProduct(project: string, productId: string, updateProductRequest?: UpdateProductRequest, options?: any): AxiosPromise<Product>;
|
|
931
|
+
};
|
|
932
|
+
/**
|
|
933
|
+
* ProductsApi - object-oriented interface
|
|
934
|
+
* @export
|
|
935
|
+
* @class ProductsApi
|
|
936
|
+
* @extends {BaseAPI}
|
|
937
|
+
*/
|
|
938
|
+
export declare class ProductsApi extends BaseAPI {
|
|
939
|
+
/**
|
|
940
|
+
* 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.
|
|
941
|
+
* @summary Create product
|
|
942
|
+
* @param {string} project What project it is
|
|
943
|
+
* @param {CreateProductRequest} [createProductRequest]
|
|
944
|
+
* @param {*} [options] Override http request option.
|
|
945
|
+
* @throws {RequiredError}
|
|
946
|
+
* @memberof ProductsApi
|
|
947
|
+
*/
|
|
948
|
+
createProduct(project: string, createProductRequest?: CreateProductRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Product, any>>;
|
|
949
|
+
/**
|
|
950
|
+
* Deletes a catalog product
|
|
951
|
+
* @summary Delete catalog product
|
|
952
|
+
* @param {string} project What project it is
|
|
953
|
+
* @param {string} productId Product\'s unique identifier
|
|
954
|
+
* @param {*} [options] Override http request option.
|
|
955
|
+
* @throws {RequiredError}
|
|
956
|
+
* @memberof ProductsApi
|
|
957
|
+
*/
|
|
958
|
+
deleteProduct(project: string, productId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
959
|
+
/**
|
|
960
|
+
* Gets a product by a given ID.
|
|
961
|
+
* @summary Get product
|
|
962
|
+
* @param {string} project What project it is
|
|
963
|
+
* @param {string} productId Product\'s unique identifier
|
|
964
|
+
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
965
|
+
* @param {*} [options] Override http request option.
|
|
966
|
+
* @throws {RequiredError}
|
|
967
|
+
* @memberof ProductsApi
|
|
968
|
+
*/
|
|
969
|
+
getProduct(project: string, productId: string, fields?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Product, any>>;
|
|
970
|
+
/**
|
|
971
|
+
* Lists all enabled store listing products attached to the given project.
|
|
972
|
+
* @summary List products
|
|
973
|
+
* @param {string} project What project it is
|
|
974
|
+
* @param {number} [pageToken] Page reference token
|
|
975
|
+
* @param {string} [search] Search term to filter based on product tags.
|
|
976
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
977
|
+
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
978
|
+
* @param {*} [options] Override http request option.
|
|
979
|
+
* @throws {RequiredError}
|
|
980
|
+
* @memberof ProductsApi
|
|
981
|
+
*/
|
|
982
|
+
getProducts(project: string, pageToken?: number, search?: string, pageSize?: number, fields?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductsResponse, any>>;
|
|
983
|
+
/**
|
|
984
|
+
* Initiates a product import from a CSV file. The result will be available as a notification within the dashboard.
|
|
985
|
+
* @summary Import products
|
|
986
|
+
* @param {string} project What project it is
|
|
987
|
+
* @param {string} [body] A data URL of a CSV file containing data for one or more products.
|
|
988
|
+
* @param {*} [options] Override http request option.
|
|
989
|
+
* @throws {RequiredError}
|
|
990
|
+
* @memberof ProductsApi
|
|
991
|
+
*/
|
|
992
|
+
importProducts(project: string, body?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ImportProducts200Response, any>>;
|
|
993
|
+
/**
|
|
994
|
+
* Updates a product by a given ID.
|
|
995
|
+
* @summary Update product
|
|
996
|
+
* @param {string} project What project it is
|
|
997
|
+
* @param {string} productId Product\'s unique identifier
|
|
998
|
+
* @param {UpdateProductRequest} [updateProductRequest]
|
|
999
|
+
* @param {*} [options] Override http request option.
|
|
1000
|
+
* @throws {RequiredError}
|
|
1001
|
+
* @memberof ProductsApi
|
|
1002
|
+
*/
|
|
1003
|
+
updateProduct(project: string, productId: string, updateProductRequest?: UpdateProductRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Product, any>>;
|
|
1004
|
+
}
|
|
1005
|
+
/**
|
|
1006
|
+
* VariantsApi - axios parameter creator
|
|
1007
|
+
* @export
|
|
1008
|
+
*/
|
|
1009
|
+
export declare const VariantsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
1010
|
+
/**
|
|
1011
|
+
* Gets a variant by a given ID.
|
|
1012
|
+
* @summary Get variant
|
|
1013
|
+
* @param {string} project What project it is
|
|
1014
|
+
* @param {string} variantId Variants unique identifier
|
|
1015
|
+
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
1016
|
+
* @param {*} [options] Override http request option.
|
|
1017
|
+
* @throws {RequiredError}
|
|
1018
|
+
*/
|
|
1019
|
+
getVariant: (project: string, variantId: string, fields?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1020
|
+
/**
|
|
1021
|
+
* Lists all variants that belong to enabled products attached to the given project.
|
|
1022
|
+
* @summary List variants
|
|
1023
|
+
* @param {string} project What project it is
|
|
1024
|
+
* @param {string} [search] Search term to filter based on product tags.
|
|
1025
|
+
* @param {number} [pageToken] Page reference token
|
|
1026
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1027
|
+
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
1028
|
+
* @param {*} [options] Override http request option.
|
|
1029
|
+
* @throws {RequiredError}
|
|
1030
|
+
*/
|
|
1031
|
+
listVariants: (project: string, search?: string, pageToken?: number, pageSize?: number, fields?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1032
|
+
};
|
|
1033
|
+
/**
|
|
1034
|
+
* VariantsApi - functional programming interface
|
|
1035
|
+
* @export
|
|
1036
|
+
*/
|
|
1037
|
+
export declare const VariantsApiFp: (configuration?: Configuration) => {
|
|
1038
|
+
/**
|
|
1039
|
+
* Gets a variant by a given ID.
|
|
1040
|
+
* @summary Get variant
|
|
1041
|
+
* @param {string} project What project it is
|
|
1042
|
+
* @param {string} variantId Variants unique identifier
|
|
1043
|
+
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
1044
|
+
* @param {*} [options] Override http request option.
|
|
1045
|
+
* @throws {RequiredError}
|
|
1046
|
+
*/
|
|
1047
|
+
getVariant(project: string, variantId: string, fields?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Variant>>;
|
|
1048
|
+
/**
|
|
1049
|
+
* Lists all variants that belong to enabled products attached to the given project.
|
|
1050
|
+
* @summary List variants
|
|
1051
|
+
* @param {string} project What project it is
|
|
1052
|
+
* @param {string} [search] Search term to filter based on product tags.
|
|
1053
|
+
* @param {number} [pageToken] Page reference token
|
|
1054
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1055
|
+
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
1056
|
+
* @param {*} [options] Override http request option.
|
|
1057
|
+
* @throws {RequiredError}
|
|
1058
|
+
*/
|
|
1059
|
+
listVariants(project: string, search?: string, pageToken?: number, pageSize?: number, fields?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VariantsResponse>>;
|
|
1060
|
+
};
|
|
1061
|
+
/**
|
|
1062
|
+
* VariantsApi - factory interface
|
|
1063
|
+
* @export
|
|
1064
|
+
*/
|
|
1065
|
+
export declare const VariantsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
1066
|
+
/**
|
|
1067
|
+
* Gets a variant by a given ID.
|
|
1068
|
+
* @summary Get variant
|
|
1069
|
+
* @param {string} project What project it is
|
|
1070
|
+
* @param {string} variantId Variants unique identifier
|
|
1071
|
+
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
1072
|
+
* @param {*} [options] Override http request option.
|
|
1073
|
+
* @throws {RequiredError}
|
|
1074
|
+
*/
|
|
1075
|
+
getVariant(project: string, variantId: string, fields?: string, options?: any): AxiosPromise<Variant>;
|
|
1076
|
+
/**
|
|
1077
|
+
* Lists all variants that belong to enabled products attached to the given project.
|
|
1078
|
+
* @summary List variants
|
|
1079
|
+
* @param {string} project What project it is
|
|
1080
|
+
* @param {string} [search] Search term to filter based on product tags.
|
|
1081
|
+
* @param {number} [pageToken] Page reference token
|
|
1082
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1083
|
+
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
1084
|
+
* @param {*} [options] Override http request option.
|
|
1085
|
+
* @throws {RequiredError}
|
|
1086
|
+
*/
|
|
1087
|
+
listVariants(project: string, search?: string, pageToken?: number, pageSize?: number, fields?: string, options?: any): AxiosPromise<VariantsResponse>;
|
|
1088
|
+
};
|
|
1089
|
+
/**
|
|
1090
|
+
* VariantsApi - object-oriented interface
|
|
1091
|
+
* @export
|
|
1092
|
+
* @class VariantsApi
|
|
1093
|
+
* @extends {BaseAPI}
|
|
1094
|
+
*/
|
|
1095
|
+
export declare class VariantsApi extends BaseAPI {
|
|
1096
|
+
/**
|
|
1097
|
+
* Gets a variant by a given ID.
|
|
1098
|
+
* @summary Get variant
|
|
1099
|
+
* @param {string} project What project it is
|
|
1100
|
+
* @param {string} variantId Variants unique identifier
|
|
1101
|
+
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
1102
|
+
* @param {*} [options] Override http request option.
|
|
1103
|
+
* @throws {RequiredError}
|
|
1104
|
+
* @memberof VariantsApi
|
|
1105
|
+
*/
|
|
1106
|
+
getVariant(project: string, variantId: string, fields?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Variant, any>>;
|
|
1107
|
+
/**
|
|
1108
|
+
* Lists all variants that belong to enabled products attached to the given project.
|
|
1109
|
+
* @summary List variants
|
|
1110
|
+
* @param {string} project What project it is
|
|
1111
|
+
* @param {string} [search] Search term to filter based on product tags.
|
|
1112
|
+
* @param {number} [pageToken] Page reference token
|
|
1113
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1114
|
+
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
1115
|
+
* @param {*} [options] Override http request option.
|
|
1116
|
+
* @throws {RequiredError}
|
|
1117
|
+
* @memberof VariantsApi
|
|
1118
|
+
*/
|
|
1119
|
+
listVariants(project: string, search?: string, pageToken?: number, pageSize?: number, fields?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VariantsResponse, any>>;
|
|
1120
|
+
}
|