bruce-models 3.0.0 → 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/lib/project/menu-item.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/entity/entity.d.ts +1 -1
- package/dist/types/project/menu-item.d.ts +1 -0
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -2023,10 +2023,10 @@
|
|
|
2023
2023
|
return `${exports.Api.ECacheKey.Entity}${exports.Api.ECacheKey.Id}${entityId}${String(entityTypeId)}${String(Boolean(expandLocation))}`;
|
|
2024
2024
|
}
|
|
2025
2025
|
Entity.GetCacheKey = GetCacheKey;
|
|
2026
|
-
function
|
|
2026
|
+
function GetContainsKey(entityId) {
|
|
2027
2027
|
return `${exports.Api.ECacheKey.Entity}${exports.Api.ECacheKey.Id}${entityId}`;
|
|
2028
2028
|
}
|
|
2029
|
-
Entity.
|
|
2029
|
+
Entity.GetContainsKey = GetContainsKey;
|
|
2030
2030
|
function Get(params) {
|
|
2031
2031
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2032
2032
|
let { api, entityId, req: reqParams, expandLocation, entityTypeId } = params;
|
|
@@ -2140,7 +2140,7 @@
|
|
|
2140
2140
|
throw ("Entity ID is required.");
|
|
2141
2141
|
}
|
|
2142
2142
|
yield api.DELETE(`entity/${entityId}`, exports.Api.PrepReqParams(reqParams));
|
|
2143
|
-
api.Cache.
|
|
2143
|
+
api.Cache.RemoveByContains(GetContainsKey(entityId));
|
|
2144
2144
|
});
|
|
2145
2145
|
}
|
|
2146
2146
|
Entity.Delete = Delete;
|
|
@@ -2158,7 +2158,7 @@
|
|
|
2158
2158
|
}, exports.Api.PrepReqParams(reqParams));
|
|
2159
2159
|
for (let i = 0; i < entityIds.length; i++) {
|
|
2160
2160
|
const entityId = entityIds[i];
|
|
2161
|
-
api.Cache.
|
|
2161
|
+
api.Cache.RemoveByContains(GetContainsKey(entityId));
|
|
2162
2162
|
}
|
|
2163
2163
|
});
|
|
2164
2164
|
}
|
|
@@ -2178,7 +2178,7 @@
|
|
|
2178
2178
|
}
|
|
2179
2179
|
const reqUrl = `entity/${data.Bruce.ID}/?dataoverride=${override}&BruceEntityType=${data.Bruce["EntityType.ID"]}`;
|
|
2180
2180
|
const res = yield api.POST(reqUrl, data, exports.Api.PrepReqParams(reqParams));
|
|
2181
|
-
api.Cache.
|
|
2181
|
+
api.Cache.RemoveByContains(GetContainsKey(data.Bruce.ID));
|
|
2182
2182
|
return {
|
|
2183
2183
|
entity: res
|
|
2184
2184
|
};
|
|
@@ -8874,7 +8874,7 @@
|
|
|
8874
8874
|
DataSource.GetList = GetList;
|
|
8875
8875
|
})(exports.DataSource || (exports.DataSource = {}));
|
|
8876
8876
|
|
|
8877
|
-
const VERSION = "3.0.
|
|
8877
|
+
const VERSION = "3.0.2";
|
|
8878
8878
|
|
|
8879
8879
|
exports.VERSION = VERSION;
|
|
8880
8880
|
exports.AbstractApi = AbstractApi;
|