bruce-models 0.5.6 → 0.5.7
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 +37 -0
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +37 -0
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/client-file/client-file.js +23 -0
- package/dist/lib/client-file/client-file.js.map +1 -1
- package/dist/lib/entity/entity-lod.js +14 -0
- package/dist/lib/entity/entity-lod.js.map +1 -1
- package/dist/types/client-file/client-file.d.ts +12 -0
- package/dist/types/entity/entity-lod.d.ts +6 -0
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -2570,6 +2570,20 @@ var EntityLod;
|
|
|
2570
2570
|
});
|
|
2571
2571
|
}
|
|
2572
2572
|
EntityLod.GetTypeLods = GetTypeLods;
|
|
2573
|
+
function Update(api, entityId, params) {
|
|
2574
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2575
|
+
return __generator(this, function (_a) {
|
|
2576
|
+
if (!params["ClientFile.ID"] || !params["LODCategory.Key"] || !params.Level) {
|
|
2577
|
+
throw ("ClientFile.ID, LODCategory.Key and Level are required.");
|
|
2578
|
+
}
|
|
2579
|
+
return [2 /*return*/, api.POST("entity/" + entityId + "/lod/" + params["LODCategory.Key"] + "/" + params.Level, {
|
|
2580
|
+
"Level": 0,
|
|
2581
|
+
"ClientFile.ID": params["ClientFile.ID"]
|
|
2582
|
+
}, Api.PrepReqParams())];
|
|
2583
|
+
});
|
|
2584
|
+
});
|
|
2585
|
+
}
|
|
2586
|
+
EntityLod.Update = Update;
|
|
2573
2587
|
})(EntityLod || (EntityLod = {}));
|
|
2574
2588
|
|
|
2575
2589
|
/**
|
|
@@ -3915,6 +3929,29 @@ var ClientFile;
|
|
|
3915
3929
|
})(V1 = Filter.V1 || (Filter.V1 = {}));
|
|
3916
3930
|
// TODO: Helpers for constructing the filter.
|
|
3917
3931
|
})(Filter = ClientFile.Filter || (ClientFile.Filter = {}));
|
|
3932
|
+
var Processor;
|
|
3933
|
+
(function (Processor) {
|
|
3934
|
+
var EConvertExt;
|
|
3935
|
+
(function (EConvertExt) {
|
|
3936
|
+
EConvertExt["GLB"] = ".glb";
|
|
3937
|
+
EConvertExt["SKP"] = ".skp";
|
|
3938
|
+
})(EConvertExt = Processor.EConvertExt || (Processor.EConvertExt = {}));
|
|
3939
|
+
function ConvertFormat(api, clientFileId, ext) {
|
|
3940
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3941
|
+
return __generator(this, function (_a) {
|
|
3942
|
+
if (!clientFileId || !ext) {
|
|
3943
|
+
throw ("Client File ID and extension are required.");
|
|
3944
|
+
}
|
|
3945
|
+
return [2 /*return*/, api.POST("convertFileToFile", {
|
|
3946
|
+
clientFileId: clientFileId,
|
|
3947
|
+
destinationFormat: ext,
|
|
3948
|
+
operations: []
|
|
3949
|
+
}, Api.PrepReqParams())];
|
|
3950
|
+
});
|
|
3951
|
+
});
|
|
3952
|
+
}
|
|
3953
|
+
Processor.ConvertFormat = ConvertFormat;
|
|
3954
|
+
})(Processor = ClientFile.Processor || (ClientFile.Processor = {}));
|
|
3918
3955
|
})(ClientFile || (ClientFile = {}));
|
|
3919
3956
|
|
|
3920
3957
|
/**
|