@glissandoo/lib 1.12.0 → 1.13.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.
- package/helpers/dlinks.d.ts +7 -0
- package/helpers/dlinks.js +11 -0
- package/helpers/errors.d.ts +48 -0
- package/helpers/errors.js +52 -0
- package/models/Group/index.d.ts +1 -0
- package/models/Group/index.js +3 -0
- package/models/Group/types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DLinkActions = void 0;
|
|
4
|
+
var DLinkActions;
|
|
5
|
+
(function (DLinkActions) {
|
|
6
|
+
DLinkActions["JoinGroup"] = "joingroup";
|
|
7
|
+
DLinkActions["JoinEvent"] = "joinevent";
|
|
8
|
+
DLinkActions["Group"] = "group";
|
|
9
|
+
DLinkActions["Event"] = "event";
|
|
10
|
+
DLinkActions["RollCall"] = "rollcall";
|
|
11
|
+
})(DLinkActions = exports.DLinkActions || (exports.DLinkActions = {}));
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export declare enum HttpsErrorMessages {
|
|
2
|
+
InvalidGroup = "error.group.noValid",
|
|
3
|
+
InvalidGroupRemoveAdmin = "error.group.oneAdmin",
|
|
4
|
+
InvalidGroupPlayer = "error.group.noPlayer",
|
|
5
|
+
InvalidGroupPartnership = "error.group.partnership",
|
|
6
|
+
InvalidAdminGroup = "error.group.noAdmin",
|
|
7
|
+
InvalidAdminAction = "error.federation.admin",
|
|
8
|
+
InvalidLinkInvitation = "groupPlayer.join.linkNoValid",
|
|
9
|
+
InvalidJoinPlayer = "groupPlayer.join.isPlayer",
|
|
10
|
+
InvalidGroupRepertory = "error.groupRepertory.noValid",
|
|
11
|
+
InvalidEvent = "error.event.noValid",
|
|
12
|
+
InvalidEventPlayer = "error.event.noPlayer",
|
|
13
|
+
InvalidMaxNumberEvents = "error.event.maxEventsPublish",
|
|
14
|
+
InvalidMaxCapacityEvent = "error.event.capacityCompleted",
|
|
15
|
+
InvalidScoreNotByInstrumentsEventRepertory = "error.eventRepertory.scoreNotByInstruments",
|
|
16
|
+
InvalidUser = "error.user.noValid",
|
|
17
|
+
InvalidSuperAdmin = "error.superadmin.noValid",
|
|
18
|
+
InvalidData = "error.data.noValid",
|
|
19
|
+
InvalidCommunication = "error.communication.noValid",
|
|
20
|
+
InvalidPartner = "error.partner.noValid",
|
|
21
|
+
InvalidPartnership = "error.partnership.noValid",
|
|
22
|
+
InvalidPartnershipPlan = "error.partnershipPlan.noValid",
|
|
23
|
+
InvalidAdminPartnership = "error.partnership.noAdmin",
|
|
24
|
+
InvalidParterSubscription = "error.partnerSubscription.noValid",
|
|
25
|
+
InvalidStatusParterSubscription = "error.partnerSubscription.noActive",
|
|
26
|
+
InvalidAdminFederation = "error.federation.noAdmin",
|
|
27
|
+
InvalidFederation = "error.federation.noActive",
|
|
28
|
+
InvalidInstrument = "error.instrument.noValid",
|
|
29
|
+
AdminAlreadyExists = "error.admin.alreadyExists",
|
|
30
|
+
AdminDoesNotExists = "error.admin.notExists",
|
|
31
|
+
FederationErrorMailerSend = "error.federation.mailNotSent",
|
|
32
|
+
PlanInUse = "error.plans.inUse",
|
|
33
|
+
NoEventsToRollcall = "error.event.noEventsToRollcall",
|
|
34
|
+
PartnerNotFound = "error.partner.notFound",
|
|
35
|
+
PartnerNotVerified = "error.partner.notVerified",
|
|
36
|
+
PartnerMandateInvalid = "error.partner.noMandate",
|
|
37
|
+
PartnerAlreadyExists = "error.partner.alreadyExists",
|
|
38
|
+
PartnerBICInvalid = "error.partner.noValidBIC",
|
|
39
|
+
PartnershipPlanAlreadyActive = "error.partnershipPlan.alreadyActive",
|
|
40
|
+
UserPartnershipInUse = "error.user.partnershipInUse",
|
|
41
|
+
UserFederationInUse = "error.user.federationInUse",
|
|
42
|
+
LemonwayError = "error.lemonway.default",
|
|
43
|
+
LemonwayInvalidMandate = "error.lemonway.mandate",
|
|
44
|
+
Unauthorized = "error.auth.noValid",
|
|
45
|
+
InvalidMethod = "error.method.noValid",
|
|
46
|
+
NoFile = "error.file.noExists",
|
|
47
|
+
Default = "error.default"
|
|
48
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HttpsErrorMessages = void 0;
|
|
4
|
+
var HttpsErrorMessages;
|
|
5
|
+
(function (HttpsErrorMessages) {
|
|
6
|
+
HttpsErrorMessages["InvalidGroup"] = "error.group.noValid";
|
|
7
|
+
HttpsErrorMessages["InvalidGroupRemoveAdmin"] = "error.group.oneAdmin";
|
|
8
|
+
HttpsErrorMessages["InvalidGroupPlayer"] = "error.group.noPlayer";
|
|
9
|
+
HttpsErrorMessages["InvalidGroupPartnership"] = "error.group.partnership";
|
|
10
|
+
HttpsErrorMessages["InvalidAdminGroup"] = "error.group.noAdmin";
|
|
11
|
+
HttpsErrorMessages["InvalidAdminAction"] = "error.federation.admin";
|
|
12
|
+
HttpsErrorMessages["InvalidLinkInvitation"] = "groupPlayer.join.linkNoValid";
|
|
13
|
+
HttpsErrorMessages["InvalidJoinPlayer"] = "groupPlayer.join.isPlayer";
|
|
14
|
+
HttpsErrorMessages["InvalidGroupRepertory"] = "error.groupRepertory.noValid";
|
|
15
|
+
HttpsErrorMessages["InvalidEvent"] = "error.event.noValid";
|
|
16
|
+
HttpsErrorMessages["InvalidEventPlayer"] = "error.event.noPlayer";
|
|
17
|
+
HttpsErrorMessages["InvalidMaxNumberEvents"] = "error.event.maxEventsPublish";
|
|
18
|
+
HttpsErrorMessages["InvalidMaxCapacityEvent"] = "error.event.capacityCompleted";
|
|
19
|
+
HttpsErrorMessages["InvalidScoreNotByInstrumentsEventRepertory"] = "error.eventRepertory.scoreNotByInstruments";
|
|
20
|
+
HttpsErrorMessages["InvalidUser"] = "error.user.noValid";
|
|
21
|
+
HttpsErrorMessages["InvalidSuperAdmin"] = "error.superadmin.noValid";
|
|
22
|
+
HttpsErrorMessages["InvalidData"] = "error.data.noValid";
|
|
23
|
+
HttpsErrorMessages["InvalidCommunication"] = "error.communication.noValid";
|
|
24
|
+
HttpsErrorMessages["InvalidPartner"] = "error.partner.noValid";
|
|
25
|
+
HttpsErrorMessages["InvalidPartnership"] = "error.partnership.noValid";
|
|
26
|
+
HttpsErrorMessages["InvalidPartnershipPlan"] = "error.partnershipPlan.noValid";
|
|
27
|
+
HttpsErrorMessages["InvalidAdminPartnership"] = "error.partnership.noAdmin";
|
|
28
|
+
HttpsErrorMessages["InvalidParterSubscription"] = "error.partnerSubscription.noValid";
|
|
29
|
+
HttpsErrorMessages["InvalidStatusParterSubscription"] = "error.partnerSubscription.noActive";
|
|
30
|
+
HttpsErrorMessages["InvalidAdminFederation"] = "error.federation.noAdmin";
|
|
31
|
+
HttpsErrorMessages["InvalidFederation"] = "error.federation.noActive";
|
|
32
|
+
HttpsErrorMessages["InvalidInstrument"] = "error.instrument.noValid";
|
|
33
|
+
HttpsErrorMessages["AdminAlreadyExists"] = "error.admin.alreadyExists";
|
|
34
|
+
HttpsErrorMessages["AdminDoesNotExists"] = "error.admin.notExists";
|
|
35
|
+
HttpsErrorMessages["FederationErrorMailerSend"] = "error.federation.mailNotSent";
|
|
36
|
+
HttpsErrorMessages["PlanInUse"] = "error.plans.inUse";
|
|
37
|
+
HttpsErrorMessages["NoEventsToRollcall"] = "error.event.noEventsToRollcall";
|
|
38
|
+
HttpsErrorMessages["PartnerNotFound"] = "error.partner.notFound";
|
|
39
|
+
HttpsErrorMessages["PartnerNotVerified"] = "error.partner.notVerified";
|
|
40
|
+
HttpsErrorMessages["PartnerMandateInvalid"] = "error.partner.noMandate";
|
|
41
|
+
HttpsErrorMessages["PartnerAlreadyExists"] = "error.partner.alreadyExists";
|
|
42
|
+
HttpsErrorMessages["PartnerBICInvalid"] = "error.partner.noValidBIC";
|
|
43
|
+
HttpsErrorMessages["PartnershipPlanAlreadyActive"] = "error.partnershipPlan.alreadyActive";
|
|
44
|
+
HttpsErrorMessages["UserPartnershipInUse"] = "error.user.partnershipInUse";
|
|
45
|
+
HttpsErrorMessages["UserFederationInUse"] = "error.user.federationInUse";
|
|
46
|
+
HttpsErrorMessages["LemonwayError"] = "error.lemonway.default";
|
|
47
|
+
HttpsErrorMessages["LemonwayInvalidMandate"] = "error.lemonway.mandate";
|
|
48
|
+
HttpsErrorMessages["Unauthorized"] = "error.auth.noValid";
|
|
49
|
+
HttpsErrorMessages["InvalidMethod"] = "error.method.noValid";
|
|
50
|
+
HttpsErrorMessages["NoFile"] = "error.file.noExists";
|
|
51
|
+
HttpsErrorMessages["Default"] = "error.default";
|
|
52
|
+
})(HttpsErrorMessages = exports.HttpsErrorMessages || (exports.HttpsErrorMessages = {}));
|
package/models/Group/index.d.ts
CHANGED
package/models/Group/index.js
CHANGED
|
@@ -152,5 +152,8 @@ class Group extends basic_1.default {
|
|
|
152
152
|
get stageTemplatesList() {
|
|
153
153
|
return Object.keys(this.stageTemplates).map((templateId) => Object.assign({}, this.stageTemplates[templateId], { id: templateId }));
|
|
154
154
|
}
|
|
155
|
+
get firstAnswerAt() {
|
|
156
|
+
return this.data.firstAnswerAt || null;
|
|
157
|
+
}
|
|
155
158
|
}
|
|
156
159
|
exports.default = Group;
|
package/models/Group/types.d.ts
CHANGED
|
@@ -89,6 +89,7 @@ export interface GroupData extends GroupBasicData {
|
|
|
89
89
|
country: string;
|
|
90
90
|
stageTemplates: Record<string, StageTemplate>;
|
|
91
91
|
metadata: Record<string, string>;
|
|
92
|
+
firstAnswerAt: Timestamp | null;
|
|
92
93
|
readonly owner: DocumentReference;
|
|
93
94
|
readonly createdAt: Timestamp;
|
|
94
95
|
}
|