bruce-models 0.2.9 → 0.3.0
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 +9 -9
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +9 -9
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/entity/entity-attachment-type.js +1 -1
- package/dist/lib/entity/entity-relation-type.js +1 -1
- package/dist/lib/entity/entity-relation.js +1 -1
- package/dist/lib/entity/entity-tag.js +1 -1
- package/dist/lib/program-key/program-key.js +1 -1
- package/dist/lib/project/project-view-bookmark.js +1 -1
- package/dist/lib/project/project-view.js +1 -1
- package/dist/lib/tileset/tileset.js +1 -1
- package/dist/lib/ucs/ucs.js +1 -1
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -1839,7 +1839,7 @@
|
|
|
1839
1839
|
if (!(data === null || data === void 0 ? void 0 : data.ID)) {
|
|
1840
1840
|
throw ("Type ID is required.");
|
|
1841
1841
|
}
|
|
1842
|
-
return [4 /*yield*/, api.
|
|
1842
|
+
return [4 /*yield*/, api.POST("entityAttachmentType/" + data.ID, data, exports.Api.PrepReqParams())];
|
|
1843
1843
|
case 1:
|
|
1844
1844
|
data = _a.sent();
|
|
1845
1845
|
api.Cache.Remove(GetCacheKey(data.ID));
|
|
@@ -2397,7 +2397,7 @@
|
|
|
2397
2397
|
if (!data.ID) {
|
|
2398
2398
|
data.ID = exports.ObjectUtils.UId();
|
|
2399
2399
|
}
|
|
2400
|
-
return [4 /*yield*/, api.
|
|
2400
|
+
return [4 /*yield*/, api.POST("entityRelationType/" + data.ID, data, exports.Api.PrepReqParams())];
|
|
2401
2401
|
case 1:
|
|
2402
2402
|
data = _a.sent();
|
|
2403
2403
|
api.Cache.Remove(GetCacheKey(data.ID));
|
|
@@ -2433,7 +2433,7 @@
|
|
|
2433
2433
|
throw ("Principal Entity ID, Related Entity ID, and Relation Type ID are required.");
|
|
2434
2434
|
}
|
|
2435
2435
|
url = "entity/" + data["Principal.Entity.ID"] + "/otherEntityID/" + data["Related.Entity.ID"] + "/relation/" + data["Relation.Type.ID"] + "/update";
|
|
2436
|
-
return [4 /*yield*/, api.
|
|
2436
|
+
return [4 /*yield*/, api.POST(url, data, exports.Api.PrepReqParams())];
|
|
2437
2437
|
case 1:
|
|
2438
2438
|
data = _a.sent();
|
|
2439
2439
|
api.Cache.RemoveByStartsWith(exports.Api.ECacheKey.Relation + exports.Api.ECacheKey.Id + data["Principal.Entity.ID"]);
|
|
@@ -2813,7 +2813,7 @@
|
|
|
2813
2813
|
throw ("Tag ID is required.");
|
|
2814
2814
|
}
|
|
2815
2815
|
url = data.ID ? "layer/" + data.ID : "layer";
|
|
2816
|
-
return [4 /*yield*/, api.
|
|
2816
|
+
return [4 /*yield*/, api.POST(url, data, exports.Api.PrepReqParams())];
|
|
2817
2817
|
case 1:
|
|
2818
2818
|
data = _a.sent();
|
|
2819
2819
|
api.Cache.Remove(GetCacheKey(data.ID));
|
|
@@ -3643,7 +3643,7 @@
|
|
|
3643
3643
|
if (!(data === null || data === void 0 ? void 0 : data.ProgramId)) {
|
|
3644
3644
|
throw ("Program ID is required.");
|
|
3645
3645
|
}
|
|
3646
|
-
return [4 /*yield*/, api.
|
|
3646
|
+
return [4 /*yield*/, api.POST("programkey", data, exports.Api.PrepReqParams())];
|
|
3647
3647
|
case 1:
|
|
3648
3648
|
data = _a.sent();
|
|
3649
3649
|
api.Cache.Remove(GetCacheKey(data.ProgramId));
|
|
@@ -3785,7 +3785,7 @@
|
|
|
3785
3785
|
res = _a.sent();
|
|
3786
3786
|
data = __assign(__assign({}, data), res);
|
|
3787
3787
|
_a.label = 2;
|
|
3788
|
-
case 2: return [4 /*yield*/, api.
|
|
3788
|
+
case 2: return [4 /*yield*/, api.POST("tileset", data)];
|
|
3789
3789
|
case 3:
|
|
3790
3790
|
data = _a.sent();
|
|
3791
3791
|
api.Cache.RemoveByStartsWith(exports.Api.ECacheKey.Tileset + exports.Api.ECacheKey.Id + data.id);
|
|
@@ -4205,7 +4205,7 @@
|
|
|
4205
4205
|
if (!(data === null || data === void 0 ? void 0 : data.Title)) {
|
|
4206
4206
|
data.Title = data.ID;
|
|
4207
4207
|
}
|
|
4208
|
-
return [4 /*yield*/, api.
|
|
4208
|
+
return [4 /*yield*/, api.POST("ui.view/" + viewId + "/slide/" + data.ID, data, exports.Api.PrepReqParams())];
|
|
4209
4209
|
case 1:
|
|
4210
4210
|
data = _a.sent();
|
|
4211
4211
|
api.Cache.Remove(GetCacheKey(viewId, data.ID));
|
|
@@ -4310,7 +4310,7 @@
|
|
|
4310
4310
|
if (!(data === null || data === void 0 ? void 0 : data.Name)) {
|
|
4311
4311
|
data.Name = data.ID;
|
|
4312
4312
|
}
|
|
4313
|
-
return [4 /*yield*/, api.
|
|
4313
|
+
return [4 /*yield*/, api.POST("ui.view", data, exports.Api.PrepReqParams())];
|
|
4314
4314
|
case 1:
|
|
4315
4315
|
data = _a.sent();
|
|
4316
4316
|
api.Cache.Remove(GetCacheKey(data.ID));
|
|
@@ -4595,7 +4595,7 @@
|
|
|
4595
4595
|
if (!(data === null || data === void 0 ? void 0 : data.name)) {
|
|
4596
4596
|
throw ("UCS name is required.");
|
|
4597
4597
|
}
|
|
4598
|
-
return [4 /*yield*/, api.
|
|
4598
|
+
return [4 /*yield*/, api.POST("ucs" + (!data.id ? "" : "/" + data.id), data)];
|
|
4599
4599
|
case 1:
|
|
4600
4600
|
data = _a.sent();
|
|
4601
4601
|
api.Cache.RemoveByStartsWith(exports.Api.ECacheKey.Ucs + exports.Api.ECacheKey.Id + data.id);
|