@teemill/platform 0.3.0 → 0.5.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/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/api.ts +1246 -50
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +880 -1
- package/dist/api.js +454 -2
- 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 +880 -1
- package/dist/esm/api.js +449 -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.5.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -26,12 +26,313 @@ import globalAxios from 'axios';
|
|
|
26
26
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
import { BASE_PATH, BaseAPI, operationServerMap } from './base';
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @enum {string}
|
|
33
|
+
*/
|
|
34
|
+
export const OrderStatus = {
|
|
35
|
+
New: 'new',
|
|
36
|
+
Paid: 'paid',
|
|
37
|
+
Processing: 'processing',
|
|
38
|
+
Complete: 'complete',
|
|
39
|
+
Refunded: 'refunded'
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* OrdersApi - axios parameter creator
|
|
43
|
+
* @export
|
|
44
|
+
*/
|
|
45
|
+
export const OrdersApiAxiosParamCreator = function (configuration) {
|
|
46
|
+
return {
|
|
47
|
+
/**
|
|
48
|
+
* Export orders as a CSV file
|
|
49
|
+
* @summary Export orders
|
|
50
|
+
* @param {string} project Project unique identifier
|
|
51
|
+
* @param {string} platformId The platform identifier
|
|
52
|
+
* @param {string} start Start of date range to filter by when orders were placed
|
|
53
|
+
* @param {string} [end] End of date range to filter by when orders were placed
|
|
54
|
+
* @param {*} [options] Override http request option.
|
|
55
|
+
* @throws {RequiredError}
|
|
56
|
+
*/
|
|
57
|
+
exportOrders: (project_1, platformId_1, start_1, end_1, ...args_1) => __awaiter(this, [project_1, platformId_1, start_1, end_1, ...args_1], void 0, function* (project, platformId, start, end, options = {}) {
|
|
58
|
+
// verify required parameter 'project' is not null or undefined
|
|
59
|
+
assertParamExists('exportOrders', 'project', project);
|
|
60
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
61
|
+
assertParamExists('exportOrders', 'platformId', platformId);
|
|
62
|
+
// verify required parameter 'start' is not null or undefined
|
|
63
|
+
assertParamExists('exportOrders', 'start', start);
|
|
64
|
+
const localVarPath = `/v1/platform/{platformId}/orders/export`
|
|
65
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
|
|
66
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
67
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
68
|
+
let baseOptions;
|
|
69
|
+
if (configuration) {
|
|
70
|
+
baseOptions = configuration.baseOptions;
|
|
71
|
+
}
|
|
72
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
73
|
+
const localVarHeaderParameter = {};
|
|
74
|
+
const localVarQueryParameter = {};
|
|
75
|
+
// authentication session-oauth required
|
|
76
|
+
// oauth required
|
|
77
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
78
|
+
// authentication api-key required
|
|
79
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
80
|
+
if (project !== undefined) {
|
|
81
|
+
localVarQueryParameter['project'] = project;
|
|
82
|
+
}
|
|
83
|
+
if (start !== undefined) {
|
|
84
|
+
localVarQueryParameter['start'] = (start instanceof Date) ?
|
|
85
|
+
start.toISOString() :
|
|
86
|
+
start;
|
|
87
|
+
}
|
|
88
|
+
if (end !== undefined) {
|
|
89
|
+
localVarQueryParameter['end'] = (end instanceof Date) ?
|
|
90
|
+
end.toISOString() :
|
|
91
|
+
end;
|
|
92
|
+
}
|
|
93
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
94
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
95
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
96
|
+
return {
|
|
97
|
+
url: toPathString(localVarUrlObj),
|
|
98
|
+
options: localVarRequestOptions,
|
|
99
|
+
};
|
|
100
|
+
}),
|
|
101
|
+
/**
|
|
102
|
+
* Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
|
|
103
|
+
* @summary List orders
|
|
104
|
+
* @param {string} project Project unique identifier
|
|
105
|
+
* @param {string} platformId The platform identifier
|
|
106
|
+
* @param {number} [pageToken] Page reference token
|
|
107
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
108
|
+
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
109
|
+
* @param {string} [start] Start of date range to filter by when orders were placed
|
|
110
|
+
* @param {string} [end] End of date range to filter by when orders were placed
|
|
111
|
+
* @param {*} [options] Override http request option.
|
|
112
|
+
* @throws {RequiredError}
|
|
113
|
+
*/
|
|
114
|
+
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 = {}) {
|
|
115
|
+
// verify required parameter 'project' is not null or undefined
|
|
116
|
+
assertParamExists('listOrders', 'project', project);
|
|
117
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
118
|
+
assertParamExists('listOrders', 'platformId', platformId);
|
|
119
|
+
const localVarPath = `/v1/platform/{platformId}/orders`
|
|
120
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
|
|
121
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
122
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
123
|
+
let baseOptions;
|
|
124
|
+
if (configuration) {
|
|
125
|
+
baseOptions = configuration.baseOptions;
|
|
126
|
+
}
|
|
127
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
128
|
+
const localVarHeaderParameter = {};
|
|
129
|
+
const localVarQueryParameter = {};
|
|
130
|
+
// authentication session-oauth required
|
|
131
|
+
// oauth required
|
|
132
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
133
|
+
// authentication api-key required
|
|
134
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
135
|
+
if (project !== undefined) {
|
|
136
|
+
localVarQueryParameter['project'] = project;
|
|
137
|
+
}
|
|
138
|
+
if (pageToken !== undefined) {
|
|
139
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
140
|
+
}
|
|
141
|
+
if (pageSize !== undefined) {
|
|
142
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
143
|
+
}
|
|
144
|
+
if (search !== undefined) {
|
|
145
|
+
localVarQueryParameter['search'] = search;
|
|
146
|
+
}
|
|
147
|
+
if (start !== undefined) {
|
|
148
|
+
localVarQueryParameter['start'] = (start instanceof Date) ?
|
|
149
|
+
start.toISOString() :
|
|
150
|
+
start;
|
|
151
|
+
}
|
|
152
|
+
if (end !== undefined) {
|
|
153
|
+
localVarQueryParameter['end'] = (end instanceof Date) ?
|
|
154
|
+
end.toISOString() :
|
|
155
|
+
end;
|
|
156
|
+
}
|
|
157
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
158
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
159
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
160
|
+
return {
|
|
161
|
+
url: toPathString(localVarUrlObj),
|
|
162
|
+
options: localVarRequestOptions,
|
|
163
|
+
};
|
|
164
|
+
}),
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
* OrdersApi - functional programming interface
|
|
169
|
+
* @export
|
|
170
|
+
*/
|
|
171
|
+
export const OrdersApiFp = function (configuration) {
|
|
172
|
+
const localVarAxiosParamCreator = OrdersApiAxiosParamCreator(configuration);
|
|
173
|
+
return {
|
|
174
|
+
/**
|
|
175
|
+
* Export orders as a CSV file
|
|
176
|
+
* @summary Export orders
|
|
177
|
+
* @param {string} project Project unique identifier
|
|
178
|
+
* @param {string} platformId The platform identifier
|
|
179
|
+
* @param {string} start Start of date range to filter by when orders were placed
|
|
180
|
+
* @param {string} [end] End of date range to filter by when orders were placed
|
|
181
|
+
* @param {*} [options] Override http request option.
|
|
182
|
+
* @throws {RequiredError}
|
|
183
|
+
*/
|
|
184
|
+
exportOrders(project, platformId, start, end, options) {
|
|
185
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
186
|
+
var _a, _b, _c;
|
|
187
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.exportOrders(project, platformId, start, end, options);
|
|
188
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
189
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrdersApi.exportOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
190
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
191
|
+
});
|
|
192
|
+
},
|
|
193
|
+
/**
|
|
194
|
+
* Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
|
|
195
|
+
* @summary List orders
|
|
196
|
+
* @param {string} project Project unique identifier
|
|
197
|
+
* @param {string} platformId The platform identifier
|
|
198
|
+
* @param {number} [pageToken] Page reference token
|
|
199
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
200
|
+
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
201
|
+
* @param {string} [start] Start of date range to filter by when orders were placed
|
|
202
|
+
* @param {string} [end] End of date range to filter by when orders were placed
|
|
203
|
+
* @param {*} [options] Override http request option.
|
|
204
|
+
* @throws {RequiredError}
|
|
205
|
+
*/
|
|
206
|
+
listOrders(project, platformId, pageToken, pageSize, search, start, end, options) {
|
|
207
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
208
|
+
var _a, _b, _c;
|
|
209
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrders(project, platformId, pageToken, pageSize, search, start, end, options);
|
|
210
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
211
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrdersApi.listOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
212
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
213
|
+
});
|
|
214
|
+
},
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
/**
|
|
218
|
+
* OrdersApi - factory interface
|
|
219
|
+
* @export
|
|
220
|
+
*/
|
|
221
|
+
export const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
222
|
+
const localVarFp = OrdersApiFp(configuration);
|
|
223
|
+
return {
|
|
224
|
+
/**
|
|
225
|
+
* Export orders as a CSV file
|
|
226
|
+
* @summary Export orders
|
|
227
|
+
* @param {OrdersApiExportOrdersRequest} requestParameters Request parameters.
|
|
228
|
+
* @param {*} [options] Override http request option.
|
|
229
|
+
* @throws {RequiredError}
|
|
230
|
+
*/
|
|
231
|
+
exportOrders(requestParameters, options) {
|
|
232
|
+
return localVarFp.exportOrders(requestParameters.project, requestParameters.platformId, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
233
|
+
},
|
|
234
|
+
/**
|
|
235
|
+
* Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
|
|
236
|
+
* @summary List orders
|
|
237
|
+
* @param {OrdersApiListOrdersRequest} requestParameters Request parameters.
|
|
238
|
+
* @param {*} [options] Override http request option.
|
|
239
|
+
* @throws {RequiredError}
|
|
240
|
+
*/
|
|
241
|
+
listOrders(requestParameters, options) {
|
|
242
|
+
return localVarFp.listOrders(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
243
|
+
},
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
/**
|
|
247
|
+
* OrdersApi - object-oriented interface
|
|
248
|
+
* @export
|
|
249
|
+
* @class OrdersApi
|
|
250
|
+
* @extends {BaseAPI}
|
|
251
|
+
*/
|
|
252
|
+
export class OrdersApi extends BaseAPI {
|
|
253
|
+
/**
|
|
254
|
+
* Export orders as a CSV file
|
|
255
|
+
* @summary Export orders
|
|
256
|
+
* @param {OrdersApiExportOrdersRequest} requestParameters Request parameters.
|
|
257
|
+
* @param {*} [options] Override http request option.
|
|
258
|
+
* @throws {RequiredError}
|
|
259
|
+
* @memberof OrdersApi
|
|
260
|
+
*/
|
|
261
|
+
exportOrders(requestParameters, options) {
|
|
262
|
+
return OrdersApiFp(this.configuration).exportOrders(requestParameters.project, requestParameters.platformId, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
|
|
266
|
+
* @summary List orders
|
|
267
|
+
* @param {OrdersApiListOrdersRequest} requestParameters Request parameters.
|
|
268
|
+
* @param {*} [options] Override http request option.
|
|
269
|
+
* @throws {RequiredError}
|
|
270
|
+
* @memberof OrdersApi
|
|
271
|
+
*/
|
|
272
|
+
listOrders(requestParameters, options) {
|
|
273
|
+
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
|
+
}
|
|
275
|
+
}
|
|
29
276
|
/**
|
|
30
277
|
* PlatformApi - axios parameter creator
|
|
31
278
|
* @export
|
|
32
279
|
*/
|
|
33
280
|
export const PlatformApiAxiosParamCreator = function (configuration) {
|
|
34
281
|
return {
|
|
282
|
+
/**
|
|
283
|
+
* Export orders as a CSV file
|
|
284
|
+
* @summary Export orders
|
|
285
|
+
* @param {string} project Project unique identifier
|
|
286
|
+
* @param {string} platformId The platform identifier
|
|
287
|
+
* @param {string} start Start of date range to filter by when orders were placed
|
|
288
|
+
* @param {string} [end] End of date range to filter by when orders were placed
|
|
289
|
+
* @param {*} [options] Override http request option.
|
|
290
|
+
* @throws {RequiredError}
|
|
291
|
+
*/
|
|
292
|
+
exportOrders: (project_1, platformId_1, start_1, end_1, ...args_1) => __awaiter(this, [project_1, platformId_1, start_1, end_1, ...args_1], void 0, function* (project, platformId, start, end, options = {}) {
|
|
293
|
+
// verify required parameter 'project' is not null or undefined
|
|
294
|
+
assertParamExists('exportOrders', 'project', project);
|
|
295
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
296
|
+
assertParamExists('exportOrders', 'platformId', platformId);
|
|
297
|
+
// verify required parameter 'start' is not null or undefined
|
|
298
|
+
assertParamExists('exportOrders', 'start', start);
|
|
299
|
+
const localVarPath = `/v1/platform/{platformId}/orders/export`
|
|
300
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
|
|
301
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
302
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
303
|
+
let baseOptions;
|
|
304
|
+
if (configuration) {
|
|
305
|
+
baseOptions = configuration.baseOptions;
|
|
306
|
+
}
|
|
307
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
308
|
+
const localVarHeaderParameter = {};
|
|
309
|
+
const localVarQueryParameter = {};
|
|
310
|
+
// authentication session-oauth required
|
|
311
|
+
// oauth required
|
|
312
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
313
|
+
// authentication api-key required
|
|
314
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
315
|
+
if (project !== undefined) {
|
|
316
|
+
localVarQueryParameter['project'] = project;
|
|
317
|
+
}
|
|
318
|
+
if (start !== undefined) {
|
|
319
|
+
localVarQueryParameter['start'] = (start instanceof Date) ?
|
|
320
|
+
start.toISOString() :
|
|
321
|
+
start;
|
|
322
|
+
}
|
|
323
|
+
if (end !== undefined) {
|
|
324
|
+
localVarQueryParameter['end'] = (end instanceof Date) ?
|
|
325
|
+
end.toISOString() :
|
|
326
|
+
end;
|
|
327
|
+
}
|
|
328
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
329
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
330
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
331
|
+
return {
|
|
332
|
+
url: toPathString(localVarUrlObj),
|
|
333
|
+
options: localVarRequestOptions,
|
|
334
|
+
};
|
|
335
|
+
}),
|
|
35
336
|
/**
|
|
36
337
|
*
|
|
37
338
|
* @summary Get platform details
|
|
@@ -68,6 +369,70 @@ export const PlatformApiAxiosParamCreator = function (configuration) {
|
|
|
68
369
|
options: localVarRequestOptions,
|
|
69
370
|
};
|
|
70
371
|
}),
|
|
372
|
+
/**
|
|
373
|
+
* Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
|
|
374
|
+
* @summary List orders
|
|
375
|
+
* @param {string} project Project unique identifier
|
|
376
|
+
* @param {string} platformId The platform identifier
|
|
377
|
+
* @param {number} [pageToken] Page reference token
|
|
378
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
379
|
+
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
380
|
+
* @param {string} [start] Start of date range to filter by when orders were placed
|
|
381
|
+
* @param {string} [end] End of date range to filter by when orders were placed
|
|
382
|
+
* @param {*} [options] Override http request option.
|
|
383
|
+
* @throws {RequiredError}
|
|
384
|
+
*/
|
|
385
|
+
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 = {}) {
|
|
386
|
+
// verify required parameter 'project' is not null or undefined
|
|
387
|
+
assertParamExists('listOrders', 'project', project);
|
|
388
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
389
|
+
assertParamExists('listOrders', 'platformId', platformId);
|
|
390
|
+
const localVarPath = `/v1/platform/{platformId}/orders`
|
|
391
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
|
|
392
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
393
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
394
|
+
let baseOptions;
|
|
395
|
+
if (configuration) {
|
|
396
|
+
baseOptions = configuration.baseOptions;
|
|
397
|
+
}
|
|
398
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
399
|
+
const localVarHeaderParameter = {};
|
|
400
|
+
const localVarQueryParameter = {};
|
|
401
|
+
// authentication session-oauth required
|
|
402
|
+
// oauth required
|
|
403
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
404
|
+
// authentication api-key required
|
|
405
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
406
|
+
if (project !== undefined) {
|
|
407
|
+
localVarQueryParameter['project'] = project;
|
|
408
|
+
}
|
|
409
|
+
if (pageToken !== undefined) {
|
|
410
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
411
|
+
}
|
|
412
|
+
if (pageSize !== undefined) {
|
|
413
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
414
|
+
}
|
|
415
|
+
if (search !== undefined) {
|
|
416
|
+
localVarQueryParameter['search'] = search;
|
|
417
|
+
}
|
|
418
|
+
if (start !== undefined) {
|
|
419
|
+
localVarQueryParameter['start'] = (start instanceof Date) ?
|
|
420
|
+
start.toISOString() :
|
|
421
|
+
start;
|
|
422
|
+
}
|
|
423
|
+
if (end !== undefined) {
|
|
424
|
+
localVarQueryParameter['end'] = (end instanceof Date) ?
|
|
425
|
+
end.toISOString() :
|
|
426
|
+
end;
|
|
427
|
+
}
|
|
428
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
429
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
430
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
431
|
+
return {
|
|
432
|
+
url: toPathString(localVarUrlObj),
|
|
433
|
+
options: localVarRequestOptions,
|
|
434
|
+
};
|
|
435
|
+
}),
|
|
71
436
|
/**
|
|
72
437
|
*
|
|
73
438
|
* @summary Update platform
|
|
@@ -118,6 +483,25 @@ export const PlatformApiAxiosParamCreator = function (configuration) {
|
|
|
118
483
|
export const PlatformApiFp = function (configuration) {
|
|
119
484
|
const localVarAxiosParamCreator = PlatformApiAxiosParamCreator(configuration);
|
|
120
485
|
return {
|
|
486
|
+
/**
|
|
487
|
+
* Export orders as a CSV file
|
|
488
|
+
* @summary Export orders
|
|
489
|
+
* @param {string} project Project unique identifier
|
|
490
|
+
* @param {string} platformId The platform identifier
|
|
491
|
+
* @param {string} start Start of date range to filter by when orders were placed
|
|
492
|
+
* @param {string} [end] End of date range to filter by when orders were placed
|
|
493
|
+
* @param {*} [options] Override http request option.
|
|
494
|
+
* @throws {RequiredError}
|
|
495
|
+
*/
|
|
496
|
+
exportOrders(project, platformId, start, end, options) {
|
|
497
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
498
|
+
var _a, _b, _c;
|
|
499
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.exportOrders(project, platformId, start, end, options);
|
|
500
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
501
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlatformApi.exportOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
502
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
503
|
+
});
|
|
504
|
+
},
|
|
121
505
|
/**
|
|
122
506
|
*
|
|
123
507
|
* @summary Get platform details
|
|
@@ -134,6 +518,28 @@ export const PlatformApiFp = function (configuration) {
|
|
|
134
518
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
135
519
|
});
|
|
136
520
|
},
|
|
521
|
+
/**
|
|
522
|
+
* Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
|
|
523
|
+
* @summary List orders
|
|
524
|
+
* @param {string} project Project unique identifier
|
|
525
|
+
* @param {string} platformId The platform identifier
|
|
526
|
+
* @param {number} [pageToken] Page reference token
|
|
527
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
528
|
+
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
529
|
+
* @param {string} [start] Start of date range to filter by when orders were placed
|
|
530
|
+
* @param {string} [end] End of date range to filter by when orders were placed
|
|
531
|
+
* @param {*} [options] Override http request option.
|
|
532
|
+
* @throws {RequiredError}
|
|
533
|
+
*/
|
|
534
|
+
listOrders(project, platformId, pageToken, pageSize, search, start, end, options) {
|
|
535
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
536
|
+
var _a, _b, _c;
|
|
537
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrders(project, platformId, pageToken, pageSize, search, start, end, options);
|
|
538
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
539
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlatformApi.listOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
540
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
541
|
+
});
|
|
542
|
+
},
|
|
137
543
|
/**
|
|
138
544
|
*
|
|
139
545
|
* @summary Update platform
|
|
@@ -160,6 +566,16 @@ export const PlatformApiFp = function (configuration) {
|
|
|
160
566
|
export const PlatformApiFactory = function (configuration, basePath, axios) {
|
|
161
567
|
const localVarFp = PlatformApiFp(configuration);
|
|
162
568
|
return {
|
|
569
|
+
/**
|
|
570
|
+
* Export orders as a CSV file
|
|
571
|
+
* @summary Export orders
|
|
572
|
+
* @param {PlatformApiExportOrdersRequest} requestParameters Request parameters.
|
|
573
|
+
* @param {*} [options] Override http request option.
|
|
574
|
+
* @throws {RequiredError}
|
|
575
|
+
*/
|
|
576
|
+
exportOrders(requestParameters, options) {
|
|
577
|
+
return localVarFp.exportOrders(requestParameters.project, requestParameters.platformId, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
578
|
+
},
|
|
163
579
|
/**
|
|
164
580
|
*
|
|
165
581
|
* @summary Get platform details
|
|
@@ -170,6 +586,16 @@ export const PlatformApiFactory = function (configuration, basePath, axios) {
|
|
|
170
586
|
getPlatform(requestParameters, options) {
|
|
171
587
|
return localVarFp.getPlatform(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
172
588
|
},
|
|
589
|
+
/**
|
|
590
|
+
* Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
|
|
591
|
+
* @summary List orders
|
|
592
|
+
* @param {PlatformApiListOrdersRequest} requestParameters Request parameters.
|
|
593
|
+
* @param {*} [options] Override http request option.
|
|
594
|
+
* @throws {RequiredError}
|
|
595
|
+
*/
|
|
596
|
+
listOrders(requestParameters, options) {
|
|
597
|
+
return localVarFp.listOrders(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
598
|
+
},
|
|
173
599
|
/**
|
|
174
600
|
*
|
|
175
601
|
* @summary Update platform
|
|
@@ -189,6 +615,17 @@ export const PlatformApiFactory = function (configuration, basePath, axios) {
|
|
|
189
615
|
* @extends {BaseAPI}
|
|
190
616
|
*/
|
|
191
617
|
export class PlatformApi extends BaseAPI {
|
|
618
|
+
/**
|
|
619
|
+
* Export orders as a CSV file
|
|
620
|
+
* @summary Export orders
|
|
621
|
+
* @param {PlatformApiExportOrdersRequest} requestParameters Request parameters.
|
|
622
|
+
* @param {*} [options] Override http request option.
|
|
623
|
+
* @throws {RequiredError}
|
|
624
|
+
* @memberof PlatformApi
|
|
625
|
+
*/
|
|
626
|
+
exportOrders(requestParameters, options) {
|
|
627
|
+
return PlatformApiFp(this.configuration).exportOrders(requestParameters.project, requestParameters.platformId, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
628
|
+
}
|
|
192
629
|
/**
|
|
193
630
|
*
|
|
194
631
|
* @summary Get platform details
|
|
@@ -200,6 +637,17 @@ export class PlatformApi extends BaseAPI {
|
|
|
200
637
|
getPlatform(requestParameters, options) {
|
|
201
638
|
return PlatformApiFp(this.configuration).getPlatform(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
202
639
|
}
|
|
640
|
+
/**
|
|
641
|
+
* Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
|
|
642
|
+
* @summary List orders
|
|
643
|
+
* @param {PlatformApiListOrdersRequest} requestParameters Request parameters.
|
|
644
|
+
* @param {*} [options] Override http request option.
|
|
645
|
+
* @throws {RequiredError}
|
|
646
|
+
* @memberof PlatformApi
|
|
647
|
+
*/
|
|
648
|
+
listOrders(requestParameters, options) {
|
|
649
|
+
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
|
+
}
|
|
203
651
|
/**
|
|
204
652
|
*
|
|
205
653
|
* @summary Update platform
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Platform API
|
|
3
3
|
* 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)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.5.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/base.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.5.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Platform API
|
|
3
3
|
* 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)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.5.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.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.5.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Platform API
|
|
3
3
|
* 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)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.5.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -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.5.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Platform API
|
|
3
3
|
* 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)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.5.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.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.5.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Platform API
|
|
3
3
|
* 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)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.5.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Platform API
|
|
6
6
|
* 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)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.
|
|
8
|
+
* The version of the OpenAPI document: 0.5.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/index.ts
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.5.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|