@webiny/app-headless-cms-scheduler 6.0.0-rc.7 → 6.1.0-beta.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/components/Browser/BrowserConfig.d.ts +2 -0
- package/components/Browser/BrowserConfig.js +15 -0
- package/components/Browser/BrowserConfig.js.map +1 -0
- package/components/Browser/MenuItem.d.ts +2 -0
- package/components/Browser/MenuItem.js +53 -0
- package/components/Browser/MenuItem.js.map +1 -0
- package/components/Editor/EditorConfig.d.ts +2 -0
- package/components/Editor/EditorConfig.js +15 -0
- package/components/Editor/EditorConfig.js.map +1 -0
- package/components/Editor/MenuItem.d.ts +2 -0
- package/components/Editor/MenuItem.js +49 -0
- package/components/Editor/MenuItem.js.map +1 -0
- package/components/Sidebar/SchedulerButton.d.ts +5 -0
- package/components/Sidebar/SchedulerButton.js +17 -0
- package/components/Sidebar/SchedulerButton.js.map +1 -0
- package/components/Sidebar/Sidebar.d.ts +2 -0
- package/components/Sidebar/Sidebar.js +41 -0
- package/components/Sidebar/Sidebar.js.map +1 -0
- package/components/index.d.ts +3 -0
- package/components/index.js +5 -0
- package/components/index.js.map +1 -0
- package/hooks/usePermissions.d.ts +4 -0
- package/hooks/usePermissions.js +17 -0
- package/hooks/usePermissions.js.map +1 -0
- package/index.d.ts +2 -2
- package/index.js +5 -1
- package/index.js.map +1 -1
- package/package.json +9 -23
- package/utils/index.d.ts +1 -0
- package/utils/index.js +3 -0
- package/utils/index.js.map +1 -0
- package/utils/namespace.d.ts +7 -0
- package/utils/namespace.js +11 -0
- package/utils/namespace.js.map +1 -0
- package/Domain/Models/SchedulerItem/SchedulerItem.d.ts +0 -14
- package/Domain/Models/SchedulerItem/SchedulerItem.js +0 -17
- package/Domain/Models/SchedulerItem/SchedulerItem.js.map +0 -1
- package/Domain/Models/SchedulerItem/index.d.ts +0 -1
- package/Domain/Models/SchedulerItem/index.js +0 -3
- package/Domain/Models/SchedulerItem/index.js.map +0 -1
- package/Domain/Models/index.d.ts +0 -1
- package/Domain/Models/index.js +0 -3
- package/Domain/Models/index.js.map +0 -1
- package/Domain/Repositories/SchedulerItems/ISchedulerItemsRepository.d.ts +0 -14
- package/Domain/Repositories/SchedulerItems/ISchedulerItemsRepository.js +0 -3
- package/Domain/Repositories/SchedulerItems/ISchedulerItemsRepository.js.map +0 -1
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepository.d.ts +0 -37
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepository.js +0 -125
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepository.js.map +0 -1
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryFactory.d.ts +0 -20
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryFactory.js +0 -17
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryFactory.js.map +0 -1
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryWithLoading.d.ts +0 -17
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryWithLoading.js +0 -38
- package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryWithLoading.js.map +0 -1
- package/Domain/Repositories/SchedulerItems/index.d.ts +0 -4
- package/Domain/Repositories/SchedulerItems/index.js +0 -5
- package/Domain/Repositories/SchedulerItems/index.js.map +0 -1
- package/Domain/Repositories/Search/ISearchRepository.d.ts +0 -4
- package/Domain/Repositories/Search/ISearchRepository.js +0 -3
- package/Domain/Repositories/Search/ISearchRepository.js.map +0 -1
- package/Domain/Repositories/Search/SearchRepository.d.ts +0 -7
- package/Domain/Repositories/Search/SearchRepository.js +0 -15
- package/Domain/Repositories/Search/SearchRepository.js.map +0 -1
- package/Domain/Repositories/Search/SearchRepositoryFactory.d.ts +0 -7
- package/Domain/Repositories/Search/SearchRepositoryFactory.js +0 -17
- package/Domain/Repositories/Search/SearchRepositoryFactory.js.map +0 -1
- package/Domain/Repositories/Search/index.d.ts +0 -3
- package/Domain/Repositories/Search/index.js +0 -4
- package/Domain/Repositories/Search/index.js.map +0 -1
- package/Domain/Repositories/SelectedItems/ISelectedItemsRepository.d.ts +0 -8
- package/Domain/Repositories/SelectedItems/ISelectedItemsRepository.js +0 -3
- package/Domain/Repositories/SelectedItems/ISelectedItemsRepository.js.map +0 -1
- package/Domain/Repositories/SelectedItems/SelectedItemsRepository.d.ts +0 -12
- package/Domain/Repositories/SelectedItems/SelectedItemsRepository.js +0 -27
- package/Domain/Repositories/SelectedItems/SelectedItemsRepository.js.map +0 -1
- package/Domain/Repositories/SelectedItems/SelectedItemsRepositoryFactory.d.ts +0 -7
- package/Domain/Repositories/SelectedItems/SelectedItemsRepositoryFactory.js +0 -17
- package/Domain/Repositories/SelectedItems/SelectedItemsRepositoryFactory.js.map +0 -1
- package/Domain/Repositories/SelectedItems/index.d.ts +0 -3
- package/Domain/Repositories/SelectedItems/index.js +0 -4
- package/Domain/Repositories/SelectedItems/index.js.map +0 -1
- package/Domain/Repositories/Sorting/SortingRepositoryWithDefaults.d.ts +0 -8
- package/Domain/Repositories/Sorting/SortingRepositoryWithDefaults.js +0 -22
- package/Domain/Repositories/Sorting/SortingRepositoryWithDefaults.js.map +0 -1
- package/Domain/Repositories/Sorting/index.d.ts +0 -1
- package/Domain/Repositories/Sorting/index.js +0 -3
- package/Domain/Repositories/Sorting/index.js.map +0 -1
- package/Domain/Repositories/index.d.ts +0 -4
- package/Domain/Repositories/index.js +0 -6
- package/Domain/Repositories/index.js.map +0 -1
- package/Domain/index.d.ts +0 -2
- package/Domain/index.js +0 -4
- package/Domain/index.js.map +0 -1
- package/Gateways/SchedulerCancelGateway.d.ts +0 -7
- package/Gateways/SchedulerCancelGateway.js +0 -3
- package/Gateways/SchedulerCancelGateway.js.map +0 -1
- package/Gateways/SchedulerGetGateway.d.ts +0 -9
- package/Gateways/SchedulerGetGateway.js +0 -3
- package/Gateways/SchedulerGetGateway.js.map +0 -1
- package/Gateways/SchedulerListGateway.d.ts +0 -28
- package/Gateways/SchedulerListGateway.js +0 -3
- package/Gateways/SchedulerListGateway.js.map +0 -1
- package/Gateways/SchedulerPublishGateway.d.ts +0 -12
- package/Gateways/SchedulerPublishGateway.js +0 -3
- package/Gateways/SchedulerPublishGateway.js.map +0 -1
- package/Gateways/SchedulerUnpublishGateway.d.ts +0 -12
- package/Gateways/SchedulerUnpublishGateway.js +0 -3
- package/Gateways/SchedulerUnpublishGateway.js.map +0 -1
- package/Gateways/index.d.ts +0 -5
- package/Gateways/index.js +0 -3
- package/Gateways/index.js.map +0 -1
- package/Presentation/Scheduler/Scheduler.d.ts +0 -18
- package/Presentation/Scheduler/Scheduler.js +0 -66
- package/Presentation/Scheduler/Scheduler.js.map +0 -1
- package/Presentation/Scheduler/SchedulerControllers.d.ts +0 -30
- package/Presentation/Scheduler/SchedulerControllers.js +0 -72
- package/Presentation/Scheduler/SchedulerControllers.js.map +0 -1
- package/Presentation/Scheduler/SchedulerPresenter.d.ts +0 -32
- package/Presentation/Scheduler/SchedulerPresenter.js +0 -44
- package/Presentation/Scheduler/SchedulerPresenter.js.map +0 -1
- package/Presentation/Scheduler/controllers/CancelItem/CancelItemController.d.ts +0 -7
- package/Presentation/Scheduler/controllers/CancelItem/CancelItemController.js +0 -11
- package/Presentation/Scheduler/controllers/CancelItem/CancelItemController.js.map +0 -1
- package/Presentation/Scheduler/controllers/CancelItem/ICancelItemController.d.ts +0 -3
- package/Presentation/Scheduler/controllers/CancelItem/ICancelItemController.js +0 -3
- package/Presentation/Scheduler/controllers/CancelItem/ICancelItemController.js.map +0 -1
- package/Presentation/Scheduler/controllers/CancelItem/index.d.ts +0 -2
- package/Presentation/Scheduler/controllers/CancelItem/index.js +0 -3
- package/Presentation/Scheduler/controllers/CancelItem/index.js.map +0 -1
- package/Presentation/Scheduler/controllers/GetItem/GetItemController.d.ts +0 -8
- package/Presentation/Scheduler/controllers/GetItem/GetItemController.js +0 -11
- package/Presentation/Scheduler/controllers/GetItem/GetItemController.js.map +0 -1
- package/Presentation/Scheduler/controllers/GetItem/IGetItemController.d.ts +0 -4
- package/Presentation/Scheduler/controllers/GetItem/IGetItemController.js +0 -3
- package/Presentation/Scheduler/controllers/GetItem/IGetItemController.js.map +0 -1
- package/Presentation/Scheduler/controllers/GetItem/index.d.ts +0 -2
- package/Presentation/Scheduler/controllers/GetItem/index.js +0 -3
- package/Presentation/Scheduler/controllers/GetItem/index.js.map +0 -1
- package/Presentation/Scheduler/controllers/ListItems/IListItemsController.d.ts +0 -4
- package/Presentation/Scheduler/controllers/ListItems/IListItemsController.js +0 -3
- package/Presentation/Scheduler/controllers/ListItems/IListItemsController.js.map +0 -1
- package/Presentation/Scheduler/controllers/ListItems/ListItemsController.d.ts +0 -8
- package/Presentation/Scheduler/controllers/ListItems/ListItemsController.js +0 -11
- package/Presentation/Scheduler/controllers/ListItems/ListItemsController.js.map +0 -1
- package/Presentation/Scheduler/controllers/ListItems/index.d.ts +0 -2
- package/Presentation/Scheduler/controllers/ListItems/index.js +0 -3
- package/Presentation/Scheduler/controllers/ListItems/index.js.map +0 -1
- package/Presentation/Scheduler/controllers/ListMoreItems/IListMoreItemsController.d.ts +0 -3
- package/Presentation/Scheduler/controllers/ListMoreItems/IListMoreItemsController.js +0 -3
- package/Presentation/Scheduler/controllers/ListMoreItems/IListMoreItemsController.js.map +0 -1
- package/Presentation/Scheduler/controllers/ListMoreItems/ListMoreItemsController.d.ts +0 -7
- package/Presentation/Scheduler/controllers/ListMoreItems/ListMoreItemsController.js +0 -11
- package/Presentation/Scheduler/controllers/ListMoreItems/ListMoreItemsController.js.map +0 -1
- package/Presentation/Scheduler/controllers/ListMoreItems/index.d.ts +0 -2
- package/Presentation/Scheduler/controllers/ListMoreItems/index.js +0 -3
- package/Presentation/Scheduler/controllers/ListMoreItems/index.js.map +0 -1
- package/Presentation/Scheduler/controllers/PublishItem/IPublishItemController.d.ts +0 -3
- package/Presentation/Scheduler/controllers/PublishItem/IPublishItemController.js +0 -3
- package/Presentation/Scheduler/controllers/PublishItem/IPublishItemController.js.map +0 -1
- package/Presentation/Scheduler/controllers/PublishItem/PublishItemController.d.ts +0 -7
- package/Presentation/Scheduler/controllers/PublishItem/PublishItemController.js +0 -11
- package/Presentation/Scheduler/controllers/PublishItem/PublishItemController.js.map +0 -1
- package/Presentation/Scheduler/controllers/PublishItem/index.d.ts +0 -2
- package/Presentation/Scheduler/controllers/PublishItem/index.js +0 -3
- package/Presentation/Scheduler/controllers/PublishItem/index.js.map +0 -1
- package/Presentation/Scheduler/controllers/SearchItems/ISearchItemsController.d.ts +0 -3
- package/Presentation/Scheduler/controllers/SearchItems/ISearchItemsController.js +0 -3
- package/Presentation/Scheduler/controllers/SearchItems/ISearchItemsController.js.map +0 -1
- package/Presentation/Scheduler/controllers/SearchItems/SearchItemsController.d.ts +0 -8
- package/Presentation/Scheduler/controllers/SearchItems/SearchItemsController.js +0 -14
- package/Presentation/Scheduler/controllers/SearchItems/SearchItemsController.js.map +0 -1
- package/Presentation/Scheduler/controllers/SearchItems/index.d.ts +0 -2
- package/Presentation/Scheduler/controllers/SearchItems/index.js +0 -3
- package/Presentation/Scheduler/controllers/SearchItems/index.js.map +0 -1
- package/Presentation/Scheduler/controllers/SelectAllItems/ISelectAllItemsController.d.ts +0 -3
- package/Presentation/Scheduler/controllers/SelectAllItems/ISelectAllItemsController.js +0 -3
- package/Presentation/Scheduler/controllers/SelectAllItems/ISelectAllItemsController.js.map +0 -1
- package/Presentation/Scheduler/controllers/SelectAllItems/SelectAllItemsController.d.ts +0 -7
- package/Presentation/Scheduler/controllers/SelectAllItems/SelectAllItemsController.js +0 -11
- package/Presentation/Scheduler/controllers/SelectAllItems/SelectAllItemsController.js.map +0 -1
- package/Presentation/Scheduler/controllers/SelectAllItems/index.d.ts +0 -2
- package/Presentation/Scheduler/controllers/SelectAllItems/index.js +0 -3
- package/Presentation/Scheduler/controllers/SelectAllItems/index.js.map +0 -1
- package/Presentation/Scheduler/controllers/SelectItems/ISelectItemsController.d.ts +0 -4
- package/Presentation/Scheduler/controllers/SelectItems/ISelectItemsController.js +0 -3
- package/Presentation/Scheduler/controllers/SelectItems/ISelectItemsController.js.map +0 -1
- package/Presentation/Scheduler/controllers/SelectItems/SelectItemsController.d.ts +0 -8
- package/Presentation/Scheduler/controllers/SelectItems/SelectItemsController.js +0 -13
- package/Presentation/Scheduler/controllers/SelectItems/SelectItemsController.js.map +0 -1
- package/Presentation/Scheduler/controllers/SelectItems/index.d.ts +0 -2
- package/Presentation/Scheduler/controllers/SelectItems/index.js +0 -3
- package/Presentation/Scheduler/controllers/SelectItems/index.js.map +0 -1
- package/Presentation/Scheduler/controllers/SortItems/ISortItemsController.d.ts +0 -4
- package/Presentation/Scheduler/controllers/SortItems/ISortItemsController.js +0 -3
- package/Presentation/Scheduler/controllers/SortItems/ISortItemsController.js.map +0 -1
- package/Presentation/Scheduler/controllers/SortItems/SortItemsController.d.ts +0 -9
- package/Presentation/Scheduler/controllers/SortItems/SortItemsController.js +0 -19
- package/Presentation/Scheduler/controllers/SortItems/SortItemsController.js.map +0 -1
- package/Presentation/Scheduler/controllers/SortItems/index.d.ts +0 -2
- package/Presentation/Scheduler/controllers/SortItems/index.js +0 -3
- package/Presentation/Scheduler/controllers/SortItems/index.js.map +0 -1
- package/Presentation/Scheduler/controllers/UnpublishItem/IUnpublishItemController.d.ts +0 -3
- package/Presentation/Scheduler/controllers/UnpublishItem/IUnpublishItemController.js +0 -3
- package/Presentation/Scheduler/controllers/UnpublishItem/IUnpublishItemController.js.map +0 -1
- package/Presentation/Scheduler/controllers/UnpublishItem/UnpublishItemController.d.ts +0 -7
- package/Presentation/Scheduler/controllers/UnpublishItem/UnpublishItemController.js +0 -11
- package/Presentation/Scheduler/controllers/UnpublishItem/UnpublishItemController.js.map +0 -1
- package/Presentation/Scheduler/controllers/UnpublishItem/index.d.ts +0 -2
- package/Presentation/Scheduler/controllers/UnpublishItem/index.js +0 -3
- package/Presentation/Scheduler/controllers/UnpublishItem/index.js.map +0 -1
- package/Presentation/Scheduler/controllers/UnselectAllItems/IUnselectAllItemsController.d.ts +0 -3
- package/Presentation/Scheduler/controllers/UnselectAllItems/IUnselectAllItemsController.js +0 -3
- package/Presentation/Scheduler/controllers/UnselectAllItems/IUnselectAllItemsController.js.map +0 -1
- package/Presentation/Scheduler/controllers/UnselectAllItems/UnselectAllItemsController.d.ts +0 -7
- package/Presentation/Scheduler/controllers/UnselectAllItems/UnselectAllItemsController.js +0 -11
- package/Presentation/Scheduler/controllers/UnselectAllItems/UnselectAllItemsController.js.map +0 -1
- package/Presentation/Scheduler/controllers/UnselectAllItems/index.d.ts +0 -2
- package/Presentation/Scheduler/controllers/UnselectAllItems/index.js +0 -3
- package/Presentation/Scheduler/controllers/UnselectAllItems/index.js.map +0 -1
- package/Presentation/Scheduler/controllers/index.d.ts +0 -11
- package/Presentation/Scheduler/controllers/index.js +0 -13
- package/Presentation/Scheduler/controllers/index.js.map +0 -1
- package/Presentation/Scheduler/index.d.ts +0 -1
- package/Presentation/Scheduler/index.js +0 -3
- package/Presentation/Scheduler/index.js.map +0 -1
- package/Presentation/SchedulerConfigs/SchedulerConfigs.d.ts +0 -2
- package/Presentation/SchedulerConfigs/SchedulerConfigs.js +0 -55
- package/Presentation/SchedulerConfigs/SchedulerConfigs.js.map +0 -1
- package/Presentation/SchedulerConfigs/index.d.ts +0 -1
- package/Presentation/SchedulerConfigs/index.js +0 -3
- package/Presentation/SchedulerConfigs/index.js.map +0 -1
- package/Presentation/SchedulerRenderer/SchedulerRenderer.d.ts +0 -6
- package/Presentation/SchedulerRenderer/SchedulerRenderer.js +0 -21
- package/Presentation/SchedulerRenderer/SchedulerRenderer.js.map +0 -1
- package/Presentation/SchedulerRenderer/index.d.ts +0 -1
- package/Presentation/SchedulerRenderer/index.js +0 -3
- package/Presentation/SchedulerRenderer/index.js.map +0 -1
- package/Presentation/abstractions/ISchedulerControllers.d.ts +0 -14
- package/Presentation/abstractions/ISchedulerControllers.js +0 -3
- package/Presentation/abstractions/ISchedulerControllers.js.map +0 -1
- package/Presentation/abstractions/ISchedulerPresenter.d.ts +0 -20
- package/Presentation/abstractions/ISchedulerPresenter.js +0 -3
- package/Presentation/abstractions/ISchedulerPresenter.js.map +0 -1
- package/Presentation/abstractions/index.d.ts +0 -2
- package/Presentation/abstractions/index.js +0 -3
- package/Presentation/abstractions/index.js.map +0 -1
- package/Presentation/components/Actions/CancelItem/CancelItem.d.ts +0 -2
- package/Presentation/components/Actions/CancelItem/CancelItem.js +0 -24
- package/Presentation/components/Actions/CancelItem/CancelItem.js.map +0 -1
- package/Presentation/components/Actions/CancelItem/index.d.ts +0 -1
- package/Presentation/components/Actions/CancelItem/index.js +0 -3
- package/Presentation/components/Actions/CancelItem/index.js.map +0 -1
- package/Presentation/components/Actions/index.d.ts +0 -1
- package/Presentation/components/Actions/index.js +0 -3
- package/Presentation/components/Actions/index.js.map +0 -1
- package/Presentation/components/BottomInfoBar/BottomInfoBar.d.ts +0 -2
- package/Presentation/components/BottomInfoBar/BottomInfoBar.js +0 -20
- package/Presentation/components/BottomInfoBar/BottomInfoBar.js.map +0 -1
- package/Presentation/components/BottomInfoBar/BottomInfoBar.styled.d.ts +0 -20
- package/Presentation/components/BottomInfoBar/BottomInfoBar.styled.js +0 -69
- package/Presentation/components/BottomInfoBar/BottomInfoBar.styled.js.map +0 -1
- package/Presentation/components/BottomInfoBar/ListMeta.d.ts +0 -7
- package/Presentation/components/BottomInfoBar/ListMeta.js +0 -12
- package/Presentation/components/BottomInfoBar/ListMeta.js.map +0 -1
- package/Presentation/components/BottomInfoBar/ListStatus.d.ts +0 -5
- package/Presentation/components/BottomInfoBar/ListStatus.js +0 -16
- package/Presentation/components/BottomInfoBar/ListStatus.js.map +0 -1
- package/Presentation/components/BottomInfoBar/index.d.ts +0 -1
- package/Presentation/components/BottomInfoBar/index.js +0 -3
- package/Presentation/components/BottomInfoBar/index.js.map +0 -1
- package/Presentation/components/Cells/CellActions/CellActions.d.ts +0 -2
- package/Presentation/components/Cells/CellActions/CellActions.js +0 -23
- package/Presentation/components/Cells/CellActions/CellActions.js.map +0 -1
- package/Presentation/components/Cells/CellActions/index.d.ts +0 -1
- package/Presentation/components/Cells/CellActions/index.js +0 -3
- package/Presentation/components/Cells/CellActions/index.js.map +0 -1
- package/Presentation/components/Cells/CellRevision/CellRevision.d.ts +0 -2
- package/Presentation/components/Cells/CellRevision/CellRevision.js +0 -20
- package/Presentation/components/Cells/CellRevision/CellRevision.js.map +0 -1
- package/Presentation/components/Cells/CellRevision/CellRevision.styled.d.ts +0 -11
- package/Presentation/components/Cells/CellRevision/CellRevision.styled.js +0 -44
- package/Presentation/components/Cells/CellRevision/CellRevision.styled.js.map +0 -1
- package/Presentation/components/Cells/CellRevision/index.d.ts +0 -1
- package/Presentation/components/Cells/CellRevision/index.js +0 -3
- package/Presentation/components/Cells/CellRevision/index.js.map +0 -1
- package/Presentation/components/Cells/CellScheduledBy/CellScheduledBy.d.ts +0 -2
- package/Presentation/components/Cells/CellScheduledBy/CellScheduledBy.js +0 -13
- package/Presentation/components/Cells/CellScheduledBy/CellScheduledBy.js.map +0 -1
- package/Presentation/components/Cells/CellScheduledBy/index.d.ts +0 -1
- package/Presentation/components/Cells/CellScheduledBy/index.js +0 -3
- package/Presentation/components/Cells/CellScheduledBy/index.js.map +0 -1
- package/Presentation/components/Cells/CellScheduledOn/CellScheduledOn.d.ts +0 -24
- package/Presentation/components/Cells/CellScheduledOn/CellScheduledOn.js +0 -24
- package/Presentation/components/Cells/CellScheduledOn/CellScheduledOn.js.map +0 -1
- package/Presentation/components/Cells/CellScheduledOn/index.d.ts +0 -1
- package/Presentation/components/Cells/CellScheduledOn/index.js +0 -3
- package/Presentation/components/Cells/CellScheduledOn/index.js.map +0 -1
- package/Presentation/components/Cells/CellTitle/CellTitle.d.ts +0 -2
- package/Presentation/components/Cells/CellTitle/CellTitle.js +0 -17
- package/Presentation/components/Cells/CellTitle/CellTitle.js.map +0 -1
- package/Presentation/components/Cells/CellTitle/CellTitle.styled.d.ts +0 -11
- package/Presentation/components/Cells/CellTitle/CellTitle.styled.js +0 -44
- package/Presentation/components/Cells/CellTitle/CellTitle.styled.js.map +0 -1
- package/Presentation/components/Cells/CellTitle/index.d.ts +0 -1
- package/Presentation/components/Cells/CellTitle/index.js +0 -3
- package/Presentation/components/Cells/CellTitle/index.js.map +0 -1
- package/Presentation/components/Cells/CellType/CellType.d.ts +0 -2
- package/Presentation/components/Cells/CellType/CellType.js +0 -18
- package/Presentation/components/Cells/CellType/CellType.js.map +0 -1
- package/Presentation/components/Cells/CellType/CellType.styled.d.ts +0 -11
- package/Presentation/components/Cells/CellType/CellType.styled.js +0 -44
- package/Presentation/components/Cells/CellType/CellType.styled.js.map +0 -1
- package/Presentation/components/Cells/CellType/index.d.ts +0 -1
- package/Presentation/components/Cells/CellType/index.js +0 -3
- package/Presentation/components/Cells/CellType/index.js.map +0 -1
- package/Presentation/components/Cells/index.d.ts +0 -6
- package/Presentation/components/Cells/index.js +0 -8
- package/Presentation/components/Cells/index.js.map +0 -1
- package/Presentation/components/Empty/Empty.d.ts +0 -2
- package/Presentation/components/Empty/Empty.js +0 -22
- package/Presentation/components/Empty/Empty.js.map +0 -1
- package/Presentation/components/Empty/Empty.styled.d.ts +0 -8
- package/Presentation/components/Empty/Empty.styled.js +0 -30
- package/Presentation/components/Empty/Empty.styled.js.map +0 -1
- package/Presentation/components/Empty/index.d.ts +0 -1
- package/Presentation/components/Empty/index.js +0 -3
- package/Presentation/components/Empty/index.js.map +0 -1
- package/Presentation/components/ScheduleDialog/ScheduleDialogAction.d.ts +0 -15
- package/Presentation/components/ScheduleDialog/ScheduleDialogAction.js +0 -51
- package/Presentation/components/ScheduleDialog/ScheduleDialogAction.js.map +0 -1
- package/Presentation/components/ScheduleDialog/index.d.ts +0 -2
- package/Presentation/components/ScheduleDialog/index.js +0 -4
- package/Presentation/components/ScheduleDialog/index.js.map +0 -1
- package/Presentation/components/ScheduleDialog/types.d.ts +0 -15
- package/Presentation/components/ScheduleDialog/types.js +0 -3
- package/Presentation/components/ScheduleDialog/types.js.map +0 -1
- package/Presentation/components/ScheduleDialog/useScheduleDialog.d.ts +0 -43
- package/Presentation/components/ScheduleDialog/useScheduleDialog.js +0 -193
- package/Presentation/components/ScheduleDialog/useScheduleDialog.js.map +0 -1
- package/Presentation/components/SchedulerOverlay/SchedulerOverlay.d.ts +0 -7
- package/Presentation/components/SchedulerOverlay/SchedulerOverlay.js +0 -36
- package/Presentation/components/SchedulerOverlay/SchedulerOverlay.js.map +0 -1
- package/Presentation/components/SchedulerOverlay/index.d.ts +0 -1
- package/Presentation/components/SchedulerOverlay/index.js +0 -3
- package/Presentation/components/SchedulerOverlay/index.js.map +0 -1
- package/Presentation/components/SearchInput/SearchInput.d.ts +0 -2
- package/Presentation/components/SearchInput/SearchInput.js +0 -37
- package/Presentation/components/SearchInput/SearchInput.js.map +0 -1
- package/Presentation/components/SearchInput/index.d.ts +0 -1
- package/Presentation/components/SearchInput/index.js +0 -3
- package/Presentation/components/SearchInput/index.js.map +0 -1
- package/Presentation/components/Table/Table.d.ts +0 -2
- package/Presentation/components/Table/Table.js +0 -34
- package/Presentation/components/Table/Table.js.map +0 -1
- package/Presentation/components/Table/index.d.ts +0 -1
- package/Presentation/components/Table/index.js +0 -3
- package/Presentation/components/Table/index.js.map +0 -1
- package/Presentation/components/Title/Title.d.ts +0 -5
- package/Presentation/components/Title/Title.js +0 -15
- package/Presentation/components/Title/Title.js.map +0 -1
- package/Presentation/components/Title/Title.styled.d.ts +0 -4
- package/Presentation/components/Title/Title.styled.js +0 -18
- package/Presentation/components/Title/Title.styled.js.map +0 -1
- package/Presentation/components/Title/index.d.ts +0 -1
- package/Presentation/components/Title/index.js +0 -3
- package/Presentation/components/Title/index.js.map +0 -1
- package/Presentation/configs/index.d.ts +0 -1
- package/Presentation/configs/index.js +0 -3
- package/Presentation/configs/index.js.map +0 -1
- package/Presentation/configs/list/Browser/EntryAction.d.ts +0 -7
- package/Presentation/configs/list/Browser/EntryAction.js +0 -16
- package/Presentation/configs/list/Browser/EntryAction.js.map +0 -1
- package/Presentation/configs/list/Browser/Table/Column.d.ts +0 -14
- package/Presentation/configs/list/Browser/Table/Column.js +0 -14
- package/Presentation/configs/list/Browser/Table/Column.js.map +0 -1
- package/Presentation/configs/list/Browser/Table/Sorting.d.ts +0 -5
- package/Presentation/configs/list/Browser/Table/Sorting.js +0 -10
- package/Presentation/configs/list/Browser/Table/Sorting.js.map +0 -1
- package/Presentation/configs/list/Browser/Table/index.d.ts +0 -18
- package/Presentation/configs/list/Browser/Table/index.js +0 -8
- package/Presentation/configs/list/Browser/Table/index.js.map +0 -1
- package/Presentation/configs/list/Browser/index.d.ts +0 -23
- package/Presentation/configs/list/Browser/index.js +0 -8
- package/Presentation/configs/list/Browser/index.js.map +0 -1
- package/Presentation/configs/list/SchedulerListConfig.d.ts +0 -33
- package/Presentation/configs/list/SchedulerListConfig.js +0 -31
- package/Presentation/configs/list/SchedulerListConfig.js.map +0 -1
- package/Presentation/configs/list/index.d.ts +0 -1
- package/Presentation/configs/list/index.js +0 -3
- package/Presentation/configs/list/index.js.map +0 -1
- package/Presentation/hooks/index.d.ts +0 -3
- package/Presentation/hooks/index.js +0 -5
- package/Presentation/hooks/index.js.map +0 -1
- package/Presentation/hooks/useCancelSchedulerItem.d.ts +0 -8
- package/Presentation/hooks/useCancelSchedulerItem.js +0 -32
- package/Presentation/hooks/useCancelSchedulerItem.js.map +0 -1
- package/Presentation/hooks/useScheduler.d.ts +0 -26
- package/Presentation/hooks/useScheduler.js +0 -51
- package/Presentation/hooks/useScheduler.js.map +0 -1
- package/Presentation/hooks/useSchedulerItem.d.ts +0 -11
- package/Presentation/hooks/useSchedulerItem.js +0 -9
- package/Presentation/hooks/useSchedulerItem.js.map +0 -1
- package/Presentation/index.d.ts +0 -28
- package/Presentation/index.js +0 -35
- package/Presentation/index.js.map +0 -1
- package/UseCases/CancelItem/CancelItemUseCase.d.ts +0 -7
- package/UseCases/CancelItem/CancelItemUseCase.js +0 -12
- package/UseCases/CancelItem/CancelItemUseCase.js.map +0 -1
- package/UseCases/CancelItem/ICancelItemUseCase.d.ts +0 -3
- package/UseCases/CancelItem/ICancelItemUseCase.js +0 -3
- package/UseCases/CancelItem/ICancelItemUseCase.js.map +0 -1
- package/UseCases/CancelItem/index.d.ts +0 -2
- package/UseCases/CancelItem/index.js +0 -3
- package/UseCases/CancelItem/index.js.map +0 -1
- package/UseCases/GetItem/GetItemUseCase.d.ts +0 -8
- package/UseCases/GetItem/GetItemUseCase.js +0 -12
- package/UseCases/GetItem/GetItemUseCase.js.map +0 -1
- package/UseCases/GetItem/IGetItemUseCase.d.ts +0 -4
- package/UseCases/GetItem/IGetItemUseCase.js +0 -3
- package/UseCases/GetItem/IGetItemUseCase.js.map +0 -1
- package/UseCases/GetItem/index.d.ts +0 -2
- package/UseCases/GetItem/index.js +0 -3
- package/UseCases/GetItem/index.js.map +0 -1
- package/UseCases/GetScheduledItem/GetScheduledItemUseCase.d.ts +0 -7
- package/UseCases/GetScheduledItem/GetScheduledItemUseCase.js +0 -13
- package/UseCases/GetScheduledItem/GetScheduledItemUseCase.js.map +0 -1
- package/UseCases/GetScheduledItem/IGetScheduledItemUseCase.d.ts +0 -4
- package/UseCases/GetScheduledItem/IGetScheduledItemUseCase.js +0 -3
- package/UseCases/GetScheduledItem/IGetScheduledItemUseCase.js.map +0 -1
- package/UseCases/GetScheduledItem/index.d.ts +0 -2
- package/UseCases/GetScheduledItem/index.js +0 -3
- package/UseCases/GetScheduledItem/index.js.map +0 -1
- package/UseCases/ListItems/IListItemsUseCase.d.ts +0 -4
- package/UseCases/ListItems/IListItemsUseCase.js +0 -3
- package/UseCases/ListItems/IListItemsUseCase.js.map +0 -1
- package/UseCases/ListItems/ListItemsUseCase.d.ts +0 -8
- package/UseCases/ListItems/ListItemsUseCase.js +0 -12
- package/UseCases/ListItems/ListItemsUseCase.js.map +0 -1
- package/UseCases/ListItems/ListItemsUseCaseWithSearch.d.ts +0 -9
- package/UseCases/ListItems/ListItemsUseCaseWithSearch.js +0 -20
- package/UseCases/ListItems/ListItemsUseCaseWithSearch.js.map +0 -1
- package/UseCases/ListItems/ListItemsUseCaseWithSorting.d.ts +0 -9
- package/UseCases/ListItems/ListItemsUseCaseWithSorting.js +0 -18
- package/UseCases/ListItems/ListItemsUseCaseWithSorting.js.map +0 -1
- package/UseCases/ListItems/index.d.ts +0 -4
- package/UseCases/ListItems/index.js +0 -5
- package/UseCases/ListItems/index.js.map +0 -1
- package/UseCases/ListMoreItems/IListMoreItemsUseCase.d.ts +0 -3
- package/UseCases/ListMoreItems/IListMoreItemsUseCase.js +0 -3
- package/UseCases/ListMoreItems/IListMoreItemsUseCase.js.map +0 -1
- package/UseCases/ListMoreItems/ListMoreItemsUseCase.d.ts +0 -7
- package/UseCases/ListMoreItems/ListMoreItemsUseCase.js +0 -12
- package/UseCases/ListMoreItems/ListMoreItemsUseCase.js.map +0 -1
- package/UseCases/ListMoreItems/index.d.ts +0 -2
- package/UseCases/ListMoreItems/index.js +0 -3
- package/UseCases/ListMoreItems/index.js.map +0 -1
- package/UseCases/PublishItem/IPublishItemUseCase.d.ts +0 -3
- package/UseCases/PublishItem/IPublishItemUseCase.js +0 -3
- package/UseCases/PublishItem/IPublishItemUseCase.js.map +0 -1
- package/UseCases/PublishItem/PublishItemUseCase.d.ts +0 -7
- package/UseCases/PublishItem/PublishItemUseCase.js +0 -12
- package/UseCases/PublishItem/PublishItemUseCase.js.map +0 -1
- package/UseCases/PublishItem/index.d.ts +0 -2
- package/UseCases/PublishItem/index.js +0 -3
- package/UseCases/PublishItem/index.js.map +0 -1
- package/UseCases/SearchItems/ISearchItemsUseCase.d.ts +0 -3
- package/UseCases/SearchItems/ISearchItemsUseCase.js +0 -3
- package/UseCases/SearchItems/ISearchItemsUseCase.js.map +0 -1
- package/UseCases/SearchItems/SearchItemsUseCase.d.ts +0 -7
- package/UseCases/SearchItems/SearchItemsUseCase.js +0 -12
- package/UseCases/SearchItems/SearchItemsUseCase.js.map +0 -1
- package/UseCases/SearchItems/index.d.ts +0 -2
- package/UseCases/SearchItems/index.js +0 -3
- package/UseCases/SearchItems/index.js.map +0 -1
- package/UseCases/SelectAllItems/ISelectAllItemsUseCase.d.ts +0 -3
- package/UseCases/SelectAllItems/ISelectAllItemsUseCase.js +0 -3
- package/UseCases/SelectAllItems/ISelectAllItemsUseCase.js.map +0 -1
- package/UseCases/SelectAllItems/SelectAllItemsUseCase.d.ts +0 -7
- package/UseCases/SelectAllItems/SelectAllItemsUseCase.js +0 -12
- package/UseCases/SelectAllItems/SelectAllItemsUseCase.js.map +0 -1
- package/UseCases/SelectAllItems/index.d.ts +0 -2
- package/UseCases/SelectAllItems/index.js +0 -3
- package/UseCases/SelectAllItems/index.js.map +0 -1
- package/UseCases/SelectItems/ISelectItemsUseCase.d.ts +0 -4
- package/UseCases/SelectItems/ISelectItemsUseCase.js +0 -3
- package/UseCases/SelectItems/ISelectItemsUseCase.js.map +0 -1
- package/UseCases/SelectItems/SelectItemsUseCase.d.ts +0 -7
- package/UseCases/SelectItems/SelectItemsUseCase.js +0 -12
- package/UseCases/SelectItems/SelectItemsUseCase.js.map +0 -1
- package/UseCases/SelectItems/index.d.ts +0 -2
- package/UseCases/SelectItems/index.js +0 -3
- package/UseCases/SelectItems/index.js.map +0 -1
- package/UseCases/SortItems/ISortItemsUseCase.d.ts +0 -4
- package/UseCases/SortItems/ISortItemsUseCase.js +0 -3
- package/UseCases/SortItems/ISortItemsUseCase.js.map +0 -1
- package/UseCases/SortItems/SortItemsUseCase.d.ts +0 -7
- package/UseCases/SortItems/SortItemsUseCase.js +0 -12
- package/UseCases/SortItems/SortItemsUseCase.js.map +0 -1
- package/UseCases/SortItems/index.d.ts +0 -2
- package/UseCases/SortItems/index.js +0 -3
- package/UseCases/SortItems/index.js.map +0 -1
- package/UseCases/UnSelectAllItems/IUnselectAllItemsUseCase.d.ts +0 -3
- package/UseCases/UnSelectAllItems/IUnselectAllItemsUseCase.js +0 -3
- package/UseCases/UnSelectAllItems/IUnselectAllItemsUseCase.js.map +0 -1
- package/UseCases/UnSelectAllItems/UnselectAllItemsUseCase.d.ts +0 -7
- package/UseCases/UnSelectAllItems/UnselectAllItemsUseCase.js +0 -12
- package/UseCases/UnSelectAllItems/UnselectAllItemsUseCase.js.map +0 -1
- package/UseCases/UnSelectAllItems/index.d.ts +0 -2
- package/UseCases/UnSelectAllItems/index.js +0 -3
- package/UseCases/UnSelectAllItems/index.js.map +0 -1
- package/UseCases/UnpublishItem/IUnpublishItemUseCase.d.ts +0 -3
- package/UseCases/UnpublishItem/IUnpublishItemUseCase.js +0 -3
- package/UseCases/UnpublishItem/IUnpublishItemUseCase.js.map +0 -1
- package/UseCases/UnpublishItem/UnpublishItemUseCase.d.ts +0 -7
- package/UseCases/UnpublishItem/UnpublishItemUseCase.js +0 -12
- package/UseCases/UnpublishItem/UnpublishItemUseCase.js.map +0 -1
- package/UseCases/UnpublishItem/index.d.ts +0 -2
- package/UseCases/UnpublishItem/index.js +0 -3
- package/UseCases/UnpublishItem/index.js.map +0 -1
- package/UseCases/index.d.ts +0 -11
- package/UseCases/index.js +0 -13
- package/UseCases/index.js.map +0 -1
- package/types.d.ts +0 -36
- package/types.js +0 -15
- package/types.js.map +0 -1
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { makeAutoObservable, runInAction } from "mobx";
|
|
2
|
-
import uniqBy from "lodash/uniqBy.js";
|
|
3
|
-
import { Meta } from "@webiny/app-utils";
|
|
4
|
-
export class SchedulerItemsRepository {
|
|
5
|
-
items = [];
|
|
6
|
-
constructor(params) {
|
|
7
|
-
this.metaRepository = params.metaRepository;
|
|
8
|
-
this.listGateway = params.listGateway;
|
|
9
|
-
this.getGateway = params.getGateway;
|
|
10
|
-
this.cancelGateway = params.cancelGateway;
|
|
11
|
-
this.unpublishGateway = params.unpublishGateway;
|
|
12
|
-
this.publishGateway = params.publishGateway;
|
|
13
|
-
this.model = params.model;
|
|
14
|
-
this.params = {
|
|
15
|
-
modelId: this.model.modelId
|
|
16
|
-
};
|
|
17
|
-
makeAutoObservable(this);
|
|
18
|
-
}
|
|
19
|
-
getItems() {
|
|
20
|
-
return this.items;
|
|
21
|
-
}
|
|
22
|
-
getMeta() {
|
|
23
|
-
return this.metaRepository.get();
|
|
24
|
-
}
|
|
25
|
-
getLoading() {
|
|
26
|
-
return {};
|
|
27
|
-
}
|
|
28
|
-
async getItem(params) {
|
|
29
|
-
const item = await this.getGateway.execute({
|
|
30
|
-
...params,
|
|
31
|
-
modelId: this.model.modelId
|
|
32
|
-
});
|
|
33
|
-
/**
|
|
34
|
-
* TODO Do we want to reset the items list?
|
|
35
|
-
*/
|
|
36
|
-
runInAction(() => {
|
|
37
|
-
this.items = [];
|
|
38
|
-
});
|
|
39
|
-
if (!item) {
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
runInAction(() => {
|
|
43
|
-
this.items = [item];
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
async listItems(params) {
|
|
47
|
-
this.params = {
|
|
48
|
-
...params,
|
|
49
|
-
modelId: this.model.modelId
|
|
50
|
-
};
|
|
51
|
-
const response = await this.listGateway.execute({
|
|
52
|
-
...this.params
|
|
53
|
-
});
|
|
54
|
-
if (!response) {
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
runInAction(() => {
|
|
58
|
-
this.items = response.items;
|
|
59
|
-
this.metaRepository.set(Meta.create(response.meta));
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
async listMoreItems() {
|
|
63
|
-
const {
|
|
64
|
-
cursor
|
|
65
|
-
} = this.metaRepository.get();
|
|
66
|
-
if (!cursor) {
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
const response = await this.listGateway.execute({
|
|
70
|
-
...this.params,
|
|
71
|
-
after: cursor
|
|
72
|
-
});
|
|
73
|
-
if (!response) {
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
runInAction(() => {
|
|
77
|
-
this.items = uniqBy([...this.items, ...response.items], "id");
|
|
78
|
-
this.metaRepository.set(Meta.create(response.meta));
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
async scheduleCancelItem(id) {
|
|
82
|
-
await this.cancelGateway.execute({
|
|
83
|
-
modelId: this.model.modelId,
|
|
84
|
-
id
|
|
85
|
-
});
|
|
86
|
-
runInAction(() => {
|
|
87
|
-
this.items = this.items.filter(item => item.id !== id);
|
|
88
|
-
this.metaRepository.decreaseTotalCount(1);
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
async schedulePublishItem(id, scheduleOn) {
|
|
92
|
-
const {
|
|
93
|
-
item
|
|
94
|
-
} = await this.publishGateway.execute({
|
|
95
|
-
modelId: this.model.modelId,
|
|
96
|
-
id,
|
|
97
|
-
scheduleOn
|
|
98
|
-
});
|
|
99
|
-
if (!item) {
|
|
100
|
-
return;
|
|
101
|
-
}
|
|
102
|
-
runInAction(() => {
|
|
103
|
-
this.items = [...this.items, item];
|
|
104
|
-
this.metaRepository.increaseTotalCount(1);
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
async scheduleUnpublishItem(id, scheduleOn) {
|
|
108
|
-
const {
|
|
109
|
-
item
|
|
110
|
-
} = await this.unpublishGateway.execute({
|
|
111
|
-
modelId: this.model.modelId,
|
|
112
|
-
id,
|
|
113
|
-
scheduleOn
|
|
114
|
-
});
|
|
115
|
-
if (!item) {
|
|
116
|
-
return;
|
|
117
|
-
}
|
|
118
|
-
runInAction(() => {
|
|
119
|
-
this.items = [...this.items, item];
|
|
120
|
-
this.metaRepository.increaseTotalCount(1);
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
//# sourceMappingURL=SchedulerItemsRepository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,20 +0,0 @@
|
|
|
1
|
-
import type { IMetaRepository } from "@webiny/app-utils";
|
|
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
|
-
import type { CmsModel } from "@webiny/app-headless-cms-common/types/index.js";
|
|
6
|
-
export interface ISchedulerItemsRepositoryFactoryGetParams {
|
|
7
|
-
metaRepository: IMetaRepository;
|
|
8
|
-
getGateway: ISchedulerGetGateway;
|
|
9
|
-
listGateway: ISchedulerListGateway;
|
|
10
|
-
cancelGateway: ISchedulerCancelGateway;
|
|
11
|
-
publishGateway: ISchedulerPublishGateway;
|
|
12
|
-
unpublishGateway: ISchedulerUnpublishGateway;
|
|
13
|
-
model: Pick<CmsModel, "modelId">;
|
|
14
|
-
}
|
|
15
|
-
export declare class SchedulerItemsRepositoryFactory {
|
|
16
|
-
private readonly cache;
|
|
17
|
-
getRepository(params: ISchedulerItemsRepositoryFactoryGetParams): SchedulerItemsRepository;
|
|
18
|
-
private getCacheKey;
|
|
19
|
-
}
|
|
20
|
-
export declare const schedulerItemsRepositoryFactory: SchedulerItemsRepositoryFactory;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { SchedulerItemsRepository } from "./SchedulerItemsRepository.js";
|
|
2
|
-
export class SchedulerItemsRepositoryFactory {
|
|
3
|
-
cache = new Map();
|
|
4
|
-
getRepository(params) {
|
|
5
|
-
const cacheKey = this.getCacheKey();
|
|
6
|
-
if (!this.cache.has(cacheKey)) {
|
|
7
|
-
this.cache.set(cacheKey, new SchedulerItemsRepository(params));
|
|
8
|
-
}
|
|
9
|
-
return this.cache.get(cacheKey);
|
|
10
|
-
}
|
|
11
|
-
getCacheKey() {
|
|
12
|
-
return Date.now().toString();
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
export const schedulerItemsRepositoryFactory = new SchedulerItemsRepositoryFactory();
|
|
16
|
-
|
|
17
|
-
//# sourceMappingURL=SchedulerItemsRepositoryFactory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,17 +0,0 @@
|
|
|
1
|
-
import type { ILoadingRepository } from "@webiny/app-utils";
|
|
2
|
-
import type { ISchedulerItemsRepository } from "./ISchedulerItemsRepository.js";
|
|
3
|
-
import type { ISchedulerGetExecuteParams, ISchedulerListExecuteParams } from "../../../Gateways/index.js";
|
|
4
|
-
export declare class SchedulerItemsRepositoryWithLoading implements ISchedulerItemsRepository {
|
|
5
|
-
private readonly loadingRepository;
|
|
6
|
-
private readonly schedulerItemsRepository;
|
|
7
|
-
constructor(loadingRepository: ILoadingRepository, schedulerItemsRepository: ISchedulerItemsRepository);
|
|
8
|
-
getItems(): import("../../index.js").SchedulerItem[];
|
|
9
|
-
getMeta(): import("@webiny/app-utils").Meta;
|
|
10
|
-
getLoading(): Record<string, boolean>;
|
|
11
|
-
getItem(params: Omit<ISchedulerGetExecuteParams, "modelId">): Promise<void>;
|
|
12
|
-
listItems(params: Omit<ISchedulerListExecuteParams, "modelId">): Promise<void>;
|
|
13
|
-
listMoreItems(): Promise<void>;
|
|
14
|
-
scheduleCancelItem(id: string): Promise<void>;
|
|
15
|
-
schedulePublishItem(id: string): Promise<void>;
|
|
16
|
-
scheduleUnpublishItem(id: string): Promise<void>;
|
|
17
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { makeAutoObservable } from "mobx";
|
|
2
|
-
import { LoadingActions } from "../../../types.js";
|
|
3
|
-
export class SchedulerItemsRepositoryWithLoading {
|
|
4
|
-
constructor(loadingRepository, schedulerItemsRepository) {
|
|
5
|
-
this.loadingRepository = loadingRepository;
|
|
6
|
-
this.schedulerItemsRepository = schedulerItemsRepository;
|
|
7
|
-
makeAutoObservable(this);
|
|
8
|
-
}
|
|
9
|
-
getItems() {
|
|
10
|
-
return this.schedulerItemsRepository.getItems();
|
|
11
|
-
}
|
|
12
|
-
getMeta() {
|
|
13
|
-
return this.schedulerItemsRepository.getMeta();
|
|
14
|
-
}
|
|
15
|
-
getLoading() {
|
|
16
|
-
return this.loadingRepository.get();
|
|
17
|
-
}
|
|
18
|
-
async getItem(params) {
|
|
19
|
-
await this.loadingRepository.runCallBack(this.schedulerItemsRepository.getItem(params), LoadingActions.get);
|
|
20
|
-
}
|
|
21
|
-
async listItems(params) {
|
|
22
|
-
await this.loadingRepository.runCallBack(this.schedulerItemsRepository.listItems(params), LoadingActions.list);
|
|
23
|
-
}
|
|
24
|
-
async listMoreItems() {
|
|
25
|
-
await this.loadingRepository.runCallBack(this.schedulerItemsRepository.listMoreItems(), LoadingActions.listMore);
|
|
26
|
-
}
|
|
27
|
-
async scheduleCancelItem(id) {
|
|
28
|
-
await this.loadingRepository.runCallBack(this.schedulerItemsRepository.scheduleCancelItem(id), LoadingActions.delete);
|
|
29
|
-
}
|
|
30
|
-
async schedulePublishItem(id) {
|
|
31
|
-
await this.loadingRepository.runCallBack(this.schedulerItemsRepository.scheduleCancelItem(id), LoadingActions.create);
|
|
32
|
-
}
|
|
33
|
-
async scheduleUnpublishItem(id) {
|
|
34
|
-
await this.loadingRepository.runCallBack(this.schedulerItemsRepository.scheduleCancelItem(id), LoadingActions.create);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
//# sourceMappingURL=SchedulerItemsRepositoryWithLoading.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["ISearchRepository.ts"],"sourcesContent":["export interface ISearchRepository {\n get: () => string;\n set: (value: string) => Promise<void>;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { makeAutoObservable } from "mobx";
|
|
2
|
-
export class SearchRepository {
|
|
3
|
-
query = "";
|
|
4
|
-
constructor() {
|
|
5
|
-
makeAutoObservable(this);
|
|
6
|
-
}
|
|
7
|
-
get() {
|
|
8
|
-
return this.query;
|
|
9
|
-
}
|
|
10
|
-
async set(query) {
|
|
11
|
-
this.query = query;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
//# sourceMappingURL=SearchRepository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,7 +0,0 @@
|
|
|
1
|
-
import { SearchRepository } from "./SearchRepository.js";
|
|
2
|
-
export declare class SearchRepositoryFactory {
|
|
3
|
-
private readonly cache;
|
|
4
|
-
getRepository(): SearchRepository;
|
|
5
|
-
private getCacheKey;
|
|
6
|
-
}
|
|
7
|
-
export declare const searchRepositoryFactory: SearchRepositoryFactory;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { SearchRepository } from "./SearchRepository.js";
|
|
2
|
-
export class SearchRepositoryFactory {
|
|
3
|
-
cache = new Map();
|
|
4
|
-
getRepository() {
|
|
5
|
-
const cacheKey = this.getCacheKey();
|
|
6
|
-
if (!this.cache.has(cacheKey)) {
|
|
7
|
-
this.cache.set(cacheKey, new SearchRepository());
|
|
8
|
-
}
|
|
9
|
-
return this.cache.get(cacheKey);
|
|
10
|
-
}
|
|
11
|
-
getCacheKey() {
|
|
12
|
-
return Date.now().toString();
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
export const searchRepositoryFactory = new SearchRepositoryFactory();
|
|
16
|
-
|
|
17
|
-
//# sourceMappingURL=SearchRepositoryFactory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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,8 +0,0 @@
|
|
|
1
|
-
import type { SchedulerItem } from "../../../Domain/index.js";
|
|
2
|
-
export interface ISelectedItemsRepository {
|
|
3
|
-
selectItems: (items: SchedulerItem[]) => Promise<void>;
|
|
4
|
-
selectAllItems: () => Promise<void>;
|
|
5
|
-
unselectAllItems: () => Promise<void>;
|
|
6
|
-
getSelectedItems: () => SchedulerItem[];
|
|
7
|
-
getSelectedAllItems: () => boolean;
|
|
8
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
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,12 +0,0 @@
|
|
|
1
|
-
import type { SchedulerItem } from "../../../Domain/index.js";
|
|
2
|
-
import type { ISelectedItemsRepository } from "./ISelectedItemsRepository.js";
|
|
3
|
-
export declare class SelectedItemsRepository implements ISelectedItemsRepository {
|
|
4
|
-
private items;
|
|
5
|
-
private selectedAll;
|
|
6
|
-
constructor();
|
|
7
|
-
getSelectedItems(): SchedulerItem[];
|
|
8
|
-
getSelectedAllItems(): boolean;
|
|
9
|
-
selectItems(items: SchedulerItem[]): Promise<void>;
|
|
10
|
-
selectAllItems(): Promise<void>;
|
|
11
|
-
unselectAllItems(): Promise<void>;
|
|
12
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { makeAutoObservable } from "mobx";
|
|
2
|
-
export class SelectedItemsRepository {
|
|
3
|
-
items = [];
|
|
4
|
-
selectedAll = false;
|
|
5
|
-
constructor() {
|
|
6
|
-
makeAutoObservable(this);
|
|
7
|
-
}
|
|
8
|
-
getSelectedItems() {
|
|
9
|
-
return this.items;
|
|
10
|
-
}
|
|
11
|
-
getSelectedAllItems() {
|
|
12
|
-
return this.selectedAll;
|
|
13
|
-
}
|
|
14
|
-
async selectItems(items) {
|
|
15
|
-
this.items = items;
|
|
16
|
-
this.selectedAll = false;
|
|
17
|
-
}
|
|
18
|
-
async selectAllItems() {
|
|
19
|
-
this.selectedAll = true;
|
|
20
|
-
}
|
|
21
|
-
async unselectAllItems() {
|
|
22
|
-
this.items = [];
|
|
23
|
-
this.selectedAll = false;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
//# sourceMappingURL=SelectedItemsRepository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,7 +0,0 @@
|
|
|
1
|
-
import { SelectedItemsRepository } from "./SelectedItemsRepository.js";
|
|
2
|
-
export declare class SelectedItemsRepositoryFactory {
|
|
3
|
-
private readonly cache;
|
|
4
|
-
getRepository(): SelectedItemsRepository;
|
|
5
|
-
private getCacheKey;
|
|
6
|
-
}
|
|
7
|
-
export declare const selectedItemsRepositoryFactory: SelectedItemsRepositoryFactory;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { SelectedItemsRepository } from "./SelectedItemsRepository.js";
|
|
2
|
-
export class SelectedItemsRepositoryFactory {
|
|
3
|
-
cache = new Map();
|
|
4
|
-
getRepository() {
|
|
5
|
-
const cacheKey = this.getCacheKey();
|
|
6
|
-
if (!this.cache.has(cacheKey)) {
|
|
7
|
-
this.cache.set(cacheKey, new SelectedItemsRepository());
|
|
8
|
-
}
|
|
9
|
-
return this.cache.get(cacheKey);
|
|
10
|
-
}
|
|
11
|
-
getCacheKey() {
|
|
12
|
-
return Date.now().toString();
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
export const selectedItemsRepositoryFactory = new SelectedItemsRepositoryFactory();
|
|
16
|
-
|
|
17
|
-
//# sourceMappingURL=SelectedItemsRepositoryFactory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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,8 +0,0 @@
|
|
|
1
|
-
import type { ISortingRepository, Sorting } from "@webiny/app-utils";
|
|
2
|
-
export declare class SortingRepositoryWithDefaults implements ISortingRepository {
|
|
3
|
-
private readonly defaults;
|
|
4
|
-
private readonly repository;
|
|
5
|
-
constructor(defaults: Sorting[], repository: ISortingRepository);
|
|
6
|
-
get(): Sorting[];
|
|
7
|
-
set(sorts: Sorting[]): Promise<void>;
|
|
8
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { makeAutoObservable, runInAction } from "mobx";
|
|
2
|
-
export class SortingRepositoryWithDefaults {
|
|
3
|
-
constructor(defaults, repository) {
|
|
4
|
-
this.defaults = defaults;
|
|
5
|
-
this.repository = repository;
|
|
6
|
-
makeAutoObservable(this);
|
|
7
|
-
}
|
|
8
|
-
get() {
|
|
9
|
-
const existingSort = this.repository.get();
|
|
10
|
-
if (existingSort.length === 0) {
|
|
11
|
-
runInAction(() => {
|
|
12
|
-
this.set(this.defaults);
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
return this.repository.get();
|
|
16
|
-
}
|
|
17
|
-
set(sorts) {
|
|
18
|
-
return this.repository.set(sorts);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
//# sourceMappingURL=SortingRepositoryWithDefaults.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["makeAutoObservable","runInAction","SortingRepositoryWithDefaults","constructor","defaults","repository","get","existingSort","length","set","sorts"],"sources":["SortingRepositoryWithDefaults.ts"],"sourcesContent":["import { makeAutoObservable, runInAction } from \"mobx\";\nimport type { ISortingRepository, Sorting } from \"@webiny/app-utils\";\n\nexport class SortingRepositoryWithDefaults implements ISortingRepository {\n private readonly defaults: Sorting[];\n private readonly repository: ISortingRepository;\n\n public constructor(defaults: Sorting[], repository: ISortingRepository) {\n this.defaults = defaults;\n this.repository = repository;\n makeAutoObservable(this);\n }\n\n public get() {\n const existingSort = this.repository.get();\n\n if (existingSort.length === 0) {\n runInAction(() => {\n this.set(this.defaults);\n });\n }\n\n return this.repository.get();\n }\n\n public set(sorts: Sorting[]) {\n return this.repository.set(sorts);\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,EAAEC,WAAW,QAAQ,MAAM;AAGtD,OAAO,MAAMC,6BAA6B,CAA+B;EAI9DC,WAAWA,CAACC,QAAmB,EAAEC,UAA8B,EAAE;IACpE,IAAI,CAACD,QAAQ,GAAGA,QAAQ;IACxB,IAAI,CAACC,UAAU,GAAGA,UAAU;IAC5BL,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEOM,GAAGA,CAAA,EAAG;IACT,MAAMC,YAAY,GAAG,IAAI,CAACF,UAAU,CAACC,GAAG,CAAC,CAAC;IAE1C,IAAIC,YAAY,CAACC,MAAM,KAAK,CAAC,EAAE;MAC3BP,WAAW,CAAC,MAAM;QACd,IAAI,CAACQ,GAAG,CAAC,IAAI,CAACL,QAAQ,CAAC;MAC3B,CAAC,CAAC;IACN;IAEA,OAAO,IAAI,CAACC,UAAU,CAACC,GAAG,CAAC,CAAC;EAChC;EAEOG,GAAGA,CAACC,KAAgB,EAAE;IACzB,OAAO,IAAI,CAACL,UAAU,CAACI,GAAG,CAACC,KAAK,CAAC;EACrC;AACJ","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./SortingRepositoryWithDefaults.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./SortingRepositoryWithDefaults.js\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
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
DELETED
package/Domain/index.js
DELETED
package/Domain/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Models/index.js\";\nexport * from \"./Repositories/index.js\";\n"],"mappings":"AAAA;AACA","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["SchedulerCancelGateway.ts"],"sourcesContent":["export interface IScheduleCancelExecuteParams {\n modelId: string;\n id: string;\n}\n\nexport interface ISchedulerCancelGateway {\n execute(params: IScheduleCancelExecuteParams): Promise<void>;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { SchedulerEntry } from "../types.js";
|
|
2
|
-
export interface ISchedulerGetExecuteParams {
|
|
3
|
-
modelId: string;
|
|
4
|
-
id: string;
|
|
5
|
-
}
|
|
6
|
-
export type ISchedulerGetGatewayResponse = SchedulerEntry | null;
|
|
7
|
-
export interface ISchedulerGetGateway {
|
|
8
|
-
execute(params: ISchedulerGetExecuteParams): Promise<ISchedulerGetGatewayResponse>;
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["SchedulerGetGateway.ts"],"sourcesContent":["import type { SchedulerEntry } from \"~/types.js\";\n\nexport interface ISchedulerGetExecuteParams {\n modelId: string;\n id: string;\n}\n\nexport type ISchedulerGetGatewayResponse = SchedulerEntry | null;\n\nexport interface ISchedulerGetGateway {\n execute(params: ISchedulerGetExecuteParams): Promise<ISchedulerGetGatewayResponse>;\n}\n"],"mappings":"","ignoreList":[]}
|