Skip to content

Commit cef0e9a

Browse files
authored
Merge pull request #28 from squaredup/work/dc/import-rename
Update importDefinitions to new schema
2 parents 43c286b + a52160e commit cef0e9a

6 files changed

Lines changed: 29 additions & 13 deletions

File tree

plugins/TransportForLondon/v1/importDefinitions/default.json renamed to plugins/TransportForLondon/v1/indexDefinitions/default.json

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@
99
"objectMapping": {
1010
"id": "id",
1111
"name": "name",
12-
"type": "line",
13-
"properties": ["serviceTypes", { "lineId": { "column": "id" } }]
12+
"type": { "value": "line" },
13+
"properties": [
14+
"serviceTypes",
15+
{ "lineId": "id" }
16+
]
1417
}
1518
},
1619
{
@@ -22,8 +25,15 @@
2225
"objectMapping": {
2326
"id": "id",
2427
"name": "name",
25-
"type": "station",
26-
"properties": ["lat", "lon", "lines", "lineIds", "icsCode", { "stationId": { "column": "id" } }]
28+
"type": { "value": "station" },
29+
"properties": [
30+
"lat",
31+
"lon",
32+
"lines",
33+
"lineIds",
34+
"icsCode",
35+
{ "stationId": "id" }
36+
]
2737
}
2838
}
2939
]

plugins/TransportForLondon/v1/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "transport-for-london",
33
"displayName": "Transport for London (TfL)",
4-
"version": "1.0.5",
4+
"version": "1.0.6",
55
"author": {
66
"name": "@clarkd",
77
"type": "community"

plugins/UniFi/v1/importDefinitions/default.json renamed to plugins/UniFi/v1/indexDefinitions/default.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
"objectMapping": {
99
"id": "id",
1010
"name": "name",
11-
"type": { "column": "sourceType" },
11+
"type": "sourceType",
1212
"properties": [
13-
{ "deviceId": { "column": "id" } },
14-
{ "ipAddress": { "column": "ip" } },
15-
{ "macAddress": { "column": "mac" } },
13+
{ "deviceId": "id" },
14+
{ "ipAddress": "ip" },
15+
{ "macAddress": "mac" },
1616
"model",
1717
"version"
1818
]

plugins/UniFi/v1/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "unifi",
33
"displayName": "UniFi",
4-
"version": "1.0.6",
4+
"version": "1.0.7",
55
"author": {
66
"name": "@adamkinniburgh",
77
"type": "community"

plugins/UptimeRobot/v2/importDefinitions/default.json renamed to plugins/UptimeRobot/v2/indexDefinitions/default.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,14 @@
1010
"objectMapping": {
1111
"id": "sourceId",
1212
"name": "name",
13-
"type": { "column": "sourceType" },
14-
"properties": ["type", "monitorId", "monitorUrl", "name", "links"]
13+
"type": "sourceType",
14+
"properties": [
15+
"type",
16+
"monitorId",
17+
"monitorUrl",
18+
"name",
19+
"links"
20+
]
1521
}
1622
}
1723
]

plugins/UptimeRobot/v2/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "UptimeRobot",
33
"displayName": "UptimeRobot",
4-
"version": "2.0.1",
4+
"version": "2.0.2",
55
"author": {
66
"name": "@kieranlangton",
77
"type": "community"

0 commit comments

Comments
 (0)