@dereekb/firebase 13.5.0 → 13.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +121 -158
- package/index.esm.js +121 -158
- package/package.json +5 -5
- package/test/package.json +6 -6
package/index.esm.js
CHANGED
|
@@ -3805,30 +3805,30 @@ function firebaseQueryItemAccumulator(iteration, mapItem) {
|
|
|
3805
3805
|
return firebaseQuerySnapshotAccumulator(iteration, mapFn);
|
|
3806
3806
|
}
|
|
3807
3807
|
|
|
3808
|
-
function _array_like_to_array$
|
|
3808
|
+
function _array_like_to_array$f(arr, len) {
|
|
3809
3809
|
if (len == null || len > arr.length) len = arr.length;
|
|
3810
3810
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
3811
3811
|
return arr2;
|
|
3812
3812
|
}
|
|
3813
|
-
function _array_without_holes$
|
|
3814
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
3813
|
+
function _array_without_holes$b(arr) {
|
|
3814
|
+
if (Array.isArray(arr)) return _array_like_to_array$f(arr);
|
|
3815
3815
|
}
|
|
3816
|
-
function _iterable_to_array$
|
|
3816
|
+
function _iterable_to_array$b(iter) {
|
|
3817
3817
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
3818
3818
|
}
|
|
3819
|
-
function _non_iterable_spread$
|
|
3819
|
+
function _non_iterable_spread$b() {
|
|
3820
3820
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3821
3821
|
}
|
|
3822
|
-
function _to_consumable_array$
|
|
3823
|
-
return _array_without_holes$
|
|
3822
|
+
function _to_consumable_array$b(arr) {
|
|
3823
|
+
return _array_without_holes$b(arr) || _iterable_to_array$b(arr) || _unsupported_iterable_to_array$f(arr) || _non_iterable_spread$b();
|
|
3824
3824
|
}
|
|
3825
|
-
function _unsupported_iterable_to_array$
|
|
3825
|
+
function _unsupported_iterable_to_array$f(o, minLen) {
|
|
3826
3826
|
if (!o) return;
|
|
3827
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
3827
|
+
if (typeof o === "string") return _array_like_to_array$f(o, minLen);
|
|
3828
3828
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3829
3829
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3830
3830
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
3831
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
3831
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$f(o, minLen);
|
|
3832
3832
|
}
|
|
3833
3833
|
/**
|
|
3834
3834
|
* Creates a {@link FirestoreQueryConstraint} with the given type identifier and data.
|
|
@@ -4188,7 +4188,7 @@ function orderBy(fieldPath, directionStr) {
|
|
|
4188
4188
|
* );
|
|
4189
4189
|
* const newConstraints = replaceLimit(existingConstraints);
|
|
4190
4190
|
*/ function replaceConstraints(replaceFn, types) {
|
|
4191
|
-
var separateFn = separateConstraints.apply(void 0, _to_consumable_array$
|
|
4191
|
+
var separateFn = separateConstraints.apply(void 0, _to_consumable_array$b(types));
|
|
4192
4192
|
return function(constraints) {
|
|
4193
4193
|
var separated = separateFn(constraints);
|
|
4194
4194
|
var replacements = asArray(replaceFn(separated.excluded));
|
|
@@ -4374,13 +4374,13 @@ function whereDateIsBeforeWithSort(fieldPath) {
|
|
|
4374
4374
|
];
|
|
4375
4375
|
}
|
|
4376
4376
|
|
|
4377
|
-
function _array_like_to_array$
|
|
4377
|
+
function _array_like_to_array$e(arr, len) {
|
|
4378
4378
|
if (len == null || len > arr.length) len = arr.length;
|
|
4379
4379
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
4380
4380
|
return arr2;
|
|
4381
4381
|
}
|
|
4382
|
-
function _array_without_holes$
|
|
4383
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
4382
|
+
function _array_without_holes$a(arr) {
|
|
4383
|
+
if (Array.isArray(arr)) return _array_like_to_array$e(arr);
|
|
4384
4384
|
}
|
|
4385
4385
|
function _define_property$r(obj, key, value) {
|
|
4386
4386
|
if (key in obj) {
|
|
@@ -4395,10 +4395,10 @@ function _define_property$r(obj, key, value) {
|
|
|
4395
4395
|
}
|
|
4396
4396
|
return obj;
|
|
4397
4397
|
}
|
|
4398
|
-
function _iterable_to_array$
|
|
4398
|
+
function _iterable_to_array$a(iter) {
|
|
4399
4399
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
4400
4400
|
}
|
|
4401
|
-
function _non_iterable_spread$
|
|
4401
|
+
function _non_iterable_spread$a() {
|
|
4402
4402
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
4403
4403
|
}
|
|
4404
4404
|
function _object_spread$l(target) {
|
|
@@ -4435,16 +4435,16 @@ function _object_spread_props$h(target, source) {
|
|
|
4435
4435
|
}
|
|
4436
4436
|
return target;
|
|
4437
4437
|
}
|
|
4438
|
-
function _to_consumable_array$
|
|
4439
|
-
return _array_without_holes$
|
|
4438
|
+
function _to_consumable_array$a(arr) {
|
|
4439
|
+
return _array_without_holes$a(arr) || _iterable_to_array$a(arr) || _unsupported_iterable_to_array$e(arr) || _non_iterable_spread$a();
|
|
4440
4440
|
}
|
|
4441
|
-
function _unsupported_iterable_to_array$
|
|
4441
|
+
function _unsupported_iterable_to_array$e(o, minLen) {
|
|
4442
4442
|
if (!o) return;
|
|
4443
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
4443
|
+
if (typeof o === "string") return _array_like_to_array$e(o, minLen);
|
|
4444
4444
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
4445
4445
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
4446
4446
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
4447
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
4447
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$e(o, minLen);
|
|
4448
4448
|
}
|
|
4449
4449
|
/**
|
|
4450
4450
|
* Filters out constraints that should not be directly specified in pagination queries.
|
|
@@ -4507,13 +4507,13 @@ function _unsupported_iterable_to_array$f(o, minLen) {
|
|
|
4507
4507
|
// Add Limit
|
|
4508
4508
|
var limitCount = filterLimit !== null && filterLimit !== void 0 ? filterLimit : itemsPerPage + (startAfterFilter ? 1 : 0); // todo: may not be needed.
|
|
4509
4509
|
var limitConstraint = limit(limitCount);
|
|
4510
|
-
var constraintsWithLimit = _to_consumable_array$
|
|
4510
|
+
var constraintsWithLimit = _to_consumable_array$a(constraints).concat([
|
|
4511
4511
|
limitConstraint
|
|
4512
4512
|
]);
|
|
4513
4513
|
// make query
|
|
4514
4514
|
var batchQuery = (_driver = driver).query.apply(_driver, [
|
|
4515
4515
|
queryLike
|
|
4516
|
-
].concat(_to_consumable_array$
|
|
4516
|
+
].concat(_to_consumable_array$a(constraintsWithLimit)));
|
|
4517
4517
|
var resultPromise = driver.getDocs(batchQuery).then(function(snapshot) {
|
|
4518
4518
|
var time = new Date();
|
|
4519
4519
|
var docs = snapshot.docs;
|
|
@@ -4769,13 +4769,13 @@ function _firestoreItemPageIterationWithSnapshotIteration(snapshotIteration) {
|
|
|
4769
4769
|
return _firestoreItemPageIterationWithSnapshotIteration(snapshotIteration);
|
|
4770
4770
|
}
|
|
4771
4771
|
|
|
4772
|
-
function _array_like_to_array$
|
|
4772
|
+
function _array_like_to_array$d(arr, len) {
|
|
4773
4773
|
if (len == null || len > arr.length) len = arr.length;
|
|
4774
4774
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
4775
4775
|
return arr2;
|
|
4776
4776
|
}
|
|
4777
|
-
function _array_without_holes$
|
|
4778
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
4777
|
+
function _array_without_holes$9(arr) {
|
|
4778
|
+
if (Array.isArray(arr)) return _array_like_to_array$d(arr);
|
|
4779
4779
|
}
|
|
4780
4780
|
function asyncGeneratorStep$g(gen, resolve, reject, _next, _throw, key, arg) {
|
|
4781
4781
|
try {
|
|
@@ -4806,22 +4806,22 @@ function _async_to_generator$g(fn) {
|
|
|
4806
4806
|
});
|
|
4807
4807
|
};
|
|
4808
4808
|
}
|
|
4809
|
-
function _iterable_to_array$
|
|
4809
|
+
function _iterable_to_array$9(iter) {
|
|
4810
4810
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
4811
4811
|
}
|
|
4812
|
-
function _non_iterable_spread$
|
|
4812
|
+
function _non_iterable_spread$9() {
|
|
4813
4813
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
4814
4814
|
}
|
|
4815
|
-
function _to_consumable_array$
|
|
4816
|
-
return _array_without_holes$
|
|
4815
|
+
function _to_consumable_array$9(arr) {
|
|
4816
|
+
return _array_without_holes$9(arr) || _iterable_to_array$9(arr) || _unsupported_iterable_to_array$d(arr) || _non_iterable_spread$9();
|
|
4817
4817
|
}
|
|
4818
|
-
function _unsupported_iterable_to_array$
|
|
4818
|
+
function _unsupported_iterable_to_array$d(o, minLen) {
|
|
4819
4819
|
if (!o) return;
|
|
4820
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
4820
|
+
if (typeof o === "string") return _array_like_to_array$d(o, minLen);
|
|
4821
4821
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
4822
4822
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
4823
4823
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
4824
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
4824
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$d(o, minLen);
|
|
4825
4825
|
}
|
|
4826
4826
|
function _ts_generator$g(thisArg, body) {
|
|
4827
4827
|
var f, y, t, _ = {
|
|
@@ -4959,7 +4959,7 @@ function _ts_generator$g(thisArg, body) {
|
|
|
4959
4959
|
var allConstraints = flattenArrayOrValueArray(queryConstraints);
|
|
4960
4960
|
var query = makeQuery.apply(void 0, [
|
|
4961
4961
|
inputQuery
|
|
4962
|
-
].concat(_to_consumable_array$
|
|
4962
|
+
].concat(_to_consumable_array$9(allConstraints)));
|
|
4963
4963
|
var result = {
|
|
4964
4964
|
query: query,
|
|
4965
4965
|
countDocs: function countDocs1() {
|
|
@@ -4981,7 +4981,7 @@ function _ts_generator$g(thisArg, body) {
|
|
|
4981
4981
|
constraintsForOneDoc = addOrReplaceLimitInConstraints(1)(allConstraints);
|
|
4982
4982
|
query = makeQuery.apply(void 0, [
|
|
4983
4983
|
inputQuery
|
|
4984
|
-
].concat(_to_consumable_array$
|
|
4984
|
+
].concat(_to_consumable_array$9(constraintsForOneDoc)));
|
|
4985
4985
|
return [
|
|
4986
4986
|
4,
|
|
4987
4987
|
getDocs(query, transaction)
|
|
@@ -5085,7 +5085,7 @@ function _ts_generator$g(thisArg, body) {
|
|
|
5085
5085
|
return snapshot.ref.path;
|
|
5086
5086
|
}
|
|
5087
5087
|
|
|
5088
|
-
function _array_like_to_array$
|
|
5088
|
+
function _array_like_to_array$c(arr, len) {
|
|
5089
5089
|
if (len == null || len > arr.length) len = arr.length;
|
|
5090
5090
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
5091
5091
|
return arr2;
|
|
@@ -5197,15 +5197,15 @@ function _object_spread_props$g(target, source) {
|
|
|
5197
5197
|
return target;
|
|
5198
5198
|
}
|
|
5199
5199
|
function _sliced_to_array$3(arr, i) {
|
|
5200
|
-
return _array_with_holes$3(arr) || _iterable_to_array_limit$3(arr, i) || _unsupported_iterable_to_array$
|
|
5200
|
+
return _array_with_holes$3(arr) || _iterable_to_array_limit$3(arr, i) || _unsupported_iterable_to_array$c(arr, i) || _non_iterable_rest$3();
|
|
5201
5201
|
}
|
|
5202
|
-
function _unsupported_iterable_to_array$
|
|
5202
|
+
function _unsupported_iterable_to_array$c(o, minLen) {
|
|
5203
5203
|
if (!o) return;
|
|
5204
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
5204
|
+
if (typeof o === "string") return _array_like_to_array$c(o, minLen);
|
|
5205
5205
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
5206
5206
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
5207
5207
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
5208
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
5208
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$c(o, minLen);
|
|
5209
5209
|
}
|
|
5210
5210
|
function _ts_generator$f(thisArg, body) {
|
|
5211
5211
|
var f, y, t, _ = {
|
|
@@ -6268,13 +6268,13 @@ function _ts_generator$e(thisArg, body) {
|
|
|
6268
6268
|
return type;
|
|
6269
6269
|
}
|
|
6270
6270
|
|
|
6271
|
-
function _array_like_to_array$
|
|
6271
|
+
function _array_like_to_array$b(arr, len) {
|
|
6272
6272
|
if (len == null || len > arr.length) len = arr.length;
|
|
6273
6273
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
6274
6274
|
return arr2;
|
|
6275
6275
|
}
|
|
6276
|
-
function _array_without_holes$
|
|
6277
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
6276
|
+
function _array_without_holes$8(arr) {
|
|
6277
|
+
if (Array.isArray(arr)) return _array_like_to_array$b(arr);
|
|
6278
6278
|
}
|
|
6279
6279
|
function asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, key, arg) {
|
|
6280
6280
|
try {
|
|
@@ -6305,22 +6305,22 @@ function _async_to_generator$d(fn) {
|
|
|
6305
6305
|
});
|
|
6306
6306
|
};
|
|
6307
6307
|
}
|
|
6308
|
-
function _iterable_to_array$
|
|
6308
|
+
function _iterable_to_array$8(iter) {
|
|
6309
6309
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
6310
6310
|
}
|
|
6311
|
-
function _non_iterable_spread$
|
|
6311
|
+
function _non_iterable_spread$8() {
|
|
6312
6312
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6313
6313
|
}
|
|
6314
|
-
function _to_consumable_array$
|
|
6315
|
-
return _array_without_holes$
|
|
6314
|
+
function _to_consumable_array$8(arr) {
|
|
6315
|
+
return _array_without_holes$8(arr) || _iterable_to_array$8(arr) || _unsupported_iterable_to_array$b(arr) || _non_iterable_spread$8();
|
|
6316
6316
|
}
|
|
6317
|
-
function _unsupported_iterable_to_array$
|
|
6317
|
+
function _unsupported_iterable_to_array$b(o, minLen) {
|
|
6318
6318
|
if (!o) return;
|
|
6319
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
6319
|
+
if (typeof o === "string") return _array_like_to_array$b(o, minLen);
|
|
6320
6320
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6321
6321
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
6322
6322
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
6323
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
6323
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$b(o, minLen);
|
|
6324
6324
|
}
|
|
6325
6325
|
function _ts_generator$d(thisArg, body) {
|
|
6326
6326
|
var f, y, t, _ = {
|
|
@@ -6538,7 +6538,7 @@ function _ts_generator$d(thisArg, body) {
|
|
|
6538
6538
|
for(var _len = arguments.length, queryConstraints = new Array(_len), _key = 0; _key < _len; _key++){
|
|
6539
6539
|
queryConstraints[_key] = arguments[_key];
|
|
6540
6540
|
}
|
|
6541
|
-
return wrapQuery((_baseQuery = baseQuery).filter.apply(_baseQuery, _to_consumable_array$
|
|
6541
|
+
return wrapQuery((_baseQuery = baseQuery).filter.apply(_baseQuery, _to_consumable_array$8(queryConstraints)));
|
|
6542
6542
|
}
|
|
6543
6543
|
};
|
|
6544
6544
|
};
|
|
@@ -6548,18 +6548,18 @@ function _ts_generator$d(thisArg, body) {
|
|
|
6548
6548
|
for(var _len = arguments.length, queryConstraints = new Array(_len), _key = 0; _key < _len; _key++){
|
|
6549
6549
|
queryConstraints[_key] = arguments[_key];
|
|
6550
6550
|
}
|
|
6551
|
-
return wrapQuery((_queryFactory = queryFactory).query.apply(_queryFactory, _to_consumable_array$
|
|
6551
|
+
return wrapQuery((_queryFactory = queryFactory).query.apply(_queryFactory, _to_consumable_array$8(queryConstraints)));
|
|
6552
6552
|
}
|
|
6553
6553
|
};
|
|
6554
6554
|
}
|
|
6555
6555
|
|
|
6556
|
-
function _array_like_to_array$
|
|
6556
|
+
function _array_like_to_array$a(arr, len) {
|
|
6557
6557
|
if (len == null || len > arr.length) len = arr.length;
|
|
6558
6558
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
6559
6559
|
return arr2;
|
|
6560
6560
|
}
|
|
6561
|
-
function _array_without_holes$
|
|
6562
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
6561
|
+
function _array_without_holes$7(arr) {
|
|
6562
|
+
if (Array.isArray(arr)) return _array_like_to_array$a(arr);
|
|
6563
6563
|
}
|
|
6564
6564
|
function _define_property$p(obj, key, value) {
|
|
6565
6565
|
if (key in obj) {
|
|
@@ -6574,10 +6574,10 @@ function _define_property$p(obj, key, value) {
|
|
|
6574
6574
|
}
|
|
6575
6575
|
return obj;
|
|
6576
6576
|
}
|
|
6577
|
-
function _iterable_to_array$
|
|
6577
|
+
function _iterable_to_array$7(iter) {
|
|
6578
6578
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
6579
6579
|
}
|
|
6580
|
-
function _non_iterable_spread$
|
|
6580
|
+
function _non_iterable_spread$7() {
|
|
6581
6581
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6582
6582
|
}
|
|
6583
6583
|
function _object_spread$j(target) {
|
|
@@ -6614,20 +6614,20 @@ function _object_spread_props$f(target, source) {
|
|
|
6614
6614
|
}
|
|
6615
6615
|
return target;
|
|
6616
6616
|
}
|
|
6617
|
-
function _to_consumable_array$
|
|
6618
|
-
return _array_without_holes$
|
|
6617
|
+
function _to_consumable_array$7(arr) {
|
|
6618
|
+
return _array_without_holes$7(arr) || _iterable_to_array$7(arr) || _unsupported_iterable_to_array$a(arr) || _non_iterable_spread$7();
|
|
6619
6619
|
}
|
|
6620
6620
|
function _type_of$9(obj) {
|
|
6621
6621
|
"@swc/helpers - typeof";
|
|
6622
6622
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
6623
6623
|
}
|
|
6624
|
-
function _unsupported_iterable_to_array$
|
|
6624
|
+
function _unsupported_iterable_to_array$a(o, minLen) {
|
|
6625
6625
|
if (!o) return;
|
|
6626
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
6626
|
+
if (typeof o === "string") return _array_like_to_array$a(o, minLen);
|
|
6627
6627
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6628
6628
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
6629
6629
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
6630
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
6630
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$a(o, minLen);
|
|
6631
6631
|
}
|
|
6632
6632
|
/**
|
|
6633
6633
|
* Separator used in Firestore paths to separate collection and document IDs.
|
|
@@ -7033,7 +7033,7 @@ function firestoreModelIdentity(parentOrModelName, collectionNameOrModelName, in
|
|
|
7033
7033
|
* @param input
|
|
7034
7034
|
* @returns
|
|
7035
7035
|
*/ function firestoreModelKeyPartPairsKeyPath(input) {
|
|
7036
|
-
return firestoreModelKeyPath.apply(void 0, _to_consumable_array$
|
|
7036
|
+
return firestoreModelKeyPath.apply(void 0, _to_consumable_array$7(firestoreModelKeyPartPairsPaths(input)));
|
|
7037
7037
|
}
|
|
7038
7038
|
/**
|
|
7039
7039
|
* Maps the input FirestoreModelCollectionAndIdPair[] values to FirestoreModelKeyPart[] values.
|
|
@@ -7296,13 +7296,13 @@ function _object_spread_props$e(target, source) {
|
|
|
7296
7296
|
});
|
|
7297
7297
|
}
|
|
7298
7298
|
|
|
7299
|
-
function _array_like_to_array$
|
|
7299
|
+
function _array_like_to_array$9(arr, len) {
|
|
7300
7300
|
if (len == null || len > arr.length) len = arr.length;
|
|
7301
7301
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
7302
7302
|
return arr2;
|
|
7303
7303
|
}
|
|
7304
|
-
function _array_without_holes$
|
|
7305
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
7304
|
+
function _array_without_holes$6(arr) {
|
|
7305
|
+
if (Array.isArray(arr)) return _array_like_to_array$9(arr);
|
|
7306
7306
|
}
|
|
7307
7307
|
function _define_property$n(obj, key, value) {
|
|
7308
7308
|
if (key in obj) {
|
|
@@ -7317,10 +7317,10 @@ function _define_property$n(obj, key, value) {
|
|
|
7317
7317
|
}
|
|
7318
7318
|
return obj;
|
|
7319
7319
|
}
|
|
7320
|
-
function _iterable_to_array$
|
|
7320
|
+
function _iterable_to_array$6(iter) {
|
|
7321
7321
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
7322
7322
|
}
|
|
7323
|
-
function _non_iterable_spread$
|
|
7323
|
+
function _non_iterable_spread$6() {
|
|
7324
7324
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7325
7325
|
}
|
|
7326
7326
|
function _object_spread$h(target) {
|
|
@@ -7357,16 +7357,16 @@ function _object_spread_props$d(target, source) {
|
|
|
7357
7357
|
}
|
|
7358
7358
|
return target;
|
|
7359
7359
|
}
|
|
7360
|
-
function _to_consumable_array$
|
|
7361
|
-
return _array_without_holes$
|
|
7360
|
+
function _to_consumable_array$6(arr) {
|
|
7361
|
+
return _array_without_holes$6(arr) || _iterable_to_array$6(arr) || _unsupported_iterable_to_array$9(arr) || _non_iterable_spread$6();
|
|
7362
7362
|
}
|
|
7363
|
-
function _unsupported_iterable_to_array$
|
|
7363
|
+
function _unsupported_iterable_to_array$9(o, minLen) {
|
|
7364
7364
|
if (!o) return;
|
|
7365
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
7365
|
+
if (typeof o === "string") return _array_like_to_array$9(o, minLen);
|
|
7366
7366
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
7367
7367
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
7368
7368
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
7369
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
7369
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$9(o, minLen);
|
|
7370
7370
|
}
|
|
7371
7371
|
/**
|
|
7372
7372
|
* Creates a factory function for generating FirestoreContext instances.
|
|
@@ -7413,7 +7413,7 @@ function _unsupported_iterable_to_array$a(o, minLen) {
|
|
|
7413
7413
|
return (_drivers_firestoreAccessorDriver = drivers.firestoreAccessorDriver).collection.apply(_drivers_firestoreAccessorDriver, [
|
|
7414
7414
|
firestore,
|
|
7415
7415
|
path
|
|
7416
|
-
].concat(_to_consumable_array$
|
|
7416
|
+
].concat(_to_consumable_array$6(pathSegments)));
|
|
7417
7417
|
},
|
|
7418
7418
|
subcollection: drivers.firestoreAccessorDriver.subcollection,
|
|
7419
7419
|
runTransaction: drivers.firestoreAccessorDriver.transactionFactoryForFirestore(firestore),
|
|
@@ -7714,13 +7714,13 @@ function _ts_generator$c(thisArg, body) {
|
|
|
7714
7714
|
});
|
|
7715
7715
|
}
|
|
7716
7716
|
|
|
7717
|
-
function _array_like_to_array$
|
|
7717
|
+
function _array_like_to_array$8(arr, len) {
|
|
7718
7718
|
if (len == null || len > arr.length) len = arr.length;
|
|
7719
7719
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
7720
7720
|
return arr2;
|
|
7721
7721
|
}
|
|
7722
|
-
function _array_without_holes$
|
|
7723
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
7722
|
+
function _array_without_holes$5(arr) {
|
|
7723
|
+
if (Array.isArray(arr)) return _array_like_to_array$8(arr);
|
|
7724
7724
|
}
|
|
7725
7725
|
function _define_property$m(obj, key, value) {
|
|
7726
7726
|
if (key in obj) {
|
|
@@ -7735,10 +7735,10 @@ function _define_property$m(obj, key, value) {
|
|
|
7735
7735
|
}
|
|
7736
7736
|
return obj;
|
|
7737
7737
|
}
|
|
7738
|
-
function _iterable_to_array$
|
|
7738
|
+
function _iterable_to_array$5(iter) {
|
|
7739
7739
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
7740
7740
|
}
|
|
7741
|
-
function _non_iterable_spread$
|
|
7741
|
+
function _non_iterable_spread$5() {
|
|
7742
7742
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7743
7743
|
}
|
|
7744
7744
|
function _object_spread$g(target) {
|
|
@@ -7756,16 +7756,16 @@ function _object_spread$g(target) {
|
|
|
7756
7756
|
}
|
|
7757
7757
|
return target;
|
|
7758
7758
|
}
|
|
7759
|
-
function _to_consumable_array$
|
|
7760
|
-
return _array_without_holes$
|
|
7759
|
+
function _to_consumable_array$5(arr) {
|
|
7760
|
+
return _array_without_holes$5(arr) || _iterable_to_array$5(arr) || _unsupported_iterable_to_array$8(arr) || _non_iterable_spread$5();
|
|
7761
7761
|
}
|
|
7762
|
-
function _unsupported_iterable_to_array$
|
|
7762
|
+
function _unsupported_iterable_to_array$8(o, minLen) {
|
|
7763
7763
|
if (!o) return;
|
|
7764
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
7764
|
+
if (typeof o === "string") return _array_like_to_array$8(o, minLen);
|
|
7765
7765
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
7766
7766
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
7767
7767
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
7768
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
7768
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$8(o, minLen);
|
|
7769
7769
|
}
|
|
7770
7770
|
/**
|
|
7771
7771
|
* Converts a {@link FirestoreAccessorArrayUpdate} into Firestore `UpdateData` using the
|
|
@@ -7794,7 +7794,7 @@ function _unsupported_iterable_to_array$9(o, minLen) {
|
|
|
7794
7794
|
result = mapObjectMap(fieldUpdate, function(arrayUpdate) {
|
|
7795
7795
|
var result;
|
|
7796
7796
|
if (arrayUpdate) {
|
|
7797
|
-
result = arrayUpdateFunction.apply(void 0, _to_consumable_array$
|
|
7797
|
+
result = arrayUpdateFunction.apply(void 0, _to_consumable_array$5(arrayUpdate)); // use spread operator to insert each value as an argument, as "nested arrays" are not allowed in the Firestore
|
|
7798
7798
|
}
|
|
7799
7799
|
return result;
|
|
7800
7800
|
});
|
|
@@ -8533,13 +8533,13 @@ function _ts_generator$b(thisArg, body) {
|
|
|
8533
8533
|
};
|
|
8534
8534
|
}
|
|
8535
8535
|
|
|
8536
|
-
function _array_like_to_array$
|
|
8536
|
+
function _array_like_to_array$7(arr, len) {
|
|
8537
8537
|
if (len == null || len > arr.length) len = arr.length;
|
|
8538
8538
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
8539
8539
|
return arr2;
|
|
8540
8540
|
}
|
|
8541
|
-
function _array_without_holes$
|
|
8542
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
8541
|
+
function _array_without_holes$4(arr) {
|
|
8542
|
+
if (Array.isArray(arr)) return _array_like_to_array$7(arr);
|
|
8543
8543
|
}
|
|
8544
8544
|
function _define_property$i(obj, key, value) {
|
|
8545
8545
|
if (key in obj) {
|
|
@@ -8554,10 +8554,10 @@ function _define_property$i(obj, key, value) {
|
|
|
8554
8554
|
}
|
|
8555
8555
|
return obj;
|
|
8556
8556
|
}
|
|
8557
|
-
function _iterable_to_array$
|
|
8557
|
+
function _iterable_to_array$4(iter) {
|
|
8558
8558
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
8559
8559
|
}
|
|
8560
|
-
function _non_iterable_spread$
|
|
8560
|
+
function _non_iterable_spread$4() {
|
|
8561
8561
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8562
8562
|
}
|
|
8563
8563
|
function _object_spread$f(target) {
|
|
@@ -8594,16 +8594,16 @@ function _object_spread_props$c(target, source) {
|
|
|
8594
8594
|
}
|
|
8595
8595
|
return target;
|
|
8596
8596
|
}
|
|
8597
|
-
function _to_consumable_array$
|
|
8598
|
-
return _array_without_holes$
|
|
8597
|
+
function _to_consumable_array$4(arr) {
|
|
8598
|
+
return _array_without_holes$4(arr) || _iterable_to_array$4(arr) || _unsupported_iterable_to_array$7(arr) || _non_iterable_spread$4();
|
|
8599
8599
|
}
|
|
8600
|
-
function _unsupported_iterable_to_array$
|
|
8600
|
+
function _unsupported_iterable_to_array$7(o, minLen) {
|
|
8601
8601
|
if (!o) return;
|
|
8602
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
8602
|
+
if (typeof o === "string") return _array_like_to_array$7(o, minLen);
|
|
8603
8603
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
8604
8604
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
8605
8605
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
8606
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
8606
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$7(o, minLen);
|
|
8607
8607
|
}
|
|
8608
8608
|
/**
|
|
8609
8609
|
* Appends one or more `QueryConstraint` values to the builder, returning a new builder instance.
|
|
@@ -8614,7 +8614,7 @@ function _unsupported_iterable_to_array$8(o, minLen) {
|
|
|
8614
8614
|
*/ function addConstraintToBuilder(builder, constraint) {
|
|
8615
8615
|
return {
|
|
8616
8616
|
query: builder.query,
|
|
8617
|
-
constraints: _to_consumable_array$
|
|
8617
|
+
constraints: _to_consumable_array$4(builder.constraints).concat(_to_consumable_array$4(Array.isArray(constraint) ? constraint : [
|
|
8618
8618
|
constraint
|
|
8619
8619
|
]))
|
|
8620
8620
|
};
|
|
@@ -8639,13 +8639,13 @@ var _obj;
|
|
|
8639
8639
|
}), _define_property$i(_obj, FIRESTORE_OFFSET_QUERY_CONSTRAINT_TYPE, undefined), _define_property$i(_obj, FIRESTORE_START_AT_QUERY_CONSTRAINT_TYPE, function(builder, data) {
|
|
8640
8640
|
return addConstraintToBuilder(builder, startAt$1(data.snapshot));
|
|
8641
8641
|
}), _define_property$i(_obj, FIRESTORE_START_AT_VALUE_QUERY_CONSTRAINT_TYPE, function(builder, data) {
|
|
8642
|
-
return addConstraintToBuilder(builder, startAt$1.apply(void 0, _to_consumable_array$
|
|
8642
|
+
return addConstraintToBuilder(builder, startAt$1.apply(void 0, _to_consumable_array$4(data.fieldValues)));
|
|
8643
8643
|
}), _define_property$i(_obj, FIRESTORE_START_AFTER_QUERY_CONSTRAINT_TYPE, function(builder, data) {
|
|
8644
8644
|
return addConstraintToBuilder(builder, startAfter$1(data.snapshot));
|
|
8645
8645
|
}), _define_property$i(_obj, FIRESTORE_END_AT_QUERY_CONSTRAINT_TYPE, function(builder, data) {
|
|
8646
8646
|
return addConstraintToBuilder(builder, endAt$1(data.snapshot));
|
|
8647
8647
|
}), _define_property$i(_obj, FIRESTORE_END_AT_VALUE_QUERY_CONSTRAINT_TYPE, function(builder, data) {
|
|
8648
|
-
return addConstraintToBuilder(builder, endAt$1.apply(void 0, _to_consumable_array$
|
|
8648
|
+
return addConstraintToBuilder(builder, endAt$1.apply(void 0, _to_consumable_array$4(data.fieldValues)));
|
|
8649
8649
|
}), _define_property$i(_obj, FIRESTORE_END_BEFORE_QUERY_CONSTRAINT_TYPE, function(builder, data) {
|
|
8650
8650
|
return addConstraintToBuilder(builder, endBefore$1(data.snapshot));
|
|
8651
8651
|
}), _obj);
|
|
@@ -8669,7 +8669,7 @@ var _obj;
|
|
|
8669
8669
|
var initialQuery = param.query, constraints = param.constraints;
|
|
8670
8670
|
return query.apply(void 0, [
|
|
8671
8671
|
initialQuery
|
|
8672
|
-
].concat(_to_consumable_array$
|
|
8672
|
+
].concat(_to_consumable_array$4(constraints)));
|
|
8673
8673
|
},
|
|
8674
8674
|
documentIdFieldPath: function documentIdFieldPath() {
|
|
8675
8675
|
return documentId();
|
|
@@ -9362,7 +9362,7 @@ function onCallTypedModelParams(modelTypeInput, data, specifier, call) {
|
|
|
9362
9362
|
};
|
|
9363
9363
|
}
|
|
9364
9364
|
|
|
9365
|
-
function _array_like_to_array$
|
|
9365
|
+
function _array_like_to_array$6(arr, len) {
|
|
9366
9366
|
if (len == null || len > arr.length) len = arr.length;
|
|
9367
9367
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
9368
9368
|
return arr2;
|
|
@@ -9398,15 +9398,15 @@ function _non_iterable_rest$2() {
|
|
|
9398
9398
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9399
9399
|
}
|
|
9400
9400
|
function _sliced_to_array$2(arr, i) {
|
|
9401
|
-
return _array_with_holes$2(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$
|
|
9401
|
+
return _array_with_holes$2(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$6(arr, i) || _non_iterable_rest$2();
|
|
9402
9402
|
}
|
|
9403
|
-
function _unsupported_iterable_to_array$
|
|
9403
|
+
function _unsupported_iterable_to_array$6(o, minLen) {
|
|
9404
9404
|
if (!o) return;
|
|
9405
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
9405
|
+
if (typeof o === "string") return _array_like_to_array$6(o, minLen);
|
|
9406
9406
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
9407
9407
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
9408
9408
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
9409
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
9409
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$6(o, minLen);
|
|
9410
9410
|
}
|
|
9411
9411
|
/**
|
|
9412
9412
|
* Default specifier string (`'_'`) used when a CRUD operation has specifiers but one
|
|
@@ -11716,13 +11716,13 @@ function _ts_generator$6(thisArg, body) {
|
|
|
11716
11716
|
};
|
|
11717
11717
|
}
|
|
11718
11718
|
|
|
11719
|
-
function _array_like_to_array$
|
|
11719
|
+
function _array_like_to_array$5(arr, len) {
|
|
11720
11720
|
if (len == null || len > arr.length) len = arr.length;
|
|
11721
11721
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
11722
11722
|
return arr2;
|
|
11723
11723
|
}
|
|
11724
|
-
function _array_without_holes$
|
|
11725
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
11724
|
+
function _array_without_holes$3(arr) {
|
|
11725
|
+
if (Array.isArray(arr)) return _array_like_to_array$5(arr);
|
|
11726
11726
|
}
|
|
11727
11727
|
function asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, key, arg) {
|
|
11728
11728
|
try {
|
|
@@ -11766,10 +11766,10 @@ function _define_property$a(obj, key, value) {
|
|
|
11766
11766
|
}
|
|
11767
11767
|
return obj;
|
|
11768
11768
|
}
|
|
11769
|
-
function _iterable_to_array$
|
|
11769
|
+
function _iterable_to_array$3(iter) {
|
|
11770
11770
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
11771
11771
|
}
|
|
11772
|
-
function _non_iterable_spread$
|
|
11772
|
+
function _non_iterable_spread$3() {
|
|
11773
11773
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
11774
11774
|
}
|
|
11775
11775
|
function _object_spread$a(target) {
|
|
@@ -11806,16 +11806,16 @@ function _object_spread_props$8(target, source) {
|
|
|
11806
11806
|
}
|
|
11807
11807
|
return target;
|
|
11808
11808
|
}
|
|
11809
|
-
function _to_consumable_array$
|
|
11810
|
-
return _array_without_holes$
|
|
11809
|
+
function _to_consumable_array$3(arr) {
|
|
11810
|
+
return _array_without_holes$3(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$5(arr) || _non_iterable_spread$3();
|
|
11811
11811
|
}
|
|
11812
|
-
function _unsupported_iterable_to_array$
|
|
11812
|
+
function _unsupported_iterable_to_array$5(o, minLen) {
|
|
11813
11813
|
if (!o) return;
|
|
11814
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
11814
|
+
if (typeof o === "string") return _array_like_to_array$5(o, minLen);
|
|
11815
11815
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
11816
11816
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
11817
11817
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
11818
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
11818
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$5(o, minLen);
|
|
11819
11819
|
}
|
|
11820
11820
|
function _ts_generator$5(thisArg, body) {
|
|
11821
11821
|
var f, y, t, _ = {
|
|
@@ -12218,7 +12218,7 @@ function _ts_generator$5(thisArg, body) {
|
|
|
12218
12218
|
case 2:
|
|
12219
12219
|
allNestedFolderFileResults = _state.sent();
|
|
12220
12220
|
allNestedFiles = allNestedFolderFileResults.flat();
|
|
12221
|
-
allFiles = _to_consumable_array$
|
|
12221
|
+
allFiles = _to_consumable_array$3(allImmediateFiles).concat(_to_consumable_array$3(allNestedFiles));
|
|
12222
12222
|
result = _object_spread_props$8(_object_spread$a({}, rootResults), {
|
|
12223
12223
|
files: function files() {
|
|
12224
12224
|
return allFiles;
|
|
@@ -13565,14 +13565,6 @@ var notificationBoxModelCrudFunctionsConfig = {
|
|
|
13565
13565
|
* Thrown when attempting to update a recipient config that is locked by the user.
|
|
13566
13566
|
*/ var NOTIFICATION_USER_LOCKED_CONFIG_FROM_BEING_UPDATED_ERROR_CODE = 'NOTIFICATION_USER_LOCKED_CONFIG_FROM_BEING_UPDATED';
|
|
13567
13567
|
|
|
13568
|
-
function _array_like_to_array$5(arr, len) {
|
|
13569
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
13570
|
-
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
13571
|
-
return arr2;
|
|
13572
|
-
}
|
|
13573
|
-
function _array_without_holes$4(arr) {
|
|
13574
|
-
if (Array.isArray(arr)) return _array_like_to_array$5(arr);
|
|
13575
|
-
}
|
|
13576
13568
|
function _define_property$8(obj, key, value) {
|
|
13577
13569
|
if (key in obj) {
|
|
13578
13570
|
Object.defineProperty(obj, key, {
|
|
@@ -13586,12 +13578,6 @@ function _define_property$8(obj, key, value) {
|
|
|
13586
13578
|
}
|
|
13587
13579
|
return obj;
|
|
13588
13580
|
}
|
|
13589
|
-
function _iterable_to_array$4(iter) {
|
|
13590
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
13591
|
-
}
|
|
13592
|
-
function _non_iterable_spread$4() {
|
|
13593
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
13594
|
-
}
|
|
13595
13581
|
function _object_spread$8(target) {
|
|
13596
13582
|
for(var i = 1; i < arguments.length; i++){
|
|
13597
13583
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
@@ -13626,17 +13612,6 @@ function _object_spread_props$6(target, source) {
|
|
|
13626
13612
|
}
|
|
13627
13613
|
return target;
|
|
13628
13614
|
}
|
|
13629
|
-
function _to_consumable_array$4(arr) {
|
|
13630
|
-
return _array_without_holes$4(arr) || _iterable_to_array$4(arr) || _unsupported_iterable_to_array$5(arr) || _non_iterable_spread$4();
|
|
13631
|
-
}
|
|
13632
|
-
function _unsupported_iterable_to_array$5(o, minLen) {
|
|
13633
|
-
if (!o) return;
|
|
13634
|
-
if (typeof o === "string") return _array_like_to_array$5(o, minLen);
|
|
13635
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
13636
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
13637
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
13638
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$5(o, minLen);
|
|
13639
|
-
}
|
|
13640
13615
|
/**
|
|
13641
13616
|
* Applies an array of config entry params to a {@link NotificationBoxRecipientTemplateConfigRecord},
|
|
13642
13617
|
* inserting new entries, merging updates, and removing entries marked with `remove: true`.
|
|
@@ -13763,7 +13738,7 @@ function _unsupported_iterable_to_array$5(o, minLen) {
|
|
|
13763
13738
|
});
|
|
13764
13739
|
var result;
|
|
13765
13740
|
if (hasChanges) {
|
|
13766
|
-
result =
|
|
13741
|
+
result = Array.from(boxesMap.values());
|
|
13767
13742
|
}
|
|
13768
13743
|
return result;
|
|
13769
13744
|
}
|
|
@@ -14257,17 +14232,11 @@ function _array_like_to_array$4(arr, len) {
|
|
|
14257
14232
|
function _array_with_holes$1(arr) {
|
|
14258
14233
|
if (Array.isArray(arr)) return arr;
|
|
14259
14234
|
}
|
|
14260
|
-
function _array_without_holes$3(arr) {
|
|
14261
|
-
if (Array.isArray(arr)) return _array_like_to_array$4(arr);
|
|
14262
|
-
}
|
|
14263
14235
|
function _class_call_check$5(instance, Constructor) {
|
|
14264
14236
|
if (!(instance instanceof Constructor)) {
|
|
14265
14237
|
throw new TypeError("Cannot call a class as a function");
|
|
14266
14238
|
}
|
|
14267
14239
|
}
|
|
14268
|
-
function _iterable_to_array$3(iter) {
|
|
14269
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
14270
|
-
}
|
|
14271
14240
|
function _iterable_to_array_limit$1(arr, i) {
|
|
14272
14241
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
14273
14242
|
if (_i == null) return;
|
|
@@ -14295,15 +14264,9 @@ function _iterable_to_array_limit$1(arr, i) {
|
|
|
14295
14264
|
function _non_iterable_rest$1() {
|
|
14296
14265
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14297
14266
|
}
|
|
14298
|
-
function _non_iterable_spread$3() {
|
|
14299
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14300
|
-
}
|
|
14301
14267
|
function _sliced_to_array$1(arr, i) {
|
|
14302
14268
|
return _array_with_holes$1(arr) || _iterable_to_array_limit$1(arr, i) || _unsupported_iterable_to_array$4(arr, i) || _non_iterable_rest$1();
|
|
14303
14269
|
}
|
|
14304
|
-
function _to_consumable_array$3(arr) {
|
|
14305
|
-
return _array_without_holes$3(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$4(arr) || _non_iterable_spread$3();
|
|
14306
|
-
}
|
|
14307
14270
|
function _unsupported_iterable_to_array$4(o, minLen) {
|
|
14308
14271
|
if (!o) return;
|
|
14309
14272
|
if (typeof o === "string") return _array_like_to_array$4(o, minLen);
|
|
@@ -14388,23 +14351,23 @@ function _unsupported_iterable_to_array$4(o, minLen) {
|
|
|
14388
14351
|
allKnownTemplateTypeInfo.push(info);
|
|
14389
14352
|
allKnownTemplateTypes.push(info.type);
|
|
14390
14353
|
});
|
|
14391
|
-
var allNotificationModelIdentityValues =
|
|
14354
|
+
var allNotificationModelIdentityValues = Array.from(allNotificationModelIdentityValuesSet);
|
|
14392
14355
|
var notificationModelTemplateInfoMap = notificationModelTypeInfoMapBuilder.map();
|
|
14393
14356
|
var targetModelTemplateInfoMap = targetModelTypeInfoMapBuilder.map();
|
|
14394
|
-
var notificationModelTemplateTypesMap = new Map(
|
|
14357
|
+
var notificationModelTemplateTypesMap = new Map(Array.from(notificationModelTemplateInfoMap.entries()).map(function(param) {
|
|
14395
14358
|
var _param = _sliced_to_array$1(param, 2), k = _param[0], x = _param[1];
|
|
14396
14359
|
return [
|
|
14397
14360
|
k,
|
|
14398
|
-
x.map(function(y) {
|
|
14361
|
+
(x !== null && x !== void 0 ? x : []).map(function(y) {
|
|
14399
14362
|
return y.type;
|
|
14400
14363
|
})
|
|
14401
14364
|
];
|
|
14402
14365
|
}));
|
|
14403
|
-
var targetModelTemplateTypesMap = new Map(
|
|
14366
|
+
var targetModelTemplateTypesMap = new Map(Array.from(targetModelTemplateInfoMap.entries()).map(function(param) {
|
|
14404
14367
|
var _param = _sliced_to_array$1(param, 2), k = _param[0], x = _param[1];
|
|
14405
14368
|
return [
|
|
14406
14369
|
k,
|
|
14407
|
-
x.map(function(y) {
|
|
14370
|
+
(x !== null && x !== void 0 ? x : []).map(function(y) {
|
|
14408
14371
|
return y.type;
|
|
14409
14372
|
})
|
|
14410
14373
|
];
|