refactor(server): calculate asset type server-side

This commit is contained in:
Jason Rasmussen
2023-07-10 15:12:43 -04:00
parent 6180828ed2
commit 120727889f
13 changed files with 74 additions and 253 deletions
-12
View File
@@ -5069,9 +5069,6 @@
"CreateAssetDto": {
"type": "object",
"properties": {
"assetType": {
"$ref": "#/components/schemas/AssetTypeEnum"
},
"assetData": {
"type": "string",
"format": "binary"
@@ -5088,9 +5085,6 @@
"type": "boolean",
"default": false
},
"fileExtension": {
"type": "string"
},
"deviceAssetId": {
"type": "string"
},
@@ -5119,9 +5113,7 @@
}
},
"required": [
"assetType",
"assetData",
"fileExtension",
"deviceAssetId",
"deviceId",
"fileCreatedAt",
@@ -5492,9 +5484,6 @@
"ImportAssetDto": {
"type": "object",
"properties": {
"assetType": {
"$ref": "#/components/schemas/AssetTypeEnum"
},
"isReadOnly": {
"type": "boolean",
"default": true
@@ -5533,7 +5522,6 @@
}
},
"required": [
"assetType",
"assetPath",
"deviceAssetId",
"deviceId",