@goplusvn/core 0.1.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 (223) hide show
  1. package/dist/audit/index.d.mts +115 -0
  2. package/dist/audit/index.d.ts +115 -0
  3. package/dist/audit/index.js +204 -0
  4. package/dist/audit/index.js.map +1 -0
  5. package/dist/audit/index.mjs +200 -0
  6. package/dist/audit/index.mjs.map +1 -0
  7. package/dist/auth/index.d.mts +86 -0
  8. package/dist/auth/index.d.ts +86 -0
  9. package/dist/auth/index.js +210 -0
  10. package/dist/auth/index.js.map +1 -0
  11. package/dist/auth/index.mjs +198 -0
  12. package/dist/auth/index.mjs.map +1 -0
  13. package/dist/button-1dWvP9Ib.d.mts +30 -0
  14. package/dist/button-1dWvP9Ib.d.ts +30 -0
  15. package/dist/calendar-2QzdEo1z.d.mts +20 -0
  16. package/dist/calendar-2QzdEo1z.d.ts +20 -0
  17. package/dist/code-generation/index.d.mts +30 -0
  18. package/dist/code-generation/index.d.ts +30 -0
  19. package/dist/code-generation/index.js +31 -0
  20. package/dist/code-generation/index.js.map +1 -0
  21. package/dist/code-generation/index.mjs +28 -0
  22. package/dist/code-generation/index.mjs.map +1 -0
  23. package/dist/configs/index.d.mts +175 -0
  24. package/dist/configs/index.d.ts +175 -0
  25. package/dist/configs/index.js +254 -0
  26. package/dist/configs/index.js.map +1 -0
  27. package/dist/configs/index.mjs +233 -0
  28. package/dist/configs/index.mjs.map +1 -0
  29. package/dist/crud/index.d.mts +646 -0
  30. package/dist/crud/index.d.ts +646 -0
  31. package/dist/crud/index.js +11772 -0
  32. package/dist/crud/index.js.map +1 -0
  33. package/dist/crud/index.mjs +11665 -0
  34. package/dist/crud/index.mjs.map +1 -0
  35. package/dist/crud/server.d.mts +20 -0
  36. package/dist/crud/server.d.ts +20 -0
  37. package/dist/crud/server.js +123 -0
  38. package/dist/crud/server.js.map +1 -0
  39. package/dist/crud/server.mjs +120 -0
  40. package/dist/crud/server.mjs.map +1 -0
  41. package/dist/data-table-skeleton-12NA8Mjx.d.mts +39 -0
  42. package/dist/data-table-skeleton-12NA8Mjx.d.ts +39 -0
  43. package/dist/dialog-bKfjZMTd.d.mts +22 -0
  44. package/dist/dialog-bKfjZMTd.d.ts +22 -0
  45. package/dist/dynamic-icon-DrGIiu2N.d.mts +10 -0
  46. package/dist/dynamic-icon-DrGIiu2N.d.ts +10 -0
  47. package/dist/home/index.d.mts +269 -0
  48. package/dist/home/index.d.ts +269 -0
  49. package/dist/home/index.js +1678 -0
  50. package/dist/home/index.js.map +1 -0
  51. package/dist/home/index.mjs +1635 -0
  52. package/dist/home/index.mjs.map +1 -0
  53. package/dist/hooks/index.d.mts +7 -0
  54. package/dist/hooks/index.d.ts +7 -0
  55. package/dist/hooks/index.js +8316 -0
  56. package/dist/hooks/index.js.map +1 -0
  57. package/dist/hooks/index.mjs +8255 -0
  58. package/dist/hooks/index.mjs.map +1 -0
  59. package/dist/index-50hpiPrV.d.ts +116 -0
  60. package/dist/index-B9zQVEVi.d.mts +116 -0
  61. package/dist/index.d.mts +5 -0
  62. package/dist/index.d.ts +5 -0
  63. package/dist/index.js +123 -0
  64. package/dist/index.js.map +1 -0
  65. package/dist/index.mjs +118 -0
  66. package/dist/index.mjs.map +1 -0
  67. package/dist/infrastructure/index.d.mts +423 -0
  68. package/dist/infrastructure/index.d.ts +423 -0
  69. package/dist/infrastructure/index.js +633 -0
  70. package/dist/infrastructure/index.js.map +1 -0
  71. package/dist/infrastructure/index.mjs +619 -0
  72. package/dist/infrastructure/index.mjs.map +1 -0
  73. package/dist/label-DWTEkNPo.d.ts +226 -0
  74. package/dist/label-LPpdcoBx.d.mts +226 -0
  75. package/dist/layout/index.d.mts +48 -0
  76. package/dist/layout/index.d.ts +48 -0
  77. package/dist/layout/index.js +117 -0
  78. package/dist/layout/index.js.map +1 -0
  79. package/dist/layout/index.mjs +90 -0
  80. package/dist/layout/index.mjs.map +1 -0
  81. package/dist/navigation/index.d.mts +16 -0
  82. package/dist/navigation/index.d.ts +16 -0
  83. package/dist/navigation/index.js +53 -0
  84. package/dist/navigation/index.js.map +1 -0
  85. package/dist/navigation/index.mjs +50 -0
  86. package/dist/navigation/index.mjs.map +1 -0
  87. package/dist/notification/index.d.mts +105 -0
  88. package/dist/notification/index.d.ts +105 -0
  89. package/dist/notification/index.js +278 -0
  90. package/dist/notification/index.js.map +1 -0
  91. package/dist/notification/index.mjs +274 -0
  92. package/dist/notification/index.mjs.map +1 -0
  93. package/dist/organization/index.d.mts +99 -0
  94. package/dist/organization/index.d.ts +99 -0
  95. package/dist/organization/index.js +360 -0
  96. package/dist/organization/index.js.map +1 -0
  97. package/dist/organization/index.mjs +352 -0
  98. package/dist/organization/index.mjs.map +1 -0
  99. package/dist/plugin/index.d.mts +83 -0
  100. package/dist/plugin/index.d.ts +83 -0
  101. package/dist/plugin/index.js +86 -0
  102. package/dist/plugin/index.js.map +1 -0
  103. package/dist/plugin/index.mjs +84 -0
  104. package/dist/plugin/index.mjs.map +1 -0
  105. package/dist/providers/index.d.mts +25 -0
  106. package/dist/providers/index.d.ts +25 -0
  107. package/dist/providers/index.js +84 -0
  108. package/dist/providers/index.js.map +1 -0
  109. package/dist/providers/index.mjs +77 -0
  110. package/dist/providers/index.mjs.map +1 -0
  111. package/dist/rbac/index.d.mts +226 -0
  112. package/dist/rbac/index.d.ts +226 -0
  113. package/dist/rbac/index.js +4784 -0
  114. package/dist/rbac/index.js.map +1 -0
  115. package/dist/rbac/index.mjs +4722 -0
  116. package/dist/rbac/index.mjs.map +1 -0
  117. package/dist/rbac/permissions.d.mts +26 -0
  118. package/dist/rbac/permissions.d.ts +26 -0
  119. package/dist/rbac/permissions.js +94 -0
  120. package/dist/rbac/permissions.js.map +1 -0
  121. package/dist/rbac/permissions.mjs +90 -0
  122. package/dist/rbac/permissions.mjs.map +1 -0
  123. package/dist/rbac/server.d.mts +1 -0
  124. package/dist/rbac/server.d.ts +1 -0
  125. package/dist/rbac/server.js +128 -0
  126. package/dist/rbac/server.js.map +1 -0
  127. package/dist/rbac/server.mjs +124 -0
  128. package/dist/rbac/server.mjs.map +1 -0
  129. package/dist/schemas/index.d.mts +1257 -0
  130. package/dist/schemas/index.d.ts +1257 -0
  131. package/dist/schemas/index.js +572 -0
  132. package/dist/schemas/index.js.map +1 -0
  133. package/dist/schemas/index.mjs +523 -0
  134. package/dist/schemas/index.mjs.map +1 -0
  135. package/dist/server-QuYCTa89.d.mts +83 -0
  136. package/dist/server-QuYCTa89.d.ts +83 -0
  137. package/dist/sonner-C74GlRDQ.d.mts +71 -0
  138. package/dist/sonner-C74GlRDQ.d.ts +71 -0
  139. package/dist/status-BOXZgIqX.d.mts +12 -0
  140. package/dist/status-BOXZgIqX.d.ts +12 -0
  141. package/dist/system/index.d.mts +77 -0
  142. package/dist/system/index.d.ts +77 -0
  143. package/dist/system/index.js +102 -0
  144. package/dist/system/index.js.map +1 -0
  145. package/dist/system/index.mjs +100 -0
  146. package/dist/system/index.mjs.map +1 -0
  147. package/dist/tabs-C6FfBwPY.d.mts +18 -0
  148. package/dist/tabs-C6FfBwPY.d.ts +18 -0
  149. package/dist/tenant-provider-B8eC_Wpb.d.mts +27 -0
  150. package/dist/tenant-provider-B8eC_Wpb.d.ts +27 -0
  151. package/dist/types/index.d.mts +469 -0
  152. package/dist/types/index.d.ts +469 -0
  153. package/dist/types/index.js +25 -0
  154. package/dist/types/index.js.map +1 -0
  155. package/dist/types/index.mjs +21 -0
  156. package/dist/types/index.mjs.map +1 -0
  157. package/dist/ui/auth.d.mts +39 -0
  158. package/dist/ui/auth.d.ts +39 -0
  159. package/dist/ui/auth.js +4941 -0
  160. package/dist/ui/auth.js.map +1 -0
  161. package/dist/ui/auth.mjs +4896 -0
  162. package/dist/ui/auth.mjs.map +1 -0
  163. package/dist/ui/crud.d.mts +2 -0
  164. package/dist/ui/crud.d.ts +2 -0
  165. package/dist/ui/crud.js +4 -0
  166. package/dist/ui/crud.js.map +1 -0
  167. package/dist/ui/crud.mjs +3 -0
  168. package/dist/ui/crud.mjs.map +1 -0
  169. package/dist/ui/data-display.d.mts +596 -0
  170. package/dist/ui/data-display.d.ts +596 -0
  171. package/dist/ui/data-display.js +5307 -0
  172. package/dist/ui/data-display.js.map +1 -0
  173. package/dist/ui/data-display.mjs +5212 -0
  174. package/dist/ui/data-display.mjs.map +1 -0
  175. package/dist/ui/feedback.d.mts +55 -0
  176. package/dist/ui/feedback.d.ts +55 -0
  177. package/dist/ui/feedback.js +2608 -0
  178. package/dist/ui/feedback.js.map +1 -0
  179. package/dist/ui/feedback.mjs +2526 -0
  180. package/dist/ui/feedback.mjs.map +1 -0
  181. package/dist/ui/forms.d.mts +309 -0
  182. package/dist/ui/forms.d.ts +309 -0
  183. package/dist/ui/forms.js +4656 -0
  184. package/dist/ui/forms.js.map +1 -0
  185. package/dist/ui/forms.mjs +4571 -0
  186. package/dist/ui/forms.mjs.map +1 -0
  187. package/dist/ui/index.d.mts +331 -0
  188. package/dist/ui/index.d.ts +331 -0
  189. package/dist/ui/index.js +16953 -0
  190. package/dist/ui/index.js.map +1 -0
  191. package/dist/ui/index.mjs +16598 -0
  192. package/dist/ui/index.mjs.map +1 -0
  193. package/dist/ui/primitives/client.d.mts +61 -0
  194. package/dist/ui/primitives/client.d.ts +61 -0
  195. package/dist/ui/primitives/client.js +3408 -0
  196. package/dist/ui/primitives/client.js.map +1 -0
  197. package/dist/ui/primitives/client.mjs +3256 -0
  198. package/dist/ui/primitives/client.mjs.map +1 -0
  199. package/dist/ui/primitives.d.mts +113 -0
  200. package/dist/ui/primitives.d.ts +113 -0
  201. package/dist/ui/primitives.js +3356 -0
  202. package/dist/ui/primitives.js.map +1 -0
  203. package/dist/ui/primitives.mjs +3227 -0
  204. package/dist/ui/primitives.mjs.map +1 -0
  205. package/dist/user/index.d.mts +228 -0
  206. package/dist/user/index.d.ts +228 -0
  207. package/dist/user/index.js +4306 -0
  208. package/dist/user/index.js.map +1 -0
  209. package/dist/user/index.mjs +4260 -0
  210. package/dist/user/index.mjs.map +1 -0
  211. package/dist/utils/index.d.mts +205 -0
  212. package/dist/utils/index.d.ts +205 -0
  213. package/dist/utils/index.js +574 -0
  214. package/dist/utils/index.js.map +1 -0
  215. package/dist/utils/index.mjs +514 -0
  216. package/dist/utils/index.mjs.map +1 -0
  217. package/dist/workflow/index.d.mts +40 -0
  218. package/dist/workflow/index.d.ts +40 -0
  219. package/dist/workflow/index.js +3710 -0
  220. package/dist/workflow/index.js.map +1 -0
  221. package/dist/workflow/index.mjs +3677 -0
  222. package/dist/workflow/index.mjs.map +1 -0
  223. package/package.json +311 -0
@@ -0,0 +1,228 @@
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 };
@@ -0,0 +1,228 @@
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 };