bruce-models 6.6.7 → 6.6.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.
- package/dist/bruce-models.es5.js +25 -30
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +25 -30
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/markup/markup.js.map +1 -1
- package/dist/lib/project/project-view.js +24 -29
- package/dist/lib/project/project-view.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/markup/markup.d.ts +1 -0
- package/dist/types/project/project-view.d.ts +7 -11
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -11216,26 +11216,40 @@ var ProjectView;
|
|
|
11216
11216
|
if (!api) {
|
|
11217
11217
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
11218
11218
|
}
|
|
11219
|
-
const cache = api.GetCacheItem(GetListCacheKey(type), reqParams);
|
|
11220
|
-
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
11221
|
-
return cache.data;
|
|
11222
|
-
}
|
|
11223
11219
|
const prom = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
|
|
11224
11220
|
try {
|
|
11221
|
+
const queryParams = new URLSearchParams();
|
|
11222
|
+
if (params.search) {
|
|
11223
|
+
queryParams.set("Search", params.search);
|
|
11224
|
+
}
|
|
11225
|
+
if (params.pageSize) {
|
|
11226
|
+
queryParams.set("PageSize", params.pageSize.toString());
|
|
11227
|
+
}
|
|
11228
|
+
if (params.pageIndex) {
|
|
11229
|
+
queryParams.set("PageIndex", params.pageIndex.toString());
|
|
11230
|
+
}
|
|
11231
|
+
if (params.orderBy) {
|
|
11232
|
+
queryParams.set("OrderBy", params.orderBy);
|
|
11233
|
+
}
|
|
11234
|
+
if (params.sortOrder) {
|
|
11235
|
+
queryParams.set("SortOrder", params.sortOrder);
|
|
11236
|
+
}
|
|
11237
|
+
if (type) {
|
|
11238
|
+
queryParams.set("type", type);
|
|
11239
|
+
}
|
|
11240
|
+
if (params.expand) {
|
|
11241
|
+
queryParams.set("expand", "true");
|
|
11242
|
+
}
|
|
11225
11243
|
const data = yield api.GET("ui.view/list", Api.PrepReqParams(reqParams));
|
|
11226
11244
|
res({
|
|
11227
|
-
views: data.Items
|
|
11245
|
+
views: data.Items,
|
|
11246
|
+
totalCount: data.TotalCount
|
|
11228
11247
|
});
|
|
11229
11248
|
}
|
|
11230
11249
|
catch (e) {
|
|
11231
11250
|
rej(e);
|
|
11232
11251
|
}
|
|
11233
11252
|
}));
|
|
11234
|
-
api.SetCacheItem({
|
|
11235
|
-
key: GetListCacheKey(type),
|
|
11236
|
-
value: prom,
|
|
11237
|
-
req: reqParams
|
|
11238
|
-
});
|
|
11239
11253
|
return prom;
|
|
11240
11254
|
});
|
|
11241
11255
|
}
|
|
@@ -11255,7 +11269,6 @@ var ProjectView;
|
|
|
11255
11269
|
}
|
|
11256
11270
|
yield api.DELETE(`ui.view/${viewId}`, Api.PrepReqParams(reqParams));
|
|
11257
11271
|
api.Cache.Remove(GetCacheKey(viewId));
|
|
11258
|
-
api.Cache.RemoveByStartsWith(GetListCacheKey());
|
|
11259
11272
|
});
|
|
11260
11273
|
}
|
|
11261
11274
|
ProjectView.Delete = Delete;
|
|
@@ -11292,7 +11305,6 @@ var ProjectView;
|
|
|
11292
11305
|
data = yield api.PUT(`ui.view/${data.ID}`, data, Api.PrepReqParams(reqParams));
|
|
11293
11306
|
}
|
|
11294
11307
|
api.Cache.Remove(GetCacheKey(data.ID));
|
|
11295
|
-
api.Cache.RemoveByStartsWith(GetListCacheKey());
|
|
11296
11308
|
return {
|
|
11297
11309
|
view: data
|
|
11298
11310
|
};
|
|
@@ -11313,23 +11325,6 @@ var ProjectView;
|
|
|
11313
11325
|
return `${Api.ECacheKey.ProjectView}${Api.ECacheKey.Id}${viewId}`;
|
|
11314
11326
|
}
|
|
11315
11327
|
ProjectView.GetCacheKey = GetCacheKey;
|
|
11316
|
-
/**
|
|
11317
|
-
* Returns cache identifier for a list of project views.
|
|
11318
|
-
* Example: {
|
|
11319
|
-
* const api: BruceApi.Api = ...;
|
|
11320
|
-
* const key = GetListCacheKey();
|
|
11321
|
-
* api.Cache.Remove(key);
|
|
11322
|
-
* }
|
|
11323
|
-
* @param type optional filter for the type of project view.
|
|
11324
|
-
* @returns
|
|
11325
|
-
*/
|
|
11326
|
-
function GetListCacheKey(type) {
|
|
11327
|
-
if (type) {
|
|
11328
|
-
return `${Api.ECacheKey.ProjectView}${Api.ECacheKey.ListId}${type}`;
|
|
11329
|
-
}
|
|
11330
|
-
return `${Api.ECacheKey.ProjectView}${Api.ECacheKey.ListId}`;
|
|
11331
|
-
}
|
|
11332
|
-
ProjectView.GetListCacheKey = GetListCacheKey;
|
|
11333
11328
|
})(ProjectView || (ProjectView = {}));
|
|
11334
11329
|
|
|
11335
11330
|
function getTemplateSettings(apiGetter, reqParams) {
|
|
@@ -16442,7 +16437,7 @@ var Tracking;
|
|
|
16442
16437
|
})(Tracking || (Tracking = {}));
|
|
16443
16438
|
|
|
16444
16439
|
// This is updated with the package.json version on build.
|
|
16445
|
-
const VERSION = "6.6.
|
|
16440
|
+
const VERSION = "6.6.9";
|
|
16446
16441
|
|
|
16447
16442
|
export { VERSION, Assembly, 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, EntityAttribute, EntityHistoricData, EntityTableView, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, ProjectViewBookmarkGroup, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, UserMfaMethod, Account, AccountInvite, AccountFeatures, AccountLimits, AccountTemplate, AccountType, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, DataLabGroup, ImportAssembly, ImportCad, ImportCsv, ImportJson, ImportGeoJson, ImportKml, ImportedFile, ExportBrz, ExportUsd, Markup, Uploader, Plugin, ENVIRONMENT, DataSource, Scenario, Tracking };
|
|
16448
16443
|
//# sourceMappingURL=bruce-models.es5.js.map
|