erp-pos-ecommerce-shared 0.0.9 → 0.0.10

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.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  import { ElementType } from 'react';
2
2
  import { AxiosInstance } from 'axios';
3
+ import * as _tanstack_react_query from '@tanstack/react-query';
4
+ import { UseMutationOptions, UseQueryOptions } from '@tanstack/react-query';
3
5
 
4
6
  interface ICategoryResponse {
5
7
  total: number;
@@ -1669,12 +1671,12 @@ declare const createExchangeRate: ({ exchangeRate }: {
1669
1671
  exchangeRate: IExchange;
1670
1672
  }) => Promise<IExchange>;
1671
1673
 
1672
- interface GenderResponse {
1674
+ interface GenderResponse$1 {
1673
1675
  data: IGender[];
1674
1676
  }
1675
- declare const getAllGenders: () => Promise<GenderResponse>;
1677
+ declare const getAllGenders: () => Promise<GenderResponse$1>;
1676
1678
 
1677
- interface HealthCheckResponse {
1679
+ interface HealthCheckResponse$1 {
1678
1680
  status: string;
1679
1681
  timestamp: string;
1680
1682
  services: {
@@ -1689,7 +1691,7 @@ interface HealthCheckResponse {
1689
1691
  };
1690
1692
  }
1691
1693
  declare const healthService: {
1692
- check(): Promise<HealthCheckResponse>;
1694
+ check(): Promise<HealthCheckResponse$1>;
1693
1695
  };
1694
1696
 
1695
1697
  interface LocationQuery {
@@ -2077,7 +2079,7 @@ interface Response {
2077
2079
  message: string;
2078
2080
  data: unknown;
2079
2081
  }
2080
- interface CloseShiftData {
2082
+ interface CloseShiftData$1 {
2081
2083
  sellerID: number;
2082
2084
  date: string;
2083
2085
  paymentMethods: {
@@ -2092,7 +2094,7 @@ interface CloseShiftData {
2092
2094
  }[];
2093
2095
  };
2094
2096
  }
2095
- declare const closeShift: (data: CloseShiftData) => Promise<Response>;
2097
+ declare const closeShift: (data: CloseShiftData$1) => Promise<Response>;
2096
2098
  declare const makeNewCashMovement: ({ userID, amount, comment, isWithdrawal }: {
2097
2099
  userID: number | undefined;
2098
2100
  amount: number;
@@ -2181,4 +2183,1139 @@ declare const restoreWarehouse: ({ warehouseId }: {
2181
2183
  warehouseId: number;
2182
2184
  }) => Promise<void>;
2183
2185
 
2184
- export { type AgentResponse, type BankTerminalQuery, type BankTerminalResponse, type BatchData, ButtonTypes, type CalculatePriceRequest, type ChangeProductRequest, type ChangeProductResponse, ChartType, ComparisonBy, type DateRange, type IApiConfig as ErpApiConfig, FieldTypes, type FileType, type FilterType, type GetReturnsByOrderIdResponse, type IAgent, type IAttribute, type IAttributeResponse, type IAttributeValue, type IBankTerminal, type IBankTerminalForm, type IBankTerminalOption, type IBankTerminalResponse, type IBaseField, type IBatch, type IBatchResponse, type IButton, type ICategory, type ICategoryResponse, type IClient, type IClientDataForTable, type IClientRequest, type IClientResponse, type IClientResponseById, type IDateField, type IEmailField, type IExchange, type IExchangeResponse, type IField, type IFileField, type IGender, type IHiddenField, type ILocation, type ILocationResponse, type IMaterial, type IMeta, type IModule, type IMovement, type IMovementResponse, type IMultiSelectField, type INumberField, type IOptions, type IOrder, type IOrderResponse, type IPasswordField, type IPayment, type IPaymentMethod, type IPaymentMethodAmountExpected, type IPermissionRole, type IPricePerGramHistory, type IPriceType, type IPriceTypeResponse, type IProduct, type IProductDetails, type IProductDetailsResponse, type IProductResponse, type IProductVariantRequest, type IPromotion, type IPromotionResponse, type IPromotionType, type IProvider, type IProviderForSelect, type IProviderRequest, type IProviderResponse, type IReportComparisonByTimeFrame, type IReportInventory, type IReportX, type IReportZ, type IRequest, type IReview, type IRole, type ISelect, type ISelectField, type ISidebarGroup, type ISidebarLink, type ISidebarSubLink, type IStock, type IStockByWarehouseReport, type IStockMovement, type IStockMovementResponse, type ISwitchField, type ITag, type ITagField, type ITax, type ITaxResponse, type ITextField, type IUpdatePermission, type IUser, type IUserForm, type IWareHouse, type IWareHouseResponse, type IWareHouseSelect, type LocationResponse, type LoginResponse, type MaterialResponse, type MaterialSummary, type MovementResponse, type NavLinks, type PaymentOptions, type PaymentType, type Period, Permission, type PermissionRole, type PriceCalculationResponse, type PricePerGramForm, type PricePerGramResponse, type PrintProductTagResponse, type PrintQRResponse, type ProdStats, type ProdStock, type ProductInfo, type ProductOptions, PromotionTypeEnum, type QRBaseUrlResponse, type ReportData, type ReportDataProduct, type Response, type SchedulePriceRequest, type StateResponse, type TagData, type TblCategories, type TblMaterials, type TblModules, type TblMoneyTransactionTypes, type TblMoneyTransactions, type TblOrderDetail, type TblOrderDetailsMoneyTransactions, type TblOrderStatus, type TblPermissions, type TblPriceTypes, type TblProducts, type TblProductsImage, type TblProductsTag, type TblPromotionTypes, type TblPromotionsTargetProductIDTotblProduct, type TblProvidersTblProvidersUserIDTotblUser, type TblReturn, type TblReturnDetail, type TblRoles, type TblRolesTblUsersRoleIDTotblRoles, type TblTags, type TblUsersTblProvidersUserIDTotblUsers, type TblUsersTblTotblUsers, type TourActions, type TourConfig, type TourState, type TourStep, type TourStepSide, type UpdateBatchData, type UpdatePriceRequest, type UserResponse, type WarehouseResponse, type WeightBasedSale, api, changeOrderProduct, checkPendingReportZ, closeShift, configureApi, createAttribute, createAttributeValue, createAttributesForCategory, createAttributesValuesBatch, createBankTerminal, createBatch, createBatchAndUpdateOtherBatches, createCategory, createClient, createExchangeRate, createLocation, createMaterial, createMovement, createPriceType, createProduct, createProductVariant, createPromotion, createProvider, createReturn, createRole, createUser, createWareHouse, deleteAttribute, deleteBankTerminal, deleteCategory, deleteClient, deleteImageFromProduct, deleteLocation, deleteMaterial, deletePriceType, deleteProduct, deleteProductVariant, deleteProvider, deleteRole, deleteUser, deleteWarehouse, getAllAgents, getAllBankTerminals, getAllCategories, getAllClients, getAllGenders, getAllLocations, getAllMaterials, getAllModules, getAllPermissions, getAllPriceTypes, getAllProviders, getAllStates, getAllTags, getAttributeById, getAttributeValues, getAttributes, getAttributesByCategoryID, getAttributesByProductID, getAttributesForSelect, getBankTerminalById, getBankTerminals, getBankTerminalsForSelect, getBatches, getBatchesForSelect, getCategories, getCategoriesForSelect, getCategoryById, getClientById, getClientsForSelect, getExchangeRate, getExchangeRates, getLocationById, getLocations, getLocationsForSelect, getMatchedBatches, getMaterialById, getMaterials, getMaterialsForSelect, getMovements, getOrderById, getOrders, getOrdersStatusForSelect, getPaymentMethods, getPaymentMethodsWithAmountExpected, getPaymentTypes, getPermissionRoleByRoleID, getPriceTypeById, getPriceTypesForSelect, getProductById, getProductVariantById, getProductVariants, getProductVariantsForSelect, getProducts, getProductsByCategory, getProductsForSelect, getProductsTable, getPromotionById, getPromotions, getPromotionsTypeForSelect, getProviderById, getProvidersForSelect, getQRBaseUrl, getReportByInventory, getReportComparisonByTimeFrame, getReportX, getReportZ, getReturnsByOrderId, getRoleByID, getRoles, getSellersOfDayForSelect, getSellersWithShift, getStockByWarehouseReport, getTaxesForSelect, getUserById, getUsers, getWarehouseById, getWarehouses, getWarehousesForSelect, healthService, isAValidDiscountCode, login, makeNewCashMovement, pricePerGramService, printProductTag, printQR, printReportX, printReportZ, restoreBankTerminal, restoreCategory, restoreClient, restoreLocation, restoreProduct, restoreProductVariant, restoreProvider, restoreUser, restoreWarehouse, sendCreditPaymentData, sendPaymentData, setNewShift, undeleteAttribute, undeleteMaterial, undeletePriceType, updateAttribute, updateAttributesForCategory, updateBankTerminal, updateBatch, updateCategory, updateClient, updateLocation, updateMaterial, updatePermission, updatePriceType, updateProduct, updateProductVariant, updatePromotion, updateProvider, updateRole, updateUser, updateWarehouse };
2186
+ declare const useLogin: (options?: UseMutationOptions<LoginResponse, Error, {
2187
+ email: string;
2188
+ password: string;
2189
+ }>) => _tanstack_react_query.UseMutationResult<LoginResponse, Error, {
2190
+ email: string;
2191
+ password: string;
2192
+ }, unknown>;
2193
+
2194
+ declare const attributeKeys: {
2195
+ readonly all: readonly ["attributes"];
2196
+ readonly lists: () => readonly ["attributes", "list"];
2197
+ readonly list: (filters: {
2198
+ skip: number;
2199
+ limit: number;
2200
+ query: string;
2201
+ }) => readonly ["attributes", "list", {
2202
+ readonly filters: {
2203
+ skip: number;
2204
+ limit: number;
2205
+ query: string;
2206
+ };
2207
+ }];
2208
+ readonly details: () => readonly ["attributes", "detail"];
2209
+ readonly detail: (id: string) => readonly ["attributes", "detail", string];
2210
+ readonly forSelect: () => readonly ["attributes", "select"];
2211
+ readonly byProduct: (productId: string) => readonly ["attributes", "product", string];
2212
+ readonly byCategory: (categoryId: string) => readonly ["attributes", "category", string];
2213
+ readonly values: (attributeId: string) => readonly ["attributes", "values", string];
2214
+ };
2215
+ declare const useAttributes: (params: {
2216
+ skip: number;
2217
+ limit: number;
2218
+ query: string;
2219
+ }, options?: Omit<UseQueryOptions<IAttributeResponse>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IAttributeResponse, Error>;
2220
+ declare const useAttributesForSelect: (options?: Omit<UseQueryOptions<IAttribute[]>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IAttribute[], Error>;
2221
+ declare const useAttribute: (attributeId: string | undefined, options?: Omit<UseQueryOptions<IAttribute>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IAttribute, Error>;
2222
+ declare const useAttributesByProductID: (productId: string | undefined, options?: Omit<UseQueryOptions<IAttribute[]>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IAttribute[], Error>;
2223
+ declare const useAttributesByCategoryID: (categoryId: string | undefined, options?: Omit<UseQueryOptions<IAttribute[]>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IAttribute[], Error>;
2224
+ declare const useAttributeValues: (attributeId: string | undefined, options?: Omit<UseQueryOptions<IAttributeValue[]>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IAttributeValue[], Error>;
2225
+ declare const useCreateAttribute: (options?: UseMutationOptions<IAttribute, Error, {
2226
+ attribute: {
2227
+ name: string;
2228
+ values: string[];
2229
+ productId: number;
2230
+ };
2231
+ }>) => _tanstack_react_query.UseMutationResult<IAttribute, Error, {
2232
+ attribute: {
2233
+ name: string;
2234
+ values: string[];
2235
+ productId: number;
2236
+ };
2237
+ }, unknown>;
2238
+ declare const useCreateAttributesValuesBatch: (options?: UseMutationOptions<IAttributeValue[], Error, {
2239
+ productId: number;
2240
+ attributeValues: {
2241
+ attribute: string;
2242
+ values: string[];
2243
+ }[];
2244
+ }>) => _tanstack_react_query.UseMutationResult<IAttributeValue[], Error, {
2245
+ productId: number;
2246
+ attributeValues: {
2247
+ attribute: string;
2248
+ values: string[];
2249
+ }[];
2250
+ }, unknown>;
2251
+ declare const useCreateAttributesForCategory: (options?: UseMutationOptions<IAttribute, Error, {
2252
+ attributes: {
2253
+ categoryId: string;
2254
+ attributes: {
2255
+ name: string;
2256
+ values: string[];
2257
+ pricePerGram?: number | null;
2258
+ }[];
2259
+ };
2260
+ }>) => _tanstack_react_query.UseMutationResult<IAttribute, Error, {
2261
+ attributes: {
2262
+ categoryId: string;
2263
+ attributes: {
2264
+ name: string;
2265
+ values: string[];
2266
+ pricePerGram?: number | null;
2267
+ }[];
2268
+ };
2269
+ }, unknown>;
2270
+ declare const useCreateAttributeValue: (options?: UseMutationOptions<IAttributeValue, Error, {
2271
+ attributeId: number;
2272
+ value: string;
2273
+ }>) => _tanstack_react_query.UseMutationResult<IAttributeValue, Error, {
2274
+ attributeId: number;
2275
+ value: string;
2276
+ }, unknown>;
2277
+ declare const useUpdateAttribute: (options?: UseMutationOptions<IAttribute, Error, {
2278
+ attributeId: string;
2279
+ attribute: IAttribute;
2280
+ }>) => _tanstack_react_query.UseMutationResult<IAttribute, Error, {
2281
+ attributeId: string;
2282
+ attribute: IAttribute;
2283
+ }, unknown>;
2284
+ declare const useUpdateAttributesForCategory: (options?: UseMutationOptions<IAttribute, Error, {
2285
+ categoryId: string;
2286
+ attributes: {
2287
+ attributes: string[];
2288
+ };
2289
+ }>) => _tanstack_react_query.UseMutationResult<IAttribute, Error, {
2290
+ categoryId: string;
2291
+ attributes: {
2292
+ attributes: string[];
2293
+ };
2294
+ }, unknown>;
2295
+ declare const useDeleteAttribute: (options?: UseMutationOptions<IAttribute, Error, {
2296
+ attributeId: string;
2297
+ }>) => _tanstack_react_query.UseMutationResult<IAttribute, Error, {
2298
+ attributeId: string;
2299
+ }, unknown>;
2300
+ declare const useUndeleteAttribute: (options?: UseMutationOptions<IAttribute, Error, {
2301
+ attributeId: string;
2302
+ }>) => _tanstack_react_query.UseMutationResult<IAttribute, Error, {
2303
+ attributeId: string;
2304
+ }, unknown>;
2305
+
2306
+ declare const bankTerminalKeys: {
2307
+ readonly all: readonly ["bankTerminals"];
2308
+ readonly lists: () => readonly ["bankTerminals", "list"];
2309
+ readonly list: (filters: {
2310
+ skip?: number;
2311
+ limit?: number;
2312
+ query?: string | null;
2313
+ }) => readonly ["bankTerminals", "list", {
2314
+ readonly filters: {
2315
+ skip?: number;
2316
+ limit?: number;
2317
+ query?: string | null;
2318
+ };
2319
+ }];
2320
+ readonly details: () => readonly ["bankTerminals", "detail"];
2321
+ readonly detail: (id: number) => readonly ["bankTerminals", "detail", number];
2322
+ readonly forSelect: () => readonly ["bankTerminals", "select"];
2323
+ readonly allList: () => readonly ["bankTerminals", "all"];
2324
+ };
2325
+ interface UseBankTerminalsParams {
2326
+ skip?: number;
2327
+ limit?: number;
2328
+ query?: string | null;
2329
+ }
2330
+ declare const useBankTerminals: (params?: UseBankTerminalsParams, options?: Omit<UseQueryOptions<IBankTerminalResponse>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IBankTerminalResponse, Error>;
2331
+ declare const useBankTerminal: (terminalId: number | undefined, options?: Omit<UseQueryOptions<IBankTerminal>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IBankTerminal, Error>;
2332
+ declare const useBankTerminalsForSelect: (options?: Omit<UseQueryOptions<BankTerminalResponse[]>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<BankTerminalResponse[], Error>;
2333
+ declare const useAllBankTerminals: (options?: Omit<UseQueryOptions<BankTerminalResponse[]>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<BankTerminalResponse[], Error>;
2334
+ declare const useCreateBankTerminal: (options?: UseMutationOptions<IBankTerminal, Error, {
2335
+ terminal: IBankTerminalForm;
2336
+ }>) => _tanstack_react_query.UseMutationResult<IBankTerminal, Error, {
2337
+ terminal: IBankTerminalForm;
2338
+ }, unknown>;
2339
+ declare const useUpdateBankTerminal: (options?: UseMutationOptions<IBankTerminal, Error, {
2340
+ terminalId: number;
2341
+ terminal: IBankTerminalForm;
2342
+ }>) => _tanstack_react_query.UseMutationResult<IBankTerminal, Error, {
2343
+ terminalId: number;
2344
+ terminal: IBankTerminalForm;
2345
+ }, unknown>;
2346
+ declare const useDeleteBankTerminal: (options?: UseMutationOptions<void, Error, {
2347
+ terminalId: number;
2348
+ }>) => _tanstack_react_query.UseMutationResult<void, Error, {
2349
+ terminalId: number;
2350
+ }, unknown>;
2351
+ declare const useRestoreBankTerminal: (options?: UseMutationOptions<void, Error, {
2352
+ terminalId: number;
2353
+ }>) => _tanstack_react_query.UseMutationResult<void, Error, {
2354
+ terminalId: number;
2355
+ }, unknown>;
2356
+
2357
+ declare const batchKeys: {
2358
+ readonly all: readonly ["batches"];
2359
+ readonly lists: () => readonly ["batches", "list"];
2360
+ readonly list: (filters: {
2361
+ skip?: number;
2362
+ limit?: number;
2363
+ query?: string | null;
2364
+ productId?: number;
2365
+ }) => readonly ["batches", "list", {
2366
+ readonly filters: {
2367
+ skip?: number;
2368
+ limit?: number;
2369
+ query?: string | null;
2370
+ productId?: number;
2371
+ };
2372
+ }];
2373
+ readonly forSelect: () => readonly ["batches", "select"];
2374
+ readonly matched: (productDetailId: number) => readonly ["batches", "matched", number];
2375
+ };
2376
+ interface UseBatchesParams {
2377
+ skip?: number;
2378
+ limit?: number;
2379
+ query?: string | null;
2380
+ productId?: number;
2381
+ }
2382
+ declare const useBatches: (params?: UseBatchesParams, options?: Omit<UseQueryOptions<IBatchResponse>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IBatchResponse, Error>;
2383
+ declare const useBatchesForSelect: (options?: Omit<UseQueryOptions<IBatch[]>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IBatch[], Error>;
2384
+ declare const useMatchedBatches: (productDetailId: number | undefined, options?: Omit<UseQueryOptions<IBatch[]>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IBatch[], Error>;
2385
+ declare const useCreateBatch: (options?: UseMutationOptions<IBatch, Error, FormData>) => _tanstack_react_query.UseMutationResult<IBatch, Error, FormData, unknown>;
2386
+ declare const useCreateBatchAndUpdateOtherBatches: (options?: UseMutationOptions<IBatch, Error, FormData>) => _tanstack_react_query.UseMutationResult<IBatch, Error, FormData, unknown>;
2387
+ declare const useUpdateBatch: (options?: UseMutationOptions<IBatch, Error, {
2388
+ batchId: number;
2389
+ batchData: UpdateBatchData;
2390
+ }>) => _tanstack_react_query.UseMutationResult<IBatch, Error, {
2391
+ batchId: number;
2392
+ batchData: UpdateBatchData;
2393
+ }, unknown>;
2394
+
2395
+ declare const categoryKeys: {
2396
+ readonly all: readonly ["categories"];
2397
+ readonly lists: () => readonly ["categories", "list"];
2398
+ readonly list: (filters: {
2399
+ skip?: number;
2400
+ limit?: number;
2401
+ query?: string | null;
2402
+ }) => readonly ["categories", "list", {
2403
+ readonly filters: {
2404
+ skip?: number;
2405
+ limit?: number;
2406
+ query?: string | null;
2407
+ };
2408
+ }];
2409
+ readonly details: () => readonly ["categories", "detail"];
2410
+ readonly detail: (id: number) => readonly ["categories", "detail", number];
2411
+ readonly forSelect: () => readonly ["categories", "select"];
2412
+ readonly allList: () => readonly ["categories", "all"];
2413
+ };
2414
+ interface UseCategoriesParams {
2415
+ skip?: number;
2416
+ limit?: number;
2417
+ query?: string | null;
2418
+ }
2419
+ declare const useCategories: (params?: UseCategoriesParams, options?: Omit<UseQueryOptions<ICategoryResponse>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<ICategoryResponse, Error>;
2420
+ declare const useCategory: (categoryId: number | undefined, options?: Omit<UseQueryOptions<ICategory>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<ICategory, Error>;
2421
+ declare const useCategoriesForSelect: (options?: Omit<UseQueryOptions<ICategory[]>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<ICategory[], Error>;
2422
+ declare const useAllCategories: (options?: Omit<UseQueryOptions<ICategory[]>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<ICategory[], Error>;
2423
+ declare const useCreateCategory: (options?: UseMutationOptions<ICategory, Error, {
2424
+ category: ICategory;
2425
+ }>) => _tanstack_react_query.UseMutationResult<ICategory, Error, {
2426
+ category: ICategory;
2427
+ }, unknown>;
2428
+ declare const useUpdateCategory: (options?: UseMutationOptions<ICategory, Error, {
2429
+ categoryId: number;
2430
+ category: ICategory;
2431
+ }>) => _tanstack_react_query.UseMutationResult<ICategory, Error, {
2432
+ categoryId: number;
2433
+ category: ICategory;
2434
+ }, unknown>;
2435
+ declare const useDeleteCategory: (options?: UseMutationOptions<void, Error, {
2436
+ categoryId: number;
2437
+ }>) => _tanstack_react_query.UseMutationResult<void, Error, {
2438
+ categoryId: number;
2439
+ }, unknown>;
2440
+ declare const useRestoreCategory: (options?: UseMutationOptions<void, Error, {
2441
+ categoryId: number;
2442
+ }>) => _tanstack_react_query.UseMutationResult<void, Error, {
2443
+ categoryId: number;
2444
+ }, unknown>;
2445
+ declare const usePrefetchCategory: () => {
2446
+ prefetchCategory: (categoryId: number) => Promise<void>;
2447
+ };
2448
+
2449
+ declare const clientKeys: {
2450
+ readonly all: readonly ["clients"];
2451
+ readonly lists: () => readonly ["clients", "list"];
2452
+ readonly list: (filters: {
2453
+ skip?: number;
2454
+ limit?: number;
2455
+ query?: string | null;
2456
+ }) => readonly ["clients", "list", {
2457
+ readonly filters: {
2458
+ skip?: number;
2459
+ limit?: number;
2460
+ query?: string | null;
2461
+ };
2462
+ }];
2463
+ readonly details: () => readonly ["clients", "detail"];
2464
+ readonly detail: (id: number) => readonly ["clients", "detail", number];
2465
+ readonly forSelect: () => readonly ["clients", "select"];
2466
+ };
2467
+ interface UseClientsParams {
2468
+ skip?: number;
2469
+ limit?: number;
2470
+ query?: string | null;
2471
+ }
2472
+ declare const useClients: (params?: UseClientsParams, options?: Omit<UseQueryOptions<IClientResponse>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IClientResponse, Error>;
2473
+ declare const useClient: (clientId: number | undefined, options?: Omit<UseQueryOptions<IClientResponseById>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IClientResponseById, Error>;
2474
+ declare const useClientsForSelect: (options?: Omit<UseQueryOptions<IClient[]>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IClient[], Error>;
2475
+ declare const useCreateClient: (options?: UseMutationOptions<IClientResponse, Error, IClientRequest>) => _tanstack_react_query.UseMutationResult<IClientResponse, Error, IClientRequest, unknown>;
2476
+ declare const useUpdateClient: (options?: UseMutationOptions<IClientResponse, Error, {
2477
+ id: string;
2478
+ client: IClient;
2479
+ }>) => _tanstack_react_query.UseMutationResult<IClientResponse, Error, {
2480
+ id: string;
2481
+ client: IClient;
2482
+ }, unknown>;
2483
+ declare const useDeleteClient: (options?: UseMutationOptions<IClientResponse, Error, {
2484
+ clientId: number;
2485
+ }>) => _tanstack_react_query.UseMutationResult<IClientResponse, Error, {
2486
+ clientId: number;
2487
+ }, unknown>;
2488
+ declare const useRestoreClient: (options?: UseMutationOptions<IClientResponse, Error, {
2489
+ clientId: number;
2490
+ }>) => _tanstack_react_query.UseMutationResult<IClientResponse, Error, {
2491
+ clientId: number;
2492
+ }, unknown>;
2493
+
2494
+ declare const exchangeKeys: {
2495
+ readonly all: readonly ["exchange"];
2496
+ readonly lists: () => readonly ["exchange", "list"];
2497
+ readonly list: (filters: {
2498
+ skip?: number;
2499
+ limit?: number;
2500
+ query?: string | null;
2501
+ }) => readonly ["exchange", "list", {
2502
+ readonly filters: {
2503
+ skip?: number;
2504
+ limit?: number;
2505
+ query?: string | null;
2506
+ };
2507
+ }];
2508
+ readonly rate: () => readonly ["exchange", "rate"];
2509
+ readonly paymentTypes: () => readonly ["exchange", "paymentTypes"];
2510
+ };
2511
+ interface UseExchangeRatesParams {
2512
+ skip?: number;
2513
+ limit?: number;
2514
+ query?: string | null;
2515
+ }
2516
+ declare const useExchangeRates: (params?: UseExchangeRatesParams, options?: Omit<UseQueryOptions<IExchangeResponse>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IExchangeResponse, Error>;
2517
+ declare const useExchangeRate: (options?: Omit<UseQueryOptions<IExchange>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IExchange, Error>;
2518
+ declare const usePaymentTypes: (options?: Omit<UseQueryOptions<PaymentType[]>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<PaymentType[], Error>;
2519
+ declare const useCreateExchangeRate: (options?: UseMutationOptions<IExchange, Error, {
2520
+ exchangeRate: IExchange;
2521
+ }>) => _tanstack_react_query.UseMutationResult<IExchange, Error, {
2522
+ exchangeRate: IExchange;
2523
+ }, unknown>;
2524
+
2525
+ interface FolioResponse {
2526
+ folioID: number;
2527
+ folioType: string;
2528
+ lastFolioUsed: number;
2529
+ nextFolioToUse: number;
2530
+ nextBatchWithFolioToUse: string;
2531
+ syncStatusID: number;
2532
+ masterCodeID: null;
2533
+ savedBy: null;
2534
+ savedDate: null;
2535
+ deletedBy: null;
2536
+ deletedDate: null;
2537
+ }
2538
+
2539
+ declare const folioKeys: {
2540
+ readonly all: readonly ["folio"];
2541
+ readonly nextForBatches: () => readonly ["folio", "nextForBatches"];
2542
+ };
2543
+ declare const useNextFolioToUseInBatches: (options?: Omit<UseQueryOptions<FolioResponse>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<FolioResponse, Error>;
2544
+
2545
+ declare const genderKeys: {
2546
+ readonly all: readonly ["genders"];
2547
+ };
2548
+ interface GenderResponse {
2549
+ data: IGender[];
2550
+ }
2551
+ declare const useAllGenders: (options?: Omit<UseQueryOptions<GenderResponse>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<GenderResponse, Error>;
2552
+
2553
+ interface HealthCheckResponse {
2554
+ status: string;
2555
+ timestamp: string;
2556
+ services: {
2557
+ backend: {
2558
+ status: string;
2559
+ message?: string;
2560
+ };
2561
+ database: {
2562
+ status: string;
2563
+ message?: string;
2564
+ };
2565
+ };
2566
+ }
2567
+ declare const healthKeys: {
2568
+ readonly all: readonly ["health"];
2569
+ readonly check: () => readonly ["health", "check"];
2570
+ };
2571
+ declare const useHealthCheck: (options?: Omit<UseQueryOptions<HealthCheckResponse>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<HealthCheckResponse, Error>;
2572
+
2573
+ declare const locationKeys: {
2574
+ readonly all: readonly ["locations"];
2575
+ readonly lists: () => readonly ["locations", "list"];
2576
+ readonly list: (filters: {
2577
+ skip?: number;
2578
+ limit?: number;
2579
+ query?: string | null;
2580
+ }) => readonly ["locations", "list", {
2581
+ readonly filters: {
2582
+ skip?: number;
2583
+ limit?: number;
2584
+ query?: string | null;
2585
+ };
2586
+ }];
2587
+ readonly details: () => readonly ["locations", "detail"];
2588
+ readonly detail: (id: number) => readonly ["locations", "detail", number];
2589
+ readonly forSelect: () => readonly ["locations", "select"];
2590
+ readonly allList: () => readonly ["locations", "all"];
2591
+ };
2592
+ interface UseLocationsParams {
2593
+ skip?: number;
2594
+ limit?: number;
2595
+ query?: string | null;
2596
+ }
2597
+ declare const useLocations: (params?: UseLocationsParams, options?: Omit<UseQueryOptions<ILocationResponse>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<ILocationResponse, Error>;
2598
+ declare const useLocation: (locationId: number | undefined, options?: Omit<UseQueryOptions<ILocation>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<ILocation, Error>;
2599
+ declare const useLocationsForSelect: (options?: Omit<UseQueryOptions<LocationResponse[]>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<LocationResponse[], Error>;
2600
+ declare const useAllLocations: (options?: Omit<UseQueryOptions<LocationResponse[]>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<LocationResponse[], Error>;
2601
+ declare const useCreateLocation: (options?: UseMutationOptions<ILocation, Error, FormData>) => _tanstack_react_query.UseMutationResult<ILocation, Error, FormData, unknown>;
2602
+ declare const useUpdateLocation: (options?: UseMutationOptions<ILocation, Error, {
2603
+ locationId: number;
2604
+ location: FormData;
2605
+ }>) => _tanstack_react_query.UseMutationResult<ILocation, Error, {
2606
+ locationId: number;
2607
+ location: FormData;
2608
+ }, unknown>;
2609
+ declare const useDeleteLocation: (options?: UseMutationOptions<void, Error, {
2610
+ physicalLocationId: number;
2611
+ }>) => _tanstack_react_query.UseMutationResult<void, Error, {
2612
+ physicalLocationId: number;
2613
+ }, unknown>;
2614
+ declare const useRestoreLocation: (options?: UseMutationOptions<void, Error, {
2615
+ physicalLocationId: number;
2616
+ }>) => _tanstack_react_query.UseMutationResult<void, Error, {
2617
+ physicalLocationId: number;
2618
+ }, unknown>;
2619
+
2620
+ declare const materialKeys: {
2621
+ readonly all: readonly ["materials"];
2622
+ readonly lists: () => readonly ["materials", "list"];
2623
+ readonly list: (filters: {
2624
+ skip?: number;
2625
+ limit?: number;
2626
+ query?: string | null;
2627
+ }) => readonly ["materials", "list", {
2628
+ readonly filters: {
2629
+ skip?: number;
2630
+ limit?: number;
2631
+ query?: string | null;
2632
+ };
2633
+ }];
2634
+ readonly details: () => readonly ["materials", "detail"];
2635
+ readonly detail: (id: number) => readonly ["materials", "detail", number];
2636
+ readonly forSelect: () => readonly ["materials", "select"];
2637
+ readonly allList: () => readonly ["materials", "all"];
2638
+ };
2639
+ interface UseMaterialsParams {
2640
+ skip?: number;
2641
+ limit?: number;
2642
+ query?: string | null;
2643
+ }
2644
+ declare const useMaterials: (params?: UseMaterialsParams, options?: Omit<UseQueryOptions<MaterialResponse>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<MaterialResponse, Error>;
2645
+ declare const useMaterial: (materialId: number | undefined, options?: Omit<UseQueryOptions<IMaterial>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IMaterial, Error>;
2646
+ declare const useMaterialsForSelect: (options?: Omit<UseQueryOptions<IMaterial[]>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IMaterial[], Error>;
2647
+ declare const useAllMaterials: (options?: Omit<UseQueryOptions<IMaterial[]>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IMaterial[], Error>;
2648
+ declare const useCreateMaterial: (options?: UseMutationOptions<IMaterial, Error, {
2649
+ material: IMaterial;
2650
+ }>) => _tanstack_react_query.UseMutationResult<IMaterial, Error, {
2651
+ material: IMaterial;
2652
+ }, unknown>;
2653
+ declare const useUpdateMaterial: (options?: UseMutationOptions<IMaterial, Error, {
2654
+ materialId: number;
2655
+ material: IMaterial;
2656
+ }>) => _tanstack_react_query.UseMutationResult<IMaterial, Error, {
2657
+ materialId: number;
2658
+ material: IMaterial;
2659
+ }, unknown>;
2660
+ declare const useDeleteMaterial: (options?: UseMutationOptions<void, Error, {
2661
+ materialId: number;
2662
+ }>) => _tanstack_react_query.UseMutationResult<void, Error, {
2663
+ materialId: number;
2664
+ }, unknown>;
2665
+ declare const useUndeleteMaterial: (options?: UseMutationOptions<void, Error, {
2666
+ materialId: number;
2667
+ }>) => _tanstack_react_query.UseMutationResult<void, Error, {
2668
+ materialId: number;
2669
+ }, unknown>;
2670
+
2671
+ declare const moduleKeys: {
2672
+ readonly all: readonly ["modules"];
2673
+ };
2674
+ declare const useAllModules: (options?: Omit<UseQueryOptions<IModule[]>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IModule[], Error>;
2675
+
2676
+ declare const orderKeys: {
2677
+ readonly all: readonly ["orders"];
2678
+ readonly lists: () => readonly ["orders", "list"];
2679
+ readonly list: (filters: Record<string, unknown>) => readonly ["orders", "list", {
2680
+ readonly filters: Record<string, unknown>;
2681
+ }];
2682
+ readonly details: () => readonly ["orders", "detail"];
2683
+ readonly detail: (id: number) => readonly ["orders", "detail", number];
2684
+ readonly statusForSelect: () => readonly ["orders", "status"];
2685
+ };
2686
+ interface UseOrdersParams {
2687
+ skip?: number;
2688
+ limit?: number;
2689
+ query?: string;
2690
+ commissionedBy?: string;
2691
+ orderStatus?: string[];
2692
+ startDate?: string | null;
2693
+ endDate?: string | null;
2694
+ showOnlyReturns?: boolean;
2695
+ }
2696
+ declare const useOrders: (params?: UseOrdersParams, options?: Omit<UseQueryOptions<IOrderResponse>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IOrderResponse, Error>;
2697
+ declare const useOrder: (orderId: number | undefined, options?: Omit<UseQueryOptions<IOrder>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IOrder, Error>;
2698
+ declare const useOrdersStatusForSelect: (options?: Omit<UseQueryOptions<TblOrderStatus[]>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<TblOrderStatus[], Error>;
2699
+ declare const useChangeOrderProduct: (options?: UseMutationOptions<ChangeProductResponse, Error, ChangeProductRequest>) => _tanstack_react_query.UseMutationResult<ChangeProductResponse, Error, ChangeProductRequest, unknown>;
2700
+
2701
+ declare const paymentKeys: {
2702
+ readonly all: readonly ["payments"];
2703
+ readonly methods: () => readonly ["payments", "methods"];
2704
+ readonly methodsWithAmount: () => readonly ["payments", "methodsWithAmount"];
2705
+ };
2706
+ declare const usePaymentMethods: (options?: Omit<UseQueryOptions<IPaymentMethod[]>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IPaymentMethod[], Error>;
2707
+ declare const usePaymentMethodsWithAmountExpected: (options?: Omit<UseQueryOptions<IPaymentMethodAmountExpected[]>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IPaymentMethodAmountExpected[], Error>;
2708
+ declare const useSendPayment: (options?: UseMutationOptions<IPayment, Error, {
2709
+ payment: IPayment;
2710
+ }>) => _tanstack_react_query.UseMutationResult<IPayment, Error, {
2711
+ payment: IPayment;
2712
+ }, unknown>;
2713
+ declare const useSendCreditPayment: (options?: UseMutationOptions<IPayment, Error, {
2714
+ payment: IPayment;
2715
+ orderId: number;
2716
+ }>) => _tanstack_react_query.UseMutationResult<IPayment, Error, {
2717
+ payment: IPayment;
2718
+ orderId: number;
2719
+ }, unknown>;
2720
+
2721
+ declare const permissionKeys: {
2722
+ readonly all: readonly ["permissions"];
2723
+ readonly list: () => readonly ["permissions", "list"];
2724
+ readonly byRole: (roleId: number) => readonly ["permissions", "role", number];
2725
+ };
2726
+ declare const usePermissions: (options?: Omit<UseQueryOptions<IPermissionRole>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IPermissionRole, Error>;
2727
+ declare const usePermissionRoleByRoleID: (roleId: number | undefined, options?: Omit<UseQueryOptions<PermissionRole[]>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<PermissionRole[], Error>;
2728
+ declare const useUpdatePermission: (options?: UseMutationOptions<IUpdatePermission, Error, IUpdatePermission>) => _tanstack_react_query.UseMutationResult<IUpdatePermission, Error, IUpdatePermission, unknown>;
2729
+
2730
+ declare const pricePerGramKeys: {
2731
+ readonly all: readonly ["pricePerGram"];
2732
+ readonly price: (params: {
2733
+ productDetailId?: number;
2734
+ productId?: number;
2735
+ materialId?: number;
2736
+ }) => readonly ["pricePerGram", "price", {
2737
+ productDetailId?: number;
2738
+ productId?: number;
2739
+ materialId?: number;
2740
+ }];
2741
+ readonly history: (params: {
2742
+ entityType: "material" | "product" | "productDetail";
2743
+ entityId: number;
2744
+ limit?: number;
2745
+ }) => readonly ["pricePerGram", "history", {
2746
+ entityType: "material" | "product" | "productDetail";
2747
+ entityId: number;
2748
+ limit?: number;
2749
+ }];
2750
+ readonly isWeightBased: (productDetailId: number) => readonly ["pricePerGram", "isWeightBased", number];
2751
+ };
2752
+ declare const usePricePerGram: (params: {
2753
+ productDetailId?: number;
2754
+ productId?: number;
2755
+ materialId?: number;
2756
+ } | null, options?: Omit<UseQueryOptions<PricePerGramResponse>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<PricePerGramResponse, Error>;
2757
+ declare const usePricePerGramHistory: (params: {
2758
+ entityType: "material" | "product" | "productDetail";
2759
+ entityId: number;
2760
+ limit?: number;
2761
+ } | null, options?: Omit<UseQueryOptions<IPricePerGramHistory[]>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IPricePerGramHistory[], Error>;
2762
+ declare const useIsWeightBased: (productDetailId: number | undefined, options?: Omit<UseQueryOptions<boolean>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<boolean, Error>;
2763
+ declare const useUpdatePricePerGram: (options?: UseMutationOptions<void, Error, UpdatePriceRequest>) => _tanstack_react_query.UseMutationResult<void, Error, UpdatePriceRequest, unknown>;
2764
+ declare const useSchedulePricePerGram: (options?: UseMutationOptions<void, Error, SchedulePriceRequest>) => _tanstack_react_query.UseMutationResult<void, Error, SchedulePriceRequest, unknown>;
2765
+ declare const useCalculatePricePerGram: (options?: UseMutationOptions<PriceCalculationResponse, Error, CalculatePriceRequest>) => _tanstack_react_query.UseMutationResult<PriceCalculationResponse, Error, CalculatePriceRequest, unknown>;
2766
+ declare const useDeleteFuturePricePerGram: (options?: UseMutationOptions<void, Error, {
2767
+ historyId: number;
2768
+ }>) => _tanstack_react_query.UseMutationResult<void, Error, {
2769
+ historyId: number;
2770
+ }, unknown>;
2771
+ declare const useUpdateFuturePricePerGram: (options?: UseMutationOptions<void, Error, {
2772
+ historyId: number;
2773
+ request: SchedulePriceRequest;
2774
+ }>) => _tanstack_react_query.UseMutationResult<void, Error, {
2775
+ historyId: number;
2776
+ request: SchedulePriceRequest;
2777
+ }, unknown>;
2778
+
2779
+ declare const priceTypeKeys: {
2780
+ readonly all: readonly ["priceTypes"];
2781
+ readonly lists: () => readonly ["priceTypes", "list"];
2782
+ readonly list: (filters: {
2783
+ skip?: number;
2784
+ limit?: number;
2785
+ query?: string | null;
2786
+ }) => readonly ["priceTypes", "list", {
2787
+ readonly filters: {
2788
+ skip?: number;
2789
+ limit?: number;
2790
+ query?: string | null;
2791
+ };
2792
+ }];
2793
+ readonly details: () => readonly ["priceTypes", "detail"];
2794
+ readonly detail: (id: number) => readonly ["priceTypes", "detail", number];
2795
+ readonly forSelect: () => readonly ["priceTypes", "select"];
2796
+ };
2797
+ interface UsePriceTypesParams {
2798
+ skip?: number;
2799
+ limit?: number;
2800
+ query?: string | null;
2801
+ }
2802
+ declare const usePriceTypes: (params?: UsePriceTypesParams, options?: Omit<UseQueryOptions<IPriceTypeResponse>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IPriceTypeResponse, Error>;
2803
+ declare const usePriceType: (priceTypeId: number | undefined, options?: Omit<UseQueryOptions<IPriceType>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IPriceType, Error>;
2804
+ declare const usePriceTypesForSelect: (options?: Omit<UseQueryOptions<IPriceType[]>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IPriceType[], Error>;
2805
+ declare const useCreatePriceType: (options?: UseMutationOptions<IPriceType, Error, {
2806
+ priceType: IPriceType;
2807
+ }>) => _tanstack_react_query.UseMutationResult<IPriceType, Error, {
2808
+ priceType: IPriceType;
2809
+ }, unknown>;
2810
+ declare const useUpdatePriceType: (options?: UseMutationOptions<IPriceType, Error, {
2811
+ priceTypeId: number;
2812
+ priceType: IPriceType;
2813
+ }>) => _tanstack_react_query.UseMutationResult<IPriceType, Error, {
2814
+ priceTypeId: number;
2815
+ priceType: IPriceType;
2816
+ }, unknown>;
2817
+ declare const useDeletePriceType: (options?: UseMutationOptions<void, Error, {
2818
+ priceTypeId: number;
2819
+ }>) => _tanstack_react_query.UseMutationResult<void, Error, {
2820
+ priceTypeId: number;
2821
+ }, unknown>;
2822
+ declare const useUndeletePriceType: (options?: UseMutationOptions<void, Error, {
2823
+ priceTypeId: number;
2824
+ }>) => _tanstack_react_query.UseMutationResult<void, Error, {
2825
+ priceTypeId: number;
2826
+ }, unknown>;
2827
+
2828
+ declare const productKeys: {
2829
+ readonly all: readonly ["products"];
2830
+ readonly lists: () => readonly ["products", "list"];
2831
+ readonly list: (filters?: {
2832
+ skip?: number;
2833
+ limit?: number;
2834
+ filters?: FilterType;
2835
+ }) => readonly ["products", "list", {
2836
+ readonly filters: {
2837
+ skip?: number;
2838
+ limit?: number;
2839
+ filters?: FilterType;
2840
+ } | undefined;
2841
+ }];
2842
+ readonly table: (filters?: {
2843
+ skip?: number;
2844
+ limit?: number;
2845
+ filters?: FilterType;
2846
+ }) => readonly ["products", "table", {
2847
+ readonly filters: {
2848
+ skip?: number;
2849
+ limit?: number;
2850
+ filters?: FilterType;
2851
+ } | undefined;
2852
+ }];
2853
+ readonly details: () => readonly ["products", "detail"];
2854
+ readonly detail: (id: number) => readonly ["products", "detail", number];
2855
+ readonly forSelect: () => readonly ["products", "select"];
2856
+ readonly variants: (productId: number) => readonly ["products", "variants", number];
2857
+ readonly variantsSelect: (productId: number) => readonly ["products", "variantsSelect", number];
2858
+ readonly variant: (productDetailId: number) => readonly ["products", "variant", number];
2859
+ readonly byCategory: (category: number, filters?: FilterType) => readonly ["products", "category", number, {
2860
+ readonly filters: FilterType | undefined;
2861
+ }];
2862
+ };
2863
+ interface ProductQueryParams {
2864
+ skip?: number;
2865
+ limit?: number;
2866
+ filters?: FilterType;
2867
+ }
2868
+ declare const useProducts: (params?: ProductQueryParams, options?: Omit<UseQueryOptions<IProductDetailsResponse>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IProductDetailsResponse, Error>;
2869
+ declare const useProductsTable: (params?: ProductQueryParams, options?: Omit<UseQueryOptions<IProductResponse>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IProductResponse, Error>;
2870
+ declare const useProduct: (productId: number | undefined, options?: Omit<UseQueryOptions<IProduct>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IProduct, Error>;
2871
+ declare const useProductsForSelect: (options?: Omit<UseQueryOptions<IProduct[]>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IProduct[], Error>;
2872
+ declare const useProductVariants: (productId: number | undefined, params?: {
2873
+ skip?: number;
2874
+ limit?: number;
2875
+ query?: string;
2876
+ }, options?: Omit<UseQueryOptions<IProductDetailsResponse>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IProductDetailsResponse, Error>;
2877
+ declare const useProductVariantsForSelect: (productId: number | undefined, options?: Omit<UseQueryOptions<IProductDetails[]>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IProductDetails[], Error>;
2878
+ declare const useProductVariant: (productDetailId: number | undefined, options?: Omit<UseQueryOptions<IProductDetails>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IProductDetails, Error>;
2879
+ declare const useProductsByCategory: (category: number, params?: ProductQueryParams, options?: Omit<UseQueryOptions<IProductResponse>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IProductResponse, Error>;
2880
+ declare const useCreateProduct: (options?: UseMutationOptions<IProduct, Error, FormData>) => _tanstack_react_query.UseMutationResult<IProduct, Error, FormData, unknown>;
2881
+ declare const useUpdateProduct: (options?: UseMutationOptions<IProduct, Error, {
2882
+ productId: number;
2883
+ product: FormData;
2884
+ }>) => _tanstack_react_query.UseMutationResult<IProduct, Error, {
2885
+ productId: number;
2886
+ product: FormData;
2887
+ }, unknown>;
2888
+ declare const useCreateProductVariant: (options?: UseMutationOptions<IProductDetails, Error, FormData>) => _tanstack_react_query.UseMutationResult<IProductDetails, Error, FormData, unknown>;
2889
+ declare const useUpdateProductVariant: (options?: UseMutationOptions<IProductDetails, Error, FormData>) => _tanstack_react_query.UseMutationResult<IProductDetails, Error, FormData, unknown>;
2890
+ declare const useDeleteProductVariant: (options?: UseMutationOptions<void, Error, {
2891
+ productDetailId: number;
2892
+ }>) => _tanstack_react_query.UseMutationResult<void, Error, {
2893
+ productDetailId: number;
2894
+ }, unknown>;
2895
+ declare const useRestoreProductVariant: (options?: UseMutationOptions<void, Error, {
2896
+ productDetailId: number;
2897
+ }>) => _tanstack_react_query.UseMutationResult<void, Error, {
2898
+ productDetailId: number;
2899
+ }, unknown>;
2900
+ declare const useDeleteImageFromProduct: (options?: UseMutationOptions<void, Error, {
2901
+ imageId: number;
2902
+ }>) => _tanstack_react_query.UseMutationResult<void, Error, {
2903
+ imageId: number;
2904
+ }, unknown>;
2905
+ declare const useDeleteProduct: (options?: UseMutationOptions<void, Error, {
2906
+ productId: number;
2907
+ }>) => _tanstack_react_query.UseMutationResult<void, Error, {
2908
+ productId: number;
2909
+ }, unknown>;
2910
+ declare const useRestoreProduct: (options?: UseMutationOptions<void, Error, {
2911
+ productId: number;
2912
+ }>) => _tanstack_react_query.UseMutationResult<void, Error, {
2913
+ productId: number;
2914
+ }, unknown>;
2915
+
2916
+ declare const productTagKeys: {
2917
+ readonly all: readonly ["productTags"];
2918
+ };
2919
+ declare const useAllProductTags: (options?: Omit<UseQueryOptions<ITag[]>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<ITag[], Error>;
2920
+
2921
+ declare const promotionKeys: {
2922
+ readonly all: readonly ["promotions"];
2923
+ readonly lists: () => readonly ["promotions", "list"];
2924
+ readonly list: (filters: {
2925
+ skip?: number;
2926
+ limit?: number;
2927
+ query?: string | null;
2928
+ }) => readonly ["promotions", "list", {
2929
+ readonly filters: {
2930
+ skip?: number;
2931
+ limit?: number;
2932
+ query?: string | null;
2933
+ };
2934
+ }];
2935
+ readonly details: () => readonly ["promotions", "detail"];
2936
+ readonly detail: (id: string) => readonly ["promotions", "detail", string];
2937
+ readonly typesForSelect: () => readonly ["promotions", "types"];
2938
+ };
2939
+ interface UsePromotionsParams {
2940
+ skip?: number;
2941
+ limit?: number;
2942
+ query?: string | null;
2943
+ }
2944
+ declare const usePromotions: (params?: UsePromotionsParams, options?: Omit<UseQueryOptions<IPromotionResponse>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IPromotionResponse, Error>;
2945
+ declare const usePromotion: (id: string | undefined, options?: Omit<UseQueryOptions<IPromotion>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IPromotion, Error>;
2946
+ declare const usePromotionsTypeForSelect: (options?: Omit<UseQueryOptions<IPromotionType[]>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IPromotionType[], Error>;
2947
+ declare const useCreatePromotion: (options?: UseMutationOptions<IPromotion, Error, IPromotion>) => _tanstack_react_query.UseMutationResult<IPromotion, Error, IPromotion, unknown>;
2948
+ declare const useUpdatePromotion: (options?: UseMutationOptions<IPromotion, Error, {
2949
+ id: string;
2950
+ promotion: IPromotion;
2951
+ }>) => _tanstack_react_query.UseMutationResult<IPromotion, Error, {
2952
+ id: string;
2953
+ promotion: IPromotion;
2954
+ }, unknown>;
2955
+ declare const useValidateDiscountCode: (options?: UseMutationOptions<boolean, Error, {
2956
+ discountCode: string;
2957
+ }>) => _tanstack_react_query.UseMutationResult<boolean, Error, {
2958
+ discountCode: string;
2959
+ }, unknown>;
2960
+
2961
+ declare const providerKeys: {
2962
+ readonly all: readonly ["providers"];
2963
+ readonly lists: () => readonly ["providers", "list"];
2964
+ readonly list: (filters: {
2965
+ skip?: number;
2966
+ limit?: number;
2967
+ query?: string | null;
2968
+ }) => readonly ["providers", "list", {
2969
+ readonly filters: {
2970
+ skip?: number;
2971
+ limit?: number;
2972
+ query?: string | null;
2973
+ };
2974
+ }];
2975
+ readonly details: () => readonly ["providers", "detail"];
2976
+ readonly detail: (id: number) => readonly ["providers", "detail", number];
2977
+ readonly forSelect: () => readonly ["providers", "select"];
2978
+ };
2979
+ interface UseProvidersParams {
2980
+ skip?: number;
2981
+ limit?: number;
2982
+ query?: string | null;
2983
+ }
2984
+ declare const useProviders: (params?: UseProvidersParams, options?: Omit<UseQueryOptions<IProviderResponse>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IProviderResponse, Error>;
2985
+ declare const useProvider: (providerId: number | undefined, options?: Omit<UseQueryOptions<IProvider>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IProvider, Error>;
2986
+ declare const useProvidersForSelect: (options?: Omit<UseQueryOptions<IProviderForSelect[]>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IProviderForSelect[], Error>;
2987
+ declare const useCreateProvider: (options?: UseMutationOptions<IProviderResponse, Error, IProviderRequest>) => _tanstack_react_query.UseMutationResult<IProviderResponse, Error, IProviderRequest, unknown>;
2988
+ declare const useUpdateProvider: (options?: UseMutationOptions<IProviderResponse, Error, {
2989
+ providerId: string;
2990
+ provider: IProvider;
2991
+ }>) => _tanstack_react_query.UseMutationResult<IProviderResponse, Error, {
2992
+ providerId: string;
2993
+ provider: IProvider;
2994
+ }, unknown>;
2995
+ declare const useDeleteProvider: (options?: UseMutationOptions<IProviderResponse, Error, {
2996
+ providerId: number;
2997
+ }>) => _tanstack_react_query.UseMutationResult<IProviderResponse, Error, {
2998
+ providerId: number;
2999
+ }, unknown>;
3000
+ declare const useRestoreProvider: (options?: UseMutationOptions<IProviderResponse, Error, {
3001
+ providerId: number;
3002
+ }>) => _tanstack_react_query.UseMutationResult<IProviderResponse, Error, {
3003
+ providerId: number;
3004
+ }, unknown>;
3005
+
3006
+ declare const qrKeys: {
3007
+ readonly all: readonly ["qr"];
3008
+ readonly baseUrl: () => readonly ["qr", "baseUrl"];
3009
+ };
3010
+ declare const useQRBaseUrl: (options?: Omit<UseQueryOptions<string>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<string, Error>;
3011
+ declare const usePrintQR: (options?: UseMutationOptions<PrintQRResponse, Error, {
3012
+ productDetailId: number;
3013
+ printerName?: string;
3014
+ }>) => _tanstack_react_query.UseMutationResult<PrintQRResponse, Error, {
3015
+ productDetailId: number;
3016
+ printerName?: string;
3017
+ }, unknown>;
3018
+
3019
+ declare const reportKeys: {
3020
+ readonly all: readonly ["reports"];
3021
+ readonly stockByWarehouse: (params: {
3022
+ limit: number;
3023
+ allWarehouses: boolean;
3024
+ }) => readonly ["reports", "stockByWarehouse", {
3025
+ limit: number;
3026
+ allWarehouses: boolean;
3027
+ }];
3028
+ readonly reportX: (params: {
3029
+ startDate: string;
3030
+ sellerID: number;
3031
+ isShiftChange?: boolean;
3032
+ }) => readonly ["reports", "reportX", {
3033
+ startDate: string;
3034
+ sellerID: number;
3035
+ isShiftChange?: boolean;
3036
+ }];
3037
+ readonly reportZ: (params: {
3038
+ startDate: string;
3039
+ sellerID: number;
3040
+ isShiftChange?: boolean;
3041
+ }) => readonly ["reports", "reportZ", {
3042
+ startDate: string;
3043
+ sellerID: number;
3044
+ isShiftChange?: boolean;
3045
+ }];
3046
+ readonly comparison: (params: {
3047
+ startDate: Date;
3048
+ endDate: Date;
3049
+ comparisonBy: ComparisonBy;
3050
+ productIds: string[];
3051
+ }) => readonly ["reports", "comparison", {
3052
+ startDate: Date;
3053
+ endDate: Date;
3054
+ comparisonBy: ComparisonBy;
3055
+ productIds: string[];
3056
+ }];
3057
+ readonly inventory: (params: {
3058
+ productIDs: number[] | null;
3059
+ categoryIDs: number[] | null;
3060
+ warehouseIDs: number[] | null;
3061
+ providerIDs: number[] | null;
3062
+ }) => readonly ["reports", "inventory", {
3063
+ productIDs: number[] | null;
3064
+ categoryIDs: number[] | null;
3065
+ warehouseIDs: number[] | null;
3066
+ providerIDs: number[] | null;
3067
+ }];
3068
+ readonly pendingReportZ: () => readonly ["reports", "pendingReportZ"];
3069
+ };
3070
+ declare const useStockByWarehouseReport: (params: {
3071
+ limit?: number;
3072
+ allWarehouses?: boolean;
3073
+ }, options?: Omit<UseQueryOptions<IStockByWarehouseReport[]>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IStockByWarehouseReport[], Error>;
3074
+ declare const useReportX: (params: {
3075
+ startDate: string;
3076
+ sellerID: number;
3077
+ isShiftChange?: boolean;
3078
+ } | null, options?: Omit<UseQueryOptions<IReportX>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IReportX, Error>;
3079
+ declare const usePrintReportX: (options?: UseMutationOptions<boolean, Error, {
3080
+ startDate: string;
3081
+ sellerID: number;
3082
+ }>) => _tanstack_react_query.UseMutationResult<boolean, Error, {
3083
+ startDate: string;
3084
+ sellerID: number;
3085
+ }, unknown>;
3086
+ declare const useReportComparisonByTimeFrame: (params: {
3087
+ startDate: Date;
3088
+ endDate: Date;
3089
+ comparisonBy: ComparisonBy;
3090
+ productIds: string[];
3091
+ } | null, options?: Omit<UseQueryOptions<IReportComparisonByTimeFrame>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IReportComparisonByTimeFrame, Error>;
3092
+ declare const useReportByInventory: (params: {
3093
+ productIDs: number[] | null;
3094
+ categoryIDs: number[] | null;
3095
+ warehouseIDs: number[] | null;
3096
+ providerIDs: number[] | null;
3097
+ } | null, options?: Omit<UseQueryOptions<IReportInventory[]>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IReportInventory[], Error>;
3098
+ declare const useReportZ: (params: {
3099
+ startDate: string;
3100
+ sellerID: number;
3101
+ isShiftChange?: boolean;
3102
+ } | null, options?: Omit<UseQueryOptions<IReportZ>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IReportZ, Error>;
3103
+ declare const usePrintReportZ: (options?: UseMutationOptions<boolean, Error, {
3104
+ startDate: string;
3105
+ sellerID: number;
3106
+ }>) => _tanstack_react_query.UseMutationResult<boolean, Error, {
3107
+ startDate: string;
3108
+ sellerID: number;
3109
+ }, unknown>;
3110
+ declare const usePendingReportZ: (options?: Omit<UseQueryOptions<Date[]>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<Date[], Error>;
3111
+
3112
+ declare const returnKeys: {
3113
+ readonly all: readonly ["returns"];
3114
+ readonly byOrder: (orderId: number) => readonly ["returns", "order", number];
3115
+ };
3116
+ declare const useReturnsByOrderId: (orderId: number | undefined, options?: Omit<UseQueryOptions<GetReturnsByOrderIdResponse>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<GetReturnsByOrderIdResponse, Error>;
3117
+ declare const useCreateReturn: (options?: UseMutationOptions<void, Error, {
3118
+ orderId: number;
3119
+ returnReason: string;
3120
+ orderDetails: TblOrderDetail[];
3121
+ warehouseDestinationID: number;
3122
+ }>) => _tanstack_react_query.UseMutationResult<void, Error, {
3123
+ orderId: number;
3124
+ returnReason: string;
3125
+ orderDetails: TblOrderDetail[];
3126
+ warehouseDestinationID: number;
3127
+ }, unknown>;
3128
+
3129
+ declare const roleKeys: {
3130
+ readonly all: readonly ["roles"];
3131
+ readonly lists: () => readonly ["roles", "list"];
3132
+ readonly details: () => readonly ["roles", "detail"];
3133
+ readonly detail: (id: number) => readonly ["roles", "detail", number];
3134
+ };
3135
+ declare const useRoles: (options?: Omit<UseQueryOptions<IRole[]>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IRole[], Error>;
3136
+ declare const useRole: (roleId: number | undefined, options?: Omit<UseQueryOptions<IRole>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IRole, Error>;
3137
+ declare const useCreateRole: (options?: UseMutationOptions<IRole, Error, IRole>) => _tanstack_react_query.UseMutationResult<IRole, Error, IRole, unknown>;
3138
+ declare const useUpdateRole: (options?: UseMutationOptions<IRole, Error, {
3139
+ roleId: number;
3140
+ role: IRole;
3141
+ }>) => _tanstack_react_query.UseMutationResult<IRole, Error, {
3142
+ roleId: number;
3143
+ role: IRole;
3144
+ }, unknown>;
3145
+ declare const useDeleteRole: (options?: UseMutationOptions<void, Error, {
3146
+ roleId: number;
3147
+ }>) => _tanstack_react_query.UseMutationResult<void, Error, {
3148
+ roleId: number;
3149
+ }, unknown>;
3150
+
3151
+ interface CloseShiftData {
3152
+ sellerID: number;
3153
+ date: string;
3154
+ paymentMethods: {
3155
+ paymentMethodId: number;
3156
+ amount: number;
3157
+ }[];
3158
+ cashBreakdown?: {
3159
+ coinsTotal: number;
3160
+ bills: {
3161
+ denomination: number;
3162
+ quantity: number;
3163
+ }[];
3164
+ };
3165
+ }
3166
+ declare const useCloseShift: (options?: UseMutationOptions<Response, Error, CloseShiftData>) => _tanstack_react_query.UseMutationResult<Response, Error, CloseShiftData, unknown>;
3167
+ declare const useMakeNewCashMovement: (options?: UseMutationOptions<Response, Error, {
3168
+ userID: number | undefined;
3169
+ amount: number;
3170
+ comment?: string;
3171
+ isWithdrawal: boolean;
3172
+ }>) => _tanstack_react_query.UseMutationResult<Response, Error, {
3173
+ userID: number | undefined;
3174
+ amount: number;
3175
+ comment?: string;
3176
+ isWithdrawal: boolean;
3177
+ }, unknown>;
3178
+ declare const useSetNewShift: (options?: UseMutationOptions<Response, Error, {
3179
+ userID: number | undefined;
3180
+ initialCash: number;
3181
+ }>) => _tanstack_react_query.UseMutationResult<Response, Error, {
3182
+ userID: number | undefined;
3183
+ initialCash: number;
3184
+ }, unknown>;
3185
+
3186
+ declare const stateKeys: {
3187
+ readonly all: readonly ["states"];
3188
+ };
3189
+ declare const useAllStates: (options?: Omit<UseQueryOptions<StateResponse[]>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<StateResponse[], Error>;
3190
+
3191
+ declare const stockMovementKeys: {
3192
+ readonly all: readonly ["stockMovements"];
3193
+ readonly lists: () => readonly ["stockMovements", "list"];
3194
+ readonly list: (filters: {
3195
+ skip?: number;
3196
+ limit?: number;
3197
+ query?: string | null;
3198
+ movementType?: number;
3199
+ }) => readonly ["stockMovements", "list", {
3200
+ readonly filters: {
3201
+ skip?: number;
3202
+ limit?: number;
3203
+ query?: string | null;
3204
+ movementType?: number;
3205
+ };
3206
+ }];
3207
+ };
3208
+ interface UseMovementsParams {
3209
+ skip?: number;
3210
+ limit?: number;
3211
+ query?: string | null;
3212
+ movementType?: number;
3213
+ }
3214
+ declare const useMovements: (params?: UseMovementsParams, options?: Omit<UseQueryOptions<IStockMovementResponse>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IStockMovementResponse, Error>;
3215
+ declare const useCreateMovement: (options?: UseMutationOptions<IStockMovement, Error, FormData>) => _tanstack_react_query.UseMutationResult<IStockMovement, Error, FormData, unknown>;
3216
+
3217
+ declare const taxKeys: {
3218
+ readonly all: readonly ["taxes"];
3219
+ readonly forSelect: () => readonly ["taxes", "select"];
3220
+ };
3221
+ declare const useTaxesForSelect: (options?: Omit<UseQueryOptions<ITax[]>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<ITax[], Error>;
3222
+
3223
+ declare const userKeys: {
3224
+ readonly all: readonly ["users"];
3225
+ readonly lists: () => readonly ["users", "list"];
3226
+ readonly list: (filters: {
3227
+ skip?: number;
3228
+ limit?: number;
3229
+ query?: string | null;
3230
+ }) => readonly ["users", "list", {
3231
+ readonly filters: {
3232
+ skip?: number;
3233
+ limit?: number;
3234
+ query?: string | null;
3235
+ };
3236
+ }];
3237
+ readonly details: () => readonly ["users", "detail"];
3238
+ readonly detail: (id: number) => readonly ["users", "detail", number];
3239
+ readonly sellersWithShift: () => readonly ["users", "sellersWithShift"];
3240
+ readonly sellersOfDay: (date: string) => readonly ["users", "sellersOfDay", string];
3241
+ readonly agents: () => readonly ["users", "agents"];
3242
+ };
3243
+ interface UseUsersParams {
3244
+ skip?: number;
3245
+ limit?: number;
3246
+ query?: string | null;
3247
+ }
3248
+ declare const useUsers: (params?: UseUsersParams, options?: Omit<UseQueryOptions<UserResponse>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<UserResponse, Error>;
3249
+ declare const useUser: (userId: number | undefined, options?: Omit<UseQueryOptions<IUser>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IUser, Error>;
3250
+ declare const useSellersWithShift: (options?: Omit<UseQueryOptions<AgentResponse>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<AgentResponse, Error>;
3251
+ declare const useSellersOfDayForSelect: (date: string | undefined, options?: Omit<UseQueryOptions<AgentResponse>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<AgentResponse, Error>;
3252
+ declare const useAllAgents: (options?: Omit<UseQueryOptions<AgentResponse>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<AgentResponse, Error>;
3253
+ declare const useCreateUser: (options?: UseMutationOptions<void, Error, {
3254
+ user: IUserForm;
3255
+ }>) => _tanstack_react_query.UseMutationResult<void, Error, {
3256
+ user: IUserForm;
3257
+ }, unknown>;
3258
+ declare const useUpdateUser: (options?: UseMutationOptions<void, Error, {
3259
+ userId: number;
3260
+ user: IUserForm;
3261
+ }>) => _tanstack_react_query.UseMutationResult<void, Error, {
3262
+ userId: number;
3263
+ user: IUserForm;
3264
+ }, unknown>;
3265
+ declare const useDeleteUser: (options?: UseMutationOptions<void, Error, {
3266
+ userId: number;
3267
+ }>) => _tanstack_react_query.UseMutationResult<void, Error, {
3268
+ userId: number;
3269
+ }, unknown>;
3270
+ declare const useRestoreUser: (options?: UseMutationOptions<void, Error, {
3271
+ userId: number;
3272
+ }>) => _tanstack_react_query.UseMutationResult<void, Error, {
3273
+ userId: number;
3274
+ }, unknown>;
3275
+
3276
+ declare const warehouseKeys: {
3277
+ readonly all: readonly ["warehouses"];
3278
+ readonly lists: () => readonly ["warehouses", "list"];
3279
+ readonly list: (filters: {
3280
+ skip?: number;
3281
+ limit?: number;
3282
+ query?: string | null;
3283
+ }) => readonly ["warehouses", "list", {
3284
+ readonly filters: {
3285
+ skip?: number;
3286
+ limit?: number;
3287
+ query?: string | null;
3288
+ };
3289
+ }];
3290
+ readonly details: () => readonly ["warehouses", "detail"];
3291
+ readonly detail: (id: number) => readonly ["warehouses", "detail", number];
3292
+ readonly forSelect: () => readonly ["warehouses", "select"];
3293
+ };
3294
+ interface UseWarehousesParams {
3295
+ skip?: number;
3296
+ limit?: number;
3297
+ query?: string | null;
3298
+ }
3299
+ declare const useWarehouses: (params?: UseWarehousesParams, options?: Omit<UseQueryOptions<IWareHouseResponse>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IWareHouseResponse, Error>;
3300
+ declare const useWarehouse: (warehouseId: number | undefined, options?: Omit<UseQueryOptions<IWareHouse>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<IWareHouse, Error>;
3301
+ declare const useWarehousesForSelect: (options?: Omit<UseQueryOptions<WarehouseResponse[]>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<WarehouseResponse[], Error>;
3302
+ declare const useCreateWarehouse: (options?: UseMutationOptions<IWareHouse, Error, FormData>) => _tanstack_react_query.UseMutationResult<IWareHouse, Error, FormData, unknown>;
3303
+ declare const useUpdateWarehouse: (options?: UseMutationOptions<IWareHouse, Error, {
3304
+ warehouseId: number;
3305
+ warehouse: FormData;
3306
+ }>) => _tanstack_react_query.UseMutationResult<IWareHouse, Error, {
3307
+ warehouseId: number;
3308
+ warehouse: FormData;
3309
+ }, unknown>;
3310
+ declare const useDeleteWarehouse: (options?: UseMutationOptions<void, Error, {
3311
+ warehouseId: number;
3312
+ }>) => _tanstack_react_query.UseMutationResult<void, Error, {
3313
+ warehouseId: number;
3314
+ }, unknown>;
3315
+ declare const useRestoreWarehouse: (options?: UseMutationOptions<void, Error, {
3316
+ warehouseId: number;
3317
+ }>) => _tanstack_react_query.UseMutationResult<void, Error, {
3318
+ warehouseId: number;
3319
+ }, unknown>;
3320
+
3321
+ export { type AgentResponse, type BankTerminalQuery, type BankTerminalResponse, type BatchData, ButtonTypes, type CalculatePriceRequest, type ChangeProductRequest, type ChangeProductResponse, ChartType, ComparisonBy, type DateRange, type IApiConfig as ErpApiConfig, FieldTypes, type FileType, type FilterType, type GetReturnsByOrderIdResponse, type IAgent, type IAttribute, type IAttributeResponse, type IAttributeValue, type IBankTerminal, type IBankTerminalForm, type IBankTerminalOption, type IBankTerminalResponse, type IBaseField, type IBatch, type IBatchResponse, type IButton, type ICategory, type ICategoryResponse, type IClient, type IClientDataForTable, type IClientRequest, type IClientResponse, type IClientResponseById, type IDateField, type IEmailField, type IExchange, type IExchangeResponse, type IField, type IFileField, type IGender, type IHiddenField, type ILocation, type ILocationResponse, type IMaterial, type IMeta, type IModule, type IMovement, type IMovementResponse, type IMultiSelectField, type INumberField, type IOptions, type IOrder, type IOrderResponse, type IPasswordField, type IPayment, type IPaymentMethod, type IPaymentMethodAmountExpected, type IPermissionRole, type IPricePerGramHistory, type IPriceType, type IPriceTypeResponse, type IProduct, type IProductDetails, type IProductDetailsResponse, type IProductResponse, type IProductVariantRequest, type IPromotion, type IPromotionResponse, type IPromotionType, type IProvider, type IProviderForSelect, type IProviderRequest, type IProviderResponse, type IReportComparisonByTimeFrame, type IReportInventory, type IReportX, type IReportZ, type IRequest, type IReview, type IRole, type ISelect, type ISelectField, type ISidebarGroup, type ISidebarLink, type ISidebarSubLink, type IStock, type IStockByWarehouseReport, type IStockMovement, type IStockMovementResponse, type ISwitchField, type ITag, type ITagField, type ITax, type ITaxResponse, type ITextField, type IUpdatePermission, type IUser, type IUserForm, type IWareHouse, type IWareHouseResponse, type IWareHouseSelect, type LocationResponse, type LoginResponse, type MaterialResponse, type MaterialSummary, type MovementResponse, type NavLinks, type PaymentOptions, type PaymentType, type Period, Permission, type PermissionRole, type PriceCalculationResponse, type PricePerGramForm, type PricePerGramResponse, type PrintProductTagResponse, type PrintQRResponse, type ProdStats, type ProdStock, type ProductInfo, type ProductOptions, PromotionTypeEnum, type QRBaseUrlResponse, type ReportData, type ReportDataProduct, type Response, type SchedulePriceRequest, type StateResponse, type TagData, type TblCategories, type TblMaterials, type TblModules, type TblMoneyTransactionTypes, type TblMoneyTransactions, type TblOrderDetail, type TblOrderDetailsMoneyTransactions, type TblOrderStatus, type TblPermissions, type TblPriceTypes, type TblProducts, type TblProductsImage, type TblProductsTag, type TblPromotionTypes, type TblPromotionsTargetProductIDTotblProduct, type TblProvidersTblProvidersUserIDTotblUser, type TblReturn, type TblReturnDetail, type TblRoles, type TblRolesTblUsersRoleIDTotblRoles, type TblTags, type TblUsersTblProvidersUserIDTotblUsers, type TblUsersTblTotblUsers, type TourActions, type TourConfig, type TourState, type TourStep, type TourStepSide, type UpdateBatchData, type UpdatePriceRequest, type UserResponse, type WarehouseResponse, type WeightBasedSale, api, attributeKeys, bankTerminalKeys, batchKeys, categoryKeys, changeOrderProduct, checkPendingReportZ, clientKeys, closeShift, configureApi, createAttribute, createAttributeValue, createAttributesForCategory, createAttributesValuesBatch, createBankTerminal, createBatch, createBatchAndUpdateOtherBatches, createCategory, createClient, createExchangeRate, createLocation, createMaterial, createMovement, createPriceType, createProduct, createProductVariant, createPromotion, createProvider, createReturn, createRole, createUser, createWareHouse, deleteAttribute, deleteBankTerminal, deleteCategory, deleteClient, deleteImageFromProduct, deleteLocation, deleteMaterial, deletePriceType, deleteProduct, deleteProductVariant, deleteProvider, deleteRole, deleteUser, deleteWarehouse, exchangeKeys, folioKeys, genderKeys, getAllAgents, getAllBankTerminals, getAllCategories, getAllClients, getAllGenders, getAllLocations, getAllMaterials, getAllModules, getAllPermissions, getAllPriceTypes, getAllProviders, getAllStates, getAllTags, getAttributeById, getAttributeValues, getAttributes, getAttributesByCategoryID, getAttributesByProductID, getAttributesForSelect, getBankTerminalById, getBankTerminals, getBankTerminalsForSelect, getBatches, getBatchesForSelect, getCategories, getCategoriesForSelect, getCategoryById, getClientById, getClientsForSelect, getExchangeRate, getExchangeRates, getLocationById, getLocations, getLocationsForSelect, getMatchedBatches, getMaterialById, getMaterials, getMaterialsForSelect, getMovements, getOrderById, getOrders, getOrdersStatusForSelect, getPaymentMethods, getPaymentMethodsWithAmountExpected, getPaymentTypes, getPermissionRoleByRoleID, getPriceTypeById, getPriceTypesForSelect, getProductById, getProductVariantById, getProductVariants, getProductVariantsForSelect, getProducts, getProductsByCategory, getProductsForSelect, getProductsTable, getPromotionById, getPromotions, getPromotionsTypeForSelect, getProviderById, getProvidersForSelect, getQRBaseUrl, getReportByInventory, getReportComparisonByTimeFrame, getReportX, getReportZ, getReturnsByOrderId, getRoleByID, getRoles, getSellersOfDayForSelect, getSellersWithShift, getStockByWarehouseReport, getTaxesForSelect, getUserById, getUsers, getWarehouseById, getWarehouses, getWarehousesForSelect, healthKeys, healthService, isAValidDiscountCode, locationKeys, login, makeNewCashMovement, materialKeys, moduleKeys, orderKeys, paymentKeys, permissionKeys, pricePerGramKeys, pricePerGramService, priceTypeKeys, printProductTag, printQR, printReportX, printReportZ, productKeys, productTagKeys, promotionKeys, providerKeys, qrKeys, reportKeys, restoreBankTerminal, restoreCategory, restoreClient, restoreLocation, restoreProduct, restoreProductVariant, restoreProvider, restoreUser, restoreWarehouse, returnKeys, roleKeys, sendCreditPaymentData, sendPaymentData, setNewShift, stateKeys, stockMovementKeys, taxKeys, undeleteAttribute, undeleteMaterial, undeletePriceType, updateAttribute, updateAttributesForCategory, updateBankTerminal, updateBatch, updateCategory, updateClient, updateLocation, updateMaterial, updatePermission, updatePriceType, updateProduct, updateProductVariant, updatePromotion, updateProvider, updateRole, updateUser, updateWarehouse, useAllAgents, useAllBankTerminals, useAllCategories, useAllGenders, useAllLocations, useAllMaterials, useAllModules, useAllProductTags, useAllStates, useAttribute, useAttributeValues, useAttributes, useAttributesByCategoryID, useAttributesByProductID, useAttributesForSelect, useBankTerminal, useBankTerminals, useBankTerminalsForSelect, useBatches, useBatchesForSelect, useCalculatePricePerGram, useCategories, useCategoriesForSelect, useCategory, useChangeOrderProduct, useClient, useClients, useClientsForSelect, useCloseShift, useCreateAttribute, useCreateAttributeValue, useCreateAttributesForCategory, useCreateAttributesValuesBatch, useCreateBankTerminal, useCreateBatch, useCreateBatchAndUpdateOtherBatches, useCreateCategory, useCreateClient, useCreateExchangeRate, useCreateLocation, useCreateMaterial, useCreateMovement, useCreatePriceType, useCreateProduct, useCreateProductVariant, useCreatePromotion, useCreateProvider, useCreateReturn, useCreateRole, useCreateUser, useCreateWarehouse, useDeleteAttribute, useDeleteBankTerminal, useDeleteCategory, useDeleteClient, useDeleteFuturePricePerGram, useDeleteImageFromProduct, useDeleteLocation, useDeleteMaterial, useDeletePriceType, useDeleteProduct, useDeleteProductVariant, useDeleteProvider, useDeleteRole, useDeleteUser, useDeleteWarehouse, useExchangeRate, useExchangeRates, useHealthCheck, useIsWeightBased, useLocation, useLocations, useLocationsForSelect, useLogin, useMakeNewCashMovement, useMatchedBatches, useMaterial, useMaterials, useMaterialsForSelect, useMovements, useNextFolioToUseInBatches, useOrder, useOrders, useOrdersStatusForSelect, usePaymentMethods, usePaymentMethodsWithAmountExpected, usePaymentTypes, usePendingReportZ, usePermissionRoleByRoleID, usePermissions, usePrefetchCategory, usePricePerGram, usePricePerGramHistory, usePriceType, usePriceTypes, usePriceTypesForSelect, usePrintQR, usePrintReportX, usePrintReportZ, useProduct, useProductVariant, useProductVariants, useProductVariantsForSelect, useProducts, useProductsByCategory, useProductsForSelect, useProductsTable, usePromotion, usePromotions, usePromotionsTypeForSelect, useProvider, useProviders, useProvidersForSelect, useQRBaseUrl, useReportByInventory, useReportComparisonByTimeFrame, useReportX, useReportZ, useRestoreBankTerminal, useRestoreCategory, useRestoreClient, useRestoreLocation, useRestoreProduct, useRestoreProductVariant, useRestoreProvider, useRestoreUser, useRestoreWarehouse, useReturnsByOrderId, useRole, useRoles, useSchedulePricePerGram, useSellersOfDayForSelect, useSellersWithShift, useSendCreditPayment, useSendPayment, useSetNewShift, useStockByWarehouseReport, useTaxesForSelect, useUndeleteAttribute, useUndeleteMaterial, useUndeletePriceType, useUpdateAttribute, useUpdateAttributesForCategory, useUpdateBankTerminal, useUpdateBatch, useUpdateCategory, useUpdateClient, useUpdateFuturePricePerGram, useUpdateLocation, useUpdateMaterial, useUpdatePermission, useUpdatePricePerGram, useUpdatePriceType, useUpdateProduct, useUpdateProductVariant, useUpdatePromotion, useUpdateProvider, useUpdateRole, useUpdateUser, useUpdateWarehouse, useUser, useUsers, useValidateDiscountCode, useWarehouse, useWarehouses, useWarehousesForSelect, userKeys, warehouseKeys };