bruce-models 4.8.8 → 4.8.9

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.
@@ -13250,6 +13250,48 @@ var DataLab;
13250
13250
  EReqKey["Primary"] = "PrimarySelection";
13251
13251
  EReqKey["Secondary"] = "SecondarySelection";
13252
13252
  })(EReqKey = DataLab.EReqKey || (DataLab.EReqKey = {}));
13253
+ /**
13254
+ * Returns the list of saved queries in the account.
13255
+ * @param params
13256
+ * @returns
13257
+ */
13258
+ function GetList(params) {
13259
+ return __awaiter(this, void 0, void 0, function* () {
13260
+ if (!params) {
13261
+ params = {};
13262
+ }
13263
+ let { api, req } = params;
13264
+ if (!api) {
13265
+ api = ENVIRONMENT.Api().GetBruceApi();
13266
+ }
13267
+ const res = yield api.GET("entities/datalab/savedQueries", Api.PrepReqParams(req));
13268
+ return {
13269
+ queries: (res === null || res === void 0 ? void 0 : res.Items) ? res.Items : []
13270
+ };
13271
+ });
13272
+ }
13273
+ DataLab.GetList = GetList;
13274
+ /**
13275
+ * Returns a saved query by ID.
13276
+ * @param params
13277
+ * @returns
13278
+ */
13279
+ function Get(params) {
13280
+ return __awaiter(this, void 0, void 0, function* () {
13281
+ let { api, queryId, req } = params;
13282
+ if (queryId) {
13283
+ throw new Error("queryId is required.");
13284
+ }
13285
+ if (!api) {
13286
+ api = ENVIRONMENT.Api().GetBruceApi();
13287
+ }
13288
+ const res = yield api.GET(`entities/datalab/savedQuery/${queryId}`, Api.PrepReqParams(req));
13289
+ return {
13290
+ query: res
13291
+ };
13292
+ });
13293
+ }
13294
+ DataLab.Get = Get;
13253
13295
  /**
13254
13296
  * Runs a DataLab query.
13255
13297
  * @param params
@@ -14291,7 +14333,7 @@ var DataSource;
14291
14333
  })(DataSource || (DataSource = {}));
14292
14334
 
14293
14335
  // This is updated with the package.json version on build.
14294
- const VERSION = "4.8.8";
14336
+ const VERSION = "4.8.9";
14295
14337
 
14296
14338
  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, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
14297
14339
  //# sourceMappingURL=bruce-models.es5.js.map