-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8563021
commit 61aadab
Showing
2 changed files
with
24 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,25 @@ | ||
export interface LearningPathDto { | ||
readonly _id: string; | ||
readonly id: string; | ||
readonly name: string; | ||
readonly slug: string; | ||
readonly metadata?: Record<string, unknown>; | ||
readonly fork_id?: string; | ||
readonly metadata?: Metadata; | ||
readonly forkId?: string; | ||
readonly status: string; | ||
readonly created_namespace_id?: string; | ||
readonly created_by: string; | ||
readonly created_at: string; | ||
readonly updated_at: string; | ||
readonly namespaceId?: string; | ||
readonly createdBy: string; | ||
readonly createdAt: string; | ||
readonly updatedAt: string; | ||
} | ||
|
||
interface Metadata { | ||
readonly description?: string; | ||
readonly descriptionInstructor?: string; | ||
readonly author?: string; | ||
readonly coverId?: string; | ||
readonly coverAlt?: string; | ||
readonly coverCopyright?: string; | ||
readonly bannerId?: string; | ||
readonly bannerAlt?: string; | ||
readonly bannerCopyright?: string; | ||
readonly duration?: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { LearningPathDto } from '../../src/learning-path/dto/learning-path.dto'; | ||
|
||
export const learningPath: LearningPathDto = { | ||
_id: 'b942d4de-921c-4406-abbd-464dabb7b323', | ||
id: 'b942d4de-921c-4406-abbd-464dabb7b323', | ||
name: 'name', | ||
slug: 'slug', | ||
status: 'status', | ||
created_by: 'created_by', | ||
created_at: 'created_at', | ||
updated_at: 'updated_at', | ||
createdBy: 'created_by', | ||
createdAt: 'created_at', | ||
updatedAt: 'updated_at', | ||
}; |