@sekolaos/shared-api 0.0.0-stage → 1.1.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-2FTS6JMO.cjs +66 -0
- package/dist/chunk-2FTS6JMO.cjs.map +1 -0
- package/dist/chunk-3RS57C3E.cjs +90 -0
- package/dist/chunk-3RS57C3E.cjs.map +1 -0
- package/dist/chunk-4ECXVAIQ.cjs +50 -0
- package/dist/chunk-4ECXVAIQ.cjs.map +1 -0
- package/dist/chunk-4T52ABA5.js +63 -0
- package/dist/chunk-4T52ABA5.js.map +1 -0
- package/dist/chunk-6JGO2CUT.js +52 -0
- package/dist/chunk-6JGO2CUT.js.map +1 -0
- package/dist/chunk-6UCHRWSL.js +43 -0
- package/dist/chunk-6UCHRWSL.js.map +1 -0
- package/dist/chunk-AGNLUQKT.cjs +52 -0
- package/dist/chunk-AGNLUQKT.cjs.map +1 -0
- package/dist/chunk-AGPMQFZM.js +3 -0
- package/dist/chunk-AGPMQFZM.js.map +1 -0
- package/dist/chunk-ALMSFTRM.js +66 -0
- package/dist/chunk-ALMSFTRM.js.map +1 -0
- package/dist/chunk-AOBHBJ2G.cjs +89 -0
- package/dist/chunk-AOBHBJ2G.cjs.map +1 -0
- package/dist/chunk-BOASJ3VG.cjs +31 -0
- package/dist/chunk-BOASJ3VG.cjs.map +1 -0
- package/dist/chunk-CBTITLRR.js +43 -0
- package/dist/chunk-CBTITLRR.js.map +1 -0
- package/dist/chunk-CP46K2UB.cjs +74 -0
- package/dist/chunk-CP46K2UB.cjs.map +1 -0
- package/dist/chunk-DMEWJ56D.js +76 -0
- package/dist/chunk-DMEWJ56D.js.map +1 -0
- package/dist/chunk-DNNK2DMM.cjs +119 -0
- package/dist/chunk-DNNK2DMM.cjs.map +1 -0
- package/dist/chunk-GKKJMRCL.js +75 -0
- package/dist/chunk-GKKJMRCL.js.map +1 -0
- package/dist/chunk-GRBBLS5Y.js +77 -0
- package/dist/chunk-GRBBLS5Y.js.map +1 -0
- package/dist/chunk-GRXFSXG5.js +124 -0
- package/dist/chunk-GRXFSXG5.js.map +1 -0
- package/dist/chunk-GUJVCKEN.js +102 -0
- package/dist/chunk-GUJVCKEN.js.map +1 -0
- package/dist/chunk-LA7MRXWR.js +77 -0
- package/dist/chunk-LA7MRXWR.js.map +1 -0
- package/dist/chunk-MRFGUSN2.js +20 -0
- package/dist/chunk-MRFGUSN2.js.map +1 -0
- package/dist/chunk-NBVPN4KL.cjs +23 -0
- package/dist/chunk-NBVPN4KL.cjs.map +1 -0
- package/dist/chunk-NGFFI4XQ.cjs +61 -0
- package/dist/chunk-NGFFI4XQ.cjs.map +1 -0
- package/dist/chunk-OKSRSOYJ.cjs +88 -0
- package/dist/chunk-OKSRSOYJ.cjs.map +1 -0
- package/dist/chunk-PPK3HQOY.cjs +134 -0
- package/dist/chunk-PPK3HQOY.cjs.map +1 -0
- package/dist/chunk-QJSOSQ7M.cjs +23 -0
- package/dist/chunk-QJSOSQ7M.cjs.map +1 -0
- package/dist/chunk-R37QQTQS.cjs +64 -0
- package/dist/chunk-R37QQTQS.cjs.map +1 -0
- package/dist/chunk-R7ACSDOA.cjs +114 -0
- package/dist/chunk-R7ACSDOA.cjs.map +1 -0
- package/dist/chunk-S6QFHKCE.js +99 -0
- package/dist/chunk-S6QFHKCE.js.map +1 -0
- package/dist/chunk-TSLEYQKD.cjs +92 -0
- package/dist/chunk-TSLEYQKD.cjs.map +1 -0
- package/dist/chunk-WF63F6RJ.cjs +4 -0
- package/dist/chunk-WF63F6RJ.cjs.map +1 -0
- package/dist/chunk-XU5UEIBL.js +43 -0
- package/dist/chunk-XU5UEIBL.js.map +1 -0
- package/dist/chunk-XVG5Z6B5.cjs +79 -0
- package/dist/chunk-XVG5Z6B5.cjs.map +1 -0
- package/dist/chunk-YA2KONBB.js +20 -0
- package/dist/chunk-YA2KONBB.js.map +1 -0
- package/dist/chunk-YK7QFPBF.js +55 -0
- package/dist/chunk-YK7QFPBF.js.map +1 -0
- package/dist/chunk-YTF4Z7I4.js +26 -0
- package/dist/chunk-YTF4Z7I4.js.map +1 -0
- package/dist/client/index.cjs +62 -0
- package/dist/client/index.cjs.map +1 -0
- package/dist/client/index.d.cts +28 -0
- package/dist/client/index.d.ts +28 -0
- package/dist/client/index.js +5 -0
- package/dist/client/index.js.map +1 -0
- package/dist/index.cjs +620 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +39 -0
- package/dist/index.d.ts +39 -0
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -0
- package/dist/keys/index.cjs +56 -0
- package/dist/keys/index.cjs.map +1 -0
- package/dist/keys/index.d.cts +64 -0
- package/dist/keys/index.d.ts +64 -0
- package/dist/keys/index.js +3 -0
- package/dist/keys/index.js.map +1 -0
- package/dist/modules/academic/index.cjs +44 -0
- package/dist/modules/academic/index.cjs.map +1 -0
- package/dist/modules/academic/index.d.cts +54 -0
- package/dist/modules/academic/index.d.ts +54 -0
- package/dist/modules/academic/index.js +7 -0
- package/dist/modules/academic/index.js.map +1 -0
- package/dist/modules/attendance/index.cjs +68 -0
- package/dist/modules/attendance/index.cjs.map +1 -0
- package/dist/modules/attendance/index.d.cts +135 -0
- package/dist/modules/attendance/index.d.ts +135 -0
- package/dist/modules/attendance/index.js +7 -0
- package/dist/modules/attendance/index.js.map +1 -0
- package/dist/modules/auth/index.cjs +52 -0
- package/dist/modules/auth/index.cjs.map +1 -0
- package/dist/modules/auth/index.d.cts +44 -0
- package/dist/modules/auth/index.d.ts +44 -0
- package/dist/modules/auth/index.js +7 -0
- package/dist/modules/auth/index.js.map +1 -0
- package/dist/modules/classroom/index.cjs +60 -0
- package/dist/modules/classroom/index.cjs.map +1 -0
- package/dist/modules/classroom/index.d.cts +84 -0
- package/dist/modules/classroom/index.d.ts +84 -0
- package/dist/modules/classroom/index.js +7 -0
- package/dist/modules/classroom/index.js.map +1 -0
- package/dist/modules/lead/index.cjs +44 -0
- package/dist/modules/lead/index.cjs.map +1 -0
- package/dist/modules/lead/index.d.cts +104 -0
- package/dist/modules/lead/index.d.ts +104 -0
- package/dist/modules/lead/index.js +7 -0
- package/dist/modules/lead/index.js.map +1 -0
- package/dist/modules/student/index.cjs +76 -0
- package/dist/modules/student/index.cjs.map +1 -0
- package/dist/modules/student/index.d.cts +125 -0
- package/dist/modules/student/index.d.ts +125 -0
- package/dist/modules/student/index.js +7 -0
- package/dist/modules/student/index.js.map +1 -0
- package/dist/modules/subject/index.cjs +36 -0
- package/dist/modules/subject/index.cjs.map +1 -0
- package/dist/modules/subject/index.d.cts +40 -0
- package/dist/modules/subject/index.d.ts +40 -0
- package/dist/modules/subject/index.js +7 -0
- package/dist/modules/subject/index.js.map +1 -0
- package/dist/modules/system/index.cjs +20 -0
- package/dist/modules/system/index.cjs.map +1 -0
- package/dist/modules/system/index.d.cts +14 -0
- package/dist/modules/system/index.d.ts +14 -0
- package/dist/modules/system/index.js +7 -0
- package/dist/modules/system/index.js.map +1 -0
- package/dist/modules/teaching-schedule/index.cjs +60 -0
- package/dist/modules/teaching-schedule/index.cjs.map +1 -0
- package/dist/modules/teaching-schedule/index.d.cts +97 -0
- package/dist/modules/teaching-schedule/index.d.ts +97 -0
- package/dist/modules/teaching-schedule/index.js +7 -0
- package/dist/modules/teaching-schedule/index.js.map +1 -0
- package/dist/modules/tenant/index.cjs +68 -0
- package/dist/modules/tenant/index.cjs.map +1 -0
- package/dist/modules/tenant/index.d.cts +113 -0
- package/dist/modules/tenant/index.d.ts +113 -0
- package/dist/modules/tenant/index.js +7 -0
- package/dist/modules/tenant/index.js.map +1 -0
- package/dist/modules/upload/index.cjs +27 -0
- package/dist/modules/upload/index.cjs.map +1 -0
- package/dist/modules/upload/index.d.cts +18 -0
- package/dist/modules/upload/index.d.ts +18 -0
- package/dist/modules/upload/index.js +6 -0
- package/dist/modules/upload/index.js.map +1 -0
- package/dist/modules/user/index.cjs +60 -0
- package/dist/modules/user/index.cjs.map +1 -0
- package/dist/modules/user/index.d.cts +117 -0
- package/dist/modules/user/index.d.ts +117 -0
- package/dist/modules/user/index.js +7 -0
- package/dist/modules/user/index.js.map +1 -0
- package/dist/provider.cjs +17 -0
- package/dist/provider.cjs.map +1 -0
- package/dist/provider.d.cts +15 -0
- package/dist/provider.d.ts +15 -0
- package/dist/provider.js +4 -0
- package/dist/provider.js.map +1 -0
- package/dist/types-BxV0BtVp.d.cts +89 -0
- package/dist/types-BxV0BtVp.d.ts +89 -0
- package/package.json +138 -6
- package/README.md +0 -3
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
+
import { CreateSubjectInput, Subject, SubjectListQuery, UpdateSubjectInput } from '@sekolaos/shared-schema';
|
|
3
|
+
export { CreateSubjectInput, Subject, SubjectListQuery, UpdateSubjectInput } from '@sekolaos/shared-schema';
|
|
4
|
+
|
|
5
|
+
declare function listSubjects(params?: Partial<SubjectListQuery>): Promise<Subject[]>;
|
|
6
|
+
declare function createSubject(payload: CreateSubjectInput): Promise<Subject>;
|
|
7
|
+
declare function updateSubject(id: string, payload: UpdateSubjectInput): Promise<Subject>;
|
|
8
|
+
declare function useSubjects(params?: Partial<SubjectListQuery>): _tanstack_react_query.UseQueryResult<{
|
|
9
|
+
code: string;
|
|
10
|
+
id: string;
|
|
11
|
+
tenantId: string;
|
|
12
|
+
name: string;
|
|
13
|
+
isActive: boolean;
|
|
14
|
+
description?: string | null | undefined;
|
|
15
|
+
}[], Error>;
|
|
16
|
+
declare function useCreateSubject(): _tanstack_react_query.UseMutationResult<{
|
|
17
|
+
code: string;
|
|
18
|
+
id: string;
|
|
19
|
+
tenantId: string;
|
|
20
|
+
name: string;
|
|
21
|
+
isActive: boolean;
|
|
22
|
+
description?: string | null | undefined;
|
|
23
|
+
}, Error, {
|
|
24
|
+
code: string;
|
|
25
|
+
name: string;
|
|
26
|
+
description?: string | null | undefined;
|
|
27
|
+
}, unknown>;
|
|
28
|
+
declare function useUpdateSubject(): _tanstack_react_query.UseMutationResult<{
|
|
29
|
+
code: string;
|
|
30
|
+
id: string;
|
|
31
|
+
tenantId: string;
|
|
32
|
+
name: string;
|
|
33
|
+
isActive: boolean;
|
|
34
|
+
description?: string | null | undefined;
|
|
35
|
+
}, Error, {
|
|
36
|
+
id: string;
|
|
37
|
+
payload: UpdateSubjectInput;
|
|
38
|
+
}, unknown>;
|
|
39
|
+
|
|
40
|
+
export { createSubject, listSubjects, updateSubject, useCreateSubject, useSubjects, useUpdateSubject };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { createSubject, listSubjects, updateSubject, useCreateSubject, useSubjects, useUpdateSubject } from '../../chunk-XU5UEIBL.js';
|
|
2
|
+
import '../../chunk-MRFGUSN2.js';
|
|
3
|
+
import '../../chunk-6JGO2CUT.js';
|
|
4
|
+
import '../../chunk-GRXFSXG5.js';
|
|
5
|
+
import '../../chunk-ALMSFTRM.js';
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkNBVPN4KL_cjs = require('../../chunk-NBVPN4KL.cjs');
|
|
4
|
+
require('../../chunk-QJSOSQ7M.cjs');
|
|
5
|
+
require('../../chunk-NGFFI4XQ.cjs');
|
|
6
|
+
require('../../chunk-PPK3HQOY.cjs');
|
|
7
|
+
require('../../chunk-XVG5Z6B5.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
Object.defineProperty(exports, "getHealth", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkNBVPN4KL_cjs.getHealth; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "useHealth", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkNBVPN4KL_cjs.useHealth; }
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=index.cjs.map
|
|
20
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
+
|
|
3
|
+
interface HealthCheckResult {
|
|
4
|
+
status: "ok" | "degraded" | "down";
|
|
5
|
+
uptime?: number;
|
|
6
|
+
timestamp?: string;
|
|
7
|
+
services?: Record<string, string>;
|
|
8
|
+
}
|
|
9
|
+
declare function getHealth(): Promise<HealthCheckResult>;
|
|
10
|
+
declare function useHealth(options?: {
|
|
11
|
+
enabled?: boolean;
|
|
12
|
+
}): _tanstack_react_query.UseQueryResult<HealthCheckResult, Error>;
|
|
13
|
+
|
|
14
|
+
export { type HealthCheckResult, getHealth, useHealth };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
+
|
|
3
|
+
interface HealthCheckResult {
|
|
4
|
+
status: "ok" | "degraded" | "down";
|
|
5
|
+
uptime?: number;
|
|
6
|
+
timestamp?: string;
|
|
7
|
+
services?: Record<string, string>;
|
|
8
|
+
}
|
|
9
|
+
declare function getHealth(): Promise<HealthCheckResult>;
|
|
10
|
+
declare function useHealth(options?: {
|
|
11
|
+
enabled?: boolean;
|
|
12
|
+
}): _tanstack_react_query.UseQueryResult<HealthCheckResult, Error>;
|
|
13
|
+
|
|
14
|
+
export { type HealthCheckResult, getHealth, useHealth };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { getHealth, useHealth } from '../../chunk-YA2KONBB.js';
|
|
2
|
+
import '../../chunk-MRFGUSN2.js';
|
|
3
|
+
import '../../chunk-6JGO2CUT.js';
|
|
4
|
+
import '../../chunk-GRXFSXG5.js';
|
|
5
|
+
import '../../chunk-ALMSFTRM.js';
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk3RS57C3E_cjs = require('../../chunk-3RS57C3E.cjs');
|
|
4
|
+
require('../../chunk-QJSOSQ7M.cjs');
|
|
5
|
+
require('../../chunk-NGFFI4XQ.cjs');
|
|
6
|
+
require('../../chunk-PPK3HQOY.cjs');
|
|
7
|
+
require('../../chunk-XVG5Z6B5.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
Object.defineProperty(exports, "batchCreateTeachingSchedules", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunk3RS57C3E_cjs.batchCreateTeachingSchedules; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "checkScheduleConflict", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunk3RS57C3E_cjs.checkScheduleConflict; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "copyRoster", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunk3RS57C3E_cjs.copyRoster; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "createTeachingSchedule", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return chunk3RS57C3E_cjs.createTeachingSchedule; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "listTeachingSchedules", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunk3RS57C3E_cjs.listTeachingSchedules; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "updateTeachingSchedule", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return chunk3RS57C3E_cjs.updateTeachingSchedule; }
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, "useBatchCreateTeachingSchedules", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () { return chunk3RS57C3E_cjs.useBatchCreateTeachingSchedules; }
|
|
38
|
+
});
|
|
39
|
+
Object.defineProperty(exports, "useCopyRoster", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function () { return chunk3RS57C3E_cjs.useCopyRoster; }
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(exports, "useCreateTeachingSchedule", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () { return chunk3RS57C3E_cjs.useCreateTeachingSchedule; }
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(exports, "useScheduleConflict", {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: function () { return chunk3RS57C3E_cjs.useScheduleConflict; }
|
|
50
|
+
});
|
|
51
|
+
Object.defineProperty(exports, "useTeachingSchedules", {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function () { return chunk3RS57C3E_cjs.useTeachingSchedules; }
|
|
54
|
+
});
|
|
55
|
+
Object.defineProperty(exports, "useUpdateTeachingSchedule", {
|
|
56
|
+
enumerable: true,
|
|
57
|
+
get: function () { return chunk3RS57C3E_cjs.useUpdateTeachingSchedule; }
|
|
58
|
+
});
|
|
59
|
+
//# sourceMappingURL=index.cjs.map
|
|
60
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
+
import { TeachingSchedule, BatchCreateTeachingScheduleInput, CheckScheduleConflictQuery, CopyRosterRequestInput, CreateTeachingScheduleInput, TeachingScheduleListQuery, UpdateTeachingScheduleInput } from '@sekolaos/shared-schema';
|
|
3
|
+
export { BatchCreateTeachingScheduleInput, CheckScheduleConflictQuery, CopyRosterRequestInput, CreateTeachingScheduleInput, TeachingSchedule, TeachingScheduleListQuery, UpdateTeachingScheduleInput } from '@sekolaos/shared-schema';
|
|
4
|
+
|
|
5
|
+
type ScheduleConflictType = "TEACHER" | "CLASSROOM";
|
|
6
|
+
interface ScheduleConflictResult {
|
|
7
|
+
hasConflict: boolean;
|
|
8
|
+
conflictType: ScheduleConflictType | null;
|
|
9
|
+
conflictingSchedule: TeachingSchedule | null;
|
|
10
|
+
}
|
|
11
|
+
interface AffectedRowsResult {
|
|
12
|
+
totalCreated: number;
|
|
13
|
+
}
|
|
14
|
+
declare function listTeachingSchedules(params?: TeachingScheduleListQuery): Promise<TeachingSchedule[]>;
|
|
15
|
+
declare function createTeachingSchedule(payload: CreateTeachingScheduleInput): Promise<TeachingSchedule>;
|
|
16
|
+
declare function updateTeachingSchedule(id: string, payload: UpdateTeachingScheduleInput): Promise<TeachingSchedule>;
|
|
17
|
+
declare function checkScheduleConflict(params: CheckScheduleConflictQuery): Promise<ScheduleConflictResult>;
|
|
18
|
+
declare function batchCreateTeachingSchedules(payload: BatchCreateTeachingScheduleInput): Promise<AffectedRowsResult>;
|
|
19
|
+
declare function copyRoster(payload: CopyRosterRequestInput): Promise<AffectedRowsResult>;
|
|
20
|
+
declare function useTeachingSchedules(params?: TeachingScheduleListQuery): _tanstack_react_query.UseQueryResult<{
|
|
21
|
+
id: string;
|
|
22
|
+
tenantId: string;
|
|
23
|
+
academicYearId: string;
|
|
24
|
+
classroomId: string;
|
|
25
|
+
teacherUserId: string;
|
|
26
|
+
subjectId: string;
|
|
27
|
+
dayOfWeek: "SENIN" | "SELASA" | "RABU" | "KAMIS" | "JUMAT" | "SABTU";
|
|
28
|
+
startTime: string;
|
|
29
|
+
endTime: string;
|
|
30
|
+
classroomName?: string | undefined;
|
|
31
|
+
teacherName?: string | undefined;
|
|
32
|
+
subjectName?: string | undefined;
|
|
33
|
+
periodNumber?: number | undefined;
|
|
34
|
+
}[], Error>;
|
|
35
|
+
declare function useScheduleConflict(params: CheckScheduleConflictQuery, enabled?: boolean): _tanstack_react_query.UseQueryResult<ScheduleConflictResult, Error>;
|
|
36
|
+
declare function useCreateTeachingSchedule(): _tanstack_react_query.UseMutationResult<{
|
|
37
|
+
id: string;
|
|
38
|
+
tenantId: string;
|
|
39
|
+
academicYearId: string;
|
|
40
|
+
classroomId: string;
|
|
41
|
+
teacherUserId: string;
|
|
42
|
+
subjectId: string;
|
|
43
|
+
dayOfWeek: "SENIN" | "SELASA" | "RABU" | "KAMIS" | "JUMAT" | "SABTU";
|
|
44
|
+
startTime: string;
|
|
45
|
+
endTime: string;
|
|
46
|
+
classroomName?: string | undefined;
|
|
47
|
+
teacherName?: string | undefined;
|
|
48
|
+
subjectName?: string | undefined;
|
|
49
|
+
periodNumber?: number | undefined;
|
|
50
|
+
}, Error, {
|
|
51
|
+
academicYearId: string;
|
|
52
|
+
classroomId: string;
|
|
53
|
+
teacherUserId: string;
|
|
54
|
+
subjectId: string;
|
|
55
|
+
dayOfWeek: "SENIN" | "SELASA" | "RABU" | "KAMIS" | "JUMAT" | "SABTU";
|
|
56
|
+
startTime: string;
|
|
57
|
+
endTime: string;
|
|
58
|
+
periodNumber?: number | undefined;
|
|
59
|
+
}, unknown>;
|
|
60
|
+
declare function useUpdateTeachingSchedule(): _tanstack_react_query.UseMutationResult<{
|
|
61
|
+
id: string;
|
|
62
|
+
tenantId: string;
|
|
63
|
+
academicYearId: string;
|
|
64
|
+
classroomId: string;
|
|
65
|
+
teacherUserId: string;
|
|
66
|
+
subjectId: string;
|
|
67
|
+
dayOfWeek: "SENIN" | "SELASA" | "RABU" | "KAMIS" | "JUMAT" | "SABTU";
|
|
68
|
+
startTime: string;
|
|
69
|
+
endTime: string;
|
|
70
|
+
classroomName?: string | undefined;
|
|
71
|
+
teacherName?: string | undefined;
|
|
72
|
+
subjectName?: string | undefined;
|
|
73
|
+
periodNumber?: number | undefined;
|
|
74
|
+
}, Error, {
|
|
75
|
+
id: string;
|
|
76
|
+
payload: UpdateTeachingScheduleInput;
|
|
77
|
+
}, unknown>;
|
|
78
|
+
declare function useBatchCreateTeachingSchedules(): _tanstack_react_query.UseMutationResult<AffectedRowsResult, Error, {
|
|
79
|
+
academicYearId: string;
|
|
80
|
+
classroomId: string;
|
|
81
|
+
teacherUserId: string;
|
|
82
|
+
subjectId: string;
|
|
83
|
+
dayOfWeek: "SENIN" | "SELASA" | "RABU" | "KAMIS" | "JUMAT" | "SABTU";
|
|
84
|
+
schedules: {
|
|
85
|
+
startTime: string;
|
|
86
|
+
endTime: string;
|
|
87
|
+
periodNumber: number;
|
|
88
|
+
}[];
|
|
89
|
+
}, unknown>;
|
|
90
|
+
declare function useCopyRoster(): _tanstack_react_query.UseMutationResult<AffectedRowsResult, Error, {
|
|
91
|
+
academicYearId: string;
|
|
92
|
+
sourceClassroomId: string;
|
|
93
|
+
targetClassroomId: string;
|
|
94
|
+
copyTeachers: boolean;
|
|
95
|
+
}, unknown>;
|
|
96
|
+
|
|
97
|
+
export { type AffectedRowsResult, type ScheduleConflictResult, type ScheduleConflictType, batchCreateTeachingSchedules, checkScheduleConflict, copyRoster, createTeachingSchedule, listTeachingSchedules, updateTeachingSchedule, useBatchCreateTeachingSchedules, useCopyRoster, useCreateTeachingSchedule, useScheduleConflict, useTeachingSchedules, useUpdateTeachingSchedule };
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
+
import { TeachingSchedule, BatchCreateTeachingScheduleInput, CheckScheduleConflictQuery, CopyRosterRequestInput, CreateTeachingScheduleInput, TeachingScheduleListQuery, UpdateTeachingScheduleInput } from '@sekolaos/shared-schema';
|
|
3
|
+
export { BatchCreateTeachingScheduleInput, CheckScheduleConflictQuery, CopyRosterRequestInput, CreateTeachingScheduleInput, TeachingSchedule, TeachingScheduleListQuery, UpdateTeachingScheduleInput } from '@sekolaos/shared-schema';
|
|
4
|
+
|
|
5
|
+
type ScheduleConflictType = "TEACHER" | "CLASSROOM";
|
|
6
|
+
interface ScheduleConflictResult {
|
|
7
|
+
hasConflict: boolean;
|
|
8
|
+
conflictType: ScheduleConflictType | null;
|
|
9
|
+
conflictingSchedule: TeachingSchedule | null;
|
|
10
|
+
}
|
|
11
|
+
interface AffectedRowsResult {
|
|
12
|
+
totalCreated: number;
|
|
13
|
+
}
|
|
14
|
+
declare function listTeachingSchedules(params?: TeachingScheduleListQuery): Promise<TeachingSchedule[]>;
|
|
15
|
+
declare function createTeachingSchedule(payload: CreateTeachingScheduleInput): Promise<TeachingSchedule>;
|
|
16
|
+
declare function updateTeachingSchedule(id: string, payload: UpdateTeachingScheduleInput): Promise<TeachingSchedule>;
|
|
17
|
+
declare function checkScheduleConflict(params: CheckScheduleConflictQuery): Promise<ScheduleConflictResult>;
|
|
18
|
+
declare function batchCreateTeachingSchedules(payload: BatchCreateTeachingScheduleInput): Promise<AffectedRowsResult>;
|
|
19
|
+
declare function copyRoster(payload: CopyRosterRequestInput): Promise<AffectedRowsResult>;
|
|
20
|
+
declare function useTeachingSchedules(params?: TeachingScheduleListQuery): _tanstack_react_query.UseQueryResult<{
|
|
21
|
+
id: string;
|
|
22
|
+
tenantId: string;
|
|
23
|
+
academicYearId: string;
|
|
24
|
+
classroomId: string;
|
|
25
|
+
teacherUserId: string;
|
|
26
|
+
subjectId: string;
|
|
27
|
+
dayOfWeek: "SENIN" | "SELASA" | "RABU" | "KAMIS" | "JUMAT" | "SABTU";
|
|
28
|
+
startTime: string;
|
|
29
|
+
endTime: string;
|
|
30
|
+
classroomName?: string | undefined;
|
|
31
|
+
teacherName?: string | undefined;
|
|
32
|
+
subjectName?: string | undefined;
|
|
33
|
+
periodNumber?: number | undefined;
|
|
34
|
+
}[], Error>;
|
|
35
|
+
declare function useScheduleConflict(params: CheckScheduleConflictQuery, enabled?: boolean): _tanstack_react_query.UseQueryResult<ScheduleConflictResult, Error>;
|
|
36
|
+
declare function useCreateTeachingSchedule(): _tanstack_react_query.UseMutationResult<{
|
|
37
|
+
id: string;
|
|
38
|
+
tenantId: string;
|
|
39
|
+
academicYearId: string;
|
|
40
|
+
classroomId: string;
|
|
41
|
+
teacherUserId: string;
|
|
42
|
+
subjectId: string;
|
|
43
|
+
dayOfWeek: "SENIN" | "SELASA" | "RABU" | "KAMIS" | "JUMAT" | "SABTU";
|
|
44
|
+
startTime: string;
|
|
45
|
+
endTime: string;
|
|
46
|
+
classroomName?: string | undefined;
|
|
47
|
+
teacherName?: string | undefined;
|
|
48
|
+
subjectName?: string | undefined;
|
|
49
|
+
periodNumber?: number | undefined;
|
|
50
|
+
}, Error, {
|
|
51
|
+
academicYearId: string;
|
|
52
|
+
classroomId: string;
|
|
53
|
+
teacherUserId: string;
|
|
54
|
+
subjectId: string;
|
|
55
|
+
dayOfWeek: "SENIN" | "SELASA" | "RABU" | "KAMIS" | "JUMAT" | "SABTU";
|
|
56
|
+
startTime: string;
|
|
57
|
+
endTime: string;
|
|
58
|
+
periodNumber?: number | undefined;
|
|
59
|
+
}, unknown>;
|
|
60
|
+
declare function useUpdateTeachingSchedule(): _tanstack_react_query.UseMutationResult<{
|
|
61
|
+
id: string;
|
|
62
|
+
tenantId: string;
|
|
63
|
+
academicYearId: string;
|
|
64
|
+
classroomId: string;
|
|
65
|
+
teacherUserId: string;
|
|
66
|
+
subjectId: string;
|
|
67
|
+
dayOfWeek: "SENIN" | "SELASA" | "RABU" | "KAMIS" | "JUMAT" | "SABTU";
|
|
68
|
+
startTime: string;
|
|
69
|
+
endTime: string;
|
|
70
|
+
classroomName?: string | undefined;
|
|
71
|
+
teacherName?: string | undefined;
|
|
72
|
+
subjectName?: string | undefined;
|
|
73
|
+
periodNumber?: number | undefined;
|
|
74
|
+
}, Error, {
|
|
75
|
+
id: string;
|
|
76
|
+
payload: UpdateTeachingScheduleInput;
|
|
77
|
+
}, unknown>;
|
|
78
|
+
declare function useBatchCreateTeachingSchedules(): _tanstack_react_query.UseMutationResult<AffectedRowsResult, Error, {
|
|
79
|
+
academicYearId: string;
|
|
80
|
+
classroomId: string;
|
|
81
|
+
teacherUserId: string;
|
|
82
|
+
subjectId: string;
|
|
83
|
+
dayOfWeek: "SENIN" | "SELASA" | "RABU" | "KAMIS" | "JUMAT" | "SABTU";
|
|
84
|
+
schedules: {
|
|
85
|
+
startTime: string;
|
|
86
|
+
endTime: string;
|
|
87
|
+
periodNumber: number;
|
|
88
|
+
}[];
|
|
89
|
+
}, unknown>;
|
|
90
|
+
declare function useCopyRoster(): _tanstack_react_query.UseMutationResult<AffectedRowsResult, Error, {
|
|
91
|
+
academicYearId: string;
|
|
92
|
+
sourceClassroomId: string;
|
|
93
|
+
targetClassroomId: string;
|
|
94
|
+
copyTeachers: boolean;
|
|
95
|
+
}, unknown>;
|
|
96
|
+
|
|
97
|
+
export { type AffectedRowsResult, type ScheduleConflictResult, type ScheduleConflictType, batchCreateTeachingSchedules, checkScheduleConflict, copyRoster, createTeachingSchedule, listTeachingSchedules, updateTeachingSchedule, useBatchCreateTeachingSchedules, useCopyRoster, useCreateTeachingSchedule, useScheduleConflict, useTeachingSchedules, useUpdateTeachingSchedule };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { batchCreateTeachingSchedules, checkScheduleConflict, copyRoster, createTeachingSchedule, listTeachingSchedules, updateTeachingSchedule, useBatchCreateTeachingSchedules, useCopyRoster, useCreateTeachingSchedule, useScheduleConflict, useTeachingSchedules, useUpdateTeachingSchedule } from '../../chunk-GRBBLS5Y.js';
|
|
2
|
+
import '../../chunk-MRFGUSN2.js';
|
|
3
|
+
import '../../chunk-6JGO2CUT.js';
|
|
4
|
+
import '../../chunk-GRXFSXG5.js';
|
|
5
|
+
import '../../chunk-ALMSFTRM.js';
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkTSLEYQKD_cjs = require('../../chunk-TSLEYQKD.cjs');
|
|
4
|
+
require('../../chunk-QJSOSQ7M.cjs');
|
|
5
|
+
require('../../chunk-NGFFI4XQ.cjs');
|
|
6
|
+
require('../../chunk-PPK3HQOY.cjs');
|
|
7
|
+
require('../../chunk-XVG5Z6B5.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
Object.defineProperty(exports, "createTenant", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkTSLEYQKD_cjs.createTenant; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "getAttendanceShift", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkTSLEYQKD_cjs.getAttendanceShift; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "getCurrentTenant", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunkTSLEYQKD_cjs.getCurrentTenant; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "getTenantModules", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return chunkTSLEYQKD_cjs.getTenantModules; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "listAttendanceShifts", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunkTSLEYQKD_cjs.listAttendanceShifts; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "updateCurrentTenant", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return chunkTSLEYQKD_cjs.updateCurrentTenant; }
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, "upsertAttendanceShifts", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () { return chunkTSLEYQKD_cjs.upsertAttendanceShifts; }
|
|
38
|
+
});
|
|
39
|
+
Object.defineProperty(exports, "useAttendanceShift", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function () { return chunkTSLEYQKD_cjs.useAttendanceShift; }
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(exports, "useAttendanceShifts", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () { return chunkTSLEYQKD_cjs.useAttendanceShifts; }
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(exports, "useCreateTenant", {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: function () { return chunkTSLEYQKD_cjs.useCreateTenant; }
|
|
50
|
+
});
|
|
51
|
+
Object.defineProperty(exports, "useCurrentTenant", {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function () { return chunkTSLEYQKD_cjs.useCurrentTenant; }
|
|
54
|
+
});
|
|
55
|
+
Object.defineProperty(exports, "useTenantModules", {
|
|
56
|
+
enumerable: true,
|
|
57
|
+
get: function () { return chunkTSLEYQKD_cjs.useTenantModules; }
|
|
58
|
+
});
|
|
59
|
+
Object.defineProperty(exports, "useUpdateCurrentTenant", {
|
|
60
|
+
enumerable: true,
|
|
61
|
+
get: function () { return chunkTSLEYQKD_cjs.useUpdateCurrentTenant; }
|
|
62
|
+
});
|
|
63
|
+
Object.defineProperty(exports, "useUpsertAttendanceShifts", {
|
|
64
|
+
enumerable: true,
|
|
65
|
+
get: function () { return chunkTSLEYQKD_cjs.useUpsertAttendanceShifts; }
|
|
66
|
+
});
|
|
67
|
+
//# sourceMappingURL=index.cjs.map
|
|
68
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
+
import { UpsertAttendanceShiftInput, CreateTenantInput, Tenant, ShiftTargetType, AttendanceShift, PortalModuleItem, UpdateTenantProfileInput } from '@sekolaos/shared-schema';
|
|
3
|
+
export { AttendanceShift, CreateTenantInput, PortalModuleItem, ShiftTargetType, Tenant, UpdateTenantProfileInput, UpsertAttendanceShiftInput } from '@sekolaos/shared-schema';
|
|
4
|
+
|
|
5
|
+
declare function getCurrentTenant(): Promise<Tenant>;
|
|
6
|
+
declare function getTenantModules(): Promise<PortalModuleItem[]>;
|
|
7
|
+
declare function updateCurrentTenant(payload: UpdateTenantProfileInput): Promise<Tenant>;
|
|
8
|
+
declare function listAttendanceShifts(params?: {
|
|
9
|
+
targetType?: ShiftTargetType;
|
|
10
|
+
}): Promise<AttendanceShift[]>;
|
|
11
|
+
declare function getAttendanceShift(targetType: ShiftTargetType): Promise<AttendanceShift>;
|
|
12
|
+
interface UpsertAttendanceShiftsPayload {
|
|
13
|
+
SISWA?: UpsertAttendanceShiftInput;
|
|
14
|
+
GURU?: UpsertAttendanceShiftInput;
|
|
15
|
+
}
|
|
16
|
+
declare function upsertAttendanceShifts(payload: UpsertAttendanceShiftsPayload): Promise<AttendanceShift[]>;
|
|
17
|
+
declare function createTenant(payload: CreateTenantInput): Promise<Tenant>;
|
|
18
|
+
declare function useCurrentTenant(): _tanstack_react_query.UseQueryResult<{
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
slug: string;
|
|
22
|
+
timezone: string;
|
|
23
|
+
createdAt: string;
|
|
24
|
+
updatedAt: string;
|
|
25
|
+
npsn?: string | null | undefined;
|
|
26
|
+
logoUrl?: string | null | undefined;
|
|
27
|
+
}, Error>;
|
|
28
|
+
declare function useTenantModules(): _tanstack_react_query.UseQueryResult<{
|
|
29
|
+
name: string;
|
|
30
|
+
isEnabled: boolean;
|
|
31
|
+
key: "MASTER" | "ATTENDANCE" | "FINANCE" | "ACADEMICS";
|
|
32
|
+
description: string;
|
|
33
|
+
icon: string;
|
|
34
|
+
url: string;
|
|
35
|
+
hasAccess: boolean;
|
|
36
|
+
expiresAt?: string | null | undefined;
|
|
37
|
+
}[], Error>;
|
|
38
|
+
declare function useAttendanceShifts(params?: {
|
|
39
|
+
targetType?: ShiftTargetType;
|
|
40
|
+
}): _tanstack_react_query.UseQueryResult<{
|
|
41
|
+
id: string;
|
|
42
|
+
tenantId: string;
|
|
43
|
+
targetType: "SISWA" | "GURU";
|
|
44
|
+
name: string;
|
|
45
|
+
checkInStart: string;
|
|
46
|
+
checkInEnd: string;
|
|
47
|
+
checkOutStart: string;
|
|
48
|
+
checkOutEnd: string;
|
|
49
|
+
lateToleranceMinutes?: number | undefined;
|
|
50
|
+
fridayCheckOutStart?: string | null | undefined;
|
|
51
|
+
fridayCheckOutEnd?: string | null | undefined;
|
|
52
|
+
}[], Error>;
|
|
53
|
+
declare function useAttendanceShift(targetType: ShiftTargetType): _tanstack_react_query.UseQueryResult<{
|
|
54
|
+
id: string;
|
|
55
|
+
tenantId: string;
|
|
56
|
+
targetType: "SISWA" | "GURU";
|
|
57
|
+
name: string;
|
|
58
|
+
checkInStart: string;
|
|
59
|
+
checkInEnd: string;
|
|
60
|
+
checkOutStart: string;
|
|
61
|
+
checkOutEnd: string;
|
|
62
|
+
lateToleranceMinutes?: number | undefined;
|
|
63
|
+
fridayCheckOutStart?: string | null | undefined;
|
|
64
|
+
fridayCheckOutEnd?: string | null | undefined;
|
|
65
|
+
}, Error>;
|
|
66
|
+
declare function useUpdateCurrentTenant(): _tanstack_react_query.UseMutationResult<{
|
|
67
|
+
id: string;
|
|
68
|
+
name: string;
|
|
69
|
+
slug: string;
|
|
70
|
+
timezone: string;
|
|
71
|
+
createdAt: string;
|
|
72
|
+
updatedAt: string;
|
|
73
|
+
npsn?: string | null | undefined;
|
|
74
|
+
logoUrl?: string | null | undefined;
|
|
75
|
+
}, Error, {
|
|
76
|
+
name?: string | undefined;
|
|
77
|
+
npsn?: string | null | undefined;
|
|
78
|
+
logoUrl?: string | null | undefined;
|
|
79
|
+
timezone?: string | undefined;
|
|
80
|
+
address?: string | null | undefined;
|
|
81
|
+
phone?: string | null | undefined;
|
|
82
|
+
}, unknown>;
|
|
83
|
+
declare function useUpsertAttendanceShifts(): _tanstack_react_query.UseMutationResult<{
|
|
84
|
+
id: string;
|
|
85
|
+
tenantId: string;
|
|
86
|
+
targetType: "SISWA" | "GURU";
|
|
87
|
+
name: string;
|
|
88
|
+
checkInStart: string;
|
|
89
|
+
checkInEnd: string;
|
|
90
|
+
checkOutStart: string;
|
|
91
|
+
checkOutEnd: string;
|
|
92
|
+
lateToleranceMinutes?: number | undefined;
|
|
93
|
+
fridayCheckOutStart?: string | null | undefined;
|
|
94
|
+
fridayCheckOutEnd?: string | null | undefined;
|
|
95
|
+
}[], Error, UpsertAttendanceShiftsPayload, unknown>;
|
|
96
|
+
declare function useCreateTenant(): _tanstack_react_query.UseMutationResult<{
|
|
97
|
+
id: string;
|
|
98
|
+
name: string;
|
|
99
|
+
slug: string;
|
|
100
|
+
timezone: string;
|
|
101
|
+
createdAt: string;
|
|
102
|
+
updatedAt: string;
|
|
103
|
+
npsn?: string | null | undefined;
|
|
104
|
+
logoUrl?: string | null | undefined;
|
|
105
|
+
}, Error, {
|
|
106
|
+
name: string;
|
|
107
|
+
slug: string;
|
|
108
|
+
timezone: string;
|
|
109
|
+
npsn?: string | null | undefined;
|
|
110
|
+
logoUrl?: string | null | undefined;
|
|
111
|
+
}, unknown>;
|
|
112
|
+
|
|
113
|
+
export { type UpsertAttendanceShiftsPayload, createTenant, getAttendanceShift, getCurrentTenant, getTenantModules, listAttendanceShifts, updateCurrentTenant, upsertAttendanceShifts, useAttendanceShift, useAttendanceShifts, useCreateTenant, useCurrentTenant, useTenantModules, useUpdateCurrentTenant, useUpsertAttendanceShifts };
|