@dereekb/firebase 13.31.0 → 13.32.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/eslint/package.json +3 -3
- package/index.cjs.js +968 -311
- package/index.esm.js +942 -314
- package/package.json +5 -5
- package/src/lib/model/notification/index.d.ts +2 -0
- package/src/lib/model/notification/notification.api.d.ts +102 -0
- package/src/lib/model/notification/notification.api.error.d.ts +15 -0
- package/src/lib/model/notification/notification.d.ts +11 -0
- package/src/lib/model/notification/notification.healthcheck.d.ts +616 -0
- package/src/lib/model/notification/notification.healthcheck.mailgun.d.ts +57 -0
- package/test/package.json +6 -6
package/index.cjs.js
CHANGED
|
@@ -65,7 +65,7 @@ function _create_class$b(Constructor, protoProps, staticProps) {
|
|
|
65
65
|
if (protoProps) _defineProperties$b(Constructor.prototype, protoProps);
|
|
66
66
|
return Constructor;
|
|
67
67
|
}
|
|
68
|
-
function _define_property$
|
|
68
|
+
function _define_property$z(obj, key, value) {
|
|
69
69
|
if (key in obj) {
|
|
70
70
|
Object.defineProperty(obj, key, {
|
|
71
71
|
value: value,
|
|
@@ -91,7 +91,7 @@ function _define_property$y(obj, key, value) {
|
|
|
91
91
|
*/ var AbstractFirestoreDocumentDataAccessorWrapper = /*#__PURE__*/ function() {
|
|
92
92
|
function AbstractFirestoreDocumentDataAccessorWrapper(accessor) {
|
|
93
93
|
_class_call_check$j(this, AbstractFirestoreDocumentDataAccessorWrapper);
|
|
94
|
-
_define_property$
|
|
94
|
+
_define_property$z(this, "_accessor", void 0);
|
|
95
95
|
this._accessor = accessor;
|
|
96
96
|
}
|
|
97
97
|
_create_class$b(AbstractFirestoreDocumentDataAccessorWrapper, [
|
|
@@ -264,7 +264,7 @@ function _class_call_check$i(instance, Constructor) {
|
|
|
264
264
|
throw new TypeError("Cannot call a class as a function");
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
|
-
function _define_property$
|
|
267
|
+
function _define_property$y(obj, key, value) {
|
|
268
268
|
if (key in obj) {
|
|
269
269
|
Object.defineProperty(obj, key, {
|
|
270
270
|
value: value,
|
|
@@ -312,7 +312,7 @@ function _inherits$9(subClass, superClass) {
|
|
|
312
312
|
});
|
|
313
313
|
if (superClass) _set_prototype_of$9(subClass, superClass);
|
|
314
314
|
}
|
|
315
|
-
function _object_spread$
|
|
315
|
+
function _object_spread$r(target) {
|
|
316
316
|
for(var i = 1; i < arguments.length; i++){
|
|
317
317
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
318
318
|
var ownKeys = Object.keys(source);
|
|
@@ -322,7 +322,7 @@ function _object_spread$q(target) {
|
|
|
322
322
|
}));
|
|
323
323
|
}
|
|
324
324
|
ownKeys.forEach(function(key) {
|
|
325
|
-
_define_property$
|
|
325
|
+
_define_property$y(target, key, source[key]);
|
|
326
326
|
});
|
|
327
327
|
}
|
|
328
328
|
return target;
|
|
@@ -375,13 +375,13 @@ function _is_native_reflect_construct$9() {
|
|
|
375
375
|
var _this;
|
|
376
376
|
_this = _call_super$9(this, ModifyBeforeSetFirestoreDocumentDataAccessorWrapper, [
|
|
377
377
|
accessor
|
|
378
|
-
]), _define_property$
|
|
378
|
+
]), _define_property$y(_this, "config", void 0), _define_property$y(_this, "modifier", void 0), _define_property$y(_this, "set", void 0);
|
|
379
379
|
_this.config = config;
|
|
380
380
|
var when = config.when;
|
|
381
381
|
_this.modifier = util.mergeModifiers(util.asArray(config.modifier));
|
|
382
382
|
var setFn;
|
|
383
383
|
var modifyData = function modifyData(data, options) {
|
|
384
|
-
var copy = _object_spread$
|
|
384
|
+
var copy = _object_spread$r({}, data);
|
|
385
385
|
var input = {
|
|
386
386
|
data: copy,
|
|
387
387
|
documentRef: _this.documentRef,
|
|
@@ -1254,7 +1254,7 @@ function _create_class$a(Constructor, protoProps, staticProps) {
|
|
|
1254
1254
|
if (protoProps) _defineProperties$a(Constructor.prototype, protoProps);
|
|
1255
1255
|
return Constructor;
|
|
1256
1256
|
}
|
|
1257
|
-
function _define_property$
|
|
1257
|
+
function _define_property$x(obj, key, value) {
|
|
1258
1258
|
if (key in obj) {
|
|
1259
1259
|
Object.defineProperty(obj, key, {
|
|
1260
1260
|
value: value,
|
|
@@ -1329,13 +1329,13 @@ function _is_native_reflect_construct$8() {
|
|
|
1329
1329
|
function AbstractFirestoreDocument(accessor, documentAccessor) {
|
|
1330
1330
|
var _this = this;
|
|
1331
1331
|
_class_call_check$h(this, AbstractFirestoreDocument);
|
|
1332
|
-
_define_property$
|
|
1333
|
-
_define_property$
|
|
1334
|
-
_define_property$
|
|
1335
|
-
_define_property$
|
|
1332
|
+
_define_property$x(this, "_accessor", void 0);
|
|
1333
|
+
_define_property$x(this, "_documentAccessor", void 0);
|
|
1334
|
+
_define_property$x(this, "_cache", void 0);
|
|
1335
|
+
_define_property$x(this, "stream$", rxjs.lazyFrom(function() {
|
|
1336
1336
|
return _this._accessor.stream();
|
|
1337
1337
|
}));
|
|
1338
|
-
_define_property$
|
|
1338
|
+
_define_property$x(this, "data$", rxjs.lazyFrom(function() {
|
|
1339
1339
|
return dataFromSnapshotStream(_this.stream$);
|
|
1340
1340
|
}));
|
|
1341
1341
|
this._accessor = accessor;
|
|
@@ -1748,7 +1748,7 @@ var AbstractFirestoreDocumentWithParent = /*#__PURE__*/ function(AbstractFiresto
|
|
|
1748
1748
|
x.loadDocumentForWriteBatch = singleAccessor.loadDocumentForWriteBatch;
|
|
1749
1749
|
}
|
|
1750
1750
|
|
|
1751
|
-
function _array_like_to_array$
|
|
1751
|
+
function _array_like_to_array$i(arr, len) {
|
|
1752
1752
|
if (len == null || len > arr.length) len = arr.length;
|
|
1753
1753
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
1754
1754
|
return arr2;
|
|
@@ -1813,15 +1813,15 @@ function _non_iterable_rest$5() {
|
|
|
1813
1813
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1814
1814
|
}
|
|
1815
1815
|
function _sliced_to_array$5(arr, i) {
|
|
1816
|
-
return _array_with_holes$5(arr) || _iterable_to_array_limit$5(arr, i) || _unsupported_iterable_to_array$
|
|
1816
|
+
return _array_with_holes$5(arr) || _iterable_to_array_limit$5(arr, i) || _unsupported_iterable_to_array$i(arr, i) || _non_iterable_rest$5();
|
|
1817
1817
|
}
|
|
1818
|
-
function _unsupported_iterable_to_array$
|
|
1818
|
+
function _unsupported_iterable_to_array$i(o, minLen) {
|
|
1819
1819
|
if (!o) return;
|
|
1820
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
1820
|
+
if (typeof o === "string") return _array_like_to_array$i(o, minLen);
|
|
1821
1821
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1822
1822
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1823
1823
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
1824
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
1824
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$i(o, minLen);
|
|
1825
1825
|
}
|
|
1826
1826
|
function _ts_generator$k(thisArg, body) {
|
|
1827
1827
|
var f, y, t, _ = {
|
|
@@ -3860,7 +3860,7 @@ function _ts_generator$i(thisArg, body) {
|
|
|
3860
3860
|
return path;
|
|
3861
3861
|
}
|
|
3862
3862
|
|
|
3863
|
-
function _define_property$
|
|
3863
|
+
function _define_property$w(obj, key, value) {
|
|
3864
3864
|
if (key in obj) {
|
|
3865
3865
|
Object.defineProperty(obj, key, {
|
|
3866
3866
|
value: value,
|
|
@@ -3873,7 +3873,7 @@ function _define_property$v(obj, key, value) {
|
|
|
3873
3873
|
}
|
|
3874
3874
|
return obj;
|
|
3875
3875
|
}
|
|
3876
|
-
function _object_spread$
|
|
3876
|
+
function _object_spread$q(target) {
|
|
3877
3877
|
for(var i = 1; i < arguments.length; i++){
|
|
3878
3878
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3879
3879
|
var ownKeys = Object.keys(source);
|
|
@@ -3883,12 +3883,12 @@ function _object_spread$p(target) {
|
|
|
3883
3883
|
}));
|
|
3884
3884
|
}
|
|
3885
3885
|
ownKeys.forEach(function(key) {
|
|
3886
|
-
_define_property$
|
|
3886
|
+
_define_property$w(target, key, source[key]);
|
|
3887
3887
|
});
|
|
3888
3888
|
}
|
|
3889
3889
|
return target;
|
|
3890
3890
|
}
|
|
3891
|
-
function ownKeys$
|
|
3891
|
+
function ownKeys$m(object, enumerableOnly) {
|
|
3892
3892
|
var keys = Object.keys(object);
|
|
3893
3893
|
if (Object.getOwnPropertySymbols) {
|
|
3894
3894
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -3896,12 +3896,12 @@ function ownKeys$l(object, enumerableOnly) {
|
|
|
3896
3896
|
}
|
|
3897
3897
|
return keys;
|
|
3898
3898
|
}
|
|
3899
|
-
function _object_spread_props$
|
|
3899
|
+
function _object_spread_props$m(target, source) {
|
|
3900
3900
|
source = source != null ? source : {};
|
|
3901
3901
|
if (Object.getOwnPropertyDescriptors) {
|
|
3902
3902
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
3903
3903
|
} else {
|
|
3904
|
-
ownKeys$
|
|
3904
|
+
ownKeys$m(Object(source)).forEach(function(key) {
|
|
3905
3905
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
3906
3906
|
});
|
|
3907
3907
|
}
|
|
@@ -3987,7 +3987,7 @@ function _object_spread_props$l(target, source) {
|
|
|
3987
3987
|
}
|
|
3988
3988
|
// If specific fields are specified for merging, only include those fields
|
|
3989
3989
|
if (mergeFields) {
|
|
3990
|
-
toOptions = _object_spread_props$
|
|
3990
|
+
toOptions = _object_spread_props$m(_object_spread$q({}, toOptions), {
|
|
3991
3991
|
fields: asTopLevelFieldPaths(mergeFields)
|
|
3992
3992
|
});
|
|
3993
3993
|
}
|
|
@@ -4034,7 +4034,7 @@ function _object_spread_props$l(target, source) {
|
|
|
4034
4034
|
* Using null is consistent with Firestore's approach to empty/unset values.
|
|
4035
4035
|
*/ var FIRESTORE_EMPTY_VALUE = null;
|
|
4036
4036
|
|
|
4037
|
-
function _define_property$
|
|
4037
|
+
function _define_property$v(obj, key, value) {
|
|
4038
4038
|
if (key in obj) {
|
|
4039
4039
|
Object.defineProperty(obj, key, {
|
|
4040
4040
|
value: value,
|
|
@@ -4047,7 +4047,7 @@ function _define_property$u(obj, key, value) {
|
|
|
4047
4047
|
}
|
|
4048
4048
|
return obj;
|
|
4049
4049
|
}
|
|
4050
|
-
function _object_spread$
|
|
4050
|
+
function _object_spread$p(target) {
|
|
4051
4051
|
for(var i = 1; i < arguments.length; i++){
|
|
4052
4052
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
4053
4053
|
var ownKeys = Object.keys(source);
|
|
@@ -4057,12 +4057,12 @@ function _object_spread$o(target) {
|
|
|
4057
4057
|
}));
|
|
4058
4058
|
}
|
|
4059
4059
|
ownKeys.forEach(function(key) {
|
|
4060
|
-
_define_property$
|
|
4060
|
+
_define_property$v(target, key, source[key]);
|
|
4061
4061
|
});
|
|
4062
4062
|
}
|
|
4063
4063
|
return target;
|
|
4064
4064
|
}
|
|
4065
|
-
function ownKeys$
|
|
4065
|
+
function ownKeys$l(object, enumerableOnly) {
|
|
4066
4066
|
var keys = Object.keys(object);
|
|
4067
4067
|
if (Object.getOwnPropertySymbols) {
|
|
4068
4068
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -4070,12 +4070,12 @@ function ownKeys$k(object, enumerableOnly) {
|
|
|
4070
4070
|
}
|
|
4071
4071
|
return keys;
|
|
4072
4072
|
}
|
|
4073
|
-
function _object_spread_props$
|
|
4073
|
+
function _object_spread_props$l(target, source) {
|
|
4074
4074
|
source = source != null ? source : {};
|
|
4075
4075
|
if (Object.getOwnPropertyDescriptors) {
|
|
4076
4076
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
4077
4077
|
} else {
|
|
4078
|
-
ownKeys$
|
|
4078
|
+
ownKeys$l(Object(source)).forEach(function(key) {
|
|
4079
4079
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
4080
4080
|
});
|
|
4081
4081
|
}
|
|
@@ -4275,7 +4275,7 @@ function optionalFirestoreField(config) {
|
|
|
4275
4275
|
*/ function firestoreString(config) {
|
|
4276
4276
|
var transform = util.transformStringFunctionConfig(config === null || config === void 0 ? void 0 : config.transform);
|
|
4277
4277
|
var transformData = transform ? util.transformStringFunction(transform) : util.passThrough;
|
|
4278
|
-
return firestoreField(_object_spread_props$
|
|
4278
|
+
return firestoreField(_object_spread_props$l(_object_spread$p({
|
|
4279
4279
|
default: DEFAULT_FIRESTORE_STRING_FIELD_VALUE
|
|
4280
4280
|
}, config), {
|
|
4281
4281
|
fromData: transformData,
|
|
@@ -4306,7 +4306,7 @@ function optionalFirestoreField(config) {
|
|
|
4306
4306
|
*/ function optionalFirestoreString(config) {
|
|
4307
4307
|
var transform = util.transformStringFunctionConfig(config === null || config === void 0 ? void 0 : config.transform);
|
|
4308
4308
|
var transformData = transform ? util.transformStringFunction(transform) : util.passThrough;
|
|
4309
|
-
return optionalFirestoreField(_object_spread_props$
|
|
4309
|
+
return optionalFirestoreField(_object_spread_props$l(_object_spread$p({}, config), {
|
|
4310
4310
|
transformData: transformData
|
|
4311
4311
|
}));
|
|
4312
4312
|
}
|
|
@@ -4331,7 +4331,7 @@ function optionalFirestoreField(config) {
|
|
|
4331
4331
|
*
|
|
4332
4332
|
* @__NO_SIDE_EFFECTS__
|
|
4333
4333
|
*/ function firestoreEnum(config) {
|
|
4334
|
-
return firestoreField(_object_spread_props$
|
|
4334
|
+
return firestoreField(_object_spread_props$l(_object_spread$p({}, config), {
|
|
4335
4335
|
fromData: util.passThrough,
|
|
4336
4336
|
toData: util.passThrough
|
|
4337
4337
|
}));
|
|
@@ -4485,7 +4485,7 @@ function optionalFirestoreField(config) {
|
|
|
4485
4485
|
return date.isSameDate(x, comparisonDate);
|
|
4486
4486
|
};
|
|
4487
4487
|
}
|
|
4488
|
-
return optionalFirestoreField(_object_spread_props$
|
|
4488
|
+
return optionalFirestoreField(_object_spread_props$l(_object_spread$p({}, config), {
|
|
4489
4489
|
dontStoreValueIf: dontStoreValueIf,
|
|
4490
4490
|
transformFromData: date.toJsDate,
|
|
4491
4491
|
transformToData: date.toISODateString
|
|
@@ -4540,7 +4540,7 @@ function optionalFirestoreField(config) {
|
|
|
4540
4540
|
return date.isSameDate(x, comparisonDate);
|
|
4541
4541
|
};
|
|
4542
4542
|
}
|
|
4543
|
-
return optionalFirestoreField(_object_spread_props$
|
|
4543
|
+
return optionalFirestoreField(_object_spread_props$l(_object_spread$p({}, config), {
|
|
4544
4544
|
dontStoreValueIf: dontStoreValueIf,
|
|
4545
4545
|
transformFromData: toDate,
|
|
4546
4546
|
transformToData: fromDate
|
|
@@ -4554,7 +4554,7 @@ function optionalFirestoreField(config) {
|
|
|
4554
4554
|
*
|
|
4555
4555
|
* @__NO_SIDE_EFFECTS__
|
|
4556
4556
|
*/ function firestoreUnixDateTimeSecondsNumber(config) {
|
|
4557
|
-
return firestoreDateNumber(_object_spread_props$
|
|
4557
|
+
return firestoreDateNumber(_object_spread_props$l(_object_spread$p({}, config), {
|
|
4558
4558
|
fromDate: util.unixDateTimeSecondsNumberFromDate,
|
|
4559
4559
|
toDate: util.dateFromDateOrTimeSecondsNumber
|
|
4560
4560
|
}));
|
|
@@ -4567,7 +4567,7 @@ function optionalFirestoreField(config) {
|
|
|
4567
4567
|
*
|
|
4568
4568
|
* @__NO_SIDE_EFFECTS__
|
|
4569
4569
|
*/ function optionalFirestoreUnixDateTimeSecondsNumber(config) {
|
|
4570
|
-
return optionalFirestoreDateNumber(_object_spread_props$
|
|
4570
|
+
return optionalFirestoreDateNumber(_object_spread_props$l(_object_spread$p({}, config), {
|
|
4571
4571
|
fromDate: util.unixDateTimeSecondsNumberFromDate,
|
|
4572
4572
|
toDate: util.dateFromDateOrTimeSecondsNumber
|
|
4573
4573
|
}));
|
|
@@ -4647,7 +4647,7 @@ function optionalFirestoreField(config) {
|
|
|
4647
4647
|
transform: config === null || config === void 0 ? void 0 : config.transform
|
|
4648
4648
|
} : config === null || config === void 0 ? void 0 : config.transform : undefined;
|
|
4649
4649
|
var transformData = transform ? util.transformNumberFunction(transform) : util.passThrough;
|
|
4650
|
-
return firestoreField(_object_spread_props$
|
|
4650
|
+
return firestoreField(_object_spread_props$l(_object_spread$p({}, config), {
|
|
4651
4651
|
defaultBeforeSave: ((_config_defaultBeforeSave = config.defaultBeforeSave) !== null && _config_defaultBeforeSave !== void 0 ? _config_defaultBeforeSave : config.saveDefault) ? config.default : undefined,
|
|
4652
4652
|
fromData: transformData,
|
|
4653
4653
|
toData: transformData
|
|
@@ -4672,7 +4672,7 @@ function optionalFirestoreField(config) {
|
|
|
4672
4672
|
transform: config === null || config === void 0 ? void 0 : config.transform
|
|
4673
4673
|
} : config === null || config === void 0 ? void 0 : config.transform : undefined;
|
|
4674
4674
|
var transformData = transform ? util.transformNumberFunction(transform) : util.passThrough;
|
|
4675
|
-
return optionalFirestoreField(_object_spread_props$
|
|
4675
|
+
return optionalFirestoreField(_object_spread_props$l(_object_spread$p({}, config), {
|
|
4676
4676
|
transformData: transformData
|
|
4677
4677
|
}));
|
|
4678
4678
|
}
|
|
@@ -4767,7 +4767,7 @@ function optionalFirestoreField(config) {
|
|
|
4767
4767
|
inputTransformData,
|
|
4768
4768
|
sortArrayFn
|
|
4769
4769
|
]);
|
|
4770
|
-
return optionalFirestoreField(_object_spread_props$
|
|
4770
|
+
return optionalFirestoreField(_object_spread_props$l(_object_spread$p({}, config), {
|
|
4771
4771
|
dontStoreIf: dontStoreIf,
|
|
4772
4772
|
transformData: transformData
|
|
4773
4773
|
}));
|
|
@@ -4811,7 +4811,7 @@ function optionalFirestoreField(config) {
|
|
|
4811
4811
|
*
|
|
4812
4812
|
* @__NO_SIDE_EFFECTS__
|
|
4813
4813
|
*/ function firestoreUniqueKeyedArray(config) {
|
|
4814
|
-
return firestoreUniqueArray(_object_spread_props$
|
|
4814
|
+
return firestoreUniqueArray(_object_spread_props$l(_object_spread$p({}, config), {
|
|
4815
4815
|
filterUnique: util.filterUniqueFunction(config.readKey)
|
|
4816
4816
|
}));
|
|
4817
4817
|
}
|
|
@@ -4829,7 +4829,7 @@ function optionalFirestoreField(config) {
|
|
|
4829
4829
|
* @__NO_SIDE_EFFECTS__
|
|
4830
4830
|
*/ function firestoreEnumArray() {
|
|
4831
4831
|
var config = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4832
|
-
return firestoreUniqueArray(_object_spread_props$
|
|
4832
|
+
return firestoreUniqueArray(_object_spread_props$l(_object_spread$p({}, config), {
|
|
4833
4833
|
filterUnique: util.unique
|
|
4834
4834
|
}));
|
|
4835
4835
|
}
|
|
@@ -4844,7 +4844,7 @@ function optionalFirestoreField(config) {
|
|
|
4844
4844
|
* @__NO_SIDE_EFFECTS__
|
|
4845
4845
|
*/ function firestoreUniqueStringArray(config) {
|
|
4846
4846
|
var filterUnique = config == null ? util.unique : util.filterUniqueTransform(config);
|
|
4847
|
-
return firestoreUniqueArray(_object_spread_props$
|
|
4847
|
+
return firestoreUniqueArray(_object_spread_props$l(_object_spread$p({}, config), {
|
|
4848
4848
|
filterUnique: filterUnique
|
|
4849
4849
|
}));
|
|
4850
4850
|
}
|
|
@@ -4880,7 +4880,7 @@ function optionalFirestoreField(config) {
|
|
|
4880
4880
|
* @__NO_SIDE_EFFECTS__
|
|
4881
4881
|
*/ // eslint-disable-next-line sonarjs/no-identical-functions -- exposes a distinct typed alias for number arrays
|
|
4882
4882
|
function firestoreUniqueNumberArray(config) {
|
|
4883
|
-
return firestoreUniqueArray(_object_spread_props$
|
|
4883
|
+
return firestoreUniqueArray(_object_spread_props$l(_object_spread$p({}, config), {
|
|
4884
4884
|
filterUnique: util.unique
|
|
4885
4885
|
}));
|
|
4886
4886
|
}
|
|
@@ -5077,7 +5077,7 @@ function firestoreUniqueNumberArray(config) {
|
|
|
5077
5077
|
* @__NO_SIDE_EFFECTS__
|
|
5078
5078
|
*/ function firestoreDencoderMap(config) {
|
|
5079
5079
|
var dencoder = config.dencoder;
|
|
5080
|
-
return firestoreEncodedObjectMap(_object_spread_props$
|
|
5080
|
+
return firestoreEncodedObjectMap(_object_spread_props$l(_object_spread$p({}, config), {
|
|
5081
5081
|
encoder: dencoder,
|
|
5082
5082
|
decoder: dencoder
|
|
5083
5083
|
}));
|
|
@@ -5113,7 +5113,7 @@ function firestoreUniqueNumberArray(config) {
|
|
|
5113
5113
|
* @__NO_SIDE_EFFECTS__
|
|
5114
5114
|
*/ function firestoreArrayMap() {
|
|
5115
5115
|
var config = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
5116
|
-
return firestoreMap(_object_spread$
|
|
5116
|
+
return firestoreMap(_object_spread$p({
|
|
5117
5117
|
mapFilter: util.KeyValueTypleValueFilter.EMPTY,
|
|
5118
5118
|
mapFieldValues: util.filterMaybeArrayValues
|
|
5119
5119
|
}, config));
|
|
@@ -5585,7 +5585,7 @@ var MAX_FIRESTORE_MAP_ZOOM_LEVEL_VALUE = 22;
|
|
|
5585
5585
|
* @__NO_SIDE_EFFECTS__
|
|
5586
5586
|
*/ function firestoreBitwiseSet(config) {
|
|
5587
5587
|
var dencoder = util.bitwiseSetDencoder(config.maxIndex);
|
|
5588
|
-
return firestoreField(_object_spread_props$
|
|
5588
|
+
return firestoreField(_object_spread_props$l(_object_spread$p({
|
|
5589
5589
|
default: function _default() {
|
|
5590
5590
|
return new Set();
|
|
5591
5591
|
}
|
|
@@ -5606,7 +5606,7 @@ var MAX_FIRESTORE_MAP_ZOOM_LEVEL_VALUE = 22;
|
|
|
5606
5606
|
* @__NO_SIDE_EFFECTS__
|
|
5607
5607
|
*/ function firestoreBitwiseSetMap(config) {
|
|
5608
5608
|
var dencoder = util.bitwiseSetDencoder(config.maxIndex);
|
|
5609
|
-
return firestoreEncodedObjectMap(_object_spread_props$
|
|
5609
|
+
return firestoreEncodedObjectMap(_object_spread_props$l(_object_spread$p({
|
|
5610
5610
|
mapFilter: util.KeyValueTypleValueFilter.FALSY
|
|
5611
5611
|
}, config), {
|
|
5612
5612
|
encoder: dencoder,
|
|
@@ -5625,7 +5625,7 @@ var MAX_FIRESTORE_MAP_ZOOM_LEVEL_VALUE = 22;
|
|
|
5625
5625
|
* @__NO_SIDE_EFFECTS__
|
|
5626
5626
|
*/ function firestoreBitwiseObjectMap(config) {
|
|
5627
5627
|
var dencoder = config.dencoder;
|
|
5628
|
-
return firestoreEncodedObjectMap(_object_spread_props$
|
|
5628
|
+
return firestoreEncodedObjectMap(_object_spread_props$l(_object_spread$p({
|
|
5629
5629
|
mapFilter: util.KeyValueTypleValueFilter.FALSY
|
|
5630
5630
|
}, config), {
|
|
5631
5631
|
encoder: dencoder,
|
|
@@ -5684,30 +5684,30 @@ function firebaseQueryItemAccumulator(iteration, mapItem) {
|
|
|
5684
5684
|
return firebaseQuerySnapshotAccumulator(iteration, mapFn);
|
|
5685
5685
|
}
|
|
5686
5686
|
|
|
5687
|
-
function _array_like_to_array$
|
|
5687
|
+
function _array_like_to_array$h(arr, len) {
|
|
5688
5688
|
if (len == null || len > arr.length) len = arr.length;
|
|
5689
5689
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
5690
5690
|
return arr2;
|
|
5691
5691
|
}
|
|
5692
|
-
function _array_without_holes$
|
|
5693
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
5692
|
+
function _array_without_holes$c(arr) {
|
|
5693
|
+
if (Array.isArray(arr)) return _array_like_to_array$h(arr);
|
|
5694
5694
|
}
|
|
5695
|
-
function _iterable_to_array$
|
|
5695
|
+
function _iterable_to_array$c(iter) {
|
|
5696
5696
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
5697
5697
|
}
|
|
5698
|
-
function _non_iterable_spread$
|
|
5698
|
+
function _non_iterable_spread$c() {
|
|
5699
5699
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
5700
5700
|
}
|
|
5701
|
-
function _to_consumable_array$
|
|
5702
|
-
return _array_without_holes$
|
|
5701
|
+
function _to_consumable_array$c(arr) {
|
|
5702
|
+
return _array_without_holes$c(arr) || _iterable_to_array$c(arr) || _unsupported_iterable_to_array$h(arr) || _non_iterable_spread$c();
|
|
5703
5703
|
}
|
|
5704
|
-
function _unsupported_iterable_to_array$
|
|
5704
|
+
function _unsupported_iterable_to_array$h(o, minLen) {
|
|
5705
5705
|
if (!o) return;
|
|
5706
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
5706
|
+
if (typeof o === "string") return _array_like_to_array$h(o, minLen);
|
|
5707
5707
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
5708
5708
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
5709
5709
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
5710
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
5710
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$h(o, minLen);
|
|
5711
5711
|
}
|
|
5712
5712
|
/**
|
|
5713
5713
|
* Creates a {@link FirestoreQueryConstraint} with the given type identifier and data.
|
|
@@ -6087,7 +6087,7 @@ function orderBy(fieldPath, directionStr) {
|
|
|
6087
6087
|
* const newConstraints = replaceLimit(existingConstraints);
|
|
6088
6088
|
* ```
|
|
6089
6089
|
*/ function replaceConstraints(replaceFn, types) {
|
|
6090
|
-
var separateFn = separateConstraints.apply(void 0, _to_consumable_array$
|
|
6090
|
+
var separateFn = separateConstraints.apply(void 0, _to_consumable_array$c(types));
|
|
6091
6091
|
return function(constraints) {
|
|
6092
6092
|
var separated = separateFn(constraints);
|
|
6093
6093
|
var replacements = util.asArray(replaceFn(separated.excluded));
|
|
@@ -6283,15 +6283,15 @@ function whereDateIsBeforeWithSort(fieldPath) {
|
|
|
6283
6283
|
];
|
|
6284
6284
|
}
|
|
6285
6285
|
|
|
6286
|
-
function _array_like_to_array$
|
|
6286
|
+
function _array_like_to_array$g(arr, len) {
|
|
6287
6287
|
if (len == null || len > arr.length) len = arr.length;
|
|
6288
6288
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
6289
6289
|
return arr2;
|
|
6290
6290
|
}
|
|
6291
|
-
function _array_without_holes$
|
|
6292
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
6291
|
+
function _array_without_holes$b(arr) {
|
|
6292
|
+
if (Array.isArray(arr)) return _array_like_to_array$g(arr);
|
|
6293
6293
|
}
|
|
6294
|
-
function _define_property$
|
|
6294
|
+
function _define_property$u(obj, key, value) {
|
|
6295
6295
|
if (key in obj) {
|
|
6296
6296
|
Object.defineProperty(obj, key, {
|
|
6297
6297
|
value: value,
|
|
@@ -6304,13 +6304,13 @@ function _define_property$t(obj, key, value) {
|
|
|
6304
6304
|
}
|
|
6305
6305
|
return obj;
|
|
6306
6306
|
}
|
|
6307
|
-
function _iterable_to_array$
|
|
6307
|
+
function _iterable_to_array$b(iter) {
|
|
6308
6308
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
6309
6309
|
}
|
|
6310
|
-
function _non_iterable_spread$
|
|
6310
|
+
function _non_iterable_spread$b() {
|
|
6311
6311
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6312
6312
|
}
|
|
6313
|
-
function _object_spread$
|
|
6313
|
+
function _object_spread$o(target) {
|
|
6314
6314
|
for(var i = 1; i < arguments.length; i++){
|
|
6315
6315
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6316
6316
|
var ownKeys = Object.keys(source);
|
|
@@ -6320,12 +6320,12 @@ function _object_spread$n(target) {
|
|
|
6320
6320
|
}));
|
|
6321
6321
|
}
|
|
6322
6322
|
ownKeys.forEach(function(key) {
|
|
6323
|
-
_define_property$
|
|
6323
|
+
_define_property$u(target, key, source[key]);
|
|
6324
6324
|
});
|
|
6325
6325
|
}
|
|
6326
6326
|
return target;
|
|
6327
6327
|
}
|
|
6328
|
-
function ownKeys$
|
|
6328
|
+
function ownKeys$k(object, enumerableOnly) {
|
|
6329
6329
|
var keys = Object.keys(object);
|
|
6330
6330
|
if (Object.getOwnPropertySymbols) {
|
|
6331
6331
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -6333,27 +6333,27 @@ function ownKeys$j(object, enumerableOnly) {
|
|
|
6333
6333
|
}
|
|
6334
6334
|
return keys;
|
|
6335
6335
|
}
|
|
6336
|
-
function _object_spread_props$
|
|
6336
|
+
function _object_spread_props$k(target, source) {
|
|
6337
6337
|
source = source != null ? source : {};
|
|
6338
6338
|
if (Object.getOwnPropertyDescriptors) {
|
|
6339
6339
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
6340
6340
|
} else {
|
|
6341
|
-
ownKeys$
|
|
6341
|
+
ownKeys$k(Object(source)).forEach(function(key) {
|
|
6342
6342
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
6343
6343
|
});
|
|
6344
6344
|
}
|
|
6345
6345
|
return target;
|
|
6346
6346
|
}
|
|
6347
|
-
function _to_consumable_array$
|
|
6348
|
-
return _array_without_holes$
|
|
6347
|
+
function _to_consumable_array$b(arr) {
|
|
6348
|
+
return _array_without_holes$b(arr) || _iterable_to_array$b(arr) || _unsupported_iterable_to_array$g(arr) || _non_iterable_spread$b();
|
|
6349
6349
|
}
|
|
6350
|
-
function _unsupported_iterable_to_array$
|
|
6350
|
+
function _unsupported_iterable_to_array$g(o, minLen) {
|
|
6351
6351
|
if (!o) return;
|
|
6352
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
6352
|
+
if (typeof o === "string") return _array_like_to_array$g(o, minLen);
|
|
6353
6353
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6354
6354
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
6355
6355
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
6356
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
6356
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$g(o, minLen);
|
|
6357
6357
|
}
|
|
6358
6358
|
/**
|
|
6359
6359
|
* Filters out constraints that should not be directly specified in pagination queries.
|
|
@@ -6418,13 +6418,13 @@ function _unsupported_iterable_to_array$f(o, minLen) {
|
|
|
6418
6418
|
// Add Limit
|
|
6419
6419
|
var limitCount = filterLimit !== null && filterLimit !== void 0 ? filterLimit : itemsPerPage + (startAfterFilter ? 1 : 0); // todo: may not be needed.
|
|
6420
6420
|
var limitConstraint = limit(limitCount);
|
|
6421
|
-
var constraintsWithLimit = _to_consumable_array$
|
|
6421
|
+
var constraintsWithLimit = _to_consumable_array$b(constraints).concat([
|
|
6422
6422
|
limitConstraint
|
|
6423
6423
|
]);
|
|
6424
6424
|
// make query
|
|
6425
6425
|
var batchQuery = (_driver = driver).query.apply(_driver, [
|
|
6426
6426
|
queryLike
|
|
6427
|
-
].concat(_to_consumable_array$
|
|
6427
|
+
].concat(_to_consumable_array$b(constraintsWithLimit)));
|
|
6428
6428
|
var resultPromise = driver.getDocs(batchQuery).then(function(snapshot) {
|
|
6429
6429
|
var time = new Date();
|
|
6430
6430
|
var docs = snapshot.docs;
|
|
@@ -6553,7 +6553,7 @@ function _firestoreItemPageIterationWithSnapshotIteration(snapshotIteration) {
|
|
|
6553
6553
|
return x.docs;
|
|
6554
6554
|
}
|
|
6555
6555
|
});
|
|
6556
|
-
var result = _object_spread_props$
|
|
6556
|
+
var result = _object_spread_props$k(_object_spread$o({}, mappedIteration), {
|
|
6557
6557
|
snapshotIteration: snapshotIteration
|
|
6558
6558
|
});
|
|
6559
6559
|
return result;
|
|
@@ -6695,13 +6695,13 @@ function _firestoreItemPageIterationWithSnapshotIteration(snapshotIteration) {
|
|
|
6695
6695
|
return _firestoreItemPageIterationWithSnapshotIteration(snapshotIteration);
|
|
6696
6696
|
}
|
|
6697
6697
|
|
|
6698
|
-
function _array_like_to_array$
|
|
6698
|
+
function _array_like_to_array$f(arr, len) {
|
|
6699
6699
|
if (len == null || len > arr.length) len = arr.length;
|
|
6700
6700
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
6701
6701
|
return arr2;
|
|
6702
6702
|
}
|
|
6703
|
-
function _array_without_holes$
|
|
6704
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
6703
|
+
function _array_without_holes$a(arr) {
|
|
6704
|
+
if (Array.isArray(arr)) return _array_like_to_array$f(arr);
|
|
6705
6705
|
}
|
|
6706
6706
|
function asyncGeneratorStep$h(gen, resolve, reject, _next, _throw, key, arg) {
|
|
6707
6707
|
try {
|
|
@@ -6732,22 +6732,22 @@ function _async_to_generator$h(fn) {
|
|
|
6732
6732
|
});
|
|
6733
6733
|
};
|
|
6734
6734
|
}
|
|
6735
|
-
function _iterable_to_array$
|
|
6735
|
+
function _iterable_to_array$a(iter) {
|
|
6736
6736
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
6737
6737
|
}
|
|
6738
|
-
function _non_iterable_spread$
|
|
6738
|
+
function _non_iterable_spread$a() {
|
|
6739
6739
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6740
6740
|
}
|
|
6741
|
-
function _to_consumable_array$
|
|
6742
|
-
return _array_without_holes$
|
|
6741
|
+
function _to_consumable_array$a(arr) {
|
|
6742
|
+
return _array_without_holes$a(arr) || _iterable_to_array$a(arr) || _unsupported_iterable_to_array$f(arr) || _non_iterable_spread$a();
|
|
6743
6743
|
}
|
|
6744
|
-
function _unsupported_iterable_to_array$
|
|
6744
|
+
function _unsupported_iterable_to_array$f(o, minLen) {
|
|
6745
6745
|
if (!o) return;
|
|
6746
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
6746
|
+
if (typeof o === "string") return _array_like_to_array$f(o, minLen);
|
|
6747
6747
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6748
6748
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
6749
6749
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
6750
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
6750
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$f(o, minLen);
|
|
6751
6751
|
}
|
|
6752
6752
|
function _ts_generator$h(thisArg, body) {
|
|
6753
6753
|
var f, y, t, _ = {
|
|
@@ -6888,7 +6888,7 @@ function _ts_generator$h(thisArg, body) {
|
|
|
6888
6888
|
var allConstraints = util.flattenArrayOrValueArray(queryConstraints);
|
|
6889
6889
|
var query = makeQuery.apply(void 0, [
|
|
6890
6890
|
inputQuery
|
|
6891
|
-
].concat(_to_consumable_array$
|
|
6891
|
+
].concat(_to_consumable_array$a(allConstraints)));
|
|
6892
6892
|
var result = {
|
|
6893
6893
|
query: query,
|
|
6894
6894
|
countDocs: function countDocs1() {
|
|
@@ -6910,7 +6910,7 @@ function _ts_generator$h(thisArg, body) {
|
|
|
6910
6910
|
constraintsForOneDoc = addOrReplaceLimitInConstraints(1)(allConstraints);
|
|
6911
6911
|
query = makeQuery.apply(void 0, [
|
|
6912
6912
|
inputQuery
|
|
6913
|
-
].concat(_to_consumable_array$
|
|
6913
|
+
].concat(_to_consumable_array$a(constraintsForOneDoc)));
|
|
6914
6914
|
return [
|
|
6915
6915
|
4,
|
|
6916
6916
|
getDocs(query, transaction)
|
|
@@ -7018,7 +7018,7 @@ function _ts_generator$h(thisArg, body) {
|
|
|
7018
7018
|
return snapshot.ref.path;
|
|
7019
7019
|
}
|
|
7020
7020
|
|
|
7021
|
-
function _array_like_to_array$
|
|
7021
|
+
function _array_like_to_array$e(arr, len) {
|
|
7022
7022
|
if (len == null || len > arr.length) len = arr.length;
|
|
7023
7023
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
7024
7024
|
return arr2;
|
|
@@ -7055,7 +7055,7 @@ function _async_to_generator$g(fn) {
|
|
|
7055
7055
|
});
|
|
7056
7056
|
};
|
|
7057
7057
|
}
|
|
7058
|
-
function _define_property$
|
|
7058
|
+
function _define_property$t(obj, key, value) {
|
|
7059
7059
|
if (key in obj) {
|
|
7060
7060
|
Object.defineProperty(obj, key, {
|
|
7061
7061
|
value: value,
|
|
@@ -7095,7 +7095,7 @@ function _iterable_to_array_limit$4(arr, i) {
|
|
|
7095
7095
|
function _non_iterable_rest$4() {
|
|
7096
7096
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7097
7097
|
}
|
|
7098
|
-
function _object_spread$
|
|
7098
|
+
function _object_spread$n(target) {
|
|
7099
7099
|
for(var i = 1; i < arguments.length; i++){
|
|
7100
7100
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7101
7101
|
var ownKeys = Object.keys(source);
|
|
@@ -7105,12 +7105,12 @@ function _object_spread$m(target) {
|
|
|
7105
7105
|
}));
|
|
7106
7106
|
}
|
|
7107
7107
|
ownKeys.forEach(function(key) {
|
|
7108
|
-
_define_property$
|
|
7108
|
+
_define_property$t(target, key, source[key]);
|
|
7109
7109
|
});
|
|
7110
7110
|
}
|
|
7111
7111
|
return target;
|
|
7112
7112
|
}
|
|
7113
|
-
function ownKeys$
|
|
7113
|
+
function ownKeys$j(object, enumerableOnly) {
|
|
7114
7114
|
var keys = Object.keys(object);
|
|
7115
7115
|
if (Object.getOwnPropertySymbols) {
|
|
7116
7116
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7118,27 +7118,27 @@ function ownKeys$i(object, enumerableOnly) {
|
|
|
7118
7118
|
}
|
|
7119
7119
|
return keys;
|
|
7120
7120
|
}
|
|
7121
|
-
function _object_spread_props$
|
|
7121
|
+
function _object_spread_props$j(target, source) {
|
|
7122
7122
|
source = source != null ? source : {};
|
|
7123
7123
|
if (Object.getOwnPropertyDescriptors) {
|
|
7124
7124
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7125
7125
|
} else {
|
|
7126
|
-
ownKeys$
|
|
7126
|
+
ownKeys$j(Object(source)).forEach(function(key) {
|
|
7127
7127
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7128
7128
|
});
|
|
7129
7129
|
}
|
|
7130
7130
|
return target;
|
|
7131
7131
|
}
|
|
7132
7132
|
function _sliced_to_array$4(arr, i) {
|
|
7133
|
-
return _array_with_holes$4(arr) || _iterable_to_array_limit$4(arr, i) || _unsupported_iterable_to_array$
|
|
7133
|
+
return _array_with_holes$4(arr) || _iterable_to_array_limit$4(arr, i) || _unsupported_iterable_to_array$e(arr, i) || _non_iterable_rest$4();
|
|
7134
7134
|
}
|
|
7135
|
-
function _unsupported_iterable_to_array$
|
|
7135
|
+
function _unsupported_iterable_to_array$e(o, minLen) {
|
|
7136
7136
|
if (!o) return;
|
|
7137
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
7137
|
+
if (typeof o === "string") return _array_like_to_array$e(o, minLen);
|
|
7138
7138
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
7139
7139
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
7140
7140
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
7141
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
7141
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$e(o, minLen);
|
|
7142
7142
|
}
|
|
7143
7143
|
function _ts_generator$g(thisArg, body) {
|
|
7144
7144
|
var f, y, t, _ = {
|
|
@@ -7272,7 +7272,7 @@ function _ts_generator$g(thisArg, body) {
|
|
|
7272
7272
|
loadPairForSnapshot = firestoreDocumentSnapshotPairsLoaderInstance(documentAccessor);
|
|
7273
7273
|
return [
|
|
7274
7274
|
2,
|
|
7275
|
-
iterateFirestoreDocumentSnapshots(_object_spread_props$
|
|
7275
|
+
iterateFirestoreDocumentSnapshots(_object_spread_props$j(_object_spread$n({}, config), {
|
|
7276
7276
|
iterateSnapshot: function iterateSnapshot(snapshot) {
|
|
7277
7277
|
return _async_to_generator$g(function() {
|
|
7278
7278
|
var pair;
|
|
@@ -7324,16 +7324,16 @@ function _ts_generator$g(thisArg, body) {
|
|
|
7324
7324
|
iterateSnapshot = config.iterateSnapshot, performTasksConfig = config.performTasksConfig, snapshotsPerformTasksConfig = config.snapshotsPerformTasksConfig;
|
|
7325
7325
|
return [
|
|
7326
7326
|
2,
|
|
7327
|
-
iterateFirestoreDocumentSnapshotBatches(_object_spread_props$
|
|
7327
|
+
iterateFirestoreDocumentSnapshotBatches(_object_spread_props$j(_object_spread$n({}, config), {
|
|
7328
7328
|
maxParallelCheckpoints: 1,
|
|
7329
7329
|
iterateSnapshotBatch: function iterateSnapshotBatch(docSnapshots) {
|
|
7330
7330
|
return _async_to_generator$g(function() {
|
|
7331
7331
|
return _ts_generator$g(this, function(_state) {
|
|
7332
7332
|
return [
|
|
7333
7333
|
2,
|
|
7334
|
-
util.performAsyncTasks(docSnapshots, iterateSnapshot, _object_spread$
|
|
7334
|
+
util.performAsyncTasks(docSnapshots, iterateSnapshot, _object_spread$n({
|
|
7335
7335
|
sequential: true
|
|
7336
|
-
}, snapshotsPerformTasksConfig !== null && snapshotsPerformTasksConfig !== void 0 ? snapshotsPerformTasksConfig : _object_spread_props$
|
|
7336
|
+
}, snapshotsPerformTasksConfig !== null && snapshotsPerformTasksConfig !== void 0 ? snapshotsPerformTasksConfig : _object_spread_props$j(_object_spread$n({}, performTasksConfig), {
|
|
7337
7337
|
nonConcurrentTaskKeyFactory: undefined,
|
|
7338
7338
|
beforeRetry: undefined
|
|
7339
7339
|
}) // don't pass the nonConcurrentTaskKeyFactory
|
|
@@ -7382,7 +7382,7 @@ function _ts_generator$g(thisArg, body) {
|
|
|
7382
7382
|
loadPairForSnapshot = firestoreDocumentSnapshotPairsLoaderInstance(documentAccessor);
|
|
7383
7383
|
return [
|
|
7384
7384
|
2,
|
|
7385
|
-
iterateFirestoreDocumentSnapshotBatches(_object_spread_props$
|
|
7385
|
+
iterateFirestoreDocumentSnapshotBatches(_object_spread_props$j(_object_spread$n({}, config), {
|
|
7386
7386
|
maxParallelCheckpoints: 1,
|
|
7387
7387
|
iterateSnapshotBatch: function iterateSnapshotBatch(snapshots, batchIndex) {
|
|
7388
7388
|
return _async_to_generator$g(function() {
|
|
@@ -7444,7 +7444,7 @@ function _ts_generator$g(thisArg, body) {
|
|
|
7444
7444
|
};
|
|
7445
7445
|
return [
|
|
7446
7446
|
2,
|
|
7447
|
-
iterateFirestoreDocumentSnapshotCheckpoints(_object_spread_props$
|
|
7447
|
+
iterateFirestoreDocumentSnapshotCheckpoints(_object_spread_props$j(_object_spread$n({}, config), {
|
|
7448
7448
|
iterateCheckpoint: function iterateCheckpoint(docSnapshots) {
|
|
7449
7449
|
return _async_to_generator$g(function() {
|
|
7450
7450
|
var result, batchSizeForSnapshotsResult, batches, i, performTasksResult;
|
|
@@ -7465,7 +7465,7 @@ function _ts_generator$g(thisArg, body) {
|
|
|
7465
7465
|
4,
|
|
7466
7466
|
util.performAsyncTasks(batches, function(x) {
|
|
7467
7467
|
return iterateSnapshotBatch(x, i++);
|
|
7468
|
-
}, _object_spread$
|
|
7468
|
+
}, _object_spread$n({
|
|
7469
7469
|
sequential: true
|
|
7470
7470
|
}, performTasksConfig))
|
|
7471
7471
|
];
|
|
@@ -8202,13 +8202,13 @@ function _ts_generator$f(thisArg, body) {
|
|
|
8202
8202
|
return type;
|
|
8203
8203
|
}
|
|
8204
8204
|
|
|
8205
|
-
function _array_like_to_array$
|
|
8205
|
+
function _array_like_to_array$d(arr, len) {
|
|
8206
8206
|
if (len == null || len > arr.length) len = arr.length;
|
|
8207
8207
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
8208
8208
|
return arr2;
|
|
8209
8209
|
}
|
|
8210
|
-
function _array_without_holes$
|
|
8211
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
8210
|
+
function _array_without_holes$9(arr) {
|
|
8211
|
+
if (Array.isArray(arr)) return _array_like_to_array$d(arr);
|
|
8212
8212
|
}
|
|
8213
8213
|
function asyncGeneratorStep$e(gen, resolve, reject, _next, _throw, key, arg) {
|
|
8214
8214
|
try {
|
|
@@ -8239,22 +8239,22 @@ function _async_to_generator$e(fn) {
|
|
|
8239
8239
|
});
|
|
8240
8240
|
};
|
|
8241
8241
|
}
|
|
8242
|
-
function _iterable_to_array$
|
|
8242
|
+
function _iterable_to_array$9(iter) {
|
|
8243
8243
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
8244
8244
|
}
|
|
8245
|
-
function _non_iterable_spread$
|
|
8245
|
+
function _non_iterable_spread$9() {
|
|
8246
8246
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8247
8247
|
}
|
|
8248
|
-
function _to_consumable_array$
|
|
8249
|
-
return _array_without_holes$
|
|
8248
|
+
function _to_consumable_array$9(arr) {
|
|
8249
|
+
return _array_without_holes$9(arr) || _iterable_to_array$9(arr) || _unsupported_iterable_to_array$d(arr) || _non_iterable_spread$9();
|
|
8250
8250
|
}
|
|
8251
|
-
function _unsupported_iterable_to_array$
|
|
8251
|
+
function _unsupported_iterable_to_array$d(o, minLen) {
|
|
8252
8252
|
if (!o) return;
|
|
8253
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
8253
|
+
if (typeof o === "string") return _array_like_to_array$d(o, minLen);
|
|
8254
8254
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
8255
8255
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
8256
8256
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
8257
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
8257
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$d(o, minLen);
|
|
8258
8258
|
}
|
|
8259
8259
|
function _ts_generator$e(thisArg, body) {
|
|
8260
8260
|
var f, y, t, _ = {
|
|
@@ -8476,7 +8476,7 @@ function _ts_generator$e(thisArg, body) {
|
|
|
8476
8476
|
for(var _len = arguments.length, queryConstraints = new Array(_len), _key = 0; _key < _len; _key++){
|
|
8477
8477
|
queryConstraints[_key] = arguments[_key];
|
|
8478
8478
|
}
|
|
8479
|
-
return wrapQuery((_baseQuery = baseQuery).filter.apply(_baseQuery, _to_consumable_array$
|
|
8479
|
+
return wrapQuery((_baseQuery = baseQuery).filter.apply(_baseQuery, _to_consumable_array$9(queryConstraints)));
|
|
8480
8480
|
}
|
|
8481
8481
|
};
|
|
8482
8482
|
};
|
|
@@ -8486,20 +8486,20 @@ function _ts_generator$e(thisArg, body) {
|
|
|
8486
8486
|
for(var _len = arguments.length, queryConstraints = new Array(_len), _key = 0; _key < _len; _key++){
|
|
8487
8487
|
queryConstraints[_key] = arguments[_key];
|
|
8488
8488
|
}
|
|
8489
|
-
return wrapQuery((_queryFactory = queryFactory).query.apply(_queryFactory, _to_consumable_array$
|
|
8489
|
+
return wrapQuery((_queryFactory = queryFactory).query.apply(_queryFactory, _to_consumable_array$9(queryConstraints)));
|
|
8490
8490
|
}
|
|
8491
8491
|
};
|
|
8492
8492
|
}
|
|
8493
8493
|
|
|
8494
|
-
function _array_like_to_array$
|
|
8494
|
+
function _array_like_to_array$c(arr, len) {
|
|
8495
8495
|
if (len == null || len > arr.length) len = arr.length;
|
|
8496
8496
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
8497
8497
|
return arr2;
|
|
8498
8498
|
}
|
|
8499
|
-
function _array_without_holes$
|
|
8500
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
8499
|
+
function _array_without_holes$8(arr) {
|
|
8500
|
+
if (Array.isArray(arr)) return _array_like_to_array$c(arr);
|
|
8501
8501
|
}
|
|
8502
|
-
function _define_property$
|
|
8502
|
+
function _define_property$s(obj, key, value) {
|
|
8503
8503
|
if (key in obj) {
|
|
8504
8504
|
Object.defineProperty(obj, key, {
|
|
8505
8505
|
value: value,
|
|
@@ -8512,13 +8512,13 @@ function _define_property$r(obj, key, value) {
|
|
|
8512
8512
|
}
|
|
8513
8513
|
return obj;
|
|
8514
8514
|
}
|
|
8515
|
-
function _iterable_to_array$
|
|
8515
|
+
function _iterable_to_array$8(iter) {
|
|
8516
8516
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
8517
8517
|
}
|
|
8518
|
-
function _non_iterable_spread$
|
|
8518
|
+
function _non_iterable_spread$8() {
|
|
8519
8519
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8520
8520
|
}
|
|
8521
|
-
function _object_spread$
|
|
8521
|
+
function _object_spread$m(target) {
|
|
8522
8522
|
for(var i = 1; i < arguments.length; i++){
|
|
8523
8523
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8524
8524
|
var ownKeys = Object.keys(source);
|
|
@@ -8528,12 +8528,12 @@ function _object_spread$l(target) {
|
|
|
8528
8528
|
}));
|
|
8529
8529
|
}
|
|
8530
8530
|
ownKeys.forEach(function(key) {
|
|
8531
|
-
_define_property$
|
|
8531
|
+
_define_property$s(target, key, source[key]);
|
|
8532
8532
|
});
|
|
8533
8533
|
}
|
|
8534
8534
|
return target;
|
|
8535
8535
|
}
|
|
8536
|
-
function ownKeys$
|
|
8536
|
+
function ownKeys$i(object, enumerableOnly) {
|
|
8537
8537
|
var keys = Object.keys(object);
|
|
8538
8538
|
if (Object.getOwnPropertySymbols) {
|
|
8539
8539
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8541,31 +8541,31 @@ function ownKeys$h(object, enumerableOnly) {
|
|
|
8541
8541
|
}
|
|
8542
8542
|
return keys;
|
|
8543
8543
|
}
|
|
8544
|
-
function _object_spread_props$
|
|
8544
|
+
function _object_spread_props$i(target, source) {
|
|
8545
8545
|
source = source != null ? source : {};
|
|
8546
8546
|
if (Object.getOwnPropertyDescriptors) {
|
|
8547
8547
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8548
8548
|
} else {
|
|
8549
|
-
ownKeys$
|
|
8549
|
+
ownKeys$i(Object(source)).forEach(function(key) {
|
|
8550
8550
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8551
8551
|
});
|
|
8552
8552
|
}
|
|
8553
8553
|
return target;
|
|
8554
8554
|
}
|
|
8555
|
-
function _to_consumable_array$
|
|
8556
|
-
return _array_without_holes$
|
|
8555
|
+
function _to_consumable_array$8(arr) {
|
|
8556
|
+
return _array_without_holes$8(arr) || _iterable_to_array$8(arr) || _unsupported_iterable_to_array$c(arr) || _non_iterable_spread$8();
|
|
8557
8557
|
}
|
|
8558
8558
|
function _type_of$9(obj) {
|
|
8559
8559
|
"@swc/helpers - typeof";
|
|
8560
8560
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
8561
8561
|
}
|
|
8562
|
-
function _unsupported_iterable_to_array$
|
|
8562
|
+
function _unsupported_iterable_to_array$c(o, minLen) {
|
|
8563
8563
|
if (!o) return;
|
|
8564
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
8564
|
+
if (typeof o === "string") return _array_like_to_array$c(o, minLen);
|
|
8565
8565
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
8566
8566
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
8567
8567
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
8568
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
8568
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$c(o, minLen);
|
|
8569
8569
|
}
|
|
8570
8570
|
/**
|
|
8571
8571
|
* Separator used in Firestore paths to separate collection and document IDs.
|
|
@@ -9011,7 +9011,7 @@ function firestoreModelIdentity(parentOrModelName, collectionNameOrModelName, in
|
|
|
9011
9011
|
* @returns
|
|
9012
9012
|
* @__NO_SIDE_EFFECTS__
|
|
9013
9013
|
*/ function firestoreModelKeyPartPairsKeyPath(input) {
|
|
9014
|
-
return firestoreModelKeyPath.apply(void 0, _to_consumable_array$
|
|
9014
|
+
return firestoreModelKeyPath.apply(void 0, _to_consumable_array$8(firestoreModelKeyPartPairsPaths(input)));
|
|
9015
9015
|
}
|
|
9016
9016
|
/**
|
|
9017
9017
|
* Maps the input FirestoreModelCollectionAndIdPair[] values to FirestoreModelKeyPart[] values.
|
|
@@ -9093,7 +9093,7 @@ var FIRESTORE_DUMMY_MODEL_KEY = 'dummymodel/dummykey';
|
|
|
9093
9093
|
var queryFactory = firestoreQueryFactory(config);
|
|
9094
9094
|
var queryDocument = firestoreCollectionQueryFactory(queryFactory, documentAccessorExtension).queryDocument;
|
|
9095
9095
|
var query = queryFactory.query;
|
|
9096
|
-
return _object_spread_props$
|
|
9096
|
+
return _object_spread_props$i(_object_spread$m({
|
|
9097
9097
|
config: config,
|
|
9098
9098
|
cache: cache,
|
|
9099
9099
|
modelIdentity: modelIdentity,
|
|
@@ -9132,7 +9132,7 @@ var FIRESTORE_DUMMY_MODEL_KEY = 'dummymodel/dummykey';
|
|
|
9132
9132
|
});
|
|
9133
9133
|
}
|
|
9134
9134
|
|
|
9135
|
-
function _define_property$
|
|
9135
|
+
function _define_property$r(obj, key, value) {
|
|
9136
9136
|
if (key in obj) {
|
|
9137
9137
|
Object.defineProperty(obj, key, {
|
|
9138
9138
|
value: value,
|
|
@@ -9145,7 +9145,7 @@ function _define_property$q(obj, key, value) {
|
|
|
9145
9145
|
}
|
|
9146
9146
|
return obj;
|
|
9147
9147
|
}
|
|
9148
|
-
function _object_spread$
|
|
9148
|
+
function _object_spread$l(target) {
|
|
9149
9149
|
for(var i = 1; i < arguments.length; i++){
|
|
9150
9150
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9151
9151
|
var ownKeys = Object.keys(source);
|
|
@@ -9155,12 +9155,12 @@ function _object_spread$k(target) {
|
|
|
9155
9155
|
}));
|
|
9156
9156
|
}
|
|
9157
9157
|
ownKeys.forEach(function(key) {
|
|
9158
|
-
_define_property$
|
|
9158
|
+
_define_property$r(target, key, source[key]);
|
|
9159
9159
|
});
|
|
9160
9160
|
}
|
|
9161
9161
|
return target;
|
|
9162
9162
|
}
|
|
9163
|
-
function ownKeys$
|
|
9163
|
+
function ownKeys$h(object, enumerableOnly) {
|
|
9164
9164
|
var keys = Object.keys(object);
|
|
9165
9165
|
if (Object.getOwnPropertySymbols) {
|
|
9166
9166
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9168,12 +9168,12 @@ function ownKeys$g(object, enumerableOnly) {
|
|
|
9168
9168
|
}
|
|
9169
9169
|
return keys;
|
|
9170
9170
|
}
|
|
9171
|
-
function _object_spread_props$
|
|
9171
|
+
function _object_spread_props$h(target, source) {
|
|
9172
9172
|
source = source != null ? source : {};
|
|
9173
9173
|
if (Object.getOwnPropertyDescriptors) {
|
|
9174
9174
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9175
9175
|
} else {
|
|
9176
|
-
ownKeys$
|
|
9176
|
+
ownKeys$h(Object(source)).forEach(function(key) {
|
|
9177
9177
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9178
9178
|
});
|
|
9179
9179
|
}
|
|
@@ -9220,7 +9220,7 @@ function _object_spread_props$g(target, source) {
|
|
|
9220
9220
|
var queryDocument = firestoreCollectionQueryFactory(queryFactory, documentAccessorExtension).queryDocument;
|
|
9221
9221
|
var query = queryFactory.query;
|
|
9222
9222
|
// Return the fully constructed collection group
|
|
9223
|
-
return _object_spread_props$
|
|
9223
|
+
return _object_spread_props$h(_object_spread$l({
|
|
9224
9224
|
config: config,
|
|
9225
9225
|
cache: cache,
|
|
9226
9226
|
queryLike: queryLike,
|
|
@@ -9306,7 +9306,7 @@ function _object_spread_props$g(target, source) {
|
|
|
9306
9306
|
});
|
|
9307
9307
|
}
|
|
9308
9308
|
|
|
9309
|
-
function _define_property$
|
|
9309
|
+
function _define_property$q(obj, key, value) {
|
|
9310
9310
|
if (key in obj) {
|
|
9311
9311
|
Object.defineProperty(obj, key, {
|
|
9312
9312
|
value: value,
|
|
@@ -9319,7 +9319,7 @@ function _define_property$p(obj, key, value) {
|
|
|
9319
9319
|
}
|
|
9320
9320
|
return obj;
|
|
9321
9321
|
}
|
|
9322
|
-
function _object_spread$
|
|
9322
|
+
function _object_spread$k(target) {
|
|
9323
9323
|
for(var i = 1; i < arguments.length; i++){
|
|
9324
9324
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9325
9325
|
var ownKeys = Object.keys(source);
|
|
@@ -9329,12 +9329,12 @@ function _object_spread$j(target) {
|
|
|
9329
9329
|
}));
|
|
9330
9330
|
}
|
|
9331
9331
|
ownKeys.forEach(function(key) {
|
|
9332
|
-
_define_property$
|
|
9332
|
+
_define_property$q(target, key, source[key]);
|
|
9333
9333
|
});
|
|
9334
9334
|
}
|
|
9335
9335
|
return target;
|
|
9336
9336
|
}
|
|
9337
|
-
function ownKeys$
|
|
9337
|
+
function ownKeys$g(object, enumerableOnly) {
|
|
9338
9338
|
var keys = Object.keys(object);
|
|
9339
9339
|
if (Object.getOwnPropertySymbols) {
|
|
9340
9340
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9342,12 +9342,12 @@ function ownKeys$f(object, enumerableOnly) {
|
|
|
9342
9342
|
}
|
|
9343
9343
|
return keys;
|
|
9344
9344
|
}
|
|
9345
|
-
function _object_spread_props$
|
|
9345
|
+
function _object_spread_props$g(target, source) {
|
|
9346
9346
|
source = source != null ? source : {};
|
|
9347
9347
|
if (Object.getOwnPropertyDescriptors) {
|
|
9348
9348
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9349
9349
|
} else {
|
|
9350
|
-
ownKeys$
|
|
9350
|
+
ownKeys$g(Object(source)).forEach(function(key) {
|
|
9351
9351
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9352
9352
|
});
|
|
9353
9353
|
}
|
|
@@ -9412,7 +9412,7 @@ function _object_spread_props$f(target, source) {
|
|
|
9412
9412
|
*/ function makePagedItemFirestoreCollection(config) {
|
|
9413
9413
|
var _config_converter;
|
|
9414
9414
|
var resolvedConverter = (_config_converter = config.converter) !== null && _config_converter !== void 0 ? _config_converter : defaultPagedItemPageDataConverter();
|
|
9415
|
-
var baseConfig = _object_spread_props$
|
|
9415
|
+
var baseConfig = _object_spread_props$g(_object_spread$k({}, config), {
|
|
9416
9416
|
converter: resolvedConverter
|
|
9417
9417
|
});
|
|
9418
9418
|
return util.build({
|
|
@@ -9428,15 +9428,15 @@ function _object_spread_props$f(target, source) {
|
|
|
9428
9428
|
});
|
|
9429
9429
|
}
|
|
9430
9430
|
|
|
9431
|
-
function _array_like_to_array$
|
|
9431
|
+
function _array_like_to_array$b(arr, len) {
|
|
9432
9432
|
if (len == null || len > arr.length) len = arr.length;
|
|
9433
9433
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
9434
9434
|
return arr2;
|
|
9435
9435
|
}
|
|
9436
|
-
function _array_without_holes$
|
|
9437
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
9436
|
+
function _array_without_holes$7(arr) {
|
|
9437
|
+
if (Array.isArray(arr)) return _array_like_to_array$b(arr);
|
|
9438
9438
|
}
|
|
9439
|
-
function _define_property$
|
|
9439
|
+
function _define_property$p(obj, key, value) {
|
|
9440
9440
|
if (key in obj) {
|
|
9441
9441
|
Object.defineProperty(obj, key, {
|
|
9442
9442
|
value: value,
|
|
@@ -9449,13 +9449,13 @@ function _define_property$o(obj, key, value) {
|
|
|
9449
9449
|
}
|
|
9450
9450
|
return obj;
|
|
9451
9451
|
}
|
|
9452
|
-
function _iterable_to_array$
|
|
9452
|
+
function _iterable_to_array$7(iter) {
|
|
9453
9453
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
9454
9454
|
}
|
|
9455
|
-
function _non_iterable_spread$
|
|
9455
|
+
function _non_iterable_spread$7() {
|
|
9456
9456
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9457
9457
|
}
|
|
9458
|
-
function _object_spread$
|
|
9458
|
+
function _object_spread$j(target) {
|
|
9459
9459
|
for(var i = 1; i < arguments.length; i++){
|
|
9460
9460
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9461
9461
|
var ownKeys = Object.keys(source);
|
|
@@ -9465,12 +9465,12 @@ function _object_spread$i(target) {
|
|
|
9465
9465
|
}));
|
|
9466
9466
|
}
|
|
9467
9467
|
ownKeys.forEach(function(key) {
|
|
9468
|
-
_define_property$
|
|
9468
|
+
_define_property$p(target, key, source[key]);
|
|
9469
9469
|
});
|
|
9470
9470
|
}
|
|
9471
9471
|
return target;
|
|
9472
9472
|
}
|
|
9473
|
-
function ownKeys$
|
|
9473
|
+
function ownKeys$f(object, enumerableOnly) {
|
|
9474
9474
|
var keys = Object.keys(object);
|
|
9475
9475
|
if (Object.getOwnPropertySymbols) {
|
|
9476
9476
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9478,27 +9478,27 @@ function ownKeys$e(object, enumerableOnly) {
|
|
|
9478
9478
|
}
|
|
9479
9479
|
return keys;
|
|
9480
9480
|
}
|
|
9481
|
-
function _object_spread_props$
|
|
9481
|
+
function _object_spread_props$f(target, source) {
|
|
9482
9482
|
source = source != null ? source : {};
|
|
9483
9483
|
if (Object.getOwnPropertyDescriptors) {
|
|
9484
9484
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9485
9485
|
} else {
|
|
9486
|
-
ownKeys$
|
|
9486
|
+
ownKeys$f(Object(source)).forEach(function(key) {
|
|
9487
9487
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9488
9488
|
});
|
|
9489
9489
|
}
|
|
9490
9490
|
return target;
|
|
9491
9491
|
}
|
|
9492
|
-
function _to_consumable_array$
|
|
9493
|
-
return _array_without_holes$
|
|
9492
|
+
function _to_consumable_array$7(arr) {
|
|
9493
|
+
return _array_without_holes$7(arr) || _iterable_to_array$7(arr) || _unsupported_iterable_to_array$b(arr) || _non_iterable_spread$7();
|
|
9494
9494
|
}
|
|
9495
|
-
function _unsupported_iterable_to_array$
|
|
9495
|
+
function _unsupported_iterable_to_array$b(o, minLen) {
|
|
9496
9496
|
if (!o) return;
|
|
9497
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
9497
|
+
if (typeof o === "string") return _array_like_to_array$b(o, minLen);
|
|
9498
9498
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
9499
9499
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
9500
9500
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
9501
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
9501
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$b(o, minLen);
|
|
9502
9502
|
}
|
|
9503
9503
|
/**
|
|
9504
9504
|
* Creates a factory function for generating FirestoreContext instances.
|
|
@@ -9522,7 +9522,7 @@ function _unsupported_iterable_to_array$a(o, minLen) {
|
|
|
9522
9522
|
var makeFirestoreCollectionConfig = function makeFirestoreCollectionConfig(config) {
|
|
9523
9523
|
var collection = config.collection;
|
|
9524
9524
|
var queryLike = collection !== null && collection !== void 0 ? collection : config.queryLike;
|
|
9525
|
-
return _object_spread_props$
|
|
9525
|
+
return _object_spread_props$f(_object_spread$j({}, config), {
|
|
9526
9526
|
collection: config.converter ? collection === null || collection === void 0 ? void 0 : collection.withConverter(config.converter) : collection,
|
|
9527
9527
|
queryLike: config.converter ? queryLike.withConverter(config.converter) : queryLike,
|
|
9528
9528
|
firestoreContext: context,
|
|
@@ -9552,7 +9552,7 @@ function _unsupported_iterable_to_array$a(o, minLen) {
|
|
|
9552
9552
|
return (_drivers_firestoreAccessorDriver = drivers.firestoreAccessorDriver).collection.apply(_drivers_firestoreAccessorDriver, [
|
|
9553
9553
|
firestore,
|
|
9554
9554
|
path
|
|
9555
|
-
].concat(_to_consumable_array$
|
|
9555
|
+
].concat(_to_consumable_array$7(pathSegments)));
|
|
9556
9556
|
},
|
|
9557
9557
|
subcollection: drivers.firestoreAccessorDriver.subcollection,
|
|
9558
9558
|
runTransaction: drivers.firestoreAccessorDriver.transactionFactoryForFirestore(firestore),
|
|
@@ -9866,15 +9866,15 @@ function _ts_generator$d(thisArg, body) {
|
|
|
9866
9866
|
});
|
|
9867
9867
|
}
|
|
9868
9868
|
|
|
9869
|
-
function _array_like_to_array$
|
|
9869
|
+
function _array_like_to_array$a(arr, len) {
|
|
9870
9870
|
if (len == null || len > arr.length) len = arr.length;
|
|
9871
9871
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
9872
9872
|
return arr2;
|
|
9873
9873
|
}
|
|
9874
|
-
function _array_without_holes$
|
|
9875
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
9874
|
+
function _array_without_holes$6(arr) {
|
|
9875
|
+
if (Array.isArray(arr)) return _array_like_to_array$a(arr);
|
|
9876
9876
|
}
|
|
9877
|
-
function _define_property$
|
|
9877
|
+
function _define_property$o(obj, key, value) {
|
|
9878
9878
|
if (key in obj) {
|
|
9879
9879
|
Object.defineProperty(obj, key, {
|
|
9880
9880
|
value: value,
|
|
@@ -9887,13 +9887,13 @@ function _define_property$n(obj, key, value) {
|
|
|
9887
9887
|
}
|
|
9888
9888
|
return obj;
|
|
9889
9889
|
}
|
|
9890
|
-
function _iterable_to_array$
|
|
9890
|
+
function _iterable_to_array$6(iter) {
|
|
9891
9891
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
9892
9892
|
}
|
|
9893
|
-
function _non_iterable_spread$
|
|
9893
|
+
function _non_iterable_spread$6() {
|
|
9894
9894
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9895
9895
|
}
|
|
9896
|
-
function _object_spread$
|
|
9896
|
+
function _object_spread$i(target) {
|
|
9897
9897
|
for(var i = 1; i < arguments.length; i++){
|
|
9898
9898
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9899
9899
|
var ownKeys = Object.keys(source);
|
|
@@ -9903,21 +9903,21 @@ function _object_spread$h(target) {
|
|
|
9903
9903
|
}));
|
|
9904
9904
|
}
|
|
9905
9905
|
ownKeys.forEach(function(key) {
|
|
9906
|
-
_define_property$
|
|
9906
|
+
_define_property$o(target, key, source[key]);
|
|
9907
9907
|
});
|
|
9908
9908
|
}
|
|
9909
9909
|
return target;
|
|
9910
9910
|
}
|
|
9911
|
-
function _to_consumable_array$
|
|
9912
|
-
return _array_without_holes$
|
|
9911
|
+
function _to_consumable_array$6(arr) {
|
|
9912
|
+
return _array_without_holes$6(arr) || _iterable_to_array$6(arr) || _unsupported_iterable_to_array$a(arr) || _non_iterable_spread$6();
|
|
9913
9913
|
}
|
|
9914
|
-
function _unsupported_iterable_to_array$
|
|
9914
|
+
function _unsupported_iterable_to_array$a(o, minLen) {
|
|
9915
9915
|
if (!o) return;
|
|
9916
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
9916
|
+
if (typeof o === "string") return _array_like_to_array$a(o, minLen);
|
|
9917
9917
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
9918
9918
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
9919
9919
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
9920
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
9920
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$a(o, minLen);
|
|
9921
9921
|
}
|
|
9922
9922
|
/**
|
|
9923
9923
|
* Converts a {@link FirestoreAccessorArrayUpdate} into Firestore `UpdateData` using the
|
|
@@ -9948,14 +9948,14 @@ function _unsupported_iterable_to_array$9(o, minLen) {
|
|
|
9948
9948
|
result = util.mapObjectMap(fieldUpdate, function(arrayUpdate) {
|
|
9949
9949
|
var result;
|
|
9950
9950
|
if (arrayUpdate) {
|
|
9951
|
-
result = arrayUpdateFunction.apply(void 0, _to_consumable_array$
|
|
9951
|
+
result = arrayUpdateFunction.apply(void 0, _to_consumable_array$6(arrayUpdate)); // use spread operator to insert each value as an argument, as "nested arrays" are not allowed in the Firestore
|
|
9952
9952
|
}
|
|
9953
9953
|
return result;
|
|
9954
9954
|
});
|
|
9955
9955
|
}
|
|
9956
9956
|
return result;
|
|
9957
9957
|
}
|
|
9958
|
-
var updateData = _object_spread$
|
|
9958
|
+
var updateData = _object_spread$i({}, createUpdatesWithArrayFunction(union, firestore.arrayUnion), createUpdatesWithArrayFunction(remove, firestore.arrayRemove));
|
|
9959
9959
|
return updateData;
|
|
9960
9960
|
}
|
|
9961
9961
|
|
|
@@ -9977,7 +9977,7 @@ function _create_class$9(Constructor, protoProps, staticProps) {
|
|
|
9977
9977
|
if (protoProps) _defineProperties$9(Constructor.prototype, protoProps);
|
|
9978
9978
|
return Constructor;
|
|
9979
9979
|
}
|
|
9980
|
-
function _define_property$
|
|
9980
|
+
function _define_property$n(obj, key, value) {
|
|
9981
9981
|
if (key in obj) {
|
|
9982
9982
|
Object.defineProperty(obj, key, {
|
|
9983
9983
|
value: value,
|
|
@@ -10002,7 +10002,7 @@ function _define_property$m(obj, key, value) {
|
|
|
10002
10002
|
*/ var DefaultFirestoreDocumentDataAccessor = /*#__PURE__*/ function() {
|
|
10003
10003
|
function DefaultFirestoreDocumentDataAccessor(documentRef) {
|
|
10004
10004
|
_class_call_check$g(this, DefaultFirestoreDocumentDataAccessor);
|
|
10005
|
-
_define_property$
|
|
10005
|
+
_define_property$n(this, "_documentRef", void 0);
|
|
10006
10006
|
this._documentRef = documentRef;
|
|
10007
10007
|
}
|
|
10008
10008
|
_create_class$9(DefaultFirestoreDocumentDataAccessor, [
|
|
@@ -10153,7 +10153,7 @@ function _create_class$8(Constructor, protoProps, staticProps) {
|
|
|
10153
10153
|
if (protoProps) _defineProperties$8(Constructor.prototype, protoProps);
|
|
10154
10154
|
return Constructor;
|
|
10155
10155
|
}
|
|
10156
|
-
function _define_property$
|
|
10156
|
+
function _define_property$m(obj, key, value) {
|
|
10157
10157
|
if (key in obj) {
|
|
10158
10158
|
Object.defineProperty(obj, key, {
|
|
10159
10159
|
value: value,
|
|
@@ -10224,7 +10224,7 @@ function _is_native_reflect_construct$7() {
|
|
|
10224
10224
|
var _this;
|
|
10225
10225
|
_this = _call_super$7(this, WriteBatchFirestoreDocumentDataAccessor, [
|
|
10226
10226
|
documentRef
|
|
10227
|
-
]), _define_property$
|
|
10227
|
+
]), _define_property$m(_this, "_batch", void 0);
|
|
10228
10228
|
_this._batch = batch;
|
|
10229
10229
|
return _this;
|
|
10230
10230
|
}
|
|
@@ -10294,9 +10294,9 @@ function _is_native_reflect_construct$7() {
|
|
|
10294
10294
|
*/ var WriteBatchFirestoreDocumentContext = /*#__PURE__*/ function() {
|
|
10295
10295
|
function WriteBatchFirestoreDocumentContext(batch) {
|
|
10296
10296
|
_class_call_check$f(this, WriteBatchFirestoreDocumentContext);
|
|
10297
|
-
_define_property$
|
|
10298
|
-
_define_property$
|
|
10299
|
-
_define_property$
|
|
10297
|
+
_define_property$m(this, "_batch", void 0);
|
|
10298
|
+
_define_property$m(this, "contextType", exports.FirestoreDocumentContextType.BATCH);
|
|
10299
|
+
_define_property$m(this, "accessorFactory", void 0);
|
|
10300
10300
|
this._batch = batch;
|
|
10301
10301
|
this.accessorFactory = writeBatchAccessorFactory(batch);
|
|
10302
10302
|
}
|
|
@@ -10343,7 +10343,7 @@ function _create_class$7(Constructor, protoProps, staticProps) {
|
|
|
10343
10343
|
if (protoProps) _defineProperties$7(Constructor.prototype, protoProps);
|
|
10344
10344
|
return Constructor;
|
|
10345
10345
|
}
|
|
10346
|
-
function _define_property$
|
|
10346
|
+
function _define_property$l(obj, key, value) {
|
|
10347
10347
|
if (key in obj) {
|
|
10348
10348
|
Object.defineProperty(obj, key, {
|
|
10349
10349
|
value: value,
|
|
@@ -10366,8 +10366,8 @@ function _define_property$k(obj, key, value) {
|
|
|
10366
10366
|
*/ var TransactionFirestoreDocumentDataAccessor = /*#__PURE__*/ function() {
|
|
10367
10367
|
function TransactionFirestoreDocumentDataAccessor(transaction, documentRef) {
|
|
10368
10368
|
_class_call_check$e(this, TransactionFirestoreDocumentDataAccessor);
|
|
10369
|
-
_define_property$
|
|
10370
|
-
_define_property$
|
|
10369
|
+
_define_property$l(this, "_transaction", void 0);
|
|
10370
|
+
_define_property$l(this, "_documentRef", void 0);
|
|
10371
10371
|
this._transaction = transaction;
|
|
10372
10372
|
this._documentRef = documentRef;
|
|
10373
10373
|
}
|
|
@@ -10488,9 +10488,9 @@ function _define_property$k(obj, key, value) {
|
|
|
10488
10488
|
*/ var TransactionFirestoreDocumentContext = /*#__PURE__*/ function() {
|
|
10489
10489
|
function TransactionFirestoreDocumentContext(transaction) {
|
|
10490
10490
|
_class_call_check$e(this, TransactionFirestoreDocumentContext);
|
|
10491
|
-
_define_property$
|
|
10492
|
-
_define_property$
|
|
10493
|
-
_define_property$
|
|
10491
|
+
_define_property$l(this, "_transaction", void 0);
|
|
10492
|
+
_define_property$l(this, "contextType", exports.FirestoreDocumentContextType.TRANSACTION);
|
|
10493
|
+
_define_property$l(this, "accessorFactory", void 0);
|
|
10494
10494
|
this._transaction = transaction;
|
|
10495
10495
|
this.accessorFactory = transactionAccessorFactory(transaction);
|
|
10496
10496
|
}
|
|
@@ -10695,15 +10695,15 @@ function _ts_generator$c(thisArg, body) {
|
|
|
10695
10695
|
};
|
|
10696
10696
|
}
|
|
10697
10697
|
|
|
10698
|
-
function _array_like_to_array$
|
|
10698
|
+
function _array_like_to_array$9(arr, len) {
|
|
10699
10699
|
if (len == null || len > arr.length) len = arr.length;
|
|
10700
10700
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
10701
10701
|
return arr2;
|
|
10702
10702
|
}
|
|
10703
|
-
function _array_without_holes$
|
|
10704
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
10703
|
+
function _array_without_holes$5(arr) {
|
|
10704
|
+
if (Array.isArray(arr)) return _array_like_to_array$9(arr);
|
|
10705
10705
|
}
|
|
10706
|
-
function _define_property$
|
|
10706
|
+
function _define_property$k(obj, key, value) {
|
|
10707
10707
|
if (key in obj) {
|
|
10708
10708
|
Object.defineProperty(obj, key, {
|
|
10709
10709
|
value: value,
|
|
@@ -10716,13 +10716,13 @@ function _define_property$j(obj, key, value) {
|
|
|
10716
10716
|
}
|
|
10717
10717
|
return obj;
|
|
10718
10718
|
}
|
|
10719
|
-
function _iterable_to_array$
|
|
10719
|
+
function _iterable_to_array$5(iter) {
|
|
10720
10720
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
10721
10721
|
}
|
|
10722
|
-
function _non_iterable_spread$
|
|
10722
|
+
function _non_iterable_spread$5() {
|
|
10723
10723
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10724
10724
|
}
|
|
10725
|
-
function _object_spread$
|
|
10725
|
+
function _object_spread$h(target) {
|
|
10726
10726
|
for(var i = 1; i < arguments.length; i++){
|
|
10727
10727
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10728
10728
|
var ownKeys = Object.keys(source);
|
|
@@ -10732,12 +10732,12 @@ function _object_spread$g(target) {
|
|
|
10732
10732
|
}));
|
|
10733
10733
|
}
|
|
10734
10734
|
ownKeys.forEach(function(key) {
|
|
10735
|
-
_define_property$
|
|
10735
|
+
_define_property$k(target, key, source[key]);
|
|
10736
10736
|
});
|
|
10737
10737
|
}
|
|
10738
10738
|
return target;
|
|
10739
10739
|
}
|
|
10740
|
-
function ownKeys$
|
|
10740
|
+
function ownKeys$e(object, enumerableOnly) {
|
|
10741
10741
|
var keys = Object.keys(object);
|
|
10742
10742
|
if (Object.getOwnPropertySymbols) {
|
|
10743
10743
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10745,27 +10745,27 @@ function ownKeys$d(object, enumerableOnly) {
|
|
|
10745
10745
|
}
|
|
10746
10746
|
return keys;
|
|
10747
10747
|
}
|
|
10748
|
-
function _object_spread_props$
|
|
10748
|
+
function _object_spread_props$e(target, source) {
|
|
10749
10749
|
source = source != null ? source : {};
|
|
10750
10750
|
if (Object.getOwnPropertyDescriptors) {
|
|
10751
10751
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10752
10752
|
} else {
|
|
10753
|
-
ownKeys$
|
|
10753
|
+
ownKeys$e(Object(source)).forEach(function(key) {
|
|
10754
10754
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10755
10755
|
});
|
|
10756
10756
|
}
|
|
10757
10757
|
return target;
|
|
10758
10758
|
}
|
|
10759
|
-
function _to_consumable_array$
|
|
10760
|
-
return _array_without_holes$
|
|
10759
|
+
function _to_consumable_array$5(arr) {
|
|
10760
|
+
return _array_without_holes$5(arr) || _iterable_to_array$5(arr) || _unsupported_iterable_to_array$9(arr) || _non_iterable_spread$5();
|
|
10761
10761
|
}
|
|
10762
|
-
function _unsupported_iterable_to_array$
|
|
10762
|
+
function _unsupported_iterable_to_array$9(o, minLen) {
|
|
10763
10763
|
if (!o) return;
|
|
10764
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
10764
|
+
if (typeof o === "string") return _array_like_to_array$9(o, minLen);
|
|
10765
10765
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
10766
10766
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
10767
10767
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
10768
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
10768
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$9(o, minLen);
|
|
10769
10769
|
}
|
|
10770
10770
|
/**
|
|
10771
10771
|
* Appends one or more `QueryConstraint` values to the builder, returning a new builder instance.
|
|
@@ -10776,41 +10776,41 @@ function _unsupported_iterable_to_array$8(o, minLen) {
|
|
|
10776
10776
|
*/ function addConstraintToBuilder(builder, constraint) {
|
|
10777
10777
|
return {
|
|
10778
10778
|
query: builder.query,
|
|
10779
|
-
constraints: _to_consumable_array$
|
|
10779
|
+
constraints: _to_consumable_array$5(builder.constraints).concat(_to_consumable_array$5(Array.isArray(constraint) ? constraint : [
|
|
10780
10780
|
constraint
|
|
10781
10781
|
]))
|
|
10782
10782
|
};
|
|
10783
10783
|
}
|
|
10784
|
-
var _obj;
|
|
10784
|
+
var _obj$1;
|
|
10785
10785
|
/**
|
|
10786
10786
|
* Maps each abstract {@link FirestoreQueryConstraintType} to its client-side `firebase/firestore`
|
|
10787
10787
|
* implementation. The `FIRESTORE_OFFSET_QUERY_CONSTRAINT_TYPE` is `undefined` because Firestore
|
|
10788
10788
|
* client SDK does not support offset-based pagination (server-only feature).
|
|
10789
|
-
*/ var FIRESTORE_CLIENT_QUERY_CONSTRAINT_HANDLER_MAPPING = (_obj = {}, _define_property$
|
|
10789
|
+
*/ var FIRESTORE_CLIENT_QUERY_CONSTRAINT_HANDLER_MAPPING = (_obj$1 = {}, _define_property$k(_obj$1, FIRESTORE_LIMIT_QUERY_CONSTRAINT_TYPE, function(builder, data) {
|
|
10790
10790
|
return addConstraintToBuilder(builder, firestore.limit(data.limit));
|
|
10791
|
-
}), _define_property$
|
|
10791
|
+
}), _define_property$k(_obj$1, FIRESTORE_LIMIT_TO_LAST_QUERY_CONSTRAINT_TYPE, function(builder, data) {
|
|
10792
10792
|
return addConstraintToBuilder(builder, firestore.limitToLast(data.limit));
|
|
10793
|
-
}), _define_property$
|
|
10793
|
+
}), _define_property$k(_obj$1, FIRESTORE_ORDER_BY_QUERY_CONSTRAINT_TYPE, function(builder, data) {
|
|
10794
10794
|
return addConstraintToBuilder(builder, firestore.orderBy(data.fieldPath, data.directionStr));
|
|
10795
|
-
}), _define_property$
|
|
10795
|
+
}), _define_property$k(_obj$1, FIRESTORE_ORDER_BY_DOCUMENT_ID_QUERY_CONSTRAINT_TYPE, function(builder, data) {
|
|
10796
10796
|
return addConstraintToBuilder(builder, firestore.orderBy(firestore.documentId(), data.directionStr));
|
|
10797
|
-
}), _define_property$
|
|
10797
|
+
}), _define_property$k(_obj$1, FIRESTORE_WHERE_QUERY_CONSTRAINT_TYPE, function(builder, data) {
|
|
10798
10798
|
return addConstraintToBuilder(builder, firestore.where(data.fieldPath, data.opStr, data.value));
|
|
10799
|
-
}), _define_property$
|
|
10799
|
+
}), _define_property$k(_obj$1, FIRESTORE_WHERE_DOCUMENT_ID_QUERY_CONSTRAINT_TYPE, function(builder, data) {
|
|
10800
10800
|
return addConstraintToBuilder(builder, firestore.where(firestore.documentId(), data.opStr, data.value));
|
|
10801
|
-
}), _define_property$
|
|
10801
|
+
}), _define_property$k(_obj$1, FIRESTORE_OFFSET_QUERY_CONSTRAINT_TYPE, undefined), _define_property$k(_obj$1, FIRESTORE_START_AT_QUERY_CONSTRAINT_TYPE, function(builder, data) {
|
|
10802
10802
|
return addConstraintToBuilder(builder, firestore.startAt(data.snapshot));
|
|
10803
|
-
}), _define_property$
|
|
10804
|
-
return addConstraintToBuilder(builder, firestore.startAt.apply(void 0, _to_consumable_array$
|
|
10805
|
-
}), _define_property$
|
|
10803
|
+
}), _define_property$k(_obj$1, FIRESTORE_START_AT_VALUE_QUERY_CONSTRAINT_TYPE, function(builder, data) {
|
|
10804
|
+
return addConstraintToBuilder(builder, firestore.startAt.apply(void 0, _to_consumable_array$5(data.fieldValues)));
|
|
10805
|
+
}), _define_property$k(_obj$1, FIRESTORE_START_AFTER_QUERY_CONSTRAINT_TYPE, function(builder, data) {
|
|
10806
10806
|
return addConstraintToBuilder(builder, firestore.startAfter(data.snapshot));
|
|
10807
|
-
}), _define_property$
|
|
10807
|
+
}), _define_property$k(_obj$1, FIRESTORE_END_AT_QUERY_CONSTRAINT_TYPE, function(builder, data) {
|
|
10808
10808
|
return addConstraintToBuilder(builder, firestore.endAt(data.snapshot));
|
|
10809
|
-
}), _define_property$
|
|
10810
|
-
return addConstraintToBuilder(builder, firestore.endAt.apply(void 0, _to_consumable_array$
|
|
10811
|
-
}), _define_property$
|
|
10809
|
+
}), _define_property$k(_obj$1, FIRESTORE_END_AT_VALUE_QUERY_CONSTRAINT_TYPE, function(builder, data) {
|
|
10810
|
+
return addConstraintToBuilder(builder, firestore.endAt.apply(void 0, _to_consumable_array$5(data.fieldValues)));
|
|
10811
|
+
}), _define_property$k(_obj$1, FIRESTORE_END_BEFORE_QUERY_CONSTRAINT_TYPE, function(builder, data) {
|
|
10812
10812
|
return addConstraintToBuilder(builder, firestore.endBefore(data.snapshot));
|
|
10813
|
-
}), _obj);
|
|
10813
|
+
}), _obj$1);
|
|
10814
10814
|
/**
|
|
10815
10815
|
* Creates a {@link FirestoreQueryConstraintFunctionsDriver} for the client `firebase/firestore` SDK.
|
|
10816
10816
|
*
|
|
@@ -10831,7 +10831,7 @@ var _obj;
|
|
|
10831
10831
|
var initialQuery = param.query, constraints = param.constraints;
|
|
10832
10832
|
return firestore.query.apply(void 0, [
|
|
10833
10833
|
initialQuery
|
|
10834
|
-
].concat(_to_consumable_array$
|
|
10834
|
+
].concat(_to_consumable_array$5(constraints)));
|
|
10835
10835
|
},
|
|
10836
10836
|
documentIdFieldPath: function documentIdFieldPath() {
|
|
10837
10837
|
return firestore.documentId();
|
|
@@ -10853,7 +10853,7 @@ var _obj;
|
|
|
10853
10853
|
* // Used internally by firebaseFirestoreClientDrivers()
|
|
10854
10854
|
* ```
|
|
10855
10855
|
*/ function firebaseFirestoreQueryDriver() {
|
|
10856
|
-
return _object_spread_props$
|
|
10856
|
+
return _object_spread_props$e(_object_spread$h({}, firebaseFirestoreQueryConstraintFunctionsDriver()), {
|
|
10857
10857
|
countDocs: function countDocs(query) {
|
|
10858
10858
|
return firestore.getCountFromServer(query).then(function(x) {
|
|
10859
10859
|
return x.data().count;
|
|
@@ -10949,7 +10949,7 @@ function _create_class$6(Constructor, protoProps, staticProps) {
|
|
|
10949
10949
|
if (staticProps) _defineProperties$6(Constructor, staticProps);
|
|
10950
10950
|
return Constructor;
|
|
10951
10951
|
}
|
|
10952
|
-
function _define_property$
|
|
10952
|
+
function _define_property$j(obj, key, value) {
|
|
10953
10953
|
if (key in obj) {
|
|
10954
10954
|
Object.defineProperty(obj, key, {
|
|
10955
10955
|
value: value,
|
|
@@ -10981,7 +10981,7 @@ function _inherits$6(subClass, superClass) {
|
|
|
10981
10981
|
});
|
|
10982
10982
|
if (superClass) _set_prototype_of$6(subClass, superClass);
|
|
10983
10983
|
}
|
|
10984
|
-
function _object_spread$
|
|
10984
|
+
function _object_spread$g(target) {
|
|
10985
10985
|
for(var i = 1; i < arguments.length; i++){
|
|
10986
10986
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10987
10987
|
var ownKeys = Object.keys(source);
|
|
@@ -10991,7 +10991,7 @@ function _object_spread$f(target) {
|
|
|
10991
10991
|
}));
|
|
10992
10992
|
}
|
|
10993
10993
|
ownKeys.forEach(function(key) {
|
|
10994
|
-
_define_property$
|
|
10994
|
+
_define_property$j(target, key, source[key]);
|
|
10995
10995
|
});
|
|
10996
10996
|
}
|
|
10997
10997
|
return target;
|
|
@@ -11054,7 +11054,7 @@ function _is_native_reflect_construct$6() {
|
|
|
11054
11054
|
var _this;
|
|
11055
11055
|
_this = _call_super$6(this, FirebaseServerError, [
|
|
11056
11056
|
serverError
|
|
11057
|
-
]), _define_property$
|
|
11057
|
+
]), _define_property$j(_this, "firebaseError", void 0);
|
|
11058
11058
|
_this.firebaseError = firebaseError;
|
|
11059
11059
|
return _this;
|
|
11060
11060
|
}
|
|
@@ -11076,7 +11076,7 @@ function _is_native_reflect_construct$6() {
|
|
|
11076
11076
|
* @returns A new {@link FirebaseServerError} wrapping the given Firebase error with structured server error details.
|
|
11077
11077
|
*/ function fromFirebaseError(error) {
|
|
11078
11078
|
var details = error.details;
|
|
11079
|
-
details = _object_spread$
|
|
11079
|
+
details = _object_spread$g({
|
|
11080
11080
|
status: 0,
|
|
11081
11081
|
message: error.message || error.name,
|
|
11082
11082
|
code: error.code
|
|
@@ -11118,7 +11118,7 @@ function _async_to_generator$b(fn) {
|
|
|
11118
11118
|
});
|
|
11119
11119
|
};
|
|
11120
11120
|
}
|
|
11121
|
-
function _define_property$
|
|
11121
|
+
function _define_property$i(obj, key, value) {
|
|
11122
11122
|
if (key in obj) {
|
|
11123
11123
|
Object.defineProperty(obj, key, {
|
|
11124
11124
|
value: value,
|
|
@@ -11131,7 +11131,7 @@ function _define_property$h(obj, key, value) {
|
|
|
11131
11131
|
}
|
|
11132
11132
|
return obj;
|
|
11133
11133
|
}
|
|
11134
|
-
function _object_spread$
|
|
11134
|
+
function _object_spread$f(target) {
|
|
11135
11135
|
for(var i = 1; i < arguments.length; i++){
|
|
11136
11136
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
11137
11137
|
var ownKeys = Object.keys(source);
|
|
@@ -11141,12 +11141,12 @@ function _object_spread$e(target) {
|
|
|
11141
11141
|
}));
|
|
11142
11142
|
}
|
|
11143
11143
|
ownKeys.forEach(function(key) {
|
|
11144
|
-
_define_property$
|
|
11144
|
+
_define_property$i(target, key, source[key]);
|
|
11145
11145
|
});
|
|
11146
11146
|
}
|
|
11147
11147
|
return target;
|
|
11148
11148
|
}
|
|
11149
|
-
function ownKeys$
|
|
11149
|
+
function ownKeys$d(object, enumerableOnly) {
|
|
11150
11150
|
var keys = Object.keys(object);
|
|
11151
11151
|
if (Object.getOwnPropertySymbols) {
|
|
11152
11152
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -11154,12 +11154,12 @@ function ownKeys$c(object, enumerableOnly) {
|
|
|
11154
11154
|
}
|
|
11155
11155
|
return keys;
|
|
11156
11156
|
}
|
|
11157
|
-
function _object_spread_props$
|
|
11157
|
+
function _object_spread_props$d(target, source) {
|
|
11158
11158
|
source = source != null ? source : {};
|
|
11159
11159
|
if (Object.getOwnPropertyDescriptors) {
|
|
11160
11160
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
11161
11161
|
} else {
|
|
11162
|
-
ownKeys$
|
|
11162
|
+
ownKeys$d(Object(source)).forEach(function(key) {
|
|
11163
11163
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
11164
11164
|
});
|
|
11165
11165
|
}
|
|
@@ -11310,7 +11310,7 @@ function mapHttpsCallable(callable, wrap) {
|
|
|
11310
11310
|
mappedResultData = _state.sent();
|
|
11311
11311
|
return [
|
|
11312
11312
|
2,
|
|
11313
|
-
directData ? mappedResultData : _object_spread_props$
|
|
11313
|
+
directData ? mappedResultData : _object_spread_props$d(_object_spread$f({}, result), {
|
|
11314
11314
|
data: mappedResultData
|
|
11315
11315
|
})
|
|
11316
11316
|
];
|
|
@@ -11553,7 +11553,7 @@ function onCallTypedModelParams(modelTypeInput, data, specifier, call) {
|
|
|
11553
11553
|
return onCallTypedModelParamsFunction(call)(modelTypeInput, data, specifier);
|
|
11554
11554
|
}
|
|
11555
11555
|
|
|
11556
|
-
function _array_like_to_array$
|
|
11556
|
+
function _array_like_to_array$8(arr, len) {
|
|
11557
11557
|
if (len == null || len > arr.length) len = arr.length;
|
|
11558
11558
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
11559
11559
|
return arr2;
|
|
@@ -11589,15 +11589,15 @@ function _non_iterable_rest$3() {
|
|
|
11589
11589
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
11590
11590
|
}
|
|
11591
11591
|
function _sliced_to_array$3(arr, i) {
|
|
11592
|
-
return _array_with_holes$3(arr) || _iterable_to_array_limit$3(arr, i) || _unsupported_iterable_to_array$
|
|
11592
|
+
return _array_with_holes$3(arr) || _iterable_to_array_limit$3(arr, i) || _unsupported_iterable_to_array$8(arr, i) || _non_iterable_rest$3();
|
|
11593
11593
|
}
|
|
11594
|
-
function _unsupported_iterable_to_array$
|
|
11594
|
+
function _unsupported_iterable_to_array$8(o, minLen) {
|
|
11595
11595
|
if (!o) return;
|
|
11596
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
11596
|
+
if (typeof o === "string") return _array_like_to_array$8(o, minLen);
|
|
11597
11597
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
11598
11598
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
11599
11599
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
11600
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
11600
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$8(o, minLen);
|
|
11601
11601
|
}
|
|
11602
11602
|
/**
|
|
11603
11603
|
* Default specifier string (`'_'`) used when a CRUD operation has specifiers but one
|
|
@@ -12434,7 +12434,7 @@ var OFFLINE_ACCESS_OIDC_SCOPE_DETAILS = {
|
|
|
12434
12434
|
return result;
|
|
12435
12435
|
}
|
|
12436
12436
|
|
|
12437
|
-
function _array_like_to_array$
|
|
12437
|
+
function _array_like_to_array$7(arr, len) {
|
|
12438
12438
|
if (len == null || len > arr.length) len = arr.length;
|
|
12439
12439
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
12440
12440
|
return arr2;
|
|
@@ -12470,15 +12470,15 @@ function _non_iterable_rest$2() {
|
|
|
12470
12470
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
12471
12471
|
}
|
|
12472
12472
|
function _sliced_to_array$2(arr, i) {
|
|
12473
|
-
return _array_with_holes$2(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$
|
|
12473
|
+
return _array_with_holes$2(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$7(arr, i) || _non_iterable_rest$2();
|
|
12474
12474
|
}
|
|
12475
|
-
function _unsupported_iterable_to_array$
|
|
12475
|
+
function _unsupported_iterable_to_array$7(o, minLen) {
|
|
12476
12476
|
if (!o) return;
|
|
12477
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
12477
|
+
if (typeof o === "string") return _array_like_to_array$7(o, minLen);
|
|
12478
12478
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
12479
12479
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
12480
12480
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
12481
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
12481
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$7(o, minLen);
|
|
12482
12482
|
}
|
|
12483
12483
|
/**
|
|
12484
12484
|
* Minimum password length enforced by Firebase Authentication.
|
|
@@ -12711,7 +12711,7 @@ function _class_call_check$b(instance, Constructor) {
|
|
|
12711
12711
|
throw new TypeError("Cannot call a class as a function");
|
|
12712
12712
|
}
|
|
12713
12713
|
}
|
|
12714
|
-
function _define_property$
|
|
12714
|
+
function _define_property$h(obj, key, value) {
|
|
12715
12715
|
if (key in obj) {
|
|
12716
12716
|
Object.defineProperty(obj, key, {
|
|
12717
12717
|
value: value,
|
|
@@ -12741,7 +12741,7 @@ function _define_property$g(obj, key, value) {
|
|
|
12741
12741
|
* Entry in the list of available scheduled functions returned by the development endpoint.
|
|
12742
12742
|
*/ var ScheduledFunctionDevelopmentFirebaseFunctionListEntry = function ScheduledFunctionDevelopmentFirebaseFunctionListEntry() {
|
|
12743
12743
|
_class_call_check$b(this, ScheduledFunctionDevelopmentFirebaseFunctionListEntry);
|
|
12744
|
-
_define_property$
|
|
12744
|
+
_define_property$h(this, "name", void 0);
|
|
12745
12745
|
};
|
|
12746
12746
|
/**
|
|
12747
12747
|
* Development function specifier used to route requests to the scheduled function endpoint.
|
|
@@ -12906,7 +12906,7 @@ function _create_class$5(Constructor, protoProps, staticProps) {
|
|
|
12906
12906
|
if (protoProps) _defineProperties$5(Constructor.prototype, protoProps);
|
|
12907
12907
|
return Constructor;
|
|
12908
12908
|
}
|
|
12909
|
-
function _define_property$
|
|
12909
|
+
function _define_property$g(obj, key, value) {
|
|
12910
12910
|
if (key in obj) {
|
|
12911
12911
|
Object.defineProperty(obj, key, {
|
|
12912
12912
|
value: value,
|
|
@@ -13074,7 +13074,7 @@ function _ts_generator$a(thisArg, body) {
|
|
|
13074
13074
|
var _this;
|
|
13075
13075
|
_this = _call_super$5(this, FirebaseModelPermissionServiceInstance, [
|
|
13076
13076
|
delegate
|
|
13077
|
-
]), _define_property$
|
|
13077
|
+
]), _define_property$g(_this, "_delegate", void 0);
|
|
13078
13078
|
_this._delegate = delegate;
|
|
13079
13079
|
return _this;
|
|
13080
13080
|
}
|
|
@@ -13159,7 +13159,7 @@ function _create_class$4(Constructor, protoProps, staticProps) {
|
|
|
13159
13159
|
if (protoProps) _defineProperties$4(Constructor.prototype, protoProps);
|
|
13160
13160
|
return Constructor;
|
|
13161
13161
|
}
|
|
13162
|
-
function _define_property$
|
|
13162
|
+
function _define_property$f(obj, key, value) {
|
|
13163
13163
|
if (key in obj) {
|
|
13164
13164
|
Object.defineProperty(obj, key, {
|
|
13165
13165
|
value: value,
|
|
@@ -13180,8 +13180,8 @@ function _define_property$e(obj, key, value) {
|
|
|
13180
13180
|
*/ var ContextGrantedModelRolesReaderInstance = /*#__PURE__*/ function() {
|
|
13181
13181
|
function ContextGrantedModelRolesReaderInstance(contextGrantedModelRoles) {
|
|
13182
13182
|
_class_call_check$9(this, ContextGrantedModelRolesReaderInstance);
|
|
13183
|
-
_define_property$
|
|
13184
|
-
_define_property$
|
|
13183
|
+
_define_property$f(this, "_contextGrantedModelRoles", void 0);
|
|
13184
|
+
_define_property$f(this, "_roleReader", void 0);
|
|
13185
13185
|
this._contextGrantedModelRoles = contextGrantedModelRoles;
|
|
13186
13186
|
this._roleReader = model.grantedRoleMapReader(contextGrantedModelRoles.roleMap);
|
|
13187
13187
|
}
|
|
@@ -13703,7 +13703,7 @@ function _ts_generator$9(thisArg, body) {
|
|
|
13703
13703
|
* Error code for an invalid or inaccessible cursor document key in a query request.
|
|
13704
13704
|
*/ var BAD_DOCUMENT_QUERY_CURSOR_ERROR_CODE = 'BAD_DOCUMENT_QUERY_CURSOR';
|
|
13705
13705
|
|
|
13706
|
-
function _define_property$
|
|
13706
|
+
function _define_property$e(obj, key, value) {
|
|
13707
13707
|
if (key in obj) {
|
|
13708
13708
|
Object.defineProperty(obj, key, {
|
|
13709
13709
|
value: value,
|
|
@@ -13716,7 +13716,7 @@ function _define_property$d(obj, key, value) {
|
|
|
13716
13716
|
}
|
|
13717
13717
|
return obj;
|
|
13718
13718
|
}
|
|
13719
|
-
function _object_spread$
|
|
13719
|
+
function _object_spread$e(target) {
|
|
13720
13720
|
for(var i = 1; i < arguments.length; i++){
|
|
13721
13721
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
13722
13722
|
var ownKeys = Object.keys(source);
|
|
@@ -13726,12 +13726,12 @@ function _object_spread$d(target) {
|
|
|
13726
13726
|
}));
|
|
13727
13727
|
}
|
|
13728
13728
|
ownKeys.forEach(function(key) {
|
|
13729
|
-
_define_property$
|
|
13729
|
+
_define_property$e(target, key, source[key]);
|
|
13730
13730
|
});
|
|
13731
13731
|
}
|
|
13732
13732
|
return target;
|
|
13733
13733
|
}
|
|
13734
|
-
function ownKeys$
|
|
13734
|
+
function ownKeys$c(object, enumerableOnly) {
|
|
13735
13735
|
var keys = Object.keys(object);
|
|
13736
13736
|
if (Object.getOwnPropertySymbols) {
|
|
13737
13737
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -13739,12 +13739,12 @@ function ownKeys$b(object, enumerableOnly) {
|
|
|
13739
13739
|
}
|
|
13740
13740
|
return keys;
|
|
13741
13741
|
}
|
|
13742
|
-
function _object_spread_props$
|
|
13742
|
+
function _object_spread_props$c(target, source) {
|
|
13743
13743
|
source = source != null ? source : {};
|
|
13744
13744
|
if (Object.getOwnPropertyDescriptors) {
|
|
13745
13745
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
13746
13746
|
} else {
|
|
13747
|
-
ownKeys$
|
|
13747
|
+
ownKeys$c(Object(source)).forEach(function(key) {
|
|
13748
13748
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
13749
13749
|
});
|
|
13750
13750
|
}
|
|
@@ -13883,7 +13883,7 @@ function _object_spread_props$b(target, source) {
|
|
|
13883
13883
|
*/ function firebaseModelsService(services) {
|
|
13884
13884
|
var firebaseModelsServiceFunction = function firebaseModelsServiceFunction1(type, context) {
|
|
13885
13885
|
var firebaseModelService = services[type];
|
|
13886
|
-
var contextWithService = _object_spread_props$
|
|
13886
|
+
var contextWithService = _object_spread_props$c(_object_spread$e({}, context), {
|
|
13887
13887
|
service: firebaseModelsServiceFunction
|
|
13888
13888
|
});
|
|
13889
13889
|
var service = inContextFirebaseModelServiceFactory(firebaseModelService)(contextWithService);
|
|
@@ -14036,7 +14036,7 @@ function _async_to_generator$8(fn) {
|
|
|
14036
14036
|
});
|
|
14037
14037
|
};
|
|
14038
14038
|
}
|
|
14039
|
-
function _define_property$
|
|
14039
|
+
function _define_property$d(obj, key, value) {
|
|
14040
14040
|
if (key in obj) {
|
|
14041
14041
|
Object.defineProperty(obj, key, {
|
|
14042
14042
|
value: value,
|
|
@@ -14049,7 +14049,7 @@ function _define_property$c(obj, key, value) {
|
|
|
14049
14049
|
}
|
|
14050
14050
|
return obj;
|
|
14051
14051
|
}
|
|
14052
|
-
function _object_spread$
|
|
14052
|
+
function _object_spread$d(target) {
|
|
14053
14053
|
for(var i = 1; i < arguments.length; i++){
|
|
14054
14054
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14055
14055
|
var ownKeys = Object.keys(source);
|
|
@@ -14059,12 +14059,12 @@ function _object_spread$c(target) {
|
|
|
14059
14059
|
}));
|
|
14060
14060
|
}
|
|
14061
14061
|
ownKeys.forEach(function(key) {
|
|
14062
|
-
_define_property$
|
|
14062
|
+
_define_property$d(target, key, source[key]);
|
|
14063
14063
|
});
|
|
14064
14064
|
}
|
|
14065
14065
|
return target;
|
|
14066
14066
|
}
|
|
14067
|
-
function ownKeys$
|
|
14067
|
+
function ownKeys$b(object, enumerableOnly) {
|
|
14068
14068
|
var keys = Object.keys(object);
|
|
14069
14069
|
if (Object.getOwnPropertySymbols) {
|
|
14070
14070
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -14072,12 +14072,12 @@ function ownKeys$a(object, enumerableOnly) {
|
|
|
14072
14072
|
}
|
|
14073
14073
|
return keys;
|
|
14074
14074
|
}
|
|
14075
|
-
function _object_spread_props$
|
|
14075
|
+
function _object_spread_props$b(target, source) {
|
|
14076
14076
|
source = source != null ? source : {};
|
|
14077
14077
|
if (Object.getOwnPropertyDescriptors) {
|
|
14078
14078
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
14079
14079
|
} else {
|
|
14080
|
-
ownKeys$
|
|
14080
|
+
ownKeys$b(Object(source)).forEach(function(key) {
|
|
14081
14081
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
14082
14082
|
});
|
|
14083
14083
|
}
|
|
@@ -14226,7 +14226,7 @@ function _ts_generator$8(thisArg, body) {
|
|
|
14226
14226
|
},
|
|
14227
14227
|
buildInputForNextPage: function buildInputForNextPage(pageResult, input, _options) {
|
|
14228
14228
|
var _pageResult_nextPageCursor;
|
|
14229
|
-
return _object_spread_props$
|
|
14229
|
+
return _object_spread_props$b(_object_spread$d({}, input), {
|
|
14230
14230
|
pageToken: (_pageResult_nextPageCursor = pageResult.nextPageCursor) !== null && _pageResult_nextPageCursor !== void 0 ? _pageResult_nextPageCursor : undefined
|
|
14231
14231
|
});
|
|
14232
14232
|
}
|
|
@@ -14241,7 +14241,7 @@ function _ts_generator$8(thisArg, body) {
|
|
|
14241
14241
|
* @returns The result of the paginated per-item iteration.
|
|
14242
14242
|
*/ function iterateStorageListFilesByEachFile(input) {
|
|
14243
14243
|
var folder = input.folder, includeNestedResults = input.includeNestedResults, pageToken = input.pageToken;
|
|
14244
|
-
return fetch.iterateFetchPagesByEachItem(_object_spread_props$
|
|
14244
|
+
return fetch.iterateFetchPagesByEachItem(_object_spread_props$b(_object_spread$d({}, input), {
|
|
14245
14245
|
input: {
|
|
14246
14246
|
folder: folder,
|
|
14247
14247
|
includeNestedResults: includeNestedResults,
|
|
@@ -14259,7 +14259,7 @@ function _ts_generator$8(thisArg, body) {
|
|
|
14259
14259
|
* @returns The result of the paginated page-level iteration.
|
|
14260
14260
|
*/ function iterateStorageListFiles(input) {
|
|
14261
14261
|
var folder = input.folder, includeNestedResults = input.includeNestedResults, pageToken = input.pageToken;
|
|
14262
|
-
return fetch.iterateFetchPages(_object_spread_props$
|
|
14262
|
+
return fetch.iterateFetchPages(_object_spread_props$b(_object_spread$d({}, input), {
|
|
14263
14263
|
input: {
|
|
14264
14264
|
folder: folder,
|
|
14265
14265
|
includeNestedResults: includeNestedResults,
|
|
@@ -14654,13 +14654,13 @@ function _ts_generator$7(thisArg, body) {
|
|
|
14654
14654
|
};
|
|
14655
14655
|
}
|
|
14656
14656
|
|
|
14657
|
-
function _array_like_to_array$
|
|
14657
|
+
function _array_like_to_array$6(arr, len) {
|
|
14658
14658
|
if (len == null || len > arr.length) len = arr.length;
|
|
14659
14659
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
14660
14660
|
return arr2;
|
|
14661
14661
|
}
|
|
14662
|
-
function _array_without_holes$
|
|
14663
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
14662
|
+
function _array_without_holes$4(arr) {
|
|
14663
|
+
if (Array.isArray(arr)) return _array_like_to_array$6(arr);
|
|
14664
14664
|
}
|
|
14665
14665
|
function asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, key, arg) {
|
|
14666
14666
|
try {
|
|
@@ -14691,7 +14691,7 @@ function _async_to_generator$6(fn) {
|
|
|
14691
14691
|
});
|
|
14692
14692
|
};
|
|
14693
14693
|
}
|
|
14694
|
-
function _define_property$
|
|
14694
|
+
function _define_property$c(obj, key, value) {
|
|
14695
14695
|
if (key in obj) {
|
|
14696
14696
|
Object.defineProperty(obj, key, {
|
|
14697
14697
|
value: value,
|
|
@@ -14704,13 +14704,13 @@ function _define_property$b(obj, key, value) {
|
|
|
14704
14704
|
}
|
|
14705
14705
|
return obj;
|
|
14706
14706
|
}
|
|
14707
|
-
function _iterable_to_array$
|
|
14707
|
+
function _iterable_to_array$4(iter) {
|
|
14708
14708
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
14709
14709
|
}
|
|
14710
|
-
function _non_iterable_spread$
|
|
14710
|
+
function _non_iterable_spread$4() {
|
|
14711
14711
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14712
14712
|
}
|
|
14713
|
-
function _object_spread$
|
|
14713
|
+
function _object_spread$c(target) {
|
|
14714
14714
|
for(var i = 1; i < arguments.length; i++){
|
|
14715
14715
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14716
14716
|
var ownKeys = Object.keys(source);
|
|
@@ -14720,12 +14720,12 @@ function _object_spread$b(target) {
|
|
|
14720
14720
|
}));
|
|
14721
14721
|
}
|
|
14722
14722
|
ownKeys.forEach(function(key) {
|
|
14723
|
-
_define_property$
|
|
14723
|
+
_define_property$c(target, key, source[key]);
|
|
14724
14724
|
});
|
|
14725
14725
|
}
|
|
14726
14726
|
return target;
|
|
14727
14727
|
}
|
|
14728
|
-
function ownKeys$
|
|
14728
|
+
function ownKeys$a(object, enumerableOnly) {
|
|
14729
14729
|
var keys = Object.keys(object);
|
|
14730
14730
|
if (Object.getOwnPropertySymbols) {
|
|
14731
14731
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -14733,27 +14733,27 @@ function ownKeys$9(object, enumerableOnly) {
|
|
|
14733
14733
|
}
|
|
14734
14734
|
return keys;
|
|
14735
14735
|
}
|
|
14736
|
-
function _object_spread_props$
|
|
14736
|
+
function _object_spread_props$a(target, source) {
|
|
14737
14737
|
source = source != null ? source : {};
|
|
14738
14738
|
if (Object.getOwnPropertyDescriptors) {
|
|
14739
14739
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
14740
14740
|
} else {
|
|
14741
|
-
ownKeys$
|
|
14741
|
+
ownKeys$a(Object(source)).forEach(function(key) {
|
|
14742
14742
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
14743
14743
|
});
|
|
14744
14744
|
}
|
|
14745
14745
|
return target;
|
|
14746
14746
|
}
|
|
14747
|
-
function _to_consumable_array$
|
|
14748
|
-
return _array_without_holes$
|
|
14747
|
+
function _to_consumable_array$4(arr) {
|
|
14748
|
+
return _array_without_holes$4(arr) || _iterable_to_array$4(arr) || _unsupported_iterable_to_array$6(arr) || _non_iterable_spread$4();
|
|
14749
14749
|
}
|
|
14750
|
-
function _unsupported_iterable_to_array$
|
|
14750
|
+
function _unsupported_iterable_to_array$6(o, minLen) {
|
|
14751
14751
|
if (!o) return;
|
|
14752
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
14752
|
+
if (typeof o === "string") return _array_like_to_array$6(o, minLen);
|
|
14753
14753
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
14754
14754
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
14755
14755
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
14756
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
14756
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$6(o, minLen);
|
|
14757
14757
|
}
|
|
14758
14758
|
function _ts_generator$6(thisArg, body) {
|
|
14759
14759
|
var f, y, t, _ = {
|
|
@@ -14924,7 +14924,7 @@ function _ts_generator$6(thisArg, body) {
|
|
|
14924
14924
|
contentEncoding: (_options_metadata2 = options.metadata) === null || _options_metadata2 === void 0 ? void 0 : _options_metadata2.contentEncoding,
|
|
14925
14925
|
contentLanguage: (_options_metadata3 = options.metadata) === null || _options_metadata3 === void 0 ? void 0 : _options_metadata3.contentLanguage,
|
|
14926
14926
|
contentType: (_options_metadata4 = options.metadata) === null || _options_metadata4 === void 0 ? void 0 : _options_metadata4.contentType,
|
|
14927
|
-
customMetadata: util.filterUndefinedValues(_object_spread$
|
|
14927
|
+
customMetadata: util.filterUndefinedValues(_object_spread$c({}, (_options_metadata5 = options.metadata) === null || _options_metadata5 === void 0 ? void 0 : _options_metadata5.customMetadata, options.customMetadata))
|
|
14928
14928
|
});
|
|
14929
14929
|
}
|
|
14930
14930
|
function uploadMetadataFromStorageUploadOptions(options) {
|
|
@@ -14933,7 +14933,7 @@ function _ts_generator$6(thisArg, body) {
|
|
|
14933
14933
|
var _options_contentType;
|
|
14934
14934
|
var _options_metadata;
|
|
14935
14935
|
result = _configureMetadata({
|
|
14936
|
-
metadata: _object_spread_props$
|
|
14936
|
+
metadata: _object_spread_props$a(_object_spread$c({}, options.metadata), {
|
|
14937
14937
|
contentType: (_options_contentType = options.contentType) !== null && _options_contentType !== void 0 ? _options_contentType : (_options_metadata = options.metadata) === null || _options_metadata === void 0 ? void 0 : _options_metadata.contentType
|
|
14938
14938
|
}),
|
|
14939
14939
|
customMetadata: options.customMetadata
|
|
@@ -15050,7 +15050,7 @@ function _ts_generator$6(thisArg, body) {
|
|
|
15050
15050
|
},
|
|
15051
15051
|
next: function next(param, result) {
|
|
15052
15052
|
var options = param.options, folder = param.folder;
|
|
15053
|
-
return folder.list(_object_spread_props$
|
|
15053
|
+
return folder.list(_object_spread_props$a(_object_spread$c({}, options, result.options), {
|
|
15054
15054
|
pageToken: result.listResult.nextPageToken
|
|
15055
15055
|
}));
|
|
15056
15056
|
},
|
|
@@ -15151,8 +15151,8 @@ function _ts_generator$6(thisArg, body) {
|
|
|
15151
15151
|
case 2:
|
|
15152
15152
|
allNestedFolderFileResults = _state.sent();
|
|
15153
15153
|
allNestedFiles = allNestedFolderFileResults.flat();
|
|
15154
|
-
allFiles = _to_consumable_array$
|
|
15155
|
-
result = _object_spread_props$
|
|
15154
|
+
allFiles = _to_consumable_array$4(allImmediateFiles).concat(_to_consumable_array$4(allNestedFiles));
|
|
15155
|
+
result = _object_spread_props$a(_object_spread$c({}, rootResults), {
|
|
15156
15156
|
files: function files() {
|
|
15157
15157
|
return allFiles;
|
|
15158
15158
|
},
|
|
@@ -15322,7 +15322,7 @@ function _ts_generator$6(thisArg, body) {
|
|
|
15322
15322
|
return "".concat(firestoreModelId(input), "_").concat(taskType); // combineation of model id and template type
|
|
15323
15323
|
}
|
|
15324
15324
|
|
|
15325
|
-
function _define_property$
|
|
15325
|
+
function _define_property$b(obj, key, value) {
|
|
15326
15326
|
if (key in obj) {
|
|
15327
15327
|
Object.defineProperty(obj, key, {
|
|
15328
15328
|
value: value,
|
|
@@ -15335,7 +15335,7 @@ function _define_property$a(obj, key, value) {
|
|
|
15335
15335
|
}
|
|
15336
15336
|
return obj;
|
|
15337
15337
|
}
|
|
15338
|
-
function _object_spread$
|
|
15338
|
+
function _object_spread$b(target) {
|
|
15339
15339
|
for(var i = 1; i < arguments.length; i++){
|
|
15340
15340
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
15341
15341
|
var ownKeys = Object.keys(source);
|
|
@@ -15345,12 +15345,12 @@ function _object_spread$a(target) {
|
|
|
15345
15345
|
}));
|
|
15346
15346
|
}
|
|
15347
15347
|
ownKeys.forEach(function(key) {
|
|
15348
|
-
_define_property$
|
|
15348
|
+
_define_property$b(target, key, source[key]);
|
|
15349
15349
|
});
|
|
15350
15350
|
}
|
|
15351
15351
|
return target;
|
|
15352
15352
|
}
|
|
15353
|
-
function ownKeys$
|
|
15353
|
+
function ownKeys$9(object, enumerableOnly) {
|
|
15354
15354
|
var keys = Object.keys(object);
|
|
15355
15355
|
if (Object.getOwnPropertySymbols) {
|
|
15356
15356
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -15358,12 +15358,12 @@ function ownKeys$8(object, enumerableOnly) {
|
|
|
15358
15358
|
}
|
|
15359
15359
|
return keys;
|
|
15360
15360
|
}
|
|
15361
|
-
function _object_spread_props$
|
|
15361
|
+
function _object_spread_props$9(target, source) {
|
|
15362
15362
|
source = source != null ? source : {};
|
|
15363
15363
|
if (Object.getOwnPropertyDescriptors) {
|
|
15364
15364
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
15365
15365
|
} else {
|
|
15366
|
-
ownKeys$
|
|
15366
|
+
ownKeys$9(Object(source)).forEach(function(key) {
|
|
15367
15367
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
15368
15368
|
});
|
|
15369
15369
|
}
|
|
@@ -15493,7 +15493,7 @@ function _object_spread_props$8(target, source) {
|
|
|
15493
15493
|
* @returns The merged config.
|
|
15494
15494
|
*/ function mergeNotificationUserDefaultNotificationBoxRecipientConfig(a, b) {
|
|
15495
15495
|
var c = mergeNotificationBoxRecipientTemplateConfigRecords(a.c, b.c);
|
|
15496
|
-
var result = _object_spread_props$
|
|
15496
|
+
var result = _object_spread_props$9(_object_spread$b({}, util.mergeObjects([
|
|
15497
15497
|
a,
|
|
15498
15498
|
b
|
|
15499
15499
|
], util.KeyValueTypleValueFilter.UNDEFINED)), {
|
|
@@ -15691,7 +15691,7 @@ var notificationBoxRecipientTemplateConfigDencoder = util.bitwiseObjectDencoder(
|
|
|
15691
15691
|
var array = [];
|
|
15692
15692
|
util.forEachKeyValue(input, {
|
|
15693
15693
|
forEach: function forEach(x) {
|
|
15694
|
-
array.push(_object_spread$
|
|
15694
|
+
array.push(_object_spread$b({
|
|
15695
15695
|
type: x[0]
|
|
15696
15696
|
}, x[1]));
|
|
15697
15697
|
}
|
|
@@ -15717,6 +15717,564 @@ var notificationBoxRecipientTemplateConfigDencoder = util.bitwiseObjectDencoder(
|
|
|
15717
15717
|
return map;
|
|
15718
15718
|
}
|
|
15719
15719
|
|
|
15720
|
+
function _array_like_to_array$5(arr, len) {
|
|
15721
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
15722
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
15723
|
+
return arr2;
|
|
15724
|
+
}
|
|
15725
|
+
function _array_without_holes$3(arr) {
|
|
15726
|
+
if (Array.isArray(arr)) return _array_like_to_array$5(arr);
|
|
15727
|
+
}
|
|
15728
|
+
function _define_property$a(obj, key, value) {
|
|
15729
|
+
if (key in obj) {
|
|
15730
|
+
Object.defineProperty(obj, key, {
|
|
15731
|
+
value: value,
|
|
15732
|
+
enumerable: true,
|
|
15733
|
+
configurable: true,
|
|
15734
|
+
writable: true
|
|
15735
|
+
});
|
|
15736
|
+
} else {
|
|
15737
|
+
obj[key] = value;
|
|
15738
|
+
}
|
|
15739
|
+
return obj;
|
|
15740
|
+
}
|
|
15741
|
+
function _iterable_to_array$3(iter) {
|
|
15742
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
15743
|
+
}
|
|
15744
|
+
function _non_iterable_spread$3() {
|
|
15745
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
15746
|
+
}
|
|
15747
|
+
function _object_spread$a(target) {
|
|
15748
|
+
for(var i = 1; i < arguments.length; i++){
|
|
15749
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
15750
|
+
var ownKeys = Object.keys(source);
|
|
15751
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
15752
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
15753
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
15754
|
+
}));
|
|
15755
|
+
}
|
|
15756
|
+
ownKeys.forEach(function(key) {
|
|
15757
|
+
_define_property$a(target, key, source[key]);
|
|
15758
|
+
});
|
|
15759
|
+
}
|
|
15760
|
+
return target;
|
|
15761
|
+
}
|
|
15762
|
+
function ownKeys$8(object, enumerableOnly) {
|
|
15763
|
+
var keys = Object.keys(object);
|
|
15764
|
+
if (Object.getOwnPropertySymbols) {
|
|
15765
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
15766
|
+
keys.push.apply(keys, symbols);
|
|
15767
|
+
}
|
|
15768
|
+
return keys;
|
|
15769
|
+
}
|
|
15770
|
+
function _object_spread_props$8(target, source) {
|
|
15771
|
+
source = source != null ? source : {};
|
|
15772
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
15773
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
15774
|
+
} else {
|
|
15775
|
+
ownKeys$8(Object(source)).forEach(function(key) {
|
|
15776
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
15777
|
+
});
|
|
15778
|
+
}
|
|
15779
|
+
return target;
|
|
15780
|
+
}
|
|
15781
|
+
function _to_consumable_array$3(arr) {
|
|
15782
|
+
return _array_without_holes$3(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$5(arr) || _non_iterable_spread$3();
|
|
15783
|
+
}
|
|
15784
|
+
function _unsupported_iterable_to_array$5(o, minLen) {
|
|
15785
|
+
if (!o) return;
|
|
15786
|
+
if (typeof o === "string") return _array_like_to_array$5(o, minLen);
|
|
15787
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
15788
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
15789
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
15790
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$5(o, minLen);
|
|
15791
|
+
}
|
|
15792
|
+
/**
|
|
15793
|
+
* A delivery method (channel) that notifications can be sent through.
|
|
15794
|
+
*
|
|
15795
|
+
* The values mirror the per-method flags on {@link NotificationBoxRecipientTemplateConfig}
|
|
15796
|
+
* (`se`/`st`/`sp`/`sn`), so a method maps directly onto the config field that gates it.
|
|
15797
|
+
*/ exports.NotificationDeliveryMethod = void 0;
|
|
15798
|
+
(function(NotificationDeliveryMethod) {
|
|
15799
|
+
/**
|
|
15800
|
+
* Email delivery. Gated by `se`.
|
|
15801
|
+
*/ NotificationDeliveryMethod["EMAIL"] = "e";
|
|
15802
|
+
/**
|
|
15803
|
+
* Text/SMS delivery. Gated by `st`.
|
|
15804
|
+
*/ NotificationDeliveryMethod["TEXT"] = "t";
|
|
15805
|
+
/**
|
|
15806
|
+
* Push notification delivery. Gated by `sp`.
|
|
15807
|
+
*/ NotificationDeliveryMethod["PUSH"] = "p";
|
|
15808
|
+
/**
|
|
15809
|
+
* In-app delivery to a NotificationSummary. Gated by `sn`.
|
|
15810
|
+
*/ NotificationDeliveryMethod["NOTIFICATION_SUMMARY"] = "n";
|
|
15811
|
+
})(exports.NotificationDeliveryMethod || (exports.NotificationDeliveryMethod = {}));
|
|
15812
|
+
/**
|
|
15813
|
+
* All delivery methods, in the order a report should present them.
|
|
15814
|
+
*/ var ALL_NOTIFICATION_DELIVERY_METHODS = [
|
|
15815
|
+
exports.NotificationDeliveryMethod.EMAIL,
|
|
15816
|
+
exports.NotificationDeliveryMethod.TEXT,
|
|
15817
|
+
exports.NotificationDeliveryMethod.PUSH,
|
|
15818
|
+
exports.NotificationDeliveryMethod.NOTIFICATION_SUMMARY
|
|
15819
|
+
];
|
|
15820
|
+
/**
|
|
15821
|
+
* The outcome of a health check, or of one individual finding within it.
|
|
15822
|
+
*/ exports.NotificationHealthCheckStatus = void 0;
|
|
15823
|
+
(function(NotificationHealthCheckStatus) {
|
|
15824
|
+
/**
|
|
15825
|
+
* Everything that was checked looks healthy.
|
|
15826
|
+
*/ NotificationHealthCheckStatus["OK"] = "ok";
|
|
15827
|
+
/**
|
|
15828
|
+
* Something looks off, but delivery is probably still working.
|
|
15829
|
+
*/ NotificationHealthCheckStatus["WARNING"] = "warn";
|
|
15830
|
+
/**
|
|
15831
|
+
* Delivery is blocked or broken.
|
|
15832
|
+
*/ NotificationHealthCheckStatus["ERROR"] = "error";
|
|
15833
|
+
/**
|
|
15834
|
+
* Waiting on an asynchronous result, such as an in-flight delivery probe.
|
|
15835
|
+
*/ NotificationHealthCheckStatus["PENDING"] = "pending";
|
|
15836
|
+
/**
|
|
15837
|
+
* Not checked. Either the method is not configured for this app, or no check was available.
|
|
15838
|
+
*/ NotificationHealthCheckStatus["SKIPPED"] = "skipped";
|
|
15839
|
+
/**
|
|
15840
|
+
* The check ran but could not reach a conclusion, such as when a provider API was unreachable.
|
|
15841
|
+
*/ NotificationHealthCheckStatus["UNKNOWN"] = "unknown";
|
|
15842
|
+
})(exports.NotificationHealthCheckStatus || (exports.NotificationHealthCheckStatus = {}));
|
|
15843
|
+
var _obj;
|
|
15844
|
+
/**
|
|
15845
|
+
* Severity ranking used to roll several statuses up into one.
|
|
15846
|
+
*
|
|
15847
|
+
* Higher wins. `ERROR` outranks `PENDING` so that a method with a known problem is not masked by an
|
|
15848
|
+
* unrelated in-flight probe, and `SKIPPED` ranks lowest so an unconfigured method never drags a
|
|
15849
|
+
* report down.
|
|
15850
|
+
*/ var NOTIFICATION_HEALTH_CHECK_STATUS_SEVERITY = (_obj = {}, _define_property$a(_obj, exports.NotificationHealthCheckStatus.SKIPPED, 0), _define_property$a(_obj, exports.NotificationHealthCheckStatus.OK, 1), _define_property$a(_obj, exports.NotificationHealthCheckStatus.UNKNOWN, 2), _define_property$a(_obj, exports.NotificationHealthCheckStatus.PENDING, 3), _define_property$a(_obj, exports.NotificationHealthCheckStatus.WARNING, 4), _define_property$a(_obj, exports.NotificationHealthCheckStatus.ERROR, 5), _obj);
|
|
15851
|
+
/**
|
|
15852
|
+
* Rolls a set of statuses up into the single most severe one.
|
|
15853
|
+
*
|
|
15854
|
+
* @param statuses - The statuses to roll up.
|
|
15855
|
+
* @returns The most severe status, or {@link NotificationHealthCheckStatus.SKIPPED} if none were given.
|
|
15856
|
+
*
|
|
15857
|
+
* @example
|
|
15858
|
+
* ```ts
|
|
15859
|
+
* rollupNotificationHealthCheckStatus([NotificationHealthCheckStatus.OK, NotificationHealthCheckStatus.ERROR]);
|
|
15860
|
+
* // NotificationHealthCheckStatus.ERROR
|
|
15861
|
+
* ```
|
|
15862
|
+
*/ function rollupNotificationHealthCheckStatus(statuses) {
|
|
15863
|
+
var result = exports.NotificationHealthCheckStatus.SKIPPED;
|
|
15864
|
+
statuses.forEach(function(x) {
|
|
15865
|
+
if (NOTIFICATION_HEALTH_CHECK_STATUS_SEVERITY[x] > NOTIFICATION_HEALTH_CHECK_STATUS_SEVERITY[result]) {
|
|
15866
|
+
result = x;
|
|
15867
|
+
}
|
|
15868
|
+
});
|
|
15869
|
+
return result;
|
|
15870
|
+
}
|
|
15871
|
+
/**
|
|
15872
|
+
* True if the status represents a problem the user should act on.
|
|
15873
|
+
*
|
|
15874
|
+
* @param status - The status to test.
|
|
15875
|
+
* @returns True for errors and warnings; false for statuses that need no action.
|
|
15876
|
+
*/ function isProblemNotificationHealthCheckStatus(status) {
|
|
15877
|
+
return status === exports.NotificationHealthCheckStatus.ERROR || status === exports.NotificationHealthCheckStatus.WARNING;
|
|
15878
|
+
}
|
|
15879
|
+
/**
|
|
15880
|
+
* Issue codes emitted by the health checks the library performs itself.
|
|
15881
|
+
*
|
|
15882
|
+
* Apps and delivery providers may emit additional codes of their own — see
|
|
15883
|
+
* {@link NotificationHealthCheckIssueCode}.
|
|
15884
|
+
*/ exports.KnownNotificationHealthCheckIssueCode = void 0;
|
|
15885
|
+
(function(KnownNotificationHealthCheckIssueCode) {
|
|
15886
|
+
/**
|
|
15887
|
+
* The server has no send service configured for this delivery method, so nothing will ever be sent through it.
|
|
15888
|
+
*/ KnownNotificationHealthCheckIssueCode["SEND_SERVICE_NOT_CONFIGURED"] = "sendServiceNotConfigured";
|
|
15889
|
+
/**
|
|
15890
|
+
* No send service health check is available for this delivery method, so only configuration was inspected.
|
|
15891
|
+
*/ KnownNotificationHealthCheckIssueCode["SEND_SERVICE_HEALTH_CHECK_UNAVAILABLE"] = "sendServiceHealthCheckUnavailable";
|
|
15892
|
+
/**
|
|
15893
|
+
* No delivery target could be resolved for this method — e.g. no email address on the auth record and no override.
|
|
15894
|
+
*/ KnownNotificationHealthCheckIssueCode["NO_DELIVERY_TARGET"] = "noDeliveryTarget";
|
|
15895
|
+
/**
|
|
15896
|
+
* The recipient has opted out of all notifications.
|
|
15897
|
+
*/ KnownNotificationHealthCheckIssueCode["RECIPIENT_OPTED_OUT"] = "recipientOptedOut";
|
|
15898
|
+
/**
|
|
15899
|
+
* The recipient's notifications are disabled.
|
|
15900
|
+
*/ KnownNotificationHealthCheckIssueCode["RECIPIENT_DISABLED"] = "recipientDisabled";
|
|
15901
|
+
/**
|
|
15902
|
+
* This delivery method is switched off by the user's global or default configuration.
|
|
15903
|
+
*/ KnownNotificationHealthCheckIssueCode["METHOD_DISABLED_GLOBALLY"] = "methodDisabledGlobally";
|
|
15904
|
+
/**
|
|
15905
|
+
* This delivery method is switched off for the notification template type that was checked.
|
|
15906
|
+
*/ KnownNotificationHealthCheckIssueCode["METHOD_DISABLED_FOR_TEMPLATE"] = "methodDisabledForTemplate";
|
|
15907
|
+
/**
|
|
15908
|
+
* This delivery method is switched off for one or more of the user's individual notification boxes.
|
|
15909
|
+
*/ KnownNotificationHealthCheckIssueCode["METHOD_DISABLED_FOR_BOX"] = "methodDisabledForBox";
|
|
15910
|
+
/**
|
|
15911
|
+
* The user is not subscribed to any notification boxes, so no model-driven notifications will reach them.
|
|
15912
|
+
*/ KnownNotificationHealthCheckIssueCode["NO_NOTIFICATION_BOXES"] = "noNotificationBoxes";
|
|
15913
|
+
/**
|
|
15914
|
+
* The user has notification box exclusions that suppress notifications from matching boxes.
|
|
15915
|
+
*/ KnownNotificationHealthCheckIssueCode["NOTIFICATION_BOX_EXCLUSIONS"] = "notificationBoxExclusions";
|
|
15916
|
+
/**
|
|
15917
|
+
* The user's configuration has not finished syncing to their notification boxes.
|
|
15918
|
+
*/ KnownNotificationHealthCheckIssueCode["NEEDS_CONFIG_SYNC"] = "needsConfigSync";
|
|
15919
|
+
/**
|
|
15920
|
+
* One or more of the user's subscriptions is broken and will never send.
|
|
15921
|
+
*/ KnownNotificationHealthCheckIssueCode["SUBSCRIPTION_BROKEN"] = "subscriptionBroken";
|
|
15922
|
+
/**
|
|
15923
|
+
* One or more of the user's subscriptions has not finished being set up, so its notifications are delayed.
|
|
15924
|
+
*/ KnownNotificationHealthCheckIssueCode["SUBSCRIPTION_NOT_READY"] = "subscriptionNotReady";
|
|
15925
|
+
/**
|
|
15926
|
+
* A test message was dispatched and its outcome is not known yet.
|
|
15927
|
+
*/ KnownNotificationHealthCheckIssueCode["PROBE_PENDING"] = "probePending";
|
|
15928
|
+
/**
|
|
15929
|
+
* A test message was confirmed delivered.
|
|
15930
|
+
*/ KnownNotificationHealthCheckIssueCode["PROBE_DELIVERED"] = "probeDelivered";
|
|
15931
|
+
/**
|
|
15932
|
+
* A test message failed to deliver.
|
|
15933
|
+
*/ KnownNotificationHealthCheckIssueCode["PROBE_FAILED"] = "probeFailed";
|
|
15934
|
+
/**
|
|
15935
|
+
* A test message could not be dispatched at all.
|
|
15936
|
+
*/ KnownNotificationHealthCheckIssueCode["PROBE_DISPATCH_FAILED"] = "probeDispatchFailed";
|
|
15937
|
+
})(exports.KnownNotificationHealthCheckIssueCode || (exports.KnownNotificationHealthCheckIssueCode = {}));
|
|
15938
|
+
/**
|
|
15939
|
+
* Creates a {@link NotificationHealthCheckIssue}.
|
|
15940
|
+
*
|
|
15941
|
+
* @param code - The issue code.
|
|
15942
|
+
* @param status - The severity.
|
|
15943
|
+
* @param content - The message, plus an optional suggested fix and structured detail.
|
|
15944
|
+
* @returns The issue.
|
|
15945
|
+
*
|
|
15946
|
+
* @example
|
|
15947
|
+
* ```ts
|
|
15948
|
+
* notificationHealthCheckIssue(KnownNotificationHealthCheckIssueCode.NO_DELIVERY_TARGET, NotificationHealthCheckStatus.ERROR, {
|
|
15949
|
+
* message: 'There is no email address on your account.',
|
|
15950
|
+
* fix: 'Add an email address to your account.'
|
|
15951
|
+
* });
|
|
15952
|
+
* ```
|
|
15953
|
+
*/ function notificationHealthCheckIssue(code, status, content) {
|
|
15954
|
+
return {
|
|
15955
|
+
c: code,
|
|
15956
|
+
s: status,
|
|
15957
|
+
m: content.message,
|
|
15958
|
+
f: content.fix,
|
|
15959
|
+
d: content.data
|
|
15960
|
+
};
|
|
15961
|
+
}
|
|
15962
|
+
/**
|
|
15963
|
+
* True if the probe is still awaiting an outcome and should be re-checked.
|
|
15964
|
+
*
|
|
15965
|
+
* @param probe - The probe to test, if one exists.
|
|
15966
|
+
* @returns True if the probe is pending.
|
|
15967
|
+
*/ function isPendingNotificationHealthCheckProbe(probe) {
|
|
15968
|
+
return (probe === null || probe === void 0 ? void 0 : probe.s) === exports.NotificationHealthCheckStatus.PENDING;
|
|
15969
|
+
}
|
|
15970
|
+
/**
|
|
15971
|
+
* The correlation id of a probe the provider gave nothing to track it by.
|
|
15972
|
+
*
|
|
15973
|
+
* Empty rather than absent because the field is what a provider looks the outcome up with, and there is
|
|
15974
|
+
* nothing to look up — such a probe is always recorded already settled, so it is never queried.
|
|
15975
|
+
*/ var UNTRACKABLE_NOTIFICATION_HEALTH_CHECK_PROBE_ID = '';
|
|
15976
|
+
/**
|
|
15977
|
+
* Records a dispatch attempt the provider gave no way to track.
|
|
15978
|
+
*
|
|
15979
|
+
* A send that produced no correlation id still happened, and the test message window is derived from the
|
|
15980
|
+
* recorded probe — so an attempt recorded as nothing at all would leave the server's throttle and the
|
|
15981
|
+
* client's countdown with nothing to key on, making the action look successful and be immediately
|
|
15982
|
+
* repeatable. Always settled ({@link NotificationHealthCheckStatus.UNKNOWN} when the provider accepted it,
|
|
15983
|
+
* `ERROR` when it did not), never pending: there is no outcome coming for it.
|
|
15984
|
+
*
|
|
15985
|
+
* @param probe - The attempt's time, settled status, target, and provider detail.
|
|
15986
|
+
* @returns The probe recording the attempt.
|
|
15987
|
+
*/ function untrackableNotificationHealthCheckProbe(probe) {
|
|
15988
|
+
return _object_spread_props$8(_object_spread$a({}, probe), {
|
|
15989
|
+
id: UNTRACKABLE_NOTIFICATION_HEALTH_CHECK_PROBE_ID
|
|
15990
|
+
});
|
|
15991
|
+
}
|
|
15992
|
+
/**
|
|
15993
|
+
* Rolls a delivery method's findings and probe up into a single status.
|
|
15994
|
+
*
|
|
15995
|
+
* @param result - The per-method result, without its rolled-up status.
|
|
15996
|
+
* @returns The most severe status across the method's findings and probe.
|
|
15997
|
+
*/ function rollupNotificationDeliveryHealthCheckResultStatus(result) {
|
|
15998
|
+
var statuses = result.is.map(function(x) {
|
|
15999
|
+
return x.s;
|
|
16000
|
+
});
|
|
16001
|
+
if (result.pr) {
|
|
16002
|
+
statuses.push(result.pr.s);
|
|
16003
|
+
}
|
|
16004
|
+
return rollupNotificationHealthCheckStatus(statuses);
|
|
16005
|
+
}
|
|
16006
|
+
/**
|
|
16007
|
+
* The delivery methods whose test message is still awaiting an outcome.
|
|
16008
|
+
*
|
|
16009
|
+
* A pending probe is the whole reason to keep watching a check: it is the one part of a report that
|
|
16010
|
+
* changes on its own, as the provider records what happened to the message. Both the client (which
|
|
16011
|
+
* polls until they settle) and the server (which only consults a provider it has something to ask
|
|
16012
|
+
* about) scope their work to exactly these methods.
|
|
16013
|
+
*
|
|
16014
|
+
* @param healthCheck - The health check to read.
|
|
16015
|
+
* @returns The methods carrying a pending probe, in report order. Empty when nothing is in flight.
|
|
16016
|
+
*/ function notificationHealthCheckPendingProbeMethods(healthCheck) {
|
|
16017
|
+
var _ref;
|
|
16018
|
+
return ((_ref = healthCheck === null || healthCheck === void 0 ? void 0 : healthCheck.m) !== null && _ref !== void 0 ? _ref : []).filter(function(x) {
|
|
16019
|
+
return isPendingNotificationHealthCheckProbe(x.pr);
|
|
16020
|
+
}).map(function(x) {
|
|
16021
|
+
return x.me;
|
|
16022
|
+
});
|
|
16023
|
+
}
|
|
16024
|
+
/**
|
|
16025
|
+
* Finds the result for a specific delivery method.
|
|
16026
|
+
*
|
|
16027
|
+
* @param healthCheck - The health check to read.
|
|
16028
|
+
* @param method - The delivery method to look for.
|
|
16029
|
+
* @returns The method's result, or undefined if the method was not checked.
|
|
16030
|
+
*/ function notificationDeliveryHealthCheckResultForMethod(healthCheck, method) {
|
|
16031
|
+
return healthCheck === null || healthCheck === void 0 ? void 0 : healthCheck.m.find(function(x) {
|
|
16032
|
+
return x.me === method;
|
|
16033
|
+
});
|
|
16034
|
+
}
|
|
16035
|
+
/**
|
|
16036
|
+
* Every issue in a health check, account-wide findings first.
|
|
16037
|
+
*
|
|
16038
|
+
* @param healthCheck - The health check to read.
|
|
16039
|
+
* @returns All issues, account-wide first and then in method order.
|
|
16040
|
+
*/ function allNotificationHealthCheckIssues(healthCheck) {
|
|
16041
|
+
if (!healthCheck) {
|
|
16042
|
+
return [];
|
|
16043
|
+
}
|
|
16044
|
+
return _to_consumable_array$3(healthCheck.is).concat(_to_consumable_array$3(healthCheck.m.flatMap(function(x) {
|
|
16045
|
+
return x.is;
|
|
16046
|
+
})));
|
|
16047
|
+
}
|
|
16048
|
+
/**
|
|
16049
|
+
* Rolls a whole health check up into a single status.
|
|
16050
|
+
*
|
|
16051
|
+
* @param healthCheck - The check's account-wide findings and per-method results.
|
|
16052
|
+
* @returns The most severe status across everything the check found.
|
|
16053
|
+
*/ function rollupNotificationHealthCheckResultStatus(healthCheck) {
|
|
16054
|
+
return rollupNotificationHealthCheckStatus(_to_consumable_array$3(healthCheck.is.map(function(x) {
|
|
16055
|
+
return x.s;
|
|
16056
|
+
})).concat(_to_consumable_array$3(healthCheck.m.map(function(x) {
|
|
16057
|
+
return x.s;
|
|
16058
|
+
}))));
|
|
16059
|
+
}
|
|
16060
|
+
// MARK: Throttle
|
|
16061
|
+
/**
|
|
16062
|
+
* How long a user must wait between health check runs.
|
|
16063
|
+
*
|
|
16064
|
+
* A run calls out to each delivery provider and can dispatch real messages, so it is throttled against
|
|
16065
|
+
* the check stored on the NotificationUser rather than being runnable on demand.
|
|
16066
|
+
*/ var DEFAULT_NOTIFICATION_USER_HEALTH_CHECK_THROTTLE_MINUTES = 2;
|
|
16067
|
+
/**
|
|
16068
|
+
* The earliest time another health check may be run for a NotificationUser.
|
|
16069
|
+
*
|
|
16070
|
+
* Both the server (which enforces the throttle) and the client (which disables the action until then)
|
|
16071
|
+
* derive the window from the same stored check, so the UI cannot offer a run the server would reject.
|
|
16072
|
+
*
|
|
16073
|
+
* @param input - The stored check, and optionally a throttle window to use instead of the default.
|
|
16074
|
+
* @returns The time the next run is allowed, or undefined when no check has been run yet.
|
|
16075
|
+
*/ function notificationUserHealthCheckNextRunAt(input) {
|
|
16076
|
+
var healthCheck = input.healthCheck, throttleMinutes = input.throttleMinutes;
|
|
16077
|
+
return (healthCheck === null || healthCheck === void 0 ? void 0 : healthCheck.at) == null ? undefined : dateFns.addMinutes(healthCheck.at, throttleMinutes !== null && throttleMinutes !== void 0 ? throttleMinutes : DEFAULT_NOTIFICATION_USER_HEALTH_CHECK_THROTTLE_MINUTES);
|
|
16078
|
+
}
|
|
16079
|
+
/**
|
|
16080
|
+
* How long a user must wait between test messages on a single delivery method.
|
|
16081
|
+
*
|
|
16082
|
+
* Throttled separately from — and more strictly than — a plain run: a probe delivers a real message to
|
|
16083
|
+
* the user, while a run only reads configuration and provider state. Running the check must therefore
|
|
16084
|
+
* not consume the test message allowance, and vice versa.
|
|
16085
|
+
*
|
|
16086
|
+
* Only the default. An app that wants a different cadence declares its own value and passes it to both
|
|
16087
|
+
* the server (which enforces the window) and the client (which counts down to it) — see
|
|
16088
|
+
* {@link NotificationUserHealthCheckNextProbeAtInput.throttleMinutes}. Both sides must use the same
|
|
16089
|
+
* value, or the UI will offer a test message the server rejects.
|
|
16090
|
+
*/ var DEFAULT_NOTIFICATION_USER_HEALTH_CHECK_PROBE_THROTTLE_MINUTES = 5;
|
|
16091
|
+
/**
|
|
16092
|
+
* The earliest time another test message may be dispatched for a NotificationUser.
|
|
16093
|
+
*
|
|
16094
|
+
* The window is per delivery method: each method has its own test message action, so a test email must
|
|
16095
|
+
* not hold the test text message off. Pass the methods being probed to get their window — the most
|
|
16096
|
+
* recent probe among just those methods — and pass none for the window across every checked method.
|
|
16097
|
+
*
|
|
16098
|
+
* Both the server (which enforces the window) and the client (which disables the action until then)
|
|
16099
|
+
* derive it from the same stored check, so the UI cannot offer a test message the server would reject.
|
|
16100
|
+
*
|
|
16101
|
+
* @param input - The stored check, the methods being probed, and optionally a throttle window to use
|
|
16102
|
+
* instead of the default.
|
|
16103
|
+
* @returns The time the next probe is allowed, or undefined when none of those methods has ever
|
|
16104
|
+
* dispatched one.
|
|
16105
|
+
*/ function notificationUserHealthCheckNextProbeAt(input) {
|
|
16106
|
+
var _Math;
|
|
16107
|
+
var _ref, _ref1;
|
|
16108
|
+
var healthCheck = input.healthCheck, methods = input.methods, throttleMinutes = input.throttleMinutes;
|
|
16109
|
+
var scopedMethods = (methods === null || methods === void 0 ? void 0 : methods.length) ? new Set(methods) : undefined;
|
|
16110
|
+
var scopedResults = scopedMethods ? ((_ref = healthCheck === null || healthCheck === void 0 ? void 0 : healthCheck.m) !== null && _ref !== void 0 ? _ref : []).filter(function(x) {
|
|
16111
|
+
return scopedMethods.has(x.me);
|
|
16112
|
+
}) : (_ref1 = healthCheck === null || healthCheck === void 0 ? void 0 : healthCheck.m) !== null && _ref1 !== void 0 ? _ref1 : [];
|
|
16113
|
+
var probeTimes = util.filterMaybeArrayValues(scopedResults.map(function(x) {
|
|
16114
|
+
var _x_pr;
|
|
16115
|
+
return (_x_pr = x.pr) === null || _x_pr === void 0 ? void 0 : _x_pr.at;
|
|
16116
|
+
})).map(function(x) {
|
|
16117
|
+
return x.getTime();
|
|
16118
|
+
});
|
|
16119
|
+
var latestProbeAt = probeTimes.length > 0 ? new Date((_Math = Math).max.apply(_Math, _to_consumable_array$3(probeTimes))) : undefined;
|
|
16120
|
+
return latestProbeAt == null ? undefined : dateFns.addMinutes(latestProbeAt, throttleMinutes !== null && throttleMinutes !== void 0 ? throttleMinutes : DEFAULT_NOTIFICATION_USER_HEALTH_CHECK_PROBE_THROTTLE_MINUTES);
|
|
16121
|
+
}
|
|
16122
|
+
// MARK: Verify
|
|
16123
|
+
/**
|
|
16124
|
+
* How long a caller must wait between verifications of a check's pending probes.
|
|
16125
|
+
*
|
|
16126
|
+
* A verify-only run exists to be polled: a dispatched test message settles on the provider's schedule,
|
|
16127
|
+
* so something has to keep asking until it does. It is throttled far more loosely than a run or a probe
|
|
16128
|
+
* because it is far cheaper — it consults a provider only for a method with a probe actually in flight,
|
|
16129
|
+
* and touches nothing else — but it is throttled all the same, so a client cannot poll a provider's API
|
|
16130
|
+
* in a tight loop.
|
|
16131
|
+
*
|
|
16132
|
+
* Seconds rather than minutes: the point of the verification is that the outcome appears while the user
|
|
16133
|
+
* is still looking at the report.
|
|
16134
|
+
*/ var DEFAULT_NOTIFICATION_USER_HEALTH_CHECK_VERIFY_THROTTLE_SECONDS = 15;
|
|
16135
|
+
/**
|
|
16136
|
+
* The earliest time a check's pending probes may be verified again.
|
|
16137
|
+
*
|
|
16138
|
+
* Derived from `vat` rather than `at`, so verifying an in-flight test message neither answers to nor
|
|
16139
|
+
* consumes the user's run window. Both the server (which enforces the window) and the client (which
|
|
16140
|
+
* paces its polling to it) derive it the same way.
|
|
16141
|
+
*
|
|
16142
|
+
* @param input - The stored check, and optionally a window to use instead of the default.
|
|
16143
|
+
* @returns The time the next verification is allowed, or undefined when none has happened yet.
|
|
16144
|
+
*/ function notificationUserHealthCheckNextVerifyAt(input) {
|
|
16145
|
+
var healthCheck = input.healthCheck, throttleSeconds = input.throttleSeconds;
|
|
16146
|
+
return (healthCheck === null || healthCheck === void 0 ? void 0 : healthCheck.vat) == null ? undefined : dateFns.addSeconds(healthCheck.vat, throttleSeconds !== null && throttleSeconds !== void 0 ? throttleSeconds : DEFAULT_NOTIFICATION_USER_HEALTH_CHECK_VERIFY_THROTTLE_SECONDS);
|
|
16147
|
+
}
|
|
16148
|
+
/**
|
|
16149
|
+
* The earliest time another test message may be dispatched through each of a check's delivery methods.
|
|
16150
|
+
*
|
|
16151
|
+
* The per-method form of {@link notificationUserHealthCheckNextProbeAt}, for a UI that renders one test
|
|
16152
|
+
* message action per method and needs every method's window at once.
|
|
16153
|
+
*
|
|
16154
|
+
* @param input - The stored check, and optionally a throttle window to use instead of the default.
|
|
16155
|
+
* @returns The time the next probe is allowed on each checked method. A method that has never
|
|
16156
|
+
* dispatched a probe maps to undefined.
|
|
16157
|
+
*/ function notificationUserHealthCheckNextProbeAtByMethod(input) {
|
|
16158
|
+
var _ref;
|
|
16159
|
+
var healthCheck = input.healthCheck, throttleMinutes = input.throttleMinutes;
|
|
16160
|
+
var nextProbeAtByMethod = {};
|
|
16161
|
+
((_ref = healthCheck === null || healthCheck === void 0 ? void 0 : healthCheck.m) !== null && _ref !== void 0 ? _ref : []).forEach(function(methodResult) {
|
|
16162
|
+
nextProbeAtByMethod[methodResult.me] = notificationUserHealthCheckNextProbeAt({
|
|
16163
|
+
healthCheck: healthCheck,
|
|
16164
|
+
methods: [
|
|
16165
|
+
methodResult.me
|
|
16166
|
+
],
|
|
16167
|
+
throttleMinutes: throttleMinutes
|
|
16168
|
+
});
|
|
16169
|
+
});
|
|
16170
|
+
return nextProbeAtByMethod;
|
|
16171
|
+
}
|
|
16172
|
+
// MARK: Firestore
|
|
16173
|
+
/**
|
|
16174
|
+
* Firestore sub-object converter for {@link NotificationHealthCheckIssue}.
|
|
16175
|
+
*/ var firestoreNotificationHealthCheckIssue = /* @__PURE__ */ firestoreSubObject({
|
|
16176
|
+
objectField: {
|
|
16177
|
+
fields: {
|
|
16178
|
+
c: firestoreString({
|
|
16179
|
+
default: ''
|
|
16180
|
+
}),
|
|
16181
|
+
s: firestoreEnum({
|
|
16182
|
+
default: exports.NotificationHealthCheckStatus.UNKNOWN
|
|
16183
|
+
}),
|
|
16184
|
+
m: firestoreString({
|
|
16185
|
+
default: ''
|
|
16186
|
+
}),
|
|
16187
|
+
f: optionalFirestoreString(),
|
|
16188
|
+
d: optionalFirestoreField()
|
|
16189
|
+
}
|
|
16190
|
+
}
|
|
16191
|
+
});
|
|
16192
|
+
/**
|
|
16193
|
+
* Firestore sub-object converter for {@link NotificationHealthCheckProbe}.
|
|
16194
|
+
*/ var firestoreNotificationHealthCheckProbe = /* @__PURE__ */ firestoreSubObject({
|
|
16195
|
+
objectField: {
|
|
16196
|
+
fields: {
|
|
16197
|
+
id: firestoreString({
|
|
16198
|
+
default: ''
|
|
16199
|
+
}),
|
|
16200
|
+
at: firestoreDate({
|
|
16201
|
+
saveDefaultAsNow: true
|
|
16202
|
+
}),
|
|
16203
|
+
s: firestoreEnum({
|
|
16204
|
+
default: exports.NotificationHealthCheckStatus.PENDING
|
|
16205
|
+
}),
|
|
16206
|
+
tg: firestoreString({
|
|
16207
|
+
default: ''
|
|
16208
|
+
}),
|
|
16209
|
+
d: optionalFirestoreString()
|
|
16210
|
+
}
|
|
16211
|
+
}
|
|
16212
|
+
});
|
|
16213
|
+
var notificationHealthCheckProbeMapFunctions = firestoreNotificationHealthCheckProbe.mapFunctions;
|
|
16214
|
+
/**
|
|
16215
|
+
* Firestore sub-object converter for {@link NotificationDeliveryHealthCheckResult}.
|
|
16216
|
+
*/ var firestoreNotificationDeliveryHealthCheckResult = /* @__PURE__ */ firestoreSubObject({
|
|
16217
|
+
objectField: {
|
|
16218
|
+
fields: {
|
|
16219
|
+
me: firestoreEnum({
|
|
16220
|
+
default: exports.NotificationDeliveryMethod.EMAIL
|
|
16221
|
+
}),
|
|
16222
|
+
s: firestoreEnum({
|
|
16223
|
+
default: exports.NotificationHealthCheckStatus.UNKNOWN
|
|
16224
|
+
}),
|
|
16225
|
+
tg: optionalFirestoreString(),
|
|
16226
|
+
is: firestoreObjectArray({
|
|
16227
|
+
objectField: firestoreNotificationHealthCheckIssue
|
|
16228
|
+
}),
|
|
16229
|
+
pr: optionalFirestoreField({
|
|
16230
|
+
transformFromData: function transformFromData(x) {
|
|
16231
|
+
return notificationHealthCheckProbeMapFunctions.from(x);
|
|
16232
|
+
},
|
|
16233
|
+
transformToData: function transformToData(x) {
|
|
16234
|
+
return notificationHealthCheckProbeMapFunctions.to(x);
|
|
16235
|
+
}
|
|
16236
|
+
}),
|
|
16237
|
+
pb: optionalFirestoreBoolean()
|
|
16238
|
+
}
|
|
16239
|
+
}
|
|
16240
|
+
});
|
|
16241
|
+
/**
|
|
16242
|
+
* Firestore sub-object converter for {@link NotificationHealthCheck}.
|
|
16243
|
+
*/ var firestoreNotificationHealthCheck = /* @__PURE__ */ firestoreSubObject({
|
|
16244
|
+
objectField: {
|
|
16245
|
+
fields: {
|
|
16246
|
+
at: firestoreDate({
|
|
16247
|
+
saveDefaultAsNow: true
|
|
16248
|
+
}),
|
|
16249
|
+
vat: optionalFirestoreDate(),
|
|
16250
|
+
s: firestoreEnum({
|
|
16251
|
+
default: exports.NotificationHealthCheckStatus.UNKNOWN
|
|
16252
|
+
}),
|
|
16253
|
+
t: optionalFirestoreString(),
|
|
16254
|
+
is: firestoreObjectArray({
|
|
16255
|
+
objectField: firestoreNotificationHealthCheckIssue
|
|
16256
|
+
}),
|
|
16257
|
+
m: firestoreObjectArray({
|
|
16258
|
+
objectField: firestoreNotificationDeliveryHealthCheckResult
|
|
16259
|
+
})
|
|
16260
|
+
}
|
|
16261
|
+
}
|
|
16262
|
+
});
|
|
16263
|
+
var notificationHealthCheckMapFunctions = firestoreNotificationHealthCheck.mapFunctions;
|
|
16264
|
+
/**
|
|
16265
|
+
* Field config for the optional {@link NotificationHealthCheck} stored on a NotificationUser.
|
|
16266
|
+
*
|
|
16267
|
+
* Unlike {@link firestoreNotificationHealthCheck}, this leaves the field absent instead of defaulting
|
|
16268
|
+
* to an empty check, so "never run" stays distinguishable from "ran and found nothing".
|
|
16269
|
+
*/ var optionalFirestoreNotificationHealthCheck = /* @__PURE__ */ optionalFirestoreField({
|
|
16270
|
+
transformFromData: function transformFromData(x) {
|
|
16271
|
+
return notificationHealthCheckMapFunctions.from(x);
|
|
16272
|
+
},
|
|
16273
|
+
transformToData: function transformToData(x) {
|
|
16274
|
+
return notificationHealthCheckMapFunctions.to(x);
|
|
16275
|
+
}
|
|
16276
|
+
});
|
|
16277
|
+
|
|
15720
16278
|
/**
|
|
15721
16279
|
* Firestore sub-object converter for embedding {@link NotificationItem} within parent documents.
|
|
15722
16280
|
*/ var firestoreNotificationItem = firestoreSubObject({
|
|
@@ -15886,7 +16444,8 @@ var NotificationUserDocument = /*#__PURE__*/ function(AbstractFirestoreDocument)
|
|
|
15886
16444
|
bc: firestoreObjectArray({
|
|
15887
16445
|
objectField: firestoreNotificationUserNotificationBoxRecipientConfig
|
|
15888
16446
|
}),
|
|
15889
|
-
ns: optionalFirestoreBoolean()
|
|
16447
|
+
ns: optionalFirestoreBoolean(),
|
|
16448
|
+
hc: optionalFirestoreNotificationHealthCheck
|
|
15890
16449
|
}
|
|
15891
16450
|
});
|
|
15892
16451
|
/**
|
|
@@ -16615,6 +17174,15 @@ var updateNotificationUserParamsType = targetModelParamsType.merge({
|
|
|
16615
17174
|
'dc?': model.clearable(updateNotificationUserDefaultNotificationBoxRecipientConfigParamsType),
|
|
16616
17175
|
'bc?': model.clearable(updateNotificationUserNotificationBoxRecipientParamsType.array())
|
|
16617
17176
|
});
|
|
17177
|
+
var notificationUserHealthCheckParamsType = targetModelParamsType.merge({
|
|
17178
|
+
'methods?': model.clearable(arktype.type.enumerated(exports.NotificationDeliveryMethod.EMAIL, exports.NotificationDeliveryMethod.TEXT, exports.NotificationDeliveryMethod.PUSH, exports.NotificationDeliveryMethod.NOTIFICATION_SUMMARY).array()),
|
|
17179
|
+
'sendProbe?': model.clearable('boolean'),
|
|
17180
|
+
'verifyPendingProbesOnly?': model.clearable('boolean'),
|
|
17181
|
+
'notificationTemplateType?': model.clearable('string > 0'),
|
|
17182
|
+
'skipSubscriptionChecks?': model.clearable('boolean'),
|
|
17183
|
+
'force?': model.clearable('boolean'),
|
|
17184
|
+
'returnFullHealthCheck?': model.clearable('boolean')
|
|
17185
|
+
});
|
|
16618
17186
|
var resyncAllNotificationUserParamsType = /* @__PURE__ */ arktype.type({});
|
|
16619
17187
|
var createNotificationSummaryParamsType = /* @__PURE__ */ arktype.type({
|
|
16620
17188
|
model: firestoreModelKeyType
|
|
@@ -16668,7 +17236,8 @@ var cleanupOldNotificationLoggedEventDaysParamsType = /* @__PURE__ */ arktype.ty
|
|
|
16668
17236
|
var NOTIFICATION_FUNCTION_TYPE_CONFIG_MAP = {};
|
|
16669
17237
|
var NOTIFICATION_BOX_MODEL_CRUD_FUNCTIONS_CONFIG = {
|
|
16670
17238
|
notificationUser: [
|
|
16671
|
-
'update:_,resync'
|
|
17239
|
+
'update:_,resync',
|
|
17240
|
+
'invoke:healthCheck'
|
|
16672
17241
|
],
|
|
16673
17242
|
notificationSummary: [
|
|
16674
17243
|
'update:_'
|
|
@@ -16724,6 +17293,18 @@ var NOTIFICATION_BOX_MODEL_CRUD_FUNCTIONS_CONFIG = {
|
|
|
16724
17293
|
/**
|
|
16725
17294
|
* Thrown when attempting to update a recipient config that is locked by the user.
|
|
16726
17295
|
*/ var NOTIFICATION_USER_LOCKED_CONFIG_FROM_BEING_UPDATED_ERROR_CODE = 'NOTIFICATION_USER_LOCKED_CONFIG_FROM_BEING_UPDATED';
|
|
17296
|
+
/**
|
|
17297
|
+
* Thrown when a NotificationUser health check is run again before its throttle window has passed.
|
|
17298
|
+
*/ var NOTIFICATION_USER_HEALTH_CHECK_THROTTLED_ERROR_CODE = 'NOTIFICATION_USER_HEALTH_CHECK_THROTTLED';
|
|
17299
|
+
/**
|
|
17300
|
+
* Thrown when a NotificationUser health check test message is dispatched again before its throttle
|
|
17301
|
+
* window has passed. Tracked separately from the run throttle, since a probe sends a real message.
|
|
17302
|
+
*/ var NOTIFICATION_USER_HEALTH_CHECK_PROBE_THROTTLED_ERROR_CODE = 'NOTIFICATION_USER_HEALTH_CHECK_PROBE_THROTTLED';
|
|
17303
|
+
/**
|
|
17304
|
+
* Thrown when a NotificationUser health check's pending probes are verified again before its throttle
|
|
17305
|
+
* window has passed. Tracked separately from the run throttle: verifying an in-flight test message is
|
|
17306
|
+
* cheap and meant to be polled, so it neither answers to nor consumes the user's run allowance.
|
|
17307
|
+
*/ var NOTIFICATION_USER_HEALTH_CHECK_VERIFY_THROTTLED_ERROR_CODE = 'NOTIFICATION_USER_HEALTH_CHECK_VERIFY_THROTTLED';
|
|
16727
17308
|
|
|
16728
17309
|
function _define_property$9(obj, key, value) {
|
|
16729
17310
|
if (key in obj) {
|
|
@@ -17956,6 +18537,53 @@ function _unsupported_iterable_to_array$4(o, minLen) {
|
|
|
17956
18537
|
return service;
|
|
17957
18538
|
}
|
|
17958
18539
|
|
|
18540
|
+
/**
|
|
18541
|
+
* @module notification.healthcheck.mailgun
|
|
18542
|
+
*
|
|
18543
|
+
* Issue codes emitted by the Mailgun-backed email health check.
|
|
18544
|
+
*
|
|
18545
|
+
* These live here, rather than next to the server-side check that emits them, so a browser can ship a
|
|
18546
|
+
* first-class presentation for each code without re-declaring the strings. The check itself stays in
|
|
18547
|
+
* `@dereekb/firebase-server/model` and imports these codes from here.
|
|
18548
|
+
*/ /**
|
|
18549
|
+
* Issue codes emitted by the Mailgun email health check.
|
|
18550
|
+
*
|
|
18551
|
+
* These are Mailgun-specific and sit alongside the library's own
|
|
18552
|
+
* {@link KnownNotificationHealthCheckIssueCode} values.
|
|
18553
|
+
*/ exports.MailgunNotificationHealthCheckIssueCode = void 0;
|
|
18554
|
+
(function(MailgunNotificationHealthCheckIssueCode) {
|
|
18555
|
+
/**
|
|
18556
|
+
* The address is on the domain's bounce suppression list, so Mailgun drops every message to it.
|
|
18557
|
+
*/ MailgunNotificationHealthCheckIssueCode["SUPPRESSED_BOUNCE"] = "mailgunSuppressedBounce";
|
|
18558
|
+
/**
|
|
18559
|
+
* The address is on the domain's spam complaint list, so Mailgun drops every message to it.
|
|
18560
|
+
*/ MailgunNotificationHealthCheckIssueCode["SUPPRESSED_COMPLAINT"] = "mailgunSuppressedComplaint";
|
|
18561
|
+
/**
|
|
18562
|
+
* The address is on the domain's unsubscribe list.
|
|
18563
|
+
*/ MailgunNotificationHealthCheckIssueCode["SUPPRESSED_UNSUBSCRIBE"] = "mailgunSuppressedUnsubscribe";
|
|
18564
|
+
/**
|
|
18565
|
+
* A recent message to the address failed or was rejected.
|
|
18566
|
+
*/ MailgunNotificationHealthCheckIssueCode["RECENT_DELIVERY_FAILURE"] = "mailgunRecentDeliveryFailure";
|
|
18567
|
+
/**
|
|
18568
|
+
* A recent message to the address was delivered successfully.
|
|
18569
|
+
*/ MailgunNotificationHealthCheckIssueCode["RECENT_DELIVERY_SUCCESS"] = "mailgunRecentDeliverySuccess";
|
|
18570
|
+
/**
|
|
18571
|
+
* No email activity was recorded for the address in the window that was inspected.
|
|
18572
|
+
*/ MailgunNotificationHealthCheckIssueCode["NO_RECENT_ACTIVITY"] = "mailgunNoRecentActivity";
|
|
18573
|
+
/**
|
|
18574
|
+
* The sending domain is not active, which blocks delivery for everyone.
|
|
18575
|
+
*/ MailgunNotificationHealthCheckIssueCode["DOMAIN_NOT_ACTIVE"] = "mailgunDomainNotActive";
|
|
18576
|
+
/**
|
|
18577
|
+
* Address validation says the address cannot receive mail.
|
|
18578
|
+
*/ MailgunNotificationHealthCheckIssueCode["ADDRESS_UNDELIVERABLE"] = "mailgunAddressUndeliverable";
|
|
18579
|
+
/**
|
|
18580
|
+
* The address belongs to a disposable email provider.
|
|
18581
|
+
*/ MailgunNotificationHealthCheckIssueCode["ADDRESS_DISPOSABLE"] = "mailgunAddressDisposable";
|
|
18582
|
+
/**
|
|
18583
|
+
* A probe was requested but no probe message builder is configured.
|
|
18584
|
+
*/ MailgunNotificationHealthCheckIssueCode["PROBE_NOT_CONFIGURED"] = "mailgunProbeNotConfigured";
|
|
18585
|
+
})(exports.MailgunNotificationHealthCheckIssueCode || (exports.MailgunNotificationHealthCheckIssueCode = {}));
|
|
18586
|
+
|
|
17959
18587
|
function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
|
|
17960
18588
|
try {
|
|
17961
18589
|
var info = gen[key](arg);
|
|
@@ -21762,6 +22390,7 @@ function _is_native_reflect_construct() {
|
|
|
21762
22390
|
});
|
|
21763
22391
|
}
|
|
21764
22392
|
|
|
22393
|
+
exports.ALL_NOTIFICATION_DELIVERY_METHODS = ALL_NOTIFICATION_DELIVERY_METHODS;
|
|
21765
22394
|
exports.ALL_OIDC_TOKEN_ENDPOINT_AUTH_METHODS = ALL_OIDC_TOKEN_ENDPOINT_AUTH_METHODS;
|
|
21766
22395
|
exports.ALL_OIDC_TOKEN_ENDPOINT_AUTH_METHOD_OPTIONS = ALL_OIDC_TOKEN_ENDPOINT_AUTH_METHOD_OPTIONS;
|
|
21767
22396
|
exports.ALL_STORAGE_FILE_NOTIFICATION_TASK_TYPES = ALL_STORAGE_FILE_NOTIFICATION_TASK_TYPES;
|
|
@@ -21812,6 +22441,9 @@ exports.DEFAULT_NOTIFICATION_TASK_NOTIFICATION_MODEL_KEY = DEFAULT_NOTIFICATION_
|
|
|
21812
22441
|
exports.DEFAULT_NOTIFICATION_TASK_SUBTASK_CLEANUP_RETRY_ATTEMPTS = DEFAULT_NOTIFICATION_TASK_SUBTASK_CLEANUP_RETRY_ATTEMPTS;
|
|
21813
22442
|
exports.DEFAULT_NOTIFICATION_TASK_SUBTASK_CLEANUP_RETRY_DELAY = DEFAULT_NOTIFICATION_TASK_SUBTASK_CLEANUP_RETRY_DELAY;
|
|
21814
22443
|
exports.DEFAULT_NOTIFICATION_TEMPLATE_TYPE = DEFAULT_NOTIFICATION_TEMPLATE_TYPE;
|
|
22444
|
+
exports.DEFAULT_NOTIFICATION_USER_HEALTH_CHECK_PROBE_THROTTLE_MINUTES = DEFAULT_NOTIFICATION_USER_HEALTH_CHECK_PROBE_THROTTLE_MINUTES;
|
|
22445
|
+
exports.DEFAULT_NOTIFICATION_USER_HEALTH_CHECK_THROTTLE_MINUTES = DEFAULT_NOTIFICATION_USER_HEALTH_CHECK_THROTTLE_MINUTES;
|
|
22446
|
+
exports.DEFAULT_NOTIFICATION_USER_HEALTH_CHECK_VERIFY_THROTTLE_SECONDS = DEFAULT_NOTIFICATION_USER_HEALTH_CHECK_VERIFY_THROTTLE_SECONDS;
|
|
21815
22447
|
exports.DEFAULT_ON_CALL_QUERY_MODEL_LIMIT = DEFAULT_ON_CALL_QUERY_MODEL_LIMIT;
|
|
21816
22448
|
exports.DEFAULT_PAGED_ITEM_INDEX_DOCUMENT_ID = DEFAULT_PAGED_ITEM_INDEX_DOCUMENT_ID;
|
|
21817
22449
|
exports.DEFAULT_PAGED_ITEM_MAX_ITEMS_PER_PAGE = DEFAULT_PAGED_ITEM_MAX_ITEMS_PER_PAGE;
|
|
@@ -21892,6 +22524,7 @@ exports.NOTIFICATION_BOX_EXISTS_FOR_MODEL_ERROR_CODE = NOTIFICATION_BOX_EXISTS_F
|
|
|
21892
22524
|
exports.NOTIFICATION_BOX_MODEL_CRUD_FUNCTIONS_CONFIG = NOTIFICATION_BOX_MODEL_CRUD_FUNCTIONS_CONFIG;
|
|
21893
22525
|
exports.NOTIFICATION_BOX_RECIPIENT_DOES_NOT_EXIST_ERROR_CODE = NOTIFICATION_BOX_RECIPIENT_DOES_NOT_EXIST_ERROR_CODE;
|
|
21894
22526
|
exports.NOTIFICATION_FUNCTION_TYPE_CONFIG_MAP = NOTIFICATION_FUNCTION_TYPE_CONFIG_MAP;
|
|
22527
|
+
exports.NOTIFICATION_HEALTH_CHECK_STATUS_SEVERITY = NOTIFICATION_HEALTH_CHECK_STATUS_SEVERITY;
|
|
21895
22528
|
exports.NOTIFICATION_LOGGED_EVENT_DAY_ITEM_CONVERTER = NOTIFICATION_LOGGED_EVENT_DAY_ITEM_CONVERTER;
|
|
21896
22529
|
exports.NOTIFICATION_MESSAGE_MAX_LENGTH = NOTIFICATION_MESSAGE_MAX_LENGTH;
|
|
21897
22530
|
exports.NOTIFICATION_MESSAGE_MIN_LENGTH = NOTIFICATION_MESSAGE_MIN_LENGTH;
|
|
@@ -21906,6 +22539,9 @@ exports.NOTIFICATION_SUMMARY_ITEM_LIMIT = NOTIFICATION_SUMMARY_ITEM_LIMIT;
|
|
|
21906
22539
|
exports.NOTIFICATION_TASK_SUBTASK_CHECKPOINT_CLEANUP = NOTIFICATION_TASK_SUBTASK_CHECKPOINT_CLEANUP;
|
|
21907
22540
|
exports.NOTIFICATION_TASK_SUBTASK_CHECKPOINT_PROCESSING = NOTIFICATION_TASK_SUBTASK_CHECKPOINT_PROCESSING;
|
|
21908
22541
|
exports.NOTIFICATION_USER_BLOCKED_FROM_BEING_ADD_TO_RECIPIENTS_ERROR_CODE = NOTIFICATION_USER_BLOCKED_FROM_BEING_ADD_TO_RECIPIENTS_ERROR_CODE;
|
|
22542
|
+
exports.NOTIFICATION_USER_HEALTH_CHECK_PROBE_THROTTLED_ERROR_CODE = NOTIFICATION_USER_HEALTH_CHECK_PROBE_THROTTLED_ERROR_CODE;
|
|
22543
|
+
exports.NOTIFICATION_USER_HEALTH_CHECK_THROTTLED_ERROR_CODE = NOTIFICATION_USER_HEALTH_CHECK_THROTTLED_ERROR_CODE;
|
|
22544
|
+
exports.NOTIFICATION_USER_HEALTH_CHECK_VERIFY_THROTTLED_ERROR_CODE = NOTIFICATION_USER_HEALTH_CHECK_VERIFY_THROTTLED_ERROR_CODE;
|
|
21909
22545
|
exports.NOTIFICATION_USER_INVALID_UID_FOR_CREATE_ERROR_CODE = NOTIFICATION_USER_INVALID_UID_FOR_CREATE_ERROR_CODE;
|
|
21910
22546
|
exports.NOTIFICATION_USER_LOCKED_CONFIG_FROM_BEING_UPDATED_ERROR_CODE = NOTIFICATION_USER_LOCKED_CONFIG_FROM_BEING_UPDATED_ERROR_CODE;
|
|
21911
22547
|
exports.NOTIFICATION_WEEK_NOTIFICATION_ITEM_LIMIT = NOTIFICATION_WEEK_NOTIFICATION_ITEM_LIMIT;
|
|
@@ -21977,6 +22613,7 @@ exports.UNAUTHENTICATED_ERROR_CODE = UNAUTHENTICATED_ERROR_CODE;
|
|
|
21977
22613
|
exports.UNAVAILABLE_ERROR_CODE = UNAVAILABLE_ERROR_CODE;
|
|
21978
22614
|
exports.UNAVAILABLE_OR_DEACTIVATED_FUNCTION_ERROR_CODE = UNAVAILABLE_OR_DEACTIVATED_FUNCTION_ERROR_CODE;
|
|
21979
22615
|
exports.UNKNOWN_MODEL_TYPE_ERROR_CODE = UNKNOWN_MODEL_TYPE_ERROR_CODE;
|
|
22616
|
+
exports.UNTRACKABLE_NOTIFICATION_HEALTH_CHECK_PROBE_ID = UNTRACKABLE_NOTIFICATION_HEALTH_CHECK_PROBE_ID;
|
|
21980
22617
|
exports.UPDATE_MODEL_OIDC_SCOPE = UPDATE_MODEL_OIDC_SCOPE;
|
|
21981
22618
|
exports.UPLOADED_FILE_DOES_NOT_EXIST_ERROR_CODE = UPLOADED_FILE_DOES_NOT_EXIST_ERROR_CODE;
|
|
21982
22619
|
exports.UPLOADED_FILE_INITIALIZATION_DISCARDED_ERROR_CODE = UPLOADED_FILE_INITIALIZATION_DISCARDED_ERROR_CODE;
|
|
@@ -21992,6 +22629,7 @@ exports.adminOnlyScopesForOidcProviderProfiles = adminOnlyScopesForOidcProviderP
|
|
|
21992
22629
|
exports.allChildDocumentsUnderParent = allChildDocumentsUnderParent;
|
|
21993
22630
|
exports.allChildDocumentsUnderParentPath = allChildDocumentsUnderParentPath;
|
|
21994
22631
|
exports.allChildDocumentsUnderRelativePath = allChildDocumentsUnderRelativePath;
|
|
22632
|
+
exports.allNotificationHealthCheckIssues = allNotificationHealthCheckIssues;
|
|
21995
22633
|
exports.allowDocumentSnapshotWithPathOnceFilter = allowDocumentSnapshotWithPathOnceFilter;
|
|
21996
22634
|
exports.allowedNotificationRecipients = allowedNotificationRecipients;
|
|
21997
22635
|
exports.appNotificationTemplateTypeInfoRecordService = appNotificationTemplateTypeInfoRecordService;
|
|
@@ -22195,6 +22833,10 @@ exports.firestoreModelKeysFromDocuments = firestoreModelKeysFromDocuments;
|
|
|
22195
22833
|
exports.firestoreModelType = firestoreModelType;
|
|
22196
22834
|
exports.firestoreNotificationBoxRecipient = firestoreNotificationBoxRecipient;
|
|
22197
22835
|
exports.firestoreNotificationBoxRecipientTemplateConfigRecord = firestoreNotificationBoxRecipientTemplateConfigRecord;
|
|
22836
|
+
exports.firestoreNotificationDeliveryHealthCheckResult = firestoreNotificationDeliveryHealthCheckResult;
|
|
22837
|
+
exports.firestoreNotificationHealthCheck = firestoreNotificationHealthCheck;
|
|
22838
|
+
exports.firestoreNotificationHealthCheckIssue = firestoreNotificationHealthCheckIssue;
|
|
22839
|
+
exports.firestoreNotificationHealthCheckProbe = firestoreNotificationHealthCheckProbe;
|
|
22198
22840
|
exports.firestoreNotificationItem = firestoreNotificationItem;
|
|
22199
22841
|
exports.firestoreNotificationRecipientWithConfig = firestoreNotificationRecipientWithConfig;
|
|
22200
22842
|
exports.firestoreNotificationUserDefaultNotificationBoxRecipientConfig = firestoreNotificationUserDefaultNotificationBoxRecipientConfig;
|
|
@@ -22275,6 +22917,8 @@ exports.isFirestoreModelIdOrKey = isFirestoreModelIdOrKey;
|
|
|
22275
22917
|
exports.isFirestoreModelKey = isFirestoreModelKey;
|
|
22276
22918
|
exports.isLoggedEventNotification = isLoggedEventNotification;
|
|
22277
22919
|
exports.isOwnerOfUserRelatedModelInFirebaseModelContext = isOwnerOfUserRelatedModelInFirebaseModelContext;
|
|
22920
|
+
exports.isPendingNotificationHealthCheckProbe = isPendingNotificationHealthCheckProbe;
|
|
22921
|
+
exports.isProblemNotificationHealthCheckStatus = isProblemNotificationHealthCheckStatus;
|
|
22278
22922
|
exports.iterateFirestoreDocumentSnapshotBatches = iterateFirestoreDocumentSnapshotBatches;
|
|
22279
22923
|
exports.iterateFirestoreDocumentSnapshotCheckpoints = iterateFirestoreDocumentSnapshotCheckpoints;
|
|
22280
22924
|
exports.iterateFirestoreDocumentSnapshotPairBatches = iterateFirestoreDocumentSnapshotPairBatches;
|
|
@@ -22347,9 +22991,12 @@ exports.notificationBoxesFlaggedInvalidQuery = notificationBoxesFlaggedInvalidQu
|
|
|
22347
22991
|
exports.notificationCollectionReference = notificationCollectionReference;
|
|
22348
22992
|
exports.notificationCollectionReferenceFactory = notificationCollectionReferenceFactory;
|
|
22349
22993
|
exports.notificationConverter = notificationConverter;
|
|
22994
|
+
exports.notificationDeliveryHealthCheckResultForMethod = notificationDeliveryHealthCheckResultForMethod;
|
|
22350
22995
|
exports.notificationFirestoreCollectionFactory = notificationFirestoreCollectionFactory;
|
|
22351
22996
|
exports.notificationFirestoreCollectionGroup = notificationFirestoreCollectionGroup;
|
|
22352
22997
|
exports.notificationFunctionMap = notificationFunctionMap;
|
|
22998
|
+
exports.notificationHealthCheckIssue = notificationHealthCheckIssue;
|
|
22999
|
+
exports.notificationHealthCheckPendingProbeMethods = notificationHealthCheckPendingProbeMethods;
|
|
22353
23000
|
exports.notificationIdentity = notificationIdentity;
|
|
22354
23001
|
exports.notificationLoggedEventDayCollectionReference = notificationLoggedEventDayCollectionReference;
|
|
22355
23002
|
exports.notificationLoggedEventDayCollectionReferenceFactory = notificationLoggedEventDayCollectionReferenceFactory;
|
|
@@ -22388,6 +23035,11 @@ exports.notificationUserCollectionReference = notificationUserCollectionReferenc
|
|
|
22388
23035
|
exports.notificationUserConverter = notificationUserConverter;
|
|
22389
23036
|
exports.notificationUserFirestoreCollection = notificationUserFirestoreCollection;
|
|
22390
23037
|
exports.notificationUserHasExclusionQuery = notificationUserHasExclusionQuery;
|
|
23038
|
+
exports.notificationUserHealthCheckNextProbeAt = notificationUserHealthCheckNextProbeAt;
|
|
23039
|
+
exports.notificationUserHealthCheckNextProbeAtByMethod = notificationUserHealthCheckNextProbeAtByMethod;
|
|
23040
|
+
exports.notificationUserHealthCheckNextRunAt = notificationUserHealthCheckNextRunAt;
|
|
23041
|
+
exports.notificationUserHealthCheckNextVerifyAt = notificationUserHealthCheckNextVerifyAt;
|
|
23042
|
+
exports.notificationUserHealthCheckParamsType = notificationUserHealthCheckParamsType;
|
|
22391
23043
|
exports.notificationUserIdentity = notificationUserIdentity;
|
|
22392
23044
|
exports.notificationUsersFlaggedForNeedsSyncQuery = notificationUsersFlaggedForNeedsSyncQuery;
|
|
22393
23045
|
exports.notificationWeekCollectionReference = notificationWeekCollectionReference;
|
|
@@ -22434,6 +23086,7 @@ exports.optionalFirestoreDate = optionalFirestoreDate;
|
|
|
22434
23086
|
exports.optionalFirestoreDateNumber = optionalFirestoreDateNumber;
|
|
22435
23087
|
exports.optionalFirestoreEnum = optionalFirestoreEnum;
|
|
22436
23088
|
exports.optionalFirestoreField = optionalFirestoreField;
|
|
23089
|
+
exports.optionalFirestoreNotificationHealthCheck = optionalFirestoreNotificationHealthCheck;
|
|
22437
23090
|
exports.optionalFirestoreNumber = optionalFirestoreNumber;
|
|
22438
23091
|
exports.optionalFirestoreString = optionalFirestoreString;
|
|
22439
23092
|
exports.optionalFirestoreUID = optionalFirestoreUID;
|
|
@@ -22458,6 +23111,9 @@ exports.resolveEffectiveOidcScopeTerms = resolveEffectiveOidcScopeTerms;
|
|
|
22458
23111
|
exports.resolveOidcModelScopeRequirement = resolveOidcModelScopeRequirement;
|
|
22459
23112
|
exports.resyncAllNotificationUserParamsType = resyncAllNotificationUserParamsType;
|
|
22460
23113
|
exports.resyncNotificationUserParamsType = targetModelParamsType;
|
|
23114
|
+
exports.rollupNotificationDeliveryHealthCheckResultStatus = rollupNotificationDeliveryHealthCheckResultStatus;
|
|
23115
|
+
exports.rollupNotificationHealthCheckResultStatus = rollupNotificationHealthCheckResultStatus;
|
|
23116
|
+
exports.rollupNotificationHealthCheckStatus = rollupNotificationHealthCheckStatus;
|
|
22461
23117
|
exports.rotateOidcClientSecretParamsType = targetModelParamsType;
|
|
22462
23118
|
exports.scheduledFunctionDevelopmentFirebaseFunctionParamsType = scheduledFunctionDevelopmentFirebaseFunctionParamsType;
|
|
22463
23119
|
exports.scopesForOidcProviderProfiles = scopesForOidcProviderProfiles;
|
|
@@ -22519,6 +23175,7 @@ exports.targetModelParamsType = targetModelParamsType;
|
|
|
22519
23175
|
exports.twoWayFlatFirestoreModelKey = twoWayFlatFirestoreModelKey;
|
|
22520
23176
|
exports.unreadNotificationItems = unreadNotificationItems;
|
|
22521
23177
|
exports.unsupportedFirestoreDriverFunctionError = unsupportedFirestoreDriverFunctionError;
|
|
23178
|
+
exports.untrackableNotificationHealthCheckProbe = untrackableNotificationHealthCheckProbe;
|
|
22522
23179
|
exports.updateNotificationBoxParamsType = targetModelParamsType;
|
|
22523
23180
|
exports.updateNotificationBoxRecipientLikeParamsType = updateNotificationBoxRecipientLikeParamsType;
|
|
22524
23181
|
exports.updateNotificationBoxRecipientParamsType = updateNotificationBoxRecipientParamsType;
|