@lls/typings 24.1.31-80c85cc4 → 24.1.31-82857dac
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/internal/schoolType.d.ts +1 -13
- package/internal/subject.d.ts +1 -16
- package/internal/user.d.ts +1 -3
- package/package.json +1 -1
package/internal/schoolType.d.ts
CHANGED
|
@@ -1,17 +1,5 @@
|
|
|
1
|
-
export type SchoolTypeName =
|
|
2
|
-
| 'Collège'
|
|
3
|
-
| 'Lycée Technologique'
|
|
4
|
-
| 'Lycée Professionnel'
|
|
5
|
-
| 'Lycée Général'
|
|
6
|
-
| 'Lycée Agricole'
|
|
7
|
-
| 'Maternelle'
|
|
8
|
-
| 'Elémentaire'
|
|
9
|
-
| 'Primaire'
|
|
10
|
-
| 'BTS'
|
|
11
|
-
| 'Autre'
|
|
12
|
-
|
|
13
1
|
export type SchoolType = {
|
|
14
2
|
id?: number
|
|
15
|
-
name?:
|
|
3
|
+
name?: string
|
|
16
4
|
order?: number
|
|
17
5
|
}
|
package/internal/subject.d.ts
CHANGED
|
@@ -1,21 +1,6 @@
|
|
|
1
|
-
export type SubjectName =
|
|
2
|
-
| 'Mathématiques'
|
|
3
|
-
| 'Physique-Chimie'
|
|
4
|
-
| 'SVT'
|
|
5
|
-
| 'Sciences et Technologie'
|
|
6
|
-
| 'SNT'
|
|
7
|
-
| 'Enseignement Scientifique'
|
|
8
|
-
| 'PSE'
|
|
9
|
-
| 'Français'
|
|
10
|
-
| 'Histoire-Géographie-EMC'
|
|
11
|
-
| 'Philosophie'
|
|
12
|
-
| 'SES'
|
|
13
|
-
| 'Anglais'
|
|
14
|
-
| 'Espagnol'
|
|
15
|
-
|
|
16
1
|
export type Subject = {
|
|
17
2
|
id?: number
|
|
18
|
-
name?:
|
|
3
|
+
name?: string | null
|
|
19
4
|
schoolTypes?: string[]
|
|
20
5
|
slug?: string
|
|
21
6
|
}
|
package/internal/user.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import type { SchoolTypeName } from './schoolType'
|
|
2
|
-
|
|
3
1
|
export type User = {
|
|
4
2
|
id?: number
|
|
5
3
|
isAdmin?: boolean
|
|
@@ -22,7 +20,7 @@ export type User = {
|
|
|
22
20
|
passwordUpdateRequired?: boolean
|
|
23
21
|
confirmed?: boolean
|
|
24
22
|
userPages?: number[] | null
|
|
25
|
-
schoolTypes?:
|
|
23
|
+
schoolTypes?: string[]
|
|
26
24
|
}
|
|
27
25
|
|
|
28
26
|
export type AdminUser = User & { isAdmin: true }
|