@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.
Files changed (32) hide show
  1. package/dist/commons/api/router.d.ts +220 -482
  2. package/dist/commons/events/ActionConfig.d.ts +13 -390
  3. package/dist/commons/events/ActionDocument.d.ts +44 -0
  4. package/dist/commons/events/ActionInput.d.ts +20 -0
  5. package/dist/commons/events/ActionType.d.ts +7 -1
  6. package/dist/commons/events/AdvancedSearchConfig.d.ts +0 -6
  7. package/dist/commons/events/CountryConfigQueryInput.d.ts +12 -0
  8. package/dist/commons/events/Draft.d.ts +2 -0
  9. package/dist/commons/events/EventConfig.d.ts +8 -318
  10. package/dist/commons/events/EventDocument.d.ts +22 -0
  11. package/dist/commons/events/EventIndex.d.ts +5 -1
  12. package/dist/commons/events/EventMetadata.d.ts +2 -3
  13. package/dist/commons/events/FieldConfig.d.ts +0 -80
  14. package/dist/commons/events/FieldType.d.ts +1 -2
  15. package/dist/commons/events/FieldTypeMapping.d.ts +1 -8
  16. package/dist/commons/events/FieldValue.d.ts +1 -2
  17. package/dist/commons/events/Flag.d.ts +3 -0
  18. package/dist/commons/events/FormConfig.d.ts +0 -234
  19. package/dist/commons/events/PageConfig.d.ts +0 -156
  20. package/dist/commons/events/WorkqueueColumnConfig.d.ts +2 -5
  21. package/dist/commons/events/WorkqueueConfig.d.ts +19 -7
  22. package/dist/commons/events/defineConfig.d.ts +2 -446
  23. package/dist/commons/events/scopes.d.ts +1 -0
  24. package/dist/commons/events/state/index.d.ts +0 -6
  25. package/dist/commons/events/state/utils.d.ts +15 -1
  26. package/dist/commons/events/test.utils.d.ts +9 -1
  27. package/dist/commons/events/utils.d.ts +17 -887
  28. package/dist/events/index.js +73 -115
  29. package/dist/notification/index.js +27 -35
  30. package/dist/scopes/index.d.ts +6 -2
  31. package/dist/scopes/index.js +1 -0
  32. package/package.json +1 -1
@@ -3158,61 +3158,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3158
3158
  message: string;
3159
3159
  } | null | undefined;
3160
3160
  } | undefined;
3161
- } | {
3162
- id: string;
3163
- label: {
3164
- id: string;
3165
- defaultMessage: string;
3166
- description: string;
3167
- };
3168
- type: "HIDDEN";
3169
- parent?: {
3170
- $$field: string;
3171
- $$subfield?: string[] | undefined;
3172
- } | {
3173
- $$field: string;
3174
- $$subfield?: string[] | undefined;
3175
- }[] | undefined;
3176
- conditionals?: ({
3177
- type: "SHOW";
3178
- conditional: any;
3179
- } | {
3180
- type: "ENABLE";
3181
- conditional: any;
3182
- } | {
3183
- type: "DISPLAY_ON_REVIEW";
3184
- conditional: any;
3185
- })[] | undefined;
3186
- secured?: boolean | undefined;
3187
- placeholder?: {
3188
- id: string;
3189
- defaultMessage: string;
3190
- description: string;
3191
- } | undefined;
3192
- validation?: {
3193
- validator: any;
3194
- message: {
3195
- id: string;
3196
- defaultMessage: string;
3197
- description: string;
3198
- };
3199
- }[] | undefined;
3200
- helperText?: {
3201
- id: string;
3202
- defaultMessage: string;
3203
- description: string;
3204
- } | undefined;
3205
- hideLabel?: boolean | undefined;
3206
- uncorrectable?: boolean | undefined;
3207
- value?: {
3208
- $$field: string;
3209
- $$subfield?: string[] | undefined;
3210
- } | {
3211
- $$field: string;
3212
- $$subfield?: string[] | undefined;
3213
- }[] | undefined;
3214
- analytics?: boolean | undefined;
3215
- required?: false | undefined;
3216
3161
  })[];
3217
3162
  };
3218
3163
  auditHistoryLabel?: {
@@ -6270,61 +6215,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6270
6215
  message: string;
6271
6216
  } | null | undefined;
6272
6217
  } | undefined;
6273
- } | {
6274
- id: string;
6275
- label: {
6276
- id: string;
6277
- defaultMessage: string;
6278
- description: string;
6279
- };
6280
- type: "HIDDEN";
6281
- parent?: {
6282
- $$field: string;
6283
- $$subfield?: string[] | undefined;
6284
- } | {
6285
- $$field: string;
6286
- $$subfield?: string[] | undefined;
6287
- }[] | undefined;
6288
- conditionals?: ({
6289
- type: "SHOW";
6290
- conditional: any;
6291
- } | {
6292
- type: "ENABLE";
6293
- conditional: any;
6294
- } | {
6295
- type: "DISPLAY_ON_REVIEW";
6296
- conditional: any;
6297
- })[] | undefined;
6298
- secured?: boolean | undefined;
6299
- placeholder?: {
6300
- id: string;
6301
- defaultMessage: string;
6302
- description: string;
6303
- } | undefined;
6304
- validation?: {
6305
- validator: any;
6306
- message: {
6307
- id: string;
6308
- defaultMessage: string;
6309
- description: string;
6310
- };
6311
- }[] | undefined;
6312
- helperText?: {
6313
- id: string;
6314
- defaultMessage: string;
6315
- description: string;
6316
- } | undefined;
6317
- hideLabel?: boolean | undefined;
6318
- uncorrectable?: boolean | undefined;
6319
- value?: {
6320
- $$field: string;
6321
- $$subfield?: string[] | undefined;
6322
- } | {
6323
- $$field: string;
6324
- $$subfield?: string[] | undefined;
6325
- }[] | undefined;
6326
- analytics?: boolean | undefined;
6327
- required?: false | undefined;
6328
6218
  })[];
6329
6219
  };
6330
6220
  auditHistoryLabel?: {
@@ -9512,61 +9402,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9512
9402
  message: string;
9513
9403
  } | null | undefined;
9514
9404
  } | undefined;
9515
- } | {
9516
- id: string;
9517
- label: {
9518
- id: string;
9519
- defaultMessage: string;
9520
- description: string;
9521
- };
9522
- type: "HIDDEN";
9523
- parent?: {
9524
- $$field: string;
9525
- $$subfield?: string[] | undefined;
9526
- } | {
9527
- $$field: string;
9528
- $$subfield?: string[] | undefined;
9529
- }[] | undefined;
9530
- conditionals?: ({
9531
- type: "SHOW";
9532
- conditional: any;
9533
- } | {
9534
- type: "ENABLE";
9535
- conditional: any;
9536
- } | {
9537
- type: "DISPLAY_ON_REVIEW";
9538
- conditional: any;
9539
- })[] | undefined;
9540
- secured?: boolean | undefined;
9541
- placeholder?: {
9542
- id: string;
9543
- defaultMessage: string;
9544
- description: string;
9545
- } | undefined;
9546
- validation?: {
9547
- validator: any;
9548
- message: {
9549
- id: string;
9550
- defaultMessage: string;
9551
- description: string;
9552
- };
9553
- }[] | undefined;
9554
- helperText?: {
9555
- id: string;
9556
- defaultMessage: string;
9557
- description: string;
9558
- } | undefined;
9559
- hideLabel?: boolean | undefined;
9560
- uncorrectable?: boolean | undefined;
9561
- value?: {
9562
- $$field: string;
9563
- $$subfield?: string[] | undefined;
9564
- } | {
9565
- $$field: string;
9566
- $$subfield?: string[] | undefined;
9567
- }[] | undefined;
9568
- analytics?: boolean | undefined;
9569
- required?: false | undefined;
9570
9405
  })[];
9571
9406
  type: "FORM";
9572
9407
  conditional?: any;
@@ -12602,61 +12437,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
12602
12437
  message: string;
12603
12438
  } | null | undefined;
12604
12439
  } | undefined;
12605
- } | {
12606
- id: string;
12607
- label: {
12608
- id: string;
12609
- defaultMessage: string;
12610
- description: string;
12611
- };
12612
- type: "HIDDEN";
12613
- parent?: {
12614
- $$field: string;
12615
- $$subfield?: string[] | undefined;
12616
- } | {
12617
- $$field: string;
12618
- $$subfield?: string[] | undefined;
12619
- }[] | undefined;
12620
- conditionals?: ({
12621
- type: "SHOW";
12622
- conditional: any;
12623
- } | {
12624
- type: "ENABLE";
12625
- conditional: any;
12626
- } | {
12627
- type: "DISPLAY_ON_REVIEW";
12628
- conditional: any;
12629
- })[] | undefined;
12630
- secured?: boolean | undefined;
12631
- placeholder?: {
12632
- id: string;
12633
- defaultMessage: string;
12634
- description: string;
12635
- } | undefined;
12636
- validation?: {
12637
- validator: any;
12638
- message: {
12639
- id: string;
12640
- defaultMessage: string;
12641
- description: string;
12642
- };
12643
- }[] | undefined;
12644
- helperText?: {
12645
- id: string;
12646
- defaultMessage: string;
12647
- description: string;
12648
- } | undefined;
12649
- hideLabel?: boolean | undefined;
12650
- uncorrectable?: boolean | undefined;
12651
- value?: {
12652
- $$field: string;
12653
- $$subfield?: string[] | undefined;
12654
- } | {
12655
- $$field: string;
12656
- $$subfield?: string[] | undefined;
12657
- }[] | undefined;
12658
- analytics?: boolean | undefined;
12659
- required?: false | undefined;
12660
12440
  })[];
12661
12441
  type: "VERIFICATION";
12662
12442
  actions: {
@@ -15758,14 +15538,24 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
15758
15538
  message: string;
15759
15539
  } | null | undefined;
15760
15540
  } | undefined;
15761
- } | {
15541
+ })[];
15542
+ type: "FORM";
15543
+ conditional?: any;
15544
+ } | {
15545
+ id: string;
15546
+ title: {
15547
+ id: string;
15548
+ defaultMessage: string;
15549
+ description: string;
15550
+ };
15551
+ fields: ({
15762
15552
  id: string;
15763
15553
  label: {
15764
15554
  id: string;
15765
15555
  defaultMessage: string;
15766
15556
  description: string;
15767
15557
  };
15768
- type: "HIDDEN";
15558
+ type: "ADDRESS";
15769
15559
  parent?: {
15770
15560
  $$field: string;
15771
15561
  $$subfield?: string[] | undefined;
@@ -15773,78 +15563,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
15773
15563
  $$field: string;
15774
15564
  $$subfield?: string[] | undefined;
15775
15565
  }[] | undefined;
15776
- conditionals?: ({
15777
- type: "SHOW";
15778
- conditional: any;
15779
- } | {
15780
- type: "ENABLE";
15781
- conditional: any;
15782
- } | {
15783
- type: "DISPLAY_ON_REVIEW";
15784
- conditional: any;
15785
- })[] | undefined;
15786
- secured?: boolean | undefined;
15787
- placeholder?: {
15788
- id: string;
15789
- defaultMessage: string;
15790
- description: string;
15791
- } | undefined;
15792
- validation?: {
15793
- validator: any;
15794
- message: {
15795
- id: string;
15796
- defaultMessage: string;
15797
- description: string;
15798
- };
15799
- }[] | undefined;
15800
- helperText?: {
15801
- id: string;
15802
- defaultMessage: string;
15803
- description: string;
15804
- } | undefined;
15805
- hideLabel?: boolean | undefined;
15806
- uncorrectable?: boolean | undefined;
15807
- value?: {
15808
- $$field: string;
15809
- $$subfield?: string[] | undefined;
15810
- } | {
15811
- $$field: string;
15812
- $$subfield?: string[] | undefined;
15813
- }[] | undefined;
15814
- analytics?: boolean | undefined;
15815
- required?: false | undefined;
15816
- })[];
15817
- type: "FORM";
15818
- conditional?: any;
15819
- } | {
15820
- id: string;
15821
- title: {
15822
- id: string;
15823
- defaultMessage: string;
15824
- description: string;
15825
- };
15826
- fields: ({
15827
- id: string;
15828
- label: {
15829
- id: string;
15830
- defaultMessage: string;
15831
- description: string;
15832
- };
15833
- type: "ADDRESS";
15834
- parent?: {
15835
- $$field: string;
15836
- $$subfield?: string[] | undefined;
15837
- } | {
15838
- $$field: string;
15839
- $$subfield?: string[] | undefined;
15840
- }[] | undefined;
15841
- required?: boolean | {
15842
- message: {
15843
- id: string;
15844
- defaultMessage: string;
15845
- description: string;
15846
- };
15847
- } | undefined;
15566
+ required?: boolean | {
15567
+ message: {
15568
+ id: string;
15569
+ defaultMessage: string;
15570
+ description: string;
15571
+ };
15572
+ } | undefined;
15848
15573
  conditionals?: ({
15849
15574
  type: "SHOW";
15850
15575
  conditional: any;
@@ -18848,61 +18573,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
18848
18573
  message: string;
18849
18574
  } | null | undefined;
18850
18575
  } | undefined;
18851
- } | {
18852
- id: string;
18853
- label: {
18854
- id: string;
18855
- defaultMessage: string;
18856
- description: string;
18857
- };
18858
- type: "HIDDEN";
18859
- parent?: {
18860
- $$field: string;
18861
- $$subfield?: string[] | undefined;
18862
- } | {
18863
- $$field: string;
18864
- $$subfield?: string[] | undefined;
18865
- }[] | undefined;
18866
- conditionals?: ({
18867
- type: "SHOW";
18868
- conditional: any;
18869
- } | {
18870
- type: "ENABLE";
18871
- conditional: any;
18872
- } | {
18873
- type: "DISPLAY_ON_REVIEW";
18874
- conditional: any;
18875
- })[] | undefined;
18876
- secured?: boolean | undefined;
18877
- placeholder?: {
18878
- id: string;
18879
- defaultMessage: string;
18880
- description: string;
18881
- } | undefined;
18882
- validation?: {
18883
- validator: any;
18884
- message: {
18885
- id: string;
18886
- defaultMessage: string;
18887
- description: string;
18888
- };
18889
- }[] | undefined;
18890
- helperText?: {
18891
- id: string;
18892
- defaultMessage: string;
18893
- description: string;
18894
- } | undefined;
18895
- hideLabel?: boolean | undefined;
18896
- uncorrectable?: boolean | undefined;
18897
- value?: {
18898
- $$field: string;
18899
- $$subfield?: string[] | undefined;
18900
- } | {
18901
- $$field: string;
18902
- $$subfield?: string[] | undefined;
18903
- }[] | undefined;
18904
- analytics?: boolean | undefined;
18905
- required?: false | undefined;
18906
18576
  })[];
18907
18577
  type: "VERIFICATION";
18908
18578
  actions: {
@@ -21992,61 +21662,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
21992
21662
  message: string;
21993
21663
  } | null | undefined;
21994
21664
  } | undefined;
21995
- } | {
21996
- id: string;
21997
- label: {
21998
- id: string;
21999
- defaultMessage: string;
22000
- description: string;
22001
- };
22002
- type: "HIDDEN";
22003
- parent?: {
22004
- $$field: string;
22005
- $$subfield?: string[] | undefined;
22006
- } | {
22007
- $$field: string;
22008
- $$subfield?: string[] | undefined;
22009
- }[] | undefined;
22010
- conditionals?: ({
22011
- type: "SHOW";
22012
- conditional: any;
22013
- } | {
22014
- type: "ENABLE";
22015
- conditional: any;
22016
- } | {
22017
- type: "DISPLAY_ON_REVIEW";
22018
- conditional: any;
22019
- })[] | undefined;
22020
- secured?: boolean | undefined;
22021
- placeholder?: {
22022
- id: string;
22023
- defaultMessage: string;
22024
- description: string;
22025
- } | undefined;
22026
- validation?: {
22027
- validator: any;
22028
- message: {
22029
- id: string;
22030
- defaultMessage: string;
22031
- description: string;
22032
- };
22033
- }[] | undefined;
22034
- helperText?: {
22035
- id: string;
22036
- defaultMessage: string;
22037
- description: string;
22038
- } | undefined;
22039
- hideLabel?: boolean | undefined;
22040
- uncorrectable?: boolean | undefined;
22041
- value?: {
22042
- $$field: string;
22043
- $$subfield?: string[] | undefined;
22044
- } | {
22045
- $$field: string;
22046
- $$subfield?: string[] | undefined;
22047
- }[] | undefined;
22048
- analytics?: boolean | undefined;
22049
- required?: false | undefined;
22050
21665
  })[];
22051
21666
  auditHistoryLabel?: {
22052
21667
  id: string;
@@ -25105,61 +24720,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
25105
24720
  message: string;
25106
24721
  } | null | undefined;
25107
24722
  } | undefined;
25108
- } | {
25109
- id: string;
25110
- label: {
25111
- id: string;
25112
- defaultMessage: string;
25113
- description: string;
25114
- };
25115
- type: "HIDDEN";
25116
- parent?: {
25117
- $$field: string;
25118
- $$subfield?: string[] | undefined;
25119
- } | {
25120
- $$field: string;
25121
- $$subfield?: string[] | undefined;
25122
- }[] | undefined;
25123
- conditionals?: ({
25124
- type: "SHOW";
25125
- conditional: any;
25126
- } | {
25127
- type: "ENABLE";
25128
- conditional: any;
25129
- } | {
25130
- type: "DISPLAY_ON_REVIEW";
25131
- conditional: any;
25132
- })[] | undefined;
25133
- secured?: boolean | undefined;
25134
- placeholder?: {
25135
- id: string;
25136
- defaultMessage: string;
25137
- description: string;
25138
- } | undefined;
25139
- validation?: {
25140
- validator: any;
25141
- message: {
25142
- id: string;
25143
- defaultMessage: string;
25144
- description: string;
25145
- };
25146
- }[] | undefined;
25147
- helperText?: {
25148
- id: string;
25149
- defaultMessage: string;
25150
- description: string;
25151
- } | undefined;
25152
- hideLabel?: boolean | undefined;
25153
- uncorrectable?: boolean | undefined;
25154
- value?: {
25155
- $$field: string;
25156
- $$subfield?: string[] | undefined;
25157
- } | {
25158
- $$field: string;
25159
- $$subfield?: string[] | undefined;
25160
- }[] | undefined;
25161
- analytics?: boolean | undefined;
25162
- required?: false | undefined;
25163
24723
  })[];
25164
24724
  type: "FORM";
25165
24725
  conditional?: any;
@@ -25178,7 +24738,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
25178
24738
  };
25179
24739
  fieldId: string;
25180
24740
  fieldType: "field";
25181
- type?: "ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "AGE" | "DATE" | "TIME" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "PARAGRAPH" | "RADIO_GROUP" | "BULLET_LIST" | "PAGE_HEADER" | "SELECT" | "NAME" | "PHONE" | "ID" | "CHECKBOX" | "FILE" | "COUNTRY" | "ADMINISTRATIVE_AREA" | "DIVIDER" | "LOCATION" | "FACILITY" | "OFFICE" | "SIGNATURE" | "EMAIL" | "FILE_WITH_OPTIONS" | "DATA" | "BUTTON" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QR_READER" | "ID_READER" | "QUERY_PARAM_READER" | "LOADER" | "SEARCH" | "HIDDEN" | undefined;
24741
+ type?: "ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "AGE" | "DATE" | "TIME" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "PARAGRAPH" | "RADIO_GROUP" | "BULLET_LIST" | "PAGE_HEADER" | "SELECT" | "NAME" | "PHONE" | "ID" | "CHECKBOX" | "FILE" | "COUNTRY" | "ADMINISTRATIVE_AREA" | "DIVIDER" | "LOCATION" | "FACILITY" | "OFFICE" | "SIGNATURE" | "EMAIL" | "FILE_WITH_OPTIONS" | "DATA" | "BUTTON" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QR_READER" | "ID_READER" | "QUERY_PARAM_READER" | "LOADER" | "SEARCH" | undefined;
25182
24742
  label?: {
25183
24743
  id: string;
25184
24744
  defaultMessage: string;
@@ -25222,7 +24782,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
25222
24782
  };
25223
24783
  fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber";
25224
24784
  fieldType: "event";
25225
- type?: "ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "AGE" | "DATE" | "TIME" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "PARAGRAPH" | "RADIO_GROUP" | "BULLET_LIST" | "PAGE_HEADER" | "SELECT" | "NAME" | "PHONE" | "ID" | "CHECKBOX" | "FILE" | "COUNTRY" | "ADMINISTRATIVE_AREA" | "DIVIDER" | "LOCATION" | "FACILITY" | "OFFICE" | "SIGNATURE" | "EMAIL" | "FILE_WITH_OPTIONS" | "DATA" | "BUTTON" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QR_READER" | "ID_READER" | "QUERY_PARAM_READER" | "LOADER" | "SEARCH" | "HIDDEN" | undefined;
24785
+ type?: "ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "AGE" | "DATE" | "TIME" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "PARAGRAPH" | "RADIO_GROUP" | "BULLET_LIST" | "PAGE_HEADER" | "SELECT" | "NAME" | "PHONE" | "ID" | "CHECKBOX" | "FILE" | "COUNTRY" | "ADMINISTRATIVE_AREA" | "DIVIDER" | "LOCATION" | "FACILITY" | "OFFICE" | "SIGNATURE" | "EMAIL" | "FILE_WITH_OPTIONS" | "DATA" | "BUTTON" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QR_READER" | "ID_READER" | "QUERY_PARAM_READER" | "LOADER" | "SEARCH" | undefined;
25226
24786
  label?: {
25227
24787
  id: string;
25228
24788
  defaultMessage: string;
@@ -25274,10 +24834,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
25274
24834
  $$field: string;
25275
24835
  $$subfield?: string[] | undefined;
25276
24836
  } | undefined;
25277
- placeOfEvent?: {
25278
- $$field: string;
25279
- $$subfield?: string[] | undefined;
25280
- } | undefined;
25281
24837
  fallbackTitle?: {
25282
24838
  id: string;
25283
24839
  defaultMessage: string;
@@ -25560,6 +25116,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
25560
25116
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
25561
25117
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
25562
25118
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
25119
+ } | {
25120
+ id: string & import("zod").$brand<"UUID">;
25121
+ transactionId: string;
25122
+ createdByUserType: "user" | "system";
25123
+ createdAt: string;
25124
+ createdBy: string;
25125
+ createdByRole: string;
25126
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
25127
+ status: "Requested" | "Accepted" | "Rejected";
25128
+ type: "EDIT";
25129
+ createdBySignature?: string | null | undefined;
25130
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
25131
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
25132
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
25563
25133
  } | {
25564
25134
  id: string & import("zod").$brand<"UUID">;
25565
25135
  transactionId: string;
@@ -25582,7 +25152,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
25582
25152
  createdAt: string;
25583
25153
  createdBy: string;
25584
25154
  createdByRole: string;
25585
- type: "DECLARE" | "REJECT" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "ARCHIVE" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
25155
+ type: "DECLARE" | "REJECT" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "ARCHIVE" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION" | "EDIT";
25586
25156
  status: "Rejected";
25587
25157
  createdBySignature?: string | null | undefined;
25588
25158
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
@@ -25862,6 +25432,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
25862
25432
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
25863
25433
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
25864
25434
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
25435
+ } | {
25436
+ id: string & import("zod").$brand<"UUID">;
25437
+ transactionId: string;
25438
+ createdByUserType: "user" | "system";
25439
+ createdAt: string;
25440
+ createdBy: string;
25441
+ createdByRole: string;
25442
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
25443
+ status: "Requested" | "Accepted" | "Rejected";
25444
+ type: "EDIT";
25445
+ createdBySignature?: string | null | undefined;
25446
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
25447
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
25448
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
25865
25449
  } | {
25866
25450
  id: string & import("zod").$brand<"UUID">;
25867
25451
  transactionId: string;
@@ -25884,7 +25468,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
25884
25468
  createdAt: string;
25885
25469
  createdBy: string;
25886
25470
  createdByRole: string;
25887
- type: "DECLARE" | "REJECT" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "ARCHIVE" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
25471
+ type: "DECLARE" | "REJECT" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "ARCHIVE" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION" | "EDIT";
25888
25472
  status: "Rejected";
25889
25473
  createdBySignature?: string | null | undefined;
25890
25474
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
@@ -26166,6 +25750,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
26166
25750
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26167
25751
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
26168
25752
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
25753
+ } | {
25754
+ id: string & import("zod").$brand<"UUID">;
25755
+ transactionId: string;
25756
+ createdByUserType: "user" | "system";
25757
+ createdAt: string;
25758
+ createdBy: string;
25759
+ createdByRole: string;
25760
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
25761
+ status: "Requested" | "Accepted" | "Rejected";
25762
+ type: "EDIT";
25763
+ createdBySignature?: string | null | undefined;
25764
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
25765
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
25766
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
26169
25767
  } | {
26170
25768
  id: string & import("zod").$brand<"UUID">;
26171
25769
  transactionId: string;
@@ -26188,7 +25786,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
26188
25786
  createdAt: string;
26189
25787
  createdBy: string;
26190
25788
  createdByRole: string;
26191
- type: "DECLARE" | "REJECT" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "ARCHIVE" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
25789
+ type: "DECLARE" | "REJECT" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "ARCHIVE" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION" | "EDIT";
26192
25790
  status: "Rejected";
26193
25791
  createdBySignature?: string | null | undefined;
26194
25792
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
@@ -26236,7 +25834,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
26236
25834
  transactionId: string;
26237
25835
  createdAt: string;
26238
25836
  action: {
26239
- type: "READ" | "DECLARE" | "REJECT" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "CREATE" | "DUPLICATE_DETECTED" | "MARK_AS_NOT_DUPLICATE" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "NOTIFY" | "ASSIGN" | "APPROVE_CORRECTION" | "REJECT_CORRECTION" | "UNASSIGN";
25837
+ type: "READ" | "DECLARE" | "REJECT" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "CREATE" | "DUPLICATE_DETECTED" | "MARK_AS_NOT_DUPLICATE" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "NOTIFY" | "ASSIGN" | "APPROVE_CORRECTION" | "REJECT_CORRECTION" | "UNASSIGN" | "EDIT";
26240
25838
  status: "Requested" | "Accepted" | "Rejected";
26241
25839
  transactionId: string;
26242
25840
  createdByUserType: "user" | "system";
@@ -26255,7 +25853,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
26255
25853
  input: {
26256
25854
  eventId: string;
26257
25855
  transactionId: string;
26258
- type: "READ" | "DECLARE" | "REJECT" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "CREATE" | "DUPLICATE_DETECTED" | "MARK_AS_NOT_DUPLICATE" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "NOTIFY" | "ASSIGN" | "APPROVE_CORRECTION" | "REJECT_CORRECTION" | "UNASSIGN";
25856
+ type: "READ" | "DECLARE" | "REJECT" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "CREATE" | "DUPLICATE_DETECTED" | "MARK_AS_NOT_DUPLICATE" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "NOTIFY" | "ASSIGN" | "APPROVE_CORRECTION" | "REJECT_CORRECTION" | "UNASSIGN" | "EDIT";
26259
25857
  status: "Requested" | "Accepted" | "Rejected";
26260
25858
  declaration?: Record<string, unknown> | undefined;
26261
25859
  annotation?: Record<string, unknown> | undefined;
@@ -26269,7 +25867,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
26269
25867
  transactionId: string;
26270
25868
  createdAt: string;
26271
25869
  action: {
26272
- type: "READ" | "DECLARE" | "REJECT" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "CREATE" | "DUPLICATE_DETECTED" | "MARK_AS_NOT_DUPLICATE" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "NOTIFY" | "ASSIGN" | "APPROVE_CORRECTION" | "REJECT_CORRECTION" | "UNASSIGN";
25870
+ type: "READ" | "DECLARE" | "REJECT" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "CREATE" | "DUPLICATE_DETECTED" | "MARK_AS_NOT_DUPLICATE" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "NOTIFY" | "ASSIGN" | "APPROVE_CORRECTION" | "REJECT_CORRECTION" | "UNASSIGN" | "EDIT";
26273
25871
  status: "Requested" | "Accepted" | "Rejected";
26274
25872
  transactionId: string;
26275
25873
  createdByUserType: "user" | "system";
@@ -26649,6 +26247,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
26649
26247
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26650
26248
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
26651
26249
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
26250
+ } | {
26251
+ id: string & import("zod").$brand<"UUID">;
26252
+ transactionId: string;
26253
+ createdByUserType: "user" | "system";
26254
+ createdAt: string;
26255
+ createdBy: string;
26256
+ createdByRole: string;
26257
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
26258
+ status: "Requested" | "Accepted" | "Rejected";
26259
+ type: "EDIT";
26260
+ createdBySignature?: string | null | undefined;
26261
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26262
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
26263
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
26652
26264
  } | {
26653
26265
  id: string & import("zod").$brand<"UUID">;
26654
26266
  transactionId: string;
@@ -26671,7 +26283,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
26671
26283
  createdAt: string;
26672
26284
  createdBy: string;
26673
26285
  createdByRole: string;
26674
- type: "DECLARE" | "REJECT" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "ARCHIVE" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
26286
+ type: "DECLARE" | "REJECT" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "ARCHIVE" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION" | "EDIT";
26675
26287
  status: "Rejected";
26676
26288
  createdBySignature?: string | null | undefined;
26677
26289
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
@@ -26698,6 +26310,49 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
26698
26310
  meta: import("trpc-to-openapi").OpenApiMeta;
26699
26311
  }>;
26700
26312
  }>>;
26313
+ edit: import("@trpc/server").TRPCBuiltRouter<{
26314
+ ctx: Partial<{
26315
+ token: `Bearer ${string}`;
26316
+ user: {
26317
+ type: "user";
26318
+ id: string;
26319
+ role: string;
26320
+ primaryOfficeId: string & import("zod").$brand<"UUID">;
26321
+ signature?: string | undefined;
26322
+ } | {
26323
+ type: "system";
26324
+ id: string;
26325
+ role: "HEALTH" | "NATIONAL_ID" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
26326
+ signature?: undefined;
26327
+ primaryOfficeId?: undefined;
26328
+ };
26329
+ }>;
26330
+ meta: import("trpc-to-openapi").OpenApiMeta;
26331
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
26332
+ transformer: true;
26333
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
26334
+ request: import("@trpc/server").TRPCMutationProcedure<{
26335
+ input: import("../commons").ActionInput;
26336
+ output: import("../commons").EventDocument;
26337
+ meta: import("trpc-to-openapi").OpenApiMeta;
26338
+ }>;
26339
+ accept: import("@trpc/server").TRPCMutationProcedure<{
26340
+ input: import("../commons").ActionInput & {
26341
+ actionId: string;
26342
+ };
26343
+ output: import("../commons").EventDocument;
26344
+ meta: import("trpc-to-openapi").OpenApiMeta;
26345
+ }>;
26346
+ reject: import("@trpc/server").TRPCMutationProcedure<{
26347
+ input: {
26348
+ eventId: string;
26349
+ actionId: string;
26350
+ transactionId: string;
26351
+ };
26352
+ output: import("../commons").EventDocument;
26353
+ meta: import("trpc-to-openapi").OpenApiMeta;
26354
+ }>;
26355
+ }>>;
26701
26356
  validate: import("@trpc/server").TRPCBuiltRouter<{
26702
26357
  ctx: Partial<{
26703
26358
  token: `Bearer ${string}`;
@@ -27214,6 +26869,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
27214
26869
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
27215
26870
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
27216
26871
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
26872
+ } | {
26873
+ id: string & import("zod").$brand<"UUID">;
26874
+ transactionId: string;
26875
+ createdByUserType: "user" | "system";
26876
+ createdAt: string;
26877
+ createdBy: string;
26878
+ createdByRole: string;
26879
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
26880
+ status: "Requested" | "Accepted" | "Rejected";
26881
+ type: "EDIT";
26882
+ createdBySignature?: string | null | undefined;
26883
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26884
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
26885
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
27217
26886
  } | {
27218
26887
  id: string & import("zod").$brand<"UUID">;
27219
26888
  transactionId: string;
@@ -27236,7 +26905,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
27236
26905
  createdAt: string;
27237
26906
  createdBy: string;
27238
26907
  createdByRole: string;
27239
- type: "DECLARE" | "REJECT" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "ARCHIVE" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
26908
+ type: "DECLARE" | "REJECT" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "ARCHIVE" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION" | "EDIT";
27240
26909
  status: "Rejected";
27241
26910
  createdBySignature?: string | null | undefined;
27242
26911
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
@@ -27564,6 +27233,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
27564
27233
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
27565
27234
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
27566
27235
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
27236
+ } | {
27237
+ id: string & import("zod").$brand<"UUID">;
27238
+ transactionId: string;
27239
+ createdByUserType: "user" | "system";
27240
+ createdAt: string;
27241
+ createdBy: string;
27242
+ createdByRole: string;
27243
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
27244
+ status: "Requested" | "Accepted" | "Rejected";
27245
+ type: "EDIT";
27246
+ createdBySignature?: string | null | undefined;
27247
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
27248
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
27249
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
27567
27250
  } | {
27568
27251
  id: string & import("zod").$brand<"UUID">;
27569
27252
  transactionId: string;
@@ -27586,7 +27269,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
27586
27269
  createdAt: string;
27587
27270
  createdBy: string;
27588
27271
  createdByRole: string;
27589
- type: "DECLARE" | "REJECT" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "ARCHIVE" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
27272
+ type: "DECLARE" | "REJECT" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "ARCHIVE" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION" | "EDIT";
27590
27273
  status: "Rejected";
27591
27274
  createdBySignature?: string | null | undefined;
27592
27275
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
@@ -27876,6 +27559,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
27876
27559
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
27877
27560
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
27878
27561
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
27562
+ } | {
27563
+ id: string & import("zod").$brand<"UUID">;
27564
+ transactionId: string;
27565
+ createdByUserType: "user" | "system";
27566
+ createdAt: string;
27567
+ createdBy: string;
27568
+ createdByRole: string;
27569
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
27570
+ status: "Requested" | "Accepted" | "Rejected";
27571
+ type: "EDIT";
27572
+ createdBySignature?: string | null | undefined;
27573
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
27574
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
27575
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
27879
27576
  } | {
27880
27577
  id: string & import("zod").$brand<"UUID">;
27881
27578
  transactionId: string;
@@ -27898,7 +27595,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
27898
27595
  createdAt: string;
27899
27596
  createdBy: string;
27900
27597
  createdByRole: string;
27901
- type: "DECLARE" | "REJECT" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "ARCHIVE" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
27598
+ type: "DECLARE" | "REJECT" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "ARCHIVE" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION" | "EDIT";
27902
27599
  status: "Rejected";
27903
27600
  createdBySignature?: string | null | undefined;
27904
27601
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
@@ -28363,6 +28060,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
28363
28060
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
28364
28061
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
28365
28062
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
28063
+ } | {
28064
+ id: string & import("zod").$brand<"UUID">;
28065
+ transactionId: string;
28066
+ createdByUserType: "user" | "system";
28067
+ createdAt: string;
28068
+ createdBy: string;
28069
+ createdByRole: string;
28070
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
28071
+ status: "Requested" | "Accepted" | "Rejected";
28072
+ type: "EDIT";
28073
+ createdBySignature?: string | null | undefined;
28074
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
28075
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
28076
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
28366
28077
  } | {
28367
28078
  id: string & import("zod").$brand<"UUID">;
28368
28079
  transactionId: string;
@@ -28385,7 +28096,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
28385
28096
  createdAt: string;
28386
28097
  createdBy: string;
28387
28098
  createdByRole: string;
28388
- type: "DECLARE" | "REJECT" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "ARCHIVE" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
28099
+ type: "DECLARE" | "REJECT" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "ARCHIVE" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION" | "EDIT";
28389
28100
  status: "Rejected";
28390
28101
  createdBySignature?: string | null | undefined;
28391
28102
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
@@ -28674,6 +28385,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
28674
28385
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
28675
28386
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
28676
28387
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
28388
+ } | {
28389
+ id: string & import("zod").$brand<"UUID">;
28390
+ transactionId: string;
28391
+ createdByUserType: "user" | "system";
28392
+ createdAt: string;
28393
+ createdBy: string;
28394
+ createdByRole: string;
28395
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
28396
+ status: "Requested" | "Accepted" | "Rejected";
28397
+ type: "EDIT";
28398
+ createdBySignature?: string | null | undefined;
28399
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
28400
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
28401
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
28677
28402
  } | {
28678
28403
  id: string & import("zod").$brand<"UUID">;
28679
28404
  transactionId: string;
@@ -28696,7 +28421,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
28696
28421
  createdAt: string;
28697
28422
  createdBy: string;
28698
28423
  createdByRole: string;
28699
- type: "DECLARE" | "REJECT" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "ARCHIVE" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
28424
+ type: "DECLARE" | "REJECT" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "ARCHIVE" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION" | "EDIT";
28700
28425
  status: "Rejected";
28701
28426
  createdBySignature?: string | null | undefined;
28702
28427
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
@@ -28753,7 +28478,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
28753
28478
  flags: string[];
28754
28479
  declaration: Record<string, import("../commons").FieldValue>;
28755
28480
  dateOfEvent?: string | null | undefined;
28756
- placeOfEvent?: (string & import("zod").$brand<"UUID">) | null | undefined;
28757
28481
  createdByUserType?: "user" | "system" | null | undefined;
28758
28482
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
28759
28483
  createdBySignature?: string | null | undefined;
@@ -29034,6 +28758,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
29034
28758
  createdAtLocation?: string | null | undefined;
29035
28759
  annotation?: Record<string, unknown> | null | undefined;
29036
28760
  originalActionId?: string | null | undefined;
28761
+ } | {
28762
+ id: string;
28763
+ transactionId: string;
28764
+ createdByUserType: "user" | "system";
28765
+ createdAt: string;
28766
+ createdBy: string;
28767
+ createdByRole: string;
28768
+ declaration: Record<string, unknown>;
28769
+ status: "Requested" | "Accepted" | "Rejected";
28770
+ type: "EDIT";
28771
+ createdBySignature?: string | null | undefined;
28772
+ createdAtLocation?: string | null | undefined;
28773
+ annotation?: Record<string, unknown> | null | undefined;
28774
+ originalActionId?: string | null | undefined;
29037
28775
  } | {
29038
28776
  id: string;
29039
28777
  transactionId: string;
@@ -29056,7 +28794,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
29056
28794
  createdAt: string;
29057
28795
  createdBy: string;
29058
28796
  createdByRole: string;
29059
- type: "DECLARE" | "REJECT" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "ARCHIVE" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
28797
+ type: "DECLARE" | "REJECT" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "ARCHIVE" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION" | "EDIT";
29060
28798
  status: "Rejected";
29061
28799
  createdBySignature?: string | null | undefined;
29062
28800
  createdAtLocation?: string | null | undefined;
@@ -29155,7 +28893,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
29155
28893
  count?: number | undefined;
29156
28894
  timeStart?: string | undefined;
29157
28895
  timeEnd?: string | undefined;
29158
- actionTypes?: ("READ" | "DECLARE" | "REJECT" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "CREATE" | "DUPLICATE_DETECTED" | "MARK_AS_NOT_DUPLICATE" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "NOTIFY" | "ASSIGN" | "APPROVE_CORRECTION" | "REJECT_CORRECTION" | "UNASSIGN")[] | undefined;
28896
+ actionTypes?: ("READ" | "DECLARE" | "REJECT" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "CREATE" | "DUPLICATE_DETECTED" | "MARK_AS_NOT_DUPLICATE" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "NOTIFY" | "ASSIGN" | "APPROVE_CORRECTION" | "REJECT_CORRECTION" | "UNASSIGN" | "EDIT")[] | undefined;
29159
28897
  };
29160
28898
  output: {
29161
28899
  results: {
@@ -29525,7 +29263,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
29525
29263
  }[];
29526
29264
  };
29527
29265
  actions: {
29528
- type: "DELETE" | "READ" | "DECLARE" | "REJECT" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
29266
+ type: "DELETE" | "READ" | "DECLARE" | "REJECT" | "VALIDATE" | "REGISTER" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "ASSIGN" | "UNASSIGN" | "EDIT" | "DEFAULT";
29529
29267
  conditionals?: any[] | undefined;
29530
29268
  }[];
29531
29269
  columns: {
@@ -29535,7 +29273,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
29535
29273
  description: string;
29536
29274
  };
29537
29275
  value: {
29538
- $event: "type" | "id" | "dateOfEvent" | "placeOfEvent" | "title" | "flags" | "status" | "createdAt" | "updatedAt" | "trackingId" | "createdBy" | "createdByUserType" | "createdAtLocation" | "assignedTo" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "outbox";
29276
+ $event: "type" | "id" | "dateOfEvent" | "title" | "flags" | "status" | "createdAt" | "updatedAt" | "trackingId" | "createdBy" | "createdByUserType" | "createdAtLocation" | "assignedTo" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "outbox";
29539
29277
  };
29540
29278
  }[];
29541
29279
  icon: "Validated" | "Registered" | "Certified" | "Archived" | "List" | "Assigned" | "Close" | "Collapse" | "Draft" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "RequiresUpdates" | "Sent" | "WaitingApproval" | "ChartActivity" | "Activity" | "Archive" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Check" | "Copy" | "Database" | "DotsThreeVertical" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "File" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "IdentificationCard" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Stamp" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";