@glissandoo/lib 1.87.0 → 1.88.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.
- package/functions/event.d.ts +3 -2
- package/functions/group.d.ts +3 -2
- package/functions/index.d.ts +45 -43
- package/functions/index.js +45 -43
- package/functions/offer.d.ts +8 -1
- package/functions/regions.js +97 -95
- package/helpers/types.d.ts +6 -0
- package/helpers/types.js +8 -1
- package/models/Evento/index.d.ts +1 -1
- package/models/Evento/types.d.ts +2 -6
- package/models/Evento/types.js +1 -7
- package/models/Group/index.d.ts +1 -1
- package/models/Group/types.d.ts +3 -7
- package/models/Group/types.js +1 -7
- package/models/Offer/index.d.ts +1 -0
- package/models/Offer/index.js +3 -0
- package/models/Offer/types.d.ts +12 -0
- package/package.json +1 -1
- package/types/supabase/generated.d.ts +7 -8
- package/types/supabase/generated.ts +7 -8
package/functions/event.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Descendant } from '../helpers/slate';
|
|
2
|
+
import { CreatedOn } from '../helpers/types';
|
|
2
3
|
import { EventPlayerStatus } from '../models/Evento/Player/types';
|
|
3
|
-
import { EventBasicData,
|
|
4
|
+
import { EventBasicData, EventRepeatPeriod, EventResponseDeadlineOptions, EventSelectionMode, EventStage, EventType } from '../models/Evento/types';
|
|
4
5
|
import { GroupBasicData } from '../models/Group/types';
|
|
5
6
|
export declare namespace EventoFbFunctionsTypes {
|
|
6
7
|
export enum RelationAction {
|
|
@@ -33,7 +34,7 @@ export declare namespace EventoFbFunctionsTypes {
|
|
|
33
34
|
stage: EventStage | null;
|
|
34
35
|
stageTemplateId: string | null;
|
|
35
36
|
images: string[];
|
|
36
|
-
createdOn:
|
|
37
|
+
createdOn: CreatedOn;
|
|
37
38
|
responseDeadline: {
|
|
38
39
|
option: EventResponseDeadlineOptions;
|
|
39
40
|
customAt: number | null;
|
package/functions/group.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CreatedOn } from '../helpers/types';
|
|
2
|
+
import { GroupBasicData, GroupData, GroupStatus, GroupTemplateData } from '../models/Group/types';
|
|
2
3
|
export declare namespace GroupFbFunctionsTypes {
|
|
3
4
|
interface PublishParams {
|
|
4
5
|
displayName: string;
|
|
@@ -9,7 +10,7 @@ export declare namespace GroupFbFunctionsTypes {
|
|
|
9
10
|
musicStyle: string;
|
|
10
11
|
photoURL: string;
|
|
11
12
|
metadata?: Record<string, string>;
|
|
12
|
-
createdOn:
|
|
13
|
+
createdOn: CreatedOn;
|
|
13
14
|
}
|
|
14
15
|
interface PublishResult {
|
|
15
16
|
id: string;
|
package/functions/index.d.ts
CHANGED
|
@@ -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
|
-
|
|
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,58 +81,60 @@ export declare enum FbFunctionName {
|
|
|
81
81
|
GroupPublish = "group-publish",
|
|
82
82
|
GroupRemove = "group-remove",
|
|
83
83
|
GroupRepertoryClaimMusicSheet = "groupRepertory-claimMusicSheet",
|
|
84
|
-
|
|
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
|
+
OfferOnCreate = "offer-onCreate",
|
|
110
|
+
OfferPublish = "offer-publish",
|
|
111
|
+
OfferRemove = "offer-remove",
|
|
112
|
+
OfferReopenSelection = "offer-reopenSelection",
|
|
113
|
+
OfferSelectApplicant = "offer-selectApplicant",
|
|
114
|
+
OfferViewApplicant = "offer-viewApplicant",
|
|
103
115
|
PartnershipAddConfirmedAdmin = "partnership-addConfirmedAdmin",
|
|
104
116
|
PartnershipCreate = "partnership-create",
|
|
105
|
-
PartnershipRemove = "partnership-remove",
|
|
106
117
|
PartnershipEdit = "partnership-edit",
|
|
107
|
-
PartnershipOnUpdate = "partnership-onUpdate",
|
|
108
|
-
PartnershipRemoveAdmin = "partnership-removeAdmin",
|
|
109
118
|
PartnershipGroupAdd = "partnershipGroup-add",
|
|
110
119
|
PartnershipGroupRemove = "partnershipGroup-remove",
|
|
111
|
-
|
|
120
|
+
PartnershipOnUpdate = "partnership-onUpdate",
|
|
121
|
+
PartnershipRemove = "partnership-remove",
|
|
122
|
+
PartnershipRemoveAdmin = "partnership-removeAdmin",
|
|
123
|
+
ReminderBiweeklyEventsEmail = "reminder-biweeklyEventsEmail",
|
|
112
124
|
ReminderDatetime = "reminder-datetime",
|
|
113
|
-
ReminderRollCall = "reminder-rollCall",
|
|
114
125
|
ReminderResponseDeadlineEnded = "reminder-responseDeadlineEnded",
|
|
115
|
-
|
|
126
|
+
ReminderResponseDeadlineSoon = "reminder-responseDeadlineSoon",
|
|
127
|
+
ReminderRollCall = "reminder-rollCall",
|
|
128
|
+
UserJoinEvent = "user-joinEvent",
|
|
116
129
|
UserOnCreateDoc = "user-onCreateDoc",
|
|
117
130
|
UserOnLogin = "user-onLogin",
|
|
118
131
|
UserOnSignUp = "user-onSignUp",
|
|
119
132
|
UserOnUpdate = "user-onUpdate",
|
|
120
133
|
UserRegister = "user-register",
|
|
121
134
|
UserRemove = "user-remove",
|
|
122
|
-
UserJoinEvent = "user-joinEvent",
|
|
123
135
|
UserSendYearWrapped = "user-sendYearWrapped",
|
|
124
|
-
|
|
125
|
-
OfferEdit = "offer-edit",
|
|
126
|
-
OfferSelectApplicant = "offer-selectApplicant",
|
|
127
|
-
OfferViewApplicant = "offer-viewApplicant",
|
|
128
|
-
OfferOnUpdate = "offer-onUpdate",
|
|
129
|
-
OfferCloseSelection = "offer-closeSelection",
|
|
130
|
-
OfferRemove = "offer-remove",
|
|
131
|
-
OfferApplicantAdd = "offerApplicant-add",
|
|
132
|
-
OfferApplicantEdit = "offerApplicant-edit",
|
|
133
|
-
OfferApplicantRemove = "offerApplicant-remove",
|
|
134
|
-
WebhookStripe = "webhook-stripe",
|
|
136
|
+
WebhookEventOnCreate = "webhookEvent-onCreate",
|
|
135
137
|
WebhookGocardless = "webhook-gocardless",
|
|
136
138
|
WebhookMessagebird = "webhook-messagebird",
|
|
137
|
-
|
|
139
|
+
WebhookStripe = "webhook-stripe"
|
|
138
140
|
}
|
package/functions/index.js
CHANGED
|
@@ -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["
|
|
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,58 +85,60 @@ var FbFunctionName;
|
|
|
85
85
|
FbFunctionName["GroupPublish"] = "group-publish";
|
|
86
86
|
FbFunctionName["GroupRemove"] = "group-remove";
|
|
87
87
|
FbFunctionName["GroupRepertoryClaimMusicSheet"] = "groupRepertory-claimMusicSheet";
|
|
88
|
-
FbFunctionName["
|
|
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["OfferOnCreate"] = "offer-onCreate";
|
|
114
|
+
FbFunctionName["OfferPublish"] = "offer-publish";
|
|
115
|
+
FbFunctionName["OfferRemove"] = "offer-remove";
|
|
116
|
+
FbFunctionName["OfferReopenSelection"] = "offer-reopenSelection";
|
|
117
|
+
FbFunctionName["OfferSelectApplicant"] = "offer-selectApplicant";
|
|
118
|
+
FbFunctionName["OfferViewApplicant"] = "offer-viewApplicant";
|
|
107
119
|
FbFunctionName["PartnershipAddConfirmedAdmin"] = "partnership-addConfirmedAdmin";
|
|
108
120
|
FbFunctionName["PartnershipCreate"] = "partnership-create";
|
|
109
|
-
FbFunctionName["PartnershipRemove"] = "partnership-remove";
|
|
110
121
|
FbFunctionName["PartnershipEdit"] = "partnership-edit";
|
|
111
|
-
FbFunctionName["PartnershipOnUpdate"] = "partnership-onUpdate";
|
|
112
|
-
FbFunctionName["PartnershipRemoveAdmin"] = "partnership-removeAdmin";
|
|
113
122
|
FbFunctionName["PartnershipGroupAdd"] = "partnershipGroup-add";
|
|
114
123
|
FbFunctionName["PartnershipGroupRemove"] = "partnershipGroup-remove";
|
|
115
|
-
FbFunctionName["
|
|
124
|
+
FbFunctionName["PartnershipOnUpdate"] = "partnership-onUpdate";
|
|
125
|
+
FbFunctionName["PartnershipRemove"] = "partnership-remove";
|
|
126
|
+
FbFunctionName["PartnershipRemoveAdmin"] = "partnership-removeAdmin";
|
|
127
|
+
FbFunctionName["ReminderBiweeklyEventsEmail"] = "reminder-biweeklyEventsEmail";
|
|
116
128
|
FbFunctionName["ReminderDatetime"] = "reminder-datetime";
|
|
117
|
-
FbFunctionName["ReminderRollCall"] = "reminder-rollCall";
|
|
118
129
|
FbFunctionName["ReminderResponseDeadlineEnded"] = "reminder-responseDeadlineEnded";
|
|
119
|
-
FbFunctionName["
|
|
130
|
+
FbFunctionName["ReminderResponseDeadlineSoon"] = "reminder-responseDeadlineSoon";
|
|
131
|
+
FbFunctionName["ReminderRollCall"] = "reminder-rollCall";
|
|
132
|
+
FbFunctionName["UserJoinEvent"] = "user-joinEvent";
|
|
120
133
|
FbFunctionName["UserOnCreateDoc"] = "user-onCreateDoc";
|
|
121
134
|
FbFunctionName["UserOnLogin"] = "user-onLogin";
|
|
122
135
|
FbFunctionName["UserOnSignUp"] = "user-onSignUp";
|
|
123
136
|
FbFunctionName["UserOnUpdate"] = "user-onUpdate";
|
|
124
137
|
FbFunctionName["UserRegister"] = "user-register";
|
|
125
138
|
FbFunctionName["UserRemove"] = "user-remove";
|
|
126
|
-
FbFunctionName["UserJoinEvent"] = "user-joinEvent";
|
|
127
139
|
FbFunctionName["UserSendYearWrapped"] = "user-sendYearWrapped";
|
|
128
|
-
FbFunctionName["
|
|
129
|
-
FbFunctionName["OfferEdit"] = "offer-edit";
|
|
130
|
-
FbFunctionName["OfferSelectApplicant"] = "offer-selectApplicant";
|
|
131
|
-
FbFunctionName["OfferViewApplicant"] = "offer-viewApplicant";
|
|
132
|
-
FbFunctionName["OfferOnUpdate"] = "offer-onUpdate";
|
|
133
|
-
FbFunctionName["OfferCloseSelection"] = "offer-closeSelection";
|
|
134
|
-
FbFunctionName["OfferRemove"] = "offer-remove";
|
|
135
|
-
FbFunctionName["OfferApplicantAdd"] = "offerApplicant-add";
|
|
136
|
-
FbFunctionName["OfferApplicantEdit"] = "offerApplicant-edit";
|
|
137
|
-
FbFunctionName["OfferApplicantRemove"] = "offerApplicant-remove";
|
|
138
|
-
FbFunctionName["WebhookStripe"] = "webhook-stripe";
|
|
140
|
+
FbFunctionName["WebhookEventOnCreate"] = "webhookEvent-onCreate";
|
|
139
141
|
FbFunctionName["WebhookGocardless"] = "webhook-gocardless";
|
|
140
142
|
FbFunctionName["WebhookMessagebird"] = "webhook-messagebird";
|
|
141
|
-
FbFunctionName["
|
|
143
|
+
FbFunctionName["WebhookStripe"] = "webhook-stripe";
|
|
142
144
|
})(FbFunctionName = exports.FbFunctionName || (exports.FbFunctionName = {}));
|
package/functions/offer.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DefaultInstrumentId } from '../helpers/instruments';
|
|
2
2
|
import { Descendant } from '../helpers/slate';
|
|
3
|
+
import { CreatedOn } from '../helpers/types';
|
|
3
4
|
import { OfferType } from '../models/Offer/types';
|
|
4
5
|
export declare namespace OfferFbFunctionsTypes {
|
|
5
6
|
interface PublishParams {
|
|
@@ -18,9 +19,10 @@ export declare namespace OfferFbFunctionsTypes {
|
|
|
18
19
|
event: string | null;
|
|
19
20
|
deadlineAt: number | null;
|
|
20
21
|
timezone: string;
|
|
22
|
+
createdOn: CreatedOn;
|
|
21
23
|
}
|
|
22
24
|
type PublishResult = void;
|
|
23
|
-
type EditParams = Omit<PublishParams, 'instrument' | 'type' | 'group' | 'event'>;
|
|
25
|
+
type EditParams = Omit<PublishParams, 'instrument' | 'type' | 'group' | 'event' | 'createdOn'>;
|
|
24
26
|
type EditResult = void;
|
|
25
27
|
interface SelectApplicantParams {
|
|
26
28
|
offerId: string;
|
|
@@ -36,6 +38,11 @@ export declare namespace OfferFbFunctionsTypes {
|
|
|
36
38
|
offerId: string;
|
|
37
39
|
}
|
|
38
40
|
type CloseSelectionResult = void;
|
|
41
|
+
interface ReopenSelectionParams {
|
|
42
|
+
offerId: string;
|
|
43
|
+
deadlineAt: number;
|
|
44
|
+
}
|
|
45
|
+
type ReopenSelectionResult = void;
|
|
39
46
|
interface RemoveParams {
|
|
40
47
|
offerId: string;
|
|
41
48
|
}
|
package/functions/regions.js
CHANGED
|
@@ -10,142 +10,144 @@ var GCloudRegions;
|
|
|
10
10
|
})(GCloudRegions = exports.GCloudRegions || (exports.GCloudRegions = {}));
|
|
11
11
|
const defaultRegion = GCloudRegions.UsCentral1;
|
|
12
12
|
const regionByFunctions = {
|
|
13
|
-
[index_1.FbFunctionName.
|
|
14
|
-
[index_1.FbFunctionName.
|
|
15
|
-
[index_1.FbFunctionName.
|
|
16
|
-
[index_1.FbFunctionName.
|
|
17
|
-
[index_1.FbFunctionName.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
48
|
+
[index_1.FbFunctionName.EventPlayerSwitchAssistance]: GCloudRegions.UsCentral1,
|
|
90
49
|
[index_1.FbFunctionName.EventPlayerSwitchInterest]: GCloudRegions.EuropeWest6,
|
|
91
|
-
[index_1.FbFunctionName.
|
|
92
|
-
[index_1.FbFunctionName.
|
|
93
|
-
[index_1.FbFunctionName.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.OfferOnCreate]: GCloudRegions.EuropeWest6,
|
|
120
|
+
[index_1.FbFunctionName.OfferOnUpdate]: GCloudRegions.EuropeWest6,
|
|
121
|
+
[index_1.FbFunctionName.OfferPublish]: GCloudRegions.EuropeWest6,
|
|
122
|
+
[index_1.FbFunctionName.OfferRemove]: GCloudRegions.EuropeWest6,
|
|
123
|
+
[index_1.FbFunctionName.OfferReopenSelection]: GCloudRegions.EuropeWest6,
|
|
124
|
+
[index_1.FbFunctionName.OfferSelectApplicant]: GCloudRegions.EuropeWest6,
|
|
125
|
+
[index_1.FbFunctionName.OfferViewApplicant]: GCloudRegions.EuropeWest6,
|
|
126
|
+
[index_1.FbFunctionName.PartnershipAddConfirmedAdmin]: GCloudRegions.EuropeWest6,
|
|
116
127
|
[index_1.FbFunctionName.PartnershipCreate]: GCloudRegions.EuropeWest6,
|
|
117
128
|
[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
129
|
[index_1.FbFunctionName.PartnershipGroupAdd]: GCloudRegions.EuropeWest6,
|
|
123
130
|
[index_1.FbFunctionName.PartnershipGroupRemove]: GCloudRegions.EuropeWest6,
|
|
124
|
-
[index_1.FbFunctionName.
|
|
125
|
-
[index_1.FbFunctionName.
|
|
126
|
-
[index_1.FbFunctionName.
|
|
127
|
-
[index_1.FbFunctionName.
|
|
128
|
-
[index_1.FbFunctionName.OfferOnUpdate]: GCloudRegions.EuropeWest6,
|
|
129
|
-
[index_1.FbFunctionName.OfferCloseSelection]: GCloudRegions.EuropeWest6,
|
|
130
|
-
[index_1.FbFunctionName.OfferRemove]: GCloudRegions.EuropeWest6,
|
|
131
|
-
[index_1.FbFunctionName.OfferApplicantAdd]: GCloudRegions.EuropeWest6,
|
|
132
|
-
[index_1.FbFunctionName.OfferApplicantEdit]: GCloudRegions.EuropeWest6,
|
|
133
|
-
[index_1.FbFunctionName.OfferApplicantRemove]: GCloudRegions.EuropeWest6,
|
|
134
|
-
[index_1.FbFunctionName.MiscAddSubscriber]: GCloudRegions.EuropeWest6,
|
|
135
|
-
[index_1.FbFunctionName.MiscHandleActiveCampaignAutomationContacts]: GCloudRegions.EuropeWest6,
|
|
136
|
-
[index_1.FbFunctionName.Auth]: GCloudRegions.UsCentral1,
|
|
137
|
-
[index_1.FbFunctionName.GroupCronSatistactionIndexWeekly]: GCloudRegions.EuropeWest6,
|
|
138
|
-
[index_1.FbFunctionName.MetricsWeekly]: GCloudRegions.EuropeWest6,
|
|
139
|
-
[index_1.FbFunctionName.MiscScheduledFirestoreExport]: GCloudRegions.EuropeWest6,
|
|
140
|
-
[index_1.FbFunctionName.ReminderResponseDeadlineSoon]: GCloudRegions.EuropeWest6,
|
|
131
|
+
[index_1.FbFunctionName.PartnershipOnUpdate]: GCloudRegions.EuropeWest6,
|
|
132
|
+
[index_1.FbFunctionName.PartnershipRemove]: GCloudRegions.EuropeWest6,
|
|
133
|
+
[index_1.FbFunctionName.PartnershipRemoveAdmin]: GCloudRegions.EuropeWest6,
|
|
134
|
+
[index_1.FbFunctionName.ReminderBiweeklyEventsEmail]: GCloudRegions.EuropeWest6,
|
|
141
135
|
[index_1.FbFunctionName.ReminderDatetime]: GCloudRegions.EuropeWest6,
|
|
142
136
|
[index_1.FbFunctionName.ReminderResponseDeadlineEnded]: GCloudRegions.EuropeWest6,
|
|
137
|
+
[index_1.FbFunctionName.ReminderResponseDeadlineSoon]: GCloudRegions.EuropeWest6,
|
|
143
138
|
[index_1.FbFunctionName.ReminderRollCall]: GCloudRegions.EuropeWest1,
|
|
144
|
-
[index_1.FbFunctionName.
|
|
145
|
-
[index_1.FbFunctionName.
|
|
139
|
+
[index_1.FbFunctionName.UserJoinEvent]: GCloudRegions.EuropeWest6,
|
|
140
|
+
[index_1.FbFunctionName.UserOnCreateDoc]: GCloudRegions.UsCentral1,
|
|
141
|
+
[index_1.FbFunctionName.UserOnLogin]: GCloudRegions.EuropeWest6,
|
|
142
|
+
[index_1.FbFunctionName.UserOnSignUp]: GCloudRegions.EuropeWest6,
|
|
143
|
+
[index_1.FbFunctionName.UserOnUpdate]: GCloudRegions.UsCentral1,
|
|
144
|
+
[index_1.FbFunctionName.UserRegister]: GCloudRegions.UsCentral1,
|
|
145
|
+
[index_1.FbFunctionName.UserRemove]: GCloudRegions.EuropeWest6,
|
|
146
|
+
[index_1.FbFunctionName.UserSendYearWrapped]: GCloudRegions.EuropeWest6,
|
|
147
|
+
[index_1.FbFunctionName.WebhookEventOnCreate]: GCloudRegions.EuropeWest6,
|
|
146
148
|
[index_1.FbFunctionName.WebhookGocardless]: GCloudRegions.EuropeWest6,
|
|
147
149
|
[index_1.FbFunctionName.WebhookMessagebird]: GCloudRegions.EuropeWest6,
|
|
148
|
-
[index_1.FbFunctionName.
|
|
150
|
+
[index_1.FbFunctionName.WebhookStripe]: GCloudRegions.EuropeWest6,
|
|
149
151
|
};
|
|
150
152
|
const getFunctionRegion = (fn) => regionByFunctions[fn] || defaultRegion;
|
|
151
153
|
exports.getFunctionRegion = getFunctionRegion;
|
package/helpers/types.d.ts
CHANGED
package/helpers/types.js
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AdminItemStatus = void 0;
|
|
3
|
+
exports.CreatedOn = exports.AdminItemStatus = void 0;
|
|
4
4
|
var AdminItemStatus;
|
|
5
5
|
(function (AdminItemStatus) {
|
|
6
6
|
AdminItemStatus["Pending"] = "pending";
|
|
7
7
|
AdminItemStatus["Accepted"] = "accepted";
|
|
8
8
|
})(AdminItemStatus = exports.AdminItemStatus || (exports.AdminItemStatus = {}));
|
|
9
|
+
var CreatedOn;
|
|
10
|
+
(function (CreatedOn) {
|
|
11
|
+
CreatedOn["Auth"] = "auth";
|
|
12
|
+
CreatedOn["Web"] = "web";
|
|
13
|
+
CreatedOn["App"] = "app";
|
|
14
|
+
CreatedOn["Dashboard"] = "dashboard";
|
|
15
|
+
})(CreatedOn = exports.CreatedOn || (exports.CreatedOn = {}));
|
package/models/Evento/index.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export default class Evento extends EventoPromoter<EventData> {
|
|
|
34
34
|
get deletedAt(): FirebaseFirestore.Timestamp | null;
|
|
35
35
|
get deletedBy(): string | null;
|
|
36
36
|
get createdAt(): FirebaseFirestore.Timestamp;
|
|
37
|
-
get createdOn(): import("
|
|
37
|
+
get createdOn(): import("../../helpers/types").CreatedOn;
|
|
38
38
|
get rollCalledAt(): FirebaseFirestore.Timestamp | null;
|
|
39
39
|
get rollCalledBy(): string | null;
|
|
40
40
|
get rollCallReminderAt(): FirebaseFirestore.Timestamp | null;
|
package/models/Evento/types.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DocumentReference, GeoPoint, Timestamp } from '@google-cloud/firestore';
|
|
2
2
|
import { Descendant } from '../../helpers/slate';
|
|
3
|
+
import { CreatedOn } from '../../helpers/types';
|
|
3
4
|
import { StageTemplate } from '../Group/StageTemplate/types';
|
|
4
5
|
import { GroupBasicData } from '../Group/types';
|
|
5
6
|
import { PlayerBasicData } from '../Player/types';
|
|
@@ -12,11 +13,6 @@ export declare enum EventResponseDeadlineOptions {
|
|
|
12
13
|
OneWeekBefore = "OneWeekBefore",
|
|
13
14
|
Custom = "Custom"
|
|
14
15
|
}
|
|
15
|
-
export declare enum EventCreatedOn {
|
|
16
|
-
App = "app",
|
|
17
|
-
Dashboard = "dashboard",
|
|
18
|
-
Auth = "auth"
|
|
19
|
-
}
|
|
20
16
|
export declare enum EventFiles {
|
|
21
17
|
StageThumbnail = "stageThumbnail.png",
|
|
22
18
|
StagePDF = "stage.pdf",
|
|
@@ -124,5 +120,5 @@ export interface EventData extends EventPromoterData {
|
|
|
124
120
|
sites: boolean;
|
|
125
121
|
readonly owner: DocumentReference;
|
|
126
122
|
readonly createdAt: Timestamp;
|
|
127
|
-
readonly createdOn:
|
|
123
|
+
readonly createdOn: CreatedOn;
|
|
128
124
|
}
|
package/models/Evento/types.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EventSelectionMode = exports.EventStatusByTime = exports.EventRepeatPeriod = exports.EventType = exports.EventFiles = exports.
|
|
3
|
+
exports.EventSelectionMode = exports.EventStatusByTime = exports.EventRepeatPeriod = exports.EventType = exports.EventFiles = exports.EventResponseDeadlineOptions = void 0;
|
|
4
4
|
var EventResponseDeadlineOptions;
|
|
5
5
|
(function (EventResponseDeadlineOptions) {
|
|
6
6
|
EventResponseDeadlineOptions["BeforeEvent"] = "BeforeEvent";
|
|
@@ -9,12 +9,6 @@ var EventResponseDeadlineOptions;
|
|
|
9
9
|
EventResponseDeadlineOptions["OneWeekBefore"] = "OneWeekBefore";
|
|
10
10
|
EventResponseDeadlineOptions["Custom"] = "Custom";
|
|
11
11
|
})(EventResponseDeadlineOptions = exports.EventResponseDeadlineOptions || (exports.EventResponseDeadlineOptions = {}));
|
|
12
|
-
var EventCreatedOn;
|
|
13
|
-
(function (EventCreatedOn) {
|
|
14
|
-
EventCreatedOn["App"] = "app";
|
|
15
|
-
EventCreatedOn["Dashboard"] = "dashboard";
|
|
16
|
-
EventCreatedOn["Auth"] = "auth";
|
|
17
|
-
})(EventCreatedOn = exports.EventCreatedOn || (exports.EventCreatedOn = {}));
|
|
18
12
|
var EventFiles;
|
|
19
13
|
(function (EventFiles) {
|
|
20
14
|
EventFiles["StageThumbnail"] = "stageThumbnail.png";
|
package/models/Group/index.d.ts
CHANGED
|
@@ -79,7 +79,7 @@ export default class Group extends GroupBasic<GroupData> {
|
|
|
79
79
|
getRepertoireTagName(id: string): string | null;
|
|
80
80
|
get trialEndAt(): Date;
|
|
81
81
|
get glissandooAdminUrl(): string;
|
|
82
|
-
get createdOn(): import("
|
|
82
|
+
get createdOn(): import("../../helpers/types").CreatedOn;
|
|
83
83
|
get instruments(): Partial<Record<import("../../helpers/instruments").DefaultInstrumentId, import("./types").DefaultGroupInstrument>> & Record<`customInstrument-${string}`, import("./types").CustomGroupInstrument>;
|
|
84
84
|
get instrumentsList(): Pick<(import("./types").DefaultGroupInstrument & {
|
|
85
85
|
id: import("../../helpers/instruments").DefaultInstrumentId | `customInstrument-${string}`;
|
package/models/Group/types.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { DocumentReference, GeoPoint, Timestamp } from '@google-cloud/firestore'
|
|
|
2
2
|
import { CustomInstrumentId, DefaultInstrumentId } from '../../helpers/instruments';
|
|
3
3
|
import { MusicStyleType } from '../../helpers/musicStyles';
|
|
4
4
|
import { PlansGroup } from '../../helpers/plans';
|
|
5
|
+
import { CreatedOn } from '../../helpers/types';
|
|
5
6
|
import { EventType } from '../Evento/types';
|
|
6
7
|
import { PlayerBasicData } from '../Player/types';
|
|
7
8
|
export interface GroupOnboardingMessage {
|
|
@@ -10,11 +11,6 @@ export interface GroupOnboardingMessage {
|
|
|
10
11
|
via: string;
|
|
11
12
|
to: string[];
|
|
12
13
|
}
|
|
13
|
-
export declare enum GroupCreatedOn {
|
|
14
|
-
Web = "web",
|
|
15
|
-
App = "app",
|
|
16
|
-
Dashboard = "dashboard"
|
|
17
|
-
}
|
|
18
14
|
export declare enum GroupConfigKey {
|
|
19
15
|
IncludesMembersToEventsWhenJoined = "includesMembersToEventsWhenJoined",
|
|
20
16
|
AllowEditInstruments = "allowEditInstruments",
|
|
@@ -74,7 +70,7 @@ export interface GroupAlgoliaData extends Omit<GroupBasicData, 'location'> {
|
|
|
74
70
|
status: GroupStatus;
|
|
75
71
|
si: number;
|
|
76
72
|
siChange: 'up' | 'down' | 'equal';
|
|
77
|
-
createdOn:
|
|
73
|
+
createdOn: CreatedOn;
|
|
78
74
|
createdAt: number;
|
|
79
75
|
memberForecast: string;
|
|
80
76
|
sites: boolean;
|
|
@@ -172,7 +168,7 @@ export interface GroupData extends GroupBasicData {
|
|
|
172
168
|
visitedDashboardAt: Record<string, Timestamp>;
|
|
173
169
|
onboardingMessages: GroupOnboardingMessage[];
|
|
174
170
|
subscriptionId: string | null;
|
|
175
|
-
readonly createdOn:
|
|
171
|
+
readonly createdOn: CreatedOn;
|
|
176
172
|
readonly owner: DocumentReference;
|
|
177
173
|
readonly createdAt: Timestamp;
|
|
178
174
|
}
|
package/models/Group/types.js
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GroupRepertoireTagDefault = exports.GroupRepertoireTagReserved = exports.SocialNetwork = exports.GroupStatus = exports.GroupConfigShowAttendanceToMembers = exports.GroupConfigSitesKey = exports.GroupConfigKey =
|
|
4
|
-
var GroupCreatedOn;
|
|
5
|
-
(function (GroupCreatedOn) {
|
|
6
|
-
GroupCreatedOn["Web"] = "web";
|
|
7
|
-
GroupCreatedOn["App"] = "app";
|
|
8
|
-
GroupCreatedOn["Dashboard"] = "dashboard";
|
|
9
|
-
})(GroupCreatedOn = exports.GroupCreatedOn || (exports.GroupCreatedOn = {}));
|
|
3
|
+
exports.GroupRepertoireTagDefault = exports.GroupRepertoireTagReserved = exports.SocialNetwork = exports.GroupStatus = exports.GroupConfigShowAttendanceToMembers = exports.GroupConfigSitesKey = exports.GroupConfigKey = void 0;
|
|
10
4
|
var GroupConfigKey;
|
|
11
5
|
(function (GroupConfigKey) {
|
|
12
6
|
GroupConfigKey["IncludesMembersToEventsWhenJoined"] = "includesMembersToEventsWhenJoined";
|
package/models/Offer/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ 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
|
+
get createdOn(): import("../../helpers/types").CreatedOn;
|
|
10
11
|
get title(): string;
|
|
11
12
|
get instrument(): DefaultInstrumentId;
|
|
12
13
|
get description(): import("../../helpers/slate").Descendant[];
|
package/models/Offer/index.js
CHANGED
package/models/Offer/types.d.ts
CHANGED
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
import { GeoPoint, Timestamp } from '@google-cloud/firestore';
|
|
2
2
|
import { DefaultInstrumentId } from '../../helpers/instruments';
|
|
3
3
|
import { Descendant } from '../../helpers/slate';
|
|
4
|
+
import { CreatedOn } from '../../helpers/types';
|
|
4
5
|
import { UserBasicData } from '../User/types';
|
|
5
6
|
export declare enum OfferType {
|
|
6
7
|
Group = "group",
|
|
7
8
|
Event = "event"
|
|
8
9
|
}
|
|
10
|
+
export interface OfferAlgoliaData extends Pick<OfferData, 'country' | 'locality' | 'title' | 'timezone' | 'type' | 'group' | 'event' | 'applicantsIds'> {
|
|
11
|
+
objectID: string;
|
|
12
|
+
_geoloc: {
|
|
13
|
+
lat: number;
|
|
14
|
+
lng: number;
|
|
15
|
+
};
|
|
16
|
+
deadlineAt: number | null;
|
|
17
|
+
createdAt: number;
|
|
18
|
+
selectionClosedAt: number | null;
|
|
19
|
+
}
|
|
9
20
|
export interface OfferApplicantBasicData extends UserBasicData {
|
|
10
21
|
appliedAt: Timestamp;
|
|
11
22
|
viewedAt: Timestamp | null;
|
|
@@ -38,4 +49,5 @@ export interface OfferData {
|
|
|
38
49
|
deletedBy: string | null;
|
|
39
50
|
readonly createdAt: Timestamp;
|
|
40
51
|
readonly createdBy: string;
|
|
52
|
+
readonly createdOn: CreatedOn;
|
|
41
53
|
}
|
package/package.json
CHANGED
|
@@ -34,7 +34,7 @@ export interface Database {
|
|
|
34
34
|
activeInvitationLink: boolean;
|
|
35
35
|
coverURL: string | null;
|
|
36
36
|
createdAt: string;
|
|
37
|
-
createdOn: Database['public']['Enums']['
|
|
37
|
+
createdOn: Database['public']['Enums']['created_on'];
|
|
38
38
|
datetime: string;
|
|
39
39
|
datetimeEnd: string;
|
|
40
40
|
deletedAt: string | null;
|
|
@@ -80,7 +80,7 @@ export interface Database {
|
|
|
80
80
|
activeInvitationLink: boolean;
|
|
81
81
|
coverURL?: string | null;
|
|
82
82
|
createdAt?: string;
|
|
83
|
-
createdOn: Database['public']['Enums']['
|
|
83
|
+
createdOn: Database['public']['Enums']['created_on'];
|
|
84
84
|
datetime: string;
|
|
85
85
|
datetimeEnd: string;
|
|
86
86
|
deletedAt?: string | null;
|
|
@@ -126,7 +126,7 @@ export interface Database {
|
|
|
126
126
|
activeInvitationLink?: boolean;
|
|
127
127
|
coverURL?: string | null;
|
|
128
128
|
createdAt?: string;
|
|
129
|
-
createdOn?: Database['public']['Enums']['
|
|
129
|
+
createdOn?: Database['public']['Enums']['created_on'];
|
|
130
130
|
datetime?: string;
|
|
131
131
|
datetimeEnd?: string;
|
|
132
132
|
deletedAt?: string | null;
|
|
@@ -186,7 +186,7 @@ export interface Database {
|
|
|
186
186
|
configSites: Json;
|
|
187
187
|
country: string;
|
|
188
188
|
createdAt: string;
|
|
189
|
-
createdOn: Database['public']['Enums']['
|
|
189
|
+
createdOn: Database['public']['Enums']['created_on'];
|
|
190
190
|
customerId: string | null;
|
|
191
191
|
deletedAt: string | null;
|
|
192
192
|
deletedBy: string | null;
|
|
@@ -230,7 +230,7 @@ export interface Database {
|
|
|
230
230
|
configSites?: Json;
|
|
231
231
|
country: string;
|
|
232
232
|
createdAt?: string;
|
|
233
|
-
createdOn: Database['public']['Enums']['
|
|
233
|
+
createdOn: Database['public']['Enums']['created_on'];
|
|
234
234
|
customerId?: string | null;
|
|
235
235
|
deletedAt?: string | null;
|
|
236
236
|
deletedBy?: string | null;
|
|
@@ -274,7 +274,7 @@ export interface Database {
|
|
|
274
274
|
configSites?: Json;
|
|
275
275
|
country?: string;
|
|
276
276
|
createdAt?: string;
|
|
277
|
-
createdOn?: Database['public']['Enums']['
|
|
277
|
+
createdOn?: Database['public']['Enums']['created_on'];
|
|
278
278
|
customerId?: string | null;
|
|
279
279
|
deletedAt?: string | null;
|
|
280
280
|
deletedBy?: string | null;
|
|
@@ -396,10 +396,9 @@ export interface Database {
|
|
|
396
396
|
[_ in never]: never;
|
|
397
397
|
};
|
|
398
398
|
Enums: {
|
|
399
|
-
|
|
399
|
+
created_on: 'app' | 'dashboard' | 'auth' | 'web';
|
|
400
400
|
event_selection_mode: 'open' | 'closed';
|
|
401
401
|
event_type: 'practice' | 'performance';
|
|
402
|
-
group_created_on: 'web' | 'app' | 'dashboard';
|
|
403
402
|
group_plan: 'piano' | 'mezzopiano' | 'mezzoforte' | 'forte' | 'fortissimo' | 'tutti';
|
|
404
403
|
group_plan_period: 'yearly' | 'monthly';
|
|
405
404
|
group_status: 'premium' | 'trial' | 'inactive' | 'deleted';
|
|
@@ -33,7 +33,7 @@ export interface Database {
|
|
|
33
33
|
activeInvitationLink: boolean;
|
|
34
34
|
coverURL: string | null;
|
|
35
35
|
createdAt: string;
|
|
36
|
-
createdOn: Database['public']['Enums']['
|
|
36
|
+
createdOn: Database['public']['Enums']['created_on'];
|
|
37
37
|
datetime: string;
|
|
38
38
|
datetimeEnd: string;
|
|
39
39
|
deletedAt: string | null;
|
|
@@ -79,7 +79,7 @@ export interface Database {
|
|
|
79
79
|
activeInvitationLink: boolean;
|
|
80
80
|
coverURL?: string | null;
|
|
81
81
|
createdAt?: string;
|
|
82
|
-
createdOn: Database['public']['Enums']['
|
|
82
|
+
createdOn: Database['public']['Enums']['created_on'];
|
|
83
83
|
datetime: string;
|
|
84
84
|
datetimeEnd: string;
|
|
85
85
|
deletedAt?: string | null;
|
|
@@ -125,7 +125,7 @@ export interface Database {
|
|
|
125
125
|
activeInvitationLink?: boolean;
|
|
126
126
|
coverURL?: string | null;
|
|
127
127
|
createdAt?: string;
|
|
128
|
-
createdOn?: Database['public']['Enums']['
|
|
128
|
+
createdOn?: Database['public']['Enums']['created_on'];
|
|
129
129
|
datetime?: string;
|
|
130
130
|
datetimeEnd?: string;
|
|
131
131
|
deletedAt?: string | null;
|
|
@@ -185,7 +185,7 @@ export interface Database {
|
|
|
185
185
|
configSites: Json;
|
|
186
186
|
country: string;
|
|
187
187
|
createdAt: string;
|
|
188
|
-
createdOn: Database['public']['Enums']['
|
|
188
|
+
createdOn: Database['public']['Enums']['created_on'];
|
|
189
189
|
customerId: string | null;
|
|
190
190
|
deletedAt: string | null;
|
|
191
191
|
deletedBy: string | null;
|
|
@@ -229,7 +229,7 @@ export interface Database {
|
|
|
229
229
|
configSites?: Json;
|
|
230
230
|
country: string;
|
|
231
231
|
createdAt?: string;
|
|
232
|
-
createdOn: Database['public']['Enums']['
|
|
232
|
+
createdOn: Database['public']['Enums']['created_on'];
|
|
233
233
|
customerId?: string | null;
|
|
234
234
|
deletedAt?: string | null;
|
|
235
235
|
deletedBy?: string | null;
|
|
@@ -273,7 +273,7 @@ export interface Database {
|
|
|
273
273
|
configSites?: Json;
|
|
274
274
|
country?: string;
|
|
275
275
|
createdAt?: string;
|
|
276
|
-
createdOn?: Database['public']['Enums']['
|
|
276
|
+
createdOn?: Database['public']['Enums']['created_on'];
|
|
277
277
|
customerId?: string | null;
|
|
278
278
|
deletedAt?: string | null;
|
|
279
279
|
deletedBy?: string | null;
|
|
@@ -395,10 +395,9 @@ export interface Database {
|
|
|
395
395
|
[_ in never]: never;
|
|
396
396
|
};
|
|
397
397
|
Enums: {
|
|
398
|
-
|
|
398
|
+
created_on: 'app' | 'dashboard' | 'auth' | 'web';
|
|
399
399
|
event_selection_mode: 'open' | 'closed';
|
|
400
400
|
event_type: 'practice' | 'performance';
|
|
401
|
-
group_created_on: 'web' | 'app' | 'dashboard';
|
|
402
401
|
group_plan: 'piano' | 'mezzopiano' | 'mezzoforte' | 'forte' | 'fortissimo' | 'tutti';
|
|
403
402
|
group_plan_period: 'yearly' | 'monthly';
|
|
404
403
|
group_status: 'premium' | 'trial' | 'inactive' | 'deleted';
|