@dereekb/firebase 13.6.17 → 13.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/index.cjs.js +82 -1
- package/index.esm.js +66 -2
- package/package.json +5 -5
- package/src/lib/common/auth/auth.error.d.ts +7 -0
- package/src/lib/common/function/error.d.ts +44 -0
- package/src/lib/common/function/index.d.ts +1 -0
- package/src/lib/common/model/function.d.ts +79 -1
- package/src/lib/common/model/function.error.d.ts +8 -0
- package/src/lib/common/model/index.d.ts +1 -0
- package/src/lib/model/oidcmodel/oidcmodel.d.ts +1 -1
- package/test/index.cjs.js +52 -2
- package/test/index.esm.js +52 -2
- package/test/package.json +6 -6
package/index.cjs.js
CHANGED
|
@@ -5240,6 +5240,7 @@ function _unsupported_iterable_to_array$e(o, minLen) {
|
|
|
5240
5240
|
var resultPromise = driver.getDocs(batchQuery).then(function(snapshot) {
|
|
5241
5241
|
var time = new Date();
|
|
5242
5242
|
var docs = snapshot.docs;
|
|
5243
|
+
var end = snapshot.empty || inferEndOfResultsFromPageSize && docs.length < limitCount;
|
|
5243
5244
|
var result = {
|
|
5244
5245
|
value: {
|
|
5245
5246
|
time: time,
|
|
@@ -5253,7 +5254,7 @@ function _unsupported_iterable_to_array$e(o, minLen) {
|
|
|
5253
5254
|
return driver.streamDocs(batchQuery, options === null || options === void 0 ? void 0 : options.options);
|
|
5254
5255
|
}
|
|
5255
5256
|
},
|
|
5256
|
-
end:
|
|
5257
|
+
end: end
|
|
5257
5258
|
};
|
|
5258
5259
|
return result;
|
|
5259
5260
|
});
|
|
@@ -10076,9 +10077,18 @@ function onCallTypedModelParams(modelTypeInput, data, specifier, call) {
|
|
|
10076
10077
|
/**
|
|
10077
10078
|
* Pre-configured OnCallTypedModelParamsFunctions for 'delete'
|
|
10078
10079
|
*/ var onCallDeleteModelParams = onCallTypedModelParamsFunction('delete');
|
|
10080
|
+
/**
|
|
10081
|
+
* Pre-configured OnCallTypedModelParamsFunctions for 'query'
|
|
10082
|
+
*/ var onCallQueryModelParams = onCallTypedModelParamsFunction('query');
|
|
10079
10083
|
/**
|
|
10080
10084
|
* Key used on the front-end and backend that refers to the call function.
|
|
10081
10085
|
*/ var CALL_MODEL_APP_FUNCTION_KEY = 'callModel';
|
|
10086
|
+
/**
|
|
10087
|
+
* Default maximum items per page for query operations.
|
|
10088
|
+
*/ var DEFAULT_ON_CALL_QUERY_MODEL_LIMIT = 50;
|
|
10089
|
+
/**
|
|
10090
|
+
* Absolute maximum items per page for query operations. Prevents unbounded queries.
|
|
10091
|
+
*/ var MAX_ON_CALL_QUERY_MODEL_LIMIT = 200;
|
|
10082
10092
|
/**
|
|
10083
10093
|
* Creates an {@link OnCallCreateModelResult} from document references by extracting their paths as model keys.
|
|
10084
10094
|
*
|
|
@@ -10508,6 +10518,12 @@ var FIREBASE_SERVER_AUTH_CLAIMS_RESET_LAST_COM_DATE_KEY = 'resetCommunicationAt'
|
|
|
10508
10518
|
/**
|
|
10509
10519
|
* Error code when an email address is already in use by another account during linking.
|
|
10510
10520
|
*/ var FIREBASE_AUTH_EMAIL_ALREADY_IN_USE_ERROR = 'auth/email-already-in-use';
|
|
10521
|
+
/**
|
|
10522
|
+
* Error code when the quota for updating account information has been exceeded.
|
|
10523
|
+
*
|
|
10524
|
+
* This typically occurs when too many account update operations (e.g., updateUser, setCustomUserClaims)
|
|
10525
|
+
* are performed in a short time window.
|
|
10526
|
+
*/ var FIREBASE_AUTH_QUOTA_EXCEEDED_ERROR = 'auth/quota-exceeded';
|
|
10511
10527
|
/**
|
|
10512
10528
|
* Converts a {@link FirebaseAuthError} into a user-friendly {@link ReadableError} with a human-readable message.
|
|
10513
10529
|
*
|
|
@@ -10567,6 +10583,12 @@ var FIREBASE_SERVER_AUTH_CLAIMS_RESET_LAST_COM_DATE_KEY = 'resetCommunicationAt'
|
|
|
10567
10583
|
message: 'This email address is already in use by another account.'
|
|
10568
10584
|
};
|
|
10569
10585
|
break;
|
|
10586
|
+
case FIREBASE_AUTH_QUOTA_EXCEEDED_ERROR:
|
|
10587
|
+
error = {
|
|
10588
|
+
code: code,
|
|
10589
|
+
message: 'Too many account update requests. Please try again later.'
|
|
10590
|
+
};
|
|
10591
|
+
break;
|
|
10570
10592
|
default:
|
|
10571
10593
|
error = {
|
|
10572
10594
|
code: code,
|
|
@@ -10631,6 +10653,41 @@ function _define_property$f(obj, key, value) {
|
|
|
10631
10653
|
* Used as the `specifier` value in {@link OnCallDevelopmentParams}.
|
|
10632
10654
|
*/ var SCHEDULED_FUNCTION_DEV_FUNCTION_SPECIFIER = 'scheduledFunction';
|
|
10633
10655
|
|
|
10656
|
+
// MARK: HTTP Error Codes
|
|
10657
|
+
/**
|
|
10658
|
+
* Error code for unauthenticated (401) requests.
|
|
10659
|
+
*/ var UNAUTHENTICATED_ERROR_CODE = 'UNAUTHENTICATED';
|
|
10660
|
+
/**
|
|
10661
|
+
* Error code for forbidden (403) requests.
|
|
10662
|
+
*/ var FORBIDDEN_ERROR_CODE = 'FORBIDDEN';
|
|
10663
|
+
/**
|
|
10664
|
+
* Error code for permission-denied (403) requests.
|
|
10665
|
+
*/ var PERMISSION_DENIED_ERROR_CODE = 'PERMISSION_DENIED';
|
|
10666
|
+
/**
|
|
10667
|
+
* Error code for not-found (404) requests.
|
|
10668
|
+
*/ var NOT_FOUND_ERROR_CODE = 'NOT_FOUND';
|
|
10669
|
+
/**
|
|
10670
|
+
* Error code for a Firestore document that does not exist (404).
|
|
10671
|
+
*/ var MODEL_NOT_AVAILABLE_ERROR_CODE = 'MODEL_NOT_AVAILABLE';
|
|
10672
|
+
/**
|
|
10673
|
+
* Error code for bad-request (400) responses.
|
|
10674
|
+
*/ var BAD_REQUEST_ERROR_CODE = 'BAD_REQUEST';
|
|
10675
|
+
/**
|
|
10676
|
+
* Error code for precondition-conflict (409) responses.
|
|
10677
|
+
*/ var CONFLICT_ERROR_CODE = 'CONFLICT';
|
|
10678
|
+
/**
|
|
10679
|
+
* Error code for already-exists (409) responses.
|
|
10680
|
+
*/ var ALREADY_EXISTS_ERROR_CODE = 'ALREADY_EXISTS';
|
|
10681
|
+
/**
|
|
10682
|
+
* Error code for unavailable (503) responses.
|
|
10683
|
+
*/ var UNAVAILABLE_ERROR_CODE = 'UNAVAILABLE';
|
|
10684
|
+
/**
|
|
10685
|
+
* Error code for deactivated or unavailable functions (501).
|
|
10686
|
+
*/ var UNAVAILABLE_OR_DEACTIVATED_FUNCTION_ERROR_CODE = 'UNAVAILABLE_OR_DEACTIVATED_FUNCTION';
|
|
10687
|
+
/**
|
|
10688
|
+
* Error code for internal server errors (500).
|
|
10689
|
+
*/ var INTERNAL_SERVER_ERROR_CODE = 'INTERNAL_ERROR';
|
|
10690
|
+
|
|
10634
10691
|
/**
|
|
10635
10692
|
* Creates a {@link FirebaseModelLoader} that loads document wrappers from the given collection function.
|
|
10636
10693
|
*
|
|
@@ -11533,6 +11590,13 @@ function _ts_generator$8(thisArg, body) {
|
|
|
11533
11590
|
};
|
|
11534
11591
|
}
|
|
11535
11592
|
|
|
11593
|
+
/**
|
|
11594
|
+
* Error code for a model type string that has no registered handler.
|
|
11595
|
+
*/ var UNKNOWN_MODEL_TYPE_ERROR_CODE = 'UNKNOWN_MODEL_TYPE';
|
|
11596
|
+
/**
|
|
11597
|
+
* Error code for an invalid or inaccessible cursor document key in a query request.
|
|
11598
|
+
*/ var BAD_DOCUMENT_QUERY_CURSOR_ERROR_CODE = 'BAD_DOCUMENT_QUERY_CURSOR';
|
|
11599
|
+
|
|
11536
11600
|
function _define_property$c(obj, key, value) {
|
|
11537
11601
|
if (key in obj) {
|
|
11538
11602
|
Object.defineProperty(obj, key, {
|
|
@@ -18869,12 +18933,16 @@ exports.ALL_OIDC_TOKEN_ENDPOINT_AUTH_METHOD_OPTIONS = ALL_OIDC_TOKEN_ENDPOINT_AU
|
|
|
18869
18933
|
exports.ALL_STORAGE_FILE_NOTIFICATION_TASK_TYPES = ALL_STORAGE_FILE_NOTIFICATION_TASK_TYPES;
|
|
18870
18934
|
exports.ALL_USER_UPLOADS_FOLDER_NAME = ALL_USER_UPLOADS_FOLDER_NAME;
|
|
18871
18935
|
exports.ALL_USER_UPLOADS_FOLDER_PATH = ALL_USER_UPLOADS_FOLDER_PATH;
|
|
18936
|
+
exports.ALREADY_EXISTS_ERROR_CODE = ALREADY_EXISTS_ERROR_CODE;
|
|
18872
18937
|
exports.AbstractFirestoreDocument = AbstractFirestoreDocument;
|
|
18873
18938
|
exports.AbstractFirestoreDocumentDataAccessorWrapper = AbstractFirestoreDocumentDataAccessorWrapper;
|
|
18874
18939
|
exports.AbstractFirestoreDocumentWithParent = AbstractFirestoreDocumentWithParent;
|
|
18875
18940
|
exports.AppNotificationTemplateTypeInfoRecordService = AppNotificationTemplateTypeInfoRecordService;
|
|
18941
|
+
exports.BAD_DOCUMENT_QUERY_CURSOR_ERROR_CODE = BAD_DOCUMENT_QUERY_CURSOR_ERROR_CODE;
|
|
18942
|
+
exports.BAD_REQUEST_ERROR_CODE = BAD_REQUEST_ERROR_CODE;
|
|
18876
18943
|
exports.BASE_MODEL_STORAGE_FILE_PATH = BASE_MODEL_STORAGE_FILE_PATH;
|
|
18877
18944
|
exports.CALL_MODEL_APP_FUNCTION_KEY = CALL_MODEL_APP_FUNCTION_KEY;
|
|
18945
|
+
exports.CONFLICT_ERROR_CODE = CONFLICT_ERROR_CODE;
|
|
18878
18946
|
exports.COPY_USER_RELATED_DATA_ACCESSOR_FACTORY_FUNCTION = COPY_USER_RELATED_DATA_ACCESSOR_FACTORY_FUNCTION;
|
|
18879
18947
|
exports.CREATE_NOTIFICATION_ID_REQUIRED_ERROR_CODE = CREATE_NOTIFICATION_ID_REQUIRED_ERROR_CODE;
|
|
18880
18948
|
exports.ContextGrantedModelRolesReaderInstance = ContextGrantedModelRolesReaderInstance;
|
|
@@ -18891,6 +18959,7 @@ exports.DEFAULT_NOTIFICATION_TASK_NOTIFICATION_MODEL_KEY = DEFAULT_NOTIFICATION_
|
|
|
18891
18959
|
exports.DEFAULT_NOTIFICATION_TASK_SUBTASK_CLEANUP_RETRY_ATTEMPTS = DEFAULT_NOTIFICATION_TASK_SUBTASK_CLEANUP_RETRY_ATTEMPTS;
|
|
18892
18960
|
exports.DEFAULT_NOTIFICATION_TASK_SUBTASK_CLEANUP_RETRY_DELAY = DEFAULT_NOTIFICATION_TASK_SUBTASK_CLEANUP_RETRY_DELAY;
|
|
18893
18961
|
exports.DEFAULT_NOTIFICATION_TEMPLATE_TYPE = DEFAULT_NOTIFICATION_TEMPLATE_TYPE;
|
|
18962
|
+
exports.DEFAULT_ON_CALL_QUERY_MODEL_LIMIT = DEFAULT_ON_CALL_QUERY_MODEL_LIMIT;
|
|
18894
18963
|
exports.DEFAULT_QUERY_CHANGE_WATCHER_DELAY = DEFAULT_QUERY_CHANGE_WATCHER_DELAY;
|
|
18895
18964
|
exports.DEFAULT_SINGLE_ITEM_FIRESTORE_COLLECTION_DOCUMENT_IDENTIFIER = DEFAULT_SINGLE_ITEM_FIRESTORE_COLLECTION_DOCUMENT_IDENTIFIER;
|
|
18896
18965
|
exports.DEFAULT_UPLOADED_FILE_TYPE_DETERMINATION_LEVEL = DEFAULT_UPLOADED_FILE_TYPE_DETERMINATION_LEVEL;
|
|
@@ -18909,6 +18978,7 @@ exports.FIREBASE_AUTH_PASSWORD_MAX_LENGTH = FIREBASE_AUTH_PASSWORD_MAX_LENGTH;
|
|
|
18909
18978
|
exports.FIREBASE_AUTH_PASSWORD_MIN_LENGTH = FIREBASE_AUTH_PASSWORD_MIN_LENGTH;
|
|
18910
18979
|
exports.FIREBASE_AUTH_PHONE_NUMBER_ALREADY_EXISTS_ERROR = FIREBASE_AUTH_PHONE_NUMBER_ALREADY_EXISTS_ERROR;
|
|
18911
18980
|
exports.FIREBASE_AUTH_PROVIDER_ALREADY_LINKED_ERROR = FIREBASE_AUTH_PROVIDER_ALREADY_LINKED_ERROR;
|
|
18981
|
+
exports.FIREBASE_AUTH_QUOTA_EXCEEDED_ERROR = FIREBASE_AUTH_QUOTA_EXCEEDED_ERROR;
|
|
18912
18982
|
exports.FIREBASE_AUTH_USER_NOT_FOUND_ERROR = FIREBASE_AUTH_USER_NOT_FOUND_ERROR;
|
|
18913
18983
|
exports.FIREBASE_AUTH_WRONG_PASSWORD = FIREBASE_AUTH_WRONG_PASSWORD;
|
|
18914
18984
|
exports.FIREBASE_DEVELOPMENT_FUNCTIONS_MAP_KEY = FIREBASE_DEVELOPMENT_FUNCTIONS_MAP_KEY;
|
|
@@ -18941,16 +19011,20 @@ exports.FIRESTORE_START_AT_QUERY_CONSTRAINT_TYPE = FIRESTORE_START_AT_QUERY_CONS
|
|
|
18941
19011
|
exports.FIRESTORE_START_AT_VALUE_QUERY_CONSTRAINT_TYPE = FIRESTORE_START_AT_VALUE_QUERY_CONSTRAINT_TYPE;
|
|
18942
19012
|
exports.FIRESTORE_WHERE_DOCUMENT_ID_QUERY_CONSTRAINT_TYPE = FIRESTORE_WHERE_DOCUMENT_ID_QUERY_CONSTRAINT_TYPE;
|
|
18943
19013
|
exports.FIRESTORE_WHERE_QUERY_CONSTRAINT_TYPE = FIRESTORE_WHERE_QUERY_CONSTRAINT_TYPE;
|
|
19014
|
+
exports.FORBIDDEN_ERROR_CODE = FORBIDDEN_ERROR_CODE;
|
|
18944
19015
|
exports.FirebaseDevelopmentFunctions = FirebaseDevelopmentFunctions;
|
|
18945
19016
|
exports.FirebaseModelPermissionServiceInstance = FirebaseModelPermissionServiceInstance;
|
|
18946
19017
|
exports.FirebaseServerError = FirebaseServerError;
|
|
18947
19018
|
exports.HIGH_UPLOADED_FILE_TYPE_DETERMINATION_LEVEL = HIGH_UPLOADED_FILE_TYPE_DETERMINATION_LEVEL;
|
|
19019
|
+
exports.INTERNAL_SERVER_ERROR_CODE = INTERNAL_SERVER_ERROR_CODE;
|
|
18948
19020
|
exports.IN_MEMORY_CACHE_DEFAULT_TTL = IN_MEMORY_CACHE_DEFAULT_TTL;
|
|
18949
19021
|
exports.LOW_UPLOADED_FILE_TYPE_DETERMINATION_LEVEL = LOW_UPLOADED_FILE_TYPE_DETERMINATION_LEVEL;
|
|
18950
19022
|
exports.MAX_FIRESTORE_MAP_ZOOM_LEVEL_VALUE = MAX_FIRESTORE_MAP_ZOOM_LEVEL_VALUE;
|
|
19023
|
+
exports.MAX_ON_CALL_QUERY_MODEL_LIMIT = MAX_ON_CALL_QUERY_MODEL_LIMIT;
|
|
18951
19024
|
exports.MIN_FIRESTORE_MAP_ZOOM_LEVEL_VALUE = MIN_FIRESTORE_MAP_ZOOM_LEVEL_VALUE;
|
|
18952
19025
|
exports.MODEL_FUNCTION_FIREBASE_CRUD_FUNCTION_SPECIFIER_DEFAULT = MODEL_FUNCTION_FIREBASE_CRUD_FUNCTION_SPECIFIER_DEFAULT;
|
|
18953
19026
|
exports.MODEL_FUNCTION_FIREBASE_CRUD_FUNCTION_SPECIFIER_SPLITTER = MODEL_FUNCTION_FIREBASE_CRUD_FUNCTION_SPECIFIER_SPLITTER;
|
|
19027
|
+
exports.MODEL_NOT_AVAILABLE_ERROR_CODE = MODEL_NOT_AVAILABLE_ERROR_CODE;
|
|
18954
19028
|
exports.MODEL_STORAGE_FILE_SLASH_PATH_FACTORY = MODEL_STORAGE_FILE_SLASH_PATH_FACTORY;
|
|
18955
19029
|
exports.ModifyBeforeSetFirestoreDocumentDataAccessorWrapper = ModifyBeforeSetFirestoreDocumentDataAccessorWrapper;
|
|
18956
19030
|
exports.NOTIFICATION_BOX_DOES_NOT_EXIST_ERROR_CODE = NOTIFICATION_BOX_DOES_NOT_EXIST_ERROR_CODE;
|
|
@@ -18973,6 +19047,7 @@ exports.NOTIFICATION_USER_BLOCKED_FROM_BEING_ADD_TO_RECIPIENTS_ERROR_CODE = NOTI
|
|
|
18973
19047
|
exports.NOTIFICATION_USER_INVALID_UID_FOR_CREATE_ERROR_CODE = NOTIFICATION_USER_INVALID_UID_FOR_CREATE_ERROR_CODE;
|
|
18974
19048
|
exports.NOTIFICATION_USER_LOCKED_CONFIG_FROM_BEING_UPDATED_ERROR_CODE = NOTIFICATION_USER_LOCKED_CONFIG_FROM_BEING_UPDATED_ERROR_CODE;
|
|
18975
19049
|
exports.NOTIFICATION_WEEK_NOTIFICATION_ITEM_LIMIT = NOTIFICATION_WEEK_NOTIFICATION_ITEM_LIMIT;
|
|
19050
|
+
exports.NOT_FOUND_ERROR_CODE = NOT_FOUND_ERROR_CODE;
|
|
18976
19051
|
exports.NotificationBoxDocument = NotificationBoxDocument;
|
|
18977
19052
|
exports.NotificationDocument = NotificationDocument;
|
|
18978
19053
|
exports.NotificationFirestoreCollections = NotificationFirestoreCollections;
|
|
@@ -18984,6 +19059,7 @@ exports.OIDC_ENTRY_CLIENT_TYPE = OIDC_ENTRY_CLIENT_TYPE;
|
|
|
18984
19059
|
exports.OidcEntryDocument = OidcEntryDocument;
|
|
18985
19060
|
exports.OidcModelFirestoreCollections = OidcModelFirestoreCollections;
|
|
18986
19061
|
exports.OidcModelFunctions = OidcModelFunctions;
|
|
19062
|
+
exports.PERMISSION_DENIED_ERROR_CODE = PERMISSION_DENIED_ERROR_CODE;
|
|
18987
19063
|
exports.PRIVATE_KEY_JWT_TOKEN_ENDPOINT_AUTH_METHOD = PRIVATE_KEY_JWT_TOKEN_ENDPOINT_AUTH_METHOD;
|
|
18988
19064
|
exports.RUN_DEV_FUNCTION_APP_FUNCTION_KEY = RUN_DEV_FUNCTION_APP_FUNCTION_KEY;
|
|
18989
19065
|
exports.SCHEDULED_FUNCTION_DEV_FUNCTION_SPECIFIER = SCHEDULED_FUNCTION_DEV_FUNCTION_SPECIFIER;
|
|
@@ -19014,6 +19090,10 @@ exports.StorageFileGroupDocument = StorageFileGroupDocument;
|
|
|
19014
19090
|
exports.StorageFileUploadStreamUnsupportedError = StorageFileUploadStreamUnsupportedError;
|
|
19015
19091
|
exports.SystemStateDocument = SystemStateDocument;
|
|
19016
19092
|
exports.SystemStateFirestoreCollections = SystemStateFirestoreCollections;
|
|
19093
|
+
exports.UNAUTHENTICATED_ERROR_CODE = UNAUTHENTICATED_ERROR_CODE;
|
|
19094
|
+
exports.UNAVAILABLE_ERROR_CODE = UNAVAILABLE_ERROR_CODE;
|
|
19095
|
+
exports.UNAVAILABLE_OR_DEACTIVATED_FUNCTION_ERROR_CODE = UNAVAILABLE_OR_DEACTIVATED_FUNCTION_ERROR_CODE;
|
|
19096
|
+
exports.UNKNOWN_MODEL_TYPE_ERROR_CODE = UNKNOWN_MODEL_TYPE_ERROR_CODE;
|
|
19017
19097
|
exports.UPLOADED_FILE_DOES_NOT_EXIST_ERROR_CODE = UPLOADED_FILE_DOES_NOT_EXIST_ERROR_CODE;
|
|
19018
19098
|
exports.UPLOADED_FILE_INITIALIZATION_DISCARDED_ERROR_CODE = UPLOADED_FILE_INITIALIZATION_DISCARDED_ERROR_CODE;
|
|
19019
19099
|
exports.UPLOADED_FILE_INITIALIZATION_FAILED_ERROR_CODE = UPLOADED_FILE_INITIALIZATION_FAILED_ERROR_CODE;
|
|
@@ -19425,6 +19505,7 @@ exports.onCallCreateModelResult = onCallCreateModelResult;
|
|
|
19425
19505
|
exports.onCallCreateModelResultWithDocs = onCallCreateModelResultWithDocs;
|
|
19426
19506
|
exports.onCallDeleteModelParams = onCallDeleteModelParams;
|
|
19427
19507
|
exports.onCallDevelopmentParams = onCallDevelopmentParams;
|
|
19508
|
+
exports.onCallQueryModelParams = onCallQueryModelParams;
|
|
19428
19509
|
exports.onCallReadModelParams = onCallReadModelParams;
|
|
19429
19510
|
exports.onCallTypedModelParams = onCallTypedModelParams;
|
|
19430
19511
|
exports.onCallTypedModelParamsFunction = onCallTypedModelParamsFunction;
|
package/index.esm.js
CHANGED
|
@@ -5238,6 +5238,7 @@ function _unsupported_iterable_to_array$e(o, minLen) {
|
|
|
5238
5238
|
var resultPromise = driver.getDocs(batchQuery).then(function(snapshot) {
|
|
5239
5239
|
var time = new Date();
|
|
5240
5240
|
var docs = snapshot.docs;
|
|
5241
|
+
var end = snapshot.empty || inferEndOfResultsFromPageSize && docs.length < limitCount;
|
|
5241
5242
|
var result = {
|
|
5242
5243
|
value: {
|
|
5243
5244
|
time: time,
|
|
@@ -5251,7 +5252,7 @@ function _unsupported_iterable_to_array$e(o, minLen) {
|
|
|
5251
5252
|
return driver.streamDocs(batchQuery, options === null || options === void 0 ? void 0 : options.options);
|
|
5252
5253
|
}
|
|
5253
5254
|
},
|
|
5254
|
-
end:
|
|
5255
|
+
end: end
|
|
5255
5256
|
};
|
|
5256
5257
|
return result;
|
|
5257
5258
|
});
|
|
@@ -10074,9 +10075,18 @@ function onCallTypedModelParams(modelTypeInput, data, specifier, call) {
|
|
|
10074
10075
|
/**
|
|
10075
10076
|
* Pre-configured OnCallTypedModelParamsFunctions for 'delete'
|
|
10076
10077
|
*/ var onCallDeleteModelParams = onCallTypedModelParamsFunction('delete');
|
|
10078
|
+
/**
|
|
10079
|
+
* Pre-configured OnCallTypedModelParamsFunctions for 'query'
|
|
10080
|
+
*/ var onCallQueryModelParams = onCallTypedModelParamsFunction('query');
|
|
10077
10081
|
/**
|
|
10078
10082
|
* Key used on the front-end and backend that refers to the call function.
|
|
10079
10083
|
*/ var CALL_MODEL_APP_FUNCTION_KEY = 'callModel';
|
|
10084
|
+
/**
|
|
10085
|
+
* Default maximum items per page for query operations.
|
|
10086
|
+
*/ var DEFAULT_ON_CALL_QUERY_MODEL_LIMIT = 50;
|
|
10087
|
+
/**
|
|
10088
|
+
* Absolute maximum items per page for query operations. Prevents unbounded queries.
|
|
10089
|
+
*/ var MAX_ON_CALL_QUERY_MODEL_LIMIT = 200;
|
|
10080
10090
|
/**
|
|
10081
10091
|
* Creates an {@link OnCallCreateModelResult} from document references by extracting their paths as model keys.
|
|
10082
10092
|
*
|
|
@@ -10506,6 +10516,12 @@ var FIREBASE_SERVER_AUTH_CLAIMS_RESET_LAST_COM_DATE_KEY = 'resetCommunicationAt'
|
|
|
10506
10516
|
/**
|
|
10507
10517
|
* Error code when an email address is already in use by another account during linking.
|
|
10508
10518
|
*/ var FIREBASE_AUTH_EMAIL_ALREADY_IN_USE_ERROR = 'auth/email-already-in-use';
|
|
10519
|
+
/**
|
|
10520
|
+
* Error code when the quota for updating account information has been exceeded.
|
|
10521
|
+
*
|
|
10522
|
+
* This typically occurs when too many account update operations (e.g., updateUser, setCustomUserClaims)
|
|
10523
|
+
* are performed in a short time window.
|
|
10524
|
+
*/ var FIREBASE_AUTH_QUOTA_EXCEEDED_ERROR = 'auth/quota-exceeded';
|
|
10509
10525
|
/**
|
|
10510
10526
|
* Converts a {@link FirebaseAuthError} into a user-friendly {@link ReadableError} with a human-readable message.
|
|
10511
10527
|
*
|
|
@@ -10565,6 +10581,12 @@ var FIREBASE_SERVER_AUTH_CLAIMS_RESET_LAST_COM_DATE_KEY = 'resetCommunicationAt'
|
|
|
10565
10581
|
message: 'This email address is already in use by another account.'
|
|
10566
10582
|
};
|
|
10567
10583
|
break;
|
|
10584
|
+
case FIREBASE_AUTH_QUOTA_EXCEEDED_ERROR:
|
|
10585
|
+
error = {
|
|
10586
|
+
code: code,
|
|
10587
|
+
message: 'Too many account update requests. Please try again later.'
|
|
10588
|
+
};
|
|
10589
|
+
break;
|
|
10568
10590
|
default:
|
|
10569
10591
|
error = {
|
|
10570
10592
|
code: code,
|
|
@@ -10629,6 +10651,41 @@ function _define_property$f(obj, key, value) {
|
|
|
10629
10651
|
* Used as the `specifier` value in {@link OnCallDevelopmentParams}.
|
|
10630
10652
|
*/ var SCHEDULED_FUNCTION_DEV_FUNCTION_SPECIFIER = 'scheduledFunction';
|
|
10631
10653
|
|
|
10654
|
+
// MARK: HTTP Error Codes
|
|
10655
|
+
/**
|
|
10656
|
+
* Error code for unauthenticated (401) requests.
|
|
10657
|
+
*/ var UNAUTHENTICATED_ERROR_CODE = 'UNAUTHENTICATED';
|
|
10658
|
+
/**
|
|
10659
|
+
* Error code for forbidden (403) requests.
|
|
10660
|
+
*/ var FORBIDDEN_ERROR_CODE = 'FORBIDDEN';
|
|
10661
|
+
/**
|
|
10662
|
+
* Error code for permission-denied (403) requests.
|
|
10663
|
+
*/ var PERMISSION_DENIED_ERROR_CODE = 'PERMISSION_DENIED';
|
|
10664
|
+
/**
|
|
10665
|
+
* Error code for not-found (404) requests.
|
|
10666
|
+
*/ var NOT_FOUND_ERROR_CODE = 'NOT_FOUND';
|
|
10667
|
+
/**
|
|
10668
|
+
* Error code for a Firestore document that does not exist (404).
|
|
10669
|
+
*/ var MODEL_NOT_AVAILABLE_ERROR_CODE = 'MODEL_NOT_AVAILABLE';
|
|
10670
|
+
/**
|
|
10671
|
+
* Error code for bad-request (400) responses.
|
|
10672
|
+
*/ var BAD_REQUEST_ERROR_CODE = 'BAD_REQUEST';
|
|
10673
|
+
/**
|
|
10674
|
+
* Error code for precondition-conflict (409) responses.
|
|
10675
|
+
*/ var CONFLICT_ERROR_CODE = 'CONFLICT';
|
|
10676
|
+
/**
|
|
10677
|
+
* Error code for already-exists (409) responses.
|
|
10678
|
+
*/ var ALREADY_EXISTS_ERROR_CODE = 'ALREADY_EXISTS';
|
|
10679
|
+
/**
|
|
10680
|
+
* Error code for unavailable (503) responses.
|
|
10681
|
+
*/ var UNAVAILABLE_ERROR_CODE = 'UNAVAILABLE';
|
|
10682
|
+
/**
|
|
10683
|
+
* Error code for deactivated or unavailable functions (501).
|
|
10684
|
+
*/ var UNAVAILABLE_OR_DEACTIVATED_FUNCTION_ERROR_CODE = 'UNAVAILABLE_OR_DEACTIVATED_FUNCTION';
|
|
10685
|
+
/**
|
|
10686
|
+
* Error code for internal server errors (500).
|
|
10687
|
+
*/ var INTERNAL_SERVER_ERROR_CODE = 'INTERNAL_ERROR';
|
|
10688
|
+
|
|
10632
10689
|
/**
|
|
10633
10690
|
* Creates a {@link FirebaseModelLoader} that loads document wrappers from the given collection function.
|
|
10634
10691
|
*
|
|
@@ -11531,6 +11588,13 @@ function _ts_generator$8(thisArg, body) {
|
|
|
11531
11588
|
};
|
|
11532
11589
|
}
|
|
11533
11590
|
|
|
11591
|
+
/**
|
|
11592
|
+
* Error code for a model type string that has no registered handler.
|
|
11593
|
+
*/ var UNKNOWN_MODEL_TYPE_ERROR_CODE = 'UNKNOWN_MODEL_TYPE';
|
|
11594
|
+
/**
|
|
11595
|
+
* Error code for an invalid or inaccessible cursor document key in a query request.
|
|
11596
|
+
*/ var BAD_DOCUMENT_QUERY_CURSOR_ERROR_CODE = 'BAD_DOCUMENT_QUERY_CURSOR';
|
|
11597
|
+
|
|
11534
11598
|
function _define_property$c(obj, key, value) {
|
|
11535
11599
|
if (key in obj) {
|
|
11536
11600
|
Object.defineProperty(obj, key, {
|
|
@@ -18863,4 +18927,4 @@ function _is_native_reflect_construct() {
|
|
|
18863
18927
|
});
|
|
18864
18928
|
}
|
|
18865
18929
|
|
|
18866
|
-
export { ALL_OIDC_TOKEN_ENDPOINT_AUTH_METHOD_OPTIONS, ALL_STORAGE_FILE_NOTIFICATION_TASK_TYPES, ALL_USER_UPLOADS_FOLDER_NAME, ALL_USER_UPLOADS_FOLDER_PATH, AbstractFirestoreDocument, AbstractFirestoreDocumentDataAccessorWrapper, AbstractFirestoreDocumentWithParent, AppNotificationTemplateTypeInfoRecordService, BASE_MODEL_STORAGE_FILE_PATH, CALL_MODEL_APP_FUNCTION_KEY, COPY_USER_RELATED_DATA_ACCESSOR_FACTORY_FUNCTION, CREATE_NOTIFICATION_ID_REQUIRED_ERROR_CODE, ContextGrantedModelRolesReaderInstance, DBX_FIREBASE_SERVER_NO_AUTH_ERROR_CODE, DBX_FIREBASE_SERVER_NO_UID_ERROR_CODE, 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_NOTIFICATION_TASK_NOTIFICATION_MODEL_KEY, DEFAULT_NOTIFICATION_TASK_SUBTASK_CLEANUP_RETRY_ATTEMPTS, DEFAULT_NOTIFICATION_TASK_SUBTASK_CLEANUP_RETRY_DELAY, DEFAULT_NOTIFICATION_TEMPLATE_TYPE, DEFAULT_QUERY_CHANGE_WATCHER_DELAY, DEFAULT_SINGLE_ITEM_FIRESTORE_COLLECTION_DOCUMENT_IDENTIFIER, DEFAULT_UPLOADED_FILE_TYPE_DETERMINATION_LEVEL, DEFAULT_WEBSITE_LINK, DOWNLOAD_MULTIPLE_STORAGE_FILES_MAX_FILES, DOWNLOAD_MULTIPLE_STORAGE_FILES_MIN_FILES, EMPTY_STORAGE_FILE_PURPOSE_SUBGROUP, EXACT_UPLOADED_FILE_TYPE_DETERMINATION_LEVEL, FIREBASE_AUTH_CREDENTIAL_ALREADY_IN_USE_ERROR, FIREBASE_AUTH_EMAIL_ALREADY_EXISTS_ERROR, FIREBASE_AUTH_EMAIL_ALREADY_IN_USE_ERROR, FIREBASE_AUTH_INVALID_PHONE_NUMBER_ERROR, FIREBASE_AUTH_NETWORK_REQUEST_ERROR, FIREBASE_AUTH_NETWORK_REQUEST_FAILED, FIREBASE_AUTH_PASSWORD_MAX_LENGTH, FIREBASE_AUTH_PASSWORD_MIN_LENGTH, FIREBASE_AUTH_PHONE_NUMBER_ALREADY_EXISTS_ERROR, FIREBASE_AUTH_PROVIDER_ALREADY_LINKED_ERROR, 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_PERMISSION_DENIED_ERROR_CODE, 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, HIGH_UPLOADED_FILE_TYPE_DETERMINATION_LEVEL, IN_MEMORY_CACHE_DEFAULT_TTL, LOW_UPLOADED_FILE_TYPE_DETERMINATION_LEVEL, 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, NOTIFICATION_BOX_DOES_NOT_EXIST_ERROR_CODE, NOTIFICATION_BOX_EXCLUSION_TARGET_INVALID_ERROR_CODE, NOTIFICATION_BOX_EXISTS_FOR_MODEL_ERROR_CODE, NOTIFICATION_BOX_RECIPIENT_DOES_NOT_EXIST_ERROR_CODE, NOTIFICATION_MESSAGE_MAX_LENGTH, NOTIFICATION_MESSAGE_MIN_LENGTH, NOTIFICATION_MODEL_ALREADY_INITIALIZED_ERROR_CODE, NOTIFICATION_RECIPIENT_NAME_MAX_LENGTH, NOTIFICATION_RECIPIENT_NAME_MIN_LENGTH, NOTIFICATION_SUBJECT_MAX_LENGTH, NOTIFICATION_SUBJECT_MIN_LENGTH, NOTIFICATION_SUMMARY_EMBEDDED_NOTIFICATION_ITEM_MESSAGE_MAX_LENGTH, NOTIFICATION_SUMMARY_EMBEDDED_NOTIFICATION_ITEM_SUBJECT_MAX_LENGTH, NOTIFICATION_SUMMARY_ITEM_LIMIT, NOTIFICATION_TASK_SUBTASK_CHECKPOINT_CLEANUP, NOTIFICATION_TASK_SUBTASK_CHECKPOINT_PROCESSING, NOTIFICATION_USER_BLOCKED_FROM_BEING_ADD_TO_RECIPIENTS_ERROR_CODE, NOTIFICATION_USER_INVALID_UID_FOR_CREATE_ERROR_CODE, NOTIFICATION_USER_LOCKED_CONFIG_FROM_BEING_UPDATED_ERROR_CODE, NOTIFICATION_WEEK_NOTIFICATION_ITEM_LIMIT, NotificationBoxDocument, NotificationBoxRecipientFlag, NotificationBoxRecipientTemplateConfigBoolean, NotificationDocument, NotificationFirestoreCollections, NotificationFunctions, NotificationMessageFlag, NotificationRecipientSendFlag, NotificationSendState, NotificationSendType, NotificationSummaryDocument, NotificationUserDocument, NotificationWeekDocument, OIDC_ENTRY_CLIENT_TYPE, OidcEntryDocument, OidcModelFirestoreCollections, OidcModelFunctions, PRIVATE_KEY_JWT_TOKEN_ENDPOINT_AUTH_METHOD, RUN_DEV_FUNCTION_APP_FUNCTION_KEY, SCHEDULED_FUNCTION_DEV_FUNCTION_SPECIFIER, STORAGEFILE_RELATED_FILE_METADATA_KEY, STORAGE_FILE_ALREADY_PROCESSED_ERROR_CODE, STORAGE_FILE_CANNOT_BE_DELETED_YET_ERROR_CODE, STORAGE_FILE_GROUP_CREATE_INPUT_ERROR_CODE, STORAGE_FILE_GROUP_QUEUED_FOR_INITIALIZATION_ERROR_CODE, STORAGE_FILE_GROUP_ROOT_FOLDER_PATH, STORAGE_FILE_GROUP_ZIP_FILE_PATH, STORAGE_FILE_GROUP_ZIP_INFO_JSON_FILE_NAME, STORAGE_FILE_GROUP_ZIP_STORAGE_FILE_PURPOSE, STORAGE_FILE_GROUP_ZIP_STORAGE_FILE_PURPOSE_CREATE_ZIP_SUBTASK, STORAGE_FILE_MODEL_ALREADY_INITIALIZED_ERROR_CODE, STORAGE_FILE_NOT_FLAGGED_FOR_DELETION_ERROR_CODE, STORAGE_FILE_NOT_FLAGGED_FOR_GROUPS_SYNC_ERROR_CODE, STORAGE_FILE_PROCESSING_NOTIFICATION_TASK_TYPE, STORAGE_FILE_PROCESSING_NOT_ALLOWED_FOR_INVALID_STATE_ERROR_CODE, STORAGE_FILE_PROCESSING_NOT_AVAILABLE_FOR_TYPE_ERROR_CODE, STORAGE_FILE_PROCESSING_NOT_QUEUED_FOR_PROCESSING_ERROR_CODE, STORAGE_FILE_PROCESSING_STUCK_THROTTLE_CHECK_MS, STORAGE_FILE_UPLOAD_USER_ROLE, ScheduledFunctionDevelopmentFirebaseFunctionListEntry, ScheduledFunctionDevelopmentFunctionTypeEnum, StorageFileCreationType, StorageFileDocument, StorageFileFirestoreCollections, StorageFileFunctions, StorageFileGroupDocument, StorageFileProcessingState, StorageFileState, StorageFileUploadStreamUnsupportedError, SystemStateDocument, SystemStateFirestoreCollections, UPLOADED_FILE_DOES_NOT_EXIST_ERROR_CODE, UPLOADED_FILE_INITIALIZATION_DISCARDED_ERROR_CODE, UPLOADED_FILE_INITIALIZATION_FAILED_ERROR_CODE, UPLOADED_FILE_NOT_ALLOWED_TO_BE_INITIALIZED_ERROR_CODE, UPLOADS_FOLDER_PATH, _createNotificationDocumentFromPair, abstractSubscribeOrUnsubscribeToNotificationBoxParamsType, abstractSubscribeToNotificationBoxParamsType, addConstraintToBuilder, addOrReplaceLimitInConstraints, allChildDocumentsUnderParent, allChildDocumentsUnderParentPath, allChildDocumentsUnderRelativePath, allowDocumentSnapshotWithPathOnceFilter, allowedNotificationRecipients, appNotificationTemplateTypeInfoRecordService, applyExclusionsToNotificationUserNotificationBoxRecipientConfigs, arrayUpdateWithAccessorFunction, asTopLevelFieldPath, asTopLevelFieldPaths, assertFirestoreUpdateHasData, assertStorageUploadOptionsStringFormat, assignDateCellRangeFunction, assignDateCellScheduleFunction, assignUnitedStatesAddressFunction, assignWebsiteFileLinkFunction, assignWebsiteLinkFunction, buildFirebaseCollectionTypeModelTypeMap, calculateNsForNotificationUserNotificationBoxRecipientConfigs, calculateStorageFileGroupEmbeddedFileUpdate, calculateStorageFileGroupRegeneration, callModelFirebaseFunctionMapFactory, canQueueStorageFileForProcessing, childFirestoreModelKey, childFirestoreModelKeyPath, childFirestoreModelKeys, cleanupSentNotificationsParamsType, clientFirebaseFirestoreContextFactory, clientFirebaseStorageContextFactory, combineUploadFileTypeDeterminers, completeSubtaskProcessingAndScheduleCleanupTaskResult, contextGrantedModelRolesReader, contextGrantedModelRolesReaderDoesNotExistErrorMessage, contextGrantedModelRolesReaderPermissionErrorMessage, convertHttpsCallableErrorToReadableError, copyDocumentIdForUserRelatedModifierFunction, copyDocumentIdToFieldModifierFunction, copyStoragePath, copyUserRelatedDataAccessorFactoryFunction, copyUserRelatedDataModifierConfig, createNotificationBoxParamsType, createNotificationDocument, createNotificationDocumentIfSending, createNotificationDocumentPair, createNotificationSummaryParamsType, createNotificationTaskTemplate, createNotificationTemplate, createNotificationUserParamsType, createOidcClientFieldParamsType, createOidcClientParamsType, createStorageFileDocumentPair, createStorageFileDocumentPairFactory, createStorageFileGroupParamsType, createStorageFileParamsType, dataFromDocumentSnapshots, dataFromSnapshotStream, delayCompletion, deleteAllQueuedStorageFilesParamsType, deleteOidcClientParamsType, deleteStorageFileParamsType, determineByFileName, determineByFilePath, determineByFolderName, determineUserByFolder, determineUserByFolderWrapperFunction, determineUserByUserUploadsFolderWrapperFunction, developmentFirebaseFunctionMapFactory, directDataHttpsCallable, documentData, documentDataFunction, documentDataWithIdAndKey, documentReferenceFromDocument, documentReferencesFromDocuments, documentReferencesFromSnapshot, downloadMultipleStorageFilesFileParamsType, downloadMultipleStorageFilesParamsType, downloadStorageFileParamsType, effectiveNotificationBoxRecipientConfig, effectiveNotificationBoxRecipientTemplateConfig, endAt, endAtValue, endBefore, extendFirestoreCollectionWithSingleDocumentAccessor, filterConstraintsOfType, filterDisallowedFirestoreItemPageIteratorInputConstraints, 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, firestoreClientArrayUpdateToUpdateData, firestoreClientIncrementUpdateToUpdateData, firestoreCollectionDocumentCache, firestoreCollectionQueryFactory, firestoreContextFactory, firestoreDate, firestoreDateCellRange, firestoreDateCellRangeArray, firestoreDateCellRangeAssignFn, firestoreDateCellSchedule, firestoreDateCellScheduleAssignFn, firestoreDateNumber, firestoreDencoderArray, firestoreDencoderMap, firestoreDencoderStringArray, firestoreDocumentAccessorContextExtension, firestoreDocumentAccessorFactory, firestoreDocumentLoader, firestoreDocumentSnapshotPairsLoader, firestoreDocumentSnapshotPairsLoaderInstance, firestoreDummyKey, firestoreEncodedArray, firestoreEncodedObjectMap, firestoreEnum, firestoreEnumArray, firestoreField, firestoreFieldConfigToModelMapFunctionsRef, firestoreFixedItemPageIteration, firestoreFixedItemPageIterationFactory, firestoreIdBatchVerifierFactory, firestoreIdentityTypeArray, firestoreIdentityTypeArrayName, firestoreItemPageIteration, firestoreItemPageIterationFactory, firestoreLatLngString, firestoreMap, firestoreMapZoomLevel, firestoreModelId, firestoreModelIdArrayField, firestoreModelIdFromDocument, firestoreModelIdFromEmail, firestoreModelIdGrantedRoleArrayMap, firestoreModelIdGrantedRoleMap, firestoreModelIdOrKeyType, firestoreModelIdString, firestoreModelIdType, firestoreModelIdentity, firestoreModelIdentityTypeMap, firestoreModelIdsFromDocuments, firestoreModelIdsFromKey, firestoreModelKey, firestoreModelKeyArrayField, firestoreModelKeyCollectionName, firestoreModelKeyCollectionType, firestoreModelKeyCollectionTypeArray, firestoreModelKeyCollectionTypeArrayName, firestoreModelKeyCollectionTypePair, firestoreModelKeyEncodedGrantedRoleMap, firestoreModelKeyFactory, firestoreModelKeyFromDocument, firestoreModelKeyGrantedRoleArrayMap, firestoreModelKeyGrantedRoleMap, firestoreModelKeyPairObject, firestoreModelKeyParentKey, firestoreModelKeyParentKeyPartPairs, firestoreModelKeyPart, firestoreModelKeyPartPairs, firestoreModelKeyPartPairsKeyPath, firestoreModelKeyPartPairsPaths, firestoreModelKeyPath, firestoreModelKeyString, firestoreModelKeyType, firestoreModelKeyTypePair, firestoreModelKeys, firestoreModelKeysFromDocuments, firestoreModelType, firestoreNotificationBoxRecipient, firestoreNotificationBoxRecipientTemplateConfigRecord, firestoreNotificationItem, firestoreNotificationRecipientWithConfig, firestoreNotificationUserDefaultNotificationBoxRecipientConfig, firestoreNotificationUserNotificationBoxRecipientConfig, firestoreNumber, firestoreObjectArray, firestorePassThroughField, firestoreQueryConstraint, firestoreQueryConstraintFactory, firestoreQueryDocumentSnapshotPairsLoader, firestoreQueryFactory, firestoreSingleDocumentAccessor, firestoreString, firestoreSubObject, firestoreTimezoneString, firestoreUID, firestoreUniqueArray, firestoreUniqueKeyedArray, firestoreUniqueNumberArray, firestoreUniqueStringArray, firestoreUnitedStatesAddress, firestoreUnitedStatesAddressAssignFn, firestoreUnixDateTimeSecondsNumber, firestoreUpdateWithNoDataError, firestoreWebsiteFileLink, firestoreWebsiteFileLinkAssignFn, firestoreWebsiteFileLinkEncodedArray, firestoreWebsiteFileLinkObjectArray, firestoreWebsiteLink, firestoreWebsiteLinkArray, firestoreWebsiteLinkAssignFn, flatFirestoreModelKey, getDataFromDocumentSnapshots, getDocumentSnapshotData, getDocumentSnapshotDataPair, getDocumentSnapshotDataPairs, getDocumentSnapshotDataPairsWithData, getDocumentSnapshotDataTuples, getDocumentSnapshotPair, getDocumentSnapshotPairs, getDocumentSnapshots, getDocumentSnapshotsData, grantFullAccessIfAdmin, grantFullAccessIfAuthUserRelated, grantModelRolesIfAdmin, grantModelRolesIfAdminFunction, grantModelRolesIfAuthUserRelatedModelFunction, grantModelRolesIfFunction, grantModelRolesIfHasAuthRolesFactory, grantModelRolesIfHasAuthRolesFunction, grantModelRolesOnlyIfFunction, grantStorageFileRolesForUserAuthFunction, inContextFirebaseModelServiceFactory, inContextFirebaseModelsServiceFactory, inMemoryFirestoreCollectionCacheDelegate, inMemoryFirestoreContextCache, inMemoryFirestoreContextCacheFactory, incrementUpdateWithAccessorFunction, inferKeyFromTwoWayFlatFirestoreModelKey, inferNotificationBoxRelatedModelKey, inferStorageFileGroupRelatedModelKey, inferredTargetModelIdParamsType, inferredTargetModelParamsType, initializeAllApplicableNotificationBoxesParamsType, initializeAllApplicableNotificationSummariesParamsType, initializeAllApplicableStorageFileGroupsParamsType, initializeAllStorageFilesFromUploadsParamsType, initializeNotificationModelParamsType, initializeStorageFileFromUploadParamsType, initializeStorageFileModelParamsType, interceptAccessorFactoryFunction, isAdminInFirebaseModelContext, isClientFirebaseError, isCompleteNotificationSendState, isFirebaseStorageObjectNotFoundError, isFirestoreModelId, isFirestoreModelIdOrKey, isFirestoreModelKey, isOwnerOfUserRelatedModelInFirebaseModelContext, iterateFirestoreDocumentSnapshotBatches, iterateFirestoreDocumentSnapshotCheckpoints, iterateFirestoreDocumentSnapshotPairBatches, iterateFirestoreDocumentSnapshotPairs, iterateFirestoreDocumentSnapshots, iterateStorageListFiles, iterateStorageListFilesByEachFile, iterateStorageListFilesFactory, iterationQueryDocChangeWatcher, iterationQueryDocChangeWatcherChangeTypeForGroup, latestDataFromDocuments, latestSnapshotsFromDocuments, lazyFirebaseFunctionsFactory, limit, limitToLast, limitUploadFileTypeDeterminer, limitedFirestoreDocumentAccessorFactory, limitedFirestoreDocumentAccessorSnapshotCache, loadAllFirestoreDocumentSnapshot, loadAllFirestoreDocumentSnapshotPairs, loadDocumentsForDocumentReferences, loadDocumentsForDocumentReferencesFromValues, loadDocumentsForIds, loadDocumentsForIdsFromValues, loadDocumentsForKeys, loadDocumentsForKeysFromValues, loadDocumentsForSnapshots, loadDocumentsForValues, loadNotificationBoxDocumentForReferencePair, loadStorageFileGroupDocumentForReferencePair, makeDocuments, makeFirestoreCollection, makeFirestoreCollectionGroup, makeFirestoreCollectionWithParent, makeFirestoreContextCache, makeFirestoreItemPageIteratorDelegate, makeFirestoreQueryConstraintFunctionsDriver, makeRootSingleItemFirestoreCollection, makeSingleItemFirestoreCollection, mapDataFromSnapshot, mapHttpsCallable, mapLatestSnapshotsFromDocuments, mergeNotificationBoxRecipientTemplateConfigRecords, mergeNotificationBoxRecipientTemplateConfigs, mergeNotificationBoxRecipients, mergeNotificationSendMessagesResult, mergeNotificationUserDefaultNotificationBoxRecipientConfig, mergeNotificationUserNotificationBoxRecipientConfigs, modelStorageSlashPathFactory, modifyBeforeSetInterceptAccessorFactoryFunction, newDocuments, newNotificationBoxRecipientForUid, noContentNotificationMessageFunctionFactory, noStringFormatInStorageUploadOptionsError, noopFirestoreCollectionCache, noopFirestoreCollectionCacheDelegate, noopFirestoreCollectionDocumentCache, noopFirestoreContextCache, notificationBoxCollectionReference, notificationBoxConverter, notificationBoxFirestoreCollection, notificationBoxIdForModel, notificationBoxIdentity, notificationBoxModelCrudFunctionsConfig, notificationBoxRecipientTemplateConfigArrayEntryParamType, notificationBoxRecipientTemplateConfigArrayToRecord, notificationBoxRecipientTemplateConfigRecordToArray, notificationBoxesFlaggedForNeedsInitializationQuery, notificationBoxesFlaggedInvalidQuery, notificationCollectionReference, notificationCollectionReferenceFactory, notificationConverter, notificationFirestoreCollectionFactory, notificationFirestoreCollectionGroup, notificationFunctionMap, notificationFunctionTypeConfigMap, notificationIdentity, notificationMessageFunction, notificationRecipientParamsType, notificationSendExclusionCanSendFunction, notificationSendFlagsImplyIsComplete, notificationSubtaskComplete, notificationSummariesFlaggedForNeedsInitializationQuery, notificationSummaryCollectionReference, notificationSummaryConverter, notificationSummaryFirestoreCollection, notificationSummaryIdForModel, notificationSummaryIdForUidFunctionForRootFirestoreModelIdentity, notificationSummaryIdentity, notificationTaskCanRunNextCheckpoint, notificationTaskComplete, notificationTaskDelayRetry, notificationTaskFailed, notificationTaskPartiallyComplete, notificationTaskUniqueId, notificationTemplateTypeInfoRecord, notificationUserCollectionReference, notificationUserConverter, notificationUserFirestoreCollection, notificationUserHasExclusionQuery, notificationUserIdentity, notificationUsersFlaggedForNeedsSyncQuery, notificationWeekCollectionReference, notificationWeekCollectionReferenceFactory, notificationWeekConverter, notificationWeekFirestoreCollectionFactory, notificationWeekFirestoreCollectionGroup, notificationWeekIdentity, notificationsPastSendAtTimeQuery, notificationsReadyForCleanupQuery, offset, oidcClientEntriesByOwnerQuery, oidcEntriesByGrantIdQuery, oidcEntriesByUidQuery, oidcEntriesByUserCodeQuery, oidcEntriesWithTypeQuery, oidcEntryCollectionReference, oidcEntryConverter, oidcEntryFirestoreCollection, oidcEntryIdentity, oidcFunctionTypeConfigMap, oidcModelCrudFunctionsConfig, oidcModelFunctionMap, onCallCreateModelParams, onCallCreateModelResult, onCallCreateModelResultWithDocs, onCallDeleteModelParams, onCallDevelopmentParams, onCallReadModelParams, onCallTypedModelParams, onCallTypedModelParamsFunction, onCallUpdateModelParams, optionalFirestoreArray, optionalFirestoreBoolean, optionalFirestoreDate, optionalFirestoreDateNumber, optionalFirestoreEnum, optionalFirestoreField, optionalFirestoreNumber, optionalFirestoreString, optionalFirestoreUID, optionalFirestoreUnitedStatesAddress, optionalFirestoreUnixDateTimeSecondsNumber, orderBy, orderByDocumentId, processAllQueuedStorageFilesParamsType, processStorageFileParamsType, readFirestoreModelKey, readFirestoreModelKeyFromDocumentSnapshot, readLoggingFirestoreContextCache, readLoggingFirestoreContextCacheFactory, regenerateAllFlaggedStorageFileGroupsContentParamsType, regenerateStorageFileGroupContentParamsType, replaceConstraints, resyncAllNotificationUserParamsType, resyncNotificationUserParamsType, rotateOidcClientSecretParamsType, scheduledFunctionDevelopmentFirebaseFunctionParamsType, selectFromFirebaseModelsService, sendNotificationParamsType, sendQueuedNotificationsParamsType, separateConstraints, setIdAndKeyFromKeyIdRefOnDocumentData, setIdAndKeyFromSnapshotOnDocumentData, shouldSaveNotificationToNotificationWeek, shouldSendCreatedNotificationInput, snapshotConverterFunctions, snapshotStreamDataForAccessor, snapshotStreamForAccessor, sortNotificationItemsFunction, startAfter, startAt, startAtValue, storageFileCollectionReference, storageFileConverter, storageFileFirestoreCollection, storageFileFlaggedForSyncWithGroupsQuery, storageFileFunctionMap, storageFileFunctionTypeConfigMap, storageFileGroupCollectionReference, storageFileGroupConverter, storageFileGroupCreateStorageFileKeyFactory, storageFileGroupCreatedStorageFileKey, storageFileGroupEmbeddedFile, storageFileGroupFirestoreCollection, storageFileGroupFolderPath, storageFileGroupIdForModel, storageFileGroupIdentity, storageFileGroupZipFileStoragePath, storageFileGroupZipStorageFileKey, storageFileGroupsFlaggedForContentRegenerationQuery, storageFileGroupsFlaggedForNeedsInitializationQuery, storageFileGroupsFlaggedInvalidQuery, storageFileIdentity, storageFileModelCrudFunctionsConfig, storageFileProcessingNotificationTaskTemplate, storageFilePurposeAndUserQuery, storageFileUploadUserSimpleClaimsConfiguration, storageFilesQueuedForDeleteQuery, storageFilesQueuedForProcessingQuery, storageListFilesResultFactory, storageListFilesResultHasNoNextError, storagePathFactory, storedFileReaderFactory, streamDocumentSnapshotDataPairs, streamDocumentSnapshotDataPairsWithData, streamDocumentSnapshotsData, streamFromOnSnapshot, syncAllFlaggedStorageFilesWithGroupsParamsType, syncStorageFileWithGroupsParamsType, systemStateCollectionReference, systemStateConverter, systemStateFirestoreCollection, systemStateIdentity, targetModelIdParamsType, targetModelParamsType, twoWayFlatFirestoreModelKey, unreadNotificationItems, unsupportedFirestoreDriverFunctionError, updateNotificationBoxParamsType, updateNotificationBoxRecipientLikeParamsType, updateNotificationBoxRecipientParamsType, updateNotificationBoxRecipientTemplateConfigRecord, updateNotificationRecipient, updateNotificationSummaryParamsType, updateNotificationUserDefaultNotificationBoxRecipientConfig, updateNotificationUserDefaultNotificationBoxRecipientConfigParamsType, updateNotificationUserNotificationBoxRecipientConfigIfChanged, updateNotificationUserNotificationBoxRecipientConfigs, updateNotificationUserNotificationBoxRecipientParamsType, updateNotificationUserNotificationSendExclusions, updateNotificationUserParamsType, updateOidcClientFieldParamsType, updateOidcClientParamsType, updateStorageFileGroupEntryParamsType, updateStorageFileGroupParamsType, updateStorageFileParamsType, updateWithAccessorUpdateAndConverterFunction, uploadFileWithStream, useContextAuth, useContextAuthUid, useDocumentSnapshot, useDocumentSnapshotData, useFirebaseModelsService, userUploadsFolderSlashPathFactory, userUploadsFolderStoragePathFactory, where, whereDateIsAfter, whereDateIsAfterWithSort, whereDateIsBefore, whereDateIsBeforeWithSort, whereDateIsBetween, whereDateIsInRange, whereDateIsOnOrAfter, whereDateIsOnOrAfterWithSort, whereDateIsOnOrBefore, whereDateIsOnOrBeforeWithSort, whereDocumentId, whereStringHasRootIdentityModelKey, whereStringValueHasPrefix };
|
|
18930
|
+
export { ALL_OIDC_TOKEN_ENDPOINT_AUTH_METHOD_OPTIONS, ALL_STORAGE_FILE_NOTIFICATION_TASK_TYPES, ALL_USER_UPLOADS_FOLDER_NAME, ALL_USER_UPLOADS_FOLDER_PATH, ALREADY_EXISTS_ERROR_CODE, AbstractFirestoreDocument, AbstractFirestoreDocumentDataAccessorWrapper, AbstractFirestoreDocumentWithParent, AppNotificationTemplateTypeInfoRecordService, BAD_DOCUMENT_QUERY_CURSOR_ERROR_CODE, BAD_REQUEST_ERROR_CODE, BASE_MODEL_STORAGE_FILE_PATH, CALL_MODEL_APP_FUNCTION_KEY, CONFLICT_ERROR_CODE, COPY_USER_RELATED_DATA_ACCESSOR_FACTORY_FUNCTION, CREATE_NOTIFICATION_ID_REQUIRED_ERROR_CODE, ContextGrantedModelRolesReaderInstance, DBX_FIREBASE_SERVER_NO_AUTH_ERROR_CODE, DBX_FIREBASE_SERVER_NO_UID_ERROR_CODE, 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_NOTIFICATION_TASK_NOTIFICATION_MODEL_KEY, DEFAULT_NOTIFICATION_TASK_SUBTASK_CLEANUP_RETRY_ATTEMPTS, DEFAULT_NOTIFICATION_TASK_SUBTASK_CLEANUP_RETRY_DELAY, DEFAULT_NOTIFICATION_TEMPLATE_TYPE, DEFAULT_ON_CALL_QUERY_MODEL_LIMIT, DEFAULT_QUERY_CHANGE_WATCHER_DELAY, DEFAULT_SINGLE_ITEM_FIRESTORE_COLLECTION_DOCUMENT_IDENTIFIER, DEFAULT_UPLOADED_FILE_TYPE_DETERMINATION_LEVEL, DEFAULT_WEBSITE_LINK, DOWNLOAD_MULTIPLE_STORAGE_FILES_MAX_FILES, DOWNLOAD_MULTIPLE_STORAGE_FILES_MIN_FILES, EMPTY_STORAGE_FILE_PURPOSE_SUBGROUP, EXACT_UPLOADED_FILE_TYPE_DETERMINATION_LEVEL, FIREBASE_AUTH_CREDENTIAL_ALREADY_IN_USE_ERROR, FIREBASE_AUTH_EMAIL_ALREADY_EXISTS_ERROR, FIREBASE_AUTH_EMAIL_ALREADY_IN_USE_ERROR, FIREBASE_AUTH_INVALID_PHONE_NUMBER_ERROR, FIREBASE_AUTH_NETWORK_REQUEST_ERROR, FIREBASE_AUTH_NETWORK_REQUEST_FAILED, FIREBASE_AUTH_PASSWORD_MAX_LENGTH, FIREBASE_AUTH_PASSWORD_MIN_LENGTH, FIREBASE_AUTH_PHONE_NUMBER_ALREADY_EXISTS_ERROR, FIREBASE_AUTH_PROVIDER_ALREADY_LINKED_ERROR, FIREBASE_AUTH_QUOTA_EXCEEDED_ERROR, 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_PERMISSION_DENIED_ERROR_CODE, 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, FORBIDDEN_ERROR_CODE, FirebaseDevelopmentFunctions, FirebaseModelPermissionServiceInstance, FirebaseServerError, FirestoreAccessorStreamMode, FirestoreDocumentContextType, HIGH_UPLOADED_FILE_TYPE_DETERMINATION_LEVEL, INTERNAL_SERVER_ERROR_CODE, IN_MEMORY_CACHE_DEFAULT_TTL, LOW_UPLOADED_FILE_TYPE_DETERMINATION_LEVEL, MAX_FIRESTORE_MAP_ZOOM_LEVEL_VALUE, MAX_ON_CALL_QUERY_MODEL_LIMIT, MIN_FIRESTORE_MAP_ZOOM_LEVEL_VALUE, MODEL_FUNCTION_FIREBASE_CRUD_FUNCTION_SPECIFIER_DEFAULT, MODEL_FUNCTION_FIREBASE_CRUD_FUNCTION_SPECIFIER_SPLITTER, MODEL_NOT_AVAILABLE_ERROR_CODE, MODEL_STORAGE_FILE_SLASH_PATH_FACTORY, ModifyBeforeSetFirestoreDocumentDataAccessorWrapper, NOTIFICATION_BOX_DOES_NOT_EXIST_ERROR_CODE, NOTIFICATION_BOX_EXCLUSION_TARGET_INVALID_ERROR_CODE, NOTIFICATION_BOX_EXISTS_FOR_MODEL_ERROR_CODE, NOTIFICATION_BOX_RECIPIENT_DOES_NOT_EXIST_ERROR_CODE, NOTIFICATION_MESSAGE_MAX_LENGTH, NOTIFICATION_MESSAGE_MIN_LENGTH, NOTIFICATION_MODEL_ALREADY_INITIALIZED_ERROR_CODE, NOTIFICATION_RECIPIENT_NAME_MAX_LENGTH, NOTIFICATION_RECIPIENT_NAME_MIN_LENGTH, NOTIFICATION_SUBJECT_MAX_LENGTH, NOTIFICATION_SUBJECT_MIN_LENGTH, NOTIFICATION_SUMMARY_EMBEDDED_NOTIFICATION_ITEM_MESSAGE_MAX_LENGTH, NOTIFICATION_SUMMARY_EMBEDDED_NOTIFICATION_ITEM_SUBJECT_MAX_LENGTH, NOTIFICATION_SUMMARY_ITEM_LIMIT, NOTIFICATION_TASK_SUBTASK_CHECKPOINT_CLEANUP, NOTIFICATION_TASK_SUBTASK_CHECKPOINT_PROCESSING, NOTIFICATION_USER_BLOCKED_FROM_BEING_ADD_TO_RECIPIENTS_ERROR_CODE, NOTIFICATION_USER_INVALID_UID_FOR_CREATE_ERROR_CODE, NOTIFICATION_USER_LOCKED_CONFIG_FROM_BEING_UPDATED_ERROR_CODE, NOTIFICATION_WEEK_NOTIFICATION_ITEM_LIMIT, NOT_FOUND_ERROR_CODE, NotificationBoxDocument, NotificationBoxRecipientFlag, NotificationBoxRecipientTemplateConfigBoolean, NotificationDocument, NotificationFirestoreCollections, NotificationFunctions, NotificationMessageFlag, NotificationRecipientSendFlag, NotificationSendState, NotificationSendType, NotificationSummaryDocument, NotificationUserDocument, NotificationWeekDocument, OIDC_ENTRY_CLIENT_TYPE, OidcEntryDocument, OidcModelFirestoreCollections, OidcModelFunctions, PERMISSION_DENIED_ERROR_CODE, PRIVATE_KEY_JWT_TOKEN_ENDPOINT_AUTH_METHOD, RUN_DEV_FUNCTION_APP_FUNCTION_KEY, SCHEDULED_FUNCTION_DEV_FUNCTION_SPECIFIER, STORAGEFILE_RELATED_FILE_METADATA_KEY, STORAGE_FILE_ALREADY_PROCESSED_ERROR_CODE, STORAGE_FILE_CANNOT_BE_DELETED_YET_ERROR_CODE, STORAGE_FILE_GROUP_CREATE_INPUT_ERROR_CODE, STORAGE_FILE_GROUP_QUEUED_FOR_INITIALIZATION_ERROR_CODE, STORAGE_FILE_GROUP_ROOT_FOLDER_PATH, STORAGE_FILE_GROUP_ZIP_FILE_PATH, STORAGE_FILE_GROUP_ZIP_INFO_JSON_FILE_NAME, STORAGE_FILE_GROUP_ZIP_STORAGE_FILE_PURPOSE, STORAGE_FILE_GROUP_ZIP_STORAGE_FILE_PURPOSE_CREATE_ZIP_SUBTASK, STORAGE_FILE_MODEL_ALREADY_INITIALIZED_ERROR_CODE, STORAGE_FILE_NOT_FLAGGED_FOR_DELETION_ERROR_CODE, STORAGE_FILE_NOT_FLAGGED_FOR_GROUPS_SYNC_ERROR_CODE, STORAGE_FILE_PROCESSING_NOTIFICATION_TASK_TYPE, STORAGE_FILE_PROCESSING_NOT_ALLOWED_FOR_INVALID_STATE_ERROR_CODE, STORAGE_FILE_PROCESSING_NOT_AVAILABLE_FOR_TYPE_ERROR_CODE, STORAGE_FILE_PROCESSING_NOT_QUEUED_FOR_PROCESSING_ERROR_CODE, STORAGE_FILE_PROCESSING_STUCK_THROTTLE_CHECK_MS, STORAGE_FILE_UPLOAD_USER_ROLE, ScheduledFunctionDevelopmentFirebaseFunctionListEntry, ScheduledFunctionDevelopmentFunctionTypeEnum, StorageFileCreationType, StorageFileDocument, StorageFileFirestoreCollections, StorageFileFunctions, StorageFileGroupDocument, StorageFileProcessingState, StorageFileState, StorageFileUploadStreamUnsupportedError, SystemStateDocument, SystemStateFirestoreCollections, UNAUTHENTICATED_ERROR_CODE, UNAVAILABLE_ERROR_CODE, UNAVAILABLE_OR_DEACTIVATED_FUNCTION_ERROR_CODE, UNKNOWN_MODEL_TYPE_ERROR_CODE, UPLOADED_FILE_DOES_NOT_EXIST_ERROR_CODE, UPLOADED_FILE_INITIALIZATION_DISCARDED_ERROR_CODE, UPLOADED_FILE_INITIALIZATION_FAILED_ERROR_CODE, UPLOADED_FILE_NOT_ALLOWED_TO_BE_INITIALIZED_ERROR_CODE, UPLOADS_FOLDER_PATH, _createNotificationDocumentFromPair, abstractSubscribeOrUnsubscribeToNotificationBoxParamsType, abstractSubscribeToNotificationBoxParamsType, addConstraintToBuilder, addOrReplaceLimitInConstraints, allChildDocumentsUnderParent, allChildDocumentsUnderParentPath, allChildDocumentsUnderRelativePath, allowDocumentSnapshotWithPathOnceFilter, allowedNotificationRecipients, appNotificationTemplateTypeInfoRecordService, applyExclusionsToNotificationUserNotificationBoxRecipientConfigs, arrayUpdateWithAccessorFunction, asTopLevelFieldPath, asTopLevelFieldPaths, assertFirestoreUpdateHasData, assertStorageUploadOptionsStringFormat, assignDateCellRangeFunction, assignDateCellScheduleFunction, assignUnitedStatesAddressFunction, assignWebsiteFileLinkFunction, assignWebsiteLinkFunction, buildFirebaseCollectionTypeModelTypeMap, calculateNsForNotificationUserNotificationBoxRecipientConfigs, calculateStorageFileGroupEmbeddedFileUpdate, calculateStorageFileGroupRegeneration, callModelFirebaseFunctionMapFactory, canQueueStorageFileForProcessing, childFirestoreModelKey, childFirestoreModelKeyPath, childFirestoreModelKeys, cleanupSentNotificationsParamsType, clientFirebaseFirestoreContextFactory, clientFirebaseStorageContextFactory, combineUploadFileTypeDeterminers, completeSubtaskProcessingAndScheduleCleanupTaskResult, contextGrantedModelRolesReader, contextGrantedModelRolesReaderDoesNotExistErrorMessage, contextGrantedModelRolesReaderPermissionErrorMessage, convertHttpsCallableErrorToReadableError, copyDocumentIdForUserRelatedModifierFunction, copyDocumentIdToFieldModifierFunction, copyStoragePath, copyUserRelatedDataAccessorFactoryFunction, copyUserRelatedDataModifierConfig, createNotificationBoxParamsType, createNotificationDocument, createNotificationDocumentIfSending, createNotificationDocumentPair, createNotificationSummaryParamsType, createNotificationTaskTemplate, createNotificationTemplate, createNotificationUserParamsType, createOidcClientFieldParamsType, createOidcClientParamsType, createStorageFileDocumentPair, createStorageFileDocumentPairFactory, createStorageFileGroupParamsType, createStorageFileParamsType, dataFromDocumentSnapshots, dataFromSnapshotStream, delayCompletion, deleteAllQueuedStorageFilesParamsType, deleteOidcClientParamsType, deleteStorageFileParamsType, determineByFileName, determineByFilePath, determineByFolderName, determineUserByFolder, determineUserByFolderWrapperFunction, determineUserByUserUploadsFolderWrapperFunction, developmentFirebaseFunctionMapFactory, directDataHttpsCallable, documentData, documentDataFunction, documentDataWithIdAndKey, documentReferenceFromDocument, documentReferencesFromDocuments, documentReferencesFromSnapshot, downloadMultipleStorageFilesFileParamsType, downloadMultipleStorageFilesParamsType, downloadStorageFileParamsType, effectiveNotificationBoxRecipientConfig, effectiveNotificationBoxRecipientTemplateConfig, endAt, endAtValue, endBefore, extendFirestoreCollectionWithSingleDocumentAccessor, filterConstraintsOfType, filterDisallowedFirestoreItemPageIteratorInputConstraints, 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, firestoreClientArrayUpdateToUpdateData, firestoreClientIncrementUpdateToUpdateData, firestoreCollectionDocumentCache, firestoreCollectionQueryFactory, firestoreContextFactory, firestoreDate, firestoreDateCellRange, firestoreDateCellRangeArray, firestoreDateCellRangeAssignFn, firestoreDateCellSchedule, firestoreDateCellScheduleAssignFn, firestoreDateNumber, firestoreDencoderArray, firestoreDencoderMap, firestoreDencoderStringArray, firestoreDocumentAccessorContextExtension, firestoreDocumentAccessorFactory, firestoreDocumentLoader, firestoreDocumentSnapshotPairsLoader, firestoreDocumentSnapshotPairsLoaderInstance, firestoreDummyKey, firestoreEncodedArray, firestoreEncodedObjectMap, firestoreEnum, firestoreEnumArray, firestoreField, firestoreFieldConfigToModelMapFunctionsRef, firestoreFixedItemPageIteration, firestoreFixedItemPageIterationFactory, firestoreIdBatchVerifierFactory, firestoreIdentityTypeArray, firestoreIdentityTypeArrayName, firestoreItemPageIteration, firestoreItemPageIterationFactory, firestoreLatLngString, firestoreMap, firestoreMapZoomLevel, firestoreModelId, firestoreModelIdArrayField, firestoreModelIdFromDocument, firestoreModelIdFromEmail, firestoreModelIdGrantedRoleArrayMap, firestoreModelIdGrantedRoleMap, firestoreModelIdOrKeyType, firestoreModelIdString, firestoreModelIdType, firestoreModelIdentity, firestoreModelIdentityTypeMap, firestoreModelIdsFromDocuments, firestoreModelIdsFromKey, firestoreModelKey, firestoreModelKeyArrayField, firestoreModelKeyCollectionName, firestoreModelKeyCollectionType, firestoreModelKeyCollectionTypeArray, firestoreModelKeyCollectionTypeArrayName, firestoreModelKeyCollectionTypePair, firestoreModelKeyEncodedGrantedRoleMap, firestoreModelKeyFactory, firestoreModelKeyFromDocument, firestoreModelKeyGrantedRoleArrayMap, firestoreModelKeyGrantedRoleMap, firestoreModelKeyPairObject, firestoreModelKeyParentKey, firestoreModelKeyParentKeyPartPairs, firestoreModelKeyPart, firestoreModelKeyPartPairs, firestoreModelKeyPartPairsKeyPath, firestoreModelKeyPartPairsPaths, firestoreModelKeyPath, firestoreModelKeyString, firestoreModelKeyType, firestoreModelKeyTypePair, firestoreModelKeys, firestoreModelKeysFromDocuments, firestoreModelType, firestoreNotificationBoxRecipient, firestoreNotificationBoxRecipientTemplateConfigRecord, firestoreNotificationItem, firestoreNotificationRecipientWithConfig, firestoreNotificationUserDefaultNotificationBoxRecipientConfig, firestoreNotificationUserNotificationBoxRecipientConfig, firestoreNumber, firestoreObjectArray, firestorePassThroughField, firestoreQueryConstraint, firestoreQueryConstraintFactory, firestoreQueryDocumentSnapshotPairsLoader, firestoreQueryFactory, firestoreSingleDocumentAccessor, firestoreString, firestoreSubObject, firestoreTimezoneString, firestoreUID, firestoreUniqueArray, firestoreUniqueKeyedArray, firestoreUniqueNumberArray, firestoreUniqueStringArray, firestoreUnitedStatesAddress, firestoreUnitedStatesAddressAssignFn, firestoreUnixDateTimeSecondsNumber, firestoreUpdateWithNoDataError, firestoreWebsiteFileLink, firestoreWebsiteFileLinkAssignFn, firestoreWebsiteFileLinkEncodedArray, firestoreWebsiteFileLinkObjectArray, firestoreWebsiteLink, firestoreWebsiteLinkArray, firestoreWebsiteLinkAssignFn, flatFirestoreModelKey, getDataFromDocumentSnapshots, getDocumentSnapshotData, getDocumentSnapshotDataPair, getDocumentSnapshotDataPairs, getDocumentSnapshotDataPairsWithData, getDocumentSnapshotDataTuples, getDocumentSnapshotPair, getDocumentSnapshotPairs, getDocumentSnapshots, getDocumentSnapshotsData, grantFullAccessIfAdmin, grantFullAccessIfAuthUserRelated, grantModelRolesIfAdmin, grantModelRolesIfAdminFunction, grantModelRolesIfAuthUserRelatedModelFunction, grantModelRolesIfFunction, grantModelRolesIfHasAuthRolesFactory, grantModelRolesIfHasAuthRolesFunction, grantModelRolesOnlyIfFunction, grantStorageFileRolesForUserAuthFunction, inContextFirebaseModelServiceFactory, inContextFirebaseModelsServiceFactory, inMemoryFirestoreCollectionCacheDelegate, inMemoryFirestoreContextCache, inMemoryFirestoreContextCacheFactory, incrementUpdateWithAccessorFunction, inferKeyFromTwoWayFlatFirestoreModelKey, inferNotificationBoxRelatedModelKey, inferStorageFileGroupRelatedModelKey, inferredTargetModelIdParamsType, inferredTargetModelParamsType, initializeAllApplicableNotificationBoxesParamsType, initializeAllApplicableNotificationSummariesParamsType, initializeAllApplicableStorageFileGroupsParamsType, initializeAllStorageFilesFromUploadsParamsType, initializeNotificationModelParamsType, initializeStorageFileFromUploadParamsType, initializeStorageFileModelParamsType, interceptAccessorFactoryFunction, isAdminInFirebaseModelContext, isClientFirebaseError, isCompleteNotificationSendState, isFirebaseStorageObjectNotFoundError, isFirestoreModelId, isFirestoreModelIdOrKey, isFirestoreModelKey, isOwnerOfUserRelatedModelInFirebaseModelContext, iterateFirestoreDocumentSnapshotBatches, iterateFirestoreDocumentSnapshotCheckpoints, iterateFirestoreDocumentSnapshotPairBatches, iterateFirestoreDocumentSnapshotPairs, iterateFirestoreDocumentSnapshots, iterateStorageListFiles, iterateStorageListFilesByEachFile, iterateStorageListFilesFactory, iterationQueryDocChangeWatcher, iterationQueryDocChangeWatcherChangeTypeForGroup, latestDataFromDocuments, latestSnapshotsFromDocuments, lazyFirebaseFunctionsFactory, limit, limitToLast, limitUploadFileTypeDeterminer, limitedFirestoreDocumentAccessorFactory, limitedFirestoreDocumentAccessorSnapshotCache, loadAllFirestoreDocumentSnapshot, loadAllFirestoreDocumentSnapshotPairs, loadDocumentsForDocumentReferences, loadDocumentsForDocumentReferencesFromValues, loadDocumentsForIds, loadDocumentsForIdsFromValues, loadDocumentsForKeys, loadDocumentsForKeysFromValues, loadDocumentsForSnapshots, loadDocumentsForValues, loadNotificationBoxDocumentForReferencePair, loadStorageFileGroupDocumentForReferencePair, makeDocuments, makeFirestoreCollection, makeFirestoreCollectionGroup, makeFirestoreCollectionWithParent, makeFirestoreContextCache, makeFirestoreItemPageIteratorDelegate, makeFirestoreQueryConstraintFunctionsDriver, makeRootSingleItemFirestoreCollection, makeSingleItemFirestoreCollection, mapDataFromSnapshot, mapHttpsCallable, mapLatestSnapshotsFromDocuments, mergeNotificationBoxRecipientTemplateConfigRecords, mergeNotificationBoxRecipientTemplateConfigs, mergeNotificationBoxRecipients, mergeNotificationSendMessagesResult, mergeNotificationUserDefaultNotificationBoxRecipientConfig, mergeNotificationUserNotificationBoxRecipientConfigs, modelStorageSlashPathFactory, modifyBeforeSetInterceptAccessorFactoryFunction, newDocuments, newNotificationBoxRecipientForUid, noContentNotificationMessageFunctionFactory, noStringFormatInStorageUploadOptionsError, noopFirestoreCollectionCache, noopFirestoreCollectionCacheDelegate, noopFirestoreCollectionDocumentCache, noopFirestoreContextCache, notificationBoxCollectionReference, notificationBoxConverter, notificationBoxFirestoreCollection, notificationBoxIdForModel, notificationBoxIdentity, notificationBoxModelCrudFunctionsConfig, notificationBoxRecipientTemplateConfigArrayEntryParamType, notificationBoxRecipientTemplateConfigArrayToRecord, notificationBoxRecipientTemplateConfigRecordToArray, notificationBoxesFlaggedForNeedsInitializationQuery, notificationBoxesFlaggedInvalidQuery, notificationCollectionReference, notificationCollectionReferenceFactory, notificationConverter, notificationFirestoreCollectionFactory, notificationFirestoreCollectionGroup, notificationFunctionMap, notificationFunctionTypeConfigMap, notificationIdentity, notificationMessageFunction, notificationRecipientParamsType, notificationSendExclusionCanSendFunction, notificationSendFlagsImplyIsComplete, notificationSubtaskComplete, notificationSummariesFlaggedForNeedsInitializationQuery, notificationSummaryCollectionReference, notificationSummaryConverter, notificationSummaryFirestoreCollection, notificationSummaryIdForModel, notificationSummaryIdForUidFunctionForRootFirestoreModelIdentity, notificationSummaryIdentity, notificationTaskCanRunNextCheckpoint, notificationTaskComplete, notificationTaskDelayRetry, notificationTaskFailed, notificationTaskPartiallyComplete, notificationTaskUniqueId, notificationTemplateTypeInfoRecord, notificationUserCollectionReference, notificationUserConverter, notificationUserFirestoreCollection, notificationUserHasExclusionQuery, notificationUserIdentity, notificationUsersFlaggedForNeedsSyncQuery, notificationWeekCollectionReference, notificationWeekCollectionReferenceFactory, notificationWeekConverter, notificationWeekFirestoreCollectionFactory, notificationWeekFirestoreCollectionGroup, notificationWeekIdentity, notificationsPastSendAtTimeQuery, notificationsReadyForCleanupQuery, offset, oidcClientEntriesByOwnerQuery, oidcEntriesByGrantIdQuery, oidcEntriesByUidQuery, oidcEntriesByUserCodeQuery, oidcEntriesWithTypeQuery, oidcEntryCollectionReference, oidcEntryConverter, oidcEntryFirestoreCollection, oidcEntryIdentity, oidcFunctionTypeConfigMap, oidcModelCrudFunctionsConfig, oidcModelFunctionMap, onCallCreateModelParams, onCallCreateModelResult, onCallCreateModelResultWithDocs, onCallDeleteModelParams, onCallDevelopmentParams, onCallQueryModelParams, onCallReadModelParams, onCallTypedModelParams, onCallTypedModelParamsFunction, onCallUpdateModelParams, optionalFirestoreArray, optionalFirestoreBoolean, optionalFirestoreDate, optionalFirestoreDateNumber, optionalFirestoreEnum, optionalFirestoreField, optionalFirestoreNumber, optionalFirestoreString, optionalFirestoreUID, optionalFirestoreUnitedStatesAddress, optionalFirestoreUnixDateTimeSecondsNumber, orderBy, orderByDocumentId, processAllQueuedStorageFilesParamsType, processStorageFileParamsType, readFirestoreModelKey, readFirestoreModelKeyFromDocumentSnapshot, readLoggingFirestoreContextCache, readLoggingFirestoreContextCacheFactory, regenerateAllFlaggedStorageFileGroupsContentParamsType, regenerateStorageFileGroupContentParamsType, replaceConstraints, resyncAllNotificationUserParamsType, resyncNotificationUserParamsType, rotateOidcClientSecretParamsType, scheduledFunctionDevelopmentFirebaseFunctionParamsType, selectFromFirebaseModelsService, sendNotificationParamsType, sendQueuedNotificationsParamsType, separateConstraints, setIdAndKeyFromKeyIdRefOnDocumentData, setIdAndKeyFromSnapshotOnDocumentData, shouldSaveNotificationToNotificationWeek, shouldSendCreatedNotificationInput, snapshotConverterFunctions, snapshotStreamDataForAccessor, snapshotStreamForAccessor, sortNotificationItemsFunction, startAfter, startAt, startAtValue, storageFileCollectionReference, storageFileConverter, storageFileFirestoreCollection, storageFileFlaggedForSyncWithGroupsQuery, storageFileFunctionMap, storageFileFunctionTypeConfigMap, storageFileGroupCollectionReference, storageFileGroupConverter, storageFileGroupCreateStorageFileKeyFactory, storageFileGroupCreatedStorageFileKey, storageFileGroupEmbeddedFile, storageFileGroupFirestoreCollection, storageFileGroupFolderPath, storageFileGroupIdForModel, storageFileGroupIdentity, storageFileGroupZipFileStoragePath, storageFileGroupZipStorageFileKey, storageFileGroupsFlaggedForContentRegenerationQuery, storageFileGroupsFlaggedForNeedsInitializationQuery, storageFileGroupsFlaggedInvalidQuery, storageFileIdentity, storageFileModelCrudFunctionsConfig, storageFileProcessingNotificationTaskTemplate, storageFilePurposeAndUserQuery, storageFileUploadUserSimpleClaimsConfiguration, storageFilesQueuedForDeleteQuery, storageFilesQueuedForProcessingQuery, storageListFilesResultFactory, storageListFilesResultHasNoNextError, storagePathFactory, storedFileReaderFactory, streamDocumentSnapshotDataPairs, streamDocumentSnapshotDataPairsWithData, streamDocumentSnapshotsData, streamFromOnSnapshot, syncAllFlaggedStorageFilesWithGroupsParamsType, syncStorageFileWithGroupsParamsType, systemStateCollectionReference, systemStateConverter, systemStateFirestoreCollection, systemStateIdentity, targetModelIdParamsType, targetModelParamsType, twoWayFlatFirestoreModelKey, unreadNotificationItems, unsupportedFirestoreDriverFunctionError, updateNotificationBoxParamsType, updateNotificationBoxRecipientLikeParamsType, updateNotificationBoxRecipientParamsType, updateNotificationBoxRecipientTemplateConfigRecord, updateNotificationRecipient, updateNotificationSummaryParamsType, updateNotificationUserDefaultNotificationBoxRecipientConfig, updateNotificationUserDefaultNotificationBoxRecipientConfigParamsType, updateNotificationUserNotificationBoxRecipientConfigIfChanged, updateNotificationUserNotificationBoxRecipientConfigs, updateNotificationUserNotificationBoxRecipientParamsType, updateNotificationUserNotificationSendExclusions, updateNotificationUserParamsType, updateOidcClientFieldParamsType, updateOidcClientParamsType, updateStorageFileGroupEntryParamsType, updateStorageFileGroupParamsType, updateStorageFileParamsType, updateWithAccessorUpdateAndConverterFunction, uploadFileWithStream, useContextAuth, useContextAuthUid, useDocumentSnapshot, useDocumentSnapshotData, useFirebaseModelsService, userUploadsFolderSlashPathFactory, userUploadsFolderStoragePathFactory, where, whereDateIsAfter, whereDateIsAfterWithSort, whereDateIsBefore, whereDateIsBeforeWithSort, whereDateIsBetween, whereDateIsInRange, whereDateIsOnOrAfter, whereDateIsOnOrAfterWithSort, whereDateIsOnOrBefore, whereDateIsOnOrBeforeWithSort, whereDocumentId, whereStringHasRootIdentityModelKey, whereStringValueHasPrefix };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/firebase",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.7.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/util": "13.
|
|
21
|
-
"@dereekb/date": "13.
|
|
22
|
-
"@dereekb/model": "13.
|
|
23
|
-
"@dereekb/rxjs": "13.
|
|
20
|
+
"@dereekb/util": "13.7.0",
|
|
21
|
+
"@dereekb/date": "13.7.0",
|
|
22
|
+
"@dereekb/model": "13.7.0",
|
|
23
|
+
"@dereekb/rxjs": "13.7.0",
|
|
24
24
|
"@firebase/rules-unit-testing": "5.0.0",
|
|
25
25
|
"arktype": "^2.2.0",
|
|
26
26
|
"date-fns": "^4.0.0",
|
|
@@ -48,6 +48,13 @@ export declare const FIREBASE_AUTH_CREDENTIAL_ALREADY_IN_USE_ERROR = "auth/crede
|
|
|
48
48
|
* Error code when an email address is already in use by another account during linking.
|
|
49
49
|
*/
|
|
50
50
|
export declare const FIREBASE_AUTH_EMAIL_ALREADY_IN_USE_ERROR = "auth/email-already-in-use";
|
|
51
|
+
/**
|
|
52
|
+
* Error code when the quota for updating account information has been exceeded.
|
|
53
|
+
*
|
|
54
|
+
* This typically occurs when too many account update operations (e.g., updateUser, setCustomUserClaims)
|
|
55
|
+
* are performed in a short time window.
|
|
56
|
+
*/
|
|
57
|
+
export declare const FIREBASE_AUTH_QUOTA_EXCEEDED_ERROR = "auth/quota-exceeded";
|
|
51
58
|
/**
|
|
52
59
|
* Converts a {@link FirebaseAuthError} into a user-friendly {@link ReadableError} with a human-readable message.
|
|
53
60
|
*
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Error code for unauthenticated (401) requests.
|
|
3
|
+
*/
|
|
4
|
+
export declare const UNAUTHENTICATED_ERROR_CODE = "UNAUTHENTICATED";
|
|
5
|
+
/**
|
|
6
|
+
* Error code for forbidden (403) requests.
|
|
7
|
+
*/
|
|
8
|
+
export declare const FORBIDDEN_ERROR_CODE = "FORBIDDEN";
|
|
9
|
+
/**
|
|
10
|
+
* Error code for permission-denied (403) requests.
|
|
11
|
+
*/
|
|
12
|
+
export declare const PERMISSION_DENIED_ERROR_CODE = "PERMISSION_DENIED";
|
|
13
|
+
/**
|
|
14
|
+
* Error code for not-found (404) requests.
|
|
15
|
+
*/
|
|
16
|
+
export declare const NOT_FOUND_ERROR_CODE = "NOT_FOUND";
|
|
17
|
+
/**
|
|
18
|
+
* Error code for a Firestore document that does not exist (404).
|
|
19
|
+
*/
|
|
20
|
+
export declare const MODEL_NOT_AVAILABLE_ERROR_CODE = "MODEL_NOT_AVAILABLE";
|
|
21
|
+
/**
|
|
22
|
+
* Error code for bad-request (400) responses.
|
|
23
|
+
*/
|
|
24
|
+
export declare const BAD_REQUEST_ERROR_CODE = "BAD_REQUEST";
|
|
25
|
+
/**
|
|
26
|
+
* Error code for precondition-conflict (409) responses.
|
|
27
|
+
*/
|
|
28
|
+
export declare const CONFLICT_ERROR_CODE = "CONFLICT";
|
|
29
|
+
/**
|
|
30
|
+
* Error code for already-exists (409) responses.
|
|
31
|
+
*/
|
|
32
|
+
export declare const ALREADY_EXISTS_ERROR_CODE = "ALREADY_EXISTS";
|
|
33
|
+
/**
|
|
34
|
+
* Error code for unavailable (503) responses.
|
|
35
|
+
*/
|
|
36
|
+
export declare const UNAVAILABLE_ERROR_CODE = "UNAVAILABLE";
|
|
37
|
+
/**
|
|
38
|
+
* Error code for deactivated or unavailable functions (501).
|
|
39
|
+
*/
|
|
40
|
+
export declare const UNAVAILABLE_OR_DEACTIVATED_FUNCTION_ERROR_CODE = "UNAVAILABLE_OR_DEACTIVATED_FUNCTION";
|
|
41
|
+
/**
|
|
42
|
+
* Error code for internal server errors (500).
|
|
43
|
+
*/
|
|
44
|
+
export declare const INTERNAL_SERVER_ERROR_CODE = "INTERNAL_ERROR";
|
|
@@ -4,7 +4,7 @@ import { type FirestoreModelKey, type FirestoreModelType, type FirestoreModelTyp
|
|
|
4
4
|
/**
|
|
5
5
|
* Standard CRUD call types used by the `callModel` Firebase function pattern.
|
|
6
6
|
*/
|
|
7
|
-
export type KnownOnCallFunctionType = 'create' | 'read' | 'update' | 'delete';
|
|
7
|
+
export type KnownOnCallFunctionType = 'create' | 'read' | 'update' | 'delete' | 'query';
|
|
8
8
|
/**
|
|
9
9
|
* Call type identifier — one of the standard CRUD types or a custom string.
|
|
10
10
|
*/
|
|
@@ -82,6 +82,10 @@ export declare const onCallUpdateModelParams: OnCallTypeModelParamsFunction;
|
|
|
82
82
|
* Pre-configured OnCallTypedModelParamsFunctions for 'delete'
|
|
83
83
|
*/
|
|
84
84
|
export declare const onCallDeleteModelParams: OnCallTypeModelParamsFunction;
|
|
85
|
+
/**
|
|
86
|
+
* Pre-configured OnCallTypedModelParamsFunctions for 'query'
|
|
87
|
+
*/
|
|
88
|
+
export declare const onCallQueryModelParams: OnCallTypeModelParamsFunction;
|
|
85
89
|
/**
|
|
86
90
|
* Key used on the front-end and backend that refers to the call function.
|
|
87
91
|
*/
|
|
@@ -102,6 +106,80 @@ export type OnCallUpdateModelParams<T = unknown> = OnCallTypedModelParams<T>;
|
|
|
102
106
|
* OnCallTypedModelParams for Delete calls.
|
|
103
107
|
*/
|
|
104
108
|
export type OnCallDeleteModelParams<T = unknown> = OnCallTypedModelParams<T>;
|
|
109
|
+
/**
|
|
110
|
+
* OnCallTypedModelParams for Query calls.
|
|
111
|
+
*/
|
|
112
|
+
export type OnCallQueryModelParams<T extends OnCallQueryModelRequestParams = OnCallQueryModelRequestParams> = OnCallTypedModelParams<T>;
|
|
113
|
+
/**
|
|
114
|
+
* Default maximum items per page for query operations.
|
|
115
|
+
*/
|
|
116
|
+
export declare const DEFAULT_ON_CALL_QUERY_MODEL_LIMIT = 50;
|
|
117
|
+
/**
|
|
118
|
+
* Absolute maximum items per page for query operations. Prevents unbounded queries.
|
|
119
|
+
*/
|
|
120
|
+
export declare const MAX_ON_CALL_QUERY_MODEL_LIMIT = 200;
|
|
121
|
+
/**
|
|
122
|
+
* Base request parameters that all query handler input types must include.
|
|
123
|
+
*
|
|
124
|
+
* Provides cursor-based pagination fields. Custom query handlers extend this
|
|
125
|
+
* with additional filter fields specific to their model type.
|
|
126
|
+
*
|
|
127
|
+
* @example
|
|
128
|
+
* ```typescript
|
|
129
|
+
* interface QueryGuestbooksParams extends OnCallQueryModelRequestParams {
|
|
130
|
+
* readonly name?: string;
|
|
131
|
+
* readonly published?: boolean;
|
|
132
|
+
* }
|
|
133
|
+
* ```
|
|
134
|
+
*/
|
|
135
|
+
export interface OnCallQueryModelRequestParams {
|
|
136
|
+
/**
|
|
137
|
+
* Maximum number of items to return per page.
|
|
138
|
+
*
|
|
139
|
+
* Clamped server-side to {@link MAX_ON_CALL_QUERY_MODEL_LIMIT}.
|
|
140
|
+
* Defaults to {@link DEFAULT_ON_CALL_QUERY_MODEL_LIMIT} when omitted.
|
|
141
|
+
*/
|
|
142
|
+
readonly limit?: number;
|
|
143
|
+
/**
|
|
144
|
+
* Firestore model key of the last document from the previous page.
|
|
145
|
+
*
|
|
146
|
+
* When provided, the query resumes after the document at this key.
|
|
147
|
+
* Obtained from {@link OnCallQueryModelResult.cursorDocumentKey}.
|
|
148
|
+
*/
|
|
149
|
+
readonly cursorDocumentKey?: FirestoreModelKey;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Standard result returned by model query operations.
|
|
153
|
+
*
|
|
154
|
+
* Includes the matched documents and cursor information for pagination.
|
|
155
|
+
*
|
|
156
|
+
* @typeParam T - The document data type.
|
|
157
|
+
*/
|
|
158
|
+
export interface OnCallQueryModelResult<T = unknown> {
|
|
159
|
+
/**
|
|
160
|
+
* The matched documents' data for this page.
|
|
161
|
+
*/
|
|
162
|
+
readonly results: readonly T[];
|
|
163
|
+
/**
|
|
164
|
+
* The keys of the matched documents, in the same order as {@link results}.
|
|
165
|
+
*/
|
|
166
|
+
readonly keys: readonly FirestoreModelKey[];
|
|
167
|
+
/**
|
|
168
|
+
* Total number of results returned in this page.
|
|
169
|
+
*/
|
|
170
|
+
readonly count: number;
|
|
171
|
+
/**
|
|
172
|
+
* Firestore model key of the last document in this page.
|
|
173
|
+
*
|
|
174
|
+
* Pass this value as the `cursorDocumentKey` field in the next query request to fetch the next page.
|
|
175
|
+
* Undefined when there are no more results.
|
|
176
|
+
*/
|
|
177
|
+
readonly cursorDocumentKey?: FirestoreModelKey;
|
|
178
|
+
/**
|
|
179
|
+
* Whether there are more results after this page.
|
|
180
|
+
*/
|
|
181
|
+
readonly hasMore: boolean;
|
|
182
|
+
}
|
|
105
183
|
/**
|
|
106
184
|
* Standard result returned by model create operations, containing the key(s) of the created document(s).
|
|
107
185
|
*/
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Error code for a model type string that has no registered handler.
|
|
3
|
+
*/
|
|
4
|
+
export declare const UNKNOWN_MODEL_TYPE_ERROR_CODE = "UNKNOWN_MODEL_TYPE";
|
|
5
|
+
/**
|
|
6
|
+
* Error code for an invalid or inaccessible cursor document key in a query request.
|
|
7
|
+
*/
|
|
8
|
+
export declare const BAD_DOCUMENT_QUERY_CURSOR_ERROR_CODE = "BAD_DOCUMENT_QUERY_CURSOR";
|
|
@@ -27,7 +27,7 @@ export declare const oidcEntryIdentity: import("../..").RootFirestoreModelIdenti
|
|
|
27
27
|
*
|
|
28
28
|
* Used as the discriminator in the {@link OidcEntry.type} field.
|
|
29
29
|
*/
|
|
30
|
-
export type OidcEntryType = 'Session' | 'AccessToken' | 'AuthorizationCode' | 'RefreshToken' | 'DeviceCode' | 'ClientCredentials' | 'Client' | 'InitialAccessToken' | 'RegistrationAccessToken' | 'Interaction' | 'ReplayDetection' | 'PushedAuthorizationRequest' | 'Grant' | 'BackchannelAuthenticationRequest' |
|
|
30
|
+
export type OidcEntryType = 'Session' | 'AccessToken' | 'AuthorizationCode' | 'RefreshToken' | 'DeviceCode' | 'ClientCredentials' | 'Client' | 'InitialAccessToken' | 'RegistrationAccessToken' | 'Interaction' | 'ReplayDetection' | 'PushedAuthorizationRequest' | 'Grant' | 'BackchannelAuthenticationRequest' | string;
|
|
31
31
|
/**
|
|
32
32
|
* Type value for Client adapter entries.
|
|
33
33
|
*/
|
package/test/index.cjs.js
CHANGED
|
@@ -10,7 +10,7 @@ var rxjs = require('@dereekb/rxjs');
|
|
|
10
10
|
var dateFns = require('date-fns');
|
|
11
11
|
var date = require('@dereekb/date');
|
|
12
12
|
var stream = require('stream');
|
|
13
|
-
var
|
|
13
|
+
var node_fs = require('node:fs');
|
|
14
14
|
|
|
15
15
|
function _array_like_to_array$2(arr, len) {
|
|
16
16
|
if (len == null || len > arr.length) len = arr.length;
|
|
@@ -10032,6 +10032,56 @@ function _ts_generator$1(thisArg, body) {
|
|
|
10032
10032
|
done();
|
|
10033
10033
|
});
|
|
10034
10034
|
}));
|
|
10035
|
+
it('should reach end when limit equals total document count.', test.callbackTest(function(done) {
|
|
10036
|
+
var limit = testDocumentCount; // exactly matches item count
|
|
10037
|
+
var iteration = firestoreIteration({
|
|
10038
|
+
limit: limit
|
|
10039
|
+
});
|
|
10040
|
+
var accumulator = firebase.firebaseQuerySnapshotAccumulator(iteration);
|
|
10041
|
+
// First page should return all items but not yet know it's the end
|
|
10042
|
+
iteration.nextPage().then(function() {
|
|
10043
|
+
// Load the next page which should discover end via empty snapshot
|
|
10044
|
+
iteration.nextPage().then(function() {
|
|
10045
|
+
sub.subscription = iteration.latestState$.pipe(rxjs$1.filter(function(x) {
|
|
10046
|
+
return rxjs.isLoadingStateFinishedLoading(x);
|
|
10047
|
+
}), rxjs$1.first()).subscribe(function(state) {
|
|
10048
|
+
expect(state.hasNextPage).toBe(false);
|
|
10049
|
+
// Verify all items loaded without duplicates
|
|
10050
|
+
rxjs.flattenAccumulatorResultItemArray(accumulator).pipe(rxjs$1.first()).subscribe(function(values) {
|
|
10051
|
+
expect(values.length).toBe(testDocumentCount);
|
|
10052
|
+
expect(util.arrayContainsDuplicateValue(values.map(function(x) {
|
|
10053
|
+
return x.id;
|
|
10054
|
+
}))).toBe(false);
|
|
10055
|
+
done();
|
|
10056
|
+
});
|
|
10057
|
+
});
|
|
10058
|
+
});
|
|
10059
|
+
});
|
|
10060
|
+
}));
|
|
10061
|
+
it('should reach end when loading all pages with limit as a divisor of total count.', test.callbackTest(function(done) {
|
|
10062
|
+
var limit = 5; // divides evenly into testDocumentCount (10)
|
|
10063
|
+
var expectedPages = testDocumentCount / limit; // 2 full pages + 1 empty to discover end
|
|
10064
|
+
var iteration = firestoreIteration({
|
|
10065
|
+
limit: limit
|
|
10066
|
+
});
|
|
10067
|
+
var accumulator = firebase.firebaseQuerySnapshotAccumulator(iteration);
|
|
10068
|
+
// Load pages until the iterator reaches the end
|
|
10069
|
+
rxjs.iteratorNextPageUntilPage(iteration, expectedPages + 1).then(function(page) {
|
|
10070
|
+
sub.subscription = iteration.latestState$.pipe(rxjs$1.filter(function(x) {
|
|
10071
|
+
return rxjs.isLoadingStateFinishedLoading(x);
|
|
10072
|
+
}), rxjs$1.first()).subscribe(function(state) {
|
|
10073
|
+
expect(state.hasNextPage).toBe(false);
|
|
10074
|
+
// Verify all items loaded without duplicates
|
|
10075
|
+
rxjs.flattenAccumulatorResultItemArray(accumulator).pipe(rxjs$1.first()).subscribe(function(values) {
|
|
10076
|
+
expect(values.length).toBe(testDocumentCount);
|
|
10077
|
+
expect(util.arrayContainsDuplicateValue(values.map(function(x) {
|
|
10078
|
+
return x.id;
|
|
10079
|
+
}))).toBe(false);
|
|
10080
|
+
done();
|
|
10081
|
+
});
|
|
10082
|
+
});
|
|
10083
|
+
});
|
|
10084
|
+
}));
|
|
10035
10085
|
});
|
|
10036
10086
|
describe('with inferEndOfResultsFromPageSize=false', function() {
|
|
10037
10087
|
it('should not mark the result as the end even when fewer items are returned than the limit.', test.callbackTest(function(done) {
|
|
@@ -11108,7 +11158,7 @@ function _ts_generator(thisArg, body) {
|
|
|
11108
11158
|
];
|
|
11109
11159
|
testFilePath = "".concat(__dirname, "/assets/testpng.png");
|
|
11110
11160
|
contentType = 'image/png';
|
|
11111
|
-
testFileStream =
|
|
11161
|
+
testFileStream = node_fs.createReadStream(testFilePath, {});
|
|
11112
11162
|
return [
|
|
11113
11163
|
4,
|
|
11114
11164
|
firebase.uploadFileWithStream(uploadFile, testFileStream, {
|
package/test/index.esm.js
CHANGED
|
@@ -4,11 +4,11 @@ import { firebaseStorageContextFactory, firestoreContextFactory, firebaseFiresto
|
|
|
4
4
|
import { setLogLevel } from 'firebase/firestore';
|
|
5
5
|
import { AbstractTestContextFixture, instanceWrapTestContextFactory, AbstractWrappedFixtureWithInstance, itShouldFail, expectFail, callbackTest } from '@dereekb/util/test';
|
|
6
6
|
import { firstValueFrom, filter, skip, from, first, map, switchMap } from 'rxjs';
|
|
7
|
-
import { SubscriptionObject,
|
|
7
|
+
import { SubscriptionObject, isLoadingStateFinishedLoading, flattenAccumulatorResultItemArray, iteratorNextPageUntilPage, accumulatorCurrentPageListLoadingState, accumulatorFlattenPageListLoadingState } from '@dereekb/rxjs';
|
|
8
8
|
import { addDays, startOfDay, addHours } from 'date-fns';
|
|
9
9
|
import { DateRangeType } from '@dereekb/date';
|
|
10
10
|
import { Readable } from 'stream';
|
|
11
|
-
import { createReadStream } from 'fs';
|
|
11
|
+
import { createReadStream } from 'node:fs';
|
|
12
12
|
|
|
13
13
|
function _array_like_to_array$2(arr, len) {
|
|
14
14
|
if (len == null || len > arr.length) len = arr.length;
|
|
@@ -10030,6 +10030,56 @@ function _ts_generator$1(thisArg, body) {
|
|
|
10030
10030
|
done();
|
|
10031
10031
|
});
|
|
10032
10032
|
}));
|
|
10033
|
+
it('should reach end when limit equals total document count.', callbackTest(function(done) {
|
|
10034
|
+
var limit = testDocumentCount; // exactly matches item count
|
|
10035
|
+
var iteration = firestoreIteration({
|
|
10036
|
+
limit: limit
|
|
10037
|
+
});
|
|
10038
|
+
var accumulator = firebaseQuerySnapshotAccumulator(iteration);
|
|
10039
|
+
// First page should return all items but not yet know it's the end
|
|
10040
|
+
iteration.nextPage().then(function() {
|
|
10041
|
+
// Load the next page which should discover end via empty snapshot
|
|
10042
|
+
iteration.nextPage().then(function() {
|
|
10043
|
+
sub.subscription = iteration.latestState$.pipe(filter(function(x) {
|
|
10044
|
+
return isLoadingStateFinishedLoading(x);
|
|
10045
|
+
}), first()).subscribe(function(state) {
|
|
10046
|
+
expect(state.hasNextPage).toBe(false);
|
|
10047
|
+
// Verify all items loaded without duplicates
|
|
10048
|
+
flattenAccumulatorResultItemArray(accumulator).pipe(first()).subscribe(function(values) {
|
|
10049
|
+
expect(values.length).toBe(testDocumentCount);
|
|
10050
|
+
expect(arrayContainsDuplicateValue(values.map(function(x) {
|
|
10051
|
+
return x.id;
|
|
10052
|
+
}))).toBe(false);
|
|
10053
|
+
done();
|
|
10054
|
+
});
|
|
10055
|
+
});
|
|
10056
|
+
});
|
|
10057
|
+
});
|
|
10058
|
+
}));
|
|
10059
|
+
it('should reach end when loading all pages with limit as a divisor of total count.', callbackTest(function(done) {
|
|
10060
|
+
var limit = 5; // divides evenly into testDocumentCount (10)
|
|
10061
|
+
var expectedPages = testDocumentCount / limit; // 2 full pages + 1 empty to discover end
|
|
10062
|
+
var iteration = firestoreIteration({
|
|
10063
|
+
limit: limit
|
|
10064
|
+
});
|
|
10065
|
+
var accumulator = firebaseQuerySnapshotAccumulator(iteration);
|
|
10066
|
+
// Load pages until the iterator reaches the end
|
|
10067
|
+
iteratorNextPageUntilPage(iteration, expectedPages + 1).then(function(page) {
|
|
10068
|
+
sub.subscription = iteration.latestState$.pipe(filter(function(x) {
|
|
10069
|
+
return isLoadingStateFinishedLoading(x);
|
|
10070
|
+
}), first()).subscribe(function(state) {
|
|
10071
|
+
expect(state.hasNextPage).toBe(false);
|
|
10072
|
+
// Verify all items loaded without duplicates
|
|
10073
|
+
flattenAccumulatorResultItemArray(accumulator).pipe(first()).subscribe(function(values) {
|
|
10074
|
+
expect(values.length).toBe(testDocumentCount);
|
|
10075
|
+
expect(arrayContainsDuplicateValue(values.map(function(x) {
|
|
10076
|
+
return x.id;
|
|
10077
|
+
}))).toBe(false);
|
|
10078
|
+
done();
|
|
10079
|
+
});
|
|
10080
|
+
});
|
|
10081
|
+
});
|
|
10082
|
+
}));
|
|
10033
10083
|
});
|
|
10034
10084
|
describe('with inferEndOfResultsFromPageSize=false', function() {
|
|
10035
10085
|
it('should not mark the result as the end even when fewer items are returned than the limit.', callbackTest(function(done) {
|
package/test/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/firebase/test",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.7.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.7.0",
|
|
6
|
+
"@dereekb/firebase": "13.7.0",
|
|
7
|
+
"@dereekb/model": "13.7.0",
|
|
8
|
+
"@dereekb/rxjs": "13.7.0",
|
|
9
|
+
"@dereekb/util": "13.7.0",
|
|
10
10
|
"@firebase/rules-unit-testing": "5.0.0",
|
|
11
11
|
"date-fns": "^4.0.0",
|
|
12
12
|
"firebase": "^12.0.0",
|