-
Notifications
You must be signed in to change notification settings - Fork 0
/
codyconfig.ts
37 lines (36 loc) · 1.23 KB
/
codyconfig.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
import {Map} from "immutable";
import {onBoundedContext} from "./tools/codyhooks/on-bounded-context";
import {onAggregate} from "./tools/codyhooks/on-aggregate";
import {onCommand} from "./tools/codyhooks/on-command";
import {onEvent} from "./tools/codyhooks/on-event";
import {onDocument} from "./tools/codyhooks/on-document";
module.exports = {
context: {
/*
* The context object is passed to each hook as second argument
* use it to pass configuration to your hooks like a src directory, credentials, ...
*/
// This Cody server implements the optional Sync flow and stores all synced nodes in this context property
syncedNodes: Map({})
},
hooks: {
/**
* Uncomment and implement a hook to activate it
*/
onAggregate,
onBoundedContext,
onCommand,
onDocument,
onEvent,
// onFeature: onFeatureHook,
// onFreeText: onFreeTextHook,
// onExternalSystem: onExternalSystemHook,
// onIcon: onIconHook,
// onImage: onImageHook,
// onHotSpot: onHotSpotHook,
// onLayer: onLayerHook,
// onPolicy: onPolicyHook,
// onRole: onRoleHook,
// onUi: onUiHook,
}
}