@webiny/background-tasks 6.6.0-alpha.1 → 6.6.0-alpha.11

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 (249) hide show
  1. package/api/BackgroundTasksFeature.js +42 -24
  2. package/api/BackgroundTasksFeature.js.map +1 -1
  3. package/api/crud/TaskLogPrivateModel.js +2 -1
  4. package/api/crud/TaskLogPrivateModel.js.map +1 -1
  5. package/api/crud/TaskPrivateModel.js +2 -1
  6. package/api/crud/TaskPrivateModel.js.map +1 -1
  7. package/api/decorators/SelfCleaningTaskHandlerDecorator.d.ts +33 -0
  8. package/api/decorators/{SelfCleaningTaskDecorator.js → SelfCleaningTaskHandlerDecorator.js} +15 -39
  9. package/api/decorators/SelfCleaningTaskHandlerDecorator.js.map +1 -0
  10. package/api/decorators/TaskDefinitionDefaultsDecorator.d.ts +27 -0
  11. package/api/decorators/{RunnableTaskDecorator.js → TaskDefinitionDefaultsDecorator.js} +11 -32
  12. package/api/decorators/TaskDefinitionDefaultsDecorator.js.map +1 -0
  13. package/api/domain/errors.d.ts +14 -10
  14. package/api/domain/errors.js +27 -12
  15. package/api/domain/errors.js.map +1 -1
  16. package/api/domain/task/TaskLogModelProvider.d.ts +12 -0
  17. package/api/domain/task/TaskLogModelProvider.js +23 -0
  18. package/api/domain/task/TaskLogModelProvider.js.map +1 -0
  19. package/api/domain/task/TaskLogsRepository.d.ts +34 -0
  20. package/api/domain/task/TaskLogsRepository.js +146 -0
  21. package/api/domain/task/TaskLogsRepository.js.map +1 -0
  22. package/api/domain/task/TaskModelProvider.d.ts +12 -0
  23. package/api/domain/task/TaskModelProvider.js +23 -0
  24. package/api/domain/task/TaskModelProvider.js.map +1 -0
  25. package/api/domain/task/TasksRepository.d.ts +37 -0
  26. package/api/domain/task/TasksRepository.js +126 -0
  27. package/api/domain/task/TasksRepository.js.map +1 -0
  28. package/api/domain/task/abstractions.d.ts +50 -0
  29. package/api/domain/task/abstractions.js +8 -0
  30. package/api/domain/task/abstractions.js.map +1 -0
  31. package/api/domain/task/createRevisionId.d.ts +1 -0
  32. package/api/domain/task/createRevisionId.js +8 -0
  33. package/api/domain/task/createRevisionId.js.map +1 -0
  34. package/api/domain/task/entryToTask.d.ts +3 -0
  35. package/api/domain/task/entryToTask.js +20 -0
  36. package/api/domain/task/entryToTask.js.map +1 -0
  37. package/api/domain/task/entryToTaskLog.d.ts +3 -0
  38. package/api/domain/task/entryToTaskLog.js +12 -0
  39. package/api/domain/task/entryToTaskLog.js.map +1 -0
  40. package/api/features/AbortTask/abstractions.d.ts +4 -0
  41. package/api/features/AbortTask/abstractions.js.map +1 -1
  42. package/api/features/CleanupTaskSubtree/CleanupTaskSubtreeUseCase.d.ts +25 -5
  43. package/api/features/CleanupTaskSubtree/CleanupTaskSubtreeUseCase.js +111 -5
  44. package/api/features/CleanupTaskSubtree/CleanupTaskSubtreeUseCase.js.map +1 -1
  45. package/api/features/CleanupTaskSubtree/feature.d.ts +4 -0
  46. package/api/features/CleanupTaskSubtree/feature.js +11 -0
  47. package/api/features/CleanupTaskSubtree/feature.js.map +1 -0
  48. package/api/features/CleanupTaskSubtree/index.d.ts +1 -1
  49. package/api/features/CleanupTaskSubtree/index.js +1 -1
  50. package/api/features/CreateTask/CreateTaskUseCase.d.ts +17 -0
  51. package/api/features/CreateTask/CreateTaskUseCase.js +56 -0
  52. package/api/features/CreateTask/CreateTaskUseCase.js.map +1 -0
  53. package/api/features/CreateTask/abstractions.d.ts +21 -0
  54. package/api/features/CreateTask/abstractions.js +5 -0
  55. package/api/features/CreateTask/abstractions.js.map +1 -0
  56. package/api/features/{GetTaskDefinition → CreateTask}/feature.d.ts +1 -1
  57. package/api/features/CreateTask/feature.js +11 -0
  58. package/api/features/CreateTask/feature.js.map +1 -0
  59. package/api/features/CreateTask/index.d.ts +2 -0
  60. package/api/features/CreateTask/index.js +2 -0
  61. package/api/features/CreateTaskLog/CreateTaskLogUseCase.d.ts +13 -0
  62. package/api/features/CreateTaskLog/CreateTaskLogUseCase.js +19 -0
  63. package/api/features/CreateTaskLog/CreateTaskLogUseCase.js.map +1 -0
  64. package/api/features/CreateTaskLog/abstractions.d.ts +16 -0
  65. package/api/features/CreateTaskLog/abstractions.js +5 -0
  66. package/api/features/CreateTaskLog/abstractions.js.map +1 -0
  67. package/api/features/CreateTaskLog/feature.d.ts +4 -0
  68. package/api/features/CreateTaskLog/feature.js +11 -0
  69. package/api/features/CreateTaskLog/feature.js.map +1 -0
  70. package/api/features/CreateTaskLog/index.d.ts +2 -0
  71. package/api/features/CreateTaskLog/index.js +2 -0
  72. package/api/features/DeleteTask/DeleteTaskUseCase.d.ts +14 -0
  73. package/api/features/DeleteTask/DeleteTaskUseCase.js +34 -0
  74. package/api/features/DeleteTask/DeleteTaskUseCase.js.map +1 -0
  75. package/api/features/DeleteTask/abstractions.d.ts +17 -0
  76. package/api/features/DeleteTask/abstractions.js +5 -0
  77. package/api/features/DeleteTask/abstractions.js.map +1 -0
  78. package/api/features/DeleteTask/feature.d.ts +4 -0
  79. package/api/features/DeleteTask/feature.js +11 -0
  80. package/api/features/DeleteTask/feature.js.map +1 -0
  81. package/api/features/DeleteTask/index.d.ts +2 -0
  82. package/api/features/DeleteTask/index.js +2 -0
  83. package/api/features/DeleteTaskLog/DeleteTaskLogUseCase.d.ts +11 -0
  84. package/api/features/DeleteTaskLog/DeleteTaskLogUseCase.js +19 -0
  85. package/api/features/DeleteTaskLog/DeleteTaskLogUseCase.js.map +1 -0
  86. package/api/features/DeleteTaskLog/abstractions.d.ts +14 -0
  87. package/api/features/DeleteTaskLog/abstractions.js +5 -0
  88. package/api/features/DeleteTaskLog/abstractions.js.map +1 -0
  89. package/api/features/DeleteTaskLog/feature.d.ts +4 -0
  90. package/api/features/DeleteTaskLog/feature.js +11 -0
  91. package/api/features/DeleteTaskLog/feature.js.map +1 -0
  92. package/api/features/DeleteTaskLog/index.d.ts +2 -0
  93. package/api/features/DeleteTaskLog/index.js +2 -0
  94. package/api/features/GetLatestTaskLog/GetLatestTaskLogUseCase.d.ts +11 -0
  95. package/api/features/GetLatestTaskLog/GetLatestTaskLogUseCase.js +19 -0
  96. package/api/features/GetLatestTaskLog/GetLatestTaskLogUseCase.js.map +1 -0
  97. package/api/features/GetLatestTaskLog/abstractions.d.ts +15 -0
  98. package/api/features/GetLatestTaskLog/abstractions.js +5 -0
  99. package/api/features/GetLatestTaskLog/abstractions.js.map +1 -0
  100. package/api/features/GetLatestTaskLog/feature.d.ts +4 -0
  101. package/api/features/GetLatestTaskLog/feature.js +11 -0
  102. package/api/features/GetLatestTaskLog/feature.js.map +1 -0
  103. package/api/features/GetLatestTaskLog/index.d.ts +2 -0
  104. package/api/features/GetLatestTaskLog/index.js +2 -0
  105. package/api/features/{GetTaskDefinition/GetTaskDefinitionUseCase.d.ts → GetRunnableTaskDefinition/GetRunnableTaskDefinitionUseCase.d.ts} +5 -7
  106. package/api/features/GetRunnableTaskDefinition/GetRunnableTaskDefinitionUseCase.js +51 -0
  107. package/api/features/GetRunnableTaskDefinition/GetRunnableTaskDefinitionUseCase.js.map +1 -0
  108. package/api/features/{GetTaskDefinition → GetRunnableTaskDefinition}/abstractions.d.ts +7 -8
  109. package/api/features/GetRunnableTaskDefinition/abstractions.js +5 -0
  110. package/api/features/GetRunnableTaskDefinition/abstractions.js.map +1 -0
  111. package/api/features/GetRunnableTaskDefinition/feature.d.ts +4 -0
  112. package/api/features/GetRunnableTaskDefinition/feature.js +11 -0
  113. package/api/features/GetRunnableTaskDefinition/feature.js.map +1 -0
  114. package/api/features/GetRunnableTaskDefinition/index.d.ts +2 -0
  115. package/api/features/GetRunnableTaskDefinition/index.js +2 -0
  116. package/api/features/GetTask/GetTaskUseCase.d.ts +9 -5
  117. package/api/features/GetTask/GetTaskUseCase.js +12 -4
  118. package/api/features/GetTask/GetTaskUseCase.js.map +1 -1
  119. package/api/features/GetTask/abstractions.d.ts +9 -2
  120. package/api/features/GetTask/abstractions.js.map +1 -1
  121. package/api/features/GetTask/feature.js +2 -4
  122. package/api/features/GetTask/feature.js.map +1 -1
  123. package/api/features/ListTaskLogs/ListTaskLogsUseCase.d.ts +12 -0
  124. package/api/features/ListTaskLogs/ListTaskLogsUseCase.js +19 -0
  125. package/api/features/ListTaskLogs/ListTaskLogsUseCase.js.map +1 -0
  126. package/api/features/ListTaskLogs/abstractions.d.ts +15 -0
  127. package/api/features/ListTaskLogs/abstractions.js +5 -0
  128. package/api/features/ListTaskLogs/abstractions.js.map +1 -0
  129. package/api/features/ListTaskLogs/feature.d.ts +4 -0
  130. package/api/features/ListTaskLogs/feature.js +11 -0
  131. package/api/features/ListTaskLogs/feature.js.map +1 -0
  132. package/api/features/ListTaskLogs/index.d.ts +2 -0
  133. package/api/features/ListTaskLogs/index.js +2 -0
  134. package/api/features/ListTasks/ListTasksUseCase.d.ts +9 -6
  135. package/api/features/ListTasks/ListTasksUseCase.js +12 -4
  136. package/api/features/ListTasks/ListTasksUseCase.js.map +1 -1
  137. package/api/features/ListTasks/abstractions.d.ts +9 -3
  138. package/api/features/ListTasks/abstractions.js.map +1 -1
  139. package/api/features/ListTasks/feature.js +2 -4
  140. package/api/features/ListTasks/feature.js.map +1 -1
  141. package/api/features/ListVisibleTaskDefinitions/ListVisibleTaskDefinitionsUseCase.d.ts +11 -0
  142. package/api/features/ListVisibleTaskDefinitions/ListVisibleTaskDefinitionsUseCase.js +19 -0
  143. package/api/features/ListVisibleTaskDefinitions/ListVisibleTaskDefinitionsUseCase.js.map +1 -0
  144. package/api/features/ListVisibleTaskDefinitions/abstractions.d.ts +9 -0
  145. package/api/features/ListVisibleTaskDefinitions/abstractions.js +5 -0
  146. package/api/features/ListVisibleTaskDefinitions/abstractions.js.map +1 -0
  147. package/api/features/ListVisibleTaskDefinitions/feature.d.ts +4 -0
  148. package/api/features/ListVisibleTaskDefinitions/feature.js +11 -0
  149. package/api/features/ListVisibleTaskDefinitions/feature.js.map +1 -0
  150. package/api/features/ListVisibleTaskDefinitions/index.d.ts +2 -0
  151. package/api/features/ListVisibleTaskDefinitions/index.js +2 -0
  152. package/api/features/TaskService/BackgroundTaskService.d.ts +42 -0
  153. package/api/features/TaskService/BackgroundTaskService.js +211 -0
  154. package/api/features/TaskService/BackgroundTaskService.js.map +1 -0
  155. package/api/features/TaskService/feature.d.ts +4 -0
  156. package/api/features/TaskService/feature.js +11 -0
  157. package/api/features/TaskService/feature.js.map +1 -0
  158. package/api/features/TaskService/index.d.ts +1 -0
  159. package/api/features/TaskService/index.js +1 -0
  160. package/api/features/TriggerTask/abstractions.d.ts +6 -0
  161. package/api/features/TriggerTask/abstractions.js.map +1 -1
  162. package/api/features/TriggerVisibleTask/TriggerVisibleTaskUseCase.d.ts +15 -0
  163. package/api/features/TriggerVisibleTask/TriggerVisibleTaskUseCase.js +26 -0
  164. package/api/features/TriggerVisibleTask/TriggerVisibleTaskUseCase.js.map +1 -0
  165. package/api/features/TriggerVisibleTask/abstractions.d.ts +17 -0
  166. package/api/features/TriggerVisibleTask/abstractions.js +5 -0
  167. package/api/features/TriggerVisibleTask/abstractions.js.map +1 -0
  168. package/api/features/TriggerVisibleTask/feature.d.ts +4 -0
  169. package/api/features/TriggerVisibleTask/feature.js +11 -0
  170. package/api/features/TriggerVisibleTask/feature.js.map +1 -0
  171. package/api/features/TriggerVisibleTask/index.d.ts +2 -0
  172. package/api/features/TriggerVisibleTask/index.js +2 -0
  173. package/api/features/UpdateBackgroundTaskSettings/UpdateBackgroundTaskSettingsRepository.js +3 -1
  174. package/api/features/UpdateBackgroundTaskSettings/UpdateBackgroundTaskSettingsRepository.js.map +1 -1
  175. package/api/features/UpdateTask/UpdateTaskUseCase.d.ts +17 -0
  176. package/api/features/UpdateTask/UpdateTaskUseCase.js +36 -0
  177. package/api/features/UpdateTask/UpdateTaskUseCase.js.map +1 -0
  178. package/api/features/UpdateTask/abstractions.d.ts +22 -0
  179. package/api/features/UpdateTask/abstractions.js +5 -0
  180. package/api/features/UpdateTask/abstractions.js.map +1 -0
  181. package/api/features/UpdateTask/feature.d.ts +4 -0
  182. package/api/features/UpdateTask/feature.js +11 -0
  183. package/api/features/UpdateTask/feature.js.map +1 -0
  184. package/api/features/UpdateTask/index.d.ts +2 -0
  185. package/api/features/UpdateTask/index.js +2 -0
  186. package/api/features/UpdateTaskLog/UpdateTaskLogUseCase.d.ts +12 -0
  187. package/api/features/UpdateTaskLog/UpdateTaskLogUseCase.js +19 -0
  188. package/api/features/UpdateTaskLog/UpdateTaskLogUseCase.js.map +1 -0
  189. package/api/features/UpdateTaskLog/abstractions.d.ts +16 -0
  190. package/api/features/UpdateTaskLog/abstractions.js +5 -0
  191. package/api/features/UpdateTaskLog/abstractions.js.map +1 -0
  192. package/api/features/UpdateTaskLog/feature.d.ts +4 -0
  193. package/api/features/UpdateTaskLog/feature.js +11 -0
  194. package/api/features/UpdateTaskLog/feature.js.map +1 -0
  195. package/api/features/UpdateTaskLog/index.d.ts +2 -0
  196. package/api/features/UpdateTaskLog/index.js +2 -0
  197. package/api/graphql/BackgroundTasksGraphQLSchema.d.ts +29 -0
  198. package/api/graphql/BackgroundTasksGraphQLSchema.js +462 -0
  199. package/api/graphql/BackgroundTasksGraphQLSchema.js.map +1 -0
  200. package/api/index.d.ts +11 -2
  201. package/api/index.js +11 -2
  202. package/api/runner/TaskControl.d.ts +14 -4
  203. package/api/runner/TaskControl.js +29 -29
  204. package/api/runner/TaskControl.js.map +1 -1
  205. package/api/runner/TaskManager.js +3 -3
  206. package/api/runner/TaskManager.js.map +1 -1
  207. package/api/runner/TaskManagerStore.d.ts +14 -5
  208. package/api/runner/TaskManagerStore.js +23 -7
  209. package/api/runner/TaskManagerStore.js.map +1 -1
  210. package/api/runner/TaskRunner.js +14 -4
  211. package/api/runner/TaskRunner.js.map +1 -1
  212. package/api/types.d.ts +1 -48
  213. package/api/types.js.map +1 -1
  214. package/package.json +28 -30
  215. package/api/TasksCrud.d.ts +0 -10
  216. package/api/TasksCrud.js +0 -5
  217. package/api/TasksCrud.js.map +0 -1
  218. package/api/crud/cleanupTaskSubtree.d.ts +0 -8
  219. package/api/crud/cleanupTaskSubtree.js +0 -63
  220. package/api/crud/cleanupTaskSubtree.js.map +0 -1
  221. package/api/crud/crud.tasks.d.ts +0 -3
  222. package/api/crud/crud.tasks.js +0 -318
  223. package/api/crud/crud.tasks.js.map +0 -1
  224. package/api/crud/definition.tasks.d.ts +0 -3
  225. package/api/crud/definition.tasks.js +0 -17
  226. package/api/crud/definition.tasks.js.map +0 -1
  227. package/api/crud/service.tasks.d.ts +0 -3
  228. package/api/crud/service.tasks.js +0 -134
  229. package/api/crud/service.tasks.js.map +0 -1
  230. package/api/decorators/RunnableTaskDecorator.d.ts +0 -33
  231. package/api/decorators/RunnableTaskDecorator.js.map +0 -1
  232. package/api/decorators/SelfCleaningTaskDecorator.d.ts +0 -33
  233. package/api/decorators/SelfCleaningTaskDecorator.js.map +0 -1
  234. package/api/features/GetTaskDefinition/GetTaskDefinitionUseCase.js +0 -88
  235. package/api/features/GetTaskDefinition/GetTaskDefinitionUseCase.js.map +0 -1
  236. package/api/features/GetTaskDefinition/abstractions.js +0 -5
  237. package/api/features/GetTaskDefinition/abstractions.js.map +0 -1
  238. package/api/features/GetTaskDefinition/feature.js +0 -11
  239. package/api/features/GetTaskDefinition/feature.js.map +0 -1
  240. package/api/features/GetTaskDefinition/index.d.ts +0 -2
  241. package/api/features/GetTaskDefinition/index.js +0 -2
  242. package/api/graphql/BackgroundTasksContextualSchema.d.ts +0 -21
  243. package/api/graphql/BackgroundTasksContextualSchema.js +0 -369
  244. package/api/graphql/BackgroundTasksContextualSchema.js.map +0 -1
  245. package/api/service/createService.d.ts +0 -6
  246. package/api/service/createService.js +0 -11
  247. package/api/service/createService.js.map +0 -1
  248. package/api/service/index.d.ts +0 -1
  249. package/api/service/index.js +0 -1
@@ -0,0 +1,15 @@
1
+ import { Result } from "@webiny/feature/api";
2
+ import { TriggerVisibleTaskUseCase as UseCaseAbstraction } from "./abstractions.js";
3
+ import { TriggerTaskUseCase } from "../../../api/features/TriggerTask/abstractions.js";
4
+ import { GetRunnableTaskDefinitionUseCase } from "../../../api/features/GetRunnableTaskDefinition/abstractions.js";
5
+ import { TaskDefinitionNotFoundError } from "../../../api/domain/errors.js";
6
+ declare class TriggerVisibleTaskUseCaseImpl implements UseCaseAbstraction.Interface {
7
+ private readonly triggerTask;
8
+ private readonly getRunnableTaskDefinition;
9
+ constructor(triggerTask: TriggerTaskUseCase.Interface, getRunnableTaskDefinition: GetRunnableTaskDefinitionUseCase.Interface);
10
+ execute(params: TriggerTaskUseCase.Params): Promise<Result<import("@webiny/api-core/features/task/TaskService/abstractions.js").TaskService.Task<import("@webiny/api-core/features/task/TaskDefinition/abstractions.js").ITaskInput, import("@webiny/api-core/features/task/TaskService/abstractions.js").IGenericOutput>, import("~/api/domain/errors.js").BackgroundTaskPersistenceError | TaskDefinitionNotFoundError | import("~/api/domain/errors.js").TaskInputValidationError | import("~/api/domain/errors.js").TaskNotFoundError | import("~/api/domain/errors.js").TaskServiceInfoError | import("~/api/domain/errors.js").TaskTriggerError>>;
11
+ }
12
+ export declare const TriggerVisibleTaskUseCase: typeof TriggerVisibleTaskUseCaseImpl & {
13
+ __abstraction: import("@webiny/di").Abstraction<import("./abstractions.js").ITriggerVisibleTaskUseCase>;
14
+ };
15
+ export {};
@@ -0,0 +1,26 @@
1
+ import { Result } from "@webiny/feature/api";
2
+ import { TriggerVisibleTaskUseCase } from "./abstractions.js";
3
+ import { TriggerTaskUseCase } from "../TriggerTask/abstractions.js";
4
+ import { GetRunnableTaskDefinitionUseCase } from "../GetRunnableTaskDefinition/abstractions.js";
5
+ import { TaskDefinitionNotFoundError } from "../../domain/errors.js";
6
+ class TriggerVisibleTaskUseCaseImpl {
7
+ constructor(triggerTask, getRunnableTaskDefinition){
8
+ this.triggerTask = triggerTask;
9
+ this.getRunnableTaskDefinition = getRunnableTaskDefinition;
10
+ }
11
+ async execute(params) {
12
+ const definition = this.getRunnableTaskDefinition.execute(params.definition);
13
+ if (definition.isFail() || definition.value.isPrivate) return Result.fail(new TaskDefinitionNotFoundError(params.definition));
14
+ return this.triggerTask.execute(params);
15
+ }
16
+ }
17
+ const TriggerVisibleTaskUseCase_TriggerVisibleTaskUseCase = TriggerVisibleTaskUseCase.createImplementation({
18
+ implementation: TriggerVisibleTaskUseCaseImpl,
19
+ dependencies: [
20
+ TriggerTaskUseCase,
21
+ GetRunnableTaskDefinitionUseCase
22
+ ]
23
+ });
24
+ export { TriggerVisibleTaskUseCase_TriggerVisibleTaskUseCase as TriggerVisibleTaskUseCase };
25
+
26
+ //# sourceMappingURL=TriggerVisibleTaskUseCase.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api/features/TriggerVisibleTask/TriggerVisibleTaskUseCase.js","sources":["../../../../src/api/features/TriggerVisibleTask/TriggerVisibleTaskUseCase.ts"],"sourcesContent":["import { Result } from \"@webiny/feature/api\";\nimport { TriggerVisibleTaskUseCase as UseCaseAbstraction } from \"./abstractions.js\";\nimport { TriggerTaskUseCase } from \"~/api/features/TriggerTask/abstractions.js\";\nimport { GetRunnableTaskDefinitionUseCase } from \"~/api/features/GetRunnableTaskDefinition/abstractions.js\";\nimport { TaskDefinitionNotFoundError } from \"~/api/domain/errors.js\";\n\nclass TriggerVisibleTaskUseCaseImpl implements UseCaseAbstraction.Interface {\n public constructor(\n private readonly triggerTask: TriggerTaskUseCase.Interface,\n private readonly getRunnableTaskDefinition: GetRunnableTaskDefinitionUseCase.Interface\n ) {}\n\n public async execute(params: TriggerTaskUseCase.Params) {\n const definition = this.getRunnableTaskDefinition.execute(params.definition);\n if (definition.isFail() || definition.value.isPrivate) {\n return Result.fail(new TaskDefinitionNotFoundError(params.definition));\n }\n return this.triggerTask.execute(params);\n }\n}\n\nexport const TriggerVisibleTaskUseCase = UseCaseAbstraction.createImplementation({\n implementation: TriggerVisibleTaskUseCaseImpl,\n dependencies: [TriggerTaskUseCase, GetRunnableTaskDefinitionUseCase]\n});\n"],"names":["TriggerVisibleTaskUseCaseImpl","triggerTask","getRunnableTaskDefinition","params","definition","Result","TaskDefinitionNotFoundError","TriggerVisibleTaskUseCase","UseCaseAbstraction","TriggerTaskUseCase","GetRunnableTaskDefinitionUseCase"],"mappings":";;;;;AAMA,MAAMA;IACF,YACqBC,WAAyC,EACzCC,yBAAqE,CACxF;aAFmBD,WAAW,GAAXA;aACAC,yBAAyB,GAAzBA;IAClB;IAEH,MAAa,QAAQC,MAAiC,EAAE;QACpD,MAAMC,aAAa,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAACD,OAAO,UAAU;QAC3E,IAAIC,WAAW,MAAM,MAAMA,WAAW,KAAK,CAAC,SAAS,EACjD,OAAOC,OAAO,IAAI,CAAC,IAAIC,4BAA4BH,OAAO,UAAU;QAExE,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAACA;IACpC;AACJ;AAEO,MAAMI,sDAA4BC,0BAAAA,oBAAuC,CAAC;IAC7E,gBAAgBR;IAChB,cAAc;QAACS;QAAoBC;KAAiC;AACxE"}
@@ -0,0 +1,17 @@
1
+ import type { Result } from "@webiny/feature/api";
2
+ import type { ITask } from "../../../api/types.js";
3
+ import type { TriggerTaskUseCase } from "../../../api/features/TriggerTask/abstractions.js";
4
+ type UseCaseError = TriggerTaskUseCase.Error;
5
+ export interface ITriggerVisibleTaskUseCase {
6
+ execute(params: TriggerTaskUseCase.Params): Promise<Result<ITask, UseCaseError>>;
7
+ }
8
+ /**
9
+ * Trigger a task from the GraphQL API. A private definition is refused exactly like an unknown
10
+ * one, so a caller cannot tell the two apart and cannot start it with input of their choice.
11
+ */
12
+ export declare const TriggerVisibleTaskUseCase: import("@webiny/di").Abstraction<ITriggerVisibleTaskUseCase>;
13
+ export declare namespace TriggerVisibleTaskUseCase {
14
+ type Interface = ITriggerVisibleTaskUseCase;
15
+ type Error = UseCaseError;
16
+ }
17
+ export {};
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/api";
2
+ const TriggerVisibleTaskUseCase = createAbstraction("Tasks/TriggerVisibleTaskUseCase");
3
+ export { TriggerVisibleTaskUseCase };
4
+
5
+ //# sourceMappingURL=abstractions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api/features/TriggerVisibleTask/abstractions.js","sources":["../../../../src/api/features/TriggerVisibleTask/abstractions.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { Result } from \"@webiny/feature/api\";\nimport type { ITask } from \"~/api/types.js\";\nimport type { TriggerTaskUseCase } from \"~/api/features/TriggerTask/abstractions.js\";\n\ntype UseCaseError = TriggerTaskUseCase.Error;\n\nexport interface ITriggerVisibleTaskUseCase {\n execute(params: TriggerTaskUseCase.Params): Promise<Result<ITask, UseCaseError>>;\n}\n\n/**\n * Trigger a task from the GraphQL API. A private definition is refused exactly like an unknown\n * one, so a caller cannot tell the two apart and cannot start it with input of their choice.\n */\nexport const TriggerVisibleTaskUseCase = createAbstraction<ITriggerVisibleTaskUseCase>(\n \"Tasks/TriggerVisibleTaskUseCase\"\n);\n\nexport namespace TriggerVisibleTaskUseCase {\n export type Interface = ITriggerVisibleTaskUseCase;\n export type Error = UseCaseError;\n}\n"],"names":["TriggerVisibleTaskUseCase","createAbstraction"],"mappings":";AAeO,MAAMA,4BAA4BC,kBACrC"}
@@ -0,0 +1,4 @@
1
+ export declare const TriggerVisibleTaskFeature: {
2
+ name: string;
3
+ register(container: import("@webiny/di").Container): void;
4
+ };
@@ -0,0 +1,11 @@
1
+ import { createFeature } from "@webiny/feature/api";
2
+ import { TriggerVisibleTaskUseCase } from "./TriggerVisibleTaskUseCase.js";
3
+ const TriggerVisibleTaskFeature = createFeature({
4
+ name: "TriggerVisibleTask",
5
+ register (container) {
6
+ container.register(TriggerVisibleTaskUseCase);
7
+ }
8
+ });
9
+ export { TriggerVisibleTaskFeature };
10
+
11
+ //# sourceMappingURL=feature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api/features/TriggerVisibleTask/feature.js","sources":["../../../../src/api/features/TriggerVisibleTask/feature.ts"],"sourcesContent":["import { createFeature } from \"@webiny/feature/api\";\nimport { TriggerVisibleTaskUseCase } from \"./TriggerVisibleTaskUseCase.js\";\n\nexport const TriggerVisibleTaskFeature = createFeature({\n name: \"TriggerVisibleTask\",\n register(container) {\n container.register(TriggerVisibleTaskUseCase);\n }\n});\n"],"names":["TriggerVisibleTaskFeature","createFeature","container","TriggerVisibleTaskUseCase"],"mappings":";;AAGO,MAAMA,4BAA4BC,cAAc;IACnD,MAAM;IACN,UAASC,SAAS;QACdA,UAAU,QAAQ,CAACC;IACvB;AACJ"}
@@ -0,0 +1,2 @@
1
+ export { TriggerVisibleTaskUseCase } from "./abstractions.js";
2
+ export { TriggerVisibleTaskFeature } from "./feature.js";
@@ -0,0 +1,2 @@
1
+ export { TriggerVisibleTaskUseCase } from "./abstractions.js";
2
+ export { TriggerVisibleTaskFeature } from "./feature.js";
@@ -32,11 +32,13 @@ class UpdateBackgroundTaskSettingsRepositoryImpl {
32
32
  });
33
33
  if (entryResult.isFail()) return Result.fail(BackgroundTaskPersistenceError.from(entryResult.error));
34
34
  const storedValue = input.retentionDays === this.defaultRetentionDays ? null : input.retentionDays;
35
- const { entry } = await this.updateEntryDataFactory.create(model, {
35
+ const dataResult = await this.updateEntryDataFactory.create(model, {
36
36
  values: {
37
37
  retentionDays: storedValue
38
38
  }
39
39
  }, entryResult.value);
40
+ if (dataResult.isFail()) return Result.fail(BackgroundTaskPersistenceError.from(dataResult.error));
41
+ const { entry } = dataResult.value;
40
42
  const updateResult = await this.updateEntryRepository.execute(model, entry);
41
43
  if (updateResult.isFail()) return Result.fail(BackgroundTaskPersistenceError.from(updateResult.error));
42
44
  const retentionDays = null != entry.values.retentionDays ? entry.values.retentionDays : this.defaultRetentionDays;
@@ -1 +1 @@
1
- {"version":3,"file":"api/features/UpdateBackgroundTaskSettings/UpdateBackgroundTaskSettingsRepository.js","sources":["../../../../src/api/features/UpdateBackgroundTaskSettings/UpdateBackgroundTaskSettingsRepository.ts"],"sourcesContent":["import { Result } from \"@webiny/feature/api\";\nimport { createCacheKey } from \"@webiny/utils\";\nimport { GetModelRepository } from \"@webiny/api-headless-cms/features/contentModel/GetModel/index.js\";\nimport { GetLatestRevisionByEntryIdRepository } from \"@webiny/api-headless-cms/features/contentEntry/GetLatestRevisionByEntryId/index.js\";\nimport { UpdateEntryRepository } from \"@webiny/api-headless-cms/features/contentEntry/UpdateEntry/index.js\";\nimport { UpdateEntryDataFactory } from \"@webiny/api-headless-cms/exports/api/cms/entry.js\";\nimport { BuildParams } from \"@webiny/api-core/features/buildParams/index.js\";\nimport { GetBackgroundTaskSettingsRepository } from \"~/api/features/GetBackgroundTaskSettings/abstractions.js\";\nimport {\n UpdateBackgroundTaskSettingsRepository as RepositoryAbstraction,\n type IUpdateBackgroundTaskSettingsInput\n} from \"./abstractions.js\";\nimport {\n BackgroundTaskModelNotFoundError,\n BackgroundTaskPersistenceError\n} from \"~/api/domain/errors.js\";\nimport {\n BACKGROUND_TASK_SETTINGS_MODEL_ID,\n BACKGROUND_TASK_DEFAULT_RETENTION_DAYS\n} from \"~/api/domain/constants.js\";\nimport type { IBackgroundTaskSettings } from \"~/api/domain/BackgroundTaskSettings.js\";\n\ninterface BackgroundTaskSettingsValues {\n retentionDays?: number | null;\n}\n\nclass UpdateBackgroundTaskSettingsRepositoryImpl implements RepositoryAbstraction.Interface {\n private readonly defaultRetentionDays: number;\n\n constructor(\n private readonly getModelRepository: GetModelRepository.Interface,\n private readonly getSettingsRepository: GetBackgroundTaskSettingsRepository.Interface,\n private readonly getLatestRevisionRepository: GetLatestRevisionByEntryIdRepository.Interface,\n private readonly updateEntryRepository: UpdateEntryRepository.Interface,\n private readonly updateEntryDataFactory: UpdateEntryDataFactory.Interface,\n buildParams: BuildParams.Interface\n ) {\n this.defaultRetentionDays =\n buildParams.get<number>(\"BackgroundTasks.RetentionDays\") ||\n BACKGROUND_TASK_DEFAULT_RETENTION_DAYS;\n }\n\n async execute(\n input: IUpdateBackgroundTaskSettingsInput\n ): Promise<Result<IBackgroundTaskSettings, RepositoryAbstraction.Error>> {\n try {\n /* Ensure the singleton entry exists (creates if missing). */\n const getResult = await this.getSettingsRepository.execute();\n if (getResult.isFail()) {\n return getResult;\n }\n\n const modelResult = await this.getModelRepository.execute(\n BACKGROUND_TASK_SETTINGS_MODEL_ID\n );\n if (modelResult.isFail()) {\n return Result.fail(\n new BackgroundTaskModelNotFoundError(BACKGROUND_TASK_SETTINGS_MODEL_ID)\n );\n }\n\n const model = modelResult.value;\n const singletonId = createCacheKey(model.modelId);\n const entryId = `${singletonId}#0001`;\n\n const entryResult =\n await this.getLatestRevisionRepository.execute<BackgroundTaskSettingsValues>(\n model,\n { id: entryId }\n );\n\n if (entryResult.isFail()) {\n return Result.fail(BackgroundTaskPersistenceError.from(entryResult.error));\n }\n\n /* Store null when the value matches the default so the default stays in control. */\n const storedValue =\n input.retentionDays === this.defaultRetentionDays ? null : input.retentionDays;\n\n const { entry } =\n await this.updateEntryDataFactory.create<BackgroundTaskSettingsValues>(\n model,\n {\n values: {\n retentionDays: storedValue\n }\n },\n entryResult.value\n );\n\n const updateResult = await this.updateEntryRepository.execute(model, entry);\n if (updateResult.isFail()) {\n return Result.fail(BackgroundTaskPersistenceError.from(updateResult.error));\n }\n\n const retentionDays =\n entry.values.retentionDays != null\n ? entry.values.retentionDays\n : this.defaultRetentionDays;\n\n const settings: IBackgroundTaskSettings = {\n retentionDays\n };\n\n return Result.ok(settings);\n } catch (error) {\n return Result.fail(BackgroundTaskPersistenceError.from(error));\n }\n }\n}\n\nexport const UpdateBackgroundTaskSettingsRepository = RepositoryAbstraction.createImplementation({\n implementation: UpdateBackgroundTaskSettingsRepositoryImpl,\n dependencies: [\n GetModelRepository,\n GetBackgroundTaskSettingsRepository,\n GetLatestRevisionByEntryIdRepository,\n UpdateEntryRepository,\n UpdateEntryDataFactory,\n BuildParams\n ]\n});\n"],"names":["UpdateBackgroundTaskSettingsRepositoryImpl","getModelRepository","getSettingsRepository","getLatestRevisionRepository","updateEntryRepository","updateEntryDataFactory","buildParams","BACKGROUND_TASK_DEFAULT_RETENTION_DAYS","input","getResult","modelResult","BACKGROUND_TASK_SETTINGS_MODEL_ID","Result","BackgroundTaskModelNotFoundError","model","singletonId","createCacheKey","entryId","entryResult","BackgroundTaskPersistenceError","storedValue","entry","updateResult","retentionDays","settings","error","UpdateBackgroundTaskSettingsRepository","RepositoryAbstraction","GetModelRepository","GetBackgroundTaskSettingsRepository","GetLatestRevisionByEntryIdRepository","UpdateEntryRepository","UpdateEntryDataFactory","BuildParams"],"mappings":";;;;;;;;;;;AA0BA,MAAMA;IAGF,YACqBC,kBAAgD,EAChDC,qBAAoE,EACpEC,2BAA2E,EAC3EC,qBAAsD,EACtDC,sBAAwD,EACzEC,WAAkC,CACpC;aANmBL,kBAAkB,GAAlBA;aACAC,qBAAqB,GAArBA;aACAC,2BAA2B,GAA3BA;aACAC,qBAAqB,GAArBA;aACAC,sBAAsB,GAAtBA;QAGjB,IAAI,CAAC,oBAAoB,GACrBC,YAAY,GAAG,CAAS,oCACxBC;IACR;IAEA,MAAM,QACFC,KAAyC,EAC4B;QACrE,IAAI;YAEA,MAAMC,YAAY,MAAM,IAAI,CAAC,qBAAqB,CAAC,OAAO;YAC1D,IAAIA,UAAU,MAAM,IAChB,OAAOA;YAGX,MAAMC,cAAc,MAAM,IAAI,CAAC,kBAAkB,CAAC,OAAO,CACrDC;YAEJ,IAAID,YAAY,MAAM,IAClB,OAAOE,OAAO,IAAI,CACd,IAAIC,iCAAiCF;YAI7C,MAAMG,QAAQJ,YAAY,KAAK;YAC/B,MAAMK,cAAcC,eAAeF,MAAM,OAAO;YAChD,MAAMG,UAAU,GAAGF,YAAY,KAAK,CAAC;YAErC,MAAMG,cACF,MAAM,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAC1CJ,OACA;gBAAE,IAAIG;YAAQ;YAGtB,IAAIC,YAAY,MAAM,IAClB,OAAON,OAAO,IAAI,CAACO,+BAA+B,IAAI,CAACD,YAAY,KAAK;YAI5E,MAAME,cACFZ,MAAM,aAAa,KAAK,IAAI,CAAC,oBAAoB,GAAG,OAAOA,MAAM,aAAa;YAElF,MAAM,EAAEa,KAAK,EAAE,GACX,MAAM,IAAI,CAAC,sBAAsB,CAAC,MAAM,CACpCP,OACA;gBACI,QAAQ;oBACJ,eAAeM;gBACnB;YACJ,GACAF,YAAY,KAAK;YAGzB,MAAMI,eAAe,MAAM,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAACR,OAAOO;YACrE,IAAIC,aAAa,MAAM,IACnB,OAAOV,OAAO,IAAI,CAACO,+BAA+B,IAAI,CAACG,aAAa,KAAK;YAG7E,MAAMC,gBACFF,AAA8B,QAA9BA,MAAM,MAAM,CAAC,aAAa,GACpBA,MAAM,MAAM,CAAC,aAAa,GAC1B,IAAI,CAAC,oBAAoB;YAEnC,MAAMG,WAAoC;gBACtCD;YACJ;YAEA,OAAOX,OAAO,EAAE,CAACY;QACrB,EAAE,OAAOC,OAAO;YACZ,OAAOb,OAAO,IAAI,CAACO,+BAA+B,IAAI,CAACM;QAC3D;IACJ;AACJ;AAEO,MAAMC,gFAAyCC,uCAAAA,oBAA0C,CAAC;IAC7F,gBAAgB3B;IAChB,cAAc;QACV4B;QACAC;QACAC;QACAC;QACAC;QACAC;KACH;AACL"}
1
+ {"version":3,"file":"api/features/UpdateBackgroundTaskSettings/UpdateBackgroundTaskSettingsRepository.js","sources":["../../../../src/api/features/UpdateBackgroundTaskSettings/UpdateBackgroundTaskSettingsRepository.ts"],"sourcesContent":["import { Result } from \"@webiny/feature/api\";\nimport { createCacheKey } from \"@webiny/utils\";\nimport { GetModelRepository } from \"@webiny/api-headless-cms/features/contentModel/GetModel/index.js\";\nimport { GetLatestRevisionByEntryIdRepository } from \"@webiny/api-headless-cms/features/contentEntry/GetLatestRevisionByEntryId/index.js\";\nimport { UpdateEntryRepository } from \"@webiny/api-headless-cms/features/contentEntry/UpdateEntry/index.js\";\nimport { UpdateEntryDataFactory } from \"@webiny/api-headless-cms/exports/api/cms/entry.js\";\nimport { BuildParams } from \"@webiny/api-core/features/buildParams/index.js\";\nimport { GetBackgroundTaskSettingsRepository } from \"~/api/features/GetBackgroundTaskSettings/abstractions.js\";\nimport {\n UpdateBackgroundTaskSettingsRepository as RepositoryAbstraction,\n type IUpdateBackgroundTaskSettingsInput\n} from \"./abstractions.js\";\nimport {\n BackgroundTaskModelNotFoundError,\n BackgroundTaskPersistenceError\n} from \"~/api/domain/errors.js\";\nimport {\n BACKGROUND_TASK_SETTINGS_MODEL_ID,\n BACKGROUND_TASK_DEFAULT_RETENTION_DAYS\n} from \"~/api/domain/constants.js\";\nimport type { IBackgroundTaskSettings } from \"~/api/domain/BackgroundTaskSettings.js\";\n\ninterface BackgroundTaskSettingsValues {\n retentionDays?: number | null;\n}\n\nclass UpdateBackgroundTaskSettingsRepositoryImpl implements RepositoryAbstraction.Interface {\n private readonly defaultRetentionDays: number;\n\n constructor(\n private readonly getModelRepository: GetModelRepository.Interface,\n private readonly getSettingsRepository: GetBackgroundTaskSettingsRepository.Interface,\n private readonly getLatestRevisionRepository: GetLatestRevisionByEntryIdRepository.Interface,\n private readonly updateEntryRepository: UpdateEntryRepository.Interface,\n private readonly updateEntryDataFactory: UpdateEntryDataFactory.Interface,\n buildParams: BuildParams.Interface\n ) {\n this.defaultRetentionDays =\n buildParams.get<number>(\"BackgroundTasks.RetentionDays\") ||\n BACKGROUND_TASK_DEFAULT_RETENTION_DAYS;\n }\n\n async execute(\n input: IUpdateBackgroundTaskSettingsInput\n ): Promise<Result<IBackgroundTaskSettings, RepositoryAbstraction.Error>> {\n try {\n /* Ensure the singleton entry exists (creates if missing). */\n const getResult = await this.getSettingsRepository.execute();\n if (getResult.isFail()) {\n return getResult;\n }\n\n const modelResult = await this.getModelRepository.execute(\n BACKGROUND_TASK_SETTINGS_MODEL_ID\n );\n if (modelResult.isFail()) {\n return Result.fail(\n new BackgroundTaskModelNotFoundError(BACKGROUND_TASK_SETTINGS_MODEL_ID)\n );\n }\n\n const model = modelResult.value;\n const singletonId = createCacheKey(model.modelId);\n const entryId = `${singletonId}#0001`;\n\n const entryResult =\n await this.getLatestRevisionRepository.execute<BackgroundTaskSettingsValues>(\n model,\n { id: entryId }\n );\n\n if (entryResult.isFail()) {\n return Result.fail(BackgroundTaskPersistenceError.from(entryResult.error));\n }\n\n /* Store null when the value matches the default so the default stays in control. */\n const storedValue =\n input.retentionDays === this.defaultRetentionDays ? null : input.retentionDays;\n\n const dataResult =\n await this.updateEntryDataFactory.create<BackgroundTaskSettingsValues>(\n model,\n {\n values: {\n retentionDays: storedValue\n }\n },\n entryResult.value\n );\n if (dataResult.isFail()) {\n return Result.fail(BackgroundTaskPersistenceError.from(dataResult.error));\n }\n const { entry } = dataResult.value;\n\n const updateResult = await this.updateEntryRepository.execute(model, entry);\n if (updateResult.isFail()) {\n return Result.fail(BackgroundTaskPersistenceError.from(updateResult.error));\n }\n\n const retentionDays =\n entry.values.retentionDays != null\n ? entry.values.retentionDays\n : this.defaultRetentionDays;\n\n const settings: IBackgroundTaskSettings = {\n retentionDays\n };\n\n return Result.ok(settings);\n } catch (error) {\n return Result.fail(BackgroundTaskPersistenceError.from(error));\n }\n }\n}\n\nexport const UpdateBackgroundTaskSettingsRepository = RepositoryAbstraction.createImplementation({\n implementation: UpdateBackgroundTaskSettingsRepositoryImpl,\n dependencies: [\n GetModelRepository,\n GetBackgroundTaskSettingsRepository,\n GetLatestRevisionByEntryIdRepository,\n UpdateEntryRepository,\n UpdateEntryDataFactory,\n BuildParams\n ]\n});\n"],"names":["UpdateBackgroundTaskSettingsRepositoryImpl","getModelRepository","getSettingsRepository","getLatestRevisionRepository","updateEntryRepository","updateEntryDataFactory","buildParams","BACKGROUND_TASK_DEFAULT_RETENTION_DAYS","input","getResult","modelResult","BACKGROUND_TASK_SETTINGS_MODEL_ID","Result","BackgroundTaskModelNotFoundError","model","singletonId","createCacheKey","entryId","entryResult","BackgroundTaskPersistenceError","storedValue","dataResult","entry","updateResult","retentionDays","settings","error","UpdateBackgroundTaskSettingsRepository","RepositoryAbstraction","GetModelRepository","GetBackgroundTaskSettingsRepository","GetLatestRevisionByEntryIdRepository","UpdateEntryRepository","UpdateEntryDataFactory","BuildParams"],"mappings":";;;;;;;;;;;AA0BA,MAAMA;IAGF,YACqBC,kBAAgD,EAChDC,qBAAoE,EACpEC,2BAA2E,EAC3EC,qBAAsD,EACtDC,sBAAwD,EACzEC,WAAkC,CACpC;aANmBL,kBAAkB,GAAlBA;aACAC,qBAAqB,GAArBA;aACAC,2BAA2B,GAA3BA;aACAC,qBAAqB,GAArBA;aACAC,sBAAsB,GAAtBA;QAGjB,IAAI,CAAC,oBAAoB,GACrBC,YAAY,GAAG,CAAS,oCACxBC;IACR;IAEA,MAAM,QACFC,KAAyC,EAC4B;QACrE,IAAI;YAEA,MAAMC,YAAY,MAAM,IAAI,CAAC,qBAAqB,CAAC,OAAO;YAC1D,IAAIA,UAAU,MAAM,IAChB,OAAOA;YAGX,MAAMC,cAAc,MAAM,IAAI,CAAC,kBAAkB,CAAC,OAAO,CACrDC;YAEJ,IAAID,YAAY,MAAM,IAClB,OAAOE,OAAO,IAAI,CACd,IAAIC,iCAAiCF;YAI7C,MAAMG,QAAQJ,YAAY,KAAK;YAC/B,MAAMK,cAAcC,eAAeF,MAAM,OAAO;YAChD,MAAMG,UAAU,GAAGF,YAAY,KAAK,CAAC;YAErC,MAAMG,cACF,MAAM,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAC1CJ,OACA;gBAAE,IAAIG;YAAQ;YAGtB,IAAIC,YAAY,MAAM,IAClB,OAAON,OAAO,IAAI,CAACO,+BAA+B,IAAI,CAACD,YAAY,KAAK;YAI5E,MAAME,cACFZ,MAAM,aAAa,KAAK,IAAI,CAAC,oBAAoB,GAAG,OAAOA,MAAM,aAAa;YAElF,MAAMa,aACF,MAAM,IAAI,CAAC,sBAAsB,CAAC,MAAM,CACpCP,OACA;gBACI,QAAQ;oBACJ,eAAeM;gBACnB;YACJ,GACAF,YAAY,KAAK;YAEzB,IAAIG,WAAW,MAAM,IACjB,OAAOT,OAAO,IAAI,CAACO,+BAA+B,IAAI,CAACE,WAAW,KAAK;YAE3E,MAAM,EAAEC,KAAK,EAAE,GAAGD,WAAW,KAAK;YAElC,MAAME,eAAe,MAAM,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAACT,OAAOQ;YACrE,IAAIC,aAAa,MAAM,IACnB,OAAOX,OAAO,IAAI,CAACO,+BAA+B,IAAI,CAACI,aAAa,KAAK;YAG7E,MAAMC,gBACFF,AAA8B,QAA9BA,MAAM,MAAM,CAAC,aAAa,GACpBA,MAAM,MAAM,CAAC,aAAa,GAC1B,IAAI,CAAC,oBAAoB;YAEnC,MAAMG,WAAoC;gBACtCD;YACJ;YAEA,OAAOZ,OAAO,EAAE,CAACa;QACrB,EAAE,OAAOC,OAAO;YACZ,OAAOd,OAAO,IAAI,CAACO,+BAA+B,IAAI,CAACO;QAC3D;IACJ;AACJ;AAEO,MAAMC,gFAAyCC,uCAAAA,oBAA0C,CAAC;IAC7F,gBAAgB5B;IAChB,cAAc;QACV6B;QACAC;QACAC;QACAC;QACAC;QACAC;KACH;AACL"}
@@ -0,0 +1,17 @@
1
+ import { Result } from "@webiny/feature/api";
2
+ import { EventPublisher } from "@webiny/api-core/features/eventPublisher/index.js";
3
+ import type { TaskService } from "@webiny/api-core/features/task/TaskService/index.js";
4
+ import { UpdateTaskUseCase as UseCaseAbstraction } from "./abstractions.js";
5
+ import { TasksRepository } from "../../../api/domain/task/abstractions.js";
6
+ type TaskInput = TaskService.TaskInput;
7
+ type TaskOutput = TaskService.GenericOutput;
8
+ declare class UpdateTaskUseCaseImpl implements UseCaseAbstraction.Interface {
9
+ private readonly eventPublisher;
10
+ private readonly repository;
11
+ constructor(eventPublisher: EventPublisher.Interface, repository: TasksRepository.Interface);
12
+ execute<I extends TaskInput = TaskInput, O extends TaskOutput = TaskOutput>(id: string, data: UseCaseAbstraction.Params<I, O>): Promise<Result<TaskService.Task<I, O>, UseCaseAbstraction.Error>>;
13
+ }
14
+ export declare const UpdateTaskUseCase: typeof UpdateTaskUseCaseImpl & {
15
+ __abstraction: import("@webiny/di").Abstraction<import("./abstractions.js").IUpdateTaskUseCase>;
16
+ };
17
+ export {};
@@ -0,0 +1,36 @@
1
+ import { Result } from "@webiny/feature/api";
2
+ import { EventPublisher } from "@webiny/api-core/features/eventPublisher/index.js";
3
+ import { UpdateTaskUseCase } from "./abstractions.js";
4
+ import { TasksRepository } from "../../domain/task/abstractions.js";
5
+ import { TaskAfterUpdateEvent, TaskBeforeUpdateEvent } from "../../events/index.js";
6
+ class UpdateTaskUseCaseImpl {
7
+ constructor(eventPublisher, repository){
8
+ this.eventPublisher = eventPublisher;
9
+ this.repository = repository;
10
+ }
11
+ async execute(id, data) {
12
+ const original = await this.repository.get(id);
13
+ if (original.isFail()) return Result.fail(original.error);
14
+ await this.eventPublisher.publish(new TaskBeforeUpdateEvent({
15
+ input: data,
16
+ original: original.value
17
+ }));
18
+ const result = await this.repository.update(id, data);
19
+ if (result.isFail()) return Result.fail(result.error);
20
+ await this.eventPublisher.publish(new TaskAfterUpdateEvent({
21
+ input: data,
22
+ task: result.value
23
+ }));
24
+ return Result.ok(result.value);
25
+ }
26
+ }
27
+ const UpdateTaskUseCase_UpdateTaskUseCase = UpdateTaskUseCase.createImplementation({
28
+ implementation: UpdateTaskUseCaseImpl,
29
+ dependencies: [
30
+ EventPublisher,
31
+ TasksRepository
32
+ ]
33
+ });
34
+ export { UpdateTaskUseCase_UpdateTaskUseCase as UpdateTaskUseCase };
35
+
36
+ //# sourceMappingURL=UpdateTaskUseCase.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api/features/UpdateTask/UpdateTaskUseCase.js","sources":["../../../../src/api/features/UpdateTask/UpdateTaskUseCase.ts"],"sourcesContent":["import { Result } from \"@webiny/feature/api\";\nimport { EventPublisher } from \"@webiny/api-core/features/eventPublisher/index.js\";\nimport type { TaskService } from \"@webiny/api-core/features/task/TaskService/index.js\";\nimport { UpdateTaskUseCase as UseCaseAbstraction } from \"./abstractions.js\";\nimport { TasksRepository } from \"~/api/domain/task/abstractions.js\";\nimport { TaskAfterUpdateEvent, TaskBeforeUpdateEvent } from \"~/api/events/index.js\";\n\ntype TaskInput = TaskService.TaskInput;\ntype TaskOutput = TaskService.GenericOutput;\n\nclass UpdateTaskUseCaseImpl implements UseCaseAbstraction.Interface {\n constructor(\n private readonly eventPublisher: EventPublisher.Interface,\n private readonly repository: TasksRepository.Interface\n ) {}\n\n async execute<I extends TaskInput = TaskInput, O extends TaskOutput = TaskOutput>(\n id: string,\n data: UseCaseAbstraction.Params<I, O>\n ): Promise<Result<TaskService.Task<I, O>, UseCaseAbstraction.Error>> {\n const original = await this.repository.get<I, O>(id);\n if (original.isFail()) {\n return Result.fail(original.error);\n }\n\n await this.eventPublisher.publish(\n new TaskBeforeUpdateEvent({ input: data, original: original.value })\n );\n\n const result = await this.repository.update<I, O>(id, data);\n if (result.isFail()) {\n return Result.fail(result.error);\n }\n\n await this.eventPublisher.publish(\n new TaskAfterUpdateEvent({ input: data, task: result.value })\n );\n\n return Result.ok(result.value);\n }\n}\n\nexport const UpdateTaskUseCase = UseCaseAbstraction.createImplementation({\n implementation: UpdateTaskUseCaseImpl,\n dependencies: [EventPublisher, TasksRepository]\n});\n"],"names":["UpdateTaskUseCaseImpl","eventPublisher","repository","id","data","original","Result","TaskBeforeUpdateEvent","result","TaskAfterUpdateEvent","UpdateTaskUseCase","UseCaseAbstraction","EventPublisher","TasksRepository"],"mappings":";;;;;AAUA,MAAMA;IACF,YACqBC,cAAwC,EACxCC,UAAqC,CACxD;aAFmBD,cAAc,GAAdA;aACAC,UAAU,GAAVA;IAClB;IAEH,MAAM,QACFC,EAAU,EACVC,IAAqC,EAC4B;QACjE,MAAMC,WAAW,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAOF;QACjD,IAAIE,SAAS,MAAM,IACf,OAAOC,OAAO,IAAI,CAACD,SAAS,KAAK;QAGrC,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAC7B,IAAIE,sBAAsB;YAAE,OAAOH;YAAM,UAAUC,SAAS,KAAK;QAAC;QAGtE,MAAMG,SAAS,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,CAAOL,IAAIC;QACtD,IAAII,OAAO,MAAM,IACb,OAAOF,OAAO,IAAI,CAACE,OAAO,KAAK;QAGnC,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAC7B,IAAIC,qBAAqB;YAAE,OAAOL;YAAM,MAAMI,OAAO,KAAK;QAAC;QAG/D,OAAOF,OAAO,EAAE,CAACE,OAAO,KAAK;IACjC;AACJ;AAEO,MAAME,sCAAoBC,kBAAAA,oBAAuC,CAAC;IACrE,gBAAgBX;IAChB,cAAc;QAACY;QAAgBC;KAAgB;AACnD"}
@@ -0,0 +1,22 @@
1
+ import { type Result } from "@webiny/feature/api";
2
+ import type { TaskService } from "@webiny/api-core/features/task/TaskService/index.js";
3
+ import type { ITaskUpdateData } from "../../../api/types.js";
4
+ import type { BackgroundTaskPersistenceError, TaskNotFoundError } from "../../../api/domain/errors.js";
5
+ type TaskInput = TaskService.TaskInput;
6
+ type TaskOutput = TaskService.GenericOutput;
7
+ export interface IUpdateTaskUseCase {
8
+ execute<I extends TaskInput = TaskInput, O extends TaskOutput = TaskOutput>(id: string, data: Partial<ITaskUpdateData<I, O>>): Promise<Result<TaskService.Task<I, O>, UseCaseError>>;
9
+ }
10
+ export interface IUpdateTaskUseCaseErrors {
11
+ notFound: TaskNotFoundError;
12
+ persistence: BackgroundTaskPersistenceError;
13
+ }
14
+ type UseCaseError = IUpdateTaskUseCaseErrors[keyof IUpdateTaskUseCaseErrors];
15
+ /** Update a stored task: its status, output, iterations and so on. */
16
+ export declare const UpdateTaskUseCase: import("@webiny/di").Abstraction<IUpdateTaskUseCase>;
17
+ export declare namespace UpdateTaskUseCase {
18
+ type Interface = IUpdateTaskUseCase;
19
+ type Params<I extends TaskInput = TaskInput, O extends TaskOutput = TaskOutput> = Partial<ITaskUpdateData<I, O>>;
20
+ type Error = UseCaseError;
21
+ }
22
+ export {};
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/api";
2
+ const UpdateTaskUseCase = createAbstraction("Tasks/UpdateTaskUseCase");
3
+ export { UpdateTaskUseCase };
4
+
5
+ //# sourceMappingURL=abstractions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api/features/UpdateTask/abstractions.js","sources":["../../../../src/api/features/UpdateTask/abstractions.ts"],"sourcesContent":["import { createAbstraction, type Result } from \"@webiny/feature/api\";\nimport type { TaskService } from \"@webiny/api-core/features/task/TaskService/index.js\";\nimport type { ITaskUpdateData } from \"~/api/types.js\";\nimport type { BackgroundTaskPersistenceError, TaskNotFoundError } from \"~/api/domain/errors.js\";\n\ntype TaskInput = TaskService.TaskInput;\ntype TaskOutput = TaskService.GenericOutput;\n\nexport interface IUpdateTaskUseCase {\n execute<I extends TaskInput = TaskInput, O extends TaskOutput = TaskOutput>(\n id: string,\n data: Partial<ITaskUpdateData<I, O>>\n ): Promise<Result<TaskService.Task<I, O>, UseCaseError>>;\n}\n\nexport interface IUpdateTaskUseCaseErrors {\n notFound: TaskNotFoundError;\n persistence: BackgroundTaskPersistenceError;\n}\n\ntype UseCaseError = IUpdateTaskUseCaseErrors[keyof IUpdateTaskUseCaseErrors];\n\n/** Update a stored task: its status, output, iterations and so on. */\nexport const UpdateTaskUseCase = createAbstraction<IUpdateTaskUseCase>(\"Tasks/UpdateTaskUseCase\");\n\nexport namespace UpdateTaskUseCase {\n export type Interface = IUpdateTaskUseCase;\n export type Params<\n I extends TaskInput = TaskInput,\n O extends TaskOutput = TaskOutput\n > = Partial<ITaskUpdateData<I, O>>;\n export type Error = UseCaseError;\n}\n"],"names":["UpdateTaskUseCase","createAbstraction"],"mappings":";AAuBO,MAAMA,oBAAoBC,kBAAsC"}
@@ -0,0 +1,4 @@
1
+ export declare const UpdateTaskFeature: {
2
+ name: string;
3
+ register(container: import("@webiny/di").Container): void;
4
+ };
@@ -0,0 +1,11 @@
1
+ import { createFeature } from "@webiny/feature/api";
2
+ import { UpdateTaskUseCase } from "./UpdateTaskUseCase.js";
3
+ const UpdateTaskFeature = createFeature({
4
+ name: "UpdateTask",
5
+ register (container) {
6
+ container.register(UpdateTaskUseCase);
7
+ }
8
+ });
9
+ export { UpdateTaskFeature };
10
+
11
+ //# sourceMappingURL=feature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api/features/UpdateTask/feature.js","sources":["../../../../src/api/features/UpdateTask/feature.ts"],"sourcesContent":["import { createFeature } from \"@webiny/feature/api\";\nimport { UpdateTaskUseCase } from \"./UpdateTaskUseCase.js\";\n\nexport const UpdateTaskFeature = createFeature({\n name: \"UpdateTask\",\n register(container) {\n container.register(UpdateTaskUseCase);\n }\n});\n"],"names":["UpdateTaskFeature","createFeature","container","UpdateTaskUseCase"],"mappings":";;AAGO,MAAMA,oBAAoBC,cAAc;IAC3C,MAAM;IACN,UAASC,SAAS;QACdA,UAAU,QAAQ,CAACC;IACvB;AACJ"}
@@ -0,0 +1,2 @@
1
+ export { UpdateTaskUseCase } from "./abstractions.js";
2
+ export { UpdateTaskFeature } from "./feature.js";
@@ -0,0 +1,2 @@
1
+ export { UpdateTaskUseCase } from "./abstractions.js";
2
+ export { UpdateTaskFeature } from "./feature.js";
@@ -0,0 +1,12 @@
1
+ import { UpdateTaskLogUseCase as UseCaseAbstraction } from "./abstractions.js";
2
+ import { TaskLogsRepository } from "../../../api/domain/task/abstractions.js";
3
+ import type { ITaskLogUpdateInput } from "../../../api/types.js";
4
+ declare class UpdateTaskLogUseCaseImpl implements UseCaseAbstraction.Interface {
5
+ private readonly repository;
6
+ constructor(repository: TaskLogsRepository.Interface);
7
+ execute(id: string, data: ITaskLogUpdateInput): Promise<import("@webiny/feature/api/Result.js").Result<import("~/api/types.js").ITaskLog, import("../../domain/errors.js").BackgroundTaskPersistenceError | import("../../domain/errors.js").TaskLogNotFoundError>>;
8
+ }
9
+ export declare const UpdateTaskLogUseCase: typeof UpdateTaskLogUseCaseImpl & {
10
+ __abstraction: import("@webiny/di").Abstraction<import("./abstractions.js").IUpdateTaskLogUseCase>;
11
+ };
12
+ export {};
@@ -0,0 +1,19 @@
1
+ import { UpdateTaskLogUseCase } from "./abstractions.js";
2
+ import { TaskLogsRepository } from "../../domain/task/abstractions.js";
3
+ class UpdateTaskLogUseCaseImpl {
4
+ constructor(repository){
5
+ this.repository = repository;
6
+ }
7
+ execute(id, data) {
8
+ return this.repository.update(id, data);
9
+ }
10
+ }
11
+ const UpdateTaskLogUseCase_UpdateTaskLogUseCase = UpdateTaskLogUseCase.createImplementation({
12
+ implementation: UpdateTaskLogUseCaseImpl,
13
+ dependencies: [
14
+ TaskLogsRepository
15
+ ]
16
+ });
17
+ export { UpdateTaskLogUseCase_UpdateTaskLogUseCase as UpdateTaskLogUseCase };
18
+
19
+ //# sourceMappingURL=UpdateTaskLogUseCase.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api/features/UpdateTaskLog/UpdateTaskLogUseCase.js","sources":["../../../../src/api/features/UpdateTaskLog/UpdateTaskLogUseCase.ts"],"sourcesContent":["import { UpdateTaskLogUseCase as UseCaseAbstraction } from \"./abstractions.js\";\nimport { TaskLogsRepository } from \"~/api/domain/task/abstractions.js\";\nimport type { ITaskLogUpdateInput } from \"~/api/types.js\";\n\nclass UpdateTaskLogUseCaseImpl implements UseCaseAbstraction.Interface {\n constructor(private readonly repository: TaskLogsRepository.Interface) {}\n\n execute(id: string, data: ITaskLogUpdateInput) {\n return this.repository.update(id, data);\n }\n}\n\nexport const UpdateTaskLogUseCase = UseCaseAbstraction.createImplementation({\n implementation: UpdateTaskLogUseCaseImpl,\n dependencies: [TaskLogsRepository]\n});\n"],"names":["UpdateTaskLogUseCaseImpl","repository","id","data","UpdateTaskLogUseCase","UseCaseAbstraction","TaskLogsRepository"],"mappings":";;AAIA,MAAMA;IACF,YAA6BC,UAAwC,CAAE;aAA1CA,UAAU,GAAVA;IAA2C;IAExE,QAAQC,EAAU,EAAEC,IAAyB,EAAE;QAC3C,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,CAACD,IAAIC;IACtC;AACJ;AAEO,MAAMC,4CAAuBC,qBAAAA,oBAAuC,CAAC;IACxE,gBAAgBL;IAChB,cAAc;QAACM;KAAmB;AACtC"}
@@ -0,0 +1,16 @@
1
+ import type { Result } from "@webiny/feature/api";
2
+ import type { ITaskLog } from "../../../api/types.js";
3
+ import type { ITaskLogUpdateInput } from "../../../api/types.js";
4
+ import type { BackgroundTaskPersistenceError } from "../../../api/domain/errors.js";
5
+ import type { TaskLogNotFoundError } from "../../../api/domain/errors.js";
6
+ type UseCaseError = TaskLogNotFoundError | BackgroundTaskPersistenceError;
7
+ export interface IUpdateTaskLogUseCase {
8
+ execute(id: string, data: ITaskLogUpdateInput): Promise<Result<ITaskLog, UseCaseError>>;
9
+ }
10
+ /** Update a task log, usually to append items. */
11
+ export declare const UpdateTaskLogUseCase: import("@webiny/di").Abstraction<IUpdateTaskLogUseCase>;
12
+ export declare namespace UpdateTaskLogUseCase {
13
+ type Interface = IUpdateTaskLogUseCase;
14
+ type Error = UseCaseError;
15
+ }
16
+ export {};
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/api";
2
+ const UpdateTaskLogUseCase = createAbstraction("Tasks/UpdateTaskLogUseCase");
3
+ export { UpdateTaskLogUseCase };
4
+
5
+ //# sourceMappingURL=abstractions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api/features/UpdateTaskLog/abstractions.js","sources":["../../../../src/api/features/UpdateTaskLog/abstractions.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { Result } from \"@webiny/feature/api\";\nimport type { ITaskLog } from \"~/api/types.js\";\nimport type { ITaskLogUpdateInput } from \"~/api/types.js\";\nimport type { BackgroundTaskPersistenceError } from \"~/api/domain/errors.js\";\nimport type { TaskLogNotFoundError } from \"~/api/domain/errors.js\";\n\ntype UseCaseError = TaskLogNotFoundError | BackgroundTaskPersistenceError;\n\nexport interface IUpdateTaskLogUseCase {\n execute(id: string, data: ITaskLogUpdateInput): Promise<Result<ITaskLog, UseCaseError>>;\n}\n\n/** Update a task log, usually to append items. */\nexport const UpdateTaskLogUseCase = createAbstraction<IUpdateTaskLogUseCase>(\n \"Tasks/UpdateTaskLogUseCase\"\n);\n\nexport namespace UpdateTaskLogUseCase {\n export type Interface = IUpdateTaskLogUseCase;\n export type Error = UseCaseError;\n}\n"],"names":["UpdateTaskLogUseCase","createAbstraction"],"mappings":";AAcO,MAAMA,uBAAuBC,kBAChC"}
@@ -0,0 +1,4 @@
1
+ export declare const UpdateTaskLogFeature: {
2
+ name: string;
3
+ register(container: import("@webiny/di").Container): void;
4
+ };
@@ -0,0 +1,11 @@
1
+ import { createFeature } from "@webiny/feature/api";
2
+ import { UpdateTaskLogUseCase } from "./UpdateTaskLogUseCase.js";
3
+ const UpdateTaskLogFeature = createFeature({
4
+ name: "UpdateTaskLog",
5
+ register (container) {
6
+ container.register(UpdateTaskLogUseCase);
7
+ }
8
+ });
9
+ export { UpdateTaskLogFeature };
10
+
11
+ //# sourceMappingURL=feature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api/features/UpdateTaskLog/feature.js","sources":["../../../../src/api/features/UpdateTaskLog/feature.ts"],"sourcesContent":["import { createFeature } from \"@webiny/feature/api\";\nimport { UpdateTaskLogUseCase } from \"./UpdateTaskLogUseCase.js\";\n\nexport const UpdateTaskLogFeature = createFeature({\n name: \"UpdateTaskLog\",\n register(container) {\n container.register(UpdateTaskLogUseCase);\n }\n});\n"],"names":["UpdateTaskLogFeature","createFeature","container","UpdateTaskLogUseCase"],"mappings":";;AAGO,MAAMA,uBAAuBC,cAAc;IAC9C,MAAM;IACN,UAASC,SAAS;QACdA,UAAU,QAAQ,CAACC;IACvB;AACJ"}
@@ -0,0 +1,2 @@
1
+ export { UpdateTaskLogUseCase } from "./abstractions.js";
2
+ export { UpdateTaskLogFeature } from "./feature.js";
@@ -0,0 +1,2 @@
1
+ export { UpdateTaskLogUseCase } from "./abstractions.js";
2
+ export { UpdateTaskLogFeature } from "./feature.js";
@@ -0,0 +1,29 @@
1
+ import { GraphQLSchemaFactory } from "@webiny/api-graphql/graphql/abstractions.js";
2
+ import { TenantContext } from "@webiny/api-core/features/tenancy/TenantContext/abstractions.js";
3
+ import { IdentityContext } from "@webiny/api-core/features/security/IdentityContext/abstractions.js";
4
+ import { ListModelsUseCase } from "@webiny/api-headless-cms/features/contentModel/ListModels/index.js";
5
+ import { CmsModelFieldToGraphQLRegistry } from "@webiny/api-headless-cms/exports/api/cms/graphql.js";
6
+ import { TaskLogModelProvider } from "../../api/domain/task/abstractions.js";
7
+ import { TaskModelProvider } from "../../api/domain/task/abstractions.js";
8
+ /**
9
+ * The background-tasks GraphQL schema. Its shape depends on the CMS task/log content models, which
10
+ * are loaded when the schema is composed. The settings schema lives here too, because it extends
11
+ * the task schema's `WebinyBackgroundTaskQuery`/`Mutation` types.
12
+ */
13
+ declare class BackgroundTasksGraphQLSchemaImpl implements GraphQLSchemaFactory.Interface {
14
+ private readonly tenantContext;
15
+ private readonly identityContext;
16
+ private readonly taskModelProvider;
17
+ private readonly logModelProvider;
18
+ private readonly listModelsUseCase;
19
+ private readonly fieldRegistry;
20
+ constructor(tenantContext: TenantContext.Interface, identityContext: IdentityContext.Interface, taskModelProvider: TaskModelProvider.Interface, logModelProvider: TaskLogModelProvider.Interface, listModelsUseCase: ListModelsUseCase.Interface, fieldRegistry: CmsModelFieldToGraphQLRegistry.Interface);
21
+ getSchemaKey(): Promise<string>;
22
+ execute(builder: GraphQLSchemaFactory.SchemaBuilder): Promise<GraphQLSchemaFactory.SchemaBuilder>;
23
+ private loadInputs;
24
+ private createTypeDefs;
25
+ }
26
+ export declare const BackgroundTasksGraphQLSchema: typeof BackgroundTasksGraphQLSchemaImpl & {
27
+ __abstraction: import("@webiny/di").Abstraction<import("@webiny/api-graphql/graphql/abstractions.public.js").IGraphQLSchemaFactory>;
28
+ };
29
+ export {};