-
Notifications
You must be signed in to change notification settings - Fork 70
/
keys.ts
38 lines (37 loc) · 1.24 KB
/
keys.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Copyright (c) 2023 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import {BindingKey} from '@loopback/core';
import {BINDING_PREFIX} from '@sourceloop/core';
import {
ExecutionInputValidator,
IWorkflowServiceConfig,
WorflowManager,
WorkerImplementationFn,
WorkerMap,
WorkerRegisterFn,
} from './types';
export namespace WorkflowServiceBindings {
export const WorkflowManager = BindingKey.create<WorflowManager | null>(
`${BINDING_PREFIX}.workflow.manager`,
);
export const Config = BindingKey.create<IWorkflowServiceConfig | null>(
`${BINDING_PREFIX}.workflow.config`,
);
export const ExecutionInputValidatorFn =
BindingKey.create<ExecutionInputValidator | null>(
`${BINDING_PREFIX}.workflow.execute.validator`,
);
export const RegisterWorkerFunction =
BindingKey.create<WorkerRegisterFn | null>(
`${BINDING_PREFIX}.workflow.worker.register`,
);
export const WorkerImplementationFunction =
BindingKey.create<WorkerImplementationFn | null>(
`${BINDING_PREFIX}.workflow.worker.implementation`,
);
export const WORKER_MAP = BindingKey.create<WorkerMap | null>(
`${BINDING_PREFIX}.workflow.worker.map`,
);
}