strapi-plugin-firebase-authentication 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.
Files changed (78) hide show
  1. package/LICENSE.md +21 -0
  2. package/README.md +63 -0
  3. package/dist/_chunks/App-CSI6Err4.mjs +5081 -0
  4. package/dist/_chunks/App-ucyQ3wQ0.js +5062 -0
  5. package/dist/_chunks/api-DsC4NiMF.mjs +25 -0
  6. package/dist/_chunks/api-_NrpM6KB.js +24 -0
  7. package/dist/_chunks/en-BRmJb_fY.mjs +18 -0
  8. package/dist/_chunks/en-Blu7bBKM.js +18 -0
  9. package/dist/_chunks/index-BavxEoR2.js +109 -0
  10. package/dist/_chunks/index-C4tASYZr.js +164 -0
  11. package/dist/_chunks/index-D6wh_wve.mjs +110 -0
  12. package/dist/_chunks/index-DJDpecNi.mjs +164 -0
  13. package/dist/admin/index.js +3 -0
  14. package/dist/admin/index.mjs +4 -0
  15. package/dist/admin/src/components/DynamicTable/FirebaseTable.d.ts +12 -0
  16. package/dist/admin/src/components/DynamicTable/FirebaseTableRows/FirebaseTableRows.d.ts +13 -0
  17. package/dist/admin/src/components/DynamicTable/TableHeaders.d.ts +13 -0
  18. package/dist/admin/src/components/Initializer.d.ts +5 -0
  19. package/dist/admin/src/components/PluginIcon.d.ts +2 -0
  20. package/dist/admin/src/components/SearchURLQuery/SearchURLQuery.d.ts +18 -0
  21. package/dist/admin/src/components/UserManagement/DeleteAccount.d.ts +9 -0
  22. package/dist/admin/src/components/UserManagement/ResetPassword.d.ts +8 -0
  23. package/dist/admin/src/hooks/useQueryParams.d.ts +9 -0
  24. package/dist/admin/src/index.d.ts +13 -0
  25. package/dist/admin/src/pages/App.d.ts +3 -0
  26. package/dist/admin/src/pages/HomePage.d.ts +1 -0
  27. package/dist/admin/src/pages/ListView/PaginationFooter/index.d.ts +5 -0
  28. package/dist/admin/src/pages/ListView/index.d.ts +10 -0
  29. package/dist/admin/src/pages/Settings/DeleteJsonConfigurationDialogue.d.ts +7 -0
  30. package/dist/admin/src/pages/Settings/api.d.ts +4 -0
  31. package/dist/admin/src/pages/Settings/index.d.ts +2 -0
  32. package/dist/admin/src/pages/utils/api.d.ts +34 -0
  33. package/dist/admin/src/permissions.d.ts +6 -0
  34. package/dist/admin/src/pluginId.d.ts +2 -0
  35. package/dist/admin/src/services/index.d.ts +1 -0
  36. package/dist/admin/src/utils/getTranslation.d.ts +2 -0
  37. package/dist/admin/src/utils/prefixPluginTranslations.d.ts +2 -0
  38. package/dist/admin/src/utils/provider.d.ts +1 -0
  39. package/dist/model/Meta.d.ts +9 -0
  40. package/dist/model/Request.d.ts +5 -0
  41. package/dist/model/User.d.ts +44 -0
  42. package/dist/server/index.js +25959 -0
  43. package/dist/server/index.mjs +25946 -0
  44. package/dist/server/src/bootstrap.d.ts +5 -0
  45. package/dist/server/src/config/index.d.ts +20 -0
  46. package/dist/server/src/constants/errors.d.ts +3 -0
  47. package/dist/server/src/content-types/index.d.ts +30 -0
  48. package/dist/server/src/controllers/firebase-auth-configuration.d.ts +7 -0
  49. package/dist/server/src/controllers/firebaseController.d.ts +7 -0
  50. package/dist/server/src/controllers/index.d.ts +26 -0
  51. package/dist/server/src/controllers/settingsController.d.ts +9 -0
  52. package/dist/server/src/controllers/userController.d.ts +11 -0
  53. package/dist/server/src/destroy.d.ts +5 -0
  54. package/dist/server/src/firebaseAuth/types.d.ts +4 -0
  55. package/dist/server/src/index.d.ts +176 -0
  56. package/dist/server/src/middlewares/index.d.ts +2 -0
  57. package/dist/server/src/policies/index.d.ts +2 -0
  58. package/dist/server/src/register.d.ts +5 -0
  59. package/dist/server/src/routes/admin.d.ts +12 -0
  60. package/dist/server/src/routes/content-api.d.ts +12 -0
  61. package/dist/server/src/routes/content-internal-api.d.ts +11 -0
  62. package/dist/server/src/routes/firebase-auth-configuration.d.ts +5 -0
  63. package/dist/server/src/routes/index.d.ts +35 -0
  64. package/dist/server/src/routes/settingsRoutes.d.ts +9 -0
  65. package/dist/server/src/services/firebase-auth-configuration.d.ts +7 -0
  66. package/dist/server/src/services/firebaseService.d.ts +29 -0
  67. package/dist/server/src/services/index.d.ts +68 -0
  68. package/dist/server/src/services/settingsService.d.ts +15 -0
  69. package/dist/server/src/services/userService.d.ts +25 -0
  70. package/dist/server/src/utils/check-valid-json.d.ts +2 -0
  71. package/dist/server/src/utils/fetch-me.d.ts +10 -0
  72. package/dist/server/src/utils/get-user-by-id.d.ts +6 -0
  73. package/dist/server/src/utils/index.d.ts +8 -0
  74. package/dist/server/src/utils/paginate.d.ts +12 -0
  75. package/dist/server/src/utils/promiseHandler.d.ts +7 -0
  76. package/dist/server/src/utils/sanitize-user.d.ts +7 -0
  77. package/dist/server/src/utils/users.d.ts +2 -0
  78. package/package.json +93 -0
package/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Behon Baker.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,63 @@
1
+ <img src="/Gen Types Logo.png" style="height: 70px; margin: 0px; border-radius: 12px;" />
2
+
3
+ # Strapi Plugin Gen Types
4
+
5
+ Generate types for the different collections, single types & components found in your application.
6
+
7
+ ![Screenshot of Gen Types UI in Strapi Admin Panel](/screenshot.jpeg)
8
+
9
+ > This plugin is still in development. Please use with caution.
10
+
11
+ > This plugin will not run in production. It is only meant to be used in development.
12
+
13
+ ## Installation
14
+
15
+ ```bash
16
+ yarn add strapi-plugin-firebase-auth
17
+ ```
18
+
19
+ ```bash
20
+ npm install strapi-plugin-firebase-auth
21
+ ```
22
+
23
+ ## Configuration
24
+
25
+ You can configure the plugin by updating the `config/plugins.ts` file in your Strapi project.
26
+
27
+ The following options are available:
28
+
29
+ - `singleFile` - Whether to generate a single file for all types or separate files for each collection. Default: `false`
30
+
31
+ ```typescript
32
+ // config/plugins.ts
33
+ export default ({ env }) => ({
34
+ "firebase-auth": {
35
+ enabled: true,
36
+ config: {
37
+ FIREBASE_JSON_ENCRYPTION_KEY: env("FIREBASE_JSON_ENCRYPTION_KEY", "your-default-key"),
38
+ },
39
+ },
40
+ });
41
+ ```
42
+
43
+ The plugin will generate types for the collections found in the `api` folder of your Strapi project.
44
+
45
+ It will also add a few extra interfaces like `User`, `Role`, `Media` etc.
46
+
47
+ ## Admin UI
48
+
49
+ The plugin will add a new menu item `Generated Types`. This page will show the generated interfaces.
50
+
51
+ You can expand each interface to see the fields and their types.
52
+
53
+ Clicking on the copy button will copy the interface to your clipboard.
54
+
55
+ ## License
56
+
57
+ MIT
58
+
59
+ ## Contributing
60
+
61
+ I am super new to React. I prefer Nuxt. I am not sure if how I implemented the Admin UI is the best way to do it. I would appreciate any help in improving it. Thanks.
62
+
63
+ Just fork the repo and create a PR. I will be happy to merge it.