Skip to content

Commit

Permalink
Add plugin parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
pipe01 committed Mar 23, 2024
1 parent ba8116c commit fb55ba1
Show file tree
Hide file tree
Showing 16 changed files with 863 additions and 22 deletions.
2 changes: 2 additions & 0 deletions api/api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,5 @@ declare function require(module: "http"): HTTPService;
declare function require(module: "volume"): VolumeService;
declare function require(module: "media"): MediaService;
declare function require(module: "location"): LocationService;

declare const params: Record<string, string>;
12 changes: 9 additions & 3 deletions app/schemas/net.pipe01.pinepartner.data.AppDatabase/13.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"formatVersion": 1,
"database": {
"version": 13,
"identityHash": "7373061d995feb6177a83d4ddeb71134",
"identityHash": "18bb291464b45777c7b265b8330ec047",
"entities": [
{
"tableName": "Watch",
Expand Down Expand Up @@ -59,7 +59,7 @@
},
{
"tableName": "Plugin",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `name` TEXT NOT NULL, `description` TEXT, `author` TEXT, `sourceCode` TEXT NOT NULL, `checksum` TEXT NOT NULL, `permissions` TEXT NOT NULL, `downloadUrl` TEXT, `enabled` INTEGER NOT NULL, PRIMARY KEY(`id`))",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `name` TEXT NOT NULL, `description` TEXT, `author` TEXT, `sourceCode` TEXT NOT NULL, `checksum` TEXT NOT NULL, `permissions` TEXT NOT NULL, `parameters` TEXT NOT NULL, `downloadUrl` TEXT, `enabled` INTEGER NOT NULL, PRIMARY KEY(`id`))",
"fields": [
{
"fieldPath": "id",
Expand Down Expand Up @@ -103,6 +103,12 @@
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "parameters",
"columnName": "parameters",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "downloadUrl",
"columnName": "downloadUrl",
Expand All @@ -129,7 +135,7 @@
"views": [],
"setupQueries": [
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '7373061d995feb6177a83d4ddeb71134')"
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '18bb291464b45777c7b265b8330ec047')"
]
}
}
186 changes: 186 additions & 0 deletions app/schemas/net.pipe01.pinepartner.data.AppDatabase/14.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,186 @@
{
"formatVersion": 1,
"database": {
"version": 14,
"identityHash": "50f62b0e1b18edde27a001c6c8e5f0a5",
"entities": [
{
"tableName": "Watch",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`address` TEXT NOT NULL, `name` TEXT NOT NULL, `autoConnect` INTEGER NOT NULL DEFAULT true, PRIMARY KEY(`address`))",
"fields": [
{
"fieldPath": "address",
"columnName": "address",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "name",
"columnName": "name",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "autoConnect",
"columnName": "autoConnect",
"affinity": "INTEGER",
"notNull": true,
"defaultValue": "true"
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"address"
]
},
"indices": [],
"foreignKeys": []
},
{
"tableName": "AllowedNotifApp",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`packageName` TEXT NOT NULL, PRIMARY KEY(`packageName`))",
"fields": [
{
"fieldPath": "packageName",
"columnName": "packageName",
"affinity": "TEXT",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"packageName"
]
},
"indices": [],
"foreignKeys": []
},
{
"tableName": "Plugin",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `name` TEXT NOT NULL, `description` TEXT, `author` TEXT, `sourceCode` TEXT NOT NULL, `checksum` TEXT NOT NULL, `permissions` TEXT NOT NULL, `parameters` TEXT NOT NULL, `downloadUrl` TEXT, `enabled` INTEGER NOT NULL, PRIMARY KEY(`id`))",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "name",
"columnName": "name",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "description",
"columnName": "description",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "author",
"columnName": "author",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "sourceCode",
"columnName": "sourceCode",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "checksum",
"columnName": "checksum",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "permissions",
"columnName": "permissions",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "parameters",
"columnName": "parameters",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "downloadUrl",
"columnName": "downloadUrl",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "enabled",
"columnName": "enabled",
"affinity": "INTEGER",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"id"
]
},
"indices": [],
"foreignKeys": []
},
{
"tableName": "ParameterValue",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`pluginId` TEXT NOT NULL, `paramName` TEXT NOT NULL, `value` TEXT NOT NULL, PRIMARY KEY(`pluginId`, `paramName`), FOREIGN KEY(`pluginId`) REFERENCES `Plugin`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )",
"fields": [
{
"fieldPath": "pluginId",
"columnName": "pluginId",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "paramName",
"columnName": "paramName",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "value",
"columnName": "value",
"affinity": "TEXT",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"pluginId",
"paramName"
]
},
"indices": [],
"foreignKeys": [
{
"table": "Plugin",
"onDelete": "CASCADE",
"onUpdate": "NO ACTION",
"columns": [
"pluginId"
],
"referencedColumns": [
"id"
]
}
]
}
],
"views": [],
"setupQueries": [
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '50f62b0e1b18edde27a001c6c8e5f0a5')"
]
}
}
Loading

0 comments on commit fb55ba1

Please sign in to comment.