@dereekb/firebase-server 13.33.0 → 13.35.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/calcom/package.json +10 -10
- package/discord/package.json +10 -10
- package/index.cjs.js +28 -6
- package/index.esm.js +28 -6
- package/mailgun/package.json +9 -9
- package/mcp/package.json +11 -11
- package/model/index.cjs.js +468 -211
- package/model/index.esm.js +463 -214
- package/model/package.json +9 -9
- package/model/src/lib/index.d.ts +1 -0
- package/model/src/lib/system/index.d.ts +2 -0
- package/model/src/lib/system/system.private.d.ts +63 -0
- package/model/src/lib/system/system.private.module.d.ts +70 -0
- package/oidc/package.json +10 -10
- package/package.json +12 -12
- package/src/lib/firestore/snapshot/snapshot.field.encrypt.d.ts +21 -2
- package/test/package.json +11 -11
- package/twilio/package.json +8 -8
- package/zoho/README.md +30 -0
- package/zoho/index.cjs.js +200 -36
- package/zoho/index.esm.js +193 -35
- package/zoho/package.json +11 -10
- package/zoho/src/lib/index.d.ts +1 -0
- package/zoho/src/lib/zoho.accounts.firebase.d.ts +10 -3
- package/zoho/src/lib/zoho.accounts.firebase.module.d.ts +51 -0
- package/zoho/src/lib/zoho.accounts.firebase.system.d.ts +51 -8
package/model/index.cjs.js
CHANGED
|
@@ -15,7 +15,7 @@ var pdfLib = require('@cantoo/pdf-lib');
|
|
|
15
15
|
var archiver = require('archiver');
|
|
16
16
|
var nestjs = require('@dereekb/nestjs');
|
|
17
17
|
|
|
18
|
-
function _array_like_to_array$
|
|
18
|
+
function _array_like_to_array$f(arr, len) {
|
|
19
19
|
if (len == null || len > arr.length) len = arr.length;
|
|
20
20
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
21
21
|
return arr2;
|
|
@@ -23,8 +23,8 @@ function _array_like_to_array$e(arr, len) {
|
|
|
23
23
|
function _array_with_holes$7(arr) {
|
|
24
24
|
if (Array.isArray(arr)) return arr;
|
|
25
25
|
}
|
|
26
|
-
function _array_without_holes$
|
|
27
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
26
|
+
function _array_without_holes$b(arr) {
|
|
27
|
+
if (Array.isArray(arr)) return _array_like_to_array$f(arr);
|
|
28
28
|
}
|
|
29
29
|
function asyncGeneratorStep$p(gen, resolve, reject, _next, _throw, key, arg) {
|
|
30
30
|
try {
|
|
@@ -68,7 +68,7 @@ function _define_property$m(obj, key, value) {
|
|
|
68
68
|
}
|
|
69
69
|
return obj;
|
|
70
70
|
}
|
|
71
|
-
function _iterable_to_array$
|
|
71
|
+
function _iterable_to_array$b(iter) {
|
|
72
72
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
73
73
|
}
|
|
74
74
|
function _iterable_to_array_limit$7(arr, i) {
|
|
@@ -98,7 +98,7 @@ function _iterable_to_array_limit$7(arr, i) {
|
|
|
98
98
|
function _non_iterable_rest$7() {
|
|
99
99
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
100
100
|
}
|
|
101
|
-
function _non_iterable_spread$
|
|
101
|
+
function _non_iterable_spread$b() {
|
|
102
102
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
103
103
|
}
|
|
104
104
|
function _object_spread$k(target) {
|
|
@@ -136,18 +136,18 @@ function _object_spread_props$i(target, source) {
|
|
|
136
136
|
return target;
|
|
137
137
|
}
|
|
138
138
|
function _sliced_to_array$7(arr, i) {
|
|
139
|
-
return _array_with_holes$7(arr) || _iterable_to_array_limit$7(arr, i) || _unsupported_iterable_to_array$
|
|
139
|
+
return _array_with_holes$7(arr) || _iterable_to_array_limit$7(arr, i) || _unsupported_iterable_to_array$f(arr, i) || _non_iterable_rest$7();
|
|
140
140
|
}
|
|
141
|
-
function _to_consumable_array$
|
|
142
|
-
return _array_without_holes$
|
|
141
|
+
function _to_consumable_array$b(arr) {
|
|
142
|
+
return _array_without_holes$b(arr) || _iterable_to_array$b(arr) || _unsupported_iterable_to_array$f(arr) || _non_iterable_spread$b();
|
|
143
143
|
}
|
|
144
|
-
function _unsupported_iterable_to_array$
|
|
144
|
+
function _unsupported_iterable_to_array$f(o, minLen) {
|
|
145
145
|
if (!o) return;
|
|
146
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
146
|
+
if (typeof o === "string") return _array_like_to_array$f(o, minLen);
|
|
147
147
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
148
148
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
149
149
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
150
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
150
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$f(o, minLen);
|
|
151
151
|
}
|
|
152
152
|
function _ts_generator$p(thisArg, body) {
|
|
153
153
|
var f, y, t, _ = {
|
|
@@ -367,7 +367,7 @@ function _ts_generator$p(thisArg, body) {
|
|
|
367
367
|
}
|
|
368
368
|
}));
|
|
369
369
|
}
|
|
370
|
-
(_issues = issues).push.apply(_issues, _to_consumable_array$
|
|
370
|
+
(_issues = issues).push.apply(_issues, _to_consumable_array$b(recentEventActivityIssues(recentEvents)));
|
|
371
371
|
// MARK: validation
|
|
372
372
|
if (validation) {
|
|
373
373
|
if (validation.result === 'undeliverable') {
|
|
@@ -407,7 +407,7 @@ function _ts_generator$p(thisArg, body) {
|
|
|
407
407
|
];
|
|
408
408
|
case 2:
|
|
409
409
|
probeResult = _state.sent();
|
|
410
|
-
(_issues1 = issues).push.apply(_issues1, _to_consumable_array$
|
|
410
|
+
(_issues1 = issues).push.apply(_issues1, _to_consumable_array$b(probeResult.issues));
|
|
411
411
|
return [
|
|
412
412
|
2,
|
|
413
413
|
{
|
|
@@ -820,7 +820,7 @@ function _ts_generator$p(thisArg, body) {
|
|
|
820
820
|
})();
|
|
821
821
|
}
|
|
822
822
|
|
|
823
|
-
function _array_like_to_array$
|
|
823
|
+
function _array_like_to_array$e(arr, len) {
|
|
824
824
|
if (len == null || len > arr.length) len = arr.length;
|
|
825
825
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
826
826
|
return arr2;
|
|
@@ -885,15 +885,15 @@ function _non_iterable_rest$6() {
|
|
|
885
885
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
886
886
|
}
|
|
887
887
|
function _sliced_to_array$6(arr, i) {
|
|
888
|
-
return _array_with_holes$6(arr) || _iterable_to_array_limit$6(arr, i) || _unsupported_iterable_to_array$
|
|
888
|
+
return _array_with_holes$6(arr) || _iterable_to_array_limit$6(arr, i) || _unsupported_iterable_to_array$e(arr, i) || _non_iterable_rest$6();
|
|
889
889
|
}
|
|
890
|
-
function _unsupported_iterable_to_array$
|
|
890
|
+
function _unsupported_iterable_to_array$e(o, minLen) {
|
|
891
891
|
if (!o) return;
|
|
892
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
892
|
+
if (typeof o === "string") return _array_like_to_array$e(o, minLen);
|
|
893
893
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
894
894
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
895
895
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
896
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
896
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$e(o, minLen);
|
|
897
897
|
}
|
|
898
898
|
function _ts_generator$o(thisArg, body) {
|
|
899
899
|
var f, y, t, _ = {
|
|
@@ -1328,7 +1328,7 @@ var DEFAULT_MAILGUN_NOTIFICATION_EMAIL_SEND_SERVICE_MAX_BATCH_SIZE_PER_REQUEST =
|
|
|
1328
1328
|
});
|
|
1329
1329
|
}
|
|
1330
1330
|
|
|
1331
|
-
function _array_like_to_array$
|
|
1331
|
+
function _array_like_to_array$d(arr, len) {
|
|
1332
1332
|
if (len == null || len > arr.length) len = arr.length;
|
|
1333
1333
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
1334
1334
|
return arr2;
|
|
@@ -1336,8 +1336,8 @@ function _array_like_to_array$c(arr, len) {
|
|
|
1336
1336
|
function _array_with_holes$5(arr) {
|
|
1337
1337
|
if (Array.isArray(arr)) return arr;
|
|
1338
1338
|
}
|
|
1339
|
-
function _array_without_holes$
|
|
1340
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
1339
|
+
function _array_without_holes$a(arr) {
|
|
1340
|
+
if (Array.isArray(arr)) return _array_like_to_array$d(arr);
|
|
1341
1341
|
}
|
|
1342
1342
|
function asyncGeneratorStep$n(gen, resolve, reject, _next, _throw, key, arg) {
|
|
1343
1343
|
try {
|
|
@@ -1381,7 +1381,7 @@ function _define_property$l(obj, key, value) {
|
|
|
1381
1381
|
}
|
|
1382
1382
|
return obj;
|
|
1383
1383
|
}
|
|
1384
|
-
function _iterable_to_array$
|
|
1384
|
+
function _iterable_to_array$a(iter) {
|
|
1385
1385
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
1386
1386
|
}
|
|
1387
1387
|
function _iterable_to_array_limit$5(arr, i) {
|
|
@@ -1411,7 +1411,7 @@ function _iterable_to_array_limit$5(arr, i) {
|
|
|
1411
1411
|
function _non_iterable_rest$5() {
|
|
1412
1412
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1413
1413
|
}
|
|
1414
|
-
function _non_iterable_spread$
|
|
1414
|
+
function _non_iterable_spread$a() {
|
|
1415
1415
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1416
1416
|
}
|
|
1417
1417
|
function _object_spread$j(target) {
|
|
@@ -1449,18 +1449,18 @@ function _object_spread_props$h(target, source) {
|
|
|
1449
1449
|
return target;
|
|
1450
1450
|
}
|
|
1451
1451
|
function _sliced_to_array$5(arr, i) {
|
|
1452
|
-
return _array_with_holes$5(arr) || _iterable_to_array_limit$5(arr, i) || _unsupported_iterable_to_array$
|
|
1452
|
+
return _array_with_holes$5(arr) || _iterable_to_array_limit$5(arr, i) || _unsupported_iterable_to_array$d(arr, i) || _non_iterable_rest$5();
|
|
1453
1453
|
}
|
|
1454
|
-
function _to_consumable_array$
|
|
1455
|
-
return _array_without_holes$
|
|
1454
|
+
function _to_consumable_array$a(arr) {
|
|
1455
|
+
return _array_without_holes$a(arr) || _iterable_to_array$a(arr) || _unsupported_iterable_to_array$d(arr) || _non_iterable_spread$a();
|
|
1456
1456
|
}
|
|
1457
|
-
function _unsupported_iterable_to_array$
|
|
1457
|
+
function _unsupported_iterable_to_array$d(o, minLen) {
|
|
1458
1458
|
if (!o) return;
|
|
1459
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
1459
|
+
if (typeof o === "string") return _array_like_to_array$d(o, minLen);
|
|
1460
1460
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1461
1461
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1462
1462
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
1463
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
1463
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$d(o, minLen);
|
|
1464
1464
|
}
|
|
1465
1465
|
function _ts_generator$n(thisArg, body) {
|
|
1466
1466
|
var f, y, t, _ = {
|
|
@@ -1697,12 +1697,12 @@ function _ts_generator$n(thisArg, body) {
|
|
|
1697
1697
|
case 5:
|
|
1698
1698
|
subscriptions = _tmp;
|
|
1699
1699
|
disabledMethodsByBox = (_ref = subscriptions === null || subscriptions === void 0 ? void 0 : subscriptions.issuesByMethod) !== null && _ref !== void 0 ? _ref : new Map();
|
|
1700
|
-
accountIssues = verifyPendingProbesOnly ? _to_consumable_array$
|
|
1701
|
-
_to_consumable_array$
|
|
1700
|
+
accountIssues = verifyPendingProbesOnly ? _to_consumable_array$a((_ref1 = previousHealthCheck === null || previousHealthCheck === void 0 ? void 0 : previousHealthCheck.is) !== null && _ref1 !== void 0 ? _ref1 : []) : //
|
|
1701
|
+
_to_consumable_array$a(notificationUserAccountIssues({
|
|
1702
1702
|
notificationUser: notificationUser,
|
|
1703
1703
|
accountDisabled: (authDetails === null || authDetails === void 0 ? void 0 : authDetails.disabled) === true,
|
|
1704
1704
|
accountExists: authDetails != null
|
|
1705
|
-
})).concat(_to_consumable_array$
|
|
1705
|
+
})).concat(_to_consumable_array$a((_ref2 = subscriptions === null || subscriptions === void 0 ? void 0 : subscriptions.sharedIssues) !== null && _ref2 !== void 0 ? _ref2 : []));
|
|
1706
1706
|
// MARK: per-method
|
|
1707
1707
|
probesDispatched = 0;
|
|
1708
1708
|
probesResolved = 0;
|
|
@@ -1732,11 +1732,11 @@ function _ts_generator$n(thisArg, body) {
|
|
|
1732
1732
|
// lose its probe explanation while still reporting the probe itself.
|
|
1733
1733
|
issues = verifyPendingProbesOnly ? ((_ref = previousMethodResult === null || previousMethodResult === void 0 ? void 0 : previousMethodResult.is) !== null && _ref !== void 0 ? _ref : []).filter(function(x) {
|
|
1734
1734
|
return !(willConsultProvider && isProbeIssueCode(x.c));
|
|
1735
|
-
}) : _to_consumable_array$
|
|
1735
|
+
}) : _to_consumable_array$a(notificationDeliveryMethodConfigIssues({
|
|
1736
1736
|
methodContext: methodContext,
|
|
1737
1737
|
notificationUser: notificationUser,
|
|
1738
1738
|
notificationTemplateType: notificationTemplateType
|
|
1739
|
-
})).concat(_to_consumable_array$
|
|
1739
|
+
})).concat(_to_consumable_array$a((_disabledMethodsByBox_get = disabledMethodsByBox.get(method)) !== null && _disabledMethodsByBox_get !== void 0 ? _disabledMethodsByBox_get : []));
|
|
1740
1740
|
// keep any previously resolved probe visible unless the provider supplies a newer one
|
|
1741
1741
|
probe = previousProbe;
|
|
1742
1742
|
if (!(healthCheckService && target != null && providerHasSomethingToReport)) return [
|
|
@@ -1765,7 +1765,7 @@ function _ts_generator$n(thisArg, body) {
|
|
|
1765
1765
|
];
|
|
1766
1766
|
case 2:
|
|
1767
1767
|
response = _state.sent();
|
|
1768
|
-
(_issues = issues).push.apply(_issues, _to_consumable_array$
|
|
1768
|
+
(_issues = issues).push.apply(_issues, _to_consumable_array$a(verifyPendingProbesOnly ? response.issues.filter(function(x) {
|
|
1769
1769
|
return isProbeIssueCode(x.c);
|
|
1770
1770
|
}) : response.issues));
|
|
1771
1771
|
if (response.probe) {
|
|
@@ -2333,13 +2333,13 @@ function _ts_generator$n(thisArg, body) {
|
|
|
2333
2333
|
return PROBE_NOTIFICATION_HEALTH_CHECK_ISSUE_CODES.has(code);
|
|
2334
2334
|
}
|
|
2335
2335
|
|
|
2336
|
-
function _array_like_to_array$
|
|
2336
|
+
function _array_like_to_array$c(arr, len) {
|
|
2337
2337
|
if (len == null || len > arr.length) len = arr.length;
|
|
2338
2338
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2339
2339
|
return arr2;
|
|
2340
2340
|
}
|
|
2341
|
-
function _array_without_holes$
|
|
2342
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
2341
|
+
function _array_without_holes$9(arr) {
|
|
2342
|
+
if (Array.isArray(arr)) return _array_like_to_array$c(arr);
|
|
2343
2343
|
}
|
|
2344
2344
|
function asyncGeneratorStep$m(gen, resolve, reject, _next, _throw, key, arg) {
|
|
2345
2345
|
try {
|
|
@@ -2383,10 +2383,10 @@ function _define_property$k(obj, key, value) {
|
|
|
2383
2383
|
}
|
|
2384
2384
|
return obj;
|
|
2385
2385
|
}
|
|
2386
|
-
function _iterable_to_array$
|
|
2386
|
+
function _iterable_to_array$9(iter) {
|
|
2387
2387
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
2388
2388
|
}
|
|
2389
|
-
function _non_iterable_spread$
|
|
2389
|
+
function _non_iterable_spread$9() {
|
|
2390
2390
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2391
2391
|
}
|
|
2392
2392
|
function _object_spread$i(target) {
|
|
@@ -2423,16 +2423,16 @@ function _object_spread_props$g(target, source) {
|
|
|
2423
2423
|
}
|
|
2424
2424
|
return target;
|
|
2425
2425
|
}
|
|
2426
|
-
function _to_consumable_array$
|
|
2427
|
-
return _array_without_holes$
|
|
2426
|
+
function _to_consumable_array$9(arr) {
|
|
2427
|
+
return _array_without_holes$9(arr) || _iterable_to_array$9(arr) || _unsupported_iterable_to_array$c(arr) || _non_iterable_spread$9();
|
|
2428
2428
|
}
|
|
2429
|
-
function _unsupported_iterable_to_array$
|
|
2429
|
+
function _unsupported_iterable_to_array$c(o, minLen) {
|
|
2430
2430
|
if (!o) return;
|
|
2431
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
2431
|
+
if (typeof o === "string") return _array_like_to_array$c(o, minLen);
|
|
2432
2432
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2433
2433
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2434
2434
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2435
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
2435
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$c(o, minLen);
|
|
2436
2436
|
}
|
|
2437
2437
|
function _ts_generator$m(thisArg, body) {
|
|
2438
2438
|
var f, y, t, _ = {
|
|
@@ -2602,7 +2602,7 @@ function _ts_generator$m(thisArg, body) {
|
|
|
2602
2602
|
globalRecipients = initialGlobalRecipients.map(function(x) {
|
|
2603
2603
|
return _object_spread$i({}, x, firebase.effectiveNotificationBoxRecipientTemplateConfig(x));
|
|
2604
2604
|
});
|
|
2605
|
-
explicitAndGlobalRecipients = _to_consumable_array$
|
|
2605
|
+
explicitAndGlobalRecipients = _to_consumable_array$9(explicitRecipients).concat(_to_consumable_array$9(globalRecipients));
|
|
2606
2606
|
allBoxRecipientConfigs = canSendToBoxRecipients && notificationBox ? notificationBox.r : [];
|
|
2607
2607
|
recipientUids = new Set();
|
|
2608
2608
|
relevantBoxRecipientConfigs = [];
|
|
@@ -2703,7 +2703,7 @@ function _ts_generator$m(thisArg, body) {
|
|
|
2703
2703
|
});
|
|
2704
2704
|
return [
|
|
2705
2705
|
4,
|
|
2706
|
-
Promise.all(_to_consumable_array$
|
|
2706
|
+
Promise.all(_to_consumable_array$9(recipientUids).map(function(uid) {
|
|
2707
2707
|
return authService.userContext(uid).loadDetails().then(function(details) {
|
|
2708
2708
|
return [
|
|
2709
2709
|
uid,
|
|
@@ -2988,7 +2988,7 @@ function _ts_generator$m(thisArg, body) {
|
|
|
2988
2988
|
// flag as removed in the NotificationUser details if not already flagged as such
|
|
2989
2989
|
if (currentNotificationUserBoxIndexExists && currentNotificationUserBoxConfig.rm !== true) {
|
|
2990
2990
|
var _currentNotificationUserBoxConfig_c;
|
|
2991
|
-
updatedBc = _to_consumable_array$
|
|
2991
|
+
updatedBc = _to_consumable_array$9(notificationUser.bc);
|
|
2992
2992
|
updatedBc[currentNotificationUserBoxIndex] = _object_spread_props$g(_object_spread$i({}, currentNotificationUserBoxConfig), {
|
|
2993
2993
|
nb: notificationBoxId,
|
|
2994
2994
|
c: (_currentNotificationUserBoxConfig_c = currentNotificationUserBoxConfig.c) !== null && _currentNotificationUserBoxConfig_c !== void 0 ? _currentNotificationUserBoxConfig_c : {},
|
|
@@ -3034,7 +3034,7 @@ function _ts_generator$m(thisArg, body) {
|
|
|
3034
3034
|
nb: notificationBoxId,
|
|
3035
3035
|
rm: false // remove/clear the removed flag
|
|
3036
3036
|
}), updateWithNotificationBoxRecipient);
|
|
3037
|
-
updatedBc = _to_consumable_array$
|
|
3037
|
+
updatedBc = _to_consumable_array$9(notificationUser.bc);
|
|
3038
3038
|
if (currentNotificationUserBoxIndexExists) {
|
|
3039
3039
|
updatedBc[currentNotificationUserBoxIndex] = updatedNotificationUserBoxEntry;
|
|
3040
3040
|
} else {
|
|
@@ -3092,7 +3092,7 @@ function _ts_generator$m(thisArg, body) {
|
|
|
3092
3092
|
return result;
|
|
3093
3093
|
}
|
|
3094
3094
|
|
|
3095
|
-
function _array_like_to_array$
|
|
3095
|
+
function _array_like_to_array$b(arr, len) {
|
|
3096
3096
|
if (len == null || len > arr.length) len = arr.length;
|
|
3097
3097
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
3098
3098
|
return arr2;
|
|
@@ -3100,8 +3100,8 @@ function _array_like_to_array$a(arr, len) {
|
|
|
3100
3100
|
function _array_with_holes$4(arr) {
|
|
3101
3101
|
if (Array.isArray(arr)) return arr;
|
|
3102
3102
|
}
|
|
3103
|
-
function _array_without_holes$
|
|
3104
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
3103
|
+
function _array_without_holes$8(arr) {
|
|
3104
|
+
if (Array.isArray(arr)) return _array_like_to_array$b(arr);
|
|
3105
3105
|
}
|
|
3106
3106
|
function asyncGeneratorStep$l(gen, resolve, reject, _next, _throw, key, arg) {
|
|
3107
3107
|
try {
|
|
@@ -3132,7 +3132,7 @@ function _async_to_generator$l(fn) {
|
|
|
3132
3132
|
});
|
|
3133
3133
|
};
|
|
3134
3134
|
}
|
|
3135
|
-
function _class_call_check$
|
|
3135
|
+
function _class_call_check$n(instance, Constructor) {
|
|
3136
3136
|
if (!(instance instanceof Constructor)) {
|
|
3137
3137
|
throw new TypeError("Cannot call a class as a function");
|
|
3138
3138
|
}
|
|
@@ -3150,7 +3150,7 @@ function _define_property$j(obj, key, value) {
|
|
|
3150
3150
|
}
|
|
3151
3151
|
return obj;
|
|
3152
3152
|
}
|
|
3153
|
-
function _iterable_to_array$
|
|
3153
|
+
function _iterable_to_array$8(iter) {
|
|
3154
3154
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
3155
3155
|
}
|
|
3156
3156
|
function _iterable_to_array_limit$4(arr, i) {
|
|
@@ -3180,7 +3180,7 @@ function _iterable_to_array_limit$4(arr, i) {
|
|
|
3180
3180
|
function _non_iterable_rest$4() {
|
|
3181
3181
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3182
3182
|
}
|
|
3183
|
-
function _non_iterable_spread$
|
|
3183
|
+
function _non_iterable_spread$8() {
|
|
3184
3184
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3185
3185
|
}
|
|
3186
3186
|
function _object_spread$h(target) {
|
|
@@ -3218,18 +3218,18 @@ function _object_spread_props$f(target, source) {
|
|
|
3218
3218
|
return target;
|
|
3219
3219
|
}
|
|
3220
3220
|
function _sliced_to_array$4(arr, i) {
|
|
3221
|
-
return _array_with_holes$4(arr) || _iterable_to_array_limit$4(arr, i) || _unsupported_iterable_to_array$
|
|
3221
|
+
return _array_with_holes$4(arr) || _iterable_to_array_limit$4(arr, i) || _unsupported_iterable_to_array$b(arr, i) || _non_iterable_rest$4();
|
|
3222
3222
|
}
|
|
3223
|
-
function _to_consumable_array$
|
|
3224
|
-
return _array_without_holes$
|
|
3223
|
+
function _to_consumable_array$8(arr) {
|
|
3224
|
+
return _array_without_holes$8(arr) || _iterable_to_array$8(arr) || _unsupported_iterable_to_array$b(arr) || _non_iterable_spread$8();
|
|
3225
3225
|
}
|
|
3226
|
-
function _unsupported_iterable_to_array$
|
|
3226
|
+
function _unsupported_iterable_to_array$b(o, minLen) {
|
|
3227
3227
|
if (!o) return;
|
|
3228
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
3228
|
+
if (typeof o === "string") return _array_like_to_array$b(o, minLen);
|
|
3229
3229
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3230
3230
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3231
3231
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
3232
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
3232
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$b(o, minLen);
|
|
3233
3233
|
}
|
|
3234
3234
|
function _ts_generator$l(thisArg, body) {
|
|
3235
3235
|
var f, y, t, _ = {
|
|
@@ -3355,7 +3355,7 @@ function _ts_generator$l(thisArg, body) {
|
|
|
3355
3355
|
*
|
|
3356
3356
|
* @see {@link notificationServerActions} for the concrete implementation factory.
|
|
3357
3357
|
*/ var NotificationServerActions = function NotificationServerActions() {
|
|
3358
|
-
_class_call_check$
|
|
3358
|
+
_class_call_check$n(this, NotificationServerActions);
|
|
3359
3359
|
};
|
|
3360
3360
|
/**
|
|
3361
3361
|
* Creates a concrete {@link NotificationServerActions} implementation by wiring each action
|
|
@@ -3693,7 +3693,7 @@ var MAX_NOTIFICATION_BOXES_TO_UPDATE_PER_BATCH = 50;
|
|
|
3693
3693
|
recipientHasChange = !util.areEqualPOJOValues(nextRecipient, recipient);
|
|
3694
3694
|
// only update recipients if the next/new recipient is not equal to the existing one
|
|
3695
3695
|
if (recipientHasChange) {
|
|
3696
|
-
r = _to_consumable_array$
|
|
3696
|
+
r = _to_consumable_array$8(notificationBox.r);
|
|
3697
3697
|
r[recipientIndex] = nextRecipient;
|
|
3698
3698
|
nextRecipientsMap.set(nb, nextRecipient);
|
|
3699
3699
|
} else {
|
|
@@ -4322,7 +4322,7 @@ var MAX_NOTIFICATION_BOXES_TO_UPDATE_PER_BATCH = 50;
|
|
|
4322
4322
|
targetRecipient = notificationBox.r[targetRecipientIndex];
|
|
4323
4323
|
if (remove) {
|
|
4324
4324
|
if (targetRecipientIndex !== -1) {
|
|
4325
|
-
r = _to_consumable_array$
|
|
4325
|
+
r = _to_consumable_array$8(notificationBox.r); // remove if they exist.
|
|
4326
4326
|
delete r[targetRecipientIndex];
|
|
4327
4327
|
}
|
|
4328
4328
|
} else {
|
|
@@ -4335,7 +4335,7 @@ var MAX_NOTIFICATION_BOXES_TO_UPDATE_PER_BATCH = 50;
|
|
|
4335
4335
|
i: (_ref1 = targetRecipient === null || targetRecipient === void 0 ? void 0 : targetRecipient.i) !== null && _ref1 !== void 0 ? _ref1 : util.UNSET_INDEX_NUMBER,
|
|
4336
4336
|
c: c
|
|
4337
4337
|
}, firebase.updateNotificationRecipient(targetRecipient !== null && targetRecipient !== void 0 ? targetRecipient : {}, params));
|
|
4338
|
-
r = _to_consumable_array$
|
|
4338
|
+
r = _to_consumable_array$8(notificationBox.r);
|
|
4339
4339
|
if (targetRecipient) {
|
|
4340
4340
|
nextRecipient.i = targetRecipient.i;
|
|
4341
4341
|
nextRecipient = firebase.mergeNotificationBoxRecipients(targetRecipient, nextRecipient);
|
|
@@ -4690,7 +4690,7 @@ var NOTIFICATION_TASK_TYPE_FAILURE_DELAY_MS = dateFns.hoursToMilliseconds(NOTIFI
|
|
|
4690
4690
|
notificationTemplate.at = 0; // reset checkpoint attempt/delay count
|
|
4691
4691
|
}
|
|
4692
4692
|
// add the checkpoint to the notification
|
|
4693
|
-
notificationTemplate.tpr = _to_consumable_array$
|
|
4693
|
+
notificationTemplate.tpr = _to_consumable_array$8(removeFromCompletionsArrayWithTaskResult(notification.tpr, handleTaskResult)).concat(_to_consumable_array$8(util.asArray(completion)));
|
|
4694
4694
|
// calculate the updated notification item
|
|
4695
4695
|
notificationTemplate.n = _object_spread_props$f(_object_spread$h({}, notification.n), {
|
|
4696
4696
|
d: _object_spread$h({}, notification.n.d, updateMetadata ? util.filterOnlyUndefinedValues(updateMetadata) : undefined // ignore any undefined values
|
|
@@ -5039,7 +5039,7 @@ var NOTIFICATION_TASK_TYPE_FAILURE_DELAY_MS = dateFns.hoursToMilliseconds(NOTIFI
|
|
|
5039
5039
|
case 11:
|
|
5040
5040
|
if (sendEmailsResult != null) {
|
|
5041
5041
|
success1 = sendEmailsResult.success, failed = sendEmailsResult.failed;
|
|
5042
|
-
esr = success1.length ? _to_consumable_array$
|
|
5042
|
+
esr = success1.length ? _to_consumable_array$8(currentEsr).concat(_to_consumable_array$8(success1.map(function(x) {
|
|
5043
5043
|
return x.toLowerCase();
|
|
5044
5044
|
}))) : undefined;
|
|
5045
5045
|
if (failed.length > 0) {
|
|
@@ -5156,7 +5156,7 @@ var NOTIFICATION_TASK_TYPE_FAILURE_DELAY_MS = dateFns.hoursToMilliseconds(NOTIFI
|
|
|
5156
5156
|
case 22:
|
|
5157
5157
|
if (sendTextsResult != null) {
|
|
5158
5158
|
success2 = sendTextsResult.success, failed1 = sendTextsResult.failed;
|
|
5159
|
-
tsr = success2.length ? _to_consumable_array$
|
|
5159
|
+
tsr = success2.length ? _to_consumable_array$8(currentTsr).concat(_to_consumable_array$8(success2)) : undefined;
|
|
5160
5160
|
if (failed1.length > 0) {
|
|
5161
5161
|
ts = firebase.NotificationSendState.SENT_PARTIAL;
|
|
5162
5162
|
} else {
|
|
@@ -6004,7 +6004,7 @@ var NOTIFICATION_TASK_TYPE_FAILURE_DELAY_MS = dateFns.hoursToMilliseconds(NOTIFI
|
|
|
6004
6004
|
];
|
|
6005
6005
|
case 1:
|
|
6006
6006
|
notificationDocuments = _state.sent();
|
|
6007
|
-
notificationDocumentsGroupedByNotificationBox = _to_consumable_array$
|
|
6007
|
+
notificationDocumentsGroupedByNotificationBox = _to_consumable_array$8(util.makeValuesGroupMap(notificationDocuments, function(x) {
|
|
6008
6008
|
return x.parent.id;
|
|
6009
6009
|
}).values());
|
|
6010
6010
|
return [
|
|
@@ -6060,7 +6060,7 @@ var NOTIFICATION_TASK_TYPE_FAILURE_DELAY_MS = dateFns.hoursToMilliseconds(NOTIFI
|
|
|
6060
6060
|
}
|
|
6061
6061
|
}
|
|
6062
6062
|
}
|
|
6063
|
-
pairsGroupedByWeek = _to_consumable_array$
|
|
6063
|
+
pairsGroupedByWeek = _to_consumable_array$8(util.makeValuesGroupMap(normalPairsWithDataAndMarkedDeleted, function(x) {
|
|
6064
6064
|
return date.yearWeekCode(x.data.sat);
|
|
6065
6065
|
}).entries());
|
|
6066
6066
|
// batch incase there are a lot of new notifications to move to week
|
|
@@ -6074,7 +6074,7 @@ var NOTIFICATION_TASK_TYPE_FAILURE_DELAY_MS = dateFns.hoursToMilliseconds(NOTIFI
|
|
|
6074
6074
|
});
|
|
6075
6075
|
});
|
|
6076
6076
|
// group logged events by ISO day string (derived from sat) for archival into NotificationLoggedEventDay.
|
|
6077
|
-
pairsGroupedByLoggedEventDay = _to_consumable_array$
|
|
6077
|
+
pairsGroupedByLoggedEventDay = _to_consumable_array$8(util.makeValuesGroupMap(loggedEventPairsWithDataAndMarkedDeleted, function(x) {
|
|
6078
6078
|
return firebase.notificationLoggedEventDayId(x.data.sat);
|
|
6079
6079
|
}).entries());
|
|
6080
6080
|
// batch incase there are a lot of new logged events to move to a single day
|
|
@@ -6117,7 +6117,7 @@ var NOTIFICATION_TASK_TYPE_FAILURE_DELAY_MS = dateFns.hoursToMilliseconds(NOTIFI
|
|
|
6117
6117
|
var shouldSaveToNotificationWeek = firebase.shouldSaveNotificationToNotificationWeek(data);
|
|
6118
6118
|
return shouldSaveToNotificationWeek ? data.n : undefined;
|
|
6119
6119
|
}));
|
|
6120
|
-
n = _to_consumable_array$
|
|
6120
|
+
n = _to_consumable_array$8((_ref = notificationWeek === null || notificationWeek === void 0 ? void 0 : notificationWeek.n) !== null && _ref !== void 0 ? _ref : []).concat(_to_consumable_array$8(newItems));
|
|
6121
6121
|
if (!notificationWeek) return [
|
|
6122
6122
|
3,
|
|
6123
6123
|
3
|
|
@@ -6211,7 +6211,7 @@ var NOTIFICATION_TASK_TYPE_FAILURE_DELAY_MS = dateFns.hoursToMilliseconds(NOTIFI
|
|
|
6211
6211
|
});
|
|
6212
6212
|
return [
|
|
6213
6213
|
4,
|
|
6214
|
-
pagedItems.writeAllItemsInTransaction(transaction, _to_consumable_array$
|
|
6214
|
+
pagedItems.writeAllItemsInTransaction(transaction, _to_consumable_array$8(existingItems).concat(_to_consumable_array$8(newItems)))
|
|
6215
6215
|
];
|
|
6216
6216
|
case 2:
|
|
6217
6217
|
_state.sent();
|
|
@@ -6513,7 +6513,7 @@ function _async_to_generator$k(fn) {
|
|
|
6513
6513
|
});
|
|
6514
6514
|
};
|
|
6515
6515
|
}
|
|
6516
|
-
function _class_call_check$
|
|
6516
|
+
function _class_call_check$m(instance, Constructor) {
|
|
6517
6517
|
if (!(instance instanceof Constructor)) {
|
|
6518
6518
|
throw new TypeError("Cannot call a class as a function");
|
|
6519
6519
|
}
|
|
@@ -6681,7 +6681,7 @@ var MAKE_TEMPLATE_FOR_NOTIFICATION_RELATED_MODEL_INITIALIZATION_FUNCTION_DELETE_
|
|
|
6681
6681
|
*
|
|
6682
6682
|
* @see {@link notificationInitServerActions} for the concrete implementation factory.
|
|
6683
6683
|
*/ var NotificationInitServerActions = function NotificationInitServerActions() {
|
|
6684
|
-
_class_call_check$
|
|
6684
|
+
_class_call_check$m(this, NotificationInitServerActions);
|
|
6685
6685
|
};
|
|
6686
6686
|
/**
|
|
6687
6687
|
* Creates a concrete {@link NotificationInitServerActions} implementation by wiring each
|
|
@@ -7205,13 +7205,13 @@ var MAKE_TEMPLATE_FOR_NOTIFICATION_RELATED_MODEL_INITIALIZATION_FUNCTION_DELETE_
|
|
|
7205
7205
|
});
|
|
7206
7206
|
}
|
|
7207
7207
|
|
|
7208
|
-
function _type_of$
|
|
7208
|
+
function _type_of$5(obj) {
|
|
7209
7209
|
"@swc/helpers - typeof";
|
|
7210
7210
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
7211
7211
|
}
|
|
7212
7212
|
function __decorate(decorators, target, key, desc) {
|
|
7213
7213
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7214
|
-
if ((typeof Reflect === "undefined" ? "undefined" : _type_of$
|
|
7214
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _type_of$5(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7215
7215
|
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
7216
7216
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7217
7217
|
}
|
|
@@ -7270,12 +7270,12 @@ function _async_to_generator$j(fn) {
|
|
|
7270
7270
|
});
|
|
7271
7271
|
};
|
|
7272
7272
|
}
|
|
7273
|
-
function _class_call_check$
|
|
7273
|
+
function _class_call_check$l(instance, Constructor) {
|
|
7274
7274
|
if (!(instance instanceof Constructor)) {
|
|
7275
7275
|
throw new TypeError("Cannot call a class as a function");
|
|
7276
7276
|
}
|
|
7277
7277
|
}
|
|
7278
|
-
function _defineProperties$
|
|
7278
|
+
function _defineProperties$6(target, props) {
|
|
7279
7279
|
for(var i = 0; i < props.length; i++){
|
|
7280
7280
|
var descriptor = props[i];
|
|
7281
7281
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -7284,8 +7284,8 @@ function _defineProperties$5(target, props) {
|
|
|
7284
7284
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
7285
7285
|
}
|
|
7286
7286
|
}
|
|
7287
|
-
function _create_class$
|
|
7288
|
-
if (protoProps) _defineProperties$
|
|
7287
|
+
function _create_class$6(Constructor, protoProps, staticProps) {
|
|
7288
|
+
if (protoProps) _defineProperties$6(Constructor.prototype, protoProps);
|
|
7289
7289
|
return Constructor;
|
|
7290
7290
|
}
|
|
7291
7291
|
function _define_property$h(obj, key, value) {
|
|
@@ -7415,7 +7415,7 @@ function _ts_generator$j(thisArg, body) {
|
|
|
7415
7415
|
*/ exports.NotificationTemplateService = /*#__PURE__*/ function() {
|
|
7416
7416
|
function NotificationTemplateService(_inputDefaults, _inputConfigs) {
|
|
7417
7417
|
var _this = this;
|
|
7418
|
-
_class_call_check$
|
|
7418
|
+
_class_call_check$l(this, NotificationTemplateService);
|
|
7419
7419
|
_define_property$h(this, "_defaults", void 0);
|
|
7420
7420
|
_define_property$h(this, "_config", void 0);
|
|
7421
7421
|
this._defaults = _inputDefaults !== null && _inputDefaults !== void 0 ? _inputDefaults : {};
|
|
@@ -7426,7 +7426,7 @@ function _ts_generator$j(thisArg, body) {
|
|
|
7426
7426
|
});
|
|
7427
7427
|
}
|
|
7428
7428
|
}
|
|
7429
|
-
_create_class$
|
|
7429
|
+
_create_class$6(NotificationTemplateService, [
|
|
7430
7430
|
{
|
|
7431
7431
|
/**
|
|
7432
7432
|
* Returns the default factory and optional type-specific config for the given template type.
|
|
@@ -7830,7 +7830,7 @@ function _ts_generator$i(thisArg, body) {
|
|
|
7830
7830
|
})();
|
|
7831
7831
|
}
|
|
7832
7832
|
|
|
7833
|
-
function _class_call_check$
|
|
7833
|
+
function _class_call_check$k(instance, Constructor) {
|
|
7834
7834
|
if (!(instance instanceof Constructor)) {
|
|
7835
7835
|
throw new TypeError("Cannot call a class as a function");
|
|
7836
7836
|
}
|
|
@@ -7844,11 +7844,11 @@ function _class_call_check$i(instance, Constructor) {
|
|
|
7844
7844
|
* Used by {@link NotificationServerActions} during the `sendNotification` flow to build
|
|
7845
7845
|
* and dispatch messages to all applicable channels.
|
|
7846
7846
|
*/ var NotificationSendService = function NotificationSendService() {
|
|
7847
|
-
_class_call_check$
|
|
7847
|
+
_class_call_check$k(this, NotificationSendService);
|
|
7848
7848
|
}
|
|
7849
7849
|
;
|
|
7850
7850
|
|
|
7851
|
-
function _class_call_check$
|
|
7851
|
+
function _class_call_check$j(instance, Constructor) {
|
|
7852
7852
|
if (!(instance instanceof Constructor)) {
|
|
7853
7853
|
throw new TypeError("Cannot call a class as a function");
|
|
7854
7854
|
}
|
|
@@ -7862,7 +7862,7 @@ function _class_call_check$h(instance, Constructor) {
|
|
|
7862
7862
|
*
|
|
7863
7863
|
* @see {@link notificationTaskService} for the default implementation.
|
|
7864
7864
|
*/ var NotificationTaskService = function NotificationTaskService() {
|
|
7865
|
-
_class_call_check$
|
|
7865
|
+
_class_call_check$j(this, NotificationTaskService);
|
|
7866
7866
|
}
|
|
7867
7867
|
;
|
|
7868
7868
|
|
|
@@ -7895,12 +7895,12 @@ function _async_to_generator$h(fn) {
|
|
|
7895
7895
|
});
|
|
7896
7896
|
};
|
|
7897
7897
|
}
|
|
7898
|
-
function _class_call_check$
|
|
7898
|
+
function _class_call_check$i(instance, Constructor) {
|
|
7899
7899
|
if (!(instance instanceof Constructor)) {
|
|
7900
7900
|
throw new TypeError("Cannot call a class as a function");
|
|
7901
7901
|
}
|
|
7902
7902
|
}
|
|
7903
|
-
function _defineProperties$
|
|
7903
|
+
function _defineProperties$5(target, props) {
|
|
7904
7904
|
for(var i = 0; i < props.length; i++){
|
|
7905
7905
|
var descriptor = props[i];
|
|
7906
7906
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -7909,8 +7909,8 @@ function _defineProperties$4(target, props) {
|
|
|
7909
7909
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
7910
7910
|
}
|
|
7911
7911
|
}
|
|
7912
|
-
function _create_class$
|
|
7913
|
-
if (protoProps) _defineProperties$
|
|
7912
|
+
function _create_class$5(Constructor, protoProps, staticProps) {
|
|
7913
|
+
if (protoProps) _defineProperties$5(Constructor.prototype, protoProps);
|
|
7914
7914
|
return Constructor;
|
|
7915
7915
|
}
|
|
7916
7916
|
function _define_property$f(obj, key, value) {
|
|
@@ -8045,7 +8045,7 @@ function _ts_generator$h(thisArg, body) {
|
|
|
8045
8045
|
*
|
|
8046
8046
|
* @see MutableNotificationExpediteService is the default implementation.
|
|
8047
8047
|
*/ var NotificationExpediteService = function NotificationExpediteService() {
|
|
8048
|
-
_class_call_check$
|
|
8048
|
+
_class_call_check$i(this, NotificationExpediteService);
|
|
8049
8049
|
};
|
|
8050
8050
|
/**
|
|
8051
8051
|
* Creates a new NotificationExpediteServiceInstance with the input NotificationExpediteService.
|
|
@@ -8102,10 +8102,10 @@ function _ts_generator$h(thisArg, body) {
|
|
|
8102
8102
|
* It is best provided by provideMutableNotificationExpediteService() as a global provider.
|
|
8103
8103
|
*/ exports.MutableNotificationExpediteService = /*#__PURE__*/ function() {
|
|
8104
8104
|
function MutableNotificationExpediteService() {
|
|
8105
|
-
_class_call_check$
|
|
8105
|
+
_class_call_check$i(this, MutableNotificationExpediteService);
|
|
8106
8106
|
_define_property$f(this, "_notificationServerActions", void 0);
|
|
8107
8107
|
}
|
|
8108
|
-
_create_class$
|
|
8108
|
+
_create_class$5(MutableNotificationExpediteService, [
|
|
8109
8109
|
{
|
|
8110
8110
|
/**
|
|
8111
8111
|
* Returns the configured NotificationServerActions instance.
|
|
@@ -8192,15 +8192,15 @@ exports.MutableNotificationExpediteService = __decorate([
|
|
|
8192
8192
|
];
|
|
8193
8193
|
}
|
|
8194
8194
|
|
|
8195
|
-
function _array_like_to_array$
|
|
8195
|
+
function _array_like_to_array$a(arr, len) {
|
|
8196
8196
|
if (len == null || len > arr.length) len = arr.length;
|
|
8197
8197
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
8198
8198
|
return arr2;
|
|
8199
8199
|
}
|
|
8200
|
-
function _array_without_holes$
|
|
8201
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
8200
|
+
function _array_without_holes$7(arr) {
|
|
8201
|
+
if (Array.isArray(arr)) return _array_like_to_array$a(arr);
|
|
8202
8202
|
}
|
|
8203
|
-
function _class_call_check$
|
|
8203
|
+
function _class_call_check$h(instance, Constructor) {
|
|
8204
8204
|
if (!(instance instanceof Constructor)) {
|
|
8205
8205
|
throw new TypeError("Cannot call a class as a function");
|
|
8206
8206
|
}
|
|
@@ -8218,10 +8218,10 @@ function _define_property$e(obj, key, value) {
|
|
|
8218
8218
|
}
|
|
8219
8219
|
return obj;
|
|
8220
8220
|
}
|
|
8221
|
-
function _iterable_to_array$
|
|
8221
|
+
function _iterable_to_array$7(iter) {
|
|
8222
8222
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
8223
8223
|
}
|
|
8224
|
-
function _non_iterable_spread$
|
|
8224
|
+
function _non_iterable_spread$7() {
|
|
8225
8225
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8226
8226
|
}
|
|
8227
8227
|
function _object_spread$d(target) {
|
|
@@ -8258,16 +8258,16 @@ function _object_spread_props$c(target, source) {
|
|
|
8258
8258
|
}
|
|
8259
8259
|
return target;
|
|
8260
8260
|
}
|
|
8261
|
-
function _to_consumable_array$
|
|
8262
|
-
return _array_without_holes$
|
|
8261
|
+
function _to_consumable_array$7(arr) {
|
|
8262
|
+
return _array_without_holes$7(arr) || _iterable_to_array$7(arr) || _unsupported_iterable_to_array$a(arr) || _non_iterable_spread$7();
|
|
8263
8263
|
}
|
|
8264
|
-
function _unsupported_iterable_to_array$
|
|
8264
|
+
function _unsupported_iterable_to_array$a(o, minLen) {
|
|
8265
8265
|
if (!o) return;
|
|
8266
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
8266
|
+
if (typeof o === "string") return _array_like_to_array$a(o, minLen);
|
|
8267
8267
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
8268
8268
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
8269
8269
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
8270
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
8270
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$a(o, minLen);
|
|
8271
8271
|
}
|
|
8272
8272
|
// MARK: Provider Factories
|
|
8273
8273
|
/**
|
|
@@ -8329,14 +8329,14 @@ function notificationServerActionsContextFactory(context, notificationTemplateSe
|
|
|
8329
8329
|
return {
|
|
8330
8330
|
imports: [
|
|
8331
8331
|
config.ConfigModule
|
|
8332
|
-
].concat(_to_consumable_array$
|
|
8332
|
+
].concat(_to_consumable_array$7(dependencyModuleImport), _to_consumable_array$7(imports !== null && imports !== void 0 ? imports : [])),
|
|
8333
8333
|
exports: [
|
|
8334
8334
|
NOTIFICATION_SERVER_ACTION_CONTEXT_TOKEN,
|
|
8335
8335
|
NotificationExpediteService,
|
|
8336
8336
|
exports.NotificationTemplateService,
|
|
8337
8337
|
NotificationServerActions,
|
|
8338
8338
|
NotificationInitServerActions
|
|
8339
|
-
].concat(_to_consumable_array$
|
|
8339
|
+
].concat(_to_consumable_array$7(exports$1 !== null && exports$1 !== void 0 ? exports$1 : [])),
|
|
8340
8340
|
providers: [
|
|
8341
8341
|
{
|
|
8342
8342
|
provide: NotificationExpediteService,
|
|
@@ -8372,13 +8372,13 @@ function notificationServerActionsContextFactory(context, notificationTemplateSe
|
|
|
8372
8372
|
NOTIFICATION_INIT_SERVER_ACTIONS_CONTEXT_CONFIG_TOKEN
|
|
8373
8373
|
]
|
|
8374
8374
|
}
|
|
8375
|
-
].concat(_to_consumable_array$
|
|
8375
|
+
].concat(_to_consumable_array$7(providers !== null && providers !== void 0 ? providers : []))
|
|
8376
8376
|
};
|
|
8377
8377
|
}
|
|
8378
8378
|
/**
|
|
8379
8379
|
* Abstract module that should be extended when using appNotificationModuleMetadata.
|
|
8380
8380
|
*/ exports.AbstractAppNotificationModule = function AbstractAppNotificationModule(mutableNotificationExpediteService, actions) {
|
|
8381
|
-
_class_call_check$
|
|
8381
|
+
_class_call_check$h(this, AbstractAppNotificationModule);
|
|
8382
8382
|
mutableNotificationExpediteService.setNotificationServerActions(actions);
|
|
8383
8383
|
};
|
|
8384
8384
|
exports.AbstractAppNotificationModule = __decorate([
|
|
@@ -8389,7 +8389,7 @@ exports.AbstractAppNotificationModule = __decorate([
|
|
|
8389
8389
|
/**
|
|
8390
8390
|
* Pre-configured global provider for MutableNotificationExpediteService/NotificationExpediteService.
|
|
8391
8391
|
*/ exports.GlobalNotificationModule = function GlobalNotificationModule() {
|
|
8392
|
-
_class_call_check$
|
|
8392
|
+
_class_call_check$h(this, GlobalNotificationModule);
|
|
8393
8393
|
};
|
|
8394
8394
|
exports.GlobalNotificationModule = __decorate([
|
|
8395
8395
|
common.Global(),
|
|
@@ -8399,7 +8399,7 @@ exports.GlobalNotificationModule = __decorate([
|
|
|
8399
8399
|
})
|
|
8400
8400
|
], exports.GlobalNotificationModule);
|
|
8401
8401
|
|
|
8402
|
-
function _array_like_to_array$
|
|
8402
|
+
function _array_like_to_array$9(arr, len) {
|
|
8403
8403
|
if (len == null || len > arr.length) len = arr.length;
|
|
8404
8404
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
8405
8405
|
return arr2;
|
|
@@ -8407,8 +8407,8 @@ function _array_like_to_array$8(arr, len) {
|
|
|
8407
8407
|
function _array_with_holes$3(arr) {
|
|
8408
8408
|
if (Array.isArray(arr)) return arr;
|
|
8409
8409
|
}
|
|
8410
|
-
function _array_without_holes$
|
|
8411
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
8410
|
+
function _array_without_holes$6(arr) {
|
|
8411
|
+
if (Array.isArray(arr)) return _array_like_to_array$9(arr);
|
|
8412
8412
|
}
|
|
8413
8413
|
function asyncGeneratorStep$g(gen, resolve, reject, _next, _throw, key, arg) {
|
|
8414
8414
|
try {
|
|
@@ -8452,7 +8452,7 @@ function _define_property$d(obj, key, value) {
|
|
|
8452
8452
|
}
|
|
8453
8453
|
return obj;
|
|
8454
8454
|
}
|
|
8455
|
-
function _iterable_to_array$
|
|
8455
|
+
function _iterable_to_array$6(iter) {
|
|
8456
8456
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
8457
8457
|
}
|
|
8458
8458
|
function _iterable_to_array_limit$3(arr, i) {
|
|
@@ -8482,7 +8482,7 @@ function _iterable_to_array_limit$3(arr, i) {
|
|
|
8482
8482
|
function _non_iterable_rest$3() {
|
|
8483
8483
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8484
8484
|
}
|
|
8485
|
-
function _non_iterable_spread$
|
|
8485
|
+
function _non_iterable_spread$6() {
|
|
8486
8486
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8487
8487
|
}
|
|
8488
8488
|
function _object_spread$c(target) {
|
|
@@ -8520,18 +8520,18 @@ function _object_spread_props$b(target, source) {
|
|
|
8520
8520
|
return target;
|
|
8521
8521
|
}
|
|
8522
8522
|
function _sliced_to_array$3(arr, i) {
|
|
8523
|
-
return _array_with_holes$3(arr) || _iterable_to_array_limit$3(arr, i) || _unsupported_iterable_to_array$
|
|
8523
|
+
return _array_with_holes$3(arr) || _iterable_to_array_limit$3(arr, i) || _unsupported_iterable_to_array$9(arr, i) || _non_iterable_rest$3();
|
|
8524
8524
|
}
|
|
8525
|
-
function _to_consumable_array$
|
|
8526
|
-
return _array_without_holes$
|
|
8525
|
+
function _to_consumable_array$6(arr) {
|
|
8526
|
+
return _array_without_holes$6(arr) || _iterable_to_array$6(arr) || _unsupported_iterable_to_array$9(arr) || _non_iterable_spread$6();
|
|
8527
8527
|
}
|
|
8528
|
-
function _unsupported_iterable_to_array$
|
|
8528
|
+
function _unsupported_iterable_to_array$9(o, minLen) {
|
|
8529
8529
|
if (!o) return;
|
|
8530
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
8530
|
+
if (typeof o === "string") return _array_like_to_array$9(o, minLen);
|
|
8531
8531
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
8532
8532
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
8533
8533
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
8534
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
8534
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$9(o, minLen);
|
|
8535
8535
|
}
|
|
8536
8536
|
function _ts_generator$g(thisArg, body) {
|
|
8537
8537
|
var f, y, t, _ = {
|
|
@@ -8723,7 +8723,7 @@ function _ts_generator$g(thisArg, body) {
|
|
|
8723
8723
|
});
|
|
8724
8724
|
if (messagesToSend.length > 0) {
|
|
8725
8725
|
// add the new items to existing n, then keep the last 1000
|
|
8726
|
-
sortedN = _to_consumable_array$
|
|
8726
|
+
sortedN = _to_consumable_array$6(existingMessages).concat(_to_consumable_array$6(messagesToSend.map(function(x) {
|
|
8727
8727
|
var message = '';
|
|
8728
8728
|
if (x.content.openingMessage) {
|
|
8729
8729
|
message = x.content.openingMessage;
|
|
@@ -9246,15 +9246,15 @@ function _ts_generator$e(thisArg, body) {
|
|
|
9246
9246
|
};
|
|
9247
9247
|
}
|
|
9248
9248
|
|
|
9249
|
-
function _array_like_to_array$
|
|
9249
|
+
function _array_like_to_array$8(arr, len) {
|
|
9250
9250
|
if (len == null || len > arr.length) len = arr.length;
|
|
9251
9251
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
9252
9252
|
return arr2;
|
|
9253
9253
|
}
|
|
9254
|
-
function _array_without_holes$
|
|
9255
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
9254
|
+
function _array_without_holes$5(arr) {
|
|
9255
|
+
if (Array.isArray(arr)) return _array_like_to_array$8(arr);
|
|
9256
9256
|
}
|
|
9257
|
-
function _assert_this_initialized$
|
|
9257
|
+
function _assert_this_initialized$2(self) {
|
|
9258
9258
|
if (self === void 0) {
|
|
9259
9259
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
9260
9260
|
}
|
|
@@ -9289,11 +9289,11 @@ function _async_to_generator$d(fn) {
|
|
|
9289
9289
|
});
|
|
9290
9290
|
};
|
|
9291
9291
|
}
|
|
9292
|
-
function _call_super$
|
|
9293
|
-
derived = _get_prototype_of$
|
|
9294
|
-
return _possible_constructor_return$
|
|
9292
|
+
function _call_super$2(_this, derived, args) {
|
|
9293
|
+
derived = _get_prototype_of$2(derived);
|
|
9294
|
+
return _possible_constructor_return$2(_this, _is_native_reflect_construct$2() ? Reflect.construct(derived, args || [], _get_prototype_of$2(_this).constructor) : derived.apply(_this, args));
|
|
9295
9295
|
}
|
|
9296
|
-
function _class_call_check$
|
|
9296
|
+
function _class_call_check$g(instance, Constructor) {
|
|
9297
9297
|
if (!(instance instanceof Constructor)) {
|
|
9298
9298
|
throw new TypeError("Cannot call a class as a function");
|
|
9299
9299
|
}
|
|
@@ -9311,13 +9311,13 @@ function _define_property$c(obj, key, value) {
|
|
|
9311
9311
|
}
|
|
9312
9312
|
return obj;
|
|
9313
9313
|
}
|
|
9314
|
-
function _get_prototype_of$
|
|
9315
|
-
_get_prototype_of$
|
|
9314
|
+
function _get_prototype_of$2(o) {
|
|
9315
|
+
_get_prototype_of$2 = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
9316
9316
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
9317
9317
|
};
|
|
9318
|
-
return _get_prototype_of$
|
|
9318
|
+
return _get_prototype_of$2(o);
|
|
9319
9319
|
}
|
|
9320
|
-
function _inherits$
|
|
9320
|
+
function _inherits$2(subClass, superClass) {
|
|
9321
9321
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
9322
9322
|
throw new TypeError("Super expression must either be null or a function");
|
|
9323
9323
|
}
|
|
@@ -9328,7 +9328,7 @@ function _inherits$1(subClass, superClass) {
|
|
|
9328
9328
|
configurable: true
|
|
9329
9329
|
}
|
|
9330
9330
|
});
|
|
9331
|
-
if (superClass) _set_prototype_of$
|
|
9331
|
+
if (superClass) _set_prototype_of$2(subClass, superClass);
|
|
9332
9332
|
}
|
|
9333
9333
|
function _instanceof$2(left, right) {
|
|
9334
9334
|
"@swc/helpers - instanceof";
|
|
@@ -9338,10 +9338,10 @@ function _instanceof$2(left, right) {
|
|
|
9338
9338
|
return left instanceof right;
|
|
9339
9339
|
}
|
|
9340
9340
|
}
|
|
9341
|
-
function _iterable_to_array$
|
|
9341
|
+
function _iterable_to_array$5(iter) {
|
|
9342
9342
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
9343
9343
|
}
|
|
9344
|
-
function _non_iterable_spread$
|
|
9344
|
+
function _non_iterable_spread$5() {
|
|
9345
9345
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9346
9346
|
}
|
|
9347
9347
|
function _object_spread$b(target) {
|
|
@@ -9378,39 +9378,39 @@ function _object_spread_props$a(target, source) {
|
|
|
9378
9378
|
}
|
|
9379
9379
|
return target;
|
|
9380
9380
|
}
|
|
9381
|
-
function _possible_constructor_return$
|
|
9382
|
-
if (call && (_type_of$
|
|
9381
|
+
function _possible_constructor_return$2(self, call) {
|
|
9382
|
+
if (call && (_type_of$4(call) === "object" || typeof call === "function")) {
|
|
9383
9383
|
return call;
|
|
9384
9384
|
}
|
|
9385
|
-
return _assert_this_initialized$
|
|
9385
|
+
return _assert_this_initialized$2(self);
|
|
9386
9386
|
}
|
|
9387
|
-
function _set_prototype_of$
|
|
9388
|
-
_set_prototype_of$
|
|
9387
|
+
function _set_prototype_of$2(o, p) {
|
|
9388
|
+
_set_prototype_of$2 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
9389
9389
|
o.__proto__ = p;
|
|
9390
9390
|
return o;
|
|
9391
9391
|
};
|
|
9392
|
-
return _set_prototype_of$
|
|
9392
|
+
return _set_prototype_of$2(o, p);
|
|
9393
9393
|
}
|
|
9394
|
-
function _to_consumable_array$
|
|
9395
|
-
return _array_without_holes$
|
|
9394
|
+
function _to_consumable_array$5(arr) {
|
|
9395
|
+
return _array_without_holes$5(arr) || _iterable_to_array$5(arr) || _unsupported_iterable_to_array$8(arr) || _non_iterable_spread$5();
|
|
9396
9396
|
}
|
|
9397
|
-
function _type_of$
|
|
9397
|
+
function _type_of$4(obj) {
|
|
9398
9398
|
"@swc/helpers - typeof";
|
|
9399
9399
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
9400
9400
|
}
|
|
9401
|
-
function _unsupported_iterable_to_array$
|
|
9401
|
+
function _unsupported_iterable_to_array$8(o, minLen) {
|
|
9402
9402
|
if (!o) return;
|
|
9403
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
9403
|
+
if (typeof o === "string") return _array_like_to_array$8(o, minLen);
|
|
9404
9404
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
9405
9405
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
9406
9406
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
9407
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
9407
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$8(o, minLen);
|
|
9408
9408
|
}
|
|
9409
|
-
function _is_native_reflect_construct$
|
|
9409
|
+
function _is_native_reflect_construct$2() {
|
|
9410
9410
|
try {
|
|
9411
9411
|
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
9412
9412
|
} catch (_) {}
|
|
9413
|
-
return (_is_native_reflect_construct$
|
|
9413
|
+
return (_is_native_reflect_construct$2 = function() {
|
|
9414
9414
|
return !!result;
|
|
9415
9415
|
})();
|
|
9416
9416
|
}
|
|
@@ -9617,7 +9617,7 @@ function _ts_generator$d(thisArg, body) {
|
|
|
9617
9617
|
break;
|
|
9618
9618
|
default:
|
|
9619
9619
|
{
|
|
9620
|
-
sfps = util.unique(_to_consumable_array$
|
|
9620
|
+
sfps = util.unique(_to_consumable_array$5(removeFromCompletionsArrayWithTaskResult(sfps, subtaskResult)).concat(_to_consumable_array$5(util.asArray(subtaskCompletion))));
|
|
9621
9621
|
completedSubtasksSet1 = new Set(sfps);
|
|
9622
9622
|
incompleteSubtasks = allKnownSubtasks.filter(function(x) {
|
|
9623
9623
|
return !completedSubtasksSet1.has(x);
|
|
@@ -9942,10 +9942,10 @@ function _ts_generator$d(thisArg, body) {
|
|
|
9942
9942
|
*
|
|
9943
9943
|
* This is useful in cases where the underlying models or data that the subtask rely on are deleted (and those models were also required for cleanup) so the task can be marked as complete without attempting cleanup.
|
|
9944
9944
|
*/ var NotificationTaskSubTaskMissingRequiredDataTermination = /*#__PURE__*/ function(BaseError) {
|
|
9945
|
-
_inherits$
|
|
9945
|
+
_inherits$2(NotificationTaskSubTaskMissingRequiredDataTermination, BaseError);
|
|
9946
9946
|
function NotificationTaskSubTaskMissingRequiredDataTermination() {
|
|
9947
|
-
_class_call_check$
|
|
9948
|
-
return _call_super$
|
|
9947
|
+
_class_call_check$g(this, NotificationTaskSubTaskMissingRequiredDataTermination);
|
|
9948
|
+
return _call_super$2(this, NotificationTaskSubTaskMissingRequiredDataTermination, arguments);
|
|
9949
9949
|
}
|
|
9950
9950
|
return NotificationTaskSubTaskMissingRequiredDataTermination;
|
|
9951
9951
|
}(makeError.BaseError);
|
|
@@ -10390,7 +10390,7 @@ function encodeImage(input) {
|
|
|
10390
10390
|
})();
|
|
10391
10391
|
}
|
|
10392
10392
|
|
|
10393
|
-
function _array_like_to_array$
|
|
10393
|
+
function _array_like_to_array$7(arr, len) {
|
|
10394
10394
|
if (len == null || len > arr.length) len = arr.length;
|
|
10395
10395
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
10396
10396
|
return arr2;
|
|
@@ -10463,15 +10463,15 @@ function _non_iterable_rest$2() {
|
|
|
10463
10463
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10464
10464
|
}
|
|
10465
10465
|
function _sliced_to_array$2(arr, i) {
|
|
10466
|
-
return _array_with_holes$2(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$
|
|
10466
|
+
return _array_with_holes$2(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$7(arr, i) || _non_iterable_rest$2();
|
|
10467
10467
|
}
|
|
10468
|
-
function _unsupported_iterable_to_array$
|
|
10468
|
+
function _unsupported_iterable_to_array$7(o, minLen) {
|
|
10469
10469
|
if (!o) return;
|
|
10470
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
10470
|
+
if (typeof o === "string") return _array_like_to_array$7(o, minLen);
|
|
10471
10471
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
10472
10472
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
10473
10473
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
10474
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
10474
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$7(o, minLen);
|
|
10475
10475
|
}
|
|
10476
10476
|
function _ts_generator$b(thisArg, body) {
|
|
10477
10477
|
var f, y, t, _ = {
|
|
@@ -11303,7 +11303,7 @@ function replaceImageStream(input) {
|
|
|
11303
11303
|
});
|
|
11304
11304
|
}
|
|
11305
11305
|
|
|
11306
|
-
function _array_like_to_array$
|
|
11306
|
+
function _array_like_to_array$6(arr, len) {
|
|
11307
11307
|
if (len == null || len > arr.length) len = arr.length;
|
|
11308
11308
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
11309
11309
|
return arr2;
|
|
@@ -11340,7 +11340,7 @@ function _async_to_generator$a(fn) {
|
|
|
11340
11340
|
});
|
|
11341
11341
|
};
|
|
11342
11342
|
}
|
|
11343
|
-
function _class_call_check$
|
|
11343
|
+
function _class_call_check$f(instance, Constructor) {
|
|
11344
11344
|
if (!(instance instanceof Constructor)) {
|
|
11345
11345
|
throw new TypeError("Cannot call a class as a function");
|
|
11346
11346
|
}
|
|
@@ -11428,15 +11428,15 @@ function _object_spread_props$9(target, source) {
|
|
|
11428
11428
|
return target;
|
|
11429
11429
|
}
|
|
11430
11430
|
function _sliced_to_array$1(arr, i) {
|
|
11431
|
-
return _array_with_holes$1(arr) || _iterable_to_array_limit$1(arr, i) || _unsupported_iterable_to_array$
|
|
11431
|
+
return _array_with_holes$1(arr) || _iterable_to_array_limit$1(arr, i) || _unsupported_iterable_to_array$6(arr, i) || _non_iterable_rest$1();
|
|
11432
11432
|
}
|
|
11433
|
-
function _unsupported_iterable_to_array$
|
|
11433
|
+
function _unsupported_iterable_to_array$6(o, minLen) {
|
|
11434
11434
|
if (!o) return;
|
|
11435
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
11435
|
+
if (typeof o === "string") return _array_like_to_array$6(o, minLen);
|
|
11436
11436
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
11437
11437
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
11438
11438
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
11439
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
11439
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$6(o, minLen);
|
|
11440
11440
|
}
|
|
11441
11441
|
function _ts_generator$a(thisArg, body) {
|
|
11442
11442
|
var f, y, t, _ = {
|
|
@@ -11561,7 +11561,7 @@ function _ts_generator$a(thisArg, body) {
|
|
|
11561
11561
|
*
|
|
11562
11562
|
* @see {@link storageFileServerActions} for the concrete implementation factory.
|
|
11563
11563
|
*/ var StorageFileServerActions = function StorageFileServerActions() {
|
|
11564
|
-
_class_call_check$
|
|
11564
|
+
_class_call_check$f(this, StorageFileServerActions);
|
|
11565
11565
|
};
|
|
11566
11566
|
/**
|
|
11567
11567
|
* Creates a concrete {@link StorageFileServerActions} implementation by wiring each action
|
|
@@ -14140,7 +14140,7 @@ function _async_to_generator$9(fn) {
|
|
|
14140
14140
|
});
|
|
14141
14141
|
};
|
|
14142
14142
|
}
|
|
14143
|
-
function _class_call_check$
|
|
14143
|
+
function _class_call_check$e(instance, Constructor) {
|
|
14144
14144
|
if (!(instance instanceof Constructor)) {
|
|
14145
14145
|
throw new TypeError("Cannot call a class as a function");
|
|
14146
14146
|
}
|
|
@@ -14305,7 +14305,7 @@ var MAKE_TEMPLATE_FOR_STORAGEFILE_RELATED_MODEL_INITIALIZATION_FUNCTION_DELETE_R
|
|
|
14305
14305
|
*
|
|
14306
14306
|
* @see {@link storageFileInitServerActions} for the concrete implementation factory.
|
|
14307
14307
|
*/ var StorageFileInitServerActions = function StorageFileInitServerActions() {
|
|
14308
|
-
_class_call_check$
|
|
14308
|
+
_class_call_check$e(this, StorageFileInitServerActions);
|
|
14309
14309
|
};
|
|
14310
14310
|
/**
|
|
14311
14311
|
* Creates a concrete {@link StorageFileInitServerActions} implementation by wiring each
|
|
@@ -14646,13 +14646,13 @@ var MAKE_TEMPLATE_FOR_STORAGEFILE_RELATED_MODEL_INITIALIZATION_FUNCTION_DELETE_R
|
|
|
14646
14646
|
});
|
|
14647
14647
|
}
|
|
14648
14648
|
|
|
14649
|
-
function _array_like_to_array$
|
|
14649
|
+
function _array_like_to_array$5(arr, len) {
|
|
14650
14650
|
if (len == null || len > arr.length) len = arr.length;
|
|
14651
14651
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
14652
14652
|
return arr2;
|
|
14653
14653
|
}
|
|
14654
|
-
function _array_without_holes$
|
|
14655
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
14654
|
+
function _array_without_holes$4(arr) {
|
|
14655
|
+
if (Array.isArray(arr)) return _array_like_to_array$5(arr);
|
|
14656
14656
|
}
|
|
14657
14657
|
function _define_property$9(obj, key, value) {
|
|
14658
14658
|
if (key in obj) {
|
|
@@ -14667,10 +14667,10 @@ function _define_property$9(obj, key, value) {
|
|
|
14667
14667
|
}
|
|
14668
14668
|
return obj;
|
|
14669
14669
|
}
|
|
14670
|
-
function _iterable_to_array$
|
|
14670
|
+
function _iterable_to_array$4(iter) {
|
|
14671
14671
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
14672
14672
|
}
|
|
14673
|
-
function _non_iterable_spread$
|
|
14673
|
+
function _non_iterable_spread$4() {
|
|
14674
14674
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14675
14675
|
}
|
|
14676
14676
|
function _object_spread$8(target) {
|
|
@@ -14707,20 +14707,20 @@ function _object_spread_props$7(target, source) {
|
|
|
14707
14707
|
}
|
|
14708
14708
|
return target;
|
|
14709
14709
|
}
|
|
14710
|
-
function _to_consumable_array$
|
|
14711
|
-
return _array_without_holes$
|
|
14710
|
+
function _to_consumable_array$4(arr) {
|
|
14711
|
+
return _array_without_holes$4(arr) || _iterable_to_array$4(arr) || _unsupported_iterable_to_array$5(arr) || _non_iterable_spread$4();
|
|
14712
14712
|
}
|
|
14713
|
-
function _type_of$
|
|
14713
|
+
function _type_of$3(obj) {
|
|
14714
14714
|
"@swc/helpers - typeof";
|
|
14715
14715
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
14716
14716
|
}
|
|
14717
|
-
function _unsupported_iterable_to_array$
|
|
14717
|
+
function _unsupported_iterable_to_array$5(o, minLen) {
|
|
14718
14718
|
if (!o) return;
|
|
14719
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
14719
|
+
if (typeof o === "string") return _array_like_to_array$5(o, minLen);
|
|
14720
14720
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
14721
14721
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
14722
14722
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
14723
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
14723
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$5(o, minLen);
|
|
14724
14724
|
}
|
|
14725
14725
|
/**
|
|
14726
14726
|
* Builds the {@link McpToolDetailsBuilder} that customizes the MCP tool description and
|
|
@@ -14767,18 +14767,18 @@ function buildUploadPolicyPurposeDescription(policies) {
|
|
|
14767
14767
|
}
|
|
14768
14768
|
function enrichSignedUploadUrlInputSchema(defaultInputSchema, purposeKeys) {
|
|
14769
14769
|
var result = defaultInputSchema !== null && defaultInputSchema !== void 0 ? defaultInputSchema : undefined;
|
|
14770
|
-
if (defaultInputSchema != null && (typeof defaultInputSchema === "undefined" ? "undefined" : _type_of$
|
|
14770
|
+
if (defaultInputSchema != null && (typeof defaultInputSchema === "undefined" ? "undefined" : _type_of$3(defaultInputSchema)) === 'object') {
|
|
14771
14771
|
var _base_properties;
|
|
14772
14772
|
var base = defaultInputSchema;
|
|
14773
14773
|
var purposeProperty = (_base_properties = base.properties) === null || _base_properties === void 0 ? void 0 : _base_properties.purpose;
|
|
14774
|
-
if (purposeProperty != null && (typeof purposeProperty === "undefined" ? "undefined" : _type_of$
|
|
14774
|
+
if (purposeProperty != null && (typeof purposeProperty === "undefined" ? "undefined" : _type_of$3(purposeProperty)) === 'object') {
|
|
14775
14775
|
var quotedPurposes = purposeKeys.map(function(purpose) {
|
|
14776
14776
|
return '"'.concat(purpose, '"');
|
|
14777
14777
|
}).join(', ');
|
|
14778
14778
|
result = _object_spread_props$7(_object_spread$8({}, base), {
|
|
14779
14779
|
properties: _object_spread_props$7(_object_spread$8({}, base.properties), {
|
|
14780
14780
|
purpose: _object_spread_props$7(_object_spread$8({}, purposeProperty), {
|
|
14781
|
-
enum: _to_consumable_array$
|
|
14781
|
+
enum: _to_consumable_array$4(purposeKeys),
|
|
14782
14782
|
description: "One of: ".concat(quotedPurposes, ".")
|
|
14783
14783
|
})
|
|
14784
14784
|
})
|
|
@@ -14788,7 +14788,7 @@ function enrichSignedUploadUrlInputSchema(defaultInputSchema, purposeKeys) {
|
|
|
14788
14788
|
return result;
|
|
14789
14789
|
}
|
|
14790
14790
|
|
|
14791
|
-
function _class_call_check$
|
|
14791
|
+
function _class_call_check$d(instance, Constructor) {
|
|
14792
14792
|
if (!(instance instanceof Constructor)) {
|
|
14793
14793
|
throw new TypeError("Cannot call a class as a function");
|
|
14794
14794
|
}
|
|
@@ -14801,17 +14801,17 @@ function _class_call_check$b(instance, Constructor) {
|
|
|
14801
14801
|
*
|
|
14802
14802
|
* @see {@link storageFileInitializeFromUploadService} for the default implementation.
|
|
14803
14803
|
*/ var StorageFileInitializeFromUploadService = function StorageFileInitializeFromUploadService() {
|
|
14804
|
-
_class_call_check$
|
|
14804
|
+
_class_call_check$d(this, StorageFileInitializeFromUploadService);
|
|
14805
14805
|
}
|
|
14806
14806
|
;
|
|
14807
14807
|
|
|
14808
|
-
function _array_like_to_array$
|
|
14808
|
+
function _array_like_to_array$4(arr, len) {
|
|
14809
14809
|
if (len == null || len > arr.length) len = arr.length;
|
|
14810
14810
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
14811
14811
|
return arr2;
|
|
14812
14812
|
}
|
|
14813
|
-
function _array_without_holes$
|
|
14814
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
14813
|
+
function _array_without_holes$3(arr) {
|
|
14814
|
+
if (Array.isArray(arr)) return _array_like_to_array$4(arr);
|
|
14815
14815
|
}
|
|
14816
14816
|
function _define_property$8(obj, key, value) {
|
|
14817
14817
|
if (key in obj) {
|
|
@@ -14826,10 +14826,10 @@ function _define_property$8(obj, key, value) {
|
|
|
14826
14826
|
}
|
|
14827
14827
|
return obj;
|
|
14828
14828
|
}
|
|
14829
|
-
function _iterable_to_array$
|
|
14829
|
+
function _iterable_to_array$3(iter) {
|
|
14830
14830
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
14831
14831
|
}
|
|
14832
|
-
function _non_iterable_spread$
|
|
14832
|
+
function _non_iterable_spread$3() {
|
|
14833
14833
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14834
14834
|
}
|
|
14835
14835
|
function _object_spread$7(target) {
|
|
@@ -14866,16 +14866,16 @@ function _object_spread_props$6(target, source) {
|
|
|
14866
14866
|
}
|
|
14867
14867
|
return target;
|
|
14868
14868
|
}
|
|
14869
|
-
function _to_consumable_array$
|
|
14870
|
-
return _array_without_holes$
|
|
14869
|
+
function _to_consumable_array$3(arr) {
|
|
14870
|
+
return _array_without_holes$3(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$4(arr) || _non_iterable_spread$3();
|
|
14871
14871
|
}
|
|
14872
|
-
function _unsupported_iterable_to_array$
|
|
14872
|
+
function _unsupported_iterable_to_array$4(o, minLen) {
|
|
14873
14873
|
if (!o) return;
|
|
14874
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
14874
|
+
if (typeof o === "string") return _array_like_to_array$4(o, minLen);
|
|
14875
14875
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
14876
14876
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
14877
14877
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
14878
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
14878
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$4(o, minLen);
|
|
14879
14879
|
}
|
|
14880
14880
|
/**
|
|
14881
14881
|
* NestJS injection token for the per-purpose `StorageFilePurposeUploadPolicy[]`
|
|
@@ -14937,12 +14937,12 @@ function _unsupported_iterable_to_array$3(o, minLen) {
|
|
|
14937
14937
|
return {
|
|
14938
14938
|
imports: [
|
|
14939
14939
|
config.ConfigModule
|
|
14940
|
-
].concat(_to_consumable_array$
|
|
14940
|
+
].concat(_to_consumable_array$3(dependencyModuleImport), _to_consumable_array$3(imports !== null && imports !== void 0 ? imports : [])),
|
|
14941
14941
|
exports: [
|
|
14942
14942
|
STORAGE_FILE_SERVER_ACTION_CONTEXT_TOKEN,
|
|
14943
14943
|
StorageFileServerActions,
|
|
14944
14944
|
StorageFileInitServerActions
|
|
14945
|
-
].concat(_to_consumable_array$
|
|
14945
|
+
].concat(_to_consumable_array$3(exports !== null && exports !== void 0 ? exports : [])),
|
|
14946
14946
|
providers: [
|
|
14947
14947
|
{
|
|
14948
14948
|
provide: STORAGE_FILE_SIGNED_UPLOAD_POLICIES_TOKEN,
|
|
@@ -14972,7 +14972,7 @@ function _unsupported_iterable_to_array$3(o, minLen) {
|
|
|
14972
14972
|
STORAGE_FILE_INIT_SERVER_ACTIONS_CONTEXT_CONFIG_TOKEN
|
|
14973
14973
|
]
|
|
14974
14974
|
}
|
|
14975
|
-
].concat(_to_consumable_array$
|
|
14975
|
+
].concat(_to_consumable_array$3(providers !== null && providers !== void 0 ? providers : []))
|
|
14976
14976
|
};
|
|
14977
14977
|
}
|
|
14978
14978
|
|
|
@@ -15188,13 +15188,13 @@ function _ts_generator$8(thisArg, body) {
|
|
|
15188
15188
|
return updateTemplate;
|
|
15189
15189
|
}
|
|
15190
15190
|
|
|
15191
|
-
function _array_like_to_array$
|
|
15191
|
+
function _array_like_to_array$3(arr, len) {
|
|
15192
15192
|
if (len == null || len > arr.length) len = arr.length;
|
|
15193
15193
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
15194
15194
|
return arr2;
|
|
15195
15195
|
}
|
|
15196
|
-
function _array_without_holes$
|
|
15197
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
15196
|
+
function _array_without_holes$2(arr) {
|
|
15197
|
+
if (Array.isArray(arr)) return _array_like_to_array$3(arr);
|
|
15198
15198
|
}
|
|
15199
15199
|
function asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, key, arg) {
|
|
15200
15200
|
try {
|
|
@@ -15238,10 +15238,10 @@ function _define_property$7(obj, key, value) {
|
|
|
15238
15238
|
}
|
|
15239
15239
|
return obj;
|
|
15240
15240
|
}
|
|
15241
|
-
function _iterable_to_array$
|
|
15241
|
+
function _iterable_to_array$2(iter) {
|
|
15242
15242
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
15243
15243
|
}
|
|
15244
|
-
function _non_iterable_spread$
|
|
15244
|
+
function _non_iterable_spread$2() {
|
|
15245
15245
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
15246
15246
|
}
|
|
15247
15247
|
function _object_spread$6(target) {
|
|
@@ -15278,16 +15278,16 @@ function _object_spread_props$5(target, source) {
|
|
|
15278
15278
|
}
|
|
15279
15279
|
return target;
|
|
15280
15280
|
}
|
|
15281
|
-
function _to_consumable_array$
|
|
15282
|
-
return _array_without_holes$
|
|
15281
|
+
function _to_consumable_array$2(arr) {
|
|
15282
|
+
return _array_without_holes$2(arr) || _iterable_to_array$2(arr) || _unsupported_iterable_to_array$3(arr) || _non_iterable_spread$2();
|
|
15283
15283
|
}
|
|
15284
|
-
function _unsupported_iterable_to_array$
|
|
15284
|
+
function _unsupported_iterable_to_array$3(o, minLen) {
|
|
15285
15285
|
if (!o) return;
|
|
15286
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
15286
|
+
if (typeof o === "string") return _array_like_to_array$3(o, minLen);
|
|
15287
15287
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
15288
15288
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
15289
15289
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
15290
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
15290
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$3(o, minLen);
|
|
15291
15291
|
}
|
|
15292
15292
|
function _ts_generator$7(thisArg, body) {
|
|
15293
15293
|
var f, y, t, _ = {
|
|
@@ -15409,7 +15409,7 @@ var storageFileProcessingNotificationTaskHandlerDefaultCleanup = function storag
|
|
|
15409
15409
|
var storageFileDocumentAccessor = storageFileFirestoreCollections.storageFileCollection.documentAccessor();
|
|
15410
15410
|
var makeFileDetailsAccessor = firebase.storedFileReaderFactory();
|
|
15411
15411
|
var defaultCleanup = storageFileProcessingNotificationTaskHandlerDefaultCleanup;
|
|
15412
|
-
var processors = _to_consumable_array$
|
|
15412
|
+
var processors = _to_consumable_array$2(inputProcessors);
|
|
15413
15413
|
if (allStorageFileGroupProcessorConfig !== false) {
|
|
15414
15414
|
var storageFileGroupProcessors = allStorageFileGroupStorageFileProcessingPurposeSubtaskProcessors(_object_spread_props$5(_object_spread$6({}, allStorageFileGroupProcessorConfig), {
|
|
15415
15415
|
storageFileFirestoreCollections: storageFileFirestoreCollections,
|
|
@@ -16006,7 +16006,7 @@ function _object_spread_props$4(target, source) {
|
|
|
16006
16006
|
}
|
|
16007
16007
|
return target;
|
|
16008
16008
|
}
|
|
16009
|
-
function _type_of$
|
|
16009
|
+
function _type_of$2(obj) {
|
|
16010
16010
|
"@swc/helpers - typeof";
|
|
16011
16011
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
16012
16012
|
}
|
|
@@ -16278,7 +16278,7 @@ function _ts_generator$6(thisArg, body) {
|
|
|
16278
16278
|
createdFilePath = firebase.copyStoragePath(createStorageFileResult.storageFile);
|
|
16279
16279
|
storageFileDocument = createStorageFileResult.storageFileDocument;
|
|
16280
16280
|
if (flagPreviousForDeleteResult) {
|
|
16281
|
-
if ((typeof flagPreviousForDeleteResult === "undefined" ? "undefined" : _type_of$
|
|
16281
|
+
if ((typeof flagPreviousForDeleteResult === "undefined" ? "undefined" : _type_of$2(flagPreviousForDeleteResult)) === 'object') {
|
|
16282
16282
|
flagPreviousForDelete = flagPreviousForDeleteResult;
|
|
16283
16283
|
} else {
|
|
16284
16284
|
_createStorageFileResult_storageFile = createStorageFileResult.storageFile, p = _createStorageFileResult_storageFile.p, pg = _createStorageFileResult_storageFile.pg, u = _createStorageFileResult_storageFile.u;
|
|
@@ -16414,6 +16414,255 @@ function _ts_generator$6(thisArg, body) {
|
|
|
16414
16414
|
};
|
|
16415
16415
|
}
|
|
16416
16416
|
|
|
16417
|
+
function _assert_this_initialized$1(self) {
|
|
16418
|
+
if (self === void 0) {
|
|
16419
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
16420
|
+
}
|
|
16421
|
+
return self;
|
|
16422
|
+
}
|
|
16423
|
+
function _call_super$1(_this, derived, args) {
|
|
16424
|
+
derived = _get_prototype_of$1(derived);
|
|
16425
|
+
return _possible_constructor_return$1(_this, _is_native_reflect_construct$1() ? Reflect.construct(derived, args || [], _get_prototype_of$1(_this).constructor) : derived.apply(_this, args));
|
|
16426
|
+
}
|
|
16427
|
+
function _class_call_check$c(instance, Constructor) {
|
|
16428
|
+
if (!(instance instanceof Constructor)) {
|
|
16429
|
+
throw new TypeError("Cannot call a class as a function");
|
|
16430
|
+
}
|
|
16431
|
+
}
|
|
16432
|
+
function _defineProperties$4(target, props) {
|
|
16433
|
+
for(var i = 0; i < props.length; i++){
|
|
16434
|
+
var descriptor = props[i];
|
|
16435
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
16436
|
+
descriptor.configurable = true;
|
|
16437
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
16438
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
16439
|
+
}
|
|
16440
|
+
}
|
|
16441
|
+
function _create_class$4(Constructor, protoProps, staticProps) {
|
|
16442
|
+
if (protoProps) _defineProperties$4(Constructor.prototype, protoProps);
|
|
16443
|
+
return Constructor;
|
|
16444
|
+
}
|
|
16445
|
+
function _get_prototype_of$1(o) {
|
|
16446
|
+
_get_prototype_of$1 = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
16447
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
16448
|
+
};
|
|
16449
|
+
return _get_prototype_of$1(o);
|
|
16450
|
+
}
|
|
16451
|
+
function _inherits$1(subClass, superClass) {
|
|
16452
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
16453
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
16454
|
+
}
|
|
16455
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
16456
|
+
constructor: {
|
|
16457
|
+
value: subClass,
|
|
16458
|
+
writable: true,
|
|
16459
|
+
configurable: true
|
|
16460
|
+
}
|
|
16461
|
+
});
|
|
16462
|
+
if (superClass) _set_prototype_of$1(subClass, superClass);
|
|
16463
|
+
}
|
|
16464
|
+
function _possible_constructor_return$1(self, call) {
|
|
16465
|
+
if (call && (_type_of$1(call) === "object" || typeof call === "function")) {
|
|
16466
|
+
return call;
|
|
16467
|
+
}
|
|
16468
|
+
return _assert_this_initialized$1(self);
|
|
16469
|
+
}
|
|
16470
|
+
function _set_prototype_of$1(o, p) {
|
|
16471
|
+
_set_prototype_of$1 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
16472
|
+
o.__proto__ = p;
|
|
16473
|
+
return o;
|
|
16474
|
+
};
|
|
16475
|
+
return _set_prototype_of$1(o, p);
|
|
16476
|
+
}
|
|
16477
|
+
function _type_of$1(obj) {
|
|
16478
|
+
"@swc/helpers - typeof";
|
|
16479
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
16480
|
+
}
|
|
16481
|
+
function _is_native_reflect_construct$1() {
|
|
16482
|
+
try {
|
|
16483
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
16484
|
+
} catch (_) {}
|
|
16485
|
+
return (_is_native_reflect_construct$1 = function() {
|
|
16486
|
+
return !!result;
|
|
16487
|
+
})();
|
|
16488
|
+
}
|
|
16489
|
+
// MARK: Collections
|
|
16490
|
+
/**
|
|
16491
|
+
* Provides access to the {@link SystemStatePrivate} collection.
|
|
16492
|
+
*
|
|
16493
|
+
* Provided ONLY by a server module. This is deliberately never declared on an app's shared
|
|
16494
|
+
* `FirestoreCollections` class: `provideAppFirestoreCollections()` hard-codes a
|
|
16495
|
+
* `(context: FirestoreContext) => T` factory, which cannot carry the encryption secrets a private
|
|
16496
|
+
* converter needs — so the private collection structurally cannot leak into the client-shared
|
|
16497
|
+
* collection set.
|
|
16498
|
+
*/ var SystemStatePrivateFirestoreCollections = function SystemStatePrivateFirestoreCollections() {
|
|
16499
|
+
_class_call_check$c(this, SystemStatePrivateFirestoreCollections);
|
|
16500
|
+
};
|
|
16501
|
+
// MARK: Identity
|
|
16502
|
+
/**
|
|
16503
|
+
* Firestore model identity for {@link SystemStatePrivate} documents.
|
|
16504
|
+
*
|
|
16505
|
+
* The server-only counterpart of `systemStateIdentity` from `@dereekb/firebase`. Same document
|
|
16506
|
+
* shape, same "document id is the type identifier" singleton convention — but a separate `sysp`
|
|
16507
|
+
* collection, so a secret-bearing document is never reachable through the client-shared SystemState
|
|
16508
|
+
* collection or the generic admin model service registered against it.
|
|
16509
|
+
*
|
|
16510
|
+
* This is a server-side only model. It has no provisions for client-side access, and deliberately
|
|
16511
|
+
* has NO `firestore.rules` match block — the implicit default-deny is what denies every client, and
|
|
16512
|
+
* a block here would only create an opportunity to grant access by accident.
|
|
16513
|
+
*/ var systemStatePrivateIdentity = firebase.firestoreModelIdentity('systemStatePrivate', 'sysp');
|
|
16514
|
+
var SystemStatePrivateDocument = /*#__PURE__*/ function(AbstractFirestoreDocument) {
|
|
16515
|
+
_inherits$1(SystemStatePrivateDocument, AbstractFirestoreDocument);
|
|
16516
|
+
function SystemStatePrivateDocument() {
|
|
16517
|
+
_class_call_check$c(this, SystemStatePrivateDocument);
|
|
16518
|
+
return _call_super$1(this, SystemStatePrivateDocument, arguments);
|
|
16519
|
+
}
|
|
16520
|
+
_create_class$4(SystemStatePrivateDocument, [
|
|
16521
|
+
{
|
|
16522
|
+
key: "modelIdentity",
|
|
16523
|
+
get: function get() {
|
|
16524
|
+
return systemStatePrivateIdentity;
|
|
16525
|
+
}
|
|
16526
|
+
}
|
|
16527
|
+
]);
|
|
16528
|
+
return SystemStatePrivateDocument;
|
|
16529
|
+
}(firebase.AbstractFirestoreDocument);
|
|
16530
|
+
// MARK: Collection
|
|
16531
|
+
/**
|
|
16532
|
+
* Returns the Firestore {@link CollectionReference} for {@link SystemStatePrivate} documents.
|
|
16533
|
+
*
|
|
16534
|
+
* @param context - The Firestore context to create the collection reference from.
|
|
16535
|
+
* @returns The typed collection reference.
|
|
16536
|
+
*/ function systemStatePrivateCollectionReference(context) {
|
|
16537
|
+
return context.collection(systemStatePrivateIdentity.collectionName);
|
|
16538
|
+
}
|
|
16539
|
+
/**
|
|
16540
|
+
* Creates a {@link SystemStatePrivateFirestoreCollection}.
|
|
16541
|
+
*
|
|
16542
|
+
* @param config - The Firestore context, converters, and unknown-type behavior.
|
|
16543
|
+
* @returns The configured server-only SystemState collection.
|
|
16544
|
+
*/ function systemStatePrivateFirestoreCollection(config) {
|
|
16545
|
+
var firestoreContext = config.firestoreContext, converters = config.converters, unknownTypeBehavior = config.unknownTypeBehavior;
|
|
16546
|
+
return firestoreContext.firestoreCollection({
|
|
16547
|
+
modelIdentity: systemStatePrivateIdentity,
|
|
16548
|
+
converter: firebase.systemStateConverter,
|
|
16549
|
+
converterFactory: firebase.systemStateStoredDataConverterFactory({
|
|
16550
|
+
converters: converters,
|
|
16551
|
+
unknownTypeBehavior: unknownTypeBehavior !== null && unknownTypeBehavior !== void 0 ? unknownTypeBehavior : 'error',
|
|
16552
|
+
collectionName: systemStatePrivateIdentity.collectionName
|
|
16553
|
+
}),
|
|
16554
|
+
collection: systemStatePrivateCollectionReference(firestoreContext),
|
|
16555
|
+
makeDocument: function makeDocument(accessor, documentAccessor) {
|
|
16556
|
+
return new SystemStatePrivateDocument(accessor, documentAccessor);
|
|
16557
|
+
},
|
|
16558
|
+
firestoreContext: firestoreContext
|
|
16559
|
+
});
|
|
16560
|
+
}
|
|
16561
|
+
|
|
16562
|
+
function _array_like_to_array$2(arr, len) {
|
|
16563
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
16564
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
16565
|
+
return arr2;
|
|
16566
|
+
}
|
|
16567
|
+
function _array_without_holes$1(arr) {
|
|
16568
|
+
if (Array.isArray(arr)) return _array_like_to_array$2(arr);
|
|
16569
|
+
}
|
|
16570
|
+
function _class_call_check$b(instance, Constructor) {
|
|
16571
|
+
if (!(instance instanceof Constructor)) {
|
|
16572
|
+
throw new TypeError("Cannot call a class as a function");
|
|
16573
|
+
}
|
|
16574
|
+
}
|
|
16575
|
+
function _iterable_to_array$1(iter) {
|
|
16576
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
16577
|
+
}
|
|
16578
|
+
function _non_iterable_spread$1() {
|
|
16579
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
16580
|
+
}
|
|
16581
|
+
function _to_consumable_array$1(arr) {
|
|
16582
|
+
return _array_without_holes$1(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$2(arr) || _non_iterable_spread$1();
|
|
16583
|
+
}
|
|
16584
|
+
function _unsupported_iterable_to_array$2(o, minLen) {
|
|
16585
|
+
if (!o) return;
|
|
16586
|
+
if (typeof o === "string") return _array_like_to_array$2(o, minLen);
|
|
16587
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
16588
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
16589
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
16590
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$2(o, minLen);
|
|
16591
|
+
}
|
|
16592
|
+
// MARK: Config
|
|
16593
|
+
/**
|
|
16594
|
+
* Configuration for the {@link SystemStatePrivateFirestoreCollections} provider.
|
|
16595
|
+
*/ var SystemStatePrivateModuleConfig = function SystemStatePrivateModuleConfig() {
|
|
16596
|
+
_class_call_check$b(this, SystemStatePrivateModuleConfig);
|
|
16597
|
+
};
|
|
16598
|
+
// MARK: Provider Factories
|
|
16599
|
+
/**
|
|
16600
|
+
* Creates the {@link SystemStatePrivateFirestoreCollections}.
|
|
16601
|
+
*
|
|
16602
|
+
* This is a bespoke provider rather than a `provideAppFirestoreCollections()` entry because that
|
|
16603
|
+
* helper hard-codes a `(context: FirestoreContext) => T` factory and cannot carry the converters
|
|
16604
|
+
* (and therefore the encryption secrets) this collection needs.
|
|
16605
|
+
*
|
|
16606
|
+
* @param firestoreContext - The Firestore context.
|
|
16607
|
+
* @param config - The module configuration carrying the server-only converters.
|
|
16608
|
+
* @returns The server-only collections.
|
|
16609
|
+
*/ function systemStatePrivateFirestoreCollectionsFactory(firestoreContext, config) {
|
|
16610
|
+
return {
|
|
16611
|
+
systemStatePrivateCollection: systemStatePrivateFirestoreCollection({
|
|
16612
|
+
firestoreContext: firestoreContext,
|
|
16613
|
+
converters: config.converters,
|
|
16614
|
+
unknownTypeBehavior: config.unknownTypeBehavior
|
|
16615
|
+
})
|
|
16616
|
+
};
|
|
16617
|
+
}
|
|
16618
|
+
/**
|
|
16619
|
+
* Generates NestJS {@link ModuleMetadata} for an app's server-only SystemState module.
|
|
16620
|
+
*
|
|
16621
|
+
* IMPORTANT: do NOT add {@link SystemStatePrivateFirestoreCollections} to an app's shared
|
|
16622
|
+
* `FirestoreCollections` class. Keeping it on its own provider is what stops the private collection
|
|
16623
|
+
* from reaching client-shared code.
|
|
16624
|
+
*
|
|
16625
|
+
* @param config - The app's config provider plus optional additional module metadata.
|
|
16626
|
+
* @returns Module metadata ready for the `@Module()` decorator.
|
|
16627
|
+
*
|
|
16628
|
+
* @example
|
|
16629
|
+
* ```typescript
|
|
16630
|
+
* @Module(
|
|
16631
|
+
* appSystemStatePrivateModuleMetadata({
|
|
16632
|
+
* configProvider: {
|
|
16633
|
+
* provide: SystemStatePrivateModuleConfig,
|
|
16634
|
+
* useFactory: myConfigFactory,
|
|
16635
|
+
* inject: [ConfigService, FirebaseServerEnvService]
|
|
16636
|
+
* },
|
|
16637
|
+
* imports: [ConfigModule]
|
|
16638
|
+
* })
|
|
16639
|
+
* )
|
|
16640
|
+
* export class AppSystemStatePrivateModule {}
|
|
16641
|
+
* ```
|
|
16642
|
+
*/ function appSystemStatePrivateModuleMetadata(config) {
|
|
16643
|
+
var configProvider = config.configProvider, imports = config.imports, configExports = config.exports, providers = config.providers;
|
|
16644
|
+
return {
|
|
16645
|
+
imports: [
|
|
16646
|
+
firebaseServer.FirebaseServerFirestoreContextModule
|
|
16647
|
+
].concat(_to_consumable_array$1(imports !== null && imports !== void 0 ? imports : [])),
|
|
16648
|
+
providers: [
|
|
16649
|
+
configProvider,
|
|
16650
|
+
{
|
|
16651
|
+
provide: SystemStatePrivateFirestoreCollections,
|
|
16652
|
+
useFactory: systemStatePrivateFirestoreCollectionsFactory,
|
|
16653
|
+
inject: [
|
|
16654
|
+
firebaseServer.FIREBASE_FIRESTORE_CONTEXT_TOKEN,
|
|
16655
|
+
SystemStatePrivateModuleConfig
|
|
16656
|
+
]
|
|
16657
|
+
}
|
|
16658
|
+
].concat(_to_consumable_array$1(providers !== null && providers !== void 0 ? providers : [])),
|
|
16659
|
+
exports: [
|
|
16660
|
+
SystemStatePrivateFirestoreCollections,
|
|
16661
|
+
SystemStatePrivateModuleConfig
|
|
16662
|
+
].concat(_to_consumable_array$1(configExports !== null && configExports !== void 0 ? configExports : []))
|
|
16663
|
+
};
|
|
16664
|
+
}
|
|
16665
|
+
|
|
16417
16666
|
function _class_call_check$a(instance, Constructor) {
|
|
16418
16667
|
if (!(instance instanceof Constructor)) {
|
|
16419
16668
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -19532,6 +19781,9 @@ exports.STORAGE_FILE_SIGNED_UPLOAD_POLICIES_TOKEN = STORAGE_FILE_SIGNED_UPLOAD_P
|
|
|
19532
19781
|
exports.StorageFileInitServerActions = StorageFileInitServerActions;
|
|
19533
19782
|
exports.StorageFileInitializeFromUploadService = StorageFileInitializeFromUploadService;
|
|
19534
19783
|
exports.StorageFileServerActions = StorageFileServerActions;
|
|
19784
|
+
exports.SystemStatePrivateDocument = SystemStatePrivateDocument;
|
|
19785
|
+
exports.SystemStatePrivateFirestoreCollections = SystemStatePrivateFirestoreCollections;
|
|
19786
|
+
exports.SystemStatePrivateModuleConfig = SystemStatePrivateModuleConfig;
|
|
19535
19787
|
exports.TESTING_USER_EXTERNAL_CONNECTION_ENCRYPTION_SECRET = TESTING_USER_EXTERNAL_CONNECTION_ENCRYPTION_SECRET;
|
|
19536
19788
|
exports.TESTING_USER_EXTERNAL_CONNECTION_STATE_SECRET = TESTING_USER_EXTERNAL_CONNECTION_STATE_SECRET;
|
|
19537
19789
|
exports.UNKNOWN_NOTIFICATION_TASK_TYPE_DELETE_AFTER_RETRY_ATTEMPTS = UNKNOWN_NOTIFICATION_TASK_TYPE_DELETE_AFTER_RETRY_ATTEMPTS;
|
|
@@ -19562,6 +19814,7 @@ exports._syncStorageFileWithGroupsInTransactionFactory = _syncStorageFileWithGro
|
|
|
19562
19814
|
exports.allStorageFileGroupStorageFileProcessingPurposeSubtaskProcessors = allStorageFileGroupStorageFileProcessingPurposeSubtaskProcessors;
|
|
19563
19815
|
exports.appNotificationModuleMetadata = appNotificationModuleMetadata;
|
|
19564
19816
|
exports.appStorageFileModuleMetadata = appStorageFileModuleMetadata;
|
|
19817
|
+
exports.appSystemStatePrivateModuleMetadata = appSystemStatePrivateModuleMetadata;
|
|
19565
19818
|
exports.appUserExternalConnectionModuleMetadata = appUserExternalConnectionModuleMetadata;
|
|
19566
19819
|
exports.applyUserExternalConnectionCredentials = applyUserExternalConnectionCredentials;
|
|
19567
19820
|
exports.cleanupOldNotificationLoggedEventDaysFactory = cleanupOldNotificationLoggedEventDaysFactory;
|
|
@@ -19664,6 +19917,10 @@ exports.storageFileServerActionsContextFactory = storageFileServerActionsContext
|
|
|
19664
19917
|
exports.storageFileServerActionsFactory = storageFileServerActionsFactory;
|
|
19665
19918
|
exports.syncAllFlaggedStorageFilesWithGroupsFactory = syncAllFlaggedStorageFilesWithGroupsFactory;
|
|
19666
19919
|
exports.syncStorageFileWithGroupsFactory = syncStorageFileWithGroupsFactory;
|
|
19920
|
+
exports.systemStatePrivateCollectionReference = systemStatePrivateCollectionReference;
|
|
19921
|
+
exports.systemStatePrivateFirestoreCollection = systemStatePrivateFirestoreCollection;
|
|
19922
|
+
exports.systemStatePrivateFirestoreCollectionsFactory = systemStatePrivateFirestoreCollectionsFactory;
|
|
19923
|
+
exports.systemStatePrivateIdentity = systemStatePrivateIdentity;
|
|
19667
19924
|
exports.updateNotificationBoxFactory = updateNotificationBoxFactory;
|
|
19668
19925
|
exports.updateNotificationBoxRecipientExclusionInTransactionFactory = updateNotificationBoxRecipientExclusionInTransactionFactory;
|
|
19669
19926
|
exports.updateNotificationBoxRecipientFactory = updateNotificationBoxRecipientFactory;
|