@opencrvs/toolkit 1.9.2-rc.f1d7235 → 1.9.2-rc.f5e3efd
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/dist/commons/api/router.d.ts +220 -482
- package/dist/commons/events/ActionConfig.d.ts +13 -390
- package/dist/commons/events/ActionDocument.d.ts +44 -0
- package/dist/commons/events/ActionInput.d.ts +20 -0
- package/dist/commons/events/ActionType.d.ts +7 -1
- package/dist/commons/events/AdvancedSearchConfig.d.ts +0 -6
- package/dist/commons/events/CountryConfigQueryInput.d.ts +12 -0
- package/dist/commons/events/Draft.d.ts +2 -0
- package/dist/commons/events/EventConfig.d.ts +8 -318
- package/dist/commons/events/EventDocument.d.ts +22 -0
- package/dist/commons/events/EventIndex.d.ts +5 -1
- package/dist/commons/events/EventMetadata.d.ts +2 -3
- package/dist/commons/events/FieldConfig.d.ts +0 -80
- package/dist/commons/events/FieldType.d.ts +1 -2
- package/dist/commons/events/FieldTypeMapping.d.ts +1 -8
- package/dist/commons/events/FieldValue.d.ts +1 -2
- package/dist/commons/events/Flag.d.ts +3 -0
- package/dist/commons/events/FormConfig.d.ts +0 -234
- package/dist/commons/events/PageConfig.d.ts +0 -156
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +2 -5
- package/dist/commons/events/WorkqueueConfig.d.ts +19 -7
- package/dist/commons/events/defineConfig.d.ts +2 -446
- package/dist/commons/events/scopes.d.ts +1 -0
- package/dist/commons/events/state/index.d.ts +0 -6
- package/dist/commons/events/state/utils.d.ts +15 -1
- package/dist/commons/events/test.utils.d.ts +9 -1
- package/dist/commons/events/utils.d.ts +17 -887
- package/dist/events/index.js +73 -115
- package/dist/notification/index.js +27 -35
- package/dist/scopes/index.d.ts +6 -2
- package/dist/scopes/index.js +1 -0
- package/package.json +1 -1
|
@@ -2589,61 +2589,6 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
|
2589
2589
|
$$subfield?: string[] | undefined;
|
|
2590
2590
|
}[] | undefined;
|
|
2591
2591
|
analytics?: boolean | undefined;
|
|
2592
|
-
} | {
|
|
2593
|
-
id: string;
|
|
2594
|
-
label: {
|
|
2595
|
-
id: string;
|
|
2596
|
-
defaultMessage: string;
|
|
2597
|
-
description: string;
|
|
2598
|
-
};
|
|
2599
|
-
type: "HIDDEN";
|
|
2600
|
-
parent?: {
|
|
2601
|
-
$$field: string;
|
|
2602
|
-
$$subfield?: string[] | undefined;
|
|
2603
|
-
} | {
|
|
2604
|
-
$$field: string;
|
|
2605
|
-
$$subfield?: string[] | undefined;
|
|
2606
|
-
}[] | undefined;
|
|
2607
|
-
conditionals?: ({
|
|
2608
|
-
type: "SHOW";
|
|
2609
|
-
conditional: any;
|
|
2610
|
-
} | {
|
|
2611
|
-
type: "ENABLE";
|
|
2612
|
-
conditional: any;
|
|
2613
|
-
} | {
|
|
2614
|
-
type: "DISPLAY_ON_REVIEW";
|
|
2615
|
-
conditional: any;
|
|
2616
|
-
})[] | undefined;
|
|
2617
|
-
secured?: boolean | undefined;
|
|
2618
|
-
placeholder?: {
|
|
2619
|
-
id: string;
|
|
2620
|
-
defaultMessage: string;
|
|
2621
|
-
description: string;
|
|
2622
|
-
} | undefined;
|
|
2623
|
-
validation?: {
|
|
2624
|
-
validator: any;
|
|
2625
|
-
message: {
|
|
2626
|
-
id: string;
|
|
2627
|
-
defaultMessage: string;
|
|
2628
|
-
description: string;
|
|
2629
|
-
};
|
|
2630
|
-
}[] | undefined;
|
|
2631
|
-
helperText?: {
|
|
2632
|
-
id: string;
|
|
2633
|
-
defaultMessage: string;
|
|
2634
|
-
description: string;
|
|
2635
|
-
} | undefined;
|
|
2636
|
-
hideLabel?: boolean | undefined;
|
|
2637
|
-
uncorrectable?: boolean | undefined;
|
|
2638
|
-
value?: {
|
|
2639
|
-
$$field: string;
|
|
2640
|
-
$$subfield?: string[] | undefined;
|
|
2641
|
-
} | {
|
|
2642
|
-
$$field: string;
|
|
2643
|
-
$$subfield?: string[] | undefined;
|
|
2644
|
-
}[] | undefined;
|
|
2645
|
-
analytics?: boolean | undefined;
|
|
2646
|
-
required?: false | undefined;
|
|
2647
2592
|
} | {
|
|
2648
2593
|
id: string;
|
|
2649
2594
|
label: {
|
|
@@ -5706,61 +5651,6 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
|
5706
5651
|
$$subfield?: string[] | undefined;
|
|
5707
5652
|
}[] | undefined;
|
|
5708
5653
|
analytics?: boolean | undefined;
|
|
5709
|
-
} | {
|
|
5710
|
-
id: string;
|
|
5711
|
-
label: {
|
|
5712
|
-
id: string;
|
|
5713
|
-
defaultMessage: string;
|
|
5714
|
-
description: string;
|
|
5715
|
-
};
|
|
5716
|
-
type: "HIDDEN";
|
|
5717
|
-
parent?: {
|
|
5718
|
-
$$field: string;
|
|
5719
|
-
$$subfield?: string[] | undefined;
|
|
5720
|
-
} | {
|
|
5721
|
-
$$field: string;
|
|
5722
|
-
$$subfield?: string[] | undefined;
|
|
5723
|
-
}[] | undefined;
|
|
5724
|
-
conditionals?: ({
|
|
5725
|
-
type: "SHOW";
|
|
5726
|
-
conditional: any;
|
|
5727
|
-
} | {
|
|
5728
|
-
type: "ENABLE";
|
|
5729
|
-
conditional: any;
|
|
5730
|
-
} | {
|
|
5731
|
-
type: "DISPLAY_ON_REVIEW";
|
|
5732
|
-
conditional: any;
|
|
5733
|
-
})[] | undefined;
|
|
5734
|
-
secured?: boolean | undefined;
|
|
5735
|
-
placeholder?: {
|
|
5736
|
-
id: string;
|
|
5737
|
-
defaultMessage: string;
|
|
5738
|
-
description: string;
|
|
5739
|
-
} | undefined;
|
|
5740
|
-
validation?: {
|
|
5741
|
-
validator: any;
|
|
5742
|
-
message: {
|
|
5743
|
-
id: string;
|
|
5744
|
-
defaultMessage: string;
|
|
5745
|
-
description: string;
|
|
5746
|
-
};
|
|
5747
|
-
}[] | undefined;
|
|
5748
|
-
helperText?: {
|
|
5749
|
-
id: string;
|
|
5750
|
-
defaultMessage: string;
|
|
5751
|
-
description: string;
|
|
5752
|
-
} | undefined;
|
|
5753
|
-
hideLabel?: boolean | undefined;
|
|
5754
|
-
uncorrectable?: boolean | undefined;
|
|
5755
|
-
value?: {
|
|
5756
|
-
$$field: string;
|
|
5757
|
-
$$subfield?: string[] | undefined;
|
|
5758
|
-
} | {
|
|
5759
|
-
$$field: string;
|
|
5760
|
-
$$subfield?: string[] | undefined;
|
|
5761
|
-
}[] | undefined;
|
|
5762
|
-
analytics?: boolean | undefined;
|
|
5763
|
-
required?: false | undefined;
|
|
5764
5654
|
} | {
|
|
5765
5655
|
id: string;
|
|
5766
5656
|
label: {
|
|
@@ -8818,61 +8708,6 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
|
8818
8708
|
$$subfield?: string[] | undefined;
|
|
8819
8709
|
}[] | undefined;
|
|
8820
8710
|
analytics?: boolean | undefined;
|
|
8821
|
-
} | {
|
|
8822
|
-
id: string;
|
|
8823
|
-
label: {
|
|
8824
|
-
id: string;
|
|
8825
|
-
defaultMessage: string;
|
|
8826
|
-
description: string;
|
|
8827
|
-
};
|
|
8828
|
-
type: "HIDDEN";
|
|
8829
|
-
parent?: {
|
|
8830
|
-
$$field: string;
|
|
8831
|
-
$$subfield?: string[] | undefined;
|
|
8832
|
-
} | {
|
|
8833
|
-
$$field: string;
|
|
8834
|
-
$$subfield?: string[] | undefined;
|
|
8835
|
-
}[] | undefined;
|
|
8836
|
-
conditionals?: ({
|
|
8837
|
-
type: "SHOW";
|
|
8838
|
-
conditional: any;
|
|
8839
|
-
} | {
|
|
8840
|
-
type: "ENABLE";
|
|
8841
|
-
conditional: any;
|
|
8842
|
-
} | {
|
|
8843
|
-
type: "DISPLAY_ON_REVIEW";
|
|
8844
|
-
conditional: any;
|
|
8845
|
-
})[] | undefined;
|
|
8846
|
-
secured?: boolean | undefined;
|
|
8847
|
-
placeholder?: {
|
|
8848
|
-
id: string;
|
|
8849
|
-
defaultMessage: string;
|
|
8850
|
-
description: string;
|
|
8851
|
-
} | undefined;
|
|
8852
|
-
validation?: {
|
|
8853
|
-
validator: any;
|
|
8854
|
-
message: {
|
|
8855
|
-
id: string;
|
|
8856
|
-
defaultMessage: string;
|
|
8857
|
-
description: string;
|
|
8858
|
-
};
|
|
8859
|
-
}[] | undefined;
|
|
8860
|
-
helperText?: {
|
|
8861
|
-
id: string;
|
|
8862
|
-
defaultMessage: string;
|
|
8863
|
-
description: string;
|
|
8864
|
-
} | undefined;
|
|
8865
|
-
hideLabel?: boolean | undefined;
|
|
8866
|
-
uncorrectable?: boolean | undefined;
|
|
8867
|
-
value?: {
|
|
8868
|
-
$$field: string;
|
|
8869
|
-
$$subfield?: string[] | undefined;
|
|
8870
|
-
} | {
|
|
8871
|
-
$$field: string;
|
|
8872
|
-
$$subfield?: string[] | undefined;
|
|
8873
|
-
}[] | undefined;
|
|
8874
|
-
analytics?: boolean | undefined;
|
|
8875
|
-
required?: false | undefined;
|
|
8876
8711
|
} | {
|
|
8877
8712
|
id: string;
|
|
8878
8713
|
label: {
|
|
@@ -12060,61 +11895,6 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
|
12060
11895
|
$$subfield?: string[] | undefined;
|
|
12061
11896
|
}[] | undefined;
|
|
12062
11897
|
analytics?: boolean | undefined;
|
|
12063
|
-
} | {
|
|
12064
|
-
id: string;
|
|
12065
|
-
label: {
|
|
12066
|
-
id: string;
|
|
12067
|
-
defaultMessage: string;
|
|
12068
|
-
description: string;
|
|
12069
|
-
};
|
|
12070
|
-
type: "HIDDEN";
|
|
12071
|
-
parent?: {
|
|
12072
|
-
$$field: string;
|
|
12073
|
-
$$subfield?: string[] | undefined;
|
|
12074
|
-
} | {
|
|
12075
|
-
$$field: string;
|
|
12076
|
-
$$subfield?: string[] | undefined;
|
|
12077
|
-
}[] | undefined;
|
|
12078
|
-
conditionals?: ({
|
|
12079
|
-
type: "SHOW";
|
|
12080
|
-
conditional: any;
|
|
12081
|
-
} | {
|
|
12082
|
-
type: "ENABLE";
|
|
12083
|
-
conditional: any;
|
|
12084
|
-
} | {
|
|
12085
|
-
type: "DISPLAY_ON_REVIEW";
|
|
12086
|
-
conditional: any;
|
|
12087
|
-
})[] | undefined;
|
|
12088
|
-
secured?: boolean | undefined;
|
|
12089
|
-
placeholder?: {
|
|
12090
|
-
id: string;
|
|
12091
|
-
defaultMessage: string;
|
|
12092
|
-
description: string;
|
|
12093
|
-
} | undefined;
|
|
12094
|
-
validation?: {
|
|
12095
|
-
validator: any;
|
|
12096
|
-
message: {
|
|
12097
|
-
id: string;
|
|
12098
|
-
defaultMessage: string;
|
|
12099
|
-
description: string;
|
|
12100
|
-
};
|
|
12101
|
-
}[] | undefined;
|
|
12102
|
-
helperText?: {
|
|
12103
|
-
id: string;
|
|
12104
|
-
defaultMessage: string;
|
|
12105
|
-
description: string;
|
|
12106
|
-
} | undefined;
|
|
12107
|
-
hideLabel?: boolean | undefined;
|
|
12108
|
-
uncorrectable?: boolean | undefined;
|
|
12109
|
-
value?: {
|
|
12110
|
-
$$field: string;
|
|
12111
|
-
$$subfield?: string[] | undefined;
|
|
12112
|
-
} | {
|
|
12113
|
-
$$field: string;
|
|
12114
|
-
$$subfield?: string[] | undefined;
|
|
12115
|
-
}[] | undefined;
|
|
12116
|
-
analytics?: boolean | undefined;
|
|
12117
|
-
required?: false | undefined;
|
|
12118
11898
|
} | {
|
|
12119
11899
|
id: string;
|
|
12120
11900
|
label: {
|
|
@@ -15150,61 +14930,6 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
|
15150
14930
|
$$subfield?: string[] | undefined;
|
|
15151
14931
|
}[] | undefined;
|
|
15152
14932
|
analytics?: boolean | undefined;
|
|
15153
|
-
} | {
|
|
15154
|
-
id: string;
|
|
15155
|
-
label: {
|
|
15156
|
-
id: string;
|
|
15157
|
-
defaultMessage: string;
|
|
15158
|
-
description: string;
|
|
15159
|
-
};
|
|
15160
|
-
type: "HIDDEN";
|
|
15161
|
-
parent?: {
|
|
15162
|
-
$$field: string;
|
|
15163
|
-
$$subfield?: string[] | undefined;
|
|
15164
|
-
} | {
|
|
15165
|
-
$$field: string;
|
|
15166
|
-
$$subfield?: string[] | undefined;
|
|
15167
|
-
}[] | undefined;
|
|
15168
|
-
conditionals?: ({
|
|
15169
|
-
type: "SHOW";
|
|
15170
|
-
conditional: any;
|
|
15171
|
-
} | {
|
|
15172
|
-
type: "ENABLE";
|
|
15173
|
-
conditional: any;
|
|
15174
|
-
} | {
|
|
15175
|
-
type: "DISPLAY_ON_REVIEW";
|
|
15176
|
-
conditional: any;
|
|
15177
|
-
})[] | undefined;
|
|
15178
|
-
secured?: boolean | undefined;
|
|
15179
|
-
placeholder?: {
|
|
15180
|
-
id: string;
|
|
15181
|
-
defaultMessage: string;
|
|
15182
|
-
description: string;
|
|
15183
|
-
} | undefined;
|
|
15184
|
-
validation?: {
|
|
15185
|
-
validator: any;
|
|
15186
|
-
message: {
|
|
15187
|
-
id: string;
|
|
15188
|
-
defaultMessage: string;
|
|
15189
|
-
description: string;
|
|
15190
|
-
};
|
|
15191
|
-
}[] | undefined;
|
|
15192
|
-
helperText?: {
|
|
15193
|
-
id: string;
|
|
15194
|
-
defaultMessage: string;
|
|
15195
|
-
description: string;
|
|
15196
|
-
} | undefined;
|
|
15197
|
-
hideLabel?: boolean | undefined;
|
|
15198
|
-
uncorrectable?: boolean | undefined;
|
|
15199
|
-
value?: {
|
|
15200
|
-
$$field: string;
|
|
15201
|
-
$$subfield?: string[] | undefined;
|
|
15202
|
-
} | {
|
|
15203
|
-
$$field: string;
|
|
15204
|
-
$$subfield?: string[] | undefined;
|
|
15205
|
-
}[] | undefined;
|
|
15206
|
-
analytics?: boolean | undefined;
|
|
15207
|
-
required?: false | undefined;
|
|
15208
14933
|
} | {
|
|
15209
14934
|
id: string;
|
|
15210
14935
|
label: {
|
|
@@ -18306,61 +18031,6 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
|
18306
18031
|
$$subfield?: string[] | undefined;
|
|
18307
18032
|
}[] | undefined;
|
|
18308
18033
|
analytics?: boolean | undefined;
|
|
18309
|
-
} | {
|
|
18310
|
-
id: string;
|
|
18311
|
-
label: {
|
|
18312
|
-
id: string;
|
|
18313
|
-
defaultMessage: string;
|
|
18314
|
-
description: string;
|
|
18315
|
-
};
|
|
18316
|
-
type: "HIDDEN";
|
|
18317
|
-
parent?: {
|
|
18318
|
-
$$field: string;
|
|
18319
|
-
$$subfield?: string[] | undefined;
|
|
18320
|
-
} | {
|
|
18321
|
-
$$field: string;
|
|
18322
|
-
$$subfield?: string[] | undefined;
|
|
18323
|
-
}[] | undefined;
|
|
18324
|
-
conditionals?: ({
|
|
18325
|
-
type: "SHOW";
|
|
18326
|
-
conditional: any;
|
|
18327
|
-
} | {
|
|
18328
|
-
type: "ENABLE";
|
|
18329
|
-
conditional: any;
|
|
18330
|
-
} | {
|
|
18331
|
-
type: "DISPLAY_ON_REVIEW";
|
|
18332
|
-
conditional: any;
|
|
18333
|
-
})[] | undefined;
|
|
18334
|
-
secured?: boolean | undefined;
|
|
18335
|
-
placeholder?: {
|
|
18336
|
-
id: string;
|
|
18337
|
-
defaultMessage: string;
|
|
18338
|
-
description: string;
|
|
18339
|
-
} | undefined;
|
|
18340
|
-
validation?: {
|
|
18341
|
-
validator: any;
|
|
18342
|
-
message: {
|
|
18343
|
-
id: string;
|
|
18344
|
-
defaultMessage: string;
|
|
18345
|
-
description: string;
|
|
18346
|
-
};
|
|
18347
|
-
}[] | undefined;
|
|
18348
|
-
helperText?: {
|
|
18349
|
-
id: string;
|
|
18350
|
-
defaultMessage: string;
|
|
18351
|
-
description: string;
|
|
18352
|
-
} | undefined;
|
|
18353
|
-
hideLabel?: boolean | undefined;
|
|
18354
|
-
uncorrectable?: boolean | undefined;
|
|
18355
|
-
value?: {
|
|
18356
|
-
$$field: string;
|
|
18357
|
-
$$subfield?: string[] | undefined;
|
|
18358
|
-
} | {
|
|
18359
|
-
$$field: string;
|
|
18360
|
-
$$subfield?: string[] | undefined;
|
|
18361
|
-
}[] | undefined;
|
|
18362
|
-
analytics?: boolean | undefined;
|
|
18363
|
-
required?: false | undefined;
|
|
18364
18034
|
} | {
|
|
18365
18035
|
id: string;
|
|
18366
18036
|
label: {
|
|
@@ -21396,61 +21066,6 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
|
21396
21066
|
$$subfield?: string[] | undefined;
|
|
21397
21067
|
}[] | undefined;
|
|
21398
21068
|
analytics?: boolean | undefined;
|
|
21399
|
-
} | {
|
|
21400
|
-
id: string;
|
|
21401
|
-
label: {
|
|
21402
|
-
id: string;
|
|
21403
|
-
defaultMessage: string;
|
|
21404
|
-
description: string;
|
|
21405
|
-
};
|
|
21406
|
-
type: "HIDDEN";
|
|
21407
|
-
parent?: {
|
|
21408
|
-
$$field: string;
|
|
21409
|
-
$$subfield?: string[] | undefined;
|
|
21410
|
-
} | {
|
|
21411
|
-
$$field: string;
|
|
21412
|
-
$$subfield?: string[] | undefined;
|
|
21413
|
-
}[] | undefined;
|
|
21414
|
-
conditionals?: ({
|
|
21415
|
-
type: "SHOW";
|
|
21416
|
-
conditional: any;
|
|
21417
|
-
} | {
|
|
21418
|
-
type: "ENABLE";
|
|
21419
|
-
conditional: any;
|
|
21420
|
-
} | {
|
|
21421
|
-
type: "DISPLAY_ON_REVIEW";
|
|
21422
|
-
conditional: any;
|
|
21423
|
-
})[] | undefined;
|
|
21424
|
-
secured?: boolean | undefined;
|
|
21425
|
-
placeholder?: {
|
|
21426
|
-
id: string;
|
|
21427
|
-
defaultMessage: string;
|
|
21428
|
-
description: string;
|
|
21429
|
-
} | undefined;
|
|
21430
|
-
validation?: {
|
|
21431
|
-
validator: any;
|
|
21432
|
-
message: {
|
|
21433
|
-
id: string;
|
|
21434
|
-
defaultMessage: string;
|
|
21435
|
-
description: string;
|
|
21436
|
-
};
|
|
21437
|
-
}[] | undefined;
|
|
21438
|
-
helperText?: {
|
|
21439
|
-
id: string;
|
|
21440
|
-
defaultMessage: string;
|
|
21441
|
-
description: string;
|
|
21442
|
-
} | undefined;
|
|
21443
|
-
hideLabel?: boolean | undefined;
|
|
21444
|
-
uncorrectable?: boolean | undefined;
|
|
21445
|
-
value?: {
|
|
21446
|
-
$$field: string;
|
|
21447
|
-
$$subfield?: string[] | undefined;
|
|
21448
|
-
} | {
|
|
21449
|
-
$$field: string;
|
|
21450
|
-
$$subfield?: string[] | undefined;
|
|
21451
|
-
}[] | undefined;
|
|
21452
|
-
analytics?: boolean | undefined;
|
|
21453
|
-
required?: false | undefined;
|
|
21454
21069
|
} | {
|
|
21455
21070
|
id: string;
|
|
21456
21071
|
label: {
|
|
@@ -24541,61 +24156,6 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
|
24541
24156
|
$$subfield?: string[] | undefined;
|
|
24542
24157
|
}[] | undefined;
|
|
24543
24158
|
analytics?: boolean | undefined;
|
|
24544
|
-
} | {
|
|
24545
|
-
id: string;
|
|
24546
|
-
label: {
|
|
24547
|
-
id: string;
|
|
24548
|
-
defaultMessage: string;
|
|
24549
|
-
description: string;
|
|
24550
|
-
};
|
|
24551
|
-
type: "HIDDEN";
|
|
24552
|
-
parent?: {
|
|
24553
|
-
$$field: string;
|
|
24554
|
-
$$subfield?: string[] | undefined;
|
|
24555
|
-
} | {
|
|
24556
|
-
$$field: string;
|
|
24557
|
-
$$subfield?: string[] | undefined;
|
|
24558
|
-
}[] | undefined;
|
|
24559
|
-
conditionals?: ({
|
|
24560
|
-
type: "SHOW";
|
|
24561
|
-
conditional: any;
|
|
24562
|
-
} | {
|
|
24563
|
-
type: "ENABLE";
|
|
24564
|
-
conditional: any;
|
|
24565
|
-
} | {
|
|
24566
|
-
type: "DISPLAY_ON_REVIEW";
|
|
24567
|
-
conditional: any;
|
|
24568
|
-
})[] | undefined;
|
|
24569
|
-
secured?: boolean | undefined;
|
|
24570
|
-
placeholder?: {
|
|
24571
|
-
id: string;
|
|
24572
|
-
defaultMessage: string;
|
|
24573
|
-
description: string;
|
|
24574
|
-
} | undefined;
|
|
24575
|
-
validation?: {
|
|
24576
|
-
validator: any;
|
|
24577
|
-
message: {
|
|
24578
|
-
id: string;
|
|
24579
|
-
defaultMessage: string;
|
|
24580
|
-
description: string;
|
|
24581
|
-
};
|
|
24582
|
-
}[] | undefined;
|
|
24583
|
-
helperText?: {
|
|
24584
|
-
id: string;
|
|
24585
|
-
defaultMessage: string;
|
|
24586
|
-
description: string;
|
|
24587
|
-
} | undefined;
|
|
24588
|
-
hideLabel?: boolean | undefined;
|
|
24589
|
-
uncorrectable?: boolean | undefined;
|
|
24590
|
-
value?: {
|
|
24591
|
-
$$field: string;
|
|
24592
|
-
$$subfield?: string[] | undefined;
|
|
24593
|
-
} | {
|
|
24594
|
-
$$field: string;
|
|
24595
|
-
$$subfield?: string[] | undefined;
|
|
24596
|
-
}[] | undefined;
|
|
24597
|
-
analytics?: boolean | undefined;
|
|
24598
|
-
required?: false | undefined;
|
|
24599
24159
|
} | {
|
|
24600
24160
|
id: string;
|
|
24601
24161
|
label: {
|
|
@@ -25118,7 +24678,7 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
|
25118
24678
|
};
|
|
25119
24679
|
fieldId: string;
|
|
25120
24680
|
fieldType: "field";
|
|
25121
|
-
type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" |
|
|
24681
|
+
type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | undefined;
|
|
25122
24682
|
label?: {
|
|
25123
24683
|
id: string;
|
|
25124
24684
|
defaultMessage: string;
|
|
@@ -25162,7 +24722,7 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
|
25162
24722
|
};
|
|
25163
24723
|
fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber";
|
|
25164
24724
|
fieldType: "event";
|
|
25165
|
-
type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" |
|
|
24725
|
+
type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | undefined;
|
|
25166
24726
|
label?: {
|
|
25167
24727
|
id: string;
|
|
25168
24728
|
defaultMessage: string;
|
|
@@ -25214,10 +24774,6 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
|
25214
24774
|
$$field: string;
|
|
25215
24775
|
$$subfield?: string[] | undefined;
|
|
25216
24776
|
} | undefined;
|
|
25217
|
-
placeOfEvent?: {
|
|
25218
|
-
$$field: string;
|
|
25219
|
-
$$subfield?: string[] | undefined;
|
|
25220
|
-
} | undefined;
|
|
25221
24777
|
fallbackTitle?: {
|
|
25222
24778
|
id: string;
|
|
25223
24779
|
defaultMessage: string;
|
|
@@ -6,6 +6,7 @@ export declare const ACTION_SCOPE_MAP: {
|
|
|
6
6
|
CREATE: "record.create"[];
|
|
7
7
|
NOTIFY: "record.notify"[];
|
|
8
8
|
DECLARE: ("record.register" | "record.declare" | "record.declared.validate")[];
|
|
9
|
+
EDIT: "record.declared.edit"[];
|
|
9
10
|
DELETE: "record.declare"[];
|
|
10
11
|
VALIDATE: ("record.register" | "record.declared.validate")[];
|
|
11
12
|
REGISTER: "record.register"[];
|
|
@@ -28,14 +28,9 @@ export declare const DEFAULT_DATE_OF_EVENT_PROPERTY = "createdAt";
|
|
|
28
28
|
export declare function resolveDateOfEvent(eventMetadata: {
|
|
29
29
|
createdAt: string;
|
|
30
30
|
}, declaration: EventState, config: EventConfig): string | undefined;
|
|
31
|
-
export declare const DEFAULT_PLACE_OF_EVENT_PROPERTY = "createdAtLocation";
|
|
32
|
-
export declare function resolvePlaceOfEvent(eventMetadata: {
|
|
33
|
-
createdAtLocation?: UUID | undefined | null;
|
|
34
|
-
}, declaration: EventState, config: EventConfig): UUID | undefined | null;
|
|
35
31
|
export declare function extractPotentialDuplicatesFromActions(actions: Action[]): PotentialDuplicate[];
|
|
36
32
|
/**
|
|
37
33
|
* NOTE: This function should not run field validations. It should return the state based on the actions, without considering context (users, roles, permissions, etc).
|
|
38
|
-
createdAtLocation: CreatedAtLocation
|
|
39
34
|
*
|
|
40
35
|
* If you update this function, please ensure @EventIndex type is updated accordingly.
|
|
41
36
|
* In most cases, you won't need to add new parameters to this function. Discuss with the team before doing so.
|
|
@@ -101,7 +96,6 @@ export declare function applyDraftToEventIndex(eventIndex: EventIndex, draft: Dr
|
|
|
101
96
|
flags: string[];
|
|
102
97
|
declaration: Record<string, import("..").FieldValue>;
|
|
103
98
|
dateOfEvent?: string | null | undefined;
|
|
104
|
-
placeOfEvent?: (string & import("zod/v4").$brand<"UUID">) | null | undefined;
|
|
105
99
|
createdByUserType?: "system" | "user" | null | undefined;
|
|
106
100
|
createdAtLocation?: (string & import("zod/v4").$brand<"UUID">) | null | undefined;
|
|
107
101
|
createdBySignature?: string | null | undefined;
|
|
@@ -291,7 +291,21 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
291
291
|
createdAt: string;
|
|
292
292
|
createdBy: string;
|
|
293
293
|
createdByRole: string;
|
|
294
|
-
|
|
294
|
+
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
295
|
+
status: "Rejected" | "Requested" | "Accepted";
|
|
296
|
+
type: "EDIT";
|
|
297
|
+
createdBySignature?: string | null | undefined;
|
|
298
|
+
createdAtLocation?: (string & import("zod/v4").$brand<"UUID">) | null | undefined;
|
|
299
|
+
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
300
|
+
originalActionId?: (string & import("zod/v4").$brand<"UUID">) | null | undefined;
|
|
301
|
+
} | {
|
|
302
|
+
id: string & import("zod/v4").$brand<"UUID">;
|
|
303
|
+
transactionId: string;
|
|
304
|
+
createdByUserType: "system" | "user";
|
|
305
|
+
createdAt: string;
|
|
306
|
+
createdBy: string;
|
|
307
|
+
createdByRole: string;
|
|
308
|
+
type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
|
|
295
309
|
status: "Rejected";
|
|
296
310
|
createdBySignature?: string | null | undefined;
|
|
297
311
|
createdAtLocation?: (string & import("zod/v4").$brand<"UUID">) | null | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UUID } from '../uuid';
|
|
2
2
|
import { ActionDocument, ActionUpdate } from './ActionDocument';
|
|
3
|
-
import { ApproveCorrectionActionInput, ArchiveActionInput, AssignActionInput, DeclareActionInput, MarkAsDuplicateActionInput, MarkNotDuplicateActionInput, NotifyActionInput, RegisterActionInput, RejectCorrectionActionInput, RejectDeclarationActionInput, RequestCorrectionActionInput, UnassignActionInput, ValidateActionInput } from './ActionInput';
|
|
3
|
+
import { ApproveCorrectionActionInput, ArchiveActionInput, AssignActionInput, DeclareActionInput, EditActionInput, MarkAsDuplicateActionInput, MarkNotDuplicateActionInput, NotifyActionInput, RegisterActionInput, RejectCorrectionActionInput, RejectDeclarationActionInput, RequestCorrectionActionInput, UnassignActionInput, ValidateActionInput } from './ActionInput';
|
|
4
4
|
import { ActionType } from './ActionType';
|
|
5
5
|
import { Draft } from './Draft';
|
|
6
6
|
import { EventConfig } from './EventConfig';
|
|
@@ -77,6 +77,14 @@ export declare function eventPayloadGenerator(rng: () => number, configuration?:
|
|
|
77
77
|
eventId: string;
|
|
78
78
|
keepAssignment: boolean | undefined;
|
|
79
79
|
};
|
|
80
|
+
edit: (eventId: string, input?: Partial<Pick<EditActionInput, "transactionId" | "declaration" | "annotation" | "keepAssignment">>) => {
|
|
81
|
+
transactionId: string;
|
|
82
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
83
|
+
annotation: {};
|
|
84
|
+
keepAssignment?: boolean | undefined;
|
|
85
|
+
type: "EDIT";
|
|
86
|
+
eventId: string;
|
|
87
|
+
};
|
|
80
88
|
validate: (eventId: string, input?: Partial<Pick<ValidateActionInput, "transactionId" | "declaration" | "annotation" | "keepAssignment">>) => {
|
|
81
89
|
transactionId: string;
|
|
82
90
|
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|