@opencrvs/toolkit 2.1.0-rc.69ab488 → 2.1.0-rc.6c5b938
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/application-config/index.js +2 -1
- package/dist/cli.js +0 -48
- package/dist/commons/api/router.d.ts +147 -183
- package/dist/commons/conditionals/conditionals.d.ts +1586 -34
- package/dist/commons/events/ActionConfig.d.ts +7 -0
- package/dist/commons/events/ActionDocument.d.ts +6 -6
- package/dist/commons/events/ActionInput.d.ts +0 -6
- package/dist/commons/events/EventDocument.d.ts +2 -2
- package/dist/commons/events/field.d.ts +722 -34
- package/dist/commons/events/test.utils.d.ts +0 -3
- package/dist/commons/events/utils.d.ts +11 -3
- package/dist/environment/derived-variables.d.ts +0 -12
- package/dist/environment/derived-variables.d.ts.map +1 -1
- package/dist/environment/derived-variables.js +0 -14
- package/dist/environment/logger.d.ts +3 -12
- package/dist/environment/logger.d.ts.map +1 -1
- package/dist/environment/manage-users.js +17 -7
- package/dist/environment/setup-environment.js +0 -14
- package/dist/environment/swarm-to-k8s.js +17 -7
- package/dist/environment/update-workflows.js +17 -7
- package/dist/environment/users.js +17 -7
- package/dist/environment/utils.js +17 -7
- package/dist/events/index.js +32 -18
- package/dist/migrations/v2.0/convert-config-files-to-ts.js +17 -7
- package/dist/migrations/v2.0/remove-hearth-migrations.js +17 -7
- package/dist/notification/index.js +18 -16
- package/dist/templates/charts-values/dependencies/values.yaml +0 -3
- package/dist/templates/charts-values/opencrvs-services/values.yaml +0 -4
- package/opencrvs-toolkit-2.1.0-rc.6c5b938.tgz +0 -0
- package/package.json +2 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/opencrvs-toolkit-2.1.0-rc.69ab488.tgz +0 -0
|
@@ -163,6 +163,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
163
163
|
conditional: z.ZodAny;
|
|
164
164
|
}, z.core.$strip>], "type">>>;
|
|
165
165
|
type: z.ZodLiteral<"NOTIFY">;
|
|
166
|
+
form: z.ZodOptional<z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>>;
|
|
166
167
|
}, z.core.$strip>, z.ZodObject<{
|
|
167
168
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
168
169
|
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -198,6 +199,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
198
199
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
199
200
|
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
200
201
|
}, z.core.$strip>;
|
|
202
|
+
form: z.ZodOptional<z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>>;
|
|
201
203
|
dialogCopy: z.ZodOptional<z.ZodObject<{
|
|
202
204
|
notify: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
203
205
|
declare: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
@@ -301,6 +303,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
301
303
|
conditional: z.ZodAny;
|
|
302
304
|
}, z.core.$strip>], "type">>>;
|
|
303
305
|
type: z.ZodLiteral<"REJECT">;
|
|
306
|
+
form: z.ZodOptional<z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>>;
|
|
304
307
|
}, z.core.$strip>, z.ZodObject<{
|
|
305
308
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
306
309
|
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -332,6 +335,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
332
335
|
query: z.ZodType<import("./DeduplicationConfig").ClauseOutput, import("./DeduplicationConfig").ClauseInput, z.core.$ZodTypeInternals<import("./DeduplicationConfig").ClauseOutput, import("./DeduplicationConfig").ClauseInput>>;
|
|
333
336
|
}, z.core.$strip>>;
|
|
334
337
|
type: z.ZodLiteral<"REGISTER">;
|
|
338
|
+
form: z.ZodOptional<z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>>;
|
|
335
339
|
}, z.core.$strip>, z.ZodObject<{
|
|
336
340
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
337
341
|
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -553,6 +557,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
553
557
|
conditional: z.ZodAny;
|
|
554
558
|
}, z.core.$strip>], "type">>>;
|
|
555
559
|
type: z.ZodLiteral<"ARCHIVE">;
|
|
560
|
+
form: z.ZodOptional<z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>>;
|
|
556
561
|
}, z.core.$strip>, z.ZodObject<{
|
|
557
562
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
558
563
|
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -655,6 +660,7 @@ export declare const DeclarationActionConfig: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
655
660
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
656
661
|
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
657
662
|
}, z.core.$strip>;
|
|
663
|
+
form: z.ZodOptional<z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>>;
|
|
658
664
|
dialogCopy: z.ZodOptional<z.ZodObject<{
|
|
659
665
|
notify: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
660
666
|
declare: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
@@ -691,6 +697,7 @@ export declare const DeclarationActionConfig: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
691
697
|
query: z.ZodType<import("./DeduplicationConfig").ClauseOutput, import("./DeduplicationConfig").ClauseInput, z.core.$ZodTypeInternals<import("./DeduplicationConfig").ClauseOutput, import("./DeduplicationConfig").ClauseInput>>;
|
|
692
698
|
}, z.core.$strip>>;
|
|
693
699
|
type: z.ZodLiteral<"REGISTER">;
|
|
700
|
+
form: z.ZodOptional<z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>>;
|
|
694
701
|
}, z.core.$strip>], "type">;
|
|
695
702
|
export type DeclarationActionConfig = z.infer<typeof DeclarationActionConfig>;
|
|
696
703
|
export {};
|
|
@@ -165,9 +165,9 @@ declare const EditAction: z.ZodObject<{
|
|
|
165
165
|
}>;
|
|
166
166
|
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
167
167
|
type: z.ZodLiteral<"EDIT">;
|
|
168
|
-
content: z.ZodObject<{
|
|
168
|
+
content: z.ZodOptional<z.ZodObject<{
|
|
169
169
|
comment: z.ZodOptional<z.ZodString>;
|
|
170
|
-
}, z.core.$strip
|
|
170
|
+
}, z.core.$strip>>;
|
|
171
171
|
}, z.core.$strip>;
|
|
172
172
|
export type EditAction = z.infer<typeof EditAction>;
|
|
173
173
|
export declare const PrintContent: z.ZodObject<{
|
|
@@ -653,9 +653,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
653
653
|
}>;
|
|
654
654
|
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
655
655
|
type: z.ZodLiteral<"EDIT">;
|
|
656
|
-
content: z.ZodObject<{
|
|
656
|
+
content: z.ZodOptional<z.ZodObject<{
|
|
657
657
|
comment: z.ZodOptional<z.ZodString>;
|
|
658
|
-
}, z.core.$strip
|
|
658
|
+
}, z.core.$strip>>;
|
|
659
659
|
}, z.core.$strip>, z.ZodObject<{
|
|
660
660
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
661
661
|
transactionId: z.ZodString;
|
|
@@ -1116,9 +1116,9 @@ export declare const Action: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.Zod
|
|
|
1116
1116
|
}>;
|
|
1117
1117
|
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
1118
1118
|
type: z.ZodLiteral<"EDIT">;
|
|
1119
|
-
content: z.ZodObject<{
|
|
1119
|
+
content: z.ZodOptional<z.ZodObject<{
|
|
1120
1120
|
comment: z.ZodOptional<z.ZodString>;
|
|
1121
|
-
}, z.core.$strip
|
|
1121
|
+
}, z.core.$strip>>;
|
|
1122
1122
|
}, z.core.$strip>, z.ZodObject<{
|
|
1123
1123
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
1124
1124
|
transactionId: z.ZodString;
|
|
@@ -65,9 +65,6 @@ export declare const EditActionInput: z.ZodObject<{
|
|
|
65
65
|
waitFor: z.ZodDefault<z.ZodBoolean>;
|
|
66
66
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
67
67
|
type: z.ZodDefault<z.ZodLiteral<"EDIT">>;
|
|
68
|
-
content: z.ZodObject<{
|
|
69
|
-
comment: z.ZodOptional<z.ZodString>;
|
|
70
|
-
}, z.core.$strip>;
|
|
71
68
|
}, z.core.$strip>;
|
|
72
69
|
export type EditActionInput = z.infer<typeof EditActionInput>;
|
|
73
70
|
export declare const PrintCertificateActionInput: z.ZodObject<{
|
|
@@ -564,9 +561,6 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
564
561
|
waitFor: z.ZodDefault<z.ZodBoolean>;
|
|
565
562
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
566
563
|
type: z.ZodDefault<z.ZodLiteral<"EDIT">>;
|
|
567
|
-
content: z.ZodObject<{
|
|
568
|
-
comment: z.ZodOptional<z.ZodString>;
|
|
569
|
-
}, z.core.$strip>;
|
|
570
564
|
}, z.core.$strip>], "type">;
|
|
571
565
|
export type ActionInput = z.input<typeof ActionInput>;
|
|
572
566
|
export type ActionInputWithType = z.infer<typeof ActionInput>;
|
|
@@ -410,9 +410,9 @@ export declare const EventDocument: z.ZodObject<{
|
|
|
410
410
|
}>;
|
|
411
411
|
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
412
412
|
type: z.ZodLiteral<"EDIT">;
|
|
413
|
-
content: z.ZodObject<{
|
|
413
|
+
content: z.ZodOptional<z.ZodObject<{
|
|
414
414
|
comment: z.ZodOptional<z.ZodString>;
|
|
415
|
-
}, z.core.$strip
|
|
415
|
+
}, z.core.$strip>>;
|
|
416
416
|
}, z.core.$strip>, z.ZodObject<{
|
|
417
417
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
418
418
|
transactionId: z.ZodString;
|