@opencrvs/toolkit 2.0.0-rc.cfdbeba → 2.0.0-rc.d1ea58b
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 +21 -29
- package/dist/cli.js +507 -171
- package/dist/commons/api/router.d.ts +3321 -267
- 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 +108 -0
- package/dist/commons/events/Draft.d.ts +3 -0
- package/dist/commons/events/EventIndex.d.ts +0 -3
- package/dist/commons/events/EventMetadata.d.ts +0 -7
- package/dist/commons/events/FieldConfig.d.ts +5 -0
- package/dist/commons/events/locations.d.ts +21 -0
- package/dist/commons/events/mocks.test.utils.d.ts +19 -0
- package/dist/commons/events/scopes.d.ts +24 -1
- package/dist/commons/events/state/index.d.ts +0 -4
- package/dist/commons/events/state/utils.d.ts +0 -2
- package/dist/commons/events/utils.d.ts +1 -1
- package/dist/conditionals/index.js +8 -4
- package/dist/events/index.js +92 -59
- 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/fix-accept-requested-registration-function-type.d.ts +3 -0
- package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.d.ts.map +1 -0
- package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.js +110 -0
- 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 +505 -169
- 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-scopes.d.ts.map +1 -1
- package/dist/migrations/v2.0/migrate-scopes.js +54 -30
- 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 +24 -29
- package/dist/scopes/index.d.ts +6 -1
- package/dist/scopes/index.js +8 -4
- package/opencrvs-toolkit-2.0.0-rc.d1ea58b.tgz +0 -0
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/opencrvs-toolkit-2.0.0-rc.cfdbeba.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,9 @@ 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>;
|
|
11
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
9
12
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
10
13
|
}, z.core.$strip>;
|
|
11
14
|
export declare const RegisterActionInput: z.ZodObject<{
|
|
@@ -15,6 +18,9 @@ export declare const RegisterActionInput: z.ZodObject<{
|
|
|
15
18
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
16
19
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
17
20
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
21
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
18
24
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
19
25
|
type: z.ZodDefault<z.ZodLiteral<"REGISTER">>;
|
|
20
26
|
registrationNumber: z.ZodOptional<z.ZodString>;
|
|
@@ -27,6 +33,9 @@ export declare const NotifyActionInput: z.ZodObject<{
|
|
|
27
33
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
28
34
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
29
35
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
36
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
37
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
38
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
30
39
|
type: z.ZodDefault<z.ZodLiteral<"NOTIFY">>;
|
|
31
40
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
32
41
|
}, z.core.$strip>;
|
|
@@ -38,6 +47,9 @@ export declare const DeclareActionInput: z.ZodObject<{
|
|
|
38
47
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
39
48
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
40
49
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
50
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
51
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
52
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
41
53
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
42
54
|
type: z.ZodDefault<z.ZodLiteral<"DECLARE">>;
|
|
43
55
|
}, z.core.$strip>;
|
|
@@ -48,6 +60,9 @@ export declare const EditActionInput: z.ZodObject<{
|
|
|
48
60
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
49
61
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
50
62
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
63
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
64
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
65
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
51
66
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
52
67
|
type: z.ZodDefault<z.ZodLiteral<"EDIT">>;
|
|
53
68
|
content: z.ZodObject<{
|
|
@@ -62,6 +77,9 @@ export declare const PrintCertificateActionInput: z.ZodObject<{
|
|
|
62
77
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
63
78
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
64
79
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
80
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
81
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
82
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
65
83
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
66
84
|
type: z.ZodDefault<z.ZodLiteral<"PRINT_CERTIFICATE">>;
|
|
67
85
|
content: z.ZodOptional<z.ZodObject<{
|
|
@@ -76,6 +94,9 @@ export declare const RejectDeclarationActionInput: z.ZodObject<{
|
|
|
76
94
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
77
95
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
78
96
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
97
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
98
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
99
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
79
100
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
80
101
|
type: z.ZodDefault<z.ZodLiteral<"REJECT">>;
|
|
81
102
|
content: z.ZodObject<{
|
|
@@ -90,6 +111,9 @@ export declare const DuplicateDetectedActionInput: z.ZodObject<{
|
|
|
90
111
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
91
112
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
92
113
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
114
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
115
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
116
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
93
117
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
94
118
|
type: z.ZodDefault<z.ZodLiteral<"DUPLICATE_DETECTED">>;
|
|
95
119
|
content: z.ZodObject<{
|
|
@@ -106,6 +130,9 @@ export declare const MarkAsDuplicateActionInput: z.ZodObject<{
|
|
|
106
130
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
107
131
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
108
132
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
133
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
134
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
135
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
109
136
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
110
137
|
type: z.ZodDefault<z.ZodLiteral<"MARK_AS_DUPLICATE">>;
|
|
111
138
|
content: z.ZodOptional<z.ZodObject<{
|
|
@@ -120,6 +147,9 @@ export declare const MarkNotDuplicateActionInput: z.ZodObject<{
|
|
|
120
147
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
121
148
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
122
149
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
150
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
151
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
152
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
123
153
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
124
154
|
type: z.ZodDefault<z.ZodLiteral<"MARK_AS_NOT_DUPLICATE">>;
|
|
125
155
|
}, z.core.$strip>;
|
|
@@ -131,6 +161,9 @@ export declare const ArchiveActionInput: z.ZodObject<{
|
|
|
131
161
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
132
162
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
133
163
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
164
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
165
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
166
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
134
167
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
135
168
|
type: z.ZodDefault<z.ZodLiteral<"ARCHIVE">>;
|
|
136
169
|
content: z.ZodObject<{
|
|
@@ -145,6 +178,9 @@ export declare const AssignActionInput: z.ZodObject<{
|
|
|
145
178
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
146
179
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
147
180
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
181
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
182
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
183
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
148
184
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
149
185
|
type: z.ZodLiteral<"ASSIGN">;
|
|
150
186
|
assignedTo: z.ZodString;
|
|
@@ -157,6 +193,9 @@ export declare const UnassignActionInput: z.ZodObject<{
|
|
|
157
193
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
158
194
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
159
195
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
196
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
197
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
198
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
160
199
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
161
200
|
type: z.ZodDefault<z.ZodLiteral<"UNASSIGN">>;
|
|
162
201
|
assignedTo: z.ZodDefault<z.ZodLiteral<null>>;
|
|
@@ -169,6 +208,9 @@ export declare const RequestCorrectionActionInput: z.ZodObject<{
|
|
|
169
208
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
170
209
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
171
210
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
211
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
212
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
213
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
172
214
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
173
215
|
type: z.ZodDefault<z.ZodLiteral<"REQUEST_CORRECTION">>;
|
|
174
216
|
}, z.core.$strip>;
|
|
@@ -180,6 +222,9 @@ export declare const RejectCorrectionActionInput: z.ZodObject<{
|
|
|
180
222
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
181
223
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
182
224
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
225
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
226
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
227
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
183
228
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
184
229
|
requestId: z.ZodString;
|
|
185
230
|
type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
|
|
@@ -195,6 +240,9 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<{
|
|
|
195
240
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
196
241
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
197
242
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
243
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
244
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
245
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
198
246
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
199
247
|
requestId: z.ZodString;
|
|
200
248
|
type: z.ZodDefault<z.ZodLiteral<"APPROVE_CORRECTION">>;
|
|
@@ -207,6 +255,9 @@ export declare const ReadActionInput: z.ZodObject<{
|
|
|
207
255
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
208
256
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
209
257
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
258
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
259
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
260
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
210
261
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
211
262
|
type: z.ZodDefault<z.ZodLiteral<"READ">>;
|
|
212
263
|
}, z.core.$strip>;
|
|
@@ -222,6 +273,9 @@ export declare const CustomActionInput: z.ZodObject<{
|
|
|
222
273
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
223
274
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
224
275
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
276
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
277
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
278
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
225
279
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
226
280
|
type: z.ZodDefault<z.ZodLiteral<"CUSTOM">>;
|
|
227
281
|
customActionType: z.ZodString;
|
|
@@ -242,6 +296,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
242
296
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
243
297
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
244
298
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
299
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
300
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
301
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
245
302
|
type: z.ZodDefault<z.ZodLiteral<"CREATE">>;
|
|
246
303
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
247
304
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -251,6 +308,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
251
308
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
252
309
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
253
310
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
311
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
312
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
313
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
254
314
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
255
315
|
type: z.ZodDefault<z.ZodLiteral<"REGISTER">>;
|
|
256
316
|
registrationNumber: z.ZodOptional<z.ZodString>;
|
|
@@ -261,6 +321,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
261
321
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
262
322
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
263
323
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
324
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
325
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
326
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
264
327
|
type: z.ZodDefault<z.ZodLiteral<"NOTIFY">>;
|
|
265
328
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
266
329
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -270,6 +333,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
270
333
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
271
334
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
272
335
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
336
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
337
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
338
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
273
339
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
274
340
|
type: z.ZodDefault<z.ZodLiteral<"DECLARE">>;
|
|
275
341
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -279,6 +345,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
279
345
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
280
346
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
281
347
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
348
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
349
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
350
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
282
351
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
283
352
|
type: z.ZodDefault<z.ZodLiteral<"REJECT">>;
|
|
284
353
|
content: z.ZodObject<{
|
|
@@ -291,6 +360,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
291
360
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
292
361
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
293
362
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
363
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
364
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
365
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
294
366
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
295
367
|
type: z.ZodDefault<z.ZodLiteral<"DUPLICATE_DETECTED">>;
|
|
296
368
|
content: z.ZodObject<{
|
|
@@ -306,6 +378,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
306
378
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
307
379
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
308
380
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
381
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
382
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
383
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
309
384
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
310
385
|
type: z.ZodDefault<z.ZodLiteral<"MARK_AS_DUPLICATE">>;
|
|
311
386
|
content: z.ZodOptional<z.ZodObject<{
|
|
@@ -318,6 +393,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
318
393
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
319
394
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
320
395
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
396
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
397
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
398
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
321
399
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
322
400
|
type: z.ZodDefault<z.ZodLiteral<"MARK_AS_NOT_DUPLICATE">>;
|
|
323
401
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -327,6 +405,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
327
405
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
328
406
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
329
407
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
408
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
409
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
410
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
330
411
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
331
412
|
type: z.ZodDefault<z.ZodLiteral<"ARCHIVE">>;
|
|
332
413
|
content: z.ZodObject<{
|
|
@@ -339,6 +420,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
339
420
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
340
421
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
341
422
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
423
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
424
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
425
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
342
426
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
343
427
|
type: z.ZodLiteral<"ASSIGN">;
|
|
344
428
|
assignedTo: z.ZodString;
|
|
@@ -349,6 +433,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
349
433
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
350
434
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
351
435
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
436
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
437
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
438
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
352
439
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
353
440
|
type: z.ZodDefault<z.ZodLiteral<"UNASSIGN">>;
|
|
354
441
|
assignedTo: z.ZodDefault<z.ZodLiteral<null>>;
|
|
@@ -359,6 +446,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
359
446
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
360
447
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
361
448
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
449
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
450
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
451
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
362
452
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
363
453
|
type: z.ZodDefault<z.ZodLiteral<"PRINT_CERTIFICATE">>;
|
|
364
454
|
content: z.ZodOptional<z.ZodObject<{
|
|
@@ -371,6 +461,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
371
461
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
372
462
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
373
463
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
464
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
465
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
466
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
374
467
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
375
468
|
type: z.ZodDefault<z.ZodLiteral<"REQUEST_CORRECTION">>;
|
|
376
469
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -380,6 +473,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
380
473
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
381
474
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
382
475
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
476
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
477
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
478
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
383
479
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
384
480
|
requestId: z.ZodString;
|
|
385
481
|
type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
|
|
@@ -393,6 +489,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
393
489
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
394
490
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
395
491
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
492
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
493
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
494
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
396
495
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
397
496
|
requestId: z.ZodString;
|
|
398
497
|
type: z.ZodDefault<z.ZodLiteral<"APPROVE_CORRECTION">>;
|
|
@@ -403,6 +502,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
403
502
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
404
503
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
405
504
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
505
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
506
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
507
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
406
508
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
407
509
|
type: z.ZodDefault<z.ZodLiteral<"READ">>;
|
|
408
510
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -412,6 +514,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
412
514
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
413
515
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
414
516
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
517
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
518
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
519
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
415
520
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
416
521
|
type: z.ZodDefault<z.ZodLiteral<"CUSTOM">>;
|
|
417
522
|
customActionType: z.ZodString;
|
|
@@ -422,6 +527,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
422
527
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
423
528
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
424
529
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
530
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
531
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
532
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
425
533
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
426
534
|
type: z.ZodDefault<z.ZodLiteral<"EDIT">>;
|
|
427
535
|
content: z.ZodObject<{
|
|
@@ -51,6 +51,9 @@ 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>;
|
|
56
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
54
57
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
55
58
|
type: z.ZodEnum<{
|
|
56
59
|
CUSTOM: "CUSTOM";
|
|
@@ -20,7 +20,6 @@ export declare const EventIndex: z.ZodObject<{
|
|
|
20
20
|
}>>>;
|
|
21
21
|
acceptedAt: z.ZodISODateTime;
|
|
22
22
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
23
|
-
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
23
|
}, z.core.$strip>>>;
|
|
25
24
|
REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
26
25
|
createdAt: z.ZodISODateTime;
|
|
@@ -32,7 +31,6 @@ export declare const EventIndex: z.ZodObject<{
|
|
|
32
31
|
}>>>;
|
|
33
32
|
acceptedAt: z.ZodISODateTime;
|
|
34
33
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
35
|
-
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
34
|
registrationNumber: z.ZodString;
|
|
37
35
|
}, z.core.$strip>>>;
|
|
38
36
|
}, z.core.$strip>;
|
|
@@ -46,7 +44,6 @@ export declare const EventIndex: z.ZodObject<{
|
|
|
46
44
|
}>>>;
|
|
47
45
|
updatedByUserRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
46
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
49
|
-
createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
|
|
50
47
|
updatedAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
51
48
|
updatedAt: z.ZodISODateTime;
|
|
52
49
|
assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -23,7 +23,6 @@ export declare const ActionCreationMetadata: z.ZodObject<{
|
|
|
23
23
|
}>>>;
|
|
24
24
|
acceptedAt: z.ZodISODateTime;
|
|
25
25
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
26
|
-
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
26
|
}, z.core.$strip>;
|
|
28
27
|
export type ActionCreationMetadata = z.infer<typeof ActionCreationMetadata>;
|
|
29
28
|
export declare const RegistrationCreationMetadata: z.ZodObject<{
|
|
@@ -36,7 +35,6 @@ export declare const RegistrationCreationMetadata: z.ZodObject<{
|
|
|
36
35
|
}>>>;
|
|
37
36
|
acceptedAt: z.ZodISODateTime;
|
|
38
37
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
39
|
-
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
38
|
registrationNumber: z.ZodString;
|
|
41
39
|
}, z.core.$strip>;
|
|
42
40
|
export type RegistrationCreationMetadata = z.infer<typeof RegistrationCreationMetadata>;
|
|
@@ -51,7 +49,6 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
|
51
49
|
}>>>;
|
|
52
50
|
acceptedAt: z.ZodISODateTime;
|
|
53
51
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
54
|
-
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
52
|
}, z.core.$strip>>>;
|
|
56
53
|
REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
57
54
|
createdAt: z.ZodISODateTime;
|
|
@@ -63,7 +60,6 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
|
63
60
|
}>>>;
|
|
64
61
|
acceptedAt: z.ZodISODateTime;
|
|
65
62
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
66
|
-
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
63
|
registrationNumber: z.ZodString;
|
|
68
64
|
}, z.core.$strip>>>;
|
|
69
65
|
}, z.core.$strip>;
|
|
@@ -93,7 +89,6 @@ export declare const EventMetadata: z.ZodObject<{
|
|
|
93
89
|
}>>>;
|
|
94
90
|
acceptedAt: z.ZodISODateTime;
|
|
95
91
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
96
|
-
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
97
92
|
}, z.core.$strip>>>;
|
|
98
93
|
REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
99
94
|
createdAt: z.ZodISODateTime;
|
|
@@ -105,7 +100,6 @@ export declare const EventMetadata: z.ZodObject<{
|
|
|
105
100
|
}>>>;
|
|
106
101
|
acceptedAt: z.ZodISODateTime;
|
|
107
102
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
108
|
-
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
109
103
|
registrationNumber: z.ZodString;
|
|
110
104
|
}, z.core.$strip>>>;
|
|
111
105
|
}, z.core.$strip>;
|
|
@@ -119,7 +113,6 @@ export declare const EventMetadata: z.ZodObject<{
|
|
|
119
113
|
}>>>;
|
|
120
114
|
updatedByUserRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
121
115
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
122
|
-
createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
|
|
123
116
|
updatedAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
124
117
|
updatedAt: z.ZodISODateTime;
|
|
125
118
|
assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -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
|
}>;
|
|
@@ -73,5 +73,26 @@ export declare function canAccessOtherUserWithScopes({ scopes, userToAccess, use
|
|
|
73
73
|
* One of the scopes must allow access for the event to be accessible.
|
|
74
74
|
*/
|
|
75
75
|
export declare function userCanAccessEventWithScopes(event: Partial<EventIndexWithAdministrativeHierarchy>, scopes: RecordScopeV2[], user: UserContext | SystemContext, customActionType?: string): boolean;
|
|
76
|
+
export declare function getAdministrativeAreaHierarchy(administrativeAreaId: string | undefined | null, administrativeAreas: Map<UUID, AdministrativeArea>): {
|
|
77
|
+
id: string & z.core.$brand<"UUID">;
|
|
78
|
+
name: string;
|
|
79
|
+
parentId: (string & z.core.$brand<"UUID">) | null;
|
|
80
|
+
validUntil: string | null;
|
|
81
|
+
externalId?: string | null | undefined;
|
|
82
|
+
}[];
|
|
83
|
+
/**
|
|
84
|
+
* Resolves a location or administrative area UUID into a root-first hierarchy of UUIDs.
|
|
85
|
+
*
|
|
86
|
+
* If the ID refers to a `Location` (e.g. CRVS office), the hierarchy includes
|
|
87
|
+
* the administrative area ancestors followed by the location itself.
|
|
88
|
+
* If the ID refers to an `AdministrativeArea`, returns the area's ancestor chain (root-first).
|
|
89
|
+
*
|
|
90
|
+
* Uses `getAdministrativeAreaHierarchy` which returns leaf-first order,
|
|
91
|
+
* so the result is reversed to match the root-first convention used by the server.
|
|
92
|
+
*/
|
|
93
|
+
export declare function getLocationHierarchy(selectedId: UUID, context: {
|
|
94
|
+
administrativeAreas: Map<UUID, AdministrativeArea>;
|
|
95
|
+
locations: Map<UUID, Location>;
|
|
96
|
+
}): UUID[];
|
|
76
97
|
export {};
|
|
77
98
|
//# sourceMappingURL=locations.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AdministrativeArea, Location } from './locations';
|
|
2
|
+
export declare const V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS: AdministrativeArea[];
|
|
3
|
+
export declare const V2_DEFAULT_MOCK_LOCATIONS: Location[];
|
|
4
|
+
export declare const V2_DEFAULT_MOCK_LOCATIONS_MAP: Map<string & import("zod").$brand<"UUID">, {
|
|
5
|
+
id: string & import("zod").$brand<"UUID">;
|
|
6
|
+
name: string;
|
|
7
|
+
administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
|
|
8
|
+
validUntil: string | null;
|
|
9
|
+
locationType: string | null;
|
|
10
|
+
externalId?: string | null | undefined;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS_MAP: Map<string & import("zod").$brand<"UUID">, {
|
|
13
|
+
id: string & import("zod").$brand<"UUID">;
|
|
14
|
+
name: string;
|
|
15
|
+
parentId: (string & import("zod").$brand<"UUID">) | null;
|
|
16
|
+
validUntil: string | null;
|
|
17
|
+
externalId?: string | null | undefined;
|
|
18
|
+
}>;
|
|
19
|
+
//# sourceMappingURL=mocks.test.utils.d.ts.map
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { DisplayableAction } from './ActionType';
|
|
2
|
-
import { EncodedScope } from '../scopes';
|
|
2
|
+
import { EncodedScope, UserScopeV2 } from '../scopes';
|
|
3
3
|
import { EventIndexWithAdministrativeHierarchy } from './locations';
|
|
4
4
|
import { UserContext } from '../users/User';
|
|
5
5
|
import { EventIndex } from './EventIndex';
|
|
6
|
+
import { UUID } from 'src/uuid';
|
|
6
7
|
export declare const ACTION_SCOPE_MAP: {
|
|
7
8
|
READ: "record.read"[];
|
|
8
9
|
CREATE: "record.create"[];
|
|
@@ -53,4 +54,26 @@ export declare function isActionInScope({ scopes, action, event, currentUser }:
|
|
|
53
54
|
event: EventIndexWithAdministrativeHierarchy;
|
|
54
55
|
currentUser: UserContext;
|
|
55
56
|
}): boolean;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
*
|
|
60
|
+
* @param allRoles - All possible roles in the system
|
|
61
|
+
* @param userLocation - The location and role information of the user whose role options are being determined
|
|
62
|
+
* @param acceptedScopes - The scopes of the user requesting the role update, used to determine which roles they can assign.
|
|
63
|
+
* @param userRequesting - The user context of the user requesting the role update, used to check location-based access to the target user's location.
|
|
64
|
+
*
|
|
65
|
+
* @returns An array of roles that the requesting user is allowed to assign to the target user based on their scopes and location
|
|
66
|
+
*
|
|
67
|
+
* 1) Used to determine which roles should be available in the dropdown when a user is editing another user's role in the user management interface.
|
|
68
|
+
* 2) Used to check if payload includes valid role.
|
|
69
|
+
*/
|
|
70
|
+
export declare function getAvailableRolesForUserUpdatePayload({ allRoles, userLocation, acceptedScopes, userRequesting }: {
|
|
71
|
+
allRoles: string[];
|
|
72
|
+
userRequesting: UserContext;
|
|
73
|
+
acceptedScopes: UserScopeV2[];
|
|
74
|
+
userLocation: {
|
|
75
|
+
administrativeHierarchy: UUID[];
|
|
76
|
+
primaryOfficeId: UUID;
|
|
77
|
+
};
|
|
78
|
+
}): string[];
|
|
56
79
|
//# sourceMappingURL=scopes.d.ts.map
|