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