@sekolaos/shared-api 0.0.0-stage → 1.0.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.
Files changed (172) hide show
  1. package/dist/chunk-2FTS6JMO.cjs +66 -0
  2. package/dist/chunk-2FTS6JMO.cjs.map +1 -0
  3. package/dist/chunk-3RS57C3E.cjs +90 -0
  4. package/dist/chunk-3RS57C3E.cjs.map +1 -0
  5. package/dist/chunk-4ECXVAIQ.cjs +50 -0
  6. package/dist/chunk-4ECXVAIQ.cjs.map +1 -0
  7. package/dist/chunk-4T52ABA5.js +63 -0
  8. package/dist/chunk-4T52ABA5.js.map +1 -0
  9. package/dist/chunk-6JGO2CUT.js +52 -0
  10. package/dist/chunk-6JGO2CUT.js.map +1 -0
  11. package/dist/chunk-6UCHRWSL.js +43 -0
  12. package/dist/chunk-6UCHRWSL.js.map +1 -0
  13. package/dist/chunk-AGNLUQKT.cjs +52 -0
  14. package/dist/chunk-AGNLUQKT.cjs.map +1 -0
  15. package/dist/chunk-AGPMQFZM.js +3 -0
  16. package/dist/chunk-AGPMQFZM.js.map +1 -0
  17. package/dist/chunk-ALMSFTRM.js +66 -0
  18. package/dist/chunk-ALMSFTRM.js.map +1 -0
  19. package/dist/chunk-AOBHBJ2G.cjs +89 -0
  20. package/dist/chunk-AOBHBJ2G.cjs.map +1 -0
  21. package/dist/chunk-BOASJ3VG.cjs +31 -0
  22. package/dist/chunk-BOASJ3VG.cjs.map +1 -0
  23. package/dist/chunk-CBTITLRR.js +43 -0
  24. package/dist/chunk-CBTITLRR.js.map +1 -0
  25. package/dist/chunk-CP46K2UB.cjs +74 -0
  26. package/dist/chunk-CP46K2UB.cjs.map +1 -0
  27. package/dist/chunk-DMEWJ56D.js +76 -0
  28. package/dist/chunk-DMEWJ56D.js.map +1 -0
  29. package/dist/chunk-DNNK2DMM.cjs +119 -0
  30. package/dist/chunk-DNNK2DMM.cjs.map +1 -0
  31. package/dist/chunk-GKKJMRCL.js +75 -0
  32. package/dist/chunk-GKKJMRCL.js.map +1 -0
  33. package/dist/chunk-GRBBLS5Y.js +77 -0
  34. package/dist/chunk-GRBBLS5Y.js.map +1 -0
  35. package/dist/chunk-GRXFSXG5.js +124 -0
  36. package/dist/chunk-GRXFSXG5.js.map +1 -0
  37. package/dist/chunk-GUJVCKEN.js +102 -0
  38. package/dist/chunk-GUJVCKEN.js.map +1 -0
  39. package/dist/chunk-LA7MRXWR.js +77 -0
  40. package/dist/chunk-LA7MRXWR.js.map +1 -0
  41. package/dist/chunk-MRFGUSN2.js +20 -0
  42. package/dist/chunk-MRFGUSN2.js.map +1 -0
  43. package/dist/chunk-NBVPN4KL.cjs +23 -0
  44. package/dist/chunk-NBVPN4KL.cjs.map +1 -0
  45. package/dist/chunk-NGFFI4XQ.cjs +61 -0
  46. package/dist/chunk-NGFFI4XQ.cjs.map +1 -0
  47. package/dist/chunk-OKSRSOYJ.cjs +88 -0
  48. package/dist/chunk-OKSRSOYJ.cjs.map +1 -0
  49. package/dist/chunk-PPK3HQOY.cjs +134 -0
  50. package/dist/chunk-PPK3HQOY.cjs.map +1 -0
  51. package/dist/chunk-QJSOSQ7M.cjs +23 -0
  52. package/dist/chunk-QJSOSQ7M.cjs.map +1 -0
  53. package/dist/chunk-R37QQTQS.cjs +64 -0
  54. package/dist/chunk-R37QQTQS.cjs.map +1 -0
  55. package/dist/chunk-R7ACSDOA.cjs +114 -0
  56. package/dist/chunk-R7ACSDOA.cjs.map +1 -0
  57. package/dist/chunk-S6QFHKCE.js +99 -0
  58. package/dist/chunk-S6QFHKCE.js.map +1 -0
  59. package/dist/chunk-TSLEYQKD.cjs +92 -0
  60. package/dist/chunk-TSLEYQKD.cjs.map +1 -0
  61. package/dist/chunk-WF63F6RJ.cjs +4 -0
  62. package/dist/chunk-WF63F6RJ.cjs.map +1 -0
  63. package/dist/chunk-XU5UEIBL.js +43 -0
  64. package/dist/chunk-XU5UEIBL.js.map +1 -0
  65. package/dist/chunk-XVG5Z6B5.cjs +79 -0
  66. package/dist/chunk-XVG5Z6B5.cjs.map +1 -0
  67. package/dist/chunk-YA2KONBB.js +20 -0
  68. package/dist/chunk-YA2KONBB.js.map +1 -0
  69. package/dist/chunk-YK7QFPBF.js +55 -0
  70. package/dist/chunk-YK7QFPBF.js.map +1 -0
  71. package/dist/chunk-YTF4Z7I4.js +26 -0
  72. package/dist/chunk-YTF4Z7I4.js.map +1 -0
  73. package/dist/client/index.cjs +62 -0
  74. package/dist/client/index.cjs.map +1 -0
  75. package/dist/client/index.d.cts +28 -0
  76. package/dist/client/index.d.ts +28 -0
  77. package/dist/client/index.js +5 -0
  78. package/dist/client/index.js.map +1 -0
  79. package/dist/index.cjs +620 -0
  80. package/dist/index.cjs.map +1 -0
  81. package/dist/index.d.cts +39 -0
  82. package/dist/index.d.ts +39 -0
  83. package/dist/index.js +21 -0
  84. package/dist/index.js.map +1 -0
  85. package/dist/keys/index.cjs +56 -0
  86. package/dist/keys/index.cjs.map +1 -0
  87. package/dist/keys/index.d.cts +64 -0
  88. package/dist/keys/index.d.ts +64 -0
  89. package/dist/keys/index.js +3 -0
  90. package/dist/keys/index.js.map +1 -0
  91. package/dist/modules/academic/index.cjs +44 -0
  92. package/dist/modules/academic/index.cjs.map +1 -0
  93. package/dist/modules/academic/index.d.cts +54 -0
  94. package/dist/modules/academic/index.d.ts +54 -0
  95. package/dist/modules/academic/index.js +7 -0
  96. package/dist/modules/academic/index.js.map +1 -0
  97. package/dist/modules/attendance/index.cjs +68 -0
  98. package/dist/modules/attendance/index.cjs.map +1 -0
  99. package/dist/modules/attendance/index.d.cts +135 -0
  100. package/dist/modules/attendance/index.d.ts +135 -0
  101. package/dist/modules/attendance/index.js +7 -0
  102. package/dist/modules/attendance/index.js.map +1 -0
  103. package/dist/modules/auth/index.cjs +52 -0
  104. package/dist/modules/auth/index.cjs.map +1 -0
  105. package/dist/modules/auth/index.d.cts +44 -0
  106. package/dist/modules/auth/index.d.ts +44 -0
  107. package/dist/modules/auth/index.js +7 -0
  108. package/dist/modules/auth/index.js.map +1 -0
  109. package/dist/modules/classroom/index.cjs +60 -0
  110. package/dist/modules/classroom/index.cjs.map +1 -0
  111. package/dist/modules/classroom/index.d.cts +84 -0
  112. package/dist/modules/classroom/index.d.ts +84 -0
  113. package/dist/modules/classroom/index.js +7 -0
  114. package/dist/modules/classroom/index.js.map +1 -0
  115. package/dist/modules/lead/index.cjs +44 -0
  116. package/dist/modules/lead/index.cjs.map +1 -0
  117. package/dist/modules/lead/index.d.cts +104 -0
  118. package/dist/modules/lead/index.d.ts +104 -0
  119. package/dist/modules/lead/index.js +7 -0
  120. package/dist/modules/lead/index.js.map +1 -0
  121. package/dist/modules/student/index.cjs +76 -0
  122. package/dist/modules/student/index.cjs.map +1 -0
  123. package/dist/modules/student/index.d.cts +125 -0
  124. package/dist/modules/student/index.d.ts +125 -0
  125. package/dist/modules/student/index.js +7 -0
  126. package/dist/modules/student/index.js.map +1 -0
  127. package/dist/modules/subject/index.cjs +36 -0
  128. package/dist/modules/subject/index.cjs.map +1 -0
  129. package/dist/modules/subject/index.d.cts +40 -0
  130. package/dist/modules/subject/index.d.ts +40 -0
  131. package/dist/modules/subject/index.js +7 -0
  132. package/dist/modules/subject/index.js.map +1 -0
  133. package/dist/modules/system/index.cjs +20 -0
  134. package/dist/modules/system/index.cjs.map +1 -0
  135. package/dist/modules/system/index.d.cts +14 -0
  136. package/dist/modules/system/index.d.ts +14 -0
  137. package/dist/modules/system/index.js +7 -0
  138. package/dist/modules/system/index.js.map +1 -0
  139. package/dist/modules/teaching-schedule/index.cjs +60 -0
  140. package/dist/modules/teaching-schedule/index.cjs.map +1 -0
  141. package/dist/modules/teaching-schedule/index.d.cts +97 -0
  142. package/dist/modules/teaching-schedule/index.d.ts +97 -0
  143. package/dist/modules/teaching-schedule/index.js +7 -0
  144. package/dist/modules/teaching-schedule/index.js.map +1 -0
  145. package/dist/modules/tenant/index.cjs +68 -0
  146. package/dist/modules/tenant/index.cjs.map +1 -0
  147. package/dist/modules/tenant/index.d.cts +113 -0
  148. package/dist/modules/tenant/index.d.ts +113 -0
  149. package/dist/modules/tenant/index.js +7 -0
  150. package/dist/modules/tenant/index.js.map +1 -0
  151. package/dist/modules/upload/index.cjs +27 -0
  152. package/dist/modules/upload/index.cjs.map +1 -0
  153. package/dist/modules/upload/index.d.cts +18 -0
  154. package/dist/modules/upload/index.d.ts +18 -0
  155. package/dist/modules/upload/index.js +6 -0
  156. package/dist/modules/upload/index.js.map +1 -0
  157. package/dist/modules/user/index.cjs +60 -0
  158. package/dist/modules/user/index.cjs.map +1 -0
  159. package/dist/modules/user/index.d.cts +117 -0
  160. package/dist/modules/user/index.d.ts +117 -0
  161. package/dist/modules/user/index.js +7 -0
  162. package/dist/modules/user/index.js.map +1 -0
  163. package/dist/provider.cjs +17 -0
  164. package/dist/provider.cjs.map +1 -0
  165. package/dist/provider.d.cts +15 -0
  166. package/dist/provider.d.ts +15 -0
  167. package/dist/provider.js +4 -0
  168. package/dist/provider.js.map +1 -0
  169. package/dist/types-BxV0BtVp.d.cts +89 -0
  170. package/dist/types-BxV0BtVp.d.ts +89 -0
  171. package/package.json +137 -4
  172. 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 };