@glissandoo/lib 1.49.2 → 1.50.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/customerGroup.d.ts +7 -0
- package/functions/index.d.ts +3 -2
- package/functions/index.js +3 -2
- package/functions/regions.js +3 -2
- package/helpers/errors.d.ts +2 -1
- package/helpers/errors.js +1 -0
- package/package.json +1 -1
|
@@ -18,4 +18,11 @@ export declare namespace CustomerGroupFbFunctionsTypes {
|
|
|
18
18
|
groupId: string;
|
|
19
19
|
}
|
|
20
20
|
type RemoveResult = void;
|
|
21
|
+
interface UpgradeSubscriptionParams {
|
|
22
|
+
customerId: string;
|
|
23
|
+
groupId: string;
|
|
24
|
+
}
|
|
25
|
+
interface UpgradeSubscriptionResult {
|
|
26
|
+
url: string;
|
|
27
|
+
}
|
|
21
28
|
}
|
package/functions/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export declare enum FbFunctionName {
|
|
|
14
14
|
CustomerGroupAdd = "customerGroup-add",
|
|
15
15
|
CustomerGroupSetPlan = "customerGroup-setPlan",
|
|
16
16
|
CustomerGroupRemove = "customerGroup-remove",
|
|
17
|
+
CustomerGroupUpgradeSubscription = "customerGroup-upgradeSubscription",
|
|
17
18
|
CommunicationCommentPublish = "communicationComment-publish",
|
|
18
19
|
CommunicationEdit = "communication-edit",
|
|
19
20
|
CommunicationPublish = "communication-publish",
|
|
@@ -98,8 +99,8 @@ export declare enum FbFunctionName {
|
|
|
98
99
|
PartnershipRemoveAdmin = "partnership-removeAdmin",
|
|
99
100
|
PartnershipGroupAdd = "partnershipGroup-add",
|
|
100
101
|
PartnershipGroupRemove = "partnershipGroup-remove",
|
|
101
|
-
|
|
102
|
-
|
|
102
|
+
ReminderResponseDeadline = "reminder-responseDeadline",
|
|
103
|
+
ReminderDatetime = "reminder-datetime",
|
|
103
104
|
ReminderRollCall = "reminder-rollCall",
|
|
104
105
|
ReminderBiweeklyEventsEmail = "reminder-biweeklyEventsEmail",
|
|
105
106
|
UserOnCreateDoc = "user-onCreateDoc",
|
package/functions/index.js
CHANGED
|
@@ -18,6 +18,7 @@ var FbFunctionName;
|
|
|
18
18
|
FbFunctionName["CustomerGroupAdd"] = "customerGroup-add";
|
|
19
19
|
FbFunctionName["CustomerGroupSetPlan"] = "customerGroup-setPlan";
|
|
20
20
|
FbFunctionName["CustomerGroupRemove"] = "customerGroup-remove";
|
|
21
|
+
FbFunctionName["CustomerGroupUpgradeSubscription"] = "customerGroup-upgradeSubscription";
|
|
21
22
|
FbFunctionName["CommunicationCommentPublish"] = "communicationComment-publish";
|
|
22
23
|
FbFunctionName["CommunicationEdit"] = "communication-edit";
|
|
23
24
|
FbFunctionName["CommunicationPublish"] = "communication-publish";
|
|
@@ -102,8 +103,8 @@ var FbFunctionName;
|
|
|
102
103
|
FbFunctionName["PartnershipRemoveAdmin"] = "partnership-removeAdmin";
|
|
103
104
|
FbFunctionName["PartnershipGroupAdd"] = "partnershipGroup-add";
|
|
104
105
|
FbFunctionName["PartnershipGroupRemove"] = "partnershipGroup-remove";
|
|
105
|
-
FbFunctionName["
|
|
106
|
-
FbFunctionName["
|
|
106
|
+
FbFunctionName["ReminderResponseDeadline"] = "reminder-responseDeadline";
|
|
107
|
+
FbFunctionName["ReminderDatetime"] = "reminder-datetime";
|
|
107
108
|
FbFunctionName["ReminderRollCall"] = "reminder-rollCall";
|
|
108
109
|
FbFunctionName["ReminderBiweeklyEventsEmail"] = "reminder-biweeklyEventsEmail";
|
|
109
110
|
FbFunctionName["UserOnCreateDoc"] = "user-onCreateDoc";
|
package/functions/regions.js
CHANGED
|
@@ -30,6 +30,7 @@ const regionByFunctions = {
|
|
|
30
30
|
[index_1.FbFunctionName.CustomerGroupAdd]: GCloudRegions.EuropeWest6,
|
|
31
31
|
[index_1.FbFunctionName.CustomerGroupSetPlan]: GCloudRegions.EuropeWest6,
|
|
32
32
|
[index_1.FbFunctionName.CustomerGroupRemove]: GCloudRegions.EuropeWest6,
|
|
33
|
+
[index_1.FbFunctionName.CustomerGroupUpgradeSubscription]: GCloudRegions.EuropeWest6,
|
|
33
34
|
[index_1.FbFunctionName.JWTGenerate]: GCloudRegions.EuropeWest6,
|
|
34
35
|
[index_1.FbFunctionName.GroupPublish]: GCloudRegions.EuropeWest6,
|
|
35
36
|
[index_1.FbFunctionName.GroupEdit]: GCloudRegions.EuropeWest6,
|
|
@@ -115,8 +116,8 @@ const regionByFunctions = {
|
|
|
115
116
|
[index_1.FbFunctionName.MetricsDaily]: GCloudRegions.EuropeWest6,
|
|
116
117
|
[index_1.FbFunctionName.MetricsWeekly]: GCloudRegions.EuropeWest6,
|
|
117
118
|
[index_1.FbFunctionName.MiscScheduledFirestoreExport]: GCloudRegions.EuropeWest6,
|
|
118
|
-
[index_1.FbFunctionName.
|
|
119
|
-
[index_1.FbFunctionName.
|
|
119
|
+
[index_1.FbFunctionName.ReminderResponseDeadline]: GCloudRegions.EuropeWest6,
|
|
120
|
+
[index_1.FbFunctionName.ReminderDatetime]: GCloudRegions.EuropeWest6,
|
|
120
121
|
[index_1.FbFunctionName.ReminderRollCall]: GCloudRegions.EuropeWest1,
|
|
121
122
|
[index_1.FbFunctionName.ReminderBiweeklyEventsEmail]: GCloudRegions.EuropeWest6,
|
|
122
123
|
[index_1.FbFunctionName.WebhookStripe]: GCloudRegions.EuropeWest6,
|
package/helpers/errors.d.ts
CHANGED
|
@@ -50,5 +50,6 @@ export declare enum HttpsErrorMessages {
|
|
|
50
50
|
NoFile = "error.file.noExists",
|
|
51
51
|
Default = "error.default",
|
|
52
52
|
InvalidVATID = "error.vatid.noValid",
|
|
53
|
-
EventResponseDeadlinePassed = "error.event.responseDeadlinePassed"
|
|
53
|
+
EventResponseDeadlinePassed = "error.event.responseDeadlinePassed",
|
|
54
|
+
CustomerGroupNoSubscriptionFound = "error.customerGroup.noSubscriptionFound"
|
|
54
55
|
}
|
package/helpers/errors.js
CHANGED
|
@@ -55,4 +55,5 @@ var HttpsErrorMessages;
|
|
|
55
55
|
HttpsErrorMessages["Default"] = "error.default";
|
|
56
56
|
HttpsErrorMessages["InvalidVATID"] = "error.vatid.noValid";
|
|
57
57
|
HttpsErrorMessages["EventResponseDeadlinePassed"] = "error.event.responseDeadlinePassed";
|
|
58
|
+
HttpsErrorMessages["CustomerGroupNoSubscriptionFound"] = "error.customerGroup.noSubscriptionFound";
|
|
58
59
|
})(HttpsErrorMessages = exports.HttpsErrorMessages || (exports.HttpsErrorMessages = {}));
|