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.es5.js
CHANGED
|
@@ -1868,7 +1868,7 @@ var EntityAttachmentType;
|
|
|
1868
1868
|
if (!(data === null || data === void 0 ? void 0 : data.ID)) {
|
|
1869
1869
|
throw ("Type ID is required.");
|
|
1870
1870
|
}
|
|
1871
|
-
return [4 /*yield*/, api.
|
|
1871
|
+
return [4 /*yield*/, api.POST("entityAttachmentType/" + data.ID, data, Api.PrepReqParams())];
|
|
1872
1872
|
case 1:
|
|
1873
1873
|
data = _a.sent();
|
|
1874
1874
|
api.Cache.Remove(GetCacheKey(data.ID));
|
|
@@ -2454,7 +2454,7 @@ var EntityRelationType;
|
|
|
2454
2454
|
if (!data.ID) {
|
|
2455
2455
|
data.ID = ObjectUtils.UId();
|
|
2456
2456
|
}
|
|
2457
|
-
return [4 /*yield*/, api.
|
|
2457
|
+
return [4 /*yield*/, api.POST("entityRelationType/" + data.ID, data, Api.PrepReqParams())];
|
|
2458
2458
|
case 1:
|
|
2459
2459
|
data = _a.sent();
|
|
2460
2460
|
api.Cache.Remove(GetCacheKey(data.ID));
|
|
@@ -2496,7 +2496,7 @@ var EntityRelation;
|
|
|
2496
2496
|
throw ("Principal Entity ID, Related Entity ID, and Relation Type ID are required.");
|
|
2497
2497
|
}
|
|
2498
2498
|
url = "entity/" + data["Principal.Entity.ID"] + "/otherEntityID/" + data["Related.Entity.ID"] + "/relation/" + data["Relation.Type.ID"] + "/update";
|
|
2499
|
-
return [4 /*yield*/, api.
|
|
2499
|
+
return [4 /*yield*/, api.POST(url, data, Api.PrepReqParams())];
|
|
2500
2500
|
case 1:
|
|
2501
2501
|
data = _a.sent();
|
|
2502
2502
|
api.Cache.RemoveByStartsWith(Api.ECacheKey.Relation + Api.ECacheKey.Id + data["Principal.Entity.ID"]);
|
|
@@ -2888,7 +2888,7 @@ var EntityTag;
|
|
|
2888
2888
|
throw ("Tag ID is required.");
|
|
2889
2889
|
}
|
|
2890
2890
|
url = data.ID ? "layer/" + data.ID : "layer";
|
|
2891
|
-
return [4 /*yield*/, api.
|
|
2891
|
+
return [4 /*yield*/, api.POST(url, data, Api.PrepReqParams())];
|
|
2892
2892
|
case 1:
|
|
2893
2893
|
data = _a.sent();
|
|
2894
2894
|
api.Cache.Remove(GetCacheKey(data.ID));
|
|
@@ -3751,7 +3751,7 @@ var ProgramKey;
|
|
|
3751
3751
|
if (!(data === null || data === void 0 ? void 0 : data.ProgramId)) {
|
|
3752
3752
|
throw ("Program ID is required.");
|
|
3753
3753
|
}
|
|
3754
|
-
return [4 /*yield*/, api.
|
|
3754
|
+
return [4 /*yield*/, api.POST("programkey", data, Api.PrepReqParams())];
|
|
3755
3755
|
case 1:
|
|
3756
3756
|
data = _a.sent();
|
|
3757
3757
|
api.Cache.Remove(GetCacheKey(data.ProgramId));
|
|
@@ -3905,7 +3905,7 @@ var Tileset;
|
|
|
3905
3905
|
res = _a.sent();
|
|
3906
3906
|
data = __assign(__assign({}, data), res);
|
|
3907
3907
|
_a.label = 2;
|
|
3908
|
-
case 2: return [4 /*yield*/, api.
|
|
3908
|
+
case 2: return [4 /*yield*/, api.POST("tileset", data)];
|
|
3909
3909
|
case 3:
|
|
3910
3910
|
data = _a.sent();
|
|
3911
3911
|
api.Cache.RemoveByStartsWith(Api.ECacheKey.Tileset + Api.ECacheKey.Id + data.id);
|
|
@@ -4338,7 +4338,7 @@ var ProjectViewBookmark;
|
|
|
4338
4338
|
if (!(data === null || data === void 0 ? void 0 : data.Title)) {
|
|
4339
4339
|
data.Title = data.ID;
|
|
4340
4340
|
}
|
|
4341
|
-
return [4 /*yield*/, api.
|
|
4341
|
+
return [4 /*yield*/, api.POST("ui.view/" + viewId + "/slide/" + data.ID, data, Api.PrepReqParams())];
|
|
4342
4342
|
case 1:
|
|
4343
4343
|
data = _a.sent();
|
|
4344
4344
|
api.Cache.Remove(GetCacheKey(viewId, data.ID));
|
|
@@ -4449,7 +4449,7 @@ var ProjectView;
|
|
|
4449
4449
|
if (!(data === null || data === void 0 ? void 0 : data.Name)) {
|
|
4450
4450
|
data.Name = data.ID;
|
|
4451
4451
|
}
|
|
4452
|
-
return [4 /*yield*/, api.
|
|
4452
|
+
return [4 /*yield*/, api.POST("ui.view", data, Api.PrepReqParams())];
|
|
4453
4453
|
case 1:
|
|
4454
4454
|
data = _a.sent();
|
|
4455
4455
|
api.Cache.Remove(GetCacheKey(data.ID));
|
|
@@ -4756,7 +4756,7 @@ var Ucs;
|
|
|
4756
4756
|
if (!(data === null || data === void 0 ? void 0 : data.name)) {
|
|
4757
4757
|
throw ("UCS name is required.");
|
|
4758
4758
|
}
|
|
4759
|
-
return [4 /*yield*/, api.
|
|
4759
|
+
return [4 /*yield*/, api.POST("ucs" + (!data.id ? "" : "/" + data.id), data)];
|
|
4760
4760
|
case 1:
|
|
4761
4761
|
data = _a.sent();
|
|
4762
4762
|
api.Cache.RemoveByStartsWith(Api.ECacheKey.Ucs + Api.ECacheKey.Id + data.id);
|