@teemill/platform 0.23.0 → 0.26.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.23.0
8
+ * The version of the OpenAPI document: 0.26.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.TermsApi = exports.TermsApiFactory = exports.TermsApiFp = exports.TermsApiAxiosParamCreator = exports.ReviewsApi = exports.ReviewsApiFactory = exports.ReviewsApiFp = exports.ReviewsApiAxiosParamCreator = exports.PlatformApi = exports.PlatformApiFactory = exports.PlatformApiFp = exports.PlatformApiAxiosParamCreator = exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.ListOrdersDateFilterTypeEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.EnquiriesApi = exports.EnquiriesApiFactory = exports.EnquiriesApiFp = exports.EnquiriesApiAxiosParamCreator = exports.ListCustomersSortByEnum = exports.ExportCustomersSortByEnum = exports.CustomersApi = exports.CustomersApiFactory = exports.CustomersApiFp = exports.CustomersApiAxiosParamCreator = exports.PaymentAttemptStatusEnum = exports.PaymentAttemptPaymentProviderEnum = exports.PaymentAccountMethodEnum = exports.OrderStatus = exports.EnquiryStatusEnum = void 0;
25
+ exports.TermsApi = exports.TermsApiFactory = exports.TermsApiFp = exports.TermsApiAxiosParamCreator = exports.ReviewsApi = exports.ReviewsApiFactory = exports.ReviewsApiFp = exports.ReviewsApiAxiosParamCreator = exports.PlatformApi = exports.PlatformApiFactory = exports.PlatformApiFp = exports.PlatformApiAxiosParamCreator = exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.ListOrdersDateFilterTypeEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.EnquiriesApi = exports.EnquiriesApiFactory = exports.EnquiriesApiFp = exports.EnquiriesApiAxiosParamCreator = exports.ListCustomersGenderEnum = exports.ListCustomersSortByEnum = exports.ExportCustomersSortByEnum = exports.ExportCustomersGenderEnum = exports.CustomersApi = exports.CustomersApiFactory = exports.CustomersApiFp = exports.CustomersApiAxiosParamCreator = exports.PaymentAttemptStatusEnum = exports.PaymentAttemptPaymentProviderEnum = exports.PaymentAccountMethodEnum = exports.OrderStatus = exports.EnquiryStatusEnum = void 0;
26
26
  const axios_1 = require("axios");
27
27
  // Some imports not used depending on template conditions
28
28
  // @ts-ignore
@@ -71,7 +71,10 @@ const CustomersApiAxiosParamCreator = function (configuration) {
71
71
  * @summary Export customers
72
72
  * @param {string} project Project unique identifier
73
73
  * @param {string} platformId The platform identifier
74
+ * @param {Array<string>} [countries] Filter customers by country code
75
+ * @param {ExportCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
74
76
  * @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
77
+ * @param {number} [refundedOrderCount] Filter customers by refunded order count equal to the value provided
75
78
  * @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
76
79
  * @param {Array<ExportCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
77
80
  * @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
@@ -79,7 +82,7 @@ const CustomersApiAxiosParamCreator = function (configuration) {
79
82
  * @param {*} [options] Override http request option.
80
83
  * @throws {RequiredError}
81
84
  */
82
- exportCustomers: (project_1, platformId_1, totalOrderCount_1, lifetimeValue_1, sortBy_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1) => __awaiter(this, [project_1, platformId_1, totalOrderCount_1, lifetimeValue_1, sortBy_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1], void 0, function* (project, platformId, totalOrderCount, lifetimeValue, sortBy, lastPurchasedStart, lastPurchasedEnd, options = {}) {
85
+ exportCustomers: (project_1, platformId_1, countries_1, gender_1, totalOrderCount_1, refundedOrderCount_1, lifetimeValue_1, sortBy_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1) => __awaiter(this, [project_1, platformId_1, countries_1, gender_1, totalOrderCount_1, refundedOrderCount_1, lifetimeValue_1, sortBy_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1], void 0, function* (project, platformId, countries, gender, totalOrderCount, refundedOrderCount, lifetimeValue, sortBy, lastPurchasedStart, lastPurchasedEnd, options = {}) {
83
86
  // verify required parameter 'project' is not null or undefined
84
87
  (0, common_1.assertParamExists)('exportCustomers', 'project', project);
85
88
  // verify required parameter 'platformId' is not null or undefined
@@ -103,9 +106,18 @@ const CustomersApiAxiosParamCreator = function (configuration) {
103
106
  if (project !== undefined) {
104
107
  localVarQueryParameter['project'] = project;
105
108
  }
109
+ if (countries) {
110
+ localVarQueryParameter['countries'] = countries;
111
+ }
112
+ if (gender !== undefined) {
113
+ localVarQueryParameter['gender'] = gender;
114
+ }
106
115
  if (totalOrderCount !== undefined) {
107
116
  localVarQueryParameter['totalOrderCount'] = totalOrderCount;
108
117
  }
118
+ if (refundedOrderCount !== undefined) {
119
+ localVarQueryParameter['refundedOrderCount'] = refundedOrderCount;
120
+ }
109
121
  if (lifetimeValue !== undefined) {
110
122
  localVarQueryParameter['lifetimeValue'] = lifetimeValue;
111
123
  }
@@ -181,14 +193,17 @@ const CustomersApiAxiosParamCreator = function (configuration) {
181
193
  * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
182
194
  * @param {string} [search] Search term to filter results
183
195
  * @param {Array<ListCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
196
+ * @param {Array<string>} [countries] Filter customers by country code
197
+ * @param {ListCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
184
198
  * @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
199
+ * @param {number} [refundedOrderCount] Filter customers by refunded order count equal to the value provided
185
200
  * @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
186
201
  * @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
187
202
  * @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
188
203
  * @param {*} [options] Override http request option.
189
204
  * @throws {RequiredError}
190
205
  */
191
- listCustomers: (project_1, platformId_1, pageToken_1, pageSize_1, search_1, sortBy_1, totalOrderCount_1, lifetimeValue_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1) => __awaiter(this, [project_1, platformId_1, pageToken_1, pageSize_1, search_1, sortBy_1, totalOrderCount_1, lifetimeValue_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1], void 0, function* (project, platformId, pageToken, pageSize, search, sortBy, totalOrderCount, lifetimeValue, lastPurchasedStart, lastPurchasedEnd, options = {}) {
206
+ listCustomers: (project_1, platformId_1, pageToken_1, pageSize_1, search_1, sortBy_1, countries_1, gender_1, totalOrderCount_1, refundedOrderCount_1, lifetimeValue_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1) => __awaiter(this, [project_1, platformId_1, pageToken_1, pageSize_1, search_1, sortBy_1, countries_1, gender_1, totalOrderCount_1, refundedOrderCount_1, lifetimeValue_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1], void 0, function* (project, platformId, pageToken, pageSize, search, sortBy, countries, gender, totalOrderCount, refundedOrderCount, lifetimeValue, lastPurchasedStart, lastPurchasedEnd, options = {}) {
192
207
  // verify required parameter 'project' is not null or undefined
193
208
  (0, common_1.assertParamExists)('listCustomers', 'project', project);
194
209
  // verify required parameter 'platformId' is not null or undefined
@@ -224,9 +239,18 @@ const CustomersApiAxiosParamCreator = function (configuration) {
224
239
  if (sortBy) {
225
240
  localVarQueryParameter['sortBy'] = sortBy;
226
241
  }
242
+ if (countries) {
243
+ localVarQueryParameter['countries'] = countries;
244
+ }
245
+ if (gender !== undefined) {
246
+ localVarQueryParameter['gender'] = gender;
247
+ }
227
248
  if (totalOrderCount !== undefined) {
228
249
  localVarQueryParameter['totalOrderCount'] = totalOrderCount;
229
250
  }
251
+ if (refundedOrderCount !== undefined) {
252
+ localVarQueryParameter['refundedOrderCount'] = refundedOrderCount;
253
+ }
230
254
  if (lifetimeValue !== undefined) {
231
255
  localVarQueryParameter['lifetimeValue'] = lifetimeValue;
232
256
  }
@@ -261,7 +285,10 @@ const CustomersApiFp = function (configuration) {
261
285
  * @summary Export customers
262
286
  * @param {string} project Project unique identifier
263
287
  * @param {string} platformId The platform identifier
288
+ * @param {Array<string>} [countries] Filter customers by country code
289
+ * @param {ExportCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
264
290
  * @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
291
+ * @param {number} [refundedOrderCount] Filter customers by refunded order count equal to the value provided
265
292
  * @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
266
293
  * @param {Array<ExportCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
267
294
  * @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
@@ -269,10 +296,10 @@ const CustomersApiFp = function (configuration) {
269
296
  * @param {*} [options] Override http request option.
270
297
  * @throws {RequiredError}
271
298
  */
272
- exportCustomers(project, platformId, totalOrderCount, lifetimeValue, sortBy, lastPurchasedStart, lastPurchasedEnd, options) {
299
+ exportCustomers(project, platformId, countries, gender, totalOrderCount, refundedOrderCount, lifetimeValue, sortBy, lastPurchasedStart, lastPurchasedEnd, options) {
273
300
  return __awaiter(this, void 0, void 0, function* () {
274
301
  var _a, _b, _c;
275
- const localVarAxiosArgs = yield localVarAxiosParamCreator.exportCustomers(project, platformId, totalOrderCount, lifetimeValue, sortBy, lastPurchasedStart, lastPurchasedEnd, options);
302
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.exportCustomers(project, platformId, countries, gender, totalOrderCount, refundedOrderCount, lifetimeValue, sortBy, lastPurchasedStart, lastPurchasedEnd, options);
276
303
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
277
304
  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;
278
305
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -305,17 +332,20 @@ const CustomersApiFp = function (configuration) {
305
332
  * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
306
333
  * @param {string} [search] Search term to filter results
307
334
  * @param {Array<ListCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
335
+ * @param {Array<string>} [countries] Filter customers by country code
336
+ * @param {ListCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
308
337
  * @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
338
+ * @param {number} [refundedOrderCount] Filter customers by refunded order count equal to the value provided
309
339
  * @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
310
340
  * @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
311
341
  * @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
312
342
  * @param {*} [options] Override http request option.
313
343
  * @throws {RequiredError}
314
344
  */
315
- listCustomers(project, platformId, pageToken, pageSize, search, sortBy, totalOrderCount, lifetimeValue, lastPurchasedStart, lastPurchasedEnd, options) {
345
+ listCustomers(project, platformId, pageToken, pageSize, search, sortBy, countries, gender, totalOrderCount, refundedOrderCount, lifetimeValue, lastPurchasedStart, lastPurchasedEnd, options) {
316
346
  return __awaiter(this, void 0, void 0, function* () {
317
347
  var _a, _b, _c;
318
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomers(project, platformId, pageToken, pageSize, search, sortBy, totalOrderCount, lifetimeValue, lastPurchasedStart, lastPurchasedEnd, options);
348
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomers(project, platformId, pageToken, pageSize, search, sortBy, countries, gender, totalOrderCount, refundedOrderCount, lifetimeValue, lastPurchasedStart, lastPurchasedEnd, options);
319
349
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
320
350
  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;
321
351
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -339,7 +369,7 @@ const CustomersApiFactory = function (configuration, basePath, axios) {
339
369
  * @throws {RequiredError}
340
370
  */
341
371
  exportCustomers(requestParameters, options) {
342
- return localVarFp.exportCustomers(requestParameters.project, requestParameters.platformId, requestParameters.totalOrderCount, requestParameters.lifetimeValue, requestParameters.sortBy, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
372
+ return localVarFp.exportCustomers(requestParameters.project, requestParameters.platformId, requestParameters.countries, requestParameters.gender, requestParameters.totalOrderCount, requestParameters.refundedOrderCount, requestParameters.lifetimeValue, requestParameters.sortBy, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
343
373
  },
344
374
  /**
345
375
  * Get a customer for a platform by a given customer ID.
@@ -359,7 +389,7 @@ const CustomersApiFactory = function (configuration, basePath, axios) {
359
389
  * @throws {RequiredError}
360
390
  */
361
391
  listCustomers(requestParameters, options) {
362
- return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.totalOrderCount, requestParameters.lifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
392
+ return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.countries, requestParameters.gender, requestParameters.totalOrderCount, requestParameters.refundedOrderCount, requestParameters.lifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
363
393
  },
364
394
  };
365
395
  };
@@ -380,7 +410,7 @@ class CustomersApi extends base_1.BaseAPI {
380
410
  * @memberof CustomersApi
381
411
  */
382
412
  exportCustomers(requestParameters, options) {
383
- return (0, exports.CustomersApiFp)(this.configuration).exportCustomers(requestParameters.project, requestParameters.platformId, requestParameters.totalOrderCount, requestParameters.lifetimeValue, requestParameters.sortBy, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(this.axios, this.basePath));
413
+ return (0, exports.CustomersApiFp)(this.configuration).exportCustomers(requestParameters.project, requestParameters.platformId, requestParameters.countries, requestParameters.gender, requestParameters.totalOrderCount, requestParameters.refundedOrderCount, requestParameters.lifetimeValue, requestParameters.sortBy, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(this.axios, this.basePath));
384
414
  }
385
415
  /**
386
416
  * Get a customer for a platform by a given customer ID.
@@ -402,10 +432,17 @@ class CustomersApi extends base_1.BaseAPI {
402
432
  * @memberof CustomersApi
403
433
  */
404
434
  listCustomers(requestParameters, options) {
405
- return (0, exports.CustomersApiFp)(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.totalOrderCount, requestParameters.lifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(this.axios, this.basePath));
435
+ return (0, exports.CustomersApiFp)(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.countries, requestParameters.gender, requestParameters.totalOrderCount, requestParameters.refundedOrderCount, requestParameters.lifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(this.axios, this.basePath));
406
436
  }
407
437
  }
408
438
  exports.CustomersApi = CustomersApi;
439
+ /**
440
+ * @export
441
+ */
442
+ exports.ExportCustomersGenderEnum = {
443
+ Male: 'male',
444
+ Female: 'female'
445
+ };
409
446
  /**
410
447
  * @export
411
448
  */
@@ -414,6 +451,8 @@ exports.ExportCustomersSortByEnum = {
414
451
  LifetimeValue2: '-lifetimeValue',
415
452
  TotalOrderCount: '+totalOrderCount',
416
453
  TotalOrderCount2: '-totalOrderCount',
454
+ RefundedOrderCount: '+refundedOrderCount',
455
+ RefundedOrderCount2: '-refundedOrderCount',
417
456
  LastPurchased: '+lastPurchased',
418
457
  LastPurchased2: '-lastPurchased'
419
458
  };
@@ -425,9 +464,18 @@ exports.ListCustomersSortByEnum = {
425
464
  LifetimeValue2: '-lifetimeValue',
426
465
  TotalOrderCount: '+totalOrderCount',
427
466
  TotalOrderCount2: '-totalOrderCount',
467
+ RefundedOrderCount: '+refundedOrderCount',
468
+ RefundedOrderCount2: '-refundedOrderCount',
428
469
  LastPurchased: '+lastPurchased',
429
470
  LastPurchased2: '-lastPurchased'
430
471
  };
472
+ /**
473
+ * @export
474
+ */
475
+ exports.ListCustomersGenderEnum = {
476
+ Male: 'male',
477
+ Female: 'female'
478
+ };
431
479
  /**
432
480
  * EnquiriesApi - axios parameter creator
433
481
  * @export
@@ -630,6 +678,55 @@ const EnquiriesApiAxiosParamCreator = function (configuration) {
630
678
  options: localVarRequestOptions,
631
679
  };
632
680
  }),
681
+ /**
682
+ * Update a customer enquiry
683
+ * @summary Update customer enquiry
684
+ * @param {string} project Project unique identifier
685
+ * @param {string} platformId The platform identifier
686
+ * @param {string} enquiryId The enquiry identifier
687
+ * @param {UpdateCustomerEnquiryRequest} updateCustomerEnquiryRequest Enquiry update
688
+ * @param {*} [options] Override http request option.
689
+ * @throws {RequiredError}
690
+ */
691
+ updateCustomerEnquiry: (project_1, platformId_1, enquiryId_1, updateCustomerEnquiryRequest_1, ...args_1) => __awaiter(this, [project_1, platformId_1, enquiryId_1, updateCustomerEnquiryRequest_1, ...args_1], void 0, function* (project, platformId, enquiryId, updateCustomerEnquiryRequest, options = {}) {
692
+ // verify required parameter 'project' is not null or undefined
693
+ (0, common_1.assertParamExists)('updateCustomerEnquiry', 'project', project);
694
+ // verify required parameter 'platformId' is not null or undefined
695
+ (0, common_1.assertParamExists)('updateCustomerEnquiry', 'platformId', platformId);
696
+ // verify required parameter 'enquiryId' is not null or undefined
697
+ (0, common_1.assertParamExists)('updateCustomerEnquiry', 'enquiryId', enquiryId);
698
+ // verify required parameter 'updateCustomerEnquiryRequest' is not null or undefined
699
+ (0, common_1.assertParamExists)('updateCustomerEnquiry', 'updateCustomerEnquiryRequest', updateCustomerEnquiryRequest);
700
+ const localVarPath = `/v1/platform/{platformId}/customers/enquiries/{enquiryId}`
701
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
702
+ .replace(`{${"enquiryId"}}`, encodeURIComponent(String(enquiryId)));
703
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
704
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
705
+ let baseOptions;
706
+ if (configuration) {
707
+ baseOptions = configuration.baseOptions;
708
+ }
709
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
710
+ const localVarHeaderParameter = {};
711
+ const localVarQueryParameter = {};
712
+ // authentication session-oauth required
713
+ // oauth required
714
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
715
+ // authentication api-key required
716
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
717
+ if (project !== undefined) {
718
+ localVarQueryParameter['project'] = project;
719
+ }
720
+ localVarHeaderParameter['Content-Type'] = 'application/json';
721
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
722
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
723
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
724
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCustomerEnquiryRequest, localVarRequestOptions, configuration);
725
+ return {
726
+ url: (0, common_1.toPathString)(localVarUrlObj),
727
+ options: localVarRequestOptions,
728
+ };
729
+ }),
633
730
  };
634
731
  };
635
732
  exports.EnquiriesApiAxiosParamCreator = EnquiriesApiAxiosParamCreator;
@@ -716,6 +813,25 @@ const EnquiriesApiFp = function (configuration) {
716
813
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
717
814
  });
718
815
  },
816
+ /**
817
+ * Update a customer enquiry
818
+ * @summary Update customer enquiry
819
+ * @param {string} project Project unique identifier
820
+ * @param {string} platformId The platform identifier
821
+ * @param {string} enquiryId The enquiry identifier
822
+ * @param {UpdateCustomerEnquiryRequest} updateCustomerEnquiryRequest Enquiry update
823
+ * @param {*} [options] Override http request option.
824
+ * @throws {RequiredError}
825
+ */
826
+ updateCustomerEnquiry(project, platformId, enquiryId, updateCustomerEnquiryRequest, options) {
827
+ return __awaiter(this, void 0, void 0, function* () {
828
+ var _a, _b, _c;
829
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateCustomerEnquiry(project, platformId, enquiryId, updateCustomerEnquiryRequest, options);
830
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
831
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnquiriesApi.updateCustomerEnquiry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
832
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
833
+ });
834
+ },
719
835
  };
720
836
  };
721
837
  exports.EnquiriesApiFp = EnquiriesApiFp;
@@ -766,6 +882,16 @@ const EnquiriesApiFactory = function (configuration, basePath, axios) {
766
882
  listCustomerEnquiryLogs(requestParameters, options) {
767
883
  return localVarFp.listCustomerEnquiryLogs(requestParameters.project, requestParameters.platformId, requestParameters.enquiryId, options).then((request) => request(axios, basePath));
768
884
  },
885
+ /**
886
+ * Update a customer enquiry
887
+ * @summary Update customer enquiry
888
+ * @param {EnquiriesApiUpdateCustomerEnquiryRequest} requestParameters Request parameters.
889
+ * @param {*} [options] Override http request option.
890
+ * @throws {RequiredError}
891
+ */
892
+ updateCustomerEnquiry(requestParameters, options) {
893
+ return localVarFp.updateCustomerEnquiry(requestParameters.project, requestParameters.platformId, requestParameters.enquiryId, requestParameters.updateCustomerEnquiryRequest, options).then((request) => request(axios, basePath));
894
+ },
769
895
  };
770
896
  };
771
897
  exports.EnquiriesApiFactory = EnquiriesApiFactory;
@@ -820,6 +946,17 @@ class EnquiriesApi extends base_1.BaseAPI {
820
946
  listCustomerEnquiryLogs(requestParameters, options) {
821
947
  return (0, exports.EnquiriesApiFp)(this.configuration).listCustomerEnquiryLogs(requestParameters.project, requestParameters.platformId, requestParameters.enquiryId, options).then((request) => request(this.axios, this.basePath));
822
948
  }
949
+ /**
950
+ * Update a customer enquiry
951
+ * @summary Update customer enquiry
952
+ * @param {EnquiriesApiUpdateCustomerEnquiryRequest} requestParameters Request parameters.
953
+ * @param {*} [options] Override http request option.
954
+ * @throws {RequiredError}
955
+ * @memberof EnquiriesApi
956
+ */
957
+ updateCustomerEnquiry(requestParameters, options) {
958
+ return (0, exports.EnquiriesApiFp)(this.configuration).updateCustomerEnquiry(requestParameters.project, requestParameters.platformId, requestParameters.enquiryId, requestParameters.updateCustomerEnquiryRequest, options).then((request) => request(this.axios, this.basePath));
959
+ }
823
960
  }
824
961
  exports.EnquiriesApi = EnquiriesApi;
825
962
  /**
@@ -974,6 +1111,50 @@ const OrdersApiAxiosParamCreator = function (configuration) {
974
1111
  options: localVarRequestOptions,
975
1112
  };
976
1113
  }),
1114
+ /**
1115
+ * Get an order receipt for a platform by a given order ID.
1116
+ * @summary Get order receipt
1117
+ * @param {string} project Project unique identifier
1118
+ * @param {string} platformId The platform identifier
1119
+ * @param {string} orderId The order identifier
1120
+ * @param {*} [options] Override http request option.
1121
+ * @throws {RequiredError}
1122
+ */
1123
+ getOrderReceipt: (project_1, platformId_1, orderId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, orderId_1, ...args_1], void 0, function* (project, platformId, orderId, options = {}) {
1124
+ // verify required parameter 'project' is not null or undefined
1125
+ (0, common_1.assertParamExists)('getOrderReceipt', 'project', project);
1126
+ // verify required parameter 'platformId' is not null or undefined
1127
+ (0, common_1.assertParamExists)('getOrderReceipt', 'platformId', platformId);
1128
+ // verify required parameter 'orderId' is not null or undefined
1129
+ (0, common_1.assertParamExists)('getOrderReceipt', 'orderId', orderId);
1130
+ const localVarPath = `/v1/platform/{platformId}/orders/{orderId}/receipt`
1131
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
1132
+ .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
1133
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1134
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1135
+ let baseOptions;
1136
+ if (configuration) {
1137
+ baseOptions = configuration.baseOptions;
1138
+ }
1139
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1140
+ const localVarHeaderParameter = {};
1141
+ const localVarQueryParameter = {};
1142
+ // authentication session-oauth required
1143
+ // oauth required
1144
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
1145
+ // authentication api-key required
1146
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1147
+ if (project !== undefined) {
1148
+ localVarQueryParameter['project'] = project;
1149
+ }
1150
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1151
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1152
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1153
+ return {
1154
+ url: (0, common_1.toPathString)(localVarUrlObj),
1155
+ options: localVarRequestOptions,
1156
+ };
1157
+ }),
977
1158
  /**
978
1159
  * List available fulfillers for a given fulfillment
979
1160
  * @summary List available fulfillers
@@ -1130,6 +1311,50 @@ const OrdersApiAxiosParamCreator = function (configuration) {
1130
1311
  options: localVarRequestOptions,
1131
1312
  };
1132
1313
  }),
1314
+ /**
1315
+ * Send an order receipt to the customer. A receipt is automatically sent when an order is paid for, so this would be to resend that receipt. Note that this is only available for website orders.
1316
+ * @summary Send order receipt
1317
+ * @param {string} project Project unique identifier
1318
+ * @param {string} platformId The platform identifier
1319
+ * @param {string} orderId The order identifier
1320
+ * @param {*} [options] Override http request option.
1321
+ * @throws {RequiredError}
1322
+ */
1323
+ sendOrderReceipt: (project_1, platformId_1, orderId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, orderId_1, ...args_1], void 0, function* (project, platformId, orderId, options = {}) {
1324
+ // verify required parameter 'project' is not null or undefined
1325
+ (0, common_1.assertParamExists)('sendOrderReceipt', 'project', project);
1326
+ // verify required parameter 'platformId' is not null or undefined
1327
+ (0, common_1.assertParamExists)('sendOrderReceipt', 'platformId', platformId);
1328
+ // verify required parameter 'orderId' is not null or undefined
1329
+ (0, common_1.assertParamExists)('sendOrderReceipt', 'orderId', orderId);
1330
+ const localVarPath = `/v1/platform/{platformId}/orders/{orderId}/receipt/send`
1331
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
1332
+ .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
1333
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1334
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1335
+ let baseOptions;
1336
+ if (configuration) {
1337
+ baseOptions = configuration.baseOptions;
1338
+ }
1339
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1340
+ const localVarHeaderParameter = {};
1341
+ const localVarQueryParameter = {};
1342
+ // authentication session-oauth required
1343
+ // oauth required
1344
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
1345
+ // authentication api-key required
1346
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1347
+ if (project !== undefined) {
1348
+ localVarQueryParameter['project'] = project;
1349
+ }
1350
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1351
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1352
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1353
+ return {
1354
+ url: (0, common_1.toPathString)(localVarUrlObj),
1355
+ options: localVarRequestOptions,
1356
+ };
1357
+ }),
1133
1358
  /**
1134
1359
  * Update a fulfillment that belongs to an order placed through the platform
1135
1360
  * @summary Update fulfillment
@@ -1245,6 +1470,24 @@ const OrdersApiFp = function (configuration) {
1245
1470
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1246
1471
  });
1247
1472
  },
1473
+ /**
1474
+ * Get an order receipt for a platform by a given order ID.
1475
+ * @summary Get order receipt
1476
+ * @param {string} project Project unique identifier
1477
+ * @param {string} platformId The platform identifier
1478
+ * @param {string} orderId The order identifier
1479
+ * @param {*} [options] Override http request option.
1480
+ * @throws {RequiredError}
1481
+ */
1482
+ getOrderReceipt(project, platformId, orderId, options) {
1483
+ return __awaiter(this, void 0, void 0, function* () {
1484
+ var _a, _b, _c;
1485
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrderReceipt(project, platformId, orderId, options);
1486
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1487
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getOrderReceipt']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1488
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1489
+ });
1490
+ },
1248
1491
  /**
1249
1492
  * List available fulfillers for a given fulfillment
1250
1493
  * @summary List available fulfillers
@@ -1304,6 +1547,24 @@ const OrdersApiFp = function (configuration) {
1304
1547
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1305
1548
  });
1306
1549
  },
1550
+ /**
1551
+ * Send an order receipt to the customer. A receipt is automatically sent when an order is paid for, so this would be to resend that receipt. Note that this is only available for website orders.
1552
+ * @summary Send order receipt
1553
+ * @param {string} project Project unique identifier
1554
+ * @param {string} platformId The platform identifier
1555
+ * @param {string} orderId The order identifier
1556
+ * @param {*} [options] Override http request option.
1557
+ * @throws {RequiredError}
1558
+ */
1559
+ sendOrderReceipt(project, platformId, orderId, options) {
1560
+ return __awaiter(this, void 0, void 0, function* () {
1561
+ var _a, _b, _c;
1562
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendOrderReceipt(project, platformId, orderId, options);
1563
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1564
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.sendOrderReceipt']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1565
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1566
+ });
1567
+ },
1307
1568
  /**
1308
1569
  * Update a fulfillment that belongs to an order placed through the platform
1309
1570
  * @summary Update fulfillment
@@ -1363,6 +1624,16 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
1363
1624
  getOrder(requestParameters, options) {
1364
1625
  return localVarFp.getOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(axios, basePath));
1365
1626
  },
1627
+ /**
1628
+ * Get an order receipt for a platform by a given order ID.
1629
+ * @summary Get order receipt
1630
+ * @param {OrdersApiGetOrderReceiptRequest} requestParameters Request parameters.
1631
+ * @param {*} [options] Override http request option.
1632
+ * @throws {RequiredError}
1633
+ */
1634
+ getOrderReceipt(requestParameters, options) {
1635
+ return localVarFp.getOrderReceipt(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(axios, basePath));
1636
+ },
1366
1637
  /**
1367
1638
  * List available fulfillers for a given fulfillment
1368
1639
  * @summary List available fulfillers
@@ -1393,6 +1664,16 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
1393
1664
  retryPlatformPayment(requestParameters, options) {
1394
1665
  return localVarFp.retryPlatformPayment(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(axios, basePath));
1395
1666
  },
1667
+ /**
1668
+ * Send an order receipt to the customer. A receipt is automatically sent when an order is paid for, so this would be to resend that receipt. Note that this is only available for website orders.
1669
+ * @summary Send order receipt
1670
+ * @param {OrdersApiSendOrderReceiptRequest} requestParameters Request parameters.
1671
+ * @param {*} [options] Override http request option.
1672
+ * @throws {RequiredError}
1673
+ */
1674
+ sendOrderReceipt(requestParameters, options) {
1675
+ return localVarFp.sendOrderReceipt(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(axios, basePath));
1676
+ },
1396
1677
  /**
1397
1678
  * Update a fulfillment that belongs to an order placed through the platform
1398
1679
  * @summary Update fulfillment
@@ -1446,6 +1727,17 @@ class OrdersApi extends base_1.BaseAPI {
1446
1727
  getOrder(requestParameters, options) {
1447
1728
  return (0, exports.OrdersApiFp)(this.configuration).getOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
1448
1729
  }
1730
+ /**
1731
+ * Get an order receipt for a platform by a given order ID.
1732
+ * @summary Get order receipt
1733
+ * @param {OrdersApiGetOrderReceiptRequest} requestParameters Request parameters.
1734
+ * @param {*} [options] Override http request option.
1735
+ * @throws {RequiredError}
1736
+ * @memberof OrdersApi
1737
+ */
1738
+ getOrderReceipt(requestParameters, options) {
1739
+ return (0, exports.OrdersApiFp)(this.configuration).getOrderReceipt(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
1740
+ }
1449
1741
  /**
1450
1742
  * List available fulfillers for a given fulfillment
1451
1743
  * @summary List available fulfillers
@@ -1479,6 +1771,17 @@ class OrdersApi extends base_1.BaseAPI {
1479
1771
  retryPlatformPayment(requestParameters, options) {
1480
1772
  return (0, exports.OrdersApiFp)(this.configuration).retryPlatformPayment(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
1481
1773
  }
1774
+ /**
1775
+ * Send an order receipt to the customer. A receipt is automatically sent when an order is paid for, so this would be to resend that receipt. Note that this is only available for website orders.
1776
+ * @summary Send order receipt
1777
+ * @param {OrdersApiSendOrderReceiptRequest} requestParameters Request parameters.
1778
+ * @param {*} [options] Override http request option.
1779
+ * @throws {RequiredError}
1780
+ * @memberof OrdersApi
1781
+ */
1782
+ sendOrderReceipt(requestParameters, options) {
1783
+ return (0, exports.OrdersApiFp)(this.configuration).sendOrderReceipt(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
1784
+ }
1482
1785
  /**
1483
1786
  * Update a fulfillment that belongs to an order placed through the platform
1484
1787
  * @summary Update fulfillment
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.23.0
5
+ * The version of the OpenAPI document: 0.26.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.23.0
8
+ * The version of the OpenAPI document: 0.26.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.23.0
5
+ * The version of the OpenAPI document: 0.26.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.23.0
8
+ * The version of the OpenAPI document: 0.26.0
9
9
  *
10
10
  *
11
11
  * 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.23.0
5
+ * The version of the OpenAPI document: 0.26.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Platform API
6
6
  * Manage Your podOS platform
7
7
  *
8
- * The version of the OpenAPI document: 0.23.0
8
+ * The version of the OpenAPI document: 0.26.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).