@teemill/platform 0.10.0 → 0.11.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/dist/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.10.0
7
+ * The version of the OpenAPI document: 0.11.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -66,6 +66,279 @@ export const VariantAttributeThumbnailTypeEnum = {
66
66
  Color: 'color',
67
67
  Image: 'image'
68
68
  };
69
+ /**
70
+ * CustomersApi - axios parameter creator
71
+ * @export
72
+ */
73
+ export const CustomersApiAxiosParamCreator = function (configuration) {
74
+ return {
75
+ /**
76
+ * Export customers as a CSV file
77
+ * @summary Export customers
78
+ * @param {string} project Project unique identifier
79
+ * @param {string} platformId The platform identifier
80
+ * @param {*} [options] Override http request option.
81
+ * @throws {RequiredError}
82
+ */
83
+ exportCustomers: (project_1, platformId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, ...args_1], void 0, function* (project, platformId, options = {}) {
84
+ // verify required parameter 'project' is not null or undefined
85
+ assertParamExists('exportCustomers', 'project', project);
86
+ // verify required parameter 'platformId' is not null or undefined
87
+ assertParamExists('exportCustomers', 'platformId', platformId);
88
+ const localVarPath = `/v1/platform/{platformId}/customers/export`
89
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
90
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
91
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
92
+ let baseOptions;
93
+ if (configuration) {
94
+ baseOptions = configuration.baseOptions;
95
+ }
96
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
97
+ const localVarHeaderParameter = {};
98
+ const localVarQueryParameter = {};
99
+ // authentication session-oauth required
100
+ // oauth required
101
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
102
+ // authentication api-key required
103
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
104
+ if (project !== undefined) {
105
+ localVarQueryParameter['project'] = project;
106
+ }
107
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
108
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
109
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
110
+ return {
111
+ url: toPathString(localVarUrlObj),
112
+ options: localVarRequestOptions,
113
+ };
114
+ }),
115
+ /**
116
+ * Get a customer for a platform by a given customer ID.
117
+ * @summary Get customer
118
+ * @param {string} project Project unique identifier
119
+ * @param {string} platformId The platform identifier
120
+ * @param {string} customerId The customer identifier
121
+ * @param {*} [options] Override http request option.
122
+ * @throws {RequiredError}
123
+ */
124
+ getCustomer: (project_1, platformId_1, customerId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, customerId_1, ...args_1], void 0, function* (project, platformId, customerId, options = {}) {
125
+ // verify required parameter 'project' is not null or undefined
126
+ assertParamExists('getCustomer', 'project', project);
127
+ // verify required parameter 'platformId' is not null or undefined
128
+ assertParamExists('getCustomer', 'platformId', platformId);
129
+ // verify required parameter 'customerId' is not null or undefined
130
+ assertParamExists('getCustomer', 'customerId', customerId);
131
+ const localVarPath = `/v1/platform/{platformId}/customers/{customerId}`
132
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
133
+ .replace(`{${"customerId"}}`, encodeURIComponent(String(customerId)));
134
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
135
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
136
+ let baseOptions;
137
+ if (configuration) {
138
+ baseOptions = configuration.baseOptions;
139
+ }
140
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
141
+ const localVarHeaderParameter = {};
142
+ const localVarQueryParameter = {};
143
+ // authentication session-oauth required
144
+ // oauth required
145
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
146
+ // authentication api-key required
147
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
148
+ if (project !== undefined) {
149
+ localVarQueryParameter['project'] = project;
150
+ }
151
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
152
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
153
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
154
+ return {
155
+ url: toPathString(localVarUrlObj),
156
+ options: localVarRequestOptions,
157
+ };
158
+ }),
159
+ /**
160
+ * List customers for a platform
161
+ * @summary List customers
162
+ * @param {string} project Project unique identifier
163
+ * @param {string} platformId The platform identifier
164
+ * @param {*} [options] Override http request option.
165
+ * @throws {RequiredError}
166
+ */
167
+ listCustomers: (project_1, platformId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, ...args_1], void 0, function* (project, platformId, options = {}) {
168
+ // verify required parameter 'project' is not null or undefined
169
+ assertParamExists('listCustomers', 'project', project);
170
+ // verify required parameter 'platformId' is not null or undefined
171
+ assertParamExists('listCustomers', 'platformId', platformId);
172
+ const localVarPath = `/v1/platform/{platformId}/customers`
173
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
174
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
175
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
176
+ let baseOptions;
177
+ if (configuration) {
178
+ baseOptions = configuration.baseOptions;
179
+ }
180
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
181
+ const localVarHeaderParameter = {};
182
+ const localVarQueryParameter = {};
183
+ // authentication session-oauth required
184
+ // oauth required
185
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
186
+ // authentication api-key required
187
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
188
+ if (project !== undefined) {
189
+ localVarQueryParameter['project'] = project;
190
+ }
191
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
192
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
193
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
194
+ return {
195
+ url: toPathString(localVarUrlObj),
196
+ options: localVarRequestOptions,
197
+ };
198
+ }),
199
+ };
200
+ };
201
+ /**
202
+ * CustomersApi - functional programming interface
203
+ * @export
204
+ */
205
+ export const CustomersApiFp = function (configuration) {
206
+ const localVarAxiosParamCreator = CustomersApiAxiosParamCreator(configuration);
207
+ return {
208
+ /**
209
+ * Export customers as a CSV file
210
+ * @summary Export customers
211
+ * @param {string} project Project unique identifier
212
+ * @param {string} platformId The platform identifier
213
+ * @param {*} [options] Override http request option.
214
+ * @throws {RequiredError}
215
+ */
216
+ exportCustomers(project, platformId, options) {
217
+ return __awaiter(this, void 0, void 0, function* () {
218
+ var _a, _b, _c;
219
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.exportCustomers(project, platformId, options);
220
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
221
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CustomersApi.exportCustomers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
222
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
223
+ });
224
+ },
225
+ /**
226
+ * Get a customer for a platform by a given customer ID.
227
+ * @summary Get customer
228
+ * @param {string} project Project unique identifier
229
+ * @param {string} platformId The platform identifier
230
+ * @param {string} customerId The customer identifier
231
+ * @param {*} [options] Override http request option.
232
+ * @throws {RequiredError}
233
+ */
234
+ getCustomer(project, platformId, customerId, options) {
235
+ return __awaiter(this, void 0, void 0, function* () {
236
+ var _a, _b, _c;
237
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomer(project, platformId, customerId, options);
238
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
239
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CustomersApi.getCustomer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
240
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
241
+ });
242
+ },
243
+ /**
244
+ * List customers for a platform
245
+ * @summary List customers
246
+ * @param {string} project Project unique identifier
247
+ * @param {string} platformId The platform identifier
248
+ * @param {*} [options] Override http request option.
249
+ * @throws {RequiredError}
250
+ */
251
+ listCustomers(project, platformId, options) {
252
+ return __awaiter(this, void 0, void 0, function* () {
253
+ var _a, _b, _c;
254
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomers(project, platformId, options);
255
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
256
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CustomersApi.listCustomers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
257
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
258
+ });
259
+ },
260
+ };
261
+ };
262
+ /**
263
+ * CustomersApi - factory interface
264
+ * @export
265
+ */
266
+ export const CustomersApiFactory = function (configuration, basePath, axios) {
267
+ const localVarFp = CustomersApiFp(configuration);
268
+ return {
269
+ /**
270
+ * Export customers as a CSV file
271
+ * @summary Export customers
272
+ * @param {CustomersApiExportCustomersRequest} requestParameters Request parameters.
273
+ * @param {*} [options] Override http request option.
274
+ * @throws {RequiredError}
275
+ */
276
+ exportCustomers(requestParameters, options) {
277
+ return localVarFp.exportCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
278
+ },
279
+ /**
280
+ * Get a customer for a platform by a given customer ID.
281
+ * @summary Get customer
282
+ * @param {CustomersApiGetCustomerRequest} requestParameters Request parameters.
283
+ * @param {*} [options] Override http request option.
284
+ * @throws {RequiredError}
285
+ */
286
+ getCustomer(requestParameters, options) {
287
+ return localVarFp.getCustomer(requestParameters.project, requestParameters.platformId, requestParameters.customerId, options).then((request) => request(axios, basePath));
288
+ },
289
+ /**
290
+ * List customers for a platform
291
+ * @summary List customers
292
+ * @param {CustomersApiListCustomersRequest} requestParameters Request parameters.
293
+ * @param {*} [options] Override http request option.
294
+ * @throws {RequiredError}
295
+ */
296
+ listCustomers(requestParameters, options) {
297
+ return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
298
+ },
299
+ };
300
+ };
301
+ /**
302
+ * CustomersApi - object-oriented interface
303
+ * @export
304
+ * @class CustomersApi
305
+ * @extends {BaseAPI}
306
+ */
307
+ export class CustomersApi extends BaseAPI {
308
+ /**
309
+ * Export customers as a CSV file
310
+ * @summary Export customers
311
+ * @param {CustomersApiExportCustomersRequest} requestParameters Request parameters.
312
+ * @param {*} [options] Override http request option.
313
+ * @throws {RequiredError}
314
+ * @memberof CustomersApi
315
+ */
316
+ exportCustomers(requestParameters, options) {
317
+ return CustomersApiFp(this.configuration).exportCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
318
+ }
319
+ /**
320
+ * Get a customer for a platform by a given customer ID.
321
+ * @summary Get customer
322
+ * @param {CustomersApiGetCustomerRequest} requestParameters Request parameters.
323
+ * @param {*} [options] Override http request option.
324
+ * @throws {RequiredError}
325
+ * @memberof CustomersApi
326
+ */
327
+ getCustomer(requestParameters, options) {
328
+ return CustomersApiFp(this.configuration).getCustomer(requestParameters.project, requestParameters.platformId, requestParameters.customerId, options).then((request) => request(this.axios, this.basePath));
329
+ }
330
+ /**
331
+ * List customers for a platform
332
+ * @summary List customers
333
+ * @param {CustomersApiListCustomersRequest} requestParameters Request parameters.
334
+ * @param {*} [options] Override http request option.
335
+ * @throws {RequiredError}
336
+ * @memberof CustomersApi
337
+ */
338
+ listCustomers(requestParameters, options) {
339
+ return CustomersApiFp(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
340
+ }
341
+ }
69
342
  /**
70
343
  * OrdersApi - axios parameter creator
71
344
  * @export
@@ -650,6 +923,46 @@ export class OrdersApi extends BaseAPI {
650
923
  */
651
924
  export const PlatformApiAxiosParamCreator = function (configuration) {
652
925
  return {
926
+ /**
927
+ * Export customers as a CSV file
928
+ * @summary Export customers
929
+ * @param {string} project Project unique identifier
930
+ * @param {string} platformId The platform identifier
931
+ * @param {*} [options] Override http request option.
932
+ * @throws {RequiredError}
933
+ */
934
+ exportCustomers: (project_1, platformId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, ...args_1], void 0, function* (project, platformId, options = {}) {
935
+ // verify required parameter 'project' is not null or undefined
936
+ assertParamExists('exportCustomers', 'project', project);
937
+ // verify required parameter 'platformId' is not null or undefined
938
+ assertParamExists('exportCustomers', 'platformId', platformId);
939
+ const localVarPath = `/v1/platform/{platformId}/customers/export`
940
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
941
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
942
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
943
+ let baseOptions;
944
+ if (configuration) {
945
+ baseOptions = configuration.baseOptions;
946
+ }
947
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
948
+ const localVarHeaderParameter = {};
949
+ const localVarQueryParameter = {};
950
+ // authentication session-oauth required
951
+ // oauth required
952
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
953
+ // authentication api-key required
954
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
955
+ if (project !== undefined) {
956
+ localVarQueryParameter['project'] = project;
957
+ }
958
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
959
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
960
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
961
+ return {
962
+ url: toPathString(localVarUrlObj),
963
+ options: localVarRequestOptions,
964
+ };
965
+ }),
653
966
  /**
654
967
  * Export orders as a CSV file
655
968
  * @summary Export orders
@@ -708,6 +1021,50 @@ export const PlatformApiAxiosParamCreator = function (configuration) {
708
1021
  options: localVarRequestOptions,
709
1022
  };
710
1023
  }),
1024
+ /**
1025
+ * Get a customer for a platform by a given customer ID.
1026
+ * @summary Get customer
1027
+ * @param {string} project Project unique identifier
1028
+ * @param {string} platformId The platform identifier
1029
+ * @param {string} customerId The customer identifier
1030
+ * @param {*} [options] Override http request option.
1031
+ * @throws {RequiredError}
1032
+ */
1033
+ getCustomer: (project_1, platformId_1, customerId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, customerId_1, ...args_1], void 0, function* (project, platformId, customerId, options = {}) {
1034
+ // verify required parameter 'project' is not null or undefined
1035
+ assertParamExists('getCustomer', 'project', project);
1036
+ // verify required parameter 'platformId' is not null or undefined
1037
+ assertParamExists('getCustomer', 'platformId', platformId);
1038
+ // verify required parameter 'customerId' is not null or undefined
1039
+ assertParamExists('getCustomer', 'customerId', customerId);
1040
+ const localVarPath = `/v1/platform/{platformId}/customers/{customerId}`
1041
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
1042
+ .replace(`{${"customerId"}}`, encodeURIComponent(String(customerId)));
1043
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1044
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1045
+ let baseOptions;
1046
+ if (configuration) {
1047
+ baseOptions = configuration.baseOptions;
1048
+ }
1049
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1050
+ const localVarHeaderParameter = {};
1051
+ const localVarQueryParameter = {};
1052
+ // authentication session-oauth required
1053
+ // oauth required
1054
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1055
+ // authentication api-key required
1056
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1057
+ if (project !== undefined) {
1058
+ localVarQueryParameter['project'] = project;
1059
+ }
1060
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1061
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1062
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1063
+ return {
1064
+ url: toPathString(localVarUrlObj),
1065
+ options: localVarRequestOptions,
1066
+ };
1067
+ }),
711
1068
  /**
712
1069
  * Get a fulfillment for a platform by a given fulfillment ID.
713
1070
  * @summary Get fulfillment
@@ -876,6 +1233,46 @@ export const PlatformApiAxiosParamCreator = function (configuration) {
876
1233
  options: localVarRequestOptions,
877
1234
  };
878
1235
  }),
1236
+ /**
1237
+ * List customers for a platform
1238
+ * @summary List customers
1239
+ * @param {string} project Project unique identifier
1240
+ * @param {string} platformId The platform identifier
1241
+ * @param {*} [options] Override http request option.
1242
+ * @throws {RequiredError}
1243
+ */
1244
+ listCustomers: (project_1, platformId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, ...args_1], void 0, function* (project, platformId, options = {}) {
1245
+ // verify required parameter 'project' is not null or undefined
1246
+ assertParamExists('listCustomers', 'project', project);
1247
+ // verify required parameter 'platformId' is not null or undefined
1248
+ assertParamExists('listCustomers', 'platformId', platformId);
1249
+ const localVarPath = `/v1/platform/{platformId}/customers`
1250
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
1251
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1252
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1253
+ let baseOptions;
1254
+ if (configuration) {
1255
+ baseOptions = configuration.baseOptions;
1256
+ }
1257
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1258
+ const localVarHeaderParameter = {};
1259
+ const localVarQueryParameter = {};
1260
+ // authentication session-oauth required
1261
+ // oauth required
1262
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1263
+ // authentication api-key required
1264
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1265
+ if (project !== undefined) {
1266
+ localVarQueryParameter['project'] = project;
1267
+ }
1268
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1269
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1270
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1271
+ return {
1272
+ url: toPathString(localVarUrlObj),
1273
+ options: localVarRequestOptions,
1274
+ };
1275
+ }),
879
1276
  /**
880
1277
  * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
881
1278
  * @summary List orders
@@ -1137,6 +1534,23 @@ export const PlatformApiAxiosParamCreator = function (configuration) {
1137
1534
  export const PlatformApiFp = function (configuration) {
1138
1535
  const localVarAxiosParamCreator = PlatformApiAxiosParamCreator(configuration);
1139
1536
  return {
1537
+ /**
1538
+ * Export customers as a CSV file
1539
+ * @summary Export customers
1540
+ * @param {string} project Project unique identifier
1541
+ * @param {string} platformId The platform identifier
1542
+ * @param {*} [options] Override http request option.
1543
+ * @throws {RequiredError}
1544
+ */
1545
+ exportCustomers(project, platformId, options) {
1546
+ return __awaiter(this, void 0, void 0, function* () {
1547
+ var _a, _b, _c;
1548
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.exportCustomers(project, platformId, options);
1549
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1550
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlatformApi.exportCustomers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1551
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1552
+ });
1553
+ },
1140
1554
  /**
1141
1555
  * Export orders as a CSV file
1142
1556
  * @summary Export orders
@@ -1157,6 +1571,24 @@ export const PlatformApiFp = function (configuration) {
1157
1571
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1158
1572
  });
1159
1573
  },
1574
+ /**
1575
+ * Get a customer for a platform by a given customer ID.
1576
+ * @summary Get customer
1577
+ * @param {string} project Project unique identifier
1578
+ * @param {string} platformId The platform identifier
1579
+ * @param {string} customerId The customer identifier
1580
+ * @param {*} [options] Override http request option.
1581
+ * @throws {RequiredError}
1582
+ */
1583
+ getCustomer(project, platformId, customerId, options) {
1584
+ return __awaiter(this, void 0, void 0, function* () {
1585
+ var _a, _b, _c;
1586
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomer(project, platformId, customerId, options);
1587
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1588
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlatformApi.getCustomer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1589
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1590
+ });
1591
+ },
1160
1592
  /**
1161
1593
  * Get a fulfillment for a platform by a given fulfillment ID.
1162
1594
  * @summary Get fulfillment
@@ -1227,6 +1659,23 @@ export const PlatformApiFp = function (configuration) {
1227
1659
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1228
1660
  });
1229
1661
  },
1662
+ /**
1663
+ * List customers for a platform
1664
+ * @summary List customers
1665
+ * @param {string} project Project unique identifier
1666
+ * @param {string} platformId The platform identifier
1667
+ * @param {*} [options] Override http request option.
1668
+ * @throws {RequiredError}
1669
+ */
1670
+ listCustomers(project, platformId, options) {
1671
+ return __awaiter(this, void 0, void 0, function* () {
1672
+ var _a, _b, _c;
1673
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomers(project, platformId, options);
1674
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1675
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlatformApi.listCustomers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1676
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1677
+ });
1678
+ },
1230
1679
  /**
1231
1680
  * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
1232
1681
  * @summary List orders
@@ -1332,6 +1781,16 @@ export const PlatformApiFp = function (configuration) {
1332
1781
  export const PlatformApiFactory = function (configuration, basePath, axios) {
1333
1782
  const localVarFp = PlatformApiFp(configuration);
1334
1783
  return {
1784
+ /**
1785
+ * Export customers as a CSV file
1786
+ * @summary Export customers
1787
+ * @param {PlatformApiExportCustomersRequest} requestParameters Request parameters.
1788
+ * @param {*} [options] Override http request option.
1789
+ * @throws {RequiredError}
1790
+ */
1791
+ exportCustomers(requestParameters, options) {
1792
+ return localVarFp.exportCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
1793
+ },
1335
1794
  /**
1336
1795
  * Export orders as a CSV file
1337
1796
  * @summary Export orders
@@ -1342,6 +1801,16 @@ export const PlatformApiFactory = function (configuration, basePath, axios) {
1342
1801
  exportOrders(requestParameters, options) {
1343
1802
  return localVarFp.exportOrders(requestParameters.project, requestParameters.platformId, requestParameters.start, requestParameters.end, requestParameters.search, options).then((request) => request(axios, basePath));
1344
1803
  },
1804
+ /**
1805
+ * Get a customer for a platform by a given customer ID.
1806
+ * @summary Get customer
1807
+ * @param {PlatformApiGetCustomerRequest} requestParameters Request parameters.
1808
+ * @param {*} [options] Override http request option.
1809
+ * @throws {RequiredError}
1810
+ */
1811
+ getCustomer(requestParameters, options) {
1812
+ return localVarFp.getCustomer(requestParameters.project, requestParameters.platformId, requestParameters.customerId, options).then((request) => request(axios, basePath));
1813
+ },
1345
1814
  /**
1346
1815
  * Get a fulfillment for a platform by a given fulfillment ID.
1347
1816
  * @summary Get fulfillment
@@ -1382,6 +1851,16 @@ export const PlatformApiFactory = function (configuration, basePath, axios) {
1382
1851
  listAvailableFulfillers(requestParameters, options) {
1383
1852
  return localVarFp.listAvailableFulfillers(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, options).then((request) => request(axios, basePath));
1384
1853
  },
1854
+ /**
1855
+ * List customers for a platform
1856
+ * @summary List customers
1857
+ * @param {PlatformApiListCustomersRequest} requestParameters Request parameters.
1858
+ * @param {*} [options] Override http request option.
1859
+ * @throws {RequiredError}
1860
+ */
1861
+ listCustomers(requestParameters, options) {
1862
+ return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
1863
+ },
1385
1864
  /**
1386
1865
  * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
1387
1866
  * @summary List orders
@@ -1441,6 +1920,17 @@ export const PlatformApiFactory = function (configuration, basePath, axios) {
1441
1920
  * @extends {BaseAPI}
1442
1921
  */
1443
1922
  export class PlatformApi extends BaseAPI {
1923
+ /**
1924
+ * Export customers as a CSV file
1925
+ * @summary Export customers
1926
+ * @param {PlatformApiExportCustomersRequest} requestParameters Request parameters.
1927
+ * @param {*} [options] Override http request option.
1928
+ * @throws {RequiredError}
1929
+ * @memberof PlatformApi
1930
+ */
1931
+ exportCustomers(requestParameters, options) {
1932
+ return PlatformApiFp(this.configuration).exportCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
1933
+ }
1444
1934
  /**
1445
1935
  * Export orders as a CSV file
1446
1936
  * @summary Export orders
@@ -1452,6 +1942,17 @@ export class PlatformApi extends BaseAPI {
1452
1942
  exportOrders(requestParameters, options) {
1453
1943
  return PlatformApiFp(this.configuration).exportOrders(requestParameters.project, requestParameters.platformId, requestParameters.start, requestParameters.end, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
1454
1944
  }
1945
+ /**
1946
+ * Get a customer for a platform by a given customer ID.
1947
+ * @summary Get customer
1948
+ * @param {PlatformApiGetCustomerRequest} requestParameters Request parameters.
1949
+ * @param {*} [options] Override http request option.
1950
+ * @throws {RequiredError}
1951
+ * @memberof PlatformApi
1952
+ */
1953
+ getCustomer(requestParameters, options) {
1954
+ return PlatformApiFp(this.configuration).getCustomer(requestParameters.project, requestParameters.platformId, requestParameters.customerId, options).then((request) => request(this.axios, this.basePath));
1955
+ }
1455
1956
  /**
1456
1957
  * Get a fulfillment for a platform by a given fulfillment ID.
1457
1958
  * @summary Get fulfillment
@@ -1496,6 +1997,17 @@ export class PlatformApi extends BaseAPI {
1496
1997
  listAvailableFulfillers(requestParameters, options) {
1497
1998
  return PlatformApiFp(this.configuration).listAvailableFulfillers(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, options).then((request) => request(this.axios, this.basePath));
1498
1999
  }
2000
+ /**
2001
+ * List customers for a platform
2002
+ * @summary List customers
2003
+ * @param {PlatformApiListCustomersRequest} requestParameters Request parameters.
2004
+ * @param {*} [options] Override http request option.
2005
+ * @throws {RequiredError}
2006
+ * @memberof PlatformApi
2007
+ */
2008
+ listCustomers(requestParameters, options) {
2009
+ return PlatformApiFp(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
2010
+ }
1499
2011
  /**
1500
2012
  * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
1501
2013
  * @summary List orders
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.10.0
5
+ * The version of the OpenAPI document: 0.11.0
6
6
  *
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
6
6
  *
7
- * The version of the OpenAPI document: 0.10.0
7
+ * The version of the OpenAPI document: 0.11.0
8
8
  *
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
4
4
  *
5
- * The version of the OpenAPI document: 0.10.0
5
+ * The version of the OpenAPI document: 0.11.0
6
6
  *
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
6
6
  *
7
- * The version of the OpenAPI document: 0.10.0
7
+ * The version of the OpenAPI document: 0.11.0
8
8
  *
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
4
4
  *
5
- * The version of the OpenAPI document: 0.10.0
5
+ * The version of the OpenAPI document: 0.11.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).