@webiny/app-headless-cms-scheduler 6.0.0-alpha.4 → 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/SchedulerItem/SchedulerItem.d.ts +2 -2
- package/Domain/Models/SchedulerItem/SchedulerItem.js.map +1 -1
- package/Domain/Models/SchedulerItem/index.d.ts +1 -1
- package/Domain/Models/SchedulerItem/index.js +1 -1
- package/Domain/Models/SchedulerItem/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/SchedulerItems/ISchedulerItemsRepository.d.ts +1 -1
- package/Domain/Repositories/SchedulerItems/ISchedulerItemsRepository.js.map +1 -1
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepository.d.ts +4 -4
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepository.js +1 -1
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepository.js.map +1 -1
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryFactory.d.ts +3 -3
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryFactory.js +1 -1
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryFactory.js.map +1 -1
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryWithLoading.d.ts +2 -2
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryWithLoading.js +1 -1
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryWithLoading.js.map +1 -1
- package/Domain/Repositories/SchedulerItems/index.d.ts +4 -4
- package/Domain/Repositories/SchedulerItems/index.js +3 -4
- package/Domain/Repositories/SchedulerItems/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/index.d.ts +4 -4
- package/Domain/Repositories/index.js +4 -4
- 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/SchedulerListGateway.d.ts +4 -5
- package/Gateways/SchedulerListGateway.js.map +1 -1
- package/Gateways/index.d.ts +5 -5
- package/Gateways/index.js +1 -5
- package/Gateways/index.js.map +1 -1
- package/Presentation/Scheduler/Scheduler.d.ts +1 -1
- package/Presentation/Scheduler/Scheduler.js +5 -5
- package/Presentation/Scheduler/Scheduler.js.map +1 -1
- package/Presentation/Scheduler/SchedulerControllers.d.ts +2 -2
- package/Presentation/Scheduler/SchedulerControllers.js +2 -2
- package/Presentation/Scheduler/SchedulerControllers.js.map +1 -1
- package/Presentation/Scheduler/SchedulerPresenter.d.ts +1 -1
- package/Presentation/Scheduler/SchedulerPresenter.js +1 -1
- package/Presentation/Scheduler/SchedulerPresenter.js.map +1 -1
- package/Presentation/Scheduler/controllers/CancelItem/CancelItemController.d.ts +2 -2
- package/Presentation/Scheduler/controllers/CancelItem/CancelItemController.js.map +1 -1
- package/Presentation/Scheduler/controllers/CancelItem/index.d.ts +1 -1
- package/Presentation/Scheduler/controllers/CancelItem/index.js +0 -1
- package/Presentation/Scheduler/controllers/CancelItem/index.js.map +1 -1
- package/Presentation/Scheduler/controllers/GetItem/GetItemController.d.ts +2 -2
- package/Presentation/Scheduler/controllers/GetItem/GetItemController.js.map +1 -1
- package/Presentation/Scheduler/controllers/GetItem/index.d.ts +2 -2
- package/Presentation/Scheduler/controllers/GetItem/index.js +1 -2
- package/Presentation/Scheduler/controllers/GetItem/index.js.map +1 -1
- package/Presentation/Scheduler/controllers/ListItems/ListItemsController.d.ts +2 -2
- package/Presentation/Scheduler/controllers/ListItems/ListItemsController.js.map +1 -1
- package/Presentation/Scheduler/controllers/ListItems/index.d.ts +2 -2
- package/Presentation/Scheduler/controllers/ListItems/index.js +1 -2
- package/Presentation/Scheduler/controllers/ListItems/index.js.map +1 -1
- package/Presentation/Scheduler/controllers/ListMoreItems/ListMoreItemsController.d.ts +2 -2
- package/Presentation/Scheduler/controllers/ListMoreItems/ListMoreItemsController.js.map +1 -1
- package/Presentation/Scheduler/controllers/ListMoreItems/index.d.ts +2 -2
- package/Presentation/Scheduler/controllers/ListMoreItems/index.js +1 -2
- package/Presentation/Scheduler/controllers/ListMoreItems/index.js.map +1 -1
- package/Presentation/Scheduler/controllers/PublishItem/PublishItemController.d.ts +2 -2
- package/Presentation/Scheduler/controllers/PublishItem/PublishItemController.js.map +1 -1
- package/Presentation/Scheduler/controllers/PublishItem/index.d.ts +1 -1
- package/Presentation/Scheduler/controllers/PublishItem/index.js +0 -1
- package/Presentation/Scheduler/controllers/PublishItem/index.js.map +1 -1
- package/Presentation/Scheduler/controllers/SearchItems/SearchItemsController.d.ts +2 -2
- package/Presentation/Scheduler/controllers/SearchItems/SearchItemsController.js.map +1 -1
- package/Presentation/Scheduler/controllers/SearchItems/index.d.ts +2 -2
- package/Presentation/Scheduler/controllers/SearchItems/index.js +1 -2
- package/Presentation/Scheduler/controllers/SearchItems/index.js.map +1 -1
- package/Presentation/Scheduler/controllers/SelectAllItems/SelectAllItemsController.d.ts +2 -2
- package/Presentation/Scheduler/controllers/SelectAllItems/SelectAllItemsController.js.map +1 -1
- package/Presentation/Scheduler/controllers/SelectAllItems/index.d.ts +2 -2
- package/Presentation/Scheduler/controllers/SelectAllItems/index.js +1 -2
- package/Presentation/Scheduler/controllers/SelectAllItems/index.js.map +1 -1
- package/Presentation/Scheduler/controllers/SelectItems/SelectItemsController.d.ts +2 -2
- package/Presentation/Scheduler/controllers/SelectItems/SelectItemsController.js +1 -1
- package/Presentation/Scheduler/controllers/SelectItems/SelectItemsController.js.map +1 -1
- package/Presentation/Scheduler/controllers/SelectItems/index.d.ts +2 -2
- package/Presentation/Scheduler/controllers/SelectItems/index.js +1 -2
- package/Presentation/Scheduler/controllers/SelectItems/index.js.map +1 -1
- package/Presentation/Scheduler/controllers/SortItems/ISortItemsController.d.ts +1 -1
- package/Presentation/Scheduler/controllers/SortItems/ISortItemsController.js.map +1 -1
- package/Presentation/Scheduler/controllers/SortItems/SortItemsController.d.ts +3 -3
- package/Presentation/Scheduler/controllers/SortItems/SortItemsController.js.map +1 -1
- package/Presentation/Scheduler/controllers/SortItems/index.d.ts +2 -2
- package/Presentation/Scheduler/controllers/SortItems/index.js +1 -2
- package/Presentation/Scheduler/controllers/SortItems/index.js.map +1 -1
- package/Presentation/Scheduler/controllers/UnpublishItem/UnpublishItemController.d.ts +2 -2
- package/Presentation/Scheduler/controllers/UnpublishItem/UnpublishItemController.js.map +1 -1
- package/Presentation/Scheduler/controllers/UnpublishItem/index.d.ts +1 -1
- package/Presentation/Scheduler/controllers/UnpublishItem/index.js +0 -1
- package/Presentation/Scheduler/controllers/UnpublishItem/index.js.map +1 -1
- package/Presentation/Scheduler/controllers/UnselectAllItems/UnselectAllItemsController.d.ts +2 -2
- package/Presentation/Scheduler/controllers/UnselectAllItems/UnselectAllItemsController.js.map +1 -1
- package/Presentation/Scheduler/controllers/UnselectAllItems/index.d.ts +2 -2
- package/Presentation/Scheduler/controllers/UnselectAllItems/index.js +1 -2
- package/Presentation/Scheduler/controllers/UnselectAllItems/index.js.map +1 -1
- package/Presentation/Scheduler/controllers/index.d.ts +11 -11
- package/Presentation/Scheduler/controllers/index.js +11 -11
- package/Presentation/Scheduler/controllers/index.js.map +1 -1
- package/Presentation/SchedulerConfigs/SchedulerConfigs.js +7 -7
- package/Presentation/SchedulerConfigs/SchedulerConfigs.js.map +1 -1
- package/Presentation/SchedulerConfigs/index.d.ts +1 -1
- package/Presentation/SchedulerConfigs/index.js +1 -1
- package/Presentation/SchedulerConfigs/index.js.map +1 -1
- package/Presentation/SchedulerRenderer/SchedulerRenderer.d.ts +1 -1
- package/Presentation/SchedulerRenderer/SchedulerRenderer.js +6 -6
- package/Presentation/SchedulerRenderer/SchedulerRenderer.js.map +1 -1
- package/Presentation/SchedulerRenderer/index.d.ts +1 -1
- package/Presentation/SchedulerRenderer/index.js +1 -1
- package/Presentation/SchedulerRenderer/index.js.map +1 -1
- package/Presentation/abstractions/ISchedulerControllers.d.ts +1 -1
- package/Presentation/abstractions/ISchedulerControllers.js.map +1 -1
- package/Presentation/abstractions/ISchedulerPresenter.d.ts +1 -1
- package/Presentation/abstractions/ISchedulerPresenter.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/CancelItem/CancelItem.js +2 -2
- package/Presentation/components/Actions/CancelItem/CancelItem.js.map +1 -1
- package/Presentation/components/Actions/CancelItem/index.d.ts +1 -1
- package/Presentation/components/Actions/CancelItem/index.js +1 -1
- package/Presentation/components/Actions/CancelItem/index.js.map +1 -1
- package/Presentation/components/Actions/index.d.ts +1 -1
- package/Presentation/components/Actions/index.js +1 -1
- package/Presentation/components/Actions/index.js.map +1 -1
- package/Presentation/components/BottomInfoBar/BottomInfoBar.js +5 -5
- package/Presentation/components/BottomInfoBar/BottomInfoBar.js.map +1 -1
- package/Presentation/components/BottomInfoBar/BottomInfoBar.styled.d.ts +10 -11
- package/Presentation/components/BottomInfoBar/BottomInfoBar.styled.js +5 -10
- package/Presentation/components/BottomInfoBar/BottomInfoBar.styled.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/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/CellRevision/CellRevision.js +3 -3
- package/Presentation/components/Cells/CellRevision/CellRevision.js.map +1 -1
- package/Presentation/components/Cells/CellRevision/CellRevision.styled.d.ts +5 -6
- package/Presentation/components/Cells/CellRevision/CellRevision.styled.js +4 -7
- package/Presentation/components/Cells/CellRevision/CellRevision.styled.js.map +1 -1
- package/Presentation/components/Cells/CellScheduledBy/CellScheduledBy.js +1 -1
- package/Presentation/components/Cells/CellScheduledBy/CellScheduledBy.js.map +1 -1
- package/Presentation/components/Cells/CellScheduledBy/index.d.ts +1 -1
- package/Presentation/components/Cells/CellScheduledBy/index.js +1 -1
- package/Presentation/components/Cells/CellScheduledBy/index.js.map +1 -1
- package/Presentation/components/Cells/CellScheduledOn/CellScheduledOn.d.ts +22 -0
- package/Presentation/components/Cells/CellScheduledOn/CellScheduledOn.js +12 -8
- package/Presentation/components/Cells/CellScheduledOn/CellScheduledOn.js.map +1 -1
- package/Presentation/components/Cells/CellTitle/CellTitle.js +2 -2
- package/Presentation/components/Cells/CellTitle/CellTitle.js.map +1 -1
- package/Presentation/components/Cells/CellTitle/CellTitle.styled.d.ts +5 -6
- package/Presentation/components/Cells/CellTitle/CellTitle.styled.js +4 -7
- package/Presentation/components/Cells/CellTitle/CellTitle.styled.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/CellType/CellType.js +5 -4
- package/Presentation/components/Cells/CellType/CellType.js.map +1 -1
- package/Presentation/components/Cells/CellType/CellType.styled.d.ts +5 -6
- package/Presentation/components/Cells/CellType/CellType.styled.js +4 -7
- package/Presentation/components/Cells/CellType/CellType.styled.js.map +1 -1
- package/Presentation/components/Cells/index.d.ts +6 -6
- package/Presentation/components/Cells/index.js +6 -6
- package/Presentation/components/Cells/index.js.map +1 -1
- package/Presentation/components/Empty/Empty.js +3 -3
- package/Presentation/components/Empty/Empty.js.map +1 -1
- package/Presentation/components/Empty/Empty.styled.d.ts +4 -5
- package/Presentation/components/Empty/Empty.styled.js +2 -4
- package/Presentation/components/Empty/Empty.styled.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/ScheduleDialog/types.d.ts +1 -1
- package/Presentation/components/ScheduleDialog/types.js.map +1 -1
- package/Presentation/components/ScheduleDialog/useScheduleDialog.d.ts +27 -3
- package/Presentation/components/ScheduleDialog/useScheduleDialog.js +38 -19
- package/Presentation/components/ScheduleDialog/useScheduleDialog.js.map +1 -1
- package/Presentation/components/SchedulerOverlay/SchedulerOverlay.js +8 -8
- package/Presentation/components/SchedulerOverlay/SchedulerOverlay.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 +2 -2
- package/Presentation/components/Title/Title.js.map +1 -1
- package/Presentation/components/Title/Title.styled.d.ts +2 -2
- package/Presentation/components/Title/Title.styled.js +2 -3
- package/Presentation/components/Title/Title.styled.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/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/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 +9 -10
- package/Presentation/configs/list/Browser/index.js +2 -2
- package/Presentation/configs/list/Browser/index.js.map +1 -1
- package/Presentation/configs/list/SchedulerListConfig.d.ts +9 -9
- package/Presentation/configs/list/SchedulerListConfig.js +5 -3
- package/Presentation/configs/list/SchedulerListConfig.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/useCancelSchedulerItem.d.ts +1 -1
- package/Presentation/hooks/useCancelSchedulerItem.js +1 -1
- package/Presentation/hooks/useCancelSchedulerItem.js.map +1 -1
- package/Presentation/hooks/useScheduler.d.ts +6 -7
- package/Presentation/hooks/useScheduler.js.map +1 -1
- package/Presentation/hooks/useSchedulerItem.d.ts +3 -4
- package/Presentation/hooks/useSchedulerItem.js.map +1 -1
- package/Presentation/index.d.ts +5 -1
- package/Presentation/index.js +9 -5
- package/Presentation/index.js.map +1 -1
- package/README.md +6 -17
- package/UseCases/CancelItem/CancelItemUseCase.d.ts +2 -2
- package/UseCases/CancelItem/CancelItemUseCase.js.map +1 -1
- package/UseCases/CancelItem/index.d.ts +1 -1
- package/UseCases/CancelItem/index.js +0 -1
- package/UseCases/CancelItem/index.js.map +1 -1
- package/UseCases/GetItem/GetItemUseCase.d.ts +2 -2
- package/UseCases/GetItem/GetItemUseCase.js.map +1 -1
- package/UseCases/GetItem/index.d.ts +2 -2
- package/UseCases/GetItem/index.js +1 -2
- package/UseCases/GetItem/index.js.map +1 -1
- package/UseCases/GetScheduledItem/GetScheduledItemUseCase.d.ts +2 -2
- package/UseCases/GetScheduledItem/GetScheduledItemUseCase.js.map +1 -1
- package/UseCases/GetScheduledItem/IGetScheduledItemUseCase.d.ts +1 -1
- package/UseCases/GetScheduledItem/IGetScheduledItemUseCase.js.map +1 -1
- package/UseCases/GetScheduledItem/index.d.ts +1 -1
- package/UseCases/GetScheduledItem/index.js +0 -1
- package/UseCases/GetScheduledItem/index.js.map +1 -1
- package/UseCases/ListItems/ListItemsUseCase.d.ts +2 -2
- package/UseCases/ListItems/ListItemsUseCase.js.map +1 -1
- package/UseCases/ListItems/ListItemsUseCaseWithSearch.d.ts +2 -2
- package/UseCases/ListItems/ListItemsUseCaseWithSearch.js.map +1 -1
- package/UseCases/ListItems/ListItemsUseCaseWithSorting.d.ts +1 -1
- package/UseCases/ListItems/ListItemsUseCaseWithSorting.js.map +1 -1
- package/UseCases/ListItems/index.d.ts +2 -2
- package/UseCases/ListItems/index.js +1 -2
- 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/PublishItem/PublishItemUseCase.d.ts +2 -2
- package/UseCases/PublishItem/PublishItemUseCase.js.map +1 -1
- package/UseCases/PublishItem/index.d.ts +1 -1
- package/UseCases/PublishItem/index.js +0 -1
- package/UseCases/PublishItem/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/UnpublishItem/UnpublishItemUseCase.d.ts +2 -2
- package/UseCases/UnpublishItem/UnpublishItemUseCase.js.map +1 -1
- package/UseCases/UnpublishItem/index.d.ts +1 -1
- package/UseCases/UnpublishItem/index.js +0 -1
- package/UseCases/UnpublishItem/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 +1 -1
- package/index.js +0 -1
- package/index.js.map +1 -1
- package/package.json +21 -24
- package/types.d.ts +1 -1
- package/types.js.map +1 -1
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
import type {
|
|
3
|
-
import type { TableConfig } from "./Table";
|
|
1
|
+
import type { EntryActionConfig } from "./EntryAction.js";
|
|
2
|
+
import type { TableConfig } from "./Table/index.js";
|
|
4
3
|
export interface BrowserConfig {
|
|
5
4
|
entryActions: EntryActionConfig[];
|
|
6
5
|
table: TableConfig;
|
|
7
6
|
}
|
|
8
7
|
export declare const Browser: {
|
|
9
|
-
EntryAction: ((props: import("@webiny/app-aco/config/record/Action").ActionProps) => import("react").JSX.Element) & {
|
|
10
|
-
OptionsMenuItem: (props: import("@webiny/app-admin").OptionsMenuItemProps) =>
|
|
8
|
+
EntryAction: ((props: import("@webiny/app-aco/config/record/Action.js").ActionProps) => import("react").JSX.Element) & {
|
|
9
|
+
OptionsMenuItem: (props: import("@webiny/app-admin/index.js").OptionsMenuItemProps) => React.JSX.Element;
|
|
11
10
|
};
|
|
12
11
|
Table: {
|
|
13
|
-
Column: ((props: import("@webiny/app-aco/config/table/Column").ColumnProps) => import("react").JSX.Element) & {
|
|
12
|
+
Column: ((props: import("@webiny/app-aco/config/table/Column.js").ColumnProps) => import("react").JSX.Element) & {
|
|
14
13
|
useTableRow: {
|
|
15
|
-
(): import("@webiny/app-aco").TableRowContextData<import("../../../../types").SchedulerEntryTableRow>;
|
|
16
|
-
<TUserRow>(): import("@webiny/app-aco").TableRowContextData<import("../../../../types").SchedulerEntryTableRow & {
|
|
14
|
+
(): import("@webiny/app-aco/index.js").TableRowContextData<import("../../../../types.js").SchedulerEntryTableRow>;
|
|
15
|
+
<TUserRow>(): import("@webiny/app-aco/index.js").TableRowContextData<import("../../../../types.js").SchedulerEntryTableRow & {
|
|
17
16
|
data: TUserRow;
|
|
18
17
|
}>;
|
|
19
18
|
};
|
|
20
|
-
isFolderRow: (row: import("@webiny/app-aco").TableRow
|
|
19
|
+
isFolderRow: (row: import("@webiny/app-aco/table.types.js").TableRow) => row is import("@webiny/app-aco/table.types.js").FolderTableRow;
|
|
21
20
|
};
|
|
22
|
-
Sorting: (props: import("@webiny/app-aco/config/table/Sorting").SortingProps) => import("react").JSX.Element;
|
|
21
|
+
Sorting: (props: import("@webiny/app-aco/config/table/Sorting.js").SortingProps) => import("react").JSX.Element;
|
|
23
22
|
};
|
|
24
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["EntryAction","Table","Browser"],"sources":["index.ts"],"sourcesContent":["import type { EntryActionConfig } from \"./EntryAction\";\nimport { EntryAction } from \"./EntryAction\";\nimport type { TableConfig } from \"./Table\";\nimport { Table } from \"./Table\";\n\nexport interface BrowserConfig {\n entryActions: EntryActionConfig[];\n table: TableConfig;\n}\n\nexport const Browser = {\n EntryAction,\n Table\n};\n"],"mappings":"AACA,SAASA,WAAW;AAEpB,SAASC,KAAK;AAOd,OAAO,MAAMC,OAAO,GAAG;EACnBF,WAAW;EACXC;AACJ,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["EntryAction","Table","Browser"],"sources":["index.ts"],"sourcesContent":["import type { EntryActionConfig } from \"./EntryAction.js\";\nimport { EntryAction } from \"./EntryAction.js\";\nimport type { TableConfig } from \"./Table/index.js\";\nimport { Table } from \"./Table/index.js\";\n\nexport interface BrowserConfig {\n entryActions: EntryActionConfig[];\n table: TableConfig;\n}\n\nexport const Browser = {\n EntryAction,\n Table\n};\n"],"mappings":"AACA,SAASA,WAAW;AAEpB,SAASC,KAAK;AAOd,OAAO,MAAMC,OAAO,GAAG;EACnBF,WAAW;EACXC;AACJ,CAAC","ignoreList":[]}
|
|
@@ -6,28 +6,28 @@ export declare const SchedulerListConfig: {
|
|
|
6
6
|
displayName: string;
|
|
7
7
|
} & {
|
|
8
8
|
Browser: {
|
|
9
|
-
EntryAction: ((props: import("@webiny/app-aco/config/record/Action").ActionProps) => React.JSX.Element) & {
|
|
10
|
-
OptionsMenuItem: (props: import("@webiny/app-admin").OptionsMenuItemProps) => React.JSX.Element;
|
|
9
|
+
EntryAction: ((props: import("@webiny/app-aco/config/record/Action.js").ActionProps) => React.JSX.Element) & {
|
|
10
|
+
OptionsMenuItem: (props: import("@webiny/app-admin/index.js").OptionsMenuItemProps) => React.JSX.Element;
|
|
11
11
|
};
|
|
12
12
|
Table: {
|
|
13
|
-
Column: ((props: import("@webiny/app-aco/config/table/Column").ColumnProps) => React.JSX.Element) & {
|
|
13
|
+
Column: ((props: import("@webiny/app-aco/config/table/Column.js").ColumnProps) => React.JSX.Element) & {
|
|
14
14
|
useTableRow: {
|
|
15
|
-
(): import("@webiny/app-aco").TableRowContextData<import("../../../types").SchedulerEntryTableRow>;
|
|
16
|
-
<TUserRow>(): import("@webiny/app-aco").TableRowContextData<import("../../../types").SchedulerEntryTableRow & {
|
|
15
|
+
(): import("@webiny/app-aco").TableRowContextData<import("../../../types.js").SchedulerEntryTableRow>;
|
|
16
|
+
<TUserRow>(): import("@webiny/app-aco").TableRowContextData<import("../../../types.js").SchedulerEntryTableRow & {
|
|
17
17
|
data: TUserRow;
|
|
18
18
|
}>;
|
|
19
19
|
};
|
|
20
|
-
isFolderRow: (row: import("@webiny/app-aco").TableRow
|
|
20
|
+
isFolderRow: (row: import("@webiny/app-aco").TableRow) => row is import("@webiny/app-aco").FolderTableRow;
|
|
21
21
|
};
|
|
22
|
-
Sorting: (props: import("@webiny/app-aco/config/table/Sorting").SortingProps) => React.JSX.Element;
|
|
22
|
+
Sorting: (props: import("@webiny/app-aco/config/table/Sorting.js").SortingProps) => React.JSX.Element;
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
export declare const SchedulerListWithConfig: ({ onProperties, children }: import("@webiny/react-properties").WithConfigProps) => React.JSX.Element;
|
|
27
27
|
export declare function useSchedulerListConfig(): {
|
|
28
28
|
browser: {
|
|
29
|
-
|
|
29
|
+
table: import("@webiny/app-aco/config/table/index.js").TableConfig;
|
|
30
30
|
entryActions: import("@webiny/app-aco").RecordActionConfig[];
|
|
31
|
-
|
|
31
|
+
bulkActions: never[];
|
|
32
32
|
};
|
|
33
33
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React, { useMemo } from "react";
|
|
2
2
|
import { createConfigurableComponent } from "@webiny/react-properties";
|
|
3
|
-
import { Browser } from "./Browser";
|
|
3
|
+
import { Browser } from "./Browser/index.js";
|
|
4
4
|
import { CompositionScope } from "@webiny/react-composition";
|
|
5
|
+
import { useAcoConfig } from "@webiny/app-aco";
|
|
5
6
|
const base = createConfigurableComponent("SchedulerListConfig");
|
|
6
7
|
const ScopedSchedulerListConfig = ({
|
|
7
8
|
children
|
|
@@ -17,10 +18,11 @@ export const SchedulerListConfig = Object.assign(ScopedSchedulerListConfig, {
|
|
|
17
18
|
export const SchedulerListWithConfig = base.WithConfig;
|
|
18
19
|
export function useSchedulerListConfig() {
|
|
19
20
|
const config = base.useConfig();
|
|
20
|
-
const
|
|
21
|
+
const acoConfig = useAcoConfig(config);
|
|
21
22
|
return useMemo(() => ({
|
|
22
23
|
browser: {
|
|
23
|
-
|
|
24
|
+
table: acoConfig.table,
|
|
25
|
+
entryActions: acoConfig.record.actions,
|
|
24
26
|
bulkActions: []
|
|
25
27
|
}
|
|
26
28
|
}), [config]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useMemo","createConfigurableComponent","Browser","CompositionScope","base","ScopedSchedulerListConfig","children","createElement","name","Config","displayName","SchedulerListConfig","Object","assign","SchedulerListWithConfig","WithConfig","useSchedulerListConfig","config","useConfig","browser","bulkActions"],"sources":["SchedulerListConfig.tsx"],"sourcesContent":["import React, { useMemo } from \"react\";\nimport { createConfigurableComponent } from \"@webiny/react-properties\";\nimport type { BrowserConfig } from \"./Browser\";\nimport { Browser } from \"./Browser\";\nimport { CompositionScope } from \"@webiny/react-composition\";\n\nconst base = createConfigurableComponent<SchedulerListConfig>(\"SchedulerListConfig\");\n\nconst ScopedSchedulerListConfig = ({ children }: { children: React.ReactNode }) => {\n return (\n <CompositionScope name={\"scheduler\"}>\n <base.Config>{children}</base.Config>\n </CompositionScope>\n );\n};\n\nScopedSchedulerListConfig.displayName = \"SchedulerListConfig\";\n\nexport const SchedulerListConfig = Object.assign(ScopedSchedulerListConfig, { Browser });\nexport const SchedulerListWithConfig = base.WithConfig;\n\ninterface SchedulerListConfig {\n browser: BrowserConfig;\n}\n\nexport function useSchedulerListConfig() {\n const config = base.useConfig();\n
|
|
1
|
+
{"version":3,"names":["React","useMemo","createConfigurableComponent","Browser","CompositionScope","useAcoConfig","base","ScopedSchedulerListConfig","children","createElement","name","Config","displayName","SchedulerListConfig","Object","assign","SchedulerListWithConfig","WithConfig","useSchedulerListConfig","config","useConfig","acoConfig","browser","table","entryActions","record","actions","bulkActions"],"sources":["SchedulerListConfig.tsx"],"sourcesContent":["import React, { useMemo } from \"react\";\nimport { createConfigurableComponent } from \"@webiny/react-properties\";\nimport type { BrowserConfig } from \"./Browser/index.js\";\nimport { Browser } from \"./Browser/index.js\";\nimport { CompositionScope } from \"@webiny/react-composition\";\nimport { useAcoConfig } from \"@webiny/app-aco\";\n\nconst base = createConfigurableComponent<SchedulerListConfig>(\"SchedulerListConfig\");\n\nconst ScopedSchedulerListConfig = ({ children }: { children: React.ReactNode }) => {\n return (\n <CompositionScope name={\"scheduler\"}>\n <base.Config>{children}</base.Config>\n </CompositionScope>\n );\n};\n\nScopedSchedulerListConfig.displayName = \"SchedulerListConfig\";\n\nexport const SchedulerListConfig = Object.assign(ScopedSchedulerListConfig, { Browser });\nexport const SchedulerListWithConfig = base.WithConfig;\n\ninterface SchedulerListConfig {\n browser: BrowserConfig;\n}\n\nexport function useSchedulerListConfig() {\n const config = base.useConfig();\n const acoConfig = useAcoConfig(config);\n\n return useMemo(\n () => ({\n browser: {\n table: acoConfig.table,\n entryActions: acoConfig.record.actions,\n bulkActions: []\n }\n }),\n [config]\n );\n}\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SAASC,2BAA2B,QAAQ,0BAA0B;AAEtE,SAASC,OAAO;AAChB,SAASC,gBAAgB,QAAQ,2BAA2B;AAC5D,SAASC,YAAY,QAAQ,iBAAiB;AAE9C,MAAMC,IAAI,GAAGJ,2BAA2B,CAAsB,qBAAqB,CAAC;AAEpF,MAAMK,yBAAyB,GAAGA,CAAC;EAAEC;AAAwC,CAAC,KAAK;EAC/E,oBACIR,KAAA,CAAAS,aAAA,CAACL,gBAAgB;IAACM,IAAI,EAAE;EAAY,gBAChCV,KAAA,CAAAS,aAAA,CAACH,IAAI,CAACK,MAAM,QAAEH,QAAsB,CACtB,CAAC;AAE3B,CAAC;AAEDD,yBAAyB,CAACK,WAAW,GAAG,qBAAqB;AAE7D,OAAO,MAAMC,mBAAmB,GAAGC,MAAM,CAACC,MAAM,CAACR,yBAAyB,EAAE;EAAEJ;AAAQ,CAAC,CAAC;AACxF,OAAO,MAAMa,uBAAuB,GAAGV,IAAI,CAACW,UAAU;AAMtD,OAAO,SAASC,sBAAsBA,CAAA,EAAG;EACrC,MAAMC,MAAM,GAAGb,IAAI,CAACc,SAAS,CAAC,CAAC;EAC/B,MAAMC,SAAS,GAAGhB,YAAY,CAACc,MAAM,CAAC;EAEtC,OAAOlB,OAAO,CACV,OAAO;IACHqB,OAAO,EAAE;MACLC,KAAK,EAAEF,SAAS,CAACE,KAAK;MACtBC,YAAY,EAAEH,SAAS,CAACI,MAAM,CAACC,OAAO;MACtCC,WAAW,EAAE;IACjB;EACJ,CAAC,CAAC,EACF,CAACR,MAAM,CACX,CAAC;AACL","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./SchedulerListConfig";
|
|
1
|
+
export * from "./SchedulerListConfig.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./SchedulerListConfig\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./SchedulerListConfig.js\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useCallback } from "react";
|
|
2
2
|
import { useConfirmationDialog, useSnackbar } from "@webiny/app-admin";
|
|
3
|
-
import { useScheduler } from "./useScheduler";
|
|
3
|
+
import { useScheduler } from "./useScheduler.js";
|
|
4
4
|
export const useCancelSchedulerItem = ({
|
|
5
5
|
item
|
|
6
6
|
}) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useCallback","useConfirmationDialog","useSnackbar","useScheduler","useCancelSchedulerItem","item","cancelItem","showSnackbar","showConfirmation","title","message","createElement","type","openDialogCancelSchedulerItem","id","ex"],"sources":["useCancelSchedulerItem.tsx"],"sourcesContent":["import React, { useCallback } from \"react\";\nimport { useConfirmationDialog, useSnackbar } from \"@webiny/app-admin\";\nimport { useScheduler } from \"./useScheduler\";\nimport type { SchedulerEntry } from \"~/types\";\n\ninterface UseCancelScheduleItemParams {\n item: Pick<SchedulerEntry, \"id\" | \"title\" | \"type\">;\n}\n\nexport const useCancelSchedulerItem = ({ item }: UseCancelScheduleItemParams) => {\n const { cancelItem } = useScheduler();\n const { showSnackbar } = useSnackbar();\n\n const { showConfirmation } = useConfirmationDialog({\n title: \"Cancel scheduled action?\",\n message: (\n <p>\n You are about to cancel scheduled action for this item!\n <br />\n Are you sure you want to cancel scheduled <strong>{item.type}</strong> for{\" \"}\n <strong>{item.title}</strong>?\n </p>\n )\n });\n\n const openDialogCancelSchedulerItem = useCallback(\n () =>\n showConfirmation(async () => {\n try {\n await cancelItem(item.id);\n showSnackbar(`Action on item \"${item.title}\" was canceled successfully!`);\n } catch (ex) {\n showSnackbar(ex.message || `Error while canceling action for \"${item.title}\".`);\n }\n }),\n [item]\n );\n\n return { openDialogCancelSchedulerItem };\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,QAAQ,OAAO;AAC1C,SAASC,qBAAqB,EAAEC,WAAW,QAAQ,mBAAmB;AACtE,SAASC,YAAY;AAOrB,OAAO,MAAMC,sBAAsB,GAAGA,CAAC;EAAEC;AAAkC,CAAC,KAAK;EAC7E,MAAM;IAAEC;EAAW,CAAC,GAAGH,YAAY,CAAC,CAAC;EACrC,MAAM;IAAEI;EAAa,CAAC,GAAGL,WAAW,CAAC,CAAC;EAEtC,MAAM;IAAEM;EAAiB,CAAC,GAAGP,qBAAqB,CAAC;IAC/CQ,KAAK,EAAE,0BAA0B;IACjCC,OAAO,eACHX,KAAA,CAAAY,aAAA,YAAG,yDAEC,eAAAZ,KAAA,CAAAY,aAAA,WAAK,CAAC,8CACoC,eAAAZ,KAAA,CAAAY,aAAA,iBAASN,IAAI,CAACO,IAAa,CAAC,QAAI,EAAC,GAAG,eAC9Eb,KAAA,CAAAY,aAAA,iBAASN,IAAI,CAACI,KAAc,CAAC,KAC9B;EAEX,CAAC,CAAC;EAEF,MAAMI,6BAA6B,GAAGb,WAAW,CAC7C,MACIQ,gBAAgB,CAAC,YAAY;IACzB,IAAI;MACA,MAAMF,UAAU,CAACD,IAAI,CAACS,EAAE,CAAC;MACzBP,YAAY,CAAC,mBAAmBF,IAAI,CAACI,KAAK,8BAA8B,CAAC;IAC7E,CAAC,CAAC,OAAOM,EAAE,EAAE;MACTR,YAAY,CAACQ,EAAE,CAACL,OAAO,IAAI,qCAAqCL,IAAI,CAACI,KAAK,IAAI,CAAC;IACnF;EACJ,CAAC,CAAC,EACN,CAACJ,IAAI,CACT,CAAC;EAED,OAAO;IAAEQ;EAA8B,CAAC;AAC5C,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["React","useCallback","useConfirmationDialog","useSnackbar","useScheduler","useCancelSchedulerItem","item","cancelItem","showSnackbar","showConfirmation","title","message","createElement","type","openDialogCancelSchedulerItem","id","ex"],"sources":["useCancelSchedulerItem.tsx"],"sourcesContent":["import React, { useCallback } from \"react\";\nimport { useConfirmationDialog, useSnackbar } from \"@webiny/app-admin\";\nimport { useScheduler } from \"./useScheduler.js\";\nimport type { SchedulerEntry } from \"~/types.js\";\n\ninterface UseCancelScheduleItemParams {\n item: Pick<SchedulerEntry, \"id\" | \"title\" | \"type\">;\n}\n\nexport const useCancelSchedulerItem = ({ item }: UseCancelScheduleItemParams) => {\n const { cancelItem } = useScheduler();\n const { showSnackbar } = useSnackbar();\n\n const { showConfirmation } = useConfirmationDialog({\n title: \"Cancel scheduled action?\",\n message: (\n <p>\n You are about to cancel scheduled action for this item!\n <br />\n Are you sure you want to cancel scheduled <strong>{item.type}</strong> for{\" \"}\n <strong>{item.title}</strong>?\n </p>\n )\n });\n\n const openDialogCancelSchedulerItem = useCallback(\n () =>\n showConfirmation(async () => {\n try {\n await cancelItem(item.id);\n showSnackbar(`Action on item \"${item.title}\" was canceled successfully!`);\n } catch (ex) {\n showSnackbar(ex.message || `Error while canceling action for \"${item.title}\".`);\n }\n }),\n [item]\n );\n\n return { openDialogCancelSchedulerItem };\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,QAAQ,OAAO;AAC1C,SAASC,qBAAqB,EAAEC,WAAW,QAAQ,mBAAmB;AACtE,SAASC,YAAY;AAOrB,OAAO,MAAMC,sBAAsB,GAAGA,CAAC;EAAEC;AAAkC,CAAC,KAAK;EAC7E,MAAM;IAAEC;EAAW,CAAC,GAAGH,YAAY,CAAC,CAAC;EACrC,MAAM;IAAEI;EAAa,CAAC,GAAGL,WAAW,CAAC,CAAC;EAEtC,MAAM;IAAEM;EAAiB,CAAC,GAAGP,qBAAqB,CAAC;IAC/CQ,KAAK,EAAE,0BAA0B;IACjCC,OAAO,eACHX,KAAA,CAAAY,aAAA,YAAG,yDAEC,eAAAZ,KAAA,CAAAY,aAAA,WAAK,CAAC,8CACoC,eAAAZ,KAAA,CAAAY,aAAA,iBAASN,IAAI,CAACO,IAAa,CAAC,QAAI,EAAC,GAAG,eAC9Eb,KAAA,CAAAY,aAAA,iBAASN,IAAI,CAACI,KAAc,CAAC,KAC9B;EAEX,CAAC,CAAC;EAEF,MAAMI,6BAA6B,GAAGb,WAAW,CAC7C,MACIQ,gBAAgB,CAAC,YAAY;IACzB,IAAI;MACA,MAAMF,UAAU,CAACD,IAAI,CAACS,EAAE,CAAC;MACzBP,YAAY,CAAC,mBAAmBF,IAAI,CAACI,KAAK,8BAA8B,CAAC;IAC7E,CAAC,CAAC,OAAOM,EAAE,EAAE;MACTR,YAAY,CAACQ,EAAE,CAACL,OAAO,IAAI,qCAAqCL,IAAI,CAACI,KAAK,IAAI,CAAC;IACnF;EACJ,CAAC,CAAC,EACN,CAACJ,IAAI,CACT,CAAC;EAED,OAAO;IAAEQ;EAA8B,CAAC;AAC5C,CAAC","ignoreList":[]}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import type {
|
|
3
|
-
import type { SchedulerEntry } from "../../types";
|
|
1
|
+
import type { ISchedulerControllers, ISchedulerPresenter } from "../../Presentation/abstractions/index.js";
|
|
2
|
+
import type { SchedulerEntry } from "../../types.js";
|
|
4
3
|
export interface SchedulerContext {
|
|
5
4
|
controllers: ISchedulerControllers;
|
|
6
5
|
presenter: ISchedulerPresenter;
|
|
7
6
|
}
|
|
8
7
|
export declare const useScheduler: () => {
|
|
9
|
-
vm: import("
|
|
8
|
+
vm: import("~/Presentation/abstractions/index.js").SchedulerPresenterViewModel;
|
|
10
9
|
cancelItem: (id: string) => Promise<void>;
|
|
11
10
|
publishItem: (id: string, scheduleOn: Date) => Promise<void>;
|
|
12
11
|
unpublishItem: (id: string, scheduleOn: Date) => Promise<void>;
|
|
@@ -16,12 +15,12 @@ export declare const useScheduler: () => {
|
|
|
16
15
|
selectItems: (items: SchedulerEntry[]) => Promise<void>;
|
|
17
16
|
selectAllItems: () => Promise<void>;
|
|
18
17
|
unselectAllItems: () => Promise<void>;
|
|
19
|
-
sortItems: import("@webiny/admin-ui/DataTable
|
|
18
|
+
sortItems: import("@webiny/admin-ui/DataTable").OnDataTableSortingChange;
|
|
20
19
|
searchItems: (value: string) => Promise<void>;
|
|
21
20
|
};
|
|
22
21
|
export declare const SchedulerProvider: {
|
|
23
22
|
({ children, ...props }: SchedulerContext & {
|
|
24
|
-
children:
|
|
25
|
-
}):
|
|
23
|
+
children: React.ReactNode;
|
|
24
|
+
}): React.JSX.Element;
|
|
26
25
|
displayName: string;
|
|
27
26
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useCallback","useEffect","useMemo","useState","autorun","createGenericContext","Provider","useHook","useScheduler","context","vm","setVm","presenter","newState","cancelItem","id","controllers","scheduleCancelItem","execute","publishItem","scheduleOn","schedulePublishItem","unpublishItem","scheduleUnpublishItem","listItems","getItem","listMoreItems","selectItems","items","selectAllItems","unselectAllItems","sortItems","searchItems","value","SchedulerProvider"],"sources":["useScheduler.tsx"],"sourcesContent":["import { useCallback, useEffect, useMemo, useState } from \"react\";\nimport { autorun } from \"mobx\";\nimport { createGenericContext } from \"@webiny/app-admin\";\nimport type {
|
|
1
|
+
{"version":3,"names":["useCallback","useEffect","useMemo","useState","autorun","createGenericContext","Provider","useHook","useScheduler","context","vm","setVm","presenter","newState","cancelItem","id","controllers","scheduleCancelItem","execute","publishItem","scheduleOn","schedulePublishItem","unpublishItem","scheduleUnpublishItem","listItems","getItem","listMoreItems","selectItems","items","selectAllItems","unselectAllItems","sortItems","searchItems","value","SchedulerProvider"],"sources":["useScheduler.tsx"],"sourcesContent":["import { useCallback, useEffect, useMemo, useState } from \"react\";\nimport { autorun } from \"mobx\";\nimport { createGenericContext } from \"@webiny/app-admin\";\nimport type {\n ISchedulerControllers,\n ISchedulerPresenter\n} from \"~/Presentation/abstractions/index.js\";\nimport type { SchedulerEntry } from \"~/types.js\";\n\nexport interface SchedulerContext {\n controllers: ISchedulerControllers;\n presenter: ISchedulerPresenter;\n}\n\nconst { Provider, useHook } = createGenericContext<SchedulerContext>(\"SchedulerContext\");\n\nexport const useScheduler = () => {\n const context = useHook();\n const [vm, setVm] = useState(context.presenter.vm);\n\n useEffect(() => {\n return autorun(() => {\n const newState = context.presenter.vm;\n setVm(newState);\n });\n }, [context.presenter]);\n\n const cancelItem = useCallback(\n (id: string) => context.controllers.scheduleCancelItem.execute(id),\n [context.controllers.scheduleCancelItem]\n );\n\n const publishItem = useCallback(\n (id: string, scheduleOn: Date) =>\n context.controllers.schedulePublishItem.execute(id, scheduleOn),\n [context.controllers.schedulePublishItem]\n );\n\n const unpublishItem = useCallback(\n (id: string, scheduleOn: Date) =>\n context.controllers.scheduleUnpublishItem.execute(id, scheduleOn),\n [context.controllers.scheduleUnpublishItem]\n );\n\n const listItems = useCallback(\n () => context.controllers.listItems.execute(),\n [context.controllers.listItems]\n );\n const getItem = useCallback(\n (id: string) => {\n return context.controllers.getItem.execute({\n id\n });\n },\n [context.controllers.getItem]\n );\n\n const listMoreItems = useCallback(\n () => context.controllers.listMoreItems.execute(),\n [context.controllers.listMoreItems]\n );\n\n const selectItems = useCallback(\n (items: SchedulerEntry[]) => context.controllers.selectItems.execute(items),\n [context.controllers.selectItems]\n );\n\n const selectAllItems = useCallback(\n () => context.controllers.selectAllItems.execute(),\n [context.controllers.selectAllItems]\n );\n\n const unselectAllItems = useCallback(\n () => context.controllers.unselectAllItems.execute(),\n [context.controllers.unselectAllItems]\n );\n\n const sortItems = useMemo(\n () => context.controllers.sortItems.execute,\n [context.controllers.sortItems]\n );\n\n const searchItems = useCallback(\n (value: string) => {\n return context.controllers.searchItems.execute(value);\n },\n [context.controllers.searchItems]\n );\n\n return {\n vm,\n cancelItem,\n publishItem,\n unpublishItem,\n getItem,\n listItems,\n listMoreItems,\n selectItems,\n selectAllItems,\n unselectAllItems,\n sortItems,\n searchItems\n };\n};\n\nexport const SchedulerProvider = Provider;\n"],"mappings":"AAAA,SAASA,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AACjE,SAASC,OAAO,QAAQ,MAAM;AAC9B,SAASC,oBAAoB,QAAQ,mBAAmB;AAYxD,MAAM;EAAEC,QAAQ;EAAEC;AAAQ,CAAC,GAAGF,oBAAoB,CAAmB,kBAAkB,CAAC;AAExF,OAAO,MAAMG,YAAY,GAAGA,CAAA,KAAM;EAC9B,MAAMC,OAAO,GAAGF,OAAO,CAAC,CAAC;EACzB,MAAM,CAACG,EAAE,EAAEC,KAAK,CAAC,GAAGR,QAAQ,CAACM,OAAO,CAACG,SAAS,CAACF,EAAE,CAAC;EAElDT,SAAS,CAAC,MAAM;IACZ,OAAOG,OAAO,CAAC,MAAM;MACjB,MAAMS,QAAQ,GAAGJ,OAAO,CAACG,SAAS,CAACF,EAAE;MACrCC,KAAK,CAACE,QAAQ,CAAC;IACnB,CAAC,CAAC;EACN,CAAC,EAAE,CAACJ,OAAO,CAACG,SAAS,CAAC,CAAC;EAEvB,MAAME,UAAU,GAAGd,WAAW,CACzBe,EAAU,IAAKN,OAAO,CAACO,WAAW,CAACC,kBAAkB,CAACC,OAAO,CAACH,EAAE,CAAC,EAClE,CAACN,OAAO,CAACO,WAAW,CAACC,kBAAkB,CAC3C,CAAC;EAED,MAAME,WAAW,GAAGnB,WAAW,CAC3B,CAACe,EAAU,EAAEK,UAAgB,KACzBX,OAAO,CAACO,WAAW,CAACK,mBAAmB,CAACH,OAAO,CAACH,EAAE,EAAEK,UAAU,CAAC,EACnE,CAACX,OAAO,CAACO,WAAW,CAACK,mBAAmB,CAC5C,CAAC;EAED,MAAMC,aAAa,GAAGtB,WAAW,CAC7B,CAACe,EAAU,EAAEK,UAAgB,KACzBX,OAAO,CAACO,WAAW,CAACO,qBAAqB,CAACL,OAAO,CAACH,EAAE,EAAEK,UAAU,CAAC,EACrE,CAACX,OAAO,CAACO,WAAW,CAACO,qBAAqB,CAC9C,CAAC;EAED,MAAMC,SAAS,GAAGxB,WAAW,CACzB,MAAMS,OAAO,CAACO,WAAW,CAACQ,SAAS,CAACN,OAAO,CAAC,CAAC,EAC7C,CAACT,OAAO,CAACO,WAAW,CAACQ,SAAS,CAClC,CAAC;EACD,MAAMC,OAAO,GAAGzB,WAAW,CACtBe,EAAU,IAAK;IACZ,OAAON,OAAO,CAACO,WAAW,CAACS,OAAO,CAACP,OAAO,CAAC;MACvCH;IACJ,CAAC,CAAC;EACN,CAAC,EACD,CAACN,OAAO,CAACO,WAAW,CAACS,OAAO,CAChC,CAAC;EAED,MAAMC,aAAa,GAAG1B,WAAW,CAC7B,MAAMS,OAAO,CAACO,WAAW,CAACU,aAAa,CAACR,OAAO,CAAC,CAAC,EACjD,CAACT,OAAO,CAACO,WAAW,CAACU,aAAa,CACtC,CAAC;EAED,MAAMC,WAAW,GAAG3B,WAAW,CAC1B4B,KAAuB,IAAKnB,OAAO,CAACO,WAAW,CAACW,WAAW,CAACT,OAAO,CAACU,KAAK,CAAC,EAC3E,CAACnB,OAAO,CAACO,WAAW,CAACW,WAAW,CACpC,CAAC;EAED,MAAME,cAAc,GAAG7B,WAAW,CAC9B,MAAMS,OAAO,CAACO,WAAW,CAACa,cAAc,CAACX,OAAO,CAAC,CAAC,EAClD,CAACT,OAAO,CAACO,WAAW,CAACa,cAAc,CACvC,CAAC;EAED,MAAMC,gBAAgB,GAAG9B,WAAW,CAChC,MAAMS,OAAO,CAACO,WAAW,CAACc,gBAAgB,CAACZ,OAAO,CAAC,CAAC,EACpD,CAACT,OAAO,CAACO,WAAW,CAACc,gBAAgB,CACzC,CAAC;EAED,MAAMC,SAAS,GAAG7B,OAAO,CACrB,MAAMO,OAAO,CAACO,WAAW,CAACe,SAAS,CAACb,OAAO,EAC3C,CAACT,OAAO,CAACO,WAAW,CAACe,SAAS,CAClC,CAAC;EAED,MAAMC,WAAW,GAAGhC,WAAW,CAC1BiC,KAAa,IAAK;IACf,OAAOxB,OAAO,CAACO,WAAW,CAACgB,WAAW,CAACd,OAAO,CAACe,KAAK,CAAC;EACzD,CAAC,EACD,CAACxB,OAAO,CAACO,WAAW,CAACgB,WAAW,CACpC,CAAC;EAED,OAAO;IACHtB,EAAE;IACFI,UAAU;IACVK,WAAW;IACXG,aAAa;IACbG,OAAO;IACPD,SAAS;IACTE,aAAa;IACbC,WAAW;IACXE,cAAc;IACdC,gBAAgB;IAChBC,SAAS;IACTC;EACJ,CAAC;AACL,CAAC;AAED,OAAO,MAAME,iBAAiB,GAAG5B,QAAQ","ignoreList":[]}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import type { SchedulerEntry } from "../../types";
|
|
1
|
+
import type { SchedulerEntry } from "../../types.js";
|
|
3
2
|
export interface SchedulerItemContext {
|
|
4
3
|
item: SchedulerEntry;
|
|
5
4
|
}
|
|
6
5
|
export declare const useSchedulerItem: () => SchedulerItemContext;
|
|
7
6
|
export declare const SchedulerItemProvider: {
|
|
8
7
|
({ children, ...props }: SchedulerItemContext & {
|
|
9
|
-
children:
|
|
10
|
-
}):
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}): React.JSX.Element;
|
|
11
10
|
displayName: string;
|
|
12
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createGenericContext","Provider","useHook","useSchedulerItem","SchedulerItemProvider"],"sources":["useSchedulerItem.tsx"],"sourcesContent":["import { createGenericContext } from \"@webiny/app-admin\";\nimport type { SchedulerEntry } from \"~/types\";\n\nexport interface SchedulerItemContext {\n item: SchedulerEntry;\n}\n\nconst { Provider, useHook } = createGenericContext<SchedulerItemContext>(\"SchedulerItemContext\");\n\nexport const useSchedulerItem = useHook;\nexport const SchedulerItemProvider = Provider;\n"],"mappings":"AAAA,SAASA,oBAAoB,QAAQ,mBAAmB;AAOxD,MAAM;EAAEC,QAAQ;EAAEC;AAAQ,CAAC,GAAGF,oBAAoB,CAAuB,sBAAsB,CAAC;AAEhG,OAAO,MAAMG,gBAAgB,GAAGD,OAAO;AACvC,OAAO,MAAME,qBAAqB,GAAGH,QAAQ","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["createGenericContext","Provider","useHook","useSchedulerItem","SchedulerItemProvider"],"sources":["useSchedulerItem.tsx"],"sourcesContent":["import { createGenericContext } from \"@webiny/app-admin\";\nimport type { SchedulerEntry } from \"~/types.js\";\n\nexport interface SchedulerItemContext {\n item: SchedulerEntry;\n}\n\nconst { Provider, useHook } = createGenericContext<SchedulerItemContext>(\"SchedulerItemContext\");\n\nexport const useSchedulerItem = useHook;\nexport const SchedulerItemProvider = Provider;\n"],"mappings":"AAAA,SAASA,oBAAoB,QAAQ,mBAAmB;AAOxD,MAAM;EAAEC,QAAQ;EAAEC;AAAQ,CAAC,GAAGF,oBAAoB,CAAuB,sBAAsB,CAAC;AAEhG,OAAO,MAAMG,gBAAgB,GAAGD,OAAO;AACvC,OAAO,MAAME,qBAAqB,GAAGH,QAAQ","ignoreList":[]}
|
package/Presentation/index.d.ts
CHANGED
|
@@ -2,7 +2,11 @@ import React from "react";
|
|
|
2
2
|
import type { ISchedulerCancelGateway, ISchedulerGetGateway, ISchedulerListGateway, ISchedulerPublishGateway, ISchedulerUnpublishGateway } from "../Gateways/index.js";
|
|
3
3
|
import type { CmsModel } from "@webiny/app-headless-cms-common/types/index.js";
|
|
4
4
|
export * from "./components/ScheduleDialog/index.js";
|
|
5
|
-
export * from "
|
|
5
|
+
export * from "../Presentation/SchedulerConfigs/index.js";
|
|
6
|
+
/**
|
|
7
|
+
* Decoratable Cells.
|
|
8
|
+
*/
|
|
9
|
+
export * from "./components/Cells/CellScheduledOn/index.js";
|
|
6
10
|
export interface SchedulerRenderPropParams {
|
|
7
11
|
showScheduler: () => void;
|
|
8
12
|
}
|
package/Presentation/index.js
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import React, { useCallback, useState } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { SchedulerRenderer } from "./SchedulerRenderer";
|
|
2
|
+
import { SchedulerRenderer } from "./SchedulerRenderer/index.js";
|
|
4
3
|
import { CompositionScope } from "@webiny/react-composition";
|
|
5
|
-
import { SchedulerListWithConfig } from "./configs";
|
|
4
|
+
import { SchedulerListWithConfig } from "./configs/index.js";
|
|
6
5
|
export * from "./components/ScheduleDialog/index.js";
|
|
7
6
|
export * from "./SchedulerConfigs/index.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Decoratable Cells.
|
|
10
|
+
*/
|
|
11
|
+
export * from "./components/Cells/CellScheduledOn/index.js";
|
|
8
12
|
export const Scheduler = ({
|
|
9
13
|
render,
|
|
10
14
|
...rest
|
|
@@ -21,9 +25,9 @@ export const Scheduler = ({
|
|
|
21
25
|
}, [rest.onClose]);
|
|
22
26
|
return /*#__PURE__*/React.createElement(React.Fragment, null, show && /*#__PURE__*/React.createElement(CompositionScope, {
|
|
23
27
|
name: "scheduler"
|
|
24
|
-
}, /*#__PURE__*/React.createElement(
|
|
28
|
+
}, /*#__PURE__*/React.createElement(SchedulerListWithConfig, null, /*#__PURE__*/React.createElement(SchedulerRenderer, Object.assign({}, rest, {
|
|
25
29
|
onClose: onClose
|
|
26
|
-
}))))
|
|
30
|
+
})))), render ? render({
|
|
27
31
|
showScheduler
|
|
28
32
|
}) : null);
|
|
29
33
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useCallback","useState","
|
|
1
|
+
{"version":3,"names":["React","useCallback","useState","SchedulerRenderer","CompositionScope","SchedulerListWithConfig","Scheduler","render","rest","show","setShow","showScheduler","onClose","createElement","Fragment","name","Object","assign"],"sources":["index.tsx"],"sourcesContent":["import React, { useCallback, useState } from \"react\";\nimport { SchedulerRenderer } from \"~/Presentation/SchedulerRenderer/index.js\";\nimport { CompositionScope } from \"@webiny/react-composition\";\nimport { SchedulerListWithConfig } from \"~/Presentation/configs/index.js\";\nimport type {\n ISchedulerCancelGateway,\n ISchedulerGetGateway,\n ISchedulerListGateway,\n ISchedulerPublishGateway,\n ISchedulerUnpublishGateway\n} from \"~/Gateways/index.js\";\nimport type { CmsModel } from \"@webiny/app-headless-cms-common/types/index.js\";\n\nexport * from \"./components/ScheduleDialog/index.js\";\nexport * from \"~/Presentation/SchedulerConfigs/index.js\";\n\n/**\n * Decoratable Cells.\n */\nexport * from \"./components/Cells/CellScheduledOn/index.js\";\n\nexport interface SchedulerRenderPropParams {\n showScheduler: () => void;\n}\n\ninterface SchedulerRenderProps {\n (params: SchedulerRenderPropParams): React.ReactNode;\n}\n\nexport interface SchedulerProps {\n model: Pick<CmsModel, \"modelId\">;\n render: SchedulerRenderProps;\n getGateway: ISchedulerGetGateway;\n listGateway: ISchedulerListGateway;\n cancelGateway: ISchedulerCancelGateway;\n publishGateway: ISchedulerPublishGateway;\n unpublishGateway: ISchedulerUnpublishGateway;\n onClose?: () => void;\n show?: boolean;\n title?: string;\n}\n\nexport const Scheduler = ({ render, ...rest }: SchedulerProps) => {\n const [show, setShow] = useState(rest.show ?? false);\n\n const showScheduler = useCallback(() => {\n setShow(true);\n }, []);\n\n const onClose = useCallback(() => {\n if (typeof rest.onClose === \"function\") {\n rest.onClose();\n }\n\n setShow(false);\n }, [rest.onClose]);\n\n return (\n <>\n {show && (\n <CompositionScope name={\"scheduler\"}>\n <SchedulerListWithConfig>\n <SchedulerRenderer {...rest} onClose={onClose} />\n </SchedulerListWithConfig>\n </CompositionScope>\n )}\n {render ? render({ showScheduler }) : null}\n </>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,QAAQ,QAAQ,OAAO;AACpD,SAASC,iBAAiB;AAC1B,SAASC,gBAAgB,QAAQ,2BAA2B;AAC5D,SAASC,uBAAuB;AAUhC;AACA;;AAEA;AACA;AACA;AACA;AAuBA,OAAO,MAAMC,SAAS,GAAGA,CAAC;EAAEC,MAAM;EAAE,GAAGC;AAAqB,CAAC,KAAK;EAC9D,MAAM,CAACC,IAAI,EAAEC,OAAO,CAAC,GAAGR,QAAQ,CAACM,IAAI,CAACC,IAAI,IAAI,KAAK,CAAC;EAEpD,MAAME,aAAa,GAAGV,WAAW,CAAC,MAAM;IACpCS,OAAO,CAAC,IAAI,CAAC;EACjB,CAAC,EAAE,EAAE,CAAC;EAEN,MAAME,OAAO,GAAGX,WAAW,CAAC,MAAM;IAC9B,IAAI,OAAOO,IAAI,CAACI,OAAO,KAAK,UAAU,EAAE;MACpCJ,IAAI,CAACI,OAAO,CAAC,CAAC;IAClB;IAEAF,OAAO,CAAC,KAAK,CAAC;EAClB,CAAC,EAAE,CAACF,IAAI,CAACI,OAAO,CAAC,CAAC;EAElB,oBACIZ,KAAA,CAAAa,aAAA,CAAAb,KAAA,CAAAc,QAAA,QACKL,IAAI,iBACDT,KAAA,CAAAa,aAAA,CAACT,gBAAgB;IAACW,IAAI,EAAE;EAAY,gBAChCf,KAAA,CAAAa,aAAA,CAACR,uBAAuB,qBACpBL,KAAA,CAAAa,aAAA,CAACV,iBAAiB,EAAAa,MAAA,CAAAC,MAAA,KAAKT,IAAI;IAAEI,OAAO,EAAEA;EAAQ,EAAE,CAC3B,CACX,CACrB,EACAL,MAAM,GAAGA,MAAM,CAAC;IAAEI;EAAc,CAAC,CAAC,GAAG,IACxC,CAAC;AAEX,CAAC","ignoreList":[]}
|
package/README.md
CHANGED
|
@@ -1,22 +1,11 @@
|
|
|
1
1
|
# @webiny/app-headless-cms-scheduler
|
|
2
2
|
|
|
3
|
-
[!
|
|
4
|
-
[
|
|
5
|
-
|
|
6
|
-
[](http://makeapullrequest.com)
|
|
3
|
+
> [!NOTE]
|
|
4
|
+
> This package is part of the [Webiny](https://www.webiny.com) monorepo.
|
|
5
|
+
> It’s **included in every Webiny project by default** and is not meant to be used as a standalone package.
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
📘 **Documentation:** [https://www.webiny.com/docs](https://www.webiny.com/docs)
|
|
9
8
|
|
|
10
|
-
|
|
9
|
+
---
|
|
11
10
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
```
|
|
15
|
-
npm install --save @webiny/app-headless-cms-scheduler
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
Or if you prefer yarn:
|
|
19
|
-
|
|
20
|
-
```
|
|
21
|
-
yarn add @webiny/app-headless-cms-scheduler
|
|
22
|
-
```
|
|
11
|
+
_This README file is automatically generated during the publish process._
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ISchedulerItemsRepository } from "../../Domain/Repositories";
|
|
2
|
-
import type { ICancelItemUseCase } from "./ICancelItemUseCase";
|
|
1
|
+
import type { ISchedulerItemsRepository } from "../../Domain/Repositories/index.js";
|
|
2
|
+
import type { ICancelItemUseCase } from "./ICancelItemUseCase.js";
|
|
3
3
|
export declare class ScheduleCancelItemUseCase implements ICancelItemUseCase {
|
|
4
4
|
private repository;
|
|
5
5
|
constructor(repository: ISchedulerItemsRepository);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["makeAutoObservable","ScheduleCancelItemUseCase","constructor","repository","execute","id","scheduleCancelItem"],"sources":["CancelItemUseCase.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { ISchedulerItemsRepository } from \"~/Domain/Repositories\";\nimport type { ICancelItemUseCase } from \"./ICancelItemUseCase\";\n\nexport class ScheduleCancelItemUseCase implements ICancelItemUseCase {\n private repository: ISchedulerItemsRepository;\n\n constructor(repository: ISchedulerItemsRepository) {\n this.repository = repository;\n makeAutoObservable(this);\n }\n\n async execute(id: string) {\n await this.repository.scheduleCancelItem(id);\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAIzC,OAAO,MAAMC,yBAAyB,CAA+B;EAGjEC,WAAWA,CAACC,UAAqC,EAAE;IAC/C,IAAI,CAACA,UAAU,GAAGA,UAAU;IAC5BH,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEA,MAAMI,OAAOA,CAACC,EAAU,EAAE;IACtB,MAAM,IAAI,CAACF,UAAU,CAACG,kBAAkB,CAACD,EAAE,CAAC;EAChD;AACJ","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["makeAutoObservable","ScheduleCancelItemUseCase","constructor","repository","execute","id","scheduleCancelItem"],"sources":["CancelItemUseCase.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { ISchedulerItemsRepository } from \"~/Domain/Repositories/index.js\";\nimport type { ICancelItemUseCase } from \"./ICancelItemUseCase.js\";\n\nexport class ScheduleCancelItemUseCase implements ICancelItemUseCase {\n private repository: ISchedulerItemsRepository;\n\n constructor(repository: ISchedulerItemsRepository) {\n this.repository = repository;\n makeAutoObservable(this);\n }\n\n async execute(id: string) {\n await this.repository.scheduleCancelItem(id);\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAIzC,OAAO,MAAMC,yBAAyB,CAA+B;EAGjEC,WAAWA,CAACC,UAAqC,EAAE;IAC/C,IAAI,CAACA,UAAU,GAAGA,UAAU;IAC5BH,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEA,MAAMI,OAAOA,CAACC,EAAU,EAAE;IACtB,MAAM,IAAI,CAACF,UAAU,CAACG,kBAAkB,CAACD,EAAE,CAAC;EAChD;AACJ","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./ICancelItemUseCase.js";
|
|
1
|
+
export type * from "./ICancelItemUseCase.js";
|
|
2
2
|
export * from "./CancelItemUseCase.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./ICancelItemUseCase.js\";\nexport * from \"./CancelItemUseCase.js\";\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export type * from \"./ICancelItemUseCase.js\";\nexport * from \"./CancelItemUseCase.js\";\n"],"mappings":"AACA","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ISchedulerItemsRepository } from "../../Domain";
|
|
2
|
-
import type { IGetItemUseCase } from "./IGetItemUseCase";
|
|
1
|
+
import type { ISchedulerItemsRepository } from "../../Domain/index.js";
|
|
2
|
+
import type { IGetItemUseCase } from "./IGetItemUseCase.js";
|
|
3
3
|
import type { ISchedulerGetExecuteParams } from "../../Gateways/index.js";
|
|
4
4
|
export declare class GetItemUseCase implements IGetItemUseCase {
|
|
5
5
|
private itemsRepository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["makeAutoObservable","GetItemUseCase","constructor","itemsRepository","execute","params","getItem"],"sources":["GetItemUseCase.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { ISchedulerItemsRepository } from \"~/Domain\";\nimport type { IGetItemUseCase } from \"./IGetItemUseCase\";\nimport type { ISchedulerGetExecuteParams } from \"~/Gateways/index.js\";\n\nexport class GetItemUseCase implements IGetItemUseCase {\n private itemsRepository: ISchedulerItemsRepository;\n constructor(itemsRepository: ISchedulerItemsRepository) {\n this.itemsRepository = itemsRepository;\n makeAutoObservable(this);\n }\n\n async execute(params: Omit<ISchedulerGetExecuteParams, \"modelId\">) {\n return await this.itemsRepository.getItem(params);\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAKzC,OAAO,MAAMC,cAAc,CAA4B;EAEnDC,WAAWA,CAACC,eAA0C,EAAE;IACpD,IAAI,CAACA,eAAe,GAAGA,eAAe;IACtCH,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEA,MAAMI,OAAOA,CAACC,MAAmD,EAAE;IAC/D,OAAO,MAAM,IAAI,CAACF,eAAe,CAACG,OAAO,CAACD,MAAM,CAAC;EACrD;AACJ","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["makeAutoObservable","GetItemUseCase","constructor","itemsRepository","execute","params","getItem"],"sources":["GetItemUseCase.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { ISchedulerItemsRepository } from \"~/Domain/index.js\";\nimport type { IGetItemUseCase } from \"./IGetItemUseCase.js\";\nimport type { ISchedulerGetExecuteParams } from \"~/Gateways/index.js\";\n\nexport class GetItemUseCase implements IGetItemUseCase {\n private itemsRepository: ISchedulerItemsRepository;\n constructor(itemsRepository: ISchedulerItemsRepository) {\n this.itemsRepository = itemsRepository;\n makeAutoObservable(this);\n }\n\n async execute(params: Omit<ISchedulerGetExecuteParams, \"modelId\">) {\n return await this.itemsRepository.getItem(params);\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAKzC,OAAO,MAAMC,cAAc,CAA4B;EAEnDC,WAAWA,CAACC,eAA0C,EAAE;IACpD,IAAI,CAACA,eAAe,GAAGA,eAAe;IACtCH,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEA,MAAMI,OAAOA,CAACC,MAAmD,EAAE;IAC/D,OAAO,MAAM,IAAI,CAACF,eAAe,CAACG,OAAO,CAACD,MAAM,CAAC;EACrD;AACJ","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./IGetItemUseCase";
|
|
2
|
-
export * from "./GetItemUseCase";
|
|
1
|
+
export type * from "./IGetItemUseCase.js";
|
|
2
|
+
export * from "./GetItemUseCase.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./IGetItemUseCase\";\nexport * from \"./GetItemUseCase\";\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export type * from \"./IGetItemUseCase.js\";\nexport * from \"./GetItemUseCase.js\";\n"],"mappings":"AACA","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ISchedulerItemsRepository } from "../../Domain";
|
|
1
|
+
import type { ISchedulerItemsRepository } from "../../Domain/index.js";
|
|
2
2
|
import type { IGetScheduledItemUseCase } from "./IGetScheduledItemUseCase.js";
|
|
3
3
|
export declare class GetScheduledItemUseCase implements IGetScheduledItemUseCase {
|
|
4
4
|
private repository;
|
|
5
5
|
constructor(repository: ISchedulerItemsRepository);
|
|
6
|
-
execute(id: string): Promise<import("
|
|
6
|
+
execute(id: string): Promise<import("~/Domain/index.js").SchedulerItem | undefined>;
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["makeAutoObservable","GetScheduledItemUseCase","constructor","repository","execute","id","items","getItems","find","item"],"sources":["GetScheduledItemUseCase.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { ISchedulerItemsRepository } from \"~/Domain\";\nimport type { IGetScheduledItemUseCase } from \"./IGetScheduledItemUseCase.js\";\n\nexport class GetScheduledItemUseCase implements IGetScheduledItemUseCase {\n private repository: ISchedulerItemsRepository;\n\n constructor(repository: ISchedulerItemsRepository) {\n this.repository = repository;\n makeAutoObservable(this);\n }\n\n async execute(id: string) {\n const items = this.repository.getItems();\n return items.find(item => item.id === id);\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAIzC,OAAO,MAAMC,uBAAuB,CAAqC;EAGrEC,WAAWA,CAACC,UAAqC,EAAE;IAC/C,IAAI,CAACA,UAAU,GAAGA,UAAU;IAC5BH,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEA,MAAMI,OAAOA,CAACC,EAAU,EAAE;IACtB,MAAMC,KAAK,GAAG,IAAI,CAACH,UAAU,CAACI,QAAQ,CAAC,CAAC;IACxC,OAAOD,KAAK,CAACE,IAAI,CAACC,IAAI,IAAIA,IAAI,CAACJ,EAAE,KAAKA,EAAE,CAAC;EAC7C;AACJ","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["makeAutoObservable","GetScheduledItemUseCase","constructor","repository","execute","id","items","getItems","find","item"],"sources":["GetScheduledItemUseCase.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { ISchedulerItemsRepository } from \"~/Domain/index.js\";\nimport type { IGetScheduledItemUseCase } from \"./IGetScheduledItemUseCase.js\";\n\nexport class GetScheduledItemUseCase implements IGetScheduledItemUseCase {\n private repository: ISchedulerItemsRepository;\n\n constructor(repository: ISchedulerItemsRepository) {\n this.repository = repository;\n makeAutoObservable(this);\n }\n\n async execute(id: string) {\n const items = this.repository.getItems();\n return items.find(item => item.id === id);\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAIzC,OAAO,MAAMC,uBAAuB,CAAqC;EAGrEC,WAAWA,CAACC,UAAqC,EAAE;IAC/C,IAAI,CAACA,UAAU,GAAGA,UAAU;IAC5BH,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEA,MAAMI,OAAOA,CAACC,EAAU,EAAE;IACtB,MAAMC,KAAK,GAAG,IAAI,CAACH,UAAU,CAACI,QAAQ,CAAC,CAAC;IACxC,OAAOD,KAAK,CAACE,IAAI,CAACC,IAAI,IAAIA,IAAI,CAACJ,EAAE,KAAKA,EAAE,CAAC;EAC7C;AACJ","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["IGetScheduledItemUseCase.ts"],"sourcesContent":["import type { SchedulerItem } from \"~/Domain\";\n\nexport interface IGetScheduledItemUseCase {\n execute: (id: string) => Promise<SchedulerItem | undefined>;\n}\n"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["IGetScheduledItemUseCase.ts"],"sourcesContent":["import type { SchedulerItem } from \"~/Domain/index.js\";\n\nexport interface IGetScheduledItemUseCase {\n execute: (id: string) => Promise<SchedulerItem | undefined>;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from "./GetScheduledItemUseCase.js";
|
|
2
|
-
export * from "./IGetScheduledItemUseCase.js";
|
|
2
|
+
export type * from "./IGetScheduledItemUseCase.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./GetScheduledItemUseCase.js\";\nexport * from \"./IGetScheduledItemUseCase.js\";\n"],"mappings":"AAAA
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./GetScheduledItemUseCase.js\";\nexport type * from \"./IGetScheduledItemUseCase.js\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ISchedulerItemsRepository } from "../../Domain";
|
|
2
|
-
import type { IListItemsUseCase } from "./IListItemsUseCase";
|
|
1
|
+
import type { ISchedulerItemsRepository } from "../../Domain/index.js";
|
|
2
|
+
import type { IListItemsUseCase } from "./IListItemsUseCase.js";
|
|
3
3
|
import type { ISchedulerListExecuteParams } from "../../Gateways/index.js";
|
|
4
4
|
export declare class ListItemsUseCase implements IListItemsUseCase {
|
|
5
5
|
private itemsRepository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["makeAutoObservable","ListItemsUseCase","constructor","itemsRepository","execute","params","listItems"],"sources":["ListItemsUseCase.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { ISchedulerItemsRepository } from \"~/Domain\";\nimport type { IListItemsUseCase } from \"./IListItemsUseCase\";\nimport type { ISchedulerListExecuteParams } from \"~/Gateways/index.js\";\n\nexport class ListItemsUseCase implements IListItemsUseCase {\n private itemsRepository: ISchedulerItemsRepository;\n constructor(itemsRepository: ISchedulerItemsRepository) {\n this.itemsRepository = itemsRepository;\n makeAutoObservable(this);\n }\n\n async execute(params?: Omit<ISchedulerListExecuteParams, \"modelId\">) {\n await this.itemsRepository.listItems(params || {});\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAKzC,OAAO,MAAMC,gBAAgB,CAA8B;EAEvDC,WAAWA,CAACC,eAA0C,EAAE;IACpD,IAAI,CAACA,eAAe,GAAGA,eAAe;IACtCH,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEA,MAAMI,OAAOA,CAACC,MAAqD,EAAE;IACjE,MAAM,IAAI,CAACF,eAAe,CAACG,SAAS,CAACD,MAAM,IAAI,CAAC,CAAC,CAAC;EACtD;AACJ","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["makeAutoObservable","ListItemsUseCase","constructor","itemsRepository","execute","params","listItems"],"sources":["ListItemsUseCase.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { ISchedulerItemsRepository } from \"~/Domain/index.js\";\nimport type { IListItemsUseCase } from \"./IListItemsUseCase.js\";\nimport type { ISchedulerListExecuteParams } from \"~/Gateways/index.js\";\n\nexport class ListItemsUseCase implements IListItemsUseCase {\n private itemsRepository: ISchedulerItemsRepository;\n constructor(itemsRepository: ISchedulerItemsRepository) {\n this.itemsRepository = itemsRepository;\n makeAutoObservable(this);\n }\n\n async execute(params?: Omit<ISchedulerListExecuteParams, \"modelId\">) {\n await this.itemsRepository.listItems(params || {});\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAKzC,OAAO,MAAMC,gBAAgB,CAA8B;EAEvDC,WAAWA,CAACC,eAA0C,EAAE;IACpD,IAAI,CAACA,eAAe,GAAGA,eAAe;IACtCH,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEA,MAAMI,OAAOA,CAACC,MAAqD,EAAE;IACjE,MAAM,IAAI,CAACF,eAAe,CAACG,SAAS,CAACD,MAAM,IAAI,CAAC,CAAC,CAAC;EACtD;AACJ","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ISearchRepository } from "../../Domain";
|
|
2
|
-
import type { IListItemsUseCase } from "./IListItemsUseCase";
|
|
1
|
+
import type { ISearchRepository } from "../../Domain/index.js";
|
|
2
|
+
import type { IListItemsUseCase } from "./IListItemsUseCase.js";
|
|
3
3
|
import type { ISchedulerListExecuteParams } from "../../Gateways/index.js";
|
|
4
4
|
export declare class ListItemsUseCaseWithSearch implements IListItemsUseCase {
|
|
5
5
|
private searchRepository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["makeAutoObservable","ListItemsUseCaseWithSearch","constructor","searchRepository","useCase","execute","params","search","get","where","title_contains","length","undefined"],"sources":["ListItemsUseCaseWithSearch.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { ISearchRepository } from \"~/Domain\";\nimport type { IListItemsUseCase } from \"./IListItemsUseCase\";\nimport type { ISchedulerListExecuteParams } from \"~/Gateways/index.js\";\n\nexport class ListItemsUseCaseWithSearch implements IListItemsUseCase {\n private searchRepository: ISearchRepository;\n private useCase: IListItemsUseCase;\n\n constructor(searchRepository: ISearchRepository, useCase: IListItemsUseCase) {\n this.searchRepository = searchRepository;\n this.useCase = useCase;\n makeAutoObservable(this);\n }\n\n async execute(params?: Omit<ISchedulerListExecuteParams, \"modelId\">) {\n const search = this.searchRepository.get();\n await this.useCase.execute({\n ...params,\n where: {\n ...params?.where,\n title_contains: search.length > 0 ? search : undefined\n }\n });\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAKzC,OAAO,MAAMC,0BAA0B,CAA8B;EAIjEC,WAAWA,CAACC,gBAAmC,EAAEC,OAA0B,EAAE;IACzE,IAAI,CAACD,gBAAgB,GAAGA,gBAAgB;IACxC,IAAI,CAACC,OAAO,GAAGA,OAAO;IACtBJ,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEA,MAAMK,OAAOA,CAACC,MAAqD,EAAE;IACjE,MAAMC,MAAM,GAAG,IAAI,CAACJ,gBAAgB,CAACK,GAAG,CAAC,CAAC;IAC1C,MAAM,IAAI,CAACJ,OAAO,CAACC,OAAO,CAAC;MACvB,GAAGC,MAAM;MACTG,KAAK,EAAE;QACH,GAAGH,MAAM,EAAEG,KAAK;QAChBC,cAAc,EAAEH,MAAM,CAACI,MAAM,GAAG,CAAC,GAAGJ,MAAM,GAAGK;MACjD;IACJ,CAAC,CAAC;EACN;AACJ","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["makeAutoObservable","ListItemsUseCaseWithSearch","constructor","searchRepository","useCase","execute","params","search","get","where","title_contains","length","undefined"],"sources":["ListItemsUseCaseWithSearch.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { ISearchRepository } from \"~/Domain/index.js\";\nimport type { IListItemsUseCase } from \"./IListItemsUseCase.js\";\nimport type { ISchedulerListExecuteParams } from \"~/Gateways/index.js\";\n\nexport class ListItemsUseCaseWithSearch implements IListItemsUseCase {\n private searchRepository: ISearchRepository;\n private useCase: IListItemsUseCase;\n\n constructor(searchRepository: ISearchRepository, useCase: IListItemsUseCase) {\n this.searchRepository = searchRepository;\n this.useCase = useCase;\n makeAutoObservable(this);\n }\n\n async execute(params?: Omit<ISchedulerListExecuteParams, \"modelId\">) {\n const search = this.searchRepository.get();\n await this.useCase.execute({\n ...params,\n where: {\n ...params?.where,\n title_contains: search.length > 0 ? search : undefined\n }\n });\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAKzC,OAAO,MAAMC,0BAA0B,CAA8B;EAIjEC,WAAWA,CAACC,gBAAmC,EAAEC,OAA0B,EAAE;IACzE,IAAI,CAACD,gBAAgB,GAAGA,gBAAgB;IACxC,IAAI,CAACC,OAAO,GAAGA,OAAO;IACtBJ,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEA,MAAMK,OAAOA,CAACC,MAAqD,EAAE;IACjE,MAAMC,MAAM,GAAG,IAAI,CAACJ,gBAAgB,CAACK,GAAG,CAAC,CAAC;IAC1C,MAAM,IAAI,CAACJ,OAAO,CAACC,OAAO,CAAC;MACvB,GAAGC,MAAM;MACTG,KAAK,EAAE;QACH,GAAGH,MAAM,EAAEG,KAAK;QAChBC,cAAc,EAAEH,MAAM,CAACI,MAAM,GAAG,CAAC,GAAGJ,MAAM,GAAGK;MACjD;IACJ,CAAC,CAAC;EACN;AACJ","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ISortingRepository } from "@webiny/app-utils";
|
|
2
|
-
import type { IListItemsUseCase } from "./IListItemsUseCase";
|
|
2
|
+
import type { IListItemsUseCase } from "./IListItemsUseCase.js";
|
|
3
3
|
import type { ISchedulerListExecuteParams } from "../../Gateways/index.js";
|
|
4
4
|
export declare class ListItemsUseCaseWithSorting implements IListItemsUseCase {
|
|
5
5
|
private sortingRepository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["makeAutoObservable","SortingMapper","ListItemsUseCaseWithSorting","constructor","sortingRepository","useCase","execute","params","sort","get","map","fromDTOtoDb"],"sources":["ListItemsUseCaseWithSorting.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { ISortingRepository } from \"@webiny/app-utils\";\nimport { SortingMapper } from \"@webiny/app-utils\";\nimport type { IListItemsUseCase } from \"./IListItemsUseCase\";\nimport type {\n ISchedulerListExecuteParams,\n ISchedulerListExecuteParamsSort\n} from \"~/Gateways/index.js\";\n\nexport class ListItemsUseCaseWithSorting implements IListItemsUseCase {\n private sortingRepository: ISortingRepository;\n private useCase: IListItemsUseCase;\n\n constructor(sortingRepository: ISortingRepository, useCase: IListItemsUseCase) {\n this.sortingRepository = sortingRepository;\n this.useCase = useCase;\n makeAutoObservable(this);\n }\n\n async execute(params?: Omit<ISchedulerListExecuteParams, \"modelId\">) {\n const sort = this.sortingRepository.get().map(sort => SortingMapper.fromDTOtoDb(sort));\n await this.useCase.execute({\n ...params,\n sort: sort as ISchedulerListExecuteParamsSort[]\n });\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAEzC,SAASC,aAAa,QAAQ,mBAAmB;AAOjD,OAAO,MAAMC,2BAA2B,CAA8B;EAIlEC,WAAWA,CAACC,iBAAqC,EAAEC,OAA0B,EAAE;IAC3E,IAAI,CAACD,iBAAiB,GAAGA,iBAAiB;IAC1C,IAAI,CAACC,OAAO,GAAGA,OAAO;IACtBL,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEA,MAAMM,OAAOA,CAACC,MAAqD,EAAE;IACjE,MAAMC,IAAI,GAAG,IAAI,CAACJ,iBAAiB,CAACK,GAAG,CAAC,CAAC,CAACC,GAAG,CAACF,IAAI,IAAIP,aAAa,CAACU,WAAW,CAACH,IAAI,CAAC,CAAC;IACtF,MAAM,IAAI,CAACH,OAAO,CAACC,OAAO,CAAC;MACvB,GAAGC,MAAM;MACTC,IAAI,EAAEA;IACV,CAAC,CAAC;EACN;AACJ","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["makeAutoObservable","SortingMapper","ListItemsUseCaseWithSorting","constructor","sortingRepository","useCase","execute","params","sort","get","map","fromDTOtoDb"],"sources":["ListItemsUseCaseWithSorting.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { ISortingRepository } from \"@webiny/app-utils\";\nimport { SortingMapper } from \"@webiny/app-utils\";\nimport type { IListItemsUseCase } from \"./IListItemsUseCase.js\";\nimport type {\n ISchedulerListExecuteParams,\n ISchedulerListExecuteParamsSort\n} from \"~/Gateways/index.js\";\n\nexport class ListItemsUseCaseWithSorting implements IListItemsUseCase {\n private sortingRepository: ISortingRepository;\n private useCase: IListItemsUseCase;\n\n constructor(sortingRepository: ISortingRepository, useCase: IListItemsUseCase) {\n this.sortingRepository = sortingRepository;\n this.useCase = useCase;\n makeAutoObservable(this);\n }\n\n async execute(params?: Omit<ISchedulerListExecuteParams, \"modelId\">) {\n const sort = this.sortingRepository.get().map(sort => SortingMapper.fromDTOtoDb(sort));\n await this.useCase.execute({\n ...params,\n sort: sort as ISchedulerListExecuteParamsSort[]\n });\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAEzC,SAASC,aAAa,QAAQ,mBAAmB;AAOjD,OAAO,MAAMC,2BAA2B,CAA8B;EAIlEC,WAAWA,CAACC,iBAAqC,EAAEC,OAA0B,EAAE;IAC3E,IAAI,CAACD,iBAAiB,GAAGA,iBAAiB;IAC1C,IAAI,CAACC,OAAO,GAAGA,OAAO;IACtBL,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEA,MAAMM,OAAOA,CAACC,MAAqD,EAAE;IACjE,MAAMC,IAAI,GAAG,IAAI,CAACJ,iBAAiB,CAACK,GAAG,CAAC,CAAC,CAACC,GAAG,CAACF,IAAI,IAAIP,aAAa,CAACU,WAAW,CAACH,IAAI,CAAC,CAAC;IACtF,MAAM,IAAI,CAACH,OAAO,CAACC,OAAO,CAAC;MACvB,GAAGC,MAAM;MACTC,IAAI,EAAEA;IACV,CAAC,CAAC;EACN;AACJ","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./IListItemsUseCase\";\nexport * from \"./ListItemsUseCase\";\nexport * from \"./ListItemsUseCaseWithSearch.js\";\nexport * from \"./ListItemsUseCaseWithSorting.js\";\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export type * from \"./IListItemsUseCase.js\";\nexport * from \"./ListItemsUseCase.js\";\nexport * from \"./ListItemsUseCaseWithSearch.js\";\nexport * from \"./ListItemsUseCaseWithSorting.js\";\n"],"mappings":"AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ISchedulerItemsRepository } from "../../Domain/Repositories";
|
|
2
|
-
import type { IListMoreItemsUseCase } from "./IListMoreItemsUseCase";
|
|
1
|
+
import type { ISchedulerItemsRepository } from "../../Domain/Repositories/index.js";
|
|
2
|
+
import type { IListMoreItemsUseCase } from "./IListMoreItemsUseCase.js";
|
|
3
3
|
export declare class ListMoreItemsUseCase implements IListMoreItemsUseCase {
|
|
4
4
|
private itemsRepository;
|
|
5
5
|
constructor(itemsRepository: ISchedulerItemsRepository);
|