@glissandoo/lib 1.86.0 → 1.87.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.
@@ -1,60 +1,60 @@
1
1
  export declare enum FbFunctionName {
2
2
  Auth = "auth",
3
+ CommunicationCommentPublish = "communicationComment-publish",
4
+ CommunicationEdit = "communication-edit",
5
+ CommunicationPublish = "communication-publish",
6
+ CommunicationRemove = "communication-remove",
3
7
  CustomerAddConfirmedAdmin = "customer-addConfirmedAdmin",
4
- CustomerPublish = "customer-publish",
5
8
  CustomerCreate = "customer-create",
6
- CustomerRemove = "customer-remove",
7
9
  CustomerEdit = "customer-edit",
8
10
  CustomerGetByGroup = "customer-getByGroup",
9
11
  CustomerGetByUser = "customer-getByUser",
10
- CustomerGetInvoices = "customer-getInvoices",
11
12
  CustomerGetGocardlessMandate = "customer-getGocardlessMandate",
13
+ CustomerGetInvoices = "customer-getInvoices",
14
+ CustomerGroupAdd = "customerGroup-add",
15
+ CustomerGroupRemove = "customerGroup-remove",
16
+ CustomerGroupSetPlan = "customerGroup-setPlan",
17
+ CustomerGroupUpgradeSubscription = "customerGroup-upgradeSubscription",
12
18
  CustomerOnUpdate = "customer-onUpdate",
19
+ CustomerPublish = "customer-publish",
20
+ CustomerRemove = "customer-remove",
13
21
  CustomerRemoveAdmin = "customer-removeAdmin",
14
- CustomerStripeSession = "customer-stripeSession",
15
22
  CustomerStripeBillingPortal = "customer-stripeBillingPortal",
23
+ CustomerStripeSession = "customer-stripeSession",
16
24
  CustomerUpgradePlan = "customer-upgradePlan",
17
- CustomerGroupAdd = "customerGroup-add",
18
- CustomerGroupSetPlan = "customerGroup-setPlan",
19
- CustomerGroupRemove = "customerGroup-remove",
20
- CustomerGroupUpgradeSubscription = "customerGroup-upgradeSubscription",
21
- CommunicationCommentPublish = "communicationComment-publish",
22
- CommunicationEdit = "communication-edit",
23
- CommunicationPublish = "communication-publish",
24
- CommunicationRemove = "communication-remove",
25
- EventGetById = "event-getById",
25
+ EventCloseSelection = "event-closeSelection",
26
26
  EventEdit = "event-edit",
27
27
  EventEditDatetime = "event-editDatetime",
28
28
  EventEditResponseDeadline = "event-editResponseDeadline",
29
+ EventGetById = "event-getById",
29
30
  EventNotifyPendingPlayers = "event-notifyPendingPlayers",
30
- EventCloseSelection = "event-closeSelection",
31
31
  EventOnCreate = "event-onCreate",
32
32
  EventOnUpdate = "event-onUpdate",
33
33
  EventPlayerEdit = "eventPlayer-edit",
34
- EventPlayerSwitchAssistance = "eventPlayer-switchAssistance",
35
34
  EventPlayerEditPlayerAttendance = "eventPlayer-editPlayerAttendance",
35
+ EventPlayerEditPlayerInterest = "eventPlayer-editPlayerInterest",
36
36
  EventPlayerSetReasonAttendance = "eventPlayer-setReasonAttendance",
37
+ EventPlayerSwitchAssistance = "eventPlayer-switchAssistance",
37
38
  EventPlayerSwitchInterest = "eventPlayer-switchInterest",
38
- EventPlayerEditPlayerInterest = "eventPlayer-editPlayerInterest",
39
39
  EventPlayerValidateRollCall = "eventPlayer-validateRollCall",
40
40
  EventPublish = "event-publish",
41
41
  EventRemove = "event-remove",
42
- EventRepertoryDownloadPdf = "eventRepertory-downloadPdf",
43
42
  EventRepertoryDownload = "eventRepertory-download",
43
+ EventRepertoryDownloadPdf = "eventRepertory-downloadPdf",
44
44
  EventRepertoryEdit = "eventRepertory-edit",
45
45
  EventSetRollcall = "event-setRollCall",
46
46
  FederationAddConfirmedAdmin = "federation-addConfirmedAdmin",
47
47
  FederationAddPendingAdmin = "federation-addPendingAdmin",
48
- FederationGetConfederation = "federation-getConfederation",
49
48
  FederationConfirmAdmin = "federation-confirmAdmin",
50
49
  FederationCreate = "federation-create",
51
50
  FederationEdit = "federation-edit",
51
+ FederationGetConfederation = "federation-getConfederation",
52
52
  FederationGetEvents = "federation-getEvents",
53
53
  FederationPartnershipAdd = "federationPartnership-add",
54
54
  FederationPartnershipAddManual = "federationPartnership-addManual",
55
55
  FederationPartnershipConnect = "federationPartnership-connect",
56
- FederationPartnershipEditManual = "federationPartnership-editManual",
57
56
  FederationPartnershipEditCountManual = "federationPartnership-editCountManual",
57
+ FederationPartnershipEditManual = "federationPartnership-editManual",
58
58
  FederationPartnershipGetByToken = "federationPartnership-getByToken",
59
59
  FederationPartnershipRemove = "federationPartnership-remove",
60
60
  FederationPartnershipRemoveManual = "federationPartnership-removeManual",
@@ -64,8 +64,8 @@ export declare enum FbFunctionName {
64
64
  GroupChangeStatus = "group-changeStatus",
65
65
  GroupCronSatistactionIndexWeekly = "group-cronSatistactionIndexWeekly",
66
66
  GroupEdit = "group-edit",
67
- GroupEditTemplate = "group-editTemplate",
68
67
  GroupEditInstruments = "group-editInstruments",
68
+ GroupEditTemplate = "group-editTemplate",
69
69
  GroupGetById = "group-getById",
70
70
  GroupOnboardingMessages = "group-onboardingMessages",
71
71
  GroupOnCreate = "group-onCreate",
@@ -81,57 +81,59 @@ export declare enum FbFunctionName {
81
81
  GroupPublish = "group-publish",
82
82
  GroupRemove = "group-remove",
83
83
  GroupRepertoryClaimMusicSheet = "groupRepertory-claimMusicSheet",
84
- GroupRepertoryDownloadThemeFiles = "groupRepertory-downloadThemeFiles",
84
+ GroupRepertoryCloneBetweenGroups = "groupRepertory-cloneBetweenGroups",
85
85
  GroupRepertoryDownloadFilesBySection = "groupRepertory-downloadFilesBySection",
86
+ GroupRepertoryDownloadThemeFiles = "groupRepertory-downloadThemeFiles",
86
87
  GroupRepertoryEdit = "groupRepertory-edit",
87
- GroupRepertoryCloneBetweenGroups = "groupRepertory-cloneBetweenGroups",
88
88
  GroupRepertoryIdentifyInstruments = "groupRepertory-identifyInstruments",
89
89
  GroupRepertoryIdentifyInstrumentsFromFileNames = "groupRepertory-identifyInstrumentsFromFileNames",
90
90
  GroupRepertoryOnCreate = "groupRepertory-onCreate",
91
91
  GroupRepertoryOnUpdate = "groupRepertory-onUpdate",
92
92
  GroupRepertoryPublish = "groupRepertory-publish",
93
- GroupRepertoryRemove = "groupRepertory-remove",
94
93
  GroupRepertoryRate = "groupRepertory-rate",
94
+ GroupRepertoryRemove = "groupRepertory-remove",
95
95
  GroupSendInvitationEmail = "group-sendInvitationEmail",
96
96
  JWTGenerate = "jwt-generate",
97
97
  MetricsWeekly = "metrics-weekly",
98
98
  MiscAddSubscriber = "misc-addSubscriber",
99
+ MiscHandleActiveCampaignAutomationContacts = "misc-handleActiveCampaignAutomationContacts",
99
100
  MiscScheduledFirestoreExport = "misc-scheduledFirestoreExport",
100
101
  MiscValidateUsername = "misc-validateUsername",
101
- MiscHandleActiveCampaignAutomationContacts = "misc-handleActiveCampaignAutomationContacts",
102
102
  NotificationMarkAllAsReaded = "notification-markAllAsReaded",
103
+ OfferApplicantAdd = "offerApplicant-add",
104
+ OfferApplicantEdit = "offerApplicant-edit",
105
+ OfferApplicantRemove = "offerApplicant-remove",
106
+ OfferCloseSelection = "offer-closeSelection",
107
+ OfferEdit = "offer-edit",
108
+ OfferOnUpdate = "offer-onUpdate",
109
+ OfferPublish = "offer-publish",
110
+ OfferRemove = "offer-remove",
111
+ OfferReopenSelection = "offer-reopenSelection",
112
+ OfferSelectApplicant = "offer-selectApplicant",
113
+ OfferViewApplicant = "offer-viewApplicant",
103
114
  PartnershipAddConfirmedAdmin = "partnership-addConfirmedAdmin",
104
115
  PartnershipCreate = "partnership-create",
105
- PartnershipRemove = "partnership-remove",
106
116
  PartnershipEdit = "partnership-edit",
107
- PartnershipOnUpdate = "partnership-onUpdate",
108
- PartnershipRemoveAdmin = "partnership-removeAdmin",
109
117
  PartnershipGroupAdd = "partnershipGroup-add",
110
118
  PartnershipGroupRemove = "partnershipGroup-remove",
111
- ReminderResponseDeadlineSoon = "reminder-responseDeadlineSoon",
119
+ PartnershipOnUpdate = "partnership-onUpdate",
120
+ PartnershipRemove = "partnership-remove",
121
+ PartnershipRemoveAdmin = "partnership-removeAdmin",
122
+ ReminderBiweeklyEventsEmail = "reminder-biweeklyEventsEmail",
112
123
  ReminderDatetime = "reminder-datetime",
113
- ReminderRollCall = "reminder-rollCall",
114
124
  ReminderResponseDeadlineEnded = "reminder-responseDeadlineEnded",
115
- ReminderBiweeklyEventsEmail = "reminder-biweeklyEventsEmail",
125
+ ReminderResponseDeadlineSoon = "reminder-responseDeadlineSoon",
126
+ ReminderRollCall = "reminder-rollCall",
127
+ UserJoinEvent = "user-joinEvent",
116
128
  UserOnCreateDoc = "user-onCreateDoc",
117
129
  UserOnLogin = "user-onLogin",
118
130
  UserOnSignUp = "user-onSignUp",
119
131
  UserOnUpdate = "user-onUpdate",
120
132
  UserRegister = "user-register",
121
133
  UserRemove = "user-remove",
122
- UserJoinEvent = "user-joinEvent",
123
134
  UserSendYearWrapped = "user-sendYearWrapped",
124
- OfferPublish = "offer-publish",
125
- OfferEdit = "offer-edit",
126
- OfferEditSelection = "offer-editSelection",
127
- OfferOnUpdate = "offer-onUpdate",
128
- OfferCloseSelection = "offer-closeSelection",
129
- OfferRemove = "offer-remove",
130
- OfferApplicantAdd = "offerApplicant-add",
131
- OfferApplicantEdit = "offerApplicant-edit",
132
- OfferApplicantRemove = "offerApplicant-remove",
133
- WebhookStripe = "webhook-stripe",
135
+ WebhookEventOnCreate = "webhookEvent-onCreate",
134
136
  WebhookGocardless = "webhook-gocardless",
135
137
  WebhookMessagebird = "webhook-messagebird",
136
- WebhookEventOnCreate = "webhookEvent-onCreate"
138
+ WebhookStripe = "webhook-stripe"
137
139
  }
@@ -4,61 +4,61 @@ exports.FbFunctionName = void 0;
4
4
  var FbFunctionName;
5
5
  (function (FbFunctionName) {
6
6
  FbFunctionName["Auth"] = "auth";
7
+ FbFunctionName["CommunicationCommentPublish"] = "communicationComment-publish";
8
+ FbFunctionName["CommunicationEdit"] = "communication-edit";
9
+ FbFunctionName["CommunicationPublish"] = "communication-publish";
10
+ FbFunctionName["CommunicationRemove"] = "communication-remove";
7
11
  FbFunctionName["CustomerAddConfirmedAdmin"] = "customer-addConfirmedAdmin";
8
- FbFunctionName["CustomerPublish"] = "customer-publish";
9
12
  FbFunctionName["CustomerCreate"] = "customer-create";
10
- FbFunctionName["CustomerRemove"] = "customer-remove";
11
13
  FbFunctionName["CustomerEdit"] = "customer-edit";
12
14
  FbFunctionName["CustomerGetByGroup"] = "customer-getByGroup";
13
15
  FbFunctionName["CustomerGetByUser"] = "customer-getByUser";
14
- FbFunctionName["CustomerGetInvoices"] = "customer-getInvoices";
15
16
  FbFunctionName["CustomerGetGocardlessMandate"] = "customer-getGocardlessMandate";
17
+ FbFunctionName["CustomerGetInvoices"] = "customer-getInvoices";
18
+ FbFunctionName["CustomerGroupAdd"] = "customerGroup-add";
19
+ FbFunctionName["CustomerGroupRemove"] = "customerGroup-remove";
20
+ FbFunctionName["CustomerGroupSetPlan"] = "customerGroup-setPlan";
21
+ FbFunctionName["CustomerGroupUpgradeSubscription"] = "customerGroup-upgradeSubscription";
16
22
  FbFunctionName["CustomerOnUpdate"] = "customer-onUpdate";
23
+ FbFunctionName["CustomerPublish"] = "customer-publish";
24
+ FbFunctionName["CustomerRemove"] = "customer-remove";
17
25
  FbFunctionName["CustomerRemoveAdmin"] = "customer-removeAdmin";
18
- FbFunctionName["CustomerStripeSession"] = "customer-stripeSession";
19
26
  FbFunctionName["CustomerStripeBillingPortal"] = "customer-stripeBillingPortal";
27
+ FbFunctionName["CustomerStripeSession"] = "customer-stripeSession";
20
28
  FbFunctionName["CustomerUpgradePlan"] = "customer-upgradePlan";
21
- FbFunctionName["CustomerGroupAdd"] = "customerGroup-add";
22
- FbFunctionName["CustomerGroupSetPlan"] = "customerGroup-setPlan";
23
- FbFunctionName["CustomerGroupRemove"] = "customerGroup-remove";
24
- FbFunctionName["CustomerGroupUpgradeSubscription"] = "customerGroup-upgradeSubscription";
25
- FbFunctionName["CommunicationCommentPublish"] = "communicationComment-publish";
26
- FbFunctionName["CommunicationEdit"] = "communication-edit";
27
- FbFunctionName["CommunicationPublish"] = "communication-publish";
28
- FbFunctionName["CommunicationRemove"] = "communication-remove";
29
- FbFunctionName["EventGetById"] = "event-getById";
29
+ FbFunctionName["EventCloseSelection"] = "event-closeSelection";
30
30
  FbFunctionName["EventEdit"] = "event-edit";
31
31
  FbFunctionName["EventEditDatetime"] = "event-editDatetime";
32
32
  FbFunctionName["EventEditResponseDeadline"] = "event-editResponseDeadline";
33
+ FbFunctionName["EventGetById"] = "event-getById";
33
34
  FbFunctionName["EventNotifyPendingPlayers"] = "event-notifyPendingPlayers";
34
- FbFunctionName["EventCloseSelection"] = "event-closeSelection";
35
35
  FbFunctionName["EventOnCreate"] = "event-onCreate";
36
36
  FbFunctionName["EventOnUpdate"] = "event-onUpdate";
37
37
  FbFunctionName["EventPlayerEdit"] = "eventPlayer-edit";
38
- FbFunctionName["EventPlayerSwitchAssistance"] = "eventPlayer-switchAssistance";
39
38
  FbFunctionName["EventPlayerEditPlayerAttendance"] = "eventPlayer-editPlayerAttendance";
39
+ FbFunctionName["EventPlayerEditPlayerInterest"] = "eventPlayer-editPlayerInterest";
40
40
  FbFunctionName["EventPlayerSetReasonAttendance"] = "eventPlayer-setReasonAttendance";
41
+ FbFunctionName["EventPlayerSwitchAssistance"] = "eventPlayer-switchAssistance";
41
42
  FbFunctionName["EventPlayerSwitchInterest"] = "eventPlayer-switchInterest";
42
- FbFunctionName["EventPlayerEditPlayerInterest"] = "eventPlayer-editPlayerInterest";
43
43
  FbFunctionName["EventPlayerValidateRollCall"] = "eventPlayer-validateRollCall";
44
44
  FbFunctionName["EventPublish"] = "event-publish";
45
45
  FbFunctionName["EventRemove"] = "event-remove";
46
- FbFunctionName["EventRepertoryDownloadPdf"] = "eventRepertory-downloadPdf";
47
46
  FbFunctionName["EventRepertoryDownload"] = "eventRepertory-download";
47
+ FbFunctionName["EventRepertoryDownloadPdf"] = "eventRepertory-downloadPdf";
48
48
  FbFunctionName["EventRepertoryEdit"] = "eventRepertory-edit";
49
49
  FbFunctionName["EventSetRollcall"] = "event-setRollCall";
50
50
  FbFunctionName["FederationAddConfirmedAdmin"] = "federation-addConfirmedAdmin";
51
51
  FbFunctionName["FederationAddPendingAdmin"] = "federation-addPendingAdmin";
52
- FbFunctionName["FederationGetConfederation"] = "federation-getConfederation";
53
52
  FbFunctionName["FederationConfirmAdmin"] = "federation-confirmAdmin";
54
53
  FbFunctionName["FederationCreate"] = "federation-create";
55
54
  FbFunctionName["FederationEdit"] = "federation-edit";
55
+ FbFunctionName["FederationGetConfederation"] = "federation-getConfederation";
56
56
  FbFunctionName["FederationGetEvents"] = "federation-getEvents";
57
57
  FbFunctionName["FederationPartnershipAdd"] = "federationPartnership-add";
58
58
  FbFunctionName["FederationPartnershipAddManual"] = "federationPartnership-addManual";
59
59
  FbFunctionName["FederationPartnershipConnect"] = "federationPartnership-connect";
60
- FbFunctionName["FederationPartnershipEditManual"] = "federationPartnership-editManual";
61
60
  FbFunctionName["FederationPartnershipEditCountManual"] = "federationPartnership-editCountManual";
61
+ FbFunctionName["FederationPartnershipEditManual"] = "federationPartnership-editManual";
62
62
  FbFunctionName["FederationPartnershipGetByToken"] = "federationPartnership-getByToken";
63
63
  FbFunctionName["FederationPartnershipRemove"] = "federationPartnership-remove";
64
64
  FbFunctionName["FederationPartnershipRemoveManual"] = "federationPartnership-removeManual";
@@ -68,8 +68,8 @@ var FbFunctionName;
68
68
  FbFunctionName["GroupChangeStatus"] = "group-changeStatus";
69
69
  FbFunctionName["GroupCronSatistactionIndexWeekly"] = "group-cronSatistactionIndexWeekly";
70
70
  FbFunctionName["GroupEdit"] = "group-edit";
71
- FbFunctionName["GroupEditTemplate"] = "group-editTemplate";
72
71
  FbFunctionName["GroupEditInstruments"] = "group-editInstruments";
72
+ FbFunctionName["GroupEditTemplate"] = "group-editTemplate";
73
73
  FbFunctionName["GroupGetById"] = "group-getById";
74
74
  FbFunctionName["GroupOnboardingMessages"] = "group-onboardingMessages";
75
75
  FbFunctionName["GroupOnCreate"] = "group-onCreate";
@@ -85,57 +85,59 @@ var FbFunctionName;
85
85
  FbFunctionName["GroupPublish"] = "group-publish";
86
86
  FbFunctionName["GroupRemove"] = "group-remove";
87
87
  FbFunctionName["GroupRepertoryClaimMusicSheet"] = "groupRepertory-claimMusicSheet";
88
- FbFunctionName["GroupRepertoryDownloadThemeFiles"] = "groupRepertory-downloadThemeFiles";
88
+ FbFunctionName["GroupRepertoryCloneBetweenGroups"] = "groupRepertory-cloneBetweenGroups";
89
89
  FbFunctionName["GroupRepertoryDownloadFilesBySection"] = "groupRepertory-downloadFilesBySection";
90
+ FbFunctionName["GroupRepertoryDownloadThemeFiles"] = "groupRepertory-downloadThemeFiles";
90
91
  FbFunctionName["GroupRepertoryEdit"] = "groupRepertory-edit";
91
- FbFunctionName["GroupRepertoryCloneBetweenGroups"] = "groupRepertory-cloneBetweenGroups";
92
92
  FbFunctionName["GroupRepertoryIdentifyInstruments"] = "groupRepertory-identifyInstruments";
93
93
  FbFunctionName["GroupRepertoryIdentifyInstrumentsFromFileNames"] = "groupRepertory-identifyInstrumentsFromFileNames";
94
94
  FbFunctionName["GroupRepertoryOnCreate"] = "groupRepertory-onCreate";
95
95
  FbFunctionName["GroupRepertoryOnUpdate"] = "groupRepertory-onUpdate";
96
96
  FbFunctionName["GroupRepertoryPublish"] = "groupRepertory-publish";
97
- FbFunctionName["GroupRepertoryRemove"] = "groupRepertory-remove";
98
97
  FbFunctionName["GroupRepertoryRate"] = "groupRepertory-rate";
98
+ FbFunctionName["GroupRepertoryRemove"] = "groupRepertory-remove";
99
99
  FbFunctionName["GroupSendInvitationEmail"] = "group-sendInvitationEmail";
100
100
  FbFunctionName["JWTGenerate"] = "jwt-generate";
101
101
  FbFunctionName["MetricsWeekly"] = "metrics-weekly";
102
102
  FbFunctionName["MiscAddSubscriber"] = "misc-addSubscriber";
103
+ FbFunctionName["MiscHandleActiveCampaignAutomationContacts"] = "misc-handleActiveCampaignAutomationContacts";
103
104
  FbFunctionName["MiscScheduledFirestoreExport"] = "misc-scheduledFirestoreExport";
104
105
  FbFunctionName["MiscValidateUsername"] = "misc-validateUsername";
105
- FbFunctionName["MiscHandleActiveCampaignAutomationContacts"] = "misc-handleActiveCampaignAutomationContacts";
106
106
  FbFunctionName["NotificationMarkAllAsReaded"] = "notification-markAllAsReaded";
107
+ FbFunctionName["OfferApplicantAdd"] = "offerApplicant-add";
108
+ FbFunctionName["OfferApplicantEdit"] = "offerApplicant-edit";
109
+ FbFunctionName["OfferApplicantRemove"] = "offerApplicant-remove";
110
+ FbFunctionName["OfferCloseSelection"] = "offer-closeSelection";
111
+ FbFunctionName["OfferEdit"] = "offer-edit";
112
+ FbFunctionName["OfferOnUpdate"] = "offer-onUpdate";
113
+ FbFunctionName["OfferPublish"] = "offer-publish";
114
+ FbFunctionName["OfferRemove"] = "offer-remove";
115
+ FbFunctionName["OfferReopenSelection"] = "offer-reopenSelection";
116
+ FbFunctionName["OfferSelectApplicant"] = "offer-selectApplicant";
117
+ FbFunctionName["OfferViewApplicant"] = "offer-viewApplicant";
107
118
  FbFunctionName["PartnershipAddConfirmedAdmin"] = "partnership-addConfirmedAdmin";
108
119
  FbFunctionName["PartnershipCreate"] = "partnership-create";
109
- FbFunctionName["PartnershipRemove"] = "partnership-remove";
110
120
  FbFunctionName["PartnershipEdit"] = "partnership-edit";
111
- FbFunctionName["PartnershipOnUpdate"] = "partnership-onUpdate";
112
- FbFunctionName["PartnershipRemoveAdmin"] = "partnership-removeAdmin";
113
121
  FbFunctionName["PartnershipGroupAdd"] = "partnershipGroup-add";
114
122
  FbFunctionName["PartnershipGroupRemove"] = "partnershipGroup-remove";
115
- FbFunctionName["ReminderResponseDeadlineSoon"] = "reminder-responseDeadlineSoon";
123
+ FbFunctionName["PartnershipOnUpdate"] = "partnership-onUpdate";
124
+ FbFunctionName["PartnershipRemove"] = "partnership-remove";
125
+ FbFunctionName["PartnershipRemoveAdmin"] = "partnership-removeAdmin";
126
+ FbFunctionName["ReminderBiweeklyEventsEmail"] = "reminder-biweeklyEventsEmail";
116
127
  FbFunctionName["ReminderDatetime"] = "reminder-datetime";
117
- FbFunctionName["ReminderRollCall"] = "reminder-rollCall";
118
128
  FbFunctionName["ReminderResponseDeadlineEnded"] = "reminder-responseDeadlineEnded";
119
- FbFunctionName["ReminderBiweeklyEventsEmail"] = "reminder-biweeklyEventsEmail";
129
+ FbFunctionName["ReminderResponseDeadlineSoon"] = "reminder-responseDeadlineSoon";
130
+ FbFunctionName["ReminderRollCall"] = "reminder-rollCall";
131
+ FbFunctionName["UserJoinEvent"] = "user-joinEvent";
120
132
  FbFunctionName["UserOnCreateDoc"] = "user-onCreateDoc";
121
133
  FbFunctionName["UserOnLogin"] = "user-onLogin";
122
134
  FbFunctionName["UserOnSignUp"] = "user-onSignUp";
123
135
  FbFunctionName["UserOnUpdate"] = "user-onUpdate";
124
136
  FbFunctionName["UserRegister"] = "user-register";
125
137
  FbFunctionName["UserRemove"] = "user-remove";
126
- FbFunctionName["UserJoinEvent"] = "user-joinEvent";
127
138
  FbFunctionName["UserSendYearWrapped"] = "user-sendYearWrapped";
128
- FbFunctionName["OfferPublish"] = "offer-publish";
129
- FbFunctionName["OfferEdit"] = "offer-edit";
130
- FbFunctionName["OfferEditSelection"] = "offer-editSelection";
131
- FbFunctionName["OfferOnUpdate"] = "offer-onUpdate";
132
- FbFunctionName["OfferCloseSelection"] = "offer-closeSelection";
133
- FbFunctionName["OfferRemove"] = "offer-remove";
134
- FbFunctionName["OfferApplicantAdd"] = "offerApplicant-add";
135
- FbFunctionName["OfferApplicantEdit"] = "offerApplicant-edit";
136
- FbFunctionName["OfferApplicantRemove"] = "offerApplicant-remove";
137
- FbFunctionName["WebhookStripe"] = "webhook-stripe";
139
+ FbFunctionName["WebhookEventOnCreate"] = "webhookEvent-onCreate";
138
140
  FbFunctionName["WebhookGocardless"] = "webhook-gocardless";
139
141
  FbFunctionName["WebhookMessagebird"] = "webhook-messagebird";
140
- FbFunctionName["WebhookEventOnCreate"] = "webhookEvent-onCreate";
142
+ FbFunctionName["WebhookStripe"] = "webhook-stripe";
141
143
  })(FbFunctionName = exports.FbFunctionName || (exports.FbFunctionName = {}));
@@ -1,27 +1,48 @@
1
- import { InstrumentId } from '../helpers/instruments';
1
+ import { DefaultInstrumentId } from '../helpers/instruments';
2
+ import { Descendant } from '../helpers/slate';
2
3
  import { OfferType } from '../models/Offer/types';
3
4
  export declare namespace OfferFbFunctionsTypes {
4
5
  interface PublishParams {
5
6
  offerId: string;
6
7
  title: string;
7
- description: string;
8
- instrument: InstrumentId;
8
+ description: Descendant[];
9
+ instrument: DefaultInstrumentId;
10
+ locality: string;
11
+ location: {
12
+ _latitude: number;
13
+ _longitude: number;
14
+ };
15
+ country: string;
9
16
  type: OfferType;
10
17
  group: string;
11
18
  event: string | null;
12
19
  deadlineAt: number | null;
20
+ timezone: string;
13
21
  }
14
22
  type PublishResult = void;
15
- type EditParams = Pick<PublishParams, 'offerId' | 'title' | 'description' | 'deadlineAt'>;
23
+ type EditParams = Omit<PublishParams, 'instrument' | 'type' | 'group' | 'event'>;
16
24
  type EditResult = void;
17
- interface EditSelectionParams {
25
+ interface SelectApplicantParams {
26
+ offerId: string;
27
+ userId: string;
28
+ }
29
+ type SelectApplicantResult = void;
30
+ interface ViewApplicantParams {
31
+ offerId: string;
32
+ userId: string;
33
+ }
34
+ type ViewApplicantResult = void;
35
+ interface CloseSelectionParams {
18
36
  offerId: string;
19
- selectedApplicantsIds: string[];
20
- discardedApplicantsIds: string[];
21
37
  }
22
- type EditSelectionResult = void;
23
- type CloseSelectionParams = Pick<PublishParams, 'offerId'>;
24
38
  type CloseSelectionResult = void;
25
- type RemoveParams = Pick<PublishParams, 'offerId'>;
39
+ interface ReopenSelectionParams {
40
+ offerId: string;
41
+ deadlineAt: number;
42
+ }
43
+ type ReopenSelectionResult = void;
44
+ interface RemoveParams {
45
+ offerId: string;
46
+ }
26
47
  type RemoveResult = void;
27
48
  }
@@ -1,12 +1,13 @@
1
1
  export declare namespace OfferApplicantFbFunctionsTypes {
2
2
  interface AddParams {
3
3
  offerId: string;
4
- userId: string;
5
- message: string | null;
4
+ message: string;
6
5
  }
7
6
  type AddResult = void;
8
7
  type EditParams = AddParams;
9
8
  type EditResult = void;
10
- type RemoveParams = Pick<AddParams, 'offerId' | 'userId'>;
9
+ interface RemoveParams {
10
+ offerId: string;
11
+ }
11
12
  type RemoveResult = void;
12
13
  }
@@ -10,141 +10,143 @@ var GCloudRegions;
10
10
  })(GCloudRegions = exports.GCloudRegions || (exports.GCloudRegions = {}));
11
11
  const defaultRegion = GCloudRegions.UsCentral1;
12
12
  const regionByFunctions = {
13
- [index_1.FbFunctionName.UserRegister]: GCloudRegions.UsCentral1,
14
- [index_1.FbFunctionName.UserOnCreateDoc]: GCloudRegions.UsCentral1,
15
- [index_1.FbFunctionName.UserOnUpdate]: GCloudRegions.UsCentral1,
16
- [index_1.FbFunctionName.UserRemove]: GCloudRegions.EuropeWest6,
17
- [index_1.FbFunctionName.UserJoinEvent]: GCloudRegions.EuropeWest6,
18
- [index_1.FbFunctionName.UserOnLogin]: GCloudRegions.EuropeWest6,
19
- [index_1.FbFunctionName.UserOnSignUp]: GCloudRegions.EuropeWest6,
20
- [index_1.FbFunctionName.UserSendYearWrapped]: GCloudRegions.EuropeWest6,
13
+ [index_1.FbFunctionName.Auth]: GCloudRegions.UsCentral1,
14
+ [index_1.FbFunctionName.CommunicationCommentPublish]: GCloudRegions.EuropeWest6,
15
+ [index_1.FbFunctionName.CommunicationEdit]: GCloudRegions.UsCentral1,
16
+ [index_1.FbFunctionName.CommunicationPublish]: GCloudRegions.UsCentral1,
17
+ [index_1.FbFunctionName.CommunicationRemove]: GCloudRegions.UsCentral1,
21
18
  [index_1.FbFunctionName.CustomerAddConfirmedAdmin]: GCloudRegions.EuropeWest6,
22
- [index_1.FbFunctionName.CustomerPublish]: GCloudRegions.EuropeWest6,
23
19
  [index_1.FbFunctionName.CustomerCreate]: GCloudRegions.EuropeWest6,
24
- [index_1.FbFunctionName.CustomerRemove]: GCloudRegions.EuropeWest6,
25
20
  [index_1.FbFunctionName.CustomerEdit]: GCloudRegions.EuropeWest6,
26
21
  [index_1.FbFunctionName.CustomerGetByGroup]: GCloudRegions.EuropeWest6,
27
22
  [index_1.FbFunctionName.CustomerGetByUser]: GCloudRegions.EuropeWest6,
28
- [index_1.FbFunctionName.CustomerGetInvoices]: GCloudRegions.EuropeWest6,
29
23
  [index_1.FbFunctionName.CustomerGetGocardlessMandate]: GCloudRegions.EuropeWest6,
24
+ [index_1.FbFunctionName.CustomerGetInvoices]: GCloudRegions.EuropeWest6,
25
+ [index_1.FbFunctionName.CustomerGroupAdd]: GCloudRegions.EuropeWest6,
26
+ [index_1.FbFunctionName.CustomerGroupRemove]: GCloudRegions.EuropeWest6,
27
+ [index_1.FbFunctionName.CustomerGroupSetPlan]: GCloudRegions.EuropeWest6,
28
+ [index_1.FbFunctionName.CustomerGroupUpgradeSubscription]: GCloudRegions.EuropeWest6,
30
29
  [index_1.FbFunctionName.CustomerOnUpdate]: GCloudRegions.EuropeWest6,
30
+ [index_1.FbFunctionName.CustomerPublish]: GCloudRegions.EuropeWest6,
31
+ [index_1.FbFunctionName.CustomerRemove]: GCloudRegions.EuropeWest6,
31
32
  [index_1.FbFunctionName.CustomerRemoveAdmin]: GCloudRegions.EuropeWest6,
32
- [index_1.FbFunctionName.CustomerStripeSession]: GCloudRegions.EuropeWest6,
33
33
  [index_1.FbFunctionName.CustomerStripeBillingPortal]: GCloudRegions.EuropeWest6,
34
+ [index_1.FbFunctionName.CustomerStripeSession]: GCloudRegions.EuropeWest6,
34
35
  [index_1.FbFunctionName.CustomerUpgradePlan]: GCloudRegions.EuropeWest6,
35
- [index_1.FbFunctionName.CustomerGroupAdd]: GCloudRegions.EuropeWest6,
36
- [index_1.FbFunctionName.CustomerGroupSetPlan]: GCloudRegions.EuropeWest6,
37
- [index_1.FbFunctionName.CustomerGroupRemove]: GCloudRegions.EuropeWest6,
38
- [index_1.FbFunctionName.CustomerGroupUpgradeSubscription]: GCloudRegions.EuropeWest6,
39
- [index_1.FbFunctionName.JWTGenerate]: GCloudRegions.EuropeWest6,
40
- [index_1.FbFunctionName.GroupPublish]: GCloudRegions.EuropeWest6,
41
- [index_1.FbFunctionName.GroupEdit]: GCloudRegions.EuropeWest6,
42
- [index_1.FbFunctionName.GroupEditInstruments]: GCloudRegions.EuropeWest6,
43
- [index_1.FbFunctionName.GroupEditTemplate]: GCloudRegions.EuropeWest6,
44
- [index_1.FbFunctionName.GroupRemove]: GCloudRegions.UsCentral1,
45
- [index_1.FbFunctionName.GroupChangeStatus]: GCloudRegions.EuropeWest6,
46
- [index_1.FbFunctionName.GroupOnboardingMessages]: GCloudRegions.EuropeWest6,
47
- [index_1.FbFunctionName.GroupOnCreate]: GCloudRegions.UsCentral1,
48
- [index_1.FbFunctionName.GroupOnUpdate]: GCloudRegions.UsCentral1,
49
- [index_1.FbFunctionName.GroupGetById]: GCloudRegions.EuropeWest6,
50
- [index_1.FbFunctionName.GroupSendInvitationEmail]: GCloudRegions.EuropeWest6,
51
- [index_1.FbFunctionName.GroupPlayerUpdateInstruments]: GCloudRegions.UsCentral1,
52
- [index_1.FbFunctionName.GroupPlayerAdd]: GCloudRegions.UsCentral1,
53
- [index_1.FbFunctionName.GroupPlayerJoin]: GCloudRegions.UsCentral1,
54
- [index_1.FbFunctionName.GroupPlayerRemove]: GCloudRegions.UsCentral1,
55
- [index_1.FbFunctionName.GroupPlayerLeave]: GCloudRegions.UsCentral1,
56
- [index_1.FbFunctionName.GroupPlayerSwitchAdmin]: GCloudRegions.UsCentral1,
57
- [index_1.FbFunctionName.GroupPlayerOnUpdate]: GCloudRegions.UsCentral1,
58
- [index_1.FbFunctionName.GroupPlayerEventOnUpdate]: GCloudRegions.UsCentral1,
59
- [index_1.FbFunctionName.GroupRepertoryPublish]: GCloudRegions.UsCentral1,
60
- [index_1.FbFunctionName.GroupRepertoryEdit]: GCloudRegions.UsCentral1,
61
- [index_1.FbFunctionName.GroupRepertoryCloneBetweenGroups]: GCloudRegions.EuropeWest6,
62
- [index_1.FbFunctionName.GroupRepertoryRemove]: GCloudRegions.UsCentral1,
63
- [index_1.FbFunctionName.GroupRepertoryRate]: GCloudRegions.EuropeWest6,
64
- [index_1.FbFunctionName.GroupRepertoryDownloadThemeFiles]: GCloudRegions.UsCentral1,
65
- [index_1.FbFunctionName.GroupRepertoryDownloadFilesBySection]: GCloudRegions.EuropeWest6,
66
- [index_1.FbFunctionName.GroupRepertoryIdentifyInstruments]: GCloudRegions.UsCentral1,
67
- [index_1.FbFunctionName.GroupRepertoryIdentifyInstrumentsFromFileNames]: GCloudRegions.UsCentral1,
68
- [index_1.FbFunctionName.GroupRepertoryClaimMusicSheet]: GCloudRegions.UsCentral1,
69
- [index_1.FbFunctionName.GroupRepertoryOnCreate]: GCloudRegions.UsCentral1,
70
- [index_1.FbFunctionName.GroupRepertoryOnUpdate]: GCloudRegions.UsCentral1,
71
- [index_1.FbFunctionName.CommunicationPublish]: GCloudRegions.UsCentral1,
72
- [index_1.FbFunctionName.CommunicationEdit]: GCloudRegions.UsCentral1,
73
- [index_1.FbFunctionName.CommunicationRemove]: GCloudRegions.UsCentral1,
74
- [index_1.FbFunctionName.CommunicationCommentPublish]: GCloudRegions.EuropeWest6,
75
- [index_1.FbFunctionName.EventPublish]: GCloudRegions.UsCentral1,
76
- [index_1.FbFunctionName.EventNotifyPendingPlayers]: GCloudRegions.UsCentral1,
77
- [index_1.FbFunctionName.EventSetRollcall]: GCloudRegions.UsCentral1,
36
+ [index_1.FbFunctionName.EventCloseSelection]: GCloudRegions.EuropeWest6,
78
37
  [index_1.FbFunctionName.EventEdit]: GCloudRegions.UsCentral1,
79
38
  [index_1.FbFunctionName.EventEditDatetime]: GCloudRegions.UsCentral1,
80
39
  [index_1.FbFunctionName.EventEditResponseDeadline]: GCloudRegions.EuropeWest6,
81
- [index_1.FbFunctionName.EventCloseSelection]: GCloudRegions.EuropeWest6,
82
40
  [index_1.FbFunctionName.EventGetById]: GCloudRegions.EuropeWest6,
83
- [index_1.FbFunctionName.EventRemove]: GCloudRegions.UsCentral1,
41
+ [index_1.FbFunctionName.EventNotifyPendingPlayers]: GCloudRegions.UsCentral1,
84
42
  [index_1.FbFunctionName.EventOnCreate]: GCloudRegions.UsCentral1,
85
43
  [index_1.FbFunctionName.EventOnUpdate]: GCloudRegions.UsCentral1,
86
- [index_1.FbFunctionName.EventPlayerSwitchAssistance]: GCloudRegions.UsCentral1,
44
+ [index_1.FbFunctionName.EventPlayerEdit]: GCloudRegions.UsCentral1,
87
45
  [index_1.FbFunctionName.EventPlayerEditPlayerAttendance]: GCloudRegions.EuropeWest6,
46
+ [index_1.FbFunctionName.EventPlayerEditPlayerInterest]: GCloudRegions.EuropeWest6,
88
47
  [index_1.FbFunctionName.EventPlayerSetReasonAttendance]: GCloudRegions.EuropeWest6,
89
- [index_1.FbFunctionName.EventPlayerValidateRollCall]: GCloudRegions.EuropeWest6,
48
+ [index_1.FbFunctionName.EventPlayerSwitchAssistance]: GCloudRegions.UsCentral1,
90
49
  [index_1.FbFunctionName.EventPlayerSwitchInterest]: GCloudRegions.EuropeWest6,
91
- [index_1.FbFunctionName.EventPlayerEditPlayerInterest]: GCloudRegions.EuropeWest6,
92
- [index_1.FbFunctionName.EventPlayerEdit]: GCloudRegions.UsCentral1,
93
- [index_1.FbFunctionName.EventRepertoryEdit]: GCloudRegions.UsCentral1,
94
- [index_1.FbFunctionName.EventRepertoryDownloadPdf]: GCloudRegions.EuropeWest6,
50
+ [index_1.FbFunctionName.EventPlayerValidateRollCall]: GCloudRegions.EuropeWest6,
51
+ [index_1.FbFunctionName.EventPublish]: GCloudRegions.UsCentral1,
52
+ [index_1.FbFunctionName.EventRemove]: GCloudRegions.UsCentral1,
95
53
  [index_1.FbFunctionName.EventRepertoryDownload]: GCloudRegions.EuropeWest6,
96
- [index_1.FbFunctionName.FederationAddPendingAdmin]: GCloudRegions.EuropeWest6,
54
+ [index_1.FbFunctionName.EventRepertoryDownloadPdf]: GCloudRegions.EuropeWest6,
55
+ [index_1.FbFunctionName.EventRepertoryEdit]: GCloudRegions.UsCentral1,
56
+ [index_1.FbFunctionName.EventSetRollcall]: GCloudRegions.UsCentral1,
97
57
  [index_1.FbFunctionName.FederationAddConfirmedAdmin]: GCloudRegions.EuropeWest6,
98
- [index_1.FbFunctionName.FederationRemoveAdmin]: GCloudRegions.EuropeWest6,
58
+ [index_1.FbFunctionName.FederationAddPendingAdmin]: GCloudRegions.EuropeWest6,
99
59
  [index_1.FbFunctionName.FederationConfirmAdmin]: GCloudRegions.EuropeWest6,
100
60
  [index_1.FbFunctionName.FederationCreate]: GCloudRegions.EuropeWest6,
101
61
  [index_1.FbFunctionName.FederationEdit]: GCloudRegions.EuropeWest6,
102
- [index_1.FbFunctionName.FederationRemove]: GCloudRegions.EuropeWest6,
62
+ [index_1.FbFunctionName.FederationGetConfederation]: GCloudRegions.EuropeWest6,
103
63
  [index_1.FbFunctionName.FederationGetEvents]: GCloudRegions.EuropeWest6,
104
64
  [index_1.FbFunctionName.FederationPartnershipAdd]: GCloudRegions.EuropeWest6,
105
65
  [index_1.FbFunctionName.FederationPartnershipAddManual]: GCloudRegions.EuropeWest6,
106
- [index_1.FbFunctionName.FederationPartnershipRemove]: GCloudRegions.EuropeWest6,
107
- [index_1.FbFunctionName.FederationPartnershipRemoveManual]: GCloudRegions.EuropeWest6,
108
- [index_1.FbFunctionName.FederationPartnershipEditManual]: GCloudRegions.EuropeWest6,
66
+ [index_1.FbFunctionName.FederationPartnershipConnect]: GCloudRegions.EuropeWest6,
109
67
  [index_1.FbFunctionName.FederationPartnershipEditCountManual]: GCloudRegions.EuropeWest6,
68
+ [index_1.FbFunctionName.FederationPartnershipEditManual]: GCloudRegions.EuropeWest6,
110
69
  [index_1.FbFunctionName.FederationPartnershipGetByToken]: GCloudRegions.EuropeWest6,
111
- [index_1.FbFunctionName.FederationPartnershipConnect]: GCloudRegions.EuropeWest6,
70
+ [index_1.FbFunctionName.FederationPartnershipRemove]: GCloudRegions.EuropeWest6,
71
+ [index_1.FbFunctionName.FederationPartnershipRemoveManual]: GCloudRegions.EuropeWest6,
112
72
  [index_1.FbFunctionName.FederationPartnershipSendInvitationToJoinEmail]: GCloudRegions.EuropeWest6,
113
- [index_1.FbFunctionName.FederationGetConfederation]: GCloudRegions.EuropeWest6,
73
+ [index_1.FbFunctionName.FederationRemove]: GCloudRegions.EuropeWest6,
74
+ [index_1.FbFunctionName.FederationRemoveAdmin]: GCloudRegions.EuropeWest6,
75
+ [index_1.FbFunctionName.GroupChangeStatus]: GCloudRegions.EuropeWest6,
76
+ [index_1.FbFunctionName.GroupCronSatistactionIndexWeekly]: GCloudRegions.EuropeWest6,
77
+ [index_1.FbFunctionName.GroupEdit]: GCloudRegions.EuropeWest6,
78
+ [index_1.FbFunctionName.GroupEditInstruments]: GCloudRegions.EuropeWest6,
79
+ [index_1.FbFunctionName.GroupEditTemplate]: GCloudRegions.EuropeWest6,
80
+ [index_1.FbFunctionName.GroupGetById]: GCloudRegions.EuropeWest6,
81
+ [index_1.FbFunctionName.GroupOnboardingMessages]: GCloudRegions.EuropeWest6,
82
+ [index_1.FbFunctionName.GroupOnCreate]: GCloudRegions.UsCentral1,
83
+ [index_1.FbFunctionName.GroupOnUpdate]: GCloudRegions.UsCentral1,
84
+ [index_1.FbFunctionName.GroupPlayerAdd]: GCloudRegions.UsCentral1,
85
+ [index_1.FbFunctionName.GroupPlayerEventOnUpdate]: GCloudRegions.UsCentral1,
86
+ [index_1.FbFunctionName.GroupPlayerJoin]: GCloudRegions.UsCentral1,
87
+ [index_1.FbFunctionName.GroupPlayerLeave]: GCloudRegions.UsCentral1,
88
+ [index_1.FbFunctionName.GroupPlayerOnUpdate]: GCloudRegions.UsCentral1,
89
+ [index_1.FbFunctionName.GroupPlayerRemove]: GCloudRegions.UsCentral1,
90
+ [index_1.FbFunctionName.GroupPlayerSwitchAdmin]: GCloudRegions.UsCentral1,
91
+ [index_1.FbFunctionName.GroupPlayerUpdateInstruments]: GCloudRegions.UsCentral1,
92
+ [index_1.FbFunctionName.GroupPublish]: GCloudRegions.EuropeWest6,
93
+ [index_1.FbFunctionName.GroupRemove]: GCloudRegions.UsCentral1,
94
+ [index_1.FbFunctionName.GroupRepertoryClaimMusicSheet]: GCloudRegions.UsCentral1,
95
+ [index_1.FbFunctionName.GroupRepertoryCloneBetweenGroups]: GCloudRegions.EuropeWest6,
96
+ [index_1.FbFunctionName.GroupRepertoryDownloadFilesBySection]: GCloudRegions.EuropeWest6,
97
+ [index_1.FbFunctionName.GroupRepertoryDownloadThemeFiles]: GCloudRegions.UsCentral1,
98
+ [index_1.FbFunctionName.GroupRepertoryEdit]: GCloudRegions.UsCentral1,
99
+ [index_1.FbFunctionName.GroupRepertoryIdentifyInstruments]: GCloudRegions.UsCentral1,
100
+ [index_1.FbFunctionName.GroupRepertoryIdentifyInstrumentsFromFileNames]: GCloudRegions.UsCentral1,
101
+ [index_1.FbFunctionName.GroupRepertoryOnCreate]: GCloudRegions.UsCentral1,
102
+ [index_1.FbFunctionName.GroupRepertoryOnUpdate]: GCloudRegions.UsCentral1,
103
+ [index_1.FbFunctionName.GroupRepertoryPublish]: GCloudRegions.UsCentral1,
104
+ [index_1.FbFunctionName.GroupRepertoryRate]: GCloudRegions.EuropeWest6,
105
+ [index_1.FbFunctionName.GroupRepertoryRemove]: GCloudRegions.UsCentral1,
106
+ [index_1.FbFunctionName.GroupSendInvitationEmail]: GCloudRegions.EuropeWest6,
107
+ [index_1.FbFunctionName.JWTGenerate]: GCloudRegions.EuropeWest6,
108
+ [index_1.FbFunctionName.MetricsWeekly]: GCloudRegions.EuropeWest6,
109
+ [index_1.FbFunctionName.MiscAddSubscriber]: GCloudRegions.EuropeWest6,
110
+ [index_1.FbFunctionName.MiscHandleActiveCampaignAutomationContacts]: GCloudRegions.EuropeWest6,
111
+ [index_1.FbFunctionName.MiscScheduledFirestoreExport]: GCloudRegions.EuropeWest6,
114
112
  [index_1.FbFunctionName.MiscValidateUsername]: GCloudRegions.UsCentral1,
115
113
  [index_1.FbFunctionName.NotificationMarkAllAsReaded]: GCloudRegions.UsCentral1,
114
+ [index_1.FbFunctionName.OfferApplicantAdd]: GCloudRegions.EuropeWest6,
115
+ [index_1.FbFunctionName.OfferApplicantEdit]: GCloudRegions.EuropeWest6,
116
+ [index_1.FbFunctionName.OfferApplicantRemove]: GCloudRegions.EuropeWest6,
117
+ [index_1.FbFunctionName.OfferCloseSelection]: GCloudRegions.EuropeWest6,
118
+ [index_1.FbFunctionName.OfferEdit]: GCloudRegions.EuropeWest6,
119
+ [index_1.FbFunctionName.OfferOnUpdate]: GCloudRegions.EuropeWest6,
120
+ [index_1.FbFunctionName.OfferPublish]: GCloudRegions.EuropeWest6,
121
+ [index_1.FbFunctionName.OfferRemove]: GCloudRegions.EuropeWest6,
122
+ [index_1.FbFunctionName.OfferReopenSelection]: GCloudRegions.EuropeWest6,
123
+ [index_1.FbFunctionName.OfferSelectApplicant]: GCloudRegions.EuropeWest6,
124
+ [index_1.FbFunctionName.OfferViewApplicant]: GCloudRegions.EuropeWest6,
125
+ [index_1.FbFunctionName.PartnershipAddConfirmedAdmin]: GCloudRegions.EuropeWest6,
116
126
  [index_1.FbFunctionName.PartnershipCreate]: GCloudRegions.EuropeWest6,
117
127
  [index_1.FbFunctionName.PartnershipEdit]: GCloudRegions.EuropeWest6,
118
- [index_1.FbFunctionName.PartnershipRemove]: GCloudRegions.EuropeWest6,
119
- [index_1.FbFunctionName.PartnershipOnUpdate]: GCloudRegions.EuropeWest6,
120
- [index_1.FbFunctionName.PartnershipAddConfirmedAdmin]: GCloudRegions.EuropeWest6,
121
- [index_1.FbFunctionName.PartnershipRemoveAdmin]: GCloudRegions.EuropeWest6,
122
128
  [index_1.FbFunctionName.PartnershipGroupAdd]: GCloudRegions.EuropeWest6,
123
129
  [index_1.FbFunctionName.PartnershipGroupRemove]: GCloudRegions.EuropeWest6,
124
- [index_1.FbFunctionName.OfferPublish]: GCloudRegions.EuropeWest6,
125
- [index_1.FbFunctionName.OfferEdit]: GCloudRegions.EuropeWest6,
126
- [index_1.FbFunctionName.OfferEditSelection]: GCloudRegions.EuropeWest6,
127
- [index_1.FbFunctionName.OfferOnUpdate]: GCloudRegions.EuropeWest6,
128
- [index_1.FbFunctionName.OfferCloseSelection]: GCloudRegions.EuropeWest6,
129
- [index_1.FbFunctionName.OfferRemove]: GCloudRegions.EuropeWest6,
130
- [index_1.FbFunctionName.OfferApplicantAdd]: GCloudRegions.EuropeWest6,
131
- [index_1.FbFunctionName.OfferApplicantEdit]: GCloudRegions.EuropeWest6,
132
- [index_1.FbFunctionName.OfferApplicantRemove]: GCloudRegions.EuropeWest6,
133
- [index_1.FbFunctionName.MiscAddSubscriber]: GCloudRegions.EuropeWest6,
134
- [index_1.FbFunctionName.MiscHandleActiveCampaignAutomationContacts]: GCloudRegions.EuropeWest6,
135
- [index_1.FbFunctionName.Auth]: GCloudRegions.UsCentral1,
136
- [index_1.FbFunctionName.GroupCronSatistactionIndexWeekly]: GCloudRegions.EuropeWest6,
137
- [index_1.FbFunctionName.MetricsWeekly]: GCloudRegions.EuropeWest6,
138
- [index_1.FbFunctionName.MiscScheduledFirestoreExport]: GCloudRegions.EuropeWest6,
139
- [index_1.FbFunctionName.ReminderResponseDeadlineSoon]: GCloudRegions.EuropeWest6,
130
+ [index_1.FbFunctionName.PartnershipOnUpdate]: GCloudRegions.EuropeWest6,
131
+ [index_1.FbFunctionName.PartnershipRemove]: GCloudRegions.EuropeWest6,
132
+ [index_1.FbFunctionName.PartnershipRemoveAdmin]: GCloudRegions.EuropeWest6,
133
+ [index_1.FbFunctionName.ReminderBiweeklyEventsEmail]: GCloudRegions.EuropeWest6,
140
134
  [index_1.FbFunctionName.ReminderDatetime]: GCloudRegions.EuropeWest6,
141
135
  [index_1.FbFunctionName.ReminderResponseDeadlineEnded]: GCloudRegions.EuropeWest6,
136
+ [index_1.FbFunctionName.ReminderResponseDeadlineSoon]: GCloudRegions.EuropeWest6,
142
137
  [index_1.FbFunctionName.ReminderRollCall]: GCloudRegions.EuropeWest1,
143
- [index_1.FbFunctionName.ReminderBiweeklyEventsEmail]: GCloudRegions.EuropeWest6,
144
- [index_1.FbFunctionName.WebhookStripe]: GCloudRegions.EuropeWest6,
138
+ [index_1.FbFunctionName.UserJoinEvent]: GCloudRegions.EuropeWest6,
139
+ [index_1.FbFunctionName.UserOnCreateDoc]: GCloudRegions.UsCentral1,
140
+ [index_1.FbFunctionName.UserOnLogin]: GCloudRegions.EuropeWest6,
141
+ [index_1.FbFunctionName.UserOnSignUp]: GCloudRegions.EuropeWest6,
142
+ [index_1.FbFunctionName.UserOnUpdate]: GCloudRegions.UsCentral1,
143
+ [index_1.FbFunctionName.UserRegister]: GCloudRegions.UsCentral1,
144
+ [index_1.FbFunctionName.UserRemove]: GCloudRegions.EuropeWest6,
145
+ [index_1.FbFunctionName.UserSendYearWrapped]: GCloudRegions.EuropeWest6,
146
+ [index_1.FbFunctionName.WebhookEventOnCreate]: GCloudRegions.EuropeWest6,
145
147
  [index_1.FbFunctionName.WebhookGocardless]: GCloudRegions.EuropeWest6,
146
148
  [index_1.FbFunctionName.WebhookMessagebird]: GCloudRegions.EuropeWest6,
147
- [index_1.FbFunctionName.WebhookEventOnCreate]: GCloudRegions.EuropeWest6,
149
+ [index_1.FbFunctionName.WebhookStripe]: GCloudRegions.EuropeWest6,
148
150
  };
149
151
  const getFunctionRegion = (fn) => regionByFunctions[fn] || defaultRegion;
150
152
  exports.getFunctionRegion = getFunctionRegion;
@@ -31,5 +31,6 @@ export declare enum CollectionNames {
31
31
  Federation = "federation",
32
32
  FederationPartnerships = "partnerships",
33
33
  Offer = "offer",
34
+ OfferApplicants = "applicants",
34
35
  WebhookEvent = "webhookEvent"
35
36
  }
@@ -35,5 +35,6 @@ var CollectionNames;
35
35
  CollectionNames["Federation"] = "federation";
36
36
  CollectionNames["FederationPartnerships"] = "partnerships";
37
37
  CollectionNames["Offer"] = "offer";
38
+ CollectionNames["OfferApplicants"] = "applicants";
38
39
  CollectionNames["WebhookEvent"] = "webhookEvent";
39
40
  })(CollectionNames = exports.CollectionNames || (exports.CollectionNames = {}));
@@ -0,0 +1,17 @@
1
+ import Model, { DocumentModel } from '../../Model';
2
+ import { OfferApplicantData } from './types';
3
+ export default class OfferApplicantBasic extends Model<OfferApplicantData> {
4
+ constructor(doc: DocumentModel);
5
+ get username(): string;
6
+ get displayName(): string;
7
+ get photoURL(): string;
8
+ get appliedAt(): FirebaseFirestore.Timestamp;
9
+ get selectedAt(): FirebaseFirestore.Timestamp | null;
10
+ get isSelected(): boolean;
11
+ get discardedAt(): FirebaseFirestore.Timestamp | null;
12
+ get isDiscarded(): boolean;
13
+ get message(): string | null;
14
+ get viewedAt(): FirebaseFirestore.Timestamp | null;
15
+ get isViewed(): boolean;
16
+ get history(): import("./types").OfferApplicantHistory[];
17
+ }
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
- class OfferApplicantBasic {
4
- constructor(offerId, data) {
5
- this.offerId = offerId;
6
- this.data = data;
7
- }
8
- get id() {
9
- return this.data.id;
6
+ const Model_1 = __importDefault(require("../../Model"));
7
+ class OfferApplicantBasic extends Model_1.default {
8
+ constructor(doc) {
9
+ super(doc);
10
10
  }
11
11
  get username() {
12
12
  return this.data.username;
@@ -35,5 +35,14 @@ class OfferApplicantBasic {
35
35
  get message() {
36
36
  return this.data.message || null;
37
37
  }
38
+ get viewedAt() {
39
+ return this.data.viewedAt || null;
40
+ }
41
+ get isViewed() {
42
+ return !!this.viewedAt;
43
+ }
44
+ get history() {
45
+ return (this.data.history || []).sort((a, b) => a.changedAt.toMillis() - b.changedAt.toMillis());
46
+ }
38
47
  }
39
48
  exports.default = OfferApplicantBasic;
@@ -1,11 +1,12 @@
1
1
  import { Timestamp } from '@google-cloud/firestore';
2
- import { UserBasicData } from '../../User/types';
3
- export interface OfferApplicantBasicData extends UserBasicData {
4
- appliedAt: Timestamp;
5
- selectedAt: Timestamp | null;
6
- discardedAt: Timestamp | null;
7
- message: string | null;
2
+ import { OfferApplicantBasicData } from '../types';
3
+ type OfferApplicantHistoricalAction = 'viewed' | 'selected' | 'apply' | 'discard' | 'edit';
4
+ export interface OfferApplicantHistory {
5
+ action: OfferApplicantHistoricalAction;
6
+ changedAt: Timestamp;
7
+ changedBy: string;
8
8
  }
9
- export interface AOfferApplicantBasicData extends OfferApplicantBasicData {
10
- id: string;
9
+ export interface OfferApplicantData extends OfferApplicantBasicData {
10
+ history: OfferApplicantHistory[];
11
11
  }
12
+ export {};
@@ -1,22 +1,29 @@
1
+ import { DefaultInstrumentId } from '../../helpers/instruments';
1
2
  import { LanguagesTypes } from '../../lang';
2
3
  import { DocumentModel } from '../Model';
3
4
  import ModelWithLang from '../Model/lang';
4
- import OfferApplicantBasic from './Applicant/basic';
5
5
  import { OfferData, OfferType } from './types';
6
6
  export default class Offer extends ModelWithLang<OfferData> {
7
7
  constructor(doc: DocumentModel, lang?: LanguagesTypes);
8
8
  get createdAt(): FirebaseFirestore.Timestamp;
9
9
  get createdBy(): string;
10
10
  get title(): string;
11
- get instrument(): import("../../helpers/instruments").InstrumentId;
12
- get description(): string;
11
+ get instrument(): DefaultInstrumentId;
12
+ get description(): import("../../helpers/slate").Descendant[];
13
+ get plainDescription(): string;
13
14
  get type(): OfferType;
14
15
  get group(): string;
15
16
  get event(): string | null;
17
+ get locality(): string;
18
+ get location(): FirebaseFirestore.GeoPoint;
19
+ get country(): string;
16
20
  get applicantsIds(): string[];
17
- get applicants(): Record<string, import("./Applicant/types").OfferApplicantBasicData>;
18
- get applicantList(): OfferApplicantBasic[];
21
+ get applicants(): Record<string, import("./types").OfferApplicantBasicData>;
22
+ get applicantList(): (import("./types").OfferApplicantBasicData & {
23
+ id: string;
24
+ })[];
19
25
  get deadlineAt(): FirebaseFirestore.Timestamp | null;
26
+ get timezone(): string;
20
27
  get isResponseAllowed(): boolean;
21
28
  get selectionClosedAt(): FirebaseFirestore.Timestamp | null;
22
29
  get selectionClosedBy(): string | null;
@@ -7,9 +7,9 @@ const date_fns_1 = require("date-fns");
7
7
  const lodash_1 = require("lodash");
8
8
  const instruments_1 = require("../../helpers/instruments");
9
9
  const objects_1 = require("../../helpers/objects");
10
+ const slate_1 = require("../../helpers/slate");
10
11
  const lang_1 = require("../../lang");
11
12
  const lang_2 = __importDefault(require("../Model/lang"));
12
- const basic_1 = __importDefault(require("./Applicant/basic"));
13
13
  const types_1 = require("./types");
14
14
  class Offer extends lang_2.default {
15
15
  constructor(doc, lang = lang_1.defaultLocale) {
@@ -30,6 +30,9 @@ class Offer extends lang_2.default {
30
30
  get description() {
31
31
  return this.data.description || '';
32
32
  }
33
+ get plainDescription() {
34
+ return (0, slate_1.serializeSlateBlock)(this.description);
35
+ }
33
36
  get type() {
34
37
  return this.data.type || types_1.OfferType.Group;
35
38
  }
@@ -39,6 +42,15 @@ class Offer extends lang_2.default {
39
42
  get event() {
40
43
  return this.data.event || null;
41
44
  }
45
+ get locality() {
46
+ return this.data.locality;
47
+ }
48
+ get location() {
49
+ return this.data.location;
50
+ }
51
+ get country() {
52
+ return this.data.country;
53
+ }
42
54
  get applicantsIds() {
43
55
  return this.data.applicantsIds || [];
44
56
  }
@@ -46,11 +58,14 @@ class Offer extends lang_2.default {
46
58
  return this.data.applicants || {};
47
59
  }
48
60
  get applicantList() {
49
- return (0, objects_1.mapToArray)(this.applicants).map((data) => new basic_1.default(this.id, data));
61
+ return (0, objects_1.mapToArray)(this.applicants);
50
62
  }
51
63
  get deadlineAt() {
52
64
  return this.data.deadlineAt || null;
53
65
  }
66
+ get timezone() {
67
+ return this.data.timezone || 'Europe/Madrid';
68
+ }
54
69
  get isResponseAllowed() {
55
70
  return (!this.isSelectionClosed && (this.deadlineAt ? (0, date_fns_1.isFuture)(this.deadlineAt.toDate()) : true));
56
71
  }
@@ -1,20 +1,35 @@
1
- import { Timestamp } from '@google-cloud/firestore';
2
- import { InstrumentId } from '../../helpers/instruments';
3
- import { OfferApplicantBasicData } from './Applicant/types';
1
+ import { GeoPoint, Timestamp } from '@google-cloud/firestore';
2
+ import { DefaultInstrumentId } from '../../helpers/instruments';
3
+ import { Descendant } from '../../helpers/slate';
4
+ import { UserBasicData } from '../User/types';
4
5
  export declare enum OfferType {
5
6
  Group = "group",
6
7
  Event = "event"
7
8
  }
9
+ export interface OfferApplicantBasicData extends UserBasicData {
10
+ appliedAt: Timestamp;
11
+ viewedAt: Timestamp | null;
12
+ selectedAt: Timestamp | null;
13
+ discardedAt: Timestamp | null;
14
+ message: string | null;
15
+ }
16
+ export interface AOfferApplicantBasicData extends OfferApplicantBasicData {
17
+ id: string;
18
+ }
8
19
  export interface OfferData {
9
20
  title: string;
10
- description: string;
11
- instrument: InstrumentId;
21
+ description: Descendant[];
22
+ instrument: DefaultInstrumentId;
23
+ locality: string;
24
+ location: GeoPoint;
25
+ country: string;
12
26
  type: OfferType;
13
27
  group: string;
14
28
  event: string | null;
15
29
  applicantsIds: string[];
16
30
  applicants: Record<string, OfferApplicantBasicData>;
17
31
  deadlineAt: Timestamp | null;
32
+ timezone: string;
18
33
  selectionClosedAt: Timestamp | null;
19
34
  selectionClosedBy: string | null;
20
35
  updatedAt: Timestamp;
@@ -64,5 +64,4 @@ export default class User extends UserBasic<UserData> {
64
64
  id: string;
65
65
  })[];
66
66
  get analyticsEnabled(): true;
67
- get appliedOffers(): string[];
68
67
  }
@@ -169,8 +169,5 @@ class User extends basic_1.default {
169
169
  get analyticsEnabled() {
170
170
  return this.data.analyticsEnabled || true;
171
171
  }
172
- get appliedOffers() {
173
- return this.data.appliedOffers || [];
174
- }
175
172
  }
176
173
  exports.default = User;
@@ -93,7 +93,6 @@ export interface UserData extends UserBasicData {
93
93
  registerVia: UserRegisterVia;
94
94
  lastAppLoginAt: Timestamp | null;
95
95
  lastWebLoginAt: Timestamp | null;
96
- appliedOffers: string[];
97
96
  }
98
97
  export interface AUserBasicData extends UserBasicData {
99
98
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissandoo/lib",
3
- "version": "1.86.0",
3
+ "version": "1.87.1",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -1,16 +0,0 @@
1
- import { AOfferApplicantBasicData } from './types';
2
- export default class OfferApplicantBasic {
3
- offerId: string;
4
- protected data: AOfferApplicantBasicData;
5
- constructor(offerId: string, data: AOfferApplicantBasicData);
6
- get id(): string;
7
- get username(): string;
8
- get displayName(): string;
9
- get photoURL(): string;
10
- get appliedAt(): FirebaseFirestore.Timestamp;
11
- get selectedAt(): FirebaseFirestore.Timestamp | null;
12
- get isSelected(): boolean;
13
- get discardedAt(): FirebaseFirestore.Timestamp | null;
14
- get isDiscarded(): boolean;
15
- get message(): string | null;
16
- }