From 7fbe1620ee1786a12142b897a130e71acc1730ac Mon Sep 17 00:00:00 2001 From: Roman Klopsch Date: Wed, 19 Jun 2019 11:59:29 +0200 Subject: [PATCH] refactor: rename receivingOrganizations field --- src/things/message.ts | 14 +++++++------- test/resources/Message.3.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/things/message.ts b/src/things/message.ts index 6199f178..a927f0f5 100644 --- a/src/things/message.ts +++ b/src/things/message.ts @@ -29,6 +29,11 @@ import {SCOrganizationWithoutReferences} from './organization'; */ export interface SCMessageWithoutReferences extends SCCreativeWorkWithoutReferences { + /** + * Recipients of the message + */ + audienceOrganizations?: SCOrganizationWithoutReferences[]; + /** * Audience of the message */ @@ -46,11 +51,6 @@ export interface SCMessageWithoutReferences */ messageBody: string; - /** - * Recipients of the message - */ - receivingOrganizations?: SCOrganizationWithoutReferences[]; - /** * Translated fields of a message */ @@ -115,18 +115,18 @@ export class SCMessageMeta de: { ...SCCreativeWorkMeta.getInstance().fieldTranslations .de, + audienceOrganizations: 'Publikumsorganisationen', audiences: 'Zielgruppen', dateCreated: 'Erstellungsdatum', messageBody: 'Nachrichteninhalt', - receivingOrganizations: 'empfangende Organisationen', }, en: { ...SCCreativeWorkMeta.getInstance().fieldTranslations .en, + audienceOrganizations: 'audience organizations', audiences: 'audiences', dateCreated: 'date created', messageBody: 'message body', - receivingOrganizations: 'receiving organizations', }, }; diff --git a/test/resources/Message.3.json b/test/resources/Message.3.json index f2ded656..ff80f1b4 100644 --- a/test/resources/Message.3.json +++ b/test/resources/Message.3.json @@ -12,7 +12,7 @@ "audiences": [ "students" ], - "receivingOrganizations": [{ + "audienceOrganizations": [{ "name": "TU Berlin", "type": "organization", "uid": "4806ef14-b631-5c20-91d1-3c627decca5a"