@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.
- package/calcom/index.esm.js +57 -96
- package/calcom/package.json +11 -11
- package/discord/index.esm.js +48 -74
- package/discord/package.json +11 -11
- package/index.esm.js +336 -583
- package/mailgun/index.esm.js +20 -32
- package/mailgun/package.json +9 -9
- package/mcp/index.esm.js +131 -185
- package/mcp/package.json +14 -14
- package/model/index.esm.js +699 -692
- package/model/package.json +14 -14
- package/model/src/lib/formspace/formspace.action.server.d.ts +79 -5
- package/model/src/lib/formspace/formspace.error.d.ts +21 -0
- package/model/src/lib/formspace/formspace.task.service.handler.d.ts +3 -2
- package/model/src/lib/storagefile/storagefile.task.service.handler.d.ts +3 -3
- package/oidc/index.esm.js +144 -251
- package/oidc/package.json +14 -14
- package/package.json +24 -24
- package/src/lib/function/type.d.ts +0 -9
- package/src/lib/nest/app.d.ts +0 -4
- package/src/lib/nest/development/development.app.function.d.ts +2 -2
- package/src/lib/nest/model/analytics.handler.d.ts +0 -8
- package/src/lib/nest/model/api.details.d.ts +0 -8
- package/src/lib/nest/nest.provider.d.ts +0 -8
- package/test/index.esm.js +239 -395
- package/test/package.json +17 -17
- package/test/src/lib/firebase/firebase.admin.auth.d.ts +4 -25
- package/test/src/lib/firebase/firebase.admin.nest.d.ts +0 -4
- package/test/src/lib/firebase/firebase.admin.nest.function.d.ts +7 -7
- package/test/src/lib/firebase/firebase.function.d.ts +20 -81
- package/test/src/lib/firebase/firebase.test.d.ts +0 -9
- package/twilio/index.esm.js +11 -14
- package/twilio/package.json +8 -8
- package/zoho/index.esm.js +72 -132
- package/zoho/package.json +12 -12
- package/zoho/src/lib/zoho.accounts.firebase.system.d.ts +0 -10
package/zoho/index.esm.js
CHANGED
|
@@ -122,28 +122,6 @@ import { ConfigModule } from '@nestjs/config';
|
|
|
122
122
|
*/ function loadZohoAccessTokenSystemState(accessor) {
|
|
123
123
|
return accessor.loadDocumentForId(ZOHO_ACCESS_TOKEN_SYSTEM_STATE_TYPE);
|
|
124
124
|
}
|
|
125
|
-
// COMPAT: Deprecated aliases
|
|
126
|
-
/**
|
|
127
|
-
* @deprecated stores the access token in PLAINTEXT. Use
|
|
128
|
-
* {@link zohoAccessTokenSystemStateEmbeddedTokenConverterFactory} instead, which encrypts it at rest.
|
|
129
|
-
*/ var zohoAccessTokenSystemStateEmbeddedTokenConverter = firestoreSubObject({
|
|
130
|
-
objectField: {
|
|
131
|
-
fields: {
|
|
132
|
-
key: firestoreString(),
|
|
133
|
-
accessToken: firestoreString(),
|
|
134
|
-
scope: firestoreString(),
|
|
135
|
-
apiDomain: firestoreString(),
|
|
136
|
-
expiresIn: firestoreNumber({
|
|
137
|
-
default: 3600
|
|
138
|
-
}),
|
|
139
|
-
expiresAt: firestoreDate()
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
});
|
|
143
|
-
/**
|
|
144
|
-
* @deprecated stores access tokens in PLAINTEXT. Use {@link zohoAccessTokenSystemStateDataConverterFactory}
|
|
145
|
-
* instead, and register it on a server-only SystemStatePrivate collection.
|
|
146
|
-
*/ var zohoAccessTokenSystemStateDataConverter = zohoAccessTokenSystemStateDataConverterForEmbeddedTokenConverter(zohoAccessTokenSystemStateEmbeddedTokenConverter);
|
|
147
125
|
|
|
148
126
|
function _array_like_to_array$1(arr, len) {
|
|
149
127
|
if (len == null || len > arr.length) len = arr.length;
|
|
@@ -161,11 +139,8 @@ function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
161
139
|
reject(error);
|
|
162
140
|
return;
|
|
163
141
|
}
|
|
164
|
-
if (info.done)
|
|
165
|
-
|
|
166
|
-
} else {
|
|
167
|
-
Promise.resolve(value).then(_next, _throw);
|
|
168
|
-
}
|
|
142
|
+
if (info.done) resolve(value);
|
|
143
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
169
144
|
}
|
|
170
145
|
function _async_to_generator$2(fn) {
|
|
171
146
|
return function() {
|
|
@@ -190,16 +165,16 @@ function _define_property$5(obj, key, value) {
|
|
|
190
165
|
configurable: true,
|
|
191
166
|
writable: true
|
|
192
167
|
});
|
|
193
|
-
} else
|
|
194
|
-
obj[key] = value;
|
|
195
|
-
}
|
|
168
|
+
} else obj[key] = value;
|
|
196
169
|
return obj;
|
|
197
170
|
}
|
|
198
171
|
function _iterable_to_array$1(iter) {
|
|
199
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
172
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
173
|
+
return Array.from(iter);
|
|
174
|
+
}
|
|
200
175
|
}
|
|
201
176
|
function _non_iterable_spread$1() {
|
|
202
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
177
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
203
178
|
}
|
|
204
179
|
function _object_spread$2(target) {
|
|
205
180
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -226,9 +201,8 @@ function ownKeys$2(object, enumerableOnly) {
|
|
|
226
201
|
}
|
|
227
202
|
function _object_spread_props$2(target, source) {
|
|
228
203
|
source = source != null ? source : {};
|
|
229
|
-
if (Object.getOwnPropertyDescriptors)
|
|
230
|
-
|
|
231
|
-
} else {
|
|
204
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
205
|
+
else {
|
|
232
206
|
ownKeys$2(Object(source)).forEach(function(key) {
|
|
233
207
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
234
208
|
});
|
|
@@ -238,14 +212,6 @@ function _object_spread_props$2(target, source) {
|
|
|
238
212
|
function _to_consumable_array$1(arr) {
|
|
239
213
|
return _array_without_holes$1(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$1(arr) || _non_iterable_spread$1();
|
|
240
214
|
}
|
|
241
|
-
function _unsupported_iterable_to_array$1(o, minLen) {
|
|
242
|
-
if (!o) return;
|
|
243
|
-
if (typeof o === "string") return _array_like_to_array$1(o, minLen);
|
|
244
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
245
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
246
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
247
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
|
|
248
|
-
}
|
|
249
215
|
function _ts_generator$2(thisArg, body) {
|
|
250
216
|
var f, y, t, _ = {
|
|
251
217
|
label: 0,
|
|
@@ -345,6 +311,14 @@ function _ts_generator$2(thisArg, body) {
|
|
|
345
311
|
};
|
|
346
312
|
}
|
|
347
313
|
}
|
|
314
|
+
function _unsupported_iterable_to_array$1(o, minLen) {
|
|
315
|
+
if (!o) return;
|
|
316
|
+
if (typeof o === "string") return _array_like_to_array$1(o, minLen);
|
|
317
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
318
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
319
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
320
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
|
|
321
|
+
}
|
|
348
322
|
/**
|
|
349
323
|
* Creates a {@link ZohoAccountsAccessTokenCacheService} backed by Firestore {@link SystemState} documents.
|
|
350
324
|
*
|
|
@@ -548,9 +522,7 @@ function _define_property$4(obj, key, value) {
|
|
|
548
522
|
configurable: true,
|
|
549
523
|
writable: true
|
|
550
524
|
});
|
|
551
|
-
} else
|
|
552
|
-
obj[key] = value;
|
|
553
|
-
}
|
|
525
|
+
} else obj[key] = value;
|
|
554
526
|
return obj;
|
|
555
527
|
}
|
|
556
528
|
// MARK: Environment Variable Keys
|
|
@@ -633,9 +605,7 @@ typeof SuppressedError === "function" ? SuppressedError : function(error, suppre
|
|
|
633
605
|
};
|
|
634
606
|
|
|
635
607
|
function _assert_this_initialized$2(self) {
|
|
636
|
-
if (self === void 0)
|
|
637
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
638
|
-
}
|
|
608
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
639
609
|
return self;
|
|
640
610
|
}
|
|
641
611
|
function _call_super$2(_this, derived, args) {
|
|
@@ -643,9 +613,7 @@ function _call_super$2(_this, derived, args) {
|
|
|
643
613
|
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));
|
|
644
614
|
}
|
|
645
615
|
function _class_call_check$2(instance, Constructor) {
|
|
646
|
-
if (!(instance instanceof Constructor))
|
|
647
|
-
throw new TypeError("Cannot call a class as a function");
|
|
648
|
-
}
|
|
616
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
649
617
|
}
|
|
650
618
|
function _define_property$3(obj, key, value) {
|
|
651
619
|
if (key in obj) {
|
|
@@ -655,9 +623,7 @@ function _define_property$3(obj, key, value) {
|
|
|
655
623
|
configurable: true,
|
|
656
624
|
writable: true
|
|
657
625
|
});
|
|
658
|
-
} else
|
|
659
|
-
obj[key] = value;
|
|
660
|
-
}
|
|
626
|
+
} else obj[key] = value;
|
|
661
627
|
return obj;
|
|
662
628
|
}
|
|
663
629
|
function _get_prototype_of$2(o) {
|
|
@@ -679,6 +645,14 @@ function _inherits$2(subClass, superClass) {
|
|
|
679
645
|
});
|
|
680
646
|
if (superClass) _set_prototype_of$2(subClass, superClass);
|
|
681
647
|
}
|
|
648
|
+
function _is_native_reflect_construct$2() {
|
|
649
|
+
try {
|
|
650
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
651
|
+
} catch (_) {}
|
|
652
|
+
return (_is_native_reflect_construct$2 = function() {
|
|
653
|
+
return !!result;
|
|
654
|
+
})();
|
|
655
|
+
}
|
|
682
656
|
function _object_spread$1(target) {
|
|
683
657
|
for(var i = 1; i < arguments.length; i++){
|
|
684
658
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
@@ -704,9 +678,8 @@ function ownKeys$1(object, enumerableOnly) {
|
|
|
704
678
|
}
|
|
705
679
|
function _object_spread_props$1(target, source) {
|
|
706
680
|
source = source != null ? source : {};
|
|
707
|
-
if (Object.getOwnPropertyDescriptors)
|
|
708
|
-
|
|
709
|
-
} else {
|
|
681
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
682
|
+
else {
|
|
710
683
|
ownKeys$1(Object(source)).forEach(function(key) {
|
|
711
684
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
712
685
|
});
|
|
@@ -714,9 +687,7 @@ function _object_spread_props$1(target, source) {
|
|
|
714
687
|
return target;
|
|
715
688
|
}
|
|
716
689
|
function _possible_constructor_return$2(self, call) {
|
|
717
|
-
if (call && (_type_of$2(call) === "object" || typeof call === "function"))
|
|
718
|
-
return call;
|
|
719
|
-
}
|
|
690
|
+
if (call && (_type_of$2(call) === "object" || typeof call === "function")) return call;
|
|
720
691
|
return _assert_this_initialized$2(self);
|
|
721
692
|
}
|
|
722
693
|
function _set_prototype_of$2(o, p) {
|
|
@@ -730,14 +701,6 @@ function _type_of$2(obj) {
|
|
|
730
701
|
"@swc/helpers - typeof";
|
|
731
702
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
732
703
|
}
|
|
733
|
-
function _is_native_reflect_construct$2() {
|
|
734
|
-
try {
|
|
735
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
736
|
-
} catch (_) {}
|
|
737
|
-
return (_is_native_reflect_construct$2 = function() {
|
|
738
|
-
return !!result;
|
|
739
|
-
})();
|
|
740
|
-
}
|
|
741
704
|
/**
|
|
742
705
|
* Controller path the Zoho external-connection OAuth endpoints are mounted at.
|
|
743
706
|
*
|
|
@@ -811,9 +774,7 @@ function _is_native_reflect_construct$2() {
|
|
|
811
774
|
}
|
|
812
775
|
|
|
813
776
|
function _assert_this_initialized$1(self) {
|
|
814
|
-
if (self === void 0)
|
|
815
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
816
|
-
}
|
|
777
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
817
778
|
return self;
|
|
818
779
|
}
|
|
819
780
|
function asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, key, arg) {
|
|
@@ -824,11 +785,8 @@ function asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
824
785
|
reject(error);
|
|
825
786
|
return;
|
|
826
787
|
}
|
|
827
|
-
if (info.done)
|
|
828
|
-
|
|
829
|
-
} else {
|
|
830
|
-
Promise.resolve(value).then(_next, _throw);
|
|
831
|
-
}
|
|
788
|
+
if (info.done) resolve(value);
|
|
789
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
832
790
|
}
|
|
833
791
|
function _async_to_generator$1(fn) {
|
|
834
792
|
return function() {
|
|
@@ -850,9 +808,7 @@ function _call_super$1(_this, derived, args) {
|
|
|
850
808
|
return _possible_constructor_return$1(_this, _is_native_reflect_construct$1() ? Reflect.construct(derived, [], _get_prototype_of$1(_this).constructor) : derived.apply(_this, args));
|
|
851
809
|
}
|
|
852
810
|
function _class_call_check$1(instance, Constructor) {
|
|
853
|
-
if (!(instance instanceof Constructor))
|
|
854
|
-
throw new TypeError("Cannot call a class as a function");
|
|
855
|
-
}
|
|
811
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
856
812
|
}
|
|
857
813
|
function _defineProperties(target, props) {
|
|
858
814
|
for(var i = 0; i < props.length; i++){
|
|
@@ -875,9 +831,7 @@ function _define_property$2(obj, key, value) {
|
|
|
875
831
|
configurable: true,
|
|
876
832
|
writable: true
|
|
877
833
|
});
|
|
878
|
-
} else
|
|
879
|
-
obj[key] = value;
|
|
880
|
-
}
|
|
834
|
+
} else obj[key] = value;
|
|
881
835
|
return obj;
|
|
882
836
|
}
|
|
883
837
|
function _get_prototype_of$1(o) {
|
|
@@ -899,10 +853,16 @@ function _inherits$1(subClass, superClass) {
|
|
|
899
853
|
});
|
|
900
854
|
if (superClass) _set_prototype_of$1(subClass, superClass);
|
|
901
855
|
}
|
|
856
|
+
function _is_native_reflect_construct$1() {
|
|
857
|
+
try {
|
|
858
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
859
|
+
} catch (_) {}
|
|
860
|
+
return (_is_native_reflect_construct$1 = function() {
|
|
861
|
+
return !!result;
|
|
862
|
+
})();
|
|
863
|
+
}
|
|
902
864
|
function _possible_constructor_return$1(self, call) {
|
|
903
|
-
if (call && (_type_of$1(call) === "object" || typeof call === "function"))
|
|
904
|
-
return call;
|
|
905
|
-
}
|
|
865
|
+
if (call && (_type_of$1(call) === "object" || typeof call === "function")) return call;
|
|
906
866
|
return _assert_this_initialized$1(self);
|
|
907
867
|
}
|
|
908
868
|
function _set_prototype_of$1(o, p) {
|
|
@@ -912,18 +872,6 @@ function _set_prototype_of$1(o, p) {
|
|
|
912
872
|
};
|
|
913
873
|
return _set_prototype_of$1(o, p);
|
|
914
874
|
}
|
|
915
|
-
function _type_of$1(obj) {
|
|
916
|
-
"@swc/helpers - typeof";
|
|
917
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
918
|
-
}
|
|
919
|
-
function _is_native_reflect_construct$1() {
|
|
920
|
-
try {
|
|
921
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
922
|
-
} catch (_) {}
|
|
923
|
-
return (_is_native_reflect_construct$1 = function() {
|
|
924
|
-
return !!result;
|
|
925
|
-
})();
|
|
926
|
-
}
|
|
927
875
|
function _ts_generator$1(thisArg, body) {
|
|
928
876
|
var f, y, t, _ = {
|
|
929
877
|
label: 0,
|
|
@@ -1023,6 +971,10 @@ function _ts_generator$1(thisArg, body) {
|
|
|
1023
971
|
};
|
|
1024
972
|
}
|
|
1025
973
|
}
|
|
974
|
+
function _type_of$1(obj) {
|
|
975
|
+
"@swc/helpers - typeof";
|
|
976
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
977
|
+
}
|
|
1026
978
|
/**
|
|
1027
979
|
* The callback parameter naming the datacenter whose accounts server issued the code.
|
|
1028
980
|
*/ var ZOHO_OAUTH_CALLBACK_ACCOUNTS_SERVER_PARAM = 'accounts-server';
|
|
@@ -1281,11 +1233,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
1281
1233
|
reject(error);
|
|
1282
1234
|
return;
|
|
1283
1235
|
}
|
|
1284
|
-
if (info.done)
|
|
1285
|
-
|
|
1286
|
-
} else {
|
|
1287
|
-
Promise.resolve(value).then(_next, _throw);
|
|
1288
|
-
}
|
|
1236
|
+
if (info.done) resolve(value);
|
|
1237
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
1289
1238
|
}
|
|
1290
1239
|
function _async_to_generator(fn) {
|
|
1291
1240
|
return function() {
|
|
@@ -1310,9 +1259,7 @@ function _define_property$1(obj, key, value) {
|
|
|
1310
1259
|
configurable: true,
|
|
1311
1260
|
writable: true
|
|
1312
1261
|
});
|
|
1313
|
-
} else
|
|
1314
|
-
obj[key] = value;
|
|
1315
|
-
}
|
|
1262
|
+
} else obj[key] = value;
|
|
1316
1263
|
return obj;
|
|
1317
1264
|
}
|
|
1318
1265
|
function _object_spread(target) {
|
|
@@ -1340,9 +1287,8 @@ function ownKeys(object, enumerableOnly) {
|
|
|
1340
1287
|
}
|
|
1341
1288
|
function _object_spread_props(target, source) {
|
|
1342
1289
|
source = source != null ? source : {};
|
|
1343
|
-
if (Object.getOwnPropertyDescriptors)
|
|
1344
|
-
|
|
1345
|
-
} else {
|
|
1290
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1291
|
+
else {
|
|
1346
1292
|
ownKeys(Object(source)).forEach(function(key) {
|
|
1347
1293
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1348
1294
|
});
|
|
@@ -1609,9 +1555,7 @@ function _ts_generator(thisArg, body) {
|
|
|
1609
1555
|
}
|
|
1610
1556
|
|
|
1611
1557
|
function _assert_this_initialized(self) {
|
|
1612
|
-
if (self === void 0)
|
|
1613
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1614
|
-
}
|
|
1558
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1615
1559
|
return self;
|
|
1616
1560
|
}
|
|
1617
1561
|
function _call_super(_this, derived, args) {
|
|
@@ -1619,9 +1563,7 @@ function _call_super(_this, derived, args) {
|
|
|
1619
1563
|
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
1620
1564
|
}
|
|
1621
1565
|
function _class_call_check(instance, Constructor) {
|
|
1622
|
-
if (!(instance instanceof Constructor))
|
|
1623
|
-
throw new TypeError("Cannot call a class as a function");
|
|
1624
|
-
}
|
|
1566
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
1625
1567
|
}
|
|
1626
1568
|
function _define_property(obj, key, value) {
|
|
1627
1569
|
if (key in obj) {
|
|
@@ -1631,9 +1573,7 @@ function _define_property(obj, key, value) {
|
|
|
1631
1573
|
configurable: true,
|
|
1632
1574
|
writable: true
|
|
1633
1575
|
});
|
|
1634
|
-
} else
|
|
1635
|
-
obj[key] = value;
|
|
1636
|
-
}
|
|
1576
|
+
} else obj[key] = value;
|
|
1637
1577
|
return obj;
|
|
1638
1578
|
}
|
|
1639
1579
|
function _get_prototype_of(o) {
|
|
@@ -1655,10 +1595,16 @@ function _inherits(subClass, superClass) {
|
|
|
1655
1595
|
});
|
|
1656
1596
|
if (superClass) _set_prototype_of(subClass, superClass);
|
|
1657
1597
|
}
|
|
1598
|
+
function _is_native_reflect_construct() {
|
|
1599
|
+
try {
|
|
1600
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
1601
|
+
} catch (_) {}
|
|
1602
|
+
return (_is_native_reflect_construct = function() {
|
|
1603
|
+
return !!result;
|
|
1604
|
+
})();
|
|
1605
|
+
}
|
|
1658
1606
|
function _possible_constructor_return(self, call) {
|
|
1659
|
-
if (call && (_type_of(call) === "object" || typeof call === "function"))
|
|
1660
|
-
return call;
|
|
1661
|
-
}
|
|
1607
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
|
|
1662
1608
|
return _assert_this_initialized(self);
|
|
1663
1609
|
}
|
|
1664
1610
|
function _set_prototype_of(o, p) {
|
|
@@ -1672,14 +1618,6 @@ function _type_of(obj) {
|
|
|
1672
1618
|
"@swc/helpers - typeof";
|
|
1673
1619
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
1674
1620
|
}
|
|
1675
|
-
function _is_native_reflect_construct() {
|
|
1676
|
-
try {
|
|
1677
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
1678
|
-
} catch (_) {}
|
|
1679
|
-
return (_is_native_reflect_construct = function() {
|
|
1680
|
-
return !!result;
|
|
1681
|
-
})();
|
|
1682
|
-
}
|
|
1683
1621
|
/**
|
|
1684
1622
|
* Endpoints for the Zoho external-connection authorization-code handoff.
|
|
1685
1623
|
*
|
|
@@ -1716,10 +1654,12 @@ function _array_without_holes(arr) {
|
|
|
1716
1654
|
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
|
1717
1655
|
}
|
|
1718
1656
|
function _iterable_to_array(iter) {
|
|
1719
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
1657
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
1658
|
+
return Array.from(iter);
|
|
1659
|
+
}
|
|
1720
1660
|
}
|
|
1721
1661
|
function _non_iterable_spread() {
|
|
1722
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
1662
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1723
1663
|
}
|
|
1724
1664
|
function _to_consumable_array(arr) {
|
|
1725
1665
|
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
@@ -1781,4 +1721,4 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
1781
1721
|
};
|
|
1782
1722
|
}
|
|
1783
1723
|
|
|
1784
|
-
export { DEFAULT_ZOHO_OAUTH_SCOPES, TESTING_ZOHO_ACCESS_TOKEN_ENCRYPTION_SECRET, ZOHO_ACCESS_TOKEN_ENCRYPTION_SECRET_ENV_KEY, ZOHO_ACCESS_TOKEN_SYSTEM_STATE_TYPE, ZOHO_EXTRA_ACCOUNTS_SERVER_KEY, ZOHO_EXTRA_API_DOMAIN_KEY, ZOHO_EXTRA_LOCATION_KEY, ZOHO_OAUTH_CALLBACK_ACCOUNTS_SERVER_PARAM, ZOHO_OAUTH_CALLBACK_LOCATION_PARAM, ZOHO_USER_EXTERNAL_CONNECTION_OAUTH_CONTROLLER_PATH, ZOHO_USER_EXTERNAL_CONNECTION_OAUTH_ROUTES_FOR_GLOBAL_ROUTE_EXCLUDE, ZohoUserExternalConnectionOAuthController, ZohoUserExternalConnectionOAuthService, ZohoUserExternalConnectionOAuthServiceConfig, appZohoUserExternalConnectionOAuthModuleMetadata, firebaseZohoAccountsAccessTokenCacheService, loadZohoAccessTokenSystemState, userExternalConnectionZohoAccessTokenCache, zohoAccessTokenEncryptionSecretFactory, zohoAccessTokenFromUserExternalConnectionCredentials,
|
|
1724
|
+
export { DEFAULT_ZOHO_OAUTH_SCOPES, TESTING_ZOHO_ACCESS_TOKEN_ENCRYPTION_SECRET, ZOHO_ACCESS_TOKEN_ENCRYPTION_SECRET_ENV_KEY, ZOHO_ACCESS_TOKEN_SYSTEM_STATE_TYPE, ZOHO_EXTRA_ACCOUNTS_SERVER_KEY, ZOHO_EXTRA_API_DOMAIN_KEY, ZOHO_EXTRA_LOCATION_KEY, ZOHO_OAUTH_CALLBACK_ACCOUNTS_SERVER_PARAM, ZOHO_OAUTH_CALLBACK_LOCATION_PARAM, ZOHO_USER_EXTERNAL_CONNECTION_OAUTH_CONTROLLER_PATH, ZOHO_USER_EXTERNAL_CONNECTION_OAUTH_ROUTES_FOR_GLOBAL_ROUTE_EXCLUDE, ZohoUserExternalConnectionOAuthController, ZohoUserExternalConnectionOAuthService, ZohoUserExternalConnectionOAuthServiceConfig, appZohoUserExternalConnectionOAuthModuleMetadata, firebaseZohoAccountsAccessTokenCacheService, loadZohoAccessTokenSystemState, userExternalConnectionZohoAccessTokenCache, zohoAccessTokenEncryptionSecretFactory, zohoAccessTokenFromUserExternalConnectionCredentials, zohoAccessTokenSystemStateDataConverterFactory, zohoAccessTokenSystemStateEmbeddedTokenConverterFactory, zohoAccessTokenSystemStatePrivateConverterEntry, zohoUserExternalConnectionCredentials, zohoUserExternalConnectionOAuthServiceConfigFactory };
|
package/zoho/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/firebase-server/zoho",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "14.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@dereekb/analytics": "
|
|
7
|
-
"@dereekb/date": "
|
|
8
|
-
"@dereekb/model": "
|
|
9
|
-
"@dereekb/nestjs": "
|
|
10
|
-
"@dereekb/rxjs": "
|
|
11
|
-
"@dereekb/firebase": "
|
|
12
|
-
"@dereekb/firebase-server": "
|
|
13
|
-
"@dereekb/util": "
|
|
14
|
-
"@dereekb/zoho": "
|
|
15
|
-
"@nestjs/common": "^
|
|
16
|
-
"@nestjs/config": "^
|
|
6
|
+
"@dereekb/analytics": "14.0.0",
|
|
7
|
+
"@dereekb/date": "14.0.0",
|
|
8
|
+
"@dereekb/model": "14.0.0",
|
|
9
|
+
"@dereekb/nestjs": "14.0.0",
|
|
10
|
+
"@dereekb/rxjs": "14.0.0",
|
|
11
|
+
"@dereekb/firebase": "14.0.0",
|
|
12
|
+
"@dereekb/firebase-server": "14.0.0",
|
|
13
|
+
"@dereekb/util": "14.0.0",
|
|
14
|
+
"@dereekb/zoho": "14.0.0",
|
|
15
|
+
"@nestjs/common": "^12.0.1",
|
|
16
|
+
"@nestjs/config": "^12.0.0",
|
|
17
17
|
"express": "^5.2.1"
|
|
18
18
|
},
|
|
19
19
|
"exports": {
|
|
@@ -87,13 +87,3 @@ export declare function zohoAccessTokenSystemStateDataConverterFactory(config: Z
|
|
|
87
87
|
* ```
|
|
88
88
|
*/
|
|
89
89
|
export declare function loadZohoAccessTokenSystemState<D extends FirestoreDocument<SystemState<SystemStateStoredData>>>(accessor: FirestoreDocumentAccessor<SystemState<SystemStateStoredData>, D>): SystemStateDocument<ZohoAccessTokenSystemStateData>;
|
|
90
|
-
/**
|
|
91
|
-
* @deprecated stores the access token in PLAINTEXT. Use
|
|
92
|
-
* {@link zohoAccessTokenSystemStateEmbeddedTokenConverterFactory} instead, which encrypts it at rest.
|
|
93
|
-
*/
|
|
94
|
-
export declare const zohoAccessTokenSystemStateEmbeddedTokenConverter: import("@dereekb/firebase").FirestoreSubObjectFieldMapFunctionsConfig<ZohoAccessTokenSystemStateEmbeddedToken, Partial<import("@dereekb/util").ReplaceType<ZohoAccessTokenSystemStateEmbeddedToken, import("@dereekb/util").MaybeMap<object>, any>>>;
|
|
95
|
-
/**
|
|
96
|
-
* @deprecated stores access tokens in PLAINTEXT. Use {@link zohoAccessTokenSystemStateDataConverterFactory}
|
|
97
|
-
* instead, and register it on a server-only SystemStatePrivate collection.
|
|
98
|
-
*/
|
|
99
|
-
export declare const zohoAccessTokenSystemStateDataConverter: SystemStateStoredDataFieldConverterConfig<ZohoAccessTokenSystemStateData>;
|