@teemill/platform 0.9.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/api.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.9.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
@@ -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.PlatformApi = exports.PlatformApiFactory = exports.PlatformApiFp = exports.PlatformApiAxiosParamCreator = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.OrderStatus = void 0;
25
+ exports.VariantsApi = exports.VariantsApiFactory = exports.VariantsApiFp = exports.VariantsApiAxiosParamCreator = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.PlatformApi = exports.PlatformApiFactory = exports.PlatformApiFp = exports.PlatformApiAxiosParamCreator = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.VariantAttributeThumbnailTypeEnum = exports.ProductAttributeValuesInnerThumbnailTypeEnum = exports.OutputFileFormatEnum = exports.OutputPositionEnum = exports.OrderStatus = void 0;
26
26
  const axios_1 = require("axios");
27
27
  // Some imports not used depending on template conditions
28
28
  // @ts-ignore
@@ -41,6 +41,34 @@ 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
+ exports.ProductAttributeValuesInnerThumbnailTypeEnum = {
63
+ Text: 'text',
64
+ Color: 'color',
65
+ Image: 'image'
66
+ };
67
+ exports.VariantAttributeThumbnailTypeEnum = {
68
+ Text: 'text',
69
+ Color: 'color',
70
+ Image: 'image'
71
+ };
44
72
  /**
45
73
  * OrdersApi - axios parameter creator
46
74
  * @export
@@ -1009,6 +1037,104 @@ const PlatformApiAxiosParamCreator = function (configuration) {
1009
1037
  options: localVarRequestOptions,
1010
1038
  };
1011
1039
  }),
1040
+ /**
1041
+ * Updates the warehouse product and its variants
1042
+ * @summary Update warehouse product
1043
+ * @param {string} project Project unique identifier
1044
+ * @param {string} platformId The platform identifier
1045
+ * @param {string} productId Products unique identifier
1046
+ * @param {UpdateProductRequest} updateProductRequest Update a platform warehouse product
1047
+ * @param {*} [options] Override http request option.
1048
+ * @throws {RequiredError}
1049
+ */
1050
+ 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 = {}) {
1051
+ // verify required parameter 'project' is not null or undefined
1052
+ (0, common_1.assertParamExists)('updateProduct', 'project', project);
1053
+ // verify required parameter 'platformId' is not null or undefined
1054
+ (0, common_1.assertParamExists)('updateProduct', 'platformId', platformId);
1055
+ // verify required parameter 'productId' is not null or undefined
1056
+ (0, common_1.assertParamExists)('updateProduct', 'productId', productId);
1057
+ // verify required parameter 'updateProductRequest' is not null or undefined
1058
+ (0, common_1.assertParamExists)('updateProduct', 'updateProductRequest', updateProductRequest);
1059
+ const localVarPath = `/v1/platform/{platformId}/warehouse/products/{productId}`
1060
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
1061
+ .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
1062
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1063
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1064
+ let baseOptions;
1065
+ if (configuration) {
1066
+ baseOptions = configuration.baseOptions;
1067
+ }
1068
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
1069
+ const localVarHeaderParameter = {};
1070
+ const localVarQueryParameter = {};
1071
+ // authentication session-oauth required
1072
+ // oauth required
1073
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
1074
+ // authentication api-key required
1075
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1076
+ if (project !== undefined) {
1077
+ localVarQueryParameter['project'] = project;
1078
+ }
1079
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1080
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1081
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1082
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1083
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateProductRequest, localVarRequestOptions, configuration);
1084
+ return {
1085
+ url: (0, common_1.toPathString)(localVarUrlObj),
1086
+ options: localVarRequestOptions,
1087
+ };
1088
+ }),
1089
+ /**
1090
+ * Updates the warehouse variant
1091
+ * @summary Update warehouse variant
1092
+ * @param {string} project Project unique identifier
1093
+ * @param {string} platformId The platform identifier
1094
+ * @param {string} variantId Variants unique identifier
1095
+ * @param {UpdateVariantRequest} updateVariantRequest Update a platform warehouse variant
1096
+ * @param {*} [options] Override http request option.
1097
+ * @throws {RequiredError}
1098
+ */
1099
+ 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 = {}) {
1100
+ // verify required parameter 'project' is not null or undefined
1101
+ (0, common_1.assertParamExists)('updateVariant', 'project', project);
1102
+ // verify required parameter 'platformId' is not null or undefined
1103
+ (0, common_1.assertParamExists)('updateVariant', 'platformId', platformId);
1104
+ // verify required parameter 'variantId' is not null or undefined
1105
+ (0, common_1.assertParamExists)('updateVariant', 'variantId', variantId);
1106
+ // verify required parameter 'updateVariantRequest' is not null or undefined
1107
+ (0, common_1.assertParamExists)('updateVariant', 'updateVariantRequest', updateVariantRequest);
1108
+ const localVarPath = `/v1/platform/{platformId}/warehouse/variants/{variantId}`
1109
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
1110
+ .replace(`{${"variantId"}}`, encodeURIComponent(String(variantId)));
1111
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1112
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1113
+ let baseOptions;
1114
+ if (configuration) {
1115
+ baseOptions = configuration.baseOptions;
1116
+ }
1117
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
1118
+ const localVarHeaderParameter = {};
1119
+ const localVarQueryParameter = {};
1120
+ // authentication session-oauth required
1121
+ // oauth required
1122
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
1123
+ // authentication api-key required
1124
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1125
+ if (project !== undefined) {
1126
+ localVarQueryParameter['project'] = project;
1127
+ }
1128
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1129
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1130
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1131
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1132
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateVariantRequest, localVarRequestOptions, configuration);
1133
+ return {
1134
+ url: (0, common_1.toPathString)(localVarUrlObj),
1135
+ options: localVarRequestOptions,
1136
+ };
1137
+ }),
1012
1138
  };
1013
1139
  };
1014
1140
  exports.PlatformApiAxiosParamCreator = PlatformApiAxiosParamCreator;
@@ -1167,6 +1293,44 @@ const PlatformApiFp = function (configuration) {
1167
1293
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1168
1294
  });
1169
1295
  },
1296
+ /**
1297
+ * Updates the warehouse product and its variants
1298
+ * @summary Update warehouse product
1299
+ * @param {string} project Project unique identifier
1300
+ * @param {string} platformId The platform identifier
1301
+ * @param {string} productId Products unique identifier
1302
+ * @param {UpdateProductRequest} updateProductRequest Update a platform warehouse product
1303
+ * @param {*} [options] Override http request option.
1304
+ * @throws {RequiredError}
1305
+ */
1306
+ updateProduct(project, platformId, productId, updateProductRequest, options) {
1307
+ return __awaiter(this, void 0, void 0, function* () {
1308
+ var _a, _b, _c;
1309
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateProduct(project, platformId, productId, updateProductRequest, options);
1310
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1311
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PlatformApi.updateProduct']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1312
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1313
+ });
1314
+ },
1315
+ /**
1316
+ * Updates the warehouse variant
1317
+ * @summary Update warehouse variant
1318
+ * @param {string} project Project unique identifier
1319
+ * @param {string} platformId The platform identifier
1320
+ * @param {string} variantId Variants unique identifier
1321
+ * @param {UpdateVariantRequest} updateVariantRequest Update a platform warehouse variant
1322
+ * @param {*} [options] Override http request option.
1323
+ * @throws {RequiredError}
1324
+ */
1325
+ updateVariant(project, platformId, variantId, updateVariantRequest, options) {
1326
+ return __awaiter(this, void 0, void 0, function* () {
1327
+ var _a, _b, _c;
1328
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateVariant(project, platformId, variantId, updateVariantRequest, options);
1329
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1330
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PlatformApi.updateVariant']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1331
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1332
+ });
1333
+ },
1170
1334
  };
1171
1335
  };
1172
1336
  exports.PlatformApiFp = PlatformApiFp;
@@ -1257,6 +1421,26 @@ const PlatformApiFactory = function (configuration, basePath, axios) {
1257
1421
  updatePlatform(requestParameters, options) {
1258
1422
  return localVarFp.updatePlatform(requestParameters.project, requestParameters.updatePlatformRequest, options).then((request) => request(axios, basePath));
1259
1423
  },
1424
+ /**
1425
+ * Updates the warehouse product and its variants
1426
+ * @summary Update warehouse product
1427
+ * @param {PlatformApiUpdateProductRequest} requestParameters Request parameters.
1428
+ * @param {*} [options] Override http request option.
1429
+ * @throws {RequiredError}
1430
+ */
1431
+ updateProduct(requestParameters, options) {
1432
+ return localVarFp.updateProduct(requestParameters.project, requestParameters.platformId, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(axios, basePath));
1433
+ },
1434
+ /**
1435
+ * Updates the warehouse variant
1436
+ * @summary Update warehouse variant
1437
+ * @param {PlatformApiUpdateVariantRequest} requestParameters Request parameters.
1438
+ * @param {*} [options] Override http request option.
1439
+ * @throws {RequiredError}
1440
+ */
1441
+ updateVariant(requestParameters, options) {
1442
+ return localVarFp.updateVariant(requestParameters.project, requestParameters.platformId, requestParameters.variantId, requestParameters.updateVariantRequest, options).then((request) => request(axios, basePath));
1443
+ },
1260
1444
  };
1261
1445
  };
1262
1446
  exports.PlatformApiFactory = PlatformApiFactory;
@@ -1355,5 +1539,281 @@ class PlatformApi extends base_1.BaseAPI {
1355
1539
  updatePlatform(requestParameters, options) {
1356
1540
  return (0, exports.PlatformApiFp)(this.configuration).updatePlatform(requestParameters.project, requestParameters.updatePlatformRequest, options).then((request) => request(this.axios, this.basePath));
1357
1541
  }
1542
+ /**
1543
+ * Updates the warehouse product and its variants
1544
+ * @summary Update warehouse product
1545
+ * @param {PlatformApiUpdateProductRequest} requestParameters Request parameters.
1546
+ * @param {*} [options] Override http request option.
1547
+ * @throws {RequiredError}
1548
+ * @memberof PlatformApi
1549
+ */
1550
+ updateProduct(requestParameters, options) {
1551
+ return (0, exports.PlatformApiFp)(this.configuration).updateProduct(requestParameters.project, requestParameters.platformId, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(this.axios, this.basePath));
1552
+ }
1553
+ /**
1554
+ * Updates the warehouse variant
1555
+ * @summary Update warehouse variant
1556
+ * @param {PlatformApiUpdateVariantRequest} requestParameters Request parameters.
1557
+ * @param {*} [options] Override http request option.
1558
+ * @throws {RequiredError}
1559
+ * @memberof PlatformApi
1560
+ */
1561
+ updateVariant(requestParameters, options) {
1562
+ return (0, exports.PlatformApiFp)(this.configuration).updateVariant(requestParameters.project, requestParameters.platformId, requestParameters.variantId, requestParameters.updateVariantRequest, options).then((request) => request(this.axios, this.basePath));
1563
+ }
1358
1564
  }
1359
1565
  exports.PlatformApi = PlatformApi;
1566
+ /**
1567
+ * ProductsApi - axios parameter creator
1568
+ * @export
1569
+ */
1570
+ const ProductsApiAxiosParamCreator = function (configuration) {
1571
+ return {
1572
+ /**
1573
+ * Updates the warehouse product and its variants
1574
+ * @summary Update warehouse product
1575
+ * @param {string} project Project unique identifier
1576
+ * @param {string} platformId The platform identifier
1577
+ * @param {string} productId Products unique identifier
1578
+ * @param {UpdateProductRequest} updateProductRequest Update a platform warehouse product
1579
+ * @param {*} [options] Override http request option.
1580
+ * @throws {RequiredError}
1581
+ */
1582
+ 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 = {}) {
1583
+ // verify required parameter 'project' is not null or undefined
1584
+ (0, common_1.assertParamExists)('updateProduct', 'project', project);
1585
+ // verify required parameter 'platformId' is not null or undefined
1586
+ (0, common_1.assertParamExists)('updateProduct', 'platformId', platformId);
1587
+ // verify required parameter 'productId' is not null or undefined
1588
+ (0, common_1.assertParamExists)('updateProduct', 'productId', productId);
1589
+ // verify required parameter 'updateProductRequest' is not null or undefined
1590
+ (0, common_1.assertParamExists)('updateProduct', 'updateProductRequest', updateProductRequest);
1591
+ const localVarPath = `/v1/platform/{platformId}/warehouse/products/{productId}`
1592
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
1593
+ .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
1594
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1595
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1596
+ let baseOptions;
1597
+ if (configuration) {
1598
+ baseOptions = configuration.baseOptions;
1599
+ }
1600
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
1601
+ const localVarHeaderParameter = {};
1602
+ const localVarQueryParameter = {};
1603
+ // authentication session-oauth required
1604
+ // oauth required
1605
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
1606
+ // authentication api-key required
1607
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1608
+ if (project !== undefined) {
1609
+ localVarQueryParameter['project'] = project;
1610
+ }
1611
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1612
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1613
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1614
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1615
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateProductRequest, localVarRequestOptions, configuration);
1616
+ return {
1617
+ url: (0, common_1.toPathString)(localVarUrlObj),
1618
+ options: localVarRequestOptions,
1619
+ };
1620
+ }),
1621
+ };
1622
+ };
1623
+ exports.ProductsApiAxiosParamCreator = ProductsApiAxiosParamCreator;
1624
+ /**
1625
+ * ProductsApi - functional programming interface
1626
+ * @export
1627
+ */
1628
+ const ProductsApiFp = function (configuration) {
1629
+ const localVarAxiosParamCreator = (0, exports.ProductsApiAxiosParamCreator)(configuration);
1630
+ return {
1631
+ /**
1632
+ * Updates the warehouse product and its variants
1633
+ * @summary Update warehouse product
1634
+ * @param {string} project Project unique identifier
1635
+ * @param {string} platformId The platform identifier
1636
+ * @param {string} productId Products unique identifier
1637
+ * @param {UpdateProductRequest} updateProductRequest Update a platform warehouse product
1638
+ * @param {*} [options] Override http request option.
1639
+ * @throws {RequiredError}
1640
+ */
1641
+ updateProduct(project, platformId, productId, updateProductRequest, options) {
1642
+ return __awaiter(this, void 0, void 0, function* () {
1643
+ var _a, _b, _c;
1644
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateProduct(project, platformId, productId, updateProductRequest, options);
1645
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1646
+ 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;
1647
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1648
+ });
1649
+ },
1650
+ };
1651
+ };
1652
+ exports.ProductsApiFp = ProductsApiFp;
1653
+ /**
1654
+ * ProductsApi - factory interface
1655
+ * @export
1656
+ */
1657
+ const ProductsApiFactory = function (configuration, basePath, axios) {
1658
+ const localVarFp = (0, exports.ProductsApiFp)(configuration);
1659
+ return {
1660
+ /**
1661
+ * Updates the warehouse product and its variants
1662
+ * @summary Update warehouse product
1663
+ * @param {ProductsApiUpdateProductRequest} requestParameters Request parameters.
1664
+ * @param {*} [options] Override http request option.
1665
+ * @throws {RequiredError}
1666
+ */
1667
+ updateProduct(requestParameters, options) {
1668
+ return localVarFp.updateProduct(requestParameters.project, requestParameters.platformId, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(axios, basePath));
1669
+ },
1670
+ };
1671
+ };
1672
+ exports.ProductsApiFactory = ProductsApiFactory;
1673
+ /**
1674
+ * ProductsApi - object-oriented interface
1675
+ * @export
1676
+ * @class ProductsApi
1677
+ * @extends {BaseAPI}
1678
+ */
1679
+ class ProductsApi extends base_1.BaseAPI {
1680
+ /**
1681
+ * Updates the warehouse product and its variants
1682
+ * @summary Update warehouse product
1683
+ * @param {ProductsApiUpdateProductRequest} requestParameters Request parameters.
1684
+ * @param {*} [options] Override http request option.
1685
+ * @throws {RequiredError}
1686
+ * @memberof ProductsApi
1687
+ */
1688
+ updateProduct(requestParameters, options) {
1689
+ return (0, exports.ProductsApiFp)(this.configuration).updateProduct(requestParameters.project, requestParameters.platformId, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(this.axios, this.basePath));
1690
+ }
1691
+ }
1692
+ exports.ProductsApi = ProductsApi;
1693
+ /**
1694
+ * VariantsApi - axios parameter creator
1695
+ * @export
1696
+ */
1697
+ const VariantsApiAxiosParamCreator = function (configuration) {
1698
+ return {
1699
+ /**
1700
+ * Updates the warehouse variant
1701
+ * @summary Update warehouse variant
1702
+ * @param {string} project Project unique identifier
1703
+ * @param {string} platformId The platform identifier
1704
+ * @param {string} variantId Variants unique identifier
1705
+ * @param {UpdateVariantRequest} updateVariantRequest Update a platform warehouse variant
1706
+ * @param {*} [options] Override http request option.
1707
+ * @throws {RequiredError}
1708
+ */
1709
+ 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 = {}) {
1710
+ // verify required parameter 'project' is not null or undefined
1711
+ (0, common_1.assertParamExists)('updateVariant', 'project', project);
1712
+ // verify required parameter 'platformId' is not null or undefined
1713
+ (0, common_1.assertParamExists)('updateVariant', 'platformId', platformId);
1714
+ // verify required parameter 'variantId' is not null or undefined
1715
+ (0, common_1.assertParamExists)('updateVariant', 'variantId', variantId);
1716
+ // verify required parameter 'updateVariantRequest' is not null or undefined
1717
+ (0, common_1.assertParamExists)('updateVariant', 'updateVariantRequest', updateVariantRequest);
1718
+ const localVarPath = `/v1/platform/{platformId}/warehouse/variants/{variantId}`
1719
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
1720
+ .replace(`{${"variantId"}}`, encodeURIComponent(String(variantId)));
1721
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1722
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1723
+ let baseOptions;
1724
+ if (configuration) {
1725
+ baseOptions = configuration.baseOptions;
1726
+ }
1727
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
1728
+ const localVarHeaderParameter = {};
1729
+ const localVarQueryParameter = {};
1730
+ // authentication session-oauth required
1731
+ // oauth required
1732
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
1733
+ // authentication api-key required
1734
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1735
+ if (project !== undefined) {
1736
+ localVarQueryParameter['project'] = project;
1737
+ }
1738
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1739
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1740
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1741
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1742
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateVariantRequest, localVarRequestOptions, configuration);
1743
+ return {
1744
+ url: (0, common_1.toPathString)(localVarUrlObj),
1745
+ options: localVarRequestOptions,
1746
+ };
1747
+ }),
1748
+ };
1749
+ };
1750
+ exports.VariantsApiAxiosParamCreator = VariantsApiAxiosParamCreator;
1751
+ /**
1752
+ * VariantsApi - functional programming interface
1753
+ * @export
1754
+ */
1755
+ const VariantsApiFp = function (configuration) {
1756
+ const localVarAxiosParamCreator = (0, exports.VariantsApiAxiosParamCreator)(configuration);
1757
+ return {
1758
+ /**
1759
+ * Updates the warehouse variant
1760
+ * @summary Update warehouse variant
1761
+ * @param {string} project Project unique identifier
1762
+ * @param {string} platformId The platform identifier
1763
+ * @param {string} variantId Variants unique identifier
1764
+ * @param {UpdateVariantRequest} updateVariantRequest Update a platform warehouse variant
1765
+ * @param {*} [options] Override http request option.
1766
+ * @throws {RequiredError}
1767
+ */
1768
+ updateVariant(project, platformId, variantId, updateVariantRequest, options) {
1769
+ return __awaiter(this, void 0, void 0, function* () {
1770
+ var _a, _b, _c;
1771
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateVariant(project, platformId, variantId, updateVariantRequest, options);
1772
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1773
+ 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;
1774
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1775
+ });
1776
+ },
1777
+ };
1778
+ };
1779
+ exports.VariantsApiFp = VariantsApiFp;
1780
+ /**
1781
+ * VariantsApi - factory interface
1782
+ * @export
1783
+ */
1784
+ const VariantsApiFactory = function (configuration, basePath, axios) {
1785
+ const localVarFp = (0, exports.VariantsApiFp)(configuration);
1786
+ return {
1787
+ /**
1788
+ * Updates the warehouse variant
1789
+ * @summary Update warehouse variant
1790
+ * @param {VariantsApiUpdateVariantRequest} requestParameters Request parameters.
1791
+ * @param {*} [options] Override http request option.
1792
+ * @throws {RequiredError}
1793
+ */
1794
+ updateVariant(requestParameters, options) {
1795
+ return localVarFp.updateVariant(requestParameters.project, requestParameters.platformId, requestParameters.variantId, requestParameters.updateVariantRequest, options).then((request) => request(axios, basePath));
1796
+ },
1797
+ };
1798
+ };
1799
+ exports.VariantsApiFactory = VariantsApiFactory;
1800
+ /**
1801
+ * VariantsApi - object-oriented interface
1802
+ * @export
1803
+ * @class VariantsApi
1804
+ * @extends {BaseAPI}
1805
+ */
1806
+ class VariantsApi extends base_1.BaseAPI {
1807
+ /**
1808
+ * Updates the warehouse variant
1809
+ * @summary Update warehouse variant
1810
+ * @param {VariantsApiUpdateVariantRequest} requestParameters Request parameters.
1811
+ * @param {*} [options] Override http request option.
1812
+ * @throws {RequiredError}
1813
+ * @memberof VariantsApi
1814
+ */
1815
+ updateVariant(requestParameters, options) {
1816
+ return (0, exports.VariantsApiFp)(this.configuration).updateVariant(requestParameters.project, requestParameters.platformId, requestParameters.variantId, requestParameters.updateVariantRequest, options).then((request) => request(this.axios, this.basePath));
1817
+ }
1818
+ }
1819
+ exports.VariantsApi = VariantsApi;
package/dist/base.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.9.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/base.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.9.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/dist/common.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.9.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/common.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.9.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
@@ -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.9.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
@@ -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.9.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