@candlerip/shared3 0.0.74 → 0.0.77

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.74",
3
+ "version": "0.0.77",
4
4
  "type": "module",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -0,0 +1,6 @@
1
+ export type CandlesCount = {
2
+ candlesCount: {
3
+ burning: number;
4
+ burned: number;
5
+ };
6
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export * from './domain.js';
@@ -0,0 +1 @@
1
+ export * from './domain.js';
@@ -0,0 +1 @@
1
+ export * from './candles-count/index.js';
@@ -0,0 +1 @@
1
+ export * from './candles-count/index.js';
@@ -4,6 +4,11 @@ export declare const ENVIRONMENT_VARIABLE: {
4
4
  readonly APP_PORT: "number";
5
5
  readonly AUTHENTICATION_AUDIENCE: "string";
6
6
  readonly AUTHENTICATION_DOMAIN: "string";
7
+ readonly AUTH0_BASE_URL: "string";
8
+ readonly AUTH0_CLIENT_ID: "string";
9
+ readonly AUTH0_CLIENT_SECRET: "string";
10
+ readonly AUTH0_ISSUER_BASE_URL: "string";
11
+ readonly AUTH0_SECRET: "string";
7
12
  readonly BACKEND_URL: "string";
8
13
  readonly CACHE_ENABLED: "boolean";
9
14
  readonly CACHE_SERVICE_PORT: "number";
@@ -4,6 +4,11 @@ export const ENVIRONMENT_VARIABLE = {
4
4
  APP_PORT: 'number',
5
5
  AUTHENTICATION_AUDIENCE: 'string',
6
6
  AUTHENTICATION_DOMAIN: 'string',
7
+ AUTH0_BASE_URL: 'string',
8
+ AUTH0_CLIENT_ID: 'string',
9
+ AUTH0_CLIENT_SECRET: 'string',
10
+ AUTH0_ISSUER_BASE_URL: 'string',
11
+ AUTH0_SECRET: 'string',
7
12
  BACKEND_URL: 'string',
8
13
  CACHE_ENABLED: 'boolean',
9
14
  CACHE_SERVICE_PORT: 'number',
@@ -1,5 +1,5 @@
1
1
  export declare const ENVIRONMENT_VARIABLES_CONFIG: {
2
- readonly app: readonly ["APP_PORT", "BACKEND_URL", "DATABASE_URL", "NODE_ENV", "RABBITMQ_URL", "REDIS_PWD", "REDIS_URL", "S3_IMAGES_BUCKET_NAME"];
2
+ readonly app: readonly ["APP_PORT", "AUTH0_BASE_URL", "AUTH0_CLIENT_ID", "AUTH0_CLIENT_SECRET", "AUTH0_ISSUER_BASE_URL", "AUTH0_SECRET", "BACKEND_URL", "DATABASE_URL", "NODE_ENV", "RABBITMQ_URL", "REDIS_PWD", "REDIS_URL", "S3_IMAGES_BUCKET_NAME"];
3
3
  readonly 'cache-service': readonly ["CACHE_ENABLED", "CACHE_SERVICE_PORT", "DATABASE_URL", "NODE_ENV", "RABBITMQ_URL", "REDIS_PWD", "REDIS_URL"];
4
4
  readonly images: readonly ["NODE_ENV", "S3_IMAGES_BUCKET_NAME"];
5
5
  readonly 'images-init': readonly ["FRONTEND_URL", "NODE_ENV", "S3_IMAGES_BUCKET_NAME"];
@@ -1,5 +1,19 @@
1
1
  export const ENVIRONMENT_VARIABLES_CONFIG = {
2
- app: ['APP_PORT', 'BACKEND_URL', 'DATABASE_URL', 'NODE_ENV', 'RABBITMQ_URL', 'REDIS_PWD', 'REDIS_URL', 'S3_IMAGES_BUCKET_NAME'],
2
+ app: [
3
+ 'APP_PORT',
4
+ 'AUTH0_BASE_URL',
5
+ 'AUTH0_CLIENT_ID',
6
+ 'AUTH0_CLIENT_SECRET',
7
+ 'AUTH0_ISSUER_BASE_URL',
8
+ 'AUTH0_SECRET',
9
+ 'BACKEND_URL',
10
+ 'DATABASE_URL',
11
+ 'NODE_ENV',
12
+ 'RABBITMQ_URL',
13
+ 'REDIS_PWD',
14
+ 'REDIS_URL',
15
+ 'S3_IMAGES_BUCKET_NAME',
16
+ ],
3
17
  'cache-service': ['CACHE_ENABLED', 'CACHE_SERVICE_PORT', 'DATABASE_URL', 'NODE_ENV', 'RABBITMQ_URL', 'REDIS_PWD', 'REDIS_URL'],
4
18
  images: ['NODE_ENV', 'S3_IMAGES_BUCKET_NAME'],
5
19
  'images-init': ['FRONTEND_URL', 'NODE_ENV', 'S3_IMAGES_BUCKET_NAME'],
@@ -3,6 +3,11 @@ export declare const EnvironmentVariablesSingleton: {
3
3
  get: <T extends keyof EnvironmentVariables = never>() => EnvironmentVariables[T];
4
4
  init: (envs: {
5
5
  APP_PORT: number;
6
+ AUTH0_BASE_URL: string;
7
+ AUTH0_CLIENT_ID: string;
8
+ AUTH0_CLIENT_SECRET: string;
9
+ AUTH0_ISSUER_BASE_URL: string;
10
+ AUTH0_SECRET: string;
6
11
  BACKEND_URL: string;
7
12
  DATABASE_URL: string;
8
13
  NODE_ENV: "development" | "production";
package/src/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './aws/index.js';
2
+ export * from './candle/index.js';
2
3
  export * from './cookie/index.js';
3
4
  export * from './database/index.js';
4
5
  export * from './date/index.js';
package/src/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './aws/index.js';
2
+ export * from './candle/index.js';
2
3
  export * from './cookie/index.js';
3
4
  export * from './database/index.js';
4
5
  export * from './date/index.js';
@@ -1,5 +1,7 @@
1
1
  import { AddCandlePageDictionary, Language } from '../../../dictionary/index.js';
2
+ import { AddCandlePageData } from '../../../page/index.js';
2
3
  export interface AddCandlePageServerSideProps {
3
4
  dictionary: AddCandlePageDictionary;
4
5
  language: Language;
6
+ pageData: AddCandlePageData;
5
7
  }