@json-eval-rs/bundler 0.0.29 → 0.0.30

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.
@@ -18,38 +18,6 @@ export function init(): void;
18
18
  export class JSONEvalWasm {
19
19
  free(): void;
20
20
  [Symbol.dispose](): void;
21
- /**
22
- * Create a new JSONEval instance
23
- *
24
- * @param schema - JSON schema string
25
- * @param context - Optional context data JSON string
26
- * @param data - Optional initial data JSON string
27
- */
28
- constructor(schema: string, context?: string | null, data?: string | null);
29
- /**
30
- * Create a new JSONEval instance from MessagePack-encoded schema
31
- *
32
- * @param schemaMsgpack - MessagePack-encoded schema bytes (Uint8Array)
33
- * @param context - Optional context data JSON string
34
- * @param data - Optional initial data JSON string
35
- */
36
- static newFromMsgpack(schema_msgpack: Uint8Array, context?: string | null, data?: string | null): JSONEvalWasm;
37
- /**
38
- * Create a new JSONEval instance from a cached ParsedSchema
39
- *
40
- * @param cacheKey - Cache key to lookup in the global ParsedSchemaCache
41
- * @param context - Optional context data JSON string
42
- * @param data - Optional initial data JSON string
43
- */
44
- static newFromCache(cache_key: string, context?: string | null, data?: string | null): JSONEvalWasm;
45
- /**
46
- * Evaluate schema with provided data (does not return schema - use getEvaluatedSchema() for that)
47
- *
48
- * @param data - JSON data string
49
- * @param context - Optional context data JSON string
50
- * @throws Error if evaluation fails
51
- */
52
- evaluate(data: string, context?: string | null): void;
53
21
  /**
54
22
  * Evaluate and return as JsValue for direct JavaScript object access
55
23
  *
@@ -58,6 +26,12 @@ export class JSONEvalWasm {
58
26
  * @returns Evaluated schema as JavaScript object
59
27
  */
60
28
  evaluateJS(data: string, context?: string | null): any;
29
+ /**
30
+ * Compile JSON logic and return a global ID
31
+ * @param logic_str - JSON logic expression as a string
32
+ * @returns Compiled logic ID as number (u64)
33
+ */
34
+ compileLogic(logic_str: string): number;
61
35
  /**
62
36
  * Evaluate dependents when a field changes (returns array of changes as JSON string)
63
37
  *
@@ -67,6 +41,14 @@ export class JSONEvalWasm {
67
41
  * @returns Array of dependent change objects as JSON string
68
42
  */
69
43
  evaluateDependents(changed_path: string, data?: string | null, context?: string | null): string;
44
+ /**
45
+ * Compile and run JSON logic from a JSON logic string
46
+ * @param logic_str - JSON logic expression as a string
47
+ * @param data - Optional JSON data string
48
+ * @param context - Optional JSON context string
49
+ * @returns Result as JavaScript object
50
+ */
51
+ compileAndRunLogic(logic_str: string, data?: string | null, context?: string | null): any;
70
52
  /**
71
53
  * Evaluate dependents and return as JavaScript object
72
54
  *
@@ -78,19 +60,13 @@ export class JSONEvalWasm {
78
60
  */
79
61
  evaluateDependentsJS(changed_paths_json: string, data: string | null | undefined, context: string | null | undefined, re_evaluate: boolean): any;
80
62
  /**
81
- * Compile and run JSON logic from a JSON logic string
82
- * @param logic_str - JSON logic expression as a string
83
- * @param data - Optional JSON data string
84
- * @param context - Optional JSON context string
85
- * @returns Result as JavaScript object
86
- */
87
- compileAndRunLogic(logic_str: string, data?: string | null, context?: string | null): any;
88
- /**
89
- * Compile JSON logic and return a global ID
90
- * @param logic_str - JSON logic expression as a string
91
- * @returns Compiled logic ID as number (u64)
63
+ * Evaluate schema with provided data (does not return schema - use getEvaluatedSchema() for that)
64
+ *
65
+ * @param data - JSON data string
66
+ * @param context - Optional context data JSON string
67
+ * @throws Error if evaluation fails
92
68
  */
93
- compileLogic(logic_str: string): number;
69
+ evaluate(data: string, context?: string | null): void;
94
70
  /**
95
71
  * Run pre-compiled logic by ID
96
72
  * @param logic_id - Compiled logic ID from compileLogic
@@ -99,14 +75,6 @@ export class JSONEvalWasm {
99
75
  * @returns Result as JavaScript object
100
76
  */
101
77
  runLogic(logic_id: number, data?: string | null, context?: string | null): any;
102
- /**
103
- * Validate data against schema rules
104
- *
105
- * @param data - JSON data string
106
- * @param context - Optional context data JSON string
107
- * @returns ValidationResult
108
- */
109
- validate(data: string, context?: string | null): ValidationResult;
110
78
  /**
111
79
  * Validate data and return as plain JavaScript object (Worker-safe)
112
80
  *
@@ -134,88 +102,92 @@ export class JSONEvalWasm {
134
102
  */
135
103
  validatePathsJS(data: string, context?: string | null, paths?: string[] | null): any;
136
104
  /**
137
- * Get the evaluated schema with optional layout resolution
105
+ * Validate data against schema rules
138
106
  *
139
- * @param skipLayout - Whether to skip layout resolution
140
- * @returns Evaluated schema as JSON string
107
+ * @param data - JSON data string
108
+ * @param context - Optional context data JSON string
109
+ * @returns ValidationResult
141
110
  */
142
- getEvaluatedSchema(skip_layout: boolean): string;
111
+ validate(data: string, context?: string | null): ValidationResult;
143
112
  /**
144
- * Get the evaluated schema as JavaScript object
113
+ * Create a new JSONEval instance from a cached ParsedSchema
145
114
  *
146
- * @param skipLayout - Whether to skip layout resolution
147
- * @returns Evaluated schema as JavaScript object
115
+ * @param cacheKey - Cache key to lookup in the global ParsedSchemaCache
116
+ * @param context - Optional context data JSON string
117
+ * @param data - Optional initial data JSON string
148
118
  */
149
- getEvaluatedSchemaJS(skip_layout: boolean): any;
119
+ static newFromCache(cache_key: string, context?: string | null, data?: string | null): JSONEvalWasm;
150
120
  /**
151
- * Get the evaluated schema in MessagePack format
152
- *
153
- * @param skipLayout - Whether to skip layout resolution
154
- * @returns Evaluated schema as MessagePack bytes (Uint8Array)
155
- *
156
- * # Zero-Copy Optimization
157
- *
158
- * This method returns MessagePack binary data with minimal copying:
159
- * 1. Serializes schema to Vec<u8> in Rust (unavoidable)
160
- * 2. wasm-bindgen transfers Vec<u8> to JS as Uint8Array (optimized)
161
- * 3. Result is a Uint8Array view (minimal overhead)
121
+ * Create a new JSONEval instance from MessagePack-encoded schema
162
122
  *
163
- * MessagePack format is 20-50% smaller than JSON, ideal for web/WASM.
123
+ * @param schemaMsgpack - MessagePack-encoded schema bytes (Uint8Array)
124
+ * @param context - Optional context data JSON string
125
+ * @param data - Optional initial data JSON string
164
126
  */
165
- getEvaluatedSchemaMsgpack(skip_layout: boolean): Uint8Array;
127
+ static newFromMsgpack(schema_msgpack: Uint8Array, context?: string | null, data?: string | null): JSONEvalWasm;
166
128
  /**
167
- * Get all schema values (evaluations ending with .value)
168
- * Mutates internal data by overriding with values from value evaluations
129
+ * Create a new JSONEval instance
169
130
  *
170
- * @returns Modified data as JavaScript object
131
+ * @param schema - JSON schema string
132
+ * @param context - Optional context data JSON string
133
+ * @param data - Optional initial data JSON string
171
134
  */
172
- getSchemaValue(): any;
135
+ constructor(schema: string, context?: string | null, data?: string | null);
173
136
  /**
174
- * Get the evaluated schema without $params field
137
+ * Get cache statistics
175
138
  *
176
- * @param skipLayout - Whether to skip layout resolution
177
- * @returns Evaluated schema as JSON string
139
+ * @returns Cache statistics as JavaScript object with hits, misses, and entries
178
140
  */
179
- getEvaluatedSchemaWithoutParams(skip_layout: boolean): string;
141
+ cacheStats(): any;
180
142
  /**
181
- * Get the evaluated schema without $params as JavaScript object
143
+ * Clear the evaluation cache
144
+ */
145
+ clearCache(): void;
146
+ /**
147
+ * Enable evaluation caching
148
+ * Useful for reusing JSONEval instances with different data
149
+ */
150
+ enableCache(): void;
151
+ /**
152
+ * Disable evaluation caching
153
+ * Useful for web API usage where each request creates a new JSONEval instance
154
+ * Improves performance by skipping cache operations that have no benefit for single-use instances
155
+ */
156
+ disableCache(): void;
157
+ /**
158
+ * Check if evaluation caching is enabled
182
159
  *
183
- * @param skipLayout - Whether to skip layout resolution
184
- * @returns Evaluated schema as JavaScript object
160
+ * @returns true if caching is enabled, false otherwise
185
161
  */
186
- getEvaluatedSchemaWithoutParamsJS(skip_layout: boolean): any;
162
+ isCacheEnabled(): boolean;
187
163
  /**
188
- * Get a value from the evaluated schema using dotted path notation
164
+ * Get the number of cached entries
189
165
  *
190
- * @param path - Dotted path to the value (e.g., "properties.field.value")
191
- * @param skipLayout - Whether to skip layout resolution
192
- * @returns Value as JSON string or null if not found
166
+ * @returns Number of cached entries
193
167
  */
194
- getEvaluatedSchemaByPath(path: string, skip_layout: boolean): string | undefined;
168
+ cacheLen(): number;
195
169
  /**
196
- * Get a value from the evaluated schema using dotted path notation as JavaScript object
170
+ * Resolve layout with optional evaluation
197
171
  *
198
- * @param path - Dotted path to the value (e.g., "properties.field.value")
199
- * @param skipLayout - Whether to skip layout resolution
200
- * @returns Value as JavaScript object or null if not found
172
+ * @param evaluate - If true, runs evaluation before resolving layout
173
+ * @throws Error if resolve fails
201
174
  */
202
- getEvaluatedSchemaByPathJS(path: string, skip_layout: boolean): any;
175
+ resolveLayout(evaluate: boolean): void;
203
176
  /**
204
- * Get values from evaluated schema using multiple dotted paths
205
- * @param pathsJson - JSON array of dotted paths
206
- * @param skipLayout - Whether to skip layout resolution
207
- * @param format - Return format (0=Nested, 1=Flat, 2=Array)
208
- * @returns Data in specified format as JSON string
177
+ * Reload schema with new data
178
+ *
179
+ * @param schema - New JSON schema string
180
+ * @param context - Optional context data JSON string
181
+ * @param data - Optional initial data JSON string
209
182
  */
210
- getEvaluatedSchemaByPaths(paths_json: string, skip_layout: boolean, format: number): string;
183
+ reloadSchema(schema: string, context?: string | null, data?: string | null): void;
211
184
  /**
212
- * Get values from evaluated schema using multiple dotted paths (JS object)
213
- * @param pathsJson - JSON array of dotted paths
214
- * @param skipLayout - Whether to skip layout resolution
215
- * @param format - Return format (0=Nested, 1=Flat, 2=Array)
216
- * @returns Data in specified format as JavaScript object
185
+ * Get all schema values (evaluations ending with .value)
186
+ * Mutates internal data by overriding with values from value evaluations
187
+ *
188
+ * @returns Modified data as JavaScript object
217
189
  */
218
- getEvaluatedSchemaByPathsJS(paths_json: string, skip_layout: boolean, format: number): any;
190
+ getSchemaValue(): any;
219
191
  /**
220
192
  * Get a value from the schema using dotted path notation
221
193
  *
@@ -223,13 +195,6 @@ export class JSONEvalWasm {
223
195
  * @returns Value as JSON string or null if not found
224
196
  */
225
197
  getSchemaByPath(path: string): string | undefined;
226
- /**
227
- * Get a value from the schema using dotted path notation as JavaScript object
228
- *
229
- * @param path - Dotted path to the value (e.g., "properties.field.value")
230
- * @returns Value as JavaScript object or null if not found
231
- */
232
- getSchemaByPathJS(path: string): any;
233
198
  /**
234
199
  * Get values from schema using multiple dotted paths
235
200
  * @param pathsJson - JSON array of dotted paths
@@ -238,20 +203,19 @@ export class JSONEvalWasm {
238
203
  */
239
204
  getSchemaByPaths(paths_json: string, format: number): string;
240
205
  /**
241
- * Get values from schema using multiple dotted paths (JS object)
242
- * @param pathsJson - JSON array of dotted paths
243
- * @param format - Return format (0=Nested, 1=Flat, 2=Array)
244
- * @returns Data in specified format as JavaScript object
206
+ * Get the evaluated schema with optional layout resolution
207
+ *
208
+ * @param skipLayout - Whether to skip layout resolution
209
+ * @returns Evaluated schema as JSON string
245
210
  */
246
- getSchemaByPathsJS(paths_json: string, format: number): any;
211
+ getEvaluatedSchema(skip_layout: boolean): string;
247
212
  /**
248
- * Reload schema with new data
213
+ * Get a value from the schema using dotted path notation as JavaScript object
249
214
  *
250
- * @param schema - New JSON schema string
251
- * @param context - Optional context data JSON string
252
- * @param data - Optional initial data JSON string
215
+ * @param path - Dotted path to the value (e.g., "properties.field.value")
216
+ * @returns Value as JavaScript object or null if not found
253
217
  */
254
- reloadSchema(schema: string, context?: string | null, data?: string | null): void;
218
+ getSchemaByPathJS(path: string): any;
255
219
  /**
256
220
  * Reload schema from MessagePack-encoded bytes
257
221
  *
@@ -260,6 +224,20 @@ export class JSONEvalWasm {
260
224
  * @param data - Optional initial data JSON string
261
225
  */
262
226
  reloadSchemaMsgpack(schema_msgpack: Uint8Array, context?: string | null, data?: string | null): void;
227
+ /**
228
+ * Get values from schema using multiple dotted paths (JS object)
229
+ * @param pathsJson - JSON array of dotted paths
230
+ * @param format - Return format (0=Nested, 1=Flat, 2=Array)
231
+ * @returns Data in specified format as JavaScript object
232
+ */
233
+ getSchemaByPathsJS(paths_json: string, format: number): any;
234
+ /**
235
+ * Get the evaluated schema as JavaScript object
236
+ *
237
+ * @param skipLayout - Whether to skip layout resolution
238
+ * @returns Evaluated schema as JavaScript object
239
+ */
240
+ getEvaluatedSchemaJS(skip_layout: boolean): any;
263
241
  /**
264
242
  * Reload schema from ParsedSchemaCache using a cache key
265
243
  *
@@ -269,45 +247,74 @@ export class JSONEvalWasm {
269
247
  */
270
248
  reloadSchemaFromCache(cache_key: string, context?: string | null, data?: string | null): void;
271
249
  /**
272
- * Get cache statistics
250
+ * Get a value from the evaluated schema using dotted path notation
273
251
  *
274
- * @returns Cache statistics as JavaScript object with hits, misses, and entries
252
+ * @param path - Dotted path to the value (e.g., "properties.field.value")
253
+ * @param skipLayout - Whether to skip layout resolution
254
+ * @returns Value as JSON string or null if not found
275
255
  */
276
- cacheStats(): any;
256
+ getEvaluatedSchemaByPath(path: string, skip_layout: boolean): string | undefined;
277
257
  /**
278
- * Clear the evaluation cache
258
+ * Get the evaluated schema in MessagePack format
259
+ *
260
+ * @param skipLayout - Whether to skip layout resolution
261
+ * @returns Evaluated schema as MessagePack bytes (Uint8Array)
262
+ *
263
+ * # Zero-Copy Optimization
264
+ *
265
+ * This method returns MessagePack binary data with minimal copying:
266
+ * 1. Serializes schema to Vec<u8> in Rust (unavoidable)
267
+ * 2. wasm-bindgen transfers Vec<u8> to JS as Uint8Array (optimized)
268
+ * 3. Result is a Uint8Array view (minimal overhead)
269
+ *
270
+ * MessagePack format is 20-50% smaller than JSON, ideal for web/WASM.
279
271
  */
280
- clearCache(): void;
272
+ getEvaluatedSchemaMsgpack(skip_layout: boolean): Uint8Array;
281
273
  /**
282
- * Get the number of cached entries
274
+ * Get values from evaluated schema using multiple dotted paths
275
+ * @param pathsJson - JSON array of dotted paths
276
+ * @param skipLayout - Whether to skip layout resolution
277
+ * @param format - Return format (0=Nested, 1=Flat, 2=Array)
278
+ * @returns Data in specified format as JSON string
279
+ */
280
+ getEvaluatedSchemaByPaths(paths_json: string, skip_layout: boolean, format: number): string;
281
+ /**
282
+ * Get a value from the evaluated schema using dotted path notation as JavaScript object
283
283
  *
284
- * @returns Number of cached entries
284
+ * @param path - Dotted path to the value (e.g., "properties.field.value")
285
+ * @param skipLayout - Whether to skip layout resolution
286
+ * @returns Value as JavaScript object or null if not found
285
287
  */
286
- cacheLen(): number;
288
+ getEvaluatedSchemaByPathJS(path: string, skip_layout: boolean): any;
287
289
  /**
288
- * Enable evaluation caching
289
- * Useful for reusing JSONEval instances with different data
290
+ * Get values from evaluated schema using multiple dotted paths (JS object)
291
+ * @param pathsJson - JSON array of dotted paths
292
+ * @param skipLayout - Whether to skip layout resolution
293
+ * @param format - Return format (0=Nested, 1=Flat, 2=Array)
294
+ * @returns Data in specified format as JavaScript object
290
295
  */
291
- enableCache(): void;
296
+ getEvaluatedSchemaByPathsJS(paths_json: string, skip_layout: boolean, format: number): any;
292
297
  /**
293
- * Disable evaluation caching
294
- * Useful for web API usage where each request creates a new JSONEval instance
295
- * Improves performance by skipping cache operations that have no benefit for single-use instances
298
+ * Get the evaluated schema without $params field
299
+ *
300
+ * @param skipLayout - Whether to skip layout resolution
301
+ * @returns Evaluated schema as JSON string
296
302
  */
297
- disableCache(): void;
303
+ getEvaluatedSchemaWithoutParams(skip_layout: boolean): string;
298
304
  /**
299
- * Check if evaluation caching is enabled
305
+ * Get the evaluated schema without $params as JavaScript object
300
306
  *
301
- * @returns true if caching is enabled, false otherwise
307
+ * @param skipLayout - Whether to skip layout resolution
308
+ * @returns Evaluated schema as JavaScript object
302
309
  */
303
- isCacheEnabled(): boolean;
310
+ getEvaluatedSchemaWithoutParamsJS(skip_layout: boolean): any;
304
311
  /**
305
- * Resolve layout with optional evaluation
312
+ * Check if a subform exists at the given path
306
313
  *
307
- * @param evaluate - If true, runs evaluation before resolving layout
308
- * @throws Error if resolve fails
314
+ * @param subformPath - Path to check
315
+ * @returns True if subform exists, false otherwise
309
316
  */
310
- resolveLayout(evaluate: boolean): void;
317
+ hasSubform(subform_path: string): boolean;
311
318
  /**
312
319
  * Evaluate a subform with data
313
320
  *
@@ -327,33 +334,51 @@ export class JSONEvalWasm {
327
334
  */
328
335
  validateSubform(subform_path: string, data: string, context?: string | null): ValidationResult;
329
336
  /**
330
- * Evaluate dependents in subform when a field changes
337
+ * Get list of available subform paths
338
+ *
339
+ * @returns Array of subform paths
340
+ */
341
+ getSubformPaths(): string[];
342
+ /**
343
+ * Resolve layout for subform
331
344
  *
332
345
  * @param subformPath - Path to the subform
333
- * @param changedPath - Path of the field that changed
334
- * @param data - Optional updated JSON data string
335
- * @param context - Optional context data JSON string
336
- * @returns Array of dependent change objects as JSON string
346
+ * @param evaluate - If true, runs evaluation before resolving layout
347
+ * @throws Error if resolve fails
337
348
  */
338
- evaluateDependentsSubform(subform_path: string, changed_path: string, data?: string | null, context?: string | null): string;
349
+ resolveLayoutSubform(subform_path: string, evaluate: boolean): void;
339
350
  /**
340
- * Evaluate dependents in subform and return as JavaScript object
351
+ * Get schema value from subform (all .value fields)
352
+ *
353
+ * @param subformPath - Path to the subform
354
+ * @returns Modified data as JavaScript object
355
+ */
356
+ getSchemaValueSubform(subform_path: string): any;
357
+ /**
358
+ * Get schema by specific path from subform (returns JSON string)
359
+ * @param subformPath - Path to the subform
360
+ * @param schemaPath - Path within the subform
361
+ * @returns Value as JSON string or null if not found
362
+ */
363
+ getSchemaByPathSubform(subform_path: string, schema_path: string): string | undefined;
364
+ /**
365
+ * Evaluate dependents in subform when a field changes
341
366
  *
342
367
  * @param subformPath - Path to the subform
343
368
  * @param changedPath - Path of the field that changed
344
369
  * @param data - Optional updated JSON data string
345
370
  * @param context - Optional context data JSON string
346
- * @returns Array of dependent change objects as JavaScript object
371
+ * @returns Array of dependent change objects as JSON string
347
372
  */
348
- evaluateDependentsSubformJS(subform_path: string, changed_path: string, data?: string | null, context?: string | null): any;
373
+ evaluateDependentsSubform(subform_path: string, changed_path: string, data?: string | null, context?: string | null): string;
349
374
  /**
350
- * Resolve layout for subform
351
- *
375
+ * Get schema by multiple paths from subform
352
376
  * @param subformPath - Path to the subform
353
- * @param evaluate - If true, runs evaluation before resolving layout
354
- * @throws Error if resolve fails
377
+ * @param pathsJson - JSON array of dotted paths
378
+ * @param format - Return format (0=Nested, 1=Flat, 2=Array)
379
+ * @returns Data in specified format as JSON string
355
380
  */
356
- resolveLayoutSubform(subform_path: string, evaluate: boolean): void;
381
+ getSchemaByPathsSubform(subform_path: string, paths_json: string, format: number): string;
357
382
  /**
358
383
  * Get evaluated schema from subform
359
384
  *
@@ -363,36 +388,38 @@ export class JSONEvalWasm {
363
388
  */
364
389
  getEvaluatedSchemaSubform(subform_path: string, resolve_layout: boolean): string;
365
390
  /**
366
- * Get evaluated schema from subform as JavaScript object
367
- *
391
+ * Get schema by specific path from subform (returns JS object)
368
392
  * @param subformPath - Path to the subform
369
- * @param resolveLayout - Whether to resolve layout
370
- * @returns Evaluated schema as JavaScript object
393
+ * @param schemaPath - Path within the subform
394
+ * @returns Value as JavaScript object or null if not found
371
395
  */
372
- getEvaluatedSchemaSubformJS(subform_path: string, resolve_layout: boolean): any;
396
+ getSchemaByPathSubformJS(subform_path: string, schema_path: string): any;
373
397
  /**
374
- * Get schema value from subform (all .value fields)
398
+ * Evaluate dependents in subform and return as JavaScript object
375
399
  *
376
400
  * @param subformPath - Path to the subform
377
- * @returns Modified data as JavaScript object
401
+ * @param changedPath - Path of the field that changed
402
+ * @param data - Optional updated JSON data string
403
+ * @param context - Optional context data JSON string
404
+ * @returns Array of dependent change objects as JavaScript object
378
405
  */
379
- getSchemaValueSubform(subform_path: string): any;
406
+ evaluateDependentsSubformJS(subform_path: string, changed_path: string, data?: string | null, context?: string | null): any;
380
407
  /**
381
- * Get evaluated schema without $params from subform
382
- *
408
+ * Get schema by multiple paths from subform (JS object)
383
409
  * @param subformPath - Path to the subform
384
- * @param resolveLayout - Whether to resolve layout
385
- * @returns Evaluated schema as JSON string
410
+ * @param pathsJson - JSON array of dotted paths
411
+ * @param format - Return format (0=Nested, 1=Flat, 2=Array)
412
+ * @returns Data in specified format as JavaScript object
386
413
  */
387
- getEvaluatedSchemaWithoutParamsSubform(subform_path: string, resolve_layout: boolean): string;
414
+ getSchemaByPathsSubformJS(subform_path: string, paths_json: string, format: number): any;
388
415
  /**
389
- * Get evaluated schema without $params from subform as JavaScript object
416
+ * Get evaluated schema from subform as JavaScript object
390
417
  *
391
418
  * @param subformPath - Path to the subform
392
419
  * @param resolveLayout - Whether to resolve layout
393
420
  * @returns Evaluated schema as JavaScript object
394
421
  */
395
- getEvaluatedSchemaWithoutParamsSubformJS(subform_path: string, resolve_layout: boolean): any;
422
+ getEvaluatedSchemaSubformJS(subform_path: string, resolve_layout: boolean): any;
396
423
  /**
397
424
  * Get evaluated schema by specific path from subform
398
425
  *
@@ -402,15 +429,6 @@ export class JSONEvalWasm {
402
429
  * @returns Value as JSON string or null if not found
403
430
  */
404
431
  getEvaluatedSchemaByPathSubform(subform_path: string, schema_path: string, skip_layout: boolean): string | undefined;
405
- /**
406
- * Get evaluated schema by specific path from subform as JavaScript object
407
- *
408
- * @param subformPath - Path to the subform
409
- * @param schemaPath - Dotted path to the value within the subform
410
- * @param skipLayout - Whether to skip layout resolution
411
- * @returns Value as JavaScript object or null if not found
412
- */
413
- getEvaluatedSchemaByPathSubformJS(subform_path: string, schema_path: string, skip_layout: boolean): any;
414
432
  /**
415
433
  * Get values from the evaluated schema of a subform using multiple dotted path notations (returns JSON string)
416
434
  * @param subformPath - Path to the subform
@@ -421,57 +439,39 @@ export class JSONEvalWasm {
421
439
  */
422
440
  getEvaluatedSchemaByPathsSubform(subform_path: string, paths_json: string, skip_layout: boolean, format: number): string;
423
441
  /**
424
- * Get values from the evaluated schema of a subform using multiple dotted path notations (returns JS object)
442
+ * Get evaluated schema by specific path from subform as JavaScript object
443
+ *
425
444
  * @param subformPath - Path to the subform
426
- * @param pathsJson - JSON array of dotted paths
445
+ * @param schemaPath - Dotted path to the value within the subform
427
446
  * @param skipLayout - Whether to skip layout resolution
428
- * @param format - Return format (0=Nested, 1=Flat, 2=Array)
429
- * @returns Data in specified format as JavaScript object
430
- */
431
- getEvaluatedSchemaByPathsSubformJS(subform_path: string, paths_json: string, skip_layout: boolean, format: number): any;
432
- /**
433
- * Get schema by specific path from subform (returns JSON string)
434
- * @param subformPath - Path to the subform
435
- * @param schemaPath - Path within the subform
436
- * @returns Value as JSON string or null if not found
437
- */
438
- getSchemaByPathSubform(subform_path: string, schema_path: string): string | undefined;
439
- /**
440
- * Get schema by specific path from subform (returns JS object)
441
- * @param subformPath - Path to the subform
442
- * @param schemaPath - Path within the subform
443
447
  * @returns Value as JavaScript object or null if not found
444
448
  */
445
- getSchemaByPathSubformJS(subform_path: string, schema_path: string): any;
446
- /**
447
- * Get schema by multiple paths from subform
448
- * @param subformPath - Path to the subform
449
- * @param pathsJson - JSON array of dotted paths
450
- * @param format - Return format (0=Nested, 1=Flat, 2=Array)
451
- * @returns Data in specified format as JSON string
452
- */
453
- getSchemaByPathsSubform(subform_path: string, paths_json: string, format: number): string;
449
+ getEvaluatedSchemaByPathSubformJS(subform_path: string, schema_path: string, skip_layout: boolean): any;
454
450
  /**
455
- * Get schema by multiple paths from subform (JS object)
451
+ * Get values from the evaluated schema of a subform using multiple dotted path notations (returns JS object)
456
452
  * @param subformPath - Path to the subform
457
453
  * @param pathsJson - JSON array of dotted paths
454
+ * @param skipLayout - Whether to skip layout resolution
458
455
  * @param format - Return format (0=Nested, 1=Flat, 2=Array)
459
456
  * @returns Data in specified format as JavaScript object
460
457
  */
461
- getSchemaByPathsSubformJS(subform_path: string, paths_json: string, format: number): any;
458
+ getEvaluatedSchemaByPathsSubformJS(subform_path: string, paths_json: string, skip_layout: boolean, format: number): any;
462
459
  /**
463
- * Get list of available subform paths
460
+ * Get evaluated schema without $params from subform
464
461
  *
465
- * @returns Array of subform paths
462
+ * @param subformPath - Path to the subform
463
+ * @param resolveLayout - Whether to resolve layout
464
+ * @returns Evaluated schema as JSON string
466
465
  */
467
- getSubformPaths(): string[];
466
+ getEvaluatedSchemaWithoutParamsSubform(subform_path: string, resolve_layout: boolean): string;
468
467
  /**
469
- * Check if a subform exists at the given path
468
+ * Get evaluated schema without $params from subform as JavaScript object
470
469
  *
471
- * @param subformPath - Path to check
472
- * @returns True if subform exists, false otherwise
470
+ * @param subformPath - Path to the subform
471
+ * @param resolveLayout - Whether to resolve layout
472
+ * @returns Evaluated schema as JavaScript object
473
473
  */
474
- hasSubform(subform_path: string): boolean;
474
+ getEvaluatedSchemaWithoutParamsSubformJS(subform_path: string, resolve_layout: boolean): any;
475
475
  }
476
476
  /**
477
477
  * Validation error for JavaScript
@@ -480,13 +480,13 @@ export class ValidationError {
480
480
  private constructor();
481
481
  free(): void;
482
482
  [Symbol.dispose](): void;
483
+ readonly field_value: string | undefined;
484
+ readonly code: string | undefined;
485
+ readonly data: any;
483
486
  readonly path: string;
484
- readonly rule_type: string;
485
487
  readonly message: string;
486
- readonly code: string | undefined;
487
488
  readonly pattern: string | undefined;
488
- readonly field_value: string | undefined;
489
- readonly data: any;
489
+ readonly rule_type: string;
490
490
  }
491
491
  /**
492
492
  * Validation result for JavaScript
@@ -496,6 +496,6 @@ export class ValidationResult {
496
496
  free(): void;
497
497
  [Symbol.dispose](): void;
498
498
  toJSON(): any;
499
- readonly has_error: boolean;
500
499
  readonly errors: ValidationError[];
500
+ readonly has_error: boolean;
501
501
  }