erp-pos-ecommerce-shared 0.0.8 → 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;
@@ -1483,20 +1485,20 @@ declare const getAttributesForSelect: () => Promise<IAttribute[]>;
1483
1485
  declare const getAttributeById: ({ attributeId }: {
1484
1486
  attributeId: string;
1485
1487
  }) => Promise<IAttribute>;
1486
- declare const getAttributesByProductID: ({ productID }: {
1487
- productID: string;
1488
+ declare const getAttributesByProductID: ({ productId }: {
1489
+ productId: string;
1488
1490
  }) => Promise<IAttribute[]>;
1489
1491
  declare const getAttributesByCategoryID: ({ categoryID }: {
1490
1492
  categoryID: string;
1491
1493
  }) => Promise<IAttribute[]>;
1492
- declare const getAttributeValues: ({ attributeID }: {
1493
- attributeID: string;
1494
+ declare const getAttributeValues: ({ attributeId }: {
1495
+ attributeId: string;
1494
1496
  }) => Promise<IAttributeValue[]>;
1495
1497
  declare const createAttribute: ({ attribute }: {
1496
1498
  attribute: {
1497
1499
  name: string;
1498
1500
  values: string[];
1499
- productID: number;
1501
+ productId: number;
1500
1502
  };
1501
1503
  }) => Promise<IAttribute>;
1502
1504
  declare const createAttributesValuesBatch: ({ productId, attributeValues, }: {
@@ -1508,7 +1510,7 @@ declare const createAttributesValuesBatch: ({ productId, attributeValues, }: {
1508
1510
  }) => Promise<IAttributeValue[]>;
1509
1511
  declare const createAttributesForCategory: ({ attributes }: {
1510
1512
  attributes: {
1511
- categoryID: string;
1513
+ categoryId: string;
1512
1514
  attributes: {
1513
1515
  name: string;
1514
1516
  values: string[];
@@ -1516,24 +1518,24 @@ declare const createAttributesForCategory: ({ attributes }: {
1516
1518
  }[];
1517
1519
  };
1518
1520
  }) => Promise<IAttribute>;
1519
- declare const updateAttribute: ({ id, attribute }: {
1520
- id: string;
1521
+ declare const updateAttribute: ({ attributeId, attribute }: {
1522
+ attributeId: string;
1521
1523
  attribute: IAttribute;
1522
1524
  }) => Promise<IAttribute>;
1523
- declare const updateAttributesForCategory: ({ id, attributes }: {
1524
- id: string;
1525
+ declare const updateAttributesForCategory: ({ categoryId, attributes }: {
1526
+ categoryId: string;
1525
1527
  attributes: {
1526
1528
  attributes: string[];
1527
1529
  };
1528
1530
  }) => Promise<IAttribute>;
1529
- declare const deleteAttribute: ({ id }: {
1530
- id: string;
1531
+ declare const deleteAttribute: ({ attributeId }: {
1532
+ attributeId: string;
1531
1533
  }) => Promise<IAttribute>;
1532
- declare const undeleteAttribute: ({ id }: {
1533
- id: string;
1534
+ declare const undeleteAttribute: ({ attributeId }: {
1535
+ attributeId: string;
1534
1536
  }) => Promise<IAttribute>;
1535
- declare const createAttributeValue: ({ attributeID, value }: {
1536
- attributeID: number;
1537
+ declare const createAttributeValue: ({ attributeId, value }: {
1538
+ attributeId: number;
1537
1539
  value: string;
1538
1540
  }) => Promise<IAttributeValue>;
1539
1541
 
@@ -1552,40 +1554,40 @@ declare const getBankTerminals: ({ skip, limit, query }: BankTerminalQuery) => P
1552
1554
  declare const getBankTerminalById: ({ terminalId }: {
1553
1555
  terminalId: number;
1554
1556
  }) => Promise<IBankTerminal>;
1555
- declare const updateBankTerminal: ({ id, terminal }: {
1556
- id: number;
1557
+ declare const updateBankTerminal: ({ terminalId, terminal }: {
1558
+ terminalId: number;
1557
1559
  terminal: IBankTerminalForm;
1558
1560
  }) => Promise<IBankTerminal>;
1559
1561
  declare const createBankTerminal: ({ terminal }: {
1560
1562
  terminal: IBankTerminalForm;
1561
1563
  }) => Promise<IBankTerminal>;
1562
- declare const deleteBankTerminal: ({ terminalID }: {
1563
- terminalID: number;
1564
+ declare const deleteBankTerminal: ({ terminalId }: {
1565
+ terminalId: number;
1564
1566
  }) => Promise<void>;
1565
- declare const restoreBankTerminal: ({ terminalID }: {
1566
- terminalID: number;
1567
+ declare const restoreBankTerminal: ({ terminalId }: {
1568
+ terminalId: number;
1567
1569
  }) => Promise<void>;
1568
1570
 
1569
1571
  interface BatchQuery {
1570
1572
  skip?: number;
1571
1573
  limit?: number;
1572
1574
  query?: string;
1573
- productID?: number;
1575
+ productId?: number;
1574
1576
  }
1575
1577
  declare const getBatchesForSelect: () => Promise<IBatch[]>;
1576
- declare const getBatches: ({ skip, limit, query, productID }: BatchQuery) => Promise<IBatchResponse>;
1578
+ declare const getBatches: ({ skip, limit, query, productId }: BatchQuery) => Promise<IBatchResponse>;
1577
1579
  declare const createBatch: (batch: FormData) => Promise<IBatch>;
1578
1580
  declare const createBatchAndUpdateOtherBatches: (batch: FormData) => Promise<IBatch>;
1579
- declare const getMatchedBatches: ({ productDetailID }: {
1580
- productDetailID: number;
1581
+ declare const getMatchedBatches: ({ productDetailId }: {
1582
+ productDetailId: number;
1581
1583
  }) => Promise<IBatch[]>;
1582
1584
  interface UpdateBatchData {
1583
1585
  unitCost?: number;
1584
1586
  unitSellingPrice?: number;
1585
1587
  profitPercentage?: number;
1586
1588
  }
1587
- declare const updateBatch: ({ batchID, batchData }: {
1588
- batchID: number;
1589
+ declare const updateBatch: ({ batchId, batchData }: {
1590
+ batchId: number;
1589
1591
  batchData: UpdateBatchData;
1590
1592
  }) => Promise<IBatch>;
1591
1593
 
@@ -1600,18 +1602,18 @@ declare const getCategories: ({ skip, limit, query }: CategoryQuery$1) => Promis
1600
1602
  declare const getCategoryById: ({ categoryId }: {
1601
1603
  categoryId: number;
1602
1604
  }) => Promise<ICategory>;
1603
- declare const updateCategory: ({ id, category }: {
1604
- id: number;
1605
+ declare const updateCategory: ({ categoryId, category }: {
1606
+ categoryId: number;
1605
1607
  category: ICategory;
1606
1608
  }) => Promise<ICategory>;
1607
1609
  declare const createCategory: ({ category }: {
1608
1610
  category: ICategory;
1609
1611
  }) => Promise<ICategory>;
1610
- declare const deleteCategory: ({ categoryID }: {
1611
- categoryID: number;
1612
+ declare const deleteCategory: ({ categoryId }: {
1613
+ categoryId: number;
1612
1614
  }) => Promise<void>;
1613
- declare const restoreCategory: ({ categoryID }: {
1614
- categoryID: number;
1615
+ declare const restoreCategory: ({ categoryId }: {
1616
+ categoryId: number;
1615
1617
  }) => Promise<void>;
1616
1618
 
1617
1619
  declare const getAllClients: ({ skip, limit, query }: {
@@ -1620,19 +1622,19 @@ declare const getAllClients: ({ skip, limit, query }: {
1620
1622
  query?: string;
1621
1623
  }) => Promise<IClientResponse>;
1622
1624
  declare const getClientsForSelect: () => Promise<IClient[]>;
1623
- declare const getClientById: ({ clientID }: {
1624
- clientID: number;
1625
+ declare const getClientById: ({ clientId }: {
1626
+ clientId: number;
1625
1627
  }) => Promise<IClientResponseById>;
1626
1628
  declare const createClient: (client: IClientRequest) => Promise<IClientResponse>;
1627
1629
  declare const updateClient: ({ client, id }: {
1628
1630
  id: string;
1629
1631
  client: IClient;
1630
1632
  }) => Promise<IClientResponse>;
1631
- declare const deleteClient: ({ clientID }: {
1632
- clientID: number;
1633
+ declare const deleteClient: ({ clientId }: {
1634
+ clientId: number;
1633
1635
  }) => Promise<IClientResponse>;
1634
- declare const restoreClient: ({ clientID }: {
1635
- clientID: number;
1636
+ declare const restoreClient: ({ clientId }: {
1637
+ clientId: number;
1636
1638
  }) => Promise<IClientResponse>;
1637
1639
 
1638
1640
  interface ExchangeQuery {
@@ -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 {
@@ -1715,16 +1717,16 @@ declare const getLocations: ({ skip, limit, query }: LocationQuery) => Promise<I
1715
1717
  declare const getLocationById: ({ locationId }: {
1716
1718
  locationId: number;
1717
1719
  }) => Promise<ILocation>;
1718
- declare const updateLocation: ({ id, location }: {
1719
- id: number;
1720
+ declare const updateLocation: ({ locationId, location }: {
1721
+ locationId: number;
1720
1722
  location: FormData;
1721
1723
  }) => Promise<ILocation>;
1722
1724
  declare const createLocation: (location: FormData) => Promise<ILocation>;
1723
- declare const deleteLocation: ({ physicalLocationID }: {
1724
- physicalLocationID: number;
1725
+ declare const deleteLocation: ({ physicalLocationId }: {
1726
+ physicalLocationId: number;
1725
1727
  }) => Promise<void>;
1726
- declare const restoreLocation: ({ physicalLocationID }: {
1727
- physicalLocationID: number;
1728
+ declare const restoreLocation: ({ physicalLocationId }: {
1729
+ physicalLocationId: number;
1728
1730
  }) => Promise<void>;
1729
1731
 
1730
1732
  interface MaterialResponse {
@@ -1740,22 +1742,22 @@ interface MaterialQuery {
1740
1742
  }
1741
1743
  declare const getAllMaterials: () => Promise<IMaterial[]>;
1742
1744
  declare const getMaterials: ({ skip, limit, query }: MaterialQuery) => Promise<MaterialResponse>;
1743
- declare const getMaterialById: ({ materialID }: {
1744
- materialID: number;
1745
+ declare const getMaterialById: ({ materialId }: {
1746
+ materialId: number;
1745
1747
  }) => Promise<IMaterial>;
1746
1748
  declare const getMaterialsForSelect: () => Promise<IMaterial[]>;
1747
1749
  declare const createMaterial: ({ material }: {
1748
1750
  material: IMaterial;
1749
1751
  }) => Promise<IMaterial>;
1750
- declare const updateMaterial: ({ materialID, material }: {
1751
- materialID: number;
1752
+ declare const updateMaterial: ({ materialId, material }: {
1753
+ materialId: number;
1752
1754
  material: IMaterial;
1753
1755
  }) => Promise<IMaterial>;
1754
- declare const deleteMaterial: ({ materialID }: {
1755
- materialID: number;
1756
+ declare const deleteMaterial: ({ materialId }: {
1757
+ materialId: number;
1756
1758
  }) => Promise<void>;
1757
- declare const undeleteMaterial: ({ materialID }: {
1758
- materialID: number;
1759
+ declare const undeleteMaterial: ({ materialId }: {
1760
+ materialId: number;
1759
1761
  }) => Promise<void>;
1760
1762
 
1761
1763
  declare const getAllModules: () => Promise<IModule[]>;
@@ -1770,8 +1772,8 @@ declare const getOrders: ({ skip, limit, query, commissionedBy, orderStatus, sta
1770
1772
  endDate?: string | null;
1771
1773
  showOnlyReturns?: boolean;
1772
1774
  }) => Promise<IOrderResponse>;
1773
- declare const getOrderById: ({ orderID }: {
1774
- orderID: number;
1775
+ declare const getOrderById: ({ orderId }: {
1776
+ orderId: number;
1775
1777
  }) => Promise<IOrder>;
1776
1778
  declare const getOrdersStatusForSelect: () => Promise<TblOrderStatus[]>;
1777
1779
  interface ChangeProductRequest {
@@ -1796,9 +1798,9 @@ declare const sendPaymentData: ({ payment }: {
1796
1798
  }) => Promise<IPayment>;
1797
1799
  declare const getPaymentMethods: () => Promise<IPaymentMethod[]>;
1798
1800
  declare const getPaymentMethodsWithAmountExpected: () => Promise<IPaymentMethodAmountExpected[]>;
1799
- declare const sendCreditPaymentData: ({ payment, orderID }: {
1801
+ declare const sendCreditPaymentData: ({ payment, orderId }: {
1800
1802
  payment: IPayment;
1801
- orderID: number;
1803
+ orderId: number;
1802
1804
  }) => Promise<IPayment>;
1803
1805
 
1804
1806
  interface IUpdatePermission {
@@ -1807,33 +1809,33 @@ interface IUpdatePermission {
1807
1809
  }
1808
1810
  declare const getAllPermissions: () => Promise<IPermissionRole>;
1809
1811
  declare const updatePermission: (permission: IUpdatePermission) => Promise<IUpdatePermission>;
1810
- declare const getPermissionRoleByRoleID: ({ roleID }: {
1811
- roleID: number;
1812
+ declare const getPermissionRoleByRoleID: ({ roleId }: {
1813
+ roleId: number;
1812
1814
  }) => Promise<PermissionRole[]>;
1813
1815
 
1814
1816
  declare const pricePerGramService: {
1815
1817
  getPrice(params: {
1816
- productDetailID?: number;
1817
- productID?: number;
1818
- materialID?: number;
1818
+ productDetailId?: number;
1819
+ productId?: number;
1820
+ materialId?: number;
1819
1821
  }): Promise<PricePerGramResponse>;
1820
1822
  updatePrice(request: UpdatePriceRequest): Promise<void>;
1821
- getHistory({ entityType, entityID, limit }: {
1823
+ getHistory({ entityType, entityId, limit }: {
1822
1824
  entityType: "material" | "product" | "productDetail";
1823
- entityID: number;
1825
+ entityId: number;
1824
1826
  limit?: number;
1825
1827
  }): Promise<IPricePerGramHistory[]>;
1826
1828
  schedulePrice(request: SchedulePriceRequest): Promise<void>;
1827
1829
  calculatePrice(request: CalculatePriceRequest): Promise<PriceCalculationResponse>;
1828
- deleteFuturePrice({ historyID }: {
1829
- historyID: number;
1830
+ deleteFuturePrice({ historyId }: {
1831
+ historyId: number;
1830
1832
  }): Promise<void>;
1831
- updateFuturePrice({ historyID, request }: {
1832
- historyID: number;
1833
+ updateFuturePrice({ historyId, request }: {
1834
+ historyId: number;
1833
1835
  request: SchedulePriceRequest;
1834
1836
  }): Promise<void>;
1835
- isWeightBased({ productDetailID }: {
1836
- productDetailID: number;
1837
+ isWeightBased({ productDetailId }: {
1838
+ productDetailId: number;
1837
1839
  }): Promise<boolean>;
1838
1840
  };
1839
1841
 
@@ -1842,18 +1844,18 @@ declare const getAllPriceTypes: ({ skip, limit, query }: IRequest) => Promise<IP
1842
1844
  declare const createPriceType: ({ priceType }: {
1843
1845
  priceType: IPriceType;
1844
1846
  }) => Promise<IPriceType>;
1845
- declare const getPriceTypeById: ({ priceTypeID }: {
1846
- priceTypeID: number;
1847
+ declare const getPriceTypeById: ({ priceTypeId }: {
1848
+ priceTypeId: number;
1847
1849
  }) => Promise<IPriceType>;
1848
- declare const updatePriceType: ({ priceTypeID, priceType }: {
1849
- priceTypeID: number;
1850
+ declare const updatePriceType: ({ priceTypeId, priceType }: {
1851
+ priceTypeId: number;
1850
1852
  priceType: IPriceType;
1851
1853
  }) => Promise<IPriceType>;
1852
- declare const deletePriceType: ({ priceTypeID }: {
1853
- priceTypeID: number;
1854
+ declare const deletePriceType: ({ priceTypeId }: {
1855
+ priceTypeId: number;
1854
1856
  }) => Promise<void>;
1855
- declare const undeletePriceType: ({ priceTypeID }: {
1856
- priceTypeID: number;
1857
+ declare const undeletePriceType: ({ priceTypeId }: {
1858
+ priceTypeId: number;
1857
1859
  }) => Promise<void>;
1858
1860
 
1859
1861
  interface ProductQuery {
@@ -1873,48 +1875,48 @@ declare const getProductsTable: ({ skip, limit, filters }: ProductQuery) => Prom
1873
1875
  declare const getProductById: ({ productId }: {
1874
1876
  productId: number;
1875
1877
  }) => Promise<IProduct>;
1876
- declare const getProductVariants: ({ productID, skip, limit, query }: {
1877
- productID: number;
1878
+ declare const getProductVariants: ({ productId, skip, limit, query }: {
1879
+ productId: number;
1878
1880
  skip?: number;
1879
1881
  limit?: number;
1880
1882
  query?: string;
1881
1883
  }) => Promise<IProductDetailsResponse>;
1882
- declare const getProductVariantsForSelect: ({ productID }: {
1883
- productID: number;
1884
+ declare const getProductVariantsForSelect: ({ productId }: {
1885
+ productId: number;
1884
1886
  }) => Promise<IProductDetails[]>;
1885
- declare const getProductVariantById: ({ id }: {
1886
- id: number;
1887
+ declare const getProductVariantById: ({ productDetailId }: {
1888
+ productDetailId: number;
1887
1889
  }) => Promise<IProductDetails>;
1888
1890
  declare const createProductVariant: (variant: FormData) => Promise<IProductDetails>;
1889
1891
  declare const updateProductVariant: (data: FormData) => Promise<IProductDetails>;
1890
- declare const deleteProductVariant: ({ productDetailID }: {
1891
- productDetailID: number;
1892
+ declare const deleteProductVariant: ({ productDetailId }: {
1893
+ productDetailId: number;
1892
1894
  }) => Promise<void>;
1893
- declare const restoreProductVariant: ({ productDetailID }: {
1894
- productDetailID: number;
1895
+ declare const restoreProductVariant: ({ productDetailId }: {
1896
+ productDetailId: number;
1895
1897
  }) => Promise<void>;
1896
1898
  declare const createProduct: (product: FormData) => Promise<IProduct>;
1897
- declare const updateProduct: ({ id, product }: {
1898
- id: number;
1899
+ declare const updateProduct: ({ productId, product }: {
1900
+ productId: number;
1899
1901
  product: FormData;
1900
1902
  }) => Promise<IProduct>;
1901
1903
  declare const deleteImageFromProduct: ({ imageId }: {
1902
1904
  imageId: number;
1903
1905
  }) => Promise<void>;
1904
- declare const deleteProduct: ({ productID }: {
1905
- productID: number;
1906
+ declare const deleteProduct: ({ productId }: {
1907
+ productId: number;
1906
1908
  }) => Promise<void>;
1907
- declare const restoreProduct: ({ productID }: {
1908
- productID: number;
1909
+ declare const restoreProduct: ({ productId }: {
1910
+ productId: number;
1909
1911
  }) => Promise<void>;
1910
1912
  declare const getProductsByCategory: ({ category, skip, limit, filters }: CategoryQuery) => Promise<IProductResponse>;
1911
1913
  interface PrintProductTagResponse {
1912
1914
  message?: string;
1913
1915
  [key: string]: unknown;
1914
1916
  }
1915
- declare const printProductTag: ({ stockID, productID, isSmall }: {
1916
- stockID: number;
1917
- productID: number;
1917
+ declare const printProductTag: ({ stockId, productId, isSmall }: {
1918
+ stockId: number;
1919
+ productId: number;
1918
1920
  isSmall: boolean;
1919
1921
  }) => Promise<PrintProductTagResponse>;
1920
1922
 
@@ -1944,20 +1946,20 @@ declare const getAllProviders: ({ skip, limit, query }: {
1944
1946
  limit: number;
1945
1947
  query?: string;
1946
1948
  }) => Promise<IProviderResponse>;
1947
- declare const getProviderById: ({ providerID }: {
1948
- providerID: number;
1949
+ declare const getProviderById: ({ providerId }: {
1950
+ providerId: number;
1949
1951
  }) => Promise<IProvider>;
1950
1952
  declare const getProvidersForSelect: () => Promise<IProviderForSelect[]>;
1951
1953
  declare const createProvider: (provider: IProviderRequest) => Promise<IProviderResponse>;
1952
- declare const updateProvider: ({ providerID, provider }: {
1953
- providerID: string;
1954
+ declare const updateProvider: ({ providerId, provider }: {
1955
+ providerId: string;
1954
1956
  provider: IProvider;
1955
1957
  }) => Promise<IProviderResponse>;
1956
- declare const deleteProvider: ({ providerID }: {
1957
- providerID: number;
1958
+ declare const deleteProvider: ({ providerId }: {
1959
+ providerId: number;
1958
1960
  }) => Promise<IProviderResponse>;
1959
- declare const restoreProvider: ({ providerID }: {
1960
- providerID: number;
1961
+ declare const restoreProvider: ({ providerId }: {
1962
+ providerId: number;
1961
1963
  }) => Promise<IProviderResponse>;
1962
1964
 
1963
1965
  interface QRBaseUrlResponse {
@@ -1982,8 +1984,8 @@ declare const getQRBaseUrl: () => Promise<string>;
1982
1984
  * Imprime un código QR en la impresora térmica.
1983
1985
  * El backend construye la URL: {QR_BASE_URL}/producto/{productDetailID}
1984
1986
  */
1985
- declare const printQR: ({ productDetailID, printerName }: {
1986
- productDetailID: number;
1987
+ declare const printQR: ({ productDetailId, printerName }: {
1988
+ productDetailId: number;
1987
1989
  printerName?: string;
1988
1990
  }) => Promise<PrintQRResponse>;
1989
1991
 
@@ -2038,16 +2040,16 @@ declare const getReturnsByOrderId: ({ orderId }: {
2038
2040
  }) => Promise<GetReturnsByOrderIdResponse>;
2039
2041
 
2040
2042
  declare const getRoles: () => Promise<IRole[]>;
2041
- declare const getRoleByID: ({ roleID }: {
2042
- roleID: number;
2043
+ declare const getRoleByID: ({ roleId }: {
2044
+ roleId: number;
2043
2045
  }) => Promise<IRole>;
2044
2046
  declare const createRole: (role: IRole) => Promise<IRole>;
2045
- declare const updateRole: ({ roleID, role }: {
2046
- roleID: number;
2047
+ declare const updateRole: ({ roleId, role }: {
2048
+ roleId: number;
2047
2049
  role: IRole;
2048
2050
  }) => Promise<IRole>;
2049
- declare const deleteRole: ({ roleID }: {
2050
- roleID: number;
2051
+ declare const deleteRole: ({ roleId }: {
2052
+ roleId: number;
2051
2053
  }) => Promise<void>;
2052
2054
 
2053
2055
  interface MovementQuery {
@@ -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;
@@ -2169,16 +2171,1151 @@ declare const getWarehouses: ({ skip, limit, query }: WareHouseQuery) => Promise
2169
2171
  declare const getWarehouseById: ({ warehouseId }: {
2170
2172
  warehouseId: number;
2171
2173
  }) => Promise<IWareHouse>;
2172
- declare const updateWarehouse: ({ id, warehouse }: {
2173
- id: number;
2174
+ declare const updateWarehouse: ({ warehouseId, warehouse }: {
2175
+ warehouseId: number;
2174
2176
  warehouse: FormData;
2175
2177
  }) => Promise<IWareHouse>;
2176
2178
  declare const createWareHouse: (warehouse: FormData) => Promise<IWareHouse>;
2177
- declare const deleteWarehouse: ({ warehouseID }: {
2178
- warehouseID: number;
2179
+ declare const deleteWarehouse: ({ warehouseId }: {
2180
+ warehouseId: number;
2179
2181
  }) => Promise<void>;
2180
- declare const restoreWarehouse: ({ warehouseID }: {
2181
- warehouseID: number;
2182
+ declare const restoreWarehouse: ({ warehouseId }: {
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 };