@teemill/platform 0.14.4 → 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/README.md +2 -2
- package/api.ts +26 -1163
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +125 -1104
- package/dist/api.js +2 -284
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +125 -1104
- package/dist/esm/api.js +1 -275
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- 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.
|
|
7
|
+
* The version of the OpenAPI document: 0.15.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -38,37 +38,9 @@ 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
41
|
export const PaymentAccountMethodEnum = {
|
|
60
42
|
Stripe: 'stripe'
|
|
61
43
|
};
|
|
62
|
-
export const ProductAttributeValuesInnerThumbnailTypeEnum = {
|
|
63
|
-
Text: 'text',
|
|
64
|
-
Color: 'color',
|
|
65
|
-
Image: 'image'
|
|
66
|
-
};
|
|
67
|
-
export const VariantAttributeThumbnailTypeEnum = {
|
|
68
|
-
Text: 'text',
|
|
69
|
-
Color: 'color',
|
|
70
|
-
Image: 'image'
|
|
71
|
-
};
|
|
72
44
|
/**
|
|
73
45
|
* CustomersApi - axios parameter creator
|
|
74
46
|
* @export
|
|
@@ -1463,249 +1435,3 @@ export class PlatformApi extends BaseAPI {
|
|
|
1463
1435
|
return PlatformApiFp(this.configuration).updatePlatform(requestParameters.project, requestParameters.updatePlatformRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1464
1436
|
}
|
|
1465
1437
|
}
|
|
1466
|
-
/**
|
|
1467
|
-
* ProductsApi - axios parameter creator
|
|
1468
|
-
* @export
|
|
1469
|
-
*/
|
|
1470
|
-
export const ProductsApiAxiosParamCreator = function (configuration) {
|
|
1471
|
-
return {
|
|
1472
|
-
/**
|
|
1473
|
-
* Updates the warehouse product and its variants
|
|
1474
|
-
* @summary Update warehouse product
|
|
1475
|
-
* @param {string} project Project unique identifier
|
|
1476
|
-
* @param {string} platformId The platform identifier
|
|
1477
|
-
* @param {string} productId Products unique identifier
|
|
1478
|
-
* @param {UpdateProductRequest} updateProductRequest Update a platform warehouse product
|
|
1479
|
-
* @param {*} [options] Override http request option.
|
|
1480
|
-
* @throws {RequiredError}
|
|
1481
|
-
*/
|
|
1482
|
-
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 = {}) {
|
|
1483
|
-
// verify required parameter 'project' is not null or undefined
|
|
1484
|
-
assertParamExists('updateProduct', 'project', project);
|
|
1485
|
-
// verify required parameter 'platformId' is not null or undefined
|
|
1486
|
-
assertParamExists('updateProduct', 'platformId', platformId);
|
|
1487
|
-
// verify required parameter 'productId' is not null or undefined
|
|
1488
|
-
assertParamExists('updateProduct', 'productId', productId);
|
|
1489
|
-
// verify required parameter 'updateProductRequest' is not null or undefined
|
|
1490
|
-
assertParamExists('updateProduct', 'updateProductRequest', updateProductRequest);
|
|
1491
|
-
const localVarPath = `/v1/platform/{platformId}/warehouse/products/{productId}`
|
|
1492
|
-
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
1493
|
-
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
1494
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1495
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1496
|
-
let baseOptions;
|
|
1497
|
-
if (configuration) {
|
|
1498
|
-
baseOptions = configuration.baseOptions;
|
|
1499
|
-
}
|
|
1500
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
1501
|
-
const localVarHeaderParameter = {};
|
|
1502
|
-
const localVarQueryParameter = {};
|
|
1503
|
-
// authentication session-oauth required
|
|
1504
|
-
// oauth required
|
|
1505
|
-
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1506
|
-
// authentication api-key required
|
|
1507
|
-
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
1508
|
-
if (project !== undefined) {
|
|
1509
|
-
localVarQueryParameter['project'] = project;
|
|
1510
|
-
}
|
|
1511
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1512
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1513
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1514
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1515
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateProductRequest, localVarRequestOptions, configuration);
|
|
1516
|
-
return {
|
|
1517
|
-
url: toPathString(localVarUrlObj),
|
|
1518
|
-
options: localVarRequestOptions,
|
|
1519
|
-
};
|
|
1520
|
-
}),
|
|
1521
|
-
};
|
|
1522
|
-
};
|
|
1523
|
-
/**
|
|
1524
|
-
* ProductsApi - functional programming interface
|
|
1525
|
-
* @export
|
|
1526
|
-
*/
|
|
1527
|
-
export const ProductsApiFp = function (configuration) {
|
|
1528
|
-
const localVarAxiosParamCreator = ProductsApiAxiosParamCreator(configuration);
|
|
1529
|
-
return {
|
|
1530
|
-
/**
|
|
1531
|
-
* Updates the warehouse product and its variants
|
|
1532
|
-
* @summary Update warehouse product
|
|
1533
|
-
* @param {string} project Project unique identifier
|
|
1534
|
-
* @param {string} platformId The platform identifier
|
|
1535
|
-
* @param {string} productId Products unique identifier
|
|
1536
|
-
* @param {UpdateProductRequest} updateProductRequest Update a platform warehouse product
|
|
1537
|
-
* @param {*} [options] Override http request option.
|
|
1538
|
-
* @throws {RequiredError}
|
|
1539
|
-
*/
|
|
1540
|
-
updateProduct(project, platformId, productId, updateProductRequest, options) {
|
|
1541
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1542
|
-
var _a, _b, _c;
|
|
1543
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateProduct(project, platformId, productId, updateProductRequest, options);
|
|
1544
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1545
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProductsApi.updateProduct']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1546
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1547
|
-
});
|
|
1548
|
-
},
|
|
1549
|
-
};
|
|
1550
|
-
};
|
|
1551
|
-
/**
|
|
1552
|
-
* ProductsApi - factory interface
|
|
1553
|
-
* @export
|
|
1554
|
-
*/
|
|
1555
|
-
export const ProductsApiFactory = function (configuration, basePath, axios) {
|
|
1556
|
-
const localVarFp = ProductsApiFp(configuration);
|
|
1557
|
-
return {
|
|
1558
|
-
/**
|
|
1559
|
-
* Updates the warehouse product and its variants
|
|
1560
|
-
* @summary Update warehouse product
|
|
1561
|
-
* @param {ProductsApiUpdateProductRequest} requestParameters Request parameters.
|
|
1562
|
-
* @param {*} [options] Override http request option.
|
|
1563
|
-
* @throws {RequiredError}
|
|
1564
|
-
*/
|
|
1565
|
-
updateProduct(requestParameters, options) {
|
|
1566
|
-
return localVarFp.updateProduct(requestParameters.project, requestParameters.platformId, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(axios, basePath));
|
|
1567
|
-
},
|
|
1568
|
-
};
|
|
1569
|
-
};
|
|
1570
|
-
/**
|
|
1571
|
-
* ProductsApi - object-oriented interface
|
|
1572
|
-
* @export
|
|
1573
|
-
* @class ProductsApi
|
|
1574
|
-
* @extends {BaseAPI}
|
|
1575
|
-
*/
|
|
1576
|
-
export class ProductsApi extends BaseAPI {
|
|
1577
|
-
/**
|
|
1578
|
-
* Updates the warehouse product and its variants
|
|
1579
|
-
* @summary Update warehouse product
|
|
1580
|
-
* @param {ProductsApiUpdateProductRequest} requestParameters Request parameters.
|
|
1581
|
-
* @param {*} [options] Override http request option.
|
|
1582
|
-
* @throws {RequiredError}
|
|
1583
|
-
* @memberof ProductsApi
|
|
1584
|
-
*/
|
|
1585
|
-
updateProduct(requestParameters, options) {
|
|
1586
|
-
return ProductsApiFp(this.configuration).updateProduct(requestParameters.project, requestParameters.platformId, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1587
|
-
}
|
|
1588
|
-
}
|
|
1589
|
-
/**
|
|
1590
|
-
* VariantsApi - axios parameter creator
|
|
1591
|
-
* @export
|
|
1592
|
-
*/
|
|
1593
|
-
export const VariantsApiAxiosParamCreator = function (configuration) {
|
|
1594
|
-
return {
|
|
1595
|
-
/**
|
|
1596
|
-
* Updates the warehouse variant
|
|
1597
|
-
* @summary Update warehouse variant
|
|
1598
|
-
* @param {string} project Project unique identifier
|
|
1599
|
-
* @param {string} platformId The platform identifier
|
|
1600
|
-
* @param {string} variantId Variants unique identifier
|
|
1601
|
-
* @param {UpdateVariantRequest} updateVariantRequest Update a platform warehouse variant
|
|
1602
|
-
* @param {*} [options] Override http request option.
|
|
1603
|
-
* @throws {RequiredError}
|
|
1604
|
-
*/
|
|
1605
|
-
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 = {}) {
|
|
1606
|
-
// verify required parameter 'project' is not null or undefined
|
|
1607
|
-
assertParamExists('updateVariant', 'project', project);
|
|
1608
|
-
// verify required parameter 'platformId' is not null or undefined
|
|
1609
|
-
assertParamExists('updateVariant', 'platformId', platformId);
|
|
1610
|
-
// verify required parameter 'variantId' is not null or undefined
|
|
1611
|
-
assertParamExists('updateVariant', 'variantId', variantId);
|
|
1612
|
-
// verify required parameter 'updateVariantRequest' is not null or undefined
|
|
1613
|
-
assertParamExists('updateVariant', 'updateVariantRequest', updateVariantRequest);
|
|
1614
|
-
const localVarPath = `/v1/platform/{platformId}/warehouse/variants/{variantId}`
|
|
1615
|
-
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
1616
|
-
.replace(`{${"variantId"}}`, encodeURIComponent(String(variantId)));
|
|
1617
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1618
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1619
|
-
let baseOptions;
|
|
1620
|
-
if (configuration) {
|
|
1621
|
-
baseOptions = configuration.baseOptions;
|
|
1622
|
-
}
|
|
1623
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
1624
|
-
const localVarHeaderParameter = {};
|
|
1625
|
-
const localVarQueryParameter = {};
|
|
1626
|
-
// authentication session-oauth required
|
|
1627
|
-
// oauth required
|
|
1628
|
-
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1629
|
-
// authentication api-key required
|
|
1630
|
-
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
1631
|
-
if (project !== undefined) {
|
|
1632
|
-
localVarQueryParameter['project'] = project;
|
|
1633
|
-
}
|
|
1634
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1635
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1636
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1637
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1638
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateVariantRequest, localVarRequestOptions, configuration);
|
|
1639
|
-
return {
|
|
1640
|
-
url: toPathString(localVarUrlObj),
|
|
1641
|
-
options: localVarRequestOptions,
|
|
1642
|
-
};
|
|
1643
|
-
}),
|
|
1644
|
-
};
|
|
1645
|
-
};
|
|
1646
|
-
/**
|
|
1647
|
-
* VariantsApi - functional programming interface
|
|
1648
|
-
* @export
|
|
1649
|
-
*/
|
|
1650
|
-
export const VariantsApiFp = function (configuration) {
|
|
1651
|
-
const localVarAxiosParamCreator = VariantsApiAxiosParamCreator(configuration);
|
|
1652
|
-
return {
|
|
1653
|
-
/**
|
|
1654
|
-
* Updates the warehouse variant
|
|
1655
|
-
* @summary Update warehouse variant
|
|
1656
|
-
* @param {string} project Project unique identifier
|
|
1657
|
-
* @param {string} platformId The platform identifier
|
|
1658
|
-
* @param {string} variantId Variants unique identifier
|
|
1659
|
-
* @param {UpdateVariantRequest} updateVariantRequest Update a platform warehouse variant
|
|
1660
|
-
* @param {*} [options] Override http request option.
|
|
1661
|
-
* @throws {RequiredError}
|
|
1662
|
-
*/
|
|
1663
|
-
updateVariant(project, platformId, variantId, updateVariantRequest, options) {
|
|
1664
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1665
|
-
var _a, _b, _c;
|
|
1666
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateVariant(project, platformId, variantId, updateVariantRequest, options);
|
|
1667
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1668
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['VariantsApi.updateVariant']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1669
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1670
|
-
});
|
|
1671
|
-
},
|
|
1672
|
-
};
|
|
1673
|
-
};
|
|
1674
|
-
/**
|
|
1675
|
-
* VariantsApi - factory interface
|
|
1676
|
-
* @export
|
|
1677
|
-
*/
|
|
1678
|
-
export const VariantsApiFactory = function (configuration, basePath, axios) {
|
|
1679
|
-
const localVarFp = VariantsApiFp(configuration);
|
|
1680
|
-
return {
|
|
1681
|
-
/**
|
|
1682
|
-
* Updates the warehouse variant
|
|
1683
|
-
* @summary Update warehouse variant
|
|
1684
|
-
* @param {VariantsApiUpdateVariantRequest} requestParameters Request parameters.
|
|
1685
|
-
* @param {*} [options] Override http request option.
|
|
1686
|
-
* @throws {RequiredError}
|
|
1687
|
-
*/
|
|
1688
|
-
updateVariant(requestParameters, options) {
|
|
1689
|
-
return localVarFp.updateVariant(requestParameters.project, requestParameters.platformId, requestParameters.variantId, requestParameters.updateVariantRequest, options).then((request) => request(axios, basePath));
|
|
1690
|
-
},
|
|
1691
|
-
};
|
|
1692
|
-
};
|
|
1693
|
-
/**
|
|
1694
|
-
* VariantsApi - object-oriented interface
|
|
1695
|
-
* @export
|
|
1696
|
-
* @class VariantsApi
|
|
1697
|
-
* @extends {BaseAPI}
|
|
1698
|
-
*/
|
|
1699
|
-
export class VariantsApi extends BaseAPI {
|
|
1700
|
-
/**
|
|
1701
|
-
* Updates the warehouse variant
|
|
1702
|
-
* @summary Update warehouse variant
|
|
1703
|
-
* @param {VariantsApiUpdateVariantRequest} requestParameters Request parameters.
|
|
1704
|
-
* @param {*} [options] Override http request option.
|
|
1705
|
-
* @throws {RequiredError}
|
|
1706
|
-
* @memberof VariantsApi
|
|
1707
|
-
*/
|
|
1708
|
-
updateVariant(requestParameters, options) {
|
|
1709
|
-
return VariantsApiFp(this.configuration).updateVariant(requestParameters.project, requestParameters.platformId, requestParameters.variantId, requestParameters.updateVariantRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1710
|
-
}
|
|
1711
|
-
}
|
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED
package/dist/esm/common.d.ts
CHANGED
package/dist/esm/common.js
CHANGED
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/index.ts
CHANGED