@sekolaos/shared-api 1.1.1 → 1.2.0
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/dist/{chunk-4ECXVAIQ.cjs → chunk-2IFQLECT.cjs} +6 -6
- package/dist/{chunk-4ECXVAIQ.cjs.map → chunk-2IFQLECT.cjs.map} +1 -1
- package/dist/{chunk-TSLEYQKD.cjs → chunk-6TPAWAST.cjs} +11 -11
- package/dist/{chunk-TSLEYQKD.cjs.map → chunk-6TPAWAST.cjs.map} +1 -1
- package/dist/{chunk-5C4JMJ6P.cjs → chunk-7XRQ255H.cjs} +17 -15
- package/dist/chunk-7XRQ255H.cjs.map +1 -0
- package/dist/{chunk-S6QFHKCE.js → chunk-A5QDNC7Y.js} +13 -10
- package/dist/chunk-A5QDNC7Y.js.map +1 -0
- package/dist/{chunk-XU5UEIBL.js → chunk-ANLONSKR.js} +3 -3
- package/dist/{chunk-XU5UEIBL.js.map → chunk-ANLONSKR.js.map} +1 -1
- package/dist/chunk-BQDHQTPK.js +89 -0
- package/dist/chunk-BQDHQTPK.js.map +1 -0
- package/dist/{chunk-CBIDGS35.cjs → chunk-DBKYIIPQ.cjs} +9 -9
- package/dist/{chunk-CBIDGS35.cjs.map → chunk-DBKYIIPQ.cjs.map} +1 -1
- package/dist/{chunk-R7ACSDOA.cjs → chunk-DUULXOBJ.cjs} +17 -14
- package/dist/chunk-DUULXOBJ.cjs.map +1 -0
- package/dist/{chunk-NBVPN4KL.cjs → chunk-DYBHD45V.cjs} +4 -4
- package/dist/{chunk-NBVPN4KL.cjs.map → chunk-DYBHD45V.cjs.map} +1 -1
- package/dist/{chunk-CP46K2UB.cjs → chunk-HTGZJQNS.cjs} +45 -17
- package/dist/chunk-HTGZJQNS.cjs.map +1 -0
- package/dist/{chunk-AGNLUQKT.cjs → chunk-JZP57ZKZ.cjs} +5 -5
- package/dist/{chunk-AGNLUQKT.cjs.map → chunk-JZP57ZKZ.cjs.map} +1 -1
- package/dist/{chunk-6UCHRWSL.js → chunk-LMSX35HO.js} +3 -3
- package/dist/{chunk-6UCHRWSL.js.map → chunk-LMSX35HO.js.map} +1 -1
- package/dist/{chunk-RMU634GQ.js → chunk-LNGJA2UL.js} +3 -3
- package/dist/{chunk-RMU634GQ.js.map → chunk-LNGJA2UL.js.map} +1 -1
- package/dist/{chunk-XVG5Z6B5.cjs → chunk-N7CHJ3EM.cjs} +4 -3
- package/dist/{chunk-XVG5Z6B5.cjs.map → chunk-N7CHJ3EM.cjs.map} +1 -1
- package/dist/{chunk-ALMSFTRM.js → chunk-PDMQWMZM.js} +4 -3
- package/dist/{chunk-ALMSFTRM.js.map → chunk-PDMQWMZM.js.map} +1 -1
- package/dist/{chunk-ZHCA7HVE.js → chunk-S7N3GQOE.js} +9 -7
- package/dist/chunk-S7N3GQOE.js.map +1 -0
- package/dist/{chunk-R37QQTQS.cjs → chunk-SSPEC3OA.cjs} +6 -6
- package/dist/{chunk-R37QQTQS.cjs.map → chunk-SSPEC3OA.cjs.map} +1 -1
- package/dist/{chunk-3RS57C3E.cjs → chunk-T2TWWLVZ.cjs} +31 -23
- package/dist/chunk-T2TWWLVZ.cjs.map +1 -0
- package/dist/{chunk-YK7QFPBF.js → chunk-T6NCBXWC.js} +3 -3
- package/dist/{chunk-YK7QFPBF.js.map → chunk-T6NCBXWC.js.map} +1 -1
- package/dist/{chunk-LA7MRXWR.js → chunk-WMH2DW3N.js} +3 -3
- package/dist/{chunk-LA7MRXWR.js.map → chunk-WMH2DW3N.js.map} +1 -1
- package/dist/{chunk-AOBHBJ2G.cjs → chunk-WPMDE5ZF.cjs} +16 -13
- package/dist/chunk-WPMDE5ZF.cjs.map +1 -0
- package/dist/{chunk-DMEWJ56D.js → chunk-XOFGB2GD.js} +10 -7
- package/dist/chunk-XOFGB2GD.js.map +1 -0
- package/dist/{chunk-YA2KONBB.js → chunk-ZDBSD2VY.js} +3 -3
- package/dist/{chunk-YA2KONBB.js.map → chunk-ZDBSD2VY.js.map} +1 -1
- package/dist/{chunk-GRBBLS5Y.js → chunk-ZPJ5WHAK.js} +29 -21
- package/dist/chunk-ZPJ5WHAK.js.map +1 -0
- package/dist/index.cjs +146 -138
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +12 -12
- package/dist/keys/index.cjs +13 -13
- package/dist/keys/index.d.cts +1 -0
- package/dist/keys/index.d.ts +1 -0
- package/dist/keys/index.js +1 -1
- package/dist/modules/academic/index.cjs +10 -10
- package/dist/modules/academic/index.js +2 -2
- package/dist/modules/attendance/index.cjs +16 -16
- package/dist/modules/attendance/index.d.cts +6 -5
- package/dist/modules/attendance/index.d.ts +6 -5
- package/dist/modules/attendance/index.js +2 -2
- package/dist/modules/auth/index.cjs +20 -12
- package/dist/modules/auth/index.d.cts +112 -15
- package/dist/modules/auth/index.d.ts +112 -15
- package/dist/modules/auth/index.js +2 -2
- package/dist/modules/classroom/index.cjs +14 -14
- package/dist/modules/classroom/index.d.cts +3 -1
- package/dist/modules/classroom/index.d.ts +3 -1
- package/dist/modules/classroom/index.js +2 -2
- package/dist/modules/lead/index.cjs +10 -10
- package/dist/modules/lead/index.js +2 -2
- package/dist/modules/student/index.cjs +18 -18
- package/dist/modules/student/index.d.cts +4 -2
- package/dist/modules/student/index.d.ts +4 -2
- package/dist/modules/student/index.js +2 -2
- package/dist/modules/subject/index.cjs +8 -8
- package/dist/modules/subject/index.js +2 -2
- package/dist/modules/system/index.cjs +4 -4
- package/dist/modules/system/index.js +2 -2
- package/dist/modules/teaching-schedule/index.cjs +14 -14
- package/dist/modules/teaching-schedule/index.d.cts +12 -7
- package/dist/modules/teaching-schedule/index.d.ts +12 -7
- package/dist/modules/teaching-schedule/index.js +2 -2
- package/dist/modules/tenant/index.cjs +16 -16
- package/dist/modules/tenant/index.js +2 -2
- package/dist/modules/user/index.cjs +14 -14
- package/dist/modules/user/index.js +2 -2
- package/package.json +137 -138
- package/dist/chunk-3RS57C3E.cjs.map +0 -1
- package/dist/chunk-4T52ABA5.js +0 -63
- package/dist/chunk-4T52ABA5.js.map +0 -1
- package/dist/chunk-5C4JMJ6P.cjs.map +0 -1
- package/dist/chunk-AOBHBJ2G.cjs.map +0 -1
- package/dist/chunk-CP46K2UB.cjs.map +0 -1
- package/dist/chunk-DMEWJ56D.js.map +0 -1
- package/dist/chunk-GRBBLS5Y.js.map +0 -1
- package/dist/chunk-R7ACSDOA.cjs.map +0 -1
- package/dist/chunk-S6QFHKCE.js.map +0 -1
- package/dist/chunk-ZHCA7HVE.js.map +0 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
+
import { M as MutationOptionsCustom, S as SekolaosApiError } from '../../types-BxV0BtVp.js';
|
|
2
3
|
import { BulkImportStudentRequest, BulkImportStudentResponse, CreateStudentInput, Student, StudentOfflineCache, StudentQrPayload, StudentListQuery, UpdateStudentInput } from '@sekolaos/shared-schema';
|
|
3
4
|
export { BulkImportStudentRequest, BulkImportStudentResponse, CreateStudentInput, Student, StudentListQuery, StudentOfflineCache, StudentQrPayload, UpdateStudentInput } from '@sekolaos/shared-schema';
|
|
5
|
+
import 'axios';
|
|
4
6
|
|
|
5
7
|
declare function listStudents(params?: Partial<StudentListQuery>): Promise<Student[]>;
|
|
6
8
|
declare function getStudent(id: string): Promise<Student>;
|
|
@@ -100,7 +102,7 @@ declare function useUpdateStudent(): _tanstack_react_query.UseMutationResult<{
|
|
|
100
102
|
payload: UpdateStudentInput;
|
|
101
103
|
}, unknown>;
|
|
102
104
|
declare function useDeleteStudent(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
|
|
103
|
-
declare function useBulkImportStudents(): _tanstack_react_query.UseMutationResult<{
|
|
105
|
+
declare function useBulkImportStudents(options?: MutationOptionsCustom<BulkImportStudentResponse, BulkImportStudentRequest>): _tanstack_react_query.UseMutationResult<{
|
|
104
106
|
errors: {
|
|
105
107
|
message: string;
|
|
106
108
|
row: number;
|
|
@@ -109,7 +111,7 @@ declare function useBulkImportStudents(): _tanstack_react_query.UseMutationResul
|
|
|
109
111
|
totalProcessed: number;
|
|
110
112
|
totalSuccess: number;
|
|
111
113
|
totalFailed: number;
|
|
112
|
-
},
|
|
114
|
+
}, SekolaosApiError, {
|
|
113
115
|
academicYearId: string;
|
|
114
116
|
students: {
|
|
115
117
|
fullName: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { bulkImportStudents, createStudent, deleteStudent, getStudent, getStudentKioskCache, getStudentQrPayload, listStudents, updateStudent, useBulkImportStudents, useCreateStudent, useDeleteStudent, useStudent, useStudentKioskCache, useStudentQrCode, useStudents, useUpdateStudent } from '../../chunk-
|
|
1
|
+
export { bulkImportStudents, createStudent, deleteStudent, getStudent, getStudentKioskCache, getStudentQrPayload, listStudents, updateStudent, useBulkImportStudents, useCreateStudent, useDeleteStudent, useStudent, useStudentKioskCache, useStudentQrCode, useStudents, useUpdateStudent } from '../../chunk-S7N3GQOE.js';
|
|
2
2
|
import '../../chunk-MRFGUSN2.js';
|
|
3
3
|
import '../../chunk-6JGO2CUT.js';
|
|
4
4
|
import '../../chunk-GRXFSXG5.js';
|
|
5
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-PDMQWMZM.js';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk2IFQLECT_cjs = require('../../chunk-2IFQLECT.cjs');
|
|
4
4
|
require('../../chunk-QJSOSQ7M.cjs');
|
|
5
5
|
require('../../chunk-NGFFI4XQ.cjs');
|
|
6
6
|
require('../../chunk-PPK3HQOY.cjs');
|
|
7
|
-
require('../../chunk-
|
|
7
|
+
require('../../chunk-N7CHJ3EM.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "createSubject", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk2IFQLECT_cjs.createSubject; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "listSubjects", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk2IFQLECT_cjs.listSubjects; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "updateSubject", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk2IFQLECT_cjs.updateSubject; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "useCreateSubject", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk2IFQLECT_cjs.useCreateSubject; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "useSubjects", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunk2IFQLECT_cjs.useSubjects; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "useUpdateSubject", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunk2IFQLECT_cjs.useUpdateSubject; }
|
|
34
34
|
});
|
|
35
35
|
//# sourceMappingURL=index.cjs.map
|
|
36
36
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { createSubject, listSubjects, updateSubject, useCreateSubject, useSubjects, useUpdateSubject } from '../../chunk-
|
|
1
|
+
export { createSubject, listSubjects, updateSubject, useCreateSubject, useSubjects, useUpdateSubject } from '../../chunk-ANLONSKR.js';
|
|
2
2
|
import '../../chunk-MRFGUSN2.js';
|
|
3
3
|
import '../../chunk-6JGO2CUT.js';
|
|
4
4
|
import '../../chunk-GRXFSXG5.js';
|
|
5
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-PDMQWMZM.js';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkDYBHD45V_cjs = require('../../chunk-DYBHD45V.cjs');
|
|
4
4
|
require('../../chunk-QJSOSQ7M.cjs');
|
|
5
5
|
require('../../chunk-NGFFI4XQ.cjs');
|
|
6
6
|
require('../../chunk-PPK3HQOY.cjs');
|
|
7
|
-
require('../../chunk-
|
|
7
|
+
require('../../chunk-N7CHJ3EM.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "getHealth", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkDYBHD45V_cjs.getHealth; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "useHealth", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkDYBHD45V_cjs.useHealth; }
|
|
18
18
|
});
|
|
19
19
|
//# sourceMappingURL=index.cjs.map
|
|
20
20
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { getHealth, useHealth } from '../../chunk-
|
|
1
|
+
export { getHealth, useHealth } from '../../chunk-ZDBSD2VY.js';
|
|
2
2
|
import '../../chunk-MRFGUSN2.js';
|
|
3
3
|
import '../../chunk-6JGO2CUT.js';
|
|
4
4
|
import '../../chunk-GRXFSXG5.js';
|
|
5
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-PDMQWMZM.js';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkT2TWWLVZ_cjs = require('../../chunk-T2TWWLVZ.cjs');
|
|
4
4
|
require('../../chunk-QJSOSQ7M.cjs');
|
|
5
5
|
require('../../chunk-NGFFI4XQ.cjs');
|
|
6
6
|
require('../../chunk-PPK3HQOY.cjs');
|
|
7
|
-
require('../../chunk-
|
|
7
|
+
require('../../chunk-N7CHJ3EM.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "batchCreateTeachingSchedules", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkT2TWWLVZ_cjs.batchCreateTeachingSchedules; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "checkScheduleConflict", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkT2TWWLVZ_cjs.checkScheduleConflict; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "copyRoster", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkT2TWWLVZ_cjs.copyRoster; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "createTeachingSchedule", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkT2TWWLVZ_cjs.createTeachingSchedule; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "listTeachingSchedules", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkT2TWWLVZ_cjs.listTeachingSchedules; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "updateTeachingSchedule", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkT2TWWLVZ_cjs.updateTeachingSchedule; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "useBatchCreateTeachingSchedules", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkT2TWWLVZ_cjs.useBatchCreateTeachingSchedules; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "useCopyRoster", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkT2TWWLVZ_cjs.useCopyRoster; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "useCreateTeachingSchedule", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkT2TWWLVZ_cjs.useCreateTeachingSchedule; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "useScheduleConflict", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkT2TWWLVZ_cjs.useScheduleConflict; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "useTeachingSchedules", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkT2TWWLVZ_cjs.useTeachingSchedules; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "useUpdateTeachingSchedule", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkT2TWWLVZ_cjs.useUpdateTeachingSchedule; }
|
|
58
58
|
});
|
|
59
59
|
//# sourceMappingURL=index.cjs.map
|
|
60
60
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
+
import { M as MutationOptionsCustom, S as SekolaosApiError, Q as QueryOptionsWithoutKey } from '../../types-BxV0BtVp.cjs';
|
|
2
3
|
import { TeachingSchedule, BatchCreateTeachingScheduleInput, CheckScheduleConflictQuery, CopyRosterRequestInput, CreateTeachingScheduleInput, TeachingScheduleListQuery, UpdateTeachingScheduleInput } from '@sekolaos/shared-schema';
|
|
3
4
|
export { BatchCreateTeachingScheduleInput, CheckScheduleConflictQuery, CopyRosterRequestInput, CreateTeachingScheduleInput, TeachingSchedule, TeachingScheduleListQuery, UpdateTeachingScheduleInput } from '@sekolaos/shared-schema';
|
|
5
|
+
import 'axios';
|
|
4
6
|
|
|
5
7
|
type ScheduleConflictType = "TEACHER" | "CLASSROOM";
|
|
6
8
|
interface ScheduleConflictResult {
|
|
@@ -32,8 +34,8 @@ declare function useTeachingSchedules(params?: TeachingScheduleListQuery): _tans
|
|
|
32
34
|
subjectName?: string | undefined;
|
|
33
35
|
periodNumber?: number | undefined;
|
|
34
36
|
}[], Error>;
|
|
35
|
-
declare function useScheduleConflict(params: CheckScheduleConflictQuery,
|
|
36
|
-
declare function useCreateTeachingSchedule(): _tanstack_react_query.UseMutationResult<{
|
|
37
|
+
declare function useScheduleConflict(params: CheckScheduleConflictQuery, options?: QueryOptionsWithoutKey<ScheduleConflictResult>): _tanstack_react_query.UseQueryResult<ScheduleConflictResult, SekolaosApiError>;
|
|
38
|
+
declare function useCreateTeachingSchedule(options?: MutationOptionsCustom<TeachingSchedule, CreateTeachingScheduleInput>): _tanstack_react_query.UseMutationResult<{
|
|
37
39
|
id: string;
|
|
38
40
|
tenantId: string;
|
|
39
41
|
academicYearId: string;
|
|
@@ -47,7 +49,7 @@ declare function useCreateTeachingSchedule(): _tanstack_react_query.UseMutationR
|
|
|
47
49
|
teacherName?: string | undefined;
|
|
48
50
|
subjectName?: string | undefined;
|
|
49
51
|
periodNumber?: number | undefined;
|
|
50
|
-
},
|
|
52
|
+
}, SekolaosApiError, {
|
|
51
53
|
academicYearId: string;
|
|
52
54
|
classroomId: string;
|
|
53
55
|
teacherUserId: string;
|
|
@@ -57,7 +59,10 @@ declare function useCreateTeachingSchedule(): _tanstack_react_query.UseMutationR
|
|
|
57
59
|
endTime: string;
|
|
58
60
|
periodNumber?: number | undefined;
|
|
59
61
|
}, unknown>;
|
|
60
|
-
declare function useUpdateTeachingSchedule(
|
|
62
|
+
declare function useUpdateTeachingSchedule(options?: MutationOptionsCustom<TeachingSchedule, {
|
|
63
|
+
id: string;
|
|
64
|
+
payload: UpdateTeachingScheduleInput;
|
|
65
|
+
}>): _tanstack_react_query.UseMutationResult<{
|
|
61
66
|
id: string;
|
|
62
67
|
tenantId: string;
|
|
63
68
|
academicYearId: string;
|
|
@@ -71,11 +76,11 @@ declare function useUpdateTeachingSchedule(): _tanstack_react_query.UseMutationR
|
|
|
71
76
|
teacherName?: string | undefined;
|
|
72
77
|
subjectName?: string | undefined;
|
|
73
78
|
periodNumber?: number | undefined;
|
|
74
|
-
},
|
|
79
|
+
}, SekolaosApiError, {
|
|
75
80
|
id: string;
|
|
76
81
|
payload: UpdateTeachingScheduleInput;
|
|
77
82
|
}, unknown>;
|
|
78
|
-
declare function useBatchCreateTeachingSchedules(): _tanstack_react_query.UseMutationResult<AffectedRowsResult,
|
|
83
|
+
declare function useBatchCreateTeachingSchedules(options?: MutationOptionsCustom<AffectedRowsResult, BatchCreateTeachingScheduleInput>): _tanstack_react_query.UseMutationResult<AffectedRowsResult, SekolaosApiError, {
|
|
79
84
|
academicYearId: string;
|
|
80
85
|
classroomId: string;
|
|
81
86
|
teacherUserId: string;
|
|
@@ -87,7 +92,7 @@ declare function useBatchCreateTeachingSchedules(): _tanstack_react_query.UseMut
|
|
|
87
92
|
periodNumber: number;
|
|
88
93
|
}[];
|
|
89
94
|
}, unknown>;
|
|
90
|
-
declare function useCopyRoster(): _tanstack_react_query.UseMutationResult<AffectedRowsResult,
|
|
95
|
+
declare function useCopyRoster(options?: MutationOptionsCustom<AffectedRowsResult, CopyRosterRequestInput>): _tanstack_react_query.UseMutationResult<AffectedRowsResult, SekolaosApiError, {
|
|
91
96
|
academicYearId: string;
|
|
92
97
|
sourceClassroomId: string;
|
|
93
98
|
targetClassroomId: string;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
+
import { M as MutationOptionsCustom, S as SekolaosApiError, Q as QueryOptionsWithoutKey } from '../../types-BxV0BtVp.js';
|
|
2
3
|
import { TeachingSchedule, BatchCreateTeachingScheduleInput, CheckScheduleConflictQuery, CopyRosterRequestInput, CreateTeachingScheduleInput, TeachingScheduleListQuery, UpdateTeachingScheduleInput } from '@sekolaos/shared-schema';
|
|
3
4
|
export { BatchCreateTeachingScheduleInput, CheckScheduleConflictQuery, CopyRosterRequestInput, CreateTeachingScheduleInput, TeachingSchedule, TeachingScheduleListQuery, UpdateTeachingScheduleInput } from '@sekolaos/shared-schema';
|
|
5
|
+
import 'axios';
|
|
4
6
|
|
|
5
7
|
type ScheduleConflictType = "TEACHER" | "CLASSROOM";
|
|
6
8
|
interface ScheduleConflictResult {
|
|
@@ -32,8 +34,8 @@ declare function useTeachingSchedules(params?: TeachingScheduleListQuery): _tans
|
|
|
32
34
|
subjectName?: string | undefined;
|
|
33
35
|
periodNumber?: number | undefined;
|
|
34
36
|
}[], Error>;
|
|
35
|
-
declare function useScheduleConflict(params: CheckScheduleConflictQuery,
|
|
36
|
-
declare function useCreateTeachingSchedule(): _tanstack_react_query.UseMutationResult<{
|
|
37
|
+
declare function useScheduleConflict(params: CheckScheduleConflictQuery, options?: QueryOptionsWithoutKey<ScheduleConflictResult>): _tanstack_react_query.UseQueryResult<ScheduleConflictResult, SekolaosApiError>;
|
|
38
|
+
declare function useCreateTeachingSchedule(options?: MutationOptionsCustom<TeachingSchedule, CreateTeachingScheduleInput>): _tanstack_react_query.UseMutationResult<{
|
|
37
39
|
id: string;
|
|
38
40
|
tenantId: string;
|
|
39
41
|
academicYearId: string;
|
|
@@ -47,7 +49,7 @@ declare function useCreateTeachingSchedule(): _tanstack_react_query.UseMutationR
|
|
|
47
49
|
teacherName?: string | undefined;
|
|
48
50
|
subjectName?: string | undefined;
|
|
49
51
|
periodNumber?: number | undefined;
|
|
50
|
-
},
|
|
52
|
+
}, SekolaosApiError, {
|
|
51
53
|
academicYearId: string;
|
|
52
54
|
classroomId: string;
|
|
53
55
|
teacherUserId: string;
|
|
@@ -57,7 +59,10 @@ declare function useCreateTeachingSchedule(): _tanstack_react_query.UseMutationR
|
|
|
57
59
|
endTime: string;
|
|
58
60
|
periodNumber?: number | undefined;
|
|
59
61
|
}, unknown>;
|
|
60
|
-
declare function useUpdateTeachingSchedule(
|
|
62
|
+
declare function useUpdateTeachingSchedule(options?: MutationOptionsCustom<TeachingSchedule, {
|
|
63
|
+
id: string;
|
|
64
|
+
payload: UpdateTeachingScheduleInput;
|
|
65
|
+
}>): _tanstack_react_query.UseMutationResult<{
|
|
61
66
|
id: string;
|
|
62
67
|
tenantId: string;
|
|
63
68
|
academicYearId: string;
|
|
@@ -71,11 +76,11 @@ declare function useUpdateTeachingSchedule(): _tanstack_react_query.UseMutationR
|
|
|
71
76
|
teacherName?: string | undefined;
|
|
72
77
|
subjectName?: string | undefined;
|
|
73
78
|
periodNumber?: number | undefined;
|
|
74
|
-
},
|
|
79
|
+
}, SekolaosApiError, {
|
|
75
80
|
id: string;
|
|
76
81
|
payload: UpdateTeachingScheduleInput;
|
|
77
82
|
}, unknown>;
|
|
78
|
-
declare function useBatchCreateTeachingSchedules(): _tanstack_react_query.UseMutationResult<AffectedRowsResult,
|
|
83
|
+
declare function useBatchCreateTeachingSchedules(options?: MutationOptionsCustom<AffectedRowsResult, BatchCreateTeachingScheduleInput>): _tanstack_react_query.UseMutationResult<AffectedRowsResult, SekolaosApiError, {
|
|
79
84
|
academicYearId: string;
|
|
80
85
|
classroomId: string;
|
|
81
86
|
teacherUserId: string;
|
|
@@ -87,7 +92,7 @@ declare function useBatchCreateTeachingSchedules(): _tanstack_react_query.UseMut
|
|
|
87
92
|
periodNumber: number;
|
|
88
93
|
}[];
|
|
89
94
|
}, unknown>;
|
|
90
|
-
declare function useCopyRoster(): _tanstack_react_query.UseMutationResult<AffectedRowsResult,
|
|
95
|
+
declare function useCopyRoster(options?: MutationOptionsCustom<AffectedRowsResult, CopyRosterRequestInput>): _tanstack_react_query.UseMutationResult<AffectedRowsResult, SekolaosApiError, {
|
|
91
96
|
academicYearId: string;
|
|
92
97
|
sourceClassroomId: string;
|
|
93
98
|
targetClassroomId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { batchCreateTeachingSchedules, checkScheduleConflict, copyRoster, createTeachingSchedule, listTeachingSchedules, updateTeachingSchedule, useBatchCreateTeachingSchedules, useCopyRoster, useCreateTeachingSchedule, useScheduleConflict, useTeachingSchedules, useUpdateTeachingSchedule } from '../../chunk-
|
|
1
|
+
export { batchCreateTeachingSchedules, checkScheduleConflict, copyRoster, createTeachingSchedule, listTeachingSchedules, updateTeachingSchedule, useBatchCreateTeachingSchedules, useCopyRoster, useCreateTeachingSchedule, useScheduleConflict, useTeachingSchedules, useUpdateTeachingSchedule } from '../../chunk-ZPJ5WHAK.js';
|
|
2
2
|
import '../../chunk-MRFGUSN2.js';
|
|
3
3
|
import '../../chunk-6JGO2CUT.js';
|
|
4
4
|
import '../../chunk-GRXFSXG5.js';
|
|
5
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-PDMQWMZM.js';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,68 +1,68 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk6TPAWAST_cjs = require('../../chunk-6TPAWAST.cjs');
|
|
4
4
|
require('../../chunk-QJSOSQ7M.cjs');
|
|
5
5
|
require('../../chunk-NGFFI4XQ.cjs');
|
|
6
6
|
require('../../chunk-PPK3HQOY.cjs');
|
|
7
|
-
require('../../chunk-
|
|
7
|
+
require('../../chunk-N7CHJ3EM.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "createTenant", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk6TPAWAST_cjs.createTenant; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "getAttendanceShift", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk6TPAWAST_cjs.getAttendanceShift; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "getCurrentTenant", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk6TPAWAST_cjs.getCurrentTenant; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "getTenantModules", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk6TPAWAST_cjs.getTenantModules; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "listAttendanceShifts", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunk6TPAWAST_cjs.listAttendanceShifts; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "updateCurrentTenant", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunk6TPAWAST_cjs.updateCurrentTenant; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "upsertAttendanceShifts", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunk6TPAWAST_cjs.upsertAttendanceShifts; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "useAttendanceShift", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunk6TPAWAST_cjs.useAttendanceShift; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "useAttendanceShifts", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunk6TPAWAST_cjs.useAttendanceShifts; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "useCreateTenant", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunk6TPAWAST_cjs.useCreateTenant; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "useCurrentTenant", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunk6TPAWAST_cjs.useCurrentTenant; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "useTenantModules", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunk6TPAWAST_cjs.useTenantModules; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "useUpdateCurrentTenant", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunk6TPAWAST_cjs.useUpdateCurrentTenant; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "useUpsertAttendanceShifts", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunk6TPAWAST_cjs.useUpsertAttendanceShifts; }
|
|
66
66
|
});
|
|
67
67
|
//# sourceMappingURL=index.cjs.map
|
|
68
68
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { createTenant, getAttendanceShift, getCurrentTenant, getTenantModules, listAttendanceShifts, updateCurrentTenant, upsertAttendanceShifts, useAttendanceShift, useAttendanceShifts, useCreateTenant, useCurrentTenant, useTenantModules, useUpdateCurrentTenant, useUpsertAttendanceShifts } from '../../chunk-
|
|
1
|
+
export { createTenant, getAttendanceShift, getCurrentTenant, getTenantModules, listAttendanceShifts, updateCurrentTenant, upsertAttendanceShifts, useAttendanceShift, useAttendanceShifts, useCreateTenant, useCurrentTenant, useTenantModules, useUpdateCurrentTenant, useUpsertAttendanceShifts } from '../../chunk-WMH2DW3N.js';
|
|
2
2
|
import '../../chunk-MRFGUSN2.js';
|
|
3
3
|
import '../../chunk-6JGO2CUT.js';
|
|
4
4
|
import '../../chunk-GRXFSXG5.js';
|
|
5
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-PDMQWMZM.js';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkDBKYIIPQ_cjs = require('../../chunk-DBKYIIPQ.cjs');
|
|
4
4
|
require('../../chunk-QJSOSQ7M.cjs');
|
|
5
5
|
require('../../chunk-NGFFI4XQ.cjs');
|
|
6
6
|
require('../../chunk-PPK3HQOY.cjs');
|
|
7
|
-
require('../../chunk-
|
|
7
|
+
require('../../chunk-N7CHJ3EM.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "assignUserRoles", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkDBKYIIPQ_cjs.assignUserRoles; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "createTeacher", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkDBKYIIPQ_cjs.createTeacher; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "getTeacher", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkDBKYIIPQ_cjs.getTeacher; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "listRoles", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkDBKYIIPQ_cjs.listRoles; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "listTeachers", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkDBKYIIPQ_cjs.listTeachers; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "updateTeacher", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkDBKYIIPQ_cjs.updateTeacher; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "useAssignUserRoles", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkDBKYIIPQ_cjs.useAssignUserRoles; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "useCreateTeacher", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkDBKYIIPQ_cjs.useCreateTeacher; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "useRoles", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkDBKYIIPQ_cjs.useRoles; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "useTeacher", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkDBKYIIPQ_cjs.useTeacher; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "useTeachers", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkDBKYIIPQ_cjs.useTeachers; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "useUpdateTeacher", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkDBKYIIPQ_cjs.useUpdateTeacher; }
|
|
58
58
|
});
|
|
59
59
|
//# sourceMappingURL=index.cjs.map
|
|
60
60
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { assignUserRoles, createTeacher, getTeacher, listRoles, listTeachers, updateTeacher, useAssignUserRoles, useCreateTeacher, useRoles, useTeacher, useTeachers, useUpdateTeacher } from '../../chunk-
|
|
1
|
+
export { assignUserRoles, createTeacher, getTeacher, listRoles, listTeachers, updateTeacher, useAssignUserRoles, useCreateTeacher, useRoles, useTeacher, useTeachers, useUpdateTeacher } from '../../chunk-LNGJA2UL.js';
|
|
2
2
|
import '../../chunk-MRFGUSN2.js';
|
|
3
3
|
import '../../chunk-6JGO2CUT.js';
|
|
4
4
|
import '../../chunk-GRXFSXG5.js';
|
|
5
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-PDMQWMZM.js';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
7
7
|
//# sourceMappingURL=index.js.map
|