@lls/store 24.1.70 → 24.1.71-64ac66f3
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.
|
@@ -77,6 +77,7 @@ declare const userSchema: {
|
|
|
77
77
|
subjects: schema.Entity<any>[];
|
|
78
78
|
teachers: schema.Entity<any>[];
|
|
79
79
|
userPages: schema.Entity<any>[];
|
|
80
|
+
userBookPages: schema.Entity<any>[];
|
|
80
81
|
lexicalFlowers: {
|
|
81
82
|
hits: schema.Entity<any>[];
|
|
82
83
|
};
|
|
@@ -121,6 +122,10 @@ declare const groupSchema: {
|
|
|
121
122
|
students: schema.Entity<any>[];
|
|
122
123
|
};
|
|
123
124
|
export type Group = Norm<GroupModel, typeof groupSchema>;
|
|
125
|
+
declare const schoolSchema: {
|
|
126
|
+
groups: schema.Entity<any>[];
|
|
127
|
+
};
|
|
128
|
+
export type School = Norm<SchoolModel, typeof schoolSchema>;
|
|
124
129
|
declare const methodSchema: {
|
|
125
130
|
book: schema.Entity<any>;
|
|
126
131
|
};
|
|
@@ -210,7 +215,6 @@ export type Level = LevelModel;
|
|
|
210
215
|
export type Collection = CollectionModel;
|
|
211
216
|
export type Subject = SubjectModel;
|
|
212
217
|
export type Panorama = PanoramaModel;
|
|
213
|
-
export type School = SchoolModel;
|
|
214
218
|
export type Faq = FaqModel;
|
|
215
219
|
export type LexicalFlower = LexicalFlowerModel;
|
|
216
220
|
export type SchoolType = Norm<SchoolTypeModel, {}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { School } from '@lls/store/schema';
|
|
2
|
-
export declare const getSchools: (state: import("@lls/utils").TState<
|
|
2
|
+
export declare const getSchools: (state: import("@lls/utils").TState<School>) => School[], getSchool: (state: import("@lls/utils").TState<School>, entityId: number | string | undefined | null) => School | undefined, useSearchSchools: (params: {
|
|
3
3
|
ids?: School["id"][] | undefined;
|
|
4
|
-
}) =>
|
|
4
|
+
}) => School[];
|
package/lib/index.js
CHANGED
|
@@ -1498,6 +1498,7 @@ var userSchema = define(user, {
|
|
|
1498
1498
|
subjects: [subject],
|
|
1499
1499
|
teachers: [teacher],
|
|
1500
1500
|
userPages: [page],
|
|
1501
|
+
userBookPages: [page],
|
|
1501
1502
|
lexicalFlowers: { hits: [lexicalFlower] }
|
|
1502
1503
|
});
|
|
1503
1504
|
var notificationSchema = define(mainNotification, { page });
|
|
@@ -1531,6 +1532,9 @@ var groupSchema = define(group, {
|
|
|
1531
1532
|
owner: teacher,
|
|
1532
1533
|
students: [student]
|
|
1533
1534
|
});
|
|
1535
|
+
var schoolSchema = define(school, {
|
|
1536
|
+
groups: [group]
|
|
1537
|
+
});
|
|
1534
1538
|
var methodSchema = define(method, {
|
|
1535
1539
|
book
|
|
1536
1540
|
});
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@lls/store",
|
|
3
3
|
"description": "model de donnée et selecteurs",
|
|
4
4
|
"homepage": "https://github.com/lelivrescolaire/monorepo/tree/dev/libs/store",
|
|
5
|
-
"version": "24.1.
|
|
5
|
+
"version": "24.1.71-64ac66f3",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"types": "./lib/builttypes/store/src/index.d.ts",
|
|
8
8
|
"exports": {
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"vite": "5.4.6",
|
|
48
48
|
"vite-tsconfig-paths": "5.0.1",
|
|
49
49
|
"vitest": "2.1.1",
|
|
50
|
-
"@lls/utils": "24.1.
|
|
51
|
-
"@lls/vitescripts": "24.1.
|
|
50
|
+
"@lls/utils": "24.1.71-64ac66f3",
|
|
51
|
+
"@lls/vitescripts": "24.1.71-64ac66f3"
|
|
52
52
|
},
|
|
53
53
|
"license": "ISC",
|
|
54
54
|
"dependencies": {
|