bruce-models 5.3.2 → 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 +101 -5
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +99 -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 +103 -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 +56 -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,95 @@ 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 GetList(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.GetList = GetList;
|
|
13630
|
+
/**
|
|
13631
|
+
* Creates or updates a saved query group.
|
|
13632
|
+
* @param params
|
|
13633
|
+
*/
|
|
13634
|
+
function Update(params) {
|
|
13635
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13636
|
+
let { api, group, groups, req } = params;
|
|
13637
|
+
if (!api) {
|
|
13638
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
13639
|
+
}
|
|
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
|
+
};
|
|
13658
|
+
}
|
|
13659
|
+
});
|
|
13660
|
+
}
|
|
13661
|
+
DataLabGroup.Update = Update;
|
|
13662
|
+
/**
|
|
13663
|
+
* Deletes a saved query group by ID.
|
|
13664
|
+
* This will either ungroup or delete the related queries.
|
|
13665
|
+
* @param params
|
|
13666
|
+
* @returns
|
|
13667
|
+
*/
|
|
13668
|
+
function Delete(params) {
|
|
13669
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13670
|
+
let { api, groupId, req, queryAction } = params;
|
|
13671
|
+
if (!groupId || groupId <= 0) {
|
|
13672
|
+
throw new Error("groupId is required.");
|
|
13673
|
+
}
|
|
13674
|
+
if (!api) {
|
|
13675
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
13676
|
+
}
|
|
13677
|
+
let url = `entities/datalab/savedQueryGroup/${groupId}`;
|
|
13678
|
+
if (queryAction) {
|
|
13679
|
+
const urlParams = new URLSearchParams();
|
|
13680
|
+
urlParams.append("QueryAction", queryAction);
|
|
13681
|
+
url += "?" + urlParams.toString();
|
|
13682
|
+
}
|
|
13683
|
+
const res = yield api.DELETE(url, Api.PrepReqParams(req));
|
|
13684
|
+
return {
|
|
13685
|
+
deleted: res.Deleted,
|
|
13686
|
+
queryAction: res.QueryAction,
|
|
13687
|
+
queryActionMessage: res.QueryActionMessage,
|
|
13688
|
+
queriesUpdated: res.QueriesUpdated,
|
|
13689
|
+
queriesDeleted: res.QueriesDeleted
|
|
13690
|
+
};
|
|
13691
|
+
});
|
|
13692
|
+
}
|
|
13693
|
+
DataLabGroup.Delete = Delete;
|
|
13694
|
+
})(DataLabGroup || (DataLabGroup = {}));
|
|
13695
|
+
|
|
13600
13696
|
var ImportAssembly;
|
|
13601
13697
|
(function (ImportAssembly) {
|
|
13602
13698
|
function Analyze(params) {
|
|
@@ -14650,7 +14746,7 @@ var DataSource;
|
|
|
14650
14746
|
})(DataSource || (DataSource = {}));
|
|
14651
14747
|
|
|
14652
14748
|
// This is updated with the package.json version on build.
|
|
14653
|
-
const VERSION = "5.3.
|
|
14749
|
+
const VERSION = "5.3.4";
|
|
14654
14750
|
|
|
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 };
|
|
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 };
|
|
14656
14752
|
//# sourceMappingURL=bruce-models.es5.js.map
|