@grexx/grexxlinter 0.2.550 → 0.2.703

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 CHANGED
@@ -14662,6 +14662,12 @@ function loadCaseRefs(dir) {
14662
14662
  return {};
14663
14663
  }
14664
14664
  }
14665
+ function deepFreeze(value) {
14666
+ if (value === null || typeof value !== "object" || Object.isFrozen(value)) return value;
14667
+ Object.freeze(value);
14668
+ for (const k of Object.keys(value)) deepFreeze(value[k]);
14669
+ return value;
14670
+ }
14665
14671
  var docCache = /* @__PURE__ */ new Map();
14666
14672
  function targetDoc(absPath) {
14667
14673
  if (docCache.has(absPath)) return docCache.get(absPath);
@@ -14673,7 +14679,7 @@ function targetDoc(absPath) {
14673
14679
  doc = null;
14674
14680
  }
14675
14681
  }
14676
- docCache.set(absPath, doc);
14682
+ docCache.set(absPath, deepFreeze(doc));
14677
14683
  return doc;
14678
14684
  }
14679
14685
  function targetType(absPath, fragment) {
@@ -15055,7 +15061,7 @@ function isLintableYaml(text) {
15055
15061
  // src/cli.ts
15056
15062
  var PARALLEL_THRESHOLD = 200;
15057
15063
  var MAX_WORKERS = 8;
15058
- var VERSION = true ? "0.2.550" : "0.0.0-dev";
15064
+ var VERSION = true ? "0.2.703" : "0.0.0-dev";
15059
15065
  function isNewer(latest, current) {
15060
15066
  const a = latest.split(".").map(Number);
15061
15067
  const b = current.split(".").map(Number);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grexx/grexxlinter",
3
- "version": "0.2.550",
3
+ "version": "0.2.703",
4
4
  "description": "Lint Grexx Studio casetype YAML against the studio JSON Schemas.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -36,6 +36,20 @@
36
36
  "valueIsField": false,
37
37
  "isEmpty": false
38
38
  }
39
+ ],
40
+ "setValueWhen": [
41
+ {
42
+ "when": {
43
+ "op": "cmp",
44
+ "field": "processBlockType",
45
+ "fieldName": "Process block type",
46
+ "operator": "==",
47
+ "value": "reopen-case",
48
+ "valueIsField": false,
49
+ "isEmpty": false
50
+ },
51
+ "value": "true"
52
+ }
39
53
  ]
40
54
  },
41
55
  "allowSubmitAndReopen": {
@@ -96,6 +110,56 @@
96
110
  "valueIsField": false,
97
111
  "isEmpty": false
98
112
  }
113
+ ],
114
+ "optionsWhen": [
115
+ {
116
+ "when": {
117
+ "op": "and",
118
+ "items": [
119
+ {
120
+ "op": "cmp",
121
+ "field": "casetype",
122
+ "fieldName": "Casetype",
123
+ "operator": "!==",
124
+ "value": "",
125
+ "valueIsField": false,
126
+ "isEmpty": true
127
+ },
128
+ {
129
+ "op": "cmp",
130
+ "field": "type",
131
+ "fieldName": "Type",
132
+ "operator": "==",
133
+ "value": "casetype",
134
+ "valueIsField": false,
135
+ "isEmpty": false
136
+ }
137
+ ]
138
+ },
139
+ "source": {
140
+ "kind": "objects",
141
+ "type": [
142
+ "activity"
143
+ ]
144
+ }
145
+ },
146
+ {
147
+ "when": {
148
+ "op": "cmp",
149
+ "field": "type",
150
+ "fieldName": "Type",
151
+ "operator": "==",
152
+ "value": "casetype",
153
+ "valueIsField": false,
154
+ "isEmpty": false
155
+ },
156
+ "source": {
157
+ "kind": "objects",
158
+ "type": [
159
+ "activity"
160
+ ]
161
+ }
162
+ }
99
163
  ]
100
164
  },
101
165
  "autoMapFromLocal": {
@@ -139,6 +203,20 @@
139
203
  "valueIsField": false,
140
204
  "isEmpty": false
141
205
  }
206
+ ],
207
+ "setValueWhen": [
208
+ {
209
+ "when": {
210
+ "op": "cmp",
211
+ "field": "type",
212
+ "fieldName": "Type",
213
+ "operator": "==",
214
+ "value": "form",
215
+ "valueIsField": false,
216
+ "isEmpty": false
217
+ },
218
+ "value": "true"
219
+ }
142
220
  ]
143
221
  },
144
222
  "autoMapToLocal": {
@@ -182,6 +260,20 @@
182
260
  "valueIsField": false,
183
261
  "isEmpty": false
184
262
  }
263
+ ],
264
+ "setValueWhen": [
265
+ {
266
+ "when": {
267
+ "op": "cmp",
268
+ "field": "type",
269
+ "fieldName": "Type",
270
+ "operator": "==",
271
+ "value": "form",
272
+ "valueIsField": false,
273
+ "isEmpty": false
274
+ },
275
+ "value": "true"
276
+ }
185
277
  ]
186
278
  },
187
279
  "captchaTheme": {
@@ -449,6 +541,25 @@
449
541
  "valueIsField": false,
450
542
  "isEmpty": false
451
543
  }
544
+ ],
545
+ "optionsWhen": [
546
+ {
547
+ "when": {
548
+ "op": "cmp",
549
+ "field": "type",
550
+ "fieldName": "Type",
551
+ "operator": "==",
552
+ "value": "multitask",
553
+ "valueIsField": false,
554
+ "isEmpty": false
555
+ },
556
+ "source": {
557
+ "kind": "objects",
558
+ "type": [
559
+ "form"
560
+ ]
561
+ }
562
+ }
452
563
  ]
453
564
  },
454
565
  "jumpToCase": {
@@ -126,6 +126,20 @@
126
126
  "valueIsField": false,
127
127
  "isEmpty": false
128
128
  }
129
+ ],
130
+ "setValueWhen": [
131
+ {
132
+ "when": {
133
+ "op": "cmp",
134
+ "field": null,
135
+ "fieldName": "«template»",
136
+ "operator": "==",
137
+ "value": "singlecurrencymoney",
138
+ "valueIsField": false,
139
+ "isEmpty": false
140
+ },
141
+ "value": "EUR"
142
+ }
129
143
  ]
130
144
  },
131
145
  "currentCasetypes": {
@@ -191,6 +205,36 @@
191
205
  "valueIsField": false,
192
206
  "isEmpty": false
193
207
  }
208
+ ],
209
+ "optionsWhen": [
210
+ {
211
+ "when": {
212
+ "op": "cmp",
213
+ "field": null,
214
+ "fieldName": "«template»",
215
+ "operator": "==",
216
+ "value": "«boolean»",
217
+ "valueIsField": false,
218
+ "isEmpty": false
219
+ },
220
+ "source": {
221
+ "kind": "static",
222
+ "options": [
223
+ {
224
+ "id": "false",
225
+ "label": "false"
226
+ },
227
+ {
228
+ "id": "true",
229
+ "label": "true"
230
+ },
231
+ {
232
+ "id": "null",
233
+ "label": "null"
234
+ }
235
+ ]
236
+ }
237
+ }
194
238
  ]
195
239
  },
196
240
  "excludeFromRelatedCases": {
@@ -369,6 +413,32 @@
369
413
  "valueIsField": false,
370
414
  "isEmpty": false
371
415
  }
416
+ ],
417
+ "setValueWhen": [
418
+ {
419
+ "when": {
420
+ "op": "cmp",
421
+ "field": "multivalue",
422
+ "fieldName": "Multivalue",
423
+ "operator": "==",
424
+ "value": "true",
425
+ "valueIsField": false,
426
+ "isEmpty": false
427
+ },
428
+ "value": "set"
429
+ },
430
+ {
431
+ "when": {
432
+ "op": "cmp",
433
+ "field": "multivalue",
434
+ "fieldName": "Multivalue",
435
+ "operator": "==",
436
+ "value": "true",
437
+ "valueIsField": false,
438
+ "isEmpty": false
439
+ },
440
+ "value": "set"
441
+ }
372
442
  ]
373
443
  },
374
444
  "name": {
@@ -241,7 +241,21 @@
241
241
  ]
242
242
  },
243
243
  "type": {
244
- "baseline": "MUST"
244
+ "baseline": "MUST",
245
+ "messageWhen": [
246
+ {
247
+ "when": {
248
+ "op": "cmp",
249
+ "field": "type",
250
+ "fieldName": "Type",
251
+ "operator": "==",
252
+ "value": "page",
253
+ "valueIsField": false,
254
+ "isEmpty": false
255
+ },
256
+ "message": "For page there is always one case. (not 0 or more than 1)"
257
+ }
258
+ ]
245
259
  },
246
260
  "closedPath": {
247
261
  "baseline": "MAY",
@@ -68,6 +68,43 @@
68
68
  }
69
69
  ]
70
70
  }
71
+ ],
72
+ "setValueWhen": [
73
+ {
74
+ "when": {
75
+ "op": "or",
76
+ "items": [
77
+ {
78
+ "op": "cmp",
79
+ "field": "dataRetentionCleanupOpenCasedata",
80
+ "fieldName": "Cleanup casedata of open cases (warning, are you sure??)",
81
+ "operator": "==",
82
+ "value": "true",
83
+ "valueIsField": false,
84
+ "isEmpty": false
85
+ },
86
+ {
87
+ "op": "cmp",
88
+ "field": "dataRetentionCleanupFinishedCases",
89
+ "fieldName": "Cleanup closed cases including underlying tasks and data",
90
+ "operator": "==",
91
+ "value": "true",
92
+ "valueIsField": false,
93
+ "isEmpty": false
94
+ },
95
+ {
96
+ "op": "cmp",
97
+ "field": "dataRetentionNeverStoreData",
98
+ "fieldName": "Only use cache, never store to database",
99
+ "operator": "==",
100
+ "value": "true",
101
+ "valueIsField": false,
102
+ "isEmpty": false
103
+ }
104
+ ]
105
+ },
106
+ "value": "true"
107
+ }
71
108
  ]
72
109
  },
73
110
  "dataRetentionCleanupOpenCasedata": {
@@ -93,6 +130,20 @@
93
130
  "valueIsField": false,
94
131
  "isEmpty": false
95
132
  }
133
+ ],
134
+ "setValueWhen": [
135
+ {
136
+ "when": {
137
+ "op": "cmp",
138
+ "field": "dataRetentionNeverStoreData",
139
+ "fieldName": "Only use cache, never store to database",
140
+ "operator": "==",
141
+ "value": "true",
142
+ "valueIsField": false,
143
+ "isEmpty": false
144
+ },
145
+ "value": "true"
146
+ }
96
147
  ]
97
148
  },
98
149
  "dataRetentionCleanupDeletedCasedata": {
@@ -146,6 +197,34 @@
146
197
  }
147
198
  ]
148
199
  }
200
+ ],
201
+ "setValueWhen": [
202
+ {
203
+ "when": {
204
+ "op": "or",
205
+ "items": [
206
+ {
207
+ "op": "cmp",
208
+ "field": "dataRetentionCleanupOpenCasedata",
209
+ "fieldName": "Cleanup casedata of open cases (warning, are you sure??)",
210
+ "operator": "==",
211
+ "value": "true",
212
+ "valueIsField": false,
213
+ "isEmpty": false
214
+ },
215
+ {
216
+ "op": "cmp",
217
+ "field": "dataRetentionNeverStoreData",
218
+ "fieldName": "Only use cache, never store to database",
219
+ "operator": "==",
220
+ "value": "true",
221
+ "valueIsField": false,
222
+ "isEmpty": false
223
+ }
224
+ ]
225
+ },
226
+ "value": "true"
227
+ }
149
228
  ]
150
229
  },
151
230
  "dataset": {
@@ -354,6 +354,25 @@
354
354
  "valueIsField": false,
355
355
  "isEmpty": false
356
356
  }
357
+ ],
358
+ "optionsWhen": [
359
+ {
360
+ "when": {
361
+ "op": "cmp",
362
+ "field": "type",
363
+ "fieldName": "Type",
364
+ "operator": "==",
365
+ "value": "aggregation",
366
+ "valueIsField": false,
367
+ "isEmpty": false
368
+ },
369
+ "source": {
370
+ "kind": "objects",
371
+ "type": [
372
+ "dataset"
373
+ ]
374
+ }
375
+ }
357
376
  ]
358
377
  },
359
378
  "parentDatasetRight": {