@glissandoo/lib 1.102.11 → 1.102.13
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/partnershipGroup.d.ts +2 -1
- package/functions/partnershipPartner.d.ts +2 -2
- package/functions/partnershipPayment.d.ts +1 -2
- package/functions/partnershipPlan.d.ts +1 -2
- package/functions/partnershipSubscription.d.ts +3 -6
- package/helpers/appScenes.d.ts +1 -0
- package/helpers/appScenes.js +1 -0
- package/helpers/musicStyles/index.d.ts +2 -1
- package/helpers/musicStyles/index.js +8 -4
- package/helpers/musicStyles/orders.js +13 -0
- package/lang/ca.json +1 -0
- package/lang/de.json +1 -0
- package/lang/en.json +1 -0
- package/lang/es.json +1 -0
- package/lang/eu.json +1 -0
- package/lang/fr.json +1 -0
- package/lang/gl.json +1 -0
- package/lang/it.json +1 -0
- package/lang/nl.json +3 -2
- package/lang/pt.json +1 -0
- package/models/Evento/index.d.ts +1 -0
- package/models/Evento/index.js +3 -0
- package/models/Evento/types.d.ts +1 -0
- package/models/Partnership/Partner/index.d.ts +6 -1
- package/models/Partnership/Partner/index.js +11 -2
- package/models/Partnership/Partner/types.d.ts +3 -7
- package/models/Partnership/Payment/index.d.ts +2 -3
- package/models/Partnership/Payment/index.js +1 -1
- package/models/Partnership/Payment/types.d.ts +6 -2
- package/models/Partnership/Payment/types.js +7 -1
- package/models/Partnership/Plan/index.d.ts +2 -2
- package/models/Partnership/Plan/index.js +11 -4
- package/models/Partnership/Plan/types.d.ts +4 -8
- package/models/Partnership/Plan/types.js +0 -7
- package/models/Partnership/Subscription/index.d.ts +2 -1
- package/models/Partnership/Subscription/index.js +4 -1
- package/models/Partnership/Subscription/types.d.ts +5 -1
- package/package.json +13 -13
|
@@ -2,8 +2,9 @@ export declare namespace PartnershipGroupFbFunctionsTypes {
|
|
|
2
2
|
interface AddParams {
|
|
3
3
|
partnershipId: string;
|
|
4
4
|
groupId: string;
|
|
5
|
+
userIds: string[];
|
|
5
6
|
}
|
|
6
|
-
type AddResult =
|
|
7
|
+
type AddResult = Record<string, string>;
|
|
7
8
|
interface RemoveParams {
|
|
8
9
|
partnershipId: string;
|
|
9
10
|
groupId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { SetOptional } from 'type-fest';
|
|
1
2
|
import { BasicAddressData, CreatedOn } from '../helpers/types';
|
|
2
3
|
import { PartnershipPartnerSepaMandate } from '../models/Partnership/Partner/types';
|
|
3
|
-
import { SetOptional } from 'type-fest';
|
|
4
4
|
export declare namespace PartnershipPartnerFbFunctionsTypes {
|
|
5
5
|
interface BaseCreateData {
|
|
6
6
|
NIF: string | null;
|
|
@@ -10,7 +10,7 @@ export declare namespace PartnershipPartnerFbFunctionsTypes {
|
|
|
10
10
|
phone: string | null;
|
|
11
11
|
birthdate: number | null;
|
|
12
12
|
address: BasicAddressData | null;
|
|
13
|
-
userId: string;
|
|
13
|
+
userId: string | null;
|
|
14
14
|
}
|
|
15
15
|
export interface CreateData extends BaseCreateData {
|
|
16
16
|
sepaMandate: SetOptional<PartnershipPartnerSepaMandate, 'mandateId'> | null;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { PaymentStatus } from '../models/Partnership/Payment/types';
|
|
2
|
-
import { PaymentMethod } from '../models/Partnership/Plan/types';
|
|
1
|
+
import { PaymentMethod, PaymentStatus } from '../models/Partnership/Payment/types';
|
|
3
2
|
export declare namespace PartnershipPaymentFbFunctionsTypes {
|
|
4
3
|
interface CreateOneTimeData {
|
|
5
4
|
title: string;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PlanScheduleType } from '../models/Partnership/Plan/types';
|
|
2
2
|
export declare namespace PartnershipPlanFbFunctionsTypes {
|
|
3
3
|
interface CreateData {
|
|
4
4
|
name: string;
|
|
5
5
|
description: string;
|
|
6
6
|
price: number;
|
|
7
7
|
schedule: PlanScheduleType;
|
|
8
|
-
paymentMethod: PaymentMethod;
|
|
9
8
|
}
|
|
10
9
|
interface CreateParams extends CreateData {
|
|
11
10
|
partnershipId: string;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
export declare namespace PartnershipSubscriptionFbFunctionsTypes {
|
|
2
|
-
interface
|
|
2
|
+
interface CreateParams {
|
|
3
3
|
planId: string;
|
|
4
|
-
partnerId: string;
|
|
5
|
-
endDate: number | null;
|
|
6
|
-
}
|
|
7
|
-
interface CreateParams extends CreateData {
|
|
8
4
|
partnershipId: string;
|
|
9
|
-
|
|
5
|
+
partnerIds: string[];
|
|
6
|
+
endDate: number | null;
|
|
10
7
|
}
|
|
11
8
|
type CreateResult = void;
|
|
12
9
|
interface EditParams {
|
package/helpers/appScenes.d.ts
CHANGED
package/helpers/appScenes.js
CHANGED
|
@@ -96,6 +96,7 @@ var AppScenes;
|
|
|
96
96
|
AppScenes["NewGroup"] = "NewGroup";
|
|
97
97
|
AppScenes["NewGroupInfo"] = "NewGroupInfo";
|
|
98
98
|
AppScenes["NewGroupMusicStyle"] = "NewGroupMusicStyle";
|
|
99
|
+
AppScenes["NewGroupMusicMember"] = "NewGroupMusicMember";
|
|
99
100
|
AppScenes["Drawer"] = "Drawer";
|
|
100
101
|
AppScenes["EventStage"] = "EventStage";
|
|
101
102
|
})(AppScenes = exports.AppScenes || (exports.AppScenes = {}));
|
|
@@ -12,7 +12,8 @@ export declare enum MusicStyleId {
|
|
|
12
12
|
BandaCornetasYTambores = "banda-cornetas-y-tambores",
|
|
13
13
|
Charanga = "charanga",
|
|
14
14
|
Choir = "coro",
|
|
15
|
-
Batucada = "batucada"
|
|
15
|
+
Batucada = "batucada",
|
|
16
|
+
AgrupacionMusical = "agrupacion-musical"
|
|
16
17
|
}
|
|
17
18
|
export declare const musicStylesIcon: Record<MusicStyleId, DefaultInstrumentId>;
|
|
18
19
|
export declare const MusicStylesCover: Record<MusicStyleId, string>;
|
|
@@ -20,6 +20,7 @@ var MusicStyleId;
|
|
|
20
20
|
MusicStyleId["Charanga"] = "charanga";
|
|
21
21
|
MusicStyleId["Choir"] = "coro";
|
|
22
22
|
MusicStyleId["Batucada"] = "batucada";
|
|
23
|
+
MusicStyleId["AgrupacionMusical"] = "agrupacion-musical";
|
|
23
24
|
})(MusicStyleId = exports.MusicStyleId || (exports.MusicStyleId = {}));
|
|
24
25
|
exports.musicStylesIcon = {
|
|
25
26
|
[MusicStyleId.Orchestra]: instruments_1.DefaultInstrumentId.Violin,
|
|
@@ -30,6 +31,7 @@ exports.musicStylesIcon = {
|
|
|
30
31
|
[MusicStyleId.Colla]: instruments_1.DefaultInstrumentId.Dulzaina,
|
|
31
32
|
[MusicStyleId.TxistularisBand]: instruments_1.DefaultInstrumentId.Txistu,
|
|
32
33
|
[MusicStyleId.BandaCornetasYTambores]: instruments_1.DefaultInstrumentId.Cornet,
|
|
34
|
+
[MusicStyleId.AgrupacionMusical]: instruments_1.DefaultInstrumentId.Trumpet,
|
|
33
35
|
[MusicStyleId.Charanga]: instruments_1.DefaultInstrumentId.BassDrum,
|
|
34
36
|
[MusicStyleId.Choir]: instruments_1.DefaultInstrumentId.Tenor,
|
|
35
37
|
[MusicStyleId.Batucada]: instruments_1.DefaultInstrumentId.Repique,
|
|
@@ -43,6 +45,7 @@ exports.MusicStylesCover = {
|
|
|
43
45
|
[MusicStyleId.Colla]: 'colla',
|
|
44
46
|
[MusicStyleId.TxistularisBand]: 'txistularis',
|
|
45
47
|
[MusicStyleId.BandaCornetasYTambores]: 'bandaDeCornetaYTambores',
|
|
48
|
+
[MusicStyleId.AgrupacionMusical]: 'agrupacionMusical',
|
|
46
49
|
[MusicStyleId.Charanga]: 'charanga',
|
|
47
50
|
[MusicStyleId.Choir]: 'choir',
|
|
48
51
|
[MusicStyleId.Batucada]: 'batucada',
|
|
@@ -97,14 +100,15 @@ exports.musicStyleByCountry = {
|
|
|
97
100
|
[lang_1.LanguagesTypes.ES]: [
|
|
98
101
|
MusicStyleId.Orchestra,
|
|
99
102
|
MusicStyleId.Band,
|
|
103
|
+
MusicStyleId.Choir,
|
|
104
|
+
MusicStyleId.BandaCornetasYTambores,
|
|
105
|
+
MusicStyleId.AgrupacionMusical,
|
|
100
106
|
MusicStyleId.BigBand,
|
|
101
107
|
MusicStyleId.JazzBand,
|
|
102
|
-
MusicStyleId.TxistularisBand,
|
|
103
108
|
MusicStyleId.Charanga,
|
|
104
|
-
MusicStyleId.Colla,
|
|
105
|
-
MusicStyleId.BandaCornetasYTambores,
|
|
106
|
-
MusicStyleId.Choir,
|
|
107
109
|
MusicStyleId.Batucada,
|
|
110
|
+
MusicStyleId.Colla,
|
|
111
|
+
MusicStyleId.TxistularisBand,
|
|
108
112
|
],
|
|
109
113
|
[lang_1.LanguagesTypes.EU]: [
|
|
110
114
|
MusicStyleId.Choir,
|
|
@@ -181,6 +181,19 @@ exports.orders = {
|
|
|
181
181
|
instruments_1.DefaultInstrumentId.Agogo,
|
|
182
182
|
instruments_1.DefaultInstrumentId.Chocalho,
|
|
183
183
|
],
|
|
184
|
+
[index_1.MusicStyleId.AgrupacionMusical]: [
|
|
185
|
+
instruments_1.DefaultInstrumentId.MusicConductor,
|
|
186
|
+
instruments_1.DefaultInstrumentId.FlugeHorn,
|
|
187
|
+
instruments_1.DefaultInstrumentId.Trumpet,
|
|
188
|
+
instruments_1.DefaultInstrumentId.Cornet,
|
|
189
|
+
instruments_1.DefaultInstrumentId.Trombone,
|
|
190
|
+
instruments_1.DefaultInstrumentId.TromboneLow,
|
|
191
|
+
instruments_1.DefaultInstrumentId.Euphonium,
|
|
192
|
+
instruments_1.DefaultInstrumentId.Tuba,
|
|
193
|
+
instruments_1.DefaultInstrumentId.Percussion,
|
|
194
|
+
instruments_1.DefaultInstrumentId.SnareDrum,
|
|
195
|
+
instruments_1.DefaultInstrumentId.BassDrum,
|
|
196
|
+
],
|
|
184
197
|
};
|
|
185
198
|
const getInstrumentsOrderByMusicStyle = (musicStyle) => {
|
|
186
199
|
return musicStyle in exports.orders ? exports.orders[musicStyle] : Object.values(instruments_1.DefaultInstrumentId);
|
package/lang/ca.json
CHANGED
|
@@ -142,6 +142,7 @@
|
|
|
142
142
|
"musicStyles.marching-band": "Marching band",
|
|
143
143
|
"musicStyles.orquesta-sinfonica": "Orquestra simfònica",
|
|
144
144
|
"musicStyles.txistularis": "Banda de txistularis",
|
|
145
|
+
"musicStyles.agrupacion-musical": "Agrupació musical",
|
|
145
146
|
"offer.applicant.add.text": "{string:user.0.displayName} ha sol·licitat la vacant {string:extra.vacancyName} a {string:group.0.displayName}",
|
|
146
147
|
"offer.applicant.add.title": "Nova sol·licitud de vacant",
|
|
147
148
|
"offer.select.applicant.text": "Enhorabona! La teua sol·licitud per a la vacant {string:extra.vacancyName} a {string:group.0.displayName} ha sigut acceptada. Uneix-te al teu nou grup i comença a gaudir de la música amb els teus nous companys",
|
package/lang/de.json
CHANGED
|
@@ -142,6 +142,7 @@
|
|
|
142
142
|
"musicStyles.marching-band": "Marching Band",
|
|
143
143
|
"musicStyles.orquesta-sinfonica": "Sinfonisches Blasorchester",
|
|
144
144
|
"musicStyles.txistularis": "Txistularisband",
|
|
145
|
+
"musicStyles.agrupacion-musical": "Musikgruppe",
|
|
145
146
|
"offer.applicant.add.text": "{string:user.0.displayName} hat sich für die Stelle {string:extra.vacancyName} bei {string:group.0.displayName} beworben",
|
|
146
147
|
"offer.applicant.add.title": "Neue Stellenbewerbung",
|
|
147
148
|
"offer.select.applicant.text": "Herzlichen Glückwunsch! Deine Bewerbung für die Stelle {string:extra.vacancyName} bei {string:group.0.displayName} wurde angenommen. Schließe dich deiner neuen Gruppe an und genieße die Musik mit deinen neuen Kollegen",
|
package/lang/en.json
CHANGED
|
@@ -142,6 +142,7 @@
|
|
|
142
142
|
"musicStyles.marching-band": "Marching band",
|
|
143
143
|
"musicStyles.orquesta-sinfonica": "Symphony orchestra",
|
|
144
144
|
"musicStyles.txistularis": "Txistus band",
|
|
145
|
+
"musicStyles.agrupacion-musical": "Musical group",
|
|
145
146
|
"offer.applicant.add.text": "{string:user.0.displayName} applied for the vacancy {string:extra.vacancyName} in {string:group.0.displayName}",
|
|
146
147
|
"offer.applicant.add.title": "New vacancy application",
|
|
147
148
|
"offer.select.applicant.text": "Congratulations! Your application for the vacancy {string:extra.vacancyName} at {string:group.0.displayName} has been accepted. Join your new group and start enjoying the music with your new companions",
|
package/lang/es.json
CHANGED
|
@@ -142,6 +142,7 @@
|
|
|
142
142
|
"musicStyles.marching-band": "Marching band",
|
|
143
143
|
"musicStyles.orquesta-sinfonica": "Orquesta sinfónica",
|
|
144
144
|
"musicStyles.txistularis": "Banda de txistularis",
|
|
145
|
+
"musicStyles.agrupacion-musical": "Agrupación musical",
|
|
145
146
|
"offer.applicant.add.text": "{string:user.0.displayName} ha solicitado la vacante {string:extra.vacancyName} en {string:group.0.displayName}",
|
|
146
147
|
"offer.applicant.add.title": "Nueva solicitud de vacante",
|
|
147
148
|
"offer.select.applicant.text": "¡Enhorabuena! Tu solicitud para la vacante {string:extra.vacancyName} en {string:group.0.displayName} ha sido aceptada. Únete a tu nuevo grupo y empieza a disfrutar de la música con tus nuevos compañeros",
|
package/lang/eu.json
CHANGED
|
@@ -142,6 +142,7 @@
|
|
|
142
142
|
"musicStyles.marching-band": "Marching band",
|
|
143
143
|
"musicStyles.orquesta-sinfonica": "Orkestra sinfonikoa",
|
|
144
144
|
"musicStyles.txistularis": "Txistu banda",
|
|
145
|
+
"musicStyles.agrupacion-musical": "Musika taldea",
|
|
145
146
|
"offer.applicant.add.text": "{string:user.0.displayName} {string:extra.vacancyName} lanposturako eskatu du {string:group.0.displayName} en",
|
|
146
147
|
"offer.applicant.add.title": "Lanpostu eskaera berria",
|
|
147
148
|
"offer.select.applicant.text": "Zorionak! {string:extra.vacancyName} posturako zure eskaera {string:group.0.displayName} onartu da. Batu zaitez zure talde berrira eta hasi musika gozatzen zure kide berriekin",
|
package/lang/fr.json
CHANGED
|
@@ -142,6 +142,7 @@
|
|
|
142
142
|
"musicStyles.marching-band": "Fanfare",
|
|
143
143
|
"musicStyles.orquesta-sinfonica": "Orchestre symphonique",
|
|
144
144
|
"musicStyles.txistularis": "Bande de txistularis",
|
|
145
|
+
"musicStyles.agrupacion-musical": "Ensemble musical",
|
|
145
146
|
"offer.applicant.add.text": "{string:user.0.displayName} a postulé pour le poste {string:extra.vacancyName} dans {string:group.0.displayName}",
|
|
146
147
|
"offer.applicant.add.title": "Nouvelle candidature",
|
|
147
148
|
"offer.select.applicant.text": "Félicitations ! Votre candidature pour le poste {string:extra.vacancyName} dans {string:group.0.displayName} a été acceptée. Rejoignez votre nouveau groupe et commencez à profiter de la musique avec vos nouveaux collègues",
|
package/lang/gl.json
CHANGED
|
@@ -142,6 +142,7 @@
|
|
|
142
142
|
"musicStyles.marching-band": "Marching band",
|
|
143
143
|
"musicStyles.orquesta-sinfonica": "Orquestra sinfónica",
|
|
144
144
|
"musicStyles.txistularis": "Banda de txistularis",
|
|
145
|
+
"musicStyles.agrupacion-musical": "Agrupación musical",
|
|
145
146
|
"offer.applicant.add.text": "{string:user.0.displayName} solicitou a vacante {string:extra.vacancyName} en {string:group.0.displayName}",
|
|
146
147
|
"offer.applicant.add.title": "Nova solicitude de vacante",
|
|
147
148
|
"offer.select.applicant.text": "Parabéns! A túa solicitude para a vacante {string:extra.vacancyName} en {string:group.0.displayName} foi aceptada. Únete ao teu novo grupo e comeza a gozar da música cos teus novos compañeiros",
|
package/lang/it.json
CHANGED
|
@@ -142,6 +142,7 @@
|
|
|
142
142
|
"musicStyles.marching-band": "Marching Band",
|
|
143
143
|
"musicStyles.orquesta-sinfonica": "Orchestra Sinfonica",
|
|
144
144
|
"musicStyles.txistularis": "Banda di Txistularis",
|
|
145
|
+
"musicStyles.agrupacion-musical": "Gruppo musicale",
|
|
145
146
|
"offer.applicant.add.text": "{string:user.0.displayName} ha fatto domanda per la posizione {string:extra.vacancyName} in {string:group.0.displayName}",
|
|
146
147
|
"offer.applicant.add.title": "Nuova domanda per una posizione",
|
|
147
148
|
"offer.select.applicant.text": "Congratulazioni! La tua domanda per la posizione {string:extra.vacancyName} in {string:group.0.displayName} è stata accettata. Unisciti al tuo nuovo gruppo e inizia a goderti la musica con i tuoi nuovi compagni",
|
package/lang/nl.json
CHANGED
|
@@ -141,6 +141,7 @@
|
|
|
141
141
|
"musicStyles.jazz-band": "Jazzband",
|
|
142
142
|
"musicStyles.marching-band": "Marchingband",
|
|
143
143
|
"musicStyles.orquesta-sinfonica": "Symfonieorkest",
|
|
144
|
+
"musicStyles.agrupacion-musical": "Muzikale groep",
|
|
144
145
|
"musicStyles.txistularis": "Txistularisband",
|
|
145
146
|
"offer.applicant.add.text": "{string:user.0.displayName} heeft gesolliciteerd naar de vacature {string:extra.vacancyName} bij {string:group.0.displayName}",
|
|
146
147
|
"offer.applicant.add.title": "Nieuwe sollicitatie voor vacature",
|
|
@@ -205,11 +206,11 @@
|
|
|
205
206
|
"performance": "Uitvoering",
|
|
206
207
|
"practice.assistance.confirm.byAdmin.text": "Een beheerder heeft je aanwezigheid bevestigd voor de repetitie op {date:event.0.[datetime,timezone]:date}",
|
|
207
208
|
"practice.assistance.confirm.byAdmin.title": "Aanwezigheid bevestigd door beheerder",
|
|
208
|
-
"practice.assistance.confirm.text": "{string:user.0.displayName} heeft zijn aanwezigheid bevestigd voor de repetitie op {date:event.0.[datetime,timezone]:date}",
|
|
209
|
+
"practice.assistance.confirm.text": "{string:user.0.displayName} heeft zijn/haar aanwezigheid bevestigd voor de repetitie op {date:event.0.[datetime,timezone]:date}",
|
|
209
210
|
"practice.assistance.confirm.title": "Aanwezigheid bevestigd",
|
|
210
211
|
"practice.assistance.decline.byAdmin.text": "Een beheerder heeft je aanwezigheid geweigerd voor de repetitie op {date:event.0.[datetime,timezone]:date}",
|
|
211
212
|
"practice.assistance.decline.byAdmin.title": "Aanwezigheid geweigerd door beheerder",
|
|
212
|
-
"practice.assistance.decline.text": "{string:user.0.displayName} heeft zijn aanwezigheid geweigerd voor de repetitie op {date:event.0.[datetime,timezone]:date}",
|
|
213
|
+
"practice.assistance.decline.text": "{string:user.0.displayName} heeft zijn/haar aanwezigheid geweigerd voor de repetitie op {date:event.0.[datetime,timezone]:date}",
|
|
213
214
|
"practice.assistance.decline.title": "Aanwezigheid geweigerd",
|
|
214
215
|
"practice.cancel.text": "De repetitie op {date:event.0.[datetime,timezone]:date} van {string:group.0.displayName} is geannuleerd",
|
|
215
216
|
"practice.cancel.title": "Repetitie geannuleerd",
|
package/lang/pt.json
CHANGED
|
@@ -142,6 +142,7 @@
|
|
|
142
142
|
"musicStyles.marching-band": "Marching Band",
|
|
143
143
|
"musicStyles.orquesta-sinfonica": "Orquestra sinfónica",
|
|
144
144
|
"musicStyles.txistularis": "Banda Txistus",
|
|
145
|
+
"musicStyles.agrupacion-musical": "Agrupamento musical",
|
|
145
146
|
"offer.applicant.add.text": "{string:user.0.displayName} candidatou-se à vaga {string:extra.vacancyName} em {string:group.0.displayName}",
|
|
146
147
|
"offer.applicant.add.title": "Nova candidatura à vaga",
|
|
147
148
|
"offer.select.applicant.text": "Parabéns! Sua solicitação para a vaga {string:extra.vacancyName} em {string:group.0.displayName} foi aceita. Junte-se ao seu novo grupo e comece a aproveitar a música com seus novos companheiros",
|
package/models/Evento/index.d.ts
CHANGED
package/models/Evento/index.js
CHANGED
package/models/Evento/types.d.ts
CHANGED
|
@@ -119,6 +119,7 @@ export interface EventData extends EventPromoterData {
|
|
|
119
119
|
};
|
|
120
120
|
selectionModeClosedAt: Timestamp | null;
|
|
121
121
|
sites: boolean;
|
|
122
|
+
imagesPath: string[];
|
|
122
123
|
readonly owner: DocumentReference;
|
|
123
124
|
readonly createdAt: Timestamp;
|
|
124
125
|
readonly createdOn: CreatedOn;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import ModelWithLang from '../../Model/lang';
|
|
2
2
|
import { PartnershipPartnerData } from './types';
|
|
3
3
|
export default class PartnershipPartner extends ModelWithLang<PartnershipPartnerData> {
|
|
4
|
+
get tinyInfo(): {
|
|
5
|
+
displayName: string;
|
|
6
|
+
photoURL: string;
|
|
7
|
+
};
|
|
4
8
|
get partnershipId(): string;
|
|
5
9
|
get name(): string;
|
|
6
10
|
get lastname(): string;
|
|
7
|
-
get photoURL(): string
|
|
11
|
+
get photoURL(): string;
|
|
8
12
|
get displayName(): string;
|
|
9
13
|
get NIF(): string | null;
|
|
10
14
|
get email(): string;
|
|
@@ -28,4 +32,5 @@ export default class PartnershipPartner extends ModelWithLang<PartnershipPartner
|
|
|
28
32
|
get isActive(): boolean;
|
|
29
33
|
get userId(): string | null;
|
|
30
34
|
get groupIds(): string[];
|
|
35
|
+
get subscriptionIds(): string[];
|
|
31
36
|
}
|
|
@@ -7,6 +7,12 @@ const types_1 = require("../../../helpers/types");
|
|
|
7
7
|
const utils_1 = require("../../../helpers/utils");
|
|
8
8
|
const lang_1 = __importDefault(require("../../Model/lang"));
|
|
9
9
|
class PartnershipPartner extends lang_1.default {
|
|
10
|
+
get tinyInfo() {
|
|
11
|
+
return {
|
|
12
|
+
displayName: this.displayName,
|
|
13
|
+
photoURL: this.photoURL,
|
|
14
|
+
};
|
|
15
|
+
}
|
|
10
16
|
get partnershipId() {
|
|
11
17
|
return (0, utils_1.at)(this.ref.path.split('/'), 1) || '';
|
|
12
18
|
}
|
|
@@ -17,7 +23,7 @@ class PartnershipPartner extends lang_1.default {
|
|
|
17
23
|
return this.data.lastname;
|
|
18
24
|
}
|
|
19
25
|
get photoURL() {
|
|
20
|
-
return this.data.photoURL
|
|
26
|
+
return this.data.photoURL;
|
|
21
27
|
}
|
|
22
28
|
get displayName() {
|
|
23
29
|
return this.data.displayName;
|
|
@@ -32,7 +38,7 @@ class PartnershipPartner extends lang_1.default {
|
|
|
32
38
|
return this.data.phone;
|
|
33
39
|
}
|
|
34
40
|
get birthdate() {
|
|
35
|
-
return this.data.
|
|
41
|
+
return this.data.birthDate;
|
|
36
42
|
}
|
|
37
43
|
get sepaMandate() {
|
|
38
44
|
if (!this.data.sepaMandate)
|
|
@@ -72,5 +78,8 @@ class PartnershipPartner extends lang_1.default {
|
|
|
72
78
|
get groupIds() {
|
|
73
79
|
return this.data.groupIds || [];
|
|
74
80
|
}
|
|
81
|
+
get subscriptionIds() {
|
|
82
|
+
return this.data.subscriptionIds || [];
|
|
83
|
+
}
|
|
75
84
|
}
|
|
76
85
|
exports.default = PartnershipPartner;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Timestamp } from '@google-cloud/firestore';
|
|
2
2
|
import { BasicAddressData } from '../../../helpers/types';
|
|
3
3
|
import { DocumentReference } from '../../../types/firestore';
|
|
4
|
+
import { UserExtendedData } from '../../User/types';
|
|
4
5
|
export interface PartnershipPartnerSepaMandate {
|
|
5
6
|
mandateId: string;
|
|
6
7
|
iban: string;
|
|
@@ -8,19 +9,14 @@ export interface PartnershipPartnerSepaMandate {
|
|
|
8
9
|
holderAddress: BasicAddressData;
|
|
9
10
|
swiftbic: string | null;
|
|
10
11
|
}
|
|
11
|
-
export interface PartnershipPartnerData {
|
|
12
|
-
name: string;
|
|
13
|
-
lastname: string;
|
|
14
|
-
photoURL: string | null;
|
|
15
|
-
displayName: string;
|
|
16
|
-
email: string;
|
|
12
|
+
export interface PartnershipPartnerData extends UserExtendedData {
|
|
17
13
|
address: BasicAddressData | null;
|
|
18
14
|
phone: string | null;
|
|
19
|
-
birthdate: Timestamp | null;
|
|
20
15
|
NIF: string | null;
|
|
21
16
|
sepaMandate: PartnershipPartnerSepaMandate | null;
|
|
22
17
|
userId: string | null;
|
|
23
18
|
groupIds: string[];
|
|
19
|
+
subscriptionIds: string[];
|
|
24
20
|
createdAt: Timestamp;
|
|
25
21
|
createdBy: DocumentReference;
|
|
26
22
|
editedAt: Timestamp | null;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import ModelWithLang from '../../Model/lang';
|
|
2
|
-
import { PaymentMethod } from '
|
|
3
|
-
import { PartnershipPaymentData } from './types';
|
|
2
|
+
import { PartnershipPaymentData, PaymentMethod } from './types';
|
|
4
3
|
export default class PartnershipPayment extends ModelWithLang<PartnershipPaymentData> {
|
|
5
4
|
get partnershipId(): string;
|
|
6
5
|
get title(): string;
|
|
@@ -10,7 +9,7 @@ export default class PartnershipPayment extends ModelWithLang<PartnershipPayment
|
|
|
10
9
|
get partnerId(): string;
|
|
11
10
|
get isRecurrent(): boolean;
|
|
12
11
|
get isOneTime(): boolean;
|
|
13
|
-
get paymentMethod(): PaymentMethod;
|
|
12
|
+
get paymentMethod(): PaymentMethod | null;
|
|
14
13
|
get isMethodSepa(): boolean;
|
|
15
14
|
get status(): import("./types").PaymentStatus;
|
|
16
15
|
get statusHistory(): import("./types").PaymentStatusHistoryItem[];
|
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const utils_1 = require("../../../helpers/utils");
|
|
7
7
|
const lang_1 = __importDefault(require("../../Model/lang"));
|
|
8
|
-
const types_1 = require("
|
|
8
|
+
const types_1 = require("./types");
|
|
9
9
|
class PartnershipPayment extends lang_1.default {
|
|
10
10
|
get partnershipId() {
|
|
11
11
|
return (0, utils_1.at)(this.ref.path.split('/'), 1) || '';
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { Timestamp } from '@google-cloud/firestore';
|
|
2
|
-
|
|
2
|
+
export declare enum PaymentMethod {
|
|
3
|
+
Cash = "CASH",
|
|
4
|
+
Transfer = "TRANSFER",
|
|
5
|
+
SEPA = "SEPA"
|
|
6
|
+
}
|
|
3
7
|
export declare enum PaymentStatus {
|
|
4
8
|
Pending = "pending",
|
|
5
9
|
Charged = "charged",
|
|
@@ -13,7 +17,7 @@ export interface PaymentStatusHistoryItem {
|
|
|
13
17
|
export interface PartnershipPaymentData {
|
|
14
18
|
title: string;
|
|
15
19
|
amount: number;
|
|
16
|
-
paymentMethod: PaymentMethod;
|
|
20
|
+
paymentMethod: PaymentMethod | null;
|
|
17
21
|
subscriptionId: string | null;
|
|
18
22
|
partnerId: string;
|
|
19
23
|
status: PaymentStatus;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PaymentStatus = void 0;
|
|
3
|
+
exports.PaymentStatus = exports.PaymentMethod = void 0;
|
|
4
|
+
var PaymentMethod;
|
|
5
|
+
(function (PaymentMethod) {
|
|
6
|
+
PaymentMethod["Cash"] = "CASH";
|
|
7
|
+
PaymentMethod["Transfer"] = "TRANSFER";
|
|
8
|
+
PaymentMethod["SEPA"] = "SEPA";
|
|
9
|
+
})(PaymentMethod = exports.PaymentMethod || (exports.PaymentMethod = {}));
|
|
4
10
|
var PaymentStatus;
|
|
5
11
|
(function (PaymentStatus) {
|
|
6
12
|
PaymentStatus["Pending"] = "pending";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import ModelWithLang from '../../Model/lang';
|
|
2
|
-
import { PartnershipPlanData } from './types';
|
|
2
|
+
import { PartnershipPlanBasicData, PartnershipPlanData } from './types';
|
|
3
3
|
export default class PartnershipPlan extends ModelWithLang<PartnershipPlanData> {
|
|
4
|
+
get basicInfo(): PartnershipPlanBasicData;
|
|
4
5
|
get partnershipId(): string;
|
|
5
6
|
private setPaymentDay;
|
|
6
7
|
private setPaymentMonth;
|
|
@@ -14,7 +15,6 @@ export default class PartnershipPlan extends ModelWithLang<PartnershipPlanData>
|
|
|
14
15
|
get schedule(): import("./types").PlanScheduleType;
|
|
15
16
|
get isAnnuallySchedule(): boolean;
|
|
16
17
|
get isPaymentDayEndOfMonth(): boolean;
|
|
17
|
-
get paymentMethod(): import("./types").PaymentMethod;
|
|
18
18
|
get subscriptionsCount(): number;
|
|
19
19
|
get hasSubscriptions(): boolean;
|
|
20
20
|
get createdAt(): FirebaseFirestore.Timestamp;
|
|
@@ -4,10 +4,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const date_fns_1 = require("date-fns");
|
|
7
|
+
const isNumber_1 = __importDefault(require("lodash/isNumber"));
|
|
7
8
|
const utils_1 = require("../../../helpers/utils");
|
|
8
9
|
const lang_1 = __importDefault(require("../../Model/lang"));
|
|
9
|
-
const isNumber_1 = __importDefault(require("lodash/isNumber"));
|
|
10
10
|
class PartnershipPlan extends lang_1.default {
|
|
11
|
+
get basicInfo() {
|
|
12
|
+
return {
|
|
13
|
+
name: this.name,
|
|
14
|
+
price: this.price,
|
|
15
|
+
schedule: this.schedule,
|
|
16
|
+
};
|
|
17
|
+
}
|
|
11
18
|
get partnershipId() {
|
|
12
19
|
return (0, utils_1.at)(this.ref.path.split('/'), 1) || '';
|
|
13
20
|
}
|
|
@@ -53,9 +60,9 @@ class PartnershipPlan extends lang_1.default {
|
|
|
53
60
|
get isPaymentDayEndOfMonth() {
|
|
54
61
|
return this.schedule.paymentDay === -1;
|
|
55
62
|
}
|
|
56
|
-
get paymentMethod() {
|
|
57
|
-
|
|
58
|
-
}
|
|
63
|
+
// get paymentMethod() {
|
|
64
|
+
// return this.data.paymentMethod;
|
|
65
|
+
// }
|
|
59
66
|
get subscriptionsCount() {
|
|
60
67
|
return this.data.subscriptionsCount || 0;
|
|
61
68
|
}
|
|
@@ -1,20 +1,16 @@
|
|
|
1
1
|
import { Timestamp } from '@google-cloud/firestore';
|
|
2
|
-
export declare enum PaymentMethod {
|
|
3
|
-
Cash = "CASH",
|
|
4
|
-
Transfer = "TRANSFER",
|
|
5
|
-
SEPA = "SEPA"
|
|
6
|
-
}
|
|
7
2
|
export interface PlanScheduleType {
|
|
8
3
|
periodInMonths: number;
|
|
9
4
|
paymentDay: number;
|
|
10
5
|
paymentMonth: number | null;
|
|
11
6
|
}
|
|
12
|
-
export interface
|
|
7
|
+
export interface PartnershipPlanBasicData {
|
|
13
8
|
name: string;
|
|
14
|
-
description: string;
|
|
15
9
|
price: number;
|
|
16
10
|
schedule: PlanScheduleType;
|
|
17
|
-
|
|
11
|
+
}
|
|
12
|
+
export interface PartnershipPlanData extends PartnershipPlanBasicData {
|
|
13
|
+
description: string;
|
|
18
14
|
subscriptionsCount: number;
|
|
19
15
|
createdAt: Timestamp;
|
|
20
16
|
createdBy: string;
|
|
@@ -1,9 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PaymentMethod = void 0;
|
|
4
|
-
var PaymentMethod;
|
|
5
|
-
(function (PaymentMethod) {
|
|
6
|
-
PaymentMethod["Cash"] = "CASH";
|
|
7
|
-
PaymentMethod["Transfer"] = "TRANSFER";
|
|
8
|
-
PaymentMethod["SEPA"] = "SEPA";
|
|
9
|
-
})(PaymentMethod = exports.PaymentMethod || (exports.PaymentMethod = {}));
|
|
@@ -4,7 +4,8 @@ export default class PartnershipSubscription extends Model<PartnershipSubscripti
|
|
|
4
4
|
get partnershipId(): string;
|
|
5
5
|
get planId(): string;
|
|
6
6
|
get partnerId(): string;
|
|
7
|
-
get
|
|
7
|
+
get partnerInfo(): import("../../User/types").UserTinyData;
|
|
8
|
+
get nextPaymentDate(): FirebaseFirestore.Timestamp | null;
|
|
8
9
|
get endDate(): FirebaseFirestore.Timestamp | null;
|
|
9
10
|
get isEnded(): boolean;
|
|
10
11
|
get createdAt(): FirebaseFirestore.Timestamp;
|
|
@@ -16,8 +16,11 @@ class PartnershipSubscription extends Model_1.default {
|
|
|
16
16
|
get partnerId() {
|
|
17
17
|
return this.data.partnerId;
|
|
18
18
|
}
|
|
19
|
+
get partnerInfo() {
|
|
20
|
+
return this.data.partnerInfo;
|
|
21
|
+
}
|
|
19
22
|
get nextPaymentDate() {
|
|
20
|
-
return this.data.nextPaymentDate;
|
|
23
|
+
return this.data.nextPaymentDate || null;
|
|
21
24
|
}
|
|
22
25
|
get endDate() {
|
|
23
26
|
return this.data.endDate || null;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { Timestamp } from '@google-cloud/firestore';
|
|
2
|
+
import { UserTinyData } from '../../User/types';
|
|
3
|
+
import { PartnershipPlanBasicData } from '../Plan/types';
|
|
2
4
|
export interface PartnershipSubscriptionData {
|
|
3
5
|
planId: string;
|
|
4
6
|
partnerId: string;
|
|
5
|
-
|
|
7
|
+
partnerInfo: UserTinyData;
|
|
8
|
+
planInfo: PartnershipPlanBasicData;
|
|
9
|
+
nextPaymentDate: Timestamp | null;
|
|
6
10
|
endDate: Timestamp | null;
|
|
7
11
|
createdAt: Timestamp;
|
|
8
12
|
createdBy: string;
|
package/package.json
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glissandoo/lib",
|
|
3
|
-
"version": "1.102.
|
|
3
|
+
"version": "1.102.13",
|
|
4
4
|
"description": "Glissandoo library js",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"tsc": "cp package.json ./lib && tsc",
|
|
9
|
-
"build": "npm run tsc",
|
|
10
|
-
"build:watch": "npm run tsc -- --watch",
|
|
11
8
|
"build:link": "tsc",
|
|
12
|
-
"
|
|
13
|
-
"
|
|
9
|
+
"build:watch": "npm run tsc -- --watch",
|
|
10
|
+
"build": "npm run tsc",
|
|
14
11
|
"format:single": "prettier --write",
|
|
15
|
-
"
|
|
12
|
+
"format": "prettier --write \"src/**/*.ts\" \"src/lang/*.json\"",
|
|
13
|
+
"link": "cp package.json ./lib && cd ./lib && npm link",
|
|
16
14
|
"lint:single": "eslint",
|
|
15
|
+
"lint": "eslint --ext .ts ./src",
|
|
16
|
+
"postversion": "git push && git push --tags",
|
|
17
17
|
"prepare": "rm -rf ./lib && npm run build:link",
|
|
18
|
-
"set-husky": "node scripts/setHusky.js",
|
|
19
18
|
"preversion": "npm run lint",
|
|
20
|
-
"version": "npm run format && git add -A src && ./publish.sh",
|
|
21
|
-
"postversion": "git push && git push --tags",
|
|
22
19
|
"publish:beta": "npm publish --tag beta",
|
|
23
|
-
"
|
|
24
|
-
"
|
|
20
|
+
"set-husky": "node scripts/setHusky.js",
|
|
21
|
+
"supabase:types": "supabase gen types typescript --local > src/types/supabase/generated.ts; prettier --write src/types/supabase/generated.ts",
|
|
22
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
25
23
|
"translation:download": "localazy download",
|
|
26
|
-
"
|
|
24
|
+
"translation:upload": "localazy upload",
|
|
25
|
+
"tsc": "cp package.json ./lib && tsc",
|
|
26
|
+
"version": "npm run format && git add -A src && ./publish.sh"
|
|
27
27
|
},
|
|
28
28
|
"author": "Glissandoo",
|
|
29
29
|
"license": "ISC",
|