@dereekb/firebase 12.6.20 → 12.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/firebase",
3
- "version": "12.6.20",
3
+ "version": "12.7.0",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./src/index.d.ts",
@@ -226,6 +226,16 @@ export interface SyncAllFlaggedStorageFilesWithGroupsResult {
226
226
  */
227
227
  readonly storageFilesGroupsUpdated: number;
228
228
  }
229
+ export declare class UpdateStorageFileGroupParams extends TargetModelParams {
230
+ /**
231
+ * Entries to update, if selected.
232
+ */
233
+ entries?: Maybe<UpdateStorageFileGroupEntryParams[]>;
234
+ }
235
+ export declare class UpdateStorageFileGroupEntryParams {
236
+ s: StorageFileId;
237
+ n?: Maybe<string>;
238
+ }
229
239
  export declare class RegenerateStorageFileGroupContentParams extends TargetModelParams {
230
240
  /**
231
241
  * If true, will force syncing even if the StorageFile is not flagged for a resync.
@@ -290,6 +300,7 @@ export type StorageFileModelCrudFunctionsConfig = {
290
300
  };
291
301
  storageFileGroup: {
292
302
  update: {
303
+ _: UpdateStorageFileGroupParams;
293
304
  regenerateContent: [RegenerateStorageFileGroupContentParams, RegenerateStorageFileGroupContentResult];
294
305
  };
295
306
  };
@@ -316,6 +327,7 @@ export declare abstract class StorageFileFunctions implements ModelFirebaseFunct
316
327
  };
317
328
  abstract storageFileGroup: {
318
329
  updateStorageFileGroup: {
330
+ update: ModelFirebaseCrudFunction<UpdateStorageFileGroupParams>;
319
331
  regenerateContent: ModelFirebaseCrudFunction<RegenerateStorageFileGroupContentParams, RegenerateStorageFileGroupContentResult>;
320
332
  };
321
333
  };
@@ -32,6 +32,12 @@ export interface CreateStorageFileDocumentPairInput<M extends StorageFileMetadat
32
32
  * File to use when creating the StorageFile.
33
33
  */
34
34
  readonly file?: FirebaseStorageAccessorFile;
35
+ /**
36
+ * The display name of the StorageFile.
37
+ *
38
+ * Corresponds with the "n" value in the StorageFile template.
39
+ */
40
+ readonly displayName?: Maybe<string>;
35
41
  /**
36
42
  * The user that the file is associated with.
37
43
  *
@@ -1,7 +1,7 @@
1
1
  import { type NeedsSyncBoolean, type Maybe } from '@dereekb/util';
2
2
  import { type GrantedReadRole, type GrantedUpdateRole } from '@dereekb/model';
3
3
  import { AbstractFirestoreDocument, type CollectionReference, type FirestoreCollection, type FirestoreContext, type FirebaseAuthUserId, type FirebaseAuthOwnershipKey, type StoragePath, type StorageSignedDownloadUrl, type StorageDownloadUrl, type SavedToFirestoreIfTrue, type OneWayFlatFirestoreModelKey, type FirestoreCollectionModelKey } from '../../common';
4
- import { type StorageFilePurposeSubgroup, type StorageFileGroupId, type StorageFileGroupRelatedStorageFilePurpose, type StorageFileId, type StorageFileMetadata, type StorageFilePurpose } from './storagefile.id';
4
+ import { type StorageFilePurposeSubgroup, type StorageFileGroupId, type StorageFileGroupRelatedStorageFilePurpose, type StorageFileId, type StorageFileMetadata, type StorageFilePurpose, type StorageFileDisplayName } from './storagefile.id';
5
5
  import { type NotificationKey } from '../notification';
6
6
  export declare abstract class StorageFileFirestoreCollections {
7
7
  abstract readonly storageFileCollection: StorageFileFirestoreCollection;
@@ -200,6 +200,13 @@ export interface StorageFile<M extends StorageFileMetadata = StorageFileMetadata
200
200
  * Created at date.
201
201
  */
202
202
  cat: Date;
203
+ /**
204
+ * Arbitrary display name for the file.
205
+ *
206
+ * This name is used in StorageFileGroup composite file generations, instead
207
+ * of the file's normal path file name, if available.
208
+ */
209
+ n?: Maybe<StorageFileDisplayName>;
203
210
  /**
204
211
  * Type of creation.
205
212
  */
@@ -309,6 +316,11 @@ export interface StorageFileGroupEmbeddedFile {
309
316
  * StorageFile id
310
317
  */
311
318
  s: StorageFileId;
319
+ /**
320
+ * Overrides the display name for this file within the group when generating
321
+ * a composite file (zip, etc.).
322
+ */
323
+ n?: Maybe<StorageFileDisplayName>;
312
324
  /**
313
325
  * The time number it was added to the group.
314
326
  */
@@ -1,3 +1,4 @@
1
+ import { type SlashPathUntypedFile } from '@dereekb/util';
1
2
  import { type FlatFirestoreModelKey, inferKeyFromTwoWayFlatFirestoreModelKey, twoWayFlatFirestoreModelKey, type FirestoreModelId, type FirestoreModelKey } from '../../common';
2
3
  export type StorageFileId = FirestoreModelId;
3
4
  export type StorageFileKey = FirestoreModelKey;
@@ -20,6 +21,14 @@ export type StorageFilePurpose = string;
20
21
  * Example use case: Documents with the same StorageFilePurpose/processing, but should only have a single StorageFile per subgroup.
21
22
  */
22
23
  export type StorageFilePurposeSubgroup = string;
24
+ /**
25
+ * Arbitrary untyped name that is attached with a StorageFile.
26
+ *
27
+ * This is an alternate name for the file that can be used for display purposes. It
28
+ * is used within StorageFileGroup's zip file as the primary name. The display name
29
+ * is merged with the StorageFile's file path extension to create the file name.
30
+ */
31
+ export type StorageFileDisplayName = SlashPathUntypedFile;
23
32
  /**
24
33
  * A default constant to use as a default StorageFilePurposeSubgroup value for StorageFiles that have a purpose that defines subgroups.
25
34
  */
package/test/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ # [12.7.0](https://github.com/dereekb/dbx-components/compare/v12.6.21-dev...v12.7.0) (2026-02-20)
6
+
7
+
8
+
9
+ ## [12.6.21](https://github.com/dereekb/dbx-components/compare/v12.6.20-dev...v12.6.21) (2026-02-18)
10
+
11
+
12
+
5
13
  ## [12.6.20](https://github.com/dereekb/dbx-components/compare/v12.6.19-dev...v12.6.20) (2026-02-15)
6
14
 
7
15
 
package/test/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/firebase/test",
3
- "version": "12.6.20",
3
+ "version": "12.7.0",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {
6
6
  "@dereekb/util": "*",