@opencrvs/toolkit 2.1.0-rc.91e9465 → 2.1.0-rc.92c886f
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/dist/application-config/index.js +1 -2
- package/dist/commons/api/router.d.ts +1639 -1603
- package/dist/commons/application-config/index.d.ts +6 -6
- package/dist/commons/conditionals/conditionals.d.ts +323 -32
- package/dist/commons/events/ActionConfig.d.ts +105 -105
- package/dist/commons/events/ActionDocument.d.ts +119 -119
- package/dist/commons/events/ActionInput.d.ts +6 -0
- package/dist/commons/events/ActionType.d.ts +62 -62
- package/dist/commons/events/AdvancedSearchConfig.d.ts +507 -507
- package/dist/commons/events/AuditLog.d.ts +43 -43
- package/dist/commons/events/CompositeFieldValue.d.ts +4 -4
- package/dist/commons/events/Conditional.d.ts +3 -3
- package/dist/commons/events/CountryConfigQueryInput.d.ts +590 -590
- package/dist/commons/events/Draft.d.ts +37 -37
- package/dist/commons/events/DynamicFieldValue.d.ts +9 -9
- package/dist/commons/events/EventConfig.d.ts +5 -5
- package/dist/commons/events/EventDocument.d.ts +48 -48
- package/dist/commons/events/EventIndex.d.ts +62 -62
- package/dist/commons/events/EventMetadata.d.ts +40 -40
- package/dist/commons/events/FieldConfig.d.ts +337 -337
- package/dist/commons/events/FieldType.d.ts +51 -51
- package/dist/commons/events/FieldTypeMapping.d.ts +100 -100
- package/dist/commons/events/FieldValue.d.ts +12 -12
- package/dist/commons/events/Flag.d.ts +15 -15
- package/dist/commons/events/TemplateConfig.d.ts +1 -1
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +40 -40
- package/dist/commons/events/WorkqueueConfig.d.ts +820 -820
- package/dist/commons/events/deduplication.d.ts +1 -1
- package/dist/commons/events/event.d.ts +2 -2
- package/dist/commons/events/field.d.ts +198 -69
- package/dist/commons/events/locations.d.ts +4 -4
- package/dist/commons/events/mocks.test.utils.d.ts +2 -2
- package/dist/commons/events/scopes.d.ts +4 -4
- package/dist/commons/events/state/index.d.ts +17 -17
- package/dist/commons/events/state/utils.d.ts +7 -7
- package/dist/commons/events/test.utils.d.ts +38 -35
- package/dist/commons/events/utils.d.ts +114 -114
- package/dist/commons/notification/UserNotifications.d.ts +10 -10
- package/dist/environment/derived-variables.d.ts +119 -119
- package/dist/environment/derived-variables.d.ts.map +1 -1
- package/dist/environment/logger.d.ts +12 -3
- package/dist/environment/logger.d.ts.map +1 -1
- package/dist/environment/manage-users.js +7 -17
- package/dist/environment/questions.d.ts +74 -75
- package/dist/environment/questions.d.ts.map +1 -1
- package/dist/environment/setup-environment.js +14 -8
- package/dist/environment/swarm-to-k8s.js +7 -17
- package/dist/environment/update-workflows.js +7 -17
- package/dist/environment/users.js +7 -17
- package/dist/environment/utils.d.ts +1 -1
- package/dist/environment/utils.js +7 -17
- package/dist/events/deduplication.d.ts +1 -1
- package/dist/events/index.js +6 -3
- package/dist/migrations/v2.0/convert-config-files-to-ts.js +7 -17
- package/dist/migrations/v2.0/migrate-application-config-url.js +3 -4
- package/dist/migrations/v2.0/remove-hearth-migrations.js +7 -17
- package/dist/notification/index.js +5 -3
- package/dist/scopes/index.d.ts +146 -146
- package/opencrvs-toolkit-2.1.0-rc.92c886f.tgz +0 -0
- package/package.json +4 -3
- package/tsconfig.tsbuildinfo +1 -1
- package/opencrvs-toolkit-2.1.0-rc.91e9465.tgz +0 -0
|
@@ -1,122 +1,122 @@
|
|
|
1
1
|
export declare const derivedVariables: readonly [{
|
|
2
|
-
readonly name:
|
|
3
|
-
readonly valueLabel:
|
|
4
|
-
readonly valueType:
|
|
5
|
-
readonly type:
|
|
6
|
-
readonly scope:
|
|
7
|
-
}, {
|
|
8
|
-
readonly name:
|
|
9
|
-
readonly valueLabel:
|
|
10
|
-
readonly valueType:
|
|
11
|
-
readonly type:
|
|
12
|
-
readonly scope:
|
|
13
|
-
}, {
|
|
14
|
-
readonly name:
|
|
15
|
-
readonly valueLabel:
|
|
16
|
-
readonly valueType:
|
|
17
|
-
readonly type:
|
|
18
|
-
readonly scope:
|
|
19
|
-
}, {
|
|
20
|
-
readonly name:
|
|
21
|
-
readonly valueLabel:
|
|
22
|
-
readonly valueType:
|
|
23
|
-
readonly type:
|
|
24
|
-
readonly scope:
|
|
25
|
-
}, {
|
|
26
|
-
readonly name:
|
|
27
|
-
readonly valueLabel:
|
|
28
|
-
readonly valueType:
|
|
29
|
-
readonly type:
|
|
30
|
-
readonly scope:
|
|
31
|
-
}, {
|
|
32
|
-
readonly name:
|
|
33
|
-
readonly valueLabel:
|
|
34
|
-
readonly valueType:
|
|
35
|
-
readonly type:
|
|
36
|
-
readonly scope:
|
|
37
|
-
}, {
|
|
38
|
-
readonly name:
|
|
39
|
-
readonly valueLabel:
|
|
40
|
-
readonly valueType:
|
|
41
|
-
readonly type:
|
|
42
|
-
readonly scope:
|
|
43
|
-
}, {
|
|
44
|
-
readonly name:
|
|
45
|
-
readonly valueLabel:
|
|
46
|
-
readonly valueType:
|
|
47
|
-
readonly type:
|
|
48
|
-
readonly scope:
|
|
49
|
-
}, {
|
|
50
|
-
readonly name:
|
|
51
|
-
readonly valueLabel:
|
|
52
|
-
readonly valueType:
|
|
53
|
-
readonly type:
|
|
54
|
-
readonly scope:
|
|
55
|
-
}, {
|
|
56
|
-
readonly name:
|
|
57
|
-
readonly valueLabel:
|
|
58
|
-
readonly valueType:
|
|
59
|
-
readonly type:
|
|
60
|
-
readonly scope:
|
|
61
|
-
}, {
|
|
62
|
-
readonly name:
|
|
63
|
-
readonly valueLabel:
|
|
64
|
-
readonly valueType:
|
|
65
|
-
readonly type:
|
|
66
|
-
readonly scope:
|
|
67
|
-
}, {
|
|
68
|
-
readonly name:
|
|
69
|
-
readonly valueLabel:
|
|
70
|
-
readonly valueType:
|
|
71
|
-
readonly type:
|
|
72
|
-
readonly scope:
|
|
73
|
-
}, {
|
|
74
|
-
readonly name:
|
|
75
|
-
readonly valueLabel:
|
|
76
|
-
readonly valueType:
|
|
77
|
-
readonly type:
|
|
78
|
-
readonly scope:
|
|
79
|
-
}, {
|
|
80
|
-
readonly name:
|
|
81
|
-
readonly valueLabel:
|
|
82
|
-
readonly valueType:
|
|
83
|
-
readonly type:
|
|
84
|
-
readonly scope:
|
|
85
|
-
}, {
|
|
86
|
-
readonly name:
|
|
87
|
-
readonly valueLabel:
|
|
88
|
-
readonly valueType:
|
|
89
|
-
readonly type:
|
|
90
|
-
readonly scope:
|
|
91
|
-
}, {
|
|
92
|
-
readonly name:
|
|
93
|
-
readonly valueLabel:
|
|
94
|
-
readonly valueType:
|
|
95
|
-
readonly type:
|
|
96
|
-
readonly scope:
|
|
97
|
-
}, {
|
|
98
|
-
readonly name:
|
|
99
|
-
readonly valueLabel:
|
|
100
|
-
readonly valueType:
|
|
101
|
-
readonly type:
|
|
102
|
-
readonly scope:
|
|
103
|
-
}, {
|
|
104
|
-
readonly name:
|
|
105
|
-
readonly valueLabel:
|
|
106
|
-
readonly valueType:
|
|
107
|
-
readonly type:
|
|
108
|
-
readonly scope:
|
|
109
|
-
}, {
|
|
110
|
-
readonly name:
|
|
111
|
-
readonly valueLabel:
|
|
112
|
-
readonly valueType:
|
|
113
|
-
readonly type:
|
|
114
|
-
readonly scope:
|
|
115
|
-
}, {
|
|
116
|
-
readonly name:
|
|
117
|
-
readonly valueLabel:
|
|
118
|
-
readonly valueType:
|
|
119
|
-
readonly type:
|
|
120
|
-
readonly scope:
|
|
2
|
+
readonly name: "ACTIVATE_USERS";
|
|
3
|
+
readonly valueLabel: "ACTIVATE_USERS";
|
|
4
|
+
readonly valueType: "VARIABLE";
|
|
5
|
+
readonly type: "disabled";
|
|
6
|
+
readonly scope: "ENVIRONMENT";
|
|
7
|
+
}, {
|
|
8
|
+
readonly name: "COUNTRY_CONFIG_HOST";
|
|
9
|
+
readonly valueLabel: "COUNTRY_CONFIG_HOST";
|
|
10
|
+
readonly valueType: "VARIABLE";
|
|
11
|
+
readonly type: "disabled";
|
|
12
|
+
readonly scope: "ENVIRONMENT";
|
|
13
|
+
}, {
|
|
14
|
+
readonly name: "GATEWAY_HOST";
|
|
15
|
+
readonly valueLabel: "GATEWAY_HOST";
|
|
16
|
+
readonly valueType: "VARIABLE";
|
|
17
|
+
readonly type: "disabled";
|
|
18
|
+
readonly scope: "ENVIRONMENT";
|
|
19
|
+
}, {
|
|
20
|
+
readonly name: "CONTENT_SECURITY_POLICY_WILDCARD";
|
|
21
|
+
readonly valueLabel: "CONTENT_SECURITY_POLICY_WILDCARD";
|
|
22
|
+
readonly valueType: "VARIABLE";
|
|
23
|
+
readonly type: "disabled";
|
|
24
|
+
readonly scope: "ENVIRONMENT";
|
|
25
|
+
}, {
|
|
26
|
+
readonly name: "CLIENT_APP_URL";
|
|
27
|
+
readonly valueLabel: "CLIENT_APP_URL";
|
|
28
|
+
readonly valueType: "VARIABLE";
|
|
29
|
+
readonly type: "disabled";
|
|
30
|
+
readonly scope: "ENVIRONMENT";
|
|
31
|
+
}, {
|
|
32
|
+
readonly name: "LOGIN_URL";
|
|
33
|
+
readonly valueLabel: "LOGIN_URL";
|
|
34
|
+
readonly valueType: "VARIABLE";
|
|
35
|
+
readonly type: "disabled";
|
|
36
|
+
readonly scope: "ENVIRONMENT";
|
|
37
|
+
}, {
|
|
38
|
+
readonly name: "ELASTICSEARCH_SUPERUSER_PASSWORD";
|
|
39
|
+
readonly valueLabel: "ELASTICSEARCH_SUPERUSER_PASSWORD";
|
|
40
|
+
readonly valueType: "SECRET";
|
|
41
|
+
readonly type: "disabled";
|
|
42
|
+
readonly scope: "ENVIRONMENT";
|
|
43
|
+
}, {
|
|
44
|
+
readonly name: "KIBANA_SYSTEM_PASSWORD";
|
|
45
|
+
readonly valueLabel: "KIBANA_SYSTEM_PASSWORD";
|
|
46
|
+
readonly valueType: "SECRET";
|
|
47
|
+
readonly type: "disabled";
|
|
48
|
+
readonly scope: "ENVIRONMENT";
|
|
49
|
+
}, {
|
|
50
|
+
readonly name: "MINIO_ROOT_USER";
|
|
51
|
+
readonly valueLabel: "MINIO_ROOT_USER";
|
|
52
|
+
readonly valueType: "SECRET";
|
|
53
|
+
readonly type: "disabled";
|
|
54
|
+
readonly scope: "ENVIRONMENT";
|
|
55
|
+
}, {
|
|
56
|
+
readonly name: "MINIO_ROOT_PASSWORD";
|
|
57
|
+
readonly valueLabel: "MINIO_ROOT_PASSWORD";
|
|
58
|
+
readonly valueType: "SECRET";
|
|
59
|
+
readonly type: "disabled";
|
|
60
|
+
readonly scope: "ENVIRONMENT";
|
|
61
|
+
}, {
|
|
62
|
+
readonly name: "POSTGRES_USER";
|
|
63
|
+
readonly valueLabel: "POSTGRES_USER";
|
|
64
|
+
readonly valueType: "SECRET";
|
|
65
|
+
readonly type: "disabled";
|
|
66
|
+
readonly scope: "ENVIRONMENT";
|
|
67
|
+
}, {
|
|
68
|
+
readonly name: "POSTGRES_PASSWORD";
|
|
69
|
+
readonly valueLabel: "POSTGRES_PASSWORD";
|
|
70
|
+
readonly valueType: "SECRET";
|
|
71
|
+
readonly type: "disabled";
|
|
72
|
+
readonly scope: "ENVIRONMENT";
|
|
73
|
+
}, {
|
|
74
|
+
readonly name: "SUPER_USER_PASSWORD";
|
|
75
|
+
readonly valueLabel: "SUPER_USER_PASSWORD";
|
|
76
|
+
readonly valueType: "SECRET";
|
|
77
|
+
readonly type: "disabled";
|
|
78
|
+
readonly scope: "ENVIRONMENT";
|
|
79
|
+
}, {
|
|
80
|
+
readonly name: "ENCRYPTION_KEY";
|
|
81
|
+
readonly valueLabel: "ENCRYPTION_KEY";
|
|
82
|
+
readonly valueType: "SECRET";
|
|
83
|
+
readonly type: "disabled";
|
|
84
|
+
readonly scope: "ENVIRONMENT";
|
|
85
|
+
}, {
|
|
86
|
+
readonly name: "GH_ENCRYPTION_PASSWORD";
|
|
87
|
+
readonly valueLabel: "GH_ENCRYPTION_PASSWORD";
|
|
88
|
+
readonly valueType: "SECRET";
|
|
89
|
+
readonly type: "disabled";
|
|
90
|
+
readonly scope: "REPOSITORY";
|
|
91
|
+
}, {
|
|
92
|
+
readonly name: "BACKUP_ENCRYPTION_PASSPHRASE";
|
|
93
|
+
readonly valueLabel: "BACKUP_ENCRYPTION_PASSPHRASE";
|
|
94
|
+
readonly valueType: "SECRET";
|
|
95
|
+
readonly type: "disabled";
|
|
96
|
+
readonly scope: "ENVIRONMENT";
|
|
97
|
+
}, {
|
|
98
|
+
readonly name: "BACKUP_HOST_PRIVATE_KEY";
|
|
99
|
+
readonly valueLabel: "BACKUP_HOST_PRIVATE_KEY";
|
|
100
|
+
readonly valueType: "SECRET";
|
|
101
|
+
readonly type: "disabled";
|
|
102
|
+
readonly scope: "ENVIRONMENT";
|
|
103
|
+
}, {
|
|
104
|
+
readonly name: "BACKUP_HOST_PUBLIC_KEY";
|
|
105
|
+
readonly valueLabel: "BACKUP_HOST_PUBLIC_KEY";
|
|
106
|
+
readonly valueType: "SECRET";
|
|
107
|
+
readonly type: "disabled";
|
|
108
|
+
readonly scope: "ENVIRONMENT";
|
|
109
|
+
}, {
|
|
110
|
+
readonly name: "RESTORE_ENVIRONMENT_NAME";
|
|
111
|
+
readonly valueLabel: "RESTORE_ENVIRONMENT_NAME";
|
|
112
|
+
readonly valueType: "VARIABLE";
|
|
113
|
+
readonly type: "disabled";
|
|
114
|
+
readonly scope: "ENVIRONMENT";
|
|
115
|
+
}, {
|
|
116
|
+
readonly name: "NOTIFICATION_TRANSPORT";
|
|
117
|
+
readonly valueLabel: "NOTIFICATION_TRANSPORT";
|
|
118
|
+
readonly valueType: "VARIABLE";
|
|
119
|
+
readonly type: "disabled";
|
|
120
|
+
readonly scope: "ENVIRONMENT";
|
|
121
121
|
}];
|
|
122
122
|
//# 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
|
|
1
|
+
{"version":3,"file":"derived-variables.d.ts","sourceRoot":"","sources":["../../src/environment/derived-variables.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6InB,CAAA"}
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
export declare const log:
|
|
2
|
-
|
|
1
|
+
export declare const log: {
|
|
2
|
+
(...data: any[]): void;
|
|
3
|
+
(message?: any, ...optionalParams: any[]): void;
|
|
4
|
+
};
|
|
5
|
+
export declare const warn: {
|
|
6
|
+
(...data: any[]): void;
|
|
7
|
+
(message?: any, ...optionalParams: any[]): void;
|
|
8
|
+
};
|
|
3
9
|
export declare const success: (...args: any[]) => void;
|
|
4
|
-
export declare const info:
|
|
10
|
+
export declare const info: {
|
|
11
|
+
(...data: any[]): void;
|
|
12
|
+
(message?: any, ...optionalParams: any[]): void;
|
|
13
|
+
};
|
|
5
14
|
export declare const error: (...args: any[]) => void;
|
|
6
15
|
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/environment/logger.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/environment/logger.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,GAAG;;;CAAc,CAAA;AAC9B,eAAO,MAAM,IAAI;;;CAAe,CAAA;AAChC,eAAO,MAAM,OAAO,YAAa,GAAG,EAAE,SACI,CAAA;AAC1C,eAAO,MAAM,IAAI;;;CAAe,CAAA;AAChC,eAAO,MAAM,KAAK,YAAa,GAAG,EAAE,SAA2C,CAAA"}
|
|
@@ -25,23 +25,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
25
25
|
}) : function(o, v) {
|
|
26
26
|
o["default"] = v;
|
|
27
27
|
});
|
|
28
|
-
var __importStar = (this && this.__importStar) ||
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
return ownKeys(o);
|
|
36
|
-
};
|
|
37
|
-
return function (mod) {
|
|
38
|
-
if (mod && mod.__esModule) return mod;
|
|
39
|
-
var result = {};
|
|
40
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
41
|
-
__setModuleDefault(result, mod);
|
|
42
|
-
return result;
|
|
43
|
-
};
|
|
44
|
-
})();
|
|
28
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
45
35
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
46
36
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
47
37
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -1,199 +1,198 @@
|
|
|
1
|
-
declare const notEmpty: (value: string | number) => "Please enter a value" | true;
|
|
2
1
|
declare function validateCIDRs(input: string): true | string;
|
|
3
2
|
export declare const dockerhubQuestions: {
|
|
4
3
|
name: string;
|
|
5
|
-
type:
|
|
4
|
+
type: "text";
|
|
6
5
|
message: string;
|
|
7
|
-
valueType:
|
|
6
|
+
valueType: "SECRET";
|
|
8
7
|
valueLabel: string;
|
|
9
|
-
validate:
|
|
8
|
+
validate: (value: string | number) => true | "Please enter a value";
|
|
10
9
|
initial: string | undefined;
|
|
11
|
-
scope:
|
|
10
|
+
scope: "REPOSITORY";
|
|
12
11
|
}[];
|
|
13
12
|
export declare const githubQuestions: {
|
|
14
13
|
name: string;
|
|
15
|
-
type:
|
|
14
|
+
type: "text";
|
|
16
15
|
message: string;
|
|
17
|
-
validate:
|
|
16
|
+
validate: (value: string | number) => true | "Please enter a value";
|
|
18
17
|
initial: string;
|
|
19
|
-
scope:
|
|
18
|
+
scope: "REPOSITORY";
|
|
20
19
|
}[];
|
|
21
20
|
export declare const githubOtherQuestions: ({
|
|
22
21
|
name: string;
|
|
23
|
-
type:
|
|
22
|
+
type: "text";
|
|
24
23
|
message: string;
|
|
25
24
|
initial: string | undefined;
|
|
26
|
-
valueType:
|
|
25
|
+
valueType: "VARIABLE";
|
|
27
26
|
valueLabel: string;
|
|
28
|
-
scope:
|
|
27
|
+
scope: "REPOSITORY";
|
|
29
28
|
choices?: undefined;
|
|
30
29
|
validate?: undefined;
|
|
31
30
|
} | {
|
|
32
31
|
name: string;
|
|
33
|
-
type:
|
|
32
|
+
type: "select";
|
|
34
33
|
message: string;
|
|
35
34
|
choices: {
|
|
36
35
|
title: string;
|
|
37
36
|
value: string;
|
|
38
37
|
}[];
|
|
39
|
-
valueType:
|
|
40
|
-
validate:
|
|
38
|
+
valueType: "VARIABLE";
|
|
39
|
+
validate: (value: string | number) => true | "Please enter a value";
|
|
41
40
|
valueLabel: string;
|
|
42
41
|
initial: string | undefined;
|
|
43
|
-
scope:
|
|
42
|
+
scope: "ENVIRONMENT";
|
|
44
43
|
})[];
|
|
45
44
|
export declare const githubTokenQuestion: {
|
|
46
45
|
name: string;
|
|
47
|
-
type:
|
|
46
|
+
type: "text";
|
|
48
47
|
message: string;
|
|
49
|
-
validate:
|
|
48
|
+
validate: (value: string | number) => true | "Please enter a value";
|
|
50
49
|
initial: string | undefined;
|
|
51
|
-
valueType:
|
|
52
|
-
scope:
|
|
50
|
+
valueType: "SECRET";
|
|
51
|
+
scope: "REPOSITORY";
|
|
53
52
|
valueLabel: string;
|
|
54
53
|
}[];
|
|
55
54
|
export declare const countryQuestions: {
|
|
56
55
|
name: string;
|
|
57
|
-
type:
|
|
56
|
+
type: "text";
|
|
58
57
|
message: string;
|
|
59
|
-
valueType:
|
|
58
|
+
valueType: "VARIABLE";
|
|
60
59
|
valueLabel: string;
|
|
61
60
|
initial: string | undefined;
|
|
62
|
-
scope:
|
|
61
|
+
scope: "REPOSITORY";
|
|
63
62
|
}[];
|
|
64
63
|
export declare const infrastructureQuestions: ({
|
|
65
64
|
name: string;
|
|
66
|
-
type:
|
|
65
|
+
type: "text";
|
|
67
66
|
message: string;
|
|
68
|
-
valueType:
|
|
69
|
-
validate:
|
|
67
|
+
valueType: "VARIABLE";
|
|
68
|
+
validate: (value: string | number) => true | "Please enter a value";
|
|
70
69
|
valueLabel: string;
|
|
71
70
|
initial: string | undefined;
|
|
72
|
-
scope:
|
|
71
|
+
scope: "ENVIRONMENT";
|
|
73
72
|
} | {
|
|
74
|
-
validate?: undefined;
|
|
75
73
|
name: string;
|
|
76
|
-
type:
|
|
74
|
+
type: "text";
|
|
77
75
|
message: string;
|
|
78
|
-
valueType:
|
|
76
|
+
valueType: "VARIABLE";
|
|
79
77
|
valueLabel: string;
|
|
80
78
|
initial: string | undefined;
|
|
81
|
-
scope:
|
|
79
|
+
scope: "ENVIRONMENT";
|
|
80
|
+
validate?: undefined;
|
|
82
81
|
} | {
|
|
83
82
|
name: string;
|
|
84
|
-
type:
|
|
83
|
+
type: "text";
|
|
85
84
|
message: string;
|
|
86
|
-
valueType:
|
|
85
|
+
valueType: "VARIABLE";
|
|
87
86
|
validate: typeof validateCIDRs;
|
|
88
87
|
valueLabel: string;
|
|
89
88
|
initial: string;
|
|
90
|
-
scope:
|
|
89
|
+
scope: "ENVIRONMENT";
|
|
91
90
|
})[];
|
|
92
91
|
export declare const staticSSLCertQuestions: {
|
|
93
92
|
name: string;
|
|
94
|
-
type:
|
|
93
|
+
type: "text";
|
|
95
94
|
message: string;
|
|
96
|
-
valueType:
|
|
97
|
-
validate:
|
|
95
|
+
valueType: "SECRET";
|
|
96
|
+
validate: (value: string | number) => true | "Please enter a value";
|
|
98
97
|
valueLabel: string;
|
|
99
98
|
initial: string | undefined;
|
|
100
|
-
scope:
|
|
99
|
+
scope: "ENVIRONMENT";
|
|
101
100
|
}[];
|
|
102
101
|
export declare const backupQuestions: ({
|
|
103
|
-
choices?: undefined;
|
|
104
|
-
validate?: undefined;
|
|
105
102
|
name: string;
|
|
106
|
-
type:
|
|
103
|
+
type: "text";
|
|
107
104
|
message: string;
|
|
108
|
-
valueType:
|
|
105
|
+
valueType: "VARIABLE";
|
|
109
106
|
valueLabel: string;
|
|
110
107
|
initial: string;
|
|
111
|
-
scope:
|
|
112
|
-
|
|
108
|
+
scope: "ENVIRONMENT";
|
|
109
|
+
validate?: undefined;
|
|
113
110
|
choices?: undefined;
|
|
111
|
+
} | {
|
|
114
112
|
name: string;
|
|
115
|
-
type:
|
|
113
|
+
type: "text";
|
|
116
114
|
message: string;
|
|
117
|
-
valueType:
|
|
118
|
-
validate:
|
|
115
|
+
valueType: "SECRET";
|
|
116
|
+
validate: (value: string | number) => true | "Please enter a value";
|
|
119
117
|
valueLabel: string;
|
|
120
118
|
initial: string;
|
|
121
|
-
scope:
|
|
119
|
+
scope: "ENVIRONMENT";
|
|
120
|
+
choices?: undefined;
|
|
122
121
|
} | {
|
|
123
122
|
name: string;
|
|
124
|
-
type:
|
|
123
|
+
type: "select";
|
|
125
124
|
message: string;
|
|
126
125
|
choices: {
|
|
127
126
|
title: string;
|
|
128
127
|
value: string;
|
|
129
128
|
}[];
|
|
130
|
-
valueType:
|
|
131
|
-
validate:
|
|
129
|
+
valueType: "VARIABLE";
|
|
130
|
+
validate: (value: string | number) => true | "Please enter a value";
|
|
132
131
|
valueLabel: string;
|
|
133
132
|
initial: string | undefined;
|
|
134
|
-
scope:
|
|
133
|
+
scope: "ENVIRONMENT";
|
|
135
134
|
})[];
|
|
136
135
|
export declare const diskQuestions: {
|
|
137
136
|
name: string;
|
|
138
|
-
type:
|
|
137
|
+
type: "text";
|
|
139
138
|
message: string;
|
|
140
|
-
valueType:
|
|
141
|
-
validate:
|
|
139
|
+
valueType: "VARIABLE";
|
|
140
|
+
validate: (value: string | number) => true | "Please enter a value";
|
|
142
141
|
valueLabel: string;
|
|
143
142
|
initial: string;
|
|
144
|
-
scope:
|
|
143
|
+
scope: "ENVIRONMENT";
|
|
145
144
|
}[];
|
|
146
145
|
export declare const databaseAndMonitoringQuestions: {
|
|
147
146
|
name: string;
|
|
148
|
-
type:
|
|
147
|
+
type: "text";
|
|
149
148
|
message: string;
|
|
150
|
-
valueType:
|
|
151
|
-
validate:
|
|
149
|
+
valueType: "SECRET";
|
|
150
|
+
validate: (value: string | number) => true | "Please enter a value";
|
|
152
151
|
valueLabel: string;
|
|
153
152
|
initial: string;
|
|
154
|
-
scope:
|
|
153
|
+
scope: "ENVIRONMENT";
|
|
155
154
|
}[];
|
|
156
155
|
export declare const emailQuestions: ({
|
|
157
|
-
choices?: undefined;
|
|
158
156
|
name: string;
|
|
159
|
-
type:
|
|
157
|
+
type: "text";
|
|
160
158
|
message: string;
|
|
161
|
-
valueType:
|
|
162
|
-
validate:
|
|
159
|
+
valueType: "SECRET";
|
|
160
|
+
validate: (value: string | number) => true | "Please enter a value";
|
|
163
161
|
valueLabel: string;
|
|
164
162
|
initial: string | undefined;
|
|
165
|
-
scope:
|
|
163
|
+
scope: "ENVIRONMENT";
|
|
164
|
+
choices?: undefined;
|
|
166
165
|
} | {
|
|
167
166
|
name: string;
|
|
168
|
-
type:
|
|
167
|
+
type: "select";
|
|
169
168
|
message: string;
|
|
170
169
|
choices: {
|
|
171
170
|
title: string;
|
|
172
171
|
value: string;
|
|
173
172
|
}[];
|
|
174
|
-
valueType:
|
|
175
|
-
validate:
|
|
173
|
+
valueType: "SECRET";
|
|
174
|
+
validate: (value: string | number) => true | "Please enter a value";
|
|
176
175
|
valueLabel: string;
|
|
177
176
|
initial: string | undefined;
|
|
178
|
-
scope:
|
|
177
|
+
scope: "ENVIRONMENT";
|
|
179
178
|
})[];
|
|
180
179
|
export declare const sentryQuestions: {
|
|
181
180
|
name: string;
|
|
182
|
-
type:
|
|
181
|
+
type: "text";
|
|
183
182
|
message: string;
|
|
184
|
-
valueType:
|
|
185
|
-
validate:
|
|
183
|
+
valueType: "SECRET";
|
|
184
|
+
validate: (value: string | number) => true | "Please enter a value";
|
|
186
185
|
valueLabel: string;
|
|
187
186
|
initial: string | undefined;
|
|
188
|
-
scope:
|
|
187
|
+
scope: "ENVIRONMENT";
|
|
189
188
|
}[];
|
|
190
189
|
export declare const metabaseAdminQuestions: {
|
|
191
|
-
valueType:
|
|
190
|
+
valueType: "SECRET";
|
|
192
191
|
name: string;
|
|
193
|
-
type:
|
|
192
|
+
type: "text";
|
|
194
193
|
message: string;
|
|
195
194
|
valueLabel: string;
|
|
196
|
-
scope:
|
|
195
|
+
scope: "ENVIRONMENT";
|
|
197
196
|
initial: string;
|
|
198
197
|
}[];
|
|
199
198
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"questions.d.ts","sourceRoot":"","sources":["../../src/environment/questions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"questions.d.ts","sourceRoot":"","sources":["../../src/environment/questions.ts"],"names":[],"mappings":"AA+BA,iBAAS,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAgBnD;AAED,eAAO,MAAM,kBAAkB;;;;;;sBAlCN,MAAM,GAAG,MAAM;;;GA4EvC,CAAA;AAED,eAAO,MAAM,eAAe;;;;sBA9EH,MAAM,GAAG,MAAM;;;GA+FvC,CAAA;AACD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;sBAhGR,MAAM,GAAG,MAAM;;;;IA+HvC,CAAA;AACD,eAAO,MAAM,mBAAmB;;;;sBAhIP,MAAM,GAAG,MAAM;;;;;GA2IvC,CAAA;AAED,eAAO,MAAM,gBAAgB;;;;;;;;GAW5B,CAAA;AAED,eAAO,MAAM,uBAAuB;;;;;sBA1JX,MAAM,GAAG,MAAM;;;;;;;;;;;;;;;;;;;;;;IAmMvC,CAAA;AAED,eAAO,MAAM,sBAAsB;;;;;sBArMV,MAAM,GAAG,MAAM;;;;GA0NvC,CAAA;AAED,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;sBA5NH,MAAM,GAAG,MAAM;;;;;;;;;;;;;;sBAAf,MAAM,GAAG,MAAM;;;;IAqQvC,CAAA;AAED,eAAO,MAAM,aAAa;;;;;sBAvQD,MAAM,GAAG,MAAM;;;;GAoRvC,CAAA;AAED,eAAO,MAAM,8BAA8B;;;;;sBAtRlB,MAAM,GAAG,MAAM;;;;GA2SvC,CAAA;AAED,eAAO,MAAM,cAAc;;;;;sBA7SF,MAAM,GAAG,MAAM;;;;;;;;;;;;;;sBAAf,MAAM,GAAG,MAAM;;;;IA+XvC,CAAA;AAED,eAAO,MAAM,eAAe;;;;;sBAjYH,MAAM,GAAG,MAAM;;;;GA4YvC,CAAA;AAED,eAAO,MAAM,sBAAsB;;;;;;;;GAoBlC,CAAA"}
|
|
@@ -161,10 +161,13 @@ function promptAndStoreAnswer(environment, questions, existingValues) {
|
|
|
161
161
|
const existingValuesForQuestions = questions
|
|
162
162
|
// Only variables can have previous values we can use
|
|
163
163
|
.filter((question) => question.valueType === 'VARIABLE')
|
|
164
|
-
.map((question) => {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
164
|
+
.map((question) => {
|
|
165
|
+
var _a;
|
|
166
|
+
return [
|
|
167
|
+
question.name,
|
|
168
|
+
(_a = (0, utils_1.findExistingValue)(question.valueLabel, 'VARIABLE', question.scope, existingValues)) === null || _a === void 0 ? void 0 : _a.value
|
|
169
|
+
];
|
|
170
|
+
});
|
|
168
171
|
return Object.assign(Object.assign({}, Object.fromEntries(existingValuesForQuestions)), result);
|
|
169
172
|
});
|
|
170
173
|
}
|
|
@@ -586,10 +589,13 @@ ALL_QUESTIONS.push(...questions_1.githubTokenQuestion, ...questions_1.githubOthe
|
|
|
586
589
|
derivedUpdates.push(...applicationServerUpdates);
|
|
587
590
|
const updates = getAnswers(existingValues)
|
|
588
591
|
.concat(...derivedUpdates.filter((update) => update.value !== null))
|
|
589
|
-
.filter((variable) => {
|
|
590
|
-
|
|
591
|
-
(variable.
|
|
592
|
-
|
|
592
|
+
.filter((variable) => {
|
|
593
|
+
var _a;
|
|
594
|
+
return Boolean(variable.value) &&
|
|
595
|
+
// Only update values that changed
|
|
596
|
+
(variable.type !== 'VARIABLE' ||
|
|
597
|
+
variable.value !== ((_a = variable.didExist) === null || _a === void 0 ? void 0 : _a.value));
|
|
598
|
+
});
|
|
593
599
|
(0, utils_1.storeSecrets)(environment, updates);
|
|
594
600
|
/*
|
|
595
601
|
* List out all updates to the variables and confirm with the user
|