@opencrvs/toolkit 2.1.2 → 2.2.0-rc.19ec10b
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 +9 -14
- package/create-countryconfig/package.json +1 -1
- package/dist/application-config/index.js +57 -14
- package/dist/authentication/index.d.ts +2 -1
- package/dist/authentication/index.js +34 -14
- package/dist/cli.js +1491 -2020
- package/dist/commons/api/router.d.ts +1564 -248
- package/dist/commons/application-config/index.d.ts +3 -3
- package/dist/commons/conditionals/conditionals.d.ts +58 -7
- package/dist/commons/conditionals/index.d.ts +1 -0
- package/dist/commons/conditionals/validate.d.ts +6 -1
- 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/ActionStatus.d.ts +2 -2
- 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 +473 -6
- package/dist/commons/events/EventDocument.d.ts +90 -0
- package/dist/commons/events/EventIndex.d.ts +44 -6
- package/dist/commons/events/EventInput.d.ts +1 -0
- package/dist/commons/events/EventMetadata.d.ts +24 -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 +17 -17
- package/dist/commons/events/Flag.d.ts +1 -7
- package/dist/commons/events/PlainDate.d.ts +6 -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 +20 -1
- package/dist/commons/events/eventConfigValidation.d.ts +26 -1
- package/dist/commons/events/field.d.ts +37 -0
- package/dist/commons/events/index.d.ts +3 -0
- package/dist/commons/events/locations.d.ts +1 -1
- package/dist/commons/events/scopes.d.ts +4 -1
- package/dist/commons/events/state/flags.d.ts +1 -1
- package/dist/commons/events/state/index.d.ts +11 -2
- package/dist/commons/events/state/utils.d.ts +11 -1
- package/dist/commons/events/test.utils.d.ts +89 -7
- package/dist/commons/events/toNotificationForm.d.ts +17 -0
- package/dist/commons/events/utils.d.ts +90 -10
- package/dist/commons/users/Role.d.ts +23 -0
- package/dist/commons/users/User.d.ts +263 -0
- package/dist/commons/users/authentication.d.ts +67 -0
- package/dist/commons/users/index.d.ts +5 -0
- package/dist/commons/users/roleValidations.d.ts +15 -0
- package/dist/commons/users/scopes.d.ts +1402 -0
- package/dist/commons/users/userReferences.d.ts +176 -0
- package/dist/conditionals/index.js +29 -9
- 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 +165 -35
- package/dist/environment/templates.d.ts.map +1 -1
- package/dist/events/index.js +2050 -1156
- 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 +1081 -209
- package/dist/roles/index.d.ts +2 -0
- package/dist/roles/index.d.ts.map +1 -0
- package/dist/roles/index.js +730 -0
- package/dist/scopes/index.d.ts +83 -100
- package/dist/scopes/index.js +29 -13
- package/dist/templates/charts-values/dependencies/values.yaml +6 -3
- package/dist/templates/charts-values/opencrvs-services/values.yaml +5 -10
- 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.19ec10b.tgz +0 -0
- package/package.json +5 -3
- package/tsconfig.build.tsbuildinfo +1 -1
- package/tsconfig.json +3 -5
- 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
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { JurisdictionFilter, ScopeType, ScopeOptionKey } from './scopes';
|
|
2
|
+
import z from 'zod/v4';
|
|
3
|
+
declare const ScopeOptionReference: z.ZodObject<{
|
|
4
|
+
$scope: z.ZodEnum<{
|
|
5
|
+
"attachment.upload": "attachment.upload";
|
|
6
|
+
bypassratelimit: "bypassratelimit";
|
|
7
|
+
"config.update-all": "config.update-all";
|
|
8
|
+
"dashboard.view": "dashboard.view";
|
|
9
|
+
"integration.audit.read": "integration.audit.read";
|
|
10
|
+
"integration.create": "integration.create";
|
|
11
|
+
"location.edit": "location.edit";
|
|
12
|
+
"organisation.read-locations": "organisation.read-locations";
|
|
13
|
+
"performance.read": "performance.read";
|
|
14
|
+
"performance.read-dashboards": "performance.read-dashboards";
|
|
15
|
+
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
16
|
+
"profile.electronic-signature": "profile.electronic-signature";
|
|
17
|
+
"record.action.accept": "record.action.accept";
|
|
18
|
+
"record.action.reject": "record.action.reject";
|
|
19
|
+
"record.archive": "record.archive";
|
|
20
|
+
"record.correct": "record.correct";
|
|
21
|
+
"record.create": "record.create";
|
|
22
|
+
"record.custom-action": "record.custom-action";
|
|
23
|
+
"record.declare": "record.declare";
|
|
24
|
+
"record.edit": "record.edit";
|
|
25
|
+
"record.import": "record.import";
|
|
26
|
+
"record.notify": "record.notify";
|
|
27
|
+
"record.print-certified-copies": "record.print-certified-copies";
|
|
28
|
+
"record.read": "record.read";
|
|
29
|
+
"record.register": "record.register";
|
|
30
|
+
"record.reindex": "record.reindex";
|
|
31
|
+
"record.reinstate-registration": "record.reinstate-registration";
|
|
32
|
+
"record.reject": "record.reject";
|
|
33
|
+
"record.request-correction": "record.request-correction";
|
|
34
|
+
"record.review-duplicates": "record.review-duplicates";
|
|
35
|
+
"record.revoke-registration": "record.revoke-registration";
|
|
36
|
+
"record.search": "record.search";
|
|
37
|
+
"record.unarchive": "record.unarchive";
|
|
38
|
+
"record.unassign-others": "record.unassign-others";
|
|
39
|
+
"user.create": "user.create";
|
|
40
|
+
"user.data-seeding": "user.data-seeding";
|
|
41
|
+
"user.edit": "user.edit";
|
|
42
|
+
"user.read": "user.read";
|
|
43
|
+
"user.read-only-my-audit": "user.read-only-my-audit";
|
|
44
|
+
"user.search": "user.search";
|
|
45
|
+
workqueue: "workqueue";
|
|
46
|
+
}>;
|
|
47
|
+
$option: z.ZodEnum<{
|
|
48
|
+
accessLevel: "accessLevel";
|
|
49
|
+
createdBy: "createdBy";
|
|
50
|
+
createdIn: "createdIn";
|
|
51
|
+
declaredBy: "declaredBy";
|
|
52
|
+
declaredIn: "declaredIn";
|
|
53
|
+
event: "event";
|
|
54
|
+
flags: "flags";
|
|
55
|
+
ids: "ids";
|
|
56
|
+
notifiedBy: "notifiedBy";
|
|
57
|
+
notifiedIn: "notifiedIn";
|
|
58
|
+
placeOfEvent: "placeOfEvent";
|
|
59
|
+
registeredBy: "registeredBy";
|
|
60
|
+
registeredIn: "registeredIn";
|
|
61
|
+
role: "role";
|
|
62
|
+
status: "status";
|
|
63
|
+
}>;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
type ScopeOptionReference = z.infer<typeof ScopeOptionReference>;
|
|
66
|
+
export declare const JurisdictionReference: z.ZodObject<{
|
|
67
|
+
$jurisdiction: z.ZodUnion<[z.ZodEnum<{
|
|
68
|
+
administrativeArea: "administrativeArea";
|
|
69
|
+
all: "all";
|
|
70
|
+
location: "location";
|
|
71
|
+
}>, z.ZodObject<{
|
|
72
|
+
$scope: z.ZodEnum<{
|
|
73
|
+
"attachment.upload": "attachment.upload";
|
|
74
|
+
bypassratelimit: "bypassratelimit";
|
|
75
|
+
"config.update-all": "config.update-all";
|
|
76
|
+
"dashboard.view": "dashboard.view";
|
|
77
|
+
"integration.audit.read": "integration.audit.read";
|
|
78
|
+
"integration.create": "integration.create";
|
|
79
|
+
"location.edit": "location.edit";
|
|
80
|
+
"organisation.read-locations": "organisation.read-locations";
|
|
81
|
+
"performance.read": "performance.read";
|
|
82
|
+
"performance.read-dashboards": "performance.read-dashboards";
|
|
83
|
+
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
84
|
+
"profile.electronic-signature": "profile.electronic-signature";
|
|
85
|
+
"record.action.accept": "record.action.accept";
|
|
86
|
+
"record.action.reject": "record.action.reject";
|
|
87
|
+
"record.archive": "record.archive";
|
|
88
|
+
"record.correct": "record.correct";
|
|
89
|
+
"record.create": "record.create";
|
|
90
|
+
"record.custom-action": "record.custom-action";
|
|
91
|
+
"record.declare": "record.declare";
|
|
92
|
+
"record.edit": "record.edit";
|
|
93
|
+
"record.import": "record.import";
|
|
94
|
+
"record.notify": "record.notify";
|
|
95
|
+
"record.print-certified-copies": "record.print-certified-copies";
|
|
96
|
+
"record.read": "record.read";
|
|
97
|
+
"record.register": "record.register";
|
|
98
|
+
"record.reindex": "record.reindex";
|
|
99
|
+
"record.reinstate-registration": "record.reinstate-registration";
|
|
100
|
+
"record.reject": "record.reject";
|
|
101
|
+
"record.request-correction": "record.request-correction";
|
|
102
|
+
"record.review-duplicates": "record.review-duplicates";
|
|
103
|
+
"record.revoke-registration": "record.revoke-registration";
|
|
104
|
+
"record.search": "record.search";
|
|
105
|
+
"record.unarchive": "record.unarchive";
|
|
106
|
+
"record.unassign-others": "record.unassign-others";
|
|
107
|
+
"user.create": "user.create";
|
|
108
|
+
"user.data-seeding": "user.data-seeding";
|
|
109
|
+
"user.edit": "user.edit";
|
|
110
|
+
"user.read": "user.read";
|
|
111
|
+
"user.read-only-my-audit": "user.read-only-my-audit";
|
|
112
|
+
"user.search": "user.search";
|
|
113
|
+
workqueue: "workqueue";
|
|
114
|
+
}>;
|
|
115
|
+
$option: z.ZodEnum<{
|
|
116
|
+
accessLevel: "accessLevel";
|
|
117
|
+
createdBy: "createdBy";
|
|
118
|
+
createdIn: "createdIn";
|
|
119
|
+
declaredBy: "declaredBy";
|
|
120
|
+
declaredIn: "declaredIn";
|
|
121
|
+
event: "event";
|
|
122
|
+
flags: "flags";
|
|
123
|
+
ids: "ids";
|
|
124
|
+
notifiedBy: "notifiedBy";
|
|
125
|
+
notifiedIn: "notifiedIn";
|
|
126
|
+
placeOfEvent: "placeOfEvent";
|
|
127
|
+
registeredBy: "registeredBy";
|
|
128
|
+
registeredIn: "registeredIn";
|
|
129
|
+
role: "role";
|
|
130
|
+
status: "status";
|
|
131
|
+
}>;
|
|
132
|
+
}, z.core.$strip>]>;
|
|
133
|
+
}, z.core.$strip>;
|
|
134
|
+
export type JurisdictionReference = z.infer<typeof JurisdictionReference>;
|
|
135
|
+
/**
|
|
136
|
+
* Resolves a jurisdiction reference to a jurisdiction filter.
|
|
137
|
+
*
|
|
138
|
+
* @param jurisdictionReference - The jurisdiction reference to resolve. This can be a plain jurisdiction filter or a scope option reference.
|
|
139
|
+
* @returns The jurisdiction filter or undefined if the jurisdiction reference is not valid.
|
|
140
|
+
*/
|
|
141
|
+
export declare function resolveJurisdictionReference(jurisdictionReference: JurisdictionReference | undefined, token?: string, eventType?: string): JurisdictionFilter | undefined;
|
|
142
|
+
/** Functions for referencing values from the logged in user's details */
|
|
143
|
+
export declare const userReferenceFunctions: {
|
|
144
|
+
scope: (scope: ScopeType) => {
|
|
145
|
+
/**
|
|
146
|
+
* user.scope().attribute() is used to create a scope option reference.
|
|
147
|
+
*
|
|
148
|
+
* E.g.: user.scope('record.create').attribute('placeOfEvent')
|
|
149
|
+
*
|
|
150
|
+
* @param option - The option to create a reference for.
|
|
151
|
+
* @returns A scope option reference.
|
|
152
|
+
*/
|
|
153
|
+
attribute: (option: ScopeOptionKey) => {
|
|
154
|
+
$scope: "attachment.upload" | "bypassratelimit" | "config.update-all" | "dashboard.view" | "integration.audit.read" | "integration.create" | "location.edit" | "organisation.read-locations" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.action.accept" | "record.action.reject" | "record.archive" | "record.correct" | "record.create" | "record.custom-action" | "record.declare" | "record.edit" | "record.import" | "record.notify" | "record.print-certified-copies" | "record.read" | "record.register" | "record.reindex" | "record.reinstate-registration" | "record.reject" | "record.request-correction" | "record.review-duplicates" | "record.revoke-registration" | "record.search" | "record.unarchive" | "record.unassign-others" | "user.create" | "user.data-seeding" | "user.edit" | "user.read" | "user.read-only-my-audit" | "user.search" | "workqueue";
|
|
155
|
+
$option: "accessLevel" | "createdBy" | "createdIn" | "declaredBy" | "declaredIn" | "event" | "flags" | "ids" | "notifiedBy" | "notifiedIn" | "placeOfEvent" | "registeredBy" | "registeredIn" | "role" | "status";
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
159
|
+
* user.jurisdicton() accepts two different kinds of parameters, either:
|
|
160
|
+
*
|
|
161
|
+
* 1. a plain jurisdiction filter: user.jurisdiction('administrativeArea')
|
|
162
|
+
* 2. a scope option reference: user.jurisdiction(user.scope('record.create').attribute('placeOfEvent'))
|
|
163
|
+
*
|
|
164
|
+
* These will be resolved during runtime.
|
|
165
|
+
*
|
|
166
|
+
* @param jurisdiction - The jurisdiction to resolve.
|
|
167
|
+
*/
|
|
168
|
+
jurisdiction: (jurisdiction: JurisdictionFilter | ScopeOptionReference) => {
|
|
169
|
+
$jurisdiction: "administrativeArea" | "all" | "location" | {
|
|
170
|
+
$scope: "attachment.upload" | "bypassratelimit" | "config.update-all" | "dashboard.view" | "integration.audit.read" | "integration.create" | "location.edit" | "organisation.read-locations" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.action.accept" | "record.action.reject" | "record.archive" | "record.correct" | "record.create" | "record.custom-action" | "record.declare" | "record.edit" | "record.import" | "record.notify" | "record.print-certified-copies" | "record.read" | "record.register" | "record.reindex" | "record.reinstate-registration" | "record.reject" | "record.request-correction" | "record.review-duplicates" | "record.revoke-registration" | "record.search" | "record.unarchive" | "record.unassign-others" | "user.create" | "user.data-seeding" | "user.edit" | "user.read" | "user.read-only-my-audit" | "user.search" | "workqueue";
|
|
171
|
+
$option: "accessLevel" | "createdBy" | "createdIn" | "declaredBy" | "declaredIn" | "event" | "flags" | "ids" | "notifiedBy" | "notifiedIn" | "placeOfEvent" | "registeredBy" | "registeredIn" | "role" | "status";
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
export {};
|
|
176
|
+
//# sourceMappingURL=userReferences.d.ts.map
|
|
@@ -37,6 +37,7 @@ __export(conditionals_exports, {
|
|
|
37
37
|
defineConditional: () => defineConditional,
|
|
38
38
|
defineFormConditional: () => defineFormConditional,
|
|
39
39
|
flag: () => flag,
|
|
40
|
+
isActionDateReference: () => isActionDateReference,
|
|
40
41
|
isEventFieldReference: () => isEventFieldReference,
|
|
41
42
|
isFieldReference: () => isFieldReference,
|
|
42
43
|
never: () => never,
|
|
@@ -123,7 +124,7 @@ function todayDateTimeValueSerializer() {
|
|
|
123
124
|
return { $$now: true };
|
|
124
125
|
}
|
|
125
126
|
|
|
126
|
-
// ../commons/src/scopes.ts
|
|
127
|
+
// ../commons/src/users/scopes.ts
|
|
127
128
|
var z11 = __toESM(require("zod/v4"));
|
|
128
129
|
var qs = __toESM(require("qs"));
|
|
129
130
|
|
|
@@ -132,7 +133,7 @@ var import_uuid = require("uuid");
|
|
|
132
133
|
var z4 = __toESM(require("zod/v4"));
|
|
133
134
|
var UUID = z4.uuid().brand("UUID");
|
|
134
135
|
|
|
135
|
-
// ../commons/src/authentication.ts
|
|
136
|
+
// ../commons/src/users/authentication.ts
|
|
136
137
|
var import_jwt_decode = __toESM(require("jwt-decode"));
|
|
137
138
|
var z5 = __toESM(require("zod/v4"));
|
|
138
139
|
var TokenUserType = z5.enum(["user", "system"]);
|
|
@@ -162,6 +163,8 @@ var ActionType = {
|
|
|
162
163
|
REQUEST_CORRECTION: "REQUEST_CORRECTION",
|
|
163
164
|
REJECT_CORRECTION: "REJECT_CORRECTION",
|
|
164
165
|
APPROVE_CORRECTION: "APPROVE_CORRECTION",
|
|
166
|
+
REVOKE_REGISTRATION: "REVOKE_REGISTRATION",
|
|
167
|
+
REINSTATE_REGISTRATION: "REINSTATE_REGISTRATION",
|
|
165
168
|
// General actions
|
|
166
169
|
READ: "READ",
|
|
167
170
|
ASSIGN: "ASSIGN",
|
|
@@ -181,6 +184,8 @@ var ConfirmableActions = [
|
|
|
181
184
|
ActionType.REQUEST_CORRECTION,
|
|
182
185
|
ActionType.APPROVE_CORRECTION,
|
|
183
186
|
ActionType.REJECT_CORRECTION,
|
|
187
|
+
ActionType.REVOKE_REGISTRATION,
|
|
188
|
+
ActionType.REINSTATE_REGISTRATION,
|
|
184
189
|
ActionType.CUSTOM
|
|
185
190
|
];
|
|
186
191
|
var ActionTypes = z6.enum([
|
|
@@ -200,6 +205,8 @@ var ActionTypes = z6.enum([
|
|
|
200
205
|
"REQUEST_CORRECTION",
|
|
201
206
|
"REJECT_CORRECTION",
|
|
202
207
|
"APPROVE_CORRECTION",
|
|
208
|
+
"REVOKE_REGISTRATION",
|
|
209
|
+
"REINSTATE_REGISTRATION",
|
|
203
210
|
"READ",
|
|
204
211
|
"ASSIGN",
|
|
205
212
|
"UNASSIGN",
|
|
@@ -238,7 +245,9 @@ var WorkqueueActionType = ActionTypes.extract([
|
|
|
238
245
|
ActionType.ARCHIVE,
|
|
239
246
|
ActionType.UNARCHIVE,
|
|
240
247
|
ActionType.PRINT_CERTIFICATE,
|
|
241
|
-
ActionType.REQUEST_CORRECTION
|
|
248
|
+
ActionType.REQUEST_CORRECTION,
|
|
249
|
+
ActionType.REVOKE_REGISTRATION,
|
|
250
|
+
ActionType.REINSTATE_REGISTRATION
|
|
242
251
|
]);
|
|
243
252
|
var META_ACTIONS = [
|
|
244
253
|
ActionType.ASSIGN,
|
|
@@ -254,7 +263,7 @@ var ActionStatus = {
|
|
|
254
263
|
};
|
|
255
264
|
|
|
256
265
|
// ../commons/src/events/Flag.ts
|
|
257
|
-
var z9 = __toESM(require("zod
|
|
266
|
+
var z9 = __toESM(require("zod"));
|
|
258
267
|
|
|
259
268
|
// ../commons/src/events/TranslationConfig.ts
|
|
260
269
|
var z7 = __toESM(require("zod/v4"));
|
|
@@ -323,7 +332,6 @@ var FieldConditional = z8.discriminatedUnion("type", [
|
|
|
323
332
|
|
|
324
333
|
// ../commons/src/events/Flag.ts
|
|
325
334
|
var InherentFlags = {
|
|
326
|
-
INCOMPLETE: "incomplete",
|
|
327
335
|
REJECTED: "rejected",
|
|
328
336
|
CORRECTION_REQUESTED: "correction-requested",
|
|
329
337
|
POTENTIAL_DUPLICATE: "potential-duplicate",
|
|
@@ -351,7 +359,7 @@ var CustomFlag = z9.string().refine((val) => !Object.values(InherentFlags).inclu
|
|
|
351
359
|
message: `Custom flag cannot be one of the inherent flags: ${Object.values(
|
|
352
360
|
InherentFlags
|
|
353
361
|
).join(", ")}`
|
|
354
|
-
}).refine((val) => !ActionFlag.
|
|
362
|
+
}).refine((val) => !ActionFlag.validate(val), {
|
|
355
363
|
message: "Custom flag cannot match the ActionFlag pattern (ActionType:ActionStatus)."
|
|
356
364
|
}).describe("Custom flag identifier defined by the country config.");
|
|
357
365
|
var Flag = ActionFlag.or(z9.enum(InherentFlags)).or(CustomFlag);
|
|
@@ -390,10 +398,11 @@ var EventStatus = z10.enum([
|
|
|
390
398
|
"NOTIFIED",
|
|
391
399
|
"DECLARED",
|
|
392
400
|
"REGISTERED",
|
|
401
|
+
"REVOKED",
|
|
393
402
|
"ARCHIVED"
|
|
394
403
|
]);
|
|
395
404
|
|
|
396
|
-
// ../commons/src/scopes.ts
|
|
405
|
+
// ../commons/src/users/scopes.ts
|
|
397
406
|
var JurisdictionFilter = z11.enum(["administrativeArea", "location", "all"]).describe(
|
|
398
407
|
"Filters based on user jurisdiction relative to their office location in hierarchy."
|
|
399
408
|
);
|
|
@@ -413,6 +422,8 @@ var RecordScopeTypeV2 = z11.enum([
|
|
|
413
422
|
"record.print-certified-copies",
|
|
414
423
|
"record.request-correction",
|
|
415
424
|
"record.correct",
|
|
425
|
+
"record.revoke-registration",
|
|
426
|
+
"record.reinstate-registration",
|
|
416
427
|
"record.unassign-others",
|
|
417
428
|
"record.custom-action",
|
|
418
429
|
"record.action.accept",
|
|
@@ -539,6 +550,8 @@ var ScopesWithFullOptions = RecordScopeTypeV2.extract([
|
|
|
539
550
|
"record.read",
|
|
540
551
|
"record.request-correction",
|
|
541
552
|
"record.correct",
|
|
553
|
+
"record.revoke-registration",
|
|
554
|
+
"record.reinstate-registration",
|
|
542
555
|
"record.unassign-others",
|
|
543
556
|
"record.review-duplicates"
|
|
544
557
|
]);
|
|
@@ -835,6 +848,9 @@ function isFieldReference(value) {
|
|
|
835
848
|
function isEventFieldReference(value) {
|
|
836
849
|
return typeof value === "object" && value !== null && "$$event" in value;
|
|
837
850
|
}
|
|
851
|
+
function isActionDateReference(value) {
|
|
852
|
+
return typeof value === "object" && value !== null && "$action" in value;
|
|
853
|
+
}
|
|
838
854
|
function getDateRangeToFieldReference(field, comparedField, clause) {
|
|
839
855
|
return {
|
|
840
856
|
type: "object",
|
|
@@ -1022,7 +1038,9 @@ function createFieldConditionals(fieldId) {
|
|
|
1022
1038
|
},
|
|
1023
1039
|
fromNow: () => {
|
|
1024
1040
|
return defineFormConditional(getDayRange(this, days, "after"));
|
|
1025
|
-
}
|
|
1041
|
+
},
|
|
1042
|
+
beforeAction: (action) => defineFormConditional(getDayRange(this, -days, "after", action)),
|
|
1043
|
+
afterAction: (action) => defineFormConditional(getDayRange(this, days, "after", action))
|
|
1026
1044
|
}),
|
|
1027
1045
|
date: (date) => {
|
|
1028
1046
|
if (isFieldReference(date)) {
|
|
@@ -1063,7 +1081,9 @@ function createFieldConditionals(fieldId) {
|
|
|
1063
1081
|
},
|
|
1064
1082
|
fromNow: () => {
|
|
1065
1083
|
return defineFormConditional(getDayRange(this, -days, "before"));
|
|
1066
|
-
}
|
|
1084
|
+
},
|
|
1085
|
+
beforeAction: (action) => defineFormConditional(getDayRange(this, -days, "before", action)),
|
|
1086
|
+
afterAction: (action) => defineFormConditional(getDayRange(this, days, "before", action))
|
|
1067
1087
|
}),
|
|
1068
1088
|
date: (date) => {
|
|
1069
1089
|
if (isFieldReference(date)) {
|
|
@@ -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,MAAM,EAAE,QAAQ,EAAE,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,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,kCAAkC;aACxC,UAAU,EAAE,kC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AAA"}
|
|
@@ -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
|
];
|
|
@@ -1,15 +1,27 @@
|
|
|
1
1
|
declare const notEmpty: (value: string | number) => "Please enter a value" | true;
|
|
2
2
|
declare function validateCIDRs(input: string): true | string;
|
|
3
|
-
|
|
3
|
+
declare function validateRegistryHost(input: string): true | string;
|
|
4
|
+
export declare const registryQuestions: ({
|
|
5
|
+
name: string;
|
|
6
|
+
type: 'text';
|
|
7
|
+
message: string;
|
|
8
|
+
valueType: 'VARIABLE';
|
|
9
|
+
valueLabel: string;
|
|
10
|
+
validate: typeof validateRegistryHost;
|
|
11
|
+
initial: string;
|
|
12
|
+
scope: 'REPOSITORY';
|
|
13
|
+
legacyValueLabel?: undefined;
|
|
14
|
+
} | {
|
|
4
15
|
name: string;
|
|
5
16
|
type: 'text';
|
|
6
17
|
message: string;
|
|
7
18
|
valueType: 'SECRET';
|
|
8
19
|
valueLabel: string;
|
|
20
|
+
legacyValueLabel: string;
|
|
9
21
|
validate: typeof notEmpty;
|
|
10
22
|
initial: string | undefined;
|
|
11
23
|
scope: 'REPOSITORY';
|
|
12
|
-
}[];
|
|
24
|
+
})[];
|
|
13
25
|
export declare const githubQuestions: {
|
|
14
26
|
name: string;
|
|
15
27
|
type: 'text';
|
|
@@ -18,7 +30,21 @@ export declare const githubQuestions: {
|
|
|
18
30
|
initial: string;
|
|
19
31
|
scope: 'REPOSITORY';
|
|
20
32
|
}[];
|
|
21
|
-
export declare const
|
|
33
|
+
export declare const githubApprovalRequiredQuestion: {
|
|
34
|
+
name: string;
|
|
35
|
+
type: 'select';
|
|
36
|
+
message: string;
|
|
37
|
+
choices: {
|
|
38
|
+
title: string;
|
|
39
|
+
value: string;
|
|
40
|
+
}[];
|
|
41
|
+
valueType: 'VARIABLE';
|
|
42
|
+
validate: typeof notEmpty;
|
|
43
|
+
valueLabel: string;
|
|
44
|
+
initial: string | undefined;
|
|
45
|
+
scope: 'ENVIRONMENT';
|
|
46
|
+
};
|
|
47
|
+
export declare const githubApproversQuestion: {
|
|
22
48
|
name: string;
|
|
23
49
|
type: 'text';
|
|
24
50
|
message: string;
|
|
@@ -26,9 +52,8 @@ export declare const githubOtherQuestions: ({
|
|
|
26
52
|
valueType: 'VARIABLE';
|
|
27
53
|
valueLabel: string;
|
|
28
54
|
scope: 'REPOSITORY';
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
} | {
|
|
55
|
+
};
|
|
56
|
+
export declare const githubOtherQuestions: ({
|
|
32
57
|
name: string;
|
|
33
58
|
type: 'select';
|
|
34
59
|
message: string;
|
|
@@ -41,6 +66,14 @@ export declare const githubOtherQuestions: ({
|
|
|
41
66
|
valueLabel: string;
|
|
42
67
|
initial: string | undefined;
|
|
43
68
|
scope: 'ENVIRONMENT';
|
|
69
|
+
} | {
|
|
70
|
+
name: string;
|
|
71
|
+
type: 'text';
|
|
72
|
+
message: string;
|
|
73
|
+
initial: string | undefined;
|
|
74
|
+
valueType: 'VARIABLE';
|
|
75
|
+
valueLabel: string;
|
|
76
|
+
scope: 'REPOSITORY';
|
|
44
77
|
})[];
|
|
45
78
|
export declare const githubTokenQuestion: {
|
|
46
79
|
name: string;
|
|
@@ -71,7 +104,6 @@ export declare const infrastructureQuestions: ({
|
|
|
71
104
|
initial: string | undefined;
|
|
72
105
|
scope: 'ENVIRONMENT';
|
|
73
106
|
} | {
|
|
74
|
-
validate?: undefined;
|
|
75
107
|
name: string;
|
|
76
108
|
type: 'text';
|
|
77
109
|
message: string;
|
|
@@ -79,6 +111,7 @@ export declare const infrastructureQuestions: ({
|
|
|
79
111
|
valueLabel: string;
|
|
80
112
|
initial: string | undefined;
|
|
81
113
|
scope: 'ENVIRONMENT';
|
|
114
|
+
validate?: undefined;
|
|
82
115
|
} | {
|
|
83
116
|
name: string;
|
|
84
117
|
type: 'text';
|
|
@@ -100,7 +133,6 @@ export declare const staticSSLCertQuestions: {
|
|
|
100
133
|
scope: 'ENVIRONMENT';
|
|
101
134
|
}[];
|
|
102
135
|
export declare const backupQuestions: ({
|
|
103
|
-
choices?: undefined;
|
|
104
136
|
validate?: undefined;
|
|
105
137
|
name: string;
|
|
106
138
|
type: 'text';
|
|
@@ -109,8 +141,8 @@ export declare const backupQuestions: ({
|
|
|
109
141
|
valueLabel: string;
|
|
110
142
|
initial: string;
|
|
111
143
|
scope: 'ENVIRONMENT';
|
|
112
|
-
} | {
|
|
113
144
|
choices?: undefined;
|
|
145
|
+
} | {
|
|
114
146
|
name: string;
|
|
115
147
|
type: 'text';
|
|
116
148
|
message: string;
|
|
@@ -119,6 +151,7 @@ export declare const backupQuestions: ({
|
|
|
119
151
|
valueLabel: string;
|
|
120
152
|
initial: string;
|
|
121
153
|
scope: 'ENVIRONMENT';
|
|
154
|
+
choices?: undefined;
|
|
122
155
|
} | {
|
|
123
156
|
name: string;
|
|
124
157
|
type: 'select';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"questions.d.ts","sourceRoot":"","sources":["../../src/environment/questions.ts"],"names":[],"mappings":"AAeA,QAAA,MAAM,QAAQ,UAAW,MAAM,GAAG,MAAM,kCAC4B,CAAA;AAepE,iBAAS,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAgBnD;
|
|
1
|
+
{"version":3,"file":"questions.d.ts","sourceRoot":"","sources":["../../src/environment/questions.ts"],"names":[],"mappings":"AAeA,QAAA,MAAM,QAAQ,UAAW,MAAM,GAAG,MAAM,kCAC4B,CAAA;AAepE,iBAAS,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAgBnD;AAGD,iBAAS,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAI1D;AAGD,eAAO,MAAM,iBAAiB;;UAGpB,MAAM;;eAGD,UAAU;;;;WAId,YAAY;;;;UAIb,MAAM;;eAGD,QAAQ;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