@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,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 };