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