@intuitionrobotics/firebase 0.44.16 → 0.45.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.
- package/app-backend/FirebaseModule.d.ts +4 -1
- package/app-backend/FirebaseModule.js +28 -11
- package/app-backend/FirebaseModule.js.map +1 -1
- package/app-backend/auth/FirebaseBaseWrapper.d.ts +1 -1
- package/app-backend/auth/FirebaseBaseWrapper.js +19 -2
- package/app-backend/auth/FirebaseBaseWrapper.js.map +1 -1
- package/app-backend/auth/FirebaseSession_Admin.js +20 -3
- package/app-backend/auth/FirebaseSession_Admin.js.map +1 -1
- package/app-backend/auth/FirebaseSession_UserPassword.js +22 -0
- package/app-backend/auth/FirebaseSession_UserPassword.js.map +1 -1
- package/app-backend/auth/firebase-session.d.ts +2 -2
- package/app-backend/auth/firebase-session.js +19 -2
- package/app-backend/auth/firebase-session.js.map +1 -1
- package/app-backend/database/DatabaseWrapper.d.ts +1 -1
- package/app-backend/database/DatabaseWrapper.js +26 -10
- package/app-backend/database/DatabaseWrapper.js.map +1 -1
- package/app-backend/database/types.js +17 -0
- package/app-backend/database/types.js.map +1 -1
- package/app-backend/firestore/FirestoreCollection.d.ts +6 -4
- package/app-backend/firestore/FirestoreCollection.js +22 -7
- package/app-backend/firestore/FirestoreCollection.js.map +1 -1
- package/app-backend/firestore/FirestoreInterface.d.ts +1 -1
- package/app-backend/firestore/FirestoreInterface.js +25 -10
- package/app-backend/firestore/FirestoreInterface.js.map +1 -1
- package/app-backend/firestore/FirestoreTransaction.d.ts +1 -1
- package/app-backend/firestore/FirestoreTransaction.js +22 -6
- package/app-backend/firestore/FirestoreTransaction.js.map +1 -1
- package/app-backend/firestore/FirestoreV2Collection.js +17 -0
- package/app-backend/firestore/FirestoreV2Collection.js.map +1 -1
- package/app-backend/firestore/FirestoreWrapper.js.map +1 -1
- package/app-backend/firestore/types.d.ts +9 -9
- package/app-backend/firestore/types.js +17 -0
- package/app-backend/firestore/types.js.map +1 -1
- package/app-backend/functions/firebase-function.d.ts +1 -2
- package/app-backend/functions/firebase-function.js +13 -17
- package/app-backend/functions/firebase-function.js.map +1 -1
- package/app-backend/push/PushMessagesWrapper.d.ts +1 -1
- package/app-backend/push/PushMessagesWrapper.js +17 -0
- package/app-backend/push/PushMessagesWrapper.js.map +1 -1
- package/app-backend/push/types.js +17 -0
- package/app-backend/push/types.js.map +1 -1
- package/app-backend/storage/StorageWrapper.js +24 -8
- package/app-backend/storage/StorageWrapper.js.map +1 -1
- package/app-backend/storage/types.js +17 -0
- package/app-backend/storage/types.js.map +1 -1
- package/app-frontend/FirebaseModule.d.ts +5 -2
- package/app-frontend/FirebaseModule.js +25 -6
- package/app-frontend/FirebaseModule.js.map +1 -1
- package/app-frontend/analytics/AnalyticsModule.d.ts +1 -1
- package/app-frontend/analytics/AnalyticsModule.js +21 -5
- package/app-frontend/analytics/AnalyticsModule.js.map +1 -1
- package/app-frontend/analytics/AnalyticsWrapper.d.ts +1 -1
- package/app-frontend/analytics/AnalyticsWrapper.js +20 -2
- package/app-frontend/analytics/AnalyticsWrapper.js.map +1 -1
- package/app-frontend/analytics/types.js +18 -0
- package/app-frontend/analytics/types.js.map +1 -1
- package/app-frontend/auth/FirebaseSession.d.ts +5 -2
- package/app-frontend/auth/FirebaseSession.js +25 -5
- package/app-frontend/auth/FirebaseSession.js.map +1 -1
- package/app-frontend/auth/SwFirebaseSession.d.ts +4 -1
- package/app-frontend/auth/SwFirebaseSession.js +21 -2
- package/app-frontend/auth/SwFirebaseSession.js.map +1 -1
- package/app-frontend/database/DatabaseWrapper.d.ts +1 -1
- package/app-frontend/database/DatabaseWrapper.js +25 -9
- package/app-frontend/database/DatabaseWrapper.js.map +1 -1
- package/app-frontend/database/types.js +17 -0
- package/app-frontend/database/types.js.map +1 -1
- package/app-frontend/messaging/MessagingWrapper.d.ts +1 -1
- package/app-frontend/messaging/MessagingWrapper.js +19 -2
- package/app-frontend/messaging/MessagingWrapper.js.map +1 -1
- package/app-frontend/messaging/SwMessagingWrapper.d.ts +1 -1
- package/app-frontend/messaging/SwMessagingWrapper.js +20 -2
- package/app-frontend/messaging/SwMessagingWrapper.js.map +1 -1
- package/app-frontend/messaging/types.js +17 -0
- package/app-frontend/messaging/types.js.map +1 -1
- package/backend-functions.d.ts +1 -0
- package/backend-functions.js +31 -0
- package/backend-functions.js.map +1 -0
- package/backend.d.ts +13 -0
- package/backend.js +44 -0
- package/backend.js.map +1 -0
- package/frontend.d.ts +4 -0
- package/frontend.js +35 -0
- package/frontend.js.map +1 -0
- package/index.d.ts +1 -0
- package/index.js +29 -0
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/shared/types.d.ts +4 -1
- package/shared/types.js +17 -0
- package/shared/types.js.map +1 -1
|
@@ -1,10 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Firebase is a simpler Typescript wrapper to all of firebase services.
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
2
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
20
|
exports.FirestoreInterface = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const tools_1 = require("@intuitionrobotics/ts-common/utils/tools");
|
|
7
|
-
const object_tools_1 = require("@intuitionrobotics/ts-common/utils/object-tools");
|
|
21
|
+
const __1 = require("../..");
|
|
22
|
+
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
8
23
|
class FirestoreInterface {
|
|
9
24
|
static buildQuery(collection, query) {
|
|
10
25
|
let myQuery = collection;
|
|
@@ -21,7 +36,7 @@ class FirestoreInterface {
|
|
|
21
36
|
const valueType = typeof _whereValue;
|
|
22
37
|
if (Array.isArray(_whereValue)) {
|
|
23
38
|
if (_whereValue.length === 0 || _whereValue.length > 10)
|
|
24
|
-
throw new
|
|
39
|
+
throw new ts_common_1.BadImplementationException("While querying in an array you can only provide one or more values to query by and not more than 10... this " +
|
|
25
40
|
"is due to Firestore limitation... ");
|
|
26
41
|
if (_whereValue.length === 1)
|
|
27
42
|
return _query.where(whereKey, 'array-contains', _whereValue[0]);
|
|
@@ -29,7 +44,7 @@ class FirestoreInterface {
|
|
|
29
44
|
}
|
|
30
45
|
if (this.isQueryObject(_whereValue)) {
|
|
31
46
|
// @ts-ignore
|
|
32
|
-
return _query.where(whereKey,
|
|
47
|
+
return _query.where(whereKey, __1.ComparatorMap[Object.keys(_whereValue)[0]], Object.values(_whereValue)[0]);
|
|
33
48
|
}
|
|
34
49
|
if (valueType === "string" || valueType === "number" || valueType === "boolean")
|
|
35
50
|
return ___query.where(whereKey, "==", _whereValue);
|
|
@@ -38,7 +53,7 @@ class FirestoreInterface {
|
|
|
38
53
|
return processObject(__query, `${whereKey}.${key}`, _whereValue[key]);
|
|
39
54
|
}, ___query);
|
|
40
55
|
}
|
|
41
|
-
throw new
|
|
56
|
+
throw new ts_common_1.ImplementationMissingException(`Could not compose where clause for '${whereKey}' with value type '${valueType}'in query: ${ts_common_1.__stringify(___query)}`);
|
|
42
57
|
};
|
|
43
58
|
return processObject(_query, whereField, whereValue);
|
|
44
59
|
}, myQuery);
|
|
@@ -65,16 +80,16 @@ class FirestoreInterface {
|
|
|
65
80
|
}
|
|
66
81
|
static assertUniqueDocument(results, query, collectionName) {
|
|
67
82
|
if (results.length > 1)
|
|
68
|
-
throw new
|
|
83
|
+
throw new ts_common_1.BadImplementationException(`too many results for query: ${ts_common_1.__stringify(query)} in collection: ${collectionName}`);
|
|
69
84
|
if (results.length === 0)
|
|
70
85
|
return;
|
|
71
86
|
return results[0];
|
|
72
87
|
}
|
|
73
88
|
;
|
|
74
89
|
static buildUniqueQuery(collection, instance) {
|
|
75
|
-
|
|
90
|
+
ts_common_1._keys(instance).forEach((key) => {
|
|
76
91
|
if (instance[key] === undefined || instance[key] === null) {
|
|
77
|
-
throw new
|
|
92
|
+
throw new ts_common_1.BadImplementationException(`No where properties are allowed to be null or undefined.\nWhile querying collection '${collection.name}' we found property '${key}' to be '${instance[key]}'`);
|
|
78
93
|
}
|
|
79
94
|
});
|
|
80
95
|
const where = collection.externalUniqueFilter(instance);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FirestoreInterface.js","sourceRoot":"","sources":["../../../src/main/app-backend/firestore/FirestoreInterface.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"FirestoreInterface.js","sourceRoot":"","sources":["../../../src/main/app-backend/firestore/FirestoreInterface.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AAEH,6BAGe;AAMf,4DAKsC;AAGtC,MAAa,kBAAkB;IAE9B,MAAM,CAAC,UAAU,CAAsB,UAAqC,EAAE,KAA4B;QACzG,IAAI,OAAO,GAAe,UAAU,CAAC;QACrC,IAAI,KAAK,IAAI,KAAK,CAAC,MAAM;YACxB,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,MAAkB,CAAC,CAAC;QAEvD,IAAI,KAAK,IAAI,KAAK,CAAC,KAAK,EAAE;YACzB,MAAM,WAAW,GAAG,KAAK,CAAC,KAAK,CAAC;YAChC,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC,MAA2B,EAAE,WAAW,EAAE,EAAE;gBACtF,MAAM,UAAU,GAAG,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C;YACjB,UAAU,CAAC,MAAM,CAAC;YAClB,UAAU,CAAC,KAAK,CAAC;YACjB,UAAU,CAAC,MAAM,CAAC;YAClB,UAAU,CAAC,MAAM,CAAC;YAClB,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;IACrB,CAAC;IAED,MAAM,CAAC,oBAAoB,CAAC,OAA8C,EAAE,KAA0B,EAAE,cAAsB;QAC7H,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC;YACrB,MAAM,IAAI,sCAA0B,CAAC,+BAA+B,uBAAW,CAAC,KAAK,CAAC,mBAAmB,cAAc,EAAE,CAAC,CAAC;QAE5H,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;YACvB,OAAO;QAER,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC;IACnB,CAAC;IAAA,CAAC;IAEF,MAAM,CAAC,gBAAgB,CAAsB,UAAqC,EAAE,QAAc;QACjG,iBAAK,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;YAC/B,IAAI,QAAQ,CAAC,GAAG,CAAC,KAAK,SAAS,IAAI,QAAQ,CAAC,GAAG,CAAC,KAAK,IAAI,EAAE;gBAC1D,MAAM,IAAI,sCAA0B,CACnC,wFAAwF,UAAU,CAAC,IAAI,wBAAwB,GAAG,YAAY,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;aAChK;QACF,CAAC,CAAC,CAAC;QAEH,MAAM,KAAK,GAAG,UAAU,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC;QACxD,OAAO,EAAC,KAAK,EAAC,CAAC;IAChB,CAAC;CACD;AAlGD,gDAkGC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as admin from "firebase-admin";
|
|
2
2
|
import { firestore } from "firebase-admin";
|
|
3
3
|
import { FirestoreCollection } from "./FirestoreCollection";
|
|
4
|
+
import { Subset } from "@intuitionrobotics/ts-common";
|
|
4
5
|
import { FirestoreQuery } from "../../shared/types";
|
|
5
6
|
import { SetOptions } from "firebase-admin/firestore";
|
|
6
|
-
import { Subset } from "@intuitionrobotics/ts-common/utils/types";
|
|
7
7
|
import Transaction = firestore.Transaction;
|
|
8
8
|
export declare class FirestoreTransaction {
|
|
9
9
|
private transaction;
|
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Firebase is a simpler Typescript wrapper to all of firebase services.
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
2
19
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
20
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
21
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -10,9 +27,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
27
|
};
|
|
11
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
29
|
exports.FirestoreTransaction = void 0;
|
|
30
|
+
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
13
31
|
const FirestoreInterface_1 = require("./FirestoreInterface");
|
|
14
|
-
const exceptions_1 = require("@intuitionrobotics/ts-common/core/exceptions");
|
|
15
|
-
const merge_tools_1 = require("@intuitionrobotics/ts-common/utils/merge-tools");
|
|
16
32
|
class FirestoreTransaction {
|
|
17
33
|
constructor(transaction) {
|
|
18
34
|
this.transaction = transaction;
|
|
@@ -90,7 +106,7 @@ class FirestoreTransaction {
|
|
|
90
106
|
upsertAll(collection, instances) {
|
|
91
107
|
return __awaiter(this, void 0, void 0, function* () {
|
|
92
108
|
if (instances.length > 500)
|
|
93
|
-
throw new
|
|
109
|
+
throw new ts_common_1.BadImplementationException('Firestore transaction supports maximum 500 at a time');
|
|
94
110
|
return (yield this.upsertAll_Read(collection, instances))();
|
|
95
111
|
});
|
|
96
112
|
}
|
|
@@ -109,9 +125,9 @@ class FirestoreTransaction {
|
|
|
109
125
|
return __awaiter(this, void 0, void 0, function* () {
|
|
110
126
|
const doc = yield this._queryItem(collection, instance);
|
|
111
127
|
if (!doc)
|
|
112
|
-
throw new
|
|
128
|
+
throw new ts_common_1.BadImplementationException(`Patching a non existent doc for query ${FirestoreInterface_1.FirestoreInterface.buildUniqueQuery(collection, instance)}`);
|
|
113
129
|
return () => {
|
|
114
|
-
const patchedInstance =
|
|
130
|
+
const patchedInstance = ts_common_1.merge(doc.data(), instance);
|
|
115
131
|
this.transaction.set(doc.ref, patchedInstance);
|
|
116
132
|
return patchedInstance;
|
|
117
133
|
};
|
|
@@ -126,7 +142,7 @@ class FirestoreTransaction {
|
|
|
126
142
|
return __awaiter(this, void 0, void 0, function* () {
|
|
127
143
|
const docs = yield this._query(collection, ourQuery);
|
|
128
144
|
if (docs.length > 500)
|
|
129
|
-
throw new
|
|
145
|
+
throw new ts_common_1.BadImplementationException(`Trying to delete ${docs.length} documents. Not allowed more then 5oo in a single transaction`);
|
|
130
146
|
return () => {
|
|
131
147
|
const toReturn = docs.map(doc => doc.data());
|
|
132
148
|
docs.forEach((doc) => this.transaction.delete(doc.ref));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FirestoreTransaction.js","sourceRoot":"","sources":["../../../src/main/app-backend/firestore/FirestoreTransaction.ts"],"names":[],"mappings":";;;;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AM,CAAsB,UAAqC,EAAE,QAAc,EAAE,EAAU;QACzF,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,CAAC;IAC5E,CAAC;IAED,cAAc;QACV,OAAO,IAAI,CAAC,WAAW,CAAC;IAC5B,CAAC;CACJ;AArKD,oDAqKC"}
|
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Firebase is a simpler Typescript wrapper to all of firebase services.
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
2
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
20
|
exports.enhanceCollection = void 0;
|
|
4
21
|
const FirestoreInterface_1 = require("./FirestoreInterface");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FirestoreV2Collection.js","sourceRoot":"","sources":["../../../src/main/app-backend/firestore/FirestoreV2Collection.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"FirestoreV2Collection.js","sourceRoot":"","sources":["../../../src/main/app-backend/firestore/FirestoreV2Collection.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AAGH,6DAAwD;AAQjD,MAAM,iBAAiB,GAAG,CAAsB,UAAqC,EAA+B,EAAE;IACzH,MAAM,aAAa,GAAG,UAAyC,CAAC;IAChE,aAAa,CAAC,UAAU,GAAG,CAAC,QAA+B,EAAe,EAAE;QACxE,OAAO,uCAAkB,CAAC,UAAU,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;IAC/D,CAAC,CAAC;IAEF,OAAO,aAAa,CAAC;AACzB,CAAC,CAAC;AAPW,QAAA,iBAAiB,qBAO5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FirestoreWrapper.js","sourceRoot":"","sources":["../../../src/main/app-backend/firestore/FirestoreWrapper.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAA0D;AAI1D,qEAAgE;AAChE,wDAA2E;AAC3E,mEAAiF;
|
|
1
|
+
{"version":3,"file":"FirestoreWrapper.js","sourceRoot":"","sources":["../../../src/main/app-backend/firestore/FirestoreWrapper.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAA0D;AAI1D,qEAAgE;AAChE,wDAA2E;AAC3E,mEAAiF;AAGjF,MAAa,gBACT,SAAQ,yCAAmB;IAM3B,YAAY,eAA0C;QAClD,KAAK,CAAC,eAAe,CAAC,CAAC;QAJV,gBAAW,GAA2D,EAAE,CAAC;QACzE,kBAAa,GAA6D,EAAE,CAAC;QAI1F,IAAI,CAAC,SAAS,GAAG,wBAAY,CAAC,eAAe,CAAC,GAAG,CAAC,CAAA;IACtD,CAAC;IAEM,aAAa,CAAsB,IAAY,EAAE,kBAAqC;QACzF,MAAM,UAAU,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAC1C,IAAI,UAAU;YACV,OAAO,UAAU,CAAC;QAEtB,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,IAAI,yCAAmB,CAAO,IAAI,EAAE,IAAI,EAAE,kBAAkB,CAAC,CAAC;IAClG,CAAC;IAEM,eAAe,CAAsB,IAAY;QACpD,MAAM,UAAU,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QAC5C,IAAI,UAAU;YACV,OAAO,UAAU,CAAC;QAEtB,MAAM,mBAAmB,GAAG,yCAAiB,CAAC,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,CAA8B,CAA+B,CAAC;QAC1I,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,mBAAmB,CAAC;IAC1D,CAAC;IAED,cAAc;QACV,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAEY,gBAAgB,CAAC,IAAY;;YACtC,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,CAAC;QAChD,CAAC;KAAA;IAEY,eAAe;;YACxB,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,eAAe;gBAC/B,OAAO,EAAE,CAAC;YAEd,OAAO,IAAI,CAAC,SAAS,CAAC,eAAe,EAAE,CAAC;QAC5C,CAAC;KAAA;CACJ;AA3CD,4CA2CC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare type FirestoreType_Collection<T extends any = any> = firestore.CollectionReference<T>;
|
|
3
|
-
export declare type FirestoreType_QueryDocumentSnapshot<T extends any = any> = firestore.QueryDocumentSnapshot<T>;
|
|
4
|
-
export declare type FirestoreType_DocumentSnapshot<T extends any = any> = firestore.DocumentSnapshot<T>;
|
|
5
|
-
export declare type FirestoreType_QuerySnapshot<T> = firestore.QuerySnapshot<T>;
|
|
6
|
-
export declare type FirestoreType_Query = firestore.Query;
|
|
7
|
-
export declare type FirestoreType_DocumentReference = firestore.DocumentReference;
|
|
8
|
-
export declare type FirestoreType = firestore.Firestore;
|
|
9
|
-
export declare type FirestoreType_Transaction = firestore.Transaction;
|
|
1
|
+
import * as admin from "firebase-admin";
|
|
2
|
+
export declare type FirestoreType_Collection<T extends any = any> = admin.firestore.CollectionReference<T>;
|
|
3
|
+
export declare type FirestoreType_QueryDocumentSnapshot<T extends any = any> = admin.firestore.QueryDocumentSnapshot<T>;
|
|
4
|
+
export declare type FirestoreType_DocumentSnapshot<T extends any = any> = admin.firestore.DocumentSnapshot<T>;
|
|
5
|
+
export declare type FirestoreType_QuerySnapshot<T> = admin.firestore.QuerySnapshot<T>;
|
|
6
|
+
export declare type FirestoreType_Query = admin.firestore.Query;
|
|
7
|
+
export declare type FirestoreType_DocumentReference = admin.firestore.DocumentReference;
|
|
8
|
+
export declare type FirestoreType = admin.firestore.Firestore;
|
|
9
|
+
export declare type FirestoreType_Transaction = admin.firestore.Transaction;
|
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Firebase is a simpler Typescript wrapper to all of firebase services.
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
2
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
20
|
// export type FirestoreType_Collection = admin.firestore.CollectionReference | firebase.firestore.CollectionReference;
|
|
4
21
|
// export type FirestoreType_DocumentSnapshot = admin.firestore.QueryDocumentSnapshot | firebase.firestore.QueryDocumentSnapshot;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/main/app-backend/firestore/types.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/main/app-backend/firestore/types.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;AAaH,uHAAuH;AACvH,iIAAiI;AACjI,mJAAmJ;AACnJ,0HAA0H;AAC1H,8JAA8J;AAC9J,wGAAwG;AACxG,EAAE"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as functions from "firebase-functions";
|
|
2
2
|
import { EventContext, HttpsFunction, RuntimeOptions } from "firebase-functions";
|
|
3
|
-
import { Module } from "@intuitionrobotics/ts-common/core/module";
|
|
4
3
|
import { Express, Request, Response } from "express";
|
|
4
|
+
import { Module, StringMap } from "@intuitionrobotics/ts-common";
|
|
5
5
|
import { ObjectMetadata } from "firebase-functions/lib/v1/providers/storage";
|
|
6
|
-
import { StringMap } from "@intuitionrobotics/ts-common/utils/types";
|
|
7
6
|
export interface FirebaseFunctionInterface {
|
|
8
7
|
getFunction(): HttpsFunction;
|
|
9
8
|
}
|
|
@@ -11,12 +11,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Firebase_PubSubFunction = exports.Firebase_StorageFunction = exports.FirebaseScheduledFunction = exports.FirestoreFunctionModule = exports.FirebaseFunctionModule = exports.Firebase_HttpsFunction = exports.Firebase_ExpressFunction = exports.FirebaseFunction = void 0;
|
|
13
13
|
const functions = require("firebase-functions");
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
const exceptions_1 = require("@intuitionrobotics/ts-common/core/exceptions");
|
|
17
|
-
const tools_1 = require("@intuitionrobotics/ts-common/utils/tools");
|
|
18
|
-
const error_handling_1 = require("@intuitionrobotics/ts-common/core/error-handling");
|
|
19
|
-
class FirebaseFunction extends module_1.Module {
|
|
14
|
+
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
15
|
+
class FirebaseFunction extends ts_common_1.Module {
|
|
20
16
|
}
|
|
21
17
|
exports.FirebaseFunction = FirebaseFunction;
|
|
22
18
|
class Firebase_ExpressFunction {
|
|
@@ -83,7 +79,7 @@ class FirebaseFunctionModule extends FirebaseFunction {
|
|
|
83
79
|
return this.function = functions.runWith(runtimeOptions).database.ref(this.listeningPath).onWrite((change, context) => {
|
|
84
80
|
const before = change.before && change.before.val();
|
|
85
81
|
const after = change.after && change.after.val();
|
|
86
|
-
const params =
|
|
82
|
+
const params = ts_common_1.deepClone(context.params);
|
|
87
83
|
return this.processChanges(before, after, params);
|
|
88
84
|
});
|
|
89
85
|
};
|
|
@@ -108,7 +104,7 @@ class FirestoreFunctionModule extends FirebaseFunction {
|
|
|
108
104
|
return this.function = functions.runWith(runtimeOptions).firestore.document(`${this.collectionName}/{docId}`).onWrite((change, context) => {
|
|
109
105
|
const before = change.before && change.before.data();
|
|
110
106
|
const after = change.after && change.after.data();
|
|
111
|
-
const params =
|
|
107
|
+
const params = ts_common_1.deepClone(context.params);
|
|
112
108
|
return this.processChanges(params, before, after);
|
|
113
109
|
});
|
|
114
110
|
};
|
|
@@ -123,7 +119,7 @@ class FirebaseScheduledFunction extends FirebaseFunction {
|
|
|
123
119
|
this.getFunction = () => {
|
|
124
120
|
var _a, _b;
|
|
125
121
|
if (!this.schedule)
|
|
126
|
-
throw new
|
|
122
|
+
throw new ts_common_1.ImplementationMissingException("MUST set schedule !!");
|
|
127
123
|
if (this.function)
|
|
128
124
|
return this.function;
|
|
129
125
|
const runtimeOptions = Object.assign({ labels: {
|
|
@@ -148,7 +144,7 @@ class FirebaseScheduledFunction extends FirebaseFunction {
|
|
|
148
144
|
};
|
|
149
145
|
}
|
|
150
146
|
addRunningCondition(runningCondition) {
|
|
151
|
-
this.runningCondition
|
|
147
|
+
ts_common_1.addItemToArray(this.runningCondition, runningCondition);
|
|
152
148
|
return this;
|
|
153
149
|
}
|
|
154
150
|
setSchedule(schedule) {
|
|
@@ -177,10 +173,10 @@ class Firebase_StorageFunction extends FirebaseFunction {
|
|
|
177
173
|
}
|
|
178
174
|
catch (e) {
|
|
179
175
|
const _message = `Error handling callback to onFinalize bucket listener method` +
|
|
180
|
-
"\n" + `File changed ${object.name}` + "\n with attributes: " +
|
|
176
|
+
"\n" + `File changed ${object.name}` + "\n with attributes: " + ts_common_1.__stringify(context) + "\n" + ts_common_1.__stringify(e);
|
|
181
177
|
this.logError(_message);
|
|
182
178
|
try {
|
|
183
|
-
yield
|
|
179
|
+
yield ts_common_1.dispatch_onServerError.dispatchModuleAsync([ts_common_1.ServerErrorSeverity.Critical, this, _message]);
|
|
184
180
|
}
|
|
185
181
|
catch (_e) {
|
|
186
182
|
this.logError("Error while handing bucket listener error", _e);
|
|
@@ -192,7 +188,7 @@ class Firebase_StorageFunction extends FirebaseFunction {
|
|
|
192
188
|
}
|
|
193
189
|
exports.Firebase_StorageFunction = Firebase_StorageFunction;
|
|
194
190
|
function getFormattedFunctionName(name) {
|
|
195
|
-
return name.toLowerCase().replace(/\s/g, "_");
|
|
191
|
+
return name.replace(/([A-Z])/g, "_$1").toLowerCase().replace(/\s/g, "_");
|
|
196
192
|
}
|
|
197
193
|
class Firebase_PubSubFunction extends FirebaseFunction {
|
|
198
194
|
constructor(topic, name) {
|
|
@@ -202,11 +198,11 @@ class Firebase_PubSubFunction extends FirebaseFunction {
|
|
|
202
198
|
return yield this.onPublish(object, originalMessage, context);
|
|
203
199
|
}
|
|
204
200
|
catch (e) {
|
|
205
|
-
const _message = `Error publishing pub/sub message` +
|
|
206
|
-
"\n" + ` to topic ${this.topic}` + "\n with attributes: " +
|
|
201
|
+
const _message = `Error publishing pub/sub message` + ts_common_1.__stringify(object) +
|
|
202
|
+
"\n" + ` to topic ${this.topic}` + "\n with attributes: " + ts_common_1.__stringify(originalMessage.attributes) + "\n" + ts_common_1.__stringify(e);
|
|
207
203
|
this.logError(_message);
|
|
208
204
|
try {
|
|
209
|
-
yield
|
|
205
|
+
yield ts_common_1.dispatch_onServerError.dispatchModuleAsync([ts_common_1.ServerErrorSeverity.Critical, this, _message]);
|
|
210
206
|
}
|
|
211
207
|
catch (_e) {
|
|
212
208
|
this.logError("Error while handing pubsub error", _e);
|
|
@@ -232,7 +228,7 @@ class Firebase_PubSubFunction extends FirebaseFunction {
|
|
|
232
228
|
}
|
|
233
229
|
catch (e) {
|
|
234
230
|
this.logError(`Error parsing the data attribute from pub/sub message to topic ${this.topic}` +
|
|
235
|
-
"\n" +
|
|
231
|
+
"\n" + ts_common_1.__stringify(originalMessage.data) + "\n" + ts_common_1.__stringify(e));
|
|
236
232
|
}
|
|
237
233
|
return this._onPublish(data, originalMessage, context);
|
|
238
234
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"firebase-function.js","sourceRoot":"","sources":["../../../src/main/app-backend/functions/firebase-function.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gDAAgD;AAGhD,
|
|
1
|
+
{"version":3,"file":"firebase-function.js","sourceRoot":"","sources":["../../../src/main/app-backend/functions/firebase-function.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gDAAgD;AAGhD,4DASsC;AAUtC,MAAsB,gBAClB,SAAQ,kBAAc;CAIzB;AALD,4CAKC;AAED,MAAa,wBAAwB;IAOjC,YAAY,QAAiB,EAAE,IAAI,GAAG,KAAK;QAa3C,gBAAW,GAAG,GAAG,EAAE;YACf,IAAI,IAAI,CAAC,QAAQ;gBACb,OAAO,IAAI,CAAC,QAAQ,CAAC;YAEzB,MAAM,cAAc,mBAChB,MAAM,EAAE;oBACJ,KAAK,EAAE,cAAc;oBACrB,aAAa,EAAE,wBAAwB,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;oBACvD,IAAI,EAAE,OAAO;oBACb,OAAO,EAAE,IAAI;iBAChB,IACE,wBAAwB,CAAC,MAAM,CACrC,CAAC;YAEF,OAAO,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,C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9B,CAAC;YACF,OAAO,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAO,OAAgB,EAAE,OAA6B,EAAE,EAAE;gBAClJ,0BAA0B;gBAC1B,MAAM,eAAe,GAAiB,OAAO,CAAC,MAAM,EAAE,CAAC;gBAEvD,IAAI,IAAmB,CAAC;gBACxB,IAAI;oBACA,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;iBAC7E;gBAAC,OAAO,CAAC,EAAE;oBACR,IAAI,CAAC,QAAQ,CAAC,kEAAkE,IAAI,CAAC,KAAK,EAAE;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;QA/CE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;CA+CJ;AAxDD,0DAwDC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FirebaseType_BatchResponse, FirebaseType_Message, FirebaseType_SubscriptionResponse, FirebaseType_TopicResponse } from "./types";
|
|
2
2
|
import { FirebaseBaseWrapper } from "../auth/FirebaseBaseWrapper";
|
|
3
3
|
import { FirebaseSession } from "../auth/firebase-session";
|
|
4
|
-
import { StringMap } from "@intuitionrobotics/ts-common
|
|
4
|
+
import { StringMap } from "@intuitionrobotics/ts-common";
|
|
5
5
|
export declare class PushMessagesWrapper extends FirebaseBaseWrapper {
|
|
6
6
|
private readonly messaging;
|
|
7
7
|
constructor(firebaseSession: FirebaseSession<any, any>);
|
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Firebase is a simpler Typescript wrapper to all of firebase services.
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
2
19
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
20
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
21
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PushMessagesWrapper.js","sourceRoot":"","sources":["../../../src/main/app-backend/push/PushMessagesWrapper.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"PushMessagesWrapper.js","sourceRoot":"","sources":["../../../src/main/app-backend/push/PushMessagesWrapper.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;;AASH,qEAAgE;AAGhE,wDAAsD;AAEtD,MAAa,mBACZ,SAAQ,yCAAmB;IAI3B,YAAY,eAA0C;QACrD,KAAK,CAAC,eAAe,CAAC,CAAC;QACvB,IAAI,CAAC,SAAS,GAAG,wBAAY,CAAC,eAAe,CAAC,GAAG,CAAC,CAAA;IACnD,CAAC;IAEK,IAAI,CAAC,OAA6B,EAAE,MAAgB;;YACzD,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QAC7C,CAAC;KAAA;IAEK,OAAO,CAAC,QAAgC;;YAC7C,OAAO,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC1C,CAAC;KAAA;IAEK,aAAa,CAAC,MAAgB,EAAE,IAAe;;YACpD,OAAO,IAAI,CAAC,SAAS,CAAC,oBAAoB,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC,CAAC;QAC5D,CAAC;KAAA;IAEK,WAAW,CAAC,KAAa,EAAE,IAAe,EAAE,MAAgB;;YACjE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,KAAK,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,MAAM,EAAC,CAAC,CAAA;QAC3D,CAAC;KAAA;IAEK,gBAAgB,CAAC,MAAgB,EAAE,KAAa;;YACrD,OAAO,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;QACtD,CAAC;KAAA;IAEK,oBAAoB,CAAC,MAAgB,EAAE,KAAa;;YACzD,OAAO,IAAI,CAAC,SAAS,CAAC,oBAAoB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;QAC1D,CAAC;KAAA;CACD;AAjCD,kDAiCC"}
|
|
@@ -1,3 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Firebase is a simpler Typescript wrapper to all of firebase services.
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
2
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
20
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/main/app-backend/push/types.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/main/app-backend/push/types.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG"}
|
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Firebase is a simpler Typescript wrapper to all of firebase services.
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
2
19
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
20
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
21
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -10,10 +27,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
27
|
};
|
|
11
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
29
|
exports.FileWrapper = exports.BucketWrapper = exports.StorageWrapper = void 0;
|
|
30
|
+
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
13
31
|
const FirebaseBaseWrapper_1 = require("../auth/FirebaseBaseWrapper");
|
|
14
32
|
const storage_1 = require("firebase-admin/storage");
|
|
15
|
-
const exceptions_1 = require("@intuitionrobotics/ts-common/core/exceptions");
|
|
16
|
-
const date_time_tools_1 = require("@intuitionrobotics/ts-common/utils/date-time-tools");
|
|
17
33
|
class StorageWrapper extends FirebaseBaseWrapper_1.FirebaseBaseWrapper {
|
|
18
34
|
constructor(firebaseSession) {
|
|
19
35
|
super(firebaseSession);
|
|
@@ -25,7 +41,7 @@ class StorageWrapper extends FirebaseBaseWrapper_1.FirebaseBaseWrapper {
|
|
|
25
41
|
if (!_bucketName)
|
|
26
42
|
_bucketName = `gs://${this.firebaseSession.getProjectId()}.appspot.com`;
|
|
27
43
|
if (!_bucketName.startsWith("gs://"))
|
|
28
|
-
throw new
|
|
44
|
+
throw new ts_common_1.BadImplementationException("Bucket name MUST start with 'gs://'");
|
|
29
45
|
const bucket = (yield this.storage.bucket(_bucketName).get({ autoCreate: true }))[0];
|
|
30
46
|
// @ts-ignore
|
|
31
47
|
return new BucketWrapper(_bucketName, bucket, this);
|
|
@@ -90,7 +106,7 @@ class FileWrapper {
|
|
|
90
106
|
const options = {
|
|
91
107
|
action: 'write',
|
|
92
108
|
contentType: contentType,
|
|
93
|
-
expires:
|
|
109
|
+
expires: ts_common_1.currentTimeMillies() + expiresInMs,
|
|
94
110
|
};
|
|
95
111
|
return this.getSignedUrl(options);
|
|
96
112
|
});
|
|
@@ -99,7 +115,7 @@ class FileWrapper {
|
|
|
99
115
|
return __awaiter(this, void 0, void 0, function* () {
|
|
100
116
|
const options = {
|
|
101
117
|
action: 'read',
|
|
102
|
-
expires:
|
|
118
|
+
expires: ts_common_1.currentTimeMillies() + expiresInMs,
|
|
103
119
|
};
|
|
104
120
|
return this.getSignedUrl(options);
|
|
105
121
|
});
|
|
@@ -118,7 +134,7 @@ class FileWrapper {
|
|
|
118
134
|
case "symbol":
|
|
119
135
|
case "bigint":
|
|
120
136
|
case "undefined":
|
|
121
|
-
throw new
|
|
137
|
+
throw new ts_common_1.BadImplementationException(`Cannot save file: ${this.file.name}, data is ${typeof data}`);
|
|
122
138
|
case "object":
|
|
123
139
|
return this.file.save(JSON.stringify(data));
|
|
124
140
|
case "boolean":
|
|
@@ -176,9 +192,9 @@ class FileWrapper {
|
|
|
176
192
|
yield file.delete();
|
|
177
193
|
}
|
|
178
194
|
catch (err) {
|
|
179
|
-
throw new
|
|
195
|
+
throw new ts_common_1.ThisShouldNotHappenException('Error during the deletion of the recently copied file, check the attached error', err);
|
|
180
196
|
}
|
|
181
|
-
throw new
|
|
197
|
+
throw new ts_common_1.BadImplementationException('Error during the deletion of the file after a successful copy, attached error stack', e);
|
|
182
198
|
}
|
|
183
199
|
});
|
|
184
200
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorageWrapper.js","sourceRoot":"","sources":["../../../src/main/app-backend/storage/StorageWrapper.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"StorageWrapper.js","sourceRoot":"","sources":["../../../src/main/app-backend/storage/StorageWrapper.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;;AAEH,4DAIsC;AActC,qEAAgE;AAChE,oDAAkD;AAElD,MAAa,cACZ,SAAQ,yCAAmB;IAK3B,YAAY,eAA0C;QACrD,KAAK,CAAC,eAAe,CAAC,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,oBAAU,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;IAChD,CAAC;IAEK,iBAAiB,CAAC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