@dereekb/firebase 13.0.7 → 13.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs.js CHANGED
@@ -8,8 +8,7 @@ var model = require('@dereekb/model');
8
8
  var date = require('@dereekb/date');
9
9
  var functions = require('firebase/functions');
10
10
  var storage = require('firebase/storage');
11
- var classTransformer = require('class-transformer');
12
- var classValidator = require('class-validator');
11
+ var arktype = require('arktype');
13
12
  var fetch = require('@dereekb/util/fetch');
14
13
  var makeError = require('make-error');
15
14
  var dateFns = require('date-fns');
@@ -5444,62 +5443,15 @@ const DBX_FIREBASE_SERVER_NO_AUTH_ERROR_CODE = 'NO_AUTH';
5444
5443
  */
5445
5444
  const DBX_FIREBASE_SERVER_NO_UID_ERROR_CODE = 'NO_USER_UID';
5446
5445
 
5447
- /******************************************************************************
5448
- Copyright (c) Microsoft Corporation.
5449
-
5450
- Permission to use, copy, modify, and/or distribute this software for any
5451
- purpose with or without fee is hereby granted.
5452
-
5453
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
5454
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
5455
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
5456
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
5457
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
5458
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
5459
- PERFORMANCE OF THIS SOFTWARE.
5460
- ***************************************************************************** */
5461
- /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
5462
-
5463
-
5464
- function __decorate(decorators, target, key, desc) {
5465
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
5466
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5467
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5468
- return c > 3 && r && Object.defineProperty(target, key, r), r;
5469
- }
5470
-
5471
- function __metadata(metadataKey, metadataValue) {
5472
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
5473
- }
5474
-
5475
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
5476
- var e = new Error(message);
5477
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
5478
- };
5479
-
5480
5446
  exports.ScheduledFunctionDevelopmentFunctionTypeEnum = void 0;
5481
5447
  (function (ScheduledFunctionDevelopmentFunctionTypeEnum) {
5482
5448
  ScheduledFunctionDevelopmentFunctionTypeEnum["LIST"] = "list";
5483
5449
  ScheduledFunctionDevelopmentFunctionTypeEnum["RUN"] = "run";
5484
5450
  })(exports.ScheduledFunctionDevelopmentFunctionTypeEnum || (exports.ScheduledFunctionDevelopmentFunctionTypeEnum = {}));
5485
- class ScheduledFunctionDevelopmentFirebaseFunctionParams {
5486
- type;
5487
- /**
5488
- * Name of function to run.
5489
- */
5490
- run;
5491
- }
5492
- __decorate([
5493
- classTransformer.Expose(),
5494
- classValidator.IsEnum(exports.ScheduledFunctionDevelopmentFunctionTypeEnum),
5495
- __metadata("design:type", String)
5496
- ], ScheduledFunctionDevelopmentFirebaseFunctionParams.prototype, "type", void 0);
5497
- __decorate([
5498
- classTransformer.Expose(),
5499
- classValidator.IsString(),
5500
- classValidator.IsOptional(),
5501
- __metadata("design:type", String)
5502
- ], ScheduledFunctionDevelopmentFirebaseFunctionParams.prototype, "run", void 0);
5451
+ const scheduledFunctionDevelopmentFirebaseFunctionParamsType = arktype.type({
5452
+ type: "'list' | 'run'",
5453
+ 'run?': 'string'
5454
+ });
5503
5455
  class ScheduledFunctionDevelopmentFirebaseFunctionListEntry {
5504
5456
  name;
5505
5457
  }
@@ -5526,101 +5478,30 @@ function firebaseModelLoader(getFirestoreCollection) {
5526
5478
  }
5527
5479
 
5528
5480
  /**
5529
- * isFirestoreModelKey validator
5530
- */
5531
- function IsFirestoreModelKey(validationOptions) {
5532
- return function (object, propertyName) {
5533
- classValidator.registerDecorator({
5534
- name: 'isFirestoreModelKey',
5535
- target: object.constructor,
5536
- propertyName: propertyName,
5537
- options: validationOptions,
5538
- validator: {
5539
- validate: isFirestoreModelKey,
5540
- defaultMessage: classValidator.buildMessage((eachPrefix, args) => eachPrefix + `$property value of "${args?.value}" is not a FirestoreModelKey.`, validationOptions)
5541
- }
5542
- });
5543
- };
5544
- }
5481
+ * ArkType schema for a FirestoreModelKey (full path like "collection/12345").
5482
+ */
5483
+ const firestoreModelKeyType = arktype.type('string > 0').narrow((val, ctx) => isFirestoreModelKey(val) || ctx.mustBe('a valid FirestoreModelKey'));
5545
5484
  /**
5546
- * isFirestoreModelId validator
5485
+ * ArkType schema for a FirestoreModelId (document ID like "12345").
5547
5486
  */
5548
- function IsFirestoreModelId(validationOptions) {
5549
- return function (object, propertyName) {
5550
- classValidator.registerDecorator({
5551
- name: 'isFirestoreModelId',
5552
- target: object.constructor,
5553
- propertyName: propertyName,
5554
- options: validationOptions,
5555
- validator: {
5556
- validate: isFirestoreModelId,
5557
- defaultMessage: classValidator.buildMessage((eachPrefix, args) => eachPrefix + `$property value of "${args?.value}" is not a FirestoreModelId.`, validationOptions)
5558
- }
5559
- });
5560
- };
5561
- }
5487
+ const firestoreModelIdType = arktype.type('string > 0').narrow((val, ctx) => isFirestoreModelId(val) || ctx.mustBe('a valid FirestoreModelId'));
5562
5488
  /**
5563
- * isFirestoreModelIdOrKey validator
5489
+ * ArkType schema for a FirestoreModelId or FirestoreModelKey.
5564
5490
  */
5565
- function IsFirestoreModelIdOrKey(validationOptions) {
5566
- return function (object, propertyName) {
5567
- classValidator.registerDecorator({
5568
- name: 'isFirestoreModelIdOrKey',
5569
- target: object.constructor,
5570
- propertyName: propertyName,
5571
- options: validationOptions,
5572
- validator: {
5573
- validate: isFirestoreModelIdOrKey,
5574
- defaultMessage: classValidator.buildMessage((eachPrefix, args) => eachPrefix + `$property value of "${args?.value}" is not a FirestoreModelId or FirestoreModelKey.`, validationOptions)
5575
- }
5576
- });
5577
- };
5578
- }
5491
+ const firestoreModelIdOrKeyType = arktype.type('string > 0').narrow((val, ctx) => isFirestoreModelIdOrKey(val) || ctx.mustBe('a valid FirestoreModelId or FirestoreModelKey'));
5579
5492
 
5580
- /**
5581
- * Simple annotated params that implements FirestoreModelKeyRef.
5582
- */
5583
- class TargetModelParams {
5584
- key;
5585
- }
5586
- __decorate([
5587
- classTransformer.Expose(),
5588
- classValidator.IsNotEmpty(),
5589
- IsFirestoreModelKey(),
5590
- __metadata("design:type", String)
5591
- ], TargetModelParams.prototype, "key", void 0);
5592
- class InferredTargetModelParams {
5593
- key;
5594
- }
5595
- __decorate([
5596
- classTransformer.Expose(),
5597
- classValidator.IsOptional(),
5598
- classValidator.IsNotEmpty(),
5599
- IsFirestoreModelKey(),
5600
- __metadata("design:type", String)
5601
- ], InferredTargetModelParams.prototype, "key", void 0);
5602
- /**
5603
- * Simple annotated params that implements FirestoreModelKeyRef but key is a FirestoreModelId.
5604
- */
5605
- class TargetModelIdParams {
5606
- key;
5607
- }
5608
- __decorate([
5609
- classTransformer.Expose(),
5610
- classValidator.IsNotEmpty(),
5611
- IsFirestoreModelId(),
5612
- __metadata("design:type", String)
5613
- ], TargetModelIdParams.prototype, "key", void 0);
5614
- class InferredTargetModelIdParams {
5615
- key;
5616
- }
5617
- __decorate([
5618
- classTransformer.Expose(),
5619
- classValidator.IsOptional(),
5620
- classValidator.IsNotEmpty(),
5621
- IsFirestoreModelId(),
5622
- __metadata("design:type", String)
5623
- ], InferredTargetModelIdParams.prototype, "key", void 0);
5493
+ const targetModelParamsType = arktype.type({
5494
+ key: firestoreModelKeyType
5495
+ });
5496
+ const inferredTargetModelParamsType = arktype.type({
5497
+ 'key?': firestoreModelKeyType
5498
+ });
5499
+ const targetModelIdParamsType = arktype.type({
5500
+ key: firestoreModelIdType
5501
+ });
5502
+ const inferredTargetModelIdParamsType = arktype.type({
5503
+ 'key?': firestoreModelIdType
5504
+ });
5624
5505
 
5625
5506
  /**
5626
5507
  * Abstract AbstractModelPermissionService implementation for FirebaseModelsPermissionService.
@@ -6993,582 +6874,95 @@ const NOTIFICATION_SUBJECT_MIN_LENGTH = 2;
6993
6874
  const NOTIFICATION_SUBJECT_MAX_LENGTH = 100;
6994
6875
  const NOTIFICATION_MESSAGE_MIN_LENGTH = 2;
6995
6876
  const NOTIFICATION_MESSAGE_MAX_LENGTH = 1000;
6996
- /**
6997
- * Config entries are inserted, unless marked as remove.
6998
- */
6999
- class NotificationBoxRecipientTemplateConfigArrayEntryParam {
7000
- type;
7001
- sd;
7002
- se;
7003
- st;
7004
- sp;
7005
- sn;
7006
- /**
7007
- * If true, removes this configuration
7008
- */
7009
- remove;
7010
- }
7011
- __decorate([
7012
- classTransformer.Expose(),
7013
- classValidator.IsString(),
7014
- __metadata("design:type", String)
7015
- ], NotificationBoxRecipientTemplateConfigArrayEntryParam.prototype, "type", void 0);
7016
- __decorate([
7017
- classTransformer.Expose(),
7018
- classValidator.IsOptional(),
7019
- classValidator.IsBoolean(),
7020
- __metadata("design:type", Object)
7021
- ], NotificationBoxRecipientTemplateConfigArrayEntryParam.prototype, "sd", void 0);
7022
- __decorate([
7023
- classTransformer.Expose(),
7024
- classValidator.IsOptional(),
7025
- classValidator.IsBoolean(),
7026
- __metadata("design:type", Object)
7027
- ], NotificationBoxRecipientTemplateConfigArrayEntryParam.prototype, "se", void 0);
7028
- __decorate([
7029
- classTransformer.Expose(),
7030
- classValidator.IsOptional(),
7031
- classValidator.IsBoolean(),
7032
- __metadata("design:type", Object)
7033
- ], NotificationBoxRecipientTemplateConfigArrayEntryParam.prototype, "st", void 0);
7034
- __decorate([
7035
- classTransformer.Expose(),
7036
- classValidator.IsOptional(),
7037
- classValidator.IsBoolean(),
7038
- __metadata("design:type", Object)
7039
- ], NotificationBoxRecipientTemplateConfigArrayEntryParam.prototype, "sp", void 0);
7040
- __decorate([
7041
- classTransformer.Expose(),
7042
- classValidator.IsOptional(),
7043
- classValidator.IsBoolean(),
7044
- __metadata("design:type", Object)
7045
- ], NotificationBoxRecipientTemplateConfigArrayEntryParam.prototype, "sn", void 0);
7046
- __decorate([
7047
- classTransformer.Expose(),
7048
- classValidator.IsOptional(),
7049
- classValidator.IsBoolean(),
7050
- __metadata("design:type", Object)
7051
- ], NotificationBoxRecipientTemplateConfigArrayEntryParam.prototype, "remove", void 0);
7052
- /**
7053
- * Used for creating a new NotificationUser for a user.
7054
- */
7055
- class CreateNotificationUserParams {
7056
- /**
7057
- * UID of the user to create the NotificationUser for.
7058
- */
7059
- uid;
7060
- }
7061
- __decorate([
7062
- classTransformer.Expose(),
7063
- classValidator.IsOptional(),
7064
- IsFirestoreModelId(),
7065
- __metadata("design:type", String)
7066
- ], CreateNotificationUserParams.prototype, "uid", void 0);
7067
- /**
7068
- * Used for updating the global or default config on a NotificationUser.
7069
- */
7070
- class UpdateNotificationUserDefaultNotificationBoxRecipientConfigParams {
7071
- /**
7072
- * NotificationBox recipient to update. Is ignored if UID is provided and matches a user. Used for external recipients/users.
7073
- */
7074
- i;
7075
- /**
7076
- * Override email address
7077
- */
7078
- e;
7079
- /**
7080
- * Override phone number
7081
- */
7082
- t;
7083
- /**
7084
- * Array of configs that correspond with "c"
7085
- */
7086
- configs;
7087
- lk;
7088
- bk;
7089
- f;
7090
- }
7091
- __decorate([
7092
- classTransformer.Expose(),
7093
- classValidator.IsOptional(),
7094
- classValidator.IsNumber(),
7095
- __metadata("design:type", Object)
7096
- ], UpdateNotificationUserDefaultNotificationBoxRecipientConfigParams.prototype, "i", void 0);
7097
- __decorate([
7098
- classTransformer.Expose(),
7099
- classValidator.IsOptional(),
7100
- classValidator.IsEmail(),
7101
- __metadata("design:type", Object)
7102
- ], UpdateNotificationUserDefaultNotificationBoxRecipientConfigParams.prototype, "e", void 0);
7103
- __decorate([
7104
- classTransformer.Expose(),
7105
- classValidator.IsOptional(),
7106
- model.IsE164PhoneNumber(),
7107
- __metadata("design:type", Object)
7108
- ], UpdateNotificationUserDefaultNotificationBoxRecipientConfigParams.prototype, "t", void 0);
7109
- __decorate([
7110
- classTransformer.Expose(),
7111
- classValidator.IsOptional(),
7112
- classValidator.IsArray(),
7113
- classValidator.ValidateNested({ each: true }),
7114
- classTransformer.Type(() => NotificationBoxRecipientTemplateConfigArrayEntryParam),
7115
- __metadata("design:type", Object)
7116
- ], UpdateNotificationUserDefaultNotificationBoxRecipientConfigParams.prototype, "configs", void 0);
7117
- __decorate([
7118
- classTransformer.Expose(),
7119
- classValidator.IsBoolean(),
7120
- classValidator.IsOptional(),
7121
- __metadata("design:type", Object)
7122
- ], UpdateNotificationUserDefaultNotificationBoxRecipientConfigParams.prototype, "lk", void 0);
7123
- __decorate([
7124
- classTransformer.Expose(),
7125
- classValidator.IsBoolean(),
7126
- classValidator.IsOptional(),
7127
- __metadata("design:type", Object)
7128
- ], UpdateNotificationUserDefaultNotificationBoxRecipientConfigParams.prototype, "bk", void 0);
7129
- __decorate([
7130
- classTransformer.Expose(),
7131
- classValidator.IsOptional(),
7132
- classValidator.IsEnum(exports.NotificationBoxRecipientFlag),
7133
- __metadata("design:type", Object)
7134
- ], UpdateNotificationUserDefaultNotificationBoxRecipientConfigParams.prototype, "f", void 0);
7135
- class UpdateNotificationBoxRecipientLikeParams {
7136
- /**
7137
- * Override email address
7138
- */
7139
- e;
7140
- /**
7141
- * Override phone number
7142
- */
7143
- t;
7144
- /**
7145
- * Notification summary id
7146
- */
7147
- s;
7148
- /**
7149
- * Array of configs
7150
- */
7151
- configs;
7152
- }
7153
- __decorate([
7154
- classTransformer.Expose(),
7155
- classValidator.IsOptional(),
7156
- classValidator.IsEmail(),
7157
- __metadata("design:type", Object)
7158
- ], UpdateNotificationBoxRecipientLikeParams.prototype, "e", void 0);
7159
- __decorate([
7160
- classTransformer.Expose(),
7161
- classValidator.IsOptional(),
7162
- model.IsE164PhoneNumber(),
7163
- __metadata("design:type", Object)
7164
- ], UpdateNotificationBoxRecipientLikeParams.prototype, "t", void 0);
7165
- __decorate([
7166
- classTransformer.Expose(),
7167
- classValidator.IsOptional(),
7168
- classValidator.IsPhoneNumber(),
7169
- __metadata("design:type", Object)
7170
- ], UpdateNotificationBoxRecipientLikeParams.prototype, "s", void 0);
7171
- __decorate([
7172
- classTransformer.Expose(),
7173
- classValidator.IsOptional(),
7174
- classValidator.IsArray(),
7175
- classValidator.ValidateNested({ each: true }),
7176
- classTransformer.Type(() => NotificationBoxRecipientTemplateConfigArrayEntryParam),
7177
- __metadata("design:type", Object)
7178
- ], UpdateNotificationBoxRecipientLikeParams.prototype, "configs", void 0);
7179
- /**
7180
- * Used for updating the target NotificationUserNotificationBoxRecipientConfig.
7181
- */
7182
- class UpdateNotificationUserNotificationBoxRecipientParams extends UpdateNotificationBoxRecipientLikeParams {
7183
- /**
7184
- * NotificationBox config to update
7185
- */
7186
- nb;
7187
- rm;
7188
- lk;
7189
- bk;
7190
- f;
7191
- /**
7192
- * Whether or not to delete this configuration entirely.
7193
- *
7194
- * Will only delete if rm is true and ns is false. Is ignored otherwise.
7195
- */
7196
- deleteRemovedConfig;
7197
- }
7198
- __decorate([
7199
- classTransformer.Expose(),
7200
- IsFirestoreModelId(),
7201
- __metadata("design:type", String)
7202
- ], UpdateNotificationUserNotificationBoxRecipientParams.prototype, "nb", void 0);
7203
- __decorate([
7204
- classTransformer.Expose(),
7205
- classValidator.IsOptional(),
7206
- classValidator.IsBoolean(),
7207
- __metadata("design:type", Object)
7208
- ], UpdateNotificationUserNotificationBoxRecipientParams.prototype, "rm", void 0);
7209
- __decorate([
7210
- classTransformer.Expose(),
7211
- classValidator.IsOptional(),
7212
- classValidator.IsBoolean(),
7213
- __metadata("design:type", Object)
7214
- ], UpdateNotificationUserNotificationBoxRecipientParams.prototype, "lk", void 0);
7215
- __decorate([
7216
- classTransformer.Expose(),
7217
- classValidator.IsOptional(),
7218
- classValidator.IsBoolean(),
7219
- __metadata("design:type", Object)
7220
- ], UpdateNotificationUserNotificationBoxRecipientParams.prototype, "bk", void 0);
7221
- __decorate([
7222
- classTransformer.Expose(),
7223
- classValidator.IsOptional(),
7224
- classValidator.IsEnum(() => exports.NotificationBoxRecipientFlag),
7225
- __metadata("design:type", Object)
7226
- ], UpdateNotificationUserNotificationBoxRecipientParams.prototype, "f", void 0);
7227
- __decorate([
7228
- classTransformer.Expose(),
7229
- classValidator.IsOptional(),
7230
- classValidator.IsBoolean(),
7231
- __metadata("design:type", Object)
7232
- ], UpdateNotificationUserNotificationBoxRecipientParams.prototype, "deleteRemovedConfig", void 0);
7233
- /**
7234
- * Used for updating the NotificationUser.
7235
- */
7236
- class UpdateNotificationUserParams extends TargetModelParams {
7237
- // TODO: update configs...
7238
- gc;
7239
- dc;
7240
- bc;
7241
- }
7242
- __decorate([
7243
- classTransformer.Expose(),
7244
- classValidator.IsOptional(),
7245
- classValidator.ValidateNested(),
7246
- classTransformer.Type(() => UpdateNotificationUserDefaultNotificationBoxRecipientConfigParams),
7247
- __metadata("design:type", Object)
7248
- ], UpdateNotificationUserParams.prototype, "gc", void 0);
7249
- __decorate([
7250
- classTransformer.Expose(),
7251
- classValidator.IsOptional(),
7252
- classValidator.ValidateNested(),
7253
- classTransformer.Type(() => UpdateNotificationUserDefaultNotificationBoxRecipientConfigParams),
7254
- __metadata("design:type", Object)
7255
- ], UpdateNotificationUserParams.prototype, "dc", void 0);
7256
- __decorate([
7257
- classTransformer.Expose(),
7258
- classValidator.IsOptional(),
7259
- classValidator.IsArray(),
7260
- classValidator.ValidateNested({ each: true }),
7261
- classTransformer.Type(() => UpdateNotificationUserNotificationBoxRecipientParams),
7262
- __metadata("design:type", Object)
7263
- ], UpdateNotificationUserParams.prototype, "bc", void 0);
7264
- class ResyncNotificationUserParams extends TargetModelParams {
7265
- }
7266
- class ResyncAllNotificationUserParams {
7267
- }
7268
- /**
7269
- * Used for creating a new NotificationSummary for a model.
7270
- */
7271
- class CreateNotificationSummaryParams {
7272
- /**
7273
- * Model to create the NotificationSummary for.
7274
- */
7275
- model;
7276
- }
7277
- __decorate([
7278
- classTransformer.Expose(),
7279
- classValidator.IsNotEmpty(),
7280
- IsFirestoreModelKey(),
7281
- __metadata("design:type", String)
7282
- ], CreateNotificationSummaryParams.prototype, "model", void 0);
7283
- /**
7284
- * Used for updating the NotificationSummary.
7285
- */
7286
- class UpdateNotificationSummaryParams extends TargetModelParams {
7287
- /**
7288
- * Updates the "rat" time to now.
7289
- */
7290
- flagAllRead;
7291
- /**
7292
- * Sets the "rat" time to the given date, or clears it.
7293
- */
7294
- setReadAtTime;
7295
- }
7296
- __decorate([
7297
- classTransformer.Expose(),
7298
- classValidator.IsOptional(),
7299
- classValidator.IsBoolean(),
7300
- __metadata("design:type", Object)
7301
- ], UpdateNotificationSummaryParams.prototype, "flagAllRead", void 0);
7302
- __decorate([
7303
- classTransformer.Expose(),
7304
- classValidator.IsOptional(),
7305
- classValidator.IsDate(),
7306
- classTransformer.Type(() => Date),
7307
- __metadata("design:type", Object)
7308
- ], UpdateNotificationSummaryParams.prototype, "setReadAtTime", void 0);
7309
- /**
7310
- * Used for creating or initializing a new NotificationBox for a model.
7311
- *
7312
- * Mainly used for testing. Not exposed to the API.
7313
- *
7314
- * The preferred way is to create a NotificationBox through a Notification.
7315
- */
7316
- class CreateNotificationBoxParams {
7317
- model;
7318
- }
7319
- __decorate([
7320
- classTransformer.Expose(),
7321
- classValidator.IsNotEmpty(),
7322
- IsFirestoreModelKey(),
7323
- __metadata("design:type", String)
7324
- ], CreateNotificationBoxParams.prototype, "model", void 0);
7325
- /**
7326
- * Used for initializing an uninitialized model like NotificationBox or NotificationSummary.
7327
- */
7328
- class InitializeNotificationModelParams extends TargetModelParams {
7329
- /**
7330
- * Whether or not to throw an error if the notification has already been sent or is being sent.
7331
- */
7332
- throwErrorIfAlreadyInitialized;
7333
- }
7334
- __decorate([
7335
- classTransformer.Expose(),
7336
- classValidator.IsBoolean(),
7337
- classValidator.IsOptional(),
7338
- __metadata("design:type", Boolean)
7339
- ], InitializeNotificationModelParams.prototype, "throwErrorIfAlreadyInitialized", void 0);
7340
- class InitializeAllApplicableNotificationBoxesParams {
7341
- }
7342
- class InitializeAllApplicableNotificationSummariesParams {
7343
- }
7344
- /**
7345
- * Used for updating the NotificationBox.
7346
- */
7347
- class UpdateNotificationBoxParams extends TargetModelParams {
7348
- }
7349
- /**
7350
- * Used to create/update a notification box recipient.
7351
- */
7352
- class UpdateNotificationBoxRecipientParams extends UpdateNotificationBoxRecipientLikeParams {
7353
- /**
7354
- * NotificationBox key to update.
7355
- */
7356
- key;
7357
- /**
7358
- * NotificationBox recipient to update. Is ignored if UID is provided and matches a user. Used for external recipients/users.
7359
- */
7360
- i;
7361
- /**
7362
- * Notification recipient to update by UID, if applicable.
7363
- */
7364
- uid;
7365
- /**
7366
- * Whether or not to create the user if they currently do not exist. Defaults to false.
7367
- */
7368
- insert;
7369
- /**
7370
- * Whether or not to enable/disable the recipient from recieving items from this box.
7371
- */
7372
- enabled;
7373
- /**
7374
- * Whether or not to remove the user if they exist. Defaults to false.
7375
- */
7376
- remove;
7377
- /**
7378
- * If true, the target recipient will have this NotificationBox added to their exclusion list.
7379
- * If false, the target recipient will have this NotificationBox removed from their exclusion list.
7380
- *
7381
- * If set, the other functions are ignored.
7382
- *
7383
- * If targeting the user by the index, the NotificationBox must exist, and the user must have a uid, otherwise an error will be thrown.
7384
- */
7385
- setExclusion;
7386
- }
7387
- __decorate([
7388
- classTransformer.Expose(),
7389
- classValidator.IsNotEmpty(),
7390
- IsFirestoreModelKey(),
7391
- __metadata("design:type", String)
7392
- ], UpdateNotificationBoxRecipientParams.prototype, "key", void 0);
7393
- __decorate([
7394
- classTransformer.Expose(),
7395
- classValidator.IsOptional(),
7396
- classValidator.IsNumber(),
7397
- __metadata("design:type", Object)
7398
- ], UpdateNotificationBoxRecipientParams.prototype, "i", void 0);
7399
- __decorate([
7400
- classTransformer.Expose(),
7401
- classValidator.IsOptional(),
7402
- IsFirestoreModelId(),
7403
- __metadata("design:type", Object)
7404
- ], UpdateNotificationBoxRecipientParams.prototype, "uid", void 0);
7405
- __decorate([
7406
- classTransformer.Expose(),
7407
- classValidator.IsOptional(),
7408
- classValidator.IsBoolean(),
7409
- __metadata("design:type", Object)
7410
- ], UpdateNotificationBoxRecipientParams.prototype, "insert", void 0);
7411
- __decorate([
7412
- classTransformer.Expose(),
7413
- classValidator.IsOptional(),
7414
- classValidator.IsBoolean(),
7415
- __metadata("design:type", Object)
7416
- ], UpdateNotificationBoxRecipientParams.prototype, "enabled", void 0);
7417
- __decorate([
7418
- classTransformer.Expose(),
7419
- classValidator.IsOptional(),
7420
- classValidator.IsBoolean(),
7421
- __metadata("design:type", Object)
7422
- ], UpdateNotificationBoxRecipientParams.prototype, "remove", void 0);
7423
- __decorate([
7424
- classTransformer.Expose(),
7425
- classValidator.IsOptional(),
7426
- classValidator.IsBoolean(),
7427
- __metadata("design:type", Object)
7428
- ], UpdateNotificationBoxRecipientParams.prototype, "setExclusion", void 0);
7429
- class NotificationRecipientParams {
7430
- /**
7431
- * User to send the notification to.
7432
- */
7433
- uid;
7434
- /**
7435
- * Recipient Name
7436
- */
7437
- un;
7438
- /**
7439
- * Email address
7440
- */
7441
- e;
7442
- /**
7443
- * Phone number
7444
- */
7445
- p;
7446
- }
7447
- __decorate([
7448
- classTransformer.Expose(),
7449
- classValidator.IsOptional(),
7450
- IsFirestoreModelId(),
7451
- __metadata("design:type", Object)
7452
- ], NotificationRecipientParams.prototype, "uid", void 0);
7453
- __decorate([
7454
- classTransformer.Expose(),
7455
- classValidator.IsOptional(),
7456
- classValidator.IsString(),
7457
- classValidator.MinLength(NOTIFICATION_RECIPIENT_NAME_MIN_LENGTH),
7458
- classValidator.MaxLength(NOTIFICATION_RECIPIENT_NAME_MAX_LENGTH),
7459
- __metadata("design:type", Object)
7460
- ], NotificationRecipientParams.prototype, "un", void 0);
7461
- __decorate([
7462
- classTransformer.Expose(),
7463
- classValidator.IsOptional(),
7464
- classValidator.IsEmail(),
7465
- __metadata("design:type", Object)
7466
- ], NotificationRecipientParams.prototype, "e", void 0);
7467
- __decorate([
7468
- classTransformer.Expose(),
7469
- classValidator.IsOptional(),
7470
- classValidator.IsPhoneNumber(),
7471
- __metadata("design:type", Object)
7472
- ], NotificationRecipientParams.prototype, "p", void 0);
7473
- /**
7474
- * Used for sending the notification immediately, if it has not already been sent.
7475
- */
7476
- class SendNotificationParams extends TargetModelParams {
7477
- /**
7478
- * Whether or not to ignore the send at time. Defaults to false.
7479
- *
7480
- * If true, the send at time will be ignored and the notification will be sent immediately.
7481
- */
7482
- ignoreSendAtThrottle;
7483
- /**
7484
- * Whether or not to throw an error if the notification has already been sent or is being sent.
7485
- *
7486
- * Defaults to false.
7487
- */
7488
- throwErrorIfSent;
7489
- }
7490
- __decorate([
7491
- classTransformer.Expose(),
7492
- classValidator.IsOptional(),
7493
- classValidator.IsBoolean(),
7494
- __metadata("design:type", Object)
7495
- ], SendNotificationParams.prototype, "ignoreSendAtThrottle", void 0);
7496
- __decorate([
7497
- classTransformer.Expose(),
7498
- classValidator.IsOptional(),
7499
- classValidator.IsBoolean(),
7500
- __metadata("design:type", Object)
7501
- ], SendNotificationParams.prototype, "throwErrorIfSent", void 0);
7502
- /**
7503
- * Params class used for subscribing a system user to a NotificationBox for a model.
7504
- */
7505
- class AbstractSubscribeToNotificationBoxParams extends TargetModelParams {
7506
- /**
7507
- * Notification recipient to subscribe to notifications
7508
- */
7509
- uid;
7510
- }
7511
- __decorate([
7512
- classTransformer.Expose(),
7513
- IsFirestoreModelId(),
7514
- __metadata("design:type", String)
7515
- ], AbstractSubscribeToNotificationBoxParams.prototype, "uid", void 0);
7516
- class AbstractSubscribeOrUnsubscribeToNotificationBoxParams extends AbstractSubscribeToNotificationBoxParams {
7517
- /**
7518
- * If true, unsubscribes from the notification box instead.
7519
- */
7520
- unsubscribe;
7521
- }
7522
- __decorate([
7523
- classTransformer.Expose(),
7524
- classValidator.IsOptional(),
7525
- classValidator.IsBoolean(),
7526
- __metadata("design:type", Object)
7527
- ], AbstractSubscribeOrUnsubscribeToNotificationBoxParams.prototype, "unsubscribe", void 0);
7528
- /**
7529
- * Used for sending queued notifications in the system.
7530
- */
7531
- class SendQueuedNotificationsParams {
7532
- /**
7533
- * The max number of send loops to run.
7534
- *
7535
- * No limit by default.
7536
- */
7537
- maxSendNotificationLoops;
7538
- /**
7539
- * The max number of parallel send tasks to run.
7540
- *
7541
- * Defaults to 5.
7542
- */
7543
- maxParellelSendTasks;
7544
- /**
7545
- * The threshold to use when to log a warning for an excessive of notification loops.
7546
- */
7547
- sendNotificationLoopsTaskExcessThreshold;
7548
- }
7549
- __decorate([
7550
- classTransformer.Expose(),
7551
- classValidator.IsOptional(),
7552
- classValidator.IsNumber(),
7553
- __metadata("design:type", Object)
7554
- ], SendQueuedNotificationsParams.prototype, "maxSendNotificationLoops", void 0);
7555
- __decorate([
7556
- classTransformer.Expose(),
7557
- classValidator.IsOptional(),
7558
- classValidator.IsNumber(),
7559
- __metadata("design:type", Object)
7560
- ], SendQueuedNotificationsParams.prototype, "maxParellelSendTasks", void 0);
7561
- __decorate([
7562
- classTransformer.Expose(),
7563
- classValidator.IsOptional(),
7564
- classValidator.IsNumber(),
7565
- __metadata("design:type", Object)
7566
- ], SendQueuedNotificationsParams.prototype, "sendNotificationLoopsTaskExcessThreshold", void 0);
7567
- /**
7568
- * Used for sending queued notifications in the system.
7569
- */
7570
- class CleanupSentNotificationsParams {
7571
- }
6877
+ const notificationBoxRecipientTemplateConfigArrayEntryParamType = arktype.type({
6878
+ type: 'string > 0',
6879
+ 'sd?': model.clearable('boolean'),
6880
+ 'se?': model.clearable('boolean'),
6881
+ 'st?': model.clearable('boolean'),
6882
+ 'sp?': model.clearable('boolean'),
6883
+ 'sn?': model.clearable('boolean'),
6884
+ 'remove?': model.clearable('boolean')
6885
+ });
6886
+ const createNotificationUserParamsType = arktype.type({
6887
+ uid: firestoreModelIdType
6888
+ });
6889
+ const updateNotificationUserDefaultNotificationBoxRecipientConfigParamsType = arktype.type({
6890
+ 'i?': model.clearable('number'),
6891
+ 'e?': model.clearable('string.email'),
6892
+ 't?': model.clearable(model.e164PhoneNumberType),
6893
+ 'configs?': model.clearable(notificationBoxRecipientTemplateConfigArrayEntryParamType.array()),
6894
+ 'lk?': model.clearable('boolean'),
6895
+ 'bk?': model.clearable('boolean'),
6896
+ 'f?': model.clearable(arktype.type.enumerated(exports.NotificationBoxRecipientFlag.ENABLED, exports.NotificationBoxRecipientFlag.DISABLED, exports.NotificationBoxRecipientFlag.OPT_OUT))
6897
+ });
6898
+ const updateNotificationBoxRecipientLikeParamsType = arktype.type({
6899
+ 'e?': model.clearable('string.email'),
6900
+ 't?': model.clearable(model.e164PhoneNumberType),
6901
+ 's?': model.clearable('string'),
6902
+ 'configs?': model.clearable(notificationBoxRecipientTemplateConfigArrayEntryParamType.array())
6903
+ });
6904
+ const updateNotificationUserNotificationBoxRecipientParamsType = updateNotificationBoxRecipientLikeParamsType.merge({
6905
+ nb: firestoreModelIdType,
6906
+ 'rm?': model.clearable('boolean'),
6907
+ 'lk?': model.clearable('boolean'),
6908
+ 'bk?': model.clearable('boolean'),
6909
+ 'f?': model.clearable(arktype.type.enumerated(exports.NotificationBoxRecipientFlag.ENABLED, exports.NotificationBoxRecipientFlag.DISABLED, exports.NotificationBoxRecipientFlag.OPT_OUT)),
6910
+ 'deleteRemovedConfig?': model.clearable('boolean')
6911
+ });
6912
+ const updateNotificationUserParamsType = targetModelParamsType.merge({
6913
+ 'gc?': model.clearable(updateNotificationUserDefaultNotificationBoxRecipientConfigParamsType),
6914
+ 'dc?': model.clearable(updateNotificationUserDefaultNotificationBoxRecipientConfigParamsType),
6915
+ 'bc?': model.clearable(updateNotificationUserNotificationBoxRecipientParamsType.array())
6916
+ });
6917
+ const resyncNotificationUserParamsType = targetModelParamsType;
6918
+ const resyncAllNotificationUserParamsType = arktype.type({});
6919
+ const createNotificationSummaryParamsType = arktype.type({
6920
+ model: firestoreModelKeyType
6921
+ });
6922
+ const updateNotificationSummaryParamsType = targetModelParamsType.merge({
6923
+ 'flagAllRead?': model.clearable('boolean'),
6924
+ 'setReadAtTime?': model.clearable('string.date.parse')
6925
+ });
6926
+ const createNotificationBoxParamsType = arktype.type({
6927
+ model: firestoreModelKeyType
6928
+ });
6929
+ const initializeNotificationModelParamsType = targetModelParamsType.merge({
6930
+ 'throwErrorIfAlreadyInitialized?': 'boolean'
6931
+ });
6932
+ const initializeAllApplicableNotificationBoxesParamsType = arktype.type({});
6933
+ const initializeAllApplicableNotificationSummariesParamsType = arktype.type({});
6934
+ const updateNotificationBoxParamsType = targetModelParamsType;
6935
+ const updateNotificationBoxRecipientParamsType = updateNotificationBoxRecipientLikeParamsType.merge({
6936
+ key: firestoreModelKeyType,
6937
+ 'i?': model.clearable('number'),
6938
+ 'uid?': model.clearable(firestoreModelIdType),
6939
+ 'insert?': model.clearable('boolean'),
6940
+ 'enabled?': model.clearable('boolean'),
6941
+ 'remove?': model.clearable('boolean'),
6942
+ 'setExclusion?': model.clearable('boolean')
6943
+ });
6944
+ const notificationRecipientParamsType = arktype.type({
6945
+ 'uid?': model.clearable(firestoreModelIdType),
6946
+ 'un?': model.clearable(`string >= ${NOTIFICATION_RECIPIENT_NAME_MIN_LENGTH} & string <= ${NOTIFICATION_RECIPIENT_NAME_MAX_LENGTH}`),
6947
+ 'e?': model.clearable('string.email'),
6948
+ 'p?': model.clearable('string')
6949
+ });
6950
+ const sendNotificationParamsType = targetModelParamsType.merge({
6951
+ 'ignoreSendAtThrottle?': model.clearable('boolean'),
6952
+ 'throwErrorIfSent?': model.clearable('boolean')
6953
+ });
6954
+ const abstractSubscribeToNotificationBoxParamsType = targetModelParamsType.merge({
6955
+ uid: firestoreModelIdType
6956
+ });
6957
+ const abstractSubscribeOrUnsubscribeToNotificationBoxParamsType = abstractSubscribeToNotificationBoxParamsType.merge({
6958
+ 'unsubscribe?': model.clearable('boolean')
6959
+ });
6960
+ const sendQueuedNotificationsParamsType = arktype.type({
6961
+ 'maxSendNotificationLoops?': model.clearable('number'),
6962
+ 'maxParellelSendTasks?': model.clearable('number'),
6963
+ 'sendNotificationLoopsTaskExcessThreshold?': model.clearable('number')
6964
+ });
6965
+ const cleanupSentNotificationsParamsType = arktype.type({});
7572
6966
  const notificationFunctionTypeConfigMap = {};
7573
6967
  const notificationBoxModelCrudFunctionsConfig = {
7574
6968
  notificationUser: ['update:_,resync'],
@@ -8499,325 +7893,61 @@ const STORAGE_FILE_GROUP_QUEUED_FOR_INITIALIZATION_ERROR_CODE = 'STORAGE_FILE_GR
8499
7893
  */
8500
7894
  const STORAGE_FILE_GROUP_CREATE_INPUT_ERROR_CODE = 'STORAGE_FILE_GROUP_CREATE_INPUT_ERROR';
8501
7895
 
8502
- /**
8503
- * Used for directly create a new StorageFile.
8504
- */
8505
- class CreateStorageFileParams {
8506
- }
8507
- /**
8508
- * Initializes all StorageFiles in the uploads folder.
8509
- */
8510
- class InitializeAllStorageFilesFromUploadsParams {
8511
- /**
8512
- * The maximum number of files to initialize at once.
8513
- */
8514
- maxFilesToInitialize;
8515
- /**
8516
- * The specific folder under the uploads folder to search for files and initialize
8517
- */
8518
- folderPath;
8519
- /**
8520
- * Overrides the default uploads folder path.
8521
- */
8522
- overrideUploadsFolderPath;
8523
- }
8524
- __decorate([
8525
- classTransformer.Expose(),
8526
- classValidator.IsNumber(),
8527
- classValidator.IsOptional(),
8528
- __metadata("design:type", Object)
8529
- ], InitializeAllStorageFilesFromUploadsParams.prototype, "maxFilesToInitialize", void 0);
8530
- __decorate([
8531
- classTransformer.Expose(),
8532
- classValidator.IsString(),
8533
- classValidator.IsOptional(),
8534
- __metadata("design:type", Object)
8535
- ], InitializeAllStorageFilesFromUploadsParams.prototype, "folderPath", void 0);
8536
- __decorate([
8537
- classTransformer.Expose(),
8538
- classValidator.IsString(),
8539
- classValidator.IsOptional(),
8540
- __metadata("design:type", Object)
8541
- ], InitializeAllStorageFilesFromUploadsParams.prototype, "overrideUploadsFolderPath", void 0);
8542
- /**
8543
- * Initializes a StorageFile from the document at the given path.
8544
- */
8545
- class InitializeStorageFileFromUploadParams {
8546
- /**
8547
- * Specific bucketId to use.
8548
- *
8549
- * If not defined, the default bucket will be used.
8550
- */
8551
- bucketId;
8552
- pathString;
8553
- /**
8554
- * Whether or not to attempt to expedite the processing of the created StorageFile, if it is queued for processing.
8555
- *
8556
- * If it cannot be processed, this argument will have no effect.
8557
- */
8558
- expediteProcessing;
8559
- }
8560
- __decorate([
8561
- classTransformer.Expose(),
8562
- classValidator.IsOptional(),
8563
- classValidator.IsString(),
8564
- __metadata("design:type", Object)
8565
- ], InitializeStorageFileFromUploadParams.prototype, "bucketId", void 0);
8566
- __decorate([
8567
- classTransformer.Expose(),
8568
- classValidator.IsString(),
8569
- __metadata("design:type", String)
8570
- ], InitializeStorageFileFromUploadParams.prototype, "pathString", void 0);
8571
- __decorate([
8572
- classTransformer.Expose(),
8573
- classValidator.IsBoolean(),
8574
- classValidator.IsOptional(),
8575
- __metadata("design:type", Boolean)
8576
- ], InitializeStorageFileFromUploadParams.prototype, "expediteProcessing", void 0);
8577
- class ProcessStorageFileParams extends TargetModelParams {
8578
- /**
8579
- * If set, will start/run the processing immediately instead of waiting for the next scheduled run.
8580
- */
8581
- runImmediately;
8582
- /**
8583
- * If set, will check and retry processing if the StorageFile is in a failed processing state.
8584
- */
8585
- checkRetryProcessing;
8586
- /**
8587
- * Used with checkRetryProcessing.
8588
- *
8589
- * If set, will forcibly create a new processing task even if the existing processing task appears to be ok, or if processing was already marked complete.
8590
- */
8591
- forceRestartProcessing;
8592
- /**
8593
- * If set, will start the processing again if the StorageFile is in a successful processing state.
8594
- */
8595
- processAgainIfSuccessful;
8596
- }
8597
- __decorate([
8598
- classTransformer.Expose(),
8599
- classValidator.IsBoolean(),
8600
- classValidator.IsOptional(),
8601
- __metadata("design:type", Object)
8602
- ], ProcessStorageFileParams.prototype, "runImmediately", void 0);
8603
- __decorate([
8604
- classTransformer.Expose(),
8605
- classValidator.IsBoolean(),
8606
- classValidator.IsOptional(),
8607
- __metadata("design:type", Object)
8608
- ], ProcessStorageFileParams.prototype, "checkRetryProcessing", void 0);
8609
- __decorate([
8610
- classTransformer.Expose(),
8611
- classValidator.IsBoolean(),
8612
- classValidator.IsOptional(),
8613
- __metadata("design:type", Object)
8614
- ], ProcessStorageFileParams.prototype, "forceRestartProcessing", void 0);
8615
- __decorate([
8616
- classTransformer.Expose(),
8617
- classValidator.IsBoolean(),
8618
- classValidator.IsOptional(),
8619
- __metadata("design:type", Object)
8620
- ], ProcessStorageFileParams.prototype, "processAgainIfSuccessful", void 0);
8621
- /**
8622
- * Processes all StorageFiles that are queued for processing.
8623
- */
8624
- class ProcessAllQueuedStorageFilesParams {
8625
- }
8626
- class UpdateStorageFileParams extends TargetModelParams {
8627
- /**
8628
- * Sets the delete at time for the given StorageFileDocument, and queues the file for deletion.
8629
- */
8630
- sdat;
8631
- }
8632
- __decorate([
8633
- classTransformer.Expose(),
8634
- classValidator.IsDate(),
8635
- classValidator.IsOptional(),
8636
- classTransformer.Type(() => Date),
8637
- __metadata("design:type", Object)
8638
- ], UpdateStorageFileParams.prototype, "sdat", void 0);
8639
- class DeleteStorageFileParams extends TargetModelParams {
8640
- /**
8641
- * If true, will force the deletion of the StorageFile even if it is not queued for deletion.
8642
- */
8643
- force;
8644
- }
8645
- __decorate([
8646
- classTransformer.Expose(),
8647
- classValidator.IsBoolean(),
8648
- classValidator.IsOptional(),
8649
- __metadata("design:type", Object)
8650
- ], DeleteStorageFileParams.prototype, "force", void 0);
8651
- /**
8652
- * Processes all StorageFiles that are queued for processing.
8653
- */
8654
- class DeleteAllQueuedStorageFilesParams {
8655
- }
8656
- class DownloadStorageFileParams extends TargetModelParams {
8657
- /**
8658
- * Date to expire the download URL.
8659
- */
8660
- expiresAt;
8661
- /**
8662
- * Duration in milliseconds to expire the download URL from now.
8663
- */
8664
- expiresIn;
8665
- /**
8666
- * The content disposition for the response to use.
8667
- */
8668
- responseDisposition;
8669
- /**
8670
- * The content type for the response to use.
8671
- *
8672
- * Only available to admins.
8673
- */
8674
- responseContentType;
8675
- /**
8676
- * Whether or not an admin is creating the link.
8677
- *
8678
- * Allows a longer expiration.
8679
- */
8680
- asAdmin;
8681
- }
8682
- __decorate([
8683
- classTransformer.Expose(),
8684
- classValidator.IsDate(),
8685
- classValidator.IsOptional(),
8686
- classTransformer.Type(() => Date),
8687
- __metadata("design:type", Object)
8688
- ], DownloadStorageFileParams.prototype, "expiresAt", void 0);
8689
- __decorate([
8690
- classTransformer.Expose(),
8691
- classValidator.Min(0),
8692
- classValidator.IsNumber(),
8693
- classValidator.IsOptional(),
8694
- __metadata("design:type", Object)
8695
- ], DownloadStorageFileParams.prototype, "expiresIn", void 0);
8696
- __decorate([
8697
- classTransformer.Expose(),
8698
- classValidator.IsOptional(),
8699
- classValidator.IsString(),
8700
- __metadata("design:type", Object)
8701
- ], DownloadStorageFileParams.prototype, "responseDisposition", void 0);
8702
- __decorate([
8703
- classTransformer.Expose(),
8704
- classValidator.IsOptional(),
8705
- classValidator.IsString(),
8706
- classValidator.IsMimeType(),
8707
- __metadata("design:type", Object)
8708
- ], DownloadStorageFileParams.prototype, "responseContentType", void 0);
8709
- __decorate([
8710
- classTransformer.Expose(),
8711
- classValidator.IsBoolean(),
8712
- classValidator.IsOptional(),
8713
- __metadata("design:type", Object)
8714
- ], DownloadStorageFileParams.prototype, "asAdmin", void 0);
8715
- /**
8716
- * Used for creating or initializing a new StorageFileGroup for a StorageFile.
8717
- *
8718
- * Mainly used for testing. Not exposed to the API.
8719
- *
8720
- * The preferred way is to create a StorageFileGroup through a StorageFile.
8721
- */
8722
- class CreateStorageFileGroupParams {
8723
- /**
8724
- * ModelKey to use for creating the StorageFileGroup.
8725
- */
8726
- model;
8727
- /**
8728
- * StorageFileId to use for creating the StorageFileGroup.
8729
- */
8730
- storageFileId;
8731
- }
8732
- __decorate([
8733
- classTransformer.Expose(),
8734
- classValidator.IsOptional(),
8735
- classValidator.IsNotEmpty(),
8736
- IsFirestoreModelKey(),
8737
- __metadata("design:type", Object)
8738
- ], CreateStorageFileGroupParams.prototype, "model", void 0);
8739
- __decorate([
8740
- classTransformer.Expose(),
8741
- classValidator.IsNotEmpty(),
8742
- IsFirestoreModelId(),
8743
- __metadata("design:type", Object)
8744
- ], CreateStorageFileGroupParams.prototype, "storageFileId", void 0);
8745
- class SyncStorageFileWithGroupsParams extends TargetModelParams {
8746
- /**
8747
- * If true, will force syncing even if the StorageFile is not flagged for a resync.
8748
- */
8749
- force;
8750
- }
8751
- __decorate([
8752
- classTransformer.Expose(),
8753
- classValidator.IsBoolean(),
8754
- classValidator.IsOptional(),
8755
- __metadata("design:type", Boolean)
8756
- ], SyncStorageFileWithGroupsParams.prototype, "force", void 0);
8757
- class SyncAllFlaggedStorageFilesWithGroupsParams {
8758
- }
8759
- class UpdateStorageFileGroupParams extends TargetModelParams {
8760
- /**
8761
- * Entries to update, if selected.
8762
- */
8763
- entries;
8764
- }
8765
- __decorate([
8766
- classTransformer.Expose(),
8767
- classValidator.IsArray(),
8768
- classValidator.IsOptional(),
8769
- classTransformer.Type(() => UpdateStorageFileGroupEntryParams),
8770
- classValidator.ValidateNested({ each: true }),
8771
- __metadata("design:type", Object)
8772
- ], UpdateStorageFileGroupParams.prototype, "entries", void 0);
8773
- class UpdateStorageFileGroupEntryParams {
8774
- s;
8775
- n;
8776
- }
8777
- __decorate([
8778
- classTransformer.Expose(),
8779
- classValidator.IsNotEmpty(),
8780
- IsFirestoreModelId(),
8781
- __metadata("design:type", String)
8782
- ], UpdateStorageFileGroupEntryParams.prototype, "s", void 0);
8783
- __decorate([
8784
- classTransformer.Expose(),
8785
- classValidator.IsString(),
8786
- classValidator.IsOptional(),
8787
- classValidator.IsNotEmpty(),
8788
- __metadata("design:type", Object)
8789
- ], UpdateStorageFileGroupEntryParams.prototype, "n", void 0);
8790
- class RegenerateStorageFileGroupContentParams extends TargetModelParams {
8791
- /**
8792
- * If true, will force syncing even if the StorageFile is not flagged for a resync.
8793
- */
8794
- force;
8795
- }
8796
- __decorate([
8797
- classTransformer.Expose(),
8798
- classValidator.IsBoolean(),
8799
- classValidator.IsOptional(),
8800
- __metadata("design:type", Boolean)
8801
- ], RegenerateStorageFileGroupContentParams.prototype, "force", void 0);
8802
- class RegenerateAllFlaggedStorageFileGroupsContentParams {
8803
- }
8804
- /**
8805
- * Used for initializing an uninitialized model like NotificationBox or NotificationSummary.
8806
- */
8807
- class InitializeStorageFileModelParams extends TargetModelParams {
8808
- /**
8809
- * Whether or not to throw an error if the notification has already been sent or is being sent.
8810
- */
8811
- throwErrorIfAlreadyInitialized;
8812
- }
8813
- __decorate([
8814
- classTransformer.Expose(),
8815
- classValidator.IsBoolean(),
8816
- classValidator.IsOptional(),
8817
- __metadata("design:type", Boolean)
8818
- ], InitializeStorageFileModelParams.prototype, "throwErrorIfAlreadyInitialized", void 0);
8819
- class InitializeAllApplicableStorageFileGroupsParams {
8820
- }
7896
+ const createStorageFileParamsType = arktype.type({});
7897
+ const initializeAllStorageFilesFromUploadsParamsType = arktype.type({
7898
+ 'maxFilesToInitialize?': model.clearable('number'),
7899
+ 'folderPath?': model.clearable('string'),
7900
+ 'overrideUploadsFolderPath?': model.clearable('string')
7901
+ });
7902
+ const initializeStorageFileFromUploadParamsType = arktype.type({
7903
+ 'bucketId?': model.clearable('string'),
7904
+ pathString: 'string > 0',
7905
+ 'expediteProcessing?': 'boolean'
7906
+ });
7907
+ const processStorageFileParamsType = targetModelParamsType.merge({
7908
+ 'runImmediately?': model.clearable('boolean'),
7909
+ 'checkRetryProcessing?': model.clearable('boolean'),
7910
+ 'forceRestartProcessing?': model.clearable('boolean'),
7911
+ 'processAgainIfSuccessful?': model.clearable('boolean')
7912
+ });
7913
+ const processAllQueuedStorageFilesParamsType = arktype.type({});
7914
+ const updateStorageFileParamsType = targetModelParamsType.merge({
7915
+ 'sdat?': model.clearable('string.date.parse')
7916
+ });
7917
+ const deleteStorageFileParamsType = targetModelParamsType.merge({
7918
+ 'force?': model.clearable('boolean')
7919
+ });
7920
+ const deleteAllQueuedStorageFilesParamsType = arktype.type({});
7921
+ const downloadStorageFileParamsType = targetModelParamsType.merge({
7922
+ 'expiresAt?': model.clearable('string.date.parse'),
7923
+ 'expiresIn?': model.clearable('number >= 0'),
7924
+ 'responseDisposition?': model.clearable('string'),
7925
+ 'responseContentType?': model.clearable('string'),
7926
+ 'asAdmin?': model.clearable('boolean')
7927
+ });
7928
+ const createStorageFileGroupParamsType = arktype.type({
7929
+ 'model?': model.clearable(firestoreModelKeyType),
7930
+ 'storageFileId?': model.clearable(firestoreModelIdType)
7931
+ });
7932
+ const syncStorageFileWithGroupsParamsType = targetModelParamsType.merge({
7933
+ 'force?': 'boolean'
7934
+ });
7935
+ const syncAllFlaggedStorageFilesWithGroupsParamsType = arktype.type({});
7936
+ const updateStorageFileGroupEntryParamsType = arktype.type({
7937
+ s: firestoreModelIdType,
7938
+ 'n?': model.clearable('string > 0')
7939
+ });
7940
+ const updateStorageFileGroupParamsType = targetModelParamsType.merge({
7941
+ 'entries?': model.clearable(updateStorageFileGroupEntryParamsType.array())
7942
+ });
7943
+ const regenerateStorageFileGroupContentParamsType = targetModelParamsType.merge({
7944
+ 'force?': 'boolean'
7945
+ });
7946
+ const regenerateAllFlaggedStorageFileGroupsContentParamsType = arktype.type({});
7947
+ const initializeStorageFileModelParamsType = targetModelParamsType.merge({
7948
+ 'throwErrorIfAlreadyInitialized?': 'boolean'
7949
+ });
7950
+ const initializeAllApplicableStorageFileGroupsParamsType = arktype.type({});
8821
7951
  const storageFileFunctionTypeConfigMap = {};
8822
7952
  const storageFileModelCrudFunctionsConfig = {
8823
7953
  storageFile: ['create:_,fromUpload,allFromUpload', 'update:_,process,syncWithGroups', 'delete:_', 'read:download'],
@@ -9681,20 +8811,12 @@ exports.ALL_USER_UPLOADS_FOLDER_PATH = ALL_USER_UPLOADS_FOLDER_PATH;
9681
8811
  exports.AbstractFirestoreDocument = AbstractFirestoreDocument;
9682
8812
  exports.AbstractFirestoreDocumentDataAccessorWrapper = AbstractFirestoreDocumentDataAccessorWrapper;
9683
8813
  exports.AbstractFirestoreDocumentWithParent = AbstractFirestoreDocumentWithParent;
9684
- exports.AbstractSubscribeOrUnsubscribeToNotificationBoxParams = AbstractSubscribeOrUnsubscribeToNotificationBoxParams;
9685
- exports.AbstractSubscribeToNotificationBoxParams = AbstractSubscribeToNotificationBoxParams;
9686
8814
  exports.AppNotificationTemplateTypeInfoRecordService = AppNotificationTemplateTypeInfoRecordService;
9687
8815
  exports.BASE_MODEL_STORAGE_FILE_PATH = BASE_MODEL_STORAGE_FILE_PATH;
9688
8816
  exports.CALL_MODEL_APP_FUNCTION_KEY = CALL_MODEL_APP_FUNCTION_KEY;
9689
8817
  exports.COPY_USER_RELATED_DATA_ACCESSOR_FACTORY_FUNCTION = COPY_USER_RELATED_DATA_ACCESSOR_FACTORY_FUNCTION;
9690
8818
  exports.CREATE_NOTIFICATION_ID_REQUIRED_ERROR_CODE = CREATE_NOTIFICATION_ID_REQUIRED_ERROR_CODE;
9691
- exports.CleanupSentNotificationsParams = CleanupSentNotificationsParams;
9692
8819
  exports.ContextGrantedModelRolesReaderInstance = ContextGrantedModelRolesReaderInstance;
9693
- exports.CreateNotificationBoxParams = CreateNotificationBoxParams;
9694
- exports.CreateNotificationSummaryParams = CreateNotificationSummaryParams;
9695
- exports.CreateNotificationUserParams = CreateNotificationUserParams;
9696
- exports.CreateStorageFileGroupParams = CreateStorageFileGroupParams;
9697
- exports.CreateStorageFileParams = CreateStorageFileParams;
9698
8820
  exports.DBX_FIREBASE_SERVER_NO_AUTH_ERROR_CODE = DBX_FIREBASE_SERVER_NO_AUTH_ERROR_CODE;
9699
8821
  exports.DBX_FIREBASE_SERVER_NO_UID_ERROR_CODE = DBX_FIREBASE_SERVER_NO_UID_ERROR_CODE;
9700
8822
  exports.DEFAULT_DATE_CELL_RANGE_VALUE = DEFAULT_DATE_CELL_RANGE_VALUE;
@@ -9712,9 +8834,6 @@ exports.DEFAULT_QUERY_CHANGE_WATCHER_DELAY = DEFAULT_QUERY_CHANGE_WATCHER_DELAY;
9712
8834
  exports.DEFAULT_SINGLE_ITEM_FIRESTORE_COLLECTION_DOCUMENT_IDENTIFIER = DEFAULT_SINGLE_ITEM_FIRESTORE_COLLECTION_DOCUMENT_IDENTIFIER;
9713
8835
  exports.DEFAULT_UPLOADED_FILE_TYPE_DETERMINATION_LEVEL = DEFAULT_UPLOADED_FILE_TYPE_DETERMINATION_LEVEL;
9714
8836
  exports.DEFAULT_WEBSITE_LINK = DEFAULT_WEBSITE_LINK;
9715
- exports.DeleteAllQueuedStorageFilesParams = DeleteAllQueuedStorageFilesParams;
9716
- exports.DeleteStorageFileParams = DeleteStorageFileParams;
9717
- exports.DownloadStorageFileParams = DownloadStorageFileParams;
9718
8837
  exports.EMPTY_STORAGE_FILE_PURPOSE_SUBGROUP = EMPTY_STORAGE_FILE_PURPOSE_SUBGROUP;
9719
8838
  exports.EXACT_UPLOADED_FILE_TYPE_DETERMINATION_LEVEL = EXACT_UPLOADED_FILE_TYPE_DETERMINATION_LEVEL;
9720
8839
  exports.FIREBASE_AUTH_NETWORK_REQUEST_ERROR = FIREBASE_AUTH_NETWORK_REQUEST_ERROR;
@@ -9757,18 +8876,6 @@ exports.FirebaseDevelopmentFunctions = FirebaseDevelopmentFunctions;
9757
8876
  exports.FirebaseModelPermissionServiceInstance = FirebaseModelPermissionServiceInstance;
9758
8877
  exports.FirebaseServerError = FirebaseServerError;
9759
8878
  exports.HIGH_UPLOADED_FILE_TYPE_DETERMINATION_LEVEL = HIGH_UPLOADED_FILE_TYPE_DETERMINATION_LEVEL;
9760
- exports.InferredTargetModelIdParams = InferredTargetModelIdParams;
9761
- exports.InferredTargetModelParams = InferredTargetModelParams;
9762
- exports.InitializeAllApplicableNotificationBoxesParams = InitializeAllApplicableNotificationBoxesParams;
9763
- exports.InitializeAllApplicableNotificationSummariesParams = InitializeAllApplicableNotificationSummariesParams;
9764
- exports.InitializeAllApplicableStorageFileGroupsParams = InitializeAllApplicableStorageFileGroupsParams;
9765
- exports.InitializeAllStorageFilesFromUploadsParams = InitializeAllStorageFilesFromUploadsParams;
9766
- exports.InitializeNotificationModelParams = InitializeNotificationModelParams;
9767
- exports.InitializeStorageFileFromUploadParams = InitializeStorageFileFromUploadParams;
9768
- exports.InitializeStorageFileModelParams = InitializeStorageFileModelParams;
9769
- exports.IsFirestoreModelId = IsFirestoreModelId;
9770
- exports.IsFirestoreModelIdOrKey = IsFirestoreModelIdOrKey;
9771
- exports.IsFirestoreModelKey = IsFirestoreModelKey;
9772
8879
  exports.LOW_UPLOADED_FILE_TYPE_DETERMINATION_LEVEL = LOW_UPLOADED_FILE_TYPE_DETERMINATION_LEVEL;
9773
8880
  exports.MAX_FIRESTORE_MAP_ZOOM_LEVEL_VALUE = MAX_FIRESTORE_MAP_ZOOM_LEVEL_VALUE;
9774
8881
  exports.MIN_FIRESTORE_MAP_ZOOM_LEVEL_VALUE = MIN_FIRESTORE_MAP_ZOOM_LEVEL_VALUE;
@@ -9797,21 +8904,13 @@ exports.NOTIFICATION_USER_INVALID_UID_FOR_CREATE_ERROR_CODE = NOTIFICATION_USER_
9797
8904
  exports.NOTIFICATION_USER_LOCKED_CONFIG_FROM_BEING_UPDATED_ERROR_CODE = NOTIFICATION_USER_LOCKED_CONFIG_FROM_BEING_UPDATED_ERROR_CODE;
9798
8905
  exports.NOTIFICATION_WEEK_NOTIFICATION_ITEM_LIMIT = NOTIFICATION_WEEK_NOTIFICATION_ITEM_LIMIT;
9799
8906
  exports.NotificationBoxDocument = NotificationBoxDocument;
9800
- exports.NotificationBoxRecipientTemplateConfigArrayEntryParam = NotificationBoxRecipientTemplateConfigArrayEntryParam;
9801
8907
  exports.NotificationDocument = NotificationDocument;
9802
8908
  exports.NotificationFirestoreCollections = NotificationFirestoreCollections;
9803
8909
  exports.NotificationFunctions = NotificationFunctions;
9804
- exports.NotificationRecipientParams = NotificationRecipientParams;
9805
8910
  exports.NotificationSummaryDocument = NotificationSummaryDocument;
9806
8911
  exports.NotificationUserDocument = NotificationUserDocument;
9807
8912
  exports.NotificationWeekDocument = NotificationWeekDocument;
9808
- exports.ProcessAllQueuedStorageFilesParams = ProcessAllQueuedStorageFilesParams;
9809
- exports.ProcessStorageFileParams = ProcessStorageFileParams;
9810
8913
  exports.RUN_DEV_FUNCTION_APP_FUNCTION_KEY = RUN_DEV_FUNCTION_APP_FUNCTION_KEY;
9811
- exports.RegenerateAllFlaggedStorageFileGroupsContentParams = RegenerateAllFlaggedStorageFileGroupsContentParams;
9812
- exports.RegenerateStorageFileGroupContentParams = RegenerateStorageFileGroupContentParams;
9813
- exports.ResyncAllNotificationUserParams = ResyncAllNotificationUserParams;
9814
- exports.ResyncNotificationUserParams = ResyncNotificationUserParams;
9815
8914
  exports.SCHEDULED_FUNCTION_DEV_FUNCTION_SPECIFIER = SCHEDULED_FUNCTION_DEV_FUNCTION_SPECIFIER;
9816
8915
  exports.STORAGEFILE_RELATED_FILE_METADATA_KEY = STORAGEFILE_RELATED_FILE_METADATA_KEY;
9817
8916
  exports.STORAGE_FILE_ALREADY_PROCESSED_ERROR_CODE = STORAGE_FILE_ALREADY_PROCESSED_ERROR_CODE;
@@ -9833,36 +8932,21 @@ exports.STORAGE_FILE_PROCESSING_NOT_QUEUED_FOR_PROCESSING_ERROR_CODE = STORAGE_F
9833
8932
  exports.STORAGE_FILE_PROCESSING_STUCK_THROTTLE_CHECK_MS = STORAGE_FILE_PROCESSING_STUCK_THROTTLE_CHECK_MS;
9834
8933
  exports.STORAGE_FILE_UPLOAD_USER_ROLE = STORAGE_FILE_UPLOAD_USER_ROLE;
9835
8934
  exports.ScheduledFunctionDevelopmentFirebaseFunctionListEntry = ScheduledFunctionDevelopmentFirebaseFunctionListEntry;
9836
- exports.ScheduledFunctionDevelopmentFirebaseFunctionParams = ScheduledFunctionDevelopmentFirebaseFunctionParams;
9837
- exports.SendNotificationParams = SendNotificationParams;
9838
- exports.SendQueuedNotificationsParams = SendQueuedNotificationsParams;
9839
8935
  exports.StorageFileDocument = StorageFileDocument;
9840
8936
  exports.StorageFileFirestoreCollections = StorageFileFirestoreCollections;
9841
8937
  exports.StorageFileFunctions = StorageFileFunctions;
9842
8938
  exports.StorageFileGroupDocument = StorageFileGroupDocument;
9843
8939
  exports.StorageFileUploadStreamUnsupportedError = StorageFileUploadStreamUnsupportedError;
9844
- exports.SyncAllFlaggedStorageFilesWithGroupsParams = SyncAllFlaggedStorageFilesWithGroupsParams;
9845
- exports.SyncStorageFileWithGroupsParams = SyncStorageFileWithGroupsParams;
9846
8940
  exports.SystemStateDocument = SystemStateDocument;
9847
8941
  exports.SystemStateFirestoreCollections = SystemStateFirestoreCollections;
9848
- exports.TargetModelIdParams = TargetModelIdParams;
9849
- exports.TargetModelParams = TargetModelParams;
9850
8942
  exports.UPLOADED_FILE_DOES_NOT_EXIST_ERROR_CODE = UPLOADED_FILE_DOES_NOT_EXIST_ERROR_CODE;
9851
8943
  exports.UPLOADED_FILE_INITIALIZATION_DISCARDED_ERROR_CODE = UPLOADED_FILE_INITIALIZATION_DISCARDED_ERROR_CODE;
9852
8944
  exports.UPLOADED_FILE_INITIALIZATION_FAILED_ERROR_CODE = UPLOADED_FILE_INITIALIZATION_FAILED_ERROR_CODE;
9853
8945
  exports.UPLOADED_FILE_NOT_ALLOWED_TO_BE_INITIALIZED_ERROR_CODE = UPLOADED_FILE_NOT_ALLOWED_TO_BE_INITIALIZED_ERROR_CODE;
9854
8946
  exports.UPLOADS_FOLDER_PATH = UPLOADS_FOLDER_PATH;
9855
- exports.UpdateNotificationBoxParams = UpdateNotificationBoxParams;
9856
- exports.UpdateNotificationBoxRecipientLikeParams = UpdateNotificationBoxRecipientLikeParams;
9857
- exports.UpdateNotificationBoxRecipientParams = UpdateNotificationBoxRecipientParams;
9858
- exports.UpdateNotificationSummaryParams = UpdateNotificationSummaryParams;
9859
- exports.UpdateNotificationUserDefaultNotificationBoxRecipientConfigParams = UpdateNotificationUserDefaultNotificationBoxRecipientConfigParams;
9860
- exports.UpdateNotificationUserNotificationBoxRecipientParams = UpdateNotificationUserNotificationBoxRecipientParams;
9861
- exports.UpdateNotificationUserParams = UpdateNotificationUserParams;
9862
- exports.UpdateStorageFileGroupEntryParams = UpdateStorageFileGroupEntryParams;
9863
- exports.UpdateStorageFileGroupParams = UpdateStorageFileGroupParams;
9864
- exports.UpdateStorageFileParams = UpdateStorageFileParams;
9865
8947
  exports._createNotificationDocumentFromPair = _createNotificationDocumentFromPair;
8948
+ exports.abstractSubscribeOrUnsubscribeToNotificationBoxParamsType = abstractSubscribeOrUnsubscribeToNotificationBoxParamsType;
8949
+ exports.abstractSubscribeToNotificationBoxParamsType = abstractSubscribeToNotificationBoxParamsType;
9866
8950
  exports.addConstraintToBuilder = addConstraintToBuilder;
9867
8951
  exports.addOrReplaceLimitInConstraints = addOrReplaceLimitInConstraints;
9868
8952
  exports.allChildDocumentsUnderParent = allChildDocumentsUnderParent;
@@ -9891,6 +8975,7 @@ exports.canQueueStorageFileForProcessing = canQueueStorageFileForProcessing;
9891
8975
  exports.childFirestoreModelKey = childFirestoreModelKey;
9892
8976
  exports.childFirestoreModelKeyPath = childFirestoreModelKeyPath;
9893
8977
  exports.childFirestoreModelKeys = childFirestoreModelKeys;
8978
+ exports.cleanupSentNotificationsParamsType = cleanupSentNotificationsParamsType;
9894
8979
  exports.clientFirebaseFirestoreContextFactory = clientFirebaseFirestoreContextFactory;
9895
8980
  exports.clientFirebaseStorageContextFactory = clientFirebaseStorageContextFactory;
9896
8981
  exports.combineUploadFileTypeDeterminers = combineUploadFileTypeDeterminers;
@@ -9904,16 +8989,23 @@ exports.copyDocumentIdToFieldModifierFunction = copyDocumentIdToFieldModifierFun
9904
8989
  exports.copyStoragePath = copyStoragePath;
9905
8990
  exports.copyUserRelatedDataAccessorFactoryFunction = copyUserRelatedDataAccessorFactoryFunction;
9906
8991
  exports.copyUserRelatedDataModifierConfig = copyUserRelatedDataModifierConfig;
8992
+ exports.createNotificationBoxParamsType = createNotificationBoxParamsType;
9907
8993
  exports.createNotificationDocument = createNotificationDocument;
9908
8994
  exports.createNotificationDocumentIfSending = createNotificationDocumentIfSending;
9909
8995
  exports.createNotificationDocumentPair = createNotificationDocumentPair;
8996
+ exports.createNotificationSummaryParamsType = createNotificationSummaryParamsType;
9910
8997
  exports.createNotificationTaskTemplate = createNotificationTaskTemplate;
9911
8998
  exports.createNotificationTemplate = createNotificationTemplate;
8999
+ exports.createNotificationUserParamsType = createNotificationUserParamsType;
9912
9000
  exports.createStorageFileDocumentPair = createStorageFileDocumentPair;
9913
9001
  exports.createStorageFileDocumentPairFactory = createStorageFileDocumentPairFactory;
9002
+ exports.createStorageFileGroupParamsType = createStorageFileGroupParamsType;
9003
+ exports.createStorageFileParamsType = createStorageFileParamsType;
9914
9004
  exports.dataFromDocumentSnapshots = dataFromDocumentSnapshots;
9915
9005
  exports.dataFromSnapshotStream = dataFromSnapshotStream;
9916
9006
  exports.delayCompletion = delayCompletion;
9007
+ exports.deleteAllQueuedStorageFilesParamsType = deleteAllQueuedStorageFilesParamsType;
9008
+ exports.deleteStorageFileParamsType = deleteStorageFileParamsType;
9917
9009
  exports.determineByFileName = determineByFileName;
9918
9010
  exports.determineByFilePath = determineByFilePath;
9919
9011
  exports.determineByFolderName = determineByFolderName;
@@ -9928,6 +9020,7 @@ exports.documentDataWithIdAndKey = documentDataWithIdAndKey;
9928
9020
  exports.documentReferenceFromDocument = documentReferenceFromDocument;
9929
9021
  exports.documentReferencesFromDocuments = documentReferencesFromDocuments;
9930
9022
  exports.documentReferencesFromSnapshot = documentReferencesFromSnapshot;
9023
+ exports.downloadStorageFileParamsType = downloadStorageFileParamsType;
9931
9024
  exports.effectiveNotificationBoxRecipientConfig = effectiveNotificationBoxRecipientConfig;
9932
9025
  exports.effectiveNotificationBoxRecipientTemplateConfig = effectiveNotificationBoxRecipientTemplateConfig;
9933
9026
  exports.endAt = endAt;
@@ -10009,7 +9102,9 @@ exports.firestoreModelIdFromDocument = firestoreModelIdFromDocument;
10009
9102
  exports.firestoreModelIdFromEmail = firestoreModelIdFromEmail;
10010
9103
  exports.firestoreModelIdGrantedRoleArrayMap = firestoreModelIdGrantedRoleArrayMap;
10011
9104
  exports.firestoreModelIdGrantedRoleMap = firestoreModelIdGrantedRoleMap;
9105
+ exports.firestoreModelIdOrKeyType = firestoreModelIdOrKeyType;
10012
9106
  exports.firestoreModelIdString = firestoreModelIdString;
9107
+ exports.firestoreModelIdType = firestoreModelIdType;
10013
9108
  exports.firestoreModelIdentity = firestoreModelIdentity;
10014
9109
  exports.firestoreModelIdentityTypeMap = firestoreModelIdentityTypeMap;
10015
9110
  exports.firestoreModelIdsFromDocuments = firestoreModelIdsFromDocuments;
@@ -10035,6 +9130,7 @@ exports.firestoreModelKeyPartPairsKeyPath = firestoreModelKeyPartPairsKeyPath;
10035
9130
  exports.firestoreModelKeyPartPairsPaths = firestoreModelKeyPartPairsPaths;
10036
9131
  exports.firestoreModelKeyPath = firestoreModelKeyPath;
10037
9132
  exports.firestoreModelKeyString = firestoreModelKeyString;
9133
+ exports.firestoreModelKeyType = firestoreModelKeyType;
10038
9134
  exports.firestoreModelKeyTypePair = firestoreModelKeyTypePair;
10039
9135
  exports.firestoreModelKeys = firestoreModelKeys;
10040
9136
  exports.firestoreModelKeysFromDocuments = firestoreModelKeysFromDocuments;
@@ -10099,6 +9195,15 @@ exports.incrementUpdateWithAccessorFunction = incrementUpdateWithAccessorFunctio
10099
9195
  exports.inferKeyFromTwoWayFlatFirestoreModelKey = inferKeyFromTwoWayFlatFirestoreModelKey;
10100
9196
  exports.inferNotificationBoxRelatedModelKey = inferNotificationBoxRelatedModelKey;
10101
9197
  exports.inferStorageFileGroupRelatedModelKey = inferStorageFileGroupRelatedModelKey;
9198
+ exports.inferredTargetModelIdParamsType = inferredTargetModelIdParamsType;
9199
+ exports.inferredTargetModelParamsType = inferredTargetModelParamsType;
9200
+ exports.initializeAllApplicableNotificationBoxesParamsType = initializeAllApplicableNotificationBoxesParamsType;
9201
+ exports.initializeAllApplicableNotificationSummariesParamsType = initializeAllApplicableNotificationSummariesParamsType;
9202
+ exports.initializeAllApplicableStorageFileGroupsParamsType = initializeAllApplicableStorageFileGroupsParamsType;
9203
+ exports.initializeAllStorageFilesFromUploadsParamsType = initializeAllStorageFilesFromUploadsParamsType;
9204
+ exports.initializeNotificationModelParamsType = initializeNotificationModelParamsType;
9205
+ exports.initializeStorageFileFromUploadParamsType = initializeStorageFileFromUploadParamsType;
9206
+ exports.initializeStorageFileModelParamsType = initializeStorageFileModelParamsType;
10102
9207
  exports.interceptAccessorFactoryFunction = interceptAccessorFactoryFunction;
10103
9208
  exports.isAdminInFirebaseModelContext = isAdminInFirebaseModelContext;
10104
9209
  exports.isClientFirebaseError = isClientFirebaseError;
@@ -10167,6 +9272,7 @@ exports.notificationBoxFirestoreCollection = notificationBoxFirestoreCollection;
10167
9272
  exports.notificationBoxIdForModel = notificationBoxIdForModel;
10168
9273
  exports.notificationBoxIdentity = notificationBoxIdentity;
10169
9274
  exports.notificationBoxModelCrudFunctionsConfig = notificationBoxModelCrudFunctionsConfig;
9275
+ exports.notificationBoxRecipientTemplateConfigArrayEntryParamType = notificationBoxRecipientTemplateConfigArrayEntryParamType;
10170
9276
  exports.notificationBoxRecipientTemplateConfigArrayToRecord = notificationBoxRecipientTemplateConfigArrayToRecord;
10171
9277
  exports.notificationBoxRecipientTemplateConfigRecordToArray = notificationBoxRecipientTemplateConfigRecordToArray;
10172
9278
  exports.notificationBoxesFlaggedForNeedsInitializationQuery = notificationBoxesFlaggedForNeedsInitializationQuery;
@@ -10180,6 +9286,7 @@ exports.notificationFunctionMap = notificationFunctionMap;
10180
9286
  exports.notificationFunctionTypeConfigMap = notificationFunctionTypeConfigMap;
10181
9287
  exports.notificationIdentity = notificationIdentity;
10182
9288
  exports.notificationMessageFunction = notificationMessageFunction;
9289
+ exports.notificationRecipientParamsType = notificationRecipientParamsType;
10183
9290
  exports.notificationSendExclusionCanSendFunction = notificationSendExclusionCanSendFunction;
10184
9291
  exports.notificationSendFlagsImplyIsComplete = notificationSendFlagsImplyIsComplete;
10185
9292
  exports.notificationSubtaskComplete = notificationSubtaskComplete;
@@ -10234,10 +9341,19 @@ exports.optionalFirestoreUnitedStatesAddress = optionalFirestoreUnitedStatesAddr
10234
9341
  exports.optionalFirestoreUnixDateTimeSecondsNumber = optionalFirestoreUnixDateTimeSecondsNumber;
10235
9342
  exports.orderBy = orderBy;
10236
9343
  exports.orderByDocumentId = orderByDocumentId;
9344
+ exports.processAllQueuedStorageFilesParamsType = processAllQueuedStorageFilesParamsType;
9345
+ exports.processStorageFileParamsType = processStorageFileParamsType;
10237
9346
  exports.readFirestoreModelKey = readFirestoreModelKey;
10238
9347
  exports.readFirestoreModelKeyFromDocumentSnapshot = readFirestoreModelKeyFromDocumentSnapshot;
9348
+ exports.regenerateAllFlaggedStorageFileGroupsContentParamsType = regenerateAllFlaggedStorageFileGroupsContentParamsType;
9349
+ exports.regenerateStorageFileGroupContentParamsType = regenerateStorageFileGroupContentParamsType;
10239
9350
  exports.replaceConstraints = replaceConstraints;
9351
+ exports.resyncAllNotificationUserParamsType = resyncAllNotificationUserParamsType;
9352
+ exports.resyncNotificationUserParamsType = resyncNotificationUserParamsType;
9353
+ exports.scheduledFunctionDevelopmentFirebaseFunctionParamsType = scheduledFunctionDevelopmentFirebaseFunctionParamsType;
10240
9354
  exports.selectFromFirebaseModelsService = selectFromFirebaseModelsService;
9355
+ exports.sendNotificationParamsType = sendNotificationParamsType;
9356
+ exports.sendQueuedNotificationsParamsType = sendQueuedNotificationsParamsType;
10241
9357
  exports.separateConstraints = separateConstraints;
10242
9358
  exports.setIdAndKeyFromKeyIdRefOnDocumentData = setIdAndKeyFromKeyIdRefOnDocumentData;
10243
9359
  exports.setIdAndKeyFromSnapshotOnDocumentData = setIdAndKeyFromSnapshotOnDocumentData;
@@ -10285,19 +9401,33 @@ exports.streamDocumentSnapshotDataPairs = streamDocumentSnapshotDataPairs;
10285
9401
  exports.streamDocumentSnapshotDataPairsWithData = streamDocumentSnapshotDataPairsWithData;
10286
9402
  exports.streamDocumentSnapshotsData = streamDocumentSnapshotsData;
10287
9403
  exports.streamFromOnSnapshot = streamFromOnSnapshot;
9404
+ exports.syncAllFlaggedStorageFilesWithGroupsParamsType = syncAllFlaggedStorageFilesWithGroupsParamsType;
9405
+ exports.syncStorageFileWithGroupsParamsType = syncStorageFileWithGroupsParamsType;
10288
9406
  exports.systemStateCollectionReference = systemStateCollectionReference;
10289
9407
  exports.systemStateConverter = systemStateConverter;
10290
9408
  exports.systemStateFirestoreCollection = systemStateFirestoreCollection;
10291
9409
  exports.systemStateIdentity = systemStateIdentity;
9410
+ exports.targetModelIdParamsType = targetModelIdParamsType;
9411
+ exports.targetModelParamsType = targetModelParamsType;
10292
9412
  exports.twoWayFlatFirestoreModelKey = twoWayFlatFirestoreModelKey;
10293
9413
  exports.unreadNotificationItems = unreadNotificationItems;
10294
9414
  exports.unsupportedFirestoreDriverFunctionError = unsupportedFirestoreDriverFunctionError;
9415
+ exports.updateNotificationBoxParamsType = updateNotificationBoxParamsType;
9416
+ exports.updateNotificationBoxRecipientLikeParamsType = updateNotificationBoxRecipientLikeParamsType;
9417
+ exports.updateNotificationBoxRecipientParamsType = updateNotificationBoxRecipientParamsType;
10295
9418
  exports.updateNotificationBoxRecipientTemplateConfigRecord = updateNotificationBoxRecipientTemplateConfigRecord;
10296
9419
  exports.updateNotificationRecipient = updateNotificationRecipient;
9420
+ exports.updateNotificationSummaryParamsType = updateNotificationSummaryParamsType;
10297
9421
  exports.updateNotificationUserDefaultNotificationBoxRecipientConfig = updateNotificationUserDefaultNotificationBoxRecipientConfig;
9422
+ exports.updateNotificationUserDefaultNotificationBoxRecipientConfigParamsType = updateNotificationUserDefaultNotificationBoxRecipientConfigParamsType;
10298
9423
  exports.updateNotificationUserNotificationBoxRecipientConfigIfChanged = updateNotificationUserNotificationBoxRecipientConfigIfChanged;
10299
9424
  exports.updateNotificationUserNotificationBoxRecipientConfigs = updateNotificationUserNotificationBoxRecipientConfigs;
9425
+ exports.updateNotificationUserNotificationBoxRecipientParamsType = updateNotificationUserNotificationBoxRecipientParamsType;
10300
9426
  exports.updateNotificationUserNotificationSendExclusions = updateNotificationUserNotificationSendExclusions;
9427
+ exports.updateNotificationUserParamsType = updateNotificationUserParamsType;
9428
+ exports.updateStorageFileGroupEntryParamsType = updateStorageFileGroupEntryParamsType;
9429
+ exports.updateStorageFileGroupParamsType = updateStorageFileGroupParamsType;
9430
+ exports.updateStorageFileParamsType = updateStorageFileParamsType;
10301
9431
  exports.updateWithAccessorUpdateAndConverterFunction = updateWithAccessorUpdateAndConverterFunction;
10302
9432
  exports.uploadFileWithStream = uploadFileWithStream;
10303
9433
  exports.useContextAuth = useContextAuth;