@candlerip/shared3 0.0.76 → 0.0.78
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-variable/config.d.ts +5 -0
- package/src/environment/environment-variable/config.js +5 -0
- package/src/environment/environment-variables/config.d.ts +1 -1
- package/src/environment/environment-variables/config.js +15 -1
- package/src/environment/environment-variables/singleton.d.ts +5 -0
- package/src/ssr/server-side-props/add-candle-page-server-side-props/domain.d.ts +2 -0
- package/src/ssr/server-side-props/auth-server-side-props/domain.d.ts +6 -0
- package/src/ssr/server-side-props/auth-server-side-props/domain.js +1 -0
- package/src/ssr/server-side-props/auth-server-side-props/index.d.ts +1 -0
- package/src/ssr/server-side-props/auth-server-side-props/index.js +1 -0
- package/src/ssr/server-side-props/contact-page-server-side-props/domain.d.ts +2 -0
- package/src/ssr/server-side-props/cookie-policy-page-server-side-props/domain.d.ts +2 -0
- package/src/ssr/server-side-props/help-page-server-side-props/domain.d.ts +2 -0
- package/src/ssr/server-side-props/index.d.ts +1 -0
- package/src/ssr/server-side-props/index.js +1 -0
- package/src/ssr/server-side-props/terms-and-conditions-page-server-side-props/domain.d.ts +2 -0
package/package.json
CHANGED
@@ -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: [
|
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";
|
@@ -1,6 +1,8 @@
|
|
1
1
|
import { AddCandlePageDictionary, Language } from '../../../dictionary/index.js';
|
2
2
|
import { AddCandlePageData } from '../../../page/index.js';
|
3
|
+
import { AuthServerSideProps } from '../auth-server-side-props/index.js';
|
3
4
|
export interface AddCandlePageServerSideProps {
|
5
|
+
auth?: AuthServerSideProps;
|
4
6
|
dictionary: AddCandlePageDictionary;
|
5
7
|
language: Language;
|
6
8
|
pageData: AddCandlePageData;
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './domain.js';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './domain.js';
|
@@ -1,5 +1,7 @@
|
|
1
1
|
import { ContactPageDictionary, Language } from '../../../dictionary/index.js';
|
2
|
+
import { AuthServerSideProps } from '../auth-server-side-props/index.js';
|
2
3
|
export interface ContactPageServerSideProps {
|
4
|
+
auth?: AuthServerSideProps;
|
3
5
|
dictionary: ContactPageDictionary;
|
4
6
|
language: Language;
|
5
7
|
}
|
@@ -1,6 +1,8 @@
|
|
1
1
|
import { CookieConsent } from '../../../cookie/index.js';
|
2
2
|
import { CookiePolicyPageDictionary, Language } from '../../../dictionary/index.js';
|
3
|
+
import { AuthServerSideProps } from '../auth-server-side-props/index.js';
|
3
4
|
export interface CookiePolicyPageServerSideProps {
|
5
|
+
auth?: AuthServerSideProps;
|
4
6
|
cookieConsent?: CookieConsent;
|
5
7
|
dictionary: CookiePolicyPageDictionary;
|
6
8
|
language: Language;
|
@@ -1,5 +1,7 @@
|
|
1
1
|
import { HelpPageDictionary, Language } from '../../../dictionary/index.js';
|
2
|
+
import { AuthServerSideProps } from '../auth-server-side-props/index.js';
|
2
3
|
export interface HelpPageServerSideProps {
|
4
|
+
auth?: AuthServerSideProps;
|
3
5
|
dictionary: HelpPageDictionary;
|
4
6
|
language: Language;
|
5
7
|
}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
export * from './add-candle-page-server-side-props/index.js';
|
2
|
+
export * from './auth-server-side-props/index.js';
|
2
3
|
export * from './contact-page-server-side-props/index.js';
|
3
4
|
export * from './cookie-policy-page-server-side-props/index.js';
|
4
5
|
export * from './help-page-server-side-props/index.js';
|
@@ -1,4 +1,5 @@
|
|
1
1
|
export * from './add-candle-page-server-side-props/index.js';
|
2
|
+
export * from './auth-server-side-props/index.js';
|
2
3
|
export * from './contact-page-server-side-props/index.js';
|
3
4
|
export * from './cookie-policy-page-server-side-props/index.js';
|
4
5
|
export * from './help-page-server-side-props/index.js';
|
@@ -1,5 +1,7 @@
|
|
1
1
|
import { Language, TermsAndConditionsPageDictionary } from '../../../dictionary/index.js';
|
2
|
+
import { AuthServerSideProps } from '../auth-server-side-props/index.js';
|
2
3
|
export interface TermsAndConditionsPageServerSideProps {
|
4
|
+
auth?: AuthServerSideProps;
|
3
5
|
dictionary: TermsAndConditionsPageDictionary;
|
4
6
|
language: Language;
|
5
7
|
}
|