@dereekb/firebase 13.32.0 → 13.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/eslint/package.json +3 -3
- package/index.cjs.js +1028 -537
- package/index.esm.js +1000 -538
- package/package.json +5 -5
- package/src/lib/common/firestore/snapshot/snapshot.field.d.ts +59 -4
- package/src/lib/model/index.d.ts +1 -0
- package/src/lib/model/userexternalconnection/index.d.ts +6 -0
- package/src/lib/model/userexternalconnection/userexternalconnection.action.d.ts +21 -0
- package/src/lib/model/userexternalconnection/userexternalconnection.api.d.ts +120 -0
- package/src/lib/model/userexternalconnection/userexternalconnection.d.ts +191 -0
- package/src/lib/model/userexternalconnection/userexternalconnection.id.d.ts +51 -0
- package/src/lib/model/userexternalconnection/userexternalconnection.query.d.ts +19 -0
- package/src/lib/model/userexternalconnection/userexternalconnection.util.d.ts +149 -0
- package/test/index.cjs.js +371 -50
- package/test/index.esm.js +362 -51
- package/test/package.json +6 -6
- package/test/src/lib/client/firebase.rules.d.ts +114 -0
- package/test/src/lib/client/index.d.ts +1 -0
package/index.cjs.js
CHANGED
|
@@ -13,7 +13,7 @@ var fetch = require('@dereekb/util/fetch');
|
|
|
13
13
|
var makeError = require('make-error');
|
|
14
14
|
var dateFns = require('date-fns');
|
|
15
15
|
|
|
16
|
-
function _type_of$
|
|
16
|
+
function _type_of$d(obj) {
|
|
17
17
|
"@swc/helpers - typeof";
|
|
18
18
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
19
19
|
}
|
|
@@ -44,15 +44,15 @@ function _type_of$c(obj) {
|
|
|
44
44
|
* }
|
|
45
45
|
* ```
|
|
46
46
|
*/ function isClientFirebaseError(error) {
|
|
47
|
-
return (typeof error === "undefined" ? "undefined" : _type_of$
|
|
47
|
+
return (typeof error === "undefined" ? "undefined" : _type_of$d(error)) === 'object' && error.name === 'FirebaseError' && typeof error.code === 'string';
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
function _class_call_check$
|
|
50
|
+
function _class_call_check$l(instance, Constructor) {
|
|
51
51
|
if (!(instance instanceof Constructor)) {
|
|
52
52
|
throw new TypeError("Cannot call a class as a function");
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
function _defineProperties$
|
|
55
|
+
function _defineProperties$c(target, props) {
|
|
56
56
|
for(var i = 0; i < props.length; i++){
|
|
57
57
|
var descriptor = props[i];
|
|
58
58
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -61,11 +61,11 @@ function _defineProperties$b(target, props) {
|
|
|
61
61
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
function _create_class$
|
|
65
|
-
if (protoProps) _defineProperties$
|
|
64
|
+
function _create_class$c(Constructor, protoProps, staticProps) {
|
|
65
|
+
if (protoProps) _defineProperties$c(Constructor.prototype, protoProps);
|
|
66
66
|
return Constructor;
|
|
67
67
|
}
|
|
68
|
-
function _define_property$
|
|
68
|
+
function _define_property$A(obj, key, value) {
|
|
69
69
|
if (key in obj) {
|
|
70
70
|
Object.defineProperty(obj, key, {
|
|
71
71
|
value: value,
|
|
@@ -90,11 +90,11 @@ function _define_property$z(obj, key, value) {
|
|
|
90
90
|
* @template D - The raw document data type in Firestore (defaults to DocumentData)
|
|
91
91
|
*/ var AbstractFirestoreDocumentDataAccessorWrapper = /*#__PURE__*/ function() {
|
|
92
92
|
function AbstractFirestoreDocumentDataAccessorWrapper(accessor) {
|
|
93
|
-
_class_call_check$
|
|
94
|
-
_define_property$
|
|
93
|
+
_class_call_check$l(this, AbstractFirestoreDocumentDataAccessorWrapper);
|
|
94
|
+
_define_property$A(this, "_accessor", void 0);
|
|
95
95
|
this._accessor = accessor;
|
|
96
96
|
}
|
|
97
|
-
_create_class$
|
|
97
|
+
_create_class$c(AbstractFirestoreDocumentDataAccessorWrapper, [
|
|
98
98
|
{
|
|
99
99
|
key: "accessor",
|
|
100
100
|
get: /**
|
|
@@ -249,22 +249,22 @@ function _define_property$z(obj, key, value) {
|
|
|
249
249
|
};
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
-
function _assert_this_initialized$
|
|
252
|
+
function _assert_this_initialized$a(self) {
|
|
253
253
|
if (self === void 0) {
|
|
254
254
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
255
255
|
}
|
|
256
256
|
return self;
|
|
257
257
|
}
|
|
258
|
-
function _call_super$
|
|
259
|
-
derived = _get_prototype_of$
|
|
260
|
-
return _possible_constructor_return$
|
|
258
|
+
function _call_super$a(_this, derived, args) {
|
|
259
|
+
derived = _get_prototype_of$a(derived);
|
|
260
|
+
return _possible_constructor_return$a(_this, _is_native_reflect_construct$a() ? Reflect.construct(derived, args || [], _get_prototype_of$a(_this).constructor) : derived.apply(_this, args));
|
|
261
261
|
}
|
|
262
|
-
function _class_call_check$
|
|
262
|
+
function _class_call_check$k(instance, Constructor) {
|
|
263
263
|
if (!(instance instanceof Constructor)) {
|
|
264
264
|
throw new TypeError("Cannot call a class as a function");
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
|
-
function _define_property$
|
|
267
|
+
function _define_property$z(obj, key, value) {
|
|
268
268
|
if (key in obj) {
|
|
269
269
|
Object.defineProperty(obj, key, {
|
|
270
270
|
value: value,
|
|
@@ -293,13 +293,13 @@ function _get(target, property, receiver) {
|
|
|
293
293
|
}
|
|
294
294
|
return _get(target, property, receiver || target);
|
|
295
295
|
}
|
|
296
|
-
function _get_prototype_of$
|
|
297
|
-
_get_prototype_of$
|
|
296
|
+
function _get_prototype_of$a(o) {
|
|
297
|
+
_get_prototype_of$a = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
298
298
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
299
299
|
};
|
|
300
|
-
return _get_prototype_of$
|
|
300
|
+
return _get_prototype_of$a(o);
|
|
301
301
|
}
|
|
302
|
-
function _inherits$
|
|
302
|
+
function _inherits$a(subClass, superClass) {
|
|
303
303
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
304
304
|
throw new TypeError("Super expression must either be null or a function");
|
|
305
305
|
}
|
|
@@ -310,9 +310,9 @@ function _inherits$9(subClass, superClass) {
|
|
|
310
310
|
configurable: true
|
|
311
311
|
}
|
|
312
312
|
});
|
|
313
|
-
if (superClass) _set_prototype_of$
|
|
313
|
+
if (superClass) _set_prototype_of$a(subClass, superClass);
|
|
314
314
|
}
|
|
315
|
-
function _object_spread$
|
|
315
|
+
function _object_spread$s(target) {
|
|
316
316
|
for(var i = 1; i < arguments.length; i++){
|
|
317
317
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
318
318
|
var ownKeys = Object.keys(source);
|
|
@@ -322,40 +322,40 @@ function _object_spread$r(target) {
|
|
|
322
322
|
}));
|
|
323
323
|
}
|
|
324
324
|
ownKeys.forEach(function(key) {
|
|
325
|
-
_define_property$
|
|
325
|
+
_define_property$z(target, key, source[key]);
|
|
326
326
|
});
|
|
327
327
|
}
|
|
328
328
|
return target;
|
|
329
329
|
}
|
|
330
|
-
function _possible_constructor_return$
|
|
331
|
-
if (call && (_type_of$
|
|
330
|
+
function _possible_constructor_return$a(self, call) {
|
|
331
|
+
if (call && (_type_of$c(call) === "object" || typeof call === "function")) {
|
|
332
332
|
return call;
|
|
333
333
|
}
|
|
334
|
-
return _assert_this_initialized$
|
|
334
|
+
return _assert_this_initialized$a(self);
|
|
335
335
|
}
|
|
336
|
-
function _set_prototype_of$
|
|
337
|
-
_set_prototype_of$
|
|
336
|
+
function _set_prototype_of$a(o, p) {
|
|
337
|
+
_set_prototype_of$a = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
338
338
|
o.__proto__ = p;
|
|
339
339
|
return o;
|
|
340
340
|
};
|
|
341
|
-
return _set_prototype_of$
|
|
341
|
+
return _set_prototype_of$a(o, p);
|
|
342
342
|
}
|
|
343
343
|
function _super_prop_base(object, property) {
|
|
344
344
|
while(!Object.prototype.hasOwnProperty.call(object, property)){
|
|
345
|
-
object = _get_prototype_of$
|
|
345
|
+
object = _get_prototype_of$a(object);
|
|
346
346
|
if (object === null) break;
|
|
347
347
|
}
|
|
348
348
|
return object;
|
|
349
349
|
}
|
|
350
|
-
function _type_of$
|
|
350
|
+
function _type_of$c(obj) {
|
|
351
351
|
"@swc/helpers - typeof";
|
|
352
352
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
353
353
|
}
|
|
354
|
-
function _is_native_reflect_construct$
|
|
354
|
+
function _is_native_reflect_construct$a() {
|
|
355
355
|
try {
|
|
356
356
|
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
357
357
|
} catch (_) {}
|
|
358
|
-
return (_is_native_reflect_construct$
|
|
358
|
+
return (_is_native_reflect_construct$a = function() {
|
|
359
359
|
return !!result;
|
|
360
360
|
})();
|
|
361
361
|
}
|
|
@@ -369,19 +369,19 @@ function _is_native_reflect_construct$9() {
|
|
|
369
369
|
* @template T - The document data type
|
|
370
370
|
* @template D - The raw document data type in Firestore
|
|
371
371
|
*/ var ModifyBeforeSetFirestoreDocumentDataAccessorWrapper = /*#__PURE__*/ function(AbstractFirestoreDocumentDataAccessorWrapper) {
|
|
372
|
-
_inherits$
|
|
372
|
+
_inherits$a(ModifyBeforeSetFirestoreDocumentDataAccessorWrapper, AbstractFirestoreDocumentDataAccessorWrapper);
|
|
373
373
|
function ModifyBeforeSetFirestoreDocumentDataAccessorWrapper(accessor, config) {
|
|
374
|
-
_class_call_check$
|
|
374
|
+
_class_call_check$k(this, ModifyBeforeSetFirestoreDocumentDataAccessorWrapper);
|
|
375
375
|
var _this;
|
|
376
|
-
_this = _call_super$
|
|
376
|
+
_this = _call_super$a(this, ModifyBeforeSetFirestoreDocumentDataAccessorWrapper, [
|
|
377
377
|
accessor
|
|
378
|
-
]), _define_property$
|
|
378
|
+
]), _define_property$z(_this, "config", void 0), _define_property$z(_this, "modifier", void 0), _define_property$z(_this, "set", void 0);
|
|
379
379
|
_this.config = config;
|
|
380
380
|
var when = config.when;
|
|
381
381
|
_this.modifier = util.mergeModifiers(util.asArray(config.modifier));
|
|
382
382
|
var setFn;
|
|
383
383
|
var modifyData = function modifyData(data, options) {
|
|
384
|
-
var copy = _object_spread$
|
|
384
|
+
var copy = _object_spread$s({}, data);
|
|
385
385
|
var input = {
|
|
386
386
|
data: copy,
|
|
387
387
|
documentRef: _this.documentRef,
|
|
@@ -392,7 +392,7 @@ function _is_native_reflect_construct$9() {
|
|
|
392
392
|
};
|
|
393
393
|
var modifyAndSet = function modifyAndSet(data, options) {
|
|
394
394
|
var input = modifyData(data, options);
|
|
395
|
-
return _get((_assert_this_initialized$
|
|
395
|
+
return _get((_assert_this_initialized$a(_this), _get_prototype_of$a(ModifyBeforeSetFirestoreDocumentDataAccessorWrapper.prototype)), "set", _this).call(_this, input.data, options);
|
|
396
396
|
};
|
|
397
397
|
var applyToCreateFunction = false;
|
|
398
398
|
switch(when){
|
|
@@ -403,19 +403,19 @@ function _is_native_reflect_construct$9() {
|
|
|
403
403
|
case 'set':
|
|
404
404
|
setFn = function setFn(data, options) {
|
|
405
405
|
var isSetForNewModel = Boolean(!options);
|
|
406
|
-
return isSetForNewModel ? modifyAndSet(data) : _get((_assert_this_initialized$
|
|
406
|
+
return isSetForNewModel ? modifyAndSet(data) : _get((_assert_this_initialized$a(_this), _get_prototype_of$a(ModifyBeforeSetFirestoreDocumentDataAccessorWrapper.prototype)), "set", _this).call(_this, data, options);
|
|
407
407
|
};
|
|
408
408
|
applyToCreateFunction = true;
|
|
409
409
|
break;
|
|
410
410
|
case 'update':
|
|
411
411
|
setFn = function setFn(data, options) {
|
|
412
412
|
var isUpdateForExistingModel = options && (Boolean(options.mergeFields) || Boolean(options.merge));
|
|
413
|
-
return isUpdateForExistingModel ? modifyAndSet(data) : _get((_assert_this_initialized$
|
|
413
|
+
return isUpdateForExistingModel ? modifyAndSet(data) : _get((_assert_this_initialized$a(_this), _get_prototype_of$a(ModifyBeforeSetFirestoreDocumentDataAccessorWrapper.prototype)), "set", _this).call(_this, data, options);
|
|
414
414
|
};
|
|
415
415
|
break;
|
|
416
416
|
case 'create':
|
|
417
417
|
setFn = function setFn(data, options) {
|
|
418
|
-
return _get((_assert_this_initialized$
|
|
418
|
+
return _get((_assert_this_initialized$a(_this), _get_prototype_of$a(ModifyBeforeSetFirestoreDocumentDataAccessorWrapper.prototype)), "set", _this).call(_this, data, options);
|
|
419
419
|
};
|
|
420
420
|
applyToCreateFunction = true;
|
|
421
421
|
break;
|
|
@@ -424,7 +424,7 @@ function _is_native_reflect_construct$9() {
|
|
|
424
424
|
if (applyToCreateFunction) {
|
|
425
425
|
var modifyAndCreate = function modifyAndCreate(data) {
|
|
426
426
|
var input = modifyData(data);
|
|
427
|
-
return _get((_assert_this_initialized$
|
|
427
|
+
return _get((_assert_this_initialized$a(_this), _get_prototype_of$a(ModifyBeforeSetFirestoreDocumentDataAccessorWrapper.prototype)), "create", _this).call(_this, input.data);
|
|
428
428
|
};
|
|
429
429
|
_this.create = modifyAndCreate;
|
|
430
430
|
}
|
|
@@ -1226,22 +1226,22 @@ function _ts_generator$l(thisArg, body) {
|
|
|
1226
1226
|
};
|
|
1227
1227
|
}
|
|
1228
1228
|
|
|
1229
|
-
function _assert_this_initialized$
|
|
1229
|
+
function _assert_this_initialized$9(self) {
|
|
1230
1230
|
if (self === void 0) {
|
|
1231
1231
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1232
1232
|
}
|
|
1233
1233
|
return self;
|
|
1234
1234
|
}
|
|
1235
|
-
function _call_super$
|
|
1236
|
-
derived = _get_prototype_of$
|
|
1237
|
-
return _possible_constructor_return$
|
|
1235
|
+
function _call_super$9(_this, derived, args) {
|
|
1236
|
+
derived = _get_prototype_of$9(derived);
|
|
1237
|
+
return _possible_constructor_return$9(_this, _is_native_reflect_construct$9() ? Reflect.construct(derived, args || [], _get_prototype_of$9(_this).constructor) : derived.apply(_this, args));
|
|
1238
1238
|
}
|
|
1239
|
-
function _class_call_check$
|
|
1239
|
+
function _class_call_check$j(instance, Constructor) {
|
|
1240
1240
|
if (!(instance instanceof Constructor)) {
|
|
1241
1241
|
throw new TypeError("Cannot call a class as a function");
|
|
1242
1242
|
}
|
|
1243
1243
|
}
|
|
1244
|
-
function _defineProperties$
|
|
1244
|
+
function _defineProperties$b(target, props) {
|
|
1245
1245
|
for(var i = 0; i < props.length; i++){
|
|
1246
1246
|
var descriptor = props[i];
|
|
1247
1247
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -1250,11 +1250,11 @@ function _defineProperties$a(target, props) {
|
|
|
1250
1250
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
1251
1251
|
}
|
|
1252
1252
|
}
|
|
1253
|
-
function _create_class$
|
|
1254
|
-
if (protoProps) _defineProperties$
|
|
1253
|
+
function _create_class$b(Constructor, protoProps, staticProps) {
|
|
1254
|
+
if (protoProps) _defineProperties$b(Constructor.prototype, protoProps);
|
|
1255
1255
|
return Constructor;
|
|
1256
1256
|
}
|
|
1257
|
-
function _define_property$
|
|
1257
|
+
function _define_property$y(obj, key, value) {
|
|
1258
1258
|
if (key in obj) {
|
|
1259
1259
|
Object.defineProperty(obj, key, {
|
|
1260
1260
|
value: value,
|
|
@@ -1267,13 +1267,13 @@ function _define_property$x(obj, key, value) {
|
|
|
1267
1267
|
}
|
|
1268
1268
|
return obj;
|
|
1269
1269
|
}
|
|
1270
|
-
function _get_prototype_of$
|
|
1271
|
-
_get_prototype_of$
|
|
1270
|
+
function _get_prototype_of$9(o) {
|
|
1271
|
+
_get_prototype_of$9 = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
1272
1272
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
1273
1273
|
};
|
|
1274
|
-
return _get_prototype_of$
|
|
1274
|
+
return _get_prototype_of$9(o);
|
|
1275
1275
|
}
|
|
1276
|
-
function _inherits$
|
|
1276
|
+
function _inherits$9(subClass, superClass) {
|
|
1277
1277
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
1278
1278
|
throw new TypeError("Super expression must either be null or a function");
|
|
1279
1279
|
}
|
|
@@ -1284,30 +1284,30 @@ function _inherits$8(subClass, superClass) {
|
|
|
1284
1284
|
configurable: true
|
|
1285
1285
|
}
|
|
1286
1286
|
});
|
|
1287
|
-
if (superClass) _set_prototype_of$
|
|
1287
|
+
if (superClass) _set_prototype_of$9(subClass, superClass);
|
|
1288
1288
|
}
|
|
1289
|
-
function _possible_constructor_return$
|
|
1290
|
-
if (call && (_type_of$
|
|
1289
|
+
function _possible_constructor_return$9(self, call) {
|
|
1290
|
+
if (call && (_type_of$b(call) === "object" || typeof call === "function")) {
|
|
1291
1291
|
return call;
|
|
1292
1292
|
}
|
|
1293
|
-
return _assert_this_initialized$
|
|
1293
|
+
return _assert_this_initialized$9(self);
|
|
1294
1294
|
}
|
|
1295
|
-
function _set_prototype_of$
|
|
1296
|
-
_set_prototype_of$
|
|
1295
|
+
function _set_prototype_of$9(o, p) {
|
|
1296
|
+
_set_prototype_of$9 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
1297
1297
|
o.__proto__ = p;
|
|
1298
1298
|
return o;
|
|
1299
1299
|
};
|
|
1300
|
-
return _set_prototype_of$
|
|
1300
|
+
return _set_prototype_of$9(o, p);
|
|
1301
1301
|
}
|
|
1302
|
-
function _type_of$
|
|
1302
|
+
function _type_of$b(obj) {
|
|
1303
1303
|
"@swc/helpers - typeof";
|
|
1304
1304
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
1305
1305
|
}
|
|
1306
|
-
function _is_native_reflect_construct$
|
|
1306
|
+
function _is_native_reflect_construct$9() {
|
|
1307
1307
|
try {
|
|
1308
1308
|
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
1309
1309
|
} catch (_) {}
|
|
1310
|
-
return (_is_native_reflect_construct$
|
|
1310
|
+
return (_is_native_reflect_construct$9 = function() {
|
|
1311
1311
|
return !!result;
|
|
1312
1312
|
})();
|
|
1313
1313
|
}
|
|
@@ -1328,21 +1328,21 @@ function _is_native_reflect_construct$8() {
|
|
|
1328
1328
|
*/ var AbstractFirestoreDocument = /*#__PURE__*/ function() {
|
|
1329
1329
|
function AbstractFirestoreDocument(accessor, documentAccessor) {
|
|
1330
1330
|
var _this = this;
|
|
1331
|
-
_class_call_check$
|
|
1332
|
-
_define_property$
|
|
1333
|
-
_define_property$
|
|
1334
|
-
_define_property$
|
|
1335
|
-
_define_property$
|
|
1331
|
+
_class_call_check$j(this, AbstractFirestoreDocument);
|
|
1332
|
+
_define_property$y(this, "_accessor", void 0);
|
|
1333
|
+
_define_property$y(this, "_documentAccessor", void 0);
|
|
1334
|
+
_define_property$y(this, "_cache", void 0);
|
|
1335
|
+
_define_property$y(this, "stream$", rxjs.lazyFrom(function() {
|
|
1336
1336
|
return _this._accessor.stream();
|
|
1337
1337
|
}));
|
|
1338
|
-
_define_property$
|
|
1338
|
+
_define_property$y(this, "data$", rxjs.lazyFrom(function() {
|
|
1339
1339
|
return dataFromSnapshotStream(_this.stream$);
|
|
1340
1340
|
}));
|
|
1341
1341
|
this._accessor = accessor;
|
|
1342
1342
|
this._documentAccessor = documentAccessor;
|
|
1343
1343
|
this._cache = documentAccessor.cacheForDocument(accessor.documentRef);
|
|
1344
1344
|
}
|
|
1345
|
-
_create_class$
|
|
1345
|
+
_create_class$b(AbstractFirestoreDocument, [
|
|
1346
1346
|
{
|
|
1347
1347
|
key: "accessor",
|
|
1348
1348
|
get: function get() {
|
|
@@ -1684,15 +1684,15 @@ function firestoreDocumentAccessorContextExtension(param) {
|
|
|
1684
1684
|
};
|
|
1685
1685
|
}
|
|
1686
1686
|
var AbstractFirestoreDocumentWithParent = /*#__PURE__*/ function(AbstractFirestoreDocument) {
|
|
1687
|
-
_inherits$
|
|
1687
|
+
_inherits$9(AbstractFirestoreDocumentWithParent, AbstractFirestoreDocument);
|
|
1688
1688
|
function AbstractFirestoreDocumentWithParent(accessor, documentAccessor) {
|
|
1689
|
-
_class_call_check$
|
|
1690
|
-
return _call_super$
|
|
1689
|
+
_class_call_check$j(this, AbstractFirestoreDocumentWithParent);
|
|
1690
|
+
return _call_super$9(this, AbstractFirestoreDocumentWithParent, [
|
|
1691
1691
|
accessor,
|
|
1692
1692
|
documentAccessor
|
|
1693
1693
|
]);
|
|
1694
1694
|
}
|
|
1695
|
-
_create_class$
|
|
1695
|
+
_create_class$b(AbstractFirestoreDocumentWithParent, [
|
|
1696
1696
|
{
|
|
1697
1697
|
key: "parent",
|
|
1698
1698
|
get: function get() {
|
|
@@ -3860,7 +3860,7 @@ function _ts_generator$i(thisArg, body) {
|
|
|
3860
3860
|
return path;
|
|
3861
3861
|
}
|
|
3862
3862
|
|
|
3863
|
-
function _define_property$
|
|
3863
|
+
function _define_property$x(obj, key, value) {
|
|
3864
3864
|
if (key in obj) {
|
|
3865
3865
|
Object.defineProperty(obj, key, {
|
|
3866
3866
|
value: value,
|
|
@@ -3873,7 +3873,7 @@ function _define_property$w(obj, key, value) {
|
|
|
3873
3873
|
}
|
|
3874
3874
|
return obj;
|
|
3875
3875
|
}
|
|
3876
|
-
function _object_spread$
|
|
3876
|
+
function _object_spread$r(target) {
|
|
3877
3877
|
for(var i = 1; i < arguments.length; i++){
|
|
3878
3878
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3879
3879
|
var ownKeys = Object.keys(source);
|
|
@@ -3883,7 +3883,7 @@ function _object_spread$q(target) {
|
|
|
3883
3883
|
}));
|
|
3884
3884
|
}
|
|
3885
3885
|
ownKeys.forEach(function(key) {
|
|
3886
|
-
_define_property$
|
|
3886
|
+
_define_property$x(target, key, source[key]);
|
|
3887
3887
|
});
|
|
3888
3888
|
}
|
|
3889
3889
|
return target;
|
|
@@ -3987,7 +3987,7 @@ function _object_spread_props$m(target, source) {
|
|
|
3987
3987
|
}
|
|
3988
3988
|
// If specific fields are specified for merging, only include those fields
|
|
3989
3989
|
if (mergeFields) {
|
|
3990
|
-
toOptions = _object_spread_props$m(_object_spread$
|
|
3990
|
+
toOptions = _object_spread_props$m(_object_spread$r({}, toOptions), {
|
|
3991
3991
|
fields: asTopLevelFieldPaths(mergeFields)
|
|
3992
3992
|
});
|
|
3993
3993
|
}
|
|
@@ -4034,7 +4034,7 @@ function _object_spread_props$m(target, source) {
|
|
|
4034
4034
|
* Using null is consistent with Firestore's approach to empty/unset values.
|
|
4035
4035
|
*/ var FIRESTORE_EMPTY_VALUE = null;
|
|
4036
4036
|
|
|
4037
|
-
function _define_property$
|
|
4037
|
+
function _define_property$w(obj, key, value) {
|
|
4038
4038
|
if (key in obj) {
|
|
4039
4039
|
Object.defineProperty(obj, key, {
|
|
4040
4040
|
value: value,
|
|
@@ -4047,7 +4047,7 @@ function _define_property$v(obj, key, value) {
|
|
|
4047
4047
|
}
|
|
4048
4048
|
return obj;
|
|
4049
4049
|
}
|
|
4050
|
-
function _object_spread$
|
|
4050
|
+
function _object_spread$q(target) {
|
|
4051
4051
|
for(var i = 1; i < arguments.length; i++){
|
|
4052
4052
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
4053
4053
|
var ownKeys = Object.keys(source);
|
|
@@ -4057,7 +4057,7 @@ function _object_spread$p(target) {
|
|
|
4057
4057
|
}));
|
|
4058
4058
|
}
|
|
4059
4059
|
ownKeys.forEach(function(key) {
|
|
4060
|
-
_define_property$
|
|
4060
|
+
_define_property$w(target, key, source[key]);
|
|
4061
4061
|
});
|
|
4062
4062
|
}
|
|
4063
4063
|
return target;
|
|
@@ -4275,7 +4275,7 @@ function optionalFirestoreField(config) {
|
|
|
4275
4275
|
*/ function firestoreString(config) {
|
|
4276
4276
|
var transform = util.transformStringFunctionConfig(config === null || config === void 0 ? void 0 : config.transform);
|
|
4277
4277
|
var transformData = transform ? util.transformStringFunction(transform) : util.passThrough;
|
|
4278
|
-
return firestoreField(_object_spread_props$l(_object_spread$
|
|
4278
|
+
return firestoreField(_object_spread_props$l(_object_spread$q({
|
|
4279
4279
|
default: DEFAULT_FIRESTORE_STRING_FIELD_VALUE
|
|
4280
4280
|
}, config), {
|
|
4281
4281
|
fromData: transformData,
|
|
@@ -4306,7 +4306,7 @@ function optionalFirestoreField(config) {
|
|
|
4306
4306
|
*/ function optionalFirestoreString(config) {
|
|
4307
4307
|
var transform = util.transformStringFunctionConfig(config === null || config === void 0 ? void 0 : config.transform);
|
|
4308
4308
|
var transformData = transform ? util.transformStringFunction(transform) : util.passThrough;
|
|
4309
|
-
return optionalFirestoreField(_object_spread_props$l(_object_spread$
|
|
4309
|
+
return optionalFirestoreField(_object_spread_props$l(_object_spread$q({}, config), {
|
|
4310
4310
|
transformData: transformData
|
|
4311
4311
|
}));
|
|
4312
4312
|
}
|
|
@@ -4331,7 +4331,7 @@ function optionalFirestoreField(config) {
|
|
|
4331
4331
|
*
|
|
4332
4332
|
* @__NO_SIDE_EFFECTS__
|
|
4333
4333
|
*/ function firestoreEnum(config) {
|
|
4334
|
-
return firestoreField(_object_spread_props$l(_object_spread$
|
|
4334
|
+
return firestoreField(_object_spread_props$l(_object_spread$q({}, config), {
|
|
4335
4335
|
fromData: util.passThrough,
|
|
4336
4336
|
toData: util.passThrough
|
|
4337
4337
|
}));
|
|
@@ -4485,7 +4485,7 @@ function optionalFirestoreField(config) {
|
|
|
4485
4485
|
return date.isSameDate(x, comparisonDate);
|
|
4486
4486
|
};
|
|
4487
4487
|
}
|
|
4488
|
-
return optionalFirestoreField(_object_spread_props$l(_object_spread$
|
|
4488
|
+
return optionalFirestoreField(_object_spread_props$l(_object_spread$q({}, config), {
|
|
4489
4489
|
dontStoreValueIf: dontStoreValueIf,
|
|
4490
4490
|
transformFromData: date.toJsDate,
|
|
4491
4491
|
transformToData: date.toISODateString
|
|
@@ -4540,7 +4540,7 @@ function optionalFirestoreField(config) {
|
|
|
4540
4540
|
return date.isSameDate(x, comparisonDate);
|
|
4541
4541
|
};
|
|
4542
4542
|
}
|
|
4543
|
-
return optionalFirestoreField(_object_spread_props$l(_object_spread$
|
|
4543
|
+
return optionalFirestoreField(_object_spread_props$l(_object_spread$q({}, config), {
|
|
4544
4544
|
dontStoreValueIf: dontStoreValueIf,
|
|
4545
4545
|
transformFromData: toDate,
|
|
4546
4546
|
transformToData: fromDate
|
|
@@ -4554,7 +4554,7 @@ function optionalFirestoreField(config) {
|
|
|
4554
4554
|
*
|
|
4555
4555
|
* @__NO_SIDE_EFFECTS__
|
|
4556
4556
|
*/ function firestoreUnixDateTimeSecondsNumber(config) {
|
|
4557
|
-
return firestoreDateNumber(_object_spread_props$l(_object_spread$
|
|
4557
|
+
return firestoreDateNumber(_object_spread_props$l(_object_spread$q({}, config), {
|
|
4558
4558
|
fromDate: util.unixDateTimeSecondsNumberFromDate,
|
|
4559
4559
|
toDate: util.dateFromDateOrTimeSecondsNumber
|
|
4560
4560
|
}));
|
|
@@ -4567,7 +4567,7 @@ function optionalFirestoreField(config) {
|
|
|
4567
4567
|
*
|
|
4568
4568
|
* @__NO_SIDE_EFFECTS__
|
|
4569
4569
|
*/ function optionalFirestoreUnixDateTimeSecondsNumber(config) {
|
|
4570
|
-
return optionalFirestoreDateNumber(_object_spread_props$l(_object_spread$
|
|
4570
|
+
return optionalFirestoreDateNumber(_object_spread_props$l(_object_spread$q({}, config), {
|
|
4571
4571
|
fromDate: util.unixDateTimeSecondsNumberFromDate,
|
|
4572
4572
|
toDate: util.dateFromDateOrTimeSecondsNumber
|
|
4573
4573
|
}));
|
|
@@ -4647,7 +4647,7 @@ function optionalFirestoreField(config) {
|
|
|
4647
4647
|
transform: config === null || config === void 0 ? void 0 : config.transform
|
|
4648
4648
|
} : config === null || config === void 0 ? void 0 : config.transform : undefined;
|
|
4649
4649
|
var transformData = transform ? util.transformNumberFunction(transform) : util.passThrough;
|
|
4650
|
-
return firestoreField(_object_spread_props$l(_object_spread$
|
|
4650
|
+
return firestoreField(_object_spread_props$l(_object_spread$q({}, config), {
|
|
4651
4651
|
defaultBeforeSave: ((_config_defaultBeforeSave = config.defaultBeforeSave) !== null && _config_defaultBeforeSave !== void 0 ? _config_defaultBeforeSave : config.saveDefault) ? config.default : undefined,
|
|
4652
4652
|
fromData: transformData,
|
|
4653
4653
|
toData: transformData
|
|
@@ -4672,7 +4672,7 @@ function optionalFirestoreField(config) {
|
|
|
4672
4672
|
transform: config === null || config === void 0 ? void 0 : config.transform
|
|
4673
4673
|
} : config === null || config === void 0 ? void 0 : config.transform : undefined;
|
|
4674
4674
|
var transformData = transform ? util.transformNumberFunction(transform) : util.passThrough;
|
|
4675
|
-
return optionalFirestoreField(_object_spread_props$l(_object_spread$
|
|
4675
|
+
return optionalFirestoreField(_object_spread_props$l(_object_spread$q({}, config), {
|
|
4676
4676
|
transformData: transformData
|
|
4677
4677
|
}));
|
|
4678
4678
|
}
|
|
@@ -4767,7 +4767,7 @@ function optionalFirestoreField(config) {
|
|
|
4767
4767
|
inputTransformData,
|
|
4768
4768
|
sortArrayFn
|
|
4769
4769
|
]);
|
|
4770
|
-
return optionalFirestoreField(_object_spread_props$l(_object_spread$
|
|
4770
|
+
return optionalFirestoreField(_object_spread_props$l(_object_spread$q({}, config), {
|
|
4771
4771
|
dontStoreIf: dontStoreIf,
|
|
4772
4772
|
transformData: transformData
|
|
4773
4773
|
}));
|
|
@@ -4811,7 +4811,7 @@ function optionalFirestoreField(config) {
|
|
|
4811
4811
|
*
|
|
4812
4812
|
* @__NO_SIDE_EFFECTS__
|
|
4813
4813
|
*/ function firestoreUniqueKeyedArray(config) {
|
|
4814
|
-
return firestoreUniqueArray(_object_spread_props$l(_object_spread$
|
|
4814
|
+
return firestoreUniqueArray(_object_spread_props$l(_object_spread$q({}, config), {
|
|
4815
4815
|
filterUnique: util.filterUniqueFunction(config.readKey)
|
|
4816
4816
|
}));
|
|
4817
4817
|
}
|
|
@@ -4829,7 +4829,7 @@ function optionalFirestoreField(config) {
|
|
|
4829
4829
|
* @__NO_SIDE_EFFECTS__
|
|
4830
4830
|
*/ function firestoreEnumArray() {
|
|
4831
4831
|
var config = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4832
|
-
return firestoreUniqueArray(_object_spread_props$l(_object_spread$
|
|
4832
|
+
return firestoreUniqueArray(_object_spread_props$l(_object_spread$q({}, config), {
|
|
4833
4833
|
filterUnique: util.unique
|
|
4834
4834
|
}));
|
|
4835
4835
|
}
|
|
@@ -4844,7 +4844,7 @@ function optionalFirestoreField(config) {
|
|
|
4844
4844
|
* @__NO_SIDE_EFFECTS__
|
|
4845
4845
|
*/ function firestoreUniqueStringArray(config) {
|
|
4846
4846
|
var filterUnique = config == null ? util.unique : util.filterUniqueTransform(config);
|
|
4847
|
-
return firestoreUniqueArray(_object_spread_props$l(_object_spread$
|
|
4847
|
+
return firestoreUniqueArray(_object_spread_props$l(_object_spread$q({}, config), {
|
|
4848
4848
|
filterUnique: filterUnique
|
|
4849
4849
|
}));
|
|
4850
4850
|
}
|
|
@@ -4880,7 +4880,7 @@ function optionalFirestoreField(config) {
|
|
|
4880
4880
|
* @__NO_SIDE_EFFECTS__
|
|
4881
4881
|
*/ // eslint-disable-next-line sonarjs/no-identical-functions -- exposes a distinct typed alias for number arrays
|
|
4882
4882
|
function firestoreUniqueNumberArray(config) {
|
|
4883
|
-
return firestoreUniqueArray(_object_spread_props$l(_object_spread$
|
|
4883
|
+
return firestoreUniqueArray(_object_spread_props$l(_object_spread$q({}, config), {
|
|
4884
4884
|
filterUnique: util.unique
|
|
4885
4885
|
}));
|
|
4886
4886
|
}
|
|
@@ -5077,7 +5077,7 @@ function firestoreUniqueNumberArray(config) {
|
|
|
5077
5077
|
* @__NO_SIDE_EFFECTS__
|
|
5078
5078
|
*/ function firestoreDencoderMap(config) {
|
|
5079
5079
|
var dencoder = config.dencoder;
|
|
5080
|
-
return firestoreEncodedObjectMap(_object_spread_props$l(_object_spread$
|
|
5080
|
+
return firestoreEncodedObjectMap(_object_spread_props$l(_object_spread$q({}, config), {
|
|
5081
5081
|
encoder: dencoder,
|
|
5082
5082
|
decoder: dencoder
|
|
5083
5083
|
}));
|
|
@@ -5113,7 +5113,7 @@ function firestoreUniqueNumberArray(config) {
|
|
|
5113
5113
|
* @__NO_SIDE_EFFECTS__
|
|
5114
5114
|
*/ function firestoreArrayMap() {
|
|
5115
5115
|
var config = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
5116
|
-
return firestoreMap(_object_spread$
|
|
5116
|
+
return firestoreMap(_object_spread$q({
|
|
5117
5117
|
mapFilter: util.KeyValueTypleValueFilter.EMPTY,
|
|
5118
5118
|
mapFieldValues: util.filterMaybeArrayValues
|
|
5119
5119
|
}, config));
|
|
@@ -5247,9 +5247,11 @@ function firestoreUniqueNumberArray(config) {
|
|
|
5247
5247
|
* // Nested address object with its own converters
|
|
5248
5248
|
* const addressField = firestoreSubObject<Address>({
|
|
5249
5249
|
* objectField: {
|
|
5250
|
-
*
|
|
5251
|
-
*
|
|
5252
|
-
*
|
|
5250
|
+
* fields: {
|
|
5251
|
+
* street: firestoreString(),
|
|
5252
|
+
* city: firestoreString(),
|
|
5253
|
+
* zip: firestoreString()
|
|
5254
|
+
* }
|
|
5253
5255
|
* }
|
|
5254
5256
|
* });
|
|
5255
5257
|
* ```
|
|
@@ -5277,6 +5279,64 @@ function firestoreUniqueNumberArray(config) {
|
|
|
5277
5279
|
}
|
|
5278
5280
|
});
|
|
5279
5281
|
}
|
|
5282
|
+
/**
|
|
5283
|
+
* Creates a field mapping configuration for a Firestore map whose values are complex objects.
|
|
5284
|
+
*
|
|
5285
|
+
* This is the map-keyed counterpart to {@link firestoreObjectArray}: each value in the map is
|
|
5286
|
+
* converted using its own set of field converters (via `objectField` or `firestoreField`), so
|
|
5287
|
+
* nested `Date`/enum/array fields round-trip properly.
|
|
5288
|
+
*
|
|
5289
|
+
* On write, null/undefined values are filtered from each object to match Firestore semantics, and
|
|
5290
|
+
* empty values (including objects with no keys) are removed from the map entirely.
|
|
5291
|
+
*
|
|
5292
|
+
* NOTE: this exists instead of passing a sub-object's `mapFunctions.to`/`.from` directly to
|
|
5293
|
+
* {@link firestoreEncodedObjectMap}. That encoder is invoked as `mapFn(value, key)` by
|
|
5294
|
+
* `mapObjectMap()`, while a `ModelMapFunctions`' second parameter is the accumulator *target* — so
|
|
5295
|
+
* the map key string would be used as the write target and the conversion would throw at runtime.
|
|
5296
|
+
* The arity is wrapped here, once, rather than at each call site.
|
|
5297
|
+
*
|
|
5298
|
+
* @param config - Configuration including the per-value conversions and optional map filtering.
|
|
5299
|
+
* @returns A field mapping configuration for object map values.
|
|
5300
|
+
*
|
|
5301
|
+
* @dbxModelSnapshotField
|
|
5302
|
+
* @dbxModelSnapshotFieldCategory map
|
|
5303
|
+
* @dbxModelSnapshotFieldTags map, record, dictionary, object, nested, embedded, structured, factory
|
|
5304
|
+
* @dbxModelSnapshotFieldRelated firestore-sub-object, firestore-object-array
|
|
5305
|
+
* @template T - The value model type
|
|
5306
|
+
* @template O - The value Firestore data type (defaults to FirestoreModelData<T>)
|
|
5307
|
+
* @template S - Key type (string, defaults to string)
|
|
5308
|
+
*
|
|
5309
|
+
* @example
|
|
5310
|
+
* ```ts
|
|
5311
|
+
* // Map of provider id -> connection entry
|
|
5312
|
+
* const entriesField = firestoreObjectMap<UserExternalConnectionEntry, FirestoreModelData<UserExternalConnectionEntry>, UserExternalConnectionProviderType>({
|
|
5313
|
+
* objectField: { fields: userExternalConnectionEntryFields }
|
|
5314
|
+
* });
|
|
5315
|
+
* ```
|
|
5316
|
+
*
|
|
5317
|
+
* @__NO_SIDE_EFFECTS__
|
|
5318
|
+
*/ function firestoreObjectMap(config) {
|
|
5319
|
+
var _config_objectField, _config_default;
|
|
5320
|
+
var _config_mapFilter = config.mapFilter, mapFilter = _config_mapFilter === void 0 ? util.KeyValueTypleValueFilter.EMPTY_STRICT : _config_mapFilter;
|
|
5321
|
+
var objectField = (_config_objectField = config.objectField) !== null && _config_objectField !== void 0 ? _config_objectField : firestoreFieldConfigToModelMapFunctionsRef(config.firestoreField);
|
|
5322
|
+
var _toModelMapFunctions = util.toModelMapFunctions(objectField), from = _toModelMapFunctions.from, to = _toModelMapFunctions.to;
|
|
5323
|
+
// wrap to arity-1 map functions. See the note above.
|
|
5324
|
+
var decoder = function decoder(x) {
|
|
5325
|
+
return from(x);
|
|
5326
|
+
};
|
|
5327
|
+
var encoder = function encoder(x) {
|
|
5328
|
+
return util.filterNullAndUndefinedValues(to(x));
|
|
5329
|
+
};
|
|
5330
|
+
return firestoreEncodedObjectMap({
|
|
5331
|
+
default: (_config_default = config.default) !== null && _config_default !== void 0 ? _config_default : function() {
|
|
5332
|
+
return {};
|
|
5333
|
+
},
|
|
5334
|
+
defaultBeforeSave: config.defaultBeforeSave,
|
|
5335
|
+
mapFilter: mapFilter,
|
|
5336
|
+
encoder: encoder,
|
|
5337
|
+
decoder: decoder
|
|
5338
|
+
});
|
|
5339
|
+
}
|
|
5280
5340
|
/**
|
|
5281
5341
|
* Creates a field mapping configuration for Firestore latitude/longitude string fields.
|
|
5282
5342
|
*
|
|
@@ -5585,7 +5645,7 @@ var MAX_FIRESTORE_MAP_ZOOM_LEVEL_VALUE = 22;
|
|
|
5585
5645
|
* @__NO_SIDE_EFFECTS__
|
|
5586
5646
|
*/ function firestoreBitwiseSet(config) {
|
|
5587
5647
|
var dencoder = util.bitwiseSetDencoder(config.maxIndex);
|
|
5588
|
-
return firestoreField(_object_spread_props$l(_object_spread$
|
|
5648
|
+
return firestoreField(_object_spread_props$l(_object_spread$q({
|
|
5589
5649
|
default: function _default() {
|
|
5590
5650
|
return new Set();
|
|
5591
5651
|
}
|
|
@@ -5606,7 +5666,7 @@ var MAX_FIRESTORE_MAP_ZOOM_LEVEL_VALUE = 22;
|
|
|
5606
5666
|
* @__NO_SIDE_EFFECTS__
|
|
5607
5667
|
*/ function firestoreBitwiseSetMap(config) {
|
|
5608
5668
|
var dencoder = util.bitwiseSetDencoder(config.maxIndex);
|
|
5609
|
-
return firestoreEncodedObjectMap(_object_spread_props$l(_object_spread$
|
|
5669
|
+
return firestoreEncodedObjectMap(_object_spread_props$l(_object_spread$q({
|
|
5610
5670
|
mapFilter: util.KeyValueTypleValueFilter.FALSY
|
|
5611
5671
|
}, config), {
|
|
5612
5672
|
encoder: dencoder,
|
|
@@ -5625,7 +5685,7 @@ var MAX_FIRESTORE_MAP_ZOOM_LEVEL_VALUE = 22;
|
|
|
5625
5685
|
* @__NO_SIDE_EFFECTS__
|
|
5626
5686
|
*/ function firestoreBitwiseObjectMap(config) {
|
|
5627
5687
|
var dencoder = config.dencoder;
|
|
5628
|
-
return firestoreEncodedObjectMap(_object_spread_props$l(_object_spread$
|
|
5688
|
+
return firestoreEncodedObjectMap(_object_spread_props$l(_object_spread$q({
|
|
5629
5689
|
mapFilter: util.KeyValueTypleValueFilter.FALSY
|
|
5630
5690
|
}, config), {
|
|
5631
5691
|
encoder: dencoder,
|
|
@@ -6291,7 +6351,7 @@ function _array_like_to_array$g(arr, len) {
|
|
|
6291
6351
|
function _array_without_holes$b(arr) {
|
|
6292
6352
|
if (Array.isArray(arr)) return _array_like_to_array$g(arr);
|
|
6293
6353
|
}
|
|
6294
|
-
function _define_property$
|
|
6354
|
+
function _define_property$v(obj, key, value) {
|
|
6295
6355
|
if (key in obj) {
|
|
6296
6356
|
Object.defineProperty(obj, key, {
|
|
6297
6357
|
value: value,
|
|
@@ -6310,7 +6370,7 @@ function _iterable_to_array$b(iter) {
|
|
|
6310
6370
|
function _non_iterable_spread$b() {
|
|
6311
6371
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6312
6372
|
}
|
|
6313
|
-
function _object_spread$
|
|
6373
|
+
function _object_spread$p(target) {
|
|
6314
6374
|
for(var i = 1; i < arguments.length; i++){
|
|
6315
6375
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6316
6376
|
var ownKeys = Object.keys(source);
|
|
@@ -6320,7 +6380,7 @@ function _object_spread$o(target) {
|
|
|
6320
6380
|
}));
|
|
6321
6381
|
}
|
|
6322
6382
|
ownKeys.forEach(function(key) {
|
|
6323
|
-
_define_property$
|
|
6383
|
+
_define_property$v(target, key, source[key]);
|
|
6324
6384
|
});
|
|
6325
6385
|
}
|
|
6326
6386
|
return target;
|
|
@@ -6553,7 +6613,7 @@ function _firestoreItemPageIterationWithSnapshotIteration(snapshotIteration) {
|
|
|
6553
6613
|
return x.docs;
|
|
6554
6614
|
}
|
|
6555
6615
|
});
|
|
6556
|
-
var result = _object_spread_props$k(_object_spread$
|
|
6616
|
+
var result = _object_spread_props$k(_object_spread$p({}, mappedIteration), {
|
|
6557
6617
|
snapshotIteration: snapshotIteration
|
|
6558
6618
|
});
|
|
6559
6619
|
return result;
|
|
@@ -7055,7 +7115,7 @@ function _async_to_generator$g(fn) {
|
|
|
7055
7115
|
});
|
|
7056
7116
|
};
|
|
7057
7117
|
}
|
|
7058
|
-
function _define_property$
|
|
7118
|
+
function _define_property$u(obj, key, value) {
|
|
7059
7119
|
if (key in obj) {
|
|
7060
7120
|
Object.defineProperty(obj, key, {
|
|
7061
7121
|
value: value,
|
|
@@ -7095,7 +7155,7 @@ function _iterable_to_array_limit$4(arr, i) {
|
|
|
7095
7155
|
function _non_iterable_rest$4() {
|
|
7096
7156
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7097
7157
|
}
|
|
7098
|
-
function _object_spread$
|
|
7158
|
+
function _object_spread$o(target) {
|
|
7099
7159
|
for(var i = 1; i < arguments.length; i++){
|
|
7100
7160
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7101
7161
|
var ownKeys = Object.keys(source);
|
|
@@ -7105,7 +7165,7 @@ function _object_spread$n(target) {
|
|
|
7105
7165
|
}));
|
|
7106
7166
|
}
|
|
7107
7167
|
ownKeys.forEach(function(key) {
|
|
7108
|
-
_define_property$
|
|
7168
|
+
_define_property$u(target, key, source[key]);
|
|
7109
7169
|
});
|
|
7110
7170
|
}
|
|
7111
7171
|
return target;
|
|
@@ -7272,7 +7332,7 @@ function _ts_generator$g(thisArg, body) {
|
|
|
7272
7332
|
loadPairForSnapshot = firestoreDocumentSnapshotPairsLoaderInstance(documentAccessor);
|
|
7273
7333
|
return [
|
|
7274
7334
|
2,
|
|
7275
|
-
iterateFirestoreDocumentSnapshots(_object_spread_props$j(_object_spread$
|
|
7335
|
+
iterateFirestoreDocumentSnapshots(_object_spread_props$j(_object_spread$o({}, config), {
|
|
7276
7336
|
iterateSnapshot: function iterateSnapshot(snapshot) {
|
|
7277
7337
|
return _async_to_generator$g(function() {
|
|
7278
7338
|
var pair;
|
|
@@ -7324,16 +7384,16 @@ function _ts_generator$g(thisArg, body) {
|
|
|
7324
7384
|
iterateSnapshot = config.iterateSnapshot, performTasksConfig = config.performTasksConfig, snapshotsPerformTasksConfig = config.snapshotsPerformTasksConfig;
|
|
7325
7385
|
return [
|
|
7326
7386
|
2,
|
|
7327
|
-
iterateFirestoreDocumentSnapshotBatches(_object_spread_props$j(_object_spread$
|
|
7387
|
+
iterateFirestoreDocumentSnapshotBatches(_object_spread_props$j(_object_spread$o({}, config), {
|
|
7328
7388
|
maxParallelCheckpoints: 1,
|
|
7329
7389
|
iterateSnapshotBatch: function iterateSnapshotBatch(docSnapshots) {
|
|
7330
7390
|
return _async_to_generator$g(function() {
|
|
7331
7391
|
return _ts_generator$g(this, function(_state) {
|
|
7332
7392
|
return [
|
|
7333
7393
|
2,
|
|
7334
|
-
util.performAsyncTasks(docSnapshots, iterateSnapshot, _object_spread$
|
|
7394
|
+
util.performAsyncTasks(docSnapshots, iterateSnapshot, _object_spread$o({
|
|
7335
7395
|
sequential: true
|
|
7336
|
-
}, snapshotsPerformTasksConfig !== null && snapshotsPerformTasksConfig !== void 0 ? snapshotsPerformTasksConfig : _object_spread_props$j(_object_spread$
|
|
7396
|
+
}, snapshotsPerformTasksConfig !== null && snapshotsPerformTasksConfig !== void 0 ? snapshotsPerformTasksConfig : _object_spread_props$j(_object_spread$o({}, performTasksConfig), {
|
|
7337
7397
|
nonConcurrentTaskKeyFactory: undefined,
|
|
7338
7398
|
beforeRetry: undefined
|
|
7339
7399
|
}) // don't pass the nonConcurrentTaskKeyFactory
|
|
@@ -7382,7 +7442,7 @@ function _ts_generator$g(thisArg, body) {
|
|
|
7382
7442
|
loadPairForSnapshot = firestoreDocumentSnapshotPairsLoaderInstance(documentAccessor);
|
|
7383
7443
|
return [
|
|
7384
7444
|
2,
|
|
7385
|
-
iterateFirestoreDocumentSnapshotBatches(_object_spread_props$j(_object_spread$
|
|
7445
|
+
iterateFirestoreDocumentSnapshotBatches(_object_spread_props$j(_object_spread$o({}, config), {
|
|
7386
7446
|
maxParallelCheckpoints: 1,
|
|
7387
7447
|
iterateSnapshotBatch: function iterateSnapshotBatch(snapshots, batchIndex) {
|
|
7388
7448
|
return _async_to_generator$g(function() {
|
|
@@ -7444,7 +7504,7 @@ function _ts_generator$g(thisArg, body) {
|
|
|
7444
7504
|
};
|
|
7445
7505
|
return [
|
|
7446
7506
|
2,
|
|
7447
|
-
iterateFirestoreDocumentSnapshotCheckpoints(_object_spread_props$j(_object_spread$
|
|
7507
|
+
iterateFirestoreDocumentSnapshotCheckpoints(_object_spread_props$j(_object_spread$o({}, config), {
|
|
7448
7508
|
iterateCheckpoint: function iterateCheckpoint(docSnapshots) {
|
|
7449
7509
|
return _async_to_generator$g(function() {
|
|
7450
7510
|
var result, batchSizeForSnapshotsResult, batches, i, performTasksResult;
|
|
@@ -7465,7 +7525,7 @@ function _ts_generator$g(thisArg, body) {
|
|
|
7465
7525
|
4,
|
|
7466
7526
|
util.performAsyncTasks(batches, function(x) {
|
|
7467
7527
|
return iterateSnapshotBatch(x, i++);
|
|
7468
|
-
}, _object_spread$
|
|
7528
|
+
}, _object_spread$o({
|
|
7469
7529
|
sequential: true
|
|
7470
7530
|
}, performTasksConfig))
|
|
7471
7531
|
];
|
|
@@ -8499,7 +8559,7 @@ function _array_like_to_array$c(arr, len) {
|
|
|
8499
8559
|
function _array_without_holes$8(arr) {
|
|
8500
8560
|
if (Array.isArray(arr)) return _array_like_to_array$c(arr);
|
|
8501
8561
|
}
|
|
8502
|
-
function _define_property$
|
|
8562
|
+
function _define_property$t(obj, key, value) {
|
|
8503
8563
|
if (key in obj) {
|
|
8504
8564
|
Object.defineProperty(obj, key, {
|
|
8505
8565
|
value: value,
|
|
@@ -8518,7 +8578,7 @@ function _iterable_to_array$8(iter) {
|
|
|
8518
8578
|
function _non_iterable_spread$8() {
|
|
8519
8579
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8520
8580
|
}
|
|
8521
|
-
function _object_spread$
|
|
8581
|
+
function _object_spread$n(target) {
|
|
8522
8582
|
for(var i = 1; i < arguments.length; i++){
|
|
8523
8583
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8524
8584
|
var ownKeys = Object.keys(source);
|
|
@@ -8528,7 +8588,7 @@ function _object_spread$m(target) {
|
|
|
8528
8588
|
}));
|
|
8529
8589
|
}
|
|
8530
8590
|
ownKeys.forEach(function(key) {
|
|
8531
|
-
_define_property$
|
|
8591
|
+
_define_property$t(target, key, source[key]);
|
|
8532
8592
|
});
|
|
8533
8593
|
}
|
|
8534
8594
|
return target;
|
|
@@ -8555,7 +8615,7 @@ function _object_spread_props$i(target, source) {
|
|
|
8555
8615
|
function _to_consumable_array$8(arr) {
|
|
8556
8616
|
return _array_without_holes$8(arr) || _iterable_to_array$8(arr) || _unsupported_iterable_to_array$c(arr) || _non_iterable_spread$8();
|
|
8557
8617
|
}
|
|
8558
|
-
function _type_of$
|
|
8618
|
+
function _type_of$a(obj) {
|
|
8559
8619
|
"@swc/helpers - typeof";
|
|
8560
8620
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
8561
8621
|
}
|
|
@@ -8574,7 +8634,7 @@ function _unsupported_iterable_to_array$c(o, minLen) {
|
|
|
8574
8634
|
// @__NO_SIDE_EFFECTS__
|
|
8575
8635
|
function firestoreModelIdentity(parentOrModelName, collectionNameOrModelName, inputCollectionName) {
|
|
8576
8636
|
var result;
|
|
8577
|
-
if ((typeof parentOrModelName === "undefined" ? "undefined" : _type_of$
|
|
8637
|
+
if ((typeof parentOrModelName === "undefined" ? "undefined" : _type_of$a(parentOrModelName)) === 'object') {
|
|
8578
8638
|
var collectionName = inputCollectionName !== null && inputCollectionName !== void 0 ? inputCollectionName : collectionNameOrModelName.toLowerCase();
|
|
8579
8639
|
var collectionType = "".concat(parentOrModelName.collectionType, "/").concat(collectionName);
|
|
8580
8640
|
result = {
|
|
@@ -8636,7 +8696,7 @@ function firestoreModelIdentity(parentOrModelName, collectionNameOrModelName, in
|
|
|
8636
8696
|
*/ function firestoreModelId(input) {
|
|
8637
8697
|
var key = '';
|
|
8638
8698
|
var id;
|
|
8639
|
-
if ((typeof input === "undefined" ? "undefined" : _type_of$
|
|
8699
|
+
if ((typeof input === "undefined" ? "undefined" : _type_of$a(input)) === 'object') {
|
|
8640
8700
|
if (input.id) {
|
|
8641
8701
|
id = input.id;
|
|
8642
8702
|
} else if (input.key) {
|
|
@@ -9027,7 +9087,7 @@ function firestoreModelIdentity(parentOrModelName, collectionNameOrModelName, in
|
|
|
9027
9087
|
function readFirestoreModelKey(input) {
|
|
9028
9088
|
var required = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
9029
9089
|
var key;
|
|
9030
|
-
if ((typeof input === "undefined" ? "undefined" : _type_of$
|
|
9090
|
+
if ((typeof input === "undefined" ? "undefined" : _type_of$a(input)) === 'object') {
|
|
9031
9091
|
if (input.key) {
|
|
9032
9092
|
key = input.key;
|
|
9033
9093
|
} else if (input.documentRef != null) {
|
|
@@ -9093,7 +9153,7 @@ var FIRESTORE_DUMMY_MODEL_KEY = 'dummymodel/dummykey';
|
|
|
9093
9153
|
var queryFactory = firestoreQueryFactory(config);
|
|
9094
9154
|
var queryDocument = firestoreCollectionQueryFactory(queryFactory, documentAccessorExtension).queryDocument;
|
|
9095
9155
|
var query = queryFactory.query;
|
|
9096
|
-
return _object_spread_props$i(_object_spread$
|
|
9156
|
+
return _object_spread_props$i(_object_spread$n({
|
|
9097
9157
|
config: config,
|
|
9098
9158
|
cache: cache,
|
|
9099
9159
|
modelIdentity: modelIdentity,
|
|
@@ -9132,7 +9192,7 @@ var FIRESTORE_DUMMY_MODEL_KEY = 'dummymodel/dummykey';
|
|
|
9132
9192
|
});
|
|
9133
9193
|
}
|
|
9134
9194
|
|
|
9135
|
-
function _define_property$
|
|
9195
|
+
function _define_property$s(obj, key, value) {
|
|
9136
9196
|
if (key in obj) {
|
|
9137
9197
|
Object.defineProperty(obj, key, {
|
|
9138
9198
|
value: value,
|
|
@@ -9145,7 +9205,7 @@ function _define_property$r(obj, key, value) {
|
|
|
9145
9205
|
}
|
|
9146
9206
|
return obj;
|
|
9147
9207
|
}
|
|
9148
|
-
function _object_spread$
|
|
9208
|
+
function _object_spread$m(target) {
|
|
9149
9209
|
for(var i = 1; i < arguments.length; i++){
|
|
9150
9210
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9151
9211
|
var ownKeys = Object.keys(source);
|
|
@@ -9155,7 +9215,7 @@ function _object_spread$l(target) {
|
|
|
9155
9215
|
}));
|
|
9156
9216
|
}
|
|
9157
9217
|
ownKeys.forEach(function(key) {
|
|
9158
|
-
_define_property$
|
|
9218
|
+
_define_property$s(target, key, source[key]);
|
|
9159
9219
|
});
|
|
9160
9220
|
}
|
|
9161
9221
|
return target;
|
|
@@ -9220,7 +9280,7 @@ function _object_spread_props$h(target, source) {
|
|
|
9220
9280
|
var queryDocument = firestoreCollectionQueryFactory(queryFactory, documentAccessorExtension).queryDocument;
|
|
9221
9281
|
var query = queryFactory.query;
|
|
9222
9282
|
// Return the fully constructed collection group
|
|
9223
|
-
return _object_spread_props$h(_object_spread$
|
|
9283
|
+
return _object_spread_props$h(_object_spread$m({
|
|
9224
9284
|
config: config,
|
|
9225
9285
|
cache: cache,
|
|
9226
9286
|
queryLike: queryLike,
|
|
@@ -9306,7 +9366,7 @@ function _object_spread_props$h(target, source) {
|
|
|
9306
9366
|
});
|
|
9307
9367
|
}
|
|
9308
9368
|
|
|
9309
|
-
function _define_property$
|
|
9369
|
+
function _define_property$r(obj, key, value) {
|
|
9310
9370
|
if (key in obj) {
|
|
9311
9371
|
Object.defineProperty(obj, key, {
|
|
9312
9372
|
value: value,
|
|
@@ -9319,7 +9379,7 @@ function _define_property$q(obj, key, value) {
|
|
|
9319
9379
|
}
|
|
9320
9380
|
return obj;
|
|
9321
9381
|
}
|
|
9322
|
-
function _object_spread$
|
|
9382
|
+
function _object_spread$l(target) {
|
|
9323
9383
|
for(var i = 1; i < arguments.length; i++){
|
|
9324
9384
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9325
9385
|
var ownKeys = Object.keys(source);
|
|
@@ -9329,7 +9389,7 @@ function _object_spread$k(target) {
|
|
|
9329
9389
|
}));
|
|
9330
9390
|
}
|
|
9331
9391
|
ownKeys.forEach(function(key) {
|
|
9332
|
-
_define_property$
|
|
9392
|
+
_define_property$r(target, key, source[key]);
|
|
9333
9393
|
});
|
|
9334
9394
|
}
|
|
9335
9395
|
return target;
|
|
@@ -9412,7 +9472,7 @@ function _object_spread_props$g(target, source) {
|
|
|
9412
9472
|
*/ function makePagedItemFirestoreCollection(config) {
|
|
9413
9473
|
var _config_converter;
|
|
9414
9474
|
var resolvedConverter = (_config_converter = config.converter) !== null && _config_converter !== void 0 ? _config_converter : defaultPagedItemPageDataConverter();
|
|
9415
|
-
var baseConfig = _object_spread_props$g(_object_spread$
|
|
9475
|
+
var baseConfig = _object_spread_props$g(_object_spread$l({}, config), {
|
|
9416
9476
|
converter: resolvedConverter
|
|
9417
9477
|
});
|
|
9418
9478
|
return util.build({
|
|
@@ -9436,7 +9496,7 @@ function _array_like_to_array$b(arr, len) {
|
|
|
9436
9496
|
function _array_without_holes$7(arr) {
|
|
9437
9497
|
if (Array.isArray(arr)) return _array_like_to_array$b(arr);
|
|
9438
9498
|
}
|
|
9439
|
-
function _define_property$
|
|
9499
|
+
function _define_property$q(obj, key, value) {
|
|
9440
9500
|
if (key in obj) {
|
|
9441
9501
|
Object.defineProperty(obj, key, {
|
|
9442
9502
|
value: value,
|
|
@@ -9455,7 +9515,7 @@ function _iterable_to_array$7(iter) {
|
|
|
9455
9515
|
function _non_iterable_spread$7() {
|
|
9456
9516
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9457
9517
|
}
|
|
9458
|
-
function _object_spread$
|
|
9518
|
+
function _object_spread$k(target) {
|
|
9459
9519
|
for(var i = 1; i < arguments.length; i++){
|
|
9460
9520
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9461
9521
|
var ownKeys = Object.keys(source);
|
|
@@ -9465,7 +9525,7 @@ function _object_spread$j(target) {
|
|
|
9465
9525
|
}));
|
|
9466
9526
|
}
|
|
9467
9527
|
ownKeys.forEach(function(key) {
|
|
9468
|
-
_define_property$
|
|
9528
|
+
_define_property$q(target, key, source[key]);
|
|
9469
9529
|
});
|
|
9470
9530
|
}
|
|
9471
9531
|
return target;
|
|
@@ -9522,7 +9582,7 @@ function _unsupported_iterable_to_array$b(o, minLen) {
|
|
|
9522
9582
|
var makeFirestoreCollectionConfig = function makeFirestoreCollectionConfig(config) {
|
|
9523
9583
|
var collection = config.collection;
|
|
9524
9584
|
var queryLike = collection !== null && collection !== void 0 ? collection : config.queryLike;
|
|
9525
|
-
return _object_spread_props$f(_object_spread$
|
|
9585
|
+
return _object_spread_props$f(_object_spread$k({}, config), {
|
|
9526
9586
|
collection: config.converter ? collection === null || collection === void 0 ? void 0 : collection.withConverter(config.converter) : collection,
|
|
9527
9587
|
queryLike: config.converter ? queryLike.withConverter(config.converter) : queryLike,
|
|
9528
9588
|
firestoreContext: context,
|
|
@@ -9874,7 +9934,7 @@ function _array_like_to_array$a(arr, len) {
|
|
|
9874
9934
|
function _array_without_holes$6(arr) {
|
|
9875
9935
|
if (Array.isArray(arr)) return _array_like_to_array$a(arr);
|
|
9876
9936
|
}
|
|
9877
|
-
function _define_property$
|
|
9937
|
+
function _define_property$p(obj, key, value) {
|
|
9878
9938
|
if (key in obj) {
|
|
9879
9939
|
Object.defineProperty(obj, key, {
|
|
9880
9940
|
value: value,
|
|
@@ -9893,7 +9953,7 @@ function _iterable_to_array$6(iter) {
|
|
|
9893
9953
|
function _non_iterable_spread$6() {
|
|
9894
9954
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9895
9955
|
}
|
|
9896
|
-
function _object_spread$
|
|
9956
|
+
function _object_spread$j(target) {
|
|
9897
9957
|
for(var i = 1; i < arguments.length; i++){
|
|
9898
9958
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9899
9959
|
var ownKeys = Object.keys(source);
|
|
@@ -9903,7 +9963,7 @@ function _object_spread$i(target) {
|
|
|
9903
9963
|
}));
|
|
9904
9964
|
}
|
|
9905
9965
|
ownKeys.forEach(function(key) {
|
|
9906
|
-
_define_property$
|
|
9966
|
+
_define_property$p(target, key, source[key]);
|
|
9907
9967
|
});
|
|
9908
9968
|
}
|
|
9909
9969
|
return target;
|
|
@@ -9955,16 +10015,16 @@ function _unsupported_iterable_to_array$a(o, minLen) {
|
|
|
9955
10015
|
}
|
|
9956
10016
|
return result;
|
|
9957
10017
|
}
|
|
9958
|
-
var updateData = _object_spread$
|
|
10018
|
+
var updateData = _object_spread$j({}, createUpdatesWithArrayFunction(union, firestore.arrayUnion), createUpdatesWithArrayFunction(remove, firestore.arrayRemove));
|
|
9959
10019
|
return updateData;
|
|
9960
10020
|
}
|
|
9961
10021
|
|
|
9962
|
-
function _class_call_check$
|
|
10022
|
+
function _class_call_check$i(instance, Constructor) {
|
|
9963
10023
|
if (!(instance instanceof Constructor)) {
|
|
9964
10024
|
throw new TypeError("Cannot call a class as a function");
|
|
9965
10025
|
}
|
|
9966
10026
|
}
|
|
9967
|
-
function _defineProperties$
|
|
10027
|
+
function _defineProperties$a(target, props) {
|
|
9968
10028
|
for(var i = 0; i < props.length; i++){
|
|
9969
10029
|
var descriptor = props[i];
|
|
9970
10030
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -9973,11 +10033,11 @@ function _defineProperties$9(target, props) {
|
|
|
9973
10033
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
9974
10034
|
}
|
|
9975
10035
|
}
|
|
9976
|
-
function _create_class$
|
|
9977
|
-
if (protoProps) _defineProperties$
|
|
10036
|
+
function _create_class$a(Constructor, protoProps, staticProps) {
|
|
10037
|
+
if (protoProps) _defineProperties$a(Constructor.prototype, protoProps);
|
|
9978
10038
|
return Constructor;
|
|
9979
10039
|
}
|
|
9980
|
-
function _define_property$
|
|
10040
|
+
function _define_property$o(obj, key, value) {
|
|
9981
10041
|
if (key in obj) {
|
|
9982
10042
|
Object.defineProperty(obj, key, {
|
|
9983
10043
|
value: value,
|
|
@@ -10001,11 +10061,11 @@ function _define_property$n(obj, key, value) {
|
|
|
10001
10061
|
* to add batch write semantics.
|
|
10002
10062
|
*/ var DefaultFirestoreDocumentDataAccessor = /*#__PURE__*/ function() {
|
|
10003
10063
|
function DefaultFirestoreDocumentDataAccessor(documentRef) {
|
|
10004
|
-
_class_call_check$
|
|
10005
|
-
_define_property$
|
|
10064
|
+
_class_call_check$i(this, DefaultFirestoreDocumentDataAccessor);
|
|
10065
|
+
_define_property$o(this, "_documentRef", void 0);
|
|
10006
10066
|
this._documentRef = documentRef;
|
|
10007
10067
|
}
|
|
10008
|
-
_create_class$
|
|
10068
|
+
_create_class$a(DefaultFirestoreDocumentDataAccessor, [
|
|
10009
10069
|
{
|
|
10010
10070
|
key: "documentRef",
|
|
10011
10071
|
get: function get() {
|
|
@@ -10125,22 +10185,22 @@ function _define_property$n(obj, key, value) {
|
|
|
10125
10185
|
};
|
|
10126
10186
|
}
|
|
10127
10187
|
|
|
10128
|
-
function _assert_this_initialized$
|
|
10188
|
+
function _assert_this_initialized$8(self) {
|
|
10129
10189
|
if (self === void 0) {
|
|
10130
10190
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
10131
10191
|
}
|
|
10132
10192
|
return self;
|
|
10133
10193
|
}
|
|
10134
|
-
function _call_super$
|
|
10135
|
-
derived = _get_prototype_of$
|
|
10136
|
-
return _possible_constructor_return$
|
|
10194
|
+
function _call_super$8(_this, derived, args) {
|
|
10195
|
+
derived = _get_prototype_of$8(derived);
|
|
10196
|
+
return _possible_constructor_return$8(_this, _is_native_reflect_construct$8() ? Reflect.construct(derived, args || [], _get_prototype_of$8(_this).constructor) : derived.apply(_this, args));
|
|
10137
10197
|
}
|
|
10138
|
-
function _class_call_check$
|
|
10198
|
+
function _class_call_check$h(instance, Constructor) {
|
|
10139
10199
|
if (!(instance instanceof Constructor)) {
|
|
10140
10200
|
throw new TypeError("Cannot call a class as a function");
|
|
10141
10201
|
}
|
|
10142
10202
|
}
|
|
10143
|
-
function _defineProperties$
|
|
10203
|
+
function _defineProperties$9(target, props) {
|
|
10144
10204
|
for(var i = 0; i < props.length; i++){
|
|
10145
10205
|
var descriptor = props[i];
|
|
10146
10206
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -10149,11 +10209,11 @@ function _defineProperties$8(target, props) {
|
|
|
10149
10209
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
10150
10210
|
}
|
|
10151
10211
|
}
|
|
10152
|
-
function _create_class$
|
|
10153
|
-
if (protoProps) _defineProperties$
|
|
10212
|
+
function _create_class$9(Constructor, protoProps, staticProps) {
|
|
10213
|
+
if (protoProps) _defineProperties$9(Constructor.prototype, protoProps);
|
|
10154
10214
|
return Constructor;
|
|
10155
10215
|
}
|
|
10156
|
-
function _define_property$
|
|
10216
|
+
function _define_property$n(obj, key, value) {
|
|
10157
10217
|
if (key in obj) {
|
|
10158
10218
|
Object.defineProperty(obj, key, {
|
|
10159
10219
|
value: value,
|
|
@@ -10166,13 +10226,13 @@ function _define_property$m(obj, key, value) {
|
|
|
10166
10226
|
}
|
|
10167
10227
|
return obj;
|
|
10168
10228
|
}
|
|
10169
|
-
function _get_prototype_of$
|
|
10170
|
-
_get_prototype_of$
|
|
10229
|
+
function _get_prototype_of$8(o) {
|
|
10230
|
+
_get_prototype_of$8 = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
10171
10231
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
10172
10232
|
};
|
|
10173
|
-
return _get_prototype_of$
|
|
10233
|
+
return _get_prototype_of$8(o);
|
|
10174
10234
|
}
|
|
10175
|
-
function _inherits$
|
|
10235
|
+
function _inherits$8(subClass, superClass) {
|
|
10176
10236
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
10177
10237
|
throw new TypeError("Super expression must either be null or a function");
|
|
10178
10238
|
}
|
|
@@ -10183,30 +10243,30 @@ function _inherits$7(subClass, superClass) {
|
|
|
10183
10243
|
configurable: true
|
|
10184
10244
|
}
|
|
10185
10245
|
});
|
|
10186
|
-
if (superClass) _set_prototype_of$
|
|
10246
|
+
if (superClass) _set_prototype_of$8(subClass, superClass);
|
|
10187
10247
|
}
|
|
10188
|
-
function _possible_constructor_return$
|
|
10189
|
-
if (call && (_type_of$
|
|
10248
|
+
function _possible_constructor_return$8(self, call) {
|
|
10249
|
+
if (call && (_type_of$9(call) === "object" || typeof call === "function")) {
|
|
10190
10250
|
return call;
|
|
10191
10251
|
}
|
|
10192
|
-
return _assert_this_initialized$
|
|
10252
|
+
return _assert_this_initialized$8(self);
|
|
10193
10253
|
}
|
|
10194
|
-
function _set_prototype_of$
|
|
10195
|
-
_set_prototype_of$
|
|
10254
|
+
function _set_prototype_of$8(o, p) {
|
|
10255
|
+
_set_prototype_of$8 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
10196
10256
|
o.__proto__ = p;
|
|
10197
10257
|
return o;
|
|
10198
10258
|
};
|
|
10199
|
-
return _set_prototype_of$
|
|
10259
|
+
return _set_prototype_of$8(o, p);
|
|
10200
10260
|
}
|
|
10201
|
-
function _type_of$
|
|
10261
|
+
function _type_of$9(obj) {
|
|
10202
10262
|
"@swc/helpers - typeof";
|
|
10203
10263
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
10204
10264
|
}
|
|
10205
|
-
function _is_native_reflect_construct$
|
|
10265
|
+
function _is_native_reflect_construct$8() {
|
|
10206
10266
|
try {
|
|
10207
10267
|
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
10208
10268
|
} catch (_) {}
|
|
10209
|
-
return (_is_native_reflect_construct$
|
|
10269
|
+
return (_is_native_reflect_construct$8 = function() {
|
|
10210
10270
|
return !!result;
|
|
10211
10271
|
})();
|
|
10212
10272
|
}
|
|
@@ -10218,17 +10278,17 @@ function _is_native_reflect_construct$7() {
|
|
|
10218
10278
|
* add operations to the batch rather than executing immediately. Read operations (`get`, `stream`, `exists`)
|
|
10219
10279
|
* still execute directly against Firestore. The batch must be committed separately after all operations are queued.
|
|
10220
10280
|
*/ var WriteBatchFirestoreDocumentDataAccessor = /*#__PURE__*/ function(DefaultFirestoreDocumentDataAccessor) {
|
|
10221
|
-
_inherits$
|
|
10281
|
+
_inherits$8(WriteBatchFirestoreDocumentDataAccessor, DefaultFirestoreDocumentDataAccessor);
|
|
10222
10282
|
function WriteBatchFirestoreDocumentDataAccessor(batch, documentRef) {
|
|
10223
|
-
_class_call_check$
|
|
10283
|
+
_class_call_check$h(this, WriteBatchFirestoreDocumentDataAccessor);
|
|
10224
10284
|
var _this;
|
|
10225
|
-
_this = _call_super$
|
|
10285
|
+
_this = _call_super$8(this, WriteBatchFirestoreDocumentDataAccessor, [
|
|
10226
10286
|
documentRef
|
|
10227
|
-
]), _define_property$
|
|
10287
|
+
]), _define_property$n(_this, "_batch", void 0);
|
|
10228
10288
|
_this._batch = batch;
|
|
10229
10289
|
return _this;
|
|
10230
10290
|
}
|
|
10231
|
-
_create_class$
|
|
10291
|
+
_create_class$9(WriteBatchFirestoreDocumentDataAccessor, [
|
|
10232
10292
|
{
|
|
10233
10293
|
key: "batch",
|
|
10234
10294
|
get: function get() {
|
|
@@ -10293,14 +10353,14 @@ function _is_native_reflect_construct$7() {
|
|
|
10293
10353
|
* and only applied when the batch is committed.
|
|
10294
10354
|
*/ var WriteBatchFirestoreDocumentContext = /*#__PURE__*/ function() {
|
|
10295
10355
|
function WriteBatchFirestoreDocumentContext(batch) {
|
|
10296
|
-
_class_call_check$
|
|
10297
|
-
_define_property$
|
|
10298
|
-
_define_property$
|
|
10299
|
-
_define_property$
|
|
10356
|
+
_class_call_check$h(this, WriteBatchFirestoreDocumentContext);
|
|
10357
|
+
_define_property$n(this, "_batch", void 0);
|
|
10358
|
+
_define_property$n(this, "contextType", exports.FirestoreDocumentContextType.BATCH);
|
|
10359
|
+
_define_property$n(this, "accessorFactory", void 0);
|
|
10300
10360
|
this._batch = batch;
|
|
10301
10361
|
this.accessorFactory = writeBatchAccessorFactory(batch);
|
|
10302
10362
|
}
|
|
10303
|
-
_create_class$
|
|
10363
|
+
_create_class$9(WriteBatchFirestoreDocumentContext, [
|
|
10304
10364
|
{
|
|
10305
10365
|
key: "batch",
|
|
10306
10366
|
get: function get() {
|
|
@@ -10325,12 +10385,12 @@ function _is_native_reflect_construct$7() {
|
|
|
10325
10385
|
return new WriteBatchFirestoreDocumentContext(batch);
|
|
10326
10386
|
}
|
|
10327
10387
|
|
|
10328
|
-
function _class_call_check$
|
|
10388
|
+
function _class_call_check$g(instance, Constructor) {
|
|
10329
10389
|
if (!(instance instanceof Constructor)) {
|
|
10330
10390
|
throw new TypeError("Cannot call a class as a function");
|
|
10331
10391
|
}
|
|
10332
10392
|
}
|
|
10333
|
-
function _defineProperties$
|
|
10393
|
+
function _defineProperties$8(target, props) {
|
|
10334
10394
|
for(var i = 0; i < props.length; i++){
|
|
10335
10395
|
var descriptor = props[i];
|
|
10336
10396
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -10339,11 +10399,11 @@ function _defineProperties$7(target, props) {
|
|
|
10339
10399
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
10340
10400
|
}
|
|
10341
10401
|
}
|
|
10342
|
-
function _create_class$
|
|
10343
|
-
if (protoProps) _defineProperties$
|
|
10402
|
+
function _create_class$8(Constructor, protoProps, staticProps) {
|
|
10403
|
+
if (protoProps) _defineProperties$8(Constructor.prototype, protoProps);
|
|
10344
10404
|
return Constructor;
|
|
10345
10405
|
}
|
|
10346
|
-
function _define_property$
|
|
10406
|
+
function _define_property$m(obj, key, value) {
|
|
10347
10407
|
if (key in obj) {
|
|
10348
10408
|
Object.defineProperty(obj, key, {
|
|
10349
10409
|
value: value,
|
|
@@ -10365,13 +10425,13 @@ function _define_property$l(obj, key, value) {
|
|
|
10365
10425
|
* from the transactional read rather than a live stream.
|
|
10366
10426
|
*/ var TransactionFirestoreDocumentDataAccessor = /*#__PURE__*/ function() {
|
|
10367
10427
|
function TransactionFirestoreDocumentDataAccessor(transaction, documentRef) {
|
|
10368
|
-
_class_call_check$
|
|
10369
|
-
_define_property$
|
|
10370
|
-
_define_property$
|
|
10428
|
+
_class_call_check$g(this, TransactionFirestoreDocumentDataAccessor);
|
|
10429
|
+
_define_property$m(this, "_transaction", void 0);
|
|
10430
|
+
_define_property$m(this, "_documentRef", void 0);
|
|
10371
10431
|
this._transaction = transaction;
|
|
10372
10432
|
this._documentRef = documentRef;
|
|
10373
10433
|
}
|
|
10374
|
-
_create_class$
|
|
10434
|
+
_create_class$8(TransactionFirestoreDocumentDataAccessor, [
|
|
10375
10435
|
{
|
|
10376
10436
|
key: "transaction",
|
|
10377
10437
|
get: function get() {
|
|
@@ -10487,14 +10547,14 @@ function _define_property$l(obj, key, value) {
|
|
|
10487
10547
|
* consistent and all writes are applied atomically when the transaction completes.
|
|
10488
10548
|
*/ var TransactionFirestoreDocumentContext = /*#__PURE__*/ function() {
|
|
10489
10549
|
function TransactionFirestoreDocumentContext(transaction) {
|
|
10490
|
-
_class_call_check$
|
|
10491
|
-
_define_property$
|
|
10492
|
-
_define_property$
|
|
10493
|
-
_define_property$
|
|
10550
|
+
_class_call_check$g(this, TransactionFirestoreDocumentContext);
|
|
10551
|
+
_define_property$m(this, "_transaction", void 0);
|
|
10552
|
+
_define_property$m(this, "contextType", exports.FirestoreDocumentContextType.TRANSACTION);
|
|
10553
|
+
_define_property$m(this, "accessorFactory", void 0);
|
|
10494
10554
|
this._transaction = transaction;
|
|
10495
10555
|
this.accessorFactory = transactionAccessorFactory(transaction);
|
|
10496
10556
|
}
|
|
10497
|
-
_create_class$
|
|
10557
|
+
_create_class$8(TransactionFirestoreDocumentContext, [
|
|
10498
10558
|
{
|
|
10499
10559
|
key: "transaction",
|
|
10500
10560
|
get: function get() {
|
|
@@ -10703,7 +10763,7 @@ function _array_like_to_array$9(arr, len) {
|
|
|
10703
10763
|
function _array_without_holes$5(arr) {
|
|
10704
10764
|
if (Array.isArray(arr)) return _array_like_to_array$9(arr);
|
|
10705
10765
|
}
|
|
10706
|
-
function _define_property$
|
|
10766
|
+
function _define_property$l(obj, key, value) {
|
|
10707
10767
|
if (key in obj) {
|
|
10708
10768
|
Object.defineProperty(obj, key, {
|
|
10709
10769
|
value: value,
|
|
@@ -10722,7 +10782,7 @@ function _iterable_to_array$5(iter) {
|
|
|
10722
10782
|
function _non_iterable_spread$5() {
|
|
10723
10783
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10724
10784
|
}
|
|
10725
|
-
function _object_spread$
|
|
10785
|
+
function _object_spread$i(target) {
|
|
10726
10786
|
for(var i = 1; i < arguments.length; i++){
|
|
10727
10787
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10728
10788
|
var ownKeys = Object.keys(source);
|
|
@@ -10732,7 +10792,7 @@ function _object_spread$h(target) {
|
|
|
10732
10792
|
}));
|
|
10733
10793
|
}
|
|
10734
10794
|
ownKeys.forEach(function(key) {
|
|
10735
|
-
_define_property$
|
|
10795
|
+
_define_property$l(target, key, source[key]);
|
|
10736
10796
|
});
|
|
10737
10797
|
}
|
|
10738
10798
|
return target;
|
|
@@ -10786,29 +10846,29 @@ var _obj$1;
|
|
|
10786
10846
|
* Maps each abstract {@link FirestoreQueryConstraintType} to its client-side `firebase/firestore`
|
|
10787
10847
|
* implementation. The `FIRESTORE_OFFSET_QUERY_CONSTRAINT_TYPE` is `undefined` because Firestore
|
|
10788
10848
|
* client SDK does not support offset-based pagination (server-only feature).
|
|
10789
|
-
*/ var FIRESTORE_CLIENT_QUERY_CONSTRAINT_HANDLER_MAPPING = (_obj$1 = {}, _define_property$
|
|
10849
|
+
*/ var FIRESTORE_CLIENT_QUERY_CONSTRAINT_HANDLER_MAPPING = (_obj$1 = {}, _define_property$l(_obj$1, FIRESTORE_LIMIT_QUERY_CONSTRAINT_TYPE, function(builder, data) {
|
|
10790
10850
|
return addConstraintToBuilder(builder, firestore.limit(data.limit));
|
|
10791
|
-
}), _define_property$
|
|
10851
|
+
}), _define_property$l(_obj$1, FIRESTORE_LIMIT_TO_LAST_QUERY_CONSTRAINT_TYPE, function(builder, data) {
|
|
10792
10852
|
return addConstraintToBuilder(builder, firestore.limitToLast(data.limit));
|
|
10793
|
-
}), _define_property$
|
|
10853
|
+
}), _define_property$l(_obj$1, FIRESTORE_ORDER_BY_QUERY_CONSTRAINT_TYPE, function(builder, data) {
|
|
10794
10854
|
return addConstraintToBuilder(builder, firestore.orderBy(data.fieldPath, data.directionStr));
|
|
10795
|
-
}), _define_property$
|
|
10855
|
+
}), _define_property$l(_obj$1, FIRESTORE_ORDER_BY_DOCUMENT_ID_QUERY_CONSTRAINT_TYPE, function(builder, data) {
|
|
10796
10856
|
return addConstraintToBuilder(builder, firestore.orderBy(firestore.documentId(), data.directionStr));
|
|
10797
|
-
}), _define_property$
|
|
10857
|
+
}), _define_property$l(_obj$1, FIRESTORE_WHERE_QUERY_CONSTRAINT_TYPE, function(builder, data) {
|
|
10798
10858
|
return addConstraintToBuilder(builder, firestore.where(data.fieldPath, data.opStr, data.value));
|
|
10799
|
-
}), _define_property$
|
|
10859
|
+
}), _define_property$l(_obj$1, FIRESTORE_WHERE_DOCUMENT_ID_QUERY_CONSTRAINT_TYPE, function(builder, data) {
|
|
10800
10860
|
return addConstraintToBuilder(builder, firestore.where(firestore.documentId(), data.opStr, data.value));
|
|
10801
|
-
}), _define_property$
|
|
10861
|
+
}), _define_property$l(_obj$1, FIRESTORE_OFFSET_QUERY_CONSTRAINT_TYPE, undefined), _define_property$l(_obj$1, FIRESTORE_START_AT_QUERY_CONSTRAINT_TYPE, function(builder, data) {
|
|
10802
10862
|
return addConstraintToBuilder(builder, firestore.startAt(data.snapshot));
|
|
10803
|
-
}), _define_property$
|
|
10863
|
+
}), _define_property$l(_obj$1, FIRESTORE_START_AT_VALUE_QUERY_CONSTRAINT_TYPE, function(builder, data) {
|
|
10804
10864
|
return addConstraintToBuilder(builder, firestore.startAt.apply(void 0, _to_consumable_array$5(data.fieldValues)));
|
|
10805
|
-
}), _define_property$
|
|
10865
|
+
}), _define_property$l(_obj$1, FIRESTORE_START_AFTER_QUERY_CONSTRAINT_TYPE, function(builder, data) {
|
|
10806
10866
|
return addConstraintToBuilder(builder, firestore.startAfter(data.snapshot));
|
|
10807
|
-
}), _define_property$
|
|
10867
|
+
}), _define_property$l(_obj$1, FIRESTORE_END_AT_QUERY_CONSTRAINT_TYPE, function(builder, data) {
|
|
10808
10868
|
return addConstraintToBuilder(builder, firestore.endAt(data.snapshot));
|
|
10809
|
-
}), _define_property$
|
|
10869
|
+
}), _define_property$l(_obj$1, FIRESTORE_END_AT_VALUE_QUERY_CONSTRAINT_TYPE, function(builder, data) {
|
|
10810
10870
|
return addConstraintToBuilder(builder, firestore.endAt.apply(void 0, _to_consumable_array$5(data.fieldValues)));
|
|
10811
|
-
}), _define_property$
|
|
10871
|
+
}), _define_property$l(_obj$1, FIRESTORE_END_BEFORE_QUERY_CONSTRAINT_TYPE, function(builder, data) {
|
|
10812
10872
|
return addConstraintToBuilder(builder, firestore.endBefore(data.snapshot));
|
|
10813
10873
|
}), _obj$1);
|
|
10814
10874
|
/**
|
|
@@ -10853,7 +10913,7 @@ var _obj$1;
|
|
|
10853
10913
|
* // Used internally by firebaseFirestoreClientDrivers()
|
|
10854
10914
|
* ```
|
|
10855
10915
|
*/ function firebaseFirestoreQueryDriver() {
|
|
10856
|
-
return _object_spread_props$e(_object_spread$
|
|
10916
|
+
return _object_spread_props$e(_object_spread$i({}, firebaseFirestoreQueryConstraintFunctionsDriver()), {
|
|
10857
10917
|
countDocs: function countDocs(query) {
|
|
10858
10918
|
return firestore.getCountFromServer(query).then(function(x) {
|
|
10859
10919
|
return x.data().count;
|
|
@@ -10920,22 +10980,22 @@ var _obj$1;
|
|
|
10920
10980
|
* ```
|
|
10921
10981
|
*/ var clientFirebaseFirestoreContextFactory = firestoreContextFactory(firebaseFirestoreClientDrivers());
|
|
10922
10982
|
|
|
10923
|
-
function _assert_this_initialized$
|
|
10983
|
+
function _assert_this_initialized$7(self) {
|
|
10924
10984
|
if (self === void 0) {
|
|
10925
10985
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
10926
10986
|
}
|
|
10927
10987
|
return self;
|
|
10928
10988
|
}
|
|
10929
|
-
function _call_super$
|
|
10930
|
-
derived = _get_prototype_of$
|
|
10931
|
-
return _possible_constructor_return$
|
|
10989
|
+
function _call_super$7(_this, derived, args) {
|
|
10990
|
+
derived = _get_prototype_of$7(derived);
|
|
10991
|
+
return _possible_constructor_return$7(_this, _is_native_reflect_construct$7() ? Reflect.construct(derived, args || [], _get_prototype_of$7(_this).constructor) : derived.apply(_this, args));
|
|
10932
10992
|
}
|
|
10933
|
-
function _class_call_check$
|
|
10993
|
+
function _class_call_check$f(instance, Constructor) {
|
|
10934
10994
|
if (!(instance instanceof Constructor)) {
|
|
10935
10995
|
throw new TypeError("Cannot call a class as a function");
|
|
10936
10996
|
}
|
|
10937
10997
|
}
|
|
10938
|
-
function _defineProperties$
|
|
10998
|
+
function _defineProperties$7(target, props) {
|
|
10939
10999
|
for(var i = 0; i < props.length; i++){
|
|
10940
11000
|
var descriptor = props[i];
|
|
10941
11001
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -10944,12 +11004,12 @@ function _defineProperties$6(target, props) {
|
|
|
10944
11004
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
10945
11005
|
}
|
|
10946
11006
|
}
|
|
10947
|
-
function _create_class$
|
|
10948
|
-
if (protoProps) _defineProperties$
|
|
10949
|
-
if (staticProps) _defineProperties$
|
|
11007
|
+
function _create_class$7(Constructor, protoProps, staticProps) {
|
|
11008
|
+
if (protoProps) _defineProperties$7(Constructor.prototype, protoProps);
|
|
11009
|
+
if (staticProps) _defineProperties$7(Constructor, staticProps);
|
|
10950
11010
|
return Constructor;
|
|
10951
11011
|
}
|
|
10952
|
-
function _define_property$
|
|
11012
|
+
function _define_property$k(obj, key, value) {
|
|
10953
11013
|
if (key in obj) {
|
|
10954
11014
|
Object.defineProperty(obj, key, {
|
|
10955
11015
|
value: value,
|
|
@@ -10962,13 +11022,13 @@ function _define_property$j(obj, key, value) {
|
|
|
10962
11022
|
}
|
|
10963
11023
|
return obj;
|
|
10964
11024
|
}
|
|
10965
|
-
function _get_prototype_of$
|
|
10966
|
-
_get_prototype_of$
|
|
11025
|
+
function _get_prototype_of$7(o) {
|
|
11026
|
+
_get_prototype_of$7 = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
10967
11027
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
10968
11028
|
};
|
|
10969
|
-
return _get_prototype_of$
|
|
11029
|
+
return _get_prototype_of$7(o);
|
|
10970
11030
|
}
|
|
10971
|
-
function _inherits$
|
|
11031
|
+
function _inherits$7(subClass, superClass) {
|
|
10972
11032
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
10973
11033
|
throw new TypeError("Super expression must either be null or a function");
|
|
10974
11034
|
}
|
|
@@ -10979,9 +11039,9 @@ function _inherits$6(subClass, superClass) {
|
|
|
10979
11039
|
configurable: true
|
|
10980
11040
|
}
|
|
10981
11041
|
});
|
|
10982
|
-
if (superClass) _set_prototype_of$
|
|
11042
|
+
if (superClass) _set_prototype_of$7(subClass, superClass);
|
|
10983
11043
|
}
|
|
10984
|
-
function _object_spread$
|
|
11044
|
+
function _object_spread$h(target) {
|
|
10985
11045
|
for(var i = 1; i < arguments.length; i++){
|
|
10986
11046
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10987
11047
|
var ownKeys = Object.keys(source);
|
|
@@ -10991,33 +11051,33 @@ function _object_spread$g(target) {
|
|
|
10991
11051
|
}));
|
|
10992
11052
|
}
|
|
10993
11053
|
ownKeys.forEach(function(key) {
|
|
10994
|
-
_define_property$
|
|
11054
|
+
_define_property$k(target, key, source[key]);
|
|
10995
11055
|
});
|
|
10996
11056
|
}
|
|
10997
11057
|
return target;
|
|
10998
11058
|
}
|
|
10999
|
-
function _possible_constructor_return$
|
|
11000
|
-
if (call && (_type_of$
|
|
11059
|
+
function _possible_constructor_return$7(self, call) {
|
|
11060
|
+
if (call && (_type_of$8(call) === "object" || typeof call === "function")) {
|
|
11001
11061
|
return call;
|
|
11002
11062
|
}
|
|
11003
|
-
return _assert_this_initialized$
|
|
11063
|
+
return _assert_this_initialized$7(self);
|
|
11004
11064
|
}
|
|
11005
|
-
function _set_prototype_of$
|
|
11006
|
-
_set_prototype_of$
|
|
11065
|
+
function _set_prototype_of$7(o, p) {
|
|
11066
|
+
_set_prototype_of$7 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
11007
11067
|
o.__proto__ = p;
|
|
11008
11068
|
return o;
|
|
11009
11069
|
};
|
|
11010
|
-
return _set_prototype_of$
|
|
11070
|
+
return _set_prototype_of$7(o, p);
|
|
11011
11071
|
}
|
|
11012
|
-
function _type_of$
|
|
11072
|
+
function _type_of$8(obj) {
|
|
11013
11073
|
"@swc/helpers - typeof";
|
|
11014
11074
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
11015
11075
|
}
|
|
11016
|
-
function _is_native_reflect_construct$
|
|
11076
|
+
function _is_native_reflect_construct$7() {
|
|
11017
11077
|
try {
|
|
11018
11078
|
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
11019
11079
|
} catch (_) {}
|
|
11020
|
-
return (_is_native_reflect_construct$
|
|
11080
|
+
return (_is_native_reflect_construct$7 = function() {
|
|
11021
11081
|
return !!result;
|
|
11022
11082
|
})();
|
|
11023
11083
|
}
|
|
@@ -11048,17 +11108,17 @@ function _is_native_reflect_construct$6() {
|
|
|
11048
11108
|
* }
|
|
11049
11109
|
* ```
|
|
11050
11110
|
*/ var FirebaseServerError = /*#__PURE__*/ function(ServerErrorResponse) {
|
|
11051
|
-
_inherits$
|
|
11111
|
+
_inherits$7(FirebaseServerError, ServerErrorResponse);
|
|
11052
11112
|
function FirebaseServerError(firebaseError, serverError) {
|
|
11053
|
-
_class_call_check$
|
|
11113
|
+
_class_call_check$f(this, FirebaseServerError);
|
|
11054
11114
|
var _this;
|
|
11055
|
-
_this = _call_super$
|
|
11115
|
+
_this = _call_super$7(this, FirebaseServerError, [
|
|
11056
11116
|
serverError
|
|
11057
|
-
]), _define_property$
|
|
11117
|
+
]), _define_property$k(_this, "firebaseError", void 0);
|
|
11058
11118
|
_this.firebaseError = firebaseError;
|
|
11059
11119
|
return _this;
|
|
11060
11120
|
}
|
|
11061
|
-
_create_class$
|
|
11121
|
+
_create_class$7(FirebaseServerError, [
|
|
11062
11122
|
{
|
|
11063
11123
|
key: "_error",
|
|
11064
11124
|
get: function get() {
|
|
@@ -11076,7 +11136,7 @@ function _is_native_reflect_construct$6() {
|
|
|
11076
11136
|
* @returns A new {@link FirebaseServerError} wrapping the given Firebase error with structured server error details.
|
|
11077
11137
|
*/ function fromFirebaseError(error) {
|
|
11078
11138
|
var details = error.details;
|
|
11079
|
-
details = _object_spread$
|
|
11139
|
+
details = _object_spread$h({
|
|
11080
11140
|
status: 0,
|
|
11081
11141
|
message: error.message || error.name,
|
|
11082
11142
|
code: error.code
|
|
@@ -11118,7 +11178,7 @@ function _async_to_generator$b(fn) {
|
|
|
11118
11178
|
});
|
|
11119
11179
|
};
|
|
11120
11180
|
}
|
|
11121
|
-
function _define_property$
|
|
11181
|
+
function _define_property$j(obj, key, value) {
|
|
11122
11182
|
if (key in obj) {
|
|
11123
11183
|
Object.defineProperty(obj, key, {
|
|
11124
11184
|
value: value,
|
|
@@ -11131,7 +11191,7 @@ function _define_property$i(obj, key, value) {
|
|
|
11131
11191
|
}
|
|
11132
11192
|
return obj;
|
|
11133
11193
|
}
|
|
11134
|
-
function _object_spread$
|
|
11194
|
+
function _object_spread$g(target) {
|
|
11135
11195
|
for(var i = 1; i < arguments.length; i++){
|
|
11136
11196
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
11137
11197
|
var ownKeys = Object.keys(source);
|
|
@@ -11141,7 +11201,7 @@ function _object_spread$f(target) {
|
|
|
11141
11201
|
}));
|
|
11142
11202
|
}
|
|
11143
11203
|
ownKeys.forEach(function(key) {
|
|
11144
|
-
_define_property$
|
|
11204
|
+
_define_property$j(target, key, source[key]);
|
|
11145
11205
|
});
|
|
11146
11206
|
}
|
|
11147
11207
|
return target;
|
|
@@ -11165,7 +11225,7 @@ function _object_spread_props$d(target, source) {
|
|
|
11165
11225
|
}
|
|
11166
11226
|
return target;
|
|
11167
11227
|
}
|
|
11168
|
-
function _type_of$
|
|
11228
|
+
function _type_of$7(obj) {
|
|
11169
11229
|
"@swc/helpers - typeof";
|
|
11170
11230
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
11171
11231
|
}
|
|
@@ -11310,7 +11370,7 @@ function mapHttpsCallable(callable, wrap) {
|
|
|
11310
11370
|
mappedResultData = _state.sent();
|
|
11311
11371
|
return [
|
|
11312
11372
|
2,
|
|
11313
|
-
directData ? mappedResultData : _object_spread_props$d(_object_spread$
|
|
11373
|
+
directData ? mappedResultData : _object_spread_props$d(_object_spread$g({}, result), {
|
|
11314
11374
|
data: mappedResultData
|
|
11315
11375
|
})
|
|
11316
11376
|
];
|
|
@@ -11364,7 +11424,7 @@ function mapHttpsCallable(callable, wrap) {
|
|
|
11364
11424
|
* @dbxUtilRelated firebase-server-error, is-client-firebase-error, firebase-auth-error-to-readable-error
|
|
11365
11425
|
*/ function convertHttpsCallableErrorToReadableError(error) {
|
|
11366
11426
|
var result;
|
|
11367
|
-
if ((typeof error === "undefined" ? "undefined" : _type_of$
|
|
11427
|
+
if ((typeof error === "undefined" ? "undefined" : _type_of$7(error)) === 'object') {
|
|
11368
11428
|
if (isClientFirebaseError(error) && error.details != null) {
|
|
11369
11429
|
result = FirebaseServerError.fromFirebaseError(error);
|
|
11370
11430
|
} else {
|
|
@@ -11789,7 +11849,7 @@ function _unsupported_iterable_to_array$8(o, minLen) {
|
|
|
11789
11849
|
};
|
|
11790
11850
|
}
|
|
11791
11851
|
|
|
11792
|
-
function _class_call_check$
|
|
11852
|
+
function _class_call_check$e(instance, Constructor) {
|
|
11793
11853
|
if (!(instance instanceof Constructor)) {
|
|
11794
11854
|
throw new TypeError("Cannot call a class as a function");
|
|
11795
11855
|
}
|
|
@@ -11802,7 +11862,7 @@ function _class_call_check$c(instance, Constructor) {
|
|
|
11802
11862
|
*
|
|
11803
11863
|
* Is used by dbx-firebase
|
|
11804
11864
|
*/ var FirebaseDevelopmentFunctions = function FirebaseDevelopmentFunctions() {
|
|
11805
|
-
_class_call_check$
|
|
11865
|
+
_class_call_check$e(this, FirebaseDevelopmentFunctions);
|
|
11806
11866
|
}
|
|
11807
11867
|
;
|
|
11808
11868
|
|
|
@@ -12706,12 +12766,12 @@ var FIREBASE_SERVER_AUTH_CLAIMS_RESET_EXPIRES_AT_KEY = 'resetExpiresAt';
|
|
|
12706
12766
|
* Error code used when a password reset email has already been sent and the send-once constraint is active.
|
|
12707
12767
|
*/ var DBX_FIREBASE_SERVER_PASSWORD_RESET_SEND_ONCE_ERROR_CODE = 'PASSWORD_RESET_SEND_ONCE';
|
|
12708
12768
|
|
|
12709
|
-
function _class_call_check$
|
|
12769
|
+
function _class_call_check$d(instance, Constructor) {
|
|
12710
12770
|
if (!(instance instanceof Constructor)) {
|
|
12711
12771
|
throw new TypeError("Cannot call a class as a function");
|
|
12712
12772
|
}
|
|
12713
12773
|
}
|
|
12714
|
-
function _define_property$
|
|
12774
|
+
function _define_property$i(obj, key, value) {
|
|
12715
12775
|
if (key in obj) {
|
|
12716
12776
|
Object.defineProperty(obj, key, {
|
|
12717
12777
|
value: value,
|
|
@@ -12740,8 +12800,8 @@ function _define_property$h(obj, key, value) {
|
|
|
12740
12800
|
/**
|
|
12741
12801
|
* Entry in the list of available scheduled functions returned by the development endpoint.
|
|
12742
12802
|
*/ var ScheduledFunctionDevelopmentFirebaseFunctionListEntry = function ScheduledFunctionDevelopmentFirebaseFunctionListEntry() {
|
|
12743
|
-
_class_call_check$
|
|
12744
|
-
_define_property$
|
|
12803
|
+
_class_call_check$d(this, ScheduledFunctionDevelopmentFirebaseFunctionListEntry);
|
|
12804
|
+
_define_property$i(this, "name", void 0);
|
|
12745
12805
|
};
|
|
12746
12806
|
/**
|
|
12747
12807
|
* Development function specifier used to route requests to the scheduled function endpoint.
|
|
@@ -12849,7 +12909,7 @@ function _define_property$h(obj, key, value) {
|
|
|
12849
12909
|
'key?': model.clearable(firestoreModelIdType)
|
|
12850
12910
|
});
|
|
12851
12911
|
|
|
12852
|
-
function _assert_this_initialized$
|
|
12912
|
+
function _assert_this_initialized$6(self) {
|
|
12853
12913
|
if (self === void 0) {
|
|
12854
12914
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
12855
12915
|
}
|
|
@@ -12884,16 +12944,16 @@ function _async_to_generator$a(fn) {
|
|
|
12884
12944
|
});
|
|
12885
12945
|
};
|
|
12886
12946
|
}
|
|
12887
|
-
function _call_super$
|
|
12888
|
-
derived = _get_prototype_of$
|
|
12889
|
-
return _possible_constructor_return$
|
|
12947
|
+
function _call_super$6(_this, derived, args) {
|
|
12948
|
+
derived = _get_prototype_of$6(derived);
|
|
12949
|
+
return _possible_constructor_return$6(_this, _is_native_reflect_construct$6() ? Reflect.construct(derived, args || [], _get_prototype_of$6(_this).constructor) : derived.apply(_this, args));
|
|
12890
12950
|
}
|
|
12891
|
-
function _class_call_check$
|
|
12951
|
+
function _class_call_check$c(instance, Constructor) {
|
|
12892
12952
|
if (!(instance instanceof Constructor)) {
|
|
12893
12953
|
throw new TypeError("Cannot call a class as a function");
|
|
12894
12954
|
}
|
|
12895
12955
|
}
|
|
12896
|
-
function _defineProperties$
|
|
12956
|
+
function _defineProperties$6(target, props) {
|
|
12897
12957
|
for(var i = 0; i < props.length; i++){
|
|
12898
12958
|
var descriptor = props[i];
|
|
12899
12959
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -12902,11 +12962,11 @@ function _defineProperties$5(target, props) {
|
|
|
12902
12962
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
12903
12963
|
}
|
|
12904
12964
|
}
|
|
12905
|
-
function _create_class$
|
|
12906
|
-
if (protoProps) _defineProperties$
|
|
12965
|
+
function _create_class$6(Constructor, protoProps, staticProps) {
|
|
12966
|
+
if (protoProps) _defineProperties$6(Constructor.prototype, protoProps);
|
|
12907
12967
|
return Constructor;
|
|
12908
12968
|
}
|
|
12909
|
-
function _define_property$
|
|
12969
|
+
function _define_property$h(obj, key, value) {
|
|
12910
12970
|
if (key in obj) {
|
|
12911
12971
|
Object.defineProperty(obj, key, {
|
|
12912
12972
|
value: value,
|
|
@@ -12919,13 +12979,13 @@ function _define_property$g(obj, key, value) {
|
|
|
12919
12979
|
}
|
|
12920
12980
|
return obj;
|
|
12921
12981
|
}
|
|
12922
|
-
function _get_prototype_of$
|
|
12923
|
-
_get_prototype_of$
|
|
12982
|
+
function _get_prototype_of$6(o) {
|
|
12983
|
+
_get_prototype_of$6 = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
12924
12984
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
12925
12985
|
};
|
|
12926
|
-
return _get_prototype_of$
|
|
12986
|
+
return _get_prototype_of$6(o);
|
|
12927
12987
|
}
|
|
12928
|
-
function _inherits$
|
|
12988
|
+
function _inherits$6(subClass, superClass) {
|
|
12929
12989
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
12930
12990
|
throw new TypeError("Super expression must either be null or a function");
|
|
12931
12991
|
}
|
|
@@ -12936,30 +12996,30 @@ function _inherits$5(subClass, superClass) {
|
|
|
12936
12996
|
configurable: true
|
|
12937
12997
|
}
|
|
12938
12998
|
});
|
|
12939
|
-
if (superClass) _set_prototype_of$
|
|
12999
|
+
if (superClass) _set_prototype_of$6(subClass, superClass);
|
|
12940
13000
|
}
|
|
12941
|
-
function _possible_constructor_return$
|
|
12942
|
-
if (call && (_type_of$
|
|
13001
|
+
function _possible_constructor_return$6(self, call) {
|
|
13002
|
+
if (call && (_type_of$6(call) === "object" || typeof call === "function")) {
|
|
12943
13003
|
return call;
|
|
12944
13004
|
}
|
|
12945
|
-
return _assert_this_initialized$
|
|
13005
|
+
return _assert_this_initialized$6(self);
|
|
12946
13006
|
}
|
|
12947
|
-
function _set_prototype_of$
|
|
12948
|
-
_set_prototype_of$
|
|
13007
|
+
function _set_prototype_of$6(o, p) {
|
|
13008
|
+
_set_prototype_of$6 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
12949
13009
|
o.__proto__ = p;
|
|
12950
13010
|
return o;
|
|
12951
13011
|
};
|
|
12952
|
-
return _set_prototype_of$
|
|
13012
|
+
return _set_prototype_of$6(o, p);
|
|
12953
13013
|
}
|
|
12954
|
-
function _type_of$
|
|
13014
|
+
function _type_of$6(obj) {
|
|
12955
13015
|
"@swc/helpers - typeof";
|
|
12956
13016
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
12957
13017
|
}
|
|
12958
|
-
function _is_native_reflect_construct$
|
|
13018
|
+
function _is_native_reflect_construct$6() {
|
|
12959
13019
|
try {
|
|
12960
13020
|
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
12961
13021
|
} catch (_) {}
|
|
12962
|
-
return (_is_native_reflect_construct$
|
|
13022
|
+
return (_is_native_reflect_construct$6 = function() {
|
|
12963
13023
|
return !!result;
|
|
12964
13024
|
})();
|
|
12965
13025
|
}
|
|
@@ -13068,17 +13128,17 @@ function _ts_generator$a(thisArg, body) {
|
|
|
13068
13128
|
* Loads the document snapshot, checks existence, and delegates role computation to the configured delegate.
|
|
13069
13129
|
* Used internally by {@link firebaseModelPermissionService}.
|
|
13070
13130
|
*/ var FirebaseModelPermissionServiceInstance = /*#__PURE__*/ function(AbstractModelPermissionService) {
|
|
13071
|
-
_inherits$
|
|
13131
|
+
_inherits$6(FirebaseModelPermissionServiceInstance, AbstractModelPermissionService);
|
|
13072
13132
|
function FirebaseModelPermissionServiceInstance(delegate) {
|
|
13073
|
-
_class_call_check$
|
|
13133
|
+
_class_call_check$c(this, FirebaseModelPermissionServiceInstance);
|
|
13074
13134
|
var _this;
|
|
13075
|
-
_this = _call_super$
|
|
13135
|
+
_this = _call_super$6(this, FirebaseModelPermissionServiceInstance, [
|
|
13076
13136
|
delegate
|
|
13077
|
-
]), _define_property$
|
|
13137
|
+
]), _define_property$h(_this, "_delegate", void 0);
|
|
13078
13138
|
_this._delegate = delegate;
|
|
13079
13139
|
return _this;
|
|
13080
13140
|
}
|
|
13081
|
-
_create_class$
|
|
13141
|
+
_create_class$6(FirebaseModelPermissionServiceInstance, [
|
|
13082
13142
|
{
|
|
13083
13143
|
key: "delegate",
|
|
13084
13144
|
get: function get() {
|
|
@@ -13141,12 +13201,12 @@ function _ts_generator$a(thisArg, body) {
|
|
|
13141
13201
|
return new FirebaseModelPermissionServiceInstance(delegate);
|
|
13142
13202
|
}
|
|
13143
13203
|
|
|
13144
|
-
function _class_call_check$
|
|
13204
|
+
function _class_call_check$b(instance, Constructor) {
|
|
13145
13205
|
if (!(instance instanceof Constructor)) {
|
|
13146
13206
|
throw new TypeError("Cannot call a class as a function");
|
|
13147
13207
|
}
|
|
13148
13208
|
}
|
|
13149
|
-
function _defineProperties$
|
|
13209
|
+
function _defineProperties$5(target, props) {
|
|
13150
13210
|
for(var i = 0; i < props.length; i++){
|
|
13151
13211
|
var descriptor = props[i];
|
|
13152
13212
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -13155,11 +13215,11 @@ function _defineProperties$4(target, props) {
|
|
|
13155
13215
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
13156
13216
|
}
|
|
13157
13217
|
}
|
|
13158
|
-
function _create_class$
|
|
13159
|
-
if (protoProps) _defineProperties$
|
|
13218
|
+
function _create_class$5(Constructor, protoProps, staticProps) {
|
|
13219
|
+
if (protoProps) _defineProperties$5(Constructor.prototype, protoProps);
|
|
13160
13220
|
return Constructor;
|
|
13161
13221
|
}
|
|
13162
|
-
function _define_property$
|
|
13222
|
+
function _define_property$g(obj, key, value) {
|
|
13163
13223
|
if (key in obj) {
|
|
13164
13224
|
Object.defineProperty(obj, key, {
|
|
13165
13225
|
value: value,
|
|
@@ -13179,13 +13239,13 @@ function _define_property$f(obj, key, value) {
|
|
|
13179
13239
|
* to a {@link GrantedRoleMapReader}. Throws context-specific errors via the permission error context.
|
|
13180
13240
|
*/ var ContextGrantedModelRolesReaderInstance = /*#__PURE__*/ function() {
|
|
13181
13241
|
function ContextGrantedModelRolesReaderInstance(contextGrantedModelRoles) {
|
|
13182
|
-
_class_call_check$
|
|
13183
|
-
_define_property$
|
|
13184
|
-
_define_property$
|
|
13242
|
+
_class_call_check$b(this, ContextGrantedModelRolesReaderInstance);
|
|
13243
|
+
_define_property$g(this, "_contextGrantedModelRoles", void 0);
|
|
13244
|
+
_define_property$g(this, "_roleReader", void 0);
|
|
13185
13245
|
this._contextGrantedModelRoles = contextGrantedModelRoles;
|
|
13186
13246
|
this._roleReader = model.grantedRoleMapReader(contextGrantedModelRoles.roleMap);
|
|
13187
13247
|
}
|
|
13188
|
-
_create_class$
|
|
13248
|
+
_create_class$5(ContextGrantedModelRolesReaderInstance, [
|
|
13189
13249
|
{
|
|
13190
13250
|
key: "contextGrantedModelRoles",
|
|
13191
13251
|
get: function get() {
|
|
@@ -13703,7 +13763,7 @@ function _ts_generator$9(thisArg, body) {
|
|
|
13703
13763
|
* Error code for an invalid or inaccessible cursor document key in a query request.
|
|
13704
13764
|
*/ var BAD_DOCUMENT_QUERY_CURSOR_ERROR_CODE = 'BAD_DOCUMENT_QUERY_CURSOR';
|
|
13705
13765
|
|
|
13706
|
-
function _define_property$
|
|
13766
|
+
function _define_property$f(obj, key, value) {
|
|
13707
13767
|
if (key in obj) {
|
|
13708
13768
|
Object.defineProperty(obj, key, {
|
|
13709
13769
|
value: value,
|
|
@@ -13716,7 +13776,7 @@ function _define_property$e(obj, key, value) {
|
|
|
13716
13776
|
}
|
|
13717
13777
|
return obj;
|
|
13718
13778
|
}
|
|
13719
|
-
function _object_spread$
|
|
13779
|
+
function _object_spread$f(target) {
|
|
13720
13780
|
for(var i = 1; i < arguments.length; i++){
|
|
13721
13781
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
13722
13782
|
var ownKeys = Object.keys(source);
|
|
@@ -13726,7 +13786,7 @@ function _object_spread$e(target) {
|
|
|
13726
13786
|
}));
|
|
13727
13787
|
}
|
|
13728
13788
|
ownKeys.forEach(function(key) {
|
|
13729
|
-
_define_property$
|
|
13789
|
+
_define_property$f(target, key, source[key]);
|
|
13730
13790
|
});
|
|
13731
13791
|
}
|
|
13732
13792
|
return target;
|
|
@@ -13883,7 +13943,7 @@ function _object_spread_props$c(target, source) {
|
|
|
13883
13943
|
*/ function firebaseModelsService(services) {
|
|
13884
13944
|
var firebaseModelsServiceFunction = function firebaseModelsServiceFunction1(type, context) {
|
|
13885
13945
|
var firebaseModelService = services[type];
|
|
13886
|
-
var contextWithService = _object_spread_props$c(_object_spread$
|
|
13946
|
+
var contextWithService = _object_spread_props$c(_object_spread$f({}, context), {
|
|
13887
13947
|
service: firebaseModelsServiceFunction
|
|
13888
13948
|
});
|
|
13889
13949
|
var service = inContextFirebaseModelServiceFactory(firebaseModelService)(contextWithService);
|
|
@@ -14036,7 +14096,7 @@ function _async_to_generator$8(fn) {
|
|
|
14036
14096
|
});
|
|
14037
14097
|
};
|
|
14038
14098
|
}
|
|
14039
|
-
function _define_property$
|
|
14099
|
+
function _define_property$e(obj, key, value) {
|
|
14040
14100
|
if (key in obj) {
|
|
14041
14101
|
Object.defineProperty(obj, key, {
|
|
14042
14102
|
value: value,
|
|
@@ -14049,7 +14109,7 @@ function _define_property$d(obj, key, value) {
|
|
|
14049
14109
|
}
|
|
14050
14110
|
return obj;
|
|
14051
14111
|
}
|
|
14052
|
-
function _object_spread$
|
|
14112
|
+
function _object_spread$e(target) {
|
|
14053
14113
|
for(var i = 1; i < arguments.length; i++){
|
|
14054
14114
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14055
14115
|
var ownKeys = Object.keys(source);
|
|
@@ -14059,7 +14119,7 @@ function _object_spread$d(target) {
|
|
|
14059
14119
|
}));
|
|
14060
14120
|
}
|
|
14061
14121
|
ownKeys.forEach(function(key) {
|
|
14062
|
-
_define_property$
|
|
14122
|
+
_define_property$e(target, key, source[key]);
|
|
14063
14123
|
});
|
|
14064
14124
|
}
|
|
14065
14125
|
return target;
|
|
@@ -14226,7 +14286,7 @@ function _ts_generator$8(thisArg, body) {
|
|
|
14226
14286
|
},
|
|
14227
14287
|
buildInputForNextPage: function buildInputForNextPage(pageResult, input, _options) {
|
|
14228
14288
|
var _pageResult_nextPageCursor;
|
|
14229
|
-
return _object_spread_props$b(_object_spread$
|
|
14289
|
+
return _object_spread_props$b(_object_spread$e({}, input), {
|
|
14230
14290
|
pageToken: (_pageResult_nextPageCursor = pageResult.nextPageCursor) !== null && _pageResult_nextPageCursor !== void 0 ? _pageResult_nextPageCursor : undefined
|
|
14231
14291
|
});
|
|
14232
14292
|
}
|
|
@@ -14241,7 +14301,7 @@ function _ts_generator$8(thisArg, body) {
|
|
|
14241
14301
|
* @returns The result of the paginated per-item iteration.
|
|
14242
14302
|
*/ function iterateStorageListFilesByEachFile(input) {
|
|
14243
14303
|
var folder = input.folder, includeNestedResults = input.includeNestedResults, pageToken = input.pageToken;
|
|
14244
|
-
return fetch.iterateFetchPagesByEachItem(_object_spread_props$b(_object_spread$
|
|
14304
|
+
return fetch.iterateFetchPagesByEachItem(_object_spread_props$b(_object_spread$e({}, input), {
|
|
14245
14305
|
input: {
|
|
14246
14306
|
folder: folder,
|
|
14247
14307
|
includeNestedResults: includeNestedResults,
|
|
@@ -14259,7 +14319,7 @@ function _ts_generator$8(thisArg, body) {
|
|
|
14259
14319
|
* @returns The result of the paginated page-level iteration.
|
|
14260
14320
|
*/ function iterateStorageListFiles(input) {
|
|
14261
14321
|
var folder = input.folder, includeNestedResults = input.includeNestedResults, pageToken = input.pageToken;
|
|
14262
|
-
return fetch.iterateFetchPages(_object_spread_props$b(_object_spread$
|
|
14322
|
+
return fetch.iterateFetchPages(_object_spread_props$b(_object_spread$e({}, input), {
|
|
14263
14323
|
input: {
|
|
14264
14324
|
folder: folder,
|
|
14265
14325
|
includeNestedResults: includeNestedResults,
|
|
@@ -14269,28 +14329,28 @@ function _ts_generator$8(thisArg, body) {
|
|
|
14269
14329
|
}));
|
|
14270
14330
|
}
|
|
14271
14331
|
|
|
14272
|
-
function _assert_this_initialized$
|
|
14332
|
+
function _assert_this_initialized$5(self) {
|
|
14273
14333
|
if (self === void 0) {
|
|
14274
14334
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
14275
14335
|
}
|
|
14276
14336
|
return self;
|
|
14277
14337
|
}
|
|
14278
|
-
function _call_super$
|
|
14279
|
-
derived = _get_prototype_of$
|
|
14280
|
-
return _possible_constructor_return$
|
|
14338
|
+
function _call_super$5(_this, derived, args) {
|
|
14339
|
+
derived = _get_prototype_of$5(derived);
|
|
14340
|
+
return _possible_constructor_return$5(_this, _is_native_reflect_construct$5() ? Reflect.construct(derived, args || [], _get_prototype_of$5(_this).constructor) : derived.apply(_this, args));
|
|
14281
14341
|
}
|
|
14282
|
-
function _class_call_check$
|
|
14342
|
+
function _class_call_check$a(instance, Constructor) {
|
|
14283
14343
|
if (!(instance instanceof Constructor)) {
|
|
14284
14344
|
throw new TypeError("Cannot call a class as a function");
|
|
14285
14345
|
}
|
|
14286
14346
|
}
|
|
14287
|
-
function _get_prototype_of$
|
|
14288
|
-
_get_prototype_of$
|
|
14347
|
+
function _get_prototype_of$5(o) {
|
|
14348
|
+
_get_prototype_of$5 = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
14289
14349
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
14290
14350
|
};
|
|
14291
|
-
return _get_prototype_of$
|
|
14351
|
+
return _get_prototype_of$5(o);
|
|
14292
14352
|
}
|
|
14293
|
-
function _inherits$
|
|
14353
|
+
function _inherits$5(subClass, superClass) {
|
|
14294
14354
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
14295
14355
|
throw new TypeError("Super expression must either be null or a function");
|
|
14296
14356
|
}
|
|
@@ -14301,30 +14361,30 @@ function _inherits$4(subClass, superClass) {
|
|
|
14301
14361
|
configurable: true
|
|
14302
14362
|
}
|
|
14303
14363
|
});
|
|
14304
|
-
if (superClass) _set_prototype_of$
|
|
14364
|
+
if (superClass) _set_prototype_of$5(subClass, superClass);
|
|
14305
14365
|
}
|
|
14306
|
-
function _possible_constructor_return$
|
|
14307
|
-
if (call && (_type_of$
|
|
14366
|
+
function _possible_constructor_return$5(self, call) {
|
|
14367
|
+
if (call && (_type_of$5(call) === "object" || typeof call === "function")) {
|
|
14308
14368
|
return call;
|
|
14309
14369
|
}
|
|
14310
|
-
return _assert_this_initialized$
|
|
14370
|
+
return _assert_this_initialized$5(self);
|
|
14311
14371
|
}
|
|
14312
|
-
function _set_prototype_of$
|
|
14313
|
-
_set_prototype_of$
|
|
14372
|
+
function _set_prototype_of$5(o, p) {
|
|
14373
|
+
_set_prototype_of$5 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
14314
14374
|
o.__proto__ = p;
|
|
14315
14375
|
return o;
|
|
14316
14376
|
};
|
|
14317
|
-
return _set_prototype_of$
|
|
14377
|
+
return _set_prototype_of$5(o, p);
|
|
14318
14378
|
}
|
|
14319
|
-
function _type_of$
|
|
14379
|
+
function _type_of$5(obj) {
|
|
14320
14380
|
"@swc/helpers - typeof";
|
|
14321
14381
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
14322
14382
|
}
|
|
14323
|
-
function _is_native_reflect_construct$
|
|
14383
|
+
function _is_native_reflect_construct$5() {
|
|
14324
14384
|
try {
|
|
14325
14385
|
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
14326
14386
|
} catch (_) {}
|
|
14327
|
-
return (_is_native_reflect_construct$
|
|
14387
|
+
return (_is_native_reflect_construct$5 = function() {
|
|
14328
14388
|
return !!result;
|
|
14329
14389
|
})();
|
|
14330
14390
|
}
|
|
@@ -14357,10 +14417,10 @@ function _is_native_reflect_construct$4() {
|
|
|
14357
14417
|
*
|
|
14358
14418
|
* Stream uploads are typically only available on server-side (Google Cloud Storage) implementations.
|
|
14359
14419
|
*/ var StorageFileUploadStreamUnsupportedError = /*#__PURE__*/ function(BaseError) {
|
|
14360
|
-
_inherits$
|
|
14420
|
+
_inherits$5(StorageFileUploadStreamUnsupportedError, BaseError);
|
|
14361
14421
|
function StorageFileUploadStreamUnsupportedError() {
|
|
14362
|
-
_class_call_check$
|
|
14363
|
-
return _call_super$
|
|
14422
|
+
_class_call_check$a(this, StorageFileUploadStreamUnsupportedError);
|
|
14423
|
+
return _call_super$5(this, StorageFileUploadStreamUnsupportedError, [
|
|
14364
14424
|
'Failed to upload file using a stream. The file does not support upload streams.'
|
|
14365
14425
|
]);
|
|
14366
14426
|
}
|
|
@@ -14691,7 +14751,7 @@ function _async_to_generator$6(fn) {
|
|
|
14691
14751
|
});
|
|
14692
14752
|
};
|
|
14693
14753
|
}
|
|
14694
|
-
function _define_property$
|
|
14754
|
+
function _define_property$d(obj, key, value) {
|
|
14695
14755
|
if (key in obj) {
|
|
14696
14756
|
Object.defineProperty(obj, key, {
|
|
14697
14757
|
value: value,
|
|
@@ -14710,7 +14770,7 @@ function _iterable_to_array$4(iter) {
|
|
|
14710
14770
|
function _non_iterable_spread$4() {
|
|
14711
14771
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14712
14772
|
}
|
|
14713
|
-
function _object_spread$
|
|
14773
|
+
function _object_spread$d(target) {
|
|
14714
14774
|
for(var i = 1; i < arguments.length; i++){
|
|
14715
14775
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14716
14776
|
var ownKeys = Object.keys(source);
|
|
@@ -14720,7 +14780,7 @@ function _object_spread$c(target) {
|
|
|
14720
14780
|
}));
|
|
14721
14781
|
}
|
|
14722
14782
|
ownKeys.forEach(function(key) {
|
|
14723
|
-
_define_property$
|
|
14783
|
+
_define_property$d(target, key, source[key]);
|
|
14724
14784
|
});
|
|
14725
14785
|
}
|
|
14726
14786
|
return target;
|
|
@@ -14924,7 +14984,7 @@ function _ts_generator$6(thisArg, body) {
|
|
|
14924
14984
|
contentEncoding: (_options_metadata2 = options.metadata) === null || _options_metadata2 === void 0 ? void 0 : _options_metadata2.contentEncoding,
|
|
14925
14985
|
contentLanguage: (_options_metadata3 = options.metadata) === null || _options_metadata3 === void 0 ? void 0 : _options_metadata3.contentLanguage,
|
|
14926
14986
|
contentType: (_options_metadata4 = options.metadata) === null || _options_metadata4 === void 0 ? void 0 : _options_metadata4.contentType,
|
|
14927
|
-
customMetadata: util.filterUndefinedValues(_object_spread$
|
|
14987
|
+
customMetadata: util.filterUndefinedValues(_object_spread$d({}, (_options_metadata5 = options.metadata) === null || _options_metadata5 === void 0 ? void 0 : _options_metadata5.customMetadata, options.customMetadata))
|
|
14928
14988
|
});
|
|
14929
14989
|
}
|
|
14930
14990
|
function uploadMetadataFromStorageUploadOptions(options) {
|
|
@@ -14933,7 +14993,7 @@ function _ts_generator$6(thisArg, body) {
|
|
|
14933
14993
|
var _options_contentType;
|
|
14934
14994
|
var _options_metadata;
|
|
14935
14995
|
result = _configureMetadata({
|
|
14936
|
-
metadata: _object_spread_props$a(_object_spread$
|
|
14996
|
+
metadata: _object_spread_props$a(_object_spread$d({}, options.metadata), {
|
|
14937
14997
|
contentType: (_options_contentType = options.contentType) !== null && _options_contentType !== void 0 ? _options_contentType : (_options_metadata = options.metadata) === null || _options_metadata === void 0 ? void 0 : _options_metadata.contentType
|
|
14938
14998
|
}),
|
|
14939
14999
|
customMetadata: options.customMetadata
|
|
@@ -15050,7 +15110,7 @@ function _ts_generator$6(thisArg, body) {
|
|
|
15050
15110
|
},
|
|
15051
15111
|
next: function next(param, result) {
|
|
15052
15112
|
var options = param.options, folder = param.folder;
|
|
15053
|
-
return folder.list(_object_spread_props$a(_object_spread$
|
|
15113
|
+
return folder.list(_object_spread_props$a(_object_spread$d({}, options, result.options), {
|
|
15054
15114
|
pageToken: result.listResult.nextPageToken
|
|
15055
15115
|
}));
|
|
15056
15116
|
},
|
|
@@ -15152,7 +15212,7 @@ function _ts_generator$6(thisArg, body) {
|
|
|
15152
15212
|
allNestedFolderFileResults = _state.sent();
|
|
15153
15213
|
allNestedFiles = allNestedFolderFileResults.flat();
|
|
15154
15214
|
allFiles = _to_consumable_array$4(allImmediateFiles).concat(_to_consumable_array$4(allNestedFiles));
|
|
15155
|
-
result = _object_spread_props$a(_object_spread$
|
|
15215
|
+
result = _object_spread_props$a(_object_spread$d({}, rootResults), {
|
|
15156
15216
|
files: function files() {
|
|
15157
15217
|
return allFiles;
|
|
15158
15218
|
},
|
|
@@ -15322,7 +15382,7 @@ function _ts_generator$6(thisArg, body) {
|
|
|
15322
15382
|
return "".concat(firestoreModelId(input), "_").concat(taskType); // combineation of model id and template type
|
|
15323
15383
|
}
|
|
15324
15384
|
|
|
15325
|
-
function _define_property$
|
|
15385
|
+
function _define_property$c(obj, key, value) {
|
|
15326
15386
|
if (key in obj) {
|
|
15327
15387
|
Object.defineProperty(obj, key, {
|
|
15328
15388
|
value: value,
|
|
@@ -15335,7 +15395,7 @@ function _define_property$b(obj, key, value) {
|
|
|
15335
15395
|
}
|
|
15336
15396
|
return obj;
|
|
15337
15397
|
}
|
|
15338
|
-
function _object_spread$
|
|
15398
|
+
function _object_spread$c(target) {
|
|
15339
15399
|
for(var i = 1; i < arguments.length; i++){
|
|
15340
15400
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
15341
15401
|
var ownKeys = Object.keys(source);
|
|
@@ -15345,7 +15405,7 @@ function _object_spread$b(target) {
|
|
|
15345
15405
|
}));
|
|
15346
15406
|
}
|
|
15347
15407
|
ownKeys.forEach(function(key) {
|
|
15348
|
-
_define_property$
|
|
15408
|
+
_define_property$c(target, key, source[key]);
|
|
15349
15409
|
});
|
|
15350
15410
|
}
|
|
15351
15411
|
return target;
|
|
@@ -15493,7 +15553,7 @@ function _object_spread_props$9(target, source) {
|
|
|
15493
15553
|
* @returns The merged config.
|
|
15494
15554
|
*/ function mergeNotificationUserDefaultNotificationBoxRecipientConfig(a, b) {
|
|
15495
15555
|
var c = mergeNotificationBoxRecipientTemplateConfigRecords(a.c, b.c);
|
|
15496
|
-
var result = _object_spread_props$9(_object_spread$
|
|
15556
|
+
var result = _object_spread_props$9(_object_spread$c({}, util.mergeObjects([
|
|
15497
15557
|
a,
|
|
15498
15558
|
b
|
|
15499
15559
|
], util.KeyValueTypleValueFilter.UNDEFINED)), {
|
|
@@ -15691,7 +15751,7 @@ var notificationBoxRecipientTemplateConfigDencoder = util.bitwiseObjectDencoder(
|
|
|
15691
15751
|
var array = [];
|
|
15692
15752
|
util.forEachKeyValue(input, {
|
|
15693
15753
|
forEach: function forEach(x) {
|
|
15694
|
-
array.push(_object_spread$
|
|
15754
|
+
array.push(_object_spread$c({
|
|
15695
15755
|
type: x[0]
|
|
15696
15756
|
}, x[1]));
|
|
15697
15757
|
}
|
|
@@ -15725,7 +15785,7 @@ function _array_like_to_array$5(arr, len) {
|
|
|
15725
15785
|
function _array_without_holes$3(arr) {
|
|
15726
15786
|
if (Array.isArray(arr)) return _array_like_to_array$5(arr);
|
|
15727
15787
|
}
|
|
15728
|
-
function _define_property$
|
|
15788
|
+
function _define_property$b(obj, key, value) {
|
|
15729
15789
|
if (key in obj) {
|
|
15730
15790
|
Object.defineProperty(obj, key, {
|
|
15731
15791
|
value: value,
|
|
@@ -15744,7 +15804,7 @@ function _iterable_to_array$3(iter) {
|
|
|
15744
15804
|
function _non_iterable_spread$3() {
|
|
15745
15805
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
15746
15806
|
}
|
|
15747
|
-
function _object_spread$
|
|
15807
|
+
function _object_spread$b(target) {
|
|
15748
15808
|
for(var i = 1; i < arguments.length; i++){
|
|
15749
15809
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
15750
15810
|
var ownKeys = Object.keys(source);
|
|
@@ -15754,7 +15814,7 @@ function _object_spread$a(target) {
|
|
|
15754
15814
|
}));
|
|
15755
15815
|
}
|
|
15756
15816
|
ownKeys.forEach(function(key) {
|
|
15757
|
-
_define_property$
|
|
15817
|
+
_define_property$b(target, key, source[key]);
|
|
15758
15818
|
});
|
|
15759
15819
|
}
|
|
15760
15820
|
return target;
|
|
@@ -15847,7 +15907,7 @@ var _obj;
|
|
|
15847
15907
|
* Higher wins. `ERROR` outranks `PENDING` so that a method with a known problem is not masked by an
|
|
15848
15908
|
* unrelated in-flight probe, and `SKIPPED` ranks lowest so an unconfigured method never drags a
|
|
15849
15909
|
* report down.
|
|
15850
|
-
*/ var NOTIFICATION_HEALTH_CHECK_STATUS_SEVERITY = (_obj = {}, _define_property$
|
|
15910
|
+
*/ var NOTIFICATION_HEALTH_CHECK_STATUS_SEVERITY = (_obj = {}, _define_property$b(_obj, exports.NotificationHealthCheckStatus.SKIPPED, 0), _define_property$b(_obj, exports.NotificationHealthCheckStatus.OK, 1), _define_property$b(_obj, exports.NotificationHealthCheckStatus.UNKNOWN, 2), _define_property$b(_obj, exports.NotificationHealthCheckStatus.PENDING, 3), _define_property$b(_obj, exports.NotificationHealthCheckStatus.WARNING, 4), _define_property$b(_obj, exports.NotificationHealthCheckStatus.ERROR, 5), _obj);
|
|
15851
15911
|
/**
|
|
15852
15912
|
* Rolls a set of statuses up into the single most severe one.
|
|
15853
15913
|
*
|
|
@@ -15985,7 +16045,7 @@ var _obj;
|
|
|
15985
16045
|
* @param probe - The attempt's time, settled status, target, and provider detail.
|
|
15986
16046
|
* @returns The probe recording the attempt.
|
|
15987
16047
|
*/ function untrackableNotificationHealthCheckProbe(probe) {
|
|
15988
|
-
return _object_spread_props$8(_object_spread$
|
|
16048
|
+
return _object_spread_props$8(_object_spread$b({}, probe), {
|
|
15989
16049
|
id: UNTRACKABLE_NOTIFICATION_HEALTH_CHECK_PROBE_ID
|
|
15990
16050
|
});
|
|
15991
16051
|
}
|
|
@@ -16330,22 +16390,22 @@ var notificationHealthCheckMapFunctions = firestoreNotificationHealthCheck.mapFu
|
|
|
16330
16390
|
return x.cat;
|
|
16331
16391
|
});
|
|
16332
16392
|
|
|
16333
|
-
function _assert_this_initialized$
|
|
16393
|
+
function _assert_this_initialized$4(self) {
|
|
16334
16394
|
if (self === void 0) {
|
|
16335
16395
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
16336
16396
|
}
|
|
16337
16397
|
return self;
|
|
16338
16398
|
}
|
|
16339
|
-
function _call_super$
|
|
16340
|
-
derived = _get_prototype_of$
|
|
16341
|
-
return _possible_constructor_return$
|
|
16399
|
+
function _call_super$4(_this, derived, args) {
|
|
16400
|
+
derived = _get_prototype_of$4(derived);
|
|
16401
|
+
return _possible_constructor_return$4(_this, _is_native_reflect_construct$4() ? Reflect.construct(derived, args || [], _get_prototype_of$4(_this).constructor) : derived.apply(_this, args));
|
|
16342
16402
|
}
|
|
16343
|
-
function _class_call_check$
|
|
16403
|
+
function _class_call_check$9(instance, Constructor) {
|
|
16344
16404
|
if (!(instance instanceof Constructor)) {
|
|
16345
16405
|
throw new TypeError("Cannot call a class as a function");
|
|
16346
16406
|
}
|
|
16347
16407
|
}
|
|
16348
|
-
function _defineProperties$
|
|
16408
|
+
function _defineProperties$4(target, props) {
|
|
16349
16409
|
for(var i = 0; i < props.length; i++){
|
|
16350
16410
|
var descriptor = props[i];
|
|
16351
16411
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -16354,17 +16414,17 @@ function _defineProperties$3(target, props) {
|
|
|
16354
16414
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
16355
16415
|
}
|
|
16356
16416
|
}
|
|
16357
|
-
function _create_class$
|
|
16358
|
-
if (protoProps) _defineProperties$
|
|
16417
|
+
function _create_class$4(Constructor, protoProps, staticProps) {
|
|
16418
|
+
if (protoProps) _defineProperties$4(Constructor.prototype, protoProps);
|
|
16359
16419
|
return Constructor;
|
|
16360
16420
|
}
|
|
16361
|
-
function _get_prototype_of$
|
|
16362
|
-
_get_prototype_of$
|
|
16421
|
+
function _get_prototype_of$4(o) {
|
|
16422
|
+
_get_prototype_of$4 = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
16363
16423
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
16364
16424
|
};
|
|
16365
|
-
return _get_prototype_of$
|
|
16425
|
+
return _get_prototype_of$4(o);
|
|
16366
16426
|
}
|
|
16367
|
-
function _inherits$
|
|
16427
|
+
function _inherits$4(subClass, superClass) {
|
|
16368
16428
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
16369
16429
|
throw new TypeError("Super expression must either be null or a function");
|
|
16370
16430
|
}
|
|
@@ -16375,30 +16435,30 @@ function _inherits$3(subClass, superClass) {
|
|
|
16375
16435
|
configurable: true
|
|
16376
16436
|
}
|
|
16377
16437
|
});
|
|
16378
|
-
if (superClass) _set_prototype_of$
|
|
16438
|
+
if (superClass) _set_prototype_of$4(subClass, superClass);
|
|
16379
16439
|
}
|
|
16380
|
-
function _possible_constructor_return$
|
|
16381
|
-
if (call && (_type_of$
|
|
16440
|
+
function _possible_constructor_return$4(self, call) {
|
|
16441
|
+
if (call && (_type_of$4(call) === "object" || typeof call === "function")) {
|
|
16382
16442
|
return call;
|
|
16383
16443
|
}
|
|
16384
|
-
return _assert_this_initialized$
|
|
16444
|
+
return _assert_this_initialized$4(self);
|
|
16385
16445
|
}
|
|
16386
|
-
function _set_prototype_of$
|
|
16387
|
-
_set_prototype_of$
|
|
16446
|
+
function _set_prototype_of$4(o, p) {
|
|
16447
|
+
_set_prototype_of$4 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
16388
16448
|
o.__proto__ = p;
|
|
16389
16449
|
return o;
|
|
16390
16450
|
};
|
|
16391
|
-
return _set_prototype_of$
|
|
16451
|
+
return _set_prototype_of$4(o, p);
|
|
16392
16452
|
}
|
|
16393
|
-
function _type_of$
|
|
16453
|
+
function _type_of$4(obj) {
|
|
16394
16454
|
"@swc/helpers - typeof";
|
|
16395
16455
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
16396
16456
|
}
|
|
16397
|
-
function _is_native_reflect_construct$
|
|
16457
|
+
function _is_native_reflect_construct$4() {
|
|
16398
16458
|
try {
|
|
16399
16459
|
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
16400
16460
|
} catch (_) {}
|
|
16401
|
-
return (_is_native_reflect_construct$
|
|
16461
|
+
return (_is_native_reflect_construct$4 = function() {
|
|
16402
16462
|
return !!result;
|
|
16403
16463
|
})();
|
|
16404
16464
|
}
|
|
@@ -16412,17 +16472,17 @@ function _is_native_reflect_construct$3() {
|
|
|
16412
16472
|
*
|
|
16413
16473
|
* @dbxModelGroup Notification
|
|
16414
16474
|
*/ var NotificationFirestoreCollections = function NotificationFirestoreCollections() {
|
|
16415
|
-
_class_call_check$
|
|
16475
|
+
_class_call_check$9(this, NotificationFirestoreCollections);
|
|
16416
16476
|
};
|
|
16417
16477
|
// MARK: NotificationUser
|
|
16418
16478
|
var notificationUserIdentity = firestoreModelIdentity('notificationUser', 'nu');
|
|
16419
16479
|
var NotificationUserDocument = /*#__PURE__*/ function(AbstractFirestoreDocument) {
|
|
16420
|
-
_inherits$
|
|
16480
|
+
_inherits$4(NotificationUserDocument, AbstractFirestoreDocument);
|
|
16421
16481
|
function NotificationUserDocument() {
|
|
16422
|
-
_class_call_check$
|
|
16423
|
-
return _call_super$
|
|
16482
|
+
_class_call_check$9(this, NotificationUserDocument);
|
|
16483
|
+
return _call_super$4(this, NotificationUserDocument, arguments);
|
|
16424
16484
|
}
|
|
16425
|
-
_create_class$
|
|
16485
|
+
_create_class$4(NotificationUserDocument, [
|
|
16426
16486
|
{
|
|
16427
16487
|
key: "modelIdentity",
|
|
16428
16488
|
get: function get() {
|
|
@@ -16486,12 +16546,12 @@ var NotificationUserDocument = /*#__PURE__*/ function(AbstractFirestoreDocument)
|
|
|
16486
16546
|
* The expected max length of a message on a NotificationSummary's embedded NotificationItem.
|
|
16487
16547
|
*/ var NOTIFICATION_SUMMARY_EMBEDDED_NOTIFICATION_ITEM_MESSAGE_MAX_LENGTH = 500;
|
|
16488
16548
|
var NotificationSummaryDocument = /*#__PURE__*/ function(AbstractFirestoreDocument) {
|
|
16489
|
-
_inherits$
|
|
16549
|
+
_inherits$4(NotificationSummaryDocument, AbstractFirestoreDocument);
|
|
16490
16550
|
function NotificationSummaryDocument() {
|
|
16491
|
-
_class_call_check$
|
|
16492
|
-
return _call_super$
|
|
16551
|
+
_class_call_check$9(this, NotificationSummaryDocument);
|
|
16552
|
+
return _call_super$4(this, NotificationSummaryDocument, arguments);
|
|
16493
16553
|
}
|
|
16494
|
-
_create_class$
|
|
16554
|
+
_create_class$4(NotificationSummaryDocument, [
|
|
16495
16555
|
{
|
|
16496
16556
|
key: "modelIdentity",
|
|
16497
16557
|
get: function get() {
|
|
@@ -16550,12 +16610,12 @@ var NotificationSummaryDocument = /*#__PURE__*/ function(AbstractFirestoreDocume
|
|
|
16550
16610
|
* Identity for {@link NotificationBox} documents. Collection name: `'notificationBox'`, short code: `'nb'`.
|
|
16551
16611
|
*/ var notificationBoxIdentity = firestoreModelIdentity('notificationBox', 'nb');
|
|
16552
16612
|
var NotificationBoxDocument = /*#__PURE__*/ function(AbstractFirestoreDocument) {
|
|
16553
|
-
_inherits$
|
|
16613
|
+
_inherits$4(NotificationBoxDocument, AbstractFirestoreDocument);
|
|
16554
16614
|
function NotificationBoxDocument() {
|
|
16555
|
-
_class_call_check$
|
|
16556
|
-
return _call_super$
|
|
16615
|
+
_class_call_check$9(this, NotificationBoxDocument);
|
|
16616
|
+
return _call_super$4(this, NotificationBoxDocument, arguments);
|
|
16557
16617
|
}
|
|
16558
|
-
_create_class$
|
|
16618
|
+
_create_class$4(NotificationBoxDocument, [
|
|
16559
16619
|
{
|
|
16560
16620
|
key: "modelIdentity",
|
|
16561
16621
|
get: function get() {
|
|
@@ -16715,12 +16775,12 @@ var NotificationBoxDocument = /*#__PURE__*/ function(AbstractFirestoreDocument)
|
|
|
16715
16775
|
*/ NotificationRecipientSendFlag[NotificationRecipientSendFlag["ONLY_GLOBAL_RECIPIENTS"] = 4] = "ONLY_GLOBAL_RECIPIENTS";
|
|
16716
16776
|
})(exports.NotificationRecipientSendFlag || (exports.NotificationRecipientSendFlag = {}));
|
|
16717
16777
|
var NotificationDocument = /*#__PURE__*/ function(AbstractFirestoreDocumentWithParent) {
|
|
16718
|
-
_inherits$
|
|
16778
|
+
_inherits$4(NotificationDocument, AbstractFirestoreDocumentWithParent);
|
|
16719
16779
|
function NotificationDocument() {
|
|
16720
|
-
_class_call_check$
|
|
16721
|
-
return _call_super$
|
|
16780
|
+
_class_call_check$9(this, NotificationDocument);
|
|
16781
|
+
return _call_super$4(this, NotificationDocument, arguments);
|
|
16722
16782
|
}
|
|
16723
|
-
_create_class$
|
|
16783
|
+
_create_class$4(NotificationDocument, [
|
|
16724
16784
|
{
|
|
16725
16785
|
key: "modelIdentity",
|
|
16726
16786
|
get: function get() {
|
|
@@ -16847,12 +16907,12 @@ var NotificationDocument = /*#__PURE__*/ function(AbstractFirestoreDocumentWithP
|
|
|
16847
16907
|
* The maximum number of notifications that can be stored in a NotificationWeek.
|
|
16848
16908
|
*/ var NOTIFICATION_WEEK_NOTIFICATION_ITEM_LIMIT = 5000;
|
|
16849
16909
|
var NotificationWeekDocument = /*#__PURE__*/ function(AbstractFirestoreDocumentWithParent) {
|
|
16850
|
-
_inherits$
|
|
16910
|
+
_inherits$4(NotificationWeekDocument, AbstractFirestoreDocumentWithParent);
|
|
16851
16911
|
function NotificationWeekDocument() {
|
|
16852
|
-
_class_call_check$
|
|
16853
|
-
return _call_super$
|
|
16912
|
+
_class_call_check$9(this, NotificationWeekDocument);
|
|
16913
|
+
return _call_super$4(this, NotificationWeekDocument, arguments);
|
|
16854
16914
|
}
|
|
16855
|
-
_create_class$
|
|
16915
|
+
_create_class$4(NotificationWeekDocument, [
|
|
16856
16916
|
{
|
|
16857
16917
|
key: "modelIdentity",
|
|
16858
16918
|
get: function get() {
|
|
@@ -16960,12 +17020,12 @@ var NotificationWeekDocument = /*#__PURE__*/ function(AbstractFirestoreDocumentW
|
|
|
16960
17020
|
}
|
|
16961
17021
|
};
|
|
16962
17022
|
var NotificationLoggedEventDayDocument = /*#__PURE__*/ function(AbstractFirestoreDocumentWithParent) {
|
|
16963
|
-
_inherits$
|
|
17023
|
+
_inherits$4(NotificationLoggedEventDayDocument, AbstractFirestoreDocumentWithParent);
|
|
16964
17024
|
function NotificationLoggedEventDayDocument() {
|
|
16965
|
-
_class_call_check$
|
|
16966
|
-
return _call_super$
|
|
17025
|
+
_class_call_check$9(this, NotificationLoggedEventDayDocument);
|
|
17026
|
+
return _call_super$4(this, NotificationLoggedEventDayDocument, arguments);
|
|
16967
17027
|
}
|
|
16968
|
-
_create_class$
|
|
17028
|
+
_create_class$4(NotificationLoggedEventDayDocument, [
|
|
16969
17029
|
{
|
|
16970
17030
|
key: "modelIdentity",
|
|
16971
17031
|
get: function get() {
|
|
@@ -17046,12 +17106,12 @@ var NotificationLoggedEventDayDocument = /*#__PURE__*/ function(AbstractFirestor
|
|
|
17046
17106
|
*
|
|
17047
17107
|
* Page docs are managed internally by the paged accessor — consumers do not address them directly.
|
|
17048
17108
|
*/ var NotificationLoggedEventDayPageDocument = /*#__PURE__*/ function(AbstractFirestoreDocumentWithParent) {
|
|
17049
|
-
_inherits$
|
|
17109
|
+
_inherits$4(NotificationLoggedEventDayPageDocument, AbstractFirestoreDocumentWithParent);
|
|
17050
17110
|
function NotificationLoggedEventDayPageDocument() {
|
|
17051
|
-
_class_call_check$
|
|
17052
|
-
return _call_super$
|
|
17111
|
+
_class_call_check$9(this, NotificationLoggedEventDayPageDocument);
|
|
17112
|
+
return _call_super$4(this, NotificationLoggedEventDayPageDocument, arguments);
|
|
17053
17113
|
}
|
|
17054
|
-
_create_class$
|
|
17114
|
+
_create_class$4(NotificationLoggedEventDayPageDocument, [
|
|
17055
17115
|
{
|
|
17056
17116
|
key: "modelIdentity",
|
|
17057
17117
|
get: function get() {
|
|
@@ -17123,7 +17183,7 @@ var NotificationLoggedEventDayDocument = /*#__PURE__*/ function(AbstractFirestor
|
|
|
17123
17183
|
});
|
|
17124
17184
|
}
|
|
17125
17185
|
|
|
17126
|
-
function _class_call_check$
|
|
17186
|
+
function _class_call_check$8(instance, Constructor) {
|
|
17127
17187
|
if (!(instance instanceof Constructor)) {
|
|
17128
17188
|
throw new TypeError("Cannot call a class as a function");
|
|
17129
17189
|
}
|
|
@@ -17255,7 +17315,7 @@ var NOTIFICATION_BOX_MODEL_CRUD_FUNCTIONS_CONFIG = {
|
|
|
17255
17315
|
* Implementations are generated by {@link notificationFunctionMap} for client-side use,
|
|
17256
17316
|
* and by the server-side function registration in the demo-api or application module.
|
|
17257
17317
|
*/ var NotificationFunctions = function NotificationFunctions() {
|
|
17258
|
-
_class_call_check$
|
|
17318
|
+
_class_call_check$8(this, NotificationFunctions);
|
|
17259
17319
|
};
|
|
17260
17320
|
/**
|
|
17261
17321
|
* Factory for creating client-side callable function instances from the notification CRUD configuration.
|
|
@@ -17306,7 +17366,7 @@ var NOTIFICATION_BOX_MODEL_CRUD_FUNCTIONS_CONFIG = {
|
|
|
17306
17366
|
* cheap and meant to be polled, so it neither answers to nor consumes the user's run allowance.
|
|
17307
17367
|
*/ var NOTIFICATION_USER_HEALTH_CHECK_VERIFY_THROTTLED_ERROR_CODE = 'NOTIFICATION_USER_HEALTH_CHECK_VERIFY_THROTTLED';
|
|
17308
17368
|
|
|
17309
|
-
function _define_property$
|
|
17369
|
+
function _define_property$a(obj, key, value) {
|
|
17310
17370
|
if (key in obj) {
|
|
17311
17371
|
Object.defineProperty(obj, key, {
|
|
17312
17372
|
value: value,
|
|
@@ -17319,7 +17379,7 @@ function _define_property$9(obj, key, value) {
|
|
|
17319
17379
|
}
|
|
17320
17380
|
return obj;
|
|
17321
17381
|
}
|
|
17322
|
-
function _object_spread$
|
|
17382
|
+
function _object_spread$a(target) {
|
|
17323
17383
|
for(var i = 1; i < arguments.length; i++){
|
|
17324
17384
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
17325
17385
|
var ownKeys = Object.keys(source);
|
|
@@ -17329,7 +17389,7 @@ function _object_spread$9(target) {
|
|
|
17329
17389
|
}));
|
|
17330
17390
|
}
|
|
17331
17391
|
ownKeys.forEach(function(key) {
|
|
17332
|
-
_define_property$
|
|
17392
|
+
_define_property$a(target, key, source[key]);
|
|
17333
17393
|
});
|
|
17334
17394
|
}
|
|
17335
17395
|
return target;
|
|
@@ -17368,7 +17428,7 @@ function _object_spread_props$7(target, source) {
|
|
|
17368
17428
|
return x.type;
|
|
17369
17429
|
},
|
|
17370
17430
|
merge: function merge(x, y) {
|
|
17371
|
-
return _object_spread$
|
|
17431
|
+
return _object_spread$a({}, x, y);
|
|
17372
17432
|
}
|
|
17373
17433
|
});
|
|
17374
17434
|
// remove types marked as remove
|
|
@@ -17398,7 +17458,7 @@ function _object_spread_props$7(target, source) {
|
|
|
17398
17458
|
var _ref;
|
|
17399
17459
|
var inputC = b.configs, inputF = b.f, inputBk = b.bk, inputLk = b.lk;
|
|
17400
17460
|
var c = (_ref = inputC == null ? undefined : updateNotificationBoxRecipientTemplateConfigRecord(a.c, inputC, limitToAllowedConfigTypes)) !== null && _ref !== void 0 ? _ref : a.c;
|
|
17401
|
-
return _object_spread_props$7(_object_spread$
|
|
17461
|
+
return _object_spread_props$7(_object_spread$a({}, updateNotificationRecipient(a, b)), {
|
|
17402
17462
|
c: c,
|
|
17403
17463
|
f: util.updateMaybeValue(a.f, inputF),
|
|
17404
17464
|
bk: util.updateMaybeValue(a.bk, inputBk),
|
|
@@ -17419,7 +17479,7 @@ function _object_spread_props$7(target, source) {
|
|
|
17419
17479
|
var _ref;
|
|
17420
17480
|
var inputC = b.configs, inputRm = b.rm, inputLk = b.lk, inputBk = b.bk;
|
|
17421
17481
|
var c = (_ref = inputC == null ? undefined : updateNotificationBoxRecipientTemplateConfigRecord(a.c, inputC, limitToAllowedConfigTypes)) !== null && _ref !== void 0 ? _ref : a.c;
|
|
17422
|
-
var nextConfig = _object_spread_props$7(_object_spread$
|
|
17482
|
+
var nextConfig = _object_spread_props$7(_object_spread$a({}, updateNotificationRecipient(a, b)), {
|
|
17423
17483
|
c: c,
|
|
17424
17484
|
rm: util.updateMaybeValue(a.rm, inputRm),
|
|
17425
17485
|
lk: util.updateMaybeValue(a.lk, inputLk),
|
|
@@ -17890,7 +17950,7 @@ function _ts_generator$5(thisArg, body) {
|
|
|
17890
17950
|
})();
|
|
17891
17951
|
}
|
|
17892
17952
|
|
|
17893
|
-
function _define_property$
|
|
17953
|
+
function _define_property$9(obj, key, value) {
|
|
17894
17954
|
if (key in obj) {
|
|
17895
17955
|
Object.defineProperty(obj, key, {
|
|
17896
17956
|
value: value,
|
|
@@ -17903,7 +17963,7 @@ function _define_property$8(obj, key, value) {
|
|
|
17903
17963
|
}
|
|
17904
17964
|
return obj;
|
|
17905
17965
|
}
|
|
17906
|
-
function _object_spread$
|
|
17966
|
+
function _object_spread$9(target) {
|
|
17907
17967
|
for(var i = 1; i < arguments.length; i++){
|
|
17908
17968
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
17909
17969
|
var ownKeys = Object.keys(source);
|
|
@@ -17913,7 +17973,7 @@ function _object_spread$8(target) {
|
|
|
17913
17973
|
}));
|
|
17914
17974
|
}
|
|
17915
17975
|
ownKeys.forEach(function(key) {
|
|
17916
|
-
_define_property$
|
|
17976
|
+
_define_property$9(target, key, source[key]);
|
|
17917
17977
|
});
|
|
17918
17978
|
}
|
|
17919
17979
|
return target;
|
|
@@ -17962,7 +18022,7 @@ function _object_spread_props$6(target, source) {
|
|
|
17962
18022
|
if (!input.notificationModel) {
|
|
17963
18023
|
throw new Error('Must provide a notificationModel when creating a logged-event notification template.');
|
|
17964
18024
|
}
|
|
17965
|
-
return createNotificationTemplate(_object_spread_props$6(_object_spread$
|
|
18025
|
+
return createNotificationTemplate(_object_spread_props$6(_object_spread$9({}, input), {
|
|
17966
18026
|
sendType: exports.NotificationSendType.LOGGED_EVENT,
|
|
17967
18027
|
st: undefined,
|
|
17968
18028
|
rf: undefined,
|
|
@@ -18257,7 +18317,7 @@ function _ts_generator$4(thisArg, body) {
|
|
|
18257
18317
|
};
|
|
18258
18318
|
}
|
|
18259
18319
|
|
|
18260
|
-
function _define_property$
|
|
18320
|
+
function _define_property$8(obj, key, value) {
|
|
18261
18321
|
if (key in obj) {
|
|
18262
18322
|
Object.defineProperty(obj, key, {
|
|
18263
18323
|
value: value,
|
|
@@ -18270,7 +18330,7 @@ function _define_property$7(obj, key, value) {
|
|
|
18270
18330
|
}
|
|
18271
18331
|
return obj;
|
|
18272
18332
|
}
|
|
18273
|
-
function _object_spread$
|
|
18333
|
+
function _object_spread$8(target) {
|
|
18274
18334
|
for(var i = 1; i < arguments.length; i++){
|
|
18275
18335
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
18276
18336
|
var ownKeys = Object.keys(source);
|
|
@@ -18280,7 +18340,7 @@ function _object_spread$7(target) {
|
|
|
18280
18340
|
}));
|
|
18281
18341
|
}
|
|
18282
18342
|
ownKeys.forEach(function(key) {
|
|
18283
|
-
_define_property$
|
|
18343
|
+
_define_property$8(target, key, source[key]);
|
|
18284
18344
|
});
|
|
18285
18345
|
}
|
|
18286
18346
|
return target;
|
|
@@ -18325,7 +18385,7 @@ function _object_spread_props$5(target, source) {
|
|
|
18325
18385
|
*/ function createNotificationTaskTemplate(input) {
|
|
18326
18386
|
var _input_notificationModel, _input_completedCheckpoints;
|
|
18327
18387
|
var notificationModel = (_input_notificationModel = input.notificationModel) !== null && _input_notificationModel !== void 0 ? _input_notificationModel : DEFAULT_NOTIFICATION_TASK_NOTIFICATION_MODEL_KEY;
|
|
18328
|
-
var result = createNotificationTemplate(_object_spread_props$5(_object_spread$
|
|
18388
|
+
var result = createNotificationTemplate(_object_spread_props$5(_object_spread$8({}, input), {
|
|
18329
18389
|
notificationModel: notificationModel,
|
|
18330
18390
|
tpr: (_input_completedCheckpoints = input.completedCheckpoints) !== null && _input_completedCheckpoints !== void 0 ? _input_completedCheckpoints : input.tpr,
|
|
18331
18391
|
sendType: exports.NotificationSendType.TASK_NOTIFICATION,
|
|
@@ -18348,7 +18408,7 @@ function _array_like_to_array$4(arr, len) {
|
|
|
18348
18408
|
function _array_with_holes$1(arr) {
|
|
18349
18409
|
if (Array.isArray(arr)) return arr;
|
|
18350
18410
|
}
|
|
18351
|
-
function _class_call_check$
|
|
18411
|
+
function _class_call_check$7(instance, Constructor) {
|
|
18352
18412
|
if (!(instance instanceof Constructor)) {
|
|
18353
18413
|
throw new TypeError("Cannot call a class as a function");
|
|
18354
18414
|
}
|
|
@@ -18423,7 +18483,7 @@ function _unsupported_iterable_to_array$4(o, minLen) {
|
|
|
18423
18483
|
* Provides indexed lookups for the server-side notification pipeline to discover which template types
|
|
18424
18484
|
* apply to a given model.
|
|
18425
18485
|
*/ var AppNotificationTemplateTypeInfoRecordService = function AppNotificationTemplateTypeInfoRecordService() {
|
|
18426
|
-
_class_call_check$
|
|
18486
|
+
_class_call_check$7(this, AppNotificationTemplateTypeInfoRecordService);
|
|
18427
18487
|
};
|
|
18428
18488
|
/**
|
|
18429
18489
|
* Creates an {@link AppNotificationTemplateTypeInfoRecordService} from the given template type record.
|
|
@@ -18954,7 +19014,7 @@ function _unsupported_iterable_to_array$3(o, minLen) {
|
|
|
18954
19014
|
};
|
|
18955
19015
|
}
|
|
18956
19016
|
|
|
18957
|
-
function _define_property$
|
|
19017
|
+
function _define_property$7(obj, key, value) {
|
|
18958
19018
|
if (key in obj) {
|
|
18959
19019
|
Object.defineProperty(obj, key, {
|
|
18960
19020
|
value: value,
|
|
@@ -18967,7 +19027,7 @@ function _define_property$6(obj, key, value) {
|
|
|
18967
19027
|
}
|
|
18968
19028
|
return obj;
|
|
18969
19029
|
}
|
|
18970
|
-
function _object_spread$
|
|
19030
|
+
function _object_spread$7(target) {
|
|
18971
19031
|
for(var i = 1; i < arguments.length; i++){
|
|
18972
19032
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
18973
19033
|
var ownKeys = Object.keys(source);
|
|
@@ -18977,7 +19037,7 @@ function _object_spread$6(target) {
|
|
|
18977
19037
|
}));
|
|
18978
19038
|
}
|
|
18979
19039
|
ownKeys.forEach(function(key) {
|
|
18980
|
-
_define_property$
|
|
19040
|
+
_define_property$7(target, key, source[key]);
|
|
18981
19041
|
});
|
|
18982
19042
|
}
|
|
18983
19043
|
return target;
|
|
@@ -19108,14 +19168,14 @@ function _object_spread_props$4(target, source) {
|
|
|
19108
19168
|
* @returns A copy of the result with `canRunNextCheckpoint` set to true.
|
|
19109
19169
|
*/ function notificationTaskCanRunNextCheckpoint(result, force) {
|
|
19110
19170
|
if (force || result.canRunNextCheckpoint == null) {
|
|
19111
|
-
result = _object_spread_props$4(_object_spread$
|
|
19171
|
+
result = _object_spread_props$4(_object_spread$7({}, result), {
|
|
19112
19172
|
canRunNextCheckpoint: true
|
|
19113
19173
|
});
|
|
19114
19174
|
}
|
|
19115
19175
|
return result;
|
|
19116
19176
|
}
|
|
19117
19177
|
|
|
19118
|
-
function _define_property$
|
|
19178
|
+
function _define_property$6(obj, key, value) {
|
|
19119
19179
|
if (key in obj) {
|
|
19120
19180
|
Object.defineProperty(obj, key, {
|
|
19121
19181
|
value: value,
|
|
@@ -19128,7 +19188,7 @@ function _define_property$5(obj, key, value) {
|
|
|
19128
19188
|
}
|
|
19129
19189
|
return obj;
|
|
19130
19190
|
}
|
|
19131
|
-
function _object_spread$
|
|
19191
|
+
function _object_spread$6(target) {
|
|
19132
19192
|
for(var i = 1; i < arguments.length; i++){
|
|
19133
19193
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
19134
19194
|
var ownKeys = Object.keys(source);
|
|
@@ -19138,7 +19198,7 @@ function _object_spread$5(target) {
|
|
|
19138
19198
|
}));
|
|
19139
19199
|
}
|
|
19140
19200
|
ownKeys.forEach(function(key) {
|
|
19141
|
-
_define_property$
|
|
19201
|
+
_define_property$6(target, key, source[key]);
|
|
19142
19202
|
});
|
|
19143
19203
|
}
|
|
19144
19204
|
return target;
|
|
@@ -19204,7 +19264,7 @@ function _object_spread_props$3(target, source) {
|
|
|
19204
19264
|
* return notificationSubtaskComplete({ canRunNextCheckpoint: true });
|
|
19205
19265
|
* ```
|
|
19206
19266
|
*/ function notificationSubtaskComplete(options) {
|
|
19207
|
-
return _object_spread_props$3(_object_spread$
|
|
19267
|
+
return _object_spread_props$3(_object_spread$6({}, notificationTaskComplete(options === null || options === void 0 ? void 0 : options.updateMetadata)), {
|
|
19208
19268
|
canRunNextCheckpoint: options === null || options === void 0 ? void 0 : options.canRunNextCheckpoint
|
|
19209
19269
|
});
|
|
19210
19270
|
}
|
|
@@ -19217,7 +19277,7 @@ function _array_like_to_array$2(arr, len) {
|
|
|
19217
19277
|
function _array_without_holes$1(arr) {
|
|
19218
19278
|
if (Array.isArray(arr)) return _array_like_to_array$2(arr);
|
|
19219
19279
|
}
|
|
19220
|
-
function _define_property$
|
|
19280
|
+
function _define_property$5(obj, key, value) {
|
|
19221
19281
|
if (key in obj) {
|
|
19222
19282
|
Object.defineProperty(obj, key, {
|
|
19223
19283
|
value: value,
|
|
@@ -19236,7 +19296,7 @@ function _iterable_to_array$1(iter) {
|
|
|
19236
19296
|
function _non_iterable_spread$1() {
|
|
19237
19297
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
19238
19298
|
}
|
|
19239
|
-
function _object_spread$
|
|
19299
|
+
function _object_spread$5(target) {
|
|
19240
19300
|
for(var i = 1; i < arguments.length; i++){
|
|
19241
19301
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
19242
19302
|
var ownKeys = Object.keys(source);
|
|
@@ -19246,7 +19306,7 @@ function _object_spread$4(target) {
|
|
|
19246
19306
|
}));
|
|
19247
19307
|
}
|
|
19248
19308
|
ownKeys.forEach(function(key) {
|
|
19249
|
-
_define_property$
|
|
19309
|
+
_define_property$5(target, key, source[key]);
|
|
19250
19310
|
});
|
|
19251
19311
|
}
|
|
19252
19312
|
return target;
|
|
@@ -19297,8 +19357,8 @@ function _unsupported_iterable_to_array$2(o, minLen) {
|
|
|
19297
19357
|
var applicableTemplateTypesForModel = appNotificationTemplateTypeInfoRecordService.getTemplateTypesForNotificationModel(m);
|
|
19298
19358
|
var filterOnlyApplicableTemplateTypes = util.filterKeysOnPOJOFunction(applicableTemplateTypesForModel);
|
|
19299
19359
|
// retain only the relevant/applicable template types for the model associate with the notification box
|
|
19300
|
-
var c = filterOnlyApplicableTemplateTypes(_object_spread$
|
|
19301
|
-
var nextRecipient = _object_spread_props$2(_object_spread$
|
|
19360
|
+
var c = filterOnlyApplicableTemplateTypes(_object_spread$5({}, recipient === null || recipient === void 0 ? void 0 : recipient.c, notificationUserNotificationBoxConfig.c, gc.c));
|
|
19361
|
+
var nextRecipient = _object_spread_props$2(_object_spread$5({}, recipient), {
|
|
19302
19362
|
c: c,
|
|
19303
19363
|
uid: uid,
|
|
19304
19364
|
i: (_ref = recipient === null || recipient === void 0 ? void 0 : recipient.i) !== null && _ref !== void 0 ? _ref : notificationUserNotificationBoxConfig.i,
|
|
@@ -19376,7 +19436,7 @@ function _unsupported_iterable_to_array$2(o, minLen) {
|
|
|
19376
19436
|
var isExcluded = !canSendToNotificationBoxFunction(x.nb); // excluded if cannot send
|
|
19377
19437
|
var updatedConfig = x;
|
|
19378
19438
|
if (currentNotificationBoxExcluded !== isExcluded) {
|
|
19379
|
-
updatedConfig = _object_spread_props$2(_object_spread$
|
|
19439
|
+
updatedConfig = _object_spread_props$2(_object_spread$5({}, x), {
|
|
19380
19440
|
x: isExcluded,
|
|
19381
19441
|
ns: true
|
|
19382
19442
|
});
|
|
@@ -19519,7 +19579,7 @@ function _unsupported_iterable_to_array$2(o, minLen) {
|
|
|
19519
19579
|
* @returns The merged config with protected fields retained from `a`
|
|
19520
19580
|
*/ function mergeNotificationUserNotificationBoxRecipientConfigs(a, b) {
|
|
19521
19581
|
var _b_f;
|
|
19522
|
-
return _object_spread_props$2(_object_spread$
|
|
19582
|
+
return _object_spread_props$2(_object_spread$5({}, mergeNotificationBoxRecipients(a, b)), {
|
|
19523
19583
|
// retain the following states always
|
|
19524
19584
|
f: a.f === exports.NotificationBoxRecipientFlag.OPT_OUT ? a.f : (_b_f = b.f) !== null && _b_f !== void 0 ? _b_f : a.f,
|
|
19525
19585
|
nb: a.nb,
|
|
@@ -19536,9 +19596,9 @@ function _unsupported_iterable_to_array$2(o, minLen) {
|
|
|
19536
19596
|
* @param b - Partial recipient update to apply on top of the base.
|
|
19537
19597
|
* @returns The merged recipient with deeply merged template config records.
|
|
19538
19598
|
*/ function mergeNotificationBoxRecipients(a, b) {
|
|
19539
|
-
return _object_spread_props$2(_object_spread$
|
|
19599
|
+
return _object_spread_props$2(_object_spread$5({}, a, b), {
|
|
19540
19600
|
// configs should be merged/ovewritten
|
|
19541
|
-
c: _object_spread$
|
|
19601
|
+
c: _object_spread$5({}, a.c, b.c)
|
|
19542
19602
|
});
|
|
19543
19603
|
}
|
|
19544
19604
|
/**
|
|
@@ -19562,22 +19622,22 @@ function _unsupported_iterable_to_array$2(o, minLen) {
|
|
|
19562
19622
|
return notificationBoxDocument;
|
|
19563
19623
|
}
|
|
19564
19624
|
|
|
19565
|
-
function _assert_this_initialized$
|
|
19625
|
+
function _assert_this_initialized$3(self) {
|
|
19566
19626
|
if (self === void 0) {
|
|
19567
19627
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
19568
19628
|
}
|
|
19569
19629
|
return self;
|
|
19570
19630
|
}
|
|
19571
|
-
function _call_super$
|
|
19572
|
-
derived = _get_prototype_of$
|
|
19573
|
-
return _possible_constructor_return$
|
|
19631
|
+
function _call_super$3(_this, derived, args) {
|
|
19632
|
+
derived = _get_prototype_of$3(derived);
|
|
19633
|
+
return _possible_constructor_return$3(_this, _is_native_reflect_construct$3() ? Reflect.construct(derived, args || [], _get_prototype_of$3(_this).constructor) : derived.apply(_this, args));
|
|
19574
19634
|
}
|
|
19575
|
-
function _class_call_check$
|
|
19635
|
+
function _class_call_check$6(instance, Constructor) {
|
|
19576
19636
|
if (!(instance instanceof Constructor)) {
|
|
19577
19637
|
throw new TypeError("Cannot call a class as a function");
|
|
19578
19638
|
}
|
|
19579
19639
|
}
|
|
19580
|
-
function _defineProperties$
|
|
19640
|
+
function _defineProperties$3(target, props) {
|
|
19581
19641
|
for(var i = 0; i < props.length; i++){
|
|
19582
19642
|
var descriptor = props[i];
|
|
19583
19643
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -19586,17 +19646,17 @@ function _defineProperties$2(target, props) {
|
|
|
19586
19646
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
19587
19647
|
}
|
|
19588
19648
|
}
|
|
19589
|
-
function _create_class$
|
|
19590
|
-
if (protoProps) _defineProperties$
|
|
19649
|
+
function _create_class$3(Constructor, protoProps, staticProps) {
|
|
19650
|
+
if (protoProps) _defineProperties$3(Constructor.prototype, protoProps);
|
|
19591
19651
|
return Constructor;
|
|
19592
19652
|
}
|
|
19593
|
-
function _get_prototype_of$
|
|
19594
|
-
_get_prototype_of$
|
|
19653
|
+
function _get_prototype_of$3(o) {
|
|
19654
|
+
_get_prototype_of$3 = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
19595
19655
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
19596
19656
|
};
|
|
19597
|
-
return _get_prototype_of$
|
|
19657
|
+
return _get_prototype_of$3(o);
|
|
19598
19658
|
}
|
|
19599
|
-
function _inherits$
|
|
19659
|
+
function _inherits$3(subClass, superClass) {
|
|
19600
19660
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
19601
19661
|
throw new TypeError("Super expression must either be null or a function");
|
|
19602
19662
|
}
|
|
@@ -19607,30 +19667,30 @@ function _inherits$2(subClass, superClass) {
|
|
|
19607
19667
|
configurable: true
|
|
19608
19668
|
}
|
|
19609
19669
|
});
|
|
19610
|
-
if (superClass) _set_prototype_of$
|
|
19670
|
+
if (superClass) _set_prototype_of$3(subClass, superClass);
|
|
19611
19671
|
}
|
|
19612
|
-
function _possible_constructor_return$
|
|
19613
|
-
if (call && (_type_of$
|
|
19672
|
+
function _possible_constructor_return$3(self, call) {
|
|
19673
|
+
if (call && (_type_of$3(call) === "object" || typeof call === "function")) {
|
|
19614
19674
|
return call;
|
|
19615
19675
|
}
|
|
19616
|
-
return _assert_this_initialized$
|
|
19676
|
+
return _assert_this_initialized$3(self);
|
|
19617
19677
|
}
|
|
19618
|
-
function _set_prototype_of$
|
|
19619
|
-
_set_prototype_of$
|
|
19678
|
+
function _set_prototype_of$3(o, p) {
|
|
19679
|
+
_set_prototype_of$3 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
19620
19680
|
o.__proto__ = p;
|
|
19621
19681
|
return o;
|
|
19622
19682
|
};
|
|
19623
|
-
return _set_prototype_of$
|
|
19683
|
+
return _set_prototype_of$3(o, p);
|
|
19624
19684
|
}
|
|
19625
|
-
function _type_of$
|
|
19685
|
+
function _type_of$3(obj) {
|
|
19626
19686
|
"@swc/helpers - typeof";
|
|
19627
19687
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
19628
19688
|
}
|
|
19629
|
-
function _is_native_reflect_construct$
|
|
19689
|
+
function _is_native_reflect_construct$3() {
|
|
19630
19690
|
try {
|
|
19631
19691
|
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
19632
19692
|
} catch (_) {}
|
|
19633
|
-
return (_is_native_reflect_construct$
|
|
19693
|
+
return (_is_native_reflect_construct$3 = function() {
|
|
19634
19694
|
return !!result;
|
|
19635
19695
|
})();
|
|
19636
19696
|
}
|
|
@@ -19644,7 +19704,7 @@ function _is_native_reflect_construct$2() {
|
|
|
19644
19704
|
*
|
|
19645
19705
|
* @dbxModelGroup OidcModel
|
|
19646
19706
|
*/ var OidcModelFirestoreCollections = function OidcModelFirestoreCollections() {
|
|
19647
|
-
_class_call_check$
|
|
19707
|
+
_class_call_check$6(this, OidcModelFirestoreCollections);
|
|
19648
19708
|
};
|
|
19649
19709
|
// MARK: Identity
|
|
19650
19710
|
/**
|
|
@@ -19658,12 +19718,12 @@ function _is_native_reflect_construct$2() {
|
|
|
19658
19718
|
/**
|
|
19659
19719
|
* Firestore document wrapper for {@link OidcEntry}.
|
|
19660
19720
|
*/ var OidcEntryDocument = /*#__PURE__*/ function(AbstractFirestoreDocument) {
|
|
19661
|
-
_inherits$
|
|
19721
|
+
_inherits$3(OidcEntryDocument, AbstractFirestoreDocument);
|
|
19662
19722
|
function OidcEntryDocument() {
|
|
19663
|
-
_class_call_check$
|
|
19664
|
-
return _call_super$
|
|
19723
|
+
_class_call_check$6(this, OidcEntryDocument);
|
|
19724
|
+
return _call_super$3(this, OidcEntryDocument, arguments);
|
|
19665
19725
|
}
|
|
19666
|
-
_create_class$
|
|
19726
|
+
_create_class$3(OidcEntryDocument, [
|
|
19667
19727
|
{
|
|
19668
19728
|
key: "modelIdentity",
|
|
19669
19729
|
get: function get() {
|
|
@@ -19799,7 +19859,7 @@ function _is_native_reflect_construct$2() {
|
|
|
19799
19859
|
return oidcEntriesByUidQuery('Grant', uid);
|
|
19800
19860
|
}
|
|
19801
19861
|
|
|
19802
|
-
function _class_call_check$
|
|
19862
|
+
function _class_call_check$5(instance, Constructor) {
|
|
19803
19863
|
if (!(instance instanceof Constructor)) {
|
|
19804
19864
|
throw new TypeError("Cannot call a class as a function");
|
|
19805
19865
|
}
|
|
@@ -19830,7 +19890,7 @@ var OIDC_MODEL_CRUD_FUNCTIONS_CONFIG = {
|
|
|
19830
19890
|
*
|
|
19831
19891
|
* Implement this in your app module to wire up the function endpoints.
|
|
19832
19892
|
*/ var OidcModelFunctions = function OidcModelFunctions() {
|
|
19833
|
-
_class_call_check$
|
|
19893
|
+
_class_call_check$5(this, OidcModelFunctions);
|
|
19834
19894
|
};
|
|
19835
19895
|
/**
|
|
19836
19896
|
* Client-side callable function map factory for OIDC client CRUD operations.
|
|
@@ -19890,7 +19950,7 @@ var OIDC_MODEL_CRUD_FUNCTIONS_CONFIG = {
|
|
|
19890
19950
|
* Thrown if both the target model and storageFileId is not provided in CreateStorageFileGroupParams.
|
|
19891
19951
|
*/ var STORAGE_FILE_GROUP_CREATE_INPUT_ERROR_CODE = 'STORAGE_FILE_GROUP_CREATE_INPUT_ERROR';
|
|
19892
19952
|
|
|
19893
|
-
function _class_call_check$
|
|
19953
|
+
function _class_call_check$4(instance, Constructor) {
|
|
19894
19954
|
if (!(instance instanceof Constructor)) {
|
|
19895
19955
|
throw new TypeError("Cannot call a class as a function");
|
|
19896
19956
|
}
|
|
@@ -20022,7 +20082,7 @@ var STORAGE_FILE_MODEL_CRUD_FUNCTIONS_CONFIG = {
|
|
|
20022
20082
|
* Implement this in your app module to wire up the function endpoints.
|
|
20023
20083
|
* Use {@link storageFileFunctionMap} to create a client-side callable map.
|
|
20024
20084
|
*/ var StorageFileFunctions = function StorageFileFunctions() {
|
|
20025
|
-
_class_call_check$
|
|
20085
|
+
_class_call_check$4(this, StorageFileFunctions);
|
|
20026
20086
|
};
|
|
20027
20087
|
/**
|
|
20028
20088
|
* Client-side callable function map factory for all StorageFile and StorageFileGroup CRUD operations.
|
|
@@ -20054,22 +20114,22 @@ var STORAGE_FILE_MODEL_CRUD_FUNCTIONS_CONFIG = {
|
|
|
20054
20114
|
* ```
|
|
20055
20115
|
*/ var inferStorageFileGroupRelatedModelKey = inferKeyFromTwoWayFlatFirestoreModelKey;
|
|
20056
20116
|
|
|
20057
|
-
function _assert_this_initialized$
|
|
20117
|
+
function _assert_this_initialized$2(self) {
|
|
20058
20118
|
if (self === void 0) {
|
|
20059
20119
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
20060
20120
|
}
|
|
20061
20121
|
return self;
|
|
20062
20122
|
}
|
|
20063
|
-
function _call_super$
|
|
20064
|
-
derived = _get_prototype_of$
|
|
20065
|
-
return _possible_constructor_return$
|
|
20123
|
+
function _call_super$2(_this, derived, args) {
|
|
20124
|
+
derived = _get_prototype_of$2(derived);
|
|
20125
|
+
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));
|
|
20066
20126
|
}
|
|
20067
|
-
function _class_call_check$
|
|
20127
|
+
function _class_call_check$3(instance, Constructor) {
|
|
20068
20128
|
if (!(instance instanceof Constructor)) {
|
|
20069
20129
|
throw new TypeError("Cannot call a class as a function");
|
|
20070
20130
|
}
|
|
20071
20131
|
}
|
|
20072
|
-
function _defineProperties$
|
|
20132
|
+
function _defineProperties$2(target, props) {
|
|
20073
20133
|
for(var i = 0; i < props.length; i++){
|
|
20074
20134
|
var descriptor = props[i];
|
|
20075
20135
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -20078,17 +20138,17 @@ function _defineProperties$1(target, props) {
|
|
|
20078
20138
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
20079
20139
|
}
|
|
20080
20140
|
}
|
|
20081
|
-
function _create_class$
|
|
20082
|
-
if (protoProps) _defineProperties$
|
|
20141
|
+
function _create_class$2(Constructor, protoProps, staticProps) {
|
|
20142
|
+
if (protoProps) _defineProperties$2(Constructor.prototype, protoProps);
|
|
20083
20143
|
return Constructor;
|
|
20084
20144
|
}
|
|
20085
|
-
function _get_prototype_of$
|
|
20086
|
-
_get_prototype_of$
|
|
20145
|
+
function _get_prototype_of$2(o) {
|
|
20146
|
+
_get_prototype_of$2 = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
20087
20147
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
20088
20148
|
};
|
|
20089
|
-
return _get_prototype_of$
|
|
20149
|
+
return _get_prototype_of$2(o);
|
|
20090
20150
|
}
|
|
20091
|
-
function _inherits$
|
|
20151
|
+
function _inherits$2(subClass, superClass) {
|
|
20092
20152
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
20093
20153
|
throw new TypeError("Super expression must either be null or a function");
|
|
20094
20154
|
}
|
|
@@ -20099,30 +20159,30 @@ function _inherits$1(subClass, superClass) {
|
|
|
20099
20159
|
configurable: true
|
|
20100
20160
|
}
|
|
20101
20161
|
});
|
|
20102
|
-
if (superClass) _set_prototype_of$
|
|
20162
|
+
if (superClass) _set_prototype_of$2(subClass, superClass);
|
|
20103
20163
|
}
|
|
20104
|
-
function _possible_constructor_return$
|
|
20105
|
-
if (call && (_type_of$
|
|
20164
|
+
function _possible_constructor_return$2(self, call) {
|
|
20165
|
+
if (call && (_type_of$2(call) === "object" || typeof call === "function")) {
|
|
20106
20166
|
return call;
|
|
20107
20167
|
}
|
|
20108
|
-
return _assert_this_initialized$
|
|
20168
|
+
return _assert_this_initialized$2(self);
|
|
20109
20169
|
}
|
|
20110
|
-
function _set_prototype_of$
|
|
20111
|
-
_set_prototype_of$
|
|
20170
|
+
function _set_prototype_of$2(o, p) {
|
|
20171
|
+
_set_prototype_of$2 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
20112
20172
|
o.__proto__ = p;
|
|
20113
20173
|
return o;
|
|
20114
20174
|
};
|
|
20115
|
-
return _set_prototype_of$
|
|
20175
|
+
return _set_prototype_of$2(o, p);
|
|
20116
20176
|
}
|
|
20117
|
-
function _type_of$
|
|
20177
|
+
function _type_of$2(obj) {
|
|
20118
20178
|
"@swc/helpers - typeof";
|
|
20119
20179
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
20120
20180
|
}
|
|
20121
|
-
function _is_native_reflect_construct$
|
|
20181
|
+
function _is_native_reflect_construct$2() {
|
|
20122
20182
|
try {
|
|
20123
20183
|
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
20124
20184
|
} catch (_) {}
|
|
20125
|
-
return (_is_native_reflect_construct$
|
|
20185
|
+
return (_is_native_reflect_construct$2 = function() {
|
|
20126
20186
|
return !!result;
|
|
20127
20187
|
})();
|
|
20128
20188
|
}
|
|
@@ -20147,7 +20207,7 @@ function _is_native_reflect_construct$1() {
|
|
|
20147
20207
|
*
|
|
20148
20208
|
* @dbxModelGroup StorageFile
|
|
20149
20209
|
*/ var StorageFileFirestoreCollections = function StorageFileFirestoreCollections() {
|
|
20150
|
-
_class_call_check$
|
|
20210
|
+
_class_call_check$3(this, StorageFileFirestoreCollections);
|
|
20151
20211
|
};
|
|
20152
20212
|
// MARK: StorageFile
|
|
20153
20213
|
var storageFileIdentity = firestoreModelIdentity('storageFile', 'sf');
|
|
@@ -20296,12 +20356,12 @@ var storageFileIdentity = firestoreModelIdentity('storageFile', 'sf');
|
|
|
20296
20356
|
/**
|
|
20297
20357
|
* Firestore document wrapper for a {@link StorageFile}.
|
|
20298
20358
|
*/ var StorageFileDocument = /*#__PURE__*/ function(AbstractFirestoreDocument) {
|
|
20299
|
-
_inherits$
|
|
20359
|
+
_inherits$2(StorageFileDocument, AbstractFirestoreDocument);
|
|
20300
20360
|
function StorageFileDocument() {
|
|
20301
|
-
_class_call_check$
|
|
20302
|
-
return _call_super$
|
|
20361
|
+
_class_call_check$3(this, StorageFileDocument);
|
|
20362
|
+
return _call_super$2(this, StorageFileDocument, arguments);
|
|
20303
20363
|
}
|
|
20304
|
-
_create_class$
|
|
20364
|
+
_create_class$2(StorageFileDocument, [
|
|
20305
20365
|
{
|
|
20306
20366
|
key: "modelIdentity",
|
|
20307
20367
|
get: function get() {
|
|
@@ -20405,12 +20465,12 @@ var storageFileIdentity = firestoreModelIdentity('storageFile', 'sf');
|
|
|
20405
20465
|
*
|
|
20406
20466
|
* Provides a convenience getter to infer the related model key from the group's own ID.
|
|
20407
20467
|
*/ var StorageFileGroupDocument = /*#__PURE__*/ function(AbstractFirestoreDocument) {
|
|
20408
|
-
_inherits$
|
|
20468
|
+
_inherits$2(StorageFileGroupDocument, AbstractFirestoreDocument);
|
|
20409
20469
|
function StorageFileGroupDocument() {
|
|
20410
|
-
_class_call_check$
|
|
20411
|
-
return _call_super$
|
|
20470
|
+
_class_call_check$3(this, StorageFileGroupDocument);
|
|
20471
|
+
return _call_super$2(this, StorageFileGroupDocument, arguments);
|
|
20412
20472
|
}
|
|
20413
|
-
_create_class$
|
|
20473
|
+
_create_class$2(StorageFileGroupDocument, [
|
|
20414
20474
|
{
|
|
20415
20475
|
key: "modelIdentity",
|
|
20416
20476
|
get: function get() {
|
|
@@ -20520,7 +20580,7 @@ function _async_to_generator$2(fn) {
|
|
|
20520
20580
|
});
|
|
20521
20581
|
};
|
|
20522
20582
|
}
|
|
20523
|
-
function _define_property$
|
|
20583
|
+
function _define_property$4(obj, key, value) {
|
|
20524
20584
|
if (key in obj) {
|
|
20525
20585
|
Object.defineProperty(obj, key, {
|
|
20526
20586
|
value: value,
|
|
@@ -20533,7 +20593,7 @@ function _define_property$3(obj, key, value) {
|
|
|
20533
20593
|
}
|
|
20534
20594
|
return obj;
|
|
20535
20595
|
}
|
|
20536
|
-
function _object_spread$
|
|
20596
|
+
function _object_spread$4(target) {
|
|
20537
20597
|
for(var i = 1; i < arguments.length; i++){
|
|
20538
20598
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
20539
20599
|
var ownKeys = Object.keys(source);
|
|
@@ -20543,7 +20603,7 @@ function _object_spread$3(target) {
|
|
|
20543
20603
|
}));
|
|
20544
20604
|
}
|
|
20545
20605
|
ownKeys.forEach(function(key) {
|
|
20546
|
-
_define_property$
|
|
20606
|
+
_define_property$4(target, key, source[key]);
|
|
20547
20607
|
});
|
|
20548
20608
|
}
|
|
20549
20609
|
return target;
|
|
@@ -20734,7 +20794,7 @@ function _ts_generator$2(thisArg, body) {
|
|
|
20734
20794
|
}
|
|
20735
20795
|
g = storageFileGroupIds !== null && storageFileGroupIds !== void 0 ? storageFileGroupIds : [];
|
|
20736
20796
|
gs = g.length > 0 && flagForStorageFileGroupsSync !== false;
|
|
20737
|
-
template = _object_spread_props$1(_object_spread$
|
|
20797
|
+
template = _object_spread_props$1(_object_spread$4({}, inputTemplate), {
|
|
20738
20798
|
o: ownershipKey !== null && ownershipKey !== void 0 ? ownershipKey : inputTemplate === null || inputTemplate === void 0 ? void 0 : inputTemplate.o,
|
|
20739
20799
|
n: displayName !== null && displayName !== void 0 ? displayName : inputTemplate === null || inputTemplate === void 0 ? void 0 : inputTemplate.n,
|
|
20740
20800
|
g: g,
|
|
@@ -21089,7 +21149,7 @@ function _async_to_generator$1(fn) {
|
|
|
21089
21149
|
});
|
|
21090
21150
|
};
|
|
21091
21151
|
}
|
|
21092
|
-
function _define_property$
|
|
21152
|
+
function _define_property$3(obj, key, value) {
|
|
21093
21153
|
if (key in obj) {
|
|
21094
21154
|
Object.defineProperty(obj, key, {
|
|
21095
21155
|
value: value,
|
|
@@ -21129,7 +21189,7 @@ function _iterable_to_array_limit(arr, i) {
|
|
|
21129
21189
|
function _non_iterable_rest() {
|
|
21130
21190
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
21131
21191
|
}
|
|
21132
|
-
function _object_spread$
|
|
21192
|
+
function _object_spread$3(target) {
|
|
21133
21193
|
for(var i = 1; i < arguments.length; i++){
|
|
21134
21194
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
21135
21195
|
var ownKeys = Object.keys(source);
|
|
@@ -21139,7 +21199,7 @@ function _object_spread$2(target) {
|
|
|
21139
21199
|
}));
|
|
21140
21200
|
}
|
|
21141
21201
|
ownKeys.forEach(function(key) {
|
|
21142
|
-
_define_property$
|
|
21202
|
+
_define_property$3(target, key, source[key]);
|
|
21143
21203
|
});
|
|
21144
21204
|
}
|
|
21145
21205
|
return target;
|
|
@@ -21309,7 +21369,7 @@ function _ts_generator$1(thisArg, body) {
|
|
|
21309
21369
|
]), a = _ref[0], b = _ref[1];
|
|
21310
21370
|
return [
|
|
21311
21371
|
2,
|
|
21312
|
-
_object_spread$
|
|
21372
|
+
_object_spread$3({}, a, b)
|
|
21313
21373
|
];
|
|
21314
21374
|
}
|
|
21315
21375
|
});
|
|
@@ -21319,7 +21379,7 @@ function _ts_generator$1(thisArg, body) {
|
|
|
21319
21379
|
};
|
|
21320
21380
|
}
|
|
21321
21381
|
|
|
21322
|
-
function _define_property$
|
|
21382
|
+
function _define_property$2(obj, key, value) {
|
|
21323
21383
|
if (key in obj) {
|
|
21324
21384
|
Object.defineProperty(obj, key, {
|
|
21325
21385
|
value: value,
|
|
@@ -21332,7 +21392,7 @@ function _define_property$1(obj, key, value) {
|
|
|
21332
21392
|
}
|
|
21333
21393
|
return obj;
|
|
21334
21394
|
}
|
|
21335
|
-
function _object_spread$
|
|
21395
|
+
function _object_spread$2(target) {
|
|
21336
21396
|
for(var i = 1; i < arguments.length; i++){
|
|
21337
21397
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
21338
21398
|
var ownKeys = Object.keys(source);
|
|
@@ -21342,7 +21402,7 @@ function _object_spread$1(target) {
|
|
|
21342
21402
|
}));
|
|
21343
21403
|
}
|
|
21344
21404
|
ownKeys.forEach(function(key) {
|
|
21345
|
-
_define_property$
|
|
21405
|
+
_define_property$2(target, key, source[key]);
|
|
21346
21406
|
});
|
|
21347
21407
|
}
|
|
21348
21408
|
return target;
|
|
@@ -21371,7 +21431,7 @@ function _object_spread$1(target) {
|
|
|
21371
21431
|
var getPathDetails = util.cachedGetter(function() {
|
|
21372
21432
|
return util.slashPathDetails(file.storagePath.pathString);
|
|
21373
21433
|
});
|
|
21374
|
-
var details = _object_spread$
|
|
21434
|
+
var details = _object_spread$2({}, file.storagePath);
|
|
21375
21435
|
var loadFileMetadata = util.cachedGetter(function() {
|
|
21376
21436
|
return file.getMetadata();
|
|
21377
21437
|
});
|
|
@@ -21506,7 +21566,7 @@ function _async_to_generator(fn) {
|
|
|
21506
21566
|
});
|
|
21507
21567
|
};
|
|
21508
21568
|
}
|
|
21509
|
-
function _define_property(obj, key, value) {
|
|
21569
|
+
function _define_property$1(obj, key, value) {
|
|
21510
21570
|
if (key in obj) {
|
|
21511
21571
|
Object.defineProperty(obj, key, {
|
|
21512
21572
|
value: value,
|
|
@@ -21519,7 +21579,7 @@ function _define_property(obj, key, value) {
|
|
|
21519
21579
|
}
|
|
21520
21580
|
return obj;
|
|
21521
21581
|
}
|
|
21522
|
-
function _object_spread(target) {
|
|
21582
|
+
function _object_spread$1(target) {
|
|
21523
21583
|
for(var i = 1; i < arguments.length; i++){
|
|
21524
21584
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
21525
21585
|
var ownKeys = Object.keys(source);
|
|
@@ -21529,7 +21589,7 @@ function _object_spread(target) {
|
|
|
21529
21589
|
}));
|
|
21530
21590
|
}
|
|
21531
21591
|
ownKeys.forEach(function(key) {
|
|
21532
|
-
_define_property(target, key, source[key]);
|
|
21592
|
+
_define_property$1(target, key, source[key]);
|
|
21533
21593
|
});
|
|
21534
21594
|
}
|
|
21535
21595
|
return target;
|
|
@@ -21859,7 +21919,7 @@ function _ts_generator(thisArg, body) {
|
|
|
21859
21919
|
if (matchesBasePath && (allowSubPaths ? subPathParts.length >= 2 : subPathParts.length === 2)) {
|
|
21860
21920
|
// must have two parts: the user folder and the file
|
|
21861
21921
|
user = subPathParts[0];
|
|
21862
|
-
result = _object_spread_props(_object_spread({}, determinerResult), {
|
|
21922
|
+
result = _object_spread_props(_object_spread$1({}, determinerResult), {
|
|
21863
21923
|
user: user
|
|
21864
21924
|
});
|
|
21865
21925
|
}
|
|
@@ -21898,7 +21958,7 @@ function _ts_generator(thisArg, body) {
|
|
|
21898
21958
|
*
|
|
21899
21959
|
* @__NO_SIDE_EFFECTS__
|
|
21900
21960
|
*/ function determineUserByUserUploadsFolderWrapperFunction(config) {
|
|
21901
|
-
return determineUserByFolderWrapperFunction(_object_spread_props(_object_spread({}, config), {
|
|
21961
|
+
return determineUserByFolderWrapperFunction(_object_spread_props(_object_spread$1({}, config), {
|
|
21902
21962
|
rootFolder: UPLOADS_FOLDER_PATH,
|
|
21903
21963
|
userFolderPrefix: ALL_USER_UPLOADS_FOLDER_NAME
|
|
21904
21964
|
}));
|
|
@@ -22204,22 +22264,22 @@ function _ts_generator(thisArg, body) {
|
|
|
22204
22264
|
};
|
|
22205
22265
|
}
|
|
22206
22266
|
|
|
22207
|
-
function _assert_this_initialized(self) {
|
|
22267
|
+
function _assert_this_initialized$1(self) {
|
|
22208
22268
|
if (self === void 0) {
|
|
22209
22269
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
22210
22270
|
}
|
|
22211
22271
|
return self;
|
|
22212
22272
|
}
|
|
22213
|
-
function _call_super(_this, derived, args) {
|
|
22214
|
-
derived = _get_prototype_of(derived);
|
|
22215
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
22273
|
+
function _call_super$1(_this, derived, args) {
|
|
22274
|
+
derived = _get_prototype_of$1(derived);
|
|
22275
|
+
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));
|
|
22216
22276
|
}
|
|
22217
|
-
function _class_call_check(instance, Constructor) {
|
|
22277
|
+
function _class_call_check$2(instance, Constructor) {
|
|
22218
22278
|
if (!(instance instanceof Constructor)) {
|
|
22219
22279
|
throw new TypeError("Cannot call a class as a function");
|
|
22220
22280
|
}
|
|
22221
22281
|
}
|
|
22222
|
-
function _defineProperties(target, props) {
|
|
22282
|
+
function _defineProperties$1(target, props) {
|
|
22223
22283
|
for(var i = 0; i < props.length; i++){
|
|
22224
22284
|
var descriptor = props[i];
|
|
22225
22285
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -22228,17 +22288,17 @@ function _defineProperties(target, props) {
|
|
|
22228
22288
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
22229
22289
|
}
|
|
22230
22290
|
}
|
|
22231
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
22232
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
22291
|
+
function _create_class$1(Constructor, protoProps, staticProps) {
|
|
22292
|
+
if (protoProps) _defineProperties$1(Constructor.prototype, protoProps);
|
|
22233
22293
|
return Constructor;
|
|
22234
22294
|
}
|
|
22235
|
-
function _get_prototype_of(o) {
|
|
22236
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
22295
|
+
function _get_prototype_of$1(o) {
|
|
22296
|
+
_get_prototype_of$1 = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
22237
22297
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
22238
22298
|
};
|
|
22239
|
-
return _get_prototype_of(o);
|
|
22299
|
+
return _get_prototype_of$1(o);
|
|
22240
22300
|
}
|
|
22241
|
-
function _inherits(subClass, superClass) {
|
|
22301
|
+
function _inherits$1(subClass, superClass) {
|
|
22242
22302
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
22243
22303
|
throw new TypeError("Super expression must either be null or a function");
|
|
22244
22304
|
}
|
|
@@ -22249,30 +22309,30 @@ function _inherits(subClass, superClass) {
|
|
|
22249
22309
|
configurable: true
|
|
22250
22310
|
}
|
|
22251
22311
|
});
|
|
22252
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
22312
|
+
if (superClass) _set_prototype_of$1(subClass, superClass);
|
|
22253
22313
|
}
|
|
22254
|
-
function _possible_constructor_return(self, call) {
|
|
22255
|
-
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
22314
|
+
function _possible_constructor_return$1(self, call) {
|
|
22315
|
+
if (call && (_type_of$1(call) === "object" || typeof call === "function")) {
|
|
22256
22316
|
return call;
|
|
22257
22317
|
}
|
|
22258
|
-
return _assert_this_initialized(self);
|
|
22318
|
+
return _assert_this_initialized$1(self);
|
|
22259
22319
|
}
|
|
22260
|
-
function _set_prototype_of(o, p) {
|
|
22261
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
22320
|
+
function _set_prototype_of$1(o, p) {
|
|
22321
|
+
_set_prototype_of$1 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
22262
22322
|
o.__proto__ = p;
|
|
22263
22323
|
return o;
|
|
22264
22324
|
};
|
|
22265
|
-
return _set_prototype_of(o, p);
|
|
22325
|
+
return _set_prototype_of$1(o, p);
|
|
22266
22326
|
}
|
|
22267
|
-
function _type_of(obj) {
|
|
22327
|
+
function _type_of$1(obj) {
|
|
22268
22328
|
"@swc/helpers - typeof";
|
|
22269
22329
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
22270
22330
|
}
|
|
22271
|
-
function _is_native_reflect_construct() {
|
|
22331
|
+
function _is_native_reflect_construct$1() {
|
|
22272
22332
|
try {
|
|
22273
22333
|
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
22274
22334
|
} catch (_) {}
|
|
22275
|
-
return (_is_native_reflect_construct = function() {
|
|
22335
|
+
return (_is_native_reflect_construct$1 = function() {
|
|
22276
22336
|
return !!result;
|
|
22277
22337
|
})();
|
|
22278
22338
|
}
|
|
@@ -22295,7 +22355,7 @@ function _is_native_reflect_construct() {
|
|
|
22295
22355
|
*
|
|
22296
22356
|
* @dbxModelGroup SystemState
|
|
22297
22357
|
*/ var SystemStateFirestoreCollections = function SystemStateFirestoreCollections() {
|
|
22298
|
-
_class_call_check(this, SystemStateFirestoreCollections);
|
|
22358
|
+
_class_call_check$2(this, SystemStateFirestoreCollections);
|
|
22299
22359
|
};
|
|
22300
22360
|
// MARK: SystemState
|
|
22301
22361
|
/**
|
|
@@ -22309,12 +22369,12 @@ function _is_native_reflect_construct() {
|
|
|
22309
22369
|
*
|
|
22310
22370
|
* @template T - shape of the stored data record
|
|
22311
22371
|
*/ var SystemStateDocument = /*#__PURE__*/ function(AbstractFirestoreDocument) {
|
|
22312
|
-
_inherits(SystemStateDocument, AbstractFirestoreDocument);
|
|
22372
|
+
_inherits$1(SystemStateDocument, AbstractFirestoreDocument);
|
|
22313
22373
|
function SystemStateDocument() {
|
|
22314
|
-
_class_call_check(this, SystemStateDocument);
|
|
22315
|
-
return _call_super(this, SystemStateDocument, arguments);
|
|
22374
|
+
_class_call_check$2(this, SystemStateDocument);
|
|
22375
|
+
return _call_super$1(this, SystemStateDocument, arguments);
|
|
22316
22376
|
}
|
|
22317
|
-
_create_class(SystemStateDocument, [
|
|
22377
|
+
_create_class$1(SystemStateDocument, [
|
|
22318
22378
|
{
|
|
22319
22379
|
key: "modelIdentity",
|
|
22320
22380
|
get: function get() {
|
|
@@ -22390,6 +22450,408 @@ function _is_native_reflect_construct() {
|
|
|
22390
22450
|
});
|
|
22391
22451
|
}
|
|
22392
22452
|
|
|
22453
|
+
function _assert_this_initialized(self) {
|
|
22454
|
+
if (self === void 0) {
|
|
22455
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
22456
|
+
}
|
|
22457
|
+
return self;
|
|
22458
|
+
}
|
|
22459
|
+
function _call_super(_this, derived, args) {
|
|
22460
|
+
derived = _get_prototype_of(derived);
|
|
22461
|
+
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
22462
|
+
}
|
|
22463
|
+
function _class_call_check$1(instance, Constructor) {
|
|
22464
|
+
if (!(instance instanceof Constructor)) {
|
|
22465
|
+
throw new TypeError("Cannot call a class as a function");
|
|
22466
|
+
}
|
|
22467
|
+
}
|
|
22468
|
+
function _defineProperties(target, props) {
|
|
22469
|
+
for(var i = 0; i < props.length; i++){
|
|
22470
|
+
var descriptor = props[i];
|
|
22471
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
22472
|
+
descriptor.configurable = true;
|
|
22473
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
22474
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
22475
|
+
}
|
|
22476
|
+
}
|
|
22477
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
22478
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
22479
|
+
return Constructor;
|
|
22480
|
+
}
|
|
22481
|
+
function _get_prototype_of(o) {
|
|
22482
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
22483
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
22484
|
+
};
|
|
22485
|
+
return _get_prototype_of(o);
|
|
22486
|
+
}
|
|
22487
|
+
function _inherits(subClass, superClass) {
|
|
22488
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
22489
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
22490
|
+
}
|
|
22491
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
22492
|
+
constructor: {
|
|
22493
|
+
value: subClass,
|
|
22494
|
+
writable: true,
|
|
22495
|
+
configurable: true
|
|
22496
|
+
}
|
|
22497
|
+
});
|
|
22498
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
22499
|
+
}
|
|
22500
|
+
function _possible_constructor_return(self, call) {
|
|
22501
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
22502
|
+
return call;
|
|
22503
|
+
}
|
|
22504
|
+
return _assert_this_initialized(self);
|
|
22505
|
+
}
|
|
22506
|
+
function _set_prototype_of(o, p) {
|
|
22507
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
22508
|
+
o.__proto__ = p;
|
|
22509
|
+
return o;
|
|
22510
|
+
};
|
|
22511
|
+
return _set_prototype_of(o, p);
|
|
22512
|
+
}
|
|
22513
|
+
function _type_of(obj) {
|
|
22514
|
+
"@swc/helpers - typeof";
|
|
22515
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
22516
|
+
}
|
|
22517
|
+
function _is_native_reflect_construct() {
|
|
22518
|
+
try {
|
|
22519
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
22520
|
+
} catch (_) {}
|
|
22521
|
+
return (_is_native_reflect_construct = function() {
|
|
22522
|
+
return !!result;
|
|
22523
|
+
})();
|
|
22524
|
+
}
|
|
22525
|
+
// MARK: UserExternalConnection
|
|
22526
|
+
var userExternalConnectionIdentity = firestoreModelIdentity('userExternalConnection', 'uec');
|
|
22527
|
+
var USER_EXTERNAL_CONNECTION_ENTRY_STATUSES = [
|
|
22528
|
+
'connected',
|
|
22529
|
+
'disconnected',
|
|
22530
|
+
'error'
|
|
22531
|
+
];
|
|
22532
|
+
var UserExternalConnectionDocument = /*#__PURE__*/ function(AbstractFirestoreDocument) {
|
|
22533
|
+
_inherits(UserExternalConnectionDocument, AbstractFirestoreDocument);
|
|
22534
|
+
function UserExternalConnectionDocument() {
|
|
22535
|
+
_class_call_check$1(this, UserExternalConnectionDocument);
|
|
22536
|
+
return _call_super(this, UserExternalConnectionDocument, arguments);
|
|
22537
|
+
}
|
|
22538
|
+
_create_class(UserExternalConnectionDocument, [
|
|
22539
|
+
{
|
|
22540
|
+
key: "modelIdentity",
|
|
22541
|
+
get: function get() {
|
|
22542
|
+
return userExternalConnectionIdentity;
|
|
22543
|
+
}
|
|
22544
|
+
}
|
|
22545
|
+
]);
|
|
22546
|
+
return UserExternalConnectionDocument;
|
|
22547
|
+
}(AbstractFirestoreDocument);
|
|
22548
|
+
/**
|
|
22549
|
+
* Field conversions for a {@link UserExternalConnectionEntry}.
|
|
22550
|
+
*/ var userExternalConnectionEntryFields = {
|
|
22551
|
+
st: firestoreEnum({
|
|
22552
|
+
default: 'disconnected'
|
|
22553
|
+
}),
|
|
22554
|
+
ca: optionalFirestoreArray(),
|
|
22555
|
+
ea: optionalFirestoreString(),
|
|
22556
|
+
l: optionalFirestoreString(),
|
|
22557
|
+
coa: optionalFirestoreDate(),
|
|
22558
|
+
exa: optionalFirestoreDate(),
|
|
22559
|
+
uat: firestoreDate({
|
|
22560
|
+
saveDefaultAsNow: true
|
|
22561
|
+
}),
|
|
22562
|
+
er: optionalFirestoreEnum()
|
|
22563
|
+
};
|
|
22564
|
+
var userExternalConnectionConverter = snapshotConverterFunctions({
|
|
22565
|
+
fields: {
|
|
22566
|
+
uid: firestoreUID(),
|
|
22567
|
+
e: firestoreObjectMap({
|
|
22568
|
+
objectField: {
|
|
22569
|
+
fields: userExternalConnectionEntryFields
|
|
22570
|
+
}
|
|
22571
|
+
}),
|
|
22572
|
+
c: firestoreEnumArray(),
|
|
22573
|
+
uat: firestoreDate({
|
|
22574
|
+
saveDefaultAsNow: true
|
|
22575
|
+
})
|
|
22576
|
+
}
|
|
22577
|
+
});
|
|
22578
|
+
/**
|
|
22579
|
+
* Copies the document id into `uid` on write, so the stored uid can never drift from the document id.
|
|
22580
|
+
*/ var userExternalConnectionAccessorFactory = copyUserRelatedDataAccessorFactoryFunction();
|
|
22581
|
+
/**
|
|
22582
|
+
* Returns the root Firestore collection reference for UserExternalConnection documents.
|
|
22583
|
+
*
|
|
22584
|
+
* @param context - The FirestoreContext used to resolve the collection.
|
|
22585
|
+
* @returns A typed CollectionReference for the userExternalConnection collection.
|
|
22586
|
+
*/ function userExternalConnectionCollectionReference(context) {
|
|
22587
|
+
return context.collection(userExternalConnectionIdentity.collectionName);
|
|
22588
|
+
}
|
|
22589
|
+
/**
|
|
22590
|
+
* Creates the Firestore collection accessor for UserExternalConnection documents.
|
|
22591
|
+
*
|
|
22592
|
+
* @param firestoreContext - The FirestoreContext used to build the collection.
|
|
22593
|
+
* @returns A UserExternalConnectionFirestoreCollection.
|
|
22594
|
+
*/ function userExternalConnectionFirestoreCollection(firestoreContext) {
|
|
22595
|
+
return firestoreContext.firestoreCollection({
|
|
22596
|
+
modelIdentity: userExternalConnectionIdentity,
|
|
22597
|
+
converter: userExternalConnectionConverter,
|
|
22598
|
+
accessorFactory: userExternalConnectionAccessorFactory,
|
|
22599
|
+
collection: userExternalConnectionCollectionReference(firestoreContext),
|
|
22600
|
+
makeDocument: function makeDocument(accessor, documentAccessor) {
|
|
22601
|
+
return new UserExternalConnectionDocument(accessor, documentAccessor);
|
|
22602
|
+
},
|
|
22603
|
+
firestoreContext: firestoreContext
|
|
22604
|
+
});
|
|
22605
|
+
}
|
|
22606
|
+
|
|
22607
|
+
/**
|
|
22608
|
+
* Provider type for Cal.com.
|
|
22609
|
+
*
|
|
22610
|
+
* Declared here rather than in a server package because the string is the map key on BOTH halves of
|
|
22611
|
+
* the connection pair: the server's OAuth controller writes it and the client renders from it, so
|
|
22612
|
+
* they must be the same literal.
|
|
22613
|
+
*/ var CALCOM_USER_EXTERNAL_CONNECTION_PROVIDER_TYPE = 'calcom';
|
|
22614
|
+
/**
|
|
22615
|
+
* Provider type for Zoom.
|
|
22616
|
+
*/ var ZOOM_USER_EXTERNAL_CONNECTION_PROVIDER_TYPE = 'zoom';
|
|
22617
|
+
/**
|
|
22618
|
+
* Provider type for Discord.
|
|
22619
|
+
*/ var DISCORD_USER_EXTERNAL_CONNECTION_PROVIDER_TYPE = 'discord';
|
|
22620
|
+
/**
|
|
22621
|
+
* Provider type for Zoho.
|
|
22622
|
+
*/ var ZOHO_USER_EXTERNAL_CONNECTION_PROVIDER_TYPE = 'zoho';
|
|
22623
|
+
|
|
22624
|
+
function _define_property(obj, key, value) {
|
|
22625
|
+
if (key in obj) {
|
|
22626
|
+
Object.defineProperty(obj, key, {
|
|
22627
|
+
value: value,
|
|
22628
|
+
enumerable: true,
|
|
22629
|
+
configurable: true,
|
|
22630
|
+
writable: true
|
|
22631
|
+
});
|
|
22632
|
+
} else {
|
|
22633
|
+
obj[key] = value;
|
|
22634
|
+
}
|
|
22635
|
+
return obj;
|
|
22636
|
+
}
|
|
22637
|
+
function _object_spread(target) {
|
|
22638
|
+
for(var i = 1; i < arguments.length; i++){
|
|
22639
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
22640
|
+
var ownKeys = Object.keys(source);
|
|
22641
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
22642
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
22643
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
22644
|
+
}));
|
|
22645
|
+
}
|
|
22646
|
+
ownKeys.forEach(function(key) {
|
|
22647
|
+
_define_property(target, key, source[key]);
|
|
22648
|
+
});
|
|
22649
|
+
}
|
|
22650
|
+
return target;
|
|
22651
|
+
}
|
|
22652
|
+
// MARK: Derivation
|
|
22653
|
+
/**
|
|
22654
|
+
* The SOLE producer of a {@link UserExternalConnection}'s `c` array.
|
|
22655
|
+
*
|
|
22656
|
+
* Membership is exactly the provider types whose entry status is `connected`. `disconnected` and
|
|
22657
|
+
* `error` entries are excluded — the array backs a "which users can I actually call X for?" query,
|
|
22658
|
+
* and `array-contains` has no way to filter by status afterwards.
|
|
22659
|
+
*
|
|
22660
|
+
* @param entries - The per-provider entry map to derive from.
|
|
22661
|
+
* @returns The connected provider types, sorted for a stable stored value.
|
|
22662
|
+
*/ function userExternalConnectionConnectedProviderTypes(entries) {
|
|
22663
|
+
var result = entries ? Object.keys(entries).filter(function(x) {
|
|
22664
|
+
var _entries_x;
|
|
22665
|
+
return ((_entries_x = entries[x]) === null || _entries_x === void 0 ? void 0 : _entries_x.st) === 'connected';
|
|
22666
|
+
}) : [];
|
|
22667
|
+
result.sort();
|
|
22668
|
+
return result;
|
|
22669
|
+
}
|
|
22670
|
+
/**
|
|
22671
|
+
* Derives the {@link UserExternalConnectionEntry} for an operation's outcome.
|
|
22672
|
+
*
|
|
22673
|
+
* @param input - The outcome plus the grant it derives from.
|
|
22674
|
+
* @returns The next entry, or null when the provider's entry should be REMOVED from the map.
|
|
22675
|
+
*/ function userExternalConnectionEntryForOutcome(input) {
|
|
22676
|
+
var outcome = input.outcome, grant = input.grant, error = input.error, previous = input.previous, retainEntry = input.retainEntry, now = input.now;
|
|
22677
|
+
var result = null;
|
|
22678
|
+
switch(outcome){
|
|
22679
|
+
case 'connected':
|
|
22680
|
+
var _ref, _ref1;
|
|
22681
|
+
result = {
|
|
22682
|
+
st: 'connected',
|
|
22683
|
+
ca: grant === null || grant === void 0 ? void 0 : grant.scopes,
|
|
22684
|
+
ea: grant === null || grant === void 0 ? void 0 : grant.externalAccountId,
|
|
22685
|
+
l: grant === null || grant === void 0 ? void 0 : grant.label,
|
|
22686
|
+
coa: (_ref = (_ref1 = previous === null || previous === void 0 ? void 0 : previous.coa) !== null && _ref1 !== void 0 ? _ref1 : grant === null || grant === void 0 ? void 0 : grant.connectedAt) !== null && _ref !== void 0 ? _ref : now,
|
|
22687
|
+
exa: grant === null || grant === void 0 ? void 0 : grant.expiresAt,
|
|
22688
|
+
uat: now,
|
|
22689
|
+
er: null
|
|
22690
|
+
};
|
|
22691
|
+
break;
|
|
22692
|
+
case 'error':
|
|
22693
|
+
var _ref2, _ref3, _ref4, _ref5, _ref6;
|
|
22694
|
+
// an errored connection keeps describing the account it was connected to, so the UI can say
|
|
22695
|
+
// which account needs attention.
|
|
22696
|
+
result = {
|
|
22697
|
+
st: 'error',
|
|
22698
|
+
ca: (_ref2 = grant === null || grant === void 0 ? void 0 : grant.scopes) !== null && _ref2 !== void 0 ? _ref2 : previous === null || previous === void 0 ? void 0 : previous.ca,
|
|
22699
|
+
ea: (_ref3 = grant === null || grant === void 0 ? void 0 : grant.externalAccountId) !== null && _ref3 !== void 0 ? _ref3 : previous === null || previous === void 0 ? void 0 : previous.ea,
|
|
22700
|
+
l: (_ref4 = grant === null || grant === void 0 ? void 0 : grant.label) !== null && _ref4 !== void 0 ? _ref4 : previous === null || previous === void 0 ? void 0 : previous.l,
|
|
22701
|
+
coa: (_ref5 = previous === null || previous === void 0 ? void 0 : previous.coa) !== null && _ref5 !== void 0 ? _ref5 : grant === null || grant === void 0 ? void 0 : grant.connectedAt,
|
|
22702
|
+
exa: (_ref6 = grant === null || grant === void 0 ? void 0 : grant.expiresAt) !== null && _ref6 !== void 0 ? _ref6 : previous === null || previous === void 0 ? void 0 : previous.exa,
|
|
22703
|
+
uat: now,
|
|
22704
|
+
er: error !== null && error !== void 0 ? error : 'unknown'
|
|
22705
|
+
};
|
|
22706
|
+
break;
|
|
22707
|
+
case 'disconnected':
|
|
22708
|
+
result = retainEntry ? {
|
|
22709
|
+
st: 'disconnected',
|
|
22710
|
+
ca: null,
|
|
22711
|
+
ea: previous === null || previous === void 0 ? void 0 : previous.ea,
|
|
22712
|
+
l: previous === null || previous === void 0 ? void 0 : previous.l,
|
|
22713
|
+
coa: previous === null || previous === void 0 ? void 0 : previous.coa,
|
|
22714
|
+
exa: null,
|
|
22715
|
+
uat: now,
|
|
22716
|
+
er: null
|
|
22717
|
+
} : null;
|
|
22718
|
+
break;
|
|
22719
|
+
}
|
|
22720
|
+
return result;
|
|
22721
|
+
}
|
|
22722
|
+
/**
|
|
22723
|
+
* Applies a single provider's entry and returns the COMPLETE next document.
|
|
22724
|
+
*
|
|
22725
|
+
* Returning the whole value (rather than a patch) is what keeps `c` honest: this is the only
|
|
22726
|
+
* exported way to change `e`, and it always recomputes `c` from the resulting map. There is no
|
|
22727
|
+
* exported path that touches one without the other.
|
|
22728
|
+
*
|
|
22729
|
+
* @param input - The current document plus the provider entry to apply.
|
|
22730
|
+
* @returns The next UserExternalConnection value to write.
|
|
22731
|
+
*/ function applyUserExternalConnectionEntry(input) {
|
|
22732
|
+
var current = input.current, uid = input.uid, providerType = input.providerType, entry = input.entry, now = input.now;
|
|
22733
|
+
var entries = _object_spread({}, current === null || current === void 0 ? void 0 : current.e);
|
|
22734
|
+
if (entry) {
|
|
22735
|
+
entries[providerType] = entry;
|
|
22736
|
+
} else {
|
|
22737
|
+
delete entries[providerType];
|
|
22738
|
+
}
|
|
22739
|
+
return {
|
|
22740
|
+
uid: uid,
|
|
22741
|
+
e: entries,
|
|
22742
|
+
c: userExternalConnectionConnectedProviderTypes(entries),
|
|
22743
|
+
uat: now
|
|
22744
|
+
};
|
|
22745
|
+
}
|
|
22746
|
+
/**
|
|
22747
|
+
* Returns the value of a connection document that has no providers on it yet.
|
|
22748
|
+
*
|
|
22749
|
+
* Creating the document is its own operation, so the "no connections" value lives here beside
|
|
22750
|
+
* {@link applyUserExternalConnectionEntry} rather than as a literal at the call site — both write
|
|
22751
|
+
* the complete document, and `c` is empty here for the same reason it is derived there.
|
|
22752
|
+
*
|
|
22753
|
+
* @param input - The user the document belongs to and the instant to stamp it with.
|
|
22754
|
+
* @returns The UserExternalConnection value for a user with no provider entries.
|
|
22755
|
+
*/ function emptyUserExternalConnection(input) {
|
|
22756
|
+
var uid = input.uid, now = input.now;
|
|
22757
|
+
return {
|
|
22758
|
+
uid: uid,
|
|
22759
|
+
e: {},
|
|
22760
|
+
c: [],
|
|
22761
|
+
uat: now
|
|
22762
|
+
};
|
|
22763
|
+
}
|
|
22764
|
+
// MARK: Display
|
|
22765
|
+
/**
|
|
22766
|
+
* Returns the entry for the given provider, if any.
|
|
22767
|
+
*
|
|
22768
|
+
* @param connection - The loaded connection document.
|
|
22769
|
+
* @param providerType - The provider to read.
|
|
22770
|
+
* @returns The provider's entry, or null when the user has no entry for it.
|
|
22771
|
+
*/ function userExternalConnectionEntryForProvider(connection, providerType) {
|
|
22772
|
+
var _connection_e;
|
|
22773
|
+
return connection === null || connection === void 0 ? void 0 : (_connection_e = connection.e) === null || _connection_e === void 0 ? void 0 : _connection_e[providerType];
|
|
22774
|
+
}
|
|
22775
|
+
/**
|
|
22776
|
+
* Returns true if the entry is in the `connected` status.
|
|
22777
|
+
*
|
|
22778
|
+
* @param entry - The entry to check.
|
|
22779
|
+
* @returns True when the entry is connected.
|
|
22780
|
+
*/ function userExternalConnectionEntryIsConnected(entry) {
|
|
22781
|
+
return (entry === null || entry === void 0 ? void 0 : entry.st) === 'connected';
|
|
22782
|
+
}
|
|
22783
|
+
/**
|
|
22784
|
+
* Returns true if the entry declares an expiration that has already passed.
|
|
22785
|
+
*
|
|
22786
|
+
* @param entry - The entry to check.
|
|
22787
|
+
* @param now - The instant to compare against. Defaults to the current time.
|
|
22788
|
+
* @returns True when the entry's credentials are known to have expired.
|
|
22789
|
+
*/ function userExternalConnectionEntryIsExpired(entry) {
|
|
22790
|
+
var now = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : new Date();
|
|
22791
|
+
return (entry === null || entry === void 0 ? void 0 : entry.exa) != null && entry.exa.getTime() <= now.getTime();
|
|
22792
|
+
}
|
|
22793
|
+
/**
|
|
22794
|
+
* Returns true if the user is currently connected to the given provider.
|
|
22795
|
+
*
|
|
22796
|
+
* @param connection - The loaded connection document.
|
|
22797
|
+
* @param providerType - The provider to check.
|
|
22798
|
+
* @returns True when the provider's entry is connected.
|
|
22799
|
+
*/ function userExternalConnectionIsConnectedToProvider(connection, providerType) {
|
|
22800
|
+
return userExternalConnectionEntryIsConnected(userExternalConnectionEntryForProvider(connection, providerType));
|
|
22801
|
+
}
|
|
22802
|
+
|
|
22803
|
+
/**
|
|
22804
|
+
* Query for the UserExternalConnection documents that are currently connected to the given provider.
|
|
22805
|
+
*
|
|
22806
|
+
* This is the single reason the derived `c` array exists: with one document per user, provider ids
|
|
22807
|
+
* are map keys, and Firestore cannot query across map keys.
|
|
22808
|
+
*
|
|
22809
|
+
* Only `connected` entries are members of `c`, so this never returns a user whose credentials are in
|
|
22810
|
+
* the `error` or `disconnected` state.
|
|
22811
|
+
*
|
|
22812
|
+
* @param providerType - The provider type to search for.
|
|
22813
|
+
* @returns Firestore query constraints matching users connected to that provider.
|
|
22814
|
+
*
|
|
22815
|
+
* @dbxModelFirebaseIndex
|
|
22816
|
+
* @dbxModelFirebaseIndexModel UserExternalConnection
|
|
22817
|
+
* @dbxModelFirebaseIndexScope COLLECTION
|
|
22818
|
+
*/ function userExternalConnectionsWithConnectedProviderQuery(providerType) {
|
|
22819
|
+
return [
|
|
22820
|
+
where('c', 'array-contains', providerType)
|
|
22821
|
+
];
|
|
22822
|
+
}
|
|
22823
|
+
|
|
22824
|
+
function _class_call_check(instance, Constructor) {
|
|
22825
|
+
if (!(instance instanceof Constructor)) {
|
|
22826
|
+
throw new TypeError("Cannot call a class as a function");
|
|
22827
|
+
}
|
|
22828
|
+
}
|
|
22829
|
+
var createUserExternalConnectionParamsType = /* @__PURE__ */ arktype.type({});
|
|
22830
|
+
var disconnectUserExternalConnectionParamsType = /* @__PURE__ */ inferredTargetModelParamsType.merge(arktype.type({
|
|
22831
|
+
providerType: 'string'
|
|
22832
|
+
}));
|
|
22833
|
+
var readUserExternalConnectionAuthorizeStateParamsType = /* @__PURE__ */ inferredTargetModelParamsType.merge(arktype.type({
|
|
22834
|
+
providerType: 'string'
|
|
22835
|
+
}));
|
|
22836
|
+
var USER_EXTERNAL_CONNECTION_FUNCTION_TYPE_CONFIG_MAP = {};
|
|
22837
|
+
var USER_EXTERNAL_CONNECTION_MODEL_CRUD_FUNCTIONS_CONFIG = {
|
|
22838
|
+
userExternalConnection: [
|
|
22839
|
+
'create',
|
|
22840
|
+
'read:authorizeState',
|
|
22841
|
+
'update:disconnect'
|
|
22842
|
+
]
|
|
22843
|
+
};
|
|
22844
|
+
/**
|
|
22845
|
+
* Abstract class defining all callable UserExternalConnection cloud functions.
|
|
22846
|
+
*
|
|
22847
|
+
* Implement this in your app module to wire up the function endpoints.
|
|
22848
|
+
*/ var UserExternalConnectionFunctions = function UserExternalConnectionFunctions() {
|
|
22849
|
+
_class_call_check(this, UserExternalConnectionFunctions);
|
|
22850
|
+
};
|
|
22851
|
+
/**
|
|
22852
|
+
* Used to generate the UserExternalConnectionFunctions map for a Functions instance.
|
|
22853
|
+
*/ var userExternalConnectionFunctionMap = callModelFirebaseFunctionMapFactory(USER_EXTERNAL_CONNECTION_FUNCTION_TYPE_CONFIG_MAP, USER_EXTERNAL_CONNECTION_MODEL_CRUD_FUNCTIONS_CONFIG);
|
|
22854
|
+
|
|
22393
22855
|
exports.ALL_NOTIFICATION_DELIVERY_METHODS = ALL_NOTIFICATION_DELIVERY_METHODS;
|
|
22394
22856
|
exports.ALL_OIDC_TOKEN_ENDPOINT_AUTH_METHODS = ALL_OIDC_TOKEN_ENDPOINT_AUTH_METHODS;
|
|
22395
22857
|
exports.ALL_OIDC_TOKEN_ENDPOINT_AUTH_METHOD_OPTIONS = ALL_OIDC_TOKEN_ENDPOINT_AUTH_METHOD_OPTIONS;
|
|
@@ -22404,6 +22866,7 @@ exports.AppNotificationTemplateTypeInfoRecordService = AppNotificationTemplateTy
|
|
|
22404
22866
|
exports.BAD_DOCUMENT_QUERY_CURSOR_ERROR_CODE = BAD_DOCUMENT_QUERY_CURSOR_ERROR_CODE;
|
|
22405
22867
|
exports.BAD_REQUEST_ERROR_CODE = BAD_REQUEST_ERROR_CODE;
|
|
22406
22868
|
exports.BASE_MODEL_STORAGE_FILE_PATH = BASE_MODEL_STORAGE_FILE_PATH;
|
|
22869
|
+
exports.CALCOM_USER_EXTERNAL_CONNECTION_PROVIDER_TYPE = CALCOM_USER_EXTERNAL_CONNECTION_PROVIDER_TYPE;
|
|
22407
22870
|
exports.CALL_MODEL_APP_FUNCTION_KEY = CALL_MODEL_APP_FUNCTION_KEY;
|
|
22408
22871
|
exports.CALL_MODEL_MISSING_OIDC_SCOPE_ERROR_CODE = CALL_MODEL_MISSING_OIDC_SCOPE_ERROR_CODE;
|
|
22409
22872
|
exports.CALL_MODEL_OIDC_SCOPES = CALL_MODEL_OIDC_SCOPES;
|
|
@@ -22452,6 +22915,7 @@ exports.DEFAULT_SINGLE_ITEM_FIRESTORE_COLLECTION_DOCUMENT_IDENTIFIER = DEFAULT_S
|
|
|
22452
22915
|
exports.DEFAULT_UPLOADED_FILE_TYPE_DETERMINATION_LEVEL = DEFAULT_UPLOADED_FILE_TYPE_DETERMINATION_LEVEL;
|
|
22453
22916
|
exports.DEFAULT_WEBSITE_LINK = DEFAULT_WEBSITE_LINK;
|
|
22454
22917
|
exports.DELETE_MODEL_OIDC_SCOPE = DELETE_MODEL_OIDC_SCOPE;
|
|
22918
|
+
exports.DISCORD_USER_EXTERNAL_CONNECTION_PROVIDER_TYPE = DISCORD_USER_EXTERNAL_CONNECTION_PROVIDER_TYPE;
|
|
22455
22919
|
exports.DOWNLOAD_MULTIPLE_STORAGE_FILES_MAX_FILES = DOWNLOAD_MULTIPLE_STORAGE_FILES_MAX_FILES;
|
|
22456
22920
|
exports.DOWNLOAD_MULTIPLE_STORAGE_FILES_MIN_FILES = DOWNLOAD_MULTIPLE_STORAGE_FILES_MIN_FILES;
|
|
22457
22921
|
exports.EMAIL_OIDC_SCOPE = EMAIL_OIDC_SCOPE;
|
|
@@ -22620,6 +23084,13 @@ exports.UPLOADED_FILE_INITIALIZATION_DISCARDED_ERROR_CODE = UPLOADED_FILE_INITIA
|
|
|
22620
23084
|
exports.UPLOADED_FILE_INITIALIZATION_FAILED_ERROR_CODE = UPLOADED_FILE_INITIALIZATION_FAILED_ERROR_CODE;
|
|
22621
23085
|
exports.UPLOADED_FILE_NOT_ALLOWED_TO_BE_INITIALIZED_ERROR_CODE = UPLOADED_FILE_NOT_ALLOWED_TO_BE_INITIALIZED_ERROR_CODE;
|
|
22622
23086
|
exports.UPLOADS_FOLDER_PATH = UPLOADS_FOLDER_PATH;
|
|
23087
|
+
exports.USER_EXTERNAL_CONNECTION_ENTRY_STATUSES = USER_EXTERNAL_CONNECTION_ENTRY_STATUSES;
|
|
23088
|
+
exports.USER_EXTERNAL_CONNECTION_FUNCTION_TYPE_CONFIG_MAP = USER_EXTERNAL_CONNECTION_FUNCTION_TYPE_CONFIG_MAP;
|
|
23089
|
+
exports.USER_EXTERNAL_CONNECTION_MODEL_CRUD_FUNCTIONS_CONFIG = USER_EXTERNAL_CONNECTION_MODEL_CRUD_FUNCTIONS_CONFIG;
|
|
23090
|
+
exports.UserExternalConnectionDocument = UserExternalConnectionDocument;
|
|
23091
|
+
exports.UserExternalConnectionFunctions = UserExternalConnectionFunctions;
|
|
23092
|
+
exports.ZOHO_USER_EXTERNAL_CONNECTION_PROVIDER_TYPE = ZOHO_USER_EXTERNAL_CONNECTION_PROVIDER_TYPE;
|
|
23093
|
+
exports.ZOOM_USER_EXTERNAL_CONNECTION_PROVIDER_TYPE = ZOOM_USER_EXTERNAL_CONNECTION_PROVIDER_TYPE;
|
|
22623
23094
|
exports._createNotificationDocumentFromPair = _createNotificationDocumentFromPair;
|
|
22624
23095
|
exports.abstractSubscribeOrUnsubscribeToNotificationBoxParamsType = abstractSubscribeOrUnsubscribeToNotificationBoxParamsType;
|
|
22625
23096
|
exports.abstractSubscribeToNotificationBoxParamsType = abstractSubscribeToNotificationBoxParamsType;
|
|
@@ -22634,6 +23105,7 @@ exports.allowDocumentSnapshotWithPathOnceFilter = allowDocumentSnapshotWithPathO
|
|
|
22634
23105
|
exports.allowedNotificationRecipients = allowedNotificationRecipients;
|
|
22635
23106
|
exports.appNotificationTemplateTypeInfoRecordService = appNotificationTemplateTypeInfoRecordService;
|
|
22636
23107
|
exports.applyExclusionsToNotificationUserNotificationBoxRecipientConfigs = applyExclusionsToNotificationUserNotificationBoxRecipientConfigs;
|
|
23108
|
+
exports.applyUserExternalConnectionEntry = applyUserExternalConnectionEntry;
|
|
22637
23109
|
exports.arrayUpdateWithAccessorFunction = arrayUpdateWithAccessorFunction;
|
|
22638
23110
|
exports.asTopLevelFieldPath = asTopLevelFieldPath;
|
|
22639
23111
|
exports.asTopLevelFieldPaths = asTopLevelFieldPaths;
|
|
@@ -22686,6 +23158,7 @@ exports.createStorageFileDocumentPairFactory = createStorageFileDocumentPairFact
|
|
|
22686
23158
|
exports.createStorageFileGroupParamsType = createStorageFileGroupParamsType;
|
|
22687
23159
|
exports.createStorageFileParamsType = createStorageFileParamsType;
|
|
22688
23160
|
exports.createStorageFileSignedUploadUrlParamsType = createStorageFileSignedUploadUrlParamsType;
|
|
23161
|
+
exports.createUserExternalConnectionParamsType = createUserExternalConnectionParamsType;
|
|
22689
23162
|
exports.dataFromDocumentSnapshots = dataFromDocumentSnapshots;
|
|
22690
23163
|
exports.dataFromSnapshotStream = dataFromSnapshotStream;
|
|
22691
23164
|
exports.decodeFirebaseAuthOobCode = decodeFirebaseAuthOobCode;
|
|
@@ -22705,6 +23178,7 @@ exports.determineUserByFolderWrapperFunction = determineUserByFolderWrapperFunct
|
|
|
22705
23178
|
exports.determineUserByUserUploadsFolderWrapperFunction = determineUserByUserUploadsFolderWrapperFunction;
|
|
22706
23179
|
exports.developmentFirebaseFunctionMapFactory = developmentFirebaseFunctionMapFactory;
|
|
22707
23180
|
exports.directDataHttpsCallable = directDataHttpsCallable;
|
|
23181
|
+
exports.disconnectUserExternalConnectionParamsType = disconnectUserExternalConnectionParamsType;
|
|
22708
23182
|
exports.documentData = documentData;
|
|
22709
23183
|
exports.documentDataFunction = documentDataFunction;
|
|
22710
23184
|
exports.documentDataWithIdAndKey = documentDataWithIdAndKey;
|
|
@@ -22716,6 +23190,7 @@ exports.downloadMultipleStorageFilesParamsType = downloadMultipleStorageFilesPar
|
|
|
22716
23190
|
exports.downloadStorageFileParamsType = downloadStorageFileParamsType;
|
|
22717
23191
|
exports.effectiveNotificationBoxRecipientConfig = effectiveNotificationBoxRecipientConfig;
|
|
22718
23192
|
exports.effectiveNotificationBoxRecipientTemplateConfig = effectiveNotificationBoxRecipientTemplateConfig;
|
|
23193
|
+
exports.emptyUserExternalConnection = emptyUserExternalConnection;
|
|
22719
23194
|
exports.encodeFirebaseAuthOobCode = encodeFirebaseAuthOobCode;
|
|
22720
23195
|
exports.endAt = endAt;
|
|
22721
23196
|
exports.endAtValue = endAtValue;
|
|
@@ -22843,6 +23318,7 @@ exports.firestoreNotificationUserDefaultNotificationBoxRecipientConfig = firesto
|
|
|
22843
23318
|
exports.firestoreNotificationUserNotificationBoxRecipientConfig = firestoreNotificationUserNotificationBoxRecipientConfig;
|
|
22844
23319
|
exports.firestoreNumber = firestoreNumber;
|
|
22845
23320
|
exports.firestoreObjectArray = firestoreObjectArray;
|
|
23321
|
+
exports.firestoreObjectMap = firestoreObjectMap;
|
|
22846
23322
|
exports.firestorePassThroughField = firestorePassThroughField;
|
|
22847
23323
|
exports.firestoreQueryConstraint = firestoreQueryConstraint;
|
|
22848
23324
|
exports.firestoreQueryConstraintFactory = firestoreQueryConstraintFactory;
|
|
@@ -23103,6 +23579,7 @@ exports.readLoggingFirestoreContextCacheFactory = readLoggingFirestoreContextCac
|
|
|
23103
23579
|
exports.readMultipleStorageFilesMetadataFileParamsType = readMultipleStorageFilesMetadataFileParamsType;
|
|
23104
23580
|
exports.readMultipleStorageFilesMetadataParamsType = readMultipleStorageFilesMetadataParamsType;
|
|
23105
23581
|
exports.readStorageFileMetadataParamsType = readStorageFileMetadataParamsType;
|
|
23582
|
+
exports.readUserExternalConnectionAuthorizeStateParamsType = readUserExternalConnectionAuthorizeStateParamsType;
|
|
23106
23583
|
exports.regenerateAllFlaggedStorageFileGroupsContentParamsType = regenerateAllFlaggedStorageFileGroupsContentParamsType;
|
|
23107
23584
|
exports.regenerateStorageFileGroupContentParamsType = regenerateStorageFileGroupContentParamsType;
|
|
23108
23585
|
exports.replaceConstraints = replaceConstraints;
|
|
@@ -23201,6 +23678,20 @@ exports.useContextAuthUid = useContextAuthUid;
|
|
|
23201
23678
|
exports.useDocumentSnapshot = useDocumentSnapshot;
|
|
23202
23679
|
exports.useDocumentSnapshotData = useDocumentSnapshotData;
|
|
23203
23680
|
exports.useFirebaseModelsService = useFirebaseModelsService;
|
|
23681
|
+
exports.userExternalConnectionAccessorFactory = userExternalConnectionAccessorFactory;
|
|
23682
|
+
exports.userExternalConnectionCollectionReference = userExternalConnectionCollectionReference;
|
|
23683
|
+
exports.userExternalConnectionConnectedProviderTypes = userExternalConnectionConnectedProviderTypes;
|
|
23684
|
+
exports.userExternalConnectionConverter = userExternalConnectionConverter;
|
|
23685
|
+
exports.userExternalConnectionEntryFields = userExternalConnectionEntryFields;
|
|
23686
|
+
exports.userExternalConnectionEntryForOutcome = userExternalConnectionEntryForOutcome;
|
|
23687
|
+
exports.userExternalConnectionEntryForProvider = userExternalConnectionEntryForProvider;
|
|
23688
|
+
exports.userExternalConnectionEntryIsConnected = userExternalConnectionEntryIsConnected;
|
|
23689
|
+
exports.userExternalConnectionEntryIsExpired = userExternalConnectionEntryIsExpired;
|
|
23690
|
+
exports.userExternalConnectionFirestoreCollection = userExternalConnectionFirestoreCollection;
|
|
23691
|
+
exports.userExternalConnectionFunctionMap = userExternalConnectionFunctionMap;
|
|
23692
|
+
exports.userExternalConnectionIdentity = userExternalConnectionIdentity;
|
|
23693
|
+
exports.userExternalConnectionIsConnectedToProvider = userExternalConnectionIsConnectedToProvider;
|
|
23694
|
+
exports.userExternalConnectionsWithConnectedProviderQuery = userExternalConnectionsWithConnectedProviderQuery;
|
|
23204
23695
|
exports.userUploadsFolderSlashPathFactory = userUploadsFolderSlashPathFactory;
|
|
23205
23696
|
exports.userUploadsFolderStoragePathFactory = userUploadsFolderStoragePathFactory;
|
|
23206
23697
|
exports.where = where;
|