@glissandoo/lib 1.29.2 → 1.30.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.
@@ -21,8 +21,8 @@ export default class Evento extends EventoPromoter<EventData> {
21
21
  get repertoryIds(): string[];
22
22
  get repertoryCount(): number;
23
23
  get activeInvitationLink(): boolean;
24
- get invitationLink(): string | null;
25
- get shortDynamicLink(): string | null;
24
+ get invitationLink(): string;
25
+ get shortDynamicLink(): string;
26
26
  get deletedAt(): FirebaseFirestore.Timestamp | null;
27
27
  get createdAt(): FirebaseFirestore.Timestamp;
28
28
  get createdOn(): import("./types").EventCreatedOn;
@@ -63,7 +63,7 @@ export default class Evento extends EventoPromoter<EventData> {
63
63
  get totalViews(): number;
64
64
  get templateId(): string | null;
65
65
  get repeat(): import("./types").EventRepeatType | null;
66
- get timezone(): string | null;
66
+ get timezone(): string;
67
67
  /** @deprecated */
68
68
  getViewer(userId: string): import("./types").EventViewer | null;
69
69
  isPlayer: (userId: string) => boolean;
@@ -72,10 +72,11 @@ class Evento extends promoter_1.default {
72
72
  return this.data.activeInvitationLink || false;
73
73
  }
74
74
  get invitationLink() {
75
- return this.data.invitationLink;
75
+ return this.data.invitationLink || `https://glissandoo.com/joinevent/${this.id}`;
76
76
  }
77
77
  get shortDynamicLink() {
78
- return this.data.shortDynamicLink;
78
+ return (this.data.shortDynamicLink ||
79
+ `https://app.glissandoo.com/group/${this.promoterInfo.username}/events/${this.id}`);
79
80
  }
80
81
  get deletedAt() {
81
82
  return this.data.deletedAt;
@@ -172,7 +173,7 @@ class Evento extends promoter_1.default {
172
173
  return this.data.repeat || null;
173
174
  }
174
175
  get timezone() {
175
- return this.data.timezone || null;
176
+ return this.data.timezone || 'Europe/Madrid';
176
177
  }
177
178
  /** @deprecated */
178
179
  getViewer(userId) {
@@ -13,9 +13,9 @@ export default class Group extends GroupBasic<GroupData> {
13
13
  get addresses(): import("./types").GroupAddressData[];
14
14
  get addressDefault(): import("./types").GroupAddressData | undefined;
15
15
  get activeInvitationLink(): boolean;
16
- get invitationLink(): string | null;
16
+ get invitationLink(): string;
17
17
  get invitationEmails(): string[];
18
- get shortDynamicLink(): string | null;
18
+ get shortDynamicLink(): string;
19
19
  get admins(): string[];
20
20
  get createdAt(): FirebaseFirestore.Timestamp;
21
21
  get deletedAt(): FirebaseFirestore.Timestamp | null;
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const date_fns_1 = require("date-fns");
7
7
  const lodash_1 = require("lodash");
8
8
  const orders_1 = require("../../helpers/musicStyles/orders");
9
- const plans_1 = require("../../helpers/plans");
10
9
  const objects_1 = require("../../helpers/objects");
10
+ const plans_1 = require("../../helpers/plans");
11
11
  const lang_1 = require("../../lang");
12
12
  const basic_1 = __importDefault(require("./basic"));
13
13
  const types_1 = require("./types");
@@ -49,13 +49,13 @@ class Group extends basic_1.default {
49
49
  return this.data.activeInvitationLink || false;
50
50
  }
51
51
  get invitationLink() {
52
- return this.data.invitationLink;
52
+ return this.data.invitationLink || `https://glissandoo.com/joingroup/${this.id}`;
53
53
  }
54
54
  get invitationEmails() {
55
55
  return this.data.invitationEmails || [];
56
56
  }
57
57
  get shortDynamicLink() {
58
- return this.data.shortDynamicLink;
58
+ return this.data.shortDynamicLink || `https://app.glissandoo.com/group/${this.username}`;
59
59
  }
60
60
  get admins() {
61
61
  return this.data.administrators || [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissandoo/lib",
3
- "version": "1.29.2",
3
+ "version": "1.30.1",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",