@sekolaos/shared-api 1.2.0 → 1.3.1
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-T2TWWLVZ.cjs → chunk-23XAR4OH.cjs} +11 -11
- package/dist/{chunk-T2TWWLVZ.cjs.map → chunk-23XAR4OH.cjs.map} +1 -1
- package/dist/{chunk-YTF4Z7I4.js → chunk-2ZN6MTBE.js} +3 -3
- package/dist/{chunk-YTF4Z7I4.js.map → chunk-2ZN6MTBE.js.map} +1 -1
- package/dist/{chunk-QJSOSQ7M.cjs → chunk-3TOBH3YY.cjs} +8 -3
- package/dist/chunk-3TOBH3YY.cjs.map +1 -0
- package/dist/chunk-5KSKHZWB.cjs +16 -0
- package/dist/chunk-5KSKHZWB.cjs.map +1 -0
- package/dist/{chunk-WPMDE5ZF.cjs → chunk-AMKVNGY4.cjs} +13 -13
- package/dist/{chunk-WPMDE5ZF.cjs.map → chunk-AMKVNGY4.cjs.map} +1 -1
- package/dist/{chunk-SSPEC3OA.cjs → chunk-BBJBCD2K.cjs} +8 -8
- package/dist/{chunk-SSPEC3OA.cjs.map → chunk-BBJBCD2K.cjs.map} +1 -1
- package/dist/{chunk-LNGJA2UL.js → chunk-CSEMYBBZ.js} +4 -4
- package/dist/{chunk-LNGJA2UL.js.map → chunk-CSEMYBBZ.js.map} +1 -1
- package/dist/{chunk-LMSX35HO.js → chunk-DATSHIPR.js} +4 -4
- package/dist/{chunk-LMSX35HO.js.map → chunk-DATSHIPR.js.map} +1 -1
- package/dist/{chunk-XOFGB2GD.js → chunk-FVPR2MOB.js} +4 -4
- package/dist/{chunk-XOFGB2GD.js.map → chunk-FVPR2MOB.js.map} +1 -1
- package/dist/chunk-H3CE34TG.js +14 -0
- package/dist/chunk-H3CE34TG.js.map +1 -0
- package/dist/{chunk-BQDHQTPK.js → chunk-H5WMOGLJ.js} +38 -6
- package/dist/chunk-H5WMOGLJ.js.map +1 -0
- package/dist/{chunk-N7CHJ3EM.cjs → chunk-HISL2IF2.cjs} +2 -2
- package/dist/{chunk-N7CHJ3EM.cjs.map → chunk-HISL2IF2.cjs.map} +1 -1
- package/dist/{chunk-A5QDNC7Y.js → chunk-ID3UGFZZ.js} +4 -4
- package/dist/{chunk-A5QDNC7Y.js.map → chunk-ID3UGFZZ.js.map} +1 -1
- package/dist/chunk-JGCFIGB3.js +129 -0
- package/dist/chunk-JGCFIGB3.js.map +1 -0
- package/dist/{chunk-DUULXOBJ.cjs → chunk-JVX37TC5.cjs} +11 -11
- package/dist/{chunk-DUULXOBJ.cjs.map → chunk-JVX37TC5.cjs.map} +1 -1
- package/dist/{chunk-DBKYIIPQ.cjs → chunk-KB4TZTAC.cjs} +11 -11
- package/dist/{chunk-DBKYIIPQ.cjs.map → chunk-KB4TZTAC.cjs.map} +1 -1
- package/dist/{chunk-6TPAWAST.cjs → chunk-LS4ZQRFS.cjs} +13 -13
- package/dist/{chunk-6TPAWAST.cjs.map → chunk-LS4ZQRFS.cjs.map} +1 -1
- package/dist/{chunk-2IFQLECT.cjs → chunk-N4OBLYCQ.cjs} +8 -8
- package/dist/{chunk-2IFQLECT.cjs.map → chunk-N4OBLYCQ.cjs.map} +1 -1
- package/dist/{chunk-S7N3GQOE.js → chunk-NCENQB6W.js} +4 -4
- package/dist/{chunk-S7N3GQOE.js.map → chunk-NCENQB6W.js.map} +1 -1
- package/dist/{chunk-WMH2DW3N.js → chunk-NPR4GLFZ.js} +4 -4
- package/dist/{chunk-WMH2DW3N.js.map → chunk-NPR4GLFZ.js.map} +1 -1
- package/dist/{chunk-HTGZJQNS.cjs → chunk-NVU4IIMA.cjs} +45 -9
- package/dist/chunk-NVU4IIMA.cjs.map +1 -0
- package/dist/{chunk-ANLONSKR.js → chunk-PQFTPOP4.js} +4 -4
- package/dist/{chunk-ANLONSKR.js.map → chunk-PQFTPOP4.js.map} +1 -1
- package/dist/{chunk-MRFGUSN2.js → chunk-Q5ZX6TKB.js} +8 -3
- package/dist/chunk-Q5ZX6TKB.js.map +1 -0
- package/dist/{chunk-ZPJ5WHAK.js → chunk-RDW4IZWK.js} +4 -4
- package/dist/{chunk-ZPJ5WHAK.js.map → chunk-RDW4IZWK.js.map} +1 -1
- package/dist/{chunk-T6NCBXWC.js → chunk-ROK2DEVT.js} +4 -4
- package/dist/{chunk-T6NCBXWC.js.map → chunk-ROK2DEVT.js.map} +1 -1
- package/dist/{chunk-JZP57ZKZ.cjs → chunk-SBBVQ3Z2.cjs} +7 -7
- package/dist/{chunk-JZP57ZKZ.cjs.map → chunk-SBBVQ3Z2.cjs.map} +1 -1
- package/dist/{chunk-BOASJ3VG.cjs → chunk-TO5MBW6Z.cjs} +4 -4
- package/dist/{chunk-BOASJ3VG.cjs.map → chunk-TO5MBW6Z.cjs.map} +1 -1
- package/dist/{chunk-ZDBSD2VY.js → chunk-U7YG2GA7.js} +4 -4
- package/dist/{chunk-ZDBSD2VY.js.map → chunk-U7YG2GA7.js.map} +1 -1
- package/dist/chunk-XINNTOCO.cjs +151 -0
- package/dist/chunk-XINNTOCO.cjs.map +1 -0
- package/dist/{chunk-PDMQWMZM.js → chunk-XNH67ORL.js} +2 -2
- package/dist/{chunk-PDMQWMZM.js.map → chunk-XNH67ORL.js.map} +1 -1
- package/dist/{chunk-7XRQ255H.cjs → chunk-Y4YURM53.cjs} +14 -14
- package/dist/{chunk-7XRQ255H.cjs.map → chunk-Y4YURM53.cjs.map} +1 -1
- package/dist/{chunk-DYBHD45V.cjs → chunk-ZPEEFUEC.cjs} +6 -6
- package/dist/{chunk-DYBHD45V.cjs.map → chunk-ZPEEFUEC.cjs.map} +1 -1
- package/dist/index.cjs +290 -184
- package/dist/index.d.cts +9 -3
- package/dist/index.d.ts +9 -3
- package/dist/index.js +16 -14
- package/dist/keys/index.cjs +18 -13
- package/dist/keys/index.d.cts +13 -1
- package/dist/keys/index.d.ts +13 -1
- package/dist/keys/index.js +2 -1
- package/dist/modules/academic/index.cjs +12 -11
- package/dist/modules/academic/index.js +4 -3
- package/dist/modules/attendance/index.cjs +18 -17
- package/dist/modules/attendance/index.js +4 -3
- package/dist/modules/auth/index.cjs +32 -15
- package/dist/modules/auth/index.d.cts +33 -3
- package/dist/modules/auth/index.d.ts +33 -3
- package/dist/modules/auth/index.js +4 -3
- package/dist/modules/classroom/index.cjs +16 -15
- package/dist/modules/classroom/index.js +4 -3
- package/dist/modules/lead/index.cjs +12 -11
- package/dist/modules/lead/index.js +4 -3
- package/dist/modules/platform-admin/index.cjs +96 -0
- package/dist/modules/platform-admin/index.cjs.map +1 -0
- package/dist/modules/platform-admin/index.d.cts +125 -0
- package/dist/modules/platform-admin/index.d.ts +125 -0
- package/dist/modules/platform-admin/index.js +7 -0
- package/dist/modules/platform-admin/index.js.map +1 -0
- package/dist/modules/student/index.cjs +20 -19
- package/dist/modules/student/index.js +4 -3
- package/dist/modules/subject/index.cjs +10 -9
- package/dist/modules/subject/index.js +4 -3
- package/dist/modules/system/index.cjs +6 -5
- package/dist/modules/system/index.js +4 -3
- package/dist/modules/teaching-schedule/index.cjs +16 -15
- package/dist/modules/teaching-schedule/index.js +4 -3
- package/dist/modules/tenant/index.cjs +18 -17
- package/dist/modules/tenant/index.js +4 -3
- package/dist/modules/upload/index.cjs +6 -6
- package/dist/modules/upload/index.js +2 -2
- package/dist/modules/user/index.cjs +16 -15
- package/dist/modules/user/index.js +4 -3
- package/package.json +2 -2
- package/dist/chunk-BQDHQTPK.js.map +0 -1
- package/dist/chunk-HTGZJQNS.cjs.map +0 -1
- package/dist/chunk-MRFGUSN2.js.map +0 -1
- package/dist/chunk-QJSOSQ7M.cjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
2
|
import { M as MutationOptionsCustom, S as SekolaosApiError, Q as QueryOptionsWithoutKey } from '../../types-BxV0BtVp.js';
|
|
3
|
-
import { AuthSession, Tenant, ChangePasswordRequest, LoginRequest, LoginResponse, SelectTenantRequest, SwitchRoleRequest } from '@sekolaos/shared-schema';
|
|
4
|
-
export { AuthSession, ChangePasswordRequest, LoginRequest, LoginResponse, Role, SelectTenantRequest, SwitchRoleRequest, TenantOption, UserProfile } from '@sekolaos/shared-schema';
|
|
3
|
+
import { AuthSession, Tenant, ChangePasswordRequest, ConsumeImpersonationRequest, LoginRequest, LoginResponse, SelectTenantRequest, SwitchRoleRequest } from '@sekolaos/shared-schema';
|
|
4
|
+
export { AuthSession, ChangePasswordRequest, ConsumeImpersonationRequest, LoginRequest, LoginResponse, Role, SelectTenantRequest, SwitchRoleRequest, TenantOption, UserProfile } from '@sekolaos/shared-schema';
|
|
5
5
|
import 'axios';
|
|
6
6
|
|
|
7
7
|
interface AuthUserSummary {
|
|
@@ -24,6 +24,32 @@ declare function getMe(): Promise<AuthSession>;
|
|
|
24
24
|
declare function changePassword(payload: ChangePasswordRequest): Promise<{
|
|
25
25
|
message: string;
|
|
26
26
|
}>;
|
|
27
|
+
/** Konsumsi token impersonasi dari sekolaos-admin, terbitkan sesi sekolah dengan isImpersonating: true. */
|
|
28
|
+
declare function consumeImpersonation(payload: ConsumeImpersonationRequest): Promise<AuthSession>;
|
|
29
|
+
/** Keluar dari mode penyamaran: hapus cookie sesi sekolah. */
|
|
30
|
+
declare function exitImpersonation(): Promise<void>;
|
|
31
|
+
declare function useConsumeImpersonation(options?: MutationOptionsCustom<AuthSession, ConsumeImpersonationRequest>): _tanstack_react_query.UseMutationResult<{
|
|
32
|
+
tenantId: string;
|
|
33
|
+
userId: string;
|
|
34
|
+
tenantSlug: string;
|
|
35
|
+
activeAcademicYearId: string;
|
|
36
|
+
activeRole: {
|
|
37
|
+
permissions: Record<string, string[]>;
|
|
38
|
+
roleId: string;
|
|
39
|
+
roleName: string;
|
|
40
|
+
roleSlug: string;
|
|
41
|
+
};
|
|
42
|
+
availableRoles: {
|
|
43
|
+
permissions: Record<string, string[]>;
|
|
44
|
+
roleId: string;
|
|
45
|
+
roleName: string;
|
|
46
|
+
roleSlug: string;
|
|
47
|
+
}[];
|
|
48
|
+
isImpersonating: boolean;
|
|
49
|
+
}, SekolaosApiError, {
|
|
50
|
+
token: string;
|
|
51
|
+
}, unknown>;
|
|
52
|
+
declare function useExitImpersonation(options?: MutationOptionsCustom<void, void>): _tanstack_react_query.UseMutationResult<void, SekolaosApiError, void, unknown>;
|
|
27
53
|
declare function useMe(options?: QueryOptionsWithoutKey<AuthSession> & {
|
|
28
54
|
enabled?: boolean;
|
|
29
55
|
}): _tanstack_react_query.UseQueryResult<{
|
|
@@ -43,6 +69,7 @@ declare function useMe(options?: QueryOptionsWithoutKey<AuthSession> & {
|
|
|
43
69
|
roleName: string;
|
|
44
70
|
roleSlug: string;
|
|
45
71
|
}[];
|
|
72
|
+
isImpersonating: boolean;
|
|
46
73
|
}, SekolaosApiError>;
|
|
47
74
|
declare function useLogin(options?: MutationOptionsCustom<LoginResponse, LoginRequest>): _tanstack_react_query.UseMutationResult<{
|
|
48
75
|
status: "SUCCESS" | "REQUIRES_TENANT_SELECTION" | "REQUIRES_ROLE_SELECTION";
|
|
@@ -63,6 +90,7 @@ declare function useLogin(options?: MutationOptionsCustom<LoginResponse, LoginRe
|
|
|
63
90
|
roleName: string;
|
|
64
91
|
roleSlug: string;
|
|
65
92
|
}[];
|
|
93
|
+
isImpersonating: boolean;
|
|
66
94
|
} | undefined;
|
|
67
95
|
availableTenants?: {
|
|
68
96
|
id: string;
|
|
@@ -95,6 +123,7 @@ declare function useSelectTenant(options?: MutationOptionsCustom<LoginResponse,
|
|
|
95
123
|
roleName: string;
|
|
96
124
|
roleSlug: string;
|
|
97
125
|
}[];
|
|
126
|
+
isImpersonating: boolean;
|
|
98
127
|
} | undefined;
|
|
99
128
|
availableTenants?: {
|
|
100
129
|
id: string;
|
|
@@ -124,6 +153,7 @@ declare function useSwitchRole(options?: MutationOptionsCustom<AuthSession, Swit
|
|
|
124
153
|
roleName: string;
|
|
125
154
|
roleSlug: string;
|
|
126
155
|
}[];
|
|
156
|
+
isImpersonating: boolean;
|
|
127
157
|
}, SekolaosApiError, {
|
|
128
158
|
academicYearId: string;
|
|
129
159
|
targetRoleId: string;
|
|
@@ -138,4 +168,4 @@ declare function useChangePassword(options?: MutationOptionsCustom<{
|
|
|
138
168
|
newPassword: string;
|
|
139
169
|
}, unknown>;
|
|
140
170
|
|
|
141
|
-
export { type AuthSessionPayload, type AuthUserSummary, changePassword, getMe, login, logout, selectTenant, switchRole, useChangePassword, useLogin, useLogout, useMe, useSelectTenant, useSwitchRole };
|
|
171
|
+
export { type AuthSessionPayload, type AuthUserSummary, changePassword, consumeImpersonation, exitImpersonation, getMe, login, logout, selectTenant, switchRole, useChangePassword, useConsumeImpersonation, useExitImpersonation, useLogin, useLogout, useMe, useSelectTenant, useSwitchRole };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export { changePassword, getMe, login, logout, selectTenant, switchRole, useChangePassword, useLogin, useLogout, useMe, useSelectTenant, useSwitchRole } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { changePassword, consumeImpersonation, exitImpersonation, getMe, login, logout, selectTenant, switchRole, useChangePassword, useConsumeImpersonation, useExitImpersonation, useLogin, useLogout, useMe, useSelectTenant, useSwitchRole } from '../../chunk-H5WMOGLJ.js';
|
|
2
|
+
import '../../chunk-Q5ZX6TKB.js';
|
|
3
3
|
import '../../chunk-6JGO2CUT.js';
|
|
4
4
|
import '../../chunk-GRXFSXG5.js';
|
|
5
|
-
import '../../chunk-
|
|
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
|
|
4
|
-
require('../../chunk-
|
|
3
|
+
var chunkAMKVNGY4_cjs = require('../../chunk-AMKVNGY4.cjs');
|
|
4
|
+
require('../../chunk-3TOBH3YY.cjs');
|
|
5
5
|
require('../../chunk-NGFFI4XQ.cjs');
|
|
6
6
|
require('../../chunk-PPK3HQOY.cjs');
|
|
7
|
-
require('../../chunk-
|
|
7
|
+
require('../../chunk-HISL2IF2.cjs');
|
|
8
|
+
require('../../chunk-5KSKHZWB.cjs');
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
Object.defineProperty(exports, "createClassroom", {
|
|
12
13
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkAMKVNGY4_cjs.createClassroom; }
|
|
14
15
|
});
|
|
15
16
|
Object.defineProperty(exports, "getClassroom", {
|
|
16
17
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkAMKVNGY4_cjs.getClassroom; }
|
|
18
19
|
});
|
|
19
20
|
Object.defineProperty(exports, "getClassroomStudents", {
|
|
20
21
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkAMKVNGY4_cjs.getClassroomStudents; }
|
|
22
23
|
});
|
|
23
24
|
Object.defineProperty(exports, "listClassrooms", {
|
|
24
25
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkAMKVNGY4_cjs.listClassrooms; }
|
|
26
27
|
});
|
|
27
28
|
Object.defineProperty(exports, "promoteClassStudents", {
|
|
28
29
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkAMKVNGY4_cjs.promoteClassStudents; }
|
|
30
31
|
});
|
|
31
32
|
Object.defineProperty(exports, "updateClassroom", {
|
|
32
33
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkAMKVNGY4_cjs.updateClassroom; }
|
|
34
35
|
});
|
|
35
36
|
Object.defineProperty(exports, "useClassroom", {
|
|
36
37
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkAMKVNGY4_cjs.useClassroom; }
|
|
38
39
|
});
|
|
39
40
|
Object.defineProperty(exports, "useClassroomStudents", {
|
|
40
41
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkAMKVNGY4_cjs.useClassroomStudents; }
|
|
42
43
|
});
|
|
43
44
|
Object.defineProperty(exports, "useClassrooms", {
|
|
44
45
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkAMKVNGY4_cjs.useClassrooms; }
|
|
46
47
|
});
|
|
47
48
|
Object.defineProperty(exports, "useCreateClassroom", {
|
|
48
49
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkAMKVNGY4_cjs.useCreateClassroom; }
|
|
50
51
|
});
|
|
51
52
|
Object.defineProperty(exports, "usePromoteClassStudents", {
|
|
52
53
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkAMKVNGY4_cjs.usePromoteClassStudents; }
|
|
54
55
|
});
|
|
55
56
|
Object.defineProperty(exports, "useUpdateClassroom", {
|
|
56
57
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkAMKVNGY4_cjs.useUpdateClassroom; }
|
|
58
59
|
});
|
|
59
60
|
//# sourceMappingURL=index.cjs.map
|
|
60
61
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export { createClassroom, getClassroom, getClassroomStudents, listClassrooms, promoteClassStudents, updateClassroom, useClassroom, useClassroomStudents, useClassrooms, useCreateClassroom, usePromoteClassStudents, useUpdateClassroom } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { createClassroom, getClassroom, getClassroomStudents, listClassrooms, promoteClassStudents, updateClassroom, useClassroom, useClassroomStudents, useClassrooms, useCreateClassroom, usePromoteClassStudents, useUpdateClassroom } from '../../chunk-FVPR2MOB.js';
|
|
2
|
+
import '../../chunk-Q5ZX6TKB.js';
|
|
3
3
|
import '../../chunk-6JGO2CUT.js';
|
|
4
4
|
import '../../chunk-GRXFSXG5.js';
|
|
5
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-XNH67ORL.js';
|
|
6
|
+
import '../../chunk-H3CE34TG.js';
|
|
6
7
|
//# sourceMappingURL=index.js.map
|
|
7
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,44 +1,45 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
3
|
+
var chunkSBBVQ3Z2_cjs = require('../../chunk-SBBVQ3Z2.cjs');
|
|
4
|
+
require('../../chunk-3TOBH3YY.cjs');
|
|
5
5
|
require('../../chunk-NGFFI4XQ.cjs');
|
|
6
6
|
require('../../chunk-PPK3HQOY.cjs');
|
|
7
|
-
require('../../chunk-
|
|
7
|
+
require('../../chunk-HISL2IF2.cjs');
|
|
8
|
+
require('../../chunk-5KSKHZWB.cjs');
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
Object.defineProperty(exports, "createLeadInquiry", {
|
|
12
13
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkSBBVQ3Z2_cjs.createLeadInquiry; }
|
|
14
15
|
});
|
|
15
16
|
Object.defineProperty(exports, "listLeads", {
|
|
16
17
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkSBBVQ3Z2_cjs.listLeads; }
|
|
18
19
|
});
|
|
19
20
|
Object.defineProperty(exports, "requestDemoSchedule", {
|
|
20
21
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkSBBVQ3Z2_cjs.requestDemoSchedule; }
|
|
22
23
|
});
|
|
23
24
|
Object.defineProperty(exports, "updateLeadStatus", {
|
|
24
25
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkSBBVQ3Z2_cjs.updateLeadStatus; }
|
|
26
27
|
});
|
|
27
28
|
Object.defineProperty(exports, "useCreateLeadInquiry", {
|
|
28
29
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkSBBVQ3Z2_cjs.useCreateLeadInquiry; }
|
|
30
31
|
});
|
|
31
32
|
Object.defineProperty(exports, "useLeads", {
|
|
32
33
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkSBBVQ3Z2_cjs.useLeads; }
|
|
34
35
|
});
|
|
35
36
|
Object.defineProperty(exports, "useRequestDemoSchedule", {
|
|
36
37
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkSBBVQ3Z2_cjs.useRequestDemoSchedule; }
|
|
38
39
|
});
|
|
39
40
|
Object.defineProperty(exports, "useUpdateLeadStatus", {
|
|
40
41
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkSBBVQ3Z2_cjs.useUpdateLeadStatus; }
|
|
42
43
|
});
|
|
43
44
|
//# sourceMappingURL=index.cjs.map
|
|
44
45
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export { createLeadInquiry, listLeads, requestDemoSchedule, updateLeadStatus, useCreateLeadInquiry, useLeads, useRequestDemoSchedule, useUpdateLeadStatus } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { createLeadInquiry, listLeads, requestDemoSchedule, updateLeadStatus, useCreateLeadInquiry, useLeads, useRequestDemoSchedule, useUpdateLeadStatus } from '../../chunk-DATSHIPR.js';
|
|
2
|
+
import '../../chunk-Q5ZX6TKB.js';
|
|
3
3
|
import '../../chunk-6JGO2CUT.js';
|
|
4
4
|
import '../../chunk-GRXFSXG5.js';
|
|
5
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-XNH67ORL.js';
|
|
6
|
+
import '../../chunk-H3CE34TG.js';
|
|
6
7
|
//# sourceMappingURL=index.js.map
|
|
7
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkXINNTOCO_cjs = require('../../chunk-XINNTOCO.cjs');
|
|
4
|
+
require('../../chunk-3TOBH3YY.cjs');
|
|
5
|
+
require('../../chunk-NGFFI4XQ.cjs');
|
|
6
|
+
require('../../chunk-PPK3HQOY.cjs');
|
|
7
|
+
require('../../chunk-5KSKHZWB.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
Object.defineProperty(exports, "createImpersonationToken", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkXINNTOCO_cjs.createImpersonationToken; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "getPlatformAuditLogs", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkXINNTOCO_cjs.getPlatformAuditLogs; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "getPlatformLeads", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunkXINNTOCO_cjs.getPlatformLeads; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "getPlatformMe", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return chunkXINNTOCO_cjs.getPlatformMe; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "getPlatformMetrics", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunkXINNTOCO_cjs.getPlatformMetrics; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "getPlatformTenants", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return chunkXINNTOCO_cjs.getPlatformTenants; }
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, "platformAdminLogin", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () { return chunkXINNTOCO_cjs.platformAdminLogin; }
|
|
38
|
+
});
|
|
39
|
+
Object.defineProperty(exports, "platformAdminLogout", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function () { return chunkXINNTOCO_cjs.platformAdminLogout; }
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(exports, "provisionTenant", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () { return chunkXINNTOCO_cjs.provisionTenant; }
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(exports, "updatePlatformLeadStatus", {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: function () { return chunkXINNTOCO_cjs.updatePlatformLeadStatus; }
|
|
50
|
+
});
|
|
51
|
+
Object.defineProperty(exports, "updatePlatformTenantModules", {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function () { return chunkXINNTOCO_cjs.updatePlatformTenantModules; }
|
|
54
|
+
});
|
|
55
|
+
Object.defineProperty(exports, "updatePlatformTenantStatus", {
|
|
56
|
+
enumerable: true,
|
|
57
|
+
get: function () { return chunkXINNTOCO_cjs.updatePlatformTenantStatus; }
|
|
58
|
+
});
|
|
59
|
+
Object.defineProperty(exports, "useImpersonateTenantMutation", {
|
|
60
|
+
enumerable: true,
|
|
61
|
+
get: function () { return chunkXINNTOCO_cjs.useImpersonateTenantMutation; }
|
|
62
|
+
});
|
|
63
|
+
Object.defineProperty(exports, "usePlatformLeads", {
|
|
64
|
+
enumerable: true,
|
|
65
|
+
get: function () { return chunkXINNTOCO_cjs.usePlatformLeads; }
|
|
66
|
+
});
|
|
67
|
+
Object.defineProperty(exports, "usePlatformMe", {
|
|
68
|
+
enumerable: true,
|
|
69
|
+
get: function () { return chunkXINNTOCO_cjs.usePlatformMe; }
|
|
70
|
+
});
|
|
71
|
+
Object.defineProperty(exports, "usePlatformMetrics", {
|
|
72
|
+
enumerable: true,
|
|
73
|
+
get: function () { return chunkXINNTOCO_cjs.usePlatformMetrics; }
|
|
74
|
+
});
|
|
75
|
+
Object.defineProperty(exports, "usePlatformTenants", {
|
|
76
|
+
enumerable: true,
|
|
77
|
+
get: function () { return chunkXINNTOCO_cjs.usePlatformTenants; }
|
|
78
|
+
});
|
|
79
|
+
Object.defineProperty(exports, "useProvisionTenantMutation", {
|
|
80
|
+
enumerable: true,
|
|
81
|
+
get: function () { return chunkXINNTOCO_cjs.useProvisionTenantMutation; }
|
|
82
|
+
});
|
|
83
|
+
Object.defineProperty(exports, "useUpdatePlatformLeadStatusMutation", {
|
|
84
|
+
enumerable: true,
|
|
85
|
+
get: function () { return chunkXINNTOCO_cjs.useUpdatePlatformLeadStatusMutation; }
|
|
86
|
+
});
|
|
87
|
+
Object.defineProperty(exports, "useUpdatePlatformTenantModulesMutation", {
|
|
88
|
+
enumerable: true,
|
|
89
|
+
get: function () { return chunkXINNTOCO_cjs.useUpdatePlatformTenantModulesMutation; }
|
|
90
|
+
});
|
|
91
|
+
Object.defineProperty(exports, "useUpdatePlatformTenantStatusMutation", {
|
|
92
|
+
enumerable: true,
|
|
93
|
+
get: function () { return chunkXINNTOCO_cjs.useUpdatePlatformTenantStatusMutation; }
|
|
94
|
+
});
|
|
95
|
+
//# sourceMappingURL=index.cjs.map
|
|
96
|
+
//# 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 { 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"}
|