bruce-models 4.4.0 → 4.4.1

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.
@@ -7453,6 +7453,74 @@
7453
7453
  })(EAction = EntityTypeVisualSettings.EAction || (EntityTypeVisualSettings.EAction = {}));
7454
7454
  })(exports.EntityTypeVisualSettings || (exports.EntityTypeVisualSettings = {}));
7455
7455
 
7456
+ (function (EntityTableView) {
7457
+ function Get(params) {
7458
+ return __awaiter(this, void 0, void 0, function* () {
7459
+ let { viewId, api, req } = params;
7460
+ if (!api) {
7461
+ api = exports.ENVIRONMENT.Api().GetBruceApi();
7462
+ }
7463
+ req = exports.Api.PrepReqParams(req);
7464
+ const res = yield api.GET(`ui.tableview/${viewId}`, req);
7465
+ return {
7466
+ view: res
7467
+ };
7468
+ });
7469
+ }
7470
+ EntityTableView.Get = Get;
7471
+ function GetList(params) {
7472
+ return __awaiter(this, void 0, void 0, function* () {
7473
+ if (!params) {
7474
+ params = {};
7475
+ }
7476
+ let { api, req } = params;
7477
+ if (!api) {
7478
+ api = exports.ENVIRONMENT.Api().GetBruceApi();
7479
+ }
7480
+ req = exports.Api.PrepReqParams(req);
7481
+ const res = yield api.GET("ui.tableviews", req);
7482
+ let items = res === null || res === void 0 ? void 0 : res.Items;
7483
+ if (!items) {
7484
+ items = [];
7485
+ }
7486
+ return {
7487
+ views: items
7488
+ };
7489
+ });
7490
+ }
7491
+ EntityTableView.GetList = GetList;
7492
+ function Update(params) {
7493
+ return __awaiter(this, void 0, void 0, function* () {
7494
+ let { view, api, req } = params;
7495
+ if (!api) {
7496
+ api = exports.ENVIRONMENT.Api().GetBruceApi();
7497
+ }
7498
+ req = exports.Api.PrepReqParams(req);
7499
+ let viewId = view.ID;
7500
+ if (!viewId) {
7501
+ // New record.
7502
+ viewId = 0;
7503
+ }
7504
+ const res = yield api.POST(`ui.tableview/${viewId}`, view, req);
7505
+ return {
7506
+ view: res
7507
+ };
7508
+ });
7509
+ }
7510
+ EntityTableView.Update = Update;
7511
+ function Delete(params) {
7512
+ return __awaiter(this, void 0, void 0, function* () {
7513
+ let { viewId, api, req } = params;
7514
+ if (!api) {
7515
+ api = exports.ENVIRONMENT.Api().GetBruceApi();
7516
+ }
7517
+ req = exports.Api.PrepReqParams(req);
7518
+ return yield api.DELETE(`ui.tableview/${viewId}`, req);
7519
+ });
7520
+ }
7521
+ EntityTableView.Delete = Delete;
7522
+ })(exports.EntityTableView || (exports.EntityTableView = {}));
7523
+
7456
7524
  (function (Style) {
7457
7525
  /**
7458
7526
  * Types of styles available.
@@ -13263,7 +13331,7 @@
13263
13331
  })(exports.DataSource || (exports.DataSource = {}));
13264
13332
 
13265
13333
  // This is updated with the package.json version on build.
13266
- const VERSION = "4.4.0";
13334
+ const VERSION = "4.4.1";
13267
13335
 
13268
13336
  exports.VERSION = VERSION;
13269
13337
  exports.AbstractApi = AbstractApi;