@opencrvs/toolkit 1.9.12-rc.a6c95e7 → 1.9.12-rc.a9b25f0
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/build.sh +4 -0
- package/dist/application-config/index.js +2045 -41
- package/dist/cli.js +3177 -4
- package/dist/commons/api/router.d.ts +106 -75
- package/dist/commons/application-config/index.d.ts +13 -16
- package/dist/commons/conditionals/conditionals.d.ts +3 -3
- package/dist/commons/events/ActionDocument.d.ts +198 -198
- package/dist/commons/events/ActionInput.d.ts +113 -113
- package/dist/commons/events/ActionType.d.ts +3 -3
- package/dist/commons/events/AdvancedSearchConfig.d.ts +16 -10
- package/dist/commons/events/CompositeFieldValue.d.ts +4 -4
- package/dist/commons/events/CountryConfigQueryInput.d.ts +443 -172
- package/dist/commons/events/Draft.d.ts +15 -15
- package/dist/commons/events/DynamicFieldValue.d.ts +37 -19
- package/dist/commons/events/EventConfig.d.ts +1 -1
- package/dist/commons/events/EventDocument.d.ts +81 -81
- package/dist/commons/events/EventIndex.d.ts +35 -27
- package/dist/commons/events/EventInput.d.ts +1 -1
- package/dist/commons/events/EventMetadata.d.ts +24 -24
- package/dist/commons/events/FieldConfig.d.ts +155 -44
- package/dist/commons/events/FieldType.d.ts +2 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +98 -72
- package/dist/commons/events/FieldValue.d.ts +54 -26
- package/dist/commons/events/PlainDate.d.ts +1 -1
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +16 -16
- package/dist/commons/events/WorkqueueConfig.d.ts +438 -194
- package/dist/commons/events/defineConfig.d.ts +0 -4
- package/dist/commons/events/locations.d.ts +4 -4
- package/dist/commons/events/scopes.d.ts +1 -1
- package/dist/commons/events/state/index.d.ts +2 -2
- package/dist/commons/events/state/utils.d.ts +3 -3
- package/dist/commons/events/utils.d.ts +5 -177
- package/dist/conditionals/index.js +13 -5
- package/dist/events/index.js +143 -34
- package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts +3 -0
- package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts.map +1 -0
- package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.js +405 -0
- package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts +2 -0
- package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +1 -0
- package/dist/migrations/v2.0/convert-config-files-to-ts.js +829 -0
- package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts +3 -0
- package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts.map +1 -0
- package/dist/migrations/v2.0/convert-paragraph-to-heading.js +159 -0
- package/dist/migrations/v2.0/index.d.ts +7 -0
- package/dist/migrations/v2.0/index.d.ts.map +1 -0
- package/dist/migrations/v2.0/index.js +3176 -0
- package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts +3 -0
- package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts.map +1 -0
- package/dist/migrations/v2.0/make-built-in-validate-actions-custom.js +344 -0
- package/dist/migrations/v2.0/migrate-scopes.d.ts +3 -0
- package/dist/migrations/v2.0/migrate-scopes.d.ts.map +1 -0
- package/dist/migrations/v2.0/migrate-scopes.js +282 -0
- package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts +3 -0
- package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts.map +1 -0
- package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.js +268 -0
- package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts +3 -0
- package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +1 -0
- package/dist/migrations/v2.0/migrate-workqueue-configs.js +237 -0
- package/dist/migrations/v2.0/remove-delete-actions.d.ts +3 -0
- package/dist/migrations/v2.0/remove-delete-actions.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-delete-actions.js +157 -0
- package/dist/migrations/v2.0/remove-demo-scope.d.ts +3 -0
- package/dist/migrations/v2.0/remove-demo-scope.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-demo-scope.js +75 -0
- package/dist/migrations/v2.0/remove-deprecated-imports.d.ts +3 -0
- package/dist/migrations/v2.0/remove-deprecated-imports.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-deprecated-imports.js +97 -0
- package/dist/migrations/v2.0/remove-hearth-migrations.d.ts +3 -0
- package/dist/migrations/v2.0/remove-hearth-migrations.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-hearth-migrations.js +78 -0
- package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts +3 -0
- package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-pending-certification-flag.js +110 -0
- package/dist/migrations/v2.0/remove-review-from-register-action.d.ts +3 -0
- package/dist/migrations/v2.0/remove-review-from-register-action.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-review-from-register-action.js +164 -0
- package/dist/migrations/v2.0/rename-api-paths.d.ts +3 -0
- package/dist/migrations/v2.0/rename-api-paths.d.ts.map +1 -0
- package/dist/migrations/v2.0/rename-api-paths.js +188 -0
- package/dist/migrations/v2.0/rename-location-parent-id.d.ts +3 -0
- package/dist/migrations/v2.0/rename-location-parent-id.d.ts.map +1 -0
- package/dist/migrations/v2.0/rename-location-parent-id.js +181 -0
- package/dist/notification/index.js +74 -24
- package/dist/scopes/index.d.ts +31 -10
- package/dist/scopes/index.js +17 -5
- package/opencrvs-toolkit-1.9.12-rc.a9b25f0.tgz +0 -0
- package/package.json +8 -7
- package/tsconfig.json +3 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/opencrvs-toolkit-1.9.12-rc.a6c95e7.tgz +0 -0
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as z from 'zod/v4';
|
|
2
2
|
export declare const Draft: z.ZodObject<{
|
|
3
|
-
id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
|
|
4
|
-
eventId: z.core.$ZodBranded<z.ZodUUID, "UUID">;
|
|
3
|
+
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
4
|
+
eventId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
5
5
|
transactionId: z.ZodString;
|
|
6
6
|
createdAt: z.ZodString;
|
|
7
7
|
action: z.ZodObject<{
|
|
8
8
|
type: z.ZodEnum<{
|
|
9
|
+
CUSTOM: "CUSTOM";
|
|
9
10
|
CREATE: "CREATE";
|
|
10
11
|
NOTIFY: "NOTIFY";
|
|
11
12
|
DECLARE: "DECLARE";
|
|
@@ -23,36 +24,36 @@ export declare const Draft: z.ZodObject<{
|
|
|
23
24
|
READ: "READ";
|
|
24
25
|
ASSIGN: "ASSIGN";
|
|
25
26
|
UNASSIGN: "UNASSIGN";
|
|
26
|
-
CUSTOM: "CUSTOM";
|
|
27
27
|
}>;
|
|
28
|
-
createdAt: z.ZodString;
|
|
29
28
|
transactionId: z.ZodString;
|
|
30
|
-
status: z.ZodEnum<{
|
|
31
|
-
Requested: "Requested";
|
|
32
|
-
Accepted: "Accepted";
|
|
33
|
-
Rejected: "Rejected";
|
|
34
|
-
}>;
|
|
35
29
|
createdByUserType: z.ZodEnum<{
|
|
36
30
|
user: "user";
|
|
37
31
|
system: "system";
|
|
38
32
|
}>;
|
|
33
|
+
createdAt: z.ZodString;
|
|
39
34
|
createdBy: z.ZodString;
|
|
40
35
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
41
|
-
createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath">>>;
|
|
36
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
|
|
42
37
|
declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
|
|
43
38
|
annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
|
|
44
|
-
|
|
39
|
+
status: z.ZodEnum<{
|
|
40
|
+
Requested: "Requested";
|
|
41
|
+
Accepted: "Accepted";
|
|
42
|
+
Rejected: "Rejected";
|
|
43
|
+
}>;
|
|
44
|
+
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
45
45
|
}, z.core.$strip>;
|
|
46
46
|
}, z.core.$strip>;
|
|
47
47
|
export declare const DraftInput: z.ZodObject<{
|
|
48
|
-
eventId: z.core.$ZodBranded<z.ZodUUID, "UUID">;
|
|
48
|
+
eventId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
49
49
|
transactionId: z.ZodString;
|
|
50
50
|
declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
51
51
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
52
|
-
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>;
|
|
52
|
+
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
53
53
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
54
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
|
|
54
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
55
55
|
type: z.ZodEnum<{
|
|
56
|
+
CUSTOM: "CUSTOM";
|
|
56
57
|
CREATE: "CREATE";
|
|
57
58
|
NOTIFY: "NOTIFY";
|
|
58
59
|
DECLARE: "DECLARE";
|
|
@@ -70,7 +71,6 @@ export declare const DraftInput: z.ZodObject<{
|
|
|
70
71
|
READ: "READ";
|
|
71
72
|
ASSIGN: "ASSIGN";
|
|
72
73
|
UNASSIGN: "UNASSIGN";
|
|
73
|
-
CUSTOM: "CUSTOM";
|
|
74
74
|
}>;
|
|
75
75
|
status: z.ZodEnum<{
|
|
76
76
|
Requested: "Requested";
|
|
@@ -32,24 +32,42 @@ export type DynamicNameValue = ReturnType<typeof getDynamicNameValue>;
|
|
|
32
32
|
* This prevents clients from sending unexpected data keys that don’t exist
|
|
33
33
|
* in the configuration (a common data integrity issue).
|
|
34
34
|
*/
|
|
35
|
-
export declare function getDynamicAddressFieldValue(field: AddressField): z.
|
|
36
|
-
country:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
country:
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
administrativeArea
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}, z.core.$
|
|
35
|
+
export declare function getDynamicAddressFieldValue(field: AddressField): z.ZodType<{
|
|
36
|
+
country: string;
|
|
37
|
+
addressType: "DOMESTIC";
|
|
38
|
+
administrativeArea: string;
|
|
39
|
+
streetLevelDetails?: Record<string, string> | undefined;
|
|
40
|
+
} | {
|
|
41
|
+
country: string;
|
|
42
|
+
addressType: "INTERNATIONAL";
|
|
43
|
+
streetLevelDetails?: Record<string, string> | undefined;
|
|
44
|
+
} | {
|
|
45
|
+
addressType: "DOMESTIC";
|
|
46
|
+
country?: string | null | undefined;
|
|
47
|
+
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
48
|
+
administrativeArea?: string | null | undefined;
|
|
49
|
+
} | {
|
|
50
|
+
addressType: "INTERNATIONAL";
|
|
51
|
+
country?: string | null | undefined;
|
|
52
|
+
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
53
|
+
} | null | undefined, unknown, z.core.$ZodTypeInternals<{
|
|
54
|
+
country: string;
|
|
55
|
+
addressType: "DOMESTIC";
|
|
56
|
+
administrativeArea: string;
|
|
57
|
+
streetLevelDetails?: Record<string, string> | undefined;
|
|
58
|
+
} | {
|
|
59
|
+
country: string;
|
|
60
|
+
addressType: "INTERNATIONAL";
|
|
61
|
+
streetLevelDetails?: Record<string, string> | undefined;
|
|
62
|
+
} | {
|
|
63
|
+
addressType: "DOMESTIC";
|
|
64
|
+
country?: string | null | undefined;
|
|
65
|
+
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
66
|
+
administrativeArea?: string | null | undefined;
|
|
67
|
+
} | {
|
|
68
|
+
addressType: "INTERNATIONAL";
|
|
69
|
+
country?: string | null | undefined;
|
|
70
|
+
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
71
|
+
} | null | undefined, unknown>>;
|
|
54
72
|
export type DynamicAddressFieldValue = ReturnType<typeof getDynamicAddressFieldValue>;
|
|
55
73
|
//# sourceMappingURL=DynamicFieldValue.d.ts.map
|
|
@@ -8,8 +8,8 @@ import { FieldReference } from './FieldConfig';
|
|
|
8
8
|
import { FlagConfig } from './Flag';
|
|
9
9
|
export declare const EventFieldReference: z.ZodObject<{
|
|
10
10
|
$$event: z.ZodEnum<{
|
|
11
|
-
createdAt: "createdAt";
|
|
12
11
|
updatedAt: "updatedAt";
|
|
12
|
+
createdAt: "createdAt";
|
|
13
13
|
"legalStatuses.DECLARED.createdAt": "legalStatuses.DECLARED.createdAt";
|
|
14
14
|
"legalStatuses.DECLARED.acceptedAt": "legalStatuses.DECLARED.acceptedAt";
|
|
15
15
|
"legalStatuses.REGISTERED.createdAt": "legalStatuses.REGISTERED.createdAt";
|