warqadui 0.0.93 → 0.0.96

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
@@ -374,12 +374,15 @@ declare const Textarea: <T extends FieldValues>(props: TextareaProps<T> & {
374
374
  declare const Enums: {
375
375
  roles: readonly ["admin", "staff"];
376
376
  sex: readonly ["male", "female"];
377
- accountTypes: readonly ["employee", "supplier", "customer", "amaanah"];
377
+ accountTypes: readonly ["employee", "supplier", "customer", "amaanah", "account"];
378
378
  verificationTypes: readonly ["email_verification", "password_reset"];
379
379
  auditActions: readonly ["create", "update", "delete", "login", "logout"];
380
380
  walletTypes: readonly ["bank", "cash", "mobile"];
381
381
  currencies: readonly ["USD", "TZS", "KES", "CNY"];
382
382
  packTypes: readonly ["pressure", "bag", "boxes"];
383
+ journalTypes: readonly ["journal"];
384
+ viaTypes: readonly ["direct", "via account"];
385
+ actionTypes: readonly ["credit", "debit"];
383
386
  };
384
387
 
385
388
  interface ThemeConfig {
@@ -1205,8 +1208,9 @@ type AccountProps<T extends FieldValues> = {
1205
1208
  v?: number;
1206
1209
  required?: boolean;
1207
1210
  disabled?: boolean;
1211
+ obj?: string;
1208
1212
  };
1209
- declare function Account<T extends FieldValues>({ name, label, placeholder, api, form, filter, v, showBalance, required, disabled, }: AccountProps<T>): react_jsx_runtime.JSX.Element;
1213
+ declare function Account<T extends FieldValues>({ name, label, placeholder, api, form, filter, v, showBalance, required, disabled, obj, }: AccountProps<T>): react_jsx_runtime.JSX.Element;
1210
1214
 
1211
1215
  type Props$2<T extends FieldValues> = {
1212
1216
  name?: Path<T>;
@@ -1219,8 +1223,9 @@ type Props$2<T extends FieldValues> = {
1219
1223
  v?: number;
1220
1224
  required?: boolean;
1221
1225
  disabled?: boolean;
1226
+ obj?: Path<T>;
1222
1227
  };
1223
- declare function Customer<T extends FieldValues>({ name, label, placeholder, api, form, filter, showBalance, required, disabled, v, }: Props$2<T>): react_jsx_runtime.JSX.Element;
1228
+ declare function Customer<T extends FieldValues>({ name, label, placeholder, api, form, filter, showBalance, required, disabled, v, obj, }: Props$2<T>): react_jsx_runtime.JSX.Element;
1224
1229
 
1225
1230
  type Props$1<T extends FieldValues> = {
1226
1231
  name?: Path<T>;
@@ -1233,8 +1238,9 @@ type Props$1<T extends FieldValues> = {
1233
1238
  v?: number;
1234
1239
  required?: boolean;
1235
1240
  disabled?: boolean;
1241
+ obj: Path<T>;
1236
1242
  };
1237
- declare function Employee<T extends FieldValues>({ name, label, placeholder, api, form, filter, showBalance, required, disabled, v, }: Props$1<T>): react_jsx_runtime.JSX.Element;
1243
+ declare function Employee<T extends FieldValues>({ name, label, placeholder, api, form, filter, showBalance, required, disabled, obj, v, }: Props$1<T>): react_jsx_runtime.JSX.Element;
1238
1244
 
1239
1245
  type Props<T extends FieldValues> = {
1240
1246
  name?: Path<T>;
@@ -1263,18 +1269,21 @@ declare const createAccountSchema: z$1.ZodObject<{
1263
1269
  phoneNumber: z$1.ZodOptional<z$1.ZodString>;
1264
1270
  sex: z$1.ZodEnum<["male", "female"]>;
1265
1271
  branch: z$1.ZodOptional<z$1.ZodString>;
1272
+ currency: z$1.ZodOptional<z$1.ZodString>;
1266
1273
  }, "strip", z$1.ZodTypeAny, {
1267
1274
  name: string;
1268
1275
  sex: "male" | "female";
1269
1276
  email?: string | undefined;
1270
1277
  phoneNumber?: string | undefined;
1271
1278
  branch?: string | undefined;
1279
+ currency?: string | undefined;
1272
1280
  }, {
1273
1281
  name: string;
1274
1282
  sex: "male" | "female";
1275
1283
  email?: string | undefined;
1276
1284
  phoneNumber?: string | undefined;
1277
1285
  branch?: string | undefined;
1286
+ currency?: string | undefined;
1278
1287
  }>;
1279
1288
  type CreateAccountSchemaType = z$1.infer<typeof createAccountSchema>;
1280
1289
 
@@ -1445,13 +1454,10 @@ declare const BrandField: {
1445
1454
 
1446
1455
  declare const createBrandSchema: z$1.ZodObject<{
1447
1456
  name: z$1.ZodString;
1448
- branch: z$1.ZodOptional<z$1.ZodString>;
1449
1457
  }, "strip", z$1.ZodTypeAny, {
1450
1458
  name: string;
1451
- branch?: string | undefined;
1452
1459
  }, {
1453
1460
  name: string;
1454
- branch?: string | undefined;
1455
1461
  }>;
1456
1462
  type CreateBrandSchemaType = z$1.infer<typeof createBrandSchema>;
1457
1463
 
@@ -1481,13 +1487,10 @@ declare const CategoryField: {
1481
1487
 
1482
1488
  declare const createCategorySchema: z$1.ZodObject<{
1483
1489
  name: z$1.ZodString;
1484
- branch: z$1.ZodOptional<z$1.ZodString>;
1485
1490
  }, "strip", z$1.ZodTypeAny, {
1486
1491
  name: string;
1487
- branch?: string | undefined;
1488
1492
  }, {
1489
1493
  name: string;
1490
- branch?: string | undefined;
1491
1494
  }>;
1492
1495
  type CreateCategorySchemaType = z$1.infer<typeof createCategorySchema>;
1493
1496
 
@@ -1522,17 +1525,14 @@ declare const createProductSchema: z$1.ZodObject<{
1522
1525
  category: z$1.ZodOptional<z$1.ZodString>;
1523
1526
  brand: z$1.ZodOptional<z$1.ZodString>;
1524
1527
  cost: z$1.ZodNumber;
1525
- branch: z$1.ZodOptional<z$1.ZodString>;
1526
1528
  }, "strip", z$1.ZodTypeAny, {
1527
1529
  name: string;
1528
1530
  cost: number;
1529
- branch?: string | undefined;
1530
1531
  category?: string | undefined;
1531
1532
  brand?: string | undefined;
1532
1533
  }, {
1533
1534
  name: string;
1534
1535
  cost: number;
1535
- branch?: string | undefined;
1536
1536
  category?: string | undefined;
1537
1537
  brand?: string | undefined;
1538
1538
  }>;
@@ -1603,7 +1603,6 @@ declare const createPackSchema: z$1.ZodObject<{
1603
1603
  quantity: number;
1604
1604
  productData?: any;
1605
1605
  }>, "many">;
1606
- branch: z$1.ZodOptional<z$1.ZodString>;
1607
1606
  tempProduct: z$1.ZodOptional<z$1.ZodString>;
1608
1607
  tempQty: z$1.ZodOptional<z$1.ZodNumber>;
1609
1608
  tempCost: z$1.ZodOptional<z$1.ZodNumber>;
@@ -1618,7 +1617,6 @@ declare const createPackSchema: z$1.ZodObject<{
1618
1617
  quantity: number;
1619
1618
  productData?: any;
1620
1619
  }[];
1621
- branch?: string | undefined;
1622
1620
  tempProduct?: string | undefined;
1623
1621
  tempQty?: number | undefined;
1624
1622
  tempCost?: number | undefined;
@@ -1633,7 +1631,6 @@ declare const createPackSchema: z$1.ZodObject<{
1633
1631
  quantity: number;
1634
1632
  productData?: any;
1635
1633
  }[];
1636
- branch?: string | undefined;
1637
1634
  tempProduct?: string | undefined;
1638
1635
  tempQty?: number | undefined;
1639
1636
  tempCost?: number | undefined;
@@ -1642,6 +1639,58 @@ declare const createPackSchema: z$1.ZodObject<{
1642
1639
  type CreatePackSchemaType = z$1.infer<typeof createPackSchema>;
1643
1640
  type PackProductItemSchemaType = z$1.infer<typeof packProductItemSchema>;
1644
1641
 
1642
+ declare function Journals({ url }: {
1643
+ url?: string;
1644
+ }): react_jsx_runtime.JSX.Element;
1645
+
1646
+ type accountType = (typeof Enums.accountTypes)[number] | "all";
1647
+ declare function JournalForm({ isFee, accountType, }: {
1648
+ isFee?: boolean;
1649
+ accountType?: accountType;
1650
+ }): react_jsx_runtime.JSX.Element;
1651
+
1652
+ declare const journalSchema: z$1.ZodObject<{
1653
+ date: z$1.ZodEffects<z$1.ZodString, string, string>;
1654
+ amount: z$1.ZodNumber;
1655
+ account: z$1.ZodString;
1656
+ description: z$1.ZodString;
1657
+ journalVia: z$1.ZodEnum<["direct", "via account"]>;
1658
+ action: z$1.ZodOptional<z$1.ZodEnum<["credit", "debit"]>>;
1659
+ viaAccount: z$1.ZodOptional<z$1.ZodString>;
1660
+ viaAccountObject: z$1.ZodOptional<z$1.ZodAny>;
1661
+ accountObject: z$1.ZodOptional<z$1.ZodAny>;
1662
+ rate: z$1.ZodOptional<z$1.ZodNumber>;
1663
+ exchangedAmount: z$1.ZodOptional<z$1.ZodNumber>;
1664
+ fee: z$1.ZodNumber;
1665
+ }, "strip", z$1.ZodTypeAny, {
1666
+ account: string;
1667
+ date: string;
1668
+ description: string;
1669
+ amount: number;
1670
+ journalVia: "direct" | "via account";
1671
+ fee: number;
1672
+ action?: "credit" | "debit" | undefined;
1673
+ viaAccount?: string | undefined;
1674
+ viaAccountObject?: any;
1675
+ accountObject?: any;
1676
+ rate?: number | undefined;
1677
+ exchangedAmount?: number | undefined;
1678
+ }, {
1679
+ account: string;
1680
+ date: string;
1681
+ description: string;
1682
+ amount: number;
1683
+ journalVia: "direct" | "via account";
1684
+ fee: number;
1685
+ action?: "credit" | "debit" | undefined;
1686
+ viaAccount?: string | undefined;
1687
+ viaAccountObject?: any;
1688
+ accountObject?: any;
1689
+ rate?: number | undefined;
1690
+ exchangedAmount?: number | undefined;
1691
+ }>;
1692
+ type JournalSchemaType = z$1.infer<typeof journalSchema>;
1693
+
1645
1694
  declare function Breadcrumbs(): react_jsx_runtime.JSX.Element;
1646
1695
 
1647
1696
  interface ErrorPageProps {
@@ -1662,4 +1711,4 @@ declare const ErrorPage: (({ title, message, statusCode, action, className, }: E
1662
1711
  400: (props: ErrorPageProps) => react_jsx_runtime.JSX.Element;
1663
1712
  };
1664
1713
 
1665
- export { AccountFields, AccountForm, 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, 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, type FetchFunction, type FetchProps, Fields, Guard, InfoGrid, Input, type InputProps, LinkUser, LoadingBox, LoadingSpin, type LoginSchema, type LoginTheme, Modal, type ModalProps, type NavItem, type NavItems, type Option, OverlaySpin, _default as PackField, PackForm, type PackProductItemSchemaType, Packs, PageA4, PageHeader, 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, ProtectedRoute, type PutFunction, ResetPasswordPage, type Role, SearchApi, SearchApiContent, SearchApiInput, SearchApiItem, type SearchApiProps, SearchApiTrigger, Select, SelectContent, SelectItem, type SelectProps, SelectTrigger, SimpleTable, type SimpleTableColumn, type StorageManager, type StoreConfig, Textarea, type TextareaProps, type ThemeConfig, ThemeProvider, ThemeToggle, ThemedLogin, UnProtectedRoute, type UseModalReturn, UserForm, UserProfile, Users, Views, WalletField, WalletForm, Wallets, type WarqadConfig, type WarqadConfigContextType, WarqadProvider, createAccountSchema, createBrandSchema, createCategorySchema, createPackSchema, createProductSchema, createUserSchema, type createUserSchemaType, createWalletSchema, generatePdf, linkUserSchema, type linkUserSchemaType, packProductItemSchema, packTypes, resetPasswordSchema, type resetPasswordSchemaType, storage, updateUserEmailSchema, type updateUserEmailSchemaType, useA4CategoryView, useA4StatementView, useAntdImageUpload, useApi, useApp, useAuth, useAuthStore, useLogin, useModal, useSearchApiContext, useSelectContext, useTheme, useTransaction, useWarqadConfig, verifyUserEmailSchema, type verifyUserEmailSchemaType };
1714
+ export { AccountFields, AccountForm, 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, 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, type FetchFunction, type FetchProps, Fields, Guard, InfoGrid, Input, type InputProps, JournalForm, type JournalSchemaType, Journals, LinkUser, LoadingBox, LoadingSpin, type LoginSchema, type LoginTheme, Modal, type ModalProps, type NavItem, type NavItems, type Option, OverlaySpin, _default as PackField, PackForm, type PackProductItemSchemaType, Packs, PageA4, PageHeader, 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, ProtectedRoute, type PutFunction, ResetPasswordPage, type Role, SearchApi, SearchApiContent, SearchApiInput, SearchApiItem, type SearchApiProps, SearchApiTrigger, Select, SelectContent, SelectItem, type SelectProps, SelectTrigger, SimpleTable, type SimpleTableColumn, type StorageManager, type StoreConfig, Textarea, type TextareaProps, type ThemeConfig, ThemeProvider, ThemeToggle, ThemedLogin, UnProtectedRoute, type UseModalReturn, UserForm, UserProfile, Users, Views, WalletField, WalletForm, Wallets, type WarqadConfig, type WarqadConfigContextType, WarqadProvider, createAccountSchema, createBrandSchema, createCategorySchema, createPackSchema, createProductSchema, createUserSchema, type createUserSchemaType, createWalletSchema, generatePdf, journalSchema, linkUserSchema, type linkUserSchemaType, packProductItemSchema, packTypes, resetPasswordSchema, type resetPasswordSchemaType, storage, updateUserEmailSchema, type updateUserEmailSchemaType, useA4CategoryView, useA4StatementView, useAntdImageUpload, useApi, useApp, useAuth, useAuthStore, useLogin, useModal, useSearchApiContext, useSelectContext, useTheme, useTransaction, useWarqadConfig, verifyUserEmailSchema, type verifyUserEmailSchemaType };
package/dist/index.d.ts CHANGED
@@ -374,12 +374,15 @@ declare const Textarea: <T extends FieldValues>(props: TextareaProps<T> & {
374
374
  declare const Enums: {
375
375
  roles: readonly ["admin", "staff"];
376
376
  sex: readonly ["male", "female"];
377
- accountTypes: readonly ["employee", "supplier", "customer", "amaanah"];
377
+ accountTypes: readonly ["employee", "supplier", "customer", "amaanah", "account"];
378
378
  verificationTypes: readonly ["email_verification", "password_reset"];
379
379
  auditActions: readonly ["create", "update", "delete", "login", "logout"];
380
380
  walletTypes: readonly ["bank", "cash", "mobile"];
381
381
  currencies: readonly ["USD", "TZS", "KES", "CNY"];
382
382
  packTypes: readonly ["pressure", "bag", "boxes"];
383
+ journalTypes: readonly ["journal"];
384
+ viaTypes: readonly ["direct", "via account"];
385
+ actionTypes: readonly ["credit", "debit"];
383
386
  };
384
387
 
385
388
  interface ThemeConfig {
@@ -1205,8 +1208,9 @@ type AccountProps<T extends FieldValues> = {
1205
1208
  v?: number;
1206
1209
  required?: boolean;
1207
1210
  disabled?: boolean;
1211
+ obj?: string;
1208
1212
  };
1209
- declare function Account<T extends FieldValues>({ name, label, placeholder, api, form, filter, v, showBalance, required, disabled, }: AccountProps<T>): react_jsx_runtime.JSX.Element;
1213
+ declare function Account<T extends FieldValues>({ name, label, placeholder, api, form, filter, v, showBalance, required, disabled, obj, }: AccountProps<T>): react_jsx_runtime.JSX.Element;
1210
1214
 
1211
1215
  type Props$2<T extends FieldValues> = {
1212
1216
  name?: Path<T>;
@@ -1219,8 +1223,9 @@ type Props$2<T extends FieldValues> = {
1219
1223
  v?: number;
1220
1224
  required?: boolean;
1221
1225
  disabled?: boolean;
1226
+ obj?: Path<T>;
1222
1227
  };
1223
- declare function Customer<T extends FieldValues>({ name, label, placeholder, api, form, filter, showBalance, required, disabled, v, }: Props$2<T>): react_jsx_runtime.JSX.Element;
1228
+ declare function Customer<T extends FieldValues>({ name, label, placeholder, api, form, filter, showBalance, required, disabled, v, obj, }: Props$2<T>): react_jsx_runtime.JSX.Element;
1224
1229
 
1225
1230
  type Props$1<T extends FieldValues> = {
1226
1231
  name?: Path<T>;
@@ -1233,8 +1238,9 @@ type Props$1<T extends FieldValues> = {
1233
1238
  v?: number;
1234
1239
  required?: boolean;
1235
1240
  disabled?: boolean;
1241
+ obj: Path<T>;
1236
1242
  };
1237
- declare function Employee<T extends FieldValues>({ name, label, placeholder, api, form, filter, showBalance, required, disabled, v, }: Props$1<T>): react_jsx_runtime.JSX.Element;
1243
+ declare function Employee<T extends FieldValues>({ name, label, placeholder, api, form, filter, showBalance, required, disabled, obj, v, }: Props$1<T>): react_jsx_runtime.JSX.Element;
1238
1244
 
1239
1245
  type Props<T extends FieldValues> = {
1240
1246
  name?: Path<T>;
@@ -1263,18 +1269,21 @@ declare const createAccountSchema: z$1.ZodObject<{
1263
1269
  phoneNumber: z$1.ZodOptional<z$1.ZodString>;
1264
1270
  sex: z$1.ZodEnum<["male", "female"]>;
1265
1271
  branch: z$1.ZodOptional<z$1.ZodString>;
1272
+ currency: z$1.ZodOptional<z$1.ZodString>;
1266
1273
  }, "strip", z$1.ZodTypeAny, {
1267
1274
  name: string;
1268
1275
  sex: "male" | "female";
1269
1276
  email?: string | undefined;
1270
1277
  phoneNumber?: string | undefined;
1271
1278
  branch?: string | undefined;
1279
+ currency?: string | undefined;
1272
1280
  }, {
1273
1281
  name: string;
1274
1282
  sex: "male" | "female";
1275
1283
  email?: string | undefined;
1276
1284
  phoneNumber?: string | undefined;
1277
1285
  branch?: string | undefined;
1286
+ currency?: string | undefined;
1278
1287
  }>;
1279
1288
  type CreateAccountSchemaType = z$1.infer<typeof createAccountSchema>;
1280
1289
 
@@ -1445,13 +1454,10 @@ declare const BrandField: {
1445
1454
 
1446
1455
  declare const createBrandSchema: z$1.ZodObject<{
1447
1456
  name: z$1.ZodString;
1448
- branch: z$1.ZodOptional<z$1.ZodString>;
1449
1457
  }, "strip", z$1.ZodTypeAny, {
1450
1458
  name: string;
1451
- branch?: string | undefined;
1452
1459
  }, {
1453
1460
  name: string;
1454
- branch?: string | undefined;
1455
1461
  }>;
1456
1462
  type CreateBrandSchemaType = z$1.infer<typeof createBrandSchema>;
1457
1463
 
@@ -1481,13 +1487,10 @@ declare const CategoryField: {
1481
1487
 
1482
1488
  declare const createCategorySchema: z$1.ZodObject<{
1483
1489
  name: z$1.ZodString;
1484
- branch: z$1.ZodOptional<z$1.ZodString>;
1485
1490
  }, "strip", z$1.ZodTypeAny, {
1486
1491
  name: string;
1487
- branch?: string | undefined;
1488
1492
  }, {
1489
1493
  name: string;
1490
- branch?: string | undefined;
1491
1494
  }>;
1492
1495
  type CreateCategorySchemaType = z$1.infer<typeof createCategorySchema>;
1493
1496
 
@@ -1522,17 +1525,14 @@ declare const createProductSchema: z$1.ZodObject<{
1522
1525
  category: z$1.ZodOptional<z$1.ZodString>;
1523
1526
  brand: z$1.ZodOptional<z$1.ZodString>;
1524
1527
  cost: z$1.ZodNumber;
1525
- branch: z$1.ZodOptional<z$1.ZodString>;
1526
1528
  }, "strip", z$1.ZodTypeAny, {
1527
1529
  name: string;
1528
1530
  cost: number;
1529
- branch?: string | undefined;
1530
1531
  category?: string | undefined;
1531
1532
  brand?: string | undefined;
1532
1533
  }, {
1533
1534
  name: string;
1534
1535
  cost: number;
1535
- branch?: string | undefined;
1536
1536
  category?: string | undefined;
1537
1537
  brand?: string | undefined;
1538
1538
  }>;
@@ -1603,7 +1603,6 @@ declare const createPackSchema: z$1.ZodObject<{
1603
1603
  quantity: number;
1604
1604
  productData?: any;
1605
1605
  }>, "many">;
1606
- branch: z$1.ZodOptional<z$1.ZodString>;
1607
1606
  tempProduct: z$1.ZodOptional<z$1.ZodString>;
1608
1607
  tempQty: z$1.ZodOptional<z$1.ZodNumber>;
1609
1608
  tempCost: z$1.ZodOptional<z$1.ZodNumber>;
@@ -1618,7 +1617,6 @@ declare const createPackSchema: z$1.ZodObject<{
1618
1617
  quantity: number;
1619
1618
  productData?: any;
1620
1619
  }[];
1621
- branch?: string | undefined;
1622
1620
  tempProduct?: string | undefined;
1623
1621
  tempQty?: number | undefined;
1624
1622
  tempCost?: number | undefined;
@@ -1633,7 +1631,6 @@ declare const createPackSchema: z$1.ZodObject<{
1633
1631
  quantity: number;
1634
1632
  productData?: any;
1635
1633
  }[];
1636
- branch?: string | undefined;
1637
1634
  tempProduct?: string | undefined;
1638
1635
  tempQty?: number | undefined;
1639
1636
  tempCost?: number | undefined;
@@ -1642,6 +1639,58 @@ declare const createPackSchema: z$1.ZodObject<{
1642
1639
  type CreatePackSchemaType = z$1.infer<typeof createPackSchema>;
1643
1640
  type PackProductItemSchemaType = z$1.infer<typeof packProductItemSchema>;
1644
1641
 
1642
+ declare function Journals({ url }: {
1643
+ url?: string;
1644
+ }): react_jsx_runtime.JSX.Element;
1645
+
1646
+ type accountType = (typeof Enums.accountTypes)[number] | "all";
1647
+ declare function JournalForm({ isFee, accountType, }: {
1648
+ isFee?: boolean;
1649
+ accountType?: accountType;
1650
+ }): react_jsx_runtime.JSX.Element;
1651
+
1652
+ declare const journalSchema: z$1.ZodObject<{
1653
+ date: z$1.ZodEffects<z$1.ZodString, string, string>;
1654
+ amount: z$1.ZodNumber;
1655
+ account: z$1.ZodString;
1656
+ description: z$1.ZodString;
1657
+ journalVia: z$1.ZodEnum<["direct", "via account"]>;
1658
+ action: z$1.ZodOptional<z$1.ZodEnum<["credit", "debit"]>>;
1659
+ viaAccount: z$1.ZodOptional<z$1.ZodString>;
1660
+ viaAccountObject: z$1.ZodOptional<z$1.ZodAny>;
1661
+ accountObject: z$1.ZodOptional<z$1.ZodAny>;
1662
+ rate: z$1.ZodOptional<z$1.ZodNumber>;
1663
+ exchangedAmount: z$1.ZodOptional<z$1.ZodNumber>;
1664
+ fee: z$1.ZodNumber;
1665
+ }, "strip", z$1.ZodTypeAny, {
1666
+ account: string;
1667
+ date: string;
1668
+ description: string;
1669
+ amount: number;
1670
+ journalVia: "direct" | "via account";
1671
+ fee: number;
1672
+ action?: "credit" | "debit" | undefined;
1673
+ viaAccount?: string | undefined;
1674
+ viaAccountObject?: any;
1675
+ accountObject?: any;
1676
+ rate?: number | undefined;
1677
+ exchangedAmount?: number | undefined;
1678
+ }, {
1679
+ account: string;
1680
+ date: string;
1681
+ description: string;
1682
+ amount: number;
1683
+ journalVia: "direct" | "via account";
1684
+ fee: number;
1685
+ action?: "credit" | "debit" | undefined;
1686
+ viaAccount?: string | undefined;
1687
+ viaAccountObject?: any;
1688
+ accountObject?: any;
1689
+ rate?: number | undefined;
1690
+ exchangedAmount?: number | undefined;
1691
+ }>;
1692
+ type JournalSchemaType = z$1.infer<typeof journalSchema>;
1693
+
1645
1694
  declare function Breadcrumbs(): react_jsx_runtime.JSX.Element;
1646
1695
 
1647
1696
  interface ErrorPageProps {
@@ -1662,4 +1711,4 @@ declare const ErrorPage: (({ title, message, statusCode, action, className, }: E
1662
1711
  400: (props: ErrorPageProps) => react_jsx_runtime.JSX.Element;
1663
1712
  };
1664
1713
 
1665
- export { AccountFields, AccountForm, 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, 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, type FetchFunction, type FetchProps, Fields, Guard, InfoGrid, Input, type InputProps, LinkUser, LoadingBox, LoadingSpin, type LoginSchema, type LoginTheme, Modal, type ModalProps, type NavItem, type NavItems, type Option, OverlaySpin, _default as PackField, PackForm, type PackProductItemSchemaType, Packs, PageA4, PageHeader, 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, ProtectedRoute, type PutFunction, ResetPasswordPage, type Role, SearchApi, SearchApiContent, SearchApiInput, SearchApiItem, type SearchApiProps, SearchApiTrigger, Select, SelectContent, SelectItem, type SelectProps, SelectTrigger, SimpleTable, type SimpleTableColumn, type StorageManager, type StoreConfig, Textarea, type TextareaProps, type ThemeConfig, ThemeProvider, ThemeToggle, ThemedLogin, UnProtectedRoute, type UseModalReturn, UserForm, UserProfile, Users, Views, WalletField, WalletForm, Wallets, type WarqadConfig, type WarqadConfigContextType, WarqadProvider, createAccountSchema, createBrandSchema, createCategorySchema, createPackSchema, createProductSchema, createUserSchema, type createUserSchemaType, createWalletSchema, generatePdf, linkUserSchema, type linkUserSchemaType, packProductItemSchema, packTypes, resetPasswordSchema, type resetPasswordSchemaType, storage, updateUserEmailSchema, type updateUserEmailSchemaType, useA4CategoryView, useA4StatementView, useAntdImageUpload, useApi, useApp, useAuth, useAuthStore, useLogin, useModal, useSearchApiContext, useSelectContext, useTheme, useTransaction, useWarqadConfig, verifyUserEmailSchema, type verifyUserEmailSchemaType };
1714
+ export { AccountFields, AccountForm, 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, 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, type FetchFunction, type FetchProps, Fields, Guard, InfoGrid, Input, type InputProps, JournalForm, type JournalSchemaType, Journals, LinkUser, LoadingBox, LoadingSpin, type LoginSchema, type LoginTheme, Modal, type ModalProps, type NavItem, type NavItems, type Option, OverlaySpin, _default as PackField, PackForm, type PackProductItemSchemaType, Packs, PageA4, PageHeader, 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, ProtectedRoute, type PutFunction, ResetPasswordPage, type Role, SearchApi, SearchApiContent, SearchApiInput, SearchApiItem, type SearchApiProps, SearchApiTrigger, Select, SelectContent, SelectItem, type SelectProps, SelectTrigger, SimpleTable, type SimpleTableColumn, type StorageManager, type StoreConfig, Textarea, type TextareaProps, type ThemeConfig, ThemeProvider, ThemeToggle, ThemedLogin, UnProtectedRoute, type UseModalReturn, UserForm, UserProfile, Users, Views, WalletField, WalletForm, Wallets, type WarqadConfig, type WarqadConfigContextType, WarqadProvider, createAccountSchema, createBrandSchema, createCategorySchema, createPackSchema, createProductSchema, createUserSchema, type createUserSchemaType, createWalletSchema, generatePdf, journalSchema, linkUserSchema, type linkUserSchemaType, packProductItemSchema, packTypes, resetPasswordSchema, type resetPasswordSchemaType, storage, updateUserEmailSchema, type updateUserEmailSchemaType, useA4CategoryView, useA4StatementView, useAntdImageUpload, useApi, useApp, useAuth, useAuthStore, useLogin, useModal, useSearchApiContext, useSelectContext, useTheme, useTransaction, useWarqadConfig, verifyUserEmailSchema, type verifyUserEmailSchemaType };