@dereekb/firebase 11.1.2 → 11.1.4
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 +67 -26
- package/index.esm.js +94 -47
- package/package.json +1 -1
- package/src/lib/model/notification/notification.api.d.ts +10 -1
- package/src/lib/model/notification/notification.api.error.d.ts +1 -0
- package/src/lib/model/notification/notification.create.d.ts +2 -2
- package/src/lib/model/notification/notification.d.ts +1 -0
- package/src/lib/model/notification/notification.util.d.ts +15 -2
- package/test/CHANGELOG.md +8 -0
- package/test/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -8526,6 +8526,29 @@ function firebaseStorageClientDrivers() {
|
|
|
8526
8526
|
*/
|
|
8527
8527
|
const clientFirebaseStorageContextFactory = firebaseStorageContextFactory(firebaseStorageClientDrivers());
|
|
8528
8528
|
|
|
8529
|
+
/**
|
|
8530
|
+
* Creates a NotificationBoxId from the input FirestoreModelKey.
|
|
8531
|
+
*
|
|
8532
|
+
* @param modelKey
|
|
8533
|
+
* @returns
|
|
8534
|
+
*/
|
|
8535
|
+
const notificationBoxIdForModel = twoWayFlatFirestoreModelKey;
|
|
8536
|
+
const inferNotificationBoxRelatedModelKey = inferKeyFromTwoWayFlatFirestoreModelKey;
|
|
8537
|
+
/**
|
|
8538
|
+
* Creates a NotificationSummaryId from the input FirestoreModelKey.
|
|
8539
|
+
*
|
|
8540
|
+
* @param modelKey
|
|
8541
|
+
* @returns
|
|
8542
|
+
*/
|
|
8543
|
+
const notificationSummaryIdForModel = twoWayFlatFirestoreModelKey;
|
|
8544
|
+
function notificationSummaryIdForUidFunctionForRootFirestoreModelIdentity(userModelIdentity) {
|
|
8545
|
+
return uid => twoWayFlatFirestoreModelKey(firestoreModelKey(userModelIdentity, uid));
|
|
8546
|
+
}
|
|
8547
|
+
/**
|
|
8548
|
+
* The default notification template type that can be provided to subscribe to notifications not specified in the configurations.
|
|
8549
|
+
*/
|
|
8550
|
+
const DEFAULT_NOTIFICATION_TEMPLATE_TYPE = 'D';
|
|
8551
|
+
|
|
8529
8552
|
function mergeNotificationBoxRecipientTemplateConfigs(a, b) {
|
|
8530
8553
|
const {
|
|
8531
8554
|
sd,
|
|
@@ -8922,6 +8945,9 @@ class NotificationBoxDocument extends AbstractFirestoreDocument {
|
|
|
8922
8945
|
get modelIdentity() {
|
|
8923
8946
|
return notificationBoxIdentity;
|
|
8924
8947
|
}
|
|
8948
|
+
get notificationBoxRelatedModelKey() {
|
|
8949
|
+
return inferNotificationBoxRelatedModelKey(this.id);
|
|
8950
|
+
}
|
|
8925
8951
|
}
|
|
8926
8952
|
const notificationBoxConverter = snapshotConverterFunctions({
|
|
8927
8953
|
fields: {
|
|
@@ -9403,7 +9429,7 @@ class UpdateNotificationBoxRecipientParams extends UpdateNotificationBoxRecipien
|
|
|
9403
9429
|
*/
|
|
9404
9430
|
this.uid = void 0;
|
|
9405
9431
|
/**
|
|
9406
|
-
* Whether or not to
|
|
9432
|
+
* Whether or not to create the user if they currently do not exist. Defaults to false.
|
|
9407
9433
|
*/
|
|
9408
9434
|
this.insert = void 0;
|
|
9409
9435
|
/**
|
|
@@ -9464,6 +9490,19 @@ class SendNotificationParams extends TargetModelParams {
|
|
|
9464
9490
|
}
|
|
9465
9491
|
__decorate([classTransformer.Expose(), classValidator.IsOptional(), classValidator.IsBoolean(), __metadata("design:type", Object)], SendNotificationParams.prototype, "ignoreSendAtThrottle", void 0);
|
|
9466
9492
|
__decorate([classTransformer.Expose(), classValidator.IsOptional(), classValidator.IsBoolean(), __metadata("design:type", Object)], SendNotificationParams.prototype, "throwErrorIfSent", void 0);
|
|
9493
|
+
/**
|
|
9494
|
+
* Params class used for subscribing a system user to a NotificationBox for a model.
|
|
9495
|
+
*/
|
|
9496
|
+
class AbstractSubscribeToNotificationBoxParams extends TargetModelParams {
|
|
9497
|
+
constructor(...args) {
|
|
9498
|
+
super(...args);
|
|
9499
|
+
/**
|
|
9500
|
+
* Notification recipient to subscribe to notifications
|
|
9501
|
+
*/
|
|
9502
|
+
this.uid = void 0;
|
|
9503
|
+
}
|
|
9504
|
+
}
|
|
9505
|
+
__decorate([classTransformer.Expose(), IsFirestoreModelId(), __metadata("design:type", String)], AbstractSubscribeToNotificationBoxParams.prototype, "uid", void 0);
|
|
9467
9506
|
/**
|
|
9468
9507
|
* Used for sending queued notifications in the system.
|
|
9469
9508
|
*/
|
|
@@ -9483,35 +9522,13 @@ const notificationFunctionMap = callModelFirebaseFunctionMapFactory(notification
|
|
|
9483
9522
|
|
|
9484
9523
|
const CREATE_NOTIFICATION_ID_REQUIRED_ERROR_CODE = 'CREATE_NOTIFICATION_ID_REQUIRED';
|
|
9485
9524
|
const NOTIFICATION_MODEL_ALREADY_INITIALIZED_ERROR_CODE = 'NOTIFICATION_MODEL_ALREADY_INITIALIZED';
|
|
9525
|
+
const NOTIFICATION_BOX_DOES_NOT_EXIST_ERROR_CODE = 'NOTIFICATION_BOX_DOES_NOT_EXIST';
|
|
9486
9526
|
const NOTIFICATION_BOX_EXISTS_FOR_MODEL_ERROR_CODE = 'NOTIFICATION_BOX_EXISTS_FOR_MODEL';
|
|
9487
9527
|
const NOTIFICATION_BOX_RECIPIENT_DOES_NOT_EXIST_ERROR_CODE = 'NOTIFICATION_BOX_RECIPIENT_DOES_NOT_EXIST';
|
|
9488
9528
|
const NOTIFICATION_USER_INVALID_UID_FOR_CREATE_ERROR_CODE = 'NOTIFICATION_USER_INVALID_UID_FOR_CREATE';
|
|
9489
9529
|
const NOTIFICATION_USER_BLOCKED_FROM_BEING_ADD_TO_RECIPIENTS_ERROR_CODE = 'NOTIFICATION_USER_BLOCKED_FROM_BEING_ADD_TO_RECIPIENTS';
|
|
9490
9530
|
const NOTIFICATION_USER_LOCKED_CONFIG_FROM_BEING_UPDATED_ERROR_CODE = 'NOTIFICATION_USER_LOCKED_CONFIG_FROM_BEING_UPDATED';
|
|
9491
9531
|
|
|
9492
|
-
/**
|
|
9493
|
-
* Creates a NotificationBoxId from the input FirestoreModelKey.
|
|
9494
|
-
*
|
|
9495
|
-
* @param modelKey
|
|
9496
|
-
* @returns
|
|
9497
|
-
*/
|
|
9498
|
-
const notificationBoxIdForModel = twoWayFlatFirestoreModelKey;
|
|
9499
|
-
const inferNotificationBoxRelatedModelKey = inferKeyFromTwoWayFlatFirestoreModelKey;
|
|
9500
|
-
/**
|
|
9501
|
-
* Creates a NotificationSummaryId from the input FirestoreModelKey.
|
|
9502
|
-
*
|
|
9503
|
-
* @param modelKey
|
|
9504
|
-
* @returns
|
|
9505
|
-
*/
|
|
9506
|
-
const notificationSummaryIdForModel = twoWayFlatFirestoreModelKey;
|
|
9507
|
-
function notificationSummaryIdForUidFunctionForRootFirestoreModelIdentity(userModelIdentity) {
|
|
9508
|
-
return uid => twoWayFlatFirestoreModelKey(firestoreModelKey(userModelIdentity, uid));
|
|
9509
|
-
}
|
|
9510
|
-
/**
|
|
9511
|
-
* The default notification template type that can be provided to subscribe to notifications not specified in the configurations.
|
|
9512
|
-
*/
|
|
9513
|
-
const DEFAULT_NOTIFICATION_TEMPLATE_TYPE = 'D';
|
|
9514
|
-
|
|
9515
9532
|
/**
|
|
9516
9533
|
* Updates a NotificationUserDefaultNotificationBoxRecipientConfig with the input UpdateNotificationUserDefaultNotificationBoxRecipientConfigParams.
|
|
9517
9534
|
*
|
|
@@ -9719,8 +9736,13 @@ function createNotificationTemplate(input) {
|
|
|
9719
9736
|
const notificationModel = readFirestoreModelKey(inputNotification);
|
|
9720
9737
|
const targetModel = inputTargetModel ? readFirestoreModelKey(inputTargetModel) : undefined;
|
|
9721
9738
|
let d = data != null ? data : inputD;
|
|
9722
|
-
if (d
|
|
9723
|
-
|
|
9739
|
+
if (d != null) {
|
|
9740
|
+
const filteredData = util.filterUndefinedValues(d, true); // filter both null and undefined values
|
|
9741
|
+
if (util.objectHasNoKeys(filteredData)) {
|
|
9742
|
+
d = undefined;
|
|
9743
|
+
} else {
|
|
9744
|
+
d = filteredData;
|
|
9745
|
+
}
|
|
9724
9746
|
}
|
|
9725
9747
|
const template = {
|
|
9726
9748
|
notificationModel,
|
|
@@ -10204,6 +10226,22 @@ function mergeNotificationBoxRecipients(a, b) {
|
|
|
10204
10226
|
c: Object.assign({}, a.c, b.c)
|
|
10205
10227
|
});
|
|
10206
10228
|
}
|
|
10229
|
+
function loadNotificationBoxDocumentForReferencePair(input, accessor) {
|
|
10230
|
+
const {
|
|
10231
|
+
notificationBoxDocument: inputNotificationBoxDocument,
|
|
10232
|
+
notificationBoxRelatedModelKey: inputNotificationBoxRelatedModelKey
|
|
10233
|
+
} = input;
|
|
10234
|
+
let notificationBoxDocument;
|
|
10235
|
+
if (inputNotificationBoxDocument != null) {
|
|
10236
|
+
notificationBoxDocument = inputNotificationBoxDocument;
|
|
10237
|
+
} else if (inputNotificationBoxRelatedModelKey) {
|
|
10238
|
+
const notificationBoxId = notificationBoxIdForModel(inputNotificationBoxRelatedModelKey);
|
|
10239
|
+
notificationBoxDocument = accessor.loadDocumentForId(notificationBoxId);
|
|
10240
|
+
} else {
|
|
10241
|
+
throw new Error('NotificationBoxDocument or NotificationBoxRelatedModelKey is required');
|
|
10242
|
+
}
|
|
10243
|
+
return notificationBoxDocument;
|
|
10244
|
+
}
|
|
10207
10245
|
|
|
10208
10246
|
// MARK: Collection
|
|
10209
10247
|
class SystemStateFirestoreCollections {}
|
|
@@ -10251,6 +10289,7 @@ function systemStateFirestoreCollection(firestoreContext, converters) {
|
|
|
10251
10289
|
exports.AbstractFirestoreDocument = AbstractFirestoreDocument;
|
|
10252
10290
|
exports.AbstractFirestoreDocumentDataAccessorWrapper = AbstractFirestoreDocumentDataAccessorWrapper;
|
|
10253
10291
|
exports.AbstractFirestoreDocumentWithParent = AbstractFirestoreDocumentWithParent;
|
|
10292
|
+
exports.AbstractSubscribeToNotificationBoxParams = AbstractSubscribeToNotificationBoxParams;
|
|
10254
10293
|
exports.AppNotificationTemplateTypeInfoRecordService = AppNotificationTemplateTypeInfoRecordService;
|
|
10255
10294
|
exports.BASE_MODEL_STORAGE_FILE_PATH = BASE_MODEL_STORAGE_FILE_PATH;
|
|
10256
10295
|
exports.CALL_MODEL_APP_FUNCTION_KEY = CALL_MODEL_APP_FUNCTION_KEY;
|
|
@@ -10325,6 +10364,7 @@ exports.MODEL_FUNCTION_FIREBASE_CRUD_FUNCTION_SPECIFIER_DEFAULT = MODEL_FUNCTION
|
|
|
10325
10364
|
exports.MODEL_FUNCTION_FIREBASE_CRUD_FUNCTION_SPECIFIER_SPLITTER = MODEL_FUNCTION_FIREBASE_CRUD_FUNCTION_SPECIFIER_SPLITTER;
|
|
10326
10365
|
exports.MODEL_STORAGE_FILE_SLASH_PATH_FACTORY = MODEL_STORAGE_FILE_SLASH_PATH_FACTORY;
|
|
10327
10366
|
exports.ModifyBeforeSetFirestoreDocumentDataAccessorWrapper = ModifyBeforeSetFirestoreDocumentDataAccessorWrapper;
|
|
10367
|
+
exports.NOTIFICATION_BOX_DOES_NOT_EXIST_ERROR_CODE = NOTIFICATION_BOX_DOES_NOT_EXIST_ERROR_CODE;
|
|
10328
10368
|
exports.NOTIFICATION_BOX_EXISTS_FOR_MODEL_ERROR_CODE = NOTIFICATION_BOX_EXISTS_FOR_MODEL_ERROR_CODE;
|
|
10329
10369
|
exports.NOTIFICATION_BOX_RECIPIENT_DOES_NOT_EXIST_ERROR_CODE = NOTIFICATION_BOX_RECIPIENT_DOES_NOT_EXIST_ERROR_CODE;
|
|
10330
10370
|
exports.NOTIFICATION_MESSAGE_MAX_LENGTH = NOTIFICATION_MESSAGE_MAX_LENGTH;
|
|
@@ -10609,6 +10649,7 @@ exports.loadDocumentsForKeys = loadDocumentsForKeys;
|
|
|
10609
10649
|
exports.loadDocumentsForKeysFromValues = loadDocumentsForKeysFromValues;
|
|
10610
10650
|
exports.loadDocumentsForSnapshots = loadDocumentsForSnapshots;
|
|
10611
10651
|
exports.loadDocumentsForValues = loadDocumentsForValues;
|
|
10652
|
+
exports.loadNotificationBoxDocumentForReferencePair = loadNotificationBoxDocumentForReferencePair;
|
|
10612
10653
|
exports.makeDocuments = makeDocuments;
|
|
10613
10654
|
exports.makeFirestoreCollection = makeFirestoreCollection;
|
|
10614
10655
|
exports.makeFirestoreCollectionGroup = makeFirestoreCollectionGroup;
|
package/index.esm.js
CHANGED
|
@@ -9297,6 +9297,48 @@ function firebaseStorageClientDrivers() {
|
|
|
9297
9297
|
*/
|
|
9298
9298
|
const clientFirebaseStorageContextFactory = firebaseStorageContextFactory(firebaseStorageClientDrivers());
|
|
9299
9299
|
|
|
9300
|
+
/**
|
|
9301
|
+
* The NotificationBox's id is the two way flat firestore model key of the object that it represents.
|
|
9302
|
+
*/
|
|
9303
|
+
|
|
9304
|
+
/**
|
|
9305
|
+
* Creates a NotificationBoxId from the input FirestoreModelKey.
|
|
9306
|
+
*
|
|
9307
|
+
* @param modelKey
|
|
9308
|
+
* @returns
|
|
9309
|
+
*/
|
|
9310
|
+
const notificationBoxIdForModel = twoWayFlatFirestoreModelKey;
|
|
9311
|
+
const inferNotificationBoxRelatedModelKey = inferKeyFromTwoWayFlatFirestoreModelKey;
|
|
9312
|
+
/**
|
|
9313
|
+
* Creates a NotificationSummaryId from the input FirestoreModelKey.
|
|
9314
|
+
*
|
|
9315
|
+
* @param modelKey
|
|
9316
|
+
* @returns
|
|
9317
|
+
*/
|
|
9318
|
+
const notificationSummaryIdForModel = twoWayFlatFirestoreModelKey;
|
|
9319
|
+
|
|
9320
|
+
/**
|
|
9321
|
+
* Function used to retrieve a NotificationSummaryId given the input FirestoreAuthUserId.
|
|
9322
|
+
*/
|
|
9323
|
+
|
|
9324
|
+
function notificationSummaryIdForUidFunctionForRootFirestoreModelIdentity(userModelIdentity) {
|
|
9325
|
+
return uid => twoWayFlatFirestoreModelKey(firestoreModelKey(userModelIdentity, uid));
|
|
9326
|
+
}
|
|
9327
|
+
/**
|
|
9328
|
+
* The default notification template type that can be provided to subscribe to notifications not specified in the configurations.
|
|
9329
|
+
*/
|
|
9330
|
+
const DEFAULT_NOTIFICATION_TEMPLATE_TYPE = 'D';
|
|
9331
|
+
|
|
9332
|
+
/**
|
|
9333
|
+
* Template type identifier of the notification.
|
|
9334
|
+
*
|
|
9335
|
+
* Provides default information for the notification.
|
|
9336
|
+
*
|
|
9337
|
+
* Types are generally intended to be handled case-insensitively by notification services.
|
|
9338
|
+
*
|
|
9339
|
+
* Ideally type type values are shorter to reduce database size impact.
|
|
9340
|
+
*/
|
|
9341
|
+
|
|
9300
9342
|
/**
|
|
9301
9343
|
* Notification configuration state for a template.
|
|
9302
9344
|
*
|
|
@@ -9804,6 +9846,9 @@ class NotificationBoxDocument extends AbstractFirestoreDocument {
|
|
|
9804
9846
|
get modelIdentity() {
|
|
9805
9847
|
return notificationBoxIdentity;
|
|
9806
9848
|
}
|
|
9849
|
+
get notificationBoxRelatedModelKey() {
|
|
9850
|
+
return inferNotificationBoxRelatedModelKey(this.id);
|
|
9851
|
+
}
|
|
9807
9852
|
}
|
|
9808
9853
|
const notificationBoxConverter = snapshotConverterFunctions({
|
|
9809
9854
|
fields: {
|
|
@@ -10008,7 +10053,7 @@ function notificationWeekFirestoreCollectionGroup(firestoreContext) {
|
|
|
10008
10053
|
});
|
|
10009
10054
|
}
|
|
10010
10055
|
|
|
10011
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _dec28, _dec29, _dec30, _dec31, _class2, _descriptor8, _dec32, _dec33, _dec34, _dec35, _dec36, _dec37, _dec38, _dec39, _dec40, _dec41, _dec42, _dec43, _dec44, _dec45, _dec46, _dec47, _dec48, _dec49, _dec50, _dec51, _dec52, _dec53, _dec54, _dec55, _dec56, _dec57, _dec58, _dec59, _dec60, _dec61, _class3, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _dec62, _dec63, _dec64, _dec65, _dec66, _dec67, _dec68, _dec69, _dec70, _dec71, _dec72, _dec73, _dec74, _dec75, _dec76, _dec77, _dec78, _dec79, _class4, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _dec80, _dec81, _dec82, _dec83, _dec84, _dec85, _dec86, _dec87, _dec88, _dec89, _dec90, _dec91, _dec92, _dec93, _dec94, _dec95, _dec96, _dec97, _dec98, _dec99, _dec100, _dec101, _dec102, _class5, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _dec103, _dec104, _dec105, _dec106, _dec107, _dec108, _dec109, _dec110, _dec111, _dec112, _dec113, _dec114, _dec115, _dec116, _dec117, _dec118, _class6, _descriptor26, _descriptor27, _descriptor28, _dec119, _dec120, _dec121, _dec122, _class7, _descriptor29, _dec123, _dec124, _dec125, _dec126, _dec127, _dec128, _dec129, _dec130, _dec131, _class8, _descriptor30, _descriptor31, _dec132, _dec133, _dec134, _dec135, _class9, _descriptor32, _dec136, _dec137, _dec138, _dec139, _class10, _descriptor33, _dec140, _dec141, _dec142, _dec143, _dec144, _dec145, _dec146, _dec147, _dec148, _dec149, _dec150, _dec151, _dec152, _dec153, _dec154, _dec155, _dec156, _dec157, _dec158, _dec159, _dec160, _dec161, _dec162, _dec163, _class11, _descriptor34, _descriptor35, _descriptor36, _descriptor37, _descriptor38, _descriptor39, _dec164, _dec165, _dec166, _dec167, _dec168, _dec169, _dec170, _dec171, _dec172, _dec173, _dec174, _dec175, _dec176, _dec177, _dec178, _dec179, _dec180, _dec181, _class12, _descriptor40, _descriptor41, _descriptor42, _descriptor43, _dec182, _dec183, _dec184, _dec185, _dec186, _dec187, _dec188, _dec189, _class13, _descriptor44, _descriptor45;
|
|
10056
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _dec28, _dec29, _dec30, _dec31, _class2, _descriptor8, _dec32, _dec33, _dec34, _dec35, _dec36, _dec37, _dec38, _dec39, _dec40, _dec41, _dec42, _dec43, _dec44, _dec45, _dec46, _dec47, _dec48, _dec49, _dec50, _dec51, _dec52, _dec53, _dec54, _dec55, _dec56, _dec57, _dec58, _dec59, _dec60, _dec61, _class3, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _dec62, _dec63, _dec64, _dec65, _dec66, _dec67, _dec68, _dec69, _dec70, _dec71, _dec72, _dec73, _dec74, _dec75, _dec76, _dec77, _dec78, _dec79, _class4, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _dec80, _dec81, _dec82, _dec83, _dec84, _dec85, _dec86, _dec87, _dec88, _dec89, _dec90, _dec91, _dec92, _dec93, _dec94, _dec95, _dec96, _dec97, _dec98, _dec99, _dec100, _dec101, _dec102, _class5, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _dec103, _dec104, _dec105, _dec106, _dec107, _dec108, _dec109, _dec110, _dec111, _dec112, _dec113, _dec114, _dec115, _dec116, _dec117, _dec118, _class6, _descriptor26, _descriptor27, _descriptor28, _dec119, _dec120, _dec121, _dec122, _class7, _descriptor29, _dec123, _dec124, _dec125, _dec126, _dec127, _dec128, _dec129, _dec130, _dec131, _class8, _descriptor30, _descriptor31, _dec132, _dec133, _dec134, _dec135, _class9, _descriptor32, _dec136, _dec137, _dec138, _dec139, _class10, _descriptor33, _dec140, _dec141, _dec142, _dec143, _dec144, _dec145, _dec146, _dec147, _dec148, _dec149, _dec150, _dec151, _dec152, _dec153, _dec154, _dec155, _dec156, _dec157, _dec158, _dec159, _dec160, _dec161, _dec162, _dec163, _class11, _descriptor34, _descriptor35, _descriptor36, _descriptor37, _descriptor38, _descriptor39, _dec164, _dec165, _dec166, _dec167, _dec168, _dec169, _dec170, _dec171, _dec172, _dec173, _dec174, _dec175, _dec176, _dec177, _dec178, _dec179, _dec180, _dec181, _class12, _descriptor40, _descriptor41, _descriptor42, _descriptor43, _dec182, _dec183, _dec184, _dec185, _dec186, _dec187, _dec188, _dec189, _class13, _descriptor44, _descriptor45, _dec190, _dec191, _dec192, _class14, _descriptor46;
|
|
10012
10057
|
const NOTIFICATION_RECIPIENT_NAME_MIN_LENGTH = 0;
|
|
10013
10058
|
const NOTIFICATION_RECIPIENT_NAME_MAX_LENGTH = 42;
|
|
10014
10059
|
const NOTIFICATION_SUBJECT_MIN_LENGTH = 2;
|
|
@@ -10381,7 +10426,7 @@ let UpdateNotificationBoxRecipientParams = (_dec140 = Expose(), _dec141 = IsNotE
|
|
|
10381
10426
|
*/
|
|
10382
10427
|
_initializerDefineProperty(this, "uid", _descriptor36, this);
|
|
10383
10428
|
/**
|
|
10384
|
-
* Whether or not to
|
|
10429
|
+
* Whether or not to create the user if they currently do not exist. Defaults to false.
|
|
10385
10430
|
*/
|
|
10386
10431
|
_initializerDefineProperty(this, "insert", _descriptor37, this);
|
|
10387
10432
|
/**
|
|
@@ -10491,6 +10536,24 @@ let SendNotificationParams = (_dec182 = Expose(), _dec183 = IsOptional(), _dec18
|
|
|
10491
10536
|
writable: true,
|
|
10492
10537
|
initializer: null
|
|
10493
10538
|
})), _class13));
|
|
10539
|
+
|
|
10540
|
+
/**
|
|
10541
|
+
* Params class used for subscribing a system user to a NotificationBox for a model.
|
|
10542
|
+
*/
|
|
10543
|
+
let AbstractSubscribeToNotificationBoxParams = (_dec190 = Expose(), _dec191 = IsFirestoreModelId(), _dec192 = Reflect.metadata("design:type", typeof FirebaseAuthUserId === "undefined" ? Object : FirebaseAuthUserId), (_class14 = class AbstractSubscribeToNotificationBoxParams extends TargetModelParams {
|
|
10544
|
+
constructor(...args) {
|
|
10545
|
+
super(...args);
|
|
10546
|
+
/**
|
|
10547
|
+
* Notification recipient to subscribe to notifications
|
|
10548
|
+
*/
|
|
10549
|
+
_initializerDefineProperty(this, "uid", _descriptor46, this);
|
|
10550
|
+
}
|
|
10551
|
+
}, (_descriptor46 = _applyDecoratedDescriptor(_class14.prototype, "uid", [_dec190, _dec191, _dec192], {
|
|
10552
|
+
configurable: true,
|
|
10553
|
+
enumerable: true,
|
|
10554
|
+
writable: true,
|
|
10555
|
+
initializer: null
|
|
10556
|
+
})), _class14));
|
|
10494
10557
|
/**
|
|
10495
10558
|
* Used for sending queued notifications in the system.
|
|
10496
10559
|
*/
|
|
@@ -10519,54 +10582,13 @@ const notificationFunctionMap = callModelFirebaseFunctionMapFactory(notification
|
|
|
10519
10582
|
|
|
10520
10583
|
const CREATE_NOTIFICATION_ID_REQUIRED_ERROR_CODE = 'CREATE_NOTIFICATION_ID_REQUIRED';
|
|
10521
10584
|
const NOTIFICATION_MODEL_ALREADY_INITIALIZED_ERROR_CODE = 'NOTIFICATION_MODEL_ALREADY_INITIALIZED';
|
|
10585
|
+
const NOTIFICATION_BOX_DOES_NOT_EXIST_ERROR_CODE = 'NOTIFICATION_BOX_DOES_NOT_EXIST';
|
|
10522
10586
|
const NOTIFICATION_BOX_EXISTS_FOR_MODEL_ERROR_CODE = 'NOTIFICATION_BOX_EXISTS_FOR_MODEL';
|
|
10523
10587
|
const NOTIFICATION_BOX_RECIPIENT_DOES_NOT_EXIST_ERROR_CODE = 'NOTIFICATION_BOX_RECIPIENT_DOES_NOT_EXIST';
|
|
10524
10588
|
const NOTIFICATION_USER_INVALID_UID_FOR_CREATE_ERROR_CODE = 'NOTIFICATION_USER_INVALID_UID_FOR_CREATE';
|
|
10525
10589
|
const NOTIFICATION_USER_BLOCKED_FROM_BEING_ADD_TO_RECIPIENTS_ERROR_CODE = 'NOTIFICATION_USER_BLOCKED_FROM_BEING_ADD_TO_RECIPIENTS';
|
|
10526
10590
|
const NOTIFICATION_USER_LOCKED_CONFIG_FROM_BEING_UPDATED_ERROR_CODE = 'NOTIFICATION_USER_LOCKED_CONFIG_FROM_BEING_UPDATED';
|
|
10527
10591
|
|
|
10528
|
-
/**
|
|
10529
|
-
* The NotificationBox's id is the two way flat firestore model key of the object that it represents.
|
|
10530
|
-
*/
|
|
10531
|
-
|
|
10532
|
-
/**
|
|
10533
|
-
* Creates a NotificationBoxId from the input FirestoreModelKey.
|
|
10534
|
-
*
|
|
10535
|
-
* @param modelKey
|
|
10536
|
-
* @returns
|
|
10537
|
-
*/
|
|
10538
|
-
const notificationBoxIdForModel = twoWayFlatFirestoreModelKey;
|
|
10539
|
-
const inferNotificationBoxRelatedModelKey = inferKeyFromTwoWayFlatFirestoreModelKey;
|
|
10540
|
-
/**
|
|
10541
|
-
* Creates a NotificationSummaryId from the input FirestoreModelKey.
|
|
10542
|
-
*
|
|
10543
|
-
* @param modelKey
|
|
10544
|
-
* @returns
|
|
10545
|
-
*/
|
|
10546
|
-
const notificationSummaryIdForModel = twoWayFlatFirestoreModelKey;
|
|
10547
|
-
|
|
10548
|
-
/**
|
|
10549
|
-
* Function used to retrieve a NotificationSummaryId given the input FirestoreAuthUserId.
|
|
10550
|
-
*/
|
|
10551
|
-
|
|
10552
|
-
function notificationSummaryIdForUidFunctionForRootFirestoreModelIdentity(userModelIdentity) {
|
|
10553
|
-
return uid => twoWayFlatFirestoreModelKey(firestoreModelKey(userModelIdentity, uid));
|
|
10554
|
-
}
|
|
10555
|
-
/**
|
|
10556
|
-
* The default notification template type that can be provided to subscribe to notifications not specified in the configurations.
|
|
10557
|
-
*/
|
|
10558
|
-
const DEFAULT_NOTIFICATION_TEMPLATE_TYPE = 'D';
|
|
10559
|
-
|
|
10560
|
-
/**
|
|
10561
|
-
* Template type identifier of the notification.
|
|
10562
|
-
*
|
|
10563
|
-
* Provides default information for the notification.
|
|
10564
|
-
*
|
|
10565
|
-
* Types are generally intended to be handled case-insensitively by notification services.
|
|
10566
|
-
*
|
|
10567
|
-
* Ideally type type values are shorter to reduce database size impact.
|
|
10568
|
-
*/
|
|
10569
|
-
|
|
10570
10592
|
/**
|
|
10571
10593
|
* Updates a NotificationUserDefaultNotificationBoxRecipientConfig with the input UpdateNotificationUserDefaultNotificationBoxRecipientConfigParams.
|
|
10572
10594
|
*
|
|
@@ -10723,8 +10745,14 @@ function createNotificationTemplate(input) {
|
|
|
10723
10745
|
const notificationModel = readFirestoreModelKey(inputNotification);
|
|
10724
10746
|
const targetModel = inputTargetModel ? readFirestoreModelKey(inputTargetModel) : undefined;
|
|
10725
10747
|
let d = data != null ? data : inputD;
|
|
10726
|
-
if (d
|
|
10727
|
-
|
|
10748
|
+
if (d != null) {
|
|
10749
|
+
const filteredData = filterUndefinedValues(d, true); // filter both null and undefined values
|
|
10750
|
+
|
|
10751
|
+
if (objectHasNoKeys(filteredData)) {
|
|
10752
|
+
d = undefined;
|
|
10753
|
+
} else {
|
|
10754
|
+
d = filteredData;
|
|
10755
|
+
}
|
|
10728
10756
|
}
|
|
10729
10757
|
const template = {
|
|
10730
10758
|
notificationModel,
|
|
@@ -11331,6 +11359,25 @@ function mergeNotificationBoxRecipients(a, b) {
|
|
|
11331
11359
|
});
|
|
11332
11360
|
}
|
|
11333
11361
|
|
|
11362
|
+
// MARK: NotificationBox
|
|
11363
|
+
|
|
11364
|
+
function loadNotificationBoxDocumentForReferencePair(input, accessor) {
|
|
11365
|
+
const {
|
|
11366
|
+
notificationBoxDocument: inputNotificationBoxDocument,
|
|
11367
|
+
notificationBoxRelatedModelKey: inputNotificationBoxRelatedModelKey
|
|
11368
|
+
} = input;
|
|
11369
|
+
let notificationBoxDocument;
|
|
11370
|
+
if (inputNotificationBoxDocument != null) {
|
|
11371
|
+
notificationBoxDocument = inputNotificationBoxDocument;
|
|
11372
|
+
} else if (inputNotificationBoxRelatedModelKey) {
|
|
11373
|
+
const notificationBoxId = notificationBoxIdForModel(inputNotificationBoxRelatedModelKey);
|
|
11374
|
+
notificationBoxDocument = accessor.loadDocumentForId(notificationBoxId);
|
|
11375
|
+
} else {
|
|
11376
|
+
throw new Error('NotificationBoxDocument or NotificationBoxRelatedModelKey is required');
|
|
11377
|
+
}
|
|
11378
|
+
return notificationBoxDocument;
|
|
11379
|
+
}
|
|
11380
|
+
|
|
11334
11381
|
// MARK: Collection
|
|
11335
11382
|
class SystemStateFirestoreCollections {
|
|
11336
11383
|
constructor() {
|
|
@@ -11402,4 +11449,4 @@ function systemStateFirestoreCollection(firestoreContext, converters) {
|
|
|
11402
11449
|
});
|
|
11403
11450
|
}
|
|
11404
11451
|
|
|
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 };
|
|
11452
|
+
export { AbstractFirestoreDocument, AbstractFirestoreDocumentDataAccessorWrapper, AbstractFirestoreDocumentWithParent, AbstractSubscribeToNotificationBoxParams, 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_DOES_NOT_EXIST_ERROR_CODE, NOTIFICATION_BOX_EXISTS_FOR_MODEL_ERROR_CODE, NOTIFICATION_BOX_RECIPIENT_DOES_NOT_EXIST_ERROR_CODE, NOTIFICATION_MESSAGE_MAX_LENGTH, NOTIFICATION_MESSAGE_MIN_LENGTH, NOTIFICATION_MODEL_ALREADY_INITIALIZED_ERROR_CODE, NOTIFICATION_RECIPIENT_NAME_MAX_LENGTH, NOTIFICATION_RECIPIENT_NAME_MIN_LENGTH, NOTIFICATION_SUBJECT_MAX_LENGTH, NOTIFICATION_SUBJECT_MIN_LENGTH, NOTIFICATION_SUMMARY_EMBEDDED_NOTIFICATION_ITEM_MESSAGE_MAX_LENGTH, NOTIFICATION_SUMMARY_EMBEDDED_NOTIFICATION_ITEM_SUBJECT_MAX_LENGTH, NOTIFICATION_SUMMARY_ITEM_LIMIT, NOTIFICATION_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, loadNotificationBoxDocumentForReferencePair, 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
|
@@ -199,7 +199,7 @@ export declare class UpdateNotificationBoxRecipientParams extends UpdateNotifica
|
|
|
199
199
|
*/
|
|
200
200
|
uid?: Maybe<FirebaseAuthUserId>;
|
|
201
201
|
/**
|
|
202
|
-
* Whether or not to
|
|
202
|
+
* Whether or not to create the user if they currently do not exist. Defaults to false.
|
|
203
203
|
*/
|
|
204
204
|
insert?: Maybe<boolean>;
|
|
205
205
|
/**
|
|
@@ -242,6 +242,15 @@ export declare class SendNotificationParams extends TargetModelParams {
|
|
|
242
242
|
*/
|
|
243
243
|
throwErrorIfSent?: Maybe<boolean>;
|
|
244
244
|
}
|
|
245
|
+
/**
|
|
246
|
+
* Params class used for subscribing a system user to a NotificationBox for a model.
|
|
247
|
+
*/
|
|
248
|
+
export declare abstract class AbstractSubscribeToNotificationBoxParams extends TargetModelParams {
|
|
249
|
+
/**
|
|
250
|
+
* Notification recipient to subscribe to notifications
|
|
251
|
+
*/
|
|
252
|
+
uid: FirebaseAuthUserId;
|
|
253
|
+
}
|
|
245
254
|
export interface SendNotificationResult {
|
|
246
255
|
/**
|
|
247
256
|
* Attempted notification type
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const CREATE_NOTIFICATION_ID_REQUIRED_ERROR_CODE = "CREATE_NOTIFICATION_ID_REQUIRED";
|
|
2
2
|
export declare const NOTIFICATION_MODEL_ALREADY_INITIALIZED_ERROR_CODE = "NOTIFICATION_MODEL_ALREADY_INITIALIZED";
|
|
3
|
+
export declare const NOTIFICATION_BOX_DOES_NOT_EXIST_ERROR_CODE = "NOTIFICATION_BOX_DOES_NOT_EXIST";
|
|
3
4
|
export declare const NOTIFICATION_BOX_EXISTS_FOR_MODEL_ERROR_CODE = "NOTIFICATION_BOX_EXISTS_FOR_MODEL";
|
|
4
5
|
export declare const NOTIFICATION_BOX_RECIPIENT_DOES_NOT_EXIST_ERROR_CODE = "NOTIFICATION_BOX_RECIPIENT_DOES_NOT_EXIST";
|
|
5
6
|
export declare const NOTIFICATION_USER_INVALID_UID_FOR_CREATE_ERROR_CODE = "NOTIFICATION_USER_INVALID_UID_FOR_CREATE";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Maybe, type ModelKey } from '@dereekb/util';
|
|
1
|
+
import { type Maybe, type Milliseconds, type ModelKey } from '@dereekb/util';
|
|
2
2
|
import { type Notification, type NotificationDocument, type NotificationFirestoreCollections, NotificationSendType } from './notification';
|
|
3
3
|
import { type NotificationRecipientWithConfig } from './notification.config';
|
|
4
4
|
import { type NotificationTemplateType } from './notification.id';
|
|
@@ -77,7 +77,7 @@ export interface ShouldSendCreatedNotificationInput {
|
|
|
77
77
|
/**
|
|
78
78
|
* Amount of time to throttle notifications. Only used if sendNotificationThrottleDate is provided. Defaults to 1 hour.
|
|
79
79
|
*/
|
|
80
|
-
readonly sendNotificationThrottleTime?: Maybe<
|
|
80
|
+
readonly sendNotificationThrottleTime?: Maybe<Milliseconds>;
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
83
83
|
* Returns true if the notification should be created/sent, given the input.
|
|
@@ -202,6 +202,7 @@ export interface NotificationBox {
|
|
|
202
202
|
export type NotificationBoxRoles = 'subscribe' | 'manageRecipients' | 'createNotification' | GrantedReadRole | GrantedUpdateRole;
|
|
203
203
|
export declare class NotificationBoxDocument extends AbstractFirestoreDocument<NotificationBox, NotificationBoxDocument, typeof notificationBoxIdentity> {
|
|
204
204
|
get modelIdentity(): import("../../common").RootFirestoreModelIdentity<"notificationBox", "nb">;
|
|
205
|
+
get notificationBoxRelatedModelKey(): string;
|
|
205
206
|
}
|
|
206
207
|
export declare const notificationBoxConverter: import("../../common").SnapshotConverterFunctions<NotificationBox, Partial<import("@dereekb/util").ReplaceType<NotificationBox, import("@dereekb/util").MaybeMap<object>, any>>>;
|
|
207
208
|
export declare function notificationBoxCollectionReference(context: FirestoreContext): CollectionReference<NotificationBox>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type Maybe } from '@dereekb/util';
|
|
2
|
-
import { type Notification, NotificationRecipientSendFlag, type NotificationSendFlags, NotificationSendState } from './notification';
|
|
2
|
+
import { type Notification, type NotificationBox, type NotificationBoxDocument, NotificationRecipientSendFlag, type NotificationSendFlags, NotificationSendState } from './notification';
|
|
3
3
|
import { type NotificationUserNotificationBoxRecipientConfig, type NotificationBoxRecipient, type NotificationUserDefaultNotificationBoxRecipientConfig } from './notification.config';
|
|
4
4
|
import { type AppNotificationTemplateTypeInfoRecordService } from './notification.details';
|
|
5
|
-
import { type FirebaseAuthUserId, type FirestoreModelKey } from '../../common';
|
|
5
|
+
import { type FirebaseAuthUserId, type FirestoreDocumentAccessor, type FirestoreModelKey } from '../../common';
|
|
6
6
|
export interface EffectiveNotificationBoxRecipientConfigInput {
|
|
7
7
|
readonly uid: FirebaseAuthUserId;
|
|
8
8
|
readonly m?: FirestoreModelKey;
|
|
@@ -49,3 +49,16 @@ export declare function allowedNotificationRecipients(flag?: Maybe<NotificationR
|
|
|
49
49
|
export declare function shouldSaveNotificationToNotificationWeek(notification: Notification): boolean;
|
|
50
50
|
export declare function mergeNotificationUserNotificationBoxRecipientConfigs(a: NotificationUserNotificationBoxRecipientConfig, b: Partial<NotificationUserNotificationBoxRecipientConfig>): NotificationUserNotificationBoxRecipientConfig;
|
|
51
51
|
export declare function mergeNotificationBoxRecipients<T extends NotificationBoxRecipient>(a: T, b: Partial<T>): T;
|
|
52
|
+
export interface NotificationBoxDocumentReferencePair {
|
|
53
|
+
/**
|
|
54
|
+
* NotificationBoxDocument to update.
|
|
55
|
+
*
|
|
56
|
+
* If not provided, please provide the notificationBoxRelatedModelKey. If neither value is provided, an error will be thrown.
|
|
57
|
+
*/
|
|
58
|
+
readonly notificationBoxDocument?: Maybe<NotificationBoxDocument>;
|
|
59
|
+
/**
|
|
60
|
+
* Key of the model the notification box is expected to be associated with. Used if NotificationBoxDocument is not provided already.
|
|
61
|
+
*/
|
|
62
|
+
readonly notificationBoxRelatedModelKey?: Maybe<FirestoreModelKey>;
|
|
63
|
+
}
|
|
64
|
+
export declare function loadNotificationBoxDocumentForReferencePair(input: NotificationBoxDocumentReferencePair, accessor: FirestoreDocumentAccessor<NotificationBox, NotificationBoxDocument>): NotificationBoxDocument;
|
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.4](https://github.com/dereekb/dbx-components/compare/v11.1.3-dev...v11.1.4) (2025-03-17)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [11.1.3](https://github.com/dereekb/dbx-components/compare/v11.1.2-dev...v11.1.3) (2025-03-07)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
5
13
|
## [11.1.2](https://github.com/dereekb/dbx-components/compare/v11.1.1-dev...v11.1.2) (2025-03-04)
|
|
6
14
|
|
|
7
15
|
|