@grexx/grexxlinter 0.2.549 → 0.2.595

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -125,6 +125,157 @@
125
125
  ]
126
126
  },
127
127
  "platformRoleType": {
128
- "baseline": "MUST"
128
+ "baseline": "MUST",
129
+ "setValueWhen": [
130
+ {
131
+ "when": {
132
+ "op": "and",
133
+ "items": [
134
+ {
135
+ "op": "cmp",
136
+ "field": null,
137
+ "fieldName": "«[Role name]»",
138
+ "operator": "contains",
139
+ "value": "agents",
140
+ "valueIsField": false,
141
+ "isEmpty": false
142
+ },
143
+ {
144
+ "op": "not",
145
+ "item": {
146
+ "op": "cmp",
147
+ "field": null,
148
+ "fieldName": "«[Role name]»",
149
+ "operator": "contains",
150
+ "value": "allNormalCases",
151
+ "valueIsField": false,
152
+ "isEmpty": false
153
+ }
154
+ }
155
+ ]
156
+ },
157
+ "value": "agent"
158
+ }
159
+ ],
160
+ "optionsWhen": [
161
+ {
162
+ "when": {
163
+ "op": "and",
164
+ "items": [
165
+ {
166
+ "op": "cmp",
167
+ "field": null,
168
+ "fieldName": "«[Role name]»",
169
+ "operator": "contains",
170
+ "value": "agents",
171
+ "valueIsField": false,
172
+ "isEmpty": false
173
+ },
174
+ {
175
+ "op": "cmp",
176
+ "field": null,
177
+ "fieldName": "«[Role name]»",
178
+ "operator": "contains",
179
+ "value": "allNormalCases",
180
+ "valueIsField": false,
181
+ "isEmpty": false
182
+ }
183
+ ]
184
+ },
185
+ "source": {
186
+ "kind": "static",
187
+ "options": [
188
+ {
189
+ "id": "Direct",
190
+ "label": "Direct - related to a page casetype"
191
+ },
192
+ {
193
+ "id": "Indirect",
194
+ "label": "Indirect - Related to another platform role"
195
+ },
196
+ {
197
+ "id": "Special",
198
+ "label": "Special - related to the users"
199
+ },
200
+ {
201
+ "id": "agent",
202
+ "label": "Direct - agent"
203
+ }
204
+ ]
205
+ }
206
+ },
207
+ {
208
+ "when": {
209
+ "op": "and",
210
+ "items": [
211
+ {
212
+ "op": "cmp",
213
+ "field": null,
214
+ "fieldName": "«[Role name]»",
215
+ "operator": "contains",
216
+ "value": "agents",
217
+ "valueIsField": false,
218
+ "isEmpty": false
219
+ },
220
+ {
221
+ "op": "not",
222
+ "item": {
223
+ "op": "cmp",
224
+ "field": null,
225
+ "fieldName": "«[Role name]»",
226
+ "operator": "contains",
227
+ "value": "allNormalCases",
228
+ "valueIsField": false,
229
+ "isEmpty": false
230
+ }
231
+ }
232
+ ]
233
+ },
234
+ "source": {
235
+ "kind": "static",
236
+ "options": [
237
+ {
238
+ "id": "agent",
239
+ "label": "Direct - agent"
240
+ }
241
+ ]
242
+ }
243
+ },
244
+ {
245
+ "when": {
246
+ "op": "not",
247
+ "item": {
248
+ "op": "cmp",
249
+ "field": null,
250
+ "fieldName": "«[Role name]»",
251
+ "operator": "contains",
252
+ "value": "agents",
253
+ "valueIsField": false,
254
+ "isEmpty": false
255
+ }
256
+ },
257
+ "source": {
258
+ "kind": "static",
259
+ "options": [
260
+ {
261
+ "id": "Direct",
262
+ "label": "Direct - related to a page casetype"
263
+ },
264
+ {
265
+ "id": "Indirect",
266
+ "label": "Indirect - Related to another platform role"
267
+ },
268
+ {
269
+ "id": "Special",
270
+ "label": "Special - related to the users"
271
+ },
272
+ {
273
+ "id": "agent",
274
+ "label": "Direct - agent"
275
+ }
276
+ ]
277
+ }
278
+ }
279
+ ]
129
280
  }
130
281
  }
@@ -13,6 +13,37 @@
13
13
  }
14
14
  ]
15
15
  },
16
+ "contexttype": {
17
+ "baseline": "MAY",
18
+ "setValueWhen": [
19
+ {
20
+ "when": {
21
+ "op": "and",
22
+ "items": [
23
+ {
24
+ "op": "cmp",
25
+ "field": "contexttype",
26
+ "fieldName": "Context type",
27
+ "operator": "==",
28
+ "value": "",
29
+ "valueIsField": false,
30
+ "isEmpty": true
31
+ },
32
+ {
33
+ "op": "cmp",
34
+ "field": "type",
35
+ "fieldName": "Type",
36
+ "operator": "!==",
37
+ "value": "",
38
+ "valueIsField": false,
39
+ "isEmpty": true
40
+ }
41
+ ]
42
+ },
43
+ "value": "context"
44
+ }
45
+ ]
46
+ },
16
47
  "fromInlineTemplate": {
17
48
  "baseline": "MAY",
18
49
  "enabledWhen": [
@@ -52,6 +83,36 @@
52
83
  "valueIsField": false,
53
84
  "isEmpty": false
54
85
  }
86
+ ],
87
+ "optionsWhen": [
88
+ {
89
+ "when": {
90
+ "op": "cmp",
91
+ "field": "type",
92
+ "fieldName": "Type",
93
+ "operator": "==",
94
+ "value": "reloadCaches",
95
+ "valueIsField": false,
96
+ "isEmpty": false
97
+ },
98
+ "source": {
99
+ "kind": "static",
100
+ "options": [
101
+ {
102
+ "id": "currentUserCSS",
103
+ "label": "Current user CSS"
104
+ },
105
+ {
106
+ "id": "allCSS",
107
+ "label": "All users CSS"
108
+ },
109
+ {
110
+ "id": "templates",
111
+ "label": "Template preview cache"
112
+ }
113
+ ]
114
+ }
115
+ }
55
116
  ]
56
117
  },
57
118
  "type": {
@@ -95,6 +156,44 @@
95
156
  "valueIsField": false,
96
157
  "isEmpty": false
97
158
  }
159
+ ],
160
+ "optionsWhen": [
161
+ {
162
+ "when": {
163
+ "op": "cmp",
164
+ "field": "contexttype",
165
+ "fieldName": "Context type",
166
+ "operator": "==",
167
+ "value": "context",
168
+ "valueIsField": false,
169
+ "isEmpty": false
170
+ },
171
+ "source": {
172
+ "kind": "static",
173
+ "options": [
174
+ {
175
+ "id": "customDefaultView",
176
+ "label": "Custom default view"
177
+ },
178
+ {
179
+ "id": "redirectToURL",
180
+ "label": "Redirect to URL"
181
+ },
182
+ {
183
+ "id": "submitMessageBody",
184
+ "label": "Body submit message"
185
+ },
186
+ {
187
+ "id": "submitMessageButtonText",
188
+ "label": "Button text submit message"
189
+ },
190
+ {
191
+ "id": "reloadCaches",
192
+ "label": "Reload caches"
193
+ }
194
+ ]
195
+ }
196
+ }
98
197
  ]
99
198
  }
100
199
  }
@@ -1,5 +1,126 @@
1
1
  {
2
2
  "key": {
3
3
  "baseline": "MUST"
4
+ },
5
+ "passwordLength": {
6
+ "baseline": "MUST_NOT",
7
+ "requiredWhen": [
8
+ {
9
+ "op": "cmp",
10
+ "field": "key",
11
+ "operator": "==",
12
+ "value": "passwordLength"
13
+ }
14
+ ]
15
+ },
16
+ "passwordComplexity": {
17
+ "baseline": "MUST_NOT",
18
+ "requiredWhen": [
19
+ {
20
+ "op": "cmp",
21
+ "field": "key",
22
+ "operator": "==",
23
+ "value": "passwordComplexity"
24
+ }
25
+ ]
26
+ },
27
+ "loginMethods": {
28
+ "baseline": "MUST_NOT",
29
+ "requiredWhen": [
30
+ {
31
+ "op": "cmp",
32
+ "field": "key",
33
+ "operator": "==",
34
+ "value": "loginMethods"
35
+ }
36
+ ]
37
+ },
38
+ "twoFactorAuthentication": {
39
+ "baseline": "MUST_NOT",
40
+ "requiredWhen": [
41
+ {
42
+ "op": "cmp",
43
+ "field": "key",
44
+ "operator": "==",
45
+ "value": "twoFactorAuthentication"
46
+ }
47
+ ]
48
+ },
49
+ "twoFactorAuthenticationAllowedMethods": {
50
+ "baseline": "MUST_NOT",
51
+ "requiredWhen": [
52
+ {
53
+ "op": "cmp",
54
+ "field": "key",
55
+ "operator": "==",
56
+ "value": "twoFactorAuthentication-methods"
57
+ }
58
+ ]
59
+ },
60
+ "maximumPasswordAgeDays": {
61
+ "baseline": "MUST_NOT",
62
+ "requiredWhen": [
63
+ {
64
+ "op": "cmp",
65
+ "field": "key",
66
+ "operator": "==",
67
+ "value": "passwordAge"
68
+ }
69
+ ]
70
+ },
71
+ "passwordMinimalLowercase": {
72
+ "baseline": "MUST_NOT",
73
+ "requiredWhen": [
74
+ {
75
+ "op": "cmp",
76
+ "field": "key",
77
+ "operator": "==",
78
+ "value": "passwordMinLowercase"
79
+ }
80
+ ]
81
+ },
82
+ "passwordMinimalUppercase": {
83
+ "baseline": "MUST_NOT",
84
+ "requiredWhen": [
85
+ {
86
+ "op": "cmp",
87
+ "field": "key",
88
+ "operator": "==",
89
+ "value": "passwordMinUppercase"
90
+ }
91
+ ]
92
+ },
93
+ "passwordMinimalSpecialCharacters": {
94
+ "baseline": "MUST_NOT",
95
+ "requiredWhen": [
96
+ {
97
+ "op": "cmp",
98
+ "field": "key",
99
+ "operator": "==",
100
+ "value": "passwordMinSpecial"
101
+ }
102
+ ]
103
+ },
104
+ "passwordMinimalNumbers": {
105
+ "baseline": "MUST_NOT",
106
+ "requiredWhen": [
107
+ {
108
+ "op": "cmp",
109
+ "field": "key",
110
+ "operator": "==",
111
+ "value": "passwordMinNumber"
112
+ }
113
+ ]
114
+ },
115
+ "passwordMaximumSequentialCharacters": {
116
+ "baseline": "MUST_NOT",
117
+ "requiredWhen": [
118
+ {
119
+ "op": "cmp",
120
+ "field": "key",
121
+ "operator": "==",
122
+ "value": "passwordMaxSequential"
123
+ }
124
+ ]
4
125
  }
5
126
  }