@teemill/platform 0.8.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/api.js CHANGED
@@ -2,10 +2,10 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Platform API
5
- * Manage Your podOS platform Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
5
+ * Manage Your podOS platform
6
+ *
7
+ * The version of the OpenAPI document: 0.10.0
6
8
  *
7
- * The version of the OpenAPI document: 0.8.0
8
- * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -38,6 +38,34 @@ export const OrderStatus = {
38
38
  Complete: 'complete',
39
39
  Refunded: 'refunded'
40
40
  };
41
+ export const OutputPositionEnum = {
42
+ Center: 'center',
43
+ Top: 'top',
44
+ Left: 'left',
45
+ Bottom: 'bottom',
46
+ Right: 'right',
47
+ RightTop: 'right-top',
48
+ RightBottom: 'right-bottom',
49
+ LeftTop: 'left-top',
50
+ LeftBottom: 'left-bottom'
51
+ };
52
+ export const OutputFileFormatEnum = {
53
+ Png: 'png',
54
+ Jpg: 'jpg',
55
+ Jpeg: 'jpeg',
56
+ Webp: 'webp',
57
+ Pdf: 'pdf'
58
+ };
59
+ export const ProductAttributeValuesInnerThumbnailTypeEnum = {
60
+ Text: 'text',
61
+ Color: 'color',
62
+ Image: 'image'
63
+ };
64
+ export const VariantAttributeThumbnailTypeEnum = {
65
+ Text: 'text',
66
+ Color: 'color',
67
+ Image: 'image'
68
+ };
41
69
  /**
42
70
  * OrdersApi - axios parameter creator
43
71
  * @export
@@ -1002,6 +1030,104 @@ export const PlatformApiAxiosParamCreator = function (configuration) {
1002
1030
  options: localVarRequestOptions,
1003
1031
  };
1004
1032
  }),
1033
+ /**
1034
+ * Updates the warehouse product and its variants
1035
+ * @summary Update warehouse product
1036
+ * @param {string} project Project unique identifier
1037
+ * @param {string} platformId The platform identifier
1038
+ * @param {string} productId Products unique identifier
1039
+ * @param {UpdateProductRequest} updateProductRequest Update a platform warehouse product
1040
+ * @param {*} [options] Override http request option.
1041
+ * @throws {RequiredError}
1042
+ */
1043
+ 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 = {}) {
1044
+ // verify required parameter 'project' is not null or undefined
1045
+ assertParamExists('updateProduct', 'project', project);
1046
+ // verify required parameter 'platformId' is not null or undefined
1047
+ assertParamExists('updateProduct', 'platformId', platformId);
1048
+ // verify required parameter 'productId' is not null or undefined
1049
+ assertParamExists('updateProduct', 'productId', productId);
1050
+ // verify required parameter 'updateProductRequest' is not null or undefined
1051
+ assertParamExists('updateProduct', 'updateProductRequest', updateProductRequest);
1052
+ const localVarPath = `/v1/platform/{platformId}/warehouse/products/{productId}`
1053
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
1054
+ .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
1055
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1056
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1057
+ let baseOptions;
1058
+ if (configuration) {
1059
+ baseOptions = configuration.baseOptions;
1060
+ }
1061
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
1062
+ const localVarHeaderParameter = {};
1063
+ const localVarQueryParameter = {};
1064
+ // authentication session-oauth required
1065
+ // oauth required
1066
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1067
+ // authentication api-key required
1068
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1069
+ if (project !== undefined) {
1070
+ localVarQueryParameter['project'] = project;
1071
+ }
1072
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1073
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1074
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1075
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1076
+ localVarRequestOptions.data = serializeDataIfNeeded(updateProductRequest, localVarRequestOptions, configuration);
1077
+ return {
1078
+ url: toPathString(localVarUrlObj),
1079
+ options: localVarRequestOptions,
1080
+ };
1081
+ }),
1082
+ /**
1083
+ * Updates the warehouse variant
1084
+ * @summary Update warehouse variant
1085
+ * @param {string} project Project unique identifier
1086
+ * @param {string} platformId The platform identifier
1087
+ * @param {string} variantId Variants unique identifier
1088
+ * @param {UpdateVariantRequest} updateVariantRequest Update a platform warehouse variant
1089
+ * @param {*} [options] Override http request option.
1090
+ * @throws {RequiredError}
1091
+ */
1092
+ 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 = {}) {
1093
+ // verify required parameter 'project' is not null or undefined
1094
+ assertParamExists('updateVariant', 'project', project);
1095
+ // verify required parameter 'platformId' is not null or undefined
1096
+ assertParamExists('updateVariant', 'platformId', platformId);
1097
+ // verify required parameter 'variantId' is not null or undefined
1098
+ assertParamExists('updateVariant', 'variantId', variantId);
1099
+ // verify required parameter 'updateVariantRequest' is not null or undefined
1100
+ assertParamExists('updateVariant', 'updateVariantRequest', updateVariantRequest);
1101
+ const localVarPath = `/v1/platform/{platformId}/warehouse/variants/{variantId}`
1102
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
1103
+ .replace(`{${"variantId"}}`, encodeURIComponent(String(variantId)));
1104
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1105
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1106
+ let baseOptions;
1107
+ if (configuration) {
1108
+ baseOptions = configuration.baseOptions;
1109
+ }
1110
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
1111
+ const localVarHeaderParameter = {};
1112
+ const localVarQueryParameter = {};
1113
+ // authentication session-oauth required
1114
+ // oauth required
1115
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1116
+ // authentication api-key required
1117
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1118
+ if (project !== undefined) {
1119
+ localVarQueryParameter['project'] = project;
1120
+ }
1121
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1122
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1123
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1124
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1125
+ localVarRequestOptions.data = serializeDataIfNeeded(updateVariantRequest, localVarRequestOptions, configuration);
1126
+ return {
1127
+ url: toPathString(localVarUrlObj),
1128
+ options: localVarRequestOptions,
1129
+ };
1130
+ }),
1005
1131
  };
1006
1132
  };
1007
1133
  /**
@@ -1159,6 +1285,44 @@ export const PlatformApiFp = function (configuration) {
1159
1285
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1160
1286
  });
1161
1287
  },
1288
+ /**
1289
+ * Updates the warehouse product and its variants
1290
+ * @summary Update warehouse product
1291
+ * @param {string} project Project unique identifier
1292
+ * @param {string} platformId The platform identifier
1293
+ * @param {string} productId Products unique identifier
1294
+ * @param {UpdateProductRequest} updateProductRequest Update a platform warehouse product
1295
+ * @param {*} [options] Override http request option.
1296
+ * @throws {RequiredError}
1297
+ */
1298
+ updateProduct(project, platformId, productId, updateProductRequest, options) {
1299
+ return __awaiter(this, void 0, void 0, function* () {
1300
+ var _a, _b, _c;
1301
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateProduct(project, platformId, productId, updateProductRequest, options);
1302
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1303
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlatformApi.updateProduct']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1304
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1305
+ });
1306
+ },
1307
+ /**
1308
+ * Updates the warehouse variant
1309
+ * @summary Update warehouse variant
1310
+ * @param {string} project Project unique identifier
1311
+ * @param {string} platformId The platform identifier
1312
+ * @param {string} variantId Variants unique identifier
1313
+ * @param {UpdateVariantRequest} updateVariantRequest Update a platform warehouse variant
1314
+ * @param {*} [options] Override http request option.
1315
+ * @throws {RequiredError}
1316
+ */
1317
+ updateVariant(project, platformId, variantId, updateVariantRequest, options) {
1318
+ return __awaiter(this, void 0, void 0, function* () {
1319
+ var _a, _b, _c;
1320
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateVariant(project, platformId, variantId, updateVariantRequest, options);
1321
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1322
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlatformApi.updateVariant']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1323
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1324
+ });
1325
+ },
1162
1326
  };
1163
1327
  };
1164
1328
  /**
@@ -1248,6 +1412,26 @@ export const PlatformApiFactory = function (configuration, basePath, axios) {
1248
1412
  updatePlatform(requestParameters, options) {
1249
1413
  return localVarFp.updatePlatform(requestParameters.project, requestParameters.updatePlatformRequest, options).then((request) => request(axios, basePath));
1250
1414
  },
1415
+ /**
1416
+ * Updates the warehouse product and its variants
1417
+ * @summary Update warehouse product
1418
+ * @param {PlatformApiUpdateProductRequest} requestParameters Request parameters.
1419
+ * @param {*} [options] Override http request option.
1420
+ * @throws {RequiredError}
1421
+ */
1422
+ updateProduct(requestParameters, options) {
1423
+ return localVarFp.updateProduct(requestParameters.project, requestParameters.platformId, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(axios, basePath));
1424
+ },
1425
+ /**
1426
+ * Updates the warehouse variant
1427
+ * @summary Update warehouse variant
1428
+ * @param {PlatformApiUpdateVariantRequest} requestParameters Request parameters.
1429
+ * @param {*} [options] Override http request option.
1430
+ * @throws {RequiredError}
1431
+ */
1432
+ updateVariant(requestParameters, options) {
1433
+ return localVarFp.updateVariant(requestParameters.project, requestParameters.platformId, requestParameters.variantId, requestParameters.updateVariantRequest, options).then((request) => request(axios, basePath));
1434
+ },
1251
1435
  };
1252
1436
  };
1253
1437
  /**
@@ -1345,4 +1529,272 @@ export class PlatformApi extends BaseAPI {
1345
1529
  updatePlatform(requestParameters, options) {
1346
1530
  return PlatformApiFp(this.configuration).updatePlatform(requestParameters.project, requestParameters.updatePlatformRequest, options).then((request) => request(this.axios, this.basePath));
1347
1531
  }
1532
+ /**
1533
+ * Updates the warehouse product and its variants
1534
+ * @summary Update warehouse product
1535
+ * @param {PlatformApiUpdateProductRequest} requestParameters Request parameters.
1536
+ * @param {*} [options] Override http request option.
1537
+ * @throws {RequiredError}
1538
+ * @memberof PlatformApi
1539
+ */
1540
+ updateProduct(requestParameters, options) {
1541
+ return PlatformApiFp(this.configuration).updateProduct(requestParameters.project, requestParameters.platformId, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(this.axios, this.basePath));
1542
+ }
1543
+ /**
1544
+ * Updates the warehouse variant
1545
+ * @summary Update warehouse variant
1546
+ * @param {PlatformApiUpdateVariantRequest} requestParameters Request parameters.
1547
+ * @param {*} [options] Override http request option.
1548
+ * @throws {RequiredError}
1549
+ * @memberof PlatformApi
1550
+ */
1551
+ updateVariant(requestParameters, options) {
1552
+ return PlatformApiFp(this.configuration).updateVariant(requestParameters.project, requestParameters.platformId, requestParameters.variantId, requestParameters.updateVariantRequest, options).then((request) => request(this.axios, this.basePath));
1553
+ }
1554
+ }
1555
+ /**
1556
+ * ProductsApi - axios parameter creator
1557
+ * @export
1558
+ */
1559
+ export const ProductsApiAxiosParamCreator = function (configuration) {
1560
+ return {
1561
+ /**
1562
+ * Updates the warehouse product and its variants
1563
+ * @summary Update warehouse product
1564
+ * @param {string} project Project unique identifier
1565
+ * @param {string} platformId The platform identifier
1566
+ * @param {string} productId Products unique identifier
1567
+ * @param {UpdateProductRequest} updateProductRequest Update a platform warehouse product
1568
+ * @param {*} [options] Override http request option.
1569
+ * @throws {RequiredError}
1570
+ */
1571
+ 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 = {}) {
1572
+ // verify required parameter 'project' is not null or undefined
1573
+ assertParamExists('updateProduct', 'project', project);
1574
+ // verify required parameter 'platformId' is not null or undefined
1575
+ assertParamExists('updateProduct', 'platformId', platformId);
1576
+ // verify required parameter 'productId' is not null or undefined
1577
+ assertParamExists('updateProduct', 'productId', productId);
1578
+ // verify required parameter 'updateProductRequest' is not null or undefined
1579
+ assertParamExists('updateProduct', 'updateProductRequest', updateProductRequest);
1580
+ const localVarPath = `/v1/platform/{platformId}/warehouse/products/{productId}`
1581
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
1582
+ .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
1583
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1584
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1585
+ let baseOptions;
1586
+ if (configuration) {
1587
+ baseOptions = configuration.baseOptions;
1588
+ }
1589
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
1590
+ const localVarHeaderParameter = {};
1591
+ const localVarQueryParameter = {};
1592
+ // authentication session-oauth required
1593
+ // oauth required
1594
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1595
+ // authentication api-key required
1596
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1597
+ if (project !== undefined) {
1598
+ localVarQueryParameter['project'] = project;
1599
+ }
1600
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1601
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1602
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1603
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1604
+ localVarRequestOptions.data = serializeDataIfNeeded(updateProductRequest, localVarRequestOptions, configuration);
1605
+ return {
1606
+ url: toPathString(localVarUrlObj),
1607
+ options: localVarRequestOptions,
1608
+ };
1609
+ }),
1610
+ };
1611
+ };
1612
+ /**
1613
+ * ProductsApi - functional programming interface
1614
+ * @export
1615
+ */
1616
+ export const ProductsApiFp = function (configuration) {
1617
+ const localVarAxiosParamCreator = ProductsApiAxiosParamCreator(configuration);
1618
+ return {
1619
+ /**
1620
+ * Updates the warehouse product and its variants
1621
+ * @summary Update warehouse product
1622
+ * @param {string} project Project unique identifier
1623
+ * @param {string} platformId The platform identifier
1624
+ * @param {string} productId Products unique identifier
1625
+ * @param {UpdateProductRequest} updateProductRequest Update a platform warehouse product
1626
+ * @param {*} [options] Override http request option.
1627
+ * @throws {RequiredError}
1628
+ */
1629
+ updateProduct(project, platformId, productId, updateProductRequest, options) {
1630
+ return __awaiter(this, void 0, void 0, function* () {
1631
+ var _a, _b, _c;
1632
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateProduct(project, platformId, productId, updateProductRequest, options);
1633
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1634
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProductsApi.updateProduct']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1635
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1636
+ });
1637
+ },
1638
+ };
1639
+ };
1640
+ /**
1641
+ * ProductsApi - factory interface
1642
+ * @export
1643
+ */
1644
+ export const ProductsApiFactory = function (configuration, basePath, axios) {
1645
+ const localVarFp = ProductsApiFp(configuration);
1646
+ return {
1647
+ /**
1648
+ * Updates the warehouse product and its variants
1649
+ * @summary Update warehouse product
1650
+ * @param {ProductsApiUpdateProductRequest} requestParameters Request parameters.
1651
+ * @param {*} [options] Override http request option.
1652
+ * @throws {RequiredError}
1653
+ */
1654
+ updateProduct(requestParameters, options) {
1655
+ return localVarFp.updateProduct(requestParameters.project, requestParameters.platformId, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(axios, basePath));
1656
+ },
1657
+ };
1658
+ };
1659
+ /**
1660
+ * ProductsApi - object-oriented interface
1661
+ * @export
1662
+ * @class ProductsApi
1663
+ * @extends {BaseAPI}
1664
+ */
1665
+ export class ProductsApi extends BaseAPI {
1666
+ /**
1667
+ * Updates the warehouse product and its variants
1668
+ * @summary Update warehouse product
1669
+ * @param {ProductsApiUpdateProductRequest} requestParameters Request parameters.
1670
+ * @param {*} [options] Override http request option.
1671
+ * @throws {RequiredError}
1672
+ * @memberof ProductsApi
1673
+ */
1674
+ updateProduct(requestParameters, options) {
1675
+ return ProductsApiFp(this.configuration).updateProduct(requestParameters.project, requestParameters.platformId, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(this.axios, this.basePath));
1676
+ }
1677
+ }
1678
+ /**
1679
+ * VariantsApi - axios parameter creator
1680
+ * @export
1681
+ */
1682
+ export const VariantsApiAxiosParamCreator = function (configuration) {
1683
+ return {
1684
+ /**
1685
+ * Updates the warehouse variant
1686
+ * @summary Update warehouse variant
1687
+ * @param {string} project Project unique identifier
1688
+ * @param {string} platformId The platform identifier
1689
+ * @param {string} variantId Variants unique identifier
1690
+ * @param {UpdateVariantRequest} updateVariantRequest Update a platform warehouse variant
1691
+ * @param {*} [options] Override http request option.
1692
+ * @throws {RequiredError}
1693
+ */
1694
+ 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 = {}) {
1695
+ // verify required parameter 'project' is not null or undefined
1696
+ assertParamExists('updateVariant', 'project', project);
1697
+ // verify required parameter 'platformId' is not null or undefined
1698
+ assertParamExists('updateVariant', 'platformId', platformId);
1699
+ // verify required parameter 'variantId' is not null or undefined
1700
+ assertParamExists('updateVariant', 'variantId', variantId);
1701
+ // verify required parameter 'updateVariantRequest' is not null or undefined
1702
+ assertParamExists('updateVariant', 'updateVariantRequest', updateVariantRequest);
1703
+ const localVarPath = `/v1/platform/{platformId}/warehouse/variants/{variantId}`
1704
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
1705
+ .replace(`{${"variantId"}}`, encodeURIComponent(String(variantId)));
1706
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1707
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1708
+ let baseOptions;
1709
+ if (configuration) {
1710
+ baseOptions = configuration.baseOptions;
1711
+ }
1712
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
1713
+ const localVarHeaderParameter = {};
1714
+ const localVarQueryParameter = {};
1715
+ // authentication session-oauth required
1716
+ // oauth required
1717
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1718
+ // authentication api-key required
1719
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1720
+ if (project !== undefined) {
1721
+ localVarQueryParameter['project'] = project;
1722
+ }
1723
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1724
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1725
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1726
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1727
+ localVarRequestOptions.data = serializeDataIfNeeded(updateVariantRequest, localVarRequestOptions, configuration);
1728
+ return {
1729
+ url: toPathString(localVarUrlObj),
1730
+ options: localVarRequestOptions,
1731
+ };
1732
+ }),
1733
+ };
1734
+ };
1735
+ /**
1736
+ * VariantsApi - functional programming interface
1737
+ * @export
1738
+ */
1739
+ export const VariantsApiFp = function (configuration) {
1740
+ const localVarAxiosParamCreator = VariantsApiAxiosParamCreator(configuration);
1741
+ return {
1742
+ /**
1743
+ * Updates the warehouse variant
1744
+ * @summary Update warehouse variant
1745
+ * @param {string} project Project unique identifier
1746
+ * @param {string} platformId The platform identifier
1747
+ * @param {string} variantId Variants unique identifier
1748
+ * @param {UpdateVariantRequest} updateVariantRequest Update a platform warehouse variant
1749
+ * @param {*} [options] Override http request option.
1750
+ * @throws {RequiredError}
1751
+ */
1752
+ updateVariant(project, platformId, variantId, updateVariantRequest, options) {
1753
+ return __awaiter(this, void 0, void 0, function* () {
1754
+ var _a, _b, _c;
1755
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateVariant(project, platformId, variantId, updateVariantRequest, options);
1756
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1757
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['VariantsApi.updateVariant']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1758
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1759
+ });
1760
+ },
1761
+ };
1762
+ };
1763
+ /**
1764
+ * VariantsApi - factory interface
1765
+ * @export
1766
+ */
1767
+ export const VariantsApiFactory = function (configuration, basePath, axios) {
1768
+ const localVarFp = VariantsApiFp(configuration);
1769
+ return {
1770
+ /**
1771
+ * Updates the warehouse variant
1772
+ * @summary Update warehouse variant
1773
+ * @param {VariantsApiUpdateVariantRequest} requestParameters Request parameters.
1774
+ * @param {*} [options] Override http request option.
1775
+ * @throws {RequiredError}
1776
+ */
1777
+ updateVariant(requestParameters, options) {
1778
+ return localVarFp.updateVariant(requestParameters.project, requestParameters.platformId, requestParameters.variantId, requestParameters.updateVariantRequest, options).then((request) => request(axios, basePath));
1779
+ },
1780
+ };
1781
+ };
1782
+ /**
1783
+ * VariantsApi - object-oriented interface
1784
+ * @export
1785
+ * @class VariantsApi
1786
+ * @extends {BaseAPI}
1787
+ */
1788
+ export class VariantsApi extends BaseAPI {
1789
+ /**
1790
+ * Updates the warehouse variant
1791
+ * @summary Update warehouse variant
1792
+ * @param {VariantsApiUpdateVariantRequest} requestParameters Request parameters.
1793
+ * @param {*} [options] Override http request option.
1794
+ * @throws {RequiredError}
1795
+ * @memberof VariantsApi
1796
+ */
1797
+ updateVariant(requestParameters, options) {
1798
+ return VariantsApiFp(this.configuration).updateVariant(requestParameters.project, requestParameters.platformId, requestParameters.variantId, requestParameters.updateVariantRequest, options).then((request) => request(this.axios, this.basePath));
1799
+ }
1348
1800
  }
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * Platform API
3
- * Manage Your podOS platform Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
3
+ * Manage Your podOS platform
4
+ *
5
+ * The version of the OpenAPI document: 0.10.0
4
6
  *
5
- * The version of the OpenAPI document: 0.8.0
6
- * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
package/dist/esm/base.js CHANGED
@@ -2,10 +2,10 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Platform API
5
- * Manage Your podOS platform Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
5
+ * Manage Your podOS platform
6
+ *
7
+ * The version of the OpenAPI document: 0.10.0
6
8
  *
7
- * The version of the OpenAPI document: 0.8.0
8
- * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * Platform API
3
- * Manage Your podOS platform Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
3
+ * Manage Your podOS platform
4
+ *
5
+ * The version of the OpenAPI document: 0.10.0
4
6
  *
5
- * The version of the OpenAPI document: 0.8.0
6
- * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
@@ -2,10 +2,10 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Platform API
5
- * Manage Your podOS platform Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
5
+ * Manage Your podOS platform
6
+ *
7
+ * The version of the OpenAPI document: 0.10.0
6
8
  *
7
- * The version of the OpenAPI document: 0.8.0
8
- * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * Platform API
3
- * Manage Your podOS platform Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
3
+ * Manage Your podOS platform
4
+ *
5
+ * The version of the OpenAPI document: 0.10.0
4
6
  *
5
- * The version of the OpenAPI document: 0.8.0
6
- * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
@@ -2,10 +2,10 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Platform API
5
- * Manage Your podOS platform Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
5
+ * Manage Your podOS platform
6
+ *
7
+ * The version of the OpenAPI document: 0.10.0
6
8
  *
7
- * The version of the OpenAPI document: 0.8.0
8
- * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * Platform API
3
- * Manage Your podOS platform Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
3
+ * Manage Your podOS platform
4
+ *
5
+ * The version of the OpenAPI document: 0.10.0
4
6
  *
5
- * The version of the OpenAPI document: 0.8.0
6
- * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
package/dist/esm/index.js CHANGED
@@ -2,10 +2,10 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Platform API
5
- * Manage Your podOS platform Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
5
+ * Manage Your podOS platform
6
+ *
7
+ * The version of the OpenAPI document: 0.10.0
6
8
  *
7
- * The version of the OpenAPI document: 0.8.0
8
- * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * Platform API
3
- * Manage Your podOS platform Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
3
+ * Manage Your podOS platform
4
+ *
5
+ * The version of the OpenAPI document: 0.10.0
4
6
  *
5
- * The version of the OpenAPI document: 0.8.0
6
- * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
package/dist/index.js CHANGED
@@ -3,10 +3,10 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Platform API
6
- * Manage Your podOS platform Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ * Manage Your podOS platform
7
+ *
8
+ * The version of the OpenAPI document: 0.10.0
7
9
  *
8
- * The version of the OpenAPI document: 0.8.0
9
- * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
12
  * https://openapi-generator.tech
package/index.ts CHANGED
@@ -2,10 +2,10 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Platform API
5
- * Manage Your podOS platform Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
5
+ * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.8.0
8
- * Contact: hello@teemill.com
7
+ * The version of the OpenAPI document: 0.10.0
8
+ *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech