bruce-models 7.1.32 → 7.1.33
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/dist/bruce-models.es5.js +88 -2
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +83 -1
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +2 -1
- package/dist/lib/bruce-models.js.map +1 -1
- package/dist/lib/dashboard/dashboard-view.js +100 -0
- package/dist/lib/dashboard/dashboard-view.js.map +1 -0
- package/dist/types/bruce-models.d.ts +2 -1
- package/dist/types/dashboard/dashboard-view.d.ts +53 -0
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -9025,6 +9025,88 @@
|
|
|
9025
9025
|
EntityTableView.Delete = Delete;
|
|
9026
9026
|
})(exports.EntityTableView || (exports.EntityTableView = {}));
|
|
9027
9027
|
|
|
9028
|
+
(function (DashboardView) {
|
|
9029
|
+
/**
|
|
9030
|
+
* Returns a record matching the given viewId.
|
|
9031
|
+
* @param params
|
|
9032
|
+
*/
|
|
9033
|
+
function Get(params) {
|
|
9034
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9035
|
+
let { viewId, api, req } = params;
|
|
9036
|
+
if (!api) {
|
|
9037
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
9038
|
+
}
|
|
9039
|
+
req = exports.Api.PrepReqParams(req);
|
|
9040
|
+
const res = yield api.GET(`ui.dashboardview/${viewId}`, req);
|
|
9041
|
+
return {
|
|
9042
|
+
view: res
|
|
9043
|
+
};
|
|
9044
|
+
});
|
|
9045
|
+
}
|
|
9046
|
+
DashboardView.Get = Get;
|
|
9047
|
+
/**
|
|
9048
|
+
* Returns the list of all available Dashboard Views.
|
|
9049
|
+
* @param params
|
|
9050
|
+
*/
|
|
9051
|
+
function GetList(params) {
|
|
9052
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9053
|
+
if (!params) {
|
|
9054
|
+
params = {};
|
|
9055
|
+
}
|
|
9056
|
+
let { api, req } = params;
|
|
9057
|
+
if (!api) {
|
|
9058
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
9059
|
+
}
|
|
9060
|
+
req = exports.Api.PrepReqParams(req);
|
|
9061
|
+
const res = yield api.GET("ui.dashboardviews", req);
|
|
9062
|
+
let items = res === null || res === void 0 ? void 0 : res.Items;
|
|
9063
|
+
if (!items) {
|
|
9064
|
+
items = [];
|
|
9065
|
+
}
|
|
9066
|
+
return {
|
|
9067
|
+
views: items
|
|
9068
|
+
};
|
|
9069
|
+
});
|
|
9070
|
+
}
|
|
9071
|
+
DashboardView.GetList = GetList;
|
|
9072
|
+
/**
|
|
9073
|
+
* Creates or updates a Dashboard View record.
|
|
9074
|
+
*/
|
|
9075
|
+
function Update(params) {
|
|
9076
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9077
|
+
let { view, api, req } = params;
|
|
9078
|
+
if (!api) {
|
|
9079
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
9080
|
+
}
|
|
9081
|
+
req = exports.Api.PrepReqParams(req);
|
|
9082
|
+
let viewId = view.ID;
|
|
9083
|
+
if (!viewId) {
|
|
9084
|
+
viewId = 0;
|
|
9085
|
+
}
|
|
9086
|
+
const res = yield api.POST(`ui.dashboardview/${viewId}`, view, req);
|
|
9087
|
+
return {
|
|
9088
|
+
view: res
|
|
9089
|
+
};
|
|
9090
|
+
});
|
|
9091
|
+
}
|
|
9092
|
+
DashboardView.Update = Update;
|
|
9093
|
+
/**
|
|
9094
|
+
* Deletes a Dashboard View record.
|
|
9095
|
+
* @param params
|
|
9096
|
+
*/
|
|
9097
|
+
function Delete(params) {
|
|
9098
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9099
|
+
let { viewId, api, req } = params;
|
|
9100
|
+
if (!api) {
|
|
9101
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
9102
|
+
}
|
|
9103
|
+
req = exports.Api.PrepReqParams(req);
|
|
9104
|
+
return yield api.DELETE(`ui.dashboardview/${viewId}`, req);
|
|
9105
|
+
});
|
|
9106
|
+
}
|
|
9107
|
+
DashboardView.Delete = Delete;
|
|
9108
|
+
})(exports.DashboardView || (exports.DashboardView = {}));
|
|
9109
|
+
|
|
9028
9110
|
(function (Style) {
|
|
9029
9111
|
/**
|
|
9030
9112
|
* Types of styles available.
|
|
@@ -17698,7 +17780,7 @@
|
|
|
17698
17780
|
})(exports.ChangeSet || (exports.ChangeSet = {}));
|
|
17699
17781
|
|
|
17700
17782
|
// This is updated with the package.json version on build.
|
|
17701
|
-
const VERSION = "7.1.
|
|
17783
|
+
const VERSION = "7.1.33";
|
|
17702
17784
|
|
|
17703
17785
|
exports.VERSION = VERSION;
|
|
17704
17786
|
exports.AbstractApi = AbstractApi;
|