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