diff --git a/README.md b/README.md index ef9ce53e821467343b73fccf5c3c75f3cae72eec..4a2529c404e201fcdbbfe91f4d9d96e55d2c8a14 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # epoc-specs -npm install git+ssh://git@gitlab.inria.fr:learninglab/epoc/epoc-specs.git \ No newline at end of file +npm install @epoc/epoc-specs \ No newline at end of file diff --git a/package.json b/package.json index 320b49b225c1ae978ad2e5a7b3c462de9930a11b..3c713b442516e690cb35941861142d7dd07b5da3 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "epoc-specs", + "name": "@epoc/epoc-specs", "version": "2.0.0", "description": "ePoc (Electronic Pocket Open Course) types specifications", "main": "dist/index.ts", diff --git a/src/v1/author.ts b/src/v1/author.ts index 410e2667ed8c1d4a997239a500165d4f91847eaa..ea1eeddf31a40cdcf1cdd550b109eda0282ba3e0 100644 --- a/src/v1/author.ts +++ b/src/v1/author.ts @@ -3,5 +3,6 @@ import {html} from './types'; export interface Author { name: string; image: string; + title: string; description: html; } diff --git a/src/v1/epoc.ts b/src/v1/epoc.ts index a8c4088c01119a44a258fd579845c3a87593d44d..38b3c9376b295ab50c8e1bf9fcebbc65faa0ea8b 100644 --- a/src/v1/epoc.ts +++ b/src/v1/epoc.ts @@ -10,7 +10,7 @@ export interface EpocMetadata { title: string; image: string; teaser?: string; - authors: Record<uid, Author>; + authors: Author[]; thumbnail : string; summary: html; objectives: string[]; @@ -34,7 +34,6 @@ export interface Epoc extends EpocMetadata { } export interface Chapter { - id: uid; title: string; image?: string; objectives?: string[]; diff --git a/src/v2/epoc.ts b/src/v2/epoc.ts index 41018f56233060849ddb3219710f65a8cc0dfc9a..1f50962b1db20cd2078f91d1547525d4698e03e9 100644 --- a/src/v2/epoc.ts +++ b/src/v2/epoc.ts @@ -148,7 +148,7 @@ export interface Author { /** * Specifies the author's job title */ - titre: string; + title: string; /** * Specifies the author's profil picture