@glissandoo/lib 1.1.0 → 1.1.1

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.
@@ -18,6 +18,7 @@ export default class Communication extends Model<CommunicationData> {
18
18
  get listRecipients(): (import("./types").CommunicationRecipientData & {
19
19
  id: string;
20
20
  })[];
21
+ get commentsCount(): number;
21
22
  get type(): CommunicationType;
22
23
  get isPrivate(): boolean;
23
24
  get isPublic(): boolean;
@@ -50,6 +50,9 @@ class Communication extends Model_1.default {
50
50
  get listRecipients() {
51
51
  return Object.keys(this.recipientsInfo).map((userId) => Object.assign(this.recipientsInfo[userId], { id: userId }));
52
52
  }
53
+ get commentsCount() {
54
+ return this.data.commentsCount || 0;
55
+ }
53
56
  get type() {
54
57
  return this.data.type;
55
58
  }
@@ -44,6 +44,7 @@ export interface CommunicationData {
44
44
  recipientsInfo: Record<string, CommunicationRecipientData>;
45
45
  thumbnailType: CommunicationThumbnailType | null;
46
46
  thumbnailURL: string | null;
47
+ commentsCount: number;
47
48
  avatar: (UserTinyData & {
48
49
  id: string;
49
50
  }) | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissandoo/lib",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",