ProductsUseCases

@Module
object ProductsUseCases

Hilt module for providing Use Case dependencies related to Products and Categories.

Functions

Link copied to clipboard
@Provides
fun provideGetListOfCurrenciesUseCase(): GetListOfCurrenciesUseCase

Provides GetListOfCurrenciesUseCase.

Link copied to clipboard
@Provides
fun provideGetListOfUnitsUseCase(): GetListOfUnitsUseCase

Provides GetListOfUnitsUseCase.

Link copied to clipboard
@Provides
fun providesAddCategoryUseCase(categoriesRepository: CategoriesRepository, coroutineDispatcher: CoroutineProvider): AddCategoryUseCase

Provides AddCategoryUseCase.

Link copied to clipboard
@Provides
fun providesAddStockUseCase(productsRepository: ProductsRepository): AddStockUseCase

Provides AddStockUseCase.

Link copied to clipboard
@Provides
fun providesDeleteCategoryUseCase(categoriesRepository: CategoriesRepository, coroutineDispatcher: CoroutineProvider): DeleteCategoryUseCase

Provides DeleteCategoryUseCase.

Link copied to clipboard
@Provides
fun providesExportProductsCsvUseCase(productsRepository: ProductsRepository, fileInteractor: FileInteractor, coroutineDispatcher: CoroutineProvider): ExportProductsCsvUseCase

Provides ExportProductsCsvUseCase.

Link copied to clipboard
@Provides
fun providesExportStockHistoryCsvUseCase(productsRepository: ProductsRepository, fileInteractor: FileInteractor, coroutineDispatcher: CoroutineProvider): ExportStockHistoryCsvUseCase

Provides ExportStockHistoryCsvUseCase.

Link copied to clipboard
@Provides
fun providesGetAllCategoriesUseCase(categoriesRepository: CategoriesRepository, coroutineDispatcher: CoroutineProvider): GetAllCategoriesUseCase

Provides GetAllCategoriesUseCase.

Link copied to clipboard
@Provides
fun providesGetProductDetailsByIdUseCase(productsRepository: ProductsRepository, ioDispatcher: CoroutineDispatcher): GetProductDetailsByIdUseCase

Provides GetProductDetailsByIdUseCase.

Link copied to clipboard
@Provides
fun providesGetProductsLikeUseCase(productsRepository: ProductsRepository): GetProductsLikeUseCase

Provides GetProductsLikeUseCase.

Link copied to clipboard
@Provides
fun providesRemoveFromStockUseCase(productsRepository: ProductsRepository): RemoveFromStockUseCase

Provides RemoveFromStockUseCase.

Link copied to clipboard
@Provides
fun providesSearchProductByBarcode(productsRepository: ProductsRepository, ioDispatcher: CoroutineProvider): SearchProductByBarcode

Provides SearchProductByBarcode.

Link copied to clipboard
@Provides
fun providesUpdateCategoryUseCase(categoriesRepository: CategoriesRepository, coroutineDispatcher: CoroutineProvider): UpdateCategoryUseCase

Provides UpdateCategoryUseCase.