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