chore(backend): Opzetten processing begonnen.
Functionaliteit van Dwengo Learning-Object-Repository in ons project gekopiëerd en deels aanBestanden die enkel types of interfaces exporteren hernoemd naar *.d.tsgepast aan TypeScript en ons project.
This commit is contained in:
		
							parent
							
								
									2d9f17484c
								
							
						
					
					
						commit
						ba3da01d2d
					
				
					 18 changed files with 875 additions and 11 deletions
				
			
		|  | @ -11,6 +11,7 @@ import { | |||
| import { Language } from './language.js'; | ||||
| import { Attachment } from './attachment.entity.js'; | ||||
| import { Teacher } from '../users/teacher.entity.js'; | ||||
| import {DwengoContentType} from "../../services/learning-objects/processing/content_type"; | ||||
| 
 | ||||
| @Entity() | ||||
| export class LearningObject { | ||||
|  | @ -33,7 +34,7 @@ export class LearningObject { | |||
|     description!: string; | ||||
| 
 | ||||
|     @Property({ type: 'string' }) | ||||
|     contentType!: string; | ||||
|     contentType!: DwengoContentType; | ||||
| 
 | ||||
|     @Property({ type: 'array' }) | ||||
|     keywords: string[] = []; | ||||
|  | @ -95,12 +96,3 @@ export class ReturnValue { | |||
|     @Property({ type: 'json' }) | ||||
|     callbackSchema!: string; | ||||
| } | ||||
| 
 | ||||
| export enum ContentType { | ||||
|     Markdown = 'text/markdown', | ||||
|     Image = 'image/image', | ||||
|     Mpeg = 'audio/mpeg', | ||||
|     Pdf = 'application/pdf', | ||||
|     Extern = 'extern', | ||||
|     Blockly = 'Blockly', | ||||
| } | ||||
|  |  | |||
		Reference in a new issue
	
	 Gerald Schmittinger
						Gerald Schmittinger