@sekolaos/shared-api 1.3.1 → 1.4.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-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-JBIEHGQ6.js +213 -0
- package/dist/chunk-JBIEHGQ6.js.map +1 -0
- package/dist/{chunk-H5WMOGLJ.js → chunk-KPGOAAOU.js} +3 -3
- package/dist/{chunk-H5WMOGLJ.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-NVU4IIMA.cjs → chunk-V7QGZZXE.cjs} +8 -8
- package/dist/{chunk-NVU4IIMA.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-XGKBOKII.cjs +244 -0
- package/dist/chunk-XGKBOKII.cjs.map +1 -0
- 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.d.cts +3 -21
- package/dist/modules/auth/index.d.ts +3 -21
- 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 +143 -137
- 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
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
2
|
import { M as MutationOptionsCustom, S as SekolaosApiError, Q as QueryOptionsWithoutKey } from '../../types-BxV0BtVp.cjs';
|
|
3
3
|
export { c as PaginatedResult } from '../../types-BxV0BtVp.cjs';
|
|
4
|
-
import { BatchSyncAttendanceRequest, BatchSyncAttendanceResponse, CreatePicketAssignmentInput, PicketAssignment, AttendanceHistoryQuery, AttendanceHistoryResult, DynamicQrStreamQuery, DynamicQrStreamResult, PicketScheduleListQuery, UpdateClassAttendanceRequest, ClassUpdateAttendanceResult, TeacherScanDynamicQrRequest, DynamicQrVerifyResult } from '@sekolaos/shared-schema';
|
|
5
|
-
export { AttendanceHistoryItem, AttendanceHistoryQuery, AttendanceHistoryResult, BatchSyncAttendanceRequest, BatchSyncAttendanceResponse, ClassUpdateAttendanceResult, CreatePicketAssignmentInput, DynamicQrStreamQuery, DynamicQrStreamResult, DynamicQrVerifyResult, PicketAssignment, PicketScheduleListQuery, TeacherScanDynamicQrRequest, UpdateClassAttendanceRequest } from '@sekolaos/shared-schema';
|
|
4
|
+
import { BatchSyncAttendanceRequest, BatchSyncAttendanceResponse, CreateAttendanceShiftSchemaInput, AttendanceShift, CreatePicketAssignmentInput, PicketAssignment, AttendanceHistoryQuery, AttendanceHistoryResult, DynamicQrStreamQuery, DynamicQrStreamResult, PicketScheduleListQuery, ManualStudentAttendanceRequest, StudentBatchSyncRequest, StudentBatchSyncResponse, UpdateAttendanceShiftSchemaInput, UpdateClassAttendanceRequest, ClassUpdateAttendanceResult, TeacherScanDynamicQrRequest, DynamicQrVerifyResult } from '@sekolaos/shared-schema';
|
|
5
|
+
export { AttendanceHistoryItem, AttendanceHistoryQuery, AttendanceHistoryResult, AttendanceShift, BatchSyncAttendanceRequest, BatchSyncAttendanceResponse, ClassUpdateAttendanceResult, CreateAttendanceShiftSchemaInput, CreatePicketAssignmentInput, DynamicQrStreamQuery, DynamicQrStreamResult, DynamicQrVerifyResult, ManualStudentAttendanceRequest, PicketAssignment, PicketScheduleListQuery, StudentBatchSyncRequest, StudentBatchSyncResponse, TeacherScanDynamicQrRequest, UpdateAttendanceShiftSchemaInput, UpdateClassAttendanceRequest } from '@sekolaos/shared-schema';
|
|
6
6
|
import 'axios';
|
|
7
7
|
|
|
8
|
+
declare function getAttendanceShifts(params?: {
|
|
9
|
+
targetType?: "SISWA" | "GURU";
|
|
10
|
+
}): Promise<AttendanceShift[]>;
|
|
11
|
+
declare function getAttendanceShiftDetail(targetType: "SISWA" | "GURU"): Promise<AttendanceShift>;
|
|
12
|
+
declare function createAttendanceShift(payload: CreateAttendanceShiftSchemaInput): Promise<AttendanceShift>;
|
|
13
|
+
declare function updateAttendanceShift(targetType: "SISWA" | "GURU", payload: UpdateAttendanceShiftSchemaInput): Promise<AttendanceShift>;
|
|
14
|
+
declare function deleteAttendanceShift(targetType: "SISWA" | "GURU"): Promise<void>;
|
|
8
15
|
declare function getAttendanceHistory(params: AttendanceHistoryQuery): Promise<AttendanceHistoryResult>;
|
|
9
16
|
declare function batchSyncAttendance(payload: BatchSyncAttendanceRequest): Promise<BatchSyncAttendanceResponse>;
|
|
10
17
|
declare function updateClassAttendance(payload: UpdateClassAttendanceRequest): Promise<ClassUpdateAttendanceResult>;
|
|
@@ -12,6 +19,27 @@ declare function getDynamicQrStream(params?: DynamicQrStreamQuery): Promise<Dyna
|
|
|
12
19
|
declare function verifyDynamicQr(payload: TeacherScanDynamicQrRequest): Promise<DynamicQrVerifyResult>;
|
|
13
20
|
declare function listPicketSchedules(params?: Partial<PicketScheduleListQuery>): Promise<PicketAssignment[]>;
|
|
14
21
|
declare function createPicketAssignment(payload: CreatePicketAssignmentInput): Promise<PicketAssignment>;
|
|
22
|
+
interface DutyStatus {
|
|
23
|
+
isActiveDutyTeacher: boolean;
|
|
24
|
+
activeShift: {
|
|
25
|
+
id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
checkInStart: string;
|
|
28
|
+
checkInEnd: string;
|
|
29
|
+
checkOutEnd: string;
|
|
30
|
+
} | null;
|
|
31
|
+
dutyDate: string;
|
|
32
|
+
}
|
|
33
|
+
declare function getDutyStatus(): Promise<DutyStatus>;
|
|
34
|
+
interface ManualAttendanceResult {
|
|
35
|
+
id: string;
|
|
36
|
+
method: "QR_SCAN" | "MANUAL_DUTY_TEACHER" | "SYSTEM_AUTO";
|
|
37
|
+
status: "PRESENT" | "LATE";
|
|
38
|
+
manualReason: string;
|
|
39
|
+
recordedByUserId: string | null;
|
|
40
|
+
}
|
|
41
|
+
declare function recordManualStudentAttendance(payload: ManualStudentAttendanceRequest): Promise<ManualAttendanceResult>;
|
|
42
|
+
declare function studentBatchSync(payload: StudentBatchSyncRequest): Promise<StudentBatchSyncResponse>;
|
|
15
43
|
declare function useAttendanceHistory(params: AttendanceHistoryQuery, enabled?: boolean): _tanstack_react_query.UseQueryResult<{
|
|
16
44
|
items: {
|
|
17
45
|
status: "HADIR" | "TERLAMBAT" | "IZIN" | "SAKIT" | "ALPA";
|
|
@@ -104,9 +132,9 @@ declare function useVerifyDynamicQr(): _tanstack_react_query.UseMutationResult<{
|
|
|
104
132
|
tenantId: string;
|
|
105
133
|
teacherUserId: string;
|
|
106
134
|
scannedAt: string;
|
|
135
|
+
method: string;
|
|
107
136
|
windowSeconds: number;
|
|
108
137
|
windowIndex: number;
|
|
109
|
-
method: string;
|
|
110
138
|
attendanceLogId: string;
|
|
111
139
|
teacherName?: string | undefined;
|
|
112
140
|
picketAssignmentId?: string | undefined;
|
|
@@ -132,5 +160,111 @@ declare function useCreatePicketAssignment(options?: MutationOptionsCustom<Picke
|
|
|
132
160
|
dayOfWeek: "SENIN" | "SELASA" | "RABU" | "KAMIS" | "JUMAT" | "SABTU";
|
|
133
161
|
location: string;
|
|
134
162
|
}, unknown>;
|
|
163
|
+
declare function useAttendanceShiftsQuery(params?: {
|
|
164
|
+
targetType?: "SISWA" | "GURU";
|
|
165
|
+
}): _tanstack_react_query.UseQueryResult<{
|
|
166
|
+
id: string;
|
|
167
|
+
tenantId: string;
|
|
168
|
+
targetType: "SISWA" | "GURU";
|
|
169
|
+
name: string;
|
|
170
|
+
checkInStart: string;
|
|
171
|
+
checkInEnd: string;
|
|
172
|
+
checkOutStart: string;
|
|
173
|
+
checkOutEnd: string;
|
|
174
|
+
lateToleranceMinutes?: number | undefined;
|
|
175
|
+
fridayCheckOutStart?: string | null | undefined;
|
|
176
|
+
fridayCheckOutEnd?: string | null | undefined;
|
|
177
|
+
}[], Error>;
|
|
178
|
+
declare function useAttendanceShiftDetailQuery(targetType: "SISWA" | "GURU"): _tanstack_react_query.UseQueryResult<{
|
|
179
|
+
id: string;
|
|
180
|
+
tenantId: string;
|
|
181
|
+
targetType: "SISWA" | "GURU";
|
|
182
|
+
name: string;
|
|
183
|
+
checkInStart: string;
|
|
184
|
+
checkInEnd: string;
|
|
185
|
+
checkOutStart: string;
|
|
186
|
+
checkOutEnd: string;
|
|
187
|
+
lateToleranceMinutes?: number | undefined;
|
|
188
|
+
fridayCheckOutStart?: string | null | undefined;
|
|
189
|
+
fridayCheckOutEnd?: string | null | undefined;
|
|
190
|
+
}, Error>;
|
|
191
|
+
declare function useCreateAttendanceShiftMutation(options?: MutationOptionsCustom<AttendanceShift, CreateAttendanceShiftSchemaInput>): _tanstack_react_query.UseMutationResult<{
|
|
192
|
+
id: string;
|
|
193
|
+
tenantId: string;
|
|
194
|
+
targetType: "SISWA" | "GURU";
|
|
195
|
+
name: string;
|
|
196
|
+
checkInStart: string;
|
|
197
|
+
checkInEnd: string;
|
|
198
|
+
checkOutStart: string;
|
|
199
|
+
checkOutEnd: string;
|
|
200
|
+
lateToleranceMinutes?: number | undefined;
|
|
201
|
+
fridayCheckOutStart?: string | null | undefined;
|
|
202
|
+
fridayCheckOutEnd?: string | null | undefined;
|
|
203
|
+
}, Error, {
|
|
204
|
+
targetType: "SISWA" | "GURU";
|
|
205
|
+
name: string;
|
|
206
|
+
checkInStart: string;
|
|
207
|
+
checkInEnd: string;
|
|
208
|
+
checkOutStart: string;
|
|
209
|
+
checkOutEnd: string;
|
|
210
|
+
lateToleranceMinutes?: number | undefined;
|
|
211
|
+
fridayCheckOutStart?: string | null | undefined;
|
|
212
|
+
fridayCheckOutEnd?: string | null | undefined;
|
|
213
|
+
}, unknown>;
|
|
214
|
+
declare function useUpdateAttendanceShiftMutation(options?: MutationOptionsCustom<AttendanceShift, {
|
|
215
|
+
targetType: "SISWA" | "GURU";
|
|
216
|
+
payload: UpdateAttendanceShiftSchemaInput;
|
|
217
|
+
}>): _tanstack_react_query.UseMutationResult<{
|
|
218
|
+
id: string;
|
|
219
|
+
tenantId: string;
|
|
220
|
+
targetType: "SISWA" | "GURU";
|
|
221
|
+
name: string;
|
|
222
|
+
checkInStart: string;
|
|
223
|
+
checkInEnd: string;
|
|
224
|
+
checkOutStart: string;
|
|
225
|
+
checkOutEnd: string;
|
|
226
|
+
lateToleranceMinutes?: number | undefined;
|
|
227
|
+
fridayCheckOutStart?: string | null | undefined;
|
|
228
|
+
fridayCheckOutEnd?: string | null | undefined;
|
|
229
|
+
}, Error, {
|
|
230
|
+
targetType: "SISWA" | "GURU";
|
|
231
|
+
payload: UpdateAttendanceShiftSchemaInput;
|
|
232
|
+
}, unknown>;
|
|
233
|
+
declare function useDeleteAttendanceShiftMutation(options?: MutationOptionsCustom<void, "SISWA" | "GURU">): _tanstack_react_query.UseMutationResult<void, Error, "SISWA" | "GURU", unknown>;
|
|
234
|
+
declare function useDutyStatusQuery(options?: QueryOptionsWithoutKey<DutyStatus>): _tanstack_react_query.UseQueryResult<DutyStatus, SekolaosApiError>;
|
|
235
|
+
declare function useManualStudentAttendanceMutation(options?: MutationOptionsCustom<ManualAttendanceResult, ManualStudentAttendanceRequest>): _tanstack_react_query.UseMutationResult<ManualAttendanceResult, Error, {
|
|
236
|
+
status: "PRESENT" | "LATE";
|
|
237
|
+
date: string;
|
|
238
|
+
academicYearId: string;
|
|
239
|
+
clientUuid: string;
|
|
240
|
+
studentId: string;
|
|
241
|
+
notes: string;
|
|
242
|
+
attendanceShiftId: string;
|
|
243
|
+
checkInTime: string;
|
|
244
|
+
manualReason: "QR_CARD_LOST" | "QR_CARD_DAMAGED" | "QR_UNREADABLE" | "SCANNER_TROUBLE" | "OTHER";
|
|
245
|
+
}, unknown>;
|
|
246
|
+
declare function useStudentBatchSyncMutation(options?: MutationOptionsCustom<StudentBatchSyncResponse, StudentBatchSyncRequest>): _tanstack_react_query.UseMutationResult<{
|
|
247
|
+
totalReceived: number;
|
|
248
|
+
totalSaved: number;
|
|
249
|
+
totalDuplicates: number;
|
|
250
|
+
duplicateClientUuids: string[];
|
|
251
|
+
totalRejected: number;
|
|
252
|
+
}, Error, {
|
|
253
|
+
tenantId: string;
|
|
254
|
+
academicYearId: string;
|
|
255
|
+
records: {
|
|
256
|
+
status: "HADIR" | "TERLAMBAT" | "IZIN" | "SAKIT" | "ALPA";
|
|
257
|
+
date: string;
|
|
258
|
+
academicYearId: string;
|
|
259
|
+
clientUuid: string;
|
|
260
|
+
studentId: string;
|
|
261
|
+
attendanceShiftId: string;
|
|
262
|
+
method: "QR_SCAN" | "MANUAL_DUTY_TEACHER" | "SYSTEM_AUTO";
|
|
263
|
+
qrCodeScanned?: string | null | undefined;
|
|
264
|
+
scannedAt?: string | undefined;
|
|
265
|
+
notes?: string | undefined;
|
|
266
|
+
manualReason?: "QR_CARD_LOST" | "QR_CARD_DAMAGED" | "QR_UNREADABLE" | "SCANNER_TROUBLE" | "OTHER" | undefined;
|
|
267
|
+
}[];
|
|
268
|
+
}, unknown>;
|
|
135
269
|
|
|
136
|
-
export { batchSyncAttendance, createPicketAssignment, getAttendanceHistory, getDynamicQrStream, listPicketSchedules, updateClassAttendance, useAttendanceHistory, useBatchSyncAttendance, useCreatePicketAssignment, useDynamicQrStream, usePicketSchedules, useUpdateClassAttendance, useVerifyDynamicQr, verifyDynamicQr };
|
|
270
|
+
export { type DutyStatus, type ManualAttendanceResult, batchSyncAttendance, createAttendanceShift, createPicketAssignment, deleteAttendanceShift, getAttendanceHistory, getAttendanceShiftDetail, getAttendanceShifts, getDutyStatus, getDynamicQrStream, listPicketSchedules, recordManualStudentAttendance, studentBatchSync, updateAttendanceShift, updateClassAttendance, useAttendanceHistory, useAttendanceShiftDetailQuery, useAttendanceShiftsQuery, useBatchSyncAttendance, useCreateAttendanceShiftMutation, useCreatePicketAssignment, useDeleteAttendanceShiftMutation, useDutyStatusQuery, useDynamicQrStream, useManualStudentAttendanceMutation, usePicketSchedules, useStudentBatchSyncMutation, useUpdateAttendanceShiftMutation, useUpdateClassAttendance, useVerifyDynamicQr, verifyDynamicQr };
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
2
|
import { M as MutationOptionsCustom, S as SekolaosApiError, Q as QueryOptionsWithoutKey } from '../../types-BxV0BtVp.js';
|
|
3
3
|
export { c as PaginatedResult } from '../../types-BxV0BtVp.js';
|
|
4
|
-
import { BatchSyncAttendanceRequest, BatchSyncAttendanceResponse, CreatePicketAssignmentInput, PicketAssignment, AttendanceHistoryQuery, AttendanceHistoryResult, DynamicQrStreamQuery, DynamicQrStreamResult, PicketScheduleListQuery, UpdateClassAttendanceRequest, ClassUpdateAttendanceResult, TeacherScanDynamicQrRequest, DynamicQrVerifyResult } from '@sekolaos/shared-schema';
|
|
5
|
-
export { AttendanceHistoryItem, AttendanceHistoryQuery, AttendanceHistoryResult, BatchSyncAttendanceRequest, BatchSyncAttendanceResponse, ClassUpdateAttendanceResult, CreatePicketAssignmentInput, DynamicQrStreamQuery, DynamicQrStreamResult, DynamicQrVerifyResult, PicketAssignment, PicketScheduleListQuery, TeacherScanDynamicQrRequest, UpdateClassAttendanceRequest } from '@sekolaos/shared-schema';
|
|
4
|
+
import { BatchSyncAttendanceRequest, BatchSyncAttendanceResponse, CreateAttendanceShiftSchemaInput, AttendanceShift, CreatePicketAssignmentInput, PicketAssignment, AttendanceHistoryQuery, AttendanceHistoryResult, DynamicQrStreamQuery, DynamicQrStreamResult, PicketScheduleListQuery, ManualStudentAttendanceRequest, StudentBatchSyncRequest, StudentBatchSyncResponse, UpdateAttendanceShiftSchemaInput, UpdateClassAttendanceRequest, ClassUpdateAttendanceResult, TeacherScanDynamicQrRequest, DynamicQrVerifyResult } from '@sekolaos/shared-schema';
|
|
5
|
+
export { AttendanceHistoryItem, AttendanceHistoryQuery, AttendanceHistoryResult, AttendanceShift, BatchSyncAttendanceRequest, BatchSyncAttendanceResponse, ClassUpdateAttendanceResult, CreateAttendanceShiftSchemaInput, CreatePicketAssignmentInput, DynamicQrStreamQuery, DynamicQrStreamResult, DynamicQrVerifyResult, ManualStudentAttendanceRequest, PicketAssignment, PicketScheduleListQuery, StudentBatchSyncRequest, StudentBatchSyncResponse, TeacherScanDynamicQrRequest, UpdateAttendanceShiftSchemaInput, UpdateClassAttendanceRequest } from '@sekolaos/shared-schema';
|
|
6
6
|
import 'axios';
|
|
7
7
|
|
|
8
|
+
declare function getAttendanceShifts(params?: {
|
|
9
|
+
targetType?: "SISWA" | "GURU";
|
|
10
|
+
}): Promise<AttendanceShift[]>;
|
|
11
|
+
declare function getAttendanceShiftDetail(targetType: "SISWA" | "GURU"): Promise<AttendanceShift>;
|
|
12
|
+
declare function createAttendanceShift(payload: CreateAttendanceShiftSchemaInput): Promise<AttendanceShift>;
|
|
13
|
+
declare function updateAttendanceShift(targetType: "SISWA" | "GURU", payload: UpdateAttendanceShiftSchemaInput): Promise<AttendanceShift>;
|
|
14
|
+
declare function deleteAttendanceShift(targetType: "SISWA" | "GURU"): Promise<void>;
|
|
8
15
|
declare function getAttendanceHistory(params: AttendanceHistoryQuery): Promise<AttendanceHistoryResult>;
|
|
9
16
|
declare function batchSyncAttendance(payload: BatchSyncAttendanceRequest): Promise<BatchSyncAttendanceResponse>;
|
|
10
17
|
declare function updateClassAttendance(payload: UpdateClassAttendanceRequest): Promise<ClassUpdateAttendanceResult>;
|
|
@@ -12,6 +19,27 @@ declare function getDynamicQrStream(params?: DynamicQrStreamQuery): Promise<Dyna
|
|
|
12
19
|
declare function verifyDynamicQr(payload: TeacherScanDynamicQrRequest): Promise<DynamicQrVerifyResult>;
|
|
13
20
|
declare function listPicketSchedules(params?: Partial<PicketScheduleListQuery>): Promise<PicketAssignment[]>;
|
|
14
21
|
declare function createPicketAssignment(payload: CreatePicketAssignmentInput): Promise<PicketAssignment>;
|
|
22
|
+
interface DutyStatus {
|
|
23
|
+
isActiveDutyTeacher: boolean;
|
|
24
|
+
activeShift: {
|
|
25
|
+
id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
checkInStart: string;
|
|
28
|
+
checkInEnd: string;
|
|
29
|
+
checkOutEnd: string;
|
|
30
|
+
} | null;
|
|
31
|
+
dutyDate: string;
|
|
32
|
+
}
|
|
33
|
+
declare function getDutyStatus(): Promise<DutyStatus>;
|
|
34
|
+
interface ManualAttendanceResult {
|
|
35
|
+
id: string;
|
|
36
|
+
method: "QR_SCAN" | "MANUAL_DUTY_TEACHER" | "SYSTEM_AUTO";
|
|
37
|
+
status: "PRESENT" | "LATE";
|
|
38
|
+
manualReason: string;
|
|
39
|
+
recordedByUserId: string | null;
|
|
40
|
+
}
|
|
41
|
+
declare function recordManualStudentAttendance(payload: ManualStudentAttendanceRequest): Promise<ManualAttendanceResult>;
|
|
42
|
+
declare function studentBatchSync(payload: StudentBatchSyncRequest): Promise<StudentBatchSyncResponse>;
|
|
15
43
|
declare function useAttendanceHistory(params: AttendanceHistoryQuery, enabled?: boolean): _tanstack_react_query.UseQueryResult<{
|
|
16
44
|
items: {
|
|
17
45
|
status: "HADIR" | "TERLAMBAT" | "IZIN" | "SAKIT" | "ALPA";
|
|
@@ -104,9 +132,9 @@ declare function useVerifyDynamicQr(): _tanstack_react_query.UseMutationResult<{
|
|
|
104
132
|
tenantId: string;
|
|
105
133
|
teacherUserId: string;
|
|
106
134
|
scannedAt: string;
|
|
135
|
+
method: string;
|
|
107
136
|
windowSeconds: number;
|
|
108
137
|
windowIndex: number;
|
|
109
|
-
method: string;
|
|
110
138
|
attendanceLogId: string;
|
|
111
139
|
teacherName?: string | undefined;
|
|
112
140
|
picketAssignmentId?: string | undefined;
|
|
@@ -132,5 +160,111 @@ declare function useCreatePicketAssignment(options?: MutationOptionsCustom<Picke
|
|
|
132
160
|
dayOfWeek: "SENIN" | "SELASA" | "RABU" | "KAMIS" | "JUMAT" | "SABTU";
|
|
133
161
|
location: string;
|
|
134
162
|
}, unknown>;
|
|
163
|
+
declare function useAttendanceShiftsQuery(params?: {
|
|
164
|
+
targetType?: "SISWA" | "GURU";
|
|
165
|
+
}): _tanstack_react_query.UseQueryResult<{
|
|
166
|
+
id: string;
|
|
167
|
+
tenantId: string;
|
|
168
|
+
targetType: "SISWA" | "GURU";
|
|
169
|
+
name: string;
|
|
170
|
+
checkInStart: string;
|
|
171
|
+
checkInEnd: string;
|
|
172
|
+
checkOutStart: string;
|
|
173
|
+
checkOutEnd: string;
|
|
174
|
+
lateToleranceMinutes?: number | undefined;
|
|
175
|
+
fridayCheckOutStart?: string | null | undefined;
|
|
176
|
+
fridayCheckOutEnd?: string | null | undefined;
|
|
177
|
+
}[], Error>;
|
|
178
|
+
declare function useAttendanceShiftDetailQuery(targetType: "SISWA" | "GURU"): _tanstack_react_query.UseQueryResult<{
|
|
179
|
+
id: string;
|
|
180
|
+
tenantId: string;
|
|
181
|
+
targetType: "SISWA" | "GURU";
|
|
182
|
+
name: string;
|
|
183
|
+
checkInStart: string;
|
|
184
|
+
checkInEnd: string;
|
|
185
|
+
checkOutStart: string;
|
|
186
|
+
checkOutEnd: string;
|
|
187
|
+
lateToleranceMinutes?: number | undefined;
|
|
188
|
+
fridayCheckOutStart?: string | null | undefined;
|
|
189
|
+
fridayCheckOutEnd?: string | null | undefined;
|
|
190
|
+
}, Error>;
|
|
191
|
+
declare function useCreateAttendanceShiftMutation(options?: MutationOptionsCustom<AttendanceShift, CreateAttendanceShiftSchemaInput>): _tanstack_react_query.UseMutationResult<{
|
|
192
|
+
id: string;
|
|
193
|
+
tenantId: string;
|
|
194
|
+
targetType: "SISWA" | "GURU";
|
|
195
|
+
name: string;
|
|
196
|
+
checkInStart: string;
|
|
197
|
+
checkInEnd: string;
|
|
198
|
+
checkOutStart: string;
|
|
199
|
+
checkOutEnd: string;
|
|
200
|
+
lateToleranceMinutes?: number | undefined;
|
|
201
|
+
fridayCheckOutStart?: string | null | undefined;
|
|
202
|
+
fridayCheckOutEnd?: string | null | undefined;
|
|
203
|
+
}, Error, {
|
|
204
|
+
targetType: "SISWA" | "GURU";
|
|
205
|
+
name: string;
|
|
206
|
+
checkInStart: string;
|
|
207
|
+
checkInEnd: string;
|
|
208
|
+
checkOutStart: string;
|
|
209
|
+
checkOutEnd: string;
|
|
210
|
+
lateToleranceMinutes?: number | undefined;
|
|
211
|
+
fridayCheckOutStart?: string | null | undefined;
|
|
212
|
+
fridayCheckOutEnd?: string | null | undefined;
|
|
213
|
+
}, unknown>;
|
|
214
|
+
declare function useUpdateAttendanceShiftMutation(options?: MutationOptionsCustom<AttendanceShift, {
|
|
215
|
+
targetType: "SISWA" | "GURU";
|
|
216
|
+
payload: UpdateAttendanceShiftSchemaInput;
|
|
217
|
+
}>): _tanstack_react_query.UseMutationResult<{
|
|
218
|
+
id: string;
|
|
219
|
+
tenantId: string;
|
|
220
|
+
targetType: "SISWA" | "GURU";
|
|
221
|
+
name: string;
|
|
222
|
+
checkInStart: string;
|
|
223
|
+
checkInEnd: string;
|
|
224
|
+
checkOutStart: string;
|
|
225
|
+
checkOutEnd: string;
|
|
226
|
+
lateToleranceMinutes?: number | undefined;
|
|
227
|
+
fridayCheckOutStart?: string | null | undefined;
|
|
228
|
+
fridayCheckOutEnd?: string | null | undefined;
|
|
229
|
+
}, Error, {
|
|
230
|
+
targetType: "SISWA" | "GURU";
|
|
231
|
+
payload: UpdateAttendanceShiftSchemaInput;
|
|
232
|
+
}, unknown>;
|
|
233
|
+
declare function useDeleteAttendanceShiftMutation(options?: MutationOptionsCustom<void, "SISWA" | "GURU">): _tanstack_react_query.UseMutationResult<void, Error, "SISWA" | "GURU", unknown>;
|
|
234
|
+
declare function useDutyStatusQuery(options?: QueryOptionsWithoutKey<DutyStatus>): _tanstack_react_query.UseQueryResult<DutyStatus, SekolaosApiError>;
|
|
235
|
+
declare function useManualStudentAttendanceMutation(options?: MutationOptionsCustom<ManualAttendanceResult, ManualStudentAttendanceRequest>): _tanstack_react_query.UseMutationResult<ManualAttendanceResult, Error, {
|
|
236
|
+
status: "PRESENT" | "LATE";
|
|
237
|
+
date: string;
|
|
238
|
+
academicYearId: string;
|
|
239
|
+
clientUuid: string;
|
|
240
|
+
studentId: string;
|
|
241
|
+
notes: string;
|
|
242
|
+
attendanceShiftId: string;
|
|
243
|
+
checkInTime: string;
|
|
244
|
+
manualReason: "QR_CARD_LOST" | "QR_CARD_DAMAGED" | "QR_UNREADABLE" | "SCANNER_TROUBLE" | "OTHER";
|
|
245
|
+
}, unknown>;
|
|
246
|
+
declare function useStudentBatchSyncMutation(options?: MutationOptionsCustom<StudentBatchSyncResponse, StudentBatchSyncRequest>): _tanstack_react_query.UseMutationResult<{
|
|
247
|
+
totalReceived: number;
|
|
248
|
+
totalSaved: number;
|
|
249
|
+
totalDuplicates: number;
|
|
250
|
+
duplicateClientUuids: string[];
|
|
251
|
+
totalRejected: number;
|
|
252
|
+
}, Error, {
|
|
253
|
+
tenantId: string;
|
|
254
|
+
academicYearId: string;
|
|
255
|
+
records: {
|
|
256
|
+
status: "HADIR" | "TERLAMBAT" | "IZIN" | "SAKIT" | "ALPA";
|
|
257
|
+
date: string;
|
|
258
|
+
academicYearId: string;
|
|
259
|
+
clientUuid: string;
|
|
260
|
+
studentId: string;
|
|
261
|
+
attendanceShiftId: string;
|
|
262
|
+
method: "QR_SCAN" | "MANUAL_DUTY_TEACHER" | "SYSTEM_AUTO";
|
|
263
|
+
qrCodeScanned?: string | null | undefined;
|
|
264
|
+
scannedAt?: string | undefined;
|
|
265
|
+
notes?: string | undefined;
|
|
266
|
+
manualReason?: "QR_CARD_LOST" | "QR_CARD_DAMAGED" | "QR_UNREADABLE" | "SCANNER_TROUBLE" | "OTHER" | undefined;
|
|
267
|
+
}[];
|
|
268
|
+
}, unknown>;
|
|
135
269
|
|
|
136
|
-
export { batchSyncAttendance, createPicketAssignment, getAttendanceHistory, getDynamicQrStream, listPicketSchedules, updateClassAttendance, useAttendanceHistory, useBatchSyncAttendance, useCreatePicketAssignment, useDynamicQrStream, usePicketSchedules, useUpdateClassAttendance, useVerifyDynamicQr, verifyDynamicQr };
|
|
270
|
+
export { type DutyStatus, type ManualAttendanceResult, batchSyncAttendance, createAttendanceShift, createPicketAssignment, deleteAttendanceShift, getAttendanceHistory, getAttendanceShiftDetail, getAttendanceShifts, getDutyStatus, getDynamicQrStream, listPicketSchedules, recordManualStudentAttendance, studentBatchSync, updateAttendanceShift, updateClassAttendance, useAttendanceHistory, useAttendanceShiftDetailQuery, useAttendanceShiftsQuery, useBatchSyncAttendance, useCreateAttendanceShiftMutation, useCreatePicketAssignment, useDeleteAttendanceShiftMutation, useDutyStatusQuery, useDynamicQrStream, useManualStudentAttendanceMutation, usePicketSchedules, useStudentBatchSyncMutation, useUpdateAttendanceShiftMutation, useUpdateClassAttendance, useVerifyDynamicQr, verifyDynamicQr };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { batchSyncAttendance, createPicketAssignment, getAttendanceHistory, getDynamicQrStream, listPicketSchedules, updateClassAttendance, useAttendanceHistory, useBatchSyncAttendance, useCreatePicketAssignment, useDynamicQrStream, usePicketSchedules, useUpdateClassAttendance, useVerifyDynamicQr, verifyDynamicQr } from '../../chunk-
|
|
1
|
+
export { batchSyncAttendance, createAttendanceShift, createPicketAssignment, deleteAttendanceShift, getAttendanceHistory, getAttendanceShiftDetail, getAttendanceShifts, getDutyStatus, getDynamicQrStream, listPicketSchedules, recordManualStudentAttendance, studentBatchSync, updateAttendanceShift, updateClassAttendance, useAttendanceHistory, useAttendanceShiftDetailQuery, useAttendanceShiftsQuery, useBatchSyncAttendance, useCreateAttendanceShiftMutation, useCreatePicketAssignment, useDeleteAttendanceShiftMutation, useDutyStatusQuery, useDynamicQrStream, useManualStudentAttendanceMutation, usePicketSchedules, useStudentBatchSyncMutation, useUpdateAttendanceShiftMutation, useUpdateClassAttendance, useVerifyDynamicQr, verifyDynamicQr } from '../../chunk-JBIEHGQ6.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,77 +1,77 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkV7QGZZXE_cjs = require('../../chunk-V7QGZZXE.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, "changePassword", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkV7QGZZXE_cjs.changePassword; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "consumeImpersonation", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkV7QGZZXE_cjs.consumeImpersonation; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "exitImpersonation", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkV7QGZZXE_cjs.exitImpersonation; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "getMe", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkV7QGZZXE_cjs.getMe; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "login", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkV7QGZZXE_cjs.login; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "logout", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkV7QGZZXE_cjs.logout; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "selectTenant", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkV7QGZZXE_cjs.selectTenant; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "switchRole", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkV7QGZZXE_cjs.switchRole; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "useChangePassword", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkV7QGZZXE_cjs.useChangePassword; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "useConsumeImpersonation", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkV7QGZZXE_cjs.useConsumeImpersonation; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "useExitImpersonation", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkV7QGZZXE_cjs.useExitImpersonation; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "useLogin", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkV7QGZZXE_cjs.useLogin; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "useLogout", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkV7QGZZXE_cjs.useLogout; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "useMe", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkV7QGZZXE_cjs.useMe; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "useSelectTenant", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkV7QGZZXE_cjs.useSelectTenant; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "useSwitchRole", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkV7QGZZXE_cjs.useSwitchRole; }
|
|
75
75
|
});
|
|
76
76
|
//# sourceMappingURL=index.cjs.map
|
|
77
77
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -20,7 +20,7 @@ declare function login(payload: LoginRequest): Promise<LoginResponse>;
|
|
|
20
20
|
declare function selectTenant(payload: SelectTenantRequest): Promise<LoginResponse>;
|
|
21
21
|
declare function switchRole(payload: SwitchRoleRequest): Promise<AuthSession>;
|
|
22
22
|
declare function logout(): Promise<void>;
|
|
23
|
-
declare function getMe(): Promise<
|
|
23
|
+
declare function getMe(): Promise<AuthSessionPayload>;
|
|
24
24
|
declare function changePassword(payload: ChangePasswordRequest): Promise<{
|
|
25
25
|
message: string;
|
|
26
26
|
}>;
|
|
@@ -50,27 +50,9 @@ declare function useConsumeImpersonation(options?: MutationOptionsCustom<AuthSes
|
|
|
50
50
|
token: string;
|
|
51
51
|
}, unknown>;
|
|
52
52
|
declare function useExitImpersonation(options?: MutationOptionsCustom<void, void>): _tanstack_react_query.UseMutationResult<void, SekolaosApiError, void, unknown>;
|
|
53
|
-
declare function useMe(options?: QueryOptionsWithoutKey<
|
|
53
|
+
declare function useMe(options?: QueryOptionsWithoutKey<AuthSessionPayload> & {
|
|
54
54
|
enabled?: boolean;
|
|
55
|
-
}): _tanstack_react_query.UseQueryResult<
|
|
56
|
-
tenantId: string;
|
|
57
|
-
userId: string;
|
|
58
|
-
tenantSlug: string;
|
|
59
|
-
activeAcademicYearId: string;
|
|
60
|
-
activeRole: {
|
|
61
|
-
permissions: Record<string, string[]>;
|
|
62
|
-
roleId: string;
|
|
63
|
-
roleName: string;
|
|
64
|
-
roleSlug: string;
|
|
65
|
-
};
|
|
66
|
-
availableRoles: {
|
|
67
|
-
permissions: Record<string, string[]>;
|
|
68
|
-
roleId: string;
|
|
69
|
-
roleName: string;
|
|
70
|
-
roleSlug: string;
|
|
71
|
-
}[];
|
|
72
|
-
isImpersonating: boolean;
|
|
73
|
-
}, SekolaosApiError>;
|
|
55
|
+
}): _tanstack_react_query.UseQueryResult<AuthSessionPayload, SekolaosApiError>;
|
|
74
56
|
declare function useLogin(options?: MutationOptionsCustom<LoginResponse, LoginRequest>): _tanstack_react_query.UseMutationResult<{
|
|
75
57
|
status: "SUCCESS" | "REQUIRES_TENANT_SELECTION" | "REQUIRES_ROLE_SELECTION";
|
|
76
58
|
session?: {
|
|
@@ -20,7 +20,7 @@ declare function login(payload: LoginRequest): Promise<LoginResponse>;
|
|
|
20
20
|
declare function selectTenant(payload: SelectTenantRequest): Promise<LoginResponse>;
|
|
21
21
|
declare function switchRole(payload: SwitchRoleRequest): Promise<AuthSession>;
|
|
22
22
|
declare function logout(): Promise<void>;
|
|
23
|
-
declare function getMe(): Promise<
|
|
23
|
+
declare function getMe(): Promise<AuthSessionPayload>;
|
|
24
24
|
declare function changePassword(payload: ChangePasswordRequest): Promise<{
|
|
25
25
|
message: string;
|
|
26
26
|
}>;
|
|
@@ -50,27 +50,9 @@ declare function useConsumeImpersonation(options?: MutationOptionsCustom<AuthSes
|
|
|
50
50
|
token: string;
|
|
51
51
|
}, unknown>;
|
|
52
52
|
declare function useExitImpersonation(options?: MutationOptionsCustom<void, void>): _tanstack_react_query.UseMutationResult<void, SekolaosApiError, void, unknown>;
|
|
53
|
-
declare function useMe(options?: QueryOptionsWithoutKey<
|
|
53
|
+
declare function useMe(options?: QueryOptionsWithoutKey<AuthSessionPayload> & {
|
|
54
54
|
enabled?: boolean;
|
|
55
|
-
}): _tanstack_react_query.UseQueryResult<
|
|
56
|
-
tenantId: string;
|
|
57
|
-
userId: string;
|
|
58
|
-
tenantSlug: string;
|
|
59
|
-
activeAcademicYearId: string;
|
|
60
|
-
activeRole: {
|
|
61
|
-
permissions: Record<string, string[]>;
|
|
62
|
-
roleId: string;
|
|
63
|
-
roleName: string;
|
|
64
|
-
roleSlug: string;
|
|
65
|
-
};
|
|
66
|
-
availableRoles: {
|
|
67
|
-
permissions: Record<string, string[]>;
|
|
68
|
-
roleId: string;
|
|
69
|
-
roleName: string;
|
|
70
|
-
roleSlug: string;
|
|
71
|
-
}[];
|
|
72
|
-
isImpersonating: boolean;
|
|
73
|
-
}, SekolaosApiError>;
|
|
55
|
+
}): _tanstack_react_query.UseQueryResult<AuthSessionPayload, SekolaosApiError>;
|
|
74
56
|
declare function useLogin(options?: MutationOptionsCustom<LoginResponse, LoginRequest>): _tanstack_react_query.UseMutationResult<{
|
|
75
57
|
status: "SUCCESS" | "REQUIRES_TENANT_SELECTION" | "REQUIRES_ROLE_SELECTION";
|
|
76
58
|
session?: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { changePassword, consumeImpersonation, exitImpersonation, getMe, login, logout, selectTenant, switchRole, useChangePassword, useConsumeImpersonation, useExitImpersonation, useLogin, useLogout, useMe, useSelectTenant, useSwitchRole } from '../../chunk-
|
|
1
|
+
export { changePassword, consumeImpersonation, exitImpersonation, getMe, login, logout, selectTenant, switchRole, useChangePassword, useConsumeImpersonation, useExitImpersonation, useLogin, useLogout, useMe, useSelectTenant, useSwitchRole } from '../../chunk-KPGOAAOU.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 chunkUJN47JNP_cjs = require('../../chunk-UJN47JNP.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, "createClassroom", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkUJN47JNP_cjs.createClassroom; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "getClassroom", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkUJN47JNP_cjs.getClassroom; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "getClassroomStudents", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkUJN47JNP_cjs.getClassroomStudents; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "listClassrooms", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkUJN47JNP_cjs.listClassrooms; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "promoteClassStudents", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkUJN47JNP_cjs.promoteClassStudents; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "updateClassroom", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkUJN47JNP_cjs.updateClassroom; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "useClassroom", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkUJN47JNP_cjs.useClassroom; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "useClassroomStudents", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkUJN47JNP_cjs.useClassroomStudents; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "useClassrooms", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkUJN47JNP_cjs.useClassrooms; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "useCreateClassroom", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkUJN47JNP_cjs.useCreateClassroom; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "usePromoteClassStudents", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkUJN47JNP_cjs.usePromoteClassStudents; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "useUpdateClassroom", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkUJN47JNP_cjs.useUpdateClassroom; }
|
|
59
59
|
});
|
|
60
60
|
//# sourceMappingURL=index.cjs.map
|
|
61
61
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { createClassroom, getClassroom, getClassroomStudents, listClassrooms, promoteClassStudents, updateClassroom, useClassroom, useClassroomStudents, useClassrooms, useCreateClassroom, usePromoteClassStudents, useUpdateClassroom } from '../../chunk-
|
|
1
|
+
export { createClassroom, getClassroom, getClassroomStudents, listClassrooms, promoteClassStudents, updateClassroom, useClassroom, useClassroomStudents, useClassrooms, useCreateClassroom, usePromoteClassStudents, useUpdateClassroom } from '../../chunk-B2BMTZUU.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
|