@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.
Files changed (91) hide show
  1. package/app-backend/FirebaseModule.d.ts +4 -1
  2. package/app-backend/FirebaseModule.js +28 -11
  3. package/app-backend/FirebaseModule.js.map +1 -1
  4. package/app-backend/auth/FirebaseBaseWrapper.d.ts +1 -1
  5. package/app-backend/auth/FirebaseBaseWrapper.js +19 -2
  6. package/app-backend/auth/FirebaseBaseWrapper.js.map +1 -1
  7. package/app-backend/auth/FirebaseSession_Admin.js +20 -3
  8. package/app-backend/auth/FirebaseSession_Admin.js.map +1 -1
  9. package/app-backend/auth/FirebaseSession_UserPassword.js +22 -0
  10. package/app-backend/auth/FirebaseSession_UserPassword.js.map +1 -1
  11. package/app-backend/auth/firebase-session.d.ts +2 -2
  12. package/app-backend/auth/firebase-session.js +19 -2
  13. package/app-backend/auth/firebase-session.js.map +1 -1
  14. package/app-backend/database/DatabaseWrapper.d.ts +1 -1
  15. package/app-backend/database/DatabaseWrapper.js +26 -10
  16. package/app-backend/database/DatabaseWrapper.js.map +1 -1
  17. package/app-backend/database/types.js +17 -0
  18. package/app-backend/database/types.js.map +1 -1
  19. package/app-backend/firestore/FirestoreCollection.d.ts +6 -4
  20. package/app-backend/firestore/FirestoreCollection.js +22 -7
  21. package/app-backend/firestore/FirestoreCollection.js.map +1 -1
  22. package/app-backend/firestore/FirestoreInterface.d.ts +1 -1
  23. package/app-backend/firestore/FirestoreInterface.js +25 -10
  24. package/app-backend/firestore/FirestoreInterface.js.map +1 -1
  25. package/app-backend/firestore/FirestoreTransaction.d.ts +1 -1
  26. package/app-backend/firestore/FirestoreTransaction.js +22 -6
  27. package/app-backend/firestore/FirestoreTransaction.js.map +1 -1
  28. package/app-backend/firestore/FirestoreV2Collection.js +17 -0
  29. package/app-backend/firestore/FirestoreV2Collection.js.map +1 -1
  30. package/app-backend/firestore/FirestoreWrapper.js.map +1 -1
  31. package/app-backend/firestore/types.d.ts +9 -9
  32. package/app-backend/firestore/types.js +17 -0
  33. package/app-backend/firestore/types.js.map +1 -1
  34. package/app-backend/functions/firebase-function.d.ts +1 -2
  35. package/app-backend/functions/firebase-function.js +13 -17
  36. package/app-backend/functions/firebase-function.js.map +1 -1
  37. package/app-backend/push/PushMessagesWrapper.d.ts +1 -1
  38. package/app-backend/push/PushMessagesWrapper.js +17 -0
  39. package/app-backend/push/PushMessagesWrapper.js.map +1 -1
  40. package/app-backend/push/types.js +17 -0
  41. package/app-backend/push/types.js.map +1 -1
  42. package/app-backend/storage/StorageWrapper.js +24 -8
  43. package/app-backend/storage/StorageWrapper.js.map +1 -1
  44. package/app-backend/storage/types.js +17 -0
  45. package/app-backend/storage/types.js.map +1 -1
  46. package/app-frontend/FirebaseModule.d.ts +5 -2
  47. package/app-frontend/FirebaseModule.js +25 -6
  48. package/app-frontend/FirebaseModule.js.map +1 -1
  49. package/app-frontend/analytics/AnalyticsModule.d.ts +1 -1
  50. package/app-frontend/analytics/AnalyticsModule.js +21 -5
  51. package/app-frontend/analytics/AnalyticsModule.js.map +1 -1
  52. package/app-frontend/analytics/AnalyticsWrapper.d.ts +1 -1
  53. package/app-frontend/analytics/AnalyticsWrapper.js +20 -2
  54. package/app-frontend/analytics/AnalyticsWrapper.js.map +1 -1
  55. package/app-frontend/analytics/types.js +18 -0
  56. package/app-frontend/analytics/types.js.map +1 -1
  57. package/app-frontend/auth/FirebaseSession.d.ts +5 -2
  58. package/app-frontend/auth/FirebaseSession.js +25 -5
  59. package/app-frontend/auth/FirebaseSession.js.map +1 -1
  60. package/app-frontend/auth/SwFirebaseSession.d.ts +4 -1
  61. package/app-frontend/auth/SwFirebaseSession.js +21 -2
  62. package/app-frontend/auth/SwFirebaseSession.js.map +1 -1
  63. package/app-frontend/database/DatabaseWrapper.d.ts +1 -1
  64. package/app-frontend/database/DatabaseWrapper.js +25 -9
  65. package/app-frontend/database/DatabaseWrapper.js.map +1 -1
  66. package/app-frontend/database/types.js +17 -0
  67. package/app-frontend/database/types.js.map +1 -1
  68. package/app-frontend/messaging/MessagingWrapper.d.ts +1 -1
  69. package/app-frontend/messaging/MessagingWrapper.js +19 -2
  70. package/app-frontend/messaging/MessagingWrapper.js.map +1 -1
  71. package/app-frontend/messaging/SwMessagingWrapper.d.ts +1 -1
  72. package/app-frontend/messaging/SwMessagingWrapper.js +20 -2
  73. package/app-frontend/messaging/SwMessagingWrapper.js.map +1 -1
  74. package/app-frontend/messaging/types.js +17 -0
  75. package/app-frontend/messaging/types.js.map +1 -1
  76. package/backend-functions.d.ts +1 -0
  77. package/backend-functions.js +31 -0
  78. package/backend-functions.js.map +1 -0
  79. package/backend.d.ts +13 -0
  80. package/backend.js +44 -0
  81. package/backend.js.map +1 -0
  82. package/frontend.d.ts +4 -0
  83. package/frontend.js +35 -0
  84. package/frontend.js.map +1 -0
  85. package/index.d.ts +1 -0
  86. package/index.js +29 -0
  87. package/index.js.map +1 -1
  88. package/package.json +3 -3
  89. package/shared/types.d.ts +4 -1
  90. package/shared/types.js +17 -0
  91. package/shared/types.js.map +1 -1
@@ -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/storage/types.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/main/app-backend/storage/types.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG"}
@@ -1,7 +1,10 @@
1
+ /**
2
+ * Created by tacb0ss on 25/08/2018.
3
+ */
4
+ import { Module } from "@intuitionrobotics/ts-common";
5
+ import { FirebaseConfig } from "..";
1
6
  import { FirebaseSession } from "./auth/FirebaseSession";
2
7
  import { SwFirebaseSession } from "./auth/SwFirebaseSession";
3
- import { FirebaseConfig } from "../shared/types";
4
- import { Module } from "@intuitionrobotics/ts-common/core/module";
5
8
  declare type ConfigType = {
6
9
  [s: string]: FirebaseConfig;
7
10
  };
@@ -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,12 +27,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
27
  };
11
28
  Object.defineProperty(exports, "__esModule", { value: true });
12
29
  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");
13
34
  const FirebaseSession_1 = require("./auth/FirebaseSession");
14
35
  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");
17
36
  const localSessionId = 'local';
18
- class FirebaseModule_Class extends module_1.Module {
37
+ class FirebaseModule_Class extends ts_common_1.Module {
19
38
  constructor() {
20
39
  super("FirebaseModule");
21
40
  this.sessions = {};
@@ -28,7 +47,7 @@ class FirebaseModule_Class extends module_1.Module {
28
47
  return config;
29
48
  }
30
49
  catch (e) {
31
- throw new exceptions_1.ImplementationMissingException(`Either specify configs for the 'FirebaseModule' or use SDK auto-configuration with firebase hosting`);
50
+ throw new ts_common_1.ImplementationMissingException(`Either specify configs for the 'FirebaseModule' or use SDK auto-configuration with firebase hosting`);
32
51
  }
33
52
  });
34
53
  }
@@ -98,9 +117,9 @@ class FirebaseModule_Class extends module_1.Module {
98
117
  }
99
118
  checkConfig(config, projectId) {
100
119
  if (!config)
101
- throw new exceptions_1.BadImplementationException('Did you forget to add FirebaseModule to the main.ts in the modules array?');
120
+ throw new ts_common_1.BadImplementationException('Did you forget to add FirebaseModule to the main.ts in the modules array?');
102
121
  if (!config || !config.projectId || !config.apiKey || !config.authDomain)
103
- throw new exceptions_1.BadImplementationException(`Config for key ${projectId} is not an Admin credentials pattern`);
122
+ throw new ts_common_1.BadImplementationException(`Config for key ${projectId} is not an Admin credentials pattern`);
104
123
  }
105
124
  }
106
125
  exports.FirebaseModule_Class = FirebaseModule_Class;
@@ -1 +1 @@
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;IA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AAI,KAAK;gBACR,MAAM,OAAO,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;YAEtC,OAAO,OAAO,CAAC;QAChB,CAAC;KAAA;IAEO,WAAW,CAAC,MAAsB,EAAE,SAAiB;QAC5D,IAAI,CAAC,MAAM;YACV,MAAM,IAAI,sCAA0B,CAAC,2EAA2E,CAAC,CAAC;QAEnH,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,SAAS,IAAI,CAAC,MAAM,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,UAAU;YACvE,MAAM,IAAI,sCAA0B,CAAC,kBAAkB,SAAS,sCAAsC,CAAC,CAAC;IAE1G,CAAC;CACD;AA1GD,oDA0GC;AAEY,QAAA,cAAc,GAAG,IAAI,oBAAoB,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Module } from "@intuitionrobotics/ts-common/core/module";
1
+ import { Module } from "@intuitionrobotics/ts-common";
2
2
  declare class FirebaseAnalyticsModule_Class extends Module {
3
3
  constructor();
4
4
  private analytics?;
@@ -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.FirebaseAnalyticsModule = void 0;
13
- const module_1 = require("@intuitionrobotics/ts-common/core/module");
14
- const exceptions_1 = require("@intuitionrobotics/ts-common/core/exceptions");
30
+ const ts_common_1 = require("@intuitionrobotics/ts-common");
15
31
  const FirebaseModule_1 = require("../FirebaseModule");
16
- class FirebaseAnalyticsModule_Class extends module_1.Module {
32
+ class FirebaseAnalyticsModule_Class extends ts_common_1.Module {
17
33
  constructor() {
18
34
  super("FirebaseAnalyticsModule");
19
35
  this._init = () => __awaiter(this, void 0, void 0, function* () {
@@ -27,12 +43,12 @@ class FirebaseAnalyticsModule_Class extends module_1.Module {
27
43
  }
28
44
  logEvent(eventName, eventParams) {
29
45
  if (!this.analytics)
30
- throw new exceptions_1.ImplementationMissingException('Missing analytics wrapper');
46
+ throw new ts_common_1.ImplementationMissingException('Missing analytics wrapper');
31
47
  return this.analytics.logEvent(eventName, eventParams);
32
48
  }
33
49
  setCurrentScreen(screenName) {
34
50
  if (!this.analytics)
35
- throw new exceptions_1.ImplementationMissingException('Missing analytics wrapper');
51
+ throw new ts_common_1.ImplementationMissingException('Missing analytics wrapper');
36
52
  return this.analytics.setCurrentScreen(screenName);
37
53
  }
38
54
  }
@@ -1 +1 @@
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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CAAC,CAAC;IAChD,CAAC;IASD,QAAQ,CAAC,SAAiB,EAAE,WAAoC;QAC5D,IAAI,CAAC,IAAI,CAAC,SAAS;YACf,MAAM,IAAI,0CAA8B,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,0CAA8B,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/core/logger/Logger";
1
+ import { Logger } from "@intuitionrobotics/ts-common";
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,10 +1,28 @@
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
+ */
2
20
  Object.defineProperty(exports, "__esModule", { value: true });
3
21
  exports.AnalyticsWrapper = void 0;
4
- const Logger_1 = require("@intuitionrobotics/ts-common/core/logger/Logger");
22
+ const ts_common_1 = require("@intuitionrobotics/ts-common");
5
23
  // tslint:disable:no-import-side-effect
6
24
  const analytics_1 = require("firebase/analytics");
7
- class AnalyticsWrapper extends Logger_1.Logger {
25
+ class AnalyticsWrapper extends ts_common_1.Logger {
8
26
  constructor(analytics) {
9
27
  super();
10
28
  this.analytics = analytics;
@@ -1 +1 @@
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
+ {"version":3,"file":"AnalyticsWrapper.js","sourceRoot":"","sources":["../../../src/main/app-frontend/analytics/AnalyticsWrapper.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;AAEH,4DAAoD;AAMpD,uCAAuC;AACvC,kDAM4B;AAE5B,MAAa,gBACZ,SAAQ,kBAAM;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,3 +1,21 @@
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
+ */
2
20
  Object.defineProperty(exports, "__esModule", { value: true });
3
21
  //# 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":";AAAA;;;;;;;;;;;;;;;;;GAiBG"}
@@ -1,10 +1,13 @@
1
+ /**
2
+ * Created by tacb0ss on 19/09/2018.
3
+ */
1
4
  import "firebase/auth";
2
5
  import { FirebaseApp } from "firebase/app";
3
- import { Logger } from "@intuitionrobotics/ts-common/core/logger/Logger";
6
+ import { Logger } from "@intuitionrobotics/ts-common";
7
+ import { FirebaseConfig } from "../../index";
4
8
  import { MessagingWrapper } from "../messaging/MessagingWrapper";
5
9
  import { AnalyticsWrapper } from "../analytics/AnalyticsWrapper";
6
10
  import { DatabaseWrapper } from "../database/DatabaseWrapper";
7
- import { FirebaseConfig } from "../../shared/types";
8
11
  export declare class FirebaseSession extends Logger {
9
12
  app: FirebaseApp;
10
13
  protected config: FirebaseConfig;
@@ -1,4 +1,22 @@
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
+ */
2
20
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
21
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
22
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -10,12 +28,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
28
  };
11
29
  Object.defineProperty(exports, "__esModule", { value: true });
12
30
  exports.FirebaseSession = void 0;
31
+ /**
32
+ * Created by tacb0ss on 19/09/2018.
33
+ */
13
34
  // tslint:disable:no-import-side-effect
14
35
  require("firebase/auth");
15
36
  const auth_1 = require("firebase/auth");
16
37
  const app_1 = require("firebase/app");
17
- const Logger_1 = require("@intuitionrobotics/ts-common/core/logger/Logger");
18
- const exceptions_1 = require("@intuitionrobotics/ts-common/core/exceptions");
38
+ const ts_common_1 = require("@intuitionrobotics/ts-common");
19
39
  const MessagingWrapper_1 = require("../messaging/MessagingWrapper");
20
40
  const AnalyticsWrapper_1 = require("../analytics/AnalyticsWrapper");
21
41
  const DatabaseWrapper_1 = require("../database/DatabaseWrapper");
@@ -23,7 +43,7 @@ const messaging_1 = require("firebase/messaging");
23
43
  const analytics_1 = require("firebase/analytics");
24
44
  const database_1 = require("firebase/database");
25
45
  const firestore_1 = require("firebase/firestore");
26
- class FirebaseSession extends Logger_1.Logger {
46
+ class FirebaseSession extends ts_common_1.Logger {
27
47
  constructor(sessionName, config) {
28
48
  super(`firebase: ${sessionName}`);
29
49
  this.sessionName = sessionName;
@@ -63,9 +83,9 @@ class FirebaseSession extends Logger_1.Logger {
63
83
  }
64
84
  getProjectId() {
65
85
  if (!this.config)
66
- throw new exceptions_1.ThisShouldNotHappenException("Missing config. Probably init not resolved yet!");
86
+ throw new ts_common_1.ThisShouldNotHappenException("Missing config. Probably init not resolved yet!");
67
87
  if (!this.config.projectId)
68
- throw new exceptions_1.ThisShouldNotHappenException("Could not deduce project id from session config.. if you need the functionality.. add it to the config!!");
88
+ throw new ts_common_1.ThisShouldNotHappenException("Could not deduce project id from session config.. if you need the functionality.. add it to the config!!");
69
89
  return this.config.projectId;
70
90
  }
71
91
  }
@@ -1 +1 @@
1
- {"version":3,"file":"FirebaseSession.js","sourceRoot":"","sources":["../../../src/main/app-frontend/auth/FirebaseSession.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAuC;AACvC,yBAAuB;AACvB,wCAAsE;AACtE,sCAAwD;AACxD,4EAAuE;AAEvE,6EAA0F;AAC1F,oEAA+D;AAC/D,oEAA+D;AAC/D,iEAA4D;AAC5D,kDAAgD;AAChD,kDAAgD;AAChD,gDAA8C;AAC9C,kDAAgD;AAGhD,MAAa,eACT,SAAQ,eAAM;IASd,YAAY,WAAmB,EAAE,MAAsB;QACnD,KAAK,CAAC,aAAa,WAAW,EAAE,CAAC,CAAC;QAClC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAEM,OAAO;QACV,IAAI,CAAC,GAAG,GAAG,mBAAa,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IAC5D,CAAC;IAED,YAAY;QACR,IAAI,IAAI,CAAC,SAAS;YACd,OAAO,IAAI,CAAC,SAAS,CAAC;QAE1B,OAAO,IAAI,CAAC,SAAS,GAAG,IAAI,mCAAgB,CAAC,wBAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IACzE,CAAC;IAED,YAAY;QACR,IAAI,IAAI,CAAC,SAAS;YACd,OAAO,IAAI,CAAC,SAAS,CAAC;QAE1B,OAAO,IAAI,CAAC,SAAS,GAAG,IAAI,mCAAgB,CAAC,wBAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IACzE,CAAC;IAED,WAAW;QACP,IAAI,IAAI,CAAC,QAAQ;YACb,OAAO,IAAI,CAAC,QAAQ,CAAC;QAEzB,OAAO,IAAI,CAAC,Q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CAAC,CAAC;QAEpJ,OAAO,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC;IAC9B,CAAC;CACD;AA9DD,0CA8DC"}
@@ -1,6 +1,9 @@
1
+ /**
2
+ * Created by tacb0ss on 19/09/2018.
3
+ */
1
4
  import { FirebaseApp } from "firebase/app";
2
5
  import "firebase/auth";
3
- import { Logger } from "@intuitionrobotics/ts-common/core/logger/Logger";
6
+ import { Logger } from "@intuitionrobotics/ts-common";
4
7
  import { SwMessagingWrapper } from "../messaging/SwMessagingWrapper";
5
8
  export declare class SwFirebaseSession extends Logger {
6
9
  app: FirebaseApp;
@@ -1,12 +1,31 @@
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
+ */
2
20
  Object.defineProperty(exports, "__esModule", { value: true });
3
21
  exports.SwFirebaseSession = void 0;
4
22
  // tslint:disable:no-import-side-effect
5
23
  require("firebase/auth");
6
- const Logger_1 = require("@intuitionrobotics/ts-common/core/logger/Logger");
24
+ const ts_common_1 = require("@intuitionrobotics/ts-common");
25
+ // noinspection TypeScriptPreferShortImport
7
26
  const SwMessagingWrapper_1 = require("../messaging/SwMessagingWrapper");
8
27
  const messaging_1 = require("firebase/messaging");
9
- class SwFirebaseSession extends Logger_1.Logger {
28
+ class SwFirebaseSession extends ts_common_1.Logger {
10
29
  constructor(sessionName, app) {
11
30
  super(`service worker firebase: ${sessionName}`);
12
31
  this.sessionName = sessionName;
@@ -1 +1 @@
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
+ {"version":3,"file":"SwFirebaseSession.js","sourceRoot":"","sources":["../../../src/main/app-frontend/auth/SwFirebaseSession.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;AAMH,uCAAuC;AACvC,yBAAuB;AACvB,4DAAoD;AACpD,2CAA2C;AAC3C,wEAAmE;AACnE,kDAAgD;AAGhD,MAAa,iBACZ,SAAQ,kBAAM;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,4 +1,4 @@
1
- import { Logger } from "@intuitionrobotics/ts-common/core/logger/Logger";
1
+ import { Logger } from "@intuitionrobotics/ts-common";
2
2
  import { FirebaseType_DB } from "./types";
3
3
  export declare class DatabaseWrapper extends Logger {
4
4
  private readonly database;
@@ -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,11 +27,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
27
  };
11
28
  Object.defineProperty(exports, "__esModule", { value: true });
12
29
  exports.DatabaseWrapper = void 0;
13
- const Logger_1 = require("@intuitionrobotics/ts-common/core/logger/Logger");
14
- const exceptions_1 = require("@intuitionrobotics/ts-common/core/exceptions");
30
+ const ts_common_1 = require("@intuitionrobotics/ts-common");
15
31
  // tslint:disable:no-import-side-effect
16
32
  const database_1 = require("firebase/database");
17
- class DatabaseWrapper extends Logger_1.Logger {
33
+ class DatabaseWrapper extends ts_common_1.Logger {
18
34
  constructor(database) {
19
35
  super();
20
36
  this.getRef = (path) => database_1.ref(this.database, path);
@@ -35,7 +51,7 @@ class DatabaseWrapper extends Logger_1.Logger {
35
51
  return database_1.onValue(this.getRef(path), snapshot => {
36
52
  callback(snapshot.val());
37
53
  }, (error) => {
38
- throw new exceptions_1.BadImplementationException(`Error while getting value from path: ${path}`, error);
54
+ throw new ts_common_1.BadImplementationException(`Error while getting value from path: ${path}`, error);
39
55
  }, { onlyOnce: false });
40
56
  }
41
57
  listenWithError(path, callback, errorCallback, onlyOnce = false) {
@@ -49,7 +65,7 @@ class DatabaseWrapper extends Logger_1.Logger {
49
65
  yield database_1.set(this.getRef(path), value);
50
66
  }
51
67
  catch (e) {
52
- throw new exceptions_1.BadImplementationException(`Error while setting value to path: ${path}`);
68
+ throw new ts_common_1.BadImplementationException(`Error while setting value to path: ${path}`);
53
69
  }
54
70
  });
55
71
  }
@@ -66,7 +82,7 @@ class DatabaseWrapper extends Logger_1.Logger {
66
82
  yield database_1.update(this.getRef(path), value);
67
83
  }
68
84
  catch (e) {
69
- throw new exceptions_1.BadImplementationException(`Error while updating value to path: ${path}`);
85
+ throw new ts_common_1.BadImplementationException(`Error while updating value to path: ${path}`);
70
86
  }
71
87
  });
72
88
  }
@@ -80,14 +96,14 @@ class DatabaseWrapper extends Logger_1.Logger {
80
96
  delete(path, assertionRegexp = "^/.*?/.*") {
81
97
  return __awaiter(this, void 0, void 0, function* () {
82
98
  if (!path)
83
- throw new exceptions_1.BadImplementationException(`Falsy value, path: '${path}'`);
99
+ throw new ts_common_1.BadImplementationException(`Falsy value, path: '${path}'`);
84
100
  if (!path.match(new RegExp(assertionRegexp)))
85
- throw new exceptions_1.BadImplementationException(`path: '${path}' does not match assertion: '${assertionRegexp}'`);
101
+ throw new ts_common_1.BadImplementationException(`path: '${path}' does not match assertion: '${assertionRegexp}'`);
86
102
  try {
87
103
  yield database_1.remove(this.getRef(path));
88
104
  }
89
105
  catch (e) {
90
- throw new exceptions_1.BadImplementationException(`Error while removing path: ${path}`);
106
+ throw new ts_common_1.BadImplementationException(`Error while removing path: ${path}`);
91
107
  }
92
108
  });
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AAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QAChC,CAAC;KAAA;IAEY,KAAK,CAAmB,IAAY,EAAE,KAAQ;;YAC1D,IAAI;gBACH,MAAM,iBAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,CAAC;aACvC;YAAC,OAAO,CAAC,EAAE;gBACX,MAAM,IAAI,sCAA0B,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,sCAA0B,CAAC,uBAAuB,IAAI,GAAG,CAAC,CAAC;YAEtE,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,eAAe,CAAC,CAAC;gBAC3C,MAAM,IAAI,sCAA0B,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,sCAA0B,CAAC,8BAA8B,IAAI,EAAE,CAAC,CAAC;aAC3E;QACF,CAAC;KAAA;CACD;AA9ED,0CA8EC"}
@@ -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-frontend/database/types.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/main/app-frontend/database/types.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG"}
@@ -1,4 +1,4 @@
1
- import { Logger } from "@intuitionrobotics/ts-common/core/logger/Logger";
1
+ import { Logger } from "@intuitionrobotics/ts-common";
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,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,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
27
  };
11
28
  Object.defineProperty(exports, "__esModule", { value: true });
12
29
  exports.MessagingWrapper = void 0;
13
- const Logger_1 = require("@intuitionrobotics/ts-common/core/logger/Logger");
30
+ const ts_common_1 = require("@intuitionrobotics/ts-common");
14
31
  const messaging_1 = require("firebase/messaging");
15
- class MessagingWrapper extends Logger_1.Logger {
32
+ class MessagingWrapper extends ts_common_1.Logger {
16
33
  constructor(messaging) {
17
34
  super();
18
35
  this.messaging = messaging;
@@ -1 +1 @@
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
+ {"version":3,"file":"MessagingWrapper.js","sourceRoot":"","sources":["../../../src/main/app-frontend/messaging/MessagingWrapper.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;;AAEH,4DAAoD;AAEpD,kDAA0G;AAE1G,MAAa,gBACZ,SAAQ,kBAAM;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,4 +1,4 @@
1
- import { Logger } from "@intuitionrobotics/ts-common/core/logger/Logger";
1
+ import { Logger } from "@intuitionrobotics/ts-common";
2
2
  import { FirebaseType_Messaging } from "./types";
3
3
  export declare class SwMessagingWrapper extends Logger {
4
4
  private readonly messaging;
@@ -1,9 +1,27 @@
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
+ */
2
20
  Object.defineProperty(exports, "__esModule", { value: true });
3
21
  exports.SwMessagingWrapper = void 0;
4
- const Logger_1 = require("@intuitionrobotics/ts-common/core/logger/Logger");
22
+ const ts_common_1 = require("@intuitionrobotics/ts-common");
5
23
  const sw_1 = require("firebase/messaging/sw");
6
- class SwMessagingWrapper extends Logger_1.Logger {
24
+ class SwMessagingWrapper extends ts_common_1.Logger {
7
25
  constructor(messaging) {
8
26
  super();
9
27
  this.messaging = messaging;
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"SwMessagingWrapper.js","sourceRoot":"","sources":["../../../src/main/app-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