@dereekb/firebase 13.5.0 → 13.5.1
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.cjs.js
CHANGED
|
@@ -3807,30 +3807,30 @@ function firebaseQueryItemAccumulator(iteration, mapItem) {
|
|
|
3807
3807
|
return firebaseQuerySnapshotAccumulator(iteration, mapFn);
|
|
3808
3808
|
}
|
|
3809
3809
|
|
|
3810
|
-
function _array_like_to_array$
|
|
3810
|
+
function _array_like_to_array$f(arr, len) {
|
|
3811
3811
|
if (len == null || len > arr.length) len = arr.length;
|
|
3812
3812
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
3813
3813
|
return arr2;
|
|
3814
3814
|
}
|
|
3815
|
-
function _array_without_holes$
|
|
3816
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
3815
|
+
function _array_without_holes$b(arr) {
|
|
3816
|
+
if (Array.isArray(arr)) return _array_like_to_array$f(arr);
|
|
3817
3817
|
}
|
|
3818
|
-
function _iterable_to_array$
|
|
3818
|
+
function _iterable_to_array$b(iter) {
|
|
3819
3819
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
3820
3820
|
}
|
|
3821
|
-
function _non_iterable_spread$
|
|
3821
|
+
function _non_iterable_spread$b() {
|
|
3822
3822
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3823
3823
|
}
|
|
3824
|
-
function _to_consumable_array$
|
|
3825
|
-
return _array_without_holes$
|
|
3824
|
+
function _to_consumable_array$b(arr) {
|
|
3825
|
+
return _array_without_holes$b(arr) || _iterable_to_array$b(arr) || _unsupported_iterable_to_array$f(arr) || _non_iterable_spread$b();
|
|
3826
3826
|
}
|
|
3827
|
-
function _unsupported_iterable_to_array$
|
|
3827
|
+
function _unsupported_iterable_to_array$f(o, minLen) {
|
|
3828
3828
|
if (!o) return;
|
|
3829
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
3829
|
+
if (typeof o === "string") return _array_like_to_array$f(o, minLen);
|
|
3830
3830
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3831
3831
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3832
3832
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
3833
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
3833
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$f(o, minLen);
|
|
3834
3834
|
}
|
|
3835
3835
|
/**
|
|
3836
3836
|
* Creates a {@link FirestoreQueryConstraint} with the given type identifier and data.
|
|
@@ -4190,7 +4190,7 @@ function orderBy(fieldPath, directionStr) {
|
|
|
4190
4190
|
* );
|
|
4191
4191
|
* const newConstraints = replaceLimit(existingConstraints);
|
|
4192
4192
|
*/ function replaceConstraints(replaceFn, types) {
|
|
4193
|
-
var separateFn = separateConstraints.apply(void 0, _to_consumable_array$
|
|
4193
|
+
var separateFn = separateConstraints.apply(void 0, _to_consumable_array$b(types));
|
|
4194
4194
|
return function(constraints) {
|
|
4195
4195
|
var separated = separateFn(constraints);
|
|
4196
4196
|
var replacements = util.asArray(replaceFn(separated.excluded));
|
|
@@ -4376,13 +4376,13 @@ function whereDateIsBeforeWithSort(fieldPath) {
|
|
|
4376
4376
|
];
|
|
4377
4377
|
}
|
|
4378
4378
|
|
|
4379
|
-
function _array_like_to_array$
|
|
4379
|
+
function _array_like_to_array$e(arr, len) {
|
|
4380
4380
|
if (len == null || len > arr.length) len = arr.length;
|
|
4381
4381
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
4382
4382
|
return arr2;
|
|
4383
4383
|
}
|
|
4384
|
-
function _array_without_holes$
|
|
4385
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
4384
|
+
function _array_without_holes$a(arr) {
|
|
4385
|
+
if (Array.isArray(arr)) return _array_like_to_array$e(arr);
|
|
4386
4386
|
}
|
|
4387
4387
|
function _define_property$r(obj, key, value) {
|
|
4388
4388
|
if (key in obj) {
|
|
@@ -4397,10 +4397,10 @@ function _define_property$r(obj, key, value) {
|
|
|
4397
4397
|
}
|
|
4398
4398
|
return obj;
|
|
4399
4399
|
}
|
|
4400
|
-
function _iterable_to_array$
|
|
4400
|
+
function _iterable_to_array$a(iter) {
|
|
4401
4401
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
4402
4402
|
}
|
|
4403
|
-
function _non_iterable_spread$
|
|
4403
|
+
function _non_iterable_spread$a() {
|
|
4404
4404
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
4405
4405
|
}
|
|
4406
4406
|
function _object_spread$l(target) {
|
|
@@ -4437,16 +4437,16 @@ function _object_spread_props$h(target, source) {
|
|
|
4437
4437
|
}
|
|
4438
4438
|
return target;
|
|
4439
4439
|
}
|
|
4440
|
-
function _to_consumable_array$
|
|
4441
|
-
return _array_without_holes$
|
|
4440
|
+
function _to_consumable_array$a(arr) {
|
|
4441
|
+
return _array_without_holes$a(arr) || _iterable_to_array$a(arr) || _unsupported_iterable_to_array$e(arr) || _non_iterable_spread$a();
|
|
4442
4442
|
}
|
|
4443
|
-
function _unsupported_iterable_to_array$
|
|
4443
|
+
function _unsupported_iterable_to_array$e(o, minLen) {
|
|
4444
4444
|
if (!o) return;
|
|
4445
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
4445
|
+
if (typeof o === "string") return _array_like_to_array$e(o, minLen);
|
|
4446
4446
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
4447
4447
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
4448
4448
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
4449
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
4449
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$e(o, minLen);
|
|
4450
4450
|
}
|
|
4451
4451
|
/**
|
|
4452
4452
|
* Filters out constraints that should not be directly specified in pagination queries.
|
|
@@ -4509,13 +4509,13 @@ function _unsupported_iterable_to_array$f(o, minLen) {
|
|
|
4509
4509
|
// Add Limit
|
|
4510
4510
|
var limitCount = filterLimit !== null && filterLimit !== void 0 ? filterLimit : itemsPerPage + (startAfterFilter ? 1 : 0); // todo: may not be needed.
|
|
4511
4511
|
var limitConstraint = limit(limitCount);
|
|
4512
|
-
var constraintsWithLimit = _to_consumable_array$
|
|
4512
|
+
var constraintsWithLimit = _to_consumable_array$a(constraints).concat([
|
|
4513
4513
|
limitConstraint
|
|
4514
4514
|
]);
|
|
4515
4515
|
// make query
|
|
4516
4516
|
var batchQuery = (_driver = driver).query.apply(_driver, [
|
|
4517
4517
|
queryLike
|
|
4518
|
-
].concat(_to_consumable_array$
|
|
4518
|
+
].concat(_to_consumable_array$a(constraintsWithLimit)));
|
|
4519
4519
|
var resultPromise = driver.getDocs(batchQuery).then(function(snapshot) {
|
|
4520
4520
|
var time = new Date();
|
|
4521
4521
|
var docs = snapshot.docs;
|
|
@@ -4771,13 +4771,13 @@ function _firestoreItemPageIterationWithSnapshotIteration(snapshotIteration) {
|
|
|
4771
4771
|
return _firestoreItemPageIterationWithSnapshotIteration(snapshotIteration);
|
|
4772
4772
|
}
|
|
4773
4773
|
|
|
4774
|
-
function _array_like_to_array$
|
|
4774
|
+
function _array_like_to_array$d(arr, len) {
|
|
4775
4775
|
if (len == null || len > arr.length) len = arr.length;
|
|
4776
4776
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
4777
4777
|
return arr2;
|
|
4778
4778
|
}
|
|
4779
|
-
function _array_without_holes$
|
|
4780
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
4779
|
+
function _array_without_holes$9(arr) {
|
|
4780
|
+
if (Array.isArray(arr)) return _array_like_to_array$d(arr);
|
|
4781
4781
|
}
|
|
4782
4782
|
function asyncGeneratorStep$g(gen, resolve, reject, _next, _throw, key, arg) {
|
|
4783
4783
|
try {
|
|
@@ -4808,22 +4808,22 @@ function _async_to_generator$g(fn) {
|
|
|
4808
4808
|
});
|
|
4809
4809
|
};
|
|
4810
4810
|
}
|
|
4811
|
-
function _iterable_to_array$
|
|
4811
|
+
function _iterable_to_array$9(iter) {
|
|
4812
4812
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
4813
4813
|
}
|
|
4814
|
-
function _non_iterable_spread$
|
|
4814
|
+
function _non_iterable_spread$9() {
|
|
4815
4815
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
4816
4816
|
}
|
|
4817
|
-
function _to_consumable_array$
|
|
4818
|
-
return _array_without_holes$
|
|
4817
|
+
function _to_consumable_array$9(arr) {
|
|
4818
|
+
return _array_without_holes$9(arr) || _iterable_to_array$9(arr) || _unsupported_iterable_to_array$d(arr) || _non_iterable_spread$9();
|
|
4819
4819
|
}
|
|
4820
|
-
function _unsupported_iterable_to_array$
|
|
4820
|
+
function _unsupported_iterable_to_array$d(o, minLen) {
|
|
4821
4821
|
if (!o) return;
|
|
4822
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
4822
|
+
if (typeof o === "string") return _array_like_to_array$d(o, minLen);
|
|
4823
4823
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
4824
4824
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
4825
4825
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
4826
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
4826
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$d(o, minLen);
|
|
4827
4827
|
}
|
|
4828
4828
|
function _ts_generator$g(thisArg, body) {
|
|
4829
4829
|
var f, y, t, _ = {
|
|
@@ -4961,7 +4961,7 @@ function _ts_generator$g(thisArg, body) {
|
|
|
4961
4961
|
var allConstraints = util.flattenArrayOrValueArray(queryConstraints);
|
|
4962
4962
|
var query = makeQuery.apply(void 0, [
|
|
4963
4963
|
inputQuery
|
|
4964
|
-
].concat(_to_consumable_array$
|
|
4964
|
+
].concat(_to_consumable_array$9(allConstraints)));
|
|
4965
4965
|
var result = {
|
|
4966
4966
|
query: query,
|
|
4967
4967
|
countDocs: function countDocs1() {
|
|
@@ -4983,7 +4983,7 @@ function _ts_generator$g(thisArg, body) {
|
|
|
4983
4983
|
constraintsForOneDoc = addOrReplaceLimitInConstraints(1)(allConstraints);
|
|
4984
4984
|
query = makeQuery.apply(void 0, [
|
|
4985
4985
|
inputQuery
|
|
4986
|
-
].concat(_to_consumable_array$
|
|
4986
|
+
].concat(_to_consumable_array$9(constraintsForOneDoc)));
|
|
4987
4987
|
return [
|
|
4988
4988
|
4,
|
|
4989
4989
|
getDocs(query, transaction)
|
|
@@ -5087,7 +5087,7 @@ function _ts_generator$g(thisArg, body) {
|
|
|
5087
5087
|
return snapshot.ref.path;
|
|
5088
5088
|
}
|
|
5089
5089
|
|
|
5090
|
-
function _array_like_to_array$
|
|
5090
|
+
function _array_like_to_array$c(arr, len) {
|
|
5091
5091
|
if (len == null || len > arr.length) len = arr.length;
|
|
5092
5092
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
5093
5093
|
return arr2;
|
|
@@ -5199,15 +5199,15 @@ function _object_spread_props$g(target, source) {
|
|
|
5199
5199
|
return target;
|
|
5200
5200
|
}
|
|
5201
5201
|
function _sliced_to_array$3(arr, i) {
|
|
5202
|
-
return _array_with_holes$3(arr) || _iterable_to_array_limit$3(arr, i) || _unsupported_iterable_to_array$
|
|
5202
|
+
return _array_with_holes$3(arr) || _iterable_to_array_limit$3(arr, i) || _unsupported_iterable_to_array$c(arr, i) || _non_iterable_rest$3();
|
|
5203
5203
|
}
|
|
5204
|
-
function _unsupported_iterable_to_array$
|
|
5204
|
+
function _unsupported_iterable_to_array$c(o, minLen) {
|
|
5205
5205
|
if (!o) return;
|
|
5206
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
5206
|
+
if (typeof o === "string") return _array_like_to_array$c(o, minLen);
|
|
5207
5207
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
5208
5208
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
5209
5209
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
5210
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
5210
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$c(o, minLen);
|
|
5211
5211
|
}
|
|
5212
5212
|
function _ts_generator$f(thisArg, body) {
|
|
5213
5213
|
var f, y, t, _ = {
|
|
@@ -6270,13 +6270,13 @@ function _ts_generator$e(thisArg, body) {
|
|
|
6270
6270
|
return type;
|
|
6271
6271
|
}
|
|
6272
6272
|
|
|
6273
|
-
function _array_like_to_array$
|
|
6273
|
+
function _array_like_to_array$b(arr, len) {
|
|
6274
6274
|
if (len == null || len > arr.length) len = arr.length;
|
|
6275
6275
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
6276
6276
|
return arr2;
|
|
6277
6277
|
}
|
|
6278
|
-
function _array_without_holes$
|
|
6279
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
6278
|
+
function _array_without_holes$8(arr) {
|
|
6279
|
+
if (Array.isArray(arr)) return _array_like_to_array$b(arr);
|
|
6280
6280
|
}
|
|
6281
6281
|
function asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, key, arg) {
|
|
6282
6282
|
try {
|
|
@@ -6307,22 +6307,22 @@ function _async_to_generator$d(fn) {
|
|
|
6307
6307
|
});
|
|
6308
6308
|
};
|
|
6309
6309
|
}
|
|
6310
|
-
function _iterable_to_array$
|
|
6310
|
+
function _iterable_to_array$8(iter) {
|
|
6311
6311
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
6312
6312
|
}
|
|
6313
|
-
function _non_iterable_spread$
|
|
6313
|
+
function _non_iterable_spread$8() {
|
|
6314
6314
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6315
6315
|
}
|
|
6316
|
-
function _to_consumable_array$
|
|
6317
|
-
return _array_without_holes$
|
|
6316
|
+
function _to_consumable_array$8(arr) {
|
|
6317
|
+
return _array_without_holes$8(arr) || _iterable_to_array$8(arr) || _unsupported_iterable_to_array$b(arr) || _non_iterable_spread$8();
|
|
6318
6318
|
}
|
|
6319
|
-
function _unsupported_iterable_to_array$
|
|
6319
|
+
function _unsupported_iterable_to_array$b(o, minLen) {
|
|
6320
6320
|
if (!o) return;
|
|
6321
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
6321
|
+
if (typeof o === "string") return _array_like_to_array$b(o, minLen);
|
|
6322
6322
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6323
6323
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
6324
6324
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
6325
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
6325
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$b(o, minLen);
|
|
6326
6326
|
}
|
|
6327
6327
|
function _ts_generator$d(thisArg, body) {
|
|
6328
6328
|
var f, y, t, _ = {
|
|
@@ -6540,7 +6540,7 @@ function _ts_generator$d(thisArg, body) {
|
|
|
6540
6540
|
for(var _len = arguments.length, queryConstraints = new Array(_len), _key = 0; _key < _len; _key++){
|
|
6541
6541
|
queryConstraints[_key] = arguments[_key];
|
|
6542
6542
|
}
|
|
6543
|
-
return wrapQuery((_baseQuery = baseQuery).filter.apply(_baseQuery, _to_consumable_array$
|
|
6543
|
+
return wrapQuery((_baseQuery = baseQuery).filter.apply(_baseQuery, _to_consumable_array$8(queryConstraints)));
|
|
6544
6544
|
}
|
|
6545
6545
|
};
|
|
6546
6546
|
};
|
|
@@ -6550,18 +6550,18 @@ function _ts_generator$d(thisArg, body) {
|
|
|
6550
6550
|
for(var _len = arguments.length, queryConstraints = new Array(_len), _key = 0; _key < _len; _key++){
|
|
6551
6551
|
queryConstraints[_key] = arguments[_key];
|
|
6552
6552
|
}
|
|
6553
|
-
return wrapQuery((_queryFactory = queryFactory).query.apply(_queryFactory, _to_consumable_array$
|
|
6553
|
+
return wrapQuery((_queryFactory = queryFactory).query.apply(_queryFactory, _to_consumable_array$8(queryConstraints)));
|
|
6554
6554
|
}
|
|
6555
6555
|
};
|
|
6556
6556
|
}
|
|
6557
6557
|
|
|
6558
|
-
function _array_like_to_array$
|
|
6558
|
+
function _array_like_to_array$a(arr, len) {
|
|
6559
6559
|
if (len == null || len > arr.length) len = arr.length;
|
|
6560
6560
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
6561
6561
|
return arr2;
|
|
6562
6562
|
}
|
|
6563
|
-
function _array_without_holes$
|
|
6564
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
6563
|
+
function _array_without_holes$7(arr) {
|
|
6564
|
+
if (Array.isArray(arr)) return _array_like_to_array$a(arr);
|
|
6565
6565
|
}
|
|
6566
6566
|
function _define_property$p(obj, key, value) {
|
|
6567
6567
|
if (key in obj) {
|
|
@@ -6576,10 +6576,10 @@ function _define_property$p(obj, key, value) {
|
|
|
6576
6576
|
}
|
|
6577
6577
|
return obj;
|
|
6578
6578
|
}
|
|
6579
|
-
function _iterable_to_array$
|
|
6579
|
+
function _iterable_to_array$7(iter) {
|
|
6580
6580
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
6581
6581
|
}
|
|
6582
|
-
function _non_iterable_spread$
|
|
6582
|
+
function _non_iterable_spread$7() {
|
|
6583
6583
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6584
6584
|
}
|
|
6585
6585
|
function _object_spread$j(target) {
|
|
@@ -6616,20 +6616,20 @@ function _object_spread_props$f(target, source) {
|
|
|
6616
6616
|
}
|
|
6617
6617
|
return target;
|
|
6618
6618
|
}
|
|
6619
|
-
function _to_consumable_array$
|
|
6620
|
-
return _array_without_holes$
|
|
6619
|
+
function _to_consumable_array$7(arr) {
|
|
6620
|
+
return _array_without_holes$7(arr) || _iterable_to_array$7(arr) || _unsupported_iterable_to_array$a(arr) || _non_iterable_spread$7();
|
|
6621
6621
|
}
|
|
6622
6622
|
function _type_of$9(obj) {
|
|
6623
6623
|
"@swc/helpers - typeof";
|
|
6624
6624
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
6625
6625
|
}
|
|
6626
|
-
function _unsupported_iterable_to_array$
|
|
6626
|
+
function _unsupported_iterable_to_array$a(o, minLen) {
|
|
6627
6627
|
if (!o) return;
|
|
6628
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
6628
|
+
if (typeof o === "string") return _array_like_to_array$a(o, minLen);
|
|
6629
6629
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6630
6630
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
6631
6631
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
6632
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
6632
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$a(o, minLen);
|
|
6633
6633
|
}
|
|
6634
6634
|
/**
|
|
6635
6635
|
* Separator used in Firestore paths to separate collection and document IDs.
|
|
@@ -7035,7 +7035,7 @@ function firestoreModelIdentity(parentOrModelName, collectionNameOrModelName, in
|
|
|
7035
7035
|
* @param input
|
|
7036
7036
|
* @returns
|
|
7037
7037
|
*/ function firestoreModelKeyPartPairsKeyPath(input) {
|
|
7038
|
-
return firestoreModelKeyPath.apply(void 0, _to_consumable_array$
|
|
7038
|
+
return firestoreModelKeyPath.apply(void 0, _to_consumable_array$7(firestoreModelKeyPartPairsPaths(input)));
|
|
7039
7039
|
}
|
|
7040
7040
|
/**
|
|
7041
7041
|
* Maps the input FirestoreModelCollectionAndIdPair[] values to FirestoreModelKeyPart[] values.
|
|
@@ -7298,13 +7298,13 @@ function _object_spread_props$e(target, source) {
|
|
|
7298
7298
|
});
|
|
7299
7299
|
}
|
|
7300
7300
|
|
|
7301
|
-
function _array_like_to_array$
|
|
7301
|
+
function _array_like_to_array$9(arr, len) {
|
|
7302
7302
|
if (len == null || len > arr.length) len = arr.length;
|
|
7303
7303
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
7304
7304
|
return arr2;
|
|
7305
7305
|
}
|
|
7306
|
-
function _array_without_holes$
|
|
7307
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
7306
|
+
function _array_without_holes$6(arr) {
|
|
7307
|
+
if (Array.isArray(arr)) return _array_like_to_array$9(arr);
|
|
7308
7308
|
}
|
|
7309
7309
|
function _define_property$n(obj, key, value) {
|
|
7310
7310
|
if (key in obj) {
|
|
@@ -7319,10 +7319,10 @@ function _define_property$n(obj, key, value) {
|
|
|
7319
7319
|
}
|
|
7320
7320
|
return obj;
|
|
7321
7321
|
}
|
|
7322
|
-
function _iterable_to_array$
|
|
7322
|
+
function _iterable_to_array$6(iter) {
|
|
7323
7323
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
7324
7324
|
}
|
|
7325
|
-
function _non_iterable_spread$
|
|
7325
|
+
function _non_iterable_spread$6() {
|
|
7326
7326
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7327
7327
|
}
|
|
7328
7328
|
function _object_spread$h(target) {
|
|
@@ -7359,16 +7359,16 @@ function _object_spread_props$d(target, source) {
|
|
|
7359
7359
|
}
|
|
7360
7360
|
return target;
|
|
7361
7361
|
}
|
|
7362
|
-
function _to_consumable_array$
|
|
7363
|
-
return _array_without_holes$
|
|
7362
|
+
function _to_consumable_array$6(arr) {
|
|
7363
|
+
return _array_without_holes$6(arr) || _iterable_to_array$6(arr) || _unsupported_iterable_to_array$9(arr) || _non_iterable_spread$6();
|
|
7364
7364
|
}
|
|
7365
|
-
function _unsupported_iterable_to_array$
|
|
7365
|
+
function _unsupported_iterable_to_array$9(o, minLen) {
|
|
7366
7366
|
if (!o) return;
|
|
7367
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
7367
|
+
if (typeof o === "string") return _array_like_to_array$9(o, minLen);
|
|
7368
7368
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
7369
7369
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
7370
7370
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
7371
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
7371
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$9(o, minLen);
|
|
7372
7372
|
}
|
|
7373
7373
|
/**
|
|
7374
7374
|
* Creates a factory function for generating FirestoreContext instances.
|
|
@@ -7415,7 +7415,7 @@ function _unsupported_iterable_to_array$a(o, minLen) {
|
|
|
7415
7415
|
return (_drivers_firestoreAccessorDriver = drivers.firestoreAccessorDriver).collection.apply(_drivers_firestoreAccessorDriver, [
|
|
7416
7416
|
firestore,
|
|
7417
7417
|
path
|
|
7418
|
-
].concat(_to_consumable_array$
|
|
7418
|
+
].concat(_to_consumable_array$6(pathSegments)));
|
|
7419
7419
|
},
|
|
7420
7420
|
subcollection: drivers.firestoreAccessorDriver.subcollection,
|
|
7421
7421
|
runTransaction: drivers.firestoreAccessorDriver.transactionFactoryForFirestore(firestore),
|
|
@@ -7716,13 +7716,13 @@ function _ts_generator$c(thisArg, body) {
|
|
|
7716
7716
|
});
|
|
7717
7717
|
}
|
|
7718
7718
|
|
|
7719
|
-
function _array_like_to_array$
|
|
7719
|
+
function _array_like_to_array$8(arr, len) {
|
|
7720
7720
|
if (len == null || len > arr.length) len = arr.length;
|
|
7721
7721
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
7722
7722
|
return arr2;
|
|
7723
7723
|
}
|
|
7724
|
-
function _array_without_holes$
|
|
7725
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
7724
|
+
function _array_without_holes$5(arr) {
|
|
7725
|
+
if (Array.isArray(arr)) return _array_like_to_array$8(arr);
|
|
7726
7726
|
}
|
|
7727
7727
|
function _define_property$m(obj, key, value) {
|
|
7728
7728
|
if (key in obj) {
|
|
@@ -7737,10 +7737,10 @@ function _define_property$m(obj, key, value) {
|
|
|
7737
7737
|
}
|
|
7738
7738
|
return obj;
|
|
7739
7739
|
}
|
|
7740
|
-
function _iterable_to_array$
|
|
7740
|
+
function _iterable_to_array$5(iter) {
|
|
7741
7741
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
7742
7742
|
}
|
|
7743
|
-
function _non_iterable_spread$
|
|
7743
|
+
function _non_iterable_spread$5() {
|
|
7744
7744
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7745
7745
|
}
|
|
7746
7746
|
function _object_spread$g(target) {
|
|
@@ -7758,16 +7758,16 @@ function _object_spread$g(target) {
|
|
|
7758
7758
|
}
|
|
7759
7759
|
return target;
|
|
7760
7760
|
}
|
|
7761
|
-
function _to_consumable_array$
|
|
7762
|
-
return _array_without_holes$
|
|
7761
|
+
function _to_consumable_array$5(arr) {
|
|
7762
|
+
return _array_without_holes$5(arr) || _iterable_to_array$5(arr) || _unsupported_iterable_to_array$8(arr) || _non_iterable_spread$5();
|
|
7763
7763
|
}
|
|
7764
|
-
function _unsupported_iterable_to_array$
|
|
7764
|
+
function _unsupported_iterable_to_array$8(o, minLen) {
|
|
7765
7765
|
if (!o) return;
|
|
7766
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
7766
|
+
if (typeof o === "string") return _array_like_to_array$8(o, minLen);
|
|
7767
7767
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
7768
7768
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
7769
7769
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
7770
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
7770
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$8(o, minLen);
|
|
7771
7771
|
}
|
|
7772
7772
|
/**
|
|
7773
7773
|
* Converts a {@link FirestoreAccessorArrayUpdate} into Firestore `UpdateData` using the
|
|
@@ -7796,7 +7796,7 @@ function _unsupported_iterable_to_array$9(o, minLen) {
|
|
|
7796
7796
|
result = util.mapObjectMap(fieldUpdate, function(arrayUpdate) {
|
|
7797
7797
|
var result;
|
|
7798
7798
|
if (arrayUpdate) {
|
|
7799
|
-
result = arrayUpdateFunction.apply(void 0, _to_consumable_array$
|
|
7799
|
+
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
|
|
7800
7800
|
}
|
|
7801
7801
|
return result;
|
|
7802
7802
|
});
|
|
@@ -8535,13 +8535,13 @@ function _ts_generator$b(thisArg, body) {
|
|
|
8535
8535
|
};
|
|
8536
8536
|
}
|
|
8537
8537
|
|
|
8538
|
-
function _array_like_to_array$
|
|
8538
|
+
function _array_like_to_array$7(arr, len) {
|
|
8539
8539
|
if (len == null || len > arr.length) len = arr.length;
|
|
8540
8540
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
8541
8541
|
return arr2;
|
|
8542
8542
|
}
|
|
8543
|
-
function _array_without_holes$
|
|
8544
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
8543
|
+
function _array_without_holes$4(arr) {
|
|
8544
|
+
if (Array.isArray(arr)) return _array_like_to_array$7(arr);
|
|
8545
8545
|
}
|
|
8546
8546
|
function _define_property$i(obj, key, value) {
|
|
8547
8547
|
if (key in obj) {
|
|
@@ -8556,10 +8556,10 @@ function _define_property$i(obj, key, value) {
|
|
|
8556
8556
|
}
|
|
8557
8557
|
return obj;
|
|
8558
8558
|
}
|
|
8559
|
-
function _iterable_to_array$
|
|
8559
|
+
function _iterable_to_array$4(iter) {
|
|
8560
8560
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
8561
8561
|
}
|
|
8562
|
-
function _non_iterable_spread$
|
|
8562
|
+
function _non_iterable_spread$4() {
|
|
8563
8563
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8564
8564
|
}
|
|
8565
8565
|
function _object_spread$f(target) {
|
|
@@ -8596,16 +8596,16 @@ function _object_spread_props$c(target, source) {
|
|
|
8596
8596
|
}
|
|
8597
8597
|
return target;
|
|
8598
8598
|
}
|
|
8599
|
-
function _to_consumable_array$
|
|
8600
|
-
return _array_without_holes$
|
|
8599
|
+
function _to_consumable_array$4(arr) {
|
|
8600
|
+
return _array_without_holes$4(arr) || _iterable_to_array$4(arr) || _unsupported_iterable_to_array$7(arr) || _non_iterable_spread$4();
|
|
8601
8601
|
}
|
|
8602
|
-
function _unsupported_iterable_to_array$
|
|
8602
|
+
function _unsupported_iterable_to_array$7(o, minLen) {
|
|
8603
8603
|
if (!o) return;
|
|
8604
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
8604
|
+
if (typeof o === "string") return _array_like_to_array$7(o, minLen);
|
|
8605
8605
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
8606
8606
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
8607
8607
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
8608
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
8608
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$7(o, minLen);
|
|
8609
8609
|
}
|
|
8610
8610
|
/**
|
|
8611
8611
|
* Appends one or more `QueryConstraint` values to the builder, returning a new builder instance.
|
|
@@ -8616,7 +8616,7 @@ function _unsupported_iterable_to_array$8(o, minLen) {
|
|
|
8616
8616
|
*/ function addConstraintToBuilder(builder, constraint) {
|
|
8617
8617
|
return {
|
|
8618
8618
|
query: builder.query,
|
|
8619
|
-
constraints: _to_consumable_array$
|
|
8619
|
+
constraints: _to_consumable_array$4(builder.constraints).concat(_to_consumable_array$4(Array.isArray(constraint) ? constraint : [
|
|
8620
8620
|
constraint
|
|
8621
8621
|
]))
|
|
8622
8622
|
};
|
|
@@ -8641,13 +8641,13 @@ var _obj;
|
|
|
8641
8641
|
}), _define_property$i(_obj, FIRESTORE_OFFSET_QUERY_CONSTRAINT_TYPE, undefined), _define_property$i(_obj, FIRESTORE_START_AT_QUERY_CONSTRAINT_TYPE, function(builder, data) {
|
|
8642
8642
|
return addConstraintToBuilder(builder, firestore.startAt(data.snapshot));
|
|
8643
8643
|
}), _define_property$i(_obj, FIRESTORE_START_AT_VALUE_QUERY_CONSTRAINT_TYPE, function(builder, data) {
|
|
8644
|
-
return addConstraintToBuilder(builder, firestore.startAt.apply(void 0, _to_consumable_array$
|
|
8644
|
+
return addConstraintToBuilder(builder, firestore.startAt.apply(void 0, _to_consumable_array$4(data.fieldValues)));
|
|
8645
8645
|
}), _define_property$i(_obj, FIRESTORE_START_AFTER_QUERY_CONSTRAINT_TYPE, function(builder, data) {
|
|
8646
8646
|
return addConstraintToBuilder(builder, firestore.startAfter(data.snapshot));
|
|
8647
8647
|
}), _define_property$i(_obj, FIRESTORE_END_AT_QUERY_CONSTRAINT_TYPE, function(builder, data) {
|
|
8648
8648
|
return addConstraintToBuilder(builder, firestore.endAt(data.snapshot));
|
|
8649
8649
|
}), _define_property$i(_obj, FIRESTORE_END_AT_VALUE_QUERY_CONSTRAINT_TYPE, function(builder, data) {
|
|
8650
|
-
return addConstraintToBuilder(builder, firestore.endAt.apply(void 0, _to_consumable_array$
|
|
8650
|
+
return addConstraintToBuilder(builder, firestore.endAt.apply(void 0, _to_consumable_array$4(data.fieldValues)));
|
|
8651
8651
|
}), _define_property$i(_obj, FIRESTORE_END_BEFORE_QUERY_CONSTRAINT_TYPE, function(builder, data) {
|
|
8652
8652
|
return addConstraintToBuilder(builder, firestore.endBefore(data.snapshot));
|
|
8653
8653
|
}), _obj);
|
|
@@ -8671,7 +8671,7 @@ var _obj;
|
|
|
8671
8671
|
var initialQuery = param.query, constraints = param.constraints;
|
|
8672
8672
|
return firestore.query.apply(void 0, [
|
|
8673
8673
|
initialQuery
|
|
8674
|
-
].concat(_to_consumable_array$
|
|
8674
|
+
].concat(_to_consumable_array$4(constraints)));
|
|
8675
8675
|
},
|
|
8676
8676
|
documentIdFieldPath: function documentIdFieldPath() {
|
|
8677
8677
|
return firestore.documentId();
|
|
@@ -9364,7 +9364,7 @@ function onCallTypedModelParams(modelTypeInput, data, specifier, call) {
|
|
|
9364
9364
|
};
|
|
9365
9365
|
}
|
|
9366
9366
|
|
|
9367
|
-
function _array_like_to_array$
|
|
9367
|
+
function _array_like_to_array$6(arr, len) {
|
|
9368
9368
|
if (len == null || len > arr.length) len = arr.length;
|
|
9369
9369
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
9370
9370
|
return arr2;
|
|
@@ -9400,15 +9400,15 @@ function _non_iterable_rest$2() {
|
|
|
9400
9400
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9401
9401
|
}
|
|
9402
9402
|
function _sliced_to_array$2(arr, i) {
|
|
9403
|
-
return _array_with_holes$2(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$
|
|
9403
|
+
return _array_with_holes$2(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$6(arr, i) || _non_iterable_rest$2();
|
|
9404
9404
|
}
|
|
9405
|
-
function _unsupported_iterable_to_array$
|
|
9405
|
+
function _unsupported_iterable_to_array$6(o, minLen) {
|
|
9406
9406
|
if (!o) return;
|
|
9407
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
9407
|
+
if (typeof o === "string") return _array_like_to_array$6(o, minLen);
|
|
9408
9408
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
9409
9409
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
9410
9410
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
9411
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
9411
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$6(o, minLen);
|
|
9412
9412
|
}
|
|
9413
9413
|
/**
|
|
9414
9414
|
* Default specifier string (`'_'`) used when a CRUD operation has specifiers but one
|
|
@@ -11718,13 +11718,13 @@ function _ts_generator$6(thisArg, body) {
|
|
|
11718
11718
|
};
|
|
11719
11719
|
}
|
|
11720
11720
|
|
|
11721
|
-
function _array_like_to_array$
|
|
11721
|
+
function _array_like_to_array$5(arr, len) {
|
|
11722
11722
|
if (len == null || len > arr.length) len = arr.length;
|
|
11723
11723
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
11724
11724
|
return arr2;
|
|
11725
11725
|
}
|
|
11726
|
-
function _array_without_holes$
|
|
11727
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
11726
|
+
function _array_without_holes$3(arr) {
|
|
11727
|
+
if (Array.isArray(arr)) return _array_like_to_array$5(arr);
|
|
11728
11728
|
}
|
|
11729
11729
|
function asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, key, arg) {
|
|
11730
11730
|
try {
|
|
@@ -11768,10 +11768,10 @@ function _define_property$a(obj, key, value) {
|
|
|
11768
11768
|
}
|
|
11769
11769
|
return obj;
|
|
11770
11770
|
}
|
|
11771
|
-
function _iterable_to_array$
|
|
11771
|
+
function _iterable_to_array$3(iter) {
|
|
11772
11772
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
11773
11773
|
}
|
|
11774
|
-
function _non_iterable_spread$
|
|
11774
|
+
function _non_iterable_spread$3() {
|
|
11775
11775
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
11776
11776
|
}
|
|
11777
11777
|
function _object_spread$a(target) {
|
|
@@ -11808,16 +11808,16 @@ function _object_spread_props$8(target, source) {
|
|
|
11808
11808
|
}
|
|
11809
11809
|
return target;
|
|
11810
11810
|
}
|
|
11811
|
-
function _to_consumable_array$
|
|
11812
|
-
return _array_without_holes$
|
|
11811
|
+
function _to_consumable_array$3(arr) {
|
|
11812
|
+
return _array_without_holes$3(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$5(arr) || _non_iterable_spread$3();
|
|
11813
11813
|
}
|
|
11814
|
-
function _unsupported_iterable_to_array$
|
|
11814
|
+
function _unsupported_iterable_to_array$5(o, minLen) {
|
|
11815
11815
|
if (!o) return;
|
|
11816
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
11816
|
+
if (typeof o === "string") return _array_like_to_array$5(o, minLen);
|
|
11817
11817
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
11818
11818
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
11819
11819
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
11820
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
11820
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$5(o, minLen);
|
|
11821
11821
|
}
|
|
11822
11822
|
function _ts_generator$5(thisArg, body) {
|
|
11823
11823
|
var f, y, t, _ = {
|
|
@@ -12220,7 +12220,7 @@ function _ts_generator$5(thisArg, body) {
|
|
|
12220
12220
|
case 2:
|
|
12221
12221
|
allNestedFolderFileResults = _state.sent();
|
|
12222
12222
|
allNestedFiles = allNestedFolderFileResults.flat();
|
|
12223
|
-
allFiles = _to_consumable_array$
|
|
12223
|
+
allFiles = _to_consumable_array$3(allImmediateFiles).concat(_to_consumable_array$3(allNestedFiles));
|
|
12224
12224
|
result = _object_spread_props$8(_object_spread$a({}, rootResults), {
|
|
12225
12225
|
files: function files() {
|
|
12226
12226
|
return allFiles;
|
|
@@ -13567,14 +13567,6 @@ var notificationBoxModelCrudFunctionsConfig = {
|
|
|
13567
13567
|
* Thrown when attempting to update a recipient config that is locked by the user.
|
|
13568
13568
|
*/ var NOTIFICATION_USER_LOCKED_CONFIG_FROM_BEING_UPDATED_ERROR_CODE = 'NOTIFICATION_USER_LOCKED_CONFIG_FROM_BEING_UPDATED';
|
|
13569
13569
|
|
|
13570
|
-
function _array_like_to_array$5(arr, len) {
|
|
13571
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
13572
|
-
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
13573
|
-
return arr2;
|
|
13574
|
-
}
|
|
13575
|
-
function _array_without_holes$4(arr) {
|
|
13576
|
-
if (Array.isArray(arr)) return _array_like_to_array$5(arr);
|
|
13577
|
-
}
|
|
13578
13570
|
function _define_property$8(obj, key, value) {
|
|
13579
13571
|
if (key in obj) {
|
|
13580
13572
|
Object.defineProperty(obj, key, {
|
|
@@ -13588,12 +13580,6 @@ function _define_property$8(obj, key, value) {
|
|
|
13588
13580
|
}
|
|
13589
13581
|
return obj;
|
|
13590
13582
|
}
|
|
13591
|
-
function _iterable_to_array$4(iter) {
|
|
13592
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
13593
|
-
}
|
|
13594
|
-
function _non_iterable_spread$4() {
|
|
13595
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
13596
|
-
}
|
|
13597
13583
|
function _object_spread$8(target) {
|
|
13598
13584
|
for(var i = 1; i < arguments.length; i++){
|
|
13599
13585
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
@@ -13628,17 +13614,6 @@ function _object_spread_props$6(target, source) {
|
|
|
13628
13614
|
}
|
|
13629
13615
|
return target;
|
|
13630
13616
|
}
|
|
13631
|
-
function _to_consumable_array$4(arr) {
|
|
13632
|
-
return _array_without_holes$4(arr) || _iterable_to_array$4(arr) || _unsupported_iterable_to_array$5(arr) || _non_iterable_spread$4();
|
|
13633
|
-
}
|
|
13634
|
-
function _unsupported_iterable_to_array$5(o, minLen) {
|
|
13635
|
-
if (!o) return;
|
|
13636
|
-
if (typeof o === "string") return _array_like_to_array$5(o, minLen);
|
|
13637
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
13638
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
13639
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
13640
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$5(o, minLen);
|
|
13641
|
-
}
|
|
13642
13617
|
/**
|
|
13643
13618
|
* Applies an array of config entry params to a {@link NotificationBoxRecipientTemplateConfigRecord},
|
|
13644
13619
|
* inserting new entries, merging updates, and removing entries marked with `remove: true`.
|
|
@@ -13765,7 +13740,7 @@ function _unsupported_iterable_to_array$5(o, minLen) {
|
|
|
13765
13740
|
});
|
|
13766
13741
|
var result;
|
|
13767
13742
|
if (hasChanges) {
|
|
13768
|
-
result =
|
|
13743
|
+
result = Array.from(boxesMap.values());
|
|
13769
13744
|
}
|
|
13770
13745
|
return result;
|
|
13771
13746
|
}
|
|
@@ -14259,17 +14234,11 @@ function _array_like_to_array$4(arr, len) {
|
|
|
14259
14234
|
function _array_with_holes$1(arr) {
|
|
14260
14235
|
if (Array.isArray(arr)) return arr;
|
|
14261
14236
|
}
|
|
14262
|
-
function _array_without_holes$3(arr) {
|
|
14263
|
-
if (Array.isArray(arr)) return _array_like_to_array$4(arr);
|
|
14264
|
-
}
|
|
14265
14237
|
function _class_call_check$5(instance, Constructor) {
|
|
14266
14238
|
if (!(instance instanceof Constructor)) {
|
|
14267
14239
|
throw new TypeError("Cannot call a class as a function");
|
|
14268
14240
|
}
|
|
14269
14241
|
}
|
|
14270
|
-
function _iterable_to_array$3(iter) {
|
|
14271
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
14272
|
-
}
|
|
14273
14242
|
function _iterable_to_array_limit$1(arr, i) {
|
|
14274
14243
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
14275
14244
|
if (_i == null) return;
|
|
@@ -14297,15 +14266,9 @@ function _iterable_to_array_limit$1(arr, i) {
|
|
|
14297
14266
|
function _non_iterable_rest$1() {
|
|
14298
14267
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14299
14268
|
}
|
|
14300
|
-
function _non_iterable_spread$3() {
|
|
14301
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14302
|
-
}
|
|
14303
14269
|
function _sliced_to_array$1(arr, i) {
|
|
14304
14270
|
return _array_with_holes$1(arr) || _iterable_to_array_limit$1(arr, i) || _unsupported_iterable_to_array$4(arr, i) || _non_iterable_rest$1();
|
|
14305
14271
|
}
|
|
14306
|
-
function _to_consumable_array$3(arr) {
|
|
14307
|
-
return _array_without_holes$3(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$4(arr) || _non_iterable_spread$3();
|
|
14308
|
-
}
|
|
14309
14272
|
function _unsupported_iterable_to_array$4(o, minLen) {
|
|
14310
14273
|
if (!o) return;
|
|
14311
14274
|
if (typeof o === "string") return _array_like_to_array$4(o, minLen);
|
|
@@ -14390,23 +14353,23 @@ function _unsupported_iterable_to_array$4(o, minLen) {
|
|
|
14390
14353
|
allKnownTemplateTypeInfo.push(info);
|
|
14391
14354
|
allKnownTemplateTypes.push(info.type);
|
|
14392
14355
|
});
|
|
14393
|
-
var allNotificationModelIdentityValues =
|
|
14356
|
+
var allNotificationModelIdentityValues = Array.from(allNotificationModelIdentityValuesSet);
|
|
14394
14357
|
var notificationModelTemplateInfoMap = notificationModelTypeInfoMapBuilder.map();
|
|
14395
14358
|
var targetModelTemplateInfoMap = targetModelTypeInfoMapBuilder.map();
|
|
14396
|
-
var notificationModelTemplateTypesMap = new Map(
|
|
14359
|
+
var notificationModelTemplateTypesMap = new Map(Array.from(notificationModelTemplateInfoMap.entries()).map(function(param) {
|
|
14397
14360
|
var _param = _sliced_to_array$1(param, 2), k = _param[0], x = _param[1];
|
|
14398
14361
|
return [
|
|
14399
14362
|
k,
|
|
14400
|
-
x.map(function(y) {
|
|
14363
|
+
(x !== null && x !== void 0 ? x : []).map(function(y) {
|
|
14401
14364
|
return y.type;
|
|
14402
14365
|
})
|
|
14403
14366
|
];
|
|
14404
14367
|
}));
|
|
14405
|
-
var targetModelTemplateTypesMap = new Map(
|
|
14368
|
+
var targetModelTemplateTypesMap = new Map(Array.from(targetModelTemplateInfoMap.entries()).map(function(param) {
|
|
14406
14369
|
var _param = _sliced_to_array$1(param, 2), k = _param[0], x = _param[1];
|
|
14407
14370
|
return [
|
|
14408
14371
|
k,
|
|
14409
|
-
x.map(function(y) {
|
|
14372
|
+
(x !== null && x !== void 0 ? x : []).map(function(y) {
|
|
14410
14373
|
return y.type;
|
|
14411
14374
|
})
|
|
14412
14375
|
];
|