@teemill/platform 0.11.1 → 0.12.3
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 +308 -1537
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +257 -860
- package/dist/api.js +151 -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 +257 -860
- package/dist/esm/api.js +148 -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.12.3
|
|
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,14 @@ 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 {Array<ExportCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
85
|
+
* @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
|
|
86
|
+
* @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
|
|
83
87
|
* @param {*} [options] Override http request option.
|
|
84
88
|
* @throws {RequiredError}
|
|
85
89
|
*/
|
|
86
|
-
exportCustomers: (project_1, platformId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, ...args_1], void 0, function* (project, platformId, options = {}) {
|
|
90
|
+
exportCustomers: (project_1, platformId_1, totalOrderCount_1, sortBy_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1) => __awaiter(this, [project_1, platformId_1, totalOrderCount_1, sortBy_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1], void 0, function* (project, platformId, totalOrderCount, sortBy, lastPurchasedStart, lastPurchasedEnd, options = {}) {
|
|
87
91
|
// verify required parameter 'project' is not null or undefined
|
|
88
92
|
(0, common_1.assertParamExists)('exportCustomers', 'project', project);
|
|
89
93
|
// verify required parameter 'platformId' is not null or undefined
|
|
@@ -107,6 +111,20 @@ const CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
107
111
|
if (project !== undefined) {
|
|
108
112
|
localVarQueryParameter['project'] = project;
|
|
109
113
|
}
|
|
114
|
+
if (totalOrderCount !== undefined) {
|
|
115
|
+
localVarQueryParameter['totalOrderCount'] = totalOrderCount;
|
|
116
|
+
}
|
|
117
|
+
if (sortBy) {
|
|
118
|
+
localVarQueryParameter['sortBy'] = sortBy;
|
|
119
|
+
}
|
|
120
|
+
if (lastPurchasedStart !== undefined) {
|
|
121
|
+
localVarQueryParameter['lastPurchasedStart'] = (lastPurchasedStart instanceof Date) ?
|
|
122
|
+
lastPurchasedStart.toISOString() :
|
|
123
|
+
lastPurchasedStart;
|
|
124
|
+
}
|
|
125
|
+
if (lastPurchasedEnd !== undefined) {
|
|
126
|
+
localVarQueryParameter['lastPurchasedEnd'] = lastPurchasedEnd;
|
|
127
|
+
}
|
|
110
128
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
111
129
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
112
130
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -167,10 +185,14 @@ const CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
167
185
|
* @param {number} [pageToken] Page reference token
|
|
168
186
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
169
187
|
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
188
|
+
* @param {Array<ListCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
189
|
+
* @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
|
|
190
|
+
* @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
|
|
191
|
+
* @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
|
|
170
192
|
* @param {*} [options] Override http request option.
|
|
171
193
|
* @throws {RequiredError}
|
|
172
194
|
*/
|
|
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 = {}) {
|
|
195
|
+
listCustomers: (project_1, platformId_1, pageToken_1, pageSize_1, search_1, sortBy_1, totalOrderCount_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1) => __awaiter(this, [project_1, platformId_1, pageToken_1, pageSize_1, search_1, sortBy_1, totalOrderCount_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1], void 0, function* (project, platformId, pageToken, pageSize, search, sortBy, totalOrderCount, lastPurchasedStart, lastPurchasedEnd, options = {}) {
|
|
174
196
|
// verify required parameter 'project' is not null or undefined
|
|
175
197
|
(0, common_1.assertParamExists)('listCustomers', 'project', project);
|
|
176
198
|
// verify required parameter 'platformId' is not null or undefined
|
|
@@ -203,6 +225,20 @@ const CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
203
225
|
if (search !== undefined) {
|
|
204
226
|
localVarQueryParameter['search'] = search;
|
|
205
227
|
}
|
|
228
|
+
if (sortBy) {
|
|
229
|
+
localVarQueryParameter['sortBy'] = sortBy;
|
|
230
|
+
}
|
|
231
|
+
if (totalOrderCount !== undefined) {
|
|
232
|
+
localVarQueryParameter['totalOrderCount'] = totalOrderCount;
|
|
233
|
+
}
|
|
234
|
+
if (lastPurchasedStart !== undefined) {
|
|
235
|
+
localVarQueryParameter['lastPurchasedStart'] = (lastPurchasedStart instanceof Date) ?
|
|
236
|
+
lastPurchasedStart.toISOString() :
|
|
237
|
+
lastPurchasedStart;
|
|
238
|
+
}
|
|
239
|
+
if (lastPurchasedEnd !== undefined) {
|
|
240
|
+
localVarQueryParameter['lastPurchasedEnd'] = lastPurchasedEnd;
|
|
241
|
+
}
|
|
206
242
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
207
243
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
208
244
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -226,13 +262,17 @@ const CustomersApiFp = function (configuration) {
|
|
|
226
262
|
* @summary Export customers
|
|
227
263
|
* @param {string} project Project unique identifier
|
|
228
264
|
* @param {string} platformId The platform identifier
|
|
265
|
+
* @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
|
|
266
|
+
* @param {Array<ExportCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
267
|
+
* @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
|
|
268
|
+
* @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
|
|
229
269
|
* @param {*} [options] Override http request option.
|
|
230
270
|
* @throws {RequiredError}
|
|
231
271
|
*/
|
|
232
|
-
exportCustomers(project, platformId, options) {
|
|
272
|
+
exportCustomers(project, platformId, totalOrderCount, sortBy, lastPurchasedStart, lastPurchasedEnd, options) {
|
|
233
273
|
return __awaiter(this, void 0, void 0, function* () {
|
|
234
274
|
var _a, _b, _c;
|
|
235
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.exportCustomers(project, platformId, options);
|
|
275
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.exportCustomers(project, platformId, totalOrderCount, sortBy, lastPurchasedStart, lastPurchasedEnd, options);
|
|
236
276
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
237
277
|
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
278
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -264,13 +304,17 @@ const CustomersApiFp = function (configuration) {
|
|
|
264
304
|
* @param {number} [pageToken] Page reference token
|
|
265
305
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
266
306
|
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
307
|
+
* @param {Array<ListCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
308
|
+
* @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
|
|
309
|
+
* @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
|
|
310
|
+
* @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
|
|
267
311
|
* @param {*} [options] Override http request option.
|
|
268
312
|
* @throws {RequiredError}
|
|
269
313
|
*/
|
|
270
|
-
listCustomers(project, platformId, pageToken, pageSize, search, options) {
|
|
314
|
+
listCustomers(project, platformId, pageToken, pageSize, search, sortBy, totalOrderCount, lastPurchasedStart, lastPurchasedEnd, options) {
|
|
271
315
|
return __awaiter(this, void 0, void 0, function* () {
|
|
272
316
|
var _a, _b, _c;
|
|
273
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomers(project, platformId, pageToken, pageSize, search, options);
|
|
317
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomers(project, platformId, pageToken, pageSize, search, sortBy, totalOrderCount, lastPurchasedStart, lastPurchasedEnd, options);
|
|
274
318
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
275
319
|
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
320
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -294,7 +338,7 @@ const CustomersApiFactory = function (configuration, basePath, axios) {
|
|
|
294
338
|
* @throws {RequiredError}
|
|
295
339
|
*/
|
|
296
340
|
exportCustomers(requestParameters, options) {
|
|
297
|
-
return localVarFp.exportCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
|
|
341
|
+
return localVarFp.exportCustomers(requestParameters.project, requestParameters.platformId, requestParameters.totalOrderCount, requestParameters.sortBy, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
|
|
298
342
|
},
|
|
299
343
|
/**
|
|
300
344
|
* Get a customer for a platform by a given customer ID.
|
|
@@ -314,7 +358,7 @@ const CustomersApiFactory = function (configuration, basePath, axios) {
|
|
|
314
358
|
* @throws {RequiredError}
|
|
315
359
|
*/
|
|
316
360
|
listCustomers(requestParameters, options) {
|
|
317
|
-
return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
361
|
+
return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.totalOrderCount, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
|
|
318
362
|
},
|
|
319
363
|
};
|
|
320
364
|
};
|
|
@@ -335,7 +379,7 @@ class CustomersApi extends base_1.BaseAPI {
|
|
|
335
379
|
* @memberof CustomersApi
|
|
336
380
|
*/
|
|
337
381
|
exportCustomers(requestParameters, options) {
|
|
338
|
-
return (0, exports.CustomersApiFp)(this.configuration).exportCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
|
|
382
|
+
return (0, exports.CustomersApiFp)(this.configuration).exportCustomers(requestParameters.project, requestParameters.platformId, requestParameters.totalOrderCount, requestParameters.sortBy, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(this.axios, this.basePath));
|
|
339
383
|
}
|
|
340
384
|
/**
|
|
341
385
|
* Get a customer for a platform by a given customer ID.
|
|
@@ -357,10 +401,32 @@ class CustomersApi extends base_1.BaseAPI {
|
|
|
357
401
|
* @memberof CustomersApi
|
|
358
402
|
*/
|
|
359
403
|
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));
|
|
404
|
+
return (0, exports.CustomersApiFp)(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.totalOrderCount, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(this.axios, this.basePath));
|
|
361
405
|
}
|
|
362
406
|
}
|
|
363
407
|
exports.CustomersApi = CustomersApi;
|
|
408
|
+
/**
|
|
409
|
+
* @export
|
|
410
|
+
*/
|
|
411
|
+
exports.ExportCustomersSortByEnum = {
|
|
412
|
+
LifetimeValue: '+lifetimeValue',
|
|
413
|
+
LifetimeValue2: '-lifetimeValue',
|
|
414
|
+
TotalOrderCount: '+totalOrderCount',
|
|
415
|
+
TotalOrderCount2: '-totalOrderCount',
|
|
416
|
+
LastPurchased: '+lastPurchased',
|
|
417
|
+
LastPurchased2: '-lastPurchased'
|
|
418
|
+
};
|
|
419
|
+
/**
|
|
420
|
+
* @export
|
|
421
|
+
*/
|
|
422
|
+
exports.ListCustomersSortByEnum = {
|
|
423
|
+
LifetimeValue: '+lifetimeValue',
|
|
424
|
+
LifetimeValue2: '-lifetimeValue',
|
|
425
|
+
TotalOrderCount: '+totalOrderCount',
|
|
426
|
+
TotalOrderCount2: '-totalOrderCount',
|
|
427
|
+
LastPurchased: '+lastPurchased',
|
|
428
|
+
LastPurchased2: '-lastPurchased'
|
|
429
|
+
};
|
|
364
430
|
/**
|
|
365
431
|
* OrdersApi - axios parameter creator
|
|
366
432
|
* @export
|
|
@@ -373,7 +439,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
373
439
|
* @param {string} project Project unique identifier
|
|
374
440
|
* @param {string} platformId The platform identifier
|
|
375
441
|
* @param {string} start Start of date range to filter by when orders were placed
|
|
376
|
-
* @param {string} [end] End of date range to filter
|
|
442
|
+
* @param {string} [end] End of date range to filter when orders were placed
|
|
377
443
|
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
378
444
|
* @param {*} [options] Override http request option.
|
|
379
445
|
* @throws {RequiredError}
|
|
@@ -565,8 +631,8 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
565
631
|
* @param {number} [pageToken] Page reference token
|
|
566
632
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
567
633
|
* @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
|
|
634
|
+
* @param {string} [start] Start of date range to filter when orders were placed
|
|
635
|
+
* @param {string} [end] End of date range to filter when orders were placed
|
|
570
636
|
* @param {*} [options] Override http request option.
|
|
571
637
|
* @throws {RequiredError}
|
|
572
638
|
*/
|
|
@@ -686,7 +752,7 @@ const OrdersApiFp = function (configuration) {
|
|
|
686
752
|
* @param {string} project Project unique identifier
|
|
687
753
|
* @param {string} platformId The platform identifier
|
|
688
754
|
* @param {string} start Start of date range to filter by when orders were placed
|
|
689
|
-
* @param {string} [end] End of date range to filter
|
|
755
|
+
* @param {string} [end] End of date range to filter when orders were placed
|
|
690
756
|
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
691
757
|
* @param {*} [options] Override http request option.
|
|
692
758
|
* @throws {RequiredError}
|
|
@@ -762,8 +828,8 @@ const OrdersApiFp = function (configuration) {
|
|
|
762
828
|
* @param {number} [pageToken] Page reference token
|
|
763
829
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
764
830
|
* @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
|
|
831
|
+
* @param {string} [start] Start of date range to filter when orders were placed
|
|
832
|
+
* @param {string} [end] End of date range to filter when orders were placed
|
|
767
833
|
* @param {*} [options] Override http request option.
|
|
768
834
|
* @throws {RequiredError}
|
|
769
835
|
*/
|
|
@@ -950,20 +1016,16 @@ exports.OrdersApi = OrdersApi;
|
|
|
950
1016
|
const PlatformApiAxiosParamCreator = function (configuration) {
|
|
951
1017
|
return {
|
|
952
1018
|
/**
|
|
953
|
-
*
|
|
954
|
-
* @summary
|
|
1019
|
+
*
|
|
1020
|
+
* @summary Get platform details
|
|
955
1021
|
* @param {string} project Project unique identifier
|
|
956
|
-
* @param {string} platformId The platform identifier
|
|
957
1022
|
* @param {*} [options] Override http request option.
|
|
958
1023
|
* @throws {RequiredError}
|
|
959
1024
|
*/
|
|
960
|
-
|
|
1025
|
+
getPlatform: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
|
|
961
1026
|
// 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)));
|
|
1027
|
+
(0, common_1.assertParamExists)('getPlatform', 'project', project);
|
|
1028
|
+
const localVarPath = `/v1/platform`;
|
|
967
1029
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
968
1030
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
969
1031
|
let baseOptions;
|
|
@@ -990,32 +1052,26 @@ const PlatformApiAxiosParamCreator = function (configuration) {
|
|
|
990
1052
|
};
|
|
991
1053
|
}),
|
|
992
1054
|
/**
|
|
993
|
-
*
|
|
994
|
-
* @summary
|
|
1055
|
+
*
|
|
1056
|
+
* @summary Update platform
|
|
995
1057
|
* @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
|
|
1058
|
+
* @param {UpdatePlatformRequest} updatePlatformRequest
|
|
1000
1059
|
* @param {*} [options] Override http request option.
|
|
1001
1060
|
* @throws {RequiredError}
|
|
1002
1061
|
*/
|
|
1003
|
-
|
|
1062
|
+
updatePlatform: (project_1, updatePlatformRequest_1, ...args_1) => __awaiter(this, [project_1, updatePlatformRequest_1, ...args_1], void 0, function* (project, updatePlatformRequest, options = {}) {
|
|
1004
1063
|
// 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)));
|
|
1064
|
+
(0, common_1.assertParamExists)('updatePlatform', 'project', project);
|
|
1065
|
+
// verify required parameter 'updatePlatformRequest' is not null or undefined
|
|
1066
|
+
(0, common_1.assertParamExists)('updatePlatform', 'updatePlatformRequest', updatePlatformRequest);
|
|
1067
|
+
const localVarPath = `/v1/platform`;
|
|
1012
1068
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1013
1069
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1014
1070
|
let baseOptions;
|
|
1015
1071
|
if (configuration) {
|
|
1016
1072
|
baseOptions = configuration.baseOptions;
|
|
1017
1073
|
}
|
|
1018
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
1074
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
1019
1075
|
const localVarHeaderParameter = {};
|
|
1020
1076
|
const localVarQueryParameter = {};
|
|
1021
1077
|
// authentication session-oauth required
|
|
@@ -1026,934 +1082,89 @@ const PlatformApiAxiosParamCreator = function (configuration) {
|
|
|
1026
1082
|
if (project !== undefined) {
|
|
1027
1083
|
localVarQueryParameter['project'] = project;
|
|
1028
1084
|
}
|
|
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
|
-
}
|
|
1085
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1042
1086
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1043
1087
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1044
1088
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1089
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updatePlatformRequest, localVarRequestOptions, configuration);
|
|
1045
1090
|
return {
|
|
1046
1091
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1047
1092
|
options: localVarRequestOptions,
|
|
1048
1093
|
};
|
|
1049
1094
|
}),
|
|
1095
|
+
};
|
|
1096
|
+
};
|
|
1097
|
+
exports.PlatformApiAxiosParamCreator = PlatformApiAxiosParamCreator;
|
|
1098
|
+
/**
|
|
1099
|
+
* PlatformApi - functional programming interface
|
|
1100
|
+
* @export
|
|
1101
|
+
*/
|
|
1102
|
+
const PlatformApiFp = function (configuration) {
|
|
1103
|
+
const localVarAxiosParamCreator = (0, exports.PlatformApiAxiosParamCreator)(configuration);
|
|
1104
|
+
return {
|
|
1050
1105
|
/**
|
|
1051
|
-
*
|
|
1052
|
-
* @summary Get
|
|
1106
|
+
*
|
|
1107
|
+
* @summary Get platform details
|
|
1053
1108
|
* @param {string} project Project unique identifier
|
|
1054
|
-
* @param {string} platformId The platform identifier
|
|
1055
|
-
* @param {string} customerId The customer identifier
|
|
1056
1109
|
* @param {*} [options] Override http request option.
|
|
1057
1110
|
* @throws {RequiredError}
|
|
1058
1111
|
*/
|
|
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
|
-
}),
|
|
1112
|
+
getPlatform(project, options) {
|
|
1113
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1114
|
+
var _a, _b, _c;
|
|
1115
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPlatform(project, options);
|
|
1116
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1117
|
+
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;
|
|
1118
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1119
|
+
});
|
|
1120
|
+
},
|
|
1094
1121
|
/**
|
|
1095
|
-
*
|
|
1096
|
-
* @summary
|
|
1122
|
+
*
|
|
1123
|
+
* @summary Update platform
|
|
1097
1124
|
* @param {string} project Project unique identifier
|
|
1098
|
-
* @param {
|
|
1099
|
-
* @param {string} fulfillmentId The fulfillment identifier
|
|
1125
|
+
* @param {UpdatePlatformRequest} updatePlatformRequest
|
|
1100
1126
|
* @param {*} [options] Override http request option.
|
|
1101
1127
|
* @throws {RequiredError}
|
|
1102
1128
|
*/
|
|
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
|
-
}),
|
|
1129
|
+
updatePlatform(project, updatePlatformRequest, options) {
|
|
1130
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1131
|
+
var _a, _b, _c;
|
|
1132
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePlatform(project, updatePlatformRequest, options);
|
|
1133
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1134
|
+
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;
|
|
1135
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1136
|
+
});
|
|
1137
|
+
},
|
|
1138
|
+
};
|
|
1139
|
+
};
|
|
1140
|
+
exports.PlatformApiFp = PlatformApiFp;
|
|
1141
|
+
/**
|
|
1142
|
+
* PlatformApi - factory interface
|
|
1143
|
+
* @export
|
|
1144
|
+
*/
|
|
1145
|
+
const PlatformApiFactory = function (configuration, basePath, axios) {
|
|
1146
|
+
const localVarFp = (0, exports.PlatformApiFp)(configuration);
|
|
1147
|
+
return {
|
|
1138
1148
|
/**
|
|
1139
|
-
*
|
|
1140
|
-
* @summary Get
|
|
1141
|
-
* @param {
|
|
1142
|
-
* @param {string} platformId The platform identifier
|
|
1143
|
-
* @param {string} orderId The order identifier
|
|
1149
|
+
*
|
|
1150
|
+
* @summary Get platform details
|
|
1151
|
+
* @param {PlatformApiGetPlatformRequest} requestParameters Request parameters.
|
|
1144
1152
|
* @param {*} [options] Override http request option.
|
|
1145
1153
|
* @throws {RequiredError}
|
|
1146
1154
|
*/
|
|
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
|
-
}),
|
|
1155
|
+
getPlatform(requestParameters, options) {
|
|
1156
|
+
return localVarFp.getPlatform(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
1157
|
+
},
|
|
1182
1158
|
/**
|
|
1183
1159
|
*
|
|
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.
|
|
1160
|
+
* @summary Update platform
|
|
1161
|
+
* @param {PlatformApiUpdatePlatformRequest} requestParameters Request parameters.
|
|
1931
1162
|
* @param {*} [options] Override http request option.
|
|
1932
1163
|
* @throws {RequiredError}
|
|
1933
1164
|
*/
|
|
1934
1165
|
updatePlatform(requestParameters, options) {
|
|
1935
1166
|
return localVarFp.updatePlatform(requestParameters.project, requestParameters.updatePlatformRequest, options).then((request) => request(axios, basePath));
|
|
1936
1167
|
},
|
|
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
1168
|
};
|
|
1958
1169
|
};
|
|
1959
1170
|
exports.PlatformApiFactory = PlatformApiFactory;
|
|
@@ -1964,61 +1175,6 @@ exports.PlatformApiFactory = PlatformApiFactory;
|
|
|
1964
1175
|
* @extends {BaseAPI}
|
|
1965
1176
|
*/
|
|
1966
1177
|
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
1178
|
/**
|
|
2023
1179
|
*
|
|
2024
1180
|
* @summary Get platform details
|
|
@@ -2030,50 +1186,6 @@ class PlatformApi extends base_1.BaseAPI {
|
|
|
2030
1186
|
getPlatform(requestParameters, options) {
|
|
2031
1187
|
return (0, exports.PlatformApiFp)(this.configuration).getPlatform(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
2032
1188
|
}
|
|
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
1189
|
/**
|
|
2078
1190
|
*
|
|
2079
1191
|
* @summary Update platform
|
|
@@ -2085,28 +1197,6 @@ class PlatformApi extends base_1.BaseAPI {
|
|
|
2085
1197
|
updatePlatform(requestParameters, options) {
|
|
2086
1198
|
return (0, exports.PlatformApiFp)(this.configuration).updatePlatform(requestParameters.project, requestParameters.updatePlatformRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2087
1199
|
}
|
|
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
1200
|
}
|
|
2111
1201
|
exports.PlatformApi = PlatformApi;
|
|
2112
1202
|
/**
|