@grexx/grexxlinter 0.2.343 → 0.2.348
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.
- package/cli.js +186 -9
- package/lsp.js +122 -5
- package/package.json +1 -1
- package/schemas/.coverage.json +75 -567
- package/schemas/activity.schema.json +0 -18
- package/schemas/activityAttribute.schema.json +0 -17
- package/schemas/attribute.schema.json +0 -25
- package/schemas/catchBlock.schema.json +11 -3
- package/schemas/container.schema.json +57 -68
- package/schemas/customThrow.schema.json +11 -3
- package/schemas/dataset.schema.json +0 -52
- package/schemas/datasetColumn.schema.json +0 -109
- package/schemas/datasetCondition.schema.json +0 -77
- package/schemas/folderInfo.schema.json +45 -0
- package/schemas/forEach.schema.json +42 -22
- package/schemas/formAction.schema.json +0 -10
- package/schemas/formfield.schema.json +0 -35
- package/schemas/mapping.schema.json +32 -31
- package/schemas/menuItem.schema.json +43 -51
- package/schemas/metadata.schema.json +0 -17
- package/schemas/platformAttribute.schema.json +0 -22
- package/schemas/platformRole.schema.json +0 -5
- package/schemas/simpleCondition.schema.json +0 -5
- package/schemas/trigger.schema.json +131 -63
- package/schemas/tryBlock.schema.json +11 -3
- package/schemas/view.schema.json +0 -17
- package/schemas/while.schema.json +23 -43
- package/schemas/widget.schema.json +0 -463
|
@@ -299,51 +299,16 @@
|
|
|
299
299
|
"title": "formfield",
|
|
300
300
|
"type": "object",
|
|
301
301
|
"allOf": [
|
|
302
|
-
{
|
|
303
|
-
"properties": {
|
|
304
|
-
"addActivity": false
|
|
305
|
-
}
|
|
306
|
-
},
|
|
307
302
|
{
|
|
308
303
|
"properties": {
|
|
309
304
|
"attributeInfo": false
|
|
310
305
|
}
|
|
311
306
|
},
|
|
312
|
-
{
|
|
313
|
-
"properties": {
|
|
314
|
-
"dateProfile": false
|
|
315
|
-
}
|
|
316
|
-
},
|
|
317
307
|
{
|
|
318
308
|
"properties": {
|
|
319
309
|
"logic": false
|
|
320
310
|
}
|
|
321
311
|
},
|
|
322
|
-
{
|
|
323
|
-
"properties": {
|
|
324
|
-
"addActivityBase": false
|
|
325
|
-
}
|
|
326
|
-
},
|
|
327
|
-
{
|
|
328
|
-
"properties": {
|
|
329
|
-
"picklistBase": false
|
|
330
|
-
}
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
"properties": {
|
|
334
|
-
"placeholder": false
|
|
335
|
-
}
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
"properties": {
|
|
339
|
-
"placeholderUseLabel": false
|
|
340
|
-
}
|
|
341
|
-
},
|
|
342
|
-
{
|
|
343
|
-
"properties": {
|
|
344
|
-
"textRows": false
|
|
345
|
-
}
|
|
346
|
-
},
|
|
347
312
|
{
|
|
348
313
|
"if": {
|
|
349
314
|
"properties": {
|
|
@@ -333,27 +333,13 @@
|
|
|
333
333
|
},
|
|
334
334
|
{
|
|
335
335
|
"if": {
|
|
336
|
-
"
|
|
337
|
-
{
|
|
338
|
-
"
|
|
339
|
-
"showProgress": {
|
|
340
|
-
"const": "true"
|
|
341
|
-
}
|
|
342
|
-
},
|
|
343
|
-
"required": [
|
|
344
|
-
"showProgress"
|
|
345
|
-
]
|
|
346
|
-
},
|
|
347
|
-
{
|
|
348
|
-
"properties": {
|
|
349
|
-
"showProgress": {
|
|
350
|
-
"const": "true"
|
|
351
|
-
}
|
|
352
|
-
},
|
|
353
|
-
"required": [
|
|
354
|
-
"showProgress"
|
|
355
|
-
]
|
|
336
|
+
"properties": {
|
|
337
|
+
"showProgress": {
|
|
338
|
+
"const": "true"
|
|
356
339
|
}
|
|
340
|
+
},
|
|
341
|
+
"required": [
|
|
342
|
+
"showProgress"
|
|
357
343
|
]
|
|
358
344
|
},
|
|
359
345
|
"then": {},
|
|
@@ -395,16 +381,6 @@
|
|
|
395
381
|
}
|
|
396
382
|
}
|
|
397
383
|
},
|
|
398
|
-
{
|
|
399
|
-
"properties": {
|
|
400
|
-
"toAttribute": false
|
|
401
|
-
}
|
|
402
|
-
},
|
|
403
|
-
{
|
|
404
|
-
"properties": {
|
|
405
|
-
"jsonPath": false
|
|
406
|
-
}
|
|
407
|
-
},
|
|
408
384
|
{
|
|
409
385
|
"if": {
|
|
410
386
|
"anyOf": [
|
|
@@ -469,6 +445,32 @@
|
|
|
469
445
|
}
|
|
470
446
|
}
|
|
471
447
|
},
|
|
448
|
+
{
|
|
449
|
+
"if": {
|
|
450
|
+
"properties": {
|
|
451
|
+
"showProgress": {
|
|
452
|
+
"const": "true"
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
"required": [
|
|
456
|
+
"showProgress"
|
|
457
|
+
]
|
|
458
|
+
},
|
|
459
|
+
"then": {
|
|
460
|
+
"anyOf": [
|
|
461
|
+
{
|
|
462
|
+
"required": [
|
|
463
|
+
"progressTemplate"
|
|
464
|
+
]
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
"required": [
|
|
468
|
+
"progressTitle"
|
|
469
|
+
]
|
|
470
|
+
}
|
|
471
|
+
]
|
|
472
|
+
}
|
|
473
|
+
},
|
|
472
474
|
{
|
|
473
475
|
"if": {
|
|
474
476
|
"properties": {
|
|
@@ -646,7 +648,6 @@
|
|
|
646
648
|
},
|
|
647
649
|
"then": {
|
|
648
650
|
"required": [
|
|
649
|
-
"progressTemplate",
|
|
650
651
|
"progressTitle"
|
|
651
652
|
]
|
|
652
653
|
}
|
|
@@ -198,26 +198,6 @@
|
|
|
198
198
|
{
|
|
199
199
|
"if": {
|
|
200
200
|
"anyOf": [
|
|
201
|
-
{
|
|
202
|
-
"properties": {
|
|
203
|
-
"type": {
|
|
204
|
-
"const": "link"
|
|
205
|
-
}
|
|
206
|
-
},
|
|
207
|
-
"required": [
|
|
208
|
-
"type"
|
|
209
|
-
]
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
"properties": {
|
|
213
|
-
"type": {
|
|
214
|
-
"const": "menu"
|
|
215
|
-
}
|
|
216
|
-
},
|
|
217
|
-
"required": [
|
|
218
|
-
"type"
|
|
219
|
-
]
|
|
220
|
-
},
|
|
221
201
|
{
|
|
222
202
|
"properties": {
|
|
223
203
|
"type": {
|
|
@@ -310,26 +290,6 @@
|
|
|
310
290
|
"type"
|
|
311
291
|
]
|
|
312
292
|
},
|
|
313
|
-
{
|
|
314
|
-
"properties": {
|
|
315
|
-
"type": {
|
|
316
|
-
"const": "link"
|
|
317
|
-
}
|
|
318
|
-
},
|
|
319
|
-
"required": [
|
|
320
|
-
"type"
|
|
321
|
-
]
|
|
322
|
-
},
|
|
323
|
-
{
|
|
324
|
-
"properties": {
|
|
325
|
-
"type": {
|
|
326
|
-
"const": "menu"
|
|
327
|
-
}
|
|
328
|
-
},
|
|
329
|
-
"required": [
|
|
330
|
-
"type"
|
|
331
|
-
]
|
|
332
|
-
},
|
|
333
293
|
{
|
|
334
294
|
"properties": {
|
|
335
295
|
"type": {
|
|
@@ -363,7 +323,7 @@
|
|
|
363
323
|
{
|
|
364
324
|
"properties": {
|
|
365
325
|
"type": {
|
|
366
|
-
"const": "
|
|
326
|
+
"const": "text"
|
|
367
327
|
}
|
|
368
328
|
},
|
|
369
329
|
"required": [
|
|
@@ -373,7 +333,7 @@
|
|
|
373
333
|
{
|
|
374
334
|
"properties": {
|
|
375
335
|
"type": {
|
|
376
|
-
"const": "
|
|
336
|
+
"const": "title"
|
|
377
337
|
}
|
|
378
338
|
},
|
|
379
339
|
"required": [
|
|
@@ -383,7 +343,7 @@
|
|
|
383
343
|
{
|
|
384
344
|
"properties": {
|
|
385
345
|
"type": {
|
|
386
|
-
"const": "
|
|
346
|
+
"const": "link"
|
|
387
347
|
}
|
|
388
348
|
},
|
|
389
349
|
"required": [
|
|
@@ -393,7 +353,7 @@
|
|
|
393
353
|
{
|
|
394
354
|
"properties": {
|
|
395
355
|
"type": {
|
|
396
|
-
"const": "
|
|
356
|
+
"const": "menu"
|
|
397
357
|
}
|
|
398
358
|
},
|
|
399
359
|
"required": [
|
|
@@ -413,7 +373,7 @@
|
|
|
413
373
|
"if": {
|
|
414
374
|
"properties": {
|
|
415
375
|
"type": {
|
|
416
|
-
"const": "
|
|
376
|
+
"const": "menu"
|
|
417
377
|
}
|
|
418
378
|
},
|
|
419
379
|
"required": [
|
|
@@ -421,10 +381,43 @@
|
|
|
421
381
|
]
|
|
422
382
|
},
|
|
423
383
|
"then": {
|
|
384
|
+
"anyOf": [
|
|
385
|
+
{
|
|
386
|
+
"required": [
|
|
387
|
+
"text"
|
|
388
|
+
]
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
"required": [
|
|
392
|
+
"icon"
|
|
393
|
+
]
|
|
394
|
+
}
|
|
395
|
+
]
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"if": {
|
|
400
|
+
"properties": {
|
|
401
|
+
"type": {
|
|
402
|
+
"const": "link"
|
|
403
|
+
}
|
|
404
|
+
},
|
|
424
405
|
"required": [
|
|
425
|
-
"
|
|
426
|
-
|
|
427
|
-
|
|
406
|
+
"type"
|
|
407
|
+
]
|
|
408
|
+
},
|
|
409
|
+
"then": {
|
|
410
|
+
"anyOf": [
|
|
411
|
+
{
|
|
412
|
+
"required": [
|
|
413
|
+
"text"
|
|
414
|
+
]
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"required": [
|
|
418
|
+
"icon"
|
|
419
|
+
]
|
|
420
|
+
}
|
|
428
421
|
]
|
|
429
422
|
}
|
|
430
423
|
},
|
|
@@ -432,7 +425,7 @@
|
|
|
432
425
|
"if": {
|
|
433
426
|
"properties": {
|
|
434
427
|
"type": {
|
|
435
|
-
"const": "
|
|
428
|
+
"const": "link"
|
|
436
429
|
}
|
|
437
430
|
},
|
|
438
431
|
"required": [
|
|
@@ -441,8 +434,7 @@
|
|
|
441
434
|
},
|
|
442
435
|
"then": {
|
|
443
436
|
"required": [
|
|
444
|
-
"
|
|
445
|
-
"text"
|
|
437
|
+
"href"
|
|
446
438
|
]
|
|
447
439
|
}
|
|
448
440
|
},
|
|
@@ -77,22 +77,5 @@
|
|
|
77
77
|
],
|
|
78
78
|
"title": "metadata",
|
|
79
79
|
"type": "object",
|
|
80
|
-
"allOf": [
|
|
81
|
-
{
|
|
82
|
-
"properties": {
|
|
83
|
-
"param1": false
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"properties": {
|
|
88
|
-
"param2": false
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"properties": {
|
|
93
|
-
"value": false
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
],
|
|
97
80
|
"$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/metadata.json."
|
|
98
81
|
}
|
|
@@ -305,11 +305,6 @@
|
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
307
|
},
|
|
308
|
-
{
|
|
309
|
-
"properties": {
|
|
310
|
-
"validation": false
|
|
311
|
-
}
|
|
312
|
-
},
|
|
313
308
|
{
|
|
314
309
|
"if": {
|
|
315
310
|
"properties": {
|
|
@@ -343,23 +338,6 @@
|
|
|
343
338
|
"currency"
|
|
344
339
|
]
|
|
345
340
|
}
|
|
346
|
-
},
|
|
347
|
-
{
|
|
348
|
-
"if": {
|
|
349
|
-
"properties": {
|
|
350
|
-
"type": {
|
|
351
|
-
"const": "case"
|
|
352
|
-
}
|
|
353
|
-
},
|
|
354
|
-
"required": [
|
|
355
|
-
"type"
|
|
356
|
-
]
|
|
357
|
-
},
|
|
358
|
-
"then": {
|
|
359
|
-
"required": [
|
|
360
|
-
"subtype"
|
|
361
|
-
]
|
|
362
|
-
}
|
|
363
341
|
}
|
|
364
342
|
],
|
|
365
343
|
"$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/platformAttribute.json."
|
|
@@ -123,27 +123,13 @@
|
|
|
123
123
|
"allOf": [
|
|
124
124
|
{
|
|
125
125
|
"if": {
|
|
126
|
-
"
|
|
127
|
-
{
|
|
128
|
-
"
|
|
129
|
-
"showProgress": {
|
|
130
|
-
"const": "true"
|
|
131
|
-
}
|
|
132
|
-
},
|
|
133
|
-
"required": [
|
|
134
|
-
"showProgress"
|
|
135
|
-
]
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"properties": {
|
|
139
|
-
"showProgress": {
|
|
140
|
-
"const": "true"
|
|
141
|
-
}
|
|
142
|
-
},
|
|
143
|
-
"required": [
|
|
144
|
-
"showProgress"
|
|
145
|
-
]
|
|
126
|
+
"properties": {
|
|
127
|
+
"showProgress": {
|
|
128
|
+
"const": "true"
|
|
146
129
|
}
|
|
130
|
+
},
|
|
131
|
+
"required": [
|
|
132
|
+
"showProgress"
|
|
147
133
|
]
|
|
148
134
|
},
|
|
149
135
|
"then": {},
|
|
@@ -155,27 +141,13 @@
|
|
|
155
141
|
},
|
|
156
142
|
{
|
|
157
143
|
"if": {
|
|
158
|
-
"
|
|
159
|
-
{
|
|
160
|
-
"
|
|
161
|
-
"showProgress": {
|
|
162
|
-
"const": "true"
|
|
163
|
-
}
|
|
164
|
-
},
|
|
165
|
-
"required": [
|
|
166
|
-
"showProgress"
|
|
167
|
-
]
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
"properties": {
|
|
171
|
-
"showProgress": {
|
|
172
|
-
"const": "true"
|
|
173
|
-
}
|
|
174
|
-
},
|
|
175
|
-
"required": [
|
|
176
|
-
"showProgress"
|
|
177
|
-
]
|
|
144
|
+
"properties": {
|
|
145
|
+
"showProgress": {
|
|
146
|
+
"const": "true"
|
|
178
147
|
}
|
|
148
|
+
},
|
|
149
|
+
"required": [
|
|
150
|
+
"showProgress"
|
|
179
151
|
]
|
|
180
152
|
},
|
|
181
153
|
"then": {},
|
|
@@ -317,7 +289,7 @@
|
|
|
317
289
|
"if": {
|
|
318
290
|
"properties": {
|
|
319
291
|
"toTriggerType": {
|
|
320
|
-
"const": "
|
|
292
|
+
"const": "currentCase"
|
|
321
293
|
}
|
|
322
294
|
},
|
|
323
295
|
"required": [
|
|
@@ -325,10 +297,17 @@
|
|
|
325
297
|
]
|
|
326
298
|
},
|
|
327
299
|
"then": {
|
|
328
|
-
"
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
300
|
+
"anyOf": [
|
|
301
|
+
{
|
|
302
|
+
"required": [
|
|
303
|
+
"activityTo"
|
|
304
|
+
]
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"required": [
|
|
308
|
+
"activityTag"
|
|
309
|
+
]
|
|
310
|
+
}
|
|
332
311
|
]
|
|
333
312
|
}
|
|
334
313
|
},
|
|
@@ -344,10 +323,17 @@
|
|
|
344
323
|
]
|
|
345
324
|
},
|
|
346
325
|
"then": {
|
|
347
|
-
"
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
326
|
+
"anyOf": [
|
|
327
|
+
{
|
|
328
|
+
"required": [
|
|
329
|
+
"activityTo"
|
|
330
|
+
]
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"required": [
|
|
334
|
+
"activityTag"
|
|
335
|
+
]
|
|
336
|
+
}
|
|
351
337
|
]
|
|
352
338
|
}
|
|
353
339
|
},
|
|
@@ -355,7 +341,7 @@
|
|
|
355
341
|
"if": {
|
|
356
342
|
"properties": {
|
|
357
343
|
"toTriggerType": {
|
|
358
|
-
"const": "
|
|
344
|
+
"const": "attributeValue"
|
|
359
345
|
}
|
|
360
346
|
},
|
|
361
347
|
"required": [
|
|
@@ -363,9 +349,43 @@
|
|
|
363
349
|
]
|
|
364
350
|
},
|
|
365
351
|
"then": {
|
|
352
|
+
"anyOf": [
|
|
353
|
+
{
|
|
354
|
+
"required": [
|
|
355
|
+
"activityTo"
|
|
356
|
+
]
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"required": [
|
|
360
|
+
"activityTag"
|
|
361
|
+
]
|
|
362
|
+
}
|
|
363
|
+
]
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"if": {
|
|
368
|
+
"properties": {
|
|
369
|
+
"toTriggerType": {
|
|
370
|
+
"const": "parent"
|
|
371
|
+
}
|
|
372
|
+
},
|
|
366
373
|
"required": [
|
|
367
|
-
"
|
|
368
|
-
|
|
374
|
+
"toTriggerType"
|
|
375
|
+
]
|
|
376
|
+
},
|
|
377
|
+
"then": {
|
|
378
|
+
"anyOf": [
|
|
379
|
+
{
|
|
380
|
+
"required": [
|
|
381
|
+
"activityTo"
|
|
382
|
+
]
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"required": [
|
|
386
|
+
"activityTag"
|
|
387
|
+
]
|
|
388
|
+
}
|
|
369
389
|
]
|
|
370
390
|
}
|
|
371
391
|
},
|
|
@@ -381,10 +401,43 @@
|
|
|
381
401
|
]
|
|
382
402
|
},
|
|
383
403
|
"then": {
|
|
404
|
+
"anyOf": [
|
|
405
|
+
{
|
|
406
|
+
"required": [
|
|
407
|
+
"activityTo"
|
|
408
|
+
]
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"required": [
|
|
412
|
+
"activityTag"
|
|
413
|
+
]
|
|
414
|
+
}
|
|
415
|
+
]
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"if": {
|
|
420
|
+
"properties": {
|
|
421
|
+
"showProgress": {
|
|
422
|
+
"const": "true"
|
|
423
|
+
}
|
|
424
|
+
},
|
|
384
425
|
"required": [
|
|
385
|
-
"
|
|
386
|
-
|
|
387
|
-
|
|
426
|
+
"showProgress"
|
|
427
|
+
]
|
|
428
|
+
},
|
|
429
|
+
"then": {
|
|
430
|
+
"anyOf": [
|
|
431
|
+
{
|
|
432
|
+
"required": [
|
|
433
|
+
"progressTemplate"
|
|
434
|
+
]
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"required": [
|
|
438
|
+
"progressTitle"
|
|
439
|
+
]
|
|
440
|
+
}
|
|
388
441
|
]
|
|
389
442
|
}
|
|
390
443
|
},
|
|
@@ -392,7 +445,7 @@
|
|
|
392
445
|
"if": {
|
|
393
446
|
"properties": {
|
|
394
447
|
"toTriggerType": {
|
|
395
|
-
"const": "
|
|
448
|
+
"const": "attributeValue"
|
|
396
449
|
}
|
|
397
450
|
},
|
|
398
451
|
"required": [
|
|
@@ -401,26 +454,41 @@
|
|
|
401
454
|
},
|
|
402
455
|
"then": {
|
|
403
456
|
"required": [
|
|
404
|
-
"
|
|
405
|
-
"activityTag"
|
|
457
|
+
"caseTo"
|
|
406
458
|
]
|
|
407
459
|
}
|
|
408
460
|
},
|
|
409
461
|
{
|
|
410
462
|
"if": {
|
|
411
463
|
"properties": {
|
|
412
|
-
"
|
|
413
|
-
"const": "
|
|
464
|
+
"toTriggerType": {
|
|
465
|
+
"const": "casesInDataset"
|
|
414
466
|
}
|
|
415
467
|
},
|
|
416
468
|
"required": [
|
|
417
|
-
"
|
|
469
|
+
"toTriggerType"
|
|
418
470
|
]
|
|
419
471
|
},
|
|
420
472
|
"then": {
|
|
421
473
|
"required": [
|
|
422
|
-
"
|
|
423
|
-
|
|
474
|
+
"datasetTo"
|
|
475
|
+
]
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"if": {
|
|
480
|
+
"properties": {
|
|
481
|
+
"toTriggerType": {
|
|
482
|
+
"const": "foreachItem"
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
"required": [
|
|
486
|
+
"toTriggerType"
|
|
487
|
+
]
|
|
488
|
+
},
|
|
489
|
+
"then": {
|
|
490
|
+
"required": [
|
|
491
|
+
"forEachTo"
|
|
424
492
|
]
|
|
425
493
|
}
|
|
426
494
|
},
|