warqadui 0.0.129 → 0.0.132

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -183,6 +183,7 @@ interface ModalProps {
183
183
  children: React__default.ReactNode;
184
184
  isLoading?: boolean;
185
185
  width?: number;
186
+ closeOnOverlayClick?: boolean;
186
187
  }
187
188
  declare const Modal: React__default.FC<ModalProps>;
188
189
 
@@ -278,6 +279,7 @@ type defaultStateT = {
278
279
  content: React.ReactNode;
279
280
  width: number;
280
281
  data?: any;
282
+ closeOnOverlayClick?: boolean;
281
283
  };
282
284
  declare const useModal: (initialState?: boolean) => UseModalReturn;
283
285
 
@@ -383,11 +385,12 @@ declare const Enums: {
383
385
  journalTypes: readonly ["journal"];
384
386
  viaTypes: readonly ["direct", "via account"];
385
387
  actionTypes: readonly ["credit", "debit"];
386
- transactionTypes: readonly ["journal", "payment", "money transfer", "expense", "adjustment", "forex transfer", "stock", "forex dubai to china"];
388
+ transactionTypes: readonly ["journal", "payment", "money transfer", "expense", "adjustment", "forex transfer", "stock", "forex dubai to china", "forex"];
387
389
  stockTypes: readonly ["pack", "product"];
388
390
  saleStockTypes: readonly ["pack", "product"];
389
391
  sale: readonly ["cash", "credit"];
390
392
  stockTransferTypes: readonly ["pack", "product", "pack to product"];
393
+ forexTypes: readonly ["direct", "exchange"];
391
394
  };
392
395
 
393
396
  interface ThemeConfig {
@@ -407,6 +410,7 @@ type apiConfig = {
407
410
  stockLevelReportApi?: string;
408
411
  itemStockLevelReportApi?: string;
409
412
  profitAndLossReportApi?: string;
413
+ forexAccountApi?: string;
410
414
  };
411
415
  type EnumsConfig = {
412
416
  [K in keyof typeof Enums]: string[] | readonly string[];
@@ -666,8 +670,10 @@ interface SimpleTableProps<TData> {
666
670
  emptyState?: React__default.ReactNode;
667
671
  skeletonCount?: number;
668
672
  fixed?: boolean;
673
+ onRowClick?: (row: TData) => void;
674
+ onRowDoubleClick?: (row: TData) => void;
669
675
  }
670
- declare function SimpleTable<TData>({ columns: userColumns, data, className, renderFooter: componentFooter, rowPadding, verticalLines: userVerticalLines, verclines, index, startIndex, isLoading, title, enableSearch, emptyState, skeletonCount, fixed, }: SimpleTableProps<TData>): react_jsx_runtime.JSX.Element;
676
+ declare function SimpleTable<TData>({ columns: userColumns, data, className, renderFooter: componentFooter, rowPadding, verticalLines: userVerticalLines, verclines, index, startIndex, isLoading, title, enableSearch, emptyState, skeletonCount, fixed, onRowClick, onRowDoubleClick, }: SimpleTableProps<TData>): react_jsx_runtime.JSX.Element;
671
677
 
672
678
  interface SummaryColumn<T> {
673
679
  title: React__default.ReactNode;
@@ -873,7 +879,7 @@ declare const useA4StatementView: ({ url, v, delay, params, startPage, }?: {
873
879
  params?: Record<string, any>;
874
880
  startPage?: number;
875
881
  }) => {
876
- A4DataView: ({ columns, data, error, info, index, title, subtitle, printable, rowPadding, verticalLines, headers, tableTitle, startPage: componentStartPage, isLoading: externalLoading, fixed, }: {
882
+ A4DataView: ({ columns, data, error, info, index, title, subtitle, printable, rowPadding, verticalLines, headers, tableTitle, startPage: componentStartPage, isLoading: externalLoading, fixed, onRowClick, onRowDoubleClick, }: {
877
883
  tableTitle?: string;
878
884
  columns?: SimpleTableColumn<any>[];
879
885
  data?: any[];
@@ -889,11 +895,14 @@ declare const useA4StatementView: ({ url, v, delay, params, startPage, }?: {
889
895
  startPage?: number;
890
896
  isLoading?: boolean;
891
897
  fixed?: boolean;
898
+ onRowClick?: (row: any) => void;
899
+ onRowDoubleClick?: (row: any) => void;
892
900
  }) => react_jsx_runtime.JSX.Element;
893
901
  data: any;
894
902
  isLoading: boolean;
895
903
  get: FetchFunction;
896
904
  reactToPrintFn: react_to_print.UseReactToPrintFn;
905
+ reload: () => Promise<void>;
897
906
  };
898
907
 
899
908
  declare const useA4CategoryView: ({ url, v, delay, params, startPage, }?: {
@@ -1040,7 +1049,7 @@ declare const CategoryCard: React__default.FC<{
1040
1049
  declare const Views: {
1041
1050
  Transaction: ({ id, type, close, reverseable, }: {
1042
1051
  id: string;
1043
- type: "" | "journal" | "payment" | "money transfer" | "expense" | "adjustment" | "forex transfer" | "stock" | "forex dubai to china" | undefined;
1052
+ type: "" | "journal" | "payment" | "money transfer" | "expense" | "adjustment" | "forex transfer" | "stock" | "forex dubai to china" | "forex" | undefined;
1044
1053
  close: () => void;
1045
1054
  reverseable?: {
1046
1055
  reload: () => void;
@@ -1082,6 +1091,7 @@ type AuthData = {
1082
1091
  isPhoneVerified: boolean;
1083
1092
  permissions?: Record<string, boolean>;
1084
1093
  homePath?: string;
1094
+ name?: string;
1085
1095
  };
1086
1096
  type AccountData = {
1087
1097
  _id: string;
@@ -1143,6 +1153,7 @@ declare const useAuth: () => {
1143
1153
  isPhoneVerified: boolean;
1144
1154
  permissions?: Record<string, boolean>;
1145
1155
  homePath?: string;
1156
+ name?: string;
1146
1157
  } | null;
1147
1158
  user: {
1148
1159
  _id: string;
@@ -1154,6 +1165,7 @@ declare const useAuth: () => {
1154
1165
  isPhoneVerified: boolean;
1155
1166
  permissions?: Record<string, boolean>;
1156
1167
  homePath?: string;
1168
+ name?: string;
1157
1169
  } | null;
1158
1170
  account: {
1159
1171
  _id: string;
@@ -1211,6 +1223,7 @@ declare const useAuth: () => {
1211
1223
  isPhoneVerified: boolean;
1212
1224
  permissions?: Record<string, boolean>;
1213
1225
  homePath?: string;
1226
+ name?: string;
1214
1227
  }, account: {
1215
1228
  _id: string;
1216
1229
  name: string;
@@ -1230,6 +1243,7 @@ declare const useAuth: () => {
1230
1243
  isPhoneVerified: boolean;
1231
1244
  permissions?: Record<string, boolean>;
1232
1245
  homePath?: string;
1246
+ name?: string;
1233
1247
  }>) => void;
1234
1248
  updateUser: (data: Partial<{
1235
1249
  _id: string;
@@ -1241,6 +1255,7 @@ declare const useAuth: () => {
1241
1255
  isPhoneVerified: boolean;
1242
1256
  permissions?: Record<string, boolean>;
1243
1257
  homePath?: string;
1258
+ name?: string;
1244
1259
  }>) => void;
1245
1260
  updateAccount: (data: Partial<{
1246
1261
  _id: string;
@@ -1258,6 +1273,11 @@ declare function Accounts({ v, url }: {
1258
1273
  url?: string;
1259
1274
  }): react_jsx_runtime.JSX.Element;
1260
1275
 
1276
+ declare function ForexAccounts({ v, url }: {
1277
+ v?: 1 | 2;
1278
+ url?: string;
1279
+ }): react_jsx_runtime.JSX.Element;
1280
+
1261
1281
  declare function AccountForm(): react_jsx_runtime.JSX.Element;
1262
1282
 
1263
1283
  type AccountProps<T extends FieldValues> = {
@@ -1373,6 +1393,8 @@ declare const UserProfile: React__default.FC<UserProfileProps>;
1373
1393
 
1374
1394
  declare const ProfilePage: () => react_jsx_runtime.JSX.Element;
1375
1395
 
1396
+ declare function UserUpdate(): react_jsx_runtime.JSX.Element;
1397
+
1376
1398
  declare const useApp: () => {
1377
1399
  navigate: react_router.NavigateFunction;
1378
1400
  getQuery: (key?: string) => string | {
@@ -1432,21 +1454,35 @@ declare const resetPasswordSchema: z$1.ZodObject<{
1432
1454
  declare const createUserSchema: z$1.ZodObject<{
1433
1455
  email: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodString, string, string>, string, string>;
1434
1456
  phoneNumber: z$1.ZodOptional<z$1.ZodString>;
1457
+ name: z$1.ZodString;
1435
1458
  role: z$1.ZodEnum<["admin"]>;
1436
1459
  }, "strip", z$1.ZodTypeAny, {
1460
+ name: string;
1437
1461
  role: "admin";
1438
1462
  email: string;
1439
1463
  phoneNumber?: string | undefined;
1440
1464
  }, {
1465
+ name: string;
1441
1466
  role: "admin";
1442
1467
  email: string;
1443
1468
  phoneNumber?: string | undefined;
1444
1469
  }>;
1470
+ declare const updateUserSchema: z$1.ZodObject<{
1471
+ name: z$1.ZodOptional<z$1.ZodString>;
1472
+ phoneNumber: z$1.ZodOptional<z$1.ZodString>;
1473
+ }, "strip", z$1.ZodTypeAny, {
1474
+ name?: string | undefined;
1475
+ phoneNumber?: string | undefined;
1476
+ }, {
1477
+ name?: string | undefined;
1478
+ phoneNumber?: string | undefined;
1479
+ }>;
1445
1480
  type linkUserSchemaType = z$1.infer<typeof linkUserSchema>;
1446
1481
  type verifyUserEmailSchemaType = z$1.infer<typeof verifyUserEmailSchema>;
1447
1482
  type updateUserEmailSchemaType = z$1.infer<typeof updateUserEmailSchema>;
1448
1483
  type resetPasswordSchemaType = z$1.infer<typeof resetPasswordSchema>;
1449
1484
  type createUserSchemaType = z$1.infer<typeof createUserSchema>;
1485
+ type updateUserSchemaType = z$1.infer<typeof updateUserSchema>;
1450
1486
 
1451
1487
  declare function Wallets({ v, url }: {
1452
1488
  v?: 1 | 2;
@@ -1740,28 +1776,28 @@ declare const journalSchema: z$1.ZodObject<{
1740
1776
  date: string;
1741
1777
  description: string;
1742
1778
  amount: number;
1743
- journalVia: "direct" | "via account";
1744
1779
  fee: number;
1780
+ journalVia: "direct" | "via account";
1745
1781
  note?: string | undefined;
1746
1782
  action?: "credit" | "debit" | undefined;
1783
+ rate?: number | undefined;
1747
1784
  viaAccount?: string | undefined;
1748
1785
  viaAccountObject?: any;
1749
1786
  accountObject?: any;
1750
- rate?: number | undefined;
1751
1787
  exchangedAmount?: number | undefined;
1752
1788
  }, {
1753
1789
  account: string;
1754
1790
  date: string;
1755
1791
  description: string;
1756
1792
  amount: number;
1757
- journalVia: "direct" | "via account";
1758
1793
  fee: number;
1794
+ journalVia: "direct" | "via account";
1759
1795
  note?: string | undefined;
1760
1796
  action?: "credit" | "debit" | undefined;
1797
+ rate?: number | undefined;
1761
1798
  viaAccount?: string | undefined;
1762
1799
  viaAccountObject?: any;
1763
1800
  accountObject?: any;
1764
- rate?: number | undefined;
1765
1801
  exchangedAmount?: number | undefined;
1766
1802
  }>;
1767
1803
  type JournalSchemaType = z$1.infer<typeof journalSchema>;
@@ -1797,9 +1833,9 @@ declare const paymentSchema: z$1.ZodObject<{
1797
1833
  wallet: string;
1798
1834
  note?: string | undefined;
1799
1835
  branch?: string | undefined;
1800
- accountObject?: any;
1801
- rate?: number | undefined;
1802
1836
  fee?: number | undefined;
1837
+ rate?: number | undefined;
1838
+ accountObject?: any;
1803
1839
  walletObject?: any;
1804
1840
  }, {
1805
1841
  account: string;
@@ -1810,9 +1846,9 @@ declare const paymentSchema: z$1.ZodObject<{
1810
1846
  wallet: string;
1811
1847
  note?: string | undefined;
1812
1848
  branch?: string | undefined;
1813
- accountObject?: any;
1814
- rate?: number | undefined;
1815
1849
  fee?: number | undefined;
1850
+ rate?: number | undefined;
1851
+ accountObject?: any;
1816
1852
  walletObject?: any;
1817
1853
  }>;
1818
1854
  type PaymentSchemaType = z$1.infer<typeof paymentSchema>;
@@ -1841,8 +1877,8 @@ declare const moneyTransferSchema: z$1.ZodObject<{
1841
1877
  toWallet: string;
1842
1878
  note?: string | undefined;
1843
1879
  branch?: string | undefined;
1844
- rate?: number | undefined;
1845
1880
  fee?: number | undefined;
1881
+ rate?: number | undefined;
1846
1882
  fromWalletObject?: any;
1847
1883
  toWalletObject?: any;
1848
1884
  }, {
@@ -1852,8 +1888,8 @@ declare const moneyTransferSchema: z$1.ZodObject<{
1852
1888
  toWallet: string;
1853
1889
  note?: string | undefined;
1854
1890
  branch?: string | undefined;
1855
- rate?: number | undefined;
1856
1891
  fee?: number | undefined;
1892
+ rate?: number | undefined;
1857
1893
  fromWalletObject?: any;
1858
1894
  toWalletObject?: any;
1859
1895
  }>;
@@ -1982,9 +2018,9 @@ declare const forexTransferSchema: z$1.ZodObject<{
1982
2018
  wallet: string;
1983
2019
  note?: string | undefined;
1984
2020
  branch?: string | undefined;
1985
- accountObject?: any;
1986
- rate?: number | undefined;
1987
2021
  fee?: number | undefined;
2022
+ rate?: number | undefined;
2023
+ accountObject?: any;
1988
2024
  walletObject?: any;
1989
2025
  }, {
1990
2026
  account: string;
@@ -1994,9 +2030,9 @@ declare const forexTransferSchema: z$1.ZodObject<{
1994
2030
  wallet: string;
1995
2031
  note?: string | undefined;
1996
2032
  branch?: string | undefined;
1997
- accountObject?: any;
1998
- rate?: number | undefined;
1999
2033
  fee?: number | undefined;
2034
+ rate?: number | undefined;
2035
+ accountObject?: any;
2000
2036
  walletObject?: any;
2001
2037
  }>;
2002
2038
  type ForexTransferSchemaType = z$1.infer<typeof forexTransferSchema>;
@@ -2052,8 +2088,8 @@ declare const forexDubaiToChinaSchema: z$1.ZodObject<{
2052
2088
  account: string;
2053
2089
  date: string;
2054
2090
  amount: number;
2055
- viaAccount: string;
2056
2091
  fee: number;
2092
+ viaAccount: string;
2057
2093
  rmbToAedRate: number;
2058
2094
  aedToUsdRate: number;
2059
2095
  rmbToUsdRate: number;
@@ -2065,8 +2101,8 @@ declare const forexDubaiToChinaSchema: z$1.ZodObject<{
2065
2101
  account: string;
2066
2102
  date: string;
2067
2103
  amount: number;
2068
- viaAccount: string;
2069
2104
  fee: number;
2105
+ viaAccount: string;
2070
2106
  rmbToAedRate: number;
2071
2107
  aedToUsdRate: number;
2072
2108
  rmbToUsdRate: number;
@@ -2077,10 +2113,14 @@ declare const forexDubaiToChinaSchema: z$1.ZodObject<{
2077
2113
  }>;
2078
2114
  type ForexDubaiToChinaSchemaType = z$1.infer<typeof forexDubaiToChinaSchema>;
2079
2115
 
2116
+ declare const ForexAccountReport: () => react_jsx_runtime.JSX.Element;
2117
+
2118
+ declare const ForexAccountStatements: () => react_jsx_runtime.JSX.Element;
2119
+
2080
2120
  declare const StockLevel: ({ value }: {
2081
2121
  value: boolean;
2082
2122
  }) => react_jsx_runtime.JSX.Element;
2083
2123
 
2084
2124
  declare const ProfitAndLossReport: () => react_jsx_runtime.JSX.Element;
2085
2125
 
2086
- export { AccountFields, AccountForm, AccountReport, AccountStatements, type AccountType, Accounts, AdminProtectedRoute, Badge, type BadgeProps, type BranchesContext, BrandField, BrandForm, Branding, type BrandingProps, Brands, Breadcrumbs, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Categories, CategoryCard, CategoryField, CategoryForm, type CategoryItem, ClassicSpin, ClothendStockAdjustment, ClothendStockTransfer, CodeBlock, ConfirmModal, type ConfirmModalProps, type CreateAccountSchemaType, type CreateBrandSchemaType, type CreateCategorySchemaType, type CreatePackSchemaType, type CreateProductSchemaType, type CreateWalletSchemaType, DashboardLayout, DataTable, type DataTableColumn, DateInput, type DateInputProps, type DeleteFunction, Dropdown, type DropdownItem, type DropdownProps, type EnumsConfig, ErrorPage, type ErrorPageProps, ExpenseForm, type ExpenseSchemaType, Expenses, type FetchFunction, type FetchProps, Fields, ForexDubaiToChina, ForexDubaiToChinaForm, type ForexDubaiToChinaSchemaType, ForexTransferForm, type ForexTransferSchemaType, ForexTransfers, Guard, InfoGrid, Input, type InputProps, JournalForm, type JournalSchemaType, Journals, LinkUser, LoadingBox, LoadingSpin, type LoginSchema, type LoginTheme, Modal, type ModalProps, MoneyTransferForm, type MoneyTransferSchemaType, MoneyTransfers, type NavItem, type NavItems, type Option, OverlaySpin, _default as PackField, PackForm, type PackProductItemSchemaType, Packs, PageA4, PageHeader, PaymentForm, type PaymentSchemaType, Payments, type PdfOptions, PhoneInput, type PhoneInputProps, type PostFunction, PostTable, type PostTableActions, type PostTableChangeParams, ProductField, ProductForm, Products, ProfileCard, type ProfileCardProps, ProfileDropdown, type ProfileDropdownItem, type ProfileDropdownProps, ProfilePage, ProfileView, type ProfileViewInfoItem, type ProfileViewProps, ProfitAndLossReport, ProtectedRoute, type PutFunction, ResetPasswordPage, type Role, SaleStockAdjustment, SaleStockForm, SearchApi, SearchApiContent, SearchApiInput, SearchApiItem, type SearchApiProps, SearchApiTrigger, Select, SelectContent, SelectItem, type SelectProps, SelectTrigger, SimpleTable, type SimpleTableColumn, PosStockAdjustment as StockAdjustmentForm, StockLevel, PosStockTransfer as StockTransferForm, type StorageManager, type StoreConfig, type SummaryColumn, SummaryTable, type SummaryTableProps, Textarea, type TextareaProps, type ThemeConfig, ThemeProvider, ThemeToggle, ThemedLogin, UnProtectedRoute, type UseModalReturn, UserForm, UserProfile, Users, Views, WalletAdjustmentForm, type WalletAdjustmentSchemaType, WalletAdjustments, WalletField, WalletForm, WalletReport, WalletStatements, Wallets, type WarqadConfig, type WarqadConfigContextType, WarqadProvider, type apiConfig, createAccountSchema, createBrandSchema, createCategorySchema, createPackSchema, createProductSchema, createUserSchema, type createUserSchemaType, createWalletSchema, expenseSchema, forexDubaiToChinaSchema, forexTransferSchema, generatePdf, journalSchema, linkUserSchema, type linkUserSchemaType, moneyTransferSchema, packProductItemSchema, packTypes, paymentSchema, resetPasswordSchema, type resetPasswordSchemaType, storage, updateUserEmailSchema, type updateUserEmailSchemaType, useA4CategoryView, useA4StatementView, useAntdImageUpload, useApi, useApp, useAuth, useAuthStore, useLogin, useModal, useSearchApiContext, useSelectContext, useTheme, useTransaction, useWarqadConfig, verifyUserEmailSchema, type verifyUserEmailSchemaType, walletAdjustmentSchema };
2126
+ export { AccountFields, AccountForm, AccountReport, AccountStatements, type AccountType, Accounts, AdminProtectedRoute, Badge, type BadgeProps, type BranchesContext, BrandField, BrandForm, Branding, type BrandingProps, Brands, Breadcrumbs, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Categories, CategoryCard, CategoryField, CategoryForm, type CategoryItem, ClassicSpin, ClothendStockAdjustment, ClothendStockTransfer, CodeBlock, ConfirmModal, type ConfirmModalProps, type CreateAccountSchemaType, type CreateBrandSchemaType, type CreateCategorySchemaType, type CreatePackSchemaType, type CreateProductSchemaType, type CreateWalletSchemaType, DashboardLayout, DataTable, type DataTableColumn, DateInput, type DateInputProps, type DeleteFunction, Dropdown, type DropdownItem, type DropdownProps, type EnumsConfig, ErrorPage, type ErrorPageProps, ExpenseForm, type ExpenseSchemaType, Expenses, type FetchFunction, type FetchProps, Fields, ForexAccountReport, ForexAccountStatements, ForexAccounts, ForexDubaiToChina, ForexDubaiToChinaForm, type ForexDubaiToChinaSchemaType, ForexTransferForm, type ForexTransferSchemaType, ForexTransfers, Guard, InfoGrid, Input, type InputProps, JournalForm, type JournalSchemaType, Journals, LinkUser, LoadingBox, LoadingSpin, type LoginSchema, type LoginTheme, Modal, type ModalProps, MoneyTransferForm, type MoneyTransferSchemaType, MoneyTransfers, type NavItem, type NavItems, type Option, OverlaySpin, _default as PackField, PackForm, type PackProductItemSchemaType, Packs, PageA4, PageHeader, PaymentForm, type PaymentSchemaType, Payments, type PdfOptions, PhoneInput, type PhoneInputProps, type PostFunction, PostTable, type PostTableActions, type PostTableChangeParams, ProductField, ProductForm, Products, ProfileCard, type ProfileCardProps, ProfileDropdown, type ProfileDropdownItem, type ProfileDropdownProps, ProfilePage, ProfileView, type ProfileViewInfoItem, type ProfileViewProps, ProfitAndLossReport, ProtectedRoute, type PutFunction, ResetPasswordPage, type Role, SaleStockAdjustment, SaleStockForm, SearchApi, SearchApiContent, SearchApiInput, SearchApiItem, type SearchApiProps, SearchApiTrigger, Select, SelectContent, SelectItem, type SelectProps, SelectTrigger, SimpleTable, type SimpleTableColumn, PosStockAdjustment as StockAdjustmentForm, StockLevel, PosStockTransfer as StockTransferForm, type StorageManager, type StoreConfig, type SummaryColumn, SummaryTable, type SummaryTableProps, Textarea, type TextareaProps, type ThemeConfig, ThemeProvider, ThemeToggle, ThemedLogin, UnProtectedRoute, type UseModalReturn, UserForm, UserProfile, UserUpdate, Users, Views, WalletAdjustmentForm, type WalletAdjustmentSchemaType, WalletAdjustments, WalletField, WalletForm, WalletReport, WalletStatements, Wallets, type WarqadConfig, type WarqadConfigContextType, WarqadProvider, type apiConfig, createAccountSchema, createBrandSchema, createCategorySchema, createPackSchema, createProductSchema, createUserSchema, type createUserSchemaType, createWalletSchema, expenseSchema, forexDubaiToChinaSchema, forexTransferSchema, generatePdf, journalSchema, linkUserSchema, type linkUserSchemaType, moneyTransferSchema, packProductItemSchema, packTypes, paymentSchema, resetPasswordSchema, type resetPasswordSchemaType, storage, updateUserEmailSchema, type updateUserEmailSchemaType, updateUserSchema, type updateUserSchemaType, useA4CategoryView, useA4StatementView, useAntdImageUpload, useApi, useApp, useAuth, useAuthStore, useLogin, useModal, useSearchApiContext, useSelectContext, useTheme, useTransaction, useWarqadConfig, verifyUserEmailSchema, type verifyUserEmailSchemaType, walletAdjustmentSchema };
package/dist/index.d.ts CHANGED
@@ -183,6 +183,7 @@ interface ModalProps {
183
183
  children: React__default.ReactNode;
184
184
  isLoading?: boolean;
185
185
  width?: number;
186
+ closeOnOverlayClick?: boolean;
186
187
  }
187
188
  declare const Modal: React__default.FC<ModalProps>;
188
189
 
@@ -278,6 +279,7 @@ type defaultStateT = {
278
279
  content: React.ReactNode;
279
280
  width: number;
280
281
  data?: any;
282
+ closeOnOverlayClick?: boolean;
281
283
  };
282
284
  declare const useModal: (initialState?: boolean) => UseModalReturn;
283
285
 
@@ -383,11 +385,12 @@ declare const Enums: {
383
385
  journalTypes: readonly ["journal"];
384
386
  viaTypes: readonly ["direct", "via account"];
385
387
  actionTypes: readonly ["credit", "debit"];
386
- transactionTypes: readonly ["journal", "payment", "money transfer", "expense", "adjustment", "forex transfer", "stock", "forex dubai to china"];
388
+ transactionTypes: readonly ["journal", "payment", "money transfer", "expense", "adjustment", "forex transfer", "stock", "forex dubai to china", "forex"];
387
389
  stockTypes: readonly ["pack", "product"];
388
390
  saleStockTypes: readonly ["pack", "product"];
389
391
  sale: readonly ["cash", "credit"];
390
392
  stockTransferTypes: readonly ["pack", "product", "pack to product"];
393
+ forexTypes: readonly ["direct", "exchange"];
391
394
  };
392
395
 
393
396
  interface ThemeConfig {
@@ -407,6 +410,7 @@ type apiConfig = {
407
410
  stockLevelReportApi?: string;
408
411
  itemStockLevelReportApi?: string;
409
412
  profitAndLossReportApi?: string;
413
+ forexAccountApi?: string;
410
414
  };
411
415
  type EnumsConfig = {
412
416
  [K in keyof typeof Enums]: string[] | readonly string[];
@@ -666,8 +670,10 @@ interface SimpleTableProps<TData> {
666
670
  emptyState?: React__default.ReactNode;
667
671
  skeletonCount?: number;
668
672
  fixed?: boolean;
673
+ onRowClick?: (row: TData) => void;
674
+ onRowDoubleClick?: (row: TData) => void;
669
675
  }
670
- declare function SimpleTable<TData>({ columns: userColumns, data, className, renderFooter: componentFooter, rowPadding, verticalLines: userVerticalLines, verclines, index, startIndex, isLoading, title, enableSearch, emptyState, skeletonCount, fixed, }: SimpleTableProps<TData>): react_jsx_runtime.JSX.Element;
676
+ declare function SimpleTable<TData>({ columns: userColumns, data, className, renderFooter: componentFooter, rowPadding, verticalLines: userVerticalLines, verclines, index, startIndex, isLoading, title, enableSearch, emptyState, skeletonCount, fixed, onRowClick, onRowDoubleClick, }: SimpleTableProps<TData>): react_jsx_runtime.JSX.Element;
671
677
 
672
678
  interface SummaryColumn<T> {
673
679
  title: React__default.ReactNode;
@@ -873,7 +879,7 @@ declare const useA4StatementView: ({ url, v, delay, params, startPage, }?: {
873
879
  params?: Record<string, any>;
874
880
  startPage?: number;
875
881
  }) => {
876
- A4DataView: ({ columns, data, error, info, index, title, subtitle, printable, rowPadding, verticalLines, headers, tableTitle, startPage: componentStartPage, isLoading: externalLoading, fixed, }: {
882
+ A4DataView: ({ columns, data, error, info, index, title, subtitle, printable, rowPadding, verticalLines, headers, tableTitle, startPage: componentStartPage, isLoading: externalLoading, fixed, onRowClick, onRowDoubleClick, }: {
877
883
  tableTitle?: string;
878
884
  columns?: SimpleTableColumn<any>[];
879
885
  data?: any[];
@@ -889,11 +895,14 @@ declare const useA4StatementView: ({ url, v, delay, params, startPage, }?: {
889
895
  startPage?: number;
890
896
  isLoading?: boolean;
891
897
  fixed?: boolean;
898
+ onRowClick?: (row: any) => void;
899
+ onRowDoubleClick?: (row: any) => void;
892
900
  }) => react_jsx_runtime.JSX.Element;
893
901
  data: any;
894
902
  isLoading: boolean;
895
903
  get: FetchFunction;
896
904
  reactToPrintFn: react_to_print.UseReactToPrintFn;
905
+ reload: () => Promise<void>;
897
906
  };
898
907
 
899
908
  declare const useA4CategoryView: ({ url, v, delay, params, startPage, }?: {
@@ -1040,7 +1049,7 @@ declare const CategoryCard: React__default.FC<{
1040
1049
  declare const Views: {
1041
1050
  Transaction: ({ id, type, close, reverseable, }: {
1042
1051
  id: string;
1043
- type: "" | "journal" | "payment" | "money transfer" | "expense" | "adjustment" | "forex transfer" | "stock" | "forex dubai to china" | undefined;
1052
+ type: "" | "journal" | "payment" | "money transfer" | "expense" | "adjustment" | "forex transfer" | "stock" | "forex dubai to china" | "forex" | undefined;
1044
1053
  close: () => void;
1045
1054
  reverseable?: {
1046
1055
  reload: () => void;
@@ -1082,6 +1091,7 @@ type AuthData = {
1082
1091
  isPhoneVerified: boolean;
1083
1092
  permissions?: Record<string, boolean>;
1084
1093
  homePath?: string;
1094
+ name?: string;
1085
1095
  };
1086
1096
  type AccountData = {
1087
1097
  _id: string;
@@ -1143,6 +1153,7 @@ declare const useAuth: () => {
1143
1153
  isPhoneVerified: boolean;
1144
1154
  permissions?: Record<string, boolean>;
1145
1155
  homePath?: string;
1156
+ name?: string;
1146
1157
  } | null;
1147
1158
  user: {
1148
1159
  _id: string;
@@ -1154,6 +1165,7 @@ declare const useAuth: () => {
1154
1165
  isPhoneVerified: boolean;
1155
1166
  permissions?: Record<string, boolean>;
1156
1167
  homePath?: string;
1168
+ name?: string;
1157
1169
  } | null;
1158
1170
  account: {
1159
1171
  _id: string;
@@ -1211,6 +1223,7 @@ declare const useAuth: () => {
1211
1223
  isPhoneVerified: boolean;
1212
1224
  permissions?: Record<string, boolean>;
1213
1225
  homePath?: string;
1226
+ name?: string;
1214
1227
  }, account: {
1215
1228
  _id: string;
1216
1229
  name: string;
@@ -1230,6 +1243,7 @@ declare const useAuth: () => {
1230
1243
  isPhoneVerified: boolean;
1231
1244
  permissions?: Record<string, boolean>;
1232
1245
  homePath?: string;
1246
+ name?: string;
1233
1247
  }>) => void;
1234
1248
  updateUser: (data: Partial<{
1235
1249
  _id: string;
@@ -1241,6 +1255,7 @@ declare const useAuth: () => {
1241
1255
  isPhoneVerified: boolean;
1242
1256
  permissions?: Record<string, boolean>;
1243
1257
  homePath?: string;
1258
+ name?: string;
1244
1259
  }>) => void;
1245
1260
  updateAccount: (data: Partial<{
1246
1261
  _id: string;
@@ -1258,6 +1273,11 @@ declare function Accounts({ v, url }: {
1258
1273
  url?: string;
1259
1274
  }): react_jsx_runtime.JSX.Element;
1260
1275
 
1276
+ declare function ForexAccounts({ v, url }: {
1277
+ v?: 1 | 2;
1278
+ url?: string;
1279
+ }): react_jsx_runtime.JSX.Element;
1280
+
1261
1281
  declare function AccountForm(): react_jsx_runtime.JSX.Element;
1262
1282
 
1263
1283
  type AccountProps<T extends FieldValues> = {
@@ -1373,6 +1393,8 @@ declare const UserProfile: React__default.FC<UserProfileProps>;
1373
1393
 
1374
1394
  declare const ProfilePage: () => react_jsx_runtime.JSX.Element;
1375
1395
 
1396
+ declare function UserUpdate(): react_jsx_runtime.JSX.Element;
1397
+
1376
1398
  declare const useApp: () => {
1377
1399
  navigate: react_router.NavigateFunction;
1378
1400
  getQuery: (key?: string) => string | {
@@ -1432,21 +1454,35 @@ declare const resetPasswordSchema: z$1.ZodObject<{
1432
1454
  declare const createUserSchema: z$1.ZodObject<{
1433
1455
  email: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodString, string, string>, string, string>;
1434
1456
  phoneNumber: z$1.ZodOptional<z$1.ZodString>;
1457
+ name: z$1.ZodString;
1435
1458
  role: z$1.ZodEnum<["admin"]>;
1436
1459
  }, "strip", z$1.ZodTypeAny, {
1460
+ name: string;
1437
1461
  role: "admin";
1438
1462
  email: string;
1439
1463
  phoneNumber?: string | undefined;
1440
1464
  }, {
1465
+ name: string;
1441
1466
  role: "admin";
1442
1467
  email: string;
1443
1468
  phoneNumber?: string | undefined;
1444
1469
  }>;
1470
+ declare const updateUserSchema: z$1.ZodObject<{
1471
+ name: z$1.ZodOptional<z$1.ZodString>;
1472
+ phoneNumber: z$1.ZodOptional<z$1.ZodString>;
1473
+ }, "strip", z$1.ZodTypeAny, {
1474
+ name?: string | undefined;
1475
+ phoneNumber?: string | undefined;
1476
+ }, {
1477
+ name?: string | undefined;
1478
+ phoneNumber?: string | undefined;
1479
+ }>;
1445
1480
  type linkUserSchemaType = z$1.infer<typeof linkUserSchema>;
1446
1481
  type verifyUserEmailSchemaType = z$1.infer<typeof verifyUserEmailSchema>;
1447
1482
  type updateUserEmailSchemaType = z$1.infer<typeof updateUserEmailSchema>;
1448
1483
  type resetPasswordSchemaType = z$1.infer<typeof resetPasswordSchema>;
1449
1484
  type createUserSchemaType = z$1.infer<typeof createUserSchema>;
1485
+ type updateUserSchemaType = z$1.infer<typeof updateUserSchema>;
1450
1486
 
1451
1487
  declare function Wallets({ v, url }: {
1452
1488
  v?: 1 | 2;
@@ -1740,28 +1776,28 @@ declare const journalSchema: z$1.ZodObject<{
1740
1776
  date: string;
1741
1777
  description: string;
1742
1778
  amount: number;
1743
- journalVia: "direct" | "via account";
1744
1779
  fee: number;
1780
+ journalVia: "direct" | "via account";
1745
1781
  note?: string | undefined;
1746
1782
  action?: "credit" | "debit" | undefined;
1783
+ rate?: number | undefined;
1747
1784
  viaAccount?: string | undefined;
1748
1785
  viaAccountObject?: any;
1749
1786
  accountObject?: any;
1750
- rate?: number | undefined;
1751
1787
  exchangedAmount?: number | undefined;
1752
1788
  }, {
1753
1789
  account: string;
1754
1790
  date: string;
1755
1791
  description: string;
1756
1792
  amount: number;
1757
- journalVia: "direct" | "via account";
1758
1793
  fee: number;
1794
+ journalVia: "direct" | "via account";
1759
1795
  note?: string | undefined;
1760
1796
  action?: "credit" | "debit" | undefined;
1797
+ rate?: number | undefined;
1761
1798
  viaAccount?: string | undefined;
1762
1799
  viaAccountObject?: any;
1763
1800
  accountObject?: any;
1764
- rate?: number | undefined;
1765
1801
  exchangedAmount?: number | undefined;
1766
1802
  }>;
1767
1803
  type JournalSchemaType = z$1.infer<typeof journalSchema>;
@@ -1797,9 +1833,9 @@ declare const paymentSchema: z$1.ZodObject<{
1797
1833
  wallet: string;
1798
1834
  note?: string | undefined;
1799
1835
  branch?: string | undefined;
1800
- accountObject?: any;
1801
- rate?: number | undefined;
1802
1836
  fee?: number | undefined;
1837
+ rate?: number | undefined;
1838
+ accountObject?: any;
1803
1839
  walletObject?: any;
1804
1840
  }, {
1805
1841
  account: string;
@@ -1810,9 +1846,9 @@ declare const paymentSchema: z$1.ZodObject<{
1810
1846
  wallet: string;
1811
1847
  note?: string | undefined;
1812
1848
  branch?: string | undefined;
1813
- accountObject?: any;
1814
- rate?: number | undefined;
1815
1849
  fee?: number | undefined;
1850
+ rate?: number | undefined;
1851
+ accountObject?: any;
1816
1852
  walletObject?: any;
1817
1853
  }>;
1818
1854
  type PaymentSchemaType = z$1.infer<typeof paymentSchema>;
@@ -1841,8 +1877,8 @@ declare const moneyTransferSchema: z$1.ZodObject<{
1841
1877
  toWallet: string;
1842
1878
  note?: string | undefined;
1843
1879
  branch?: string | undefined;
1844
- rate?: number | undefined;
1845
1880
  fee?: number | undefined;
1881
+ rate?: number | undefined;
1846
1882
  fromWalletObject?: any;
1847
1883
  toWalletObject?: any;
1848
1884
  }, {
@@ -1852,8 +1888,8 @@ declare const moneyTransferSchema: z$1.ZodObject<{
1852
1888
  toWallet: string;
1853
1889
  note?: string | undefined;
1854
1890
  branch?: string | undefined;
1855
- rate?: number | undefined;
1856
1891
  fee?: number | undefined;
1892
+ rate?: number | undefined;
1857
1893
  fromWalletObject?: any;
1858
1894
  toWalletObject?: any;
1859
1895
  }>;
@@ -1982,9 +2018,9 @@ declare const forexTransferSchema: z$1.ZodObject<{
1982
2018
  wallet: string;
1983
2019
  note?: string | undefined;
1984
2020
  branch?: string | undefined;
1985
- accountObject?: any;
1986
- rate?: number | undefined;
1987
2021
  fee?: number | undefined;
2022
+ rate?: number | undefined;
2023
+ accountObject?: any;
1988
2024
  walletObject?: any;
1989
2025
  }, {
1990
2026
  account: string;
@@ -1994,9 +2030,9 @@ declare const forexTransferSchema: z$1.ZodObject<{
1994
2030
  wallet: string;
1995
2031
  note?: string | undefined;
1996
2032
  branch?: string | undefined;
1997
- accountObject?: any;
1998
- rate?: number | undefined;
1999
2033
  fee?: number | undefined;
2034
+ rate?: number | undefined;
2035
+ accountObject?: any;
2000
2036
  walletObject?: any;
2001
2037
  }>;
2002
2038
  type ForexTransferSchemaType = z$1.infer<typeof forexTransferSchema>;
@@ -2052,8 +2088,8 @@ declare const forexDubaiToChinaSchema: z$1.ZodObject<{
2052
2088
  account: string;
2053
2089
  date: string;
2054
2090
  amount: number;
2055
- viaAccount: string;
2056
2091
  fee: number;
2092
+ viaAccount: string;
2057
2093
  rmbToAedRate: number;
2058
2094
  aedToUsdRate: number;
2059
2095
  rmbToUsdRate: number;
@@ -2065,8 +2101,8 @@ declare const forexDubaiToChinaSchema: z$1.ZodObject<{
2065
2101
  account: string;
2066
2102
  date: string;
2067
2103
  amount: number;
2068
- viaAccount: string;
2069
2104
  fee: number;
2105
+ viaAccount: string;
2070
2106
  rmbToAedRate: number;
2071
2107
  aedToUsdRate: number;
2072
2108
  rmbToUsdRate: number;
@@ -2077,10 +2113,14 @@ declare const forexDubaiToChinaSchema: z$1.ZodObject<{
2077
2113
  }>;
2078
2114
  type ForexDubaiToChinaSchemaType = z$1.infer<typeof forexDubaiToChinaSchema>;
2079
2115
 
2116
+ declare const ForexAccountReport: () => react_jsx_runtime.JSX.Element;
2117
+
2118
+ declare const ForexAccountStatements: () => react_jsx_runtime.JSX.Element;
2119
+
2080
2120
  declare const StockLevel: ({ value }: {
2081
2121
  value: boolean;
2082
2122
  }) => react_jsx_runtime.JSX.Element;
2083
2123
 
2084
2124
  declare const ProfitAndLossReport: () => react_jsx_runtime.JSX.Element;
2085
2125
 
2086
- export { AccountFields, AccountForm, AccountReport, AccountStatements, type AccountType, Accounts, AdminProtectedRoute, Badge, type BadgeProps, type BranchesContext, BrandField, BrandForm, Branding, type BrandingProps, Brands, Breadcrumbs, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Categories, CategoryCard, CategoryField, CategoryForm, type CategoryItem, ClassicSpin, ClothendStockAdjustment, ClothendStockTransfer, CodeBlock, ConfirmModal, type ConfirmModalProps, type CreateAccountSchemaType, type CreateBrandSchemaType, type CreateCategorySchemaType, type CreatePackSchemaType, type CreateProductSchemaType, type CreateWalletSchemaType, DashboardLayout, DataTable, type DataTableColumn, DateInput, type DateInputProps, type DeleteFunction, Dropdown, type DropdownItem, type DropdownProps, type EnumsConfig, ErrorPage, type ErrorPageProps, ExpenseForm, type ExpenseSchemaType, Expenses, type FetchFunction, type FetchProps, Fields, ForexDubaiToChina, ForexDubaiToChinaForm, type ForexDubaiToChinaSchemaType, ForexTransferForm, type ForexTransferSchemaType, ForexTransfers, Guard, InfoGrid, Input, type InputProps, JournalForm, type JournalSchemaType, Journals, LinkUser, LoadingBox, LoadingSpin, type LoginSchema, type LoginTheme, Modal, type ModalProps, MoneyTransferForm, type MoneyTransferSchemaType, MoneyTransfers, type NavItem, type NavItems, type Option, OverlaySpin, _default as PackField, PackForm, type PackProductItemSchemaType, Packs, PageA4, PageHeader, PaymentForm, type PaymentSchemaType, Payments, type PdfOptions, PhoneInput, type PhoneInputProps, type PostFunction, PostTable, type PostTableActions, type PostTableChangeParams, ProductField, ProductForm, Products, ProfileCard, type ProfileCardProps, ProfileDropdown, type ProfileDropdownItem, type ProfileDropdownProps, ProfilePage, ProfileView, type ProfileViewInfoItem, type ProfileViewProps, ProfitAndLossReport, ProtectedRoute, type PutFunction, ResetPasswordPage, type Role, SaleStockAdjustment, SaleStockForm, SearchApi, SearchApiContent, SearchApiInput, SearchApiItem, type SearchApiProps, SearchApiTrigger, Select, SelectContent, SelectItem, type SelectProps, SelectTrigger, SimpleTable, type SimpleTableColumn, PosStockAdjustment as StockAdjustmentForm, StockLevel, PosStockTransfer as StockTransferForm, type StorageManager, type StoreConfig, type SummaryColumn, SummaryTable, type SummaryTableProps, Textarea, type TextareaProps, type ThemeConfig, ThemeProvider, ThemeToggle, ThemedLogin, UnProtectedRoute, type UseModalReturn, UserForm, UserProfile, Users, Views, WalletAdjustmentForm, type WalletAdjustmentSchemaType, WalletAdjustments, WalletField, WalletForm, WalletReport, WalletStatements, Wallets, type WarqadConfig, type WarqadConfigContextType, WarqadProvider, type apiConfig, createAccountSchema, createBrandSchema, createCategorySchema, createPackSchema, createProductSchema, createUserSchema, type createUserSchemaType, createWalletSchema, expenseSchema, forexDubaiToChinaSchema, forexTransferSchema, generatePdf, journalSchema, linkUserSchema, type linkUserSchemaType, moneyTransferSchema, packProductItemSchema, packTypes, paymentSchema, resetPasswordSchema, type resetPasswordSchemaType, storage, updateUserEmailSchema, type updateUserEmailSchemaType, useA4CategoryView, useA4StatementView, useAntdImageUpload, useApi, useApp, useAuth, useAuthStore, useLogin, useModal, useSearchApiContext, useSelectContext, useTheme, useTransaction, useWarqadConfig, verifyUserEmailSchema, type verifyUserEmailSchemaType, walletAdjustmentSchema };
2126
+ export { AccountFields, AccountForm, AccountReport, AccountStatements, type AccountType, Accounts, AdminProtectedRoute, Badge, type BadgeProps, type BranchesContext, BrandField, BrandForm, Branding, type BrandingProps, Brands, Breadcrumbs, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Categories, CategoryCard, CategoryField, CategoryForm, type CategoryItem, ClassicSpin, ClothendStockAdjustment, ClothendStockTransfer, CodeBlock, ConfirmModal, type ConfirmModalProps, type CreateAccountSchemaType, type CreateBrandSchemaType, type CreateCategorySchemaType, type CreatePackSchemaType, type CreateProductSchemaType, type CreateWalletSchemaType, DashboardLayout, DataTable, type DataTableColumn, DateInput, type DateInputProps, type DeleteFunction, Dropdown, type DropdownItem, type DropdownProps, type EnumsConfig, ErrorPage, type ErrorPageProps, ExpenseForm, type ExpenseSchemaType, Expenses, type FetchFunction, type FetchProps, Fields, ForexAccountReport, ForexAccountStatements, ForexAccounts, ForexDubaiToChina, ForexDubaiToChinaForm, type ForexDubaiToChinaSchemaType, ForexTransferForm, type ForexTransferSchemaType, ForexTransfers, Guard, InfoGrid, Input, type InputProps, JournalForm, type JournalSchemaType, Journals, LinkUser, LoadingBox, LoadingSpin, type LoginSchema, type LoginTheme, Modal, type ModalProps, MoneyTransferForm, type MoneyTransferSchemaType, MoneyTransfers, type NavItem, type NavItems, type Option, OverlaySpin, _default as PackField, PackForm, type PackProductItemSchemaType, Packs, PageA4, PageHeader, PaymentForm, type PaymentSchemaType, Payments, type PdfOptions, PhoneInput, type PhoneInputProps, type PostFunction, PostTable, type PostTableActions, type PostTableChangeParams, ProductField, ProductForm, Products, ProfileCard, type ProfileCardProps, ProfileDropdown, type ProfileDropdownItem, type ProfileDropdownProps, ProfilePage, ProfileView, type ProfileViewInfoItem, type ProfileViewProps, ProfitAndLossReport, ProtectedRoute, type PutFunction, ResetPasswordPage, type Role, SaleStockAdjustment, SaleStockForm, SearchApi, SearchApiContent, SearchApiInput, SearchApiItem, type SearchApiProps, SearchApiTrigger, Select, SelectContent, SelectItem, type SelectProps, SelectTrigger, SimpleTable, type SimpleTableColumn, PosStockAdjustment as StockAdjustmentForm, StockLevel, PosStockTransfer as StockTransferForm, type StorageManager, type StoreConfig, type SummaryColumn, SummaryTable, type SummaryTableProps, Textarea, type TextareaProps, type ThemeConfig, ThemeProvider, ThemeToggle, ThemedLogin, UnProtectedRoute, type UseModalReturn, UserForm, UserProfile, UserUpdate, Users, Views, WalletAdjustmentForm, type WalletAdjustmentSchemaType, WalletAdjustments, WalletField, WalletForm, WalletReport, WalletStatements, Wallets, type WarqadConfig, type WarqadConfigContextType, WarqadProvider, type apiConfig, createAccountSchema, createBrandSchema, createCategorySchema, createPackSchema, createProductSchema, createUserSchema, type createUserSchemaType, createWalletSchema, expenseSchema, forexDubaiToChinaSchema, forexTransferSchema, generatePdf, journalSchema, linkUserSchema, type linkUserSchemaType, moneyTransferSchema, packProductItemSchema, packTypes, paymentSchema, resetPasswordSchema, type resetPasswordSchemaType, storage, updateUserEmailSchema, type updateUserEmailSchemaType, updateUserSchema, type updateUserSchemaType, useA4CategoryView, useA4StatementView, useAntdImageUpload, useApi, useApp, useAuth, useAuthStore, useLogin, useModal, useSearchApiContext, useSelectContext, useTheme, useTransaction, useWarqadConfig, verifyUserEmailSchema, type verifyUserEmailSchemaType, walletAdjustmentSchema };