tnx-shared 5.0.44 → 5.0.45
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/bundles/tnx-shared.umd.js +18 -0
- package/bundles/tnx-shared.umd.js.map +1 -1
- package/bundles/tnx-shared.umd.min.js +1 -1
- package/bundles/tnx-shared.umd.min.js.map +1 -1
- package/esm2015/services/base.service.js +16 -1
- package/fesm2015/tnx-shared.js +15 -0
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/services/base.service.d.ts +1 -0
- package/services/base.service.d.ts.map +1 -1
- package/tnx-shared.metadata.json +1 -1
|
@@ -6488,6 +6488,24 @@
|
|
|
6488
6488
|
});
|
|
6489
6489
|
return this.postGridInfo(apiUrl, gridInfo);
|
|
6490
6490
|
};
|
|
6491
|
+
BaseService.prototype.getAllByFilter = function (filters, fields, sorts, plusUrl) {
|
|
6492
|
+
if (fields === void 0) { fields = ''; }
|
|
6493
|
+
if (sorts === void 0) { sorts = []; }
|
|
6494
|
+
if (plusUrl === void 0) { plusUrl = ''; }
|
|
6495
|
+
var apiUrl = this.apiGetAll;
|
|
6496
|
+
if (plusUrl != null && plusUrl != '')
|
|
6497
|
+
apiUrl += "/" + plusUrl;
|
|
6498
|
+
var gridInfo = new GridInfo({
|
|
6499
|
+
fields: fields,
|
|
6500
|
+
pageInfo: {
|
|
6501
|
+
page: 1,
|
|
6502
|
+
pageSize: 9999
|
|
6503
|
+
},
|
|
6504
|
+
sorts: sorts,
|
|
6505
|
+
filters: filters ? filters : []
|
|
6506
|
+
});
|
|
6507
|
+
return this.postGridInfo(apiUrl, gridInfo);
|
|
6508
|
+
};
|
|
6491
6509
|
BaseService.prototype.getAllByGridInfo = function (gridInfo, plusUrl) {
|
|
6492
6510
|
if (plusUrl === void 0) { plusUrl = ''; }
|
|
6493
6511
|
var apiUrl = this.apiGetAll;
|