bruce-models 4.4.0 → 4.4.2
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 +90 -2
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +84 -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/entity/entity-table-view.js +102 -0
- package/dist/lib/entity/entity-table-view.js.map +1 -0
- package/dist/types/bruce-models.d.ts +2 -1
- package/dist/types/entity/entity-table-view.d.ts +68 -0
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -7591,6 +7591,94 @@ var EntityTypeVisualSettings;
|
|
|
7591
7591
|
})(EAction = EntityTypeVisualSettings.EAction || (EntityTypeVisualSettings.EAction = {}));
|
|
7592
7592
|
})(EntityTypeVisualSettings || (EntityTypeVisualSettings = {}));
|
|
7593
7593
|
|
|
7594
|
+
/**
|
|
7595
|
+
* Represents a Table View record.
|
|
7596
|
+
* This is a record of how to display a collection of Entities.
|
|
7597
|
+
*/
|
|
7598
|
+
var EntityTableView;
|
|
7599
|
+
(function (EntityTableView) {
|
|
7600
|
+
/**
|
|
7601
|
+
* Returns a record matching the given viewId.
|
|
7602
|
+
* @param params
|
|
7603
|
+
*/
|
|
7604
|
+
function Get(params) {
|
|
7605
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7606
|
+
let { viewId, api, req } = params;
|
|
7607
|
+
if (!api) {
|
|
7608
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
7609
|
+
}
|
|
7610
|
+
req = Api.PrepReqParams(req);
|
|
7611
|
+
const res = yield api.GET(`ui.tableview/${viewId}`, req);
|
|
7612
|
+
return {
|
|
7613
|
+
view: res
|
|
7614
|
+
};
|
|
7615
|
+
});
|
|
7616
|
+
}
|
|
7617
|
+
EntityTableView.Get = Get;
|
|
7618
|
+
/**
|
|
7619
|
+
* Returns the list of all available Table Views.
|
|
7620
|
+
* @param params
|
|
7621
|
+
*/
|
|
7622
|
+
function GetList(params) {
|
|
7623
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7624
|
+
if (!params) {
|
|
7625
|
+
params = {};
|
|
7626
|
+
}
|
|
7627
|
+
let { api, req } = params;
|
|
7628
|
+
if (!api) {
|
|
7629
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
7630
|
+
}
|
|
7631
|
+
req = Api.PrepReqParams(req);
|
|
7632
|
+
const res = yield api.GET("ui.tableviews", req);
|
|
7633
|
+
let items = res === null || res === void 0 ? void 0 : res.Items;
|
|
7634
|
+
if (!items) {
|
|
7635
|
+
items = [];
|
|
7636
|
+
}
|
|
7637
|
+
return {
|
|
7638
|
+
views: items
|
|
7639
|
+
};
|
|
7640
|
+
});
|
|
7641
|
+
}
|
|
7642
|
+
EntityTableView.GetList = GetList;
|
|
7643
|
+
/**
|
|
7644
|
+
* Creates or updates a Table View record.
|
|
7645
|
+
*/
|
|
7646
|
+
function Update(params) {
|
|
7647
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7648
|
+
let { view, api, req } = params;
|
|
7649
|
+
if (!api) {
|
|
7650
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
7651
|
+
}
|
|
7652
|
+
req = Api.PrepReqParams(req);
|
|
7653
|
+
let viewId = view.ID;
|
|
7654
|
+
if (!viewId) {
|
|
7655
|
+
// New record.
|
|
7656
|
+
viewId = 0;
|
|
7657
|
+
}
|
|
7658
|
+
const res = yield api.POST(`ui.tableview/${viewId}`, view, req);
|
|
7659
|
+
return {
|
|
7660
|
+
view: res
|
|
7661
|
+
};
|
|
7662
|
+
});
|
|
7663
|
+
}
|
|
7664
|
+
EntityTableView.Update = Update;
|
|
7665
|
+
/**
|
|
7666
|
+
* Deletes a Table View record.
|
|
7667
|
+
* @param params
|
|
7668
|
+
*/
|
|
7669
|
+
function Delete(params) {
|
|
7670
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7671
|
+
let { viewId, api, req } = params;
|
|
7672
|
+
if (!api) {
|
|
7673
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
7674
|
+
}
|
|
7675
|
+
req = Api.PrepReqParams(req);
|
|
7676
|
+
return yield api.DELETE(`ui.tableview/${viewId}`, req);
|
|
7677
|
+
});
|
|
7678
|
+
}
|
|
7679
|
+
EntityTableView.Delete = Delete;
|
|
7680
|
+
})(EntityTableView || (EntityTableView = {}));
|
|
7681
|
+
|
|
7594
7682
|
/**
|
|
7595
7683
|
* Describes the "Style" concept within Nextspace.
|
|
7596
7684
|
* A legacy way of referring to styles is "entity display settings".
|
|
@@ -13529,7 +13617,7 @@ var DataSource;
|
|
|
13529
13617
|
})(DataSource || (DataSource = {}));
|
|
13530
13618
|
|
|
13531
13619
|
// This is updated with the package.json version on build.
|
|
13532
|
-
const VERSION = "4.4.
|
|
13620
|
+
const VERSION = "4.4.2";
|
|
13533
13621
|
|
|
13534
|
-
export { VERSION, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityCoords, EntityTypeVisualSettings, EntityAttribute, EntityHistoricData, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, AccountFeatures, AccountLimits, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportCad, ImportCsv, ImportJson, ImportKml, ImportedFile, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
|
|
13622
|
+
export { VERSION, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityCoords, EntityTypeVisualSettings, EntityAttribute, EntityHistoricData, EntityTableView, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, AccountFeatures, AccountLimits, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportCad, ImportCsv, ImportJson, ImportKml, ImportedFile, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
|
|
13535
13623
|
//# sourceMappingURL=bruce-models.es5.js.map
|