@glissandoo/lib 1.3.13 → 1.3.15

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.
@@ -5,6 +5,7 @@ export declare namespace GroupFbFunctionsTypes {
5
5
  locality: string;
6
6
  latitude: number;
7
7
  longitude: number;
8
+ country: string;
8
9
  musicStyle: string;
9
10
  photoURL: string;
10
11
  }
@@ -23,6 +23,7 @@ export default class Group extends GroupBasic<GroupData> {
23
23
  get performanceCount(): number;
24
24
  get practiceCount(): number;
25
25
  get communicationCount(): number;
26
+ get country(): string;
26
27
  get activePlayers(): string[];
27
28
  get playersList(): (import("../Player/types").PlayerBasicData & {
28
29
  id: string;
@@ -78,6 +78,9 @@ class Group extends basic_1.default {
78
78
  get communicationCount() {
79
79
  return this.data.communicationCount || 0;
80
80
  }
81
+ get country() {
82
+ return this.data.country || 'ES';
83
+ }
81
84
  get activePlayers() {
82
85
  return Object.keys(this.players);
83
86
  }
@@ -68,6 +68,7 @@ export interface GroupData extends GroupBasicData {
68
68
  repertoryCount: number;
69
69
  eventCount: Record<EventType, number>;
70
70
  communicationCount: number;
71
+ country: string;
71
72
  readonly owner: DocumentReference;
72
73
  readonly createdAt: Timestamp;
73
74
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissandoo/lib",
3
- "version": "1.3.13",
3
+ "version": "1.3.15",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",