@magmamath/frontend-config 1.0.22-rc.10 → 1.0.22-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -104,11 +104,6 @@ declare enum ApiRegion {
104
104
  MAIN = "MAIN",
105
105
  CANADA = "CANADA"
106
106
  }
107
- declare enum QRCodeSize {
108
- DEFAULT = "default",
109
- MEDIUM = "medium",
110
- LARGE = "large"
111
- }
112
107
 
113
108
  declare enum MatrixMode {
114
109
  SKILL = "SKILL",
@@ -119,73 +114,6 @@ type IconProps = {
119
114
  size?: number;
120
115
  };
121
116
 
122
- type SSOConfig<E> = Readonly<{
123
- name: string;
124
- icon: ComponentType<IconProps>;
125
- type: SSO;
126
- loginSource: LoginSource;
127
- ownUrl?: boolean;
128
- getUrl: (envs: E) => string;
129
- }>;
130
-
131
- type RegionSpecificVars = {
132
- API_URL: string;
133
- AUTH_WEB_URL: string;
134
- CDN_HOST: string;
135
- DISTRICT_WEB_URL: string;
136
- LOGGLY_TAG: string;
137
- MAGMAMATH_URL: string;
138
- SOCKET_URL: string;
139
- STUDENTS_WEB_URL: string;
140
- TEACHERS_WEB_URL: string;
141
- };
142
-
143
- type StudentsWebCommon = {
144
- GOOGLE_API_KEY: string;
145
- DESMOS_API_KEY: string;
146
- LOGGLY_CUSTOMER_TOKEN: string;
147
- MYSCRIPT_APPLICATION_KEY: string;
148
- MYSCRIPT_HMAC_KEY: string;
149
- MYSCRIPT_HOST: string;
150
- MYSCRIPT_SOCKET_KEY: string;
151
- MYSCRIPT_REST_APP_KEY: string;
152
- MYSCRIPT_REST_HMAC_KEY: string;
153
- };
154
- type StudentsWebVars = RegionSpecificVars & StudentsWebCommon;
155
- type StudentsWebVarsPreset = {
156
- [key in Locale]: {
157
- [key in Environment]: StudentsWebVars;
158
- };
159
- };
160
-
161
- type TeachersWebCommon = {
162
- MYSCRIPT_HOST: string;
163
- MYSCRIPT_REST_APP_KEY: string;
164
- MYSCRIPT_REST_HMAC_KEY: string;
165
- PROBLEM_IMAGE_SIZE_LIMIT: number;
166
- INTERCOM_APP_ID: string;
167
- CLARITY_PROJECT_ID: string;
168
- LOGGLY_CUSTOMER_TOKEN: string;
169
- };
170
- type TeachersWebVars = RegionSpecificVars & TeachersWebCommon;
171
- type TeachersWebVarsPreset = {
172
- [key in Locale]: {
173
- [key in Environment]: TeachersWebVars;
174
- };
175
- };
176
-
177
- type DistrictCommon = {
178
- INTERCOM_APP_ID: string;
179
- CLARITY_PROJECT_ID: string;
180
- PROBLEM_IMAGE_SIZE_LIMIT: number;
181
- };
182
- type DistrictDashboardVars = Omit<RegionSpecificVars, 'SOCKET_URL'> & DistrictCommon;
183
- type DistrictWebVarsPreset = {
184
- [key in Locale]: {
185
- [key in Environment]: DistrictDashboardVars;
186
- };
187
- };
188
-
189
117
  type SSO_UK = {
190
118
  GOOGLE_AUTH: string;
191
119
  MICROSOFT_AUTH: string;
@@ -223,6 +151,18 @@ type Prettify<T> = T extends Function ? T : {
223
151
  [K in keyof T]: T[K];
224
152
  };
225
153
 
154
+ type RegionSpecificVars = {
155
+ API_URL: string;
156
+ AUTH_WEB_URL: string;
157
+ CDN_HOST: string;
158
+ DISTRICT_WEB_URL: string;
159
+ LOGGLY_TAG: string;
160
+ MAGMAMATH_URL: string;
161
+ SOCKET_URL: string;
162
+ STUDENTS_WEB_URL: string;
163
+ TEACHERS_WEB_URL: string;
164
+ };
165
+
226
166
  type AuthWebVars<T extends SSOVariant> = Prettify<AuthWebBaseVars & T>;
227
167
  type AuthWebBaseVars = Omit<RegionSpecificVars, 'CDN_HOST' | 'LOGGLY_TAG' | 'SOCKET_URL'> & {
228
168
  TOS_URL: string;
@@ -250,6 +190,63 @@ type AuthWebVarsPreset = {
250
190
  };
251
191
  };
252
192
 
193
+ type SSOConfigStatic = Readonly<{
194
+ name: string;
195
+ icon: ComponentType<IconProps>;
196
+ type: SSO;
197
+ loginSource: LoginSource;
198
+ ownUrl?: boolean;
199
+ }>;
200
+ type SSOConfig<T extends SSOVariant> = SSOConfigStatic & {
201
+ getUrl: (envs: AuthWebVars<T>) => string;
202
+ };
203
+
204
+ type StudentsWebCommon = {
205
+ GOOGLE_API_KEY: string;
206
+ DESMOS_API_KEY: string;
207
+ LOGGLY_CUSTOMER_TOKEN: string;
208
+ MYSCRIPT_APPLICATION_KEY: string;
209
+ MYSCRIPT_HMAC_KEY: string;
210
+ MYSCRIPT_HOST: string;
211
+ MYSCRIPT_SOCKET_KEY: string;
212
+ MYSCRIPT_REST_APP_KEY: string;
213
+ MYSCRIPT_REST_HMAC_KEY: string;
214
+ };
215
+ type StudentsWebVars = RegionSpecificVars & StudentsWebCommon;
216
+ type StudentsWebVarsPreset = {
217
+ [key in Locale]: {
218
+ [key in Environment]: StudentsWebVars;
219
+ };
220
+ };
221
+
222
+ type TeachersWebCommon = {
223
+ MYSCRIPT_HOST: string;
224
+ MYSCRIPT_REST_APP_KEY: string;
225
+ MYSCRIPT_REST_HMAC_KEY: string;
226
+ PROBLEM_IMAGE_SIZE_LIMIT: number;
227
+ INTERCOM_APP_ID: string;
228
+ CLARITY_PROJECT_ID: string;
229
+ LOGGLY_CUSTOMER_TOKEN: string;
230
+ };
231
+ type TeachersWebVars = RegionSpecificVars & TeachersWebCommon;
232
+ type TeachersWebVarsPreset = {
233
+ [key in Locale]: {
234
+ [key in Environment]: TeachersWebVars;
235
+ };
236
+ };
237
+
238
+ type DistrictCommon = {
239
+ INTERCOM_APP_ID: string;
240
+ CLARITY_PROJECT_ID: string;
241
+ PROBLEM_IMAGE_SIZE_LIMIT: number;
242
+ };
243
+ type DistrictDashboardVars = Omit<RegionSpecificVars, 'SOCKET_URL'> & DistrictCommon;
244
+ type DistrictWebVarsPreset = {
245
+ [key in Locale]: {
246
+ [key in Environment]: DistrictDashboardVars;
247
+ };
248
+ };
249
+
253
250
  type MobileCommon = {
254
251
  DESMOS_API_KEY: string;
255
252
  USER_AGENT: string;
@@ -260,13 +257,9 @@ type MobileCommon = {
260
257
  MYSCRIPT_SOCKET_KEY: string;
261
258
  MYSCRIPT_REST_APP_KEY: string;
262
259
  MYSCRIPT_REST_HMAC_KEY: string;
263
- GOOGLE_API_KEY: string;
264
- GOOGLE_TEXT_TO_SPEECH_URL: string;
265
- GOOGLE_TRANSLATE_URL: string;
266
260
  };
267
261
  type MobileBaseVars = {
268
262
  TEACHERS_WEB_URL: string;
269
- AUTH_WEB_URL: string;
270
263
  API_URL: string;
271
264
  CDN_HOST: string;
272
265
  SOCKET_URL: string;
@@ -438,18 +431,18 @@ type DistrictLocaleConfig = CommonLocaleConfig & {
438
431
  };
439
432
  };
440
433
 
441
- type AuthLocaleConfig<E> = {
434
+ type AuthWebLocaleConfig<T extends SSOVariant> = {
442
435
  path: string;
443
436
  shortCode: string;
444
437
  icon: ComponentType<IconProps>;
445
438
  sources: {
446
439
  signUp: {
447
- list: SSOConfig<E>[];
440
+ list: SSOConfig<T>[];
448
441
  };
449
442
  signIn: {
450
443
  withOnboarding: boolean;
451
- qrCodeSize: QRCodeSize;
452
- list: SSOConfig<E>[];
444
+ largeQRCode: boolean;
445
+ list: SSOConfig<T>[];
453
446
  };
454
447
  };
455
448
  isPrimaryRegion: boolean;
@@ -467,6 +460,27 @@ type WebAdminLocaleConfig = {
467
460
  apiRegion: ApiRegion;
468
461
  };
469
462
 
463
+ type MobileLocaleConfig = {
464
+ path: string;
465
+ shortCode: string;
466
+ icon: ComponentType<IconProps>;
467
+ sources: {
468
+ signUp: {
469
+ list: SSOConfigStatic[];
470
+ };
471
+ signIn: {
472
+ withOnboarding: boolean;
473
+ largeQRCode: boolean;
474
+ mediumQRCode: boolean;
475
+ list: SSOConfigStatic[];
476
+ };
477
+ };
478
+ isPrimaryRegion: boolean;
479
+ regionGroup: string;
480
+ navigatorLanguages: string[];
481
+ locale: Locale;
482
+ };
483
+
470
484
  type CommonLocaleConfig = Readonly<{
471
485
  name: string;
472
486
  languageName: string;
@@ -485,13 +499,13 @@ type LocalePreset = {
485
499
  [key in Locale]: DistrictLocaleConfig;
486
500
  };
487
501
  [Platform.AUTH_WEB]: {
488
- [key in Locale]: AuthLocaleConfig<AuthWebVars<SSOByLocale[key]>>;
502
+ [key in Locale]: AuthWebLocaleConfig<SSOByLocale[key]>;
489
503
  };
490
504
  [Platform.WEB_ADMIN]: {
491
505
  [key in Locale]: WebAdminLocaleConfig;
492
506
  };
493
507
  [Platform.MOBILE]: {
494
- [key in Locale]: AuthLocaleConfig<MobileVars<SSOByLocale[key]>>;
508
+ [key in Locale]: MobileLocaleConfig;
495
509
  };
496
510
  };
497
511
  type LocaleConfig<P extends Platform, L extends Locale> = LocalePreset[P][L];
@@ -534,4 +548,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
534
548
  };
535
549
  }
536
550
 
537
- export { ApiRegion, AppConfigManager, type AuthWebBaseVars, type AuthWebVars, type AuthWebVarsPreset, DateFormat, DateLocale, type DistrictCommon, type DistrictDashboardVars, type DistrictWebVarsPreset, type EnvPreset, Environment, type EnvironmentVars, Locale, LoginSource, MatrixMode, type MobileBaseVars, type MobileCommon, type MobileVars, type MobileVarsPreset, Platform, PlatformBuildTarget, QRCodeSize, SSO, type SSOByLocale, type SSOConfig, type SSOVariant, type SSO_DE, type SSO_SE, type SSO_UK, type SSO_US, Source, type StudentsWebCommon, type StudentsWebVars, type StudentsWebVarsPreset, type TeachersWebCommon, type TeachersWebVars, type TeachersWebVarsPreset, buildTargetToEnvironment };
551
+ export { ApiRegion, AppConfigManager, type AuthWebBaseVars, type AuthWebVars, type AuthWebVarsPreset, DateFormat, DateLocale, type DistrictCommon, type DistrictDashboardVars, type DistrictWebVarsPreset, type EnvPreset, Environment, type EnvironmentVars, Locale, LoginSource, MatrixMode, type MobileBaseVars, type MobileCommon, type MobileVars, type MobileVarsPreset, Platform, PlatformBuildTarget, SSO, type SSOByLocale, type SSOConfig, type SSOConfigStatic, type SSOVariant, type SSO_DE, type SSO_SE, type SSO_UK, type SSO_US, Source, type StudentsWebCommon, type StudentsWebVars, type StudentsWebVarsPreset, type TeachersWebCommon, type TeachersWebVars, type TeachersWebVarsPreset, buildTargetToEnvironment };
package/dist/index.d.ts CHANGED
@@ -104,11 +104,6 @@ declare enum ApiRegion {
104
104
  MAIN = "MAIN",
105
105
  CANADA = "CANADA"
106
106
  }
107
- declare enum QRCodeSize {
108
- DEFAULT = "default",
109
- MEDIUM = "medium",
110
- LARGE = "large"
111
- }
112
107
 
113
108
  declare enum MatrixMode {
114
109
  SKILL = "SKILL",
@@ -119,73 +114,6 @@ type IconProps = {
119
114
  size?: number;
120
115
  };
121
116
 
122
- type SSOConfig<E> = Readonly<{
123
- name: string;
124
- icon: ComponentType<IconProps>;
125
- type: SSO;
126
- loginSource: LoginSource;
127
- ownUrl?: boolean;
128
- getUrl: (envs: E) => string;
129
- }>;
130
-
131
- type RegionSpecificVars = {
132
- API_URL: string;
133
- AUTH_WEB_URL: string;
134
- CDN_HOST: string;
135
- DISTRICT_WEB_URL: string;
136
- LOGGLY_TAG: string;
137
- MAGMAMATH_URL: string;
138
- SOCKET_URL: string;
139
- STUDENTS_WEB_URL: string;
140
- TEACHERS_WEB_URL: string;
141
- };
142
-
143
- type StudentsWebCommon = {
144
- GOOGLE_API_KEY: string;
145
- DESMOS_API_KEY: string;
146
- LOGGLY_CUSTOMER_TOKEN: string;
147
- MYSCRIPT_APPLICATION_KEY: string;
148
- MYSCRIPT_HMAC_KEY: string;
149
- MYSCRIPT_HOST: string;
150
- MYSCRIPT_SOCKET_KEY: string;
151
- MYSCRIPT_REST_APP_KEY: string;
152
- MYSCRIPT_REST_HMAC_KEY: string;
153
- };
154
- type StudentsWebVars = RegionSpecificVars & StudentsWebCommon;
155
- type StudentsWebVarsPreset = {
156
- [key in Locale]: {
157
- [key in Environment]: StudentsWebVars;
158
- };
159
- };
160
-
161
- type TeachersWebCommon = {
162
- MYSCRIPT_HOST: string;
163
- MYSCRIPT_REST_APP_KEY: string;
164
- MYSCRIPT_REST_HMAC_KEY: string;
165
- PROBLEM_IMAGE_SIZE_LIMIT: number;
166
- INTERCOM_APP_ID: string;
167
- CLARITY_PROJECT_ID: string;
168
- LOGGLY_CUSTOMER_TOKEN: string;
169
- };
170
- type TeachersWebVars = RegionSpecificVars & TeachersWebCommon;
171
- type TeachersWebVarsPreset = {
172
- [key in Locale]: {
173
- [key in Environment]: TeachersWebVars;
174
- };
175
- };
176
-
177
- type DistrictCommon = {
178
- INTERCOM_APP_ID: string;
179
- CLARITY_PROJECT_ID: string;
180
- PROBLEM_IMAGE_SIZE_LIMIT: number;
181
- };
182
- type DistrictDashboardVars = Omit<RegionSpecificVars, 'SOCKET_URL'> & DistrictCommon;
183
- type DistrictWebVarsPreset = {
184
- [key in Locale]: {
185
- [key in Environment]: DistrictDashboardVars;
186
- };
187
- };
188
-
189
117
  type SSO_UK = {
190
118
  GOOGLE_AUTH: string;
191
119
  MICROSOFT_AUTH: string;
@@ -223,6 +151,18 @@ type Prettify<T> = T extends Function ? T : {
223
151
  [K in keyof T]: T[K];
224
152
  };
225
153
 
154
+ type RegionSpecificVars = {
155
+ API_URL: string;
156
+ AUTH_WEB_URL: string;
157
+ CDN_HOST: string;
158
+ DISTRICT_WEB_URL: string;
159
+ LOGGLY_TAG: string;
160
+ MAGMAMATH_URL: string;
161
+ SOCKET_URL: string;
162
+ STUDENTS_WEB_URL: string;
163
+ TEACHERS_WEB_URL: string;
164
+ };
165
+
226
166
  type AuthWebVars<T extends SSOVariant> = Prettify<AuthWebBaseVars & T>;
227
167
  type AuthWebBaseVars = Omit<RegionSpecificVars, 'CDN_HOST' | 'LOGGLY_TAG' | 'SOCKET_URL'> & {
228
168
  TOS_URL: string;
@@ -250,6 +190,63 @@ type AuthWebVarsPreset = {
250
190
  };
251
191
  };
252
192
 
193
+ type SSOConfigStatic = Readonly<{
194
+ name: string;
195
+ icon: ComponentType<IconProps>;
196
+ type: SSO;
197
+ loginSource: LoginSource;
198
+ ownUrl?: boolean;
199
+ }>;
200
+ type SSOConfig<T extends SSOVariant> = SSOConfigStatic & {
201
+ getUrl: (envs: AuthWebVars<T>) => string;
202
+ };
203
+
204
+ type StudentsWebCommon = {
205
+ GOOGLE_API_KEY: string;
206
+ DESMOS_API_KEY: string;
207
+ LOGGLY_CUSTOMER_TOKEN: string;
208
+ MYSCRIPT_APPLICATION_KEY: string;
209
+ MYSCRIPT_HMAC_KEY: string;
210
+ MYSCRIPT_HOST: string;
211
+ MYSCRIPT_SOCKET_KEY: string;
212
+ MYSCRIPT_REST_APP_KEY: string;
213
+ MYSCRIPT_REST_HMAC_KEY: string;
214
+ };
215
+ type StudentsWebVars = RegionSpecificVars & StudentsWebCommon;
216
+ type StudentsWebVarsPreset = {
217
+ [key in Locale]: {
218
+ [key in Environment]: StudentsWebVars;
219
+ };
220
+ };
221
+
222
+ type TeachersWebCommon = {
223
+ MYSCRIPT_HOST: string;
224
+ MYSCRIPT_REST_APP_KEY: string;
225
+ MYSCRIPT_REST_HMAC_KEY: string;
226
+ PROBLEM_IMAGE_SIZE_LIMIT: number;
227
+ INTERCOM_APP_ID: string;
228
+ CLARITY_PROJECT_ID: string;
229
+ LOGGLY_CUSTOMER_TOKEN: string;
230
+ };
231
+ type TeachersWebVars = RegionSpecificVars & TeachersWebCommon;
232
+ type TeachersWebVarsPreset = {
233
+ [key in Locale]: {
234
+ [key in Environment]: TeachersWebVars;
235
+ };
236
+ };
237
+
238
+ type DistrictCommon = {
239
+ INTERCOM_APP_ID: string;
240
+ CLARITY_PROJECT_ID: string;
241
+ PROBLEM_IMAGE_SIZE_LIMIT: number;
242
+ };
243
+ type DistrictDashboardVars = Omit<RegionSpecificVars, 'SOCKET_URL'> & DistrictCommon;
244
+ type DistrictWebVarsPreset = {
245
+ [key in Locale]: {
246
+ [key in Environment]: DistrictDashboardVars;
247
+ };
248
+ };
249
+
253
250
  type MobileCommon = {
254
251
  DESMOS_API_KEY: string;
255
252
  USER_AGENT: string;
@@ -260,13 +257,9 @@ type MobileCommon = {
260
257
  MYSCRIPT_SOCKET_KEY: string;
261
258
  MYSCRIPT_REST_APP_KEY: string;
262
259
  MYSCRIPT_REST_HMAC_KEY: string;
263
- GOOGLE_API_KEY: string;
264
- GOOGLE_TEXT_TO_SPEECH_URL: string;
265
- GOOGLE_TRANSLATE_URL: string;
266
260
  };
267
261
  type MobileBaseVars = {
268
262
  TEACHERS_WEB_URL: string;
269
- AUTH_WEB_URL: string;
270
263
  API_URL: string;
271
264
  CDN_HOST: string;
272
265
  SOCKET_URL: string;
@@ -438,18 +431,18 @@ type DistrictLocaleConfig = CommonLocaleConfig & {
438
431
  };
439
432
  };
440
433
 
441
- type AuthLocaleConfig<E> = {
434
+ type AuthWebLocaleConfig<T extends SSOVariant> = {
442
435
  path: string;
443
436
  shortCode: string;
444
437
  icon: ComponentType<IconProps>;
445
438
  sources: {
446
439
  signUp: {
447
- list: SSOConfig<E>[];
440
+ list: SSOConfig<T>[];
448
441
  };
449
442
  signIn: {
450
443
  withOnboarding: boolean;
451
- qrCodeSize: QRCodeSize;
452
- list: SSOConfig<E>[];
444
+ largeQRCode: boolean;
445
+ list: SSOConfig<T>[];
453
446
  };
454
447
  };
455
448
  isPrimaryRegion: boolean;
@@ -467,6 +460,27 @@ type WebAdminLocaleConfig = {
467
460
  apiRegion: ApiRegion;
468
461
  };
469
462
 
463
+ type MobileLocaleConfig = {
464
+ path: string;
465
+ shortCode: string;
466
+ icon: ComponentType<IconProps>;
467
+ sources: {
468
+ signUp: {
469
+ list: SSOConfigStatic[];
470
+ };
471
+ signIn: {
472
+ withOnboarding: boolean;
473
+ largeQRCode: boolean;
474
+ mediumQRCode: boolean;
475
+ list: SSOConfigStatic[];
476
+ };
477
+ };
478
+ isPrimaryRegion: boolean;
479
+ regionGroup: string;
480
+ navigatorLanguages: string[];
481
+ locale: Locale;
482
+ };
483
+
470
484
  type CommonLocaleConfig = Readonly<{
471
485
  name: string;
472
486
  languageName: string;
@@ -485,13 +499,13 @@ type LocalePreset = {
485
499
  [key in Locale]: DistrictLocaleConfig;
486
500
  };
487
501
  [Platform.AUTH_WEB]: {
488
- [key in Locale]: AuthLocaleConfig<AuthWebVars<SSOByLocale[key]>>;
502
+ [key in Locale]: AuthWebLocaleConfig<SSOByLocale[key]>;
489
503
  };
490
504
  [Platform.WEB_ADMIN]: {
491
505
  [key in Locale]: WebAdminLocaleConfig;
492
506
  };
493
507
  [Platform.MOBILE]: {
494
- [key in Locale]: AuthLocaleConfig<MobileVars<SSOByLocale[key]>>;
508
+ [key in Locale]: MobileLocaleConfig;
495
509
  };
496
510
  };
497
511
  type LocaleConfig<P extends Platform, L extends Locale> = LocalePreset[P][L];
@@ -534,4 +548,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
534
548
  };
535
549
  }
536
550
 
537
- export { ApiRegion, AppConfigManager, type AuthWebBaseVars, type AuthWebVars, type AuthWebVarsPreset, DateFormat, DateLocale, type DistrictCommon, type DistrictDashboardVars, type DistrictWebVarsPreset, type EnvPreset, Environment, type EnvironmentVars, Locale, LoginSource, MatrixMode, type MobileBaseVars, type MobileCommon, type MobileVars, type MobileVarsPreset, Platform, PlatformBuildTarget, QRCodeSize, SSO, type SSOByLocale, type SSOConfig, type SSOVariant, type SSO_DE, type SSO_SE, type SSO_UK, type SSO_US, Source, type StudentsWebCommon, type StudentsWebVars, type StudentsWebVarsPreset, type TeachersWebCommon, type TeachersWebVars, type TeachersWebVarsPreset, buildTargetToEnvironment };
551
+ export { ApiRegion, AppConfigManager, type AuthWebBaseVars, type AuthWebVars, type AuthWebVarsPreset, DateFormat, DateLocale, type DistrictCommon, type DistrictDashboardVars, type DistrictWebVarsPreset, type EnvPreset, Environment, type EnvironmentVars, Locale, LoginSource, MatrixMode, type MobileBaseVars, type MobileCommon, type MobileVars, type MobileVarsPreset, Platform, PlatformBuildTarget, SSO, type SSOByLocale, type SSOConfig, type SSOConfigStatic, type SSOVariant, type SSO_DE, type SSO_SE, type SSO_UK, type SSO_US, Source, type StudentsWebCommon, type StudentsWebVars, type StudentsWebVarsPreset, type TeachersWebCommon, type TeachersWebVars, type TeachersWebVarsPreset, buildTargetToEnvironment };