@intuitionrobotics/firebase 0.45.0 → 0.45.3

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 +5 -4
  35. package/app-backend/functions/firebase-function.js +73 -30
  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 +1 -1
  89. package/shared/types.d.ts +4 -1
  90. package/shared/types.js +17 -0
  91. package/shared/types.js.map +1 -1
@@ -1 +1 @@
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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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;A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C,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,MAA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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,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/messaging/types.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/main/app-frontend/messaging/types.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG"}
@@ -0,0 +1 @@
1
+ export * from "./app-backend/functions/firebase-function";
@@ -0,0 +1,31 @@
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
20
+ if (k2 === undefined) k2 = k;
21
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
+ };
29
+ Object.defineProperty(exports, "__esModule", { value: true });
30
+ __exportStar(require("./app-backend/functions/firebase-function"), exports);
31
+ //# sourceMappingURL=backend-functions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"backend-functions.js","sourceRoot":"","sources":["../src/main/backend-functions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;;AAEH,4EAA0D"}
package/backend.d.ts ADDED
@@ -0,0 +1,13 @@
1
+ export * from "./app-backend/auth/firebase-session";
2
+ export * from "./app-backend/auth/FirebaseSession_Admin";
3
+ export * from "./app-backend/FirebaseModule";
4
+ export * from "./app-backend/firestore/FirestoreInterface";
5
+ export * from "./app-backend/firestore/FirestoreCollection";
6
+ export * from "./app-backend/firestore/FirestoreTransaction";
7
+ export * from "./app-backend/firestore/FirestoreWrapper";
8
+ export * from "./app-backend/firestore/types";
9
+ export * from "./app-backend/database/DatabaseWrapper";
10
+ export * from "./app-backend/storage/types";
11
+ export * from "./app-backend/storage/StorageWrapper";
12
+ export * from "./app-backend/push/PushMessagesWrapper";
13
+ export * from "./app-backend/push/types";
package/backend.js ADDED
@@ -0,0 +1,44 @@
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
20
+ if (k2 === undefined) k2 = k;
21
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
+ };
29
+ Object.defineProperty(exports, "__esModule", { value: true });
30
+ __exportStar(require("./app-backend/auth/firebase-session"), exports);
31
+ __exportStar(require("./app-backend/auth/FirebaseSession_Admin"), exports);
32
+ // export * from "./app-backend/auth/FirebaseSession_UserPassword";
33
+ __exportStar(require("./app-backend/FirebaseModule"), exports);
34
+ __exportStar(require("./app-backend/firestore/FirestoreInterface"), exports);
35
+ __exportStar(require("./app-backend/firestore/FirestoreCollection"), exports);
36
+ __exportStar(require("./app-backend/firestore/FirestoreTransaction"), exports);
37
+ __exportStar(require("./app-backend/firestore/FirestoreWrapper"), exports);
38
+ __exportStar(require("./app-backend/firestore/types"), exports);
39
+ __exportStar(require("./app-backend/database/DatabaseWrapper"), exports);
40
+ __exportStar(require("./app-backend/storage/types"), exports);
41
+ __exportStar(require("./app-backend/storage/StorageWrapper"), exports);
42
+ __exportStar(require("./app-backend/push/PushMessagesWrapper"), exports);
43
+ __exportStar(require("./app-backend/push/types"), exports);
44
+ //# sourceMappingURL=backend.js.map
package/backend.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"backend.js","sourceRoot":"","sources":["../src/main/backend.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;;AAEH,sEAAoD;AACpD,2EAAyD;AACzD,mEAAmE;AACnE,+DAA6C;AAC7C,6EAA2D;AAC3D,8EAA4D;AAC5D,+EAA6D;AAC7D,2EAAyD;AACzD,gEAA8C;AAC9C,yEAAuD;AACvD,8DAA4C;AAC5C,uEAAqD;AACrD,yEAAuD;AACvD,2DAAyC"}
package/frontend.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ export * from "./app-frontend/auth/FirebaseSession";
2
+ export * from "./app-frontend/FirebaseModule";
3
+ export * from "./app-frontend/analytics/AnalyticsModule";
4
+ export * from "./app-frontend/messaging/MessagingWrapper";
package/frontend.js ADDED
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ /*
14
+ * Permissions management system, define access level for each of
15
+ * your server apis, and restrict users by giving them access levels
16
+ *
17
+ * Copyright (C) 2020 Intuition Robotics
18
+ *
19
+ * Licensed under the Apache License, Version 2.0 (the "License");
20
+ * you may not use this file except in compliance with the License.
21
+ * You may obtain a copy of the License at
22
+ *
23
+ * http://www.apache.org/licenses/LICENSE-2.0
24
+ *
25
+ * Unless required by applicable law or agreed to in writing, software
26
+ * distributed under the License is distributed on an "AS IS" BASIS,
27
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
28
+ * See the License for the specific language governing permissions and
29
+ * limitations under the License.
30
+ */
31
+ __exportStar(require("./app-frontend/auth/FirebaseSession"), exports);
32
+ __exportStar(require("./app-frontend/FirebaseModule"), exports);
33
+ __exportStar(require("./app-frontend/analytics/AnalyticsModule"), exports);
34
+ __exportStar(require("./app-frontend/messaging/MessagingWrapper"), exports);
35
+ //# sourceMappingURL=frontend.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frontend.js","sourceRoot":"","sources":["../src/main/frontend.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,sEAAoD;AAEpD,gEAA8C;AAC9C,2EAAyD;AACzD,4EAA0D"}
package/index.d.ts CHANGED
@@ -0,0 +1 @@
1
+ export * from "./shared/types";
package/index.js CHANGED
@@ -1,2 +1,31 @@
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
20
+ if (k2 === undefined) k2 = k;
21
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
+ };
29
+ Object.defineProperty(exports, "__esModule", { value: true });
30
+ __exportStar(require("./shared/types"), exports);
2
31
  //# sourceMappingURL=index.js.map
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/main/index.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/main/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;;AAEH,iDAA+B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intuitionrobotics/firebase",
3
- "version": "0.45.0",
3
+ "version": "0.45.3",
4
4
  "description": "Storm - Express & Typescript based backend framework",
5
5
  "keywords": [
6
6
  "IR",
package/shared/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { RequireOptionals, MandatoryKeys, DB_Object } from "@intuitionrobotics/ts-common/utils/types";
1
+ import { RequireOptionals, MandatoryKeys } from "@intuitionrobotics/ts-common";
2
2
  export declare type Firebase_Message = {
3
3
  token?: string;
4
4
  topic?: string;
@@ -16,6 +16,9 @@ export declare type FirebaseConfig = {
16
16
  storageBucket?: string;
17
17
  messagingSenderId: string;
18
18
  };
19
+ export declare type DB_Object = {
20
+ _id: string;
21
+ };
19
22
  declare type Comparator = "in" | "array-contains" | "array-contains-any" | ">" | ">=" | "<" | "<=" | "==";
20
23
  export declare type DB_RequestObject = Partial<DB_Object>;
21
24
  export declare type QueryComparator<T> = {
package/shared/types.js CHANGED
@@ -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.ComparatorMap = void 0;
4
21
  exports.ComparatorMap = {
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/main/shared/types.ts"],"names":[],"mappings":";;;AAyCa,QAAA,aAAa,GAAsD;IAC/E,IAAI,EAAE,QAAQ;IACd,GAAG,EAAE,IAAI;IACT,GAAG,EAAE,gBAAgB;IACrB,IAAI,EAAE,oBAAoB;IAC1B,GAAG,EAAE,GAAG;IACR,IAAI,EAAE,IAAI;IACV,GAAG,EAAE,GAAG;IACR,IAAI,EAAE,IAAI;IACV,GAAG,EAAE,IAAI;IACT,IAAI,EAAE,IAAI;CACV,CAAC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/main/shared/types.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AA8CU,QAAA,aAAa,GAAsD;IAC/E,IAAI,EAAE,QAAQ;IACd,GAAG,EAAE,IAAI;IACT,GAAG,EAAE,gBAAgB;IACrB,IAAI,EAAE,oBAAoB;IAC1B,GAAG,EAAE,GAAG;IACR,IAAI,EAAE,IAAI;IACV,GAAG,EAAE,GAAG;IACR,IAAI,EAAE,IAAI;IACV,GAAG,EAAE,IAAI;IACT,IAAI,EAAE,IAAI;CACV,CAAC"}