@glissandoo/lib 1.0.4 → 1.0.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.
@@ -5,6 +5,7 @@ export declare enum CollectionNames {
5
5
  UserGroups = "groups",
6
6
  UserNotifications = "notifications",
7
7
  Counters = "database",
8
+ Records = "records",
8
9
  Event = "event",
9
10
  EventPlayers = "players",
10
11
  EventRepertory = "repertory",
@@ -9,6 +9,7 @@ var CollectionNames;
9
9
  CollectionNames["UserGroups"] = "groups";
10
10
  CollectionNames["UserNotifications"] = "notifications";
11
11
  CollectionNames["Counters"] = "database";
12
+ CollectionNames["Records"] = "records";
12
13
  CollectionNames["Event"] = "event";
13
14
  CollectionNames["EventPlayers"] = "players";
14
15
  CollectionNames["EventRepertory"] = "repertory";
@@ -8,4 +8,5 @@ export default class GroupAnalytics extends Model<GroupAnalyticsData> {
8
8
  get satisfactionIndexElements(): Record<import("./types").SatisfactionIndexElements, import("./types").SITypes>;
9
9
  get createdAt(): firestore.Timestamp;
10
10
  get weekDate(): Date;
11
+ get status(): string;
11
12
  }
@@ -25,5 +25,8 @@ class GroupAnalytics extends Model_1.default {
25
25
  get weekDate() {
26
26
  return date_fns_1.parse(this.id, 'yyyyMMdd', new Date());
27
27
  }
28
+ get status() {
29
+ return this.data.status;
30
+ }
28
31
  }
29
32
  exports.default = GroupAnalytics;
@@ -1,12 +1,16 @@
1
1
  import { Timestamp } from '@google-cloud/firestore';
2
2
  export declare enum SatisfactionIndexElements {
3
- ADMIN_COUNT = "adminCount",
4
- MEMBERS_COUNT = "memberCount",
5
- EVENTS_PER_WEEK = "eventsPerWeek",
6
- EVENTS_ROLLCALLED_RATIO = "eventsRollcalledRatio",
7
- EVENTS_ATTENDANCE_PREVISION_RATIO = "eventsAttendancePrevisionRatio",
8
- EVENTS_ANSWER_RATIO = "eventsAnswerRatio",
9
- EVENTS_WITH_REPERTORY_RATIO = "eventsWithRepertoryRatio"
3
+ ROLLCALLED_EVENTS_RATIO = "ROLLCALLED_EVENTS_RATIO",
4
+ ADMIN_COUNT = "ADMIN_COUNT",
5
+ MEMBERS_COUNT = "MEMBERS_COUNT",
6
+ EVENTS_PER_WEEK = "EVENTS_PER_WEEK",
7
+ ATTENDANCE_PREVISION_RATIO = "ATTENDANCE_PREVISION_RATIO",
8
+ EVENTS_ANSWER_PERCENTAGE = "EVENTS_ANSWER_PERCENTAGE",
9
+ EVENTS_WITH_REPERTORY_PERCENTAGE = "EVENTS_WITH_REPERTORY_PERCENTAGE",
10
+ REPERTORY_COUNT = "REPERTORY_COUNT",
11
+ COMMUNICATION_COUNT = "COMMUNICATION_COUNT",
12
+ EVENTS_COUNT = "EVENTS_COUNT",
13
+ EVENTS_FUTURE_COUNT = "EVENTS_FUTURE_COUNT"
10
14
  }
11
15
  export interface SITypes {
12
16
  value: number;
@@ -17,4 +21,5 @@ export interface GroupAnalyticsData {
17
21
  satisfactionIndexElements: Record<SatisfactionIndexElements, SITypes>;
18
22
  satisfactionIndex: number;
19
23
  createdAt: Timestamp;
24
+ status: string;
20
25
  }
@@ -3,11 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SatisfactionIndexElements = void 0;
4
4
  var SatisfactionIndexElements;
5
5
  (function (SatisfactionIndexElements) {
6
- SatisfactionIndexElements["ADMIN_COUNT"] = "adminCount";
7
- SatisfactionIndexElements["MEMBERS_COUNT"] = "memberCount";
8
- SatisfactionIndexElements["EVENTS_PER_WEEK"] = "eventsPerWeek";
9
- SatisfactionIndexElements["EVENTS_ROLLCALLED_RATIO"] = "eventsRollcalledRatio";
10
- SatisfactionIndexElements["EVENTS_ATTENDANCE_PREVISION_RATIO"] = "eventsAttendancePrevisionRatio";
11
- SatisfactionIndexElements["EVENTS_ANSWER_RATIO"] = "eventsAnswerRatio";
12
- SatisfactionIndexElements["EVENTS_WITH_REPERTORY_RATIO"] = "eventsWithRepertoryRatio";
6
+ SatisfactionIndexElements["ROLLCALLED_EVENTS_RATIO"] = "ROLLCALLED_EVENTS_RATIO";
7
+ SatisfactionIndexElements["ADMIN_COUNT"] = "ADMIN_COUNT";
8
+ SatisfactionIndexElements["MEMBERS_COUNT"] = "MEMBERS_COUNT";
9
+ SatisfactionIndexElements["EVENTS_PER_WEEK"] = "EVENTS_PER_WEEK";
10
+ SatisfactionIndexElements["ATTENDANCE_PREVISION_RATIO"] = "ATTENDANCE_PREVISION_RATIO";
11
+ SatisfactionIndexElements["EVENTS_ANSWER_PERCENTAGE"] = "EVENTS_ANSWER_PERCENTAGE";
12
+ SatisfactionIndexElements["EVENTS_WITH_REPERTORY_PERCENTAGE"] = "EVENTS_WITH_REPERTORY_PERCENTAGE";
13
+ SatisfactionIndexElements["REPERTORY_COUNT"] = "REPERTORY_COUNT";
14
+ SatisfactionIndexElements["COMMUNICATION_COUNT"] = "COMMUNICATION_COUNT";
15
+ SatisfactionIndexElements["EVENTS_COUNT"] = "EVENTS_COUNT";
16
+ SatisfactionIndexElements["EVENTS_FUTURE_COUNT"] = "EVENTS_FUTURE_COUNT";
13
17
  })(SatisfactionIndexElements = exports.SatisfactionIndexElements || (exports.SatisfactionIndexElements = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissandoo/lib",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",