@hot-updater/firebase 0.36.7 → 1.0.0-rc.1

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/dist/index.d.cts CHANGED
@@ -1,17 +1,21 @@
1
1
  import * as _$_hot_updater_plugin_core0 from "@hot-updater/plugin-core";
2
+ import { StoragePluginWith } from "@hot-updater/plugin-core";
2
3
  import { AppOptions } from "firebase-admin/app";
3
4
 
4
5
  //#region src/firebaseDatabase.d.ts
5
- declare const firebaseDatabase: (config: AppOptions, hooks?: _$_hot_updater_plugin_core0.DatabasePluginHooks) => () => _$_hot_updater_plugin_core0.DatabasePlugin<unknown>;
6
+ type FirebaseDatabaseConfig = AppOptions;
7
+ declare const firebaseDatabase: (config: FirebaseDatabaseConfig) => _$_hot_updater_plugin_core0.DatabasePlugin;
6
8
  //#endregion
7
9
  //#region src/firebaseStorage.d.ts
8
10
  interface FirebaseStorageConfig extends AppOptions {
9
11
  storageBucket: string;
10
- /**
11
- * Base path where bundles will be stored in the bucket
12
- */
12
+ /** Base path where bundles will be stored in the bucket. */
13
13
  basePath?: string;
14
+ /** Optional CDN base URL. Firebase signed URLs are used when omitted. */
15
+ cdnUrl?: string;
16
+ /** Firebase signed URL lifetime in seconds. @default 3600 */
17
+ signedUrlExpiresIn?: number;
14
18
  }
15
- declare const firebaseStorage: (config: FirebaseStorageConfig, hooks?: _$_hot_updater_plugin_core0.StoragePluginHooks) => () => _$_hot_updater_plugin_core0.UniversalStoragePlugin<unknown>;
19
+ declare const firebaseStorage: (config: FirebaseStorageConfig) => StoragePluginWith<"put" | "get" | "getDownloadUrl" | "exists" | "delete">;
16
20
  //#endregion
17
- export { FirebaseStorageConfig, firebaseDatabase, firebaseStorage };
21
+ export { FirebaseDatabaseConfig, FirebaseStorageConfig, firebaseDatabase, firebaseStorage };
package/dist/index.d.mts CHANGED
@@ -1,17 +1,21 @@
1
1
  import * as _$_hot_updater_plugin_core0 from "@hot-updater/plugin-core";
2
+ import { StoragePluginWith } from "@hot-updater/plugin-core";
2
3
  import { AppOptions } from "firebase-admin/app";
3
4
 
4
5
  //#region src/firebaseDatabase.d.ts
5
- declare const firebaseDatabase: (config: AppOptions, hooks?: _$_hot_updater_plugin_core0.DatabasePluginHooks) => () => _$_hot_updater_plugin_core0.DatabasePlugin<unknown>;
6
+ type FirebaseDatabaseConfig = AppOptions;
7
+ declare const firebaseDatabase: (config: FirebaseDatabaseConfig) => _$_hot_updater_plugin_core0.DatabasePlugin;
6
8
  //#endregion
7
9
  //#region src/firebaseStorage.d.ts
8
10
  interface FirebaseStorageConfig extends AppOptions {
9
11
  storageBucket: string;
10
- /**
11
- * Base path where bundles will be stored in the bucket
12
- */
12
+ /** Base path where bundles will be stored in the bucket. */
13
13
  basePath?: string;
14
+ /** Optional CDN base URL. Firebase signed URLs are used when omitted. */
15
+ cdnUrl?: string;
16
+ /** Firebase signed URL lifetime in seconds. @default 3600 */
17
+ signedUrlExpiresIn?: number;
14
18
  }
15
- declare const firebaseStorage: (config: FirebaseStorageConfig, hooks?: _$_hot_updater_plugin_core0.StoragePluginHooks) => () => _$_hot_updater_plugin_core0.UniversalStoragePlugin<unknown>;
19
+ declare const firebaseStorage: (config: FirebaseStorageConfig) => StoragePluginWith<"put" | "get" | "getDownloadUrl" | "exists" | "delete">;
16
20
  //#endregion
17
- export { FirebaseStorageConfig, firebaseDatabase, firebaseStorage };
21
+ export { FirebaseDatabaseConfig, FirebaseStorageConfig, firebaseDatabase, firebaseStorage };