@lls/typings 24.1.40-88c2289d → 24.1.40-9077909e
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 +2 -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 +13 -0
- package/models.d.ts +7 -0
- package/package.json +1 -1
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
|
@@ -102,6 +102,7 @@ export type Page<T extends 'primary' | 'default' = 'default'> = {
|
|
|
102
102
|
premium?: boolean | null
|
|
103
103
|
isPanorama?: boolean
|
|
104
104
|
isCreatedFromScratch?: boolean
|
|
105
|
+
isLearningAssessment?: boolean
|
|
105
106
|
isDraft?: boolean
|
|
106
107
|
page?: number | null
|
|
107
108
|
nbPages?: number
|
|
@@ -121,6 +122,7 @@ export type Page<T extends 'primary' | 'default' = 'default'> = {
|
|
|
121
122
|
shouldRender?: boolean
|
|
122
123
|
isCustomized?: boolean
|
|
123
124
|
type?: string
|
|
125
|
+
isPrimary?: boolean
|
|
124
126
|
metadata?: TODO | null
|
|
125
127
|
} & (T extends 'primary'
|
|
126
128
|
? {
|
|
@@ -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,5 @@
|
|
|
1
|
+
import type { Book } from './book'
|
|
2
|
+
import type { School } from './school'
|
|
1
3
|
import type { SchoolTypeName } from './schoolType'
|
|
2
4
|
|
|
3
5
|
export type User = {
|
|
@@ -25,6 +27,17 @@ export type User = {
|
|
|
25
27
|
userPages?: number[] | null
|
|
26
28
|
schoolTypes?: SchoolTypeName[] | null
|
|
27
29
|
hasContentNewsletter?: boolean | null
|
|
30
|
+
garDivisions?: Array<GarDivision>
|
|
31
|
+
booksV2?: Book[]
|
|
32
|
+
}
|
|
33
|
+
export type GarDivision = {
|
|
34
|
+
code?: string
|
|
35
|
+
createdAt?: string
|
|
36
|
+
id?: number
|
|
37
|
+
name?: string
|
|
38
|
+
school?: School
|
|
39
|
+
students?: User[]
|
|
40
|
+
updatedAt?: string
|
|
28
41
|
}
|
|
29
42
|
|
|
30
43
|
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'
|