bruce-models 6.1.4 → 6.1.6
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 +17 -10
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +17 -10
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/client-file/client-file.js +16 -9
- package/dist/lib/client-file/client-file.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/client-file/client-file.d.ts +18 -2
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -8878,7 +8878,7 @@
|
|
|
8878
8878
|
});
|
|
8879
8879
|
// TODO: Check if we can add it to the request like the small file upload.
|
|
8880
8880
|
if ((clientFile === null || clientFile === void 0 ? void 0 : clientFile.ID) && purpose) {
|
|
8881
|
-
yield UpdatePurpose({
|
|
8881
|
+
yield ClientFile.UpdatePurpose({
|
|
8882
8882
|
api,
|
|
8883
8883
|
fileId: clientFile.ID,
|
|
8884
8884
|
purpose,
|
|
@@ -8915,23 +8915,30 @@
|
|
|
8915
8915
|
* Updates the purpose of a client file.
|
|
8916
8916
|
* @param params
|
|
8917
8917
|
*/
|
|
8918
|
-
function
|
|
8918
|
+
function Update(params) {
|
|
8919
8919
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8920
|
-
let { api, fileId, purpose, req: reqParams } = params;
|
|
8920
|
+
let { api, fileId, purpose, layerIds, req: reqParams, dataEntityId } = params;
|
|
8921
8921
|
if (!api) {
|
|
8922
8922
|
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
8923
8923
|
}
|
|
8924
|
-
|
|
8925
|
-
|
|
8924
|
+
const data = {};
|
|
8925
|
+
if (layerIds != null) {
|
|
8926
|
+
data["Layer.ID"] = layerIds;
|
|
8926
8927
|
}
|
|
8927
|
-
|
|
8928
|
-
Purpose:
|
|
8929
|
-
}
|
|
8928
|
+
if (purpose != null) {
|
|
8929
|
+
data.Purpose = purpose ? purpose : "";
|
|
8930
|
+
}
|
|
8931
|
+
if (dataEntityId != null) {
|
|
8932
|
+
data["Data.Entity.ID"] = dataEntityId ? dataEntityId : "";
|
|
8933
|
+
}
|
|
8934
|
+
yield api.POST(`file/${fileId}/details`, data, exports.Api.PrepReqParams(reqParams));
|
|
8930
8935
|
const cacheKey = GetCacheKey(fileId);
|
|
8931
8936
|
api.Cache.RemoveByContains(cacheKey);
|
|
8932
8937
|
});
|
|
8933
8938
|
}
|
|
8934
|
-
ClientFile.
|
|
8939
|
+
ClientFile.Update = Update;
|
|
8940
|
+
// @deprecated. Use Update instead.
|
|
8941
|
+
ClientFile.UpdatePurpose = Update;
|
|
8935
8942
|
/**
|
|
8936
8943
|
* Uploads a temp file.
|
|
8937
8944
|
* This will return a temp file ID.
|
|
@@ -15541,7 +15548,7 @@
|
|
|
15541
15548
|
})(exports.Tracking || (exports.Tracking = {}));
|
|
15542
15549
|
|
|
15543
15550
|
// This is updated with the package.json version on build.
|
|
15544
|
-
const VERSION = "6.1.
|
|
15551
|
+
const VERSION = "6.1.6";
|
|
15545
15552
|
|
|
15546
15553
|
exports.VERSION = VERSION;
|
|
15547
15554
|
exports.AbstractApi = AbstractApi;
|