* @brief Input schema for assistant.workspace.addTile. */
| 161 | * @brief Input schema for assistant.workspace.addTile. |
| 162 | */ |
| 163 | static QJsonObject tileInputSchema() |
| 164 | { |
| 165 | QJsonObject props; |
| 166 | props[QStringLiteral("workspaceId")] = |
| 167 | makeProperty(QStringLiteral("integer"), QStringLiteral("Workspace id. Preferred if known.")); |
| 168 | props[QStringLiteral("workspace")] = |
| 169 | makeProperty(QStringLiteral("string"), QStringLiteral("Workspace title when id is unknown.")); |
| 170 | props[QStringLiteral("createWorkspace")] = makeProperty( |
| 171 | QStringLiteral("boolean"), QStringLiteral("Create the named workspace if it does not exist.")); |
| 172 | props[QStringLiteral("groupId")] = |
| 173 | makeProperty(QStringLiteral("integer"), QStringLiteral("Group id that owns the tile.")); |
| 174 | props[QStringLiteral("group")] = |
| 175 | makeProperty(QStringLiteral("string"), QStringLiteral("Group title when id is unknown.")); |
| 176 | props[QStringLiteral("dataset")] = |
| 177 | makeProperty(QStringLiteral("string"), |
| 178 | QStringLiteral("Optional dataset path/title. Required when the widget must be " |
| 179 | "enabled on a specific dataset.")); |
| 180 | props[Keys::UniqueId] = |
| 181 | makeProperty(QStringLiteral("integer"), QStringLiteral("Optional dataset uniqueId.")); |
| 182 | props[QStringLiteral("widgetType")] = |
| 183 | stringEnumProperty(QStringLiteral("Dashboard widget slug to add."), |
| 184 | QStringList{QStringLiteral("plot"), |
| 185 | QStringLiteral("fft"), |
| 186 | QStringLiteral("bar"), |
| 187 | QStringLiteral("gauge"), |
| 188 | QStringLiteral("compass"), |
| 189 | QStringLiteral("led"), |
| 190 | QStringLiteral("waterfall"), |
| 191 | QStringLiteral("datagrid"), |
| 192 | QStringLiteral("multiplot"), |
| 193 | QStringLiteral("accelerometer"), |
| 194 | QStringLiteral("gyroscope"), |
| 195 | QStringLiteral("gps"), |
| 196 | QStringLiteral("plot3d"), |
| 197 | QStringLiteral("imageview"), |
| 198 | QStringLiteral("painter"), |
| 199 | QStringLiteral("output-panel"), |
| 200 | QStringLiteral("notification-log")}); |
| 201 | props[QStringLiteral("ranges")] = |
| 202 | makeProperty(QStringLiteral("object"), |
| 203 | QStringLiteral("Optional dataset range patch: pltMin/pltMax/wgtMin/wgtMax/" |
| 204 | "fftMin/fftMax.")); |
| 205 | return makeObjectSchema(props, QJsonArray{QStringLiteral("widgetType")}); |
| 206 | } |
| 207 | |
| 208 | /** |
| 209 | * @brief Input schema for assistant.workspace.plan. |
no test coverage detected