Skip to content

Commit

Permalink
update services/api
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed May 1, 2024
1 parent de9ad3c commit 69a9238
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
24 changes: 23 additions & 1 deletion services/api/generated/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -834,7 +843,8 @@
"signalIdentifier",
"timeseriesId",
"deviceId",
"driverIdentifier"
"driverIdentifier",
"physicalQuantity"
],
"title": "CarlosDeviceSignal",
"description": "The properties of a device signal."
Expand Down Expand Up @@ -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": {
Expand Down
14 changes: 14 additions & 0 deletions services/frontend/src/api/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 69a9238

Please sign in to comment.