-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathevents.ts
54 lines (52 loc) · 1.87 KB
/
events.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import { SchemaStackProps } from '../../../lib/workload/stateless/stacks/schema/stack';
import { eventSchemaRegistryName } from '../../constants';
import path from 'path';
export const getEventSchemaStackProps = (): SchemaStackProps => {
const docBase: string = '../../../docs/schemas/events';
const defaultProps = {
schemaType: 'JSONSchemaDraft4',
};
return {
registryName: eventSchemaRegistryName,
schemas: [
// add your schema into this `schemas` array
// adjust name, description, location accordingly
{
...defaultProps,
schemaName: 'orcabus.sequencerunmanager@SequenceRunStateChange',
schemaDescription: 'State change event for sequencing run by SequenceRunManager',
schemaLocation: path.join(
__dirname,
docBase + '/sequencerunmanager/SequenceRunStateChange.schema.json'
),
},
{
...defaultProps,
schemaName: 'orcabus.workflowmanager@WorkflowRunStateChange',
schemaDescription: 'State change event for workflow run by WorkflowManager',
schemaLocation: path.join(
__dirname,
docBase + '/workflowmanager/WorkflowRunStateChange.schema.json'
),
},
{
...defaultProps,
schemaName: 'orcabus.executionservice@WorkflowRunStateChange',
schemaDescription: 'State change event for workflow run by workflow execution services',
schemaLocation: path.join(
__dirname,
docBase + '/executionservice/WorkflowRunStateChange.schema.json'
),
},
{
...defaultProps,
schemaName: 'orcabus.metadatamanager@MetadataStateChange',
schemaDescription: 'State change event for lab metadata changes',
schemaLocation: path.join(
__dirname,
docBase + '/metadatamanager/MetadataStateChange.schema.json'
),
},
],
};
};