@candlerip/shared3 0.0.20 → 0.0.22

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.20",
3
+ "version": "0.0.22",
4
4
  "type": "module",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -1,5 +1,6 @@
1
1
  export interface EnvironmentVariables {
2
2
  APP_NAME: string;
3
+ CACHE_SERVICE_PORT: number;
3
4
  DATABASE_URL: string;
4
5
  DICTIONARY_SERVICE_PORT: number;
5
6
  DOMAIN_NAME: string;
@@ -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' | 'REDIS_URL'>;
@@ -2,4 +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
6
  export * from './redis-project-config/index.js';
@@ -2,4 +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
6
  export * from './redis-project-config/index.js';
@@ -0,0 +1,12 @@
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 { RedisProjectConfig } from '../redis-project-config/index.js';
6
+ export type ProjectConfigTypeMap = {
7
+ 'backend-project-config': BackendProjectConfig;
8
+ 'backend-init-project-config': BackendInitProjectConfig;
9
+ 'cache-service-project-config': CacheServiceProjectConfig;
10
+ 'dictionary-service-project-config': DictionaryServiceProjectConfig;
11
+ 'redis-project-config': RedisProjectConfig;
12
+ };