@candlerip/shared3 0.0.33 → 0.0.34
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/environment/environment-variables/configs/environment-variables/index.d.ts +3 -1
- package/src/environment/environment-variables/configs/environment-variables/index.js +3 -1
- package/src/environment/environment-variables/configs/number-environment-variables/index.d.ts +1 -1
- package/src/project/project-config/configs/index.d.ts +2 -29
- package/src/project/project-config/configs/index.js +2 -29
- package/src/project/project-config/configs/project-config/index.d.ts +29 -0
- package/src/project/project-config/configs/project-config/index.js +29 -0
- package/src/project/project-config/configs/project-config-names/index.d.ts +2 -0
- package/src/project/project-config/configs/project-config-names/index.js +2 -0
package/package.json
CHANGED
@@ -6,8 +6,10 @@ export declare const ENVIRONMENT_VARIABLES: {
|
|
6
6
|
readonly DOMAIN_NAME: "string";
|
7
7
|
readonly FRONTEND_URL: "string";
|
8
8
|
readonly LOGGER_SERVICE_PORT: "number";
|
9
|
-
readonly RABBITMQ_PORT: "number";
|
10
9
|
readonly RABBITMQ_MANAGEMENT_PORT: "number";
|
10
|
+
readonly RABBITMQ_PORT: "number";
|
11
|
+
readonly RABBITMQ_PWD: "number";
|
12
|
+
readonly RABBITMQ_USER: "number";
|
11
13
|
readonly REDIS_PORT: "number";
|
12
14
|
readonly REDIS_PWD: "string";
|
13
15
|
readonly REDIS_URL: "string";
|
@@ -6,8 +6,10 @@ export const ENVIRONMENT_VARIABLES = {
|
|
6
6
|
DOMAIN_NAME: 'string',
|
7
7
|
FRONTEND_URL: 'string',
|
8
8
|
LOGGER_SERVICE_PORT: 'number',
|
9
|
-
RABBITMQ_PORT: 'number',
|
10
9
|
RABBITMQ_MANAGEMENT_PORT: 'number',
|
10
|
+
RABBITMQ_PORT: 'number',
|
11
|
+
RABBITMQ_PWD: 'number',
|
12
|
+
RABBITMQ_USER: 'number',
|
11
13
|
REDIS_PORT: 'number',
|
12
14
|
REDIS_PWD: 'string',
|
13
15
|
REDIS_URL: 'string',
|
package/src/environment/environment-variables/configs/number-environment-variables/index.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare const NUMBER_ENVIRONMENT_VARIABLES: ("APP_NAME" | "CACHE_SERVICE_PORT" | "DATABASE_URL" | "DICTIONARY_SERVICE_PORT" | "DOMAIN_NAME" | "FRONTEND_URL" | "LOGGER_SERVICE_PORT" | "RABBITMQ_PORT" | "
|
1
|
+
export declare const NUMBER_ENVIRONMENT_VARIABLES: ("APP_NAME" | "CACHE_SERVICE_PORT" | "DATABASE_URL" | "DICTIONARY_SERVICE_PORT" | "DOMAIN_NAME" | "FRONTEND_URL" | "LOGGER_SERVICE_PORT" | "RABBITMQ_MANAGEMENT_PORT" | "RABBITMQ_PORT" | "RABBITMQ_PWD" | "RABBITMQ_USER" | "REDIS_PORT" | "REDIS_PWD" | "REDIS_URL" | "S3_IMAGES_BUCKET_NAME")[];
|
@@ -1,29 +1,2 @@
|
|
1
|
-
export
|
2
|
-
|
3
|
-
readonly environmentVariableNames: readonly ["CACHE_SERVICE_PORT", "LOGGER_SERVICE_PORT", "RABBITMQ_PORT", "RABBITMQ_MANAGEMENT_PORT", "REDIS_PORT"];
|
4
|
-
};
|
5
|
-
readonly 'backend-init-project-config': {
|
6
|
-
readonly environmentVariableNames: readonly ["APP_NAME", "DOMAIN_NAME", "S3_IMAGES_BUCKET_NAME"];
|
7
|
-
};
|
8
|
-
readonly 'cache-service-project-config': {
|
9
|
-
readonly environmentVariableNames: readonly ["CACHE_SERVICE_PORT", "DATABASE_URL", "REDIS_PWD", "REDIS_URL"];
|
10
|
-
};
|
11
|
-
readonly 'dictionary-service-project-config': {
|
12
|
-
readonly environmentVariableNames: readonly ["DICTIONARY_SERVICE_PORT"];
|
13
|
-
};
|
14
|
-
readonly 'images-project-config': {
|
15
|
-
readonly environmentVariableNames: readonly ["S3_IMAGES_BUCKET_NAME"];
|
16
|
-
};
|
17
|
-
readonly 'images-init-project-config': {
|
18
|
-
readonly environmentVariableNames: readonly ["FRONTEND_URL", "S3_IMAGES_BUCKET_NAME"];
|
19
|
-
};
|
20
|
-
readonly 'logger-service-project-config': {
|
21
|
-
readonly environmentVariableNames: readonly ["DATABASE_URL", "LOGGER_SERVICE_PORT"];
|
22
|
-
};
|
23
|
-
readonly 'rabbitmq-project-config': {
|
24
|
-
readonly environmentVariableNames: readonly ["RABBITMQ_PORT", "RABBITMQ_MANAGEMENT_PORT"];
|
25
|
-
};
|
26
|
-
readonly 'redis-project-config': {
|
27
|
-
readonly environmentVariableNames: readonly ["REDIS_PORT", "REDIS_PWD"];
|
28
|
-
};
|
29
|
-
};
|
1
|
+
export * from './project-config/index.js';
|
2
|
+
export * from './project-config-names/index.js';
|
@@ -1,29 +1,2 @@
|
|
1
|
-
export
|
2
|
-
|
3
|
-
environmentVariableNames: ['CACHE_SERVICE_PORT', 'LOGGER_SERVICE_PORT', 'RABBITMQ_PORT', 'RABBITMQ_MANAGEMENT_PORT', 'REDIS_PORT'],
|
4
|
-
},
|
5
|
-
'backend-init-project-config': {
|
6
|
-
environmentVariableNames: ['APP_NAME', 'DOMAIN_NAME', 'S3_IMAGES_BUCKET_NAME'],
|
7
|
-
},
|
8
|
-
'cache-service-project-config': {
|
9
|
-
environmentVariableNames: ['CACHE_SERVICE_PORT', 'DATABASE_URL', 'REDIS_PWD', 'REDIS_URL'],
|
10
|
-
},
|
11
|
-
'dictionary-service-project-config': {
|
12
|
-
environmentVariableNames: ['DICTIONARY_SERVICE_PORT'],
|
13
|
-
},
|
14
|
-
'images-project-config': {
|
15
|
-
environmentVariableNames: ['S3_IMAGES_BUCKET_NAME'],
|
16
|
-
},
|
17
|
-
'images-init-project-config': {
|
18
|
-
environmentVariableNames: ['FRONTEND_URL', 'S3_IMAGES_BUCKET_NAME'],
|
19
|
-
},
|
20
|
-
'logger-service-project-config': {
|
21
|
-
environmentVariableNames: ['DATABASE_URL', 'LOGGER_SERVICE_PORT'],
|
22
|
-
},
|
23
|
-
'rabbitmq-project-config': {
|
24
|
-
environmentVariableNames: ['RABBITMQ_PORT', 'RABBITMQ_MANAGEMENT_PORT'],
|
25
|
-
},
|
26
|
-
'redis-project-config': {
|
27
|
-
environmentVariableNames: ['REDIS_PORT', 'REDIS_PWD'],
|
28
|
-
},
|
29
|
-
};
|
1
|
+
export * from './project-config/index.js';
|
2
|
+
export * from './project-config-names/index.js';
|
@@ -0,0 +1,29 @@
|
|
1
|
+
export declare const PROJECT_CONFIG: {
|
2
|
+
readonly 'backend-project-config': {
|
3
|
+
readonly environmentVariableNames: readonly ["CACHE_SERVICE_PORT", "LOGGER_SERVICE_PORT", "RABBITMQ_PORT", "RABBITMQ_MANAGEMENT_PORT", "REDIS_PORT"];
|
4
|
+
};
|
5
|
+
readonly 'backend-init-project-config': {
|
6
|
+
readonly environmentVariableNames: readonly ["APP_NAME", "DOMAIN_NAME", "S3_IMAGES_BUCKET_NAME"];
|
7
|
+
};
|
8
|
+
readonly 'cache-service-project-config': {
|
9
|
+
readonly environmentVariableNames: readonly ["CACHE_SERVICE_PORT", "DATABASE_URL", "REDIS_PWD", "REDIS_URL"];
|
10
|
+
};
|
11
|
+
readonly 'dictionary-service-project-config': {
|
12
|
+
readonly environmentVariableNames: readonly ["DICTIONARY_SERVICE_PORT"];
|
13
|
+
};
|
14
|
+
readonly 'images-project-config': {
|
15
|
+
readonly environmentVariableNames: readonly ["S3_IMAGES_BUCKET_NAME"];
|
16
|
+
};
|
17
|
+
readonly 'images-init-project-config': {
|
18
|
+
readonly environmentVariableNames: readonly ["FRONTEND_URL", "S3_IMAGES_BUCKET_NAME"];
|
19
|
+
};
|
20
|
+
readonly 'logger-service-project-config': {
|
21
|
+
readonly environmentVariableNames: readonly ["DATABASE_URL", "LOGGER_SERVICE_PORT"];
|
22
|
+
};
|
23
|
+
readonly 'rabbitmq-project-config': {
|
24
|
+
readonly environmentVariableNames: readonly ["RABBITMQ_PORT", "RABBITMQ_MANAGEMENT_PORT", "RABBITMQ_PWD", "RABBITMQ_USER"];
|
25
|
+
};
|
26
|
+
readonly 'redis-project-config': {
|
27
|
+
readonly environmentVariableNames: readonly ["REDIS_PORT", "REDIS_PWD"];
|
28
|
+
};
|
29
|
+
};
|
@@ -0,0 +1,29 @@
|
|
1
|
+
export const PROJECT_CONFIG = {
|
2
|
+
'backend-project-config': {
|
3
|
+
environmentVariableNames: ['CACHE_SERVICE_PORT', 'LOGGER_SERVICE_PORT', 'RABBITMQ_PORT', 'RABBITMQ_MANAGEMENT_PORT', 'REDIS_PORT'],
|
4
|
+
},
|
5
|
+
'backend-init-project-config': {
|
6
|
+
environmentVariableNames: ['APP_NAME', 'DOMAIN_NAME', 'S3_IMAGES_BUCKET_NAME'],
|
7
|
+
},
|
8
|
+
'cache-service-project-config': {
|
9
|
+
environmentVariableNames: ['CACHE_SERVICE_PORT', 'DATABASE_URL', 'REDIS_PWD', 'REDIS_URL'],
|
10
|
+
},
|
11
|
+
'dictionary-service-project-config': {
|
12
|
+
environmentVariableNames: ['DICTIONARY_SERVICE_PORT'],
|
13
|
+
},
|
14
|
+
'images-project-config': {
|
15
|
+
environmentVariableNames: ['S3_IMAGES_BUCKET_NAME'],
|
16
|
+
},
|
17
|
+
'images-init-project-config': {
|
18
|
+
environmentVariableNames: ['FRONTEND_URL', 'S3_IMAGES_BUCKET_NAME'],
|
19
|
+
},
|
20
|
+
'logger-service-project-config': {
|
21
|
+
environmentVariableNames: ['DATABASE_URL', 'LOGGER_SERVICE_PORT'],
|
22
|
+
},
|
23
|
+
'rabbitmq-project-config': {
|
24
|
+
environmentVariableNames: ['RABBITMQ_PORT', 'RABBITMQ_MANAGEMENT_PORT', 'RABBITMQ_PWD', 'RABBITMQ_USER'],
|
25
|
+
},
|
26
|
+
'redis-project-config': {
|
27
|
+
environmentVariableNames: ['REDIS_PORT', 'REDIS_PWD'],
|
28
|
+
},
|
29
|
+
};
|