@teemill/platform 0.15.0 → 0.16.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.
Files changed (73) hide show
  1. package/README.md +94 -2
  2. package/api.ts +819 -4
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +1 -1
  6. package/dist/api.d.ts +540 -4
  7. package/dist/api.js +418 -4
  8. package/dist/base.d.ts +1 -1
  9. package/dist/base.js +1 -1
  10. package/dist/common.d.ts +1 -1
  11. package/dist/common.js +1 -1
  12. package/dist/configuration.d.ts +1 -1
  13. package/dist/configuration.js +1 -1
  14. package/dist/esm/api.d.ts +540 -4
  15. package/dist/esm/api.js +413 -3
  16. package/dist/esm/base.d.ts +1 -1
  17. package/dist/esm/base.js +1 -1
  18. package/dist/esm/common.d.ts +1 -1
  19. package/dist/esm/common.js +1 -1
  20. package/dist/esm/configuration.d.ts +1 -1
  21. package/dist/esm/configuration.js +1 -1
  22. package/dist/esm/index.d.ts +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/docs/Address.md +35 -0
  27. package/docs/ApiError.md +22 -0
  28. package/docs/AuthorizeStripe200Response.md +20 -0
  29. package/docs/ContactInformation.md +23 -0
  30. package/docs/Customer.md +33 -0
  31. package/docs/CustomersApi.md +229 -0
  32. package/docs/CustomersResponse.md +22 -0
  33. package/docs/DeliveryEstimates.md +22 -0
  34. package/docs/ExportOrders202Response.md +20 -0
  35. package/docs/Fulfiller.md +23 -0
  36. package/docs/FulfillerLocation.md +22 -0
  37. package/docs/FulfillersResponse.md +22 -0
  38. package/docs/Fulfillment.md +34 -0
  39. package/docs/FulfillmentItem.md +24 -0
  40. package/docs/Image.md +27 -0
  41. package/docs/ModerateReviewRequest.md +20 -0
  42. package/docs/Option.md +22 -0
  43. package/docs/Order.md +54 -0
  44. package/docs/OrderItem.md +42 -0
  45. package/docs/OrderStatus.md +16 -0
  46. package/docs/OrderTracking.md +24 -0
  47. package/docs/OrdersApi.md +410 -0
  48. package/docs/OrdersResponse.md +22 -0
  49. package/docs/Origin.md +22 -0
  50. package/docs/PaymentAccount.md +24 -0
  51. package/docs/PaymentApi.md +178 -0
  52. package/docs/Platform.md +38 -0
  53. package/docs/PlatformApi.md +122 -0
  54. package/docs/PlatformLogo.md +22 -0
  55. package/docs/Price.md +23 -0
  56. package/docs/Project.md +22 -0
  57. package/docs/Review.md +40 -0
  58. package/docs/ReviewAuthor.md +22 -0
  59. package/docs/ReviewImagesInner.md +22 -0
  60. package/docs/ReviewProduct.md +23 -0
  61. package/docs/ReviewReply.md +26 -0
  62. package/docs/ReviewReplyAuthor.md +20 -0
  63. package/docs/ReviewsApi.md +278 -0
  64. package/docs/ReviewsResponse.md +22 -0
  65. package/docs/ShippingMethod.md +34 -0
  66. package/docs/Statistics.md +24 -0
  67. package/docs/StatusHistoryItem.md +22 -0
  68. package/docs/UpdateFulfillmentRequest.md +20 -0
  69. package/docs/UpdatePlatformRequest.md +32 -0
  70. package/docs/ValidationError.md +20 -0
  71. package/docs/Variant.md +24 -0
  72. package/index.ts +1 -1
  73. package/package.json +1 -1
package/dist/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.15.0
7
+ * The version of the OpenAPI document: 0.16.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -160,7 +160,7 @@ export const CustomersApiAxiosParamCreator = function (configuration) {
160
160
  * @param {string} platformId The platform identifier
161
161
  * @param {number} [pageToken] Page reference token
162
162
  * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
163
- * @param {string} [search] Search term to filter based on order reference, customer name and email
163
+ * @param {string} [search] Search term to filter results
164
164
  * @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.
165
165
  * @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
166
166
  * @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
@@ -283,7 +283,7 @@ export const CustomersApiFp = function (configuration) {
283
283
  * @param {string} platformId The platform identifier
284
284
  * @param {number} [pageToken] Page reference token
285
285
  * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
286
- * @param {string} [search] Search term to filter based on order reference, customer name and email
286
+ * @param {string} [search] Search term to filter results
287
287
  * @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.
288
288
  * @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
289
289
  * @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
@@ -1435,3 +1435,413 @@ export class PlatformApi extends BaseAPI {
1435
1435
  return PlatformApiFp(this.configuration).updatePlatform(requestParameters.project, requestParameters.updatePlatformRequest, options).then((request) => request(this.axios, this.basePath));
1436
1436
  }
1437
1437
  }
1438
+ /**
1439
+ * ReviewsApi - axios parameter creator
1440
+ * @export
1441
+ */
1442
+ export const ReviewsApiAxiosParamCreator = function (configuration) {
1443
+ return {
1444
+ /**
1445
+ * Export reviews as a CSV file.
1446
+ * @summary Export reviews
1447
+ * @param {string} project Project unique identifier
1448
+ * @param {string} platformId The platform identifier
1449
+ * @param {string} start Start of date range to filter by
1450
+ * @param {string} [end] End of date range to filter by
1451
+ * @param {*} [options] Override http request option.
1452
+ * @throws {RequiredError}
1453
+ */
1454
+ exportReviews: (project_1, platformId_1, start_1, end_1, ...args_1) => __awaiter(this, [project_1, platformId_1, start_1, end_1, ...args_1], void 0, function* (project, platformId, start, end, options = {}) {
1455
+ // verify required parameter 'project' is not null or undefined
1456
+ assertParamExists('exportReviews', 'project', project);
1457
+ // verify required parameter 'platformId' is not null or undefined
1458
+ assertParamExists('exportReviews', 'platformId', platformId);
1459
+ // verify required parameter 'start' is not null or undefined
1460
+ assertParamExists('exportReviews', 'start', start);
1461
+ const localVarPath = `/v1/platform/{platformId}/reviews/export`
1462
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
1463
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1464
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1465
+ let baseOptions;
1466
+ if (configuration) {
1467
+ baseOptions = configuration.baseOptions;
1468
+ }
1469
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1470
+ const localVarHeaderParameter = {};
1471
+ const localVarQueryParameter = {};
1472
+ // authentication session-oauth required
1473
+ // oauth required
1474
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1475
+ // authentication api-key required
1476
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1477
+ if (project !== undefined) {
1478
+ localVarQueryParameter['project'] = project;
1479
+ }
1480
+ if (start !== undefined) {
1481
+ localVarQueryParameter['start'] = (start instanceof Date) ?
1482
+ start.toISOString() :
1483
+ start;
1484
+ }
1485
+ if (end !== undefined) {
1486
+ localVarQueryParameter['end'] = (end instanceof Date) ?
1487
+ end.toISOString() :
1488
+ end;
1489
+ }
1490
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1491
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1492
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1493
+ return {
1494
+ url: toPathString(localVarUrlObj),
1495
+ options: localVarRequestOptions,
1496
+ };
1497
+ }),
1498
+ /**
1499
+ * Get a review left on a platform by a given review ID.
1500
+ * @summary Get review
1501
+ * @param {string} project Project unique identifier
1502
+ * @param {string} platformId The platform identifier
1503
+ * @param {string} reviewId The review identifier
1504
+ * @param {*} [options] Override http request option.
1505
+ * @throws {RequiredError}
1506
+ */
1507
+ getReview: (project_1, platformId_1, reviewId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, reviewId_1, ...args_1], void 0, function* (project, platformId, reviewId, options = {}) {
1508
+ // verify required parameter 'project' is not null or undefined
1509
+ assertParamExists('getReview', 'project', project);
1510
+ // verify required parameter 'platformId' is not null or undefined
1511
+ assertParamExists('getReview', 'platformId', platformId);
1512
+ // verify required parameter 'reviewId' is not null or undefined
1513
+ assertParamExists('getReview', 'reviewId', reviewId);
1514
+ const localVarPath = `/v1/platform/{platformId}/reviews/{reviewId}`
1515
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
1516
+ .replace(`{${"reviewId"}}`, encodeURIComponent(String(reviewId)));
1517
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1518
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1519
+ let baseOptions;
1520
+ if (configuration) {
1521
+ baseOptions = configuration.baseOptions;
1522
+ }
1523
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1524
+ const localVarHeaderParameter = {};
1525
+ const localVarQueryParameter = {};
1526
+ // authentication session-oauth required
1527
+ // oauth required
1528
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1529
+ // authentication api-key required
1530
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1531
+ if (project !== undefined) {
1532
+ localVarQueryParameter['project'] = project;
1533
+ }
1534
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1535
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1536
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1537
+ return {
1538
+ url: toPathString(localVarUrlObj),
1539
+ options: localVarRequestOptions,
1540
+ };
1541
+ }),
1542
+ /**
1543
+ * List reviews left on projects belonging to this platform, paginated into configurable chunks.
1544
+ * @summary List reviews
1545
+ * @param {string} project Project unique identifier
1546
+ * @param {string} platformId The platform identifier
1547
+ * @param {number} [pageToken] Page reference token
1548
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1549
+ * @param {string} [search] Search term to filter results
1550
+ * @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
1551
+ * @param {string} [start] Start of date range to filter by
1552
+ * @param {string} [end] End of date range to filter by
1553
+ * @param {*} [options] Override http request option.
1554
+ * @throws {RequiredError}
1555
+ */
1556
+ listReviews: (project_1, platformId_1, pageToken_1, pageSize_1, search_1, sortBy_1, start_1, end_1, ...args_1) => __awaiter(this, [project_1, platformId_1, pageToken_1, pageSize_1, search_1, sortBy_1, start_1, end_1, ...args_1], void 0, function* (project, platformId, pageToken, pageSize, search, sortBy, start, end, options = {}) {
1557
+ // verify required parameter 'project' is not null or undefined
1558
+ assertParamExists('listReviews', 'project', project);
1559
+ // verify required parameter 'platformId' is not null or undefined
1560
+ assertParamExists('listReviews', 'platformId', platformId);
1561
+ const localVarPath = `/v1/platform/{platformId}/reviews`
1562
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
1563
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1564
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1565
+ let baseOptions;
1566
+ if (configuration) {
1567
+ baseOptions = configuration.baseOptions;
1568
+ }
1569
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1570
+ const localVarHeaderParameter = {};
1571
+ const localVarQueryParameter = {};
1572
+ // authentication session-oauth required
1573
+ // oauth required
1574
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1575
+ // authentication api-key required
1576
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1577
+ if (project !== undefined) {
1578
+ localVarQueryParameter['project'] = project;
1579
+ }
1580
+ if (pageToken !== undefined) {
1581
+ localVarQueryParameter['pageToken'] = pageToken;
1582
+ }
1583
+ if (pageSize !== undefined) {
1584
+ localVarQueryParameter['pageSize'] = pageSize;
1585
+ }
1586
+ if (search !== undefined) {
1587
+ localVarQueryParameter['search'] = search;
1588
+ }
1589
+ if (sortBy) {
1590
+ localVarQueryParameter['sortBy'] = sortBy;
1591
+ }
1592
+ if (start !== undefined) {
1593
+ localVarQueryParameter['start'] = (start instanceof Date) ?
1594
+ start.toISOString() :
1595
+ start;
1596
+ }
1597
+ if (end !== undefined) {
1598
+ localVarQueryParameter['end'] = (end instanceof Date) ?
1599
+ end.toISOString() :
1600
+ end;
1601
+ }
1602
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1603
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1604
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1605
+ return {
1606
+ url: toPathString(localVarUrlObj),
1607
+ options: localVarRequestOptions,
1608
+ };
1609
+ }),
1610
+ /**
1611
+ * Moderate a review left on a platform.
1612
+ * @summary Moderate review
1613
+ * @param {string} project Project unique identifier
1614
+ * @param {string} platformId The platform identifier
1615
+ * @param {string} reviewId The review identifier
1616
+ * @param {ModerateReviewRequest} [moderateReviewRequest]
1617
+ * @param {*} [options] Override http request option.
1618
+ * @throws {RequiredError}
1619
+ */
1620
+ moderateReview: (project_1, platformId_1, reviewId_1, moderateReviewRequest_1, ...args_1) => __awaiter(this, [project_1, platformId_1, reviewId_1, moderateReviewRequest_1, ...args_1], void 0, function* (project, platformId, reviewId, moderateReviewRequest, options = {}) {
1621
+ // verify required parameter 'project' is not null or undefined
1622
+ assertParamExists('moderateReview', 'project', project);
1623
+ // verify required parameter 'platformId' is not null or undefined
1624
+ assertParamExists('moderateReview', 'platformId', platformId);
1625
+ // verify required parameter 'reviewId' is not null or undefined
1626
+ assertParamExists('moderateReview', 'reviewId', reviewId);
1627
+ const localVarPath = `/v1/platform/{platformId}/reviews/{reviewId}/moderate`
1628
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
1629
+ .replace(`{${"reviewId"}}`, encodeURIComponent(String(reviewId)));
1630
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1631
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1632
+ let baseOptions;
1633
+ if (configuration) {
1634
+ baseOptions = configuration.baseOptions;
1635
+ }
1636
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
1637
+ const localVarHeaderParameter = {};
1638
+ const localVarQueryParameter = {};
1639
+ // authentication session-oauth required
1640
+ // oauth required
1641
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1642
+ // authentication api-key required
1643
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1644
+ if (project !== undefined) {
1645
+ localVarQueryParameter['project'] = project;
1646
+ }
1647
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1648
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1649
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1650
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1651
+ localVarRequestOptions.data = serializeDataIfNeeded(moderateReviewRequest, localVarRequestOptions, configuration);
1652
+ return {
1653
+ url: toPathString(localVarUrlObj),
1654
+ options: localVarRequestOptions,
1655
+ };
1656
+ }),
1657
+ };
1658
+ };
1659
+ /**
1660
+ * ReviewsApi - functional programming interface
1661
+ * @export
1662
+ */
1663
+ export const ReviewsApiFp = function (configuration) {
1664
+ const localVarAxiosParamCreator = ReviewsApiAxiosParamCreator(configuration);
1665
+ return {
1666
+ /**
1667
+ * Export reviews as a CSV file.
1668
+ * @summary Export reviews
1669
+ * @param {string} project Project unique identifier
1670
+ * @param {string} platformId The platform identifier
1671
+ * @param {string} start Start of date range to filter by
1672
+ * @param {string} [end] End of date range to filter by
1673
+ * @param {*} [options] Override http request option.
1674
+ * @throws {RequiredError}
1675
+ */
1676
+ exportReviews(project, platformId, start, end, options) {
1677
+ return __awaiter(this, void 0, void 0, function* () {
1678
+ var _a, _b, _c;
1679
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.exportReviews(project, platformId, start, end, options);
1680
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1681
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReviewsApi.exportReviews']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1682
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1683
+ });
1684
+ },
1685
+ /**
1686
+ * Get a review left on a platform by a given review ID.
1687
+ * @summary Get review
1688
+ * @param {string} project Project unique identifier
1689
+ * @param {string} platformId The platform identifier
1690
+ * @param {string} reviewId The review identifier
1691
+ * @param {*} [options] Override http request option.
1692
+ * @throws {RequiredError}
1693
+ */
1694
+ getReview(project, platformId, reviewId, options) {
1695
+ return __awaiter(this, void 0, void 0, function* () {
1696
+ var _a, _b, _c;
1697
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getReview(project, platformId, reviewId, options);
1698
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1699
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReviewsApi.getReview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1700
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1701
+ });
1702
+ },
1703
+ /**
1704
+ * List reviews left on projects belonging to this platform, paginated into configurable chunks.
1705
+ * @summary List reviews
1706
+ * @param {string} project Project unique identifier
1707
+ * @param {string} platformId The platform identifier
1708
+ * @param {number} [pageToken] Page reference token
1709
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1710
+ * @param {string} [search] Search term to filter results
1711
+ * @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
1712
+ * @param {string} [start] Start of date range to filter by
1713
+ * @param {string} [end] End of date range to filter by
1714
+ * @param {*} [options] Override http request option.
1715
+ * @throws {RequiredError}
1716
+ */
1717
+ listReviews(project, platformId, pageToken, pageSize, search, sortBy, start, end, options) {
1718
+ return __awaiter(this, void 0, void 0, function* () {
1719
+ var _a, _b, _c;
1720
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listReviews(project, platformId, pageToken, pageSize, search, sortBy, start, end, options);
1721
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1722
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReviewsApi.listReviews']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1723
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1724
+ });
1725
+ },
1726
+ /**
1727
+ * Moderate a review left on a platform.
1728
+ * @summary Moderate review
1729
+ * @param {string} project Project unique identifier
1730
+ * @param {string} platformId The platform identifier
1731
+ * @param {string} reviewId The review identifier
1732
+ * @param {ModerateReviewRequest} [moderateReviewRequest]
1733
+ * @param {*} [options] Override http request option.
1734
+ * @throws {RequiredError}
1735
+ */
1736
+ moderateReview(project, platformId, reviewId, moderateReviewRequest, options) {
1737
+ return __awaiter(this, void 0, void 0, function* () {
1738
+ var _a, _b, _c;
1739
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.moderateReview(project, platformId, reviewId, moderateReviewRequest, options);
1740
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1741
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReviewsApi.moderateReview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1742
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1743
+ });
1744
+ },
1745
+ };
1746
+ };
1747
+ /**
1748
+ * ReviewsApi - factory interface
1749
+ * @export
1750
+ */
1751
+ export const ReviewsApiFactory = function (configuration, basePath, axios) {
1752
+ const localVarFp = ReviewsApiFp(configuration);
1753
+ return {
1754
+ /**
1755
+ * Export reviews as a CSV file.
1756
+ * @summary Export reviews
1757
+ * @param {ReviewsApiExportReviewsRequest} requestParameters Request parameters.
1758
+ * @param {*} [options] Override http request option.
1759
+ * @throws {RequiredError}
1760
+ */
1761
+ exportReviews(requestParameters, options) {
1762
+ return localVarFp.exportReviews(requestParameters.project, requestParameters.platformId, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
1763
+ },
1764
+ /**
1765
+ * Get a review left on a platform by a given review ID.
1766
+ * @summary Get review
1767
+ * @param {ReviewsApiGetReviewRequest} requestParameters Request parameters.
1768
+ * @param {*} [options] Override http request option.
1769
+ * @throws {RequiredError}
1770
+ */
1771
+ getReview(requestParameters, options) {
1772
+ return localVarFp.getReview(requestParameters.project, requestParameters.platformId, requestParameters.reviewId, options).then((request) => request(axios, basePath));
1773
+ },
1774
+ /**
1775
+ * List reviews left on projects belonging to this platform, paginated into configurable chunks.
1776
+ * @summary List reviews
1777
+ * @param {ReviewsApiListReviewsRequest} requestParameters Request parameters.
1778
+ * @param {*} [options] Override http request option.
1779
+ * @throws {RequiredError}
1780
+ */
1781
+ listReviews(requestParameters, options) {
1782
+ return localVarFp.listReviews(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
1783
+ },
1784
+ /**
1785
+ * Moderate a review left on a platform.
1786
+ * @summary Moderate review
1787
+ * @param {ReviewsApiModerateReviewRequest} requestParameters Request parameters.
1788
+ * @param {*} [options] Override http request option.
1789
+ * @throws {RequiredError}
1790
+ */
1791
+ moderateReview(requestParameters, options) {
1792
+ return localVarFp.moderateReview(requestParameters.project, requestParameters.platformId, requestParameters.reviewId, requestParameters.moderateReviewRequest, options).then((request) => request(axios, basePath));
1793
+ },
1794
+ };
1795
+ };
1796
+ /**
1797
+ * ReviewsApi - object-oriented interface
1798
+ * @export
1799
+ * @class ReviewsApi
1800
+ * @extends {BaseAPI}
1801
+ */
1802
+ export class ReviewsApi extends BaseAPI {
1803
+ /**
1804
+ * Export reviews as a CSV file.
1805
+ * @summary Export reviews
1806
+ * @param {ReviewsApiExportReviewsRequest} requestParameters Request parameters.
1807
+ * @param {*} [options] Override http request option.
1808
+ * @throws {RequiredError}
1809
+ * @memberof ReviewsApi
1810
+ */
1811
+ exportReviews(requestParameters, options) {
1812
+ return ReviewsApiFp(this.configuration).exportReviews(requestParameters.project, requestParameters.platformId, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
1813
+ }
1814
+ /**
1815
+ * Get a review left on a platform by a given review ID.
1816
+ * @summary Get review
1817
+ * @param {ReviewsApiGetReviewRequest} requestParameters Request parameters.
1818
+ * @param {*} [options] Override http request option.
1819
+ * @throws {RequiredError}
1820
+ * @memberof ReviewsApi
1821
+ */
1822
+ getReview(requestParameters, options) {
1823
+ return ReviewsApiFp(this.configuration).getReview(requestParameters.project, requestParameters.platformId, requestParameters.reviewId, options).then((request) => request(this.axios, this.basePath));
1824
+ }
1825
+ /**
1826
+ * List reviews left on projects belonging to this platform, paginated into configurable chunks.
1827
+ * @summary List reviews
1828
+ * @param {ReviewsApiListReviewsRequest} requestParameters Request parameters.
1829
+ * @param {*} [options] Override http request option.
1830
+ * @throws {RequiredError}
1831
+ * @memberof ReviewsApi
1832
+ */
1833
+ listReviews(requestParameters, options) {
1834
+ return ReviewsApiFp(this.configuration).listReviews(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
1835
+ }
1836
+ /**
1837
+ * Moderate a review left on a platform.
1838
+ * @summary Moderate review
1839
+ * @param {ReviewsApiModerateReviewRequest} requestParameters Request parameters.
1840
+ * @param {*} [options] Override http request option.
1841
+ * @throws {RequiredError}
1842
+ * @memberof ReviewsApi
1843
+ */
1844
+ moderateReview(requestParameters, options) {
1845
+ return ReviewsApiFp(this.configuration).moderateReview(requestParameters.project, requestParameters.platformId, requestParameters.reviewId, requestParameters.moderateReviewRequest, options).then((request) => request(this.axios, this.basePath));
1846
+ }
1847
+ }
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.15.0
5
+ * The version of the OpenAPI document: 0.16.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.15.0
7
+ * The version of the OpenAPI document: 0.16.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.15.0
5
+ * The version of the OpenAPI document: 0.16.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.15.0
7
+ * The version of the OpenAPI document: 0.16.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.15.0
5
+ * The version of the OpenAPI document: 0.16.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.15.0
7
+ * The version of the OpenAPI document: 0.16.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.15.0
5
+ * The version of the OpenAPI document: 0.16.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.15.0
7
+ * The version of the OpenAPI document: 0.16.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.15.0
5
+ * The version of the OpenAPI document: 0.16.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Platform API
6
6
  * Manage Your podOS platform
7
7
  *
8
- * The version of the OpenAPI document: 0.15.0
8
+ * The version of the OpenAPI document: 0.16.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,35 @@
1
+ # Address
2
+
3
+ A person\'s address.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **contactName** | **string** | | [default to undefined]
10
+ **company** | **string** | | [optional] [default to undefined]
11
+ **line1** | **string** | First line of the address. | [default to undefined]
12
+ **line2** | **string** | Second line of the address. | [optional] [default to undefined]
13
+ **city** | **string** | City of the address. | [default to undefined]
14
+ **postalCode** | **string** | Postal code of the address. | [optional] [default to undefined]
15
+ **country** | **string** | Country of the address (ISO 3166-1 alpha-2). | [default to undefined]
16
+ **state** | **string** | State of the address. | [optional] [default to undefined]
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import { Address } from '@teemill/platform';
22
+
23
+ const instance: Address = {
24
+ contactName,
25
+ company,
26
+ line1,
27
+ line2,
28
+ city,
29
+ postalCode,
30
+ country,
31
+ state,
32
+ };
33
+ ```
34
+
35
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,22 @@
1
+ # ApiError
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **code** | **string** | | [optional] [default to undefined]
9
+ **message** | **string** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ApiError } from '@teemill/platform';
15
+
16
+ const instance: ApiError = {
17
+ code,
18
+ message,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,20 @@
1
+ # AuthorizeStripe200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **redirect_url** | **string** | The URL to redirect to | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { AuthorizeStripe200Response } from '@teemill/platform';
14
+
15
+ const instance: AuthorizeStripe200Response = {
16
+ redirect_url,
17
+ };
18
+ ```
19
+
20
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,23 @@
1
+ # ContactInformation
2
+
3
+ Order recipient contact information, used only for courier tracking/updates.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **email** | **string** | | [default to undefined]
10
+ **phone** | **string** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { ContactInformation } from '@teemill/platform';
16
+
17
+ const instance: ContactInformation = {
18
+ email,
19
+ phone,
20
+ };
21
+ ```
22
+
23
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)