@glissandoo/lib 1.76.0 → 1.78.0
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.
- package/functions/customerGroup.d.ts +3 -0
- package/models/Group/index.d.ts +2 -0
- package/models/Group/index.js +4 -0
- package/models/Group/types.d.ts +2 -0
- package/models/Group/types.js +1 -0
- package/models/User/index.d.ts +1 -0
- package/models/User/index.js +3 -0
- package/models/User/types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -11,6 +11,9 @@ export declare namespace CustomerGroupFbFunctionsTypes {
|
|
|
11
11
|
planId: PlansGroup;
|
|
12
12
|
planPeriod: PlanPeriod;
|
|
13
13
|
planDiscount: string | null;
|
|
14
|
+
subscriptionId: string | null;
|
|
15
|
+
planStripeId: string | null;
|
|
16
|
+
method: 'stripe' | 'gocardless' | 'manual';
|
|
14
17
|
}
|
|
15
18
|
type SetPlanResult = void;
|
|
16
19
|
interface RemoveParams {
|
package/models/Group/index.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export default class Group extends GroupBasic<GroupData> {
|
|
|
44
44
|
getSocialNetworkUrl(id: SocialNetwork): string | null;
|
|
45
45
|
get config(): {
|
|
46
46
|
includesMembersToEventsWhenJoined: boolean;
|
|
47
|
+
allowEditInstruments: boolean;
|
|
47
48
|
showAttendanceToMembers: GroupConfigShowAttendanceToMembers;
|
|
48
49
|
};
|
|
49
50
|
get configSites(): {
|
|
@@ -65,6 +66,7 @@ export default class Group extends GroupBasic<GroupData> {
|
|
|
65
66
|
getPlayer: (userId: string) => import("../Player/types").PlayerBasicData | null;
|
|
66
67
|
isAdmin: (userId: string) => boolean;
|
|
67
68
|
isPlayer: (userId: string) => boolean;
|
|
69
|
+
/** @deprecated use isUpgradeRequired */
|
|
68
70
|
get isExpiredTrial(): boolean;
|
|
69
71
|
get isOutOfMembersLimit(): boolean;
|
|
70
72
|
get isUpgradePlanRequired(): boolean;
|
package/models/Group/index.js
CHANGED
|
@@ -137,6 +137,9 @@ class Group extends basic_1.default {
|
|
|
137
137
|
[types_1.GroupConfigKey.IncludesMembersToEventsWhenJoined]: types_1.GroupConfigKey.IncludesMembersToEventsWhenJoined in this.data.config
|
|
138
138
|
? this.data.config[types_1.GroupConfigKey.IncludesMembersToEventsWhenJoined]
|
|
139
139
|
: true,
|
|
140
|
+
[types_1.GroupConfigKey.AllowEditInstruments]: types_1.GroupConfigKey.AllowEditInstruments in this.data.config
|
|
141
|
+
? this.data.config[types_1.GroupConfigKey.AllowEditInstruments]
|
|
142
|
+
: true,
|
|
140
143
|
[types_1.GroupConfigKey.ShowAttendanceToMembers]: types_1.GroupConfigKey.ShowAttendanceToMembers in this.data.config
|
|
141
144
|
? this.data.config[types_1.GroupConfigKey.ShowAttendanceToMembers]
|
|
142
145
|
: types_1.GroupConfigShowAttendanceToMembers.None,
|
|
@@ -173,6 +176,7 @@ class Group extends basic_1.default {
|
|
|
173
176
|
get metadata() {
|
|
174
177
|
return this.data.metadata || {};
|
|
175
178
|
}
|
|
179
|
+
/** @deprecated use isUpgradeRequired */
|
|
176
180
|
get isExpiredTrial() {
|
|
177
181
|
const isOutDateTrial = (0, date_fns_1.isPast)(this.trialEndAt);
|
|
178
182
|
const members = this.activePlayers.length;
|
package/models/Group/types.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export declare enum GroupCreatedOn {
|
|
|
17
17
|
}
|
|
18
18
|
export declare enum GroupConfigKey {
|
|
19
19
|
IncludesMembersToEventsWhenJoined = "includesMembersToEventsWhenJoined",
|
|
20
|
+
AllowEditInstruments = "allowEditInstruments",
|
|
20
21
|
ShowAttendanceToMembers = "showAttendanceToMembers"
|
|
21
22
|
}
|
|
22
23
|
export declare enum GroupConfigSitesKey {
|
|
@@ -103,6 +104,7 @@ export declare enum GroupRepertoireTagDefault {
|
|
|
103
104
|
}
|
|
104
105
|
export interface GroupConfig {
|
|
105
106
|
[GroupConfigKey.IncludesMembersToEventsWhenJoined]: boolean;
|
|
107
|
+
[GroupConfigKey.AllowEditInstruments]: boolean;
|
|
106
108
|
[GroupConfigKey.ShowAttendanceToMembers]: GroupConfigShowAttendanceToMembers;
|
|
107
109
|
}
|
|
108
110
|
export interface GroupConfigSites {
|
package/models/Group/types.js
CHANGED
|
@@ -10,6 +10,7 @@ var GroupCreatedOn;
|
|
|
10
10
|
var GroupConfigKey;
|
|
11
11
|
(function (GroupConfigKey) {
|
|
12
12
|
GroupConfigKey["IncludesMembersToEventsWhenJoined"] = "includesMembersToEventsWhenJoined";
|
|
13
|
+
GroupConfigKey["AllowEditInstruments"] = "allowEditInstruments";
|
|
13
14
|
GroupConfigKey["ShowAttendanceToMembers"] = "showAttendanceToMembers";
|
|
14
15
|
})(GroupConfigKey = exports.GroupConfigKey || (exports.GroupConfigKey = {}));
|
|
15
16
|
var GroupConfigSitesKey;
|
package/models/User/index.d.ts
CHANGED
package/models/User/index.js
CHANGED
package/models/User/types.d.ts
CHANGED
|
@@ -89,6 +89,7 @@ export interface UserData extends UserBasicData {
|
|
|
89
89
|
[UserAppConfig.DefaultGroupId]: string | null;
|
|
90
90
|
[UserAppConfig.DefaultEventsFilter]: UserEventsFilter;
|
|
91
91
|
};
|
|
92
|
+
analyticsEnabled: boolean;
|
|
92
93
|
registerVia: UserRegisterVia;
|
|
93
94
|
lastAppLoginAt: Timestamp | null;
|
|
94
95
|
lastWebLoginAt: Timestamp | null;
|