@glissandoo/lib 1.103.3 → 1.103.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,6 +6,7 @@ export declare namespace CommunicationFbFunctionsTypes {
6
6
  groupId: string;
7
7
  title: string;
8
8
  message: Descendant[];
9
+ messageMd: string;
9
10
  recipients: string[];
10
11
  templateId: string | null;
11
12
  type: CommunicationType;
@@ -18,6 +19,7 @@ export declare namespace CommunicationFbFunctionsTypes {
18
19
  groupId: string;
19
20
  title: string;
20
21
  message: Descendant[];
22
+ messageMd: string;
21
23
  recipients: string[];
22
24
  templateId: string | null;
23
25
  type: CommunicationType;
@@ -7,6 +7,7 @@ export default class Communication extends ModelWithLang<CommunicationData> {
7
7
  constructor(doc: DocumentModel, lang?: LanguagesTypes);
8
8
  get title(): string;
9
9
  get message(): import("../../helpers/slate").Descendant[];
10
+ get messageMd(): string;
10
11
  get promoter(): DocumentReference;
11
12
  get promoterInfo(): import("../Group/types").GroupTinyData;
12
13
  get owner(): DocumentReference;
@@ -21,6 +21,9 @@ class Communication extends lang_2.default {
21
21
  get message() {
22
22
  return this.data.message || [];
23
23
  }
24
+ get messageMd() {
25
+ return this.data.messageMd || '';
26
+ }
24
27
  get promoter() {
25
28
  return this.data.promoter;
26
29
  }
@@ -46,6 +46,7 @@ export interface CommunicationRecipientData {
46
46
  export interface CommunicationData {
47
47
  title: string;
48
48
  message: Descendant[];
49
+ messageMd: string;
49
50
  type: CommunicationType;
50
51
  readonly promoter: DocumentReference;
51
52
  promoterInfo: GroupTinyData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissandoo/lib",
3
- "version": "1.103.3",
3
+ "version": "1.103.5",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",