@dereekb/firebase-server 13.11.13 → 13.11.15

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.
Files changed (102) hide show
  1. package/index.cjs.js +229 -199
  2. package/index.esm.js +230 -200
  3. package/mailgun/package.json +9 -9
  4. package/model/index.cjs.js +259 -270
  5. package/model/index.esm.js +259 -270
  6. package/model/package.json +9 -9
  7. package/model/src/lib/mailgun/notification.send.service.mailgun.d.ts +3 -3
  8. package/model/src/lib/notification/notification.action.server.d.ts +34 -34
  9. package/model/src/lib/notification/notification.action.server.init.d.ts +17 -17
  10. package/model/src/lib/notification/notification.config.service.d.ts +7 -7
  11. package/model/src/lib/notification/notification.create.run.d.ts +3 -3
  12. package/model/src/lib/notification/notification.error.d.ts +14 -14
  13. package/model/src/lib/notification/notification.expedite.service.d.ts +7 -7
  14. package/model/src/lib/notification/notification.module.d.ts +13 -13
  15. package/model/src/lib/notification/notification.send.service.notificationsummary.d.ts +2 -2
  16. package/model/src/lib/notification/notification.send.service.text.d.ts +1 -1
  17. package/model/src/lib/notification/notification.task.service.handler.d.ts +2 -2
  18. package/model/src/lib/notification/notification.task.service.util.d.ts +3 -3
  19. package/model/src/lib/notification/notification.task.subtask.handler.d.ts +3 -3
  20. package/model/src/lib/notification/notification.util.d.ts +8 -8
  21. package/model/src/lib/storagefile/storagefile.action.server.d.ts +43 -44
  22. package/model/src/lib/storagefile/storagefile.action.server.init.d.ts +11 -11
  23. package/model/src/lib/storagefile/storagefile.error.d.ts +15 -15
  24. package/model/src/lib/storagefile/storagefile.module.d.ts +10 -10
  25. package/model/src/lib/storagefile/storagefile.task.service.handler.d.ts +6 -6
  26. package/model/src/lib/storagefile/storagefile.upload.service.initializer.d.ts +5 -5
  27. package/model/src/lib/storagefile/storagefile.util.d.ts +2 -2
  28. package/oidc/index.cjs.js +219 -219
  29. package/oidc/index.esm.js +219 -219
  30. package/oidc/package.json +10 -10
  31. package/oidc/src/lib/controller/oidc.interaction.controller.d.ts +44 -25
  32. package/oidc/src/lib/controller/oidc.provider.controller.d.ts +1 -1
  33. package/oidc/src/lib/controller/oidc.wellknown.controller.d.ts +3 -3
  34. package/oidc/src/lib/middleware/oauth-cors.module.d.ts +1 -1
  35. package/oidc/src/lib/model/jwks/jwks.d.ts +6 -6
  36. package/oidc/src/lib/model/jwks/jwks.query.d.ts +5 -5
  37. package/oidc/src/lib/model/oidc/oidcmodel.action.server.d.ts +12 -12
  38. package/oidc/src/lib/model/oidc/oidcmodel.module.d.ts +5 -5
  39. package/oidc/src/lib/oidc.config.d.ts +1 -1
  40. package/oidc/src/lib/oidc.module.d.ts +8 -8
  41. package/oidc/src/lib/service/oidc.account.service.d.ts +4 -4
  42. package/oidc/src/lib/service/oidc.adapter.service.d.ts +4 -4
  43. package/oidc/src/lib/service/oidc.client.service.d.ts +3 -3
  44. package/oidc/src/lib/service/oidc.config.service.d.ts +1 -1
  45. package/oidc/src/lib/service/oidc.encryption.service.d.ts +4 -4
  46. package/oidc/src/lib/service/oidc.interaction.service.d.ts +14 -14
  47. package/oidc/src/lib/service/oidc.jwks.service.d.ts +6 -6
  48. package/oidc/src/lib/service/oidc.service.d.ts +5 -5
  49. package/package.json +10 -10
  50. package/src/lib/auth/auth.service.d.ts +8 -8
  51. package/src/lib/auth/auth.util.d.ts +1 -1
  52. package/src/lib/env/env.config.d.ts +5 -4
  53. package/src/lib/firestore/driver.accessor.batch.d.ts +2 -1
  54. package/src/lib/firestore/driver.accessor.d.ts +1 -1
  55. package/src/lib/firestore/driver.accessor.default.d.ts +2 -1
  56. package/src/lib/firestore/driver.accessor.transaction.d.ts +2 -1
  57. package/src/lib/firestore/snapshot/snapshot.field.encrypt.d.ts +10 -6
  58. package/src/lib/function/type.d.ts +4 -4
  59. package/src/lib/nest/analytics/analytics.module.d.ts +6 -5
  60. package/src/lib/nest/app.d.ts +4 -4
  61. package/src/lib/nest/app.module.d.ts +3 -2
  62. package/src/lib/nest/auth/auth.module.d.ts +4 -3
  63. package/src/lib/nest/controller/model/model.api.controller.d.ts +1 -0
  64. package/src/lib/nest/controller/model/model.api.get.service.d.ts +1 -1
  65. package/src/lib/nest/controller/model/model.api.module.d.ts +4 -3
  66. package/src/lib/nest/development/development.function.d.ts +1 -1
  67. package/src/lib/nest/development/development.schedule.function.error.d.ts +2 -2
  68. package/src/lib/nest/env/env.util.d.ts +2 -2
  69. package/src/lib/nest/firestore/firestore.module.d.ts +16 -15
  70. package/src/lib/nest/function/call.d.ts +6 -6
  71. package/src/lib/nest/function/context.d.ts +7 -6
  72. package/src/lib/nest/function/v2/blocking.d.ts +8 -6
  73. package/src/lib/nest/function/v2/call.d.ts +7 -5
  74. package/src/lib/nest/function/v2/event.d.ts +3 -2
  75. package/src/lib/nest/function/v2/schedule.d.ts +3 -2
  76. package/src/lib/nest/function/v2/taskqueue.d.ts +2 -1
  77. package/src/lib/nest/model/analytics.emit.d.ts +5 -5
  78. package/src/lib/nest/model/api.details.d.ts +4 -4
  79. package/src/lib/nest/model/query.model.function.d.ts +3 -3
  80. package/src/lib/nest/nest.provider.d.ts +7 -7
  81. package/src/lib/nest/storage/storage.module.d.ts +6 -5
  82. package/src/lib/storage/driver.accessor.d.ts +10 -10
  83. package/test/index.cjs.js +48 -57
  84. package/test/index.esm.js +48 -57
  85. package/test/package.json +11 -11
  86. package/test/src/lib/firebase/firebase.admin.auth.d.ts +18 -18
  87. package/test/src/lib/firebase/firebase.admin.collection.d.ts +7 -7
  88. package/test/src/lib/firebase/firebase.admin.d.ts +2 -2
  89. package/test/src/lib/firebase/firebase.admin.function.d.ts +2 -2
  90. package/test/src/lib/firebase/firebase.admin.nest.function.callable.context.d.ts +1 -1
  91. package/test/src/lib/firebase/firebase.admin.nest.function.cloud.context.d.ts +3 -3
  92. package/test/src/lib/firebase/firebase.d.ts +6 -5
  93. package/test/src/lib/firebase/firebase.function.d.ts +31 -31
  94. package/test/src/lib/firestore/firestore.d.ts +2 -2
  95. package/test/src/lib/oidc/oidc.test.fixture.d.ts +1 -1
  96. package/test/src/lib/oidc/oidc.test.flow.d.ts +1 -1
  97. package/test/src/lib/storage/storage.d.ts +2 -2
  98. package/zoho/index.cjs.js +2 -2
  99. package/zoho/index.esm.js +2 -2
  100. package/zoho/package.json +9 -9
  101. package/zoho/src/lib/zoho.accounts.firebase.d.ts +1 -1
  102. package/zoho/src/lib/zoho.accounts.firebase.system.d.ts +1 -1
@@ -184,7 +184,7 @@ function _ts_generator$h(thisArg, body) {
184
184
  };
185
185
  }
186
186
  }
187
- var MAILGUN_NOTIFICATION_EMAIL_SEND_SERVICE_DEFAULT_MAX_BATCH_SIZE_PER_REQUEST = 50;
187
+ var DEFAULT_MAILGUN_NOTIFICATION_EMAIL_SEND_SERVICE_MAX_BATCH_SIZE_PER_REQUEST = 50;
188
188
  /**
189
189
  * Creates a {@link NotificationEmailSendService} that sends notification emails via Mailgun.
190
190
  *
@@ -192,8 +192,8 @@ var MAILGUN_NOTIFICATION_EMAIL_SEND_SERVICE_DEFAULT_MAX_BATCH_SIZE_PER_REQUEST =
192
192
  * converts each batch to a {@link MailgunTemplateEmailRequest} using the configured template builders,
193
193
  * and dispatches them through the Mailgun API.
194
194
  *
195
- * @param config - service configuration including the Mailgun service, template builders, and batch size
196
- * @returns a {@link NotificationEmailSendService} that batches and sends emails through Mailgun
195
+ * @param config - Service configuration including the Mailgun service, template builders, and batch size.
196
+ * @returns A {@link NotificationEmailSendService} that batches and sends emails through Mailgun.
197
197
  *
198
198
  * @example
199
199
  * ```ts
@@ -211,7 +211,7 @@ var MAILGUN_NOTIFICATION_EMAIL_SEND_SERVICE_DEFAULT_MAX_BATCH_SIZE_PER_REQUEST =
211
211
  */ function mailgunNotificationEmailSendService(config) {
212
212
  var mailgunService = config.mailgunService, defaultSendTemplateName = config.defaultSendTemplateName, inputMaxBatchSizePerRequest = config.maxBatchSizePerRequest, inputMessageBuilders = config.messageBuilders;
213
213
  var lowercaseKeysMessageBuilders = mapObjectKeysToLowercase(inputMessageBuilders);
214
- var maxBatchSizePerRequest = inputMaxBatchSizePerRequest !== null && inputMaxBatchSizePerRequest !== void 0 ? inputMaxBatchSizePerRequest : MAILGUN_NOTIFICATION_EMAIL_SEND_SERVICE_DEFAULT_MAX_BATCH_SIZE_PER_REQUEST;
214
+ var maxBatchSizePerRequest = inputMaxBatchSizePerRequest !== null && inputMaxBatchSizePerRequest !== void 0 ? inputMaxBatchSizePerRequest : DEFAULT_MAILGUN_NOTIFICATION_EMAIL_SEND_SERVICE_MAX_BATCH_SIZE_PER_REQUEST;
215
215
  var sendService = {
216
216
  buildSendInstanceForEmailNotificationMessages: function buildSendInstanceForEmailNotificationMessages(notificationMessages) {
217
217
  return _async_to_generator$h(function() {
@@ -327,7 +327,7 @@ var MAILGUN_NOTIFICATION_EMAIL_SEND_SERVICE_DEFAULT_MAX_BATCH_SIZE_PER_REQUEST =
327
327
  *
328
328
  * Thrown when attempting to create a {@link Notification} document without providing the mandatory ID field.
329
329
  *
330
- * @returns a precondition conflict error with the notification ID required error code
330
+ * @returns A precondition conflict error with the notification ID required error code.
331
331
  */ function createNotificationIdRequiredError() {
332
332
  return preconditionConflictError({
333
333
  message: "The required id was not present when attempting to create a Notification.",
@@ -340,7 +340,7 @@ var MAILGUN_NOTIFICATION_EMAIL_SEND_SERVICE_DEFAULT_MAX_BATCH_SIZE_PER_REQUEST =
340
340
  * Thrown during initialization when `throwErrorIfAlreadyInitialized` is true and the model's
341
341
  * setup flag (`s`) indicates it was previously initialized.
342
342
  *
343
- * @returns a precondition conflict error with the already-initialized error code
343
+ * @returns A precondition conflict error with the already-initialized error code.
344
344
  */ function notificationModelAlreadyInitializedError() {
345
345
  return preconditionConflictError({
346
346
  message: "This model has already been initialized.",
@@ -352,8 +352,8 @@ var MAILGUN_NOTIFICATION_EMAIL_SEND_SERVICE_DEFAULT_MAX_BATCH_SIZE_PER_REQUEST =
352
352
  *
353
353
  * Thrown when the model key's collection name does not match any registered notification model type.
354
354
  *
355
- * @param key - the Firestore model key that has no registered notification model type
356
- * @returns a precondition conflict error with the unregistered model type error code
355
+ * @param key - The Firestore model key that has no registered notification model type.
356
+ * @returns A precondition conflict error with the unregistered model type error code.
357
357
  */ function notificationBoxUnregistredModelTypeInitializationError(key) {
358
358
  return preconditionConflictError({
359
359
  message: "This NotificationBox is associated with an unregistered model type.",
@@ -368,7 +368,7 @@ var MAILGUN_NOTIFICATION_EMAIL_SEND_SERVICE_DEFAULT_MAX_BATCH_SIZE_PER_REQUEST =
368
368
  *
369
369
  * Thrown when an operation requires a NotificationBox but none has been created for the given model key.
370
370
  *
371
- * @returns a precondition conflict error with the box-not-found error code
371
+ * @returns A precondition conflict error with the box-not-found error code.
372
372
  */ function notificationBoxDoesNotExist() {
373
373
  return preconditionConflictError({
374
374
  message: "A NotificationBox does not exist for this model.",
@@ -381,7 +381,7 @@ var MAILGUN_NOTIFICATION_EMAIL_SEND_SERVICE_DEFAULT_MAX_BATCH_SIZE_PER_REQUEST =
381
381
  * Thrown when the target recipient on the {@link NotificationBox} does not exist on the box
382
382
  * or does not have a UID, making it ineligible for exclusion.
383
383
  *
384
- * @returns a precondition conflict error with the invalid exclusion target error code
384
+ * @returns A precondition conflict error with the invalid exclusion target error code.
385
385
  */ function notificationBoxExclusionTargetInvalidError() {
386
386
  return preconditionConflictError({
387
387
  message: "The target for exclusion is invalid. The target recipient on the NotificationBox must be exist on the NotificationBox and have a uid to be excluded.",
@@ -393,7 +393,7 @@ var MAILGUN_NOTIFICATION_EMAIL_SEND_SERVICE_DEFAULT_MAX_BATCH_SIZE_PER_REQUEST =
393
393
  *
394
394
  * Thrown when attempting to create a duplicate NotificationBox for a model that already has one.
395
395
  *
396
- * @returns a precondition conflict error with the box-exists error code
396
+ * @returns A precondition conflict error with the box-exists error code.
397
397
  */ function notificationBoxExistsForModelError() {
398
398
  return preconditionConflictError({
399
399
  message: "A NotificationBox already exists for this model.",
@@ -406,7 +406,7 @@ var MAILGUN_NOTIFICATION_EMAIL_SEND_SERVICE_DEFAULT_MAX_BATCH_SIZE_PER_REQUEST =
406
406
  * Thrown when attempting to update a recipient that is not registered on the box
407
407
  * and `insert=true` was not passed to allow creating a new recipient entry.
408
408
  *
409
- * @returns a precondition conflict error with the recipient-not-found error code
409
+ * @returns A precondition conflict error with the recipient-not-found error code.
410
410
  */ function notificationBoxRecipientDoesNotExistsError() {
411
411
  return preconditionConflictError({
412
412
  message: "An existing NotificationBox recipient for the target does not exist. You must pass insert=true to create a new recipient.",
@@ -418,8 +418,8 @@ var MAILGUN_NOTIFICATION_EMAIL_SEND_SERVICE_DEFAULT_MAX_BATCH_SIZE_PER_REQUEST =
418
418
  *
419
419
  * Thrown during {@link NotificationUser} creation when the provided UID cannot be found in Firebase Auth.
420
420
  *
421
- * @param uid - the Firebase Auth user ID that was not found
422
- * @returns a precondition conflict error with the invalid-uid error code
421
+ * @param uid - The Firebase Auth user ID that was not found.
422
+ * @returns A precondition conflict error with the invalid-uid error code.
423
423
  */ function notificationUserInvalidUidForCreateError(uid) {
424
424
  return preconditionConflictError({
425
425
  message: "The user with the uid '".concat(uid, "' does not exist. Cannot create a NotificationUser for them."),
@@ -435,8 +435,8 @@ var MAILGUN_NOTIFICATION_EMAIL_SEND_SERVICE_DEFAULT_MAX_BATCH_SIZE_PER_REQUEST =
435
435
  * Thrown when a {@link NotificationUser} has the `bk` (blocked-from-add) flag set on their config
436
436
  * and an operation attempts to insert them into a {@link NotificationBox}'s recipient list.
437
437
  *
438
- * @param uid - the Firebase Auth user ID of the blocked user
439
- * @returns a precondition conflict error with the blocked-from-add error code
438
+ * @param uid - The Firebase Auth user ID of the blocked user.
439
+ * @returns A precondition conflict error with the blocked-from-add error code.
440
440
  */ function notificationUserBlockedFromBeingAddedToRecipientsError(uid) {
441
441
  return preconditionConflictError({
442
442
  message: "The user with the uid '".concat(uid, "' has blocked themselves from from being added recipients."),
@@ -452,8 +452,8 @@ var MAILGUN_NOTIFICATION_EMAIL_SEND_SERVICE_DEFAULT_MAX_BATCH_SIZE_PER_REQUEST =
452
452
  * Thrown when a {@link NotificationUser} has the `lk` (locked) flag set on their config
453
453
  * and an operation attempts to modify their recipient settings on a {@link NotificationBox}.
454
454
  *
455
- * @param uid - the Firebase Auth user ID of the locked user
456
- * @returns a precondition conflict error with the locked-config error code
455
+ * @param uid - The Firebase Auth user ID of the locked user.
456
+ * @returns A precondition conflict error with the locked-config error code.
457
457
  */ function notificationUserLockedConfigFromBeingUpdatedError(uid) {
458
458
  return preconditionConflictError({
459
459
  message: "The user with the uid '".concat(uid, "' has locked their config from being updated."),
@@ -671,8 +671,8 @@ function _ts_generator$g(thisArg, body) {
671
671
  * Sets the creation timestamp to now, associates the summary with the given model key,
672
672
  * and initializes with an empty notifications array.
673
673
  *
674
- * @param model - the model key to associate the summary with
675
- * @returns a blank {@link NotificationSummary} with creation timestamp and empty notifications
674
+ * @param model - The model key to associate the summary with.
675
+ * @returns A blank {@link NotificationSummary} with creation timestamp and empty notifications.
676
676
  *
677
677
  * @example
678
678
  * ```ts
@@ -695,8 +695,8 @@ function _ts_generator$g(thisArg, body) {
695
695
  *
696
696
  * Recipients are each configurable and may be defined with as little info as a single contact info, or have multiple contact info pieces associated with them.
697
697
  *
698
- * @param input - the notification, box, auth service, and recipient configuration
699
- * @returns channel-specific recipient lists (email, text, notification summary) ready for delivery
698
+ * @param input - The notification, box, auth service, and recipient configuration.
699
+ * @returns Channel-specific recipient lists (email, text, notification summary) ready for delivery.
700
700
  */ function expandNotificationRecipients(input) {
701
701
  return _async_to_generator$g(function() {
702
702
  var _ref, notificationUserAccessor, authService, notification, notificationBox, inputGlobalRecipients, recipientFlagOverride, inputNotificationSummaryIdForUid, inputOnlySendToExplicitlyEnabledRecipients, inputOnlyTextExplicitlyEnabledRecipients, notificationBoxId, notificationSummaryIdForUid, notificationTemplateType, recipientFlag, onlyTextExplicitlyEnabledRecipients, onlySendToExplicitlyEnabledRecipients, onlyEmailExplicitlyEnabledRecipients, onlySendNotificationSummaryExplicitlyEnabledRecipients, _allowedNotificationRecipients, canSendToGlobalRecipients, canSendToBoxRecipients, canSendToExplicitRecipients, initialExplicitRecipients, initialGlobalRecipients, explicitRecipients, globalRecipients, explicitAndGlobalRecipients, allBoxRecipientConfigs, recipientUids, relevantBoxRecipientConfigs, nonNotificationBoxUidRecipientConfigs, otherNotificationUserUidOptOuts, otherNotificationUserUidSendExclusions, notificationUserRecipientConfigs, nonNotificationBoxRecipientUids, notificationUserDocuments, notificationUsers, otherRecipientConfigs, explicitOtherRecipientEmailAddresses, explicitOtherRecipientTextNumbers, explicitOtherRecipientNotificationSummaryIds, allUserDetails, userDetailsMap, _internal, emails, emailUidsSet, texts, textUidsSet, notificationSummaries, notificationSummaryKeysSet, notificationSummaryUidsSet, result;
@@ -1098,10 +1098,10 @@ function _ts_generator$g(thisArg, body) {
1098
1098
  *
1099
1099
  * Also re-applies send exclusions to the updated config array.
1100
1100
  *
1101
- * @param input - the current state and intended change
1102
- * @returns the updated box config array and notification box recipient, if changes occurred
1103
- * @throws notificationUserBlockedFromBeingAddedToRecipientsError when inserting a blocked user
1104
- * @throws notificationUserLockedConfigFromBeingUpdatedError when updating a locked user's config
1101
+ * @param input - The current state and intended change.
1102
+ * @returns The updated box config array and notification box recipient, if changes occurred.
1103
+ * @throws {Error} NotificationUserBlockedFromBeingAddedToRecipientsError when inserting a blocked user.
1104
+ * @throws {Error} NotificationUserLockedConfigFromBeingUpdatedError when updating a locked user's config.
1105
1105
  */ function updateNotificationUserNotificationBoxRecipientConfig(input) {
1106
1106
  var _notificationUser_bc_currentNotificationUserBoxIndex;
1107
1107
  var notificationBoxId = input.notificationBoxId, notificationUserId = input.notificationUserId, notificationUser = input.notificationUser, insertingRecipientIntoNotificationBox = input.insertingRecipientIntoNotificationBox, removeRecipientFromNotificationBox = input.removeRecipientFromNotificationBox, notificationBoxRecipient = input.notificationBoxRecipient;
@@ -1195,9 +1195,9 @@ function _ts_generator$g(thisArg, body) {
1195
1195
  * If `removeFromCompletedCheckpoints` is set, removes only those specific checkpoints.
1196
1196
  * Otherwise, returns the original array unchanged.
1197
1197
  *
1198
- * @param inputCompletions - the current list of completed checkpoint strings
1199
- * @param handleTaskResult - the handler result containing removal instructions
1200
- * @returns the filtered completions array with specified checkpoints removed
1198
+ * @param inputCompletions - The current list of completed checkpoint strings.
1199
+ * @param handleTaskResult - The handler result containing removal instructions.
1200
+ * @returns The filtered completions array with specified checkpoints removed.
1201
1201
  *
1202
1202
  * @example
1203
1203
  * ```ts
@@ -1492,8 +1492,8 @@ function _ts_generator$f(thisArg, body) {
1492
1492
  * Creates a concrete {@link NotificationServerActions} implementation by wiring each action
1493
1493
  * to its factory function using the provided context.
1494
1494
  *
1495
- * @param context - the fully assembled notification server actions context
1496
- * @returns a fully wired {@link NotificationServerActions} instance
1495
+ * @param context - The fully assembled notification server actions context.
1496
+ * @returns A fully wired {@link NotificationServerActions} instance.
1497
1497
  *
1498
1498
  * @example
1499
1499
  * ```ts
@@ -1525,8 +1525,8 @@ function _ts_generator$f(thisArg, body) {
1525
1525
  * Validates the UID exists in Firebase Auth, then creates a new {@link NotificationUser} document
1526
1526
  * with empty default and global configs. Throws if the UID is not found in Auth.
1527
1527
  *
1528
- * @param context - the notification server actions context with auth and collection access
1529
- * @returns a transform-and-validate function that creates a new notification user document
1528
+ * @param context - The notification server actions context with auth and collection access.
1529
+ * @returns A transform-and-validate function that creates a new notification user document.
1530
1530
  */ function createNotificationUserFactory(context) {
1531
1531
  var firebaseServerActionTransformFunctionFactory = context.firebaseServerActionTransformFunctionFactory, notificationUserCollection = context.notificationUserCollection, authService = context.authService;
1532
1532
  return firebaseServerActionTransformFunctionFactory(createNotificationUserParamsType, function(params) {
@@ -1592,8 +1592,8 @@ function _ts_generator$f(thisArg, body) {
1592
1592
  * box configs (`bc`). When the global config changes, iterates all box configs to propagate
1593
1593
  * effective recipient changes and marks affected entries for sync.
1594
1594
  *
1595
- * @param context - the notification server actions context with Firestore and collection access
1596
- * @returns a transform-and-validate function that updates an existing notification user document
1595
+ * @param context - The notification server actions context with Firestore and collection access.
1596
+ * @returns A transform-and-validate function that updates an existing notification user document.
1597
1597
  */ function updateNotificationUserFactory(context) {
1598
1598
  var firestoreContext = context.firestoreContext, firebaseServerActionTransformFunctionFactory = context.firebaseServerActionTransformFunctionFactory, notificationUserCollection = context.notificationUserCollection, appNotificationTemplateTypeInfoRecordService = context.appNotificationTemplateTypeInfoRecordService;
1599
1599
  return firebaseServerActionTransformFunctionFactory(updateNotificationUserParamsType, function(params) {
@@ -1634,26 +1634,29 @@ function _ts_generator$f(thisArg, body) {
1634
1634
  updateTemplate.gc = nextGc;
1635
1635
  // iterate and update any box config that has the effective recipient change
1636
1636
  updateTemplate.bc = notificationUser.bc.map(function(currentConfig) {
1637
+ var updatedConfig = currentConfig;
1637
1638
  // check item isn't already marked for sync or marked as removed
1638
- if (currentConfig.ns === true || currentConfig.rm === true) {
1639
- return currentConfig;
1639
+ if (currentConfig.ns !== true && currentConfig.rm !== true) {
1640
+ var currentEffectiveRecipient = effectiveNotificationBoxRecipientConfig({
1641
+ uid: notificationUser.uid,
1642
+ appNotificationTemplateTypeInfoRecordService: appNotificationTemplateTypeInfoRecordService,
1643
+ gc: notificationUser.gc,
1644
+ boxConfig: currentConfig
1645
+ });
1646
+ var nextEffectiveRecipient = effectiveNotificationBoxRecipientConfig({
1647
+ uid: notificationUser.uid,
1648
+ appNotificationTemplateTypeInfoRecordService: appNotificationTemplateTypeInfoRecordService,
1649
+ gc: nextGc,
1650
+ boxConfig: currentConfig
1651
+ });
1652
+ var effectiveConfigChanged = !areEqualPOJOValues(currentEffectiveRecipient, nextEffectiveRecipient);
1653
+ if (effectiveConfigChanged) {
1654
+ updatedConfig = _object_spread_props$a(_object_spread$b({}, currentConfig), {
1655
+ ns: true
1656
+ });
1657
+ }
1640
1658
  }
1641
- var currentEffectiveRecipient = effectiveNotificationBoxRecipientConfig({
1642
- uid: notificationUser.uid,
1643
- appNotificationTemplateTypeInfoRecordService: appNotificationTemplateTypeInfoRecordService,
1644
- gc: notificationUser.gc,
1645
- boxConfig: currentConfig
1646
- });
1647
- var nextEffectiveRecipient = effectiveNotificationBoxRecipientConfig({
1648
- uid: notificationUser.uid,
1649
- appNotificationTemplateTypeInfoRecordService: appNotificationTemplateTypeInfoRecordService,
1650
- gc: nextGc,
1651
- boxConfig: currentConfig
1652
- });
1653
- var effectiveConfigChanged = !areEqualPOJOValues(currentEffectiveRecipient, nextEffectiveRecipient);
1654
- return effectiveConfigChanged ? _object_spread_props$a(_object_spread$b({}, currentConfig), {
1655
- ns: true
1656
- }) : currentConfig;
1659
+ return updatedConfig;
1657
1660
  });
1658
1661
  }
1659
1662
  }
@@ -1714,8 +1717,8 @@ var MAX_NOTIFICATION_BOXES_TO_UPDATE_PER_BATCH = 50;
1714
1717
  * and merging the user's preferences back into the box's recipient list. Handles removed entries
1715
1718
  * and cleans up stale box references.
1716
1719
  *
1717
- * @param context - the notification server actions context with Firestore and collection access
1718
- * @returns a transform-and-validate function that resyncs a notification user's box configurations
1720
+ * @param context - The notification server actions context with Firestore and collection access.
1721
+ * @returns A transform-and-validate function that resyncs a notification user's box configurations.
1719
1722
  */ function resyncNotificationUserFactory(context) {
1720
1723
  var firestoreContext = context.firestoreContext, firebaseServerActionTransformFunctionFactory = context.firebaseServerActionTransformFunctionFactory, notificationBoxCollection = context.notificationBoxCollection, notificationUserCollection = context.notificationUserCollection, appNotificationTemplateTypeInfoRecordService = context.appNotificationTemplateTypeInfoRecordService;
1721
1724
  return firebaseServerActionTransformFunctionFactory(resyncNotificationUserParamsType, function() {
@@ -1951,8 +1954,8 @@ var MAX_NOTIFICATION_BOXES_TO_UPDATE_PER_BATCH = 50;
1951
1954
  * for entries with `ns=true`, then calling the resync logic for each in parallel
1952
1955
  * (up to 5 concurrent tasks). Loops until no more flagged users are found.
1953
1956
  *
1954
- * @param context - the notification server actions context with collection access
1955
- * @returns an async function that resyncs all flagged notification users and returns aggregate results
1957
+ * @param context - The notification server actions context with collection access.
1958
+ * @returns An async function that resyncs all flagged notification users and returns aggregate results.
1956
1959
  */ function resyncAllNotificationUsersFactory(context) {
1957
1960
  var notificationUserCollection = context.notificationUserCollection;
1958
1961
  var resyncNotificationUser = resyncNotificationUserFactory(context);
@@ -2039,8 +2042,8 @@ var MAX_NOTIFICATION_BOXES_TO_UPDATE_PER_BATCH = 50;
2039
2042
  * Creates a new {@link NotificationSummary} document for a model, generating the summary ID
2040
2043
  * from the model key and initializing it with a blank template.
2041
2044
  *
2042
- * @param context - the notification server actions context with collection access
2043
- * @returns a transform-and-validate function that creates a new notification summary document
2045
+ * @param context - The notification server actions context with collection access.
2046
+ * @returns A transform-and-validate function that creates a new notification summary document.
2044
2047
  */ function createNotificationSummaryFactory(context) {
2045
2048
  var firebaseServerActionTransformFunctionFactory = context.firebaseServerActionTransformFunctionFactory, notificationSummaryCollection = context.notificationSummaryCollection;
2046
2049
  return firebaseServerActionTransformFunctionFactory(createNotificationSummaryParamsType, function(params) {
@@ -2084,8 +2087,8 @@ var MAX_NOTIFICATION_BOXES_TO_UPDATE_PER_BATCH = 50;
2084
2087
  * Updates an existing {@link NotificationSummary} document's owner or setup flag.
2085
2088
  * Runs within a Firestore transaction to ensure consistency.
2086
2089
  *
2087
- * @param context - the notification server actions context
2088
- * @returns a transform-and-validate function that updates an existing notification summary document
2090
+ * @param context - The notification server actions context.
2091
+ * @returns A transform-and-validate function that updates an existing notification summary document.
2089
2092
  */ function updateNotificationSummaryFactory(context) {
2090
2093
  var firebaseServerActionTransformFunctionFactory = context.firebaseServerActionTransformFunctionFactory;
2091
2094
  return firebaseServerActionTransformFunctionFactory(updateNotificationSummaryParamsType, function(params) {
@@ -2141,8 +2144,8 @@ var MAX_NOTIFICATION_BOXES_TO_UPDATE_PER_BATCH = 50;
2141
2144
  * Checks for existing boxes and throws if one already exists for the model.
2142
2145
  * Also syncs initial recipients with their corresponding {@link NotificationUser} documents.
2143
2146
  *
2144
- * @param context - the base notification server actions context with collection access
2145
- * @returns an async function that creates a notification box within a transaction and returns the document and template
2147
+ * @param context - The base notification server actions context with collection access.
2148
+ * @returns An async function that creates a notification box within a transaction and returns the document and template.
2146
2149
  */ function createNotificationBoxInTransactionFactory(context) {
2147
2150
  var notificationBoxCollection = context.notificationBoxCollection;
2148
2151
  return function(params, transaction) {
@@ -2192,8 +2195,8 @@ var MAX_NOTIFICATION_BOXES_TO_UPDATE_PER_BATCH = 50;
2192
2195
  * Wraps {@link createNotificationBoxInTransactionFactory} in a Firestore transaction
2193
2196
  * and follows the transform-and-validate pattern.
2194
2197
  *
2195
- * @param context - the notification server actions context with Firestore and collection access
2196
- * @returns a transform-and-validate function that creates a new notification box document
2198
+ * @param context - The notification server actions context with Firestore and collection access.
2199
+ * @returns A transform-and-validate function that creates a new notification box document.
2197
2200
  */ function createNotificationBoxFactory(context) {
2198
2201
  var firestoreContext = context.firestoreContext, notificationBoxCollection = context.notificationBoxCollection, firebaseServerActionTransformFunctionFactory = context.firebaseServerActionTransformFunctionFactory;
2199
2202
  var createNotificationBoxInTransaction = createNotificationBoxInTransactionFactory(context);
@@ -2256,8 +2259,8 @@ var MAX_NOTIFICATION_BOXES_TO_UPDATE_PER_BATCH = 50;
2256
2259
  * Currently a no-op placeholder that returns the document unchanged.
2257
2260
  * Reserved for future box-level update logic.
2258
2261
  *
2259
- * @param context - the notification server actions context (destructured for the transform factory)
2260
- * @returns a transform-and-validate function that returns the notification box document unchanged
2262
+ * @param context - The notification server actions context (destructured for the transform factory)
2263
+ * @returns A transform-and-validate function that returns the notification box document unchanged.
2261
2264
  */ function updateNotificationBoxFactory(context) {
2262
2265
  var firebaseServerActionTransformFunctionFactory = context.firebaseServerActionTransformFunctionFactory;
2263
2266
  return firebaseServerActionTransformFunctionFactory(updateNotificationBoxParamsType, function() {
@@ -2287,8 +2290,8 @@ var MAX_NOTIFICATION_BOXES_TO_UPDATE_PER_BATCH = 50;
2287
2290
  * Manages the exclusion list (`x`) on both the box recipient and the corresponding
2288
2291
  * {@link NotificationUser}'s send exclusion array, keeping them in sync.
2289
2292
  *
2290
- * @param context - the base notification server actions context with collection access
2291
- * @returns an async function that updates recipient exclusions within a transaction
2293
+ * @param context - The base notification server actions context with collection access.
2294
+ * @returns An async function that updates recipient exclusions within a transaction.
2292
2295
  */ function updateNotificationBoxRecipientExclusionInTransactionFactory(context) {
2293
2296
  var notificationBoxCollection = context.notificationBoxCollection, notificationUserCollection = context.notificationUserCollection;
2294
2297
  return function(input, transaction) {
@@ -2381,8 +2384,8 @@ var MAX_NOTIFICATION_BOXES_TO_UPDATE_PER_BATCH = 50;
2381
2384
  * Syncs changes with the recipient's {@link NotificationUser} document and manages
2382
2385
  * recipient index assignment via a sorted-values free-index calculator.
2383
2386
  *
2384
- * @param context - the base notification server actions context with auth and collection access
2385
- * @returns an async function that updates a recipient on a notification box within a transaction
2387
+ * @param context - The base notification server actions context with auth and collection access.
2388
+ * @returns An async function that updates a recipient on a notification box within a transaction.
2386
2389
  */ function updateNotificationBoxRecipientInTransactionFactory(context) {
2387
2390
  var authService = context.authService, notificationBoxCollection = context.notificationBoxCollection, notificationUserCollection = context.notificationUserCollection;
2388
2391
  var createNotificationBoxInTransaction = createNotificationBoxInTransactionFactory(context);
@@ -2629,8 +2632,8 @@ var MAX_NOTIFICATION_BOXES_TO_UPDATE_PER_BATCH = 50;
2629
2632
  * Wraps the in-transaction recipient update logic, handling both recipient changes
2630
2633
  * and send exclusion updates in a single Firestore transaction.
2631
2634
  *
2632
- * @param context - the notification server actions context with Firestore and collection access
2633
- * @returns a transform-and-validate function that updates a recipient on a notification box
2635
+ * @param context - The notification server actions context with Firestore and collection access.
2636
+ * @returns A transform-and-validate function that updates a recipient on a notification box.
2634
2637
  */ function updateNotificationBoxRecipientFactory(context) {
2635
2638
  var firestoreContext = context.firestoreContext, firebaseServerActionTransformFunctionFactory = context.firebaseServerActionTransformFunctionFactory;
2636
2639
  var updateNotificationBoxRecipientInTransaction = updateNotificationBoxRecipientInTransactionFactory(context);
@@ -2733,8 +2736,8 @@ var NOTIFICATION_TASK_TYPE_FAILURE_DELAY_MS = hoursToMilliseconds(NOTIFICATION_T
2733
2736
  * Supports throttling via `sendAt` time, configurable send flags, and task-based
2734
2737
  * async workflows for notifications that require multi-step processing.
2735
2738
  *
2736
- * @param context - the notification server actions context with template, send, and task services
2737
- * @returns a transform-and-validate function that processes and sends a notification document
2739
+ * @param context - The notification server actions context with template, send, and task services.
2740
+ * @returns A transform-and-validate function that processes and sends a notification document.
2738
2741
  */ function sendNotificationFactory(context) {
2739
2742
  var appNotificationTemplateTypeInfoRecordService = context.appNotificationTemplateTypeInfoRecordService, notificationSendService = context.notificationSendService, notificationTaskService = context.notificationTaskService, notificationTemplateService = context.notificationTemplateService, authService = context.authService, notificationBoxCollection = context.notificationBoxCollection, notificationCollectionGroup = context.notificationCollectionGroup, notificationUserCollection = context.notificationUserCollection, firestoreContext = context.firestoreContext, firebaseServerActionTransformFunctionFactory = context.firebaseServerActionTransformFunctionFactory;
2740
2743
  var createNotificationBoxInTransaction = createNotificationBoxInTransactionFactory(context);
@@ -3946,8 +3949,8 @@ var NOTIFICATION_TASK_TYPE_FAILURE_DELAY_MS = hoursToMilliseconds(NOTIFICATION_T
3946
3949
  * Continues processing batches until no more queued notifications are found
3947
3950
  * or the time budget is exhausted.
3948
3951
  *
3949
- * @param context - the notification server actions context with collection group and send factory access
3950
- * @returns a transform-and-validate function that processes all queued notifications and returns aggregate results
3952
+ * @param context - The notification server actions context with collection group and send factory access.
3953
+ * @returns A transform-and-validate function that processes all queued notifications and returns aggregate results.
3951
3954
  */ function sendQueuedNotificationsFactory(context) {
3952
3955
  var firebaseServerActionTransformFunctionFactory = context.firebaseServerActionTransformFunctionFactory, notificationCollectionGroup = context.notificationCollectionGroup;
3953
3956
  var sendNotification = sendNotificationFactory(context);
@@ -4116,8 +4119,8 @@ var NOTIFICATION_TASK_TYPE_FAILURE_DELAY_MS = hoursToMilliseconds(NOTIFICATION_T
4116
4119
  * past the retention window) and deletes them in batches. Continues until no more
4117
4120
  * cleanup-eligible notifications are found.
4118
4121
  *
4119
- * @param context - the notification server actions context with Firestore and collection access
4120
- * @returns a transform-and-validate function that cleans up sent notification documents and returns aggregate results
4122
+ * @param context - The notification server actions context with Firestore and collection access.
4123
+ * @returns A transform-and-validate function that cleans up sent notification documents and returns aggregate results.
4121
4124
  */ function cleanupSentNotificationsFactory(context) {
4122
4125
  var firestoreContext = context.firestoreContext, firebaseServerActionTransformFunctionFactory = context.firebaseServerActionTransformFunctionFactory, notificationCollectionGroup = context.notificationCollectionGroup, notificationBoxCollection = context.notificationBoxCollection, notificationWeekCollectionFactory = context.notificationWeekCollectionFactory, notificationLoggedEventDayCollectionFactory = context.notificationLoggedEventDayCollectionFactory, notificationLoggedEventDayPagedItemsCollectionFactory = context.notificationLoggedEventDayPagedItemsCollectionFactory;
4123
4126
  return firebaseServerActionTransformFunctionFactory(cleanupSentNotificationsParamsType, function() {
@@ -4512,8 +4515,8 @@ var NOTIFICATION_TASK_TYPE_FAILURE_DELAY_MS = hoursToMilliseconds(NOTIFICATION_T
4512
4515
  * For each old day, all docs in the day's paged subcollection are deleted before the wrapper doc
4513
4516
  * itself, so a partial failure leaves the index pointing at zero pages rather than orphaned ones.
4514
4517
  *
4515
- * @param context - the notification server actions context with paged-items collection access
4516
- * @returns a transform-and-validate function that purges old logged-event days and returns aggregate counts
4518
+ * @param context - The notification server actions context with paged-items collection access.
4519
+ * @returns A transform-and-validate function that purges old logged-event days and returns aggregate counts.
4517
4520
  */ function cleanupOldNotificationLoggedEventDaysFactory(context) {
4518
4521
  var firestoreContext = context.firestoreContext, firebaseServerActionTransformFunctionFactory = context.firebaseServerActionTransformFunctionFactory, notificationLoggedEventDayCollectionGroup = context.notificationLoggedEventDayCollectionGroup, notificationLoggedEventDayPagedItemsCollectionFactory = context.notificationLoggedEventDayPagedItemsCollectionFactory;
4519
4522
  function deleteOldLoggedEventDay(dayDocument) {
@@ -4824,8 +4827,8 @@ var MAKE_TEMPLATE_FOR_NOTIFICATION_RELATED_MODEL_INITIALIZATION_FUNCTION_DELETE_
4824
4827
  * Creates a concrete {@link NotificationInitServerActions} implementation by wiring each
4825
4828
  * initialization action to its factory function.
4826
4829
  *
4827
- * @param context - the initialization context with template functions and Firestore access
4828
- * @returns a fully wired {@link NotificationInitServerActions} instance
4830
+ * @param context - The initialization context with template functions and Firestore access.
4831
+ * @returns A fully wired {@link NotificationInitServerActions} instance.
4829
4832
  *
4830
4833
  * @example
4831
4834
  * ```ts
@@ -4851,9 +4854,9 @@ var MAKE_TEMPLATE_FOR_NOTIFICATION_RELATED_MODEL_INITIALIZATION_FUNCTION_DELETE_
4851
4854
  *
4852
4855
  * Skips initialization if the model is already initialized, optionally throwing an error.
4853
4856
  *
4854
- * @param input - the document, transaction, template function, and options
4855
- * @returns an object with `initialized` and `alreadyInitialized` boolean flags
4856
- * @throws notificationModelAlreadyInitializedError when `throwErrorIfAlreadyInitialized` is true
4857
+ * @param input - The document, transaction, template function, and options.
4858
+ * @returns An object with `initialized` and `alreadyInitialized` boolean flags.
4859
+ * @throws {Error} NotificationModelAlreadyInitializedError when `throwErrorIfAlreadyInitialized` is true.
4857
4860
  */ function initializeNotificationModelInTransaction(input) {
4858
4861
  return _async_to_generator$e(function() {
4859
4862
  var makeTemplateFunction, throwErrorIfAlreadyInitialized, transaction, documentInTransaction, notificationBox, initialized, alreadyInitialized, flatModelKey, modelKey, modelCollectionName, _$input, template;
@@ -4955,8 +4958,8 @@ var MAKE_TEMPLATE_FOR_NOTIFICATION_RELATED_MODEL_INITIALIZATION_FUNCTION_DELETE_
4955
4958
  * Loads the box document in the transaction, reads its current data, and delegates
4956
4959
  * to {@link initializeNotificationModelInTransaction} with the box-specific template function.
4957
4960
  *
4958
- * @param context - the initialization context with collection references and template functions
4959
- * @returns an async function that initializes a notification box given params, document, and transaction
4961
+ * @param context - The initialization context with collection references and template functions.
4962
+ * @returns An async function that initializes a notification box given params, document, and transaction.
4960
4963
  */ function initializeNotificationBoxInTransactionFactory(context) {
4961
4964
  var notificationBoxCollection = context.notificationBoxCollection, makeTemplateForNotificationBoxInitialization = context.makeTemplateForNotificationBoxInitialization;
4962
4965
  return function(params, notificationBoxDocument, transaction) {
@@ -4994,8 +4997,8 @@ var MAKE_TEMPLATE_FOR_NOTIFICATION_RELATED_MODEL_INITIALIZATION_FUNCTION_DELETE_
4994
4997
  * Wraps the in-transaction initialization in a Firestore transaction
4995
4998
  * and follows the transform-and-validate pattern.
4996
4999
  *
4997
- * @param context - the initialization context with Firestore access and template functions
4998
- * @returns a transform-and-validate function that initializes a single notification box
5000
+ * @param context - The initialization context with Firestore access and template functions.
5001
+ * @returns A transform-and-validate function that initializes a single notification box.
4999
5002
  */ function initializeNotificationBoxFactory(context) {
5000
5003
  var firestoreContext = context.firestoreContext, firebaseServerActionTransformFunctionFactory = context.firebaseServerActionTransformFunctionFactory;
5001
5004
  var initializeNotificationBoxInTransaction = initializeNotificationBoxInTransactionFactory(context);
@@ -5037,8 +5040,8 @@ var MAKE_TEMPLATE_FOR_NOTIFICATION_RELATED_MODEL_INITIALIZATION_FUNCTION_DELETE_
5037
5040
  * by querying for entries with `s=true` (setup needed), then initializing each in
5038
5041
  * parallel (up to 5 concurrent tasks). Loops until no more flagged boxes are found.
5039
5042
  *
5040
- * @param context - the initialization context with Firestore access and collection references
5041
- * @returns a transform-and-validate function that batch-initializes all applicable notification boxes
5043
+ * @param context - The initialization context with Firestore access and collection references.
5044
+ * @returns A transform-and-validate function that batch-initializes all applicable notification boxes.
5042
5045
  */ function initializeAllApplicableNotificationBoxesFactory(context) {
5043
5046
  var firestoreContext = context.firestoreContext, firebaseServerActionTransformFunctionFactory = context.firebaseServerActionTransformFunctionFactory, notificationBoxCollection = context.notificationBoxCollection;
5044
5047
  var initializeNotificationBoxInTransaction = initializeNotificationBoxInTransactionFactory(context);
@@ -5052,7 +5055,7 @@ var MAKE_TEMPLATE_FOR_NOTIFICATION_RELATED_MODEL_INITIALIZATION_FUNCTION_DELETE_
5052
5055
  var notificationBoxesVisited, notificationBoxesSucceeded, notificationBoxesFailed, notificationBoxesAlreadyInitialized, initializeNotificationBoxParams, initializeNotificationBoxesResults, found, result;
5053
5056
  function initializeNotificationBoxes() {
5054
5057
  return _async_to_generator$e(function() {
5055
- var query, notificationBoxDocuments, result;
5058
+ var query, notificationBoxDocuments;
5056
5059
  return _ts_generator$e(this, function(_state) {
5057
5060
  switch(_state.label){
5058
5061
  case 0:
@@ -5064,7 +5067,7 @@ var MAKE_TEMPLATE_FOR_NOTIFICATION_RELATED_MODEL_INITIALIZATION_FUNCTION_DELETE_
5064
5067
  case 1:
5065
5068
  notificationBoxDocuments = _state.sent();
5066
5069
  return [
5067
- 4,
5070
+ 2,
5068
5071
  performAsyncTasks(notificationBoxDocuments, function(notificationBoxDocument) {
5069
5072
  return _async_to_generator$e(function() {
5070
5073
  return _ts_generator$e(this, function(_state) {
@@ -5080,12 +5083,6 @@ var MAKE_TEMPLATE_FOR_NOTIFICATION_RELATED_MODEL_INITIALIZATION_FUNCTION_DELETE_
5080
5083
  maxParallelTasks: 5
5081
5084
  })
5082
5085
  ];
5083
- case 2:
5084
- result = _state.sent();
5085
- return [
5086
- 2,
5087
- result
5088
- ];
5089
5086
  }
5090
5087
  });
5091
5088
  })();
@@ -5157,8 +5154,8 @@ var MAKE_TEMPLATE_FOR_NOTIFICATION_RELATED_MODEL_INITIALIZATION_FUNCTION_DELETE_
5157
5154
  * Loads the summary document in the transaction, reads its current data, and delegates
5158
5155
  * to {@link initializeNotificationModelInTransaction} with the summary-specific template function.
5159
5156
  *
5160
- * @param context - the initialization context with collection references and template functions
5161
- * @returns an async function that initializes a notification summary given params, document, and transaction
5157
+ * @param context - The initialization context with collection references and template functions.
5158
+ * @returns An async function that initializes a notification summary given params, document, and transaction.
5162
5159
  */ function initializeNotificationSummaryInTransactionFactory(context) {
5163
5160
  var notificationSummaryCollection = context.notificationSummaryCollection, makeTemplateForNotificationSummaryInitialization = context.makeTemplateForNotificationSummaryInitialization;
5164
5161
  return function(params, notificationSummaryDocument, transaction) {
@@ -5196,8 +5193,8 @@ var MAKE_TEMPLATE_FOR_NOTIFICATION_RELATED_MODEL_INITIALIZATION_FUNCTION_DELETE_
5196
5193
  * Wraps the in-transaction summary initialization in a Firestore transaction
5197
5194
  * and follows the transform-and-validate pattern.
5198
5195
  *
5199
- * @param context - the initialization context with Firestore access and template functions
5200
- * @returns a transform-and-validate function that initializes a single notification summary
5196
+ * @param context - The initialization context with Firestore access and template functions.
5197
+ * @returns A transform-and-validate function that initializes a single notification summary.
5201
5198
  */ function initializeNotificationSummaryFactory(context) {
5202
5199
  var firestoreContext = context.firestoreContext, firebaseServerActionTransformFunctionFactory = context.firebaseServerActionTransformFunctionFactory;
5203
5200
  var initializeNotificationSummaryInTransaction = initializeNotificationSummaryInTransactionFactory(context);
@@ -5239,8 +5236,8 @@ var MAKE_TEMPLATE_FOR_NOTIFICATION_RELATED_MODEL_INITIALIZATION_FUNCTION_DELETE_
5239
5236
  * by querying for entries with `s=true` (setup needed), then initializing each in
5240
5237
  * parallel (up to 5 concurrent tasks). Loops until no more flagged summaries are found.
5241
5238
  *
5242
- * @param context - the initialization context with Firestore access and collection references
5243
- * @returns a transform-and-validate function that batch-initializes all applicable notification summaries
5239
+ * @param context - The initialization context with Firestore access and collection references.
5240
+ * @returns A transform-and-validate function that batch-initializes all applicable notification summaries.
5244
5241
  */ function initializeAllApplicableNotificationSummariesFactory(context) {
5245
5242
  var firestoreContext = context.firestoreContext, firebaseServerActionTransformFunctionFactory = context.firebaseServerActionTransformFunctionFactory, notificationSummaryCollection = context.notificationSummaryCollection;
5246
5243
  var initializeNotificationSummaryInTransaction = initializeNotificationSummaryInTransactionFactory(context);
@@ -5254,7 +5251,7 @@ var MAKE_TEMPLATE_FOR_NOTIFICATION_RELATED_MODEL_INITIALIZATION_FUNCTION_DELETE_
5254
5251
  var notificationSummariesVisited, notificationSummariesSucceeded, notificationSummariesFailed, notificationSummariesAlreadyInitialized, initializeNotificationSummaryParams, initializeNotificationSummariesResults, found, result;
5255
5252
  function initializeNotificationSummaries() {
5256
5253
  return _async_to_generator$e(function() {
5257
- var query, notificationSummaryDocuments, result;
5254
+ var query, notificationSummaryDocuments;
5258
5255
  return _ts_generator$e(this, function(_state) {
5259
5256
  switch(_state.label){
5260
5257
  case 0:
@@ -5266,7 +5263,7 @@ var MAKE_TEMPLATE_FOR_NOTIFICATION_RELATED_MODEL_INITIALIZATION_FUNCTION_DELETE_
5266
5263
  case 1:
5267
5264
  notificationSummaryDocuments = _state.sent();
5268
5265
  return [
5269
- 4,
5266
+ 2,
5270
5267
  performAsyncTasks(notificationSummaryDocuments, function(notificationSummaryDocument) {
5271
5268
  return _async_to_generator$e(function() {
5272
5269
  return _ts_generator$e(this, function(_state) {
@@ -5282,12 +5279,6 @@ var MAKE_TEMPLATE_FOR_NOTIFICATION_RELATED_MODEL_INITIALIZATION_FUNCTION_DELETE_
5282
5279
  maxParallelTasks: 5
5283
5280
  })
5284
5281
  ];
5285
- case 2:
5286
- result = _state.sent();
5287
- return [
5288
- 2,
5289
- result
5290
- ];
5291
5282
  }
5292
5283
  });
5293
5284
  })();
@@ -5580,8 +5571,8 @@ function _ts_generator$d(thisArg, body) {
5580
5571
  /**
5581
5572
  * Returns the default factory and optional type-specific config for the given template type.
5582
5573
  *
5583
- * @param type - the notification template type to look up
5584
- * @returns a tuple of [defaultFactory, typeConfig] where either may be undefined
5574
+ * @param type - The notification template type to look up.
5575
+ * @returns A tuple of [defaultFactory, typeConfig] where either may be undefined.
5585
5576
  */ key: "configPairForType",
5586
5577
  value: function configPairForType(type) {
5587
5578
  return [
@@ -5595,8 +5586,8 @@ function _ts_generator$d(thisArg, body) {
5595
5586
  * Creates a {@link NotificationTemplateServiceInstance} scoped to a single template type,
5596
5587
  * pre-wired with the resolved factory for that type.
5597
5588
  *
5598
- * @param type - the notification template type
5599
- * @returns a new {@link NotificationTemplateServiceInstance} bound to the given type
5589
+ * @param type - The notification template type.
5590
+ * @returns A new {@link NotificationTemplateServiceInstance} bound to the given type.
5600
5591
  */ key: "templateInstanceForType",
5601
5592
  value: function templateInstanceForType(type) {
5602
5593
  return notificationTemplateServiceInstance(this, type);
@@ -5616,9 +5607,9 @@ NotificationTemplateService = __decorate([
5616
5607
  * Resolves the factory from the service's type-specific config first, falling back to
5617
5608
  * a no-content default factory when no config is registered for the type.
5618
5609
  *
5619
- * @param service - the parent template service
5620
- * @param type - the template type to bind
5621
- * @returns a {@link NotificationTemplateServiceInstance} with the resolved factory for the type
5610
+ * @param service - The parent template service.
5611
+ * @param type - The template type to bind.
5612
+ * @returns A {@link NotificationTemplateServiceInstance} with the resolved factory for the type.
5622
5613
  *
5623
5614
  * @example
5624
5615
  * ```ts
@@ -5839,9 +5830,9 @@ function _ts_generator$c(thisArg, body) {
5839
5830
  *
5840
5831
  * Does not support Firestore transactions, as running should occur outside of a transaction.
5841
5832
  *
5842
- * @param input - creation and run configuration
5843
- * @returns the creation pair result with optional send/enqueue outcomes
5844
- * @throws Error if the notification template is not flagged as unique
5833
+ * @param input - Creation and run configuration.
5834
+ * @returns The creation pair result with optional send/enqueue outcomes.
5835
+ * @throws {Error} If the notification template is not flagged as unique.
5845
5836
  *
5846
5837
  * @example
5847
5838
  * ```ts
@@ -6198,9 +6189,9 @@ function _ts_generator$b(thisArg, body) {
6198
6189
  };
6199
6190
  /**
6200
6191
  * Creates a new NotificationExpediteServiceInstance with the input NotificationExpediteService.
6201
-
6202
- * @param notificationExpediteService - the expedite service to use for sending
6203
- * @returns a new {@link NotificationExpediteServiceInstance} with an internal queue
6192
+ *
6193
+ * @param notificationExpediteService - The expedite service to use for sending.
6194
+ * @returns A new {@link NotificationExpediteServiceInstance} with an internal queue.
6204
6195
  */ function notificationExpediteServiceInstance(notificationExpediteService) {
6205
6196
  var _documentsToSend = [];
6206
6197
  var initialize = function initialize() {
@@ -6259,7 +6250,7 @@ function _ts_generator$b(thisArg, body) {
6259
6250
  /**
6260
6251
  * Returns the configured NotificationServerActions instance.
6261
6252
  *
6262
- * @returns the current {@link NotificationServerActions} instance
6253
+ * @returns The current {@link NotificationServerActions} instance.
6263
6254
  */ key: "getNotificationServerActions",
6264
6255
  value: function getNotificationServerActions() {
6265
6256
  return this._notificationServerActions;
@@ -6269,7 +6260,7 @@ function _ts_generator$b(thisArg, body) {
6269
6260
  /**
6270
6261
  * Sets the NotificationServerActions instance to use.
6271
6262
  *
6272
- * @param notificationServerActions - the actions instance to configure
6263
+ * @param notificationServerActions - The actions instance to configure.
6273
6264
  */ key: "setNotificationServerActions",
6274
6265
  value: function setNotificationServerActions(notificationServerActions) {
6275
6266
  this._notificationServerActions = notificationServerActions;
@@ -6318,7 +6309,7 @@ MutableNotificationExpediteService = __decorate([
6318
6309
  *
6319
6310
  * This should generally be used in the global module of an app.
6320
6311
  *
6321
- * @returns an array of NestJS providers for both MutableNotificationExpediteService and NotificationExpediteService
6312
+ * @returns Array of NestJS providers for both MutableNotificationExpediteService and NotificationExpediteService.
6322
6313
  */ function provideMutableNotificationExpediteService() {
6323
6314
  return [
6324
6315
  MutableNotificationExpediteService,
@@ -6333,7 +6324,7 @@ MutableNotificationExpediteService = __decorate([
6333
6324
  *
6334
6325
  * This should generally be used in the global module of an app.
6335
6326
  *
6336
- * @returns an array of abstract classes to export from the NestJS module
6327
+ * @returns The abstract classes to export from the NestJS module.
6337
6328
  */ function exportMutableNotificationExpediteService() {
6338
6329
  return [
6339
6330
  NotificationExpediteService,
@@ -6423,12 +6414,12 @@ function _unsupported_iterable_to_array$6(o, minLen) {
6423
6414
  * Factory that assembles the full {@link NotificationServerActionsContext} by combining
6424
6415
  * the base context with the template, send, task, and expedite services.
6425
6416
  *
6426
- * @param context - the base server actions context
6427
- * @param notificationTemplateService - resolves message factories for notification template types
6428
- * @param notificationSendService - handles sending notification messages
6429
- * @param notificationTaskService - handles notification task dispatch
6430
- * @param notificationsExpediteService - expedites immediate notification delivery
6431
- * @returns the assembled {@link NotificationServerActionsContext}
6417
+ * @param context - The base server actions context.
6418
+ * @param notificationTemplateService - Resolves message factories for notification template types.
6419
+ * @param notificationSendService - Handles sending notification messages.
6420
+ * @param notificationTaskService - Handles notification task dispatch.
6421
+ * @param notificationsExpediteService - Expedites immediate notification delivery.
6422
+ * @returns The assembled {@link NotificationServerActionsContext}
6432
6423
  */ // eslint-disable-next-line @typescript-eslint/max-params
6433
6424
  function notificationServerActionsContextFactory(context, notificationTemplateService, notificationSendService, notificationTaskService, notificationsExpediteService) {
6434
6425
  return _object_spread_props$7(_object_spread$7({}, context), {
@@ -6441,8 +6432,8 @@ function notificationServerActionsContextFactory(context, notificationTemplateSe
6441
6432
  /**
6442
6433
  * Factory that creates a {@link NotificationServerActions} instance from the assembled context.
6443
6434
  *
6444
- * @param context - the assembled notification server actions context
6445
- * @returns a new {@link NotificationServerActions} instance
6435
+ * @param context - The assembled notification server actions context.
6436
+ * @returns A new {@link NotificationServerActions} instance.
6446
6437
  */ function notificationServerActionsFactory(context) {
6447
6438
  return notificationServerActions(context);
6448
6439
  }
@@ -6450,9 +6441,9 @@ function notificationServerActionsContextFactory(context, notificationTemplateSe
6450
6441
  * Factory that creates a {@link NotificationInitServerActions} instance by merging the
6451
6442
  * server actions context with the init-specific configuration.
6452
6443
  *
6453
- * @param context - the assembled notification server actions context
6454
- * @param notificationInitServerActionsContextConfig - init-specific configuration
6455
- * @returns a new {@link NotificationInitServerActions} instance
6444
+ * @param context - The assembled notification server actions context.
6445
+ * @param notificationInitServerActionsContextConfig - Init-specific configuration.
6446
+ * @returns A new {@link NotificationInitServerActions} instance.
6456
6447
  */ function notificationInitServerActionsFactory(context, notificationInitServerActionsContextConfig) {
6457
6448
  return notificationInitServerActions(_object_spread$7({}, context, notificationInitServerActionsContextConfig));
6458
6449
  }
@@ -6468,8 +6459,8 @@ function notificationServerActionsContextFactory(context, notificationTemplateSe
6468
6459
  *
6469
6460
  * Be sure the class that delares the module using this function also extends AbstractAppNotificationModule.
6470
6461
  *
6471
- * @param config - module metadata configuration including dependency module and additional providers
6472
- * @returns the assembled {@link ModuleMetadata} for the notification module
6462
+ * @param config - Module metadata configuration including dependency module and additional providers.
6463
+ * @returns The assembled {@link ModuleMetadata} for the notification module.
6473
6464
  */ function appNotificationModuleMetadata(config) {
6474
6465
  var dependencyModule = config.dependencyModule, imports = config.imports, exports = config.exports, providers = config.providers;
6475
6466
  var dependencyModuleImport = dependencyModule ? [
@@ -6791,8 +6782,8 @@ function _ts_generator$a(thisArg, body) {
6791
6782
  *
6792
6783
  * Each summary update runs in a Firestore transaction to prevent concurrent write conflicts.
6793
6784
  *
6794
- * @param config - service configuration including Firestore context and collection references
6795
- * @returns a {@link NotificationSummarySendService} backed by Firestore
6785
+ * @param config - Service configuration including Firestore context and collection references.
6786
+ * @returns A {@link NotificationSummarySendService} backed by Firestore.
6796
6787
  *
6797
6788
  * @example
6798
6789
  * ```ts
@@ -7113,7 +7104,7 @@ function _ts_generator$9(thisArg, body) {
7113
7104
  * Useful as a placeholder when your app's notification pipeline is fully wired for SMS
7114
7105
  * but actual delivery is not yet enabled, avoiding the need for conditional logic elsewhere.
7115
7106
  *
7116
- * @returns a no-op {@link NotificationTextSendService} that ignores all messages
7107
+ * @returns A no-op {@link NotificationTextSendService} that ignores all messages.
7117
7108
  *
7118
7109
  * @example
7119
7110
  * ```ts
@@ -7293,8 +7284,8 @@ function _ts_generator$8(thisArg, body) {
7293
7284
  * finds the next uncompleted checkpoint in the flow and executes its handler function.
7294
7285
  * If all checkpoints are complete, the task is marked as done.
7295
7286
  *
7296
- * @param config - handler configurations and optional validation list
7297
- * @returns a {@link NotificationTaskService} that dispatches tasks to the registered handlers
7287
+ * @param config - Handler configurations and optional validation list.
7288
+ * @returns A {@link NotificationTaskService} that dispatches tasks to the registered handlers.
7298
7289
  *
7299
7290
  * @example
7300
7291
  * ```ts
@@ -7676,8 +7667,8 @@ function _ts_generator$7(thisArg, body) {
7676
7667
  * This is the primary entry point for building complex, multi-step notification task handlers
7677
7668
  * such as storage file processing or other async workflows.
7678
7669
  *
7679
- * @param factoryConfig - shared configuration including the input function, cleanup logic, and task type
7680
- * @returns a factory function that produces {@link NotificationTaskServiceTaskHandlerConfig} entries
7670
+ * @param factoryConfig - Shared configuration including the input function, cleanup logic, and task type.
7671
+ * @returns A factory function that produces {@link NotificationTaskServiceTaskHandlerConfig} entries.
7681
7672
  *
7682
7673
  * @example
7683
7674
  * ```ts
@@ -7701,8 +7692,9 @@ function _ts_generator$7(thisArg, body) {
7701
7692
  var processorFunctionForConfig = /**
7702
7693
  * Structure is similar to notificationTaskService(), but contained to handle the subtasks.
7703
7694
  *
7704
- * @param processorConfig - the processor configuration with target, flow, and cleanup
7705
- * @returns a processor with process and optional cleanup functions
7695
+ * @param processorConfig - The processor configuration with target, flow, and cleanup.
7696
+ * @returns A processor with process and optional cleanup functions.
7697
+ * @throws {Error} When `processorConfig.flow` is empty or contains more than one non-subtask entry.
7706
7698
  */ function processorFunctionForConfig(processorConfig) {
7707
7699
  var inputFlows = processorConfig.flow, cleanup = processorConfig.cleanup, processorAllowRunMultipleParts = processorConfig.allowRunMultipleParts;
7708
7700
  var _separateValues = separateValues(inputFlows, function(x) {
@@ -8100,7 +8092,7 @@ function _ts_generator$7(thisArg, body) {
8100
8092
  /**
8101
8093
  * Creates a NotificationTaskSubTaskMissingRequiredDataTermination.
8102
8094
  *
8103
- * @returns a new {@link NotificationTaskSubTaskMissingRequiredDataTermination} error instance
8095
+ * @returns A new {@link NotificationTaskSubTaskMissingRequiredDataTermination} error instance.
8104
8096
  */ function notificationTaskSubTaskMissingRequiredDataTermination() {
8105
8097
  return new NotificationTaskSubTaskMissingRequiredDataTermination();
8106
8098
  }
@@ -8889,30 +8881,28 @@ var PDF_NAME_SMASK = PDFName.of('SMask');
8889
8881
  var PDF_NAME_MASK = PDFName.of('Mask');
8890
8882
  function isCompressibleImageStream(stream) {
8891
8883
  var dict = stream.dict;
8884
+ var result = false;
8892
8885
  // Must be Type /XObject (when present) and Subtype /Image
8893
8886
  var type = dict.get(PDF_NAME_TYPE);
8894
- if (type !== undefined && !pdfNameEquals(type, PDF_NAME_XOBJECT)) {
8895
- return false;
8896
- }
8897
- var subtype = dict.get(PDF_NAME_SUBTYPE);
8898
- if (subtype === undefined || !pdfNameEquals(subtype, PDF_NAME_IMAGE)) {
8899
- return false;
8900
- }
8901
- // Skip images with masks; replacing them risks breaking the mask alignment.
8902
- if (dict.get(PDF_NAME_SMASK) !== undefined || dict.get(PDF_NAME_MASK) !== undefined) {
8903
- return false;
8904
- }
8905
- // Only DCTDecode (JPEG) streams in v1.
8906
- var filter = dict.get(PDF_NAME_FILTER);
8907
- var isDct = false;
8908
- if (filter !== undefined) {
8909
- if (_instanceof$1(filter, PDFArray)) {
8910
- isDct = filter.size() === 1 && pdfNameEquals(filter.get(0), PDF_NAME_DCTDECODE);
8911
- } else {
8912
- isDct = pdfNameEquals(filter, PDF_NAME_DCTDECODE);
8887
+ var typeOk = type === undefined || pdfNameEquals(type, PDF_NAME_XOBJECT);
8888
+ if (typeOk) {
8889
+ var subtype = dict.get(PDF_NAME_SUBTYPE);
8890
+ var subtypeOk = subtype !== undefined && pdfNameEquals(subtype, PDF_NAME_IMAGE);
8891
+ // Skip images with masks; replacing them risks breaking the mask alignment.
8892
+ var hasMask = dict.get(PDF_NAME_SMASK) !== undefined || dict.get(PDF_NAME_MASK) !== undefined;
8893
+ if (subtypeOk && !hasMask) {
8894
+ // Only DCTDecode (JPEG) streams in v1.
8895
+ var filter = dict.get(PDF_NAME_FILTER);
8896
+ if (filter !== undefined) {
8897
+ if (_instanceof$1(filter, PDFArray)) {
8898
+ result = filter.size() === 1 && pdfNameEquals(filter.get(0), PDF_NAME_DCTDECODE);
8899
+ } else {
8900
+ result = pdfNameEquals(filter, PDF_NAME_DCTDECODE);
8901
+ }
8902
+ }
8913
8903
  }
8914
8904
  }
8915
- return isDct;
8905
+ return result;
8916
8906
  }
8917
8907
  function pdfNameEquals(candidate, name) {
8918
8908
  return _instanceof$1(candidate, PDFName) && candidate.asString() === name.asString();
@@ -8937,7 +8927,7 @@ function replaceImageStream(input) {
8937
8927
  /**
8938
8928
  * Creates an error indicating that a storage file model has already been initialized.
8939
8929
  *
8940
- * @returns a precondition-conflict HttpsError with the STORAGE_FILE_MODEL_ALREADY_INITIALIZED error code
8930
+ * @returns A precondition-conflict HttpsError with the STORAGE_FILE_MODEL_ALREADY_INITIALIZED error code.
8941
8931
  */ function storageFileModelAlreadyInitializedError() {
8942
8932
  return preconditionConflictError({
8943
8933
  message: "This model has already been initialized.",
@@ -8947,7 +8937,7 @@ function replaceImageStream(input) {
8947
8937
  /**
8948
8938
  * Creates an error indicating that the StorageFile is not flagged for group sync.
8949
8939
  *
8950
- * @returns a precondition-conflict HttpsError with the STORAGE_FILE_NOT_FLAGGED_FOR_GROUPS_SYNC error code
8940
+ * @returns A precondition-conflict HttpsError with the STORAGE_FILE_NOT_FLAGGED_FOR_GROUPS_SYNC error code.
8951
8941
  */ function storageFileNotFlaggedForGroupsSyncError() {
8952
8942
  return preconditionConflictError({
8953
8943
  message: "This StorageFile has not been flagged for sync with its groups.",
@@ -8957,7 +8947,7 @@ function replaceImageStream(input) {
8957
8947
  /**
8958
8948
  * Creates an error indicating that the target uploaded file does not exist in storage.
8959
8949
  *
8960
- * @returns a precondition-conflict HttpsError with the UPLOADED_FILE_DOES_NOT_EXIST error code
8950
+ * @returns A precondition-conflict HttpsError with the UPLOADED_FILE_DOES_NOT_EXIST error code.
8961
8951
  */ function uploadedFileDoesNotExistError() {
8962
8952
  return preconditionConflictError({
8963
8953
  message: "The target uploaded file does not exist.",
@@ -8967,7 +8957,7 @@ function replaceImageStream(input) {
8967
8957
  /**
8968
8958
  * Creates an error indicating that the file is not allowed to be initialized (rejected by the check function).
8969
8959
  *
8970
- * @returns a precondition-conflict HttpsError with the UPLOADED_FILE_NOT_ALLOWED_TO_BE_INITIALIZED error code
8960
+ * @returns A precondition-conflict HttpsError with the UPLOADED_FILE_NOT_ALLOWED_TO_BE_INITIALIZED error code.
8971
8961
  */ function uploadedFileIsNotAllowedToBeInitializedError() {
8972
8962
  return preconditionConflictError({
8973
8963
  message: "The target uploaded file is not allowed to be initialized.",
@@ -8977,8 +8967,8 @@ function replaceImageStream(input) {
8977
8967
  /**
8978
8968
  * Creates an error indicating that the file initialization failed with the given result type.
8979
8969
  *
8980
- * @param data - error data containing the result type that caused the failure
8981
- * @returns an internal-server HttpsError with the UPLOADED_FILE_INITIALIZATION_FAILED error code and the result type
8970
+ * @param data - Error data containing the result type that caused the failure.
8971
+ * @returns An internal-server HttpsError with the UPLOADED_FILE_INITIALIZATION_FAILED error code and the result type.
8982
8972
  */ function uploadedFileInitializationFailedError(data) {
8983
8973
  return internalServerError({
8984
8974
  message: 'The target uploaded file initialization failed with result type "'.concat(data.resultType, '".'),
@@ -8991,7 +8981,7 @@ function replaceImageStream(input) {
8991
8981
  /**
8992
8982
  * Creates an error indicating that the initialization result was discarded (e.g., the created file no longer exists).
8993
8983
  *
8994
- * @returns an internal-server HttpsError with the UPLOADED_FILE_INITIALIZATION_DISCARDED error code
8984
+ * @returns An internal-server HttpsError with the UPLOADED_FILE_INITIALIZATION_DISCARDED error code.
8995
8985
  */ function uploadedFileInitializationDiscardedError() {
8996
8986
  return internalServerError({
8997
8987
  message: "The target uploaded file initialization was discarded.",
@@ -9001,7 +8991,7 @@ function replaceImageStream(input) {
9001
8991
  /**
9002
8992
  * Creates an error indicating that the StorageFile is not in a valid state for processing.
9003
8993
  *
9004
- * @returns a precondition-conflict HttpsError with the STORAGE_FILE_PROCESSING_NOT_ALLOWED_FOR_INVALID_STATE error code
8994
+ * @returns A precondition-conflict HttpsError with the STORAGE_FILE_PROCESSING_NOT_ALLOWED_FOR_INVALID_STATE error code.
9005
8995
  */ function storageFileProcessingNotAllowedForInvalidStateError() {
9006
8996
  return preconditionConflictError({
9007
8997
  message: "The target StorageFileDocument must be in an OK state to be processed and processing not flagged as SHOULD_NOT_PROCESS.",
@@ -9011,7 +9001,7 @@ function replaceImageStream(input) {
9011
9001
  /**
9012
9002
  * Creates an error indicating that the StorageFile is not queued for processing.
9013
9003
  *
9014
- * @returns a precondition-conflict HttpsError with the STORAGE_FILE_PROCESSING_NOT_QUEUED_FOR_PROCESSING error code
9004
+ * @returns A precondition-conflict HttpsError with the STORAGE_FILE_PROCESSING_NOT_QUEUED_FOR_PROCESSING error code.
9015
9005
  */ function storageFileProcessingNotQueuedForProcessingError() {
9016
9006
  return preconditionConflictError({
9017
9007
  message: "The target StorageFileDocument is not queued for processing.",
@@ -9021,7 +9011,7 @@ function replaceImageStream(input) {
9021
9011
  /**
9022
9012
  * Creates an error indicating that no processor is configured for the StorageFile's type.
9023
9013
  *
9024
- * @returns a precondition-conflict HttpsError with the STORAGE_FILE_PROCESSING_NOT_AVAILABLE_FOR_TYPE error code
9014
+ * @returns A precondition-conflict HttpsError with the STORAGE_FILE_PROCESSING_NOT_AVAILABLE_FOR_TYPE error code.
9025
9015
  */ function storageFileProcessingNotAvailableForTypeError() {
9026
9016
  return preconditionConflictError({
9027
9017
  message: "The target StorageFileDocument is not available for processing.",
@@ -9031,7 +9021,7 @@ function replaceImageStream(input) {
9031
9021
  /**
9032
9022
  * Creates an error indicating that the StorageFile has already finished processing.
9033
9023
  *
9034
- * @returns a precondition-conflict HttpsError with the STORAGE_FILE_ALREADY_PROCESSED error code
9024
+ * @returns A precondition-conflict HttpsError with the STORAGE_FILE_ALREADY_PROCESSED error code.
9035
9025
  */ function storageFileAlreadyProcessedError() {
9036
9026
  return preconditionConflictError({
9037
9027
  message: "The target StorageFileDocument has already finished processing.",
@@ -9041,7 +9031,7 @@ function replaceImageStream(input) {
9041
9031
  /**
9042
9032
  * Creates an error indicating that the StorageFile is not flagged for deletion.
9043
9033
  *
9044
- * @returns a precondition-conflict HttpsError with the STORAGE_FILE_NOT_FLAGGED_FOR_DELETION error code
9034
+ * @returns A precondition-conflict HttpsError with the STORAGE_FILE_NOT_FLAGGED_FOR_DELETION error code.
9045
9035
  */ function storageFileNotFlaggedForDeletionError() {
9046
9036
  return preconditionConflictError({
9047
9037
  message: "The target StorageFileDocument is not flagged for deletion.",
@@ -9051,7 +9041,7 @@ function replaceImageStream(input) {
9051
9041
  /**
9052
9042
  * Creates an error indicating that the StorageFile's scheduled deletion time has not yet passed.
9053
9043
  *
9054
- * @returns a precondition-conflict HttpsError with the STORAGE_FILE_CANNOT_BE_DELETED_YET error code
9044
+ * @returns A precondition-conflict HttpsError with the STORAGE_FILE_CANNOT_BE_DELETED_YET error code.
9055
9045
  */ function storageFileCannotBeDeletedYetError() {
9056
9046
  return preconditionConflictError({
9057
9047
  message: "The target StorageFileDocument cannot be deleted yet.",
@@ -9061,7 +9051,7 @@ function replaceImageStream(input) {
9061
9051
  /**
9062
9052
  * Creates an error indicating that the StorageFileGroup is still queued for initialization and cannot be operated on.
9063
9053
  *
9064
- * @returns a precondition-conflict HttpsError with the STORAGE_FILE_GROUP_QUEUED_FOR_INITIALIZATION error code
9054
+ * @returns A precondition-conflict HttpsError with the STORAGE_FILE_GROUP_QUEUED_FOR_INITIALIZATION error code.
9065
9055
  */ function storageFileGroupQueuedForInitializationError() {
9066
9056
  return preconditionConflictError({
9067
9057
  message: "The target StorageFileGroupDocument is queued for initialization.",
@@ -9071,7 +9061,7 @@ function replaceImageStream(input) {
9071
9061
  /**
9072
9062
  * Creates an error indicating that the required model key or storageFileId is missing when creating a StorageFileGroup.
9073
9063
  *
9074
- * @returns a precondition-conflict HttpsError with the STORAGE_FILE_GROUP_CREATE_INPUT error code
9064
+ * @returns A precondition-conflict HttpsError with the STORAGE_FILE_GROUP_CREATE_INPUT error code.
9075
9065
  */ function createStorageFileGroupInputError() {
9076
9066
  return preconditionConflictError({
9077
9067
  message: "The model or storageFileId is required for creating a StorageFileGroup.",
@@ -9343,10 +9333,9 @@ function _ts_generator$4(thisArg, body) {
9343
9333
  * Creates a concrete {@link StorageFileServerActions} implementation by wiring each action
9344
9334
  * to its factory function using the provided context.
9345
9335
  *
9346
- * @param context - the fully assembled storage file server actions context
9347
- *
9348
- * @param context - the fully assembled storage file server actions context
9349
- * @returns a concrete {@link StorageFileServerActions} with all action methods wired to their factories
9336
+ * @param context - The fully assembled storage file server actions context.
9337
+ * @param context - The fully assembled storage file server actions context.
9338
+ * @returns A concrete {@link StorageFileServerActions} with all action methods wired to their factories.
9350
9339
  *
9351
9340
  * @example
9352
9341
  * ```ts
@@ -9380,8 +9369,8 @@ function _ts_generator$4(thisArg, body) {
9380
9369
  *
9381
9370
  * Creates a new {@link StorageFile} document using the provided template data.
9382
9371
  *
9383
- * @param context - the base server actions context providing Firestore and storage access
9384
- * @returns an async transform-and-validate function that creates a StorageFile document
9372
+ * @param context - The base server actions context providing Firestore and storage access.
9373
+ * @returns An async transform-and-validate function that creates a StorageFile document.
9385
9374
  */ function createStorageFileFactory(context) {
9386
9375
  var firebaseServerActionTransformFunctionFactory = context.firebaseServerActionTransformFunctionFactory;
9387
9376
  return firebaseServerActionTransformFunctionFactory(createStorageFileParamsType, function(params) {
@@ -9412,8 +9401,8 @@ function _ts_generator$4(thisArg, body) {
9412
9401
  * initializes each one via the upload service, and cleans up the source upload
9413
9402
  * on success. Failed initializations are logged but do not halt the batch.
9414
9403
  *
9415
- * @param context - the storage file server actions context with storage service and upload initialization
9416
- * @returns an async transform-and-validate function that returns batch initialization results
9404
+ * @param context - The storage file server actions context with storage service and upload initialization.
9405
+ * @returns An async transform-and-validate function that returns batch initialization results.
9417
9406
  */ function initializeAllStorageFilesFromUploadsFactory(context) {
9418
9407
  var storageService = context.storageService, firebaseServerActionTransformFunctionFactory = context.firebaseServerActionTransformFunctionFactory;
9419
9408
  var _initializeStorageFileFromUploadFile = _initializeStorageFileFromUploadFileFactory(context);
@@ -9513,8 +9502,8 @@ function _ts_generator$4(thisArg, body) {
9513
9502
  * Validates the file exists and is allowed, runs the upload initializer, deletes the upload source
9514
9503
  * on success, and optionally expedites processing of the created storage file.
9515
9504
  *
9516
- * @param context - the storage file server actions context
9517
- * @returns an async function that accepts an upload file input and returns the created StorageFileDocument
9505
+ * @param context - The storage file server actions context.
9506
+ * @returns An async function that accepts an upload file input and returns the created StorageFileDocument.
9518
9507
  */ function _initializeStorageFileFromUploadFileFactory(context) {
9519
9508
  var firestoreContext = context.firestoreContext, storageFileInitializeFromUploadService = context.storageFileInitializeFromUploadService, notificationExpediteService = context.notificationExpediteService;
9520
9509
  var processStorageFileInTransaction = _processStorageFileInTransactionFactory(context);
@@ -9780,8 +9769,8 @@ function _ts_generator$4(thisArg, body) {
9780
9769
  * Validates the file exists and is allowed, runs the type determiner and initializer,
9781
9770
  * then cleans up the upload source on success.
9782
9771
  *
9783
- * @param context - the storage file server actions context with storage and upload services
9784
- * @returns an async transform-and-validate function that creates a StorageFile from an upload
9772
+ * @param context - The storage file server actions context with storage and upload services.
9773
+ * @returns An async transform-and-validate function that creates a StorageFile from an upload.
9785
9774
  */ function initializeStorageFileFromUploadFactory(context) {
9786
9775
  var storageService = context.storageService, firebaseServerActionTransformFunctionFactory = context.firebaseServerActionTransformFunctionFactory;
9787
9776
  var _initializeStorageFileFromUploadFile = _initializeStorageFileFromUploadFileFactory(context);
@@ -9820,8 +9809,8 @@ function _ts_generator$4(thisArg, body) {
9820
9809
  *
9821
9810
  * Updates an existing {@link StorageFile} document with the provided schedule-delete-at time.
9822
9811
  *
9823
- * @param context - the base server actions context providing Firestore access
9824
- * @returns an async transform-and-validate function that updates a StorageFile document
9812
+ * @param context - The base server actions context providing Firestore access.
9813
+ * @returns An async transform-and-validate function that updates a StorageFile document.
9825
9814
  */ function updateStorageFileFactory(context) {
9826
9815
  var firebaseServerActionTransformFunctionFactory = context.firebaseServerActionTransformFunctionFactory;
9827
9816
  return firebaseServerActionTransformFunctionFactory(updateStorageFileParamsType, function(params) {
@@ -9865,8 +9854,8 @@ function _ts_generator$4(thisArg, body) {
9865
9854
  * Updates embedded file entries within a {@link StorageFileGroup} document inside a
9866
9855
  * Firestore transaction, merging display name changes into the existing entries.
9867
9856
  *
9868
- * @param context - the storage file server actions context
9869
- * @returns an async transform-and-validate function that updates a StorageFileGroup document
9857
+ * @param context - The storage file server actions context.
9858
+ * @returns An async transform-and-validate function that updates a StorageFileGroup document.
9870
9859
  */ function updateStorageFileGroupFactory(context) {
9871
9860
  var firestoreContext = context.firestoreContext, storageFileGroupCollection = context.storageFileGroupCollection, firebaseServerActionTransformFunctionFactory = context.firebaseServerActionTransformFunctionFactory;
9872
9861
  return firebaseServerActionTransformFunctionFactory(updateStorageFileGroupParamsType, function(params) {
@@ -9950,8 +9939,8 @@ function _ts_generator$4(thisArg, body) {
9950
9939
  * processing notification task for each file and optionally expedites delivery.
9951
9940
  * Handles stuck-processing detection with a throttle check.
9952
9941
  *
9953
- * @param context - the storage file server actions context
9954
- * @returns an async transform-and-validate function that returns batch processing results
9942
+ * @param context - The storage file server actions context.
9943
+ * @returns An async transform-and-validate function that returns batch processing results.
9955
9944
  */ function processAllQueuedStorageFilesFactory(context) {
9956
9945
  var storageFileCollection = context.storageFileCollection, firebaseServerActionTransformFunctionFactory = context.firebaseServerActionTransformFunctionFactory;
9957
9946
  var processStorageFile = processStorageFileFactory(context);
@@ -10045,8 +10034,8 @@ function _ts_generator$4(thisArg, body) {
10045
10034
  * Creates or restarts a notification task for the file based on its current processing state,
10046
10035
  * handling stuck-processing detection, forced restarts, and re-processing of already-successful files.
10047
10036
  *
10048
- * @param context - the storage file server actions context
10049
- * @returns an async function that processes a storage file within a transaction
10037
+ * @param context - The storage file server actions context.
10038
+ * @returns An async function that processes a storage file within a transaction.
10050
10039
  */ function _processStorageFileInTransactionFactory(context) {
10051
10040
  var storageFileCollection = context.storageFileCollection, notificationCollectionGroup = context.notificationCollectionGroup;
10052
10041
  return function(input, transaction) {
@@ -10320,8 +10309,8 @@ function _ts_generator$4(thisArg, body) {
10320
10309
  * Processes a single {@link StorageFile} by creating a notification task for it
10321
10310
  * and marking it as processing. Validates the file is in a valid state for processing.
10322
10311
  *
10323
- * @param context - the storage file server actions context
10324
- * @returns an async transform-and-validate function that processes a single StorageFile
10312
+ * @param context - The storage file server actions context.
10313
+ * @returns An async transform-and-validate function that processes a single StorageFile.
10325
10314
  */ function processStorageFileFactory(context) {
10326
10315
  var firestoreContext = context.firestoreContext, notificationExpediteService = context.notificationExpediteService, firebaseServerActionTransformFunctionFactory = context.firebaseServerActionTransformFunctionFactory;
10327
10316
  var processStorageFileInTransaction = _processStorageFileInTransactionFactory(context);
@@ -10406,8 +10395,8 @@ function _ts_generator$4(thisArg, body) {
10406
10395
  * scheduled delete time has passed. Removes both the Firestore document and
10407
10396
  * the associated file in Cloud Storage.
10408
10397
  *
10409
- * @param context - the storage file server actions context
10410
- * @returns an async transform-and-validate function that returns batch deletion results
10398
+ * @param context - The storage file server actions context.
10399
+ * @returns An async transform-and-validate function that returns batch deletion results.
10411
10400
  */ function deleteAllQueuedStorageFilesFactory(context) {
10412
10401
  var storageFileCollection = context.storageFileCollection, firebaseServerActionTransformFunctionFactory = context.firebaseServerActionTransformFunctionFactory;
10413
10402
  var deleteStorageFile = deleteStorageFileFactory(context);
@@ -10503,8 +10492,8 @@ function _ts_generator$4(thisArg, body) {
10503
10492
  * Deletes a single {@link StorageFile} document and its associated Cloud Storage file.
10504
10493
  * Validates the file is flagged for deletion and the scheduled delete time has passed.
10505
10494
  *
10506
- * @param context - the storage file server actions context
10507
- * @returns an async transform-and-validate function that deletes a StorageFile and its storage object
10495
+ * @param context - The storage file server actions context.
10496
+ * @returns An async transform-and-validate function that deletes a StorageFile and its storage object.
10508
10497
  */ function deleteStorageFileFactory(context) {
10509
10498
  var firestoreContext = context.firestoreContext, storageService = context.storageService, storageFileCollection = context.storageFileCollection, firebaseServerActionTransformFunctionFactory = context.firebaseServerActionTransformFunctionFactory;
10510
10499
  var syncStorageFileWithGroupsInTransaction = _syncStorageFileWithGroupsInTransactionFactory(context);
@@ -10604,8 +10593,8 @@ function _ts_generator$4(thisArg, body) {
10604
10593
  * When `throwOnFirstError` is true, the first failure throws immediately (single-download behavior).
10605
10594
  * When false, failures are collected in the errors array (batch behavior).
10606
10595
  *
10607
- * @param context - the storage file server actions context
10608
- * @returns an async function that processes a {@link DownloadMultipleStorageFilesFactoryInput} and returns a {@link DownloadMultipleStorageFilesResult}
10596
+ * @param context - The storage file server actions context.
10597
+ * @returns An async function that processes a {@link DownloadMultipleStorageFilesFactoryInput} and returns a {@link DownloadMultipleStorageFilesResult}
10609
10598
  */ function _downloadMultipleStorageFilesFactory(context) {
10610
10599
  var storageService = context.storageService, storageFileCollection = context.storageFileCollection;
10611
10600
  return function(input) {
@@ -10719,8 +10708,8 @@ function _ts_generator$4(thisArg, body) {
10719
10708
  * Generates a signed download URL for a {@link StorageFile}'s associated Cloud Storage file.
10720
10709
  * Delegates to {@link _downloadMultipleStorageFilesFactory} with a single item and `throwOnFirstError: true`.
10721
10710
  *
10722
- * @param context - the storage file server actions context
10723
- * @returns an async transform-and-validate function that generates a signed download URL
10711
+ * @param context - The storage file server actions context.
10712
+ * @returns An async transform-and-validate function that generates a signed download URL.
10724
10713
  */ function downloadStorageFileFactory(context) {
10725
10714
  var firebaseServerActionTransformFunctionFactory = context.firebaseServerActionTransformFunctionFactory;
10726
10715
  var downloadMultipleStorageFiles = _downloadMultipleStorageFilesFactory(context);
@@ -10776,8 +10765,8 @@ function _ts_generator$4(thisArg, body) {
10776
10765
  * By default, individual failures are collected in the errors array rather than failing the entire batch.
10777
10766
  * Set `throwOnFirstError` in params to throw on the first failure instead.
10778
10767
  *
10779
- * @param context - the storage file server actions context
10780
- * @returns an async transform-and-validate function that generates signed download URLs for multiple files
10768
+ * @param context - The storage file server actions context.
10769
+ * @returns An async transform-and-validate function that generates signed download URLs for multiple files.
10781
10770
  */ function downloadMultipleStorageFilesFactory(context) {
10782
10771
  var firebaseServerActionTransformFunctionFactory = context.firebaseServerActionTransformFunctionFactory;
10783
10772
  var downloadMultipleStorageFiles = _downloadMultipleStorageFilesFactory(context);
@@ -10829,8 +10818,8 @@ function _ts_generator$4(thisArg, body) {
10829
10818
  * The created group is flagged for initialization (`s=true`) and uses a dummy owner key
10830
10819
  * that will be set during the initialization step.
10831
10820
  *
10832
- * @param context - the storage file server actions context
10833
- * @returns an async function that creates a StorageFileGroup within a transaction
10821
+ * @param context - The storage file server actions context.
10822
+ * @returns An async function that creates a StorageFileGroup within a transaction.
10834
10823
  */ function createStorageFileGroupInTransactionFactory(context) {
10835
10824
  var storageFileGroupCollection = context.storageFileGroupCollection;
10836
10825
  return function(params, transaction) {
@@ -10878,8 +10867,8 @@ function _ts_generator$4(thisArg, body) {
10878
10867
  * Creates a new {@link StorageFileGroup} document within a Firestore transaction,
10879
10868
  * associating it with a model key or storage file.
10880
10869
  *
10881
- * @param context - the storage file server actions context
10882
- * @returns an async transform-and-validate function that creates a new StorageFileGroup
10870
+ * @param context - The storage file server actions context.
10871
+ * @returns An async transform-and-validate function that creates a new StorageFileGroup.
10883
10872
  */ function createStorageFileGroupFactory(context) {
10884
10873
  var firestoreContext = context.firestoreContext, firebaseServerActionTransformFunctionFactory = context.firebaseServerActionTransformFunctionFactory;
10885
10874
  var createStorageFileGroupInTransaction = createStorageFileGroupInTransactionFactory(context);
@@ -10937,8 +10926,8 @@ function _ts_generator$4(thisArg, body) {
10937
10926
  * Adds the storage file to groups it is missing from, removes it from groups when requested,
10938
10927
  * and optionally creates new groups for references that do not yet exist.
10939
10928
  *
10940
- * @param context - the storage file server actions context
10941
- * @returns an async function that syncs a storage file with its groups within a transaction
10929
+ * @param context - The storage file server actions context.
10930
+ * @returns An async function that syncs a storage file with its groups within a transaction.
10942
10931
  */ function _syncStorageFileWithGroupsInTransactionFactory(context) {
10943
10932
  var storageFileCollection = context.storageFileCollection, storageFileGroupCollection = context.storageFileGroupCollection;
10944
10933
  var createStorageFileGroupInTransaction = createStorageFileGroupInTransactionFactory(context);
@@ -11135,8 +11124,8 @@ function _ts_generator$4(thisArg, body) {
11135
11124
  * Syncs a single {@link StorageFile}'s embedded data into its associated {@link StorageFileGroup}
11136
11125
  * documents and clears the sync flag on completion.
11137
11126
  *
11138
- * @param context - the storage file server actions context
11139
- * @returns an async transform-and-validate function that syncs a StorageFile with its groups
11127
+ * @param context - The storage file server actions context.
11128
+ * @returns An async transform-and-validate function that syncs a StorageFile with its groups.
11140
11129
  */ function syncStorageFileWithGroupsFactory(context) {
11141
11130
  var firestoreContext = context.firestoreContext, firebaseServerActionTransformFunctionFactory = context.firebaseServerActionTransformFunctionFactory;
11142
11131
  var syncStorageFileWithGroupsInTransaction = _syncStorageFileWithGroupsInTransactionFactory(context);
@@ -11181,8 +11170,8 @@ function _ts_generator$4(thisArg, body) {
11181
11170
  * updating their associated {@link StorageFileGroup} documents and flagging
11182
11171
  * groups for content regeneration when changes occur.
11183
11172
  *
11184
- * @param context - the storage file server actions context
11185
- * @returns an async transform-and-validate function that returns batch sync results
11173
+ * @param context - The storage file server actions context.
11174
+ * @returns An async transform-and-validate function that returns batch sync results.
11186
11175
  */ function syncAllFlaggedStorageFilesWithGroupsFactory(context) {
11187
11176
  var firebaseServerActionTransformFunctionFactory = context.firebaseServerActionTransformFunctionFactory, storageFileCollection = context.storageFileCollection;
11188
11177
  var syncStorageFileWithGroups = syncStorageFileWithGroupsFactory(context);
@@ -11299,8 +11288,8 @@ function _ts_generator$4(thisArg, body) {
11299
11288
  * Regenerates the content of a single {@link StorageFileGroup}, including building a ZIP
11300
11289
  * archive from the group's embedded files and updating the group's content metadata.
11301
11290
  *
11302
- * @param context - the storage file server actions context
11303
- * @returns an async transform-and-validate function that regenerates a StorageFileGroup's content
11291
+ * @param context - The storage file server actions context.
11292
+ * @returns An async transform-and-validate function that regenerates a StorageFileGroup's content.
11304
11293
  */ function regenerateStorageFileGroupContentFactory(context) {
11305
11294
  var firestoreContext = context.firestoreContext, storageService = context.storageService, storageFileCollection = context.storageFileCollection, storageFileGroupCollection = context.storageFileGroupCollection, firebaseServerActionTransformFunctionFactory = context.firebaseServerActionTransformFunctionFactory;
11306
11295
  var processStorageFileInTransaction = _processStorageFileInTransactionFactory(context);
@@ -11441,8 +11430,8 @@ function _ts_generator$4(thisArg, body) {
11441
11430
  * Batch-processes all {@link StorageFileGroup} documents flagged for content regeneration,
11442
11431
  * rebuilding their ZIP archives and updating content metadata.
11443
11432
  *
11444
- * @param context - the storage file server actions context
11445
- * @returns an async transform-and-validate function that returns batch regeneration results
11433
+ * @param context - The storage file server actions context.
11434
+ * @returns An async transform-and-validate function that returns batch regeneration results.
11446
11435
  */ function regenerateAllFlaggedStorageFileGroupsContentFactory(context) {
11447
11436
  var firebaseServerActionTransformFunctionFactory = context.firebaseServerActionTransformFunctionFactory, storageFileGroupCollection = context.storageFileGroupCollection;
11448
11437
  var regenerateStorageFileGroupContent = regenerateStorageFileGroupContentFactory(context);
@@ -11730,8 +11719,8 @@ var MAKE_TEMPLATE_FOR_STORAGEFILE_RELATED_MODEL_INITIALIZATION_FUNCTION_DELETE_R
11730
11719
  * Creates a concrete {@link StorageFileInitServerActions} implementation by wiring each
11731
11720
  * initialization action to its factory function.
11732
11721
  *
11733
- * @param context - the initialization context with template function and Firestore access
11734
- * @returns a {@link StorageFileInitServerActions} wired to the provided context
11722
+ * @param context - The initialization context with template function and Firestore access.
11723
+ * @returns A {@link StorageFileInitServerActions} wired to the provided context.
11735
11724
  */ function storageFileInitServerActions(context) {
11736
11725
  return {
11737
11726
  initializeStorageFileGroup: initializeStorageFileGroupFactory(context),
@@ -11746,9 +11735,9 @@ var MAKE_TEMPLATE_FOR_STORAGEFILE_RELATED_MODEL_INITIALIZATION_FUNCTION_DELETE_R
11746
11735
  * - Returns `null`/`undefined` → marks the model as invalid (`fi=true`)
11747
11736
  * - Returns `false` → deletes the document entirely
11748
11737
  *
11749
- * @param input - the document, transaction, template function, and options
11750
- * @returns an object indicating whether the document was initialized or was already initialized
11751
- * @throws storageFileModelAlreadyInitializedError when `throwErrorIfAlreadyInitialized` is true
11738
+ * @param input - The document, transaction, template function, and options.
11739
+ * @returns An object indicating whether the document was initialized or was already initialized.
11740
+ * @throws {Error} StorageFileModelAlreadyInitializedError when `throwErrorIfAlreadyInitialized` is true.
11752
11741
  */ function initializeStorageFileModelInTransaction(input) {
11753
11742
  return _async_to_generator$3(function() {
11754
11743
  var makeTemplateFunction, throwErrorIfAlreadyInitialized, transaction, documentInTransaction, storageFileModel, initialized, alreadyInitialized, flatModelKey, modelKey, modelCollectionName, _$input, template;
@@ -11850,8 +11839,8 @@ var MAKE_TEMPLATE_FOR_STORAGEFILE_RELATED_MODEL_INITIALIZATION_FUNCTION_DELETE_R
11850
11839
  * Applies the app-specific template function, restricting the template to only the `o` (owner)
11851
11840
  * and content flag properties, and always flags the group for content regeneration.
11852
11841
  *
11853
- * @param context - the initialization context providing collection access and the template function
11854
- * @returns an async function that initializes a storage file group document within a transaction
11842
+ * @param context - The initialization context providing collection access and the template function.
11843
+ * @returns An async function that initializes a storage file group document within a transaction.
11855
11844
  */ function initializeStorageFileGroupInTransactionFactory(context) {
11856
11845
  var storageFileGroupCollection = context.storageFileGroupCollection, makeTemplateForStorageFileGroupInitialization = context.makeTemplateForStorageFileGroupInitialization;
11857
11846
  return function(params, storageFileGroupDocument, transaction) {
@@ -11913,8 +11902,8 @@ var MAKE_TEMPLATE_FOR_STORAGEFILE_RELATED_MODEL_INITIALIZATION_FUNCTION_DELETE_R
11913
11902
  * Wraps the in-transaction group initialization in a Firestore transaction
11914
11903
  * and follows the transform-and-validate pattern.
11915
11904
  *
11916
- * @param context - the initialization context with Firestore access and template function
11917
- * @returns a transform-and-validate function for single storage file group initialization
11905
+ * @param context - The initialization context with Firestore access and template function.
11906
+ * @returns A transform-and-validate function for single storage file group initialization.
11918
11907
  */ function initializeStorageFileGroupFactory(context) {
11919
11908
  var firestoreContext = context.firestoreContext, firebaseServerActionTransformFunctionFactory = context.firebaseServerActionTransformFunctionFactory;
11920
11909
  var initializeStorageFileGroupInTransaction = initializeStorageFileGroupInTransactionFactory(context);
@@ -11956,8 +11945,8 @@ var MAKE_TEMPLATE_FOR_STORAGEFILE_RELATED_MODEL_INITIALIZATION_FUNCTION_DELETE_R
11956
11945
  * initializing each in parallel (up to 5 concurrent tasks). Loops until no more
11957
11946
  * flagged groups are found.
11958
11947
  *
11959
- * @param context - the initialization context with Firestore access, collection, and template function
11960
- * @returns a transform-and-validate function for batch storage file group initialization
11948
+ * @param context - The initialization context with Firestore access, collection, and template function.
11949
+ * @returns A transform-and-validate function for batch storage file group initialization.
11961
11950
  */ function initializeAllApplicableStorageFileGroupsFactory(context) {
11962
11951
  var firestoreContext = context.firestoreContext, firebaseServerActionTransformFunctionFactory = context.firebaseServerActionTransformFunctionFactory, storageFileGroupCollection = context.storageFileGroupCollection;
11963
11952
  var initializeStorageFileGroupInTransaction = initializeStorageFileGroupInTransactionFactory(context);
@@ -12159,9 +12148,9 @@ function _unsupported_iterable_to_array$1(o, minLen) {
12159
12148
  * Factory that assembles the full {@link StorageFileServerActionsContext} by combining
12160
12149
  * the base context with the upload initialization service.
12161
12150
  *
12162
- * @param context - the base server actions context providing Firebase infrastructure
12163
- * @param storageFileInitializeFromUploadService - the service for initializing storage files from uploads
12164
- * @returns the fully assembled StorageFileServerActionsContext
12151
+ * @param context - The base server actions context providing Firebase infrastructure.
12152
+ * @param storageFileInitializeFromUploadService - The service for initializing storage files from uploads.
12153
+ * @returns The fully assembled StorageFileServerActionsContext.
12165
12154
  */ function storageFileServerActionsContextFactory(context, storageFileInitializeFromUploadService) {
12166
12155
  return _object_spread_props$2(_object_spread$2({}, context), {
12167
12156
  storageFileInitializeFromUploadService: storageFileInitializeFromUploadService
@@ -12170,8 +12159,8 @@ function _unsupported_iterable_to_array$1(o, minLen) {
12170
12159
  /**
12171
12160
  * Factory that creates a {@link StorageFileServerActions} instance from the assembled context.
12172
12161
  *
12173
- * @param context - the fully assembled storage file server actions context
12174
- * @returns a concrete StorageFileServerActions instance
12162
+ * @param context - The fully assembled storage file server actions context.
12163
+ * @returns A concrete StorageFileServerActions instance.
12175
12164
  */ function storageFileServerActionsFactory(context) {
12176
12165
  return storageFileServerActions(context);
12177
12166
  }
@@ -12179,9 +12168,9 @@ function _unsupported_iterable_to_array$1(o, minLen) {
12179
12168
  * Factory that creates a {@link StorageFileInitServerActions} instance by merging the
12180
12169
  * server actions context with the init-specific configuration.
12181
12170
  *
12182
- * @param context - the storage file server actions context
12183
- * @param storageFileInitServerActionsContextConfig - init-specific configuration with the template function
12184
- * @returns a concrete StorageFileInitServerActions instance
12171
+ * @param context - The storage file server actions context.
12172
+ * @param storageFileInitServerActionsContextConfig - Init-specific configuration with the template function.
12173
+ * @returns A concrete StorageFileInitServerActions instance.
12185
12174
  */ function storageFileInitServerActionsFactory(context, storageFileInitServerActionsContextConfig) {
12186
12175
  return storageFileInitServerActions(_object_spread$2({}, context, storageFileInitServerActionsContextConfig));
12187
12176
  }
@@ -12195,8 +12184,8 @@ function _unsupported_iterable_to_array$1(o, minLen) {
12195
12184
  *
12196
12185
  * Be sure the class that delares the module using this function also extends AbstractAppStorageFileModule.
12197
12186
  *
12198
- * @param config - the module configuration including optional dependency module, imports, exports, and providers
12199
- * @returns the assembled {@link ModuleMetadata} for the storage file module
12187
+ * @param config - The module configuration including optional dependency module, imports, exports, and providers.
12188
+ * @returns The assembled {@link ModuleMetadata} for the storage file module.
12200
12189
  */ function appStorageFileModuleMetadata(config) {
12201
12190
  var dependencyModule = config.dependencyModule, imports = config.imports, exports = config.exports, providers = config.providers;
12202
12191
  var dependencyModuleImport = dependencyModule ? [
@@ -12370,7 +12359,7 @@ function _ts_generator$2(thisArg, body) {
12370
12359
  /**
12371
12360
  * Performs a query and flags the matching StorageFiles for deletion.
12372
12361
  *
12373
- * @param input The input for the query and flagging.
12362
+ * @param input - The input for the query and flagging.
12374
12363
  * @returns The result of the query and flagging.
12375
12364
  */ function queryAndFlagStorageFilesForDelete(input) {
12376
12365
  return _async_to_generator$2(function() {
@@ -12441,7 +12430,7 @@ function _ts_generator$2(thisArg, body) {
12441
12430
  /**
12442
12431
  * Creates a template for updating a StorageFile to be queued for deletion at the input time.
12443
12432
  *
12444
- * @param queueForDeleteTime When to delete the StorageFile. If true or unset, the StorageFile will be flagged to be deleted immediately.
12433
+ * @param queueForDeleteTime - When to delete the StorageFile. If true or unset, the StorageFile will be flagged to be deleted immediately.
12445
12434
  * @returns The update template for the StorageFile.
12446
12435
  */ function markStorageFileForDeleteTemplate(queueForDeleteTime) {
12447
12436
  var updateTemplate = {
@@ -12665,8 +12654,8 @@ var storageFileProcessingNotificationTaskHandlerDefaultCleanup = function storag
12665
12654
  * determines its purpose, and dispatches to the appropriate purpose-specific processor.
12666
12655
  * Includes optional StorageFileGroup processors (e.g., ZIP generation) by default.
12667
12656
  *
12668
- * @param config - handler configuration including processors, storage accessor, and Firestore collections
12669
- * @returns a NotificationTaskServiceTaskHandlerConfig wired for storage file processing
12657
+ * @param config - Handler configuration including processors, storage accessor, and Firestore collections.
12658
+ * @returns A NotificationTaskServiceTaskHandlerConfig wired for storage file processing.
12670
12659
  */ function storageFileProcessingNotificationTaskHandler(config) {
12671
12660
  var inputProcessors = config.processors, storageAccessor = config.storageAccessor, storageFileFirestoreCollections = config.storageFileFirestoreCollections, allStorageFileGroupProcessorConfig = config.allStorageFileGroupProcessorConfig;
12672
12661
  var storageFileDocumentAccessor = storageFileFirestoreCollections.storageFileCollection.documentAccessor();
@@ -12822,8 +12811,8 @@ var storageFileProcessingNotificationTaskHandlerDefaultCleanup = function storag
12822
12811
  /**
12823
12812
  * Assembles all built-in StorageFileGroup subtask processors, such as ZIP generation.
12824
12813
  *
12825
- * @param config - configuration controlling which group processors to include
12826
- * @returns an array of subtask processor configs for StorageFileGroup processing purposes
12814
+ * @param config - Configuration controlling which group processors to include.
12815
+ * @returns The subtask processor configs for StorageFileGroup processing purposes.
12827
12816
  */ function allStorageFileGroupStorageFileProcessingPurposeSubtaskProcessors(config) {
12828
12817
  var excludeZipProcessing = config.excludeZipProcessing;
12829
12818
  var processors = [];
@@ -12838,8 +12827,8 @@ var storageFileProcessingNotificationTaskHandlerDefaultCleanup = function storag
12838
12827
  * This processor streams all files in the group into a ZIP archive, attaches an info JSON
12839
12828
  * manifest, and uploads the result to the group's designated storage path.
12840
12829
  *
12841
- * @param config - configuration providing Firestore collections, storage accessor, and ZIP options
12842
- * @returns a subtask processor config targeting the StorageFileGroup ZIP purpose
12830
+ * @param config - Configuration providing Firestore collections, storage accessor, and ZIP options.
12831
+ * @returns A subtask processor config targeting the StorageFileGroup ZIP purpose.
12843
12832
  */ function storageFileGroupZipStorageFileProcessingPurposeSubtaskProcessor(config) {
12844
12833
  var _ref;
12845
12834
  var storageFileFirestoreCollections = config.storageFileFirestoreCollections, storageAccessor = config.storageAccessor, zip = config.zip;
@@ -13376,9 +13365,9 @@ function _ts_generator(thisArg, body) {
13376
13365
  * Convenience factory for creating a permanent failure result, indicating the file
13377
13366
  * should be discarded and any created intermediate files cleaned up.
13378
13367
  *
13379
- * @param error - the error that caused the permanent failure
13380
- * @param createdFile - optional path to a file that was created before the error and should be deleted
13381
- * @returns a permanent failure result with the error and optional created file reference
13368
+ * @param error - The error that caused the permanent failure.
13369
+ * @param createdFile - Optional path to a file that was created before the error and should be deleted.
13370
+ * @returns A permanent failure result with the error and optional created file reference.
13382
13371
  */ function storageFileInitializeFromUploadServiceInitializerResultPermanentFailure(error, createdFile) {
13383
13372
  return {
13384
13373
  error: error,
@@ -13397,8 +13386,8 @@ function _ts_generator(thisArg, body) {
13397
13386
  * 3. The created file is linked back to the StorageFile document via custom metadata
13398
13387
  * 4. Optionally, previous files for the same purpose/user are flagged for deletion
13399
13388
  *
13400
- * @param config - service configuration including determiners, initializers, and storage references
13401
- * @returns a {@link StorageFileInitializeFromUploadService} with type detection and upload initialization
13389
+ * @param config - Service configuration including determiners, initializers, and storage references.
13390
+ * @returns A {@link StorageFileInitializeFromUploadService} with type detection and upload initialization.
13402
13391
  *
13403
13392
  * @example
13404
13393
  * ```ts
@@ -13677,4 +13666,4 @@ function _ts_generator(thisArg, body) {
13677
13666
  };
13678
13667
  }
13679
13668
 
13680
- export { AbstractAppNotificationModule, BASE_NOTIFICATION_SERVER_ACTION_CONTEXT_TOKEN, BASE_STORAGE_FILE_SERVER_ACTION_CONTEXT_TOKEN, DEFAULT_COMPRESS_IMAGE_FORMAT, DEFAULT_COMPRESS_IMAGE_INITIAL_QUALITY, DEFAULT_COMPRESS_IMAGE_MAX_DIMENSION, DEFAULT_COMPRESS_IMAGE_MIN_QUALITY, DEFAULT_COMPRESS_IMAGE_QUALITY_STEP, DEFAULT_COMPRESS_PDF_IMAGE_MAX_DIMENSION, DEFAULT_COMPRESS_PDF_IMAGE_QUALITY, DEFAULT_COMPRESS_PDF_IMAGE_SIZE_THRESHOLD_BYTES, DEFAULT_DOWNLOAD_MULTIPLE_STORAGE_FILES_MAX_PARALLEL_TASKS, GlobalNotificationModule, KNOWN_BUT_UNCONFIGURED_NOTIFICATION_TEMPLATE_TYPE_DELETE_AFTER_RETRY_ATTEMPTS, KNOWN_BUT_UNCONFIGURED_NOTIFICATION_TEMPLATE_TYPE_HOURS_DELAY, MAILGUN_NOTIFICATION_EMAIL_SEND_SERVICE_DEFAULT_MAX_BATCH_SIZE_PER_REQUEST, MAKE_TEMPLATE_FOR_NOTIFICATION_RELATED_MODEL_INITIALIZATION_FUNCTION_DELETE_RESPONSE, MAKE_TEMPLATE_FOR_STORAGEFILE_RELATED_MODEL_INITIALIZATION_FUNCTION_DELETE_RESPONSE, MutableNotificationExpediteService, NOTIFICATION_BOX_NOT_INITIALIZED_DELAY_MINUTES, NOTIFICATION_INIT_SERVER_ACTIONS_CONTEXT_CONFIG_TOKEN, NOTIFICATION_MAX_SEND_ATTEMPTS, NOTIFICATION_SERVER_ACTION_CONTEXT_TOKEN, NOTIFICATION_TASK_MINIMUM_SET_AT_THROTTLE_TIME_MINUTES, NOTIFICATION_TASK_TYPE_FAILURE_DELAY_HOURS, NOTIFICATION_TASK_TYPE_FAILURE_DELAY_MS, NOTIFICATION_TASK_TYPE_MAX_SEND_ATTEMPTS, NOTIFICATION_TEMPLATE_SERVICE_CONFIGS_ARRAY_TOKEN, NOTIFICATION_TEMPLATE_SERVICE_DEFAULTS_OVERRIDE_TOKEN, NotificationExpediteService, NotificationInitServerActions, NotificationSendService, NotificationServerActions, NotificationTaskService, NotificationTaskSubTaskMissingRequiredDataTermination, NotificationTemplateService, SEND_QUEUE_NOTIFICATIONS_TASK_EXCESS_THRESHOLD, STORAGE_FILE_INIT_SERVER_ACTIONS_CONTEXT_CONFIG_TOKEN, STORAGE_FILE_SERVER_ACTION_CONTEXT_TOKEN, StorageFileInitServerActions, StorageFileInitializeFromUploadService, StorageFileServerActions, UNKNOWN_NOTIFICATION_TASK_TYPE_DELETE_AFTER_RETRY_ATTEMPTS, UNKNOWN_NOTIFICATION_TASK_TYPE_HOURS_DELAY, UNKNOWN_NOTIFICATION_TEMPLATE_TYPE_DELETE_AFTER_RETRY_ATTEMPTS, UNKNOWN_NOTIFICATION_TEMPLATE_TYPE_HOURS_DELAY, _initializeStorageFileFromUploadFileFactory, _processStorageFileInTransactionFactory, _syncStorageFileWithGroupsInTransactionFactory, allStorageFileGroupStorageFileProcessingPurposeSubtaskProcessors, appNotificationModuleMetadata, appStorageFileModuleMetadata, cleanupOldNotificationLoggedEventDaysFactory, cleanupSentNotificationsFactory, compressImageBufferToTargetSize, compressPdfImagesToTargetSize, createNotificationBoxFactory, createNotificationBoxInTransactionFactory, createNotificationIdRequiredError, createNotificationSummaryFactory, createNotificationUserFactory, createOrRunUniqueNotificationDocument, createStorageFileFactory, createStorageFileGroupFactory, createStorageFileGroupInTransactionFactory, createStorageFileGroupInputError, deleteAllQueuedStorageFilesFactory, deleteStorageFileFactory, downloadMultipleStorageFilesFactory, downloadStorageFileFactory, expandNotificationRecipients, exportMutableNotificationExpediteService, firestoreNotificationSummarySendService, ignoreSendNotificationTextSendService, initializeAllApplicableNotificationBoxesFactory, initializeAllApplicableNotificationSummariesFactory, initializeAllApplicableStorageFileGroupsFactory, initializeAllStorageFilesFromUploadsFactory, initializeNotificationBoxFactory, initializeNotificationBoxInTransactionFactory, initializeNotificationModelInTransaction, initializeNotificationSummaryFactory, initializeNotificationSummaryInTransactionFactory, initializeStorageFileFromUploadFactory, initializeStorageFileGroupFactory, initializeStorageFileGroupInTransactionFactory, initializeStorageFileModelInTransaction, mailgunNotificationEmailSendService, makeNewNotificationSummaryTemplate, markStorageFileForDeleteTemplate, notificationBoxDoesNotExist, notificationBoxExclusionTargetInvalidError, notificationBoxExistsForModelError, notificationBoxRecipientDoesNotExistsError, notificationBoxUnregistredModelTypeInitializationError, notificationExpediteServiceInstance, notificationInitServerActions, notificationInitServerActionsFactory, notificationModelAlreadyInitializedError, notificationServerActions, notificationServerActionsContextFactory, notificationServerActionsFactory, notificationTaskService, notificationTaskSubTaskMissingRequiredDataTermination, notificationTaskSubtaskNotificationTaskHandlerFactory, notificationTemplateServiceInstance, notificationUserBlockedFromBeingAddedToRecipientsError, notificationUserInvalidUidForCreateError, notificationUserLockedConfigFromBeingUpdatedError, processAllQueuedStorageFilesFactory, processStorageFileFactory, provideMutableNotificationExpediteService, queryAndFlagStorageFilesForDelete, regenerateAllFlaggedStorageFileGroupsContentFactory, regenerateStorageFileGroupContentFactory, resyncAllNotificationUsersFactory, resyncNotificationUserFactory, sendNotificationFactory, sendQueuedNotificationsFactory, storageFileAlreadyProcessedError, storageFileCannotBeDeletedYetError, storageFileGroupQueuedForInitializationError, storageFileGroupZipStorageFileProcessingPurposeSubtaskProcessor, storageFileInitServerActions, storageFileInitServerActionsFactory, storageFileInitializeFromUploadService, storageFileInitializeFromUploadServiceInitializerResultPermanentFailure, storageFileModelAlreadyInitializedError, storageFileNotFlaggedForDeletionError, storageFileNotFlaggedForGroupsSyncError, storageFileProcessingNotAllowedForInvalidStateError, storageFileProcessingNotAvailableForTypeError, storageFileProcessingNotQueuedForProcessingError, storageFileProcessingNotificationTaskHandler, storageFileProcessingNotificationTaskHandlerDefaultCleanup, storageFileServerActions, storageFileServerActionsContextFactory, storageFileServerActionsFactory, syncAllFlaggedStorageFilesWithGroupsFactory, syncStorageFileWithGroupsFactory, updateNotificationBoxFactory, updateNotificationBoxRecipientExclusionInTransactionFactory, updateNotificationBoxRecipientFactory, updateNotificationBoxRecipientInTransactionFactory, updateNotificationSummaryFactory, updateNotificationUserFactory, updateNotificationUserNotificationBoxRecipientConfig, updateStorageFileFactory, updateStorageFileGroupFactory, uploadedFileDoesNotExistError, uploadedFileInitializationDiscardedError, uploadedFileInitializationFailedError, uploadedFileIsNotAllowedToBeInitializedError };
13669
+ export { AbstractAppNotificationModule, BASE_NOTIFICATION_SERVER_ACTION_CONTEXT_TOKEN, BASE_STORAGE_FILE_SERVER_ACTION_CONTEXT_TOKEN, DEFAULT_COMPRESS_IMAGE_FORMAT, DEFAULT_COMPRESS_IMAGE_INITIAL_QUALITY, DEFAULT_COMPRESS_IMAGE_MAX_DIMENSION, DEFAULT_COMPRESS_IMAGE_MIN_QUALITY, DEFAULT_COMPRESS_IMAGE_QUALITY_STEP, DEFAULT_COMPRESS_PDF_IMAGE_MAX_DIMENSION, DEFAULT_COMPRESS_PDF_IMAGE_QUALITY, DEFAULT_COMPRESS_PDF_IMAGE_SIZE_THRESHOLD_BYTES, DEFAULT_DOWNLOAD_MULTIPLE_STORAGE_FILES_MAX_PARALLEL_TASKS, DEFAULT_MAILGUN_NOTIFICATION_EMAIL_SEND_SERVICE_MAX_BATCH_SIZE_PER_REQUEST, GlobalNotificationModule, KNOWN_BUT_UNCONFIGURED_NOTIFICATION_TEMPLATE_TYPE_DELETE_AFTER_RETRY_ATTEMPTS, KNOWN_BUT_UNCONFIGURED_NOTIFICATION_TEMPLATE_TYPE_HOURS_DELAY, MAKE_TEMPLATE_FOR_NOTIFICATION_RELATED_MODEL_INITIALIZATION_FUNCTION_DELETE_RESPONSE, MAKE_TEMPLATE_FOR_STORAGEFILE_RELATED_MODEL_INITIALIZATION_FUNCTION_DELETE_RESPONSE, MutableNotificationExpediteService, NOTIFICATION_BOX_NOT_INITIALIZED_DELAY_MINUTES, NOTIFICATION_INIT_SERVER_ACTIONS_CONTEXT_CONFIG_TOKEN, NOTIFICATION_MAX_SEND_ATTEMPTS, NOTIFICATION_SERVER_ACTION_CONTEXT_TOKEN, NOTIFICATION_TASK_MINIMUM_SET_AT_THROTTLE_TIME_MINUTES, NOTIFICATION_TASK_TYPE_FAILURE_DELAY_HOURS, NOTIFICATION_TASK_TYPE_FAILURE_DELAY_MS, NOTIFICATION_TASK_TYPE_MAX_SEND_ATTEMPTS, NOTIFICATION_TEMPLATE_SERVICE_CONFIGS_ARRAY_TOKEN, NOTIFICATION_TEMPLATE_SERVICE_DEFAULTS_OVERRIDE_TOKEN, NotificationExpediteService, NotificationInitServerActions, NotificationSendService, NotificationServerActions, NotificationTaskService, NotificationTaskSubTaskMissingRequiredDataTermination, NotificationTemplateService, SEND_QUEUE_NOTIFICATIONS_TASK_EXCESS_THRESHOLD, STORAGE_FILE_INIT_SERVER_ACTIONS_CONTEXT_CONFIG_TOKEN, STORAGE_FILE_SERVER_ACTION_CONTEXT_TOKEN, StorageFileInitServerActions, StorageFileInitializeFromUploadService, StorageFileServerActions, UNKNOWN_NOTIFICATION_TASK_TYPE_DELETE_AFTER_RETRY_ATTEMPTS, UNKNOWN_NOTIFICATION_TASK_TYPE_HOURS_DELAY, UNKNOWN_NOTIFICATION_TEMPLATE_TYPE_DELETE_AFTER_RETRY_ATTEMPTS, UNKNOWN_NOTIFICATION_TEMPLATE_TYPE_HOURS_DELAY, _initializeStorageFileFromUploadFileFactory, _processStorageFileInTransactionFactory, _syncStorageFileWithGroupsInTransactionFactory, allStorageFileGroupStorageFileProcessingPurposeSubtaskProcessors, appNotificationModuleMetadata, appStorageFileModuleMetadata, cleanupOldNotificationLoggedEventDaysFactory, cleanupSentNotificationsFactory, compressImageBufferToTargetSize, compressPdfImagesToTargetSize, createNotificationBoxFactory, createNotificationBoxInTransactionFactory, createNotificationIdRequiredError, createNotificationSummaryFactory, createNotificationUserFactory, createOrRunUniqueNotificationDocument, createStorageFileFactory, createStorageFileGroupFactory, createStorageFileGroupInTransactionFactory, createStorageFileGroupInputError, deleteAllQueuedStorageFilesFactory, deleteStorageFileFactory, downloadMultipleStorageFilesFactory, downloadStorageFileFactory, expandNotificationRecipients, exportMutableNotificationExpediteService, firestoreNotificationSummarySendService, ignoreSendNotificationTextSendService, initializeAllApplicableNotificationBoxesFactory, initializeAllApplicableNotificationSummariesFactory, initializeAllApplicableStorageFileGroupsFactory, initializeAllStorageFilesFromUploadsFactory, initializeNotificationBoxFactory, initializeNotificationBoxInTransactionFactory, initializeNotificationModelInTransaction, initializeNotificationSummaryFactory, initializeNotificationSummaryInTransactionFactory, initializeStorageFileFromUploadFactory, initializeStorageFileGroupFactory, initializeStorageFileGroupInTransactionFactory, initializeStorageFileModelInTransaction, mailgunNotificationEmailSendService, makeNewNotificationSummaryTemplate, markStorageFileForDeleteTemplate, notificationBoxDoesNotExist, notificationBoxExclusionTargetInvalidError, notificationBoxExistsForModelError, notificationBoxRecipientDoesNotExistsError, notificationBoxUnregistredModelTypeInitializationError, notificationExpediteServiceInstance, notificationInitServerActions, notificationInitServerActionsFactory, notificationModelAlreadyInitializedError, notificationServerActions, notificationServerActionsContextFactory, notificationServerActionsFactory, notificationTaskService, notificationTaskSubTaskMissingRequiredDataTermination, notificationTaskSubtaskNotificationTaskHandlerFactory, notificationTemplateServiceInstance, notificationUserBlockedFromBeingAddedToRecipientsError, notificationUserInvalidUidForCreateError, notificationUserLockedConfigFromBeingUpdatedError, processAllQueuedStorageFilesFactory, processStorageFileFactory, provideMutableNotificationExpediteService, queryAndFlagStorageFilesForDelete, regenerateAllFlaggedStorageFileGroupsContentFactory, regenerateStorageFileGroupContentFactory, resyncAllNotificationUsersFactory, resyncNotificationUserFactory, sendNotificationFactory, sendQueuedNotificationsFactory, storageFileAlreadyProcessedError, storageFileCannotBeDeletedYetError, storageFileGroupQueuedForInitializationError, storageFileGroupZipStorageFileProcessingPurposeSubtaskProcessor, storageFileInitServerActions, storageFileInitServerActionsFactory, storageFileInitializeFromUploadService, storageFileInitializeFromUploadServiceInitializerResultPermanentFailure, storageFileModelAlreadyInitializedError, storageFileNotFlaggedForDeletionError, storageFileNotFlaggedForGroupsSyncError, storageFileProcessingNotAllowedForInvalidStateError, storageFileProcessingNotAvailableForTypeError, storageFileProcessingNotQueuedForProcessingError, storageFileProcessingNotificationTaskHandler, storageFileProcessingNotificationTaskHandlerDefaultCleanup, storageFileServerActions, storageFileServerActionsContextFactory, storageFileServerActionsFactory, syncAllFlaggedStorageFilesWithGroupsFactory, syncStorageFileWithGroupsFactory, updateNotificationBoxFactory, updateNotificationBoxRecipientExclusionInTransactionFactory, updateNotificationBoxRecipientFactory, updateNotificationBoxRecipientInTransactionFactory, updateNotificationSummaryFactory, updateNotificationUserFactory, updateNotificationUserNotificationBoxRecipientConfig, updateStorageFileFactory, updateStorageFileGroupFactory, uploadedFileDoesNotExistError, uploadedFileInitializationDiscardedError, uploadedFileInitializationFailedError, uploadedFileIsNotAllowedToBeInitializedError };