@opencrvs/toolkit 1.8.0-rc.fe799b0 → 1.8.0-rc.ff2e7b6
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 +15 -27
- package/dist/commons/events/ActionConfig.d.ts +6 -6
- package/dist/commons/events/ActionDocument.d.ts +3 -3
- package/dist/commons/events/ActionInput.d.ts +8 -92
- package/dist/commons/events/ActionType.d.ts +1 -1
- package/dist/commons/events/Draft.d.ts +0 -3
- package/dist/commons/events/EventConfig.d.ts +4 -4
- package/dist/commons/events/EventDocument.d.ts +5 -5
- package/dist/commons/events/FieldConfig.d.ts +1 -0
- package/dist/commons/events/FieldType.d.ts +4 -0
- package/dist/commons/events/TemplateConfig.d.ts +38 -0
- package/dist/commons/events/defineConfig.d.ts +1 -1
- package/dist/commons/events/index.d.ts +1 -0
- package/dist/commons/events/test.utils.d.ts +3 -3
- package/dist/commons/events/utils.d.ts +5 -0
- package/dist/events/index.js +82 -20
- package/package.json +1 -1
@@ -155,7 +155,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
155
155
|
duplicates: string[];
|
156
156
|
draft?: boolean | undefined;
|
157
157
|
} | {
|
158
|
-
type: "
|
158
|
+
type: "ARCHIVE";
|
159
159
|
comment: string;
|
160
160
|
conditionals: ({
|
161
161
|
type: "SHOW";
|
@@ -851,7 +851,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
851
851
|
originalFilename: string;
|
852
852
|
}[]> | undefined;
|
853
853
|
} | {
|
854
|
-
type: "
|
854
|
+
type: "ARCHIVE";
|
855
855
|
id: string;
|
856
856
|
data: Record<string, string | number | boolean | {
|
857
857
|
type: string;
|
@@ -1739,7 +1739,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
1739
1739
|
originalFilename: string;
|
1740
1740
|
}[]> | undefined;
|
1741
1741
|
} | {
|
1742
|
-
type: "
|
1742
|
+
type: "ARCHIVE";
|
1743
1743
|
id: string;
|
1744
1744
|
data: Record<string, string | number | boolean | {
|
1745
1745
|
type: string;
|
@@ -2351,7 +2351,6 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
2351
2351
|
filename: string;
|
2352
2352
|
originalFilename: string;
|
2353
2353
|
}[]> | undefined;
|
2354
|
-
incomplete?: boolean | undefined;
|
2355
2354
|
};
|
2356
2355
|
output: {
|
2357
2356
|
id: string;
|
@@ -2459,7 +2458,6 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
2459
2458
|
filename: string;
|
2460
2459
|
originalFilename: string;
|
2461
2460
|
}[]>;
|
2462
|
-
createdAtLocation: string;
|
2463
2461
|
eventId: string;
|
2464
2462
|
transactionId: string;
|
2465
2463
|
type?: "NOTIFY" | undefined;
|
@@ -2489,7 +2487,6 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
2489
2487
|
filename: string;
|
2490
2488
|
originalFilename: string;
|
2491
2489
|
}[]> | undefined;
|
2492
|
-
incomplete?: boolean | undefined;
|
2493
2490
|
};
|
2494
2491
|
output: {
|
2495
2492
|
type: string;
|
@@ -2909,7 +2906,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
2909
2906
|
originalFilename: string;
|
2910
2907
|
}[]> | undefined;
|
2911
2908
|
} | {
|
2912
|
-
type: "
|
2909
|
+
type: "ARCHIVE";
|
2913
2910
|
id: string;
|
2914
2911
|
data: Record<string, string | number | boolean | {
|
2915
2912
|
type: string;
|
@@ -3434,7 +3431,6 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
3434
3431
|
filename: string;
|
3435
3432
|
originalFilename: string;
|
3436
3433
|
}[]> | undefined;
|
3437
|
-
incomplete?: boolean | undefined;
|
3438
3434
|
};
|
3439
3435
|
output: {
|
3440
3436
|
type: string;
|
@@ -3854,7 +3850,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
3854
3850
|
originalFilename: string;
|
3855
3851
|
}[]> | undefined;
|
3856
3852
|
} | {
|
3857
|
-
type: "
|
3853
|
+
type: "ARCHIVE";
|
3858
3854
|
id: string;
|
3859
3855
|
data: Record<string, string | number | boolean | {
|
3860
3856
|
type: string;
|
@@ -4380,7 +4376,6 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
4380
4376
|
filename: string;
|
4381
4377
|
originalFilename: string;
|
4382
4378
|
}[]> | undefined;
|
4383
|
-
incomplete?: boolean | undefined;
|
4384
4379
|
};
|
4385
4380
|
output: {
|
4386
4381
|
type: string;
|
@@ -4800,7 +4795,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
4800
4795
|
originalFilename: string;
|
4801
4796
|
}[]> | undefined;
|
4802
4797
|
} | {
|
4803
|
-
type: "
|
4798
|
+
type: "ARCHIVE";
|
4804
4799
|
id: string;
|
4805
4800
|
data: Record<string, string | number | boolean | {
|
4806
4801
|
type: string;
|
@@ -5325,7 +5320,6 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
5325
5320
|
filename: string;
|
5326
5321
|
originalFilename: string;
|
5327
5322
|
}[]> | undefined;
|
5328
|
-
incomplete?: boolean | undefined;
|
5329
5323
|
};
|
5330
5324
|
output: {
|
5331
5325
|
type: string;
|
@@ -5745,7 +5739,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
5745
5739
|
originalFilename: string;
|
5746
5740
|
}[]> | undefined;
|
5747
5741
|
} | {
|
5748
|
-
type: "
|
5742
|
+
type: "ARCHIVE";
|
5749
5743
|
id: string;
|
5750
5744
|
data: Record<string, string | number | boolean | {
|
5751
5745
|
type: string;
|
@@ -6243,7 +6237,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
6243
6237
|
}[]>;
|
6244
6238
|
eventId: string;
|
6245
6239
|
transactionId: string;
|
6246
|
-
type?: "
|
6240
|
+
type?: "ARCHIVE" | undefined;
|
6247
6241
|
metadata?: Record<string, string | number | boolean | {
|
6248
6242
|
type: string;
|
6249
6243
|
filename: string;
|
@@ -6270,7 +6264,6 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
6270
6264
|
filename: string;
|
6271
6265
|
originalFilename: string;
|
6272
6266
|
}[]> | undefined;
|
6273
|
-
incomplete?: boolean | undefined;
|
6274
6267
|
};
|
6275
6268
|
output: {
|
6276
6269
|
type: string;
|
@@ -6690,7 +6683,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
6690
6683
|
originalFilename: string;
|
6691
6684
|
}[]> | undefined;
|
6692
6685
|
} | {
|
6693
|
-
type: "
|
6686
|
+
type: "ARCHIVE";
|
6694
6687
|
id: string;
|
6695
6688
|
data: Record<string, string | number | boolean | {
|
6696
6689
|
type: string;
|
@@ -7215,7 +7208,6 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
7215
7208
|
filename: string;
|
7216
7209
|
originalFilename: string;
|
7217
7210
|
}[]> | undefined;
|
7218
|
-
incomplete?: boolean | undefined;
|
7219
7211
|
};
|
7220
7212
|
output: {
|
7221
7213
|
type: string;
|
@@ -7635,7 +7627,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
7635
7627
|
originalFilename: string;
|
7636
7628
|
}[]> | undefined;
|
7637
7629
|
} | {
|
7638
|
-
type: "
|
7630
|
+
type: "ARCHIVE";
|
7639
7631
|
id: string;
|
7640
7632
|
data: Record<string, string | number | boolean | {
|
7641
7633
|
type: string;
|
@@ -8160,7 +8152,6 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
8160
8152
|
filename: string;
|
8161
8153
|
originalFilename: string;
|
8162
8154
|
}[]> | undefined;
|
8163
|
-
incomplete?: boolean | undefined;
|
8164
8155
|
};
|
8165
8156
|
output: {
|
8166
8157
|
type: string;
|
@@ -8580,7 +8571,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
8580
8571
|
originalFilename: string;
|
8581
8572
|
}[]> | undefined;
|
8582
8573
|
} | {
|
8583
|
-
type: "
|
8574
|
+
type: "ARCHIVE";
|
8584
8575
|
id: string;
|
8585
8576
|
data: Record<string, string | number | boolean | {
|
8586
8577
|
type: string;
|
@@ -9117,7 +9108,6 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
9117
9108
|
filename: string;
|
9118
9109
|
originalFilename: string;
|
9119
9110
|
}[]> | undefined;
|
9120
|
-
incomplete?: boolean | undefined;
|
9121
9111
|
};
|
9122
9112
|
output: {
|
9123
9113
|
type: string;
|
@@ -9537,7 +9527,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
9537
9527
|
originalFilename: string;
|
9538
9528
|
}[]> | undefined;
|
9539
9529
|
} | {
|
9540
|
-
type: "
|
9530
|
+
type: "ARCHIVE";
|
9541
9531
|
id: string;
|
9542
9532
|
data: Record<string, string | number | boolean | {
|
9543
9533
|
type: string;
|
@@ -10063,7 +10053,6 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
10063
10053
|
filename: string;
|
10064
10054
|
originalFilename: string;
|
10065
10055
|
}[]> | undefined;
|
10066
|
-
incomplete?: boolean | undefined;
|
10067
10056
|
};
|
10068
10057
|
output: {
|
10069
10058
|
type: string;
|
@@ -10483,7 +10472,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
10483
10472
|
originalFilename: string;
|
10484
10473
|
}[]> | undefined;
|
10485
10474
|
} | {
|
10486
|
-
type: "
|
10475
|
+
type: "ARCHIVE";
|
10487
10476
|
id: string;
|
10488
10477
|
data: Record<string, string | number | boolean | {
|
10489
10478
|
type: string;
|
@@ -11009,7 +10998,6 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
11009
10998
|
filename: string;
|
11010
10999
|
originalFilename: string;
|
11011
11000
|
}[]> | undefined;
|
11012
|
-
incomplete?: boolean | undefined;
|
11013
11001
|
};
|
11014
11002
|
output: {
|
11015
11003
|
type: string;
|
@@ -11429,7 +11417,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
11429
11417
|
originalFilename: string;
|
11430
11418
|
}[]> | undefined;
|
11431
11419
|
} | {
|
11432
|
-
type: "
|
11420
|
+
type: "ARCHIVE";
|
11433
11421
|
id: string;
|
11434
11422
|
data: Record<string, string | number | boolean | {
|
11435
11423
|
type: string;
|
@@ -12375,7 +12363,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
12375
12363
|
originalFilename: string;
|
12376
12364
|
}[]> | undefined;
|
12377
12365
|
} | {
|
12378
|
-
type: "
|
12366
|
+
type: "ARCHIVE";
|
12379
12367
|
id: string;
|
12380
12368
|
data: Record<string, string | number | boolean | {
|
12381
12369
|
type: string;
|
@@ -1098,7 +1098,7 @@ declare const MarkedAsDuplicateConfig: z.ZodObject<z.objectUtil.extendShape<{
|
|
1098
1098
|
conditional: import(".").JSONSchema;
|
1099
1099
|
})[] | undefined;
|
1100
1100
|
}>;
|
1101
|
-
declare const
|
1101
|
+
declare const ArchiveConfig: z.ZodObject<z.objectUtil.extendShape<{
|
1102
1102
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
1103
1103
|
id: string;
|
1104
1104
|
description: string;
|
@@ -1238,11 +1238,11 @@ declare const ArchivedConfig: z.ZodObject<z.objectUtil.extendShape<{
|
|
1238
1238
|
active?: boolean | undefined;
|
1239
1239
|
}>, "many">;
|
1240
1240
|
}, {
|
1241
|
-
type: z.ZodLiteral<"
|
1241
|
+
type: z.ZodLiteral<"ARCHIVE">;
|
1242
1242
|
comment: z.ZodString;
|
1243
1243
|
isDuplicate: z.ZodBoolean;
|
1244
1244
|
}>, "strip", z.ZodTypeAny, {
|
1245
|
-
type: "
|
1245
|
+
type: "ARCHIVE";
|
1246
1246
|
comment: string;
|
1247
1247
|
conditionals: ({
|
1248
1248
|
type: "SHOW";
|
@@ -1272,7 +1272,7 @@ declare const ArchivedConfig: z.ZodObject<z.objectUtil.extendShape<{
|
|
1272
1272
|
isDuplicate: boolean;
|
1273
1273
|
draft?: boolean | undefined;
|
1274
1274
|
}, {
|
1275
|
-
type: "
|
1275
|
+
type: "ARCHIVE";
|
1276
1276
|
comment: string;
|
1277
1277
|
label: {
|
1278
1278
|
id: string;
|
@@ -2919,9 +2919,9 @@ declare const CustomConfig: z.ZodObject<z.objectUtil.extendShape<{
|
|
2919
2919
|
})[] | undefined;
|
2920
2920
|
}>;
|
2921
2921
|
/** @knipignore */
|
2922
|
-
export type AllActionConfigFields = typeof DeclareConfig | typeof ValidateConfig | typeof RejectDeclarationConfig | typeof MarkedAsDuplicateConfig | typeof
|
2922
|
+
export type AllActionConfigFields = typeof DeclareConfig | typeof ValidateConfig | typeof RejectDeclarationConfig | typeof MarkedAsDuplicateConfig | typeof ArchiveConfig | typeof RegisterConfig | typeof DeleteConfig | typeof PrintCertificateActionConfig | typeof RequestCorrectionConfig | typeof RejectCorrectionConfig | typeof ApproveCorrectionConfig | typeof CustomConfig;
|
2923
2923
|
/** @knipignore */
|
2924
|
-
export type InferredActionConfig = z.infer<typeof DeclareConfig> | z.infer<typeof ValidateConfig> | z.infer<typeof RejectDeclarationConfig> | z.infer<typeof MarkedAsDuplicateConfig> | z.infer<typeof
|
2924
|
+
export type InferredActionConfig = z.infer<typeof DeclareConfig> | z.infer<typeof ValidateConfig> | z.infer<typeof RejectDeclarationConfig> | z.infer<typeof MarkedAsDuplicateConfig> | z.infer<typeof ArchiveConfig> | z.infer<typeof RegisterConfig> | z.infer<typeof DeleteConfig> | z.infer<typeof PrintCertificateActionConfig> | z.infer<typeof RequestCorrectionConfig> | z.infer<typeof RejectCorrectionConfig> | z.infer<typeof ApproveCorrectionConfig> | z.infer<typeof CustomConfig>;
|
2925
2925
|
export declare const ActionConfig: z.ZodDiscriminatedUnion<"type", AllActionConfigFields[]>;
|
2926
2926
|
export type ActionConfig = InferredActionConfig;
|
2927
2927
|
export {};
|
@@ -1921,9 +1921,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
1921
1921
|
}>]>>>;
|
1922
1922
|
createdAtLocation: z.ZodString;
|
1923
1923
|
}, {
|
1924
|
-
type: z.ZodLiteral<"
|
1924
|
+
type: z.ZodLiteral<"ARCHIVE">;
|
1925
1925
|
}>, "strip", z.ZodTypeAny, {
|
1926
|
-
type: "
|
1926
|
+
type: "ARCHIVE";
|
1927
1927
|
id: string;
|
1928
1928
|
data: Record<string, string | number | boolean | {
|
1929
1929
|
type: string;
|
@@ -1981,7 +1981,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
1981
1981
|
originalFilename: string;
|
1982
1982
|
}[]> | undefined;
|
1983
1983
|
}, {
|
1984
|
-
type: "
|
1984
|
+
type: "ARCHIVE";
|
1985
1985
|
id: string;
|
1986
1986
|
data: Record<string, string | number | boolean | {
|
1987
1987
|
type: string;
|