@dereekb/firebase 11.1.0 → 11.1.2
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
|
@@ -9073,6 +9073,12 @@ const notificationConverter = snapshotConverterFunctions({
|
|
|
9073
9073
|
r: firestoreObjectArray({
|
|
9074
9074
|
objectField: firestoreNotificationRecipientWithConfig
|
|
9075
9075
|
}),
|
|
9076
|
+
ois: optionalFirestoreBoolean({
|
|
9077
|
+
dontStoreIf: false
|
|
9078
|
+
}),
|
|
9079
|
+
ots: optionalFirestoreBoolean({
|
|
9080
|
+
dontStoreIf: true
|
|
9081
|
+
}),
|
|
9076
9082
|
sat: firestoreDate(),
|
|
9077
9083
|
a: firestoreNumber({
|
|
9078
9084
|
default: 0
|
|
@@ -9826,19 +9832,19 @@ function createNotificationDocumentPair(input) {
|
|
|
9826
9832
|
}
|
|
9827
9833
|
|
|
9828
9834
|
/**
|
|
9829
|
-
* Creates a NotificationTemplateTypeInfoRecord from the input
|
|
9835
|
+
* Creates a NotificationTemplateTypeInfoRecord from the input info array.
|
|
9830
9836
|
*
|
|
9831
9837
|
* @param infoArray
|
|
9832
9838
|
* @returns
|
|
9833
9839
|
*/
|
|
9834
|
-
function
|
|
9840
|
+
function notificationTemplateTypeInfoRecord(infoArray) {
|
|
9835
9841
|
const record = {};
|
|
9836
9842
|
infoArray.forEach(x => {
|
|
9837
9843
|
const {
|
|
9838
9844
|
type
|
|
9839
9845
|
} = x;
|
|
9840
9846
|
if (record[type]) {
|
|
9841
|
-
throw new Error(`
|
|
9847
|
+
throw new Error(`notificationTemplateTypeInfoRecord(): duplicate NotificationTemplateType in record: ${type}`);
|
|
9842
9848
|
}
|
|
9843
9849
|
record[type] = x;
|
|
9844
9850
|
});
|
|
@@ -9847,33 +9853,47 @@ function notificationTemplateTypeDetailsRecord(infoArray) {
|
|
|
9847
9853
|
class AppNotificationTemplateTypeInfoRecordService {}
|
|
9848
9854
|
function appNotificationTemplateTypeInfoRecordService(appNotificationTemplateTypeInfoRecord) {
|
|
9849
9855
|
const allNotificationModelIdentityValuesSet = new Set();
|
|
9850
|
-
const
|
|
9851
|
-
const
|
|
9856
|
+
const notificationModelTypeInfoMapBuilder = util.multiValueMapBuilder();
|
|
9857
|
+
const targetModelTypeInfoMapBuilder = util.multiValueMapBuilder();
|
|
9852
9858
|
const allKnownTemplateTypes = [];
|
|
9853
|
-
const
|
|
9854
|
-
Object.entries(appNotificationTemplateTypeInfoRecord).forEach(([_,
|
|
9855
|
-
var _details$targetModelI, _details$targetModelI2;
|
|
9859
|
+
const allKnownTemplateTypeInfo = [];
|
|
9860
|
+
Object.entries(appNotificationTemplateTypeInfoRecord).forEach(([_, info]) => {
|
|
9856
9861
|
const {
|
|
9857
|
-
|
|
9858
|
-
|
|
9859
|
-
|
|
9860
|
-
|
|
9861
|
-
|
|
9862
|
-
|
|
9863
|
-
|
|
9862
|
+
notificationModelIdentity,
|
|
9863
|
+
targetModelIdentity,
|
|
9864
|
+
alternativeModelIdentities
|
|
9865
|
+
} = info;
|
|
9866
|
+
function addInfoForIdentity(modelIdentity, targetIdentity) {
|
|
9867
|
+
var _targetIdentity$colle;
|
|
9868
|
+
const {
|
|
9869
|
+
collectionType
|
|
9870
|
+
} = modelIdentity;
|
|
9871
|
+
notificationModelTypeInfoMapBuilder.add(collectionType, info);
|
|
9872
|
+
targetModelTypeInfoMapBuilder.add((_targetIdentity$colle = targetIdentity == null ? void 0 : targetIdentity.collectionType) != null ? _targetIdentity$colle : collectionType, info);
|
|
9873
|
+
allNotificationModelIdentityValuesSet.add(modelIdentity);
|
|
9874
|
+
}
|
|
9875
|
+
addInfoForIdentity(notificationModelIdentity, targetModelIdentity);
|
|
9876
|
+
if (alternativeModelIdentities != null) {
|
|
9877
|
+
util.asArray(alternativeModelIdentities).forEach(x => {
|
|
9878
|
+
var _x$altTargetModelIden;
|
|
9879
|
+
addInfoForIdentity(x.altNotificationModelIdentity, (_x$altTargetModelIden = x.altTargetModelIdentity) != null ? _x$altTargetModelIden : targetModelIdentity);
|
|
9880
|
+
});
|
|
9881
|
+
}
|
|
9882
|
+
allKnownTemplateTypeInfo.push(info);
|
|
9883
|
+
allKnownTemplateTypes.push(info.type);
|
|
9864
9884
|
});
|
|
9865
9885
|
const allNotificationModelIdentityValues = Array.from(allNotificationModelIdentityValuesSet);
|
|
9866
|
-
const
|
|
9867
|
-
const
|
|
9868
|
-
const notificationModelTemplateTypesMap = new Map(Array.from(
|
|
9869
|
-
const targetModelTemplateTypesMap = new Map(Array.from(
|
|
9886
|
+
const notificationModelTemplateInfoMap = notificationModelTypeInfoMapBuilder.map();
|
|
9887
|
+
const targetModelTemplateInfoMap = targetModelTypeInfoMapBuilder.map();
|
|
9888
|
+
const notificationModelTemplateTypesMap = new Map(Array.from(notificationModelTemplateInfoMap.entries()).map(([k, x]) => [k, x.map(y => y.type)]));
|
|
9889
|
+
const targetModelTemplateTypesMap = new Map(Array.from(targetModelTemplateInfoMap.entries()).map(([k, x]) => [k, x.map(y => y.type)]));
|
|
9870
9890
|
const service = {
|
|
9871
9891
|
appNotificationTemplateTypeInfoRecord,
|
|
9872
9892
|
getAllKnownTemplateTypes() {
|
|
9873
9893
|
return allKnownTemplateTypes;
|
|
9874
9894
|
},
|
|
9875
|
-
|
|
9876
|
-
return
|
|
9895
|
+
getAllKnownTemplateTypeInfo() {
|
|
9896
|
+
return allKnownTemplateTypeInfo;
|
|
9877
9897
|
},
|
|
9878
9898
|
getAllNotificationModelIdentityValues() {
|
|
9879
9899
|
return allNotificationModelIdentityValues;
|
|
@@ -9884,11 +9904,11 @@ function appNotificationTemplateTypeInfoRecordService(appNotificationTemplateTyp
|
|
|
9884
9904
|
const firestoreCollectionType = firestoreModelKeyCollectionType(modelKey);
|
|
9885
9905
|
return (_notificationModelTem = notificationModelTemplateTypesMap.get(firestoreCollectionType)) != null ? _notificationModelTem : [];
|
|
9886
9906
|
},
|
|
9887
|
-
|
|
9907
|
+
getTemplateTypesInfoForNotificationModel(model) {
|
|
9888
9908
|
var _notificationModelTem2;
|
|
9889
9909
|
const modelKey = readFirestoreModelKey(model, true);
|
|
9890
9910
|
const firestoreCollectionType = firestoreModelKeyCollectionType(modelKey);
|
|
9891
|
-
return (_notificationModelTem2 =
|
|
9911
|
+
return (_notificationModelTem2 = notificationModelTemplateInfoMap.get(firestoreCollectionType)) != null ? _notificationModelTem2 : [];
|
|
9892
9912
|
},
|
|
9893
9913
|
getTemplateTypesForTargetModel(target) {
|
|
9894
9914
|
var _targetModelTemplateT;
|
|
@@ -9896,15 +9916,28 @@ function appNotificationTemplateTypeInfoRecordService(appNotificationTemplateTyp
|
|
|
9896
9916
|
const targetFirestoreCollectionType = firestoreModelKeyCollectionType(targetModelKey);
|
|
9897
9917
|
return (_targetModelTemplateT = targetModelTemplateTypesMap.get(targetFirestoreCollectionType)) != null ? _targetModelTemplateT : [];
|
|
9898
9918
|
},
|
|
9899
|
-
|
|
9900
|
-
var
|
|
9919
|
+
getTemplateTypesForTargetModelIdentity(identity) {
|
|
9920
|
+
var _targetModelTemplateT2;
|
|
9921
|
+
return (_targetModelTemplateT2 = targetModelTemplateTypesMap.get(identity.collectionName)) != null ? _targetModelTemplateT2 : [];
|
|
9922
|
+
},
|
|
9923
|
+
getTemplateTypeInfosForTargetModel(target) {
|
|
9924
|
+
var _targetModelTemplateI;
|
|
9901
9925
|
const targetModelKey = readFirestoreModelKey(target, true);
|
|
9902
9926
|
const targetFirestoreCollectionType = firestoreModelKeyCollectionType(targetModelKey);
|
|
9903
|
-
return (
|
|
9927
|
+
return (_targetModelTemplateI = targetModelTemplateInfoMap.get(targetFirestoreCollectionType)) != null ? _targetModelTemplateI : [];
|
|
9928
|
+
},
|
|
9929
|
+
getTemplateTypeInfosForTargetModelIdentity(identity) {
|
|
9930
|
+
var _targetModelTemplateI2;
|
|
9931
|
+
return (_targetModelTemplateI2 = targetModelTemplateInfoMap.get(identity.collectionName)) != null ? _targetModelTemplateI2 : [];
|
|
9904
9932
|
}
|
|
9905
9933
|
};
|
|
9906
9934
|
return service;
|
|
9907
9935
|
}
|
|
9936
|
+
// MARK: Compat
|
|
9937
|
+
/**
|
|
9938
|
+
* @deprecated use notificationTemplateTypeInfoRecord instead.
|
|
9939
|
+
*/
|
|
9940
|
+
const notificationTemplateTypeDetailsRecord = notificationTemplateTypeInfoRecord;
|
|
9908
9941
|
|
|
9909
9942
|
function _await(value, then, direct) {
|
|
9910
9943
|
if (direct) {
|
|
@@ -10626,6 +10659,7 @@ exports.notificationSummaryIdForModel = notificationSummaryIdForModel;
|
|
|
10626
10659
|
exports.notificationSummaryIdForUidFunctionForRootFirestoreModelIdentity = notificationSummaryIdForUidFunctionForRootFirestoreModelIdentity;
|
|
10627
10660
|
exports.notificationSummaryIdentity = notificationSummaryIdentity;
|
|
10628
10661
|
exports.notificationTemplateTypeDetailsRecord = notificationTemplateTypeDetailsRecord;
|
|
10662
|
+
exports.notificationTemplateTypeInfoRecord = notificationTemplateTypeInfoRecord;
|
|
10629
10663
|
exports.notificationUserCollectionReference = notificationUserCollectionReference;
|
|
10630
10664
|
exports.notificationUserConverter = notificationUserConverter;
|
|
10631
10665
|
exports.notificationUserFirestoreCollection = notificationUserFirestoreCollection;
|
package/index.esm.js
CHANGED
|
@@ -9902,6 +9902,12 @@ const notificationConverter = snapshotConverterFunctions({
|
|
|
9902
9902
|
r: firestoreObjectArray({
|
|
9903
9903
|
objectField: firestoreNotificationRecipientWithConfig
|
|
9904
9904
|
}),
|
|
9905
|
+
ois: optionalFirestoreBoolean({
|
|
9906
|
+
dontStoreIf: false
|
|
9907
|
+
}),
|
|
9908
|
+
ots: optionalFirestoreBoolean({
|
|
9909
|
+
dontStoreIf: true
|
|
9910
|
+
}),
|
|
9905
9911
|
sat: firestoreDate(),
|
|
9906
9912
|
a: firestoreNumber({
|
|
9907
9913
|
default: 0
|
|
@@ -10865,6 +10871,18 @@ async function createNotificationDocumentIfSending(input) {
|
|
|
10865
10871
|
}
|
|
10866
10872
|
}
|
|
10867
10873
|
|
|
10874
|
+
/**
|
|
10875
|
+
* NotificationTemplateTypeInfoIdentityInfo alternative/derivative identity.
|
|
10876
|
+
*
|
|
10877
|
+
* For example, this model may be directly related to the identity in "notificationModelIdentity" but notifications are actually attached to the corresponding "altNotificationModelIdentity" or "altTargetModelIdentity".
|
|
10878
|
+
*
|
|
10879
|
+
* The alternative model should always have a NotificationBox associated with it.
|
|
10880
|
+
*/
|
|
10881
|
+
|
|
10882
|
+
/**
|
|
10883
|
+
* NotificationTemplateTypeInfo identity info
|
|
10884
|
+
*/
|
|
10885
|
+
|
|
10868
10886
|
/**
|
|
10869
10887
|
* Template type identifier of the notification.
|
|
10870
10888
|
*
|
|
@@ -10878,19 +10896,19 @@ async function createNotificationDocumentIfSending(input) {
|
|
|
10878
10896
|
*/
|
|
10879
10897
|
|
|
10880
10898
|
/**
|
|
10881
|
-
* Creates a NotificationTemplateTypeInfoRecord from the input
|
|
10899
|
+
* Creates a NotificationTemplateTypeInfoRecord from the input info array.
|
|
10882
10900
|
*
|
|
10883
10901
|
* @param infoArray
|
|
10884
10902
|
* @returns
|
|
10885
10903
|
*/
|
|
10886
|
-
function
|
|
10904
|
+
function notificationTemplateTypeInfoRecord(infoArray) {
|
|
10887
10905
|
const record = {};
|
|
10888
10906
|
infoArray.forEach(x => {
|
|
10889
10907
|
const {
|
|
10890
10908
|
type
|
|
10891
10909
|
} = x;
|
|
10892
10910
|
if (record[type]) {
|
|
10893
|
-
throw new Error(`
|
|
10911
|
+
throw new Error(`notificationTemplateTypeInfoRecord(): duplicate NotificationTemplateType in record: ${type}`);
|
|
10894
10912
|
}
|
|
10895
10913
|
record[type] = x;
|
|
10896
10914
|
});
|
|
@@ -10932,41 +10950,65 @@ class AppNotificationTemplateTypeInfoRecordService {
|
|
|
10932
10950
|
*
|
|
10933
10951
|
* @param model
|
|
10934
10952
|
*/
|
|
10953
|
+
/**
|
|
10954
|
+
* Returns all NotificationTemplateTypes that are associate with the given model identity.
|
|
10955
|
+
*
|
|
10956
|
+
* @param identity
|
|
10957
|
+
*/
|
|
10935
10958
|
/**
|
|
10936
10959
|
* Returns all NotificationTemplateTypeInfo that are associate with the given model input.
|
|
10937
10960
|
*
|
|
10938
10961
|
* @param model
|
|
10939
10962
|
*/
|
|
10963
|
+
/**
|
|
10964
|
+
* Returns all NotificationTemplateTypeInfo that are associate with the given model identity.
|
|
10965
|
+
*
|
|
10966
|
+
* @param identity
|
|
10967
|
+
*/
|
|
10940
10968
|
}
|
|
10941
10969
|
function appNotificationTemplateTypeInfoRecordService(appNotificationTemplateTypeInfoRecord) {
|
|
10942
10970
|
const allNotificationModelIdentityValuesSet = new Set();
|
|
10943
|
-
const
|
|
10944
|
-
const
|
|
10971
|
+
const notificationModelTypeInfoMapBuilder = multiValueMapBuilder();
|
|
10972
|
+
const targetModelTypeInfoMapBuilder = multiValueMapBuilder();
|
|
10945
10973
|
const allKnownTemplateTypes = [];
|
|
10946
|
-
const
|
|
10947
|
-
Object.entries(appNotificationTemplateTypeInfoRecord).forEach(([_,
|
|
10948
|
-
var _details$targetModelI, _details$targetModelI2;
|
|
10974
|
+
const allKnownTemplateTypeInfo = [];
|
|
10975
|
+
Object.entries(appNotificationTemplateTypeInfoRecord).forEach(([_, info]) => {
|
|
10949
10976
|
const {
|
|
10950
|
-
|
|
10951
|
-
|
|
10952
|
-
|
|
10953
|
-
|
|
10954
|
-
|
|
10955
|
-
|
|
10956
|
-
|
|
10977
|
+
notificationModelIdentity,
|
|
10978
|
+
targetModelIdentity,
|
|
10979
|
+
alternativeModelIdentities
|
|
10980
|
+
} = info;
|
|
10981
|
+
function addInfoForIdentity(modelIdentity, targetIdentity) {
|
|
10982
|
+
var _targetIdentity$colle;
|
|
10983
|
+
const {
|
|
10984
|
+
collectionType
|
|
10985
|
+
} = modelIdentity;
|
|
10986
|
+
notificationModelTypeInfoMapBuilder.add(collectionType, info);
|
|
10987
|
+
targetModelTypeInfoMapBuilder.add((_targetIdentity$colle = targetIdentity == null ? void 0 : targetIdentity.collectionType) != null ? _targetIdentity$colle : collectionType, info);
|
|
10988
|
+
allNotificationModelIdentityValuesSet.add(modelIdentity);
|
|
10989
|
+
}
|
|
10990
|
+
addInfoForIdentity(notificationModelIdentity, targetModelIdentity);
|
|
10991
|
+
if (alternativeModelIdentities != null) {
|
|
10992
|
+
asArray(alternativeModelIdentities).forEach(x => {
|
|
10993
|
+
var _x$altTargetModelIden;
|
|
10994
|
+
addInfoForIdentity(x.altNotificationModelIdentity, (_x$altTargetModelIden = x.altTargetModelIdentity) != null ? _x$altTargetModelIden : targetModelIdentity);
|
|
10995
|
+
});
|
|
10996
|
+
}
|
|
10997
|
+
allKnownTemplateTypeInfo.push(info);
|
|
10998
|
+
allKnownTemplateTypes.push(info.type);
|
|
10957
10999
|
});
|
|
10958
11000
|
const allNotificationModelIdentityValues = Array.from(allNotificationModelIdentityValuesSet);
|
|
10959
|
-
const
|
|
10960
|
-
const
|
|
10961
|
-
const notificationModelTemplateTypesMap = new Map(Array.from(
|
|
10962
|
-
const targetModelTemplateTypesMap = new Map(Array.from(
|
|
11001
|
+
const notificationModelTemplateInfoMap = notificationModelTypeInfoMapBuilder.map();
|
|
11002
|
+
const targetModelTemplateInfoMap = targetModelTypeInfoMapBuilder.map();
|
|
11003
|
+
const notificationModelTemplateTypesMap = new Map(Array.from(notificationModelTemplateInfoMap.entries()).map(([k, x]) => [k, x.map(y => y.type)]));
|
|
11004
|
+
const targetModelTemplateTypesMap = new Map(Array.from(targetModelTemplateInfoMap.entries()).map(([k, x]) => [k, x.map(y => y.type)]));
|
|
10963
11005
|
const service = {
|
|
10964
11006
|
appNotificationTemplateTypeInfoRecord,
|
|
10965
11007
|
getAllKnownTemplateTypes() {
|
|
10966
11008
|
return allKnownTemplateTypes;
|
|
10967
11009
|
},
|
|
10968
|
-
|
|
10969
|
-
return
|
|
11010
|
+
getAllKnownTemplateTypeInfo() {
|
|
11011
|
+
return allKnownTemplateTypeInfo;
|
|
10970
11012
|
},
|
|
10971
11013
|
getAllNotificationModelIdentityValues() {
|
|
10972
11014
|
return allNotificationModelIdentityValues;
|
|
@@ -10977,11 +11019,11 @@ function appNotificationTemplateTypeInfoRecordService(appNotificationTemplateTyp
|
|
|
10977
11019
|
const firestoreCollectionType = firestoreModelKeyCollectionType(modelKey);
|
|
10978
11020
|
return (_notificationModelTem = notificationModelTemplateTypesMap.get(firestoreCollectionType)) != null ? _notificationModelTem : [];
|
|
10979
11021
|
},
|
|
10980
|
-
|
|
11022
|
+
getTemplateTypesInfoForNotificationModel(model) {
|
|
10981
11023
|
var _notificationModelTem2;
|
|
10982
11024
|
const modelKey = readFirestoreModelKey(model, true);
|
|
10983
11025
|
const firestoreCollectionType = firestoreModelKeyCollectionType(modelKey);
|
|
10984
|
-
return (_notificationModelTem2 =
|
|
11026
|
+
return (_notificationModelTem2 = notificationModelTemplateInfoMap.get(firestoreCollectionType)) != null ? _notificationModelTem2 : [];
|
|
10985
11027
|
},
|
|
10986
11028
|
getTemplateTypesForTargetModel(target) {
|
|
10987
11029
|
var _targetModelTemplateT;
|
|
@@ -10989,16 +11031,30 @@ function appNotificationTemplateTypeInfoRecordService(appNotificationTemplateTyp
|
|
|
10989
11031
|
const targetFirestoreCollectionType = firestoreModelKeyCollectionType(targetModelKey);
|
|
10990
11032
|
return (_targetModelTemplateT = targetModelTemplateTypesMap.get(targetFirestoreCollectionType)) != null ? _targetModelTemplateT : [];
|
|
10991
11033
|
},
|
|
10992
|
-
|
|
10993
|
-
var
|
|
11034
|
+
getTemplateTypesForTargetModelIdentity(identity) {
|
|
11035
|
+
var _targetModelTemplateT2;
|
|
11036
|
+
return (_targetModelTemplateT2 = targetModelTemplateTypesMap.get(identity.collectionName)) != null ? _targetModelTemplateT2 : [];
|
|
11037
|
+
},
|
|
11038
|
+
getTemplateTypeInfosForTargetModel(target) {
|
|
11039
|
+
var _targetModelTemplateI;
|
|
10994
11040
|
const targetModelKey = readFirestoreModelKey(target, true);
|
|
10995
11041
|
const targetFirestoreCollectionType = firestoreModelKeyCollectionType(targetModelKey);
|
|
10996
|
-
return (
|
|
11042
|
+
return (_targetModelTemplateI = targetModelTemplateInfoMap.get(targetFirestoreCollectionType)) != null ? _targetModelTemplateI : [];
|
|
11043
|
+
},
|
|
11044
|
+
getTemplateTypeInfosForTargetModelIdentity(identity) {
|
|
11045
|
+
var _targetModelTemplateI2;
|
|
11046
|
+
return (_targetModelTemplateI2 = targetModelTemplateInfoMap.get(identity.collectionName)) != null ? _targetModelTemplateI2 : [];
|
|
10997
11047
|
}
|
|
10998
11048
|
};
|
|
10999
11049
|
return service;
|
|
11000
11050
|
}
|
|
11001
11051
|
|
|
11052
|
+
// MARK: Compat
|
|
11053
|
+
/**
|
|
11054
|
+
* @deprecated use notificationTemplateTypeInfoRecord instead.
|
|
11055
|
+
*/
|
|
11056
|
+
const notificationTemplateTypeDetailsRecord = notificationTemplateTypeInfoRecord;
|
|
11057
|
+
|
|
11002
11058
|
/**
|
|
11003
11059
|
* Contextual information when
|
|
11004
11060
|
*/
|
|
@@ -11346,4 +11402,4 @@ function systemStateFirestoreCollection(firestoreContext, converters) {
|
|
|
11346
11402
|
});
|
|
11347
11403
|
}
|
|
11348
11404
|
|
|
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 };
|
|
11405
|
+
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
|
@@ -4,7 +4,7 @@ import { type NotificationBoxId } from './notification.id';
|
|
|
4
4
|
import { type NotificationBoxRecipient, type NotificationRecipientWithConfig, type NotificationUserNotificationBoxRecipientConfig, type NotificationUserDefaultNotificationBoxRecipientConfig } from './notification.config';
|
|
5
5
|
import { type YearWeekCode } from '@dereekb/date';
|
|
6
6
|
import { type UserRelatedById, type UserRelated } from '../user';
|
|
7
|
-
import { AbstractFirestoreDocument, AbstractFirestoreDocumentWithParent, type CollectionGroup, type CollectionReference, type FirestoreCollection, type FirestoreCollectionGroup, type FirestoreCollectionWithParent, type FirestoreContext, type FirestoreModelKey, type SavedToFirestoreIfTrue } from '../../common';
|
|
7
|
+
import { AbstractFirestoreDocument, AbstractFirestoreDocumentWithParent, type CollectionGroup, type CollectionReference, type FirestoreCollection, type FirestoreCollectionGroup, type FirestoreCollectionWithParent, type FirestoreContext, type FirestoreModelKey, type SavedToFirestoreIfTrue, type SavedToFirestoreIfFalse } from '../../common';
|
|
8
8
|
import { type NotificationItem } from './notification.item';
|
|
9
9
|
export declare abstract class NotificationFirestoreCollections {
|
|
10
10
|
abstract readonly notificationUserCollection: NotificationUserFirestoreCollection;
|
|
@@ -340,8 +340,28 @@ export interface Notification extends NotificationSendFlags, NotificationSendChe
|
|
|
340
340
|
n: NotificationItem;
|
|
341
341
|
/**
|
|
342
342
|
* Additional embedded recipients.
|
|
343
|
+
*
|
|
344
|
+
* Any values for the NotificationBoxRecipientTemplateConfig-related parameters will be used when considering explicit opt-in/op-out.
|
|
345
|
+
* (I.E. setting "st" to true for a user with no other config for the notification template type will mark them as opt-in for texts, and
|
|
346
|
+
* can only be overridden by the user's own config)
|
|
343
347
|
*/
|
|
344
348
|
r: NotificationRecipientWithConfig[];
|
|
349
|
+
/**
|
|
350
|
+
* Explicit opt-in send only.
|
|
351
|
+
*
|
|
352
|
+
* If true, will only send to users that have explicitly opted in to recieving notifications via specific methods.
|
|
353
|
+
*
|
|
354
|
+
* This setting takes priority over the system's configured default for this notification's template type.
|
|
355
|
+
*/
|
|
356
|
+
ois?: Maybe<SavedToFirestoreIfTrue>;
|
|
357
|
+
/**
|
|
358
|
+
* Explicit opt-in text/sms send only.
|
|
359
|
+
*
|
|
360
|
+
* If false, will send text/sms to all users regardless if they have not explicitly opted in to text/sms. Will still take their opt-out into account.
|
|
361
|
+
*
|
|
362
|
+
* This setting takes priority over the system's configured default for this notification's template type.
|
|
363
|
+
*/
|
|
364
|
+
ots?: Maybe<SavedToFirestoreIfFalse>;
|
|
345
365
|
/**
|
|
346
366
|
* Minimum time at which this notification should be sent.
|
|
347
367
|
*
|
|
@@ -1,6 +1,52 @@
|
|
|
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
|
+
/**
|
|
5
|
+
* NotificationTemplateTypeInfoIdentityInfo alternative/derivative identity.
|
|
6
|
+
*
|
|
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
|
+
*
|
|
9
|
+
* The alternative model should always have a NotificationBox associated with it.
|
|
10
|
+
*/
|
|
11
|
+
export interface NotificationTemplateTypeInfoIdentityInfoAlternativeModelIdentityPair {
|
|
12
|
+
/**
|
|
13
|
+
* Alternative notification model identity.
|
|
14
|
+
*/
|
|
15
|
+
readonly altNotificationModelIdentity: FirestoreModelIdentity;
|
|
16
|
+
/**
|
|
17
|
+
* Corresponding alternative target model identity, if applicable.
|
|
18
|
+
*/
|
|
19
|
+
readonly altTargetModelIdentity?: Maybe<FirestoreModelIdentity>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* NotificationTemplateTypeInfo identity info
|
|
23
|
+
*/
|
|
24
|
+
export interface NotificationTemplateTypeInfoIdentityInfo {
|
|
25
|
+
/**
|
|
26
|
+
* Model identity that this notification is for.
|
|
27
|
+
*
|
|
28
|
+
* This model will have a NotificationBox associated with it if no alternativeNotificationModelIdentity values are provided.
|
|
29
|
+
*/
|
|
30
|
+
readonly notificationModelIdentity: FirestoreModelIdentity;
|
|
31
|
+
/**
|
|
32
|
+
* Optional target model identity that this notification references.
|
|
33
|
+
*
|
|
34
|
+
* If not defined, it is assumed that the notificationModelIdentity is the target model.
|
|
35
|
+
*
|
|
36
|
+
* This model will not have a NotificationBox associated with it, and is typically a child model of the notificationModelIdentity.
|
|
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
|
+
}
|
|
4
50
|
/**
|
|
5
51
|
* Template type identifier of the notification.
|
|
6
52
|
*
|
|
@@ -8,7 +54,7 @@ import { type NotificationTemplateType } from './notification.id';
|
|
|
8
54
|
*
|
|
9
55
|
* Types are generally intended to be handled case-insensitively by notification services.
|
|
10
56
|
*/
|
|
11
|
-
export interface NotificationTemplateTypeInfo {
|
|
57
|
+
export interface NotificationTemplateTypeInfo extends NotificationTemplateTypeInfoIdentityInfo {
|
|
12
58
|
/**
|
|
13
59
|
* Notification type
|
|
14
60
|
*/
|
|
@@ -22,31 +68,25 @@ export interface NotificationTemplateTypeInfo {
|
|
|
22
68
|
*/
|
|
23
69
|
readonly description: string;
|
|
24
70
|
/**
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* This model will have a NotificationBox associated with it.
|
|
71
|
+
* If true, this notification will only be sent to recipients that explicitly enable recieving via respective NotificationBoxRecipientTemplateConfig for this type.
|
|
28
72
|
*/
|
|
29
|
-
readonly
|
|
73
|
+
readonly onlySendToExplicitlyEnabledRecipients?: boolean;
|
|
30
74
|
/**
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* If not defined, it is assumed that the notificationModelIdentity is the target model.
|
|
34
|
-
*
|
|
35
|
-
* This model will not have a NotificationBox associated with it, and is typically a child model of the notificationModelIdentity.
|
|
75
|
+
* If false, this notification will send sms/texts to all recipients, even if they have not explicitly opted in to recieving sms/texts.
|
|
36
76
|
*/
|
|
37
|
-
readonly
|
|
77
|
+
readonly onlyTextExplicitlyEnabledRecipients?: boolean;
|
|
38
78
|
}
|
|
39
79
|
/**
|
|
40
80
|
* Record of NotificationTemplateTypeInfo keyed by type.
|
|
41
81
|
*/
|
|
42
82
|
export type NotificationTemplateTypeInfoRecord = Record<NotificationTemplateType, NotificationTemplateTypeInfo>;
|
|
43
83
|
/**
|
|
44
|
-
* Creates a NotificationTemplateTypeInfoRecord from the input
|
|
84
|
+
* Creates a NotificationTemplateTypeInfoRecord from the input info array.
|
|
45
85
|
*
|
|
46
86
|
* @param infoArray
|
|
47
87
|
* @returns
|
|
48
88
|
*/
|
|
49
|
-
export declare function
|
|
89
|
+
export declare function notificationTemplateTypeInfoRecord(infoArray: NotificationTemplateTypeInfo[]): NotificationTemplateTypeInfoRecord;
|
|
50
90
|
/**
|
|
51
91
|
* Reference to a NotificationTemplateTypeInfoRecord that contains a AppNotificationTemplateTypeInfoRecordService
|
|
52
92
|
*/
|
|
@@ -65,7 +105,7 @@ export declare abstract class AppNotificationTemplateTypeInfoRecordService {
|
|
|
65
105
|
/**
|
|
66
106
|
* Returns the array of all known NotificationTemplateTypeInfo
|
|
67
107
|
*/
|
|
68
|
-
abstract
|
|
108
|
+
abstract getAllKnownTemplateTypeInfo(): NotificationTemplateTypeInfo[];
|
|
69
109
|
/**
|
|
70
110
|
* Returns all individual FirestoreModelIdentity values that are associate with atleast one NotificationTemplateType.
|
|
71
111
|
*/
|
|
@@ -81,18 +121,34 @@ export declare abstract class AppNotificationTemplateTypeInfoRecordService {
|
|
|
81
121
|
*
|
|
82
122
|
* @param model
|
|
83
123
|
*/
|
|
84
|
-
abstract
|
|
124
|
+
abstract getTemplateTypesInfoForNotificationModel(model: ReadFirestoreModelKeyInput): NotificationTemplateTypeInfo[];
|
|
85
125
|
/**
|
|
86
126
|
* Returns all NotificationTemplateTypes that are associate with the given model input.
|
|
87
127
|
*
|
|
88
128
|
* @param model
|
|
89
129
|
*/
|
|
90
130
|
abstract getTemplateTypesForTargetModel(target: ReadFirestoreModelKeyInput): NotificationTemplateType[];
|
|
131
|
+
/**
|
|
132
|
+
* Returns all NotificationTemplateTypes that are associate with the given model identity.
|
|
133
|
+
*
|
|
134
|
+
* @param identity
|
|
135
|
+
*/
|
|
136
|
+
abstract getTemplateTypesForTargetModelIdentity(identity: FirestoreModelIdentity): NotificationTemplateType[];
|
|
91
137
|
/**
|
|
92
138
|
* Returns all NotificationTemplateTypeInfo that are associate with the given model input.
|
|
93
139
|
*
|
|
94
140
|
* @param model
|
|
95
141
|
*/
|
|
96
|
-
abstract
|
|
142
|
+
abstract getTemplateTypeInfosForTargetModel(target: ReadFirestoreModelKeyInput): NotificationTemplateTypeInfo[];
|
|
143
|
+
/**
|
|
144
|
+
* Returns all NotificationTemplateTypeInfo that are associate with the given model identity.
|
|
145
|
+
*
|
|
146
|
+
* @param identity
|
|
147
|
+
*/
|
|
148
|
+
abstract getTemplateTypeInfosForTargetModelIdentity(identity: FirestoreModelIdentity): NotificationTemplateTypeInfo[];
|
|
97
149
|
}
|
|
98
150
|
export declare function appNotificationTemplateTypeInfoRecordService(appNotificationTemplateTypeInfoRecord: NotificationTemplateTypeInfoRecord): AppNotificationTemplateTypeInfoRecordService;
|
|
151
|
+
/**
|
|
152
|
+
* @deprecated use notificationTemplateTypeInfoRecord instead.
|
|
153
|
+
*/
|
|
154
|
+
export declare const notificationTemplateTypeDetailsRecord: typeof notificationTemplateTypeInfoRecord;
|
package/test/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [11.1.2](https://github.com/dereekb/dbx-components/compare/v11.1.1-dev...v11.1.2) (2025-03-04)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [11.1.1](https://github.com/dereekb/dbx-components/compare/v11.1.0-dev...v11.1.1) (2025-03-03)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
5
13
|
# [11.1.0](https://github.com/dereekb/dbx-components/compare/v11.0.21-dev...v11.1.0) (2025-02-28)
|
|
6
14
|
|
|
7
15
|
|