@opencrvs/toolkit 2.1.2 → 2.2.0-rc.1a111f2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build.sh +2 -12
- package/create-countryconfig/package.json +1 -1
- package/dist/application-config/index.js +41 -9
- package/dist/authentication/index.d.ts +1 -0
- package/dist/authentication/index.js +30 -6
- package/dist/cli.js +1489 -2020
- package/dist/commons/api/router.d.ts +1551 -248
- package/dist/commons/application-config/index.d.ts +2 -2
- package/dist/commons/conditionals/conditionals.d.ts +3 -3
- package/dist/commons/conditionals/index.d.ts +1 -0
- package/dist/commons/conditionals/validate.d.ts +5 -0
- package/dist/commons/events/ActionConfig.d.ts +146 -20
- package/dist/commons/events/ActionDocument.d.ts +89 -0
- package/dist/commons/events/ActionInput.d.ts +56 -4
- package/dist/commons/events/ActionType.d.ts +13 -1
- package/dist/commons/events/AdvancedSearchConfig.d.ts +15 -0
- package/dist/commons/events/AuditLog.d.ts +4 -0
- package/dist/commons/events/CompositeFieldValue.d.ts +5 -1
- package/dist/commons/events/CountryConfigQueryInput.d.ts +192 -18
- package/dist/commons/events/Draft.d.ts +36 -1
- package/dist/commons/events/EventConfig.d.ts +412 -6
- package/dist/commons/events/EventDocument.d.ts +88 -0
- package/dist/commons/events/EventIndex.d.ts +43 -6
- package/dist/commons/events/EventMetadata.d.ts +23 -1
- package/dist/commons/events/EventStatus.d.ts +1 -0
- package/dist/commons/events/FieldConfig.d.ts +11 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +6 -6
- package/dist/commons/events/Flag.d.ts +1 -7
- package/dist/commons/events/PlainDate.d.ts +1 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +224 -33
- package/dist/commons/events/defineConfig.d.ts +7 -2
- package/dist/commons/events/event.d.ts +4 -1
- package/dist/commons/events/eventConfigValidation.d.ts +26 -1
- package/dist/commons/events/field.d.ts +5 -0
- package/dist/commons/events/index.d.ts +3 -0
- package/dist/commons/events/scopes.d.ts +3 -0
- package/dist/commons/events/state/flags.d.ts +1 -1
- package/dist/commons/events/state/index.d.ts +10 -2
- package/dist/commons/events/state/utils.d.ts +11 -1
- package/dist/commons/events/test.utils.d.ts +87 -6
- package/dist/commons/events/toNotificationForm.d.ts +17 -0
- package/dist/commons/events/utils.d.ts +75 -8
- package/dist/conditionals/index.js +16 -4
- package/dist/environment/custom-types.d.ts +1 -0
- package/dist/environment/custom-types.d.ts.map +1 -1
- package/dist/environment/derived-variables.d.ts +24 -4
- package/dist/environment/derived-variables.d.ts.map +1 -1
- package/dist/environment/derived-variables.js +27 -4
- package/dist/environment/questions.d.ts +42 -9
- package/dist/environment/questions.d.ts.map +1 -1
- package/dist/environment/questions.js +71 -48
- package/dist/environment/registry.d.ts +15 -0
- package/dist/environment/registry.d.ts.map +1 -0
- package/dist/environment/registry.js +112 -0
- package/dist/environment/setup-environment.d.ts.map +1 -1
- package/dist/environment/setup-environment.js +159 -35
- package/dist/environment/templates.d.ts.map +1 -1
- package/dist/events/index.js +944 -214
- package/dist/migrations/add-notify-config.d.ts +40 -0
- package/dist/migrations/add-notify-config.d.ts.map +1 -0
- package/dist/migrations/add-notify-config.js +249 -0
- package/dist/migrations/index.d.ts +9 -0
- package/dist/migrations/index.d.ts.map +1 -0
- package/dist/migrations/index.js +1306 -0
- package/dist/migrations/move-declaration-to-declare-action.d.ts +38 -0
- package/dist/migrations/move-declaration-to-declare-action.d.ts.map +1 -0
- package/dist/migrations/move-declaration-to-declare-action.js +260 -0
- package/dist/migrations/{v2.1 → persistent}/add-translations.d.ts +7 -1
- package/dist/migrations/persistent/add-translations.d.ts.map +1 -0
- package/dist/migrations/{v2.1 → persistent}/add-translations.js +14 -12
- package/dist/migrations/persistent/check-upgrade-path.d.ts +36 -0
- package/dist/migrations/persistent/check-upgrade-path.d.ts.map +1 -0
- package/dist/migrations/persistent/check-upgrade-path.js +105 -0
- package/dist/migrations/persistent/update-toolkit-dependency.d.ts +7 -0
- package/dist/migrations/persistent/update-toolkit-dependency.d.ts.map +1 -0
- package/dist/migrations/persistent/update-toolkit-dependency.js +77 -0
- package/dist/migrations/read-declaration-through-helper.d.ts +39 -0
- package/dist/migrations/read-declaration-through-helper.d.ts.map +1 -0
- package/dist/migrations/read-declaration-through-helper.js +199 -0
- package/dist/migrations/replace-incomplete-flag.d.ts +26 -0
- package/dist/migrations/replace-incomplete-flag.d.ts.map +1 -0
- package/dist/migrations/replace-incomplete-flag.js +126 -0
- package/dist/migrations/resolve-versioned-event-config.d.ts +56 -0
- package/dist/migrations/resolve-versioned-event-config.d.ts.map +1 -0
- package/dist/migrations/resolve-versioned-event-config.js +353 -0
- package/dist/migrations/utils.d.ts +61 -0
- package/dist/migrations/utils.d.ts.map +1 -0
- package/dist/migrations/utils.js +218 -0
- package/dist/notification/index.js +887 -129
- package/dist/scopes/index.d.ts +83 -90
- package/dist/scopes/index.js +26 -6
- package/dist/templates/charts-values/dependencies/values.yaml +3 -2
- package/dist/templates/charts-values/opencrvs-services/values.yaml +5 -7
- package/dist/templates/charts-values/traefik/values.yaml +4 -3
- package/dist/verify/endpoints.d.ts +11 -0
- package/dist/verify/endpoints.d.ts.map +1 -1
- package/dist/verify/endpoints.js +21 -27
- package/opencrvs-toolkit-2.2.0-rc.1a111f2.tgz +0 -0
- package/package.json +3 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/dist/migrations/v2.1/add-explicit-correction-flags.d.ts +0 -3
- package/dist/migrations/v2.1/add-explicit-correction-flags.d.ts.map +0 -1
- package/dist/migrations/v2.1/add-explicit-correction-flags.js +0 -234
- package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts +0 -3
- package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts.map +0 -1
- package/dist/migrations/v2.1/add-recovery-link-notifications.js +0 -511
- package/dist/migrations/v2.1/add-translations.d.ts.map +0 -1
- package/dist/migrations/v2.1/enable-telemetry.d.ts +0 -3
- package/dist/migrations/v2.1/enable-telemetry.d.ts.map +0 -1
- package/dist/migrations/v2.1/enable-telemetry.js +0 -455
- package/dist/migrations/v2.1/index.d.ts +0 -6
- package/dist/migrations/v2.1/index.d.ts.map +0 -1
- package/dist/migrations/v2.1/index.js +0 -2170
- package/dist/migrations/v2.1/migrate-infrastructure-to-assets.d.ts +0 -14
- package/dist/migrations/v2.1/migrate-infrastructure-to-assets.d.ts.map +0 -1
- package/dist/migrations/v2.1/migrate-infrastructure-to-assets.js +0 -348
- package/dist/migrations/v2.1/remove-metabase-package-installs.d.ts +0 -2
- package/dist/migrations/v2.1/remove-metabase-package-installs.d.ts.map +0 -1
- package/dist/migrations/v2.1/remove-metabase-package-installs.js +0 -161
- package/dist/migrations/v2.1/remove-sentry.d.ts +0 -3
- package/dist/migrations/v2.1/remove-sentry.d.ts.map +0 -1
- package/dist/migrations/v2.1/remove-sentry.js +0 -354
- package/dist/migrations/v2.1/rename-trigger-paths.d.ts +0 -3
- package/dist/migrations/v2.1/rename-trigger-paths.d.ts.map +0 -1
- package/dist/migrations/v2.1/rename-trigger-paths.js +0 -216
- package/dist/migrations/v2.1/template-files.d.ts +0 -8
- package/dist/migrations/v2.1/template-files.d.ts.map +0 -1
- package/dist/migrations/v2.1/template-files.js +0 -49
- package/dist/migrations/v2.1/upgrade-tilt.d.ts +0 -8
- package/dist/migrations/v2.1/upgrade-tilt.d.ts.map +0 -1
- package/dist/migrations/v2.1/upgrade-tilt.js +0 -139
- package/dist/templates/countryconfig-template/.tiltignore +0 -1
- package/dist/templates/countryconfig-template/Dockerfile.assets +0 -7
- package/dist/templates/countryconfig-template/Tiltfile +0 -112
- package/dist/templates/countryconfig-template/assets/README.md +0 -1
- package/dist/templates/countryconfig-template/assets/clear-all-data-dev.sh +0 -61
- package/dist/templates/countryconfig-template/assets/deployment/deploy.sh +0 -455
- package/dist/templates/countryconfig-template/assets/deployment/reindex.sh +0 -168
- package/dist/templates/countryconfig-template/assets/deployment/validate-required-variables-in-compose-files.ts +0 -67
- package/dist/templates/countryconfig-template/assets/elasticsearch/reindex.sh +0 -168
- package/dist/templates/countryconfig-template/assets/metabase/README.md +0 -34
- package/dist/templates/countryconfig-template/assets/metabase/environment-configuration.sql +0 -36
- package/dist/templates/countryconfig-template/assets/metabase/initialize-database.sh +0 -46
- package/dist/templates/countryconfig-template/assets/metabase/metabase.init.db.sql +0 -27737
- package/dist/templates/countryconfig-template/assets/metabase/open-shell.sh +0 -21
- package/dist/templates/countryconfig-template/assets/metabase/package.json +0 -13
- package/dist/templates/countryconfig-template/assets/metabase/run-dev.sh +0 -108
- package/dist/templates/countryconfig-template/assets/metabase/run.sh +0 -120
- package/dist/templates/countryconfig-template/assets/metabase/update-database.sh +0 -40
- package/dist/templates/countryconfig-template/assets/postgres/setup-analytics.sh +0 -135
- package/dist/templates/countryconfig-template/assets/postgres/setup-reference-data.sh +0 -108
- package/dist/templates/countryconfig-template/tilt/clear-all-data.ps1 +0 -50
- package/dist/templates/countryconfig-template/tilt/clear-all-data.sh +0 -35
- package/dist/templates/countryconfig-template/tilt/common.tilt +0 -145
- package/dist/templates/countryconfig-template/tilt/examples/dependencies/values.yaml +0 -15
- package/dist/templates/countryconfig-template/tilt/examples/opencrvs-services/values.yaml +0 -56
- package/dist/templates/countryconfig-template/tilt/examples/traefik/values-minikube.yaml +0 -21
- package/dist/templates/countryconfig-template/tilt/examples/traefik/values.yaml +0 -38
- package/dist/templates/countryconfig-template/tilt/helm/dependencies/values.yaml +0 -17
- package/dist/templates/countryconfig-template/tilt/helm/opencrvs-services/values.yaml +0 -16
- package/dist/templates/countryconfig-template/tilt/lib.tilt +0 -95
- package/dist/templates/countryconfig-template/tilt/opencrvs.tilt +0 -136
- package/opencrvs-toolkit-2.1.2.tgz +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import 'zod/compile';
|
|
1
2
|
export * from './AuditLog';
|
|
2
3
|
export * from './Constants';
|
|
3
4
|
export * from './ActionConfig';
|
|
@@ -25,6 +26,7 @@ export * from './state';
|
|
|
25
26
|
export * from './state/flags';
|
|
26
27
|
export * from './utils';
|
|
27
28
|
export * from './defineConfig';
|
|
29
|
+
export * from './toNotificationForm';
|
|
28
30
|
export * from './DeduplicationConfig';
|
|
29
31
|
export * from './transactions';
|
|
30
32
|
export * from './FieldType';
|
|
@@ -46,6 +48,7 @@ export * from './Flag';
|
|
|
46
48
|
export * from './event';
|
|
47
49
|
export * from './locations';
|
|
48
50
|
export * from './locationPayloads';
|
|
51
|
+
export * from './PlainDate';
|
|
49
52
|
export { UUID } from '../uuid';
|
|
50
53
|
export { DocumentPath } from '../documents';
|
|
51
54
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -15,8 +15,11 @@ export declare const ACTION_SCOPE_MAP: {
|
|
|
15
15
|
PRINT_CERTIFICATE: "record.print-certified-copies"[];
|
|
16
16
|
REQUEST_CORRECTION: ("record.correct" | "record.request-correction")[];
|
|
17
17
|
REVIEW_CORRECTION_REQUEST: "record.correct"[];
|
|
18
|
+
CONTINUE_DRAFT: never[];
|
|
18
19
|
REJECT_CORRECTION: "record.correct"[];
|
|
19
20
|
APPROVE_CORRECTION: "record.correct"[];
|
|
21
|
+
REVOKE_REGISTRATION: "record.revoke-registration"[];
|
|
22
|
+
REINSTATE_REGISTRATION: "record.reinstate-registration"[];
|
|
20
23
|
MARK_AS_DUPLICATE: "record.review-duplicates"[];
|
|
21
24
|
MARK_AS_NOT_DUPLICATE: "record.review-duplicates"[];
|
|
22
25
|
ARCHIVE: "record.archive"[];
|
|
@@ -27,7 +27,7 @@ export declare function resolveEventCustomFlags(event: EventDocument, eventConfi
|
|
|
27
27
|
*
|
|
28
28
|
* Flags are determined by combining:
|
|
29
29
|
* - Action status flags (format 'ActionType:ActionStatus')
|
|
30
|
-
* - Inherent flags (e.g.
|
|
30
|
+
* - Inherent flags (e.g. rejected, correction requested, potential duplicate, edit in progress)
|
|
31
31
|
* - Event type-specific custom flags defined in the event configuration
|
|
32
32
|
*
|
|
33
33
|
* @param event - The EventDocument containing the action history and payload
|
|
@@ -7,7 +7,7 @@ import { Draft } from '../Draft';
|
|
|
7
7
|
import { EventConfig } from '../EventConfig';
|
|
8
8
|
import { UUID } from '../../uuid';
|
|
9
9
|
import { DocumentPath } from '../../documents';
|
|
10
|
-
export declare function getStatusFromActions(actions: Array<Action>): "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED";
|
|
10
|
+
export declare function getStatusFromActions(actions: Array<Action>): "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED";
|
|
11
11
|
export declare function getAssignedUserFromActions(actions: Array<ActionDocument>): string | null;
|
|
12
12
|
type NonNullableDeep<T> = T extends [unknown, ...unknown[]] ? {
|
|
13
13
|
[K in keyof T]: NonNullableDeep<NonNullable<T[K]>>;
|
|
@@ -63,7 +63,7 @@ export declare function applyDeclarationToEventIndex(eventIndex: EventIndex, dec
|
|
|
63
63
|
export declare function applyDraftToEventIndex(eventIndex: EventIndex, draft: Draft, eventConfiguration: EventConfig): {
|
|
64
64
|
id: string & import("zod").$brand<"UUID">;
|
|
65
65
|
type: string;
|
|
66
|
-
status: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED";
|
|
66
|
+
status: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED";
|
|
67
67
|
legalStatuses: {
|
|
68
68
|
NOTIFIED?: {
|
|
69
69
|
createdAt: string;
|
|
@@ -90,6 +90,14 @@ export declare function applyDraftToEventIndex(eventIndex: EventIndex, draft: Dr
|
|
|
90
90
|
createdByRole?: string | undefined;
|
|
91
91
|
registrationNumber: string;
|
|
92
92
|
} | null | undefined;
|
|
93
|
+
REVOKED?: {
|
|
94
|
+
createdAt: string;
|
|
95
|
+
createdBy: string;
|
|
96
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
97
|
+
createdByUserType?: "system" | "user" | null | undefined;
|
|
98
|
+
acceptedAt: string;
|
|
99
|
+
createdByRole?: string | undefined;
|
|
100
|
+
} | null | undefined;
|
|
93
101
|
};
|
|
94
102
|
createdAt: string;
|
|
95
103
|
dateOfEvent?: string | null | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Action } from '../ActionDocument';
|
|
2
|
+
import { EventStatus } from '../EventMetadata';
|
|
2
3
|
/**
|
|
3
4
|
* Returns the creation metadata of the last update action (Requested or Accepted).
|
|
4
5
|
* Requested actions are included so that async flows (202) correctly reflect the
|
|
@@ -29,7 +30,7 @@ export declare function getActionUpdateMetadata(actions: Action[]): Pick<{
|
|
|
29
30
|
* @returns the legal statuses of the event. Event is considered legal if it has been accepted.
|
|
30
31
|
* @see EventIndex for the description of the returned object.
|
|
31
32
|
*/
|
|
32
|
-
export declare function getLegalStatuses(actions: Action[]): {
|
|
33
|
+
export declare function getLegalStatuses(actions: Action[], status: EventStatus): {
|
|
33
34
|
NOTIFIED: {
|
|
34
35
|
createdAt: string;
|
|
35
36
|
createdBy: string;
|
|
@@ -57,5 +58,14 @@ export declare function getLegalStatuses(actions: Action[]): {
|
|
|
57
58
|
createdByRole: string | undefined;
|
|
58
59
|
registrationNumber: string | null | undefined;
|
|
59
60
|
} | null;
|
|
61
|
+
REVOKED: {
|
|
62
|
+
createdAt: string;
|
|
63
|
+
createdBy: string;
|
|
64
|
+
createdByUserType: "system" | "user";
|
|
65
|
+
createdAtLocation: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
66
|
+
acceptedAt: string;
|
|
67
|
+
createdByRole: string | undefined;
|
|
68
|
+
registrationNumber: string | null | undefined;
|
|
69
|
+
} | null;
|
|
60
70
|
};
|
|
61
71
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { UUID } from '../uuid';
|
|
2
|
-
import { ActionDocument, ActionUpdate } from './ActionDocument';
|
|
2
|
+
import { Action, ActionBase, ActionDocument, ActionStatus, ActionUpdate } from './ActionDocument';
|
|
3
3
|
import { ValidatorContext } from '../conditionals/validate';
|
|
4
|
-
import { ApproveCorrectionActionInput, ArchiveActionInput, AssignActionInput, DeclareActionInput, EditActionInput, MarkAsDuplicateActionInput, MarkNotDuplicateActionInput, NotifyActionInput, RegisterActionInput, RejectCorrectionActionInput, RejectDeclarationActionInput, RequestCorrectionActionInput, UnarchiveActionInput, UnassignActionInput } from './ActionInput';
|
|
4
|
+
import { ApproveCorrectionActionInput, ArchiveActionInput, AssignActionInput, DeclareActionInput, EditActionInput, MarkAsDuplicateActionInput, MarkNotDuplicateActionInput, NotifyActionInput, RegisterActionInput, RejectCorrectionActionInput, RejectDeclarationActionInput, RequestCorrectionActionInput, UnarchiveActionInput, UnassignActionInput, RevokeRegistrationActionInput, ReinstateRegistrationActionInput } from './ActionInput';
|
|
5
5
|
import { ActionType } from './ActionType';
|
|
6
|
-
import { Draft } from './Draft';
|
|
7
|
-
import { EventConfig, EventConfigInput } from './EventConfig';
|
|
6
|
+
import { Draft, DraftInput, RemoteDraft } from './Draft';
|
|
7
|
+
import { EventConfig, EventConfigInput, VersionedEventConfig } from './EventConfig';
|
|
8
8
|
import { EventDocument } from './EventDocument';
|
|
9
9
|
import { EventIndex } from './EventIndex';
|
|
10
10
|
import { EventInput } from './EventInput';
|
|
11
11
|
import { TranslationConfig } from './TranslationConfig';
|
|
12
12
|
import { FieldConfig } from './FieldConfig';
|
|
13
|
+
import { DeclarationFormConfig } from './FormConfig';
|
|
13
14
|
import { LocationVersion, SetLocationPayload, SetAdministrativeAreaPayload, ClientAdministrativeArea } from './locations';
|
|
14
15
|
import { WorkqueueConfig } from './WorkqueueConfig';
|
|
15
16
|
import * as z from 'zod/v4';
|
|
@@ -158,6 +159,28 @@ export declare function eventPayloadGenerator(rng: () => number, configuration?:
|
|
|
158
159
|
annotation: {};
|
|
159
160
|
eventId: string;
|
|
160
161
|
};
|
|
162
|
+
revokeRegistration: (eventId: string, input?: Partial<Pick<RevokeRegistrationActionInput, 'transactionId' | 'annotation' | 'keepAssignment' | 'keepAssignmentIfRejected' | 'keepAssignmentIfAccepted' | 'waitFor'>>) => {
|
|
163
|
+
keepAssignment?: boolean | undefined;
|
|
164
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
165
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
166
|
+
waitFor?: boolean | undefined;
|
|
167
|
+
type: "REVOKE_REGISTRATION";
|
|
168
|
+
transactionId: string;
|
|
169
|
+
declaration: {};
|
|
170
|
+
annotation: {};
|
|
171
|
+
eventId: string;
|
|
172
|
+
};
|
|
173
|
+
reinstateRegistration: (eventId: string, input?: Partial<Pick<ReinstateRegistrationActionInput, 'transactionId' | 'annotation' | 'keepAssignment' | 'keepAssignmentIfRejected' | 'keepAssignmentIfAccepted' | 'waitFor'>>) => {
|
|
174
|
+
keepAssignment?: boolean | undefined;
|
|
175
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
176
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
177
|
+
waitFor?: boolean | undefined;
|
|
178
|
+
type: "REINSTATE_REGISTRATION";
|
|
179
|
+
transactionId: string;
|
|
180
|
+
declaration: {};
|
|
181
|
+
annotation: {};
|
|
182
|
+
eventId: string;
|
|
183
|
+
};
|
|
161
184
|
reject: (eventId: string, input?: Partial<Pick<RejectDeclarationActionInput, 'transactionId' | 'annotation' | 'keepAssignment' | 'keepAssignmentIfAccepted' | 'keepAssignmentIfRejected' | 'waitFor'>>) => {
|
|
162
185
|
keepAssignment?: boolean | undefined;
|
|
163
186
|
keepAssignmentIfAccepted?: boolean | undefined;
|
|
@@ -255,6 +278,13 @@ export declare function eventPayloadGenerator(rng: () => number, configuration?:
|
|
|
255
278
|
};
|
|
256
279
|
};
|
|
257
280
|
};
|
|
281
|
+
/**
|
|
282
|
+
* Generates a single action document with exactly the given status (Accepted by default).
|
|
283
|
+
*
|
|
284
|
+
* For realistic data use `generateActionDocuments`, which also creates the Requested
|
|
285
|
+
* action the events service stores for a confirmable action. Use this one for edge
|
|
286
|
+
* cases, such as pending or rejected requests, or actions without an original request.
|
|
287
|
+
*/
|
|
258
288
|
export declare function generateActionDocument<T extends ActionType>({ configuration, action, rng, defaults, declarationOverrides }: {
|
|
259
289
|
configuration: EventConfig;
|
|
260
290
|
action: T;
|
|
@@ -264,6 +294,45 @@ export declare function generateActionDocument<T extends ActionType>({ configura
|
|
|
264
294
|
}>>;
|
|
265
295
|
declarationOverrides?: ActionUpdate;
|
|
266
296
|
}): ActionDocument;
|
|
297
|
+
type GenerateActionDocumentsArgs<T extends ActionType> = Parameters<typeof generateActionDocument<T>>[0];
|
|
298
|
+
type ActionConfirmation<S extends ActionStatus> = {
|
|
299
|
+
status: S;
|
|
300
|
+
defaults?: Partial<ActionBase>;
|
|
301
|
+
};
|
|
302
|
+
/**
|
|
303
|
+
* Generates the action documents the events service stores for a single action.
|
|
304
|
+
*
|
|
305
|
+
* Mirrors the events service: a confirmable action is first stored as Requested,
|
|
306
|
+
* carrying the declaration and annotation, and then confirmed by a separate
|
|
307
|
+
* Accepted (or Rejected) action that points back to it through originalActionId.
|
|
308
|
+
* Other actions are stored once, as Accepted.
|
|
309
|
+
*
|
|
310
|
+
* `confirmation.status` picks the outcome of a confirmable action:
|
|
311
|
+
* - Accepted (default): [Requested, Accepted]
|
|
312
|
+
* - Rejected: [Requested, Rejected]
|
|
313
|
+
* - Requested: [Requested], i.e. still waiting for confirmation
|
|
314
|
+
*
|
|
315
|
+
* By default the request is confirmed synchronously, so both actions share the
|
|
316
|
+
* `transactionId`. `confirmation.defaults` apply to the confirming action only,
|
|
317
|
+
* e.g. a system user and a `transactionId` of its own for an asynchronous confirmation.
|
|
318
|
+
*
|
|
319
|
+
* The confirming action keeps the generated (or given) `id`, since references such
|
|
320
|
+
* as `requestId` of APPROVE_CORRECTION point to the accepted action.
|
|
321
|
+
*
|
|
322
|
+
* Use `generateActionDocument` instead to build a single action with an explicit status.
|
|
323
|
+
*
|
|
324
|
+
* Only a rejection yields an AsyncRejectActionDocument, so the result is typed
|
|
325
|
+
* as `ActionDocument[]` when `confirmation.status` is known not to be Rejected.
|
|
326
|
+
*/
|
|
327
|
+
export declare function generateActionDocuments<T extends ActionType>(args: GenerateActionDocumentsArgs<T> & {
|
|
328
|
+
confirmation: ActionConfirmation<typeof ActionStatus.Rejected>;
|
|
329
|
+
}): Action[];
|
|
330
|
+
export declare function generateActionDocuments<T extends ActionType>(args: GenerateActionDocumentsArgs<T> & {
|
|
331
|
+
confirmation?: Partial<ActionConfirmation<typeof ActionStatus.Accepted | typeof ActionStatus.Requested>>;
|
|
332
|
+
}): ActionDocument[];
|
|
333
|
+
export declare function generateActionDocuments<T extends ActionType>(args: GenerateActionDocumentsArgs<T> & {
|
|
334
|
+
confirmation?: Partial<ActionConfirmation<ActionStatus>>;
|
|
335
|
+
}): Action[];
|
|
267
336
|
export declare function generateRandomDatetime(rng: () => number, start: Date, end: Date): string;
|
|
268
337
|
export declare function getRandomDate(rng: () => number, start: string, end: string): string;
|
|
269
338
|
export declare function generateEventDocument({ configuration, actions, rng, defaults }: {
|
|
@@ -287,11 +356,11 @@ export declare function generateEventDocument({ configuration, actions, rng, def
|
|
|
287
356
|
}): EventDocument;
|
|
288
357
|
export declare function generateEventDraftDocument({ eventId, actionType, rng, declaration }: {
|
|
289
358
|
eventId: UUID;
|
|
290
|
-
actionType:
|
|
359
|
+
actionType: DraftInput['type'];
|
|
291
360
|
rng?: () => number;
|
|
292
361
|
declaration?: ActionUpdate;
|
|
293
362
|
annotation?: ActionUpdate;
|
|
294
|
-
}):
|
|
363
|
+
}): RemoteDraft;
|
|
295
364
|
/**
|
|
296
365
|
* Useful for testing when we need deterministic outcome.
|
|
297
366
|
* @param seed - Seed value for the pseudo-random number generator
|
|
@@ -328,6 +397,12 @@ export declare const generateEventConfig: ({ id, fields, placeOfEventId, dateOfE
|
|
|
328
397
|
/** Extra actions appended to the default READ + DECLARE pair, e.g. a REQUEST_CORRECTION action with its own correctionForm. */
|
|
329
398
|
actions?: EventConfigInput['actions'];
|
|
330
399
|
}) => EventConfig;
|
|
400
|
+
/**
|
|
401
|
+
* The notification form is replaced too, since it may refer to fields of the replaced declaration.
|
|
402
|
+
*
|
|
403
|
+
* @returns a copy of the configuration with the DECLARE action's declaration replaced, and the NOTIFY action's notification form made from it.
|
|
404
|
+
*/
|
|
405
|
+
export declare function withDeclaration(configuration: EventConfig, declaration: DeclarationFormConfig): EventConfig;
|
|
331
406
|
/**
|
|
332
407
|
* Get the leaf administrative area IDs from a list of administrative areas.
|
|
333
408
|
*
|
|
@@ -344,4 +419,10 @@ export declare function generateTestValidatorContext(userRole?: TestUserRole, ev
|
|
|
344
419
|
event: EventDocument;
|
|
345
420
|
eventConfig: EventConfig;
|
|
346
421
|
}): ValidatorContext;
|
|
422
|
+
/**
|
|
423
|
+
* Serves `config` as country config does: as the only version of its event.
|
|
424
|
+
* For mocking `/config/events` and `event.config.get` with a configuration built in a test.
|
|
425
|
+
*/
|
|
426
|
+
export declare function toVersionedEventConfig({ id, label, advancedSearch, ...version }: EventConfig): VersionedEventConfig;
|
|
427
|
+
export {};
|
|
347
428
|
//# sourceMappingURL=test.utils.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
|
+
import { DeclarationFormConfig, DeclarationFormConfigInput } from './FormConfig';
|
|
3
|
+
import { DeclarationReviewConfig } from './ActionConfig';
|
|
4
|
+
type DeclarationReviewConfigInput = z.input<typeof DeclarationReviewConfig>;
|
|
5
|
+
type DeclarationReviewConfigOutput = z.infer<typeof DeclarationReviewConfig>;
|
|
6
|
+
/**
|
|
7
|
+
* NOTIFY submits incomplete records, and its notification form is validated like any form.
|
|
8
|
+
*
|
|
9
|
+
* @returns a copy of the declaration form with every field optional and without validations, to use as the NOTIFY `notificationForm`.
|
|
10
|
+
*/
|
|
11
|
+
export declare function toNotificationForm<F extends DeclarationFormConfig | DeclarationFormConfigInput>(declaration: F): F;
|
|
12
|
+
/**
|
|
13
|
+
* @returns a copy of the DECLARE review with every field optional and without validations, to use as the NOTIFY `review`.
|
|
14
|
+
*/
|
|
15
|
+
export declare function toNotificationReview<R extends DeclarationReviewConfigOutput | DeclarationReviewConfigInput>(review: R): R;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=toNotificationForm.d.ts.map
|
|
@@ -8,11 +8,30 @@ import { Draft } from './Draft';
|
|
|
8
8
|
import { EventDocument } from './EventDocument';
|
|
9
9
|
import { UUID } from '../uuid';
|
|
10
10
|
import { ActionConfig, ActionConfigTypes } from './ActionConfig';
|
|
11
|
-
import { FormConfig } from './FormConfig';
|
|
11
|
+
import { DeclarationFormConfig, FormConfig } from './FormConfig';
|
|
12
12
|
import { PlainDate, SelectDateRangeValue } from './FieldValue';
|
|
13
13
|
import { EventIndex } from './EventIndex';
|
|
14
14
|
export declare function ageToDate(age: number, asOfDate: PlainDate): string & import("zod").$brand<"PlainDate">;
|
|
15
|
-
export declare function
|
|
15
|
+
export declare function getDeclaration(configuration: EventConfig): {
|
|
16
|
+
label: {
|
|
17
|
+
id: string;
|
|
18
|
+
defaultMessage: string;
|
|
19
|
+
description: string;
|
|
20
|
+
};
|
|
21
|
+
pages: {
|
|
22
|
+
id: string;
|
|
23
|
+
title: {
|
|
24
|
+
id: string;
|
|
25
|
+
defaultMessage: string;
|
|
26
|
+
description: string;
|
|
27
|
+
};
|
|
28
|
+
requireCompletionToContinue: boolean;
|
|
29
|
+
showClearButton?: boolean | undefined;
|
|
30
|
+
fields: FieldConfig[];
|
|
31
|
+
conditional?: any;
|
|
32
|
+
type: "FORM";
|
|
33
|
+
}[];
|
|
34
|
+
};
|
|
16
35
|
export declare function getDeclarationPages(configuration: EventConfig): {
|
|
17
36
|
id: string;
|
|
18
37
|
title: {
|
|
@@ -26,7 +45,18 @@ export declare function getDeclarationPages(configuration: EventConfig): {
|
|
|
26
45
|
conditional?: any;
|
|
27
46
|
type: "FORM";
|
|
28
47
|
}[];
|
|
29
|
-
export declare function
|
|
48
|
+
export declare function getDeclarationFields(configuration: EventConfig): FieldConfig[];
|
|
49
|
+
/**
|
|
50
|
+
* @returns the notification form configured on the NOTIFY action.
|
|
51
|
+
* @throws when the event has no NOTIFY action.
|
|
52
|
+
*/
|
|
53
|
+
export declare function getNotificationForm(configuration: EventConfig): DeclarationFormConfig;
|
|
54
|
+
export declare function getNotificationFields(configuration: EventConfig): FieldConfig[];
|
|
55
|
+
/**
|
|
56
|
+
* Form a user fills in to submit the given action:
|
|
57
|
+
* the notification form for NOTIFY, the declaration form for DECLARE.
|
|
58
|
+
*/
|
|
59
|
+
export declare function getActionForm(configuration: EventConfig, actionType: typeof ActionType.NOTIFY | typeof ActionType.DECLARE): {
|
|
30
60
|
label: {
|
|
31
61
|
id: string;
|
|
32
62
|
defaultMessage: string;
|
|
@@ -55,10 +85,6 @@ export declare function getActionConfig({ eventConfiguration, actionType, custom
|
|
|
55
85
|
export declare function getCustomActionFields(eventConfiguration: EventConfig, customActionType: string): FieldConfig[];
|
|
56
86
|
/**
|
|
57
87
|
* Returns the fields configured for an action's confirmation dialog.
|
|
58
|
-
*
|
|
59
|
-
* Unlike review fields and supporting copy, NOTIFY does NOT fall back to the
|
|
60
|
-
* DECLARE config here: dialog fields always come from the action's own
|
|
61
|
-
* configuration entry.
|
|
62
88
|
*/
|
|
63
89
|
export declare function getActionFormFields(eventConfiguration: EventConfig, actionType: ActionType, customActionType?: string): FieldConfig[];
|
|
64
90
|
export declare function getPrintCertificatePages(configuration: EventConfig): ({
|
|
@@ -277,6 +303,34 @@ export declare function findLastAssignmentAction(actions: Action[]): {
|
|
|
277
303
|
status: "Accepted" | "Rejected" | "Requested";
|
|
278
304
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
279
305
|
type: "UNARCHIVE";
|
|
306
|
+
} | {
|
|
307
|
+
id: string & import("zod").$brand<"UUID">;
|
|
308
|
+
transactionId: string;
|
|
309
|
+
createdByUserType: "system" | "user";
|
|
310
|
+
createdAt: string;
|
|
311
|
+
createdBy: string;
|
|
312
|
+
createdByRole?: string | undefined;
|
|
313
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
314
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
315
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
316
|
+
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
317
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
318
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
319
|
+
type: "REVOKE_REGISTRATION";
|
|
320
|
+
} | {
|
|
321
|
+
id: string & import("zod").$brand<"UUID">;
|
|
322
|
+
transactionId: string;
|
|
323
|
+
createdByUserType: "system" | "user";
|
|
324
|
+
createdAt: string;
|
|
325
|
+
createdBy: string;
|
|
326
|
+
createdByRole?: string | undefined;
|
|
327
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
328
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
329
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
330
|
+
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
331
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
332
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
333
|
+
type: "REINSTATE_REGISTRATION";
|
|
280
334
|
} | {
|
|
281
335
|
id: string & import("zod").$brand<"UUID">;
|
|
282
336
|
transactionId: string;
|
|
@@ -472,7 +526,7 @@ export declare function findLastAssignmentAction(actions: Action[]): {
|
|
|
472
526
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
473
527
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
474
528
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
475
|
-
type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE";
|
|
529
|
+
type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REINSTATE_REGISTRATION" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "REVOKE_REGISTRATION" | "UNARCHIVE";
|
|
476
530
|
status: "Rejected";
|
|
477
531
|
} | undefined;
|
|
478
532
|
/**
|
|
@@ -600,6 +654,19 @@ export declare function getCompleteActionAnnotation(event: EventDocument, action
|
|
|
600
654
|
export declare function getCompleteActionContent(event: EventDocument, action: ActionDocument): Record<string, unknown> | null | undefined;
|
|
601
655
|
export declare function getCompleteActionDeclaration<T extends EventState | ActionUpdate>(declaration: T, event: EventDocument, action: ActionDocument): T;
|
|
602
656
|
export declare function getAcceptedActions(event: EventDocument): ActionDocument[];
|
|
657
|
+
/**
|
|
658
|
+
* Returns the event with each Accepted action completed with the details of
|
|
659
|
+
* its original Requested action: who requested it, where, and the request's
|
|
660
|
+
* declaration, annotation and content (the Accepted action's own values win).
|
|
661
|
+
*
|
|
662
|
+
* `$event` conditionals match Accepted actions only, but an Accepted action
|
|
663
|
+
* does not carry everything its request did. A synchronous confirmation drops
|
|
664
|
+
* the request's annotation; an asynchronous `accept` is created by the system
|
|
665
|
+
* user and carries only what the country configuration sent. Without this,
|
|
666
|
+
* `event.hasAction(...).withTemplate(...)` / `.withFields(...)` would stop
|
|
667
|
+
* matching fields that matched the Requested action.
|
|
668
|
+
*/
|
|
669
|
+
export declare function getEventWithCompleteAcceptedActions(event: EventDocument): EventDocument;
|
|
603
670
|
export declare function aggregateActionDeclarations(event: EventDocument): EventState;
|
|
604
671
|
/**
|
|
605
672
|
* Returns the declaration after each of `event.actions`, which must be in chronological order.
|
|
@@ -162,6 +162,8 @@ var ActionType = {
|
|
|
162
162
|
REQUEST_CORRECTION: "REQUEST_CORRECTION",
|
|
163
163
|
REJECT_CORRECTION: "REJECT_CORRECTION",
|
|
164
164
|
APPROVE_CORRECTION: "APPROVE_CORRECTION",
|
|
165
|
+
REVOKE_REGISTRATION: "REVOKE_REGISTRATION",
|
|
166
|
+
REINSTATE_REGISTRATION: "REINSTATE_REGISTRATION",
|
|
165
167
|
// General actions
|
|
166
168
|
READ: "READ",
|
|
167
169
|
ASSIGN: "ASSIGN",
|
|
@@ -181,6 +183,8 @@ var ConfirmableActions = [
|
|
|
181
183
|
ActionType.REQUEST_CORRECTION,
|
|
182
184
|
ActionType.APPROVE_CORRECTION,
|
|
183
185
|
ActionType.REJECT_CORRECTION,
|
|
186
|
+
ActionType.REVOKE_REGISTRATION,
|
|
187
|
+
ActionType.REINSTATE_REGISTRATION,
|
|
184
188
|
ActionType.CUSTOM
|
|
185
189
|
];
|
|
186
190
|
var ActionTypes = z6.enum([
|
|
@@ -200,6 +204,8 @@ var ActionTypes = z6.enum([
|
|
|
200
204
|
"REQUEST_CORRECTION",
|
|
201
205
|
"REJECT_CORRECTION",
|
|
202
206
|
"APPROVE_CORRECTION",
|
|
207
|
+
"REVOKE_REGISTRATION",
|
|
208
|
+
"REINSTATE_REGISTRATION",
|
|
203
209
|
"READ",
|
|
204
210
|
"ASSIGN",
|
|
205
211
|
"UNASSIGN",
|
|
@@ -238,7 +244,9 @@ var WorkqueueActionType = ActionTypes.extract([
|
|
|
238
244
|
ActionType.ARCHIVE,
|
|
239
245
|
ActionType.UNARCHIVE,
|
|
240
246
|
ActionType.PRINT_CERTIFICATE,
|
|
241
|
-
ActionType.REQUEST_CORRECTION
|
|
247
|
+
ActionType.REQUEST_CORRECTION,
|
|
248
|
+
ActionType.REVOKE_REGISTRATION,
|
|
249
|
+
ActionType.REINSTATE_REGISTRATION
|
|
242
250
|
]);
|
|
243
251
|
var META_ACTIONS = [
|
|
244
252
|
ActionType.ASSIGN,
|
|
@@ -254,7 +262,7 @@ var ActionStatus = {
|
|
|
254
262
|
};
|
|
255
263
|
|
|
256
264
|
// ../commons/src/events/Flag.ts
|
|
257
|
-
var z9 = __toESM(require("zod
|
|
265
|
+
var z9 = __toESM(require("zod"));
|
|
258
266
|
|
|
259
267
|
// ../commons/src/events/TranslationConfig.ts
|
|
260
268
|
var z7 = __toESM(require("zod/v4"));
|
|
@@ -323,7 +331,6 @@ var FieldConditional = z8.discriminatedUnion("type", [
|
|
|
323
331
|
|
|
324
332
|
// ../commons/src/events/Flag.ts
|
|
325
333
|
var InherentFlags = {
|
|
326
|
-
INCOMPLETE: "incomplete",
|
|
327
334
|
REJECTED: "rejected",
|
|
328
335
|
CORRECTION_REQUESTED: "correction-requested",
|
|
329
336
|
POTENTIAL_DUPLICATE: "potential-duplicate",
|
|
@@ -351,7 +358,7 @@ var CustomFlag = z9.string().refine((val) => !Object.values(InherentFlags).inclu
|
|
|
351
358
|
message: `Custom flag cannot be one of the inherent flags: ${Object.values(
|
|
352
359
|
InherentFlags
|
|
353
360
|
).join(", ")}`
|
|
354
|
-
}).refine((val) => !ActionFlag.
|
|
361
|
+
}).refine((val) => !ActionFlag.validate(val), {
|
|
355
362
|
message: "Custom flag cannot match the ActionFlag pattern (ActionType:ActionStatus)."
|
|
356
363
|
}).describe("Custom flag identifier defined by the country config.");
|
|
357
364
|
var Flag = ActionFlag.or(z9.enum(InherentFlags)).or(CustomFlag);
|
|
@@ -390,6 +397,7 @@ var EventStatus = z10.enum([
|
|
|
390
397
|
"NOTIFIED",
|
|
391
398
|
"DECLARED",
|
|
392
399
|
"REGISTERED",
|
|
400
|
+
"REVOKED",
|
|
393
401
|
"ARCHIVED"
|
|
394
402
|
]);
|
|
395
403
|
|
|
@@ -413,6 +421,8 @@ var RecordScopeTypeV2 = z11.enum([
|
|
|
413
421
|
"record.print-certified-copies",
|
|
414
422
|
"record.request-correction",
|
|
415
423
|
"record.correct",
|
|
424
|
+
"record.revoke-registration",
|
|
425
|
+
"record.reinstate-registration",
|
|
416
426
|
"record.unassign-others",
|
|
417
427
|
"record.custom-action",
|
|
418
428
|
"record.action.accept",
|
|
@@ -539,6 +549,8 @@ var ScopesWithFullOptions = RecordScopeTypeV2.extract([
|
|
|
539
549
|
"record.read",
|
|
540
550
|
"record.request-correction",
|
|
541
551
|
"record.correct",
|
|
552
|
+
"record.revoke-registration",
|
|
553
|
+
"record.reinstate-registration",
|
|
542
554
|
"record.unassign-others",
|
|
543
555
|
"record.review-duplicates"
|
|
544
556
|
]);
|
|
@@ -5,6 +5,7 @@ export type Question<T extends string> = PromptObject<T> & {
|
|
|
5
5
|
valueType?: 'SECRET' | 'VARIABLE';
|
|
6
6
|
scope: 'ENVIRONMENT' | 'REPOSITORY';
|
|
7
7
|
valueLabel?: string;
|
|
8
|
+
legacyValueLabel?: string;
|
|
8
9
|
};
|
|
9
10
|
export type QuestionDescriptor<T extends string> = Omit<Question<T>, 'type'> & {
|
|
10
11
|
type: 'disabled' | PromptObject<T>['type'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-types.d.ts","sourceRoot":"","sources":["../../src/environment/custom-types.ts"],"names":[],"mappings":"AAWA,OAAgB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC/C,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAE3C,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,MAAM,IAAI,YAAY,CAAC,CAAC,CAAC,GAAG;IACzD,IAAI,EAAE,CAAC,CAAA;IACP,SAAS,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAA;IACjC,KAAK,EAAE,aAAa,GAAG,YAAY,CAAA;IACnC,UAAU,CAAC,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"custom-types.d.ts","sourceRoot":"","sources":["../../src/environment/custom-types.ts"],"names":[],"mappings":"AAWA,OAAgB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC/C,OAAO,EAAE,M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C,CAAC,GACF,CAAC,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,GAAG;IAC/B,KAAK,EAAE,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAA;CACtC,CAAC,CAAA"}
|
|
@@ -47,14 +47,16 @@ export declare const derivedVariables: readonly [{
|
|
|
47
47
|
readonly type: 'disabled';
|
|
48
48
|
readonly scope: 'ENVIRONMENT';
|
|
49
49
|
}, {
|
|
50
|
-
readonly name: '
|
|
51
|
-
readonly valueLabel: '
|
|
50
|
+
readonly name: 'S3_ADMIN_ACCESS_KEY';
|
|
51
|
+
readonly valueLabel: 'S3_ADMIN_ACCESS_KEY';
|
|
52
|
+
readonly legacyValueLabel: 'MINIO_ROOT_USER';
|
|
52
53
|
readonly valueType: 'SECRET';
|
|
53
54
|
readonly type: 'disabled';
|
|
54
55
|
readonly scope: 'ENVIRONMENT';
|
|
55
56
|
}, {
|
|
56
|
-
readonly name: '
|
|
57
|
-
readonly valueLabel: '
|
|
57
|
+
readonly name: 'S3_ADMIN_SECRET_KEY';
|
|
58
|
+
readonly valueLabel: 'S3_ADMIN_SECRET_KEY';
|
|
59
|
+
readonly legacyValueLabel: 'MINIO_ROOT_PASSWORD';
|
|
58
60
|
readonly valueType: 'SECRET';
|
|
59
61
|
readonly type: 'disabled';
|
|
60
62
|
readonly scope: 'ENVIRONMENT';
|
|
@@ -130,5 +132,23 @@ export declare const derivedVariables: readonly [{
|
|
|
130
132
|
readonly valueType: 'VARIABLE';
|
|
131
133
|
readonly type: 'disabled';
|
|
132
134
|
readonly scope: 'ENVIRONMENT';
|
|
135
|
+
}, {
|
|
136
|
+
readonly name: 'TWO_FA_ENABLED';
|
|
137
|
+
readonly valueLabel: 'TWO_FA_ENABLED';
|
|
138
|
+
readonly valueType: 'VARIABLE';
|
|
139
|
+
readonly type: 'disabled';
|
|
140
|
+
readonly scope: 'ENVIRONMENT';
|
|
141
|
+
}, {
|
|
142
|
+
readonly name: 'MONITORING_ENABLED';
|
|
143
|
+
readonly valueLabel: 'MONITORING_ENABLED';
|
|
144
|
+
readonly valueType: 'VARIABLE';
|
|
145
|
+
readonly type: 'disabled';
|
|
146
|
+
readonly scope: 'ENVIRONMENT';
|
|
147
|
+
}, {
|
|
148
|
+
readonly name: 'RUSTFS_HOST_DATA_PATH';
|
|
149
|
+
readonly valueLabel: 'RUSTFS_HOST_DATA_PATH';
|
|
150
|
+
readonly valueType: 'VARIABLE';
|
|
151
|
+
readonly type: 'disabled';
|
|
152
|
+
readonly scope: 'ENVIRONMENT';
|
|
133
153
|
}];
|
|
134
154
|
//# sourceMappingURL=derived-variables.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"derived-variables.d.ts","sourceRoot":"","sources":["../../src/environment/derived-variables.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,gBAAgB;aAEzB,IAAI,EAAE,gBAAgB;aACtB,UAAU,EAAE,gBAAgB;aAC5B,SAAS,EAAE,UAAU;aACrB,IAAI,EAAE,UAAU;aAChB,KAAK,EAAE,aAAa;;aAGpB,IAAI,EAAE,qBAAqB;aAC3B,UAAU,EAAE,qBAAqB;aACjC,SAAS,EAAE,UAAU;aACrB,IAAI,EAAE,UAAU;aAChB,KAAK,EAAE,aAAa;;aAGpB,IAAI,EAAE,cAAc;aACpB,UAAU,EAAE,cAAc;aAC1B,SAAS,EAAE,UAAU;aACrB,IAAI,EAAE,UAAU;aAChB,KAAK,EAAE,aAAa;;aAGpB,IAAI,EAAE,kCAAkC;aACxC,UAAU,EAAE,kCAAkC;aAC9C,SAAS,EAAE,UAAU;aACrB,IAAI,EAAE,UAAU;aAChB,KAAK,EAAE,aAAa;;aAGpB,IAAI,EAAE,gBAAgB;aACtB,UAAU,EAAE,gBAAgB;aAC5B,SAAS,EAAE,UAAU;aACrB,IAAI,EAAE,UAAU;aAChB,KAAK,EAAE,aAAa;;aAGpB,IAAI,EAAE,WAAW;aACjB,UAAU,EAAE,WAAW;aACvB,SAAS,EAAE,UAAU;aACrB,IAAI,EAAE,UAAU;aAChB,KAAK,EAAE,aAAa;;aAGpB,IAAI,EAAE,kCAAkC;aACxC,UAAU,EAAE,kCAAkC;aAC9C,SAAS,EAAE,QAAQ;aACnB,IAAI,EAAE,UAAU;aAChB,KAAK,EAAE,aAAa;;aAGpB,IAAI,EAAE,wBAAwB;aAC9B,UAAU,EAAE,wBAAwB;aACpC,SAAS,EAAE,QAAQ;aACnB,IAAI,EAAE,UAAU;aAChB,KAAK,EAAE,aAAa;;aAGpB,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"derived-variables.d.ts","sourceRoot":"","sources":["../../src/environment/derived-variables.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,gBAAgB;aAEzB,IAAI,EAAE,gBAAgB;aACtB,UAAU,EAAE,gBAAgB;aAC5B,SAAS,EAAE,UAAU;aACrB,IAAI,EAAE,UAAU;aAChB,KAAK,EAAE,aAAa;;aAGpB,IAAI,EAAE,qBAAqB;aAC3B,UAAU,EAAE,qBAAqB;aACjC,SAAS,EAAE,UAAU;aACrB,IAAI,EAAE,UAAU;aAChB,KAAK,EAAE,aAAa;;aAGpB,IAAI,EAAE,cAAc;aACpB,UAAU,EAAE,cAAc;aAC1B,SAAS,EAAE,UAAU;aACrB,IAAI,EAAE,UAAU;aAChB,KAAK,EAAE,aAAa;;aAGpB,IAAI,EAAE,kCAAkC;aACxC,UAAU,EAAE,kCAAkC;aAC9C,SAAS,EAAE,UAAU;aACrB,IAAI,EAAE,UAAU;aAChB,KAAK,EAAE,aAAa;;aAGpB,IAAI,EAAE,gBAAgB;aACtB,UAAU,EAAE,gBAAgB;aAC5B,SAAS,EAAE,UAAU;aACrB,IAAI,EAAE,UAAU;aAChB,KAAK,EAAE,aAAa;;aAGpB,IAAI,EAAE,WAAW;aACjB,UAAU,EAAE,WAAW;aACvB,SAAS,EAAE,UAAU;aACrB,IAAI,EAAE,UAAU;aAChB,KAAK,EAAE,aAAa;;aAGpB,IAAI,EAAE,kCAA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AAK,EAAE,aAAa;EAEd,CAAA"}
|
|
@@ -69,15 +69,17 @@ exports.derivedVariables = [
|
|
|
69
69
|
scope: 'ENVIRONMENT'
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
|
-
name: '
|
|
73
|
-
valueLabel: '
|
|
72
|
+
name: 'S3_ADMIN_ACCESS_KEY',
|
|
73
|
+
valueLabel: 'S3_ADMIN_ACCESS_KEY',
|
|
74
|
+
legacyValueLabel: 'MINIO_ROOT_USER',
|
|
74
75
|
valueType: 'SECRET',
|
|
75
76
|
type: 'disabled',
|
|
76
77
|
scope: 'ENVIRONMENT'
|
|
77
78
|
},
|
|
78
79
|
{
|
|
79
|
-
name: '
|
|
80
|
-
valueLabel: '
|
|
80
|
+
name: 'S3_ADMIN_SECRET_KEY',
|
|
81
|
+
valueLabel: 'S3_ADMIN_SECRET_KEY',
|
|
82
|
+
legacyValueLabel: 'MINIO_ROOT_PASSWORD',
|
|
81
83
|
valueType: 'SECRET',
|
|
82
84
|
type: 'disabled',
|
|
83
85
|
scope: 'ENVIRONMENT'
|
|
@@ -165,5 +167,26 @@ exports.derivedVariables = [
|
|
|
165
167
|
valueType: 'VARIABLE',
|
|
166
168
|
type: 'disabled',
|
|
167
169
|
scope: 'ENVIRONMENT'
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
name: 'TWO_FA_ENABLED',
|
|
173
|
+
valueLabel: 'TWO_FA_ENABLED',
|
|
174
|
+
valueType: 'VARIABLE',
|
|
175
|
+
type: 'disabled',
|
|
176
|
+
scope: 'ENVIRONMENT'
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
name: 'MONITORING_ENABLED',
|
|
180
|
+
valueLabel: 'MONITORING_ENABLED',
|
|
181
|
+
valueType: 'VARIABLE',
|
|
182
|
+
type: 'disabled',
|
|
183
|
+
scope: 'ENVIRONMENT'
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
name: 'RUSTFS_HOST_DATA_PATH',
|
|
187
|
+
valueLabel: 'RUSTFS_HOST_DATA_PATH',
|
|
188
|
+
valueType: 'VARIABLE',
|
|
189
|
+
type: 'disabled',
|
|
190
|
+
scope: 'ENVIRONMENT'
|
|
168
191
|
}
|
|
169
192
|
];
|