@intuitionrobotics/firebase 0.45.1 → 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.
Files changed (91) hide show
  1. package/app-backend/FirebaseModule.d.ts +1 -4
  2. package/app-backend/FirebaseModule.js +11 -28
  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 +2 -19
  6. package/app-backend/auth/FirebaseBaseWrapper.js.map +1 -1
  7. package/app-backend/auth/FirebaseSession_Admin.js +3 -20
  8. package/app-backend/auth/FirebaseSession_Admin.js.map +1 -1
  9. package/app-backend/auth/FirebaseSession_UserPassword.js +0 -22
  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 +2 -19
  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 +10 -26
  16. package/app-backend/database/DatabaseWrapper.js.map +1 -1
  17. package/app-backend/database/types.js +0 -17
  18. package/app-backend/database/types.js.map +1 -1
  19. package/app-backend/firestore/FirestoreCollection.d.ts +4 -6
  20. package/app-backend/firestore/FirestoreCollection.js +7 -22
  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 +10 -25
  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 +6 -22
  27. package/app-backend/firestore/FirestoreTransaction.js.map +1 -1
  28. package/app-backend/firestore/FirestoreV2Collection.js +0 -17
  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 +0 -17
  33. package/app-backend/firestore/types.js.map +1 -1
  34. package/app-backend/functions/firebase-function.d.ts +2 -1
  35. package/app-backend/functions/firebase-function.js +17 -13
  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 +0 -17
  39. package/app-backend/push/PushMessagesWrapper.js.map +1 -1
  40. package/app-backend/push/types.js +0 -17
  41. package/app-backend/push/types.js.map +1 -1
  42. package/app-backend/storage/StorageWrapper.js +8 -24
  43. package/app-backend/storage/StorageWrapper.js.map +1 -1
  44. package/app-backend/storage/types.js +0 -17
  45. package/app-backend/storage/types.js.map +1 -1
  46. package/app-frontend/FirebaseModule.d.ts +2 -5
  47. package/app-frontend/FirebaseModule.js +6 -25
  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 +5 -21
  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 +2 -20
  54. package/app-frontend/analytics/AnalyticsWrapper.js.map +1 -1
  55. package/app-frontend/analytics/types.js +0 -18
  56. package/app-frontend/analytics/types.js.map +1 -1
  57. package/app-frontend/auth/FirebaseSession.d.ts +2 -5
  58. package/app-frontend/auth/FirebaseSession.js +5 -25
  59. package/app-frontend/auth/FirebaseSession.js.map +1 -1
  60. package/app-frontend/auth/SwFirebaseSession.d.ts +1 -4
  61. package/app-frontend/auth/SwFirebaseSession.js +2 -21
  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 +9 -25
  65. package/app-frontend/database/DatabaseWrapper.js.map +1 -1
  66. package/app-frontend/database/types.js +0 -17
  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 +2 -19
  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 +2 -20
  73. package/app-frontend/messaging/SwMessagingWrapper.js.map +1 -1
  74. package/app-frontend/messaging/types.js +0 -17
  75. package/app-frontend/messaging/types.js.map +1 -1
  76. package/index.d.ts +0 -1
  77. package/index.js +0 -29
  78. package/index.js.map +1 -1
  79. package/package.json +3 -3
  80. package/shared/types.d.ts +1 -4
  81. package/shared/types.js +0 -17
  82. package/shared/types.js.map +1 -1
  83. package/backend-functions.d.ts +0 -1
  84. package/backend-functions.js +0 -31
  85. package/backend-functions.js.map +0 -1
  86. package/backend.d.ts +0 -13
  87. package/backend.js +0 -44
  88. package/backend.js.map +0 -1
  89. package/frontend.d.ts +0 -4
  90. package/frontend.js +0 -35
  91. 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-frontend/messaging/types.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/main/app-frontend/messaging/types.ts"],"names":[],"mappings":""}
package/index.d.ts CHANGED
@@ -1 +0,0 @@
1
- export * from "./shared/types";
package/index.js CHANGED
@@ -1,31 +1,2 @@
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);
31
2
  //# 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":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;;AAEH,iDAA+B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/main/index.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intuitionrobotics/firebase",
3
- "version": "0.45.1",
3
+ "version": "0.46.00",
4
4
  "description": "Storm - Express & Typescript based backend framework",
5
5
  "keywords": [
6
6
  "IR",
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@google-cloud/storage": "^6.10.1",
33
- "@intuitionrobotics/ts-common": "~0.45.0",
33
+ "@intuitionrobotics/ts-common": "~0.46.0",
34
34
  "express": "^4.16.4",
35
35
  "firebase": "^10.0.0",
36
36
  "firebase-admin": "^11.10.1",
@@ -38,7 +38,7 @@
38
38
  "fs": "0.0.1-security"
39
39
  },
40
40
  "devDependencies": {
41
- "@intuitionrobotics/testelot": "~0.45.0",
41
+ "@intuitionrobotics/testelot": "~0.46.0",
42
42
  "@types/express": "^4.17.2",
43
43
  "@types/node": "^16.0.0",
44
44
  "ts-node": "^8.6.2",
package/shared/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { RequireOptionals, MandatoryKeys } from "@intuitionrobotics/ts-common";
1
+ import { RequireOptionals, MandatoryKeys, DB_Object } from "@intuitionrobotics/ts-common/utils/types";
2
2
  export declare type Firebase_Message = {
3
3
  token?: string;
4
4
  topic?: string;
@@ -16,9 +16,6 @@ export declare type FirebaseConfig = {
16
16
  storageBucket?: string;
17
17
  messagingSenderId: string;
18
18
  };
19
- export declare type DB_Object = {
20
- _id: string;
21
- };
22
19
  declare type Comparator = "in" | "array-contains" | "array-contains-any" | ">" | ">=" | "<" | "<=" | "==";
23
20
  export declare type DB_RequestObject = Partial<DB_Object>;
24
21
  export declare type QueryComparator<T> = {
package/shared/types.js CHANGED
@@ -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
  Object.defineProperty(exports, "__esModule", { value: true });
20
3
  exports.ComparatorMap = void 0;
21
4
  exports.ComparatorMap = {
@@ -1 +1 @@
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"}
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 +0,0 @@
1
- export * from "./app-backend/functions/firebase-function";
@@ -1,31 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"backend-functions.js","sourceRoot":"","sources":["../src/main/backend-functions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;;AAEH,4EAA0D"}
package/backend.d.ts DELETED
@@ -1,13 +0,0 @@
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 DELETED
@@ -1,44 +0,0 @@
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 DELETED
@@ -1 +0,0 @@
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 DELETED
@@ -1,4 +0,0 @@
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 DELETED
@@ -1,35 +0,0 @@
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
package/frontend.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"frontend.js","sourceRoot":"","sources":["../src/main/frontend.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,sEAAoD;AAEpD,gEAA8C;AAC9C,2EAAyD;AACzD,4EAA0D"}