forked from fruition-partners/filesync
-
Notifications
You must be signed in to change notification settings - Fork 37
/
app.config.json
152 lines (133 loc) · 6.53 KB
/
app.config.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
{
"roots": {
"/Users/joe.developer/instance/records": {
"host": "some.special.instance.com:16001",
"protocol": "http",
"user": "admin",
"pass": "admin",
"preLoadList": {
"script_includes": ["JSUtil.js", "Transform.js"]
}
},
"c:/dev/project_a": {
"host": "demo001.service-now.com",
"user": "admin",
"pass": "admin"
},
"c:/dev/project_b": {
"host": "demo002.service-now.com",
"auth": "YWRtaW46YWRtaW4="
}
},
"search": {
"__notes_daily_search": {
"readme": "Command line searches to do prior to development start. Full download of all the relevant/new stuff which can be completed as the first step to get the latest version of all config. WARNING: do a sanity check to verify credentials are still valid with limit of 1 first to avoid potential account lock out! (--records_per_search 1)",
"optional_step0_sanity_check": "./bin/app.js --config ../some/folder/app.config.json --search mine --records_per_search 1",
"step1": "./bin/app.js --config ../some/folder/app.config.json --search mine --download",
"step2": "./bin/app.js --config ../some/folder/app.config.json --search team-but-me --download",
"then_start_work": "./bin/app.js --config ../some/folder/app.config.json"
},
"all-from2019": {
"query": "sys_created_on>javascript:gs.dateGenerate('2018-12-31','23:59:59')",
"records_per_search": "10",
"download": false
},
"init": {
"_note": "Query will run across all defined tables. Somewhat experimental in terms of mass download. Once downloaded, will work fine.",
"query": "ORDERBYDESCsys_updated_on",
"records_per_search": "10000",
"download": false
},
"mine": {
"query": "sys_updated_by=javascript:gs.getUserName()^ORsys_created_by=javascript:gs.getUserName()^ORDERBYDESCsys_updated_on",
"records_per_search": "300"
},
"team-but-me": {
"_note": "change the date to reflect when your team/instance was first setup",
"query": "sys_created_on>javascript:gs.dateGenerate('2019-06-01','00:00:00')^sys_created_by!=javascript:gs.getUserName()^sys_created_by!=admin^ORDERBYDESCsys_updated_on",
"records_per_search": "300"
},
"team_active": {
"_note": "change the date to reflect when your team/instance was first setup",
"query": "active=true^sys_created_on>javascript:gs.dateGenerate('2015-03-25','23:59:59')^sys_created_by!=javascript:gs.getUserName()^sys_updated_by!=javascript:gs.getUserName()^sys_created_by!=admin^ORDERBYDESCsys_updated_on",
"records_per_search": "100"
},
"script-includes": {
"table": "sys_script_include",
"query": "active=true^sys_created_on>javascript:gs.dateGenerate('2015-03-25','23:59:59')",
"records_per_search": "1",
"download": true
},
"script-includes-plus": {
"table": "sys_script_include",
"query": "active=true^sys_created_on>javascript:gs.dateGenerate('2015-03-25','23:59:59')",
"records_per_search": "1",
"download": true,
"full_record": true
},
"__notes_instance_download": {
"info": "The below config allows downloading the entier data model including fields and labels. The following ~90K column/dictionary entries are broken down into groups under 10K to avoid exceeding the 10K query limit. The complete cmdb is ignored (~57K records)."
},
"t1": {
"table": "sys_dictionary",
"query": "nameSTARTSWITHa^ORnameSTARTSWITHb^ORnameSTARTSWITHc^ORnameSTARTSWITHd^ORnameSTARTSWITHe^ORnameSTARTSWITHf^ORnameSTARTSWITHg^ORnameSTARTSWITHh^ORnameSTARTSWITHi^ORnameSTARTSWITHj^ORnameSTARTSWITHk^ORnameSTARTSWITHl^ORnameSTARTSWITHm^ORnameSTARTSWITHn^nameNOT LIKEcmdb_",
"records_per_search": "10000",
"download": true,
"full_record": true
},
"t2": {
"table": "sys_dictionary",
"query": "nameSTARTSWITHo^ORnameSTARTSWITHp^ORnameSTARTSWITHq^ORnameSTARTSWITHr^ORnameSTARTSWITHt^ORnameSTARTSWITHu^ORnameSTARTSWITHv^ORnameSTARTSWITHw^ORnameSTARTSWITHx^ORnameSTARTSWITHy^ORnameSTARTSWITHz^nameNOT LIKEcmdb_",
"records_per_search": "10000",
"download": true,
"full_record": true
},
"t3": {
"table": "sys_dictionary",
"query": "nameSTARTSWITHs^nameNOT LIKEcmdb_^nameNOT LIKEsys_",
"records_per_search": "10000",
"download": true,
"full_record": true
},
"t4": {
"table": "sys_dictionary",
"query": "nameSTARTSWITHs^nameNOT LIKEcmdb_^nameLIKEsys_",
"records_per_search": "10000",
"download": true,
"full_record": true
},
"d1": {
"table": "sys_documentation",
"query": "nameSTARTSWITHa^ORnameSTARTSWITHb^ORnameSTARTSWITHc^ORnameSTARTSWITHd^ORnameSTARTSWITHe^ORnameSTARTSWITHf^ORnameSTARTSWITHg^ORnameSTARTSWITHh^ORnameSTARTSWITHi^ORnameSTARTSWITHj^ORnameSTARTSWITHk^ORnameSTARTSWITHl^ORnameSTARTSWITHm^ORnameSTARTSWITHn^nameNOT LIKEcmdb_",
"records_per_search": "10000",
"download": true,
"full_record": true
},
"d2": {
"table": "sys_documentation",
"query": "nameSTARTSWITHo^ORnameSTARTSWITHp^ORnameSTARTSWITHq^ORnameSTARTSWITHr^ORnameSTARTSWITHt^ORnameSTARTSWITHu^ORnameSTARTSWITHv^ORnameSTARTSWITHw^ORnameSTARTSWITHx^ORnameSTARTSWITHy^ORnameSTARTSWITHz^nameNOT LIKEcmdb_",
"records_per_search": "10000",
"download": true,
"full_record": true
},
"d3": {
"table": "sys_documentation",
"query": "nameSTARTSWITHs^nameNOT LIKEcmdb_^nameNOT LIKEsys_",
"records_per_search": "10000",
"download": true,
"full_record": true
},
"d4": {
"table": "sys_documentation",
"query": "nameSTARTSWITHs^nameNOT LIKEcmdb_^nameLIKEsys_",
"records_per_search": "10000",
"download": true,
"full_record": true
}
},
"preLoad": true,
"createAllFolders": true,
"ensureUniqueNames": false,
"ignoreDefaultFolders": false,
"debug": false
}