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