@goplusvn/core 0.1.1 → 0.1.3

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 (223) hide show
  1. package/package.json +31 -175
  2. package/dist/audit/index.d.mts +0 -115
  3. package/dist/audit/index.d.ts +0 -115
  4. package/dist/audit/index.js +0 -204
  5. package/dist/audit/index.js.map +0 -1
  6. package/dist/audit/index.mjs +0 -200
  7. package/dist/audit/index.mjs.map +0 -1
  8. package/dist/auth/index.d.mts +0 -86
  9. package/dist/auth/index.d.ts +0 -86
  10. package/dist/auth/index.js +0 -210
  11. package/dist/auth/index.js.map +0 -1
  12. package/dist/auth/index.mjs +0 -198
  13. package/dist/auth/index.mjs.map +0 -1
  14. package/dist/button-1dWvP9Ib.d.mts +0 -30
  15. package/dist/button-1dWvP9Ib.d.ts +0 -30
  16. package/dist/calendar-2QzdEo1z.d.mts +0 -20
  17. package/dist/calendar-2QzdEo1z.d.ts +0 -20
  18. package/dist/code-generation/index.d.mts +0 -30
  19. package/dist/code-generation/index.d.ts +0 -30
  20. package/dist/code-generation/index.js +0 -31
  21. package/dist/code-generation/index.js.map +0 -1
  22. package/dist/code-generation/index.mjs +0 -28
  23. package/dist/code-generation/index.mjs.map +0 -1
  24. package/dist/configs/index.d.mts +0 -175
  25. package/dist/configs/index.d.ts +0 -175
  26. package/dist/configs/index.js +0 -254
  27. package/dist/configs/index.js.map +0 -1
  28. package/dist/configs/index.mjs +0 -233
  29. package/dist/configs/index.mjs.map +0 -1
  30. package/dist/crud/index.d.mts +0 -646
  31. package/dist/crud/index.d.ts +0 -646
  32. package/dist/crud/index.js +0 -11772
  33. package/dist/crud/index.js.map +0 -1
  34. package/dist/crud/index.mjs +0 -11665
  35. package/dist/crud/index.mjs.map +0 -1
  36. package/dist/crud/server.d.mts +0 -20
  37. package/dist/crud/server.d.ts +0 -20
  38. package/dist/crud/server.js +0 -123
  39. package/dist/crud/server.js.map +0 -1
  40. package/dist/crud/server.mjs +0 -120
  41. package/dist/crud/server.mjs.map +0 -1
  42. package/dist/data-table-skeleton-12NA8Mjx.d.mts +0 -39
  43. package/dist/data-table-skeleton-12NA8Mjx.d.ts +0 -39
  44. package/dist/dialog-bKfjZMTd.d.mts +0 -22
  45. package/dist/dialog-bKfjZMTd.d.ts +0 -22
  46. package/dist/dynamic-icon-DrGIiu2N.d.mts +0 -10
  47. package/dist/dynamic-icon-DrGIiu2N.d.ts +0 -10
  48. package/dist/home/index.d.mts +0 -269
  49. package/dist/home/index.d.ts +0 -269
  50. package/dist/home/index.js +0 -1678
  51. package/dist/home/index.js.map +0 -1
  52. package/dist/home/index.mjs +0 -1635
  53. package/dist/home/index.mjs.map +0 -1
  54. package/dist/hooks/index.d.mts +0 -7
  55. package/dist/hooks/index.d.ts +0 -7
  56. package/dist/hooks/index.js +0 -8316
  57. package/dist/hooks/index.js.map +0 -1
  58. package/dist/hooks/index.mjs +0 -8255
  59. package/dist/hooks/index.mjs.map +0 -1
  60. package/dist/index-50hpiPrV.d.ts +0 -116
  61. package/dist/index-B9zQVEVi.d.mts +0 -116
  62. package/dist/index.d.mts +0 -5
  63. package/dist/index.d.ts +0 -5
  64. package/dist/index.js +0 -123
  65. package/dist/index.js.map +0 -1
  66. package/dist/index.mjs +0 -118
  67. package/dist/index.mjs.map +0 -1
  68. package/dist/infrastructure/index.d.mts +0 -423
  69. package/dist/infrastructure/index.d.ts +0 -423
  70. package/dist/infrastructure/index.js +0 -633
  71. package/dist/infrastructure/index.js.map +0 -1
  72. package/dist/infrastructure/index.mjs +0 -619
  73. package/dist/infrastructure/index.mjs.map +0 -1
  74. package/dist/label-DWTEkNPo.d.ts +0 -226
  75. package/dist/label-LPpdcoBx.d.mts +0 -226
  76. package/dist/layout/index.d.mts +0 -48
  77. package/dist/layout/index.d.ts +0 -48
  78. package/dist/layout/index.js +0 -117
  79. package/dist/layout/index.js.map +0 -1
  80. package/dist/layout/index.mjs +0 -90
  81. package/dist/layout/index.mjs.map +0 -1
  82. package/dist/navigation/index.d.mts +0 -16
  83. package/dist/navigation/index.d.ts +0 -16
  84. package/dist/navigation/index.js +0 -53
  85. package/dist/navigation/index.js.map +0 -1
  86. package/dist/navigation/index.mjs +0 -50
  87. package/dist/navigation/index.mjs.map +0 -1
  88. package/dist/notification/index.d.mts +0 -105
  89. package/dist/notification/index.d.ts +0 -105
  90. package/dist/notification/index.js +0 -278
  91. package/dist/notification/index.js.map +0 -1
  92. package/dist/notification/index.mjs +0 -274
  93. package/dist/notification/index.mjs.map +0 -1
  94. package/dist/organization/index.d.mts +0 -99
  95. package/dist/organization/index.d.ts +0 -99
  96. package/dist/organization/index.js +0 -360
  97. package/dist/organization/index.js.map +0 -1
  98. package/dist/organization/index.mjs +0 -352
  99. package/dist/organization/index.mjs.map +0 -1
  100. package/dist/plugin/index.d.mts +0 -83
  101. package/dist/plugin/index.d.ts +0 -83
  102. package/dist/plugin/index.js +0 -86
  103. package/dist/plugin/index.js.map +0 -1
  104. package/dist/plugin/index.mjs +0 -84
  105. package/dist/plugin/index.mjs.map +0 -1
  106. package/dist/providers/index.d.mts +0 -25
  107. package/dist/providers/index.d.ts +0 -25
  108. package/dist/providers/index.js +0 -84
  109. package/dist/providers/index.js.map +0 -1
  110. package/dist/providers/index.mjs +0 -77
  111. package/dist/providers/index.mjs.map +0 -1
  112. package/dist/rbac/index.d.mts +0 -226
  113. package/dist/rbac/index.d.ts +0 -226
  114. package/dist/rbac/index.js +0 -4784
  115. package/dist/rbac/index.js.map +0 -1
  116. package/dist/rbac/index.mjs +0 -4722
  117. package/dist/rbac/index.mjs.map +0 -1
  118. package/dist/rbac/permissions.d.mts +0 -26
  119. package/dist/rbac/permissions.d.ts +0 -26
  120. package/dist/rbac/permissions.js +0 -94
  121. package/dist/rbac/permissions.js.map +0 -1
  122. package/dist/rbac/permissions.mjs +0 -90
  123. package/dist/rbac/permissions.mjs.map +0 -1
  124. package/dist/rbac/server.d.mts +0 -1
  125. package/dist/rbac/server.d.ts +0 -1
  126. package/dist/rbac/server.js +0 -128
  127. package/dist/rbac/server.js.map +0 -1
  128. package/dist/rbac/server.mjs +0 -124
  129. package/dist/rbac/server.mjs.map +0 -1
  130. package/dist/schemas/index.d.mts +0 -1257
  131. package/dist/schemas/index.d.ts +0 -1257
  132. package/dist/schemas/index.js +0 -572
  133. package/dist/schemas/index.js.map +0 -1
  134. package/dist/schemas/index.mjs +0 -523
  135. package/dist/schemas/index.mjs.map +0 -1
  136. package/dist/server-QuYCTa89.d.mts +0 -83
  137. package/dist/server-QuYCTa89.d.ts +0 -83
  138. package/dist/sonner-C74GlRDQ.d.mts +0 -71
  139. package/dist/sonner-C74GlRDQ.d.ts +0 -71
  140. package/dist/status-BOXZgIqX.d.mts +0 -12
  141. package/dist/status-BOXZgIqX.d.ts +0 -12
  142. package/dist/system/index.d.mts +0 -77
  143. package/dist/system/index.d.ts +0 -77
  144. package/dist/system/index.js +0 -102
  145. package/dist/system/index.js.map +0 -1
  146. package/dist/system/index.mjs +0 -100
  147. package/dist/system/index.mjs.map +0 -1
  148. package/dist/tabs-C6FfBwPY.d.mts +0 -18
  149. package/dist/tabs-C6FfBwPY.d.ts +0 -18
  150. package/dist/tenant-provider-B8eC_Wpb.d.mts +0 -27
  151. package/dist/tenant-provider-B8eC_Wpb.d.ts +0 -27
  152. package/dist/types/index.d.mts +0 -469
  153. package/dist/types/index.d.ts +0 -469
  154. package/dist/types/index.js +0 -25
  155. package/dist/types/index.js.map +0 -1
  156. package/dist/types/index.mjs +0 -21
  157. package/dist/types/index.mjs.map +0 -1
  158. package/dist/ui/auth.d.mts +0 -39
  159. package/dist/ui/auth.d.ts +0 -39
  160. package/dist/ui/auth.js +0 -4941
  161. package/dist/ui/auth.js.map +0 -1
  162. package/dist/ui/auth.mjs +0 -4896
  163. package/dist/ui/auth.mjs.map +0 -1
  164. package/dist/ui/crud.d.mts +0 -2
  165. package/dist/ui/crud.d.ts +0 -2
  166. package/dist/ui/crud.js +0 -4
  167. package/dist/ui/crud.js.map +0 -1
  168. package/dist/ui/crud.mjs +0 -3
  169. package/dist/ui/crud.mjs.map +0 -1
  170. package/dist/ui/data-display.d.mts +0 -596
  171. package/dist/ui/data-display.d.ts +0 -596
  172. package/dist/ui/data-display.js +0 -5307
  173. package/dist/ui/data-display.js.map +0 -1
  174. package/dist/ui/data-display.mjs +0 -5212
  175. package/dist/ui/data-display.mjs.map +0 -1
  176. package/dist/ui/feedback.d.mts +0 -55
  177. package/dist/ui/feedback.d.ts +0 -55
  178. package/dist/ui/feedback.js +0 -2608
  179. package/dist/ui/feedback.js.map +0 -1
  180. package/dist/ui/feedback.mjs +0 -2526
  181. package/dist/ui/feedback.mjs.map +0 -1
  182. package/dist/ui/forms.d.mts +0 -309
  183. package/dist/ui/forms.d.ts +0 -309
  184. package/dist/ui/forms.js +0 -4656
  185. package/dist/ui/forms.js.map +0 -1
  186. package/dist/ui/forms.mjs +0 -4571
  187. package/dist/ui/forms.mjs.map +0 -1
  188. package/dist/ui/index.d.mts +0 -331
  189. package/dist/ui/index.d.ts +0 -331
  190. package/dist/ui/index.js +0 -16953
  191. package/dist/ui/index.js.map +0 -1
  192. package/dist/ui/index.mjs +0 -16598
  193. package/dist/ui/index.mjs.map +0 -1
  194. package/dist/ui/primitives/client.d.mts +0 -61
  195. package/dist/ui/primitives/client.d.ts +0 -61
  196. package/dist/ui/primitives/client.js +0 -3408
  197. package/dist/ui/primitives/client.js.map +0 -1
  198. package/dist/ui/primitives/client.mjs +0 -3256
  199. package/dist/ui/primitives/client.mjs.map +0 -1
  200. package/dist/ui/primitives.d.mts +0 -113
  201. package/dist/ui/primitives.d.ts +0 -113
  202. package/dist/ui/primitives.js +0 -3356
  203. package/dist/ui/primitives.js.map +0 -1
  204. package/dist/ui/primitives.mjs +0 -3227
  205. package/dist/ui/primitives.mjs.map +0 -1
  206. package/dist/user/index.d.mts +0 -228
  207. package/dist/user/index.d.ts +0 -228
  208. package/dist/user/index.js +0 -4306
  209. package/dist/user/index.js.map +0 -1
  210. package/dist/user/index.mjs +0 -4260
  211. package/dist/user/index.mjs.map +0 -1
  212. package/dist/utils/index.d.mts +0 -205
  213. package/dist/utils/index.d.ts +0 -205
  214. package/dist/utils/index.js +0 -574
  215. package/dist/utils/index.js.map +0 -1
  216. package/dist/utils/index.mjs +0 -514
  217. package/dist/utils/index.mjs.map +0 -1
  218. package/dist/workflow/index.d.mts +0 -40
  219. package/dist/workflow/index.d.ts +0 -40
  220. package/dist/workflow/index.js +0 -3710
  221. package/dist/workflow/index.js.map +0 -1
  222. package/dist/workflow/index.mjs +0 -3677
  223. package/dist/workflow/index.mjs.map +0 -1
@@ -1,228 +0,0 @@
1
- import { z } from 'zod';
2
- import * as react_jsx_runtime from 'react/jsx-runtime';
3
- import { a as DictionaryType } from '../index-B9zQVEVi.mjs';
4
- import { CrudResponse } from '../types/index.mjs';
5
- import 'react';
6
- import '../tenant-provider-B8eC_Wpb.mjs';
7
- import 'lucide-react';
8
-
9
- declare const MAX_AVATAR_SIZE = 50000000;
10
- declare const fomratedAvatarSize: string;
11
- declare const ProfileInfoSchema: z.ZodObject<{
12
- firstName: z.ZodString;
13
- lastName: z.ZodString;
14
- username: z.ZodString;
15
- email: z.ZodString;
16
- phoneNumber: z.ZodString;
17
- state: z.ZodString;
18
- country: z.ZodString;
19
- address: z.ZodString;
20
- zipCode: z.ZodString;
21
- language: z.ZodString;
22
- timeZone: z.ZodString;
23
- currency: z.ZodString;
24
- organization: z.ZodOptional<z.ZodString>;
25
- avatar: z.ZodOptional<z.ZodEffects<z.ZodType<File, z.ZodTypeDef, File>, File, File>>;
26
- }, "strip", z.ZodTypeAny, {
27
- email: string;
28
- currency: string;
29
- timeZone: string;
30
- firstName: string;
31
- lastName: string;
32
- username: string;
33
- phoneNumber: string;
34
- state: string;
35
- country: string;
36
- address: string;
37
- zipCode: string;
38
- language: string;
39
- organization?: string | undefined;
40
- avatar?: File | undefined;
41
- }, {
42
- email: string;
43
- currency: string;
44
- timeZone: string;
45
- firstName: string;
46
- lastName: string;
47
- username: string;
48
- phoneNumber: string;
49
- state: string;
50
- country: string;
51
- address: string;
52
- zipCode: string;
53
- language: string;
54
- organization?: string | undefined;
55
- avatar?: File | undefined;
56
- }>;
57
- declare const DeleteAccountSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
58
-
59
- interface UserType {
60
- id: string;
61
- firstName: string;
62
- lastName: string;
63
- name: string;
64
- username: string;
65
- role: string;
66
- avatar: string;
67
- background: string;
68
- status: string;
69
- phoneNumber: string;
70
- email: string;
71
- state: string;
72
- country: string;
73
- address: string;
74
- zipCode: string;
75
- language: string;
76
- timeZone: string;
77
- currency: string;
78
- organization: string;
79
- twoFactorAuth: boolean;
80
- loginAlerts: boolean;
81
- accountReoveryOption?: "email" | "sms" | "codes";
82
- connections: number;
83
- followers: number;
84
- }
85
- type DeleteAccountFormType = z.infer<typeof DeleteAccountSchema>;
86
- type ProfileInfoFormType = z.infer<typeof ProfileInfoSchema>;
87
-
88
- interface ProfilePageProps {
89
- user: UserType;
90
- dictionary?: DictionaryType;
91
- }
92
- declare function ProfilePage({ user, dictionary }: ProfilePageProps): react_jsx_runtime.JSX.Element;
93
-
94
- interface ProfileInfoProps {
95
- user: UserType;
96
- dictionary?: DictionaryType;
97
- }
98
- declare function ProfileInfo({ user, dictionary }: ProfileInfoProps): react_jsx_runtime.JSX.Element;
99
-
100
- interface DangerousZoneProps {
101
- user: UserType;
102
- dictionary?: DictionaryType;
103
- }
104
- declare function DangerousZone({ user, dictionary }: DangerousZoneProps): react_jsx_runtime.JSX.Element;
105
-
106
- interface ProfileInfoFormProps {
107
- user: UserType;
108
- dictionary?: DictionaryType;
109
- }
110
- declare function ProfileInfoForm({ user, dictionary }: ProfileInfoFormProps): react_jsx_runtime.JSX.Element;
111
-
112
- interface DeleteAccountFormProps {
113
- user: UserType;
114
- dictionary?: DictionaryType;
115
- }
116
- declare function DeleteAccountForm({ user, dictionary }: DeleteAccountFormProps): react_jsx_runtime.JSX.Element;
117
-
118
- interface UserPrismaClient {
119
- user: any;
120
- role: any;
121
- department: any;
122
- $transaction: (args: any) => Promise<any>;
123
- }
124
- interface GetUsersParams {
125
- page?: number;
126
- pageSize?: number;
127
- search?: string;
128
- status?: string;
129
- roleCode?: string;
130
- departmentId?: string;
131
- }
132
- interface UserWithDetails {
133
- id: string;
134
- name: string | null;
135
- email: string;
136
- image: string | null;
137
- isActive: boolean;
138
- createdAt: Date;
139
- updatedAt: Date;
140
- roles: {
141
- code: string;
142
- name: string;
143
- }[];
144
- department: {
145
- id: string;
146
- name: string;
147
- code: string;
148
- } | null;
149
- jobTitle: {
150
- id: string;
151
- name: string;
152
- code: string;
153
- level: number;
154
- } | null;
155
- branches: {
156
- id: string;
157
- name: string;
158
- isDefault: boolean;
159
- }[];
160
- branchIds: string[];
161
- }
162
- interface UsersStats {
163
- totalUsers: number;
164
- activeUsers: number;
165
- inactiveUsers: number;
166
- totalRoles: number;
167
- employees: number;
168
- customers: number;
169
- suppliers: number;
170
- }
171
- interface UsersDataResponse extends CrudResponse<UserWithDetails> {
172
- stats: UsersStats;
173
- }
174
- declare function getUsersData(db: UserPrismaClient, params: GetUsersParams): Promise<CrudResponse<any>>;
175
- /**
176
- * Get users with extended details including roles, department, and job title
177
- */
178
- declare function getUsersWithDetails(db: UserPrismaClient, params: GetUsersParams): Promise<UsersDataResponse>;
179
- /**
180
- * Get all active roles for filter dropdown
181
- */
182
- declare function getActiveRoles(db: UserPrismaClient): Promise<any>;
183
- /**
184
- * Get all active departments for filter dropdown
185
- */
186
- declare function getActiveDepartments(db: UserPrismaClient): Promise<any>;
187
- /**
188
- * Get user statistics
189
- */
190
- declare function getUserStats(db: UserPrismaClient): Promise<{
191
- totalUsers: any;
192
- activeUsers: any;
193
- inactiveUsers: number;
194
- totalRoles: any;
195
- employees: number;
196
- customers: any;
197
- suppliers: any;
198
- }>;
199
- /**
200
- * Get user profile by ID
201
- */
202
- declare function getUserProfile(db: UserPrismaClient, userId: string): Promise<{
203
- id: any;
204
- firstName: any;
205
- lastName: any;
206
- name: any;
207
- username: any;
208
- email: any;
209
- avatar: any;
210
- role: any;
211
- background: string;
212
- status: string;
213
- phoneNumber: any;
214
- state: string;
215
- country: string;
216
- address: any;
217
- zipCode: string;
218
- language: string;
219
- timeZone: string;
220
- currency: string;
221
- organization: string;
222
- twoFactorAuth: boolean;
223
- loginAlerts: boolean;
224
- connections: number;
225
- followers: number;
226
- } | null>;
227
-
228
- export { DangerousZone, DeleteAccountForm, type DeleteAccountFormType, DeleteAccountSchema, type GetUsersParams, MAX_AVATAR_SIZE, ProfileInfo, ProfileInfoForm, type ProfileInfoFormType, ProfileInfoSchema, ProfilePage, type ProfilePageProps, type UserPrismaClient, type UserType, type UserWithDetails, type UsersDataResponse, type UsersStats, fomratedAvatarSize, getActiveDepartments, getActiveRoles, getUserProfile, getUserStats, getUsersData, getUsersWithDetails };
@@ -1,228 +0,0 @@
1
- import { z } from 'zod';
2
- import * as react_jsx_runtime from 'react/jsx-runtime';
3
- import { a as DictionaryType } from '../index-50hpiPrV.js';
4
- import { CrudResponse } from '../types/index.js';
5
- import 'react';
6
- import '../tenant-provider-B8eC_Wpb.js';
7
- import 'lucide-react';
8
-
9
- declare const MAX_AVATAR_SIZE = 50000000;
10
- declare const fomratedAvatarSize: string;
11
- declare const ProfileInfoSchema: z.ZodObject<{
12
- firstName: z.ZodString;
13
- lastName: z.ZodString;
14
- username: z.ZodString;
15
- email: z.ZodString;
16
- phoneNumber: z.ZodString;
17
- state: z.ZodString;
18
- country: z.ZodString;
19
- address: z.ZodString;
20
- zipCode: z.ZodString;
21
- language: z.ZodString;
22
- timeZone: z.ZodString;
23
- currency: z.ZodString;
24
- organization: z.ZodOptional<z.ZodString>;
25
- avatar: z.ZodOptional<z.ZodEffects<z.ZodType<File, z.ZodTypeDef, File>, File, File>>;
26
- }, "strip", z.ZodTypeAny, {
27
- email: string;
28
- currency: string;
29
- timeZone: string;
30
- firstName: string;
31
- lastName: string;
32
- username: string;
33
- phoneNumber: string;
34
- state: string;
35
- country: string;
36
- address: string;
37
- zipCode: string;
38
- language: string;
39
- organization?: string | undefined;
40
- avatar?: File | undefined;
41
- }, {
42
- email: string;
43
- currency: string;
44
- timeZone: string;
45
- firstName: string;
46
- lastName: string;
47
- username: string;
48
- phoneNumber: string;
49
- state: string;
50
- country: string;
51
- address: string;
52
- zipCode: string;
53
- language: string;
54
- organization?: string | undefined;
55
- avatar?: File | undefined;
56
- }>;
57
- declare const DeleteAccountSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
58
-
59
- interface UserType {
60
- id: string;
61
- firstName: string;
62
- lastName: string;
63
- name: string;
64
- username: string;
65
- role: string;
66
- avatar: string;
67
- background: string;
68
- status: string;
69
- phoneNumber: string;
70
- email: string;
71
- state: string;
72
- country: string;
73
- address: string;
74
- zipCode: string;
75
- language: string;
76
- timeZone: string;
77
- currency: string;
78
- organization: string;
79
- twoFactorAuth: boolean;
80
- loginAlerts: boolean;
81
- accountReoveryOption?: "email" | "sms" | "codes";
82
- connections: number;
83
- followers: number;
84
- }
85
- type DeleteAccountFormType = z.infer<typeof DeleteAccountSchema>;
86
- type ProfileInfoFormType = z.infer<typeof ProfileInfoSchema>;
87
-
88
- interface ProfilePageProps {
89
- user: UserType;
90
- dictionary?: DictionaryType;
91
- }
92
- declare function ProfilePage({ user, dictionary }: ProfilePageProps): react_jsx_runtime.JSX.Element;
93
-
94
- interface ProfileInfoProps {
95
- user: UserType;
96
- dictionary?: DictionaryType;
97
- }
98
- declare function ProfileInfo({ user, dictionary }: ProfileInfoProps): react_jsx_runtime.JSX.Element;
99
-
100
- interface DangerousZoneProps {
101
- user: UserType;
102
- dictionary?: DictionaryType;
103
- }
104
- declare function DangerousZone({ user, dictionary }: DangerousZoneProps): react_jsx_runtime.JSX.Element;
105
-
106
- interface ProfileInfoFormProps {
107
- user: UserType;
108
- dictionary?: DictionaryType;
109
- }
110
- declare function ProfileInfoForm({ user, dictionary }: ProfileInfoFormProps): react_jsx_runtime.JSX.Element;
111
-
112
- interface DeleteAccountFormProps {
113
- user: UserType;
114
- dictionary?: DictionaryType;
115
- }
116
- declare function DeleteAccountForm({ user, dictionary }: DeleteAccountFormProps): react_jsx_runtime.JSX.Element;
117
-
118
- interface UserPrismaClient {
119
- user: any;
120
- role: any;
121
- department: any;
122
- $transaction: (args: any) => Promise<any>;
123
- }
124
- interface GetUsersParams {
125
- page?: number;
126
- pageSize?: number;
127
- search?: string;
128
- status?: string;
129
- roleCode?: string;
130
- departmentId?: string;
131
- }
132
- interface UserWithDetails {
133
- id: string;
134
- name: string | null;
135
- email: string;
136
- image: string | null;
137
- isActive: boolean;
138
- createdAt: Date;
139
- updatedAt: Date;
140
- roles: {
141
- code: string;
142
- name: string;
143
- }[];
144
- department: {
145
- id: string;
146
- name: string;
147
- code: string;
148
- } | null;
149
- jobTitle: {
150
- id: string;
151
- name: string;
152
- code: string;
153
- level: number;
154
- } | null;
155
- branches: {
156
- id: string;
157
- name: string;
158
- isDefault: boolean;
159
- }[];
160
- branchIds: string[];
161
- }
162
- interface UsersStats {
163
- totalUsers: number;
164
- activeUsers: number;
165
- inactiveUsers: number;
166
- totalRoles: number;
167
- employees: number;
168
- customers: number;
169
- suppliers: number;
170
- }
171
- interface UsersDataResponse extends CrudResponse<UserWithDetails> {
172
- stats: UsersStats;
173
- }
174
- declare function getUsersData(db: UserPrismaClient, params: GetUsersParams): Promise<CrudResponse<any>>;
175
- /**
176
- * Get users with extended details including roles, department, and job title
177
- */
178
- declare function getUsersWithDetails(db: UserPrismaClient, params: GetUsersParams): Promise<UsersDataResponse>;
179
- /**
180
- * Get all active roles for filter dropdown
181
- */
182
- declare function getActiveRoles(db: UserPrismaClient): Promise<any>;
183
- /**
184
- * Get all active departments for filter dropdown
185
- */
186
- declare function getActiveDepartments(db: UserPrismaClient): Promise<any>;
187
- /**
188
- * Get user statistics
189
- */
190
- declare function getUserStats(db: UserPrismaClient): Promise<{
191
- totalUsers: any;
192
- activeUsers: any;
193
- inactiveUsers: number;
194
- totalRoles: any;
195
- employees: number;
196
- customers: any;
197
- suppliers: any;
198
- }>;
199
- /**
200
- * Get user profile by ID
201
- */
202
- declare function getUserProfile(db: UserPrismaClient, userId: string): Promise<{
203
- id: any;
204
- firstName: any;
205
- lastName: any;
206
- name: any;
207
- username: any;
208
- email: any;
209
- avatar: any;
210
- role: any;
211
- background: string;
212
- status: string;
213
- phoneNumber: any;
214
- state: string;
215
- country: string;
216
- address: any;
217
- zipCode: string;
218
- language: string;
219
- timeZone: string;
220
- currency: string;
221
- organization: string;
222
- twoFactorAuth: boolean;
223
- loginAlerts: boolean;
224
- connections: number;
225
- followers: number;
226
- } | null>;
227
-
228
- export { DangerousZone, DeleteAccountForm, type DeleteAccountFormType, DeleteAccountSchema, type GetUsersParams, MAX_AVATAR_SIZE, ProfileInfo, ProfileInfoForm, type ProfileInfoFormType, ProfileInfoSchema, ProfilePage, type ProfilePageProps, type UserPrismaClient, type UserType, type UserWithDetails, type UsersDataResponse, type UsersStats, fomratedAvatarSize, getActiveDepartments, getActiveRoles, getUserProfile, getUserStats, getUsersData, getUsersWithDetails };