bruce-models 5.3.3 → 5.3.4
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 +26 -15
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +26 -15
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/data-lab/data-lab-group.js +25 -14
- package/dist/lib/data-lab/data-lab-group.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/data-lab/data-lab-group.d.ts +7 -5
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -13611,7 +13611,7 @@ var DataLabGroup;
|
|
|
13611
13611
|
* @param params
|
|
13612
13612
|
* @returns
|
|
13613
13613
|
*/
|
|
13614
|
-
function
|
|
13614
|
+
function GetList(params) {
|
|
13615
13615
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13616
13616
|
if (!params) {
|
|
13617
13617
|
params = {};
|
|
@@ -13626,35 +13626,46 @@ var DataLabGroup;
|
|
|
13626
13626
|
};
|
|
13627
13627
|
});
|
|
13628
13628
|
}
|
|
13629
|
-
DataLabGroup.
|
|
13629
|
+
DataLabGroup.GetList = GetList;
|
|
13630
13630
|
/**
|
|
13631
13631
|
* Creates or updates a saved query group.
|
|
13632
13632
|
* @param params
|
|
13633
13633
|
*/
|
|
13634
|
-
function
|
|
13634
|
+
function Update(params) {
|
|
13635
13635
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13636
|
-
let { api, group, req } = params;
|
|
13636
|
+
let { api, group, groups, req } = params;
|
|
13637
13637
|
if (!api) {
|
|
13638
13638
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
13639
13639
|
}
|
|
13640
|
-
|
|
13641
|
-
|
|
13642
|
-
|
|
13640
|
+
if (groups === null || groups === void 0 ? void 0 : groups.length) {
|
|
13641
|
+
const body = {
|
|
13642
|
+
Items: groups
|
|
13643
|
+
};
|
|
13644
|
+
const res = yield api.POST("entities/datalab/savedQueryGroups", body, Api.PrepReqParams(req));
|
|
13645
|
+
return {
|
|
13646
|
+
groups: res.Items
|
|
13647
|
+
};
|
|
13648
|
+
}
|
|
13649
|
+
else {
|
|
13650
|
+
let url = "entities/datalab/savedQueryGroup";
|
|
13651
|
+
if (group.ID) {
|
|
13652
|
+
url += `/${group.ID}`;
|
|
13653
|
+
}
|
|
13654
|
+
const res = yield api.POST(url, group, Api.PrepReqParams(req));
|
|
13655
|
+
return {
|
|
13656
|
+
group: res
|
|
13657
|
+
};
|
|
13643
13658
|
}
|
|
13644
|
-
const res = yield api.POST(url, group, Api.PrepReqParams(req));
|
|
13645
|
-
return {
|
|
13646
|
-
group: res
|
|
13647
|
-
};
|
|
13648
13659
|
});
|
|
13649
13660
|
}
|
|
13650
|
-
DataLabGroup.
|
|
13661
|
+
DataLabGroup.Update = Update;
|
|
13651
13662
|
/**
|
|
13652
13663
|
* Deletes a saved query group by ID.
|
|
13653
13664
|
* This will either ungroup or delete the related queries.
|
|
13654
13665
|
* @param params
|
|
13655
13666
|
* @returns
|
|
13656
13667
|
*/
|
|
13657
|
-
function
|
|
13668
|
+
function Delete(params) {
|
|
13658
13669
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13659
13670
|
let { api, groupId, req, queryAction } = params;
|
|
13660
13671
|
if (!groupId || groupId <= 0) {
|
|
@@ -13679,7 +13690,7 @@ var DataLabGroup;
|
|
|
13679
13690
|
};
|
|
13680
13691
|
});
|
|
13681
13692
|
}
|
|
13682
|
-
DataLabGroup.
|
|
13693
|
+
DataLabGroup.Delete = Delete;
|
|
13683
13694
|
})(DataLabGroup || (DataLabGroup = {}));
|
|
13684
13695
|
|
|
13685
13696
|
var ImportAssembly;
|
|
@@ -14735,7 +14746,7 @@ var DataSource;
|
|
|
14735
14746
|
})(DataSource || (DataSource = {}));
|
|
14736
14747
|
|
|
14737
14748
|
// This is updated with the package.json version on build.
|
|
14738
|
-
const VERSION = "5.3.
|
|
14749
|
+
const VERSION = "5.3.4";
|
|
14739
14750
|
|
|
14740
14751
|
export { VERSION, 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, 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, DataLabGroup, ImportAssembly, ImportCad, ImportCsv, ImportJson, ImportGeoJson, ImportKml, ImportedFile, ExportBrz, ExportUsd, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
|
|
14741
14752
|
//# sourceMappingURL=bruce-models.es5.js.map
|