@opencrvs/toolkit 2.0.1-rc.32bdeaf → 2.0.1-rc.339761e
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 +25 -6
- package/dist/commons/events/ActionConfig.d.ts +0 -4
- package/dist/commons/events/FormConfig.d.ts +0 -6
- package/dist/commons/events/PageConfig.d.ts +0 -4
- package/dist/commons/events/utils.d.ts +0 -4
- package/dist/events/index.js +0 -4
- package/dist/notification/index.js +0 -4
- package/opencrvs-toolkit-2.0.1-rc.339761e.tgz +0 -0
- package/package.json +1 -1
- package/opencrvs-toolkit-2.0.1-rc.32bdeaf.tgz +0 -0
|
@@ -7803,6 +7803,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7803
7803
|
output: void;
|
|
7804
7804
|
meta: object;
|
|
7805
7805
|
}>;
|
|
7806
|
+
upsert: import("@trpc/server").TRPCMutationProcedure<{
|
|
7807
|
+
input: {
|
|
7808
|
+
id: string;
|
|
7809
|
+
name: string;
|
|
7810
|
+
administrativeAreaId: string | null;
|
|
7811
|
+
validUntil: string | null;
|
|
7812
|
+
locationType: string | null;
|
|
7813
|
+
externalId?: string | null | undefined;
|
|
7814
|
+
};
|
|
7815
|
+
output: void;
|
|
7816
|
+
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
7817
|
+
}>;
|
|
7806
7818
|
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
7807
7819
|
input: {
|
|
7808
7820
|
id: string;
|
|
@@ -8234,6 +8246,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
8234
8246
|
output: void;
|
|
8235
8247
|
meta: object;
|
|
8236
8248
|
}>;
|
|
8249
|
+
upsert: import("@trpc/server").TRPCMutationProcedure<{
|
|
8250
|
+
input: {
|
|
8251
|
+
id: string;
|
|
8252
|
+
name: string;
|
|
8253
|
+
parentId: string | null;
|
|
8254
|
+
validUntil: string | null;
|
|
8255
|
+
externalId?: string | null | undefined;
|
|
8256
|
+
};
|
|
8257
|
+
output: void;
|
|
8258
|
+
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
8259
|
+
}>;
|
|
8237
8260
|
}>>;
|
|
8238
8261
|
integrations: import("@trpc/server").TRPCBuiltRouter<{
|
|
8239
8262
|
ctx: Partial<{
|
|
@@ -8261,10 +8284,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
8261
8284
|
input: {
|
|
8262
8285
|
name: string;
|
|
8263
8286
|
scopes: string[];
|
|
8264
|
-
credentials?: {
|
|
8265
|
-
clientId: string;
|
|
8266
|
-
clientSecret: string;
|
|
8267
|
-
} | undefined;
|
|
8268
8287
|
};
|
|
8269
8288
|
output: {
|
|
8270
8289
|
clientId: string;
|
|
@@ -8295,7 +8314,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
8295
8314
|
scopes: string[];
|
|
8296
8315
|
status: string;
|
|
8297
8316
|
createdAt: string;
|
|
8298
|
-
createdBy:
|
|
8317
|
+
createdBy: string & import("zod").$brand<"UUID">;
|
|
8299
8318
|
}[];
|
|
8300
8319
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
8301
8320
|
}>;
|
|
@@ -8310,7 +8329,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
8310
8329
|
status: string;
|
|
8311
8330
|
shaSecret: string | null;
|
|
8312
8331
|
createdAt: string;
|
|
8313
|
-
createdBy:
|
|
8332
|
+
createdBy: string & import("zod").$brand<"UUID">;
|
|
8314
8333
|
};
|
|
8315
8334
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
8316
8335
|
}>;
|
|
@@ -214,7 +214,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
214
214
|
id: z.ZodString;
|
|
215
215
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
216
216
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
217
|
-
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
218
217
|
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
219
218
|
conditional: z.ZodOptional<z.ZodAny>;
|
|
220
219
|
type: z.ZodDefault<z.ZodLiteral<"FORM">>;
|
|
@@ -222,7 +221,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
222
221
|
id: z.ZodString;
|
|
223
222
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
224
223
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
225
|
-
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
226
224
|
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
227
225
|
conditional: z.ZodOptional<z.ZodAny>;
|
|
228
226
|
type: z.ZodLiteral<"VERIFICATION">;
|
|
@@ -272,7 +270,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
272
270
|
id: z.ZodString;
|
|
273
271
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
274
272
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
275
|
-
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
276
273
|
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
277
274
|
conditional: z.ZodOptional<z.ZodAny>;
|
|
278
275
|
type: z.ZodDefault<z.ZodLiteral<"FORM">>;
|
|
@@ -280,7 +277,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
280
277
|
id: z.ZodString;
|
|
281
278
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
282
279
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
283
|
-
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
284
280
|
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
285
281
|
conditional: z.ZodOptional<z.ZodAny>;
|
|
286
282
|
type: z.ZodLiteral<"VERIFICATION">;
|
|
@@ -5,7 +5,6 @@ export declare const DeclarationFormConfig: z.ZodObject<{
|
|
|
5
5
|
id: z.ZodString;
|
|
6
6
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
7
7
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
8
|
-
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
9
8
|
fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
10
9
|
conditional: z.ZodOptional<z.ZodAny>;
|
|
11
10
|
type: z.ZodDefault<z.ZodLiteral<"FORM">>;
|
|
@@ -19,7 +18,6 @@ export declare const ActionFormConfig: z.ZodObject<{
|
|
|
19
18
|
id: z.ZodString;
|
|
20
19
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
21
20
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
22
|
-
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
23
21
|
fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
24
22
|
conditional: z.ZodOptional<z.ZodAny>;
|
|
25
23
|
type: z.ZodDefault<z.ZodLiteral<"FORM">>;
|
|
@@ -27,7 +25,6 @@ export declare const ActionFormConfig: z.ZodObject<{
|
|
|
27
25
|
id: z.ZodString;
|
|
28
26
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
29
27
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
30
|
-
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
31
28
|
fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
32
29
|
conditional: z.ZodOptional<z.ZodAny>;
|
|
33
30
|
type: z.ZodLiteral<"VERIFICATION">;
|
|
@@ -53,7 +50,6 @@ export declare const FormConfig: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
53
50
|
id: z.ZodString;
|
|
54
51
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
55
52
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
56
|
-
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
57
53
|
fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
58
54
|
conditional: z.ZodOptional<z.ZodAny>;
|
|
59
55
|
type: z.ZodDefault<z.ZodLiteral<"FORM">>;
|
|
@@ -64,7 +60,6 @@ export declare const FormConfig: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
64
60
|
id: z.ZodString;
|
|
65
61
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
66
62
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
67
|
-
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
68
63
|
fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
69
64
|
conditional: z.ZodOptional<z.ZodAny>;
|
|
70
65
|
type: z.ZodDefault<z.ZodLiteral<"FORM">>;
|
|
@@ -72,7 +67,6 @@ export declare const FormConfig: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
72
67
|
id: z.ZodString;
|
|
73
68
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
74
69
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
75
|
-
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
76
70
|
fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
77
71
|
conditional: z.ZodOptional<z.ZodAny>;
|
|
78
72
|
type: z.ZodLiteral<"VERIFICATION">;
|
|
@@ -9,7 +9,6 @@ export declare const FormPageConfig: z.ZodObject<{
|
|
|
9
9
|
id: z.ZodString;
|
|
10
10
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
11
11
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
12
|
-
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
13
12
|
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
14
13
|
conditional: z.ZodOptional<z.ZodAny>;
|
|
15
14
|
type: z.ZodDefault<z.ZodLiteral<"FORM">>;
|
|
@@ -32,7 +31,6 @@ export declare const VerificationPageConfig: z.ZodObject<{
|
|
|
32
31
|
id: z.ZodString;
|
|
33
32
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
34
33
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
35
|
-
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
36
34
|
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
37
35
|
conditional: z.ZodOptional<z.ZodAny>;
|
|
38
36
|
type: z.ZodLiteral<"VERIFICATION">;
|
|
@@ -54,7 +52,6 @@ export declare const PageConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
54
52
|
id: z.ZodString;
|
|
55
53
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
56
54
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
57
|
-
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
58
55
|
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
59
56
|
conditional: z.ZodOptional<z.ZodAny>;
|
|
60
57
|
type: z.ZodDefault<z.ZodLiteral<"FORM">>;
|
|
@@ -62,7 +59,6 @@ export declare const PageConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
62
59
|
id: z.ZodString;
|
|
63
60
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
64
61
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
65
|
-
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
66
62
|
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
67
63
|
conditional: z.ZodOptional<z.ZodAny>;
|
|
68
64
|
type: z.ZodLiteral<"VERIFICATION">;
|
|
@@ -22,7 +22,6 @@ export declare function getDeclarationPages(configuration: EventConfig): {
|
|
|
22
22
|
requireCompletionToContinue: boolean;
|
|
23
23
|
fields: FieldConfig[];
|
|
24
24
|
type: "FORM";
|
|
25
|
-
showClearButton?: boolean | undefined;
|
|
26
25
|
conditional?: any;
|
|
27
26
|
}[];
|
|
28
27
|
export declare function getDeclaration(configuration: EventConfig): {
|
|
@@ -41,7 +40,6 @@ export declare function getDeclaration(configuration: EventConfig): {
|
|
|
41
40
|
requireCompletionToContinue: boolean;
|
|
42
41
|
fields: FieldConfig[];
|
|
43
42
|
type: "FORM";
|
|
44
|
-
showClearButton?: boolean | undefined;
|
|
45
43
|
conditional?: any;
|
|
46
44
|
}[];
|
|
47
45
|
};
|
|
@@ -62,7 +60,6 @@ export declare function getPrintCertificatePages(configuration: EventConfig): ({
|
|
|
62
60
|
requireCompletionToContinue: boolean;
|
|
63
61
|
fields: FieldConfig[];
|
|
64
62
|
type: "FORM";
|
|
65
|
-
showClearButton?: boolean | undefined;
|
|
66
63
|
conditional?: any;
|
|
67
64
|
} | {
|
|
68
65
|
id: string;
|
|
@@ -102,7 +99,6 @@ export declare function getPrintCertificatePages(configuration: EventConfig): ({
|
|
|
102
99
|
};
|
|
103
100
|
};
|
|
104
101
|
};
|
|
105
|
-
showClearButton?: boolean | undefined;
|
|
106
102
|
conditional?: any;
|
|
107
103
|
})[];
|
|
108
104
|
export declare const getActionAnnotationFields: (actionConfig: ActionConfig) => FieldConfig[];
|
package/dist/events/index.js
CHANGED
|
@@ -3044,9 +3044,6 @@ var PageConfigBase = z21.object({
|
|
|
3044
3044
|
requireCompletionToContinue: z21.boolean().default(false).describe(
|
|
3045
3045
|
"If true, all required fields must be filled before continuing to the next page"
|
|
3046
3046
|
),
|
|
3047
|
-
showClearButton: z21.boolean().optional().describe(
|
|
3048
|
-
'If true, a "Clear" button is shown at the top of the page allowing the user to reset all fields on the page to their default state'
|
|
3049
|
-
),
|
|
3050
3047
|
fields: z21.array(FieldConfig).describe("Fields to be rendered on the page"),
|
|
3051
3048
|
conditional: Conditional.optional().describe(
|
|
3052
3049
|
"Page will be shown if condition is met. If conditional is not defined, the page will be always shown."
|
|
@@ -7763,7 +7760,6 @@ var TENNIS_CLUB_DECLARATION_FORM = defineDeclarationForm({
|
|
|
7763
7760
|
defaultMessage: "Who is applying for the membership?",
|
|
7764
7761
|
description: "This is the title of the section"
|
|
7765
7762
|
},
|
|
7766
|
-
showClearButton: true,
|
|
7767
7763
|
fields: [
|
|
7768
7764
|
{
|
|
7769
7765
|
id: "applicant.name",
|
|
@@ -2501,9 +2501,6 @@ var PageConfigBase = z21.object({
|
|
|
2501
2501
|
requireCompletionToContinue: z21.boolean().default(false).describe(
|
|
2502
2502
|
"If true, all required fields must be filled before continuing to the next page"
|
|
2503
2503
|
),
|
|
2504
|
-
showClearButton: z21.boolean().optional().describe(
|
|
2505
|
-
'If true, a "Clear" button is shown at the top of the page allowing the user to reset all fields on the page to their default state'
|
|
2506
|
-
),
|
|
2507
2504
|
fields: z21.array(FieldConfig).describe("Fields to be rendered on the page"),
|
|
2508
2505
|
conditional: Conditional.optional().describe(
|
|
2509
2506
|
"Page will be shown if condition is met. If conditional is not defined, the page will be always shown."
|
|
@@ -5535,7 +5532,6 @@ var TENNIS_CLUB_DECLARATION_FORM = defineDeclarationForm({
|
|
|
5535
5532
|
defaultMessage: "Who is applying for the membership?",
|
|
5536
5533
|
description: "This is the title of the section"
|
|
5537
5534
|
},
|
|
5538
|
-
showClearButton: true,
|
|
5539
5535
|
fields: [
|
|
5540
5536
|
{
|
|
5541
5537
|
id: "applicant.name",
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|