@dereekb/firebase 10.2.0 → 11.0.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/index.cjs.js +1005 -729
- package/index.esm.js +47 -162
- package/package.json +1 -1
- package/src/lib/client/firestore/driver.accessor.batch.d.ts +2 -2
- package/src/lib/client/firestore/driver.accessor.transaction.d.ts +1 -1
- package/src/lib/client/function/model.function.factory.d.ts +0 -10
- package/src/lib/common/firestore/snapshot/snapshot.field.d.ts +5 -9
- package/src/lib/common/model/function.d.ts +15 -37
- package/src/lib/common/model/model/model.param.d.ts +5 -5
- package/test/CHANGELOG.md +18 -0
- package/test/package.json +1 -1
- package/test/src/lib/client/firebase.js +36 -21
- package/test/src/lib/client/firebase.js.map +1 -1
- package/test/src/lib/common/firebase.instance.js +2 -0
- package/test/src/lib/common/firebase.instance.js.map +1 -1
- package/test/src/lib/common/firestore/firestore.instance.js +1 -0
- package/test/src/lib/common/firestore/firestore.instance.js.map +1 -1
- package/test/src/lib/common/firestore/firestore.js +18 -10
- package/test/src/lib/common/firestore/firestore.js.map +1 -1
- package/test/src/lib/common/firestore/test.driver.accessor.js +273 -277
- package/test/src/lib/common/firestore/test.driver.accessor.js.map +1 -1
- package/test/src/lib/common/firestore/test.driver.query.js +315 -329
- package/test/src/lib/common/firestore/test.driver.query.js.map +1 -1
- package/test/src/lib/common/firestore/test.iterator.js +6 -7
- package/test/src/lib/common/firestore/test.iterator.js.map +1 -1
- package/test/src/lib/common/mock/mock.item.collection.fixture.d.ts +2 -1
- package/test/src/lib/common/mock/mock.item.collection.fixture.js +4 -2
- package/test/src/lib/common/mock/mock.item.collection.fixture.js.map +1 -1
- package/test/src/lib/common/mock/mock.item.service.js +6 -11
- package/test/src/lib/common/mock/mock.item.service.js.map +1 -1
- package/test/src/lib/common/mock/mock.item.storage.fixture.js +2 -1
- package/test/src/lib/common/mock/mock.item.storage.fixture.js.map +1 -1
- package/test/src/lib/common/storage/storage.instance.js +1 -0
- package/test/src/lib/common/storage/storage.instance.js.map +1 -1
- package/test/src/lib/common/storage/storage.js +10 -3
- package/test/src/lib/common/storage/storage.js.map +1 -1
- package/test/src/lib/common/storage/test.driver.accessor.js +132 -133
- package/test/src/lib/common/storage/test.driver.accessor.js.map +1 -1
package/index.esm.js
CHANGED
|
@@ -4393,15 +4393,28 @@ function firestoreFieldConfigToModelMapFunctionsRef(config) {
|
|
|
4393
4393
|
function firestoreObjectArray(config) {
|
|
4394
4394
|
var _objectField, _config$default9;
|
|
4395
4395
|
const {
|
|
4396
|
-
filterUnique: inputFilterUnique
|
|
4396
|
+
filterUnique: inputFilterUnique,
|
|
4397
|
+
filter: filterFn
|
|
4397
4398
|
} = config;
|
|
4398
|
-
const filterUnique = inputFilterUnique != null ? inputFilterUnique : MAP_IDENTITY;
|
|
4399
4399
|
const objectField = (_objectField = config.objectField) != null ? _objectField : firestoreFieldConfigToModelMapFunctionsRef(config.firestoreField);
|
|
4400
4400
|
const sortFn = sortValuesFunctionOrMapIdentityWithSortRef(config);
|
|
4401
4401
|
const {
|
|
4402
4402
|
from,
|
|
4403
4403
|
to: baseTo
|
|
4404
4404
|
} = toModelMapFunctions(objectField);
|
|
4405
|
+
let performFiltering;
|
|
4406
|
+
if (inputFilterUnique != null ? inputFilterUnique : filterFn) {
|
|
4407
|
+
const filterUnique = inputFilterUnique != null ? inputFilterUnique : MAP_IDENTITY;
|
|
4408
|
+
performFiltering = x => {
|
|
4409
|
+
let result = filterUnique(x);
|
|
4410
|
+
if (filterFn) {
|
|
4411
|
+
result = result.filter(filterFn);
|
|
4412
|
+
}
|
|
4413
|
+
return result;
|
|
4414
|
+
};
|
|
4415
|
+
} else {
|
|
4416
|
+
performFiltering = MAP_IDENTITY;
|
|
4417
|
+
}
|
|
4405
4418
|
const to = x => {
|
|
4406
4419
|
// remove null/undefined values from each field when converting to in order to mirror firestore usage (undefined is treated like null)
|
|
4407
4420
|
const base = baseTo(x);
|
|
@@ -4411,9 +4424,9 @@ function firestoreObjectArray(config) {
|
|
|
4411
4424
|
return firestoreField({
|
|
4412
4425
|
default: (_config$default9 = config.default) != null ? _config$default9 : () => [],
|
|
4413
4426
|
defaultBeforeSave: config.defaultBeforeSave,
|
|
4414
|
-
fromData: input => sortFn(
|
|
4427
|
+
fromData: input => sortFn(performFiltering(input.map(x => from(x))), false),
|
|
4415
4428
|
// map then filter then sort
|
|
4416
|
-
toData: input => filterMaybeValues(sortFn(
|
|
4429
|
+
toData: input => filterMaybeValues(sortFn(performFiltering(input), true)).map(x => to(x)) // filter then sort then map
|
|
4417
4430
|
});
|
|
4418
4431
|
}
|
|
4419
4432
|
|
|
@@ -4687,15 +4700,6 @@ function firestoreBitwiseObjectMap(config) {
|
|
|
4687
4700
|
}));
|
|
4688
4701
|
}
|
|
4689
4702
|
|
|
4690
|
-
// MARK: Compat
|
|
4691
|
-
/**
|
|
4692
|
-
* @deprecated use TransformStringFunctionConfigInput instead.
|
|
4693
|
-
*/
|
|
4694
|
-
|
|
4695
|
-
/**
|
|
4696
|
-
* @deprecated use TransformNumberFunctionConfigInput instead.
|
|
4697
|
-
*/
|
|
4698
|
-
|
|
4699
4703
|
function unsupportedFirestoreDriverFunctionError(message) {
|
|
4700
4704
|
throw new Error(message != null ? message : 'This function is not supported by this Firestore driver.');
|
|
4701
4705
|
}
|
|
@@ -5243,7 +5247,7 @@ function makeFirestoreItemPageIteratorDelegate() {
|
|
|
5243
5247
|
} = filter != null ? filter : {};
|
|
5244
5248
|
return prevQueryResult$.pipe(exhaustMap(prevResult => {
|
|
5245
5249
|
if ((prevResult == null ? void 0 : prevResult.snapshot.empty) === true) {
|
|
5246
|
-
// TODO: Shouldn't happen. Remove this later.
|
|
5250
|
+
// TODO(REMOVE): Shouldn't happen. Remove this later.
|
|
5247
5251
|
return of({
|
|
5248
5252
|
end: true
|
|
5249
5253
|
});
|
|
@@ -7255,7 +7259,7 @@ function makeFirestoreCollectionGroup(config) {
|
|
|
7255
7259
|
function makeFirestoreCollectionWithParent(config) {
|
|
7256
7260
|
const result = makeFirestoreCollection(config);
|
|
7257
7261
|
result.parent = config.parent;
|
|
7258
|
-
//
|
|
7262
|
+
// TODO: consider throwing an exception if parent is not provided.
|
|
7259
7263
|
return result;
|
|
7260
7264
|
}
|
|
7261
7265
|
|
|
@@ -7598,6 +7602,7 @@ class WriteBatchFirestoreDocumentContext {
|
|
|
7598
7602
|
constructor(batch) {
|
|
7599
7603
|
this.batch = batch;
|
|
7600
7604
|
this.contextType = FirestoreDocumentContextType.BATCH;
|
|
7605
|
+
this.accessorFactory = void 0;
|
|
7601
7606
|
this.accessorFactory = writeBatchAccessorFactory(this.batch);
|
|
7602
7607
|
}
|
|
7603
7608
|
}
|
|
@@ -7665,6 +7670,7 @@ class TransactionFirestoreDocumentContext {
|
|
|
7665
7670
|
constructor(transaction) {
|
|
7666
7671
|
this.transaction = transaction;
|
|
7667
7672
|
this.contextType = FirestoreDocumentContextType.TRANSACTION;
|
|
7673
|
+
this.accessorFactory = void 0;
|
|
7668
7674
|
this.accessorFactory = transactionAccessorFactory(this.transaction);
|
|
7669
7675
|
}
|
|
7670
7676
|
}
|
|
@@ -7914,6 +7920,21 @@ function onCallTypedModelParamsFunction(call) {
|
|
|
7914
7920
|
};
|
|
7915
7921
|
}
|
|
7916
7922
|
|
|
7923
|
+
/**
|
|
7924
|
+
* Creates OnCallTypedModelParams for the input.
|
|
7925
|
+
*
|
|
7926
|
+
* Convenience function for calling onCallTypedModelParamsFunction and executing it with the input.
|
|
7927
|
+
*
|
|
7928
|
+
* @deprecated Move towards using onCallTypedModelParamsFunction directly with the call type instead of using this function. Will not be removed in the future.
|
|
7929
|
+
*
|
|
7930
|
+
* @param modelType
|
|
7931
|
+
* @param data
|
|
7932
|
+
* @returns
|
|
7933
|
+
*/
|
|
7934
|
+
function onCallTypedModelParams(modelTypeInput, data, specifier, call) {
|
|
7935
|
+
return onCallTypedModelParamsFunction(call)(modelTypeInput, data, specifier);
|
|
7936
|
+
}
|
|
7937
|
+
|
|
7917
7938
|
/**
|
|
7918
7939
|
* Pre-configured OnCallTypedModelParamsFunctions for 'create'
|
|
7919
7940
|
*/
|
|
@@ -7934,19 +7955,6 @@ const onCallUpdateModelParams = onCallTypedModelParamsFunction('update');
|
|
|
7934
7955
|
*/
|
|
7935
7956
|
const onCallDeleteModelParams = onCallTypedModelParamsFunction('delete');
|
|
7936
7957
|
|
|
7937
|
-
/**
|
|
7938
|
-
* Creates a OnCallTypedModelParams
|
|
7939
|
-
*
|
|
7940
|
-
* @deprecated use onCallTypedModelParamsFunction instead.
|
|
7941
|
-
*
|
|
7942
|
-
* @param modelType
|
|
7943
|
-
* @param data
|
|
7944
|
-
* @returns
|
|
7945
|
-
*/
|
|
7946
|
-
function onCallTypedModelParams(modelTypeInput, data, specifier, call) {
|
|
7947
|
-
return onCallTypedModelParamsFunction(call)(modelTypeInput, data, specifier);
|
|
7948
|
-
}
|
|
7949
|
-
|
|
7950
7958
|
/**
|
|
7951
7959
|
* Key used on the front-end and backend that refers to the call function.
|
|
7952
7960
|
*/
|
|
@@ -7979,35 +7987,6 @@ function onCallCreateModelResult(modelKeys) {
|
|
|
7979
7987
|
};
|
|
7980
7988
|
}
|
|
7981
7989
|
|
|
7982
|
-
// MARK: Compat
|
|
7983
|
-
/**
|
|
7984
|
-
* Key used on the front-end and backend that refers to a specific function for creating models.
|
|
7985
|
-
*
|
|
7986
|
-
* @deprecated Replaced by the callModel function.
|
|
7987
|
-
*/
|
|
7988
|
-
const CREATE_MODEL_APP_FUNCTION_KEY = 'createModel';
|
|
7989
|
-
|
|
7990
|
-
/**
|
|
7991
|
-
* Key used on the front-end and backend that refers to a specific function for reading models.
|
|
7992
|
-
*
|
|
7993
|
-
* @deprecated Replaced by the callModel function.
|
|
7994
|
-
*/
|
|
7995
|
-
const READ_MODEL_APP_FUNCTION_KEY = 'readModel';
|
|
7996
|
-
|
|
7997
|
-
/**
|
|
7998
|
-
* Key used on the front-end and backend that refers to a specific function for updating models.
|
|
7999
|
-
*
|
|
8000
|
-
* @deprecated Replaced by the callModel function.
|
|
8001
|
-
*/
|
|
8002
|
-
const UPDATE_MODEL_APP_FUNCTION_KEY = 'updateModel';
|
|
8003
|
-
|
|
8004
|
-
/**
|
|
8005
|
-
* Key used on the front-end and backend that refers to a specific function for deleting models.
|
|
8006
|
-
*
|
|
8007
|
-
* @deprecated Replaced by the callModel function.
|
|
8008
|
-
*/
|
|
8009
|
-
const DELETE_MODEL_APP_FUNCTION_KEY = 'deleteModel';
|
|
8010
|
-
|
|
8011
7990
|
/**
|
|
8012
7991
|
* Used to specify which function to direct requests to.
|
|
8013
7992
|
*/
|
|
@@ -8016,8 +7995,6 @@ const DELETE_MODEL_APP_FUNCTION_KEY = 'deleteModel';
|
|
|
8016
7995
|
* Provides a reference to a ModelFirebaseCrudFunctionSpecifier if available.
|
|
8017
7996
|
*/
|
|
8018
7997
|
|
|
8019
|
-
// TODO: Typings here could potentially be improved to always enforce _ being provided if the passed object is...
|
|
8020
|
-
|
|
8021
7998
|
const MODEL_FUNCTION_FIREBASE_CRUD_FUNCTION_SPECIFIER_DEFAULT = '_';
|
|
8022
7999
|
const MODEL_FUNCTION_FIREBASE_CRUD_FUNCTION_SPECIFIER_SPLITTER = ',';
|
|
8023
8000
|
|
|
@@ -8045,7 +8022,7 @@ function callModelFirebaseFunctionMapFactory(configMap, crudConfigMap) {
|
|
|
8045
8022
|
const _callFn = cachedGetter(() => httpsCallable(functionsInstance, CALL_MODEL_APP_FUNCTION_KEY));
|
|
8046
8023
|
function makeCallFunction(call, fn, modelType, specifier) {
|
|
8047
8024
|
return mapHttpsCallable(fn(), {
|
|
8048
|
-
mapInput: data =>
|
|
8025
|
+
mapInput: data => onCallTypedModelParamsFunction(call)(modelType, data, specifier)
|
|
8049
8026
|
}, true);
|
|
8050
8027
|
}
|
|
8051
8028
|
function makeCallSpecifiers(call, fn, modelType, specifierKeys) {
|
|
@@ -8119,98 +8096,6 @@ function callModelFirebaseFunctionMapFactory(configMap, crudConfigMap) {
|
|
|
8119
8096
|
};
|
|
8120
8097
|
}
|
|
8121
8098
|
|
|
8122
|
-
// MARK: Compat
|
|
8123
|
-
/**
|
|
8124
|
-
* @deprecated move to using callModelFirebaseFunctionMapFactory instead and the call configuration in general.
|
|
8125
|
-
*
|
|
8126
|
-
* This will be removed in the next release.
|
|
8127
|
-
*
|
|
8128
|
-
* @param configMap
|
|
8129
|
-
* @param crudConfigMap
|
|
8130
|
-
* @returns
|
|
8131
|
-
*/
|
|
8132
|
-
function modelFirebaseFunctionMapFactory(configMap, crudConfigMap) {
|
|
8133
|
-
const functionFactory = firebaseFunctionMapFactory(configMap);
|
|
8134
|
-
return functionsInstance => {
|
|
8135
|
-
const functionMap = functionFactory(functionsInstance);
|
|
8136
|
-
const _readFn = cachedGetter(() => httpsCallable(functionsInstance, READ_MODEL_APP_FUNCTION_KEY));
|
|
8137
|
-
const _createFn = cachedGetter(() => httpsCallable(functionsInstance, CREATE_MODEL_APP_FUNCTION_KEY));
|
|
8138
|
-
const _updateFn = cachedGetter(() => httpsCallable(functionsInstance, UPDATE_MODEL_APP_FUNCTION_KEY));
|
|
8139
|
-
const _deleteFn = cachedGetter(() => httpsCallable(functionsInstance, DELETE_MODEL_APP_FUNCTION_KEY));
|
|
8140
|
-
function makeCrudFunction(fn, modelType, specifier) {
|
|
8141
|
-
return mapHttpsCallable(fn(), {
|
|
8142
|
-
mapInput: data => onCallTypedModelParams(modelType, data, specifier)
|
|
8143
|
-
}, true);
|
|
8144
|
-
}
|
|
8145
|
-
function makeCrudSpecifiers(crud, fn, modelType, specifierKeys) {
|
|
8146
|
-
const modelTypeSuffix = capitalizeFirstLetter(modelType);
|
|
8147
|
-
const specifiers = {};
|
|
8148
|
-
specifierKeys.forEach(inputSpecifier => {
|
|
8149
|
-
const specifier = inputSpecifier === MODEL_FUNCTION_FIREBASE_CRUD_FUNCTION_SPECIFIER_DEFAULT ? '' : inputSpecifier;
|
|
8150
|
-
const specifierFn = makeCrudFunction(fn, modelType, inputSpecifier);
|
|
8151
|
-
const fullSpecifierName = `${crud}${modelTypeSuffix}${capitalizeFirstLetter(specifier)}`;
|
|
8152
|
-
specifiers[fullSpecifierName] = specifierFn;
|
|
8153
|
-
const shortSpecifierName = lowercaseFirstLetter(specifier) || crud;
|
|
8154
|
-
specifiers[shortSpecifierName] = specifierFn;
|
|
8155
|
-
});
|
|
8156
|
-
return specifiers;
|
|
8157
|
-
}
|
|
8158
|
-
const result = build({
|
|
8159
|
-
base: functionMap,
|
|
8160
|
-
build: x => {
|
|
8161
|
-
Object.entries(crudConfigMap).forEach(([modelType, config]) => {
|
|
8162
|
-
const modelTypeSuffix = capitalizeFirstLetter(modelType);
|
|
8163
|
-
const {
|
|
8164
|
-
included: crudFunctionKeys,
|
|
8165
|
-
excluded: specifiedCrudFunctionKeys
|
|
8166
|
-
} = separateValues(config, x => x.indexOf(':') === -1);
|
|
8167
|
-
const crudFunctions = new Set(crudFunctionKeys);
|
|
8168
|
-
const specifiedCrudFunctionTuples = specifiedCrudFunctionKeys.map(x => {
|
|
8169
|
-
const [crud, functionsSplit] = x.split(':', 2);
|
|
8170
|
-
const functions = functionsSplit.split(MODEL_FUNCTION_FIREBASE_CRUD_FUNCTION_SPECIFIER_SPLITTER);
|
|
8171
|
-
return [crud, functions];
|
|
8172
|
-
});
|
|
8173
|
-
|
|
8174
|
-
// check that there isn't a repeat crud key configured, which disallowed configuration and would cause some functions to be ignored
|
|
8175
|
-
const encounteredCruds = new Set();
|
|
8176
|
-
function assertCrudKeyNotEncountered(crud) {
|
|
8177
|
-
if (encounteredCruds.has(crud)) {
|
|
8178
|
-
throw new Error(`Cannot have multiple declarations of the same crud. Found repeat for crud: ${crud}`);
|
|
8179
|
-
} else {
|
|
8180
|
-
encounteredCruds.add(crud);
|
|
8181
|
-
}
|
|
8182
|
-
}
|
|
8183
|
-
crudFunctions.forEach(assertCrudKeyNotEncountered);
|
|
8184
|
-
specifiedCrudFunctionTuples.forEach(([crud]) => assertCrudKeyNotEncountered(crud));
|
|
8185
|
-
|
|
8186
|
-
// build and add the functions
|
|
8187
|
-
const specifierFunctions = new Map(specifiedCrudFunctionTuples);
|
|
8188
|
-
function addFunctions(crud, fn, modelType) {
|
|
8189
|
-
let crudFns;
|
|
8190
|
-
if (crudFunctions.has(crud)) {
|
|
8191
|
-
crudFns = makeCrudFunction(fn, modelType);
|
|
8192
|
-
} else if (specifierFunctions.has(crud)) {
|
|
8193
|
-
crudFns = makeCrudSpecifiers(crud, fn, modelType, specifierFunctions.get(crud));
|
|
8194
|
-
}
|
|
8195
|
-
if (crudFns) {
|
|
8196
|
-
modelTypeCruds[`${crud}${modelTypeSuffix}`] = crudFns;
|
|
8197
|
-
}
|
|
8198
|
-
}
|
|
8199
|
-
const modelTypeCruds = {};
|
|
8200
|
-
addFunctions('create', _createFn, modelType);
|
|
8201
|
-
addFunctions('read', _readFn, modelType);
|
|
8202
|
-
addFunctions('update', _updateFn, modelType);
|
|
8203
|
-
addFunctions('delete', _deleteFn, modelType);
|
|
8204
|
-
|
|
8205
|
-
// tslint:disable-next-line
|
|
8206
|
-
x[modelType] = modelTypeCruds;
|
|
8207
|
-
});
|
|
8208
|
-
}
|
|
8209
|
-
});
|
|
8210
|
-
return result;
|
|
8211
|
-
};
|
|
8212
|
-
}
|
|
8213
|
-
|
|
8214
8099
|
// MARK: Function
|
|
8215
8100
|
/**
|
|
8216
8101
|
* Used to specify which function to direct requests to.
|
|
@@ -8530,7 +8415,7 @@ let ScheduledFunctionDevelopmentFirebaseFunctionParams = (_dec$1 = Expose(), _de
|
|
|
8530
8415
|
class ScheduledFunctionDevelopmentFirebaseFunctionListEntry {
|
|
8531
8416
|
constructor() {
|
|
8532
8417
|
this.name = void 0;
|
|
8533
|
-
} // TODO: Add priority to use for choosing execution order.
|
|
8418
|
+
} // TODO(FUTURE): Add priority to use for choosing execution order, probably with the move to v2 scheduled functions.
|
|
8534
8419
|
}
|
|
8535
8420
|
/**
|
|
8536
8421
|
* Key used on the front-end and backend that refers to the specifier for the scheduled functions access.
|
|
@@ -8620,20 +8505,20 @@ var _dec, _dec2, _dec3, _dec4, _class, _descriptor, _dec5, _dec6, _dec7, _dec8,
|
|
|
8620
8505
|
/**
|
|
8621
8506
|
* Simple annotated params that implements FirestoreModelKeyRef.
|
|
8622
8507
|
*/
|
|
8623
|
-
let TargetModelParams = (_dec = Expose(), _dec2 = IsNotEmpty(), _dec3 = IsFirestoreModelKey(), _dec4 = Reflect.metadata("design:type",
|
|
8508
|
+
let TargetModelParams = (_dec = Expose(), _dec2 = IsNotEmpty(), _dec3 = IsFirestoreModelKey(), _dec4 = Reflect.metadata("design:type", typeof FirestoreModelKey === "undefined" ? Object : FirestoreModelKey), (_class = class TargetModelParams {
|
|
8624
8509
|
constructor() {
|
|
8625
8510
|
_initializerDefineProperty(this, "key", _descriptor, this);
|
|
8626
|
-
}
|
|
8511
|
+
}
|
|
8627
8512
|
}, (_descriptor = _applyDecoratedDescriptor(_class.prototype, "key", [_dec, _dec2, _dec3, _dec4], {
|
|
8628
8513
|
configurable: true,
|
|
8629
8514
|
enumerable: true,
|
|
8630
8515
|
writable: true,
|
|
8631
8516
|
initializer: null
|
|
8632
8517
|
})), _class));
|
|
8633
|
-
let InferredTargetModelParams = (_dec5 = Expose(), _dec6 = IsOptional(), _dec7 = IsNotEmpty(), _dec8 = IsFirestoreModelKey(), _dec9 = Reflect.metadata("design:type",
|
|
8518
|
+
let InferredTargetModelParams = (_dec5 = Expose(), _dec6 = IsOptional(), _dec7 = IsNotEmpty(), _dec8 = IsFirestoreModelKey(), _dec9 = Reflect.metadata("design:type", typeof FirestoreModelKey === "undefined" ? Object : FirestoreModelKey), (_class2 = class InferredTargetModelParams {
|
|
8634
8519
|
constructor() {
|
|
8635
8520
|
_initializerDefineProperty(this, "key", _descriptor2, this);
|
|
8636
|
-
}
|
|
8521
|
+
}
|
|
8637
8522
|
}, (_descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "key", [_dec5, _dec6, _dec7, _dec8, _dec9], {
|
|
8638
8523
|
configurable: true,
|
|
8639
8524
|
enumerable: true,
|
|
@@ -8644,20 +8529,20 @@ let InferredTargetModelParams = (_dec5 = Expose(), _dec6 = IsOptional(), _dec7 =
|
|
|
8644
8529
|
/**
|
|
8645
8530
|
* Simple annotated params that implements FirestoreModelKeyRef but key is a FirestoreModelId.
|
|
8646
8531
|
*/
|
|
8647
|
-
let TargetModelIdParams = (_dec10 = Expose(), _dec11 = IsNotEmpty(), _dec12 = IsFirestoreModelId(), _dec13 = Reflect.metadata("design:type",
|
|
8532
|
+
let TargetModelIdParams = (_dec10 = Expose(), _dec11 = IsNotEmpty(), _dec12 = IsFirestoreModelId(), _dec13 = Reflect.metadata("design:type", typeof FirestoreModelKey === "undefined" ? Object : FirestoreModelKey), (_class3 = class TargetModelIdParams {
|
|
8648
8533
|
constructor() {
|
|
8649
8534
|
_initializerDefineProperty(this, "key", _descriptor3, this);
|
|
8650
|
-
}
|
|
8535
|
+
}
|
|
8651
8536
|
}, (_descriptor3 = _applyDecoratedDescriptor(_class3.prototype, "key", [_dec10, _dec11, _dec12, _dec13], {
|
|
8652
8537
|
configurable: true,
|
|
8653
8538
|
enumerable: true,
|
|
8654
8539
|
writable: true,
|
|
8655
8540
|
initializer: null
|
|
8656
8541
|
})), _class3));
|
|
8657
|
-
let InferredTargetModelIdParams = (_dec14 = Expose(), _dec15 = IsOptional(), _dec16 = IsNotEmpty(), _dec17 = IsFirestoreModelId(), _dec18 = Reflect.metadata("design:type",
|
|
8542
|
+
let InferredTargetModelIdParams = (_dec14 = Expose(), _dec15 = IsOptional(), _dec16 = IsNotEmpty(), _dec17 = IsFirestoreModelId(), _dec18 = Reflect.metadata("design:type", typeof FirestoreModelKey === "undefined" ? Object : FirestoreModelKey), (_class4 = class InferredTargetModelIdParams {
|
|
8658
8543
|
constructor() {
|
|
8659
8544
|
_initializerDefineProperty(this, "key", _descriptor4, this);
|
|
8660
|
-
}
|
|
8545
|
+
}
|
|
8661
8546
|
}, (_descriptor4 = _applyDecoratedDescriptor(_class4.prototype, "key", [_dec14, _dec15, _dec16, _dec17, _dec18], {
|
|
8662
8547
|
configurable: true,
|
|
8663
8548
|
enumerable: true,
|
|
@@ -9416,4 +9301,4 @@ function systemStateFirestoreCollection(firestoreContext, converters) {
|
|
|
9416
9301
|
});
|
|
9417
9302
|
}
|
|
9418
9303
|
|
|
9419
|
-
export { AbstractFirestoreDocument, AbstractFirestoreDocumentDataAccessorWrapper, AbstractFirestoreDocumentWithParent, BASE_MODEL_STORAGE_FILE_PATH, CALL_MODEL_APP_FUNCTION_KEY, COPY_USER_RELATED_DATA_ACCESSOR_FACTORY_FUNCTION, CREATE_MODEL_APP_FUNCTION_KEY, ContextGrantedModelRolesReaderInstance, DEFAULT_DATE_CELL_RANGE_VALUE, DEFAULT_FIRESTORE_DATE_CELL_SCHEDULE_VALUE, DEFAULT_FIRESTORE_ITEM_PAGE_ITERATOR_ITEMS_PER_PAGE, DEFAULT_FIRESTORE_STRING_FIELD_VALUE, DEFAULT_FIRESTORE_UNITED_STATES_ADDRESS_VALUE, DEFAULT_FIRESTORE_WEBSITE_FILE_LINK_VALUE, DEFAULT_ITERATE_FIRESTORE_DOCUMENT_SNAPSHOT_BATCHES_BATCH_SIZE, DEFAULT_QUERY_CHANGE_WATCHER_DELAY, DEFAULT_SINGLE_ITEM_FIRESTORE_COLLECTION_DOCUMENT_IDENTIFIER, DEFAULT_WEBSITE_LINK, DELETE_MODEL_APP_FUNCTION_KEY, FIREBASE_AUTH_NETWORK_REQUEST_ERROR, FIREBASE_AUTH_NETWORK_REQUEST_FAILED, FIREBASE_AUTH_PASSWORD_MAX_LENGTH, FIREBASE_AUTH_PASSWORD_MIN_LENGTH, FIREBASE_AUTH_USER_NOT_FOUND_ERROR, FIREBASE_AUTH_WRONG_PASSWORD, FIREBASE_DEVELOPMENT_FUNCTIONS_MAP_KEY, FIREBASE_SERVER_AUTH_CLAIMS_RESET_LAST_COM_DATE_KEY, FIREBASE_SERVER_AUTH_CLAIMS_RESET_PASSWORD_KEY, FIREBASE_SERVER_AUTH_CLAIMS_SETUP_LAST_COM_DATE_KEY, FIREBASE_SERVER_AUTH_CLAIMS_SETUP_PASSWORD_KEY, FIRESTORE_CLIENT_QUERY_CONSTRAINT_HANDLER_MAPPING, FIRESTORE_COLLECTION_NAME_SEPARATOR, FIRESTORE_DUMMY_MODEL_KEY, FIRESTORE_EMPTY_VALUE, FIRESTORE_END_AT_QUERY_CONSTRAINT_TYPE, FIRESTORE_END_AT_VALUE_QUERY_CONSTRAINT_TYPE, FIRESTORE_END_BEFORE_QUERY_CONSTRAINT_TYPE, FIRESTORE_ITEM_PAGE_ITERATOR, FIRESTORE_ITEM_PAGE_ITERATOR_DELEGATE, FIRESTORE_LIMIT_QUERY_CONSTRAINT_TYPE, FIRESTORE_LIMIT_TO_LAST_QUERY_CONSTRAINT_TYPE, FIRESTORE_MAX_WHERE_IN_FILTER_ARGS_COUNT, FIRESTORE_MODEL_ID_REGEX, FIRESTORE_MODEL_KEY_REGEX, FIRESTORE_MODEL_KEY_REGEX_STRICT, FIRESTORE_OFFSET_QUERY_CONSTRAINT_TYPE, FIRESTORE_ORDER_BY_DOCUMENT_ID_QUERY_CONSTRAINT_TYPE, FIRESTORE_ORDER_BY_QUERY_CONSTRAINT_TYPE, FIRESTORE_PASSTHROUGH_FIELD, FIRESTORE_START_AFTER_QUERY_CONSTRAINT_TYPE, FIRESTORE_START_AT_QUERY_CONSTRAINT_TYPE, FIRESTORE_START_AT_VALUE_QUERY_CONSTRAINT_TYPE, FIRESTORE_WHERE_DOCUMENT_ID_QUERY_CONSTRAINT_TYPE, FIRESTORE_WHERE_QUERY_CONSTRAINT_TYPE, FirebaseDevelopmentFunctions, FirebaseModelPermissionServiceInstance, FirebaseServerError, FirestoreAccessorStreamMode, FirestoreDocumentContextType, FirestoreItemPageIterationInstance, InferredTargetModelIdParams, InferredTargetModelParams, IsFirestoreModelId, IsFirestoreModelIdOrKey, IsFirestoreModelKey, MAX_FIRESTORE_MAP_ZOOM_LEVEL_VALUE, MIN_FIRESTORE_MAP_ZOOM_LEVEL_VALUE, MODEL_FUNCTION_FIREBASE_CRUD_FUNCTION_SPECIFIER_DEFAULT, MODEL_FUNCTION_FIREBASE_CRUD_FUNCTION_SPECIFIER_SPLITTER, MODEL_STORAGE_FILE_SLASH_PATH_FACTORY, ModifyBeforeSetFirestoreDocumentDataAccessorWrapper, READ_MODEL_APP_FUNCTION_KEY, RUN_DEV_FUNCTION_APP_FUNCTION_KEY, SCHEDULED_FUNCTION_DEV_FUNCTION_SPECIFIER, ScheduledFunctionDevelopmentFirebaseFunctionListEntry, ScheduledFunctionDevelopmentFirebaseFunctionParams, ScheduledFunctionDevelopmentFunctionTypeEnum, SystemStateDocument, SystemStateFirestoreCollections, TargetModelIdParams, TargetModelParams, UPDATE_MODEL_APP_FUNCTION_KEY, addConstraintToBuilder, addOrReplaceLimitInConstraints, allChildDocumentsUnderParent, allChildDocumentsUnderParentPath, allChildDocumentsUnderRelativePath, allowDocumentSnapshotWithPathOnceFilter, asTopLevelFieldPath, asTopLevelFieldPaths, assertFirestoreUpdateHasData, assertStorageUploadOptionsStringFormat, assignDateCellRangeFunction, assignDateCellScheduleFunction, assignUnitedStatesAddressFunction, assignWebsiteFileLinkFunction, assignWebsiteLinkFunction, buildFirebaseCollectionTypeModelTypeMap, callModelFirebaseFunctionMapFactory, childFirestoreModelKey, childFirestoreModelKeyPath, childFirestoreModelKeys, clientFirebaseFirestoreContextFactory, clientFirebaseStorageContextFactory, contextGrantedModelRolesReader, contextGrantedModelRolesReaderDoesNotExistErrorMessage, contextGrantedModelRolesReaderPermissionErrorMessage, convertHttpsCallableErrorToReadableError, copyDocumentIdForUserRelatedModifierFunction, copyDocumentIdToFieldModifierFunction, copyUserRelatedDataAccessorFactoryFunction, copyUserRelatedDataModifierConfig, dataFromDocumentSnapshots, dataFromSnapshotStream, developmentFirebaseFunctionMapFactory, directDataHttpsCallable, documentData, documentDataFunction, documentDataWithIdAndKey, documentReferenceFromDocument, documentReferencesFromDocuments, documentReferencesFromSnapshot, endAt, endAtValue, endBefore, extendFirestoreCollectionWithSingleDocumentAccessor, filterConstraintsOfType, filterDisallowedFirestoreItemPageIteratorInputContraints, filterRepeatCheckpointSnapshots, filterWithDateRange, firebaseAuthErrorToReadableError, firebaseFirestoreClientDrivers, firebaseFirestoreQueryConstraintFunctionsDriver, firebaseFirestoreQueryDriver, firebaseFunctionMapFactory, firebaseModelLoader, firebaseModelPermissionService, firebaseModelService, firebaseModelServiceFactory, firebaseModelsService, firebaseQueryItemAccumulator, firebaseQuerySnapshotAccumulator, firebaseStorageBucketFolderPath, firebaseStorageClientAccessorDriver, firebaseStorageClientAccessorFile, firebaseStorageClientAccessorFolder, firebaseStorageClientDrivers, firebaseStorageClientListFilesResultFactory, firebaseStorageContextFactory, firebaseStorageFileExists, firebaseStorageFilePathFromStorageFilePath, firebaseStorageRefForStorageFilePath, firestoreArray, firestoreArrayMap, firestoreBitwiseObjectMap, firestoreBitwiseSet, firestoreBitwiseSetMap, firestoreBoolean, firestoreClientAccessorDriver, firestoreClientIncrementUpdateToUpdateData, firestoreCollectionQueryFactory, firestoreContextFactory, firestoreDate, firestoreDateCellRange, firestoreDateCellRangeArray, firestoreDateCellRangeAssignFn, firestoreDateCellSchedule, firestoreDateCellScheduleAssignFn, firestoreDencoderArray, firestoreDencoderMap, firestoreDencoderStringArray, firestoreDocumentAccessorContextExtension, firestoreDocumentAccessorFactory, firestoreDocumentLoader, firestoreDocumentSnapshotPairsLoader, firestoreDocumentSnapshotPairsLoaderInstance, firestoreDummyKey, firestoreEncodedArray, firestoreEncodedObjectMap, firestoreEnum, firestoreEnumArray, firestoreField, firestoreFieldConfigToModelMapFunctionsRef, firestoreIdBatchVerifierFactory, firestoreIdentityTypeArray, firestoreIdentityTypeArrayName, firestoreItemPageIteration, firestoreItemPageIterationFactory, firestoreLatLngString, firestoreMap, firestoreMapZoomLevel, firestoreModelId, firestoreModelIdArrayField, firestoreModelIdFromDocument, firestoreModelIdGrantedRoleArrayMap, firestoreModelIdGrantedRoleMap, firestoreModelIdString, firestoreModelIdentity, firestoreModelIdentityTypeMap, firestoreModelIdsFromDocuments, firestoreModelIdsFromKey, firestoreModelKey, firestoreModelKeyArrayField, firestoreModelKeyCollectionName, firestoreModelKeyCollectionType, firestoreModelKeyCollectionTypeArray, firestoreModelKeyCollectionTypeArrayName, firestoreModelKeyCollectionTypePair, firestoreModelKeyEncodedGrantedRoleMap, firestoreModelKeyFromDocument, firestoreModelKeyGrantedRoleArrayMap, firestoreModelKeyGrantedRoleMap, firestoreModelKeyPairObject, firestoreModelKeyParentKey, firestoreModelKeyParentKeyPartPairs, firestoreModelKeyPart, firestoreModelKeyPartPairs, firestoreModelKeyPartPairsKeyPath, firestoreModelKeyPartPairsPaths, firestoreModelKeyPath, firestoreModelKeyString, firestoreModelKeyTypePair, firestoreModelKeys, firestoreModelKeysFromDocuments, firestoreModelType, firestoreNumber, firestoreObjectArray, firestorePassThroughField, firestoreQueryConstraint, firestoreQueryConstraintFactory, firestoreQueryDocumentSnapshotPairsLoader, firestoreQueryFactory, firestoreSingleDocumentAccessor, firestoreString, firestoreSubObject, firestoreTimezoneString, firestoreUID, firestoreUniqueArray, firestoreUniqueKeyedArray, firestoreUniqueNumberArray, firestoreUniqueStringArray, firestoreUnitedStatesAddress, firestoreUnitedStatesAddressAssignFn, firestoreUpdateWithNoDataError, firestoreWebsiteFileLink, firestoreWebsiteFileLinkAssignFn, firestoreWebsiteFileLinkEncodedArray, firestoreWebsiteFileLinkObjectArray, firestoreWebsiteLink, firestoreWebsiteLinkArray, firestoreWebsiteLinkAssignFn, flatFirestoreModelKey, getDataFromDocumentSnapshots, getDocumentSnapshotData, getDocumentSnapshotDataPair, getDocumentSnapshotDataPairs, getDocumentSnapshotDataTuples, getDocumentSnapshotPair, getDocumentSnapshotPairs, getDocumentSnapshots, getDocumentSnapshotsData, grantFullAccessIfAdmin, grantFullAccessIfAuthUserRelated, grantModelRolesIfAdmin, grantModelRolesIfAdminFunction, grantModelRolesIfAuthUserRelatedModelFunction, grantModelRolesIfFunction, grantModelRolesIfHasAuthRolesFactory, grantModelRolesIfHasAuthRolesFunction, grantModelRolesOnlyIfFunction, inContextFirebaseModelServiceFactory, inContextFirebaseModelsServiceFactory, incrementUpdateWithAccessorFunction, inferKeyFromTwoWayFlatFirestoreModelKey, interceptAccessorFactoryFunction, isAdminInFirebaseModelContext, isFirebaseStorageObjectNotFoundError, isFirestoreModelId, isFirestoreModelIdOrKey, isFirestoreModelKey, isOwnerOfUserRelatedModelInFirebaseModelContext, iterateFirestoreDocumentSnapshotBatches, iterateFirestoreDocumentSnapshotCheckpoints, iterateFirestoreDocumentSnapshotPairBatches, iterateFirestoreDocumentSnapshotPairs, iterateFirestoreDocumentSnapshots, iterationQueryDocChangeWatcher, iterationQueryDocChangeWatcherChangeTypeForGroup, latestDataFromDocuments, latestSnapshotsFromDocuments, lazyFirebaseFunctionsFactory, limit, limitToLast, limitedFirestoreDocumentAccessorFactory, loadAllFirestoreDocumentSnapshot, loadAllFirestoreDocumentSnapshotPairs, loadDocumentsForDocumentReferences, loadDocumentsForDocumentReferencesFromValues, loadDocumentsForIds, loadDocumentsForIdsFromValues, loadDocumentsForKeys, loadDocumentsForKeysFromValues, loadDocumentsForSnapshots, loadDocumentsForValues, makeDocuments, makeFirestoreCollection, makeFirestoreCollectionGroup, makeFirestoreCollectionWithParent, makeFirestoreItemPageIteratorDelegate, makeFirestoreQueryConstraintFunctionsDriver, makeRootSingleItemFirestoreCollection, makeSingleItemFirestoreCollection, mapDataFromSnapshot, mapHttpsCallable, modelFirebaseFunctionMapFactory, modelStorageSlashPathFactory, modifyBeforeSetInterceptAccessorFactoryFunction, newDocuments, noStringFormatInStorageUploadOptionsError, offset, onCallCreateModelParams, onCallCreateModelResult, onCallCreateModelResultWithDocs, onCallDeleteModelParams, onCallDevelopmentParams, onCallReadModelParams, onCallTypedModelParams, onCallTypedModelParamsFunction, onCallUpdateModelParams, optionalFirestoreArray, optionalFirestoreBoolean, optionalFirestoreDate, optionalFirestoreEnum, optionalFirestoreField, optionalFirestoreNumber, optionalFirestoreString, optionalFirestoreUID, optionalFirestoreUnitedStatesAddress, orderBy, orderByDocumentId, readFirestoreModelKey, readFirestoreModelKeyFromDocumentSnapshot, replaceConstraints, selectFromFirebaseModelsService, separateConstraints, setIdAndKeyFromKeyIdRefOnDocumentData, setIdAndKeyFromSnapshotOnDocumentData, snapshotConverterFunctions, snapshotStreamDataForAccessor, snapshotStreamForAccessor, startAfter, startAt, startAtValue, storageListFilesResultFactory, storageListFilesResultHasNoNextError, storagePathFactory, streamFromOnSnapshot, systemStateCollectionReference, systemStateConverter, systemStateFirestoreCollection, systemStateIdentity, twoWayFlatFirestoreModelKey, unsupportedFirestoreDriverFunctionError, updateWithAccessorUpdateAndConverterFunction, useContextAuth, useContextAuthUid, useDocumentSnapshot, useDocumentSnapshotData, useFirebaseModelsService, where, whereDateIsAfter, whereDateIsAfterWithSort, whereDateIsBefore, whereDateIsBeforeWithSort, whereDateIsBetween, whereDateIsInRange, whereDateIsOnOrAfter, whereDateIsOnOrAfterWithSort, whereDateIsOnOrBefore, whereDateIsOnOrBeforeWithSort, whereDocumentId, whereStringHasRootIdentityModelKey, whereStringValueHasPrefix };
|
|
9304
|
+
export { AbstractFirestoreDocument, AbstractFirestoreDocumentDataAccessorWrapper, AbstractFirestoreDocumentWithParent, BASE_MODEL_STORAGE_FILE_PATH, CALL_MODEL_APP_FUNCTION_KEY, COPY_USER_RELATED_DATA_ACCESSOR_FACTORY_FUNCTION, ContextGrantedModelRolesReaderInstance, DEFAULT_DATE_CELL_RANGE_VALUE, DEFAULT_FIRESTORE_DATE_CELL_SCHEDULE_VALUE, DEFAULT_FIRESTORE_ITEM_PAGE_ITERATOR_ITEMS_PER_PAGE, DEFAULT_FIRESTORE_STRING_FIELD_VALUE, DEFAULT_FIRESTORE_UNITED_STATES_ADDRESS_VALUE, DEFAULT_FIRESTORE_WEBSITE_FILE_LINK_VALUE, DEFAULT_ITERATE_FIRESTORE_DOCUMENT_SNAPSHOT_BATCHES_BATCH_SIZE, DEFAULT_QUERY_CHANGE_WATCHER_DELAY, DEFAULT_SINGLE_ITEM_FIRESTORE_COLLECTION_DOCUMENT_IDENTIFIER, DEFAULT_WEBSITE_LINK, FIREBASE_AUTH_NETWORK_REQUEST_ERROR, FIREBASE_AUTH_NETWORK_REQUEST_FAILED, FIREBASE_AUTH_PASSWORD_MAX_LENGTH, FIREBASE_AUTH_PASSWORD_MIN_LENGTH, FIREBASE_AUTH_USER_NOT_FOUND_ERROR, FIREBASE_AUTH_WRONG_PASSWORD, FIREBASE_DEVELOPMENT_FUNCTIONS_MAP_KEY, FIREBASE_SERVER_AUTH_CLAIMS_RESET_LAST_COM_DATE_KEY, FIREBASE_SERVER_AUTH_CLAIMS_RESET_PASSWORD_KEY, FIREBASE_SERVER_AUTH_CLAIMS_SETUP_LAST_COM_DATE_KEY, FIREBASE_SERVER_AUTH_CLAIMS_SETUP_PASSWORD_KEY, FIRESTORE_CLIENT_QUERY_CONSTRAINT_HANDLER_MAPPING, FIRESTORE_COLLECTION_NAME_SEPARATOR, FIRESTORE_DUMMY_MODEL_KEY, FIRESTORE_EMPTY_VALUE, FIRESTORE_END_AT_QUERY_CONSTRAINT_TYPE, FIRESTORE_END_AT_VALUE_QUERY_CONSTRAINT_TYPE, FIRESTORE_END_BEFORE_QUERY_CONSTRAINT_TYPE, FIRESTORE_ITEM_PAGE_ITERATOR, FIRESTORE_ITEM_PAGE_ITERATOR_DELEGATE, FIRESTORE_LIMIT_QUERY_CONSTRAINT_TYPE, FIRESTORE_LIMIT_TO_LAST_QUERY_CONSTRAINT_TYPE, FIRESTORE_MAX_WHERE_IN_FILTER_ARGS_COUNT, FIRESTORE_MODEL_ID_REGEX, FIRESTORE_MODEL_KEY_REGEX, FIRESTORE_MODEL_KEY_REGEX_STRICT, FIRESTORE_OFFSET_QUERY_CONSTRAINT_TYPE, FIRESTORE_ORDER_BY_DOCUMENT_ID_QUERY_CONSTRAINT_TYPE, FIRESTORE_ORDER_BY_QUERY_CONSTRAINT_TYPE, FIRESTORE_PASSTHROUGH_FIELD, FIRESTORE_START_AFTER_QUERY_CONSTRAINT_TYPE, FIRESTORE_START_AT_QUERY_CONSTRAINT_TYPE, FIRESTORE_START_AT_VALUE_QUERY_CONSTRAINT_TYPE, FIRESTORE_WHERE_DOCUMENT_ID_QUERY_CONSTRAINT_TYPE, FIRESTORE_WHERE_QUERY_CONSTRAINT_TYPE, FirebaseDevelopmentFunctions, FirebaseModelPermissionServiceInstance, FirebaseServerError, FirestoreAccessorStreamMode, FirestoreDocumentContextType, FirestoreItemPageIterationInstance, InferredTargetModelIdParams, InferredTargetModelParams, IsFirestoreModelId, IsFirestoreModelIdOrKey, IsFirestoreModelKey, MAX_FIRESTORE_MAP_ZOOM_LEVEL_VALUE, MIN_FIRESTORE_MAP_ZOOM_LEVEL_VALUE, MODEL_FUNCTION_FIREBASE_CRUD_FUNCTION_SPECIFIER_DEFAULT, MODEL_FUNCTION_FIREBASE_CRUD_FUNCTION_SPECIFIER_SPLITTER, MODEL_STORAGE_FILE_SLASH_PATH_FACTORY, ModifyBeforeSetFirestoreDocumentDataAccessorWrapper, RUN_DEV_FUNCTION_APP_FUNCTION_KEY, SCHEDULED_FUNCTION_DEV_FUNCTION_SPECIFIER, ScheduledFunctionDevelopmentFirebaseFunctionListEntry, ScheduledFunctionDevelopmentFirebaseFunctionParams, ScheduledFunctionDevelopmentFunctionTypeEnum, SystemStateDocument, SystemStateFirestoreCollections, TargetModelIdParams, TargetModelParams, addConstraintToBuilder, addOrReplaceLimitInConstraints, allChildDocumentsUnderParent, allChildDocumentsUnderParentPath, allChildDocumentsUnderRelativePath, allowDocumentSnapshotWithPathOnceFilter, asTopLevelFieldPath, asTopLevelFieldPaths, assertFirestoreUpdateHasData, assertStorageUploadOptionsStringFormat, assignDateCellRangeFunction, assignDateCellScheduleFunction, assignUnitedStatesAddressFunction, assignWebsiteFileLinkFunction, assignWebsiteLinkFunction, buildFirebaseCollectionTypeModelTypeMap, callModelFirebaseFunctionMapFactory, childFirestoreModelKey, childFirestoreModelKeyPath, childFirestoreModelKeys, clientFirebaseFirestoreContextFactory, clientFirebaseStorageContextFactory, contextGrantedModelRolesReader, contextGrantedModelRolesReaderDoesNotExistErrorMessage, contextGrantedModelRolesReaderPermissionErrorMessage, convertHttpsCallableErrorToReadableError, copyDocumentIdForUserRelatedModifierFunction, copyDocumentIdToFieldModifierFunction, copyUserRelatedDataAccessorFactoryFunction, copyUserRelatedDataModifierConfig, dataFromDocumentSnapshots, dataFromSnapshotStream, developmentFirebaseFunctionMapFactory, directDataHttpsCallable, documentData, documentDataFunction, documentDataWithIdAndKey, documentReferenceFromDocument, documentReferencesFromDocuments, documentReferencesFromSnapshot, endAt, endAtValue, endBefore, extendFirestoreCollectionWithSingleDocumentAccessor, filterConstraintsOfType, filterDisallowedFirestoreItemPageIteratorInputContraints, filterRepeatCheckpointSnapshots, filterWithDateRange, firebaseAuthErrorToReadableError, firebaseFirestoreClientDrivers, firebaseFirestoreQueryConstraintFunctionsDriver, firebaseFirestoreQueryDriver, firebaseFunctionMapFactory, firebaseModelLoader, firebaseModelPermissionService, firebaseModelService, firebaseModelServiceFactory, firebaseModelsService, firebaseQueryItemAccumulator, firebaseQuerySnapshotAccumulator, firebaseStorageBucketFolderPath, firebaseStorageClientAccessorDriver, firebaseStorageClientAccessorFile, firebaseStorageClientAccessorFolder, firebaseStorageClientDrivers, firebaseStorageClientListFilesResultFactory, firebaseStorageContextFactory, firebaseStorageFileExists, firebaseStorageFilePathFromStorageFilePath, firebaseStorageRefForStorageFilePath, firestoreArray, firestoreArrayMap, firestoreBitwiseObjectMap, firestoreBitwiseSet, firestoreBitwiseSetMap, firestoreBoolean, firestoreClientAccessorDriver, firestoreClientIncrementUpdateToUpdateData, firestoreCollectionQueryFactory, firestoreContextFactory, firestoreDate, firestoreDateCellRange, firestoreDateCellRangeArray, firestoreDateCellRangeAssignFn, firestoreDateCellSchedule, firestoreDateCellScheduleAssignFn, firestoreDencoderArray, firestoreDencoderMap, firestoreDencoderStringArray, firestoreDocumentAccessorContextExtension, firestoreDocumentAccessorFactory, firestoreDocumentLoader, firestoreDocumentSnapshotPairsLoader, firestoreDocumentSnapshotPairsLoaderInstance, firestoreDummyKey, firestoreEncodedArray, firestoreEncodedObjectMap, firestoreEnum, firestoreEnumArray, firestoreField, firestoreFieldConfigToModelMapFunctionsRef, firestoreIdBatchVerifierFactory, firestoreIdentityTypeArray, firestoreIdentityTypeArrayName, firestoreItemPageIteration, firestoreItemPageIterationFactory, firestoreLatLngString, firestoreMap, firestoreMapZoomLevel, firestoreModelId, firestoreModelIdArrayField, firestoreModelIdFromDocument, firestoreModelIdGrantedRoleArrayMap, firestoreModelIdGrantedRoleMap, firestoreModelIdString, firestoreModelIdentity, firestoreModelIdentityTypeMap, firestoreModelIdsFromDocuments, firestoreModelIdsFromKey, firestoreModelKey, firestoreModelKeyArrayField, firestoreModelKeyCollectionName, firestoreModelKeyCollectionType, firestoreModelKeyCollectionTypeArray, firestoreModelKeyCollectionTypeArrayName, firestoreModelKeyCollectionTypePair, firestoreModelKeyEncodedGrantedRoleMap, firestoreModelKeyFromDocument, firestoreModelKeyGrantedRoleArrayMap, firestoreModelKeyGrantedRoleMap, firestoreModelKeyPairObject, firestoreModelKeyParentKey, firestoreModelKeyParentKeyPartPairs, firestoreModelKeyPart, firestoreModelKeyPartPairs, firestoreModelKeyPartPairsKeyPath, firestoreModelKeyPartPairsPaths, firestoreModelKeyPath, firestoreModelKeyString, firestoreModelKeyTypePair, firestoreModelKeys, firestoreModelKeysFromDocuments, firestoreModelType, firestoreNumber, firestoreObjectArray, firestorePassThroughField, firestoreQueryConstraint, firestoreQueryConstraintFactory, firestoreQueryDocumentSnapshotPairsLoader, firestoreQueryFactory, firestoreSingleDocumentAccessor, firestoreString, firestoreSubObject, firestoreTimezoneString, firestoreUID, firestoreUniqueArray, firestoreUniqueKeyedArray, firestoreUniqueNumberArray, firestoreUniqueStringArray, firestoreUnitedStatesAddress, firestoreUnitedStatesAddressAssignFn, firestoreUpdateWithNoDataError, firestoreWebsiteFileLink, firestoreWebsiteFileLinkAssignFn, firestoreWebsiteFileLinkEncodedArray, firestoreWebsiteFileLinkObjectArray, firestoreWebsiteLink, firestoreWebsiteLinkArray, firestoreWebsiteLinkAssignFn, flatFirestoreModelKey, getDataFromDocumentSnapshots, getDocumentSnapshotData, getDocumentSnapshotDataPair, getDocumentSnapshotDataPairs, getDocumentSnapshotDataTuples, getDocumentSnapshotPair, getDocumentSnapshotPairs, getDocumentSnapshots, getDocumentSnapshotsData, grantFullAccessIfAdmin, grantFullAccessIfAuthUserRelated, grantModelRolesIfAdmin, grantModelRolesIfAdminFunction, grantModelRolesIfAuthUserRelatedModelFunction, grantModelRolesIfFunction, grantModelRolesIfHasAuthRolesFactory, grantModelRolesIfHasAuthRolesFunction, grantModelRolesOnlyIfFunction, inContextFirebaseModelServiceFactory, inContextFirebaseModelsServiceFactory, incrementUpdateWithAccessorFunction, inferKeyFromTwoWayFlatFirestoreModelKey, interceptAccessorFactoryFunction, isAdminInFirebaseModelContext, isFirebaseStorageObjectNotFoundError, isFirestoreModelId, isFirestoreModelIdOrKey, isFirestoreModelKey, isOwnerOfUserRelatedModelInFirebaseModelContext, iterateFirestoreDocumentSnapshotBatches, iterateFirestoreDocumentSnapshotCheckpoints, iterateFirestoreDocumentSnapshotPairBatches, iterateFirestoreDocumentSnapshotPairs, iterateFirestoreDocumentSnapshots, iterationQueryDocChangeWatcher, iterationQueryDocChangeWatcherChangeTypeForGroup, latestDataFromDocuments, latestSnapshotsFromDocuments, lazyFirebaseFunctionsFactory, limit, limitToLast, limitedFirestoreDocumentAccessorFactory, loadAllFirestoreDocumentSnapshot, loadAllFirestoreDocumentSnapshotPairs, loadDocumentsForDocumentReferences, loadDocumentsForDocumentReferencesFromValues, loadDocumentsForIds, loadDocumentsForIdsFromValues, loadDocumentsForKeys, loadDocumentsForKeysFromValues, loadDocumentsForSnapshots, loadDocumentsForValues, makeDocuments, makeFirestoreCollection, makeFirestoreCollectionGroup, makeFirestoreCollectionWithParent, makeFirestoreItemPageIteratorDelegate, makeFirestoreQueryConstraintFunctionsDriver, makeRootSingleItemFirestoreCollection, makeSingleItemFirestoreCollection, mapDataFromSnapshot, mapHttpsCallable, modelStorageSlashPathFactory, modifyBeforeSetInterceptAccessorFactoryFunction, newDocuments, noStringFormatInStorageUploadOptionsError, offset, onCallCreateModelParams, onCallCreateModelResult, onCallCreateModelResultWithDocs, onCallDeleteModelParams, onCallDevelopmentParams, onCallReadModelParams, onCallTypedModelParams, onCallTypedModelParamsFunction, onCallUpdateModelParams, optionalFirestoreArray, optionalFirestoreBoolean, optionalFirestoreDate, optionalFirestoreEnum, optionalFirestoreField, optionalFirestoreNumber, optionalFirestoreString, optionalFirestoreUID, optionalFirestoreUnitedStatesAddress, orderBy, orderByDocumentId, readFirestoreModelKey, readFirestoreModelKeyFromDocumentSnapshot, replaceConstraints, selectFromFirebaseModelsService, separateConstraints, setIdAndKeyFromKeyIdRefOnDocumentData, setIdAndKeyFromSnapshotOnDocumentData, snapshotConverterFunctions, snapshotStreamDataForAccessor, snapshotStreamForAccessor, startAfter, startAt, startAtValue, storageListFilesResultFactory, storageListFilesResultHasNoNextError, storagePathFactory, streamFromOnSnapshot, systemStateCollectionReference, systemStateConverter, systemStateFirestoreCollection, systemStateIdentity, twoWayFlatFirestoreModelKey, unsupportedFirestoreDriverFunctionError, updateWithAccessorUpdateAndConverterFunction, useContextAuth, useContextAuthUid, useDocumentSnapshot, useDocumentSnapshotData, useFirebaseModelsService, where, whereDateIsAfter, whereDateIsAfterWithSort, whereDateIsBefore, whereDateIsBeforeWithSort, whereDateIsBetween, whereDateIsInRange, whereDateIsOnOrAfter, whereDateIsOnOrAfterWithSort, whereDateIsOnOrBefore, whereDateIsOnOrBeforeWithSort, whereDocumentId, whereStringHasRootIdentityModelKey, whereStringValueHasPrefix };
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type DocumentReference, type WriteBatch as FirebaseFirestoreWriteBatch } from 'firebase/firestore';
|
|
2
|
-
import { type FirestoreDocumentContext, type UpdateData, type WithFieldValue, FirestoreDocumentContextType, type FirestoreDocumentDataAccessor, type FirestoreDocumentDataAccessorFactory, type SetOptions } from '../../common/firestore';
|
|
2
|
+
import { type FirestoreDocumentContext, type UpdateData, type DocumentData, type WithFieldValue, FirestoreDocumentContextType, type FirestoreDocumentDataAccessor, type FirestoreDocumentDataAccessorFactory, type SetOptions } from '../../common/firestore';
|
|
3
3
|
import { DefaultFirestoreDocumentDataAccessor } from './driver.accessor.default';
|
|
4
4
|
/**
|
|
5
5
|
* FirestoreDocumentDataAccessor implementation for a batch.
|
|
@@ -21,7 +21,7 @@ export declare function writeBatchAccessorFactory<T>(writeBatch: FirebaseFiresto
|
|
|
21
21
|
export declare class WriteBatchFirestoreDocumentContext<T> implements FirestoreDocumentContext<T> {
|
|
22
22
|
readonly batch: FirebaseFirestoreWriteBatch;
|
|
23
23
|
readonly contextType = FirestoreDocumentContextType.BATCH;
|
|
24
|
-
readonly accessorFactory: FirestoreDocumentDataAccessorFactory<T,
|
|
24
|
+
readonly accessorFactory: FirestoreDocumentDataAccessorFactory<T, DocumentData>;
|
|
25
25
|
constructor(batch: FirebaseFirestoreWriteBatch);
|
|
26
26
|
}
|
|
27
27
|
export declare function writeBatchDocumentContext<T>(batch: FirebaseFirestoreWriteBatch): WriteBatchFirestoreDocumentContext<T>;
|
|
@@ -28,7 +28,7 @@ export declare function transactionAccessorFactory<T>(transaction: FirebaseFires
|
|
|
28
28
|
export declare class TransactionFirestoreDocumentContext<T> implements FirestoreDocumentContext<T> {
|
|
29
29
|
readonly transaction: FirebaseFirestoreTransaction;
|
|
30
30
|
readonly contextType = FirestoreDocumentContextType.TRANSACTION;
|
|
31
|
-
readonly accessorFactory: FirestoreDocumentDataAccessorFactory<T
|
|
31
|
+
readonly accessorFactory: FirestoreDocumentDataAccessorFactory<T>;
|
|
32
32
|
constructor(transaction: FirebaseFirestoreTransaction);
|
|
33
33
|
}
|
|
34
34
|
export declare function transactionDocumentContext<T>(transaction: FirebaseFirestoreTransaction): TransactionFirestoreDocumentContext<T>;
|
|
@@ -85,13 +85,3 @@ export type ModelFirebaseFunctionMapFactory<M extends FirebaseFunctionTypeMap, U
|
|
|
85
85
|
* @returns
|
|
86
86
|
*/
|
|
87
87
|
export declare function callModelFirebaseFunctionMapFactory<M extends FirebaseFunctionTypeMap, U extends ModelFirebaseCrudFunctionTypeMap>(configMap: FirebaseFunctionTypeConfigMap<M>, crudConfigMap: ModelFirebaseCrudFunctionConfigMap<U, FirestoreModelIdentity>): ModelFirebaseFunctionMapFactory<M, U>;
|
|
88
|
-
/**
|
|
89
|
-
* @deprecated move to using callModelFirebaseFunctionMapFactory instead and the call configuration in general.
|
|
90
|
-
*
|
|
91
|
-
* This will be removed in the next release.
|
|
92
|
-
*
|
|
93
|
-
* @param configMap
|
|
94
|
-
* @param crudConfigMap
|
|
95
|
-
* @returns
|
|
96
|
-
*/
|
|
97
|
-
export declare function modelFirebaseFunctionMapFactory<M extends FirebaseFunctionTypeMap, U extends ModelFirebaseCrudFunctionTypeMap>(configMap: FirebaseFunctionTypeConfigMap<M>, crudConfigMap: ModelFirebaseCrudFunctionConfigMap<U, FirestoreModelIdentity>): ModelFirebaseFunctionMapFactory<M, U>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type WebsiteLink, type GrantedRole, type WebsiteFileLink } from '@dereekb/model';
|
|
2
2
|
import { type DateCellRange, type DateCellSchedule } from '@dereekb/date';
|
|
3
|
-
import { type ModelFieldMapFunctionsConfig, type GetterOrValue, type Maybe, type ModelFieldMapConvertFunction, type PrimativeKey, type ReadKeyFunction, type ModelFieldMapFunctionsWithDefaultsConfig, type FilterUniqueStringsTransformConfig, type MapFunction, type FilterKeyValueTuplesInput, type ModelKey, type ToModelMapFunctionsInput, type ModelMapFunctionsRef, type LatLngPrecision, type LatLngString, type TimezoneString, type PrimativeKeyStringDencoderFunction, type PrimativeKeyDencoderFunction, type UnitedStatesAddress, type ZoomLevel, type FilterUniqueFunction, type BitwiseEncodedSet, type BitwiseObjectDencoder, type SortCompareFunctionRef, type TransformNumberFunctionConfigInput, type TransformStringFunctionConfigInput, type DecisionFunction, type ISO8601DateString } from '@dereekb/util';
|
|
3
|
+
import { type ModelFieldMapFunctionsConfig, type GetterOrValue, type Maybe, type ModelFieldMapConvertFunction, type PrimativeKey, type ReadKeyFunction, type ModelFieldMapFunctionsWithDefaultsConfig, type FilterUniqueStringsTransformConfig, type MapFunction, type FilterKeyValueTuplesInput, type ModelKey, type ToModelMapFunctionsInput, type ModelMapFunctionsRef, type LatLngPrecision, type LatLngString, type TimezoneString, type PrimativeKeyStringDencoderFunction, type PrimativeKeyDencoderFunction, type UnitedStatesAddress, type ZoomLevel, type FilterUniqueFunction, type BitwiseEncodedSet, type BitwiseObjectDencoder, type SortCompareFunctionRef, type TransformNumberFunctionConfigInput, type TransformStringFunctionConfigInput, type DecisionFunction, type ISO8601DateString, type FilterFunction } from '@dereekb/util';
|
|
4
4
|
import { type FirestoreModelData } from './snapshot.type';
|
|
5
5
|
export interface BaseFirestoreFieldConfig<V, D = unknown> {
|
|
6
6
|
fromData: ModelFieldMapConvertFunction<D, V>;
|
|
@@ -330,6 +330,10 @@ export type FirestoreObjectArrayFieldConfig<T extends object, O extends object =
|
|
|
330
330
|
* Filters the objects array uniquely.
|
|
331
331
|
*/
|
|
332
332
|
readonly filterUnique?: FilterUniqueFunction<T, any>;
|
|
333
|
+
/**
|
|
334
|
+
* Arbitrary filter to apply to the array. Is run after the filterUnique function is run.
|
|
335
|
+
*/
|
|
336
|
+
readonly filter?: FilterFunction<T>;
|
|
333
337
|
};
|
|
334
338
|
export type FirestoreObjectArrayFieldConfigObjectFieldInput<T extends object, O extends object = FirestoreModelData<T>> = {
|
|
335
339
|
/**
|
|
@@ -440,11 +444,3 @@ export interface FirestoreBitwiseObjectMapConfig<T extends object, K extends str
|
|
|
440
444
|
readonly dencoder: BitwiseObjectDencoder<T>;
|
|
441
445
|
}
|
|
442
446
|
export declare function firestoreBitwiseObjectMap<T extends object, K extends string = string>(config: FirestoreBitwiseObjectMapConfig<T, K>): FirestoreModelFieldMapFunctionsConfig<FirestoreEncodedObjectMapFieldValueType<T, K>, FirestoreMapFieldType<number, K>>;
|
|
443
|
-
/**
|
|
444
|
-
* @deprecated use TransformStringFunctionConfigInput instead.
|
|
445
|
-
*/
|
|
446
|
-
export type FirestoreStringTransformOptions<S extends string = string> = TransformStringFunctionConfigInput<S>;
|
|
447
|
-
/**
|
|
448
|
-
* @deprecated use TransformNumberFunctionConfigInput instead.
|
|
449
|
-
*/
|
|
450
|
-
export type FirestoreNumberTransformOptions<N extends number = number> = TransformNumberFunctionConfigInput<N>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ArrayOrValue } from '@dereekb/util';
|
|
1
|
+
import { type ArrayOrValue, type Maybe } from '@dereekb/util';
|
|
2
2
|
import { type DocumentReferenceRef } from '../firestore/reference';
|
|
3
3
|
import { type FirestoreModelKey, type FirestoreModelType, type FirestoreModelTypeRef } from '../firestore/collection/collection';
|
|
4
4
|
/**
|
|
@@ -13,7 +13,7 @@ export interface OnCallTypedModelParams<T = unknown> extends FirestoreModelTypeR
|
|
|
13
13
|
/**
|
|
14
14
|
* Call type. Should typically be defined.
|
|
15
15
|
*/
|
|
16
|
-
readonly call?: OnCallFunctionType
|
|
16
|
+
readonly call?: Maybe<OnCallFunctionType>;
|
|
17
17
|
/**
|
|
18
18
|
* Call sub-function specifier.
|
|
19
19
|
*/
|
|
@@ -33,7 +33,19 @@ export type OnCallTypeModelParamsFunction = <T>(modelTypeInput: FirestoreModelTy
|
|
|
33
33
|
* @param call
|
|
34
34
|
* @returns
|
|
35
35
|
*/
|
|
36
|
-
export declare function onCallTypedModelParamsFunction(call?:
|
|
36
|
+
export declare function onCallTypedModelParamsFunction(call?: Maybe<OnCallFunctionType>): OnCallTypeModelParamsFunction;
|
|
37
|
+
/**
|
|
38
|
+
* Creates OnCallTypedModelParams for the input.
|
|
39
|
+
*
|
|
40
|
+
* Convenience function for calling onCallTypedModelParamsFunction and executing it with the input.
|
|
41
|
+
*
|
|
42
|
+
* @deprecated Move towards using onCallTypedModelParamsFunction directly with the call type instead of using this function. Will not be removed in the future.
|
|
43
|
+
*
|
|
44
|
+
* @param modelType
|
|
45
|
+
* @param data
|
|
46
|
+
* @returns
|
|
47
|
+
*/
|
|
48
|
+
export declare function onCallTypedModelParams<T>(modelTypeInput: FirestoreModelType | FirestoreModelTypeRef, data: T, specifier?: string, call?: OnCallFunctionType): OnCallTypedModelParams<T>;
|
|
37
49
|
/**
|
|
38
50
|
* Pre-configured OnCallTypedModelParamsFunctions for 'create'
|
|
39
51
|
*/
|
|
@@ -50,16 +62,6 @@ export declare const onCallUpdateModelParams: OnCallTypeModelParamsFunction;
|
|
|
50
62
|
* Pre-configured OnCallTypedModelParamsFunctions for 'delete'
|
|
51
63
|
*/
|
|
52
64
|
export declare const onCallDeleteModelParams: OnCallTypeModelParamsFunction;
|
|
53
|
-
/**
|
|
54
|
-
* Creates a OnCallTypedModelParams
|
|
55
|
-
*
|
|
56
|
-
* @deprecated use onCallTypedModelParamsFunction instead.
|
|
57
|
-
*
|
|
58
|
-
* @param modelType
|
|
59
|
-
* @param data
|
|
60
|
-
* @returns
|
|
61
|
-
*/
|
|
62
|
-
export declare function onCallTypedModelParams<T>(modelTypeInput: FirestoreModelType | FirestoreModelTypeRef, data: T, specifier?: string, call?: string): OnCallTypedModelParams<T>;
|
|
63
65
|
/**
|
|
64
66
|
* Key used on the front-end and backend that refers to the call function.
|
|
65
67
|
*/
|
|
@@ -88,27 +90,3 @@ export interface OnCallCreateModelResult {
|
|
|
88
90
|
}
|
|
89
91
|
export declare function onCallCreateModelResultWithDocs(result: ArrayOrValue<DocumentReferenceRef<unknown>>): OnCallCreateModelResult;
|
|
90
92
|
export declare function onCallCreateModelResult(modelKeys: ArrayOrValue<FirestoreModelKey>): OnCallCreateModelResult;
|
|
91
|
-
/**
|
|
92
|
-
* Key used on the front-end and backend that refers to a specific function for creating models.
|
|
93
|
-
*
|
|
94
|
-
* @deprecated Replaced by the callModel function.
|
|
95
|
-
*/
|
|
96
|
-
export declare const CREATE_MODEL_APP_FUNCTION_KEY = "createModel";
|
|
97
|
-
/**
|
|
98
|
-
* Key used on the front-end and backend that refers to a specific function for reading models.
|
|
99
|
-
*
|
|
100
|
-
* @deprecated Replaced by the callModel function.
|
|
101
|
-
*/
|
|
102
|
-
export declare const READ_MODEL_APP_FUNCTION_KEY = "readModel";
|
|
103
|
-
/**
|
|
104
|
-
* Key used on the front-end and backend that refers to a specific function for updating models.
|
|
105
|
-
*
|
|
106
|
-
* @deprecated Replaced by the callModel function.
|
|
107
|
-
*/
|
|
108
|
-
export declare const UPDATE_MODEL_APP_FUNCTION_KEY = "updateModel";
|
|
109
|
-
/**
|
|
110
|
-
* Key used on the front-end and backend that refers to a specific function for deleting models.
|
|
111
|
-
*
|
|
112
|
-
* @deprecated Replaced by the callModel function.
|
|
113
|
-
*/
|
|
114
|
-
export declare const DELETE_MODEL_APP_FUNCTION_KEY = "deleteModel";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { type FirestoreModelKeyRef } from '../../firestore/collection/collection';
|
|
1
|
+
import { type FirestoreModelKey, type FirestoreModelKeyRef } from '../../firestore/collection/collection';
|
|
2
2
|
/**
|
|
3
3
|
* Simple annotated params that implements FirestoreModelKeyRef.
|
|
4
4
|
*/
|
|
5
5
|
export declare class TargetModelParams implements FirestoreModelKeyRef {
|
|
6
|
-
key:
|
|
6
|
+
key: FirestoreModelKey;
|
|
7
7
|
}
|
|
8
8
|
export declare class InferredTargetModelParams implements Partial<FirestoreModelKeyRef> {
|
|
9
|
-
key?:
|
|
9
|
+
key?: FirestoreModelKey;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Simple annotated params that implements FirestoreModelKeyRef but key is a FirestoreModelId.
|
|
13
13
|
*/
|
|
14
14
|
export declare class TargetModelIdParams implements FirestoreModelKeyRef {
|
|
15
|
-
key:
|
|
15
|
+
key: FirestoreModelKey;
|
|
16
16
|
}
|
|
17
17
|
export declare class InferredTargetModelIdParams implements Partial<FirestoreModelKeyRef> {
|
|
18
|
-
key?:
|
|
18
|
+
key?: FirestoreModelKey;
|
|
19
19
|
}
|
package/test/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [11.0.1](https://github.com/dereekb/dbx-components/compare/v11.0.0-dev...v11.0.1) (2024-11-12)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
# [11.0.0](https://github.com/dereekb/dbx-components/compare/v10.2.0-dev...v11.0.0) (2024-11-12)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Code Refactoring
|
|
13
|
+
|
|
14
|
+
* revisited some todos ([4902b4b](https://github.com/dereekb/dbx-components/commit/4902b4bcffde7174c37b72d84fd4473e3b975769))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### BREAKING CHANGES
|
|
18
|
+
|
|
19
|
+
* all breaking changes are documented in VERSION_MIGRATION.md
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
5
23
|
# [10.2.0](https://github.com/dereekb/dbx-components/compare/v10.1.30-dev...v10.2.0) (2024-11-07)
|
|
6
24
|
|
|
7
25
|
|