@lls/typings 24.1.40-fb7c8a58 → 24.1.40
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/book.d.ts +0 -10
- package/internal/page.d.ts +2 -8
- package/internal/user.d.ts +0 -15
- package/models.d.ts +0 -7
- package/package.json +4 -4
- package/internal/group.d.ts +0 -26
- package/internal/news.d.ts +0 -18
- package/internal/notification.d.ts +0 -15
- package/internal/premiumResource.d.ts +0 -26
- package/internal/product.d.ts +0 -24
- package/internal/resource.d.ts +0 -13
- package/internal/tool.d.ts +0 -15
package/internal/book.d.ts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import type { Filter } from '@typings/models'
|
|
2
2
|
import type { ResourcesMenuType } from '@typings/models'
|
|
3
3
|
type Collection = {
|
|
4
|
-
id?: number
|
|
5
4
|
name?: string
|
|
6
5
|
year?: number
|
|
7
6
|
publisher?: string
|
|
8
7
|
}
|
|
9
8
|
|
|
10
|
-
type Publisher = string
|
|
11
9
|
export type Book = {
|
|
12
10
|
id?: number
|
|
13
11
|
uri?: string
|
|
@@ -22,12 +20,4 @@ export type Book = {
|
|
|
22
20
|
chapters?: number[]
|
|
23
21
|
collection?: Collection
|
|
24
22
|
resourcesMenu?: ResourcesMenuType
|
|
25
|
-
renewalLabel?: string
|
|
26
|
-
urlLite?: string
|
|
27
|
-
isWorkplan?: boolean
|
|
28
|
-
isWorkbook?: boolean
|
|
29
|
-
hasNewDesign?: boolean
|
|
30
|
-
slug?: string
|
|
31
|
-
publishers?: Publisher[]
|
|
32
|
-
isRenewed?: boolean
|
|
33
23
|
}
|
package/internal/page.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { TODO } from '@typings/utils'
|
|
|
3
3
|
|
|
4
4
|
export type ScreenMode = 'grid-xs' | 'grid-md'
|
|
5
5
|
|
|
6
|
-
export type SubzoneTypeCategory = 'picWord' | 'definition' | 'subZone'
|
|
6
|
+
export type SubzoneTypeCategory = 'picWord' | 'definition' | 'subZone'
|
|
7
7
|
|
|
8
8
|
export type Rect = {
|
|
9
9
|
x: number
|
|
@@ -22,9 +22,8 @@ export type PicWordType = ZoneType & {
|
|
|
22
22
|
type: Extract<SubzoneTypeCategory, 'picWord'>
|
|
23
23
|
word?: Word
|
|
24
24
|
}
|
|
25
|
-
export type MaskType = ZoneType & { type: Extract<SubzoneTypeCategory, 'mask'> }
|
|
26
25
|
|
|
27
|
-
export type SubZoneType = ZoomZoneType | DefinitionsType | PicWordType
|
|
26
|
+
export type SubZoneType = ZoomZoneType | DefinitionsType | PicWordType
|
|
28
27
|
|
|
29
28
|
export type DocJson<T extends 'primary' | 'default' = 'default'> = {
|
|
30
29
|
id?: number
|
|
@@ -35,7 +34,6 @@ export type DocJson<T extends 'primary' | 'default' = 'default'> = {
|
|
|
35
34
|
picWords?: PicWordType[]
|
|
36
35
|
definitions?: DefinitionsType[]
|
|
37
36
|
subZones?: ZoomZoneType[]
|
|
38
|
-
masks?: MaskType[]
|
|
39
37
|
audios?: string[]
|
|
40
38
|
videos?: string[]
|
|
41
39
|
rives?: { src: string; stateMachines: string }[]
|
|
@@ -88,7 +86,6 @@ export type PrimaryLayoutItem = {
|
|
|
88
86
|
id: string
|
|
89
87
|
} & Rect
|
|
90
88
|
|
|
91
|
-
export type PageType = 'exercice' | 'page' | null
|
|
92
89
|
export type Page<T extends 'primary' | 'default' = 'default'> = {
|
|
93
90
|
id?: number
|
|
94
91
|
contentMd?: string
|
|
@@ -103,7 +100,6 @@ export type Page<T extends 'primary' | 'default' = 'default'> = {
|
|
|
103
100
|
premium?: boolean | null
|
|
104
101
|
isPanorama?: boolean
|
|
105
102
|
isCreatedFromScratch?: boolean
|
|
106
|
-
isLearningAssessment?: boolean
|
|
107
103
|
isDraft?: boolean
|
|
108
104
|
page?: number | null
|
|
109
105
|
nbPages?: number
|
|
@@ -123,9 +119,7 @@ export type Page<T extends 'primary' | 'default' = 'default'> = {
|
|
|
123
119
|
shouldRender?: boolean
|
|
124
120
|
isCustomized?: boolean
|
|
125
121
|
type?: string
|
|
126
|
-
isPrimary?: boolean
|
|
127
122
|
metadata?: TODO | null
|
|
128
|
-
pageType?: PageType
|
|
129
123
|
} & (T extends 'primary'
|
|
130
124
|
? {
|
|
131
125
|
picture?: string
|
package/internal/user.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { School } from './school'
|
|
2
1
|
import type { SchoolTypeName } from './schoolType'
|
|
3
2
|
|
|
4
3
|
export type User = {
|
|
@@ -14,7 +13,6 @@ export type User = {
|
|
|
14
13
|
firstname?: string | null
|
|
15
14
|
lastname?: string | null
|
|
16
15
|
email?: string | null
|
|
17
|
-
academicEmail?: string | null
|
|
18
16
|
username?: string | null
|
|
19
17
|
gender?: string | null
|
|
20
18
|
functions?: string[] | null
|
|
@@ -26,19 +24,6 @@ export type User = {
|
|
|
26
24
|
userPages?: number[] | null
|
|
27
25
|
schoolTypes?: SchoolTypeName[] | null
|
|
28
26
|
hasContentNewsletter?: boolean | null
|
|
29
|
-
picture?: string | null
|
|
30
|
-
garDivisions?: number[] | null
|
|
31
|
-
booksV2?: number[] | null
|
|
32
|
-
levels?: number[] | null
|
|
33
|
-
}
|
|
34
|
-
export type GarDivision = {
|
|
35
|
-
code?: string
|
|
36
|
-
createdAt?: string
|
|
37
|
-
id?: number
|
|
38
|
-
name?: string
|
|
39
|
-
school?: School
|
|
40
|
-
students?: User[]
|
|
41
|
-
updatedAt?: string
|
|
42
27
|
}
|
|
43
28
|
|
|
44
29
|
export type AdminUser = User & { isAdmin: true }
|
package/models.d.ts
CHANGED
|
@@ -2,20 +2,13 @@ export * from './internal/book'
|
|
|
2
2
|
export * from './internal/chapter'
|
|
3
3
|
export * from './internal/department'
|
|
4
4
|
export * from './internal/filter'
|
|
5
|
-
export * from './internal/group'
|
|
6
5
|
export * from './internal/level'
|
|
7
6
|
export * from './internal/license'
|
|
8
|
-
export * from './internal/news'
|
|
9
|
-
export * from './internal/notification'
|
|
10
7
|
export * from './internal/page'
|
|
11
|
-
export * from './internal/premiumResource'
|
|
12
|
-
export * from './internal/product'
|
|
13
|
-
export * from './internal/resource'
|
|
14
8
|
export * from './internal/school'
|
|
15
9
|
export * from './internal/schoolType'
|
|
16
10
|
export * from './internal/subject'
|
|
17
11
|
export * from './internal/summary'
|
|
18
|
-
export * from './internal/tool'
|
|
19
12
|
export * from './internal/user'
|
|
20
13
|
export * from './internal/word'
|
|
21
14
|
export * from './internal/resourcesMenu'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lls/typings",
|
|
3
|
-
"version": "24.1.40
|
|
3
|
+
"version": "24.1.40",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"keywords": [],
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
"license": "ISC",
|
|
9
9
|
"devDependencies": {
|
|
10
10
|
"@types/domhandler": "2.4.5",
|
|
11
|
-
"@types/lodash": "4.
|
|
12
|
-
"@types/react": "18.
|
|
11
|
+
"@types/lodash": "4.14.202",
|
|
12
|
+
"@types/react": "18.2.73",
|
|
13
13
|
"cheerio": "1.0.0-rc.12",
|
|
14
|
-
"typescript": "5.5
|
|
14
|
+
"typescript": "5.4.5"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"@biomejs/biome": "*"
|
package/internal/group.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { Level } from './level'
|
|
2
|
-
import type { DocJson, Page } from './page'
|
|
3
|
-
import type { User } from './user'
|
|
4
|
-
|
|
5
|
-
type SharedCorrection = {
|
|
6
|
-
correctedUuids: { [uuid: string]: { [elementId: number]: string } }
|
|
7
|
-
pageId: number
|
|
8
|
-
updatedAt: string
|
|
9
|
-
userIds: number[]
|
|
10
|
-
uuids: string[]
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export type Group = {
|
|
14
|
-
id: number
|
|
15
|
-
name: string
|
|
16
|
-
owner: User
|
|
17
|
-
students: NonNullable<User['id']>[]
|
|
18
|
-
sharedPages: Page[]
|
|
19
|
-
sharedCorrections: SharedCorrection[]
|
|
20
|
-
code: string
|
|
21
|
-
createdAt: string
|
|
22
|
-
updatedAt: string
|
|
23
|
-
isEnt: boolean
|
|
24
|
-
levels: Level[]
|
|
25
|
-
answeredExercises: DocJson[]
|
|
26
|
-
}
|
package/internal/news.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { Book } from './book'
|
|
2
|
-
import type { Level } from './level'
|
|
3
|
-
import type { Subject } from './subject'
|
|
4
|
-
|
|
5
|
-
export type News = {
|
|
6
|
-
id: number
|
|
7
|
-
title: string
|
|
8
|
-
displayTitle: string
|
|
9
|
-
cover: string
|
|
10
|
-
category: string
|
|
11
|
-
content: string
|
|
12
|
-
startDate: string
|
|
13
|
-
endDate: string
|
|
14
|
-
updatedAt: string
|
|
15
|
-
books: Book[]
|
|
16
|
-
levels: Level[]
|
|
17
|
-
subjects: Subject[]
|
|
18
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type Notification = {
|
|
2
|
-
id?: string
|
|
3
|
-
content?: {
|
|
4
|
-
title?: string
|
|
5
|
-
subtitle?: string
|
|
6
|
-
pageInterval?: string
|
|
7
|
-
thumbnail?: string
|
|
8
|
-
url?: string
|
|
9
|
-
appUrl?: string
|
|
10
|
-
}
|
|
11
|
-
type?: string
|
|
12
|
-
read?: boolean
|
|
13
|
-
updatedAt?: string
|
|
14
|
-
createdAt?: string
|
|
15
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export type PremiumResourceCategory = {
|
|
2
|
-
title?: string
|
|
3
|
-
subtitle?: string
|
|
4
|
-
description?: string
|
|
5
|
-
imgUrl?: string
|
|
6
|
-
order?: number
|
|
7
|
-
comingSoon?: string
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export type PremiumResourceMetaCategory = {
|
|
11
|
-
title?: string
|
|
12
|
-
subtitle?: string
|
|
13
|
-
}
|
|
14
|
-
export type PremiumResource = {
|
|
15
|
-
id?: number
|
|
16
|
-
title?: string
|
|
17
|
-
subtitle?: string
|
|
18
|
-
type?: string
|
|
19
|
-
url?: string
|
|
20
|
-
order?: number
|
|
21
|
-
comingSoon?: string
|
|
22
|
-
mediaType?: string
|
|
23
|
-
category?: PremiumResourceCategory
|
|
24
|
-
metaCategory?: PremiumResourceMetaCategory
|
|
25
|
-
downloadBlocked?: boolean
|
|
26
|
-
}
|
package/internal/product.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { Book } from './book'
|
|
2
|
-
|
|
3
|
-
export type Product = {
|
|
4
|
-
id?: string
|
|
5
|
-
ean?: string
|
|
6
|
-
productCode?: string
|
|
7
|
-
description?: string
|
|
8
|
-
picture?: string
|
|
9
|
-
gradientTop?: string
|
|
10
|
-
gradientBottom?: string
|
|
11
|
-
price?: number
|
|
12
|
-
name?: string
|
|
13
|
-
code?: string
|
|
14
|
-
pack?: number
|
|
15
|
-
isWorkbook?: number
|
|
16
|
-
isAdoptant?: number
|
|
17
|
-
isSupportPlus?: number
|
|
18
|
-
urlDistributor?: string
|
|
19
|
-
format?: string
|
|
20
|
-
productType?: string
|
|
21
|
-
urlPrint?: string
|
|
22
|
-
support?: string
|
|
23
|
-
books: Book[]
|
|
24
|
-
}
|
package/internal/resource.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Chapter } from './chapter'
|
|
2
|
-
import type { DocJson, Page } from './page'
|
|
3
|
-
|
|
4
|
-
export type Resource = {
|
|
5
|
-
categories?: string[]
|
|
6
|
-
chapter?: Chapter
|
|
7
|
-
document?: DocJson
|
|
8
|
-
id?: number
|
|
9
|
-
locked?: boolean
|
|
10
|
-
page?: Page
|
|
11
|
-
title?: string
|
|
12
|
-
url?: string
|
|
13
|
-
}
|
package/internal/tool.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
type RolesEnum = 'ROLE_PREMIUM' | 'ROLE_POWER_USER' | 'ROLE_USER'
|
|
2
|
-
type ProfilesEnum = 'teacher' | 'student'
|
|
3
|
-
export type Tool = {
|
|
4
|
-
id?: number
|
|
5
|
-
title?: string
|
|
6
|
-
description?: string
|
|
7
|
-
url?: string
|
|
8
|
-
picture?: string
|
|
9
|
-
color?: string
|
|
10
|
-
locked?: boolean
|
|
11
|
-
roles?: RolesEnum[]
|
|
12
|
-
profiles?: ProfilesEnum[]
|
|
13
|
-
isPremium?: boolean
|
|
14
|
-
order?: number
|
|
15
|
-
}
|