@glissandoo/lib 1.95.0 → 1.95.1
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.
|
@@ -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;
|