warqadui 0.0.162 → 0.0.164
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 +25 -1
- package/dist/index.d.ts +25 -1
- package/dist/index.js +109748 -87446
- package/dist/index.mjs +52275 -28830
- 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,16 @@ 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
|
+
}) => {
|
|
440
|
+
finalUrl: string;
|
|
441
|
+
};
|
|
425
442
|
}
|
|
426
443
|
interface WarqadConfigContextType {
|
|
427
444
|
config: WarqadConfig & {
|
|
@@ -434,6 +451,7 @@ interface WarqadConfigContextType {
|
|
|
434
451
|
[key: string]: string;
|
|
435
452
|
};
|
|
436
453
|
};
|
|
454
|
+
socket?: Socket;
|
|
437
455
|
}
|
|
438
456
|
/**
|
|
439
457
|
* Hook to access the current Warqad configuration.
|
|
@@ -448,6 +466,10 @@ declare const useWarqadConfig: () => WarqadConfig & {
|
|
|
448
466
|
[key: string]: string;
|
|
449
467
|
};
|
|
450
468
|
};
|
|
469
|
+
/**
|
|
470
|
+
* Hook to access the current Warqad socket connection.
|
|
471
|
+
*/
|
|
472
|
+
declare const useWarqadSocket: () => Socket<_socket_io_component_emitter.DefaultEventsMap, _socket_io_component_emitter.DefaultEventsMap> | undefined;
|
|
451
473
|
interface WarqadProviderProps {
|
|
452
474
|
children: ReactNode;
|
|
453
475
|
config?: WarqadConfig;
|
|
@@ -2195,4 +2217,6 @@ declare const ProfitAndLossReport: () => react_jsx_runtime.JSX.Element;
|
|
|
2195
2217
|
|
|
2196
2218
|
declare function DateSalesReport(): react_jsx_runtime.JSX.Element;
|
|
2197
2219
|
|
|
2198
|
-
|
|
2220
|
+
declare function Messages(): react_jsx_runtime.JSX.Element;
|
|
2221
|
+
|
|
2222
|
+
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,16 @@ 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
|
+
}) => {
|
|
440
|
+
finalUrl: string;
|
|
441
|
+
};
|
|
425
442
|
}
|
|
426
443
|
interface WarqadConfigContextType {
|
|
427
444
|
config: WarqadConfig & {
|
|
@@ -434,6 +451,7 @@ interface WarqadConfigContextType {
|
|
|
434
451
|
[key: string]: string;
|
|
435
452
|
};
|
|
436
453
|
};
|
|
454
|
+
socket?: Socket;
|
|
437
455
|
}
|
|
438
456
|
/**
|
|
439
457
|
* Hook to access the current Warqad configuration.
|
|
@@ -448,6 +466,10 @@ declare const useWarqadConfig: () => WarqadConfig & {
|
|
|
448
466
|
[key: string]: string;
|
|
449
467
|
};
|
|
450
468
|
};
|
|
469
|
+
/**
|
|
470
|
+
* Hook to access the current Warqad socket connection.
|
|
471
|
+
*/
|
|
472
|
+
declare const useWarqadSocket: () => Socket<_socket_io_component_emitter.DefaultEventsMap, _socket_io_component_emitter.DefaultEventsMap> | undefined;
|
|
451
473
|
interface WarqadProviderProps {
|
|
452
474
|
children: ReactNode;
|
|
453
475
|
config?: WarqadConfig;
|
|
@@ -2195,4 +2217,6 @@ declare const ProfitAndLossReport: () => react_jsx_runtime.JSX.Element;
|
|
|
2195
2217
|
|
|
2196
2218
|
declare function DateSalesReport(): react_jsx_runtime.JSX.Element;
|
|
2197
2219
|
|
|
2198
|
-
|
|
2220
|
+
declare function Messages(): react_jsx_runtime.JSX.Element;
|
|
2221
|
+
|
|
2222
|
+
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 };
|