@glissandoo/lib 1.90.1 → 1.92.0

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.
@@ -111,6 +111,7 @@ export declare enum FbFunctionName {
111
111
  OfferRemove = "offer-remove",
112
112
  OfferReopenSelection = "offer-reopenSelection",
113
113
  OfferSelectApplicant = "offer-selectApplicant",
114
+ OfferView = "offer-view",
114
115
  OfferViewApplicant = "offer-viewApplicant",
115
116
  PartnershipAddConfirmedAdmin = "partnership-addConfirmedAdmin",
116
117
  PartnershipCreate = "partnership-create",
@@ -115,6 +115,7 @@ var FbFunctionName;
115
115
  FbFunctionName["OfferRemove"] = "offer-remove";
116
116
  FbFunctionName["OfferReopenSelection"] = "offer-reopenSelection";
117
117
  FbFunctionName["OfferSelectApplicant"] = "offer-selectApplicant";
118
+ FbFunctionName["OfferView"] = "offer-view";
118
119
  FbFunctionName["OfferViewApplicant"] = "offer-viewApplicant";
119
120
  FbFunctionName["PartnershipAddConfirmedAdmin"] = "partnership-addConfirmedAdmin";
120
121
  FbFunctionName["PartnershipCreate"] = "partnership-create";
@@ -12,6 +12,7 @@ export declare namespace MiscFbFunctionsTypes {
12
12
  lastname?: string;
13
13
  downloadEbook?: boolean;
14
14
  groupId?: number;
15
+ lang: string;
15
16
  }
16
17
  type MiscAddSubscriberResult = void;
17
18
  }
@@ -1,7 +1,7 @@
1
1
  import { DefaultInstrumentId } from '../helpers/instruments';
2
2
  import { Descendant } from '../helpers/slate';
3
3
  import { CreatedOn } from '../helpers/types';
4
- import { OfferType } from '../models/Offer/types';
4
+ import { OfferData, OfferType } from '../models/Offer/types';
5
5
  export declare namespace OfferFbFunctionsTypes {
6
6
  interface PublishParams {
7
7
  offerId: string;
@@ -47,4 +47,8 @@ export declare namespace OfferFbFunctionsTypes {
47
47
  offerId: string;
48
48
  }
49
49
  type RemoveResult = void;
50
+ interface ViewParams {
51
+ offerId: string;
52
+ }
53
+ type ViewResult = Pick<OfferData, 'title' | 'description' | 'instrument' | 'locality' | 'location' | 'country' | 'type' | 'groupId' | 'eventId' | 'deadlineAt' | 'applicantsIds' | 'createdAt' | 'selectionClosedAt' | 'timezone' | 'groupInfo'>;
50
54
  }
@@ -122,6 +122,7 @@ const regionByFunctions = {
122
122
  [index_1.FbFunctionName.OfferRemove]: GCloudRegions.EuropeWest6,
123
123
  [index_1.FbFunctionName.OfferReopenSelection]: GCloudRegions.EuropeWest6,
124
124
  [index_1.FbFunctionName.OfferSelectApplicant]: GCloudRegions.EuropeWest6,
125
+ [index_1.FbFunctionName.OfferView]: GCloudRegions.EuropeWest6,
125
126
  [index_1.FbFunctionName.OfferViewApplicant]: GCloudRegions.EuropeWest6,
126
127
  [index_1.FbFunctionName.PartnershipAddConfirmedAdmin]: GCloudRegions.EuropeWest6,
127
128
  [index_1.FbFunctionName.PartnershipCreate]: GCloudRegions.EuropeWest6,
@@ -77,6 +77,7 @@ export declare enum AppScenes {
77
77
  Modal = "Modal",
78
78
  Notifications = "Notifications",
79
79
  OnBoarding = "OnBoarding",
80
+ Offer = "Offer",
80
81
  Profile = "Me",
81
82
  ProfileSettings = "MeSettings",
82
83
  ProfileSettingsStack = "ProfileSettingsStack",
@@ -81,6 +81,7 @@ var AppScenes;
81
81
  AppScenes["Modal"] = "Modal";
82
82
  AppScenes["Notifications"] = "Notifications";
83
83
  AppScenes["OnBoarding"] = "OnBoarding";
84
+ AppScenes["Offer"] = "Offer";
84
85
  AppScenes["Profile"] = "Me";
85
86
  AppScenes["ProfileSettings"] = "MeSettings";
86
87
  AppScenes["ProfileSettingsStack"] = "ProfileSettingsStack";
package/lang/ca.json CHANGED
@@ -289,5 +289,7 @@
289
289
  "theme.claim.new.text": "{string:user.0.displayName} ha reclamat la partitura de {instrument:extra.[instrumentId,customInstrumentName]} de l'obra \"{string:extra.title}\"",
290
290
  "theme.claim.new.title": "Han demanat una partitura",
291
291
  "theme.claim.update.text": "S'afegit la partitura de {instrument:extra.[instrumentId,customInstrumentName]} de l'obra \"{string:extra.title}\"",
292
- "theme.claim.update.title": "Nova partitura de {instrument:extra.[instrumentId,customInstrumentName]}"
292
+ "theme.claim.update.title": "Nova partitura de {instrument:extra.[instrumentId,customInstrumentName]}",
293
+ "offer.applicant.add.text": "{string:user.0.displayName} ha sol·licitat la vacant {string:extra.vacancyName} a {string:group.0.displayName}",
294
+ "offer.applicant.add.title": "Nova sol·licitud de vacant"
293
295
  }
package/lang/de.json CHANGED
@@ -289,5 +289,7 @@
289
289
  "theme.claim.new.text": "{string:user.0.displayName} fordert eine Überprüfung der Noten für {instrument:extra.[instrumentId,customInstrumentName]} von \"{string:extra.title}\"",
290
290
  "theme.claim.new.title": "Ein Musiker hat eine Überprüfung der Noten angefordert",
291
291
  "theme.claim.update.text": "{instrument:extra.[instrumentId,customInstrumentName]} -Noten des Stücks \"{string:extra.title}\" wurden hinzugefügt.",
292
- "theme.claim.update.title": "Neue {instrument:extra.[instrumentId,customInstrumentName]} -Noten"
292
+ "theme.claim.update.title": "Neue {instrument:extra.[instrumentId,customInstrumentName]} -Noten",
293
+ "offer.applicant.add.text": "{string:user.0.displayName} hat sich für die Stelle {string:extra.vacancyName} bei {string:group.0.displayName} beworben",
294
+ "offer.applicant.add.title": "Neue Stellenbewerbung"
293
295
  }
package/lang/en.json CHANGED
@@ -289,5 +289,7 @@
289
289
  "theme.claim.new.text": "{string:user.0.displayName} has claimed a review on {instrument:extra.[instrumentId,customInstrumentName]} for \"{string:extra.title}\"",
290
290
  "theme.claim.new.title": "A music sheet review has been submitted by a musician",
291
291
  "theme.claim.update.text": "{instrument:extra.[instrumentId,customInstrumentName]} sheet for \"{string:extra.title}\" has been added.",
292
- "theme.claim.update.title": "New {instrument:extra.[instrumentId,customInstrumentName]} sheet has been added"
292
+ "theme.claim.update.title": "New {instrument:extra.[instrumentId,customInstrumentName]} sheet has been added",
293
+ "offer.applicant.add.text": "{string:user.0.displayName} applied for the vacancy {string:extra.vacancyName} in {string:group.0.displayName}",
294
+ "offer.applicant.add.title": "New vacancy application"
293
295
  }
package/lang/es.json CHANGED
@@ -289,5 +289,7 @@
289
289
  "theme.claim.new.text": "{string:user.0.displayName} ha reclamado la partitura de {instrument:extra.[instrumentId,customInstrumentName]} de la obra \"{string:extra.title}\"",
290
290
  "theme.claim.new.title": "Han pedido una partitura",
291
291
  "theme.claim.update.text": "Se ha añadido la partitura de {instrument:extra.[instrumentId,customInstrumentName]} de la obra \"{string:extra.title}\"",
292
- "theme.claim.update.title": "Nueva partitura de {instrument:extra.[instrumentId,customInstrumentName]}"
292
+ "theme.claim.update.title": "Nueva partitura de {instrument:extra.[instrumentId,customInstrumentName]}",
293
+ "offer.applicant.add.text": "{string:user.0.displayName} ha solicitado la vacante {string:extra.vacancyName} en {string:group.0.displayName}",
294
+ "offer.applicant.add.title": "Nueva solicitud de vacante"
293
295
  }
package/lang/eu.json CHANGED
@@ -289,5 +289,7 @@
289
289
  "theme.claim.new.text": "{string:user.0.displayName} erabiltzaileak \"{string:extra.title}\" obrako {instrument:extra.[instrumentId,customInstrumentName]} instrumentuaren partitura eskatu du",
290
290
  "theme.claim.new.title": "Partitura bat eskatu da",
291
291
  "theme.claim.update.text": "{instrument:extra.[instrumentId,customInstrumentName]} instrumentuaren partitura gehitu da \"{string:extra.title}\" obrarako",
292
- "theme.claim.update.title": "{instrument:extra.[instrumentId,customInstrumentName]} partitura berria gehitu da"
292
+ "theme.claim.update.title": "{instrument:extra.[instrumentId,customInstrumentName]} partitura berria gehitu da",
293
+ "offer.applicant.add.text": "{string:user.0.displayName} {string:extra.vacancyName} lanposturako eskatu du {string:group.0.displayName} en",
294
+ "offer.applicant.add.title": "Lanpostu eskaera berria"
293
295
  }
package/lang/gl.json CHANGED
@@ -289,5 +289,7 @@
289
289
  "theme.claim.new.text": "{string:user.0.displayName} ha reclamado la partitura de {instrument:extra.[instrumentId,customInstrumentName]} de la obra \"{string:extra.title}\"",
290
290
  "theme.claim.new.title": "Han pedido una partitura",
291
291
  "theme.claim.update.text": "Se ha añadido la partitura de {instrument:extra.[instrumentId,customInstrumentName]} de la obra \"{string:extra.title}\"",
292
- "theme.claim.update.title": "Nueva partitura de {instrument:extra.[instrumentId,customInstrumentName]}"
292
+ "theme.claim.update.title": "Nueva partitura de {instrument:extra.[instrumentId,customInstrumentName]}",
293
+ "offer.applicant.add.text": "{string:user.0.displayName} solicitou a vacante {string:extra.vacancyName} en {string:group.0.displayName}",
294
+ "offer.applicant.add.title": "Nova solicitude de vacante"
293
295
  }
package/lang/pt.json CHANGED
@@ -289,5 +289,7 @@
289
289
  "theme.claim.new.text": "{string:user.0.displayName} uma revisão em {instrument:extra.[instrumentId,customInstrumentName]} para “{string:extra.title}”",
290
290
  "theme.claim.new.title": "Uma revisão da partitura foi enviada por um músico",
291
291
  "theme.claim.update.text": "A partitura {instrument:extra.[instrumentId,customInstrumentName]} da obra “{string:extra.title}” foi adicionada.",
292
- "theme.claim.update.title": "Nova partitura {instrument:extra.[instrumentId,customInstrumentName]} foi adicionada"
292
+ "theme.claim.update.title": "Nova partitura {instrument:extra.[instrumentId,customInstrumentName]} foi adicionada",
293
+ "offer.applicant.add.text": "{string:user.0.displayName} candidatou-se à vaga {string:extra.vacancyName} em {string:group.0.displayName}",
294
+ "offer.applicant.add.title": "Nova candidatura à vaga"
293
295
  }
@@ -96,5 +96,6 @@ export declare enum NotificationActions {
96
96
  GroupOnboardingAttendance = "group.onboarding.attendance",
97
97
  GroupOnboardingInvite = "group.onboarding.invite",
98
98
  GroupOnboardingDashboard = "group.onboarding.dashboard",
99
- GroupOnboardingEngagement = "group.onboarding.engagement"
99
+ GroupOnboardingEngagement = "group.onboarding.engagement",
100
+ OfferApplicantAdd = "offer.applicant.add"
100
101
  }
@@ -94,4 +94,5 @@ var NotificationActions;
94
94
  NotificationActions["GroupOnboardingInvite"] = "group.onboarding.invite";
95
95
  NotificationActions["GroupOnboardingDashboard"] = "group.onboarding.dashboard";
96
96
  NotificationActions["GroupOnboardingEngagement"] = "group.onboarding.engagement";
97
+ NotificationActions["OfferApplicantAdd"] = "offer.applicant.add";
97
98
  })(NotificationActions = exports.NotificationActions || (exports.NotificationActions = {}));
@@ -36,4 +36,5 @@ export default class Offer extends ModelWithLang<OfferData> {
36
36
  get deletedBy(): string | null;
37
37
  get isDeleted(): boolean;
38
38
  get isActive(): boolean;
39
+ get views(): number;
39
40
  }
@@ -102,5 +102,8 @@ class Offer extends lang_2.default {
102
102
  get isActive() {
103
103
  return !this.isDeleted;
104
104
  }
105
+ get views() {
106
+ return this.data.views || 0;
107
+ }
105
108
  }
106
109
  exports.default = Offer;
@@ -50,6 +50,7 @@ export interface OfferData {
50
50
  updatedBy: string;
51
51
  deletedAt: Timestamp | null;
52
52
  deletedBy: string | null;
53
+ views: number;
53
54
  readonly createdAt: Timestamp;
54
55
  readonly createdBy: string;
55
56
  readonly createdOn: CreatedOn;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissandoo/lib",
3
- "version": "1.90.1",
3
+ "version": "1.92.0",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",