@teemill/platform 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +1177 -69
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +657 -1
- package/dist/api.js +677 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +657 -1
- package/dist/esm/api.js +677 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Platform API
|
|
5
5
|
* Manage Your podOS platform Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.7.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -98,6 +98,138 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
98
98
|
options: localVarRequestOptions,
|
|
99
99
|
};
|
|
100
100
|
}),
|
|
101
|
+
/**
|
|
102
|
+
* Get a fulfillment for a platform by a given fulfillment ID.
|
|
103
|
+
* @summary Get fulfillment
|
|
104
|
+
* @param {string} project Project unique identifier
|
|
105
|
+
* @param {string} platformId The platform identifier
|
|
106
|
+
* @param {string} fulfillmentId The fulfillment identifier
|
|
107
|
+
* @param {*} [options] Override http request option.
|
|
108
|
+
* @throws {RequiredError}
|
|
109
|
+
*/
|
|
110
|
+
getFulfillment: (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 = {}) {
|
|
111
|
+
// verify required parameter 'project' is not null or undefined
|
|
112
|
+
assertParamExists('getFulfillment', 'project', project);
|
|
113
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
114
|
+
assertParamExists('getFulfillment', 'platformId', platformId);
|
|
115
|
+
// verify required parameter 'fulfillmentId' is not null or undefined
|
|
116
|
+
assertParamExists('getFulfillment', 'fulfillmentId', fulfillmentId);
|
|
117
|
+
const localVarPath = `/v1/platform/{platformId}/fulfillments/{fulfillmentId}`
|
|
118
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
119
|
+
.replace(`{${"fulfillmentId"}}`, encodeURIComponent(String(fulfillmentId)));
|
|
120
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
121
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
122
|
+
let baseOptions;
|
|
123
|
+
if (configuration) {
|
|
124
|
+
baseOptions = configuration.baseOptions;
|
|
125
|
+
}
|
|
126
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
127
|
+
const localVarHeaderParameter = {};
|
|
128
|
+
const localVarQueryParameter = {};
|
|
129
|
+
// authentication session-oauth required
|
|
130
|
+
// oauth required
|
|
131
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
132
|
+
// authentication api-key required
|
|
133
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
134
|
+
if (project !== undefined) {
|
|
135
|
+
localVarQueryParameter['project'] = project;
|
|
136
|
+
}
|
|
137
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
138
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
139
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
140
|
+
return {
|
|
141
|
+
url: toPathString(localVarUrlObj),
|
|
142
|
+
options: localVarRequestOptions,
|
|
143
|
+
};
|
|
144
|
+
}),
|
|
145
|
+
/**
|
|
146
|
+
* Get an order for a platform by a given order ID.
|
|
147
|
+
* @summary Get order
|
|
148
|
+
* @param {string} project Project unique identifier
|
|
149
|
+
* @param {string} platformId The platform identifier
|
|
150
|
+
* @param {string} orderId The order identifier
|
|
151
|
+
* @param {*} [options] Override http request option.
|
|
152
|
+
* @throws {RequiredError}
|
|
153
|
+
*/
|
|
154
|
+
getOrder: (project_1, platformId_1, orderId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, orderId_1, ...args_1], void 0, function* (project, platformId, orderId, options = {}) {
|
|
155
|
+
// verify required parameter 'project' is not null or undefined
|
|
156
|
+
assertParamExists('getOrder', 'project', project);
|
|
157
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
158
|
+
assertParamExists('getOrder', 'platformId', platformId);
|
|
159
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
160
|
+
assertParamExists('getOrder', 'orderId', orderId);
|
|
161
|
+
const localVarPath = `/v1/platform/{platformId}/orders/{orderId}`
|
|
162
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
163
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
|
|
164
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
165
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
166
|
+
let baseOptions;
|
|
167
|
+
if (configuration) {
|
|
168
|
+
baseOptions = configuration.baseOptions;
|
|
169
|
+
}
|
|
170
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
171
|
+
const localVarHeaderParameter = {};
|
|
172
|
+
const localVarQueryParameter = {};
|
|
173
|
+
// authentication session-oauth required
|
|
174
|
+
// oauth required
|
|
175
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
176
|
+
// authentication api-key required
|
|
177
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
178
|
+
if (project !== undefined) {
|
|
179
|
+
localVarQueryParameter['project'] = project;
|
|
180
|
+
}
|
|
181
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
182
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
183
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
184
|
+
return {
|
|
185
|
+
url: toPathString(localVarUrlObj),
|
|
186
|
+
options: localVarRequestOptions,
|
|
187
|
+
};
|
|
188
|
+
}),
|
|
189
|
+
/**
|
|
190
|
+
* List available fulfillers for a given fulfillment
|
|
191
|
+
* @summary List available fulfillers
|
|
192
|
+
* @param {string} project Project unique identifier
|
|
193
|
+
* @param {string} platformId The platform identifier
|
|
194
|
+
* @param {string} fulfillmentId The fulfillment identifier
|
|
195
|
+
* @param {*} [options] Override http request option.
|
|
196
|
+
* @throws {RequiredError}
|
|
197
|
+
*/
|
|
198
|
+
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 = {}) {
|
|
199
|
+
// verify required parameter 'project' is not null or undefined
|
|
200
|
+
assertParamExists('listAvailableFulfillers', 'project', project);
|
|
201
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
202
|
+
assertParamExists('listAvailableFulfillers', 'platformId', platformId);
|
|
203
|
+
// verify required parameter 'fulfillmentId' is not null or undefined
|
|
204
|
+
assertParamExists('listAvailableFulfillers', 'fulfillmentId', fulfillmentId);
|
|
205
|
+
const localVarPath = `/v1/platform/{platformId}/fulfillments/{fulfillmentId}/available-fulfillers`
|
|
206
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
207
|
+
.replace(`{${"fulfillmentId"}}`, encodeURIComponent(String(fulfillmentId)));
|
|
208
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
209
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
210
|
+
let baseOptions;
|
|
211
|
+
if (configuration) {
|
|
212
|
+
baseOptions = configuration.baseOptions;
|
|
213
|
+
}
|
|
214
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
215
|
+
const localVarHeaderParameter = {};
|
|
216
|
+
const localVarQueryParameter = {};
|
|
217
|
+
// authentication session-oauth required
|
|
218
|
+
// oauth required
|
|
219
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
220
|
+
// authentication api-key required
|
|
221
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
222
|
+
if (project !== undefined) {
|
|
223
|
+
localVarQueryParameter['project'] = project;
|
|
224
|
+
}
|
|
225
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
226
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
227
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
228
|
+
return {
|
|
229
|
+
url: toPathString(localVarUrlObj),
|
|
230
|
+
options: localVarRequestOptions,
|
|
231
|
+
};
|
|
232
|
+
}),
|
|
101
233
|
/**
|
|
102
234
|
* Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
|
|
103
235
|
* @summary List orders
|
|
@@ -162,6 +294,55 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
162
294
|
options: localVarRequestOptions,
|
|
163
295
|
};
|
|
164
296
|
}),
|
|
297
|
+
/**
|
|
298
|
+
* Update a fulfillment that belongs to an order placed through the platform
|
|
299
|
+
* @summary Update fulfillment
|
|
300
|
+
* @param {string} project Project unique identifier
|
|
301
|
+
* @param {string} platformId The platform identifier
|
|
302
|
+
* @param {string} fulfillmentId The fulfillment identifier
|
|
303
|
+
* @param {UpdateFulfillmentRequest} updateFulfillmentRequest
|
|
304
|
+
* @param {*} [options] Override http request option.
|
|
305
|
+
* @throws {RequiredError}
|
|
306
|
+
*/
|
|
307
|
+
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 = {}) {
|
|
308
|
+
// verify required parameter 'project' is not null or undefined
|
|
309
|
+
assertParamExists('updateFulfillment', 'project', project);
|
|
310
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
311
|
+
assertParamExists('updateFulfillment', 'platformId', platformId);
|
|
312
|
+
// verify required parameter 'fulfillmentId' is not null or undefined
|
|
313
|
+
assertParamExists('updateFulfillment', 'fulfillmentId', fulfillmentId);
|
|
314
|
+
// verify required parameter 'updateFulfillmentRequest' is not null or undefined
|
|
315
|
+
assertParamExists('updateFulfillment', 'updateFulfillmentRequest', updateFulfillmentRequest);
|
|
316
|
+
const localVarPath = `/v1/platform/{platformId}/fulfillments/{fulfillmentId}`
|
|
317
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
318
|
+
.replace(`{${"fulfillmentId"}}`, encodeURIComponent(String(fulfillmentId)));
|
|
319
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
320
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
321
|
+
let baseOptions;
|
|
322
|
+
if (configuration) {
|
|
323
|
+
baseOptions = configuration.baseOptions;
|
|
324
|
+
}
|
|
325
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
326
|
+
const localVarHeaderParameter = {};
|
|
327
|
+
const localVarQueryParameter = {};
|
|
328
|
+
// authentication session-oauth required
|
|
329
|
+
// oauth required
|
|
330
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
331
|
+
// authentication api-key required
|
|
332
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
333
|
+
if (project !== undefined) {
|
|
334
|
+
localVarQueryParameter['project'] = project;
|
|
335
|
+
}
|
|
336
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
337
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
338
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
339
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
340
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateFulfillmentRequest, localVarRequestOptions, configuration);
|
|
341
|
+
return {
|
|
342
|
+
url: toPathString(localVarUrlObj),
|
|
343
|
+
options: localVarRequestOptions,
|
|
344
|
+
};
|
|
345
|
+
}),
|
|
165
346
|
};
|
|
166
347
|
};
|
|
167
348
|
/**
|
|
@@ -190,6 +371,60 @@ export const OrdersApiFp = function (configuration) {
|
|
|
190
371
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
191
372
|
});
|
|
192
373
|
},
|
|
374
|
+
/**
|
|
375
|
+
* Get a fulfillment for a platform by a given fulfillment ID.
|
|
376
|
+
* @summary Get fulfillment
|
|
377
|
+
* @param {string} project Project unique identifier
|
|
378
|
+
* @param {string} platformId The platform identifier
|
|
379
|
+
* @param {string} fulfillmentId The fulfillment identifier
|
|
380
|
+
* @param {*} [options] Override http request option.
|
|
381
|
+
* @throws {RequiredError}
|
|
382
|
+
*/
|
|
383
|
+
getFulfillment(project, platformId, fulfillmentId, options) {
|
|
384
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
385
|
+
var _a, _b, _c;
|
|
386
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getFulfillment(project, platformId, fulfillmentId, options);
|
|
387
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
388
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrdersApi.getFulfillment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
389
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
390
|
+
});
|
|
391
|
+
},
|
|
392
|
+
/**
|
|
393
|
+
* Get an order for a platform by a given order ID.
|
|
394
|
+
* @summary Get order
|
|
395
|
+
* @param {string} project Project unique identifier
|
|
396
|
+
* @param {string} platformId The platform identifier
|
|
397
|
+
* @param {string} orderId The order identifier
|
|
398
|
+
* @param {*} [options] Override http request option.
|
|
399
|
+
* @throws {RequiredError}
|
|
400
|
+
*/
|
|
401
|
+
getOrder(project, platformId, orderId, options) {
|
|
402
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
403
|
+
var _a, _b, _c;
|
|
404
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrder(project, platformId, orderId, options);
|
|
405
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
406
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrdersApi.getOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
407
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
408
|
+
});
|
|
409
|
+
},
|
|
410
|
+
/**
|
|
411
|
+
* List available fulfillers for a given fulfillment
|
|
412
|
+
* @summary List available fulfillers
|
|
413
|
+
* @param {string} project Project unique identifier
|
|
414
|
+
* @param {string} platformId The platform identifier
|
|
415
|
+
* @param {string} fulfillmentId The fulfillment identifier
|
|
416
|
+
* @param {*} [options] Override http request option.
|
|
417
|
+
* @throws {RequiredError}
|
|
418
|
+
*/
|
|
419
|
+
listAvailableFulfillers(project, platformId, fulfillmentId, options) {
|
|
420
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
421
|
+
var _a, _b, _c;
|
|
422
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAvailableFulfillers(project, platformId, fulfillmentId, options);
|
|
423
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
424
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrdersApi.listAvailableFulfillers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
425
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
426
|
+
});
|
|
427
|
+
},
|
|
193
428
|
/**
|
|
194
429
|
* Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
|
|
195
430
|
* @summary List orders
|
|
@@ -212,6 +447,25 @@ export const OrdersApiFp = function (configuration) {
|
|
|
212
447
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
213
448
|
});
|
|
214
449
|
},
|
|
450
|
+
/**
|
|
451
|
+
* Update a fulfillment that belongs to an order placed through the platform
|
|
452
|
+
* @summary Update fulfillment
|
|
453
|
+
* @param {string} project Project unique identifier
|
|
454
|
+
* @param {string} platformId The platform identifier
|
|
455
|
+
* @param {string} fulfillmentId The fulfillment identifier
|
|
456
|
+
* @param {UpdateFulfillmentRequest} updateFulfillmentRequest
|
|
457
|
+
* @param {*} [options] Override http request option.
|
|
458
|
+
* @throws {RequiredError}
|
|
459
|
+
*/
|
|
460
|
+
updateFulfillment(project, platformId, fulfillmentId, updateFulfillmentRequest, options) {
|
|
461
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
462
|
+
var _a, _b, _c;
|
|
463
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateFulfillment(project, platformId, fulfillmentId, updateFulfillmentRequest, options);
|
|
464
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
465
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrdersApi.updateFulfillment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
466
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
467
|
+
});
|
|
468
|
+
},
|
|
215
469
|
};
|
|
216
470
|
};
|
|
217
471
|
/**
|
|
@@ -231,6 +485,36 @@ export const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
231
485
|
exportOrders(requestParameters, options) {
|
|
232
486
|
return localVarFp.exportOrders(requestParameters.project, requestParameters.platformId, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
233
487
|
},
|
|
488
|
+
/**
|
|
489
|
+
* Get a fulfillment for a platform by a given fulfillment ID.
|
|
490
|
+
* @summary Get fulfillment
|
|
491
|
+
* @param {OrdersApiGetFulfillmentRequest} requestParameters Request parameters.
|
|
492
|
+
* @param {*} [options] Override http request option.
|
|
493
|
+
* @throws {RequiredError}
|
|
494
|
+
*/
|
|
495
|
+
getFulfillment(requestParameters, options) {
|
|
496
|
+
return localVarFp.getFulfillment(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, options).then((request) => request(axios, basePath));
|
|
497
|
+
},
|
|
498
|
+
/**
|
|
499
|
+
* Get an order for a platform by a given order ID.
|
|
500
|
+
* @summary Get order
|
|
501
|
+
* @param {OrdersApiGetOrderRequest} requestParameters Request parameters.
|
|
502
|
+
* @param {*} [options] Override http request option.
|
|
503
|
+
* @throws {RequiredError}
|
|
504
|
+
*/
|
|
505
|
+
getOrder(requestParameters, options) {
|
|
506
|
+
return localVarFp.getOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(axios, basePath));
|
|
507
|
+
},
|
|
508
|
+
/**
|
|
509
|
+
* List available fulfillers for a given fulfillment
|
|
510
|
+
* @summary List available fulfillers
|
|
511
|
+
* @param {OrdersApiListAvailableFulfillersRequest} requestParameters Request parameters.
|
|
512
|
+
* @param {*} [options] Override http request option.
|
|
513
|
+
* @throws {RequiredError}
|
|
514
|
+
*/
|
|
515
|
+
listAvailableFulfillers(requestParameters, options) {
|
|
516
|
+
return localVarFp.listAvailableFulfillers(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, options).then((request) => request(axios, basePath));
|
|
517
|
+
},
|
|
234
518
|
/**
|
|
235
519
|
* Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
|
|
236
520
|
* @summary List orders
|
|
@@ -241,6 +525,16 @@ export const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
241
525
|
listOrders(requestParameters, options) {
|
|
242
526
|
return localVarFp.listOrders(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
243
527
|
},
|
|
528
|
+
/**
|
|
529
|
+
* Update a fulfillment that belongs to an order placed through the platform
|
|
530
|
+
* @summary Update fulfillment
|
|
531
|
+
* @param {OrdersApiUpdateFulfillmentRequest} requestParameters Request parameters.
|
|
532
|
+
* @param {*} [options] Override http request option.
|
|
533
|
+
* @throws {RequiredError}
|
|
534
|
+
*/
|
|
535
|
+
updateFulfillment(requestParameters, options) {
|
|
536
|
+
return localVarFp.updateFulfillment(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, requestParameters.updateFulfillmentRequest, options).then((request) => request(axios, basePath));
|
|
537
|
+
},
|
|
244
538
|
};
|
|
245
539
|
};
|
|
246
540
|
/**
|
|
@@ -261,6 +555,39 @@ export class OrdersApi extends BaseAPI {
|
|
|
261
555
|
exportOrders(requestParameters, options) {
|
|
262
556
|
return OrdersApiFp(this.configuration).exportOrders(requestParameters.project, requestParameters.platformId, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
263
557
|
}
|
|
558
|
+
/**
|
|
559
|
+
* Get a fulfillment for a platform by a given fulfillment ID.
|
|
560
|
+
* @summary Get fulfillment
|
|
561
|
+
* @param {OrdersApiGetFulfillmentRequest} requestParameters Request parameters.
|
|
562
|
+
* @param {*} [options] Override http request option.
|
|
563
|
+
* @throws {RequiredError}
|
|
564
|
+
* @memberof OrdersApi
|
|
565
|
+
*/
|
|
566
|
+
getFulfillment(requestParameters, options) {
|
|
567
|
+
return OrdersApiFp(this.configuration).getFulfillment(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, options).then((request) => request(this.axios, this.basePath));
|
|
568
|
+
}
|
|
569
|
+
/**
|
|
570
|
+
* Get an order for a platform by a given order ID.
|
|
571
|
+
* @summary Get order
|
|
572
|
+
* @param {OrdersApiGetOrderRequest} requestParameters Request parameters.
|
|
573
|
+
* @param {*} [options] Override http request option.
|
|
574
|
+
* @throws {RequiredError}
|
|
575
|
+
* @memberof OrdersApi
|
|
576
|
+
*/
|
|
577
|
+
getOrder(requestParameters, options) {
|
|
578
|
+
return OrdersApiFp(this.configuration).getOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
|
|
579
|
+
}
|
|
580
|
+
/**
|
|
581
|
+
* List available fulfillers for a given fulfillment
|
|
582
|
+
* @summary List available fulfillers
|
|
583
|
+
* @param {OrdersApiListAvailableFulfillersRequest} requestParameters Request parameters.
|
|
584
|
+
* @param {*} [options] Override http request option.
|
|
585
|
+
* @throws {RequiredError}
|
|
586
|
+
* @memberof OrdersApi
|
|
587
|
+
*/
|
|
588
|
+
listAvailableFulfillers(requestParameters, options) {
|
|
589
|
+
return OrdersApiFp(this.configuration).listAvailableFulfillers(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, options).then((request) => request(this.axios, this.basePath));
|
|
590
|
+
}
|
|
264
591
|
/**
|
|
265
592
|
* Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
|
|
266
593
|
* @summary List orders
|
|
@@ -272,6 +599,17 @@ export class OrdersApi extends BaseAPI {
|
|
|
272
599
|
listOrders(requestParameters, options) {
|
|
273
600
|
return OrdersApiFp(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));
|
|
274
601
|
}
|
|
602
|
+
/**
|
|
603
|
+
* Update a fulfillment that belongs to an order placed through the platform
|
|
604
|
+
* @summary Update fulfillment
|
|
605
|
+
* @param {OrdersApiUpdateFulfillmentRequest} requestParameters Request parameters.
|
|
606
|
+
* @param {*} [options] Override http request option.
|
|
607
|
+
* @throws {RequiredError}
|
|
608
|
+
* @memberof OrdersApi
|
|
609
|
+
*/
|
|
610
|
+
updateFulfillment(requestParameters, options) {
|
|
611
|
+
return OrdersApiFp(this.configuration).updateFulfillment(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, requestParameters.updateFulfillmentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
612
|
+
}
|
|
275
613
|
}
|
|
276
614
|
/**
|
|
277
615
|
* PlatformApi - axios parameter creator
|
|
@@ -333,6 +671,94 @@ export const PlatformApiAxiosParamCreator = function (configuration) {
|
|
|
333
671
|
options: localVarRequestOptions,
|
|
334
672
|
};
|
|
335
673
|
}),
|
|
674
|
+
/**
|
|
675
|
+
* Get a fulfillment for a platform by a given fulfillment ID.
|
|
676
|
+
* @summary Get fulfillment
|
|
677
|
+
* @param {string} project Project unique identifier
|
|
678
|
+
* @param {string} platformId The platform identifier
|
|
679
|
+
* @param {string} fulfillmentId The fulfillment identifier
|
|
680
|
+
* @param {*} [options] Override http request option.
|
|
681
|
+
* @throws {RequiredError}
|
|
682
|
+
*/
|
|
683
|
+
getFulfillment: (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 = {}) {
|
|
684
|
+
// verify required parameter 'project' is not null or undefined
|
|
685
|
+
assertParamExists('getFulfillment', 'project', project);
|
|
686
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
687
|
+
assertParamExists('getFulfillment', 'platformId', platformId);
|
|
688
|
+
// verify required parameter 'fulfillmentId' is not null or undefined
|
|
689
|
+
assertParamExists('getFulfillment', 'fulfillmentId', fulfillmentId);
|
|
690
|
+
const localVarPath = `/v1/platform/{platformId}/fulfillments/{fulfillmentId}`
|
|
691
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
692
|
+
.replace(`{${"fulfillmentId"}}`, encodeURIComponent(String(fulfillmentId)));
|
|
693
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
694
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
695
|
+
let baseOptions;
|
|
696
|
+
if (configuration) {
|
|
697
|
+
baseOptions = configuration.baseOptions;
|
|
698
|
+
}
|
|
699
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
700
|
+
const localVarHeaderParameter = {};
|
|
701
|
+
const localVarQueryParameter = {};
|
|
702
|
+
// authentication session-oauth required
|
|
703
|
+
// oauth required
|
|
704
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
705
|
+
// authentication api-key required
|
|
706
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
707
|
+
if (project !== undefined) {
|
|
708
|
+
localVarQueryParameter['project'] = project;
|
|
709
|
+
}
|
|
710
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
711
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
712
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
713
|
+
return {
|
|
714
|
+
url: toPathString(localVarUrlObj),
|
|
715
|
+
options: localVarRequestOptions,
|
|
716
|
+
};
|
|
717
|
+
}),
|
|
718
|
+
/**
|
|
719
|
+
* Get an order for a platform by a given order ID.
|
|
720
|
+
* @summary Get order
|
|
721
|
+
* @param {string} project Project unique identifier
|
|
722
|
+
* @param {string} platformId The platform identifier
|
|
723
|
+
* @param {string} orderId The order identifier
|
|
724
|
+
* @param {*} [options] Override http request option.
|
|
725
|
+
* @throws {RequiredError}
|
|
726
|
+
*/
|
|
727
|
+
getOrder: (project_1, platformId_1, orderId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, orderId_1, ...args_1], void 0, function* (project, platformId, orderId, options = {}) {
|
|
728
|
+
// verify required parameter 'project' is not null or undefined
|
|
729
|
+
assertParamExists('getOrder', 'project', project);
|
|
730
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
731
|
+
assertParamExists('getOrder', 'platformId', platformId);
|
|
732
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
733
|
+
assertParamExists('getOrder', 'orderId', orderId);
|
|
734
|
+
const localVarPath = `/v1/platform/{platformId}/orders/{orderId}`
|
|
735
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
736
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
|
|
737
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
738
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
739
|
+
let baseOptions;
|
|
740
|
+
if (configuration) {
|
|
741
|
+
baseOptions = configuration.baseOptions;
|
|
742
|
+
}
|
|
743
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
744
|
+
const localVarHeaderParameter = {};
|
|
745
|
+
const localVarQueryParameter = {};
|
|
746
|
+
// authentication session-oauth required
|
|
747
|
+
// oauth required
|
|
748
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
749
|
+
// authentication api-key required
|
|
750
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
751
|
+
if (project !== undefined) {
|
|
752
|
+
localVarQueryParameter['project'] = project;
|
|
753
|
+
}
|
|
754
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
755
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
756
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
757
|
+
return {
|
|
758
|
+
url: toPathString(localVarUrlObj),
|
|
759
|
+
options: localVarRequestOptions,
|
|
760
|
+
};
|
|
761
|
+
}),
|
|
336
762
|
/**
|
|
337
763
|
*
|
|
338
764
|
* @summary Get platform details
|
|
@@ -369,6 +795,50 @@ export const PlatformApiAxiosParamCreator = function (configuration) {
|
|
|
369
795
|
options: localVarRequestOptions,
|
|
370
796
|
};
|
|
371
797
|
}),
|
|
798
|
+
/**
|
|
799
|
+
* List available fulfillers for a given fulfillment
|
|
800
|
+
* @summary List available fulfillers
|
|
801
|
+
* @param {string} project Project unique identifier
|
|
802
|
+
* @param {string} platformId The platform identifier
|
|
803
|
+
* @param {string} fulfillmentId The fulfillment identifier
|
|
804
|
+
* @param {*} [options] Override http request option.
|
|
805
|
+
* @throws {RequiredError}
|
|
806
|
+
*/
|
|
807
|
+
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 = {}) {
|
|
808
|
+
// verify required parameter 'project' is not null or undefined
|
|
809
|
+
assertParamExists('listAvailableFulfillers', 'project', project);
|
|
810
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
811
|
+
assertParamExists('listAvailableFulfillers', 'platformId', platformId);
|
|
812
|
+
// verify required parameter 'fulfillmentId' is not null or undefined
|
|
813
|
+
assertParamExists('listAvailableFulfillers', 'fulfillmentId', fulfillmentId);
|
|
814
|
+
const localVarPath = `/v1/platform/{platformId}/fulfillments/{fulfillmentId}/available-fulfillers`
|
|
815
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
816
|
+
.replace(`{${"fulfillmentId"}}`, encodeURIComponent(String(fulfillmentId)));
|
|
817
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
818
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
819
|
+
let baseOptions;
|
|
820
|
+
if (configuration) {
|
|
821
|
+
baseOptions = configuration.baseOptions;
|
|
822
|
+
}
|
|
823
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
824
|
+
const localVarHeaderParameter = {};
|
|
825
|
+
const localVarQueryParameter = {};
|
|
826
|
+
// authentication session-oauth required
|
|
827
|
+
// oauth required
|
|
828
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
829
|
+
// authentication api-key required
|
|
830
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
831
|
+
if (project !== undefined) {
|
|
832
|
+
localVarQueryParameter['project'] = project;
|
|
833
|
+
}
|
|
834
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
835
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
836
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
837
|
+
return {
|
|
838
|
+
url: toPathString(localVarUrlObj),
|
|
839
|
+
options: localVarRequestOptions,
|
|
840
|
+
};
|
|
841
|
+
}),
|
|
372
842
|
/**
|
|
373
843
|
* Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
|
|
374
844
|
* @summary List orders
|
|
@@ -433,6 +903,55 @@ export const PlatformApiAxiosParamCreator = function (configuration) {
|
|
|
433
903
|
options: localVarRequestOptions,
|
|
434
904
|
};
|
|
435
905
|
}),
|
|
906
|
+
/**
|
|
907
|
+
* Update a fulfillment that belongs to an order placed through the platform
|
|
908
|
+
* @summary Update fulfillment
|
|
909
|
+
* @param {string} project Project unique identifier
|
|
910
|
+
* @param {string} platformId The platform identifier
|
|
911
|
+
* @param {string} fulfillmentId The fulfillment identifier
|
|
912
|
+
* @param {UpdateFulfillmentRequest} updateFulfillmentRequest
|
|
913
|
+
* @param {*} [options] Override http request option.
|
|
914
|
+
* @throws {RequiredError}
|
|
915
|
+
*/
|
|
916
|
+
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 = {}) {
|
|
917
|
+
// verify required parameter 'project' is not null or undefined
|
|
918
|
+
assertParamExists('updateFulfillment', 'project', project);
|
|
919
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
920
|
+
assertParamExists('updateFulfillment', 'platformId', platformId);
|
|
921
|
+
// verify required parameter 'fulfillmentId' is not null or undefined
|
|
922
|
+
assertParamExists('updateFulfillment', 'fulfillmentId', fulfillmentId);
|
|
923
|
+
// verify required parameter 'updateFulfillmentRequest' is not null or undefined
|
|
924
|
+
assertParamExists('updateFulfillment', 'updateFulfillmentRequest', updateFulfillmentRequest);
|
|
925
|
+
const localVarPath = `/v1/platform/{platformId}/fulfillments/{fulfillmentId}`
|
|
926
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
927
|
+
.replace(`{${"fulfillmentId"}}`, encodeURIComponent(String(fulfillmentId)));
|
|
928
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
929
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
930
|
+
let baseOptions;
|
|
931
|
+
if (configuration) {
|
|
932
|
+
baseOptions = configuration.baseOptions;
|
|
933
|
+
}
|
|
934
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
935
|
+
const localVarHeaderParameter = {};
|
|
936
|
+
const localVarQueryParameter = {};
|
|
937
|
+
// authentication session-oauth required
|
|
938
|
+
// oauth required
|
|
939
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
940
|
+
// authentication api-key required
|
|
941
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
942
|
+
if (project !== undefined) {
|
|
943
|
+
localVarQueryParameter['project'] = project;
|
|
944
|
+
}
|
|
945
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
946
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
947
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
948
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
949
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateFulfillmentRequest, localVarRequestOptions, configuration);
|
|
950
|
+
return {
|
|
951
|
+
url: toPathString(localVarUrlObj),
|
|
952
|
+
options: localVarRequestOptions,
|
|
953
|
+
};
|
|
954
|
+
}),
|
|
436
955
|
/**
|
|
437
956
|
*
|
|
438
957
|
* @summary Update platform
|
|
@@ -502,6 +1021,42 @@ export const PlatformApiFp = function (configuration) {
|
|
|
502
1021
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
503
1022
|
});
|
|
504
1023
|
},
|
|
1024
|
+
/**
|
|
1025
|
+
* Get a fulfillment for a platform by a given fulfillment ID.
|
|
1026
|
+
* @summary Get fulfillment
|
|
1027
|
+
* @param {string} project Project unique identifier
|
|
1028
|
+
* @param {string} platformId The platform identifier
|
|
1029
|
+
* @param {string} fulfillmentId The fulfillment identifier
|
|
1030
|
+
* @param {*} [options] Override http request option.
|
|
1031
|
+
* @throws {RequiredError}
|
|
1032
|
+
*/
|
|
1033
|
+
getFulfillment(project, platformId, fulfillmentId, options) {
|
|
1034
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1035
|
+
var _a, _b, _c;
|
|
1036
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getFulfillment(project, platformId, fulfillmentId, options);
|
|
1037
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1038
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlatformApi.getFulfillment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1039
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1040
|
+
});
|
|
1041
|
+
},
|
|
1042
|
+
/**
|
|
1043
|
+
* Get an order for a platform by a given order ID.
|
|
1044
|
+
* @summary Get order
|
|
1045
|
+
* @param {string} project Project unique identifier
|
|
1046
|
+
* @param {string} platformId The platform identifier
|
|
1047
|
+
* @param {string} orderId The order identifier
|
|
1048
|
+
* @param {*} [options] Override http request option.
|
|
1049
|
+
* @throws {RequiredError}
|
|
1050
|
+
*/
|
|
1051
|
+
getOrder(project, platformId, orderId, options) {
|
|
1052
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1053
|
+
var _a, _b, _c;
|
|
1054
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrder(project, platformId, orderId, options);
|
|
1055
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1056
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlatformApi.getOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1057
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1058
|
+
});
|
|
1059
|
+
},
|
|
505
1060
|
/**
|
|
506
1061
|
*
|
|
507
1062
|
* @summary Get platform details
|
|
@@ -518,6 +1073,24 @@ export const PlatformApiFp = function (configuration) {
|
|
|
518
1073
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
519
1074
|
});
|
|
520
1075
|
},
|
|
1076
|
+
/**
|
|
1077
|
+
* List available fulfillers for a given fulfillment
|
|
1078
|
+
* @summary List available fulfillers
|
|
1079
|
+
* @param {string} project Project unique identifier
|
|
1080
|
+
* @param {string} platformId The platform identifier
|
|
1081
|
+
* @param {string} fulfillmentId The fulfillment identifier
|
|
1082
|
+
* @param {*} [options] Override http request option.
|
|
1083
|
+
* @throws {RequiredError}
|
|
1084
|
+
*/
|
|
1085
|
+
listAvailableFulfillers(project, platformId, fulfillmentId, options) {
|
|
1086
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1087
|
+
var _a, _b, _c;
|
|
1088
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAvailableFulfillers(project, platformId, fulfillmentId, options);
|
|
1089
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1090
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlatformApi.listAvailableFulfillers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1091
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1092
|
+
});
|
|
1093
|
+
},
|
|
521
1094
|
/**
|
|
522
1095
|
* Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
|
|
523
1096
|
* @summary List orders
|
|
@@ -540,6 +1113,25 @@ export const PlatformApiFp = function (configuration) {
|
|
|
540
1113
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
541
1114
|
});
|
|
542
1115
|
},
|
|
1116
|
+
/**
|
|
1117
|
+
* Update a fulfillment that belongs to an order placed through the platform
|
|
1118
|
+
* @summary Update fulfillment
|
|
1119
|
+
* @param {string} project Project unique identifier
|
|
1120
|
+
* @param {string} platformId The platform identifier
|
|
1121
|
+
* @param {string} fulfillmentId The fulfillment identifier
|
|
1122
|
+
* @param {UpdateFulfillmentRequest} updateFulfillmentRequest
|
|
1123
|
+
* @param {*} [options] Override http request option.
|
|
1124
|
+
* @throws {RequiredError}
|
|
1125
|
+
*/
|
|
1126
|
+
updateFulfillment(project, platformId, fulfillmentId, updateFulfillmentRequest, options) {
|
|
1127
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1128
|
+
var _a, _b, _c;
|
|
1129
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateFulfillment(project, platformId, fulfillmentId, updateFulfillmentRequest, options);
|
|
1130
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1131
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlatformApi.updateFulfillment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1132
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1133
|
+
});
|
|
1134
|
+
},
|
|
543
1135
|
/**
|
|
544
1136
|
*
|
|
545
1137
|
* @summary Update platform
|
|
@@ -576,6 +1168,26 @@ export const PlatformApiFactory = function (configuration, basePath, axios) {
|
|
|
576
1168
|
exportOrders(requestParameters, options) {
|
|
577
1169
|
return localVarFp.exportOrders(requestParameters.project, requestParameters.platformId, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
578
1170
|
},
|
|
1171
|
+
/**
|
|
1172
|
+
* Get a fulfillment for a platform by a given fulfillment ID.
|
|
1173
|
+
* @summary Get fulfillment
|
|
1174
|
+
* @param {PlatformApiGetFulfillmentRequest} requestParameters Request parameters.
|
|
1175
|
+
* @param {*} [options] Override http request option.
|
|
1176
|
+
* @throws {RequiredError}
|
|
1177
|
+
*/
|
|
1178
|
+
getFulfillment(requestParameters, options) {
|
|
1179
|
+
return localVarFp.getFulfillment(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, options).then((request) => request(axios, basePath));
|
|
1180
|
+
},
|
|
1181
|
+
/**
|
|
1182
|
+
* Get an order for a platform by a given order ID.
|
|
1183
|
+
* @summary Get order
|
|
1184
|
+
* @param {PlatformApiGetOrderRequest} requestParameters Request parameters.
|
|
1185
|
+
* @param {*} [options] Override http request option.
|
|
1186
|
+
* @throws {RequiredError}
|
|
1187
|
+
*/
|
|
1188
|
+
getOrder(requestParameters, options) {
|
|
1189
|
+
return localVarFp.getOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(axios, basePath));
|
|
1190
|
+
},
|
|
579
1191
|
/**
|
|
580
1192
|
*
|
|
581
1193
|
* @summary Get platform details
|
|
@@ -586,6 +1198,16 @@ export const PlatformApiFactory = function (configuration, basePath, axios) {
|
|
|
586
1198
|
getPlatform(requestParameters, options) {
|
|
587
1199
|
return localVarFp.getPlatform(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
588
1200
|
},
|
|
1201
|
+
/**
|
|
1202
|
+
* List available fulfillers for a given fulfillment
|
|
1203
|
+
* @summary List available fulfillers
|
|
1204
|
+
* @param {PlatformApiListAvailableFulfillersRequest} requestParameters Request parameters.
|
|
1205
|
+
* @param {*} [options] Override http request option.
|
|
1206
|
+
* @throws {RequiredError}
|
|
1207
|
+
*/
|
|
1208
|
+
listAvailableFulfillers(requestParameters, options) {
|
|
1209
|
+
return localVarFp.listAvailableFulfillers(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, options).then((request) => request(axios, basePath));
|
|
1210
|
+
},
|
|
589
1211
|
/**
|
|
590
1212
|
* Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
|
|
591
1213
|
* @summary List orders
|
|
@@ -596,6 +1218,16 @@ export const PlatformApiFactory = function (configuration, basePath, axios) {
|
|
|
596
1218
|
listOrders(requestParameters, options) {
|
|
597
1219
|
return localVarFp.listOrders(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
598
1220
|
},
|
|
1221
|
+
/**
|
|
1222
|
+
* Update a fulfillment that belongs to an order placed through the platform
|
|
1223
|
+
* @summary Update fulfillment
|
|
1224
|
+
* @param {PlatformApiUpdateFulfillmentRequest} requestParameters Request parameters.
|
|
1225
|
+
* @param {*} [options] Override http request option.
|
|
1226
|
+
* @throws {RequiredError}
|
|
1227
|
+
*/
|
|
1228
|
+
updateFulfillment(requestParameters, options) {
|
|
1229
|
+
return localVarFp.updateFulfillment(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, requestParameters.updateFulfillmentRequest, options).then((request) => request(axios, basePath));
|
|
1230
|
+
},
|
|
599
1231
|
/**
|
|
600
1232
|
*
|
|
601
1233
|
* @summary Update platform
|
|
@@ -626,6 +1258,28 @@ export class PlatformApi extends BaseAPI {
|
|
|
626
1258
|
exportOrders(requestParameters, options) {
|
|
627
1259
|
return PlatformApiFp(this.configuration).exportOrders(requestParameters.project, requestParameters.platformId, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
628
1260
|
}
|
|
1261
|
+
/**
|
|
1262
|
+
* Get a fulfillment for a platform by a given fulfillment ID.
|
|
1263
|
+
* @summary Get fulfillment
|
|
1264
|
+
* @param {PlatformApiGetFulfillmentRequest} requestParameters Request parameters.
|
|
1265
|
+
* @param {*} [options] Override http request option.
|
|
1266
|
+
* @throws {RequiredError}
|
|
1267
|
+
* @memberof PlatformApi
|
|
1268
|
+
*/
|
|
1269
|
+
getFulfillment(requestParameters, options) {
|
|
1270
|
+
return PlatformApiFp(this.configuration).getFulfillment(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, options).then((request) => request(this.axios, this.basePath));
|
|
1271
|
+
}
|
|
1272
|
+
/**
|
|
1273
|
+
* Get an order for a platform by a given order ID.
|
|
1274
|
+
* @summary Get order
|
|
1275
|
+
* @param {PlatformApiGetOrderRequest} requestParameters Request parameters.
|
|
1276
|
+
* @param {*} [options] Override http request option.
|
|
1277
|
+
* @throws {RequiredError}
|
|
1278
|
+
* @memberof PlatformApi
|
|
1279
|
+
*/
|
|
1280
|
+
getOrder(requestParameters, options) {
|
|
1281
|
+
return PlatformApiFp(this.configuration).getOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
|
|
1282
|
+
}
|
|
629
1283
|
/**
|
|
630
1284
|
*
|
|
631
1285
|
* @summary Get platform details
|
|
@@ -637,6 +1291,17 @@ export class PlatformApi extends BaseAPI {
|
|
|
637
1291
|
getPlatform(requestParameters, options) {
|
|
638
1292
|
return PlatformApiFp(this.configuration).getPlatform(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
639
1293
|
}
|
|
1294
|
+
/**
|
|
1295
|
+
* List available fulfillers for a given fulfillment
|
|
1296
|
+
* @summary List available fulfillers
|
|
1297
|
+
* @param {PlatformApiListAvailableFulfillersRequest} requestParameters Request parameters.
|
|
1298
|
+
* @param {*} [options] Override http request option.
|
|
1299
|
+
* @throws {RequiredError}
|
|
1300
|
+
* @memberof PlatformApi
|
|
1301
|
+
*/
|
|
1302
|
+
listAvailableFulfillers(requestParameters, options) {
|
|
1303
|
+
return PlatformApiFp(this.configuration).listAvailableFulfillers(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, options).then((request) => request(this.axios, this.basePath));
|
|
1304
|
+
}
|
|
640
1305
|
/**
|
|
641
1306
|
* Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
|
|
642
1307
|
* @summary List orders
|
|
@@ -648,6 +1313,17 @@ export class PlatformApi extends BaseAPI {
|
|
|
648
1313
|
listOrders(requestParameters, options) {
|
|
649
1314
|
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));
|
|
650
1315
|
}
|
|
1316
|
+
/**
|
|
1317
|
+
* Update a fulfillment that belongs to an order placed through the platform
|
|
1318
|
+
* @summary Update fulfillment
|
|
1319
|
+
* @param {PlatformApiUpdateFulfillmentRequest} requestParameters Request parameters.
|
|
1320
|
+
* @param {*} [options] Override http request option.
|
|
1321
|
+
* @throws {RequiredError}
|
|
1322
|
+
* @memberof PlatformApi
|
|
1323
|
+
*/
|
|
1324
|
+
updateFulfillment(requestParameters, options) {
|
|
1325
|
+
return PlatformApiFp(this.configuration).updateFulfillment(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, requestParameters.updateFulfillmentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1326
|
+
}
|
|
651
1327
|
/**
|
|
652
1328
|
*
|
|
653
1329
|
* @summary Update platform
|