@teemill/product-catalog 1.15.0 → 1.17.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 +1232 -179
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +824 -89
- package/dist/api.js +518 -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 +824 -89
- package/dist/esm/api.js +513 -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/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* 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.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.17.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,13 +22,24 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.VariantsApi = exports.VariantsApiFactory = exports.VariantsApiFp = exports.VariantsApiAxiosParamCreator = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.AttributeThumbnailTypeEnum = exports.ApplicationPlacementEnum = void 0;
|
|
25
|
+
exports.VariantsApi = exports.VariantsApiFactory = exports.VariantsApiFp = exports.VariantsApiAxiosParamCreator = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.ApplicationSetsApi = exports.ApplicationSetsApiFactory = exports.ApplicationSetsApiFp = exports.ApplicationSetsApiAxiosParamCreator = exports.PriceCurrencyCodeEnum = exports.CreateProductVariantRetailPriceCurrencyCodeEnum = exports.CreateProductVariantAttributesInnerNameEnum = exports.AttributeThumbnailTypeEnum = exports.ApplicationPlacementEnum = exports.ApplicationTechnologyEnum = void 0;
|
|
26
26
|
const axios_1 = require("axios");
|
|
27
27
|
// Some imports not used depending on template conditions
|
|
28
28
|
// @ts-ignore
|
|
29
29
|
const common_1 = require("./common");
|
|
30
30
|
// @ts-ignore
|
|
31
31
|
const base_1 = require("./base");
|
|
32
|
+
exports.ApplicationTechnologyEnum = {
|
|
33
|
+
Dtg: 'dtg',
|
|
34
|
+
Embroidery: 'embroidery',
|
|
35
|
+
Dtf: 'dtf',
|
|
36
|
+
Pretreat: 'pretreat',
|
|
37
|
+
MugSublimation: 'mug_sublimation',
|
|
38
|
+
ManualPrint: 'manual_print',
|
|
39
|
+
AdditionalApplication: 'additional_application',
|
|
40
|
+
NotebookSublimation: 'notebook_sublimation',
|
|
41
|
+
DuplexPrint: 'duplex_print'
|
|
42
|
+
};
|
|
32
43
|
exports.ApplicationPlacementEnum = {
|
|
33
44
|
Front: 'front',
|
|
34
45
|
Back: 'back',
|
|
@@ -41,6 +52,457 @@ exports.AttributeThumbnailTypeEnum = {
|
|
|
41
52
|
Color: 'color',
|
|
42
53
|
Image: 'image'
|
|
43
54
|
};
|
|
55
|
+
exports.CreateProductVariantAttributesInnerNameEnum = {
|
|
56
|
+
Size: 'Size',
|
|
57
|
+
Colour: 'Colour'
|
|
58
|
+
};
|
|
59
|
+
exports.CreateProductVariantRetailPriceCurrencyCodeEnum = {
|
|
60
|
+
Gbp: 'GBP'
|
|
61
|
+
};
|
|
62
|
+
exports.PriceCurrencyCodeEnum = {
|
|
63
|
+
Gbp: 'GBP'
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* ApplicationSetsApi - axios parameter creator
|
|
67
|
+
* @export
|
|
68
|
+
*/
|
|
69
|
+
const ApplicationSetsApiAxiosParamCreator = function (configuration) {
|
|
70
|
+
return {
|
|
71
|
+
/**
|
|
72
|
+
* Creates a new application set.
|
|
73
|
+
* @summary Create application set
|
|
74
|
+
* @param {string} project What project it is
|
|
75
|
+
* @param {CreateApplicationSetRequest} [createApplicationSetRequest] Create a new application set.
|
|
76
|
+
* @param {*} [options] Override http request option.
|
|
77
|
+
* @throws {RequiredError}
|
|
78
|
+
*/
|
|
79
|
+
createApplicationSet: (project_1, createApplicationSetRequest_1, ...args_1) => __awaiter(this, [project_1, createApplicationSetRequest_1, ...args_1], void 0, function* (project, createApplicationSetRequest, options = {}) {
|
|
80
|
+
// verify required parameter 'project' is not null or undefined
|
|
81
|
+
(0, common_1.assertParamExists)('createApplicationSet', 'project', project);
|
|
82
|
+
const localVarPath = `/v1/catalog/applications/sets`;
|
|
83
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
84
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
85
|
+
let baseOptions;
|
|
86
|
+
if (configuration) {
|
|
87
|
+
baseOptions = configuration.baseOptions;
|
|
88
|
+
}
|
|
89
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
90
|
+
const localVarHeaderParameter = {};
|
|
91
|
+
const localVarQueryParameter = {};
|
|
92
|
+
// authentication session-oauth required
|
|
93
|
+
// oauth required
|
|
94
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
95
|
+
// authentication api-key required
|
|
96
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
97
|
+
if (project !== undefined) {
|
|
98
|
+
localVarQueryParameter['project'] = project;
|
|
99
|
+
}
|
|
100
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
101
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
102
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
103
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
104
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createApplicationSetRequest, localVarRequestOptions, configuration);
|
|
105
|
+
return {
|
|
106
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
107
|
+
options: localVarRequestOptions,
|
|
108
|
+
};
|
|
109
|
+
}),
|
|
110
|
+
/**
|
|
111
|
+
* Deletes an existing application set.
|
|
112
|
+
* @summary Delete an application set
|
|
113
|
+
* @param {string} project What project it is
|
|
114
|
+
* @param {string} applicationSetId Application set\'s unique identifier
|
|
115
|
+
* @param {*} [options] Override http request option.
|
|
116
|
+
* @throws {RequiredError}
|
|
117
|
+
*/
|
|
118
|
+
deleteApplicationSet: (project_1, applicationSetId_1, ...args_1) => __awaiter(this, [project_1, applicationSetId_1, ...args_1], void 0, function* (project, applicationSetId, options = {}) {
|
|
119
|
+
// verify required parameter 'project' is not null or undefined
|
|
120
|
+
(0, common_1.assertParamExists)('deleteApplicationSet', 'project', project);
|
|
121
|
+
// verify required parameter 'applicationSetId' is not null or undefined
|
|
122
|
+
(0, common_1.assertParamExists)('deleteApplicationSet', 'applicationSetId', applicationSetId);
|
|
123
|
+
const localVarPath = `/v1/catalog/applications/sets/{applicationSetId}`
|
|
124
|
+
.replace(`{${"applicationSetId"}}`, encodeURIComponent(String(applicationSetId)));
|
|
125
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
126
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
127
|
+
let baseOptions;
|
|
128
|
+
if (configuration) {
|
|
129
|
+
baseOptions = configuration.baseOptions;
|
|
130
|
+
}
|
|
131
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
132
|
+
const localVarHeaderParameter = {};
|
|
133
|
+
const localVarQueryParameter = {};
|
|
134
|
+
// authentication session-oauth required
|
|
135
|
+
// oauth required
|
|
136
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
137
|
+
// authentication api-key required
|
|
138
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
139
|
+
if (project !== undefined) {
|
|
140
|
+
localVarQueryParameter['project'] = project;
|
|
141
|
+
}
|
|
142
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
143
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
144
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
145
|
+
return {
|
|
146
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
147
|
+
options: localVarRequestOptions,
|
|
148
|
+
};
|
|
149
|
+
}),
|
|
150
|
+
/**
|
|
151
|
+
* Get an application by the given id.
|
|
152
|
+
* @summary Get an application set
|
|
153
|
+
* @param {string} project What project it is
|
|
154
|
+
* @param {string} applicationSetId Application set\'s unique identifier
|
|
155
|
+
* @param {*} [options] Override http request option.
|
|
156
|
+
* @throws {RequiredError}
|
|
157
|
+
*/
|
|
158
|
+
getApplicationSet: (project_1, applicationSetId_1, ...args_1) => __awaiter(this, [project_1, applicationSetId_1, ...args_1], void 0, function* (project, applicationSetId, options = {}) {
|
|
159
|
+
// verify required parameter 'project' is not null or undefined
|
|
160
|
+
(0, common_1.assertParamExists)('getApplicationSet', 'project', project);
|
|
161
|
+
// verify required parameter 'applicationSetId' is not null or undefined
|
|
162
|
+
(0, common_1.assertParamExists)('getApplicationSet', 'applicationSetId', applicationSetId);
|
|
163
|
+
const localVarPath = `/v1/catalog/applications/sets/{applicationSetId}`
|
|
164
|
+
.replace(`{${"applicationSetId"}}`, encodeURIComponent(String(applicationSetId)));
|
|
165
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
166
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
167
|
+
let baseOptions;
|
|
168
|
+
if (configuration) {
|
|
169
|
+
baseOptions = configuration.baseOptions;
|
|
170
|
+
}
|
|
171
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
172
|
+
const localVarHeaderParameter = {};
|
|
173
|
+
const localVarQueryParameter = {};
|
|
174
|
+
// authentication session-oauth required
|
|
175
|
+
// oauth required
|
|
176
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
177
|
+
// authentication api-key required
|
|
178
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
179
|
+
if (project !== undefined) {
|
|
180
|
+
localVarQueryParameter['project'] = project;
|
|
181
|
+
}
|
|
182
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
183
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
184
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
185
|
+
return {
|
|
186
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
187
|
+
options: localVarRequestOptions,
|
|
188
|
+
};
|
|
189
|
+
}),
|
|
190
|
+
/**
|
|
191
|
+
* Lists all application sets that belong to the given project.
|
|
192
|
+
* @summary List application sets
|
|
193
|
+
* @param {string} project What project it is
|
|
194
|
+
* @param {number} [pageToken] Page reference token
|
|
195
|
+
* @param {string} [search] Search term to filter based on product tags.
|
|
196
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
197
|
+
* @param {*} [options] Override http request option.
|
|
198
|
+
* @throws {RequiredError}
|
|
199
|
+
*/
|
|
200
|
+
listApplicationSets: (project_1, pageToken_1, search_1, pageSize_1, ...args_1) => __awaiter(this, [project_1, pageToken_1, search_1, pageSize_1, ...args_1], void 0, function* (project, pageToken, search, pageSize, options = {}) {
|
|
201
|
+
// verify required parameter 'project' is not null or undefined
|
|
202
|
+
(0, common_1.assertParamExists)('listApplicationSets', 'project', project);
|
|
203
|
+
const localVarPath = `/v1/catalog/applications/sets`;
|
|
204
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
205
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
206
|
+
let baseOptions;
|
|
207
|
+
if (configuration) {
|
|
208
|
+
baseOptions = configuration.baseOptions;
|
|
209
|
+
}
|
|
210
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
211
|
+
const localVarHeaderParameter = {};
|
|
212
|
+
const localVarQueryParameter = {};
|
|
213
|
+
// authentication session-oauth required
|
|
214
|
+
// oauth required
|
|
215
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
216
|
+
// authentication api-key required
|
|
217
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
218
|
+
if (project !== undefined) {
|
|
219
|
+
localVarQueryParameter['project'] = project;
|
|
220
|
+
}
|
|
221
|
+
if (pageToken !== undefined) {
|
|
222
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
223
|
+
}
|
|
224
|
+
if (search !== undefined) {
|
|
225
|
+
localVarQueryParameter['search'] = search;
|
|
226
|
+
}
|
|
227
|
+
if (pageSize !== undefined) {
|
|
228
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
229
|
+
}
|
|
230
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
231
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
232
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
233
|
+
return {
|
|
234
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
235
|
+
options: localVarRequestOptions,
|
|
236
|
+
};
|
|
237
|
+
}),
|
|
238
|
+
/**
|
|
239
|
+
* Updates an existing application set.
|
|
240
|
+
* @summary Update application set
|
|
241
|
+
* @param {string} project What project it is
|
|
242
|
+
* @param {string} applicationSetId Application set\'s unique identifier
|
|
243
|
+
* @param {CreateApplicationSetRequest} [createApplicationSetRequest] Create a new application set.
|
|
244
|
+
* @param {*} [options] Override http request option.
|
|
245
|
+
* @throws {RequiredError}
|
|
246
|
+
*/
|
|
247
|
+
updateApplicationSet: (project_1, applicationSetId_1, createApplicationSetRequest_1, ...args_1) => __awaiter(this, [project_1, applicationSetId_1, createApplicationSetRequest_1, ...args_1], void 0, function* (project, applicationSetId, createApplicationSetRequest, options = {}) {
|
|
248
|
+
// verify required parameter 'project' is not null or undefined
|
|
249
|
+
(0, common_1.assertParamExists)('updateApplicationSet', 'project', project);
|
|
250
|
+
// verify required parameter 'applicationSetId' is not null or undefined
|
|
251
|
+
(0, common_1.assertParamExists)('updateApplicationSet', 'applicationSetId', applicationSetId);
|
|
252
|
+
const localVarPath = `/v1/catalog/applications/sets/{applicationSetId}`
|
|
253
|
+
.replace(`{${"applicationSetId"}}`, encodeURIComponent(String(applicationSetId)));
|
|
254
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
255
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
256
|
+
let baseOptions;
|
|
257
|
+
if (configuration) {
|
|
258
|
+
baseOptions = configuration.baseOptions;
|
|
259
|
+
}
|
|
260
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
261
|
+
const localVarHeaderParameter = {};
|
|
262
|
+
const localVarQueryParameter = {};
|
|
263
|
+
// authentication session-oauth required
|
|
264
|
+
// oauth required
|
|
265
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
266
|
+
// authentication api-key required
|
|
267
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
268
|
+
if (project !== undefined) {
|
|
269
|
+
localVarQueryParameter['project'] = project;
|
|
270
|
+
}
|
|
271
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
272
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
273
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
274
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
275
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createApplicationSetRequest, localVarRequestOptions, configuration);
|
|
276
|
+
return {
|
|
277
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
278
|
+
options: localVarRequestOptions,
|
|
279
|
+
};
|
|
280
|
+
}),
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
exports.ApplicationSetsApiAxiosParamCreator = ApplicationSetsApiAxiosParamCreator;
|
|
284
|
+
/**
|
|
285
|
+
* ApplicationSetsApi - functional programming interface
|
|
286
|
+
* @export
|
|
287
|
+
*/
|
|
288
|
+
const ApplicationSetsApiFp = function (configuration) {
|
|
289
|
+
const localVarAxiosParamCreator = (0, exports.ApplicationSetsApiAxiosParamCreator)(configuration);
|
|
290
|
+
return {
|
|
291
|
+
/**
|
|
292
|
+
* Creates a new application set.
|
|
293
|
+
* @summary Create application set
|
|
294
|
+
* @param {string} project What project it is
|
|
295
|
+
* @param {CreateApplicationSetRequest} [createApplicationSetRequest] Create a new application set.
|
|
296
|
+
* @param {*} [options] Override http request option.
|
|
297
|
+
* @throws {RequiredError}
|
|
298
|
+
*/
|
|
299
|
+
createApplicationSet(project, createApplicationSetRequest, options) {
|
|
300
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
301
|
+
var _a, _b, _c;
|
|
302
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createApplicationSet(project, createApplicationSetRequest, options);
|
|
303
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
304
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApplicationSetsApi.createApplicationSet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
305
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
306
|
+
});
|
|
307
|
+
},
|
|
308
|
+
/**
|
|
309
|
+
* Deletes an existing application set.
|
|
310
|
+
* @summary Delete an application set
|
|
311
|
+
* @param {string} project What project it is
|
|
312
|
+
* @param {string} applicationSetId Application set\'s unique identifier
|
|
313
|
+
* @param {*} [options] Override http request option.
|
|
314
|
+
* @throws {RequiredError}
|
|
315
|
+
*/
|
|
316
|
+
deleteApplicationSet(project, applicationSetId, options) {
|
|
317
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
318
|
+
var _a, _b, _c;
|
|
319
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteApplicationSet(project, applicationSetId, options);
|
|
320
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
321
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApplicationSetsApi.deleteApplicationSet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
322
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
323
|
+
});
|
|
324
|
+
},
|
|
325
|
+
/**
|
|
326
|
+
* Get an application by the given id.
|
|
327
|
+
* @summary Get an application set
|
|
328
|
+
* @param {string} project What project it is
|
|
329
|
+
* @param {string} applicationSetId Application set\'s unique identifier
|
|
330
|
+
* @param {*} [options] Override http request option.
|
|
331
|
+
* @throws {RequiredError}
|
|
332
|
+
*/
|
|
333
|
+
getApplicationSet(project, applicationSetId, options) {
|
|
334
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
335
|
+
var _a, _b, _c;
|
|
336
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getApplicationSet(project, applicationSetId, options);
|
|
337
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
338
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApplicationSetsApi.getApplicationSet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
339
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
340
|
+
});
|
|
341
|
+
},
|
|
342
|
+
/**
|
|
343
|
+
* Lists all application sets that belong to the given project.
|
|
344
|
+
* @summary List application sets
|
|
345
|
+
* @param {string} project What project it is
|
|
346
|
+
* @param {number} [pageToken] Page reference token
|
|
347
|
+
* @param {string} [search] Search term to filter based on product tags.
|
|
348
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
349
|
+
* @param {*} [options] Override http request option.
|
|
350
|
+
* @throws {RequiredError}
|
|
351
|
+
*/
|
|
352
|
+
listApplicationSets(project, pageToken, search, pageSize, options) {
|
|
353
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
354
|
+
var _a, _b, _c;
|
|
355
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listApplicationSets(project, pageToken, search, pageSize, options);
|
|
356
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
357
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApplicationSetsApi.listApplicationSets']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
358
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
359
|
+
});
|
|
360
|
+
},
|
|
361
|
+
/**
|
|
362
|
+
* Updates an existing application set.
|
|
363
|
+
* @summary Update application set
|
|
364
|
+
* @param {string} project What project it is
|
|
365
|
+
* @param {string} applicationSetId Application set\'s unique identifier
|
|
366
|
+
* @param {CreateApplicationSetRequest} [createApplicationSetRequest] Create a new application set.
|
|
367
|
+
* @param {*} [options] Override http request option.
|
|
368
|
+
* @throws {RequiredError}
|
|
369
|
+
*/
|
|
370
|
+
updateApplicationSet(project, applicationSetId, createApplicationSetRequest, options) {
|
|
371
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
372
|
+
var _a, _b, _c;
|
|
373
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateApplicationSet(project, applicationSetId, createApplicationSetRequest, options);
|
|
374
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
375
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApplicationSetsApi.updateApplicationSet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
376
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
377
|
+
});
|
|
378
|
+
},
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
exports.ApplicationSetsApiFp = ApplicationSetsApiFp;
|
|
382
|
+
/**
|
|
383
|
+
* ApplicationSetsApi - factory interface
|
|
384
|
+
* @export
|
|
385
|
+
*/
|
|
386
|
+
const ApplicationSetsApiFactory = function (configuration, basePath, axios) {
|
|
387
|
+
const localVarFp = (0, exports.ApplicationSetsApiFp)(configuration);
|
|
388
|
+
return {
|
|
389
|
+
/**
|
|
390
|
+
* Creates a new application set.
|
|
391
|
+
* @summary Create application set
|
|
392
|
+
* @param {ApplicationSetsApiCreateApplicationSetRequest} requestParameters Request parameters.
|
|
393
|
+
* @param {*} [options] Override http request option.
|
|
394
|
+
* @throws {RequiredError}
|
|
395
|
+
*/
|
|
396
|
+
createApplicationSet(requestParameters, options) {
|
|
397
|
+
return localVarFp.createApplicationSet(requestParameters.project, requestParameters.createApplicationSetRequest, options).then((request) => request(axios, basePath));
|
|
398
|
+
},
|
|
399
|
+
/**
|
|
400
|
+
* Deletes an existing application set.
|
|
401
|
+
* @summary Delete an application set
|
|
402
|
+
* @param {ApplicationSetsApiDeleteApplicationSetRequest} requestParameters Request parameters.
|
|
403
|
+
* @param {*} [options] Override http request option.
|
|
404
|
+
* @throws {RequiredError}
|
|
405
|
+
*/
|
|
406
|
+
deleteApplicationSet(requestParameters, options) {
|
|
407
|
+
return localVarFp.deleteApplicationSet(requestParameters.project, requestParameters.applicationSetId, options).then((request) => request(axios, basePath));
|
|
408
|
+
},
|
|
409
|
+
/**
|
|
410
|
+
* Get an application by the given id.
|
|
411
|
+
* @summary Get an application set
|
|
412
|
+
* @param {ApplicationSetsApiGetApplicationSetRequest} requestParameters Request parameters.
|
|
413
|
+
* @param {*} [options] Override http request option.
|
|
414
|
+
* @throws {RequiredError}
|
|
415
|
+
*/
|
|
416
|
+
getApplicationSet(requestParameters, options) {
|
|
417
|
+
return localVarFp.getApplicationSet(requestParameters.project, requestParameters.applicationSetId, options).then((request) => request(axios, basePath));
|
|
418
|
+
},
|
|
419
|
+
/**
|
|
420
|
+
* Lists all application sets that belong to the given project.
|
|
421
|
+
* @summary List application sets
|
|
422
|
+
* @param {ApplicationSetsApiListApplicationSetsRequest} requestParameters Request parameters.
|
|
423
|
+
* @param {*} [options] Override http request option.
|
|
424
|
+
* @throws {RequiredError}
|
|
425
|
+
*/
|
|
426
|
+
listApplicationSets(requestParameters, options) {
|
|
427
|
+
return localVarFp.listApplicationSets(requestParameters.project, requestParameters.pageToken, requestParameters.search, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
428
|
+
},
|
|
429
|
+
/**
|
|
430
|
+
* Updates an existing application set.
|
|
431
|
+
* @summary Update application set
|
|
432
|
+
* @param {ApplicationSetsApiUpdateApplicationSetRequest} requestParameters Request parameters.
|
|
433
|
+
* @param {*} [options] Override http request option.
|
|
434
|
+
* @throws {RequiredError}
|
|
435
|
+
*/
|
|
436
|
+
updateApplicationSet(requestParameters, options) {
|
|
437
|
+
return localVarFp.updateApplicationSet(requestParameters.project, requestParameters.applicationSetId, requestParameters.createApplicationSetRequest, options).then((request) => request(axios, basePath));
|
|
438
|
+
},
|
|
439
|
+
};
|
|
440
|
+
};
|
|
441
|
+
exports.ApplicationSetsApiFactory = ApplicationSetsApiFactory;
|
|
442
|
+
/**
|
|
443
|
+
* ApplicationSetsApi - object-oriented interface
|
|
444
|
+
* @export
|
|
445
|
+
* @class ApplicationSetsApi
|
|
446
|
+
* @extends {BaseAPI}
|
|
447
|
+
*/
|
|
448
|
+
class ApplicationSetsApi extends base_1.BaseAPI {
|
|
449
|
+
/**
|
|
450
|
+
* Creates a new application set.
|
|
451
|
+
* @summary Create application set
|
|
452
|
+
* @param {ApplicationSetsApiCreateApplicationSetRequest} requestParameters Request parameters.
|
|
453
|
+
* @param {*} [options] Override http request option.
|
|
454
|
+
* @throws {RequiredError}
|
|
455
|
+
* @memberof ApplicationSetsApi
|
|
456
|
+
*/
|
|
457
|
+
createApplicationSet(requestParameters, options) {
|
|
458
|
+
return (0, exports.ApplicationSetsApiFp)(this.configuration).createApplicationSet(requestParameters.project, requestParameters.createApplicationSetRequest, options).then((request) => request(this.axios, this.basePath));
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* Deletes an existing application set.
|
|
462
|
+
* @summary Delete an application set
|
|
463
|
+
* @param {ApplicationSetsApiDeleteApplicationSetRequest} requestParameters Request parameters.
|
|
464
|
+
* @param {*} [options] Override http request option.
|
|
465
|
+
* @throws {RequiredError}
|
|
466
|
+
* @memberof ApplicationSetsApi
|
|
467
|
+
*/
|
|
468
|
+
deleteApplicationSet(requestParameters, options) {
|
|
469
|
+
return (0, exports.ApplicationSetsApiFp)(this.configuration).deleteApplicationSet(requestParameters.project, requestParameters.applicationSetId, options).then((request) => request(this.axios, this.basePath));
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
* Get an application by the given id.
|
|
473
|
+
* @summary Get an application set
|
|
474
|
+
* @param {ApplicationSetsApiGetApplicationSetRequest} requestParameters Request parameters.
|
|
475
|
+
* @param {*} [options] Override http request option.
|
|
476
|
+
* @throws {RequiredError}
|
|
477
|
+
* @memberof ApplicationSetsApi
|
|
478
|
+
*/
|
|
479
|
+
getApplicationSet(requestParameters, options) {
|
|
480
|
+
return (0, exports.ApplicationSetsApiFp)(this.configuration).getApplicationSet(requestParameters.project, requestParameters.applicationSetId, options).then((request) => request(this.axios, this.basePath));
|
|
481
|
+
}
|
|
482
|
+
/**
|
|
483
|
+
* Lists all application sets that belong to the given project.
|
|
484
|
+
* @summary List application sets
|
|
485
|
+
* @param {ApplicationSetsApiListApplicationSetsRequest} requestParameters Request parameters.
|
|
486
|
+
* @param {*} [options] Override http request option.
|
|
487
|
+
* @throws {RequiredError}
|
|
488
|
+
* @memberof ApplicationSetsApi
|
|
489
|
+
*/
|
|
490
|
+
listApplicationSets(requestParameters, options) {
|
|
491
|
+
return (0, exports.ApplicationSetsApiFp)(this.configuration).listApplicationSets(requestParameters.project, requestParameters.pageToken, requestParameters.search, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* Updates an existing application set.
|
|
495
|
+
* @summary Update application set
|
|
496
|
+
* @param {ApplicationSetsApiUpdateApplicationSetRequest} requestParameters Request parameters.
|
|
497
|
+
* @param {*} [options] Override http request option.
|
|
498
|
+
* @throws {RequiredError}
|
|
499
|
+
* @memberof ApplicationSetsApi
|
|
500
|
+
*/
|
|
501
|
+
updateApplicationSet(requestParameters, options) {
|
|
502
|
+
return (0, exports.ApplicationSetsApiFp)(this.configuration).updateApplicationSet(requestParameters.project, requestParameters.applicationSetId, requestParameters.createApplicationSetRequest, options).then((request) => request(this.axios, this.basePath));
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
exports.ApplicationSetsApi = ApplicationSetsApi;
|
|
44
506
|
/**
|
|
45
507
|
* ProductsApi - axios parameter creator
|
|
46
508
|
* @export
|
|
@@ -94,7 +556,7 @@ const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
94
556
|
* @param {*} [options] Override http request option.
|
|
95
557
|
* @throws {RequiredError}
|
|
96
558
|
*/
|
|
97
|
-
deleteProduct: (
|
|
559
|
+
deleteProduct: (project_1, productId_1, ...args_1) => __awaiter(this, [project_1, productId_1, ...args_1], void 0, function* (project, productId, options = {}) {
|
|
98
560
|
// verify required parameter 'project' is not null or undefined
|
|
99
561
|
(0, common_1.assertParamExists)('deleteProduct', 'project', project);
|
|
100
562
|
// verify required parameter 'productId' is not null or undefined
|
|
@@ -135,7 +597,7 @@ const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
135
597
|
* @param {*} [options] Override http request option.
|
|
136
598
|
* @throws {RequiredError}
|
|
137
599
|
*/
|
|
138
|
-
getProduct: (
|
|
600
|
+
getProduct: (project_1, productId_1, fields_1, ...args_1) => __awaiter(this, [project_1, productId_1, fields_1, ...args_1], void 0, function* (project, productId, fields, options = {}) {
|
|
139
601
|
// verify required parameter 'project' is not null or undefined
|
|
140
602
|
(0, common_1.assertParamExists)('getProduct', 'project', project);
|
|
141
603
|
// verify required parameter 'productId' is not null or undefined
|
|
@@ -181,7 +643,7 @@ const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
181
643
|
* @param {*} [options] Override http request option.
|
|
182
644
|
* @throws {RequiredError}
|
|
183
645
|
*/
|
|
184
|
-
getProducts: (
|
|
646
|
+
getProducts: (project_1, pageToken_1, search_1, pageSize_1, fields_1, ...args_1) => __awaiter(this, [project_1, pageToken_1, search_1, pageSize_1, fields_1, ...args_1], void 0, function* (project, pageToken, search, pageSize, fields, options = {}) {
|
|
185
647
|
// verify required parameter 'project' is not null or undefined
|
|
186
648
|
(0, common_1.assertParamExists)('getProducts', 'project', project);
|
|
187
649
|
const localVarPath = `/v1/catalog/products`;
|
|
@@ -230,7 +692,7 @@ const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
230
692
|
* @param {*} [options] Override http request option.
|
|
231
693
|
* @throws {RequiredError}
|
|
232
694
|
*/
|
|
233
|
-
importProducts: (
|
|
695
|
+
importProducts: (project_1, body_1, ...args_1) => __awaiter(this, [project_1, body_1, ...args_1], void 0, function* (project, body, options = {}) {
|
|
234
696
|
// verify required parameter 'project' is not null or undefined
|
|
235
697
|
(0, common_1.assertParamExists)('importProducts', 'project', project);
|
|
236
698
|
const localVarPath = `/v1/catalog/products/import`;
|
|
@@ -270,7 +732,7 @@ const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
270
732
|
* @param {*} [options] Override http request option.
|
|
271
733
|
* @throws {RequiredError}
|
|
272
734
|
*/
|
|
273
|
-
updateProduct: (
|
|
735
|
+
updateProduct: (project_1, productId_1, updateProductRequest_1, ...args_1) => __awaiter(this, [project_1, productId_1, updateProductRequest_1, ...args_1], void 0, function* (project, productId, updateProductRequest, options = {}) {
|
|
274
736
|
// verify required parameter 'project' is not null or undefined
|
|
275
737
|
(0, common_1.assertParamExists)('updateProduct', 'project', project);
|
|
276
738
|
// verify required parameter 'productId' is not null or undefined
|
|
@@ -434,73 +896,62 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
434
896
|
/**
|
|
435
897
|
* 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.
|
|
436
898
|
* @summary Create product
|
|
437
|
-
* @param {
|
|
438
|
-
* @param {CreateProductRequest} [createProductRequest]
|
|
899
|
+
* @param {ProductsApiCreateProductRequest} requestParameters Request parameters.
|
|
439
900
|
* @param {*} [options] Override http request option.
|
|
440
901
|
* @throws {RequiredError}
|
|
441
902
|
*/
|
|
442
|
-
createProduct(
|
|
443
|
-
return localVarFp.createProduct(project, createProductRequest, options).then((request) => request(axios, basePath));
|
|
903
|
+
createProduct(requestParameters, options) {
|
|
904
|
+
return localVarFp.createProduct(requestParameters.project, requestParameters.createProductRequest, options).then((request) => request(axios, basePath));
|
|
444
905
|
},
|
|
445
906
|
/**
|
|
446
907
|
* Deletes a catalog product
|
|
447
908
|
* @summary Delete catalog product
|
|
448
|
-
* @param {
|
|
449
|
-
* @param {string} productId Product\'s unique identifier
|
|
909
|
+
* @param {ProductsApiDeleteProductRequest} requestParameters Request parameters.
|
|
450
910
|
* @param {*} [options] Override http request option.
|
|
451
911
|
* @throws {RequiredError}
|
|
452
912
|
*/
|
|
453
|
-
deleteProduct(
|
|
454
|
-
return localVarFp.deleteProduct(project, productId, options).then((request) => request(axios, basePath));
|
|
913
|
+
deleteProduct(requestParameters, options) {
|
|
914
|
+
return localVarFp.deleteProduct(requestParameters.project, requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
455
915
|
},
|
|
456
916
|
/**
|
|
457
917
|
* Gets a product by a given ID.
|
|
458
918
|
* @summary Get product
|
|
459
|
-
* @param {
|
|
460
|
-
* @param {string} productId Product\'s unique identifier
|
|
461
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
919
|
+
* @param {ProductsApiGetProductRequest} requestParameters Request parameters.
|
|
462
920
|
* @param {*} [options] Override http request option.
|
|
463
921
|
* @throws {RequiredError}
|
|
464
922
|
*/
|
|
465
|
-
getProduct(
|
|
466
|
-
return localVarFp.getProduct(project, productId, fields, options).then((request) => request(axios, basePath));
|
|
923
|
+
getProduct(requestParameters, options) {
|
|
924
|
+
return localVarFp.getProduct(requestParameters.project, requestParameters.productId, requestParameters.fields, options).then((request) => request(axios, basePath));
|
|
467
925
|
},
|
|
468
926
|
/**
|
|
469
927
|
* Lists all enabled store listing products attached to the given project.
|
|
470
928
|
* @summary List products
|
|
471
|
-
* @param {
|
|
472
|
-
* @param {number} [pageToken] Page reference token
|
|
473
|
-
* @param {string} [search] Search term to filter based on product tags.
|
|
474
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
475
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
929
|
+
* @param {ProductsApiGetProductsRequest} requestParameters Request parameters.
|
|
476
930
|
* @param {*} [options] Override http request option.
|
|
477
931
|
* @throws {RequiredError}
|
|
478
932
|
*/
|
|
479
|
-
getProducts(
|
|
480
|
-
return localVarFp.getProducts(project, pageToken, search, pageSize, fields, options).then((request) => request(axios, basePath));
|
|
933
|
+
getProducts(requestParameters, options) {
|
|
934
|
+
return localVarFp.getProducts(requestParameters.project, requestParameters.pageToken, requestParameters.search, requestParameters.pageSize, requestParameters.fields, options).then((request) => request(axios, basePath));
|
|
481
935
|
},
|
|
482
936
|
/**
|
|
483
937
|
* Initiates a product import from a CSV file. The result will be available as a notification within the dashboard.
|
|
484
938
|
* @summary Import products
|
|
485
|
-
* @param {
|
|
486
|
-
* @param {string} [body] A data URL of a CSV file containing data for one or more products.
|
|
939
|
+
* @param {ProductsApiImportProductsRequest} requestParameters Request parameters.
|
|
487
940
|
* @param {*} [options] Override http request option.
|
|
488
941
|
* @throws {RequiredError}
|
|
489
942
|
*/
|
|
490
|
-
importProducts(
|
|
491
|
-
return localVarFp.importProducts(project, body, options).then((request) => request(axios, basePath));
|
|
943
|
+
importProducts(requestParameters, options) {
|
|
944
|
+
return localVarFp.importProducts(requestParameters.project, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
492
945
|
},
|
|
493
946
|
/**
|
|
494
947
|
* Updates a product by a given ID.
|
|
495
948
|
* @summary Update product
|
|
496
|
-
* @param {
|
|
497
|
-
* @param {string} productId Product\'s unique identifier
|
|
498
|
-
* @param {UpdateProductRequest} [updateProductRequest]
|
|
949
|
+
* @param {ProductsApiUpdateProductRequest} requestParameters Request parameters.
|
|
499
950
|
* @param {*} [options] Override http request option.
|
|
500
951
|
* @throws {RequiredError}
|
|
501
952
|
*/
|
|
502
|
-
updateProduct(
|
|
503
|
-
return localVarFp.updateProduct(project, productId, updateProductRequest, options).then((request) => request(axios, basePath));
|
|
953
|
+
updateProduct(requestParameters, options) {
|
|
954
|
+
return localVarFp.updateProduct(requestParameters.project, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(axios, basePath));
|
|
504
955
|
},
|
|
505
956
|
};
|
|
506
957
|
};
|
|
@@ -515,79 +966,68 @@ class ProductsApi extends base_1.BaseAPI {
|
|
|
515
966
|
/**
|
|
516
967
|
* 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.
|
|
517
968
|
* @summary Create product
|
|
518
|
-
* @param {
|
|
519
|
-
* @param {CreateProductRequest} [createProductRequest]
|
|
969
|
+
* @param {ProductsApiCreateProductRequest} requestParameters Request parameters.
|
|
520
970
|
* @param {*} [options] Override http request option.
|
|
521
971
|
* @throws {RequiredError}
|
|
522
972
|
* @memberof ProductsApi
|
|
523
973
|
*/
|
|
524
|
-
createProduct(
|
|
525
|
-
return (0, exports.ProductsApiFp)(this.configuration).createProduct(project, createProductRequest, options).then((request) => request(this.axios, this.basePath));
|
|
974
|
+
createProduct(requestParameters, options) {
|
|
975
|
+
return (0, exports.ProductsApiFp)(this.configuration).createProduct(requestParameters.project, requestParameters.createProductRequest, options).then((request) => request(this.axios, this.basePath));
|
|
526
976
|
}
|
|
527
977
|
/**
|
|
528
978
|
* Deletes a catalog product
|
|
529
979
|
* @summary Delete catalog product
|
|
530
|
-
* @param {
|
|
531
|
-
* @param {string} productId Product\'s unique identifier
|
|
980
|
+
* @param {ProductsApiDeleteProductRequest} requestParameters Request parameters.
|
|
532
981
|
* @param {*} [options] Override http request option.
|
|
533
982
|
* @throws {RequiredError}
|
|
534
983
|
* @memberof ProductsApi
|
|
535
984
|
*/
|
|
536
|
-
deleteProduct(
|
|
537
|
-
return (0, exports.ProductsApiFp)(this.configuration).deleteProduct(project, productId, options).then((request) => request(this.axios, this.basePath));
|
|
985
|
+
deleteProduct(requestParameters, options) {
|
|
986
|
+
return (0, exports.ProductsApiFp)(this.configuration).deleteProduct(requestParameters.project, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
538
987
|
}
|
|
539
988
|
/**
|
|
540
989
|
* Gets a product by a given ID.
|
|
541
990
|
* @summary Get product
|
|
542
|
-
* @param {
|
|
543
|
-
* @param {string} productId Product\'s unique identifier
|
|
544
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
991
|
+
* @param {ProductsApiGetProductRequest} requestParameters Request parameters.
|
|
545
992
|
* @param {*} [options] Override http request option.
|
|
546
993
|
* @throws {RequiredError}
|
|
547
994
|
* @memberof ProductsApi
|
|
548
995
|
*/
|
|
549
|
-
getProduct(
|
|
550
|
-
return (0, exports.ProductsApiFp)(this.configuration).getProduct(project, productId, fields, options).then((request) => request(this.axios, this.basePath));
|
|
996
|
+
getProduct(requestParameters, options) {
|
|
997
|
+
return (0, exports.ProductsApiFp)(this.configuration).getProduct(requestParameters.project, requestParameters.productId, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
|
|
551
998
|
}
|
|
552
999
|
/**
|
|
553
1000
|
* Lists all enabled store listing products attached to the given project.
|
|
554
1001
|
* @summary List products
|
|
555
|
-
* @param {
|
|
556
|
-
* @param {number} [pageToken] Page reference token
|
|
557
|
-
* @param {string} [search] Search term to filter based on product tags.
|
|
558
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
559
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
1002
|
+
* @param {ProductsApiGetProductsRequest} requestParameters Request parameters.
|
|
560
1003
|
* @param {*} [options] Override http request option.
|
|
561
1004
|
* @throws {RequiredError}
|
|
562
1005
|
* @memberof ProductsApi
|
|
563
1006
|
*/
|
|
564
|
-
getProducts(
|
|
565
|
-
return (0, exports.ProductsApiFp)(this.configuration).getProducts(project, pageToken, search, pageSize, fields, options).then((request) => request(this.axios, this.basePath));
|
|
1007
|
+
getProducts(requestParameters, options) {
|
|
1008
|
+
return (0, exports.ProductsApiFp)(this.configuration).getProducts(requestParameters.project, requestParameters.pageToken, requestParameters.search, requestParameters.pageSize, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
|
|
566
1009
|
}
|
|
567
1010
|
/**
|
|
568
1011
|
* Initiates a product import from a CSV file. The result will be available as a notification within the dashboard.
|
|
569
1012
|
* @summary Import products
|
|
570
|
-
* @param {
|
|
571
|
-
* @param {string} [body] A data URL of a CSV file containing data for one or more products.
|
|
1013
|
+
* @param {ProductsApiImportProductsRequest} requestParameters Request parameters.
|
|
572
1014
|
* @param {*} [options] Override http request option.
|
|
573
1015
|
* @throws {RequiredError}
|
|
574
1016
|
* @memberof ProductsApi
|
|
575
1017
|
*/
|
|
576
|
-
importProducts(
|
|
577
|
-
return (0, exports.ProductsApiFp)(this.configuration).importProducts(project, body, options).then((request) => request(this.axios, this.basePath));
|
|
1018
|
+
importProducts(requestParameters, options) {
|
|
1019
|
+
return (0, exports.ProductsApiFp)(this.configuration).importProducts(requestParameters.project, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
578
1020
|
}
|
|
579
1021
|
/**
|
|
580
1022
|
* Updates a product by a given ID.
|
|
581
1023
|
* @summary Update product
|
|
582
|
-
* @param {
|
|
583
|
-
* @param {string} productId Product\'s unique identifier
|
|
584
|
-
* @param {UpdateProductRequest} [updateProductRequest]
|
|
1024
|
+
* @param {ProductsApiUpdateProductRequest} requestParameters Request parameters.
|
|
585
1025
|
* @param {*} [options] Override http request option.
|
|
586
1026
|
* @throws {RequiredError}
|
|
587
1027
|
* @memberof ProductsApi
|
|
588
1028
|
*/
|
|
589
|
-
updateProduct(
|
|
590
|
-
return (0, exports.ProductsApiFp)(this.configuration).updateProduct(project, productId, updateProductRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1029
|
+
updateProduct(requestParameters, options) {
|
|
1030
|
+
return (0, exports.ProductsApiFp)(this.configuration).updateProduct(requestParameters.project, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(this.axios, this.basePath));
|
|
591
1031
|
}
|
|
592
1032
|
}
|
|
593
1033
|
exports.ProductsApi = ProductsApi;
|
|
@@ -652,7 +1092,7 @@ const VariantsApiAxiosParamCreator = function (configuration) {
|
|
|
652
1092
|
* @param {*} [options] Override http request option.
|
|
653
1093
|
* @throws {RequiredError}
|
|
654
1094
|
*/
|
|
655
|
-
listVariants: (
|
|
1095
|
+
listVariants: (project_1, search_1, pageToken_1, pageSize_1, fields_1, ...args_1) => __awaiter(this, [project_1, search_1, pageToken_1, pageSize_1, fields_1, ...args_1], void 0, function* (project, search, pageToken, pageSize, fields, options = {}) {
|
|
656
1096
|
// verify required parameter 'project' is not null or undefined
|
|
657
1097
|
(0, common_1.assertParamExists)('listVariants', 'project', project);
|
|
658
1098
|
const localVarPath = `/v1/catalog/variants`;
|
|
@@ -754,28 +1194,22 @@ const VariantsApiFactory = function (configuration, basePath, axios) {
|
|
|
754
1194
|
/**
|
|
755
1195
|
* Gets a variant by a given ID.
|
|
756
1196
|
* @summary Get variant
|
|
757
|
-
* @param {
|
|
758
|
-
* @param {string} variantId Variants unique identifier
|
|
759
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
1197
|
+
* @param {VariantsApiGetVariantRequest} requestParameters Request parameters.
|
|
760
1198
|
* @param {*} [options] Override http request option.
|
|
761
1199
|
* @throws {RequiredError}
|
|
762
1200
|
*/
|
|
763
|
-
getVariant(
|
|
764
|
-
return localVarFp.getVariant(project, variantId, fields, options).then((request) => request(axios, basePath));
|
|
1201
|
+
getVariant(requestParameters, options) {
|
|
1202
|
+
return localVarFp.getVariant(requestParameters.project, requestParameters.variantId, requestParameters.fields, options).then((request) => request(axios, basePath));
|
|
765
1203
|
},
|
|
766
1204
|
/**
|
|
767
1205
|
* Lists all variants that belong to enabled products attached to the given project.
|
|
768
1206
|
* @summary List variants
|
|
769
|
-
* @param {
|
|
770
|
-
* @param {string} [search] Search term to filter based on product tags.
|
|
771
|
-
* @param {number} [pageToken] Page reference token
|
|
772
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
773
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
1207
|
+
* @param {VariantsApiListVariantsRequest} requestParameters Request parameters.
|
|
774
1208
|
* @param {*} [options] Override http request option.
|
|
775
1209
|
* @throws {RequiredError}
|
|
776
1210
|
*/
|
|
777
|
-
listVariants(
|
|
778
|
-
return localVarFp.listVariants(project, search, pageToken, pageSize, fields, options).then((request) => request(axios, basePath));
|
|
1211
|
+
listVariants(requestParameters, options) {
|
|
1212
|
+
return localVarFp.listVariants(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, requestParameters.fields, options).then((request) => request(axios, basePath));
|
|
779
1213
|
},
|
|
780
1214
|
};
|
|
781
1215
|
};
|
|
@@ -790,30 +1224,24 @@ class VariantsApi extends base_1.BaseAPI {
|
|
|
790
1224
|
/**
|
|
791
1225
|
* Gets a variant by a given ID.
|
|
792
1226
|
* @summary Get variant
|
|
793
|
-
* @param {
|
|
794
|
-
* @param {string} variantId Variants unique identifier
|
|
795
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
1227
|
+
* @param {VariantsApiGetVariantRequest} requestParameters Request parameters.
|
|
796
1228
|
* @param {*} [options] Override http request option.
|
|
797
1229
|
* @throws {RequiredError}
|
|
798
1230
|
* @memberof VariantsApi
|
|
799
1231
|
*/
|
|
800
|
-
getVariant(
|
|
801
|
-
return (0, exports.VariantsApiFp)(this.configuration).getVariant(project, variantId, fields, options).then((request) => request(this.axios, this.basePath));
|
|
1232
|
+
getVariant(requestParameters, options) {
|
|
1233
|
+
return (0, exports.VariantsApiFp)(this.configuration).getVariant(requestParameters.project, requestParameters.variantId, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
|
|
802
1234
|
}
|
|
803
1235
|
/**
|
|
804
1236
|
* Lists all variants that belong to enabled products attached to the given project.
|
|
805
1237
|
* @summary List variants
|
|
806
|
-
* @param {
|
|
807
|
-
* @param {string} [search] Search term to filter based on product tags.
|
|
808
|
-
* @param {number} [pageToken] Page reference token
|
|
809
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
810
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
1238
|
+
* @param {VariantsApiListVariantsRequest} requestParameters Request parameters.
|
|
811
1239
|
* @param {*} [options] Override http request option.
|
|
812
1240
|
* @throws {RequiredError}
|
|
813
1241
|
* @memberof VariantsApi
|
|
814
1242
|
*/
|
|
815
|
-
listVariants(
|
|
816
|
-
return (0, exports.VariantsApiFp)(this.configuration).listVariants(project, search, pageToken, pageSize, fields, options).then((request) => request(this.axios, this.basePath));
|
|
1243
|
+
listVariants(requestParameters, options) {
|
|
1244
|
+
return (0, exports.VariantsApiFp)(this.configuration).listVariants(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
|
|
817
1245
|
}
|
|
818
1246
|
}
|
|
819
1247
|
exports.VariantsApi = VariantsApi;
|