Loading src/things/message.ts +8 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ import { } from './abstract/creative-work'; import {SCThingMeta, SCThingType} from './abstract/thing'; import {SCThingThatCanBeOfferedTranslatableProperties} from './abstract/thing-that-can-be-offered'; import {SCOrganizationWithoutReferences} from './organization'; /** * A message without references Loading @@ -45,6 +46,11 @@ export interface SCMessageWithoutReferences */ messageBody: string; /** * Recipients of the message */ receivingOrganizations?: SCOrganizationWithoutReferences[]; /** * Translated fields of a message */ Loading Loading @@ -112,6 +118,7 @@ export class SCMessageMeta audiences: 'Zielgruppen', dateCreated: 'Erstellungsdatum', messageBody: 'Nachrichteninhalt', receivingOrganizations: 'empfangende Organisationen', }, en: { ...SCCreativeWorkMeta.getInstance<SCCreativeWorkMeta>().fieldTranslations Loading @@ -119,6 +126,7 @@ export class SCMessageMeta audiences: 'audiences', dateCreated: 'date created', messageBody: 'message body', receivingOrganizations: 'receiving organizations', }, }; Loading test/resources/Message.3.json +5 −0 Original line number Diff line number Diff line Loading @@ -12,6 +12,11 @@ "audiences": [ "students" ], "receivingOrganizations": [{ "name": "TU Berlin", "type": "organization", "uid": "4806ef14-b631-5c20-91d1-3c627decca5a" }], "origin": { "indexed": "2018-09-11T12:30:00Z", "name": "Dummy", Loading Loading
src/things/message.ts +8 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ import { } from './abstract/creative-work'; import {SCThingMeta, SCThingType} from './abstract/thing'; import {SCThingThatCanBeOfferedTranslatableProperties} from './abstract/thing-that-can-be-offered'; import {SCOrganizationWithoutReferences} from './organization'; /** * A message without references Loading @@ -45,6 +46,11 @@ export interface SCMessageWithoutReferences */ messageBody: string; /** * Recipients of the message */ receivingOrganizations?: SCOrganizationWithoutReferences[]; /** * Translated fields of a message */ Loading Loading @@ -112,6 +118,7 @@ export class SCMessageMeta audiences: 'Zielgruppen', dateCreated: 'Erstellungsdatum', messageBody: 'Nachrichteninhalt', receivingOrganizations: 'empfangende Organisationen', }, en: { ...SCCreativeWorkMeta.getInstance<SCCreativeWorkMeta>().fieldTranslations Loading @@ -119,6 +126,7 @@ export class SCMessageMeta audiences: 'audiences', dateCreated: 'date created', messageBody: 'message body', receivingOrganizations: 'receiving organizations', }, }; Loading
test/resources/Message.3.json +5 −0 Original line number Diff line number Diff line Loading @@ -12,6 +12,11 @@ "audiences": [ "students" ], "receivingOrganizations": [{ "name": "TU Berlin", "type": "organization", "uid": "4806ef14-b631-5c20-91d1-3c627decca5a" }], "origin": { "indexed": "2018-09-11T12:30:00Z", "name": "Dummy", Loading