@glissandoo/lib 1.104.3 → 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/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/models/Evento/index.js +10 -4
- package/models/Group/index.js +5 -1
- package/package.json +1 -1
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,
|
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 || [];
|