@teemill/platform 0.12.1 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +298 -1537
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +230 -853
- package/dist/api.js +161 -1061
- 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 +2 -2
- package/dist/esm/api.d.ts +230 -853
- package/dist/esm/api.js +158 -1058
- 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 +2 -2
- 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/.openapi-generator/FILES +0 -12
- package/.openapi-generator/VERSION +0 -1
- package/.openapi-generator-ignore +0 -23
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Platform API
|
|
6
6
|
* Manage Your podOS platform
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.
|
|
8
|
+
* The version of the OpenAPI document: 0.13.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,7 +22,7 @@ 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.PlatformApi = exports.PlatformApiFactory = exports.PlatformApiFp = exports.PlatformApiAxiosParamCreator = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.CustomersApi = exports.CustomersApiFactory = exports.CustomersApiFp = exports.CustomersApiAxiosParamCreator = exports.VariantAttributeThumbnailTypeEnum = exports.ProductAttributeValuesInnerThumbnailTypeEnum = exports.OutputFileFormatEnum = exports.OutputPositionEnum = exports.OrderStatus = void 0;
|
|
25
|
+
exports.VariantsApi = exports.VariantsApiFactory = exports.VariantsApiFp = exports.VariantsApiAxiosParamCreator = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.PlatformApi = exports.PlatformApiFactory = exports.PlatformApiFp = exports.PlatformApiAxiosParamCreator = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.ListCustomersSortByEnum = exports.ExportCustomersSortByEnum = exports.CustomersApi = exports.CustomersApiFactory = exports.CustomersApiFp = exports.CustomersApiAxiosParamCreator = exports.VariantAttributeThumbnailTypeEnum = exports.ProductAttributeValuesInnerThumbnailTypeEnum = exports.OutputFileFormatEnum = exports.OutputPositionEnum = exports.OrderStatus = void 0;
|
|
26
26
|
const axios_1 = require("axios");
|
|
27
27
|
// Some imports not used depending on template conditions
|
|
28
28
|
// @ts-ignore
|
|
@@ -80,10 +80,15 @@ const CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
80
80
|
* @summary Export customers
|
|
81
81
|
* @param {string} project Project unique identifier
|
|
82
82
|
* @param {string} platformId The platform identifier
|
|
83
|
+
* @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
|
|
84
|
+
* @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
|
|
85
|
+
* @param {Array<ExportCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
86
|
+
* @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
|
|
87
|
+
* @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
|
|
83
88
|
* @param {*} [options] Override http request option.
|
|
84
89
|
* @throws {RequiredError}
|
|
85
90
|
*/
|
|
86
|
-
exportCustomers: (project_1, platformId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, ...args_1], void 0, function* (project, platformId, options = {}) {
|
|
91
|
+
exportCustomers: (project_1, platformId_1, totalOrderCount_1, lifetimeValue_1, sortBy_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1) => __awaiter(this, [project_1, platformId_1, totalOrderCount_1, lifetimeValue_1, sortBy_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1], void 0, function* (project, platformId, totalOrderCount, lifetimeValue, sortBy, lastPurchasedStart, lastPurchasedEnd, options = {}) {
|
|
87
92
|
// verify required parameter 'project' is not null or undefined
|
|
88
93
|
(0, common_1.assertParamExists)('exportCustomers', 'project', project);
|
|
89
94
|
// verify required parameter 'platformId' is not null or undefined
|
|
@@ -107,6 +112,23 @@ const CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
107
112
|
if (project !== undefined) {
|
|
108
113
|
localVarQueryParameter['project'] = project;
|
|
109
114
|
}
|
|
115
|
+
if (totalOrderCount !== undefined) {
|
|
116
|
+
localVarQueryParameter['totalOrderCount'] = totalOrderCount;
|
|
117
|
+
}
|
|
118
|
+
if (lifetimeValue !== undefined) {
|
|
119
|
+
localVarQueryParameter['lifetimeValue'] = lifetimeValue;
|
|
120
|
+
}
|
|
121
|
+
if (sortBy) {
|
|
122
|
+
localVarQueryParameter['sortBy'] = sortBy;
|
|
123
|
+
}
|
|
124
|
+
if (lastPurchasedStart !== undefined) {
|
|
125
|
+
localVarQueryParameter['lastPurchasedStart'] = (lastPurchasedStart instanceof Date) ?
|
|
126
|
+
lastPurchasedStart.toISOString() :
|
|
127
|
+
lastPurchasedStart;
|
|
128
|
+
}
|
|
129
|
+
if (lastPurchasedEnd !== undefined) {
|
|
130
|
+
localVarQueryParameter['lastPurchasedEnd'] = lastPurchasedEnd;
|
|
131
|
+
}
|
|
110
132
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
111
133
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
112
134
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -167,10 +189,15 @@ const CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
167
189
|
* @param {number} [pageToken] Page reference token
|
|
168
190
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
169
191
|
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
192
|
+
* @param {Array<ListCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
193
|
+
* @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
|
|
194
|
+
* @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
|
|
195
|
+
* @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
|
|
196
|
+
* @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
|
|
170
197
|
* @param {*} [options] Override http request option.
|
|
171
198
|
* @throws {RequiredError}
|
|
172
199
|
*/
|
|
173
|
-
listCustomers: (project_1, platformId_1, pageToken_1, pageSize_1, search_1, ...args_1) => __awaiter(this, [project_1, platformId_1, pageToken_1, pageSize_1, search_1, ...args_1], void 0, function* (project, platformId, pageToken, pageSize, search, options = {}) {
|
|
200
|
+
listCustomers: (project_1, platformId_1, pageToken_1, pageSize_1, search_1, sortBy_1, totalOrderCount_1, lifetimeValue_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1) => __awaiter(this, [project_1, platformId_1, pageToken_1, pageSize_1, search_1, sortBy_1, totalOrderCount_1, lifetimeValue_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1], void 0, function* (project, platformId, pageToken, pageSize, search, sortBy, totalOrderCount, lifetimeValue, lastPurchasedStart, lastPurchasedEnd, options = {}) {
|
|
174
201
|
// verify required parameter 'project' is not null or undefined
|
|
175
202
|
(0, common_1.assertParamExists)('listCustomers', 'project', project);
|
|
176
203
|
// verify required parameter 'platformId' is not null or undefined
|
|
@@ -203,6 +230,23 @@ const CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
203
230
|
if (search !== undefined) {
|
|
204
231
|
localVarQueryParameter['search'] = search;
|
|
205
232
|
}
|
|
233
|
+
if (sortBy) {
|
|
234
|
+
localVarQueryParameter['sortBy'] = sortBy;
|
|
235
|
+
}
|
|
236
|
+
if (totalOrderCount !== undefined) {
|
|
237
|
+
localVarQueryParameter['totalOrderCount'] = totalOrderCount;
|
|
238
|
+
}
|
|
239
|
+
if (lifetimeValue !== undefined) {
|
|
240
|
+
localVarQueryParameter['lifetimeValue'] = lifetimeValue;
|
|
241
|
+
}
|
|
242
|
+
if (lastPurchasedStart !== undefined) {
|
|
243
|
+
localVarQueryParameter['lastPurchasedStart'] = (lastPurchasedStart instanceof Date) ?
|
|
244
|
+
lastPurchasedStart.toISOString() :
|
|
245
|
+
lastPurchasedStart;
|
|
246
|
+
}
|
|
247
|
+
if (lastPurchasedEnd !== undefined) {
|
|
248
|
+
localVarQueryParameter['lastPurchasedEnd'] = lastPurchasedEnd;
|
|
249
|
+
}
|
|
206
250
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
207
251
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
208
252
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -226,13 +270,18 @@ const CustomersApiFp = function (configuration) {
|
|
|
226
270
|
* @summary Export customers
|
|
227
271
|
* @param {string} project Project unique identifier
|
|
228
272
|
* @param {string} platformId The platform identifier
|
|
273
|
+
* @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
|
|
274
|
+
* @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
|
|
275
|
+
* @param {Array<ExportCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
276
|
+
* @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
|
|
277
|
+
* @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
|
|
229
278
|
* @param {*} [options] Override http request option.
|
|
230
279
|
* @throws {RequiredError}
|
|
231
280
|
*/
|
|
232
|
-
exportCustomers(project, platformId, options) {
|
|
281
|
+
exportCustomers(project, platformId, totalOrderCount, lifetimeValue, sortBy, lastPurchasedStart, lastPurchasedEnd, options) {
|
|
233
282
|
return __awaiter(this, void 0, void 0, function* () {
|
|
234
283
|
var _a, _b, _c;
|
|
235
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.exportCustomers(project, platformId, options);
|
|
284
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.exportCustomers(project, platformId, totalOrderCount, lifetimeValue, sortBy, lastPurchasedStart, lastPurchasedEnd, options);
|
|
236
285
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
237
286
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CustomersApi.exportCustomers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
238
287
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -264,13 +313,18 @@ const CustomersApiFp = function (configuration) {
|
|
|
264
313
|
* @param {number} [pageToken] Page reference token
|
|
265
314
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
266
315
|
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
316
|
+
* @param {Array<ListCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
317
|
+
* @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
|
|
318
|
+
* @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
|
|
319
|
+
* @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
|
|
320
|
+
* @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
|
|
267
321
|
* @param {*} [options] Override http request option.
|
|
268
322
|
* @throws {RequiredError}
|
|
269
323
|
*/
|
|
270
|
-
listCustomers(project, platformId, pageToken, pageSize, search, options) {
|
|
324
|
+
listCustomers(project, platformId, pageToken, pageSize, search, sortBy, totalOrderCount, lifetimeValue, lastPurchasedStart, lastPurchasedEnd, options) {
|
|
271
325
|
return __awaiter(this, void 0, void 0, function* () {
|
|
272
326
|
var _a, _b, _c;
|
|
273
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomers(project, platformId, pageToken, pageSize, search, options);
|
|
327
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomers(project, platformId, pageToken, pageSize, search, sortBy, totalOrderCount, lifetimeValue, lastPurchasedStart, lastPurchasedEnd, options);
|
|
274
328
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
275
329
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CustomersApi.listCustomers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
276
330
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -294,7 +348,7 @@ const CustomersApiFactory = function (configuration, basePath, axios) {
|
|
|
294
348
|
* @throws {RequiredError}
|
|
295
349
|
*/
|
|
296
350
|
exportCustomers(requestParameters, options) {
|
|
297
|
-
return localVarFp.exportCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
|
|
351
|
+
return localVarFp.exportCustomers(requestParameters.project, requestParameters.platformId, requestParameters.totalOrderCount, requestParameters.lifetimeValue, requestParameters.sortBy, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
|
|
298
352
|
},
|
|
299
353
|
/**
|
|
300
354
|
* Get a customer for a platform by a given customer ID.
|
|
@@ -314,7 +368,7 @@ const CustomersApiFactory = function (configuration, basePath, axios) {
|
|
|
314
368
|
* @throws {RequiredError}
|
|
315
369
|
*/
|
|
316
370
|
listCustomers(requestParameters, options) {
|
|
317
|
-
return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
371
|
+
return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.totalOrderCount, requestParameters.lifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
|
|
318
372
|
},
|
|
319
373
|
};
|
|
320
374
|
};
|
|
@@ -335,7 +389,7 @@ class CustomersApi extends base_1.BaseAPI {
|
|
|
335
389
|
* @memberof CustomersApi
|
|
336
390
|
*/
|
|
337
391
|
exportCustomers(requestParameters, options) {
|
|
338
|
-
return (0, exports.CustomersApiFp)(this.configuration).exportCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
|
|
392
|
+
return (0, exports.CustomersApiFp)(this.configuration).exportCustomers(requestParameters.project, requestParameters.platformId, requestParameters.totalOrderCount, requestParameters.lifetimeValue, requestParameters.sortBy, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(this.axios, this.basePath));
|
|
339
393
|
}
|
|
340
394
|
/**
|
|
341
395
|
* Get a customer for a platform by a given customer ID.
|
|
@@ -357,10 +411,32 @@ class CustomersApi extends base_1.BaseAPI {
|
|
|
357
411
|
* @memberof CustomersApi
|
|
358
412
|
*/
|
|
359
413
|
listCustomers(requestParameters, options) {
|
|
360
|
-
return (0, exports.CustomersApiFp)(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
414
|
+
return (0, exports.CustomersApiFp)(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.totalOrderCount, requestParameters.lifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(this.axios, this.basePath));
|
|
361
415
|
}
|
|
362
416
|
}
|
|
363
417
|
exports.CustomersApi = CustomersApi;
|
|
418
|
+
/**
|
|
419
|
+
* @export
|
|
420
|
+
*/
|
|
421
|
+
exports.ExportCustomersSortByEnum = {
|
|
422
|
+
LifetimeValue: '+lifetimeValue',
|
|
423
|
+
LifetimeValue2: '-lifetimeValue',
|
|
424
|
+
TotalOrderCount: '+totalOrderCount',
|
|
425
|
+
TotalOrderCount2: '-totalOrderCount',
|
|
426
|
+
LastPurchased: '+lastPurchased',
|
|
427
|
+
LastPurchased2: '-lastPurchased'
|
|
428
|
+
};
|
|
429
|
+
/**
|
|
430
|
+
* @export
|
|
431
|
+
*/
|
|
432
|
+
exports.ListCustomersSortByEnum = {
|
|
433
|
+
LifetimeValue: '+lifetimeValue',
|
|
434
|
+
LifetimeValue2: '-lifetimeValue',
|
|
435
|
+
TotalOrderCount: '+totalOrderCount',
|
|
436
|
+
TotalOrderCount2: '-totalOrderCount',
|
|
437
|
+
LastPurchased: '+lastPurchased',
|
|
438
|
+
LastPurchased2: '-lastPurchased'
|
|
439
|
+
};
|
|
364
440
|
/**
|
|
365
441
|
* OrdersApi - axios parameter creator
|
|
366
442
|
* @export
|
|
@@ -373,7 +449,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
373
449
|
* @param {string} project Project unique identifier
|
|
374
450
|
* @param {string} platformId The platform identifier
|
|
375
451
|
* @param {string} start Start of date range to filter by when orders were placed
|
|
376
|
-
* @param {string} [end] End of date range to filter
|
|
452
|
+
* @param {string} [end] End of date range to filter when orders were placed
|
|
377
453
|
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
378
454
|
* @param {*} [options] Override http request option.
|
|
379
455
|
* @throws {RequiredError}
|
|
@@ -565,8 +641,8 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
565
641
|
* @param {number} [pageToken] Page reference token
|
|
566
642
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
567
643
|
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
568
|
-
* @param {string} [start] Start of date range to filter
|
|
569
|
-
* @param {string} [end] End of date range to filter
|
|
644
|
+
* @param {string} [start] Start of date range to filter when orders were placed
|
|
645
|
+
* @param {string} [end] End of date range to filter when orders were placed
|
|
570
646
|
* @param {*} [options] Override http request option.
|
|
571
647
|
* @throws {RequiredError}
|
|
572
648
|
*/
|
|
@@ -686,7 +762,7 @@ const OrdersApiFp = function (configuration) {
|
|
|
686
762
|
* @param {string} project Project unique identifier
|
|
687
763
|
* @param {string} platformId The platform identifier
|
|
688
764
|
* @param {string} start Start of date range to filter by when orders were placed
|
|
689
|
-
* @param {string} [end] End of date range to filter
|
|
765
|
+
* @param {string} [end] End of date range to filter when orders were placed
|
|
690
766
|
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
691
767
|
* @param {*} [options] Override http request option.
|
|
692
768
|
* @throws {RequiredError}
|
|
@@ -762,8 +838,8 @@ const OrdersApiFp = function (configuration) {
|
|
|
762
838
|
* @param {number} [pageToken] Page reference token
|
|
763
839
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
764
840
|
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
765
|
-
* @param {string} [start] Start of date range to filter
|
|
766
|
-
* @param {string} [end] End of date range to filter
|
|
841
|
+
* @param {string} [start] Start of date range to filter when orders were placed
|
|
842
|
+
* @param {string} [end] End of date range to filter when orders were placed
|
|
767
843
|
* @param {*} [options] Override http request option.
|
|
768
844
|
* @throws {RequiredError}
|
|
769
845
|
*/
|
|
@@ -950,20 +1026,16 @@ exports.OrdersApi = OrdersApi;
|
|
|
950
1026
|
const PlatformApiAxiosParamCreator = function (configuration) {
|
|
951
1027
|
return {
|
|
952
1028
|
/**
|
|
953
|
-
*
|
|
954
|
-
* @summary
|
|
1029
|
+
*
|
|
1030
|
+
* @summary Get platform details
|
|
955
1031
|
* @param {string} project Project unique identifier
|
|
956
|
-
* @param {string} platformId The platform identifier
|
|
957
1032
|
* @param {*} [options] Override http request option.
|
|
958
1033
|
* @throws {RequiredError}
|
|
959
1034
|
*/
|
|
960
|
-
|
|
1035
|
+
getPlatform: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
|
|
961
1036
|
// verify required parameter 'project' is not null or undefined
|
|
962
|
-
(0, common_1.assertParamExists)('
|
|
963
|
-
|
|
964
|
-
(0, common_1.assertParamExists)('exportCustomers', 'platformId', platformId);
|
|
965
|
-
const localVarPath = `/v1/platform/{platformId}/customers/export`
|
|
966
|
-
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
|
|
1037
|
+
(0, common_1.assertParamExists)('getPlatform', 'project', project);
|
|
1038
|
+
const localVarPath = `/v1/platform`;
|
|
967
1039
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
968
1040
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
969
1041
|
let baseOptions;
|
|
@@ -990,32 +1062,26 @@ const PlatformApiAxiosParamCreator = function (configuration) {
|
|
|
990
1062
|
};
|
|
991
1063
|
}),
|
|
992
1064
|
/**
|
|
993
|
-
*
|
|
994
|
-
* @summary
|
|
1065
|
+
*
|
|
1066
|
+
* @summary Update platform
|
|
995
1067
|
* @param {string} project Project unique identifier
|
|
996
|
-
* @param {
|
|
997
|
-
* @param {string} start Start of date range to filter by when orders were placed
|
|
998
|
-
* @param {string} [end] End of date range to filter by when orders were placed
|
|
999
|
-
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
1068
|
+
* @param {UpdatePlatformRequest} updatePlatformRequest
|
|
1000
1069
|
* @param {*} [options] Override http request option.
|
|
1001
1070
|
* @throws {RequiredError}
|
|
1002
1071
|
*/
|
|
1003
|
-
|
|
1072
|
+
updatePlatform: (project_1, updatePlatformRequest_1, ...args_1) => __awaiter(this, [project_1, updatePlatformRequest_1, ...args_1], void 0, function* (project, updatePlatformRequest, options = {}) {
|
|
1004
1073
|
// verify required parameter 'project' is not null or undefined
|
|
1005
|
-
(0, common_1.assertParamExists)('
|
|
1006
|
-
// verify required parameter '
|
|
1007
|
-
(0, common_1.assertParamExists)('
|
|
1008
|
-
|
|
1009
|
-
(0, common_1.assertParamExists)('exportOrders', 'start', start);
|
|
1010
|
-
const localVarPath = `/v1/platform/{platformId}/orders/export`
|
|
1011
|
-
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
|
|
1074
|
+
(0, common_1.assertParamExists)('updatePlatform', 'project', project);
|
|
1075
|
+
// verify required parameter 'updatePlatformRequest' is not null or undefined
|
|
1076
|
+
(0, common_1.assertParamExists)('updatePlatform', 'updatePlatformRequest', updatePlatformRequest);
|
|
1077
|
+
const localVarPath = `/v1/platform`;
|
|
1012
1078
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1013
1079
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1014
1080
|
let baseOptions;
|
|
1015
1081
|
if (configuration) {
|
|
1016
1082
|
baseOptions = configuration.baseOptions;
|
|
1017
1083
|
}
|
|
1018
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
1084
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
1019
1085
|
const localVarHeaderParameter = {};
|
|
1020
1086
|
const localVarQueryParameter = {};
|
|
1021
1087
|
// authentication session-oauth required
|
|
@@ -1026,934 +1092,89 @@ const PlatformApiAxiosParamCreator = function (configuration) {
|
|
|
1026
1092
|
if (project !== undefined) {
|
|
1027
1093
|
localVarQueryParameter['project'] = project;
|
|
1028
1094
|
}
|
|
1029
|
-
|
|
1030
|
-
localVarQueryParameter['start'] = (start instanceof Date) ?
|
|
1031
|
-
start.toISOString() :
|
|
1032
|
-
start;
|
|
1033
|
-
}
|
|
1034
|
-
if (end !== undefined) {
|
|
1035
|
-
localVarQueryParameter['end'] = (end instanceof Date) ?
|
|
1036
|
-
end.toISOString() :
|
|
1037
|
-
end;
|
|
1038
|
-
}
|
|
1039
|
-
if (search !== undefined) {
|
|
1040
|
-
localVarQueryParameter['search'] = search;
|
|
1041
|
-
}
|
|
1095
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1042
1096
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1043
1097
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1044
1098
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1099
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updatePlatformRequest, localVarRequestOptions, configuration);
|
|
1045
1100
|
return {
|
|
1046
1101
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1047
1102
|
options: localVarRequestOptions,
|
|
1048
1103
|
};
|
|
1049
1104
|
}),
|
|
1105
|
+
};
|
|
1106
|
+
};
|
|
1107
|
+
exports.PlatformApiAxiosParamCreator = PlatformApiAxiosParamCreator;
|
|
1108
|
+
/**
|
|
1109
|
+
* PlatformApi - functional programming interface
|
|
1110
|
+
* @export
|
|
1111
|
+
*/
|
|
1112
|
+
const PlatformApiFp = function (configuration) {
|
|
1113
|
+
const localVarAxiosParamCreator = (0, exports.PlatformApiAxiosParamCreator)(configuration);
|
|
1114
|
+
return {
|
|
1050
1115
|
/**
|
|
1051
|
-
*
|
|
1052
|
-
* @summary Get
|
|
1116
|
+
*
|
|
1117
|
+
* @summary Get platform details
|
|
1053
1118
|
* @param {string} project Project unique identifier
|
|
1054
|
-
* @param {string} platformId The platform identifier
|
|
1055
|
-
* @param {string} customerId The customer identifier
|
|
1056
1119
|
* @param {*} [options] Override http request option.
|
|
1057
1120
|
* @throws {RequiredError}
|
|
1058
1121
|
*/
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
.replace(`{${"customerId"}}`, encodeURIComponent(String(customerId)));
|
|
1069
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1070
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1071
|
-
let baseOptions;
|
|
1072
|
-
if (configuration) {
|
|
1073
|
-
baseOptions = configuration.baseOptions;
|
|
1074
|
-
}
|
|
1075
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1076
|
-
const localVarHeaderParameter = {};
|
|
1077
|
-
const localVarQueryParameter = {};
|
|
1078
|
-
// authentication session-oauth required
|
|
1079
|
-
// oauth required
|
|
1080
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1081
|
-
// authentication api-key required
|
|
1082
|
-
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1083
|
-
if (project !== undefined) {
|
|
1084
|
-
localVarQueryParameter['project'] = project;
|
|
1085
|
-
}
|
|
1086
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1087
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1088
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1089
|
-
return {
|
|
1090
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1091
|
-
options: localVarRequestOptions,
|
|
1092
|
-
};
|
|
1093
|
-
}),
|
|
1122
|
+
getPlatform(project, options) {
|
|
1123
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1124
|
+
var _a, _b, _c;
|
|
1125
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPlatform(project, options);
|
|
1126
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1127
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PlatformApi.getPlatform']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1128
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1129
|
+
});
|
|
1130
|
+
},
|
|
1094
1131
|
/**
|
|
1095
|
-
*
|
|
1096
|
-
* @summary
|
|
1132
|
+
*
|
|
1133
|
+
* @summary Update platform
|
|
1097
1134
|
* @param {string} project Project unique identifier
|
|
1098
|
-
* @param {
|
|
1099
|
-
* @param {string} fulfillmentId The fulfillment identifier
|
|
1135
|
+
* @param {UpdatePlatformRequest} updatePlatformRequest
|
|
1100
1136
|
* @param {*} [options] Override http request option.
|
|
1101
1137
|
* @throws {RequiredError}
|
|
1102
1138
|
*/
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
// authentication session-oauth required
|
|
1123
|
-
// oauth required
|
|
1124
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1125
|
-
// authentication api-key required
|
|
1126
|
-
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1127
|
-
if (project !== undefined) {
|
|
1128
|
-
localVarQueryParameter['project'] = project;
|
|
1129
|
-
}
|
|
1130
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1131
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1132
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1133
|
-
return {
|
|
1134
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1135
|
-
options: localVarRequestOptions,
|
|
1136
|
-
};
|
|
1137
|
-
}),
|
|
1139
|
+
updatePlatform(project, updatePlatformRequest, options) {
|
|
1140
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1141
|
+
var _a, _b, _c;
|
|
1142
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePlatform(project, updatePlatformRequest, options);
|
|
1143
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1144
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PlatformApi.updatePlatform']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1145
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1146
|
+
});
|
|
1147
|
+
},
|
|
1148
|
+
};
|
|
1149
|
+
};
|
|
1150
|
+
exports.PlatformApiFp = PlatformApiFp;
|
|
1151
|
+
/**
|
|
1152
|
+
* PlatformApi - factory interface
|
|
1153
|
+
* @export
|
|
1154
|
+
*/
|
|
1155
|
+
const PlatformApiFactory = function (configuration, basePath, axios) {
|
|
1156
|
+
const localVarFp = (0, exports.PlatformApiFp)(configuration);
|
|
1157
|
+
return {
|
|
1138
1158
|
/**
|
|
1139
|
-
*
|
|
1140
|
-
* @summary Get
|
|
1141
|
-
* @param {
|
|
1142
|
-
* @param {string} platformId The platform identifier
|
|
1143
|
-
* @param {string} orderId The order identifier
|
|
1159
|
+
*
|
|
1160
|
+
* @summary Get platform details
|
|
1161
|
+
* @param {PlatformApiGetPlatformRequest} requestParameters Request parameters.
|
|
1144
1162
|
* @param {*} [options] Override http request option.
|
|
1145
1163
|
* @throws {RequiredError}
|
|
1146
1164
|
*/
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
// verify required parameter 'platformId' is not null or undefined
|
|
1151
|
-
(0, common_1.assertParamExists)('getOrder', 'platformId', platformId);
|
|
1152
|
-
// verify required parameter 'orderId' is not null or undefined
|
|
1153
|
-
(0, common_1.assertParamExists)('getOrder', 'orderId', orderId);
|
|
1154
|
-
const localVarPath = `/v1/platform/{platformId}/orders/{orderId}`
|
|
1155
|
-
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
1156
|
-
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
|
|
1157
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1158
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1159
|
-
let baseOptions;
|
|
1160
|
-
if (configuration) {
|
|
1161
|
-
baseOptions = configuration.baseOptions;
|
|
1162
|
-
}
|
|
1163
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1164
|
-
const localVarHeaderParameter = {};
|
|
1165
|
-
const localVarQueryParameter = {};
|
|
1166
|
-
// authentication session-oauth required
|
|
1167
|
-
// oauth required
|
|
1168
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1169
|
-
// authentication api-key required
|
|
1170
|
-
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1171
|
-
if (project !== undefined) {
|
|
1172
|
-
localVarQueryParameter['project'] = project;
|
|
1173
|
-
}
|
|
1174
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1175
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1176
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1177
|
-
return {
|
|
1178
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1179
|
-
options: localVarRequestOptions,
|
|
1180
|
-
};
|
|
1181
|
-
}),
|
|
1165
|
+
getPlatform(requestParameters, options) {
|
|
1166
|
+
return localVarFp.getPlatform(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
1167
|
+
},
|
|
1182
1168
|
/**
|
|
1183
1169
|
*
|
|
1184
|
-
* @summary
|
|
1185
|
-
* @param {
|
|
1186
|
-
* @param {*} [options] Override http request option.
|
|
1187
|
-
* @throws {RequiredError}
|
|
1188
|
-
*/
|
|
1189
|
-
getPlatform: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
|
|
1190
|
-
// verify required parameter 'project' is not null or undefined
|
|
1191
|
-
(0, common_1.assertParamExists)('getPlatform', 'project', project);
|
|
1192
|
-
const localVarPath = `/v1/platform`;
|
|
1193
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1194
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1195
|
-
let baseOptions;
|
|
1196
|
-
if (configuration) {
|
|
1197
|
-
baseOptions = configuration.baseOptions;
|
|
1198
|
-
}
|
|
1199
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1200
|
-
const localVarHeaderParameter = {};
|
|
1201
|
-
const localVarQueryParameter = {};
|
|
1202
|
-
// authentication session-oauth required
|
|
1203
|
-
// oauth required
|
|
1204
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1205
|
-
// authentication api-key required
|
|
1206
|
-
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1207
|
-
if (project !== undefined) {
|
|
1208
|
-
localVarQueryParameter['project'] = project;
|
|
1209
|
-
}
|
|
1210
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1211
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1212
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1213
|
-
return {
|
|
1214
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1215
|
-
options: localVarRequestOptions,
|
|
1216
|
-
};
|
|
1217
|
-
}),
|
|
1218
|
-
/**
|
|
1219
|
-
* List available fulfillers for a given fulfillment
|
|
1220
|
-
* @summary List available fulfillers
|
|
1221
|
-
* @param {string} project Project unique identifier
|
|
1222
|
-
* @param {string} platformId The platform identifier
|
|
1223
|
-
* @param {string} fulfillmentId The fulfillment identifier
|
|
1224
|
-
* @param {*} [options] Override http request option.
|
|
1225
|
-
* @throws {RequiredError}
|
|
1226
|
-
*/
|
|
1227
|
-
listAvailableFulfillers: (project_1, platformId_1, fulfillmentId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, fulfillmentId_1, ...args_1], void 0, function* (project, platformId, fulfillmentId, options = {}) {
|
|
1228
|
-
// verify required parameter 'project' is not null or undefined
|
|
1229
|
-
(0, common_1.assertParamExists)('listAvailableFulfillers', 'project', project);
|
|
1230
|
-
// verify required parameter 'platformId' is not null or undefined
|
|
1231
|
-
(0, common_1.assertParamExists)('listAvailableFulfillers', 'platformId', platformId);
|
|
1232
|
-
// verify required parameter 'fulfillmentId' is not null or undefined
|
|
1233
|
-
(0, common_1.assertParamExists)('listAvailableFulfillers', 'fulfillmentId', fulfillmentId);
|
|
1234
|
-
const localVarPath = `/v1/platform/{platformId}/fulfillments/{fulfillmentId}/available-fulfillers`
|
|
1235
|
-
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
1236
|
-
.replace(`{${"fulfillmentId"}}`, encodeURIComponent(String(fulfillmentId)));
|
|
1237
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1238
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1239
|
-
let baseOptions;
|
|
1240
|
-
if (configuration) {
|
|
1241
|
-
baseOptions = configuration.baseOptions;
|
|
1242
|
-
}
|
|
1243
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1244
|
-
const localVarHeaderParameter = {};
|
|
1245
|
-
const localVarQueryParameter = {};
|
|
1246
|
-
// authentication session-oauth required
|
|
1247
|
-
// oauth required
|
|
1248
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1249
|
-
// authentication api-key required
|
|
1250
|
-
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1251
|
-
if (project !== undefined) {
|
|
1252
|
-
localVarQueryParameter['project'] = project;
|
|
1253
|
-
}
|
|
1254
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1255
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1256
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1257
|
-
return {
|
|
1258
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1259
|
-
options: localVarRequestOptions,
|
|
1260
|
-
};
|
|
1261
|
-
}),
|
|
1262
|
-
/**
|
|
1263
|
-
* List customers for a platform
|
|
1264
|
-
* @summary List customers
|
|
1265
|
-
* @param {string} project Project unique identifier
|
|
1266
|
-
* @param {string} platformId The platform identifier
|
|
1267
|
-
* @param {number} [pageToken] Page reference token
|
|
1268
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1269
|
-
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
1270
|
-
* @param {*} [options] Override http request option.
|
|
1271
|
-
* @throws {RequiredError}
|
|
1272
|
-
*/
|
|
1273
|
-
listCustomers: (project_1, platformId_1, pageToken_1, pageSize_1, search_1, ...args_1) => __awaiter(this, [project_1, platformId_1, pageToken_1, pageSize_1, search_1, ...args_1], void 0, function* (project, platformId, pageToken, pageSize, search, options = {}) {
|
|
1274
|
-
// verify required parameter 'project' is not null or undefined
|
|
1275
|
-
(0, common_1.assertParamExists)('listCustomers', 'project', project);
|
|
1276
|
-
// verify required parameter 'platformId' is not null or undefined
|
|
1277
|
-
(0, common_1.assertParamExists)('listCustomers', 'platformId', platformId);
|
|
1278
|
-
const localVarPath = `/v1/platform/{platformId}/customers`
|
|
1279
|
-
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
|
|
1280
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1281
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1282
|
-
let baseOptions;
|
|
1283
|
-
if (configuration) {
|
|
1284
|
-
baseOptions = configuration.baseOptions;
|
|
1285
|
-
}
|
|
1286
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1287
|
-
const localVarHeaderParameter = {};
|
|
1288
|
-
const localVarQueryParameter = {};
|
|
1289
|
-
// authentication session-oauth required
|
|
1290
|
-
// oauth required
|
|
1291
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1292
|
-
// authentication api-key required
|
|
1293
|
-
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1294
|
-
if (project !== undefined) {
|
|
1295
|
-
localVarQueryParameter['project'] = project;
|
|
1296
|
-
}
|
|
1297
|
-
if (pageToken !== undefined) {
|
|
1298
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
1299
|
-
}
|
|
1300
|
-
if (pageSize !== undefined) {
|
|
1301
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
1302
|
-
}
|
|
1303
|
-
if (search !== undefined) {
|
|
1304
|
-
localVarQueryParameter['search'] = search;
|
|
1305
|
-
}
|
|
1306
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1307
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1308
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1309
|
-
return {
|
|
1310
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1311
|
-
options: localVarRequestOptions,
|
|
1312
|
-
};
|
|
1313
|
-
}),
|
|
1314
|
-
/**
|
|
1315
|
-
* Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
|
|
1316
|
-
* @summary List orders
|
|
1317
|
-
* @param {string} project Project unique identifier
|
|
1318
|
-
* @param {string} platformId The platform identifier
|
|
1319
|
-
* @param {number} [pageToken] Page reference token
|
|
1320
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1321
|
-
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
1322
|
-
* @param {string} [start] Start of date range to filter by when orders were placed
|
|
1323
|
-
* @param {string} [end] End of date range to filter by when orders were placed
|
|
1324
|
-
* @param {*} [options] Override http request option.
|
|
1325
|
-
* @throws {RequiredError}
|
|
1326
|
-
*/
|
|
1327
|
-
listOrders: (project_1, platformId_1, pageToken_1, pageSize_1, search_1, start_1, end_1, ...args_1) => __awaiter(this, [project_1, platformId_1, pageToken_1, pageSize_1, search_1, start_1, end_1, ...args_1], void 0, function* (project, platformId, pageToken, pageSize, search, start, end, options = {}) {
|
|
1328
|
-
// verify required parameter 'project' is not null or undefined
|
|
1329
|
-
(0, common_1.assertParamExists)('listOrders', 'project', project);
|
|
1330
|
-
// verify required parameter 'platformId' is not null or undefined
|
|
1331
|
-
(0, common_1.assertParamExists)('listOrders', 'platformId', platformId);
|
|
1332
|
-
const localVarPath = `/v1/platform/{platformId}/orders`
|
|
1333
|
-
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
|
|
1334
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1335
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1336
|
-
let baseOptions;
|
|
1337
|
-
if (configuration) {
|
|
1338
|
-
baseOptions = configuration.baseOptions;
|
|
1339
|
-
}
|
|
1340
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1341
|
-
const localVarHeaderParameter = {};
|
|
1342
|
-
const localVarQueryParameter = {};
|
|
1343
|
-
// authentication session-oauth required
|
|
1344
|
-
// oauth required
|
|
1345
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1346
|
-
// authentication api-key required
|
|
1347
|
-
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1348
|
-
if (project !== undefined) {
|
|
1349
|
-
localVarQueryParameter['project'] = project;
|
|
1350
|
-
}
|
|
1351
|
-
if (pageToken !== undefined) {
|
|
1352
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
1353
|
-
}
|
|
1354
|
-
if (pageSize !== undefined) {
|
|
1355
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
1356
|
-
}
|
|
1357
|
-
if (search !== undefined) {
|
|
1358
|
-
localVarQueryParameter['search'] = search;
|
|
1359
|
-
}
|
|
1360
|
-
if (start !== undefined) {
|
|
1361
|
-
localVarQueryParameter['start'] = (start instanceof Date) ?
|
|
1362
|
-
start.toISOString() :
|
|
1363
|
-
start;
|
|
1364
|
-
}
|
|
1365
|
-
if (end !== undefined) {
|
|
1366
|
-
localVarQueryParameter['end'] = (end instanceof Date) ?
|
|
1367
|
-
end.toISOString() :
|
|
1368
|
-
end;
|
|
1369
|
-
}
|
|
1370
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1371
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1372
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1373
|
-
return {
|
|
1374
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1375
|
-
options: localVarRequestOptions,
|
|
1376
|
-
};
|
|
1377
|
-
}),
|
|
1378
|
-
/**
|
|
1379
|
-
* Update a fulfillment that belongs to an order placed through the platform
|
|
1380
|
-
* @summary Update fulfillment
|
|
1381
|
-
* @param {string} project Project unique identifier
|
|
1382
|
-
* @param {string} platformId The platform identifier
|
|
1383
|
-
* @param {string} fulfillmentId The fulfillment identifier
|
|
1384
|
-
* @param {UpdateFulfillmentRequest} updateFulfillmentRequest
|
|
1385
|
-
* @param {*} [options] Override http request option.
|
|
1386
|
-
* @throws {RequiredError}
|
|
1387
|
-
*/
|
|
1388
|
-
updateFulfillment: (project_1, platformId_1, fulfillmentId_1, updateFulfillmentRequest_1, ...args_1) => __awaiter(this, [project_1, platformId_1, fulfillmentId_1, updateFulfillmentRequest_1, ...args_1], void 0, function* (project, platformId, fulfillmentId, updateFulfillmentRequest, options = {}) {
|
|
1389
|
-
// verify required parameter 'project' is not null or undefined
|
|
1390
|
-
(0, common_1.assertParamExists)('updateFulfillment', 'project', project);
|
|
1391
|
-
// verify required parameter 'platformId' is not null or undefined
|
|
1392
|
-
(0, common_1.assertParamExists)('updateFulfillment', 'platformId', platformId);
|
|
1393
|
-
// verify required parameter 'fulfillmentId' is not null or undefined
|
|
1394
|
-
(0, common_1.assertParamExists)('updateFulfillment', 'fulfillmentId', fulfillmentId);
|
|
1395
|
-
// verify required parameter 'updateFulfillmentRequest' is not null or undefined
|
|
1396
|
-
(0, common_1.assertParamExists)('updateFulfillment', 'updateFulfillmentRequest', updateFulfillmentRequest);
|
|
1397
|
-
const localVarPath = `/v1/platform/{platformId}/fulfillments/{fulfillmentId}`
|
|
1398
|
-
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
1399
|
-
.replace(`{${"fulfillmentId"}}`, encodeURIComponent(String(fulfillmentId)));
|
|
1400
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1401
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1402
|
-
let baseOptions;
|
|
1403
|
-
if (configuration) {
|
|
1404
|
-
baseOptions = configuration.baseOptions;
|
|
1405
|
-
}
|
|
1406
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
1407
|
-
const localVarHeaderParameter = {};
|
|
1408
|
-
const localVarQueryParameter = {};
|
|
1409
|
-
// authentication session-oauth required
|
|
1410
|
-
// oauth required
|
|
1411
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1412
|
-
// authentication api-key required
|
|
1413
|
-
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1414
|
-
if (project !== undefined) {
|
|
1415
|
-
localVarQueryParameter['project'] = project;
|
|
1416
|
-
}
|
|
1417
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1418
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1419
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1420
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1421
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateFulfillmentRequest, localVarRequestOptions, configuration);
|
|
1422
|
-
return {
|
|
1423
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1424
|
-
options: localVarRequestOptions,
|
|
1425
|
-
};
|
|
1426
|
-
}),
|
|
1427
|
-
/**
|
|
1428
|
-
*
|
|
1429
|
-
* @summary Update platform
|
|
1430
|
-
* @param {string} project Project unique identifier
|
|
1431
|
-
* @param {UpdatePlatformRequest} updatePlatformRequest
|
|
1432
|
-
* @param {*} [options] Override http request option.
|
|
1433
|
-
* @throws {RequiredError}
|
|
1434
|
-
*/
|
|
1435
|
-
updatePlatform: (project_1, updatePlatformRequest_1, ...args_1) => __awaiter(this, [project_1, updatePlatformRequest_1, ...args_1], void 0, function* (project, updatePlatformRequest, options = {}) {
|
|
1436
|
-
// verify required parameter 'project' is not null or undefined
|
|
1437
|
-
(0, common_1.assertParamExists)('updatePlatform', 'project', project);
|
|
1438
|
-
// verify required parameter 'updatePlatformRequest' is not null or undefined
|
|
1439
|
-
(0, common_1.assertParamExists)('updatePlatform', 'updatePlatformRequest', updatePlatformRequest);
|
|
1440
|
-
const localVarPath = `/v1/platform`;
|
|
1441
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1442
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1443
|
-
let baseOptions;
|
|
1444
|
-
if (configuration) {
|
|
1445
|
-
baseOptions = configuration.baseOptions;
|
|
1446
|
-
}
|
|
1447
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
1448
|
-
const localVarHeaderParameter = {};
|
|
1449
|
-
const localVarQueryParameter = {};
|
|
1450
|
-
// authentication session-oauth required
|
|
1451
|
-
// oauth required
|
|
1452
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1453
|
-
// authentication api-key required
|
|
1454
|
-
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1455
|
-
if (project !== undefined) {
|
|
1456
|
-
localVarQueryParameter['project'] = project;
|
|
1457
|
-
}
|
|
1458
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1459
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1460
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1461
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1462
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updatePlatformRequest, localVarRequestOptions, configuration);
|
|
1463
|
-
return {
|
|
1464
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1465
|
-
options: localVarRequestOptions,
|
|
1466
|
-
};
|
|
1467
|
-
}),
|
|
1468
|
-
/**
|
|
1469
|
-
* Updates the warehouse product and its variants
|
|
1470
|
-
* @summary Update warehouse product
|
|
1471
|
-
* @param {string} project Project unique identifier
|
|
1472
|
-
* @param {string} platformId The platform identifier
|
|
1473
|
-
* @param {string} productId Products unique identifier
|
|
1474
|
-
* @param {UpdateProductRequest} updateProductRequest Update a platform warehouse product
|
|
1475
|
-
* @param {*} [options] Override http request option.
|
|
1476
|
-
* @throws {RequiredError}
|
|
1477
|
-
*/
|
|
1478
|
-
updateProduct: (project_1, platformId_1, productId_1, updateProductRequest_1, ...args_1) => __awaiter(this, [project_1, platformId_1, productId_1, updateProductRequest_1, ...args_1], void 0, function* (project, platformId, productId, updateProductRequest, options = {}) {
|
|
1479
|
-
// verify required parameter 'project' is not null or undefined
|
|
1480
|
-
(0, common_1.assertParamExists)('updateProduct', 'project', project);
|
|
1481
|
-
// verify required parameter 'platformId' is not null or undefined
|
|
1482
|
-
(0, common_1.assertParamExists)('updateProduct', 'platformId', platformId);
|
|
1483
|
-
// verify required parameter 'productId' is not null or undefined
|
|
1484
|
-
(0, common_1.assertParamExists)('updateProduct', 'productId', productId);
|
|
1485
|
-
// verify required parameter 'updateProductRequest' is not null or undefined
|
|
1486
|
-
(0, common_1.assertParamExists)('updateProduct', 'updateProductRequest', updateProductRequest);
|
|
1487
|
-
const localVarPath = `/v1/platform/{platformId}/warehouse/products/{productId}`
|
|
1488
|
-
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
1489
|
-
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
1490
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1491
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1492
|
-
let baseOptions;
|
|
1493
|
-
if (configuration) {
|
|
1494
|
-
baseOptions = configuration.baseOptions;
|
|
1495
|
-
}
|
|
1496
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
1497
|
-
const localVarHeaderParameter = {};
|
|
1498
|
-
const localVarQueryParameter = {};
|
|
1499
|
-
// authentication session-oauth required
|
|
1500
|
-
// oauth required
|
|
1501
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1502
|
-
// authentication api-key required
|
|
1503
|
-
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1504
|
-
if (project !== undefined) {
|
|
1505
|
-
localVarQueryParameter['project'] = project;
|
|
1506
|
-
}
|
|
1507
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1508
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1509
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1510
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1511
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateProductRequest, localVarRequestOptions, configuration);
|
|
1512
|
-
return {
|
|
1513
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1514
|
-
options: localVarRequestOptions,
|
|
1515
|
-
};
|
|
1516
|
-
}),
|
|
1517
|
-
/**
|
|
1518
|
-
* Updates the warehouse variant
|
|
1519
|
-
* @summary Update warehouse variant
|
|
1520
|
-
* @param {string} project Project unique identifier
|
|
1521
|
-
* @param {string} platformId The platform identifier
|
|
1522
|
-
* @param {string} variantId Variants unique identifier
|
|
1523
|
-
* @param {UpdateVariantRequest} updateVariantRequest Update a platform warehouse variant
|
|
1524
|
-
* @param {*} [options] Override http request option.
|
|
1525
|
-
* @throws {RequiredError}
|
|
1526
|
-
*/
|
|
1527
|
-
updateVariant: (project_1, platformId_1, variantId_1, updateVariantRequest_1, ...args_1) => __awaiter(this, [project_1, platformId_1, variantId_1, updateVariantRequest_1, ...args_1], void 0, function* (project, platformId, variantId, updateVariantRequest, options = {}) {
|
|
1528
|
-
// verify required parameter 'project' is not null or undefined
|
|
1529
|
-
(0, common_1.assertParamExists)('updateVariant', 'project', project);
|
|
1530
|
-
// verify required parameter 'platformId' is not null or undefined
|
|
1531
|
-
(0, common_1.assertParamExists)('updateVariant', 'platformId', platformId);
|
|
1532
|
-
// verify required parameter 'variantId' is not null or undefined
|
|
1533
|
-
(0, common_1.assertParamExists)('updateVariant', 'variantId', variantId);
|
|
1534
|
-
// verify required parameter 'updateVariantRequest' is not null or undefined
|
|
1535
|
-
(0, common_1.assertParamExists)('updateVariant', 'updateVariantRequest', updateVariantRequest);
|
|
1536
|
-
const localVarPath = `/v1/platform/{platformId}/warehouse/variants/{variantId}`
|
|
1537
|
-
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
1538
|
-
.replace(`{${"variantId"}}`, encodeURIComponent(String(variantId)));
|
|
1539
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1540
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1541
|
-
let baseOptions;
|
|
1542
|
-
if (configuration) {
|
|
1543
|
-
baseOptions = configuration.baseOptions;
|
|
1544
|
-
}
|
|
1545
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
1546
|
-
const localVarHeaderParameter = {};
|
|
1547
|
-
const localVarQueryParameter = {};
|
|
1548
|
-
// authentication session-oauth required
|
|
1549
|
-
// oauth required
|
|
1550
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1551
|
-
// authentication api-key required
|
|
1552
|
-
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1553
|
-
if (project !== undefined) {
|
|
1554
|
-
localVarQueryParameter['project'] = project;
|
|
1555
|
-
}
|
|
1556
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1557
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1558
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1559
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1560
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateVariantRequest, localVarRequestOptions, configuration);
|
|
1561
|
-
return {
|
|
1562
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1563
|
-
options: localVarRequestOptions,
|
|
1564
|
-
};
|
|
1565
|
-
}),
|
|
1566
|
-
};
|
|
1567
|
-
};
|
|
1568
|
-
exports.PlatformApiAxiosParamCreator = PlatformApiAxiosParamCreator;
|
|
1569
|
-
/**
|
|
1570
|
-
* PlatformApi - functional programming interface
|
|
1571
|
-
* @export
|
|
1572
|
-
*/
|
|
1573
|
-
const PlatformApiFp = function (configuration) {
|
|
1574
|
-
const localVarAxiosParamCreator = (0, exports.PlatformApiAxiosParamCreator)(configuration);
|
|
1575
|
-
return {
|
|
1576
|
-
/**
|
|
1577
|
-
* Export customers as a CSV file
|
|
1578
|
-
* @summary Export customers
|
|
1579
|
-
* @param {string} project Project unique identifier
|
|
1580
|
-
* @param {string} platformId The platform identifier
|
|
1581
|
-
* @param {*} [options] Override http request option.
|
|
1582
|
-
* @throws {RequiredError}
|
|
1583
|
-
*/
|
|
1584
|
-
exportCustomers(project, platformId, options) {
|
|
1585
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1586
|
-
var _a, _b, _c;
|
|
1587
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.exportCustomers(project, platformId, options);
|
|
1588
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1589
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PlatformApi.exportCustomers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1590
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1591
|
-
});
|
|
1592
|
-
},
|
|
1593
|
-
/**
|
|
1594
|
-
* Export orders as a CSV file
|
|
1595
|
-
* @summary Export orders
|
|
1596
|
-
* @param {string} project Project unique identifier
|
|
1597
|
-
* @param {string} platformId The platform identifier
|
|
1598
|
-
* @param {string} start Start of date range to filter by when orders were placed
|
|
1599
|
-
* @param {string} [end] End of date range to filter by when orders were placed
|
|
1600
|
-
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
1601
|
-
* @param {*} [options] Override http request option.
|
|
1602
|
-
* @throws {RequiredError}
|
|
1603
|
-
*/
|
|
1604
|
-
exportOrders(project, platformId, start, end, search, options) {
|
|
1605
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1606
|
-
var _a, _b, _c;
|
|
1607
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.exportOrders(project, platformId, start, end, search, options);
|
|
1608
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1609
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PlatformApi.exportOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1610
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1611
|
-
});
|
|
1612
|
-
},
|
|
1613
|
-
/**
|
|
1614
|
-
* Get a customer for a platform by a given customer ID.
|
|
1615
|
-
* @summary Get customer
|
|
1616
|
-
* @param {string} project Project unique identifier
|
|
1617
|
-
* @param {string} platformId The platform identifier
|
|
1618
|
-
* @param {string} customerId The customer identifier
|
|
1619
|
-
* @param {*} [options] Override http request option.
|
|
1620
|
-
* @throws {RequiredError}
|
|
1621
|
-
*/
|
|
1622
|
-
getCustomer(project, platformId, customerId, options) {
|
|
1623
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1624
|
-
var _a, _b, _c;
|
|
1625
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomer(project, platformId, customerId, options);
|
|
1626
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1627
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PlatformApi.getCustomer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1628
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1629
|
-
});
|
|
1630
|
-
},
|
|
1631
|
-
/**
|
|
1632
|
-
* Get a fulfillment for a platform by a given fulfillment ID.
|
|
1633
|
-
* @summary Get fulfillment
|
|
1634
|
-
* @param {string} project Project unique identifier
|
|
1635
|
-
* @param {string} platformId The platform identifier
|
|
1636
|
-
* @param {string} fulfillmentId The fulfillment identifier
|
|
1637
|
-
* @param {*} [options] Override http request option.
|
|
1638
|
-
* @throws {RequiredError}
|
|
1639
|
-
*/
|
|
1640
|
-
getFulfillment(project, platformId, fulfillmentId, options) {
|
|
1641
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1642
|
-
var _a, _b, _c;
|
|
1643
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getFulfillment(project, platformId, fulfillmentId, options);
|
|
1644
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1645
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PlatformApi.getFulfillment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1646
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1647
|
-
});
|
|
1648
|
-
},
|
|
1649
|
-
/**
|
|
1650
|
-
* Get an order for a platform by a given order ID.
|
|
1651
|
-
* @summary Get order
|
|
1652
|
-
* @param {string} project Project unique identifier
|
|
1653
|
-
* @param {string} platformId The platform identifier
|
|
1654
|
-
* @param {string} orderId The order identifier
|
|
1655
|
-
* @param {*} [options] Override http request option.
|
|
1656
|
-
* @throws {RequiredError}
|
|
1657
|
-
*/
|
|
1658
|
-
getOrder(project, platformId, orderId, options) {
|
|
1659
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1660
|
-
var _a, _b, _c;
|
|
1661
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrder(project, platformId, orderId, options);
|
|
1662
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1663
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PlatformApi.getOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1664
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1665
|
-
});
|
|
1666
|
-
},
|
|
1667
|
-
/**
|
|
1668
|
-
*
|
|
1669
|
-
* @summary Get platform details
|
|
1670
|
-
* @param {string} project Project unique identifier
|
|
1671
|
-
* @param {*} [options] Override http request option.
|
|
1672
|
-
* @throws {RequiredError}
|
|
1673
|
-
*/
|
|
1674
|
-
getPlatform(project, options) {
|
|
1675
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1676
|
-
var _a, _b, _c;
|
|
1677
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPlatform(project, options);
|
|
1678
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1679
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PlatformApi.getPlatform']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1680
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1681
|
-
});
|
|
1682
|
-
},
|
|
1683
|
-
/**
|
|
1684
|
-
* List available fulfillers for a given fulfillment
|
|
1685
|
-
* @summary List available fulfillers
|
|
1686
|
-
* @param {string} project Project unique identifier
|
|
1687
|
-
* @param {string} platformId The platform identifier
|
|
1688
|
-
* @param {string} fulfillmentId The fulfillment identifier
|
|
1689
|
-
* @param {*} [options] Override http request option.
|
|
1690
|
-
* @throws {RequiredError}
|
|
1691
|
-
*/
|
|
1692
|
-
listAvailableFulfillers(project, platformId, fulfillmentId, options) {
|
|
1693
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1694
|
-
var _a, _b, _c;
|
|
1695
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAvailableFulfillers(project, platformId, fulfillmentId, options);
|
|
1696
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1697
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PlatformApi.listAvailableFulfillers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1698
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1699
|
-
});
|
|
1700
|
-
},
|
|
1701
|
-
/**
|
|
1702
|
-
* List customers for a platform
|
|
1703
|
-
* @summary List customers
|
|
1704
|
-
* @param {string} project Project unique identifier
|
|
1705
|
-
* @param {string} platformId The platform identifier
|
|
1706
|
-
* @param {number} [pageToken] Page reference token
|
|
1707
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1708
|
-
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
1709
|
-
* @param {*} [options] Override http request option.
|
|
1710
|
-
* @throws {RequiredError}
|
|
1711
|
-
*/
|
|
1712
|
-
listCustomers(project, platformId, pageToken, pageSize, search, options) {
|
|
1713
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1714
|
-
var _a, _b, _c;
|
|
1715
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomers(project, platformId, pageToken, pageSize, search, options);
|
|
1716
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1717
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PlatformApi.listCustomers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1718
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1719
|
-
});
|
|
1720
|
-
},
|
|
1721
|
-
/**
|
|
1722
|
-
* Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
|
|
1723
|
-
* @summary List orders
|
|
1724
|
-
* @param {string} project Project unique identifier
|
|
1725
|
-
* @param {string} platformId The platform identifier
|
|
1726
|
-
* @param {number} [pageToken] Page reference token
|
|
1727
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1728
|
-
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
1729
|
-
* @param {string} [start] Start of date range to filter by when orders were placed
|
|
1730
|
-
* @param {string} [end] End of date range to filter by when orders were placed
|
|
1731
|
-
* @param {*} [options] Override http request option.
|
|
1732
|
-
* @throws {RequiredError}
|
|
1733
|
-
*/
|
|
1734
|
-
listOrders(project, platformId, pageToken, pageSize, search, start, end, options) {
|
|
1735
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1736
|
-
var _a, _b, _c;
|
|
1737
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrders(project, platformId, pageToken, pageSize, search, start, end, options);
|
|
1738
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1739
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PlatformApi.listOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1740
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1741
|
-
});
|
|
1742
|
-
},
|
|
1743
|
-
/**
|
|
1744
|
-
* Update a fulfillment that belongs to an order placed through the platform
|
|
1745
|
-
* @summary Update fulfillment
|
|
1746
|
-
* @param {string} project Project unique identifier
|
|
1747
|
-
* @param {string} platformId The platform identifier
|
|
1748
|
-
* @param {string} fulfillmentId The fulfillment identifier
|
|
1749
|
-
* @param {UpdateFulfillmentRequest} updateFulfillmentRequest
|
|
1750
|
-
* @param {*} [options] Override http request option.
|
|
1751
|
-
* @throws {RequiredError}
|
|
1752
|
-
*/
|
|
1753
|
-
updateFulfillment(project, platformId, fulfillmentId, updateFulfillmentRequest, options) {
|
|
1754
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1755
|
-
var _a, _b, _c;
|
|
1756
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateFulfillment(project, platformId, fulfillmentId, updateFulfillmentRequest, options);
|
|
1757
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1758
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PlatformApi.updateFulfillment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1759
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1760
|
-
});
|
|
1761
|
-
},
|
|
1762
|
-
/**
|
|
1763
|
-
*
|
|
1764
|
-
* @summary Update platform
|
|
1765
|
-
* @param {string} project Project unique identifier
|
|
1766
|
-
* @param {UpdatePlatformRequest} updatePlatformRequest
|
|
1767
|
-
* @param {*} [options] Override http request option.
|
|
1768
|
-
* @throws {RequiredError}
|
|
1769
|
-
*/
|
|
1770
|
-
updatePlatform(project, updatePlatformRequest, options) {
|
|
1771
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1772
|
-
var _a, _b, _c;
|
|
1773
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePlatform(project, updatePlatformRequest, options);
|
|
1774
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1775
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PlatformApi.updatePlatform']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1776
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1777
|
-
});
|
|
1778
|
-
},
|
|
1779
|
-
/**
|
|
1780
|
-
* Updates the warehouse product and its variants
|
|
1781
|
-
* @summary Update warehouse product
|
|
1782
|
-
* @param {string} project Project unique identifier
|
|
1783
|
-
* @param {string} platformId The platform identifier
|
|
1784
|
-
* @param {string} productId Products unique identifier
|
|
1785
|
-
* @param {UpdateProductRequest} updateProductRequest Update a platform warehouse product
|
|
1786
|
-
* @param {*} [options] Override http request option.
|
|
1787
|
-
* @throws {RequiredError}
|
|
1788
|
-
*/
|
|
1789
|
-
updateProduct(project, platformId, productId, updateProductRequest, options) {
|
|
1790
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1791
|
-
var _a, _b, _c;
|
|
1792
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateProduct(project, platformId, productId, updateProductRequest, options);
|
|
1793
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1794
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PlatformApi.updateProduct']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1795
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1796
|
-
});
|
|
1797
|
-
},
|
|
1798
|
-
/**
|
|
1799
|
-
* Updates the warehouse variant
|
|
1800
|
-
* @summary Update warehouse variant
|
|
1801
|
-
* @param {string} project Project unique identifier
|
|
1802
|
-
* @param {string} platformId The platform identifier
|
|
1803
|
-
* @param {string} variantId Variants unique identifier
|
|
1804
|
-
* @param {UpdateVariantRequest} updateVariantRequest Update a platform warehouse variant
|
|
1805
|
-
* @param {*} [options] Override http request option.
|
|
1806
|
-
* @throws {RequiredError}
|
|
1807
|
-
*/
|
|
1808
|
-
updateVariant(project, platformId, variantId, updateVariantRequest, options) {
|
|
1809
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1810
|
-
var _a, _b, _c;
|
|
1811
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateVariant(project, platformId, variantId, updateVariantRequest, options);
|
|
1812
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1813
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PlatformApi.updateVariant']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1814
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1815
|
-
});
|
|
1816
|
-
},
|
|
1817
|
-
};
|
|
1818
|
-
};
|
|
1819
|
-
exports.PlatformApiFp = PlatformApiFp;
|
|
1820
|
-
/**
|
|
1821
|
-
* PlatformApi - factory interface
|
|
1822
|
-
* @export
|
|
1823
|
-
*/
|
|
1824
|
-
const PlatformApiFactory = function (configuration, basePath, axios) {
|
|
1825
|
-
const localVarFp = (0, exports.PlatformApiFp)(configuration);
|
|
1826
|
-
return {
|
|
1827
|
-
/**
|
|
1828
|
-
* Export customers as a CSV file
|
|
1829
|
-
* @summary Export customers
|
|
1830
|
-
* @param {PlatformApiExportCustomersRequest} requestParameters Request parameters.
|
|
1831
|
-
* @param {*} [options] Override http request option.
|
|
1832
|
-
* @throws {RequiredError}
|
|
1833
|
-
*/
|
|
1834
|
-
exportCustomers(requestParameters, options) {
|
|
1835
|
-
return localVarFp.exportCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
|
|
1836
|
-
},
|
|
1837
|
-
/**
|
|
1838
|
-
* Export orders as a CSV file
|
|
1839
|
-
* @summary Export orders
|
|
1840
|
-
* @param {PlatformApiExportOrdersRequest} requestParameters Request parameters.
|
|
1841
|
-
* @param {*} [options] Override http request option.
|
|
1842
|
-
* @throws {RequiredError}
|
|
1843
|
-
*/
|
|
1844
|
-
exportOrders(requestParameters, options) {
|
|
1845
|
-
return localVarFp.exportOrders(requestParameters.project, requestParameters.platformId, requestParameters.start, requestParameters.end, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
1846
|
-
},
|
|
1847
|
-
/**
|
|
1848
|
-
* Get a customer for a platform by a given customer ID.
|
|
1849
|
-
* @summary Get customer
|
|
1850
|
-
* @param {PlatformApiGetCustomerRequest} requestParameters Request parameters.
|
|
1851
|
-
* @param {*} [options] Override http request option.
|
|
1852
|
-
* @throws {RequiredError}
|
|
1853
|
-
*/
|
|
1854
|
-
getCustomer(requestParameters, options) {
|
|
1855
|
-
return localVarFp.getCustomer(requestParameters.project, requestParameters.platformId, requestParameters.customerId, options).then((request) => request(axios, basePath));
|
|
1856
|
-
},
|
|
1857
|
-
/**
|
|
1858
|
-
* Get a fulfillment for a platform by a given fulfillment ID.
|
|
1859
|
-
* @summary Get fulfillment
|
|
1860
|
-
* @param {PlatformApiGetFulfillmentRequest} requestParameters Request parameters.
|
|
1861
|
-
* @param {*} [options] Override http request option.
|
|
1862
|
-
* @throws {RequiredError}
|
|
1863
|
-
*/
|
|
1864
|
-
getFulfillment(requestParameters, options) {
|
|
1865
|
-
return localVarFp.getFulfillment(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, options).then((request) => request(axios, basePath));
|
|
1866
|
-
},
|
|
1867
|
-
/**
|
|
1868
|
-
* Get an order for a platform by a given order ID.
|
|
1869
|
-
* @summary Get order
|
|
1870
|
-
* @param {PlatformApiGetOrderRequest} requestParameters Request parameters.
|
|
1871
|
-
* @param {*} [options] Override http request option.
|
|
1872
|
-
* @throws {RequiredError}
|
|
1873
|
-
*/
|
|
1874
|
-
getOrder(requestParameters, options) {
|
|
1875
|
-
return localVarFp.getOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(axios, basePath));
|
|
1876
|
-
},
|
|
1877
|
-
/**
|
|
1878
|
-
*
|
|
1879
|
-
* @summary Get platform details
|
|
1880
|
-
* @param {PlatformApiGetPlatformRequest} requestParameters Request parameters.
|
|
1881
|
-
* @param {*} [options] Override http request option.
|
|
1882
|
-
* @throws {RequiredError}
|
|
1883
|
-
*/
|
|
1884
|
-
getPlatform(requestParameters, options) {
|
|
1885
|
-
return localVarFp.getPlatform(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
1886
|
-
},
|
|
1887
|
-
/**
|
|
1888
|
-
* List available fulfillers for a given fulfillment
|
|
1889
|
-
* @summary List available fulfillers
|
|
1890
|
-
* @param {PlatformApiListAvailableFulfillersRequest} requestParameters Request parameters.
|
|
1891
|
-
* @param {*} [options] Override http request option.
|
|
1892
|
-
* @throws {RequiredError}
|
|
1893
|
-
*/
|
|
1894
|
-
listAvailableFulfillers(requestParameters, options) {
|
|
1895
|
-
return localVarFp.listAvailableFulfillers(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, options).then((request) => request(axios, basePath));
|
|
1896
|
-
},
|
|
1897
|
-
/**
|
|
1898
|
-
* List customers for a platform
|
|
1899
|
-
* @summary List customers
|
|
1900
|
-
* @param {PlatformApiListCustomersRequest} requestParameters Request parameters.
|
|
1901
|
-
* @param {*} [options] Override http request option.
|
|
1902
|
-
* @throws {RequiredError}
|
|
1903
|
-
*/
|
|
1904
|
-
listCustomers(requestParameters, options) {
|
|
1905
|
-
return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
1906
|
-
},
|
|
1907
|
-
/**
|
|
1908
|
-
* Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
|
|
1909
|
-
* @summary List orders
|
|
1910
|
-
* @param {PlatformApiListOrdersRequest} requestParameters Request parameters.
|
|
1911
|
-
* @param {*} [options] Override http request option.
|
|
1912
|
-
* @throws {RequiredError}
|
|
1913
|
-
*/
|
|
1914
|
-
listOrders(requestParameters, options) {
|
|
1915
|
-
return localVarFp.listOrders(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
1916
|
-
},
|
|
1917
|
-
/**
|
|
1918
|
-
* Update a fulfillment that belongs to an order placed through the platform
|
|
1919
|
-
* @summary Update fulfillment
|
|
1920
|
-
* @param {PlatformApiUpdateFulfillmentRequest} requestParameters Request parameters.
|
|
1921
|
-
* @param {*} [options] Override http request option.
|
|
1922
|
-
* @throws {RequiredError}
|
|
1923
|
-
*/
|
|
1924
|
-
updateFulfillment(requestParameters, options) {
|
|
1925
|
-
return localVarFp.updateFulfillment(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, requestParameters.updateFulfillmentRequest, options).then((request) => request(axios, basePath));
|
|
1926
|
-
},
|
|
1927
|
-
/**
|
|
1928
|
-
*
|
|
1929
|
-
* @summary Update platform
|
|
1930
|
-
* @param {PlatformApiUpdatePlatformRequest} requestParameters Request parameters.
|
|
1170
|
+
* @summary Update platform
|
|
1171
|
+
* @param {PlatformApiUpdatePlatformRequest} requestParameters Request parameters.
|
|
1931
1172
|
* @param {*} [options] Override http request option.
|
|
1932
1173
|
* @throws {RequiredError}
|
|
1933
1174
|
*/
|
|
1934
1175
|
updatePlatform(requestParameters, options) {
|
|
1935
1176
|
return localVarFp.updatePlatform(requestParameters.project, requestParameters.updatePlatformRequest, options).then((request) => request(axios, basePath));
|
|
1936
1177
|
},
|
|
1937
|
-
/**
|
|
1938
|
-
* Updates the warehouse product and its variants
|
|
1939
|
-
* @summary Update warehouse product
|
|
1940
|
-
* @param {PlatformApiUpdateProductRequest} requestParameters Request parameters.
|
|
1941
|
-
* @param {*} [options] Override http request option.
|
|
1942
|
-
* @throws {RequiredError}
|
|
1943
|
-
*/
|
|
1944
|
-
updateProduct(requestParameters, options) {
|
|
1945
|
-
return localVarFp.updateProduct(requestParameters.project, requestParameters.platformId, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(axios, basePath));
|
|
1946
|
-
},
|
|
1947
|
-
/**
|
|
1948
|
-
* Updates the warehouse variant
|
|
1949
|
-
* @summary Update warehouse variant
|
|
1950
|
-
* @param {PlatformApiUpdateVariantRequest} requestParameters Request parameters.
|
|
1951
|
-
* @param {*} [options] Override http request option.
|
|
1952
|
-
* @throws {RequiredError}
|
|
1953
|
-
*/
|
|
1954
|
-
updateVariant(requestParameters, options) {
|
|
1955
|
-
return localVarFp.updateVariant(requestParameters.project, requestParameters.platformId, requestParameters.variantId, requestParameters.updateVariantRequest, options).then((request) => request(axios, basePath));
|
|
1956
|
-
},
|
|
1957
1178
|
};
|
|
1958
1179
|
};
|
|
1959
1180
|
exports.PlatformApiFactory = PlatformApiFactory;
|
|
@@ -1964,61 +1185,6 @@ exports.PlatformApiFactory = PlatformApiFactory;
|
|
|
1964
1185
|
* @extends {BaseAPI}
|
|
1965
1186
|
*/
|
|
1966
1187
|
class PlatformApi extends base_1.BaseAPI {
|
|
1967
|
-
/**
|
|
1968
|
-
* Export customers as a CSV file
|
|
1969
|
-
* @summary Export customers
|
|
1970
|
-
* @param {PlatformApiExportCustomersRequest} requestParameters Request parameters.
|
|
1971
|
-
* @param {*} [options] Override http request option.
|
|
1972
|
-
* @throws {RequiredError}
|
|
1973
|
-
* @memberof PlatformApi
|
|
1974
|
-
*/
|
|
1975
|
-
exportCustomers(requestParameters, options) {
|
|
1976
|
-
return (0, exports.PlatformApiFp)(this.configuration).exportCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
|
|
1977
|
-
}
|
|
1978
|
-
/**
|
|
1979
|
-
* Export orders as a CSV file
|
|
1980
|
-
* @summary Export orders
|
|
1981
|
-
* @param {PlatformApiExportOrdersRequest} requestParameters Request parameters.
|
|
1982
|
-
* @param {*} [options] Override http request option.
|
|
1983
|
-
* @throws {RequiredError}
|
|
1984
|
-
* @memberof PlatformApi
|
|
1985
|
-
*/
|
|
1986
|
-
exportOrders(requestParameters, options) {
|
|
1987
|
-
return (0, exports.PlatformApiFp)(this.configuration).exportOrders(requestParameters.project, requestParameters.platformId, requestParameters.start, requestParameters.end, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
1988
|
-
}
|
|
1989
|
-
/**
|
|
1990
|
-
* Get a customer for a platform by a given customer ID.
|
|
1991
|
-
* @summary Get customer
|
|
1992
|
-
* @param {PlatformApiGetCustomerRequest} requestParameters Request parameters.
|
|
1993
|
-
* @param {*} [options] Override http request option.
|
|
1994
|
-
* @throws {RequiredError}
|
|
1995
|
-
* @memberof PlatformApi
|
|
1996
|
-
*/
|
|
1997
|
-
getCustomer(requestParameters, options) {
|
|
1998
|
-
return (0, exports.PlatformApiFp)(this.configuration).getCustomer(requestParameters.project, requestParameters.platformId, requestParameters.customerId, options).then((request) => request(this.axios, this.basePath));
|
|
1999
|
-
}
|
|
2000
|
-
/**
|
|
2001
|
-
* Get a fulfillment for a platform by a given fulfillment ID.
|
|
2002
|
-
* @summary Get fulfillment
|
|
2003
|
-
* @param {PlatformApiGetFulfillmentRequest} requestParameters Request parameters.
|
|
2004
|
-
* @param {*} [options] Override http request option.
|
|
2005
|
-
* @throws {RequiredError}
|
|
2006
|
-
* @memberof PlatformApi
|
|
2007
|
-
*/
|
|
2008
|
-
getFulfillment(requestParameters, options) {
|
|
2009
|
-
return (0, exports.PlatformApiFp)(this.configuration).getFulfillment(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, options).then((request) => request(this.axios, this.basePath));
|
|
2010
|
-
}
|
|
2011
|
-
/**
|
|
2012
|
-
* Get an order for a platform by a given order ID.
|
|
2013
|
-
* @summary Get order
|
|
2014
|
-
* @param {PlatformApiGetOrderRequest} requestParameters Request parameters.
|
|
2015
|
-
* @param {*} [options] Override http request option.
|
|
2016
|
-
* @throws {RequiredError}
|
|
2017
|
-
* @memberof PlatformApi
|
|
2018
|
-
*/
|
|
2019
|
-
getOrder(requestParameters, options) {
|
|
2020
|
-
return (0, exports.PlatformApiFp)(this.configuration).getOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
|
|
2021
|
-
}
|
|
2022
1188
|
/**
|
|
2023
1189
|
*
|
|
2024
1190
|
* @summary Get platform details
|
|
@@ -2030,50 +1196,6 @@ class PlatformApi extends base_1.BaseAPI {
|
|
|
2030
1196
|
getPlatform(requestParameters, options) {
|
|
2031
1197
|
return (0, exports.PlatformApiFp)(this.configuration).getPlatform(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
2032
1198
|
}
|
|
2033
|
-
/**
|
|
2034
|
-
* List available fulfillers for a given fulfillment
|
|
2035
|
-
* @summary List available fulfillers
|
|
2036
|
-
* @param {PlatformApiListAvailableFulfillersRequest} requestParameters Request parameters.
|
|
2037
|
-
* @param {*} [options] Override http request option.
|
|
2038
|
-
* @throws {RequiredError}
|
|
2039
|
-
* @memberof PlatformApi
|
|
2040
|
-
*/
|
|
2041
|
-
listAvailableFulfillers(requestParameters, options) {
|
|
2042
|
-
return (0, exports.PlatformApiFp)(this.configuration).listAvailableFulfillers(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, options).then((request) => request(this.axios, this.basePath));
|
|
2043
|
-
}
|
|
2044
|
-
/**
|
|
2045
|
-
* List customers for a platform
|
|
2046
|
-
* @summary List customers
|
|
2047
|
-
* @param {PlatformApiListCustomersRequest} requestParameters Request parameters.
|
|
2048
|
-
* @param {*} [options] Override http request option.
|
|
2049
|
-
* @throws {RequiredError}
|
|
2050
|
-
* @memberof PlatformApi
|
|
2051
|
-
*/
|
|
2052
|
-
listCustomers(requestParameters, options) {
|
|
2053
|
-
return (0, exports.PlatformApiFp)(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
2054
|
-
}
|
|
2055
|
-
/**
|
|
2056
|
-
* Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
|
|
2057
|
-
* @summary List orders
|
|
2058
|
-
* @param {PlatformApiListOrdersRequest} requestParameters Request parameters.
|
|
2059
|
-
* @param {*} [options] Override http request option.
|
|
2060
|
-
* @throws {RequiredError}
|
|
2061
|
-
* @memberof PlatformApi
|
|
2062
|
-
*/
|
|
2063
|
-
listOrders(requestParameters, options) {
|
|
2064
|
-
return (0, exports.PlatformApiFp)(this.configuration).listOrders(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
2065
|
-
}
|
|
2066
|
-
/**
|
|
2067
|
-
* Update a fulfillment that belongs to an order placed through the platform
|
|
2068
|
-
* @summary Update fulfillment
|
|
2069
|
-
* @param {PlatformApiUpdateFulfillmentRequest} requestParameters Request parameters.
|
|
2070
|
-
* @param {*} [options] Override http request option.
|
|
2071
|
-
* @throws {RequiredError}
|
|
2072
|
-
* @memberof PlatformApi
|
|
2073
|
-
*/
|
|
2074
|
-
updateFulfillment(requestParameters, options) {
|
|
2075
|
-
return (0, exports.PlatformApiFp)(this.configuration).updateFulfillment(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, requestParameters.updateFulfillmentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2076
|
-
}
|
|
2077
1199
|
/**
|
|
2078
1200
|
*
|
|
2079
1201
|
* @summary Update platform
|
|
@@ -2085,28 +1207,6 @@ class PlatformApi extends base_1.BaseAPI {
|
|
|
2085
1207
|
updatePlatform(requestParameters, options) {
|
|
2086
1208
|
return (0, exports.PlatformApiFp)(this.configuration).updatePlatform(requestParameters.project, requestParameters.updatePlatformRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2087
1209
|
}
|
|
2088
|
-
/**
|
|
2089
|
-
* Updates the warehouse product and its variants
|
|
2090
|
-
* @summary Update warehouse product
|
|
2091
|
-
* @param {PlatformApiUpdateProductRequest} requestParameters Request parameters.
|
|
2092
|
-
* @param {*} [options] Override http request option.
|
|
2093
|
-
* @throws {RequiredError}
|
|
2094
|
-
* @memberof PlatformApi
|
|
2095
|
-
*/
|
|
2096
|
-
updateProduct(requestParameters, options) {
|
|
2097
|
-
return (0, exports.PlatformApiFp)(this.configuration).updateProduct(requestParameters.project, requestParameters.platformId, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2098
|
-
}
|
|
2099
|
-
/**
|
|
2100
|
-
* Updates the warehouse variant
|
|
2101
|
-
* @summary Update warehouse variant
|
|
2102
|
-
* @param {PlatformApiUpdateVariantRequest} requestParameters Request parameters.
|
|
2103
|
-
* @param {*} [options] Override http request option.
|
|
2104
|
-
* @throws {RequiredError}
|
|
2105
|
-
* @memberof PlatformApi
|
|
2106
|
-
*/
|
|
2107
|
-
updateVariant(requestParameters, options) {
|
|
2108
|
-
return (0, exports.PlatformApiFp)(this.configuration).updateVariant(requestParameters.project, requestParameters.platformId, requestParameters.variantId, requestParameters.updateVariantRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2109
|
-
}
|
|
2110
1210
|
}
|
|
2111
1211
|
exports.PlatformApi = PlatformApi;
|
|
2112
1212
|
/**
|