@opencrvs/toolkit 2.0.0-rc.a52e460 → 2.0.0-rc.a5686d6
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/create-countryconfig/index.js +50 -20
- package/create-countryconfig/package.json +12 -2
- package/dist/application-config/index.js +208 -66
- package/dist/cli.js +3 -1
- package/dist/commons/api/router.d.ts +90 -34
- package/dist/commons/conditionals/conditionals.d.ts +6 -0
- package/dist/commons/events/ActionDocument.d.ts +6 -0
- package/dist/commons/events/ActionInput.d.ts +42 -36
- package/dist/commons/events/Draft.d.ts +2 -3
- package/dist/commons/events/EventDocument.d.ts +3 -0
- package/dist/commons/events/EventIndex.d.ts +0 -3
- package/dist/commons/events/EventMetadata.d.ts +0 -7
- package/dist/commons/events/WorkqueueConfig.d.ts +150 -150
- package/dist/commons/events/index.d.ts +2 -0
- package/dist/commons/events/state/flags.d.ts +16 -0
- package/dist/commons/events/state/index.d.ts +0 -4
- package/dist/commons/events/state/utils.d.ts +3 -2
- package/dist/commons/events/utils.d.ts +11 -0
- package/dist/conditionals/index.js +7 -1
- package/dist/events/index.js +726 -141
- package/dist/migrations/v2.0/index.js +3 -1
- package/dist/notification/index.js +642 -100
- package/dist/scopes/index.js +3 -1
- package/opencrvs-toolkit-2.0.0-rc.a5686d6.tgz +0 -0
- package/package.json +6 -2
- package/opencrvs-toolkit-2.0.0-rc.a52e460.tgz +0 -0
|
@@ -313,6 +313,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
313
313
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
314
314
|
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
315
315
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
316
|
+
content?: {
|
|
317
|
+
immediateCorrection?: boolean | undefined;
|
|
318
|
+
} | undefined;
|
|
316
319
|
} | {
|
|
317
320
|
id: string & import("zod").$brand<"UUID">;
|
|
318
321
|
transactionId: string;
|
|
@@ -429,6 +432,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
429
432
|
input: {
|
|
430
433
|
eventId: string;
|
|
431
434
|
customActionType?: string | undefined;
|
|
435
|
+
waitFor?: boolean | undefined;
|
|
432
436
|
};
|
|
433
437
|
output: {
|
|
434
438
|
id: string & import("zod").$brand<"UUID">;
|
|
@@ -621,6 +625,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
621
625
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
622
626
|
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
623
627
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
628
|
+
content?: {
|
|
629
|
+
immediateCorrection?: boolean | undefined;
|
|
630
|
+
} | undefined;
|
|
624
631
|
} | {
|
|
625
632
|
id: string & import("zod").$brand<"UUID">;
|
|
626
633
|
transactionId: string;
|
|
@@ -929,6 +936,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
929
936
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
930
937
|
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
931
938
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
939
|
+
content?: {
|
|
940
|
+
immediateCorrection?: boolean | undefined;
|
|
941
|
+
} | undefined;
|
|
932
942
|
} | {
|
|
933
943
|
id: string & import("zod").$brand<"UUID">;
|
|
934
944
|
transactionId: string;
|
|
@@ -1097,18 +1107,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1097
1107
|
}>;
|
|
1098
1108
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
1099
1109
|
input: {
|
|
1100
|
-
eventId: string;
|
|
1101
1110
|
transactionId: string;
|
|
1111
|
+
eventId: string;
|
|
1102
1112
|
type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "CUSTOM" | "CREATE" | "DUPLICATE_DETECTED" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "ASSIGN" | "APPROVE_CORRECTION" | "REJECT_CORRECTION" | "UNASSIGN";
|
|
1103
1113
|
status: "Requested" | "Accepted" | "Rejected";
|
|
1114
|
+
createdAtLocation?: string | null | undefined;
|
|
1104
1115
|
declaration?: Record<string, unknown> | undefined;
|
|
1105
1116
|
annotation?: Record<string, unknown> | undefined;
|
|
1106
1117
|
originalActionId?: string | undefined;
|
|
1107
1118
|
keepAssignment?: boolean | undefined;
|
|
1108
1119
|
keepAssignmentIfAccepted?: boolean | undefined;
|
|
1109
1120
|
keepAssignmentIfRejected?: boolean | undefined;
|
|
1110
|
-
waitFor?: boolean | undefined;
|
|
1111
|
-
createdAtLocation?: string | null | undefined;
|
|
1112
1121
|
};
|
|
1113
1122
|
output: {
|
|
1114
1123
|
id: string & import("zod").$brand<"UUID">;
|
|
@@ -1388,6 +1397,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1388
1397
|
waitFor?: boolean | undefined;
|
|
1389
1398
|
createdAtLocation?: string | null | undefined;
|
|
1390
1399
|
type?: "APPROVE_CORRECTION" | undefined;
|
|
1400
|
+
content?: {
|
|
1401
|
+
immediateCorrection?: boolean | undefined;
|
|
1402
|
+
} | undefined;
|
|
1391
1403
|
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
1392
1404
|
eventId: string;
|
|
1393
1405
|
transactionId: string;
|
|
@@ -1439,6 +1451,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1439
1451
|
transactionId: import("zod").ZodString;
|
|
1440
1452
|
eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
|
|
1441
1453
|
keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1454
|
+
waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
1442
1455
|
actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
|
|
1443
1456
|
}, import("zod/v4/core").$strip>>;
|
|
1444
1457
|
output: import("../commons").EventDocument;
|
|
@@ -1671,6 +1684,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1671
1684
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1672
1685
|
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1673
1686
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1687
|
+
content?: {
|
|
1688
|
+
immediateCorrection?: boolean | undefined;
|
|
1689
|
+
} | undefined;
|
|
1674
1690
|
} | {
|
|
1675
1691
|
id: string & import("zod").$brand<"UUID">;
|
|
1676
1692
|
transactionId: string;
|
|
@@ -2011,6 +2027,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2011
2027
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
2012
2028
|
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
2013
2029
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
2030
|
+
content?: {
|
|
2031
|
+
immediateCorrection?: boolean | undefined;
|
|
2032
|
+
} | undefined;
|
|
2014
2033
|
} | {
|
|
2015
2034
|
id: string & import("zod").$brand<"UUID">;
|
|
2016
2035
|
transactionId: string;
|
|
@@ -2330,6 +2349,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2330
2349
|
waitFor?: boolean | undefined;
|
|
2331
2350
|
createdAtLocation?: string | null | undefined;
|
|
2332
2351
|
type?: "APPROVE_CORRECTION" | undefined;
|
|
2352
|
+
content?: {
|
|
2353
|
+
immediateCorrection?: boolean | undefined;
|
|
2354
|
+
} | undefined;
|
|
2333
2355
|
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2334
2356
|
eventId: string;
|
|
2335
2357
|
transactionId: string;
|
|
@@ -2381,6 +2403,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2381
2403
|
transactionId: import("zod").ZodString;
|
|
2382
2404
|
eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
|
|
2383
2405
|
keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
2406
|
+
waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
2384
2407
|
actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
|
|
2385
2408
|
}, import("zod/v4/core").$strip>>;
|
|
2386
2409
|
output: import("../commons").EventDocument;
|
|
@@ -2621,6 +2644,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2621
2644
|
waitFor?: boolean | undefined;
|
|
2622
2645
|
createdAtLocation?: string | null | undefined;
|
|
2623
2646
|
type?: "APPROVE_CORRECTION" | undefined;
|
|
2647
|
+
content?: {
|
|
2648
|
+
immediateCorrection?: boolean | undefined;
|
|
2649
|
+
} | undefined;
|
|
2624
2650
|
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2625
2651
|
eventId: string;
|
|
2626
2652
|
transactionId: string;
|
|
@@ -2672,6 +2698,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2672
2698
|
transactionId: import("zod").ZodString;
|
|
2673
2699
|
eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
|
|
2674
2700
|
keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
2701
|
+
waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
2675
2702
|
actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
|
|
2676
2703
|
}, import("zod/v4/core").$strip>>;
|
|
2677
2704
|
output: import("../commons").EventDocument;
|
|
@@ -2912,6 +2939,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2912
2939
|
waitFor?: boolean | undefined;
|
|
2913
2940
|
createdAtLocation?: string | null | undefined;
|
|
2914
2941
|
type?: "APPROVE_CORRECTION" | undefined;
|
|
2942
|
+
content?: {
|
|
2943
|
+
immediateCorrection?: boolean | undefined;
|
|
2944
|
+
} | undefined;
|
|
2915
2945
|
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2916
2946
|
eventId: string;
|
|
2917
2947
|
transactionId: string;
|
|
@@ -2963,6 +2993,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2963
2993
|
transactionId: import("zod").ZodString;
|
|
2964
2994
|
eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
|
|
2965
2995
|
keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
2996
|
+
waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
2966
2997
|
actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
|
|
2967
2998
|
}, import("zod/v4/core").$strip>>;
|
|
2968
2999
|
output: import("../commons").EventDocument;
|
|
@@ -3203,6 +3234,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3203
3234
|
waitFor?: boolean | undefined;
|
|
3204
3235
|
createdAtLocation?: string | null | undefined;
|
|
3205
3236
|
type?: "APPROVE_CORRECTION" | undefined;
|
|
3237
|
+
content?: {
|
|
3238
|
+
immediateCorrection?: boolean | undefined;
|
|
3239
|
+
} | undefined;
|
|
3206
3240
|
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
3207
3241
|
eventId: string;
|
|
3208
3242
|
transactionId: string;
|
|
@@ -3254,6 +3288,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3254
3288
|
transactionId: import("zod").ZodString;
|
|
3255
3289
|
eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
|
|
3256
3290
|
keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
3291
|
+
waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
3257
3292
|
actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
|
|
3258
3293
|
}, import("zod/v4/core").$strip>>;
|
|
3259
3294
|
output: import("../commons").EventDocument;
|
|
@@ -3494,6 +3529,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3494
3529
|
waitFor?: boolean | undefined;
|
|
3495
3530
|
createdAtLocation?: string | null | undefined;
|
|
3496
3531
|
type?: "APPROVE_CORRECTION" | undefined;
|
|
3532
|
+
content?: {
|
|
3533
|
+
immediateCorrection?: boolean | undefined;
|
|
3534
|
+
} | undefined;
|
|
3497
3535
|
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
3498
3536
|
eventId: string;
|
|
3499
3537
|
transactionId: string;
|
|
@@ -3545,6 +3583,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3545
3583
|
transactionId: import("zod").ZodString;
|
|
3546
3584
|
eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
|
|
3547
3585
|
keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
3586
|
+
waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
3548
3587
|
actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
|
|
3549
3588
|
}, import("zod/v4/core").$strip>>;
|
|
3550
3589
|
output: import("../commons").EventDocument;
|
|
@@ -3785,6 +3824,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3785
3824
|
waitFor?: boolean | undefined;
|
|
3786
3825
|
createdAtLocation?: string | null | undefined;
|
|
3787
3826
|
type?: "APPROVE_CORRECTION" | undefined;
|
|
3827
|
+
content?: {
|
|
3828
|
+
immediateCorrection?: boolean | undefined;
|
|
3829
|
+
} | undefined;
|
|
3788
3830
|
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
3789
3831
|
eventId: string;
|
|
3790
3832
|
transactionId: string;
|
|
@@ -3836,6 +3878,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3836
3878
|
transactionId: import("zod").ZodString;
|
|
3837
3879
|
eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
|
|
3838
3880
|
keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
3881
|
+
waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
3839
3882
|
actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
|
|
3840
3883
|
}, import("zod/v4/core").$strip>>;
|
|
3841
3884
|
output: import("../commons").EventDocument;
|
|
@@ -4070,6 +4113,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4070
4113
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
4071
4114
|
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
4072
4115
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
4116
|
+
content?: {
|
|
4117
|
+
immediateCorrection?: boolean | undefined;
|
|
4118
|
+
} | undefined;
|
|
4073
4119
|
} | {
|
|
4074
4120
|
id: string & import("zod").$brand<"UUID">;
|
|
4075
4121
|
transactionId: string;
|
|
@@ -4389,6 +4435,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4389
4435
|
waitFor?: boolean | undefined;
|
|
4390
4436
|
createdAtLocation?: string | null | undefined;
|
|
4391
4437
|
type?: "APPROVE_CORRECTION" | undefined;
|
|
4438
|
+
content?: {
|
|
4439
|
+
immediateCorrection?: boolean | undefined;
|
|
4440
|
+
} | undefined;
|
|
4392
4441
|
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4393
4442
|
eventId: string;
|
|
4394
4443
|
transactionId: string;
|
|
@@ -4440,6 +4489,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4440
4489
|
transactionId: import("zod").ZodString;
|
|
4441
4490
|
eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
|
|
4442
4491
|
keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
4492
|
+
waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
4443
4493
|
actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
|
|
4444
4494
|
}, import("zod/v4/core").$strip>>;
|
|
4445
4495
|
output: import("../commons").EventDocument;
|
|
@@ -4674,6 +4724,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4674
4724
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
4675
4725
|
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
4676
4726
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
4727
|
+
content?: {
|
|
4728
|
+
immediateCorrection?: boolean | undefined;
|
|
4729
|
+
} | undefined;
|
|
4677
4730
|
} | {
|
|
4678
4731
|
id: string & import("zod").$brand<"UUID">;
|
|
4679
4732
|
transactionId: string;
|
|
@@ -4992,6 +5045,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4992
5045
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
4993
5046
|
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
4994
5047
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
5048
|
+
content?: {
|
|
5049
|
+
immediateCorrection?: boolean | undefined;
|
|
5050
|
+
} | undefined;
|
|
4995
5051
|
} | {
|
|
4996
5052
|
id: string & import("zod").$brand<"UUID">;
|
|
4997
5053
|
transactionId: string;
|
|
@@ -5361,6 +5417,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5361
5417
|
waitFor?: boolean | undefined;
|
|
5362
5418
|
createdAtLocation?: string | null | undefined;
|
|
5363
5419
|
type?: "APPROVE_CORRECTION" | undefined;
|
|
5420
|
+
content?: {
|
|
5421
|
+
immediateCorrection?: boolean | undefined;
|
|
5422
|
+
} | undefined;
|
|
5364
5423
|
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
5365
5424
|
eventId: string;
|
|
5366
5425
|
transactionId: string;
|
|
@@ -5412,6 +5471,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5412
5471
|
transactionId: import("zod").ZodString;
|
|
5413
5472
|
eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
|
|
5414
5473
|
keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
5474
|
+
waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
5415
5475
|
actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
|
|
5416
5476
|
}, import("zod/v4/core").$strip>>;
|
|
5417
5477
|
output: import("../commons").EventDocument;
|
|
@@ -5652,6 +5712,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5652
5712
|
waitFor?: boolean | undefined;
|
|
5653
5713
|
createdAtLocation?: string | null | undefined;
|
|
5654
5714
|
type?: "APPROVE_CORRECTION" | undefined;
|
|
5715
|
+
content?: {
|
|
5716
|
+
immediateCorrection?: boolean | undefined;
|
|
5717
|
+
} | undefined;
|
|
5655
5718
|
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
5656
5719
|
eventId: string;
|
|
5657
5720
|
transactionId: string;
|
|
@@ -5703,6 +5766,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5703
5766
|
transactionId: import("zod").ZodString;
|
|
5704
5767
|
eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
|
|
5705
5768
|
keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
5769
|
+
waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
5706
5770
|
actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
|
|
5707
5771
|
}, import("zod/v4/core").$strip>>;
|
|
5708
5772
|
output: import("../commons").EventDocument;
|
|
@@ -5943,6 +6007,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5943
6007
|
waitFor?: boolean | undefined;
|
|
5944
6008
|
createdAtLocation?: string | null | undefined;
|
|
5945
6009
|
type?: "APPROVE_CORRECTION" | undefined;
|
|
6010
|
+
content?: {
|
|
6011
|
+
immediateCorrection?: boolean | undefined;
|
|
6012
|
+
} | undefined;
|
|
5946
6013
|
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
5947
6014
|
eventId: string;
|
|
5948
6015
|
transactionId: string;
|
|
@@ -5994,6 +6061,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5994
6061
|
transactionId: import("zod").ZodString;
|
|
5995
6062
|
eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
|
|
5996
6063
|
keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
6064
|
+
waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
5997
6065
|
actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
|
|
5998
6066
|
}, import("zod/v4/core").$strip>>;
|
|
5999
6067
|
output: import("../commons").EventDocument;
|
|
@@ -6231,6 +6299,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6231
6299
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
6232
6300
|
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
6233
6301
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
6302
|
+
content?: {
|
|
6303
|
+
immediateCorrection?: boolean | undefined;
|
|
6304
|
+
} | undefined;
|
|
6234
6305
|
} | {
|
|
6235
6306
|
id: string & import("zod").$brand<"UUID">;
|
|
6236
6307
|
transactionId: string;
|
|
@@ -6548,6 +6619,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6548
6619
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
6549
6620
|
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
6550
6621
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
6622
|
+
content?: {
|
|
6623
|
+
immediateCorrection?: boolean | undefined;
|
|
6624
|
+
} | undefined;
|
|
6551
6625
|
} | {
|
|
6552
6626
|
id: string & import("zod").$brand<"UUID">;
|
|
6553
6627
|
transactionId: string;
|
|
@@ -6682,7 +6756,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6682
6756
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
6683
6757
|
createdByUserType?: "system" | "user" | null | undefined;
|
|
6684
6758
|
createdByRole?: string | undefined;
|
|
6685
|
-
createdBySignature?: string | null | undefined;
|
|
6686
6759
|
} | null | undefined;
|
|
6687
6760
|
REGISTERED?: {
|
|
6688
6761
|
createdAt: string;
|
|
@@ -6692,7 +6765,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6692
6765
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
6693
6766
|
createdByUserType?: "system" | "user" | null | undefined;
|
|
6694
6767
|
createdByRole?: string | undefined;
|
|
6695
|
-
createdBySignature?: string | null | undefined;
|
|
6696
6768
|
} | null | undefined;
|
|
6697
6769
|
};
|
|
6698
6770
|
createdAt: string;
|
|
@@ -6710,7 +6782,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6710
6782
|
createdByUserType?: "system" | "user" | null | undefined;
|
|
6711
6783
|
updatedByUserRole?: string | null | undefined;
|
|
6712
6784
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
6713
|
-
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
6714
6785
|
updatedAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
6715
6786
|
assignedTo?: string | null | undefined;
|
|
6716
6787
|
updatedBy?: string | null | undefined;
|
|
@@ -6911,6 +6982,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6911
6982
|
createdAtLocation?: string | null | undefined;
|
|
6912
6983
|
annotation?: Record<string, unknown> | null | undefined;
|
|
6913
6984
|
originalActionId?: string | null | undefined;
|
|
6985
|
+
content?: {
|
|
6986
|
+
immediateCorrection?: boolean | undefined;
|
|
6987
|
+
} | undefined;
|
|
6914
6988
|
} | {
|
|
6915
6989
|
id: string;
|
|
6916
6990
|
transactionId: string;
|
|
@@ -7169,33 +7243,23 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7169
7243
|
input: string[];
|
|
7170
7244
|
output: ({
|
|
7171
7245
|
id: string & import("zod").$brand<"UUID">;
|
|
7246
|
+
type: "user";
|
|
7172
7247
|
name: {
|
|
7173
7248
|
firstname: string;
|
|
7174
7249
|
surname: string;
|
|
7175
7250
|
};
|
|
7176
7251
|
role: string;
|
|
7177
7252
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
7178
|
-
|
|
7179
|
-
status: "active" | "pending" | "deactivated";
|
|
7180
|
-
avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
7253
|
+
fullHonorificName?: string | undefined;
|
|
7181
7254
|
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
7255
|
+
avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
7182
7256
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
7183
|
-
device?: string | undefined;
|
|
7184
|
-
fullHonorificName?: string | undefined;
|
|
7185
|
-
mobile?: string | undefined;
|
|
7186
|
-
email?: string | undefined;
|
|
7187
|
-
data?: Record<string, import("../commons").FieldValue> | undefined;
|
|
7188
7257
|
} | {
|
|
7189
7258
|
id: string & import("zod").$brand<"UUID">;
|
|
7190
|
-
name: string;
|
|
7191
7259
|
type: "system";
|
|
7260
|
+
name: string;
|
|
7192
7261
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
7193
7262
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
7194
|
-
signature?: undefined;
|
|
7195
|
-
avatar?: undefined;
|
|
7196
|
-
fullHonorificName?: string | undefined;
|
|
7197
|
-
legacyId?: string | undefined;
|
|
7198
|
-
status?: undefined;
|
|
7199
7263
|
})[];
|
|
7200
7264
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
7201
7265
|
}>;
|
|
@@ -7213,33 +7277,25 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7213
7277
|
};
|
|
7214
7278
|
output: ({
|
|
7215
7279
|
id: string & import("zod").$brand<"UUID">;
|
|
7280
|
+
type: "user";
|
|
7216
7281
|
name: {
|
|
7217
7282
|
firstname: string;
|
|
7218
7283
|
surname: string;
|
|
7219
7284
|
};
|
|
7220
7285
|
role: string;
|
|
7221
7286
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
7222
|
-
type: "user";
|
|
7223
7287
|
status: "active" | "pending" | "deactivated";
|
|
7224
|
-
|
|
7288
|
+
fullHonorificName?: string | undefined;
|
|
7225
7289
|
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
7290
|
+
avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
7226
7291
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
7227
|
-
device?: string | undefined;
|
|
7228
|
-
fullHonorificName?: string | undefined;
|
|
7229
|
-
mobile?: string | undefined;
|
|
7230
|
-
email?: string | undefined;
|
|
7231
|
-
data?: Record<string, import("../commons").FieldValue> | undefined;
|
|
7232
7292
|
} | {
|
|
7233
7293
|
id: string & import("zod").$brand<"UUID">;
|
|
7234
|
-
name: string;
|
|
7235
7294
|
type: "system";
|
|
7295
|
+
name: string;
|
|
7236
7296
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
7237
7297
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
7238
|
-
|
|
7239
|
-
avatar?: undefined;
|
|
7240
|
-
fullHonorificName?: string | undefined;
|
|
7241
|
-
legacyId?: string | undefined;
|
|
7242
|
-
status?: undefined;
|
|
7298
|
+
status?: "active" | "pending" | "deactivated" | undefined;
|
|
7243
7299
|
})[];
|
|
7244
7300
|
meta: object;
|
|
7245
7301
|
}>;
|
|
@@ -8102,7 +8158,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
8102
8158
|
$event: "id" | "createdBy" | "createdAt" | "status" | "createdByUserType" | "createdAtLocation" | "updatedAt" | "assignedTo" | "trackingId" | "type" | "flags" | "dateOfEvent" | "placeOfEvent" | "title" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "outbox";
|
|
8103
8159
|
};
|
|
8104
8160
|
}[];
|
|
8105
|
-
icon: "Archived" | "Assigned" | "Briefcase" | "Certified" | "Close" | "Collapse" | "Draft" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "Registered" | "RequiresUpdates" | "Sent" | "Validated" | "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" | "
|
|
8161
|
+
icon: "File" | "Archived" | "Assigned" | "Briefcase" | "Certified" | "Close" | "Collapse" | "Draft" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "Registered" | "RequiresUpdates" | "Sent" | "Validated" | "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" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "IdentificationCard" | "List" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "PenNib" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Stamp" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "ChatText" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
|
|
8106
8162
|
action?: {
|
|
8107
8163
|
type: "DELETE" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ";
|
|
8108
8164
|
} | undefined;
|
|
@@ -67,6 +67,12 @@ export declare function not(condition: AjvJSONSchema): JSONSchema;
|
|
|
67
67
|
* @returns {JSONSchema} An schema object that always evaluates to false.
|
|
68
68
|
*/
|
|
69
69
|
export declare function never(): JSONSchema;
|
|
70
|
+
/**
|
|
71
|
+
* Returns an JSON Schema object, which is treated as always valid.
|
|
72
|
+
*
|
|
73
|
+
* @returns {JSONSchema} An schema object that always evaluates to true.
|
|
74
|
+
*/
|
|
75
|
+
export declare function always(): JSONSchema;
|
|
70
76
|
/**
|
|
71
77
|
* Generate conditional rules for current date
|
|
72
78
|
*/
|
|
@@ -517,6 +517,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
517
517
|
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
518
518
|
type: z.ZodLiteral<"APPROVE_CORRECTION">;
|
|
519
519
|
requestId: z.ZodString;
|
|
520
|
+
content: z.ZodOptional<z.ZodObject<{
|
|
521
|
+
immediateCorrection: z.ZodOptional<z.ZodBoolean>;
|
|
522
|
+
}, z.core.$strip>>;
|
|
520
523
|
}, z.core.$strip>, z.ZodObject<{
|
|
521
524
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
522
525
|
transactionId: z.ZodString;
|
|
@@ -955,6 +958,9 @@ export declare const Action: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.Zod
|
|
|
955
958
|
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
956
959
|
type: z.ZodLiteral<"APPROVE_CORRECTION">;
|
|
957
960
|
requestId: z.ZodString;
|
|
961
|
+
content: z.ZodOptional<z.ZodObject<{
|
|
962
|
+
immediateCorrection: z.ZodOptional<z.ZodBoolean>;
|
|
963
|
+
}, z.core.$strip>>;
|
|
958
964
|
}, z.core.$strip>, z.ZodObject<{
|
|
959
965
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
960
966
|
transactionId: z.ZodString;
|