-
-
Notifications
You must be signed in to change notification settings - Fork 378
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Import/convert from #892 * docs(swagger): Add swagger definitions for SystemRouter * Swagger is an optional feature and should be treated as such * Remove $brand * docs(swagger): Add swagger definitions for NTPClientRouter * chore: Fix package-lock * chore: Fix package-lock * docs(swagger): Document State Attributes and Map Layer + Map Entities * Use tagged version * fix pkg build * add schema validation * remove unnecessary custom jsdoc tag Co-authored-by: Davide Depau <davide@depau.eu>
- Loading branch information
Showing
74 changed files
with
4,509 additions
and
246 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,6 @@ build/ | |
|
||
# IntelliJ Idea project files | ||
.idea/ | ||
|
||
|
||
/backend/lib/res/swagger.json |
15 changes: 15 additions & 0 deletions
15
backend/lib/core/capabilities/doc/ManualControlCapability.swagger.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"components": { | ||
"schemas": { | ||
"ValetudoManualControlMovementCommandType": { | ||
"type": "string", | ||
"enum": [ | ||
"forward", | ||
"backward", | ||
"rotate_clockwise", | ||
"rotate_counterclockwise" | ||
] | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
backend/lib/entities/core/doc/ValetudoDNDConfiguration.swagger.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"components": { | ||
"schemas": { | ||
"ValetudoDNDConfiguration": { | ||
"type": "object", | ||
"properties": { | ||
"enabled": { | ||
"type": "boolean" | ||
}, | ||
"start": { | ||
"$ref": "#/components/schemas/ScheduleTimeDTO" | ||
}, | ||
"end": { | ||
"$ref": "#/components/schemas/ScheduleTimeDTO" | ||
}, | ||
"metaData": { | ||
"type": "object" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
backend/lib/entities/core/doc/ValetudoGoToLocation.swagger.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"components": { | ||
"schemas": { | ||
"ValetudoGoToLocation": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
}, | ||
"coordinates": { | ||
"$ref": "#/components/schemas/CoordinateDTO" | ||
}, | ||
"id": { | ||
"type": "string" | ||
}, | ||
"metaData": { | ||
"type": "object" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
backend/lib/entities/core/doc/ValetudoMapSegment.swagger.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"components": { | ||
"schemas": { | ||
"ValetudoMapSegment": { | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "string" | ||
}, | ||
"name": { | ||
"type": "string" | ||
}, | ||
"metaData": { | ||
"type": "object" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
backend/lib/entities/core/doc/ValetudoMapSnapshot.swagger.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"components": { | ||
"schemas": { | ||
"ValetudoMapSnapshot": { | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "string" | ||
}, | ||
"timestamp": { | ||
"type": "string", | ||
"description": "Datetime in ISO8601 format" | ||
}, | ||
"map": { | ||
"$ref": "#/components/schemas/ValetudoMap" | ||
}, | ||
"metaData": { | ||
"type": "object" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
backend/lib/entities/core/doc/ValetudoRestrictedZone.swagger.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"components": { | ||
"schemas": { | ||
"ValetudoRestrictedZone": { | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"regular", | ||
"mop" | ||
] | ||
}, | ||
"points": { | ||
"type": "object", | ||
"properties": { | ||
"pA": { | ||
"$ref": "#/components/schemas/CoordinateDTO" | ||
}, | ||
"pB": { | ||
"$ref": "#/components/schemas/CoordinateDTO" | ||
}, | ||
"pC": { | ||
"$ref": "#/components/schemas/CoordinateDTO" | ||
}, | ||
"pD": { | ||
"$ref": "#/components/schemas/CoordinateDTO" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"components": { | ||
"schemas": { | ||
"ValetudoSensor": { | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"all", | ||
"accelerometer", | ||
"gyroscope", | ||
"bumper", | ||
"cliff", | ||
"lidar" | ||
] | ||
}, | ||
"subType": { | ||
"type": "string" | ||
}, | ||
"value": {}, | ||
"metaData": { | ||
"type": "object" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
backend/lib/entities/core/doc/ValetudoVirtualRestrictions.swagger.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"components": { | ||
"schemas": { | ||
"ValetudoVirtualRestrictions": { | ||
"type": "object", | ||
"properties": { | ||
"virtualWalls": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/components/schemas/ValetudoVirtualWall" | ||
} | ||
}, | ||
"restrictedZones": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/components/schemas/ValetudoRestrictedZone" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
backend/lib/entities/core/doc/ValetudoVirtualWall.swagger.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"components": { | ||
"schemas": { | ||
"ValetudoVirtualWall": { | ||
"type": "object", | ||
"properties": { | ||
"points": { | ||
"type": "object", | ||
"properties": { | ||
"pA": { | ||
"$ref": "#/components/schemas/CoordinateDTO" | ||
}, | ||
"pB": { | ||
"$ref": "#/components/schemas/CoordinateDTO" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
backend/lib/entities/core/doc/ValetudoVoicePackOperationStatus.swagger.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"components": { | ||
"schemas": { | ||
"ValetudoVoicePackOperationStatus": { | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"idle", | ||
"downloading", | ||
"installing", | ||
"error" | ||
] | ||
}, | ||
"progress": { | ||
"type": "number", | ||
"description": "Percentage" | ||
}, | ||
"metaData": { | ||
"type": "object" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
66 changes: 66 additions & 0 deletions
66
backend/lib/entities/core/doc/ValetudoWifiConfiguration.swagger.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{ | ||
"components": { | ||
"schemas": { | ||
"ValetudoWifiConfiguration": { | ||
"type": "object", | ||
"properties": { | ||
"ssid": { | ||
"type": "string", | ||
"description": "Wireless network name" | ||
}, | ||
"credentials": { | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"type": "string" | ||
}, | ||
"typeSpecificSettings": { | ||
"type": "object", | ||
"description": "Settings depending on type, for example WPA preshared key" | ||
} | ||
} | ||
}, | ||
"details": { | ||
"type": "object", | ||
"properties": { | ||
"state": { | ||
"type": "string", | ||
"enum": [ | ||
"connected", | ||
"not_connected", | ||
"unknown" | ||
] | ||
}, | ||
"downspeed": { | ||
"type": "number" | ||
}, | ||
"upspeed": { | ||
"type": "number" | ||
}, | ||
"signal": { | ||
"type": "number" | ||
}, | ||
"ips": { | ||
"type": "array", | ||
"description": "IP addresses", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"frequency": { | ||
"type": "string", | ||
"enum": [ | ||
"2.4ghz", | ||
"5ghz" | ||
] | ||
} | ||
} | ||
}, | ||
"metaData": { | ||
"type": "object" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"components": { | ||
"schemas": { | ||
"ValetudoZone": { | ||
"type": "object", | ||
"properties": { | ||
"iterations": { | ||
"type": "number" | ||
}, | ||
"points": { | ||
"type": "object", | ||
"properties": { | ||
"pA": { | ||
"$ref": "#/components/schemas/CoordinateDTO" | ||
}, | ||
"pB": { | ||
"$ref": "#/components/schemas/CoordinateDTO" | ||
}, | ||
"pC": { | ||
"$ref": "#/components/schemas/CoordinateDTO" | ||
}, | ||
"pD": { | ||
"$ref": "#/components/schemas/CoordinateDTO" | ||
} | ||
} | ||
}, | ||
"metaData": { | ||
"type": "object" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.