diff --git a/src/v2/epoc.ts b/src/v2/epoc.ts index 346ae000a0fa93c03fe8e74aeb46044d533018f6..ae9304aea20b76864e3121e90bf896d1682cd6e2 100644 --- a/src/v2/epoc.ts +++ b/src/v2/epoc.ts @@ -2,6 +2,7 @@ import {Content} from './content'; import {html, uid, uri, langcode} from './types'; import {Question} from './question'; import {Badge} from './badge'; +import {Rule} from './rule'; /** * Contains all the ePoc metadata that can be retrieved from the library API @@ -258,19 +259,13 @@ export interface Screen { } export interface Edge { - - /** - * Specifies the source screen uid - */ - source: uid; - /** * Specifies the target screen uid */ target: uid; - + /** - * @Todo Define conditionnal behavior of edges + * Specifies the rule to activate this edge */ - data?: Object; + rule: Rule }