@dereekb/firebase-server 13.43.0 → 14.0.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.
Files changed (36) hide show
  1. package/calcom/index.esm.js +57 -96
  2. package/calcom/package.json +11 -11
  3. package/discord/index.esm.js +48 -74
  4. package/discord/package.json +11 -11
  5. package/index.esm.js +336 -583
  6. package/mailgun/index.esm.js +20 -32
  7. package/mailgun/package.json +9 -9
  8. package/mcp/index.esm.js +131 -185
  9. package/mcp/package.json +14 -14
  10. package/model/index.esm.js +699 -692
  11. package/model/package.json +14 -14
  12. package/model/src/lib/formspace/formspace.action.server.d.ts +79 -5
  13. package/model/src/lib/formspace/formspace.error.d.ts +21 -0
  14. package/model/src/lib/formspace/formspace.task.service.handler.d.ts +3 -2
  15. package/model/src/lib/storagefile/storagefile.task.service.handler.d.ts +3 -3
  16. package/oidc/index.esm.js +144 -251
  17. package/oidc/package.json +14 -14
  18. package/package.json +24 -24
  19. package/src/lib/function/type.d.ts +0 -9
  20. package/src/lib/nest/app.d.ts +0 -4
  21. package/src/lib/nest/development/development.app.function.d.ts +2 -2
  22. package/src/lib/nest/model/analytics.handler.d.ts +0 -8
  23. package/src/lib/nest/model/api.details.d.ts +0 -8
  24. package/src/lib/nest/nest.provider.d.ts +0 -8
  25. package/test/index.esm.js +239 -395
  26. package/test/package.json +17 -17
  27. package/test/src/lib/firebase/firebase.admin.auth.d.ts +4 -25
  28. package/test/src/lib/firebase/firebase.admin.nest.d.ts +0 -4
  29. package/test/src/lib/firebase/firebase.admin.nest.function.d.ts +7 -7
  30. package/test/src/lib/firebase/firebase.function.d.ts +20 -81
  31. package/test/src/lib/firebase/firebase.test.d.ts +0 -9
  32. package/twilio/index.esm.js +11 -14
  33. package/twilio/package.json +8 -8
  34. package/zoho/index.esm.js +72 -132
  35. package/zoho/package.json +12 -12
  36. package/zoho/src/lib/zoho.accounts.firebase.system.d.ts +0 -10
@@ -30,9 +30,7 @@ typeof SuppressedError === "function" ? SuppressedError : function(error, suppre
30
30
  };
31
31
 
32
32
  function _assert_this_initialized$2(self) {
33
- if (self === void 0) {
34
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
35
- }
33
+ if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
36
34
  return self;
37
35
  }
38
36
  function _call_super$2(_this, derived, args) {
@@ -40,9 +38,7 @@ function _call_super$2(_this, derived, args) {
40
38
  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));
41
39
  }
42
40
  function _class_call_check$3(instance, Constructor) {
43
- if (!(instance instanceof Constructor)) {
44
- throw new TypeError("Cannot call a class as a function");
45
- }
41
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
46
42
  }
47
43
  function _define_property$3(obj, key, value) {
48
44
  if (key in obj) {
@@ -52,9 +48,7 @@ function _define_property$3(obj, key, value) {
52
48
  configurable: true,
53
49
  writable: true
54
50
  });
55
- } else {
56
- obj[key] = value;
57
- }
51
+ } else obj[key] = value;
58
52
  return obj;
59
53
  }
60
54
  function _get_prototype_of$2(o) {
@@ -76,6 +70,14 @@ function _inherits$2(subClass, superClass) {
76
70
  });
77
71
  if (superClass) _set_prototype_of$2(subClass, superClass);
78
72
  }
73
+ function _is_native_reflect_construct$2() {
74
+ try {
75
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
76
+ } catch (_) {}
77
+ return (_is_native_reflect_construct$2 = function() {
78
+ return !!result;
79
+ })();
80
+ }
79
81
  function _object_spread$1(target) {
80
82
  for(var i = 1; i < arguments.length; i++){
81
83
  var source = arguments[i] != null ? arguments[i] : {};
@@ -101,9 +103,8 @@ function ownKeys$1(object, enumerableOnly) {
101
103
  }
102
104
  function _object_spread_props$1(target, source) {
103
105
  source = source != null ? source : {};
104
- if (Object.getOwnPropertyDescriptors) {
105
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
106
- } else {
106
+ if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
107
+ else {
107
108
  ownKeys$1(Object(source)).forEach(function(key) {
108
109
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
109
110
  });
@@ -111,9 +112,7 @@ function _object_spread_props$1(target, source) {
111
112
  return target;
112
113
  }
113
114
  function _possible_constructor_return$2(self, call) {
114
- if (call && (_type_of$2(call) === "object" || typeof call === "function")) {
115
- return call;
116
- }
115
+ if (call && (_type_of$2(call) === "object" || typeof call === "function")) return call;
117
116
  return _assert_this_initialized$2(self);
118
117
  }
119
118
  function _set_prototype_of$2(o, p) {
@@ -127,14 +126,6 @@ function _type_of$2(obj) {
127
126
  "@swc/helpers - typeof";
128
127
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
129
128
  }
130
- function _is_native_reflect_construct$2() {
131
- try {
132
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
133
- } catch (_) {}
134
- return (_is_native_reflect_construct$2 = function() {
135
- return !!result;
136
- })();
137
- }
138
129
  /**
139
130
  * Controller path the Cal.com external-connection OAuth endpoints are mounted at.
140
131
  *
@@ -211,9 +202,7 @@ function _is_native_reflect_construct$2() {
211
202
  }
212
203
 
213
204
  function _assert_this_initialized$1(self) {
214
- if (self === void 0) {
215
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
216
- }
205
+ if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
217
206
  return self;
218
207
  }
219
208
  function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
@@ -224,11 +213,8 @@ function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
224
213
  reject(error);
225
214
  return;
226
215
  }
227
- if (info.done) {
228
- resolve(value);
229
- } else {
230
- Promise.resolve(value).then(_next, _throw);
231
- }
216
+ if (info.done) resolve(value);
217
+ else Promise.resolve(value).then(_next, _throw);
232
218
  }
233
219
  function _async_to_generator$2(fn) {
234
220
  return function() {
@@ -250,9 +236,7 @@ function _call_super$1(_this, derived, args) {
250
236
  return _possible_constructor_return$1(_this, _is_native_reflect_construct$1() ? Reflect.construct(derived, [], _get_prototype_of$1(_this).constructor) : derived.apply(_this, args));
251
237
  }
252
238
  function _class_call_check$2(instance, Constructor) {
253
- if (!(instance instanceof Constructor)) {
254
- throw new TypeError("Cannot call a class as a function");
255
- }
239
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
256
240
  }
257
241
  function _defineProperties(target, props) {
258
242
  for(var i = 0; i < props.length; i++){
@@ -275,9 +259,7 @@ function _define_property$2(obj, key, value) {
275
259
  configurable: true,
276
260
  writable: true
277
261
  });
278
- } else {
279
- obj[key] = value;
280
- }
262
+ } else obj[key] = value;
281
263
  return obj;
282
264
  }
283
265
  function _get_prototype_of$1(o) {
@@ -299,10 +281,16 @@ function _inherits$1(subClass, superClass) {
299
281
  });
300
282
  if (superClass) _set_prototype_of$1(subClass, superClass);
301
283
  }
284
+ function _is_native_reflect_construct$1() {
285
+ try {
286
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
287
+ } catch (_) {}
288
+ return (_is_native_reflect_construct$1 = function() {
289
+ return !!result;
290
+ })();
291
+ }
302
292
  function _possible_constructor_return$1(self, call) {
303
- if (call && (_type_of$1(call) === "object" || typeof call === "function")) {
304
- return call;
305
- }
293
+ if (call && (_type_of$1(call) === "object" || typeof call === "function")) return call;
306
294
  return _assert_this_initialized$1(self);
307
295
  }
308
296
  function _set_prototype_of$1(o, p) {
@@ -312,18 +300,6 @@ function _set_prototype_of$1(o, p) {
312
300
  };
313
301
  return _set_prototype_of$1(o, p);
314
302
  }
315
- function _type_of$1(obj) {
316
- "@swc/helpers - typeof";
317
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
318
- }
319
- function _is_native_reflect_construct$1() {
320
- try {
321
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
322
- } catch (_) {}
323
- return (_is_native_reflect_construct$1 = function() {
324
- return !!result;
325
- })();
326
- }
327
303
  function _ts_generator$2(thisArg, body) {
328
304
  var f, y, t, _ = {
329
305
  label: 0,
@@ -423,6 +399,10 @@ function _ts_generator$2(thisArg, body) {
423
399
  };
424
400
  }
425
401
  }
402
+ function _type_of$1(obj) {
403
+ "@swc/helpers - typeof";
404
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
405
+ }
426
406
  /**
427
407
  * Maps an exchanged Cal.com token to the credentials stored on the private connection document.
428
408
  *
@@ -563,11 +543,8 @@ function asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, key, arg) {
563
543
  reject(error);
564
544
  return;
565
545
  }
566
- if (info.done) {
567
- resolve(value);
568
- } else {
569
- Promise.resolve(value).then(_next, _throw);
570
- }
546
+ if (info.done) resolve(value);
547
+ else Promise.resolve(value).then(_next, _throw);
571
548
  }
572
549
  function _async_to_generator$1(fn) {
573
550
  return function() {
@@ -802,11 +779,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
802
779
  reject(error);
803
780
  return;
804
781
  }
805
- if (info.done) {
806
- resolve(value);
807
- } else {
808
- Promise.resolve(value).then(_next, _throw);
809
- }
782
+ if (info.done) resolve(value);
783
+ else Promise.resolve(value).then(_next, _throw);
810
784
  }
811
785
  function _async_to_generator(fn) {
812
786
  return function() {
@@ -824,9 +798,7 @@ function _async_to_generator(fn) {
824
798
  };
825
799
  }
826
800
  function _class_call_check$1(instance, Constructor) {
827
- if (!(instance instanceof Constructor)) {
828
- throw new TypeError("Cannot call a class as a function");
829
- }
801
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
830
802
  }
831
803
  function _define_property$1(obj, key, value) {
832
804
  if (key in obj) {
@@ -836,18 +808,14 @@ function _define_property$1(obj, key, value) {
836
808
  configurable: true,
837
809
  writable: true
838
810
  });
839
- } else {
840
- obj[key] = value;
841
- }
811
+ } else obj[key] = value;
842
812
  return obj;
843
813
  }
844
814
  function _instanceof(left, right) {
845
815
  "@swc/helpers - instanceof";
846
816
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
847
817
  return !!right[Symbol.hasInstance](left);
848
- } else {
849
- return left instanceof right;
850
- }
818
+ } else return left instanceof right;
851
819
  }
852
820
  function _object_spread(target) {
853
821
  for(var i = 1; i < arguments.length; i++){
@@ -874,9 +842,8 @@ function ownKeys(object, enumerableOnly) {
874
842
  }
875
843
  function _object_spread_props(target, source) {
876
844
  source = source != null ? source : {};
877
- if (Object.getOwnPropertyDescriptors) {
878
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
879
- } else {
845
+ if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
846
+ else {
880
847
  ownKeys(Object(source)).forEach(function(key) {
881
848
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
882
849
  });
@@ -1231,9 +1198,7 @@ function _ts_generator(thisArg, body) {
1231
1198
  }
1232
1199
 
1233
1200
  function _assert_this_initialized(self) {
1234
- if (self === void 0) {
1235
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1236
- }
1201
+ if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1237
1202
  return self;
1238
1203
  }
1239
1204
  function _call_super(_this, derived, args) {
@@ -1241,9 +1206,7 @@ function _call_super(_this, derived, args) {
1241
1206
  return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
1242
1207
  }
1243
1208
  function _class_call_check(instance, Constructor) {
1244
- if (!(instance instanceof Constructor)) {
1245
- throw new TypeError("Cannot call a class as a function");
1246
- }
1209
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
1247
1210
  }
1248
1211
  function _define_property(obj, key, value) {
1249
1212
  if (key in obj) {
@@ -1253,9 +1216,7 @@ function _define_property(obj, key, value) {
1253
1216
  configurable: true,
1254
1217
  writable: true
1255
1218
  });
1256
- } else {
1257
- obj[key] = value;
1258
- }
1219
+ } else obj[key] = value;
1259
1220
  return obj;
1260
1221
  }
1261
1222
  function _get_prototype_of(o) {
@@ -1277,10 +1238,16 @@ function _inherits(subClass, superClass) {
1277
1238
  });
1278
1239
  if (superClass) _set_prototype_of(subClass, superClass);
1279
1240
  }
1241
+ function _is_native_reflect_construct() {
1242
+ try {
1243
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
1244
+ } catch (_) {}
1245
+ return (_is_native_reflect_construct = function() {
1246
+ return !!result;
1247
+ })();
1248
+ }
1280
1249
  function _possible_constructor_return(self, call) {
1281
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
1282
- return call;
1283
- }
1250
+ if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
1284
1251
  return _assert_this_initialized(self);
1285
1252
  }
1286
1253
  function _set_prototype_of(o, p) {
@@ -1294,14 +1261,6 @@ function _type_of(obj) {
1294
1261
  "@swc/helpers - typeof";
1295
1262
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
1296
1263
  }
1297
- function _is_native_reflect_construct() {
1298
- try {
1299
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
1300
- } catch (_) {}
1301
- return (_is_native_reflect_construct = function() {
1302
- return !!result;
1303
- })();
1304
- }
1305
1264
  /**
1306
1265
  * Endpoints for the Cal.com external-connection authorization-code handoff.
1307
1266
  *
@@ -1338,10 +1297,12 @@ function _array_without_holes(arr) {
1338
1297
  if (Array.isArray(arr)) return _array_like_to_array(arr);
1339
1298
  }
1340
1299
  function _iterable_to_array(iter) {
1341
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1300
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
1301
+ return Array.from(iter);
1302
+ }
1342
1303
  }
1343
1304
  function _non_iterable_spread() {
1344
- throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1305
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1345
1306
  }
1346
1307
  function _to_consumable_array(arr) {
1347
1308
  return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@dereekb/firebase-server/calcom",
3
- "version": "13.43.0",
3
+ "version": "14.0.0",
4
4
  "type": "module",
5
5
  "peerDependencies": {
6
- "@dereekb/analytics": "13.43.0",
7
- "@dereekb/calcom": "13.43.0",
8
- "@dereekb/date": "13.43.0",
9
- "@dereekb/firebase": "13.43.0",
10
- "@dereekb/firebase-server": "13.43.0",
11
- "@dereekb/model": "13.43.0",
12
- "@dereekb/nestjs": "13.43.0",
13
- "@dereekb/rxjs": "13.43.0",
14
- "@dereekb/util": "13.43.0",
15
- "@nestjs/common": "^11.1.19",
6
+ "@dereekb/analytics": "14.0.0",
7
+ "@dereekb/calcom": "14.0.0",
8
+ "@dereekb/date": "14.0.0",
9
+ "@dereekb/firebase": "14.0.0",
10
+ "@dereekb/firebase-server": "14.0.0",
11
+ "@dereekb/model": "14.0.0",
12
+ "@dereekb/nestjs": "14.0.0",
13
+ "@dereekb/rxjs": "14.0.0",
14
+ "@dereekb/util": "14.0.0",
15
+ "@nestjs/common": "^12.0.1",
16
16
  "express": "^5.2.1"
17
17
  },
18
18
  "exports": {
@@ -7,9 +7,7 @@ import { ConfigModule } from '@nestjs/config';
7
7
  import { FirebaseServerEnvService } from '@dereekb/firebase-server';
8
8
 
9
9
  function _assert_this_initialized$2(self) {
10
- if (self === void 0) {
11
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
12
- }
10
+ if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
13
11
  return self;
14
12
  }
15
13
  function _call_super$2(_this, derived, args) {
@@ -17,9 +15,7 @@ function _call_super$2(_this, derived, args) {
17
15
  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));
18
16
  }
19
17
  function _class_call_check$2(instance, Constructor) {
20
- if (!(instance instanceof Constructor)) {
21
- throw new TypeError("Cannot call a class as a function");
22
- }
18
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
23
19
  }
24
20
  function _define_property$2(obj, key, value) {
25
21
  if (key in obj) {
@@ -29,9 +25,7 @@ function _define_property$2(obj, key, value) {
29
25
  configurable: true,
30
26
  writable: true
31
27
  });
32
- } else {
33
- obj[key] = value;
34
- }
28
+ } else obj[key] = value;
35
29
  return obj;
36
30
  }
37
31
  function _get_prototype_of$2(o) {
@@ -53,6 +47,14 @@ function _inherits$2(subClass, superClass) {
53
47
  });
54
48
  if (superClass) _set_prototype_of$2(subClass, superClass);
55
49
  }
50
+ function _is_native_reflect_construct$2() {
51
+ try {
52
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
53
+ } catch (_) {}
54
+ return (_is_native_reflect_construct$2 = function() {
55
+ return !!result;
56
+ })();
57
+ }
56
58
  function _object_spread(target) {
57
59
  for(var i = 1; i < arguments.length; i++){
58
60
  var source = arguments[i] != null ? arguments[i] : {};
@@ -78,9 +80,8 @@ function ownKeys(object, enumerableOnly) {
78
80
  }
79
81
  function _object_spread_props(target, source) {
80
82
  source = source != null ? source : {};
81
- if (Object.getOwnPropertyDescriptors) {
82
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
83
- } else {
83
+ if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
84
+ else {
84
85
  ownKeys(Object(source)).forEach(function(key) {
85
86
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
86
87
  });
@@ -88,9 +89,7 @@ function _object_spread_props(target, source) {
88
89
  return target;
89
90
  }
90
91
  function _possible_constructor_return$2(self, call) {
91
- if (call && (_type_of$3(call) === "object" || typeof call === "function")) {
92
- return call;
93
- }
92
+ if (call && (_type_of$3(call) === "object" || typeof call === "function")) return call;
94
93
  return _assert_this_initialized$2(self);
95
94
  }
96
95
  function _set_prototype_of$2(o, p) {
@@ -104,14 +103,6 @@ function _type_of$3(obj) {
104
103
  "@swc/helpers - typeof";
105
104
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
106
105
  }
107
- function _is_native_reflect_construct$2() {
108
- try {
109
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
110
- } catch (_) {}
111
- return (_is_native_reflect_construct$2 = function() {
112
- return !!result;
113
- })();
114
- }
115
106
  /**
116
107
  * Controller path the Discord external-connection OAuth endpoints are mounted at.
117
108
  *
@@ -199,9 +190,7 @@ typeof SuppressedError === "function" ? SuppressedError : function(error, suppre
199
190
  };
200
191
 
201
192
  function _assert_this_initialized$1(self) {
202
- if (self === void 0) {
203
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
204
- }
193
+ if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
205
194
  return self;
206
195
  }
207
196
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
@@ -212,11 +201,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
212
201
  reject(error);
213
202
  return;
214
203
  }
215
- if (info.done) {
216
- resolve(value);
217
- } else {
218
- Promise.resolve(value).then(_next, _throw);
219
- }
204
+ if (info.done) resolve(value);
205
+ else Promise.resolve(value).then(_next, _throw);
220
206
  }
221
207
  function _async_to_generator(fn) {
222
208
  return function() {
@@ -238,9 +224,7 @@ function _call_super$1(_this, derived, args) {
238
224
  return _possible_constructor_return$1(_this, _is_native_reflect_construct$1() ? Reflect.construct(derived, [], _get_prototype_of$1(_this).constructor) : derived.apply(_this, args));
239
225
  }
240
226
  function _class_call_check$1(instance, Constructor) {
241
- if (!(instance instanceof Constructor)) {
242
- throw new TypeError("Cannot call a class as a function");
243
- }
227
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
244
228
  }
245
229
  function _defineProperties(target, props) {
246
230
  for(var i = 0; i < props.length; i++){
@@ -263,9 +247,7 @@ function _define_property$1(obj, key, value) {
263
247
  configurable: true,
264
248
  writable: true
265
249
  });
266
- } else {
267
- obj[key] = value;
268
- }
250
+ } else obj[key] = value;
269
251
  return obj;
270
252
  }
271
253
  function _get_prototype_of$1(o) {
@@ -287,10 +269,16 @@ function _inherits$1(subClass, superClass) {
287
269
  });
288
270
  if (superClass) _set_prototype_of$1(subClass, superClass);
289
271
  }
272
+ function _is_native_reflect_construct$1() {
273
+ try {
274
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
275
+ } catch (_) {}
276
+ return (_is_native_reflect_construct$1 = function() {
277
+ return !!result;
278
+ })();
279
+ }
290
280
  function _possible_constructor_return$1(self, call) {
291
- if (call && (_type_of$1(call) === "object" || typeof call === "function")) {
292
- return call;
293
- }
281
+ if (call && (_type_of$1(call) === "object" || typeof call === "function")) return call;
294
282
  return _assert_this_initialized$1(self);
295
283
  }
296
284
  function _set_prototype_of$1(o, p) {
@@ -300,18 +288,6 @@ function _set_prototype_of$1(o, p) {
300
288
  };
301
289
  return _set_prototype_of$1(o, p);
302
290
  }
303
- function _type_of$1(obj) {
304
- "@swc/helpers - typeof";
305
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
306
- }
307
- function _is_native_reflect_construct$1() {
308
- try {
309
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
310
- } catch (_) {}
311
- return (_is_native_reflect_construct$1 = function() {
312
- return !!result;
313
- })();
314
- }
315
291
  function _ts_generator(thisArg, body) {
316
292
  var f, y, t, _ = {
317
293
  label: 0,
@@ -411,6 +387,10 @@ function _ts_generator(thisArg, body) {
411
387
  };
412
388
  }
413
389
  }
390
+ function _type_of$1(obj) {
391
+ "@swc/helpers - typeof";
392
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
393
+ }
414
394
  /**
415
395
  * Maps an exchanged Discord token, plus the identity it belongs to, to the credentials stored on the
416
396
  * private connection document.
@@ -579,9 +559,7 @@ DiscordUserExternalConnectionOAuthService = __decorate([
579
559
  ], DiscordUserExternalConnectionOAuthService);
580
560
 
581
561
  function _assert_this_initialized(self) {
582
- if (self === void 0) {
583
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
584
- }
562
+ if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
585
563
  return self;
586
564
  }
587
565
  function _call_super(_this, derived, args) {
@@ -589,9 +567,7 @@ function _call_super(_this, derived, args) {
589
567
  return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
590
568
  }
591
569
  function _class_call_check(instance, Constructor) {
592
- if (!(instance instanceof Constructor)) {
593
- throw new TypeError("Cannot call a class as a function");
594
- }
570
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
595
571
  }
596
572
  function _define_property(obj, key, value) {
597
573
  if (key in obj) {
@@ -601,9 +577,7 @@ function _define_property(obj, key, value) {
601
577
  configurable: true,
602
578
  writable: true
603
579
  });
604
- } else {
605
- obj[key] = value;
606
- }
580
+ } else obj[key] = value;
607
581
  return obj;
608
582
  }
609
583
  function _get_prototype_of(o) {
@@ -625,10 +599,16 @@ function _inherits(subClass, superClass) {
625
599
  });
626
600
  if (superClass) _set_prototype_of(subClass, superClass);
627
601
  }
602
+ function _is_native_reflect_construct() {
603
+ try {
604
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
605
+ } catch (_) {}
606
+ return (_is_native_reflect_construct = function() {
607
+ return !!result;
608
+ })();
609
+ }
628
610
  function _possible_constructor_return(self, call) {
629
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
630
- return call;
631
- }
611
+ if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
632
612
  return _assert_this_initialized(self);
633
613
  }
634
614
  function _set_prototype_of(o, p) {
@@ -642,14 +622,6 @@ function _type_of(obj) {
642
622
  "@swc/helpers - typeof";
643
623
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
644
624
  }
645
- function _is_native_reflect_construct() {
646
- try {
647
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
648
- } catch (_) {}
649
- return (_is_native_reflect_construct = function() {
650
- return !!result;
651
- })();
652
- }
653
625
  /**
654
626
  * Endpoints for the Discord external-connection authorization-code handoff.
655
627
  *
@@ -686,10 +658,12 @@ function _array_without_holes(arr) {
686
658
  if (Array.isArray(arr)) return _array_like_to_array(arr);
687
659
  }
688
660
  function _iterable_to_array(iter) {
689
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
661
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
662
+ return Array.from(iter);
663
+ }
690
664
  }
691
665
  function _non_iterable_spread() {
692
- throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
666
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
693
667
  }
694
668
  function _to_consumable_array(arr) {
695
669
  return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@dereekb/firebase-server/discord",
3
- "version": "13.43.0",
3
+ "version": "14.0.0",
4
4
  "type": "module",
5
5
  "peerDependencies": {
6
- "@dereekb/analytics": "13.43.0",
7
- "@dereekb/date": "13.43.0",
8
- "@dereekb/discord": "13.43.0",
9
- "@dereekb/firebase": "13.43.0",
10
- "@dereekb/firebase-server": "13.43.0",
11
- "@dereekb/model": "13.43.0",
12
- "@dereekb/nestjs": "13.43.0",
13
- "@dereekb/rxjs": "13.43.0",
14
- "@dereekb/util": "13.43.0",
15
- "@nestjs/common": "^11.1.19",
6
+ "@dereekb/analytics": "14.0.0",
7
+ "@dereekb/date": "14.0.0",
8
+ "@dereekb/discord": "14.0.0",
9
+ "@dereekb/firebase": "14.0.0",
10
+ "@dereekb/firebase-server": "14.0.0",
11
+ "@dereekb/model": "14.0.0",
12
+ "@dereekb/nestjs": "14.0.0",
13
+ "@dereekb/rxjs": "14.0.0",
14
+ "@dereekb/util": "14.0.0",
15
+ "@nestjs/common": "^12.0.1",
16
16
  "express": "^5.2.1"
17
17
  },
18
18
  "exports": {