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.es5.js
CHANGED
|
@@ -9171,6 +9171,92 @@ var EntityTableView;
|
|
|
9171
9171
|
EntityTableView.Delete = Delete;
|
|
9172
9172
|
})(EntityTableView || (EntityTableView = {}));
|
|
9173
9173
|
|
|
9174
|
+
/**
|
|
9175
|
+
* Represents a Dashboard View record.
|
|
9176
|
+
*/
|
|
9177
|
+
var DashboardView;
|
|
9178
|
+
(function (DashboardView) {
|
|
9179
|
+
/**
|
|
9180
|
+
* Returns a record matching the given viewId.
|
|
9181
|
+
* @param params
|
|
9182
|
+
*/
|
|
9183
|
+
function Get(params) {
|
|
9184
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9185
|
+
let { viewId, api, req } = params;
|
|
9186
|
+
if (!api) {
|
|
9187
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
9188
|
+
}
|
|
9189
|
+
req = Api.PrepReqParams(req);
|
|
9190
|
+
const res = yield api.GET(`ui.dashboardview/${viewId}`, req);
|
|
9191
|
+
return {
|
|
9192
|
+
view: res
|
|
9193
|
+
};
|
|
9194
|
+
});
|
|
9195
|
+
}
|
|
9196
|
+
DashboardView.Get = Get;
|
|
9197
|
+
/**
|
|
9198
|
+
* Returns the list of all available Dashboard Views.
|
|
9199
|
+
* @param params
|
|
9200
|
+
*/
|
|
9201
|
+
function GetList(params) {
|
|
9202
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9203
|
+
if (!params) {
|
|
9204
|
+
params = {};
|
|
9205
|
+
}
|
|
9206
|
+
let { api, req } = params;
|
|
9207
|
+
if (!api) {
|
|
9208
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
9209
|
+
}
|
|
9210
|
+
req = Api.PrepReqParams(req);
|
|
9211
|
+
const res = yield api.GET("ui.dashboardviews", req);
|
|
9212
|
+
let items = res === null || res === void 0 ? void 0 : res.Items;
|
|
9213
|
+
if (!items) {
|
|
9214
|
+
items = [];
|
|
9215
|
+
}
|
|
9216
|
+
return {
|
|
9217
|
+
views: items
|
|
9218
|
+
};
|
|
9219
|
+
});
|
|
9220
|
+
}
|
|
9221
|
+
DashboardView.GetList = GetList;
|
|
9222
|
+
/**
|
|
9223
|
+
* Creates or updates a Dashboard View record.
|
|
9224
|
+
*/
|
|
9225
|
+
function Update(params) {
|
|
9226
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9227
|
+
let { view, api, req } = params;
|
|
9228
|
+
if (!api) {
|
|
9229
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
9230
|
+
}
|
|
9231
|
+
req = Api.PrepReqParams(req);
|
|
9232
|
+
let viewId = view.ID;
|
|
9233
|
+
if (!viewId) {
|
|
9234
|
+
viewId = 0;
|
|
9235
|
+
}
|
|
9236
|
+
const res = yield api.POST(`ui.dashboardview/${viewId}`, view, req);
|
|
9237
|
+
return {
|
|
9238
|
+
view: res
|
|
9239
|
+
};
|
|
9240
|
+
});
|
|
9241
|
+
}
|
|
9242
|
+
DashboardView.Update = Update;
|
|
9243
|
+
/**
|
|
9244
|
+
* Deletes a Dashboard View record.
|
|
9245
|
+
* @param params
|
|
9246
|
+
*/
|
|
9247
|
+
function Delete(params) {
|
|
9248
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9249
|
+
let { viewId, api, req } = params;
|
|
9250
|
+
if (!api) {
|
|
9251
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
9252
|
+
}
|
|
9253
|
+
req = Api.PrepReqParams(req);
|
|
9254
|
+
return yield api.DELETE(`ui.dashboardview/${viewId}`, req);
|
|
9255
|
+
});
|
|
9256
|
+
}
|
|
9257
|
+
DashboardView.Delete = Delete;
|
|
9258
|
+
})(DashboardView || (DashboardView = {}));
|
|
9259
|
+
|
|
9174
9260
|
/**
|
|
9175
9261
|
* Describes the "Style" concept within Nextspace.
|
|
9176
9262
|
* A legacy way of referring to styles is "entity display settings".
|
|
@@ -18025,7 +18111,7 @@ var ChangeSet;
|
|
|
18025
18111
|
})(ChangeSet || (ChangeSet = {}));
|
|
18026
18112
|
|
|
18027
18113
|
// This is updated with the package.json version on build.
|
|
18028
|
-
const VERSION = "7.1.
|
|
18114
|
+
const VERSION = "7.1.33";
|
|
18029
18115
|
|
|
18030
|
-
export { VERSION, Assembly, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, GeoJson, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityTypeTrigger, EntityType, Entity, EntityCoords, EntityAttribute, EntityHistoricData, EntityTableView, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, ProjectViewBookmarkGroup, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, UserMfaMethod, Account, AccountInvite, AccountFeatures, AccountLimits, AccountTemplate, AccountType, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, DataLabGroup, DataFeed, ImportAssembly, ImportCad, ImportCsv, ImportJson, ImportGeoJson, ImportKml, ImportLcc, ImportedFile, ExportBrz, ExportUsd, Markup, Uploader, Plugin, ENVIRONMENT, DataSource, Scenario, Tracking, NAVIGATOR_CHAT_EVENT_ENTITY_HIGHLIGHT_APPLIED, NAVIGATOR_CHAT_EVENT_SCENE_CONTEXT_PREFETCHED, NavigatorChatClient, NavigatorMcpWebSocketClient, ChangeSet };
|
|
18116
|
+
export { VERSION, Assembly, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, GeoJson, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityTypeTrigger, EntityType, Entity, EntityCoords, EntityAttribute, EntityHistoricData, EntityTableView, DashboardView, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, ProjectViewBookmarkGroup, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, UserMfaMethod, Account, AccountInvite, AccountFeatures, AccountLimits, AccountTemplate, AccountType, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, DataLabGroup, DataFeed, ImportAssembly, ImportCad, ImportCsv, ImportJson, ImportGeoJson, ImportKml, ImportLcc, ImportedFile, ExportBrz, ExportUsd, Markup, Uploader, Plugin, ENVIRONMENT, DataSource, Scenario, Tracking, NAVIGATOR_CHAT_EVENT_ENTITY_HIGHLIGHT_APPLIED, NAVIGATOR_CHAT_EVENT_SCENE_CONTEXT_PREFETCHED, NavigatorChatClient, NavigatorMcpWebSocketClient, ChangeSet };
|
|
18031
18117
|
//# sourceMappingURL=bruce-models.es5.js.map
|