From e3a2884cab48fed72b1e8f091abd234c4d4b9b8f Mon Sep 17 00:00:00 2001 From: Benoit Rospars <benoit.rospars@inria.fr> Date: Mon, 13 Mar 2023 11:17:50 +0100 Subject: [PATCH] Various fixes --- README.md | 2 +- package.json | 2 +- src/v1/author.ts | 1 + src/v1/epoc.ts | 3 +-- src/v2/epoc.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ef9ce53..4a2529c 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 320b49b..3c713b4 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 410e266..ea1eedd 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 a8c4088..38b3c93 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 41018f5..1f50962 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 -- GitLab