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.
- package/dist/bruce-models.es5.js +72 -2
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +69 -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 +84 -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 +35 -0
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -7591,6 +7591,76 @@ var EntityTypeVisualSettings;
|
|
|
7591
7591
|
})(EAction = EntityTypeVisualSettings.EAction || (EntityTypeVisualSettings.EAction = {}));
|
|
7592
7592
|
})(EntityTypeVisualSettings || (EntityTypeVisualSettings = {}));
|
|
7593
7593
|
|
|
7594
|
+
// TODO: comments when first MVP is done with using these requests.
|
|
7595
|
+
var EntityTableView;
|
|
7596
|
+
(function (EntityTableView) {
|
|
7597
|
+
function Get(params) {
|
|
7598
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7599
|
+
let { viewId, api, req } = params;
|
|
7600
|
+
if (!api) {
|
|
7601
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
7602
|
+
}
|
|
7603
|
+
req = Api.PrepReqParams(req);
|
|
7604
|
+
const res = yield api.GET(`ui.tableview/${viewId}`, req);
|
|
7605
|
+
return {
|
|
7606
|
+
view: res
|
|
7607
|
+
};
|
|
7608
|
+
});
|
|
7609
|
+
}
|
|
7610
|
+
EntityTableView.Get = Get;
|
|
7611
|
+
function GetList(params) {
|
|
7612
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7613
|
+
if (!params) {
|
|
7614
|
+
params = {};
|
|
7615
|
+
}
|
|
7616
|
+
let { api, req } = params;
|
|
7617
|
+
if (!api) {
|
|
7618
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
7619
|
+
}
|
|
7620
|
+
req = Api.PrepReqParams(req);
|
|
7621
|
+
const res = yield api.GET("ui.tableviews", req);
|
|
7622
|
+
let items = res === null || res === void 0 ? void 0 : res.Items;
|
|
7623
|
+
if (!items) {
|
|
7624
|
+
items = [];
|
|
7625
|
+
}
|
|
7626
|
+
return {
|
|
7627
|
+
views: items
|
|
7628
|
+
};
|
|
7629
|
+
});
|
|
7630
|
+
}
|
|
7631
|
+
EntityTableView.GetList = GetList;
|
|
7632
|
+
function Update(params) {
|
|
7633
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7634
|
+
let { view, api, req } = params;
|
|
7635
|
+
if (!api) {
|
|
7636
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
7637
|
+
}
|
|
7638
|
+
req = Api.PrepReqParams(req);
|
|
7639
|
+
let viewId = view.ID;
|
|
7640
|
+
if (!viewId) {
|
|
7641
|
+
// New record.
|
|
7642
|
+
viewId = 0;
|
|
7643
|
+
}
|
|
7644
|
+
const res = yield api.POST(`ui.tableview/${viewId}`, view, req);
|
|
7645
|
+
return {
|
|
7646
|
+
view: res
|
|
7647
|
+
};
|
|
7648
|
+
});
|
|
7649
|
+
}
|
|
7650
|
+
EntityTableView.Update = Update;
|
|
7651
|
+
function Delete(params) {
|
|
7652
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7653
|
+
let { viewId, api, req } = params;
|
|
7654
|
+
if (!api) {
|
|
7655
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
7656
|
+
}
|
|
7657
|
+
req = Api.PrepReqParams(req);
|
|
7658
|
+
return yield api.DELETE(`ui.tableview/${viewId}`, req);
|
|
7659
|
+
});
|
|
7660
|
+
}
|
|
7661
|
+
EntityTableView.Delete = Delete;
|
|
7662
|
+
})(EntityTableView || (EntityTableView = {}));
|
|
7663
|
+
|
|
7594
7664
|
/**
|
|
7595
7665
|
* Describes the "Style" concept within Nextspace.
|
|
7596
7666
|
* A legacy way of referring to styles is "entity display settings".
|
|
@@ -13529,7 +13599,7 @@ var DataSource;
|
|
|
13529
13599
|
})(DataSource || (DataSource = {}));
|
|
13530
13600
|
|
|
13531
13601
|
// This is updated with the package.json version on build.
|
|
13532
|
-
const VERSION = "4.4.
|
|
13602
|
+
const VERSION = "4.4.1";
|
|
13533
13603
|
|
|
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 };
|
|
13604
|
+
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
13605
|
//# sourceMappingURL=bruce-models.es5.js.map
|