@hyper-fetch/firebase-admin 1.0.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/.eslintrc.json +6 -0
- package/.firebaserc +5 -0
- package/README.md +73 -0
- package/database.rules.json +11 -0
- package/dist/index.cjs.js +704 -0
- package/dist/index.cjs.js.map +7 -0
- package/dist/index.d.ts +257 -0
- package/dist/index.esm.js +685 -0
- package/dist/index.esm.js.map +7 -0
- package/firebase.json +28 -0
- package/firestore.indexes.json +4 -0
- package/firestore.rules +8 -0
- package/package.json +74 -0
- package/src/adapter/adapter.sockets.ts +14 -0
- package/src/adapter/adapter.ts +72 -0
- package/src/adapter/index.ts +3 -0
- package/src/adapter/types/adapter.base.types.ts +15 -0
- package/src/adapter/types/adapter.firestore.types.ts +78 -0
- package/src/adapter/types/adapter.realtime.types.ts +82 -0
- package/src/adapter/types/firestore.socket.types.ts +17 -0
- package/src/adapter/types/index.ts +5 -0
- package/src/adapter/types/realtime.socket.types.ts +17 -0
- package/src/constraints/constraints.types.ts +47 -0
- package/src/constraints/firebase.constraints.ts +117 -0
- package/src/constraints/index.ts +2 -0
- package/src/firestore/firestore.methods.ts +86 -0
- package/src/firestore/firestore.sockets.ts +86 -0
- package/src/firestore/index.ts +3 -0
- package/src/firestore/utils/constraints.utils.ts +51 -0
- package/src/firestore/utils/index.ts +3 -0
- package/src/firestore/utils/ref.utils.ts +19 -0
- package/src/firestore/utils/result.utils.ts +17 -0
- package/src/index.ts +4 -0
- package/src/realtime/index.ts +3 -0
- package/src/realtime/realtime.methods.ts +74 -0
- package/src/realtime/realtime.sockets.ts +95 -0
- package/src/realtime/utils/constraints.utils.ts +54 -0
- package/src/realtime/utils/index.ts +2 -0
- package/src/realtime/utils/result.utils.ts +7 -0
- package/src/utils/cache.utils.ts +33 -0
- package/src/utils/index.ts +2 -0
- package/src/utils/misc.ts +10 -0
- package/test.sh +3 -0
- package/tsconfig.json +8 -0
package/.eslintrc.json
ADDED
package/.firebaserc
ADDED
package/README.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# ๐ฅ Hyper Fetch Firebase Admin
|
|
2
|
+
|
|
3
|
+
<p>
|
|
4
|
+
<a href="https://bettertyped.com/">
|
|
5
|
+
<img src="https://custom-icon-badges.demolab.com/static/v1?label=&message=BetterTyped&color=333&logo=BT" />
|
|
6
|
+
</a>
|
|
7
|
+
<a href="https://github.com/BetterTyped/hyper-fetch">
|
|
8
|
+
<img src="https://custom-icon-badges.demolab.com/github/stars/BetterTyped/hyper-fetch?logo=star&color=118ab2" />
|
|
9
|
+
</a>
|
|
10
|
+
<a href="https://github.com/BetterTyped/hyper-fetch/blob/main/License.md">
|
|
11
|
+
<img src="https://custom-icon-badges.demolab.com/github/license/BetterTyped/hyper-fetch?logo=law&color=yellow" />
|
|
12
|
+
</a>
|
|
13
|
+
<a href="https://www.npmjs.com/package/@hyper-fetch/firebase-admin">
|
|
14
|
+
<img src="https://custom-icon-badges.demolab.com/npm/v/@hyper-fetch/firebase-admin.svg?logo=npm&color=e76f51" />
|
|
15
|
+
</a>
|
|
16
|
+
<a href="https://api.codeclimate.com/v1/badges/eade9435e75ecea0c004/test_coverage">
|
|
17
|
+
<img src="https://api.codeclimate.com/v1/badges/eade9435e75ecea0c004/test_coverage" />
|
|
18
|
+
</a>
|
|
19
|
+
<a href="https://github.com/BetterTyped/hyper-fetch">
|
|
20
|
+
<img src="https://custom-icon-badges.demolab.com/badge/typescript-%23007ACC.svg?logo=typescript&logoColor=white" />
|
|
21
|
+
</a>
|
|
22
|
+
<a href="https://github.com/BetterTyped/hyper-fetch">
|
|
23
|
+
<img src="https://custom-icon-badges.demolab.com/badge/-Firebase-E10098?logo=firebase&logoColor=white" />
|
|
24
|
+
</a>
|
|
25
|
+
<a href="https://www.npmjs.com/package/@hyper-fetch/firebase-admin">
|
|
26
|
+
<img src="https://custom-icon-badges.demolab.com/bundlephobia/minzip/@hyper-fetch/firebase-admin?color=64BC4B&logo=package" />
|
|
27
|
+
</a>
|
|
28
|
+
</p>
|
|
29
|
+
|
|
30
|
+
## About
|
|
31
|
+
|
|
32
|
+
**`Hyper Fetch Firebase Admin`** is adapter for Hyper Fetch. Take advantage of the powerful features and simplicity of
|
|
33
|
+
the first class Firebase adapter for **browser and server**, simplifying the retrieval and manipulation of data. Benefit
|
|
34
|
+
from the convenience and efficiency of Hyper Fetch for your Firebase-powered projects.
|
|
35
|
+
|
|
36
|
+
## Key Features
|
|
37
|
+
|
|
38
|
+
๐ฎ **Simple setup** - [Read more](https://hyperfetch.bettertyped.com/docs/guides/basic/setup)
|
|
39
|
+
|
|
40
|
+
๐ฏ **Request cancellation** - [Read more](https://hyperfetch.bettertyped.com/docs/guides/advanced/cancellation)
|
|
41
|
+
|
|
42
|
+
โจ **Window Focus/Blur Events** -
|
|
43
|
+
[Read more](https://hyperfetch.bettertyped.com/docs/guides/react/core/window-focus-blur)
|
|
44
|
+
|
|
45
|
+
๐ **Queueing** - [Read more](https://hyperfetch.bettertyped.com/docs/guides/advanced/queueing)
|
|
46
|
+
|
|
47
|
+
๐ **Automatic caching** - [Read more](https://hyperfetch.bettertyped.com/docs/documentation/core/cache)
|
|
48
|
+
|
|
49
|
+
๐ช **Persistence** - [Read more](https://hyperfetch.bettertyped.com/docs/guides/advanced/persistence)
|
|
50
|
+
|
|
51
|
+
๐ **SSR Support** - [Read more](https://hyperfetch.bettertyped.com/docs/documentation/getting-started/environment)
|
|
52
|
+
|
|
53
|
+
๐ **Offline First** - [Read more](https://hyperfetch.bettertyped.com/docs/guides/advanced/offline)
|
|
54
|
+
|
|
55
|
+
๐ก **Built-in adapter** - [Read more](https://hyperfetch.bettertyped.com/docs/documentation/core/adapter)
|
|
56
|
+
|
|
57
|
+
๐งช **Easy to test** - [Read more](https://hyperfetch.bettertyped.com/docs/documentation/getting-started/testing)
|
|
58
|
+
|
|
59
|
+
๐ **Authentication** - [Read more](https://hyperfetch.bettertyped.com/docs/guides/basic/authentication)
|
|
60
|
+
|
|
61
|
+
๐ก **Prefetching** - [Read more](https://hyperfetch.bettertyped.com/docs/guides/advanced/prefetching)
|
|
62
|
+
|
|
63
|
+
## Help me keep working on this project โค๏ธ
|
|
64
|
+
|
|
65
|
+
- [Become a Sponsor on GitHub](https://github.com/sponsors/prc5)
|
|
66
|
+
|
|
67
|
+
## Sources
|
|
68
|
+
|
|
69
|
+
- #### [Installation](https://hyperfetch.bettertyped.com/docs/documentation/getting-started/installation)
|
|
70
|
+
- #### [Docs](https://hyperfetch.bettertyped.com/docs/react/overview)
|
|
71
|
+
- #### [API](https://hyperfetch.bettertyped.com/api/)
|
|
72
|
+
- #### [NPM](https://www.npmjs.com/package/@hyper-fetch/firebase)
|
|
73
|
+
- #### [Guides](https://hyperfetch.bettertyped.com/guides/basic/setup)
|