@webiny/app-headless-cms-scheduler 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/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,5 +1,5 @@
|
|
|
1
|
-
import type { CmsIdentity, CmsModel, SchedulerEntry } from "../../../types";
|
|
2
|
-
import type { ScheduleType } from "../../../types";
|
|
1
|
+
import type { CmsIdentity, CmsModel, SchedulerEntry } from "../../../types.js";
|
|
2
|
+
import type { ScheduleType } from "../../../types.js";
|
|
3
3
|
export declare class SchedulerItem {
|
|
4
4
|
readonly id: string;
|
|
5
5
|
readonly title: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["SchedulerItem","constructor","item","id","title","type","targetId","model","scheduledBy","publishOn","unpublishOn","create"],"sources":["SchedulerItem.ts"],"sourcesContent":["import type { CmsIdentity, CmsModel, SchedulerEntry } from \"~/types\";\nimport type { ScheduleType } from \"~/types\";\n\nexport class SchedulerItem {\n public readonly id: string;\n public readonly title: string;\n public readonly type: ScheduleType;\n public readonly targetId: string;\n public readonly model: Pick<CmsModel, \"modelId\">;\n public readonly scheduledBy: CmsIdentity;\n public readonly publishOn?: Date;\n public readonly unpublishOn?: Date;\n\n protected constructor(item: SchedulerEntry) {\n this.id = item.id;\n this.title = item.title;\n this.type = item.type;\n this.targetId = item.targetId;\n this.model = item.model;\n this.scheduledBy = item.scheduledBy;\n this.publishOn = item.publishOn;\n this.unpublishOn = item.unpublishOn;\n }\n\n public static create(item: SchedulerEntry) {\n return new SchedulerItem(item);\n }\n}\n"],"mappings":"AAGA,OAAO,MAAMA,aAAa,CAAC;EAUbC,WAAWA,CAACC,IAAoB,EAAE;IACxC,IAAI,CAACC,EAAE,GAAGD,IAAI,CAACC,EAAE;IACjB,IAAI,CAACC,KAAK,GAAGF,IAAI,CAACE,KAAK;IACvB,IAAI,CAACC,IAAI,GAAGH,IAAI,CAACG,IAAI;IACrB,IAAI,CAACC,QAAQ,GAAGJ,IAAI,CAACI,QAAQ;IAC7B,IAAI,CAACC,KAAK,GAAGL,IAAI,CAACK,KAAK;IACvB,IAAI,CAACC,WAAW,GAAGN,IAAI,CAACM,WAAW;IACnC,IAAI,CAACC,SAAS,GAAGP,IAAI,CAACO,SAAS;IAC/B,IAAI,CAACC,WAAW,GAAGR,IAAI,CAACQ,WAAW;EACvC;EAEA,OAAcC,MAAMA,CAACT,IAAoB,EAAE;IACvC,OAAO,IAAIF,aAAa,CAACE,IAAI,CAAC;EAClC;AACJ","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["SchedulerItem","constructor","item","id","title","type","targetId","model","scheduledBy","publishOn","unpublishOn","create"],"sources":["SchedulerItem.ts"],"sourcesContent":["import type { CmsIdentity, CmsModel, SchedulerEntry } from \"~/types.js\";\nimport type { ScheduleType } from \"~/types.js\";\n\nexport class SchedulerItem {\n public readonly id: string;\n public readonly title: string;\n public readonly type: ScheduleType;\n public readonly targetId: string;\n public readonly model: Pick<CmsModel, \"modelId\">;\n public readonly scheduledBy: CmsIdentity;\n public readonly publishOn?: Date;\n public readonly unpublishOn?: Date;\n\n protected constructor(item: SchedulerEntry) {\n this.id = item.id;\n this.title = item.title;\n this.type = item.type;\n this.targetId = item.targetId;\n this.model = item.model;\n this.scheduledBy = item.scheduledBy;\n this.publishOn = item.publishOn;\n this.unpublishOn = item.unpublishOn;\n }\n\n public static create(item: SchedulerEntry) {\n return new SchedulerItem(item);\n }\n}\n"],"mappings":"AAGA,OAAO,MAAMA,aAAa,CAAC;EAUbC,WAAWA,CAACC,IAAoB,EAAE;IACxC,IAAI,CAACC,EAAE,GAAGD,IAAI,CAACC,EAAE;IACjB,IAAI,CAACC,KAAK,GAAGF,IAAI,CAACE,KAAK;IACvB,IAAI,CAACC,IAAI,GAAGH,IAAI,CAACG,IAAI;IACrB,IAAI,CAACC,QAAQ,GAAGJ,IAAI,CAACI,QAAQ;IAC7B,IAAI,CAACC,KAAK,GAAGL,IAAI,CAACK,KAAK;IACvB,IAAI,CAACC,WAAW,GAAGN,IAAI,CAACM,WAAW;IACnC,IAAI,CAACC,SAAS,GAAGP,IAAI,CAACO,SAAS;IAC/B,IAAI,CAACC,WAAW,GAAGR,IAAI,CAACQ,WAAW;EACvC;EAEA,OAAcC,MAAMA,CAACT,IAAoB,EAAE;IACvC,OAAO,IAAIF,aAAa,CAACE,IAAI,CAAC;EAClC;AACJ","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./SchedulerItem";
|
|
1
|
+
export * from "./SchedulerItem.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./SchedulerItem\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./SchedulerItem.js\";\n"],"mappings":"AAAA","ignoreList":[]}
|
package/Domain/Models/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./SchedulerItem";
|
|
1
|
+
export * from "./SchedulerItem/index.js";
|
package/Domain/Models/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./SchedulerItem\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./SchedulerItem/index.js\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta } from "@webiny/app-utils";
|
|
2
|
-
import type { SchedulerItem } from "
|
|
2
|
+
import type { SchedulerItem } from "../../../Domain/index.js";
|
|
3
3
|
import type { ISchedulerGetExecuteParams, ISchedulerListExecuteParams } from "../../../Gateways/index.js";
|
|
4
4
|
export interface ISchedulerItemsRepository {
|
|
5
5
|
getItem(params: Omit<ISchedulerGetExecuteParams, "modelId">): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["ISchedulerItemsRepository.ts"],"sourcesContent":["import type { Meta } from \"@webiny/app-utils\";\nimport type { SchedulerItem } from \"~/Domain\";\nimport type { ISchedulerGetExecuteParams, ISchedulerListExecuteParams } from \"~/Gateways/index.js\";\n\nexport interface ISchedulerItemsRepository {\n getItem(params: Omit<ISchedulerGetExecuteParams, \"modelId\">): Promise<void>;\n listItems: (params: Omit<ISchedulerListExecuteParams, \"modelId\">) => Promise<void>;\n listMoreItems: () => Promise<void>;\n scheduleCancelItem: (id: string) => Promise<void>;\n schedulePublishItem: (id: string, scheduleOn: Date) => Promise<void>;\n scheduleUnpublishItem: (id: string, scheduleOn: Date) => Promise<void>;\n getItems: () => SchedulerItem[];\n getMeta: () => Meta;\n getLoading: () => Record<string, any>;\n}\n"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["ISchedulerItemsRepository.ts"],"sourcesContent":["import type { Meta } from \"@webiny/app-utils\";\nimport type { SchedulerItem } from \"~/Domain/index.js\";\nimport type { ISchedulerGetExecuteParams, ISchedulerListExecuteParams } from \"~/Gateways/index.js\";\n\nexport interface ISchedulerItemsRepository {\n getItem(params: Omit<ISchedulerGetExecuteParams, \"modelId\">): Promise<void>;\n listItems: (params: Omit<ISchedulerListExecuteParams, \"modelId\">) => Promise<void>;\n listMoreItems: () => Promise<void>;\n scheduleCancelItem: (id: string) => Promise<void>;\n schedulePublishItem: (id: string, scheduleOn: Date) => Promise<void>;\n scheduleUnpublishItem: (id: string, scheduleOn: Date) => Promise<void>;\n getItems: () => SchedulerItem[];\n getMeta: () => Meta;\n getLoading: () => Record<string, any>;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { SchedulerItem } from "
|
|
2
|
-
import type { ISchedulerCancelGateway, ISchedulerListGateway, ISchedulerPublishGateway, ISchedulerUnpublishGateway } from "../../../Gateways";
|
|
3
|
-
import { type ISchedulerGetExecuteParams, type ISchedulerGetGateway, type ISchedulerListExecuteParams } from "../../../Gateways";
|
|
1
|
+
import type { SchedulerItem } from "../../../Domain/index.js";
|
|
2
|
+
import type { ISchedulerCancelGateway, ISchedulerListGateway, ISchedulerPublishGateway, ISchedulerUnpublishGateway } from "../../../Gateways/index.js";
|
|
3
|
+
import { type ISchedulerGetExecuteParams, type ISchedulerGetGateway, type ISchedulerListExecuteParams } from "../../../Gateways/index.js";
|
|
4
4
|
import type { IMetaRepository } from "@webiny/app-utils";
|
|
5
5
|
import { Meta } from "@webiny/app-utils";
|
|
6
|
-
import type { ISchedulerItemsRepository } from "./ISchedulerItemsRepository";
|
|
6
|
+
import type { ISchedulerItemsRepository } from "./ISchedulerItemsRepository.js";
|
|
7
7
|
import type { CmsModel } from "@webiny/app-headless-cms-common/types/index.js";
|
|
8
8
|
export interface ISchedulerItemsRepositoryParams {
|
|
9
9
|
metaRepository: IMetaRepository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["makeAutoObservable","runInAction","uniqBy","Meta","SchedulerItemsRepository","items","constructor","params","metaRepository","listGateway","getGateway","cancelGateway","unpublishGateway","publishGateway","model","modelId","getItems","getMeta","get","getLoading","getItem","item","execute","listItems","response","set","create","meta","listMoreItems","cursor","after","scheduleCancelItem","id","filter","decreaseTotalCount","schedulePublishItem","scheduleOn","increaseTotalCount","scheduleUnpublishItem"],"sources":["SchedulerItemsRepository.ts"],"sourcesContent":["import { makeAutoObservable, runInAction } from \"mobx\";\nimport uniqBy from \"lodash/uniqBy\";\nimport type { SchedulerItem } from \"~/Domain\";\nimport type {\n ISchedulerCancelGateway,\n ISchedulerListGateway,\n ISchedulerPublishGateway,\n ISchedulerUnpublishGateway\n} from \"~/Gateways\";\nimport {\n type ISchedulerGetExecuteParams,\n type ISchedulerGetGateway,\n type ISchedulerListExecuteParams\n} from \"~/Gateways\";\nimport type { IMetaRepository } from \"@webiny/app-utils\";\nimport { Meta } from \"@webiny/app-utils\";\nimport type { ISchedulerItemsRepository } from \"./ISchedulerItemsRepository\";\nimport type { CmsModel } from \"@webiny/app-headless-cms-common/types/index.js\";\n\nexport interface ISchedulerItemsRepositoryParams {\n metaRepository: IMetaRepository;\n getGateway: ISchedulerGetGateway;\n listGateway: ISchedulerListGateway;\n cancelGateway: ISchedulerCancelGateway;\n unpublishGateway: ISchedulerUnpublishGateway;\n publishGateway: ISchedulerPublishGateway;\n model: Pick<CmsModel, \"modelId\">;\n}\n\nexport class SchedulerItemsRepository implements ISchedulerItemsRepository {\n private readonly metaRepository: IMetaRepository;\n private readonly getGateway: ISchedulerGetGateway;\n private readonly listGateway: ISchedulerListGateway;\n private readonly cancelGateway: ISchedulerCancelGateway;\n private readonly unpublishGateway: ISchedulerUnpublishGateway;\n private readonly publishGateway: ISchedulerPublishGateway;\n private readonly model: Pick<CmsModel, \"modelId\">;\n private items: SchedulerItem[] = [];\n private params: ISchedulerListExecuteParams;\n\n public constructor(params: ISchedulerItemsRepositoryParams) {\n this.metaRepository = params.metaRepository;\n this.listGateway = params.listGateway;\n this.getGateway = params.getGateway;\n this.cancelGateway = params.cancelGateway;\n this.unpublishGateway = params.unpublishGateway;\n this.publishGateway = params.publishGateway;\n this.model = params.model;\n this.params = {\n modelId: this.model.modelId\n };\n makeAutoObservable(this);\n }\n\n public getItems() {\n return this.items;\n }\n\n public getMeta() {\n return this.metaRepository.get();\n }\n\n public getLoading() {\n return {};\n }\n\n public async getItem(params: Omit<ISchedulerGetExecuteParams, \"modelId\">) {\n const item = await this.getGateway.execute({\n ...params,\n modelId: this.model.modelId\n });\n /**\n * TODO Do we want to reset the items list?\n */\n runInAction(() => {\n this.items = [];\n });\n\n if (!item) {\n return;\n }\n\n runInAction(() => {\n this.items = [item];\n });\n }\n\n public async listItems(params: Omit<ISchedulerListExecuteParams, \"modelId\">) {\n this.params = {\n ...params,\n modelId: this.model.modelId\n };\n\n const response = await this.listGateway.execute({ ...this.params });\n\n if (!response) {\n return;\n }\n\n runInAction(() => {\n this.items = response.items;\n this.metaRepository.set(Meta.create(response.meta));\n });\n }\n\n public 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 this.items = uniqBy([...this.items, ...response.items], \"id\");\n this.metaRepository.set(Meta.create(response.meta));\n });\n }\n\n public async scheduleCancelItem(id: string) {\n await this.cancelGateway.execute({\n modelId: this.model.modelId,\n id\n });\n\n runInAction(() => {\n this.items = this.items.filter(item => item.id !== id);\n this.metaRepository.decreaseTotalCount(1);\n });\n }\n\n public async schedulePublishItem(id: string, scheduleOn: Date) {\n const { item } = await this.publishGateway.execute({\n modelId: this.model.modelId,\n id,\n scheduleOn\n });\n\n if (!item) {\n return;\n }\n\n runInAction(() => {\n this.items = [...this.items, item];\n this.metaRepository.increaseTotalCount(1);\n });\n }\n\n public async scheduleUnpublishItem(id: string, scheduleOn: Date) {\n const { item } = await this.unpublishGateway.execute({\n modelId: this.model.modelId,\n id,\n scheduleOn\n });\n\n if (!item) {\n return;\n }\n\n runInAction(() => {\n this.items = [...this.items, item];\n this.metaRepository.increaseTotalCount(1);\n });\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,EAAEC,WAAW,QAAQ,MAAM;AACtD,OAAOC,MAAM,MAAM,
|
|
1
|
+
{"version":3,"names":["makeAutoObservable","runInAction","uniqBy","Meta","SchedulerItemsRepository","items","constructor","params","metaRepository","listGateway","getGateway","cancelGateway","unpublishGateway","publishGateway","model","modelId","getItems","getMeta","get","getLoading","getItem","item","execute","listItems","response","set","create","meta","listMoreItems","cursor","after","scheduleCancelItem","id","filter","decreaseTotalCount","schedulePublishItem","scheduleOn","increaseTotalCount","scheduleUnpublishItem"],"sources":["SchedulerItemsRepository.ts"],"sourcesContent":["import { makeAutoObservable, runInAction } from \"mobx\";\nimport uniqBy from \"lodash/uniqBy.js\";\nimport type { SchedulerItem } from \"~/Domain/index.js\";\nimport type {\n ISchedulerCancelGateway,\n ISchedulerListGateway,\n ISchedulerPublishGateway,\n ISchedulerUnpublishGateway\n} from \"~/Gateways/index.js\";\nimport {\n type ISchedulerGetExecuteParams,\n type ISchedulerGetGateway,\n type ISchedulerListExecuteParams\n} from \"~/Gateways/index.js\";\nimport type { IMetaRepository } from \"@webiny/app-utils\";\nimport { Meta } from \"@webiny/app-utils\";\nimport type { ISchedulerItemsRepository } from \"./ISchedulerItemsRepository.js\";\nimport type { CmsModel } from \"@webiny/app-headless-cms-common/types/index.js\";\n\nexport interface ISchedulerItemsRepositoryParams {\n metaRepository: IMetaRepository;\n getGateway: ISchedulerGetGateway;\n listGateway: ISchedulerListGateway;\n cancelGateway: ISchedulerCancelGateway;\n unpublishGateway: ISchedulerUnpublishGateway;\n publishGateway: ISchedulerPublishGateway;\n model: Pick<CmsModel, \"modelId\">;\n}\n\nexport class SchedulerItemsRepository implements ISchedulerItemsRepository {\n private readonly metaRepository: IMetaRepository;\n private readonly getGateway: ISchedulerGetGateway;\n private readonly listGateway: ISchedulerListGateway;\n private readonly cancelGateway: ISchedulerCancelGateway;\n private readonly unpublishGateway: ISchedulerUnpublishGateway;\n private readonly publishGateway: ISchedulerPublishGateway;\n private readonly model: Pick<CmsModel, \"modelId\">;\n private items: SchedulerItem[] = [];\n private params: ISchedulerListExecuteParams;\n\n public constructor(params: ISchedulerItemsRepositoryParams) {\n this.metaRepository = params.metaRepository;\n this.listGateway = params.listGateway;\n this.getGateway = params.getGateway;\n this.cancelGateway = params.cancelGateway;\n this.unpublishGateway = params.unpublishGateway;\n this.publishGateway = params.publishGateway;\n this.model = params.model;\n this.params = {\n modelId: this.model.modelId\n };\n makeAutoObservable(this);\n }\n\n public getItems() {\n return this.items;\n }\n\n public getMeta() {\n return this.metaRepository.get();\n }\n\n public getLoading() {\n return {};\n }\n\n public async getItem(params: Omit<ISchedulerGetExecuteParams, \"modelId\">) {\n const item = await this.getGateway.execute({\n ...params,\n modelId: this.model.modelId\n });\n /**\n * TODO Do we want to reset the items list?\n */\n runInAction(() => {\n this.items = [];\n });\n\n if (!item) {\n return;\n }\n\n runInAction(() => {\n this.items = [item];\n });\n }\n\n public async listItems(params: Omit<ISchedulerListExecuteParams, \"modelId\">) {\n this.params = {\n ...params,\n modelId: this.model.modelId\n };\n\n const response = await this.listGateway.execute({ ...this.params });\n\n if (!response) {\n return;\n }\n\n runInAction(() => {\n this.items = response.items;\n this.metaRepository.set(Meta.create(response.meta));\n });\n }\n\n public 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 this.items = uniqBy([...this.items, ...response.items], \"id\");\n this.metaRepository.set(Meta.create(response.meta));\n });\n }\n\n public async scheduleCancelItem(id: string) {\n await this.cancelGateway.execute({\n modelId: this.model.modelId,\n id\n });\n\n runInAction(() => {\n this.items = this.items.filter(item => item.id !== id);\n this.metaRepository.decreaseTotalCount(1);\n });\n }\n\n public async schedulePublishItem(id: string, scheduleOn: Date) {\n const { item } = await this.publishGateway.execute({\n modelId: this.model.modelId,\n id,\n scheduleOn\n });\n\n if (!item) {\n return;\n }\n\n runInAction(() => {\n this.items = [...this.items, item];\n this.metaRepository.increaseTotalCount(1);\n });\n }\n\n public async scheduleUnpublishItem(id: string, scheduleOn: Date) {\n const { item } = await this.unpublishGateway.execute({\n modelId: this.model.modelId,\n id,\n scheduleOn\n });\n\n if (!item) {\n return;\n }\n\n runInAction(() => {\n this.items = [...this.items, item];\n this.metaRepository.increaseTotalCount(1);\n });\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,EAAEC,WAAW,QAAQ,MAAM;AACtD,OAAOC,MAAM,MAAM,kBAAkB;AAcrC,SAASC,IAAI,QAAQ,mBAAmB;AAcxC,OAAO,MAAMC,wBAAwB,CAAsC;EAQ/DC,KAAK,GAAoB,EAAE;EAG5BC,WAAWA,CAACC,MAAuC,EAAE;IACxD,IAAI,CAACC,cAAc,GAAGD,MAAM,CAACC,cAAc;IAC3C,IAAI,CAACC,WAAW,GAAGF,MAAM,CAACE,WAAW;IACrC,IAAI,CAACC,UAAU,GAAGH,MAAM,CAACG,UAAU;IACnC,IAAI,CAACC,aAAa,GAAGJ,MAAM,CAACI,aAAa;IACzC,IAAI,CAACC,gBAAgB,GAAGL,MAAM,CAACK,gBAAgB;IAC/C,IAAI,CAACC,cAAc,GAAGN,MAAM,CAACM,cAAc;IAC3C,IAAI,CAACC,KAAK,GAAGP,MAAM,CAACO,KAAK;IACzB,IAAI,CAACP,MAAM,GAAG;MACVQ,OAAO,EAAE,IAAI,CAACD,KAAK,CAACC;IACxB,CAAC;IACDf,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEOgB,QAAQA,CAAA,EAAG;IACd,OAAO,IAAI,CAACX,KAAK;EACrB;EAEOY,OAAOA,CAAA,EAAG;IACb,OAAO,IAAI,CAACT,cAAc,CAACU,GAAG,CAAC,CAAC;EACpC;EAEOC,UAAUA,CAAA,EAAG;IAChB,OAAO,CAAC,CAAC;EACb;EAEA,MAAaC,OAAOA,CAACb,MAAmD,EAAE;IACtE,MAAMc,IAAI,GAAG,MAAM,IAAI,CAACX,UAAU,CAACY,OAAO,CAAC;MACvC,GAAGf,MAAM;MACTQ,OAAO,EAAE,IAAI,CAACD,KAAK,CAACC;IACxB,CAAC,CAAC;IACF;AACR;AACA;IACQd,WAAW,CAAC,MAAM;MACd,IAAI,CAACI,KAAK,GAAG,EAAE;IACnB,CAAC,CAAC;IAEF,IAAI,CAACgB,IAAI,EAAE;MACP;IACJ;IAEApB,WAAW,CAAC,MAAM;MACd,IAAI,CAACI,KAAK,GAAG,CAACgB,IAAI,CAAC;IACvB,CAAC,CAAC;EACN;EAEA,MAAaE,SAASA,CAAChB,MAAoD,EAAE;IACzE,IAAI,CAACA,MAAM,GAAG;MACV,GAAGA,MAAM;MACTQ,OAAO,EAAE,IAAI,CAACD,KAAK,CAACC;IACxB,CAAC;IAED,MAAMS,QAAQ,GAAG,MAAM,IAAI,CAACf,WAAW,CAACa,OAAO,CAAC;MAAE,GAAG,IAAI,CAACf;IAAO,CAAC,CAAC;IAEnE,IAAI,CAACiB,QAAQ,EAAE;MACX;IACJ;IAEAvB,WAAW,CAAC,MAAM;MACd,IAAI,CAACI,KAAK,GAAGmB,QAAQ,CAACnB,KAAK;MAC3B,IAAI,CAACG,cAAc,CAACiB,GAAG,CAACtB,IAAI,CAACuB,MAAM,CAACF,QAAQ,CAACG,IAAI,CAAC,CAAC;IACvD,CAAC,CAAC;EACN;EAEA,MAAaC,aAAaA,CAAA,EAAG;IACzB,MAAM;MAAEC;IAAO,CAAC,GAAG,IAAI,CAACrB,cAAc,CAACU,GAAG,CAAC,CAAC;IAE5C,IAAI,CAACW,MAAM,EAAE;MACT;IACJ;IAEA,MAAML,QAAQ,GAAG,MAAM,IAAI,CAACf,WAAW,CAACa,OAAO,CAAC;MAAE,GAAG,IAAI,CAACf,MAAM;MAAEuB,KAAK,EAAED;IAAO,CAAC,CAAC;IAElF,IAAI,CAACL,QAAQ,EAAE;MACX;IACJ;IAEAvB,WAAW,CAAC,MAAM;MACd,IAAI,CAACI,KAAK,GAAGH,MAAM,CAAC,CAAC,GAAG,IAAI,CAACG,KAAK,EAAE,GAAGmB,QAAQ,CAACnB,KAAK,CAAC,EAAE,IAAI,CAAC;MAC7D,IAAI,CAACG,cAAc,CAACiB,GAAG,CAACtB,IAAI,CAACuB,MAAM,CAACF,QAAQ,CAACG,IAAI,CAAC,CAAC;IACvD,CAAC,CAAC;EACN;EAEA,MAAaI,kBAAkBA,CAACC,EAAU,EAAE;IACxC,MAAM,IAAI,CAACrB,aAAa,CAACW,OAAO,CAAC;MAC7BP,OAAO,EAAE,IAAI,CAACD,KAAK,CAACC,OAAO;MAC3BiB;IACJ,CAAC,CAAC;IAEF/B,WAAW,CAAC,MAAM;MACd,IAAI,CAACI,KAAK,GAAG,IAAI,CAACA,KAAK,CAAC4B,MAAM,CAACZ,IAAI,IAAIA,IAAI,CAACW,EAAE,KAAKA,EAAE,CAAC;MACtD,IAAI,CAACxB,cAAc,CAAC0B,kBAAkB,CAAC,CAAC,CAAC;IAC7C,CAAC,CAAC;EACN;EAEA,MAAaC,mBAAmBA,CAACH,EAAU,EAAEI,UAAgB,EAAE;IAC3D,MAAM;MAAEf;IAAK,CAAC,GAAG,MAAM,IAAI,CAACR,cAAc,CAACS,OAAO,CAAC;MAC/CP,OAAO,EAAE,IAAI,CAACD,KAAK,CAACC,OAAO;MAC3BiB,EAAE;MACFI;IACJ,CAAC,CAAC;IAEF,IAAI,CAACf,IAAI,EAAE;MACP;IACJ;IAEApB,WAAW,CAAC,MAAM;MACd,IAAI,CAACI,KAAK,GAAG,CAAC,GAAG,IAAI,CAACA,KAAK,EAAEgB,IAAI,CAAC;MAClC,IAAI,CAACb,cAAc,CAAC6B,kBAAkB,CAAC,CAAC,CAAC;IAC7C,CAAC,CAAC;EACN;EAEA,MAAaC,qBAAqBA,CAACN,EAAU,EAAEI,UAAgB,EAAE;IAC7D,MAAM;MAAEf;IAAK,CAAC,GAAG,MAAM,IAAI,CAACT,gBAAgB,CAACU,OAAO,CAAC;MACjDP,OAAO,EAAE,IAAI,CAACD,KAAK,CAACC,OAAO;MAC3BiB,EAAE;MACFI;IACJ,CAAC,CAAC;IAEF,IAAI,CAACf,IAAI,EAAE;MACP;IACJ;IAEApB,WAAW,CAAC,MAAM;MACd,IAAI,CAACI,KAAK,GAAG,CAAC,GAAG,IAAI,CAACA,KAAK,EAAEgB,IAAI,CAAC;MAClC,IAAI,CAACb,cAAc,CAAC6B,kBAAkB,CAAC,CAAC,CAAC;IAC7C,CAAC,CAAC;EACN;AACJ","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IMetaRepository } from "@webiny/app-utils";
|
|
2
|
-
import type { ISchedulerListGateway } from "../../../Gateways";
|
|
3
|
-
import { type ISchedulerCancelGateway, type ISchedulerGetGateway, type ISchedulerPublishGateway, type ISchedulerUnpublishGateway } from "../../../Gateways";
|
|
4
|
-
import { SchedulerItemsRepository } from "./SchedulerItemsRepository";
|
|
2
|
+
import type { ISchedulerListGateway } from "../../../Gateways/index.js";
|
|
3
|
+
import { type ISchedulerCancelGateway, type ISchedulerGetGateway, type ISchedulerPublishGateway, type ISchedulerUnpublishGateway } from "../../../Gateways/index.js";
|
|
4
|
+
import { SchedulerItemsRepository } from "./SchedulerItemsRepository.js";
|
|
5
5
|
import type { CmsModel } from "@webiny/app-headless-cms-common/types/index.js";
|
|
6
6
|
export interface ISchedulerItemsRepositoryFactoryGetParams {
|
|
7
7
|
metaRepository: IMetaRepository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["SchedulerItemsRepository","SchedulerItemsRepositoryFactory","cache","Map","getRepository","params","cacheKey","getCacheKey","has","set","get","Date","now","toString","schedulerItemsRepositoryFactory"],"sources":["SchedulerItemsRepositoryFactory.ts"],"sourcesContent":["import type { IMetaRepository } from \"@webiny/app-utils\";\nimport type { ISchedulerListGateway } from \"~/Gateways\";\nimport {\n type ISchedulerCancelGateway,\n type ISchedulerGetGateway,\n type ISchedulerPublishGateway,\n type ISchedulerUnpublishGateway\n} from \"~/Gateways\";\nimport { SchedulerItemsRepository } from \"./SchedulerItemsRepository\";\nimport type { CmsModel } from \"@webiny/app-headless-cms-common/types/index.js\";\n\nexport interface ISchedulerItemsRepositoryFactoryGetParams {\n metaRepository: IMetaRepository;\n getGateway: ISchedulerGetGateway;\n listGateway: ISchedulerListGateway;\n cancelGateway: ISchedulerCancelGateway;\n publishGateway: ISchedulerPublishGateway;\n unpublishGateway: ISchedulerUnpublishGateway;\n model: Pick<CmsModel, \"modelId\">;\n}\n\nexport class SchedulerItemsRepositoryFactory {\n private readonly cache: Map<string, SchedulerItemsRepository> = new Map();\n\n public getRepository(params: ISchedulerItemsRepositoryFactoryGetParams) {\n const cacheKey = this.getCacheKey();\n\n if (!this.cache.has(cacheKey)) {\n this.cache.set(cacheKey, new SchedulerItemsRepository(params));\n }\n\n return this.cache.get(cacheKey) as SchedulerItemsRepository;\n }\n\n private getCacheKey() {\n return Date.now().toString();\n }\n}\n\nexport const schedulerItemsRepositoryFactory = new SchedulerItemsRepositoryFactory();\n"],"mappings":"AAQA,SAASA,wBAAwB;AAajC,OAAO,MAAMC,+BAA+B,CAAC;EACxBC,KAAK,GAA0C,IAAIC,GAAG,CAAC,CAAC;EAElEC,aAAaA,CAACC,MAAiD,EAAE;IACpE,MAAMC,QAAQ,GAAG,IAAI,CAACC,WAAW,CAAC,CAAC;IAEnC,IAAI,CAAC,IAAI,CAACL,KAAK,CAACM,GAAG,CAACF,QAAQ,CAAC,EAAE;MAC3B,IAAI,CAACJ,KAAK,CAACO,GAAG,CAACH,QAAQ,EAAE,IAAIN,wBAAwB,CAACK,MAAM,CAAC,CAAC;IAClE;IAEA,OAAO,IAAI,CAACH,KAAK,CAACQ,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,+BAA+B,GAAG,IAAIb,+BAA+B,CAAC,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["SchedulerItemsRepository","SchedulerItemsRepositoryFactory","cache","Map","getRepository","params","cacheKey","getCacheKey","has","set","get","Date","now","toString","schedulerItemsRepositoryFactory"],"sources":["SchedulerItemsRepositoryFactory.ts"],"sourcesContent":["import type { IMetaRepository } from \"@webiny/app-utils\";\nimport type { ISchedulerListGateway } from \"~/Gateways/index.js\";\nimport {\n type ISchedulerCancelGateway,\n type ISchedulerGetGateway,\n type ISchedulerPublishGateway,\n type ISchedulerUnpublishGateway\n} from \"~/Gateways/index.js\";\nimport { SchedulerItemsRepository } from \"./SchedulerItemsRepository.js\";\nimport type { CmsModel } from \"@webiny/app-headless-cms-common/types/index.js\";\n\nexport interface ISchedulerItemsRepositoryFactoryGetParams {\n metaRepository: IMetaRepository;\n getGateway: ISchedulerGetGateway;\n listGateway: ISchedulerListGateway;\n cancelGateway: ISchedulerCancelGateway;\n publishGateway: ISchedulerPublishGateway;\n unpublishGateway: ISchedulerUnpublishGateway;\n model: Pick<CmsModel, \"modelId\">;\n}\n\nexport class SchedulerItemsRepositoryFactory {\n private readonly cache: Map<string, SchedulerItemsRepository> = new Map();\n\n public getRepository(params: ISchedulerItemsRepositoryFactoryGetParams) {\n const cacheKey = this.getCacheKey();\n\n if (!this.cache.has(cacheKey)) {\n this.cache.set(cacheKey, new SchedulerItemsRepository(params));\n }\n\n return this.cache.get(cacheKey) as SchedulerItemsRepository;\n }\n\n private getCacheKey() {\n return Date.now().toString();\n }\n}\n\nexport const schedulerItemsRepositoryFactory = new SchedulerItemsRepositoryFactory();\n"],"mappings":"AAQA,SAASA,wBAAwB;AAajC,OAAO,MAAMC,+BAA+B,CAAC;EACxBC,KAAK,GAA0C,IAAIC,GAAG,CAAC,CAAC;EAElEC,aAAaA,CAACC,MAAiD,EAAE;IACpE,MAAMC,QAAQ,GAAG,IAAI,CAACC,WAAW,CAAC,CAAC;IAEnC,IAAI,CAAC,IAAI,CAACL,KAAK,CAACM,GAAG,CAACF,QAAQ,CAAC,EAAE;MAC3B,IAAI,CAACJ,KAAK,CAACO,GAAG,CAACH,QAAQ,EAAE,IAAIN,wBAAwB,CAACK,MAAM,CAAC,CAAC;IAClE;IAEA,OAAO,IAAI,CAACH,KAAK,CAACQ,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,+BAA+B,GAAG,IAAIb,+BAA+B,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { ILoadingRepository } from "@webiny/app-utils";
|
|
2
|
-
import type { ISchedulerItemsRepository } from "./ISchedulerItemsRepository";
|
|
2
|
+
import type { ISchedulerItemsRepository } from "./ISchedulerItemsRepository.js";
|
|
3
3
|
import type { ISchedulerGetExecuteParams, ISchedulerListExecuteParams } from "../../../Gateways/index.js";
|
|
4
4
|
export declare class SchedulerItemsRepositoryWithLoading implements ISchedulerItemsRepository {
|
|
5
5
|
private readonly loadingRepository;
|
|
6
6
|
private readonly schedulerItemsRepository;
|
|
7
7
|
constructor(loadingRepository: ILoadingRepository, schedulerItemsRepository: ISchedulerItemsRepository);
|
|
8
|
-
getItems(): import("
|
|
8
|
+
getItems(): import("../../index.js").SchedulerItem[];
|
|
9
9
|
getMeta(): import("@webiny/app-utils").Meta;
|
|
10
10
|
getLoading(): Record<string, boolean>;
|
|
11
11
|
getItem(params: Omit<ISchedulerGetExecuteParams, "modelId">): 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 SchedulerItemsRepositoryWithLoading {
|
|
4
4
|
constructor(loadingRepository, schedulerItemsRepository) {
|
|
5
5
|
this.loadingRepository = loadingRepository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["makeAutoObservable","LoadingActions","SchedulerItemsRepositoryWithLoading","constructor","loadingRepository","schedulerItemsRepository","getItems","getMeta","getLoading","get","getItem","params","runCallBack","listItems","list","listMoreItems","listMore","scheduleCancelItem","id","delete","schedulePublishItem","create","scheduleUnpublishItem"],"sources":["SchedulerItemsRepositoryWithLoading.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { ILoadingRepository } from \"@webiny/app-utils\";\nimport type { ISchedulerItemsRepository } from \"./ISchedulerItemsRepository\";\nimport { LoadingActions } from \"~/types\";\nimport type { ISchedulerGetExecuteParams, ISchedulerListExecuteParams } from \"~/Gateways/index.js\";\n\nexport class SchedulerItemsRepositoryWithLoading implements ISchedulerItemsRepository {\n private readonly loadingRepository: ILoadingRepository;\n private readonly schedulerItemsRepository: ISchedulerItemsRepository;\n\n public constructor(\n loadingRepository: ILoadingRepository,\n schedulerItemsRepository: ISchedulerItemsRepository\n ) {\n this.loadingRepository = loadingRepository;\n this.schedulerItemsRepository = schedulerItemsRepository;\n makeAutoObservable(this);\n }\n\n public getItems() {\n return this.schedulerItemsRepository.getItems();\n }\n\n public getMeta() {\n return this.schedulerItemsRepository.getMeta();\n }\n\n public getLoading() {\n return this.loadingRepository.get();\n }\n\n public async getItem(params: Omit<ISchedulerGetExecuteParams, \"modelId\">) {\n await this.loadingRepository.runCallBack(\n this.schedulerItemsRepository.getItem(params),\n LoadingActions.get\n );\n }\n\n public async listItems(params: Omit<ISchedulerListExecuteParams, \"modelId\">) {\n await this.loadingRepository.runCallBack(\n this.schedulerItemsRepository.listItems(params),\n LoadingActions.list\n );\n }\n\n public async listMoreItems() {\n await this.loadingRepository.runCallBack(\n this.schedulerItemsRepository.listMoreItems(),\n LoadingActions.listMore\n );\n }\n\n public async scheduleCancelItem(id: string) {\n await this.loadingRepository.runCallBack(\n this.schedulerItemsRepository.scheduleCancelItem(id),\n LoadingActions.delete\n );\n }\n\n public async schedulePublishItem(id: string) {\n await this.loadingRepository.runCallBack(\n this.schedulerItemsRepository.scheduleCancelItem(id),\n LoadingActions.create\n );\n }\n\n public async scheduleUnpublishItem(id: string) {\n await this.loadingRepository.runCallBack(\n this.schedulerItemsRepository.scheduleCancelItem(id),\n LoadingActions.create\n );\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAGzC,SAASC,cAAc;AAGvB,OAAO,MAAMC,mCAAmC,CAAsC;EAI3EC,WAAWA,CACdC,iBAAqC,EACrCC,wBAAmD,EACrD;IACE,IAAI,CAACD,iBAAiB,GAAGA,iBAAiB;IAC1C,IAAI,CAACC,wBAAwB,GAAGA,wBAAwB;IACxDL,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEOM,QAAQA,CAAA,EAAG;IACd,OAAO,IAAI,CAACD,wBAAwB,CAACC,QAAQ,CAAC,CAAC;EACnD;EAEOC,OAAOA,CAAA,EAAG;IACb,OAAO,IAAI,CAACF,wBAAwB,CAACE,OAAO,CAAC,CAAC;EAClD;EAEOC,UAAUA,CAAA,EAAG;IAChB,OAAO,IAAI,CAACJ,iBAAiB,CAACK,GAAG,CAAC,CAAC;EACvC;EAEA,MAAaC,OAAOA,CAACC,MAAmD,EAAE;IACtE,MAAM,IAAI,CAACP,iBAAiB,CAACQ,WAAW,CACpC,IAAI,CAACP,wBAAwB,CAACK,OAAO,CAACC,MAAM,CAAC,EAC7CV,cAAc,CAACQ,GACnB,CAAC;EACL;EAEA,MAAaI,SAASA,CAACF,MAAoD,EAAE;IACzE,MAAM,IAAI,CAACP,iBAAiB,CAACQ,WAAW,CACpC,IAAI,CAACP,wBAAwB,CAACQ,SAAS,CAACF,MAAM,CAAC,EAC/CV,cAAc,CAACa,IACnB,CAAC;EACL;EAEA,MAAaC,aAAaA,CAAA,EAAG;IACzB,MAAM,IAAI,CAACX,iBAAiB,CAACQ,WAAW,CACpC,IAAI,CAACP,wBAAwB,CAACU,aAAa,CAAC,CAAC,EAC7Cd,cAAc,CAACe,QACnB,CAAC;EACL;EAEA,MAAaC,kBAAkBA,CAACC,EAAU,EAAE;IACxC,MAAM,IAAI,CAACd,iBAAiB,CAACQ,WAAW,CACpC,IAAI,CAACP,wBAAwB,CAACY,kBAAkB,CAACC,EAAE,CAAC,EACpDjB,cAAc,CAACkB,MACnB,CAAC;EACL;EAEA,MAAaC,mBAAmBA,CAACF,EAAU,EAAE;IACzC,MAAM,IAAI,CAACd,iBAAiB,CAACQ,WAAW,CACpC,IAAI,CAACP,wBAAwB,CAACY,kBAAkB,CAACC,EAAE,CAAC,EACpDjB,cAAc,CAACoB,MACnB,CAAC;EACL;EAEA,MAAaC,qBAAqBA,CAACJ,EAAU,EAAE;IAC3C,MAAM,IAAI,CAACd,iBAAiB,CAACQ,WAAW,CACpC,IAAI,CAACP,wBAAwB,CAACY,kBAAkB,CAACC,EAAE,CAAC,EACpDjB,cAAc,CAACoB,MACnB,CAAC;EACL;AACJ","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["makeAutoObservable","LoadingActions","SchedulerItemsRepositoryWithLoading","constructor","loadingRepository","schedulerItemsRepository","getItems","getMeta","getLoading","get","getItem","params","runCallBack","listItems","list","listMoreItems","listMore","scheduleCancelItem","id","delete","schedulePublishItem","create","scheduleUnpublishItem"],"sources":["SchedulerItemsRepositoryWithLoading.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { ILoadingRepository } from \"@webiny/app-utils\";\nimport type { ISchedulerItemsRepository } from \"./ISchedulerItemsRepository.js\";\nimport { LoadingActions } from \"~/types.js\";\nimport type { ISchedulerGetExecuteParams, ISchedulerListExecuteParams } from \"~/Gateways/index.js\";\n\nexport class SchedulerItemsRepositoryWithLoading implements ISchedulerItemsRepository {\n private readonly loadingRepository: ILoadingRepository;\n private readonly schedulerItemsRepository: ISchedulerItemsRepository;\n\n public constructor(\n loadingRepository: ILoadingRepository,\n schedulerItemsRepository: ISchedulerItemsRepository\n ) {\n this.loadingRepository = loadingRepository;\n this.schedulerItemsRepository = schedulerItemsRepository;\n makeAutoObservable(this);\n }\n\n public getItems() {\n return this.schedulerItemsRepository.getItems();\n }\n\n public getMeta() {\n return this.schedulerItemsRepository.getMeta();\n }\n\n public getLoading() {\n return this.loadingRepository.get();\n }\n\n public async getItem(params: Omit<ISchedulerGetExecuteParams, \"modelId\">) {\n await this.loadingRepository.runCallBack(\n this.schedulerItemsRepository.getItem(params),\n LoadingActions.get\n );\n }\n\n public async listItems(params: Omit<ISchedulerListExecuteParams, \"modelId\">) {\n await this.loadingRepository.runCallBack(\n this.schedulerItemsRepository.listItems(params),\n LoadingActions.list\n );\n }\n\n public async listMoreItems() {\n await this.loadingRepository.runCallBack(\n this.schedulerItemsRepository.listMoreItems(),\n LoadingActions.listMore\n );\n }\n\n public async scheduleCancelItem(id: string) {\n await this.loadingRepository.runCallBack(\n this.schedulerItemsRepository.scheduleCancelItem(id),\n LoadingActions.delete\n );\n }\n\n public async schedulePublishItem(id: string) {\n await this.loadingRepository.runCallBack(\n this.schedulerItemsRepository.scheduleCancelItem(id),\n LoadingActions.create\n );\n }\n\n public async scheduleUnpublishItem(id: string) {\n await this.loadingRepository.runCallBack(\n this.schedulerItemsRepository.scheduleCancelItem(id),\n LoadingActions.create\n );\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAGzC,SAASC,cAAc;AAGvB,OAAO,MAAMC,mCAAmC,CAAsC;EAI3EC,WAAWA,CACdC,iBAAqC,EACrCC,wBAAmD,EACrD;IACE,IAAI,CAACD,iBAAiB,GAAGA,iBAAiB;IAC1C,IAAI,CAACC,wBAAwB,GAAGA,wBAAwB;IACxDL,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEOM,QAAQA,CAAA,EAAG;IACd,OAAO,IAAI,CAACD,wBAAwB,CAACC,QAAQ,CAAC,CAAC;EACnD;EAEOC,OAAOA,CAAA,EAAG;IACb,OAAO,IAAI,CAACF,wBAAwB,CAACE,OAAO,CAAC,CAAC;EAClD;EAEOC,UAAUA,CAAA,EAAG;IAChB,OAAO,IAAI,CAACJ,iBAAiB,CAACK,GAAG,CAAC,CAAC;EACvC;EAEA,MAAaC,OAAOA,CAACC,MAAmD,EAAE;IACtE,MAAM,IAAI,CAACP,iBAAiB,CAACQ,WAAW,CACpC,IAAI,CAACP,wBAAwB,CAACK,OAAO,CAACC,MAAM,CAAC,EAC7CV,cAAc,CAACQ,GACnB,CAAC;EACL;EAEA,MAAaI,SAASA,CAACF,MAAoD,EAAE;IACzE,MAAM,IAAI,CAACP,iBAAiB,CAACQ,WAAW,CACpC,IAAI,CAACP,wBAAwB,CAACQ,SAAS,CAACF,MAAM,CAAC,EAC/CV,cAAc,CAACa,IACnB,CAAC;EACL;EAEA,MAAaC,aAAaA,CAAA,EAAG;IACzB,MAAM,IAAI,CAACX,iBAAiB,CAACQ,WAAW,CACpC,IAAI,CAACP,wBAAwB,CAACU,aAAa,CAAC,CAAC,EAC7Cd,cAAc,CAACe,QACnB,CAAC;EACL;EAEA,MAAaC,kBAAkBA,CAACC,EAAU,EAAE;IACxC,MAAM,IAAI,CAACd,iBAAiB,CAACQ,WAAW,CACpC,IAAI,CAACP,wBAAwB,CAACY,kBAAkB,CAACC,EAAE,CAAC,EACpDjB,cAAc,CAACkB,MACnB,CAAC;EACL;EAEA,MAAaC,mBAAmBA,CAACF,EAAU,EAAE;IACzC,MAAM,IAAI,CAACd,iBAAiB,CAACQ,WAAW,CACpC,IAAI,CAACP,wBAAwB,CAACY,kBAAkB,CAACC,EAAE,CAAC,EACpDjB,cAAc,CAACoB,MACnB,CAAC;EACL;EAEA,MAAaC,qBAAqBA,CAACJ,EAAU,EAAE;IAC3C,MAAM,IAAI,CAACd,iBAAiB,CAACQ,WAAW,CACpC,IAAI,CAACP,wBAAwB,CAACY,kBAAkB,CAACC,EAAE,CAAC,EACpDjB,cAAc,CAACoB,MACnB,CAAC;EACL;AACJ","ignoreList":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from "./ISchedulerItemsRepository";
|
|
2
|
-
export * from "./SchedulerItemsRepository";
|
|
3
|
-
export * from "./SchedulerItemsRepositoryFactory";
|
|
4
|
-
export * from "./SchedulerItemsRepositoryWithLoading";
|
|
1
|
+
export type * from "./ISchedulerItemsRepository.js";
|
|
2
|
+
export * from "./SchedulerItemsRepository.js";
|
|
3
|
+
export * from "./SchedulerItemsRepositoryFactory.js";
|
|
4
|
+
export * from "./SchedulerItemsRepositoryWithLoading.js";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./SchedulerItemsRepositoryWithLoading";
|
|
1
|
+
export * from "./SchedulerItemsRepository.js";
|
|
2
|
+
export * from "./SchedulerItemsRepositoryFactory.js";
|
|
3
|
+
export * from "./SchedulerItemsRepositoryWithLoading.js";
|
|
5
4
|
|
|
6
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./ISchedulerItemsRepository\";\nexport * from \"./SchedulerItemsRepository\";\nexport * from \"./SchedulerItemsRepositoryFactory\";\nexport * from \"./SchedulerItemsRepositoryWithLoading\";\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export type * from \"./ISchedulerItemsRepository.js\";\nexport * from \"./SchedulerItemsRepository.js\";\nexport * from \"./SchedulerItemsRepositoryFactory.js\";\nexport * from \"./SchedulerItemsRepositoryWithLoading.js\";\n"],"mappings":"AACA;AACA;AACA","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 public constructor() {\n makeAutoObservable(this);\n }\n\n public get() {\n return this.query;\n }\n\n public 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;EAEXC,WAAWA,CAAA,EAAG;IACjBH,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEOI,GAAGA,CAAA,EAAG;IACT,OAAO,IAAI,CAACF,KAAK;EACrB;EAEA,MAAaG,GAAGA,CAACH,KAAa,EAAE;IAC5B,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 public constructor() {\n makeAutoObservable(this);\n }\n\n public get() {\n return this.query;\n }\n\n public 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;EAEXC,WAAWA,CAAA,EAAG;IACjBH,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEOI,GAAGA,CAAA,EAAG;IACT,OAAO,IAAI,CAACF,KAAK;EACrB;EAEA,MAAaG,GAAGA,CAACH,KAAa,EAAE;IAC5B,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 readonly cache: Map<string, SearchRepository> = new Map();\n\n public 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;EAChBC,KAAK,GAAkC,IAAIC,GAAG,CAAC,CAAC;EAE1DC,aAAaA,CAAA,EAAG;IACnB,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 readonly cache: Map<string, SearchRepository> = new Map();\n\n public 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;EAChBC,KAAK,GAAkC,IAAIC,GAAG,CAAC,CAAC;EAE1DC,aAAaA,CAAA,EAAG;IACnB,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 { SchedulerItem } from \"~/Domain\";\n\nexport interface ISelectedItemsRepository {\n selectItems: (items: SchedulerItem[]) => Promise<void>;\n selectAllItems: () => Promise<void>;\n unselectAllItems: () => Promise<void>;\n getSelectedItems: () => SchedulerItem[];\n getSelectedAllItems: () => boolean;\n}\n"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["ISelectedItemsRepository.ts"],"sourcesContent":["import type { SchedulerItem } from \"~/Domain/index.js\";\n\nexport interface ISelectedItemsRepository {\n selectItems: (items: SchedulerItem[]) => Promise<void>;\n selectAllItems: () => Promise<void>;\n unselectAllItems: () => Promise<void>;\n getSelectedItems: () => SchedulerItem[];\n getSelectedAllItems: () => boolean;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SchedulerItem } from "
|
|
2
|
-
import type { ISelectedItemsRepository } from "./ISelectedItemsRepository";
|
|
1
|
+
import type { SchedulerItem } 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 { SchedulerItem } from \"~/Domain\";\nimport type { ISelectedItemsRepository } from \"./ISelectedItemsRepository\";\n\nexport class SelectedItemsRepository implements ISelectedItemsRepository {\n private items: SchedulerItem[] = [];\n private selectedAll = false;\n\n public constructor() {\n makeAutoObservable(this);\n }\n\n public getSelectedItems() {\n return this.items;\n }\n\n public getSelectedAllItems() {\n return this.selectedAll;\n }\n\n public async selectItems(items: SchedulerItem[]) {\n this.items = items;\n this.selectedAll = false;\n }\n\n public async selectAllItems() {\n this.selectedAll = true;\n }\n\n public 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,GAAoB,EAAE;EAC3BC,WAAW,GAAG,KAAK;EAEpBC,WAAWA,CAAA,EAAG;IACjBJ,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEOK,gBAAgBA,CAAA,EAAG;IACtB,OAAO,IAAI,CAACH,KAAK;EACrB;EAEOI,mBAAmBA,CAAA,EAAG;IACzB,OAAO,IAAI,CAACH,WAAW;EAC3B;EAEA,MAAaI,WAAWA,CAACL,KAAsB,EAAE;IAC7C,IAAI,CAACA,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACC,WAAW,GAAG,KAAK;EAC5B;EAEA,MAAaK,cAAcA,CAAA,EAAG;IAC1B,IAAI,CAACL,WAAW,GAAG,IAAI;EAC3B;EAEA,MAAaM,gBAAgBA,CAAA,EAAG;IAC5B,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 { SchedulerItem } from \"~/Domain/index.js\";\nimport type { ISelectedItemsRepository } from \"./ISelectedItemsRepository.js\";\n\nexport class SelectedItemsRepository implements ISelectedItemsRepository {\n private items: SchedulerItem[] = [];\n private selectedAll = false;\n\n public constructor() {\n makeAutoObservable(this);\n }\n\n public getSelectedItems() {\n return this.items;\n }\n\n public getSelectedAllItems() {\n return this.selectedAll;\n }\n\n public async selectItems(items: SchedulerItem[]) {\n this.items = items;\n this.selectedAll = false;\n }\n\n public async selectAllItems() {\n this.selectedAll = true;\n }\n\n public 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,GAAoB,EAAE;EAC3BC,WAAW,GAAG,KAAK;EAEpBC,WAAWA,CAAA,EAAG;IACjBJ,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEOK,gBAAgBA,CAAA,EAAG;IACtB,OAAO,IAAI,CAACH,KAAK;EACrB;EAEOI,mBAAmBA,CAAA,EAAG;IACzB,OAAO,IAAI,CAACH,WAAW;EAC3B;EAEA,MAAaI,WAAWA,CAACL,KAAsB,EAAE;IAC7C,IAAI,CAACA,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACC,WAAW,GAAG,KAAK;EAC5B;EAEA,MAAaK,cAAcA,CAAA,EAAG;IAC1B,IAAI,CAACL,WAAW,GAAG,IAAI;EAC3B;EAEA,MAAaM,gBAAgBA,CAAA,EAAG;IAC5B,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 readonly cache: Map<string, SelectedItemsRepository> = new Map();\n\n public 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;EACvBC,KAAK,GAAyC,IAAIC,GAAG,CAAC,CAAC;EAEjEC,aAAaA,CAAA,EAAG;IACnB,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 readonly cache: Map<string, SelectedItemsRepository> = new Map();\n\n public 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;EACvBC,KAAK,GAAyC,IAAIC,GAAG,CAAC,CAAC;EAEjEC,aAAaA,CAAA,EAAG;IACnB,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,4 +1,4 @@
|
|
|
1
|
-
export * from "./SelectedItems";
|
|
2
|
-
export * from "./Sorting";
|
|
3
|
-
export * from "./Search";
|
|
4
|
-
export * from "./SchedulerItems";
|
|
1
|
+
export * from "./SelectedItems/index.js";
|
|
2
|
+
export * from "./Sorting/index.js";
|
|
3
|
+
export * from "./Search/index.js";
|
|
4
|
+
export * from "./SchedulerItems/index.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from "./SelectedItems";
|
|
2
|
-
export * from "./Sorting";
|
|
3
|
-
export * from "./Search";
|
|
4
|
-
export * from "./SchedulerItems";
|
|
1
|
+
export * from "./SelectedItems/index.js";
|
|
2
|
+
export * from "./Sorting/index.js";
|
|
3
|
+
export * from "./Search/index.js";
|
|
4
|
+
export * from "./SchedulerItems/index.js";
|
|
5
5
|
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./SelectedItems\";\nexport * from \"./Sorting\";\nexport * from \"./Search\";\nexport * from \"./SchedulerItems\";\n"],"mappings":"AAAA;AACA;AACA;AACA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./SelectedItems/index.js\";\nexport * from \"./Sorting/index.js\";\nexport * from \"./Search/index.js\";\nexport * from \"./SchedulerItems/index.js\";\n"],"mappings":"AAAA;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":[]}
|
|
@@ -5,14 +5,13 @@ export interface ISchedulerListExecuteParamsWhere {
|
|
|
5
5
|
targetId?: string;
|
|
6
6
|
title_contains?: string;
|
|
7
7
|
title_not_contains?: string;
|
|
8
|
-
targetEntryId?: string;
|
|
9
8
|
type?: ScheduleType;
|
|
10
9
|
scheduledBy?: string;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
scheduledFor?: Date;
|
|
11
|
+
scheduledFor_gte?: Date;
|
|
12
|
+
scheduledFor_lte?: Date;
|
|
14
13
|
}
|
|
15
|
-
export type ISchedulerListExecuteParamsSort = "
|
|
14
|
+
export type ISchedulerListExecuteParamsSort = "scheduledFor_ASC" | "scheduledFor_DESC";
|
|
16
15
|
export interface ISchedulerListExecuteParams {
|
|
17
16
|
modelId: string;
|
|
18
17
|
where?: ISchedulerListExecuteParamsWhere;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["SchedulerListGateway.ts"],"sourcesContent":["import type { CmsMetaResponse } from \"@webiny/app-headless-cms-common/types/index.js\";\nimport type { SchedulerEntry } from \"~/types.js\";\nimport type { ScheduleType } from \"~/types.js\";\n\nexport interface ISchedulerListExecuteParamsWhere {\n targetId?: string;\n title_contains?: string;\n title_not_contains?: string;\n
|
|
1
|
+
{"version":3,"names":[],"sources":["SchedulerListGateway.ts"],"sourcesContent":["import type { CmsMetaResponse } from \"@webiny/app-headless-cms-common/types/index.js\";\nimport type { SchedulerEntry } from \"~/types.js\";\nimport type { ScheduleType } from \"~/types.js\";\n\nexport interface ISchedulerListExecuteParamsWhere {\n targetId?: string;\n title_contains?: string;\n title_not_contains?: string;\n type?: ScheduleType;\n scheduledBy?: string;\n scheduledFor?: Date;\n scheduledFor_gte?: Date;\n scheduledFor_lte?: Date;\n}\n\nexport type ISchedulerListExecuteParamsSort = \"scheduledFor_ASC\" | \"scheduledFor_DESC\";\n\nexport interface ISchedulerListExecuteParams {\n modelId: string;\n where?: ISchedulerListExecuteParamsWhere;\n sort?: ISchedulerListExecuteParamsSort[];\n limit?: number;\n after?: string;\n}\n\nexport interface ISchedulerListGatewayResponse {\n items: SchedulerEntry[];\n meta: CmsMetaResponse;\n}\n\nexport interface ISchedulerListGateway {\n execute(params: ISchedulerListExecuteParams): Promise<ISchedulerListGatewayResponse>;\n}\n"],"mappings":"","ignoreList":[]}
|
package/Gateways/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
1
|
+
export type { IScheduleCancelExecuteParams, ISchedulerCancelGateway } from "./SchedulerCancelGateway.js";
|
|
2
|
+
export type { ISchedulerGetExecuteParams, ISchedulerGetGateway, ISchedulerGetGatewayResponse } from "./SchedulerGetGateway.js";
|
|
3
|
+
export type { ISchedulerListExecuteParams, ISchedulerListExecuteParamsSort, ISchedulerListExecuteParamsWhere, ISchedulerListGateway, ISchedulerListGatewayResponse } from "./SchedulerListGateway.js";
|
|
4
|
+
export type { ISchedulerPublishExecuteParams, ISchedulerPublishGateway, ISchedulerPublishGatewayResponse } from "./SchedulerPublishGateway.js";
|
|
5
|
+
export type { ISchedulerUnpublishExecuteParams, ISchedulerUnpublishGateway, ISchedulerUnpublishGatewayResponse } from "./SchedulerUnpublishGateway.js";
|
package/Gateways/index.js
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export * from "./SchedulerGetGateway.js";
|
|
3
|
-
export * from "./SchedulerListGateway.js";
|
|
4
|
-
export * from "./SchedulerPublishGateway.js";
|
|
5
|
-
export * from "./SchedulerUnpublishGateway.js";
|
|
1
|
+
export {};
|
|
6
2
|
|
|
7
3
|
//# sourceMappingURL=index.js.map
|
package/Gateways/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.tsx"],"sourcesContent":["export
|
|
1
|
+
{"version":3,"names":[],"sources":["index.tsx"],"sourcesContent":["export type {\n IScheduleCancelExecuteParams,\n ISchedulerCancelGateway\n} from \"./SchedulerCancelGateway.js\";\nexport type {\n ISchedulerGetExecuteParams,\n ISchedulerGetGateway,\n ISchedulerGetGatewayResponse\n} from \"./SchedulerGetGateway.js\";\nexport type {\n ISchedulerListExecuteParams,\n ISchedulerListExecuteParamsSort,\n ISchedulerListExecuteParamsWhere,\n ISchedulerListGateway,\n ISchedulerListGatewayResponse\n} from \"./SchedulerListGateway.js\";\nexport type {\n ISchedulerPublishExecuteParams,\n ISchedulerPublishGateway,\n ISchedulerPublishGatewayResponse\n} from \"./SchedulerPublishGateway.js\";\nexport type {\n ISchedulerUnpublishExecuteParams,\n ISchedulerUnpublishGateway,\n ISchedulerUnpublishGatewayResponse\n} from \"./SchedulerUnpublishGateway.js\";\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { Sorting } from "@webiny/app-utils";
|
|
3
|
-
import type { ISchedulerCancelGateway, ISchedulerGetGateway, ISchedulerListGateway, ISchedulerPublishGateway, ISchedulerUnpublishGateway } from "../../Gateways";
|
|
3
|
+
import type { ISchedulerCancelGateway, ISchedulerGetGateway, ISchedulerListGateway, ISchedulerPublishGateway, ISchedulerUnpublishGateway } from "../../Gateways/index.js";
|
|
4
4
|
import type { CmsModel } from "@webiny/app-headless-cms-common/types/index.js";
|
|
5
5
|
export interface SchedulerProps {
|
|
6
6
|
model: Pick<CmsModel, "modelId">;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { useEffect, useMemo } from "react";
|
|
2
2
|
import { observer } from "mobx-react-lite";
|
|
3
3
|
import { loadingRepositoryFactory, metaRepositoryFactory, sortRepositoryFactory } from "@webiny/app-utils";
|
|
4
|
-
import { SchedulerProvider } from "../hooks";
|
|
5
|
-
import { SchedulerOverlay } from "../components/SchedulerOverlay";
|
|
6
|
-
import { SchedulerPresenter } from "./SchedulerPresenter";
|
|
7
|
-
import { schedulerItemsRepositoryFactory, SchedulerItemsRepositoryWithLoading, searchRepositoryFactory, selectedItemsRepositoryFactory, SortingRepositoryWithDefaults } from "../../Domain";
|
|
8
|
-
import { SchedulerControllers } from "./SchedulerControllers";
|
|
4
|
+
import { SchedulerProvider } from "../hooks/index.js";
|
|
5
|
+
import { SchedulerOverlay } from "../components/SchedulerOverlay/index.js";
|
|
6
|
+
import { SchedulerPresenter } from "./SchedulerPresenter.js";
|
|
7
|
+
import { schedulerItemsRepositoryFactory, SchedulerItemsRepositoryWithLoading, searchRepositoryFactory, selectedItemsRepositoryFactory, SortingRepositoryWithDefaults } from "../../Domain/index.js";
|
|
8
|
+
import { SchedulerControllers } from "./SchedulerControllers.js";
|
|
9
9
|
export const Scheduler = observer(props => {
|
|
10
10
|
const metaRepository = useMemo(() => {
|
|
11
11
|
return metaRepositoryFactory.getRepository();
|