-
Notifications
You must be signed in to change notification settings - Fork 4
/
manifest.json
executable file
·270 lines (270 loc) · 7.24 KB
/
manifest.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
{
"name": "SQL Importer",
"description": "Import data from your SQL databases",
"picture": "picture.png",
"version": "0.3.27",
"tags": [
"incoming",
"oneColumn",
"beta-release",
"sql-accounts",
"first-install"
],
"private_settings": [
{
"type": "string",
"format": "title",
"name": "connector_info",
"title": "Connector Configuration"
},
{
"name": "import_type",
"title": "Import type",
"description": "What do you want to import to Hull ?",
"type": "string",
"enum": [
"users",
"accounts",
"events"
],
"default": "users",
"required": true
},
{
"name": "enabled",
"title": "Enable Sync (default interval is 3 hours)",
"type": "boolean",
"default": "false"
},
{
"name": "sync_interval",
"title": "Sync interval (in minutes)",
"type": "string",
"default": "180",
"enum": [
"30",
"60",
"180",
"360",
"720",
"1440",
"43800"
]
},
{
"name": "overwrite",
"title": "Use SQL value in case of data conflict",
"type": "boolean",
"default": "true"
},
{
"name": "import_days",
"title": "Incremental Queries - Start Date (x days ago)",
"description": "Enter the number of days and the connector will make a variable called 'import_start_date' available to your query that allows you to run incremental queries. If your SQL query does not use this variable at all, this setting has no effect.",
"type": "number",
"default": "5",
"minimum": 0,
"maximum": 31
},
{
"name" : "dedupe_lines_from_previous_import",
"title" : "Dedupe lines from previous import",
"type" : "boolean",
"default" : true
},
{
"type": "string",
"format": "title",
"name": "db_info",
"title": "Database connection"
},
{
"name": "db_type",
"type": "string",
"title": "Type",
"enum": [
"redshift",
"postgres",
"mysql",
"mssql"
],
"default": "postgres",
"required": true
},
{
"name": "db_host",
"type": "string",
"title": "Host Name",
"required": true,
"description": "The public host name of your database server."
},
{
"name": "db_port",
"type": "number",
"title": "Port",
"required": true,
"description": "Default ports: MySql: 3306, PostgreSQL: 5432, MS SQL: 1433",
"minimum": 0,
"maximum": 65535
},
{
"name": "db_name",
"type": "string",
"title": "Database name",
"required": true
},
{
"name": "db_options",
"type": "string",
"title": "Additional connection options",
"required": false,
"description": "Add connection options for the different database types. See below for more details."
},
{
"name": "db_options_hero",
"type": "string",
"headerTemplate": "***MySql and Postgres***<br>Specify options as plain text in the format `ssl=true`.<br><br>***MS SQL***<br>Specify a valid JSON object like `{\"encrypt\": true}`. Please refer to the [tedious driver documentation](http://tediousjs.github.io/tedious/api-connection.html#function_newConnection) for available options.<br>**Important Note for SQL Azure**: SQL Azure requires the option encrypt to be set to true which is not the default. Please specify `{\"encrypt\": true}` in the options otherwise the connection will be refused.",
"format": "information",
"title": " "
},
{
"type": "string",
"format": "title",
"name": "db_info_login",
"title": "Database Login"
},
{
"name": "db_login_hero",
"type": "string",
"headerTemplate": "***Security Recommendation***<br>We recommend to grant the user below read-only access to dedicated tables to keep your information safe. Please refer to the manual of your database server for additional security recommendations.",
"format": "information",
"title": " "
},
{
"name": "db_user",
"type": "string",
"title": "Username",
"required": true
},
{
"name": "db_password",
"type": "string",
"title": "Password",
"required": true,
"format": "password"
},
{
"name": "query",
"title": "Query to run",
"type": "string",
"format": "hidden"
},
{
"name": "last_sync_at",
"title": "Last sync",
"type": "string",
"format": "hidden"
},
{
"name": "last_updated_at",
"title": "Last updated_at",
"type": "string",
"format": "hidden"
},
{
"name": "last_job_id",
"title": "Last job ID",
"type": "string",
"format": "hidden"
},
{
"type": "string",
"format": "title",
"name": "ssh_tunnel_login",
"title": "SSH Tunnel Login"
},
{
"name": "ssh_host",
"type": "string",
"title": "SSH host"
},
{
"name": "ssh_port",
"type": "string",
"title": "SSH port",
"description": "Defaults to port 22"
},
{
"name": "ssh_username",
"type": "string",
"title": "SSH username"
},
{
"name": "ssh_private_key",
"type": "string",
"format": "textarea",
"title": "SSH private key"
}
],
"settings_sections": [
{
"title": "Database connection",
"description": "***Security Recommendation***<br>We recommend to grant the user below read-only access to dedicated tables to keep your information safe. Please refer to the manual of your database server for additional security recommendations.",
"properties": [
"private_settings.db_type",
"private_settings.db_host",
"private_settings.db_port",
"private_settings.db_name",
"private_settings.db_options",
"private_settings.db_user",
"private_settings.db_password"
]
},
{
"title": "Connector Configuration",
"description": "To write your query, go to the **Overview** tab and click the **Query Editor** button **AFTER** saving these settings",
"properties": [
"private_settings.import_type",
"private_settings.enabled",
"private_settings.sync_interval",
"private_settings.overwrite",
"private_settings.dedupe_lines_from_previous_import",
"private_settings.import_days"
]
},
{
"title": "SSH Tunnel Configuration",
"description": "If your connection must go through an ssh tunnel, please input the information here",
"properties": [
"private_settings.ssh_host",
"private_settings.ssh_port",
"private_settings.ssh_username",
"private_settings.ssh_private_key"
]
}
],
"resources": [],
"readme": "readme.md",
"tabs": [
{
"title": "Query Editor",
"url": "admin.html",
"size": "large",
"editable": true
}
],
"status": {
"url": "/status",
"type": "cron",
"value": "30 * * * *"
},
"ui": false,
"schedules": [
{
"url": "/sync",
"type": "interval",
"value_from": "private_settings.sync_interval",
"default": "180"
}
]
}