@dereekb/firebase 11.1.0 → 11.1.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 CHANGED
@@ -9831,14 +9831,14 @@ function createNotificationDocumentPair(input) {
9831
9831
  * @param infoArray
9832
9832
  * @returns
9833
9833
  */
9834
- function notificationTemplateTypeDetailsRecord(infoArray) {
9834
+ function notificationTemplateTypeInfoRecord(infoArray) {
9835
9835
  const record = {};
9836
9836
  infoArray.forEach(x => {
9837
9837
  const {
9838
9838
  type
9839
9839
  } = x;
9840
9840
  if (record[type]) {
9841
- throw new Error(`notificationTemplateTypeDetailsRecord(): duplicate NotificationTemplateType in record: ${type}`);
9841
+ throw new Error(`notificationTemplateTypeInfoRecord(): duplicate NotificationTemplateType in record: ${type}`);
9842
9842
  }
9843
9843
  record[type] = x;
9844
9844
  });
@@ -9847,33 +9847,47 @@ function notificationTemplateTypeDetailsRecord(infoArray) {
9847
9847
  class AppNotificationTemplateTypeInfoRecordService {}
9848
9848
  function appNotificationTemplateTypeInfoRecordService(appNotificationTemplateTypeInfoRecord) {
9849
9849
  const allNotificationModelIdentityValuesSet = new Set();
9850
- const notificationModelTypeDetailsMapBuilder = util.multiValueMapBuilder();
9851
- const targetModelTypeDetailsMapBuilder = util.multiValueMapBuilder();
9850
+ const notificationModelTypeInfoMapBuilder = util.multiValueMapBuilder();
9851
+ const targetModelTypeInfoMapBuilder = util.multiValueMapBuilder();
9852
9852
  const allKnownTemplateTypes = [];
9853
- const allKnownTemplateTypeDetails = [];
9853
+ const allKnownTemplateTypeInfo = [];
9854
9854
  Object.entries(appNotificationTemplateTypeInfoRecord).forEach(([_, details]) => {
9855
- var _details$targetModelI, _details$targetModelI2;
9856
9855
  const {
9857
- collectionType
9858
- } = details.notificationModelIdentity;
9859
- notificationModelTypeDetailsMapBuilder.add(collectionType, details);
9860
- targetModelTypeDetailsMapBuilder.add((_details$targetModelI = (_details$targetModelI2 = details.targetModelIdentity) == null ? void 0 : _details$targetModelI2.collectionType) != null ? _details$targetModelI : collectionType, details);
9861
- allNotificationModelIdentityValuesSet.add(details.notificationModelIdentity);
9862
- allKnownTemplateTypeDetails.push(details);
9856
+ notificationModelIdentity,
9857
+ targetModelIdentity,
9858
+ alternativeModelIdentities
9859
+ } = details;
9860
+ function addInfoForIdentity(modelIdentity, targetIdentity) {
9861
+ var _targetIdentity$colle;
9862
+ const {
9863
+ collectionType
9864
+ } = modelIdentity;
9865
+ notificationModelTypeInfoMapBuilder.add(collectionType, details);
9866
+ targetModelTypeInfoMapBuilder.add((_targetIdentity$colle = targetIdentity == null ? void 0 : targetIdentity.collectionType) != null ? _targetIdentity$colle : collectionType, details);
9867
+ allNotificationModelIdentityValuesSet.add(modelIdentity);
9868
+ }
9869
+ addInfoForIdentity(notificationModelIdentity, targetModelIdentity);
9870
+ if (alternativeModelIdentities != null) {
9871
+ util.asArray(alternativeModelIdentities).forEach(x => {
9872
+ var _x$altTargetModelIden;
9873
+ addInfoForIdentity(x.altNotificationModelIdentity, (_x$altTargetModelIden = x.altTargetModelIdentity) != null ? _x$altTargetModelIden : targetModelIdentity);
9874
+ });
9875
+ }
9876
+ allKnownTemplateTypeInfo.push(details);
9863
9877
  allKnownTemplateTypes.push(details.type);
9864
9878
  });
9865
9879
  const allNotificationModelIdentityValues = Array.from(allNotificationModelIdentityValuesSet);
9866
- const notificationModelTemplateDetailsMap = notificationModelTypeDetailsMapBuilder.map();
9867
- const targetModelTemplateDetailsMap = targetModelTypeDetailsMapBuilder.map();
9868
- const notificationModelTemplateTypesMap = new Map(Array.from(notificationModelTemplateDetailsMap.entries()).map(([k, x]) => [k, x.map(y => y.type)]));
9869
- const targetModelTemplateTypesMap = new Map(Array.from(targetModelTemplateDetailsMap.entries()).map(([k, x]) => [k, x.map(y => y.type)]));
9880
+ const notificationModelTemplateInfoMap = notificationModelTypeInfoMapBuilder.map();
9881
+ const targetModelTemplateInfoMap = targetModelTypeInfoMapBuilder.map();
9882
+ const notificationModelTemplateTypesMap = new Map(Array.from(notificationModelTemplateInfoMap.entries()).map(([k, x]) => [k, x.map(y => y.type)]));
9883
+ const targetModelTemplateTypesMap = new Map(Array.from(targetModelTemplateInfoMap.entries()).map(([k, x]) => [k, x.map(y => y.type)]));
9870
9884
  const service = {
9871
9885
  appNotificationTemplateTypeInfoRecord,
9872
9886
  getAllKnownTemplateTypes() {
9873
9887
  return allKnownTemplateTypes;
9874
9888
  },
9875
- getAllKnownTemplateTypeDetails() {
9876
- return allKnownTemplateTypeDetails;
9889
+ getAllKnownTemplateTypeInfo() {
9890
+ return allKnownTemplateTypeInfo;
9877
9891
  },
9878
9892
  getAllNotificationModelIdentityValues() {
9879
9893
  return allNotificationModelIdentityValues;
@@ -9884,11 +9898,11 @@ function appNotificationTemplateTypeInfoRecordService(appNotificationTemplateTyp
9884
9898
  const firestoreCollectionType = firestoreModelKeyCollectionType(modelKey);
9885
9899
  return (_notificationModelTem = notificationModelTemplateTypesMap.get(firestoreCollectionType)) != null ? _notificationModelTem : [];
9886
9900
  },
9887
- getTemplateTypesDetailsForNotificationModel(model) {
9901
+ getTemplateTypesInfoForNotificationModel(model) {
9888
9902
  var _notificationModelTem2;
9889
9903
  const modelKey = readFirestoreModelKey(model, true);
9890
9904
  const firestoreCollectionType = firestoreModelKeyCollectionType(modelKey);
9891
- return (_notificationModelTem2 = notificationModelTemplateDetailsMap.get(firestoreCollectionType)) != null ? _notificationModelTem2 : [];
9905
+ return (_notificationModelTem2 = notificationModelTemplateInfoMap.get(firestoreCollectionType)) != null ? _notificationModelTem2 : [];
9892
9906
  },
9893
9907
  getTemplateTypesForTargetModel(target) {
9894
9908
  var _targetModelTemplateT;
@@ -9896,15 +9910,28 @@ function appNotificationTemplateTypeInfoRecordService(appNotificationTemplateTyp
9896
9910
  const targetFirestoreCollectionType = firestoreModelKeyCollectionType(targetModelKey);
9897
9911
  return (_targetModelTemplateT = targetModelTemplateTypesMap.get(targetFirestoreCollectionType)) != null ? _targetModelTemplateT : [];
9898
9912
  },
9899
- getTemplateTypesDetailsForTargetModel(target) {
9900
- var _targetModelTemplateD;
9913
+ getTemplateTypesForTargetModelIdentity(identity) {
9914
+ var _targetModelTemplateT2;
9915
+ return (_targetModelTemplateT2 = targetModelTemplateTypesMap.get(identity.collectionName)) != null ? _targetModelTemplateT2 : [];
9916
+ },
9917
+ getTemplateTypeInfosForTargetModel(target) {
9918
+ var _targetModelTemplateI;
9901
9919
  const targetModelKey = readFirestoreModelKey(target, true);
9902
9920
  const targetFirestoreCollectionType = firestoreModelKeyCollectionType(targetModelKey);
9903
- return (_targetModelTemplateD = targetModelTemplateDetailsMap.get(targetFirestoreCollectionType)) != null ? _targetModelTemplateD : [];
9921
+ return (_targetModelTemplateI = targetModelTemplateInfoMap.get(targetFirestoreCollectionType)) != null ? _targetModelTemplateI : [];
9922
+ },
9923
+ getTemplateTypeInfosForTargetModelIdentity(identity) {
9924
+ var _targetModelTemplateI2;
9925
+ return (_targetModelTemplateI2 = targetModelTemplateInfoMap.get(identity.collectionName)) != null ? _targetModelTemplateI2 : [];
9904
9926
  }
9905
9927
  };
9906
9928
  return service;
9907
9929
  }
9930
+ // MARK: Compat
9931
+ /**
9932
+ * @deprecated use notificationTemplateTypeInfoRecord instead.
9933
+ */
9934
+ const notificationTemplateTypeDetailsRecord = notificationTemplateTypeInfoRecord;
9908
9935
 
9909
9936
  function _await(value, then, direct) {
9910
9937
  if (direct) {
@@ -10626,6 +10653,7 @@ exports.notificationSummaryIdForModel = notificationSummaryIdForModel;
10626
10653
  exports.notificationSummaryIdForUidFunctionForRootFirestoreModelIdentity = notificationSummaryIdForUidFunctionForRootFirestoreModelIdentity;
10627
10654
  exports.notificationSummaryIdentity = notificationSummaryIdentity;
10628
10655
  exports.notificationTemplateTypeDetailsRecord = notificationTemplateTypeDetailsRecord;
10656
+ exports.notificationTemplateTypeInfoRecord = notificationTemplateTypeInfoRecord;
10629
10657
  exports.notificationUserCollectionReference = notificationUserCollectionReference;
10630
10658
  exports.notificationUserConverter = notificationUserConverter;
10631
10659
  exports.notificationUserFirestoreCollection = notificationUserFirestoreCollection;
package/index.esm.js CHANGED
@@ -10865,6 +10865,18 @@ async function createNotificationDocumentIfSending(input) {
10865
10865
  }
10866
10866
  }
10867
10867
 
10868
+ /**
10869
+ * NotificationTemplateTypeInfoIdentityInfo alternative/derivative identity.
10870
+ *
10871
+ * For example, this model may be directly related to the identity in "notificationModelIdentity" but notifications are actually attached to the corresponding "altNotificationModelIdentity" or "altTargetModelIdentity".
10872
+ *
10873
+ * The alternative model should always have a NotificationBox associated with it.
10874
+ */
10875
+
10876
+ /**
10877
+ * NotificationTemplateTypeInfo identity info
10878
+ */
10879
+
10868
10880
  /**
10869
10881
  * Template type identifier of the notification.
10870
10882
  *
@@ -10883,14 +10895,14 @@ async function createNotificationDocumentIfSending(input) {
10883
10895
  * @param infoArray
10884
10896
  * @returns
10885
10897
  */
10886
- function notificationTemplateTypeDetailsRecord(infoArray) {
10898
+ function notificationTemplateTypeInfoRecord(infoArray) {
10887
10899
  const record = {};
10888
10900
  infoArray.forEach(x => {
10889
10901
  const {
10890
10902
  type
10891
10903
  } = x;
10892
10904
  if (record[type]) {
10893
- throw new Error(`notificationTemplateTypeDetailsRecord(): duplicate NotificationTemplateType in record: ${type}`);
10905
+ throw new Error(`notificationTemplateTypeInfoRecord(): duplicate NotificationTemplateType in record: ${type}`);
10894
10906
  }
10895
10907
  record[type] = x;
10896
10908
  });
@@ -10932,41 +10944,65 @@ class AppNotificationTemplateTypeInfoRecordService {
10932
10944
  *
10933
10945
  * @param model
10934
10946
  */
10947
+ /**
10948
+ * Returns all NotificationTemplateTypes that are associate with the given model identity.
10949
+ *
10950
+ * @param identity
10951
+ */
10935
10952
  /**
10936
10953
  * Returns all NotificationTemplateTypeInfo that are associate with the given model input.
10937
10954
  *
10938
10955
  * @param model
10939
10956
  */
10957
+ /**
10958
+ * Returns all NotificationTemplateTypeInfo that are associate with the given model identity.
10959
+ *
10960
+ * @param identity
10961
+ */
10940
10962
  }
10941
10963
  function appNotificationTemplateTypeInfoRecordService(appNotificationTemplateTypeInfoRecord) {
10942
10964
  const allNotificationModelIdentityValuesSet = new Set();
10943
- const notificationModelTypeDetailsMapBuilder = multiValueMapBuilder();
10944
- const targetModelTypeDetailsMapBuilder = multiValueMapBuilder();
10965
+ const notificationModelTypeInfoMapBuilder = multiValueMapBuilder();
10966
+ const targetModelTypeInfoMapBuilder = multiValueMapBuilder();
10945
10967
  const allKnownTemplateTypes = [];
10946
- const allKnownTemplateTypeDetails = [];
10968
+ const allKnownTemplateTypeInfo = [];
10947
10969
  Object.entries(appNotificationTemplateTypeInfoRecord).forEach(([_, details]) => {
10948
- var _details$targetModelI, _details$targetModelI2;
10949
10970
  const {
10950
- collectionType
10951
- } = details.notificationModelIdentity;
10952
- notificationModelTypeDetailsMapBuilder.add(collectionType, details);
10953
- targetModelTypeDetailsMapBuilder.add((_details$targetModelI = (_details$targetModelI2 = details.targetModelIdentity) == null ? void 0 : _details$targetModelI2.collectionType) != null ? _details$targetModelI : collectionType, details);
10954
- allNotificationModelIdentityValuesSet.add(details.notificationModelIdentity);
10955
- allKnownTemplateTypeDetails.push(details);
10971
+ notificationModelIdentity,
10972
+ targetModelIdentity,
10973
+ alternativeModelIdentities
10974
+ } = details;
10975
+ function addInfoForIdentity(modelIdentity, targetIdentity) {
10976
+ var _targetIdentity$colle;
10977
+ const {
10978
+ collectionType
10979
+ } = modelIdentity;
10980
+ notificationModelTypeInfoMapBuilder.add(collectionType, details);
10981
+ targetModelTypeInfoMapBuilder.add((_targetIdentity$colle = targetIdentity == null ? void 0 : targetIdentity.collectionType) != null ? _targetIdentity$colle : collectionType, details);
10982
+ allNotificationModelIdentityValuesSet.add(modelIdentity);
10983
+ }
10984
+ addInfoForIdentity(notificationModelIdentity, targetModelIdentity);
10985
+ if (alternativeModelIdentities != null) {
10986
+ asArray(alternativeModelIdentities).forEach(x => {
10987
+ var _x$altTargetModelIden;
10988
+ addInfoForIdentity(x.altNotificationModelIdentity, (_x$altTargetModelIden = x.altTargetModelIdentity) != null ? _x$altTargetModelIden : targetModelIdentity);
10989
+ });
10990
+ }
10991
+ allKnownTemplateTypeInfo.push(details);
10956
10992
  allKnownTemplateTypes.push(details.type);
10957
10993
  });
10958
10994
  const allNotificationModelIdentityValues = Array.from(allNotificationModelIdentityValuesSet);
10959
- const notificationModelTemplateDetailsMap = notificationModelTypeDetailsMapBuilder.map();
10960
- const targetModelTemplateDetailsMap = targetModelTypeDetailsMapBuilder.map();
10961
- const notificationModelTemplateTypesMap = new Map(Array.from(notificationModelTemplateDetailsMap.entries()).map(([k, x]) => [k, x.map(y => y.type)]));
10962
- const targetModelTemplateTypesMap = new Map(Array.from(targetModelTemplateDetailsMap.entries()).map(([k, x]) => [k, x.map(y => y.type)]));
10995
+ const notificationModelTemplateInfoMap = notificationModelTypeInfoMapBuilder.map();
10996
+ const targetModelTemplateInfoMap = targetModelTypeInfoMapBuilder.map();
10997
+ const notificationModelTemplateTypesMap = new Map(Array.from(notificationModelTemplateInfoMap.entries()).map(([k, x]) => [k, x.map(y => y.type)]));
10998
+ const targetModelTemplateTypesMap = new Map(Array.from(targetModelTemplateInfoMap.entries()).map(([k, x]) => [k, x.map(y => y.type)]));
10963
10999
  const service = {
10964
11000
  appNotificationTemplateTypeInfoRecord,
10965
11001
  getAllKnownTemplateTypes() {
10966
11002
  return allKnownTemplateTypes;
10967
11003
  },
10968
- getAllKnownTemplateTypeDetails() {
10969
- return allKnownTemplateTypeDetails;
11004
+ getAllKnownTemplateTypeInfo() {
11005
+ return allKnownTemplateTypeInfo;
10970
11006
  },
10971
11007
  getAllNotificationModelIdentityValues() {
10972
11008
  return allNotificationModelIdentityValues;
@@ -10977,11 +11013,11 @@ function appNotificationTemplateTypeInfoRecordService(appNotificationTemplateTyp
10977
11013
  const firestoreCollectionType = firestoreModelKeyCollectionType(modelKey);
10978
11014
  return (_notificationModelTem = notificationModelTemplateTypesMap.get(firestoreCollectionType)) != null ? _notificationModelTem : [];
10979
11015
  },
10980
- getTemplateTypesDetailsForNotificationModel(model) {
11016
+ getTemplateTypesInfoForNotificationModel(model) {
10981
11017
  var _notificationModelTem2;
10982
11018
  const modelKey = readFirestoreModelKey(model, true);
10983
11019
  const firestoreCollectionType = firestoreModelKeyCollectionType(modelKey);
10984
- return (_notificationModelTem2 = notificationModelTemplateDetailsMap.get(firestoreCollectionType)) != null ? _notificationModelTem2 : [];
11020
+ return (_notificationModelTem2 = notificationModelTemplateInfoMap.get(firestoreCollectionType)) != null ? _notificationModelTem2 : [];
10985
11021
  },
10986
11022
  getTemplateTypesForTargetModel(target) {
10987
11023
  var _targetModelTemplateT;
@@ -10989,16 +11025,30 @@ function appNotificationTemplateTypeInfoRecordService(appNotificationTemplateTyp
10989
11025
  const targetFirestoreCollectionType = firestoreModelKeyCollectionType(targetModelKey);
10990
11026
  return (_targetModelTemplateT = targetModelTemplateTypesMap.get(targetFirestoreCollectionType)) != null ? _targetModelTemplateT : [];
10991
11027
  },
10992
- getTemplateTypesDetailsForTargetModel(target) {
10993
- var _targetModelTemplateD;
11028
+ getTemplateTypesForTargetModelIdentity(identity) {
11029
+ var _targetModelTemplateT2;
11030
+ return (_targetModelTemplateT2 = targetModelTemplateTypesMap.get(identity.collectionName)) != null ? _targetModelTemplateT2 : [];
11031
+ },
11032
+ getTemplateTypeInfosForTargetModel(target) {
11033
+ var _targetModelTemplateI;
10994
11034
  const targetModelKey = readFirestoreModelKey(target, true);
10995
11035
  const targetFirestoreCollectionType = firestoreModelKeyCollectionType(targetModelKey);
10996
- return (_targetModelTemplateD = targetModelTemplateDetailsMap.get(targetFirestoreCollectionType)) != null ? _targetModelTemplateD : [];
11036
+ return (_targetModelTemplateI = targetModelTemplateInfoMap.get(targetFirestoreCollectionType)) != null ? _targetModelTemplateI : [];
11037
+ },
11038
+ getTemplateTypeInfosForTargetModelIdentity(identity) {
11039
+ var _targetModelTemplateI2;
11040
+ return (_targetModelTemplateI2 = targetModelTemplateInfoMap.get(identity.collectionName)) != null ? _targetModelTemplateI2 : [];
10997
11041
  }
10998
11042
  };
10999
11043
  return service;
11000
11044
  }
11001
11045
 
11046
+ // MARK: Compat
11047
+ /**
11048
+ * @deprecated use notificationTemplateTypeInfoRecord instead.
11049
+ */
11050
+ const notificationTemplateTypeDetailsRecord = notificationTemplateTypeInfoRecord;
11051
+
11002
11052
  /**
11003
11053
  * Contextual information when
11004
11054
  */
@@ -11346,4 +11396,4 @@ function systemStateFirestoreCollection(firestoreContext, converters) {
11346
11396
  });
11347
11397
  }
11348
11398
 
11349
- export { 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, CleanupSentNotificationsParams, ContextGrantedModelRolesReaderInstance, CreateNotificationBoxParams, CreateNotificationSummaryParams, CreateNotificationUserParams, 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_TEMPLATE_TYPE, 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_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, InferredTargetModelIdParams, InferredTargetModelParams, InitializeAllApplicableNotificationBoxesParams, InitializeAllApplicableNotificationSummariesParams, InitializeNotificationModelParams, 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, 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_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, NotificationBoxRecipientTemplateConfigArrayEntryParam, NotificationBoxRecipientTemplateConfigBoolean, NotificationDocument, NotificationFirestoreCollections, NotificationFunctions, NotificationMessageFlag, NotificationRecipientParams, NotificationRecipientSendFlag, NotificationSendState, NotificationSendType, NotificationSummaryDocument, NotificationType, NotificationUserDocument, NotificationWeekDocument, RUN_DEV_FUNCTION_APP_FUNCTION_KEY, ResyncAllNotificationUserParams, ResyncNotificationUserParams, SCHEDULED_FUNCTION_DEV_FUNCTION_SPECIFIER, ScheduledFunctionDevelopmentFirebaseFunctionListEntry, ScheduledFunctionDevelopmentFirebaseFunctionParams, ScheduledFunctionDevelopmentFunctionTypeEnum, SendNotificationParams, SendQueuedNotificationsParams, SystemStateDocument, SystemStateFirestoreCollections, TargetModelIdParams, TargetModelParams, UpdateNotificationBoxParams, UpdateNotificationBoxRecipientLikeParams, UpdateNotificationBoxRecipientParams, UpdateNotificationSummaryParams, UpdateNotificationUserDefaultNotificationBoxRecipientConfigParams, UpdateNotificationUserNotificationBoxRecipientParams, UpdateNotificationUserParams, addConstraintToBuilder, addOrReplaceLimitInConstraints, allChildDocumentsUnderParent, allChildDocumentsUnderParentPath, allChildDocumentsUnderRelativePath, allowDocumentSnapshotWithPathOnceFilter, allowedNotificationRecipients, appNotificationTemplateTypeInfoRecordService, asTopLevelFieldPath, asTopLevelFieldPaths, assertFirestoreUpdateHasData, assertStorageUploadOptionsStringFormat, assignDateCellRangeFunction, assignDateCellScheduleFunction, assignUnitedStatesAddressFunction, assignWebsiteFileLinkFunction, assignWebsiteLinkFunction, buildFirebaseCollectionTypeModelTypeMap, callModelFirebaseFunctionMapFactory, childFirestoreModelKey, childFirestoreModelKeyPath, childFirestoreModelKeys, clientFirebaseFirestoreContextFactory, clientFirebaseStorageContextFactory, contextGrantedModelRolesReader, contextGrantedModelRolesReaderDoesNotExistErrorMessage, contextGrantedModelRolesReaderPermissionErrorMessage, convertHttpsCallableErrorToReadableError, copyDocumentIdForUserRelatedModifierFunction, copyDocumentIdToFieldModifierFunction, copyUserRelatedDataAccessorFactoryFunction, copyUserRelatedDataModifierConfig, createNotificationDocument, createNotificationDocumentIfSending, createNotificationDocumentPair, createNotificationTemplate, dataFromDocumentSnapshots, dataFromSnapshotStream, developmentFirebaseFunctionMapFactory, directDataHttpsCallable, documentData, documentDataFunction, documentDataWithIdAndKey, documentReferenceFromDocument, documentReferencesFromDocuments, documentReferencesFromSnapshot, effectiveNotificationBoxRecipientConfig, effectiveNotificationBoxRecipientTemplateConfig, 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, firestoreNotificationBoxRecipient, firestoreNotificationBoxRecipientTemplateConfigRecord, firestoreNotificationItem, firestoreNotificationRecipientWithConfig, firestoreNotificationUserDefaultNotificationBoxRecipientConfig, firestoreNotificationUserNotificationBoxRecipientConfig, 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, getDocumentSnapshotDataPairsWithData, getDocumentSnapshotDataTuples, getDocumentSnapshotPair, getDocumentSnapshotPairs, getDocumentSnapshots, getDocumentSnapshotsData, grantFullAccessIfAdmin, grantFullAccessIfAuthUserRelated, grantModelRolesIfAdmin, grantModelRolesIfAdminFunction, grantModelRolesIfAuthUserRelatedModelFunction, grantModelRolesIfFunction, grantModelRolesIfHasAuthRolesFactory, grantModelRolesIfHasAuthRolesFunction, grantModelRolesOnlyIfFunction, inContextFirebaseModelServiceFactory, inContextFirebaseModelsServiceFactory, incrementUpdateWithAccessorFunction, inferKeyFromTwoWayFlatFirestoreModelKey, inferNotificationBoxRelatedModelKey, interceptAccessorFactoryFunction, isAdminInFirebaseModelContext, isClientFirebaseError, isCompleteNotificationSendState, 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, mergeNotificationBoxRecipientTemplateConfigRecords, mergeNotificationBoxRecipientTemplateConfigs, mergeNotificationBoxRecipients, mergeNotificationSendMessagesResult, mergeNotificationUserDefaultNotificationBoxRecipientConfig, mergeNotificationUserNotificationBoxRecipientConfigs, modelStorageSlashPathFactory, modifyBeforeSetInterceptAccessorFactoryFunction, newDocuments, newNotificationBoxRecipientForUid, noContentNotificationMessageFunctionFactory, noStringFormatInStorageUploadOptionsError, notificationBoxCollectionReference, notificationBoxConverter, notificationBoxFirestoreCollection, notificationBoxIdForModel, notificationBoxIdentity, notificationBoxModelCrudFunctionsConfig, notificationBoxRecipientTemplateConfigArrayToRecord, notificationBoxRecipientTemplateConfigRecordToArray, notificationBoxesFlaggedForNeedsInitializationQuery, notificationBoxesFlaggedInvalidQuery, notificationCollectionReference, notificationCollectionReferenceFactory, notificationConverter, notificationFirestoreCollectionFactory, notificationFirestoreCollectionGroup, notificationFunctionMap, notificationFunctionTypeConfigMap, notificationIdentity, notificationMessageFunction, notificationSendFlagsImplyIsComplete, notificationSummariesFlaggedForNeedsInitializationQuery, notificationSummaryCollectionReference, notificationSummaryConverter, notificationSummaryFirestoreCollection, notificationSummaryIdForModel, notificationSummaryIdForUidFunctionForRootFirestoreModelIdentity, notificationSummaryIdentity, notificationTemplateTypeDetailsRecord, notificationUserCollectionReference, notificationUserConverter, notificationUserFirestoreCollection, notificationUserIdentity, notificationUsersFlaggedForNeedsSyncQuery, notificationWeekCollectionReference, notificationWeekCollectionReferenceFactory, notificationWeekConverter, notificationWeekFirestoreCollectionFactory, notificationWeekFirestoreCollectionGroup, notificationWeekIdentity, notificationsPastSendAtTimeQuery, notificationsReadyForCleanupQuery, 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, shouldSaveNotificationToNotificationWeek, shouldSendCreatedNotificationInput, snapshotConverterFunctions, snapshotStreamDataForAccessor, snapshotStreamForAccessor, sortNotificationItemsFunction, startAfter, startAt, startAtValue, storageListFilesResultFactory, storageListFilesResultHasNoNextError, storagePathFactory, streamFromOnSnapshot, systemStateCollectionReference, systemStateConverter, systemStateFirestoreCollection, systemStateIdentity, twoWayFlatFirestoreModelKey, unreadNotificationItems, unsupportedFirestoreDriverFunctionError, updateNotificationBoxRecipientTemplateConfigRecord, updateNotificationRecipient, updateNotificationUserDefaultNotificationBoxRecipientConfig, updateNotificationUserNotificationBoxRecipientConfigIfChanged, updateNotificationUserNotificationBoxRecipientConfigs, updateWithAccessorUpdateAndConverterFunction, useContextAuth, useContextAuthUid, useDocumentSnapshot, useDocumentSnapshotData, useFirebaseModelsService, where, whereDateIsAfter, whereDateIsAfterWithSort, whereDateIsBefore, whereDateIsBeforeWithSort, whereDateIsBetween, whereDateIsInRange, whereDateIsOnOrAfter, whereDateIsOnOrAfterWithSort, whereDateIsOnOrBefore, whereDateIsOnOrBeforeWithSort, whereDocumentId, whereStringHasRootIdentityModelKey, whereStringValueHasPrefix };
11399
+ export { 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, CleanupSentNotificationsParams, ContextGrantedModelRolesReaderInstance, CreateNotificationBoxParams, CreateNotificationSummaryParams, CreateNotificationUserParams, 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_TEMPLATE_TYPE, 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_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, InferredTargetModelIdParams, InferredTargetModelParams, InitializeAllApplicableNotificationBoxesParams, InitializeAllApplicableNotificationSummariesParams, InitializeNotificationModelParams, 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, 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_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, NotificationBoxRecipientTemplateConfigArrayEntryParam, NotificationBoxRecipientTemplateConfigBoolean, NotificationDocument, NotificationFirestoreCollections, NotificationFunctions, NotificationMessageFlag, NotificationRecipientParams, NotificationRecipientSendFlag, NotificationSendState, NotificationSendType, NotificationSummaryDocument, NotificationType, NotificationUserDocument, NotificationWeekDocument, RUN_DEV_FUNCTION_APP_FUNCTION_KEY, ResyncAllNotificationUserParams, ResyncNotificationUserParams, SCHEDULED_FUNCTION_DEV_FUNCTION_SPECIFIER, ScheduledFunctionDevelopmentFirebaseFunctionListEntry, ScheduledFunctionDevelopmentFirebaseFunctionParams, ScheduledFunctionDevelopmentFunctionTypeEnum, SendNotificationParams, SendQueuedNotificationsParams, SystemStateDocument, SystemStateFirestoreCollections, TargetModelIdParams, TargetModelParams, UpdateNotificationBoxParams, UpdateNotificationBoxRecipientLikeParams, UpdateNotificationBoxRecipientParams, UpdateNotificationSummaryParams, UpdateNotificationUserDefaultNotificationBoxRecipientConfigParams, UpdateNotificationUserNotificationBoxRecipientParams, UpdateNotificationUserParams, addConstraintToBuilder, addOrReplaceLimitInConstraints, allChildDocumentsUnderParent, allChildDocumentsUnderParentPath, allChildDocumentsUnderRelativePath, allowDocumentSnapshotWithPathOnceFilter, allowedNotificationRecipients, appNotificationTemplateTypeInfoRecordService, asTopLevelFieldPath, asTopLevelFieldPaths, assertFirestoreUpdateHasData, assertStorageUploadOptionsStringFormat, assignDateCellRangeFunction, assignDateCellScheduleFunction, assignUnitedStatesAddressFunction, assignWebsiteFileLinkFunction, assignWebsiteLinkFunction, buildFirebaseCollectionTypeModelTypeMap, callModelFirebaseFunctionMapFactory, childFirestoreModelKey, childFirestoreModelKeyPath, childFirestoreModelKeys, clientFirebaseFirestoreContextFactory, clientFirebaseStorageContextFactory, contextGrantedModelRolesReader, contextGrantedModelRolesReaderDoesNotExistErrorMessage, contextGrantedModelRolesReaderPermissionErrorMessage, convertHttpsCallableErrorToReadableError, copyDocumentIdForUserRelatedModifierFunction, copyDocumentIdToFieldModifierFunction, copyUserRelatedDataAccessorFactoryFunction, copyUserRelatedDataModifierConfig, createNotificationDocument, createNotificationDocumentIfSending, createNotificationDocumentPair, createNotificationTemplate, dataFromDocumentSnapshots, dataFromSnapshotStream, developmentFirebaseFunctionMapFactory, directDataHttpsCallable, documentData, documentDataFunction, documentDataWithIdAndKey, documentReferenceFromDocument, documentReferencesFromDocuments, documentReferencesFromSnapshot, effectiveNotificationBoxRecipientConfig, effectiveNotificationBoxRecipientTemplateConfig, 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, firestoreNotificationBoxRecipient, firestoreNotificationBoxRecipientTemplateConfigRecord, firestoreNotificationItem, firestoreNotificationRecipientWithConfig, firestoreNotificationUserDefaultNotificationBoxRecipientConfig, firestoreNotificationUserNotificationBoxRecipientConfig, 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, getDocumentSnapshotDataPairsWithData, getDocumentSnapshotDataTuples, getDocumentSnapshotPair, getDocumentSnapshotPairs, getDocumentSnapshots, getDocumentSnapshotsData, grantFullAccessIfAdmin, grantFullAccessIfAuthUserRelated, grantModelRolesIfAdmin, grantModelRolesIfAdminFunction, grantModelRolesIfAuthUserRelatedModelFunction, grantModelRolesIfFunction, grantModelRolesIfHasAuthRolesFactory, grantModelRolesIfHasAuthRolesFunction, grantModelRolesOnlyIfFunction, inContextFirebaseModelServiceFactory, inContextFirebaseModelsServiceFactory, incrementUpdateWithAccessorFunction, inferKeyFromTwoWayFlatFirestoreModelKey, inferNotificationBoxRelatedModelKey, interceptAccessorFactoryFunction, isAdminInFirebaseModelContext, isClientFirebaseError, isCompleteNotificationSendState, 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, mergeNotificationBoxRecipientTemplateConfigRecords, mergeNotificationBoxRecipientTemplateConfigs, mergeNotificationBoxRecipients, mergeNotificationSendMessagesResult, mergeNotificationUserDefaultNotificationBoxRecipientConfig, mergeNotificationUserNotificationBoxRecipientConfigs, modelStorageSlashPathFactory, modifyBeforeSetInterceptAccessorFactoryFunction, newDocuments, newNotificationBoxRecipientForUid, noContentNotificationMessageFunctionFactory, noStringFormatInStorageUploadOptionsError, notificationBoxCollectionReference, notificationBoxConverter, notificationBoxFirestoreCollection, notificationBoxIdForModel, notificationBoxIdentity, notificationBoxModelCrudFunctionsConfig, notificationBoxRecipientTemplateConfigArrayToRecord, notificationBoxRecipientTemplateConfigRecordToArray, notificationBoxesFlaggedForNeedsInitializationQuery, notificationBoxesFlaggedInvalidQuery, notificationCollectionReference, notificationCollectionReferenceFactory, notificationConverter, notificationFirestoreCollectionFactory, notificationFirestoreCollectionGroup, notificationFunctionMap, notificationFunctionTypeConfigMap, notificationIdentity, notificationMessageFunction, notificationSendFlagsImplyIsComplete, notificationSummariesFlaggedForNeedsInitializationQuery, notificationSummaryCollectionReference, notificationSummaryConverter, notificationSummaryFirestoreCollection, notificationSummaryIdForModel, notificationSummaryIdForUidFunctionForRootFirestoreModelIdentity, notificationSummaryIdentity, notificationTemplateTypeDetailsRecord, notificationTemplateTypeInfoRecord, notificationUserCollectionReference, notificationUserConverter, notificationUserFirestoreCollection, notificationUserIdentity, notificationUsersFlaggedForNeedsSyncQuery, notificationWeekCollectionReference, notificationWeekCollectionReferenceFactory, notificationWeekConverter, notificationWeekFirestoreCollectionFactory, notificationWeekFirestoreCollectionGroup, notificationWeekIdentity, notificationsPastSendAtTimeQuery, notificationsReadyForCleanupQuery, 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, shouldSaveNotificationToNotificationWeek, shouldSendCreatedNotificationInput, snapshotConverterFunctions, snapshotStreamDataForAccessor, snapshotStreamForAccessor, sortNotificationItemsFunction, startAfter, startAt, startAtValue, storageListFilesResultFactory, storageListFilesResultHasNoNextError, storagePathFactory, streamFromOnSnapshot, systemStateCollectionReference, systemStateConverter, systemStateFirestoreCollection, systemStateIdentity, twoWayFlatFirestoreModelKey, unreadNotificationItems, unsupportedFirestoreDriverFunctionError, updateNotificationBoxRecipientTemplateConfigRecord, updateNotificationRecipient, updateNotificationUserDefaultNotificationBoxRecipientConfig, updateNotificationUserNotificationBoxRecipientConfigIfChanged, updateNotificationUserNotificationBoxRecipientConfigs, 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,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/firebase",
3
- "version": "11.1.0",
3
+ "version": "11.1.1",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./src/index.d.ts",
@@ -1,30 +1,31 @@
1
- import { type Maybe } from '@dereekb/util';
1
+ import { type Maybe, type ArrayOrValue } from '@dereekb/util';
2
2
  import { type FirestoreModelIdentity, type ReadFirestoreModelKeyInput } from '../../common';
3
3
  import { type NotificationTemplateType } from './notification.id';
4
4
  /**
5
- * Template type identifier of the notification.
5
+ * NotificationTemplateTypeInfoIdentityInfo alternative/derivative identity.
6
6
  *
7
- * Provides default information for the notification.
7
+ * For example, this model may be directly related to the identity in "notificationModelIdentity" but notifications are actually attached to the corresponding "altNotificationModelIdentity" or "altTargetModelIdentity".
8
8
  *
9
- * Types are generally intended to be handled case-insensitively by notification services.
9
+ * The alternative model should always have a NotificationBox associated with it.
10
10
  */
11
- export interface NotificationTemplateTypeInfo {
12
- /**
13
- * Notification type
14
- */
15
- readonly type: NotificationTemplateType;
11
+ export interface NotificationTemplateTypeInfoIdentityInfoAlternativeModelIdentityPair {
16
12
  /**
17
- * The notification's name
13
+ * Alternative notification model identity.
18
14
  */
19
- readonly name: string;
15
+ readonly altNotificationModelIdentity: FirestoreModelIdentity;
20
16
  /**
21
- * Description of the notification's content.
17
+ * Corresponding alternative target model identity, if applicable.
22
18
  */
23
- readonly description: string;
19
+ readonly altTargetModelIdentity?: Maybe<FirestoreModelIdentity>;
20
+ }
21
+ /**
22
+ * NotificationTemplateTypeInfo identity info
23
+ */
24
+ export interface NotificationTemplateTypeInfoIdentityInfo {
24
25
  /**
25
26
  * Model identity that this notification is for.
26
27
  *
27
- * This model will have a NotificationBox associated with it.
28
+ * This model will have a NotificationBox associated with it if no alternativeNotificationModelIdentity values are provided.
28
29
  */
29
30
  readonly notificationModelIdentity: FirestoreModelIdentity;
30
31
  /**
@@ -35,6 +36,37 @@ export interface NotificationTemplateTypeInfo {
35
36
  * This model will not have a NotificationBox associated with it, and is typically a child model of the notificationModelIdentity.
36
37
  */
37
38
  readonly targetModelIdentity?: Maybe<FirestoreModelIdentity>;
39
+ /**
40
+ * One or more alternative/derivative model identities that this notification can target.
41
+ */
42
+ readonly alternativeModelIdentities?: Maybe<ArrayOrValue<NotificationTemplateTypeInfoIdentityInfoAlternativeModelIdentityPair>>;
43
+ /**
44
+ * Whether or not the system should expect to send notifications to the "notificationModelIdentity" if one or more "alternativeModelIdentities" values are provided.
45
+ *
46
+ * Defaults to false.
47
+ */
48
+ readonly sendToNotificationModelIdentity?: Maybe<boolean>;
49
+ }
50
+ /**
51
+ * Template type identifier of the notification.
52
+ *
53
+ * Provides default information for the notification.
54
+ *
55
+ * Types are generally intended to be handled case-insensitively by notification services.
56
+ */
57
+ export interface NotificationTemplateTypeInfo extends NotificationTemplateTypeInfoIdentityInfo {
58
+ /**
59
+ * Notification type
60
+ */
61
+ readonly type: NotificationTemplateType;
62
+ /**
63
+ * The notification's name
64
+ */
65
+ readonly name: string;
66
+ /**
67
+ * Description of the notification's content.
68
+ */
69
+ readonly description: string;
38
70
  }
39
71
  /**
40
72
  * Record of NotificationTemplateTypeInfo keyed by type.
@@ -46,7 +78,7 @@ export type NotificationTemplateTypeInfoRecord = Record<NotificationTemplateType
46
78
  * @param infoArray
47
79
  * @returns
48
80
  */
49
- export declare function notificationTemplateTypeDetailsRecord(infoArray: NotificationTemplateTypeInfo[]): NotificationTemplateTypeInfoRecord;
81
+ export declare function notificationTemplateTypeInfoRecord(infoArray: NotificationTemplateTypeInfo[]): NotificationTemplateTypeInfoRecord;
50
82
  /**
51
83
  * Reference to a NotificationTemplateTypeInfoRecord that contains a AppNotificationTemplateTypeInfoRecordService
52
84
  */
@@ -65,7 +97,7 @@ export declare abstract class AppNotificationTemplateTypeInfoRecordService {
65
97
  /**
66
98
  * Returns the array of all known NotificationTemplateTypeInfo
67
99
  */
68
- abstract getAllKnownTemplateTypeDetails(): NotificationTemplateTypeInfo[];
100
+ abstract getAllKnownTemplateTypeInfo(): NotificationTemplateTypeInfo[];
69
101
  /**
70
102
  * Returns all individual FirestoreModelIdentity values that are associate with atleast one NotificationTemplateType.
71
103
  */
@@ -81,18 +113,34 @@ export declare abstract class AppNotificationTemplateTypeInfoRecordService {
81
113
  *
82
114
  * @param model
83
115
  */
84
- abstract getTemplateTypesDetailsForNotificationModel(model: ReadFirestoreModelKeyInput): NotificationTemplateTypeInfo[];
116
+ abstract getTemplateTypesInfoForNotificationModel(model: ReadFirestoreModelKeyInput): NotificationTemplateTypeInfo[];
85
117
  /**
86
118
  * Returns all NotificationTemplateTypes that are associate with the given model input.
87
119
  *
88
120
  * @param model
89
121
  */
90
122
  abstract getTemplateTypesForTargetModel(target: ReadFirestoreModelKeyInput): NotificationTemplateType[];
123
+ /**
124
+ * Returns all NotificationTemplateTypes that are associate with the given model identity.
125
+ *
126
+ * @param identity
127
+ */
128
+ abstract getTemplateTypesForTargetModelIdentity(identity: FirestoreModelIdentity): NotificationTemplateType[];
91
129
  /**
92
130
  * Returns all NotificationTemplateTypeInfo that are associate with the given model input.
93
131
  *
94
132
  * @param model
95
133
  */
96
- abstract getTemplateTypesDetailsForTargetModel(target: ReadFirestoreModelKeyInput): NotificationTemplateTypeInfo[];
134
+ abstract getTemplateTypeInfosForTargetModel(target: ReadFirestoreModelKeyInput): NotificationTemplateTypeInfo[];
135
+ /**
136
+ * Returns all NotificationTemplateTypeInfo that are associate with the given model identity.
137
+ *
138
+ * @param identity
139
+ */
140
+ abstract getTemplateTypeInfosForTargetModelIdentity(identity: FirestoreModelIdentity): NotificationTemplateTypeInfo[];
97
141
  }
98
142
  export declare function appNotificationTemplateTypeInfoRecordService(appNotificationTemplateTypeInfoRecord: NotificationTemplateTypeInfoRecord): AppNotificationTemplateTypeInfoRecordService;
143
+ /**
144
+ * @deprecated use notificationTemplateTypeInfoRecord instead.
145
+ */
146
+ export declare const notificationTemplateTypeDetailsRecord: typeof notificationTemplateTypeInfoRecord;
package/test/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [11.1.1](https://github.com/dereekb/dbx-components/compare/v11.1.0-dev...v11.1.1) (2025-03-03)
6
+
7
+
8
+
5
9
  # [11.1.0](https://github.com/dereekb/dbx-components/compare/v11.0.21-dev...v11.1.0) (2025-02-28)
6
10
 
7
11
 
package/test/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/firebase/test",
3
- "version": "11.1.0",
3
+ "version": "11.1.1",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {
6
6
  "@dereekb/util": "*",