bruce-models 5.3.2 → 5.3.3
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 -5
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +88 -4
- 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/data-lab/data-lab-group.js +92 -0
- package/dist/lib/data-lab/data-lab-group.js.map +1 -0
- package/dist/lib/data-lab/data-lab.js +10 -3
- package/dist/lib/data-lab/data-lab.js.map +1 -1
- package/dist/types/bruce-models.d.ts +2 -1
- package/dist/types/data-lab/data-lab-group.d.ts +54 -0
- package/dist/types/data-lab/data-lab.d.ts +8 -3
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -13519,13 +13519,20 @@ var DataLab;
|
|
|
13519
13519
|
if (!params) {
|
|
13520
13520
|
params = {};
|
|
13521
13521
|
}
|
|
13522
|
-
let { api, req } = params;
|
|
13522
|
+
let { api, req, expandGroups } = params;
|
|
13523
13523
|
if (!api) {
|
|
13524
13524
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
13525
13525
|
}
|
|
13526
|
-
|
|
13526
|
+
let url = "entities/datalab/savedQueries";
|
|
13527
|
+
if (expandGroups) {
|
|
13528
|
+
const urlParams = new URLSearchParams();
|
|
13529
|
+
urlParams.append("ExpandGroups", "true");
|
|
13530
|
+
url += "?" + urlParams.toString();
|
|
13531
|
+
}
|
|
13532
|
+
const res = yield api.GET(url, Api.PrepReqParams(req));
|
|
13527
13533
|
return {
|
|
13528
|
-
queries: (res === null || res === void 0 ? void 0 : res.Items) ? res.Items : []
|
|
13534
|
+
queries: (res === null || res === void 0 ? void 0 : res.Items) ? res.Items : [],
|
|
13535
|
+
groups: (res === null || res === void 0 ? void 0 : res.Groups) ? res.Groups : []
|
|
13529
13536
|
};
|
|
13530
13537
|
});
|
|
13531
13538
|
}
|
|
@@ -13597,6 +13604,84 @@ var DataLab;
|
|
|
13597
13604
|
DataLab.Run = Run;
|
|
13598
13605
|
})(DataLab || (DataLab = {}));
|
|
13599
13606
|
|
|
13607
|
+
var DataLabGroup;
|
|
13608
|
+
(function (DataLabGroup) {
|
|
13609
|
+
/**
|
|
13610
|
+
* Returns the list of all saved query groups.
|
|
13611
|
+
* @param params
|
|
13612
|
+
* @returns
|
|
13613
|
+
*/
|
|
13614
|
+
function GetGroupList(params) {
|
|
13615
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13616
|
+
if (!params) {
|
|
13617
|
+
params = {};
|
|
13618
|
+
}
|
|
13619
|
+
let { api, req } = params;
|
|
13620
|
+
if (!api) {
|
|
13621
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
13622
|
+
}
|
|
13623
|
+
const res = yield api.GET("entities/datalab/savedQueryGroups", Api.PrepReqParams(req));
|
|
13624
|
+
return {
|
|
13625
|
+
groups: (res === null || res === void 0 ? void 0 : res.Items) ? res.Items : []
|
|
13626
|
+
};
|
|
13627
|
+
});
|
|
13628
|
+
}
|
|
13629
|
+
DataLabGroup.GetGroupList = GetGroupList;
|
|
13630
|
+
/**
|
|
13631
|
+
* Creates or updates a saved query group.
|
|
13632
|
+
* @param params
|
|
13633
|
+
*/
|
|
13634
|
+
function UpdateGroup(params) {
|
|
13635
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13636
|
+
let { api, group, req } = params;
|
|
13637
|
+
if (!api) {
|
|
13638
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
13639
|
+
}
|
|
13640
|
+
let url = "entities/datalab/savedQueryGroup";
|
|
13641
|
+
if (group.ID) {
|
|
13642
|
+
url += `/${group.ID}`;
|
|
13643
|
+
}
|
|
13644
|
+
const res = yield api.POST(url, group, Api.PrepReqParams(req));
|
|
13645
|
+
return {
|
|
13646
|
+
group: res
|
|
13647
|
+
};
|
|
13648
|
+
});
|
|
13649
|
+
}
|
|
13650
|
+
DataLabGroup.UpdateGroup = UpdateGroup;
|
|
13651
|
+
/**
|
|
13652
|
+
* Deletes a saved query group by ID.
|
|
13653
|
+
* This will either ungroup or delete the related queries.
|
|
13654
|
+
* @param params
|
|
13655
|
+
* @returns
|
|
13656
|
+
*/
|
|
13657
|
+
function DeleteGroup(params) {
|
|
13658
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13659
|
+
let { api, groupId, req, queryAction } = params;
|
|
13660
|
+
if (!groupId || groupId <= 0) {
|
|
13661
|
+
throw new Error("groupId is required.");
|
|
13662
|
+
}
|
|
13663
|
+
if (!api) {
|
|
13664
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
13665
|
+
}
|
|
13666
|
+
let url = `entities/datalab/savedQueryGroup/${groupId}`;
|
|
13667
|
+
if (queryAction) {
|
|
13668
|
+
const urlParams = new URLSearchParams();
|
|
13669
|
+
urlParams.append("QueryAction", queryAction);
|
|
13670
|
+
url += "?" + urlParams.toString();
|
|
13671
|
+
}
|
|
13672
|
+
const res = yield api.DELETE(url, Api.PrepReqParams(req));
|
|
13673
|
+
return {
|
|
13674
|
+
deleted: res.Deleted,
|
|
13675
|
+
queryAction: res.QueryAction,
|
|
13676
|
+
queryActionMessage: res.QueryActionMessage,
|
|
13677
|
+
queriesUpdated: res.QueriesUpdated,
|
|
13678
|
+
queriesDeleted: res.QueriesDeleted
|
|
13679
|
+
};
|
|
13680
|
+
});
|
|
13681
|
+
}
|
|
13682
|
+
DataLabGroup.DeleteGroup = DeleteGroup;
|
|
13683
|
+
})(DataLabGroup || (DataLabGroup = {}));
|
|
13684
|
+
|
|
13600
13685
|
var ImportAssembly;
|
|
13601
13686
|
(function (ImportAssembly) {
|
|
13602
13687
|
function Analyze(params) {
|
|
@@ -14650,7 +14735,7 @@ var DataSource;
|
|
|
14650
14735
|
})(DataSource || (DataSource = {}));
|
|
14651
14736
|
|
|
14652
14737
|
// This is updated with the package.json version on build.
|
|
14653
|
-
const VERSION = "5.3.
|
|
14738
|
+
const VERSION = "5.3.3";
|
|
14654
14739
|
|
|
14655
|
-
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, ImportAssembly, ImportCad, ImportCsv, ImportJson, ImportGeoJson, ImportKml, ImportedFile, ExportBrz, ExportUsd, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
|
|
14740
|
+
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 };
|
|
14656
14741
|
//# sourceMappingURL=bruce-models.es5.js.map
|