@webiny/app-scheduler 6.4.5 → 6.6.0-alpha.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.
Files changed (521) hide show
  1. package/{Gateways/schema → domain}/schedulerEntry.d.ts +1 -1
  2. package/{Gateways/schema → domain}/schedulerEntry.js +1 -1
  3. package/domain/schedulerEntry.js.map +1 -0
  4. package/features/cancelScheduledAction/CancelScheduledActionGateway.d.ts +11 -0
  5. package/features/cancelScheduledAction/CancelScheduledActionGateway.js +41 -0
  6. package/features/cancelScheduledAction/CancelScheduledActionGateway.js.map +1 -0
  7. package/features/cancelScheduledAction/abstractions.d.ts +11 -0
  8. package/features/cancelScheduledAction/abstractions.js +5 -0
  9. package/features/cancelScheduledAction/abstractions.js.map +1 -0
  10. package/features/cancelScheduledAction/feature.d.ts +1 -0
  11. package/features/cancelScheduledAction/feature.js +11 -0
  12. package/features/cancelScheduledAction/feature.js.map +1 -0
  13. package/features/feature.d.ts +1 -0
  14. package/features/feature.js +19 -0
  15. package/features/feature.js.map +1 -0
  16. package/features/getScheduledAction/GetScheduledActionGateway.d.ts +11 -0
  17. package/features/getScheduledAction/GetScheduledActionGateway.js +57 -0
  18. package/features/getScheduledAction/GetScheduledActionGateway.js.map +1 -0
  19. package/{Gateways/abstractions/GetScheduledActionGateway.d.ts → features/getScheduledAction/abstractions.d.ts} +4 -0
  20. package/features/getScheduledAction/abstractions.js +5 -0
  21. package/features/getScheduledAction/abstractions.js.map +1 -0
  22. package/features/getScheduledAction/feature.d.ts +1 -0
  23. package/features/getScheduledAction/feature.js +11 -0
  24. package/features/getScheduledAction/feature.js.map +1 -0
  25. package/features/graphqlFields.d.ts +2 -0
  26. package/features/graphqlFields.js +23 -0
  27. package/features/graphqlFields.js.map +1 -0
  28. package/features/listScheduledActions/ListScheduledActionsGateway.d.ts +11 -0
  29. package/features/listScheduledActions/ListScheduledActionsGateway.js +84 -0
  30. package/features/listScheduledActions/ListScheduledActionsGateway.js.map +1 -0
  31. package/{Gateways/abstractions/ListScheduledActionsGateway.d.ts → features/listScheduledActions/abstractions.d.ts} +5 -2
  32. package/features/listScheduledActions/abstractions.js +5 -0
  33. package/features/listScheduledActions/abstractions.js.map +1 -0
  34. package/features/listScheduledActions/feature.d.ts +1 -0
  35. package/features/listScheduledActions/feature.js +11 -0
  36. package/features/listScheduledActions/feature.js.map +1 -0
  37. package/features/schedulePublishAction/SchedulePublishActionGateway.d.ts +11 -0
  38. package/features/schedulePublishAction/SchedulePublishActionGateway.js +67 -0
  39. package/features/schedulePublishAction/SchedulePublishActionGateway.js.map +1 -0
  40. package/{Gateways/abstractions/SchedulePublishActionGateway.d.ts → features/schedulePublishAction/abstractions.d.ts} +4 -0
  41. package/features/schedulePublishAction/abstractions.js +5 -0
  42. package/features/schedulePublishAction/abstractions.js.map +1 -0
  43. package/features/schedulePublishAction/feature.d.ts +1 -0
  44. package/features/schedulePublishAction/feature.js +11 -0
  45. package/features/schedulePublishAction/feature.js.map +1 -0
  46. package/features/scheduleUnpublishAction/ScheduleUnpublishActionGateway.d.ts +11 -0
  47. package/features/scheduleUnpublishAction/ScheduleUnpublishActionGateway.js +71 -0
  48. package/features/scheduleUnpublishAction/ScheduleUnpublishActionGateway.js.map +1 -0
  49. package/{Gateways/abstractions/ScheduleUnpublishActionGateway.d.ts → features/scheduleUnpublishAction/abstractions.d.ts} +4 -0
  50. package/features/scheduleUnpublishAction/abstractions.js +5 -0
  51. package/features/scheduleUnpublishAction/abstractions.js.map +1 -0
  52. package/features/scheduleUnpublishAction/feature.d.ts +1 -0
  53. package/features/scheduleUnpublishAction/feature.js +11 -0
  54. package/features/scheduleUnpublishAction/feature.js.map +1 -0
  55. package/index.d.ts +9 -1
  56. package/index.js +16 -1
  57. package/index.js.map +1 -0
  58. package/package.json +15 -16
  59. package/{Presentation → presentation}/SchedulerConfigs/SchedulerConfigs.js.map +1 -1
  60. package/{Presentation → presentation}/components/Actions/CancelItem/CancelItem.js +2 -3
  61. package/presentation/components/Actions/CancelItem/CancelItem.js.map +1 -0
  62. package/{Presentation → presentation}/components/BottomInfoBar/BottomInfoBar.styled.js.map +1 -1
  63. package/{Presentation → presentation}/components/BottomInfoBar/ListMeta.js.map +1 -1
  64. package/{Presentation → presentation}/components/BottomInfoBar/ListStatus.js.map +1 -1
  65. package/{Presentation → presentation}/components/Cells/CellActions/CellActions.js.map +1 -1
  66. package/{Presentation → presentation}/components/Cells/CellRevision/CellRevision.js.map +1 -1
  67. package/{Presentation → presentation}/components/Cells/CellRevision/CellRevision.styled.js.map +1 -1
  68. package/{Presentation → presentation}/components/Cells/CellScheduledBy/CellScheduledBy.js.map +1 -1
  69. package/{Presentation → presentation}/components/Cells/CellScheduledOn/CellScheduledOn.js.map +1 -1
  70. package/{Presentation → presentation}/components/Cells/CellTitle/CellTitle.js.map +1 -1
  71. package/{Presentation → presentation}/components/Cells/CellTitle/CellTitle.styled.js.map +1 -1
  72. package/{Presentation → presentation}/components/Cells/CellType/CellActionType.js.map +1 -1
  73. package/{Presentation → presentation}/components/Cells/CellType/CellActionType.styled.js.map +1 -1
  74. package/{Presentation → presentation}/components/Empty/Empty.styled.js.map +1 -1
  75. package/{Presentation → presentation}/components/Title/Title.js.map +1 -1
  76. package/{Presentation → presentation}/components/Title/Title.styled.js.map +1 -1
  77. package/{Presentation → presentation}/configs/list/Browser/EntryAction.d.ts +2 -1
  78. package/{Presentation → presentation}/configs/list/Browser/EntryAction.js.map +1 -1
  79. package/{Presentation → presentation}/configs/list/Browser/Table/Column.d.ts +4 -3
  80. package/{Presentation → presentation}/configs/list/Browser/Table/Column.js.map +1 -1
  81. package/{Presentation → presentation}/configs/list/Browser/Table/Sorting.js.map +1 -1
  82. package/presentation/configs/list/Browser/Table/index.d.ts +19 -0
  83. package/{Presentation → presentation}/configs/list/Browser/Table/index.js.map +1 -1
  84. package/presentation/configs/list/Browser/index.d.ts +23 -0
  85. package/{Presentation → presentation}/configs/list/Browser/index.js.map +1 -1
  86. package/{Presentation → presentation}/configs/list/SchedulerListConfig.d.ts +8 -6
  87. package/{Presentation → presentation}/configs/list/SchedulerListConfig.js.map +1 -1
  88. package/{Presentation → presentation}/hooks/index.d.ts +0 -1
  89. package/{Presentation → presentation}/hooks/index.js +0 -1
  90. package/{Presentation → presentation}/hooks/useCancelSchedulerItem.js +12 -7
  91. package/presentation/hooks/useCancelSchedulerItem.js.map +1 -0
  92. package/{Presentation → presentation}/hooks/useSchedulerItem.js.map +1 -1
  93. package/presentation/scheduleDialog/ScheduleDialogPresenter.d.ts +23 -0
  94. package/{Presentation/components/ScheduleDialog → presentation/scheduleDialog}/ScheduleDialogPresenter.js +22 -8
  95. package/presentation/scheduleDialog/ScheduleDialogPresenter.js.map +1 -0
  96. package/{Presentation/components/ScheduleDialog/IScheduleDialogPresenter.d.ts → presentation/scheduleDialog/abstractions.d.ts} +5 -1
  97. package/presentation/scheduleDialog/abstractions.js +5 -0
  98. package/presentation/scheduleDialog/abstractions.js.map +1 -0
  99. package/presentation/scheduleDialog/feature.d.ts +3 -0
  100. package/presentation/scheduleDialog/feature.js +17 -0
  101. package/presentation/scheduleDialog/feature.js.map +1 -0
  102. package/{Presentation/components/ScheduleDialog → presentation/scheduleDialog}/useScheduleDialog.d.ts +0 -2
  103. package/{Presentation/components/ScheduleDialog → presentation/scheduleDialog}/useScheduleDialog.js +63 -60
  104. package/presentation/scheduleDialog/useScheduleDialog.js.map +1 -0
  105. package/{Presentation/index.d.ts → presentation/schedulerList/Scheduler.d.ts} +2 -9
  106. package/presentation/schedulerList/Scheduler.js +28 -0
  107. package/presentation/schedulerList/Scheduler.js.map +1 -0
  108. package/presentation/schedulerList/SchedulerListDataSource.d.ts +15 -0
  109. package/presentation/schedulerList/SchedulerListDataSource.js +41 -0
  110. package/presentation/schedulerList/SchedulerListDataSource.js.map +1 -0
  111. package/presentation/schedulerList/SchedulerListPresenter.d.ts +21 -0
  112. package/presentation/schedulerList/SchedulerListPresenter.js +47 -0
  113. package/presentation/schedulerList/SchedulerListPresenter.js.map +1 -0
  114. package/presentation/schedulerList/abstractions.d.ts +13 -0
  115. package/presentation/schedulerList/abstractions.js +5 -0
  116. package/presentation/schedulerList/abstractions.js.map +1 -0
  117. package/presentation/schedulerList/components/BottomInfoBar.d.ts +9 -0
  118. package/presentation/schedulerList/components/BottomInfoBar.js +18 -0
  119. package/presentation/schedulerList/components/BottomInfoBar.js.map +1 -0
  120. package/presentation/schedulerList/components/Empty.d.ts +9 -0
  121. package/{Presentation/components/Empty → presentation/schedulerList/components}/Empty.js +6 -6
  122. package/presentation/schedulerList/components/Empty.js.map +1 -0
  123. package/presentation/schedulerList/components/SchedulerListView.d.ts +8 -0
  124. package/presentation/schedulerList/components/SchedulerListView.js +40 -0
  125. package/presentation/schedulerList/components/SchedulerListView.js.map +1 -0
  126. package/presentation/schedulerList/components/SchedulerOverlay.d.ts +11 -0
  127. package/presentation/schedulerList/components/SchedulerOverlay.js +38 -0
  128. package/presentation/schedulerList/components/SchedulerOverlay.js.map +1 -0
  129. package/presentation/schedulerList/components/SchedulerTable.d.ts +9 -0
  130. package/presentation/schedulerList/components/SchedulerTable.js +48 -0
  131. package/presentation/schedulerList/components/SchedulerTable.js.map +1 -0
  132. package/presentation/schedulerList/components/SearchInput.d.ts +9 -0
  133. package/{Presentation/components/SearchInput → presentation/schedulerList/components}/SearchInput.js +8 -8
  134. package/presentation/schedulerList/components/SearchInput.js.map +1 -0
  135. package/presentation/schedulerList/feature.d.ts +3 -0
  136. package/presentation/schedulerList/feature.js +17 -0
  137. package/presentation/schedulerList/feature.js.map +1 -0
  138. package/presentation/schedulerList/useSchedulerListPresenter.d.ts +1 -0
  139. package/presentation/schedulerList/useSchedulerListPresenter.js +6 -0
  140. package/presentation/schedulerList/useSchedulerListPresenter.js.map +1 -0
  141. package/types.d.ts +0 -7
  142. package/types.js +1 -9
  143. package/types.js.map +1 -1
  144. package/Domain/Models/SchedulerItem/SchedulerItem.d.ts +0 -13
  145. package/Domain/Models/SchedulerItem/SchedulerItem.js +0 -18
  146. package/Domain/Models/SchedulerItem/SchedulerItem.js.map +0 -1
  147. package/Domain/Models/SchedulerItem/index.d.ts +0 -1
  148. package/Domain/Models/SchedulerItem/index.js +0 -1
  149. package/Domain/Models/index.d.ts +0 -1
  150. package/Domain/Models/index.js +0 -1
  151. package/Domain/Repositories/SchedulerItems/ISchedulerItemsRepository.d.ts +0 -14
  152. package/Domain/Repositories/SchedulerItems/ISchedulerItemsRepository.js +0 -0
  153. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepository.d.ts +0 -36
  154. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepository.js +0 -119
  155. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepository.js.map +0 -1
  156. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryFactory.d.ts +0 -19
  157. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryFactory.js +0 -18
  158. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryFactory.js.map +0 -1
  159. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryWithLoading.d.ts +0 -17
  160. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryWithLoading.js +0 -39
  161. package/Domain/Repositories/SchedulerItems/SchedulerItemsRepositoryWithLoading.js.map +0 -1
  162. package/Domain/Repositories/SchedulerItems/index.d.ts +0 -4
  163. package/Domain/Repositories/SchedulerItems/index.js +0 -3
  164. package/Domain/Repositories/Search/ISearchRepository.d.ts +0 -4
  165. package/Domain/Repositories/Search/ISearchRepository.js +0 -0
  166. package/Domain/Repositories/Search/SearchRepository.d.ts +0 -7
  167. package/Domain/Repositories/Search/SearchRepository.js +0 -16
  168. package/Domain/Repositories/Search/SearchRepository.js.map +0 -1
  169. package/Domain/Repositories/Search/SearchRepositoryFactory.d.ts +0 -7
  170. package/Domain/Repositories/Search/SearchRepositoryFactory.js +0 -18
  171. package/Domain/Repositories/Search/SearchRepositoryFactory.js.map +0 -1
  172. package/Domain/Repositories/Search/index.d.ts +0 -3
  173. package/Domain/Repositories/Search/index.js +0 -2
  174. package/Domain/Repositories/SelectedItems/ISelectedItemsRepository.d.ts +0 -8
  175. package/Domain/Repositories/SelectedItems/ISelectedItemsRepository.js +0 -0
  176. package/Domain/Repositories/SelectedItems/SelectedItemsRepository.d.ts +0 -12
  177. package/Domain/Repositories/SelectedItems/SelectedItemsRepository.js +0 -28
  178. package/Domain/Repositories/SelectedItems/SelectedItemsRepository.js.map +0 -1
  179. package/Domain/Repositories/SelectedItems/SelectedItemsRepositoryFactory.d.ts +0 -7
  180. package/Domain/Repositories/SelectedItems/SelectedItemsRepositoryFactory.js +0 -18
  181. package/Domain/Repositories/SelectedItems/SelectedItemsRepositoryFactory.js.map +0 -1
  182. package/Domain/Repositories/SelectedItems/index.d.ts +0 -3
  183. package/Domain/Repositories/SelectedItems/index.js +0 -2
  184. package/Domain/Repositories/Sorting/SortingRepositoryWithDefaults.d.ts +0 -8
  185. package/Domain/Repositories/Sorting/SortingRepositoryWithDefaults.js +0 -21
  186. package/Domain/Repositories/Sorting/SortingRepositoryWithDefaults.js.map +0 -1
  187. package/Domain/Repositories/Sorting/index.d.ts +0 -1
  188. package/Domain/Repositories/Sorting/index.js +0 -1
  189. package/Domain/Repositories/index.d.ts +0 -4
  190. package/Domain/Repositories/index.js +0 -4
  191. package/Domain/index.d.ts +0 -2
  192. package/Domain/index.js +0 -2
  193. package/Gateways/SchedulerCancelGraphQLGateway.d.ts +0 -7
  194. package/Gateways/SchedulerCancelGraphQLGateway.js +0 -42
  195. package/Gateways/SchedulerCancelGraphQLGateway.js.map +0 -1
  196. package/Gateways/SchedulerGetGraphQLGateway.d.ts +0 -21
  197. package/Gateways/SchedulerGetGraphQLGateway.js +0 -68
  198. package/Gateways/SchedulerGetGraphQLGateway.js.map +0 -1
  199. package/Gateways/SchedulerListGraphQLGateway.d.ts +0 -7
  200. package/Gateways/SchedulerListGraphQLGateway.js +0 -86
  201. package/Gateways/SchedulerListGraphQLGateway.js.map +0 -1
  202. package/Gateways/SchedulerPublishGraphQLGateway.d.ts +0 -7
  203. package/Gateways/SchedulerPublishGraphQLGateway.js +0 -59
  204. package/Gateways/SchedulerPublishGraphQLGateway.js.map +0 -1
  205. package/Gateways/SchedulerUnpublishGraphQLGateway.d.ts +0 -23
  206. package/Gateways/SchedulerUnpublishGraphQLGateway.js +0 -63
  207. package/Gateways/SchedulerUnpublishGraphQLGateway.js.map +0 -1
  208. package/Gateways/abstractions/CancelScheduledActionGateway.d.ts +0 -7
  209. package/Gateways/abstractions/CancelScheduledActionGateway.js +0 -0
  210. package/Gateways/abstractions/GetScheduledActionGateway.js +0 -0
  211. package/Gateways/abstractions/ListScheduledActionsGateway.js +0 -0
  212. package/Gateways/abstractions/SchedulePublishActionGateway.js +0 -0
  213. package/Gateways/abstractions/ScheduleUnpublishActionGateway.js +0 -0
  214. package/Gateways/graphql/fields.d.ts +0 -1
  215. package/Gateways/graphql/fields.js +0 -17
  216. package/Gateways/graphql/fields.js.map +0 -1
  217. package/Gateways/index.d.ts +0 -5
  218. package/Gateways/index.js +0 -0
  219. package/Gateways/schema/schedulerEntry.js.map +0 -1
  220. package/Presentation/Scheduler/Scheduler.d.ts +0 -17
  221. package/Presentation/Scheduler/Scheduler.js +0 -78
  222. package/Presentation/Scheduler/Scheduler.js.map +0 -1
  223. package/Presentation/Scheduler/SchedulerControllers.d.ts +0 -30
  224. package/Presentation/Scheduler/SchedulerControllers.js +0 -54
  225. package/Presentation/Scheduler/SchedulerControllers.js.map +0 -1
  226. package/Presentation/Scheduler/SchedulerPresenter.d.ts +0 -32
  227. package/Presentation/Scheduler/SchedulerPresenter.js +0 -45
  228. package/Presentation/Scheduler/SchedulerPresenter.js.map +0 -1
  229. package/Presentation/Scheduler/controllers/CancelItem/CancelItemController.d.ts +0 -7
  230. package/Presentation/Scheduler/controllers/CancelItem/CancelItemController.js +0 -12
  231. package/Presentation/Scheduler/controllers/CancelItem/CancelItemController.js.map +0 -1
  232. package/Presentation/Scheduler/controllers/CancelItem/ICancelItemController.d.ts +0 -3
  233. package/Presentation/Scheduler/controllers/CancelItem/ICancelItemController.js +0 -0
  234. package/Presentation/Scheduler/controllers/CancelItem/index.d.ts +0 -2
  235. package/Presentation/Scheduler/controllers/CancelItem/index.js +0 -1
  236. package/Presentation/Scheduler/controllers/GetItem/GetItemController.d.ts +0 -8
  237. package/Presentation/Scheduler/controllers/GetItem/GetItemController.js +0 -12
  238. package/Presentation/Scheduler/controllers/GetItem/GetItemController.js.map +0 -1
  239. package/Presentation/Scheduler/controllers/GetItem/IGetItemController.d.ts +0 -4
  240. package/Presentation/Scheduler/controllers/GetItem/IGetItemController.js +0 -0
  241. package/Presentation/Scheduler/controllers/GetItem/index.d.ts +0 -2
  242. package/Presentation/Scheduler/controllers/GetItem/index.js +0 -1
  243. package/Presentation/Scheduler/controllers/ListItems/IListItemsController.d.ts +0 -4
  244. package/Presentation/Scheduler/controllers/ListItems/IListItemsController.js +0 -0
  245. package/Presentation/Scheduler/controllers/ListItems/ListItemsController.d.ts +0 -8
  246. package/Presentation/Scheduler/controllers/ListItems/ListItemsController.js +0 -12
  247. package/Presentation/Scheduler/controllers/ListItems/ListItemsController.js.map +0 -1
  248. package/Presentation/Scheduler/controllers/ListItems/index.d.ts +0 -2
  249. package/Presentation/Scheduler/controllers/ListItems/index.js +0 -1
  250. package/Presentation/Scheduler/controllers/ListMoreItems/IListMoreItemsController.d.ts +0 -3
  251. package/Presentation/Scheduler/controllers/ListMoreItems/IListMoreItemsController.js +0 -0
  252. package/Presentation/Scheduler/controllers/ListMoreItems/ListMoreItemsController.d.ts +0 -7
  253. package/Presentation/Scheduler/controllers/ListMoreItems/ListMoreItemsController.js +0 -12
  254. package/Presentation/Scheduler/controllers/ListMoreItems/ListMoreItemsController.js.map +0 -1
  255. package/Presentation/Scheduler/controllers/ListMoreItems/index.d.ts +0 -2
  256. package/Presentation/Scheduler/controllers/ListMoreItems/index.js +0 -1
  257. package/Presentation/Scheduler/controllers/PublishItem/IPublishItemController.d.ts +0 -3
  258. package/Presentation/Scheduler/controllers/PublishItem/IPublishItemController.js +0 -0
  259. package/Presentation/Scheduler/controllers/PublishItem/PublishItemController.d.ts +0 -7
  260. package/Presentation/Scheduler/controllers/PublishItem/PublishItemController.js +0 -12
  261. package/Presentation/Scheduler/controllers/PublishItem/PublishItemController.js.map +0 -1
  262. package/Presentation/Scheduler/controllers/PublishItem/index.d.ts +0 -2
  263. package/Presentation/Scheduler/controllers/PublishItem/index.js +0 -1
  264. package/Presentation/Scheduler/controllers/SearchItems/ISearchItemsController.d.ts +0 -3
  265. package/Presentation/Scheduler/controllers/SearchItems/ISearchItemsController.js +0 -0
  266. package/Presentation/Scheduler/controllers/SearchItems/SearchItemsController.d.ts +0 -8
  267. package/Presentation/Scheduler/controllers/SearchItems/SearchItemsController.js +0 -15
  268. package/Presentation/Scheduler/controllers/SearchItems/SearchItemsController.js.map +0 -1
  269. package/Presentation/Scheduler/controllers/SearchItems/index.d.ts +0 -2
  270. package/Presentation/Scheduler/controllers/SearchItems/index.js +0 -1
  271. package/Presentation/Scheduler/controllers/SelectAllItems/ISelectAllItemsController.d.ts +0 -3
  272. package/Presentation/Scheduler/controllers/SelectAllItems/ISelectAllItemsController.js +0 -0
  273. package/Presentation/Scheduler/controllers/SelectAllItems/SelectAllItemsController.d.ts +0 -7
  274. package/Presentation/Scheduler/controllers/SelectAllItems/SelectAllItemsController.js +0 -12
  275. package/Presentation/Scheduler/controllers/SelectAllItems/SelectAllItemsController.js.map +0 -1
  276. package/Presentation/Scheduler/controllers/SelectAllItems/index.d.ts +0 -2
  277. package/Presentation/Scheduler/controllers/SelectAllItems/index.js +0 -1
  278. package/Presentation/Scheduler/controllers/SelectItems/ISelectItemsController.d.ts +0 -4
  279. package/Presentation/Scheduler/controllers/SelectItems/ISelectItemsController.js +0 -0
  280. package/Presentation/Scheduler/controllers/SelectItems/SelectItemsController.d.ts +0 -8
  281. package/Presentation/Scheduler/controllers/SelectItems/SelectItemsController.js +0 -14
  282. package/Presentation/Scheduler/controllers/SelectItems/SelectItemsController.js.map +0 -1
  283. package/Presentation/Scheduler/controllers/SelectItems/index.d.ts +0 -2
  284. package/Presentation/Scheduler/controllers/SelectItems/index.js +0 -1
  285. package/Presentation/Scheduler/controllers/SortItems/ISortItemsController.d.ts +0 -4
  286. package/Presentation/Scheduler/controllers/SortItems/ISortItemsController.js +0 -0
  287. package/Presentation/Scheduler/controllers/SortItems/SortItemsController.d.ts +0 -9
  288. package/Presentation/Scheduler/controllers/SortItems/SortItemsController.js +0 -18
  289. package/Presentation/Scheduler/controllers/SortItems/SortItemsController.js.map +0 -1
  290. package/Presentation/Scheduler/controllers/SortItems/index.d.ts +0 -2
  291. package/Presentation/Scheduler/controllers/SortItems/index.js +0 -1
  292. package/Presentation/Scheduler/controllers/UnpublishItem/IUnpublishItemController.d.ts +0 -3
  293. package/Presentation/Scheduler/controllers/UnpublishItem/IUnpublishItemController.js +0 -0
  294. package/Presentation/Scheduler/controllers/UnpublishItem/UnpublishItemController.d.ts +0 -7
  295. package/Presentation/Scheduler/controllers/UnpublishItem/UnpublishItemController.js +0 -12
  296. package/Presentation/Scheduler/controllers/UnpublishItem/UnpublishItemController.js.map +0 -1
  297. package/Presentation/Scheduler/controllers/UnpublishItem/index.d.ts +0 -2
  298. package/Presentation/Scheduler/controllers/UnpublishItem/index.js +0 -1
  299. package/Presentation/Scheduler/controllers/UnselectAllItems/IUnselectAllItemsController.d.ts +0 -3
  300. package/Presentation/Scheduler/controllers/UnselectAllItems/IUnselectAllItemsController.js +0 -0
  301. package/Presentation/Scheduler/controllers/UnselectAllItems/UnselectAllItemsController.d.ts +0 -7
  302. package/Presentation/Scheduler/controllers/UnselectAllItems/UnselectAllItemsController.js +0 -12
  303. package/Presentation/Scheduler/controllers/UnselectAllItems/UnselectAllItemsController.js.map +0 -1
  304. package/Presentation/Scheduler/controllers/UnselectAllItems/index.d.ts +0 -2
  305. package/Presentation/Scheduler/controllers/UnselectAllItems/index.js +0 -1
  306. package/Presentation/Scheduler/controllers/index.d.ts +0 -11
  307. package/Presentation/Scheduler/controllers/index.js +0 -11
  308. package/Presentation/Scheduler/index.d.ts +0 -1
  309. package/Presentation/Scheduler/index.js +0 -1
  310. package/Presentation/SchedulerRenderer/SchedulerRenderer.d.ts +0 -6
  311. package/Presentation/SchedulerRenderer/SchedulerRenderer.js +0 -16
  312. package/Presentation/SchedulerRenderer/SchedulerRenderer.js.map +0 -1
  313. package/Presentation/SchedulerRenderer/index.d.ts +0 -1
  314. package/Presentation/SchedulerRenderer/index.js +0 -1
  315. package/Presentation/abstractions/ISchedulerControllers.d.ts +0 -14
  316. package/Presentation/abstractions/ISchedulerControllers.js +0 -0
  317. package/Presentation/abstractions/ISchedulerPresenter.d.ts +0 -20
  318. package/Presentation/abstractions/ISchedulerPresenter.js +0 -0
  319. package/Presentation/abstractions/index.d.ts +0 -2
  320. package/Presentation/abstractions/index.js +0 -0
  321. package/Presentation/components/Actions/CancelItem/CancelItem.js.map +0 -1
  322. package/Presentation/components/BottomInfoBar/BottomInfoBar.d.ts +0 -2
  323. package/Presentation/components/BottomInfoBar/BottomInfoBar.js +0 -19
  324. package/Presentation/components/BottomInfoBar/BottomInfoBar.js.map +0 -1
  325. package/Presentation/components/BottomInfoBar/index.d.ts +0 -1
  326. package/Presentation/components/BottomInfoBar/index.js +0 -1
  327. package/Presentation/components/Empty/Empty.d.ts +0 -2
  328. package/Presentation/components/Empty/Empty.js.map +0 -1
  329. package/Presentation/components/Empty/index.d.ts +0 -1
  330. package/Presentation/components/Empty/index.js +0 -1
  331. package/Presentation/components/ScheduleDialog/IScheduleDialogPresenter.js +0 -0
  332. package/Presentation/components/ScheduleDialog/ScheduleDialogPresenter.d.ts +0 -22
  333. package/Presentation/components/ScheduleDialog/ScheduleDialogPresenter.js.map +0 -1
  334. package/Presentation/components/ScheduleDialog/index.d.ts +0 -1
  335. package/Presentation/components/ScheduleDialog/index.js +0 -1
  336. package/Presentation/components/ScheduleDialog/types.d.ts +0 -15
  337. package/Presentation/components/ScheduleDialog/types.js +0 -0
  338. package/Presentation/components/ScheduleDialog/useScheduleDialog.js.map +0 -1
  339. package/Presentation/components/SchedulerOverlay/SchedulerOverlay.d.ts +0 -7
  340. package/Presentation/components/SchedulerOverlay/SchedulerOverlay.js +0 -30
  341. package/Presentation/components/SchedulerOverlay/SchedulerOverlay.js.map +0 -1
  342. package/Presentation/components/SchedulerOverlay/index.d.ts +0 -1
  343. package/Presentation/components/SchedulerOverlay/index.js +0 -1
  344. package/Presentation/components/SearchInput/SearchInput.d.ts +0 -2
  345. package/Presentation/components/SearchInput/SearchInput.js.map +0 -1
  346. package/Presentation/components/SearchInput/index.d.ts +0 -1
  347. package/Presentation/components/SearchInput/index.js +0 -1
  348. package/Presentation/components/Table/Table.d.ts +0 -2
  349. package/Presentation/components/Table/Table.js +0 -29
  350. package/Presentation/components/Table/Table.js.map +0 -1
  351. package/Presentation/components/Table/index.d.ts +0 -1
  352. package/Presentation/components/Table/index.js +0 -1
  353. package/Presentation/configs/list/Browser/Table/index.d.ts +0 -18
  354. package/Presentation/configs/list/Browser/index.d.ts +0 -23
  355. package/Presentation/hooks/useCancelSchedulerItem.js.map +0 -1
  356. package/Presentation/hooks/useScheduler.d.ts +0 -28
  357. package/Presentation/hooks/useScheduler.js +0 -68
  358. package/Presentation/hooks/useScheduler.js.map +0 -1
  359. package/Presentation/index.js +0 -49
  360. package/Presentation/index.js.map +0 -1
  361. package/UseCases/CancelItem/CancelItemUseCase.d.ts +0 -7
  362. package/UseCases/CancelItem/CancelItemUseCase.js +0 -13
  363. package/UseCases/CancelItem/CancelItemUseCase.js.map +0 -1
  364. package/UseCases/CancelItem/ICancelItemUseCase.d.ts +0 -3
  365. package/UseCases/CancelItem/ICancelItemUseCase.js +0 -0
  366. package/UseCases/CancelItem/index.d.ts +0 -2
  367. package/UseCases/CancelItem/index.js +0 -1
  368. package/UseCases/GetItem/GetItemUseCase.d.ts +0 -8
  369. package/UseCases/GetItem/GetItemUseCase.js +0 -13
  370. package/UseCases/GetItem/GetItemUseCase.js.map +0 -1
  371. package/UseCases/GetItem/IGetItemUseCase.d.ts +0 -4
  372. package/UseCases/GetItem/IGetItemUseCase.js +0 -0
  373. package/UseCases/GetItem/index.d.ts +0 -2
  374. package/UseCases/GetItem/index.js +0 -1
  375. package/UseCases/GetScheduledItem/GetScheduledItemUseCase.d.ts +0 -7
  376. package/UseCases/GetScheduledItem/GetScheduledItemUseCase.js +0 -14
  377. package/UseCases/GetScheduledItem/GetScheduledItemUseCase.js.map +0 -1
  378. package/UseCases/GetScheduledItem/IGetScheduledItemUseCase.d.ts +0 -4
  379. package/UseCases/GetScheduledItem/IGetScheduledItemUseCase.js +0 -0
  380. package/UseCases/GetScheduledItem/index.d.ts +0 -2
  381. package/UseCases/GetScheduledItem/index.js +0 -1
  382. package/UseCases/ListItems/IListItemsUseCase.d.ts +0 -4
  383. package/UseCases/ListItems/IListItemsUseCase.js +0 -0
  384. package/UseCases/ListItems/ListItemsUseCase.d.ts +0 -8
  385. package/UseCases/ListItems/ListItemsUseCase.js +0 -13
  386. package/UseCases/ListItems/ListItemsUseCase.js.map +0 -1
  387. package/UseCases/ListItems/ListItemsUseCaseWithSearch.d.ts +0 -9
  388. package/UseCases/ListItems/ListItemsUseCaseWithSearch.js +0 -23
  389. package/UseCases/ListItems/ListItemsUseCaseWithSearch.js.map +0 -1
  390. package/UseCases/ListItems/ListItemsUseCaseWithSorting.d.ts +0 -9
  391. package/UseCases/ListItems/ListItemsUseCaseWithSorting.js +0 -21
  392. package/UseCases/ListItems/ListItemsUseCaseWithSorting.js.map +0 -1
  393. package/UseCases/ListItems/index.d.ts +0 -4
  394. package/UseCases/ListItems/index.js +0 -3
  395. package/UseCases/ListMoreItems/IListMoreItemsUseCase.d.ts +0 -3
  396. package/UseCases/ListMoreItems/IListMoreItemsUseCase.js +0 -0
  397. package/UseCases/ListMoreItems/ListMoreItemsUseCase.d.ts +0 -7
  398. package/UseCases/ListMoreItems/ListMoreItemsUseCase.js +0 -13
  399. package/UseCases/ListMoreItems/ListMoreItemsUseCase.js.map +0 -1
  400. package/UseCases/ListMoreItems/index.d.ts +0 -2
  401. package/UseCases/ListMoreItems/index.js +0 -1
  402. package/UseCases/PublishItem/IPublishItemUseCase.d.ts +0 -3
  403. package/UseCases/PublishItem/IPublishItemUseCase.js +0 -0
  404. package/UseCases/PublishItem/PublishItemUseCase.d.ts +0 -7
  405. package/UseCases/PublishItem/PublishItemUseCase.js +0 -13
  406. package/UseCases/PublishItem/PublishItemUseCase.js.map +0 -1
  407. package/UseCases/PublishItem/index.d.ts +0 -2
  408. package/UseCases/PublishItem/index.js +0 -1
  409. package/UseCases/SearchItems/ISearchItemsUseCase.d.ts +0 -3
  410. package/UseCases/SearchItems/ISearchItemsUseCase.js +0 -0
  411. package/UseCases/SearchItems/SearchItemsUseCase.d.ts +0 -7
  412. package/UseCases/SearchItems/SearchItemsUseCase.js +0 -13
  413. package/UseCases/SearchItems/SearchItemsUseCase.js.map +0 -1
  414. package/UseCases/SearchItems/index.d.ts +0 -2
  415. package/UseCases/SearchItems/index.js +0 -1
  416. package/UseCases/SelectAllItems/ISelectAllItemsUseCase.d.ts +0 -3
  417. package/UseCases/SelectAllItems/ISelectAllItemsUseCase.js +0 -0
  418. package/UseCases/SelectAllItems/SelectAllItemsUseCase.d.ts +0 -7
  419. package/UseCases/SelectAllItems/SelectAllItemsUseCase.js +0 -13
  420. package/UseCases/SelectAllItems/SelectAllItemsUseCase.js.map +0 -1
  421. package/UseCases/SelectAllItems/index.d.ts +0 -2
  422. package/UseCases/SelectAllItems/index.js +0 -1
  423. package/UseCases/SelectItems/ISelectItemsUseCase.d.ts +0 -4
  424. package/UseCases/SelectItems/ISelectItemsUseCase.js +0 -0
  425. package/UseCases/SelectItems/SelectItemsUseCase.d.ts +0 -7
  426. package/UseCases/SelectItems/SelectItemsUseCase.js +0 -13
  427. package/UseCases/SelectItems/SelectItemsUseCase.js.map +0 -1
  428. package/UseCases/SelectItems/index.d.ts +0 -2
  429. package/UseCases/SelectItems/index.js +0 -1
  430. package/UseCases/SortItems/ISortItemsUseCase.d.ts +0 -4
  431. package/UseCases/SortItems/ISortItemsUseCase.js +0 -0
  432. package/UseCases/SortItems/SortItemsUseCase.d.ts +0 -7
  433. package/UseCases/SortItems/SortItemsUseCase.js +0 -13
  434. package/UseCases/SortItems/SortItemsUseCase.js.map +0 -1
  435. package/UseCases/SortItems/index.d.ts +0 -2
  436. package/UseCases/SortItems/index.js +0 -1
  437. package/UseCases/UnSelectAllItems/IUnselectAllItemsUseCase.d.ts +0 -3
  438. package/UseCases/UnSelectAllItems/IUnselectAllItemsUseCase.js +0 -0
  439. package/UseCases/UnSelectAllItems/UnselectAllItemsUseCase.d.ts +0 -7
  440. package/UseCases/UnSelectAllItems/UnselectAllItemsUseCase.js +0 -13
  441. package/UseCases/UnSelectAllItems/UnselectAllItemsUseCase.js.map +0 -1
  442. package/UseCases/UnSelectAllItems/index.d.ts +0 -2
  443. package/UseCases/UnSelectAllItems/index.js +0 -1
  444. package/UseCases/UnpublishItem/IUnpublishItemUseCase.d.ts +0 -3
  445. package/UseCases/UnpublishItem/IUnpublishItemUseCase.js +0 -0
  446. package/UseCases/UnpublishItem/UnpublishItemUseCase.d.ts +0 -7
  447. package/UseCases/UnpublishItem/UnpublishItemUseCase.js +0 -13
  448. package/UseCases/UnpublishItem/UnpublishItemUseCase.js.map +0 -1
  449. package/UseCases/UnpublishItem/index.d.ts +0 -2
  450. package/UseCases/UnpublishItem/index.js +0 -1
  451. package/UseCases/index.d.ts +0 -11
  452. package/UseCases/index.js +0 -11
  453. /package/{Presentation → presentation}/SchedulerConfigs/SchedulerConfigs.d.ts +0 -0
  454. /package/{Presentation → presentation}/SchedulerConfigs/SchedulerConfigs.js +0 -0
  455. /package/{Presentation → presentation}/SchedulerConfigs/index.d.ts +0 -0
  456. /package/{Presentation → presentation}/SchedulerConfigs/index.js +0 -0
  457. /package/{Presentation → presentation}/components/Actions/CancelItem/CancelItem.d.ts +0 -0
  458. /package/{Presentation → presentation}/components/Actions/CancelItem/index.d.ts +0 -0
  459. /package/{Presentation → presentation}/components/Actions/CancelItem/index.js +0 -0
  460. /package/{Presentation → presentation}/components/Actions/index.d.ts +0 -0
  461. /package/{Presentation → presentation}/components/Actions/index.js +0 -0
  462. /package/{Presentation → presentation}/components/BottomInfoBar/BottomInfoBar.styled.d.ts +0 -0
  463. /package/{Presentation → presentation}/components/BottomInfoBar/BottomInfoBar.styled.js +0 -0
  464. /package/{Presentation → presentation}/components/BottomInfoBar/ListMeta.d.ts +0 -0
  465. /package/{Presentation → presentation}/components/BottomInfoBar/ListMeta.js +0 -0
  466. /package/{Presentation → presentation}/components/BottomInfoBar/ListStatus.d.ts +0 -0
  467. /package/{Presentation → presentation}/components/BottomInfoBar/ListStatus.js +0 -0
  468. /package/{Presentation → presentation}/components/Cells/CellActions/CellActions.d.ts +0 -0
  469. /package/{Presentation → presentation}/components/Cells/CellActions/CellActions.js +0 -0
  470. /package/{Presentation → presentation}/components/Cells/CellActions/index.d.ts +0 -0
  471. /package/{Presentation → presentation}/components/Cells/CellActions/index.js +0 -0
  472. /package/{Presentation → presentation}/components/Cells/CellRevision/CellRevision.d.ts +0 -0
  473. /package/{Presentation → presentation}/components/Cells/CellRevision/CellRevision.js +0 -0
  474. /package/{Presentation → presentation}/components/Cells/CellRevision/CellRevision.styled.d.ts +0 -0
  475. /package/{Presentation → presentation}/components/Cells/CellRevision/CellRevision.styled.js +0 -0
  476. /package/{Presentation → presentation}/components/Cells/CellRevision/index.d.ts +0 -0
  477. /package/{Presentation → presentation}/components/Cells/CellRevision/index.js +0 -0
  478. /package/{Presentation → presentation}/components/Cells/CellScheduledBy/CellScheduledBy.d.ts +0 -0
  479. /package/{Presentation → presentation}/components/Cells/CellScheduledBy/CellScheduledBy.js +0 -0
  480. /package/{Presentation → presentation}/components/Cells/CellScheduledBy/index.d.ts +0 -0
  481. /package/{Presentation → presentation}/components/Cells/CellScheduledBy/index.js +0 -0
  482. /package/{Presentation → presentation}/components/Cells/CellScheduledOn/CellScheduledOn.d.ts +0 -0
  483. /package/{Presentation → presentation}/components/Cells/CellScheduledOn/CellScheduledOn.js +0 -0
  484. /package/{Presentation → presentation}/components/Cells/CellScheduledOn/index.d.ts +0 -0
  485. /package/{Presentation → presentation}/components/Cells/CellScheduledOn/index.js +0 -0
  486. /package/{Presentation → presentation}/components/Cells/CellTitle/CellTitle.d.ts +0 -0
  487. /package/{Presentation → presentation}/components/Cells/CellTitle/CellTitle.js +0 -0
  488. /package/{Presentation → presentation}/components/Cells/CellTitle/CellTitle.styled.d.ts +0 -0
  489. /package/{Presentation → presentation}/components/Cells/CellTitle/CellTitle.styled.js +0 -0
  490. /package/{Presentation → presentation}/components/Cells/CellTitle/index.d.ts +0 -0
  491. /package/{Presentation → presentation}/components/Cells/CellTitle/index.js +0 -0
  492. /package/{Presentation → presentation}/components/Cells/CellType/CellActionType.d.ts +0 -0
  493. /package/{Presentation → presentation}/components/Cells/CellType/CellActionType.js +0 -0
  494. /package/{Presentation → presentation}/components/Cells/CellType/CellActionType.styled.d.ts +0 -0
  495. /package/{Presentation → presentation}/components/Cells/CellType/CellActionType.styled.js +0 -0
  496. /package/{Presentation → presentation}/components/Cells/CellType/index.d.ts +0 -0
  497. /package/{Presentation → presentation}/components/Cells/CellType/index.js +0 -0
  498. /package/{Presentation → presentation}/components/Cells/index.d.ts +0 -0
  499. /package/{Presentation → presentation}/components/Cells/index.js +0 -0
  500. /package/{Presentation → presentation}/components/Empty/Empty.styled.d.ts +0 -0
  501. /package/{Presentation → presentation}/components/Empty/Empty.styled.js +0 -0
  502. /package/{Presentation → presentation}/components/Title/Title.d.ts +0 -0
  503. /package/{Presentation → presentation}/components/Title/Title.js +0 -0
  504. /package/{Presentation → presentation}/components/Title/Title.styled.d.ts +0 -0
  505. /package/{Presentation → presentation}/components/Title/Title.styled.js +0 -0
  506. /package/{Presentation → presentation}/components/Title/index.d.ts +0 -0
  507. /package/{Presentation → presentation}/components/Title/index.js +0 -0
  508. /package/{Presentation → presentation}/configs/index.d.ts +0 -0
  509. /package/{Presentation → presentation}/configs/index.js +0 -0
  510. /package/{Presentation → presentation}/configs/list/Browser/EntryAction.js +0 -0
  511. /package/{Presentation → presentation}/configs/list/Browser/Table/Column.js +0 -0
  512. /package/{Presentation → presentation}/configs/list/Browser/Table/Sorting.d.ts +0 -0
  513. /package/{Presentation → presentation}/configs/list/Browser/Table/Sorting.js +0 -0
  514. /package/{Presentation → presentation}/configs/list/Browser/Table/index.js +0 -0
  515. /package/{Presentation → presentation}/configs/list/Browser/index.js +0 -0
  516. /package/{Presentation → presentation}/configs/list/SchedulerListConfig.js +0 -0
  517. /package/{Presentation → presentation}/configs/list/index.d.ts +0 -0
  518. /package/{Presentation → presentation}/configs/list/index.js +0 -0
  519. /package/{Presentation → presentation}/hooks/useCancelSchedulerItem.d.ts +0 -0
  520. /package/{Presentation → presentation}/hooks/useSchedulerItem.d.ts +0 -0
  521. /package/{Presentation → presentation}/hooks/useSchedulerItem.js +0 -0
@@ -1,5 +1,5 @@
1
1
  import zod from "zod";
2
- import { ScheduleActionType } from "../../types.js";
2
+ import { ScheduleActionType } from "../types.js";
3
3
  export declare const schedulerEntrySchema: zod.ZodObject<{
4
4
  id: zod.ZodString;
5
5
  targetId: zod.ZodString;
@@ -1,5 +1,5 @@
1
1
  import zod from "zod";
2
- import { ScheduleActionType } from "../../types.js";
2
+ import { ScheduleActionType } from "../types.js";
3
3
  const schedulerEntrySchema = zod.object({
4
4
  id: zod.string(),
5
5
  targetId: zod.string(),
@@ -0,0 +1 @@
1
+ {"version":3,"file":"domain/schedulerEntry.js","sources":["../../src/domain/schedulerEntry.ts"],"sourcesContent":["import zod from \"zod\";\nimport { ScheduleActionType } from \"~/types.js\";\n\nexport const schedulerEntrySchema = zod.object({\n id: zod.string(),\n targetId: zod.string(),\n namespace: zod.string(),\n scheduledBy: zod.object({\n id: zod.string(),\n displayName: zod.string(),\n type: zod.string()\n }),\n publishOn: zod\n .string()\n .nullable()\n .optional()\n .transform(value => {\n return !!value ? new Date(value) : undefined;\n }),\n unpublishOn: zod\n .string()\n .nullable()\n .optional()\n .transform(value => {\n return !!value ? new Date(value) : undefined;\n }),\n actionType: zod.enum(ScheduleActionType),\n title: zod.string()\n});\n"],"names":["schedulerEntrySchema","zod","value","Date","undefined","ScheduleActionType"],"mappings":";;AAGO,MAAMA,uBAAuBC,IAAI,MAAM,CAAC;IAC3C,IAAIA,IAAI,MAAM;IACd,UAAUA,IAAI,MAAM;IACpB,WAAWA,IAAI,MAAM;IACrB,aAAaA,IAAI,MAAM,CAAC;QACpB,IAAIA,IAAI,MAAM;QACd,aAAaA,IAAI,MAAM;QACvB,MAAMA,IAAI,MAAM;IACpB;IACA,WAAWA,IAAAA,MACA,GACN,QAAQ,GACR,QAAQ,GACR,SAAS,CAACC,CAAAA,QACA,AAAEA,QAAQ,IAAIC,KAAKD,SAASE;IAE3C,aAAaH,IAAAA,MACF,GACN,QAAQ,GACR,QAAQ,GACR,SAAS,CAACC,CAAAA,QACA,AAAEA,QAAQ,IAAIC,KAAKD,SAASE;IAE3C,YAAYH,GAAG,CAAHA,OAAQ,CAACI;IACrB,OAAOJ,IAAI,MAAM;AACrB"}
@@ -0,0 +1,11 @@
1
+ import { MainGraphQLClient } from "@webiny/app/features/mainGraphQLClient/abstractions.js";
2
+ import { CancelScheduledActionGateway as GatewayAbstraction, type ICancelScheduledActionGatewayParams } from "./abstractions.js";
3
+ declare class CancelScheduledActionGatewayImpl implements GatewayAbstraction.Interface {
4
+ private client;
5
+ constructor(client: MainGraphQLClient.Interface);
6
+ execute(params: ICancelScheduledActionGatewayParams): Promise<void>;
7
+ }
8
+ export declare const CancelScheduledActionGateway: typeof CancelScheduledActionGatewayImpl & {
9
+ __abstraction: import("@webiny/di").Abstraction<import("./abstractions.js").ICancelScheduledActionGateway>;
10
+ };
11
+ export {};
@@ -0,0 +1,41 @@
1
+ import { MainGraphQLClient } from "@webiny/app/features/mainGraphQLClient/abstractions.js";
2
+ import { ERROR_FIELDS } from "../graphqlFields.js";
3
+ import { CancelScheduledActionGateway } from "./abstractions.js";
4
+ const CANCEL_SCHEDULED_ACTION_MUTATION = `
5
+ mutation ScheduleCancelAction($namespace: String!, $id: ID!) {
6
+ scheduler {
7
+ cancelScheduledAction(namespace: $namespace, id: $id) {
8
+ data
9
+ error {
10
+ ${ERROR_FIELDS}
11
+ }
12
+ }
13
+ }
14
+ }
15
+ `;
16
+ class CancelScheduledActionGatewayImpl {
17
+ constructor(client){
18
+ this.client = client;
19
+ }
20
+ async execute(params) {
21
+ const response = await this.client.execute({
22
+ query: CANCEL_SCHEDULED_ACTION_MUTATION,
23
+ variables: {
24
+ namespace: params.namespace,
25
+ id: params.id
26
+ }
27
+ });
28
+ const result = response?.scheduler?.cancelScheduledAction;
29
+ if (!result) throw new Error("Network error while canceling a scheduled action.");
30
+ if (!result.data) throw new Error(result.error?.message || "Could not cancel scheduled action.");
31
+ }
32
+ }
33
+ const CancelScheduledActionGateway_CancelScheduledActionGateway = CancelScheduledActionGateway.createImplementation({
34
+ implementation: CancelScheduledActionGatewayImpl,
35
+ dependencies: [
36
+ MainGraphQLClient
37
+ ]
38
+ });
39
+ export { CancelScheduledActionGateway_CancelScheduledActionGateway as CancelScheduledActionGateway };
40
+
41
+ //# sourceMappingURL=CancelScheduledActionGateway.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/cancelScheduledAction/CancelScheduledActionGateway.js","sources":["../../../src/features/cancelScheduledAction/CancelScheduledActionGateway.ts"],"sourcesContent":["import { MainGraphQLClient } from \"@webiny/app/features/mainGraphQLClient/abstractions.js\";\nimport { ERROR_FIELDS } from \"~/features/graphqlFields.js\";\nimport {\n CancelScheduledActionGateway as GatewayAbstraction,\n type ICancelScheduledActionGatewayParams\n} from \"./abstractions.js\";\nimport type { SchedulerErrorResponse } from \"~/types.js\";\n\nconst CANCEL_SCHEDULED_ACTION_MUTATION = /* GraphQL */ `\n mutation ScheduleCancelAction($namespace: String!, $id: ID!) {\n scheduler {\n cancelScheduledAction(namespace: $namespace, id: $id) {\n data\n error {\n ${ERROR_FIELDS}\n }\n }\n }\n }\n`;\n\ninterface CancelScheduledActionResponse {\n scheduler: {\n cancelScheduledAction: {\n data: boolean | null;\n error: SchedulerErrorResponse | null;\n };\n };\n}\n\nclass CancelScheduledActionGatewayImpl implements GatewayAbstraction.Interface {\n constructor(private client: MainGraphQLClient.Interface) {}\n\n async execute(params: ICancelScheduledActionGatewayParams): Promise<void> {\n const response = await this.client.execute<CancelScheduledActionResponse>({\n query: CANCEL_SCHEDULED_ACTION_MUTATION,\n variables: {\n namespace: params.namespace,\n id: params.id\n }\n });\n\n const result = response?.scheduler?.cancelScheduledAction;\n if (!result) {\n throw new Error(\"Network error while canceling a scheduled action.\");\n }\n\n if (!result.data) {\n throw new Error(result.error?.message || \"Could not cancel scheduled action.\");\n }\n }\n}\n\nexport const CancelScheduledActionGateway = GatewayAbstraction.createImplementation({\n implementation: CancelScheduledActionGatewayImpl,\n dependencies: [MainGraphQLClient]\n});\n"],"names":["CANCEL_SCHEDULED_ACTION_MUTATION","ERROR_FIELDS","CancelScheduledActionGatewayImpl","client","params","response","result","Error","CancelScheduledActionGateway","GatewayAbstraction","MainGraphQLClient"],"mappings":";;;AAQA,MAAMA,mCAAiD,CAAC;;;;;;oBAMpC,EAAEC,aAAa;;;;;AAKnC,CAAC;AAWD,MAAMC;IACF,YAAoBC,MAAmC,CAAE;aAArCA,MAAM,GAANA;IAAsC;IAE1D,MAAM,QAAQC,MAA2C,EAAiB;QACtE,MAAMC,WAAW,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAgC;YACtE,OAAOL;YACP,WAAW;gBACP,WAAWI,OAAO,SAAS;gBAC3B,IAAIA,OAAO,EAAE;YACjB;QACJ;QAEA,MAAME,SAASD,UAAU,WAAW;QACpC,IAAI,CAACC,QACD,MAAM,IAAIC,MAAM;QAGpB,IAAI,CAACD,OAAO,IAAI,EACZ,MAAM,IAAIC,MAAMD,OAAO,KAAK,EAAE,WAAW;IAEjD;AACJ;AAEO,MAAME,4DAA+BC,6BAAAA,oBAAuC,CAAC;IAChF,gBAAgBP;IAChB,cAAc;QAACQ;KAAkB;AACrC"}
@@ -0,0 +1,11 @@
1
+ export interface ICancelScheduledActionGatewayParams {
2
+ namespace: string;
3
+ id: string;
4
+ }
5
+ export interface ICancelScheduledActionGateway {
6
+ execute(params: ICancelScheduledActionGatewayParams): Promise<void>;
7
+ }
8
+ export declare const CancelScheduledActionGateway: import("@webiny/di").Abstraction<ICancelScheduledActionGateway>;
9
+ export declare namespace CancelScheduledActionGateway {
10
+ type Interface = ICancelScheduledActionGateway;
11
+ }
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/admin";
2
+ const CancelScheduledActionGateway = createAbstraction("Scheduler/CancelScheduledActionGateway");
3
+ export { CancelScheduledActionGateway };
4
+
5
+ //# sourceMappingURL=abstractions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/cancelScheduledAction/abstractions.js","sources":["../../../src/features/cancelScheduledAction/abstractions.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/admin\";\n\nexport interface ICancelScheduledActionGatewayParams {\n namespace: string;\n id: string;\n}\n\nexport interface ICancelScheduledActionGateway {\n execute(params: ICancelScheduledActionGatewayParams): Promise<void>;\n}\n\nexport const CancelScheduledActionGateway = createAbstraction<ICancelScheduledActionGateway>(\n \"Scheduler/CancelScheduledActionGateway\"\n);\n\nexport namespace CancelScheduledActionGateway {\n export type Interface = ICancelScheduledActionGateway;\n}\n"],"names":["CancelScheduledActionGateway","createAbstraction"],"mappings":";AAWO,MAAMA,+BAA+BC,kBACxC"}
@@ -0,0 +1 @@
1
+ export declare const CancelScheduledActionFeature: import("@webiny/feature/admin").FeatureDefinition<any, []>;
@@ -0,0 +1,11 @@
1
+ import { createFeature } from "@webiny/feature/admin";
2
+ import { CancelScheduledActionGateway } from "./CancelScheduledActionGateway.js";
3
+ const CancelScheduledActionFeature = createFeature({
4
+ name: "Scheduler/CancelScheduledAction",
5
+ register (container) {
6
+ container.register(CancelScheduledActionGateway).inSingletonScope();
7
+ }
8
+ });
9
+ export { CancelScheduledActionFeature };
10
+
11
+ //# sourceMappingURL=feature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/cancelScheduledAction/feature.js","sources":["../../../src/features/cancelScheduledAction/feature.ts"],"sourcesContent":["import { createFeature } from \"@webiny/feature/admin\";\nimport { CancelScheduledActionGateway } from \"./CancelScheduledActionGateway.js\";\n\nexport const CancelScheduledActionFeature = createFeature({\n name: \"Scheduler/CancelScheduledAction\",\n register(container) {\n container.register(CancelScheduledActionGateway).inSingletonScope();\n }\n});\n"],"names":["CancelScheduledActionFeature","createFeature","container","CancelScheduledActionGateway"],"mappings":";;AAGO,MAAMA,+BAA+BC,cAAc;IACtD,MAAM;IACN,UAASC,SAAS;QACdA,UAAU,QAAQ,CAACC,8BAA8B,gBAAgB;IACrE;AACJ"}
@@ -0,0 +1 @@
1
+ export declare const SchedulerFeature: import("@webiny/feature/admin").FeatureDefinition<any, []>;
@@ -0,0 +1,19 @@
1
+ import { createFeature } from "@webiny/feature/admin";
2
+ import { ListScheduledActionsFeature } from "./listScheduledActions/feature.js";
3
+ import { GetScheduledActionFeature } from "./getScheduledAction/feature.js";
4
+ import { SchedulePublishActionFeature } from "./schedulePublishAction/feature.js";
5
+ import { ScheduleUnpublishActionFeature } from "./scheduleUnpublishAction/feature.js";
6
+ import { CancelScheduledActionFeature } from "./cancelScheduledAction/feature.js";
7
+ const SchedulerFeature = createFeature({
8
+ name: "Scheduler",
9
+ register (container) {
10
+ ListScheduledActionsFeature.register(container);
11
+ GetScheduledActionFeature.register(container);
12
+ SchedulePublishActionFeature.register(container);
13
+ ScheduleUnpublishActionFeature.register(container);
14
+ CancelScheduledActionFeature.register(container);
15
+ }
16
+ });
17
+ export { SchedulerFeature };
18
+
19
+ //# sourceMappingURL=feature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/feature.js","sources":["../../src/features/feature.ts"],"sourcesContent":["import { createFeature } from \"@webiny/feature/admin\";\nimport { ListScheduledActionsFeature } from \"./listScheduledActions/feature.js\";\nimport { GetScheduledActionFeature } from \"./getScheduledAction/feature.js\";\nimport { SchedulePublishActionFeature } from \"./schedulePublishAction/feature.js\";\nimport { ScheduleUnpublishActionFeature } from \"./scheduleUnpublishAction/feature.js\";\nimport { CancelScheduledActionFeature } from \"./cancelScheduledAction/feature.js\";\n\nexport const SchedulerFeature = createFeature({\n name: \"Scheduler\",\n register(container) {\n ListScheduledActionsFeature.register(container);\n GetScheduledActionFeature.register(container);\n SchedulePublishActionFeature.register(container);\n ScheduleUnpublishActionFeature.register(container);\n CancelScheduledActionFeature.register(container);\n }\n});\n"],"names":["SchedulerFeature","createFeature","container","ListScheduledActionsFeature","GetScheduledActionFeature","SchedulePublishActionFeature","ScheduleUnpublishActionFeature","CancelScheduledActionFeature"],"mappings":";;;;;;AAOO,MAAMA,mBAAmBC,cAAc;IAC1C,MAAM;IACN,UAASC,SAAS;QACdC,4BAA4B,QAAQ,CAACD;QACrCE,0BAA0B,QAAQ,CAACF;QACnCG,6BAA6B,QAAQ,CAACH;QACtCI,+BAA+B,QAAQ,CAACJ;QACxCK,6BAA6B,QAAQ,CAACL;IAC1C;AACJ"}
@@ -0,0 +1,11 @@
1
+ import { MainGraphQLClient } from "@webiny/app/features/mainGraphQLClient/abstractions.js";
2
+ import { GetScheduledActionGateway as GatewayAbstraction, type IGetScheduledActionGatewayExecuteParams, type IGetScheduledActionGatewayResponse } from "./abstractions.js";
3
+ declare class GetScheduledActionGatewayImpl implements GatewayAbstraction.Interface {
4
+ private client;
5
+ constructor(client: MainGraphQLClient.Interface);
6
+ execute(params: IGetScheduledActionGatewayExecuteParams): Promise<IGetScheduledActionGatewayResponse>;
7
+ }
8
+ export declare const GetScheduledActionGateway: typeof GetScheduledActionGatewayImpl & {
9
+ __abstraction: import("@webiny/di").Abstraction<import("./abstractions.js").IGetScheduledActionGateway>;
10
+ };
11
+ export {};
@@ -0,0 +1,57 @@
1
+ import { MainGraphQLClient } from "@webiny/app/features/mainGraphQLClient/abstractions.js";
2
+ import zod from "zod";
3
+ import { createZodError } from "@webiny/utils/createZodError.js";
4
+ import { schedulerEntrySchema } from "../../domain/schedulerEntry.js";
5
+ import { ERROR_FIELDS, SCHEDULER_ENTRY_FIELDS } from "../graphqlFields.js";
6
+ import { GetScheduledActionGateway } from "./abstractions.js";
7
+ const GET_SCHEDULED_ACTION_QUERY = `
8
+ query GetTargetScheduledActionQuery($namespace: String!, $id: ID!) {
9
+ scheduler {
10
+ getTargetScheduledAction(namespace: $namespace, id: $id) {
11
+ data {
12
+ ${SCHEDULER_ENTRY_FIELDS}
13
+ }
14
+ error {
15
+ ${ERROR_FIELDS}
16
+ }
17
+ }
18
+ }
19
+ }
20
+ `;
21
+ const schema = zod.object({
22
+ data: schedulerEntrySchema
23
+ });
24
+ class GetScheduledActionGatewayImpl {
25
+ constructor(client){
26
+ this.client = client;
27
+ }
28
+ async execute(params) {
29
+ const response = await this.client.execute({
30
+ query: GET_SCHEDULED_ACTION_QUERY,
31
+ variables: {
32
+ namespace: params.namespace,
33
+ id: params.id
34
+ }
35
+ });
36
+ const result = response?.scheduler?.getTargetScheduledAction;
37
+ if (!result) throw new Error("Network error while getting scheduled action.");
38
+ if (result.error) throw new Error(result.error.message || "Could not fetch scheduled action.");
39
+ if (!result.data) return null;
40
+ const validated = await schema.safeParseAsync(result);
41
+ if (!validated.success) {
42
+ const err = createZodError(validated.error);
43
+ console.error(err);
44
+ throw err;
45
+ }
46
+ return validated.data.data;
47
+ }
48
+ }
49
+ const GetScheduledActionGateway_GetScheduledActionGateway = GetScheduledActionGateway.createImplementation({
50
+ implementation: GetScheduledActionGatewayImpl,
51
+ dependencies: [
52
+ MainGraphQLClient
53
+ ]
54
+ });
55
+ export { GetScheduledActionGateway_GetScheduledActionGateway as GetScheduledActionGateway };
56
+
57
+ //# sourceMappingURL=GetScheduledActionGateway.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/getScheduledAction/GetScheduledActionGateway.js","sources":["../../../src/features/getScheduledAction/GetScheduledActionGateway.ts"],"sourcesContent":["import { MainGraphQLClient } from \"@webiny/app/features/mainGraphQLClient/abstractions.js\";\nimport zod from \"zod\";\nimport { createZodError } from \"@webiny/utils/createZodError.js\";\nimport { schedulerEntrySchema } from \"~/domain/schedulerEntry.js\";\nimport { SCHEDULER_ENTRY_FIELDS, ERROR_FIELDS } from \"~/features/graphqlFields.js\";\nimport {\n GetScheduledActionGateway as GatewayAbstraction,\n type IGetScheduledActionGatewayExecuteParams,\n type IGetScheduledActionGatewayResponse\n} from \"./abstractions.js\";\nimport type { SchedulerEntry, SchedulerErrorResponse } from \"~/types.js\";\n\nconst GET_SCHEDULED_ACTION_QUERY = /* GraphQL */ `\n query GetTargetScheduledActionQuery($namespace: String!, $id: ID!) {\n scheduler {\n getTargetScheduledAction(namespace: $namespace, id: $id) {\n data {\n ${SCHEDULER_ENTRY_FIELDS}\n }\n error {\n ${ERROR_FIELDS}\n }\n }\n }\n }\n`;\n\ninterface GetScheduledActionResponse {\n scheduler: {\n getTargetScheduledAction: {\n data: SchedulerEntry | null;\n error: SchedulerErrorResponse | null;\n };\n };\n}\n\nconst schema = zod.object({\n data: schedulerEntrySchema\n});\n\nclass GetScheduledActionGatewayImpl implements GatewayAbstraction.Interface {\n constructor(private client: MainGraphQLClient.Interface) {}\n\n async execute(\n params: IGetScheduledActionGatewayExecuteParams\n ): Promise<IGetScheduledActionGatewayResponse> {\n const response = await this.client.execute<GetScheduledActionResponse>({\n query: GET_SCHEDULED_ACTION_QUERY,\n variables: {\n namespace: params.namespace,\n id: params.id\n }\n });\n\n const result = response?.scheduler?.getTargetScheduledAction;\n if (!result) {\n throw new Error(\"Network error while getting scheduled action.\");\n }\n\n if (result.error) {\n throw new Error(result.error.message || \"Could not fetch scheduled action.\");\n }\n\n if (!result.data) {\n return null;\n }\n\n const validated = await schema.safeParseAsync(result);\n if (!validated.success) {\n const err = createZodError(validated.error);\n console.error(err);\n throw err;\n }\n\n return validated.data.data;\n }\n}\n\nexport const GetScheduledActionGateway = GatewayAbstraction.createImplementation({\n implementation: GetScheduledActionGatewayImpl,\n dependencies: [MainGraphQLClient]\n});\n"],"names":["GET_SCHEDULED_ACTION_QUERY","SCHEDULER_ENTRY_FIELDS","ERROR_FIELDS","schema","zod","schedulerEntrySchema","GetScheduledActionGatewayImpl","client","params","response","result","Error","validated","err","createZodError","console","GetScheduledActionGateway","GatewayAbstraction","MainGraphQLClient"],"mappings":";;;;;;AAYA,MAAMA,6BAA2C,CAAC;;;;;oBAK9B,EAAEC,uBAAuB;;;oBAGzB,EAAEC,aAAa;;;;;AAKnC,CAAC;AAWD,MAAMC,SAASC,IAAI,MAAM,CAAC;IACtB,MAAMC;AACV;AAEA,MAAMC;IACF,YAAoBC,MAAmC,CAAE;aAArCA,MAAM,GAANA;IAAsC;IAE1D,MAAM,QACFC,MAA+C,EACJ;QAC3C,MAAMC,WAAW,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAA6B;YACnE,OAAOT;YACP,WAAW;gBACP,WAAWQ,OAAO,SAAS;gBAC3B,IAAIA,OAAO,EAAE;YACjB;QACJ;QAEA,MAAME,SAASD,UAAU,WAAW;QACpC,IAAI,CAACC,QACD,MAAM,IAAIC,MAAM;QAGpB,IAAID,OAAO,KAAK,EACZ,MAAM,IAAIC,MAAMD,OAAO,KAAK,CAAC,OAAO,IAAI;QAG5C,IAAI,CAACA,OAAO,IAAI,EACZ,OAAO;QAGX,MAAME,YAAY,MAAMT,OAAO,cAAc,CAACO;QAC9C,IAAI,CAACE,UAAU,OAAO,EAAE;YACpB,MAAMC,MAAMC,eAAeF,UAAU,KAAK;YAC1CG,QAAQ,KAAK,CAACF;YACd,MAAMA;QACV;QAEA,OAAOD,UAAU,IAAI,CAAC,IAAI;IAC9B;AACJ;AAEO,MAAMI,sDAA4BC,0BAAAA,oBAAuC,CAAC;IAC7E,gBAAgBX;IAChB,cAAc;QAACY;KAAkB;AACrC"}
@@ -7,3 +7,7 @@ export type IGetScheduledActionGatewayResponse = SchedulerEntry | null;
7
7
  export interface IGetScheduledActionGateway {
8
8
  execute(params: IGetScheduledActionGatewayExecuteParams): Promise<IGetScheduledActionGatewayResponse>;
9
9
  }
10
+ export declare const GetScheduledActionGateway: import("@webiny/di").Abstraction<IGetScheduledActionGateway>;
11
+ export declare namespace GetScheduledActionGateway {
12
+ type Interface = IGetScheduledActionGateway;
13
+ }
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/admin";
2
+ const GetScheduledActionGateway = createAbstraction("Scheduler/GetScheduledActionGateway");
3
+ export { GetScheduledActionGateway };
4
+
5
+ //# sourceMappingURL=abstractions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/getScheduledAction/abstractions.js","sources":["../../../src/features/getScheduledAction/abstractions.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/admin\";\nimport type { SchedulerEntry } from \"~/types.js\";\n\nexport interface IGetScheduledActionGatewayExecuteParams {\n namespace: string;\n id: string;\n}\n\nexport type IGetScheduledActionGatewayResponse = SchedulerEntry | null;\n\nexport interface IGetScheduledActionGateway {\n execute(\n params: IGetScheduledActionGatewayExecuteParams\n ): Promise<IGetScheduledActionGatewayResponse>;\n}\n\nexport const GetScheduledActionGateway = createAbstraction<IGetScheduledActionGateway>(\n \"Scheduler/GetScheduledActionGateway\"\n);\n\nexport namespace GetScheduledActionGateway {\n export type Interface = IGetScheduledActionGateway;\n}\n"],"names":["GetScheduledActionGateway","createAbstraction"],"mappings":";AAgBO,MAAMA,4BAA4BC,kBACrC"}
@@ -0,0 +1 @@
1
+ export declare const GetScheduledActionFeature: import("@webiny/feature/admin").FeatureDefinition<any, []>;
@@ -0,0 +1,11 @@
1
+ import { createFeature } from "@webiny/feature/admin";
2
+ import { GetScheduledActionGateway } from "./GetScheduledActionGateway.js";
3
+ const GetScheduledActionFeature = createFeature({
4
+ name: "Scheduler/GetScheduledAction",
5
+ register (container) {
6
+ container.register(GetScheduledActionGateway).inSingletonScope();
7
+ }
8
+ });
9
+ export { GetScheduledActionFeature };
10
+
11
+ //# sourceMappingURL=feature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/getScheduledAction/feature.js","sources":["../../../src/features/getScheduledAction/feature.ts"],"sourcesContent":["import { createFeature } from \"@webiny/feature/admin\";\nimport { GetScheduledActionGateway } from \"./GetScheduledActionGateway.js\";\n\nexport const GetScheduledActionFeature = createFeature({\n name: \"Scheduler/GetScheduledAction\",\n register(container) {\n container.register(GetScheduledActionGateway).inSingletonScope();\n }\n});\n"],"names":["GetScheduledActionFeature","createFeature","container","GetScheduledActionGateway"],"mappings":";;AAGO,MAAMA,4BAA4BC,cAAc;IACnD,MAAM;IACN,UAASC,SAAS;QACdA,UAAU,QAAQ,CAACC,2BAA2B,gBAAgB;IAClE;AACJ"}
@@ -0,0 +1,2 @@
1
+ export declare const SCHEDULER_ENTRY_FIELDS = "\n id\n targetId\n namespace\n scheduledBy {\n id\n displayName\n type\n }\n publishOn\n unpublishOn\n actionType\n title\n";
2
+ export declare const ERROR_FIELDS = "\n message\n code\n data\n stack\n";
@@ -0,0 +1,23 @@
1
+ const SCHEDULER_ENTRY_FIELDS = `
2
+ id
3
+ targetId
4
+ namespace
5
+ scheduledBy {
6
+ id
7
+ displayName
8
+ type
9
+ }
10
+ publishOn
11
+ unpublishOn
12
+ actionType
13
+ title
14
+ `;
15
+ const ERROR_FIELDS = `
16
+ message
17
+ code
18
+ data
19
+ stack
20
+ `;
21
+ export { ERROR_FIELDS, SCHEDULER_ENTRY_FIELDS };
22
+
23
+ //# sourceMappingURL=graphqlFields.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/graphqlFields.js","sources":["../../src/features/graphqlFields.ts"],"sourcesContent":["export const SCHEDULER_ENTRY_FIELDS = /* GraphQL */ `\n id\n targetId\n namespace\n scheduledBy {\n id\n displayName\n type\n }\n publishOn\n unpublishOn\n actionType\n title\n`;\n\nexport const ERROR_FIELDS = /* GraphQL */ `\n message\n code\n data\n stack\n`;\n"],"names":["SCHEDULER_ENTRY_FIELDS","ERROR_FIELDS"],"mappings":"AAAO,MAAMA,yBAAuC,CAAC;;;;;;;;;;;;;AAarD,CAAC;AAEM,MAAMC,eAA6B,CAAC;;;;;AAK3C,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { MainGraphQLClient } from "@webiny/app/features/mainGraphQLClient/abstractions.js";
2
+ import { ListScheduledActionsGateway as GatewayAbstraction, type IListScheduledActionsGatewayExecuteParams, type IListScheduledActionsGatewayExecuteResponse } from "./abstractions.js";
3
+ declare class ListScheduledActionsGatewayImpl implements GatewayAbstraction.Interface {
4
+ private client;
5
+ constructor(client: MainGraphQLClient.Interface);
6
+ execute(params: IListScheduledActionsGatewayExecuteParams): Promise<IListScheduledActionsGatewayExecuteResponse>;
7
+ }
8
+ export declare const ListScheduledActionsGateway: typeof ListScheduledActionsGatewayImpl & {
9
+ __abstraction: import("@webiny/di").Abstraction<import("./abstractions.js").IListScheduledActionsGateway>;
10
+ };
11
+ export {};
@@ -0,0 +1,84 @@
1
+ import { MainGraphQLClient } from "@webiny/app/features/mainGraphQLClient/abstractions.js";
2
+ import zod from "zod";
3
+ import { createZodError } from "@webiny/utils/createZodError.js";
4
+ import { schedulerEntrySchema } from "../../domain/schedulerEntry.js";
5
+ import { ERROR_FIELDS, SCHEDULER_ENTRY_FIELDS } from "../graphqlFields.js";
6
+ import { ListScheduledActionsGateway } from "./abstractions.js";
7
+ const LIST_SCHEDULED_ACTIONS_QUERY = `
8
+ query ListScheduledActions(
9
+ $namespace: String!
10
+ $where: ListScheduledActionsWhereInput
11
+ $sort: [ListScheduledActionsSorter!]
12
+ $limit: Int
13
+ $after: String
14
+ ) {
15
+ scheduler {
16
+ listScheduledActions(
17
+ namespace: $namespace
18
+ where: $where
19
+ sort: $sort
20
+ limit: $limit
21
+ after: $after
22
+ ) {
23
+ data {
24
+ ${SCHEDULER_ENTRY_FIELDS}
25
+ }
26
+ meta {
27
+ totalCount
28
+ cursor
29
+ hasMoreItems
30
+ }
31
+ error {
32
+ ${ERROR_FIELDS}
33
+ }
34
+ }
35
+ }
36
+ }
37
+ `;
38
+ const schema = zod.object({
39
+ data: zod.array(schedulerEntrySchema),
40
+ meta: zod.object({
41
+ totalCount: zod.number(),
42
+ cursor: zod.string().nullable(),
43
+ hasMoreItems: zod.boolean()
44
+ })
45
+ });
46
+ class ListScheduledActionsGatewayImpl {
47
+ constructor(client){
48
+ this.client = client;
49
+ }
50
+ async execute(params) {
51
+ const response = await this.client.execute({
52
+ query: LIST_SCHEDULED_ACTIONS_QUERY,
53
+ variables: {
54
+ namespace: params.namespace,
55
+ where: params.where,
56
+ limit: params.limit,
57
+ after: params.after,
58
+ sort: params.sort
59
+ }
60
+ });
61
+ const result = response?.scheduler?.listScheduledActions;
62
+ if (!result) throw new Error("Network error while listing scheduled actions.");
63
+ if (!result.data || !result.meta) throw new Error(result.error?.message || "Could not list schedule actions.");
64
+ const validated = await schema.safeParseAsync(result);
65
+ if (!validated.success) {
66
+ const err = createZodError(validated.error);
67
+ console.error(err);
68
+ throw err;
69
+ }
70
+ return {
71
+ items: validated.data.data,
72
+ meta: validated.data.meta
73
+ };
74
+ }
75
+ }
76
+ const ListScheduledActionsGateway_ListScheduledActionsGateway = ListScheduledActionsGateway.createImplementation({
77
+ implementation: ListScheduledActionsGatewayImpl,
78
+ dependencies: [
79
+ MainGraphQLClient
80
+ ]
81
+ });
82
+ export { ListScheduledActionsGateway_ListScheduledActionsGateway as ListScheduledActionsGateway };
83
+
84
+ //# sourceMappingURL=ListScheduledActionsGateway.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/listScheduledActions/ListScheduledActionsGateway.js","sources":["../../../src/features/listScheduledActions/ListScheduledActionsGateway.ts"],"sourcesContent":["import { MainGraphQLClient } from \"@webiny/app/features/mainGraphQLClient/abstractions.js\";\nimport zod from \"zod\";\nimport { createZodError } from \"@webiny/utils/createZodError.js\";\nimport { schedulerEntrySchema } from \"~/domain/schedulerEntry.js\";\nimport { SCHEDULER_ENTRY_FIELDS, ERROR_FIELDS } from \"~/features/graphqlFields.js\";\nimport {\n ListScheduledActionsGateway as GatewayAbstraction,\n type IListScheduledActionsGatewayExecuteParams,\n type IListScheduledActionsGatewayExecuteResponse\n} from \"./abstractions.js\";\nimport type { SchedulerEntry, SchedulerErrorResponse, SchedulerMetaResponse } from \"~/types.js\";\n\nconst LIST_SCHEDULED_ACTIONS_QUERY = /* GraphQL */ `\n query ListScheduledActions(\n $namespace: String!\n $where: ListScheduledActionsWhereInput\n $sort: [ListScheduledActionsSorter!]\n $limit: Int\n $after: String\n ) {\n scheduler {\n listScheduledActions(\n namespace: $namespace\n where: $where\n sort: $sort\n limit: $limit\n after: $after\n ) {\n data {\n ${SCHEDULER_ENTRY_FIELDS}\n }\n meta {\n totalCount\n cursor\n hasMoreItems\n }\n error {\n ${ERROR_FIELDS}\n }\n }\n }\n }\n`;\n\ninterface ListScheduledActionsResponse {\n scheduler: {\n listScheduledActions: {\n data: SchedulerEntry[] | null;\n meta: SchedulerMetaResponse | null;\n error: SchedulerErrorResponse | null;\n };\n };\n}\n\nconst schema = zod.object({\n data: zod.array(schedulerEntrySchema),\n meta: zod.object({\n totalCount: zod.number(),\n cursor: zod.string().nullable(),\n hasMoreItems: zod.boolean()\n })\n});\n\nclass ListScheduledActionsGatewayImpl implements GatewayAbstraction.Interface {\n constructor(private client: MainGraphQLClient.Interface) {}\n\n async execute(\n params: IListScheduledActionsGatewayExecuteParams\n ): Promise<IListScheduledActionsGatewayExecuteResponse> {\n const response = await this.client.execute<ListScheduledActionsResponse>({\n query: LIST_SCHEDULED_ACTIONS_QUERY,\n variables: {\n namespace: params.namespace,\n where: params.where,\n limit: params.limit,\n after: params.after,\n sort: params.sort\n }\n });\n\n const result = response?.scheduler?.listScheduledActions;\n if (!result) {\n throw new Error(\"Network error while listing scheduled actions.\");\n }\n\n if (!result.data || !result.meta) {\n throw new Error(result.error?.message || \"Could not list schedule actions.\");\n }\n\n const validated = await schema.safeParseAsync(result);\n if (!validated.success) {\n const err = createZodError(validated.error);\n console.error(err);\n throw err;\n }\n\n return {\n items: validated.data.data,\n meta: validated.data.meta\n };\n }\n}\n\nexport const ListScheduledActionsGateway = GatewayAbstraction.createImplementation({\n implementation: ListScheduledActionsGatewayImpl,\n dependencies: [MainGraphQLClient]\n});\n"],"names":["LIST_SCHEDULED_ACTIONS_QUERY","SCHEDULER_ENTRY_FIELDS","ERROR_FIELDS","schema","zod","schedulerEntrySchema","ListScheduledActionsGatewayImpl","client","params","response","result","Error","validated","err","createZodError","console","ListScheduledActionsGateway","GatewayAbstraction","MainGraphQLClient"],"mappings":";;;;;;AAYA,MAAMA,+BAA6C,CAAC;;;;;;;;;;;;;;;;;oBAiBhC,EAAEC,uBAAuB;;;;;;;;oBAQzB,EAAEC,aAAa;;;;;AAKnC,CAAC;AAYD,MAAMC,SAASC,IAAI,MAAM,CAAC;IACtB,MAAMA,IAAI,KAAK,CAACC;IAChB,MAAMD,IAAI,MAAM,CAAC;QACb,YAAYA,IAAI,MAAM;QACtB,QAAQA,IAAI,MAAM,GAAG,QAAQ;QAC7B,cAAcA,IAAI,OAAO;IAC7B;AACJ;AAEA,MAAME;IACF,YAAoBC,MAAmC,CAAE;aAArCA,MAAM,GAANA;IAAsC;IAE1D,MAAM,QACFC,MAAiD,EACG;QACpD,MAAMC,WAAW,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAA+B;YACrE,OAAOT;YACP,WAAW;gBACP,WAAWQ,OAAO,SAAS;gBAC3B,OAAOA,OAAO,KAAK;gBACnB,OAAOA,OAAO,KAAK;gBACnB,OAAOA,OAAO,KAAK;gBACnB,MAAMA,OAAO,IAAI;YACrB;QACJ;QAEA,MAAME,SAASD,UAAU,WAAW;QACpC,IAAI,CAACC,QACD,MAAM,IAAIC,MAAM;QAGpB,IAAI,CAACD,OAAO,IAAI,IAAI,CAACA,OAAO,IAAI,EAC5B,MAAM,IAAIC,MAAMD,OAAO,KAAK,EAAE,WAAW;QAG7C,MAAME,YAAY,MAAMT,OAAO,cAAc,CAACO;QAC9C,IAAI,CAACE,UAAU,OAAO,EAAE;YACpB,MAAMC,MAAMC,eAAeF,UAAU,KAAK;YAC1CG,QAAQ,KAAK,CAACF;YACd,MAAMA;QACV;QAEA,OAAO;YACH,OAAOD,UAAU,IAAI,CAAC,IAAI;YAC1B,MAAMA,UAAU,IAAI,CAAC,IAAI;QAC7B;IACJ;AACJ;AAEO,MAAMI,0DAA8BC,4BAAAA,oBAAuC,CAAC;IAC/E,gBAAgBX;IAChB,cAAc;QAACY;KAAkB;AACrC"}
@@ -1,5 +1,4 @@
1
- import type { SchedulerEntry, SchedulerMetaResponse } from "../../types.js";
2
- import type { ScheduleActionType } from "../../types.js";
1
+ import type { SchedulerEntry, SchedulerMetaResponse, ScheduleActionType } from "../../types.js";
3
2
  export interface IListScheduledActionsExecuteParamsWhere {
4
3
  targetId?: string;
5
4
  title_contains?: string;
@@ -25,3 +24,7 @@ export interface IListScheduledActionsGatewayExecuteResponse {
25
24
  export interface IListScheduledActionsGateway {
26
25
  execute(params: IListScheduledActionsGatewayExecuteParams): Promise<IListScheduledActionsGatewayExecuteResponse>;
27
26
  }
27
+ export declare const ListScheduledActionsGateway: import("@webiny/di").Abstraction<IListScheduledActionsGateway>;
28
+ export declare namespace ListScheduledActionsGateway {
29
+ type Interface = IListScheduledActionsGateway;
30
+ }
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/admin";
2
+ const ListScheduledActionsGateway = createAbstraction("Scheduler/ListScheduledActionsGateway");
3
+ export { ListScheduledActionsGateway };
4
+
5
+ //# sourceMappingURL=abstractions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/listScheduledActions/abstractions.js","sources":["../../../src/features/listScheduledActions/abstractions.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/admin\";\nimport type { SchedulerEntry, SchedulerMetaResponse, ScheduleActionType } from \"~/types.js\";\n\nexport interface IListScheduledActionsExecuteParamsWhere {\n targetId?: string;\n title_contains?: string;\n title_not_contains?: string;\n type?: ScheduleActionType;\n scheduledBy?: string;\n scheduledFor?: Date;\n scheduledFor_gte?: Date;\n scheduledFor_lte?: Date;\n}\n\nexport type IListScheduledActionsExecuteParamsSort = \"scheduledFor_ASC\" | \"scheduledFor_DESC\";\n\nexport interface IListScheduledActionsGatewayExecuteParams {\n namespace: string;\n where?: IListScheduledActionsExecuteParamsWhere;\n sort?: IListScheduledActionsExecuteParamsSort[];\n limit?: number;\n after?: string;\n}\n\nexport interface IListScheduledActionsGatewayExecuteResponse {\n items: SchedulerEntry[];\n meta: SchedulerMetaResponse;\n}\n\nexport interface IListScheduledActionsGateway {\n execute(\n params: IListScheduledActionsGatewayExecuteParams\n ): Promise<IListScheduledActionsGatewayExecuteResponse>;\n}\n\nexport const ListScheduledActionsGateway = createAbstraction<IListScheduledActionsGateway>(\n \"Scheduler/ListScheduledActionsGateway\"\n);\n\nexport namespace ListScheduledActionsGateway {\n export type Interface = IListScheduledActionsGateway;\n}\n"],"names":["ListScheduledActionsGateway","createAbstraction"],"mappings":";AAmCO,MAAMA,8BAA8BC,kBACvC"}
@@ -0,0 +1 @@
1
+ export declare const ListScheduledActionsFeature: import("@webiny/feature/admin").FeatureDefinition<any, []>;
@@ -0,0 +1,11 @@
1
+ import { createFeature } from "@webiny/feature/admin";
2
+ import { ListScheduledActionsGateway } from "./ListScheduledActionsGateway.js";
3
+ const ListScheduledActionsFeature = createFeature({
4
+ name: "Scheduler/ListScheduledActions",
5
+ register (container) {
6
+ container.register(ListScheduledActionsGateway).inSingletonScope();
7
+ }
8
+ });
9
+ export { ListScheduledActionsFeature };
10
+
11
+ //# sourceMappingURL=feature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/listScheduledActions/feature.js","sources":["../../../src/features/listScheduledActions/feature.ts"],"sourcesContent":["import { createFeature } from \"@webiny/feature/admin\";\nimport { ListScheduledActionsGateway } from \"./ListScheduledActionsGateway.js\";\n\nexport const ListScheduledActionsFeature = createFeature({\n name: \"Scheduler/ListScheduledActions\",\n register(container) {\n container.register(ListScheduledActionsGateway).inSingletonScope();\n }\n});\n"],"names":["ListScheduledActionsFeature","createFeature","container","ListScheduledActionsGateway"],"mappings":";;AAGO,MAAMA,8BAA8BC,cAAc;IACrD,MAAM;IACN,UAASC,SAAS;QACdA,UAAU,QAAQ,CAACC,6BAA6B,gBAAgB;IACpE;AACJ"}
@@ -0,0 +1,11 @@
1
+ import { MainGraphQLClient } from "@webiny/app/features/mainGraphQLClient/abstractions.js";
2
+ import { SchedulePublishActionGateway as GatewayAbstraction, type ISchedulePublishActionGatewayExecuteParams, type ISchedulePublishActionGatewayExecuteResponse } from "./abstractions.js";
3
+ declare class SchedulePublishActionGatewayImpl implements GatewayAbstraction.Interface {
4
+ private client;
5
+ constructor(client: MainGraphQLClient.Interface);
6
+ execute(params: ISchedulePublishActionGatewayExecuteParams): Promise<ISchedulePublishActionGatewayExecuteResponse>;
7
+ }
8
+ export declare const SchedulePublishActionGateway: typeof SchedulePublishActionGatewayImpl & {
9
+ __abstraction: import("@webiny/di").Abstraction<import("./abstractions.js").ISchedulePublishActionGateway>;
10
+ };
11
+ export {};
@@ -0,0 +1,67 @@
1
+ import { MainGraphQLClient } from "@webiny/app/features/mainGraphQLClient/abstractions.js";
2
+ import zod from "zod";
3
+ import { createZodError } from "@webiny/utils/createZodError.js";
4
+ import { schedulerEntrySchema } from "../../domain/schedulerEntry.js";
5
+ import { ERROR_FIELDS, SCHEDULER_ENTRY_FIELDS } from "../graphqlFields.js";
6
+ import { SchedulePublishActionGateway } from "./abstractions.js";
7
+ import { ScheduleActionType } from "../../types.js";
8
+ const SCHEDULE_PUBLISH_ACTION_MUTATION = `
9
+ mutation CreateSchedulePublishAction(
10
+ $namespace: String!
11
+ $targetId: ID!
12
+ $scheduleFor: DateTime
13
+ $actionType: ScheduleRecordType!
14
+ ) {
15
+ scheduler {
16
+ scheduleAction(
17
+ namespace: $namespace
18
+ targetId: $targetId
19
+ scheduleFor: $scheduleFor
20
+ actionType: $actionType
21
+ ) {
22
+ data {
23
+ ${SCHEDULER_ENTRY_FIELDS}
24
+ }
25
+ error {
26
+ ${ERROR_FIELDS}
27
+ }
28
+ }
29
+ }
30
+ }
31
+ `;
32
+ const schema = zod.object({
33
+ data: schedulerEntrySchema
34
+ });
35
+ class SchedulePublishActionGatewayImpl {
36
+ constructor(client){
37
+ this.client = client;
38
+ }
39
+ async execute(params) {
40
+ const response = await this.client.execute({
41
+ query: SCHEDULE_PUBLISH_ACTION_MUTATION,
42
+ variables: {
43
+ namespace: params.namespace,
44
+ targetId: params.targetId,
45
+ scheduleFor: params.scheduleOn,
46
+ actionType: ScheduleActionType.publish
47
+ }
48
+ });
49
+ const result = response?.scheduler?.scheduleAction;
50
+ if (!result) throw new Error("Network error while scheduling an action.");
51
+ if (!result.data) throw new Error(result.error?.message || "Could execute schedule publish action.");
52
+ const validated = await schema.safeParseAsync(result);
53
+ if (!validated.success) throw createZodError(validated.error);
54
+ return {
55
+ item: validated.data.data
56
+ };
57
+ }
58
+ }
59
+ const SchedulePublishActionGateway_SchedulePublishActionGateway = SchedulePublishActionGateway.createImplementation({
60
+ implementation: SchedulePublishActionGatewayImpl,
61
+ dependencies: [
62
+ MainGraphQLClient
63
+ ]
64
+ });
65
+ export { SchedulePublishActionGateway_SchedulePublishActionGateway as SchedulePublishActionGateway };
66
+
67
+ //# sourceMappingURL=SchedulePublishActionGateway.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/schedulePublishAction/SchedulePublishActionGateway.js","sources":["../../../src/features/schedulePublishAction/SchedulePublishActionGateway.ts"],"sourcesContent":["import { MainGraphQLClient } from \"@webiny/app/features/mainGraphQLClient/abstractions.js\";\nimport zod from \"zod\";\nimport { createZodError } from \"@webiny/utils/createZodError.js\";\nimport { schedulerEntrySchema } from \"~/domain/schedulerEntry.js\";\nimport { SCHEDULER_ENTRY_FIELDS, ERROR_FIELDS } from \"~/features/graphqlFields.js\";\nimport {\n SchedulePublishActionGateway as GatewayAbstraction,\n type ISchedulePublishActionGatewayExecuteParams,\n type ISchedulePublishActionGatewayExecuteResponse\n} from \"./abstractions.js\";\nimport { type SchedulerEntry, type SchedulerErrorResponse, ScheduleActionType } from \"~/types.js\";\n\nconst SCHEDULE_PUBLISH_ACTION_MUTATION = /* GraphQL */ `\n mutation CreateSchedulePublishAction(\n $namespace: String!\n $targetId: ID!\n $scheduleFor: DateTime\n $actionType: ScheduleRecordType!\n ) {\n scheduler {\n scheduleAction(\n namespace: $namespace\n targetId: $targetId\n scheduleFor: $scheduleFor\n actionType: $actionType\n ) {\n data {\n ${SCHEDULER_ENTRY_FIELDS}\n }\n error {\n ${ERROR_FIELDS}\n }\n }\n }\n }\n`;\n\ninterface SchedulePublishActionResponse {\n scheduler: {\n scheduleAction: {\n data: SchedulerEntry | null;\n error: SchedulerErrorResponse | null;\n };\n };\n}\n\nconst schema = zod.object({\n data: schedulerEntrySchema\n});\n\nclass SchedulePublishActionGatewayImpl implements GatewayAbstraction.Interface {\n constructor(private client: MainGraphQLClient.Interface) {}\n\n async execute(\n params: ISchedulePublishActionGatewayExecuteParams\n ): Promise<ISchedulePublishActionGatewayExecuteResponse> {\n const response = await this.client.execute<SchedulePublishActionResponse>({\n query: SCHEDULE_PUBLISH_ACTION_MUTATION,\n variables: {\n namespace: params.namespace,\n targetId: params.targetId,\n scheduleFor: params.scheduleOn,\n actionType: ScheduleActionType.publish\n }\n });\n\n const result = response?.scheduler?.scheduleAction;\n if (!result) {\n throw new Error(\"Network error while scheduling an action.\");\n }\n\n if (!result.data) {\n throw new Error(result.error?.message || \"Could execute schedule publish action.\");\n }\n\n const validated = await schema.safeParseAsync(result);\n if (!validated.success) {\n throw createZodError(validated.error);\n }\n\n return {\n item: validated.data.data\n };\n }\n}\n\nexport const SchedulePublishActionGateway = GatewayAbstraction.createImplementation({\n implementation: SchedulePublishActionGatewayImpl,\n dependencies: [MainGraphQLClient]\n});\n"],"names":["SCHEDULE_PUBLISH_ACTION_MUTATION","SCHEDULER_ENTRY_FIELDS","ERROR_FIELDS","schema","zod","schedulerEntrySchema","SchedulePublishActionGatewayImpl","client","params","response","ScheduleActionType","result","Error","validated","createZodError","SchedulePublishActionGateway","GatewayAbstraction","MainGraphQLClient"],"mappings":";;;;;;;AAYA,MAAMA,mCAAiD,CAAC;;;;;;;;;;;;;;;oBAepC,EAAEC,uBAAuB;;;oBAGzB,EAAEC,aAAa;;;;;AAKnC,CAAC;AAWD,MAAMC,SAASC,IAAI,MAAM,CAAC;IACtB,MAAMC;AACV;AAEA,MAAMC;IACF,YAAoBC,MAAmC,CAAE;aAArCA,MAAM,GAANA;IAAsC;IAE1D,MAAM,QACFC,MAAkD,EACG;QACrD,MAAMC,WAAW,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAgC;YACtE,OAAOT;YACP,WAAW;gBACP,WAAWQ,OAAO,SAAS;gBAC3B,UAAUA,OAAO,QAAQ;gBACzB,aAAaA,OAAO,UAAU;gBAC9B,YAAYE,mBAAmB,OAAO;YAC1C;QACJ;QAEA,MAAMC,SAASF,UAAU,WAAW;QACpC,IAAI,CAACE,QACD,MAAM,IAAIC,MAAM;QAGpB,IAAI,CAACD,OAAO,IAAI,EACZ,MAAM,IAAIC,MAAMD,OAAO,KAAK,EAAE,WAAW;QAG7C,MAAME,YAAY,MAAMV,OAAO,cAAc,CAACQ;QAC9C,IAAI,CAACE,UAAU,OAAO,EAClB,MAAMC,eAAeD,UAAU,KAAK;QAGxC,OAAO;YACH,MAAMA,UAAU,IAAI,CAAC,IAAI;QAC7B;IACJ;AACJ;AAEO,MAAME,4DAA+BC,6BAAAA,oBAAuC,CAAC;IAChF,gBAAgBV;IAChB,cAAc;QAACW;KAAkB;AACrC"}
@@ -10,3 +10,7 @@ export interface ISchedulePublishActionGatewayExecuteResponse {
10
10
  export interface ISchedulePublishActionGateway {
11
11
  execute(params: ISchedulePublishActionGatewayExecuteParams): Promise<ISchedulePublishActionGatewayExecuteResponse>;
12
12
  }
13
+ export declare const SchedulePublishActionGateway: import("@webiny/di").Abstraction<ISchedulePublishActionGateway>;
14
+ export declare namespace SchedulePublishActionGateway {
15
+ type Interface = ISchedulePublishActionGateway;
16
+ }
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/admin";
2
+ const SchedulePublishActionGateway = createAbstraction("Scheduler/SchedulePublishActionGateway");
3
+ export { SchedulePublishActionGateway };
4
+
5
+ //# sourceMappingURL=abstractions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/schedulePublishAction/abstractions.js","sources":["../../../src/features/schedulePublishAction/abstractions.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/admin\";\nimport type { SchedulerEntry } from \"~/types.js\";\n\nexport interface ISchedulePublishActionGatewayExecuteParams {\n namespace: string;\n targetId: string;\n scheduleOn: Date;\n}\n\nexport interface ISchedulePublishActionGatewayExecuteResponse {\n item: SchedulerEntry;\n}\n\nexport interface ISchedulePublishActionGateway {\n execute(\n params: ISchedulePublishActionGatewayExecuteParams\n ): Promise<ISchedulePublishActionGatewayExecuteResponse>;\n}\n\nexport const SchedulePublishActionGateway = createAbstraction<ISchedulePublishActionGateway>(\n \"Scheduler/SchedulePublishActionGateway\"\n);\n\nexport namespace SchedulePublishActionGateway {\n export type Interface = ISchedulePublishActionGateway;\n}\n"],"names":["SchedulePublishActionGateway","createAbstraction"],"mappings":";AAmBO,MAAMA,+BAA+BC,kBACxC"}
@@ -0,0 +1 @@
1
+ export declare const SchedulePublishActionFeature: import("@webiny/feature/admin").FeatureDefinition<any, []>;
@@ -0,0 +1,11 @@
1
+ import { createFeature } from "@webiny/feature/admin";
2
+ import { SchedulePublishActionGateway } from "./SchedulePublishActionGateway.js";
3
+ const SchedulePublishActionFeature = createFeature({
4
+ name: "Scheduler/SchedulePublishAction",
5
+ register (container) {
6
+ container.register(SchedulePublishActionGateway).inSingletonScope();
7
+ }
8
+ });
9
+ export { SchedulePublishActionFeature };
10
+
11
+ //# sourceMappingURL=feature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/schedulePublishAction/feature.js","sources":["../../../src/features/schedulePublishAction/feature.ts"],"sourcesContent":["import { createFeature } from \"@webiny/feature/admin\";\nimport { SchedulePublishActionGateway } from \"./SchedulePublishActionGateway.js\";\n\nexport const SchedulePublishActionFeature = createFeature({\n name: \"Scheduler/SchedulePublishAction\",\n register(container) {\n container.register(SchedulePublishActionGateway).inSingletonScope();\n }\n});\n"],"names":["SchedulePublishActionFeature","createFeature","container","SchedulePublishActionGateway"],"mappings":";;AAGO,MAAMA,+BAA+BC,cAAc;IACtD,MAAM;IACN,UAASC,SAAS;QACdA,UAAU,QAAQ,CAACC,8BAA8B,gBAAgB;IACrE;AACJ"}