erp-pos-ecommerce-shared 0.2.0 → 0.2.2
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/components.d.ts +2 -2
- package/dist/components.js.map +1 -1
- package/dist/{filters.interface-Cx-AXMPz.d.ts → filters.interface-glhGBJfx.d.ts} +59 -47
- package/dist/{form.interface-CqnTdmc8.d.ts → form.interface-CO6P9ez0.d.ts} +1 -1
- package/dist/hooks.d.ts +18 -10
- package/dist/hooks.js +101 -12
- package/dist/hooks.js.map +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.js +103 -14
- package/dist/index.js.map +1 -1
- package/dist/interfaces.d.ts +3 -3
- package/dist/queries.d.ts +30 -5
- package/dist/queries.js +50 -0
- package/dist/queries.js.map +1 -1
- package/dist/services.d.ts +10 -4
- package/dist/services.js +25 -1
- package/dist/services.js.map +1 -1
- package/dist/{shift.queries-DF8gfQOQ.d.ts → shift.queries-BbWWhwdp.d.ts} +4 -3
- package/dist/{warehouse.interface-BRPPyPIC.d.ts → warehouse.interface-fnr42ygU.d.ts} +1 -1
- package/dist/{warehouse.service-geeduO1g.d.ts → warehouse.service-CDDl5yeV.d.ts} +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export { configureEnv, getIsDevEnv } from './config.js';
|
|
2
|
-
export { B as BatchData, I as IAttribute, a as
|
|
3
|
-
export { A as AgentResponse, B as BankTerminalQuery, a as BankTerminalResponse, C as CalculatePriceRequest, b as ChartType, c as ComparisonBy, D as DateRange, I as IAgent, d as IBankTerminal, e as IBankTerminalForm, f as IBankTerminalOption, g as IBankTerminalResponse, h as IClient, i as IClientDataForTable, j as IClientRequest, k as IClientResponse, l as IClientResponseById, m as IGender, n as ILocation, o as ILocationResponse, p as IMaterial, q as IMeta, r as IModule, s as IMovement, t as IMovementResponse, u as IOrder, v as IOrderResponse, w as IPayment, x as IPaymentMethod, y as IPaymentMethodAmountExpected, z as IPermissionRole, E as IPricePerGramHistory, F as IPriceType, G as IPriceTypeResponse, H as IPromotion, J as IPromotionResponse, K as IPromotionType, L as IProvider, M as IProviderForSelect, N as IProviderRequest, O as IProviderResponse, P as IReportComparisonByTimeFrame, Q as IReportInventory, R as IReportX, S as IReportZ, T as IReview, U as IRole, V as IStockByWarehouseReport, W as IStockMovement, X as IStockMovementResponse, Y as ITag, Z as ITax, _ as ITaxResponse, $ as IUser, a0 as IUserForm, a1 as IWareHouse, a2 as IWareHouseResponse, a3 as IWareHouseSelect, a4 as MaterialSummary, a5 as PaymentOptions, a6 as Period, a7 as Permission, a8 as PermissionRole, a9 as PriceCalculationResponse, aa as PricePerGramForm, ab as PricePerGramResponse, ac as ProductInfo, ad as PromotionTypeEnum, ae as ReportData, af as ReportDataProduct, ag as SchedulePriceRequest, ah as TblModules, ai as TblMoneyTransactionTypes, aj as TblMoneyTransactions, ak as TblOrderDetail, al as TblOrderDetailsMoneyTransactions, am as TblOrderStatus, an as TblPermissions, ao as TblPriceTypes, ap as TblProducts, aq as TblPromotionTypes, ar as TblPromotionsTargetProductIDTotblProduct, as as TblProvidersTblProvidersUserIDTotblUser, at as TblReturn, au as TblReturnDetail, av as TblRoles, aw as TblRolesTblUsersRoleIDTotblRoles, ax as TblUsersTblProvidersUserIDTotblUsers, ay as TblUsersTblTotblUsers, az as UpdatePriceRequest, aA as UserResponse, aB as WeightBasedSale } from './warehouse.interface-
|
|
2
|
+
export { B as BatchData, I as IAttribute, a as IAttributeFilter, b as IAttributeQueryParams, c as IAttributeResponse, d as IAttributeValue, e as IBatch, f as IBatchResponse, g as ICategory, h as ICategoryResponse, i as IFilterSelectOption, j as IFilterType, k as IProduct, l as IProductDetails, m as IProductDetailsResponse, n as IProductResponse, o as IProductVariantRequest, p as IStock, q as ITableFilterConfig, P as ProdStats, r as ProdStock, s as ProductOptions, T as TblCategories, t as TblMaterials, u as TblProductsImage, v as TblProductsTag, w as TblTags } from './filters.interface-glhGBJfx.js';
|
|
3
|
+
export { A as AgentResponse, B as BankTerminalQuery, a as BankTerminalResponse, C as CalculatePriceRequest, b as ChartType, c as ComparisonBy, D as DateRange, I as IAgent, d as IBankTerminal, e as IBankTerminalForm, f as IBankTerminalOption, g as IBankTerminalResponse, h as IClient, i as IClientDataForTable, j as IClientRequest, k as IClientResponse, l as IClientResponseById, m as IGender, n as ILocation, o as ILocationResponse, p as IMaterial, q as IMeta, r as IModule, s as IMovement, t as IMovementResponse, u as IOrder, v as IOrderResponse, w as IPayment, x as IPaymentMethod, y as IPaymentMethodAmountExpected, z as IPermissionRole, E as IPricePerGramHistory, F as IPriceType, G as IPriceTypeResponse, H as IPromotion, J as IPromotionResponse, K as IPromotionType, L as IProvider, M as IProviderForSelect, N as IProviderRequest, O as IProviderResponse, P as IReportComparisonByTimeFrame, Q as IReportInventory, R as IReportX, S as IReportZ, T as IReview, U as IRole, V as IStockByWarehouseReport, W as IStockMovement, X as IStockMovementResponse, Y as ITag, Z as ITax, _ as ITaxResponse, $ as IUser, a0 as IUserForm, a1 as IWareHouse, a2 as IWareHouseResponse, a3 as IWareHouseSelect, a4 as MaterialSummary, a5 as PaymentOptions, a6 as Period, a7 as Permission, a8 as PermissionRole, a9 as PriceCalculationResponse, aa as PricePerGramForm, ab as PricePerGramResponse, ac as ProductInfo, ad as PromotionTypeEnum, ae as ReportData, af as ReportDataProduct, ag as SchedulePriceRequest, ah as TblModules, ai as TblMoneyTransactionTypes, aj as TblMoneyTransactions, ak as TblOrderDetail, al as TblOrderDetailsMoneyTransactions, am as TblOrderStatus, an as TblPermissions, ao as TblPriceTypes, ap as TblProducts, aq as TblPromotionTypes, ar as TblPromotionsTargetProductIDTotblProduct, as as TblProvidersTblProvidersUserIDTotblUser, at as TblReturn, au as TblReturnDetail, av as TblRoles, aw as TblRolesTblUsersRoleIDTotblRoles, ax as TblUsersTblProvidersUserIDTotblUsers, ay as TblUsersTblTotblUsers, az as UpdatePriceRequest, aA as UserResponse, aB as WeightBasedSale } from './warehouse.interface-fnr42ygU.js';
|
|
4
4
|
export { D as DataTableConfig, S as ServerTableState, T as TableHeaderStyle, d as defaultDataTableConfig } from './datatable.interface-DbB5oxj-.js';
|
|
5
|
-
export { B as ButtonTypes, F as FieldTypes, a as FileType, I as IBaseField, b as IButton, c as IDateField, d as IEmailField, e as IField, f as IFileField, g as IHiddenField, h as IMultiSelectField, i as INumberField, j as IOptions, k as IPasswordField, l as ISelect, m as ISelectField, n as ISwitchField, o as ITagField, p as ITextField, T as TagData } from './form.interface-
|
|
5
|
+
export { B as ButtonTypes, F as FieldTypes, a as FileType, I as IBaseField, b as IButton, c as IDateField, d as IEmailField, e as IField, f as IFileField, g as IHiddenField, h as IMultiSelectField, i as INumberField, j as IOptions, k as IPasswordField, l as ISelect, m as ISelectField, n as ISwitchField, o as ITagField, p as ITextField, T as TagData } from './form.interface-CO6P9ez0.js';
|
|
6
6
|
export { ISidebarGroup, ISidebarLink, ISidebarSubLink, NavLinks, TourActions, TourConfig, TourState, TourStep, TourStepSide } from './interfaces.js';
|
|
7
7
|
export { I as IRequest } from './util.interface-AOzOjHR0.js';
|
|
8
|
-
export { ErpApiConfig, MovementResponse, PrintProductTagResponse, api, checkPendingReportZ, configureApi, createAttribute, createAttributeValue, createAttributesForCategory, createAttributesValuesBatch, createBankTerminal, createCategory, createClient, createMovement, createPriceType, createProduct, createProductVariant, createPromotion, createProvider, createRole, createUser, deleteAttribute, deleteBankTerminal, deleteCategory, deleteClient, deleteImageFromProduct, deletePriceType, deleteProduct, deleteProductVariant, deleteProvider, deleteRole, deleteUser, getAllAgents, getAllBankTerminals, getAllCategories, getAllClients, getAllGenders, getAllModules, getAllPriceTypes, getAllProviders, getAllTags, getAttributeById, getAttributeValues, getAttributes, getAttributesByCategoryID, getAttributesByProductID, getAttributesForSelect, getBankTerminalById, getBankTerminals, getBankTerminalsForSelect, getCategories, getCategoriesForSelect, getCategoryById, getClientById, getClientsForSelect, getMovements, getPaymentMethods, getPaymentMethodsWithAmountExpected, getPriceTypeById, getPriceTypesForSelect, getProductById, getProductVariantById, getProductVariants, getProductVariantsForSelect, getProducts, getProductsByCategory, getProductsForSelect, getProductsTable, getPromotionById, getPromotions, getPromotionsTypeForSelect, getProviderById, getProvidersForSelect, getReportByInventory, getReportComparisonByTimeFrame, getReportX, getReportZ, getRoleByID, getRoles, getSellersOfDayForSelect, getSellersWithShift, getStockByWarehouseReport, getTaxesForSelect, getUserById, getUsers, healthService, isAValidDiscountCode, pricePerGramService, printProductTag, printReportX, printReportZ, restoreBankTerminal, restoreCategory, restoreClient, restoreProduct, restoreProductVariant, restoreProvider, restoreUser, sendCreditPaymentData, sendPaymentData, undeleteAttribute, undeletePriceType, updateAttribute, updateAttributesForCategory, updateBankTerminal, updateCategory, updateClient, updatePriceType, updateProduct, updateProductVariant, updatePromotion, updateProvider, updateRole, updateUser } from './services.js';
|
|
9
|
-
export { C as ChangeProductRequest, a as ChangeProductResponse, G as GetReturnsByOrderIdResponse, I as IExchange, b as IExchangeResponse, c as IUpdatePermission, L as LocationResponse, d as LoginResponse, M as MaterialResponse, P as PaymentType, e as PrintQRResponse, Q as QRBaseUrlResponse, R as Response, S as StateResponse, U as UpdateBatchData, W as WarehouseResponse, f as changeOrderProduct, g as closeShift, h as createBatch, i as createBatchAndUpdateOtherBatches, j as createExchangeRate, k as createLocation, l as createMaterial, m as createReturn, n as createWareHouse, o as deleteLocation, p as deleteMaterial, q as deleteWarehouse, r as getAllLocations, s as getAllMaterials, t as getAllPermissions, u as getAllStates, v as getBatches, w as getBatchesForSelect, x as getExchangeRate, y as getExchangeRates, z as getLocationById, A as getLocations, B as getLocationsForSelect, D as getMatchedBatches, E as getMaterialById, F as getMaterials, H as getMaterialsForSelect, J as getOrderById, K as getOrders, N as getOrdersStatusForSelect, O as getPaymentTypes, T as getPermissionRoleByRoleID, V as getQRBaseUrl, X as getReturnsByOrderId, Y as getWarehouseById, Z as getWarehouses, _ as getWarehousesForSelect, $ as login, a0 as makeNewCashMovement, a1 as printQR, a2 as restoreLocation, a3 as restoreWarehouse, a4 as setNewShift, a5 as undeleteMaterial, a6 as updateBatch, a7 as updateLocation, a8 as updateMaterial, a9 as updatePermission, aa as updateWarehouse } from './warehouse.service-
|
|
8
|
+
export { ErpApiConfig, MovementResponse, PrintProductTagResponse, api, checkPendingReportZ, configureApi, createAttribute, createAttributeValue, createAttributesForCategory, createAttributesValuesBatch, createBankTerminal, createCategory, createClient, createMovement, createPriceType, createProduct, createProductVariant, createProductVariants, createPromotion, createProvider, createRole, createUser, deleteAttribute, deleteBankTerminal, deleteCategory, deleteClient, deleteImageFromProduct, deletePriceType, deleteProduct, deleteProductVariant, deleteProvider, deleteRole, deleteUser, getAllAgents, getAllBankTerminals, getAllCategories, getAllClients, getAllGenders, getAllModules, getAllPriceTypes, getAllProviders, getAllTags, getAttributeById, getAttributeValues, getAttributes, getAttributesByCategoryID, getAttributesByProductID, getAttributesForSelect, getAttributesTable, getBankTerminalById, getBankTerminals, getBankTerminalsForSelect, getCategories, getCategoriesForSelect, getCategoryById, getClientById, getClientsForSelect, getMovements, getPaymentMethods, getPaymentMethodsWithAmountExpected, getPriceTypeById, getPriceTypesForSelect, getProductById, getProductVariantById, getProductVariants, getProductVariantsForSelect, getProducts, getProductsByCategory, getProductsForSelect, getProductsTable, getPromotionById, getPromotions, getPromotionsTypeForSelect, getProviderById, getProvidersForSelect, getReportByInventory, getReportComparisonByTimeFrame, getReportX, getReportZ, getRoleByID, getRoles, getSellersOfDayForSelect, getSellersWithShift, getStockByWarehouseReport, getTaxesForSelect, getUserById, getUsers, healthService, isAValidDiscountCode, pricePerGramService, printProductTag, printReportX, printReportZ, restoreBankTerminal, restoreCategory, restoreClient, restoreProduct, restoreProductVariant, restoreProvider, restoreUser, sendCreditPaymentData, sendPaymentData, undeleteAttribute, undeletePriceType, updateAttribute, updateAttributesForCategory, updateBankTerminal, updateCategory, updateClient, updatePriceType, updateProduct, updateProductVariant, updatePromotion, updateProvider, updateRole, updateUser } from './services.js';
|
|
9
|
+
export { C as ChangeProductRequest, a as ChangeProductResponse, G as GetReturnsByOrderIdResponse, I as IExchange, b as IExchangeResponse, c as IUpdatePermission, L as LocationResponse, d as LoginResponse, M as MaterialResponse, P as PaymentType, e as PrintQRResponse, Q as QRBaseUrlResponse, R as Response, S as StateResponse, U as UpdateBatchData, W as WarehouseResponse, f as changeOrderProduct, g as closeShift, h as createBatch, i as createBatchAndUpdateOtherBatches, j as createExchangeRate, k as createLocation, l as createMaterial, m as createReturn, n as createWareHouse, o as deleteLocation, p as deleteMaterial, q as deleteWarehouse, r as getAllLocations, s as getAllMaterials, t as getAllPermissions, u as getAllStates, v as getBatches, w as getBatchesForSelect, x as getExchangeRate, y as getExchangeRates, z as getLocationById, A as getLocations, B as getLocationsForSelect, D as getMatchedBatches, E as getMaterialById, F as getMaterials, H as getMaterialsForSelect, J as getOrderById, K as getOrders, N as getOrdersStatusForSelect, O as getPaymentTypes, T as getPermissionRoleByRoleID, V as getQRBaseUrl, X as getReturnsByOrderId, Y as getWarehouseById, Z as getWarehouses, _ as getWarehousesForSelect, $ as login, a0 as makeNewCashMovement, a1 as printQR, a2 as restoreLocation, a3 as restoreWarehouse, a4 as setNewShift, a5 as undeleteMaterial, a6 as updateBatch, a7 as updateLocation, a8 as updateMaterial, a9 as updatePermission, aa as updateWarehouse } from './warehouse.service-CDDl5yeV.js';
|
|
10
10
|
export { T as TableQueryParams } from './types-CiX8AkJA.js';
|
|
11
11
|
export { attributeQueryKeys, attributes, auth, bankTerminalQueryKeys, bankTerminals, batchQueryKeys, batches, categories, categoryQueryKeys, clientQueryKeys, clients, exchange, exchangeQueryKeys, folioQueryKeys, folios, locationQueryKeys, locations, materialQueryKeys, materials, moduleQueryKeys, modules, paymentQueryKeys, payments, permissionQueryKeys, permissions, pricePerGram, pricePerGramQueryKeys, priceTypeQueryKeys, priceTypes, productTagQueryKeys, productTags, promotionQueryKeys, promotions, providerQueryKeys, providers, qr, qrQueryKeys, reportQueryKeys, reports, returnQueryKeys, returns, roleQueryKeys, roles, stateQueryKeys, states, stockMovementQueryKeys, stockMovements, taxQueryKeys, taxes, userQueryKeys, users, warehouseQueryKeys, warehouses } from './queries.js';
|
|
12
|
-
export { C as CloseShiftData, G as GenderResponse, H as HealthCheckResponse, P as ProductQueryParams, U as UseOrdersParams, g as genderQueryKeys, a as genders, h as health, b as healthQueryKeys, o as orderQueryKeys, c as orders, p as productQueryKeys, d as products, s as shifts } from './shift.queries-
|
|
13
|
-
export { ProductFilterColumnMap, UseDataTableOptions, UseDataTableReturn, attributeKeys, bankTerminalKeys, batchKeys, categoryKeys, clientKeys, exchangeKeys, folioKeys, genderKeys, healthKeys, locationKeys, mapTableParamsToProductParams, materialKeys, moduleKeys, orderKeys, paymentKeys, permissionKeys, pricePerGramKeys, priceTypeKeys, productKeys, productTagKeys, promotionKeys, providerKeys, qrKeys, reportKeys, returnKeys, roleKeys, stateKeys, stockMovementKeys, taxKeys, useAllAgents, useAllBankTerminals, useAllCategories, useAllGenders, useAllLocations, useAllMaterials, useAllModules, useAllProductTags, useAllStates, useAttribute, useAttributeValues, useAttributes, useAttributesByCategoryID, useAttributesByProductID, useAttributesForSelect, useAttributesTable, useBankTerminal, useBankTerminals, useBankTerminalsForSelect, useBankTerminalsTable, useBatches, useBatchesForSelect, useBatchesTable, useCalculatePricePerGram, useCategories, useCategoriesForSelect, useCategoriesTable, useCategory, useChangeOrderProduct, useClient, useClients, useClientsForSelect, useClientsTable, useCloseShift, useCreateAttribute, useCreateAttributeValue, useCreateAttributesForCategory, useCreateAttributesValuesBatch, useCreateBankTerminal, useCreateBatch, useCreateBatchAndUpdateOtherBatches, useCreateCategory, useCreateClient, useCreateExchangeRate, useCreateLocation, useCreateMaterial, useCreateMovement, useCreatePriceType, useCreateProduct, useCreateProductVariant, useCreatePromotion, useCreateProvider, useCreateReturn, useCreateRole, useCreateUser, useCreateWarehouse, useDataTable, useDeleteAttribute, useDeleteBankTerminal, useDeleteCategory, useDeleteClient, useDeleteFuturePricePerGram, useDeleteImageFromProduct, useDeleteLocation, useDeleteMaterial, useDeletePriceType, useDeleteProduct, useDeleteProductVariant, useDeleteProvider, useDeleteRole, useDeleteUser, useDeleteWarehouse, useExchangeRate, useExchangeRates, useExchangeRatesTable, useHealthCheck, useInventoryTable, useIsWeightBased, useLocation, useLocations, useLocationsForSelect, useLocationsTable, useLogin, useMakeNewCashMovement, useMatchedBatches, useMaterial, useMaterials, useMaterialsForSelect, useMaterialsTable, useMovements, useMovementsTable, useNextFolioToUseInBatches, useOrder, useOrders, useOrdersStatusForSelect, useOrdersTable, usePaymentMethods, usePaymentMethodsWithAmount, usePaymentMethodsWithAmountExpected, usePaymentTypes, usePendingReportZ, usePermissionRoleByRoleID, usePermissions, usePrefetchAttribute, usePrefetchBankTerminal, usePrefetchCategory, usePrefetchClient, usePrefetchLocation, usePrefetchMaterial, usePrefetchOrder, usePrefetchPriceType, usePrefetchProduct, usePrefetchPromotion, usePrefetchProvider, usePrefetchRole, usePrefetchUser, usePrefetchWarehouse, usePricePerGram, usePricePerGramHistory, usePriceType, usePriceTypes, usePriceTypesForSelect, usePriceTypesTable, usePrintQR, usePrintReportX, usePrintReportZ, useProduct, useProductVariant, useProductVariants, useProductVariantsForSelect, useProducts, useProductsByCategory, useProductsForSelect, useProductsTable, usePromotion, usePromotions, usePromotionsTable, usePromotionsTypeForSelect, useProvider, useProviders, useProvidersForSelect, useProvidersTable, useQRBaseUrl, useReportByInventory, useReportComparisonByTimeFrame, useReportX, useReportZ, useRestoreBankTerminal, useRestoreCategory, useRestoreClient, useRestoreLocation, useRestoreProduct, useRestoreProductVariant, useRestoreProvider, useRestoreUser, useRestoreWarehouse, useReturnsByOrderId, useRole, useRoles, useRolesTable, 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, useUsersTable, useValidateDiscountCode, useWarehouse, useWarehouses, useWarehousesForSelect, useWarehousesTable, userKeys, warehouseKeys } from './hooks.js';
|
|
12
|
+
export { C as CloseShiftData, G as GenderResponse, H as HealthCheckResponse, P as ProductQueryParams, U as UseOrdersParams, g as genderQueryKeys, a as genders, h as health, b as healthQueryKeys, o as orderQueryKeys, c as orders, p as productQueryKeys, d as products, s as shifts } from './shift.queries-BbWWhwdp.js';
|
|
13
|
+
export { AttributeFilterColumnMap, ProductFilterColumnMap, UseDataTableOptions, UseDataTableReturn, attributeKeys, bankTerminalKeys, batchKeys, categoryKeys, clientKeys, exchangeKeys, folioKeys, genderKeys, healthKeys, locationKeys, mapTableParamsToAttributeParams, mapTableParamsToProductParams, materialKeys, moduleKeys, orderKeys, paymentKeys, permissionKeys, pricePerGramKeys, priceTypeKeys, productKeys, productTagKeys, promotionKeys, providerKeys, qrKeys, reportKeys, returnKeys, roleKeys, stateKeys, stockMovementKeys, taxKeys, useAllAgents, useAllBankTerminals, useAllCategories, useAllGenders, useAllLocations, useAllMaterials, useAllModules, useAllProductTags, useAllStates, useAttribute, useAttributeValues, useAttributes, useAttributesByCategoryID, useAttributesByProductID, useAttributesForSelect, useAttributesTable, useBankTerminal, useBankTerminals, useBankTerminalsForSelect, useBankTerminalsTable, useBatches, useBatchesForSelect, useBatchesTable, useCalculatePricePerGram, useCategories, useCategoriesForSelect, useCategoriesTable, useCategory, useChangeOrderProduct, useClient, useClients, useClientsForSelect, useClientsTable, useCloseShift, useCreateAttribute, useCreateAttributeValue, useCreateAttributesForCategory, useCreateAttributesValuesBatch, useCreateBankTerminal, useCreateBatch, useCreateBatchAndUpdateOtherBatches, useCreateCategory, useCreateClient, useCreateExchangeRate, useCreateLocation, useCreateMaterial, useCreateMovement, useCreatePriceType, useCreateProduct, useCreateProductVariant, useCreateProductVariants, useCreatePromotion, useCreateProvider, useCreateReturn, useCreateRole, useCreateUser, useCreateWarehouse, useDataTable, useDeleteAttribute, useDeleteBankTerminal, useDeleteCategory, useDeleteClient, useDeleteFuturePricePerGram, useDeleteImageFromProduct, useDeleteLocation, useDeleteMaterial, useDeletePriceType, useDeleteProduct, useDeleteProductVariant, useDeleteProvider, useDeleteRole, useDeleteUser, useDeleteWarehouse, useExchangeRate, useExchangeRates, useExchangeRatesTable, useHealthCheck, useInventoryTable, useIsWeightBased, useLocation, useLocations, useLocationsForSelect, useLocationsTable, useLogin, useMakeNewCashMovement, useMatchedBatches, useMaterial, useMaterials, useMaterialsForSelect, useMaterialsTable, useMovements, useMovementsTable, useNextFolioToUseInBatches, useOrder, useOrders, useOrdersStatusForSelect, useOrdersTable, usePaymentMethods, usePaymentMethodsWithAmount, usePaymentMethodsWithAmountExpected, usePaymentTypes, usePendingReportZ, usePermissionRoleByRoleID, usePermissions, usePrefetchAttribute, usePrefetchBankTerminal, usePrefetchCategory, usePrefetchClient, usePrefetchLocation, usePrefetchMaterial, usePrefetchOrder, usePrefetchPriceType, usePrefetchProduct, usePrefetchPromotion, usePrefetchProvider, usePrefetchRole, usePrefetchUser, usePrefetchWarehouse, usePricePerGram, usePricePerGramHistory, usePriceType, usePriceTypes, usePriceTypesForSelect, usePriceTypesTable, usePrintQR, usePrintReportX, usePrintReportZ, useProduct, useProductVariant, useProductVariants, useProductVariantsForSelect, useProducts, useProductsByCategory, useProductsForSelect, useProductsTable, usePromotion, usePromotions, usePromotionsTable, usePromotionsTypeForSelect, useProvider, useProviders, useProvidersForSelect, useProvidersTable, useQRBaseUrl, useReportByInventory, useReportComparisonByTimeFrame, useReportX, useReportZ, useRestoreBankTerminal, useRestoreCategory, useRestoreClient, useRestoreLocation, useRestoreProduct, useRestoreProductVariant, useRestoreProvider, useRestoreUser, useRestoreWarehouse, useReturnsByOrderId, useRole, useRoles, useRolesTable, 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, useUsersTable, useValidateDiscountCode, useWarehouse, useWarehouses, useWarehousesForSelect, useWarehousesTable, userKeys, warehouseKeys } from './hooks.js';
|
|
14
14
|
export { BottomPagination, CreateEditForm, DataTable, EmptyState, FilterDate, FilterDateProps, FilterSelect, FilterSelectProps, FormGenerator, FormInstance, FormValues, ImageForm, PaginatedResponse, SearchInput, SimpleDataTable, TablePage, TableSkeleton, configureImageFormIcons, dateGteFilterFn, fieldGenerator, generateFormSchema } from './components.js';
|
|
15
15
|
import '@tanstack/react-table';
|
|
16
16
|
import 'react';
|
package/dist/index.js
CHANGED
|
@@ -145,6 +145,22 @@ var getAttributesForSelect = async () => {
|
|
|
145
145
|
const { data } = await api.get("/attribute/select");
|
|
146
146
|
return data;
|
|
147
147
|
};
|
|
148
|
+
var getAttributesTable = async ({
|
|
149
|
+
skip,
|
|
150
|
+
limit,
|
|
151
|
+
filters
|
|
152
|
+
}) => {
|
|
153
|
+
const queryParams = new URLSearchParams({
|
|
154
|
+
skip: skip?.toString() ?? "",
|
|
155
|
+
limit: limit?.toString() ?? "",
|
|
156
|
+
...filters?.query && { query: filters.query },
|
|
157
|
+
...filters?.categoryId && { categoryId: filters.categoryId.toString() },
|
|
158
|
+
...filters?.productId && { productId: filters.productId.toString() },
|
|
159
|
+
...filters?.materialId && { materialId: filters.materialId.toString() }
|
|
160
|
+
});
|
|
161
|
+
const { data } = await api.get(`/attribute?${queryParams}`);
|
|
162
|
+
return data;
|
|
163
|
+
};
|
|
148
164
|
var getAttributeById = async ({
|
|
149
165
|
attributeId
|
|
150
166
|
}) => {
|
|
@@ -863,6 +879,14 @@ var createProductVariant = async (variant) => {
|
|
|
863
879
|
});
|
|
864
880
|
return data;
|
|
865
881
|
};
|
|
882
|
+
var createProductVariants = async (formData) => {
|
|
883
|
+
const { data } = await api.post("product/variants", formData, {
|
|
884
|
+
headers: {
|
|
885
|
+
"Content-Type": "multipart/form-data"
|
|
886
|
+
}
|
|
887
|
+
});
|
|
888
|
+
return data;
|
|
889
|
+
};
|
|
866
890
|
var updateProductVariant = async (data) => {
|
|
867
891
|
const { data: response } = await api.put(
|
|
868
892
|
`product/variants/update/${data.get("productDetailID")}`,
|
|
@@ -1403,6 +1427,7 @@ var errorNotification = ({
|
|
|
1403
1427
|
// src/queries/attributes.queries.ts
|
|
1404
1428
|
var attributeQueryKeys = {
|
|
1405
1429
|
all: ["attributes"],
|
|
1430
|
+
table: (params = {}) => [...attributeQueryKeys.all, "table", { skip: params.skip, limit: params.limit, filters: params.filters ?? {} }],
|
|
1406
1431
|
lists: () => [...attributeQueryKeys.all, "list"],
|
|
1407
1432
|
list: (params) => [
|
|
1408
1433
|
...attributeQueryKeys.lists(),
|
|
@@ -1427,6 +1452,15 @@ var attributes = {
|
|
|
1427
1452
|
queryKey: attributeQueryKeys.list(params),
|
|
1428
1453
|
staleTime: 3e4
|
|
1429
1454
|
}),
|
|
1455
|
+
getAttributesTable: (params = {}) => queryOptions({
|
|
1456
|
+
queryFn: () => getAttributesTable({
|
|
1457
|
+
skip: params.skip ?? 0,
|
|
1458
|
+
limit: params.limit ?? 10,
|
|
1459
|
+
filters: params.filters ?? void 0
|
|
1460
|
+
}),
|
|
1461
|
+
queryKey: attributeQueryKeys.table(params),
|
|
1462
|
+
staleTime: 3e4
|
|
1463
|
+
}),
|
|
1430
1464
|
getAttributesForSelect: () => queryOptions({
|
|
1431
1465
|
queryFn: getAttributesForSelect,
|
|
1432
1466
|
queryKey: attributeQueryKeys.forSelect(),
|
|
@@ -2939,6 +2973,22 @@ var products = {
|
|
|
2939
2973
|
});
|
|
2940
2974
|
}
|
|
2941
2975
|
}),
|
|
2976
|
+
createProductVariants: (queryClient) => ({
|
|
2977
|
+
mutationFn: createProductVariants,
|
|
2978
|
+
onSuccess: () => {
|
|
2979
|
+
queryClient.invalidateQueries({ queryKey: productQueryKeys.all });
|
|
2980
|
+
successNotification({
|
|
2981
|
+
title: "Variantes creadas",
|
|
2982
|
+
message: "Las variantes se han creado correctamente."
|
|
2983
|
+
});
|
|
2984
|
+
},
|
|
2985
|
+
onError: (error) => {
|
|
2986
|
+
errorNotification({
|
|
2987
|
+
title: "Error",
|
|
2988
|
+
message: error.message || "No se pudieron crear las variantes."
|
|
2989
|
+
});
|
|
2990
|
+
}
|
|
2991
|
+
}),
|
|
2942
2992
|
updateProductVariant: (queryClient) => ({
|
|
2943
2993
|
mutationFn: updateProductVariant,
|
|
2944
2994
|
onSuccess: () => {
|
|
@@ -3657,11 +3707,43 @@ var useLogin = (options) => useMutation({
|
|
|
3657
3707
|
...options
|
|
3658
3708
|
});
|
|
3659
3709
|
var attributeKeys = attributeQueryKeys;
|
|
3710
|
+
var defaultColumnMap = {
|
|
3711
|
+
categoryId: "categoryID",
|
|
3712
|
+
productId: "productID",
|
|
3713
|
+
materialId: "materialID"
|
|
3714
|
+
};
|
|
3715
|
+
function getFilterValue(columnFilters, columnId) {
|
|
3716
|
+
const filter = columnFilters?.find((f) => f.id === columnId);
|
|
3717
|
+
if (filter?.value == null) return null;
|
|
3718
|
+
return typeof filter.value === "string" ? filter.value : String(filter.value);
|
|
3719
|
+
}
|
|
3720
|
+
function parseNumber(value) {
|
|
3721
|
+
if (value == null || value === "") return null;
|
|
3722
|
+
const n = Number.parseInt(value, 10);
|
|
3723
|
+
return Number.isNaN(n) ? null : n;
|
|
3724
|
+
}
|
|
3725
|
+
var mapTableParamsToAttributeParams = (params, columnMap) => {
|
|
3726
|
+
const map = { ...defaultColumnMap, ...columnMap };
|
|
3727
|
+
const cf = params.columnFilters;
|
|
3728
|
+
return {
|
|
3729
|
+
skip: params.skip,
|
|
3730
|
+
limit: params.limit,
|
|
3731
|
+
filters: {
|
|
3732
|
+
query: params.query ?? null,
|
|
3733
|
+
categoryId: parseNumber(getFilterValue(cf, map.categoryId)),
|
|
3734
|
+
productId: parseNumber(getFilterValue(cf, map.productId)),
|
|
3735
|
+
materialId: parseNumber(getFilterValue(cf, map.materialId))
|
|
3736
|
+
}
|
|
3737
|
+
};
|
|
3738
|
+
};
|
|
3660
3739
|
var useAttributes = (params, options) => useQuery({
|
|
3661
3740
|
...attributes.queries.getAttributes(params),
|
|
3662
3741
|
...options
|
|
3663
3742
|
});
|
|
3664
|
-
var useAttributesTable =
|
|
3743
|
+
var useAttributesTable = (params, options) => useQuery({
|
|
3744
|
+
...attributes.queries.getAttributesTable(params),
|
|
3745
|
+
...options
|
|
3746
|
+
});
|
|
3665
3747
|
var useAttributesForSelect = (options) => useQuery({
|
|
3666
3748
|
...attributes.queries.getAttributesForSelect(),
|
|
3667
3749
|
staleTime: 10 * 60 * 1e3,
|
|
@@ -4333,7 +4415,7 @@ var usePrefetchPriceType = () => {
|
|
|
4333
4415
|
return { prefetchPriceType };
|
|
4334
4416
|
};
|
|
4335
4417
|
var productKeys = productQueryKeys;
|
|
4336
|
-
var
|
|
4418
|
+
var defaultColumnMap2 = {
|
|
4337
4419
|
categoryId: "tblCategories.categoryName",
|
|
4338
4420
|
batchId: "batchId",
|
|
4339
4421
|
supplierId: "supplierId",
|
|
@@ -4341,25 +4423,25 @@ var defaultColumnMap = {
|
|
|
4341
4423
|
priceRangeMin: "priceRangeMin",
|
|
4342
4424
|
priceRangeMax: "priceRangeMax"
|
|
4343
4425
|
};
|
|
4344
|
-
function
|
|
4426
|
+
function getFilterValue2(columnFilters, columnId) {
|
|
4345
4427
|
const filter = columnFilters?.find((f) => f.id === columnId);
|
|
4346
4428
|
if (filter?.value == null) return null;
|
|
4347
4429
|
return typeof filter.value === "string" ? filter.value : String(filter.value);
|
|
4348
4430
|
}
|
|
4349
|
-
function
|
|
4431
|
+
function parseNumber2(value) {
|
|
4350
4432
|
if (value == null || value === "") return null;
|
|
4351
4433
|
const n = Number.parseInt(value, 10);
|
|
4352
4434
|
return Number.isNaN(n) ? null : n;
|
|
4353
4435
|
}
|
|
4354
4436
|
var mapTableParamsToProductParams = (params, columnMap) => {
|
|
4355
|
-
const map = { ...
|
|
4437
|
+
const map = { ...defaultColumnMap2, ...columnMap };
|
|
4356
4438
|
const cf = params.columnFilters;
|
|
4357
|
-
const categoryId =
|
|
4358
|
-
const supplierId =
|
|
4359
|
-
const warehouseId =
|
|
4360
|
-
const priceRangeMin =
|
|
4361
|
-
const priceRangeMax =
|
|
4362
|
-
const batchRaw =
|
|
4439
|
+
const categoryId = parseNumber2(getFilterValue2(cf, map.categoryId));
|
|
4440
|
+
const supplierId = parseNumber2(getFilterValue2(cf, map.supplierId));
|
|
4441
|
+
const warehouseId = parseNumber2(getFilterValue2(cf, map.warehouseId));
|
|
4442
|
+
const priceRangeMin = parseNumber2(getFilterValue2(cf, map.priceRangeMin));
|
|
4443
|
+
const priceRangeMax = parseNumber2(getFilterValue2(cf, map.priceRangeMax));
|
|
4444
|
+
const batchRaw = getFilterValue2(cf, map.batchId);
|
|
4363
4445
|
const batchId = batchRaw !== null ? batchRaw : null;
|
|
4364
4446
|
return {
|
|
4365
4447
|
skip: params.skip,
|
|
@@ -4430,6 +4512,13 @@ var useCreateProductVariant = (options) => {
|
|
|
4430
4512
|
...options
|
|
4431
4513
|
});
|
|
4432
4514
|
};
|
|
4515
|
+
var useCreateProductVariants = (options) => {
|
|
4516
|
+
const queryClient = useQueryClient();
|
|
4517
|
+
return useMutation({
|
|
4518
|
+
...products.mutations.createProductVariants(queryClient),
|
|
4519
|
+
...options
|
|
4520
|
+
});
|
|
4521
|
+
};
|
|
4433
4522
|
var useUpdateProductVariant = (options) => {
|
|
4434
4523
|
const queryClient = useQueryClient();
|
|
4435
4524
|
return useMutation({
|
|
@@ -6610,7 +6699,7 @@ var DataTable = ({
|
|
|
6610
6699
|
onSelectionChange(selectedRows);
|
|
6611
6700
|
}
|
|
6612
6701
|
}, [canCheck, onSelectionChange, selectedRows]);
|
|
6613
|
-
const
|
|
6702
|
+
const getFilterValue3 = (columnId) => columnFilters.find((f) => f.id === columnId)?.value ?? null;
|
|
6614
6703
|
return /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "md", children: [
|
|
6615
6704
|
/* @__PURE__ */ jsxs(Flex, { justify: "space-between", align: "center", children: [
|
|
6616
6705
|
/* @__PURE__ */ jsxs(Group, { gap: "md", wrap: "wrap", children: [
|
|
@@ -6627,7 +6716,7 @@ var DataTable = ({
|
|
|
6627
6716
|
FilterDate,
|
|
6628
6717
|
{
|
|
6629
6718
|
columnId: f.columnId,
|
|
6630
|
-
value:
|
|
6719
|
+
value: getFilterValue3(f.columnId),
|
|
6631
6720
|
onChange: setColumnFilter,
|
|
6632
6721
|
placeholder: f.placeholder
|
|
6633
6722
|
},
|
|
@@ -6744,6 +6833,6 @@ var TablePage = ({
|
|
|
6744
6833
|
] });
|
|
6745
6834
|
};
|
|
6746
6835
|
|
|
6747
|
-
export { BottomPagination, ButtonTypes, ChartType, ComparisonBy, CreateEditForm, DataTable, EmptyState, FieldTypes, FilterDate, FilterSelect, FormGenerator, ImageForm, Permission, PromotionTypeEnum, SearchInput, SimpleDataTable, TablePage, TableSkeleton, api, attributeKeys, attributeQueryKeys, attributes, auth, bankTerminalKeys, bankTerminalQueryKeys, bankTerminals, batchKeys, batchQueryKeys, batches, categories, categoryKeys, categoryQueryKeys, changeOrderProduct, checkPendingReportZ, clientKeys, clientQueryKeys, clients, closeShift, configureApi, configureEnv, configureImageFormIcons, createAttribute, createAttributeValue, createAttributesForCategory, createAttributesValuesBatch, createBankTerminal, createBatch, createBatchAndUpdateOtherBatches, createCategory, createClient, createExchangeRate, createLocation, createMaterial, createMovement, createPriceType, createProduct, createProductVariant, createPromotion, createProvider, createReturn, createRole, createUser, createWareHouse, dateGteFilterFn, defaultDataTableConfig, deleteAttribute, deleteBankTerminal, deleteCategory, deleteClient, deleteImageFromProduct, deleteLocation, deleteMaterial, deletePriceType, deleteProduct, deleteProductVariant, deleteProvider, deleteRole, deleteUser, deleteWarehouse, exchange, exchangeKeys, exchangeQueryKeys, fieldGenerator, folioKeys, folioQueryKeys, folios, genderKeys, genderQueryKeys, genders, generateFormSchema, 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, getIsDevEnv, 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, health, healthKeys, healthQueryKeys, healthService, isAValidDiscountCode, locationKeys, locationQueryKeys, locations, login, makeNewCashMovement, mapTableParamsToProductParams, materialKeys, materialQueryKeys, materials, moduleKeys, moduleQueryKeys, modules, orderKeys, orderQueryKeys, orders, paymentKeys, paymentQueryKeys, payments, permissionKeys, permissionQueryKeys, permissions, pricePerGram, pricePerGramKeys, pricePerGramQueryKeys, pricePerGramService, priceTypeKeys, priceTypeQueryKeys, priceTypes, printProductTag, printQR, printReportX, printReportZ, productKeys, productQueryKeys, productTagKeys, productTagQueryKeys, productTags, products, promotionKeys, promotionQueryKeys, promotions, providerKeys, providerQueryKeys, providers, qr, qrKeys, qrQueryKeys, reportKeys, reportQueryKeys, reports, restoreBankTerminal, restoreCategory, restoreClient, restoreLocation, restoreProduct, restoreProductVariant, restoreProvider, restoreUser, restoreWarehouse, returnKeys, returnQueryKeys, returns, roleKeys, roleQueryKeys, roles, sendCreditPaymentData, sendPaymentData, setNewShift, shifts, stateKeys, stateQueryKeys, states, stockMovementKeys, stockMovementQueryKeys, stockMovements, taxKeys, taxQueryKeys, taxes, 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, useAttributesTable, useBankTerminal, useBankTerminals, useBankTerminalsForSelect, useBankTerminalsTable, useBatches, useBatchesForSelect, useBatchesTable, useCalculatePricePerGram, useCategories, useCategoriesForSelect, useCategoriesTable, useCategory, useChangeOrderProduct, useClient, useClients, useClientsForSelect, useClientsTable, useCloseShift, useCreateAttribute, useCreateAttributeValue, useCreateAttributesForCategory, useCreateAttributesValuesBatch, useCreateBankTerminal, useCreateBatch, useCreateBatchAndUpdateOtherBatches, useCreateCategory, useCreateClient, useCreateExchangeRate, useCreateLocation, useCreateMaterial, useCreateMovement, useCreatePriceType, useCreateProduct, useCreateProductVariant, useCreatePromotion, useCreateProvider, useCreateReturn, useCreateRole, useCreateUser, useCreateWarehouse, useDataTable, useDeleteAttribute, useDeleteBankTerminal, useDeleteCategory, useDeleteClient, useDeleteFuturePricePerGram, useDeleteImageFromProduct, useDeleteLocation, useDeleteMaterial, useDeletePriceType, useDeleteProduct, useDeleteProductVariant, useDeleteProvider, useDeleteRole, useDeleteUser, useDeleteWarehouse, useExchangeRate, useExchangeRates, useExchangeRatesTable, useHealthCheck, useInventoryTable, useIsWeightBased, useLocation, useLocations, useLocationsForSelect, useLocationsTable, useLogin, useMakeNewCashMovement, useMatchedBatches, useMaterial, useMaterials, useMaterialsForSelect, useMaterialsTable, useMovements, useMovementsTable, useNextFolioToUseInBatches, useOrder, useOrders, useOrdersStatusForSelect, useOrdersTable, usePaymentMethods, usePaymentMethodsWithAmount, usePaymentMethodsWithAmountExpected, usePaymentTypes, usePendingReportZ, usePermissionRoleByRoleID, usePermissions, usePrefetchAttribute, usePrefetchBankTerminal, usePrefetchCategory, usePrefetchClient, usePrefetchLocation, usePrefetchMaterial, usePrefetchOrder, usePrefetchPriceType, usePrefetchProduct, usePrefetchPromotion, usePrefetchProvider, usePrefetchRole, usePrefetchUser, usePrefetchWarehouse, usePricePerGram, usePricePerGramHistory, usePriceType, usePriceTypes, usePriceTypesForSelect, usePriceTypesTable, usePrintQR, usePrintReportX, usePrintReportZ, useProduct, useProductVariant, useProductVariants, useProductVariantsForSelect, useProducts, useProductsByCategory, useProductsForSelect, useProductsTable, usePromotion, usePromotions, usePromotionsTable, usePromotionsTypeForSelect, useProvider, useProviders, useProvidersForSelect, useProvidersTable, useQRBaseUrl, useReportByInventory, useReportComparisonByTimeFrame, useReportX, useReportZ, useRestoreBankTerminal, useRestoreCategory, useRestoreClient, useRestoreLocation, useRestoreProduct, useRestoreProductVariant, useRestoreProvider, useRestoreUser, useRestoreWarehouse, useReturnsByOrderId, useRole, useRoles, useRolesTable, 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, useUsersTable, useValidateDiscountCode, useWarehouse, useWarehouses, useWarehousesForSelect, useWarehousesTable, userKeys, userQueryKeys, users, warehouseKeys, warehouseQueryKeys, warehouses };
|
|
6836
|
+
export { BottomPagination, ButtonTypes, ChartType, ComparisonBy, CreateEditForm, DataTable, EmptyState, FieldTypes, FilterDate, FilterSelect, FormGenerator, ImageForm, Permission, PromotionTypeEnum, SearchInput, SimpleDataTable, TablePage, TableSkeleton, api, attributeKeys, attributeQueryKeys, attributes, auth, bankTerminalKeys, bankTerminalQueryKeys, bankTerminals, batchKeys, batchQueryKeys, batches, categories, categoryKeys, categoryQueryKeys, changeOrderProduct, checkPendingReportZ, clientKeys, clientQueryKeys, clients, closeShift, configureApi, configureEnv, configureImageFormIcons, createAttribute, createAttributeValue, createAttributesForCategory, createAttributesValuesBatch, createBankTerminal, createBatch, createBatchAndUpdateOtherBatches, createCategory, createClient, createExchangeRate, createLocation, createMaterial, createMovement, createPriceType, createProduct, createProductVariant, createProductVariants, createPromotion, createProvider, createReturn, createRole, createUser, createWareHouse, dateGteFilterFn, defaultDataTableConfig, deleteAttribute, deleteBankTerminal, deleteCategory, deleteClient, deleteImageFromProduct, deleteLocation, deleteMaterial, deletePriceType, deleteProduct, deleteProductVariant, deleteProvider, deleteRole, deleteUser, deleteWarehouse, exchange, exchangeKeys, exchangeQueryKeys, fieldGenerator, folioKeys, folioQueryKeys, folios, genderKeys, genderQueryKeys, genders, generateFormSchema, getAllAgents, getAllBankTerminals, getAllCategories, getAllClients, getAllGenders, getAllLocations, getAllMaterials, getAllModules, getAllPermissions, getAllPriceTypes, getAllProviders, getAllStates, getAllTags, getAttributeById, getAttributeValues, getAttributes, getAttributesByCategoryID, getAttributesByProductID, getAttributesForSelect, getAttributesTable, getBankTerminalById, getBankTerminals, getBankTerminalsForSelect, getBatches, getBatchesForSelect, getCategories, getCategoriesForSelect, getCategoryById, getClientById, getClientsForSelect, getExchangeRate, getExchangeRates, getIsDevEnv, 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, health, healthKeys, healthQueryKeys, healthService, isAValidDiscountCode, locationKeys, locationQueryKeys, locations, login, makeNewCashMovement, mapTableParamsToAttributeParams, mapTableParamsToProductParams, materialKeys, materialQueryKeys, materials, moduleKeys, moduleQueryKeys, modules, orderKeys, orderQueryKeys, orders, paymentKeys, paymentQueryKeys, payments, permissionKeys, permissionQueryKeys, permissions, pricePerGram, pricePerGramKeys, pricePerGramQueryKeys, pricePerGramService, priceTypeKeys, priceTypeQueryKeys, priceTypes, printProductTag, printQR, printReportX, printReportZ, productKeys, productQueryKeys, productTagKeys, productTagQueryKeys, productTags, products, promotionKeys, promotionQueryKeys, promotions, providerKeys, providerQueryKeys, providers, qr, qrKeys, qrQueryKeys, reportKeys, reportQueryKeys, reports, restoreBankTerminal, restoreCategory, restoreClient, restoreLocation, restoreProduct, restoreProductVariant, restoreProvider, restoreUser, restoreWarehouse, returnKeys, returnQueryKeys, returns, roleKeys, roleQueryKeys, roles, sendCreditPaymentData, sendPaymentData, setNewShift, shifts, stateKeys, stateQueryKeys, states, stockMovementKeys, stockMovementQueryKeys, stockMovements, taxKeys, taxQueryKeys, taxes, 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, useAttributesTable, useBankTerminal, useBankTerminals, useBankTerminalsForSelect, useBankTerminalsTable, useBatches, useBatchesForSelect, useBatchesTable, useCalculatePricePerGram, useCategories, useCategoriesForSelect, useCategoriesTable, useCategory, useChangeOrderProduct, useClient, useClients, useClientsForSelect, useClientsTable, useCloseShift, useCreateAttribute, useCreateAttributeValue, useCreateAttributesForCategory, useCreateAttributesValuesBatch, useCreateBankTerminal, useCreateBatch, useCreateBatchAndUpdateOtherBatches, useCreateCategory, useCreateClient, useCreateExchangeRate, useCreateLocation, useCreateMaterial, useCreateMovement, useCreatePriceType, useCreateProduct, useCreateProductVariant, useCreateProductVariants, useCreatePromotion, useCreateProvider, useCreateReturn, useCreateRole, useCreateUser, useCreateWarehouse, useDataTable, useDeleteAttribute, useDeleteBankTerminal, useDeleteCategory, useDeleteClient, useDeleteFuturePricePerGram, useDeleteImageFromProduct, useDeleteLocation, useDeleteMaterial, useDeletePriceType, useDeleteProduct, useDeleteProductVariant, useDeleteProvider, useDeleteRole, useDeleteUser, useDeleteWarehouse, useExchangeRate, useExchangeRates, useExchangeRatesTable, useHealthCheck, useInventoryTable, useIsWeightBased, useLocation, useLocations, useLocationsForSelect, useLocationsTable, useLogin, useMakeNewCashMovement, useMatchedBatches, useMaterial, useMaterials, useMaterialsForSelect, useMaterialsTable, useMovements, useMovementsTable, useNextFolioToUseInBatches, useOrder, useOrders, useOrdersStatusForSelect, useOrdersTable, usePaymentMethods, usePaymentMethodsWithAmount, usePaymentMethodsWithAmountExpected, usePaymentTypes, usePendingReportZ, usePermissionRoleByRoleID, usePermissions, usePrefetchAttribute, usePrefetchBankTerminal, usePrefetchCategory, usePrefetchClient, usePrefetchLocation, usePrefetchMaterial, usePrefetchOrder, usePrefetchPriceType, usePrefetchProduct, usePrefetchPromotion, usePrefetchProvider, usePrefetchRole, usePrefetchUser, usePrefetchWarehouse, usePricePerGram, usePricePerGramHistory, usePriceType, usePriceTypes, usePriceTypesForSelect, usePriceTypesTable, usePrintQR, usePrintReportX, usePrintReportZ, useProduct, useProductVariant, useProductVariants, useProductVariantsForSelect, useProducts, useProductsByCategory, useProductsForSelect, useProductsTable, usePromotion, usePromotions, usePromotionsTable, usePromotionsTypeForSelect, useProvider, useProviders, useProvidersForSelect, useProvidersTable, useQRBaseUrl, useReportByInventory, useReportComparisonByTimeFrame, useReportX, useReportZ, useRestoreBankTerminal, useRestoreCategory, useRestoreClient, useRestoreLocation, useRestoreProduct, useRestoreProductVariant, useRestoreProvider, useRestoreUser, useRestoreWarehouse, useReturnsByOrderId, useRole, useRoles, useRolesTable, 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, useUsersTable, useValidateDiscountCode, useWarehouse, useWarehouses, useWarehousesForSelect, useWarehousesTable, userKeys, userQueryKeys, users, warehouseKeys, warehouseQueryKeys, warehouses };
|
|
6748
6837
|
//# sourceMappingURL=index.js.map
|
|
6749
6838
|
//# sourceMappingURL=index.js.map
|