@glissandoo/lib 1.32.13 → 1.33.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/index.d.ts
CHANGED
|
@@ -82,6 +82,7 @@ export declare enum FbFunctionName {
|
|
|
82
82
|
PartnerValidate = "partner-validate",
|
|
83
83
|
PartnerValidateIBAN = "partner-validateIBAN",
|
|
84
84
|
PartnershipAddConfirmedAdmin = "partnership-addConfirmedAdmin",
|
|
85
|
+
PartnershipPublish = "partnership-publish",
|
|
85
86
|
PartnershipCreate = "partnership-create",
|
|
86
87
|
PartnershipRemove = "partnership-remove",
|
|
87
88
|
PartnershipEdit = "partnership-edit",
|
package/functions/index.js
CHANGED
|
@@ -86,6 +86,7 @@ var FbFunctionName;
|
|
|
86
86
|
FbFunctionName["PartnerValidate"] = "partner-validate";
|
|
87
87
|
FbFunctionName["PartnerValidateIBAN"] = "partner-validateIBAN";
|
|
88
88
|
FbFunctionName["PartnershipAddConfirmedAdmin"] = "partnership-addConfirmedAdmin";
|
|
89
|
+
FbFunctionName["PartnershipPublish"] = "partnership-publish";
|
|
89
90
|
FbFunctionName["PartnershipCreate"] = "partnership-create";
|
|
90
91
|
FbFunctionName["PartnershipRemove"] = "partnership-remove";
|
|
91
92
|
FbFunctionName["PartnershipEdit"] = "partnership-edit";
|
|
@@ -1,18 +1,30 @@
|
|
|
1
1
|
import { PlanPeriod, PlansGroup } from '../helpers/plans';
|
|
2
2
|
import { BasicAddressData } from '../models/Partner/types';
|
|
3
3
|
export declare namespace PartnershipFbFunctionsTypes {
|
|
4
|
+
interface PublishParams {
|
|
5
|
+
partnershipId: string;
|
|
6
|
+
groupId: string;
|
|
7
|
+
displayName: string;
|
|
8
|
+
howDidYouHearAboutUs: string;
|
|
9
|
+
address: BasicAddressData;
|
|
10
|
+
CIF: string;
|
|
11
|
+
}
|
|
12
|
+
type PublishResult = void;
|
|
4
13
|
interface CreateParams {
|
|
14
|
+
partnershipId: string;
|
|
5
15
|
displayName: string;
|
|
6
16
|
photoURL: string;
|
|
7
17
|
email: string;
|
|
8
18
|
phone: string | null;
|
|
9
19
|
address: BasicAddressData;
|
|
10
|
-
partnershipId: string;
|
|
11
20
|
gocardlessCustomerId: string | null;
|
|
12
21
|
CIF: string | null;
|
|
22
|
+
howDidYouHearAboutUs: string | null;
|
|
13
23
|
}
|
|
14
24
|
type CreateResult = void;
|
|
15
|
-
type EditParams = CreateParams
|
|
25
|
+
type EditParams = Partial<CreateParams> & {
|
|
26
|
+
partnershipId: string;
|
|
27
|
+
};
|
|
16
28
|
type EditResult = void;
|
|
17
29
|
interface RemoveParams {
|
|
18
30
|
partnershipId: string;
|
package/functions/regions.js
CHANGED
|
@@ -95,6 +95,7 @@ const regionByFunctions = {
|
|
|
95
95
|
[index_1.FbFunctionName.SubscriptionAdd]: GCloudRegions.EuropeWest6,
|
|
96
96
|
[index_1.FbFunctionName.SubscriptionCancel]: GCloudRegions.EuropeWest6,
|
|
97
97
|
[index_1.FbFunctionName.SubscriptionResume]: GCloudRegions.EuropeWest6,
|
|
98
|
+
[index_1.FbFunctionName.PartnershipPublish]: GCloudRegions.EuropeWest6,
|
|
98
99
|
[index_1.FbFunctionName.PartnershipCreate]: GCloudRegions.EuropeWest6,
|
|
99
100
|
[index_1.FbFunctionName.PartnershipEdit]: GCloudRegions.EuropeWest6,
|
|
100
101
|
[index_1.FbFunctionName.PartnershipRemove]: GCloudRegions.EuropeWest6,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AdminItem } from '../../helpers/types';
|
|
2
|
-
import { Timestamp } from '../../types/firestore';
|
|
2
|
+
import { DocumentReference, Timestamp } from '../../types/firestore';
|
|
3
3
|
import { BasicAddressData } from '../Partner/types';
|
|
4
4
|
export declare enum PartnershipRoles {
|
|
5
5
|
Admin = "admin"
|
|
@@ -43,4 +43,5 @@ export interface PartnershipData extends PartnershipBasicData {
|
|
|
43
43
|
}[];
|
|
44
44
|
howDidYouHearAboutUs: string | null;
|
|
45
45
|
readonly createdAt: Timestamp;
|
|
46
|
+
readonly createdBy: DocumentReference;
|
|
46
47
|
}
|