@glissandoo/lib 1.104.2 → 1.104.4
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/event.d.ts +1 -0
- package/functions/group.d.ts +5 -0
- package/functions/index.d.ts +1 -0
- package/functions/index.js +1 -0
- package/functions/regions.js +1 -0
- package/helpers/communicationTemplate/newMember.js +126 -30
- package/helpers/notifications/index.js +4 -0
- package/models/Evento/index.js +10 -4
- package/models/Group/index.js +5 -1
- package/models/User/types.d.ts +2 -1
- package/models/User/types.js +1 -2
- package/package.json +1 -1
package/functions/event.d.ts
CHANGED
package/functions/group.d.ts
CHANGED
|
@@ -49,6 +49,11 @@ export declare namespace GroupFbFunctionsTypes {
|
|
|
49
49
|
updateRelatedFutureEvents: boolean;
|
|
50
50
|
}
|
|
51
51
|
type EditTemplateResult = GroupTemplateData;
|
|
52
|
+
interface RemoveTemplateParams {
|
|
53
|
+
groupId: string;
|
|
54
|
+
templateId: string;
|
|
55
|
+
}
|
|
56
|
+
type RemoveTemplateResult = void;
|
|
52
57
|
interface RemoveParams {
|
|
53
58
|
groupId: string;
|
|
54
59
|
}
|
package/functions/index.d.ts
CHANGED
|
@@ -68,6 +68,7 @@ export declare enum FbFunctionName {
|
|
|
68
68
|
GroupEdit = "group-edit",
|
|
69
69
|
GroupEditInstruments = "group-editInstruments",
|
|
70
70
|
GroupEditTemplate = "group-editTemplate",
|
|
71
|
+
GroupRemoveTemplate = "group-removeTemplate",
|
|
71
72
|
GroupGetById = "group-getById",
|
|
72
73
|
GroupGetByInvitationLink = "group-getByInvitationLink",
|
|
73
74
|
GroupOnboardingMessages = "group-onboardingMessages",
|
package/functions/index.js
CHANGED
|
@@ -72,6 +72,7 @@ var FbFunctionName;
|
|
|
72
72
|
FbFunctionName["GroupEdit"] = "group-edit";
|
|
73
73
|
FbFunctionName["GroupEditInstruments"] = "group-editInstruments";
|
|
74
74
|
FbFunctionName["GroupEditTemplate"] = "group-editTemplate";
|
|
75
|
+
FbFunctionName["GroupRemoveTemplate"] = "group-removeTemplate";
|
|
75
76
|
FbFunctionName["GroupGetById"] = "group-getById";
|
|
76
77
|
FbFunctionName["GroupGetByInvitationLink"] = "group-getByInvitationLink";
|
|
77
78
|
FbFunctionName["GroupOnboardingMessages"] = "group-onboardingMessages";
|
package/functions/regions.js
CHANGED
|
@@ -79,6 +79,7 @@ const regionByFunctions = {
|
|
|
79
79
|
[index_1.FbFunctionName.GroupEdit]: GCloudRegions.EuropeWest6,
|
|
80
80
|
[index_1.FbFunctionName.GroupEditInstruments]: GCloudRegions.EuropeWest6,
|
|
81
81
|
[index_1.FbFunctionName.GroupEditTemplate]: GCloudRegions.EuropeWest6,
|
|
82
|
+
[index_1.FbFunctionName.GroupRemoveTemplate]: GCloudRegions.UsCentral1,
|
|
82
83
|
[index_1.FbFunctionName.GroupGetById]: GCloudRegions.EuropeWest6,
|
|
83
84
|
[index_1.FbFunctionName.GroupGetByInvitationLink]: GCloudRegions.EuropeWest6,
|
|
84
85
|
[index_1.FbFunctionName.GroupOnboardingMessages]: GCloudRegions.EuropeWest6,
|
|
@@ -3,172 +3,268 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const lang_1 = require("../../lang");
|
|
4
4
|
const newMember = {
|
|
5
5
|
[lang_1.LanguagesTypes.ES]: {
|
|
6
|
-
title: '👋 {userName} se
|
|
6
|
+
title: '👋 {userName} se incorpora como nuevo miembro',
|
|
7
7
|
message: [
|
|
8
8
|
{
|
|
9
9
|
type: 'paragraph',
|
|
10
10
|
children: [
|
|
11
11
|
{
|
|
12
|
-
text: '{userDisplayName}
|
|
12
|
+
text: '{userDisplayName}',
|
|
13
|
+
bold: true,
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
text: ' se une a {groupDisplayName} como ',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
text: '{userInstrument}.',
|
|
20
|
+
bold: true,
|
|
13
21
|
},
|
|
14
22
|
],
|
|
15
23
|
},
|
|
24
|
+
{ children: [{ 'text': '' }], type: 'paragraph' },
|
|
16
25
|
{
|
|
17
26
|
type: 'paragraph',
|
|
18
|
-
children: [{ text: '¡Bienvenid@!
|
|
27
|
+
children: [{ text: '🎶 ¡Bienvenid@!' }],
|
|
19
28
|
},
|
|
20
29
|
],
|
|
21
30
|
},
|
|
22
31
|
[lang_1.LanguagesTypes.CA]: {
|
|
23
|
-
title: "👋 {userName} s'
|
|
32
|
+
title: "👋 {userName} s'incorpora com a nou membre",
|
|
24
33
|
message: [
|
|
25
34
|
{
|
|
26
35
|
type: 'paragraph',
|
|
27
36
|
children: [
|
|
28
37
|
{
|
|
29
|
-
text:
|
|
38
|
+
text: '{userDisplayName}',
|
|
39
|
+
bold: true,
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
text: " s'uneix a {groupDisplayName} com a ",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
text: '{userInstrument}.',
|
|
46
|
+
bold: true,
|
|
30
47
|
},
|
|
31
48
|
],
|
|
32
49
|
},
|
|
50
|
+
{ children: [{ 'text': '' }], type: 'paragraph' },
|
|
33
51
|
{
|
|
34
52
|
type: 'paragraph',
|
|
35
|
-
children: [{ text: 'Benvingut/uda!
|
|
53
|
+
children: [{ text: '🎶 Benvingut/uda!' }],
|
|
36
54
|
},
|
|
37
55
|
],
|
|
38
56
|
},
|
|
39
57
|
[lang_1.LanguagesTypes.EN]: {
|
|
40
|
-
title: '👋 {userName}
|
|
58
|
+
title: '👋 {userName} joins as a new member',
|
|
41
59
|
message: [
|
|
42
60
|
{
|
|
43
61
|
type: 'paragraph',
|
|
44
62
|
children: [
|
|
45
63
|
{
|
|
46
|
-
text: '{userDisplayName}
|
|
64
|
+
text: '{userDisplayName}',
|
|
65
|
+
bold: true,
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
text: ' joins {groupDisplayName} as ',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
text: '{userInstrument}.',
|
|
72
|
+
bold: true,
|
|
47
73
|
},
|
|
48
74
|
],
|
|
49
75
|
},
|
|
76
|
+
{ children: [{ 'text': '' }], type: 'paragraph' },
|
|
50
77
|
{
|
|
51
78
|
type: 'paragraph',
|
|
52
|
-
children: [{ text: 'Welcome!
|
|
79
|
+
children: [{ text: '🎶 Welcome!' }],
|
|
53
80
|
},
|
|
54
81
|
],
|
|
55
82
|
},
|
|
56
83
|
[lang_1.LanguagesTypes.DE]: {
|
|
57
|
-
title: '👋 {userName}
|
|
84
|
+
title: '👋 {userName} tritt als neues Mitglied bei',
|
|
58
85
|
message: [
|
|
59
86
|
{
|
|
60
87
|
type: 'paragraph',
|
|
61
88
|
children: [
|
|
62
89
|
{
|
|
63
|
-
text: '{userDisplayName}
|
|
90
|
+
text: '{userDisplayName}',
|
|
91
|
+
bold: true,
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
text: ' tritt {groupDisplayName} als ',
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
text: '{userInstrument}',
|
|
98
|
+
bold: true,
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
text: ' bei.',
|
|
64
102
|
},
|
|
65
103
|
],
|
|
66
104
|
},
|
|
105
|
+
{ children: [{ 'text': '' }], type: 'paragraph' },
|
|
67
106
|
{
|
|
68
107
|
type: 'paragraph',
|
|
69
|
-
children: [{ text: 'Willkommen!
|
|
108
|
+
children: [{ text: '🎶 Willkommen!' }],
|
|
70
109
|
},
|
|
71
110
|
],
|
|
72
111
|
},
|
|
73
112
|
[lang_1.LanguagesTypes.PT]: {
|
|
74
|
-
title: '👋 {userName}
|
|
113
|
+
title: '👋 {userName} incorpora-se como novo membro',
|
|
75
114
|
message: [
|
|
76
115
|
{
|
|
77
116
|
type: 'paragraph',
|
|
78
117
|
children: [
|
|
79
118
|
{
|
|
80
|
-
text: '{userDisplayName}
|
|
119
|
+
text: '{userDisplayName}',
|
|
120
|
+
bold: true,
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
text: ' junta-se a {groupDisplayName} como ',
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
text: '{userInstrument}.',
|
|
127
|
+
bold: true,
|
|
81
128
|
},
|
|
82
129
|
],
|
|
83
130
|
},
|
|
131
|
+
{ children: [{ 'text': '' }], type: 'paragraph' },
|
|
84
132
|
{
|
|
85
133
|
type: 'paragraph',
|
|
86
|
-
children: [{ text: 'Bem-vind@!
|
|
134
|
+
children: [{ text: '🎶 Bem-vind@!' }],
|
|
87
135
|
},
|
|
88
136
|
],
|
|
89
137
|
},
|
|
90
138
|
[lang_1.LanguagesTypes.GL]: {
|
|
91
|
-
title: '👋 {userName}
|
|
139
|
+
title: '👋 {userName} incorpórase como novo membro',
|
|
92
140
|
message: [
|
|
93
141
|
{
|
|
94
142
|
type: 'paragraph',
|
|
95
143
|
children: [
|
|
96
144
|
{
|
|
97
|
-
text: '{userDisplayName}
|
|
145
|
+
text: '{userDisplayName}',
|
|
146
|
+
bold: true,
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
text: ' únese a {groupDisplayName} como ',
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
text: '{userInstrument}.',
|
|
153
|
+
bold: true,
|
|
98
154
|
},
|
|
99
155
|
],
|
|
100
156
|
},
|
|
157
|
+
{ children: [{ 'text': '' }], type: 'paragraph' },
|
|
101
158
|
{
|
|
102
159
|
type: 'paragraph',
|
|
103
|
-
children: [{ text: 'Benvid@!
|
|
160
|
+
children: [{ text: '🎶 Benvid@!' }],
|
|
104
161
|
},
|
|
105
162
|
],
|
|
106
163
|
},
|
|
107
164
|
[lang_1.LanguagesTypes.EU]: {
|
|
108
|
-
title: '👋 {userName}
|
|
165
|
+
title: '👋 {userName} kide berri gisa sartzen da',
|
|
109
166
|
message: [
|
|
110
167
|
{
|
|
111
168
|
type: 'paragraph',
|
|
112
169
|
children: [
|
|
113
170
|
{
|
|
114
|
-
text: '{userDisplayName}
|
|
171
|
+
text: '{userDisplayName}',
|
|
172
|
+
bold: true,
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
text: ' {groupDisplayName} taldean sartzen da ',
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
text: '{userInstrument}',
|
|
179
|
+
bold: true,
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
text: ' gisa.',
|
|
115
183
|
},
|
|
116
184
|
],
|
|
117
185
|
},
|
|
186
|
+
{ children: [{ 'text': '' }], type: 'paragraph' },
|
|
118
187
|
{
|
|
119
188
|
type: 'paragraph',
|
|
120
|
-
children: [{ text: 'Ongietorria!
|
|
189
|
+
children: [{ text: '🎶 Ongietorria!' }],
|
|
121
190
|
},
|
|
122
191
|
],
|
|
123
192
|
},
|
|
124
193
|
[lang_1.LanguagesTypes.FR]: {
|
|
125
|
-
title: '👋 {userName}
|
|
194
|
+
title: '👋 {userName} se joint en tant que nouveau membre',
|
|
126
195
|
message: [
|
|
127
196
|
{
|
|
128
197
|
type: 'paragraph',
|
|
129
198
|
children: [
|
|
130
199
|
{
|
|
131
|
-
text: '{userDisplayName}
|
|
200
|
+
text: '{userDisplayName}',
|
|
201
|
+
bold: true,
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
text: ' rejoint {groupDisplayName} en tant que ',
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
text: '{userInstrument}.',
|
|
208
|
+
bold: true,
|
|
132
209
|
},
|
|
133
210
|
],
|
|
134
211
|
},
|
|
212
|
+
{ children: [{ 'text': '' }], type: 'paragraph' },
|
|
135
213
|
{
|
|
136
214
|
type: 'paragraph',
|
|
137
|
-
children: [{ text: 'Bienvenue !
|
|
215
|
+
children: [{ text: '🎶 Bienvenue !' }],
|
|
138
216
|
},
|
|
139
217
|
],
|
|
140
218
|
},
|
|
141
219
|
[lang_1.LanguagesTypes.IT]: {
|
|
142
|
-
title: '👋 {userName} si
|
|
220
|
+
title: '👋 {userName} si unisce come nuovo membro',
|
|
143
221
|
message: [
|
|
144
222
|
{
|
|
145
223
|
type: 'paragraph',
|
|
146
224
|
children: [
|
|
147
225
|
{
|
|
148
|
-
text: '{userDisplayName}
|
|
226
|
+
text: '{userDisplayName}',
|
|
227
|
+
bold: true,
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
text: ' si unisce a {groupDisplayName} come ',
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
text: '{userInstrument}.',
|
|
234
|
+
bold: true,
|
|
149
235
|
},
|
|
150
236
|
],
|
|
151
237
|
},
|
|
238
|
+
{ children: [{ 'text': '' }], type: 'paragraph' },
|
|
152
239
|
{
|
|
153
240
|
type: 'paragraph',
|
|
154
|
-
children: [{ text: 'Benvenut@!
|
|
241
|
+
children: [{ text: '🎶 Benvenut@!' }],
|
|
155
242
|
},
|
|
156
243
|
],
|
|
157
244
|
},
|
|
158
245
|
[lang_1.LanguagesTypes.NL]: {
|
|
159
|
-
title: '👋 {userName}
|
|
246
|
+
title: '👋 {userName} voegt zich toe als nieuw lid',
|
|
160
247
|
message: [
|
|
161
248
|
{
|
|
162
249
|
type: 'paragraph',
|
|
163
250
|
children: [
|
|
164
251
|
{
|
|
165
|
-
text: '{userDisplayName}
|
|
252
|
+
text: '{userDisplayName}',
|
|
253
|
+
bold: true,
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
text: ' voegt zich toe aan {groupDisplayName} als ',
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
text: '{userInstrument}.',
|
|
260
|
+
bold: true,
|
|
166
261
|
},
|
|
167
262
|
],
|
|
168
263
|
},
|
|
264
|
+
{ children: [{ 'text': '' }], type: 'paragraph' },
|
|
169
265
|
{
|
|
170
266
|
type: 'paragraph',
|
|
171
|
-
children: [{ text: 'Welkom!
|
|
267
|
+
children: [{ text: '🎶 Welkom!' }],
|
|
172
268
|
},
|
|
173
269
|
],
|
|
174
270
|
},
|
|
@@ -175,6 +175,10 @@ exports.userNotificationSettings = {
|
|
|
175
175
|
types_1.NotificationActions.PerformanceAssistanceDecline,
|
|
176
176
|
types_1.NotificationActions.PracticeAssistanceDecline,
|
|
177
177
|
],
|
|
178
|
+
[types_2.UserNotificationSettings.NewMembers]: [
|
|
179
|
+
types_1.NotificationActions.GroupPlayersJoin,
|
|
180
|
+
types_1.NotificationActions.GroupPlayersJoinPlayers,
|
|
181
|
+
],
|
|
178
182
|
// [UserNotificationSettings.InterestConfirmed]: [
|
|
179
183
|
// NotificationActions.PerformanceInterestConfirm,
|
|
180
184
|
// NotificationActions.PracticeInterestConfirm,
|
package/models/Evento/index.js
CHANGED
|
@@ -75,12 +75,18 @@ class Evento extends promoter_1.default {
|
|
|
75
75
|
return this.data.activeInvitationLink || false;
|
|
76
76
|
}
|
|
77
77
|
get invitationLink() {
|
|
78
|
-
|
|
78
|
+
const link = `https://glissandoo.com/joinevent/${this.id}`;
|
|
79
|
+
if (lang_1.LanguagesTypes.ES === this.lang) {
|
|
80
|
+
return link;
|
|
81
|
+
}
|
|
82
|
+
return `${link}?lang=${this.lang}`;
|
|
79
83
|
}
|
|
80
84
|
get shortDynamicLink() {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
85
|
+
const link = `https://glissandoo.com/event/${this.id}`;
|
|
86
|
+
if (lang_1.LanguagesTypes.ES === this.lang) {
|
|
87
|
+
return link;
|
|
88
|
+
}
|
|
89
|
+
return `${link}?lang=${this.lang}`;
|
|
84
90
|
}
|
|
85
91
|
get deletedAt() {
|
|
86
92
|
return this.data.deletedAt;
|
package/models/Group/index.js
CHANGED
|
@@ -51,7 +51,11 @@ class Group extends basic_1.default {
|
|
|
51
51
|
return this.data.activeInvitationLink || false;
|
|
52
52
|
}
|
|
53
53
|
get invitationLink() {
|
|
54
|
-
|
|
54
|
+
const link = `https://glissandoo.com/joingroup/${this.id}`;
|
|
55
|
+
if (lang_1.LanguagesTypes.ES === this.lang) {
|
|
56
|
+
return link;
|
|
57
|
+
}
|
|
58
|
+
return `${link}?lang=${this.lang}`;
|
|
55
59
|
}
|
|
56
60
|
get invitationEmails() {
|
|
57
61
|
return this.data.invitationEmails || [];
|
package/models/User/types.d.ts
CHANGED
|
@@ -25,7 +25,8 @@ export declare enum UserDashboardConfig {
|
|
|
25
25
|
}
|
|
26
26
|
export declare enum UserNotificationSettings {
|
|
27
27
|
AttendanceConfirmed = "enabled_attendance_confirmed",
|
|
28
|
-
AttendanceDeclined = "enabled_attendance_declined"
|
|
28
|
+
AttendanceDeclined = "enabled_attendance_declined",
|
|
29
|
+
NewMembers = "enabled_new_members"
|
|
29
30
|
}
|
|
30
31
|
export declare enum UserEmailSettings {
|
|
31
32
|
ReminderBiweeklyEvents = "enabled_reminder_biweekly_events",
|
package/models/User/types.js
CHANGED
|
@@ -30,8 +30,7 @@ var UserNotificationSettings;
|
|
|
30
30
|
(function (UserNotificationSettings) {
|
|
31
31
|
UserNotificationSettings["AttendanceConfirmed"] = "enabled_attendance_confirmed";
|
|
32
32
|
UserNotificationSettings["AttendanceDeclined"] = "enabled_attendance_declined";
|
|
33
|
-
|
|
34
|
-
// InterestLost = 'enabled_interest_lost',
|
|
33
|
+
UserNotificationSettings["NewMembers"] = "enabled_new_members";
|
|
35
34
|
})(UserNotificationSettings = exports.UserNotificationSettings || (exports.UserNotificationSettings = {}));
|
|
36
35
|
var UserEmailSettings;
|
|
37
36
|
(function (UserEmailSettings) {
|