@exyconn/common 2.0.0 → 2.3.2

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 (124) hide show
  1. package/README.md +864 -261
  2. package/dist/{index-BLltj-zN.d.ts → client/hooks/index.d.mts} +1 -195
  3. package/dist/{index-CIUdLBjA.d.mts → client/hooks/index.d.ts} +1 -195
  4. package/dist/client/hooks/index.js +2276 -0
  5. package/dist/client/hooks/index.js.map +1 -0
  6. package/dist/client/hooks/index.mjs +2217 -0
  7. package/dist/client/hooks/index.mjs.map +1 -0
  8. package/dist/client/index.d.mts +4 -1
  9. package/dist/client/index.d.ts +4 -1
  10. package/dist/client/index.js +2693 -19
  11. package/dist/client/index.js.map +1 -1
  12. package/dist/client/index.mjs +2634 -21
  13. package/dist/client/index.mjs.map +1 -1
  14. package/dist/client/web/index.d.mts +1461 -0
  15. package/dist/client/web/index.d.ts +1461 -0
  16. package/dist/client/web/index.js +2681 -0
  17. package/dist/client/web/index.js.map +1 -0
  18. package/dist/client/web/index.mjs +2618 -0
  19. package/dist/client/web/index.mjs.map +1 -0
  20. package/dist/data/brand-identity.d.mts +149 -0
  21. package/dist/data/brand-identity.d.ts +149 -0
  22. package/dist/data/brand-identity.js +235 -0
  23. package/dist/data/brand-identity.js.map +1 -0
  24. package/dist/data/brand-identity.mjs +220 -0
  25. package/dist/data/brand-identity.mjs.map +1 -0
  26. package/dist/data/countries.d.mts +61 -0
  27. package/dist/data/countries.d.ts +61 -0
  28. package/dist/data/countries.js +987 -0
  29. package/dist/data/countries.js.map +1 -0
  30. package/dist/data/countries.mjs +971 -0
  31. package/dist/data/countries.mjs.map +1 -0
  32. package/dist/data/currencies.d.mts +19 -0
  33. package/dist/data/currencies.d.ts +19 -0
  34. package/dist/data/currencies.js +162 -0
  35. package/dist/data/currencies.js.map +1 -0
  36. package/dist/data/currencies.mjs +153 -0
  37. package/dist/data/currencies.mjs.map +1 -0
  38. package/dist/data/index.d.mts +7 -0
  39. package/dist/data/index.d.ts +7 -0
  40. package/dist/data/index.js +2087 -0
  41. package/dist/data/index.js.map +1 -0
  42. package/dist/data/index.mjs +1948 -0
  43. package/dist/data/index.mjs.map +1 -0
  44. package/dist/data/phone-codes.d.mts +15 -0
  45. package/dist/data/phone-codes.d.ts +15 -0
  46. package/dist/data/phone-codes.js +219 -0
  47. package/dist/data/phone-codes.js.map +1 -0
  48. package/dist/data/phone-codes.mjs +211 -0
  49. package/dist/data/phone-codes.mjs.map +1 -0
  50. package/dist/data/regex.d.mts +287 -0
  51. package/dist/data/regex.d.ts +287 -0
  52. package/dist/data/regex.js +306 -0
  53. package/dist/data/regex.js.map +1 -0
  54. package/dist/data/regex.mjs +208 -0
  55. package/dist/data/regex.mjs.map +1 -0
  56. package/dist/data/timezones.d.mts +16 -0
  57. package/dist/data/timezones.d.ts +16 -0
  58. package/dist/data/timezones.js +98 -0
  59. package/dist/data/timezones.js.map +1 -0
  60. package/dist/data/timezones.mjs +89 -0
  61. package/dist/data/timezones.mjs.map +1 -0
  62. package/dist/index-01hoqibP.d.ts +119 -0
  63. package/dist/index-D3yCCjBZ.d.mts +119 -0
  64. package/dist/index-D9a9oxQy.d.ts +305 -0
  65. package/dist/index-DKn4raO7.d.ts +222 -0
  66. package/dist/index-DuxL84IW.d.mts +305 -0
  67. package/dist/index-NS8dS0p9.d.mts +222 -0
  68. package/dist/index-Nqm5_lwT.d.ts +188 -0
  69. package/dist/index-jBi3V6e5.d.mts +188 -0
  70. package/dist/index.d.mts +21 -729
  71. package/dist/index.d.ts +21 -729
  72. package/dist/index.js +3470 -97
  73. package/dist/index.js.map +1 -1
  74. package/dist/index.mjs +3457 -104
  75. package/dist/index.mjs.map +1 -1
  76. package/dist/server/configs/index.d.mts +602 -0
  77. package/dist/server/configs/index.d.ts +602 -0
  78. package/dist/server/configs/index.js +707 -0
  79. package/dist/server/configs/index.js.map +1 -0
  80. package/dist/server/configs/index.mjs +665 -0
  81. package/dist/server/configs/index.mjs.map +1 -0
  82. package/dist/server/index.d.mts +3 -0
  83. package/dist/server/index.d.ts +3 -0
  84. package/dist/server/index.js +699 -0
  85. package/dist/server/index.js.map +1 -1
  86. package/dist/server/index.mjs +662 -1
  87. package/dist/server/index.mjs.map +1 -1
  88. package/dist/shared/config/index.d.mts +40 -0
  89. package/dist/shared/config/index.d.ts +40 -0
  90. package/dist/shared/config/index.js +58 -0
  91. package/dist/shared/config/index.js.map +1 -0
  92. package/dist/shared/config/index.mjs +51 -0
  93. package/dist/shared/config/index.mjs.map +1 -0
  94. package/dist/shared/constants/index.d.mts +593 -0
  95. package/dist/shared/constants/index.d.ts +593 -0
  96. package/dist/shared/constants/index.js +391 -0
  97. package/dist/shared/constants/index.js.map +1 -0
  98. package/dist/shared/constants/index.mjs +360 -0
  99. package/dist/shared/constants/index.mjs.map +1 -0
  100. package/dist/shared/index.d.mts +5 -1
  101. package/dist/shared/index.d.ts +5 -1
  102. package/dist/shared/types/index.d.mts +140 -0
  103. package/dist/shared/types/index.d.ts +140 -0
  104. package/dist/shared/types/index.js +4 -0
  105. package/dist/shared/types/index.js.map +1 -0
  106. package/dist/shared/types/index.mjs +3 -0
  107. package/dist/shared/types/index.mjs.map +1 -0
  108. package/dist/shared/utils/index.d.mts +255 -0
  109. package/dist/shared/utils/index.d.ts +255 -0
  110. package/dist/shared/utils/index.js +623 -0
  111. package/dist/shared/utils/index.js.map +1 -0
  112. package/dist/shared/utils/index.mjs +324 -0
  113. package/dist/shared/utils/index.mjs.map +1 -0
  114. package/dist/shared/validation/index.d.mts +258 -0
  115. package/dist/shared/validation/index.d.ts +258 -0
  116. package/dist/shared/validation/index.js +185 -0
  117. package/dist/shared/validation/index.js.map +1 -0
  118. package/dist/shared/validation/index.mjs +172 -0
  119. package/dist/shared/validation/index.mjs.map +1 -0
  120. package/package.json +151 -56
  121. package/dist/index-DEzgM15j.d.ts +0 -67
  122. package/dist/index-DNFVgQx8.d.ts +0 -1375
  123. package/dist/index-DbV04Dx8.d.mts +0 -67
  124. package/dist/index-DfqEP6Oe.d.mts +0 -1375
@@ -1,1375 +0,0 @@
1
- import { A as ApiErrorResponse, a as ApiResponse, b as ApiSuccessResponse, B as BaseFilterParams, C as CreateResponse, D as DeleteResponse, F as FilterWithPagination, G as GetResponse, L as ListResponse, P as PaginatedResponse, c as PaginationMeta, d as PaginationParams, U as UpdateResponse } from './response.types-D--UhLJq.js';
2
- import { addDays, addHours, addMinutes, addMonths, addWeeks, addYears, differenceInDays, differenceInHours, differenceInMinutes, differenceInMonths, differenceInSeconds, differenceInWeeks, differenceInYears, eachDayOfInterval, eachMonthOfInterval, eachWeekOfInterval, endOfDay, endOfMonth, endOfWeek, endOfYear, format, formatDistance, formatDistanceToNow, formatDuration, formatRelative, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getYear, intervalToDuration, isAfter, isBefore, isEqual, isFuture, isPast, isSameDay, isSameMonth, isSameWeek, isSameYear, isThisMonth, isThisWeek, isThisYear, isToday, isTomorrow, isValid, isYesterday, parseISO, setHours, setMinutes, setSeconds, startOfDay, startOfMonth, startOfWeek, startOfYear, subDays, subHours, subMinutes, subMonths, subWeeks, subYears } from 'date-fns';
3
- import { formatInTimeZone, fromZonedTime, toZonedTime } from 'date-fns-tz';
4
-
5
- /**
6
- * User Types
7
- */
8
- interface BaseUser {
9
- id: string;
10
- email: string;
11
- name?: string;
12
- firstName?: string;
13
- lastName?: string;
14
- avatar?: string;
15
- isActive?: boolean;
16
- createdAt?: string | Date;
17
- updatedAt?: string | Date;
18
- }
19
- interface UserWithRole extends BaseUser {
20
- role: string | UserRole;
21
- }
22
- interface UserRole {
23
- id: string;
24
- name: string;
25
- permissions?: string[];
26
- }
27
- /**
28
- * Authentication Types
29
- */
30
- interface LoginCredentials {
31
- email: string;
32
- password: string;
33
- }
34
- interface RegisterCredentials extends LoginCredentials {
35
- name?: string;
36
- firstName?: string;
37
- lastName?: string;
38
- }
39
- interface AuthTokens {
40
- accessToken: string;
41
- refreshToken?: string;
42
- expiresIn?: number;
43
- }
44
- interface AuthResponse {
45
- user: BaseUser;
46
- tokens: AuthTokens;
47
- }
48
- interface JwtPayload {
49
- userId: string;
50
- email: string;
51
- role?: string;
52
- iat?: number;
53
- exp?: number;
54
- }
55
- /**
56
- * Password Reset Types
57
- */
58
- interface ForgotPasswordRequest {
59
- email: string;
60
- }
61
- interface ResetPasswordRequest {
62
- token: string;
63
- password: string;
64
- confirmPassword: string;
65
- }
66
- interface ChangePasswordRequest {
67
- currentPassword: string;
68
- newPassword: string;
69
- confirmPassword: string;
70
- }
71
-
72
- /**
73
- * Common Entity Types
74
- */
75
- interface BaseEntity {
76
- id: string;
77
- createdAt?: string | Date;
78
- updatedAt?: string | Date;
79
- }
80
- interface SoftDeleteEntity extends BaseEntity {
81
- deletedAt?: string | Date | null;
82
- isDeleted?: boolean;
83
- }
84
- interface AuditableEntity extends BaseEntity {
85
- createdBy?: string;
86
- updatedBy?: string;
87
- }
88
- interface OrganizationEntity extends BaseEntity {
89
- organizationId: string;
90
- }
91
- /**
92
- * Timestamps
93
- */
94
- interface Timestamps {
95
- createdAt: string | Date;
96
- updatedAt: string | Date;
97
- }
98
- /**
99
- * Generic ID Types
100
- */
101
- type ID = string;
102
- type ObjectId = string;
103
- /**
104
- * Nullable Type Helper
105
- */
106
- type Nullable<T> = T | null;
107
- /**
108
- * Optional Type Helper
109
- */
110
- type Optional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
111
- /**
112
- * Required Type Helper
113
- */
114
- type RequiredFields<T, K extends keyof T> = T & Required<Pick<T, K>>;
115
- /**
116
- * Key-Value Pair
117
- */
118
- interface KeyValuePair<T = string> {
119
- key: string;
120
- value: T;
121
- }
122
- /**
123
- * Select Option (for dropdowns)
124
- */
125
- interface SelectOption<T = string> {
126
- label: string;
127
- value: T;
128
- disabled?: boolean;
129
- }
130
- /**
131
- * Sort Order
132
- */
133
- type SortOrder = 'asc' | 'desc';
134
- /**
135
- * Sort Config
136
- */
137
- interface SortConfig {
138
- field: string;
139
- order: SortOrder;
140
- }
141
-
142
- /**
143
- * Environment Configuration
144
- * Shared config helpers for both client and server
145
- */
146
- interface EnvConfig {
147
- NODE_ENV: 'development' | 'production' | 'test';
148
- PORT?: number;
149
- API_URL?: string;
150
- DATABASE_URL?: string;
151
- JWT_SECRET?: string;
152
- JWT_EXPIRES_IN?: string;
153
- LOG_LEVEL?: string;
154
- [key: string]: string | number | boolean | undefined;
155
- }
156
- /**
157
- * Get environment variable with type safety
158
- */
159
- declare const getEnv: <T extends string | number | boolean>(key: string, defaultValue?: T) => T;
160
- /**
161
- * Get optional environment variable
162
- */
163
- declare const getEnvOptional: <T extends string | number | boolean>(key: string, defaultValue?: T) => T | undefined;
164
- /**
165
- * Check if environment is production
166
- */
167
- declare const isProd: () => boolean;
168
- /**
169
- * Check if environment is development
170
- */
171
- declare const isDev: () => boolean;
172
- /**
173
- * Check if environment is test
174
- */
175
- declare const isTest: () => boolean;
176
- /**
177
- * Validate required environment variables
178
- */
179
- declare const validateEnv: (requiredVars: string[]) => void;
180
-
181
- /**
182
- * HTTP Status Codes
183
- */
184
- declare const HTTP_STATUS: {
185
- readonly OK: 200;
186
- readonly CREATED: 201;
187
- readonly ACCEPTED: 202;
188
- readonly NO_CONTENT: 204;
189
- readonly MOVED_PERMANENTLY: 301;
190
- readonly FOUND: 302;
191
- readonly NOT_MODIFIED: 304;
192
- readonly TEMPORARY_REDIRECT: 307;
193
- readonly PERMANENT_REDIRECT: 308;
194
- readonly BAD_REQUEST: 400;
195
- readonly UNAUTHORIZED: 401;
196
- readonly FORBIDDEN: 403;
197
- readonly NOT_FOUND: 404;
198
- readonly METHOD_NOT_ALLOWED: 405;
199
- readonly CONFLICT: 409;
200
- readonly GONE: 410;
201
- readonly UNPROCESSABLE_ENTITY: 422;
202
- readonly TOO_MANY_REQUESTS: 429;
203
- readonly INTERNAL_SERVER_ERROR: 500;
204
- readonly NOT_IMPLEMENTED: 501;
205
- readonly BAD_GATEWAY: 502;
206
- readonly SERVICE_UNAVAILABLE: 503;
207
- readonly GATEWAY_TIMEOUT: 504;
208
- };
209
- type HttpStatusCode = (typeof HTTP_STATUS)[keyof typeof HTTP_STATUS];
210
- /**
211
- * HTTP Status Messages
212
- */
213
- declare const HTTP_STATUS_MESSAGES: Record<number, string>;
214
- /**
215
- * Common Status Values
216
- */
217
- declare const STATUS: {
218
- readonly ACTIVE: "active";
219
- readonly INACTIVE: "inactive";
220
- readonly PENDING: "pending";
221
- readonly APPROVED: "approved";
222
- readonly REJECTED: "rejected";
223
- readonly DELETED: "deleted";
224
- readonly ARCHIVED: "archived";
225
- readonly DRAFT: "draft";
226
- readonly PUBLISHED: "published";
227
- readonly SUSPENDED: "suspended";
228
- };
229
- type StatusValue = (typeof STATUS)[keyof typeof STATUS];
230
- /**
231
- * User Status Values
232
- */
233
- declare const USER_STATUS: {
234
- readonly ACTIVE: "active";
235
- readonly INACTIVE: "inactive";
236
- readonly PENDING: "pending";
237
- readonly SUSPENDED: "suspended";
238
- readonly BANNED: "banned";
239
- };
240
- type UserStatusValue = (typeof USER_STATUS)[keyof typeof USER_STATUS];
241
- /**
242
- * Common Roles
243
- */
244
- declare const ROLES: {
245
- readonly ADMIN: "admin";
246
- readonly USER: "user";
247
- readonly MODERATOR: "moderator";
248
- readonly GUEST: "guest";
249
- readonly SUPER_ADMIN: "super_admin";
250
- };
251
- type RoleValue = (typeof ROLES)[keyof typeof ROLES];
252
- /**
253
- * Pagination Defaults
254
- */
255
- declare const PAGINATION: {
256
- readonly DEFAULT_PAGE: 1;
257
- readonly DEFAULT_LIMIT: 10;
258
- readonly MAX_LIMIT: 100;
259
- };
260
- /**
261
- * Token Types
262
- */
263
- declare const TOKEN_TYPES: {
264
- readonly ACCESS: "access";
265
- readonly REFRESH: "refresh";
266
- readonly RESET_PASSWORD: "reset_password";
267
- readonly EMAIL_VERIFICATION: "email_verification";
268
- };
269
- type TokenType = (typeof TOKEN_TYPES)[keyof typeof TOKEN_TYPES];
270
-
271
- /**
272
- * Order/Transaction status
273
- */
274
- declare const ORDER_STATUS: {
275
- readonly PENDING: "pending";
276
- readonly CONFIRMED: "confirmed";
277
- readonly PROCESSING: "processing";
278
- readonly SHIPPED: "shipped";
279
- readonly DELIVERED: "delivered";
280
- readonly CANCELLED: "cancelled";
281
- readonly REFUNDED: "refunded";
282
- readonly FAILED: "failed";
283
- readonly ON_HOLD: "on_hold";
284
- };
285
- type OrderStatus = (typeof ORDER_STATUS)[keyof typeof ORDER_STATUS];
286
- /**
287
- * Payment status
288
- */
289
- declare const PAYMENT_STATUS: {
290
- readonly PENDING: "pending";
291
- readonly PROCESSING: "processing";
292
- readonly COMPLETED: "completed";
293
- readonly FAILED: "failed";
294
- readonly CANCELLED: "cancelled";
295
- readonly REFUNDED: "refunded";
296
- readonly PARTIALLY_REFUNDED: "partially_refunded";
297
- readonly DISPUTED: "disputed";
298
- };
299
- type PaymentStatus = (typeof PAYMENT_STATUS)[keyof typeof PAYMENT_STATUS];
300
- /**
301
- * Task/Ticket status
302
- */
303
- declare const TASK_STATUS: {
304
- readonly TODO: "todo";
305
- readonly IN_PROGRESS: "in_progress";
306
- readonly IN_REVIEW: "in_review";
307
- readonly DONE: "done";
308
- readonly BLOCKED: "blocked";
309
- readonly CANCELLED: "cancelled";
310
- readonly ON_HOLD: "on_hold";
311
- };
312
- type TaskStatus = (typeof TASK_STATUS)[keyof typeof TASK_STATUS];
313
- /**
314
- * Subscription status
315
- */
316
- declare const SUBSCRIPTION_STATUS: {
317
- readonly ACTIVE: "active";
318
- readonly TRIAL: "trial";
319
- readonly PAST_DUE: "past_due";
320
- readonly CANCELLED: "cancelled";
321
- readonly EXPIRED: "expired";
322
- readonly PAUSED: "paused";
323
- readonly PENDING: "pending";
324
- };
325
- type SubscriptionStatus = (typeof SUBSCRIPTION_STATUS)[keyof typeof SUBSCRIPTION_STATUS];
326
- /**
327
- * Sort direction
328
- */
329
- declare const SORT_DIRECTION: {
330
- readonly ASC: "asc";
331
- readonly DESC: "desc";
332
- };
333
- type SortDirection = (typeof SORT_DIRECTION)[keyof typeof SORT_DIRECTION];
334
- /**
335
- * Common sort options
336
- */
337
- declare const SORT: {
338
- readonly NEWEST: "newest";
339
- readonly OLDEST: "oldest";
340
- readonly CREATED_AT_ASC: "created_at_asc";
341
- readonly CREATED_AT_DESC: "created_at_desc";
342
- readonly UPDATED_AT_ASC: "updated_at_asc";
343
- readonly UPDATED_AT_DESC: "updated_at_desc";
344
- readonly NAME_ASC: "name_asc";
345
- readonly NAME_DESC: "name_desc";
346
- readonly TITLE_ASC: "title_asc";
347
- readonly TITLE_DESC: "title_desc";
348
- readonly ALPHABETICAL: "alphabetical";
349
- readonly REVERSE_ALPHABETICAL: "reverse_alphabetical";
350
- readonly PRICE_ASC: "price_asc";
351
- readonly PRICE_DESC: "price_desc";
352
- readonly AMOUNT_ASC: "amount_asc";
353
- readonly AMOUNT_DESC: "amount_desc";
354
- readonly POPULAR: "popular";
355
- readonly TRENDING: "trending";
356
- readonly MOST_VIEWED: "most_viewed";
357
- readonly MOST_LIKED: "most_liked";
358
- readonly MOST_COMMENTED: "most_commented";
359
- readonly TOP_RATED: "top_rated";
360
- readonly RELEVANCE: "relevance";
361
- readonly BEST_MATCH: "best_match";
362
- readonly CUSTOM: "custom";
363
- readonly MANUAL: "manual";
364
- readonly RANDOM: "random";
365
- };
366
- type Sort = (typeof SORT)[keyof typeof SORT];
367
- /**
368
- * User roles
369
- */
370
- declare const ROLE: {
371
- readonly SUPER_ADMIN: "super_admin";
372
- readonly ADMIN: "admin";
373
- readonly MODERATOR: "moderator";
374
- readonly SUPPORT: "support";
375
- readonly USER: "user";
376
- readonly MEMBER: "member";
377
- readonly GUEST: "guest";
378
- readonly OWNER: "owner";
379
- readonly MANAGER: "manager";
380
- readonly EDITOR: "editor";
381
- readonly VIEWER: "viewer";
382
- readonly CONTRIBUTOR: "contributor";
383
- readonly TEAM_LEAD: "team_lead";
384
- readonly TEAM_MEMBER: "team_member";
385
- readonly API_USER: "api_user";
386
- readonly SERVICE: "service";
387
- readonly BOT: "bot";
388
- };
389
- type Role = (typeof ROLE)[keyof typeof ROLE];
390
- /**
391
- * Permission levels (hierarchical)
392
- */
393
- declare const PERMISSION_LEVEL: {
394
- readonly NONE: 0;
395
- readonly READ: 1;
396
- readonly WRITE: 2;
397
- readonly DELETE: 3;
398
- readonly ADMIN: 4;
399
- readonly SUPER_ADMIN: 5;
400
- };
401
- type PermissionLevel = (typeof PERMISSION_LEVEL)[keyof typeof PERMISSION_LEVEL];
402
- declare const PRIORITY: {
403
- readonly LOWEST: "lowest";
404
- readonly LOW: "low";
405
- readonly MEDIUM: "medium";
406
- readonly HIGH: "high";
407
- readonly HIGHEST: "highest";
408
- readonly URGENT: "urgent";
409
- readonly CRITICAL: "critical";
410
- };
411
- type Priority = (typeof PRIORITY)[keyof typeof PRIORITY];
412
- declare const VISIBILITY: {
413
- readonly PUBLIC: "public";
414
- readonly PRIVATE: "private";
415
- readonly INTERNAL: "internal";
416
- readonly RESTRICTED: "restricted";
417
- readonly HIDDEN: "hidden";
418
- readonly UNLISTED: "unlisted";
419
- };
420
- type Visibility = (typeof VISIBILITY)[keyof typeof VISIBILITY];
421
- /**
422
- * Responsive breakpoints (pixels)
423
- * Following Tailwind CSS conventions
424
- */
425
- declare const BREAKPOINTS: {
426
- readonly xs: 0;
427
- readonly sm: 640;
428
- readonly md: 768;
429
- readonly lg: 1024;
430
- readonly xl: 1280;
431
- readonly '2xl': 1536;
432
- };
433
- type Breakpoint = keyof typeof BREAKPOINTS;
434
- /**
435
- * Media query strings for breakpoints
436
- */
437
- declare const MEDIA_QUERIES: {
438
- readonly xs: "(min-width: 0px)";
439
- readonly sm: "(min-width: 640px)";
440
- readonly md: "(min-width: 768px)";
441
- readonly lg: "(min-width: 1024px)";
442
- readonly xl: "(min-width: 1280px)";
443
- readonly '2xl': "(min-width: 1536px)";
444
- };
445
- /**
446
- * Max-width media queries
447
- */
448
- declare const MEDIA_QUERIES_MAX: {
449
- readonly xs: "(max-width: 639px)";
450
- readonly sm: "(max-width: 767px)";
451
- readonly md: "(max-width: 1023px)";
452
- readonly lg: "(max-width: 1279px)";
453
- readonly xl: "(max-width: 1535px)";
454
- readonly '2xl': "(max-width: 9999px)";
455
- };
456
- /**
457
- * Container max widths for each breakpoint
458
- */
459
- declare const CONTAINER_WIDTHS: {
460
- readonly sm: 640;
461
- readonly md: 768;
462
- readonly lg: 1024;
463
- readonly xl: 1280;
464
- readonly '2xl': 1536;
465
- };
466
- declare const FILE_TYPE: {
467
- readonly IMAGE: "image";
468
- readonly VIDEO: "video";
469
- readonly AUDIO: "audio";
470
- readonly DOCUMENT: "document";
471
- readonly SPREADSHEET: "spreadsheet";
472
- readonly PRESENTATION: "presentation";
473
- readonly ARCHIVE: "archive";
474
- readonly CODE: "code";
475
- readonly OTHER: "other";
476
- };
477
- type FileType = (typeof FILE_TYPE)[keyof typeof FILE_TYPE];
478
- declare const NOTIFICATION_TYPE: {
479
- readonly INFO: "info";
480
- readonly SUCCESS: "success";
481
- readonly WARNING: "warning";
482
- readonly ERROR: "error";
483
- readonly ALERT: "alert";
484
- };
485
- type NotificationType = (typeof NOTIFICATION_TYPE)[keyof typeof NOTIFICATION_TYPE];
486
- declare const THEME: {
487
- readonly LIGHT: "light";
488
- readonly DARK: "dark";
489
- readonly SYSTEM: "system";
490
- };
491
- type Theme = (typeof THEME)[keyof typeof THEME];
492
- declare const LOCALE: {
493
- readonly EN_US: "en-US";
494
- readonly EN_GB: "en-GB";
495
- readonly ES_ES: "es-ES";
496
- readonly FR_FR: "fr-FR";
497
- readonly DE_DE: "de-DE";
498
- readonly IT_IT: "it-IT";
499
- readonly PT_BR: "pt-BR";
500
- readonly JA_JP: "ja-JP";
501
- readonly ZH_CN: "zh-CN";
502
- readonly ZH_TW: "zh-TW";
503
- readonly KO_KR: "ko-KR";
504
- readonly HI_IN: "hi-IN";
505
- readonly AR_SA: "ar-SA";
506
- readonly RU_RU: "ru-RU";
507
- };
508
- type Locale = (typeof LOCALE)[keyof typeof LOCALE];
509
- declare const DATE_FORMAT: {
510
- readonly ISO: "yyyy-MM-dd";
511
- readonly US: "MM/dd/yyyy";
512
- readonly EU: "dd/MM/yyyy";
513
- readonly LONG: "MMMM d, yyyy";
514
- readonly SHORT: "MMM d, yyyy";
515
- readonly WITH_TIME: "yyyy-MM-dd HH:mm:ss";
516
- readonly RELATIVE: "relative";
517
- };
518
- type DateFormat = (typeof DATE_FORMAT)[keyof typeof DATE_FORMAT];
519
- declare const INTERVAL: {
520
- readonly DAILY: "daily";
521
- readonly WEEKLY: "weekly";
522
- readonly BIWEEKLY: "biweekly";
523
- readonly MONTHLY: "monthly";
524
- readonly QUARTERLY: "quarterly";
525
- readonly YEARLY: "yearly";
526
- readonly ONCE: "once";
527
- };
528
- type Interval = (typeof INTERVAL)[keyof typeof INTERVAL];
529
- declare const GENDER: {
530
- readonly MALE: "male";
531
- readonly FEMALE: "female";
532
- readonly OTHER: "other";
533
- readonly PREFER_NOT_TO_SAY: "prefer_not_to_say";
534
- };
535
- type Gender = (typeof GENDER)[keyof typeof GENDER];
536
- declare const ENUMS: {
537
- readonly STATUS: {
538
- readonly ACTIVE: "active";
539
- readonly INACTIVE: "inactive";
540
- readonly PENDING: "pending";
541
- readonly APPROVED: "approved";
542
- readonly REJECTED: "rejected";
543
- readonly ARCHIVED: "archived";
544
- readonly DELETED: "deleted";
545
- readonly DRAFT: "draft";
546
- readonly PUBLISHED: "published";
547
- readonly SUSPENDED: "suspended";
548
- readonly EXPIRED: "expired";
549
- readonly CANCELLED: "cancelled";
550
- };
551
- readonly USER_STATUS: {
552
- readonly ACTIVE: "active";
553
- readonly INACTIVE: "inactive";
554
- readonly PENDING: "pending";
555
- readonly SUSPENDED: "suspended";
556
- readonly BANNED: "banned";
557
- readonly DELETED: "deleted";
558
- readonly UNVERIFIED: "unverified";
559
- readonly VERIFIED: "verified";
560
- };
561
- readonly ORDER_STATUS: {
562
- readonly PENDING: "pending";
563
- readonly CONFIRMED: "confirmed";
564
- readonly PROCESSING: "processing";
565
- readonly SHIPPED: "shipped";
566
- readonly DELIVERED: "delivered";
567
- readonly CANCELLED: "cancelled";
568
- readonly REFUNDED: "refunded";
569
- readonly FAILED: "failed";
570
- readonly ON_HOLD: "on_hold";
571
- };
572
- readonly PAYMENT_STATUS: {
573
- readonly PENDING: "pending";
574
- readonly PROCESSING: "processing";
575
- readonly COMPLETED: "completed";
576
- readonly FAILED: "failed";
577
- readonly CANCELLED: "cancelled";
578
- readonly REFUNDED: "refunded";
579
- readonly PARTIALLY_REFUNDED: "partially_refunded";
580
- readonly DISPUTED: "disputed";
581
- };
582
- readonly TASK_STATUS: {
583
- readonly TODO: "todo";
584
- readonly IN_PROGRESS: "in_progress";
585
- readonly IN_REVIEW: "in_review";
586
- readonly DONE: "done";
587
- readonly BLOCKED: "blocked";
588
- readonly CANCELLED: "cancelled";
589
- readonly ON_HOLD: "on_hold";
590
- };
591
- readonly SUBSCRIPTION_STATUS: {
592
- readonly ACTIVE: "active";
593
- readonly TRIAL: "trial";
594
- readonly PAST_DUE: "past_due";
595
- readonly CANCELLED: "cancelled";
596
- readonly EXPIRED: "expired";
597
- readonly PAUSED: "paused";
598
- readonly PENDING: "pending";
599
- };
600
- readonly SORT_DIRECTION: {
601
- readonly ASC: "asc";
602
- readonly DESC: "desc";
603
- };
604
- readonly SORT: {
605
- readonly NEWEST: "newest";
606
- readonly OLDEST: "oldest";
607
- readonly CREATED_AT_ASC: "created_at_asc";
608
- readonly CREATED_AT_DESC: "created_at_desc";
609
- readonly UPDATED_AT_ASC: "updated_at_asc";
610
- readonly UPDATED_AT_DESC: "updated_at_desc";
611
- readonly NAME_ASC: "name_asc";
612
- readonly NAME_DESC: "name_desc";
613
- readonly TITLE_ASC: "title_asc";
614
- readonly TITLE_DESC: "title_desc";
615
- readonly ALPHABETICAL: "alphabetical";
616
- readonly REVERSE_ALPHABETICAL: "reverse_alphabetical";
617
- readonly PRICE_ASC: "price_asc";
618
- readonly PRICE_DESC: "price_desc";
619
- readonly AMOUNT_ASC: "amount_asc";
620
- readonly AMOUNT_DESC: "amount_desc";
621
- readonly POPULAR: "popular";
622
- readonly TRENDING: "trending";
623
- readonly MOST_VIEWED: "most_viewed";
624
- readonly MOST_LIKED: "most_liked";
625
- readonly MOST_COMMENTED: "most_commented";
626
- readonly TOP_RATED: "top_rated";
627
- readonly RELEVANCE: "relevance";
628
- readonly BEST_MATCH: "best_match";
629
- readonly CUSTOM: "custom";
630
- readonly MANUAL: "manual";
631
- readonly RANDOM: "random";
632
- };
633
- readonly ROLE: {
634
- readonly SUPER_ADMIN: "super_admin";
635
- readonly ADMIN: "admin";
636
- readonly MODERATOR: "moderator";
637
- readonly SUPPORT: "support";
638
- readonly USER: "user";
639
- readonly MEMBER: "member";
640
- readonly GUEST: "guest";
641
- readonly OWNER: "owner";
642
- readonly MANAGER: "manager";
643
- readonly EDITOR: "editor";
644
- readonly VIEWER: "viewer";
645
- readonly CONTRIBUTOR: "contributor";
646
- readonly TEAM_LEAD: "team_lead";
647
- readonly TEAM_MEMBER: "team_member";
648
- readonly API_USER: "api_user";
649
- readonly SERVICE: "service";
650
- readonly BOT: "bot";
651
- };
652
- readonly PERMISSION_LEVEL: {
653
- readonly NONE: 0;
654
- readonly READ: 1;
655
- readonly WRITE: 2;
656
- readonly DELETE: 3;
657
- readonly ADMIN: 4;
658
- readonly SUPER_ADMIN: 5;
659
- };
660
- readonly PRIORITY: {
661
- readonly LOWEST: "lowest";
662
- readonly LOW: "low";
663
- readonly MEDIUM: "medium";
664
- readonly HIGH: "high";
665
- readonly HIGHEST: "highest";
666
- readonly URGENT: "urgent";
667
- readonly CRITICAL: "critical";
668
- };
669
- readonly VISIBILITY: {
670
- readonly PUBLIC: "public";
671
- readonly PRIVATE: "private";
672
- readonly INTERNAL: "internal";
673
- readonly RESTRICTED: "restricted";
674
- readonly HIDDEN: "hidden";
675
- readonly UNLISTED: "unlisted";
676
- };
677
- readonly BREAKPOINTS: {
678
- readonly xs: 0;
679
- readonly sm: 640;
680
- readonly md: 768;
681
- readonly lg: 1024;
682
- readonly xl: 1280;
683
- readonly '2xl': 1536;
684
- };
685
- readonly MEDIA_QUERIES: {
686
- readonly xs: "(min-width: 0px)";
687
- readonly sm: "(min-width: 640px)";
688
- readonly md: "(min-width: 768px)";
689
- readonly lg: "(min-width: 1024px)";
690
- readonly xl: "(min-width: 1280px)";
691
- readonly '2xl': "(min-width: 1536px)";
692
- };
693
- readonly MEDIA_QUERIES_MAX: {
694
- readonly xs: "(max-width: 639px)";
695
- readonly sm: "(max-width: 767px)";
696
- readonly md: "(max-width: 1023px)";
697
- readonly lg: "(max-width: 1279px)";
698
- readonly xl: "(max-width: 1535px)";
699
- readonly '2xl': "(max-width: 9999px)";
700
- };
701
- readonly CONTAINER_WIDTHS: {
702
- readonly sm: 640;
703
- readonly md: 768;
704
- readonly lg: 1024;
705
- readonly xl: 1280;
706
- readonly '2xl': 1536;
707
- };
708
- readonly FILE_TYPE: {
709
- readonly IMAGE: "image";
710
- readonly VIDEO: "video";
711
- readonly AUDIO: "audio";
712
- readonly DOCUMENT: "document";
713
- readonly SPREADSHEET: "spreadsheet";
714
- readonly PRESENTATION: "presentation";
715
- readonly ARCHIVE: "archive";
716
- readonly CODE: "code";
717
- readonly OTHER: "other";
718
- };
719
- readonly NOTIFICATION_TYPE: {
720
- readonly INFO: "info";
721
- readonly SUCCESS: "success";
722
- readonly WARNING: "warning";
723
- readonly ERROR: "error";
724
- readonly ALERT: "alert";
725
- };
726
- readonly THEME: {
727
- readonly LIGHT: "light";
728
- readonly DARK: "dark";
729
- readonly SYSTEM: "system";
730
- };
731
- readonly LOCALE: {
732
- readonly EN_US: "en-US";
733
- readonly EN_GB: "en-GB";
734
- readonly ES_ES: "es-ES";
735
- readonly FR_FR: "fr-FR";
736
- readonly DE_DE: "de-DE";
737
- readonly IT_IT: "it-IT";
738
- readonly PT_BR: "pt-BR";
739
- readonly JA_JP: "ja-JP";
740
- readonly ZH_CN: "zh-CN";
741
- readonly ZH_TW: "zh-TW";
742
- readonly KO_KR: "ko-KR";
743
- readonly HI_IN: "hi-IN";
744
- readonly AR_SA: "ar-SA";
745
- readonly RU_RU: "ru-RU";
746
- };
747
- readonly DATE_FORMAT: {
748
- readonly ISO: "yyyy-MM-dd";
749
- readonly US: "MM/dd/yyyy";
750
- readonly EU: "dd/MM/yyyy";
751
- readonly LONG: "MMMM d, yyyy";
752
- readonly SHORT: "MMM d, yyyy";
753
- readonly WITH_TIME: "yyyy-MM-dd HH:mm:ss";
754
- readonly RELATIVE: "relative";
755
- };
756
- readonly INTERVAL: {
757
- readonly DAILY: "daily";
758
- readonly WEEKLY: "weekly";
759
- readonly BIWEEKLY: "biweekly";
760
- readonly MONTHLY: "monthly";
761
- readonly QUARTERLY: "quarterly";
762
- readonly YEARLY: "yearly";
763
- readonly ONCE: "once";
764
- };
765
- readonly GENDER: {
766
- readonly MALE: "male";
767
- readonly FEMALE: "female";
768
- readonly OTHER: "other";
769
- readonly PREFER_NOT_TO_SAY: "prefer_not_to_say";
770
- };
771
- };
772
-
773
- /**
774
- * Enhanced Date/Time utilities using date-fns with timezone support
775
- * Deep level date handling for all common operations
776
- */
777
-
778
- /**
779
- * Date input type - accepts Date, string (ISO), or timestamp
780
- */
781
- type DateInput = Date | string | number;
782
- /**
783
- * Parse any date input to Date object
784
- */
785
- declare const parseDate: (date: DateInput) => Date;
786
- /**
787
- * Check if date input is valid
788
- */
789
- declare const isValidDate: (date: DateInput) => boolean;
790
- /**
791
- * Format presets for common date formats
792
- */
793
- declare const DATE_FORMATS: {
794
- readonly DATE_SHORT: "MM/dd/yyyy";
795
- readonly DATE_MEDIUM: "MMM d, yyyy";
796
- readonly DATE_LONG: "MMMM d, yyyy";
797
- readonly DATE_FULL: "EEEE, MMMM d, yyyy";
798
- readonly DATE_ISO: "yyyy-MM-dd";
799
- readonly TIME_SHORT: "h:mm a";
800
- readonly TIME_MEDIUM: "h:mm:ss a";
801
- readonly TIME_24H: "HH:mm";
802
- readonly TIME_24H_FULL: "HH:mm:ss";
803
- readonly DATETIME_SHORT: "MM/dd/yyyy h:mm a";
804
- readonly DATETIME_MEDIUM: "MMM d, yyyy h:mm a";
805
- readonly DATETIME_LONG: "MMMM d, yyyy h:mm a";
806
- readonly DATETIME_FULL: "EEEE, MMMM d, yyyy h:mm a";
807
- readonly DATETIME_ISO: "yyyy-MM-dd'T'HH:mm:ss";
808
- readonly MONTH_YEAR: "MMMM yyyy";
809
- readonly MONTH_DAY: "MMM d";
810
- readonly DAY_MONTH: "d MMM";
811
- readonly WEEKDAY: "EEEE";
812
- readonly WEEKDAY_SHORT: "EEE";
813
- };
814
- /**
815
- * Format date with preset or custom format
816
- */
817
- declare const formatDate: (date: DateInput, formatStr?: string) => string;
818
- /**
819
- * Format date with time
820
- */
821
- declare const formatDateTime: (date: DateInput, formatStr?: string) => string;
822
- /**
823
- * Format date in a specific timezone
824
- */
825
- declare const formatDateInTimezone: (date: DateInput, timezone: string, formatStr?: string) => string;
826
- /**
827
- * Format date as relative time (e.g., "2 hours ago", "in 3 days")
828
- */
829
- declare const formatRelativeTime: (date: DateInput, baseDate?: DateInput) => string;
830
- /**
831
- * Format date as smart relative (Today at 3:30 PM, Yesterday, etc.)
832
- */
833
- declare const formatSmartDate: (date: DateInput) => string;
834
- /**
835
- * Format duration between two dates in human readable form
836
- */
837
- declare const formatDateRange: (start: DateInput, end: DateInput) => string;
838
- /**
839
- * Convert date to a specific timezone
840
- */
841
- declare const toTimezone: (date: DateInput, timezone: string) => Date;
842
- /**
843
- * Convert date from a specific timezone to UTC
844
- */
845
- declare const fromTimezone: (date: DateInput, timezone: string) => Date;
846
- /**
847
- * Get current time in a specific timezone
848
- */
849
- declare const nowInTimezone: (timezone: string) => Date;
850
- /**
851
- * Format time difference between timezones
852
- */
853
- declare const getTimezoneDifference: (timezone1: string, timezone2: string) => string;
854
- /**
855
- * Add time to a date
856
- */
857
- declare const addTime: (date: DateInput, amount: number, unit: "minutes" | "hours" | "days" | "weeks" | "months" | "years") => Date;
858
- /**
859
- * Subtract time from a date
860
- */
861
- declare const subtractTime: (date: DateInput, amount: number, unit: "minutes" | "hours" | "days" | "weeks" | "months" | "years") => Date;
862
- /**
863
- * Get difference between two dates
864
- */
865
- declare const getDateDifference: (date1: DateInput, date2: DateInput, unit: "seconds" | "minutes" | "hours" | "days" | "weeks" | "months" | "years") => number;
866
- /**
867
- * Get all days in a range
868
- */
869
- declare const getDaysInRange: (start: DateInput, end: DateInput) => Date[];
870
- /**
871
- * Get all weeks in a range
872
- */
873
- declare const getWeeksInRange: (start: DateInput, end: DateInput) => Date[];
874
- /**
875
- * Get all months in a range
876
- */
877
- declare const getMonthsInRange: (start: DateInput, end: DateInput) => Date[];
878
- /**
879
- * Get start and end of day
880
- */
881
- declare const getDayBoundaries: (date: DateInput) => {
882
- start: Date;
883
- end: Date;
884
- };
885
- /**
886
- * Get start and end of week
887
- */
888
- declare const getWeekBoundaries: (date: DateInput, weekStartsOn?: 0 | 1) => {
889
- start: Date;
890
- end: Date;
891
- };
892
- /**
893
- * Get start and end of month
894
- */
895
- declare const getMonthBoundaries: (date: DateInput) => {
896
- start: Date;
897
- end: Date;
898
- };
899
- /**
900
- * Get start and end of year
901
- */
902
- declare const getYearBoundaries: (date: DateInput) => {
903
- start: Date;
904
- end: Date;
905
- };
906
- /**
907
- * Check if date is between two dates (inclusive)
908
- */
909
- declare const isDateBetween: (date: DateInput, start: DateInput, end: DateInput) => boolean;
910
- /**
911
- * Check if two date ranges overlap
912
- */
913
- declare const doDateRangesOverlap: (range1Start: DateInput, range1End: DateInput, range2Start: DateInput, range2End: DateInput) => boolean;
914
- /**
915
- * Get age from birthdate
916
- */
917
- declare const getAge: (birthDate: DateInput) => number;
918
- /**
919
- * Check if date is a weekend
920
- */
921
- declare const isWeekend: (date: DateInput) => boolean;
922
- /**
923
- * Check if date is a weekday
924
- */
925
- declare const isWeekday: (date: DateInput) => boolean;
926
- /**
927
- * Get days until a date
928
- */
929
- declare const daysUntil: (date: DateInput) => number;
930
- /**
931
- * Get days since a date
932
- */
933
- declare const daysSince: (date: DateInput) => number;
934
- /**
935
- * Format for HTML date input (yyyy-MM-dd)
936
- */
937
- declare const toDateInputValue: (date: DateInput) => string;
938
- /**
939
- * Format for HTML datetime-local input
940
- */
941
- declare const toDateTimeInputValue: (date: DateInput) => string;
942
- /**
943
- * Format for HTML time input (HH:mm)
944
- */
945
- declare const toTimeInputValue: (date: DateInput) => string;
946
- /**
947
- * Set time on a date
948
- */
949
- declare const setTime: (date: DateInput, hours: number, minutes: number, seconds?: number) => Date;
950
- /**
951
- * Combine date from one input and time from another
952
- */
953
- declare const combineDateAndTime: (dateInput: DateInput, timeInput: DateInput) => Date;
954
- declare const _default: {
955
- parseDate: (date: DateInput) => Date;
956
- isValidDate: (date: DateInput) => boolean;
957
- DATE_FORMATS: {
958
- readonly DATE_SHORT: "MM/dd/yyyy";
959
- readonly DATE_MEDIUM: "MMM d, yyyy";
960
- readonly DATE_LONG: "MMMM d, yyyy";
961
- readonly DATE_FULL: "EEEE, MMMM d, yyyy";
962
- readonly DATE_ISO: "yyyy-MM-dd";
963
- readonly TIME_SHORT: "h:mm a";
964
- readonly TIME_MEDIUM: "h:mm:ss a";
965
- readonly TIME_24H: "HH:mm";
966
- readonly TIME_24H_FULL: "HH:mm:ss";
967
- readonly DATETIME_SHORT: "MM/dd/yyyy h:mm a";
968
- readonly DATETIME_MEDIUM: "MMM d, yyyy h:mm a";
969
- readonly DATETIME_LONG: "MMMM d, yyyy h:mm a";
970
- readonly DATETIME_FULL: "EEEE, MMMM d, yyyy h:mm a";
971
- readonly DATETIME_ISO: "yyyy-MM-dd'T'HH:mm:ss";
972
- readonly MONTH_YEAR: "MMMM yyyy";
973
- readonly MONTH_DAY: "MMM d";
974
- readonly DAY_MONTH: "d MMM";
975
- readonly WEEKDAY: "EEEE";
976
- readonly WEEKDAY_SHORT: "EEE";
977
- };
978
- formatDate: (date: DateInput, formatStr?: string) => string;
979
- formatDateTime: (date: DateInput, formatStr?: string) => string;
980
- formatDateInTimezone: (date: DateInput, timezone: string, formatStr?: string) => string;
981
- formatRelativeTime: (date: DateInput, baseDate?: DateInput) => string;
982
- formatSmartDate: (date: DateInput) => string;
983
- formatDateRange: (start: DateInput, end: DateInput) => string;
984
- toTimezone: (date: DateInput, timezone: string) => Date;
985
- fromTimezone: (date: DateInput, timezone: string) => Date;
986
- nowInTimezone: (timezone: string) => Date;
987
- getTimezoneDifference: (timezone1: string, timezone2: string) => string;
988
- addTime: (date: DateInput, amount: number, unit: "minutes" | "hours" | "days" | "weeks" | "months" | "years") => Date;
989
- subtractTime: (date: DateInput, amount: number, unit: "minutes" | "hours" | "days" | "weeks" | "months" | "years") => Date;
990
- getDateDifference: (date1: DateInput, date2: DateInput, unit: "seconds" | "minutes" | "hours" | "days" | "weeks" | "months" | "years") => number;
991
- getDaysInRange: (start: DateInput, end: DateInput) => Date[];
992
- getWeeksInRange: (start: DateInput, end: DateInput) => Date[];
993
- getMonthsInRange: (start: DateInput, end: DateInput) => Date[];
994
- getDayBoundaries: (date: DateInput) => {
995
- start: Date;
996
- end: Date;
997
- };
998
- getWeekBoundaries: (date: DateInput, weekStartsOn?: 0 | 1) => {
999
- start: Date;
1000
- end: Date;
1001
- };
1002
- getMonthBoundaries: (date: DateInput) => {
1003
- start: Date;
1004
- end: Date;
1005
- };
1006
- getYearBoundaries: (date: DateInput) => {
1007
- start: Date;
1008
- end: Date;
1009
- };
1010
- isDateBetween: (date: DateInput, start: DateInput, end: DateInput) => boolean;
1011
- doDateRangesOverlap: (range1Start: DateInput, range1End: DateInput, range2Start: DateInput, range2End: DateInput) => boolean;
1012
- getAge: (birthDate: DateInput) => number;
1013
- isWeekend: (date: DateInput) => boolean;
1014
- isWeekday: (date: DateInput) => boolean;
1015
- daysUntil: (date: DateInput) => number;
1016
- daysSince: (date: DateInput) => number;
1017
- toDateInputValue: (date: DateInput) => string;
1018
- toDateTimeInputValue: (date: DateInput) => string;
1019
- toTimeInputValue: (date: DateInput) => string;
1020
- setTime: (date: DateInput, hours: number, minutes: number, seconds?: number) => Date;
1021
- combineDateAndTime: (dateInput: DateInput, timeInput: DateInput) => Date;
1022
- };
1023
-
1024
- /**
1025
- * Common Validation Rules & Patterns
1026
- * Use with Yup, Zod, or custom validators
1027
- */
1028
- declare const VALIDATION_PATTERNS: {
1029
- /** Email pattern (RFC 5322 simplified) */
1030
- readonly EMAIL: RegExp;
1031
- /** Strong password: min 8 chars, uppercase, lowercase, number, special char */
1032
- readonly PASSWORD_STRONG: RegExp;
1033
- /** Medium password: min 8 chars, uppercase, lowercase, number */
1034
- readonly PASSWORD_MEDIUM: RegExp;
1035
- /** Basic password: min 8 chars */
1036
- readonly PASSWORD_BASIC: RegExp;
1037
- /** Phone number (international) */
1038
- readonly PHONE_INTERNATIONAL: RegExp;
1039
- /** Phone number (US) */
1040
- readonly PHONE_US: RegExp;
1041
- /** Phone number (India) */
1042
- readonly PHONE_INDIA: RegExp;
1043
- /** URL pattern */
1044
- readonly URL: RegExp;
1045
- /** URL with required protocol */
1046
- readonly URL_STRICT: RegExp;
1047
- /** Alphanumeric only */
1048
- readonly ALPHANUMERIC: RegExp;
1049
- /** Letters only */
1050
- readonly LETTERS_ONLY: RegExp;
1051
- /** Numbers only */
1052
- readonly NUMBERS_ONLY: RegExp;
1053
- /** Slug pattern (kebab-case) */
1054
- readonly SLUG: RegExp;
1055
- /** Username pattern (alphanumeric, underscore, hyphen) */
1056
- readonly USERNAME: RegExp;
1057
- /** Credit card (basic validation) */
1058
- readonly CREDIT_CARD: RegExp;
1059
- /** CVV (3 or 4 digits) */
1060
- readonly CVV: RegExp;
1061
- /** ZIP code (US) */
1062
- readonly ZIP_US: RegExp;
1063
- /** Postal code (India) */
1064
- readonly POSTAL_INDIA: RegExp;
1065
- /** IP Address (IPv4) */
1066
- readonly IPV4: RegExp;
1067
- /** Hex color */
1068
- readonly HEX_COLOR: RegExp;
1069
- /** Date (YYYY-MM-DD) */
1070
- readonly DATE_ISO: RegExp;
1071
- /** Time (HH:MM or HH:MM:SS) */
1072
- readonly TIME: RegExp;
1073
- };
1074
- /**
1075
- * Validate email format
1076
- */
1077
- declare const isValidEmail: (email: string) => boolean;
1078
- /**
1079
- * Validate password strength
1080
- */
1081
- declare const isValidPassword: (password: string, strength?: "basic" | "medium" | "strong") => boolean;
1082
- /**
1083
- * Validate phone number
1084
- */
1085
- declare const isValidPhone: (phone: string, format?: "international" | "us" | "india") => boolean;
1086
- /**
1087
- * Validate URL format
1088
- */
1089
- declare const isValidUrl: (url: string, requireProtocol?: boolean) => boolean;
1090
- /**
1091
- * Validate username format
1092
- */
1093
- declare const isValidUsername: (username: string) => boolean;
1094
- /**
1095
- * Validate slug format
1096
- */
1097
- declare const isValidSlug: (slug: string) => boolean;
1098
- declare const VALIDATION_MESSAGES: {
1099
- readonly REQUIRED: "This field is required";
1100
- readonly REQUIRED_FIELD: (field: string) => string;
1101
- readonly EMAIL_INVALID: "Please enter a valid email address";
1102
- readonly EMAIL_REQUIRED: "Email is required";
1103
- readonly PASSWORD_REQUIRED: "Password is required";
1104
- readonly PASSWORD_MIN_LENGTH: (length: number) => string;
1105
- readonly PASSWORD_WEAK: "Password is too weak";
1106
- readonly PASSWORD_MEDIUM: "Password must contain uppercase, lowercase, and number";
1107
- readonly PASSWORD_STRONG: "Password must contain uppercase, lowercase, number, and special character";
1108
- readonly PASSWORD_MISMATCH: "Passwords do not match";
1109
- readonly NAME_REQUIRED: "Name is required";
1110
- readonly FIRST_NAME_REQUIRED: "First name is required";
1111
- readonly LAST_NAME_REQUIRED: "Last name is required";
1112
- readonly NAME_MIN_LENGTH: (length: number) => string;
1113
- readonly NAME_MAX_LENGTH: (length: number) => string;
1114
- readonly PHONE_INVALID: "Please enter a valid phone number";
1115
- readonly PHONE_REQUIRED: "Phone number is required";
1116
- readonly URL_INVALID: "Please enter a valid URL";
1117
- readonly USERNAME_INVALID: "Username can only contain letters, numbers, underscores, and hyphens";
1118
- readonly USERNAME_MIN_LENGTH: "Username must be at least 3 characters";
1119
- readonly USERNAME_MAX_LENGTH: "Username must be at most 30 characters";
1120
- readonly USERNAME_TAKEN: "This username is already taken";
1121
- readonly MIN_LENGTH: (field: string, length: number) => string;
1122
- readonly MAX_LENGTH: (field: string, length: number) => string;
1123
- readonly MIN_VALUE: (field: string, value: number) => string;
1124
- readonly MAX_VALUE: (field: string, value: number) => string;
1125
- readonly INVALID_FORMAT: "Invalid format";
1126
- readonly TERMS_REQUIRED: "You must accept the terms and conditions";
1127
- };
1128
- declare const VALIDATION_RULES: {
1129
- readonly email: {
1130
- readonly pattern: RegExp;
1131
- readonly message: "Please enter a valid email address";
1132
- };
1133
- readonly password: {
1134
- readonly minLength: 8;
1135
- readonly pattern: RegExp;
1136
- readonly message: "Password must contain uppercase, lowercase, and number";
1137
- };
1138
- readonly passwordStrong: {
1139
- readonly minLength: 8;
1140
- readonly pattern: RegExp;
1141
- readonly message: "Password must contain uppercase, lowercase, number, and special character";
1142
- };
1143
- readonly name: {
1144
- readonly minLength: 2;
1145
- readonly maxLength: 50;
1146
- };
1147
- readonly username: {
1148
- readonly minLength: 3;
1149
- readonly maxLength: 30;
1150
- readonly pattern: RegExp;
1151
- readonly message: "Username can only contain letters, numbers, underscores, and hyphens";
1152
- };
1153
- readonly phone: {
1154
- readonly pattern: RegExp;
1155
- readonly message: "Please enter a valid phone number";
1156
- };
1157
- readonly url: {
1158
- readonly pattern: RegExp;
1159
- readonly message: "Please enter a valid URL";
1160
- };
1161
- };
1162
-
1163
- declare const index_ApiErrorResponse: typeof ApiErrorResponse;
1164
- declare const index_ApiResponse: typeof ApiResponse;
1165
- declare const index_ApiSuccessResponse: typeof ApiSuccessResponse;
1166
- type index_AuditableEntity = AuditableEntity;
1167
- type index_AuthResponse = AuthResponse;
1168
- type index_AuthTokens = AuthTokens;
1169
- declare const index_BREAKPOINTS: typeof BREAKPOINTS;
1170
- type index_BaseEntity = BaseEntity;
1171
- declare const index_BaseFilterParams: typeof BaseFilterParams;
1172
- type index_BaseUser = BaseUser;
1173
- type index_Breakpoint = Breakpoint;
1174
- declare const index_CONTAINER_WIDTHS: typeof CONTAINER_WIDTHS;
1175
- type index_ChangePasswordRequest = ChangePasswordRequest;
1176
- declare const index_CreateResponse: typeof CreateResponse;
1177
- declare const index_DATE_FORMAT: typeof DATE_FORMAT;
1178
- declare const index_DATE_FORMATS: typeof DATE_FORMATS;
1179
- type index_DateFormat = DateFormat;
1180
- type index_DateInput = DateInput;
1181
- declare const index_DeleteResponse: typeof DeleteResponse;
1182
- declare const index_ENUMS: typeof ENUMS;
1183
- type index_EnvConfig = EnvConfig;
1184
- declare const index_FILE_TYPE: typeof FILE_TYPE;
1185
- type index_FileType = FileType;
1186
- declare const index_FilterWithPagination: typeof FilterWithPagination;
1187
- type index_ForgotPasswordRequest = ForgotPasswordRequest;
1188
- declare const index_GENDER: typeof GENDER;
1189
- type index_Gender = Gender;
1190
- declare const index_GetResponse: typeof GetResponse;
1191
- declare const index_HTTP_STATUS: typeof HTTP_STATUS;
1192
- declare const index_HTTP_STATUS_MESSAGES: typeof HTTP_STATUS_MESSAGES;
1193
- type index_HttpStatusCode = HttpStatusCode;
1194
- type index_ID = ID;
1195
- declare const index_INTERVAL: typeof INTERVAL;
1196
- type index_Interval = Interval;
1197
- type index_JwtPayload = JwtPayload;
1198
- type index_KeyValuePair<T = string> = KeyValuePair<T>;
1199
- declare const index_LOCALE: typeof LOCALE;
1200
- declare const index_ListResponse: typeof ListResponse;
1201
- type index_Locale = Locale;
1202
- type index_LoginCredentials = LoginCredentials;
1203
- declare const index_MEDIA_QUERIES: typeof MEDIA_QUERIES;
1204
- declare const index_MEDIA_QUERIES_MAX: typeof MEDIA_QUERIES_MAX;
1205
- declare const index_NOTIFICATION_TYPE: typeof NOTIFICATION_TYPE;
1206
- type index_NotificationType = NotificationType;
1207
- type index_Nullable<T> = Nullable<T>;
1208
- declare const index_ORDER_STATUS: typeof ORDER_STATUS;
1209
- type index_ObjectId = ObjectId;
1210
- type index_Optional<T, K extends keyof T> = Optional<T, K>;
1211
- type index_OrderStatus = OrderStatus;
1212
- type index_OrganizationEntity = OrganizationEntity;
1213
- declare const index_PAGINATION: typeof PAGINATION;
1214
- declare const index_PAYMENT_STATUS: typeof PAYMENT_STATUS;
1215
- declare const index_PERMISSION_LEVEL: typeof PERMISSION_LEVEL;
1216
- declare const index_PRIORITY: typeof PRIORITY;
1217
- declare const index_PaginatedResponse: typeof PaginatedResponse;
1218
- declare const index_PaginationMeta: typeof PaginationMeta;
1219
- declare const index_PaginationParams: typeof PaginationParams;
1220
- type index_PaymentStatus = PaymentStatus;
1221
- type index_PermissionLevel = PermissionLevel;
1222
- type index_Priority = Priority;
1223
- declare const index_ROLE: typeof ROLE;
1224
- declare const index_ROLES: typeof ROLES;
1225
- type index_RegisterCredentials = RegisterCredentials;
1226
- type index_RequiredFields<T, K extends keyof T> = RequiredFields<T, K>;
1227
- type index_ResetPasswordRequest = ResetPasswordRequest;
1228
- type index_Role = Role;
1229
- type index_RoleValue = RoleValue;
1230
- declare const index_SORT: typeof SORT;
1231
- declare const index_SORT_DIRECTION: typeof SORT_DIRECTION;
1232
- declare const index_STATUS: typeof STATUS;
1233
- declare const index_SUBSCRIPTION_STATUS: typeof SUBSCRIPTION_STATUS;
1234
- type index_SelectOption<T = string> = SelectOption<T>;
1235
- type index_SoftDeleteEntity = SoftDeleteEntity;
1236
- type index_Sort = Sort;
1237
- type index_SortConfig = SortConfig;
1238
- type index_SortDirection = SortDirection;
1239
- type index_SortOrder = SortOrder;
1240
- type index_StatusValue = StatusValue;
1241
- type index_SubscriptionStatus = SubscriptionStatus;
1242
- declare const index_TASK_STATUS: typeof TASK_STATUS;
1243
- declare const index_THEME: typeof THEME;
1244
- declare const index_TOKEN_TYPES: typeof TOKEN_TYPES;
1245
- type index_TaskStatus = TaskStatus;
1246
- type index_Theme = Theme;
1247
- type index_Timestamps = Timestamps;
1248
- type index_TokenType = TokenType;
1249
- declare const index_USER_STATUS: typeof USER_STATUS;
1250
- declare const index_UpdateResponse: typeof UpdateResponse;
1251
- type index_UserRole = UserRole;
1252
- type index_UserStatusValue = UserStatusValue;
1253
- type index_UserWithRole = UserWithRole;
1254
- declare const index_VALIDATION_MESSAGES: typeof VALIDATION_MESSAGES;
1255
- declare const index_VALIDATION_PATTERNS: typeof VALIDATION_PATTERNS;
1256
- declare const index_VALIDATION_RULES: typeof VALIDATION_RULES;
1257
- declare const index_VISIBILITY: typeof VISIBILITY;
1258
- type index_Visibility = Visibility;
1259
- declare const index_addDays: typeof addDays;
1260
- declare const index_addHours: typeof addHours;
1261
- declare const index_addMinutes: typeof addMinutes;
1262
- declare const index_addMonths: typeof addMonths;
1263
- declare const index_addTime: typeof addTime;
1264
- declare const index_addWeeks: typeof addWeeks;
1265
- declare const index_addYears: typeof addYears;
1266
- declare const index_combineDateAndTime: typeof combineDateAndTime;
1267
- declare const index_daysSince: typeof daysSince;
1268
- declare const index_daysUntil: typeof daysUntil;
1269
- declare const index_differenceInDays: typeof differenceInDays;
1270
- declare const index_differenceInHours: typeof differenceInHours;
1271
- declare const index_differenceInMinutes: typeof differenceInMinutes;
1272
- declare const index_differenceInMonths: typeof differenceInMonths;
1273
- declare const index_differenceInSeconds: typeof differenceInSeconds;
1274
- declare const index_differenceInWeeks: typeof differenceInWeeks;
1275
- declare const index_differenceInYears: typeof differenceInYears;
1276
- declare const index_doDateRangesOverlap: typeof doDateRangesOverlap;
1277
- declare const index_eachDayOfInterval: typeof eachDayOfInterval;
1278
- declare const index_eachMonthOfInterval: typeof eachMonthOfInterval;
1279
- declare const index_eachWeekOfInterval: typeof eachWeekOfInterval;
1280
- declare const index_endOfDay: typeof endOfDay;
1281
- declare const index_endOfMonth: typeof endOfMonth;
1282
- declare const index_endOfWeek: typeof endOfWeek;
1283
- declare const index_endOfYear: typeof endOfYear;
1284
- declare const index_format: typeof format;
1285
- declare const index_formatDate: typeof formatDate;
1286
- declare const index_formatDateInTimezone: typeof formatDateInTimezone;
1287
- declare const index_formatDateRange: typeof formatDateRange;
1288
- declare const index_formatDateTime: typeof formatDateTime;
1289
- declare const index_formatDistance: typeof formatDistance;
1290
- declare const index_formatDistanceToNow: typeof formatDistanceToNow;
1291
- declare const index_formatDuration: typeof formatDuration;
1292
- declare const index_formatInTimeZone: typeof formatInTimeZone;
1293
- declare const index_formatRelative: typeof formatRelative;
1294
- declare const index_formatRelativeTime: typeof formatRelativeTime;
1295
- declare const index_formatSmartDate: typeof formatSmartDate;
1296
- declare const index_fromTimezone: typeof fromTimezone;
1297
- declare const index_fromZonedTime: typeof fromZonedTime;
1298
- declare const index_getAge: typeof getAge;
1299
- declare const index_getDate: typeof getDate;
1300
- declare const index_getDateDifference: typeof getDateDifference;
1301
- declare const index_getDay: typeof getDay;
1302
- declare const index_getDayBoundaries: typeof getDayBoundaries;
1303
- declare const index_getDaysInRange: typeof getDaysInRange;
1304
- declare const index_getEnv: typeof getEnv;
1305
- declare const index_getEnvOptional: typeof getEnvOptional;
1306
- declare const index_getHours: typeof getHours;
1307
- declare const index_getMinutes: typeof getMinutes;
1308
- declare const index_getMonth: typeof getMonth;
1309
- declare const index_getMonthBoundaries: typeof getMonthBoundaries;
1310
- declare const index_getMonthsInRange: typeof getMonthsInRange;
1311
- declare const index_getSeconds: typeof getSeconds;
1312
- declare const index_getTimezoneDifference: typeof getTimezoneDifference;
1313
- declare const index_getWeekBoundaries: typeof getWeekBoundaries;
1314
- declare const index_getWeeksInRange: typeof getWeeksInRange;
1315
- declare const index_getYear: typeof getYear;
1316
- declare const index_getYearBoundaries: typeof getYearBoundaries;
1317
- declare const index_intervalToDuration: typeof intervalToDuration;
1318
- declare const index_isAfter: typeof isAfter;
1319
- declare const index_isBefore: typeof isBefore;
1320
- declare const index_isDateBetween: typeof isDateBetween;
1321
- declare const index_isDev: typeof isDev;
1322
- declare const index_isEqual: typeof isEqual;
1323
- declare const index_isFuture: typeof isFuture;
1324
- declare const index_isPast: typeof isPast;
1325
- declare const index_isProd: typeof isProd;
1326
- declare const index_isSameDay: typeof isSameDay;
1327
- declare const index_isSameMonth: typeof isSameMonth;
1328
- declare const index_isSameWeek: typeof isSameWeek;
1329
- declare const index_isSameYear: typeof isSameYear;
1330
- declare const index_isTest: typeof isTest;
1331
- declare const index_isThisMonth: typeof isThisMonth;
1332
- declare const index_isThisWeek: typeof isThisWeek;
1333
- declare const index_isThisYear: typeof isThisYear;
1334
- declare const index_isToday: typeof isToday;
1335
- declare const index_isTomorrow: typeof isTomorrow;
1336
- declare const index_isValid: typeof isValid;
1337
- declare const index_isValidDate: typeof isValidDate;
1338
- declare const index_isValidEmail: typeof isValidEmail;
1339
- declare const index_isValidPassword: typeof isValidPassword;
1340
- declare const index_isValidPhone: typeof isValidPhone;
1341
- declare const index_isValidSlug: typeof isValidSlug;
1342
- declare const index_isValidUrl: typeof isValidUrl;
1343
- declare const index_isValidUsername: typeof isValidUsername;
1344
- declare const index_isWeekday: typeof isWeekday;
1345
- declare const index_isWeekend: typeof isWeekend;
1346
- declare const index_isYesterday: typeof isYesterday;
1347
- declare const index_nowInTimezone: typeof nowInTimezone;
1348
- declare const index_parseDate: typeof parseDate;
1349
- declare const index_parseISO: typeof parseISO;
1350
- declare const index_setHours: typeof setHours;
1351
- declare const index_setMinutes: typeof setMinutes;
1352
- declare const index_setSeconds: typeof setSeconds;
1353
- declare const index_setTime: typeof setTime;
1354
- declare const index_startOfDay: typeof startOfDay;
1355
- declare const index_startOfMonth: typeof startOfMonth;
1356
- declare const index_startOfWeek: typeof startOfWeek;
1357
- declare const index_startOfYear: typeof startOfYear;
1358
- declare const index_subDays: typeof subDays;
1359
- declare const index_subHours: typeof subHours;
1360
- declare const index_subMinutes: typeof subMinutes;
1361
- declare const index_subMonths: typeof subMonths;
1362
- declare const index_subWeeks: typeof subWeeks;
1363
- declare const index_subYears: typeof subYears;
1364
- declare const index_subtractTime: typeof subtractTime;
1365
- declare const index_toDateInputValue: typeof toDateInputValue;
1366
- declare const index_toDateTimeInputValue: typeof toDateTimeInputValue;
1367
- declare const index_toTimeInputValue: typeof toTimeInputValue;
1368
- declare const index_toTimezone: typeof toTimezone;
1369
- declare const index_toZonedTime: typeof toZonedTime;
1370
- declare const index_validateEnv: typeof validateEnv;
1371
- declare namespace index {
1372
- export { index_ApiErrorResponse as ApiErrorResponse, index_ApiResponse as ApiResponse, index_ApiSuccessResponse as ApiSuccessResponse, type index_AuditableEntity as AuditableEntity, type index_AuthResponse as AuthResponse, type index_AuthTokens as AuthTokens, index_BREAKPOINTS as BREAKPOINTS, type index_BaseEntity as BaseEntity, index_BaseFilterParams as BaseFilterParams, type index_BaseUser as BaseUser, type index_Breakpoint as Breakpoint, index_CONTAINER_WIDTHS as CONTAINER_WIDTHS, type index_ChangePasswordRequest as ChangePasswordRequest, index_CreateResponse as CreateResponse, index_DATE_FORMAT as DATE_FORMAT, index_DATE_FORMATS as DATE_FORMATS, type index_DateFormat as DateFormat, type index_DateInput as DateInput, index_DeleteResponse as DeleteResponse, index_ENUMS as ENUMS, ENUMS as ENUMS_DEFAULT, type index_EnvConfig as EnvConfig, index_FILE_TYPE as FILE_TYPE, type index_FileType as FileType, index_FilterWithPagination as FilterWithPagination, type index_ForgotPasswordRequest as ForgotPasswordRequest, index_GENDER as GENDER, type index_Gender as Gender, index_GetResponse as GetResponse, index_HTTP_STATUS as HTTP_STATUS, index_HTTP_STATUS_MESSAGES as HTTP_STATUS_MESSAGES, type index_HttpStatusCode as HttpStatusCode, type index_ID as ID, index_INTERVAL as INTERVAL, type index_Interval as Interval, type index_JwtPayload as JwtPayload, type index_KeyValuePair as KeyValuePair, index_LOCALE as LOCALE, index_ListResponse as ListResponse, type index_Locale as Locale, type index_LoginCredentials as LoginCredentials, index_MEDIA_QUERIES as MEDIA_QUERIES, index_MEDIA_QUERIES_MAX as MEDIA_QUERIES_MAX, index_NOTIFICATION_TYPE as NOTIFICATION_TYPE, type index_NotificationType as NotificationType, type index_Nullable as Nullable, index_ORDER_STATUS as ORDER_STATUS, type index_ObjectId as ObjectId, type index_Optional as Optional, type index_OrderStatus as OrderStatus, type index_OrganizationEntity as OrganizationEntity, index_PAGINATION as PAGINATION, index_PAYMENT_STATUS as PAYMENT_STATUS, index_PERMISSION_LEVEL as PERMISSION_LEVEL, index_PRIORITY as PRIORITY, index_PaginatedResponse as PaginatedResponse, index_PaginationMeta as PaginationMeta, index_PaginationParams as PaginationParams, type index_PaymentStatus as PaymentStatus, type index_PermissionLevel as PermissionLevel, type index_Priority as Priority, index_ROLE as ROLE, index_ROLES as ROLES, type index_RegisterCredentials as RegisterCredentials, type index_RequiredFields as RequiredFields, type index_ResetPasswordRequest as ResetPasswordRequest, type index_Role as Role, type index_RoleValue as RoleValue, index_SORT as SORT, index_SORT_DIRECTION as SORT_DIRECTION, index_STATUS as STATUS, index_SUBSCRIPTION_STATUS as SUBSCRIPTION_STATUS, type index_SelectOption as SelectOption, type index_SoftDeleteEntity as SoftDeleteEntity, type index_Sort as Sort, type index_SortConfig as SortConfig, type index_SortDirection as SortDirection, type index_SortOrder as SortOrder, type index_StatusValue as StatusValue, type index_SubscriptionStatus as SubscriptionStatus, index_TASK_STATUS as TASK_STATUS, index_THEME as THEME, index_TOKEN_TYPES as TOKEN_TYPES, type index_TaskStatus as TaskStatus, type index_Theme as Theme, type index_Timestamps as Timestamps, type index_TokenType as TokenType, index_USER_STATUS as USER_STATUS, index_UpdateResponse as UpdateResponse, type index_UserRole as UserRole, type index_UserStatusValue as UserStatusValue, type index_UserWithRole as UserWithRole, index_VALIDATION_MESSAGES as VALIDATION_MESSAGES, index_VALIDATION_PATTERNS as VALIDATION_PATTERNS, index_VALIDATION_RULES as VALIDATION_RULES, index_VISIBILITY as VISIBILITY, type index_Visibility as Visibility, index_addDays as addDays, index_addHours as addHours, index_addMinutes as addMinutes, index_addMonths as addMonths, index_addTime as addTime, index_addWeeks as addWeeks, index_addYears as addYears, index_combineDateAndTime as combineDateAndTime, _default as dateTime, index_daysSince as daysSince, index_daysUntil as daysUntil, index_differenceInDays as differenceInDays, index_differenceInHours as differenceInHours, index_differenceInMinutes as differenceInMinutes, index_differenceInMonths as differenceInMonths, index_differenceInSeconds as differenceInSeconds, index_differenceInWeeks as differenceInWeeks, index_differenceInYears as differenceInYears, index_doDateRangesOverlap as doDateRangesOverlap, index_eachDayOfInterval as eachDayOfInterval, index_eachMonthOfInterval as eachMonthOfInterval, index_eachWeekOfInterval as eachWeekOfInterval, index_endOfDay as endOfDay, index_endOfMonth as endOfMonth, index_endOfWeek as endOfWeek, index_endOfYear as endOfYear, index_format as format, index_formatDate as formatDate, index_formatDateInTimezone as formatDateInTimezone, index_formatDateRange as formatDateRange, index_formatDateTime as formatDateTime, index_formatDistance as formatDistance, index_formatDistanceToNow as formatDistanceToNow, index_formatDuration as formatDuration, index_formatInTimeZone as formatInTimeZone, index_formatRelative as formatRelative, index_formatRelativeTime as formatRelativeTime, index_formatSmartDate as formatSmartDate, index_fromTimezone as fromTimezone, index_fromZonedTime as fromZonedTime, index_getAge as getAge, index_getDate as getDate, index_getDateDifference as getDateDifference, index_getDay as getDay, index_getDayBoundaries as getDayBoundaries, index_getDaysInRange as getDaysInRange, index_getEnv as getEnv, index_getEnvOptional as getEnvOptional, index_getHours as getHours, index_getMinutes as getMinutes, index_getMonth as getMonth, index_getMonthBoundaries as getMonthBoundaries, index_getMonthsInRange as getMonthsInRange, index_getSeconds as getSeconds, index_getTimezoneDifference as getTimezoneDifference, index_getWeekBoundaries as getWeekBoundaries, index_getWeeksInRange as getWeeksInRange, index_getYear as getYear, index_getYearBoundaries as getYearBoundaries, index_intervalToDuration as intervalToDuration, index_isAfter as isAfter, index_isBefore as isBefore, index_isDateBetween as isDateBetween, index_isDev as isDev, index_isEqual as isEqual, index_isFuture as isFuture, index_isPast as isPast, index_isProd as isProd, index_isSameDay as isSameDay, index_isSameMonth as isSameMonth, index_isSameWeek as isSameWeek, index_isSameYear as isSameYear, index_isTest as isTest, index_isThisMonth as isThisMonth, index_isThisWeek as isThisWeek, index_isThisYear as isThisYear, index_isToday as isToday, index_isTomorrow as isTomorrow, index_isValid as isValid, index_isValidDate as isValidDate, index_isValidEmail as isValidEmail, index_isValidPassword as isValidPassword, index_isValidPhone as isValidPhone, index_isValidSlug as isValidSlug, index_isValidUrl as isValidUrl, index_isValidUsername as isValidUsername, index_isWeekday as isWeekday, index_isWeekend as isWeekend, index_isYesterday as isYesterday, index_nowInTimezone as nowInTimezone, index_parseDate as parseDate, index_parseISO as parseISO, index_setHours as setHours, index_setMinutes as setMinutes, index_setSeconds as setSeconds, index_setTime as setTime, index_startOfDay as startOfDay, index_startOfMonth as startOfMonth, index_startOfWeek as startOfWeek, index_startOfYear as startOfYear, index_subDays as subDays, index_subHours as subHours, index_subMinutes as subMinutes, index_subMonths as subMonths, index_subWeeks as subWeeks, index_subYears as subYears, index_subtractTime as subtractTime, index_toDateInputValue as toDateInputValue, index_toDateTimeInputValue as toDateTimeInputValue, index_toTimeInputValue as toTimeInputValue, index_toTimezone as toTimezone, index_toZonedTime as toZonedTime, index_validateEnv as validateEnv };
1373
- }
1374
-
1375
- export { TASK_STATUS as $, type AuthTokens as A, type BaseUser as B, type ChangePasswordRequest as C, type Breakpoint as D, type EnvConfig as E, type ForgotPasswordRequest as F, type FileType as G, type NotificationType as H, type ID as I, type JwtPayload as J, type KeyValuePair as K, type LoginCredentials as L, type Theme as M, type Nullable as N, type OrganizationEntity as O, type PaymentStatus as P, type Locale as Q, type RegisterCredentials as R, type SoftDeleteEntity as S, type Timestamps as T, type UserWithRole as U, type Visibility as V, type DateFormat as W, type Interval as X, type Gender as Y, ORDER_STATUS as Z, PAYMENT_STATUS as _, type UserRole as a, toDateInputValue as a$, SUBSCRIPTION_STATUS as a0, SORT_DIRECTION as a1, SORT as a2, ROLE as a3, PERMISSION_LEVEL as a4, PRIORITY as a5, VISIBILITY as a6, BREAKPOINTS as a7, MEDIA_QUERIES as a8, MEDIA_QUERIES_MAX as a9, formatDate as aA, formatDateTime as aB, formatDateInTimezone as aC, formatRelativeTime as aD, formatSmartDate as aE, formatDateRange as aF, toTimezone as aG, fromTimezone as aH, nowInTimezone as aI, getTimezoneDifference as aJ, addTime as aK, subtractTime as aL, getDateDifference as aM, getDaysInRange as aN, getWeeksInRange as aO, getMonthsInRange as aP, getDayBoundaries as aQ, getWeekBoundaries as aR, getMonthBoundaries as aS, getYearBoundaries as aT, isDateBetween as aU, doDateRangesOverlap as aV, getAge as aW, isWeekend as aX, isWeekday as aY, daysUntil as aZ, daysSince as a_, CONTAINER_WIDTHS as aa, FILE_TYPE as ab, NOTIFICATION_TYPE as ac, THEME as ad, LOCALE as ae, DATE_FORMAT as af, INTERVAL as ag, GENDER as ah, ENUMS as ai, HTTP_STATUS as aj, type HttpStatusCode as ak, HTTP_STATUS_MESSAGES as al, STATUS as am, type StatusValue as an, USER_STATUS as ao, type UserStatusValue as ap, ROLES as aq, type RoleValue as ar, PAGINATION as as, TOKEN_TYPES as at, type TokenType as au, _default as av, type DateInput as aw, parseDate as ax, isValidDate as ay, DATE_FORMATS as az, type AuthResponse as b, toDateTimeInputValue as b0, toTimeInputValue as b1, setTime as b2, combineDateAndTime as b3, VALIDATION_PATTERNS as b4, isValidEmail as b5, isValidPassword as b6, isValidPhone as b7, isValidUrl as b8, isValidUsername as b9, isValidSlug as ba, VALIDATION_MESSAGES as bb, VALIDATION_RULES as bc, type ResetPasswordRequest as c, type BaseEntity as d, type AuditableEntity as e, type ObjectId as f, type Optional as g, type RequiredFields as h, index as i, type SelectOption as j, type SortOrder as k, type SortConfig as l, getEnv as m, getEnvOptional as n, isProd as o, isDev as p, isTest as q, type OrderStatus as r, type TaskStatus as s, type SubscriptionStatus as t, type SortDirection as u, validateEnv as v, type Sort as w, type Role as x, type PermissionLevel as y, type Priority as z };