-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathenv.d.ts
More file actions
117 lines (112 loc) · 3.2 KB
/
Copy pathenv.d.ts
File metadata and controls
117 lines (112 loc) · 3.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
/**
* Environment variables needed by auth.js
*/
interface AuthEnv {
/**
* Secret used for signing authentication tokens.
* @see https://authjs.dev/getting-started/security#secret
*/
AUTH_SECRET: string;
/**
* Google OAuth client ID.
* @see https://console.cloud.google.com/apis/credentials
*/
AUTH_GOOGLE_ID: string;
/**
* Google OAuth client secret.
* @see https://console.cloud.google.com/apis/credentials
*/
AUTH_GOOGLE_SECRET: string;
/**
* Needed if you want to use a production build on localhost.
* Contains the URL, e.g. `http://localhost:5005`.
* @see https://authjs.dev/reference/core/types#trusthost
*/
AUTH_TRUST_HOST?: string;
}
/**
* Environment variables needed for Google Drive integration
*/
interface GoogleDriveEnv {
/**
* Google Drive folder ID for the "Dossier de suivi".
*/
DOSSIER_SUIVI: string;
/**
* All the following are the Google ids to the templates
* */
TEMPLATE_EXCEL_CE: string;
TEMPLATE_EXCEL_RM: string;
TEMPLATE_ACC: string;
TEMPLATE_ACE: string;
TEMPLATE_ARM: string;
TEMPLATE_BC: string;
TEMPLATE_BCR: string;
TEMPLATE_BA: string;
TEMPLATE_CC: string;
TEMPLATE_CE: string;
TEMPLATE_PVRF: string;
TEMPLATE_PVRI: string;
TEMPLATE_RM: string;
}
/**
* Environment variables needed for Google Drive integration
*/
interface SeedEnv {
/**
* Email address of the initial admin user.
* */
ADMIN_EMAIL: string;
/**
* Position of the initial admin user. Defaults to 'Info'. The position determines the rights you will have access to when first signing in
*/
ADMIN_POSITION?: string;
/**
* Deployment environment: "prod" or "dev". This influences how the seed is performed.
*/
ENV: 'prod' | 'dev';
/**
* If true, disables DB initialisation logic on seed.
* Otherwise, the DB is filled with lots of data.
* */
NO_DB_INIT?: true;
}
/** Environment variables needed for Mailchimp */
interface MailchimpEnv {
/**
* API key for mailchimp. You can create one here: @link <https://us22.admin.mailchimp.com/account/api/manage/#create.
*/
MAILCHIMP_API_KEY: string;
/**
* Mailchimp server prefix associated with the mailchimp account.
*
* This prefix is the first subdomain of the mailchimp interface. Thus, to get this prefix, connect to your account on mailchimp.com, then you should be redirected to <prefix>.admin.mailchimp.com. Put the prefix in this variable
*/
MAILCHIMP_SERVER_PREFIX: string;
/**
* List id of the audience you want to use for sending MRIs to.
*/
MAILCHIMP_MRI_LIST_ID: string;
}
interface OtherEnv {
WEBSITE_URL: string;
/**
* @see ./docs/database.md
*/
DB_URL: string;
/**
* Disables REDIS
* */
NO_CACHE?: string;
/**
* Gives unconditional access to all data and pages.
* This breaks middleware logic.
*/
DEV_MODE?: true;
APP_NAME_FIRST?: string;
APP_NAME_LAST?: string;
APP_NAME_PATCH?: string;
}
declare namespace NodeJS {
interface ProcessEnv extends AuthEnv, GoogleDriveEnv, SeedEnv, MailchimpEnv, OtherEnv {}
}