-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathappsettings-schema.usync.json
More file actions
402 lines (402 loc) · 13.6 KB
/
appsettings-schema.usync.json
File metadata and controls
402 lines (402 loc) · 13.6 KB
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
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "uSyncAppSettings",
"type": "object",
"properties": {
"uSync": {
"$ref": "#/definitions/USyncuSyncDefinition"
}
},
"definitions": {
"USyncuSyncDefinition": {
"type": "object",
"description": "Configuration of uSync settings",
"properties": {
"Settings": {
"description": "uSync settings",
"oneOf": [
{
"$ref": "#/definitions/USyncBackOfficeConfigurationuSyncSettings"
}
]
},
"ForceFips": {
"type": "boolean",
"description": "Force uSync to use FIPS compliant hashing algorthims when comparing files"
},
"Sets": {
"description": "Settings of Handler sets",
"oneOf": [
{
"$ref": "#/definitions/USyncuSyncSetsDefinition"
}
]
},
"AutoTemplates": {
"description": "Settings for the AutoTemplates package, (dynamic adding of templates based on files on disk)",
"oneOf": [
{
"$ref": "#/definitions/USyncAutoTemplatesDefinition"
}
]
}
}
},
"USyncBackOfficeConfigurationuSyncSettings": {
"type": "object",
"description": "uSync Settings",
"properties": {
"RootFolder": {
"type": "string",
"description": "Location where all uSync files are saved by default",
"default": "uSync/v14/"
},
"Folders": {
"type": "array",
"description": "collection of folders uSync looks in when performing imports.\n ",
"default": "uSync/Root/, uSync/v14/",
"items": {
"type": "string"
}
},
"LegacyFolder": {
"type": "string",
"description": "folder that has old things in. \n ",
"default": "uSync/v9"
},
"IsRootSite": {
"type": "boolean",
"description": "Sets this site to be the root site (so it will save into \"uSync/root/\")\n ",
"default": false
},
"LockRoot": {
"type": "boolean",
"description": "when locked you can't make changes to anything that is in the root",
"default": true
},
"StopFile": {
"type": "string",
"description": "location of the stop file (relative to the uSync folder)\n ",
"default": "usync.stop"
},
"OnceFile": {
"type": "string",
"description": "location of the once file (relative to the uSync folder)\n ",
"default": "usync.once"
},
"IgnoreStopIfOnceExists": {
"type": "boolean",
"description": "When enabled, the presence of a once file will override the stop file, allowing import to proceed\n ",
"default": false
},
"LockRootTypes": {
"type": "array",
"description": "lock specific types at root so they can't be changed in child sites. \n ",
"items": {
"type": "string"
}
},
"BackgroundStartup": {
"type": "boolean",
"description": "Run the uSync startup processes in the background, so the site can start up quicker.\n ",
"default": false
},
"DefaultSet": {
"type": "string",
"description": "The default handler set to use on all notification triggered events",
"default": "Default"
},
"ImportAtStartup": {
"type": "string",
"description": "Import when Umbraco boots (can be group name or 'All' so everything is done, blank or 'none' == off)",
"default": "None"
},
"ExportAtStartup": {
"type": "string",
"description": "Export when Umbraco boots",
"default": "None"
},
"ExportOnSave": {
"type": "string",
"description": "Export when an item is saved in Umbraco",
"default": "All"
},
"UIEnabledGroups": {
"type": "string",
"description": "The handler groups that are enabled in the UI.",
"default": "All"
},
"ReportDebug": {
"type": "boolean",
"description": "Debug reports (creates an export into a temp folder for comparison)",
"default": false
},
"AddOnPing": {
"type": "boolean",
"description": "Ping the AddOnUrl to get the json used to show the addons dashboard",
"default": true
},
"RebuildCacheOnCompletion": {
"type": "boolean",
"description": "Pre Umbraco 8.4 - rebuild the cache was needed after content was imported",
"default": false
},
"FailOnMissingParent": {
"type": "boolean",
"description": "Fail if the items parent is not in umbraco or part of the batch being imported",
"default": false
},
"FailOnDuplicates": {
"type": "boolean",
"description": "fail if a duplicate file of same type and key is detected during the import process.\n ",
"default": false
},
"CacheFolderKeys": {
"type": "boolean",
"description": "Should folder keys be cached (for speed)",
"default": true
},
"ShowVersionCheckWarning": {
"type": "boolean",
"description": "Show a version check warning to the user if the folder version is less than the version expected by uSync.",
"default": true
},
"CustomMappings": {
"type": "object",
"description": "Custom mapping keys, allows users to add a simple config mapping to make one property type to behave like an existing one",
"additionalProperties": {
"type": "string"
}
},
"EnableHistory": {
"type": "boolean",
"description": "Should the history view be on of off ? ",
"default": true
},
"DefaultExtension": {
"type": "string",
"description": "Default file extension for the uSync files. ",
"default": "config"
},
"ImportOnFirstBoot": {
"type": "boolean",
"description": "Import the uSync folder on the first boot. ",
"default": false
},
"FirstBootGroup": {
"type": "string",
"description": "Handler group(s) to run on first boot, default is All (so full import)",
"default": "All"
},
"DisableDashboard": {
"type": "boolean",
"description": "Disable the default dashboard (so people can't accidently press the buttons).",
"default": "false"
},
"SummaryDashboard": {
"type": "boolean",
"description": "summarize results (for when there are loads and loads of items)\n ",
"default": "false"
},
"SummaryLimit": {
"type": "integer",
"description": "limit of items to display before flicking to summary view. (this is per handler)\n ",
"format": "int32",
"default": 1000
},
"HideAddOns": {
"type": "string",
"description": "list of addon (tabs) you don't want to show inside uSync dashboard.\n "
},
"DisableNotificationSuppression": {
"type": "boolean",
"description": "turns off use of the Notifications.Suppress method, so notifications\nfire after every item is imported.\n ",
"default": "true"
},
"BackgroundNotifications": {
"type": "boolean",
"description": "trigger all the notifications in a background thread, \n ",
"default": false
},
"MoveToSection": {
"type": "boolean",
"description": "Move the uSync tree to it's own section in the back office. \n(requires a restart to take effect).\n ",
"default": false
},
"FolderMode": {
"description": "What type of mode the folder should work in (default, root, or production)\n ",
"default": "Normal",
"oneOf": [
{
"$ref": "#/definitions/USyncBackOfficeConfigurationSyncFolderMode"
}
]
},
"ProcessingMode": {
"description": "What type of processing mode to use (normal or background)\n ",
"default": "Background",
"oneOf": [
{
"$ref": "#/definitions/USyncBackOfficeConfigurationSyncProcessingMode"
}
]
},
"ProductionFolder": {
"type": "string",
"description": "location of the 'production' folder to use when in production mode, \nor when creating the production mode files.\n ",
"default": "uSync/production"
}
}
},
"USyncBackOfficeConfigurationSyncFolderMode": {
"type": "string",
"description": "uSync's folder mode - normal, root or production\n ",
"x-enumNames": [
"Normal",
"Root",
"Production"
],
"enum": [
"Normal",
"Root",
"Production"
]
},
"USyncBackOfficeConfigurationSyncProcessingMode": {
"type": "string",
"description": "Mode is where the processing happens - normal or background \n ",
"x-enumNames": [
"Normal",
"Background"
],
"enum": [
"Normal",
"Background"
]
},
"USyncuSyncSetsDefinition": {
"type": "object",
"properties": {
"Default": {
"$ref": "#/definitions/USyncBackOfficeConfigurationuSyncHandlerSetSettings"
}
}
},
"USyncBackOfficeConfigurationuSyncHandlerSetSettings": {
"type": "object",
"description": "Settings for a handler set (group of handlers)",
"properties": {
"Enabled": {
"type": "boolean",
"description": "Is this handler set enabled",
"default": true
},
"HandlerGroups": {
"type": "array",
"description": "List of groups handlers can belong to.",
"items": {
"type": "string"
}
},
"DisabledHandlers": {
"type": "array",
"description": "List of disabled handlers",
"items": {
"type": "string"
}
},
"HandlerDefaults": {
"description": "Default settings for all handlers",
"oneOf": [
{
"$ref": "#/definitions/USyncBackOfficeConfigurationHandlerSettings"
}
]
},
"Handlers": {
"type": "object",
"description": "Settings for named handlers ",
"additionalProperties": {
"$ref": "#/definitions/USyncBackOfficeConfigurationHandlerSettings"
}
},
"IsSelectable": {
"type": "boolean",
"description": "for handlers to appear in the drop down on the dashboard they have to be selectable\n "
}
}
},
"USyncBackOfficeConfigurationHandlerSettings": {
"type": "object",
"description": "Settings to control who a handler works",
"properties": {
"Enabled": {
"type": "boolean",
"description": "Is handler enabled or disabled",
"default": true
},
"Actions": {
"type": "array",
"description": "List of actions the handler is configured for. ",
"items": {
"type": "string"
}
},
"UseFlatStructure": {
"type": "boolean",
"description": "Should use a flat folder structure when exporting items",
"default": true
},
"GuidNames": {
"type": "boolean",
"description": "Items should be saved with their guid/key value as the filename",
"default": false
},
"FailOnMissingParent": {
"type": "boolean",
"description": "Imports should fail if the parent item is missing (if false, item be imported go a close as possible to location)",
"default": false
},
"Group": {
"type": "string",
"description": "Override the group the handler belongs too.",
"default": ""
},
"CreateClean": {
"type": "boolean",
"description": "create a corresponding _clean file for this export \n "
},
"FullFileOnDifference": {
"type": "boolean",
"description": "when saving root items with differences, save all the items, (this is the legacy behavior)\n "
},
"Settings": {
"type": "object",
"description": "Additional settings for the handler",
"additionalProperties": {}
}
}
},
"USyncAutoTemplatesDefinition": {
"type": "object",
"properties": {
"Enabled": {
"type": "boolean",
"description": "Enable AutoTemplates feature",
"default": false
},
"Delete": {
"type": "boolean",
"description": "Delete templates from Umbraco if the file is missing from disk",
"default": false
},
"Delay": {
"type": "integer",
"description": "Amount of time (milliseconds) to wait after file change event before applying changes",
"format": "int32",
"default": 1000
}
}
}
}
}