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
|
@@ -84,7 +84,7 @@ var EntityAttachmentType;
|
|
|
84
84
|
if (!(data === null || data === void 0 ? void 0 : data.ID)) {
|
|
85
85
|
throw ("Type ID is required.");
|
|
86
86
|
}
|
|
87
|
-
return [4 /*yield*/, api.
|
|
87
|
+
return [4 /*yield*/, api.POST("entityAttachmentType/" + data.ID, data, api_1.Api.PrepReqParams())];
|
|
88
88
|
case 1:
|
|
89
89
|
data = _a.sent();
|
|
90
90
|
api.Cache.Remove(GetCacheKey(data.ID));
|
|
@@ -136,7 +136,7 @@ var EntityRelationType;
|
|
|
136
136
|
if (!data.ID) {
|
|
137
137
|
data.ID = object_utils_1.ObjectUtils.UId();
|
|
138
138
|
}
|
|
139
|
-
return [4 /*yield*/, api.
|
|
139
|
+
return [4 /*yield*/, api.POST("entityRelationType/" + data.ID, data, api_1.Api.PrepReqParams())];
|
|
140
140
|
case 1:
|
|
141
141
|
data = _a.sent();
|
|
142
142
|
api.Cache.Remove(GetCacheKey(data.ID));
|
|
@@ -78,7 +78,7 @@ var EntityRelation;
|
|
|
78
78
|
throw ("Principal Entity ID, Related Entity ID, and Relation Type ID are required.");
|
|
79
79
|
}
|
|
80
80
|
url = "entity/" + data["Principal.Entity.ID"] + "/otherEntityID/" + data["Related.Entity.ID"] + "/relation/" + data["Relation.Type.ID"] + "/update";
|
|
81
|
-
return [4 /*yield*/, api.
|
|
81
|
+
return [4 /*yield*/, api.POST(url, data, api_1.Api.PrepReqParams())];
|
|
82
82
|
case 1:
|
|
83
83
|
data = _a.sent();
|
|
84
84
|
api.Cache.RemoveByStartsWith(api_1.Api.ECacheKey.Relation + api_1.Api.ECacheKey.Id + data["Principal.Entity.ID"]);
|
|
@@ -215,7 +215,7 @@ var EntityTag;
|
|
|
215
215
|
throw ("Tag ID is required.");
|
|
216
216
|
}
|
|
217
217
|
url = data.ID ? "layer/" + data.ID : "layer";
|
|
218
|
-
return [4 /*yield*/, api.
|
|
218
|
+
return [4 /*yield*/, api.POST(url, data, api_1.Api.PrepReqParams())];
|
|
219
219
|
case 1:
|
|
220
220
|
data = _a.sent();
|
|
221
221
|
api.Cache.Remove(GetCacheKey(data.ID));
|
|
@@ -138,7 +138,7 @@ var ProgramKey;
|
|
|
138
138
|
if (!(data === null || data === void 0 ? void 0 : data.ProgramId)) {
|
|
139
139
|
throw ("Program ID is required.");
|
|
140
140
|
}
|
|
141
|
-
return [4 /*yield*/, api.
|
|
141
|
+
return [4 /*yield*/, api.POST("programkey", data, api_1.Api.PrepReqParams())];
|
|
142
142
|
case 1:
|
|
143
143
|
data = _a.sent();
|
|
144
144
|
api.Cache.Remove(GetCacheKey(data.ProgramId));
|
|
@@ -142,7 +142,7 @@ var ProjectViewBookmark;
|
|
|
142
142
|
if (!(data === null || data === void 0 ? void 0 : data.Title)) {
|
|
143
143
|
data.Title = data.ID;
|
|
144
144
|
}
|
|
145
|
-
return [4 /*yield*/, api.
|
|
145
|
+
return [4 /*yield*/, api.POST("ui.view/" + viewId + "/slide/" + data.ID, data, api_1.Api.PrepReqParams())];
|
|
146
146
|
case 1:
|
|
147
147
|
data = _a.sent();
|
|
148
148
|
api.Cache.Remove(GetCacheKey(viewId, data.ID));
|
|
@@ -137,7 +137,7 @@ var ProjectView;
|
|
|
137
137
|
if (!(data === null || data === void 0 ? void 0 : data.Name)) {
|
|
138
138
|
data.Name = data.ID;
|
|
139
139
|
}
|
|
140
|
-
return [4 /*yield*/, api.
|
|
140
|
+
return [4 /*yield*/, api.POST("ui.view", data, api_1.Api.PrepReqParams())];
|
|
141
141
|
case 1:
|
|
142
142
|
data = _a.sent();
|
|
143
143
|
api.Cache.Remove(GetCacheKey(data.ID));
|
|
@@ -175,7 +175,7 @@ var Tileset;
|
|
|
175
175
|
res = _a.sent();
|
|
176
176
|
data = __assign(__assign({}, data), res);
|
|
177
177
|
_a.label = 2;
|
|
178
|
-
case 2: return [4 /*yield*/, api.
|
|
178
|
+
case 2: return [4 /*yield*/, api.POST("tileset", data)];
|
|
179
179
|
case 3:
|
|
180
180
|
data = _a.sent();
|
|
181
181
|
api.Cache.RemoveByStartsWith(api_1.Api.ECacheKey.Tileset + api_1.Api.ECacheKey.Id + data.id);
|
package/dist/lib/ucs/ucs.js
CHANGED
|
@@ -121,7 +121,7 @@ var Ucs;
|
|
|
121
121
|
if (!(data === null || data === void 0 ? void 0 : data.name)) {
|
|
122
122
|
throw ("UCS name is required.");
|
|
123
123
|
}
|
|
124
|
-
return [4 /*yield*/, api.
|
|
124
|
+
return [4 /*yield*/, api.POST("ucs" + (!data.id ? "" : "/" + data.id), data)];
|
|
125
125
|
case 1:
|
|
126
126
|
data = _a.sent();
|
|
127
127
|
api.Cache.RemoveByStartsWith(api_1.Api.ECacheKey.Ucs + api_1.Api.ECacheKey.Id + data.id);
|