@opencrvs/toolkit 1.9.8-rc.d187100 → 1.9.8-rc.f0948d3

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.
@@ -1,12 +1,11 @@
1
1
  import { ActionType } from './ActionType';
2
2
  import { EventFieldIdInput } from './AdvancedSearchConfig';
3
3
  import { WorkqueueColumnKeys, WorkqueueColumnValue } from './WorkqueueColumnConfig';
4
+ import { SelectOption, ValidationConfig } from 'src/client';
5
+ import { FieldConditional } from './Conditional';
6
+ import { TranslationConfig } from './TranslationConfig';
4
7
  /**
5
- * Creates a function that acts like a callable + static method container.
6
- *
7
- * @example
8
- * event('status') // → returns search config
9
- * event.hasAction('CLICKED') // → returns conditional
8
+ * @deprecated Use `event.metadata` instead
10
9
  */
11
10
  declare function eventFn(fieldId: EventFieldIdInput): {
12
11
  range: () => {
@@ -55,12 +54,12 @@ declare const event: typeof eventFn & {
55
54
  *
56
55
  * @param minCount - The minimum number of actions required.
57
56
  */
58
- minCount: (minCount: number) => import("../conditionals/conditionals").JSONSchema;
57
+ minCount: (minCount: number) => import("src/client").JSONSchema;
59
58
  /**
60
59
  * Builds a conditional that sets a maximum count for the number of actions.
61
60
  * This is useful for limiting the number of actions of a specific type in a single event.
62
61
  */
63
- maxCount: (maxCount: number) => import("../conditionals/conditionals").JSONSchema;
62
+ maxCount: (maxCount: number) => import("src/client").JSONSchema;
64
63
  /**
65
64
  * Adds additional field constraints to the action matching.
66
65
  *
@@ -73,12 +72,12 @@ declare const event: typeof eventFn & {
73
72
  *
74
73
  * @param minCount - The minimum number of actions required.
75
74
  */
76
- minCount: (minCount: number) => import("../conditionals/conditionals").JSONSchema;
75
+ minCount: (minCount: number) => import("src/client").JSONSchema;
77
76
  /**
78
77
  * Builds a conditional that sets a maximum count for the number of actions.
79
78
  * This is useful for limiting the number of actions of a specific type in a single event.
80
79
  */
81
- maxCount: (maxCount: number) => import("../conditionals/conditionals").JSONSchema;
80
+ maxCount: (maxCount: number) => import("src/client").JSONSchema;
82
81
  };
83
82
  /**
84
83
  * Adds template ID constraint to the action matching.
@@ -93,17 +92,613 @@ declare const event: typeof eventFn & {
93
92
  *
94
93
  * @param minCount - The minimum number of actions required.
95
94
  */
96
- minCount: (minCount: number) => import("../conditionals/conditionals").JSONSchema;
95
+ minCount: (minCount: number) => import("src/client").JSONSchema;
97
96
  /**
98
97
  * Builds a conditional that sets a maximum count for the number of actions.
99
98
  * This is useful for limiting the number of actions of a specific type in a single event.
100
99
  */
101
- maxCount: (maxCount: number) => import("../conditionals/conditionals").JSONSchema;
100
+ maxCount: (maxCount: number) => import("src/client").JSONSchema;
102
101
  };
103
102
  $id: string;
104
103
  __nominal__type: "JSONSchema";
105
104
  };
106
105
  field(field: WorkqueueColumnKeys): WorkqueueColumnValue;
106
+ /**
107
+ * Creates a function that acts like a callable + static method container.
108
+ * @param fieldId - The ID of the event metadata field to create a search config for.
109
+ * @example
110
+ * event('status') // → returns search config
111
+ * event.hasAction('CLICKED') // → returns conditional
112
+ */
113
+ metadata(fieldId: EventFieldIdInput): {
114
+ range: () => {
115
+ fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber";
116
+ fieldType: "event";
117
+ } & {
118
+ config: {
119
+ type: "range";
120
+ };
121
+ };
122
+ exact: () => {
123
+ fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber";
124
+ fieldType: "event";
125
+ } & {
126
+ config: {
127
+ type: "exact";
128
+ };
129
+ };
130
+ fuzzy: () => {
131
+ fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber";
132
+ fieldType: "event";
133
+ } & {
134
+ config: {
135
+ type: "fuzzy";
136
+ };
137
+ };
138
+ within: () => {
139
+ fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber";
140
+ fieldType: "event";
141
+ } & {
142
+ config: {
143
+ type: "within";
144
+ };
145
+ };
146
+ };
147
+ /**
148
+ * Entry point for defining conditional logic or configuration for a form field.
149
+ * @param fieldId - The ID of the field to define rules or config for.
150
+ * @returns An object combining conditional methods and configuration builders.
151
+ */
152
+ declaration(fieldId: string, options?: {
153
+ options?: SelectOption[];
154
+ conditionals?: FieldConditional[];
155
+ validations?: ValidationConfig[];
156
+ searchCriteriaLabelPrefix?: TranslationConfig;
157
+ }): {
158
+ range: () => {
159
+ options?: SelectOption[];
160
+ conditionals?: FieldConditional[];
161
+ validations?: ValidationConfig[];
162
+ searchCriteriaLabelPrefix?: TranslationConfig;
163
+ fieldId: string;
164
+ fieldType: "field";
165
+ } & {
166
+ config: {
167
+ type: "range";
168
+ };
169
+ };
170
+ exact: () => {
171
+ options?: SelectOption[];
172
+ conditionals?: FieldConditional[];
173
+ validations?: ValidationConfig[];
174
+ searchCriteriaLabelPrefix?: TranslationConfig;
175
+ fieldId: string;
176
+ fieldType: "field";
177
+ } & {
178
+ config: {
179
+ type: "exact";
180
+ };
181
+ };
182
+ fuzzy: () => {
183
+ options?: SelectOption[];
184
+ conditionals?: FieldConditional[];
185
+ validations?: ValidationConfig[];
186
+ searchCriteriaLabelPrefix?: TranslationConfig;
187
+ fieldId: string;
188
+ fieldType: "field";
189
+ } & {
190
+ config: {
191
+ type: "fuzzy";
192
+ };
193
+ };
194
+ within: () => {
195
+ options?: SelectOption[];
196
+ conditionals?: FieldConditional[];
197
+ validations?: ValidationConfig[];
198
+ searchCriteriaLabelPrefix?: TranslationConfig;
199
+ fieldId: string;
200
+ fieldType: "field";
201
+ } & {
202
+ config: {
203
+ type: "within";
204
+ };
205
+ };
206
+ $$field: string;
207
+ $$subfield: string[];
208
+ get(fieldPath: string): {
209
+ $$subfield: string[];
210
+ $$field: string;
211
+ get(fieldPath: string): any;
212
+ getByPath(fieldPath: string[]): {
213
+ $$subfield: string[];
214
+ $$field: string;
215
+ get(fieldPath: string): any;
216
+ getByPath(fieldPath: string[]): any;
217
+ asDob(): any;
218
+ asAge(): any;
219
+ isAfter(): {
220
+ days: (days: number) => {
221
+ inPast: () => import("src/client").JSONSchema;
222
+ inFuture: () => import("src/client").JSONSchema;
223
+ fromDate: (date: `${string}-${string}-${string}` | {
224
+ $$field: string;
225
+ $$subfield: string[];
226
+ }) => import("src/client").JSONSchema;
227
+ fromNow: () => import("src/client").JSONSchema;
228
+ };
229
+ date: (date: string | {
230
+ $$field: string;
231
+ $$subfield: string[];
232
+ }) => import("src/client").JSONSchema;
233
+ now: () => import("src/client").JSONSchema;
234
+ };
235
+ isBefore(): {
236
+ days: (days: number) => {
237
+ inPast: () => import("src/client").JSONSchema;
238
+ inFuture: () => import("src/client").JSONSchema;
239
+ fromDate: (date: `${string}-${string}-${string}` | {
240
+ $$field: string;
241
+ $$subfield: string[];
242
+ }) => import("src/client").JSONSchema;
243
+ fromNow: () => import("src/client").JSONSchema;
244
+ };
245
+ date: (date: `${string}-${string}-${string}` | {
246
+ $$field: string;
247
+ $$subfield: string[];
248
+ }) => import("src/client").JSONSchema;
249
+ now: () => import("src/client").JSONSchema;
250
+ };
251
+ isGreaterThan(value: number | {
252
+ $$field: string;
253
+ $$subfield: string[];
254
+ }): import("src/client").JSONSchema;
255
+ isLessThan(value: number | {
256
+ $$field: string;
257
+ $$subfield: string[];
258
+ }): import("src/client").JSONSchema;
259
+ isEqualTo(value: string | boolean | number | {
260
+ $$field: string;
261
+ $$subfield: string[];
262
+ }): import("src/client").JSONSchema;
263
+ isFalsy(): import("src/client").JSONSchema;
264
+ isUndefined(): import("src/client").JSONSchema;
265
+ inArray(values: string[]): import("src/client").JSONSchema;
266
+ isValidEnglishName(): import("src/client").JSONSchema;
267
+ isValidAdministrativeLeafLevel(): import("src/client").JSONSchema;
268
+ matches(pattern: string): import("src/client").JSONSchema;
269
+ isBetween(min: number, max: number): import("src/client").JSONSchema;
270
+ getId: () => {
271
+ fieldId: string;
272
+ };
273
+ object: (options: Record<string, any>) => import("src/client").JSONSchema;
274
+ };
275
+ asDob(): any;
276
+ asAge(): any;
277
+ isAfter(): {
278
+ days: (days: number) => {
279
+ inPast: () => import("src/client").JSONSchema;
280
+ inFuture: () => import("src/client").JSONSchema;
281
+ fromDate: (date: `${string}-${string}-${string}` | {
282
+ $$field: string;
283
+ $$subfield: string[];
284
+ }) => import("src/client").JSONSchema;
285
+ fromNow: () => import("src/client").JSONSchema;
286
+ };
287
+ date: (date: string | {
288
+ $$field: string;
289
+ $$subfield: string[];
290
+ }) => import("src/client").JSONSchema;
291
+ now: () => import("src/client").JSONSchema;
292
+ };
293
+ isBefore(): {
294
+ days: (days: number) => {
295
+ inPast: () => import("src/client").JSONSchema;
296
+ inFuture: () => import("src/client").JSONSchema;
297
+ fromDate: (date: `${string}-${string}-${string}` | {
298
+ $$field: string;
299
+ $$subfield: string[];
300
+ }) => import("src/client").JSONSchema;
301
+ fromNow: () => import("src/client").JSONSchema;
302
+ };
303
+ date: (date: `${string}-${string}-${string}` | {
304
+ $$field: string;
305
+ $$subfield: string[];
306
+ }) => import("src/client").JSONSchema;
307
+ now: () => import("src/client").JSONSchema;
308
+ };
309
+ isGreaterThan(value: number | {
310
+ $$field: string;
311
+ $$subfield: string[];
312
+ }): import("src/client").JSONSchema;
313
+ isLessThan(value: number | {
314
+ $$field: string;
315
+ $$subfield: string[];
316
+ }): import("src/client").JSONSchema;
317
+ isEqualTo(value: string | boolean | number | {
318
+ $$field: string;
319
+ $$subfield: string[];
320
+ }): import("src/client").JSONSchema;
321
+ isFalsy(): import("src/client").JSONSchema;
322
+ isUndefined(): import("src/client").JSONSchema;
323
+ inArray(values: string[]): import("src/client").JSONSchema;
324
+ isValidEnglishName(): import("src/client").JSONSchema;
325
+ isValidAdministrativeLeafLevel(): import("src/client").JSONSchema;
326
+ matches(pattern: string): import("src/client").JSONSchema;
327
+ isBetween(min: number, max: number): import("src/client").JSONSchema;
328
+ getId: () => {
329
+ fieldId: string;
330
+ };
331
+ object: (options: Record<string, any>) => import("src/client").JSONSchema;
332
+ };
333
+ getByPath(fieldPath: string[]): {
334
+ $$subfield: string[];
335
+ $$field: string;
336
+ get(fieldPath: string): any;
337
+ getByPath(fieldPath: string[]): any;
338
+ asDob(): any;
339
+ asAge(): any;
340
+ isAfter(): {
341
+ days: (days: number) => {
342
+ inPast: () => import("src/client").JSONSchema;
343
+ inFuture: () => import("src/client").JSONSchema;
344
+ fromDate: (date: `${string}-${string}-${string}` | {
345
+ $$field: string;
346
+ $$subfield: string[];
347
+ }) => import("src/client").JSONSchema;
348
+ fromNow: () => import("src/client").JSONSchema;
349
+ };
350
+ date: (date: string | {
351
+ $$field: string;
352
+ $$subfield: string[];
353
+ }) => import("src/client").JSONSchema;
354
+ now: () => import("src/client").JSONSchema;
355
+ };
356
+ isBefore(): {
357
+ days: (days: number) => {
358
+ inPast: () => import("src/client").JSONSchema;
359
+ inFuture: () => import("src/client").JSONSchema;
360
+ fromDate: (date: `${string}-${string}-${string}` | {
361
+ $$field: string;
362
+ $$subfield: string[];
363
+ }) => import("src/client").JSONSchema;
364
+ fromNow: () => import("src/client").JSONSchema;
365
+ };
366
+ date: (date: `${string}-${string}-${string}` | {
367
+ $$field: string;
368
+ $$subfield: string[];
369
+ }) => import("src/client").JSONSchema;
370
+ now: () => import("src/client").JSONSchema;
371
+ };
372
+ isGreaterThan(value: number | {
373
+ $$field: string;
374
+ $$subfield: string[];
375
+ }): import("src/client").JSONSchema;
376
+ isLessThan(value: number | {
377
+ $$field: string;
378
+ $$subfield: string[];
379
+ }): import("src/client").JSONSchema;
380
+ isEqualTo(value: string | boolean | number | {
381
+ $$field: string;
382
+ $$subfield: string[];
383
+ }): import("src/client").JSONSchema;
384
+ isFalsy(): import("src/client").JSONSchema;
385
+ isUndefined(): import("src/client").JSONSchema;
386
+ inArray(values: string[]): import("src/client").JSONSchema;
387
+ isValidEnglishName(): import("src/client").JSONSchema;
388
+ isValidAdministrativeLeafLevel(): import("src/client").JSONSchema;
389
+ matches(pattern: string): import("src/client").JSONSchema;
390
+ isBetween(min: number, max: number): import("src/client").JSONSchema;
391
+ getId: () => {
392
+ fieldId: string;
393
+ };
394
+ object: (options: Record<string, any>) => import("src/client").JSONSchema;
395
+ };
396
+ asDob(): {
397
+ $$subfield: string[];
398
+ $$field: string;
399
+ get(fieldPath: string): any;
400
+ getByPath(fieldPath: string[]): {
401
+ $$subfield: string[];
402
+ $$field: string;
403
+ get(fieldPath: string): any;
404
+ getByPath(fieldPath: string[]): any;
405
+ asDob(): any;
406
+ asAge(): any;
407
+ isAfter(): {
408
+ days: (days: number) => {
409
+ inPast: () => import("src/client").JSONSchema;
410
+ inFuture: () => import("src/client").JSONSchema;
411
+ fromDate: (date: `${string}-${string}-${string}` | {
412
+ $$field: string;
413
+ $$subfield: string[];
414
+ }) => import("src/client").JSONSchema;
415
+ fromNow: () => import("src/client").JSONSchema;
416
+ };
417
+ date: (date: string | {
418
+ $$field: string;
419
+ $$subfield: string[];
420
+ }) => import("src/client").JSONSchema;
421
+ now: () => import("src/client").JSONSchema;
422
+ };
423
+ isBefore(): {
424
+ days: (days: number) => {
425
+ inPast: () => import("src/client").JSONSchema;
426
+ inFuture: () => import("src/client").JSONSchema;
427
+ fromDate: (date: `${string}-${string}-${string}` | {
428
+ $$field: string;
429
+ $$subfield: string[];
430
+ }) => import("src/client").JSONSchema;
431
+ fromNow: () => import("src/client").JSONSchema;
432
+ };
433
+ date: (date: `${string}-${string}-${string}` | {
434
+ $$field: string;
435
+ $$subfield: string[];
436
+ }) => import("src/client").JSONSchema;
437
+ now: () => import("src/client").JSONSchema;
438
+ };
439
+ isGreaterThan(value: number | {
440
+ $$field: string;
441
+ $$subfield: string[];
442
+ }): import("src/client").JSONSchema;
443
+ isLessThan(value: number | {
444
+ $$field: string;
445
+ $$subfield: string[];
446
+ }): import("src/client").JSONSchema;
447
+ isEqualTo(value: string | boolean | number | {
448
+ $$field: string;
449
+ $$subfield: string[];
450
+ }): import("src/client").JSONSchema;
451
+ isFalsy(): import("src/client").JSONSchema;
452
+ isUndefined(): import("src/client").JSONSchema;
453
+ inArray(values: string[]): import("src/client").JSONSchema;
454
+ isValidEnglishName(): import("src/client").JSONSchema;
455
+ isValidAdministrativeLeafLevel(): import("src/client").JSONSchema;
456
+ matches(pattern: string): import("src/client").JSONSchema;
457
+ isBetween(min: number, max: number): import("src/client").JSONSchema;
458
+ getId: () => {
459
+ fieldId: string;
460
+ };
461
+ object: (options: Record<string, any>) => import("src/client").JSONSchema;
462
+ };
463
+ asDob(): any;
464
+ asAge(): any;
465
+ isAfter(): {
466
+ days: (days: number) => {
467
+ inPast: () => import("src/client").JSONSchema;
468
+ inFuture: () => import("src/client").JSONSchema;
469
+ fromDate: (date: `${string}-${string}-${string}` | {
470
+ $$field: string;
471
+ $$subfield: string[];
472
+ }) => import("src/client").JSONSchema;
473
+ fromNow: () => import("src/client").JSONSchema;
474
+ };
475
+ date: (date: string | {
476
+ $$field: string;
477
+ $$subfield: string[];
478
+ }) => import("src/client").JSONSchema;
479
+ now: () => import("src/client").JSONSchema;
480
+ };
481
+ isBefore(): {
482
+ days: (days: number) => {
483
+ inPast: () => import("src/client").JSONSchema;
484
+ inFuture: () => import("src/client").JSONSchema;
485
+ fromDate: (date: `${string}-${string}-${string}` | {
486
+ $$field: string;
487
+ $$subfield: string[];
488
+ }) => import("src/client").JSONSchema;
489
+ fromNow: () => import("src/client").JSONSchema;
490
+ };
491
+ date: (date: `${string}-${string}-${string}` | {
492
+ $$field: string;
493
+ $$subfield: string[];
494
+ }) => import("src/client").JSONSchema;
495
+ now: () => import("src/client").JSONSchema;
496
+ };
497
+ isGreaterThan(value: number | {
498
+ $$field: string;
499
+ $$subfield: string[];
500
+ }): import("src/client").JSONSchema;
501
+ isLessThan(value: number | {
502
+ $$field: string;
503
+ $$subfield: string[];
504
+ }): import("src/client").JSONSchema;
505
+ isEqualTo(value: string | boolean | number | {
506
+ $$field: string;
507
+ $$subfield: string[];
508
+ }): import("src/client").JSONSchema;
509
+ isFalsy(): import("src/client").JSONSchema;
510
+ isUndefined(): import("src/client").JSONSchema;
511
+ inArray(values: string[]): import("src/client").JSONSchema;
512
+ isValidEnglishName(): import("src/client").JSONSchema;
513
+ isValidAdministrativeLeafLevel(): import("src/client").JSONSchema;
514
+ matches(pattern: string): import("src/client").JSONSchema;
515
+ isBetween(min: number, max: number): import("src/client").JSONSchema;
516
+ getId: () => {
517
+ fieldId: string;
518
+ };
519
+ object: (options: Record<string, any>) => import("src/client").JSONSchema;
520
+ };
521
+ asAge(): {
522
+ $$subfield: string[];
523
+ $$field: string;
524
+ get(fieldPath: string): any;
525
+ getByPath(fieldPath: string[]): {
526
+ $$subfield: string[];
527
+ $$field: string;
528
+ get(fieldPath: string): any;
529
+ getByPath(fieldPath: string[]): any;
530
+ asDob(): any;
531
+ asAge(): any;
532
+ isAfter(): {
533
+ days: (days: number) => {
534
+ inPast: () => import("src/client").JSONSchema;
535
+ inFuture: () => import("src/client").JSONSchema;
536
+ fromDate: (date: `${string}-${string}-${string}` | {
537
+ $$field: string;
538
+ $$subfield: string[];
539
+ }) => import("src/client").JSONSchema;
540
+ fromNow: () => import("src/client").JSONSchema;
541
+ };
542
+ date: (date: string | {
543
+ $$field: string;
544
+ $$subfield: string[];
545
+ }) => import("src/client").JSONSchema;
546
+ now: () => import("src/client").JSONSchema;
547
+ };
548
+ isBefore(): {
549
+ days: (days: number) => {
550
+ inPast: () => import("src/client").JSONSchema;
551
+ inFuture: () => import("src/client").JSONSchema;
552
+ fromDate: (date: `${string}-${string}-${string}` | {
553
+ $$field: string;
554
+ $$subfield: string[];
555
+ }) => import("src/client").JSONSchema;
556
+ fromNow: () => import("src/client").JSONSchema;
557
+ };
558
+ date: (date: `${string}-${string}-${string}` | {
559
+ $$field: string;
560
+ $$subfield: string[];
561
+ }) => import("src/client").JSONSchema;
562
+ now: () => import("src/client").JSONSchema;
563
+ };
564
+ isGreaterThan(value: number | {
565
+ $$field: string;
566
+ $$subfield: string[];
567
+ }): import("src/client").JSONSchema;
568
+ isLessThan(value: number | {
569
+ $$field: string;
570
+ $$subfield: string[];
571
+ }): import("src/client").JSONSchema;
572
+ isEqualTo(value: string | boolean | number | {
573
+ $$field: string;
574
+ $$subfield: string[];
575
+ }): import("src/client").JSONSchema;
576
+ isFalsy(): import("src/client").JSONSchema;
577
+ isUndefined(): import("src/client").JSONSchema;
578
+ inArray(values: string[]): import("src/client").JSONSchema;
579
+ isValidEnglishName(): import("src/client").JSONSchema;
580
+ isValidAdministrativeLeafLevel(): import("src/client").JSONSchema;
581
+ matches(pattern: string): import("src/client").JSONSchema;
582
+ isBetween(min: number, max: number): import("src/client").JSONSchema;
583
+ getId: () => {
584
+ fieldId: string;
585
+ };
586
+ object: (options: Record<string, any>) => import("src/client").JSONSchema;
587
+ };
588
+ asDob(): any;
589
+ asAge(): any;
590
+ isAfter(): {
591
+ days: (days: number) => {
592
+ inPast: () => import("src/client").JSONSchema;
593
+ inFuture: () => import("src/client").JSONSchema;
594
+ fromDate: (date: `${string}-${string}-${string}` | {
595
+ $$field: string;
596
+ $$subfield: string[];
597
+ }) => import("src/client").JSONSchema;
598
+ fromNow: () => import("src/client").JSONSchema;
599
+ };
600
+ date: (date: string | {
601
+ $$field: string;
602
+ $$subfield: string[];
603
+ }) => import("src/client").JSONSchema;
604
+ now: () => import("src/client").JSONSchema;
605
+ };
606
+ isBefore(): {
607
+ days: (days: number) => {
608
+ inPast: () => import("src/client").JSONSchema;
609
+ inFuture: () => import("src/client").JSONSchema;
610
+ fromDate: (date: `${string}-${string}-${string}` | {
611
+ $$field: string;
612
+ $$subfield: string[];
613
+ }) => import("src/client").JSONSchema;
614
+ fromNow: () => import("src/client").JSONSchema;
615
+ };
616
+ date: (date: `${string}-${string}-${string}` | {
617
+ $$field: string;
618
+ $$subfield: string[];
619
+ }) => import("src/client").JSONSchema;
620
+ now: () => import("src/client").JSONSchema;
621
+ };
622
+ isGreaterThan(value: number | {
623
+ $$field: string;
624
+ $$subfield: string[];
625
+ }): import("src/client").JSONSchema;
626
+ isLessThan(value: number | {
627
+ $$field: string;
628
+ $$subfield: string[];
629
+ }): import("src/client").JSONSchema;
630
+ isEqualTo(value: string | boolean | number | {
631
+ $$field: string;
632
+ $$subfield: string[];
633
+ }): import("src/client").JSONSchema;
634
+ isFalsy(): import("src/client").JSONSchema;
635
+ isUndefined(): import("src/client").JSONSchema;
636
+ inArray(values: string[]): import("src/client").JSONSchema;
637
+ isValidEnglishName(): import("src/client").JSONSchema;
638
+ isValidAdministrativeLeafLevel(): import("src/client").JSONSchema;
639
+ matches(pattern: string): import("src/client").JSONSchema;
640
+ isBetween(min: number, max: number): import("src/client").JSONSchema;
641
+ getId: () => {
642
+ fieldId: string;
643
+ };
644
+ object: (options: Record<string, any>) => import("src/client").JSONSchema;
645
+ };
646
+ isAfter(): {
647
+ days: (days: number) => {
648
+ inPast: () => import("src/client").JSONSchema;
649
+ inFuture: () => import("src/client").JSONSchema;
650
+ fromDate: (date: `${string}-${string}-${string}` | {
651
+ $$field: string;
652
+ $$subfield: string[];
653
+ }) => import("src/client").JSONSchema;
654
+ fromNow: () => import("src/client").JSONSchema;
655
+ };
656
+ date: (date: string | {
657
+ $$field: string;
658
+ $$subfield: string[];
659
+ }) => import("src/client").JSONSchema;
660
+ now: () => import("src/client").JSONSchema;
661
+ };
662
+ isBefore(): {
663
+ days: (days: number) => {
664
+ inPast: () => import("src/client").JSONSchema;
665
+ inFuture: () => import("src/client").JSONSchema;
666
+ fromDate: (date: `${string}-${string}-${string}` | {
667
+ $$field: string;
668
+ $$subfield: string[];
669
+ }) => import("src/client").JSONSchema;
670
+ fromNow: () => import("src/client").JSONSchema;
671
+ };
672
+ date: (date: `${string}-${string}-${string}` | {
673
+ $$field: string;
674
+ $$subfield: string[];
675
+ }) => import("src/client").JSONSchema;
676
+ now: () => import("src/client").JSONSchema;
677
+ };
678
+ isGreaterThan(value: number | {
679
+ $$field: string;
680
+ $$subfield: string[];
681
+ }): import("src/client").JSONSchema;
682
+ isLessThan(value: number | {
683
+ $$field: string;
684
+ $$subfield: string[];
685
+ }): import("src/client").JSONSchema;
686
+ isEqualTo(value: string | boolean | number | {
687
+ $$field: string;
688
+ $$subfield: string[];
689
+ }): import("src/client").JSONSchema;
690
+ isFalsy(): import("src/client").JSONSchema;
691
+ isUndefined(): import("src/client").JSONSchema;
692
+ inArray(values: string[]): import("src/client").JSONSchema;
693
+ isValidEnglishName(): import("src/client").JSONSchema;
694
+ isValidAdministrativeLeafLevel(): import("src/client").JSONSchema;
695
+ matches(pattern: string): import("src/client").JSONSchema;
696
+ isBetween(min: number, max: number): import("src/client").JSONSchema;
697
+ getId: () => {
698
+ fieldId: string;
699
+ };
700
+ object: (options: Record<string, any>) => import("src/client").JSONSchema;
701
+ };
107
702
  };
108
703
  export { event };
109
704
  //# sourceMappingURL=event.d.ts.map
@@ -2,9 +2,7 @@ import { FieldConditional } from './Conditional';
2
2
  import { TranslationConfig } from './TranslationConfig';
3
3
  import { SelectOption, ValidationConfig } from './FieldConfig';
4
4
  /**
5
- * Entry point for defining conditional logic or configuration for a form field.
6
- * @param fieldId - The ID of the field to define rules or config for.
7
- * @returns An object combining conditional methods and configuration builders.
5
+ * @deprecated Use `event.declaration` instead
8
6
  */
9
7
  export declare function field(fieldId: string, options?: {
10
8
  options?: SelectOption[];