@webiny/app-trash-bin 6.0.0-alpha.5 → 6.0.0-rc.0
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/Domain/Models/TrashBinItem/ITrashBinItemMapper.d.ts +1 -1
- package/Domain/Models/TrashBinItem/ITrashBinItemMapper.js.map +1 -1
- package/Domain/Models/TrashBinItem/TrashBinItem.d.ts +1 -1
- package/Domain/Models/TrashBinItem/TrashBinItem.js.map +1 -1
- package/Domain/Models/TrashBinItem/index.d.ts +2 -2
- package/Domain/Models/TrashBinItem/index.js +1 -2
- package/Domain/Models/TrashBinItem/index.js.map +1 -1
- package/Domain/Models/index.d.ts +1 -1
- package/Domain/Models/index.js +1 -1
- package/Domain/Models/index.js.map +1 -1
- package/Domain/Repositories/Search/SearchRepository.d.ts +1 -1
- package/Domain/Repositories/Search/SearchRepository.js.map +1 -1
- package/Domain/Repositories/Search/SearchRepositoryFactory.d.ts +1 -1
- package/Domain/Repositories/Search/SearchRepositoryFactory.js +1 -1
- package/Domain/Repositories/Search/SearchRepositoryFactory.js.map +1 -1
- package/Domain/Repositories/Search/index.d.ts +3 -3
- package/Domain/Repositories/Search/index.js +2 -3
- package/Domain/Repositories/Search/index.js.map +1 -1
- package/Domain/Repositories/SelectedItems/ISelectedItemsRepository.d.ts +1 -1
- package/Domain/Repositories/SelectedItems/ISelectedItemsRepository.js.map +1 -1
- package/Domain/Repositories/SelectedItems/SelectedItemsRepository.d.ts +2 -2
- package/Domain/Repositories/SelectedItems/SelectedItemsRepository.js.map +1 -1
- package/Domain/Repositories/SelectedItems/SelectedItemsRepositoryFactory.d.ts +1 -1
- package/Domain/Repositories/SelectedItems/SelectedItemsRepositoryFactory.js +1 -1
- package/Domain/Repositories/SelectedItems/SelectedItemsRepositoryFactory.js.map +1 -1
- package/Domain/Repositories/SelectedItems/index.d.ts +3 -3
- package/Domain/Repositories/SelectedItems/index.js +2 -3
- package/Domain/Repositories/SelectedItems/index.js.map +1 -1
- package/Domain/Repositories/Sorting/index.d.ts +1 -1
- package/Domain/Repositories/Sorting/index.js +1 -1
- package/Domain/Repositories/Sorting/index.js.map +1 -1
- package/Domain/Repositories/TrashBinItems/ITrashBinItemsRepository.d.ts +2 -2
- package/Domain/Repositories/TrashBinItems/ITrashBinItemsRepository.js.map +1 -1
- package/Domain/Repositories/TrashBinItems/TrashBinItemMapper.d.ts +1 -1
- package/Domain/Repositories/TrashBinItems/TrashBinItemMapper.js.map +1 -1
- package/Domain/Repositories/TrashBinItems/TrashBinItemsRepository.d.ts +5 -5
- package/Domain/Repositories/TrashBinItems/TrashBinItemsRepository.js +2 -2
- package/Domain/Repositories/TrashBinItems/TrashBinItemsRepository.js.map +1 -1
- package/Domain/Repositories/TrashBinItems/TrashBinItemsRepositoryFactory.d.ts +3 -3
- package/Domain/Repositories/TrashBinItems/TrashBinItemsRepositoryFactory.js +1 -1
- package/Domain/Repositories/TrashBinItems/TrashBinItemsRepositoryFactory.js.map +1 -1
- package/Domain/Repositories/TrashBinItems/TrashBinItemsRepositoryWithLoading.d.ts +4 -4
- package/Domain/Repositories/TrashBinItems/TrashBinItemsRepositoryWithLoading.js +1 -1
- package/Domain/Repositories/TrashBinItems/TrashBinItemsRepositoryWithLoading.js.map +1 -1
- package/Domain/Repositories/TrashBinItems/index.d.ts +5 -5
- package/Domain/Repositories/TrashBinItems/index.js +4 -5
- package/Domain/Repositories/TrashBinItems/index.js.map +1 -1
- package/Domain/Repositories/index.d.ts +5 -5
- package/Domain/Repositories/index.js +5 -5
- package/Domain/Repositories/index.js.map +1 -1
- package/Domain/index.d.ts +2 -2
- package/Domain/index.js +2 -2
- package/Domain/index.js.map +1 -1
- package/Gateways/TrashBinBulkActions/ITrashBinBulkActionsGateway.d.ts +1 -1
- package/Gateways/TrashBinBulkActions/ITrashBinBulkActionsGateway.js.map +1 -1
- package/Gateways/TrashBinBulkActions/index.d.ts +1 -1
- package/Gateways/TrashBinBulkActions/index.js +1 -1
- package/Gateways/TrashBinBulkActions/index.js.map +1 -1
- package/Gateways/TrashBinDeleteItem/index.d.ts +1 -1
- package/Gateways/TrashBinDeleteItem/index.js +1 -1
- package/Gateways/TrashBinDeleteItem/index.js.map +1 -1
- package/Gateways/TrashBinListItems/ITrashBinListGateway.d.ts +1 -1
- package/Gateways/TrashBinListItems/ITrashBinListGateway.js.map +1 -1
- package/Gateways/TrashBinListItems/index.d.ts +1 -1
- package/Gateways/TrashBinListItems/index.js +1 -1
- package/Gateways/TrashBinListItems/index.js.map +1 -1
- package/Gateways/TrashBinRestoreItem/index.d.ts +1 -1
- package/Gateways/TrashBinRestoreItem/index.js +1 -1
- package/Gateways/TrashBinRestoreItem/index.js.map +1 -1
- package/Gateways/index.d.ts +4 -4
- package/Gateways/index.js +1 -4
- package/Gateways/index.js.map +1 -1
- package/Presentation/TrashBin/TrashBin.d.ts +2 -2
- package/Presentation/TrashBin/TrashBin.js +5 -5
- package/Presentation/TrashBin/TrashBin.js.map +1 -1
- package/Presentation/TrashBin/TrashBin.test.js +18 -46
- package/Presentation/TrashBin/TrashBin.test.js.map +1 -1
- package/Presentation/TrashBin/TrashBinControllers.d.ts +2 -2
- package/Presentation/TrashBin/TrashBinControllers.js +2 -2
- package/Presentation/TrashBin/TrashBinControllers.js.map +1 -1
- package/Presentation/TrashBin/TrashBinPresenter.d.ts +4 -4
- package/Presentation/TrashBin/TrashBinPresenter.js +2 -2
- package/Presentation/TrashBin/TrashBinPresenter.js.map +1 -1
- package/Presentation/TrashBin/controllers/BulkAction/BulkActionsController.d.ts +3 -3
- package/Presentation/TrashBin/controllers/BulkAction/BulkActionsController.js.map +1 -1
- package/Presentation/TrashBin/controllers/BulkAction/IBulkActionsController.d.ts +1 -1
- package/Presentation/TrashBin/controllers/BulkAction/IBulkActionsController.js.map +1 -1
- package/Presentation/TrashBin/controllers/BulkAction/index.d.ts +2 -2
- package/Presentation/TrashBin/controllers/BulkAction/index.js +1 -2
- package/Presentation/TrashBin/controllers/BulkAction/index.js.map +1 -1
- package/Presentation/TrashBin/controllers/DeleteItem/DeleteItemController.d.ts +2 -2
- package/Presentation/TrashBin/controllers/DeleteItem/DeleteItemController.js.map +1 -1
- package/Presentation/TrashBin/controllers/DeleteItem/index.d.ts +2 -2
- package/Presentation/TrashBin/controllers/DeleteItem/index.js +1 -2
- package/Presentation/TrashBin/controllers/DeleteItem/index.js.map +1 -1
- package/Presentation/TrashBin/controllers/GetRestoredItemById/GetRestoredItemByIdController.d.ts +4 -4
- package/Presentation/TrashBin/controllers/GetRestoredItemById/GetRestoredItemByIdController.js +1 -1
- package/Presentation/TrashBin/controllers/GetRestoredItemById/GetRestoredItemByIdController.js.map +1 -1
- package/Presentation/TrashBin/controllers/GetRestoredItemById/IGetRestoredItemByIdController.d.ts +1 -1
- package/Presentation/TrashBin/controllers/GetRestoredItemById/IGetRestoredItemByIdController.js.map +1 -1
- package/Presentation/TrashBin/controllers/GetRestoredItemById/index.d.ts +2 -2
- package/Presentation/TrashBin/controllers/GetRestoredItemById/index.js +1 -2
- package/Presentation/TrashBin/controllers/GetRestoredItemById/index.js.map +1 -1
- package/Presentation/TrashBin/controllers/ListItems/ListItemsController.d.ts +2 -2
- package/Presentation/TrashBin/controllers/ListItems/ListItemsController.js.map +1 -1
- package/Presentation/TrashBin/controllers/ListItems/index.d.ts +2 -2
- package/Presentation/TrashBin/controllers/ListItems/index.js +1 -2
- package/Presentation/TrashBin/controllers/ListItems/index.js.map +1 -1
- package/Presentation/TrashBin/controllers/ListMoreItems/ListMoreItemsController.d.ts +2 -2
- package/Presentation/TrashBin/controllers/ListMoreItems/ListMoreItemsController.js.map +1 -1
- package/Presentation/TrashBin/controllers/ListMoreItems/index.d.ts +2 -2
- package/Presentation/TrashBin/controllers/ListMoreItems/index.js +1 -2
- package/Presentation/TrashBin/controllers/ListMoreItems/index.js.map +1 -1
- package/Presentation/TrashBin/controllers/RestoreItem/RestoreItemController.d.ts +2 -2
- package/Presentation/TrashBin/controllers/RestoreItem/RestoreItemController.js.map +1 -1
- package/Presentation/TrashBin/controllers/RestoreItem/index.d.ts +2 -2
- package/Presentation/TrashBin/controllers/RestoreItem/index.js +1 -2
- package/Presentation/TrashBin/controllers/RestoreItem/index.js.map +1 -1
- package/Presentation/TrashBin/controllers/SearchItems/SearchItemsController.d.ts +2 -2
- package/Presentation/TrashBin/controllers/SearchItems/SearchItemsController.js.map +1 -1
- package/Presentation/TrashBin/controllers/SearchItems/index.d.ts +2 -2
- package/Presentation/TrashBin/controllers/SearchItems/index.js +1 -2
- package/Presentation/TrashBin/controllers/SearchItems/index.js.map +1 -1
- package/Presentation/TrashBin/controllers/SelectAllItems/SelectAllItemsController.d.ts +2 -2
- package/Presentation/TrashBin/controllers/SelectAllItems/SelectAllItemsController.js.map +1 -1
- package/Presentation/TrashBin/controllers/SelectAllItems/index.d.ts +2 -2
- package/Presentation/TrashBin/controllers/SelectAllItems/index.js +1 -2
- package/Presentation/TrashBin/controllers/SelectAllItems/index.js.map +1 -1
- package/Presentation/TrashBin/controllers/SelectItems/ISelectItemsController.d.ts +1 -1
- package/Presentation/TrashBin/controllers/SelectItems/ISelectItemsController.js.map +1 -1
- package/Presentation/TrashBin/controllers/SelectItems/SelectItemsController.d.ts +3 -3
- package/Presentation/TrashBin/controllers/SelectItems/SelectItemsController.js +1 -1
- package/Presentation/TrashBin/controllers/SelectItems/SelectItemsController.js.map +1 -1
- package/Presentation/TrashBin/controllers/SelectItems/index.d.ts +2 -2
- package/Presentation/TrashBin/controllers/SelectItems/index.js +1 -2
- package/Presentation/TrashBin/controllers/SelectItems/index.js.map +1 -1
- package/Presentation/TrashBin/controllers/SortItems/ISortItemsController.d.ts +1 -1
- package/Presentation/TrashBin/controllers/SortItems/ISortItemsController.js.map +1 -1
- package/Presentation/TrashBin/controllers/SortItems/SortItemsController.d.ts +3 -3
- package/Presentation/TrashBin/controllers/SortItems/SortItemsController.js.map +1 -1
- package/Presentation/TrashBin/controllers/SortItems/index.d.ts +2 -2
- package/Presentation/TrashBin/controllers/SortItems/index.js +1 -2
- package/Presentation/TrashBin/controllers/SortItems/index.js.map +1 -1
- package/Presentation/TrashBin/controllers/UnselectAllItems/UnselectAllItemsController.d.ts +2 -2
- package/Presentation/TrashBin/controllers/UnselectAllItems/UnselectAllItemsController.js.map +1 -1
- package/Presentation/TrashBin/controllers/UnselectAllItems/index.d.ts +2 -2
- package/Presentation/TrashBin/controllers/UnselectAllItems/index.js +1 -2
- package/Presentation/TrashBin/controllers/UnselectAllItems/index.js.map +1 -1
- package/Presentation/TrashBin/controllers/index.d.ts +11 -11
- package/Presentation/TrashBin/controllers/index.js +11 -11
- package/Presentation/TrashBin/controllers/index.js.map +1 -1
- package/Presentation/TrashBin/index.d.ts +1 -1
- package/Presentation/TrashBin/index.js +1 -1
- package/Presentation/TrashBin/index.js.map +1 -1
- package/Presentation/TrashBinConfigs/TrashBinConfigs.js +5 -5
- package/Presentation/TrashBinConfigs/TrashBinConfigs.js.map +1 -1
- package/Presentation/TrashBinConfigs/index.d.ts +1 -1
- package/Presentation/TrashBinConfigs/index.js +1 -1
- package/Presentation/TrashBinConfigs/index.js.map +1 -1
- package/Presentation/TrashBinRenderer/TrashBinRenderer.d.ts +2 -2
- package/Presentation/TrashBinRenderer/TrashBinRenderer.js +6 -6
- package/Presentation/TrashBinRenderer/TrashBinRenderer.js.map +1 -1
- package/Presentation/TrashBinRenderer/index.d.ts +1 -1
- package/Presentation/TrashBinRenderer/index.js +1 -1
- package/Presentation/TrashBinRenderer/index.js.map +1 -1
- package/Presentation/abstractions/ITrashBinControllers.d.ts +1 -1
- package/Presentation/abstractions/ITrashBinControllers.js.map +1 -1
- package/Presentation/abstractions/ITrashBinPresenter.d.ts +2 -2
- package/Presentation/abstractions/ITrashBinPresenter.js.map +1 -1
- package/Presentation/abstractions/index.d.ts +2 -2
- package/Presentation/abstractions/index.js +1 -2
- package/Presentation/abstractions/index.js.map +1 -1
- package/Presentation/components/Actions/DeleteItem/DeleteItem.js +3 -3
- package/Presentation/components/Actions/DeleteItem/DeleteItem.js.map +1 -1
- package/Presentation/components/Actions/DeleteItem/index.d.ts +1 -1
- package/Presentation/components/Actions/DeleteItem/index.js +1 -1
- package/Presentation/components/Actions/DeleteItem/index.js.map +1 -1
- package/Presentation/components/Actions/RestoreItem/RestoreItem.js +2 -2
- package/Presentation/components/Actions/RestoreItem/RestoreItem.js.map +1 -1
- package/Presentation/components/Actions/RestoreItem/index.d.ts +1 -1
- package/Presentation/components/Actions/RestoreItem/index.js +1 -1
- package/Presentation/components/Actions/RestoreItem/index.js.map +1 -1
- package/Presentation/components/Actions/index.d.ts +2 -2
- package/Presentation/components/Actions/index.js +2 -2
- package/Presentation/components/Actions/index.js.map +1 -1
- package/Presentation/components/BottomInfoBar/BottomInfoBar.js +6 -6
- package/Presentation/components/BottomInfoBar/BottomInfoBar.js.map +1 -1
- package/Presentation/components/BottomInfoBar/ListMeta.js +1 -1
- package/Presentation/components/BottomInfoBar/ListMeta.js.map +1 -1
- package/Presentation/components/BottomInfoBar/ListStatus.js +2 -2
- package/Presentation/components/BottomInfoBar/ListStatus.js.map +1 -1
- package/Presentation/components/BottomInfoBar/index.d.ts +1 -1
- package/Presentation/components/BottomInfoBar/index.js +1 -1
- package/Presentation/components/BottomInfoBar/index.js.map +1 -1
- package/Presentation/components/BulkActions/BulkActions/BulkActions.js +7 -7
- package/Presentation/components/BulkActions/BulkActions/BulkActions.js.map +1 -1
- package/Presentation/components/BulkActions/BulkActions/index.d.ts +1 -1
- package/Presentation/components/BulkActions/BulkActions/index.js +1 -1
- package/Presentation/components/BulkActions/BulkActions/index.js.map +1 -1
- package/Presentation/components/BulkActions/DeleteItems/DeleteItems.js +3 -3
- package/Presentation/components/BulkActions/DeleteItems/DeleteItems.js.map +1 -1
- package/Presentation/components/BulkActions/DeleteItems/index.d.ts +1 -1
- package/Presentation/components/BulkActions/DeleteItems/index.js +1 -1
- package/Presentation/components/BulkActions/DeleteItems/index.js.map +1 -1
- package/Presentation/components/BulkActions/RestoreItems/RestoreItems.js +4 -4
- package/Presentation/components/BulkActions/RestoreItems/RestoreItems.js.map +1 -1
- package/Presentation/components/BulkActions/RestoreItems/RestoreItemsReportMessage.js +2 -2
- package/Presentation/components/BulkActions/RestoreItems/RestoreItemsReportMessage.js.map +1 -1
- package/Presentation/components/BulkActions/RestoreItems/index.d.ts +1 -1
- package/Presentation/components/BulkActions/RestoreItems/index.js +1 -1
- package/Presentation/components/BulkActions/RestoreItems/index.js.map +1 -1
- package/Presentation/components/BulkActions/index.d.ts +3 -3
- package/Presentation/components/BulkActions/index.js +3 -3
- package/Presentation/components/BulkActions/index.js.map +1 -1
- package/Presentation/components/Cells/CellActions/CellActions.js +5 -6
- package/Presentation/components/Cells/CellActions/CellActions.js.map +1 -1
- package/Presentation/components/Cells/CellActions/index.d.ts +1 -1
- package/Presentation/components/Cells/CellActions/index.js +1 -1
- package/Presentation/components/Cells/CellActions/index.js.map +1 -1
- package/Presentation/components/Cells/CellCreatedBy/CellCreatedBy.js +4 -1
- package/Presentation/components/Cells/CellCreatedBy/CellCreatedBy.js.map +1 -1
- package/Presentation/components/Cells/CellCreatedBy/index.d.ts +1 -1
- package/Presentation/components/Cells/CellCreatedBy/index.js +1 -1
- package/Presentation/components/Cells/CellCreatedBy/index.js.map +1 -1
- package/Presentation/components/Cells/CellDeletedBy/CellDeletedBy.js +4 -1
- package/Presentation/components/Cells/CellDeletedBy/CellDeletedBy.js.map +1 -1
- package/Presentation/components/Cells/CellDeletedBy/index.d.ts +1 -1
- package/Presentation/components/Cells/CellDeletedBy/index.js +1 -1
- package/Presentation/components/Cells/CellDeletedBy/index.js.map +1 -1
- package/Presentation/components/Cells/CellDeletedOn/CellDeletedOn.js +5 -2
- package/Presentation/components/Cells/CellDeletedOn/CellDeletedOn.js.map +1 -1
- package/Presentation/components/Cells/CellDeletedOn/index.d.ts +1 -1
- package/Presentation/components/Cells/CellDeletedOn/index.js +1 -1
- package/Presentation/components/Cells/CellDeletedOn/index.js.map +1 -1
- package/Presentation/components/Cells/CellTitle/CellTitle.js +3 -3
- package/Presentation/components/Cells/CellTitle/CellTitle.js.map +1 -1
- package/Presentation/components/Cells/CellTitle/index.d.ts +1 -1
- package/Presentation/components/Cells/CellTitle/index.js +1 -1
- package/Presentation/components/Cells/CellTitle/index.js.map +1 -1
- package/Presentation/components/Cells/index.d.ts +5 -5
- package/Presentation/components/Cells/index.js +5 -5
- package/Presentation/components/Cells/index.js.map +1 -1
- package/Presentation/components/Empty/Empty.js +4 -4
- package/Presentation/components/Empty/Empty.js.map +1 -1
- package/Presentation/components/Empty/index.d.ts +1 -1
- package/Presentation/components/Empty/index.js +1 -1
- package/Presentation/components/Empty/index.js.map +1 -1
- package/Presentation/components/SearchInput/SearchInput.js +1 -1
- package/Presentation/components/SearchInput/SearchInput.js.map +1 -1
- package/Presentation/components/SearchInput/index.d.ts +1 -1
- package/Presentation/components/SearchInput/index.js +1 -1
- package/Presentation/components/SearchInput/index.js.map +1 -1
- package/Presentation/components/Table/Table.js +8 -3
- package/Presentation/components/Table/Table.js.map +1 -1
- package/Presentation/components/Table/index.d.ts +1 -1
- package/Presentation/components/Table/index.js +1 -1
- package/Presentation/components/Table/index.js.map +1 -1
- package/Presentation/components/Title/Title.js +1 -1
- package/Presentation/components/Title/Title.js.map +1 -1
- package/Presentation/components/Title/index.d.ts +1 -1
- package/Presentation/components/Title/index.js +1 -1
- package/Presentation/components/Title/index.js.map +1 -1
- package/Presentation/components/TrashBinOverlay/TrashBinOverlay.js +8 -8
- package/Presentation/components/TrashBinOverlay/TrashBinOverlay.js.map +1 -1
- package/Presentation/components/TrashBinOverlay/index.d.ts +1 -1
- package/Presentation/components/TrashBinOverlay/index.js +1 -1
- package/Presentation/components/TrashBinOverlay/index.js.map +1 -1
- package/Presentation/configs/index.d.ts +1 -1
- package/Presentation/configs/index.js +1 -1
- package/Presentation/configs/index.js.map +1 -1
- package/Presentation/configs/list/Browser/BulkAction.d.ts +2 -2
- package/Presentation/configs/list/Browser/BulkAction.js +2 -2
- package/Presentation/configs/list/Browser/BulkAction.js.map +1 -1
- package/Presentation/configs/list/Browser/EntryAction.d.ts +1 -1
- package/Presentation/configs/list/Browser/EntryAction.js +1 -1
- package/Presentation/configs/list/Browser/EntryAction.js.map +1 -1
- package/Presentation/configs/list/Browser/Table/Column.d.ts +2 -2
- package/Presentation/configs/list/Browser/Table/Column.js +1 -1
- package/Presentation/configs/list/Browser/Table/Column.js.map +1 -1
- package/Presentation/configs/list/Browser/Table/Sorting.js +1 -1
- package/Presentation/configs/list/Browser/Table/Sorting.js.map +1 -1
- package/Presentation/configs/list/Browser/Table/index.d.ts +7 -8
- package/Presentation/configs/list/Browser/Table/index.js +2 -2
- package/Presentation/configs/list/Browser/Table/index.js.map +1 -1
- package/Presentation/configs/list/Browser/index.d.ts +18 -19
- package/Presentation/configs/list/Browser/index.js +3 -3
- package/Presentation/configs/list/Browser/index.js.map +1 -1
- package/Presentation/configs/list/TrashBinListConfig.d.ts +17 -17
- package/Presentation/configs/list/TrashBinListConfig.js +5 -1
- package/Presentation/configs/list/TrashBinListConfig.js.map +1 -1
- package/Presentation/configs/list/index.d.ts +1 -1
- package/Presentation/configs/list/index.js +1 -1
- package/Presentation/configs/list/index.js.map +1 -1
- package/Presentation/hooks/index.d.ts +4 -4
- package/Presentation/hooks/index.js +4 -4
- package/Presentation/hooks/index.js.map +1 -1
- package/Presentation/hooks/useDeleteTrashBinItem.d.ts +1 -1
- package/Presentation/hooks/useDeleteTrashBinItem.js +1 -1
- package/Presentation/hooks/useDeleteTrashBinItem.js.map +1 -1
- package/Presentation/hooks/useRestoreTrashBinItem.d.ts +1 -1
- package/Presentation/hooks/useRestoreTrashBinItem.js +2 -2
- package/Presentation/hooks/useRestoreTrashBinItem.js.map +1 -1
- package/Presentation/hooks/useTrashBin.d.ts +7 -8
- package/Presentation/hooks/useTrashBin.js.map +1 -1
- package/Presentation/hooks/useTrashBinItem.d.ts +3 -4
- package/Presentation/hooks/useTrashBinItem.js.map +1 -1
- package/Presentation/index.d.ts +3 -3
- package/Presentation/index.js +5 -6
- package/Presentation/index.js.map +1 -1
- package/README.md +7 -13
- package/UseCases/BulkAction/BulkActionUseCase.d.ts +3 -3
- package/UseCases/BulkAction/BulkActionUseCase.js.map +1 -1
- package/UseCases/BulkAction/IBulkActionUseCase.d.ts +1 -1
- package/UseCases/BulkAction/IBulkActionUseCase.js.map +1 -1
- package/UseCases/BulkAction/index.d.ts +2 -2
- package/UseCases/BulkAction/index.js +1 -2
- package/UseCases/BulkAction/index.js.map +1 -1
- package/UseCases/DeleteItem/DeleteItemUseCase.d.ts +2 -2
- package/UseCases/DeleteItem/DeleteItemUseCase.js.map +1 -1
- package/UseCases/DeleteItem/index.d.ts +2 -2
- package/UseCases/DeleteItem/index.js +1 -2
- package/UseCases/DeleteItem/index.js.map +1 -1
- package/UseCases/GetRestoredItem/GetRestoredItemUseCase.d.ts +3 -3
- package/UseCases/GetRestoredItem/GetRestoredItemUseCase.js.map +1 -1
- package/UseCases/GetRestoredItem/IGetRestoredItemUseCase.d.ts +1 -1
- package/UseCases/GetRestoredItem/IGetRestoredItemUseCase.js.map +1 -1
- package/UseCases/GetRestoredItem/index.d.ts +2 -2
- package/UseCases/GetRestoredItem/index.js +1 -2
- package/UseCases/GetRestoredItem/index.js.map +1 -1
- package/UseCases/ListItems/IListItemsUseCase.d.ts +1 -1
- package/UseCases/ListItems/IListItemsUseCase.js.map +1 -1
- package/UseCases/ListItems/ListItemsUseCase.d.ts +3 -3
- package/UseCases/ListItems/ListItemsUseCase.js.map +1 -1
- package/UseCases/ListItems/ListItemsUseCaseWithSearch.d.ts +3 -3
- package/UseCases/ListItems/ListItemsUseCaseWithSearch.js.map +1 -1
- package/UseCases/ListItems/ListItemsUseCaseWithSorting.d.ts +2 -2
- package/UseCases/ListItems/ListItemsUseCaseWithSorting.js.map +1 -1
- package/UseCases/ListItems/index.d.ts +4 -4
- package/UseCases/ListItems/index.js +3 -4
- package/UseCases/ListItems/index.js.map +1 -1
- package/UseCases/ListMoreItems/ListMoreItemsUseCase.d.ts +2 -2
- package/UseCases/ListMoreItems/ListMoreItemsUseCase.js.map +1 -1
- package/UseCases/ListMoreItems/index.d.ts +2 -2
- package/UseCases/ListMoreItems/index.js +1 -2
- package/UseCases/ListMoreItems/index.js.map +1 -1
- package/UseCases/RestoreItem/RestoreItemUseCase.d.ts +2 -2
- package/UseCases/RestoreItem/RestoreItemUseCase.js.map +1 -1
- package/UseCases/RestoreItem/index.d.ts +2 -2
- package/UseCases/RestoreItem/index.js +1 -2
- package/UseCases/RestoreItem/index.js.map +1 -1
- package/UseCases/SearchItems/SearchItemsUseCase.d.ts +2 -2
- package/UseCases/SearchItems/SearchItemsUseCase.js.map +1 -1
- package/UseCases/SearchItems/index.d.ts +2 -2
- package/UseCases/SearchItems/index.js +1 -2
- package/UseCases/SearchItems/index.js.map +1 -1
- package/UseCases/SelectAllItems/SelectAllItemsUseCase.d.ts +2 -2
- package/UseCases/SelectAllItems/SelectAllItemsUseCase.js.map +1 -1
- package/UseCases/SelectAllItems/index.d.ts +2 -2
- package/UseCases/SelectAllItems/index.js +1 -2
- package/UseCases/SelectAllItems/index.js.map +1 -1
- package/UseCases/SelectItems/ISelectItemsUseCase.d.ts +1 -1
- package/UseCases/SelectItems/ISelectItemsUseCase.js.map +1 -1
- package/UseCases/SelectItems/SelectItemsUseCase.d.ts +2 -2
- package/UseCases/SelectItems/SelectItemsUseCase.js.map +1 -1
- package/UseCases/SelectItems/index.d.ts +2 -2
- package/UseCases/SelectItems/index.js +1 -2
- package/UseCases/SelectItems/index.js.map +1 -1
- package/UseCases/SortItems/SortItemsUseCase.d.ts +1 -1
- package/UseCases/SortItems/SortItemsUseCase.js.map +1 -1
- package/UseCases/SortItems/index.d.ts +2 -2
- package/UseCases/SortItems/index.js +1 -2
- package/UseCases/SortItems/index.js.map +1 -1
- package/UseCases/UnSelectAllItems/UnselectAllItemsUseCase.d.ts +2 -2
- package/UseCases/UnSelectAllItems/UnselectAllItemsUseCase.js.map +1 -1
- package/UseCases/UnSelectAllItems/index.d.ts +2 -2
- package/UseCases/UnSelectAllItems/index.js +1 -2
- package/UseCases/UnSelectAllItems/index.js.map +1 -1
- package/UseCases/index.d.ts +11 -11
- package/UseCases/index.js +11 -11
- package/UseCases/index.js.map +1 -1
- package/index.d.ts +3 -3
- package/index.js +2 -3
- package/index.js.map +1 -1
- package/package.json +19 -21
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["ITrashBinItemMapper.ts"],"sourcesContent":["import type { TrashBinItemDTO } from \"./TrashBinItem\";\n\nexport interface ITrashBinItemMapper<TItem extends Record<string, any>> {\n toDTO: (data: TItem) => TrashBinItemDTO;\n}\n"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["ITrashBinItemMapper.ts"],"sourcesContent":["import type { TrashBinItemDTO } from \"./TrashBinItem.js\";\n\nexport interface ITrashBinItemMapper<TItem extends Record<string, any>> {\n toDTO: (data: TItem) => TrashBinItemDTO;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["TrashBinItem","constructor","item","id","title","location","createdBy","deletedOn","deletedBy","create"],"sources":["TrashBinItem.ts"],"sourcesContent":["import type { TrashBinIdentity, TrashBinLocation } from \"~/types\";\nimport type { TableRow } from \"@webiny/app-aco\";\n\nexport interface TrashBinItemDTO {\n id: string;\n title: string;\n createdBy: TrashBinIdentity;\n deletedBy: TrashBinIdentity;\n deletedOn: string;\n location: TrashBinLocation;\n [key: string]: any;\n}\n\nexport type TrashBinTableRow = TableRow<TrashBinItemDTO>;\n\nexport class TrashBinItem {\n public id: string;\n public title: string;\n public location: TrashBinLocation;\n public createdBy: TrashBinIdentity;\n public deletedOn: string;\n public deletedBy: TrashBinIdentity;\n\n protected constructor(item: TrashBinItemDTO) {\n this.id = item.id;\n this.title = item.title;\n this.location = item.location;\n this.createdBy = item.createdBy;\n this.deletedOn = item.deletedOn;\n this.deletedBy = item.deletedBy;\n }\n\n static create(item: TrashBinItemDTO) {\n return new TrashBinItem(item);\n }\n}\n"],"mappings":"AAeA,OAAO,MAAMA,YAAY,CAAC;EAQZC,WAAWA,CAACC,IAAqB,EAAE;IACzC,IAAI,CAACC,EAAE,GAAGD,IAAI,CAACC,EAAE;IACjB,IAAI,CAACC,KAAK,GAAGF,IAAI,CAACE,KAAK;IACvB,IAAI,CAACC,QAAQ,GAAGH,IAAI,CAACG,QAAQ;IAC7B,IAAI,CAACC,SAAS,GAAGJ,IAAI,CAACI,SAAS;IAC/B,IAAI,CAACC,SAAS,GAAGL,IAAI,CAACK,SAAS;IAC/B,IAAI,CAACC,SAAS,GAAGN,IAAI,CAACM,SAAS;EACnC;EAEA,OAAOC,MAAMA,CAACP,IAAqB,EAAE;IACjC,OAAO,IAAIF,YAAY,CAACE,IAAI,CAAC;EACjC;AACJ","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["TrashBinItem","constructor","item","id","title","location","createdBy","deletedOn","deletedBy","create"],"sources":["TrashBinItem.ts"],"sourcesContent":["import type { TrashBinIdentity, TrashBinLocation } from \"~/types.js\";\nimport type { TableRow } from \"@webiny/app-aco\";\n\nexport interface TrashBinItemDTO {\n id: string;\n title: string;\n createdBy: TrashBinIdentity;\n deletedBy: TrashBinIdentity;\n deletedOn: string;\n location: TrashBinLocation;\n [key: string]: any;\n}\n\nexport type TrashBinTableRow = TableRow<TrashBinItemDTO>;\n\nexport class TrashBinItem {\n public id: string;\n public title: string;\n public location: TrashBinLocation;\n public createdBy: TrashBinIdentity;\n public deletedOn: string;\n public deletedBy: TrashBinIdentity;\n\n protected constructor(item: TrashBinItemDTO) {\n this.id = item.id;\n this.title = item.title;\n this.location = item.location;\n this.createdBy = item.createdBy;\n this.deletedOn = item.deletedOn;\n this.deletedBy = item.deletedBy;\n }\n\n static create(item: TrashBinItemDTO) {\n return new TrashBinItem(item);\n }\n}\n"],"mappings":"AAeA,OAAO,MAAMA,YAAY,CAAC;EAQZC,WAAWA,CAACC,IAAqB,EAAE;IACzC,IAAI,CAACC,EAAE,GAAGD,IAAI,CAACC,EAAE;IACjB,IAAI,CAACC,KAAK,GAAGF,IAAI,CAACE,KAAK;IACvB,IAAI,CAACC,QAAQ,GAAGH,IAAI,CAACG,QAAQ;IAC7B,IAAI,CAACC,SAAS,GAAGJ,IAAI,CAACI,SAAS;IAC/B,IAAI,CAACC,SAAS,GAAGL,IAAI,CAACK,SAAS;IAC/B,IAAI,CAACC,SAAS,GAAGN,IAAI,CAACM,SAAS;EACnC;EAEA,OAAOC,MAAMA,CAACP,IAAqB,EAAE;IACjC,OAAO,IAAIF,YAAY,CAACE,IAAI,CAAC;EACjC;AACJ","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./ITrashBinItemMapper";
|
|
2
|
-
export * from "./TrashBinItem";
|
|
1
|
+
export type * from "./ITrashBinItemMapper.js";
|
|
2
|
+
export * from "./TrashBinItem.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./ITrashBinItemMapper\";\nexport * from \"./TrashBinItem\";\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export type * from \"./ITrashBinItemMapper.js\";\nexport * from \"./TrashBinItem.js\";\n"],"mappings":"AACA","ignoreList":[]}
|
package/Domain/Models/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./TrashBinItem";
|
|
1
|
+
export * from "./TrashBinItem/index.js";
|
package/Domain/Models/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./TrashBinItem\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./TrashBinItem/index.js\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["makeAutoObservable","SearchRepository","query","constructor","get","set"],"sources":["SearchRepository.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { ISearchRepository } from \"./ISearchRepository\";\n\nexport class SearchRepository implements ISearchRepository {\n private query = \"\";\n\n constructor() {\n makeAutoObservable(this);\n }\n\n get() {\n return this.query;\n }\n\n async set(query: string) {\n this.query = query;\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAGzC,OAAO,MAAMC,gBAAgB,CAA8B;EAC/CC,KAAK,GAAG,EAAE;EAElBC,WAAWA,CAAA,EAAG;IACVH,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEAI,GAAGA,CAAA,EAAG;IACF,OAAO,IAAI,CAACF,KAAK;EACrB;EAEA,MAAMG,GAAGA,CAACH,KAAa,EAAE;IACrB,IAAI,CAACA,KAAK,GAAGA,KAAK;EACtB;AACJ","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["makeAutoObservable","SearchRepository","query","constructor","get","set"],"sources":["SearchRepository.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { ISearchRepository } from \"./ISearchRepository.js\";\n\nexport class SearchRepository implements ISearchRepository {\n private query = \"\";\n\n constructor() {\n makeAutoObservable(this);\n }\n\n get() {\n return this.query;\n }\n\n async set(query: string) {\n this.query = query;\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAGzC,OAAO,MAAMC,gBAAgB,CAA8B;EAC/CC,KAAK,GAAG,EAAE;EAElBC,WAAWA,CAAA,EAAG;IACVH,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEAI,GAAGA,CAAA,EAAG;IACF,OAAO,IAAI,CAACF,KAAK;EACrB;EAEA,MAAMG,GAAGA,CAACH,KAAa,EAAE;IACrB,IAAI,CAACA,KAAK,GAAGA,KAAK;EACtB;AACJ","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["SearchRepository","SearchRepositoryFactory","cache","Map","getRepository","cacheKey","getCacheKey","has","set","get","Date","now","toString","searchRepositoryFactory"],"sources":["SearchRepositoryFactory.ts"],"sourcesContent":["import { SearchRepository } from \"./SearchRepository\";\n\nexport class SearchRepositoryFactory {\n private cache: Map<string, SearchRepository> = new Map();\n\n getRepository() {\n const cacheKey = this.getCacheKey();\n\n if (!this.cache.has(cacheKey)) {\n this.cache.set(cacheKey, new SearchRepository());\n }\n\n return this.cache.get(cacheKey) as SearchRepository;\n }\n\n private getCacheKey() {\n return Date.now().toString();\n }\n}\n\nexport const searchRepositoryFactory = new SearchRepositoryFactory();\n"],"mappings":"AAAA,SAASA,gBAAgB;AAEzB,OAAO,MAAMC,uBAAuB,CAAC;EACzBC,KAAK,GAAkC,IAAIC,GAAG,CAAC,CAAC;EAExDC,aAAaA,CAAA,EAAG;IACZ,MAAMC,QAAQ,GAAG,IAAI,CAACC,WAAW,CAAC,CAAC;IAEnC,IAAI,CAAC,IAAI,CAACJ,KAAK,CAACK,GAAG,CAACF,QAAQ,CAAC,EAAE;MAC3B,IAAI,CAACH,KAAK,CAACM,GAAG,CAACH,QAAQ,EAAE,IAAIL,gBAAgB,CAAC,CAAC,CAAC;IACpD;IAEA,OAAO,IAAI,CAACE,KAAK,CAACO,GAAG,CAACJ,QAAQ,CAAC;EACnC;EAEQC,WAAWA,CAAA,EAAG;IAClB,OAAOI,IAAI,CAACC,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EAChC;AACJ;AAEA,OAAO,MAAMC,uBAAuB,GAAG,IAAIZ,uBAAuB,CAAC,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["SearchRepository","SearchRepositoryFactory","cache","Map","getRepository","cacheKey","getCacheKey","has","set","get","Date","now","toString","searchRepositoryFactory"],"sources":["SearchRepositoryFactory.ts"],"sourcesContent":["import { SearchRepository } from \"./SearchRepository.js\";\n\nexport class SearchRepositoryFactory {\n private cache: Map<string, SearchRepository> = new Map();\n\n getRepository() {\n const cacheKey = this.getCacheKey();\n\n if (!this.cache.has(cacheKey)) {\n this.cache.set(cacheKey, new SearchRepository());\n }\n\n return this.cache.get(cacheKey) as SearchRepository;\n }\n\n private getCacheKey() {\n return Date.now().toString();\n }\n}\n\nexport const searchRepositoryFactory = new SearchRepositoryFactory();\n"],"mappings":"AAAA,SAASA,gBAAgB;AAEzB,OAAO,MAAMC,uBAAuB,CAAC;EACzBC,KAAK,GAAkC,IAAIC,GAAG,CAAC,CAAC;EAExDC,aAAaA,CAAA,EAAG;IACZ,MAAMC,QAAQ,GAAG,IAAI,CAACC,WAAW,CAAC,CAAC;IAEnC,IAAI,CAAC,IAAI,CAACJ,KAAK,CAACK,GAAG,CAACF,QAAQ,CAAC,EAAE;MAC3B,IAAI,CAACH,KAAK,CAACM,GAAG,CAACH,QAAQ,EAAE,IAAIL,gBAAgB,CAAC,CAAC,CAAC;IACpD;IAEA,OAAO,IAAI,CAACE,KAAK,CAACO,GAAG,CAACJ,QAAQ,CAAC;EACnC;EAEQC,WAAWA,CAAA,EAAG;IAClB,OAAOI,IAAI,CAACC,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EAChC;AACJ;AAEA,OAAO,MAAMC,uBAAuB,GAAG,IAAIZ,uBAAuB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./ISearchRepository";
|
|
2
|
-
export * from "./SearchRepository";
|
|
3
|
-
export * from "./SearchRepositoryFactory";
|
|
1
|
+
export type * from "./ISearchRepository.js";
|
|
2
|
+
export * from "./SearchRepository.js";
|
|
3
|
+
export * from "./SearchRepositoryFactory.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./ISearchRepository\";\nexport * from \"./SearchRepository\";\nexport * from \"./SearchRepositoryFactory\";\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export type * from \"./ISearchRepository.js\";\nexport * from \"./SearchRepository.js\";\nexport * from \"./SearchRepositoryFactory.js\";\n"],"mappings":"AACA;AACA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["ISelectedItemsRepository.ts"],"sourcesContent":["import type { TrashBinItem } from \"~/Domain\";\n\nexport interface ISelectedItemsRepository {\n selectItems: (items: TrashBinItem[]) => Promise<void>;\n selectAllItems: () => Promise<void>;\n unselectAllItems: () => Promise<void>;\n getSelectedItems: () => TrashBinItem[];\n getSelectedAllItems: () => boolean;\n}\n"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["ISelectedItemsRepository.ts"],"sourcesContent":["import type { TrashBinItem } from \"~/Domain/index.js\";\n\nexport interface ISelectedItemsRepository {\n selectItems: (items: TrashBinItem[]) => Promise<void>;\n selectAllItems: () => Promise<void>;\n unselectAllItems: () => Promise<void>;\n getSelectedItems: () => TrashBinItem[];\n getSelectedAllItems: () => boolean;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TrashBinItem } from "
|
|
2
|
-
import type { ISelectedItemsRepository } from "./ISelectedItemsRepository";
|
|
1
|
+
import type { TrashBinItem } from "../../../Domain/index.js";
|
|
2
|
+
import type { ISelectedItemsRepository } from "./ISelectedItemsRepository.js";
|
|
3
3
|
export declare class SelectedItemsRepository implements ISelectedItemsRepository {
|
|
4
4
|
private items;
|
|
5
5
|
private selectedAll;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["makeAutoObservable","SelectedItemsRepository","items","selectedAll","constructor","getSelectedItems","getSelectedAllItems","selectItems","selectAllItems","unselectAllItems"],"sources":["SelectedItemsRepository.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { TrashBinItem } from \"~/Domain\";\nimport type { ISelectedItemsRepository } from \"./ISelectedItemsRepository\";\n\nexport class SelectedItemsRepository implements ISelectedItemsRepository {\n private items: TrashBinItem[] = [];\n private selectedAll = false;\n\n constructor() {\n makeAutoObservable(this);\n }\n\n getSelectedItems() {\n return this.items;\n }\n\n getSelectedAllItems() {\n return this.selectedAll;\n }\n\n async selectItems(items: TrashBinItem[]) {\n this.items = items;\n this.selectedAll = false;\n }\n\n async selectAllItems() {\n this.selectedAll = true;\n }\n\n async unselectAllItems() {\n this.items = [];\n this.selectedAll = false;\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAIzC,OAAO,MAAMC,uBAAuB,CAAqC;EAC7DC,KAAK,GAAmB,EAAE;EAC1BC,WAAW,GAAG,KAAK;EAE3BC,WAAWA,CAAA,EAAG;IACVJ,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEAK,gBAAgBA,CAAA,EAAG;IACf,OAAO,IAAI,CAACH,KAAK;EACrB;EAEAI,mBAAmBA,CAAA,EAAG;IAClB,OAAO,IAAI,CAACH,WAAW;EAC3B;EAEA,MAAMI,WAAWA,CAACL,KAAqB,EAAE;IACrC,IAAI,CAACA,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACC,WAAW,GAAG,KAAK;EAC5B;EAEA,MAAMK,cAAcA,CAAA,EAAG;IACnB,IAAI,CAACL,WAAW,GAAG,IAAI;EAC3B;EAEA,MAAMM,gBAAgBA,CAAA,EAAG;IACrB,IAAI,CAACP,KAAK,GAAG,EAAE;IACf,IAAI,CAACC,WAAW,GAAG,KAAK;EAC5B;AACJ","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["makeAutoObservable","SelectedItemsRepository","items","selectedAll","constructor","getSelectedItems","getSelectedAllItems","selectItems","selectAllItems","unselectAllItems"],"sources":["SelectedItemsRepository.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { TrashBinItem } from \"~/Domain/index.js\";\nimport type { ISelectedItemsRepository } from \"./ISelectedItemsRepository.js\";\n\nexport class SelectedItemsRepository implements ISelectedItemsRepository {\n private items: TrashBinItem[] = [];\n private selectedAll = false;\n\n constructor() {\n makeAutoObservable(this);\n }\n\n getSelectedItems() {\n return this.items;\n }\n\n getSelectedAllItems() {\n return this.selectedAll;\n }\n\n async selectItems(items: TrashBinItem[]) {\n this.items = items;\n this.selectedAll = false;\n }\n\n async selectAllItems() {\n this.selectedAll = true;\n }\n\n async unselectAllItems() {\n this.items = [];\n this.selectedAll = false;\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAIzC,OAAO,MAAMC,uBAAuB,CAAqC;EAC7DC,KAAK,GAAmB,EAAE;EAC1BC,WAAW,GAAG,KAAK;EAE3BC,WAAWA,CAAA,EAAG;IACVJ,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEAK,gBAAgBA,CAAA,EAAG;IACf,OAAO,IAAI,CAACH,KAAK;EACrB;EAEAI,mBAAmBA,CAAA,EAAG;IAClB,OAAO,IAAI,CAACH,WAAW;EAC3B;EAEA,MAAMI,WAAWA,CAACL,KAAqB,EAAE;IACrC,IAAI,CAACA,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACC,WAAW,GAAG,KAAK;EAC5B;EAEA,MAAMK,cAAcA,CAAA,EAAG;IACnB,IAAI,CAACL,WAAW,GAAG,IAAI;EAC3B;EAEA,MAAMM,gBAAgBA,CAAA,EAAG;IACrB,IAAI,CAACP,KAAK,GAAG,EAAE;IACf,IAAI,CAACC,WAAW,GAAG,KAAK;EAC5B;AACJ","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["SelectedItemsRepository","SelectedItemsRepositoryFactory","cache","Map","getRepository","cacheKey","getCacheKey","has","set","get","Date","now","toString","selectedItemsRepositoryFactory"],"sources":["SelectedItemsRepositoryFactory.ts"],"sourcesContent":["import { SelectedItemsRepository } from \"./SelectedItemsRepository\";\n\nexport class SelectedItemsRepositoryFactory {\n private cache: Map<string, SelectedItemsRepository> = new Map();\n\n getRepository() {\n const cacheKey = this.getCacheKey();\n\n if (!this.cache.has(cacheKey)) {\n this.cache.set(cacheKey, new SelectedItemsRepository());\n }\n\n return this.cache.get(cacheKey) as SelectedItemsRepository;\n }\n\n private getCacheKey() {\n return Date.now().toString();\n }\n}\n\nexport const selectedItemsRepositoryFactory = new SelectedItemsRepositoryFactory();\n"],"mappings":"AAAA,SAASA,uBAAuB;AAEhC,OAAO,MAAMC,8BAA8B,CAAC;EAChCC,KAAK,GAAyC,IAAIC,GAAG,CAAC,CAAC;EAE/DC,aAAaA,CAAA,EAAG;IACZ,MAAMC,QAAQ,GAAG,IAAI,CAACC,WAAW,CAAC,CAAC;IAEnC,IAAI,CAAC,IAAI,CAACJ,KAAK,CAACK,GAAG,CAACF,QAAQ,CAAC,EAAE;MAC3B,IAAI,CAACH,KAAK,CAACM,GAAG,CAACH,QAAQ,EAAE,IAAIL,uBAAuB,CAAC,CAAC,CAAC;IAC3D;IAEA,OAAO,IAAI,CAACE,KAAK,CAACO,GAAG,CAACJ,QAAQ,CAAC;EACnC;EAEQC,WAAWA,CAAA,EAAG;IAClB,OAAOI,IAAI,CAACC,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EAChC;AACJ;AAEA,OAAO,MAAMC,8BAA8B,GAAG,IAAIZ,8BAA8B,CAAC,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["SelectedItemsRepository","SelectedItemsRepositoryFactory","cache","Map","getRepository","cacheKey","getCacheKey","has","set","get","Date","now","toString","selectedItemsRepositoryFactory"],"sources":["SelectedItemsRepositoryFactory.ts"],"sourcesContent":["import { SelectedItemsRepository } from \"./SelectedItemsRepository.js\";\n\nexport class SelectedItemsRepositoryFactory {\n private cache: Map<string, SelectedItemsRepository> = new Map();\n\n getRepository() {\n const cacheKey = this.getCacheKey();\n\n if (!this.cache.has(cacheKey)) {\n this.cache.set(cacheKey, new SelectedItemsRepository());\n }\n\n return this.cache.get(cacheKey) as SelectedItemsRepository;\n }\n\n private getCacheKey() {\n return Date.now().toString();\n }\n}\n\nexport const selectedItemsRepositoryFactory = new SelectedItemsRepositoryFactory();\n"],"mappings":"AAAA,SAASA,uBAAuB;AAEhC,OAAO,MAAMC,8BAA8B,CAAC;EAChCC,KAAK,GAAyC,IAAIC,GAAG,CAAC,CAAC;EAE/DC,aAAaA,CAAA,EAAG;IACZ,MAAMC,QAAQ,GAAG,IAAI,CAACC,WAAW,CAAC,CAAC;IAEnC,IAAI,CAAC,IAAI,CAACJ,KAAK,CAACK,GAAG,CAACF,QAAQ,CAAC,EAAE;MAC3B,IAAI,CAACH,KAAK,CAACM,GAAG,CAACH,QAAQ,EAAE,IAAIL,uBAAuB,CAAC,CAAC,CAAC;IAC3D;IAEA,OAAO,IAAI,CAACE,KAAK,CAACO,GAAG,CAACJ,QAAQ,CAAC;EACnC;EAEQC,WAAWA,CAAA,EAAG;IAClB,OAAOI,IAAI,CAACC,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EAChC;AACJ;AAEA,OAAO,MAAMC,8BAA8B,GAAG,IAAIZ,8BAA8B,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./ISelectedItemsRepository";
|
|
2
|
-
export * from "./SelectedItemsRepository";
|
|
3
|
-
export * from "./SelectedItemsRepositoryFactory";
|
|
1
|
+
export type * from "./ISelectedItemsRepository.js";
|
|
2
|
+
export * from "./SelectedItemsRepository.js";
|
|
3
|
+
export * from "./SelectedItemsRepositoryFactory.js";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./SelectedItemsRepositoryFactory";
|
|
1
|
+
export * from "./SelectedItemsRepository.js";
|
|
2
|
+
export * from "./SelectedItemsRepositoryFactory.js";
|
|
4
3
|
|
|
5
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./ISelectedItemsRepository\";\nexport * from \"./SelectedItemsRepository\";\nexport * from \"./SelectedItemsRepositoryFactory\";\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export type * from \"./ISelectedItemsRepository.js\";\nexport * from \"./SelectedItemsRepository.js\";\nexport * from \"./SelectedItemsRepositoryFactory.js\";\n"],"mappings":"AACA;AACA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./SortingRepositoryWithDefaults";
|
|
1
|
+
export * from "./SortingRepositoryWithDefaults.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./SortingRepositoryWithDefaults\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./SortingRepositoryWithDefaults.js\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Meta } from "@webiny/app-utils";
|
|
2
|
-
import type { TrashBinItem } from "
|
|
3
|
-
import type { TrashBinBulkActionsParams, TrashBinListQueryVariables } from "../../../types";
|
|
2
|
+
import type { TrashBinItem } from "../../../Domain/index.js";
|
|
3
|
+
import type { TrashBinBulkActionsParams, TrashBinListQueryVariables } from "../../../types.js";
|
|
4
4
|
export interface ITrashBinItemsRepository {
|
|
5
5
|
listItems: (params?: TrashBinListQueryVariables) => Promise<void>;
|
|
6
6
|
listMoreItems: () => Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["ITrashBinItemsRepository.ts"],"sourcesContent":["import type { Meta } from \"@webiny/app-utils\";\nimport type { TrashBinItem } from \"~/Domain\";\nimport type { TrashBinBulkActionsParams, TrashBinListQueryVariables } from \"~/types\";\n\nexport interface ITrashBinItemsRepository {\n listItems: (params?: TrashBinListQueryVariables) => Promise<void>;\n listMoreItems: () => Promise<void>;\n deleteItem: (id: string) => Promise<void>;\n restoreItem: (id: string) => Promise<void>;\n bulkAction: (action: string, params: TrashBinBulkActionsParams) => Promise<void>;\n getItems: () => TrashBinItem[];\n getRestoredItems: () => TrashBinItem[];\n getMeta: () => Meta;\n getLoading: () => Record<string, any>;\n}\n"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["ITrashBinItemsRepository.ts"],"sourcesContent":["import type { Meta } from \"@webiny/app-utils\";\nimport type { TrashBinItem } from \"~/Domain/index.js\";\nimport type { TrashBinBulkActionsParams, TrashBinListQueryVariables } from \"~/types.js\";\n\nexport interface ITrashBinItemsRepository {\n listItems: (params?: TrashBinListQueryVariables) => Promise<void>;\n listMoreItems: () => Promise<void>;\n deleteItem: (id: string) => Promise<void>;\n restoreItem: (id: string) => Promise<void>;\n bulkAction: (action: string, params: TrashBinBulkActionsParams) => Promise<void>;\n getItems: () => TrashBinItem[];\n getRestoredItems: () => TrashBinItem[];\n getMeta: () => Meta;\n getLoading: () => Record<string, any>;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ITrashBinItemMapper, TrashBinItem } from "
|
|
1
|
+
import type { ITrashBinItemMapper, TrashBinItem } from "../../../Domain/index.js";
|
|
2
2
|
export declare class TrashBinItemMapper implements ITrashBinItemMapper<TrashBinItem> {
|
|
3
3
|
toDTO(data: TrashBinItem): {
|
|
4
4
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["TrashBinItemMapper","toDTO","data","id","title","location","createdBy","deletedBy","displayName","type","deletedOn"],"sources":["TrashBinItemMapper.ts"],"sourcesContent":["import type { ITrashBinItemMapper, TrashBinItem } from \"~/Domain\";\n\nexport class TrashBinItemMapper implements ITrashBinItemMapper<TrashBinItem> {\n toDTO(data: TrashBinItem) {\n return {\n id: data.id,\n title: data.title,\n location: data.location,\n createdBy: data.createdBy,\n deletedBy: {\n id: data.deletedBy?.id || \"\",\n displayName: data.deletedBy?.displayName || \"\",\n type: data.deletedBy?.type || \"\"\n },\n deletedOn: data.deletedOn || \"\"\n };\n }\n}\n"],"mappings":"AAEA,OAAO,MAAMA,kBAAkB,CAA8C;EACzEC,KAAKA,CAACC,IAAkB,EAAE;IACtB,OAAO;MACHC,EAAE,EAAED,IAAI,CAACC,EAAE;MACXC,KAAK,EAAEF,IAAI,CAACE,KAAK;MACjBC,QAAQ,EAAEH,IAAI,CAACG,QAAQ;MACvBC,SAAS,EAAEJ,IAAI,CAACI,SAAS;MACzBC,SAAS,EAAE;QACPJ,EAAE,EAAED,IAAI,CAACK,SAAS,EAAEJ,EAAE,IAAI,EAAE;QAC5BK,WAAW,EAAEN,IAAI,CAACK,SAAS,EAAEC,WAAW,IAAI,EAAE;QAC9CC,IAAI,EAAEP,IAAI,CAACK,SAAS,EAAEE,IAAI,IAAI;MAClC,CAAC;MACDC,SAAS,EAAER,IAAI,CAACQ,SAAS,IAAI;IACjC,CAAC;EACL;AACJ","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["TrashBinItemMapper","toDTO","data","id","title","location","createdBy","deletedBy","displayName","type","deletedOn"],"sources":["TrashBinItemMapper.ts"],"sourcesContent":["import type { ITrashBinItemMapper, TrashBinItem } from \"~/Domain/index.js\";\n\nexport class TrashBinItemMapper implements ITrashBinItemMapper<TrashBinItem> {\n toDTO(data: TrashBinItem) {\n return {\n id: data.id,\n title: data.title,\n location: data.location,\n createdBy: data.createdBy,\n deletedBy: {\n id: data.deletedBy?.id || \"\",\n displayName: data.deletedBy?.displayName || \"\",\n type: data.deletedBy?.type || \"\"\n },\n deletedOn: data.deletedOn || \"\"\n };\n }\n}\n"],"mappings":"AAEA,OAAO,MAAMA,kBAAkB,CAA8C;EACzEC,KAAKA,CAACC,IAAkB,EAAE;IACtB,OAAO;MACHC,EAAE,EAAED,IAAI,CAACC,EAAE;MACXC,KAAK,EAAEF,IAAI,CAACE,KAAK;MACjBC,QAAQ,EAAEH,IAAI,CAACG,QAAQ;MACvBC,SAAS,EAAEJ,IAAI,CAACI,SAAS;MACzBC,SAAS,EAAE;QACPJ,EAAE,EAAED,IAAI,CAACK,SAAS,EAAEJ,EAAE,IAAI,EAAE;QAC5BK,WAAW,EAAEN,IAAI,CAACK,SAAS,EAAEC,WAAW,IAAI,EAAE;QAC9CC,IAAI,EAAEP,IAAI,CAACK,SAAS,EAAEE,IAAI,IAAI;MAClC,CAAC;MACDC,SAAS,EAAER,IAAI,CAACQ,SAAS,IAAI;IACjC,CAAC;EACL;AACJ","ignoreList":[]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { ITrashBinItemMapper } from "
|
|
2
|
-
import { TrashBinItem } from "
|
|
3
|
-
import type { ITrashBinListGateway, ITrashBinDeleteItemGateway, ITrashBinRestoreItemGateway, ITrashBinBulkActionsGateway } from "../../../Gateways";
|
|
1
|
+
import type { ITrashBinItemMapper } from "../../../Domain/index.js";
|
|
2
|
+
import { TrashBinItem } from "../../../Domain/index.js";
|
|
3
|
+
import type { ITrashBinListGateway, ITrashBinDeleteItemGateway, ITrashBinRestoreItemGateway, ITrashBinBulkActionsGateway } from "../../../Gateways/index.js";
|
|
4
4
|
import type { IMetaRepository } from "@webiny/app-utils";
|
|
5
5
|
import { Meta } from "@webiny/app-utils";
|
|
6
|
-
import type { TrashBinBulkActionsParams, TrashBinListQueryVariables } from "../../../types";
|
|
7
|
-
import type { ITrashBinItemsRepository } from "./ITrashBinItemsRepository";
|
|
6
|
+
import type { TrashBinBulkActionsParams, TrashBinListQueryVariables } from "../../../types.js";
|
|
7
|
+
import type { ITrashBinItemsRepository } from "./ITrashBinItemsRepository.js";
|
|
8
8
|
export declare class TrashBinItemsRepository<TItem extends Record<string, any>> implements ITrashBinItemsRepository {
|
|
9
9
|
private metaRepository;
|
|
10
10
|
private listGateway;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { makeAutoObservable, runInAction } from "mobx";
|
|
2
|
-
import uniqBy from "lodash/uniqBy";
|
|
3
|
-
import { TrashBinItem } from "
|
|
2
|
+
import uniqBy from "lodash/uniqBy.js";
|
|
3
|
+
import { TrashBinItem } from "../../index.js";
|
|
4
4
|
import { Meta } from "@webiny/app-utils";
|
|
5
5
|
export class TrashBinItemsRepository {
|
|
6
6
|
items = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["makeAutoObservable","runInAction","uniqBy","TrashBinItem","Meta","TrashBinItemsRepository","items","restoredItems","params","constructor","metaRepository","listGateway","deleteGateway","restoreGateway","bulkActionsGateway","entryMapper","itemMapper","getItems","getRestoredItems","getMeta","get","getLoading","listItems","response","execute","meta","map","entry","create","toDTO","set","listMoreItems","cursor","after","itemsDTO","deleteItem","id","filter","item","decreaseTotalCount","restoreItem","bulkAction","action","where","search","data"],"sources":["TrashBinItemsRepository.ts"],"sourcesContent":["import { makeAutoObservable, runInAction } from \"mobx\";\nimport uniqBy from \"lodash/uniqBy\";\nimport type { ITrashBinItemMapper } from \"~/Domain\";\nimport { TrashBinItem } from \"~/Domain\";\nimport type {\n ITrashBinListGateway,\n ITrashBinDeleteItemGateway,\n ITrashBinRestoreItemGateway,\n ITrashBinBulkActionsGateway\n} from \"~/Gateways\";\nimport type { IMetaRepository } from \"@webiny/app-utils\";\nimport { Meta } from \"@webiny/app-utils\";\nimport type { TrashBinBulkActionsParams, TrashBinListQueryVariables } from \"~/types\";\nimport type { ITrashBinItemsRepository } from \"./ITrashBinItemsRepository\";\n\nexport class TrashBinItemsRepository<TItem extends Record<string, any>>\n implements ITrashBinItemsRepository\n{\n private metaRepository: IMetaRepository;\n private listGateway: ITrashBinListGateway<TItem>;\n private deleteGateway: ITrashBinDeleteItemGateway;\n private restoreGateway: ITrashBinRestoreItemGateway<TItem>;\n private bulkActionsGateway: ITrashBinBulkActionsGateway;\n private itemMapper: ITrashBinItemMapper<TItem>;\n private items: TrashBinItem[] = [];\n private restoredItems: TrashBinItem[] = [];\n private params: TrashBinListQueryVariables = {};\n\n constructor(\n metaRepository: IMetaRepository,\n listGateway: ITrashBinListGateway<TItem>,\n deleteGateway: ITrashBinDeleteItemGateway,\n restoreGateway: ITrashBinRestoreItemGateway<TItem>,\n bulkActionsGateway: ITrashBinBulkActionsGateway,\n entryMapper: ITrashBinItemMapper<TItem>\n ) {\n this.metaRepository = metaRepository;\n this.listGateway = listGateway;\n this.deleteGateway = deleteGateway;\n this.restoreGateway = restoreGateway;\n this.bulkActionsGateway = bulkActionsGateway;\n this.itemMapper = entryMapper;\n this.params = {};\n makeAutoObservable(this);\n }\n\n getItems() {\n return this.items;\n }\n\n getRestoredItems() {\n return this.restoredItems;\n }\n\n getMeta() {\n return this.metaRepository.get();\n }\n\n getLoading() {\n return {};\n }\n\n async listItems(params?: TrashBinListQueryVariables) {\n this.params = params || {};\n\n const response = await this.listGateway.execute({ ...params });\n\n if (!response) {\n return;\n }\n\n runInAction(() => {\n const [items, meta] = response;\n this.items = items.map(entry => TrashBinItem.create(this.itemMapper.toDTO(entry)));\n this.metaRepository.set(Meta.create(meta));\n });\n }\n\n async listMoreItems() {\n const { cursor } = this.metaRepository.get();\n\n if (!cursor) {\n return;\n }\n\n const response = await this.listGateway.execute({ ...this.params, after: cursor });\n\n if (!response) {\n return;\n }\n\n runInAction(() => {\n const [items, meta] = response;\n const itemsDTO = items.map(entry => TrashBinItem.create(this.itemMapper.toDTO(entry)));\n this.items = uniqBy([...this.items, ...itemsDTO], \"id\");\n this.metaRepository.set(Meta.create(meta));\n });\n }\n\n async deleteItem(id: string) {\n const response = await this.deleteGateway.execute(id);\n\n if (!response) {\n return;\n }\n\n runInAction(() => {\n this.items = this.items.filter(item => item.id !== id);\n this.metaRepository.decreaseTotalCount(1);\n });\n }\n\n async restoreItem(id: string) {\n const item = await this.restoreGateway.execute(id);\n\n if (!item) {\n return;\n }\n\n runInAction(() => {\n this.items = this.items.filter(item => item.id !== id);\n this.restoredItems = [\n ...this.restoredItems,\n TrashBinItem.create(this.itemMapper.toDTO(item))\n ];\n this.metaRepository.decreaseTotalCount(1);\n });\n }\n\n async bulkAction(action: string, params: TrashBinBulkActionsParams) {\n const { where, search, data } = params;\n await this.bulkActionsGateway.execute({ action, where, search, data });\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,EAAEC,WAAW,QAAQ,MAAM;AACtD,OAAOC,MAAM,MAAM,
|
|
1
|
+
{"version":3,"names":["makeAutoObservable","runInAction","uniqBy","TrashBinItem","Meta","TrashBinItemsRepository","items","restoredItems","params","constructor","metaRepository","listGateway","deleteGateway","restoreGateway","bulkActionsGateway","entryMapper","itemMapper","getItems","getRestoredItems","getMeta","get","getLoading","listItems","response","execute","meta","map","entry","create","toDTO","set","listMoreItems","cursor","after","itemsDTO","deleteItem","id","filter","item","decreaseTotalCount","restoreItem","bulkAction","action","where","search","data"],"sources":["TrashBinItemsRepository.ts"],"sourcesContent":["import { makeAutoObservable, runInAction } from \"mobx\";\nimport uniqBy from \"lodash/uniqBy.js\";\nimport type { ITrashBinItemMapper } from \"~/Domain/index.js\";\nimport { TrashBinItem } from \"~/Domain/index.js\";\nimport type {\n ITrashBinListGateway,\n ITrashBinDeleteItemGateway,\n ITrashBinRestoreItemGateway,\n ITrashBinBulkActionsGateway\n} from \"~/Gateways/index.js\";\nimport type { IMetaRepository } from \"@webiny/app-utils\";\nimport { Meta } from \"@webiny/app-utils\";\nimport type { TrashBinBulkActionsParams, TrashBinListQueryVariables } from \"~/types.js\";\nimport type { ITrashBinItemsRepository } from \"./ITrashBinItemsRepository.js\";\n\nexport class TrashBinItemsRepository<TItem extends Record<string, any>>\n implements ITrashBinItemsRepository\n{\n private metaRepository: IMetaRepository;\n private listGateway: ITrashBinListGateway<TItem>;\n private deleteGateway: ITrashBinDeleteItemGateway;\n private restoreGateway: ITrashBinRestoreItemGateway<TItem>;\n private bulkActionsGateway: ITrashBinBulkActionsGateway;\n private itemMapper: ITrashBinItemMapper<TItem>;\n private items: TrashBinItem[] = [];\n private restoredItems: TrashBinItem[] = [];\n private params: TrashBinListQueryVariables = {};\n\n constructor(\n metaRepository: IMetaRepository,\n listGateway: ITrashBinListGateway<TItem>,\n deleteGateway: ITrashBinDeleteItemGateway,\n restoreGateway: ITrashBinRestoreItemGateway<TItem>,\n bulkActionsGateway: ITrashBinBulkActionsGateway,\n entryMapper: ITrashBinItemMapper<TItem>\n ) {\n this.metaRepository = metaRepository;\n this.listGateway = listGateway;\n this.deleteGateway = deleteGateway;\n this.restoreGateway = restoreGateway;\n this.bulkActionsGateway = bulkActionsGateway;\n this.itemMapper = entryMapper;\n this.params = {};\n makeAutoObservable(this);\n }\n\n getItems() {\n return this.items;\n }\n\n getRestoredItems() {\n return this.restoredItems;\n }\n\n getMeta() {\n return this.metaRepository.get();\n }\n\n getLoading() {\n return {};\n }\n\n async listItems(params?: TrashBinListQueryVariables) {\n this.params = params || {};\n\n const response = await this.listGateway.execute({ ...params });\n\n if (!response) {\n return;\n }\n\n runInAction(() => {\n const [items, meta] = response;\n this.items = items.map(entry => TrashBinItem.create(this.itemMapper.toDTO(entry)));\n this.metaRepository.set(Meta.create(meta));\n });\n }\n\n async listMoreItems() {\n const { cursor } = this.metaRepository.get();\n\n if (!cursor) {\n return;\n }\n\n const response = await this.listGateway.execute({ ...this.params, after: cursor });\n\n if (!response) {\n return;\n }\n\n runInAction(() => {\n const [items, meta] = response;\n const itemsDTO = items.map(entry => TrashBinItem.create(this.itemMapper.toDTO(entry)));\n this.items = uniqBy([...this.items, ...itemsDTO], \"id\");\n this.metaRepository.set(Meta.create(meta));\n });\n }\n\n async deleteItem(id: string) {\n const response = await this.deleteGateway.execute(id);\n\n if (!response) {\n return;\n }\n\n runInAction(() => {\n this.items = this.items.filter(item => item.id !== id);\n this.metaRepository.decreaseTotalCount(1);\n });\n }\n\n async restoreItem(id: string) {\n const item = await this.restoreGateway.execute(id);\n\n if (!item) {\n return;\n }\n\n runInAction(() => {\n this.items = this.items.filter(item => item.id !== id);\n this.restoredItems = [\n ...this.restoredItems,\n TrashBinItem.create(this.itemMapper.toDTO(item))\n ];\n this.metaRepository.decreaseTotalCount(1);\n });\n }\n\n async bulkAction(action: string, params: TrashBinBulkActionsParams) {\n const { where, search, data } = params;\n await this.bulkActionsGateway.execute({ action, where, search, data });\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,EAAEC,WAAW,QAAQ,MAAM;AACtD,OAAOC,MAAM,MAAM,kBAAkB;AAErC,SAASC,YAAY;AAQrB,SAASC,IAAI,QAAQ,mBAAmB;AAIxC,OAAO,MAAMC,uBAAuB,CAEpC;EAOYC,KAAK,GAAmB,EAAE;EAC1BC,aAAa,GAAmB,EAAE;EAClCC,MAAM,GAA+B,CAAC,CAAC;EAE/CC,WAAWA,CACPC,cAA+B,EAC/BC,WAAwC,EACxCC,aAAyC,EACzCC,cAAkD,EAClDC,kBAA+C,EAC/CC,WAAuC,EACzC;IACE,IAAI,CAACL,cAAc,GAAGA,cAAc;IACpC,IAAI,CAACC,WAAW,GAAGA,WAAW;IAC9B,IAAI,CAACC,aAAa,GAAGA,aAAa;IAClC,IAAI,CAACC,cAAc,GAAGA,cAAc;IACpC,IAAI,CAACC,kBAAkB,GAAGA,kBAAkB;IAC5C,IAAI,CAACE,UAAU,GAAGD,WAAW;IAC7B,IAAI,CAACP,MAAM,GAAG,CAAC,CAAC;IAChBR,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEAiB,QAAQA,CAAA,EAAG;IACP,OAAO,IAAI,CAACX,KAAK;EACrB;EAEAY,gBAAgBA,CAAA,EAAG;IACf,OAAO,IAAI,CAACX,aAAa;EAC7B;EAEAY,OAAOA,CAAA,EAAG;IACN,OAAO,IAAI,CAACT,cAAc,CAACU,GAAG,CAAC,CAAC;EACpC;EAEAC,UAAUA,CAAA,EAAG;IACT,OAAO,CAAC,CAAC;EACb;EAEA,MAAMC,SAASA,CAACd,MAAmC,EAAE;IACjD,IAAI,CAACA,MAAM,GAAGA,MAAM,IAAI,CAAC,CAAC;IAE1B,MAAMe,QAAQ,GAAG,MAAM,IAAI,CAACZ,WAAW,CAACa,OAAO,CAAC;MAAE,GAAGhB;IAAO,CAAC,CAAC;IAE9D,IAAI,CAACe,QAAQ,EAAE;MACX;IACJ;IAEAtB,WAAW,CAAC,MAAM;MACd,MAAM,CAACK,KAAK,EAAEmB,IAAI,CAAC,GAAGF,QAAQ;MAC9B,IAAI,CAACjB,KAAK,GAAGA,KAAK,CAACoB,GAAG,CAACC,KAAK,IAAIxB,YAAY,CAACyB,MAAM,CAAC,IAAI,CAACZ,UAAU,CAACa,KAAK,CAACF,KAAK,CAAC,CAAC,CAAC;MAClF,IAAI,CAACjB,cAAc,CAACoB,GAAG,CAAC1B,IAAI,CAACwB,MAAM,CAACH,IAAI,CAAC,CAAC;IAC9C,CAAC,CAAC;EACN;EAEA,MAAMM,aAAaA,CAAA,EAAG;IAClB,MAAM;MAAEC;IAAO,CAAC,GAAG,IAAI,CAACtB,cAAc,CAACU,GAAG,CAAC,CAAC;IAE5C,IAAI,CAACY,MAAM,EAAE;MACT;IACJ;IAEA,MAAMT,QAAQ,GAAG,MAAM,IAAI,CAACZ,WAAW,CAACa,OAAO,CAAC;MAAE,GAAG,IAAI,CAAChB,MAAM;MAAEyB,KAAK,EAAED;IAAO,CAAC,CAAC;IAElF,IAAI,CAACT,QAAQ,EAAE;MACX;IACJ;IAEAtB,WAAW,CAAC,MAAM;MACd,MAAM,CAACK,KAAK,EAAEmB,IAAI,CAAC,GAAGF,QAAQ;MAC9B,MAAMW,QAAQ,GAAG5B,KAAK,CAACoB,GAAG,CAACC,KAAK,IAAIxB,YAAY,CAACyB,MAAM,CAAC,IAAI,CAACZ,UAAU,CAACa,KAAK,CAACF,KAAK,CAAC,CAAC,CAAC;MACtF,IAAI,CAACrB,KAAK,GAAGJ,MAAM,CAAC,CAAC,GAAG,IAAI,CAACI,KAAK,EAAE,GAAG4B,QAAQ,CAAC,EAAE,IAAI,CAAC;MACvD,IAAI,CAACxB,cAAc,CAACoB,GAAG,CAAC1B,IAAI,CAACwB,MAAM,CAACH,IAAI,CAAC,CAAC;IAC9C,CAAC,CAAC;EACN;EAEA,MAAMU,UAAUA,CAACC,EAAU,EAAE;IACzB,MAAMb,QAAQ,GAAG,MAAM,IAAI,CAACX,aAAa,CAACY,OAAO,CAACY,EAAE,CAAC;IAErD,IAAI,CAACb,QAAQ,EAAE;MACX;IACJ;IAEAtB,WAAW,CAAC,MAAM;MACd,IAAI,CAACK,KAAK,GAAG,IAAI,CAACA,KAAK,CAAC+B,MAAM,CAACC,IAAI,IAAIA,IAAI,CAACF,EAAE,KAAKA,EAAE,CAAC;MACtD,IAAI,CAAC1B,cAAc,CAAC6B,kBAAkB,CAAC,CAAC,CAAC;IAC7C,CAAC,CAAC;EACN;EAEA,MAAMC,WAAWA,CAACJ,EAAU,EAAE;IAC1B,MAAME,IAAI,GAAG,MAAM,IAAI,CAACzB,cAAc,CAACW,OAAO,CAACY,EAAE,CAAC;IAElD,IAAI,CAACE,IAAI,EAAE;MACP;IACJ;IAEArC,WAAW,CAAC,MAAM;MACd,IAAI,CAACK,KAAK,GAAG,IAAI,CAACA,KAAK,CAAC+B,MAAM,CAACC,IAAI,IAAIA,IAAI,CAACF,EAAE,KAAKA,EAAE,CAAC;MACtD,IAAI,CAAC7B,aAAa,GAAG,CACjB,GAAG,IAAI,CAACA,aAAa,EACrBJ,YAAY,CAACyB,MAAM,CAAC,IAAI,CAACZ,UAAU,CAACa,KAAK,CAACS,IAAI,CAAC,CAAC,CACnD;MACD,IAAI,CAAC5B,cAAc,CAAC6B,kBAAkB,CAAC,CAAC,CAAC;IAC7C,CAAC,CAAC;EACN;EAEA,MAAME,UAAUA,CAACC,MAAc,EAAElC,MAAiC,EAAE;IAChE,MAAM;MAAEmC,KAAK;MAAEC,MAAM;MAAEC;IAAK,CAAC,GAAGrC,MAAM;IACtC,MAAM,IAAI,CAACM,kBAAkB,CAACU,OAAO,CAAC;MAAEkB,MAAM;MAAEC,KAAK;MAAEC,MAAM;MAAEC;IAAK,CAAC,CAAC;EAC1E;AACJ","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IMetaRepository } from "@webiny/app-utils";
|
|
2
|
-
import type { ITrashBinItemMapper } from "
|
|
3
|
-
import type { ITrashBinBulkActionsGateway, ITrashBinDeleteItemGateway, ITrashBinListGateway, ITrashBinRestoreItemGateway } from "../../../Gateways";
|
|
4
|
-
import { TrashBinItemsRepository } from "./TrashBinItemsRepository";
|
|
2
|
+
import type { ITrashBinItemMapper } from "../../../Domain/index.js";
|
|
3
|
+
import type { ITrashBinBulkActionsGateway, ITrashBinDeleteItemGateway, ITrashBinListGateway, ITrashBinRestoreItemGateway } from "../../../Gateways/index.js";
|
|
4
|
+
import { TrashBinItemsRepository } from "./TrashBinItemsRepository.js";
|
|
5
5
|
export declare class TrashBinItemsRepositoryFactory<TEntry extends Record<string, any>> {
|
|
6
6
|
private cache;
|
|
7
7
|
getRepository(metaRepository: IMetaRepository, listGateway: ITrashBinListGateway<TEntry>, deleteGateway: ITrashBinDeleteItemGateway, restoreGateway: ITrashBinRestoreItemGateway<TEntry>, bulkActionsGateway: ITrashBinBulkActionsGateway, itemMapper: ITrashBinItemMapper<TEntry>): TrashBinItemsRepository<TEntry>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TrashBinItemsRepository } from "./TrashBinItemsRepository";
|
|
1
|
+
import { TrashBinItemsRepository } from "./TrashBinItemsRepository.js";
|
|
2
2
|
export class TrashBinItemsRepositoryFactory {
|
|
3
3
|
cache = new Map();
|
|
4
4
|
getRepository(metaRepository, listGateway, deleteGateway, restoreGateway, bulkActionsGateway, itemMapper) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["TrashBinItemsRepository","TrashBinItemsRepositoryFactory","cache","Map","getRepository","metaRepository","listGateway","deleteGateway","restoreGateway","bulkActionsGateway","itemMapper","cacheKey","getCacheKey","has","set","get","Date","now","toString","trashBinItemsRepositoryFactory"],"sources":["TrashBinItemsRepositoryFactory.ts"],"sourcesContent":["import type { IMetaRepository } from \"@webiny/app-utils\";\nimport type { ITrashBinItemMapper } from \"~/Domain\";\nimport type {\n ITrashBinBulkActionsGateway,\n ITrashBinDeleteItemGateway,\n ITrashBinListGateway,\n ITrashBinRestoreItemGateway\n} from \"~/Gateways\";\nimport { TrashBinItemsRepository } from \"./TrashBinItemsRepository\";\n\nexport class TrashBinItemsRepositoryFactory<TEntry extends Record<string, any>> {\n private cache: Map<string, TrashBinItemsRepository<TEntry>> = new Map();\n\n getRepository(\n metaRepository: IMetaRepository,\n listGateway: ITrashBinListGateway<TEntry>,\n deleteGateway: ITrashBinDeleteItemGateway,\n restoreGateway: ITrashBinRestoreItemGateway<TEntry>,\n bulkActionsGateway: ITrashBinBulkActionsGateway,\n itemMapper: ITrashBinItemMapper<TEntry>\n ) {\n const cacheKey = this.getCacheKey();\n\n if (!this.cache.has(cacheKey)) {\n this.cache.set(\n cacheKey,\n new TrashBinItemsRepository(\n metaRepository,\n listGateway,\n deleteGateway,\n restoreGateway,\n bulkActionsGateway,\n itemMapper\n )\n );\n }\n\n return this.cache.get(cacheKey) as TrashBinItemsRepository<TEntry>;\n }\n\n private getCacheKey() {\n return Date.now().toString();\n }\n}\n\nexport const trashBinItemsRepositoryFactory = new TrashBinItemsRepositoryFactory();\n"],"mappings":"AAQA,SAASA,uBAAuB;AAEhC,OAAO,MAAMC,8BAA8B,CAAqC;EACpEC,KAAK,GAAiD,IAAIC,GAAG,CAAC,CAAC;EAEvEC,aAAaA,CACTC,cAA+B,EAC/BC,WAAyC,EACzCC,aAAyC,EACzCC,cAAmD,EACnDC,kBAA+C,EAC/CC,UAAuC,EACzC;IACE,MAAMC,QAAQ,GAAG,IAAI,CAACC,WAAW,CAAC,CAAC;IAEnC,IAAI,CAAC,IAAI,CAACV,KAAK,CAACW,GAAG,CAACF,QAAQ,CAAC,EAAE;MAC3B,IAAI,CAACT,KAAK,CAACY,GAAG,CACVH,QAAQ,EACR,IAAIX,uBAAuB,CACvBK,cAAc,EACdC,WAAW,EACXC,aAAa,EACbC,cAAc,EACdC,kBAAkB,EAClBC,UACJ,CACJ,CAAC;IACL;IAEA,OAAO,IAAI,CAACR,KAAK,CAACa,GAAG,CAACJ,QAAQ,CAAC;EACnC;EAEQC,WAAWA,CAAA,EAAG;IAClB,OAAOI,IAAI,CAACC,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EAChC;AACJ;AAEA,OAAO,MAAMC,8BAA8B,GAAG,IAAIlB,8BAA8B,CAAC,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["TrashBinItemsRepository","TrashBinItemsRepositoryFactory","cache","Map","getRepository","metaRepository","listGateway","deleteGateway","restoreGateway","bulkActionsGateway","itemMapper","cacheKey","getCacheKey","has","set","get","Date","now","toString","trashBinItemsRepositoryFactory"],"sources":["TrashBinItemsRepositoryFactory.ts"],"sourcesContent":["import type { IMetaRepository } from \"@webiny/app-utils\";\nimport type { ITrashBinItemMapper } from \"~/Domain/index.js\";\nimport type {\n ITrashBinBulkActionsGateway,\n ITrashBinDeleteItemGateway,\n ITrashBinListGateway,\n ITrashBinRestoreItemGateway\n} from \"~/Gateways/index.js\";\nimport { TrashBinItemsRepository } from \"./TrashBinItemsRepository.js\";\n\nexport class TrashBinItemsRepositoryFactory<TEntry extends Record<string, any>> {\n private cache: Map<string, TrashBinItemsRepository<TEntry>> = new Map();\n\n getRepository(\n metaRepository: IMetaRepository,\n listGateway: ITrashBinListGateway<TEntry>,\n deleteGateway: ITrashBinDeleteItemGateway,\n restoreGateway: ITrashBinRestoreItemGateway<TEntry>,\n bulkActionsGateway: ITrashBinBulkActionsGateway,\n itemMapper: ITrashBinItemMapper<TEntry>\n ) {\n const cacheKey = this.getCacheKey();\n\n if (!this.cache.has(cacheKey)) {\n this.cache.set(\n cacheKey,\n new TrashBinItemsRepository(\n metaRepository,\n listGateway,\n deleteGateway,\n restoreGateway,\n bulkActionsGateway,\n itemMapper\n )\n );\n }\n\n return this.cache.get(cacheKey) as TrashBinItemsRepository<TEntry>;\n }\n\n private getCacheKey() {\n return Date.now().toString();\n }\n}\n\nexport const trashBinItemsRepositoryFactory = new TrashBinItemsRepositoryFactory();\n"],"mappings":"AAQA,SAASA,uBAAuB;AAEhC,OAAO,MAAMC,8BAA8B,CAAqC;EACpEC,KAAK,GAAiD,IAAIC,GAAG,CAAC,CAAC;EAEvEC,aAAaA,CACTC,cAA+B,EAC/BC,WAAyC,EACzCC,aAAyC,EACzCC,cAAmD,EACnDC,kBAA+C,EAC/CC,UAAuC,EACzC;IACE,MAAMC,QAAQ,GAAG,IAAI,CAACC,WAAW,CAAC,CAAC;IAEnC,IAAI,CAAC,IAAI,CAACV,KAAK,CAACW,GAAG,CAACF,QAAQ,CAAC,EAAE;MAC3B,IAAI,CAACT,KAAK,CAACY,GAAG,CACVH,QAAQ,EACR,IAAIX,uBAAuB,CACvBK,cAAc,EACdC,WAAW,EACXC,aAAa,EACbC,cAAc,EACdC,kBAAkB,EAClBC,UACJ,CACJ,CAAC;IACL;IAEA,OAAO,IAAI,CAACR,KAAK,CAACa,GAAG,CAACJ,QAAQ,CAAC;EACnC;EAEQC,WAAWA,CAAA,EAAG;IAClB,OAAOI,IAAI,CAACC,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EAChC;AACJ;AAEA,OAAO,MAAMC,8BAA8B,GAAG,IAAIlB,8BAA8B,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { ILoadingRepository } from "@webiny/app-utils";
|
|
2
|
-
import type { ITrashBinItemsRepository } from "./ITrashBinItemsRepository";
|
|
3
|
-
import type { TrashBinBulkActionsParams, TrashBinListQueryVariables } from "../../../types";
|
|
2
|
+
import type { ITrashBinItemsRepository } from "./ITrashBinItemsRepository.js";
|
|
3
|
+
import type { TrashBinBulkActionsParams, TrashBinListQueryVariables } from "../../../types.js";
|
|
4
4
|
export declare class TrashBinItemsRepositoryWithLoading implements ITrashBinItemsRepository {
|
|
5
5
|
private loadingRepository;
|
|
6
6
|
private trashBinItemsRepository;
|
|
7
7
|
constructor(loadingRepository: ILoadingRepository, trashBinItemsRepository: ITrashBinItemsRepository);
|
|
8
|
-
getItems(): import("
|
|
9
|
-
getRestoredItems(): import("
|
|
8
|
+
getItems(): import("../../index.js").TrashBinItem[];
|
|
9
|
+
getRestoredItems(): import("../../index.js").TrashBinItem[];
|
|
10
10
|
getMeta(): import("@webiny/app-utils").Meta;
|
|
11
11
|
getLoading(): Record<string, boolean>;
|
|
12
12
|
listItems(params?: TrashBinListQueryVariables): Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { makeAutoObservable } from "mobx";
|
|
2
|
-
import { LoadingActions } from "../../../types";
|
|
2
|
+
import { LoadingActions } from "../../../types.js";
|
|
3
3
|
export class TrashBinItemsRepositoryWithLoading {
|
|
4
4
|
constructor(loadingRepository, trashBinItemsRepository) {
|
|
5
5
|
this.loadingRepository = loadingRepository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["makeAutoObservable","LoadingActions","TrashBinItemsRepositoryWithLoading","constructor","loadingRepository","trashBinItemsRepository","getItems","getRestoredItems","getMeta","getLoading","get","listItems","params","runCallBack","list","listMoreItems","listMore","deleteItem","id","delete","restoreItem","restore","bulkAction","action"],"sources":["TrashBinItemsRepositoryWithLoading.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { ILoadingRepository } from \"@webiny/app-utils\";\nimport type { ITrashBinItemsRepository } from \"./ITrashBinItemsRepository\";\nimport type { TrashBinBulkActionsParams, TrashBinListQueryVariables } from \"~/types\";\nimport { LoadingActions } from \"~/types\";\n\nexport class TrashBinItemsRepositoryWithLoading implements ITrashBinItemsRepository {\n private loadingRepository: ILoadingRepository;\n private trashBinItemsRepository: ITrashBinItemsRepository;\n\n constructor(\n loadingRepository: ILoadingRepository,\n trashBinItemsRepository: ITrashBinItemsRepository\n ) {\n this.loadingRepository = loadingRepository;\n this.trashBinItemsRepository = trashBinItemsRepository;\n makeAutoObservable(this);\n }\n\n getItems() {\n return this.trashBinItemsRepository.getItems();\n }\n\n getRestoredItems() {\n return this.trashBinItemsRepository.getRestoredItems();\n }\n\n getMeta() {\n return this.trashBinItemsRepository.getMeta();\n }\n\n getLoading() {\n return this.loadingRepository.get();\n }\n\n async listItems(params?: TrashBinListQueryVariables) {\n await this.loadingRepository.runCallBack(\n this.trashBinItemsRepository.listItems(params),\n LoadingActions.list\n );\n }\n\n async listMoreItems() {\n await this.loadingRepository.runCallBack(\n this.trashBinItemsRepository.listMoreItems(),\n LoadingActions.listMore\n );\n }\n\n async deleteItem(id: string) {\n await this.loadingRepository.runCallBack(\n this.trashBinItemsRepository.deleteItem(id),\n LoadingActions.delete\n );\n }\n\n async restoreItem(id: string) {\n await this.loadingRepository.runCallBack(\n this.trashBinItemsRepository.restoreItem(id),\n LoadingActions.restore\n );\n }\n\n async bulkAction(action: string, params: TrashBinBulkActionsParams) {\n await this.trashBinItemsRepository.bulkAction(action, params);\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAIzC,SAASC,cAAc;AAEvB,OAAO,MAAMC,kCAAkC,CAAqC;EAIhFC,WAAWA,CACPC,iBAAqC,EACrCC,uBAAiD,EACnD;IACE,IAAI,CAACD,iBAAiB,GAAGA,iBAAiB;IAC1C,IAAI,CAACC,uBAAuB,GAAGA,uBAAuB;IACtDL,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEAM,QAAQA,CAAA,EAAG;IACP,OAAO,IAAI,CAACD,uBAAuB,CAACC,QAAQ,CAAC,CAAC;EAClD;EAEAC,gBAAgBA,CAAA,EAAG;IACf,OAAO,IAAI,CAACF,uBAAuB,CAACE,gBAAgB,CAAC,CAAC;EAC1D;EAEAC,OAAOA,CAAA,EAAG;IACN,OAAO,IAAI,CAACH,uBAAuB,CAACG,OAAO,CAAC,CAAC;EACjD;EAEAC,UAAUA,CAAA,EAAG;IACT,OAAO,IAAI,CAACL,iBAAiB,CAACM,GAAG,CAAC,CAAC;EACvC;EAEA,MAAMC,SAASA,CAACC,MAAmC,EAAE;IACjD,MAAM,IAAI,CAACR,iBAAiB,CAACS,WAAW,CACpC,IAAI,CAACR,uBAAuB,CAACM,SAAS,CAACC,MAAM,CAAC,EAC9CX,cAAc,CAACa,IACnB,CAAC;EACL;EAEA,MAAMC,aAAaA,CAAA,EAAG;IAClB,MAAM,IAAI,CAACX,iBAAiB,CAACS,WAAW,CACpC,IAAI,CAACR,uBAAuB,CAACU,aAAa,CAAC,CAAC,EAC5Cd,cAAc,CAACe,QACnB,CAAC;EACL;EAEA,MAAMC,UAAUA,CAACC,EAAU,EAAE;IACzB,MAAM,IAAI,CAACd,iBAAiB,CAACS,WAAW,CACpC,IAAI,CAACR,uBAAuB,CAACY,UAAU,CAACC,EAAE,CAAC,EAC3CjB,cAAc,CAACkB,MACnB,CAAC;EACL;EAEA,MAAMC,WAAWA,CAACF,EAAU,EAAE;IAC1B,MAAM,IAAI,CAACd,iBAAiB,CAACS,WAAW,CACpC,IAAI,CAACR,uBAAuB,CAACe,WAAW,CAACF,EAAE,CAAC,EAC5CjB,cAAc,CAACoB,OACnB,CAAC;EACL;EAEA,MAAMC,UAAUA,CAACC,MAAc,EAAEX,MAAiC,EAAE;IAChE,MAAM,IAAI,CAACP,uBAAuB,CAACiB,UAAU,CAACC,MAAM,EAAEX,MAAM,CAAC;EACjE;AACJ","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["makeAutoObservable","LoadingActions","TrashBinItemsRepositoryWithLoading","constructor","loadingRepository","trashBinItemsRepository","getItems","getRestoredItems","getMeta","getLoading","get","listItems","params","runCallBack","list","listMoreItems","listMore","deleteItem","id","delete","restoreItem","restore","bulkAction","action"],"sources":["TrashBinItemsRepositoryWithLoading.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { ILoadingRepository } from \"@webiny/app-utils\";\nimport type { ITrashBinItemsRepository } from \"./ITrashBinItemsRepository.js\";\nimport type { TrashBinBulkActionsParams, TrashBinListQueryVariables } from \"~/types.js\";\nimport { LoadingActions } from \"~/types.js\";\n\nexport class TrashBinItemsRepositoryWithLoading implements ITrashBinItemsRepository {\n private loadingRepository: ILoadingRepository;\n private trashBinItemsRepository: ITrashBinItemsRepository;\n\n constructor(\n loadingRepository: ILoadingRepository,\n trashBinItemsRepository: ITrashBinItemsRepository\n ) {\n this.loadingRepository = loadingRepository;\n this.trashBinItemsRepository = trashBinItemsRepository;\n makeAutoObservable(this);\n }\n\n getItems() {\n return this.trashBinItemsRepository.getItems();\n }\n\n getRestoredItems() {\n return this.trashBinItemsRepository.getRestoredItems();\n }\n\n getMeta() {\n return this.trashBinItemsRepository.getMeta();\n }\n\n getLoading() {\n return this.loadingRepository.get();\n }\n\n async listItems(params?: TrashBinListQueryVariables) {\n await this.loadingRepository.runCallBack(\n this.trashBinItemsRepository.listItems(params),\n LoadingActions.list\n );\n }\n\n async listMoreItems() {\n await this.loadingRepository.runCallBack(\n this.trashBinItemsRepository.listMoreItems(),\n LoadingActions.listMore\n );\n }\n\n async deleteItem(id: string) {\n await this.loadingRepository.runCallBack(\n this.trashBinItemsRepository.deleteItem(id),\n LoadingActions.delete\n );\n }\n\n async restoreItem(id: string) {\n await this.loadingRepository.runCallBack(\n this.trashBinItemsRepository.restoreItem(id),\n LoadingActions.restore\n );\n }\n\n async bulkAction(action: string, params: TrashBinBulkActionsParams) {\n await this.trashBinItemsRepository.bulkAction(action, params);\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAIzC,SAASC,cAAc;AAEvB,OAAO,MAAMC,kCAAkC,CAAqC;EAIhFC,WAAWA,CACPC,iBAAqC,EACrCC,uBAAiD,EACnD;IACE,IAAI,CAACD,iBAAiB,GAAGA,iBAAiB;IAC1C,IAAI,CAACC,uBAAuB,GAAGA,uBAAuB;IACtDL,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEAM,QAAQA,CAAA,EAAG;IACP,OAAO,IAAI,CAACD,uBAAuB,CAACC,QAAQ,CAAC,CAAC;EAClD;EAEAC,gBAAgBA,CAAA,EAAG;IACf,OAAO,IAAI,CAACF,uBAAuB,CAACE,gBAAgB,CAAC,CAAC;EAC1D;EAEAC,OAAOA,CAAA,EAAG;IACN,OAAO,IAAI,CAACH,uBAAuB,CAACG,OAAO,CAAC,CAAC;EACjD;EAEAC,UAAUA,CAAA,EAAG;IACT,OAAO,IAAI,CAACL,iBAAiB,CAACM,GAAG,CAAC,CAAC;EACvC;EAEA,MAAMC,SAASA,CAACC,MAAmC,EAAE;IACjD,MAAM,IAAI,CAACR,iBAAiB,CAACS,WAAW,CACpC,IAAI,CAACR,uBAAuB,CAACM,SAAS,CAACC,MAAM,CAAC,EAC9CX,cAAc,CAACa,IACnB,CAAC;EACL;EAEA,MAAMC,aAAaA,CAAA,EAAG;IAClB,MAAM,IAAI,CAACX,iBAAiB,CAACS,WAAW,CACpC,IAAI,CAACR,uBAAuB,CAACU,aAAa,CAAC,CAAC,EAC5Cd,cAAc,CAACe,QACnB,CAAC;EACL;EAEA,MAAMC,UAAUA,CAACC,EAAU,EAAE;IACzB,MAAM,IAAI,CAACd,iBAAiB,CAACS,WAAW,CACpC,IAAI,CAACR,uBAAuB,CAACY,UAAU,CAACC,EAAE,CAAC,EAC3CjB,cAAc,CAACkB,MACnB,CAAC;EACL;EAEA,MAAMC,WAAWA,CAACF,EAAU,EAAE;IAC1B,MAAM,IAAI,CAACd,iBAAiB,CAACS,WAAW,CACpC,IAAI,CAACR,uBAAuB,CAACe,WAAW,CAACF,EAAE,CAAC,EAC5CjB,cAAc,CAACoB,OACnB,CAAC;EACL;EAEA,MAAMC,UAAUA,CAACC,MAAc,EAAEX,MAAiC,EAAE;IAChE,MAAM,IAAI,CAACP,uBAAuB,CAACiB,UAAU,CAACC,MAAM,EAAEX,MAAM,CAAC;EACjE;AACJ","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from "./ITrashBinItemsRepository";
|
|
2
|
-
export * from "./TrashBinItemMapper";
|
|
3
|
-
export * from "./TrashBinItemsRepository";
|
|
4
|
-
export * from "./TrashBinItemsRepositoryFactory";
|
|
5
|
-
export * from "./TrashBinItemsRepositoryWithLoading";
|
|
1
|
+
export type * from "./ITrashBinItemsRepository.js";
|
|
2
|
+
export * from "./TrashBinItemMapper.js";
|
|
3
|
+
export * from "./TrashBinItemsRepository.js";
|
|
4
|
+
export * from "./TrashBinItemsRepositoryFactory.js";
|
|
5
|
+
export * from "./TrashBinItemsRepositoryWithLoading.js";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./
|
|
5
|
-
export * from "./TrashBinItemsRepositoryWithLoading";
|
|
1
|
+
export * from "./TrashBinItemMapper.js";
|
|
2
|
+
export * from "./TrashBinItemsRepository.js";
|
|
3
|
+
export * from "./TrashBinItemsRepositoryFactory.js";
|
|
4
|
+
export * from "./TrashBinItemsRepositoryWithLoading.js";
|
|
6
5
|
|
|
7
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./ITrashBinItemsRepository\";\nexport * from \"./TrashBinItemMapper\";\nexport * from \"./TrashBinItemsRepository\";\nexport * from \"./TrashBinItemsRepositoryFactory\";\nexport * from \"./TrashBinItemsRepositoryWithLoading\";\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export type * from \"./ITrashBinItemsRepository.js\";\nexport * from \"./TrashBinItemMapper.js\";\nexport * from \"./TrashBinItemsRepository.js\";\nexport * from \"./TrashBinItemsRepositoryFactory.js\";\nexport * from \"./TrashBinItemsRepositoryWithLoading.js\";\n"],"mappings":"AACA;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from "./Search";
|
|
2
|
-
export * from "./SelectedItems";
|
|
3
|
-
export * from "./Search";
|
|
4
|
-
export * from "./Sorting";
|
|
5
|
-
export * from "./TrashBinItems";
|
|
1
|
+
export * from "./Search/index.js";
|
|
2
|
+
export * from "./SelectedItems/index.js";
|
|
3
|
+
export * from "./Search/index.js";
|
|
4
|
+
export * from "./Sorting/index.js";
|
|
5
|
+
export * from "./TrashBinItems/index.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from "./Search";
|
|
2
|
-
export * from "./SelectedItems";
|
|
3
|
-
export * from "./Search";
|
|
4
|
-
export * from "./Sorting";
|
|
5
|
-
export * from "./TrashBinItems";
|
|
1
|
+
export * from "./Search/index.js";
|
|
2
|
+
export * from "./SelectedItems/index.js";
|
|
3
|
+
export * from "./Search/index.js";
|
|
4
|
+
export * from "./Sorting/index.js";
|
|
5
|
+
export * from "./TrashBinItems/index.js";
|
|
6
6
|
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Search\";\nexport * from \"./SelectedItems\";\nexport * from \"./Search\";\nexport * from \"./Sorting\";\nexport * from \"./TrashBinItems\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Search/index.js\";\nexport * from \"./SelectedItems/index.js\";\nexport * from \"./Search/index.js\";\nexport * from \"./Sorting/index.js\";\nexport * from \"./TrashBinItems/index.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
package/Domain/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./Models";
|
|
2
|
-
export * from "./Repositories";
|
|
1
|
+
export * from "./Models/index.js";
|
|
2
|
+
export * from "./Repositories/index.js";
|
package/Domain/index.js
CHANGED
package/Domain/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Models\";\nexport * from \"./Repositories\";\n"],"mappings":"AAAA;AACA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Models/index.js\";\nexport * from \"./Repositories/index.js\";\n"],"mappings":"AAAA;AACA","ignoreList":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TrashBinBulkActionsGatewayParams, TrashBinBulkActionsResponse } from "../../types";
|
|
1
|
+
import type { TrashBinBulkActionsGatewayParams, TrashBinBulkActionsResponse } from "../../types.js";
|
|
2
2
|
export interface ITrashBinBulkActionsGateway {
|
|
3
3
|
execute: (params: TrashBinBulkActionsGatewayParams) => Promise<TrashBinBulkActionsResponse>;
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["ITrashBinBulkActionsGateway.ts"],"sourcesContent":["import type { TrashBinBulkActionsGatewayParams, TrashBinBulkActionsResponse } from \"~/types\";\n\nexport interface ITrashBinBulkActionsGateway {\n execute: (params: TrashBinBulkActionsGatewayParams) => Promise<TrashBinBulkActionsResponse>;\n}\n"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["ITrashBinBulkActionsGateway.ts"],"sourcesContent":["import type { TrashBinBulkActionsGatewayParams, TrashBinBulkActionsResponse } from \"~/types.js\";\n\nexport interface ITrashBinBulkActionsGateway {\n execute: (params: TrashBinBulkActionsGatewayParams) => Promise<TrashBinBulkActionsResponse>;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type { ITrashBinBulkActionsGateway } from "./ITrashBinBulkActionsGateway.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export type { ITrashBinBulkActionsGateway } from \"./ITrashBinBulkActionsGateway.js\";\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type { ITrashBinDeleteItemGateway } from "./ITrashBinDeleteItemGateway.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export type { ITrashBinDeleteItemGateway } from \"./ITrashBinDeleteItemGateway.js\";\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TrashBinListQueryVariables, TrashBinMetaResponse } from "../../types";
|
|
1
|
+
import type { TrashBinListQueryVariables, TrashBinMetaResponse } from "../../types.js";
|
|
2
2
|
export interface ITrashBinListGateway<TItem> {
|
|
3
3
|
execute: (params: TrashBinListQueryVariables) => Promise<[TItem[], TrashBinMetaResponse]>;
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["ITrashBinListGateway.ts"],"sourcesContent":["import type { TrashBinListQueryVariables, TrashBinMetaResponse } from \"~/types\";\n\nexport interface ITrashBinListGateway<TItem> {\n execute: (params: TrashBinListQueryVariables) => Promise<[TItem[], TrashBinMetaResponse]>;\n}\n"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["ITrashBinListGateway.ts"],"sourcesContent":["import type { TrashBinListQueryVariables, TrashBinMetaResponse } from \"~/types.js\";\n\nexport interface ITrashBinListGateway<TItem> {\n execute: (params: TrashBinListQueryVariables) => Promise<[TItem[], TrashBinMetaResponse]>;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type { ITrashBinListGateway } from "./ITrashBinListGateway.js";
|