@lls/typings 24.1.40-ff2506c7 → 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.
@@ -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
  }
@@ -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' | 'mask'
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 | MaskType
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 }[]
@@ -102,7 +100,6 @@ export type Page<T extends 'primary' | 'default' = 'default'> = {
102
100
  premium?: boolean | null
103
101
  isPanorama?: boolean
104
102
  isCreatedFromScratch?: boolean
105
- isLearningAssessment?: boolean
106
103
  isDraft?: boolean
107
104
  page?: number | null
108
105
  nbPages?: number
@@ -122,7 +119,6 @@ export type Page<T extends 'primary' | 'default' = 'default'> = {
122
119
  shouldRender?: boolean
123
120
  isCustomized?: boolean
124
121
  type?: string
125
- isPrimary?: boolean
126
122
  metadata?: TODO | null
127
123
  } & (T extends 'primary'
128
124
  ? {
@@ -1,5 +1,3 @@
1
- import type { Book } from './book'
2
- import type { School } from './school'
3
1
  import type { SchoolTypeName } from './schoolType'
4
2
 
5
3
  export type User = {
@@ -15,7 +13,6 @@ export type User = {
15
13
  firstname?: string | null
16
14
  lastname?: string | null
17
15
  email?: string | null
18
- academicEmail?: string | null
19
16
  username?: string | null
20
17
  gender?: string | null
21
18
  functions?: string[] | null
@@ -27,17 +24,6 @@ export type User = {
27
24
  userPages?: number[] | null
28
25
  schoolTypes?: SchoolTypeName[] | null
29
26
  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
41
27
  }
42
28
 
43
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-ff2506c7",
3
+ "version": "24.1.40",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "keywords": [],
@@ -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
- }
@@ -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
- }
@@ -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
- }
@@ -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
- }
@@ -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
- }