warqadui 0.0.106 → 0.0.108
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 +82 -15
- package/dist/index.d.ts +82 -15
- package/dist/index.js +19898 -1218
- package/dist/index.mjs +20086 -839
- package/dist/styles.js +15 -0
- package/dist/styles.mjs +15 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -17,7 +17,7 @@ interface ButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonElem
|
|
|
17
17
|
isLoading?: boolean;
|
|
18
18
|
icon?: React__default.ReactNode;
|
|
19
19
|
}
|
|
20
|
-
declare const Button: React__default.
|
|
20
|
+
declare const Button: React__default.ForwardRefExoticComponent<ButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
21
21
|
|
|
22
22
|
interface InfoItem {
|
|
23
23
|
label: string;
|
|
@@ -378,12 +378,13 @@ declare const Enums: {
|
|
|
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
|
-
currencies: readonly ["USD", "TZS", "KES", "RMB"];
|
|
381
|
+
currencies: readonly ["USD", "TZS", "KES", "RMB", "AED"];
|
|
382
382
|
packTypes: readonly ["pressure", "bag", "boxes"];
|
|
383
383
|
journalTypes: readonly ["journal"];
|
|
384
384
|
viaTypes: readonly ["direct", "via account"];
|
|
385
385
|
actionTypes: readonly ["credit", "debit"];
|
|
386
|
-
transactionTypes: readonly ["journal", "payment", "money transfer", "expense", "adjustment", "forex transfer"];
|
|
386
|
+
transactionTypes: readonly ["journal", "payment", "money transfer", "expense", "adjustment", "forex transfer", "stock", "forex dubai to china"];
|
|
387
|
+
stockTypes: readonly ["pack", "product", "pack to product"];
|
|
387
388
|
};
|
|
388
389
|
|
|
389
390
|
interface ThemeConfig {
|
|
@@ -410,6 +411,9 @@ interface WarqadConfig {
|
|
|
410
411
|
theme?: ThemeConfig;
|
|
411
412
|
store?: StoreConfig;
|
|
412
413
|
enums?: Partial<EnumsConfig>;
|
|
414
|
+
currencies?: {
|
|
415
|
+
[key: string]: string;
|
|
416
|
+
};
|
|
413
417
|
}
|
|
414
418
|
interface WarqadConfigContextType {
|
|
415
419
|
config: WarqadConfig & {
|
|
@@ -418,6 +422,9 @@ interface WarqadConfigContextType {
|
|
|
418
422
|
theme: Required<ThemeConfig>;
|
|
419
423
|
store: Required<StoreConfig>;
|
|
420
424
|
enums: EnumsConfig;
|
|
425
|
+
currencies: {
|
|
426
|
+
[key: string]: string;
|
|
427
|
+
};
|
|
421
428
|
};
|
|
422
429
|
}
|
|
423
430
|
/**
|
|
@@ -429,6 +436,9 @@ declare const useWarqadConfig: () => WarqadConfig & {
|
|
|
429
436
|
theme: Required<ThemeConfig>;
|
|
430
437
|
store: Required<StoreConfig>;
|
|
431
438
|
enums: EnumsConfig;
|
|
439
|
+
currencies: {
|
|
440
|
+
[key: string]: string;
|
|
441
|
+
};
|
|
432
442
|
};
|
|
433
443
|
interface WarqadProviderProps {
|
|
434
444
|
children: ReactNode;
|
|
@@ -1015,7 +1025,7 @@ declare const CategoryCard: React__default.FC<{
|
|
|
1015
1025
|
declare const Views: {
|
|
1016
1026
|
Transaction: ({ id, type, close, reverseable, }: {
|
|
1017
1027
|
id: string;
|
|
1018
|
-
type: "" | "journal" | "payment" | "money transfer" | "expense" | "adjustment" | "forex transfer" | undefined;
|
|
1028
|
+
type: "" | "journal" | "payment" | "money transfer" | "expense" | "adjustment" | "forex transfer" | "stock" | "forex dubai to china" | undefined;
|
|
1019
1029
|
close: () => void;
|
|
1020
1030
|
reverseable?: {
|
|
1021
1031
|
reload: () => void;
|
|
@@ -1291,8 +1301,9 @@ type Props<T extends FieldValues> = {
|
|
|
1291
1301
|
v?: number;
|
|
1292
1302
|
required?: boolean;
|
|
1293
1303
|
disabled?: boolean;
|
|
1304
|
+
obj?: Path<T>;
|
|
1294
1305
|
};
|
|
1295
|
-
declare function Branches<T extends FieldValues>({ name, label, placeholder, api, form, filter, showBalance, required, v, disabled, }: Props<T>): react_jsx_runtime.JSX.Element;
|
|
1306
|
+
declare function Branches<T extends FieldValues>({ name, label, placeholder, api, form, filter, showBalance, required, v, disabled, obj, }: Props<T>): react_jsx_runtime.JSX.Element;
|
|
1296
1307
|
|
|
1297
1308
|
declare const AccountFields: {
|
|
1298
1309
|
Account: typeof Account;
|
|
@@ -1353,6 +1364,7 @@ declare const useApp: () => {
|
|
|
1353
1364
|
[k: string]: string;
|
|
1354
1365
|
} | null;
|
|
1355
1366
|
getParams: (key?: string) => string | Readonly<react_router.Params<string>> | undefined;
|
|
1367
|
+
branchId: string | undefined;
|
|
1356
1368
|
};
|
|
1357
1369
|
|
|
1358
1370
|
declare const linkUserSchema: z$1.ZodObject<{
|
|
@@ -1449,19 +1461,19 @@ declare const WalletField: {
|
|
|
1449
1461
|
declare const createWalletSchema: z$1.ZodObject<{
|
|
1450
1462
|
name: z$1.ZodString;
|
|
1451
1463
|
type: z$1.ZodEnum<["bank", "cash", "mobile"]>;
|
|
1452
|
-
currency: z$1.ZodEnum<["USD", "TZS", "KES", "RMB"]>;
|
|
1464
|
+
currency: z$1.ZodEnum<["USD", "TZS", "KES", "RMB", "AED"]>;
|
|
1453
1465
|
accountNo: z$1.ZodOptional<z$1.ZodString>;
|
|
1454
1466
|
branch: z$1.ZodOptional<z$1.ZodString>;
|
|
1455
1467
|
}, "strip", z$1.ZodTypeAny, {
|
|
1456
1468
|
name: string;
|
|
1457
1469
|
type: "bank" | "cash" | "mobile";
|
|
1458
|
-
currency: "USD" | "TZS" | "KES" | "RMB";
|
|
1470
|
+
currency: "USD" | "TZS" | "KES" | "RMB" | "AED";
|
|
1459
1471
|
branch?: string | undefined;
|
|
1460
1472
|
accountNo?: string | undefined;
|
|
1461
1473
|
}, {
|
|
1462
1474
|
name: string;
|
|
1463
1475
|
type: "bank" | "cash" | "mobile";
|
|
1464
|
-
currency: "USD" | "TZS" | "KES" | "RMB";
|
|
1476
|
+
currency: "USD" | "TZS" | "KES" | "RMB" | "AED";
|
|
1465
1477
|
branch?: string | undefined;
|
|
1466
1478
|
accountNo?: string | undefined;
|
|
1467
1479
|
}>;
|
|
@@ -1607,15 +1619,15 @@ declare const packProductItemSchema: z$1.ZodObject<{
|
|
|
1607
1619
|
index: z$1.ZodNumber;
|
|
1608
1620
|
productData: z$1.ZodOptional<z$1.ZodAny>;
|
|
1609
1621
|
}, "strip", z$1.ZodTypeAny, {
|
|
1622
|
+
product: string;
|
|
1610
1623
|
index: number;
|
|
1611
1624
|
cost: number;
|
|
1612
|
-
product: string;
|
|
1613
1625
|
quantity: number;
|
|
1614
1626
|
productData?: any;
|
|
1615
1627
|
}, {
|
|
1628
|
+
product: string;
|
|
1616
1629
|
index: number;
|
|
1617
1630
|
cost: number;
|
|
1618
|
-
product: string;
|
|
1619
1631
|
quantity: number;
|
|
1620
1632
|
productData?: any;
|
|
1621
1633
|
}>;
|
|
@@ -1630,15 +1642,15 @@ declare const createPackSchema: z$1.ZodObject<{
|
|
|
1630
1642
|
index: z$1.ZodNumber;
|
|
1631
1643
|
productData: z$1.ZodOptional<z$1.ZodAny>;
|
|
1632
1644
|
}, "strip", z$1.ZodTypeAny, {
|
|
1645
|
+
product: string;
|
|
1633
1646
|
index: number;
|
|
1634
1647
|
cost: number;
|
|
1635
|
-
product: string;
|
|
1636
1648
|
quantity: number;
|
|
1637
1649
|
productData?: any;
|
|
1638
1650
|
}, {
|
|
1651
|
+
product: string;
|
|
1639
1652
|
index: number;
|
|
1640
1653
|
cost: number;
|
|
1641
|
-
product: string;
|
|
1642
1654
|
quantity: number;
|
|
1643
1655
|
productData?: any;
|
|
1644
1656
|
}>, "many">;
|
|
@@ -1650,9 +1662,9 @@ declare const createPackSchema: z$1.ZodObject<{
|
|
|
1650
1662
|
name: string;
|
|
1651
1663
|
type: "pressure" | "bag" | "boxes";
|
|
1652
1664
|
products: {
|
|
1665
|
+
product: string;
|
|
1653
1666
|
index: number;
|
|
1654
1667
|
cost: number;
|
|
1655
|
-
product: string;
|
|
1656
1668
|
quantity: number;
|
|
1657
1669
|
productData?: any;
|
|
1658
1670
|
}[];
|
|
@@ -1664,9 +1676,9 @@ declare const createPackSchema: z$1.ZodObject<{
|
|
|
1664
1676
|
name: string;
|
|
1665
1677
|
type: "pressure" | "bag" | "boxes";
|
|
1666
1678
|
products: {
|
|
1679
|
+
product: string;
|
|
1667
1680
|
index: number;
|
|
1668
1681
|
cost: number;
|
|
1669
|
-
product: string;
|
|
1670
1682
|
quantity: number;
|
|
1671
1683
|
productData?: any;
|
|
1672
1684
|
}[];
|
|
@@ -1969,4 +1981,59 @@ declare const forexTransferSchema: z$1.ZodObject<{
|
|
|
1969
1981
|
}>;
|
|
1970
1982
|
type ForexTransferSchemaType = z$1.infer<typeof forexTransferSchema>;
|
|
1971
1983
|
|
|
1972
|
-
|
|
1984
|
+
declare function ClothendStockAdjustment({ url }: {
|
|
1985
|
+
url?: string;
|
|
1986
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1987
|
+
|
|
1988
|
+
type StockType = (typeof Enums.stockTypes)[number];
|
|
1989
|
+
declare const PosStockAdjustment: ({ type }: {
|
|
1990
|
+
type: StockType;
|
|
1991
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1992
|
+
|
|
1993
|
+
declare function ForexDubaiToChina(): react_jsx_runtime.JSX.Element;
|
|
1994
|
+
|
|
1995
|
+
declare function ForexDubaiToChinaForm(): react_jsx_runtime.JSX.Element;
|
|
1996
|
+
|
|
1997
|
+
declare const forexDubaiToChinaSchema: z$1.ZodObject<{
|
|
1998
|
+
amount: z$1.ZodNumber;
|
|
1999
|
+
date: z$1.ZodEffects<z$1.ZodString, string, string>;
|
|
2000
|
+
viaAccount: z$1.ZodString;
|
|
2001
|
+
viaAccountObject: z$1.ZodOptional<z$1.ZodAny>;
|
|
2002
|
+
rmbToAedRate: z$1.ZodNumber;
|
|
2003
|
+
aedToUsdRate: z$1.ZodNumber;
|
|
2004
|
+
account: z$1.ZodString;
|
|
2005
|
+
accountObject: z$1.ZodOptional<z$1.ZodAny>;
|
|
2006
|
+
rmbToUsdRate: z$1.ZodNumber;
|
|
2007
|
+
fee: z$1.ZodNumber;
|
|
2008
|
+
note: z$1.ZodOptional<z$1.ZodString>;
|
|
2009
|
+
branch: z$1.ZodOptional<z$1.ZodString>;
|
|
2010
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
2011
|
+
account: string;
|
|
2012
|
+
date: string;
|
|
2013
|
+
amount: number;
|
|
2014
|
+
viaAccount: string;
|
|
2015
|
+
fee: number;
|
|
2016
|
+
rmbToAedRate: number;
|
|
2017
|
+
aedToUsdRate: number;
|
|
2018
|
+
rmbToUsdRate: number;
|
|
2019
|
+
note?: string | undefined;
|
|
2020
|
+
branch?: string | undefined;
|
|
2021
|
+
viaAccountObject?: any;
|
|
2022
|
+
accountObject?: any;
|
|
2023
|
+
}, {
|
|
2024
|
+
account: string;
|
|
2025
|
+
date: string;
|
|
2026
|
+
amount: number;
|
|
2027
|
+
viaAccount: string;
|
|
2028
|
+
fee: number;
|
|
2029
|
+
rmbToAedRate: number;
|
|
2030
|
+
aedToUsdRate: number;
|
|
2031
|
+
rmbToUsdRate: number;
|
|
2032
|
+
note?: string | undefined;
|
|
2033
|
+
branch?: string | undefined;
|
|
2034
|
+
viaAccountObject?: any;
|
|
2035
|
+
accountObject?: any;
|
|
2036
|
+
}>;
|
|
2037
|
+
type ForexDubaiToChinaSchemaType = z$1.infer<typeof forexDubaiToChinaSchema>;
|
|
2038
|
+
|
|
2039
|
+
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, 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, ProtectedRoute, type PutFunction, ResetPasswordPage, type Role, SearchApi, SearchApiContent, SearchApiInput, SearchApiItem, type SearchApiProps, SearchApiTrigger, Select, SelectContent, SelectItem, type SelectProps, SelectTrigger, SimpleTable, type SimpleTableColumn, PosStockAdjustment as StockAdjustmentForm, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ interface ButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonElem
|
|
|
17
17
|
isLoading?: boolean;
|
|
18
18
|
icon?: React__default.ReactNode;
|
|
19
19
|
}
|
|
20
|
-
declare const Button: React__default.
|
|
20
|
+
declare const Button: React__default.ForwardRefExoticComponent<ButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
21
21
|
|
|
22
22
|
interface InfoItem {
|
|
23
23
|
label: string;
|
|
@@ -378,12 +378,13 @@ declare const Enums: {
|
|
|
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
|
-
currencies: readonly ["USD", "TZS", "KES", "RMB"];
|
|
381
|
+
currencies: readonly ["USD", "TZS", "KES", "RMB", "AED"];
|
|
382
382
|
packTypes: readonly ["pressure", "bag", "boxes"];
|
|
383
383
|
journalTypes: readonly ["journal"];
|
|
384
384
|
viaTypes: readonly ["direct", "via account"];
|
|
385
385
|
actionTypes: readonly ["credit", "debit"];
|
|
386
|
-
transactionTypes: readonly ["journal", "payment", "money transfer", "expense", "adjustment", "forex transfer"];
|
|
386
|
+
transactionTypes: readonly ["journal", "payment", "money transfer", "expense", "adjustment", "forex transfer", "stock", "forex dubai to china"];
|
|
387
|
+
stockTypes: readonly ["pack", "product", "pack to product"];
|
|
387
388
|
};
|
|
388
389
|
|
|
389
390
|
interface ThemeConfig {
|
|
@@ -410,6 +411,9 @@ interface WarqadConfig {
|
|
|
410
411
|
theme?: ThemeConfig;
|
|
411
412
|
store?: StoreConfig;
|
|
412
413
|
enums?: Partial<EnumsConfig>;
|
|
414
|
+
currencies?: {
|
|
415
|
+
[key: string]: string;
|
|
416
|
+
};
|
|
413
417
|
}
|
|
414
418
|
interface WarqadConfigContextType {
|
|
415
419
|
config: WarqadConfig & {
|
|
@@ -418,6 +422,9 @@ interface WarqadConfigContextType {
|
|
|
418
422
|
theme: Required<ThemeConfig>;
|
|
419
423
|
store: Required<StoreConfig>;
|
|
420
424
|
enums: EnumsConfig;
|
|
425
|
+
currencies: {
|
|
426
|
+
[key: string]: string;
|
|
427
|
+
};
|
|
421
428
|
};
|
|
422
429
|
}
|
|
423
430
|
/**
|
|
@@ -429,6 +436,9 @@ declare const useWarqadConfig: () => WarqadConfig & {
|
|
|
429
436
|
theme: Required<ThemeConfig>;
|
|
430
437
|
store: Required<StoreConfig>;
|
|
431
438
|
enums: EnumsConfig;
|
|
439
|
+
currencies: {
|
|
440
|
+
[key: string]: string;
|
|
441
|
+
};
|
|
432
442
|
};
|
|
433
443
|
interface WarqadProviderProps {
|
|
434
444
|
children: ReactNode;
|
|
@@ -1015,7 +1025,7 @@ declare const CategoryCard: React__default.FC<{
|
|
|
1015
1025
|
declare const Views: {
|
|
1016
1026
|
Transaction: ({ id, type, close, reverseable, }: {
|
|
1017
1027
|
id: string;
|
|
1018
|
-
type: "" | "journal" | "payment" | "money transfer" | "expense" | "adjustment" | "forex transfer" | undefined;
|
|
1028
|
+
type: "" | "journal" | "payment" | "money transfer" | "expense" | "adjustment" | "forex transfer" | "stock" | "forex dubai to china" | undefined;
|
|
1019
1029
|
close: () => void;
|
|
1020
1030
|
reverseable?: {
|
|
1021
1031
|
reload: () => void;
|
|
@@ -1291,8 +1301,9 @@ type Props<T extends FieldValues> = {
|
|
|
1291
1301
|
v?: number;
|
|
1292
1302
|
required?: boolean;
|
|
1293
1303
|
disabled?: boolean;
|
|
1304
|
+
obj?: Path<T>;
|
|
1294
1305
|
};
|
|
1295
|
-
declare function Branches<T extends FieldValues>({ name, label, placeholder, api, form, filter, showBalance, required, v, disabled, }: Props<T>): react_jsx_runtime.JSX.Element;
|
|
1306
|
+
declare function Branches<T extends FieldValues>({ name, label, placeholder, api, form, filter, showBalance, required, v, disabled, obj, }: Props<T>): react_jsx_runtime.JSX.Element;
|
|
1296
1307
|
|
|
1297
1308
|
declare const AccountFields: {
|
|
1298
1309
|
Account: typeof Account;
|
|
@@ -1353,6 +1364,7 @@ declare const useApp: () => {
|
|
|
1353
1364
|
[k: string]: string;
|
|
1354
1365
|
} | null;
|
|
1355
1366
|
getParams: (key?: string) => string | Readonly<react_router.Params<string>> | undefined;
|
|
1367
|
+
branchId: string | undefined;
|
|
1356
1368
|
};
|
|
1357
1369
|
|
|
1358
1370
|
declare const linkUserSchema: z$1.ZodObject<{
|
|
@@ -1449,19 +1461,19 @@ declare const WalletField: {
|
|
|
1449
1461
|
declare const createWalletSchema: z$1.ZodObject<{
|
|
1450
1462
|
name: z$1.ZodString;
|
|
1451
1463
|
type: z$1.ZodEnum<["bank", "cash", "mobile"]>;
|
|
1452
|
-
currency: z$1.ZodEnum<["USD", "TZS", "KES", "RMB"]>;
|
|
1464
|
+
currency: z$1.ZodEnum<["USD", "TZS", "KES", "RMB", "AED"]>;
|
|
1453
1465
|
accountNo: z$1.ZodOptional<z$1.ZodString>;
|
|
1454
1466
|
branch: z$1.ZodOptional<z$1.ZodString>;
|
|
1455
1467
|
}, "strip", z$1.ZodTypeAny, {
|
|
1456
1468
|
name: string;
|
|
1457
1469
|
type: "bank" | "cash" | "mobile";
|
|
1458
|
-
currency: "USD" | "TZS" | "KES" | "RMB";
|
|
1470
|
+
currency: "USD" | "TZS" | "KES" | "RMB" | "AED";
|
|
1459
1471
|
branch?: string | undefined;
|
|
1460
1472
|
accountNo?: string | undefined;
|
|
1461
1473
|
}, {
|
|
1462
1474
|
name: string;
|
|
1463
1475
|
type: "bank" | "cash" | "mobile";
|
|
1464
|
-
currency: "USD" | "TZS" | "KES" | "RMB";
|
|
1476
|
+
currency: "USD" | "TZS" | "KES" | "RMB" | "AED";
|
|
1465
1477
|
branch?: string | undefined;
|
|
1466
1478
|
accountNo?: string | undefined;
|
|
1467
1479
|
}>;
|
|
@@ -1607,15 +1619,15 @@ declare const packProductItemSchema: z$1.ZodObject<{
|
|
|
1607
1619
|
index: z$1.ZodNumber;
|
|
1608
1620
|
productData: z$1.ZodOptional<z$1.ZodAny>;
|
|
1609
1621
|
}, "strip", z$1.ZodTypeAny, {
|
|
1622
|
+
product: string;
|
|
1610
1623
|
index: number;
|
|
1611
1624
|
cost: number;
|
|
1612
|
-
product: string;
|
|
1613
1625
|
quantity: number;
|
|
1614
1626
|
productData?: any;
|
|
1615
1627
|
}, {
|
|
1628
|
+
product: string;
|
|
1616
1629
|
index: number;
|
|
1617
1630
|
cost: number;
|
|
1618
|
-
product: string;
|
|
1619
1631
|
quantity: number;
|
|
1620
1632
|
productData?: any;
|
|
1621
1633
|
}>;
|
|
@@ -1630,15 +1642,15 @@ declare const createPackSchema: z$1.ZodObject<{
|
|
|
1630
1642
|
index: z$1.ZodNumber;
|
|
1631
1643
|
productData: z$1.ZodOptional<z$1.ZodAny>;
|
|
1632
1644
|
}, "strip", z$1.ZodTypeAny, {
|
|
1645
|
+
product: string;
|
|
1633
1646
|
index: number;
|
|
1634
1647
|
cost: number;
|
|
1635
|
-
product: string;
|
|
1636
1648
|
quantity: number;
|
|
1637
1649
|
productData?: any;
|
|
1638
1650
|
}, {
|
|
1651
|
+
product: string;
|
|
1639
1652
|
index: number;
|
|
1640
1653
|
cost: number;
|
|
1641
|
-
product: string;
|
|
1642
1654
|
quantity: number;
|
|
1643
1655
|
productData?: any;
|
|
1644
1656
|
}>, "many">;
|
|
@@ -1650,9 +1662,9 @@ declare const createPackSchema: z$1.ZodObject<{
|
|
|
1650
1662
|
name: string;
|
|
1651
1663
|
type: "pressure" | "bag" | "boxes";
|
|
1652
1664
|
products: {
|
|
1665
|
+
product: string;
|
|
1653
1666
|
index: number;
|
|
1654
1667
|
cost: number;
|
|
1655
|
-
product: string;
|
|
1656
1668
|
quantity: number;
|
|
1657
1669
|
productData?: any;
|
|
1658
1670
|
}[];
|
|
@@ -1664,9 +1676,9 @@ declare const createPackSchema: z$1.ZodObject<{
|
|
|
1664
1676
|
name: string;
|
|
1665
1677
|
type: "pressure" | "bag" | "boxes";
|
|
1666
1678
|
products: {
|
|
1679
|
+
product: string;
|
|
1667
1680
|
index: number;
|
|
1668
1681
|
cost: number;
|
|
1669
|
-
product: string;
|
|
1670
1682
|
quantity: number;
|
|
1671
1683
|
productData?: any;
|
|
1672
1684
|
}[];
|
|
@@ -1969,4 +1981,59 @@ declare const forexTransferSchema: z$1.ZodObject<{
|
|
|
1969
1981
|
}>;
|
|
1970
1982
|
type ForexTransferSchemaType = z$1.infer<typeof forexTransferSchema>;
|
|
1971
1983
|
|
|
1972
|
-
|
|
1984
|
+
declare function ClothendStockAdjustment({ url }: {
|
|
1985
|
+
url?: string;
|
|
1986
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1987
|
+
|
|
1988
|
+
type StockType = (typeof Enums.stockTypes)[number];
|
|
1989
|
+
declare const PosStockAdjustment: ({ type }: {
|
|
1990
|
+
type: StockType;
|
|
1991
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1992
|
+
|
|
1993
|
+
declare function ForexDubaiToChina(): react_jsx_runtime.JSX.Element;
|
|
1994
|
+
|
|
1995
|
+
declare function ForexDubaiToChinaForm(): react_jsx_runtime.JSX.Element;
|
|
1996
|
+
|
|
1997
|
+
declare const forexDubaiToChinaSchema: z$1.ZodObject<{
|
|
1998
|
+
amount: z$1.ZodNumber;
|
|
1999
|
+
date: z$1.ZodEffects<z$1.ZodString, string, string>;
|
|
2000
|
+
viaAccount: z$1.ZodString;
|
|
2001
|
+
viaAccountObject: z$1.ZodOptional<z$1.ZodAny>;
|
|
2002
|
+
rmbToAedRate: z$1.ZodNumber;
|
|
2003
|
+
aedToUsdRate: z$1.ZodNumber;
|
|
2004
|
+
account: z$1.ZodString;
|
|
2005
|
+
accountObject: z$1.ZodOptional<z$1.ZodAny>;
|
|
2006
|
+
rmbToUsdRate: z$1.ZodNumber;
|
|
2007
|
+
fee: z$1.ZodNumber;
|
|
2008
|
+
note: z$1.ZodOptional<z$1.ZodString>;
|
|
2009
|
+
branch: z$1.ZodOptional<z$1.ZodString>;
|
|
2010
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
2011
|
+
account: string;
|
|
2012
|
+
date: string;
|
|
2013
|
+
amount: number;
|
|
2014
|
+
viaAccount: string;
|
|
2015
|
+
fee: number;
|
|
2016
|
+
rmbToAedRate: number;
|
|
2017
|
+
aedToUsdRate: number;
|
|
2018
|
+
rmbToUsdRate: number;
|
|
2019
|
+
note?: string | undefined;
|
|
2020
|
+
branch?: string | undefined;
|
|
2021
|
+
viaAccountObject?: any;
|
|
2022
|
+
accountObject?: any;
|
|
2023
|
+
}, {
|
|
2024
|
+
account: string;
|
|
2025
|
+
date: string;
|
|
2026
|
+
amount: number;
|
|
2027
|
+
viaAccount: string;
|
|
2028
|
+
fee: number;
|
|
2029
|
+
rmbToAedRate: number;
|
|
2030
|
+
aedToUsdRate: number;
|
|
2031
|
+
rmbToUsdRate: number;
|
|
2032
|
+
note?: string | undefined;
|
|
2033
|
+
branch?: string | undefined;
|
|
2034
|
+
viaAccountObject?: any;
|
|
2035
|
+
accountObject?: any;
|
|
2036
|
+
}>;
|
|
2037
|
+
type ForexDubaiToChinaSchemaType = z$1.infer<typeof forexDubaiToChinaSchema>;
|
|
2038
|
+
|
|
2039
|
+
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, 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, ProtectedRoute, type PutFunction, ResetPasswordPage, type Role, SearchApi, SearchApiContent, SearchApiInput, SearchApiItem, type SearchApiProps, SearchApiTrigger, Select, SelectContent, SelectItem, type SelectProps, SelectTrigger, SimpleTable, type SimpleTableColumn, PosStockAdjustment as StockAdjustmentForm, 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 };
|