@teemill/platform 0.14.3 → 0.15.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.14.3
8
+ * The version of the OpenAPI document: 0.15.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.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.ListOrdersDateFilterTypeEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.ListCustomersSortByEnum = exports.ExportCustomersSortByEnum = exports.CustomersApi = exports.CustomersApiFactory = exports.CustomersApiFp = exports.CustomersApiAxiosParamCreator = exports.VariantAttributeThumbnailTypeEnum = exports.ProductAttributeValuesInnerThumbnailTypeEnum = exports.PaymentAccountMethodEnum = exports.OutputFileFormatEnum = exports.OutputPositionEnum = exports.OrderStatus = void 0;
25
+ 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.ListCustomersSortByEnum = exports.ExportCustomersSortByEnum = exports.CustomersApi = exports.CustomersApiFactory = exports.CustomersApiFp = exports.CustomersApiAxiosParamCreator = exports.PaymentAccountMethodEnum = 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
@@ -41,37 +41,9 @@ exports.OrderStatus = {
41
41
  Complete: 'complete',
42
42
  Refunded: 'refunded'
43
43
  };
44
- exports.OutputPositionEnum = {
45
- Center: 'center',
46
- Top: 'top',
47
- Left: 'left',
48
- Bottom: 'bottom',
49
- Right: 'right',
50
- RightTop: 'right-top',
51
- RightBottom: 'right-bottom',
52
- LeftTop: 'left-top',
53
- LeftBottom: 'left-bottom'
54
- };
55
- exports.OutputFileFormatEnum = {
56
- Png: 'png',
57
- Jpg: 'jpg',
58
- Jpeg: 'jpeg',
59
- Webp: 'webp',
60
- Pdf: 'pdf'
61
- };
62
44
  exports.PaymentAccountMethodEnum = {
63
45
  Stripe: 'stripe'
64
46
  };
65
- exports.ProductAttributeValuesInnerThumbnailTypeEnum = {
66
- Text: 'text',
67
- Color: 'color',
68
- Image: 'image'
69
- };
70
- exports.VariantAttributeThumbnailTypeEnum = {
71
- Text: 'text',
72
- Color: 'color',
73
- Image: 'image'
74
- };
75
47
  /**
76
48
  * CustomersApi - axios parameter creator
77
49
  * @export
@@ -1482,257 +1454,3 @@ class PlatformApi extends base_1.BaseAPI {
1482
1454
  }
1483
1455
  }
1484
1456
  exports.PlatformApi = PlatformApi;
1485
- /**
1486
- * ProductsApi - axios parameter creator
1487
- * @export
1488
- */
1489
- const ProductsApiAxiosParamCreator = function (configuration) {
1490
- return {
1491
- /**
1492
- * Updates the warehouse product and its variants
1493
- * @summary Update warehouse product
1494
- * @param {string} project Project unique identifier
1495
- * @param {string} platformId The platform identifier
1496
- * @param {string} productId Products unique identifier
1497
- * @param {UpdateProductRequest} updateProductRequest Update a platform warehouse product
1498
- * @param {*} [options] Override http request option.
1499
- * @throws {RequiredError}
1500
- */
1501
- updateProduct: (project_1, platformId_1, productId_1, updateProductRequest_1, ...args_1) => __awaiter(this, [project_1, platformId_1, productId_1, updateProductRequest_1, ...args_1], void 0, function* (project, platformId, productId, updateProductRequest, options = {}) {
1502
- // verify required parameter 'project' is not null or undefined
1503
- (0, common_1.assertParamExists)('updateProduct', 'project', project);
1504
- // verify required parameter 'platformId' is not null or undefined
1505
- (0, common_1.assertParamExists)('updateProduct', 'platformId', platformId);
1506
- // verify required parameter 'productId' is not null or undefined
1507
- (0, common_1.assertParamExists)('updateProduct', 'productId', productId);
1508
- // verify required parameter 'updateProductRequest' is not null or undefined
1509
- (0, common_1.assertParamExists)('updateProduct', 'updateProductRequest', updateProductRequest);
1510
- const localVarPath = `/v1/platform/{platformId}/warehouse/products/{productId}`
1511
- .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
1512
- .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
1513
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1514
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1515
- let baseOptions;
1516
- if (configuration) {
1517
- baseOptions = configuration.baseOptions;
1518
- }
1519
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
1520
- const localVarHeaderParameter = {};
1521
- const localVarQueryParameter = {};
1522
- // authentication session-oauth required
1523
- // oauth required
1524
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
1525
- // authentication api-key required
1526
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1527
- if (project !== undefined) {
1528
- localVarQueryParameter['project'] = project;
1529
- }
1530
- localVarHeaderParameter['Content-Type'] = 'application/json';
1531
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1532
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1533
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1534
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateProductRequest, localVarRequestOptions, configuration);
1535
- return {
1536
- url: (0, common_1.toPathString)(localVarUrlObj),
1537
- options: localVarRequestOptions,
1538
- };
1539
- }),
1540
- };
1541
- };
1542
- exports.ProductsApiAxiosParamCreator = ProductsApiAxiosParamCreator;
1543
- /**
1544
- * ProductsApi - functional programming interface
1545
- * @export
1546
- */
1547
- const ProductsApiFp = function (configuration) {
1548
- const localVarAxiosParamCreator = (0, exports.ProductsApiAxiosParamCreator)(configuration);
1549
- return {
1550
- /**
1551
- * Updates the warehouse product and its variants
1552
- * @summary Update warehouse product
1553
- * @param {string} project Project unique identifier
1554
- * @param {string} platformId The platform identifier
1555
- * @param {string} productId Products unique identifier
1556
- * @param {UpdateProductRequest} updateProductRequest Update a platform warehouse product
1557
- * @param {*} [options] Override http request option.
1558
- * @throws {RequiredError}
1559
- */
1560
- updateProduct(project, platformId, productId, updateProductRequest, options) {
1561
- return __awaiter(this, void 0, void 0, function* () {
1562
- var _a, _b, _c;
1563
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateProduct(project, platformId, productId, updateProductRequest, options);
1564
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1565
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.updateProduct']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1566
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1567
- });
1568
- },
1569
- };
1570
- };
1571
- exports.ProductsApiFp = ProductsApiFp;
1572
- /**
1573
- * ProductsApi - factory interface
1574
- * @export
1575
- */
1576
- const ProductsApiFactory = function (configuration, basePath, axios) {
1577
- const localVarFp = (0, exports.ProductsApiFp)(configuration);
1578
- return {
1579
- /**
1580
- * Updates the warehouse product and its variants
1581
- * @summary Update warehouse product
1582
- * @param {ProductsApiUpdateProductRequest} requestParameters Request parameters.
1583
- * @param {*} [options] Override http request option.
1584
- * @throws {RequiredError}
1585
- */
1586
- updateProduct(requestParameters, options) {
1587
- return localVarFp.updateProduct(requestParameters.project, requestParameters.platformId, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(axios, basePath));
1588
- },
1589
- };
1590
- };
1591
- exports.ProductsApiFactory = ProductsApiFactory;
1592
- /**
1593
- * ProductsApi - object-oriented interface
1594
- * @export
1595
- * @class ProductsApi
1596
- * @extends {BaseAPI}
1597
- */
1598
- class ProductsApi extends base_1.BaseAPI {
1599
- /**
1600
- * Updates the warehouse product and its variants
1601
- * @summary Update warehouse product
1602
- * @param {ProductsApiUpdateProductRequest} requestParameters Request parameters.
1603
- * @param {*} [options] Override http request option.
1604
- * @throws {RequiredError}
1605
- * @memberof ProductsApi
1606
- */
1607
- updateProduct(requestParameters, options) {
1608
- return (0, exports.ProductsApiFp)(this.configuration).updateProduct(requestParameters.project, requestParameters.platformId, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(this.axios, this.basePath));
1609
- }
1610
- }
1611
- exports.ProductsApi = ProductsApi;
1612
- /**
1613
- * VariantsApi - axios parameter creator
1614
- * @export
1615
- */
1616
- const VariantsApiAxiosParamCreator = function (configuration) {
1617
- return {
1618
- /**
1619
- * Updates the warehouse variant
1620
- * @summary Update warehouse variant
1621
- * @param {string} project Project unique identifier
1622
- * @param {string} platformId The platform identifier
1623
- * @param {string} variantId Variants unique identifier
1624
- * @param {UpdateVariantRequest} updateVariantRequest Update a platform warehouse variant
1625
- * @param {*} [options] Override http request option.
1626
- * @throws {RequiredError}
1627
- */
1628
- updateVariant: (project_1, platformId_1, variantId_1, updateVariantRequest_1, ...args_1) => __awaiter(this, [project_1, platformId_1, variantId_1, updateVariantRequest_1, ...args_1], void 0, function* (project, platformId, variantId, updateVariantRequest, options = {}) {
1629
- // verify required parameter 'project' is not null or undefined
1630
- (0, common_1.assertParamExists)('updateVariant', 'project', project);
1631
- // verify required parameter 'platformId' is not null or undefined
1632
- (0, common_1.assertParamExists)('updateVariant', 'platformId', platformId);
1633
- // verify required parameter 'variantId' is not null or undefined
1634
- (0, common_1.assertParamExists)('updateVariant', 'variantId', variantId);
1635
- // verify required parameter 'updateVariantRequest' is not null or undefined
1636
- (0, common_1.assertParamExists)('updateVariant', 'updateVariantRequest', updateVariantRequest);
1637
- const localVarPath = `/v1/platform/{platformId}/warehouse/variants/{variantId}`
1638
- .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
1639
- .replace(`{${"variantId"}}`, encodeURIComponent(String(variantId)));
1640
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1641
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1642
- let baseOptions;
1643
- if (configuration) {
1644
- baseOptions = configuration.baseOptions;
1645
- }
1646
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
1647
- const localVarHeaderParameter = {};
1648
- const localVarQueryParameter = {};
1649
- // authentication session-oauth required
1650
- // oauth required
1651
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
1652
- // authentication api-key required
1653
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1654
- if (project !== undefined) {
1655
- localVarQueryParameter['project'] = project;
1656
- }
1657
- localVarHeaderParameter['Content-Type'] = 'application/json';
1658
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1659
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1660
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1661
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateVariantRequest, localVarRequestOptions, configuration);
1662
- return {
1663
- url: (0, common_1.toPathString)(localVarUrlObj),
1664
- options: localVarRequestOptions,
1665
- };
1666
- }),
1667
- };
1668
- };
1669
- exports.VariantsApiAxiosParamCreator = VariantsApiAxiosParamCreator;
1670
- /**
1671
- * VariantsApi - functional programming interface
1672
- * @export
1673
- */
1674
- const VariantsApiFp = function (configuration) {
1675
- const localVarAxiosParamCreator = (0, exports.VariantsApiAxiosParamCreator)(configuration);
1676
- return {
1677
- /**
1678
- * Updates the warehouse variant
1679
- * @summary Update warehouse variant
1680
- * @param {string} project Project unique identifier
1681
- * @param {string} platformId The platform identifier
1682
- * @param {string} variantId Variants unique identifier
1683
- * @param {UpdateVariantRequest} updateVariantRequest Update a platform warehouse variant
1684
- * @param {*} [options] Override http request option.
1685
- * @throws {RequiredError}
1686
- */
1687
- updateVariant(project, platformId, variantId, updateVariantRequest, options) {
1688
- return __awaiter(this, void 0, void 0, function* () {
1689
- var _a, _b, _c;
1690
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateVariant(project, platformId, variantId, updateVariantRequest, options);
1691
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1692
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['VariantsApi.updateVariant']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1693
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1694
- });
1695
- },
1696
- };
1697
- };
1698
- exports.VariantsApiFp = VariantsApiFp;
1699
- /**
1700
- * VariantsApi - factory interface
1701
- * @export
1702
- */
1703
- const VariantsApiFactory = function (configuration, basePath, axios) {
1704
- const localVarFp = (0, exports.VariantsApiFp)(configuration);
1705
- return {
1706
- /**
1707
- * Updates the warehouse variant
1708
- * @summary Update warehouse variant
1709
- * @param {VariantsApiUpdateVariantRequest} requestParameters Request parameters.
1710
- * @param {*} [options] Override http request option.
1711
- * @throws {RequiredError}
1712
- */
1713
- updateVariant(requestParameters, options) {
1714
- return localVarFp.updateVariant(requestParameters.project, requestParameters.platformId, requestParameters.variantId, requestParameters.updateVariantRequest, options).then((request) => request(axios, basePath));
1715
- },
1716
- };
1717
- };
1718
- exports.VariantsApiFactory = VariantsApiFactory;
1719
- /**
1720
- * VariantsApi - object-oriented interface
1721
- * @export
1722
- * @class VariantsApi
1723
- * @extends {BaseAPI}
1724
- */
1725
- class VariantsApi extends base_1.BaseAPI {
1726
- /**
1727
- * Updates the warehouse variant
1728
- * @summary Update warehouse variant
1729
- * @param {VariantsApiUpdateVariantRequest} requestParameters Request parameters.
1730
- * @param {*} [options] Override http request option.
1731
- * @throws {RequiredError}
1732
- * @memberof VariantsApi
1733
- */
1734
- updateVariant(requestParameters, options) {
1735
- return (0, exports.VariantsApiFp)(this.configuration).updateVariant(requestParameters.project, requestParameters.platformId, requestParameters.variantId, requestParameters.updateVariantRequest, options).then((request) => request(this.axios, this.basePath));
1736
- }
1737
- }
1738
- exports.VariantsApi = VariantsApi;
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.14.3
5
+ * The version of the OpenAPI document: 0.15.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.14.3
8
+ * The version of the OpenAPI document: 0.15.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.14.3
5
+ * The version of the OpenAPI document: 0.15.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.14.3
8
+ * The version of the OpenAPI document: 0.15.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.14.3
5
+ * The version of the OpenAPI document: 0.15.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.14.3
8
+ * The version of the OpenAPI document: 0.15.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).