@glissandoo/lib 1.104.13 → 1.104.15

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.
@@ -166,6 +166,8 @@ export declare enum FbFunctionName {
166
166
  UserSendYearWrapped = "user-sendYearWrapped",
167
167
  UserRecoveryPassword = "user-recoveryPassword",
168
168
  UserGroupOnDelete = "userGroup-onDelete",
169
+ UserOfferAlarmOnCreate = "userOfferAlarm-onCreate",
170
+ UserOfferAlarmOnDelete = "userOfferAlarm-onDelete",
169
171
  WebhookEventOnCreate = "webhookEvent-onCreate",
170
172
  WebhookGocardless = "webhook-gocardless",
171
173
  WebhookMessagebird = "webhook-messagebird",
@@ -170,6 +170,8 @@ var FbFunctionName;
170
170
  FbFunctionName["UserSendYearWrapped"] = "user-sendYearWrapped";
171
171
  FbFunctionName["UserRecoveryPassword"] = "user-recoveryPassword";
172
172
  FbFunctionName["UserGroupOnDelete"] = "userGroup-onDelete";
173
+ FbFunctionName["UserOfferAlarmOnCreate"] = "userOfferAlarm-onCreate";
174
+ FbFunctionName["UserOfferAlarmOnDelete"] = "userOfferAlarm-onDelete";
173
175
  FbFunctionName["WebhookEventOnCreate"] = "webhookEvent-onCreate";
174
176
  FbFunctionName["WebhookGocardless"] = "webhook-gocardless";
175
177
  FbFunctionName["WebhookMessagebird"] = "webhook-messagebird";
@@ -174,6 +174,8 @@ const regionByFunctions = {
174
174
  [index_1.FbFunctionName.UserRemove]: GCloudRegions.EuropeWest6,
175
175
  [index_1.FbFunctionName.UserRecoveryPassword]: GCloudRegions.EuropeWest6,
176
176
  [index_1.FbFunctionName.UserGroupOnDelete]: GCloudRegions.EuropeWest6,
177
+ [index_1.FbFunctionName.UserOfferAlarmOnCreate]: GCloudRegions.EuropeWest6,
178
+ [index_1.FbFunctionName.UserOfferAlarmOnDelete]: GCloudRegions.EuropeWest6,
177
179
  [index_1.FbFunctionName.UserSendYearWrapped]: GCloudRegions.EuropeWest6,
178
180
  [index_1.FbFunctionName.NotificationRemoveAllByGroup]: GCloudRegions.EuropeWest6,
179
181
  [index_1.FbFunctionName.NotificationMarkAllAsReadedByGroup]: GCloudRegions.EuropeWest6,
package/helpers/utils.js CHANGED
@@ -10,7 +10,10 @@ const sortByMatch = (list, field, order) => {
10
10
  const [match, noMatch] = (0, lodash_1.partition)(list, (item) => order.includes((0, get_1.default)(item, field)));
11
11
  const sortedmatch = (0, lodash_1.sortBy)(match, [
12
12
  (player) => order.indexOf((0, get_1.default)(player, field)),
13
- 'displayName',
13
+ (player) => {
14
+ const displayName = (0, get_1.default)(player, 'displayName');
15
+ return typeof displayName === 'string' ? displayName.toLowerCase() : '';
16
+ },
14
17
  ]);
15
18
  const sortedNoMatch = (0, lodash_1.orderBy)(noMatch, field, 'asc');
16
19
  return [...sortedmatch, ...sortedNoMatch];
package/lang/ca.json CHANGED
@@ -168,6 +168,8 @@
168
168
  "offer.applicant.add.title": "📨 Nova sol·licitud de vacant",
169
169
  "offer.select.applicant.text": "Enhorabona! La teua sol·licitud per a {string:extra.vacancyName} en {string:group.0.displayName} ha sigut acceptada",
170
170
  "offer.select.applicant.title": "🎉 Sol·licitud de vacant acceptada",
171
+ "offer.alarm.title": "🔔 Nova vacant",
172
+ "offer.alarm.text": "Hi ha una nova vacant per a {instrument:extra.[instrumentId,customInstrumentName]} en {string:group.0.displayName}. Dona-li una ullada!",
171
173
  "performance.assistance.confirm.byAdmin.text": "Un administrador ha confirmat la teua assistència a {string:event.0.displayName}. Tot llest!",
172
174
  "performance.assistance.confirm.byAdmin.title": "✅ Assistència confirmada per un administrador",
173
175
  "performance.assistance.confirm.text": "{string:user.0.displayName} ha confirmat que assistirà a {string:event.0.displayName}",
package/lang/de.json CHANGED
@@ -168,6 +168,8 @@
168
168
  "offer.applicant.add.title": "📨 Neue Bewerbungsanfrage",
169
169
  "offer.select.applicant.text": "Herzlichen Glückwunsch! Deine Bewerbung für {string:extra.vacancyName} in {string:group.0.displayName} wurde angenommen",
170
170
  "offer.select.applicant.title": "🎉 Bewerbung angenommen",
171
+ "offer.alarm.title": "🔔 Neue Stelle",
172
+ "offer.alarm.text": "Es gibt eine neue Stelle für {instrument:extra.[instrumentId,customInstrumentName]} bei {string:group.0.displayName}. Schau sie dir an!",
171
173
  "performance.assistance.confirm.byAdmin.text": "Ein Administrator hat deine Teilnahme an {string:event.0.displayName} bestätigt. Alles bereit!",
172
174
  "performance.assistance.confirm.byAdmin.title": "✅ Teilnahme vom Admin bestätigt",
173
175
  "performance.assistance.confirm.text": "{string:user.0.displayName} hat bestätigt, dass er an {string:event.0.displayName} teilnimmt",
package/lang/en.json CHANGED
@@ -168,6 +168,8 @@
168
168
  "offer.applicant.add.title": "📨 New vacancy application",
169
169
  "offer.select.applicant.text": "Congratulations! Your application for {string:extra.vacancyName} at {string:group.0.displayName} has been accepted",
170
170
  "offer.select.applicant.title": "🎉 Vacancy application accepted",
171
+ "offer.alarm.title": "🔔 New vacancy",
172
+ "offer.alarm.text": "There is a new vacancy for {instrument:extra.[instrumentId,customInstrumentName]} in {string:group.0.displayName}. Check it out!",
171
173
  "performance.assistance.confirm.byAdmin.text": "An administrator has confirmed your attendance at {string:event.0.displayName}. You're all set!",
172
174
  "performance.assistance.confirm.byAdmin.title": "✅ Attendance confirmed by an administrator",
173
175
  "performance.assistance.confirm.text": "{string:user.0.displayName} has confirmed attendance at {string:event.0.displayName}",
package/lang/es.json CHANGED
@@ -168,6 +168,8 @@
168
168
  "offer.applicant.add.title": "📨 Nueva solicitud de vacante",
169
169
  "offer.select.applicant.text": "¡Enhorabuena! Tu solicitud para {string:extra.vacancyName} en {string:group.0.displayName} ha sido aceptada",
170
170
  "offer.select.applicant.title": "🎉 Solicitud de vacante aceptada",
171
+ "offer.alarm.title": "🔔 Nueva vacante",
172
+ "offer.alarm.text": "Hay una nueva vacante para {instrument:extra.[instrumentId,customInstrumentName]} en {string:group.0.displayName}. ¡Échale un vistazo!",
171
173
  "performance.assistance.confirm.byAdmin.text": "Un administrador ha confirmado tu asistencia a {string:event.0.displayName}. ¡Todo listo!",
172
174
  "performance.assistance.confirm.byAdmin.title": "✅ Asistencia confirmada por un administrador",
173
175
  "performance.assistance.confirm.text": "{string:user.0.displayName} ha confirmado que asistirá a {string:event.0.displayName}",
package/lang/eu.json CHANGED
@@ -168,6 +168,8 @@
168
168
  "offer.applicant.add.title": "📨 Lanpostu eskaera berria",
169
169
  "offer.select.applicant.text": "Zorionak! Zure eskaera onartua izan da {string:extra.vacancyName} posturako {string:group.0.displayName} taldean. Batu zaitez eta hasi musika bizitzen kide berriekin!",
170
170
  "offer.select.applicant.title": "🎉 Lanpostu eskaera onartua",
171
+ "offer.alarm.title": "🔔 Lan eskaintza berria",
172
+ "offer.alarm.text": "{instrument:extra.[instrumentId,customInstrumentName]}-rako lan eskaintza berria dago {string:group.0.displayName}-n. Begiratu ezazu!",
171
173
  "performance.assistance.confirm.byAdmin.text": "Administratzaile batek zure bertaratzea baieztatu du {string:event.0.displayName} ekitaldira. Dena prest!",
172
174
  "performance.assistance.confirm.byAdmin.title": "✅ Bertaratzea baieztatu du administratzaileak",
173
175
  "performance.assistance.confirm.text": "{string:user.0.displayName}-k baieztatu du {string:event.0.displayName} ekitaldira joango dela",
package/lang/fr.json CHANGED
@@ -168,6 +168,8 @@
168
168
  "offer.applicant.add.title": "📨 Nouvelle candidature",
169
169
  "offer.select.applicant.text": "Félicitations ! Votre candidature pour le poste {string:extra.vacancyName} chez {string:group.0.displayName} a été acceptée",
170
170
  "offer.select.applicant.title": "🎉 Candidature acceptée",
171
+ "offer.alarm.title": "🔔 Nouvelle offre",
172
+ "offer.alarm.text": "Il y a une nouvelle offre pour {instrument:extra.[instrumentId,customInstrumentName]} dans {string:group.0.displayName}. Jetez-y un œil !",
171
173
  "performance.assistance.confirm.byAdmin.text": "Un administrateur a confirmé votre présence à {string:event.0.displayName}. Tout est prêt !",
172
174
  "performance.assistance.confirm.byAdmin.title": "✅ Présence confirmée par un administrateur",
173
175
  "performance.assistance.confirm.text": "{string:user.0.displayName} a confirmé sa présence à {string:event.0.displayName}",
package/lang/gl.json CHANGED
@@ -168,6 +168,8 @@
168
168
  "offer.applicant.add.title": "📨 Nova solicitude de vacante",
169
169
  "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 goza da música cos teus novos compañeiros",
170
170
  "offer.select.applicant.title": "🎉 Solicitude de vacante aceptada",
171
+ "offer.alarm.title": "🔔 Nova vacante",
172
+ "offer.alarm.text": "Hai unha nova vacante para {instrument:extra.[instrumentId,customInstrumentName]} en {string:group.0.displayName}. Bótalle un ollo!",
171
173
  "performance.assistance.confirm.byAdmin.text": "Un administrador confirmou a túa asistencia a {string:event.0.displayName}",
172
174
  "performance.assistance.confirm.byAdmin.title": "✅ Asistencia confirmada por un administrador",
173
175
  "performance.assistance.confirm.text": "{string:user.0.displayName} confirmou a súa asistencia a {string:event.0.displayName}",
package/lang/it.json CHANGED
@@ -168,6 +168,8 @@
168
168
  "offer.applicant.add.title": "📨 Nuova domanda di lavoro",
169
169
  "offer.select.applicant.text": "Congratulazioni! La tua candidatura per {string:extra.vacancyName} presso {string:group.0.displayName} è stata accettata",
170
170
  "offer.select.applicant.title": "🎉 Domanda di lavoro accettata",
171
+ "offer.alarm.title": "🔔 Nuova offerta",
172
+ "offer.alarm.text": "C’è una nuova offerta per {instrument:extra.[instrumentId,customInstrumentName]} in {string:group.0.displayName}. Dagli un’occhiata!",
171
173
  "performance.assistance.confirm.byAdmin.text": "Un amministratore ha confermato la tua partecipazione a {string:event.0.displayName}. Sei a posto!",
172
174
  "performance.assistance.confirm.byAdmin.title": "✅ Partecipazione confermata da un amministratore",
173
175
  "performance.assistance.confirm.text": "{string:user.0.displayName} ha confermato la partecipazione a {string:event.0.displayName}",
package/lang/nl.json CHANGED
@@ -168,6 +168,8 @@
168
168
  "offer.applicant.add.title": "📨 Nieuwe vacatureaanvraag",
169
169
  "offer.select.applicant.text": "Gefeliciteerd! Je sollicitatie voor {string:extra.vacancyName} bij {string:group.0.displayName} is geaccepteerd",
170
170
  "offer.select.applicant.title": "🎉 Vacatureaanvraag geaccepteerd",
171
+ "offer.alarm.title": "🔔 Nieuwe vacature",
172
+ "offer.alarm.text": "Er is een nieuwe vacature voor {instrument:extra.[instrumentId,customInstrumentName]} bij {string:group.0.displayName}. Kijk er eens naar!",
171
173
  "performance.assistance.confirm.byAdmin.text": "Een beheerder heeft je aanwezigheid bevestigd voor {string:event.0.displayName}. Alles geregeld!",
172
174
  "performance.assistance.confirm.byAdmin.title": "✅ Aanwezigheid bevestigd door beheerder",
173
175
  "performance.assistance.confirm.text": "{string:user.0.displayName} heeft zijn aanwezigheid bevestigd voor {string:event.0.displayName}",
package/lang/pt.json CHANGED
@@ -168,6 +168,8 @@
168
168
  "offer.applicant.add.title": "📨 Nova candidatura a vaga",
169
169
  "offer.select.applicant.text": "Parabéns! Sua candidatura para {string:extra.vacancyName} em {string:group.0.displayName} foi aceita",
170
170
  "offer.select.applicant.title": "🎉 Candidatura à vaga aceita",
171
+ "offer.alarm.title": "🔔 Nova vaga",
172
+ "offer.alarm.text": "Há uma nova vaga para {instrument:extra.[instrumentId,customInstrumentName]} em {string:group.0.displayName}. Dá uma olhada!",
171
173
  "performance.assistance.confirm.byAdmin.text": "Um administrador confirmou sua presença em {string:event.0.displayName}. Tudo pronto!",
172
174
  "performance.assistance.confirm.byAdmin.title": "✅ Presença confirmada por um administrador",
173
175
  "performance.assistance.confirm.text": "{string:user.0.displayName} confirmou presença em {string:event.0.displayName}",
@@ -112,7 +112,8 @@ export declare enum NotificationActions {
112
112
  GroupOnboardingEngagement = "group.onboarding.engagement",
113
113
  GroupOnboardingEvent = "group.onboarding.event",
114
114
  OfferApplicantAdd = "offer.applicant.add",
115
- OfferSelectApplicant = "offer.select.applicant"
115
+ OfferSelectApplicant = "offer.select.applicant",
116
+ OfferAlarm = "offer.alarm"
116
117
  }
117
118
  export declare enum NotificationActionsFilter {
118
119
  EventCreated = "eventCreated",
@@ -110,6 +110,7 @@ var NotificationActions;
110
110
  NotificationActions["GroupOnboardingEvent"] = "group.onboarding.event";
111
111
  NotificationActions["OfferApplicantAdd"] = "offer.applicant.add";
112
112
  NotificationActions["OfferSelectApplicant"] = "offer.select.applicant";
113
+ NotificationActions["OfferAlarm"] = "offer.alarm";
113
114
  })(NotificationActions = exports.NotificationActions || (exports.NotificationActions = {}));
114
115
  var NotificationActionsFilter;
115
116
  (function (NotificationActionsFilter) {
@@ -226,6 +227,7 @@ exports.notificationByFilter = {
226
227
  [NotificationActionsFilter.Offers]: [
227
228
  NotificationActions.OfferApplicantAdd,
228
229
  NotificationActions.OfferSelectApplicant,
230
+ NotificationActions.OfferAlarm,
229
231
  ],
230
232
  [NotificationActionsFilter.ThemeClaims]: [
231
233
  NotificationActions.ThemeClaimNew,
@@ -5,11 +5,11 @@ export default class UserOfferAlarm extends Model<UserOfferAlarmData> {
5
5
  private lang;
6
6
  constructor(doc: DocumentModel, lang?: LanguagesTypes);
7
7
  get userId(): string;
8
- get locality(): string | null;
8
+ get locality(): string;
9
9
  get location(): FirebaseFirestore.GeoPoint;
10
- get country(): string | null;
10
+ get country(): string;
11
11
  get instrument(): import("../../../helpers/instruments").DefaultInstrumentId | null;
12
12
  get musicStyle(): string | null;
13
- get distance(): number | null;
13
+ get distance(): number;
14
14
  get createdAt(): FirebaseFirestore.Timestamp;
15
15
  }
@@ -15,13 +15,13 @@ class UserOfferAlarm extends Model_1.default {
15
15
  return (0, utils_1.at)(this.ref.path.split('/'), 1) || '';
16
16
  }
17
17
  get locality() {
18
- return this.data.locality || null;
18
+ return this.data.locality;
19
19
  }
20
20
  get location() {
21
- return this.data.location || null;
21
+ return this.data.location;
22
22
  }
23
23
  get country() {
24
- return this.data.country || null;
24
+ return this.data.country;
25
25
  }
26
26
  get instrument() {
27
27
  return this.data.instrument || null;
@@ -30,7 +30,7 @@ class UserOfferAlarm extends Model_1.default {
30
30
  return this.data.musicStyle || null;
31
31
  }
32
32
  get distance() {
33
- return this.data.distance || null;
33
+ return this.data.distance;
34
34
  }
35
35
  get createdAt() {
36
36
  return this.data.createdAt;
@@ -9,3 +9,12 @@ export interface UserOfferAlarmData {
9
9
  musicStyle: string | null;
10
10
  readonly createdAt: Timestamp;
11
11
  }
12
+ export interface UserOfferAlarmAlgoliaData extends Pick<UserOfferAlarmData, 'country' | 'locality' | 'instrument' | 'distance' | 'musicStyle'> {
13
+ objectID: string;
14
+ _geoloc: {
15
+ lat: number;
16
+ lng: number;
17
+ };
18
+ createdAt: number;
19
+ userId: string;
20
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissandoo/lib",
3
- "version": "1.104.13",
3
+ "version": "1.104.15",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",