@lls/typings 24.1.40-a60c25e0 → 24.1.40-ab7600a2
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 +10 -0
- package/internal/group.d.ts +26 -0
- package/internal/news.d.ts +18 -0
- package/internal/notification.d.ts +15 -0
- package/internal/page.d.ts +4 -0
- package/internal/premiumResource.d.ts +26 -0
- package/internal/product.d.ts +24 -0
- package/internal/resource.d.ts +13 -0
- package/internal/tool.d.ts +15 -0
- package/internal/user.d.ts +14 -0
- package/models.d.ts +7 -0
- package/package.json +4 -4
package/internal/book.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { Filter } from '@typings/models'
|
|
2
2
|
import type { ResourcesMenuType } from '@typings/models'
|
|
3
3
|
type Collection = {
|
|
4
|
+
id?: number
|
|
4
5
|
name?: string
|
|
5
6
|
year?: number
|
|
6
7
|
publisher?: string
|
|
7
8
|
}
|
|
8
9
|
|
|
10
|
+
type Publisher = string
|
|
9
11
|
export type Book = {
|
|
10
12
|
id?: number
|
|
11
13
|
uri?: string
|
|
@@ -20,4 +22,12 @@ export type Book = {
|
|
|
20
22
|
chapters?: number[]
|
|
21
23
|
collection?: Collection
|
|
22
24
|
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
|
|
23
33
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
}
|
package/internal/page.d.ts
CHANGED
|
@@ -88,6 +88,7 @@ export type PrimaryLayoutItem = {
|
|
|
88
88
|
id: string
|
|
89
89
|
} & Rect
|
|
90
90
|
|
|
91
|
+
export type PageType = 'exercice' | 'page' | null
|
|
91
92
|
export type Page<T extends 'primary' | 'default' = 'default'> = {
|
|
92
93
|
id?: number
|
|
93
94
|
contentMd?: string
|
|
@@ -102,6 +103,7 @@ export type Page<T extends 'primary' | 'default' = 'default'> = {
|
|
|
102
103
|
premium?: boolean | null
|
|
103
104
|
isPanorama?: boolean
|
|
104
105
|
isCreatedFromScratch?: boolean
|
|
106
|
+
isLearningAssessment?: boolean
|
|
105
107
|
isDraft?: boolean
|
|
106
108
|
page?: number | null
|
|
107
109
|
nbPages?: number
|
|
@@ -121,7 +123,9 @@ export type Page<T extends 'primary' | 'default' = 'default'> = {
|
|
|
121
123
|
shouldRender?: boolean
|
|
122
124
|
isCustomized?: boolean
|
|
123
125
|
type?: string
|
|
126
|
+
isPrimary?: boolean
|
|
124
127
|
metadata?: TODO | null
|
|
128
|
+
pageType?: PageType
|
|
125
129
|
} & (T extends 'primary'
|
|
126
130
|
? {
|
|
127
131
|
picture?: string
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
}
|
package/internal/user.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { School } from './school'
|
|
1
2
|
import type { SchoolTypeName } from './schoolType'
|
|
2
3
|
|
|
3
4
|
export type User = {
|
|
@@ -25,6 +26,19 @@ export type User = {
|
|
|
25
26
|
userPages?: number[] | null
|
|
26
27
|
schoolTypes?: SchoolTypeName[] | null
|
|
27
28
|
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
|
|
28
42
|
}
|
|
29
43
|
|
|
30
44
|
export type AdminUser = User & { isAdmin: true }
|
package/models.d.ts
CHANGED
|
@@ -2,13 +2,20 @@ 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'
|
|
5
6
|
export * from './internal/level'
|
|
6
7
|
export * from './internal/license'
|
|
8
|
+
export * from './internal/news'
|
|
9
|
+
export * from './internal/notification'
|
|
7
10
|
export * from './internal/page'
|
|
11
|
+
export * from './internal/premiumResource'
|
|
12
|
+
export * from './internal/product'
|
|
13
|
+
export * from './internal/resource'
|
|
8
14
|
export * from './internal/school'
|
|
9
15
|
export * from './internal/schoolType'
|
|
10
16
|
export * from './internal/subject'
|
|
11
17
|
export * from './internal/summary'
|
|
18
|
+
export * from './internal/tool'
|
|
12
19
|
export * from './internal/user'
|
|
13
20
|
export * from './internal/word'
|
|
14
21
|
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-ab7600a2",
|
|
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.17.6",
|
|
12
|
+
"@types/react": "18.3.3",
|
|
13
13
|
"cheerio": "1.0.0-rc.12",
|
|
14
|
-
"typescript": "5.
|
|
14
|
+
"typescript": "5.5.3"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"@biomejs/biome": "*"
|