@glissandoo/lib 1.108.13 → 1.108.14
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 +2 -0
- package/functions/index.js +2 -0
- package/functions/partnership.d.ts +101 -2
- package/functions/partnershipCommunication.d.ts +3 -0
- package/functions/partnershipPartner.d.ts +15 -1
- package/functions/partnershipSepaPaymentGroup.d.ts +1 -0
- package/functions/regions.js +2 -0
- package/models/Partnership/Communication/index.d.ts +1 -0
- package/models/Partnership/Communication/index.js +3 -0
- package/models/Partnership/Communication/types.d.ts +1 -0
- package/models/Partnership/Partner/index.d.ts +1 -1
- package/models/Partnership/Partner/types.d.ts +1 -1
- package/models/User/Group/types.d.ts +1 -0
- package/package.json +1 -1
package/functions/index.d.ts
CHANGED
|
@@ -147,6 +147,8 @@ export declare enum FbFunctionName {
|
|
|
147
147
|
PartnershipPartnerRemove = "partnershipPartner-remove",
|
|
148
148
|
PartnershipPartnerRequest = "partnershipPartner-request",
|
|
149
149
|
PartnershipPartnerAccept = "partnershipPartner-accept",
|
|
150
|
+
PartnershipPartnerPortalGetData = "partnershipPartner-portalGetData",
|
|
151
|
+
PartnershipPartnerPortalEdit = "partnershipPartner-portalEdit",
|
|
150
152
|
PartnershipPaymentCreateOneTime = "partnershipPayment-createOneTime",
|
|
151
153
|
PartnershipPaymentGenerateRecurringBySubscriptions = "partnershipPayment-generateRecurringBySubscriptions",
|
|
152
154
|
PartnershipPaymentEdit = "partnershipPayment-edit",
|
package/functions/index.js
CHANGED
|
@@ -151,6 +151,8 @@ var FbFunctionName;
|
|
|
151
151
|
FbFunctionName["PartnershipPartnerRemove"] = "partnershipPartner-remove";
|
|
152
152
|
FbFunctionName["PartnershipPartnerRequest"] = "partnershipPartner-request";
|
|
153
153
|
FbFunctionName["PartnershipPartnerAccept"] = "partnershipPartner-accept";
|
|
154
|
+
FbFunctionName["PartnershipPartnerPortalGetData"] = "partnershipPartner-portalGetData";
|
|
155
|
+
FbFunctionName["PartnershipPartnerPortalEdit"] = "partnershipPartner-portalEdit";
|
|
154
156
|
FbFunctionName["PartnershipPaymentCreateOneTime"] = "partnershipPayment-createOneTime";
|
|
155
157
|
FbFunctionName["PartnershipPaymentGenerateRecurringBySubscriptions"] = "partnershipPayment-generateRecurringBySubscriptions";
|
|
156
158
|
FbFunctionName["PartnershipPaymentEdit"] = "partnershipPayment-edit";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BasicAddressData } from '../helpers/types';
|
|
1
|
+
import { BasicAddressData, BoardMemberItem } from '../helpers/types';
|
|
2
2
|
import { GroupCustomFieldOption, GroupCustomFieldType } from '../models/Group/types';
|
|
3
3
|
import { PartnershipPaymentMethodsConfig, PartnershipSepaCreditorInfo } from '../models/Partnership/types';
|
|
4
4
|
export declare namespace PartnershipFbFunctionsTypes {
|
|
@@ -13,7 +13,9 @@ export declare namespace PartnershipFbFunctionsTypes {
|
|
|
13
13
|
interface PublishParams extends CreateData {
|
|
14
14
|
groupIds: string[];
|
|
15
15
|
}
|
|
16
|
-
type PublishResult =
|
|
16
|
+
type PublishResult = {
|
|
17
|
+
id: string;
|
|
18
|
+
};
|
|
17
19
|
interface CreateParams extends CreateData {
|
|
18
20
|
partnershipId: string;
|
|
19
21
|
}
|
|
@@ -85,4 +87,101 @@ export declare namespace PartnershipFbFunctionsTypes {
|
|
|
85
87
|
paymentMethodsConfig: PartnershipPaymentMethodsConfig | null;
|
|
86
88
|
customFields: GetPublicInfoCustomField[];
|
|
87
89
|
}
|
|
90
|
+
interface PortalGetDataParams {
|
|
91
|
+
partnershipId: string;
|
|
92
|
+
}
|
|
93
|
+
interface PortalPartnershipInfo {
|
|
94
|
+
displayName: string;
|
|
95
|
+
photoURL: string;
|
|
96
|
+
email: string;
|
|
97
|
+
phone: string | null;
|
|
98
|
+
address: BasicAddressData;
|
|
99
|
+
CIF: string | null;
|
|
100
|
+
website: string | null;
|
|
101
|
+
description: string | null;
|
|
102
|
+
groupIds: string[];
|
|
103
|
+
}
|
|
104
|
+
interface PortalPartnerInfo {
|
|
105
|
+
id: string;
|
|
106
|
+
name: string;
|
|
107
|
+
lastname: string;
|
|
108
|
+
email: string | null;
|
|
109
|
+
phone: string | null;
|
|
110
|
+
NIF: string | null;
|
|
111
|
+
address: BasicAddressData | null;
|
|
112
|
+
birthDate: number | null;
|
|
113
|
+
paymentMethod: string | null;
|
|
114
|
+
sepaMandate: {
|
|
115
|
+
mandateId: string;
|
|
116
|
+
iban: string;
|
|
117
|
+
holderFullName: string;
|
|
118
|
+
holderAddress: BasicAddressData | null;
|
|
119
|
+
swiftbic: string | null;
|
|
120
|
+
} | null;
|
|
121
|
+
photoURL: string;
|
|
122
|
+
groupIds: string[];
|
|
123
|
+
subscriptions: Record<string, {
|
|
124
|
+
name: string;
|
|
125
|
+
price: number;
|
|
126
|
+
}>;
|
|
127
|
+
customFields: Record<string, string | number | boolean | null>;
|
|
128
|
+
status: string;
|
|
129
|
+
}
|
|
130
|
+
interface PortalCommunication {
|
|
131
|
+
id: string;
|
|
132
|
+
title: string;
|
|
133
|
+
messageHtml: string;
|
|
134
|
+
imageURL: string | null;
|
|
135
|
+
createdAt: number;
|
|
136
|
+
}
|
|
137
|
+
interface PortalEvent {
|
|
138
|
+
id: string;
|
|
139
|
+
displayName: string | null;
|
|
140
|
+
datetime: number;
|
|
141
|
+
datetimeEnd: number;
|
|
142
|
+
locality: string | null;
|
|
143
|
+
type: string;
|
|
144
|
+
groupName: string;
|
|
145
|
+
groupPhotoURL: string;
|
|
146
|
+
groupId: string;
|
|
147
|
+
coverURL: string | null;
|
|
148
|
+
}
|
|
149
|
+
interface PortalGroup {
|
|
150
|
+
id: string;
|
|
151
|
+
displayName: string;
|
|
152
|
+
photoURL: string;
|
|
153
|
+
locality: string;
|
|
154
|
+
description: string | null;
|
|
155
|
+
memberCount: number;
|
|
156
|
+
musicStyle: string;
|
|
157
|
+
}
|
|
158
|
+
interface PortalSubscription {
|
|
159
|
+
id: string;
|
|
160
|
+
planName: string;
|
|
161
|
+
price: number;
|
|
162
|
+
periodInMonths: number;
|
|
163
|
+
nextPaymentDate: number | null;
|
|
164
|
+
}
|
|
165
|
+
interface PortalPayment {
|
|
166
|
+
id: string;
|
|
167
|
+
title: string;
|
|
168
|
+
amount: number;
|
|
169
|
+
status: string;
|
|
170
|
+
paymentMethod: string | null;
|
|
171
|
+
dueDate: number;
|
|
172
|
+
receiptFilePath: string | null;
|
|
173
|
+
}
|
|
174
|
+
interface PortalGetDataResult {
|
|
175
|
+
partnership: PortalPartnershipInfo;
|
|
176
|
+
partner: PortalPartnerInfo;
|
|
177
|
+
communications: PortalCommunication[];
|
|
178
|
+
events: PortalEvent[];
|
|
179
|
+
groups: PortalGroup[];
|
|
180
|
+
boardMembers: BoardMemberItem[];
|
|
181
|
+
subscriptions: PortalSubscription[];
|
|
182
|
+
payments: PortalPayment[];
|
|
183
|
+
customFields: GetPublicInfoCustomField[];
|
|
184
|
+
paymentMethodsConfig: PartnershipPaymentMethodsConfig | null;
|
|
185
|
+
isAdmin: boolean;
|
|
186
|
+
}
|
|
88
187
|
}
|
|
@@ -5,6 +5,7 @@ export declare namespace PartnershipCommunicationFbFunctionsTypes {
|
|
|
5
5
|
title: string;
|
|
6
6
|
message: Descendant[];
|
|
7
7
|
messageHtml: string;
|
|
8
|
+
imageURL: string | null;
|
|
8
9
|
recipients: string[];
|
|
9
10
|
imagesPath: string[];
|
|
10
11
|
scheduledAt?: string | null;
|
|
@@ -21,6 +22,7 @@ export declare namespace PartnershipCommunicationFbFunctionsTypes {
|
|
|
21
22
|
partnershipId: string;
|
|
22
23
|
title: string;
|
|
23
24
|
messageHtml: string;
|
|
25
|
+
imageURL: string | null;
|
|
24
26
|
email: string;
|
|
25
27
|
}
|
|
26
28
|
type SendTestResult = void;
|
|
@@ -30,6 +32,7 @@ export declare namespace PartnershipCommunicationFbFunctionsTypes {
|
|
|
30
32
|
title: string;
|
|
31
33
|
message: Descendant[];
|
|
32
34
|
messageHtml: string;
|
|
35
|
+
imageURL: string | null;
|
|
33
36
|
recipients: string[];
|
|
34
37
|
imagesPath: string[];
|
|
35
38
|
scheduledAt?: string | null;
|
|
@@ -7,7 +7,7 @@ export declare namespace PartnershipPartnerFbFunctionsTypes {
|
|
|
7
7
|
NIF: string | null;
|
|
8
8
|
name: string;
|
|
9
9
|
lastname: string;
|
|
10
|
-
email: string;
|
|
10
|
+
email: string | null;
|
|
11
11
|
phone: string | null;
|
|
12
12
|
birthdate: number | null;
|
|
13
13
|
address: BasicAddressData | null;
|
|
@@ -47,5 +47,19 @@ export declare namespace PartnershipPartnerFbFunctionsTypes {
|
|
|
47
47
|
partnerId: string;
|
|
48
48
|
}
|
|
49
49
|
export type AcceptResult = void;
|
|
50
|
+
export interface PortalEditParams {
|
|
51
|
+
partnershipId: string;
|
|
52
|
+
NIF?: string | null;
|
|
53
|
+
name?: string;
|
|
54
|
+
lastname?: string;
|
|
55
|
+
email?: string;
|
|
56
|
+
phone?: string | null;
|
|
57
|
+
birthdate?: number | null;
|
|
58
|
+
address?: BasicAddressData | null;
|
|
59
|
+
paymentMethod?: PaymentMethod | null;
|
|
60
|
+
sepaMandate?: PartnershipPartnerSepaMandate | null;
|
|
61
|
+
customFieldValues?: Record<string, string | number | null>;
|
|
62
|
+
}
|
|
63
|
+
export type PortalEditResult = void;
|
|
50
64
|
export {};
|
|
51
65
|
}
|
package/functions/regions.js
CHANGED
|
@@ -156,6 +156,8 @@ const regionByFunctions = {
|
|
|
156
156
|
[index_1.FbFunctionName.PartnershipPartnerRemove]: GCloudRegions.EuropeWest6,
|
|
157
157
|
[index_1.FbFunctionName.PartnershipPartnerRequest]: GCloudRegions.EuropeWest6,
|
|
158
158
|
[index_1.FbFunctionName.PartnershipPartnerAccept]: GCloudRegions.EuropeWest6,
|
|
159
|
+
[index_1.FbFunctionName.PartnershipPartnerPortalGetData]: GCloudRegions.EuropeWest6,
|
|
160
|
+
[index_1.FbFunctionName.PartnershipPartnerPortalEdit]: GCloudRegions.EuropeWest6,
|
|
159
161
|
[index_1.FbFunctionName.PartnershipPaymentCreateOneTime]: GCloudRegions.EuropeWest6,
|
|
160
162
|
[index_1.FbFunctionName.PartnershipPaymentGenerateRecurringBySubscriptions]: GCloudRegions.EuropeWest6,
|
|
161
163
|
[index_1.FbFunctionName.PartnershipPaymentEdit]: GCloudRegions.EuropeWest6,
|
|
@@ -5,6 +5,7 @@ export default class PartnershipCommunication extends ModelWithLang<PartnershipC
|
|
|
5
5
|
get title(): string;
|
|
6
6
|
get message(): import("../../../helpers/slate").Descendant[];
|
|
7
7
|
get messageHtml(): string;
|
|
8
|
+
get imageURL(): string | null;
|
|
8
9
|
get messagePlainText(): string;
|
|
9
10
|
get ownerName(): string;
|
|
10
11
|
get ownerId(): string;
|
|
@@ -19,6 +19,9 @@ class PartnershipCommunication extends lang_1.default {
|
|
|
19
19
|
get messageHtml() {
|
|
20
20
|
return this.data.messageHtml;
|
|
21
21
|
}
|
|
22
|
+
get imageURL() {
|
|
23
|
+
return this.data.imageURL || null;
|
|
24
|
+
}
|
|
22
25
|
get messagePlainText() {
|
|
23
26
|
return (0, slate_1.serializeSlateBlock)(this.message);
|
|
24
27
|
}
|
|
@@ -11,7 +11,7 @@ export default class PartnershipPartner extends ModelWithLang<PartnershipPartner
|
|
|
11
11
|
get photoURL(): string;
|
|
12
12
|
get displayName(): string;
|
|
13
13
|
get NIF(): string | null;
|
|
14
|
-
get email(): string;
|
|
14
|
+
get email(): string | null;
|
|
15
15
|
get phone(): string | null;
|
|
16
16
|
get birthdate(): FirebaseFirestore.Timestamp | null;
|
|
17
17
|
get sepaMandate(): {
|