@hot-updater/supabase 0.12.7 → 0.13.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.
@@ -0,0 +1,17 @@
1
+ import * as _hot_updater_plugin_core from '@hot-updater/plugin-core';
2
+ import { DatabasePluginHooks, StoragePluginHooks, BasePluginArgs, StoragePlugin } from '@hot-updater/plugin-core';
3
+
4
+ interface SupabaseDatabaseConfig {
5
+ supabaseUrl: string;
6
+ supabaseAnonKey: string;
7
+ }
8
+ declare const supabaseDatabase: (config: SupabaseDatabaseConfig, hooks?: DatabasePluginHooks) => (options: _hot_updater_plugin_core.BasePluginArgs) => _hot_updater_plugin_core.DatabasePlugin;
9
+
10
+ interface SupabaseStorageConfig {
11
+ supabaseUrl: string;
12
+ supabaseAnonKey: string;
13
+ bucketName: string;
14
+ }
15
+ declare const supabaseStorage: (config: SupabaseStorageConfig, hooks?: StoragePluginHooks) => (_: BasePluginArgs) => StoragePlugin;
16
+
17
+ export { type SupabaseDatabaseConfig, type SupabaseStorageConfig, supabaseDatabase, supabaseStorage };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,17 @@
1
- export * from "./supabaseDatabase";
2
- export * from "./supabaseStorage";
3
- export * from "./utils";
1
+ import * as _hot_updater_plugin_core from '@hot-updater/plugin-core';
2
+ import { DatabasePluginHooks, StoragePluginHooks, BasePluginArgs, StoragePlugin } from '@hot-updater/plugin-core';
3
+
4
+ interface SupabaseDatabaseConfig {
5
+ supabaseUrl: string;
6
+ supabaseAnonKey: string;
7
+ }
8
+ declare const supabaseDatabase: (config: SupabaseDatabaseConfig, hooks?: DatabasePluginHooks) => (options: _hot_updater_plugin_core.BasePluginArgs) => _hot_updater_plugin_core.DatabasePlugin;
9
+
10
+ interface SupabaseStorageConfig {
11
+ supabaseUrl: string;
12
+ supabaseAnonKey: string;
13
+ bucketName: string;
14
+ }
15
+ declare const supabaseStorage: (config: SupabaseStorageConfig, hooks?: StoragePluginHooks) => (_: BasePluginArgs) => StoragePlugin;
16
+
17
+ export { type SupabaseDatabaseConfig, type SupabaseStorageConfig, supabaseDatabase, supabaseStorage };