@glissandoo/lib 1.23.0 → 1.24.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/groupRepertory.d.ts +4 -1
- package/functions/index.d.ts +1 -0
- package/functions/index.js +1 -0
- package/functions/partnership.d.ts +4 -0
- package/functions/regions.js +1 -0
- package/models/Partnership/Group/index.d.ts +0 -2
- package/models/Partnership/Group/index.js +0 -6
- package/models/Partnership/Group/types.d.ts +0 -1
- package/models/Partnership/index.d.ts +0 -1
- package/models/Partnership/index.js +0 -3
- package/models/Partnership/types.d.ts +0 -1
- package/package.json +1 -1
|
@@ -34,7 +34,10 @@ export declare namespace GroupRepertoryFbFunctionsTypes {
|
|
|
34
34
|
themeId: string;
|
|
35
35
|
files: DownloadFileType[];
|
|
36
36
|
}
|
|
37
|
-
export
|
|
37
|
+
export interface DownloadThemeFilesResult {
|
|
38
|
+
path: string;
|
|
39
|
+
filename: string;
|
|
40
|
+
}
|
|
38
41
|
export interface DownloadFileType {
|
|
39
42
|
id: string;
|
|
40
43
|
tagId: string | null;
|
package/functions/index.d.ts
CHANGED
|
@@ -82,6 +82,7 @@ export declare enum FbFunctionName {
|
|
|
82
82
|
PartnerValidateIBAN = "partner-validateIBAN",
|
|
83
83
|
PartnershipAddConfirmedAdmin = "partnership-addConfirmedAdmin",
|
|
84
84
|
PartnershipCreate = "partnership-create",
|
|
85
|
+
PartnershipRemove = "partnership-remove",
|
|
85
86
|
PartnershipEdit = "partnership-edit",
|
|
86
87
|
PartnershipGetBalance = "partnership-getBalance",
|
|
87
88
|
PartnershipGetMandateRequest = "partnership-getMandateRequest",
|
package/functions/index.js
CHANGED
|
@@ -86,6 +86,7 @@ var FbFunctionName;
|
|
|
86
86
|
FbFunctionName["PartnerValidateIBAN"] = "partner-validateIBAN";
|
|
87
87
|
FbFunctionName["PartnershipAddConfirmedAdmin"] = "partnership-addConfirmedAdmin";
|
|
88
88
|
FbFunctionName["PartnershipCreate"] = "partnership-create";
|
|
89
|
+
FbFunctionName["PartnershipRemove"] = "partnership-remove";
|
|
89
90
|
FbFunctionName["PartnershipEdit"] = "partnership-edit";
|
|
90
91
|
FbFunctionName["PartnershipGetBalance"] = "partnership-getBalance";
|
|
91
92
|
FbFunctionName["PartnershipGetMandateRequest"] = "partnership-getMandateRequest";
|
|
@@ -14,6 +14,10 @@ export declare namespace PartnershipFbFunctionsTypes {
|
|
|
14
14
|
type CreateResult = void;
|
|
15
15
|
type EditParams = CreateParams;
|
|
16
16
|
type EditResult = void;
|
|
17
|
+
interface RemoveParams {
|
|
18
|
+
partnershipId: string;
|
|
19
|
+
}
|
|
20
|
+
type RemoveResult = void;
|
|
17
21
|
interface AddConfirmedAdminParams {
|
|
18
22
|
partnershipId: string;
|
|
19
23
|
userId: string;
|
package/functions/regions.js
CHANGED
|
@@ -95,6 +95,7 @@ const regionByFunctions = {
|
|
|
95
95
|
[index_1.FbFunctionName.SubscriptionResume]: GCloudRegions.EuropeWest6,
|
|
96
96
|
[index_1.FbFunctionName.PartnershipCreate]: GCloudRegions.EuropeWest6,
|
|
97
97
|
[index_1.FbFunctionName.PartnershipEdit]: GCloudRegions.EuropeWest6,
|
|
98
|
+
[index_1.FbFunctionName.PartnershipRemove]: GCloudRegions.EuropeWest6,
|
|
98
99
|
[index_1.FbFunctionName.PartnershipGetBalance]: GCloudRegions.EuropeWest6,
|
|
99
100
|
[index_1.FbFunctionName.PartnershipOnUpdate]: GCloudRegions.EuropeWest6,
|
|
100
101
|
[index_1.FbFunctionName.PartnershipAddConfirmedAdmin]: GCloudRegions.EuropeWest6,
|
|
@@ -16,6 +16,4 @@ export default class PartnershipGroup extends GroupBasic<PartnershipGroupData> {
|
|
|
16
16
|
get planStripeId(): string | null;
|
|
17
17
|
get subscriptionStripeId(): string | null;
|
|
18
18
|
get partnershipId(): string;
|
|
19
|
-
get deletedAt(): FirebaseFirestore.Timestamp | null;
|
|
20
|
-
get isActive(): boolean;
|
|
21
19
|
}
|
|
@@ -44,11 +44,5 @@ class PartnershipGroup extends basic_1.default {
|
|
|
44
44
|
get partnershipId() {
|
|
45
45
|
return (0, get_1.default)(this.ref, 'parent.parent.id');
|
|
46
46
|
}
|
|
47
|
-
get deletedAt() {
|
|
48
|
-
return this.data.deletedAt || null;
|
|
49
|
-
}
|
|
50
|
-
get isActive() {
|
|
51
|
-
return this.exists && this.deletedAt === null;
|
|
52
|
-
}
|
|
53
47
|
}
|
|
54
48
|
exports.default = PartnershipGroup;
|
|
@@ -10,7 +10,6 @@ export interface PartnershipGroupData extends GroupBasicData {
|
|
|
10
10
|
planDiscount: string | null;
|
|
11
11
|
planStripeId: string | null;
|
|
12
12
|
subscriptionStripeId: string | null;
|
|
13
|
-
deletedAt: Timestamp | null;
|
|
14
13
|
readonly linkedBy: DocumentReference;
|
|
15
14
|
readonly linkedAt: Timestamp;
|
|
16
15
|
}
|