@contember/engine-actions 2.1.0-alpha.30 → 2.1.0-alpha.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/graphql.codegen.yml +1 -1
- package/package.json +27 -22
- package/src/ActionsExecutionContainerHookFactory.ts +23 -11
- package/src/dispatch/DispatchWorkerSupervisor.ts +17 -16
- package/src/dispatch/EventDispatcher.ts +0 -2
- package/src/dispatch/EventsRepository.ts +41 -40
- package/src/dispatch/ProjectDispatcher.ts +5 -10
- package/src/dispatch/WebhookTargetHandler.ts +15 -9
- package/src/dispatch/types.ts +1 -2
- package/src/graphql/http/ActionsApiMiddlewareFactory.ts +6 -5
- package/src/graphql/http/ActionsContextResolver.ts +1 -2
- package/src/graphql/http/ActionsGraphQLHandlerFactory.ts +0 -1
- package/src/graphql/http/ActionsWebsocketControllerFactory.ts +7 -5
- package/src/graphql/resolvers/ResolversFactory.ts +3 -1
- package/src/graphql/resolvers/mutation/SetVariablesMutationResolver.ts +0 -1
- package/src/graphql/resolvers/query/EventsQueryResolver.ts +1 -8
- package/src/graphql/resolvers/query/VariablesQueryResolver.ts +0 -1
- package/src/graphql/schema/index.ts +37 -36
- package/src/index.ts +50 -29
- package/src/migrations/2023-03-10-145000-actions-variables.ts +1 -1
- package/src/migrations/2025-05-28-160000-action-event-user.ts +1 -1
- package/src/migrations/snapshot.ts +1 -1
- package/src/model/EventsToProcessSpecification.ts +9 -8
- package/src/model/SetVariableCommand.ts +0 -1
- package/src/triggers/TriggerHandler.ts +5 -5
- package/src/triggers/TriggerListeners.ts +1 -8
- package/src/triggers/TriggerListenersBuilder.ts +3 -6
- package/src/triggers/TriggerPayloadBuilder.ts +25 -12
- package/src/triggers/TriggerPayloadManager.ts +0 -3
- package/src/triggers/TriggerPayloadPersister.ts +0 -1
- package/tests/cases/unit/generator.test.ts +132 -135
- package/tests/cases/unit/webhookHandler.test.ts +44 -41
- package/dist/development/index.cjs +0 -99
- package/dist/development/index.cjs.map +0 -1
- package/dist/development/index.js +0 -99
- package/dist/development/index.js.map +0 -1
- package/dist/development/src/ActionsExecutionContainerHookFactory.cjs +0 -30
- package/dist/development/src/ActionsExecutionContainerHookFactory.cjs.map +0 -1
- package/dist/development/src/ActionsExecutionContainerHookFactory.js +0 -30
- package/dist/development/src/ActionsExecutionContainerHookFactory.js.map +0 -1
- package/dist/development/src/ImplementationException.cjs +0 -6
- package/dist/development/src/ImplementationException.cjs.map +0 -1
- package/dist/development/src/ImplementationException.js +0 -6
- package/dist/development/src/ImplementationException.js.map +0 -1
- package/dist/development/src/ListenerStoreProvider.cjs +0 -25
- package/dist/development/src/ListenerStoreProvider.cjs.map +0 -1
- package/dist/development/src/ListenerStoreProvider.js +0 -25
- package/dist/development/src/ListenerStoreProvider.js.map +0 -1
- package/dist/development/src/authorization/ActionsAuthorizationActions.cjs +0 -17
- package/dist/development/src/authorization/ActionsAuthorizationActions.cjs.map +0 -1
- package/dist/development/src/authorization/ActionsAuthorizationActions.js +0 -18
- package/dist/development/src/authorization/ActionsAuthorizationActions.js.map +0 -1
- package/dist/development/src/authorization/ActionsPermissionsFactory.cjs +0 -16
- package/dist/development/src/authorization/ActionsPermissionsFactory.cjs.map +0 -1
- package/dist/development/src/authorization/ActionsPermissionsFactory.js +0 -16
- package/dist/development/src/authorization/ActionsPermissionsFactory.js.map +0 -1
- package/dist/development/src/dispatch/DispatchWorkerSupervisor.cjs +0 -125
- package/dist/development/src/dispatch/DispatchWorkerSupervisor.cjs.map +0 -1
- package/dist/development/src/dispatch/DispatchWorkerSupervisor.js +0 -125
- package/dist/development/src/dispatch/DispatchWorkerSupervisor.js.map +0 -1
- package/dist/development/src/dispatch/EventDispatcher.cjs +0 -43
- package/dist/development/src/dispatch/EventDispatcher.cjs.map +0 -1
- package/dist/development/src/dispatch/EventDispatcher.js +0 -43
- package/dist/development/src/dispatch/EventDispatcher.js.map +0 -1
- package/dist/development/src/dispatch/EventsRepository.cjs +0 -117
- package/dist/development/src/dispatch/EventsRepository.cjs.map +0 -1
- package/dist/development/src/dispatch/EventsRepository.js +0 -117
- package/dist/development/src/dispatch/EventsRepository.js.map +0 -1
- package/dist/development/src/dispatch/ProjectDispatcher.cjs +0 -99
- package/dist/development/src/dispatch/ProjectDispatcher.cjs.map +0 -1
- package/dist/development/src/dispatch/ProjectDispatcher.js +0 -99
- package/dist/development/src/dispatch/ProjectDispatcher.js.map +0 -1
- package/dist/development/src/dispatch/TargetHandlerResolver.cjs +0 -16
- package/dist/development/src/dispatch/TargetHandlerResolver.cjs.map +0 -1
- package/dist/development/src/dispatch/TargetHandlerResolver.js +0 -16
- package/dist/development/src/dispatch/TargetHandlerResolver.js.map +0 -1
- package/dist/development/src/dispatch/WebhookFetcher.cjs +0 -16
- package/dist/development/src/dispatch/WebhookFetcher.cjs.map +0 -1
- package/dist/development/src/dispatch/WebhookFetcher.js +0 -16
- package/dist/development/src/dispatch/WebhookFetcher.js.map +0 -1
- package/dist/development/src/dispatch/WebhookTargetHandler.cjs +0 -196
- package/dist/development/src/dispatch/WebhookTargetHandler.cjs.map +0 -1
- package/dist/development/src/dispatch/WebhookTargetHandler.js +0 -179
- package/dist/development/src/dispatch/WebhookTargetHandler.js.map +0 -1
- package/dist/development/src/graphql/http/ActionsApiMiddlewareFactory.cjs +0 -39
- package/dist/development/src/graphql/http/ActionsApiMiddlewareFactory.cjs.map +0 -1
- package/dist/development/src/graphql/http/ActionsApiMiddlewareFactory.js +0 -39
- package/dist/development/src/graphql/http/ActionsApiMiddlewareFactory.js.map +0 -1
- package/dist/development/src/graphql/http/ActionsContextResolver.cjs +0 -39
- package/dist/development/src/graphql/http/ActionsContextResolver.cjs.map +0 -1
- package/dist/development/src/graphql/http/ActionsContextResolver.js +0 -39
- package/dist/development/src/graphql/http/ActionsContextResolver.js.map +0 -1
- package/dist/development/src/graphql/http/ActionsGraphQLHandlerFactory.cjs +0 -20
- package/dist/development/src/graphql/http/ActionsGraphQLHandlerFactory.cjs.map +0 -1
- package/dist/development/src/graphql/http/ActionsGraphQLHandlerFactory.js +0 -20
- package/dist/development/src/graphql/http/ActionsGraphQLHandlerFactory.js.map +0 -1
- package/dist/development/src/graphql/http/ActionsWebsocketControllerFactory.cjs +0 -149
- package/dist/development/src/graphql/http/ActionsWebsocketControllerFactory.cjs.map +0 -1
- package/dist/development/src/graphql/http/ActionsWebsocketControllerFactory.js +0 -132
- package/dist/development/src/graphql/http/ActionsWebsocketControllerFactory.js.map +0 -1
- package/dist/development/src/graphql/resolvers/ResolversFactory.cjs +0 -36
- package/dist/development/src/graphql/resolvers/ResolversFactory.cjs.map +0 -1
- package/dist/development/src/graphql/resolvers/ResolversFactory.js +0 -36
- package/dist/development/src/graphql/resolvers/ResolversFactory.js.map +0 -1
- package/dist/development/src/graphql/resolvers/mutation/ProcessBatchMutationResolver.cjs +0 -19
- package/dist/development/src/graphql/resolvers/mutation/ProcessBatchMutationResolver.cjs.map +0 -1
- package/dist/development/src/graphql/resolvers/mutation/ProcessBatchMutationResolver.js +0 -19
- package/dist/development/src/graphql/resolvers/mutation/ProcessBatchMutationResolver.js.map +0 -1
- package/dist/development/src/graphql/resolvers/mutation/RetryEventMutationResolver.cjs +0 -21
- package/dist/development/src/graphql/resolvers/mutation/RetryEventMutationResolver.cjs.map +0 -1
- package/dist/development/src/graphql/resolvers/mutation/RetryEventMutationResolver.js +0 -21
- package/dist/development/src/graphql/resolvers/mutation/RetryEventMutationResolver.js.map +0 -1
- package/dist/development/src/graphql/resolvers/mutation/SetVariablesMutationResolver.cjs +0 -19
- package/dist/development/src/graphql/resolvers/mutation/SetVariablesMutationResolver.cjs.map +0 -1
- package/dist/development/src/graphql/resolvers/mutation/SetVariablesMutationResolver.js +0 -19
- package/dist/development/src/graphql/resolvers/mutation/SetVariablesMutationResolver.js.map +0 -1
- package/dist/development/src/graphql/resolvers/mutation/StopEventMutationResolver.cjs +0 -19
- package/dist/development/src/graphql/resolvers/mutation/StopEventMutationResolver.cjs.map +0 -1
- package/dist/development/src/graphql/resolvers/mutation/StopEventMutationResolver.js +0 -19
- package/dist/development/src/graphql/resolvers/mutation/StopEventMutationResolver.js.map +0 -1
- package/dist/development/src/graphql/resolvers/query/EventsQueryResolver.cjs +0 -61
- package/dist/development/src/graphql/resolvers/query/EventsQueryResolver.cjs.map +0 -1
- package/dist/development/src/graphql/resolvers/query/EventsQueryResolver.js +0 -61
- package/dist/development/src/graphql/resolvers/query/EventsQueryResolver.js.map +0 -1
- package/dist/development/src/graphql/resolvers/query/VariablesQueryResolver.cjs +0 -19
- package/dist/development/src/graphql/resolvers/query/VariablesQueryResolver.cjs.map +0 -1
- package/dist/development/src/graphql/resolvers/query/VariablesQueryResolver.js +0 -19
- package/dist/development/src/graphql/resolvers/query/VariablesQueryResolver.js.map +0 -1
- package/dist/development/src/graphql/schema/actions.graphql.cjs +0 -107
- package/dist/development/src/graphql/schema/actions.graphql.cjs.map +0 -1
- package/dist/development/src/graphql/schema/actions.graphql.js +0 -107
- package/dist/development/src/graphql/schema/actions.graphql.js.map +0 -1
- package/dist/development/src/migrations/2023-03-10-145000-actions-variables.cjs +0 -16
- package/dist/development/src/migrations/2023-03-10-145000-actions-variables.cjs.map +0 -1
- package/dist/development/src/migrations/2023-03-10-145000-actions-variables.js +0 -17
- package/dist/development/src/migrations/2023-03-10-145000-actions-variables.js.map +0 -1
- package/dist/development/src/migrations/2025-05-28-160000-action-event-user.cjs +0 -16
- package/dist/development/src/migrations/2025-05-28-160000-action-event-user.cjs.map +0 -1
- package/dist/development/src/migrations/2025-05-28-160000-action-event-user.js +0 -17
- package/dist/development/src/migrations/2025-05-28-160000-action-event-user.js.map +0 -1
- package/dist/development/src/migrations/index.cjs +0 -12
- package/dist/development/src/migrations/index.cjs.map +0 -1
- package/dist/development/src/migrations/index.js +0 -12
- package/dist/development/src/migrations/index.js.map +0 -1
- package/dist/development/src/migrations/snapshot.cjs +0 -51
- package/dist/development/src/migrations/snapshot.cjs.map +0 -1
- package/dist/development/src/migrations/snapshot.js +0 -52
- package/dist/development/src/migrations/snapshot.js.map +0 -1
- package/dist/development/src/model/EventByIdQuery.cjs +0 -17
- package/dist/development/src/model/EventByIdQuery.cjs.map +0 -1
- package/dist/development/src/model/EventByIdQuery.js +0 -17
- package/dist/development/src/model/EventByIdQuery.js.map +0 -1
- package/dist/development/src/model/EventsInProcessingQuery.cjs +0 -14
- package/dist/development/src/model/EventsInProcessingQuery.cjs.map +0 -1
- package/dist/development/src/model/EventsInProcessingQuery.js +0 -14
- package/dist/development/src/model/EventsInProcessingQuery.js.map +0 -1
- package/dist/development/src/model/EventsToProcessQuery.cjs +0 -15
- package/dist/development/src/model/EventsToProcessQuery.cjs.map +0 -1
- package/dist/development/src/model/EventsToProcessQuery.js +0 -15
- package/dist/development/src/model/EventsToProcessQuery.js.map +0 -1
- package/dist/development/src/model/EventsToProcessSpecification.cjs +0 -8
- package/dist/development/src/model/EventsToProcessSpecification.cjs.map +0 -1
- package/dist/development/src/model/EventsToProcessSpecification.js +0 -8
- package/dist/development/src/model/EventsToProcessSpecification.js.map +0 -1
- package/dist/development/src/model/FailedEventsQuery.cjs +0 -14
- package/dist/development/src/model/FailedEventsQuery.cjs.map +0 -1
- package/dist/development/src/model/FailedEventsQuery.js +0 -14
- package/dist/development/src/model/FailedEventsQuery.js.map +0 -1
- package/dist/development/src/model/SetVariableCommand.cjs +0 -21
- package/dist/development/src/model/SetVariableCommand.cjs.map +0 -1
- package/dist/development/src/model/SetVariableCommand.js +0 -21
- package/dist/development/src/model/SetVariableCommand.js.map +0 -1
- package/dist/development/src/model/VariablesManager.cjs +0 -41
- package/dist/development/src/model/VariablesManager.cjs.map +0 -1
- package/dist/development/src/model/VariablesManager.js +0 -41
- package/dist/development/src/model/VariablesManager.js.map +0 -1
- package/dist/development/src/model/VariablesQuery.cjs +0 -10
- package/dist/development/src/model/VariablesQuery.cjs.map +0 -1
- package/dist/development/src/model/VariablesQuery.js +0 -10
- package/dist/development/src/model/VariablesQuery.js.map +0 -1
- package/dist/development/src/triggers/TriggerHandler.cjs +0 -127
- package/dist/development/src/triggers/TriggerHandler.cjs.map +0 -1
- package/dist/development/src/triggers/TriggerHandler.js +0 -127
- package/dist/development/src/triggers/TriggerHandler.js.map +0 -1
- package/dist/development/src/triggers/TriggerIndirectChangesFetcher.cjs +0 -63
- package/dist/development/src/triggers/TriggerIndirectChangesFetcher.cjs.map +0 -1
- package/dist/development/src/triggers/TriggerIndirectChangesFetcher.js +0 -63
- package/dist/development/src/triggers/TriggerIndirectChangesFetcher.js.map +0 -1
- package/dist/development/src/triggers/TriggerListenersBuilder.cjs +0 -169
- package/dist/development/src/triggers/TriggerListenersBuilder.cjs.map +0 -1
- package/dist/development/src/triggers/TriggerListenersBuilder.js +0 -169
- package/dist/development/src/triggers/TriggerListenersBuilder.js.map +0 -1
- package/dist/development/src/triggers/TriggerListenersFactory.cjs +0 -17
- package/dist/development/src/triggers/TriggerListenersFactory.cjs.map +0 -1
- package/dist/development/src/triggers/TriggerListenersFactory.js +0 -17
- package/dist/development/src/triggers/TriggerListenersFactory.js.map +0 -1
- package/dist/development/src/triggers/TriggerListenersStore.cjs +0 -24
- package/dist/development/src/triggers/TriggerListenersStore.cjs.map +0 -1
- package/dist/development/src/triggers/TriggerListenersStore.js +0 -24
- package/dist/development/src/triggers/TriggerListenersStore.js.map +0 -1
- package/dist/development/src/triggers/TriggerPayloadBuilder.cjs +0 -149
- package/dist/development/src/triggers/TriggerPayloadBuilder.cjs.map +0 -1
- package/dist/development/src/triggers/TriggerPayloadBuilder.js +0 -149
- package/dist/development/src/triggers/TriggerPayloadBuilder.js.map +0 -1
- package/dist/development/src/triggers/TriggerPayloadManager.cjs +0 -27
- package/dist/development/src/triggers/TriggerPayloadManager.cjs.map +0 -1
- package/dist/development/src/triggers/TriggerPayloadManager.js +0 -27
- package/dist/development/src/triggers/TriggerPayloadManager.js.map +0 -1
- package/dist/development/src/triggers/TriggerPayloadPersister.cjs +0 -47
- package/dist/development/src/triggers/TriggerPayloadPersister.cjs.map +0 -1
- package/dist/development/src/triggers/TriggerPayloadPersister.js +0 -47
- package/dist/development/src/triggers/TriggerPayloadPersister.js.map +0 -1
- package/dist/development/src/utils/assertNever.cjs +0 -7
- package/dist/development/src/utils/assertNever.cjs.map +0 -1
- package/dist/development/src/utils/assertNever.js +0 -7
- package/dist/development/src/utils/assertNever.js.map +0 -1
- package/dist/development/src/utils/map.cjs +0 -13
- package/dist/development/src/utils/map.cjs.map +0 -1
- package/dist/development/src/utils/map.js +0 -13
- package/dist/development/src/utils/map.js.map +0 -1
- package/dist/development/src/utils/notifyChannel.cjs +0 -9
- package/dist/development/src/utils/notifyChannel.cjs.map +0 -1
- package/dist/development/src/utils/notifyChannel.js +0 -9
- package/dist/development/src/utils/notifyChannel.js.map +0 -1
- package/dist/production/index.cjs +0 -99
- package/dist/production/index.cjs.map +0 -1
- package/dist/production/index.js +0 -99
- package/dist/production/index.js.map +0 -1
- package/dist/production/src/ActionsExecutionContainerHookFactory.cjs +0 -30
- package/dist/production/src/ActionsExecutionContainerHookFactory.cjs.map +0 -1
- package/dist/production/src/ActionsExecutionContainerHookFactory.js +0 -30
- package/dist/production/src/ActionsExecutionContainerHookFactory.js.map +0 -1
- package/dist/production/src/ImplementationException.cjs +0 -6
- package/dist/production/src/ImplementationException.cjs.map +0 -1
- package/dist/production/src/ImplementationException.js +0 -6
- package/dist/production/src/ImplementationException.js.map +0 -1
- package/dist/production/src/ListenerStoreProvider.cjs +0 -25
- package/dist/production/src/ListenerStoreProvider.cjs.map +0 -1
- package/dist/production/src/ListenerStoreProvider.js +0 -25
- package/dist/production/src/ListenerStoreProvider.js.map +0 -1
- package/dist/production/src/authorization/ActionsAuthorizationActions.cjs +0 -17
- package/dist/production/src/authorization/ActionsAuthorizationActions.cjs.map +0 -1
- package/dist/production/src/authorization/ActionsAuthorizationActions.js +0 -18
- package/dist/production/src/authorization/ActionsAuthorizationActions.js.map +0 -1
- package/dist/production/src/authorization/ActionsPermissionsFactory.cjs +0 -16
- package/dist/production/src/authorization/ActionsPermissionsFactory.cjs.map +0 -1
- package/dist/production/src/authorization/ActionsPermissionsFactory.js +0 -16
- package/dist/production/src/authorization/ActionsPermissionsFactory.js.map +0 -1
- package/dist/production/src/dispatch/DispatchWorkerSupervisor.cjs +0 -125
- package/dist/production/src/dispatch/DispatchWorkerSupervisor.cjs.map +0 -1
- package/dist/production/src/dispatch/DispatchWorkerSupervisor.js +0 -125
- package/dist/production/src/dispatch/DispatchWorkerSupervisor.js.map +0 -1
- package/dist/production/src/dispatch/EventDispatcher.cjs +0 -43
- package/dist/production/src/dispatch/EventDispatcher.cjs.map +0 -1
- package/dist/production/src/dispatch/EventDispatcher.js +0 -43
- package/dist/production/src/dispatch/EventDispatcher.js.map +0 -1
- package/dist/production/src/dispatch/EventsRepository.cjs +0 -117
- package/dist/production/src/dispatch/EventsRepository.cjs.map +0 -1
- package/dist/production/src/dispatch/EventsRepository.js +0 -117
- package/dist/production/src/dispatch/EventsRepository.js.map +0 -1
- package/dist/production/src/dispatch/ProjectDispatcher.cjs +0 -99
- package/dist/production/src/dispatch/ProjectDispatcher.cjs.map +0 -1
- package/dist/production/src/dispatch/ProjectDispatcher.js +0 -99
- package/dist/production/src/dispatch/ProjectDispatcher.js.map +0 -1
- package/dist/production/src/dispatch/TargetHandlerResolver.cjs +0 -16
- package/dist/production/src/dispatch/TargetHandlerResolver.cjs.map +0 -1
- package/dist/production/src/dispatch/TargetHandlerResolver.js +0 -16
- package/dist/production/src/dispatch/TargetHandlerResolver.js.map +0 -1
- package/dist/production/src/dispatch/WebhookFetcher.cjs +0 -16
- package/dist/production/src/dispatch/WebhookFetcher.cjs.map +0 -1
- package/dist/production/src/dispatch/WebhookFetcher.js +0 -16
- package/dist/production/src/dispatch/WebhookFetcher.js.map +0 -1
- package/dist/production/src/dispatch/WebhookTargetHandler.cjs +0 -196
- package/dist/production/src/dispatch/WebhookTargetHandler.cjs.map +0 -1
- package/dist/production/src/dispatch/WebhookTargetHandler.js +0 -179
- package/dist/production/src/dispatch/WebhookTargetHandler.js.map +0 -1
- package/dist/production/src/graphql/http/ActionsApiMiddlewareFactory.cjs +0 -39
- package/dist/production/src/graphql/http/ActionsApiMiddlewareFactory.cjs.map +0 -1
- package/dist/production/src/graphql/http/ActionsApiMiddlewareFactory.js +0 -39
- package/dist/production/src/graphql/http/ActionsApiMiddlewareFactory.js.map +0 -1
- package/dist/production/src/graphql/http/ActionsContextResolver.cjs +0 -39
- package/dist/production/src/graphql/http/ActionsContextResolver.cjs.map +0 -1
- package/dist/production/src/graphql/http/ActionsContextResolver.js +0 -39
- package/dist/production/src/graphql/http/ActionsContextResolver.js.map +0 -1
- package/dist/production/src/graphql/http/ActionsGraphQLHandlerFactory.cjs +0 -20
- package/dist/production/src/graphql/http/ActionsGraphQLHandlerFactory.cjs.map +0 -1
- package/dist/production/src/graphql/http/ActionsGraphQLHandlerFactory.js +0 -20
- package/dist/production/src/graphql/http/ActionsGraphQLHandlerFactory.js.map +0 -1
- package/dist/production/src/graphql/http/ActionsWebsocketControllerFactory.cjs +0 -149
- package/dist/production/src/graphql/http/ActionsWebsocketControllerFactory.cjs.map +0 -1
- package/dist/production/src/graphql/http/ActionsWebsocketControllerFactory.js +0 -132
- package/dist/production/src/graphql/http/ActionsWebsocketControllerFactory.js.map +0 -1
- package/dist/production/src/graphql/resolvers/ResolversFactory.cjs +0 -36
- package/dist/production/src/graphql/resolvers/ResolversFactory.cjs.map +0 -1
- package/dist/production/src/graphql/resolvers/ResolversFactory.js +0 -36
- package/dist/production/src/graphql/resolvers/ResolversFactory.js.map +0 -1
- package/dist/production/src/graphql/resolvers/mutation/ProcessBatchMutationResolver.cjs +0 -19
- package/dist/production/src/graphql/resolvers/mutation/ProcessBatchMutationResolver.cjs.map +0 -1
- package/dist/production/src/graphql/resolvers/mutation/ProcessBatchMutationResolver.js +0 -19
- package/dist/production/src/graphql/resolvers/mutation/ProcessBatchMutationResolver.js.map +0 -1
- package/dist/production/src/graphql/resolvers/mutation/RetryEventMutationResolver.cjs +0 -21
- package/dist/production/src/graphql/resolvers/mutation/RetryEventMutationResolver.cjs.map +0 -1
- package/dist/production/src/graphql/resolvers/mutation/RetryEventMutationResolver.js +0 -21
- package/dist/production/src/graphql/resolvers/mutation/RetryEventMutationResolver.js.map +0 -1
- package/dist/production/src/graphql/resolvers/mutation/SetVariablesMutationResolver.cjs +0 -19
- package/dist/production/src/graphql/resolvers/mutation/SetVariablesMutationResolver.cjs.map +0 -1
- package/dist/production/src/graphql/resolvers/mutation/SetVariablesMutationResolver.js +0 -19
- package/dist/production/src/graphql/resolvers/mutation/SetVariablesMutationResolver.js.map +0 -1
- package/dist/production/src/graphql/resolvers/mutation/StopEventMutationResolver.cjs +0 -19
- package/dist/production/src/graphql/resolvers/mutation/StopEventMutationResolver.cjs.map +0 -1
- package/dist/production/src/graphql/resolvers/mutation/StopEventMutationResolver.js +0 -19
- package/dist/production/src/graphql/resolvers/mutation/StopEventMutationResolver.js.map +0 -1
- package/dist/production/src/graphql/resolvers/query/EventsQueryResolver.cjs +0 -61
- package/dist/production/src/graphql/resolvers/query/EventsQueryResolver.cjs.map +0 -1
- package/dist/production/src/graphql/resolvers/query/EventsQueryResolver.js +0 -61
- package/dist/production/src/graphql/resolvers/query/EventsQueryResolver.js.map +0 -1
- package/dist/production/src/graphql/resolvers/query/VariablesQueryResolver.cjs +0 -19
- package/dist/production/src/graphql/resolvers/query/VariablesQueryResolver.cjs.map +0 -1
- package/dist/production/src/graphql/resolvers/query/VariablesQueryResolver.js +0 -19
- package/dist/production/src/graphql/resolvers/query/VariablesQueryResolver.js.map +0 -1
- package/dist/production/src/graphql/schema/actions.graphql.cjs +0 -107
- package/dist/production/src/graphql/schema/actions.graphql.cjs.map +0 -1
- package/dist/production/src/graphql/schema/actions.graphql.js +0 -107
- package/dist/production/src/graphql/schema/actions.graphql.js.map +0 -1
- package/dist/production/src/migrations/2023-03-10-145000-actions-variables.cjs +0 -16
- package/dist/production/src/migrations/2023-03-10-145000-actions-variables.cjs.map +0 -1
- package/dist/production/src/migrations/2023-03-10-145000-actions-variables.js +0 -17
- package/dist/production/src/migrations/2023-03-10-145000-actions-variables.js.map +0 -1
- package/dist/production/src/migrations/2025-05-28-160000-action-event-user.cjs +0 -16
- package/dist/production/src/migrations/2025-05-28-160000-action-event-user.cjs.map +0 -1
- package/dist/production/src/migrations/2025-05-28-160000-action-event-user.js +0 -17
- package/dist/production/src/migrations/2025-05-28-160000-action-event-user.js.map +0 -1
- package/dist/production/src/migrations/index.cjs +0 -12
- package/dist/production/src/migrations/index.cjs.map +0 -1
- package/dist/production/src/migrations/index.js +0 -12
- package/dist/production/src/migrations/index.js.map +0 -1
- package/dist/production/src/migrations/snapshot.cjs +0 -51
- package/dist/production/src/migrations/snapshot.cjs.map +0 -1
- package/dist/production/src/migrations/snapshot.js +0 -52
- package/dist/production/src/migrations/snapshot.js.map +0 -1
- package/dist/production/src/model/EventByIdQuery.cjs +0 -17
- package/dist/production/src/model/EventByIdQuery.cjs.map +0 -1
- package/dist/production/src/model/EventByIdQuery.js +0 -17
- package/dist/production/src/model/EventByIdQuery.js.map +0 -1
- package/dist/production/src/model/EventsInProcessingQuery.cjs +0 -14
- package/dist/production/src/model/EventsInProcessingQuery.cjs.map +0 -1
- package/dist/production/src/model/EventsInProcessingQuery.js +0 -14
- package/dist/production/src/model/EventsInProcessingQuery.js.map +0 -1
- package/dist/production/src/model/EventsToProcessQuery.cjs +0 -15
- package/dist/production/src/model/EventsToProcessQuery.cjs.map +0 -1
- package/dist/production/src/model/EventsToProcessQuery.js +0 -15
- package/dist/production/src/model/EventsToProcessQuery.js.map +0 -1
- package/dist/production/src/model/EventsToProcessSpecification.cjs +0 -8
- package/dist/production/src/model/EventsToProcessSpecification.cjs.map +0 -1
- package/dist/production/src/model/EventsToProcessSpecification.js +0 -8
- package/dist/production/src/model/EventsToProcessSpecification.js.map +0 -1
- package/dist/production/src/model/FailedEventsQuery.cjs +0 -14
- package/dist/production/src/model/FailedEventsQuery.cjs.map +0 -1
- package/dist/production/src/model/FailedEventsQuery.js +0 -14
- package/dist/production/src/model/FailedEventsQuery.js.map +0 -1
- package/dist/production/src/model/SetVariableCommand.cjs +0 -21
- package/dist/production/src/model/SetVariableCommand.cjs.map +0 -1
- package/dist/production/src/model/SetVariableCommand.js +0 -21
- package/dist/production/src/model/SetVariableCommand.js.map +0 -1
- package/dist/production/src/model/VariablesManager.cjs +0 -41
- package/dist/production/src/model/VariablesManager.cjs.map +0 -1
- package/dist/production/src/model/VariablesManager.js +0 -41
- package/dist/production/src/model/VariablesManager.js.map +0 -1
- package/dist/production/src/model/VariablesQuery.cjs +0 -10
- package/dist/production/src/model/VariablesQuery.cjs.map +0 -1
- package/dist/production/src/model/VariablesQuery.js +0 -10
- package/dist/production/src/model/VariablesQuery.js.map +0 -1
- package/dist/production/src/triggers/TriggerHandler.cjs +0 -127
- package/dist/production/src/triggers/TriggerHandler.cjs.map +0 -1
- package/dist/production/src/triggers/TriggerHandler.js +0 -127
- package/dist/production/src/triggers/TriggerHandler.js.map +0 -1
- package/dist/production/src/triggers/TriggerIndirectChangesFetcher.cjs +0 -63
- package/dist/production/src/triggers/TriggerIndirectChangesFetcher.cjs.map +0 -1
- package/dist/production/src/triggers/TriggerIndirectChangesFetcher.js +0 -63
- package/dist/production/src/triggers/TriggerIndirectChangesFetcher.js.map +0 -1
- package/dist/production/src/triggers/TriggerListenersBuilder.cjs +0 -169
- package/dist/production/src/triggers/TriggerListenersBuilder.cjs.map +0 -1
- package/dist/production/src/triggers/TriggerListenersBuilder.js +0 -169
- package/dist/production/src/triggers/TriggerListenersBuilder.js.map +0 -1
- package/dist/production/src/triggers/TriggerListenersFactory.cjs +0 -17
- package/dist/production/src/triggers/TriggerListenersFactory.cjs.map +0 -1
- package/dist/production/src/triggers/TriggerListenersFactory.js +0 -17
- package/dist/production/src/triggers/TriggerListenersFactory.js.map +0 -1
- package/dist/production/src/triggers/TriggerListenersStore.cjs +0 -24
- package/dist/production/src/triggers/TriggerListenersStore.cjs.map +0 -1
- package/dist/production/src/triggers/TriggerListenersStore.js +0 -24
- package/dist/production/src/triggers/TriggerListenersStore.js.map +0 -1
- package/dist/production/src/triggers/TriggerPayloadBuilder.cjs +0 -149
- package/dist/production/src/triggers/TriggerPayloadBuilder.cjs.map +0 -1
- package/dist/production/src/triggers/TriggerPayloadBuilder.js +0 -149
- package/dist/production/src/triggers/TriggerPayloadBuilder.js.map +0 -1
- package/dist/production/src/triggers/TriggerPayloadManager.cjs +0 -27
- package/dist/production/src/triggers/TriggerPayloadManager.cjs.map +0 -1
- package/dist/production/src/triggers/TriggerPayloadManager.js +0 -27
- package/dist/production/src/triggers/TriggerPayloadManager.js.map +0 -1
- package/dist/production/src/triggers/TriggerPayloadPersister.cjs +0 -47
- package/dist/production/src/triggers/TriggerPayloadPersister.cjs.map +0 -1
- package/dist/production/src/triggers/TriggerPayloadPersister.js +0 -47
- package/dist/production/src/triggers/TriggerPayloadPersister.js.map +0 -1
- package/dist/production/src/utils/assertNever.cjs +0 -7
- package/dist/production/src/utils/assertNever.cjs.map +0 -1
- package/dist/production/src/utils/assertNever.js +0 -7
- package/dist/production/src/utils/assertNever.js.map +0 -1
- package/dist/production/src/utils/map.cjs +0 -13
- package/dist/production/src/utils/map.cjs.map +0 -1
- package/dist/production/src/utils/map.js +0 -13
- package/dist/production/src/utils/map.js.map +0 -1
- package/dist/production/src/utils/notifyChannel.cjs +0 -9
- package/dist/production/src/utils/notifyChannel.cjs.map +0 -1
- package/dist/production/src/utils/notifyChannel.js +0 -9
- package/dist/production/src/utils/notifyChannel.js.map +0 -1
- package/dist/tests/cases/unit/generator.test.d.ts +0 -2
- package/dist/tests/cases/unit/generator.test.d.ts.map +0 -1
- package/dist/tests/cases/unit/webhookHandler.test.d.ts +0 -2
- package/dist/tests/cases/unit/webhookHandler.test.d.ts.map +0 -1
- package/dist/tests/src/gql.d.ts +0 -2
- package/dist/tests/src/gql.d.ts.map +0 -1
- package/dist/tests/src/uuid.d.ts +0 -3
- package/dist/tests/src/uuid.d.ts.map +0 -1
- package/dist/tests/tsconfig.tsbuildinfo +0 -1
- package/dist/types/ActionsExecutionContainerHookFactory.d.ts +0 -8
- package/dist/types/ActionsExecutionContainerHookFactory.d.ts.map +0 -1
- package/dist/types/ImplementationException.d.ts +0 -3
- package/dist/types/ImplementationException.d.ts.map +0 -1
- package/dist/types/ListenerStoreProvider.d.ts +0 -7
- package/dist/types/ListenerStoreProvider.d.ts.map +0 -1
- package/dist/types/authorization/ActionsAuthorizationActions.d.ts +0 -38
- package/dist/types/authorization/ActionsAuthorizationActions.d.ts.map +0 -1
- package/dist/types/authorization/ActionsPermissionsFactory.d.ts +0 -5
- package/dist/types/authorization/ActionsPermissionsFactory.d.ts.map +0 -1
- package/dist/types/authorization/Identity.d.ts +0 -5
- package/dist/types/authorization/Identity.d.ts.map +0 -1
- package/dist/types/authorization/index.d.ts +0 -4
- package/dist/types/authorization/index.d.ts.map +0 -1
- package/dist/types/dispatch/DispatchWorkerSupervisor.d.ts +0 -17
- package/dist/types/dispatch/DispatchWorkerSupervisor.d.ts.map +0 -1
- package/dist/types/dispatch/EventDispatcher.d.ts +0 -25
- package/dist/types/dispatch/EventDispatcher.d.ts.map +0 -1
- package/dist/types/dispatch/EventsRepository.d.ts +0 -23
- package/dist/types/dispatch/EventsRepository.d.ts.map +0 -1
- package/dist/types/dispatch/ProjectDispatcher.d.ts +0 -22
- package/dist/types/dispatch/ProjectDispatcher.d.ts.map +0 -1
- package/dist/types/dispatch/TargetHandlerResolver.d.ts +0 -9
- package/dist/types/dispatch/TargetHandlerResolver.d.ts.map +0 -1
- package/dist/types/dispatch/WebhookFetcher.d.ts +0 -14
- package/dist/types/dispatch/WebhookFetcher.d.ts.map +0 -1
- package/dist/types/dispatch/WebhookTargetHandler.d.ts +0 -16
- package/dist/types/dispatch/WebhookTargetHandler.d.ts.map +0 -1
- package/dist/types/dispatch/types.d.ts +0 -27
- package/dist/types/dispatch/types.d.ts.map +0 -1
- package/dist/types/graphql/http/ActionsApiMiddlewareFactory.d.ts +0 -13
- package/dist/types/graphql/http/ActionsApiMiddlewareFactory.d.ts.map +0 -1
- package/dist/types/graphql/http/ActionsContextResolver.d.ts +0 -14
- package/dist/types/graphql/http/ActionsContextResolver.d.ts.map +0 -1
- package/dist/types/graphql/http/ActionsGraphQLHandlerFactory.d.ts +0 -8
- package/dist/types/graphql/http/ActionsGraphQLHandlerFactory.d.ts.map +0 -1
- package/dist/types/graphql/http/ActionsWebsocketControllerFactory.d.ts +0 -11
- package/dist/types/graphql/http/ActionsWebsocketControllerFactory.d.ts.map +0 -1
- package/dist/types/graphql/resolvers/ActionsContext.d.ts +0 -14
- package/dist/types/graphql/resolvers/ActionsContext.d.ts.map +0 -1
- package/dist/types/graphql/resolvers/ResolversFactory.d.ts +0 -15
- package/dist/types/graphql/resolvers/ResolversFactory.d.ts.map +0 -1
- package/dist/types/graphql/resolvers/index.d.ts +0 -3
- package/dist/types/graphql/resolvers/index.d.ts.map +0 -1
- package/dist/types/graphql/resolvers/mutation/ProcessBatchMutationResolver.d.ts +0 -11
- package/dist/types/graphql/resolvers/mutation/ProcessBatchMutationResolver.d.ts.map +0 -1
- package/dist/types/graphql/resolvers/mutation/RetryEventMutationResolver.d.ts +0 -11
- package/dist/types/graphql/resolvers/mutation/RetryEventMutationResolver.d.ts.map +0 -1
- package/dist/types/graphql/resolvers/mutation/SetVariablesMutationResolver.d.ts +0 -11
- package/dist/types/graphql/resolvers/mutation/SetVariablesMutationResolver.d.ts.map +0 -1
- package/dist/types/graphql/resolvers/mutation/StopEventMutationResolver.d.ts +0 -11
- package/dist/types/graphql/resolvers/mutation/StopEventMutationResolver.d.ts.map +0 -1
- package/dist/types/graphql/resolvers/mutation/index.d.ts +0 -5
- package/dist/types/graphql/resolvers/mutation/index.d.ts.map +0 -1
- package/dist/types/graphql/resolvers/query/EventsQueryResolver.d.ts +0 -14
- package/dist/types/graphql/resolvers/query/EventsQueryResolver.d.ts.map +0 -1
- package/dist/types/graphql/resolvers/query/VariablesQueryResolver.d.ts +0 -12
- package/dist/types/graphql/resolvers/query/VariablesQueryResolver.d.ts.map +0 -1
- package/dist/types/graphql/resolvers/query/index.d.ts +0 -2
- package/dist/types/graphql/resolvers/query/index.d.ts.map +0 -1
- package/dist/types/graphql/schema/actions.graphql.d.ts +0 -3
- package/dist/types/graphql/schema/actions.graphql.d.ts.map +0 -1
- package/dist/types/graphql/schema/index.d.ts +0 -299
- package/dist/types/graphql/schema/index.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -13
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/migrations/2023-03-10-145000-actions-variables.d.ts +0 -3
- package/dist/types/migrations/2023-03-10-145000-actions-variables.d.ts.map +0 -1
- package/dist/types/migrations/2025-05-28-160000-action-event-user.d.ts +0 -3
- package/dist/types/migrations/2025-05-28-160000-action-event-user.d.ts.map +0 -1
- package/dist/types/migrations/index.d.ts +0 -3
- package/dist/types/migrations/index.d.ts.map +0 -1
- package/dist/types/migrations/snapshot.d.ts +0 -3
- package/dist/types/migrations/snapshot.d.ts.map +0 -1
- package/dist/types/model/EventByIdQuery.d.ts +0 -8
- package/dist/types/model/EventByIdQuery.d.ts.map +0 -1
- package/dist/types/model/EventsInProcessingQuery.d.ts +0 -9
- package/dist/types/model/EventsInProcessingQuery.d.ts.map +0 -1
- package/dist/types/model/EventsToProcessQuery.d.ts +0 -9
- package/dist/types/model/EventsToProcessQuery.d.ts.map +0 -1
- package/dist/types/model/EventsToProcessSpecification.d.ts +0 -4
- package/dist/types/model/EventsToProcessSpecification.d.ts.map +0 -1
- package/dist/types/model/FailedEventsQuery.d.ts +0 -9
- package/dist/types/model/FailedEventsQuery.d.ts.map +0 -1
- package/dist/types/model/SetVariableCommand.d.ts +0 -8
- package/dist/types/model/SetVariableCommand.d.ts.map +0 -1
- package/dist/types/model/VariablesManager.d.ts +0 -8
- package/dist/types/model/VariablesManager.d.ts.map +0 -1
- package/dist/types/model/VariablesQuery.d.ts +0 -12
- package/dist/types/model/VariablesQuery.d.ts.map +0 -1
- package/dist/types/model/types.d.ts +0 -22
- package/dist/types/model/types.d.ts.map +0 -1
- package/dist/types/triggers/TriggerHandler.d.ts +0 -26
- package/dist/types/triggers/TriggerHandler.d.ts.map +0 -1
- package/dist/types/triggers/TriggerIndirectChangesFetcher.d.ts +0 -19
- package/dist/types/triggers/TriggerIndirectChangesFetcher.d.ts.map +0 -1
- package/dist/types/triggers/TriggerListeners.d.ts +0 -9
- package/dist/types/triggers/TriggerListeners.d.ts.map +0 -1
- package/dist/types/triggers/TriggerListenersBuilder.d.ts +0 -15
- package/dist/types/triggers/TriggerListenersBuilder.d.ts.map +0 -1
- package/dist/types/triggers/TriggerListenersFactory.d.ts +0 -8
- package/dist/types/triggers/TriggerListenersFactory.d.ts.map +0 -1
- package/dist/types/triggers/TriggerListenersStore.d.ts +0 -48
- package/dist/types/triggers/TriggerListenersStore.d.ts.map +0 -1
- package/dist/types/triggers/TriggerPayloadBuilder.d.ts +0 -14
- package/dist/types/triggers/TriggerPayloadBuilder.d.ts.map +0 -1
- package/dist/types/triggers/TriggerPayloadManager.d.ts +0 -22
- package/dist/types/triggers/TriggerPayloadManager.d.ts.map +0 -1
- package/dist/types/triggers/TriggerPayloadPersister.d.ts +0 -21
- package/dist/types/triggers/TriggerPayloadPersister.d.ts.map +0 -1
- package/dist/types/triggers/index.d.ts +0 -8
- package/dist/types/triggers/index.d.ts.map +0 -1
- package/dist/types/tsconfig.tsbuildinfo +0 -1
- package/dist/types/utils/assertNever.d.ts +0 -2
- package/dist/types/utils/assertNever.d.ts.map +0 -1
- package/dist/types/utils/map.d.ts +0 -2
- package/dist/types/utils/map.d.ts.map +0 -1
- package/dist/types/utils/notifyChannel.d.ts +0 -4
- package/dist/types/utils/notifyChannel.d.ts.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ResolversFactory.js","sources":["../../../../../../packages/engine-actions/src/graphql/resolvers/ResolversFactory.ts"],"sourcesContent":["import { DateTimeType, JSONType, UuidType } from '@contember/graphql-utils'\nimport { Resolvers } from '../schema'\nimport { EventsQueryResolver } from './query'\nimport { ProcessBatchMutationResolver, RetryEventMutationResolver, SetVariablesMutationResolver, StopEventMutationResolver } from './mutation'\nimport { ActionsContext } from './ActionsContext'\nimport { VariablesQueryResolver } from './query/VariablesQueryResolver'\n\nexport class ResolversFactory {\n\tconstructor(\n\t\tprivate readonly eventsQueryResolver: EventsQueryResolver,\n\t\tprivate readonly processBatchMutationResolver: ProcessBatchMutationResolver,\n\t\tprivate readonly variablesQueryResolver: VariablesQueryResolver,\n\t\tprivate readonly setVariablesMutationResolver: SetVariablesMutationResolver,\n\t\tprivate readonly retryEventMutationResolver: RetryEventMutationResolver,\n\t\tprivate readonly stopEventMutationResolver: StopEventMutationResolver,\n\t) {\n\t}\n\n\tcreate(): Resolvers {\n\t\tconst resolvers: Resolvers<ActionsContext> & { Mutation: Required<Resolvers<ActionsContext>['Mutation']> } & { Query: Required<Resolvers<ActionsContext>['Query']> } = {\n\t\t\tJson: JSONType,\n\t\t\tDateTime: DateTimeType,\n\t\t\tUuid: UuidType,\n\t\t\tMutation: {\n\t\t\t\tprocessBatch: this.processBatchMutationResolver.processBatch.bind(this.processBatchMutationResolver),\n\t\t\t\tsetVariables: this.setVariablesMutationResolver.setVariables.bind(this.setVariablesMutationResolver),\n\t\t\t\tretryEvent: this.retryEventMutationResolver.retryEvent.bind(this.retryEventMutationResolver),\n\t\t\t\tstopEvent: this.stopEventMutationResolver.stopEvent.bind(this.stopEventMutationResolver),\n\t\t\t},\n\t\t\tQuery: {\n\t\t\t\teventsInProcessing: this.eventsQueryResolver.eventsInProcessing.bind(this.eventsQueryResolver),\n\t\t\t\teventsToProcess: this.eventsQueryResolver.eventsToProcess.bind(this.eventsQueryResolver),\n\t\t\t\tfailedEvents: this.eventsQueryResolver.failedEvents.bind(this.eventsQueryResolver),\n\t\t\t\tevent: this.eventsQueryResolver.event.bind(this.eventsQueryResolver),\n\t\t\t\tvariables: this.variablesQueryResolver.variables.bind(this.variablesQueryResolver),\n\t\t\t},\n\t\t}\n\t\treturn resolvers\n\t}\n}\n"],"names":[],"mappings":";AAOO,MAAM,iBAAiB;AAAA,EAC7B,YACkB,qBACA,8BACA,wBACA,8BACA,4BACA,2BAChB;AANgB,SAAA,sBAAA;AACA,SAAA,+BAAA;AACA,SAAA,yBAAA;AACA,SAAA,+BAAA;AACA,SAAA,6BAAA;AACA,SAAA,4BAAA;AAAA,EAAA;AAAA,EAIlB,SAAoB;AACnB,UAAM,YAAiK;AAAA,MACtK,MAAM;AAAA,MACN,UAAU;AAAA,MACV,MAAM;AAAA,MACN,UAAU;AAAA,QACT,cAAc,KAAK,6BAA6B,aAAa,KAAK,KAAK,4BAA4B;AAAA,QACnG,cAAc,KAAK,6BAA6B,aAAa,KAAK,KAAK,4BAA4B;AAAA,QACnG,YAAY,KAAK,2BAA2B,WAAW,KAAK,KAAK,0BAA0B;AAAA,QAC3F,WAAW,KAAK,0BAA0B,UAAU,KAAK,KAAK,yBAAyB;AAAA,MACxF;AAAA,MACA,OAAO;AAAA,QACN,oBAAoB,KAAK,oBAAoB,mBAAmB,KAAK,KAAK,mBAAmB;AAAA,QAC7F,iBAAiB,KAAK,oBAAoB,gBAAgB,KAAK,KAAK,mBAAmB;AAAA,QACvF,cAAc,KAAK,oBAAoB,aAAa,KAAK,KAAK,mBAAmB;AAAA,QACjF,OAAO,KAAK,oBAAoB,MAAM,KAAK,KAAK,mBAAmB;AAAA,QACnE,WAAW,KAAK,uBAAuB,UAAU,KAAK,KAAK,sBAAsB;AAAA,MAAA;AAAA,IAEnF;AACO,WAAA;AAAA,EAAA;AAET;"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const ActionsAuthorizationActions = require("../../../authorization/ActionsAuthorizationActions.cjs");
|
|
4
|
-
require("@contember/authorization");
|
|
5
|
-
require("@contember/schema");
|
|
6
|
-
class ProcessBatchMutationResolver {
|
|
7
|
-
constructor(eventDispatcher) {
|
|
8
|
-
this.eventDispatcher = eventDispatcher;
|
|
9
|
-
}
|
|
10
|
-
async processBatch(parent, args, ctx) {
|
|
11
|
-
await ctx.requireAccess(ActionsAuthorizationActions.ActionsAuthorizationActions.EVENTS_PROCESS);
|
|
12
|
-
await this.eventDispatcher.processBatch(ctx);
|
|
13
|
-
return {
|
|
14
|
-
ok: true
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.ProcessBatchMutationResolver = ProcessBatchMutationResolver;
|
|
19
|
-
//# sourceMappingURL=ProcessBatchMutationResolver.cjs.map
|
package/dist/development/src/graphql/resolvers/mutation/ProcessBatchMutationResolver.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProcessBatchMutationResolver.cjs","sources":["../../../../../../../packages/engine-actions/src/graphql/resolvers/mutation/ProcessBatchMutationResolver.ts"],"sourcesContent":["import { MutationResolvers } from '../../schema'\nimport { ActionsContext } from '../ActionsContext'\nimport { EventDispatcher } from '../../../dispatch/EventDispatcher'\nimport { ActionsAuthorizationActions } from '../../../authorization'\n\nexport class ProcessBatchMutationResolver implements MutationResolvers<ActionsContext> {\n\tconstructor(\n\t\tprivate eventDispatcher: EventDispatcher,\n\t) {\n\t}\n\tasync processBatch(parent: unknown, args: unknown, ctx: ActionsContext) {\n\t\tawait ctx.requireAccess(ActionsAuthorizationActions.EVENTS_PROCESS)\n\n\t\tawait this.eventDispatcher.processBatch(ctx)\n\t\treturn {\n\t\t\tok: true,\n\t\t}\n\t}\n}\n"],"names":["ActionsAuthorizationActions"],"mappings":";;;;;AAKO,MAAM,6BAA0E;AAAA,EACtF,YACS,iBACP;AADO,SAAA,kBAAA;AAAA,EAAA;AAAA,EAGT,MAAM,aAAa,QAAiB,MAAe,KAAqB;AACjE,UAAA,IAAI,cAAcA,4BAAA,4BAA4B,cAAc;AAE5D,UAAA,KAAK,gBAAgB,aAAa,GAAG;AACpC,WAAA;AAAA,MACN,IAAI;AAAA,IACL;AAAA,EAAA;AAEF;;"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ActionsAuthorizationActions } from "../../../authorization/ActionsAuthorizationActions.js";
|
|
2
|
-
import "@contember/authorization";
|
|
3
|
-
import "@contember/schema";
|
|
4
|
-
class ProcessBatchMutationResolver {
|
|
5
|
-
constructor(eventDispatcher) {
|
|
6
|
-
this.eventDispatcher = eventDispatcher;
|
|
7
|
-
}
|
|
8
|
-
async processBatch(parent, args, ctx) {
|
|
9
|
-
await ctx.requireAccess(ActionsAuthorizationActions.EVENTS_PROCESS);
|
|
10
|
-
await this.eventDispatcher.processBatch(ctx);
|
|
11
|
-
return {
|
|
12
|
-
ok: true
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
ProcessBatchMutationResolver
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=ProcessBatchMutationResolver.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProcessBatchMutationResolver.js","sources":["../../../../../../../packages/engine-actions/src/graphql/resolvers/mutation/ProcessBatchMutationResolver.ts"],"sourcesContent":["import { MutationResolvers } from '../../schema'\nimport { ActionsContext } from '../ActionsContext'\nimport { EventDispatcher } from '../../../dispatch/EventDispatcher'\nimport { ActionsAuthorizationActions } from '../../../authorization'\n\nexport class ProcessBatchMutationResolver implements MutationResolvers<ActionsContext> {\n\tconstructor(\n\t\tprivate eventDispatcher: EventDispatcher,\n\t) {\n\t}\n\tasync processBatch(parent: unknown, args: unknown, ctx: ActionsContext) {\n\t\tawait ctx.requireAccess(ActionsAuthorizationActions.EVENTS_PROCESS)\n\n\t\tawait this.eventDispatcher.processBatch(ctx)\n\t\treturn {\n\t\t\tok: true,\n\t\t}\n\t}\n}\n"],"names":[],"mappings":";;;AAKO,MAAM,6BAA0E;AAAA,EACtF,YACS,iBACP;AADO,SAAA,kBAAA;AAAA,EAAA;AAAA,EAGT,MAAM,aAAa,QAAiB,MAAe,KAAqB;AACjE,UAAA,IAAI,cAAc,4BAA4B,cAAc;AAE5D,UAAA,KAAK,gBAAgB,aAAa,GAAG;AACpC,WAAA;AAAA,MACN,IAAI;AAAA,IACL;AAAA,EAAA;AAEF;"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const ActionsAuthorizationActions = require("../../../authorization/ActionsAuthorizationActions.cjs");
|
|
4
|
-
require("@contember/authorization");
|
|
5
|
-
require("@contember/schema");
|
|
6
|
-
const notifyChannel = require("../../../utils/notifyChannel.cjs");
|
|
7
|
-
class RetryEventMutationResolver {
|
|
8
|
-
constructor(eventsRepository) {
|
|
9
|
-
this.eventsRepository = eventsRepository;
|
|
10
|
-
}
|
|
11
|
-
async retryEvent(parent, args, ctx) {
|
|
12
|
-
await ctx.requireAccess(ActionsAuthorizationActions.ActionsAuthorizationActions.EVENTS_RETRY);
|
|
13
|
-
await this.eventsRepository.requeue(ctx.db.client, [args.id]);
|
|
14
|
-
await notifyChannel.notify(ctx.db.client, ctx.project.slug);
|
|
15
|
-
return {
|
|
16
|
-
ok: true
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.RetryEventMutationResolver = RetryEventMutationResolver;
|
|
21
|
-
//# sourceMappingURL=RetryEventMutationResolver.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RetryEventMutationResolver.cjs","sources":["../../../../../../../packages/engine-actions/src/graphql/resolvers/mutation/RetryEventMutationResolver.ts"],"sourcesContent":["import { MutationResolvers, MutationRetryEventArgs } from '../../schema'\nimport { ActionsContext } from '../ActionsContext'\nimport { ActionsAuthorizationActions } from '../../../authorization'\nimport { EventsRepository } from '../../../dispatch/EventsRepository'\nimport { notify } from '../../../utils/notifyChannel'\n\nexport class RetryEventMutationResolver implements MutationResolvers<ActionsContext> {\n\tconstructor(\n\t\tprivate readonly eventsRepository: EventsRepository,\n\t) {\n\t}\n\tasync retryEvent(parent: unknown, args: MutationRetryEventArgs, ctx: ActionsContext) {\n\t\tawait ctx.requireAccess(ActionsAuthorizationActions.EVENTS_RETRY)\n\n\t\tawait this.eventsRepository.requeue(ctx.db.client, [args.id])\n\t\tawait notify(ctx.db.client, ctx.project.slug)\n\n\t\treturn {\n\t\t\tok: true,\n\t\t}\n\t}\n}\n"],"names":["ActionsAuthorizationActions","notify"],"mappings":";;;;;;AAMO,MAAM,2BAAwE;AAAA,EACpF,YACkB,kBAChB;AADgB,SAAA,mBAAA;AAAA,EAAA;AAAA,EAGlB,MAAM,WAAW,QAAiB,MAA8B,KAAqB;AAC9E,UAAA,IAAI,cAAcA,4BAAA,4BAA4B,YAAY;AAE1D,UAAA,KAAK,iBAAiB,QAAQ,IAAI,GAAG,QAAQ,CAAC,KAAK,EAAE,CAAC;AAC5D,UAAMC,cAAAA,OAAO,IAAI,GAAG,QAAQ,IAAI,QAAQ,IAAI;AAErC,WAAA;AAAA,MACN,IAAI;AAAA,IACL;AAAA,EAAA;AAEF;;"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ActionsAuthorizationActions } from "../../../authorization/ActionsAuthorizationActions.js";
|
|
2
|
-
import "@contember/authorization";
|
|
3
|
-
import "@contember/schema";
|
|
4
|
-
import { notify } from "../../../utils/notifyChannel.js";
|
|
5
|
-
class RetryEventMutationResolver {
|
|
6
|
-
constructor(eventsRepository) {
|
|
7
|
-
this.eventsRepository = eventsRepository;
|
|
8
|
-
}
|
|
9
|
-
async retryEvent(parent, args, ctx) {
|
|
10
|
-
await ctx.requireAccess(ActionsAuthorizationActions.EVENTS_RETRY);
|
|
11
|
-
await this.eventsRepository.requeue(ctx.db.client, [args.id]);
|
|
12
|
-
await notify(ctx.db.client, ctx.project.slug);
|
|
13
|
-
return {
|
|
14
|
-
ok: true
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
export {
|
|
19
|
-
RetryEventMutationResolver
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=RetryEventMutationResolver.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RetryEventMutationResolver.js","sources":["../../../../../../../packages/engine-actions/src/graphql/resolvers/mutation/RetryEventMutationResolver.ts"],"sourcesContent":["import { MutationResolvers, MutationRetryEventArgs } from '../../schema'\nimport { ActionsContext } from '../ActionsContext'\nimport { ActionsAuthorizationActions } from '../../../authorization'\nimport { EventsRepository } from '../../../dispatch/EventsRepository'\nimport { notify } from '../../../utils/notifyChannel'\n\nexport class RetryEventMutationResolver implements MutationResolvers<ActionsContext> {\n\tconstructor(\n\t\tprivate readonly eventsRepository: EventsRepository,\n\t) {\n\t}\n\tasync retryEvent(parent: unknown, args: MutationRetryEventArgs, ctx: ActionsContext) {\n\t\tawait ctx.requireAccess(ActionsAuthorizationActions.EVENTS_RETRY)\n\n\t\tawait this.eventsRepository.requeue(ctx.db.client, [args.id])\n\t\tawait notify(ctx.db.client, ctx.project.slug)\n\n\t\treturn {\n\t\t\tok: true,\n\t\t}\n\t}\n}\n"],"names":[],"mappings":";;;;AAMO,MAAM,2BAAwE;AAAA,EACpF,YACkB,kBAChB;AADgB,SAAA,mBAAA;AAAA,EAAA;AAAA,EAGlB,MAAM,WAAW,QAAiB,MAA8B,KAAqB;AAC9E,UAAA,IAAI,cAAc,4BAA4B,YAAY;AAE1D,UAAA,KAAK,iBAAiB,QAAQ,IAAI,GAAG,QAAQ,CAAC,KAAK,EAAE,CAAC;AAC5D,UAAM,OAAO,IAAI,GAAG,QAAQ,IAAI,QAAQ,IAAI;AAErC,WAAA;AAAA,MACN,IAAI;AAAA,IACL;AAAA,EAAA;AAEF;"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const ActionsAuthorizationActions = require("../../../authorization/ActionsAuthorizationActions.cjs");
|
|
4
|
-
require("@contember/authorization");
|
|
5
|
-
require("@contember/schema");
|
|
6
|
-
class SetVariablesMutationResolver {
|
|
7
|
-
constructor(variablesManager) {
|
|
8
|
-
this.variablesManager = variablesManager;
|
|
9
|
-
}
|
|
10
|
-
async setVariables(parent, { args }, ctx) {
|
|
11
|
-
await ctx.requireAccess(ActionsAuthorizationActions.ActionsAuthorizationActions.VARIABLES_SET);
|
|
12
|
-
await this.variablesManager.setVariables(ctx.db, args);
|
|
13
|
-
return {
|
|
14
|
-
ok: true
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.SetVariablesMutationResolver = SetVariablesMutationResolver;
|
|
19
|
-
//# sourceMappingURL=SetVariablesMutationResolver.cjs.map
|
package/dist/development/src/graphql/resolvers/mutation/SetVariablesMutationResolver.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SetVariablesMutationResolver.cjs","sources":["../../../../../../../packages/engine-actions/src/graphql/resolvers/mutation/SetVariablesMutationResolver.ts"],"sourcesContent":["import { MutationResolvers, MutationSetVariablesArgs } from '../../schema'\nimport { ActionsContext } from '../ActionsContext'\nimport { VariablesManager } from '../../../model/VariablesManager'\nimport { ActionsAuthorizationActions } from '../../../authorization'\n\nexport class SetVariablesMutationResolver implements MutationResolvers<ActionsContext> {\n\tconstructor(\n\t\tprivate readonly variablesManager: VariablesManager,\n\t) {\n\t}\n\n\n\tasync setVariables(parent: unknown, { args }: MutationSetVariablesArgs, ctx: ActionsContext) {\n\t\tawait ctx.requireAccess(ActionsAuthorizationActions.VARIABLES_SET)\n\n\t\tawait this.variablesManager.setVariables(ctx.db, args)\n\n\t\treturn {\n\t\t\tok: true,\n\t\t}\n\t}\n}\n"],"names":["ActionsAuthorizationActions"],"mappings":";;;;;AAKO,MAAM,6BAA0E;AAAA,EACtF,YACkB,kBAChB;AADgB,SAAA,mBAAA;AAAA,EAAA;AAAA,EAKlB,MAAM,aAAa,QAAiB,EAAE,KAAA,GAAkC,KAAqB;AACtF,UAAA,IAAI,cAAcA,4BAAA,4BAA4B,aAAa;AAEjE,UAAM,KAAK,iBAAiB,aAAa,IAAI,IAAI,IAAI;AAE9C,WAAA;AAAA,MACN,IAAI;AAAA,IACL;AAAA,EAAA;AAEF;;"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ActionsAuthorizationActions } from "../../../authorization/ActionsAuthorizationActions.js";
|
|
2
|
-
import "@contember/authorization";
|
|
3
|
-
import "@contember/schema";
|
|
4
|
-
class SetVariablesMutationResolver {
|
|
5
|
-
constructor(variablesManager) {
|
|
6
|
-
this.variablesManager = variablesManager;
|
|
7
|
-
}
|
|
8
|
-
async setVariables(parent, { args }, ctx) {
|
|
9
|
-
await ctx.requireAccess(ActionsAuthorizationActions.VARIABLES_SET);
|
|
10
|
-
await this.variablesManager.setVariables(ctx.db, args);
|
|
11
|
-
return {
|
|
12
|
-
ok: true
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
SetVariablesMutationResolver
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=SetVariablesMutationResolver.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SetVariablesMutationResolver.js","sources":["../../../../../../../packages/engine-actions/src/graphql/resolvers/mutation/SetVariablesMutationResolver.ts"],"sourcesContent":["import { MutationResolvers, MutationSetVariablesArgs } from '../../schema'\nimport { ActionsContext } from '../ActionsContext'\nimport { VariablesManager } from '../../../model/VariablesManager'\nimport { ActionsAuthorizationActions } from '../../../authorization'\n\nexport class SetVariablesMutationResolver implements MutationResolvers<ActionsContext> {\n\tconstructor(\n\t\tprivate readonly variablesManager: VariablesManager,\n\t) {\n\t}\n\n\n\tasync setVariables(parent: unknown, { args }: MutationSetVariablesArgs, ctx: ActionsContext) {\n\t\tawait ctx.requireAccess(ActionsAuthorizationActions.VARIABLES_SET)\n\n\t\tawait this.variablesManager.setVariables(ctx.db, args)\n\n\t\treturn {\n\t\t\tok: true,\n\t\t}\n\t}\n}\n"],"names":[],"mappings":";;;AAKO,MAAM,6BAA0E;AAAA,EACtF,YACkB,kBAChB;AADgB,SAAA,mBAAA;AAAA,EAAA;AAAA,EAKlB,MAAM,aAAa,QAAiB,EAAE,KAAA,GAAkC,KAAqB;AACtF,UAAA,IAAI,cAAc,4BAA4B,aAAa;AAEjE,UAAM,KAAK,iBAAiB,aAAa,IAAI,IAAI,IAAI;AAE9C,WAAA;AAAA,MACN,IAAI;AAAA,IACL;AAAA,EAAA;AAEF;"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const ActionsAuthorizationActions = require("../../../authorization/ActionsAuthorizationActions.cjs");
|
|
4
|
-
require("@contember/authorization");
|
|
5
|
-
require("@contember/schema");
|
|
6
|
-
class StopEventMutationResolver {
|
|
7
|
-
constructor(eventsRepository) {
|
|
8
|
-
this.eventsRepository = eventsRepository;
|
|
9
|
-
}
|
|
10
|
-
async stopEvent(parent, args, ctx) {
|
|
11
|
-
await ctx.requireAccess(ActionsAuthorizationActions.ActionsAuthorizationActions.EVENTS_STOP);
|
|
12
|
-
await this.eventsRepository.markStopped(ctx.db.client, [args.id]);
|
|
13
|
-
return {
|
|
14
|
-
ok: true
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.StopEventMutationResolver = StopEventMutationResolver;
|
|
19
|
-
//# sourceMappingURL=StopEventMutationResolver.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StopEventMutationResolver.cjs","sources":["../../../../../../../packages/engine-actions/src/graphql/resolvers/mutation/StopEventMutationResolver.ts"],"sourcesContent":["import { MutationResolvers, MutationRetryEventArgs } from '../../schema'\nimport { ActionsContext } from '../ActionsContext'\nimport { ActionsAuthorizationActions } from '../../../authorization'\nimport { EventsRepository } from '../../../dispatch/EventsRepository'\n\nexport class StopEventMutationResolver implements MutationResolvers<ActionsContext> {\n\tconstructor(\n\t\tprivate readonly eventsRepository: EventsRepository,\n\t) {\n\t}\n\tasync stopEvent(parent: unknown, args: MutationRetryEventArgs, ctx: ActionsContext) {\n\t\tawait ctx.requireAccess(ActionsAuthorizationActions.EVENTS_STOP)\n\n\t\tawait this.eventsRepository.markStopped(ctx.db.client, [args.id])\n\t\treturn {\n\t\t\tok: true,\n\t\t}\n\t}\n}\n"],"names":["ActionsAuthorizationActions"],"mappings":";;;;;AAKO,MAAM,0BAAuE;AAAA,EACnF,YACkB,kBAChB;AADgB,SAAA,mBAAA;AAAA,EAAA;AAAA,EAGlB,MAAM,UAAU,QAAiB,MAA8B,KAAqB;AAC7E,UAAA,IAAI,cAAcA,4BAAA,4BAA4B,WAAW;AAEzD,UAAA,KAAK,iBAAiB,YAAY,IAAI,GAAG,QAAQ,CAAC,KAAK,EAAE,CAAC;AACzD,WAAA;AAAA,MACN,IAAI;AAAA,IACL;AAAA,EAAA;AAEF;;"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ActionsAuthorizationActions } from "../../../authorization/ActionsAuthorizationActions.js";
|
|
2
|
-
import "@contember/authorization";
|
|
3
|
-
import "@contember/schema";
|
|
4
|
-
class StopEventMutationResolver {
|
|
5
|
-
constructor(eventsRepository) {
|
|
6
|
-
this.eventsRepository = eventsRepository;
|
|
7
|
-
}
|
|
8
|
-
async stopEvent(parent, args, ctx) {
|
|
9
|
-
await ctx.requireAccess(ActionsAuthorizationActions.EVENTS_STOP);
|
|
10
|
-
await this.eventsRepository.markStopped(ctx.db.client, [args.id]);
|
|
11
|
-
return {
|
|
12
|
-
ok: true
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
StopEventMutationResolver
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=StopEventMutationResolver.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StopEventMutationResolver.js","sources":["../../../../../../../packages/engine-actions/src/graphql/resolvers/mutation/StopEventMutationResolver.ts"],"sourcesContent":["import { MutationResolvers, MutationRetryEventArgs } from '../../schema'\nimport { ActionsContext } from '../ActionsContext'\nimport { ActionsAuthorizationActions } from '../../../authorization'\nimport { EventsRepository } from '../../../dispatch/EventsRepository'\n\nexport class StopEventMutationResolver implements MutationResolvers<ActionsContext> {\n\tconstructor(\n\t\tprivate readonly eventsRepository: EventsRepository,\n\t) {\n\t}\n\tasync stopEvent(parent: unknown, args: MutationRetryEventArgs, ctx: ActionsContext) {\n\t\tawait ctx.requireAccess(ActionsAuthorizationActions.EVENTS_STOP)\n\n\t\tawait this.eventsRepository.markStopped(ctx.db.client, [args.id])\n\t\treturn {\n\t\t\tok: true,\n\t\t}\n\t}\n}\n"],"names":[],"mappings":";;;AAKO,MAAM,0BAAuE;AAAA,EACnF,YACkB,kBAChB;AADgB,SAAA,mBAAA;AAAA,EAAA;AAAA,EAGlB,MAAM,UAAU,QAAiB,MAA8B,KAAqB;AAC7E,UAAA,IAAI,cAAc,4BAA4B,WAAW;AAEzD,UAAA,KAAK,iBAAiB,YAAY,IAAI,GAAG,QAAQ,CAAC,KAAK,EAAE,CAAC;AACzD,WAAA;AAAA,MACN,IAAI;AAAA,IACL;AAAA,EAAA;AAEF;"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const EventsToProcessQuery = require("../../../model/EventsToProcessQuery.cjs");
|
|
4
|
-
const engineSystemApi = require("@contember/engine-system-api");
|
|
5
|
-
const EventsInProcessingQuery = require("../../../model/EventsInProcessingQuery.cjs");
|
|
6
|
-
const FailedEventsQuery = require("../../../model/FailedEventsQuery.cjs");
|
|
7
|
-
const ActionsAuthorizationActions = require("../../../authorization/ActionsAuthorizationActions.cjs");
|
|
8
|
-
require("@contember/authorization");
|
|
9
|
-
require("@contember/schema");
|
|
10
|
-
const EventByIdQuery = require("../../../model/EventByIdQuery.cjs");
|
|
11
|
-
class EventsQueryResolver {
|
|
12
|
-
async eventsInProcessing(parent, { args }, ctx) {
|
|
13
|
-
await ctx.requireAccess(ActionsAuthorizationActions.ActionsAuthorizationActions.EVENTS_VIEW);
|
|
14
|
-
return await this.fetchEvents(ctx.db, new EventsInProcessingQuery.EventsInProcessingQuery(args ?? {}));
|
|
15
|
-
}
|
|
16
|
-
async eventsToProcess(parent, { args }, ctx) {
|
|
17
|
-
await ctx.requireAccess(ActionsAuthorizationActions.ActionsAuthorizationActions.EVENTS_VIEW);
|
|
18
|
-
return await this.fetchEvents(ctx.db, new EventsToProcessQuery.EventsToProcessQuery(args ?? {}));
|
|
19
|
-
}
|
|
20
|
-
async failedEvents(parent, { args }, ctx) {
|
|
21
|
-
await ctx.requireAccess(ActionsAuthorizationActions.ActionsAuthorizationActions.EVENTS_VIEW);
|
|
22
|
-
return await this.fetchEvents(ctx.db, new FailedEventsQuery.FailedEventsQuery(args ?? {}));
|
|
23
|
-
}
|
|
24
|
-
async event(parent, { id }, ctx) {
|
|
25
|
-
await ctx.requireAccess(ActionsAuthorizationActions.ActionsAuthorizationActions.EVENTS_VIEW);
|
|
26
|
-
const stages = await this.fetchStagesMap(ctx.db);
|
|
27
|
-
const result = await ctx.db.queryHandler.fetch(new EventByIdQuery.EventByIdQuery(id));
|
|
28
|
-
if (!result) {
|
|
29
|
-
return null;
|
|
30
|
-
}
|
|
31
|
-
return this.mapEventRows([result], stages)[0];
|
|
32
|
-
}
|
|
33
|
-
async fetchEvents(db, query) {
|
|
34
|
-
const stages = await this.fetchStagesMap(db);
|
|
35
|
-
return this.mapEventRows(await db.queryHandler.fetch(query), stages);
|
|
36
|
-
}
|
|
37
|
-
async fetchStagesMap(db) {
|
|
38
|
-
return Object.fromEntries((await db.queryHandler.fetch(new engineSystemApi.StagesQuery())).map((it) => [it.id, it.slug]));
|
|
39
|
-
}
|
|
40
|
-
mapEventRows(rows, stagesMap) {
|
|
41
|
-
return rows.map((row) => ({
|
|
42
|
-
id: row.id,
|
|
43
|
-
createdAt: row.created_at,
|
|
44
|
-
resolvedAt: row.created_at,
|
|
45
|
-
lastStateChange: row.last_state_change,
|
|
46
|
-
visibleAt: row.visible_at,
|
|
47
|
-
log: row.log,
|
|
48
|
-
numRetries: row.num_retries,
|
|
49
|
-
payload: row.payload,
|
|
50
|
-
stage: stagesMap[row.stage_id],
|
|
51
|
-
state: row.state,
|
|
52
|
-
target: row.target,
|
|
53
|
-
transactionId: row.transaction_id,
|
|
54
|
-
identityId: row.identity_id ?? void 0,
|
|
55
|
-
ipAddress: row.ip_address ?? void 0,
|
|
56
|
-
userAgent: row.user_agent ?? void 0
|
|
57
|
-
}));
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
exports.EventsQueryResolver = EventsQueryResolver;
|
|
61
|
-
//# sourceMappingURL=EventsQueryResolver.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EventsQueryResolver.cjs","sources":["../../../../../../../packages/engine-actions/src/graphql/resolvers/query/EventsQueryResolver.ts"],"sourcesContent":["import {\n\tEvent,\n\tQueryEventsInProcessingArgs,\n\tQueryEventsToProcessArgs,\n\tQueryFailedEventsArgs,\n\tQueryResolvers,\n} from '../../schema'\nimport { ActionsContext } from '../ActionsContext'\nimport { EventsToProcessQuery } from '../../../model/EventsToProcessQuery'\nimport { EventRow } from '../../../model/types'\nimport { DatabaseContext, StagesQuery } from '@contember/engine-system-api'\nimport { Client, DatabaseQuery } from '@contember/database'\nimport { EventsInProcessingQuery } from '../../../model/EventsInProcessingQuery'\nimport { FailedEventsQuery } from '../../../model/FailedEventsQuery'\nimport { ActionsAuthorizationActions } from '../../../authorization'\nimport { EventByIdQuery } from '../../../model/EventByIdQuery'\n\nexport class EventsQueryResolver implements QueryResolvers<ActionsContext> {\n\tasync eventsInProcessing(parent: unknown, { args }: QueryEventsInProcessingArgs, ctx: ActionsContext) {\n\t\tawait ctx.requireAccess(ActionsAuthorizationActions.EVENTS_VIEW)\n\n\t\treturn await this.fetchEvents(ctx.db, new EventsInProcessingQuery(args ?? {}))\n\t}\n\n\tasync eventsToProcess(parent: unknown, { args }: QueryEventsToProcessArgs, ctx: ActionsContext) {\n\t\tawait ctx.requireAccess(ActionsAuthorizationActions.EVENTS_VIEW)\n\n\t\treturn await this.fetchEvents(ctx.db, new EventsToProcessQuery(args ?? {}))\n\t}\n\n\tasync failedEvents(parent: unknown, { args }: QueryFailedEventsArgs, ctx: ActionsContext) {\n\t\tawait ctx.requireAccess(ActionsAuthorizationActions.EVENTS_VIEW)\n\n\t\treturn await this.fetchEvents(ctx.db, new FailedEventsQuery(args ?? {}))\n\t}\n\n\tasync event(parent: unknown, { id }: { id: string }, ctx: ActionsContext): Promise<Event | null> {\n\t\tawait ctx.requireAccess(ActionsAuthorizationActions.EVENTS_VIEW)\n\t\tconst stages = await this.fetchStagesMap(ctx.db)\n\t\tconst result = await ctx.db.queryHandler.fetch(new EventByIdQuery(id))\n\t\tif (!result) {\n\t\t\treturn null\n\t\t}\n\t\treturn this.mapEventRows([result], stages)[0]\n\t}\n\n\tprivate async fetchEvents(db: DatabaseContext, query: DatabaseQuery<EventRow[]>) {\n\t\tconst stages = await this.fetchStagesMap(db)\n\t\treturn this.mapEventRows(await db.queryHandler.fetch(query), stages)\n\t}\n\n\tprivate async fetchStagesMap(db: DatabaseContext): Promise<Record<string, string>> {\n\t\treturn Object.fromEntries((await db.queryHandler.fetch(new StagesQuery())).map(it => [it.id, it.slug]))\n\t}\n\n\tprivate mapEventRows(rows: EventRow[], stagesMap: Record<string, string>): Event[] {\n\n\t\treturn rows.map(row => ({\n\t\t\tid: row.id,\n\t\t\tcreatedAt: row.created_at,\n\t\t\tresolvedAt: row.created_at,\n\t\t\tlastStateChange: row.last_state_change,\n\t\t\tvisibleAt: row.visible_at,\n\t\t\tlog: row.log,\n\t\t\tnumRetries: row.num_retries,\n\t\t\tpayload: row.payload,\n\t\t\tstage: stagesMap[row.stage_id],\n\t\t\tstate: row.state,\n\t\t\ttarget: row.target,\n\t\t\ttransactionId: row.transaction_id,\n\t\t\tidentityId: row.identity_id ?? undefined,\n\t\t\tipAddress: row.ip_address ?? undefined,\n\t\t\tuserAgent: row.user_agent ?? undefined,\n\t\t}))\n\t}\n}\n"],"names":["ActionsAuthorizationActions","EventsInProcessingQuery","EventsToProcessQuery","FailedEventsQuery","EventByIdQuery","StagesQuery"],"mappings":";;;;;;;;;;AAiBO,MAAM,oBAA8D;AAAA,EAC1E,MAAM,mBAAmB,QAAiB,EAAE,KAAA,GAAqC,KAAqB;AAC/F,UAAA,IAAI,cAAcA,4BAAA,4BAA4B,WAAW;AAExD,WAAA,MAAM,KAAK,YAAY,IAAI,IAAI,IAAIC,wBAAwB,wBAAA,QAAQ,CAAA,CAAE,CAAC;AAAA,EAAA;AAAA,EAG9E,MAAM,gBAAgB,QAAiB,EAAE,KAAA,GAAkC,KAAqB;AACzF,UAAA,IAAI,cAAcD,4BAAA,4BAA4B,WAAW;AAExD,WAAA,MAAM,KAAK,YAAY,IAAI,IAAI,IAAIE,qBAAqB,qBAAA,QAAQ,CAAA,CAAE,CAAC;AAAA,EAAA;AAAA,EAG3E,MAAM,aAAa,QAAiB,EAAE,KAAA,GAA+B,KAAqB;AACnF,UAAA,IAAI,cAAcF,4BAAA,4BAA4B,WAAW;AAExD,WAAA,MAAM,KAAK,YAAY,IAAI,IAAI,IAAIG,kBAAkB,kBAAA,QAAQ,CAAA,CAAE,CAAC;AAAA,EAAA;AAAA,EAGxE,MAAM,MAAM,QAAiB,EAAE,GAAA,GAAsB,KAA4C;AAC1F,UAAA,IAAI,cAAcH,4BAAA,4BAA4B,WAAW;AAC/D,UAAM,SAAS,MAAM,KAAK,eAAe,IAAI,EAAE;AACzC,UAAA,SAAS,MAAM,IAAI,GAAG,aAAa,MAAM,IAAII,8BAAe,EAAE,CAAC;AACrE,QAAI,CAAC,QAAQ;AACL,aAAA;AAAA,IAAA;AAER,WAAO,KAAK,aAAa,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC;AAAA,EAAA;AAAA,EAG7C,MAAc,YAAY,IAAqB,OAAkC;AAChF,UAAM,SAAS,MAAM,KAAK,eAAe,EAAE;AACpC,WAAA,KAAK,aAAa,MAAM,GAAG,aAAa,MAAM,KAAK,GAAG,MAAM;AAAA,EAAA;AAAA,EAGpE,MAAc,eAAe,IAAsD;AAClF,WAAO,OAAO,aAAa,MAAM,GAAG,aAAa,MAAM,IAAIC,gBAAY,YAAA,CAAC,GAAG,IAAI,QAAM,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC;AAAA,EAAA;AAAA,EAG/F,aAAa,MAAkB,WAA4C;AAE3E,WAAA,KAAK,IAAI,CAAQ,SAAA;AAAA,MACvB,IAAI,IAAI;AAAA,MACR,WAAW,IAAI;AAAA,MACf,YAAY,IAAI;AAAA,MAChB,iBAAiB,IAAI;AAAA,MACrB,WAAW,IAAI;AAAA,MACf,KAAK,IAAI;AAAA,MACT,YAAY,IAAI;AAAA,MAChB,SAAS,IAAI;AAAA,MACb,OAAO,UAAU,IAAI,QAAQ;AAAA,MAC7B,OAAO,IAAI;AAAA,MACX,QAAQ,IAAI;AAAA,MACZ,eAAe,IAAI;AAAA,MACnB,YAAY,IAAI,eAAe;AAAA,MAC/B,WAAW,IAAI,cAAc;AAAA,MAC7B,WAAW,IAAI,cAAc;AAAA,IAAA,EAC5B;AAAA,EAAA;AAEJ;;"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { EventsToProcessQuery } from "../../../model/EventsToProcessQuery.js";
|
|
2
|
-
import { StagesQuery } from "@contember/engine-system-api";
|
|
3
|
-
import { EventsInProcessingQuery } from "../../../model/EventsInProcessingQuery.js";
|
|
4
|
-
import { FailedEventsQuery } from "../../../model/FailedEventsQuery.js";
|
|
5
|
-
import { ActionsAuthorizationActions } from "../../../authorization/ActionsAuthorizationActions.js";
|
|
6
|
-
import "@contember/authorization";
|
|
7
|
-
import "@contember/schema";
|
|
8
|
-
import { EventByIdQuery } from "../../../model/EventByIdQuery.js";
|
|
9
|
-
class EventsQueryResolver {
|
|
10
|
-
async eventsInProcessing(parent, { args }, ctx) {
|
|
11
|
-
await ctx.requireAccess(ActionsAuthorizationActions.EVENTS_VIEW);
|
|
12
|
-
return await this.fetchEvents(ctx.db, new EventsInProcessingQuery(args ?? {}));
|
|
13
|
-
}
|
|
14
|
-
async eventsToProcess(parent, { args }, ctx) {
|
|
15
|
-
await ctx.requireAccess(ActionsAuthorizationActions.EVENTS_VIEW);
|
|
16
|
-
return await this.fetchEvents(ctx.db, new EventsToProcessQuery(args ?? {}));
|
|
17
|
-
}
|
|
18
|
-
async failedEvents(parent, { args }, ctx) {
|
|
19
|
-
await ctx.requireAccess(ActionsAuthorizationActions.EVENTS_VIEW);
|
|
20
|
-
return await this.fetchEvents(ctx.db, new FailedEventsQuery(args ?? {}));
|
|
21
|
-
}
|
|
22
|
-
async event(parent, { id }, ctx) {
|
|
23
|
-
await ctx.requireAccess(ActionsAuthorizationActions.EVENTS_VIEW);
|
|
24
|
-
const stages = await this.fetchStagesMap(ctx.db);
|
|
25
|
-
const result = await ctx.db.queryHandler.fetch(new EventByIdQuery(id));
|
|
26
|
-
if (!result) {
|
|
27
|
-
return null;
|
|
28
|
-
}
|
|
29
|
-
return this.mapEventRows([result], stages)[0];
|
|
30
|
-
}
|
|
31
|
-
async fetchEvents(db, query) {
|
|
32
|
-
const stages = await this.fetchStagesMap(db);
|
|
33
|
-
return this.mapEventRows(await db.queryHandler.fetch(query), stages);
|
|
34
|
-
}
|
|
35
|
-
async fetchStagesMap(db) {
|
|
36
|
-
return Object.fromEntries((await db.queryHandler.fetch(new StagesQuery())).map((it) => [it.id, it.slug]));
|
|
37
|
-
}
|
|
38
|
-
mapEventRows(rows, stagesMap) {
|
|
39
|
-
return rows.map((row) => ({
|
|
40
|
-
id: row.id,
|
|
41
|
-
createdAt: row.created_at,
|
|
42
|
-
resolvedAt: row.created_at,
|
|
43
|
-
lastStateChange: row.last_state_change,
|
|
44
|
-
visibleAt: row.visible_at,
|
|
45
|
-
log: row.log,
|
|
46
|
-
numRetries: row.num_retries,
|
|
47
|
-
payload: row.payload,
|
|
48
|
-
stage: stagesMap[row.stage_id],
|
|
49
|
-
state: row.state,
|
|
50
|
-
target: row.target,
|
|
51
|
-
transactionId: row.transaction_id,
|
|
52
|
-
identityId: row.identity_id ?? void 0,
|
|
53
|
-
ipAddress: row.ip_address ?? void 0,
|
|
54
|
-
userAgent: row.user_agent ?? void 0
|
|
55
|
-
}));
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
export {
|
|
59
|
-
EventsQueryResolver
|
|
60
|
-
};
|
|
61
|
-
//# sourceMappingURL=EventsQueryResolver.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EventsQueryResolver.js","sources":["../../../../../../../packages/engine-actions/src/graphql/resolvers/query/EventsQueryResolver.ts"],"sourcesContent":["import {\n\tEvent,\n\tQueryEventsInProcessingArgs,\n\tQueryEventsToProcessArgs,\n\tQueryFailedEventsArgs,\n\tQueryResolvers,\n} from '../../schema'\nimport { ActionsContext } from '../ActionsContext'\nimport { EventsToProcessQuery } from '../../../model/EventsToProcessQuery'\nimport { EventRow } from '../../../model/types'\nimport { DatabaseContext, StagesQuery } from '@contember/engine-system-api'\nimport { Client, DatabaseQuery } from '@contember/database'\nimport { EventsInProcessingQuery } from '../../../model/EventsInProcessingQuery'\nimport { FailedEventsQuery } from '../../../model/FailedEventsQuery'\nimport { ActionsAuthorizationActions } from '../../../authorization'\nimport { EventByIdQuery } from '../../../model/EventByIdQuery'\n\nexport class EventsQueryResolver implements QueryResolvers<ActionsContext> {\n\tasync eventsInProcessing(parent: unknown, { args }: QueryEventsInProcessingArgs, ctx: ActionsContext) {\n\t\tawait ctx.requireAccess(ActionsAuthorizationActions.EVENTS_VIEW)\n\n\t\treturn await this.fetchEvents(ctx.db, new EventsInProcessingQuery(args ?? {}))\n\t}\n\n\tasync eventsToProcess(parent: unknown, { args }: QueryEventsToProcessArgs, ctx: ActionsContext) {\n\t\tawait ctx.requireAccess(ActionsAuthorizationActions.EVENTS_VIEW)\n\n\t\treturn await this.fetchEvents(ctx.db, new EventsToProcessQuery(args ?? {}))\n\t}\n\n\tasync failedEvents(parent: unknown, { args }: QueryFailedEventsArgs, ctx: ActionsContext) {\n\t\tawait ctx.requireAccess(ActionsAuthorizationActions.EVENTS_VIEW)\n\n\t\treturn await this.fetchEvents(ctx.db, new FailedEventsQuery(args ?? {}))\n\t}\n\n\tasync event(parent: unknown, { id }: { id: string }, ctx: ActionsContext): Promise<Event | null> {\n\t\tawait ctx.requireAccess(ActionsAuthorizationActions.EVENTS_VIEW)\n\t\tconst stages = await this.fetchStagesMap(ctx.db)\n\t\tconst result = await ctx.db.queryHandler.fetch(new EventByIdQuery(id))\n\t\tif (!result) {\n\t\t\treturn null\n\t\t}\n\t\treturn this.mapEventRows([result], stages)[0]\n\t}\n\n\tprivate async fetchEvents(db: DatabaseContext, query: DatabaseQuery<EventRow[]>) {\n\t\tconst stages = await this.fetchStagesMap(db)\n\t\treturn this.mapEventRows(await db.queryHandler.fetch(query), stages)\n\t}\n\n\tprivate async fetchStagesMap(db: DatabaseContext): Promise<Record<string, string>> {\n\t\treturn Object.fromEntries((await db.queryHandler.fetch(new StagesQuery())).map(it => [it.id, it.slug]))\n\t}\n\n\tprivate mapEventRows(rows: EventRow[], stagesMap: Record<string, string>): Event[] {\n\n\t\treturn rows.map(row => ({\n\t\t\tid: row.id,\n\t\t\tcreatedAt: row.created_at,\n\t\t\tresolvedAt: row.created_at,\n\t\t\tlastStateChange: row.last_state_change,\n\t\t\tvisibleAt: row.visible_at,\n\t\t\tlog: row.log,\n\t\t\tnumRetries: row.num_retries,\n\t\t\tpayload: row.payload,\n\t\t\tstage: stagesMap[row.stage_id],\n\t\t\tstate: row.state,\n\t\t\ttarget: row.target,\n\t\t\ttransactionId: row.transaction_id,\n\t\t\tidentityId: row.identity_id ?? undefined,\n\t\t\tipAddress: row.ip_address ?? undefined,\n\t\t\tuserAgent: row.user_agent ?? undefined,\n\t\t}))\n\t}\n}\n"],"names":[],"mappings":";;;;;;;;AAiBO,MAAM,oBAA8D;AAAA,EAC1E,MAAM,mBAAmB,QAAiB,EAAE,KAAA,GAAqC,KAAqB;AAC/F,UAAA,IAAI,cAAc,4BAA4B,WAAW;AAExD,WAAA,MAAM,KAAK,YAAY,IAAI,IAAI,IAAI,wBAAwB,QAAQ,CAAA,CAAE,CAAC;AAAA,EAAA;AAAA,EAG9E,MAAM,gBAAgB,QAAiB,EAAE,KAAA,GAAkC,KAAqB;AACzF,UAAA,IAAI,cAAc,4BAA4B,WAAW;AAExD,WAAA,MAAM,KAAK,YAAY,IAAI,IAAI,IAAI,qBAAqB,QAAQ,CAAA,CAAE,CAAC;AAAA,EAAA;AAAA,EAG3E,MAAM,aAAa,QAAiB,EAAE,KAAA,GAA+B,KAAqB;AACnF,UAAA,IAAI,cAAc,4BAA4B,WAAW;AAExD,WAAA,MAAM,KAAK,YAAY,IAAI,IAAI,IAAI,kBAAkB,QAAQ,CAAA,CAAE,CAAC;AAAA,EAAA;AAAA,EAGxE,MAAM,MAAM,QAAiB,EAAE,GAAA,GAAsB,KAA4C;AAC1F,UAAA,IAAI,cAAc,4BAA4B,WAAW;AAC/D,UAAM,SAAS,MAAM,KAAK,eAAe,IAAI,EAAE;AACzC,UAAA,SAAS,MAAM,IAAI,GAAG,aAAa,MAAM,IAAI,eAAe,EAAE,CAAC;AACrE,QAAI,CAAC,QAAQ;AACL,aAAA;AAAA,IAAA;AAER,WAAO,KAAK,aAAa,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC;AAAA,EAAA;AAAA,EAG7C,MAAc,YAAY,IAAqB,OAAkC;AAChF,UAAM,SAAS,MAAM,KAAK,eAAe,EAAE;AACpC,WAAA,KAAK,aAAa,MAAM,GAAG,aAAa,MAAM,KAAK,GAAG,MAAM;AAAA,EAAA;AAAA,EAGpE,MAAc,eAAe,IAAsD;AAClF,WAAO,OAAO,aAAa,MAAM,GAAG,aAAa,MAAM,IAAI,YAAY,CAAC,GAAG,IAAI,QAAM,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC;AAAA,EAAA;AAAA,EAG/F,aAAa,MAAkB,WAA4C;AAE3E,WAAA,KAAK,IAAI,CAAQ,SAAA;AAAA,MACvB,IAAI,IAAI;AAAA,MACR,WAAW,IAAI;AAAA,MACf,YAAY,IAAI;AAAA,MAChB,iBAAiB,IAAI;AAAA,MACrB,WAAW,IAAI;AAAA,MACf,KAAK,IAAI;AAAA,MACT,YAAY,IAAI;AAAA,MAChB,SAAS,IAAI;AAAA,MACb,OAAO,UAAU,IAAI,QAAQ;AAAA,MAC7B,OAAO,IAAI;AAAA,MACX,QAAQ,IAAI;AAAA,MACZ,eAAe,IAAI;AAAA,MACnB,YAAY,IAAI,eAAe;AAAA,MAC/B,WAAW,IAAI,cAAc;AAAA,MAC7B,WAAW,IAAI,cAAc;AAAA,IAAA,EAC5B;AAAA,EAAA;AAEJ;"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const ActionsAuthorizationActions = require("../../../authorization/ActionsAuthorizationActions.cjs");
|
|
4
|
-
require("@contember/authorization");
|
|
5
|
-
require("@contember/schema");
|
|
6
|
-
class VariablesQueryResolver {
|
|
7
|
-
constructor(variablesManager) {
|
|
8
|
-
this.variablesManager = variablesManager;
|
|
9
|
-
}
|
|
10
|
-
async variables(parent, args, ctx) {
|
|
11
|
-
await ctx.requireAccess(ActionsAuthorizationActions.ActionsAuthorizationActions.VARIABLES_VIEW);
|
|
12
|
-
return Object.entries(await this.variablesManager.fetchVariables(ctx.db)).map(([name, value]) => ({
|
|
13
|
-
name,
|
|
14
|
-
value
|
|
15
|
-
}));
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.VariablesQueryResolver = VariablesQueryResolver;
|
|
19
|
-
//# sourceMappingURL=VariablesQueryResolver.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VariablesQueryResolver.cjs","sources":["../../../../../../../packages/engine-actions/src/graphql/resolvers/query/VariablesQueryResolver.ts"],"sourcesContent":["import { QueryResolvers } from '../../schema'\nimport { ActionsContext } from '../ActionsContext'\nimport { VariablesManager } from '../../../model/VariablesManager'\nimport { ActionsAuthorizationActions } from '../../../authorization'\n\nexport class VariablesQueryResolver implements QueryResolvers<ActionsContext> {\n\n\tconstructor(\n\t\tprivate readonly variablesManager: VariablesManager,\n\t) {\n\t}\n\n\tasync variables(parent: unknown, args: unknown, ctx: ActionsContext) {\n\t\tawait ctx.requireAccess(ActionsAuthorizationActions.VARIABLES_VIEW)\n\n\t\treturn Object.entries(await this.variablesManager.fetchVariables(ctx.db)).map(([name, value]) => ({\n\t\t\tname,\n\t\t\tvalue,\n\t\t}))\n\t}\n}\n"],"names":["ActionsAuthorizationActions"],"mappings":";;;;;AAKO,MAAM,uBAAiE;AAAA,EAE7E,YACkB,kBAChB;AADgB,SAAA,mBAAA;AAAA,EAAA;AAAA,EAIlB,MAAM,UAAU,QAAiB,MAAe,KAAqB;AAC9D,UAAA,IAAI,cAAcA,4BAAA,4BAA4B,cAAc;AAElE,WAAO,OAAO,QAAQ,MAAM,KAAK,iBAAiB,eAAe,IAAI,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC,MAAM,KAAK,OAAO;AAAA,MACjG;AAAA,MACA;AAAA,IAAA,EACC;AAAA,EAAA;AAEJ;;"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ActionsAuthorizationActions } from "../../../authorization/ActionsAuthorizationActions.js";
|
|
2
|
-
import "@contember/authorization";
|
|
3
|
-
import "@contember/schema";
|
|
4
|
-
class VariablesQueryResolver {
|
|
5
|
-
constructor(variablesManager) {
|
|
6
|
-
this.variablesManager = variablesManager;
|
|
7
|
-
}
|
|
8
|
-
async variables(parent, args, ctx) {
|
|
9
|
-
await ctx.requireAccess(ActionsAuthorizationActions.VARIABLES_VIEW);
|
|
10
|
-
return Object.entries(await this.variablesManager.fetchVariables(ctx.db)).map(([name, value]) => ({
|
|
11
|
-
name,
|
|
12
|
-
value
|
|
13
|
-
}));
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
VariablesQueryResolver
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=VariablesQueryResolver.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VariablesQueryResolver.js","sources":["../../../../../../../packages/engine-actions/src/graphql/resolvers/query/VariablesQueryResolver.ts"],"sourcesContent":["import { QueryResolvers } from '../../schema'\nimport { ActionsContext } from '../ActionsContext'\nimport { VariablesManager } from '../../../model/VariablesManager'\nimport { ActionsAuthorizationActions } from '../../../authorization'\n\nexport class VariablesQueryResolver implements QueryResolvers<ActionsContext> {\n\n\tconstructor(\n\t\tprivate readonly variablesManager: VariablesManager,\n\t) {\n\t}\n\n\tasync variables(parent: unknown, args: unknown, ctx: ActionsContext) {\n\t\tawait ctx.requireAccess(ActionsAuthorizationActions.VARIABLES_VIEW)\n\n\t\treturn Object.entries(await this.variablesManager.fetchVariables(ctx.db)).map(([name, value]) => ({\n\t\t\tname,\n\t\t\tvalue,\n\t\t}))\n\t}\n}\n"],"names":[],"mappings":";;;AAKO,MAAM,uBAAiE;AAAA,EAE7E,YACkB,kBAChB;AADgB,SAAA,mBAAA;AAAA,EAAA;AAAA,EAIlB,MAAM,UAAU,QAAiB,MAAe,KAAqB;AAC9D,UAAA,IAAI,cAAc,4BAA4B,cAAc;AAElE,WAAO,OAAO,QAAQ,MAAM,KAAK,iBAAiB,eAAe,IAAI,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC,MAAM,KAAK,OAAO;AAAA,MACjG;AAAA,MACA;AAAA,IAAA,EACC;AAAA,EAAA;AAEJ;"}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const graphqlTag = require("graphql-tag");
|
|
4
|
-
const schema = graphqlTag.gql`
|
|
5
|
-
scalar DateTime
|
|
6
|
-
scalar Json
|
|
7
|
-
scalar Uuid
|
|
8
|
-
|
|
9
|
-
schema {
|
|
10
|
-
query: Query
|
|
11
|
-
mutation: Mutation
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
type Query {
|
|
15
|
-
failedEvents(args: EventArgs): [Event!]!
|
|
16
|
-
eventsToProcess(args: EventArgs): [Event!]!
|
|
17
|
-
eventsInProcessing(args: EventArgs): [Event!]!
|
|
18
|
-
event(id: Uuid!): Event
|
|
19
|
-
variables: [Variable!]!
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
type Mutation {
|
|
23
|
-
processBatch: ProcessBatchResponse!
|
|
24
|
-
retryEvent(id: Uuid!): RetryEventResponse!
|
|
25
|
-
stopEvent(id: Uuid!): StopEventResponse!
|
|
26
|
-
setVariables(args: SetVariablesArgs!): SetVariablesResponse!
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
input EventArgs {
|
|
30
|
-
offset: Int
|
|
31
|
-
"Max 10000"
|
|
32
|
-
limit: Int
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
type Event {
|
|
36
|
-
id: Uuid!
|
|
37
|
-
transactionId: Uuid!
|
|
38
|
-
identityId: Uuid
|
|
39
|
-
ipAddress: String
|
|
40
|
-
userAgent: String
|
|
41
|
-
createdAt: DateTime!
|
|
42
|
-
lastStateChange: DateTime!
|
|
43
|
-
resolvedAt: DateTime
|
|
44
|
-
visibleAt: DateTime
|
|
45
|
-
numRetries: Int!
|
|
46
|
-
state: EventState!
|
|
47
|
-
stage: String!
|
|
48
|
-
target: String!
|
|
49
|
-
payload: Json!
|
|
50
|
-
log: Json!
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
enum EventState {
|
|
54
|
-
created
|
|
55
|
-
retrying
|
|
56
|
-
processing
|
|
57
|
-
succeed
|
|
58
|
-
failed
|
|
59
|
-
stopped
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
type ProcessBatchResponse {
|
|
63
|
-
ok: Boolean!
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
type RetryEventResponse {
|
|
67
|
-
ok: Boolean!
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
type StopEventResponse {
|
|
71
|
-
ok: Boolean!
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
input SetVariablesArgs {
|
|
75
|
-
variables: [VariableInput!]!
|
|
76
|
-
mode: SetVariablesMode
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
"""
|
|
80
|
-
Defines how it handles original variables.
|
|
81
|
-
- MERGE merges with new values (default behaviour)
|
|
82
|
-
- SET replaces all variables
|
|
83
|
-
- APPEND_ONLY_MISSING appends values if not already exist
|
|
84
|
-
"""
|
|
85
|
-
enum SetVariablesMode {
|
|
86
|
-
MERGE
|
|
87
|
-
SET
|
|
88
|
-
APPEND_ONLY_MISSING
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
input VariableInput {
|
|
92
|
-
name: String!
|
|
93
|
-
value: String!
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
type SetVariablesResponse {
|
|
97
|
-
ok: Boolean!
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
type Variable {
|
|
101
|
-
name: String!
|
|
102
|
-
value: String!
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
`;
|
|
106
|
-
exports.schema = schema;
|
|
107
|
-
//# sourceMappingURL=actions.graphql.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"actions.graphql.cjs","sources":["../../../../../../packages/engine-actions/src/graphql/schema/actions.graphql.ts"],"sourcesContent":["import { gql } from 'graphql-tag'\nimport { DocumentNode } from 'graphql'\n\nexport const schema: DocumentNode = gql`\n scalar DateTime\n scalar Json\n scalar Uuid\n\n schema {\n query: Query\n mutation: Mutation\n }\n\n type Query {\n failedEvents(args: EventArgs): [Event!]!\n eventsToProcess(args: EventArgs): [Event!]!\n eventsInProcessing(args: EventArgs): [Event!]!\n event(id: Uuid!): Event\n variables: [Variable!]!\n }\n\n type Mutation {\n processBatch: ProcessBatchResponse!\n retryEvent(id: Uuid!): RetryEventResponse!\n stopEvent(id: Uuid!): StopEventResponse!\n setVariables(args: SetVariablesArgs!): SetVariablesResponse!\n }\n\n input EventArgs {\n offset: Int\n \"Max 10000\"\n limit: Int\n }\n\n type Event {\n id: Uuid!\n transactionId: Uuid!\n identityId: Uuid\n ipAddress: String\n userAgent: String\n createdAt: DateTime!\n lastStateChange: DateTime!\n resolvedAt: DateTime\n visibleAt: DateTime\n numRetries: Int!\n state: EventState!\n stage: String!\n target: String!\n payload: Json!\n log: Json!\n }\n\n enum EventState {\n created\n retrying\n processing\n succeed\n failed\n stopped\n }\n\n type ProcessBatchResponse {\n ok: Boolean!\n }\n\n type RetryEventResponse {\n ok: Boolean!\n }\n\n type StopEventResponse {\n ok: Boolean!\n }\n\n input SetVariablesArgs {\n variables: [VariableInput!]!\n mode: SetVariablesMode\n }\n\n\t\"\"\"\n\tDefines how it handles original variables.\n\t- MERGE merges with new values (default behaviour)\n\t- SET replaces all variables\n\t- APPEND_ONLY_MISSING appends values if not already exist\n\t\"\"\"\n\tenum SetVariablesMode {\n\t\tMERGE\n\t\tSET\n\t\tAPPEND_ONLY_MISSING\n\t}\n\n input VariableInput {\n name: String!\n value: String!\n }\n\n\ttype SetVariablesResponse {\n\t\tok: Boolean!\n\t}\n\n type Variable {\n name: String!\n value: String!\n }\n\n`\n"],"names":["gql"],"mappings":";;;AAGO,MAAM,SAAuBA,WAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;"}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { gql } from "graphql-tag";
|
|
2
|
-
const schema = gql`
|
|
3
|
-
scalar DateTime
|
|
4
|
-
scalar Json
|
|
5
|
-
scalar Uuid
|
|
6
|
-
|
|
7
|
-
schema {
|
|
8
|
-
query: Query
|
|
9
|
-
mutation: Mutation
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
type Query {
|
|
13
|
-
failedEvents(args: EventArgs): [Event!]!
|
|
14
|
-
eventsToProcess(args: EventArgs): [Event!]!
|
|
15
|
-
eventsInProcessing(args: EventArgs): [Event!]!
|
|
16
|
-
event(id: Uuid!): Event
|
|
17
|
-
variables: [Variable!]!
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
type Mutation {
|
|
21
|
-
processBatch: ProcessBatchResponse!
|
|
22
|
-
retryEvent(id: Uuid!): RetryEventResponse!
|
|
23
|
-
stopEvent(id: Uuid!): StopEventResponse!
|
|
24
|
-
setVariables(args: SetVariablesArgs!): SetVariablesResponse!
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
input EventArgs {
|
|
28
|
-
offset: Int
|
|
29
|
-
"Max 10000"
|
|
30
|
-
limit: Int
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
type Event {
|
|
34
|
-
id: Uuid!
|
|
35
|
-
transactionId: Uuid!
|
|
36
|
-
identityId: Uuid
|
|
37
|
-
ipAddress: String
|
|
38
|
-
userAgent: String
|
|
39
|
-
createdAt: DateTime!
|
|
40
|
-
lastStateChange: DateTime!
|
|
41
|
-
resolvedAt: DateTime
|
|
42
|
-
visibleAt: DateTime
|
|
43
|
-
numRetries: Int!
|
|
44
|
-
state: EventState!
|
|
45
|
-
stage: String!
|
|
46
|
-
target: String!
|
|
47
|
-
payload: Json!
|
|
48
|
-
log: Json!
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
enum EventState {
|
|
52
|
-
created
|
|
53
|
-
retrying
|
|
54
|
-
processing
|
|
55
|
-
succeed
|
|
56
|
-
failed
|
|
57
|
-
stopped
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
type ProcessBatchResponse {
|
|
61
|
-
ok: Boolean!
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
type RetryEventResponse {
|
|
65
|
-
ok: Boolean!
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
type StopEventResponse {
|
|
69
|
-
ok: Boolean!
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
input SetVariablesArgs {
|
|
73
|
-
variables: [VariableInput!]!
|
|
74
|
-
mode: SetVariablesMode
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
"""
|
|
78
|
-
Defines how it handles original variables.
|
|
79
|
-
- MERGE merges with new values (default behaviour)
|
|
80
|
-
- SET replaces all variables
|
|
81
|
-
- APPEND_ONLY_MISSING appends values if not already exist
|
|
82
|
-
"""
|
|
83
|
-
enum SetVariablesMode {
|
|
84
|
-
MERGE
|
|
85
|
-
SET
|
|
86
|
-
APPEND_ONLY_MISSING
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
input VariableInput {
|
|
90
|
-
name: String!
|
|
91
|
-
value: String!
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
type SetVariablesResponse {
|
|
95
|
-
ok: Boolean!
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
type Variable {
|
|
99
|
-
name: String!
|
|
100
|
-
value: String!
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
`;
|
|
104
|
-
export {
|
|
105
|
-
schema
|
|
106
|
-
};
|
|
107
|
-
//# sourceMappingURL=actions.graphql.js.map
|