@dereekb/firebase 13.1.0 → 13.2.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/index.cjs.js +3 -3
- package/index.cjs.js.map +1 -1
- package/index.esm.js +3 -3
- package/index.esm.js.map +1 -1
- package/package.json +5 -5
- package/src/lib/common/firestore/snapshot/snapshot.field.d.ts +11 -11
- package/test/package.json +6 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/firebase",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.2.0",
|
|
4
4
|
"exports": {
|
|
5
5
|
"./test": {
|
|
6
6
|
"module": "./test/index.esm.js",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@dereekb/date": "13.
|
|
21
|
-
"@dereekb/model": "13.
|
|
22
|
-
"@dereekb/rxjs": "13.
|
|
23
|
-
"@dereekb/util": "13.
|
|
20
|
+
"@dereekb/date": "13.2.0",
|
|
21
|
+
"@dereekb/model": "13.2.0",
|
|
22
|
+
"@dereekb/rxjs": "13.2.0",
|
|
23
|
+
"@dereekb/util": "13.2.0",
|
|
24
24
|
"@firebase/rules-unit-testing": "5.0.0",
|
|
25
25
|
"arktype": "^2.2.0",
|
|
26
26
|
"date-fns": "^4.0.0",
|
|
@@ -183,7 +183,7 @@ export interface OptionalFirestoreFieldConfigWithOneTypeTransform<T> extends Opt
|
|
|
183
183
|
* @param config - Configuration for the optional Firestore field
|
|
184
184
|
* @returns A field mapping configuration for optional values
|
|
185
185
|
*/
|
|
186
|
-
export declare function optionalFirestoreField<V, D>(config?: OptionalFirestoreFieldConfigWithTwoTypeTransform<V, D>):
|
|
186
|
+
export declare function optionalFirestoreField<V, D>(config?: OptionalFirestoreFieldConfigWithTwoTypeTransform<V, D>): FirestoreModelFieldMapFunctionsConfig<Maybe<V>, Maybe<D>>;
|
|
187
187
|
/**
|
|
188
188
|
* Creates a field mapping configuration for optional Firestore fields with same type.
|
|
189
189
|
*
|
|
@@ -193,7 +193,7 @@ export declare function optionalFirestoreField<V, D>(config?: OptionalFirestoreF
|
|
|
193
193
|
* @param config - Configuration for the optional Firestore field
|
|
194
194
|
* @returns A field mapping configuration for optional values
|
|
195
195
|
*/
|
|
196
|
-
export declare function optionalFirestoreField<T>(config?: OptionalFirestoreFieldConfigWithOneTypeTransform<T>):
|
|
196
|
+
export declare function optionalFirestoreField<T>(config?: OptionalFirestoreFieldConfigWithOneTypeTransform<T>): FirestoreModelFieldMapFunctionsConfig<Maybe<T>, Maybe<T>>;
|
|
197
197
|
/**
|
|
198
198
|
* Configuration for a Firestore field with default model value but without conversion functions.
|
|
199
199
|
*
|
|
@@ -262,7 +262,7 @@ export type OptionalFirestoreString<S extends string = string> = OptionalOneType
|
|
|
262
262
|
* @param config - Configuration for the optional string field
|
|
263
263
|
* @returns A field mapping configuration for optional string values
|
|
264
264
|
*/
|
|
265
|
-
export declare function optionalFirestoreString<S extends string = string>(config?: OptionalFirestoreString<S>):
|
|
265
|
+
export declare function optionalFirestoreString<S extends string = string>(config?: OptionalFirestoreString<S>): FirestoreModelFieldMapFunctionsConfig<Maybe<S>, Maybe<S>>;
|
|
266
266
|
/**
|
|
267
267
|
* Configuration for a Firestore enum field.
|
|
268
268
|
*
|
|
@@ -290,7 +290,7 @@ export type OptionalFirestoreEnumConfig<S extends string | number> = OptionalOne
|
|
|
290
290
|
* @param config - Configuration for the optional enum field
|
|
291
291
|
* @returns A field mapping configuration for optional enum values
|
|
292
292
|
*/
|
|
293
|
-
export declare function optionalFirestoreEnum<S extends string | number>(config?: OptionalFirestoreEnumConfig<S>):
|
|
293
|
+
export declare function optionalFirestoreEnum<S extends string | number>(config?: OptionalFirestoreEnumConfig<S>): FirestoreModelFieldMapFunctionsConfig<Maybe<S>, Maybe<S>>;
|
|
294
294
|
/**
|
|
295
295
|
* Creates a field mapping configuration for Firestore UID fields.
|
|
296
296
|
*
|
|
@@ -302,7 +302,7 @@ export declare function firestoreUID(): FirestoreModelFieldMapFunctionsConfig<st
|
|
|
302
302
|
*
|
|
303
303
|
* @returns A field mapping configuration for optional Firebase Auth user IDs
|
|
304
304
|
*/
|
|
305
|
-
export declare function optionalFirestoreUID():
|
|
305
|
+
export declare function optionalFirestoreUID(): FirestoreModelFieldMapFunctionsConfig<Maybe<string>, Maybe<string>>;
|
|
306
306
|
export declare const firestoreModelKeyString: FirestoreModelFieldMapFunctionsConfig<string, string>;
|
|
307
307
|
export declare const firestoreModelIdString: FirestoreModelFieldMapFunctionsConfig<string, string>;
|
|
308
308
|
/**
|
|
@@ -341,7 +341,7 @@ export type OptionalFirestoreDateFieldConfig = OptionalFirestoreFieldConfig<Date
|
|
|
341
341
|
* @param config - Configuration for the optional date field
|
|
342
342
|
* @returns A field mapping configuration for optional Date values
|
|
343
343
|
*/
|
|
344
|
-
export declare function optionalFirestoreDate(config?: OptionalFirestoreDateFieldConfig):
|
|
344
|
+
export declare function optionalFirestoreDate(config?: OptionalFirestoreDateFieldConfig): FirestoreModelFieldMapFunctionsConfig<Maybe<Date>, Maybe<string>>;
|
|
345
345
|
/**
|
|
346
346
|
* Configuration for a Firestore date field that is stored as a number.
|
|
347
347
|
*/
|
|
@@ -381,7 +381,7 @@ export type OptionalFirestoreDateNumberFieldConfig = OptionalFirestoreFieldConfi
|
|
|
381
381
|
* @param config - Configuration for the optional date field
|
|
382
382
|
* @returns A field mapping configuration for optional Date values
|
|
383
383
|
*/
|
|
384
|
-
export declare function optionalFirestoreDateNumber(config: OptionalFirestoreDateNumberFieldConfig):
|
|
384
|
+
export declare function optionalFirestoreDateNumber(config: OptionalFirestoreDateNumberFieldConfig): FirestoreModelFieldMapFunctionsConfig<Maybe<Date>, Maybe<number>>;
|
|
385
385
|
export type FirestoreUnixDateTimeSecondsNumberFieldConfig = Omit<FirestoreDateNumberFieldConfig, 'fromDate' | 'toDate'>;
|
|
386
386
|
/**
|
|
387
387
|
* Creates a field mapping configuration for Firestore Date fields that are stored as a UnixDateTimeSecondsNumber.
|
|
@@ -397,7 +397,7 @@ export type OptionalFirestoreUnixDateTimeSecondsNumberFieldConfig = Omit<Optiona
|
|
|
397
397
|
* @param config - Configuration for the optional date field
|
|
398
398
|
* @returns A field mapping configuration for optional Date values
|
|
399
399
|
*/
|
|
400
|
-
export declare function optionalFirestoreUnixDateTimeSecondsNumber(config?: OptionalFirestoreUnixDateTimeSecondsNumberFieldConfig):
|
|
400
|
+
export declare function optionalFirestoreUnixDateTimeSecondsNumber(config?: OptionalFirestoreUnixDateTimeSecondsNumberFieldConfig): FirestoreModelFieldMapFunctionsConfig<Maybe<Date>, Maybe<number>>;
|
|
401
401
|
/**
|
|
402
402
|
* Configuration for a Firestore boolean field.
|
|
403
403
|
*/
|
|
@@ -419,7 +419,7 @@ export type OptionalFirestoreBooleanFieldConfig = OptionalOneTypeFirestoreFieldC
|
|
|
419
419
|
* @param config - Configuration for the optional boolean field
|
|
420
420
|
* @returns A field mapping configuration for optional boolean values
|
|
421
421
|
*/
|
|
422
|
-
export declare function optionalFirestoreBoolean(config?: OptionalFirestoreBooleanFieldConfig):
|
|
422
|
+
export declare function optionalFirestoreBoolean(config?: OptionalFirestoreBooleanFieldConfig): FirestoreModelFieldMapFunctionsConfig<Maybe<boolean>, Maybe<boolean>>;
|
|
423
423
|
/**
|
|
424
424
|
* Configuration for a Firestore number field with optional transformation.
|
|
425
425
|
*
|
|
@@ -456,7 +456,7 @@ export type OptionalFirestoreNumberFieldConfig<N extends number = number> = Opti
|
|
|
456
456
|
* @param config - Configuration for the optional number field
|
|
457
457
|
* @returns A field mapping configuration for optional number values
|
|
458
458
|
*/
|
|
459
|
-
export declare function optionalFirestoreNumber<N extends number = number>(config?: OptionalFirestoreNumberFieldConfig<N>):
|
|
459
|
+
export declare function optionalFirestoreNumber<N extends number = number>(config?: OptionalFirestoreNumberFieldConfig<N>): FirestoreModelFieldMapFunctionsConfig<Maybe<N>, Maybe<N>>;
|
|
460
460
|
/**
|
|
461
461
|
* Configuration for a Firestore array field with optional sorting.
|
|
462
462
|
*
|
|
@@ -501,7 +501,7 @@ export type OptionalFirestoreArrayFieldConfig<T> = Omit<OptionalFirestoreFieldCo
|
|
|
501
501
|
* @param config - Configuration for the optional array field
|
|
502
502
|
* @returns A field mapping configuration for optional array values
|
|
503
503
|
*/
|
|
504
|
-
export declare function optionalFirestoreArray<T>(config?: OptionalFirestoreArrayFieldConfig<T>):
|
|
504
|
+
export declare function optionalFirestoreArray<T>(config?: OptionalFirestoreArrayFieldConfig<T>): FirestoreModelFieldMapFunctionsConfig<Maybe<T[]>, Maybe<T[]>>;
|
|
505
505
|
/**
|
|
506
506
|
* Configuration for a Firestore array field with unique filtering.
|
|
507
507
|
*
|
package/test/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/firebase/test",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.2.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@dereekb/date": "13.
|
|
6
|
-
"@dereekb/firebase": "13.
|
|
7
|
-
"@dereekb/model": "13.
|
|
8
|
-
"@dereekb/rxjs": "13.
|
|
9
|
-
"@dereekb/util": "13.
|
|
5
|
+
"@dereekb/date": "13.2.0",
|
|
6
|
+
"@dereekb/firebase": "13.2.0",
|
|
7
|
+
"@dereekb/model": "13.2.0",
|
|
8
|
+
"@dereekb/rxjs": "13.2.0",
|
|
9
|
+
"@dereekb/util": "13.2.0",
|
|
10
10
|
"@firebase/rules-unit-testing": "5.0.0",
|
|
11
11
|
"date-fns": "^4.0.0",
|
|
12
12
|
"firebase": "^12.0.0",
|