warqadui 0.0.163 → 0.0.165
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 +27 -1
- package/dist/index.d.ts +27 -1
- package/dist/index.js +111150 -88829
- package/dist/index.mjs +52651 -29187
- package/package.json +2 -1
package/dist/index.d.mts
CHANGED
|
@@ -3,6 +3,8 @@ import React__default, { ReactNode, HTMLAttributes } from 'react';
|
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as react_hook_form from 'react-hook-form';
|
|
5
5
|
import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
|
|
6
|
+
import * as _socket_io_component_emitter from '@socket.io/component-emitter';
|
|
7
|
+
import { Socket } from 'socket.io-client';
|
|
6
8
|
import { ColumnDef, SortingState, ColumnFiltersState, RowData } from '@tanstack/react-table';
|
|
7
9
|
import * as z from 'zod';
|
|
8
10
|
import { z as z$1 } from 'zod';
|
|
@@ -389,6 +391,10 @@ declare const Enums: {
|
|
|
389
391
|
forexTypes: readonly ["direct", "exchange", "supplier exchange"];
|
|
390
392
|
branchTypes: readonly ["shop", "store", "office", "apartment"];
|
|
391
393
|
documentTypes: readonly ["none", "id", "passport", "license"];
|
|
394
|
+
whatsappMessageTypes: readonly ["greeting", "payment", "invoice"];
|
|
395
|
+
whatsappMessageStatuses: readonly ["queued", "sent", "delivered", "read", "failed", "undelivered"];
|
|
396
|
+
webhookProviders: readonly ["twilio-whatsapp"];
|
|
397
|
+
messageTypes: readonly ["whatsapp"];
|
|
392
398
|
};
|
|
393
399
|
|
|
394
400
|
interface ThemeConfig {
|
|
@@ -415,6 +421,7 @@ type EnumsConfig = {
|
|
|
415
421
|
};
|
|
416
422
|
interface WarqadConfig {
|
|
417
423
|
api?: string;
|
|
424
|
+
socketUrl?: string;
|
|
418
425
|
apiConfig?: apiConfig;
|
|
419
426
|
theme?: ThemeConfig;
|
|
420
427
|
store?: StoreConfig;
|
|
@@ -422,6 +429,18 @@ interface WarqadConfig {
|
|
|
422
429
|
currencies?: {
|
|
423
430
|
[key: string]: string;
|
|
424
431
|
};
|
|
432
|
+
application?: string;
|
|
433
|
+
customUrlBreadcrumbs?: (params: {
|
|
434
|
+
id: string;
|
|
435
|
+
profile: string;
|
|
436
|
+
prevprofile: string;
|
|
437
|
+
typeProfile: string;
|
|
438
|
+
defaultUrl: string;
|
|
439
|
+
params?: (key?: string) => any;
|
|
440
|
+
query?: (key?: string) => any;
|
|
441
|
+
}) => {
|
|
442
|
+
finalUrl: string;
|
|
443
|
+
};
|
|
425
444
|
}
|
|
426
445
|
interface WarqadConfigContextType {
|
|
427
446
|
config: WarqadConfig & {
|
|
@@ -434,6 +453,7 @@ interface WarqadConfigContextType {
|
|
|
434
453
|
[key: string]: string;
|
|
435
454
|
};
|
|
436
455
|
};
|
|
456
|
+
socket?: Socket;
|
|
437
457
|
}
|
|
438
458
|
/**
|
|
439
459
|
* Hook to access the current Warqad configuration.
|
|
@@ -448,6 +468,10 @@ declare const useWarqadConfig: () => WarqadConfig & {
|
|
|
448
468
|
[key: string]: string;
|
|
449
469
|
};
|
|
450
470
|
};
|
|
471
|
+
/**
|
|
472
|
+
* Hook to access the current Warqad socket connection.
|
|
473
|
+
*/
|
|
474
|
+
declare const useWarqadSocket: () => Socket<_socket_io_component_emitter.DefaultEventsMap, _socket_io_component_emitter.DefaultEventsMap> | undefined;
|
|
451
475
|
interface WarqadProviderProps {
|
|
452
476
|
children: ReactNode;
|
|
453
477
|
config?: WarqadConfig;
|
|
@@ -2195,4 +2219,6 @@ declare const ProfitAndLossReport: () => react_jsx_runtime.JSX.Element;
|
|
|
2195
2219
|
|
|
2196
2220
|
declare function DateSalesReport(): react_jsx_runtime.JSX.Element;
|
|
2197
2221
|
|
|
2198
|
-
|
|
2222
|
+
declare function Messages(): react_jsx_runtime.JSX.Element;
|
|
2223
|
+
|
|
2224
|
+
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, DateSalesReport, 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, ForexExpenseForm, ForexExpenses, ForexExpensesReport, ForexTransactions, ForexTransferForm, type ForexTransferSchemaType, ForexTransfers, Guard, InfoGrid, Input, type InputProps, JournalForm, type JournalSchemaType, Journals, LinkUser, LoadingBox, LoadingSpin, type LoginSchema, type LoginTheme, Messages, 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, TodayForexTransaction, 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, useWarqadSocket, verifyUserEmailSchema, type verifyUserEmailSchemaType, walletAdjustmentSchema };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ import React__default, { ReactNode, HTMLAttributes } from 'react';
|
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as react_hook_form from 'react-hook-form';
|
|
5
5
|
import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
|
|
6
|
+
import * as _socket_io_component_emitter from '@socket.io/component-emitter';
|
|
7
|
+
import { Socket } from 'socket.io-client';
|
|
6
8
|
import { ColumnDef, SortingState, ColumnFiltersState, RowData } from '@tanstack/react-table';
|
|
7
9
|
import * as z from 'zod';
|
|
8
10
|
import { z as z$1 } from 'zod';
|
|
@@ -389,6 +391,10 @@ declare const Enums: {
|
|
|
389
391
|
forexTypes: readonly ["direct", "exchange", "supplier exchange"];
|
|
390
392
|
branchTypes: readonly ["shop", "store", "office", "apartment"];
|
|
391
393
|
documentTypes: readonly ["none", "id", "passport", "license"];
|
|
394
|
+
whatsappMessageTypes: readonly ["greeting", "payment", "invoice"];
|
|
395
|
+
whatsappMessageStatuses: readonly ["queued", "sent", "delivered", "read", "failed", "undelivered"];
|
|
396
|
+
webhookProviders: readonly ["twilio-whatsapp"];
|
|
397
|
+
messageTypes: readonly ["whatsapp"];
|
|
392
398
|
};
|
|
393
399
|
|
|
394
400
|
interface ThemeConfig {
|
|
@@ -415,6 +421,7 @@ type EnumsConfig = {
|
|
|
415
421
|
};
|
|
416
422
|
interface WarqadConfig {
|
|
417
423
|
api?: string;
|
|
424
|
+
socketUrl?: string;
|
|
418
425
|
apiConfig?: apiConfig;
|
|
419
426
|
theme?: ThemeConfig;
|
|
420
427
|
store?: StoreConfig;
|
|
@@ -422,6 +429,18 @@ interface WarqadConfig {
|
|
|
422
429
|
currencies?: {
|
|
423
430
|
[key: string]: string;
|
|
424
431
|
};
|
|
432
|
+
application?: string;
|
|
433
|
+
customUrlBreadcrumbs?: (params: {
|
|
434
|
+
id: string;
|
|
435
|
+
profile: string;
|
|
436
|
+
prevprofile: string;
|
|
437
|
+
typeProfile: string;
|
|
438
|
+
defaultUrl: string;
|
|
439
|
+
params?: (key?: string) => any;
|
|
440
|
+
query?: (key?: string) => any;
|
|
441
|
+
}) => {
|
|
442
|
+
finalUrl: string;
|
|
443
|
+
};
|
|
425
444
|
}
|
|
426
445
|
interface WarqadConfigContextType {
|
|
427
446
|
config: WarqadConfig & {
|
|
@@ -434,6 +453,7 @@ interface WarqadConfigContextType {
|
|
|
434
453
|
[key: string]: string;
|
|
435
454
|
};
|
|
436
455
|
};
|
|
456
|
+
socket?: Socket;
|
|
437
457
|
}
|
|
438
458
|
/**
|
|
439
459
|
* Hook to access the current Warqad configuration.
|
|
@@ -448,6 +468,10 @@ declare const useWarqadConfig: () => WarqadConfig & {
|
|
|
448
468
|
[key: string]: string;
|
|
449
469
|
};
|
|
450
470
|
};
|
|
471
|
+
/**
|
|
472
|
+
* Hook to access the current Warqad socket connection.
|
|
473
|
+
*/
|
|
474
|
+
declare const useWarqadSocket: () => Socket<_socket_io_component_emitter.DefaultEventsMap, _socket_io_component_emitter.DefaultEventsMap> | undefined;
|
|
451
475
|
interface WarqadProviderProps {
|
|
452
476
|
children: ReactNode;
|
|
453
477
|
config?: WarqadConfig;
|
|
@@ -2195,4 +2219,6 @@ declare const ProfitAndLossReport: () => react_jsx_runtime.JSX.Element;
|
|
|
2195
2219
|
|
|
2196
2220
|
declare function DateSalesReport(): react_jsx_runtime.JSX.Element;
|
|
2197
2221
|
|
|
2198
|
-
|
|
2222
|
+
declare function Messages(): react_jsx_runtime.JSX.Element;
|
|
2223
|
+
|
|
2224
|
+
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, DateSalesReport, 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, ForexExpenseForm, ForexExpenses, ForexExpensesReport, ForexTransactions, ForexTransferForm, type ForexTransferSchemaType, ForexTransfers, Guard, InfoGrid, Input, type InputProps, JournalForm, type JournalSchemaType, Journals, LinkUser, LoadingBox, LoadingSpin, type LoginSchema, type LoginTheme, Messages, 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, TodayForexTransaction, 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, useWarqadSocket, verifyUserEmailSchema, type verifyUserEmailSchemaType, walletAdjustmentSchema };
|