@opencrvs/toolkit 2.0.0-rc.487f96e → 2.0.0-rc.49f481c
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/create-countryconfig/index.js +73 -0
- package/create-countryconfig/package.json +11 -0
- package/dist/application-config/index.js +5 -3
- package/dist/cli.js +302 -136
- package/dist/commons/api/router.d.ts +2696 -163
- package/dist/commons/conditionals/conditionals.d.ts +3 -3
- package/dist/commons/conditionals/validate.d.ts +1 -0
- package/dist/commons/events/ActionInput.d.ts +72 -0
- package/dist/commons/events/Draft.d.ts +2 -0
- package/dist/commons/events/FieldConfig.d.ts +5 -0
- package/dist/commons/events/scopes.d.ts +0 -1
- package/dist/commons/events/utils.d.ts +1 -1
- package/dist/conditionals/index.js +5 -3
- package/dist/events/index.js +20 -17
- 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 +60 -35
- package/dist/migrations/v2.0/checkout-upstream-files.d.ts +1 -1
- package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -1
- package/dist/migrations/v2.0/checkout-upstream-files.js +1 -2
- package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts +9 -1
- package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts.map +1 -1
- package/dist/migrations/v2.0/delete-infrastructure-directory.js +66 -20
- package/dist/migrations/v2.0/index.d.ts +5 -3
- package/dist/migrations/v2.0/index.d.ts.map +1 -1
- package/dist/migrations/v2.0/index.js +302 -136
- 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 +90 -1
- package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts +11 -1
- package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts.map +1 -1
- package/dist/migrations/v2.0/merge-infrastructure-directory.js +17 -16
- package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +1 -1
- package/dist/migrations/v2.0/migrate-workqueue-configs.js +140 -59
- package/dist/notification/index.js +7 -3
- package/dist/scopes/index.d.ts +6 -1
- package/dist/scopes/index.js +5 -3
- package/opencrvs-toolkit-2.0.0-rc.49f481c.tgz +0 -0
- package/package.json +1 -1
- package/opencrvs-toolkit-2.0.0-rc.487f96e.tgz +0 -0
|
@@ -86,16 +86,16 @@ export declare const user: typeof userSerializer & {
|
|
|
86
86
|
};
|
|
87
87
|
scope: (scope: import("../scopes").ScopeType) => {
|
|
88
88
|
attribute: (option: import("../scopes").ScopeOptionKey) => {
|
|
89
|
-
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "workqueue" | "dashboard.view";
|
|
89
|
+
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "user.search" | "workqueue" | "dashboard.view";
|
|
90
90
|
$option: "role" | "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
91
91
|
};
|
|
92
92
|
};
|
|
93
93
|
jurisdiction: (jurisdiction: import("../scopes").JurisdictionFilter | {
|
|
94
|
-
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "workqueue" | "dashboard.view";
|
|
94
|
+
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "user.search" | "workqueue" | "dashboard.view";
|
|
95
95
|
$option: "role" | "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
96
96
|
}) => {
|
|
97
97
|
$jurisdiction: "administrativeArea" | "location" | "all" | {
|
|
98
|
-
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "workqueue" | "dashboard.view";
|
|
98
|
+
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "user.search" | "workqueue" | "dashboard.view";
|
|
99
99
|
$option: "role" | "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
100
100
|
};
|
|
101
101
|
};
|
|
@@ -28,6 +28,7 @@ export type ValidatorContext = {
|
|
|
28
28
|
id: UUID;
|
|
29
29
|
}>;
|
|
30
30
|
event?: EventDocument;
|
|
31
|
+
baseFormState?: EventState;
|
|
31
32
|
};
|
|
32
33
|
export declare function isFieldVisible(field: FieldConfig, form: Partial<ActionUpdate | EventState>, context: ValidatorContext): boolean;
|
|
33
34
|
export declare function isFieldEnabled(field: FieldConfig, form: ActionUpdate | EventState, context: ValidatorContext): boolean;
|
|
@@ -6,6 +6,8 @@ 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
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
9
11
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
10
12
|
}, z.core.$strip>;
|
|
11
13
|
export declare const RegisterActionInput: z.ZodObject<{
|
|
@@ -15,6 +17,8 @@ export declare const RegisterActionInput: z.ZodObject<{
|
|
|
15
17
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
16
18
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
17
19
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
21
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
18
22
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
19
23
|
type: z.ZodDefault<z.ZodLiteral<"REGISTER">>;
|
|
20
24
|
registrationNumber: z.ZodOptional<z.ZodString>;
|
|
@@ -27,6 +31,8 @@ export declare const NotifyActionInput: z.ZodObject<{
|
|
|
27
31
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
28
32
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
29
33
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
35
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
30
36
|
type: z.ZodDefault<z.ZodLiteral<"NOTIFY">>;
|
|
31
37
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
32
38
|
}, z.core.$strip>;
|
|
@@ -38,6 +44,8 @@ export declare const DeclareActionInput: z.ZodObject<{
|
|
|
38
44
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
39
45
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
40
46
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
47
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
48
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
41
49
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
42
50
|
type: z.ZodDefault<z.ZodLiteral<"DECLARE">>;
|
|
43
51
|
}, z.core.$strip>;
|
|
@@ -48,6 +56,8 @@ export declare const EditActionInput: z.ZodObject<{
|
|
|
48
56
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
49
57
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
50
58
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
59
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
60
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
51
61
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
52
62
|
type: z.ZodDefault<z.ZodLiteral<"EDIT">>;
|
|
53
63
|
content: z.ZodObject<{
|
|
@@ -62,6 +72,8 @@ export declare const PrintCertificateActionInput: z.ZodObject<{
|
|
|
62
72
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
63
73
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
64
74
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
75
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
76
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
65
77
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
66
78
|
type: z.ZodDefault<z.ZodLiteral<"PRINT_CERTIFICATE">>;
|
|
67
79
|
content: z.ZodOptional<z.ZodObject<{
|
|
@@ -76,6 +88,8 @@ export declare const RejectDeclarationActionInput: z.ZodObject<{
|
|
|
76
88
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
77
89
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
78
90
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
91
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
92
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
79
93
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
80
94
|
type: z.ZodDefault<z.ZodLiteral<"REJECT">>;
|
|
81
95
|
content: z.ZodObject<{
|
|
@@ -90,6 +104,8 @@ export declare const DuplicateDetectedActionInput: z.ZodObject<{
|
|
|
90
104
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
91
105
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
92
106
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
107
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
108
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
93
109
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
94
110
|
type: z.ZodDefault<z.ZodLiteral<"DUPLICATE_DETECTED">>;
|
|
95
111
|
content: z.ZodObject<{
|
|
@@ -106,6 +122,8 @@ export declare const MarkAsDuplicateActionInput: z.ZodObject<{
|
|
|
106
122
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
107
123
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
108
124
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
125
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
126
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
109
127
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
110
128
|
type: z.ZodDefault<z.ZodLiteral<"MARK_AS_DUPLICATE">>;
|
|
111
129
|
content: z.ZodOptional<z.ZodObject<{
|
|
@@ -120,6 +138,8 @@ export declare const MarkNotDuplicateActionInput: z.ZodObject<{
|
|
|
120
138
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
121
139
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
122
140
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
141
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
142
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
123
143
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
124
144
|
type: z.ZodDefault<z.ZodLiteral<"MARK_AS_NOT_DUPLICATE">>;
|
|
125
145
|
}, z.core.$strip>;
|
|
@@ -131,6 +151,8 @@ export declare const ArchiveActionInput: z.ZodObject<{
|
|
|
131
151
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
132
152
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
133
153
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
154
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
155
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
134
156
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
135
157
|
type: z.ZodDefault<z.ZodLiteral<"ARCHIVE">>;
|
|
136
158
|
content: z.ZodObject<{
|
|
@@ -145,6 +167,8 @@ export declare const AssignActionInput: z.ZodObject<{
|
|
|
145
167
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
146
168
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
147
169
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
170
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
171
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
148
172
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
149
173
|
type: z.ZodLiteral<"ASSIGN">;
|
|
150
174
|
assignedTo: z.ZodString;
|
|
@@ -157,6 +181,8 @@ export declare const UnassignActionInput: z.ZodObject<{
|
|
|
157
181
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
158
182
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
159
183
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
184
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
185
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
160
186
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
161
187
|
type: z.ZodDefault<z.ZodLiteral<"UNASSIGN">>;
|
|
162
188
|
assignedTo: z.ZodDefault<z.ZodLiteral<null>>;
|
|
@@ -169,6 +195,8 @@ export declare const RequestCorrectionActionInput: z.ZodObject<{
|
|
|
169
195
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
170
196
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
171
197
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
198
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
199
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
172
200
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
173
201
|
type: z.ZodDefault<z.ZodLiteral<"REQUEST_CORRECTION">>;
|
|
174
202
|
}, z.core.$strip>;
|
|
@@ -180,6 +208,8 @@ export declare const RejectCorrectionActionInput: z.ZodObject<{
|
|
|
180
208
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
181
209
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
182
210
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
211
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
212
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
183
213
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
184
214
|
requestId: z.ZodString;
|
|
185
215
|
type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
|
|
@@ -195,6 +225,8 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<{
|
|
|
195
225
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
196
226
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
197
227
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
228
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
229
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
198
230
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
199
231
|
requestId: z.ZodString;
|
|
200
232
|
type: z.ZodDefault<z.ZodLiteral<"APPROVE_CORRECTION">>;
|
|
@@ -207,6 +239,8 @@ export declare const ReadActionInput: z.ZodObject<{
|
|
|
207
239
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
208
240
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
209
241
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
242
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
243
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
210
244
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
211
245
|
type: z.ZodDefault<z.ZodLiteral<"READ">>;
|
|
212
246
|
}, z.core.$strip>;
|
|
@@ -222,6 +256,8 @@ export declare const CustomActionInput: z.ZodObject<{
|
|
|
222
256
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
223
257
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
224
258
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
259
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
260
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
225
261
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
226
262
|
type: z.ZodDefault<z.ZodLiteral<"CUSTOM">>;
|
|
227
263
|
customActionType: z.ZodString;
|
|
@@ -242,6 +278,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
242
278
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
243
279
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
244
280
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
281
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
282
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
245
283
|
type: z.ZodDefault<z.ZodLiteral<"CREATE">>;
|
|
246
284
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
247
285
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -251,6 +289,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
251
289
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
252
290
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
253
291
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
292
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
293
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
254
294
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
255
295
|
type: z.ZodDefault<z.ZodLiteral<"REGISTER">>;
|
|
256
296
|
registrationNumber: z.ZodOptional<z.ZodString>;
|
|
@@ -261,6 +301,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
261
301
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
262
302
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
263
303
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
304
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
305
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
264
306
|
type: z.ZodDefault<z.ZodLiteral<"NOTIFY">>;
|
|
265
307
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
266
308
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -270,6 +312,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
270
312
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
271
313
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
272
314
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
315
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
316
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
273
317
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
274
318
|
type: z.ZodDefault<z.ZodLiteral<"DECLARE">>;
|
|
275
319
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -279,6 +323,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
279
323
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
280
324
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
281
325
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
326
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
327
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
282
328
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
283
329
|
type: z.ZodDefault<z.ZodLiteral<"REJECT">>;
|
|
284
330
|
content: z.ZodObject<{
|
|
@@ -291,6 +337,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
291
337
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
292
338
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
293
339
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
340
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
341
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
294
342
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
295
343
|
type: z.ZodDefault<z.ZodLiteral<"DUPLICATE_DETECTED">>;
|
|
296
344
|
content: z.ZodObject<{
|
|
@@ -306,6 +354,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
306
354
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
307
355
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
308
356
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
357
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
358
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
309
359
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
310
360
|
type: z.ZodDefault<z.ZodLiteral<"MARK_AS_DUPLICATE">>;
|
|
311
361
|
content: z.ZodOptional<z.ZodObject<{
|
|
@@ -318,6 +368,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
318
368
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
319
369
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
320
370
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
371
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
372
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
321
373
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
322
374
|
type: z.ZodDefault<z.ZodLiteral<"MARK_AS_NOT_DUPLICATE">>;
|
|
323
375
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -327,6 +379,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
327
379
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
328
380
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
329
381
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
382
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
383
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
330
384
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
331
385
|
type: z.ZodDefault<z.ZodLiteral<"ARCHIVE">>;
|
|
332
386
|
content: z.ZodObject<{
|
|
@@ -339,6 +393,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
339
393
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
340
394
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
341
395
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
396
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
397
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
342
398
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
343
399
|
type: z.ZodLiteral<"ASSIGN">;
|
|
344
400
|
assignedTo: z.ZodString;
|
|
@@ -349,6 +405,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
349
405
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
350
406
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
351
407
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
408
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
409
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
352
410
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
353
411
|
type: z.ZodDefault<z.ZodLiteral<"UNASSIGN">>;
|
|
354
412
|
assignedTo: z.ZodDefault<z.ZodLiteral<null>>;
|
|
@@ -359,6 +417,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
359
417
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
360
418
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
361
419
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
420
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
421
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
362
422
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
363
423
|
type: z.ZodDefault<z.ZodLiteral<"PRINT_CERTIFICATE">>;
|
|
364
424
|
content: z.ZodOptional<z.ZodObject<{
|
|
@@ -371,6 +431,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
371
431
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
372
432
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
373
433
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
434
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
435
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
374
436
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
375
437
|
type: z.ZodDefault<z.ZodLiteral<"REQUEST_CORRECTION">>;
|
|
376
438
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -380,6 +442,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
380
442
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
381
443
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
382
444
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
445
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
446
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
383
447
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
384
448
|
requestId: z.ZodString;
|
|
385
449
|
type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
|
|
@@ -393,6 +457,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
393
457
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
394
458
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
395
459
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
460
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
461
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
396
462
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
397
463
|
requestId: z.ZodString;
|
|
398
464
|
type: z.ZodDefault<z.ZodLiteral<"APPROVE_CORRECTION">>;
|
|
@@ -403,6 +469,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
403
469
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
404
470
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
405
471
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
472
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
473
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
406
474
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
407
475
|
type: z.ZodDefault<z.ZodLiteral<"READ">>;
|
|
408
476
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -412,6 +480,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
412
480
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
413
481
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
414
482
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
483
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
484
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
415
485
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
416
486
|
type: z.ZodDefault<z.ZodLiteral<"CUSTOM">>;
|
|
417
487
|
customActionType: z.ZodString;
|
|
@@ -422,6 +492,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
422
492
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
423
493
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
424
494
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
495
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
496
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
425
497
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
426
498
|
type: z.ZodDefault<z.ZodLiteral<"EDIT">>;
|
|
427
499
|
content: z.ZodObject<{
|
|
@@ -51,6 +51,8 @@ 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
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
55
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
54
56
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
55
57
|
type: z.ZodEnum<{
|
|
56
58
|
CUSTOM: "CUSTOM";
|
|
@@ -1723,6 +1723,7 @@ declare const AdministrativeAreaField: z.ZodObject<{
|
|
|
1723
1723
|
"user.read": "user.read";
|
|
1724
1724
|
"user.create": "user.create";
|
|
1725
1725
|
"user.edit": "user.edit";
|
|
1726
|
+
"user.search": "user.search";
|
|
1726
1727
|
workqueue: "workqueue";
|
|
1727
1728
|
"dashboard.view": "dashboard.view";
|
|
1728
1729
|
}>;
|
|
@@ -1842,6 +1843,7 @@ declare const LocationInput: z.ZodObject<{
|
|
|
1842
1843
|
"user.read": "user.read";
|
|
1843
1844
|
"user.create": "user.create";
|
|
1844
1845
|
"user.edit": "user.edit";
|
|
1846
|
+
"user.search": "user.search";
|
|
1845
1847
|
workqueue: "workqueue";
|
|
1846
1848
|
"dashboard.view": "dashboard.view";
|
|
1847
1849
|
}>;
|
|
@@ -2026,6 +2028,7 @@ declare const Facility: z.ZodObject<{
|
|
|
2026
2028
|
"user.read": "user.read";
|
|
2027
2029
|
"user.create": "user.create";
|
|
2028
2030
|
"user.edit": "user.edit";
|
|
2031
|
+
"user.search": "user.search";
|
|
2029
2032
|
workqueue: "workqueue";
|
|
2030
2033
|
"dashboard.view": "dashboard.view";
|
|
2031
2034
|
}>;
|
|
@@ -2131,6 +2134,7 @@ declare const Office: z.ZodObject<{
|
|
|
2131
2134
|
"user.read": "user.read";
|
|
2132
2135
|
"user.create": "user.create";
|
|
2133
2136
|
"user.edit": "user.edit";
|
|
2137
|
+
"user.search": "user.search";
|
|
2134
2138
|
workqueue: "workqueue";
|
|
2135
2139
|
"dashboard.view": "dashboard.view";
|
|
2136
2140
|
}>;
|
|
@@ -2323,6 +2327,7 @@ declare const Address: z.ZodObject<{
|
|
|
2323
2327
|
"user.read": "user.read";
|
|
2324
2328
|
"user.create": "user.create";
|
|
2325
2329
|
"user.edit": "user.edit";
|
|
2330
|
+
"user.search": "user.search";
|
|
2326
2331
|
workqueue: "workqueue";
|
|
2327
2332
|
"dashboard.view": "dashboard.view";
|
|
2328
2333
|
}>;
|
|
@@ -131,7 +131,7 @@ export declare function isPageVisible(page: PageConfig, formValues: ActionUpdate
|
|
|
131
131
|
* * @param validatorContext - custom validation context
|
|
132
132
|
* @returns {Partial<T>} A new object containing only the values for visible fields
|
|
133
133
|
*/
|
|
134
|
-
export declare function omitHiddenFields<T extends EventState | ActionUpdate>(fields: FieldConfig[], formValues: T, validatorContext: ValidatorContext, includeHiddenFieldsWithNullValues?: boolean
|
|
134
|
+
export declare function omitHiddenFields<T extends EventState | ActionUpdate>(fields: FieldConfig[], formValues: T, validatorContext: ValidatorContext, includeHiddenFieldsWithNullValues?: boolean): Partial<T>;
|
|
135
135
|
export declare function omitHiddenPaginatedFields<T extends EventState | ActionUpdate>(formConfig: FormConfig, values: T, validatorContext: ValidatorContext, includeHiddenFieldsWithNullValues?: boolean): Partial<Partial<T>>;
|
|
136
136
|
/**
|
|
137
137
|
*
|
|
@@ -298,12 +298,14 @@ var SystemScopeType = z6.enum([
|
|
|
298
298
|
"organisation.read-locations",
|
|
299
299
|
"user.read",
|
|
300
300
|
"user.create",
|
|
301
|
-
"user.edit"
|
|
301
|
+
"user.edit",
|
|
302
|
+
"user.search"
|
|
302
303
|
]);
|
|
303
304
|
var UserScopeType = SystemScopeType.extract([
|
|
304
305
|
"user.read",
|
|
305
306
|
"user.create",
|
|
306
|
-
"user.edit"
|
|
307
|
+
"user.edit",
|
|
308
|
+
"user.search"
|
|
307
309
|
]);
|
|
308
310
|
var ScopesWithRoleOption = UserScopeType.extract(["user.edit", "user.create"]);
|
|
309
311
|
var UserScopeV2 = z6.discriminatedUnion("type", [
|
|
@@ -312,7 +314,7 @@ var UserScopeV2 = z6.discriminatedUnion("type", [
|
|
|
312
314
|
options: AllUserScopeOptions.optional()
|
|
313
315
|
}),
|
|
314
316
|
z6.object({
|
|
315
|
-
type: UserScopeType.extract(["user.read"]),
|
|
317
|
+
type: UserScopeType.extract(["user.read", "user.search"]),
|
|
316
318
|
options: AccessLevelOptions.optional()
|
|
317
319
|
})
|
|
318
320
|
]);
|
package/dist/events/index.js
CHANGED
|
@@ -610,12 +610,14 @@ var SystemScopeType = z2.enum([
|
|
|
610
610
|
"organisation.read-locations",
|
|
611
611
|
"user.read",
|
|
612
612
|
"user.create",
|
|
613
|
-
"user.edit"
|
|
613
|
+
"user.edit",
|
|
614
|
+
"user.search"
|
|
614
615
|
]);
|
|
615
616
|
var UserScopeType = SystemScopeType.extract([
|
|
616
617
|
"user.read",
|
|
617
618
|
"user.create",
|
|
618
|
-
"user.edit"
|
|
619
|
+
"user.edit",
|
|
620
|
+
"user.search"
|
|
619
621
|
]);
|
|
620
622
|
var ScopesWithRoleOption = UserScopeType.extract(["user.edit", "user.create"]);
|
|
621
623
|
var UserScopeV2 = z2.discriminatedUnion("type", [
|
|
@@ -624,7 +626,7 @@ var UserScopeV2 = z2.discriminatedUnion("type", [
|
|
|
624
626
|
options: AllUserScopeOptions.optional()
|
|
625
627
|
}),
|
|
626
628
|
z2.object({
|
|
627
|
-
type: UserScopeType.extract(["user.read"]),
|
|
629
|
+
type: UserScopeType.extract(["user.read", "user.search"]),
|
|
628
630
|
options: AccessLevelOptions.optional()
|
|
629
631
|
})
|
|
630
632
|
]);
|
|
@@ -3802,6 +3804,9 @@ function precompileActionSchemas(eventConfigurations) {
|
|
|
3802
3804
|
function isAgeValue(value) {
|
|
3803
3805
|
return typeof value === "object" && value !== null && "age" in value && typeof value.age === "number";
|
|
3804
3806
|
}
|
|
3807
|
+
function mergeWithBaseFormState(values, context) {
|
|
3808
|
+
return { ...context.baseFormState, ...values };
|
|
3809
|
+
}
|
|
3805
3810
|
function validate(schema, data) {
|
|
3806
3811
|
const validator = ajv.getSchema(schema.$id) || ajv.compile(schema);
|
|
3807
3812
|
if ("$form" in data) {
|
|
@@ -3840,7 +3845,7 @@ function isOnline() {
|
|
|
3840
3845
|
}
|
|
3841
3846
|
function isConditionMet(conditional, values, context, eventIndex) {
|
|
3842
3847
|
return validate(conditional, {
|
|
3843
|
-
$form: values,
|
|
3848
|
+
$form: mergeWithBaseFormState(values, context),
|
|
3844
3849
|
$now: (0, import_date_fns.formatISO)(/* @__PURE__ */ new Date(), { representation: "date" }),
|
|
3845
3850
|
$online: isOnline(),
|
|
3846
3851
|
$user: context.user,
|
|
@@ -3869,7 +3874,7 @@ function isFieldConditionMet(field3, form, conditionalType, context) {
|
|
|
3869
3874
|
return true;
|
|
3870
3875
|
}
|
|
3871
3876
|
const validConditionals = getConditionalActionsForField(field3, {
|
|
3872
|
-
$form: form,
|
|
3877
|
+
$form: mergeWithBaseFormState(form, context),
|
|
3873
3878
|
$now: (0, import_date_fns.formatISO)(/* @__PURE__ */ new Date(), { representation: "date" }),
|
|
3874
3879
|
$online: isOnline(),
|
|
3875
3880
|
$user: context.user,
|
|
@@ -4061,7 +4066,7 @@ function runFieldValidations({
|
|
|
4061
4066
|
return [];
|
|
4062
4067
|
}
|
|
4063
4068
|
const conditionalParameters = {
|
|
4064
|
-
$form: form,
|
|
4069
|
+
$form: mergeWithBaseFormState(form, context),
|
|
4065
4070
|
$now: (0, import_date_fns.formatISO)(/* @__PURE__ */ new Date(), { representation: "date" }),
|
|
4066
4071
|
/**
|
|
4067
4072
|
* In real use cases, there can be hundreds of thousands of locations.
|
|
@@ -4305,17 +4310,16 @@ function isPageVisible(page, formValues, context) {
|
|
|
4305
4310
|
}
|
|
4306
4311
|
return isConditionMet(page.conditional, formValues, context);
|
|
4307
4312
|
}
|
|
4308
|
-
function omitHiddenFields(fields, formValues, validatorContext, includeHiddenFieldsWithNullValues = false
|
|
4313
|
+
function omitHiddenFields(fields, formValues, validatorContext, includeHiddenFieldsWithNullValues = false) {
|
|
4309
4314
|
const base = (0, import_lodash.cloneDeep)(formValues);
|
|
4310
4315
|
function fn(prevVisibilityContext) {
|
|
4311
|
-
const visibilityForm = declarationContext ? { ...declarationContext, ...prevVisibilityContext } : prevVisibilityContext;
|
|
4312
4316
|
const cleaned = (0, import_lodash.omitBy)(base, (value, fieldId) => {
|
|
4313
4317
|
const fieldConfig = fields.filter((f) => f.id === fieldId);
|
|
4314
4318
|
if (!fieldConfig.length) {
|
|
4315
4319
|
return false;
|
|
4316
4320
|
}
|
|
4317
4321
|
const isHidden = fieldConfig.every(
|
|
4318
|
-
(f) => !isFieldVisible(f,
|
|
4322
|
+
(f) => !isFieldVisible(f, prevVisibilityContext, validatorContext)
|
|
4319
4323
|
);
|
|
4320
4324
|
if (!isHidden) {
|
|
4321
4325
|
return false;
|
|
@@ -4333,7 +4337,7 @@ function omitHiddenPaginatedFields(formConfig, values, validatorContext, include
|
|
|
4333
4337
|
const visibleFields = formConfig.pages.filter((p) => isPageVisible(p, values, validatorContext)).flatMap((p) => p.fields);
|
|
4334
4338
|
const hiddenFields = formConfig.pages.filter((p) => !isPageVisible(p, values, validatorContext)).flatMap((p) => p.fields);
|
|
4335
4339
|
const valuesExceptHiddenPage = (0, import_lodash.omitBy)(values, (_2, fieldId) => {
|
|
4336
|
-
return hiddenFields.some((f) => f.id === fieldId);
|
|
4340
|
+
return hiddenFields.some((f) => f.id === fieldId) && !visibleFields.some((f) => f.id === fieldId);
|
|
4337
4341
|
});
|
|
4338
4342
|
return omitHiddenFields(
|
|
4339
4343
|
visibleFields,
|
|
@@ -4380,13 +4384,10 @@ function getVisibleVerificationPageIds(pages, annotation, context) {
|
|
|
4380
4384
|
}
|
|
4381
4385
|
function omitHiddenAnnotationFields(actionConfig, declaration, annotation, context) {
|
|
4382
4386
|
const annotationFields = getActionAnnotationFields(actionConfig);
|
|
4383
|
-
return omitHiddenFields(
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
false,
|
|
4388
|
-
declaration
|
|
4389
|
-
);
|
|
4387
|
+
return omitHiddenFields(annotationFields, annotation, {
|
|
4388
|
+
...context,
|
|
4389
|
+
baseFormState: declaration
|
|
4390
|
+
});
|
|
4390
4391
|
}
|
|
4391
4392
|
function deepMerge(currentDocument, actionDocument) {
|
|
4392
4393
|
const currentDocumentClone = (0, import_lodash.cloneDeep)(currentDocument);
|
|
@@ -5898,6 +5899,8 @@ var BaseActionInput = z38.object({
|
|
|
5898
5899
|
originalActionId: UUID.optional(),
|
|
5899
5900
|
// should not be part of base action.
|
|
5900
5901
|
keepAssignment: z38.boolean().optional(),
|
|
5902
|
+
keepAssignmentIfAccepted: z38.boolean().optional(),
|
|
5903
|
+
keepAssignmentIfRejected: z38.boolean().optional(),
|
|
5901
5904
|
// For normal users, the createdAtLocation is resolved on the backend from the user's primaryOfficeId.
|
|
5902
5905
|
// @TODO: createdAtLocation should be limited to actions that system users can perform. For normal users, it should not be part of the base action.
|
|
5903
5906
|
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":"AAycA,iBAAe,IAAI,kBAiDlB;AAED,OAAO,EAAE,IAAI,EAAE,CAAA"}
|