feat: add new field receivingOrganisations to message

This commit is contained in:
Roman Klopsch
2019-06-18 10:29:57 +02:00
committed by Benjamin Jöckel
parent 86f3f8dfae
commit d781dd6de5
2 changed files with 13 additions and 0 deletions

View File

@@ -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
@@ -45,6 +46,11 @@ export interface SCMessageWithoutReferences
*/
messageBody: string;
/**
* Recipients of the message
*/
receivingOrganizations?: SCOrganizationWithoutReferences[];
/**
* Translated fields of a message
*/
@@ -112,6 +118,7 @@ export class SCMessageMeta
audiences: 'Zielgruppen',
dateCreated: 'Erstellungsdatum',
messageBody: 'Nachrichteninhalt',
receivingOrganizations: 'empfangende Organisationen',
},
en: {
...SCCreativeWorkMeta.getInstance<SCCreativeWorkMeta>().fieldTranslations
@@ -119,6 +126,7 @@ export class SCMessageMeta
audiences: 'audiences',
dateCreated: 'date created',
messageBody: 'message body',
receivingOrganizations: 'receiving organizations',
},
};