@sekolaos/shared-api 1.1.1 → 1.3.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 (129) hide show
  1. package/dist/{chunk-3RS57C3E.cjs → chunk-23XAR4OH.cjs} +33 -25
  2. package/dist/chunk-23XAR4OH.cjs.map +1 -0
  3. package/dist/{chunk-YTF4Z7I4.js → chunk-2ZN6MTBE.js} +3 -3
  4. package/dist/{chunk-YTF4Z7I4.js.map → chunk-2ZN6MTBE.js.map} +1 -1
  5. package/dist/{chunk-QJSOSQ7M.cjs → chunk-3TOBH3YY.cjs} +8 -3
  6. package/dist/chunk-3TOBH3YY.cjs.map +1 -0
  7. package/dist/chunk-5KSKHZWB.cjs +16 -0
  8. package/dist/chunk-5KSKHZWB.cjs.map +1 -0
  9. package/dist/{chunk-AOBHBJ2G.cjs → chunk-AMKVNGY4.cjs} +18 -15
  10. package/dist/chunk-AMKVNGY4.cjs.map +1 -0
  11. package/dist/{chunk-R37QQTQS.cjs → chunk-BBJBCD2K.cjs} +8 -8
  12. package/dist/{chunk-R37QQTQS.cjs.map → chunk-BBJBCD2K.cjs.map} +1 -1
  13. package/dist/{chunk-RMU634GQ.js → chunk-CSEMYBBZ.js} +4 -4
  14. package/dist/{chunk-RMU634GQ.js.map → chunk-CSEMYBBZ.js.map} +1 -1
  15. package/dist/{chunk-6UCHRWSL.js → chunk-DATSHIPR.js} +4 -4
  16. package/dist/{chunk-6UCHRWSL.js.map → chunk-DATSHIPR.js.map} +1 -1
  17. package/dist/{chunk-DMEWJ56D.js → chunk-FVPR2MOB.js} +11 -8
  18. package/dist/chunk-FVPR2MOB.js.map +1 -0
  19. package/dist/chunk-H3CE34TG.js +14 -0
  20. package/dist/chunk-H3CE34TG.js.map +1 -0
  21. package/dist/{chunk-XVG5Z6B5.cjs → chunk-HISL2IF2.cjs} +4 -3
  22. package/dist/chunk-HISL2IF2.cjs.map +1 -0
  23. package/dist/{chunk-S6QFHKCE.js → chunk-ID3UGFZZ.js} +14 -11
  24. package/dist/chunk-ID3UGFZZ.js.map +1 -0
  25. package/dist/chunk-JGCFIGB3.js +129 -0
  26. package/dist/chunk-JGCFIGB3.js.map +1 -0
  27. package/dist/{chunk-R7ACSDOA.cjs → chunk-JVX37TC5.cjs} +19 -16
  28. package/dist/chunk-JVX37TC5.cjs.map +1 -0
  29. package/dist/{chunk-CBIDGS35.cjs → chunk-KB4TZTAC.cjs} +11 -11
  30. package/dist/{chunk-CBIDGS35.cjs.map → chunk-KB4TZTAC.cjs.map} +1 -1
  31. package/dist/{chunk-TSLEYQKD.cjs → chunk-LS4ZQRFS.cjs} +13 -13
  32. package/dist/{chunk-TSLEYQKD.cjs.map → chunk-LS4ZQRFS.cjs.map} +1 -1
  33. package/dist/{chunk-4ECXVAIQ.cjs → chunk-N4OBLYCQ.cjs} +8 -8
  34. package/dist/{chunk-4ECXVAIQ.cjs.map → chunk-N4OBLYCQ.cjs.map} +1 -1
  35. package/dist/{chunk-ZHCA7HVE.js → chunk-NCENQB6W.js} +10 -8
  36. package/dist/chunk-NCENQB6W.js.map +1 -0
  37. package/dist/{chunk-LA7MRXWR.js → chunk-NPR4GLFZ.js} +4 -4
  38. package/dist/{chunk-LA7MRXWR.js.map → chunk-NPR4GLFZ.js.map} +1 -1
  39. package/dist/chunk-OVHSXH7Z.cjs +102 -0
  40. package/dist/chunk-OVHSXH7Z.cjs.map +1 -0
  41. package/dist/chunk-PMN2DTYF.js +89 -0
  42. package/dist/chunk-PMN2DTYF.js.map +1 -0
  43. package/dist/{chunk-XU5UEIBL.js → chunk-PQFTPOP4.js} +4 -4
  44. package/dist/{chunk-XU5UEIBL.js.map → chunk-PQFTPOP4.js.map} +1 -1
  45. package/dist/{chunk-MRFGUSN2.js → chunk-Q5ZX6TKB.js} +8 -3
  46. package/dist/chunk-Q5ZX6TKB.js.map +1 -0
  47. package/dist/{chunk-GRBBLS5Y.js → chunk-RDW4IZWK.js} +30 -22
  48. package/dist/chunk-RDW4IZWK.js.map +1 -0
  49. package/dist/{chunk-YK7QFPBF.js → chunk-ROK2DEVT.js} +4 -4
  50. package/dist/{chunk-YK7QFPBF.js.map → chunk-ROK2DEVT.js.map} +1 -1
  51. package/dist/{chunk-AGNLUQKT.cjs → chunk-SBBVQ3Z2.cjs} +7 -7
  52. package/dist/{chunk-AGNLUQKT.cjs.map → chunk-SBBVQ3Z2.cjs.map} +1 -1
  53. package/dist/{chunk-BOASJ3VG.cjs → chunk-TO5MBW6Z.cjs} +4 -4
  54. package/dist/{chunk-BOASJ3VG.cjs.map → chunk-TO5MBW6Z.cjs.map} +1 -1
  55. package/dist/{chunk-YA2KONBB.js → chunk-U7YG2GA7.js} +4 -4
  56. package/dist/{chunk-YA2KONBB.js.map → chunk-U7YG2GA7.js.map} +1 -1
  57. package/dist/chunk-XINNTOCO.cjs +151 -0
  58. package/dist/chunk-XINNTOCO.cjs.map +1 -0
  59. package/dist/{chunk-ALMSFTRM.js → chunk-XNH67ORL.js} +4 -3
  60. package/dist/chunk-XNH67ORL.js.map +1 -0
  61. package/dist/{chunk-5C4JMJ6P.cjs → chunk-Y4YURM53.cjs} +19 -17
  62. package/dist/chunk-Y4YURM53.cjs.map +1 -0
  63. package/dist/{chunk-NBVPN4KL.cjs → chunk-ZPEEFUEC.cjs} +6 -6
  64. package/dist/{chunk-NBVPN4KL.cjs.map → chunk-ZPEEFUEC.cjs.map} +1 -1
  65. package/dist/index.cjs +280 -182
  66. package/dist/index.d.cts +9 -3
  67. package/dist/index.d.ts +9 -3
  68. package/dist/index.js +16 -14
  69. package/dist/keys/index.cjs +18 -13
  70. package/dist/keys/index.d.cts +14 -1
  71. package/dist/keys/index.d.ts +14 -1
  72. package/dist/keys/index.js +2 -1
  73. package/dist/modules/academic/index.cjs +12 -11
  74. package/dist/modules/academic/index.js +4 -3
  75. package/dist/modules/attendance/index.cjs +18 -17
  76. package/dist/modules/attendance/index.d.cts +6 -5
  77. package/dist/modules/attendance/index.d.ts +6 -5
  78. package/dist/modules/attendance/index.js +4 -3
  79. package/dist/modules/auth/index.cjs +22 -13
  80. package/dist/modules/auth/index.d.cts +112 -15
  81. package/dist/modules/auth/index.d.ts +112 -15
  82. package/dist/modules/auth/index.js +4 -3
  83. package/dist/modules/classroom/index.cjs +16 -15
  84. package/dist/modules/classroom/index.d.cts +3 -1
  85. package/dist/modules/classroom/index.d.ts +3 -1
  86. package/dist/modules/classroom/index.js +4 -3
  87. package/dist/modules/lead/index.cjs +12 -11
  88. package/dist/modules/lead/index.js +4 -3
  89. package/dist/modules/platform-admin/index.cjs +96 -0
  90. package/dist/modules/platform-admin/index.cjs.map +1 -0
  91. package/dist/modules/platform-admin/index.d.cts +125 -0
  92. package/dist/modules/platform-admin/index.d.ts +125 -0
  93. package/dist/modules/platform-admin/index.js +7 -0
  94. package/dist/modules/platform-admin/index.js.map +1 -0
  95. package/dist/modules/student/index.cjs +20 -19
  96. package/dist/modules/student/index.d.cts +4 -2
  97. package/dist/modules/student/index.d.ts +4 -2
  98. package/dist/modules/student/index.js +4 -3
  99. package/dist/modules/subject/index.cjs +10 -9
  100. package/dist/modules/subject/index.js +4 -3
  101. package/dist/modules/system/index.cjs +6 -5
  102. package/dist/modules/system/index.js +4 -3
  103. package/dist/modules/teaching-schedule/index.cjs +16 -15
  104. package/dist/modules/teaching-schedule/index.d.cts +12 -7
  105. package/dist/modules/teaching-schedule/index.d.ts +12 -7
  106. package/dist/modules/teaching-schedule/index.js +4 -3
  107. package/dist/modules/tenant/index.cjs +18 -17
  108. package/dist/modules/tenant/index.js +4 -3
  109. package/dist/modules/upload/index.cjs +6 -6
  110. package/dist/modules/upload/index.js +2 -2
  111. package/dist/modules/user/index.cjs +16 -15
  112. package/dist/modules/user/index.js +4 -3
  113. package/package.json +2 -2
  114. package/dist/chunk-3RS57C3E.cjs.map +0 -1
  115. package/dist/chunk-4T52ABA5.js +0 -63
  116. package/dist/chunk-4T52ABA5.js.map +0 -1
  117. package/dist/chunk-5C4JMJ6P.cjs.map +0 -1
  118. package/dist/chunk-ALMSFTRM.js.map +0 -1
  119. package/dist/chunk-AOBHBJ2G.cjs.map +0 -1
  120. package/dist/chunk-CP46K2UB.cjs +0 -74
  121. package/dist/chunk-CP46K2UB.cjs.map +0 -1
  122. package/dist/chunk-DMEWJ56D.js.map +0 -1
  123. package/dist/chunk-GRBBLS5Y.js.map +0 -1
  124. package/dist/chunk-MRFGUSN2.js.map +0 -1
  125. package/dist/chunk-QJSOSQ7M.cjs.map +0 -1
  126. package/dist/chunk-R7ACSDOA.cjs.map +0 -1
  127. package/dist/chunk-S6QFHKCE.js.map +0 -1
  128. package/dist/chunk-XVG5Z6B5.cjs.map +0 -1
  129. package/dist/chunk-ZHCA7HVE.js.map +0 -1
@@ -0,0 +1,125 @@
1
+ import * as _tanstack_react_query from '@tanstack/react-query';
2
+ import { PaginationQuery, LeadInquiry, PlatformUser, PlatformMetricsResponse, Tenant, PlatformLoginRequest, ProvisionTenantRequest, LeadStatus, UpdateTenantModuleConfig, UpdateTenantStatusRequest, TenantStatus } from '@sekolaos/shared-schema';
3
+ export { LeadInquiry, LeadStatus, PaginationQuery, PlatformLoginRequest, PlatformMetricsResponse, PlatformUser, ProvisionTenantRequest, Tenant, TenantStatus, UpdateTenantModuleConfig, UpdateTenantStatusRequest } from '@sekolaos/shared-schema';
4
+ import { b as PaginatedData } from '../../types-BxV0BtVp.cjs';
5
+ import 'axios';
6
+
7
+ declare function platformAdminLogin(payload: PlatformLoginRequest): Promise<PlatformUser>;
8
+ declare function getPlatformMe(): Promise<PlatformUser>;
9
+ declare function platformAdminLogout(): Promise<void>;
10
+ declare function getPlatformMetrics(): Promise<PlatformMetricsResponse>;
11
+ declare function getPlatformTenants(params?: PaginationQuery): Promise<PaginatedData<Tenant>>;
12
+ declare function provisionTenant(payload: ProvisionTenantRequest): Promise<Tenant>;
13
+ declare function updatePlatformTenantStatus(tenantId: string, payload: UpdateTenantStatusRequest): Promise<{
14
+ tenantId: string;
15
+ status: TenantStatus;
16
+ }>;
17
+ declare function updatePlatformTenantModules(tenantId: string, payload: UpdateTenantModuleConfig): Promise<void>;
18
+ interface ImpersonationTokenResult {
19
+ token: string;
20
+ targetUrl: string;
21
+ }
22
+ declare function createImpersonationToken(tenantId: string): Promise<ImpersonationTokenResult>;
23
+ declare function getPlatformLeads(params?: PaginationQuery): Promise<PaginatedData<LeadInquiry>>;
24
+ declare function updatePlatformLeadStatus(leadId: string, status: LeadStatus): Promise<LeadInquiry>;
25
+ declare function getPlatformAuditLogs(params?: PaginationQuery): Promise<unknown>;
26
+ declare function usePlatformMe(): _tanstack_react_query.UseQueryResult<{
27
+ id: string;
28
+ createdAt: string;
29
+ updatedAt: string;
30
+ isActive: boolean;
31
+ email: string;
32
+ fullName: string;
33
+ role: "SUPER_ADMIN" | "OPERATIONS_SUPPORT" | "SALES_ADMIN";
34
+ lastLoginAt?: string | null | undefined;
35
+ }, Error>;
36
+ declare function usePlatformMetrics(): _tanstack_react_query.UseQueryResult<{
37
+ totalStudents: number;
38
+ totalTenants: number;
39
+ activeTenants: number;
40
+ suspendedTenants: number;
41
+ totalTeachers: number;
42
+ todayAttendanceCount: number;
43
+ newLeadsCount: number;
44
+ }, Error>;
45
+ declare function usePlatformTenants(params?: PaginationQuery): _tanstack_react_query.UseQueryResult<PaginatedData<{
46
+ id: string;
47
+ name: string;
48
+ slug: string;
49
+ timezone: string;
50
+ createdAt: string;
51
+ updatedAt: string;
52
+ npsn?: string | null | undefined;
53
+ logoUrl?: string | null | undefined;
54
+ }>, Error>;
55
+ declare function useProvisionTenantMutation(): _tanstack_react_query.UseMutationResult<{
56
+ id: string;
57
+ name: string;
58
+ slug: string;
59
+ timezone: string;
60
+ createdAt: string;
61
+ updatedAt: string;
62
+ npsn?: string | null | undefined;
63
+ logoUrl?: string | null | undefined;
64
+ }, Error, {
65
+ name: string;
66
+ slug: string;
67
+ timezone: string;
68
+ initialModules: ("MASTER" | "ATTENDANCE" | "FINANCE" | "ACADEMICS")[];
69
+ initialAdmin: {
70
+ password: string;
71
+ username: string;
72
+ email: string;
73
+ fullName: string;
74
+ };
75
+ npsn?: string | null | undefined;
76
+ address?: string | null | undefined;
77
+ phone?: string | null | undefined;
78
+ }, unknown>;
79
+ declare function useUpdatePlatformTenantStatusMutation(): _tanstack_react_query.UseMutationResult<{
80
+ tenantId: string;
81
+ status: TenantStatus;
82
+ }, Error, {
83
+ tenantId: string;
84
+ payload: UpdateTenantStatusRequest;
85
+ }, unknown>;
86
+ declare function useUpdatePlatformTenantModulesMutation(): _tanstack_react_query.UseMutationResult<void, Error, {
87
+ tenantId: string;
88
+ payload: UpdateTenantModuleConfig;
89
+ }, unknown>;
90
+ declare function usePlatformLeads(params?: PaginationQuery): _tanstack_react_query.UseQueryResult<PaginatedData<{
91
+ status: "BARU" | "DIHUBUNGI" | "DEMO_TERJADWAL" | "MENUNGGU_KEPUTUSAN" | "CLOSING_DEAL" | "DITOLAK";
92
+ id: string;
93
+ createdAt: string;
94
+ updatedAt: string;
95
+ source: string;
96
+ schoolName: string;
97
+ contactName: string;
98
+ role: "GURU" | "KEPALA_SEKOLAH" | "WAKAKUR" | "TATA_USAHA" | "PENGURUS_YAYASAN" | "OPERATOR_IT" | "LAINNYA";
99
+ whatsappNumber: string;
100
+ npsn?: string | null | undefined;
101
+ email?: string | null | undefined;
102
+ notes?: string | null | undefined;
103
+ estimatedStudents?: number | null | undefined;
104
+ }>, Error>;
105
+ declare function useUpdatePlatformLeadStatusMutation(): _tanstack_react_query.UseMutationResult<{
106
+ status: "BARU" | "DIHUBUNGI" | "DEMO_TERJADWAL" | "MENUNGGU_KEPUTUSAN" | "CLOSING_DEAL" | "DITOLAK";
107
+ id: string;
108
+ createdAt: string;
109
+ updatedAt: string;
110
+ source: string;
111
+ schoolName: string;
112
+ contactName: string;
113
+ role: "GURU" | "KEPALA_SEKOLAH" | "WAKAKUR" | "TATA_USAHA" | "PENGURUS_YAYASAN" | "OPERATOR_IT" | "LAINNYA";
114
+ whatsappNumber: string;
115
+ npsn?: string | null | undefined;
116
+ email?: string | null | undefined;
117
+ notes?: string | null | undefined;
118
+ estimatedStudents?: number | null | undefined;
119
+ }, Error, {
120
+ leadId: string;
121
+ status: LeadStatus;
122
+ }, unknown>;
123
+ declare function useImpersonateTenantMutation(): _tanstack_react_query.UseMutationResult<ImpersonationTokenResult, Error, string, unknown>;
124
+
125
+ export { type ImpersonationTokenResult, createImpersonationToken, getPlatformAuditLogs, getPlatformLeads, getPlatformMe, getPlatformMetrics, getPlatformTenants, platformAdminLogin, platformAdminLogout, provisionTenant, updatePlatformLeadStatus, updatePlatformTenantModules, updatePlatformTenantStatus, useImpersonateTenantMutation, usePlatformLeads, usePlatformMe, usePlatformMetrics, usePlatformTenants, useProvisionTenantMutation, useUpdatePlatformLeadStatusMutation, useUpdatePlatformTenantModulesMutation, useUpdatePlatformTenantStatusMutation };
@@ -0,0 +1,125 @@
1
+ import * as _tanstack_react_query from '@tanstack/react-query';
2
+ import { PaginationQuery, LeadInquiry, PlatformUser, PlatformMetricsResponse, Tenant, PlatformLoginRequest, ProvisionTenantRequest, LeadStatus, UpdateTenantModuleConfig, UpdateTenantStatusRequest, TenantStatus } from '@sekolaos/shared-schema';
3
+ export { LeadInquiry, LeadStatus, PaginationQuery, PlatformLoginRequest, PlatformMetricsResponse, PlatformUser, ProvisionTenantRequest, Tenant, TenantStatus, UpdateTenantModuleConfig, UpdateTenantStatusRequest } from '@sekolaos/shared-schema';
4
+ import { b as PaginatedData } from '../../types-BxV0BtVp.js';
5
+ import 'axios';
6
+
7
+ declare function platformAdminLogin(payload: PlatformLoginRequest): Promise<PlatformUser>;
8
+ declare function getPlatformMe(): Promise<PlatformUser>;
9
+ declare function platformAdminLogout(): Promise<void>;
10
+ declare function getPlatformMetrics(): Promise<PlatformMetricsResponse>;
11
+ declare function getPlatformTenants(params?: PaginationQuery): Promise<PaginatedData<Tenant>>;
12
+ declare function provisionTenant(payload: ProvisionTenantRequest): Promise<Tenant>;
13
+ declare function updatePlatformTenantStatus(tenantId: string, payload: UpdateTenantStatusRequest): Promise<{
14
+ tenantId: string;
15
+ status: TenantStatus;
16
+ }>;
17
+ declare function updatePlatformTenantModules(tenantId: string, payload: UpdateTenantModuleConfig): Promise<void>;
18
+ interface ImpersonationTokenResult {
19
+ token: string;
20
+ targetUrl: string;
21
+ }
22
+ declare function createImpersonationToken(tenantId: string): Promise<ImpersonationTokenResult>;
23
+ declare function getPlatformLeads(params?: PaginationQuery): Promise<PaginatedData<LeadInquiry>>;
24
+ declare function updatePlatformLeadStatus(leadId: string, status: LeadStatus): Promise<LeadInquiry>;
25
+ declare function getPlatformAuditLogs(params?: PaginationQuery): Promise<unknown>;
26
+ declare function usePlatformMe(): _tanstack_react_query.UseQueryResult<{
27
+ id: string;
28
+ createdAt: string;
29
+ updatedAt: string;
30
+ isActive: boolean;
31
+ email: string;
32
+ fullName: string;
33
+ role: "SUPER_ADMIN" | "OPERATIONS_SUPPORT" | "SALES_ADMIN";
34
+ lastLoginAt?: string | null | undefined;
35
+ }, Error>;
36
+ declare function usePlatformMetrics(): _tanstack_react_query.UseQueryResult<{
37
+ totalStudents: number;
38
+ totalTenants: number;
39
+ activeTenants: number;
40
+ suspendedTenants: number;
41
+ totalTeachers: number;
42
+ todayAttendanceCount: number;
43
+ newLeadsCount: number;
44
+ }, Error>;
45
+ declare function usePlatformTenants(params?: PaginationQuery): _tanstack_react_query.UseQueryResult<PaginatedData<{
46
+ id: string;
47
+ name: string;
48
+ slug: string;
49
+ timezone: string;
50
+ createdAt: string;
51
+ updatedAt: string;
52
+ npsn?: string | null | undefined;
53
+ logoUrl?: string | null | undefined;
54
+ }>, Error>;
55
+ declare function useProvisionTenantMutation(): _tanstack_react_query.UseMutationResult<{
56
+ id: string;
57
+ name: string;
58
+ slug: string;
59
+ timezone: string;
60
+ createdAt: string;
61
+ updatedAt: string;
62
+ npsn?: string | null | undefined;
63
+ logoUrl?: string | null | undefined;
64
+ }, Error, {
65
+ name: string;
66
+ slug: string;
67
+ timezone: string;
68
+ initialModules: ("MASTER" | "ATTENDANCE" | "FINANCE" | "ACADEMICS")[];
69
+ initialAdmin: {
70
+ password: string;
71
+ username: string;
72
+ email: string;
73
+ fullName: string;
74
+ };
75
+ npsn?: string | null | undefined;
76
+ address?: string | null | undefined;
77
+ phone?: string | null | undefined;
78
+ }, unknown>;
79
+ declare function useUpdatePlatformTenantStatusMutation(): _tanstack_react_query.UseMutationResult<{
80
+ tenantId: string;
81
+ status: TenantStatus;
82
+ }, Error, {
83
+ tenantId: string;
84
+ payload: UpdateTenantStatusRequest;
85
+ }, unknown>;
86
+ declare function useUpdatePlatformTenantModulesMutation(): _tanstack_react_query.UseMutationResult<void, Error, {
87
+ tenantId: string;
88
+ payload: UpdateTenantModuleConfig;
89
+ }, unknown>;
90
+ declare function usePlatformLeads(params?: PaginationQuery): _tanstack_react_query.UseQueryResult<PaginatedData<{
91
+ status: "BARU" | "DIHUBUNGI" | "DEMO_TERJADWAL" | "MENUNGGU_KEPUTUSAN" | "CLOSING_DEAL" | "DITOLAK";
92
+ id: string;
93
+ createdAt: string;
94
+ updatedAt: string;
95
+ source: string;
96
+ schoolName: string;
97
+ contactName: string;
98
+ role: "GURU" | "KEPALA_SEKOLAH" | "WAKAKUR" | "TATA_USAHA" | "PENGURUS_YAYASAN" | "OPERATOR_IT" | "LAINNYA";
99
+ whatsappNumber: string;
100
+ npsn?: string | null | undefined;
101
+ email?: string | null | undefined;
102
+ notes?: string | null | undefined;
103
+ estimatedStudents?: number | null | undefined;
104
+ }>, Error>;
105
+ declare function useUpdatePlatformLeadStatusMutation(): _tanstack_react_query.UseMutationResult<{
106
+ status: "BARU" | "DIHUBUNGI" | "DEMO_TERJADWAL" | "MENUNGGU_KEPUTUSAN" | "CLOSING_DEAL" | "DITOLAK";
107
+ id: string;
108
+ createdAt: string;
109
+ updatedAt: string;
110
+ source: string;
111
+ schoolName: string;
112
+ contactName: string;
113
+ role: "GURU" | "KEPALA_SEKOLAH" | "WAKAKUR" | "TATA_USAHA" | "PENGURUS_YAYASAN" | "OPERATOR_IT" | "LAINNYA";
114
+ whatsappNumber: string;
115
+ npsn?: string | null | undefined;
116
+ email?: string | null | undefined;
117
+ notes?: string | null | undefined;
118
+ estimatedStudents?: number | null | undefined;
119
+ }, Error, {
120
+ leadId: string;
121
+ status: LeadStatus;
122
+ }, unknown>;
123
+ declare function useImpersonateTenantMutation(): _tanstack_react_query.UseMutationResult<ImpersonationTokenResult, Error, string, unknown>;
124
+
125
+ export { type ImpersonationTokenResult, createImpersonationToken, getPlatformAuditLogs, getPlatformLeads, getPlatformMe, getPlatformMetrics, getPlatformTenants, platformAdminLogin, platformAdminLogout, provisionTenant, updatePlatformLeadStatus, updatePlatformTenantModules, updatePlatformTenantStatus, useImpersonateTenantMutation, usePlatformLeads, usePlatformMe, usePlatformMetrics, usePlatformTenants, useProvisionTenantMutation, useUpdatePlatformLeadStatusMutation, useUpdatePlatformTenantModulesMutation, useUpdatePlatformTenantStatusMutation };
@@ -0,0 +1,7 @@
1
+ export { createImpersonationToken, getPlatformAuditLogs, getPlatformLeads, getPlatformMe, getPlatformMetrics, getPlatformTenants, platformAdminLogin, platformAdminLogout, provisionTenant, updatePlatformLeadStatus, updatePlatformTenantModules, updatePlatformTenantStatus, useImpersonateTenantMutation, usePlatformLeads, usePlatformMe, usePlatformMetrics, usePlatformTenants, useProvisionTenantMutation, useUpdatePlatformLeadStatusMutation, useUpdatePlatformTenantModulesMutation, useUpdatePlatformTenantStatusMutation } from '../../chunk-JGCFIGB3.js';
2
+ import '../../chunk-Q5ZX6TKB.js';
3
+ import '../../chunk-6JGO2CUT.js';
4
+ import '../../chunk-GRXFSXG5.js';
5
+ import '../../chunk-H3CE34TG.js';
6
+ //# sourceMappingURL=index.js.map
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -1,76 +1,77 @@
1
1
  'use strict';
2
2
 
3
- var chunk5C4JMJ6P_cjs = require('../../chunk-5C4JMJ6P.cjs');
4
- require('../../chunk-QJSOSQ7M.cjs');
3
+ var chunkY4YURM53_cjs = require('../../chunk-Y4YURM53.cjs');
4
+ require('../../chunk-3TOBH3YY.cjs');
5
5
  require('../../chunk-NGFFI4XQ.cjs');
6
6
  require('../../chunk-PPK3HQOY.cjs');
7
- require('../../chunk-XVG5Z6B5.cjs');
7
+ require('../../chunk-HISL2IF2.cjs');
8
+ require('../../chunk-5KSKHZWB.cjs');
8
9
 
9
10
 
10
11
 
11
12
  Object.defineProperty(exports, "bulkImportStudents", {
12
13
  enumerable: true,
13
- get: function () { return chunk5C4JMJ6P_cjs.bulkImportStudents; }
14
+ get: function () { return chunkY4YURM53_cjs.bulkImportStudents; }
14
15
  });
15
16
  Object.defineProperty(exports, "createStudent", {
16
17
  enumerable: true,
17
- get: function () { return chunk5C4JMJ6P_cjs.createStudent; }
18
+ get: function () { return chunkY4YURM53_cjs.createStudent; }
18
19
  });
19
20
  Object.defineProperty(exports, "deleteStudent", {
20
21
  enumerable: true,
21
- get: function () { return chunk5C4JMJ6P_cjs.deleteStudent; }
22
+ get: function () { return chunkY4YURM53_cjs.deleteStudent; }
22
23
  });
23
24
  Object.defineProperty(exports, "getStudent", {
24
25
  enumerable: true,
25
- get: function () { return chunk5C4JMJ6P_cjs.getStudent; }
26
+ get: function () { return chunkY4YURM53_cjs.getStudent; }
26
27
  });
27
28
  Object.defineProperty(exports, "getStudentKioskCache", {
28
29
  enumerable: true,
29
- get: function () { return chunk5C4JMJ6P_cjs.getStudentKioskCache; }
30
+ get: function () { return chunkY4YURM53_cjs.getStudentKioskCache; }
30
31
  });
31
32
  Object.defineProperty(exports, "getStudentQrPayload", {
32
33
  enumerable: true,
33
- get: function () { return chunk5C4JMJ6P_cjs.getStudentQrPayload; }
34
+ get: function () { return chunkY4YURM53_cjs.getStudentQrPayload; }
34
35
  });
35
36
  Object.defineProperty(exports, "listStudents", {
36
37
  enumerable: true,
37
- get: function () { return chunk5C4JMJ6P_cjs.listStudents; }
38
+ get: function () { return chunkY4YURM53_cjs.listStudents; }
38
39
  });
39
40
  Object.defineProperty(exports, "updateStudent", {
40
41
  enumerable: true,
41
- get: function () { return chunk5C4JMJ6P_cjs.updateStudent; }
42
+ get: function () { return chunkY4YURM53_cjs.updateStudent; }
42
43
  });
43
44
  Object.defineProperty(exports, "useBulkImportStudents", {
44
45
  enumerable: true,
45
- get: function () { return chunk5C4JMJ6P_cjs.useBulkImportStudents; }
46
+ get: function () { return chunkY4YURM53_cjs.useBulkImportStudents; }
46
47
  });
47
48
  Object.defineProperty(exports, "useCreateStudent", {
48
49
  enumerable: true,
49
- get: function () { return chunk5C4JMJ6P_cjs.useCreateStudent; }
50
+ get: function () { return chunkY4YURM53_cjs.useCreateStudent; }
50
51
  });
51
52
  Object.defineProperty(exports, "useDeleteStudent", {
52
53
  enumerable: true,
53
- get: function () { return chunk5C4JMJ6P_cjs.useDeleteStudent; }
54
+ get: function () { return chunkY4YURM53_cjs.useDeleteStudent; }
54
55
  });
55
56
  Object.defineProperty(exports, "useStudent", {
56
57
  enumerable: true,
57
- get: function () { return chunk5C4JMJ6P_cjs.useStudent; }
58
+ get: function () { return chunkY4YURM53_cjs.useStudent; }
58
59
  });
59
60
  Object.defineProperty(exports, "useStudentKioskCache", {
60
61
  enumerable: true,
61
- get: function () { return chunk5C4JMJ6P_cjs.useStudentKioskCache; }
62
+ get: function () { return chunkY4YURM53_cjs.useStudentKioskCache; }
62
63
  });
63
64
  Object.defineProperty(exports, "useStudentQrCode", {
64
65
  enumerable: true,
65
- get: function () { return chunk5C4JMJ6P_cjs.useStudentQrCode; }
66
+ get: function () { return chunkY4YURM53_cjs.useStudentQrCode; }
66
67
  });
67
68
  Object.defineProperty(exports, "useStudents", {
68
69
  enumerable: true,
69
- get: function () { return chunk5C4JMJ6P_cjs.useStudents; }
70
+ get: function () { return chunkY4YURM53_cjs.useStudents; }
70
71
  });
71
72
  Object.defineProperty(exports, "useUpdateStudent", {
72
73
  enumerable: true,
73
- get: function () { return chunk5C4JMJ6P_cjs.useUpdateStudent; }
74
+ get: function () { return chunkY4YURM53_cjs.useUpdateStudent; }
74
75
  });
75
76
  //# sourceMappingURL=index.cjs.map
76
77
  //# sourceMappingURL=index.cjs.map
@@ -1,6 +1,8 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
+ import { M as MutationOptionsCustom, S as SekolaosApiError } from '../../types-BxV0BtVp.cjs';
2
3
  import { BulkImportStudentRequest, BulkImportStudentResponse, CreateStudentInput, Student, StudentOfflineCache, StudentQrPayload, StudentListQuery, UpdateStudentInput } from '@sekolaos/shared-schema';
3
4
  export { BulkImportStudentRequest, BulkImportStudentResponse, CreateStudentInput, Student, StudentListQuery, StudentOfflineCache, StudentQrPayload, UpdateStudentInput } from '@sekolaos/shared-schema';
5
+ import 'axios';
4
6
 
5
7
  declare function listStudents(params?: Partial<StudentListQuery>): Promise<Student[]>;
6
8
  declare function getStudent(id: string): Promise<Student>;
@@ -100,7 +102,7 @@ declare function useUpdateStudent(): _tanstack_react_query.UseMutationResult<{
100
102
  payload: UpdateStudentInput;
101
103
  }, unknown>;
102
104
  declare function useDeleteStudent(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
103
- declare function useBulkImportStudents(): _tanstack_react_query.UseMutationResult<{
105
+ declare function useBulkImportStudents(options?: MutationOptionsCustom<BulkImportStudentResponse, BulkImportStudentRequest>): _tanstack_react_query.UseMutationResult<{
104
106
  errors: {
105
107
  message: string;
106
108
  row: number;
@@ -109,7 +111,7 @@ declare function useBulkImportStudents(): _tanstack_react_query.UseMutationResul
109
111
  totalProcessed: number;
110
112
  totalSuccess: number;
111
113
  totalFailed: number;
112
- }, Error, {
114
+ }, SekolaosApiError, {
113
115
  academicYearId: string;
114
116
  students: {
115
117
  fullName: string;
@@ -1,6 +1,8 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
+ import { M as MutationOptionsCustom, S as SekolaosApiError } from '../../types-BxV0BtVp.js';
2
3
  import { BulkImportStudentRequest, BulkImportStudentResponse, CreateStudentInput, Student, StudentOfflineCache, StudentQrPayload, StudentListQuery, UpdateStudentInput } from '@sekolaos/shared-schema';
3
4
  export { BulkImportStudentRequest, BulkImportStudentResponse, CreateStudentInput, Student, StudentListQuery, StudentOfflineCache, StudentQrPayload, UpdateStudentInput } from '@sekolaos/shared-schema';
5
+ import 'axios';
4
6
 
5
7
  declare function listStudents(params?: Partial<StudentListQuery>): Promise<Student[]>;
6
8
  declare function getStudent(id: string): Promise<Student>;
@@ -100,7 +102,7 @@ declare function useUpdateStudent(): _tanstack_react_query.UseMutationResult<{
100
102
  payload: UpdateStudentInput;
101
103
  }, unknown>;
102
104
  declare function useDeleteStudent(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
103
- declare function useBulkImportStudents(): _tanstack_react_query.UseMutationResult<{
105
+ declare function useBulkImportStudents(options?: MutationOptionsCustom<BulkImportStudentResponse, BulkImportStudentRequest>): _tanstack_react_query.UseMutationResult<{
104
106
  errors: {
105
107
  message: string;
106
108
  row: number;
@@ -109,7 +111,7 @@ declare function useBulkImportStudents(): _tanstack_react_query.UseMutationResul
109
111
  totalProcessed: number;
110
112
  totalSuccess: number;
111
113
  totalFailed: number;
112
- }, Error, {
114
+ }, SekolaosApiError, {
113
115
  academicYearId: string;
114
116
  students: {
115
117
  fullName: string;
@@ -1,7 +1,8 @@
1
- export { bulkImportStudents, createStudent, deleteStudent, getStudent, getStudentKioskCache, getStudentQrPayload, listStudents, updateStudent, useBulkImportStudents, useCreateStudent, useDeleteStudent, useStudent, useStudentKioskCache, useStudentQrCode, useStudents, useUpdateStudent } from '../../chunk-ZHCA7HVE.js';
2
- import '../../chunk-MRFGUSN2.js';
1
+ export { bulkImportStudents, createStudent, deleteStudent, getStudent, getStudentKioskCache, getStudentQrPayload, listStudents, updateStudent, useBulkImportStudents, useCreateStudent, useDeleteStudent, useStudent, useStudentKioskCache, useStudentQrCode, useStudents, useUpdateStudent } from '../../chunk-NCENQB6W.js';
2
+ import '../../chunk-Q5ZX6TKB.js';
3
3
  import '../../chunk-6JGO2CUT.js';
4
4
  import '../../chunk-GRXFSXG5.js';
5
- import '../../chunk-ALMSFTRM.js';
5
+ import '../../chunk-XNH67ORL.js';
6
+ import '../../chunk-H3CE34TG.js';
6
7
  //# sourceMappingURL=index.js.map
7
8
  //# sourceMappingURL=index.js.map
@@ -1,36 +1,37 @@
1
1
  'use strict';
2
2
 
3
- var chunk4ECXVAIQ_cjs = require('../../chunk-4ECXVAIQ.cjs');
4
- require('../../chunk-QJSOSQ7M.cjs');
3
+ var chunkN4OBLYCQ_cjs = require('../../chunk-N4OBLYCQ.cjs');
4
+ require('../../chunk-3TOBH3YY.cjs');
5
5
  require('../../chunk-NGFFI4XQ.cjs');
6
6
  require('../../chunk-PPK3HQOY.cjs');
7
- require('../../chunk-XVG5Z6B5.cjs');
7
+ require('../../chunk-HISL2IF2.cjs');
8
+ require('../../chunk-5KSKHZWB.cjs');
8
9
 
9
10
 
10
11
 
11
12
  Object.defineProperty(exports, "createSubject", {
12
13
  enumerable: true,
13
- get: function () { return chunk4ECXVAIQ_cjs.createSubject; }
14
+ get: function () { return chunkN4OBLYCQ_cjs.createSubject; }
14
15
  });
15
16
  Object.defineProperty(exports, "listSubjects", {
16
17
  enumerable: true,
17
- get: function () { return chunk4ECXVAIQ_cjs.listSubjects; }
18
+ get: function () { return chunkN4OBLYCQ_cjs.listSubjects; }
18
19
  });
19
20
  Object.defineProperty(exports, "updateSubject", {
20
21
  enumerable: true,
21
- get: function () { return chunk4ECXVAIQ_cjs.updateSubject; }
22
+ get: function () { return chunkN4OBLYCQ_cjs.updateSubject; }
22
23
  });
23
24
  Object.defineProperty(exports, "useCreateSubject", {
24
25
  enumerable: true,
25
- get: function () { return chunk4ECXVAIQ_cjs.useCreateSubject; }
26
+ get: function () { return chunkN4OBLYCQ_cjs.useCreateSubject; }
26
27
  });
27
28
  Object.defineProperty(exports, "useSubjects", {
28
29
  enumerable: true,
29
- get: function () { return chunk4ECXVAIQ_cjs.useSubjects; }
30
+ get: function () { return chunkN4OBLYCQ_cjs.useSubjects; }
30
31
  });
31
32
  Object.defineProperty(exports, "useUpdateSubject", {
32
33
  enumerable: true,
33
- get: function () { return chunk4ECXVAIQ_cjs.useUpdateSubject; }
34
+ get: function () { return chunkN4OBLYCQ_cjs.useUpdateSubject; }
34
35
  });
35
36
  //# sourceMappingURL=index.cjs.map
36
37
  //# sourceMappingURL=index.cjs.map
@@ -1,7 +1,8 @@
1
- export { createSubject, listSubjects, updateSubject, useCreateSubject, useSubjects, useUpdateSubject } from '../../chunk-XU5UEIBL.js';
2
- import '../../chunk-MRFGUSN2.js';
1
+ export { createSubject, listSubjects, updateSubject, useCreateSubject, useSubjects, useUpdateSubject } from '../../chunk-PQFTPOP4.js';
2
+ import '../../chunk-Q5ZX6TKB.js';
3
3
  import '../../chunk-6JGO2CUT.js';
4
4
  import '../../chunk-GRXFSXG5.js';
5
- import '../../chunk-ALMSFTRM.js';
5
+ import '../../chunk-XNH67ORL.js';
6
+ import '../../chunk-H3CE34TG.js';
6
7
  //# sourceMappingURL=index.js.map
7
8
  //# sourceMappingURL=index.js.map
@@ -1,20 +1,21 @@
1
1
  'use strict';
2
2
 
3
- var chunkNBVPN4KL_cjs = require('../../chunk-NBVPN4KL.cjs');
4
- require('../../chunk-QJSOSQ7M.cjs');
3
+ var chunkZPEEFUEC_cjs = require('../../chunk-ZPEEFUEC.cjs');
4
+ require('../../chunk-3TOBH3YY.cjs');
5
5
  require('../../chunk-NGFFI4XQ.cjs');
6
6
  require('../../chunk-PPK3HQOY.cjs');
7
- require('../../chunk-XVG5Z6B5.cjs');
7
+ require('../../chunk-HISL2IF2.cjs');
8
+ require('../../chunk-5KSKHZWB.cjs');
8
9
 
9
10
 
10
11
 
11
12
  Object.defineProperty(exports, "getHealth", {
12
13
  enumerable: true,
13
- get: function () { return chunkNBVPN4KL_cjs.getHealth; }
14
+ get: function () { return chunkZPEEFUEC_cjs.getHealth; }
14
15
  });
15
16
  Object.defineProperty(exports, "useHealth", {
16
17
  enumerable: true,
17
- get: function () { return chunkNBVPN4KL_cjs.useHealth; }
18
+ get: function () { return chunkZPEEFUEC_cjs.useHealth; }
18
19
  });
19
20
  //# sourceMappingURL=index.cjs.map
20
21
  //# sourceMappingURL=index.cjs.map
@@ -1,7 +1,8 @@
1
- export { getHealth, useHealth } from '../../chunk-YA2KONBB.js';
2
- import '../../chunk-MRFGUSN2.js';
1
+ export { getHealth, useHealth } from '../../chunk-U7YG2GA7.js';
2
+ import '../../chunk-Q5ZX6TKB.js';
3
3
  import '../../chunk-6JGO2CUT.js';
4
4
  import '../../chunk-GRXFSXG5.js';
5
- import '../../chunk-ALMSFTRM.js';
5
+ import '../../chunk-XNH67ORL.js';
6
+ import '../../chunk-H3CE34TG.js';
6
7
  //# sourceMappingURL=index.js.map
7
8
  //# sourceMappingURL=index.js.map
@@ -1,60 +1,61 @@
1
1
  'use strict';
2
2
 
3
- var chunk3RS57C3E_cjs = require('../../chunk-3RS57C3E.cjs');
4
- require('../../chunk-QJSOSQ7M.cjs');
3
+ var chunk23XAR4OH_cjs = require('../../chunk-23XAR4OH.cjs');
4
+ require('../../chunk-3TOBH3YY.cjs');
5
5
  require('../../chunk-NGFFI4XQ.cjs');
6
6
  require('../../chunk-PPK3HQOY.cjs');
7
- require('../../chunk-XVG5Z6B5.cjs');
7
+ require('../../chunk-HISL2IF2.cjs');
8
+ require('../../chunk-5KSKHZWB.cjs');
8
9
 
9
10
 
10
11
 
11
12
  Object.defineProperty(exports, "batchCreateTeachingSchedules", {
12
13
  enumerable: true,
13
- get: function () { return chunk3RS57C3E_cjs.batchCreateTeachingSchedules; }
14
+ get: function () { return chunk23XAR4OH_cjs.batchCreateTeachingSchedules; }
14
15
  });
15
16
  Object.defineProperty(exports, "checkScheduleConflict", {
16
17
  enumerable: true,
17
- get: function () { return chunk3RS57C3E_cjs.checkScheduleConflict; }
18
+ get: function () { return chunk23XAR4OH_cjs.checkScheduleConflict; }
18
19
  });
19
20
  Object.defineProperty(exports, "copyRoster", {
20
21
  enumerable: true,
21
- get: function () { return chunk3RS57C3E_cjs.copyRoster; }
22
+ get: function () { return chunk23XAR4OH_cjs.copyRoster; }
22
23
  });
23
24
  Object.defineProperty(exports, "createTeachingSchedule", {
24
25
  enumerable: true,
25
- get: function () { return chunk3RS57C3E_cjs.createTeachingSchedule; }
26
+ get: function () { return chunk23XAR4OH_cjs.createTeachingSchedule; }
26
27
  });
27
28
  Object.defineProperty(exports, "listTeachingSchedules", {
28
29
  enumerable: true,
29
- get: function () { return chunk3RS57C3E_cjs.listTeachingSchedules; }
30
+ get: function () { return chunk23XAR4OH_cjs.listTeachingSchedules; }
30
31
  });
31
32
  Object.defineProperty(exports, "updateTeachingSchedule", {
32
33
  enumerable: true,
33
- get: function () { return chunk3RS57C3E_cjs.updateTeachingSchedule; }
34
+ get: function () { return chunk23XAR4OH_cjs.updateTeachingSchedule; }
34
35
  });
35
36
  Object.defineProperty(exports, "useBatchCreateTeachingSchedules", {
36
37
  enumerable: true,
37
- get: function () { return chunk3RS57C3E_cjs.useBatchCreateTeachingSchedules; }
38
+ get: function () { return chunk23XAR4OH_cjs.useBatchCreateTeachingSchedules; }
38
39
  });
39
40
  Object.defineProperty(exports, "useCopyRoster", {
40
41
  enumerable: true,
41
- get: function () { return chunk3RS57C3E_cjs.useCopyRoster; }
42
+ get: function () { return chunk23XAR4OH_cjs.useCopyRoster; }
42
43
  });
43
44
  Object.defineProperty(exports, "useCreateTeachingSchedule", {
44
45
  enumerable: true,
45
- get: function () { return chunk3RS57C3E_cjs.useCreateTeachingSchedule; }
46
+ get: function () { return chunk23XAR4OH_cjs.useCreateTeachingSchedule; }
46
47
  });
47
48
  Object.defineProperty(exports, "useScheduleConflict", {
48
49
  enumerable: true,
49
- get: function () { return chunk3RS57C3E_cjs.useScheduleConflict; }
50
+ get: function () { return chunk23XAR4OH_cjs.useScheduleConflict; }
50
51
  });
51
52
  Object.defineProperty(exports, "useTeachingSchedules", {
52
53
  enumerable: true,
53
- get: function () { return chunk3RS57C3E_cjs.useTeachingSchedules; }
54
+ get: function () { return chunk23XAR4OH_cjs.useTeachingSchedules; }
54
55
  });
55
56
  Object.defineProperty(exports, "useUpdateTeachingSchedule", {
56
57
  enumerable: true,
57
- get: function () { return chunk3RS57C3E_cjs.useUpdateTeachingSchedule; }
58
+ get: function () { return chunk23XAR4OH_cjs.useUpdateTeachingSchedule; }
58
59
  });
59
60
  //# sourceMappingURL=index.cjs.map
60
61
  //# sourceMappingURL=index.cjs.map