@hmxlabs/dax-client 2.1.0 → 2.3.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/build/index.d.ts +2 -2
- package/build/index.esm.js +135 -1
- package/build/index.esm.js.map +1 -1
- package/build/index.js +135 -0
- package/build/index.js.map +1 -1
- package/build/services/dax-api-service.d.ts +2 -0
- package/build/services/generated/dax-api/Api.d.ts +13 -0
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -1108,6 +1108,19 @@ var Api = /** @class */ (function (_super) {
|
|
|
1108
1108
|
if (params === void 0) { params = {}; }
|
|
1109
1109
|
return _this.request(__assign({ path: "/api/v1/listing-detail", method: "GET", query: query, format: "json" }, params));
|
|
1110
1110
|
};
|
|
1111
|
+
/**
|
|
1112
|
+
* No description
|
|
1113
|
+
*
|
|
1114
|
+
* @tags ListingDetail
|
|
1115
|
+
* @name ListingDetailFindAllForSeller
|
|
1116
|
+
* @request GET:/api/v1/seller/listing-detail
|
|
1117
|
+
* @secure
|
|
1118
|
+
* @response `200` `object`
|
|
1119
|
+
*/
|
|
1120
|
+
_this.listingDetailFindAllForSeller = function (query, params) {
|
|
1121
|
+
if (params === void 0) { params = {}; }
|
|
1122
|
+
return _this.request(__assign({ path: "/api/v1/seller/listing-detail", method: "GET", query: query, secure: true, format: "json" }, params));
|
|
1123
|
+
};
|
|
1111
1124
|
/**
|
|
1112
1125
|
* No description
|
|
1113
1126
|
*
|
|
@@ -1423,10 +1436,131 @@ var Api = /** @class */ (function (_super) {
|
|
|
1423
1436
|
return Api;
|
|
1424
1437
|
}(HttpClient));
|
|
1425
1438
|
|
|
1439
|
+
/* eslint-disable */
|
|
1440
|
+
var ClosedApi = /** @class */ (function (_super) {
|
|
1441
|
+
__extends(ClosedApi, _super);
|
|
1442
|
+
function ClosedApi() {
|
|
1443
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
1444
|
+
/**
|
|
1445
|
+
* No description
|
|
1446
|
+
*
|
|
1447
|
+
* @tags Currency
|
|
1448
|
+
* @name CurrencyUpdate
|
|
1449
|
+
* @request PUT:/closed-api/v1/currency/{code}
|
|
1450
|
+
* @secure
|
|
1451
|
+
* @response `200` `CurrencyResponse`
|
|
1452
|
+
*/
|
|
1453
|
+
_this.currencyUpdate = function (code, data, params) {
|
|
1454
|
+
if (params === void 0) { params = {}; }
|
|
1455
|
+
return _this.request(__assign({ path: "/closed-api/v1/currency/".concat(code), method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
1456
|
+
};
|
|
1457
|
+
/**
|
|
1458
|
+
* No description
|
|
1459
|
+
*
|
|
1460
|
+
* @tags Currency
|
|
1461
|
+
* @name CurrencyDelete
|
|
1462
|
+
* @request DELETE:/closed-api/v1/currency/{code}
|
|
1463
|
+
* @secure
|
|
1464
|
+
* @response `200` `File`
|
|
1465
|
+
*/
|
|
1466
|
+
_this.currencyDelete = function (code, params) {
|
|
1467
|
+
if (params === void 0) { params = {}; }
|
|
1468
|
+
return _this.request(__assign({ path: "/closed-api/v1/currency/".concat(code), method: "DELETE", secure: true }, params));
|
|
1469
|
+
};
|
|
1470
|
+
/**
|
|
1471
|
+
* No description
|
|
1472
|
+
*
|
|
1473
|
+
* @tags Currency
|
|
1474
|
+
* @name CurrencyAdd
|
|
1475
|
+
* @request POST:/closed-api/v1/currency
|
|
1476
|
+
* @secure
|
|
1477
|
+
* @response `200` `object`
|
|
1478
|
+
*/
|
|
1479
|
+
_this.currencyAdd = function (data, params) {
|
|
1480
|
+
if (params === void 0) { params = {}; }
|
|
1481
|
+
return _this.request(__assign({ path: "/closed-api/v1/currency", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
1482
|
+
};
|
|
1483
|
+
/**
|
|
1484
|
+
* No description
|
|
1485
|
+
*
|
|
1486
|
+
* @tags Product
|
|
1487
|
+
* @name ProductUpdate
|
|
1488
|
+
* @request PUT:/closed-api/v1/product/{id}
|
|
1489
|
+
* @secure
|
|
1490
|
+
* @response `204` `void`
|
|
1491
|
+
* @response `400` `ProblemDetails`
|
|
1492
|
+
* @response `404` `ProblemDetails`
|
|
1493
|
+
* @response `default` `ProblemDetails`
|
|
1494
|
+
*/
|
|
1495
|
+
_this.productUpdate = function (id, data, params) {
|
|
1496
|
+
if (params === void 0) { params = {}; }
|
|
1497
|
+
return _this.request(__assign({ path: "/closed-api/v1/product/".concat(id), method: "PUT", body: data, secure: true, type: ContentType.Json }, params));
|
|
1498
|
+
};
|
|
1499
|
+
/**
|
|
1500
|
+
* No description
|
|
1501
|
+
*
|
|
1502
|
+
* @tags Product
|
|
1503
|
+
* @name ProductDelete
|
|
1504
|
+
* @request DELETE:/closed-api/v1/product/{id}
|
|
1505
|
+
* @secure
|
|
1506
|
+
* @response `200` `void`
|
|
1507
|
+
* @response `400` `ProblemDetails`
|
|
1508
|
+
* @response `404` `ProblemDetails`
|
|
1509
|
+
* @response `default` `ProblemDetails`
|
|
1510
|
+
*/
|
|
1511
|
+
_this.productDelete = function (id, query, params) {
|
|
1512
|
+
if (params === void 0) { params = {}; }
|
|
1513
|
+
return _this.request(__assign({ path: "/closed-api/v1/product/".concat(id), method: "DELETE", query: query, secure: true }, params));
|
|
1514
|
+
};
|
|
1515
|
+
/**
|
|
1516
|
+
* No description
|
|
1517
|
+
*
|
|
1518
|
+
* @tags Product
|
|
1519
|
+
* @name ProductCreate
|
|
1520
|
+
* @request POST:/closed-api/v1/product
|
|
1521
|
+
* @secure
|
|
1522
|
+
* @response `200` `object`
|
|
1523
|
+
*/
|
|
1524
|
+
_this.productCreate = function (data, params) {
|
|
1525
|
+
if (params === void 0) { params = {}; }
|
|
1526
|
+
return _this.request(__assign({ path: "/closed-api/v1/product", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
1527
|
+
};
|
|
1528
|
+
/**
|
|
1529
|
+
* No description
|
|
1530
|
+
*
|
|
1531
|
+
* @tags Tenant
|
|
1532
|
+
* @name TenantFindAll
|
|
1533
|
+
* @request GET:/closed-api/v1/tenant
|
|
1534
|
+
* @secure
|
|
1535
|
+
* @response `200` `object`
|
|
1536
|
+
*/
|
|
1537
|
+
_this.tenantFindAll = function (query, params) {
|
|
1538
|
+
if (params === void 0) { params = {}; }
|
|
1539
|
+
return _this.request(__assign({ path: "/closed-api/v1/tenant", method: "GET", query: query, secure: true, format: "json" }, params));
|
|
1540
|
+
};
|
|
1541
|
+
/**
|
|
1542
|
+
* No description
|
|
1543
|
+
*
|
|
1544
|
+
* @tags Tenant
|
|
1545
|
+
* @name TenantCreate
|
|
1546
|
+
* @request POST:/closed-api/v1/tenant
|
|
1547
|
+
* @secure
|
|
1548
|
+
* @response `200` `object`
|
|
1549
|
+
*/
|
|
1550
|
+
_this.tenantCreate = function (data, params) {
|
|
1551
|
+
if (params === void 0) { params = {}; }
|
|
1552
|
+
return _this.request(__assign({ path: "/closed-api/v1/tenant", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
1553
|
+
};
|
|
1554
|
+
return _this;
|
|
1555
|
+
}
|
|
1556
|
+
return ClosedApi;
|
|
1557
|
+
}(HttpClient));
|
|
1558
|
+
|
|
1426
1559
|
var apiConfig = {
|
|
1427
1560
|
baseUrl: '/dax-api'
|
|
1428
1561
|
};
|
|
1429
1562
|
var daxApi = new Api(apiConfig);
|
|
1563
|
+
var daxClosedApi = new ClosedApi(apiConfig);
|
|
1430
1564
|
var listingDetailFindAll = function (listingType, listingStatus, params) {
|
|
1431
1565
|
if (params === void 0) { params = {}; }
|
|
1432
1566
|
return daxApi.listingDetailFindAllByTenantId(__assign(__assign({}, (listingType ? { listingType: listingType } : {})), (listingStatus ? { listingStatus: listingStatus } : {})), params);
|
|
@@ -1441,6 +1575,7 @@ var listingStatusCountFindAll = function (listingType, listingStatus, params) {
|
|
|
1441
1575
|
};
|
|
1442
1576
|
|
|
1443
1577
|
exports.daxApi = daxApi;
|
|
1578
|
+
exports.daxClosedApi = daxClosedApi;
|
|
1444
1579
|
exports.listingDetailById = listingDetailById;
|
|
1445
1580
|
exports.listingDetailFindAll = listingDetailFindAll;
|
|
1446
1581
|
exports.listingStatusCountFindAll = listingStatusCountFindAll;
|