@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.
- package/internal/book.d.ts +3 -1
- package/internal/resourcesMenu.d.ts +10 -0
- package/internal/user.d.ts +2 -1
- package/models.d.ts +1 -0
- package/overrides/global.d.ts +14 -0
- package/package.json +2 -2
package/internal/book.d.ts
CHANGED
|
@@ -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
|
}
|
package/internal/user.d.ts
CHANGED
|
@@ -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
package/overrides/global.d.ts
CHANGED
|
@@ -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-
|
|
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.
|
|
12
|
+
"@types/react": "18.2.73",
|
|
13
13
|
"cheerio": "1.0.0-rc.12",
|
|
14
14
|
"typescript": "5.4.5"
|
|
15
15
|
},
|