@intuitionrobotics/firebase 0.42.42 → 0.43.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.
|
@@ -5,39 +5,29 @@ import { Module, StringMap } from "@intuitionrobotics/ts-common";
|
|
|
5
5
|
import { ObjectMetadata } from "firebase-functions/lib/providers/storage";
|
|
6
6
|
export interface FirebaseFunctionInterface {
|
|
7
7
|
getFunction(): HttpsFunction;
|
|
8
|
-
onFunctionReady(): Promise<void>;
|
|
9
8
|
}
|
|
10
9
|
export declare abstract class FirebaseFunction<Config = any> extends Module<Config> implements FirebaseFunctionInterface {
|
|
11
|
-
protected isReady: boolean;
|
|
12
|
-
protected toBeExecuted: (() => Promise<any>)[];
|
|
13
|
-
protected toBeResolved: (value?: (PromiseLike<any>)) => void;
|
|
14
10
|
protected constructor(tag?: string, name?: string);
|
|
15
11
|
abstract getFunction(): HttpsFunction;
|
|
16
|
-
protected handleCallback(callback: () => Promise<any>): Promise<any>;
|
|
17
|
-
onFunctionReady: () => Promise<void>;
|
|
18
12
|
}
|
|
19
13
|
export declare class Firebase_ExpressFunction implements FirebaseFunctionInterface {
|
|
20
14
|
private readonly express;
|
|
21
15
|
private function;
|
|
22
|
-
private toBeExecuted;
|
|
23
|
-
private isReady;
|
|
24
|
-
private toBeResolved;
|
|
25
16
|
private readonly name;
|
|
26
17
|
static config: RuntimeOptions;
|
|
27
18
|
constructor(_express: express.Express, name?: string);
|
|
28
19
|
static setConfig(config: RuntimeOptions): void;
|
|
29
20
|
getName(): string;
|
|
30
21
|
getFunction: () => any;
|
|
31
|
-
onFunctionReady: () => Promise<void>;
|
|
32
22
|
}
|
|
33
|
-
export declare abstract class Firebase_HttpsFunction extends FirebaseFunction {
|
|
23
|
+
export declare abstract class Firebase_HttpsFunction<Config = any> extends FirebaseFunction<Config> {
|
|
34
24
|
private function;
|
|
35
25
|
protected constructor(name: string);
|
|
36
26
|
abstract process(req: Request, res: Response): Promise<any>;
|
|
37
27
|
getFunction: () => any;
|
|
38
28
|
onFunctionReady: () => Promise<void>;
|
|
39
29
|
}
|
|
40
|
-
export declare abstract class FirebaseFunctionModule<DataType = any,
|
|
30
|
+
export declare abstract class FirebaseFunctionModule<DataType = any, Config = any> extends FirebaseFunction<Config> {
|
|
41
31
|
private readonly listeningPath;
|
|
42
32
|
private function;
|
|
43
33
|
protected constructor(listeningPath: string, name?: string);
|
|
@@ -50,7 +40,7 @@ export declare type FirestoreConfigs = {
|
|
|
50
40
|
runTimeOptions?: RuntimeOptions;
|
|
51
41
|
configs: any;
|
|
52
42
|
};
|
|
53
|
-
export declare abstract class FirestoreFunctionModule<DataType extends object,
|
|
43
|
+
export declare abstract class FirestoreFunctionModule<DataType extends object, Config extends FirestoreConfigs = FirestoreConfigs> extends FirebaseFunction<Config> {
|
|
54
44
|
private readonly collectionName;
|
|
55
45
|
private function;
|
|
56
46
|
protected constructor(collectionName: string, name?: string, tag?: string);
|
|
@@ -59,7 +49,7 @@ export declare abstract class FirestoreFunctionModule<DataType extends object, C
|
|
|
59
49
|
}, before?: DataType, after?: DataType): Promise<any>;
|
|
60
50
|
getFunction: () => any;
|
|
61
51
|
}
|
|
62
|
-
export declare abstract class FirebaseScheduledFunction<
|
|
52
|
+
export declare abstract class FirebaseScheduledFunction<Config extends any = any> extends FirebaseFunction<Config> {
|
|
63
53
|
private function;
|
|
64
54
|
private schedule?;
|
|
65
55
|
private runningCondition;
|
|
@@ -67,14 +57,13 @@ export declare abstract class FirebaseScheduledFunction<ConfigType extends any =
|
|
|
67
57
|
addRunningCondition(runningCondition: () => Promise<boolean>): this;
|
|
68
58
|
setSchedule(schedule: string): this;
|
|
69
59
|
abstract onScheduledEvent(): Promise<any>;
|
|
70
|
-
private _onScheduledEvent;
|
|
71
60
|
getFunction: () => any;
|
|
72
61
|
}
|
|
73
62
|
export declare type BucketConfigs = {
|
|
74
63
|
runtimeOpts?: RuntimeOptions;
|
|
75
64
|
bucketName?: string;
|
|
76
65
|
};
|
|
77
|
-
export declare abstract class Firebase_StorageFunction<
|
|
66
|
+
export declare abstract class Firebase_StorageFunction<Config extends BucketConfigs = BucketConfigs> extends FirebaseFunction<Config> {
|
|
78
67
|
private function;
|
|
79
68
|
private runtimeOpts;
|
|
80
69
|
protected constructor(name?: string);
|
|
@@ -86,7 +75,7 @@ export declare type TopicMessage = {
|
|
|
86
75
|
data: string;
|
|
87
76
|
attributes: StringMap;
|
|
88
77
|
};
|
|
89
|
-
export declare abstract class Firebase_PubSubFunction<T> extends FirebaseFunction {
|
|
78
|
+
export declare abstract class Firebase_PubSubFunction<T, Config = any> extends FirebaseFunction<Config> {
|
|
90
79
|
private function;
|
|
91
80
|
private readonly topic;
|
|
92
81
|
protected constructor(topic: string, tag?: string);
|
|
@@ -15,67 +15,16 @@ const functions = require("firebase-functions");
|
|
|
15
15
|
class FirebaseFunction extends ts_common_1.Module {
|
|
16
16
|
constructor(tag, name) {
|
|
17
17
|
super(tag, name);
|
|
18
|
-
this.isReady = false;
|
|
19
|
-
this.toBeExecuted = [];
|
|
20
|
-
this.onFunctionReady = () => __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
this.isReady = true;
|
|
22
|
-
const toBeExecuted = this.toBeExecuted;
|
|
23
|
-
this.toBeExecuted = [];
|
|
24
|
-
for (const toExecute of toBeExecuted) {
|
|
25
|
-
try {
|
|
26
|
-
yield toExecute();
|
|
27
|
-
}
|
|
28
|
-
catch (e) {
|
|
29
|
-
console.error("Error running function: ", e);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
this.toBeResolved && this.toBeResolved();
|
|
33
|
-
});
|
|
34
|
-
this.onFunctionReady = this.onFunctionReady.bind(this);
|
|
35
|
-
}
|
|
36
|
-
handleCallback(callback) {
|
|
37
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
-
if (this.isReady)
|
|
39
|
-
return yield callback();
|
|
40
|
-
return new Promise((resolve) => {
|
|
41
|
-
ts_common_1.addItemToArray(this.toBeExecuted, () => __awaiter(this, void 0, void 0, function* () { return yield callback(); }));
|
|
42
|
-
this.toBeResolved = resolve;
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
18
|
}
|
|
46
19
|
}
|
|
47
20
|
exports.FirebaseFunction = FirebaseFunction;
|
|
48
21
|
class Firebase_ExpressFunction {
|
|
49
22
|
constructor(_express, name = "api") {
|
|
50
|
-
this.toBeExecuted = [];
|
|
51
|
-
this.isReady = false;
|
|
52
23
|
this.getFunction = () => {
|
|
53
24
|
if (this.function)
|
|
54
25
|
return this.function;
|
|
55
|
-
|
|
56
|
-
return this.function = functions.runWith(Firebase_ExpressFunction.config).https.onRequest((req, res) => {
|
|
57
|
-
if (this.isReady)
|
|
58
|
-
return realFunction(req, res);
|
|
59
|
-
return new Promise((resolve) => {
|
|
60
|
-
ts_common_1.addItemToArray(this.toBeExecuted, () => realFunction(req, res));
|
|
61
|
-
this.toBeResolved = resolve;
|
|
62
|
-
});
|
|
63
|
-
});
|
|
26
|
+
return this.function = functions.runWith(Firebase_ExpressFunction.config).https.onRequest(this.express);
|
|
64
27
|
};
|
|
65
|
-
this.onFunctionReady = () => __awaiter(this, void 0, void 0, function* () {
|
|
66
|
-
this.isReady = true;
|
|
67
|
-
const toBeExecuted = this.toBeExecuted;
|
|
68
|
-
this.toBeExecuted = [];
|
|
69
|
-
for (const toExecute of toBeExecuted) {
|
|
70
|
-
try {
|
|
71
|
-
yield toExecute();
|
|
72
|
-
}
|
|
73
|
-
catch (e) {
|
|
74
|
-
console.error("Error running function: ", e);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
this.toBeResolved && this.toBeResolved();
|
|
78
|
-
});
|
|
79
28
|
this.express = _express;
|
|
80
29
|
this.name = name;
|
|
81
30
|
}
|
|
@@ -113,7 +62,7 @@ class FirebaseFunctionModule extends FirebaseFunction {
|
|
|
113
62
|
const before = change.before && change.before.val();
|
|
114
63
|
const after = change.after && change.after.val();
|
|
115
64
|
const params = ts_common_1.deepClone(context.params);
|
|
116
|
-
return this.
|
|
65
|
+
return this.processChanges(before, after, params);
|
|
117
66
|
});
|
|
118
67
|
};
|
|
119
68
|
name && this.setName(name);
|
|
@@ -133,7 +82,7 @@ class FirestoreFunctionModule extends FirebaseFunction {
|
|
|
133
82
|
const before = change.before && change.before.data();
|
|
134
83
|
const after = change.after && change.after.data();
|
|
135
84
|
const params = ts_common_1.deepClone(context.params);
|
|
136
|
-
return this.
|
|
85
|
+
return this.processChanges(params, before, after);
|
|
137
86
|
});
|
|
138
87
|
};
|
|
139
88
|
name && this.setName(name);
|
|
@@ -144,22 +93,19 @@ exports.FirestoreFunctionModule = FirestoreFunctionModule;
|
|
|
144
93
|
class FirebaseScheduledFunction extends FirebaseFunction {
|
|
145
94
|
constructor(name, tag) {
|
|
146
95
|
super(tag);
|
|
147
|
-
this.runningCondition = [
|
|
148
|
-
this._onScheduledEvent = () => __awaiter(this, void 0, void 0, function* () {
|
|
149
|
-
const results = yield Promise.all(this.runningCondition.map(condition => condition()));
|
|
150
|
-
if (results.includes(false)) {
|
|
151
|
-
this.logDebug("will not execute backup.. running conditions didn't pass: ", results);
|
|
152
|
-
return;
|
|
153
|
-
}
|
|
154
|
-
return this.onScheduledEvent();
|
|
155
|
-
});
|
|
96
|
+
this.runningCondition = [];
|
|
156
97
|
this.getFunction = () => {
|
|
157
98
|
if (!this.schedule)
|
|
158
99
|
throw new ts_common_1.ImplementationMissingException("MUST set schedule !!");
|
|
159
100
|
if (this.function)
|
|
160
101
|
return this.function;
|
|
161
102
|
return this.function = functions.pubsub.schedule(this.schedule).onRun(() => __awaiter(this, void 0, void 0, function* () {
|
|
162
|
-
|
|
103
|
+
const results = yield Promise.all(this.runningCondition.map(condition => condition()));
|
|
104
|
+
if (results.includes(false)) {
|
|
105
|
+
this.logDebug("will not execute backup.. running conditions didn't pass: ", results);
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
return this.onScheduledEvent();
|
|
163
109
|
}));
|
|
164
110
|
};
|
|
165
111
|
name && this.setName(name);
|
|
@@ -189,7 +135,7 @@ class Firebase_StorageFunction extends FirebaseFunction {
|
|
|
189
135
|
};
|
|
190
136
|
return this.function = functions.runWith(this.runtimeOpts).storage.bucket(this.config.bucketName).object().onFinalize((object, context) => __awaiter(this, void 0, void 0, function* () {
|
|
191
137
|
try {
|
|
192
|
-
return yield this.
|
|
138
|
+
return yield this.onFinalize(object, context);
|
|
193
139
|
}
|
|
194
140
|
catch (e) {
|
|
195
141
|
const _message = `Error handling callback to onFinalize bucket listener method` +
|
|
@@ -201,7 +147,6 @@ class Firebase_StorageFunction extends FirebaseFunction {
|
|
|
201
147
|
catch (_e) {
|
|
202
148
|
this.logError("Error while handing bucket listener error", _e);
|
|
203
149
|
}
|
|
204
|
-
throw e;
|
|
205
150
|
}
|
|
206
151
|
}));
|
|
207
152
|
};
|
|
@@ -226,7 +171,6 @@ class Firebase_PubSubFunction extends FirebaseFunction {
|
|
|
226
171
|
catch (_e) {
|
|
227
172
|
this.logError("Error while handing pubsub error", _e);
|
|
228
173
|
}
|
|
229
|
-
throw e;
|
|
230
174
|
}
|
|
231
175
|
});
|
|
232
176
|
this.getFunction = () => {
|
|
@@ -243,7 +187,7 @@ class Firebase_PubSubFunction extends FirebaseFunction {
|
|
|
243
187
|
this.logError(`Error parsing the data attribute from pub/sub message to topic ${this.topic}` +
|
|
244
188
|
"\n" + ts_common_1.__stringify(originalMessage.data) + "\n" + ts_common_1.__stringify(e));
|
|
245
189
|
}
|
|
246
|
-
return this.
|
|
190
|
+
return this._onPublish(data, originalMessage, context);
|
|
247
191
|
}));
|
|
248
192
|
};
|
|
249
193
|
this.topic = topic;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"firebase-function.js","sourceRoot":"","sources":["../../../src/main/app-backend/functions/firebase-function.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"firebase-function.js","sourceRoot":"","sources":["../../../src/main/app-backend/functions/firebase-function.ts"],"names":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wBACxF,IAAI,GAAG,uBAAW,CAAC,eAAe,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,uBAAW,CAAC,CAAC,CAAC,CAAC,CAAC;iBACzE;gBAED,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,CAAC;YAC3D,CAAC,CAAA,CAAC,CAAC;QACP,CAAC,CAAC;QAtCE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;CAsCJ;AA/CD,0DA+CC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intuitionrobotics/firebase",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.43.1",
|
|
4
4
|
"description": "Storm - Express & Typescript based backend framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"IR",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@google-cloud/common": "^3.0.0",
|
|
33
33
|
"@google-cloud/storage": "^6.0.0",
|
|
34
34
|
"@grpc/proto-loader": "0.6.9",
|
|
35
|
-
"@intuitionrobotics/ts-common": "~0.
|
|
35
|
+
"@intuitionrobotics/ts-common": "~0.43.0",
|
|
36
36
|
"express": "^4.17.1",
|
|
37
37
|
"firebase": "^9.9.1",
|
|
38
38
|
"firebase-admin": "^11.0.0",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"google-auth-library": "7.12.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@intuitionrobotics/testelot": "~0.
|
|
43
|
+
"@intuitionrobotics/testelot": "~0.43.0",
|
|
44
44
|
"@types/compression": "^1.0.1",
|
|
45
45
|
"@types/express": "^4.17.2",
|
|
46
46
|
"@types/node": "^16.0.0",
|