@opencrvs/toolkit 2.0.0-rc.e697813 → 2.0.0-rc.e6d7626
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 +53 -31
- package/dist/cli.js +1860 -346
- package/dist/commons/api/router.d.ts +3009 -270
- package/dist/commons/application-config/index.d.ts +16 -4
- package/dist/commons/conditionals/conditionals.d.ts +6 -6
- 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/FieldConfig.d.ts +10 -0
- package/dist/commons/events/locations.d.ts +38 -1
- package/dist/commons/events/mocks.test.utils.d.ts +19 -0
- package/dist/commons/events/scopes.d.ts +24 -1
- package/dist/commons/events/utils.d.ts +1 -1
- package/dist/conditionals/index.js +37 -7
- package/dist/events/index.js +158 -41
- 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 +63 -39
- package/dist/migrations/v2.0/add-resend-invite-notification.d.ts +3 -0
- package/dist/migrations/v2.0/add-resend-invite-notification.d.ts.map +1 -0
- package/dist/migrations/v2.0/add-resend-invite-notification.js +373 -0
- package/dist/migrations/v2.0/checkout-upstream-files.d.ts +19 -0
- package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -1
- package/dist/migrations/v2.0/checkout-upstream-files.js +17 -14
- package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +1 -1
- package/dist/migrations/v2.0/convert-config-files-to-ts.js +4 -5
- package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts.map +1 -1
- package/dist/migrations/v2.0/convert-paragraph-to-heading.js +4 -5
- package/dist/migrations/v2.0/create-events-index.d.ts.map +1 -1
- package/dist/migrations/v2.0/create-events-index.js +1 -2
- package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts +11 -0
- package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts.map +1 -0
- package/dist/migrations/v2.0/delete-infrastructure-directory.js +123 -0
- package/dist/migrations/v2.0/index.d.ts +10 -4
- package/dist/migrations/v2.0/index.d.ts.map +1 -1
- package/dist/migrations/v2.0/index.js +1828 -343
- 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 +95 -7
- package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts +13 -0
- package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts.map +1 -0
- package/dist/migrations/v2.0/merge-infrastructure-directory.js +222 -0
- package/dist/migrations/v2.0/migrate-application-config-url.d.ts +3 -0
- package/dist/migrations/v2.0/migrate-application-config-url.d.ts.map +1 -0
- package/dist/migrations/v2.0/migrate-application-config-url.js +342 -0
- package/dist/migrations/v2.0/migrate-scopes.d.ts.map +1 -1
- package/dist/migrations/v2.0/migrate-scopes.js +55 -32
- package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts.map +1 -1
- package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.js +3 -4
- package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +1 -1
- package/dist/migrations/v2.0/migrate-workqueue-configs.js +143 -63
- package/dist/migrations/v2.0/remove-delete-actions.d.ts.map +1 -1
- package/dist/migrations/v2.0/remove-delete-actions.js +3 -4
- package/dist/migrations/v2.0/remove-demo-scope.d.ts.map +1 -1
- package/dist/migrations/v2.0/remove-demo-scope.js +2 -3
- package/dist/migrations/v2.0/remove-deprecated-imports.d.ts.map +1 -1
- package/dist/migrations/v2.0/remove-deprecated-imports.js +3 -4
- package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts +3 -0
- package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-fhir-url-helpers.js +163 -0
- package/dist/migrations/v2.0/remove-hearth-migrations.d.ts.map +1 -1
- package/dist/migrations/v2.0/remove-hearth-migrations.js +1 -2
- package/dist/migrations/v2.0/remove-old-statistics-service.d.ts +3 -0
- package/dist/migrations/v2.0/remove-old-statistics-service.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-old-statistics-service.js +356 -0
- package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts.map +1 -1
- package/dist/migrations/v2.0/remove-pending-certification-flag.js +3 -4
- package/dist/migrations/v2.0/remove-review-from-register-action.d.ts.map +1 -1
- package/dist/migrations/v2.0/remove-review-from-register-action.js +3 -4
- package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts +3 -0
- package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-unused-environment-variables.js +186 -0
- package/dist/migrations/v2.0/rename-api-paths.d.ts.map +1 -1
- package/dist/migrations/v2.0/rename-api-paths.js +3 -4
- package/dist/migrations/v2.0/rename-location-parent-id.d.ts.map +1 -1
- package/dist/migrations/v2.0/rename-location-parent-id.js +3 -4
- package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts.map +1 -1
- package/dist/migrations/v2.0/simplify-analytics-precalculations.js +1 -2
- package/dist/migrations/v2.0/update-package-json.d.ts +3 -0
- package/dist/migrations/v2.0/update-package-json.d.ts.map +1 -0
- package/dist/migrations/v2.0/update-package-json.js +105 -0
- package/dist/notification/index.js +52 -27
- package/dist/scopes/index.d.ts +87 -10
- package/dist/scopes/index.js +43 -8
- package/opencrvs-toolkit-2.0.0-rc.e6d7626.tgz +0 -0
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/opencrvs-toolkit-2.0.0-rc.e697813.tgz +0 -0
|
@@ -24,8 +24,14 @@ export declare const ApplicationConfig: z.ZodObject<{
|
|
|
24
24
|
label: z.ZodObject<import("./events/TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
25
25
|
}, z.core.$strip>>;
|
|
26
26
|
PHONE_NUMBER_PATTERN: z.ZodUnion<[z.ZodString, z.ZodCustom<RegExp, RegExp>]>;
|
|
27
|
-
USER_NOTIFICATION_DELIVERY_METHOD: z.
|
|
28
|
-
|
|
27
|
+
USER_NOTIFICATION_DELIVERY_METHOD: z.ZodEnum<{
|
|
28
|
+
email: "email";
|
|
29
|
+
sms: "sms";
|
|
30
|
+
}>;
|
|
31
|
+
INFORMANT_NOTIFICATION_DELIVERY_METHOD: z.ZodEnum<{
|
|
32
|
+
email: "email";
|
|
33
|
+
sms: "sms";
|
|
34
|
+
}>;
|
|
29
35
|
SEARCH_DEFAULT_CRITERIA: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
30
36
|
NAME: "NAME";
|
|
31
37
|
EMAIL: "EMAIL";
|
|
@@ -46,8 +52,14 @@ export declare const BackgroundConfig: z.ZodObject<{
|
|
|
46
52
|
export declare const LoginConfig: z.ZodObject<{
|
|
47
53
|
COUNTRY: z.ZodString;
|
|
48
54
|
LANGUAGES: z.ZodArray<z.ZodString>;
|
|
49
|
-
USER_NOTIFICATION_DELIVERY_METHOD: z.
|
|
50
|
-
|
|
55
|
+
USER_NOTIFICATION_DELIVERY_METHOD: z.ZodEnum<{
|
|
56
|
+
email: "email";
|
|
57
|
+
sms: "sms";
|
|
58
|
+
}>;
|
|
59
|
+
INFORMANT_NOTIFICATION_DELIVERY_METHOD: z.ZodEnum<{
|
|
60
|
+
email: "email";
|
|
61
|
+
sms: "sms";
|
|
62
|
+
}>;
|
|
51
63
|
PHONE_NUMBER_PATTERN: z.ZodUnion<[z.ZodString, z.ZodCustom<RegExp, RegExp>]>;
|
|
52
64
|
LOGIN_BACKGROUND: z.ZodObject<{
|
|
53
65
|
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
@@ -86,17 +86,17 @@ 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";
|
|
90
|
-
$option: "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
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
|
+
$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";
|
|
95
|
-
$option: "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
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
|
+
$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";
|
|
99
|
-
$option: "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
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
|
+
$option: "role" | "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
100
100
|
};
|
|
101
101
|
};
|
|
102
102
|
};
|
|
@@ -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";
|
|
@@ -1723,10 +1723,12 @@ 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
|
}>;
|
|
1729
1730
|
$option: z.ZodEnum<{
|
|
1731
|
+
role: "role";
|
|
1730
1732
|
event: "event";
|
|
1731
1733
|
placeOfEvent: "placeOfEvent";
|
|
1732
1734
|
declaredIn: "declaredIn";
|
|
@@ -1841,10 +1843,12 @@ declare const LocationInput: z.ZodObject<{
|
|
|
1841
1843
|
"user.read": "user.read";
|
|
1842
1844
|
"user.create": "user.create";
|
|
1843
1845
|
"user.edit": "user.edit";
|
|
1846
|
+
"user.search": "user.search";
|
|
1844
1847
|
workqueue: "workqueue";
|
|
1845
1848
|
"dashboard.view": "dashboard.view";
|
|
1846
1849
|
}>;
|
|
1847
1850
|
$option: z.ZodEnum<{
|
|
1851
|
+
role: "role";
|
|
1848
1852
|
event: "event";
|
|
1849
1853
|
placeOfEvent: "placeOfEvent";
|
|
1850
1854
|
declaredIn: "declaredIn";
|
|
@@ -2024,10 +2028,12 @@ declare const Facility: z.ZodObject<{
|
|
|
2024
2028
|
"user.read": "user.read";
|
|
2025
2029
|
"user.create": "user.create";
|
|
2026
2030
|
"user.edit": "user.edit";
|
|
2031
|
+
"user.search": "user.search";
|
|
2027
2032
|
workqueue: "workqueue";
|
|
2028
2033
|
"dashboard.view": "dashboard.view";
|
|
2029
2034
|
}>;
|
|
2030
2035
|
$option: z.ZodEnum<{
|
|
2036
|
+
role: "role";
|
|
2031
2037
|
event: "event";
|
|
2032
2038
|
placeOfEvent: "placeOfEvent";
|
|
2033
2039
|
declaredIn: "declaredIn";
|
|
@@ -2128,10 +2134,12 @@ declare const Office: z.ZodObject<{
|
|
|
2128
2134
|
"user.read": "user.read";
|
|
2129
2135
|
"user.create": "user.create";
|
|
2130
2136
|
"user.edit": "user.edit";
|
|
2137
|
+
"user.search": "user.search";
|
|
2131
2138
|
workqueue: "workqueue";
|
|
2132
2139
|
"dashboard.view": "dashboard.view";
|
|
2133
2140
|
}>;
|
|
2134
2141
|
$option: z.ZodEnum<{
|
|
2142
|
+
role: "role";
|
|
2135
2143
|
event: "event";
|
|
2136
2144
|
placeOfEvent: "placeOfEvent";
|
|
2137
2145
|
declaredIn: "declaredIn";
|
|
@@ -2319,10 +2327,12 @@ declare const Address: z.ZodObject<{
|
|
|
2319
2327
|
"user.read": "user.read";
|
|
2320
2328
|
"user.create": "user.create";
|
|
2321
2329
|
"user.edit": "user.edit";
|
|
2330
|
+
"user.search": "user.search";
|
|
2322
2331
|
workqueue: "workqueue";
|
|
2323
2332
|
"dashboard.view": "dashboard.view";
|
|
2324
2333
|
}>;
|
|
2325
2334
|
$option: z.ZodEnum<{
|
|
2335
|
+
role: "role";
|
|
2326
2336
|
event: "event";
|
|
2327
2337
|
placeOfEvent: "placeOfEvent";
|
|
2328
2338
|
declaredIn: "declaredIn";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { UUID } from '../uuid';
|
|
1
2
|
import * as z from 'zod/v4';
|
|
2
3
|
import { EventIndex } from './EventIndex';
|
|
3
4
|
import { ActionCreationMetadata, RegistrationCreationMetadata } from './EventMetadata';
|
|
4
|
-
import { RecordScopeV2 } from '../scopes';
|
|
5
|
+
import { RecordScopeV2, UserScopeV2 } from '../scopes';
|
|
5
6
|
import { SystemContext, UserContext } from '../users/User';
|
|
6
7
|
/** @deprecated Moving on, location types are arbitrary and defined by the country config. */
|
|
7
8
|
export declare const LocationTypeV1: z.ZodEnum<{
|
|
@@ -51,11 +52,47 @@ export type EventIndexWithAdministrativeHierarchy = Omit<ToArrayFields<EventInde
|
|
|
51
52
|
*
|
|
52
53
|
*/
|
|
53
54
|
export declare function canAccessEventWithScope(event: Partial<EventIndexWithAdministrativeHierarchy>, scope: RecordScopeV2, user: UserContext | SystemContext, customActionType?: string): boolean;
|
|
55
|
+
export type UserWithResolvedHierarchy = {
|
|
56
|
+
role: string;
|
|
57
|
+
administrativeHierarchy: UUID[];
|
|
58
|
+
primaryOfficeId: UUID;
|
|
59
|
+
};
|
|
60
|
+
export declare function canAccessUserWithScope({ userToAccess, scope, user }: {
|
|
61
|
+
userToAccess: UserWithResolvedHierarchy;
|
|
62
|
+
scope: UserScopeV2;
|
|
63
|
+
user: UserContext | SystemContext;
|
|
64
|
+
}): boolean;
|
|
65
|
+
export declare function canAccessOtherUserWithScopes({ scopes, userToAccess, user }: {
|
|
66
|
+
scopes: UserScopeV2[];
|
|
67
|
+
userToAccess: UserWithResolvedHierarchy;
|
|
68
|
+
user: UserContext | SystemContext;
|
|
69
|
+
}): boolean;
|
|
54
70
|
/**
|
|
55
71
|
* Given indexed event and list of resolved scopes, determine if any of the scopes allow access to the event.
|
|
56
72
|
*
|
|
57
73
|
* One of the scopes must allow access for the event to be accessible.
|
|
58
74
|
*/
|
|
59
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[];
|
|
60
97
|
export {};
|
|
61
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
|