@opencrvs/toolkit 1.8.1-rc.e23b224 → 1.8.1-rc.fa83f7b
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 +49 -24
- package/dist/commons/events/ActionDocument.d.ts +59 -23
- package/dist/commons/events/ActionInput.d.ts +50 -14
- package/dist/commons/events/AdvancedSearchConfig.d.ts +65 -47
- package/dist/commons/events/CountryConfigQueryInput.d.ts +88 -88
- package/dist/commons/events/EventConfig.d.ts +31 -31
- package/dist/commons/events/EventDocument.d.ts +39 -13
- package/dist/commons/events/EventIndex.d.ts +174 -52
- package/dist/commons/events/EventMetadata.d.ts +9 -9
- package/dist/commons/events/FieldConfig.d.ts +1 -8
- package/dist/commons/events/WorkqueueConfig.d.ts +288 -164
- package/dist/commons/events/defineConfig.d.ts +3 -3
- package/dist/commons/events/event.d.ts +13 -5
- package/dist/commons/events/field.d.ts +14 -0
- package/dist/commons/events/test.utils.d.ts +5 -1
- package/dist/commons/events/utils.d.ts +4 -4
- package/dist/conditionals/index.js +2 -2
- package/dist/events/index.js +88 -70
- package/package.json +1 -1
@@ -1161,6 +1161,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
1161
1161
|
start: string;
|
1162
1162
|
end: string;
|
1163
1163
|
} | null | undefined>;
|
1164
|
+
content?: {
|
1165
|
+
templateId?: string | undefined;
|
1166
|
+
} | null | undefined;
|
1164
1167
|
createdBySignature?: string | null | undefined;
|
1165
1168
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
1166
1169
|
annotation?: Record<string, string | number | boolean | {
|
@@ -1209,9 +1212,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
1209
1212
|
end: string;
|
1210
1213
|
} | null | undefined> | null | undefined;
|
1211
1214
|
originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
1212
|
-
actionDetails?: {
|
1213
|
-
templateId?: string | undefined;
|
1214
|
-
} | null | undefined;
|
1215
1215
|
} | {
|
1216
1216
|
type: "REQUEST_CORRECTION";
|
1217
1217
|
id: string & import("zod").BRAND<"UUID">;
|
@@ -1421,6 +1421,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
1421
1421
|
type: "REJECT_CORRECTION";
|
1422
1422
|
id: string & import("zod").BRAND<"UUID">;
|
1423
1423
|
status: "Rejected" | "Requested" | "Accepted";
|
1424
|
+
reason: {
|
1425
|
+
message: string;
|
1426
|
+
isDuplicate?: boolean | undefined;
|
1427
|
+
};
|
1424
1428
|
transactionId: string;
|
1425
1429
|
createdByUserType: "system" | "user";
|
1426
1430
|
createdAt: string;
|
@@ -2730,6 +2734,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
2730
2734
|
start: string;
|
2731
2735
|
end: string;
|
2732
2736
|
} | null | undefined>;
|
2737
|
+
content?: {
|
2738
|
+
templateId?: string | undefined;
|
2739
|
+
} | null | undefined;
|
2733
2740
|
createdBySignature?: string | null | undefined;
|
2734
2741
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
2735
2742
|
annotation?: Record<string, string | number | boolean | {
|
@@ -2778,9 +2785,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
2778
2785
|
end: string;
|
2779
2786
|
} | null | undefined> | null | undefined;
|
2780
2787
|
originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
2781
|
-
actionDetails?: {
|
2782
|
-
templateId?: string | undefined;
|
2783
|
-
} | null | undefined;
|
2784
2788
|
} | {
|
2785
2789
|
type: "REQUEST_CORRECTION";
|
2786
2790
|
id: string & import("zod").BRAND<"UUID">;
|
@@ -2990,6 +2994,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
2990
2994
|
type: "REJECT_CORRECTION";
|
2991
2995
|
id: string & import("zod").BRAND<"UUID">;
|
2992
2996
|
status: "Rejected" | "Requested" | "Accepted";
|
2997
|
+
reason: {
|
2998
|
+
message: string;
|
2999
|
+
isDuplicate?: boolean | undefined;
|
3000
|
+
};
|
2993
3001
|
transactionId: string;
|
2994
3002
|
createdByUserType: "system" | "user";
|
2995
3003
|
createdAt: string;
|
@@ -5091,6 +5099,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
5091
5099
|
start: string;
|
5092
5100
|
end: string;
|
5093
5101
|
} | null | undefined>;
|
5102
|
+
content?: {
|
5103
|
+
templateId?: string | undefined;
|
5104
|
+
} | null | undefined;
|
5094
5105
|
createdBySignature?: string | null | undefined;
|
5095
5106
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
5096
5107
|
annotation?: Record<string, string | number | boolean | {
|
@@ -5139,9 +5150,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
5139
5150
|
end: string;
|
5140
5151
|
} | null | undefined> | null | undefined;
|
5141
5152
|
originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
5142
|
-
actionDetails?: {
|
5143
|
-
templateId?: string | undefined;
|
5144
|
-
} | null | undefined;
|
5145
5153
|
} | {
|
5146
5154
|
type: "REQUEST_CORRECTION";
|
5147
5155
|
id: string & import("zod").BRAND<"UUID">;
|
@@ -5351,6 +5359,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
5351
5359
|
type: "REJECT_CORRECTION";
|
5352
5360
|
id: string & import("zod").BRAND<"UUID">;
|
5353
5361
|
status: "Rejected" | "Requested" | "Accepted";
|
5362
|
+
reason: {
|
5363
|
+
message: string;
|
5364
|
+
isDuplicate?: boolean | undefined;
|
5365
|
+
};
|
5354
5366
|
transactionId: string;
|
5355
5367
|
createdByUserType: "system" | "user";
|
5356
5368
|
createdAt: string;
|
@@ -6757,6 +6769,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
6757
6769
|
start: string;
|
6758
6770
|
end: string;
|
6759
6771
|
} | null | undefined>;
|
6772
|
+
content?: {
|
6773
|
+
templateId?: string | undefined;
|
6774
|
+
} | null | undefined;
|
6760
6775
|
createdBySignature?: string | null | undefined;
|
6761
6776
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
6762
6777
|
annotation?: Record<string, string | number | boolean | {
|
@@ -6805,9 +6820,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
6805
6820
|
end: string;
|
6806
6821
|
} | null | undefined> | null | undefined;
|
6807
6822
|
originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
6808
|
-
actionDetails?: {
|
6809
|
-
templateId?: string | undefined;
|
6810
|
-
} | null | undefined;
|
6811
6823
|
} | {
|
6812
6824
|
type: "REQUEST_CORRECTION";
|
6813
6825
|
id: string & import("zod").BRAND<"UUID">;
|
@@ -7017,6 +7029,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
7017
7029
|
type: "REJECT_CORRECTION";
|
7018
7030
|
id: string & import("zod").BRAND<"UUID">;
|
7019
7031
|
status: "Rejected" | "Requested" | "Accepted";
|
7032
|
+
reason: {
|
7033
|
+
message: string;
|
7034
|
+
isDuplicate?: boolean | undefined;
|
7035
|
+
};
|
7020
7036
|
transactionId: string;
|
7021
7037
|
createdByUserType: "system" | "user";
|
7022
7038
|
createdAt: string;
|
@@ -7393,7 +7409,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
7393
7409
|
output: {
|
7394
7410
|
type: string;
|
7395
7411
|
id: string & import("zod").BRAND<"UUID">;
|
7396
|
-
status: "ARCHIVED" | "
|
7412
|
+
status: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
7397
7413
|
createdAt: string;
|
7398
7414
|
createdBy: string;
|
7399
7415
|
declaration: Record<string, string | number | boolean | {
|
@@ -7488,7 +7504,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
7488
7504
|
output: {
|
7489
7505
|
type: string;
|
7490
7506
|
id: string & import("zod").BRAND<"UUID">;
|
7491
|
-
status: "ARCHIVED" | "
|
7507
|
+
status: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
7492
7508
|
createdAt: string;
|
7493
7509
|
createdBy: string;
|
7494
7510
|
declaration: Record<string, string | number | boolean | {
|
@@ -8665,6 +8681,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
8665
8681
|
start: string;
|
8666
8682
|
end: string;
|
8667
8683
|
} | null | undefined>;
|
8684
|
+
content?: {
|
8685
|
+
templateId?: string | undefined;
|
8686
|
+
} | null | undefined;
|
8668
8687
|
createdBySignature?: string | null | undefined;
|
8669
8688
|
createdAtLocation?: string | null | undefined;
|
8670
8689
|
annotation?: Record<string, string | number | boolean | {
|
@@ -8713,9 +8732,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
8713
8732
|
end: string;
|
8714
8733
|
} | null | undefined> | null | undefined;
|
8715
8734
|
originalActionId?: string | null | undefined;
|
8716
|
-
actionDetails?: {
|
8717
|
-
templateId?: string | undefined;
|
8718
|
-
} | null | undefined;
|
8719
8735
|
} | {
|
8720
8736
|
type: "REQUEST_CORRECTION";
|
8721
8737
|
id: string;
|
@@ -8925,6 +8941,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
8925
8941
|
type: "REJECT_CORRECTION";
|
8926
8942
|
id: string;
|
8927
8943
|
status: "Rejected" | "Requested" | "Accepted";
|
8944
|
+
reason: {
|
8945
|
+
message: string;
|
8946
|
+
isDuplicate?: boolean | undefined;
|
8947
|
+
};
|
8928
8948
|
transactionId: string;
|
8929
8949
|
createdByUserType: "system" | "user";
|
8930
8950
|
createdAt: string;
|
@@ -10230,6 +10250,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
10230
10250
|
start: string;
|
10231
10251
|
end: string;
|
10232
10252
|
} | null | undefined>;
|
10253
|
+
content?: {
|
10254
|
+
templateId?: string | undefined;
|
10255
|
+
} | null | undefined;
|
10233
10256
|
createdBySignature?: string | null | undefined;
|
10234
10257
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
10235
10258
|
annotation?: Record<string, string | number | boolean | {
|
@@ -10278,9 +10301,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
10278
10301
|
end: string;
|
10279
10302
|
} | null | undefined> | null | undefined;
|
10280
10303
|
originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
10281
|
-
actionDetails?: {
|
10282
|
-
templateId?: string | undefined;
|
10283
|
-
} | null | undefined;
|
10284
10304
|
} | {
|
10285
10305
|
type: "REQUEST_CORRECTION";
|
10286
10306
|
id: string & import("zod").BRAND<"UUID">;
|
@@ -10490,6 +10510,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
10490
10510
|
type: "REJECT_CORRECTION";
|
10491
10511
|
id: string & import("zod").BRAND<"UUID">;
|
10492
10512
|
status: "Rejected" | "Requested" | "Accepted";
|
10513
|
+
reason: {
|
10514
|
+
message: string;
|
10515
|
+
isDuplicate?: boolean | undefined;
|
10516
|
+
};
|
10493
10517
|
transactionId: string;
|
10494
10518
|
createdByUserType: "system" | "user";
|
10495
10519
|
createdAt: string;
|
@@ -10854,10 +10878,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
10854
10878
|
clauses: {
|
10855
10879
|
status?: {
|
10856
10880
|
type: "exact";
|
10857
|
-
term: "ARCHIVED" | "
|
10881
|
+
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
10858
10882
|
} | {
|
10859
10883
|
type: "anyOf";
|
10860
|
-
terms: ("ARCHIVED" | "
|
10884
|
+
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
10861
10885
|
} | undefined;
|
10862
10886
|
data?: any;
|
10863
10887
|
createdByUserType?: {
|
@@ -10963,10 +10987,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
10963
10987
|
clauses: {
|
10964
10988
|
status?: {
|
10965
10989
|
type: "exact";
|
10966
|
-
term: "ARCHIVED" | "
|
10990
|
+
term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
10967
10991
|
} | {
|
10968
10992
|
type: "anyOf";
|
10969
|
-
terms: ("ARCHIVED" | "
|
10993
|
+
terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
10970
10994
|
} | undefined;
|
10971
10995
|
data?: any;
|
10972
10996
|
createdByUserType?: {
|
@@ -11076,6 +11100,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
11076
11100
|
label: import("../commons").TranslationConfig;
|
11077
11101
|
}[];
|
11078
11102
|
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" | "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";
|
11103
|
+
emptyMessage?: import("../commons").TranslationConfig | undefined;
|
11079
11104
|
}[];
|
11080
11105
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
11081
11106
|
}>;
|
@@ -1770,14 +1770,14 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
|
|
1770
1770
|
} | null | undefined> | null | undefined;
|
1771
1771
|
originalActionId?: string | null | undefined;
|
1772
1772
|
}>;
|
1773
|
-
export declare const
|
1773
|
+
export declare const PrintContent: z.ZodObject<{
|
1774
1774
|
templateId: z.ZodOptional<z.ZodString>;
|
1775
1775
|
}, "strip", z.ZodTypeAny, {
|
1776
1776
|
templateId?: string | undefined;
|
1777
1777
|
}, {
|
1778
1778
|
templateId?: string | undefined;
|
1779
1779
|
}>;
|
1780
|
-
export type
|
1780
|
+
export type PrintContent = z.infer<typeof PrintContent>;
|
1781
1781
|
declare const PrintCertificateAction: z.ZodObject<z.objectUtil.extendShape<{
|
1782
1782
|
id: z.ZodBranded<z.ZodString, "UUID">;
|
1783
1783
|
transactionId: z.ZodString;
|
@@ -2061,7 +2061,7 @@ declare const PrintCertificateAction: z.ZodObject<z.objectUtil.extendShape<{
|
|
2061
2061
|
originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
|
2062
2062
|
}, {
|
2063
2063
|
type: z.ZodLiteral<"PRINT_CERTIFICATE">;
|
2064
|
-
|
2064
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
2065
2065
|
templateId: z.ZodOptional<z.ZodString>;
|
2066
2066
|
}, "strip", z.ZodTypeAny, {
|
2067
2067
|
templateId?: string | undefined;
|
@@ -2122,6 +2122,9 @@ declare const PrintCertificateAction: z.ZodObject<z.objectUtil.extendShape<{
|
|
2122
2122
|
start: string;
|
2123
2123
|
end: string;
|
2124
2124
|
} | null | undefined>;
|
2125
|
+
content?: {
|
2126
|
+
templateId?: string | undefined;
|
2127
|
+
} | null | undefined;
|
2125
2128
|
createdBySignature?: string | null | undefined;
|
2126
2129
|
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
2127
2130
|
annotation?: Record<string, string | number | boolean | {
|
@@ -2170,9 +2173,6 @@ declare const PrintCertificateAction: z.ZodObject<z.objectUtil.extendShape<{
|
|
2170
2173
|
end: string;
|
2171
2174
|
} | null | undefined> | null | undefined;
|
2172
2175
|
originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
|
2173
|
-
actionDetails?: {
|
2174
|
-
templateId?: string | undefined;
|
2175
|
-
} | null | undefined;
|
2176
2176
|
}, {
|
2177
2177
|
type: "PRINT_CERTIFICATE";
|
2178
2178
|
id: string;
|
@@ -2227,6 +2227,9 @@ declare const PrintCertificateAction: z.ZodObject<z.objectUtil.extendShape<{
|
|
2227
2227
|
start: string;
|
2228
2228
|
end: string;
|
2229
2229
|
} | null | undefined>;
|
2230
|
+
content?: {
|
2231
|
+
templateId?: string | undefined;
|
2232
|
+
} | null | undefined;
|
2230
2233
|
createdBySignature?: string | null | undefined;
|
2231
2234
|
createdAtLocation?: string | null | undefined;
|
2232
2235
|
annotation?: Record<string, string | number | boolean | {
|
@@ -2275,9 +2278,6 @@ declare const PrintCertificateAction: z.ZodObject<z.objectUtil.extendShape<{
|
|
2275
2278
|
end: string;
|
2276
2279
|
} | null | undefined> | null | undefined;
|
2277
2280
|
originalActionId?: string | null | undefined;
|
2278
|
-
actionDetails?: {
|
2279
|
-
templateId?: string | undefined;
|
2280
|
-
} | null | undefined;
|
2281
2281
|
}>;
|
2282
2282
|
export type PrintCertificateAction = z.infer<typeof PrintCertificateAction>;
|
2283
2283
|
declare const RequestedCorrectionAction: z.ZodObject<z.objectUtil.extendShape<{
|
@@ -8455,10 +8455,24 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
8455
8455
|
}, {
|
8456
8456
|
type: z.ZodLiteral<"REJECT_CORRECTION">;
|
8457
8457
|
requestId: z.ZodString;
|
8458
|
+
reason: z.ZodObject<{
|
8459
|
+
message: z.ZodString;
|
8460
|
+
isDuplicate: z.ZodOptional<z.ZodBoolean>;
|
8461
|
+
}, "strip", z.ZodTypeAny, {
|
8462
|
+
message: string;
|
8463
|
+
isDuplicate?: boolean | undefined;
|
8464
|
+
}, {
|
8465
|
+
message: string;
|
8466
|
+
isDuplicate?: boolean | undefined;
|
8467
|
+
}>;
|
8458
8468
|
}>, "strip", z.ZodTypeAny, {
|
8459
8469
|
type: "REJECT_CORRECTION";
|
8460
8470
|
id: string & z.BRAND<"UUID">;
|
8461
8471
|
status: "Rejected" | "Requested" | "Accepted";
|
8472
|
+
reason: {
|
8473
|
+
message: string;
|
8474
|
+
isDuplicate?: boolean | undefined;
|
8475
|
+
};
|
8462
8476
|
transactionId: string;
|
8463
8477
|
createdByUserType: "system" | "user";
|
8464
8478
|
createdAt: string;
|
@@ -8562,6 +8576,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
8562
8576
|
type: "REJECT_CORRECTION";
|
8563
8577
|
id: string;
|
8564
8578
|
status: "Rejected" | "Requested" | "Accepted";
|
8579
|
+
reason: {
|
8580
|
+
message: string;
|
8581
|
+
isDuplicate?: boolean | undefined;
|
8582
|
+
};
|
8565
8583
|
transactionId: string;
|
8566
8584
|
createdByUserType: "system" | "user";
|
8567
8585
|
createdAt: string;
|
@@ -9431,7 +9449,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
9431
9449
|
originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
|
9432
9450
|
}, {
|
9433
9451
|
type: z.ZodLiteral<"PRINT_CERTIFICATE">;
|
9434
|
-
|
9452
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
9435
9453
|
templateId: z.ZodOptional<z.ZodString>;
|
9436
9454
|
}, "strip", z.ZodTypeAny, {
|
9437
9455
|
templateId?: string | undefined;
|
@@ -9492,6 +9510,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
9492
9510
|
start: string;
|
9493
9511
|
end: string;
|
9494
9512
|
} | null | undefined>;
|
9513
|
+
content?: {
|
9514
|
+
templateId?: string | undefined;
|
9515
|
+
} | null | undefined;
|
9495
9516
|
createdBySignature?: string | null | undefined;
|
9496
9517
|
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
9497
9518
|
annotation?: Record<string, string | number | boolean | {
|
@@ -9540,9 +9561,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
9540
9561
|
end: string;
|
9541
9562
|
} | null | undefined> | null | undefined;
|
9542
9563
|
originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
|
9543
|
-
actionDetails?: {
|
9544
|
-
templateId?: string | undefined;
|
9545
|
-
} | null | undefined;
|
9546
9564
|
}, {
|
9547
9565
|
type: "PRINT_CERTIFICATE";
|
9548
9566
|
id: string;
|
@@ -9597,6 +9615,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
9597
9615
|
start: string;
|
9598
9616
|
end: string;
|
9599
9617
|
} | null | undefined>;
|
9618
|
+
content?: {
|
9619
|
+
templateId?: string | undefined;
|
9620
|
+
} | null | undefined;
|
9600
9621
|
createdBySignature?: string | null | undefined;
|
9601
9622
|
createdAtLocation?: string | null | undefined;
|
9602
9623
|
annotation?: Record<string, string | number | boolean | {
|
@@ -9645,9 +9666,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
9645
9666
|
end: string;
|
9646
9667
|
} | null | undefined> | null | undefined;
|
9647
9668
|
originalActionId?: string | null | undefined;
|
9648
|
-
actionDetails?: {
|
9649
|
-
templateId?: string | undefined;
|
9650
|
-
} | null | undefined;
|
9651
9669
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
9652
9670
|
id: z.ZodBranded<z.ZodString, "UUID">;
|
9653
9671
|
transactionId: z.ZodString;
|
@@ -16133,10 +16151,24 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
16133
16151
|
}, {
|
16134
16152
|
type: z.ZodLiteral<"REJECT_CORRECTION">;
|
16135
16153
|
requestId: z.ZodString;
|
16154
|
+
reason: z.ZodObject<{
|
16155
|
+
message: z.ZodString;
|
16156
|
+
isDuplicate: z.ZodOptional<z.ZodBoolean>;
|
16157
|
+
}, "strip", z.ZodTypeAny, {
|
16158
|
+
message: string;
|
16159
|
+
isDuplicate?: boolean | undefined;
|
16160
|
+
}, {
|
16161
|
+
message: string;
|
16162
|
+
isDuplicate?: boolean | undefined;
|
16163
|
+
}>;
|
16136
16164
|
}>, "strip", z.ZodTypeAny, {
|
16137
16165
|
type: "REJECT_CORRECTION";
|
16138
16166
|
id: string & z.BRAND<"UUID">;
|
16139
16167
|
status: "Rejected" | "Requested" | "Accepted";
|
16168
|
+
reason: {
|
16169
|
+
message: string;
|
16170
|
+
isDuplicate?: boolean | undefined;
|
16171
|
+
};
|
16140
16172
|
transactionId: string;
|
16141
16173
|
createdByUserType: "system" | "user";
|
16142
16174
|
createdAt: string;
|
@@ -16240,6 +16272,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
16240
16272
|
type: "REJECT_CORRECTION";
|
16241
16273
|
id: string;
|
16242
16274
|
status: "Rejected" | "Requested" | "Accepted";
|
16275
|
+
reason: {
|
16276
|
+
message: string;
|
16277
|
+
isDuplicate?: boolean | undefined;
|
16278
|
+
};
|
16243
16279
|
transactionId: string;
|
16244
16280
|
createdByUserType: "system" | "user";
|
16245
16281
|
createdAt: string;
|
@@ -17109,7 +17145,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
17109
17145
|
originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
|
17110
17146
|
}, {
|
17111
17147
|
type: z.ZodLiteral<"PRINT_CERTIFICATE">;
|
17112
|
-
|
17148
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
17113
17149
|
templateId: z.ZodOptional<z.ZodString>;
|
17114
17150
|
}, "strip", z.ZodTypeAny, {
|
17115
17151
|
templateId?: string | undefined;
|
@@ -17170,6 +17206,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
17170
17206
|
start: string;
|
17171
17207
|
end: string;
|
17172
17208
|
} | null | undefined>;
|
17209
|
+
content?: {
|
17210
|
+
templateId?: string | undefined;
|
17211
|
+
} | null | undefined;
|
17173
17212
|
createdBySignature?: string | null | undefined;
|
17174
17213
|
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
17175
17214
|
annotation?: Record<string, string | number | boolean | {
|
@@ -17218,9 +17257,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
17218
17257
|
end: string;
|
17219
17258
|
} | null | undefined> | null | undefined;
|
17220
17259
|
originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
|
17221
|
-
actionDetails?: {
|
17222
|
-
templateId?: string | undefined;
|
17223
|
-
} | null | undefined;
|
17224
17260
|
}, {
|
17225
17261
|
type: "PRINT_CERTIFICATE";
|
17226
17262
|
id: string;
|
@@ -17275,6 +17311,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
17275
17311
|
start: string;
|
17276
17312
|
end: string;
|
17277
17313
|
} | null | undefined>;
|
17314
|
+
content?: {
|
17315
|
+
templateId?: string | undefined;
|
17316
|
+
} | null | undefined;
|
17278
17317
|
createdBySignature?: string | null | undefined;
|
17279
17318
|
createdAtLocation?: string | null | undefined;
|
17280
17319
|
annotation?: Record<string, string | number | boolean | {
|
@@ -17323,9 +17362,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
17323
17362
|
end: string;
|
17324
17363
|
} | null | undefined> | null | undefined;
|
17325
17364
|
originalActionId?: string | null | undefined;
|
17326
|
-
actionDetails?: {
|
17327
|
-
templateId?: string | undefined;
|
17328
|
-
} | null | undefined;
|
17329
17365
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
17330
17366
|
id: z.ZodBranded<z.ZodString, "UUID">;
|
17331
17367
|
transactionId: z.ZodString;
|
@@ -2631,7 +2631,7 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
|
|
2631
2631
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
2632
2632
|
}, {
|
2633
2633
|
type: z.ZodDefault<z.ZodLiteral<"PRINT_CERTIFICATE">>;
|
2634
|
-
|
2634
|
+
content: z.ZodOptional<z.ZodObject<{
|
2635
2635
|
templateId: z.ZodOptional<z.ZodString>;
|
2636
2636
|
}, "strip", z.ZodTypeAny, {
|
2637
2637
|
templateId?: string | undefined;
|
@@ -2687,6 +2687,9 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
|
|
2687
2687
|
end: string;
|
2688
2688
|
} | null | undefined>;
|
2689
2689
|
eventId: string & z.BRAND<"UUID">;
|
2690
|
+
content?: {
|
2691
|
+
templateId?: string | undefined;
|
2692
|
+
} | undefined;
|
2690
2693
|
annotation?: Record<string, string | number | boolean | {
|
2691
2694
|
type: string;
|
2692
2695
|
path: string;
|
@@ -2733,14 +2736,14 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
|
|
2733
2736
|
end: string;
|
2734
2737
|
} | null | undefined> | undefined;
|
2735
2738
|
originalActionId?: (string & z.BRAND<"UUID">) | undefined;
|
2736
|
-
actionDetails?: {
|
2737
|
-
templateId?: string | undefined;
|
2738
|
-
} | undefined;
|
2739
2739
|
keepAssignment?: boolean | undefined;
|
2740
2740
|
}, {
|
2741
2741
|
transactionId: string;
|
2742
2742
|
eventId: string;
|
2743
2743
|
type?: "PRINT_CERTIFICATE" | undefined;
|
2744
|
+
content?: {
|
2745
|
+
templateId?: string | undefined;
|
2746
|
+
} | undefined;
|
2744
2747
|
declaration?: Record<string, string | number | boolean | {
|
2745
2748
|
type: string;
|
2746
2749
|
path: string;
|
@@ -2832,9 +2835,6 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
|
|
2832
2835
|
end: string;
|
2833
2836
|
} | null | undefined> | undefined;
|
2834
2837
|
originalActionId?: string | undefined;
|
2835
|
-
actionDetails?: {
|
2836
|
-
templateId?: string | undefined;
|
2837
|
-
} | undefined;
|
2838
2838
|
keepAssignment?: boolean | undefined;
|
2839
2839
|
}>;
|
2840
2840
|
export type DeclareActionInput = z.infer<typeof DeclareActionInput>;
|
@@ -5984,8 +5984,22 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
|
|
5984
5984
|
}, {
|
5985
5985
|
requestId: z.ZodString;
|
5986
5986
|
type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
|
5987
|
+
reason: z.ZodObject<{
|
5988
|
+
message: z.ZodString;
|
5989
|
+
isDuplicate: z.ZodOptional<z.ZodBoolean>;
|
5990
|
+
}, "strip", z.ZodTypeAny, {
|
5991
|
+
message: string;
|
5992
|
+
isDuplicate?: boolean | undefined;
|
5993
|
+
}, {
|
5994
|
+
message: string;
|
5995
|
+
isDuplicate?: boolean | undefined;
|
5996
|
+
}>;
|
5987
5997
|
}>, "strip", z.ZodTypeAny, {
|
5988
5998
|
type: "REJECT_CORRECTION";
|
5999
|
+
reason: {
|
6000
|
+
message: string;
|
6001
|
+
isDuplicate?: boolean | undefined;
|
6002
|
+
};
|
5989
6003
|
transactionId: string;
|
5990
6004
|
declaration: Record<string, string | number | boolean | {
|
5991
6005
|
type: string;
|
@@ -6082,6 +6096,10 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
|
|
6082
6096
|
originalActionId?: (string & z.BRAND<"UUID">) | undefined;
|
6083
6097
|
keepAssignment?: boolean | undefined;
|
6084
6098
|
}, {
|
6099
|
+
reason: {
|
6100
|
+
message: string;
|
6101
|
+
isDuplicate?: boolean | undefined;
|
6102
|
+
};
|
6085
6103
|
transactionId: string;
|
6086
6104
|
requestId: string;
|
6087
6105
|
eventId: string;
|
@@ -12159,7 +12177,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
12159
12177
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
12160
12178
|
}, {
|
12161
12179
|
type: z.ZodDefault<z.ZodLiteral<"PRINT_CERTIFICATE">>;
|
12162
|
-
|
12180
|
+
content: z.ZodOptional<z.ZodObject<{
|
12163
12181
|
templateId: z.ZodOptional<z.ZodString>;
|
12164
12182
|
}, "strip", z.ZodTypeAny, {
|
12165
12183
|
templateId?: string | undefined;
|
@@ -12215,6 +12233,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
12215
12233
|
end: string;
|
12216
12234
|
} | null | undefined>;
|
12217
12235
|
eventId: string & z.BRAND<"UUID">;
|
12236
|
+
content?: {
|
12237
|
+
templateId?: string | undefined;
|
12238
|
+
} | undefined;
|
12218
12239
|
annotation?: Record<string, string | number | boolean | {
|
12219
12240
|
type: string;
|
12220
12241
|
path: string;
|
@@ -12261,14 +12282,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
12261
12282
|
end: string;
|
12262
12283
|
} | null | undefined> | undefined;
|
12263
12284
|
originalActionId?: (string & z.BRAND<"UUID">) | undefined;
|
12264
|
-
actionDetails?: {
|
12265
|
-
templateId?: string | undefined;
|
12266
|
-
} | undefined;
|
12267
12285
|
keepAssignment?: boolean | undefined;
|
12268
12286
|
}, {
|
12269
12287
|
transactionId: string;
|
12270
12288
|
eventId: string;
|
12271
12289
|
type?: "PRINT_CERTIFICATE" | undefined;
|
12290
|
+
content?: {
|
12291
|
+
templateId?: string | undefined;
|
12292
|
+
} | undefined;
|
12272
12293
|
declaration?: Record<string, string | number | boolean | {
|
12273
12294
|
type: string;
|
12274
12295
|
path: string;
|
@@ -12360,9 +12381,6 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
12360
12381
|
end: string;
|
12361
12382
|
} | null | undefined> | undefined;
|
12362
12383
|
originalActionId?: string | undefined;
|
12363
|
-
actionDetails?: {
|
12364
|
-
templateId?: string | undefined;
|
12365
|
-
} | undefined;
|
12366
12384
|
keepAssignment?: boolean | undefined;
|
12367
12385
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
12368
12386
|
eventId: z.ZodBranded<z.ZodString, "UUID">;
|
@@ -13111,8 +13129,22 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
13111
13129
|
}, {
|
13112
13130
|
requestId: z.ZodString;
|
13113
13131
|
type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
|
13132
|
+
reason: z.ZodObject<{
|
13133
|
+
message: z.ZodString;
|
13134
|
+
isDuplicate: z.ZodOptional<z.ZodBoolean>;
|
13135
|
+
}, "strip", z.ZodTypeAny, {
|
13136
|
+
message: string;
|
13137
|
+
isDuplicate?: boolean | undefined;
|
13138
|
+
}, {
|
13139
|
+
message: string;
|
13140
|
+
isDuplicate?: boolean | undefined;
|
13141
|
+
}>;
|
13114
13142
|
}>, "strip", z.ZodTypeAny, {
|
13115
13143
|
type: "REJECT_CORRECTION";
|
13144
|
+
reason: {
|
13145
|
+
message: string;
|
13146
|
+
isDuplicate?: boolean | undefined;
|
13147
|
+
};
|
13116
13148
|
transactionId: string;
|
13117
13149
|
declaration: Record<string, string | number | boolean | {
|
13118
13150
|
type: string;
|
@@ -13209,6 +13241,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
13209
13241
|
originalActionId?: (string & z.BRAND<"UUID">) | undefined;
|
13210
13242
|
keepAssignment?: boolean | undefined;
|
13211
13243
|
}, {
|
13244
|
+
reason: {
|
13245
|
+
message: string;
|
13246
|
+
isDuplicate?: boolean | undefined;
|
13247
|
+
};
|
13212
13248
|
transactionId: string;
|
13213
13249
|
requestId: string;
|
13214
13250
|
eventId: string;
|