@json-eval-rs/vanilla 0.0.72 → 0.0.73
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/package.json +2 -2
- package/pkg/json_eval_rs.d.ts +644 -637
- package/pkg/json_eval_rs.js +1303 -1326
- package/pkg/json_eval_rs_bg.wasm +0 -0
- package/pkg/json_eval_rs_bg.wasm.d.ts +4 -4
package/pkg/json_eval_rs.d.ts
CHANGED
|
@@ -1,666 +1,673 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
* Get the library version
|
|
5
|
-
*/
|
|
6
|
-
export function getVersion(): string;
|
|
7
|
-
/**
|
|
8
|
-
* Initialize the library (sets up panic hook)
|
|
9
|
-
*/
|
|
10
|
-
export function init(): void;
|
|
11
|
-
/**
|
|
12
|
-
* Get library version (alias)
|
|
13
|
-
*/
|
|
14
|
-
export function version(): string;
|
|
3
|
+
|
|
15
4
|
/**
|
|
16
5
|
* WebAssembly wrapper for JSONEval
|
|
17
6
|
*/
|
|
18
7
|
export class JSONEvalWasm {
|
|
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
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
8
|
+
free(): void;
|
|
9
|
+
[Symbol.dispose](): void;
|
|
10
|
+
/**
|
|
11
|
+
* Get the number of cached entries
|
|
12
|
+
*
|
|
13
|
+
* @returns Number of cached entries
|
|
14
|
+
*/
|
|
15
|
+
cacheLen(): number;
|
|
16
|
+
/**
|
|
17
|
+
* Get cache statistics
|
|
18
|
+
*
|
|
19
|
+
* @returns Cache statistics as JavaScript object with hits, misses, and entries
|
|
20
|
+
*/
|
|
21
|
+
cacheStats(): any;
|
|
22
|
+
/**
|
|
23
|
+
* Cancel any currently running operation
|
|
24
|
+
*/
|
|
25
|
+
cancel(): void;
|
|
26
|
+
/**
|
|
27
|
+
* Clear the evaluation cache
|
|
28
|
+
*/
|
|
29
|
+
clearCache(): void;
|
|
30
|
+
/**
|
|
31
|
+
* Compile and run JSON logic from a JSON logic string
|
|
32
|
+
* @param logic_str - JSON logic expression as a string
|
|
33
|
+
* @param data - Optional JSON data string
|
|
34
|
+
* @param context - Optional JSON context string
|
|
35
|
+
* @returns Result as JavaScript object
|
|
36
|
+
*/
|
|
37
|
+
compileAndRunLogic(logic_str: string, data?: string | null, context?: string | null): any;
|
|
38
|
+
/**
|
|
39
|
+
* Compile JSON logic and return a global ID
|
|
40
|
+
* @param logic_str - JSON logic expression as a string
|
|
41
|
+
* @returns Compiled logic ID as number (u64)
|
|
42
|
+
*/
|
|
43
|
+
compileLogic(logic_str: string): number;
|
|
44
|
+
/**
|
|
45
|
+
* Disable evaluation caching
|
|
46
|
+
* Useful for web API usage where each request creates a new JSONEval instance
|
|
47
|
+
* Improves performance by skipping cache operations that have no benefit for single-use instances
|
|
48
|
+
*/
|
|
49
|
+
disableCache(): void;
|
|
50
|
+
/**
|
|
51
|
+
* Enable evaluation caching
|
|
52
|
+
* Useful for reusing JSONEval instances with different data
|
|
53
|
+
*/
|
|
54
|
+
enableCache(): void;
|
|
55
|
+
/**
|
|
56
|
+
* Evaluate schema with provided data (does not return schema - use getEvaluatedSchema() for that)
|
|
57
|
+
*
|
|
58
|
+
* @param data - JSON data string
|
|
59
|
+
* @param context - Optional context data JSON string
|
|
60
|
+
* @throws Error if evaluation fails
|
|
61
|
+
*/
|
|
62
|
+
evaluate(data: string, context?: string | null, paths?: string[] | null): void;
|
|
63
|
+
/**
|
|
64
|
+
* Evaluate dependents when a field changes (returns array of changes as JSON string)
|
|
65
|
+
*
|
|
66
|
+
* @param changedPath - Path of the field that changed
|
|
67
|
+
* @param data - Optional updated JSON data string
|
|
68
|
+
* @param context - Optional context data JSON string
|
|
69
|
+
* @returns Array of dependent change objects as JSON string
|
|
70
|
+
*/
|
|
71
|
+
evaluateDependents(changed_path: string, data: string | null | undefined, context: string | null | undefined, re_evaluate: boolean): string;
|
|
72
|
+
/**
|
|
73
|
+
* Evaluate dependents and return as JavaScript object
|
|
74
|
+
*
|
|
75
|
+
* @param changedPathsJson - JSON array of field paths that changed
|
|
76
|
+
* @param data - Optional updated JSON data string
|
|
77
|
+
* @param context - Optional context data JSON string
|
|
78
|
+
* @param reEvaluate - If true, performs full evaluation after processing dependents
|
|
79
|
+
* @returns Array of dependent change objects as JavaScript object
|
|
80
|
+
*/
|
|
81
|
+
evaluateDependentsJS(changed_paths_json: string, data: string | null | undefined, context: string | null | undefined, re_evaluate: boolean): any;
|
|
82
|
+
/**
|
|
83
|
+
* Evaluate dependents in subform when fields change
|
|
84
|
+
*
|
|
85
|
+
* @param subformPath - Path to the subform
|
|
86
|
+
* @param changedPaths - JSON array of paths that changed
|
|
87
|
+
* @param data - Optional updated JSON data string
|
|
88
|
+
* @param context - Optional context data JSON string
|
|
89
|
+
* @returns Array of dependent change objects as JSON string
|
|
90
|
+
*/
|
|
91
|
+
evaluateDependentsSubform(subform_path: string, changed_paths_json: string, data: string | null | undefined, context: string | null | undefined, re_evaluate: boolean): string;
|
|
92
|
+
/**
|
|
93
|
+
* Evaluate dependents in subform and return as JavaScript object
|
|
94
|
+
*
|
|
95
|
+
* @param subformPath - Path to the subform
|
|
96
|
+
* @param changedPath - Path of the field that changed
|
|
97
|
+
* @param data - Optional updated JSON data string
|
|
98
|
+
* @param context - Optional context data JSON string
|
|
99
|
+
* @returns Array of dependent change objects as JavaScript object
|
|
100
|
+
*/
|
|
101
|
+
evaluateDependentsSubformJS(subform_path: string, changed_paths_json: string, data: string | null | undefined, context: string | null | undefined, re_evaluate: boolean): any;
|
|
102
|
+
/**
|
|
103
|
+
* Evaluate and return as JsValue for direct JavaScript object access
|
|
104
|
+
*
|
|
105
|
+
* @param data - JSON data string
|
|
106
|
+
* @param context - Optional context data JSON string
|
|
107
|
+
* @returns Evaluated schema as JavaScript object
|
|
108
|
+
*/
|
|
109
|
+
evaluateJS(data: string, context?: string | null, paths?: string[] | null): any;
|
|
110
|
+
/**
|
|
111
|
+
* Static helper to evaluate logic without creating an instance
|
|
112
|
+
* @param logic_str - JSON logic expression string
|
|
113
|
+
* @param data - Optional JSON data string
|
|
114
|
+
* @param context - Optional JSON context string
|
|
115
|
+
* @returns Result as JavaScript object
|
|
116
|
+
*/
|
|
117
|
+
static evaluateLogic(logic_str: string, data?: string | null, context?: string | null): any;
|
|
118
|
+
/**
|
|
119
|
+
* Evaluate a subform with data
|
|
120
|
+
*
|
|
121
|
+
* @param subformPath - Path to the subform (e.g., "#/riders")
|
|
122
|
+
* @param data - JSON data string for the subform
|
|
123
|
+
* @param context - Optional context data JSON string
|
|
124
|
+
* @param paths - Optional array of paths to evaluate (JSON string array)
|
|
125
|
+
* @throws Error if evaluation fails
|
|
126
|
+
*/
|
|
127
|
+
evaluateSubform(subform_path: string, data: string, context?: string | null, paths?: string[] | null): void;
|
|
128
|
+
/**
|
|
129
|
+
* Get the evaluated schema with optional layout resolution
|
|
130
|
+
*
|
|
131
|
+
* @param skipLayout - Whether to skip layout resolution
|
|
132
|
+
* @returns Evaluated schema as JSON string
|
|
133
|
+
*/
|
|
134
|
+
getEvaluatedSchema(skip_layout: boolean): string;
|
|
135
|
+
/**
|
|
136
|
+
* Get a value from the evaluated schema using dotted path notation
|
|
137
|
+
*
|
|
138
|
+
* @param path - Dotted path to the value (e.g., "properties.field.value")
|
|
139
|
+
* @param skipLayout - Whether to skip layout resolution
|
|
140
|
+
* @returns Value as JSON string or null if not found
|
|
141
|
+
*/
|
|
142
|
+
getEvaluatedSchemaByPath(path: string, skip_layout: boolean): string | undefined;
|
|
143
|
+
/**
|
|
144
|
+
* Get a value from the evaluated schema using dotted path notation as JavaScript object
|
|
145
|
+
*
|
|
146
|
+
* @param path - Dotted path to the value (e.g., "properties.field.value")
|
|
147
|
+
* @param skipLayout - Whether to skip layout resolution
|
|
148
|
+
* @returns Value as JavaScript object or null if not found
|
|
149
|
+
*/
|
|
150
|
+
getEvaluatedSchemaByPathJS(path: string, skip_layout: boolean): any;
|
|
151
|
+
/**
|
|
152
|
+
* Get evaluated schema by specific path from subform
|
|
153
|
+
*
|
|
154
|
+
* @param subformPath - Path to the subform
|
|
155
|
+
* @param schemaPath - Dotted path to the value within the subform
|
|
156
|
+
* @param skipLayout - Whether to skip layout resolution
|
|
157
|
+
* @returns Value as JSON string or null if not found
|
|
158
|
+
*/
|
|
159
|
+
getEvaluatedSchemaByPathSubform(subform_path: string, schema_path: string, skip_layout: boolean): string | undefined;
|
|
160
|
+
/**
|
|
161
|
+
* Get evaluated schema by specific path from subform as JavaScript object
|
|
162
|
+
*
|
|
163
|
+
* @param subformPath - Path to the subform
|
|
164
|
+
* @param schemaPath - Dotted path to the value within the subform
|
|
165
|
+
* @param skipLayout - Whether to skip layout resolution
|
|
166
|
+
* @returns Value as JavaScript object or null if not found
|
|
167
|
+
*/
|
|
168
|
+
getEvaluatedSchemaByPathSubformJS(subform_path: string, schema_path: string, skip_layout: boolean): any;
|
|
169
|
+
/**
|
|
170
|
+
* Get values from evaluated schema using multiple dotted paths
|
|
171
|
+
* @param pathsJson - JSON array of dotted paths
|
|
172
|
+
* @param skipLayout - Whether to skip layout resolution
|
|
173
|
+
* @param format - Return format (0=Nested, 1=Flat, 2=Array)
|
|
174
|
+
* @returns Data in specified format as JSON string
|
|
175
|
+
*/
|
|
176
|
+
getEvaluatedSchemaByPaths(paths_json: string, skip_layout: boolean, format: number): string;
|
|
177
|
+
/**
|
|
178
|
+
* Get values from evaluated schema using multiple dotted paths (JS object)
|
|
179
|
+
* @param pathsJson - JSON array of dotted paths
|
|
180
|
+
* @param skipLayout - Whether to skip layout resolution
|
|
181
|
+
* @param format - Return format (0=Nested, 1=Flat, 2=Array)
|
|
182
|
+
* @returns Data in specified format as JavaScript object
|
|
183
|
+
*/
|
|
184
|
+
getEvaluatedSchemaByPathsJS(paths_json: string, skip_layout: boolean, format: number): any;
|
|
185
|
+
/**
|
|
186
|
+
* Get values from the evaluated schema of a subform using multiple dotted path notations (returns JSON string)
|
|
187
|
+
* @param subformPath - Path to the subform
|
|
188
|
+
* @param pathsJson - JSON array of dotted paths
|
|
189
|
+
* @param skipLayout - Whether to skip layout resolution
|
|
190
|
+
* @param format - Return format (0=Nested, 1=Flat, 2=Array)
|
|
191
|
+
* @returns Data in specified format as JSON string
|
|
192
|
+
*/
|
|
193
|
+
getEvaluatedSchemaByPathsSubform(subform_path: string, paths_json: string, skip_layout: boolean, format: number): string;
|
|
194
|
+
/**
|
|
195
|
+
* Get values from the evaluated schema of a subform using multiple dotted path notations (returns JS object)
|
|
196
|
+
* @param subformPath - Path to the subform
|
|
197
|
+
* @param paths - Array of dotted paths
|
|
198
|
+
* @param skipLayout - Whether to skip layout resolution
|
|
199
|
+
* @param format - Return format (0=Nested, 1=Flat, 2=Array)
|
|
200
|
+
* @returns Data in specified format as JavaScript object
|
|
201
|
+
*/
|
|
202
|
+
getEvaluatedSchemaByPathsSubformJS(subform_path: string, paths_json: string, skip_layout: boolean, format: number): any;
|
|
203
|
+
/**
|
|
204
|
+
* Get the evaluated schema as JavaScript object
|
|
205
|
+
*
|
|
206
|
+
* @param skipLayout - Whether to skip layout resolution
|
|
207
|
+
* @returns Evaluated schema as JavaScript object
|
|
208
|
+
*/
|
|
209
|
+
getEvaluatedSchemaJS(skip_layout: boolean): any;
|
|
210
|
+
/**
|
|
211
|
+
* Get the evaluated schema in MessagePack format
|
|
212
|
+
*
|
|
213
|
+
* @param skipLayout - Whether to skip layout resolution
|
|
214
|
+
* @returns Evaluated schema as MessagePack bytes (Uint8Array)
|
|
215
|
+
*
|
|
216
|
+
* # Zero-Copy Optimization
|
|
217
|
+
*
|
|
218
|
+
* This method returns MessagePack binary data with minimal copying:
|
|
219
|
+
* 1. Serializes schema to Vec<u8> in Rust (unavoidable)
|
|
220
|
+
* 2. wasm-bindgen transfers Vec<u8> to JS as Uint8Array (optimized)
|
|
221
|
+
* 3. Result is a Uint8Array view (minimal overhead)
|
|
222
|
+
*
|
|
223
|
+
* MessagePack format is 20-50% smaller than JSON, ideal for web/WASM.
|
|
224
|
+
*/
|
|
225
|
+
getEvaluatedSchemaMsgpack(skip_layout: boolean): Uint8Array;
|
|
226
|
+
/**
|
|
227
|
+
* Get evaluated schema from subform
|
|
228
|
+
*
|
|
229
|
+
* @param subformPath - Path to the subform
|
|
230
|
+
* @param resolveLayout - Whether to resolve layout
|
|
231
|
+
* @returns Evaluated schema as JSON string
|
|
232
|
+
*/
|
|
233
|
+
getEvaluatedSchemaSubform(subform_path: string, resolve_layout: boolean): string;
|
|
234
|
+
/**
|
|
235
|
+
* Get evaluated schema from subform as JavaScript object
|
|
236
|
+
*
|
|
237
|
+
* @param subformPath - Path to the subform
|
|
238
|
+
* @param resolveLayout - Whether to resolve layout
|
|
239
|
+
* @returns Evaluated schema as JavaScript object
|
|
240
|
+
*/
|
|
241
|
+
getEvaluatedSchemaSubformJS(subform_path: string, resolve_layout: boolean): any;
|
|
242
|
+
/**
|
|
243
|
+
* Get the evaluated schema without $params field
|
|
244
|
+
*
|
|
245
|
+
* @param skipLayout - Whether to skip layout resolution
|
|
246
|
+
* @returns Evaluated schema as JSON string
|
|
247
|
+
*/
|
|
248
|
+
getEvaluatedSchemaWithoutParams(skip_layout: boolean): string;
|
|
249
|
+
/**
|
|
250
|
+
* Get the evaluated schema without $params as JavaScript object
|
|
251
|
+
*
|
|
252
|
+
* @param skipLayout - Whether to skip layout resolution
|
|
253
|
+
* @returns Evaluated schema as JavaScript object
|
|
254
|
+
*/
|
|
255
|
+
getEvaluatedSchemaWithoutParamsJS(skip_layout: boolean): any;
|
|
256
|
+
/**
|
|
257
|
+
* Get evaluated schema without $params from subform
|
|
258
|
+
*
|
|
259
|
+
* @param subformPath - Path to the subform
|
|
260
|
+
* @param resolveLayout - Whether to resolve layout
|
|
261
|
+
* @returns Evaluated schema as JSON string
|
|
262
|
+
*/
|
|
263
|
+
getEvaluatedSchemaWithoutParamsSubform(subform_path: string, resolve_layout: boolean): string;
|
|
264
|
+
/**
|
|
265
|
+
* Get evaluated schema without $params from subform as JavaScript object
|
|
266
|
+
*
|
|
267
|
+
* @param subformPath - Path to the subform
|
|
268
|
+
* @param resolveLayout - Whether to resolve layout
|
|
269
|
+
* @returns Evaluated schema as JavaScript object
|
|
270
|
+
*/
|
|
271
|
+
getEvaluatedSchemaWithoutParamsSubformJS(subform_path: string, resolve_layout: boolean): any;
|
|
272
|
+
/**
|
|
273
|
+
* Get a value from the schema using dotted path notation
|
|
274
|
+
*
|
|
275
|
+
* @param path - Dotted path to the value (e.g., "properties.field.value")
|
|
276
|
+
* @returns Value as JSON string or null if not found
|
|
277
|
+
*/
|
|
278
|
+
getSchemaByPath(path: string): string | undefined;
|
|
279
|
+
/**
|
|
280
|
+
* Get a value from the schema using dotted path notation as JavaScript object
|
|
281
|
+
*
|
|
282
|
+
* @param path - Dotted path to the value (e.g., "properties.field.value")
|
|
283
|
+
* @returns Value as JavaScript object or null if not found
|
|
284
|
+
*/
|
|
285
|
+
getSchemaByPathJS(path: string): any;
|
|
286
|
+
/**
|
|
287
|
+
* Get schema by specific path from subform (returns JSON string)
|
|
288
|
+
* @param subformPath - Path to the subform
|
|
289
|
+
* @param schemaPath - Path within the subform
|
|
290
|
+
* @returns Value as JSON string or null if not found
|
|
291
|
+
*/
|
|
292
|
+
getSchemaByPathSubform(subform_path: string, schema_path: string): string | undefined;
|
|
293
|
+
/**
|
|
294
|
+
* Get schema by specific path from subform (returns JS object)
|
|
295
|
+
* @param subformPath - Path to the subform
|
|
296
|
+
* @param schemaPath - Path within the subform
|
|
297
|
+
* @returns Value as JavaScript object or null if not found
|
|
298
|
+
*/
|
|
299
|
+
getSchemaByPathSubformJS(subform_path: string, schema_path: string): any;
|
|
300
|
+
/**
|
|
301
|
+
* Get values from schema using multiple dotted paths
|
|
302
|
+
* @param pathsJson - JSON array of dotted paths
|
|
303
|
+
* @param format - Return format (0=Nested, 1=Flat, 2=Array)
|
|
304
|
+
* @returns Data in specified format as JSON string
|
|
305
|
+
*/
|
|
306
|
+
getSchemaByPaths(paths_json: string, format: number): string;
|
|
307
|
+
/**
|
|
308
|
+
* Get values from schema using multiple dotted paths (JS object)
|
|
309
|
+
* @param pathsJson - JSON array of dotted paths
|
|
310
|
+
* @param format - Return format (0=Nested, 1=Flat, 2=Array)
|
|
311
|
+
* @returns Data in specified format as JavaScript object
|
|
312
|
+
*/
|
|
313
|
+
getSchemaByPathsJS(paths_json: string, format: number): any;
|
|
314
|
+
/**
|
|
315
|
+
* Get schema by multiple paths from subform
|
|
316
|
+
* @param subformPath - Path to the subform
|
|
317
|
+
* @param pathsJson - JSON array of dotted paths
|
|
318
|
+
* @param format - Return format (0=Nested, 1=Flat, 2=Array)
|
|
319
|
+
* @returns Data in specified format as JSON string
|
|
320
|
+
*/
|
|
321
|
+
getSchemaByPathsSubform(subform_path: string, paths_json: string, format: number): string;
|
|
322
|
+
/**
|
|
323
|
+
* Get schema by multiple paths from subform (JS object)
|
|
324
|
+
* @param subformPath - Path to the subform
|
|
325
|
+
* @param paths - Array of dotted paths
|
|
326
|
+
* @param format - Return format (0=Nested, 1=Flat, 2=Array)
|
|
327
|
+
* @returns Data in specified format as JavaScript object
|
|
328
|
+
*/
|
|
329
|
+
getSchemaByPathsSubformJS(subform_path: string, paths_json: string, format: number): any;
|
|
330
|
+
/**
|
|
331
|
+
* Get all schema values (evaluations ending with .value)
|
|
332
|
+
* Mutates internal data by overriding with values from value evaluations
|
|
333
|
+
*
|
|
334
|
+
* @returns Modified data as JavaScript object
|
|
335
|
+
*/
|
|
336
|
+
getSchemaValue(): any;
|
|
337
|
+
/**
|
|
338
|
+
* Get all schema values as array of path-value pairs
|
|
339
|
+
* Returns [{path: "", value: ""}, ...]
|
|
340
|
+
*
|
|
341
|
+
* @returns Array of {path, value} objects as JavaScript array
|
|
342
|
+
*/
|
|
343
|
+
getSchemaValueArray(): any;
|
|
344
|
+
/**
|
|
345
|
+
* Get schema values from subform as a flat array of path-value pairs.
|
|
346
|
+
* Returns an array like `[{path: "field.sub", value: 123}, ...]`.
|
|
347
|
+
*
|
|
348
|
+
* @param subformPath - Path to the subform
|
|
349
|
+
* @returns Array of {path, value} objects
|
|
350
|
+
*/
|
|
351
|
+
getSchemaValueArraySubform(subform_path: string): any;
|
|
352
|
+
/**
|
|
353
|
+
* Get all schema values as object with dotted path keys
|
|
354
|
+
* Returns {path: value, ...}
|
|
355
|
+
*
|
|
356
|
+
* @returns Flat object with dotted paths as keys
|
|
357
|
+
*/
|
|
358
|
+
getSchemaValueObject(): any;
|
|
359
|
+
/**
|
|
360
|
+
* Get schema values from subform as a flat object with dotted path keys.
|
|
361
|
+
* Returns an object like `{"field.sub": 123, ...}`.
|
|
362
|
+
*
|
|
363
|
+
* @param subformPath - Path to the subform
|
|
364
|
+
* @returns Flat object with dotted paths as keys
|
|
365
|
+
*/
|
|
366
|
+
getSchemaValueObjectSubform(subform_path: string): any;
|
|
367
|
+
/**
|
|
368
|
+
* Get schema value from subform in nested object format (all .value fields).
|
|
369
|
+
* Returns a hierarchical object structure mimicking the schema.
|
|
370
|
+
*
|
|
371
|
+
* @param subformPath - Path to the subform
|
|
372
|
+
* @returns Modified data as JavaScript object (Nested)
|
|
373
|
+
*/
|
|
374
|
+
getSchemaValueSubform(subform_path: string): any;
|
|
375
|
+
/**
|
|
376
|
+
* Get list of available subform paths
|
|
377
|
+
*
|
|
378
|
+
* @returns Array of subform paths
|
|
379
|
+
*/
|
|
380
|
+
getSubformPaths(): string[];
|
|
381
|
+
/**
|
|
382
|
+
* Check if a subform exists at the given path
|
|
383
|
+
*
|
|
384
|
+
* @param subformPath - Path to check
|
|
385
|
+
* @returns True if subform exists, false otherwise
|
|
386
|
+
*/
|
|
387
|
+
hasSubform(subform_path: string): boolean;
|
|
388
|
+
/**
|
|
389
|
+
* Check if evaluation caching is enabled
|
|
390
|
+
*
|
|
391
|
+
* @returns true if caching is enabled, false otherwise
|
|
392
|
+
*/
|
|
393
|
+
isCacheEnabled(): boolean;
|
|
394
|
+
/**
|
|
395
|
+
* Create a new JSONEval instance
|
|
396
|
+
*
|
|
397
|
+
* @param schema - JSON schema string
|
|
398
|
+
* @param context - Optional context data JSON string
|
|
399
|
+
* @param data - Optional initial data JSON string
|
|
400
|
+
*/
|
|
401
|
+
constructor(schema: string, context?: string | null, data?: string | null);
|
|
402
|
+
/**
|
|
403
|
+
* Create a new JSONEval instance from a cached ParsedSchema
|
|
404
|
+
*
|
|
405
|
+
* @param cacheKey - Cache key to lookup in the global ParsedSchemaCache
|
|
406
|
+
* @param context - Optional context data JSON string
|
|
407
|
+
* @param data - Optional initial data JSON string
|
|
408
|
+
*/
|
|
409
|
+
static newFromCache(cache_key: string, context?: string | null, data?: string | null): JSONEvalWasm;
|
|
410
|
+
/**
|
|
411
|
+
* Create a new JSONEval instance from MessagePack-encoded schema
|
|
412
|
+
*
|
|
413
|
+
* @param schemaMsgpack - MessagePack-encoded schema bytes (Uint8Array)
|
|
414
|
+
* @param context - Optional context data JSON string
|
|
415
|
+
* @param data - Optional initial data JSON string
|
|
416
|
+
*/
|
|
417
|
+
static newFromMsgpack(schema_msgpack: Uint8Array, context?: string | null, data?: string | null): JSONEvalWasm;
|
|
418
|
+
/**
|
|
419
|
+
* Reload schema with new data
|
|
420
|
+
*
|
|
421
|
+
* @param schema - New JSON schema string
|
|
422
|
+
* @param context - Optional context data JSON string
|
|
423
|
+
* @param data - Optional initial data JSON string
|
|
424
|
+
*/
|
|
425
|
+
reloadSchema(schema: string, context?: string | null, data?: string | null): void;
|
|
426
|
+
/**
|
|
427
|
+
* Reload schema from ParsedSchemaCache using a cache key
|
|
428
|
+
*
|
|
429
|
+
* @param cacheKey - Cache key to lookup in the global ParsedSchemaCache
|
|
430
|
+
* @param context - Optional context data JSON string
|
|
431
|
+
* @param data - Optional initial data JSON string
|
|
432
|
+
*/
|
|
433
|
+
reloadSchemaFromCache(cache_key: string, context?: string | null, data?: string | null): void;
|
|
434
|
+
/**
|
|
435
|
+
* Reload schema from MessagePack-encoded bytes
|
|
436
|
+
*
|
|
437
|
+
* @param schemaMsgpack - MessagePack-encoded schema bytes (Uint8Array)
|
|
438
|
+
* @param context - Optional context data JSON string
|
|
439
|
+
* @param data - Optional initial data JSON string
|
|
440
|
+
*/
|
|
441
|
+
reloadSchemaMsgpack(schema_msgpack: Uint8Array, context?: string | null, data?: string | null): void;
|
|
442
|
+
/**
|
|
443
|
+
* Resolve layout with optional evaluation
|
|
444
|
+
*
|
|
445
|
+
* @param evaluate - If true, runs evaluation before resolving layout
|
|
446
|
+
* @throws Error if resolve fails
|
|
447
|
+
*/
|
|
448
|
+
resolveLayout(evaluate: boolean): void;
|
|
449
|
+
/**
|
|
450
|
+
* Resolve layout for subform
|
|
451
|
+
*
|
|
452
|
+
* @param subformPath - Path to the subform
|
|
453
|
+
* @param evaluate - If true, runs evaluation before resolving layout
|
|
454
|
+
* @throws Error if resolve fails
|
|
455
|
+
*/
|
|
456
|
+
resolveLayoutSubform(subform_path: string, evaluate: boolean): void;
|
|
457
|
+
/**
|
|
458
|
+
* Run pre-compiled logic by ID
|
|
459
|
+
* @param logic_id - Compiled logic ID from compileLogic
|
|
460
|
+
* @param data - Optional JSON data string
|
|
461
|
+
* @param context - Optional JSON context string
|
|
462
|
+
* @returns Result as JavaScript object
|
|
463
|
+
*/
|
|
464
|
+
runLogic(logic_id: number, data?: string | null, context?: string | null): any;
|
|
465
|
+
/**
|
|
466
|
+
* Set timezone offset for datetime operations (TODAY, NOW)
|
|
467
|
+
*
|
|
468
|
+
* @param offsetMinutes - Timezone offset in minutes from UTC (e.g., 420 for UTC+7, -300 for UTC-5)
|
|
469
|
+
* Pass null or undefined to reset to UTC
|
|
470
|
+
*/
|
|
471
|
+
setTimezoneOffset(offset_minutes?: number | null): void;
|
|
472
|
+
/**
|
|
473
|
+
* Validate data against schema rules
|
|
474
|
+
*
|
|
475
|
+
* @param data - JSON data string
|
|
476
|
+
* @param context - Optional context data JSON string
|
|
477
|
+
* @returns ValidationResult
|
|
478
|
+
*/
|
|
479
|
+
validate(data: string, context?: string | null): ValidationResult;
|
|
480
|
+
/**
|
|
481
|
+
* Validate data and return as plain JavaScript object (Worker-safe)
|
|
482
|
+
*
|
|
483
|
+
* @param data - JSON data string
|
|
484
|
+
* @param context - Optional context data JSON string
|
|
485
|
+
* @returns Plain JavaScript object with validation result
|
|
486
|
+
*/
|
|
487
|
+
validateJS(data: string, context?: string | null): any;
|
|
488
|
+
/**
|
|
489
|
+
* Validate data against schema rules with optional path filtering
|
|
490
|
+
*
|
|
491
|
+
* @param data - JSON data string
|
|
492
|
+
* @param context - Optional context data JSON string
|
|
493
|
+
* @param paths - Optional array of paths to validate (null for all)
|
|
494
|
+
* @returns ValidationResult
|
|
495
|
+
*/
|
|
496
|
+
validatePaths(data: string, context?: string | null, paths?: string[] | null): ValidationResult;
|
|
497
|
+
/**
|
|
498
|
+
* Validate with path filtering and return as plain JavaScript object (Worker-safe)
|
|
499
|
+
*
|
|
500
|
+
* @param data - JSON data string
|
|
501
|
+
* @param context - Optional context data JSON string
|
|
502
|
+
* @param paths - Optional array of paths to validate (null for all)
|
|
503
|
+
* @returns Plain JavaScript object with validation result
|
|
504
|
+
*/
|
|
505
|
+
validatePathsJS(data: string, context?: string | null, paths?: string[] | null): any;
|
|
506
|
+
/**
|
|
507
|
+
* Validate subform data against its schema rules
|
|
508
|
+
*
|
|
509
|
+
* @param subformPath - Path to the subform
|
|
510
|
+
* @param data - JSON data string for the subform
|
|
511
|
+
* @param context - Optional context data JSON string
|
|
512
|
+
* @returns ValidationResult
|
|
513
|
+
*/
|
|
514
|
+
validateSubform(subform_path: string, data: string, context?: string | null): ValidationResult;
|
|
526
515
|
}
|
|
516
|
+
|
|
527
517
|
/**
|
|
528
518
|
* Validation error for JavaScript
|
|
529
519
|
*/
|
|
530
520
|
export class ValidationError {
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
521
|
+
private constructor();
|
|
522
|
+
free(): void;
|
|
523
|
+
[Symbol.dispose](): void;
|
|
524
|
+
readonly code: string | undefined;
|
|
525
|
+
readonly data: any;
|
|
526
|
+
readonly field_value: string | undefined;
|
|
527
|
+
readonly message: string;
|
|
528
|
+
readonly path: string;
|
|
529
|
+
readonly pattern: string | undefined;
|
|
530
|
+
readonly rule_type: string;
|
|
541
531
|
}
|
|
532
|
+
|
|
542
533
|
/**
|
|
543
534
|
* Validation result for JavaScript
|
|
544
535
|
*/
|
|
545
536
|
export class ValidationResult {
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
537
|
+
private constructor();
|
|
538
|
+
free(): void;
|
|
539
|
+
[Symbol.dispose](): void;
|
|
540
|
+
toJSON(): any;
|
|
541
|
+
readonly error: any;
|
|
542
|
+
readonly has_error: boolean;
|
|
552
543
|
}
|
|
553
544
|
|
|
545
|
+
/**
|
|
546
|
+
* Get the library version
|
|
547
|
+
*/
|
|
548
|
+
export function getVersion(): string;
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* Initialize the library (sets up panic hook)
|
|
552
|
+
*/
|
|
553
|
+
export function init(): void;
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* Get library version (alias)
|
|
557
|
+
*/
|
|
558
|
+
export function version(): string;
|
|
559
|
+
|
|
554
560
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
555
561
|
|
|
556
562
|
export interface InitOutput {
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
563
|
+
readonly memory: WebAssembly.Memory;
|
|
564
|
+
readonly __wbg_jsonevalwasm_free: (a: number, b: number) => void;
|
|
565
|
+
readonly __wbg_validationerror_free: (a: number, b: number) => void;
|
|
566
|
+
readonly __wbg_validationresult_free: (a: number, b: number) => void;
|
|
567
|
+
readonly getVersion: (a: number) => void;
|
|
568
|
+
readonly jsonevalwasm_cacheLen: (a: number) => number;
|
|
569
|
+
readonly jsonevalwasm_cacheStats: (a: number, b: number) => void;
|
|
570
|
+
readonly jsonevalwasm_cancel: (a: number) => void;
|
|
571
|
+
readonly jsonevalwasm_clearCache: (a: number) => void;
|
|
572
|
+
readonly jsonevalwasm_compileAndRunLogic: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
573
|
+
readonly jsonevalwasm_compileLogic: (a: number, b: number, c: number, d: number) => void;
|
|
574
|
+
readonly jsonevalwasm_disableCache: (a: number) => void;
|
|
575
|
+
readonly jsonevalwasm_enableCache: (a: number) => void;
|
|
576
|
+
readonly jsonevalwasm_evaluate: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
577
|
+
readonly jsonevalwasm_evaluateDependents: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
578
|
+
readonly jsonevalwasm_evaluateDependentsJS: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
579
|
+
readonly jsonevalwasm_evaluateDependentsSubform: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
|
|
580
|
+
readonly jsonevalwasm_evaluateDependentsSubformJS: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
|
|
581
|
+
readonly jsonevalwasm_evaluateJS: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
582
|
+
readonly jsonevalwasm_evaluateLogic: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
583
|
+
readonly jsonevalwasm_evaluateSubform: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
584
|
+
readonly jsonevalwasm_getEvaluatedSchema: (a: number, b: number, c: number) => void;
|
|
585
|
+
readonly jsonevalwasm_getEvaluatedSchemaByPath: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
586
|
+
readonly jsonevalwasm_getEvaluatedSchemaByPathJS: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
587
|
+
readonly jsonevalwasm_getEvaluatedSchemaByPathSubform: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
588
|
+
readonly jsonevalwasm_getEvaluatedSchemaByPathSubformJS: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
589
|
+
readonly jsonevalwasm_getEvaluatedSchemaByPaths: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
590
|
+
readonly jsonevalwasm_getEvaluatedSchemaByPathsJS: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
591
|
+
readonly jsonevalwasm_getEvaluatedSchemaByPathsSubform: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
592
|
+
readonly jsonevalwasm_getEvaluatedSchemaByPathsSubformJS: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
593
|
+
readonly jsonevalwasm_getEvaluatedSchemaJS: (a: number, b: number, c: number) => void;
|
|
594
|
+
readonly jsonevalwasm_getEvaluatedSchemaMsgpack: (a: number, b: number, c: number) => void;
|
|
595
|
+
readonly jsonevalwasm_getEvaluatedSchemaSubform: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
596
|
+
readonly jsonevalwasm_getEvaluatedSchemaSubformJS: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
597
|
+
readonly jsonevalwasm_getEvaluatedSchemaWithoutParams: (a: number, b: number, c: number) => void;
|
|
598
|
+
readonly jsonevalwasm_getEvaluatedSchemaWithoutParamsJS: (a: number, b: number, c: number) => void;
|
|
599
|
+
readonly jsonevalwasm_getEvaluatedSchemaWithoutParamsSubform: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
600
|
+
readonly jsonevalwasm_getEvaluatedSchemaWithoutParamsSubformJS: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
601
|
+
readonly jsonevalwasm_getSchemaByPath: (a: number, b: number, c: number, d: number) => void;
|
|
602
|
+
readonly jsonevalwasm_getSchemaByPathJS: (a: number, b: number, c: number, d: number) => void;
|
|
603
|
+
readonly jsonevalwasm_getSchemaByPathSubform: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
604
|
+
readonly jsonevalwasm_getSchemaByPathSubformJS: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
605
|
+
readonly jsonevalwasm_getSchemaByPaths: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
606
|
+
readonly jsonevalwasm_getSchemaByPathsJS: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
607
|
+
readonly jsonevalwasm_getSchemaByPathsSubform: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
608
|
+
readonly jsonevalwasm_getSchemaByPathsSubformJS: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
609
|
+
readonly jsonevalwasm_getSchemaValue: (a: number, b: number) => void;
|
|
610
|
+
readonly jsonevalwasm_getSchemaValueArray: (a: number, b: number) => void;
|
|
611
|
+
readonly jsonevalwasm_getSchemaValueArraySubform: (a: number, b: number, c: number, d: number) => void;
|
|
612
|
+
readonly jsonevalwasm_getSchemaValueObject: (a: number, b: number) => void;
|
|
613
|
+
readonly jsonevalwasm_getSchemaValueObjectSubform: (a: number, b: number, c: number, d: number) => void;
|
|
614
|
+
readonly jsonevalwasm_getSchemaValueSubform: (a: number, b: number, c: number, d: number) => void;
|
|
615
|
+
readonly jsonevalwasm_getSubformPaths: (a: number, b: number) => void;
|
|
616
|
+
readonly jsonevalwasm_hasSubform: (a: number, b: number, c: number) => number;
|
|
617
|
+
readonly jsonevalwasm_isCacheEnabled: (a: number) => number;
|
|
618
|
+
readonly jsonevalwasm_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
619
|
+
readonly jsonevalwasm_newFromCache: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
620
|
+
readonly jsonevalwasm_newFromMsgpack: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
621
|
+
readonly jsonevalwasm_reloadSchema: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
622
|
+
readonly jsonevalwasm_reloadSchemaFromCache: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
623
|
+
readonly jsonevalwasm_reloadSchemaMsgpack: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
624
|
+
readonly jsonevalwasm_resolveLayout: (a: number, b: number, c: number) => void;
|
|
625
|
+
readonly jsonevalwasm_resolveLayoutSubform: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
626
|
+
readonly jsonevalwasm_runLogic: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
627
|
+
readonly jsonevalwasm_setTimezoneOffset: (a: number, b: number) => void;
|
|
628
|
+
readonly jsonevalwasm_validate: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
629
|
+
readonly jsonevalwasm_validateJS: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
630
|
+
readonly jsonevalwasm_validatePaths: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
631
|
+
readonly jsonevalwasm_validatePathsJS: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
632
|
+
readonly jsonevalwasm_validateSubform: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
633
|
+
readonly validationerror_code: (a: number, b: number) => void;
|
|
634
|
+
readonly validationerror_data: (a: number) => number;
|
|
635
|
+
readonly validationerror_field_value: (a: number, b: number) => void;
|
|
636
|
+
readonly validationerror_message: (a: number, b: number) => void;
|
|
637
|
+
readonly validationerror_path: (a: number, b: number) => void;
|
|
638
|
+
readonly validationerror_pattern: (a: number, b: number) => void;
|
|
639
|
+
readonly validationerror_rule_type: (a: number, b: number) => void;
|
|
640
|
+
readonly validationresult_error: (a: number) => number;
|
|
641
|
+
readonly validationresult_has_error: (a: number) => number;
|
|
642
|
+
readonly validationresult_toJSON: (a: number, b: number) => void;
|
|
643
|
+
readonly init: () => void;
|
|
644
|
+
readonly version: (a: number) => void;
|
|
645
|
+
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
646
|
+
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
647
|
+
readonly __wbindgen_export3: (a: number, b: number, c: number) => void;
|
|
648
|
+
readonly __wbindgen_export4: (a: number) => void;
|
|
649
|
+
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
650
|
+
readonly __wbindgen_start: () => void;
|
|
645
651
|
}
|
|
646
652
|
|
|
647
653
|
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
654
|
+
|
|
648
655
|
/**
|
|
649
|
-
* Instantiates the given `module`, which can either be bytes or
|
|
650
|
-
* a precompiled `WebAssembly.Module`.
|
|
651
|
-
*
|
|
652
|
-
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
653
|
-
*
|
|
654
|
-
* @returns {InitOutput}
|
|
655
|
-
*/
|
|
656
|
+
* Instantiates the given `module`, which can either be bytes or
|
|
657
|
+
* a precompiled `WebAssembly.Module`.
|
|
658
|
+
*
|
|
659
|
+
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
660
|
+
*
|
|
661
|
+
* @returns {InitOutput}
|
|
662
|
+
*/
|
|
656
663
|
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
657
664
|
|
|
658
665
|
/**
|
|
659
|
-
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
660
|
-
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
661
|
-
*
|
|
662
|
-
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
663
|
-
*
|
|
664
|
-
* @returns {Promise<InitOutput>}
|
|
665
|
-
*/
|
|
666
|
+
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
667
|
+
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
668
|
+
*
|
|
669
|
+
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
670
|
+
*
|
|
671
|
+
* @returns {Promise<InitOutput>}
|
|
672
|
+
*/
|
|
666
673
|
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|