@glissandoo/lib 1.95.0 → 1.95.2
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
|
@@ -123,6 +123,9 @@ export declare enum FbFunctionName {
|
|
|
123
123
|
PartnershipPublish = "partnership-publish",
|
|
124
124
|
PartnershipRemove = "partnership-remove",
|
|
125
125
|
PartnershipRemoveAdmin = "partnership-removeAdmin",
|
|
126
|
+
PartnershipPartnerCreate = "partnershipPartner-create",
|
|
127
|
+
PartnershipPartnerEdit = "partnershipPartner-edit",
|
|
128
|
+
PartnershipPartnerRemove = "partnershipPartner-remove",
|
|
126
129
|
ReminderBiweeklyEventsEmail = "reminder-biweeklyEventsEmail",
|
|
127
130
|
ReminderDatetime = "reminder-datetime",
|
|
128
131
|
ReminderResponseDeadlineEnded = "reminder-responseDeadlineEnded",
|
package/functions/index.js
CHANGED
|
@@ -127,6 +127,9 @@ var FbFunctionName;
|
|
|
127
127
|
FbFunctionName["PartnershipPublish"] = "partnership-publish";
|
|
128
128
|
FbFunctionName["PartnershipRemove"] = "partnership-remove";
|
|
129
129
|
FbFunctionName["PartnershipRemoveAdmin"] = "partnership-removeAdmin";
|
|
130
|
+
FbFunctionName["PartnershipPartnerCreate"] = "partnershipPartner-create";
|
|
131
|
+
FbFunctionName["PartnershipPartnerEdit"] = "partnershipPartner-edit";
|
|
132
|
+
FbFunctionName["PartnershipPartnerRemove"] = "partnershipPartner-remove";
|
|
130
133
|
FbFunctionName["ReminderBiweeklyEventsEmail"] = "reminder-biweeklyEventsEmail";
|
|
131
134
|
FbFunctionName["ReminderDatetime"] = "reminder-datetime";
|
|
132
135
|
FbFunctionName["ReminderResponseDeadlineEnded"] = "reminder-responseDeadlineEnded";
|
package/functions/regions.js
CHANGED
|
@@ -134,6 +134,9 @@ const regionByFunctions = {
|
|
|
134
134
|
[index_1.FbFunctionName.PartnershipPublish]: GCloudRegions.EuropeWest6,
|
|
135
135
|
[index_1.FbFunctionName.PartnershipRemove]: GCloudRegions.EuropeWest6,
|
|
136
136
|
[index_1.FbFunctionName.PartnershipRemoveAdmin]: GCloudRegions.EuropeWest6,
|
|
137
|
+
[index_1.FbFunctionName.PartnershipPartnerCreate]: GCloudRegions.EuropeWest6,
|
|
138
|
+
[index_1.FbFunctionName.PartnershipPartnerEdit]: GCloudRegions.EuropeWest6,
|
|
139
|
+
[index_1.FbFunctionName.PartnershipPartnerRemove]: GCloudRegions.EuropeWest6,
|
|
137
140
|
[index_1.FbFunctionName.ReminderBiweeklyEventsEmail]: GCloudRegions.EuropeWest6,
|
|
138
141
|
[index_1.FbFunctionName.ReminderDatetime]: GCloudRegions.EuropeWest6,
|
|
139
142
|
[index_1.FbFunctionName.ReminderResponseDeadlineEnded]: GCloudRegions.EuropeWest6,
|
|
@@ -2,6 +2,7 @@ import Model, { DocumentModel } from '../Model';
|
|
|
2
2
|
import { PartnershipBasicData } from './types';
|
|
3
3
|
export default class PartnershipBasic<D> extends Model<D & PartnershipBasicData> {
|
|
4
4
|
constructor(doc: DocumentModel);
|
|
5
|
+
get basicInfo(): PartnershipBasicData;
|
|
5
6
|
get displayName(): string;
|
|
6
7
|
get photoURL(): string;
|
|
7
8
|
get email(): string;
|
|
@@ -9,6 +9,20 @@ class PartnershipBasic extends Model_1.default {
|
|
|
9
9
|
constructor(doc) {
|
|
10
10
|
super(doc);
|
|
11
11
|
}
|
|
12
|
+
get basicInfo() {
|
|
13
|
+
return {
|
|
14
|
+
displayName: this.displayName,
|
|
15
|
+
photoURL: this.photoURL,
|
|
16
|
+
email: this.email,
|
|
17
|
+
phone: this.phone,
|
|
18
|
+
address: this.address,
|
|
19
|
+
CIF: this.CIF,
|
|
20
|
+
groupIds: this.groupIds,
|
|
21
|
+
partnerCount: this.partnerCount,
|
|
22
|
+
memberCount: this.memberCount,
|
|
23
|
+
website: this.website,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
12
26
|
get displayName() {
|
|
13
27
|
return this.data.displayName;
|
|
14
28
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DocumentReference, Timestamp } from '@google-cloud/firestore';
|
|
2
|
-
import { AdminItem } from '../../helpers/types';
|
|
3
|
-
import { BasicAddressData } from '../../helpers/types';
|
|
2
|
+
import { AdminItem, BasicAddressData } from '../../helpers/types';
|
|
4
3
|
export declare enum PartnershipRoles {
|
|
5
4
|
Admin = "admin"
|
|
6
5
|
}
|
|
@@ -12,12 +11,12 @@ export interface PartnershipBasicData {
|
|
|
12
11
|
photoURL: string;
|
|
13
12
|
email: string;
|
|
14
13
|
phone: string | null;
|
|
15
|
-
website: string | null;
|
|
16
14
|
address: BasicAddressData;
|
|
17
15
|
CIF: string | null;
|
|
18
16
|
groupIds: string[];
|
|
19
17
|
partnerCount: number;
|
|
20
18
|
memberCount: number;
|
|
19
|
+
website: string | null;
|
|
21
20
|
}
|
|
22
21
|
export interface PartnershipData extends PartnershipBasicData {
|
|
23
22
|
description: string;
|