@glissandoo/lib 1.53.3 → 1.53.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.
@@ -19,7 +19,7 @@ export default class EventoPlayerBasic {
19
19
  get isInterested(): boolean;
20
20
  get isPendingInterested(): boolean;
21
21
  get isSelected(): boolean;
22
- get isDiscarted(): boolean;
22
+ get isDiscarded(): boolean;
23
23
  get isConfirmed(): boolean;
24
24
  get isDeclined(): boolean;
25
25
  get isPending(): boolean;
@@ -41,7 +41,7 @@ class EventoPlayerBasic {
41
41
  return !(0, lodash_1.isUndefined)(this.data.selected) ? this.data.selected : null;
42
42
  }
43
43
  get isActive() {
44
- return !this.isDiscarted;
44
+ return !this.isDiscarded;
45
45
  }
46
46
  get isInterested() {
47
47
  return this.interested === true;
@@ -52,7 +52,7 @@ class EventoPlayerBasic {
52
52
  get isSelected() {
53
53
  return this.selected === true;
54
54
  }
55
- get isDiscarted() {
55
+ get isDiscarded() {
56
56
  return this.selected === false;
57
57
  }
58
58
  get isConfirmed() {
@@ -70,7 +70,7 @@ export default class Evento extends EventoPromoter<EventData> {
70
70
  };
71
71
  get isSelectionMode(): boolean;
72
72
  get selectionModeClosedAt(): import("../../types/firestore").Timestamp | null;
73
- get isSelectionModeClose(): boolean;
73
+ get isSelectionModeClosed(): boolean;
74
74
  get isSelectionModeOpen(): boolean;
75
75
  }
76
76
  export {};
@@ -189,7 +189,7 @@ class Evento extends promoter_1.default {
189
189
  get selectionModeClosedAt() {
190
190
  return this.data.selectionModeClosedAt || null;
191
191
  }
192
- get isSelectionModeClose() {
192
+ get isSelectionModeClosed() {
193
193
  return (!(0, lodash_1.isNull)(this.selectionModeClosedAt) && this.selectionMode === types_1.EventSelectionMode.Closed);
194
194
  }
195
195
  get isSelectionModeOpen() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissandoo/lib",
3
- "version": "1.53.3",
3
+ "version": "1.53.5",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -1,28 +0,0 @@
1
- import { AEventPlayerBasicData } from '../types';
2
- import { EventPlayerStatus } from './types';
3
- export default class EventoPlayerBasic {
4
- eventId: string;
5
- protected data: AEventPlayerBasicData;
6
- constructor(eventId: string, data: AEventPlayerBasicData);
7
- get id(): string;
8
- get username(): string;
9
- get displayName(): string;
10
- get photoURL(): string;
11
- get mainInstrument(): import("../../../helpers/instruments").InstrumentId;
12
- get status(): EventPlayerStatus | null;
13
- get reason(): import("./types").EventPlayerReason | null;
14
- get note(): string | null;
15
- get rollcall(): EventPlayerStatus | null;
16
- get interested(): true | null;
17
- get selected(): boolean | null;
18
- get isActive(): boolean;
19
- get isInterested(): boolean;
20
- get isPendingInterested(): boolean;
21
- get isSelected(): boolean;
22
- get isDiscarted(): boolean;
23
- get isConfirmed(): boolean;
24
- get isDeclined(): boolean;
25
- get isPending(): boolean;
26
- get isRollCallConfirmed(): boolean;
27
- get isRollCallDeclined(): boolean;
28
- }
@@ -1,74 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const lodash_1 = require("lodash");
4
- const types_1 = require("./types");
5
- class EventoPlayerBasic {
6
- constructor(eventId, data) {
7
- this.eventId = eventId;
8
- this.data = data;
9
- }
10
- get id() {
11
- return this.data.id;
12
- }
13
- get username() {
14
- return this.data.username;
15
- }
16
- get displayName() {
17
- return this.data.displayName;
18
- }
19
- get photoURL() {
20
- return this.data.photoURL;
21
- }
22
- get mainInstrument() {
23
- return this.data.mainInstrument;
24
- }
25
- get status() {
26
- return this.data.status;
27
- }
28
- get reason() {
29
- return this.data.reason || null;
30
- }
31
- get note() {
32
- return this.data.note || null;
33
- }
34
- get rollcall() {
35
- return this.data.rollcall || null;
36
- }
37
- get interested() {
38
- return this.data.interested || null;
39
- }
40
- get selected() {
41
- return !(0, lodash_1.isUndefined)(this.data.selected) ? this.data.selected : null;
42
- }
43
- get isActive() {
44
- return !this.isDiscarted;
45
- }
46
- get isInterested() {
47
- return this.interested === true;
48
- }
49
- get isPendingInterested() {
50
- return this.interested === null;
51
- }
52
- get isSelected() {
53
- return this.selected === true;
54
- }
55
- get isDiscarted() {
56
- return this.selected === false;
57
- }
58
- get isConfirmed() {
59
- return this.status === types_1.EventPlayerStatus.Confirmed;
60
- }
61
- get isDeclined() {
62
- return this.status === types_1.EventPlayerStatus.Declined;
63
- }
64
- get isPending() {
65
- return this.status === null;
66
- }
67
- get isRollCallConfirmed() {
68
- return this.rollcall === types_1.EventPlayerStatus.Confirmed;
69
- }
70
- get isRollCallDeclined() {
71
- return this.rollcall === types_1.EventPlayerStatus.Declined;
72
- }
73
- }
74
- exports.default = EventoPlayerBasic;