@candlerip/shared3 0.0.21 → 0.0.23

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candlerip/shared3",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "type": "module",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -1,10 +1,12 @@
1
1
  export interface EnvironmentVariables {
2
2
  APP_NAME: string;
3
+ REDIS_PORT: number;
4
+ REDIS_PWD: string;
5
+ CACHE_SERVICE_PORT: number;
6
+ CACHE_URL: string;
3
7
  DATABASE_URL: string;
4
8
  DICTIONARY_SERVICE_PORT: number;
5
9
  DOMAIN_NAME: string;
6
- REDIS_PORT: number;
7
- REDIS_PWD: string;
8
- REDIS_URL: string;
10
+ FRONTEND_URL: string;
9
11
  S3_IMAGES_BUCKET_NAME: string;
10
12
  }
@@ -1,2 +1,2 @@
1
1
  import { EnvironmentVariables } from '../../../../environment/index.js';
2
- export type BackendProjectConfig = Pick<EnvironmentVariables, 'REDIS_PORT'>;
2
+ export type BackendProjectConfig = Pick<EnvironmentVariables, 'CACHE_SERVICE_PORT' | 'REDIS_PORT'>;
@@ -1,2 +1,2 @@
1
1
  import { EnvironmentVariables } from '../../../../environment/index.js';
2
- export type CacheServiceProjectConfig = Pick<EnvironmentVariables, 'DATABASE_URL' | 'REDIS_PWD' | 'REDIS_URL'>;
2
+ export type CacheServiceProjectConfig = Pick<EnvironmentVariables, 'CACHE_SERVICE_PORT' | 'DATABASE_URL' | 'REDIS_PWD' | 'CACHE_URL'>;
@@ -0,0 +1,2 @@
1
+ import { EnvironmentVariables } from '../../../../environment/index.js';
2
+ export type ImagesInitProjectConfig = Pick<EnvironmentVariables, 'FRONTEND_URL' | 'S3_IMAGES_BUCKET_NAME'>;
@@ -0,0 +1,2 @@
1
+ import { EnvironmentVariables } from '../../../../environment/index.js';
2
+ export type ImagesProjectConfig = Pick<EnvironmentVariables, 'S3_IMAGES_BUCKET_NAME'>;
@@ -2,5 +2,5 @@ export * from './backend-project-config/index.js';
2
2
  export * from './backend-init-project-config/index.js';
3
3
  export * from './cache-service-project-config/index.js';
4
4
  export * from './dictionary-service-poject-config/index.js';
5
- export * from './project-config-type-map/index.js';
5
+ export * from './project-config-map/index.js';
6
6
  export * from './redis-project-config/index.js';
@@ -2,5 +2,5 @@ export * from './backend-project-config/index.js';
2
2
  export * from './backend-init-project-config/index.js';
3
3
  export * from './cache-service-project-config/index.js';
4
4
  export * from './dictionary-service-poject-config/index.js';
5
- export * from './project-config-type-map/index.js';
5
+ export * from './project-config-map/index.js';
6
6
  export * from './redis-project-config/index.js';
@@ -0,0 +1,2 @@
1
+ import { EnvironmentVariables } from '../../../../environment/index.js';
2
+ export type LoggerProjectConfig = Pick<EnvironmentVariables, 'DATABASE_URL'>;
@@ -2,11 +2,16 @@ import { BackendInitProjectConfig } from '../backend-init-project-config/index.j
2
2
  import { BackendProjectConfig } from '../backend-project-config/index.js';
3
3
  import { CacheServiceProjectConfig } from '../cache-service-project-config/index.js';
4
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';
5
7
  import { RedisProjectConfig } from '../redis-project-config/index.js';
6
- export type ProjectConfigTypeMap = {
8
+ export type ProjectConfigMap = {
7
9
  'backend-project-config': BackendProjectConfig;
8
10
  'backend-init-project-config': BackendInitProjectConfig;
9
11
  'cache-service-project-config': CacheServiceProjectConfig;
10
12
  'dictionary-service-project-config': DictionaryServiceProjectConfig;
13
+ 'images-project-config': ImagesProjectConfig;
14
+ 'images-init-project-config': ImagesInitProjectConfig;
15
+ 'logger-project-config': CacheServiceProjectConfig;
11
16
  'redis-project-config': RedisProjectConfig;
12
17
  };
@@ -1 +1 @@
1
- export declare const PROJECT_CONFIG_NAMES: readonly ["backend-init-project-config", "backend-project-config", "dictionary-service-project-config", "cache-service-project-config", "redis-project-config"];
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-project-config", "redis-project-config"];
@@ -1,7 +1,10 @@
1
1
  export const PROJECT_CONFIG_NAMES = [
2
2
  'backend-init-project-config',
3
3
  'backend-project-config',
4
- 'dictionary-service-project-config',
5
4
  'cache-service-project-config',
5
+ 'dictionary-service-project-config',
6
+ 'images-project-config',
7
+ 'images-init-project-config',
8
+ 'logger-project-config',
6
9
  'redis-project-config',
7
10
  ];
@@ -1 +1 @@
1
- export declare const PROJECT_NAMES: readonly ["backend-init", "backend", "dictionary-service", "cache-service", "config", "redis", "shared", "shared-aws"];
1
+ export declare const PROJECT_NAMES: readonly ["backend-init", "backend", "cache-service", "dictionary-service", "config", "images", "images-init", "logger", "redis", "shared", "shared-aws", "shared-backend"];
@@ -1 +1,14 @@
1
- export const PROJECT_NAMES = ['backend-init', 'backend', 'dictionary-service', 'cache-service', 'config', 'redis', 'shared', 'shared-aws'];
1
+ export const PROJECT_NAMES = [
2
+ 'backend-init',
3
+ 'backend',
4
+ 'cache-service',
5
+ 'dictionary-service',
6
+ 'config',
7
+ 'images',
8
+ 'images-init',
9
+ 'logger',
10
+ 'redis',
11
+ 'shared',
12
+ 'shared-aws',
13
+ 'shared-backend',
14
+ ];