@candlerip/shared3 0.0.32 → 0.0.33

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. package/package.json +1 -1
  2. package/src/project/index.d.ts +0 -1
  3. package/src/project/index.js +0 -1
  4. package/src/project/project-config/configs/index.d.ts +29 -9
  5. package/src/project/project-config/configs/index.js +29 -9
  6. package/src/project/project-config/domains/index.d.ts +2 -10
  7. package/src/project/project-config/domains/index.js +2 -10
  8. package/src/project/project-config/domains/project-config/index.d.ts +6 -0
  9. package/src/project/project-config/domains/project-config-name/index.d.ts +2 -0
  10. package/src/project/project-name/configs/index.d.ts +1 -1
  11. package/src/project/project-name/configs/index.js +1 -1
  12. package/src/project/project-config/configs/backend-init-project-config-names/index.d.ts +0 -1
  13. package/src/project/project-config/configs/backend-init-project-config-names/index.js +0 -1
  14. package/src/project/project-config/configs/backend-project-config-names/index.d.ts +0 -1
  15. package/src/project/project-config/configs/backend-project-config-names/index.js +0 -7
  16. package/src/project/project-config/configs/cache-service-project-config-names/index.d.ts +0 -1
  17. package/src/project/project-config/configs/cache-service-project-config-names/index.js +0 -1
  18. package/src/project/project-config/configs/dictionary-service-project-config-names/index.d.ts +0 -1
  19. package/src/project/project-config/configs/dictionary-service-project-config-names/index.js +0 -1
  20. package/src/project/project-config/configs/images-init-project-config-names/index.d.ts +0 -1
  21. package/src/project/project-config/configs/images-init-project-config-names/index.js +0 -1
  22. package/src/project/project-config/configs/images-project-config-names/index.d.ts +0 -1
  23. package/src/project/project-config/configs/images-project-config-names/index.js +0 -1
  24. package/src/project/project-config/configs/logger-service-project-config-names/index.d.ts +0 -1
  25. package/src/project/project-config/configs/logger-service-project-config-names/index.js +0 -1
  26. package/src/project/project-config/configs/rabbitmq-project-config-names/index.d.ts +0 -1
  27. package/src/project/project-config/configs/rabbitmq-project-config-names/index.js +0 -1
  28. package/src/project/project-config/configs/redis-project-config-names/index.d.ts +0 -1
  29. package/src/project/project-config/configs/redis-project-config-names/index.js +0 -1
  30. package/src/project/project-config/domains/backend-init-project-config/index.d.ts +0 -3
  31. package/src/project/project-config/domains/backend-project-config/index.d.ts +0 -3
  32. package/src/project/project-config/domains/backend-project-config/index.js +0 -1
  33. package/src/project/project-config/domains/cache-service-project-config/index.d.ts +0 -3
  34. package/src/project/project-config/domains/cache-service-project-config/index.js +0 -1
  35. package/src/project/project-config/domains/dictionary-service-poject-config/index.d.ts +0 -3
  36. package/src/project/project-config/domains/dictionary-service-poject-config/index.js +0 -1
  37. package/src/project/project-config/domains/images-init-project-config/index.d.ts +0 -3
  38. package/src/project/project-config/domains/images-init-project-config/index.js +0 -1
  39. package/src/project/project-config/domains/images-project-config/index.d.ts +0 -3
  40. package/src/project/project-config/domains/images-project-config/index.js +0 -1
  41. package/src/project/project-config/domains/logger-service-project-config/index.d.ts +0 -3
  42. package/src/project/project-config/domains/logger-service-project-config/index.js +0 -1
  43. package/src/project/project-config/domains/project-config-map/index.d.ts +0 -20
  44. package/src/project/project-config/domains/project-config-map/index.js +0 -1
  45. package/src/project/project-config/domains/rabbitmq-project-config/index.d.ts +0 -3
  46. package/src/project/project-config/domains/rabbitmq-project-config/index.js +0 -1
  47. package/src/project/project-config/domains/redis-project-config/index.d.ts +0 -3
  48. package/src/project/project-config/domains/redis-project-config/index.js +0 -1
  49. package/src/project/project-config-name/configs/index.d.ts +0 -1
  50. package/src/project/project-config-name/configs/index.js +0 -11
  51. package/src/project/project-config-name/domains/index.d.ts +0 -2
  52. package/src/project/project-config-name/index.d.ts +0 -2
  53. package/src/project/project-config-name/index.js +0 -2
  54. /package/src/project/project-config/domains/{backend-init-project-config → project-config}/index.js +0 -0
  55. /package/src/project/{project-config-name/domains → project-config/domains/project-config-name}/index.js +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candlerip/shared3",
3
- "version": "0.0.32",
3
+ "version": "0.0.33",
4
4
  "type": "module",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -1,3 +1,2 @@
1
1
  export * from './project-config/index.js';
2
- export * from './project-config-name/index.js';
3
2
  export * from './project-name/index.js';
@@ -1,3 +1,2 @@
1
1
  export * from './project-config/index.js';
2
- export * from './project-config-name/index.js';
3
2
  export * from './project-name/index.js';
@@ -1,9 +1,29 @@
1
- export * from './backend-init-project-config-names/index.js';
2
- export * from './backend-project-config-names/index.js';
3
- export * from './cache-service-project-config-names/index.js';
4
- export * from './dictionary-service-project-config-names/index.js';
5
- export * from './images-init-project-config-names/index.js';
6
- export * from './images-project-config-names/index.js';
7
- export * from './logger-service-project-config-names/index.js';
8
- export * from './rabbitmq-project-config-names/index.js';
9
- export * from './redis-project-config-names/index.js';
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"];
25
+ };
26
+ readonly 'redis-project-config': {
27
+ readonly environmentVariableNames: readonly ["REDIS_PORT", "REDIS_PWD"];
28
+ };
29
+ };
@@ -1,9 +1,29 @@
1
- export * from './backend-init-project-config-names/index.js';
2
- export * from './backend-project-config-names/index.js';
3
- export * from './cache-service-project-config-names/index.js';
4
- export * from './dictionary-service-project-config-names/index.js';
5
- export * from './images-init-project-config-names/index.js';
6
- export * from './images-project-config-names/index.js';
7
- export * from './logger-service-project-config-names/index.js';
8
- export * from './rabbitmq-project-config-names/index.js';
9
- export * from './redis-project-config-names/index.js';
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'],
25
+ },
26
+ 'redis-project-config': {
27
+ environmentVariableNames: ['REDIS_PORT', 'REDIS_PWD'],
28
+ },
29
+ };
@@ -1,10 +1,2 @@
1
- export * from './backend-project-config/index.js';
2
- export * from './backend-init-project-config/index.js';
3
- export * from './cache-service-project-config/index.js';
4
- export * from './dictionary-service-poject-config/index.js';
5
- export * from './images-project-config/index.js';
6
- export * from './images-init-project-config/index.js';
7
- export * from './logger-service-project-config/index.js';
8
- export * from './project-config-map/index.js';
9
- export * from './rabbitmq-project-config/index.js';
10
- export * from './redis-project-config/index.js';
1
+ export * from './project-config/index.js';
2
+ export * from './project-config-name/index.js';
@@ -1,10 +1,2 @@
1
- export * from './backend-project-config/index.js';
2
- export * from './backend-init-project-config/index.js';
3
- export * from './cache-service-project-config/index.js';
4
- export * from './dictionary-service-poject-config/index.js';
5
- export * from './images-project-config/index.js';
6
- export * from './images-init-project-config/index.js';
7
- export * from './logger-service-project-config/index.js';
8
- export * from './project-config-map/index.js';
9
- export * from './rabbitmq-project-config/index.js';
10
- export * from './redis-project-config/index.js';
1
+ export * from './project-config/index.js';
2
+ export * from './project-config-name/index.js';
@@ -0,0 +1,6 @@
1
+ import { EnvironmentVariables } from '../../../../environment/index.js';
2
+ import { PROJECT_CONFIG } from '../../configs/index.js';
3
+ import { ProjectConfigName } from '../project-config-name/index.js';
4
+ export type ProjectConfig = {
5
+ [key in ProjectConfigName]: Pick<EnvironmentVariables, (typeof PROJECT_CONFIG)[key]['environmentVariableNames'][number]>;
6
+ };
@@ -0,0 +1,2 @@
1
+ import { PROJECT_CONFIG } from '../../configs/index.js';
2
+ export type ProjectConfigName = keyof typeof PROJECT_CONFIG;
@@ -1 +1 @@
1
- export declare const PROJECT_NAMES: readonly ["backend-init", "backend", "cache-service", "dictionary-service", "config", "images", "images-init", "logger-service", "rabbitmq", "redis", "shared", "shared-aws", "shared-backend"];
1
+ export declare const PROJECT_NAMES: readonly ["backend", "backend-init", "cache-service", "dictionary-service", "config", "images", "images-init", "logger-service", "rabbitmq", "redis", "shared", "shared-aws", "shared-backend"];
@@ -1,6 +1,6 @@
1
1
  export const PROJECT_NAMES = [
2
- 'backend-init',
3
2
  'backend',
3
+ 'backend-init',
4
4
  'cache-service',
5
5
  'dictionary-service',
6
6
  'config',
@@ -1 +0,0 @@
1
- export declare const BACKEND_INIT_PROJECT_CONFIG_NAMES: readonly ["APP_NAME", "DOMAIN_NAME", "S3_IMAGES_BUCKET_NAME"];
@@ -1 +0,0 @@
1
- export const BACKEND_INIT_PROJECT_CONFIG_NAMES = ['APP_NAME', 'DOMAIN_NAME', 'S3_IMAGES_BUCKET_NAME'];
@@ -1 +0,0 @@
1
- export declare const BACKEND_PROJECT_CONFIG_NAMES: readonly ["CACHE_SERVICE_PORT", "LOGGER_SERVICE_PORT", "RABBITMQ_PORT", "RABBITMQ_MANAGEMENT_PORT", "REDIS_PORT"];
@@ -1,7 +0,0 @@
1
- export const BACKEND_PROJECT_CONFIG_NAMES = [
2
- 'CACHE_SERVICE_PORT',
3
- 'LOGGER_SERVICE_PORT',
4
- 'RABBITMQ_PORT',
5
- 'RABBITMQ_MANAGEMENT_PORT',
6
- 'REDIS_PORT',
7
- ];
@@ -1 +0,0 @@
1
- export declare const CACHE_SERVICE_PROJECT_CONFIG_NAMES: readonly ["CACHE_SERVICE_PORT", "DATABASE_URL", "REDIS_PWD", "REDIS_URL"];
@@ -1 +0,0 @@
1
- export const CACHE_SERVICE_PROJECT_CONFIG_NAMES = ['CACHE_SERVICE_PORT', 'DATABASE_URL', 'REDIS_PWD', 'REDIS_URL'];
@@ -1 +0,0 @@
1
- export declare const DICTIONARY_SERVICE_PROJECT_CONFIG_NAMES: readonly ["DICTIONARY_SERVICE_PORT"];
@@ -1 +0,0 @@
1
- export const DICTIONARY_SERVICE_PROJECT_CONFIG_NAMES = ['DICTIONARY_SERVICE_PORT'];
@@ -1 +0,0 @@
1
- export declare const IMAGES_INIT_PROJECT_CONFIG_NAMES: readonly ["FRONTEND_URL", "S3_IMAGES_BUCKET_NAME"];
@@ -1 +0,0 @@
1
- export const IMAGES_INIT_PROJECT_CONFIG_NAMES = ['FRONTEND_URL', 'S3_IMAGES_BUCKET_NAME'];
@@ -1 +0,0 @@
1
- export declare const IMAGES_PROJECT_CONFIG_NAMES: readonly ["S3_IMAGES_BUCKET_NAME"];
@@ -1 +0,0 @@
1
- export const IMAGES_PROJECT_CONFIG_NAMES = ['S3_IMAGES_BUCKET_NAME'];
@@ -1 +0,0 @@
1
- export declare const LOGGER_SERVICE_PROJECT_CONFIG_NAMES: readonly ["DATABASE_URL", "LOGGER_SERVICE_PORT"];
@@ -1 +0,0 @@
1
- export const LOGGER_SERVICE_PROJECT_CONFIG_NAMES = ['DATABASE_URL', 'LOGGER_SERVICE_PORT'];
@@ -1 +0,0 @@
1
- export declare const RABBITMQ_PROJECT_CONFIG_NAMES: readonly ["RABBITMQ_PORT", "RABBITMQ_MANAGEMENT_PORT"];
@@ -1 +0,0 @@
1
- export const RABBITMQ_PROJECT_CONFIG_NAMES = ['RABBITMQ_PORT', 'RABBITMQ_MANAGEMENT_PORT'];
@@ -1 +0,0 @@
1
- export declare const REDIS_PROJECT_CONFIG_NAMES: readonly ["REDIS_PORT", "REDIS_PWD"];
@@ -1 +0,0 @@
1
- export const REDIS_PROJECT_CONFIG_NAMES = ['REDIS_PORT', 'REDIS_PWD'];
@@ -1,3 +0,0 @@
1
- import { EnvironmentVariables } from '../../../../environment/index.js';
2
- import { BACKEND_INIT_PROJECT_CONFIG_NAMES } from '../../configs/index.js';
3
- export type BackendInitProjectConfig = Pick<EnvironmentVariables, (typeof BACKEND_INIT_PROJECT_CONFIG_NAMES)[number]>;
@@ -1,3 +0,0 @@
1
- import { EnvironmentVariables } from '../../../../environment/index.js';
2
- import { BACKEND_PROJECT_CONFIG_NAMES } from '../../configs/index.js';
3
- export type BackendProjectConfig = Pick<EnvironmentVariables, (typeof BACKEND_PROJECT_CONFIG_NAMES)[number]>;
@@ -1,3 +0,0 @@
1
- import { EnvironmentVariables } from '../../../../environment/index.js';
2
- import { CACHE_SERVICE_PROJECT_CONFIG_NAMES } from '../../configs/index.js';
3
- export type CacheServiceProjectConfig = Pick<EnvironmentVariables, (typeof CACHE_SERVICE_PROJECT_CONFIG_NAMES)[number]>;
@@ -1,3 +0,0 @@
1
- import { EnvironmentVariables } from '../../../../environment/index.js';
2
- import { DICTIONARY_SERVICE_PROJECT_CONFIG_NAMES } from '../../configs/index.js';
3
- export type DictionaryServiceProjectConfig = Pick<EnvironmentVariables, (typeof DICTIONARY_SERVICE_PROJECT_CONFIG_NAMES)[number]>;
@@ -1,3 +0,0 @@
1
- import { EnvironmentVariables } from '../../../../environment/index.js';
2
- import { IMAGES_INIT_PROJECT_CONFIG_NAMES } from '../../configs/index.js';
3
- export type ImagesInitProjectConfig = Pick<EnvironmentVariables, (typeof IMAGES_INIT_PROJECT_CONFIG_NAMES)[number]>;
@@ -1,3 +0,0 @@
1
- import { EnvironmentVariables } from '../../../../environment/index.js';
2
- import { IMAGES_PROJECT_CONFIG_NAMES } from '../../configs/index.js';
3
- export type ImagesProjectConfig = Pick<EnvironmentVariables, (typeof IMAGES_PROJECT_CONFIG_NAMES)[number]>;
@@ -1,3 +0,0 @@
1
- import { EnvironmentVariables } from '../../../../environment/index.js';
2
- import { LOGGER_SERVICE_PROJECT_CONFIG_NAMES } from '../../configs/index.js';
3
- export type LoggerServiceProjectConfig = Pick<EnvironmentVariables, (typeof LOGGER_SERVICE_PROJECT_CONFIG_NAMES)[number]>;
@@ -1,20 +0,0 @@
1
- import { BackendInitProjectConfig } from '../backend-init-project-config/index.js';
2
- import { BackendProjectConfig } from '../backend-project-config/index.js';
3
- import { CacheServiceProjectConfig } from '../cache-service-project-config/index.js';
4
- import { DictionaryServiceProjectConfig } from '../dictionary-service-poject-config/index.js';
5
- import { ImagesInitProjectConfig } from '../images-init-project-config/index.js';
6
- import { ImagesProjectConfig } from '../images-project-config/index.js';
7
- import { LoggerServiceProjectConfig } from '../logger-service-project-config/index.js';
8
- import { RabbitmqProjectConfig } from '../rabbitmq-project-config/index.js';
9
- import { RedisProjectConfig } from '../redis-project-config/index.js';
10
- export type ProjectConfigMap = {
11
- 'backend-project-config': BackendProjectConfig;
12
- 'backend-init-project-config': BackendInitProjectConfig;
13
- 'cache-service-project-config': CacheServiceProjectConfig;
14
- 'dictionary-service-project-config': DictionaryServiceProjectConfig;
15
- 'images-project-config': ImagesProjectConfig;
16
- 'images-init-project-config': ImagesInitProjectConfig;
17
- 'logger-service-project-config': LoggerServiceProjectConfig;
18
- 'rabbitmq-project-config': RabbitmqProjectConfig;
19
- 'redis-project-config': RedisProjectConfig;
20
- };
@@ -1,3 +0,0 @@
1
- import { EnvironmentVariables } from '../../../../environment/index.js';
2
- import { RABBITMQ_PROJECT_CONFIG_NAMES } from '../../configs/index.js';
3
- export type RabbitmqProjectConfig = Pick<EnvironmentVariables, (typeof RABBITMQ_PROJECT_CONFIG_NAMES)[number]>;
@@ -1,3 +0,0 @@
1
- import { EnvironmentVariables } from '../../../../environment/index.js';
2
- import { REDIS_PROJECT_CONFIG_NAMES } from '../../configs/index.js';
3
- export type RedisProjectConfig = Pick<EnvironmentVariables, (typeof REDIS_PROJECT_CONFIG_NAMES)[number]>;
@@ -1 +0,0 @@
1
- export declare const PROJECT_CONFIG_NAMES: readonly ["backend-init-project-config", "backend-project-config", "cache-service-project-config", "dictionary-service-project-config", "images-project-config", "images-init-project-config", "logger-service-project-config", "rabbitmq-project-config", "redis-project-config"];
@@ -1,11 +0,0 @@
1
- export const PROJECT_CONFIG_NAMES = [
2
- 'backend-init-project-config',
3
- 'backend-project-config',
4
- 'cache-service-project-config',
5
- 'dictionary-service-project-config',
6
- 'images-project-config',
7
- 'images-init-project-config',
8
- 'logger-service-project-config',
9
- 'rabbitmq-project-config',
10
- 'redis-project-config',
11
- ];
@@ -1,2 +0,0 @@
1
- import { PROJECT_CONFIG_NAMES } from '../configs/index.js';
2
- export type ProjectConfigName = (typeof PROJECT_CONFIG_NAMES)[number];
@@ -1,2 +0,0 @@
1
- export * from './configs/index.js';
2
- export * from './domains/index.js';
@@ -1,2 +0,0 @@
1
- export * from './configs/index.js';
2
- export * from './domains/index.js';