bruce-models 3.0.1 → 3.0.2
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 +6 -6
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +6 -6
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/entity/entity.js +5 -5
- package/dist/lib/entity/entity.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/entity/entity.d.ts +1 -1
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -2066,10 +2066,10 @@ var Entity;
|
|
|
2066
2066
|
return `${Api.ECacheKey.Entity}${Api.ECacheKey.Id}${entityId}${String(entityTypeId)}${String(Boolean(expandLocation))}`;
|
|
2067
2067
|
}
|
|
2068
2068
|
Entity.GetCacheKey = GetCacheKey;
|
|
2069
|
-
function
|
|
2069
|
+
function GetContainsKey(entityId) {
|
|
2070
2070
|
return `${Api.ECacheKey.Entity}${Api.ECacheKey.Id}${entityId}`;
|
|
2071
2071
|
}
|
|
2072
|
-
Entity.
|
|
2072
|
+
Entity.GetContainsKey = GetContainsKey;
|
|
2073
2073
|
function Get(params) {
|
|
2074
2074
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2075
2075
|
let { api, entityId, req: reqParams, expandLocation, entityTypeId } = params;
|
|
@@ -2183,7 +2183,7 @@ var Entity;
|
|
|
2183
2183
|
throw ("Entity ID is required.");
|
|
2184
2184
|
}
|
|
2185
2185
|
yield api.DELETE(`entity/${entityId}`, Api.PrepReqParams(reqParams));
|
|
2186
|
-
api.Cache.
|
|
2186
|
+
api.Cache.RemoveByContains(GetContainsKey(entityId));
|
|
2187
2187
|
});
|
|
2188
2188
|
}
|
|
2189
2189
|
Entity.Delete = Delete;
|
|
@@ -2201,7 +2201,7 @@ var Entity;
|
|
|
2201
2201
|
}, Api.PrepReqParams(reqParams));
|
|
2202
2202
|
for (let i = 0; i < entityIds.length; i++) {
|
|
2203
2203
|
const entityId = entityIds[i];
|
|
2204
|
-
api.Cache.
|
|
2204
|
+
api.Cache.RemoveByContains(GetContainsKey(entityId));
|
|
2205
2205
|
}
|
|
2206
2206
|
});
|
|
2207
2207
|
}
|
|
@@ -2221,7 +2221,7 @@ var Entity;
|
|
|
2221
2221
|
}
|
|
2222
2222
|
const reqUrl = `entity/${data.Bruce.ID}/?dataoverride=${override}&BruceEntityType=${data.Bruce["EntityType.ID"]}`;
|
|
2223
2223
|
const res = yield api.POST(reqUrl, data, Api.PrepReqParams(reqParams));
|
|
2224
|
-
api.Cache.
|
|
2224
|
+
api.Cache.RemoveByContains(GetContainsKey(data.Bruce.ID));
|
|
2225
2225
|
return {
|
|
2226
2226
|
entity: res
|
|
2227
2227
|
};
|
|
@@ -9108,7 +9108,7 @@ var DataSource;
|
|
|
9108
9108
|
DataSource.GetList = GetList;
|
|
9109
9109
|
})(DataSource || (DataSource = {}));
|
|
9110
9110
|
|
|
9111
|
-
const VERSION = "3.0.
|
|
9111
|
+
const VERSION = "3.0.2";
|
|
9112
9112
|
|
|
9113
9113
|
export { VERSION, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, CamApi, IdmApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityGlobe, EntityFilterGetter, BatchedDataGetter, EntityCoords, EntityTypeVisualSettings, EntityAttribute, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportCad, ImportCsv, ImportJson, ImportKml, ImportedFile, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
|
|
9114
9114
|
//# sourceMappingURL=bruce-models.es5.js.map
|