@intuitionrobotics/firebase 0.45.3 → 0.46.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/app-backend/FirebaseModule.d.ts +1 -4
- package/app-backend/FirebaseModule.js +11 -28
- package/app-backend/FirebaseModule.js.map +1 -1
- package/app-backend/auth/FirebaseBaseWrapper.d.ts +1 -1
- package/app-backend/auth/FirebaseBaseWrapper.js +2 -19
- package/app-backend/auth/FirebaseBaseWrapper.js.map +1 -1
- package/app-backend/auth/FirebaseSession_Admin.js +3 -20
- package/app-backend/auth/FirebaseSession_Admin.js.map +1 -1
- package/app-backend/auth/FirebaseSession_UserPassword.js +0 -22
- 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 +2 -19
- 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 +10 -26
- package/app-backend/database/DatabaseWrapper.js.map +1 -1
- package/app-backend/database/types.js +0 -17
- package/app-backend/database/types.js.map +1 -1
- package/app-backend/firestore/FirestoreCollection.d.ts +4 -6
- package/app-backend/firestore/FirestoreCollection.js +7 -22
- package/app-backend/firestore/FirestoreCollection.js.map +1 -1
- package/app-backend/firestore/FirestoreInterface.d.ts +1 -1
- package/app-backend/firestore/FirestoreInterface.js +10 -25
- package/app-backend/firestore/FirestoreInterface.js.map +1 -1
- package/app-backend/firestore/FirestoreTransaction.d.ts +1 -1
- package/app-backend/firestore/FirestoreTransaction.js +6 -22
- package/app-backend/firestore/FirestoreTransaction.js.map +1 -1
- package/app-backend/firestore/FirestoreV2Collection.js +0 -17
- 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 +0 -17
- package/app-backend/firestore/types.js.map +1 -1
- package/app-backend/functions/firebase-function.d.ts +2 -1
- package/app-backend/functions/firebase-function.js +17 -13
- 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 +0 -17
- package/app-backend/push/PushMessagesWrapper.js.map +1 -1
- package/app-backend/push/types.js +0 -17
- package/app-backend/push/types.js.map +1 -1
- package/app-backend/storage/StorageWrapper.js +8 -24
- package/app-backend/storage/StorageWrapper.js.map +1 -1
- package/app-backend/storage/types.js +0 -17
- package/app-backend/storage/types.js.map +1 -1
- package/app-frontend/FirebaseModule.d.ts +2 -5
- package/app-frontend/FirebaseModule.js +6 -25
- package/app-frontend/FirebaseModule.js.map +1 -1
- package/app-frontend/analytics/AnalyticsModule.d.ts +1 -1
- package/app-frontend/analytics/AnalyticsModule.js +5 -21
- package/app-frontend/analytics/AnalyticsModule.js.map +1 -1
- package/app-frontend/analytics/AnalyticsWrapper.d.ts +1 -1
- package/app-frontend/analytics/AnalyticsWrapper.js +2 -20
- package/app-frontend/analytics/AnalyticsWrapper.js.map +1 -1
- package/app-frontend/analytics/types.js +0 -18
- package/app-frontend/analytics/types.js.map +1 -1
- package/app-frontend/auth/FirebaseSession.d.ts +2 -5
- package/app-frontend/auth/FirebaseSession.js +5 -25
- package/app-frontend/auth/FirebaseSession.js.map +1 -1
- package/app-frontend/auth/SwFirebaseSession.d.ts +1 -4
- package/app-frontend/auth/SwFirebaseSession.js +2 -21
- package/app-frontend/auth/SwFirebaseSession.js.map +1 -1
- package/app-frontend/database/DatabaseWrapper.d.ts +1 -1
- package/app-frontend/database/DatabaseWrapper.js +9 -25
- package/app-frontend/database/DatabaseWrapper.js.map +1 -1
- package/app-frontend/database/types.js +0 -17
- package/app-frontend/database/types.js.map +1 -1
- package/app-frontend/messaging/MessagingWrapper.d.ts +1 -1
- package/app-frontend/messaging/MessagingWrapper.js +2 -19
- package/app-frontend/messaging/MessagingWrapper.js.map +1 -1
- package/app-frontend/messaging/SwMessagingWrapper.d.ts +1 -1
- package/app-frontend/messaging/SwMessagingWrapper.js +2 -20
- package/app-frontend/messaging/SwMessagingWrapper.js.map +1 -1
- package/app-frontend/messaging/types.js +0 -17
- package/app-frontend/messaging/types.js.map +1 -1
- package/index.d.ts +0 -1
- package/index.js +0 -29
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/shared/types.d.ts +1 -4
- package/shared/types.js +0 -17
- package/shared/types.js.map +1 -1
- package/backend-functions.d.ts +0 -1
- package/backend-functions.js +0 -31
- package/backend-functions.js.map +0 -1
- package/backend.d.ts +0 -13
- package/backend.js +0 -44
- package/backend.js.map +0 -1
- package/frontend.d.ts +0 -4
- package/frontend.js +0 -35
- package/frontend.js.map +0 -1
|
@@ -1,20 +1,3 @@
|
|
|
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
|
-
*/
|
|
19
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
3
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/main/app-backend/storage/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/main/app-backend/storage/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by tacb0ss on 25/08/2018.
|
|
3
|
-
*/
|
|
4
|
-
import { Module } from "@intuitionrobotics/ts-common";
|
|
5
|
-
import { FirebaseConfig } from "..";
|
|
6
1
|
import { FirebaseSession } from "./auth/FirebaseSession";
|
|
7
2
|
import { SwFirebaseSession } from "./auth/SwFirebaseSession";
|
|
3
|
+
import { FirebaseConfig } from "../shared/types";
|
|
4
|
+
import { Module } from "@intuitionrobotics/ts-common/core/module";
|
|
8
5
|
declare type ConfigType = {
|
|
9
6
|
[s: string]: FirebaseConfig;
|
|
10
7
|
};
|
|
@@ -1,21 +1,4 @@
|
|
|
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
|
-
*/
|
|
19
2
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
20
3
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
21
4
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -27,14 +10,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
27
10
|
};
|
|
28
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
12
|
exports.FirebaseModule = exports.FirebaseModule_Class = void 0;
|
|
30
|
-
/**
|
|
31
|
-
* Created by tacb0ss on 25/08/2018.
|
|
32
|
-
*/
|
|
33
|
-
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
34
13
|
const FirebaseSession_1 = require("./auth/FirebaseSession");
|
|
35
14
|
const SwFirebaseSession_1 = require("./auth/SwFirebaseSession");
|
|
15
|
+
const module_1 = require("@intuitionrobotics/ts-common/core/module");
|
|
16
|
+
const exceptions_1 = require("@intuitionrobotics/ts-common/core/exceptions");
|
|
36
17
|
const localSessionId = 'local';
|
|
37
|
-
class FirebaseModule_Class extends
|
|
18
|
+
class FirebaseModule_Class extends module_1.Module {
|
|
38
19
|
constructor() {
|
|
39
20
|
super("FirebaseModule");
|
|
40
21
|
this.sessions = {};
|
|
@@ -47,7 +28,7 @@ class FirebaseModule_Class extends ts_common_1.Module {
|
|
|
47
28
|
return config;
|
|
48
29
|
}
|
|
49
30
|
catch (e) {
|
|
50
|
-
throw new
|
|
31
|
+
throw new exceptions_1.ImplementationMissingException(`Either specify configs for the 'FirebaseModule' or use SDK auto-configuration with firebase hosting`);
|
|
51
32
|
}
|
|
52
33
|
});
|
|
53
34
|
}
|
|
@@ -117,9 +98,9 @@ class FirebaseModule_Class extends ts_common_1.Module {
|
|
|
117
98
|
}
|
|
118
99
|
checkConfig(config, projectId) {
|
|
119
100
|
if (!config)
|
|
120
|
-
throw new
|
|
101
|
+
throw new exceptions_1.BadImplementationException('Did you forget to add FirebaseModule to the main.ts in the modules array?');
|
|
121
102
|
if (!config || !config.projectId || !config.apiKey || !config.authDomain)
|
|
122
|
-
throw new
|
|
103
|
+
throw new exceptions_1.BadImplementationException(`Config for key ${projectId} is not an Admin credentials pattern`);
|
|
123
104
|
}
|
|
124
105
|
}
|
|
125
106
|
exports.FirebaseModule_Class = FirebaseModule_Class;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FirebaseModule.js","sourceRoot":"","sources":["../../src/main/app-frontend/FirebaseModule.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FirebaseModule.js","sourceRoot":"","sources":["../../src/main/app-frontend/FirebaseModule.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4DAAuD;AACvD,gEAA2D;AAE3D,qEAAkE;AAClE,6EAAyH;AAEzH,MAAM,cAAc,GAAG,OAAO,CAAC;AAM/B,MAAa,oBACZ,SAAQ,eAAkB;IAK1B;QACC,KAAK,CAAC,gBAAgB,CAAC,CAAC;QAJjB,aAAQ,GAA6C,EAAE,CAAC;QAqCxD,qBAAgB,GAAG,GAAS,EAAE;YACrC,IAAI;gBACH,MAAM,IAAI,GAAG,MAAM,KAAK,CAAC,wBAAwB,CAAC,CAAC;gBACnD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,IAAI,EAA6B,CAAC;gBAC5D,aAAa;gBACb,IAAI,CAAC,SAAS,CAAC,EAAC,CAAC,cAAc,CAAC,EAAE,MAAM,EAAC,CAAC,CAAC;gBAC3C,OAAO,MAAM,CAAC;aACd;YAAC,OAAO,CAAC,EAAE;gBACX,MAAM,IAAI,2CAA8B,CAAC,qGAAqG,CAAC,CAAC;aAChJ;QACF,CAAC,CAAA,CAAC;IA1CF,CAAC;IAGK,eAAe;;YACpB,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;YACjC,IAAI,SAAS;gBACZ,OAAO,SAAS,CAAC;YAElB,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,kBAAkB,EAAE,CAAC;YAErD,OAAO,IAAI,CAAC,SAAS,GAAG,IAAI,qCAAiB,CAAC,cAAc,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC;QACjF,CAAC;KAAA;IAEa,kBAAkB,CAAC,KAAc;;YAC9C,IAAI,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC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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
|
-
*/
|
|
19
2
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
20
3
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
21
4
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -27,9 +10,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
27
10
|
};
|
|
28
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
12
|
exports.FirebaseAnalyticsModule = void 0;
|
|
30
|
-
const
|
|
13
|
+
const module_1 = require("@intuitionrobotics/ts-common/core/module");
|
|
14
|
+
const exceptions_1 = require("@intuitionrobotics/ts-common/core/exceptions");
|
|
31
15
|
const FirebaseModule_1 = require("../FirebaseModule");
|
|
32
|
-
class FirebaseAnalyticsModule_Class extends
|
|
16
|
+
class FirebaseAnalyticsModule_Class extends module_1.Module {
|
|
33
17
|
constructor() {
|
|
34
18
|
super("FirebaseAnalyticsModule");
|
|
35
19
|
this._init = () => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -43,12 +27,12 @@ class FirebaseAnalyticsModule_Class extends ts_common_1.Module {
|
|
|
43
27
|
}
|
|
44
28
|
logEvent(eventName, eventParams) {
|
|
45
29
|
if (!this.analytics)
|
|
46
|
-
throw new
|
|
30
|
+
throw new exceptions_1.ImplementationMissingException('Missing analytics wrapper');
|
|
47
31
|
return this.analytics.logEvent(eventName, eventParams);
|
|
48
32
|
}
|
|
49
33
|
setCurrentScreen(screenName) {
|
|
50
34
|
if (!this.analytics)
|
|
51
|
-
throw new
|
|
35
|
+
throw new exceptions_1.ImplementationMissingException('Missing analytics wrapper');
|
|
52
36
|
return this.analytics.setCurrentScreen(screenName);
|
|
53
37
|
}
|
|
54
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnalyticsModule.js","sourceRoot":"","sources":["../../../src/main/app-frontend/analytics/AnalyticsModule.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AnalyticsModule.js","sourceRoot":"","sources":["../../../src/main/app-frontend/analytics/AnalyticsModule.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qEAAgE;AAChE,6EAA4F;AAC5F,sDAAiD;AAGjD,MAAM,6BACF,SAAQ,eAAM;IAEd;QACI,KAAK,CAAC,yBAAyB,CAAC,CAAC;QAS7B,UAAK,GAAG,GAAS,EAAE;YACvB,MAAM,OAAO,GAAG,MAAM,+BAAc,CAAC,aAAa,EAAE,CAAC;YAErD,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;YACxC,IAAI,CAAC,SAAS,CAAC,6BAA6B,CAAC,IAAI,CAAC,CAAC;QACvD,CAAC,CAAA,CAAC;IAbF,CAAC;IAIS,IAAI;QACV,IAAI,CAAC,QAAQ,CAAC,gBAAgB,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;IAChD,CAAC;IASD,QAAQ,CAAC,SAAiB,EAAE,WAAoC;QAC5D,IAAI,CAAC,IAAI,CAAC,SAAS;YACf,MAAM,IAAI,2CAA8B,CAAC,2BAA2B,CAAC,CAAC;QAE1E,OAAO,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;IAC3D,CAAC;IAED,gBAAgB,CAAC,UAAkB;QAC/B,IAAI,CAAC,IAAI,CAAC,SAAS;YACf,MAAM,IAAI,2CAA8B,CAAC,2BAA2B,CAAC,CAAC;QAE1E,OAAO,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;IACvD,CAAC;CACJ;AAEY,QAAA,uBAAuB,GAAG,IAAI,6BAA6B,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Logger } from "@intuitionrobotics/ts-common";
|
|
1
|
+
import { Logger } from "@intuitionrobotics/ts-common/core/logger/Logger";
|
|
2
2
|
import { FirebaseType_Analytics, FirebaseType_CallOptions, FirebaseType_EventNameString } from "./types";
|
|
3
3
|
import { CustomParams } from "firebase/analytics";
|
|
4
4
|
export declare class AnalyticsWrapper extends Logger {
|
|
@@ -1,28 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Permissions management system, define access level for each of
|
|
4
|
-
* your server apis, and restrict users by giving them access levels
|
|
5
|
-
*
|
|
6
|
-
* Copyright (C) 2020 Intuition Robotics
|
|
7
|
-
*
|
|
8
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
-
* you may not use this file except in compliance with the License.
|
|
10
|
-
* You may obtain a copy of the License at
|
|
11
|
-
*
|
|
12
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
-
*
|
|
14
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
-
* See the License for the specific language governing permissions and
|
|
18
|
-
* limitations under the License.
|
|
19
|
-
*/
|
|
20
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
3
|
exports.AnalyticsWrapper = void 0;
|
|
22
|
-
const
|
|
4
|
+
const Logger_1 = require("@intuitionrobotics/ts-common/core/logger/Logger");
|
|
23
5
|
// tslint:disable:no-import-side-effect
|
|
24
6
|
const analytics_1 = require("firebase/analytics");
|
|
25
|
-
class AnalyticsWrapper extends
|
|
7
|
+
class AnalyticsWrapper extends Logger_1.Logger {
|
|
26
8
|
constructor(analytics) {
|
|
27
9
|
super();
|
|
28
10
|
this.analytics = analytics;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnalyticsWrapper.js","sourceRoot":"","sources":["../../../src/main/app-frontend/analytics/AnalyticsWrapper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AnalyticsWrapper.js","sourceRoot":"","sources":["../../../src/main/app-frontend/analytics/AnalyticsWrapper.ts"],"names":[],"mappings":";;;AAAA,4EAAuE;AAMvE,uCAAuC;AACvC,kDAM4B;AAE5B,MAAa,gBACZ,SAAQ,eAAM;IAId,YAAY,SAAiC;QAC5C,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC5B,CAAC;IAED,SAAS,CAAC,MAAc,EAAE,OAAkC;QAC3D,qBAAS,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;IAC5C,CAAC;IAED,gBAAgB,CAAC,UAAkB,EAAE,OAAkC;QACtE,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAC,EAAC,UAAU,EAAC,EAAE,OAAO,CAAC,CAAA;IACnD,CAAC;IAED,6BAA6B,CAAC,OAAgB;QAC7C,yCAA6B,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IAED,iBAAiB,CAAC,UAAwB,EAAE,OAAkC;QAC7E,6BAAiB,CAAC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IAC/C,CAAC;IAED,QAAQ,CACP,SAAgD,EAChD,WAAoC,EACpC,OAAkC;QAElC,OAAO,oBAAQ,CAAC,IAAI,CAAC,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;CAED;AAlCD,4CAkCC"}
|
|
@@ -1,21 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Permissions management system, define access level for each of
|
|
4
|
-
* your server apis, and restrict users by giving them access levels
|
|
5
|
-
*
|
|
6
|
-
* Copyright (C) 2020 Intuition Robotics
|
|
7
|
-
*
|
|
8
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
-
* you may not use this file except in compliance with the License.
|
|
10
|
-
* You may obtain a copy of the License at
|
|
11
|
-
*
|
|
12
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
-
*
|
|
14
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
-
* See the License for the specific language governing permissions and
|
|
18
|
-
* limitations under the License.
|
|
19
|
-
*/
|
|
20
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
3
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/main/app-frontend/analytics/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/main/app-frontend/analytics/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by tacb0ss on 19/09/2018.
|
|
3
|
-
*/
|
|
4
1
|
import "firebase/auth";
|
|
5
2
|
import { FirebaseApp } from "firebase/app";
|
|
6
|
-
import { Logger } from "@intuitionrobotics/ts-common";
|
|
7
|
-
import { FirebaseConfig } from "../../index";
|
|
3
|
+
import { Logger } from "@intuitionrobotics/ts-common/core/logger/Logger";
|
|
8
4
|
import { MessagingWrapper } from "../messaging/MessagingWrapper";
|
|
9
5
|
import { AnalyticsWrapper } from "../analytics/AnalyticsWrapper";
|
|
10
6
|
import { DatabaseWrapper } from "../database/DatabaseWrapper";
|
|
7
|
+
import { FirebaseConfig } from "../../shared/types";
|
|
11
8
|
export declare class FirebaseSession extends Logger {
|
|
12
9
|
app: FirebaseApp;
|
|
13
10
|
protected config: FirebaseConfig;
|
|
@@ -1,22 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Permissions management system, define access level for each of
|
|
4
|
-
* your server apis, and restrict users by giving them access levels
|
|
5
|
-
*
|
|
6
|
-
* Copyright (C) 2020 Intuition Robotics
|
|
7
|
-
*
|
|
8
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
-
* you may not use this file except in compliance with the License.
|
|
10
|
-
* You may obtain a copy of the License at
|
|
11
|
-
*
|
|
12
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
-
*
|
|
14
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
-
* See the License for the specific language governing permissions and
|
|
18
|
-
* limitations under the License.
|
|
19
|
-
*/
|
|
20
2
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
21
3
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
22
4
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -28,14 +10,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28
10
|
};
|
|
29
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
12
|
exports.FirebaseSession = void 0;
|
|
31
|
-
/**
|
|
32
|
-
* Created by tacb0ss on 19/09/2018.
|
|
33
|
-
*/
|
|
34
13
|
// tslint:disable:no-import-side-effect
|
|
35
14
|
require("firebase/auth");
|
|
36
15
|
const auth_1 = require("firebase/auth");
|
|
37
16
|
const app_1 = require("firebase/app");
|
|
38
|
-
const
|
|
17
|
+
const Logger_1 = require("@intuitionrobotics/ts-common/core/logger/Logger");
|
|
18
|
+
const exceptions_1 = require("@intuitionrobotics/ts-common/core/exceptions");
|
|
39
19
|
const MessagingWrapper_1 = require("../messaging/MessagingWrapper");
|
|
40
20
|
const AnalyticsWrapper_1 = require("../analytics/AnalyticsWrapper");
|
|
41
21
|
const DatabaseWrapper_1 = require("../database/DatabaseWrapper");
|
|
@@ -43,7 +23,7 @@ const messaging_1 = require("firebase/messaging");
|
|
|
43
23
|
const analytics_1 = require("firebase/analytics");
|
|
44
24
|
const database_1 = require("firebase/database");
|
|
45
25
|
const firestore_1 = require("firebase/firestore");
|
|
46
|
-
class FirebaseSession extends
|
|
26
|
+
class FirebaseSession extends Logger_1.Logger {
|
|
47
27
|
constructor(sessionName, config) {
|
|
48
28
|
super(`firebase: ${sessionName}`);
|
|
49
29
|
this.sessionName = sessionName;
|
|
@@ -83,9 +63,9 @@ class FirebaseSession extends ts_common_1.Logger {
|
|
|
83
63
|
}
|
|
84
64
|
getProjectId() {
|
|
85
65
|
if (!this.config)
|
|
86
|
-
throw new
|
|
66
|
+
throw new exceptions_1.ThisShouldNotHappenException("Missing config. Probably init not resolved yet!");
|
|
87
67
|
if (!this.config.projectId)
|
|
88
|
-
throw new
|
|
68
|
+
throw new exceptions_1.ThisShouldNotHappenException("Could not deduce project id from session config.. if you need the functionality.. add it to the config!!");
|
|
89
69
|
return this.config.projectId;
|
|
90
70
|
}
|
|
91
71
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FirebaseSession.js","sourceRoot":"","sources":["../../../src/main/app-frontend/auth/FirebaseSession.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FirebaseSession.js","sourceRoot":"","sources":["../../../src/main/app-frontend/auth/FirebaseSession.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAuC;AACvC,yBAAuB;AACvB,wCAAsE;AACtE,sC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AAC,IAAI,CAAC,GAAG,CAAC,CAAA;IACjC,CAAC;IAEK,OAAO;;YACT,OAAO,cAAO,CAAC,cAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAA;QACrC,CAAC;KAAA;IAED,YAAY;QACR,IAAI,CAAC,IAAI,CAAC,MAAM;YACZ,MAAM,IAAI,yCAA4B,CAAC,iDAAiD,CAAC,CAAC;QAE9F,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS;YACtB,MAAM,IAAI,yCAA4B,CAAC,0GAA0G,CAAC,CAAC;QAEvJ,OAAO,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC;IACjC,CAAC;CACJ;AA9DD,0CA8DC"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by tacb0ss on 19/09/2018.
|
|
3
|
-
*/
|
|
4
1
|
import { FirebaseApp } from "firebase/app";
|
|
5
2
|
import "firebase/auth";
|
|
6
|
-
import { Logger } from "@intuitionrobotics/ts-common";
|
|
3
|
+
import { Logger } from "@intuitionrobotics/ts-common/core/logger/Logger";
|
|
7
4
|
import { SwMessagingWrapper } from "../messaging/SwMessagingWrapper";
|
|
8
5
|
export declare class SwFirebaseSession extends Logger {
|
|
9
6
|
app: FirebaseApp;
|
|
@@ -1,31 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Permissions management system, define access level for each of
|
|
4
|
-
* your server apis, and restrict users by giving them access levels
|
|
5
|
-
*
|
|
6
|
-
* Copyright (C) 2020 Intuition Robotics
|
|
7
|
-
*
|
|
8
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
-
* you may not use this file except in compliance with the License.
|
|
10
|
-
* You may obtain a copy of the License at
|
|
11
|
-
*
|
|
12
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
-
*
|
|
14
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
-
* See the License for the specific language governing permissions and
|
|
18
|
-
* limitations under the License.
|
|
19
|
-
*/
|
|
20
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
3
|
exports.SwFirebaseSession = void 0;
|
|
22
4
|
// tslint:disable:no-import-side-effect
|
|
23
5
|
require("firebase/auth");
|
|
24
|
-
const
|
|
25
|
-
// noinspection TypeScriptPreferShortImport
|
|
6
|
+
const Logger_1 = require("@intuitionrobotics/ts-common/core/logger/Logger");
|
|
26
7
|
const SwMessagingWrapper_1 = require("../messaging/SwMessagingWrapper");
|
|
27
8
|
const messaging_1 = require("firebase/messaging");
|
|
28
|
-
class SwFirebaseSession extends
|
|
9
|
+
class SwFirebaseSession extends Logger_1.Logger {
|
|
29
10
|
constructor(sessionName, app) {
|
|
30
11
|
super(`service worker firebase: ${sessionName}`);
|
|
31
12
|
this.sessionName = sessionName;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwFirebaseSession.js","sourceRoot":"","sources":["../../../src/main/app-frontend/auth/SwFirebaseSession.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SwFirebaseSession.js","sourceRoot":"","sources":["../../../src/main/app-frontend/auth/SwFirebaseSession.ts"],"names":[],"mappings":";;;AACA,uCAAuC;AACvC,yBAAuB;AACvB,4EAAuE;AACvE,wEAAmE;AACnE,kDAAgD;AAGhD,MAAa,iBACZ,SAAQ,eAAM;IAMd,YAAY,WAAmB,EAAE,GAAgB;QAChD,KAAK,CAAC,4BAA4B,WAAW,EAAE,CAAC,CAAC;QAEjD,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IAChB,CAAC;IAED,YAAY;QACX,IAAI,IAAI,CAAC,SAAS;YACjB,OAAO,IAAI,CAAC,SAAS,CAAC;QAEvB,OAAO,IAAI,CAAC,SAAS,GAAG,IAAI,uCAAkB,CAAC,wBAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IACxE,CAAC;CACD;AApBD,8CAoBC"}
|
|
@@ -1,21 +1,4 @@
|
|
|
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
|
-
*/
|
|
19
2
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
20
3
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
21
4
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -27,10 +10,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
27
10
|
};
|
|
28
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
12
|
exports.DatabaseWrapper = void 0;
|
|
30
|
-
const
|
|
13
|
+
const Logger_1 = require("@intuitionrobotics/ts-common/core/logger/Logger");
|
|
14
|
+
const exceptions_1 = require("@intuitionrobotics/ts-common/core/exceptions");
|
|
31
15
|
// tslint:disable:no-import-side-effect
|
|
32
16
|
const database_1 = require("firebase/database");
|
|
33
|
-
class DatabaseWrapper extends
|
|
17
|
+
class DatabaseWrapper extends Logger_1.Logger {
|
|
34
18
|
constructor(database) {
|
|
35
19
|
super();
|
|
36
20
|
this.getRef = (path) => database_1.ref(this.database, path);
|
|
@@ -51,7 +35,7 @@ class DatabaseWrapper extends ts_common_1.Logger {
|
|
|
51
35
|
return database_1.onValue(this.getRef(path), snapshot => {
|
|
52
36
|
callback(snapshot.val());
|
|
53
37
|
}, (error) => {
|
|
54
|
-
throw new
|
|
38
|
+
throw new exceptions_1.BadImplementationException(`Error while getting value from path: ${path}`, error);
|
|
55
39
|
}, { onlyOnce: false });
|
|
56
40
|
}
|
|
57
41
|
listenWithError(path, callback, errorCallback, onlyOnce = false) {
|
|
@@ -65,7 +49,7 @@ class DatabaseWrapper extends ts_common_1.Logger {
|
|
|
65
49
|
yield database_1.set(this.getRef(path), value);
|
|
66
50
|
}
|
|
67
51
|
catch (e) {
|
|
68
|
-
throw new
|
|
52
|
+
throw new exceptions_1.BadImplementationException(`Error while setting value to path: ${path}`);
|
|
69
53
|
}
|
|
70
54
|
});
|
|
71
55
|
}
|
|
@@ -82,7 +66,7 @@ class DatabaseWrapper extends ts_common_1.Logger {
|
|
|
82
66
|
yield database_1.update(this.getRef(path), value);
|
|
83
67
|
}
|
|
84
68
|
catch (e) {
|
|
85
|
-
throw new
|
|
69
|
+
throw new exceptions_1.BadImplementationException(`Error while updating value to path: ${path}`);
|
|
86
70
|
}
|
|
87
71
|
});
|
|
88
72
|
}
|
|
@@ -96,14 +80,14 @@ class DatabaseWrapper extends ts_common_1.Logger {
|
|
|
96
80
|
delete(path, assertionRegexp = "^/.*?/.*") {
|
|
97
81
|
return __awaiter(this, void 0, void 0, function* () {
|
|
98
82
|
if (!path)
|
|
99
|
-
throw new
|
|
83
|
+
throw new exceptions_1.BadImplementationException(`Falsy value, path: '${path}'`);
|
|
100
84
|
if (!path.match(new RegExp(assertionRegexp)))
|
|
101
|
-
throw new
|
|
85
|
+
throw new exceptions_1.BadImplementationException(`path: '${path}' does not match assertion: '${assertionRegexp}'`);
|
|
102
86
|
try {
|
|
103
87
|
yield database_1.remove(this.getRef(path));
|
|
104
88
|
}
|
|
105
89
|
catch (e) {
|
|
106
|
-
throw new
|
|
90
|
+
throw new exceptions_1.BadImplementationException(`Error while removing path: ${path}`);
|
|
107
91
|
}
|
|
108
92
|
});
|
|
109
93
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatabaseWrapper.js","sourceRoot":"","sources":["../../../src/main/app-frontend/database/DatabaseWrapper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DatabaseWrapper.js","sourceRoot":"","sources":["../../../src/main/app-frontend/database/DatabaseWrapper.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4EAAuE;AACvE,6EAAwF;AAExF,uCAAuC;AACvC,gDAM2B;AAE3B,MAAa,eACZ,SAAQ,eAAM;IAId,YAAY,QAAyB;QACpC,KAAK,EAAE,CAAC;QA6BD,WAAM,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,cAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;QA5B3D,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC1B,CAAC;IAGY,GAAG,CAAI,IAAY;;YAC/B,OAAO,IAAI,OAAO,CAAW,CAAO,OAAO,EAAE,MAAM,EAAE,EAAE;gBACtD,kBAAO,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,EAAE;oBACrC,OAAO,CAAC,QAAQ,CAAC,GAAG,EAAO,CAAC,CAAC;gBAC9B,CAAC,EAAE,CAAC,KAAY,EAAE,EAAE;oBACnB,MAAM,CAAC,KAAK,CAAC,CAAC;gBACf,CAAC,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,CAAC;YACtB,CAAC,CAAA,CAAC,CAAC;QACJ,CAAC;KAAA;IAEM,MAAM,CAAI,IAAY,EAAE,QAA4B;QAC1D,OAAO,kBAAO,CAAC,IAAI,CAAC,MAAM,CAA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,CAAC,EAAE;gBACX,MAAM,IAAI,uCAA0B,CAAC,uCAAuC,IAAI,EAAE,CAAC,CAAC;aACpF;QACF,CAAC;KAAA;IAED,kBAAkB;IACL,MAAM,CAAI,IAAY,EAAE,kBAA0B,UAAU;;YACxE,IAAI,CAAC,UAAU,CAAC,+CAA+C,CAAC,CAAC;YACjE,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;QAC3C,CAAC;KAAA;IAEY,MAAM,CAAI,IAAY,EAAE,kBAA0B,UAAU;;YACxE,IAAI,CAAC,IAAI;gBACR,MAAM,IAAI,uCAA0B,CAAC,uBAAuB,IAAI,GAAG,CAAC,CAAC;YAEtE,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,eAAe,CAAC,CAAC;gBAC3C,MAAM,IAAI,uCAA0B,CAAC,UAAU,IAAI,iCAAiC,eAAe,GAAG,CAAC,CAAC;YAEzG,IAAI;gBACH,MAAM,iBAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;aAChC;YAAC,OAAO,CAAC,EAAE;gBACX,MAAM,IAAI,uCAA0B,CAAC,8BAA8B,IAAI,EAAE,CAAC,CAAC;aAC3E;QACF,CAAC;KAAA;CACD;AA9ED,0CA8EC"}
|
|
@@ -1,20 +1,3 @@
|
|
|
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
|
-
*/
|
|
19
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
3
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/main/app-frontend/database/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/main/app-frontend/database/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Logger } from "@intuitionrobotics/ts-common";
|
|
1
|
+
import { Logger } from "@intuitionrobotics/ts-common/core/logger/Logger";
|
|
2
2
|
import { FirebaseType_Messaging, FirebaseType_Unsubscribe } from "./types";
|
|
3
3
|
import { GetTokenOptions, MessagePayload, NextFn, Observer } from "firebase/messaging";
|
|
4
4
|
export declare class MessagingWrapper extends Logger {
|
|
@@ -1,21 +1,4 @@
|
|
|
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
|
-
*/
|
|
19
2
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
20
3
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
21
4
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -27,9 +10,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
27
10
|
};
|
|
28
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
12
|
exports.MessagingWrapper = void 0;
|
|
30
|
-
const
|
|
13
|
+
const Logger_1 = require("@intuitionrobotics/ts-common/core/logger/Logger");
|
|
31
14
|
const messaging_1 = require("firebase/messaging");
|
|
32
|
-
class MessagingWrapper extends
|
|
15
|
+
class MessagingWrapper extends Logger_1.Logger {
|
|
33
16
|
constructor(messaging) {
|
|
34
17
|
super();
|
|
35
18
|
this.messaging = messaging;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessagingWrapper.js","sourceRoot":"","sources":["../../../src/main/app-frontend/messaging/MessagingWrapper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MessagingWrapper.js","sourceRoot":"","sources":["../../../src/main/app-frontend/messaging/MessagingWrapper.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4EAAuE;AAEvE,kDAA0G;AAE1G,MAAa,gBACZ,SAAQ,eAAM;IAMd,YAAY,SAAiC;QAC5C,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC5B,CAAC;IAEK,QAAQ,CAAC,OAAyB;;YACvC,IAAI,CAAC,KAAK,GAAG,MAAM,oBAAQ,CAAC,IAAI,CAAC,SAAS,EAAC,OAAO,CAAC,CAAC;YACpD,IAAI,IAAI,CAAC,QAAQ;gBAChB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAE/B,OAAO,IAAI,CAAC,KAAK,CAAC;QACnB,CAAC;KAAA;IAED,SAAS,CAAC,QAA2D;QACpE,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,IAAI,CAAC,KAAK;YACd,OAAO;QAER,OAAO,qBAAS,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IAC5C,CAAC;CACD;AA3BD,4CA2BC"}
|
|
@@ -1,27 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Permissions management system, define access level for each of
|
|
4
|
-
* your server apis, and restrict users by giving them access levels
|
|
5
|
-
*
|
|
6
|
-
* Copyright (C) 2020 Intuition Robotics
|
|
7
|
-
*
|
|
8
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
-
* you may not use this file except in compliance with the License.
|
|
10
|
-
* You may obtain a copy of the License at
|
|
11
|
-
*
|
|
12
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
-
*
|
|
14
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
-
* See the License for the specific language governing permissions and
|
|
18
|
-
* limitations under the License.
|
|
19
|
-
*/
|
|
20
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
3
|
exports.SwMessagingWrapper = void 0;
|
|
22
|
-
const
|
|
4
|
+
const Logger_1 = require("@intuitionrobotics/ts-common/core/logger/Logger");
|
|
23
5
|
const sw_1 = require("firebase/messaging/sw");
|
|
24
|
-
class SwMessagingWrapper extends
|
|
6
|
+
class SwMessagingWrapper extends Logger_1.Logger {
|
|
25
7
|
constructor(messaging) {
|
|
26
8
|
super();
|
|
27
9
|
this.messaging = messaging;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwMessagingWrapper.js","sourceRoot":"","sources":["../../../src/main/app-frontend/messaging/SwMessagingWrapper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SwMessagingWrapper.js","sourceRoot":"","sources":["../../../src/main/app-frontend/messaging/SwMessagingWrapper.ts"],"names":[],"mappings":";;;AAAA,4EAAuE;AAEvE,8CAA0D;AAE1D,MAAa,kBACZ,SAAQ,eAAM;IAId,YAAY,SAAiC;QAC5C,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC5B,CAAC;IAED,mBAAmB,CAAC,QAAgC;QACnD,sIAAsI;QACtI,sIAAsI;QACtI,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,0BAA0B,IAAI,IAAI,CAAC;YACjD,OAAO,IAAI,CAAC,UAAU,CAAC,8BAA8B,CAAC,CAAC;QAExD,IAAI,CAAC,OAAO,CAAC,kCAAkC,CAAC,CAAC;QACjD,OAAO,wBAAmB,CAAC,IAAI,CAAC,SAAS,EAAE;YAC1C,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;YACtC,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,0CAA0C,CAAC;SACxE,CAAC,CAAC;IACJ,CAAC;CAED;AAxBD,gDAwBC"}
|