@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/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Platform API
6
6
  * Manage Your podOS platform
7
7
  *
8
- * The version of the OpenAPI document: 0.10.0
8
+ * The version of the OpenAPI document: 0.11.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.VariantsApi = exports.VariantsApiFactory = exports.VariantsApiFp = exports.VariantsApiAxiosParamCreator = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.PlatformApi = exports.PlatformApiFactory = exports.PlatformApiFp = exports.PlatformApiAxiosParamCreator = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.VariantAttributeThumbnailTypeEnum = exports.ProductAttributeValuesInnerThumbnailTypeEnum = exports.OutputFileFormatEnum = exports.OutputPositionEnum = exports.OrderStatus = void 0;
25
+ exports.VariantsApi = exports.VariantsApiFactory = exports.VariantsApiFp = exports.VariantsApiAxiosParamCreator = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.PlatformApi = exports.PlatformApiFactory = exports.PlatformApiFp = exports.PlatformApiAxiosParamCreator = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.CustomersApi = exports.CustomersApiFactory = exports.CustomersApiFp = exports.CustomersApiAxiosParamCreator = exports.VariantAttributeThumbnailTypeEnum = exports.ProductAttributeValuesInnerThumbnailTypeEnum = exports.OutputFileFormatEnum = exports.OutputPositionEnum = 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
@@ -69,6 +69,283 @@ exports.VariantAttributeThumbnailTypeEnum = {
69
69
  Color: 'color',
70
70
  Image: 'image'
71
71
  };
72
+ /**
73
+ * CustomersApi - axios parameter creator
74
+ * @export
75
+ */
76
+ const CustomersApiAxiosParamCreator = function (configuration) {
77
+ return {
78
+ /**
79
+ * Export customers as a CSV file
80
+ * @summary Export customers
81
+ * @param {string} project Project unique identifier
82
+ * @param {string} platformId The platform identifier
83
+ * @param {*} [options] Override http request option.
84
+ * @throws {RequiredError}
85
+ */
86
+ exportCustomers: (project_1, platformId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, ...args_1], void 0, function* (project, platformId, options = {}) {
87
+ // verify required parameter 'project' is not null or undefined
88
+ (0, common_1.assertParamExists)('exportCustomers', 'project', project);
89
+ // verify required parameter 'platformId' is not null or undefined
90
+ (0, common_1.assertParamExists)('exportCustomers', 'platformId', platformId);
91
+ const localVarPath = `/v1/platform/{platformId}/customers/export`
92
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
93
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
94
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
95
+ let baseOptions;
96
+ if (configuration) {
97
+ baseOptions = configuration.baseOptions;
98
+ }
99
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
100
+ const localVarHeaderParameter = {};
101
+ const localVarQueryParameter = {};
102
+ // authentication session-oauth required
103
+ // oauth required
104
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
105
+ // authentication api-key required
106
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
107
+ if (project !== undefined) {
108
+ localVarQueryParameter['project'] = project;
109
+ }
110
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
111
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
112
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
113
+ return {
114
+ url: (0, common_1.toPathString)(localVarUrlObj),
115
+ options: localVarRequestOptions,
116
+ };
117
+ }),
118
+ /**
119
+ * Get a customer for a platform by a given customer ID.
120
+ * @summary Get customer
121
+ * @param {string} project Project unique identifier
122
+ * @param {string} platformId The platform identifier
123
+ * @param {string} customerId The customer identifier
124
+ * @param {*} [options] Override http request option.
125
+ * @throws {RequiredError}
126
+ */
127
+ 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 = {}) {
128
+ // verify required parameter 'project' is not null or undefined
129
+ (0, common_1.assertParamExists)('getCustomer', 'project', project);
130
+ // verify required parameter 'platformId' is not null or undefined
131
+ (0, common_1.assertParamExists)('getCustomer', 'platformId', platformId);
132
+ // verify required parameter 'customerId' is not null or undefined
133
+ (0, common_1.assertParamExists)('getCustomer', 'customerId', customerId);
134
+ const localVarPath = `/v1/platform/{platformId}/customers/{customerId}`
135
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
136
+ .replace(`{${"customerId"}}`, encodeURIComponent(String(customerId)));
137
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
138
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
139
+ let baseOptions;
140
+ if (configuration) {
141
+ baseOptions = configuration.baseOptions;
142
+ }
143
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
144
+ const localVarHeaderParameter = {};
145
+ const localVarQueryParameter = {};
146
+ // authentication session-oauth required
147
+ // oauth required
148
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
149
+ // authentication api-key required
150
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
151
+ if (project !== undefined) {
152
+ localVarQueryParameter['project'] = project;
153
+ }
154
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
155
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
156
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
157
+ return {
158
+ url: (0, common_1.toPathString)(localVarUrlObj),
159
+ options: localVarRequestOptions,
160
+ };
161
+ }),
162
+ /**
163
+ * List customers for a platform
164
+ * @summary List customers
165
+ * @param {string} project Project unique identifier
166
+ * @param {string} platformId The platform identifier
167
+ * @param {*} [options] Override http request option.
168
+ * @throws {RequiredError}
169
+ */
170
+ listCustomers: (project_1, platformId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, ...args_1], void 0, function* (project, platformId, options = {}) {
171
+ // verify required parameter 'project' is not null or undefined
172
+ (0, common_1.assertParamExists)('listCustomers', 'project', project);
173
+ // verify required parameter 'platformId' is not null or undefined
174
+ (0, common_1.assertParamExists)('listCustomers', 'platformId', platformId);
175
+ const localVarPath = `/v1/platform/{platformId}/customers`
176
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
177
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
178
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
179
+ let baseOptions;
180
+ if (configuration) {
181
+ baseOptions = configuration.baseOptions;
182
+ }
183
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
184
+ const localVarHeaderParameter = {};
185
+ const localVarQueryParameter = {};
186
+ // authentication session-oauth required
187
+ // oauth required
188
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
189
+ // authentication api-key required
190
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
191
+ if (project !== undefined) {
192
+ localVarQueryParameter['project'] = project;
193
+ }
194
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
195
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
196
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
197
+ return {
198
+ url: (0, common_1.toPathString)(localVarUrlObj),
199
+ options: localVarRequestOptions,
200
+ };
201
+ }),
202
+ };
203
+ };
204
+ exports.CustomersApiAxiosParamCreator = CustomersApiAxiosParamCreator;
205
+ /**
206
+ * CustomersApi - functional programming interface
207
+ * @export
208
+ */
209
+ const CustomersApiFp = function (configuration) {
210
+ const localVarAxiosParamCreator = (0, exports.CustomersApiAxiosParamCreator)(configuration);
211
+ return {
212
+ /**
213
+ * Export customers as a CSV file
214
+ * @summary Export customers
215
+ * @param {string} project Project unique identifier
216
+ * @param {string} platformId The platform identifier
217
+ * @param {*} [options] Override http request option.
218
+ * @throws {RequiredError}
219
+ */
220
+ exportCustomers(project, platformId, options) {
221
+ return __awaiter(this, void 0, void 0, function* () {
222
+ var _a, _b, _c;
223
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.exportCustomers(project, platformId, options);
224
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
225
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CustomersApi.exportCustomers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
226
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
227
+ });
228
+ },
229
+ /**
230
+ * Get a customer for a platform by a given customer ID.
231
+ * @summary Get customer
232
+ * @param {string} project Project unique identifier
233
+ * @param {string} platformId The platform identifier
234
+ * @param {string} customerId The customer identifier
235
+ * @param {*} [options] Override http request option.
236
+ * @throws {RequiredError}
237
+ */
238
+ getCustomer(project, platformId, customerId, options) {
239
+ return __awaiter(this, void 0, void 0, function* () {
240
+ var _a, _b, _c;
241
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomer(project, platformId, customerId, options);
242
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
243
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CustomersApi.getCustomer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
244
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
245
+ });
246
+ },
247
+ /**
248
+ * List customers for a platform
249
+ * @summary List customers
250
+ * @param {string} project Project unique identifier
251
+ * @param {string} platformId The platform identifier
252
+ * @param {*} [options] Override http request option.
253
+ * @throws {RequiredError}
254
+ */
255
+ listCustomers(project, platformId, options) {
256
+ return __awaiter(this, void 0, void 0, function* () {
257
+ var _a, _b, _c;
258
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomers(project, platformId, options);
259
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
260
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CustomersApi.listCustomers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
261
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
262
+ });
263
+ },
264
+ };
265
+ };
266
+ exports.CustomersApiFp = CustomersApiFp;
267
+ /**
268
+ * CustomersApi - factory interface
269
+ * @export
270
+ */
271
+ const CustomersApiFactory = function (configuration, basePath, axios) {
272
+ const localVarFp = (0, exports.CustomersApiFp)(configuration);
273
+ return {
274
+ /**
275
+ * Export customers as a CSV file
276
+ * @summary Export customers
277
+ * @param {CustomersApiExportCustomersRequest} requestParameters Request parameters.
278
+ * @param {*} [options] Override http request option.
279
+ * @throws {RequiredError}
280
+ */
281
+ exportCustomers(requestParameters, options) {
282
+ return localVarFp.exportCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
283
+ },
284
+ /**
285
+ * Get a customer for a platform by a given customer ID.
286
+ * @summary Get customer
287
+ * @param {CustomersApiGetCustomerRequest} requestParameters Request parameters.
288
+ * @param {*} [options] Override http request option.
289
+ * @throws {RequiredError}
290
+ */
291
+ getCustomer(requestParameters, options) {
292
+ return localVarFp.getCustomer(requestParameters.project, requestParameters.platformId, requestParameters.customerId, options).then((request) => request(axios, basePath));
293
+ },
294
+ /**
295
+ * List customers for a platform
296
+ * @summary List customers
297
+ * @param {CustomersApiListCustomersRequest} requestParameters Request parameters.
298
+ * @param {*} [options] Override http request option.
299
+ * @throws {RequiredError}
300
+ */
301
+ listCustomers(requestParameters, options) {
302
+ return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
303
+ },
304
+ };
305
+ };
306
+ exports.CustomersApiFactory = CustomersApiFactory;
307
+ /**
308
+ * CustomersApi - object-oriented interface
309
+ * @export
310
+ * @class CustomersApi
311
+ * @extends {BaseAPI}
312
+ */
313
+ class CustomersApi extends base_1.BaseAPI {
314
+ /**
315
+ * Export customers as a CSV file
316
+ * @summary Export customers
317
+ * @param {CustomersApiExportCustomersRequest} requestParameters Request parameters.
318
+ * @param {*} [options] Override http request option.
319
+ * @throws {RequiredError}
320
+ * @memberof CustomersApi
321
+ */
322
+ exportCustomers(requestParameters, options) {
323
+ return (0, exports.CustomersApiFp)(this.configuration).exportCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
324
+ }
325
+ /**
326
+ * Get a customer for a platform by a given customer ID.
327
+ * @summary Get customer
328
+ * @param {CustomersApiGetCustomerRequest} requestParameters Request parameters.
329
+ * @param {*} [options] Override http request option.
330
+ * @throws {RequiredError}
331
+ * @memberof CustomersApi
332
+ */
333
+ getCustomer(requestParameters, options) {
334
+ return (0, exports.CustomersApiFp)(this.configuration).getCustomer(requestParameters.project, requestParameters.platformId, requestParameters.customerId, options).then((request) => request(this.axios, this.basePath));
335
+ }
336
+ /**
337
+ * List customers for a platform
338
+ * @summary List customers
339
+ * @param {CustomersApiListCustomersRequest} requestParameters Request parameters.
340
+ * @param {*} [options] Override http request option.
341
+ * @throws {RequiredError}
342
+ * @memberof CustomersApi
343
+ */
344
+ listCustomers(requestParameters, options) {
345
+ return (0, exports.CustomersApiFp)(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
346
+ }
347
+ }
348
+ exports.CustomersApi = CustomersApi;
72
349
  /**
73
350
  * OrdersApi - axios parameter creator
74
351
  * @export
@@ -657,6 +934,46 @@ exports.OrdersApi = OrdersApi;
657
934
  */
658
935
  const PlatformApiAxiosParamCreator = function (configuration) {
659
936
  return {
937
+ /**
938
+ * Export customers as a CSV file
939
+ * @summary Export customers
940
+ * @param {string} project Project unique identifier
941
+ * @param {string} platformId The platform identifier
942
+ * @param {*} [options] Override http request option.
943
+ * @throws {RequiredError}
944
+ */
945
+ exportCustomers: (project_1, platformId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, ...args_1], void 0, function* (project, platformId, options = {}) {
946
+ // verify required parameter 'project' is not null or undefined
947
+ (0, common_1.assertParamExists)('exportCustomers', 'project', project);
948
+ // verify required parameter 'platformId' is not null or undefined
949
+ (0, common_1.assertParamExists)('exportCustomers', 'platformId', platformId);
950
+ const localVarPath = `/v1/platform/{platformId}/customers/export`
951
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
952
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
953
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
954
+ let baseOptions;
955
+ if (configuration) {
956
+ baseOptions = configuration.baseOptions;
957
+ }
958
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
959
+ const localVarHeaderParameter = {};
960
+ const localVarQueryParameter = {};
961
+ // authentication session-oauth required
962
+ // oauth required
963
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
964
+ // authentication api-key required
965
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
966
+ if (project !== undefined) {
967
+ localVarQueryParameter['project'] = project;
968
+ }
969
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
970
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
971
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
972
+ return {
973
+ url: (0, common_1.toPathString)(localVarUrlObj),
974
+ options: localVarRequestOptions,
975
+ };
976
+ }),
660
977
  /**
661
978
  * Export orders as a CSV file
662
979
  * @summary Export orders
@@ -715,6 +1032,50 @@ const PlatformApiAxiosParamCreator = function (configuration) {
715
1032
  options: localVarRequestOptions,
716
1033
  };
717
1034
  }),
1035
+ /**
1036
+ * Get a customer for a platform by a given customer ID.
1037
+ * @summary Get customer
1038
+ * @param {string} project Project unique identifier
1039
+ * @param {string} platformId The platform identifier
1040
+ * @param {string} customerId The customer identifier
1041
+ * @param {*} [options] Override http request option.
1042
+ * @throws {RequiredError}
1043
+ */
1044
+ 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 = {}) {
1045
+ // verify required parameter 'project' is not null or undefined
1046
+ (0, common_1.assertParamExists)('getCustomer', 'project', project);
1047
+ // verify required parameter 'platformId' is not null or undefined
1048
+ (0, common_1.assertParamExists)('getCustomer', 'platformId', platformId);
1049
+ // verify required parameter 'customerId' is not null or undefined
1050
+ (0, common_1.assertParamExists)('getCustomer', 'customerId', customerId);
1051
+ const localVarPath = `/v1/platform/{platformId}/customers/{customerId}`
1052
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
1053
+ .replace(`{${"customerId"}}`, encodeURIComponent(String(customerId)));
1054
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1055
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1056
+ let baseOptions;
1057
+ if (configuration) {
1058
+ baseOptions = configuration.baseOptions;
1059
+ }
1060
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1061
+ const localVarHeaderParameter = {};
1062
+ const localVarQueryParameter = {};
1063
+ // authentication session-oauth required
1064
+ // oauth required
1065
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
1066
+ // authentication api-key required
1067
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1068
+ if (project !== undefined) {
1069
+ localVarQueryParameter['project'] = project;
1070
+ }
1071
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1072
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1073
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1074
+ return {
1075
+ url: (0, common_1.toPathString)(localVarUrlObj),
1076
+ options: localVarRequestOptions,
1077
+ };
1078
+ }),
718
1079
  /**
719
1080
  * Get a fulfillment for a platform by a given fulfillment ID.
720
1081
  * @summary Get fulfillment
@@ -883,6 +1244,46 @@ const PlatformApiAxiosParamCreator = function (configuration) {
883
1244
  options: localVarRequestOptions,
884
1245
  };
885
1246
  }),
1247
+ /**
1248
+ * List customers for a platform
1249
+ * @summary List customers
1250
+ * @param {string} project Project unique identifier
1251
+ * @param {string} platformId The platform identifier
1252
+ * @param {*} [options] Override http request option.
1253
+ * @throws {RequiredError}
1254
+ */
1255
+ listCustomers: (project_1, platformId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, ...args_1], void 0, function* (project, platformId, options = {}) {
1256
+ // verify required parameter 'project' is not null or undefined
1257
+ (0, common_1.assertParamExists)('listCustomers', 'project', project);
1258
+ // verify required parameter 'platformId' is not null or undefined
1259
+ (0, common_1.assertParamExists)('listCustomers', 'platformId', platformId);
1260
+ const localVarPath = `/v1/platform/{platformId}/customers`
1261
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
1262
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1263
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1264
+ let baseOptions;
1265
+ if (configuration) {
1266
+ baseOptions = configuration.baseOptions;
1267
+ }
1268
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1269
+ const localVarHeaderParameter = {};
1270
+ const localVarQueryParameter = {};
1271
+ // authentication session-oauth required
1272
+ // oauth required
1273
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
1274
+ // authentication api-key required
1275
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1276
+ if (project !== undefined) {
1277
+ localVarQueryParameter['project'] = project;
1278
+ }
1279
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1280
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1281
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1282
+ return {
1283
+ url: (0, common_1.toPathString)(localVarUrlObj),
1284
+ options: localVarRequestOptions,
1285
+ };
1286
+ }),
886
1287
  /**
887
1288
  * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
888
1289
  * @summary List orders
@@ -1145,6 +1546,23 @@ exports.PlatformApiAxiosParamCreator = PlatformApiAxiosParamCreator;
1145
1546
  const PlatformApiFp = function (configuration) {
1146
1547
  const localVarAxiosParamCreator = (0, exports.PlatformApiAxiosParamCreator)(configuration);
1147
1548
  return {
1549
+ /**
1550
+ * Export customers as a CSV file
1551
+ * @summary Export customers
1552
+ * @param {string} project Project unique identifier
1553
+ * @param {string} platformId The platform identifier
1554
+ * @param {*} [options] Override http request option.
1555
+ * @throws {RequiredError}
1556
+ */
1557
+ exportCustomers(project, platformId, options) {
1558
+ return __awaiter(this, void 0, void 0, function* () {
1559
+ var _a, _b, _c;
1560
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.exportCustomers(project, platformId, options);
1561
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1562
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PlatformApi.exportCustomers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1563
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1564
+ });
1565
+ },
1148
1566
  /**
1149
1567
  * Export orders as a CSV file
1150
1568
  * @summary Export orders
@@ -1165,6 +1583,24 @@ const PlatformApiFp = function (configuration) {
1165
1583
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1166
1584
  });
1167
1585
  },
1586
+ /**
1587
+ * Get a customer for a platform by a given customer ID.
1588
+ * @summary Get customer
1589
+ * @param {string} project Project unique identifier
1590
+ * @param {string} platformId The platform identifier
1591
+ * @param {string} customerId The customer identifier
1592
+ * @param {*} [options] Override http request option.
1593
+ * @throws {RequiredError}
1594
+ */
1595
+ getCustomer(project, platformId, customerId, options) {
1596
+ return __awaiter(this, void 0, void 0, function* () {
1597
+ var _a, _b, _c;
1598
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomer(project, platformId, customerId, options);
1599
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1600
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PlatformApi.getCustomer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1601
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1602
+ });
1603
+ },
1168
1604
  /**
1169
1605
  * Get a fulfillment for a platform by a given fulfillment ID.
1170
1606
  * @summary Get fulfillment
@@ -1235,6 +1671,23 @@ const PlatformApiFp = function (configuration) {
1235
1671
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1236
1672
  });
1237
1673
  },
1674
+ /**
1675
+ * List customers for a platform
1676
+ * @summary List customers
1677
+ * @param {string} project Project unique identifier
1678
+ * @param {string} platformId The platform identifier
1679
+ * @param {*} [options] Override http request option.
1680
+ * @throws {RequiredError}
1681
+ */
1682
+ listCustomers(project, platformId, options) {
1683
+ return __awaiter(this, void 0, void 0, function* () {
1684
+ var _a, _b, _c;
1685
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomers(project, platformId, options);
1686
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1687
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PlatformApi.listCustomers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1688
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1689
+ });
1690
+ },
1238
1691
  /**
1239
1692
  * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
1240
1693
  * @summary List orders
@@ -1341,6 +1794,16 @@ exports.PlatformApiFp = PlatformApiFp;
1341
1794
  const PlatformApiFactory = function (configuration, basePath, axios) {
1342
1795
  const localVarFp = (0, exports.PlatformApiFp)(configuration);
1343
1796
  return {
1797
+ /**
1798
+ * Export customers as a CSV file
1799
+ * @summary Export customers
1800
+ * @param {PlatformApiExportCustomersRequest} requestParameters Request parameters.
1801
+ * @param {*} [options] Override http request option.
1802
+ * @throws {RequiredError}
1803
+ */
1804
+ exportCustomers(requestParameters, options) {
1805
+ return localVarFp.exportCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
1806
+ },
1344
1807
  /**
1345
1808
  * Export orders as a CSV file
1346
1809
  * @summary Export orders
@@ -1351,6 +1814,16 @@ const PlatformApiFactory = function (configuration, basePath, axios) {
1351
1814
  exportOrders(requestParameters, options) {
1352
1815
  return localVarFp.exportOrders(requestParameters.project, requestParameters.platformId, requestParameters.start, requestParameters.end, requestParameters.search, options).then((request) => request(axios, basePath));
1353
1816
  },
1817
+ /**
1818
+ * Get a customer for a platform by a given customer ID.
1819
+ * @summary Get customer
1820
+ * @param {PlatformApiGetCustomerRequest} requestParameters Request parameters.
1821
+ * @param {*} [options] Override http request option.
1822
+ * @throws {RequiredError}
1823
+ */
1824
+ getCustomer(requestParameters, options) {
1825
+ return localVarFp.getCustomer(requestParameters.project, requestParameters.platformId, requestParameters.customerId, options).then((request) => request(axios, basePath));
1826
+ },
1354
1827
  /**
1355
1828
  * Get a fulfillment for a platform by a given fulfillment ID.
1356
1829
  * @summary Get fulfillment
@@ -1391,6 +1864,16 @@ const PlatformApiFactory = function (configuration, basePath, axios) {
1391
1864
  listAvailableFulfillers(requestParameters, options) {
1392
1865
  return localVarFp.listAvailableFulfillers(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, options).then((request) => request(axios, basePath));
1393
1866
  },
1867
+ /**
1868
+ * List customers for a platform
1869
+ * @summary List customers
1870
+ * @param {PlatformApiListCustomersRequest} requestParameters Request parameters.
1871
+ * @param {*} [options] Override http request option.
1872
+ * @throws {RequiredError}
1873
+ */
1874
+ listCustomers(requestParameters, options) {
1875
+ return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
1876
+ },
1394
1877
  /**
1395
1878
  * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
1396
1879
  * @summary List orders
@@ -1451,6 +1934,17 @@ exports.PlatformApiFactory = PlatformApiFactory;
1451
1934
  * @extends {BaseAPI}
1452
1935
  */
1453
1936
  class PlatformApi extends base_1.BaseAPI {
1937
+ /**
1938
+ * Export customers as a CSV file
1939
+ * @summary Export customers
1940
+ * @param {PlatformApiExportCustomersRequest} requestParameters Request parameters.
1941
+ * @param {*} [options] Override http request option.
1942
+ * @throws {RequiredError}
1943
+ * @memberof PlatformApi
1944
+ */
1945
+ exportCustomers(requestParameters, options) {
1946
+ return (0, exports.PlatformApiFp)(this.configuration).exportCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
1947
+ }
1454
1948
  /**
1455
1949
  * Export orders as a CSV file
1456
1950
  * @summary Export orders
@@ -1462,6 +1956,17 @@ class PlatformApi extends base_1.BaseAPI {
1462
1956
  exportOrders(requestParameters, options) {
1463
1957
  return (0, exports.PlatformApiFp)(this.configuration).exportOrders(requestParameters.project, requestParameters.platformId, requestParameters.start, requestParameters.end, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
1464
1958
  }
1959
+ /**
1960
+ * Get a customer for a platform by a given customer ID.
1961
+ * @summary Get customer
1962
+ * @param {PlatformApiGetCustomerRequest} requestParameters Request parameters.
1963
+ * @param {*} [options] Override http request option.
1964
+ * @throws {RequiredError}
1965
+ * @memberof PlatformApi
1966
+ */
1967
+ getCustomer(requestParameters, options) {
1968
+ return (0, exports.PlatformApiFp)(this.configuration).getCustomer(requestParameters.project, requestParameters.platformId, requestParameters.customerId, options).then((request) => request(this.axios, this.basePath));
1969
+ }
1465
1970
  /**
1466
1971
  * Get a fulfillment for a platform by a given fulfillment ID.
1467
1972
  * @summary Get fulfillment
@@ -1506,6 +2011,17 @@ class PlatformApi extends base_1.BaseAPI {
1506
2011
  listAvailableFulfillers(requestParameters, options) {
1507
2012
  return (0, exports.PlatformApiFp)(this.configuration).listAvailableFulfillers(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, options).then((request) => request(this.axios, this.basePath));
1508
2013
  }
2014
+ /**
2015
+ * List customers for a platform
2016
+ * @summary List customers
2017
+ * @param {PlatformApiListCustomersRequest} requestParameters Request parameters.
2018
+ * @param {*} [options] Override http request option.
2019
+ * @throws {RequiredError}
2020
+ * @memberof PlatformApi
2021
+ */
2022
+ listCustomers(requestParameters, options) {
2023
+ return (0, exports.PlatformApiFp)(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
2024
+ }
1509
2025
  /**
1510
2026
  * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
1511
2027
  * @summary List orders
package/dist/base.d.ts CHANGED
@@ -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/base.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Platform API
6
6
  * Manage Your podOS platform
7
7
  *
8
- * The version of the OpenAPI document: 0.10.0
8
+ * The version of the OpenAPI document: 0.11.0
9
9
  *
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
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/common.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Platform API
6
6
  * Manage Your podOS platform
7
7
  *
8
- * The version of the OpenAPI document: 0.10.0
8
+ * The version of the OpenAPI document: 0.11.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).