diff --git a/services/api/generated/openapi.json b/services/api/generated/openapi.json index 7155eda8..e7084996 100644 --- a/services/api/generated/openapi.json +++ b/services/api/generated/openapi.json @@ -824,6 +824,15 @@ "minLength": 1, "title": "Driveridentifier", "description": "The unique identifier of the driver in the context of the device." + }, + "physicalQuantity": { + "allOf": [ + { + "$ref": "#/components/schemas/PhysicalQuantity" + } + ], + "description": "The matching physical quantity of the unit of measurement.", + "readOnly": true } }, "type": "object", @@ -834,7 +843,8 @@ "signalIdentifier", "timeseriesId", "deviceId", - "driverIdentifier" + "driverIdentifier", + "physicalQuantity" ], "title": "CarlosDeviceSignal", "description": "The properties of a device signal." @@ -952,6 +962,18 @@ "title": "HealthStatus", "description": "The status of the API." }, + "PhysicalQuantity": { + "type": "integer", + "enum": [ + 0, + 1, + 2, + 3, + 4 + ], + "title": "PhysicalQuantity", + "description": "An enumeration of supported physical quantities\n\n- 0 = IDENTITY\n- 1 = TEMPERATURE\n- 2 = HUMIDITY\n- 3 = ILLUMINANCE\n- 4 = RATIO" + }, "TimeseriesData": { "properties": { "timeseriesId": { diff --git a/services/frontend/src/api/openapi.ts b/services/frontend/src/api/openapi.ts index 539d2e04..2b8284eb 100644 --- a/services/frontend/src/api/openapi.ts +++ b/services/frontend/src/api/openapi.ts @@ -223,6 +223,8 @@ export interface components { * @description The unique identifier of the driver in the context of the device. */ driverIdentifier: string; + /** @description The matching physical quantity of the unit of measurement. */ + physicalQuantity: components["schemas"]["PhysicalQuantity"]; }; /** * CarlosDeviceSignalUpdate @@ -287,6 +289,18 @@ export interface components { * @enum {string} */ HealthStatus: "ok" | "no_db_connection" | "error"; + /** + * PhysicalQuantity + * @description An enumeration of supported physical quantities + * + * - 0 = IDENTITY + * - 1 = TEMPERATURE + * - 2 = HUMIDITY + * - 3 = ILLUMINANCE + * - 4 = RATIO + * @enum {integer} + */ + PhysicalQuantity: 0 | 1 | 2 | 3 | 4; /** * TimeseriesData * @description Holds the timeseries data of a signale sensor.