@lls/typings 24.1.34-bd602187 → 24.1.34-d6bbd6c2

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,5 +1,5 @@
1
1
  import type { Filter } from '@typings/models'
2
-
2
+ import type { ResourcesMenuType } from '@typings/models'
3
3
  type Collection = {
4
4
  name?: string
5
5
  year?: number
@@ -8,6 +8,7 @@ type Collection = {
8
8
 
9
9
  export type Book = {
10
10
  id?: number
11
+ uri?: string
11
12
  valid?: boolean
12
13
  subjects?: number[]
13
14
  levels?: number[]
@@ -18,4 +19,5 @@ export type Book = {
18
19
  filters?: Filter[]
19
20
  chapters?: number[]
20
21
  collection?: Collection
22
+ resourcesMenu?: ResourcesMenuType
21
23
  }
@@ -0,0 +1,10 @@
1
+ export type ResourcesMenuType = {
2
+ id?: string
3
+ title?: string
4
+ type?: string
5
+ elements?: Array<ResourcesMenuType>
6
+ version?: string
7
+ tag?: string
8
+ url?: string
9
+ resourceType?: string
10
+ }
@@ -22,7 +22,8 @@ export type User = {
22
22
  passwordUpdateRequired?: boolean
23
23
  confirmed?: boolean
24
24
  userPages?: number[] | null
25
- schoolTypes?: SchoolTypeName[]
25
+ schoolTypes?: SchoolTypeName[] | null
26
+ hasContentNewsletter?: boolean | null
26
27
  }
27
28
 
28
29
  export type AdminUser = User & { isAdmin: true }
package/models.d.ts CHANGED
@@ -10,3 +10,4 @@ export * from './internal/schoolType'
10
10
  export * from './internal/subject'
11
11
  export * from './internal/summary'
12
12
  export * from './internal/user'
13
+ export * from './internal/resourcesMenu'
@@ -4,6 +4,20 @@ declare global {
4
4
  // https://stackoverflow.com/questions/35074713/extending-typescript-global-object-in-node-js
5
5
  var cheerio: typeof CheerioModule
6
6
  var __SERVER__: boolean
7
+ var __VIEWER__: string | undefined
8
+ var __SUPERKIT__: string | undefined
9
+ var __KIT__: string | undefined
10
+ var __UTILS__: string | undefined
11
+ var __CONFIG__: {
12
+ env?: typeof process.env.CONF_ENV
13
+ api_url?: string
14
+ viewerVersion?: string
15
+ superkitVersion?: string
16
+ kitVersion?: string
17
+ utilsVersion?: string
18
+ }
19
+
20
+ var UNIVERSAL_VARS: Record<string, unknown> | undefined
7
21
 
8
22
  namespace NodeJS {
9
23
  interface ProcessEnv {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lls/typings",
3
- "version": "24.1.34-bd602187",
3
+ "version": "24.1.34-d6bbd6c2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "keywords": [],
@@ -9,7 +9,7 @@
9
9
  "devDependencies": {
10
10
  "@types/domhandler": "2.4.5",
11
11
  "@types/lodash": "4.14.202",
12
- "@types/react": "18.2.45",
12
+ "@types/react": "18.2.73",
13
13
  "cheerio": "1.0.0-rc.12",
14
14
  "typescript": "5.4.5"
15
15
  },