@opencrvs/toolkit 1.9.12-rc.f522379 → 1.9.12-rc.f5d99e1
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 +12 -20
- package/dist/cli.js +142 -1036
- package/dist/commons/api/router.d.ts +12 -0
- package/dist/commons/events/ActionInput.d.ts +36 -0
- package/dist/commons/events/Draft.d.ts +1 -0
- package/dist/events/index.js +13 -20
- package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts.map +1 -1
- package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.js +4 -3
- package/dist/migrations/v2.0/checkout-upstream-files.d.ts +0 -19
- package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -1
- package/dist/migrations/v2.0/checkout-upstream-files.js +13 -17
- package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +1 -1
- package/dist/migrations/v2.0/convert-config-files-to-ts.js +5 -4
- package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts.map +1 -1
- package/dist/migrations/v2.0/convert-paragraph-to-heading.js +5 -4
- package/dist/migrations/v2.0/create-events-index.d.ts.map +1 -1
- package/dist/migrations/v2.0/create-events-index.js +2 -1
- package/dist/migrations/v2.0/index.d.ts +4 -8
- package/dist/migrations/v2.0/index.d.ts.map +1 -1
- package/dist/migrations/v2.0/index.js +139 -1004
- package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts.map +1 -1
- package/dist/migrations/v2.0/make-built-in-validate-actions-custom.js +6 -5
- package/dist/migrations/v2.0/migrate-scopes.d.ts.map +1 -1
- package/dist/migrations/v2.0/migrate-scopes.js +7 -6
- package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts.map +1 -1
- package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.js +4 -3
- package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +1 -1
- package/dist/migrations/v2.0/migrate-workqueue-configs.js +4 -3
- package/dist/migrations/v2.0/remove-delete-actions.d.ts.map +1 -1
- package/dist/migrations/v2.0/remove-delete-actions.js +4 -3
- package/dist/migrations/v2.0/remove-demo-scope.d.ts.map +1 -1
- package/dist/migrations/v2.0/remove-demo-scope.js +3 -2
- package/dist/migrations/v2.0/remove-deprecated-imports.d.ts.map +1 -1
- package/dist/migrations/v2.0/remove-deprecated-imports.js +4 -3
- package/dist/migrations/v2.0/remove-hearth-migrations.d.ts.map +1 -1
- package/dist/migrations/v2.0/remove-hearth-migrations.js +2 -1
- package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts.map +1 -1
- package/dist/migrations/v2.0/remove-pending-certification-flag.js +4 -3
- package/dist/migrations/v2.0/remove-review-from-register-action.d.ts.map +1 -1
- package/dist/migrations/v2.0/remove-review-from-register-action.js +4 -3
- package/dist/migrations/v2.0/rename-api-paths.d.ts.map +1 -1
- package/dist/migrations/v2.0/rename-api-paths.js +4 -3
- package/dist/migrations/v2.0/rename-location-parent-id.d.ts.map +1 -1
- package/dist/migrations/v2.0/rename-location-parent-id.js +4 -3
- package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts.map +1 -1
- package/dist/migrations/v2.0/simplify-analytics-precalculations.js +2 -1
- package/dist/notification/index.js +13 -20
- package/opencrvs-toolkit-1.9.12-rc.f5d99e1.tgz +0 -0
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts +0 -3
- package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts.map +0 -1
- package/dist/migrations/v2.0/delete-infrastructure-directory.js +0 -77
- package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts +0 -3
- package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts.map +0 -1
- package/dist/migrations/v2.0/merge-infrastructure-directory.js +0 -221
- package/dist/migrations/v2.0/migrate-application-config-url.d.ts +0 -3
- package/dist/migrations/v2.0/migrate-application-config-url.d.ts.map +0 -1
- package/dist/migrations/v2.0/migrate-application-config-url.js +0 -342
- package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts +0 -3
- package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts.map +0 -1
- package/dist/migrations/v2.0/remove-fhir-url-helpers.js +0 -163
- package/dist/migrations/v2.0/remove-old-statistics-service.d.ts +0 -3
- package/dist/migrations/v2.0/remove-old-statistics-service.d.ts.map +0 -1
- package/dist/migrations/v2.0/remove-old-statistics-service.js +0 -356
- package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts +0 -3
- package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts.map +0 -1
- package/dist/migrations/v2.0/remove-unused-environment-variables.js +0 -186
- package/dist/migrations/v2.0/update-package-json.d.ts +0 -3
- package/dist/migrations/v2.0/update-package-json.d.ts.map +0 -1
- package/dist/migrations/v2.0/update-package-json.js +0 -105
- package/opencrvs-toolkit-1.9.12-rc.f522379.tgz +0 -0
|
@@ -1105,6 +1105,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1105
1105
|
annotation?: Record<string, unknown> | undefined;
|
|
1106
1106
|
originalActionId?: string | undefined;
|
|
1107
1107
|
keepAssignment?: boolean | undefined;
|
|
1108
|
+
waitFor?: boolean | undefined;
|
|
1108
1109
|
createdAtLocation?: string | null | undefined;
|
|
1109
1110
|
};
|
|
1110
1111
|
output: {
|
|
@@ -1225,6 +1226,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1225
1226
|
annotation?: Record<string, unknown> | undefined;
|
|
1226
1227
|
originalActionId?: string | undefined;
|
|
1227
1228
|
keepAssignment?: boolean | undefined;
|
|
1229
|
+
waitFor?: boolean | undefined;
|
|
1228
1230
|
createdAtLocation?: string | null | undefined;
|
|
1229
1231
|
type?: "DECLARE" | undefined;
|
|
1230
1232
|
};
|
|
@@ -1799,6 +1801,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1799
1801
|
annotation?: Record<string, unknown> | undefined;
|
|
1800
1802
|
originalActionId?: string | undefined;
|
|
1801
1803
|
keepAssignment?: boolean | undefined;
|
|
1804
|
+
waitFor?: boolean | undefined;
|
|
1802
1805
|
createdAtLocation?: string | null | undefined;
|
|
1803
1806
|
type?: "CUSTOM" | undefined;
|
|
1804
1807
|
};
|
|
@@ -2154,6 +2157,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2154
2157
|
annotation?: Record<string, unknown> | undefined;
|
|
2155
2158
|
originalActionId?: string | undefined;
|
|
2156
2159
|
keepAssignment?: boolean | undefined;
|
|
2160
|
+
waitFor?: boolean | undefined;
|
|
2157
2161
|
createdAtLocation?: string | null | undefined;
|
|
2158
2162
|
};
|
|
2159
2163
|
output: {
|
|
@@ -2467,6 +2471,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2467
2471
|
annotation?: Record<string, unknown> | undefined;
|
|
2468
2472
|
originalActionId?: string | undefined;
|
|
2469
2473
|
keepAssignment?: boolean | undefined;
|
|
2474
|
+
waitFor?: boolean | undefined;
|
|
2470
2475
|
createdAtLocation?: string | null | undefined;
|
|
2471
2476
|
type?: "UNASSIGN" | undefined;
|
|
2472
2477
|
assignedTo?: null | undefined;
|
|
@@ -2960,6 +2965,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2960
2965
|
annotation?: Record<string, unknown> | undefined;
|
|
2961
2966
|
originalActionId?: string | undefined;
|
|
2962
2967
|
keepAssignment?: boolean | undefined;
|
|
2968
|
+
waitFor?: boolean | undefined;
|
|
2963
2969
|
createdAtLocation?: string | null | undefined;
|
|
2964
2970
|
type?: "MARK_AS_DUPLICATE" | undefined;
|
|
2965
2971
|
content?: {
|
|
@@ -3277,6 +3283,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3277
3283
|
annotation?: Record<string, unknown> | undefined;
|
|
3278
3284
|
originalActionId?: string | undefined;
|
|
3279
3285
|
keepAssignment?: boolean | undefined;
|
|
3286
|
+
waitFor?: boolean | undefined;
|
|
3280
3287
|
createdAtLocation?: string | null | undefined;
|
|
3281
3288
|
type?: "MARK_AS_NOT_DUPLICATE" | undefined;
|
|
3282
3289
|
};
|
|
@@ -4308,6 +4315,11 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4308
4315
|
output: void;
|
|
4309
4316
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
4310
4317
|
}>;
|
|
4318
|
+
sendResetPasswordInvite: import("@trpc/server").TRPCMutationProcedure<{
|
|
4319
|
+
input: string;
|
|
4320
|
+
output: void;
|
|
4321
|
+
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
4322
|
+
}>;
|
|
4311
4323
|
audit: import("@trpc/server").TRPCBuiltRouter<{
|
|
4312
4324
|
ctx: Partial<{
|
|
4313
4325
|
token: `Bearer ${string}`;
|
|
@@ -6,6 +6,7 @@ export declare const BaseActionInput: z.ZodObject<{
|
|
|
6
6
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
7
7
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
8
8
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
9
10
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
10
11
|
}, z.core.$strip>;
|
|
11
12
|
export declare const RegisterActionInput: z.ZodObject<{
|
|
@@ -15,6 +16,7 @@ export declare const RegisterActionInput: z.ZodObject<{
|
|
|
15
16
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
16
17
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
17
18
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
18
20
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
19
21
|
type: z.ZodDefault<z.ZodLiteral<"REGISTER">>;
|
|
20
22
|
registrationNumber: z.ZodOptional<z.ZodString>;
|
|
@@ -27,6 +29,7 @@ export declare const NotifyActionInput: z.ZodObject<{
|
|
|
27
29
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
28
30
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
29
31
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
30
33
|
type: z.ZodDefault<z.ZodLiteral<"NOTIFY">>;
|
|
31
34
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
32
35
|
}, z.core.$strip>;
|
|
@@ -38,6 +41,7 @@ export declare const DeclareActionInput: z.ZodObject<{
|
|
|
38
41
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
39
42
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
40
43
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
44
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
41
45
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
42
46
|
type: z.ZodDefault<z.ZodLiteral<"DECLARE">>;
|
|
43
47
|
}, z.core.$strip>;
|
|
@@ -48,6 +52,7 @@ export declare const EditActionInput: z.ZodObject<{
|
|
|
48
52
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
49
53
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
50
54
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
55
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
51
56
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
52
57
|
type: z.ZodDefault<z.ZodLiteral<"EDIT">>;
|
|
53
58
|
content: z.ZodObject<{
|
|
@@ -62,6 +67,7 @@ export declare const PrintCertificateActionInput: z.ZodObject<{
|
|
|
62
67
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
63
68
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
64
69
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
70
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
65
71
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
66
72
|
type: z.ZodDefault<z.ZodLiteral<"PRINT_CERTIFICATE">>;
|
|
67
73
|
content: z.ZodOptional<z.ZodObject<{
|
|
@@ -76,6 +82,7 @@ export declare const RejectDeclarationActionInput: z.ZodObject<{
|
|
|
76
82
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
77
83
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
78
84
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
85
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
79
86
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
80
87
|
type: z.ZodDefault<z.ZodLiteral<"REJECT">>;
|
|
81
88
|
content: z.ZodObject<{
|
|
@@ -90,6 +97,7 @@ export declare const DuplicateDetectedActionInput: z.ZodObject<{
|
|
|
90
97
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
91
98
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
92
99
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
100
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
93
101
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
94
102
|
type: z.ZodDefault<z.ZodLiteral<"DUPLICATE_DETECTED">>;
|
|
95
103
|
content: z.ZodObject<{
|
|
@@ -106,6 +114,7 @@ export declare const MarkAsDuplicateActionInput: z.ZodObject<{
|
|
|
106
114
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
107
115
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
108
116
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
117
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
109
118
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
110
119
|
type: z.ZodDefault<z.ZodLiteral<"MARK_AS_DUPLICATE">>;
|
|
111
120
|
content: z.ZodOptional<z.ZodObject<{
|
|
@@ -120,6 +129,7 @@ export declare const MarkNotDuplicateActionInput: z.ZodObject<{
|
|
|
120
129
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
121
130
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
122
131
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
132
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
123
133
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
124
134
|
type: z.ZodDefault<z.ZodLiteral<"MARK_AS_NOT_DUPLICATE">>;
|
|
125
135
|
}, z.core.$strip>;
|
|
@@ -131,6 +141,7 @@ export declare const ArchiveActionInput: z.ZodObject<{
|
|
|
131
141
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
132
142
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
133
143
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
144
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
134
145
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
135
146
|
type: z.ZodDefault<z.ZodLiteral<"ARCHIVE">>;
|
|
136
147
|
content: z.ZodObject<{
|
|
@@ -145,6 +156,7 @@ export declare const AssignActionInput: z.ZodObject<{
|
|
|
145
156
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
146
157
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
147
158
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
159
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
148
160
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
149
161
|
type: z.ZodLiteral<"ASSIGN">;
|
|
150
162
|
assignedTo: z.ZodString;
|
|
@@ -157,6 +169,7 @@ export declare const UnassignActionInput: z.ZodObject<{
|
|
|
157
169
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
158
170
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
159
171
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
172
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
160
173
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
161
174
|
type: z.ZodDefault<z.ZodLiteral<"UNASSIGN">>;
|
|
162
175
|
assignedTo: z.ZodDefault<z.ZodLiteral<null>>;
|
|
@@ -169,6 +182,7 @@ export declare const RequestCorrectionActionInput: z.ZodObject<{
|
|
|
169
182
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
170
183
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
171
184
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
185
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
172
186
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
173
187
|
type: z.ZodDefault<z.ZodLiteral<"REQUEST_CORRECTION">>;
|
|
174
188
|
}, z.core.$strip>;
|
|
@@ -180,6 +194,7 @@ export declare const RejectCorrectionActionInput: z.ZodObject<{
|
|
|
180
194
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
181
195
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
182
196
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
197
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
183
198
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
184
199
|
requestId: z.ZodString;
|
|
185
200
|
type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
|
|
@@ -195,6 +210,7 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<{
|
|
|
195
210
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
196
211
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
197
212
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
213
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
198
214
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
199
215
|
requestId: z.ZodString;
|
|
200
216
|
type: z.ZodDefault<z.ZodLiteral<"APPROVE_CORRECTION">>;
|
|
@@ -207,6 +223,7 @@ export declare const ReadActionInput: z.ZodObject<{
|
|
|
207
223
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
208
224
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
209
225
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
226
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
210
227
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
211
228
|
type: z.ZodDefault<z.ZodLiteral<"READ">>;
|
|
212
229
|
}, z.core.$strip>;
|
|
@@ -222,6 +239,7 @@ export declare const CustomActionInput: z.ZodObject<{
|
|
|
222
239
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
223
240
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
224
241
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
242
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
225
243
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
226
244
|
type: z.ZodDefault<z.ZodLiteral<"CUSTOM">>;
|
|
227
245
|
customActionType: z.ZodString;
|
|
@@ -242,6 +260,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
242
260
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
243
261
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
244
262
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
263
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
245
264
|
type: z.ZodDefault<z.ZodLiteral<"CREATE">>;
|
|
246
265
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
247
266
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -251,6 +270,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
251
270
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
252
271
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
253
272
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
273
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
254
274
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
255
275
|
type: z.ZodDefault<z.ZodLiteral<"REGISTER">>;
|
|
256
276
|
registrationNumber: z.ZodOptional<z.ZodString>;
|
|
@@ -261,6 +281,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
261
281
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
262
282
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
263
283
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
284
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
264
285
|
type: z.ZodDefault<z.ZodLiteral<"NOTIFY">>;
|
|
265
286
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
266
287
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -270,6 +291,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
270
291
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
271
292
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
272
293
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
294
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
273
295
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
274
296
|
type: z.ZodDefault<z.ZodLiteral<"DECLARE">>;
|
|
275
297
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -279,6 +301,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
279
301
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
280
302
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
281
303
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
304
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
282
305
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
283
306
|
type: z.ZodDefault<z.ZodLiteral<"REJECT">>;
|
|
284
307
|
content: z.ZodObject<{
|
|
@@ -291,6 +314,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
291
314
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
292
315
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
293
316
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
317
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
294
318
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
295
319
|
type: z.ZodDefault<z.ZodLiteral<"DUPLICATE_DETECTED">>;
|
|
296
320
|
content: z.ZodObject<{
|
|
@@ -306,6 +330,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
306
330
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
307
331
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
308
332
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
333
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
309
334
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
310
335
|
type: z.ZodDefault<z.ZodLiteral<"MARK_AS_DUPLICATE">>;
|
|
311
336
|
content: z.ZodOptional<z.ZodObject<{
|
|
@@ -318,6 +343,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
318
343
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
319
344
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
320
345
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
346
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
321
347
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
322
348
|
type: z.ZodDefault<z.ZodLiteral<"MARK_AS_NOT_DUPLICATE">>;
|
|
323
349
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -327,6 +353,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
327
353
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
328
354
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
329
355
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
356
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
330
357
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
331
358
|
type: z.ZodDefault<z.ZodLiteral<"ARCHIVE">>;
|
|
332
359
|
content: z.ZodObject<{
|
|
@@ -339,6 +366,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
339
366
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
340
367
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
341
368
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
369
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
342
370
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
343
371
|
type: z.ZodLiteral<"ASSIGN">;
|
|
344
372
|
assignedTo: z.ZodString;
|
|
@@ -349,6 +377,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
349
377
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
350
378
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
351
379
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
380
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
352
381
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
353
382
|
type: z.ZodDefault<z.ZodLiteral<"UNASSIGN">>;
|
|
354
383
|
assignedTo: z.ZodDefault<z.ZodLiteral<null>>;
|
|
@@ -359,6 +388,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
359
388
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
360
389
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
361
390
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
391
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
362
392
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
363
393
|
type: z.ZodDefault<z.ZodLiteral<"PRINT_CERTIFICATE">>;
|
|
364
394
|
content: z.ZodOptional<z.ZodObject<{
|
|
@@ -371,6 +401,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
371
401
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
372
402
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
373
403
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
404
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
374
405
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
375
406
|
type: z.ZodDefault<z.ZodLiteral<"REQUEST_CORRECTION">>;
|
|
376
407
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -380,6 +411,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
380
411
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
381
412
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
382
413
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
414
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
383
415
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
384
416
|
requestId: z.ZodString;
|
|
385
417
|
type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
|
|
@@ -393,6 +425,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
393
425
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
394
426
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
395
427
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
428
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
396
429
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
397
430
|
requestId: z.ZodString;
|
|
398
431
|
type: z.ZodDefault<z.ZodLiteral<"APPROVE_CORRECTION">>;
|
|
@@ -403,6 +436,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
403
436
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
404
437
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
405
438
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
439
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
406
440
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
407
441
|
type: z.ZodDefault<z.ZodLiteral<"READ">>;
|
|
408
442
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -412,6 +446,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
412
446
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
413
447
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
414
448
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
449
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
415
450
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
416
451
|
type: z.ZodDefault<z.ZodLiteral<"CUSTOM">>;
|
|
417
452
|
customActionType: z.ZodString;
|
|
@@ -422,6 +457,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
422
457
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
423
458
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
424
459
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
460
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
425
461
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
426
462
|
type: z.ZodDefault<z.ZodLiteral<"EDIT">>;
|
|
427
463
|
content: z.ZodObject<{
|
|
@@ -51,6 +51,7 @@ export declare const DraftInput: z.ZodObject<{
|
|
|
51
51
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
52
52
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
53
53
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
54
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
54
55
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
55
56
|
type: z.ZodEnum<{
|
|
56
57
|
CUSTOM: "CUSTOM";
|
package/dist/events/index.js
CHANGED
|
@@ -1375,28 +1375,20 @@ function schemaPriority(schema) {
|
|
|
1375
1375
|
return idx === -1 ? 9999 : idx;
|
|
1376
1376
|
}
|
|
1377
1377
|
function safeUnion(schemas) {
|
|
1378
|
+
const sortedSchemas = [...schemas].sort(
|
|
1379
|
+
(a, b) => schemaPriority(a) - schemaPriority(b)
|
|
1380
|
+
);
|
|
1378
1381
|
return z12.any().superRefine((val, ctx) => {
|
|
1379
|
-
const
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
if (successful.length === 0) {
|
|
1384
|
-
ctx.addIssue({
|
|
1385
|
-
code: "invalid_type",
|
|
1386
|
-
expected: "custom",
|
|
1387
|
-
message: "Value does not match any schema"
|
|
1388
|
-
});
|
|
1389
|
-
return;
|
|
1390
|
-
}
|
|
1391
|
-
successful.sort((a, b) => schemaPriority(a) - schemaPriority(b));
|
|
1392
|
-
const best = successful[0];
|
|
1393
|
-
if (!best.safeParse(val).success) {
|
|
1394
|
-
ctx.addIssue({
|
|
1395
|
-
expected: "custom",
|
|
1396
|
-
code: "invalid_type",
|
|
1397
|
-
message: "Value did not match the best schema"
|
|
1398
|
-
});
|
|
1382
|
+
for (const schema of sortedSchemas) {
|
|
1383
|
+
if (schema.safeParse(val).success) {
|
|
1384
|
+
return;
|
|
1385
|
+
}
|
|
1399
1386
|
}
|
|
1387
|
+
ctx.addIssue({
|
|
1388
|
+
code: "invalid_type",
|
|
1389
|
+
expected: "custom",
|
|
1390
|
+
message: "Value does not match any schema"
|
|
1391
|
+
});
|
|
1400
1392
|
}).meta({
|
|
1401
1393
|
description: "Value that matches exactly one of the possible schema types (TextValue, DateValue, DateRangeFieldValue). The best matching schema is chosen by priority."
|
|
1402
1394
|
});
|
|
@@ -5861,6 +5853,7 @@ var BaseActionInput = z38.object({
|
|
|
5861
5853
|
originalActionId: UUID.optional(),
|
|
5862
5854
|
// should not be part of base action.
|
|
5863
5855
|
keepAssignment: z38.boolean().optional(),
|
|
5856
|
+
waitFor: z38.boolean().optional(),
|
|
5864
5857
|
// For normal users, the createdAtLocation is resolved on the backend from the user's primaryOfficeId.
|
|
5865
5858
|
// @TODO: createdAtLocation should be limited to actions that system users can perform. For normal users, it should not be part of the base action.
|
|
5866
5859
|
createdAtLocation: UUID.nullish().describe(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-birth-certificate-issuance-flag.d.ts","sourceRoot":"","sources":["../../../src/migrations/v2.0/add-birth-certificate-issuance-flag.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-birth-certificate-issuance-flag.d.ts","sourceRoot":"","sources":["../../../src/migrations/v2.0/add-birth-certificate-issuance-flag.ts"],"names":[],"mappings":"AA6aA,iBAAe,IAAI,kBAiDlB;AAED,OAAO,EAAE,IAAI,EAAE,CAAA"}
|
|
@@ -48,6 +48,7 @@ exports.main = main;
|
|
|
48
48
|
*/
|
|
49
49
|
const ts_morph_1 = require("ts-morph");
|
|
50
50
|
const path_1 = __importDefault(require("path"));
|
|
51
|
+
const _1 = require(".");
|
|
51
52
|
const DEFINE_CONFIG_NAME = 'defineConfig';
|
|
52
53
|
const DEFINE_WORKQUEUES_NAME = 'defineWorkqueues';
|
|
53
54
|
const ACTIONS_PROPERTY_NAME = 'actions';
|
|
@@ -317,7 +318,7 @@ function processFile(filePath, project) {
|
|
|
317
318
|
if (!sourceFile)
|
|
318
319
|
return 0;
|
|
319
320
|
let totalChanges = 0;
|
|
320
|
-
const relPath = path_1.default.relative(
|
|
321
|
+
const relPath = path_1.default.relative((0, _1.getCwd)(), filePath);
|
|
321
322
|
const callExpressions = sourceFile.getDescendantsOfKind(ts_morph_1.SyntaxKind.CallExpression);
|
|
322
323
|
for (const call of callExpressions) {
|
|
323
324
|
const expression = call.getExpression();
|
|
@@ -368,7 +369,7 @@ function processFile(filePath, project) {
|
|
|
368
369
|
// ─── Entry point ─────────────────────────────────────────────────────────────
|
|
369
370
|
function main() {
|
|
370
371
|
return __awaiter(this, void 0, void 0, function* () {
|
|
371
|
-
const srcDir = path_1.default.join(
|
|
372
|
+
const srcDir = path_1.default.join((0, _1.getCwd)(), 'src');
|
|
372
373
|
console.log(`Scanning for birth defineConfig and PRINT_CERTIFICATE workqueues in: ${srcDir}\n`);
|
|
373
374
|
const project = new ts_morph_1.Project({
|
|
374
375
|
tsConfigFilePath: path_1.default.resolve(srcDir, '../tsconfig.json'),
|
|
@@ -397,7 +398,7 @@ function main() {
|
|
|
397
398
|
for (const filePath of modifiedFiles) {
|
|
398
399
|
const sourceFile = project.getSourceFileOrThrow(filePath);
|
|
399
400
|
yield sourceFile.save();
|
|
400
|
-
console.log(` Saved: ${path_1.default.relative(
|
|
401
|
+
console.log(` Saved: ${path_1.default.relative((0, _1.getCwd)(), filePath)}`);
|
|
401
402
|
}
|
|
402
403
|
console.log(`\nDone. Applied ${totalChanges} change(s) across ${modifiedFiles.length} file(s).`);
|
|
403
404
|
});
|
|
@@ -1,22 +1,3 @@
|
|
|
1
|
-
export declare const UPSTREAM_URL = "https://github.com/opencrvs/opencrvs-countryconfig.git";
|
|
2
|
-
export declare const UPSTREAM_BRANCH = "develop";
|
|
3
|
-
/**
|
|
4
|
-
* Runs a git command in the country config working directory.
|
|
5
|
-
*
|
|
6
|
-
* By default stderr is inherited so the user sees progress output from
|
|
7
|
-
* long-running commands (e.g. `git fetch`). Pass `silent: true` to suppress
|
|
8
|
-
* both stdout and stderr when you only care about the exit code.
|
|
9
|
-
*/
|
|
10
|
-
export declare function runGit(args: string[], { silent }?: {
|
|
11
|
-
silent?: boolean;
|
|
12
|
-
}): string;
|
|
13
|
-
/**
|
|
14
|
-
* Runs a git command and returns true on success, false on failure.
|
|
15
|
-
* Stderr/stdout are suppressed — use only when the exit code is the only
|
|
16
|
-
* signal you care about.
|
|
17
|
-
*/
|
|
18
|
-
export declare function tryGit(args: string[]): boolean;
|
|
19
|
-
export declare function assertIsGitRepo(): void;
|
|
20
1
|
declare function main(): Promise<void>;
|
|
21
2
|
export { main };
|
|
22
3
|
//# sourceMappingURL=checkout-upstream-files.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkout-upstream-files.d.ts","sourceRoot":"","sources":["../../../src/migrations/v2.0/checkout-upstream-files.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"checkout-upstream-files.d.ts","sourceRoot":"","sources":["../../../src/migrations/v2.0/checkout-upstream-files.ts"],"names":[],"mappings":"AA0GA,iBAAe,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAuDnC;AAED,OAAO,EAAE,IAAI,EAAE,CAAA"}
|
|
@@ -19,10 +19,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.UPSTREAM_BRANCH = exports.UPSTREAM_URL = void 0;
|
|
23
|
-
exports.runGit = runGit;
|
|
24
|
-
exports.tryGit = tryGit;
|
|
25
|
-
exports.assertIsGitRepo = assertIsGitRepo;
|
|
26
22
|
exports.main = main;
|
|
27
23
|
/**
|
|
28
24
|
* Codemod: Replace selected files with their upstream v2.0 versions from
|
|
@@ -58,16 +54,16 @@ exports.main = main;
|
|
|
58
54
|
* - Requires the country config working directory to be a git repo.
|
|
59
55
|
*/
|
|
60
56
|
const child_process_1 = require("child_process");
|
|
61
|
-
|
|
57
|
+
const _1 = require(".");
|
|
58
|
+
const UPSTREAM_URL = 'https://github.com/opencrvs/opencrvs-countryconfig.git';
|
|
62
59
|
// @TODO: This needs to be changed to 'release-v2.0.0' once the branch is created
|
|
63
|
-
|
|
60
|
+
const UPSTREAM_BRANCH = 'develop';
|
|
64
61
|
// Remote name used only for the duration of this codemod. Prefixed to avoid
|
|
65
62
|
// clashing with remotes the user may have (origin, upstream, etc.).
|
|
66
63
|
const TEMP_REMOTE = 'opencrvs-upgrade-v19-v20-codemod';
|
|
67
64
|
const FILES_TO_CHECKOUT = [
|
|
68
|
-
'
|
|
69
|
-
'
|
|
70
|
-
'Dockerfile.assets'
|
|
65
|
+
'infrastructure/postgres/setup-analytics.sh',
|
|
66
|
+
'src/analytics/analytics.ts'
|
|
71
67
|
];
|
|
72
68
|
// ─── Git helpers ─────────────────────────────────────────────────────────────
|
|
73
69
|
/**
|
|
@@ -79,7 +75,7 @@ const FILES_TO_CHECKOUT = [
|
|
|
79
75
|
*/
|
|
80
76
|
function runGit(args, { silent = false } = {}) {
|
|
81
77
|
return (0, child_process_1.execFileSync)('git', args, {
|
|
82
|
-
cwd:
|
|
78
|
+
cwd: (0, _1.getCwd)(),
|
|
83
79
|
encoding: 'utf8',
|
|
84
80
|
stdio: silent ? ['ignore', 'pipe', 'pipe'] : ['ignore', 'pipe', 'inherit']
|
|
85
81
|
});
|
|
@@ -100,22 +96,22 @@ function tryGit(args) {
|
|
|
100
96
|
}
|
|
101
97
|
function assertIsGitRepo() {
|
|
102
98
|
if (!tryGit(['rev-parse', '--is-inside-work-tree'])) {
|
|
103
|
-
throw new Error(
|
|
99
|
+
throw new Error(`checkout-upstream-files: ${(0, _1.getCwd)()} is not a git repository. Initialise git (or run the upgrade inside a git checkout) before re-running.`);
|
|
104
100
|
}
|
|
105
101
|
}
|
|
106
102
|
// ─── Entry point ─────────────────────────────────────────────────────────────
|
|
107
103
|
function main() {
|
|
108
104
|
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
-
console.log(`Checking out ${FILES_TO_CHECKOUT.length} file(s) from ${
|
|
105
|
+
console.log(`Checking out ${FILES_TO_CHECKOUT.length} file(s) from ${UPSTREAM_URL}@${UPSTREAM_BRANCH}...\n`);
|
|
110
106
|
assertIsGitRepo();
|
|
111
107
|
// Best-effort cleanup of a stale temp remote from a previous aborted run.
|
|
112
108
|
tryGit(['remote', 'remove', TEMP_REMOTE]);
|
|
113
109
|
try {
|
|
114
|
-
console.log(` Adding temporary remote '${TEMP_REMOTE}' → ${
|
|
115
|
-
runGit(['remote', 'add', TEMP_REMOTE,
|
|
116
|
-
console.log(` Fetching ${TEMP_REMOTE}/${
|
|
117
|
-
runGit(['fetch', '--depth=1', TEMP_REMOTE,
|
|
118
|
-
const ref = `${TEMP_REMOTE}/${
|
|
110
|
+
console.log(` Adding temporary remote '${TEMP_REMOTE}' → ${UPSTREAM_URL}`);
|
|
111
|
+
runGit(['remote', 'add', TEMP_REMOTE, UPSTREAM_URL], { silent: true });
|
|
112
|
+
console.log(` Fetching ${TEMP_REMOTE}/${UPSTREAM_BRANCH} (depth 1)...`);
|
|
113
|
+
runGit(['fetch', '--depth=1', TEMP_REMOTE, UPSTREAM_BRANCH]);
|
|
114
|
+
const ref = `${TEMP_REMOTE}/${UPSTREAM_BRANCH}`;
|
|
119
115
|
const missing = [];
|
|
120
116
|
let checkedOut = 0;
|
|
121
117
|
for (const file of FILES_TO_CHECKOUT) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convert-config-files-to-ts.d.ts","sourceRoot":"","sources":["../../../src/migrations/v2.0/convert-config-files-to-ts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"convert-config-files-to-ts.d.ts","sourceRoot":"","sources":["../../../src/migrations/v2.0/convert-config-files-to-ts.ts"],"names":[],"mappings":"AAyuBA,wBAAsB,IAAI,kBAyPzB"}
|
|
@@ -87,6 +87,7 @@ exports.main = main;
|
|
|
87
87
|
const fs = __importStar(require("fs"));
|
|
88
88
|
const ts_morph_1 = require("ts-morph");
|
|
89
89
|
const path_1 = __importDefault(require("path"));
|
|
90
|
+
const _1 = require(".");
|
|
90
91
|
// ─── Schema-valid keys per config type ───────────────────────────────────────
|
|
91
92
|
const CLIENT_VALID_KEYS = new Set([
|
|
92
93
|
'COUNTRY',
|
|
@@ -633,8 +634,8 @@ function ensureJoinImport(sf) {
|
|
|
633
634
|
function main() {
|
|
634
635
|
return __awaiter(this, void 0, void 0, function* () {
|
|
635
636
|
var _a;
|
|
636
|
-
const srcDir = path_1.default.join(
|
|
637
|
-
const relCwd = (fp) => path_1.default.relative(
|
|
637
|
+
const srcDir = path_1.default.join((0, _1.getCwd)(), 'src');
|
|
638
|
+
const relCwd = (fp) => path_1.default.relative((0, _1.getCwd)(), fp);
|
|
638
639
|
// ── Phase 1: Convert JS config files to TypeScript ────────────────────────
|
|
639
640
|
console.log('Phase 1: Converting JS config files to TypeScript...\n');
|
|
640
641
|
let convertedCount = 0;
|
|
@@ -740,7 +741,7 @@ function main() {
|
|
|
740
741
|
if (/\bjoin\s*\(/.test(adjustedValue)) {
|
|
741
742
|
ensureJoinImport(sf);
|
|
742
743
|
}
|
|
743
|
-
console.log(` Inlined applicationConfig.${accessPath.join('.')} → ${adjustedValue} in ${path_1.default.relative(
|
|
744
|
+
console.log(` Inlined applicationConfig.${accessPath.join('.')} → ${adjustedValue} in ${path_1.default.relative((0, _1.getCwd)(), sf.getFilePath())}`);
|
|
744
745
|
filesToSaveAfterInlining.add(sf);
|
|
745
746
|
madeReplacement = true;
|
|
746
747
|
break; // restart — tree has changed
|
|
@@ -751,7 +752,7 @@ function main() {
|
|
|
751
752
|
// Persist files that received inline replacements
|
|
752
753
|
for (const sf of Array.from(filesToSaveAfterInlining)) {
|
|
753
754
|
yield sf.save();
|
|
754
|
-
console.log(` Saved (inlined): ${path_1.default.relative(
|
|
755
|
+
console.log(` Saved (inlined): ${path_1.default.relative((0, _1.getCwd)(), sf.getFilePath())}`);
|
|
755
756
|
}
|
|
756
757
|
// Remove in reverse order to avoid index shifting
|
|
757
758
|
for (const prop of [...propsToRemove].reverse()) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convert-paragraph-to-heading.d.ts","sourceRoot":"","sources":["../../../src/migrations/v2.0/convert-paragraph-to-heading.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"convert-paragraph-to-heading.d.ts","sourceRoot":"","sources":["../../../src/migrations/v2.0/convert-paragraph-to-heading.ts"],"names":[],"mappings":"AAwJA,iBAAe,IAAI,kBA6ClB;AAED,OAAO,EAAE,IAAI,EAAE,CAAA"}
|