@glissandoo/lib 1.13.0 → 1.13.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.
@@ -54,4 +54,5 @@ export default class Group extends GroupBasic<GroupData> {
54
54
  get stageTemplatesList(): (import("../../helpers/types").StageTemplate & {
55
55
  id: string;
56
56
  })[];
57
+ get firstAnswerAt(): FirebaseFirestore.Timestamp | null;
57
58
  }
@@ -152,5 +152,8 @@ class Group extends basic_1.default {
152
152
  get stageTemplatesList() {
153
153
  return Object.keys(this.stageTemplates).map((templateId) => Object.assign({}, this.stageTemplates[templateId], { id: templateId }));
154
154
  }
155
+ get firstAnswerAt() {
156
+ return this.data.firstAnswerAt || null;
157
+ }
155
158
  }
156
159
  exports.default = Group;
@@ -89,6 +89,7 @@ export interface GroupData extends GroupBasicData {
89
89
  country: string;
90
90
  stageTemplates: Record<string, StageTemplate>;
91
91
  metadata: Record<string, string>;
92
+ firstAnswerAt: Timestamp | null;
92
93
  readonly owner: DocumentReference;
93
94
  readonly createdAt: Timestamp;
94
95
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissandoo/lib",
3
- "version": "1.13.0",
3
+ "version": "1.13.1",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",