@sekolaos/shared-api 1.3.2 → 1.4.1
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-2YBLKPOL.js +213 -0
- package/dist/chunk-2YBLKPOL.js.map +1 -0
- package/dist/chunk-4I2DP4CT.cjs +244 -0
- package/dist/chunk-4I2DP4CT.cjs.map +1 -0
- package/dist/{chunk-ZPEEFUEC.cjs → chunk-4LZJ36WZ.cjs} +4 -4
- package/dist/{chunk-ZPEEFUEC.cjs.map → chunk-4LZJ36WZ.cjs.map} +1 -1
- package/dist/{chunk-KB4TZTAC.cjs → chunk-4UJJALG5.cjs} +15 -17
- package/dist/chunk-4UJJALG5.cjs.map +1 -0
- package/dist/{chunk-U7YG2GA7.js → chunk-55WQN2DX.js} +3 -3
- package/dist/{chunk-U7YG2GA7.js.map → chunk-55WQN2DX.js.map} +1 -1
- package/dist/{chunk-XNH67ORL.js → chunk-7GCYXFMU.js} +16 -4
- package/dist/chunk-7GCYXFMU.js.map +1 -0
- package/dist/{chunk-FVPR2MOB.js → chunk-B2BMTZUU.js} +3 -3
- package/dist/{chunk-FVPR2MOB.js.map → chunk-B2BMTZUU.js.map} +1 -1
- package/dist/{chunk-NPR4GLFZ.js → chunk-BKRQIZIV.js} +3 -3
- package/dist/{chunk-NPR4GLFZ.js.map → chunk-BKRQIZIV.js.map} +1 -1
- package/dist/{chunk-PQFTPOP4.js → chunk-CARJ6QAB.js} +3 -3
- package/dist/{chunk-PQFTPOP4.js.map → chunk-CARJ6QAB.js.map} +1 -1
- package/dist/{chunk-Y4YURM53.cjs → chunk-DSGF264Y.cjs} +12 -12
- package/dist/{chunk-Y4YURM53.cjs.map → chunk-DSGF264Y.cjs.map} +1 -1
- package/dist/{chunk-LS4ZQRFS.cjs → chunk-EXEAVSTX.cjs} +11 -11
- package/dist/{chunk-LS4ZQRFS.cjs.map → chunk-EXEAVSTX.cjs.map} +1 -1
- package/dist/{chunk-BBJBCD2K.cjs → chunk-IWV6SOVN.cjs} +6 -6
- package/dist/{chunk-BBJBCD2K.cjs.map → chunk-IWV6SOVN.cjs.map} +1 -1
- package/dist/{chunk-N4OBLYCQ.cjs → chunk-IXMKB5VH.cjs} +6 -6
- package/dist/{chunk-N4OBLYCQ.cjs.map → chunk-IXMKB5VH.cjs.map} +1 -1
- package/dist/{chunk-KLRABMYU.js → chunk-KPGOAAOU.js} +3 -3
- package/dist/{chunk-KLRABMYU.js.map → chunk-KPGOAAOU.js.map} +1 -1
- package/dist/{chunk-23XAR4OH.cjs → chunk-N6Y2VQWI.cjs} +9 -9
- package/dist/{chunk-23XAR4OH.cjs.map → chunk-N6Y2VQWI.cjs.map} +1 -1
- package/dist/chunk-NGEJP5ON.cjs +39 -0
- package/dist/chunk-NGEJP5ON.cjs.map +1 -0
- package/dist/{chunk-HISL2IF2.cjs → chunk-NUKJPRPS.cjs} +17 -3
- package/dist/chunk-NUKJPRPS.cjs.map +1 -0
- package/dist/{chunk-SBBVQ3Z2.cjs → chunk-PDJ6OU3X.cjs} +5 -5
- package/dist/{chunk-SBBVQ3Z2.cjs.map → chunk-PDJ6OU3X.cjs.map} +1 -1
- package/dist/{chunk-ROK2DEVT.js → chunk-Q4UVXJMH.js} +3 -3
- package/dist/{chunk-ROK2DEVT.js.map → chunk-Q4UVXJMH.js.map} +1 -1
- package/dist/{chunk-DATSHIPR.js → chunk-R2S5EWDS.js} +3 -3
- package/dist/{chunk-DATSHIPR.js.map → chunk-R2S5EWDS.js.map} +1 -1
- package/dist/{chunk-RDW4IZWK.js → chunk-RGA4HK7T.js} +3 -3
- package/dist/{chunk-RDW4IZWK.js.map → chunk-RGA4HK7T.js.map} +1 -1
- package/dist/{chunk-CSEMYBBZ.js → chunk-TSMUTMIE.js} +9 -11
- package/dist/chunk-TSMUTMIE.js.map +1 -0
- package/dist/{chunk-AMKVNGY4.cjs → chunk-UJN47JNP.cjs} +11 -11
- package/dist/{chunk-AMKVNGY4.cjs.map → chunk-UJN47JNP.cjs.map} +1 -1
- package/dist/{chunk-EM5HIZFG.cjs → chunk-V7QGZZXE.cjs} +8 -8
- package/dist/{chunk-EM5HIZFG.cjs.map → chunk-V7QGZZXE.cjs.map} +1 -1
- package/dist/{chunk-NCENQB6W.js → chunk-WFDOYOBG.js} +3 -3
- package/dist/{chunk-NCENQB6W.js.map → chunk-WFDOYOBG.js.map} +1 -1
- package/dist/chunk-YJOKPUPT.js +34 -0
- package/dist/chunk-YJOKPUPT.js.map +1 -0
- package/dist/index.cjs +254 -165
- package/dist/index.d.cts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +14 -13
- package/dist/keys/index.cjs +21 -13
- package/dist/keys/index.d.cts +14 -1
- package/dist/keys/index.d.ts +14 -1
- 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 +80 -16
- package/dist/modules/attendance/index.d.cts +138 -4
- package/dist/modules/attendance/index.d.ts +138 -4
- package/dist/modules/attendance/index.js +2 -2
- package/dist/modules/auth/index.cjs +18 -18
- package/dist/modules/auth/index.js +2 -2
- package/dist/modules/classroom/index.cjs +14 -14
- 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/roles/index.cjs +29 -0
- package/dist/modules/roles/index.cjs.map +1 -0
- package/dist/modules/roles/index.d.cts +39 -0
- package/dist/modules/roles/index.d.ts +39 -0
- package/dist/modules/roles/index.js +8 -0
- package/dist/modules/roles/index.js.map +1 -0
- package/dist/modules/student/index.cjs +18 -18
- 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.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.d.cts +10 -20
- package/dist/modules/user/index.d.ts +10 -20
- package/dist/modules/user/index.js +2 -2
- package/package.json +7 -2
- package/dist/chunk-CSEMYBBZ.js.map +0 -1
- package/dist/chunk-HISL2IF2.cjs.map +0 -1
- package/dist/chunk-ID3UGFZZ.js +0 -102
- package/dist/chunk-ID3UGFZZ.js.map +0 -1
- package/dist/chunk-JVX37TC5.cjs +0 -117
- package/dist/chunk-JVX37TC5.cjs.map +0 -1
- package/dist/chunk-KB4TZTAC.cjs.map +0 -1
- package/dist/chunk-XNH67ORL.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
+
import { M as MutationOptionsCustom, Q as QueryOptionsWithoutKey, S as SekolaosApiError } from '../../types-BxV0BtVp.cjs';
|
|
3
|
+
import { AssignUserRolesRequest, SchoolRole } from '@sekolaos/shared-schema';
|
|
4
|
+
export { AssignUserRolesRequest, SchoolRole } from '@sekolaos/shared-schema';
|
|
5
|
+
import 'axios';
|
|
6
|
+
|
|
7
|
+
declare function getRoles(): Promise<SchoolRole[]>;
|
|
8
|
+
/** `PUT /api/v1/users/:id/roles` — ganti seluruh peran pengguna pada tahun ajaran. */
|
|
9
|
+
declare function assignUserRoles(userId: string, payload: AssignUserRolesRequest): Promise<{
|
|
10
|
+
userId: string;
|
|
11
|
+
roleIds: string[];
|
|
12
|
+
academicYearId: string;
|
|
13
|
+
}>;
|
|
14
|
+
declare function useRolesQuery(options?: QueryOptionsWithoutKey<SchoolRole[]>): _tanstack_react_query.UseQueryResult<{
|
|
15
|
+
code: "SCHOOL_ADMIN" | "OPERATOR_MASTER" | "DUTY_TEACHER" | "HOMEROOM_TEACHER" | "TEACHER" | "STAFF";
|
|
16
|
+
id: string;
|
|
17
|
+
tenantId: string;
|
|
18
|
+
name: string;
|
|
19
|
+
permissions: Record<string, string[]>;
|
|
20
|
+
isSystemRole: boolean;
|
|
21
|
+
description?: string | null | undefined;
|
|
22
|
+
}[], SekolaosApiError>;
|
|
23
|
+
declare function useAssignUserRolesMutation(options?: MutationOptionsCustom<{
|
|
24
|
+
userId: string;
|
|
25
|
+
roleIds: string[];
|
|
26
|
+
academicYearId: string;
|
|
27
|
+
}, {
|
|
28
|
+
userId: string;
|
|
29
|
+
payload: AssignUserRolesRequest;
|
|
30
|
+
}>): _tanstack_react_query.UseMutationResult<{
|
|
31
|
+
userId: string;
|
|
32
|
+
roleIds: string[];
|
|
33
|
+
academicYearId: string;
|
|
34
|
+
}, Error, {
|
|
35
|
+
userId: string;
|
|
36
|
+
payload: AssignUserRolesRequest;
|
|
37
|
+
}, unknown>;
|
|
38
|
+
|
|
39
|
+
export { assignUserRoles, getRoles, useAssignUserRolesMutation, useRolesQuery };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
+
import { M as MutationOptionsCustom, Q as QueryOptionsWithoutKey, S as SekolaosApiError } from '../../types-BxV0BtVp.js';
|
|
3
|
+
import { AssignUserRolesRequest, SchoolRole } from '@sekolaos/shared-schema';
|
|
4
|
+
export { AssignUserRolesRequest, SchoolRole } from '@sekolaos/shared-schema';
|
|
5
|
+
import 'axios';
|
|
6
|
+
|
|
7
|
+
declare function getRoles(): Promise<SchoolRole[]>;
|
|
8
|
+
/** `PUT /api/v1/users/:id/roles` — ganti seluruh peran pengguna pada tahun ajaran. */
|
|
9
|
+
declare function assignUserRoles(userId: string, payload: AssignUserRolesRequest): Promise<{
|
|
10
|
+
userId: string;
|
|
11
|
+
roleIds: string[];
|
|
12
|
+
academicYearId: string;
|
|
13
|
+
}>;
|
|
14
|
+
declare function useRolesQuery(options?: QueryOptionsWithoutKey<SchoolRole[]>): _tanstack_react_query.UseQueryResult<{
|
|
15
|
+
code: "SCHOOL_ADMIN" | "OPERATOR_MASTER" | "DUTY_TEACHER" | "HOMEROOM_TEACHER" | "TEACHER" | "STAFF";
|
|
16
|
+
id: string;
|
|
17
|
+
tenantId: string;
|
|
18
|
+
name: string;
|
|
19
|
+
permissions: Record<string, string[]>;
|
|
20
|
+
isSystemRole: boolean;
|
|
21
|
+
description?: string | null | undefined;
|
|
22
|
+
}[], SekolaosApiError>;
|
|
23
|
+
declare function useAssignUserRolesMutation(options?: MutationOptionsCustom<{
|
|
24
|
+
userId: string;
|
|
25
|
+
roleIds: string[];
|
|
26
|
+
academicYearId: string;
|
|
27
|
+
}, {
|
|
28
|
+
userId: string;
|
|
29
|
+
payload: AssignUserRolesRequest;
|
|
30
|
+
}>): _tanstack_react_query.UseMutationResult<{
|
|
31
|
+
userId: string;
|
|
32
|
+
roleIds: string[];
|
|
33
|
+
academicYearId: string;
|
|
34
|
+
}, Error, {
|
|
35
|
+
userId: string;
|
|
36
|
+
payload: AssignUserRolesRequest;
|
|
37
|
+
}, unknown>;
|
|
38
|
+
|
|
39
|
+
export { assignUserRoles, getRoles, useAssignUserRolesMutation, useRolesQuery };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { assignUserRoles, getRoles, useAssignUserRolesMutation, useRolesQuery } from '../../chunk-YJOKPUPT.js';
|
|
2
|
+
import '../../chunk-Q5ZX6TKB.js';
|
|
3
|
+
import '../../chunk-6JGO2CUT.js';
|
|
4
|
+
import '../../chunk-GRXFSXG5.js';
|
|
5
|
+
import '../../chunk-7GCYXFMU.js';
|
|
6
|
+
import '../../chunk-H3CE34TG.js';
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -1,77 +1,77 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkDSGF264Y_cjs = require('../../chunk-DSGF264Y.cjs');
|
|
4
4
|
require('../../chunk-3TOBH3YY.cjs');
|
|
5
5
|
require('../../chunk-NGFFI4XQ.cjs');
|
|
6
6
|
require('../../chunk-PPK3HQOY.cjs');
|
|
7
|
-
require('../../chunk-
|
|
7
|
+
require('../../chunk-NUKJPRPS.cjs');
|
|
8
8
|
require('../../chunk-5KSKHZWB.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "bulkImportStudents", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkDSGF264Y_cjs.bulkImportStudents; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "createStudent", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkDSGF264Y_cjs.createStudent; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "deleteStudent", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkDSGF264Y_cjs.deleteStudent; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "getStudent", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkDSGF264Y_cjs.getStudent; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "getStudentKioskCache", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkDSGF264Y_cjs.getStudentKioskCache; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "getStudentQrPayload", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkDSGF264Y_cjs.getStudentQrPayload; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "listStudents", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkDSGF264Y_cjs.listStudents; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "updateStudent", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkDSGF264Y_cjs.updateStudent; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "useBulkImportStudents", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkDSGF264Y_cjs.useBulkImportStudents; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "useCreateStudent", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkDSGF264Y_cjs.useCreateStudent; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "useDeleteStudent", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkDSGF264Y_cjs.useDeleteStudent; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "useStudent", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkDSGF264Y_cjs.useStudent; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "useStudentKioskCache", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkDSGF264Y_cjs.useStudentKioskCache; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "useStudentQrCode", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkDSGF264Y_cjs.useStudentQrCode; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "useStudents", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkDSGF264Y_cjs.useStudents; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "useUpdateStudent", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkDSGF264Y_cjs.useUpdateStudent; }
|
|
75
75
|
});
|
|
76
76
|
//# sourceMappingURL=index.cjs.map
|
|
77
77
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
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-WFDOYOBG.js';
|
|
2
2
|
import '../../chunk-Q5ZX6TKB.js';
|
|
3
3
|
import '../../chunk-6JGO2CUT.js';
|
|
4
4
|
import '../../chunk-GRXFSXG5.js';
|
|
5
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-7GCYXFMU.js';
|
|
6
6
|
import '../../chunk-H3CE34TG.js';
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkIXMKB5VH_cjs = require('../../chunk-IXMKB5VH.cjs');
|
|
4
4
|
require('../../chunk-3TOBH3YY.cjs');
|
|
5
5
|
require('../../chunk-NGFFI4XQ.cjs');
|
|
6
6
|
require('../../chunk-PPK3HQOY.cjs');
|
|
7
|
-
require('../../chunk-
|
|
7
|
+
require('../../chunk-NUKJPRPS.cjs');
|
|
8
8
|
require('../../chunk-5KSKHZWB.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "createSubject", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkIXMKB5VH_cjs.createSubject; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "listSubjects", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkIXMKB5VH_cjs.listSubjects; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "updateSubject", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkIXMKB5VH_cjs.updateSubject; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "useCreateSubject", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkIXMKB5VH_cjs.useCreateSubject; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "useSubjects", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkIXMKB5VH_cjs.useSubjects; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "useUpdateSubject", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkIXMKB5VH_cjs.useUpdateSubject; }
|
|
35
35
|
});
|
|
36
36
|
//# sourceMappingURL=index.cjs.map
|
|
37
37
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { createSubject, listSubjects, updateSubject, useCreateSubject, useSubjects, useUpdateSubject } from '../../chunk-
|
|
1
|
+
export { createSubject, listSubjects, updateSubject, useCreateSubject, useSubjects, useUpdateSubject } from '../../chunk-CARJ6QAB.js';
|
|
2
2
|
import '../../chunk-Q5ZX6TKB.js';
|
|
3
3
|
import '../../chunk-6JGO2CUT.js';
|
|
4
4
|
import '../../chunk-GRXFSXG5.js';
|
|
5
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-7GCYXFMU.js';
|
|
6
6
|
import '../../chunk-H3CE34TG.js';
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk4LZJ36WZ_cjs = require('../../chunk-4LZJ36WZ.cjs');
|
|
4
4
|
require('../../chunk-3TOBH3YY.cjs');
|
|
5
5
|
require('../../chunk-NGFFI4XQ.cjs');
|
|
6
6
|
require('../../chunk-PPK3HQOY.cjs');
|
|
7
|
-
require('../../chunk-
|
|
7
|
+
require('../../chunk-NUKJPRPS.cjs');
|
|
8
8
|
require('../../chunk-5KSKHZWB.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "getHealth", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunk4LZJ36WZ_cjs.getHealth; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "useHealth", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunk4LZJ36WZ_cjs.useHealth; }
|
|
19
19
|
});
|
|
20
20
|
//# sourceMappingURL=index.cjs.map
|
|
21
21
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { getHealth, useHealth } from '../../chunk-
|
|
1
|
+
export { getHealth, useHealth } from '../../chunk-55WQN2DX.js';
|
|
2
2
|
import '../../chunk-Q5ZX6TKB.js';
|
|
3
3
|
import '../../chunk-6JGO2CUT.js';
|
|
4
4
|
import '../../chunk-GRXFSXG5.js';
|
|
5
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-7GCYXFMU.js';
|
|
6
6
|
import '../../chunk-H3CE34TG.js';
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,61 +1,61 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkN6Y2VQWI_cjs = require('../../chunk-N6Y2VQWI.cjs');
|
|
4
4
|
require('../../chunk-3TOBH3YY.cjs');
|
|
5
5
|
require('../../chunk-NGFFI4XQ.cjs');
|
|
6
6
|
require('../../chunk-PPK3HQOY.cjs');
|
|
7
|
-
require('../../chunk-
|
|
7
|
+
require('../../chunk-NUKJPRPS.cjs');
|
|
8
8
|
require('../../chunk-5KSKHZWB.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "batchCreateTeachingSchedules", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkN6Y2VQWI_cjs.batchCreateTeachingSchedules; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "checkScheduleConflict", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkN6Y2VQWI_cjs.checkScheduleConflict; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "copyRoster", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkN6Y2VQWI_cjs.copyRoster; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "createTeachingSchedule", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkN6Y2VQWI_cjs.createTeachingSchedule; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "listTeachingSchedules", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkN6Y2VQWI_cjs.listTeachingSchedules; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "updateTeachingSchedule", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkN6Y2VQWI_cjs.updateTeachingSchedule; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "useBatchCreateTeachingSchedules", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkN6Y2VQWI_cjs.useBatchCreateTeachingSchedules; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "useCopyRoster", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkN6Y2VQWI_cjs.useCopyRoster; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "useCreateTeachingSchedule", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkN6Y2VQWI_cjs.useCreateTeachingSchedule; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "useScheduleConflict", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkN6Y2VQWI_cjs.useScheduleConflict; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "useTeachingSchedules", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkN6Y2VQWI_cjs.useTeachingSchedules; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "useUpdateTeachingSchedule", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkN6Y2VQWI_cjs.useUpdateTeachingSchedule; }
|
|
59
59
|
});
|
|
60
60
|
//# sourceMappingURL=index.cjs.map
|
|
61
61
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
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-RGA4HK7T.js';
|
|
2
2
|
import '../../chunk-Q5ZX6TKB.js';
|
|
3
3
|
import '../../chunk-6JGO2CUT.js';
|
|
4
4
|
import '../../chunk-GRXFSXG5.js';
|
|
5
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-7GCYXFMU.js';
|
|
6
6
|
import '../../chunk-H3CE34TG.js';
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,69 +1,69 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkEXEAVSTX_cjs = require('../../chunk-EXEAVSTX.cjs');
|
|
4
4
|
require('../../chunk-3TOBH3YY.cjs');
|
|
5
5
|
require('../../chunk-NGFFI4XQ.cjs');
|
|
6
6
|
require('../../chunk-PPK3HQOY.cjs');
|
|
7
|
-
require('../../chunk-
|
|
7
|
+
require('../../chunk-NUKJPRPS.cjs');
|
|
8
8
|
require('../../chunk-5KSKHZWB.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "createTenant", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkEXEAVSTX_cjs.createTenant; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "getAttendanceShift", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkEXEAVSTX_cjs.getAttendanceShift; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "getCurrentTenant", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkEXEAVSTX_cjs.getCurrentTenant; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "getTenantModules", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkEXEAVSTX_cjs.getTenantModules; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "listAttendanceShifts", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkEXEAVSTX_cjs.listAttendanceShifts; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "updateCurrentTenant", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkEXEAVSTX_cjs.updateCurrentTenant; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "upsertAttendanceShifts", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkEXEAVSTX_cjs.upsertAttendanceShifts; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "useAttendanceShift", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkEXEAVSTX_cjs.useAttendanceShift; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "useAttendanceShifts", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkEXEAVSTX_cjs.useAttendanceShifts; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "useCreateTenant", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkEXEAVSTX_cjs.useCreateTenant; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "useCurrentTenant", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkEXEAVSTX_cjs.useCurrentTenant; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "useTenantModules", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkEXEAVSTX_cjs.useTenantModules; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "useUpdateCurrentTenant", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkEXEAVSTX_cjs.useUpdateCurrentTenant; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "useUpsertAttendanceShifts", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkEXEAVSTX_cjs.useUpsertAttendanceShifts; }
|
|
67
67
|
});
|
|
68
68
|
//# sourceMappingURL=index.cjs.map
|
|
69
69
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
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-BKRQIZIV.js';
|
|
2
2
|
import '../../chunk-Q5ZX6TKB.js';
|
|
3
3
|
import '../../chunk-6JGO2CUT.js';
|
|
4
4
|
import '../../chunk-GRXFSXG5.js';
|
|
5
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-7GCYXFMU.js';
|
|
6
6
|
import '../../chunk-H3CE34TG.js';
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,61 +1,61 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk4UJJALG5_cjs = require('../../chunk-4UJJALG5.cjs');
|
|
4
4
|
require('../../chunk-3TOBH3YY.cjs');
|
|
5
5
|
require('../../chunk-NGFFI4XQ.cjs');
|
|
6
6
|
require('../../chunk-PPK3HQOY.cjs');
|
|
7
|
-
require('../../chunk-
|
|
7
|
+
require('../../chunk-NUKJPRPS.cjs');
|
|
8
8
|
require('../../chunk-5KSKHZWB.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "assignUserRoles", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunk4UJJALG5_cjs.assignUserRoles; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "createTeacher", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunk4UJJALG5_cjs.createTeacher; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "getTeacher", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunk4UJJALG5_cjs.getTeacher; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "listRoles", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunk4UJJALG5_cjs.listRoles; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "listTeachers", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunk4UJJALG5_cjs.listTeachers; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "updateTeacher", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunk4UJJALG5_cjs.updateTeacher; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "useAssignUserRoles", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunk4UJJALG5_cjs.useAssignUserRoles; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "useCreateTeacher", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunk4UJJALG5_cjs.useCreateTeacher; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "useRoles", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunk4UJJALG5_cjs.useRoles; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "useTeacher", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunk4UJJALG5_cjs.useTeacher; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "useTeachers", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunk4UJJALG5_cjs.useTeachers; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "useUpdateTeacher", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunk4UJJALG5_cjs.useUpdateTeacher; }
|
|
59
59
|
});
|
|
60
60
|
//# sourceMappingURL=index.cjs.map
|
|
61
61
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { AssignUserRolesRequest,
|
|
2
|
+
import { AssignUserRolesRequest, CreateTeacherInput, UserProfile, Role, TeacherListQuery, User, UpdateTeacherInput } from '@sekolaos/shared-schema';
|
|
3
3
|
export { AssignUserRolesRequest, CreateTeacherInput, Role, TeacherListQuery, UpdateTeacherInput, User, UserProfile } from '@sekolaos/shared-schema';
|
|
4
4
|
|
|
5
5
|
declare function listRoles(): Promise<Role[]>;
|
|
@@ -7,7 +7,11 @@ declare function listTeachers(params?: Partial<TeacherListQuery>): Promise<User[
|
|
|
7
7
|
declare function getTeacher(id: string): Promise<UserProfile>;
|
|
8
8
|
declare function createTeacher(payload: CreateTeacherInput): Promise<UserProfile>;
|
|
9
9
|
declare function updateTeacher(id: string, payload: UpdateTeacherInput): Promise<UserProfile>;
|
|
10
|
-
declare function assignUserRoles(payload: AssignUserRolesRequest): Promise<
|
|
10
|
+
declare function assignUserRoles(userId: string, payload: AssignUserRolesRequest): Promise<{
|
|
11
|
+
userId: string;
|
|
12
|
+
roleIds: string[];
|
|
13
|
+
academicYearId: string;
|
|
14
|
+
}>;
|
|
11
15
|
declare function useRoles(): _tanstack_react_query.UseQueryResult<{
|
|
12
16
|
id: string;
|
|
13
17
|
tenantId: string | null;
|
|
@@ -92,26 +96,12 @@ declare function useUpdateTeacher(): _tanstack_react_query.UseMutationResult<{
|
|
|
92
96
|
payload: UpdateTeacherInput;
|
|
93
97
|
}, unknown>;
|
|
94
98
|
declare function useAssignUserRoles(): _tanstack_react_query.UseMutationResult<{
|
|
95
|
-
id: string;
|
|
96
|
-
tenantId: string;
|
|
97
|
-
createdAt: string;
|
|
98
|
-
updatedAt: string;
|
|
99
|
-
isActive: boolean;
|
|
100
|
-
username: string;
|
|
101
|
-
email: string;
|
|
102
|
-
fullName: string;
|
|
103
|
-
nip?: string | null | undefined;
|
|
104
|
-
phoneNumber?: string | null | undefined;
|
|
105
|
-
roles?: {
|
|
106
|
-
permissions: Record<string, string[]>;
|
|
107
|
-
roleId: string;
|
|
108
|
-
roleName: string;
|
|
109
|
-
roleSlug: string;
|
|
110
|
-
}[] | undefined;
|
|
111
|
-
}, Error, {
|
|
112
99
|
userId: string;
|
|
113
|
-
academicYearId: string;
|
|
114
100
|
roleIds: string[];
|
|
101
|
+
academicYearId: string;
|
|
102
|
+
}, Error, {
|
|
103
|
+
userId: string;
|
|
104
|
+
payload: AssignUserRolesRequest;
|
|
115
105
|
}, unknown>;
|
|
116
106
|
|
|
117
107
|
export { assignUserRoles, createTeacher, getTeacher, listRoles, listTeachers, updateTeacher, useAssignUserRoles, useCreateTeacher, useRoles, useTeacher, useTeachers, useUpdateTeacher };
|