@teemill/platform 0.12.1 → 0.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +272 -1537
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +218 -857
- package/dist/api.js +151 -1061
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +218 -857
- package/dist/esm/api.js +148 -1058
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
- package/.openapi-generator/FILES +0 -12
- package/.openapi-generator/VERSION +0 -1
- package/.openapi-generator-ignore +0 -23
package/dist/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.12.
|
|
7
|
+
* The version of the OpenAPI document: 0.12.3
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -77,10 +77,14 @@ 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 {Array<ExportCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
82
|
+
* @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
|
|
83
|
+
* @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
|
|
80
84
|
* @param {*} [options] Override http request option.
|
|
81
85
|
* @throws {RequiredError}
|
|
82
86
|
*/
|
|
83
|
-
exportCustomers: (project_1, platformId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, ...args_1], void 0, function* (project, platformId, options = {}) {
|
|
87
|
+
exportCustomers: (project_1, platformId_1, totalOrderCount_1, sortBy_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1) => __awaiter(this, [project_1, platformId_1, totalOrderCount_1, sortBy_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1], void 0, function* (project, platformId, totalOrderCount, sortBy, lastPurchasedStart, lastPurchasedEnd, options = {}) {
|
|
84
88
|
// verify required parameter 'project' is not null or undefined
|
|
85
89
|
assertParamExists('exportCustomers', 'project', project);
|
|
86
90
|
// verify required parameter 'platformId' is not null or undefined
|
|
@@ -104,6 +108,20 @@ export const CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
104
108
|
if (project !== undefined) {
|
|
105
109
|
localVarQueryParameter['project'] = project;
|
|
106
110
|
}
|
|
111
|
+
if (totalOrderCount !== undefined) {
|
|
112
|
+
localVarQueryParameter['totalOrderCount'] = totalOrderCount;
|
|
113
|
+
}
|
|
114
|
+
if (sortBy) {
|
|
115
|
+
localVarQueryParameter['sortBy'] = sortBy;
|
|
116
|
+
}
|
|
117
|
+
if (lastPurchasedStart !== undefined) {
|
|
118
|
+
localVarQueryParameter['lastPurchasedStart'] = (lastPurchasedStart instanceof Date) ?
|
|
119
|
+
lastPurchasedStart.toISOString() :
|
|
120
|
+
lastPurchasedStart;
|
|
121
|
+
}
|
|
122
|
+
if (lastPurchasedEnd !== undefined) {
|
|
123
|
+
localVarQueryParameter['lastPurchasedEnd'] = lastPurchasedEnd;
|
|
124
|
+
}
|
|
107
125
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
108
126
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
109
127
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -164,10 +182,14 @@ export const CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
164
182
|
* @param {number} [pageToken] Page reference token
|
|
165
183
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
166
184
|
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
185
|
+
* @param {Array<ListCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
186
|
+
* @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
|
|
187
|
+
* @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
|
|
188
|
+
* @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
|
|
167
189
|
* @param {*} [options] Override http request option.
|
|
168
190
|
* @throws {RequiredError}
|
|
169
191
|
*/
|
|
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 = {}) {
|
|
192
|
+
listCustomers: (project_1, platformId_1, pageToken_1, pageSize_1, search_1, sortBy_1, totalOrderCount_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1) => __awaiter(this, [project_1, platformId_1, pageToken_1, pageSize_1, search_1, sortBy_1, totalOrderCount_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1], void 0, function* (project, platformId, pageToken, pageSize, search, sortBy, totalOrderCount, lastPurchasedStart, lastPurchasedEnd, options = {}) {
|
|
171
193
|
// verify required parameter 'project' is not null or undefined
|
|
172
194
|
assertParamExists('listCustomers', 'project', project);
|
|
173
195
|
// verify required parameter 'platformId' is not null or undefined
|
|
@@ -200,6 +222,20 @@ export const CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
200
222
|
if (search !== undefined) {
|
|
201
223
|
localVarQueryParameter['search'] = search;
|
|
202
224
|
}
|
|
225
|
+
if (sortBy) {
|
|
226
|
+
localVarQueryParameter['sortBy'] = sortBy;
|
|
227
|
+
}
|
|
228
|
+
if (totalOrderCount !== undefined) {
|
|
229
|
+
localVarQueryParameter['totalOrderCount'] = totalOrderCount;
|
|
230
|
+
}
|
|
231
|
+
if (lastPurchasedStart !== undefined) {
|
|
232
|
+
localVarQueryParameter['lastPurchasedStart'] = (lastPurchasedStart instanceof Date) ?
|
|
233
|
+
lastPurchasedStart.toISOString() :
|
|
234
|
+
lastPurchasedStart;
|
|
235
|
+
}
|
|
236
|
+
if (lastPurchasedEnd !== undefined) {
|
|
237
|
+
localVarQueryParameter['lastPurchasedEnd'] = lastPurchasedEnd;
|
|
238
|
+
}
|
|
203
239
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
204
240
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
205
241
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -222,13 +258,17 @@ export const CustomersApiFp = function (configuration) {
|
|
|
222
258
|
* @summary Export customers
|
|
223
259
|
* @param {string} project Project unique identifier
|
|
224
260
|
* @param {string} platformId The platform identifier
|
|
261
|
+
* @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
|
|
262
|
+
* @param {Array<ExportCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
263
|
+
* @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
|
|
264
|
+
* @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
|
|
225
265
|
* @param {*} [options] Override http request option.
|
|
226
266
|
* @throws {RequiredError}
|
|
227
267
|
*/
|
|
228
|
-
exportCustomers(project, platformId, options) {
|
|
268
|
+
exportCustomers(project, platformId, totalOrderCount, sortBy, lastPurchasedStart, lastPurchasedEnd, options) {
|
|
229
269
|
return __awaiter(this, void 0, void 0, function* () {
|
|
230
270
|
var _a, _b, _c;
|
|
231
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.exportCustomers(project, platformId, options);
|
|
271
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.exportCustomers(project, platformId, totalOrderCount, sortBy, lastPurchasedStart, lastPurchasedEnd, options);
|
|
232
272
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
233
273
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CustomersApi.exportCustomers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
234
274
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -260,13 +300,17 @@ export const CustomersApiFp = function (configuration) {
|
|
|
260
300
|
* @param {number} [pageToken] Page reference token
|
|
261
301
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
262
302
|
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
303
|
+
* @param {Array<ListCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
304
|
+
* @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
|
|
305
|
+
* @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
|
|
306
|
+
* @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
|
|
263
307
|
* @param {*} [options] Override http request option.
|
|
264
308
|
* @throws {RequiredError}
|
|
265
309
|
*/
|
|
266
|
-
listCustomers(project, platformId, pageToken, pageSize, search, options) {
|
|
310
|
+
listCustomers(project, platformId, pageToken, pageSize, search, sortBy, totalOrderCount, lastPurchasedStart, lastPurchasedEnd, options) {
|
|
267
311
|
return __awaiter(this, void 0, void 0, function* () {
|
|
268
312
|
var _a, _b, _c;
|
|
269
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomers(project, platformId, pageToken, pageSize, search, options);
|
|
313
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomers(project, platformId, pageToken, pageSize, search, sortBy, totalOrderCount, lastPurchasedStart, lastPurchasedEnd, options);
|
|
270
314
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
271
315
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CustomersApi.listCustomers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
272
316
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -289,7 +333,7 @@ export const CustomersApiFactory = function (configuration, basePath, axios) {
|
|
|
289
333
|
* @throws {RequiredError}
|
|
290
334
|
*/
|
|
291
335
|
exportCustomers(requestParameters, options) {
|
|
292
|
-
return localVarFp.exportCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
|
|
336
|
+
return localVarFp.exportCustomers(requestParameters.project, requestParameters.platformId, requestParameters.totalOrderCount, requestParameters.sortBy, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
|
|
293
337
|
},
|
|
294
338
|
/**
|
|
295
339
|
* Get a customer for a platform by a given customer ID.
|
|
@@ -309,7 +353,7 @@ export const CustomersApiFactory = function (configuration, basePath, axios) {
|
|
|
309
353
|
* @throws {RequiredError}
|
|
310
354
|
*/
|
|
311
355
|
listCustomers(requestParameters, options) {
|
|
312
|
-
return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
356
|
+
return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.totalOrderCount, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
|
|
313
357
|
},
|
|
314
358
|
};
|
|
315
359
|
};
|
|
@@ -329,7 +373,7 @@ export class CustomersApi extends BaseAPI {
|
|
|
329
373
|
* @memberof CustomersApi
|
|
330
374
|
*/
|
|
331
375
|
exportCustomers(requestParameters, options) {
|
|
332
|
-
return CustomersApiFp(this.configuration).exportCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
|
|
376
|
+
return CustomersApiFp(this.configuration).exportCustomers(requestParameters.project, requestParameters.platformId, requestParameters.totalOrderCount, requestParameters.sortBy, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(this.axios, this.basePath));
|
|
333
377
|
}
|
|
334
378
|
/**
|
|
335
379
|
* Get a customer for a platform by a given customer ID.
|
|
@@ -351,9 +395,31 @@ export class CustomersApi extends BaseAPI {
|
|
|
351
395
|
* @memberof CustomersApi
|
|
352
396
|
*/
|
|
353
397
|
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));
|
|
398
|
+
return CustomersApiFp(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.totalOrderCount, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(this.axios, this.basePath));
|
|
355
399
|
}
|
|
356
400
|
}
|
|
401
|
+
/**
|
|
402
|
+
* @export
|
|
403
|
+
*/
|
|
404
|
+
export const ExportCustomersSortByEnum = {
|
|
405
|
+
LifetimeValue: '+lifetimeValue',
|
|
406
|
+
LifetimeValue2: '-lifetimeValue',
|
|
407
|
+
TotalOrderCount: '+totalOrderCount',
|
|
408
|
+
TotalOrderCount2: '-totalOrderCount',
|
|
409
|
+
LastPurchased: '+lastPurchased',
|
|
410
|
+
LastPurchased2: '-lastPurchased'
|
|
411
|
+
};
|
|
412
|
+
/**
|
|
413
|
+
* @export
|
|
414
|
+
*/
|
|
415
|
+
export const ListCustomersSortByEnum = {
|
|
416
|
+
LifetimeValue: '+lifetimeValue',
|
|
417
|
+
LifetimeValue2: '-lifetimeValue',
|
|
418
|
+
TotalOrderCount: '+totalOrderCount',
|
|
419
|
+
TotalOrderCount2: '-totalOrderCount',
|
|
420
|
+
LastPurchased: '+lastPurchased',
|
|
421
|
+
LastPurchased2: '-lastPurchased'
|
|
422
|
+
};
|
|
357
423
|
/**
|
|
358
424
|
* OrdersApi - axios parameter creator
|
|
359
425
|
* @export
|
|
@@ -366,7 +432,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
366
432
|
* @param {string} project Project unique identifier
|
|
367
433
|
* @param {string} platformId The platform identifier
|
|
368
434
|
* @param {string} start Start of date range to filter by when orders were placed
|
|
369
|
-
* @param {string} [end] End of date range to filter
|
|
435
|
+
* @param {string} [end] End of date range to filter when orders were placed
|
|
370
436
|
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
371
437
|
* @param {*} [options] Override http request option.
|
|
372
438
|
* @throws {RequiredError}
|
|
@@ -558,8 +624,8 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
558
624
|
* @param {number} [pageToken] Page reference token
|
|
559
625
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
560
626
|
* @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
|
|
627
|
+
* @param {string} [start] Start of date range to filter when orders were placed
|
|
628
|
+
* @param {string} [end] End of date range to filter when orders were placed
|
|
563
629
|
* @param {*} [options] Override http request option.
|
|
564
630
|
* @throws {RequiredError}
|
|
565
631
|
*/
|
|
@@ -678,7 +744,7 @@ export const OrdersApiFp = function (configuration) {
|
|
|
678
744
|
* @param {string} project Project unique identifier
|
|
679
745
|
* @param {string} platformId The platform identifier
|
|
680
746
|
* @param {string} start Start of date range to filter by when orders were placed
|
|
681
|
-
* @param {string} [end] End of date range to filter
|
|
747
|
+
* @param {string} [end] End of date range to filter when orders were placed
|
|
682
748
|
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
683
749
|
* @param {*} [options] Override http request option.
|
|
684
750
|
* @throws {RequiredError}
|
|
@@ -754,8 +820,8 @@ export const OrdersApiFp = function (configuration) {
|
|
|
754
820
|
* @param {number} [pageToken] Page reference token
|
|
755
821
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
756
822
|
* @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
|
|
823
|
+
* @param {string} [start] Start of date range to filter when orders were placed
|
|
824
|
+
* @param {string} [end] End of date range to filter when orders were placed
|
|
759
825
|
* @param {*} [options] Override http request option.
|
|
760
826
|
* @throws {RequiredError}
|
|
761
827
|
*/
|
|
@@ -939,20 +1005,16 @@ export class OrdersApi extends BaseAPI {
|
|
|
939
1005
|
export const PlatformApiAxiosParamCreator = function (configuration) {
|
|
940
1006
|
return {
|
|
941
1007
|
/**
|
|
942
|
-
*
|
|
943
|
-
* @summary
|
|
1008
|
+
*
|
|
1009
|
+
* @summary Get platform details
|
|
944
1010
|
* @param {string} project Project unique identifier
|
|
945
|
-
* @param {string} platformId The platform identifier
|
|
946
1011
|
* @param {*} [options] Override http request option.
|
|
947
1012
|
* @throws {RequiredError}
|
|
948
1013
|
*/
|
|
949
|
-
|
|
1014
|
+
getPlatform: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
|
|
950
1015
|
// 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)));
|
|
1016
|
+
assertParamExists('getPlatform', 'project', project);
|
|
1017
|
+
const localVarPath = `/v1/platform`;
|
|
956
1018
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
957
1019
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
958
1020
|
let baseOptions;
|
|
@@ -979,32 +1041,26 @@ export const PlatformApiAxiosParamCreator = function (configuration) {
|
|
|
979
1041
|
};
|
|
980
1042
|
}),
|
|
981
1043
|
/**
|
|
982
|
-
*
|
|
983
|
-
* @summary
|
|
1044
|
+
*
|
|
1045
|
+
* @summary Update platform
|
|
984
1046
|
* @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
|
|
1047
|
+
* @param {UpdatePlatformRequest} updatePlatformRequest
|
|
989
1048
|
* @param {*} [options] Override http request option.
|
|
990
1049
|
* @throws {RequiredError}
|
|
991
1050
|
*/
|
|
992
|
-
|
|
1051
|
+
updatePlatform: (project_1, updatePlatformRequest_1, ...args_1) => __awaiter(this, [project_1, updatePlatformRequest_1, ...args_1], void 0, function* (project, updatePlatformRequest, options = {}) {
|
|
993
1052
|
// 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)));
|
|
1053
|
+
assertParamExists('updatePlatform', 'project', project);
|
|
1054
|
+
// verify required parameter 'updatePlatformRequest' is not null or undefined
|
|
1055
|
+
assertParamExists('updatePlatform', 'updatePlatformRequest', updatePlatformRequest);
|
|
1056
|
+
const localVarPath = `/v1/platform`;
|
|
1001
1057
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1002
1058
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1003
1059
|
let baseOptions;
|
|
1004
1060
|
if (configuration) {
|
|
1005
1061
|
baseOptions = configuration.baseOptions;
|
|
1006
1062
|
}
|
|
1007
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
1063
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
1008
1064
|
const localVarHeaderParameter = {};
|
|
1009
1065
|
const localVarQueryParameter = {};
|
|
1010
1066
|
// authentication session-oauth required
|
|
@@ -1015,932 +1071,87 @@ export const PlatformApiAxiosParamCreator = function (configuration) {
|
|
|
1015
1071
|
if (project !== undefined) {
|
|
1016
1072
|
localVarQueryParameter['project'] = project;
|
|
1017
1073
|
}
|
|
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
|
-
}
|
|
1074
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1031
1075
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1032
1076
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1033
1077
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1078
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updatePlatformRequest, localVarRequestOptions, configuration);
|
|
1034
1079
|
return {
|
|
1035
1080
|
url: toPathString(localVarUrlObj),
|
|
1036
1081
|
options: localVarRequestOptions,
|
|
1037
1082
|
};
|
|
1038
1083
|
}),
|
|
1084
|
+
};
|
|
1085
|
+
};
|
|
1086
|
+
/**
|
|
1087
|
+
* PlatformApi - functional programming interface
|
|
1088
|
+
* @export
|
|
1089
|
+
*/
|
|
1090
|
+
export const PlatformApiFp = function (configuration) {
|
|
1091
|
+
const localVarAxiosParamCreator = PlatformApiAxiosParamCreator(configuration);
|
|
1092
|
+
return {
|
|
1039
1093
|
/**
|
|
1040
|
-
*
|
|
1041
|
-
* @summary Get
|
|
1094
|
+
*
|
|
1095
|
+
* @summary Get platform details
|
|
1042
1096
|
* @param {string} project Project unique identifier
|
|
1043
|
-
* @param {string} platformId The platform identifier
|
|
1044
|
-
* @param {string} customerId The customer identifier
|
|
1045
1097
|
* @param {*} [options] Override http request option.
|
|
1046
1098
|
* @throws {RequiredError}
|
|
1047
1099
|
*/
|
|
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
|
-
}),
|
|
1100
|
+
getPlatform(project, options) {
|
|
1101
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1102
|
+
var _a, _b, _c;
|
|
1103
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPlatform(project, options);
|
|
1104
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1105
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlatformApi.getPlatform']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1106
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1107
|
+
});
|
|
1108
|
+
},
|
|
1083
1109
|
/**
|
|
1084
|
-
*
|
|
1085
|
-
* @summary
|
|
1110
|
+
*
|
|
1111
|
+
* @summary Update platform
|
|
1086
1112
|
* @param {string} project Project unique identifier
|
|
1087
|
-
* @param {
|
|
1088
|
-
* @param {string} fulfillmentId The fulfillment identifier
|
|
1113
|
+
* @param {UpdatePlatformRequest} updatePlatformRequest
|
|
1089
1114
|
* @param {*} [options] Override http request option.
|
|
1090
1115
|
* @throws {RequiredError}
|
|
1091
1116
|
*/
|
|
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
|
-
}),
|
|
1117
|
+
updatePlatform(project, updatePlatformRequest, options) {
|
|
1118
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1119
|
+
var _a, _b, _c;
|
|
1120
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePlatform(project, updatePlatformRequest, options);
|
|
1121
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1122
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlatformApi.updatePlatform']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1123
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1124
|
+
});
|
|
1125
|
+
},
|
|
1126
|
+
};
|
|
1127
|
+
};
|
|
1128
|
+
/**
|
|
1129
|
+
* PlatformApi - factory interface
|
|
1130
|
+
* @export
|
|
1131
|
+
*/
|
|
1132
|
+
export const PlatformApiFactory = function (configuration, basePath, axios) {
|
|
1133
|
+
const localVarFp = PlatformApiFp(configuration);
|
|
1134
|
+
return {
|
|
1127
1135
|
/**
|
|
1128
|
-
*
|
|
1129
|
-
* @summary Get
|
|
1130
|
-
* @param {
|
|
1131
|
-
* @param {string} platformId The platform identifier
|
|
1132
|
-
* @param {string} orderId The order identifier
|
|
1136
|
+
*
|
|
1137
|
+
* @summary Get platform details
|
|
1138
|
+
* @param {PlatformApiGetPlatformRequest} requestParameters Request parameters.
|
|
1133
1139
|
* @param {*} [options] Override http request option.
|
|
1134
1140
|
* @throws {RequiredError}
|
|
1135
1141
|
*/
|
|
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
|
-
}),
|
|
1142
|
+
getPlatform(requestParameters, options) {
|
|
1143
|
+
return localVarFp.getPlatform(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
1144
|
+
},
|
|
1171
1145
|
/**
|
|
1172
1146
|
*
|
|
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.
|
|
1147
|
+
* @summary Update platform
|
|
1148
|
+
* @param {PlatformApiUpdatePlatformRequest} requestParameters Request parameters.
|
|
1918
1149
|
* @param {*} [options] Override http request option.
|
|
1919
1150
|
* @throws {RequiredError}
|
|
1920
1151
|
*/
|
|
1921
1152
|
updatePlatform(requestParameters, options) {
|
|
1922
1153
|
return localVarFp.updatePlatform(requestParameters.project, requestParameters.updatePlatformRequest, options).then((request) => request(axios, basePath));
|
|
1923
1154
|
},
|
|
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
1155
|
};
|
|
1945
1156
|
};
|
|
1946
1157
|
/**
|
|
@@ -1950,61 +1161,6 @@ export const PlatformApiFactory = function (configuration, basePath, axios) {
|
|
|
1950
1161
|
* @extends {BaseAPI}
|
|
1951
1162
|
*/
|
|
1952
1163
|
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
1164
|
/**
|
|
2009
1165
|
*
|
|
2010
1166
|
* @summary Get platform details
|
|
@@ -2016,50 +1172,6 @@ export class PlatformApi extends BaseAPI {
|
|
|
2016
1172
|
getPlatform(requestParameters, options) {
|
|
2017
1173
|
return PlatformApiFp(this.configuration).getPlatform(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
2018
1174
|
}
|
|
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
1175
|
/**
|
|
2064
1176
|
*
|
|
2065
1177
|
* @summary Update platform
|
|
@@ -2071,28 +1183,6 @@ export class PlatformApi extends BaseAPI {
|
|
|
2071
1183
|
updatePlatform(requestParameters, options) {
|
|
2072
1184
|
return PlatformApiFp(this.configuration).updatePlatform(requestParameters.project, requestParameters.updatePlatformRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2073
1185
|
}
|
|
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
1186
|
}
|
|
2097
1187
|
/**
|
|
2098
1188
|
* ProductsApi - axios parameter creator
|