@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.
- 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 +137 -4
- package/README.md +0 -3
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
+
import { CreateLeadInquiryInput, LeadInquiry, LeadStatus, DemoScheduleRequestInput } from '@sekolaos/shared-schema';
|
|
3
|
+
export { CreateLeadInquiryInput, DemoScheduleRequestInput, LeadInquiry, LeadStatus } from '@sekolaos/shared-schema';
|
|
4
|
+
|
|
5
|
+
declare function createLeadInquiry(payload: CreateLeadInquiryInput): Promise<LeadInquiry>;
|
|
6
|
+
declare function requestDemoSchedule(payload: DemoScheduleRequestInput): Promise<LeadInquiry>;
|
|
7
|
+
declare function listLeads(params?: {
|
|
8
|
+
status?: LeadStatus;
|
|
9
|
+
page?: number;
|
|
10
|
+
limit?: number;
|
|
11
|
+
search?: string;
|
|
12
|
+
}): Promise<LeadInquiry[]>;
|
|
13
|
+
declare function updateLeadStatus(id: string, status: LeadStatus): Promise<LeadInquiry>;
|
|
14
|
+
declare function useLeads(params?: {
|
|
15
|
+
status?: LeadStatus;
|
|
16
|
+
page?: number;
|
|
17
|
+
limit?: number;
|
|
18
|
+
search?: string;
|
|
19
|
+
}): _tanstack_react_query.UseQueryResult<{
|
|
20
|
+
status: "BARU" | "DIHUBUNGI" | "DEMO_TERJADWAL" | "MENUNGGU_KEPUTUSAN" | "CLOSING_DEAL" | "DITOLAK";
|
|
21
|
+
id: string;
|
|
22
|
+
createdAt: string;
|
|
23
|
+
updatedAt: string;
|
|
24
|
+
source: string;
|
|
25
|
+
schoolName: string;
|
|
26
|
+
contactName: string;
|
|
27
|
+
role: "GURU" | "KEPALA_SEKOLAH" | "WAKAKUR" | "TATA_USAHA" | "PENGURUS_YAYASAN" | "OPERATOR_IT" | "LAINNYA";
|
|
28
|
+
whatsappNumber: string;
|
|
29
|
+
npsn?: string | null | undefined;
|
|
30
|
+
email?: string | null | undefined;
|
|
31
|
+
notes?: string | null | undefined;
|
|
32
|
+
estimatedStudents?: number | null | undefined;
|
|
33
|
+
}[], Error>;
|
|
34
|
+
declare function useCreateLeadInquiry(): _tanstack_react_query.UseMutationResult<{
|
|
35
|
+
status: "BARU" | "DIHUBUNGI" | "DEMO_TERJADWAL" | "MENUNGGU_KEPUTUSAN" | "CLOSING_DEAL" | "DITOLAK";
|
|
36
|
+
id: string;
|
|
37
|
+
createdAt: string;
|
|
38
|
+
updatedAt: string;
|
|
39
|
+
source: string;
|
|
40
|
+
schoolName: string;
|
|
41
|
+
contactName: string;
|
|
42
|
+
role: "GURU" | "KEPALA_SEKOLAH" | "WAKAKUR" | "TATA_USAHA" | "PENGURUS_YAYASAN" | "OPERATOR_IT" | "LAINNYA";
|
|
43
|
+
whatsappNumber: string;
|
|
44
|
+
npsn?: string | null | undefined;
|
|
45
|
+
email?: string | null | undefined;
|
|
46
|
+
notes?: string | null | undefined;
|
|
47
|
+
estimatedStudents?: number | null | undefined;
|
|
48
|
+
}, Error, {
|
|
49
|
+
schoolName: string;
|
|
50
|
+
contactName: string;
|
|
51
|
+
role: "GURU" | "KEPALA_SEKOLAH" | "WAKAKUR" | "TATA_USAHA" | "PENGURUS_YAYASAN" | "OPERATOR_IT" | "LAINNYA";
|
|
52
|
+
whatsappNumber: string;
|
|
53
|
+
npsn?: string | null | undefined;
|
|
54
|
+
email?: string | null | undefined;
|
|
55
|
+
notes?: string | null | undefined;
|
|
56
|
+
estimatedStudents?: number | null | undefined;
|
|
57
|
+
}, unknown>;
|
|
58
|
+
declare function useRequestDemoSchedule(): _tanstack_react_query.UseMutationResult<{
|
|
59
|
+
status: "BARU" | "DIHUBUNGI" | "DEMO_TERJADWAL" | "MENUNGGU_KEPUTUSAN" | "CLOSING_DEAL" | "DITOLAK";
|
|
60
|
+
id: string;
|
|
61
|
+
createdAt: string;
|
|
62
|
+
updatedAt: string;
|
|
63
|
+
source: string;
|
|
64
|
+
schoolName: string;
|
|
65
|
+
contactName: string;
|
|
66
|
+
role: "GURU" | "KEPALA_SEKOLAH" | "WAKAKUR" | "TATA_USAHA" | "PENGURUS_YAYASAN" | "OPERATOR_IT" | "LAINNYA";
|
|
67
|
+
whatsappNumber: string;
|
|
68
|
+
npsn?: string | null | undefined;
|
|
69
|
+
email?: string | null | undefined;
|
|
70
|
+
notes?: string | null | undefined;
|
|
71
|
+
estimatedStudents?: number | null | undefined;
|
|
72
|
+
}, Error, {
|
|
73
|
+
schoolName: string;
|
|
74
|
+
contactName: string;
|
|
75
|
+
role: "GURU" | "KEPALA_SEKOLAH" | "WAKAKUR" | "TATA_USAHA" | "PENGURUS_YAYASAN" | "OPERATOR_IT" | "LAINNYA";
|
|
76
|
+
whatsappNumber: string;
|
|
77
|
+
preferredDate: string;
|
|
78
|
+
presentationFormat: "ONLINE" | "TATAP_MUKA";
|
|
79
|
+
npsn?: string | null | undefined;
|
|
80
|
+
email?: string | null | undefined;
|
|
81
|
+
notes?: string | null | undefined;
|
|
82
|
+
estimatedStudents?: number | null | undefined;
|
|
83
|
+
preferredTime?: string | null | undefined;
|
|
84
|
+
}, unknown>;
|
|
85
|
+
declare function useUpdateLeadStatus(): _tanstack_react_query.UseMutationResult<{
|
|
86
|
+
status: "BARU" | "DIHUBUNGI" | "DEMO_TERJADWAL" | "MENUNGGU_KEPUTUSAN" | "CLOSING_DEAL" | "DITOLAK";
|
|
87
|
+
id: string;
|
|
88
|
+
createdAt: string;
|
|
89
|
+
updatedAt: string;
|
|
90
|
+
source: string;
|
|
91
|
+
schoolName: string;
|
|
92
|
+
contactName: string;
|
|
93
|
+
role: "GURU" | "KEPALA_SEKOLAH" | "WAKAKUR" | "TATA_USAHA" | "PENGURUS_YAYASAN" | "OPERATOR_IT" | "LAINNYA";
|
|
94
|
+
whatsappNumber: string;
|
|
95
|
+
npsn?: string | null | undefined;
|
|
96
|
+
email?: string | null | undefined;
|
|
97
|
+
notes?: string | null | undefined;
|
|
98
|
+
estimatedStudents?: number | null | undefined;
|
|
99
|
+
}, Error, {
|
|
100
|
+
id: string;
|
|
101
|
+
status: LeadStatus;
|
|
102
|
+
}, unknown>;
|
|
103
|
+
|
|
104
|
+
export { createLeadInquiry, listLeads, requestDemoSchedule, updateLeadStatus, useCreateLeadInquiry, useLeads, useRequestDemoSchedule, useUpdateLeadStatus };
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
+
import { CreateLeadInquiryInput, LeadInquiry, LeadStatus, DemoScheduleRequestInput } from '@sekolaos/shared-schema';
|
|
3
|
+
export { CreateLeadInquiryInput, DemoScheduleRequestInput, LeadInquiry, LeadStatus } from '@sekolaos/shared-schema';
|
|
4
|
+
|
|
5
|
+
declare function createLeadInquiry(payload: CreateLeadInquiryInput): Promise<LeadInquiry>;
|
|
6
|
+
declare function requestDemoSchedule(payload: DemoScheduleRequestInput): Promise<LeadInquiry>;
|
|
7
|
+
declare function listLeads(params?: {
|
|
8
|
+
status?: LeadStatus;
|
|
9
|
+
page?: number;
|
|
10
|
+
limit?: number;
|
|
11
|
+
search?: string;
|
|
12
|
+
}): Promise<LeadInquiry[]>;
|
|
13
|
+
declare function updateLeadStatus(id: string, status: LeadStatus): Promise<LeadInquiry>;
|
|
14
|
+
declare function useLeads(params?: {
|
|
15
|
+
status?: LeadStatus;
|
|
16
|
+
page?: number;
|
|
17
|
+
limit?: number;
|
|
18
|
+
search?: string;
|
|
19
|
+
}): _tanstack_react_query.UseQueryResult<{
|
|
20
|
+
status: "BARU" | "DIHUBUNGI" | "DEMO_TERJADWAL" | "MENUNGGU_KEPUTUSAN" | "CLOSING_DEAL" | "DITOLAK";
|
|
21
|
+
id: string;
|
|
22
|
+
createdAt: string;
|
|
23
|
+
updatedAt: string;
|
|
24
|
+
source: string;
|
|
25
|
+
schoolName: string;
|
|
26
|
+
contactName: string;
|
|
27
|
+
role: "GURU" | "KEPALA_SEKOLAH" | "WAKAKUR" | "TATA_USAHA" | "PENGURUS_YAYASAN" | "OPERATOR_IT" | "LAINNYA";
|
|
28
|
+
whatsappNumber: string;
|
|
29
|
+
npsn?: string | null | undefined;
|
|
30
|
+
email?: string | null | undefined;
|
|
31
|
+
notes?: string | null | undefined;
|
|
32
|
+
estimatedStudents?: number | null | undefined;
|
|
33
|
+
}[], Error>;
|
|
34
|
+
declare function useCreateLeadInquiry(): _tanstack_react_query.UseMutationResult<{
|
|
35
|
+
status: "BARU" | "DIHUBUNGI" | "DEMO_TERJADWAL" | "MENUNGGU_KEPUTUSAN" | "CLOSING_DEAL" | "DITOLAK";
|
|
36
|
+
id: string;
|
|
37
|
+
createdAt: string;
|
|
38
|
+
updatedAt: string;
|
|
39
|
+
source: string;
|
|
40
|
+
schoolName: string;
|
|
41
|
+
contactName: string;
|
|
42
|
+
role: "GURU" | "KEPALA_SEKOLAH" | "WAKAKUR" | "TATA_USAHA" | "PENGURUS_YAYASAN" | "OPERATOR_IT" | "LAINNYA";
|
|
43
|
+
whatsappNumber: string;
|
|
44
|
+
npsn?: string | null | undefined;
|
|
45
|
+
email?: string | null | undefined;
|
|
46
|
+
notes?: string | null | undefined;
|
|
47
|
+
estimatedStudents?: number | null | undefined;
|
|
48
|
+
}, Error, {
|
|
49
|
+
schoolName: string;
|
|
50
|
+
contactName: string;
|
|
51
|
+
role: "GURU" | "KEPALA_SEKOLAH" | "WAKAKUR" | "TATA_USAHA" | "PENGURUS_YAYASAN" | "OPERATOR_IT" | "LAINNYA";
|
|
52
|
+
whatsappNumber: string;
|
|
53
|
+
npsn?: string | null | undefined;
|
|
54
|
+
email?: string | null | undefined;
|
|
55
|
+
notes?: string | null | undefined;
|
|
56
|
+
estimatedStudents?: number | null | undefined;
|
|
57
|
+
}, unknown>;
|
|
58
|
+
declare function useRequestDemoSchedule(): _tanstack_react_query.UseMutationResult<{
|
|
59
|
+
status: "BARU" | "DIHUBUNGI" | "DEMO_TERJADWAL" | "MENUNGGU_KEPUTUSAN" | "CLOSING_DEAL" | "DITOLAK";
|
|
60
|
+
id: string;
|
|
61
|
+
createdAt: string;
|
|
62
|
+
updatedAt: string;
|
|
63
|
+
source: string;
|
|
64
|
+
schoolName: string;
|
|
65
|
+
contactName: string;
|
|
66
|
+
role: "GURU" | "KEPALA_SEKOLAH" | "WAKAKUR" | "TATA_USAHA" | "PENGURUS_YAYASAN" | "OPERATOR_IT" | "LAINNYA";
|
|
67
|
+
whatsappNumber: string;
|
|
68
|
+
npsn?: string | null | undefined;
|
|
69
|
+
email?: string | null | undefined;
|
|
70
|
+
notes?: string | null | undefined;
|
|
71
|
+
estimatedStudents?: number | null | undefined;
|
|
72
|
+
}, Error, {
|
|
73
|
+
schoolName: string;
|
|
74
|
+
contactName: string;
|
|
75
|
+
role: "GURU" | "KEPALA_SEKOLAH" | "WAKAKUR" | "TATA_USAHA" | "PENGURUS_YAYASAN" | "OPERATOR_IT" | "LAINNYA";
|
|
76
|
+
whatsappNumber: string;
|
|
77
|
+
preferredDate: string;
|
|
78
|
+
presentationFormat: "ONLINE" | "TATAP_MUKA";
|
|
79
|
+
npsn?: string | null | undefined;
|
|
80
|
+
email?: string | null | undefined;
|
|
81
|
+
notes?: string | null | undefined;
|
|
82
|
+
estimatedStudents?: number | null | undefined;
|
|
83
|
+
preferredTime?: string | null | undefined;
|
|
84
|
+
}, unknown>;
|
|
85
|
+
declare function useUpdateLeadStatus(): _tanstack_react_query.UseMutationResult<{
|
|
86
|
+
status: "BARU" | "DIHUBUNGI" | "DEMO_TERJADWAL" | "MENUNGGU_KEPUTUSAN" | "CLOSING_DEAL" | "DITOLAK";
|
|
87
|
+
id: string;
|
|
88
|
+
createdAt: string;
|
|
89
|
+
updatedAt: string;
|
|
90
|
+
source: string;
|
|
91
|
+
schoolName: string;
|
|
92
|
+
contactName: string;
|
|
93
|
+
role: "GURU" | "KEPALA_SEKOLAH" | "WAKAKUR" | "TATA_USAHA" | "PENGURUS_YAYASAN" | "OPERATOR_IT" | "LAINNYA";
|
|
94
|
+
whatsappNumber: string;
|
|
95
|
+
npsn?: string | null | undefined;
|
|
96
|
+
email?: string | null | undefined;
|
|
97
|
+
notes?: string | null | undefined;
|
|
98
|
+
estimatedStudents?: number | null | undefined;
|
|
99
|
+
}, Error, {
|
|
100
|
+
id: string;
|
|
101
|
+
status: LeadStatus;
|
|
102
|
+
}, unknown>;
|
|
103
|
+
|
|
104
|
+
export { createLeadInquiry, listLeads, requestDemoSchedule, updateLeadStatus, useCreateLeadInquiry, useLeads, useRequestDemoSchedule, useUpdateLeadStatus };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { createLeadInquiry, listLeads, requestDemoSchedule, updateLeadStatus, useCreateLeadInquiry, useLeads, useRequestDemoSchedule, useUpdateLeadStatus } from '../../chunk-6UCHRWSL.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,76 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkDNNK2DMM_cjs = require('../../chunk-DNNK2DMM.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, "bulkImportStudents", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkDNNK2DMM_cjs.bulkImportStudents; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "createStudent", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkDNNK2DMM_cjs.createStudent; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "deleteStudent", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunkDNNK2DMM_cjs.deleteStudent; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "getStudent", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return chunkDNNK2DMM_cjs.getStudent; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "getStudentKioskCache", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunkDNNK2DMM_cjs.getStudentKioskCache; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "getStudentQrPayload", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return chunkDNNK2DMM_cjs.getStudentQrPayload; }
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, "listStudents", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () { return chunkDNNK2DMM_cjs.listStudents; }
|
|
38
|
+
});
|
|
39
|
+
Object.defineProperty(exports, "updateStudent", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function () { return chunkDNNK2DMM_cjs.updateStudent; }
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(exports, "useBulkImportStudents", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () { return chunkDNNK2DMM_cjs.useBulkImportStudents; }
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(exports, "useCreateStudent", {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: function () { return chunkDNNK2DMM_cjs.useCreateStudent; }
|
|
50
|
+
});
|
|
51
|
+
Object.defineProperty(exports, "useDeleteStudent", {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function () { return chunkDNNK2DMM_cjs.useDeleteStudent; }
|
|
54
|
+
});
|
|
55
|
+
Object.defineProperty(exports, "useStudent", {
|
|
56
|
+
enumerable: true,
|
|
57
|
+
get: function () { return chunkDNNK2DMM_cjs.useStudent; }
|
|
58
|
+
});
|
|
59
|
+
Object.defineProperty(exports, "useStudentKioskCache", {
|
|
60
|
+
enumerable: true,
|
|
61
|
+
get: function () { return chunkDNNK2DMM_cjs.useStudentKioskCache; }
|
|
62
|
+
});
|
|
63
|
+
Object.defineProperty(exports, "useStudentQrCode", {
|
|
64
|
+
enumerable: true,
|
|
65
|
+
get: function () { return chunkDNNK2DMM_cjs.useStudentQrCode; }
|
|
66
|
+
});
|
|
67
|
+
Object.defineProperty(exports, "useStudents", {
|
|
68
|
+
enumerable: true,
|
|
69
|
+
get: function () { return chunkDNNK2DMM_cjs.useStudents; }
|
|
70
|
+
});
|
|
71
|
+
Object.defineProperty(exports, "useUpdateStudent", {
|
|
72
|
+
enumerable: true,
|
|
73
|
+
get: function () { return chunkDNNK2DMM_cjs.useUpdateStudent; }
|
|
74
|
+
});
|
|
75
|
+
//# sourceMappingURL=index.cjs.map
|
|
76
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
+
import { BulkImportStudentRequest, BulkImportStudentResponse, CreateStudentInput, Student, StudentOfflineCache, StudentQrPayload, StudentListQuery, UpdateStudentInput } from '@sekolaos/shared-schema';
|
|
3
|
+
export { BulkImportStudentRequest, BulkImportStudentResponse, CreateStudentInput, Student, StudentListQuery, StudentOfflineCache, StudentQrPayload, UpdateStudentInput } from '@sekolaos/shared-schema';
|
|
4
|
+
|
|
5
|
+
declare function listStudents(params?: Partial<StudentListQuery>): Promise<Student[]>;
|
|
6
|
+
declare function getStudent(id: string): Promise<Student>;
|
|
7
|
+
declare function createStudent(payload: CreateStudentInput): Promise<Student>;
|
|
8
|
+
declare function updateStudent(id: string, payload: UpdateStudentInput): Promise<Student>;
|
|
9
|
+
declare function deleteStudent(id: string): Promise<void>;
|
|
10
|
+
/** Cache siswa ringkas untuk mode offline kiosk absensi. */
|
|
11
|
+
declare function getStudentKioskCache(): Promise<StudentOfflineCache[]>;
|
|
12
|
+
declare function getStudentQrPayload(id: string): Promise<StudentQrPayload>;
|
|
13
|
+
declare function bulkImportStudents(payload: BulkImportStudentRequest): Promise<BulkImportStudentResponse>;
|
|
14
|
+
declare function useStudents(params?: Partial<StudentListQuery>): _tanstack_react_query.UseQueryResult<{
|
|
15
|
+
id: string;
|
|
16
|
+
tenantId: string;
|
|
17
|
+
isActive: boolean;
|
|
18
|
+
classroomId: string;
|
|
19
|
+
classroomName: string;
|
|
20
|
+
fullName: string;
|
|
21
|
+
nis: string;
|
|
22
|
+
gender: "L" | "P";
|
|
23
|
+
qrCodeValue: string;
|
|
24
|
+
nisn?: string | null | undefined;
|
|
25
|
+
parentPhone?: string | null | undefined;
|
|
26
|
+
photoUrl?: string | null | undefined;
|
|
27
|
+
}[], Error>;
|
|
28
|
+
declare function useStudent(id: string, options?: {
|
|
29
|
+
enabled?: boolean;
|
|
30
|
+
}): _tanstack_react_query.UseQueryResult<{
|
|
31
|
+
id: string;
|
|
32
|
+
tenantId: string;
|
|
33
|
+
isActive: boolean;
|
|
34
|
+
classroomId: string;
|
|
35
|
+
classroomName: string;
|
|
36
|
+
fullName: string;
|
|
37
|
+
nis: string;
|
|
38
|
+
gender: "L" | "P";
|
|
39
|
+
qrCodeValue: string;
|
|
40
|
+
nisn?: string | null | undefined;
|
|
41
|
+
parentPhone?: string | null | undefined;
|
|
42
|
+
photoUrl?: string | null | undefined;
|
|
43
|
+
}, Error>;
|
|
44
|
+
declare function useStudentKioskCache(options?: {
|
|
45
|
+
enabled?: boolean;
|
|
46
|
+
}): _tanstack_react_query.UseQueryResult<{
|
|
47
|
+
id: string;
|
|
48
|
+
classroomId: string;
|
|
49
|
+
classroomName: string;
|
|
50
|
+
fullName: string;
|
|
51
|
+
nis: string;
|
|
52
|
+
qrCodeValue: string;
|
|
53
|
+
}[], Error>;
|
|
54
|
+
declare function useStudentQrCode(id: string, options?: {
|
|
55
|
+
enabled?: boolean;
|
|
56
|
+
}): _tanstack_react_query.UseQueryResult<{
|
|
57
|
+
nis: string;
|
|
58
|
+
tId: string;
|
|
59
|
+
sig?: string | undefined;
|
|
60
|
+
}, Error>;
|
|
61
|
+
declare function useCreateStudent(): _tanstack_react_query.UseMutationResult<{
|
|
62
|
+
id: string;
|
|
63
|
+
tenantId: string;
|
|
64
|
+
isActive: boolean;
|
|
65
|
+
classroomId: string;
|
|
66
|
+
classroomName: string;
|
|
67
|
+
fullName: string;
|
|
68
|
+
nis: string;
|
|
69
|
+
gender: "L" | "P";
|
|
70
|
+
qrCodeValue: string;
|
|
71
|
+
nisn?: string | null | undefined;
|
|
72
|
+
parentPhone?: string | null | undefined;
|
|
73
|
+
photoUrl?: string | null | undefined;
|
|
74
|
+
}, Error, {
|
|
75
|
+
isActive: boolean;
|
|
76
|
+
classroomId: string;
|
|
77
|
+
fullName: string;
|
|
78
|
+
nis: string;
|
|
79
|
+
gender: "L" | "P";
|
|
80
|
+
nisn?: string | null | undefined;
|
|
81
|
+
parentPhone?: string | null | undefined;
|
|
82
|
+
qrCodeValue?: string | undefined;
|
|
83
|
+
photoUrl?: string | null | undefined;
|
|
84
|
+
}, unknown>;
|
|
85
|
+
declare function useUpdateStudent(): _tanstack_react_query.UseMutationResult<{
|
|
86
|
+
id: string;
|
|
87
|
+
tenantId: string;
|
|
88
|
+
isActive: boolean;
|
|
89
|
+
classroomId: string;
|
|
90
|
+
classroomName: string;
|
|
91
|
+
fullName: string;
|
|
92
|
+
nis: string;
|
|
93
|
+
gender: "L" | "P";
|
|
94
|
+
qrCodeValue: string;
|
|
95
|
+
nisn?: string | null | undefined;
|
|
96
|
+
parentPhone?: string | null | undefined;
|
|
97
|
+
photoUrl?: string | null | undefined;
|
|
98
|
+
}, Error, {
|
|
99
|
+
id: string;
|
|
100
|
+
payload: UpdateStudentInput;
|
|
101
|
+
}, unknown>;
|
|
102
|
+
declare function useDeleteStudent(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
|
|
103
|
+
declare function useBulkImportStudents(): _tanstack_react_query.UseMutationResult<{
|
|
104
|
+
errors: {
|
|
105
|
+
message: string;
|
|
106
|
+
row: number;
|
|
107
|
+
nis?: string | undefined;
|
|
108
|
+
}[];
|
|
109
|
+
totalProcessed: number;
|
|
110
|
+
totalSuccess: number;
|
|
111
|
+
totalFailed: number;
|
|
112
|
+
}, Error, {
|
|
113
|
+
academicYearId: string;
|
|
114
|
+
students: {
|
|
115
|
+
fullName: string;
|
|
116
|
+
nis: string;
|
|
117
|
+
gender: "L" | "P";
|
|
118
|
+
className: string;
|
|
119
|
+
nisn?: string | null | undefined;
|
|
120
|
+
parentPhone?: string | null | undefined;
|
|
121
|
+
}[];
|
|
122
|
+
defaultClassroomId?: string | undefined;
|
|
123
|
+
}, unknown>;
|
|
124
|
+
|
|
125
|
+
export { bulkImportStudents, createStudent, deleteStudent, getStudent, getStudentKioskCache, getStudentQrPayload, listStudents, updateStudent, useBulkImportStudents, useCreateStudent, useDeleteStudent, useStudent, useStudentKioskCache, useStudentQrCode, useStudents, useUpdateStudent };
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
+
import { BulkImportStudentRequest, BulkImportStudentResponse, CreateStudentInput, Student, StudentOfflineCache, StudentQrPayload, StudentListQuery, UpdateStudentInput } from '@sekolaos/shared-schema';
|
|
3
|
+
export { BulkImportStudentRequest, BulkImportStudentResponse, CreateStudentInput, Student, StudentListQuery, StudentOfflineCache, StudentQrPayload, UpdateStudentInput } from '@sekolaos/shared-schema';
|
|
4
|
+
|
|
5
|
+
declare function listStudents(params?: Partial<StudentListQuery>): Promise<Student[]>;
|
|
6
|
+
declare function getStudent(id: string): Promise<Student>;
|
|
7
|
+
declare function createStudent(payload: CreateStudentInput): Promise<Student>;
|
|
8
|
+
declare function updateStudent(id: string, payload: UpdateStudentInput): Promise<Student>;
|
|
9
|
+
declare function deleteStudent(id: string): Promise<void>;
|
|
10
|
+
/** Cache siswa ringkas untuk mode offline kiosk absensi. */
|
|
11
|
+
declare function getStudentKioskCache(): Promise<StudentOfflineCache[]>;
|
|
12
|
+
declare function getStudentQrPayload(id: string): Promise<StudentQrPayload>;
|
|
13
|
+
declare function bulkImportStudents(payload: BulkImportStudentRequest): Promise<BulkImportStudentResponse>;
|
|
14
|
+
declare function useStudents(params?: Partial<StudentListQuery>): _tanstack_react_query.UseQueryResult<{
|
|
15
|
+
id: string;
|
|
16
|
+
tenantId: string;
|
|
17
|
+
isActive: boolean;
|
|
18
|
+
classroomId: string;
|
|
19
|
+
classroomName: string;
|
|
20
|
+
fullName: string;
|
|
21
|
+
nis: string;
|
|
22
|
+
gender: "L" | "P";
|
|
23
|
+
qrCodeValue: string;
|
|
24
|
+
nisn?: string | null | undefined;
|
|
25
|
+
parentPhone?: string | null | undefined;
|
|
26
|
+
photoUrl?: string | null | undefined;
|
|
27
|
+
}[], Error>;
|
|
28
|
+
declare function useStudent(id: string, options?: {
|
|
29
|
+
enabled?: boolean;
|
|
30
|
+
}): _tanstack_react_query.UseQueryResult<{
|
|
31
|
+
id: string;
|
|
32
|
+
tenantId: string;
|
|
33
|
+
isActive: boolean;
|
|
34
|
+
classroomId: string;
|
|
35
|
+
classroomName: string;
|
|
36
|
+
fullName: string;
|
|
37
|
+
nis: string;
|
|
38
|
+
gender: "L" | "P";
|
|
39
|
+
qrCodeValue: string;
|
|
40
|
+
nisn?: string | null | undefined;
|
|
41
|
+
parentPhone?: string | null | undefined;
|
|
42
|
+
photoUrl?: string | null | undefined;
|
|
43
|
+
}, Error>;
|
|
44
|
+
declare function useStudentKioskCache(options?: {
|
|
45
|
+
enabled?: boolean;
|
|
46
|
+
}): _tanstack_react_query.UseQueryResult<{
|
|
47
|
+
id: string;
|
|
48
|
+
classroomId: string;
|
|
49
|
+
classroomName: string;
|
|
50
|
+
fullName: string;
|
|
51
|
+
nis: string;
|
|
52
|
+
qrCodeValue: string;
|
|
53
|
+
}[], Error>;
|
|
54
|
+
declare function useStudentQrCode(id: string, options?: {
|
|
55
|
+
enabled?: boolean;
|
|
56
|
+
}): _tanstack_react_query.UseQueryResult<{
|
|
57
|
+
nis: string;
|
|
58
|
+
tId: string;
|
|
59
|
+
sig?: string | undefined;
|
|
60
|
+
}, Error>;
|
|
61
|
+
declare function useCreateStudent(): _tanstack_react_query.UseMutationResult<{
|
|
62
|
+
id: string;
|
|
63
|
+
tenantId: string;
|
|
64
|
+
isActive: boolean;
|
|
65
|
+
classroomId: string;
|
|
66
|
+
classroomName: string;
|
|
67
|
+
fullName: string;
|
|
68
|
+
nis: string;
|
|
69
|
+
gender: "L" | "P";
|
|
70
|
+
qrCodeValue: string;
|
|
71
|
+
nisn?: string | null | undefined;
|
|
72
|
+
parentPhone?: string | null | undefined;
|
|
73
|
+
photoUrl?: string | null | undefined;
|
|
74
|
+
}, Error, {
|
|
75
|
+
isActive: boolean;
|
|
76
|
+
classroomId: string;
|
|
77
|
+
fullName: string;
|
|
78
|
+
nis: string;
|
|
79
|
+
gender: "L" | "P";
|
|
80
|
+
nisn?: string | null | undefined;
|
|
81
|
+
parentPhone?: string | null | undefined;
|
|
82
|
+
qrCodeValue?: string | undefined;
|
|
83
|
+
photoUrl?: string | null | undefined;
|
|
84
|
+
}, unknown>;
|
|
85
|
+
declare function useUpdateStudent(): _tanstack_react_query.UseMutationResult<{
|
|
86
|
+
id: string;
|
|
87
|
+
tenantId: string;
|
|
88
|
+
isActive: boolean;
|
|
89
|
+
classroomId: string;
|
|
90
|
+
classroomName: string;
|
|
91
|
+
fullName: string;
|
|
92
|
+
nis: string;
|
|
93
|
+
gender: "L" | "P";
|
|
94
|
+
qrCodeValue: string;
|
|
95
|
+
nisn?: string | null | undefined;
|
|
96
|
+
parentPhone?: string | null | undefined;
|
|
97
|
+
photoUrl?: string | null | undefined;
|
|
98
|
+
}, Error, {
|
|
99
|
+
id: string;
|
|
100
|
+
payload: UpdateStudentInput;
|
|
101
|
+
}, unknown>;
|
|
102
|
+
declare function useDeleteStudent(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
|
|
103
|
+
declare function useBulkImportStudents(): _tanstack_react_query.UseMutationResult<{
|
|
104
|
+
errors: {
|
|
105
|
+
message: string;
|
|
106
|
+
row: number;
|
|
107
|
+
nis?: string | undefined;
|
|
108
|
+
}[];
|
|
109
|
+
totalProcessed: number;
|
|
110
|
+
totalSuccess: number;
|
|
111
|
+
totalFailed: number;
|
|
112
|
+
}, Error, {
|
|
113
|
+
academicYearId: string;
|
|
114
|
+
students: {
|
|
115
|
+
fullName: string;
|
|
116
|
+
nis: string;
|
|
117
|
+
gender: "L" | "P";
|
|
118
|
+
className: string;
|
|
119
|
+
nisn?: string | null | undefined;
|
|
120
|
+
parentPhone?: string | null | undefined;
|
|
121
|
+
}[];
|
|
122
|
+
defaultClassroomId?: string | undefined;
|
|
123
|
+
}, unknown>;
|
|
124
|
+
|
|
125
|
+
export { bulkImportStudents, createStudent, deleteStudent, getStudent, getStudentKioskCache, getStudentQrPayload, listStudents, updateStudent, useBulkImportStudents, useCreateStudent, useDeleteStudent, useStudent, useStudentKioskCache, useStudentQrCode, useStudents, useUpdateStudent };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { bulkImportStudents, createStudent, deleteStudent, getStudent, getStudentKioskCache, getStudentQrPayload, listStudents, updateStudent, useBulkImportStudents, useCreateStudent, useDeleteStudent, useStudent, useStudentKioskCache, useStudentQrCode, useStudents, useUpdateStudent } from '../../chunk-GUJVCKEN.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,36 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk4ECXVAIQ_cjs = require('../../chunk-4ECXVAIQ.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, "createSubject", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunk4ECXVAIQ_cjs.createSubject; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "listSubjects", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunk4ECXVAIQ_cjs.listSubjects; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "updateSubject", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunk4ECXVAIQ_cjs.updateSubject; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "useCreateSubject", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return chunk4ECXVAIQ_cjs.useCreateSubject; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "useSubjects", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunk4ECXVAIQ_cjs.useSubjects; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "useUpdateSubject", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return chunk4ECXVAIQ_cjs.useUpdateSubject; }
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=index.cjs.map
|
|
36
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|
|
@@ -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 };
|