@dereekb/firebase-server 13.4.2 → 13.5.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/index.cjs.js +20 -50
- package/index.esm.js +20 -50
- package/mailgun/package.json +9 -9
- package/model/index.cjs.js +2 -6
- package/model/index.esm.js +2 -6
- package/model/package.json +10 -10
- package/oidc/index.cjs.js +1 -9
- package/oidc/index.esm.js +1 -9
- package/oidc/package.json +11 -11
- package/package.json +13 -13
- package/test/package.json +11 -11
- package/zoho/package.json +9 -9
package/index.cjs.js
CHANGED
|
@@ -3594,8 +3594,7 @@ function _ts_generator$9(thisArg, body) {
|
|
|
3594
3594
|
* ```typescript
|
|
3595
3595
|
* const userData = await assertSnapshotData(userDocument);
|
|
3596
3596
|
* ```
|
|
3597
|
-
*/
|
|
3598
|
-
function assertSnapshotData(document, message) {
|
|
3597
|
+
*/ function assertSnapshotData(document, message) {
|
|
3599
3598
|
return _async_to_generator$9(function() {
|
|
3600
3599
|
var data;
|
|
3601
3600
|
return _ts_generator$9(this, function(_state) {
|
|
@@ -3629,8 +3628,7 @@ function assertSnapshotData(document, message) {
|
|
|
3629
3628
|
* @param message - Optional custom error message.
|
|
3630
3629
|
* @returns The document's snapshot data with `id` and `key` attached.
|
|
3631
3630
|
* @throws {HttpsError} Throws a {@link modelNotAvailableError} (404) if the document has no data.
|
|
3632
|
-
*/
|
|
3633
|
-
function assertSnapshotDataWithKey(document, message) {
|
|
3631
|
+
*/ function assertSnapshotDataWithKey(document, message) {
|
|
3634
3632
|
return _async_to_generator$9(function() {
|
|
3635
3633
|
var data;
|
|
3636
3634
|
return _ts_generator$9(this, function(_state) {
|
|
@@ -3656,8 +3654,7 @@ function assertSnapshotDataWithKey(document, message) {
|
|
|
3656
3654
|
* @param document - The Firestore document to check.
|
|
3657
3655
|
* @param message - Optional custom error message.
|
|
3658
3656
|
* @throws {HttpsError} Throws a {@link modelNotAvailableError} (404) if the document does not exist.
|
|
3659
|
-
*/
|
|
3660
|
-
function assertDocumentExists(document, message) {
|
|
3657
|
+
*/ function assertDocumentExists(document, message) {
|
|
3661
3658
|
return _async_to_generator$9(function() {
|
|
3662
3659
|
var exists;
|
|
3663
3660
|
return _ts_generator$9(this, function(_state) {
|
|
@@ -3687,8 +3684,7 @@ function assertDocumentExists(document, message) {
|
|
|
3687
3684
|
* @param document - The document (or object with `modelType`) to generate the error for.
|
|
3688
3685
|
* @param message - Optional custom error message.
|
|
3689
3686
|
* @returns A {@link modelNotAvailableError} with the document's model type in the message.
|
|
3690
|
-
*/
|
|
3691
|
-
function documentModelNotAvailableError(document, message) {
|
|
3687
|
+
*/ function documentModelNotAvailableError(document, message) {
|
|
3692
3688
|
return modelNotAvailableError({
|
|
3693
3689
|
message: message !== null && message !== void 0 ? message : "The ".concat(document.modelType, " was unavailable.")
|
|
3694
3690
|
});
|
|
@@ -4105,7 +4101,6 @@ function _ts_generator$8(thisArg, body) {
|
|
|
4105
4101
|
service: service,
|
|
4106
4102
|
context: context,
|
|
4107
4103
|
lifecycle: lifecycle,
|
|
4108
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4109
4104
|
sendEvent: function sendEvent(event, properties) {
|
|
4110
4105
|
service.handleOnCallAnalyticsEvent({
|
|
4111
4106
|
event: event,
|
|
@@ -4368,8 +4363,7 @@ function _unsupported_iterable_to_array$6(o, minLen) {
|
|
|
4368
4363
|
*
|
|
4369
4364
|
* @param config - The API details configuration including the handler function.
|
|
4370
4365
|
* @returns The handler function with _apiDetails attached.
|
|
4371
|
-
*/
|
|
4372
|
-
function withApiDetails(config) {
|
|
4366
|
+
*/ function withApiDetails(config) {
|
|
4373
4367
|
var optionalAuth = config.optionalAuth, fn = config.fn, apiDetails = _object_without_properties(config, [
|
|
4374
4368
|
"optionalAuth",
|
|
4375
4369
|
"fn"
|
|
@@ -4701,8 +4695,7 @@ function resolveAnalyticsFromApiDetails(apiDetails, call, modelType, specifier)
|
|
|
4701
4695
|
*
|
|
4702
4696
|
* @param fn
|
|
4703
4697
|
* @param request
|
|
4704
|
-
*/
|
|
4705
|
-
function assertRequestRequiresAuthForFunction(fn, request) {
|
|
4698
|
+
*/ function assertRequestRequiresAuthForFunction(fn, request) {
|
|
4706
4699
|
if (fn._requireAuth !== false) {
|
|
4707
4700
|
assertIsContextWithAuthData(request);
|
|
4708
4701
|
}
|
|
@@ -4752,15 +4745,13 @@ function assertRequestRequiresAuthForFunction(fn, request) {
|
|
|
4752
4745
|
* fromUpload: updateProfileFromUpload
|
|
4753
4746
|
* });
|
|
4754
4747
|
* ```
|
|
4755
|
-
*/
|
|
4756
|
-
function onCallSpecifierHandler(config) {
|
|
4748
|
+
*/ function onCallSpecifierHandler(config) {
|
|
4757
4749
|
var map = util.objectToMap(config);
|
|
4758
4750
|
var fn = function fn(request) {
|
|
4759
4751
|
var _request_specifier = request.specifier, specifier = _request_specifier === void 0 ? firebase.MODEL_FUNCTION_FIREBASE_CRUD_FUNCTION_SPECIFIER_DEFAULT : _request_specifier;
|
|
4760
4752
|
var handler = map.get(specifier);
|
|
4761
4753
|
if (handler != null) {
|
|
4762
4754
|
assertRequestRequiresAuthForFunction(handler, request);
|
|
4763
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4764
4755
|
return handler(request);
|
|
4765
4756
|
} else {
|
|
4766
4757
|
throw unknownModelCrudFunctionSpecifierError(specifier);
|
|
@@ -4891,9 +4882,7 @@ function _object_spread_props$a(target, source) {
|
|
|
4891
4882
|
throw onCallModelUnknownCallTypeError(call);
|
|
4892
4883
|
}
|
|
4893
4884
|
var _request_data = request.data, specifier = _request_data.specifier, modelType = _request_data.modelType;
|
|
4894
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4895
4885
|
var auth = request.auth;
|
|
4896
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4897
4886
|
var context = {
|
|
4898
4887
|
call: call,
|
|
4899
4888
|
modelType: modelType,
|
|
@@ -4904,7 +4893,6 @@ function _object_spread_props$a(target, source) {
|
|
|
4904
4893
|
request: request
|
|
4905
4894
|
};
|
|
4906
4895
|
preAssert(context);
|
|
4907
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4908
4896
|
var result;
|
|
4909
4897
|
// Resolve analytics from _apiDetails tree — callWithAnalytics handles undefined details
|
|
4910
4898
|
var analyticsService = getAnalyticsService(request);
|
|
@@ -5016,7 +5004,6 @@ function _object_spread_props$a(target, source) {
|
|
|
5016
5004
|
*/ function onCallCreateModel(map) {
|
|
5017
5005
|
var config = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5018
5006
|
var preAssert = config.preAssert;
|
|
5019
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5020
5007
|
return _onCallWithCallTypeFunction(map, {
|
|
5021
5008
|
callType: 'create',
|
|
5022
5009
|
preAssert: preAssert,
|
|
@@ -5059,7 +5046,6 @@ function _object_spread_props$a(target, source) {
|
|
|
5059
5046
|
*/ function onCallReadModel(map) {
|
|
5060
5047
|
var config = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5061
5048
|
var preAssert = config.preAssert;
|
|
5062
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5063
5049
|
return _onCallWithCallTypeFunction(map, {
|
|
5064
5050
|
callType: 'read',
|
|
5065
5051
|
preAssert: preAssert,
|
|
@@ -5105,7 +5091,6 @@ function _object_spread_props$a(target, source) {
|
|
|
5105
5091
|
*/ function onCallUpdateModel(map) {
|
|
5106
5092
|
var config = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5107
5093
|
var preAssert = config.preAssert;
|
|
5108
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5109
5094
|
return _onCallWithCallTypeFunction(map, {
|
|
5110
5095
|
callType: 'update',
|
|
5111
5096
|
preAssert: preAssert,
|
|
@@ -5148,7 +5133,6 @@ function _object_spread_props$a(target, source) {
|
|
|
5148
5133
|
*/ function onCallDeleteModel(map) {
|
|
5149
5134
|
var config = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5150
5135
|
var preAssert = config.preAssert;
|
|
5151
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5152
5136
|
return _onCallWithCallTypeFunction(map, {
|
|
5153
5137
|
callType: 'delete',
|
|
5154
5138
|
preAssert: preAssert,
|
|
@@ -5627,8 +5611,7 @@ exports.FirebaseServerAuthModule = __decorate([
|
|
|
5627
5611
|
*
|
|
5628
5612
|
* @param request - The callable request to check for admin privileges.
|
|
5629
5613
|
* @throws {HttpsError} Throws forbidden (403) if the caller is not an admin.
|
|
5630
|
-
*/
|
|
5631
|
-
function assertIsAdminInRequest(request) {
|
|
5614
|
+
*/ function assertIsAdminInRequest(request) {
|
|
5632
5615
|
if (!isAdminInRequest(request)) {
|
|
5633
5616
|
throw forbiddenError();
|
|
5634
5617
|
}
|
|
@@ -5638,8 +5621,7 @@ function assertIsAdminInRequest(request) {
|
|
|
5638
5621
|
*
|
|
5639
5622
|
* @param request - The callable request to check for admin privileges.
|
|
5640
5623
|
* @returns True if the caller has admin privileges.
|
|
5641
|
-
*/
|
|
5642
|
-
function isAdminInRequest(request) {
|
|
5624
|
+
*/ function isAdminInRequest(request) {
|
|
5643
5625
|
return request.nest.authService.context(request).isAdmin;
|
|
5644
5626
|
}
|
|
5645
5627
|
/**
|
|
@@ -5651,8 +5633,7 @@ function isAdminInRequest(request) {
|
|
|
5651
5633
|
* @param requireUid - If true, a UID must be present in the request data.
|
|
5652
5634
|
* @returns The resolved target UID (from request data or auth).
|
|
5653
5635
|
* @throws {HttpsError} Throws forbidden (403) if the caller is not authorized.
|
|
5654
|
-
*/
|
|
5655
|
-
function assertIsAdminOrTargetUserInRequestData(request, requireUid) {
|
|
5636
|
+
*/ function assertIsAdminOrTargetUserInRequestData(request, requireUid) {
|
|
5656
5637
|
var _request_data_uid;
|
|
5657
5638
|
var _request_auth;
|
|
5658
5639
|
if (!isAdminOrTargetUserInRequestData(request, requireUid)) {
|
|
@@ -5666,8 +5647,7 @@ function assertIsAdminOrTargetUserInRequestData(request, requireUid) {
|
|
|
5666
5647
|
* @param request - The callable request containing the target UID.
|
|
5667
5648
|
* @param requireUid - If true, a UID must be present in the request data.
|
|
5668
5649
|
* @returns True if the caller is an admin or is targeting their own user record.
|
|
5669
|
-
*/
|
|
5670
|
-
function isAdminOrTargetUserInRequestData(request) {
|
|
5650
|
+
*/ function isAdminOrTargetUserInRequestData(request) {
|
|
5671
5651
|
var requireUid = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
5672
5652
|
var _request_auth;
|
|
5673
5653
|
var uid = request.data.uid;
|
|
@@ -5683,8 +5663,7 @@ function isAdminOrTargetUserInRequestData(request) {
|
|
|
5683
5663
|
*
|
|
5684
5664
|
* @param request - The callable request to check for ToS status.
|
|
5685
5665
|
* @throws {HttpsError} Throws forbidden (403) if ToS has not been signed.
|
|
5686
|
-
*/
|
|
5687
|
-
function assertHasSignedTosInRequest(request) {
|
|
5666
|
+
*/ function assertHasSignedTosInRequest(request) {
|
|
5688
5667
|
if (!hasSignedTosInRequest(request)) {
|
|
5689
5668
|
throw forbiddenError({
|
|
5690
5669
|
message: 'ToS has not been signed.'
|
|
@@ -5696,8 +5675,7 @@ function assertHasSignedTosInRequest(request) {
|
|
|
5696
5675
|
*
|
|
5697
5676
|
* @param request - The callable request to check for ToS status.
|
|
5698
5677
|
* @returns True if the caller has signed the Terms of Service.
|
|
5699
|
-
*/
|
|
5700
|
-
function hasSignedTosInRequest(request) {
|
|
5678
|
+
*/ function hasSignedTosInRequest(request) {
|
|
5701
5679
|
return request.nest.authService.context(request).hasSignedTos;
|
|
5702
5680
|
}
|
|
5703
5681
|
/**
|
|
@@ -5706,8 +5684,7 @@ function hasSignedTosInRequest(request) {
|
|
|
5706
5684
|
* @param request - The callable request to check for auth roles.
|
|
5707
5685
|
* @param authRoles - One or more roles that must all be present.
|
|
5708
5686
|
* @throws {HttpsError} Throws forbidden (403) if any required role is missing.
|
|
5709
|
-
*/
|
|
5710
|
-
function assertHasRolesInRequest(request, authRoles) {
|
|
5687
|
+
*/ function assertHasRolesInRequest(request, authRoles) {
|
|
5711
5688
|
if (!hasAuthRolesInRequest(request, authRoles)) {
|
|
5712
5689
|
throw forbiddenError({
|
|
5713
5690
|
message: 'Missing required auth roles.',
|
|
@@ -5723,8 +5700,7 @@ function assertHasRolesInRequest(request, authRoles) {
|
|
|
5723
5700
|
* @param request - The callable request to check for auth roles.
|
|
5724
5701
|
* @param authRoles - One or more roles that must all be present.
|
|
5725
5702
|
* @returns True if the caller has all of the specified auth roles.
|
|
5726
|
-
*/
|
|
5727
|
-
function hasAuthRolesInRequest(request, authRoles) {
|
|
5703
|
+
*/ function hasAuthRolesInRequest(request, authRoles) {
|
|
5728
5704
|
return util.containsAllValues(request.nest.authService.context(request).authRoles, authRoles);
|
|
5729
5705
|
}
|
|
5730
5706
|
/**
|
|
@@ -5734,8 +5710,7 @@ function hasAuthRolesInRequest(request, authRoles) {
|
|
|
5734
5710
|
*
|
|
5735
5711
|
* @param request - The callable request to check for setup password claims.
|
|
5736
5712
|
* @returns True if the claims contain a setup password key.
|
|
5737
|
-
*/
|
|
5738
|
-
function hasNewUserSetupPasswordInRequest(request) {
|
|
5713
|
+
*/ function hasNewUserSetupPasswordInRequest(request) {
|
|
5739
5714
|
var claims = request.nest.authService.context(request).claims;
|
|
5740
5715
|
return claims[firebase.FIREBASE_SERVER_AUTH_CLAIMS_SETUP_PASSWORD_KEY] != null;
|
|
5741
5716
|
}
|
|
@@ -6364,8 +6339,7 @@ function _ts_generator$6(thisArg, body) {
|
|
|
6364
6339
|
*
|
|
6365
6340
|
* export const { dev } = devFunctions;
|
|
6366
6341
|
* ```
|
|
6367
|
-
*/
|
|
6368
|
-
function firebaseServerDevFunctions(config) {
|
|
6342
|
+
*/ function firebaseServerDevFunctions(config) {
|
|
6369
6343
|
var enabled = config.enabled, secure = config.secure, nest = config.nest, developerFunctionsMap = config.developerFunctionsMap, onCallFactory = config.onCallFactory, allScheduledFunctions = config.allScheduledFunctions, disableDevelopmentScheduleFunction = config.disableDevelopmentScheduleFunction;
|
|
6370
6344
|
// eslint-disable-next-line @typescript-eslint/no-deprecated -- RunnableHttpFunction supports legacy gen 1 deployments
|
|
6371
6345
|
var dev;
|
|
@@ -6984,7 +6958,6 @@ function _object_spread_props$4(target, source) {
|
|
|
6984
6958
|
* @param makeNestContext - Factory that creates the typed context from the NestJS application context.
|
|
6985
6959
|
* @returns A factory for creating nest-context-aware event function handlers.
|
|
6986
6960
|
*/ function cloudEventHandlerWithNestContextFactory(makeNestContext) {
|
|
6987
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- CloudEvent generic requires `any` for SDK compatibility
|
|
6988
6961
|
return function(fn) {
|
|
6989
6962
|
return function(nestAppPromiseGetter) {
|
|
6990
6963
|
var handlerBuilder = function handlerBuilder(handler) {
|
|
@@ -9845,8 +9818,7 @@ function _ts_generator(thisArg, body) {
|
|
|
9845
9818
|
* Abstract class used for the top-level NestJS context for Firebase services.
|
|
9846
9819
|
*
|
|
9847
9820
|
* Your API implementation of this class is usually <AppPrefix>ApiNestContext (e.g. `DemoApiNestContext`).
|
|
9848
|
-
*/
|
|
9849
|
-
var AbstractFirebaseNestContext = /*#__PURE__*/ function(AbstractNestContext) {
|
|
9821
|
+
*/ var AbstractFirebaseNestContext = /*#__PURE__*/ function(AbstractNestContext) {
|
|
9850
9822
|
_inherits(AbstractFirebaseNestContext, AbstractNestContext);
|
|
9851
9823
|
function AbstractFirebaseNestContext() {
|
|
9852
9824
|
_class_call_check$1(this, AbstractFirebaseNestContext);
|
|
@@ -9917,8 +9889,7 @@ var AbstractFirebaseNestContext = /*#__PURE__*/ function(AbstractNestContext) {
|
|
|
9917
9889
|
},
|
|
9918
9890
|
{
|
|
9919
9891
|
key: "useModel",
|
|
9920
|
-
value:
|
|
9921
|
-
function useModel(type, select) {
|
|
9892
|
+
value: function useModel(type, select) {
|
|
9922
9893
|
return _async_to_generator(function() {
|
|
9923
9894
|
var _select_use, context, usePromise, use;
|
|
9924
9895
|
return _ts_generator(this, function(_state) {
|
|
@@ -9980,8 +9951,7 @@ function _define_property(obj, key, value) {
|
|
|
9980
9951
|
* Abstract class used for the top-level server NestJS context for server-only services.
|
|
9981
9952
|
*
|
|
9982
9953
|
* Your API implementation of this class is usually <AppPrefix>ApiServerNestContext (e.g. `DemoApiServerNestContext`).
|
|
9983
|
-
*/
|
|
9984
|
-
var AbstractServerFirebaseNestContext = /*#__PURE__*/ function() {
|
|
9954
|
+
*/ var AbstractServerFirebaseNestContext = /*#__PURE__*/ function() {
|
|
9985
9955
|
function AbstractServerFirebaseNestContext(c) {
|
|
9986
9956
|
_class_call_check(this, AbstractServerFirebaseNestContext);
|
|
9987
9957
|
_define_property(this, "_context", void 0);
|
package/index.esm.js
CHANGED
|
@@ -3592,8 +3592,7 @@ function _ts_generator$9(thisArg, body) {
|
|
|
3592
3592
|
* ```typescript
|
|
3593
3593
|
* const userData = await assertSnapshotData(userDocument);
|
|
3594
3594
|
* ```
|
|
3595
|
-
*/
|
|
3596
|
-
function assertSnapshotData(document, message) {
|
|
3595
|
+
*/ function assertSnapshotData(document, message) {
|
|
3597
3596
|
return _async_to_generator$9(function() {
|
|
3598
3597
|
var data;
|
|
3599
3598
|
return _ts_generator$9(this, function(_state) {
|
|
@@ -3627,8 +3626,7 @@ function assertSnapshotData(document, message) {
|
|
|
3627
3626
|
* @param message - Optional custom error message.
|
|
3628
3627
|
* @returns The document's snapshot data with `id` and `key` attached.
|
|
3629
3628
|
* @throws {HttpsError} Throws a {@link modelNotAvailableError} (404) if the document has no data.
|
|
3630
|
-
*/
|
|
3631
|
-
function assertSnapshotDataWithKey(document, message) {
|
|
3629
|
+
*/ function assertSnapshotDataWithKey(document, message) {
|
|
3632
3630
|
return _async_to_generator$9(function() {
|
|
3633
3631
|
var data;
|
|
3634
3632
|
return _ts_generator$9(this, function(_state) {
|
|
@@ -3654,8 +3652,7 @@ function assertSnapshotDataWithKey(document, message) {
|
|
|
3654
3652
|
* @param document - The Firestore document to check.
|
|
3655
3653
|
* @param message - Optional custom error message.
|
|
3656
3654
|
* @throws {HttpsError} Throws a {@link modelNotAvailableError} (404) if the document does not exist.
|
|
3657
|
-
*/
|
|
3658
|
-
function assertDocumentExists(document, message) {
|
|
3655
|
+
*/ function assertDocumentExists(document, message) {
|
|
3659
3656
|
return _async_to_generator$9(function() {
|
|
3660
3657
|
var exists;
|
|
3661
3658
|
return _ts_generator$9(this, function(_state) {
|
|
@@ -3685,8 +3682,7 @@ function assertDocumentExists(document, message) {
|
|
|
3685
3682
|
* @param document - The document (or object with `modelType`) to generate the error for.
|
|
3686
3683
|
* @param message - Optional custom error message.
|
|
3687
3684
|
* @returns A {@link modelNotAvailableError} with the document's model type in the message.
|
|
3688
|
-
*/
|
|
3689
|
-
function documentModelNotAvailableError(document, message) {
|
|
3685
|
+
*/ function documentModelNotAvailableError(document, message) {
|
|
3690
3686
|
return modelNotAvailableError({
|
|
3691
3687
|
message: message !== null && message !== void 0 ? message : "The ".concat(document.modelType, " was unavailable.")
|
|
3692
3688
|
});
|
|
@@ -4103,7 +4099,6 @@ function _ts_generator$8(thisArg, body) {
|
|
|
4103
4099
|
service: service,
|
|
4104
4100
|
context: context,
|
|
4105
4101
|
lifecycle: lifecycle,
|
|
4106
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4107
4102
|
sendEvent: function sendEvent(event, properties) {
|
|
4108
4103
|
service.handleOnCallAnalyticsEvent({
|
|
4109
4104
|
event: event,
|
|
@@ -4366,8 +4361,7 @@ function _unsupported_iterable_to_array$6(o, minLen) {
|
|
|
4366
4361
|
*
|
|
4367
4362
|
* @param config - The API details configuration including the handler function.
|
|
4368
4363
|
* @returns The handler function with _apiDetails attached.
|
|
4369
|
-
*/
|
|
4370
|
-
function withApiDetails(config) {
|
|
4364
|
+
*/ function withApiDetails(config) {
|
|
4371
4365
|
var optionalAuth = config.optionalAuth, fn = config.fn, apiDetails = _object_without_properties(config, [
|
|
4372
4366
|
"optionalAuth",
|
|
4373
4367
|
"fn"
|
|
@@ -4699,8 +4693,7 @@ function resolveAnalyticsFromApiDetails(apiDetails, call, modelType, specifier)
|
|
|
4699
4693
|
*
|
|
4700
4694
|
* @param fn
|
|
4701
4695
|
* @param request
|
|
4702
|
-
*/
|
|
4703
|
-
function assertRequestRequiresAuthForFunction(fn, request) {
|
|
4696
|
+
*/ function assertRequestRequiresAuthForFunction(fn, request) {
|
|
4704
4697
|
if (fn._requireAuth !== false) {
|
|
4705
4698
|
assertIsContextWithAuthData(request);
|
|
4706
4699
|
}
|
|
@@ -4750,15 +4743,13 @@ function assertRequestRequiresAuthForFunction(fn, request) {
|
|
|
4750
4743
|
* fromUpload: updateProfileFromUpload
|
|
4751
4744
|
* });
|
|
4752
4745
|
* ```
|
|
4753
|
-
*/
|
|
4754
|
-
function onCallSpecifierHandler(config) {
|
|
4746
|
+
*/ function onCallSpecifierHandler(config) {
|
|
4755
4747
|
var map = objectToMap(config);
|
|
4756
4748
|
var fn = function fn(request) {
|
|
4757
4749
|
var _request_specifier = request.specifier, specifier = _request_specifier === void 0 ? MODEL_FUNCTION_FIREBASE_CRUD_FUNCTION_SPECIFIER_DEFAULT : _request_specifier;
|
|
4758
4750
|
var handler = map.get(specifier);
|
|
4759
4751
|
if (handler != null) {
|
|
4760
4752
|
assertRequestRequiresAuthForFunction(handler, request);
|
|
4761
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4762
4753
|
return handler(request);
|
|
4763
4754
|
} else {
|
|
4764
4755
|
throw unknownModelCrudFunctionSpecifierError(specifier);
|
|
@@ -4889,9 +4880,7 @@ function _object_spread_props$a(target, source) {
|
|
|
4889
4880
|
throw onCallModelUnknownCallTypeError(call);
|
|
4890
4881
|
}
|
|
4891
4882
|
var _request_data = request.data, specifier = _request_data.specifier, modelType = _request_data.modelType;
|
|
4892
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4893
4883
|
var auth = request.auth;
|
|
4894
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4895
4884
|
var context = {
|
|
4896
4885
|
call: call,
|
|
4897
4886
|
modelType: modelType,
|
|
@@ -4902,7 +4891,6 @@ function _object_spread_props$a(target, source) {
|
|
|
4902
4891
|
request: request
|
|
4903
4892
|
};
|
|
4904
4893
|
preAssert(context);
|
|
4905
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4906
4894
|
var result;
|
|
4907
4895
|
// Resolve analytics from _apiDetails tree — callWithAnalytics handles undefined details
|
|
4908
4896
|
var analyticsService = getAnalyticsService(request);
|
|
@@ -5014,7 +5002,6 @@ function _object_spread_props$a(target, source) {
|
|
|
5014
5002
|
*/ function onCallCreateModel(map) {
|
|
5015
5003
|
var config = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5016
5004
|
var preAssert = config.preAssert;
|
|
5017
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5018
5005
|
return _onCallWithCallTypeFunction(map, {
|
|
5019
5006
|
callType: 'create',
|
|
5020
5007
|
preAssert: preAssert,
|
|
@@ -5057,7 +5044,6 @@ function _object_spread_props$a(target, source) {
|
|
|
5057
5044
|
*/ function onCallReadModel(map) {
|
|
5058
5045
|
var config = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5059
5046
|
var preAssert = config.preAssert;
|
|
5060
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5061
5047
|
return _onCallWithCallTypeFunction(map, {
|
|
5062
5048
|
callType: 'read',
|
|
5063
5049
|
preAssert: preAssert,
|
|
@@ -5103,7 +5089,6 @@ function _object_spread_props$a(target, source) {
|
|
|
5103
5089
|
*/ function onCallUpdateModel(map) {
|
|
5104
5090
|
var config = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5105
5091
|
var preAssert = config.preAssert;
|
|
5106
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5107
5092
|
return _onCallWithCallTypeFunction(map, {
|
|
5108
5093
|
callType: 'update',
|
|
5109
5094
|
preAssert: preAssert,
|
|
@@ -5146,7 +5131,6 @@ function _object_spread_props$a(target, source) {
|
|
|
5146
5131
|
*/ function onCallDeleteModel(map) {
|
|
5147
5132
|
var config = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5148
5133
|
var preAssert = config.preAssert;
|
|
5149
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5150
5134
|
return _onCallWithCallTypeFunction(map, {
|
|
5151
5135
|
callType: 'delete',
|
|
5152
5136
|
preAssert: preAssert,
|
|
@@ -5625,8 +5609,7 @@ FirebaseServerAuthModule = __decorate([
|
|
|
5625
5609
|
*
|
|
5626
5610
|
* @param request - The callable request to check for admin privileges.
|
|
5627
5611
|
* @throws {HttpsError} Throws forbidden (403) if the caller is not an admin.
|
|
5628
|
-
*/
|
|
5629
|
-
function assertIsAdminInRequest(request) {
|
|
5612
|
+
*/ function assertIsAdminInRequest(request) {
|
|
5630
5613
|
if (!isAdminInRequest(request)) {
|
|
5631
5614
|
throw forbiddenError();
|
|
5632
5615
|
}
|
|
@@ -5636,8 +5619,7 @@ function assertIsAdminInRequest(request) {
|
|
|
5636
5619
|
*
|
|
5637
5620
|
* @param request - The callable request to check for admin privileges.
|
|
5638
5621
|
* @returns True if the caller has admin privileges.
|
|
5639
|
-
*/
|
|
5640
|
-
function isAdminInRequest(request) {
|
|
5622
|
+
*/ function isAdminInRequest(request) {
|
|
5641
5623
|
return request.nest.authService.context(request).isAdmin;
|
|
5642
5624
|
}
|
|
5643
5625
|
/**
|
|
@@ -5649,8 +5631,7 @@ function isAdminInRequest(request) {
|
|
|
5649
5631
|
* @param requireUid - If true, a UID must be present in the request data.
|
|
5650
5632
|
* @returns The resolved target UID (from request data or auth).
|
|
5651
5633
|
* @throws {HttpsError} Throws forbidden (403) if the caller is not authorized.
|
|
5652
|
-
*/
|
|
5653
|
-
function assertIsAdminOrTargetUserInRequestData(request, requireUid) {
|
|
5634
|
+
*/ function assertIsAdminOrTargetUserInRequestData(request, requireUid) {
|
|
5654
5635
|
var _request_data_uid;
|
|
5655
5636
|
var _request_auth;
|
|
5656
5637
|
if (!isAdminOrTargetUserInRequestData(request, requireUid)) {
|
|
@@ -5664,8 +5645,7 @@ function assertIsAdminOrTargetUserInRequestData(request, requireUid) {
|
|
|
5664
5645
|
* @param request - The callable request containing the target UID.
|
|
5665
5646
|
* @param requireUid - If true, a UID must be present in the request data.
|
|
5666
5647
|
* @returns True if the caller is an admin or is targeting their own user record.
|
|
5667
|
-
*/
|
|
5668
|
-
function isAdminOrTargetUserInRequestData(request) {
|
|
5648
|
+
*/ function isAdminOrTargetUserInRequestData(request) {
|
|
5669
5649
|
var requireUid = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
5670
5650
|
var _request_auth;
|
|
5671
5651
|
var uid = request.data.uid;
|
|
@@ -5681,8 +5661,7 @@ function isAdminOrTargetUserInRequestData(request) {
|
|
|
5681
5661
|
*
|
|
5682
5662
|
* @param request - The callable request to check for ToS status.
|
|
5683
5663
|
* @throws {HttpsError} Throws forbidden (403) if ToS has not been signed.
|
|
5684
|
-
*/
|
|
5685
|
-
function assertHasSignedTosInRequest(request) {
|
|
5664
|
+
*/ function assertHasSignedTosInRequest(request) {
|
|
5686
5665
|
if (!hasSignedTosInRequest(request)) {
|
|
5687
5666
|
throw forbiddenError({
|
|
5688
5667
|
message: 'ToS has not been signed.'
|
|
@@ -5694,8 +5673,7 @@ function assertHasSignedTosInRequest(request) {
|
|
|
5694
5673
|
*
|
|
5695
5674
|
* @param request - The callable request to check for ToS status.
|
|
5696
5675
|
* @returns True if the caller has signed the Terms of Service.
|
|
5697
|
-
*/
|
|
5698
|
-
function hasSignedTosInRequest(request) {
|
|
5676
|
+
*/ function hasSignedTosInRequest(request) {
|
|
5699
5677
|
return request.nest.authService.context(request).hasSignedTos;
|
|
5700
5678
|
}
|
|
5701
5679
|
/**
|
|
@@ -5704,8 +5682,7 @@ function hasSignedTosInRequest(request) {
|
|
|
5704
5682
|
* @param request - The callable request to check for auth roles.
|
|
5705
5683
|
* @param authRoles - One or more roles that must all be present.
|
|
5706
5684
|
* @throws {HttpsError} Throws forbidden (403) if any required role is missing.
|
|
5707
|
-
*/
|
|
5708
|
-
function assertHasRolesInRequest(request, authRoles) {
|
|
5685
|
+
*/ function assertHasRolesInRequest(request, authRoles) {
|
|
5709
5686
|
if (!hasAuthRolesInRequest(request, authRoles)) {
|
|
5710
5687
|
throw forbiddenError({
|
|
5711
5688
|
message: 'Missing required auth roles.',
|
|
@@ -5721,8 +5698,7 @@ function assertHasRolesInRequest(request, authRoles) {
|
|
|
5721
5698
|
* @param request - The callable request to check for auth roles.
|
|
5722
5699
|
* @param authRoles - One or more roles that must all be present.
|
|
5723
5700
|
* @returns True if the caller has all of the specified auth roles.
|
|
5724
|
-
*/
|
|
5725
|
-
function hasAuthRolesInRequest(request, authRoles) {
|
|
5701
|
+
*/ function hasAuthRolesInRequest(request, authRoles) {
|
|
5726
5702
|
return containsAllValues(request.nest.authService.context(request).authRoles, authRoles);
|
|
5727
5703
|
}
|
|
5728
5704
|
/**
|
|
@@ -5732,8 +5708,7 @@ function hasAuthRolesInRequest(request, authRoles) {
|
|
|
5732
5708
|
*
|
|
5733
5709
|
* @param request - The callable request to check for setup password claims.
|
|
5734
5710
|
* @returns True if the claims contain a setup password key.
|
|
5735
|
-
*/
|
|
5736
|
-
function hasNewUserSetupPasswordInRequest(request) {
|
|
5711
|
+
*/ function hasNewUserSetupPasswordInRequest(request) {
|
|
5737
5712
|
var claims = request.nest.authService.context(request).claims;
|
|
5738
5713
|
return claims[FIREBASE_SERVER_AUTH_CLAIMS_SETUP_PASSWORD_KEY] != null;
|
|
5739
5714
|
}
|
|
@@ -6362,8 +6337,7 @@ function _ts_generator$6(thisArg, body) {
|
|
|
6362
6337
|
*
|
|
6363
6338
|
* export const { dev } = devFunctions;
|
|
6364
6339
|
* ```
|
|
6365
|
-
*/
|
|
6366
|
-
function firebaseServerDevFunctions(config) {
|
|
6340
|
+
*/ function firebaseServerDevFunctions(config) {
|
|
6367
6341
|
var enabled = config.enabled, secure = config.secure, nest = config.nest, developerFunctionsMap = config.developerFunctionsMap, onCallFactory = config.onCallFactory, allScheduledFunctions = config.allScheduledFunctions, disableDevelopmentScheduleFunction = config.disableDevelopmentScheduleFunction;
|
|
6368
6342
|
// eslint-disable-next-line @typescript-eslint/no-deprecated -- RunnableHttpFunction supports legacy gen 1 deployments
|
|
6369
6343
|
var dev;
|
|
@@ -6982,7 +6956,6 @@ function _object_spread_props$4(target, source) {
|
|
|
6982
6956
|
* @param makeNestContext - Factory that creates the typed context from the NestJS application context.
|
|
6983
6957
|
* @returns A factory for creating nest-context-aware event function handlers.
|
|
6984
6958
|
*/ function cloudEventHandlerWithNestContextFactory(makeNestContext) {
|
|
6985
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- CloudEvent generic requires `any` for SDK compatibility
|
|
6986
6959
|
return function(fn) {
|
|
6987
6960
|
return function(nestAppPromiseGetter) {
|
|
6988
6961
|
var handlerBuilder = function handlerBuilder(handler) {
|
|
@@ -9843,8 +9816,7 @@ function _ts_generator(thisArg, body) {
|
|
|
9843
9816
|
* Abstract class used for the top-level NestJS context for Firebase services.
|
|
9844
9817
|
*
|
|
9845
9818
|
* Your API implementation of this class is usually <AppPrefix>ApiNestContext (e.g. `DemoApiNestContext`).
|
|
9846
|
-
*/
|
|
9847
|
-
var AbstractFirebaseNestContext = /*#__PURE__*/ function(AbstractNestContext) {
|
|
9819
|
+
*/ var AbstractFirebaseNestContext = /*#__PURE__*/ function(AbstractNestContext) {
|
|
9848
9820
|
_inherits(AbstractFirebaseNestContext, AbstractNestContext);
|
|
9849
9821
|
function AbstractFirebaseNestContext() {
|
|
9850
9822
|
_class_call_check$1(this, AbstractFirebaseNestContext);
|
|
@@ -9915,8 +9887,7 @@ var AbstractFirebaseNestContext = /*#__PURE__*/ function(AbstractNestContext) {
|
|
|
9915
9887
|
},
|
|
9916
9888
|
{
|
|
9917
9889
|
key: "useModel",
|
|
9918
|
-
value:
|
|
9919
|
-
function useModel(type, select) {
|
|
9890
|
+
value: function useModel(type, select) {
|
|
9920
9891
|
return _async_to_generator(function() {
|
|
9921
9892
|
var _select_use, context, usePromise, use;
|
|
9922
9893
|
return _ts_generator(this, function(_state) {
|
|
@@ -9978,8 +9949,7 @@ function _define_property(obj, key, value) {
|
|
|
9978
9949
|
* Abstract class used for the top-level server NestJS context for server-only services.
|
|
9979
9950
|
*
|
|
9980
9951
|
* Your API implementation of this class is usually <AppPrefix>ApiServerNestContext (e.g. `DemoApiServerNestContext`).
|
|
9981
|
-
*/
|
|
9982
|
-
var AbstractServerFirebaseNestContext = /*#__PURE__*/ function() {
|
|
9952
|
+
*/ var AbstractServerFirebaseNestContext = /*#__PURE__*/ function() {
|
|
9983
9953
|
function AbstractServerFirebaseNestContext(c) {
|
|
9984
9954
|
_class_call_check(this, AbstractServerFirebaseNestContext);
|
|
9985
9955
|
_define_property(this, "_context", void 0);
|
package/mailgun/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/firebase-server/mailgun",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.5.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@dereekb/analytics": "13.
|
|
6
|
-
"@dereekb/firebase": "13.
|
|
7
|
-
"@dereekb/firebase-server": "13.
|
|
8
|
-
"@dereekb/date": "13.
|
|
9
|
-
"@dereekb/nestjs": "13.
|
|
10
|
-
"@dereekb/model": "13.
|
|
11
|
-
"@dereekb/rxjs": "13.
|
|
12
|
-
"@dereekb/util": "13.
|
|
5
|
+
"@dereekb/analytics": "13.5.0",
|
|
6
|
+
"@dereekb/firebase": "13.5.0",
|
|
7
|
+
"@dereekb/firebase-server": "13.5.0",
|
|
8
|
+
"@dereekb/date": "13.5.0",
|
|
9
|
+
"@dereekb/nestjs": "13.5.0",
|
|
10
|
+
"@dereekb/model": "13.5.0",
|
|
11
|
+
"@dereekb/rxjs": "13.5.0",
|
|
12
|
+
"@dereekb/util": "13.5.0"
|
|
13
13
|
},
|
|
14
14
|
"exports": {
|
|
15
15
|
"./package.json": "./package.json",
|
package/model/index.cjs.js
CHANGED
|
@@ -248,7 +248,6 @@ var MAILGUN_NOTIFICATION_EMAIL_SEND_SERVICE_DEFAULT_MAX_BATCH_SIZE_PER_REQUEST =
|
|
|
248
248
|
var sendTemplateNameToLowercase, builderForKey, input;
|
|
249
249
|
return _ts_generator$f(this, function(_state) {
|
|
250
250
|
sendTemplateNameToLowercase = sendTemplateName.toLowerCase();
|
|
251
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
252
251
|
builderForKey = lowercaseKeysMessageBuilders[sendTemplateNameToLowercase];
|
|
253
252
|
if (!builderForKey) {
|
|
254
253
|
throw new Error('mailgunNotificationEmailSendService(): A template builder was not available for template type "'.concat(sendTemplateName, '".'));
|
|
@@ -1208,8 +1207,7 @@ function _ts_generator$e(thisArg, body) {
|
|
|
1208
1207
|
* );
|
|
1209
1208
|
* // remaining === ['validate', 'cleanup']
|
|
1210
1209
|
* ```
|
|
1211
|
-
*/
|
|
1212
|
-
function removeFromCompletionsArrayWithTaskResult(inputCompletions, handleTaskResult) {
|
|
1210
|
+
*/ function removeFromCompletionsArrayWithTaskResult(inputCompletions, handleTaskResult) {
|
|
1213
1211
|
var removeAllCompletedCheckpoints = handleTaskResult.removeAllCompletedCheckpoints, removeFromCompletedCheckpoints = handleTaskResult.removeFromCompletedCheckpoints;
|
|
1214
1212
|
var result;
|
|
1215
1213
|
if (removeAllCompletedCheckpoints) {
|
|
@@ -6049,8 +6047,7 @@ exports.MutableNotificationExpediteService = __decorate([
|
|
|
6049
6047
|
* This should generally be used in the global module of an app.
|
|
6050
6048
|
*
|
|
6051
6049
|
* @returns an array of abstract classes to export from the NestJS module
|
|
6052
|
-
*/
|
|
6053
|
-
function exportMutableNotificationExpediteService() {
|
|
6050
|
+
*/ function exportMutableNotificationExpediteService() {
|
|
6054
6051
|
return [
|
|
6055
6052
|
NotificationExpediteService,
|
|
6056
6053
|
exports.MutableNotificationExpediteService
|
|
@@ -7034,7 +7031,6 @@ function _ts_generator$6(thisArg, body) {
|
|
|
7034
7031
|
var type = handlerConfig.type;
|
|
7035
7032
|
handlers[type] = handlerForConfig(handlerConfig);
|
|
7036
7033
|
});
|
|
7037
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
7038
7034
|
function handlerForConfig(handlerConfig) {
|
|
7039
7035
|
var inputFlows = handlerConfig.flow, allowRunMultipleParts = handlerConfig.allowRunMultipleParts;
|
|
7040
7036
|
var _separateValues = util.separateValues(inputFlows, function(x) {
|
package/model/index.esm.js
CHANGED
|
@@ -246,7 +246,6 @@ var MAILGUN_NOTIFICATION_EMAIL_SEND_SERVICE_DEFAULT_MAX_BATCH_SIZE_PER_REQUEST =
|
|
|
246
246
|
var sendTemplateNameToLowercase, builderForKey, input;
|
|
247
247
|
return _ts_generator$f(this, function(_state) {
|
|
248
248
|
sendTemplateNameToLowercase = sendTemplateName.toLowerCase();
|
|
249
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
250
249
|
builderForKey = lowercaseKeysMessageBuilders[sendTemplateNameToLowercase];
|
|
251
250
|
if (!builderForKey) {
|
|
252
251
|
throw new Error('mailgunNotificationEmailSendService(): A template builder was not available for template type "'.concat(sendTemplateName, '".'));
|
|
@@ -1206,8 +1205,7 @@ function _ts_generator$e(thisArg, body) {
|
|
|
1206
1205
|
* );
|
|
1207
1206
|
* // remaining === ['validate', 'cleanup']
|
|
1208
1207
|
* ```
|
|
1209
|
-
*/
|
|
1210
|
-
function removeFromCompletionsArrayWithTaskResult(inputCompletions, handleTaskResult) {
|
|
1208
|
+
*/ function removeFromCompletionsArrayWithTaskResult(inputCompletions, handleTaskResult) {
|
|
1211
1209
|
var removeAllCompletedCheckpoints = handleTaskResult.removeAllCompletedCheckpoints, removeFromCompletedCheckpoints = handleTaskResult.removeFromCompletedCheckpoints;
|
|
1212
1210
|
var result;
|
|
1213
1211
|
if (removeAllCompletedCheckpoints) {
|
|
@@ -6047,8 +6045,7 @@ MutableNotificationExpediteService = __decorate([
|
|
|
6047
6045
|
* This should generally be used in the global module of an app.
|
|
6048
6046
|
*
|
|
6049
6047
|
* @returns an array of abstract classes to export from the NestJS module
|
|
6050
|
-
*/
|
|
6051
|
-
function exportMutableNotificationExpediteService() {
|
|
6048
|
+
*/ function exportMutableNotificationExpediteService() {
|
|
6052
6049
|
return [
|
|
6053
6050
|
NotificationExpediteService,
|
|
6054
6051
|
MutableNotificationExpediteService
|
|
@@ -7032,7 +7029,6 @@ function _ts_generator$6(thisArg, body) {
|
|
|
7032
7029
|
var type = handlerConfig.type;
|
|
7033
7030
|
handlers[type] = handlerForConfig(handlerConfig);
|
|
7034
7031
|
});
|
|
7035
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
7036
7032
|
function handlerForConfig(handlerConfig) {
|
|
7037
7033
|
var inputFlows = handlerConfig.flow, allowRunMultipleParts = handlerConfig.allowRunMultipleParts;
|
|
7038
7034
|
var _separateValues = separateValues(inputFlows, function(x) {
|
package/model/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/firebase-server/model",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.5.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@dereekb/analytics": "13.
|
|
6
|
-
"@dereekb/date": "13.
|
|
7
|
-
"@dereekb/firebase": "13.
|
|
8
|
-
"@dereekb/firebase-server": "13.
|
|
9
|
-
"@dereekb/model": "13.
|
|
10
|
-
"@dereekb/nestjs": "13.
|
|
11
|
-
"@dereekb/rxjs": "13.
|
|
12
|
-
"@dereekb/util": "13.
|
|
13
|
-
"@nestjs/common": "^11.1.
|
|
5
|
+
"@dereekb/analytics": "13.5.0",
|
|
6
|
+
"@dereekb/date": "13.5.0",
|
|
7
|
+
"@dereekb/firebase": "13.5.0",
|
|
8
|
+
"@dereekb/firebase-server": "13.5.0",
|
|
9
|
+
"@dereekb/model": "13.5.0",
|
|
10
|
+
"@dereekb/nestjs": "13.5.0",
|
|
11
|
+
"@dereekb/rxjs": "13.5.0",
|
|
12
|
+
"@dereekb/util": "13.5.0",
|
|
13
|
+
"@nestjs/common": "^11.1.17",
|
|
14
14
|
"@nestjs/config": "^4.0.3",
|
|
15
15
|
"archiver": "^7.0.0",
|
|
16
16
|
"date-fns": "^4.0.0",
|
package/oidc/index.cjs.js
CHANGED
|
@@ -1980,7 +1980,6 @@ function _ts_generator$7(thisArg, body) {
|
|
|
1980
1980
|
];
|
|
1981
1981
|
case 1:
|
|
1982
1982
|
provider = _state.sent();
|
|
1983
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- oidc-provider Client has static methods not exposed in types
|
|
1984
1983
|
ProviderClient = provider.Client;
|
|
1985
1984
|
// Mirrors oidc-provider's default idFactory from lib/helpers/defaults.js
|
|
1986
1985
|
clientId = nanoid.nanoid();
|
|
@@ -2042,7 +2041,7 @@ function _ts_generator$7(thisArg, body) {
|
|
|
2042
2041
|
{
|
|
2043
2042
|
modelKeys: firebase.firestoreModelKey(firebase.oidcEntryIdentity, clientId),
|
|
2044
2043
|
client_id: clientId,
|
|
2045
|
-
client_secret: clientSecret
|
|
2044
|
+
client_secret: clientSecret
|
|
2046
2045
|
}
|
|
2047
2046
|
];
|
|
2048
2047
|
}
|
|
@@ -2075,7 +2074,6 @@ function _ts_generator$7(thisArg, body) {
|
|
|
2075
2074
|
];
|
|
2076
2075
|
case 1:
|
|
2077
2076
|
provider = _state.sent();
|
|
2078
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- oidc-provider Client has static methods not exposed in types
|
|
2079
2077
|
ProviderClient = provider.Client;
|
|
2080
2078
|
return [
|
|
2081
2079
|
4,
|
|
@@ -2140,7 +2138,6 @@ function _ts_generator$7(thisArg, body) {
|
|
|
2140
2138
|
];
|
|
2141
2139
|
case 1:
|
|
2142
2140
|
provider = _state.sent();
|
|
2143
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- oidc-provider Client has static methods not exposed in types
|
|
2144
2141
|
ProviderClient = provider.Client;
|
|
2145
2142
|
return [
|
|
2146
2143
|
4,
|
|
@@ -2200,7 +2197,6 @@ function _ts_generator$7(thisArg, body) {
|
|
|
2200
2197
|
];
|
|
2201
2198
|
case 1:
|
|
2202
2199
|
provider = _state.sent();
|
|
2203
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- oidc-provider Client has static methods not exposed in types
|
|
2204
2200
|
ProviderClient = provider.Client;
|
|
2205
2201
|
return [
|
|
2206
2202
|
4,
|
|
@@ -2881,7 +2877,6 @@ function _unsupported_iterable_to_array$5(o, minLen) {
|
|
|
2881
2877
|
* @returns the decrypted adapter payload
|
|
2882
2878
|
*/ key: "decryptAdapterPayload",
|
|
2883
2879
|
value: function decryptAdapterPayload(payload) {
|
|
2884
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2885
2880
|
return this.adapterPayloadEncryptor.decrypt(payload);
|
|
2886
2881
|
}
|
|
2887
2882
|
}
|
|
@@ -3424,7 +3419,6 @@ function _ts_generator$5(thisArg, body) {
|
|
|
3424
3419
|
];
|
|
3425
3420
|
case 1:
|
|
3426
3421
|
provider = _state.sent();
|
|
3427
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- oidc-provider Client has static methods not exposed in types
|
|
3428
3422
|
ProviderClient = provider.Client;
|
|
3429
3423
|
return [
|
|
3430
3424
|
4,
|
|
@@ -3610,9 +3604,7 @@ function _ts_generator$5(thisArg, body) {
|
|
|
3610
3604
|
_ref = _state.sent(), ProviderClass = _ref.default;
|
|
3611
3605
|
provider = new ProviderClass(config.issuer, _object_spread_props(_object_spread$2({}, providerConfiguration), {
|
|
3612
3606
|
adapter: adapterFactory,
|
|
3613
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- oidc-provider findAccount signature is more specific than our wrapper
|
|
3614
3607
|
findAccount: findAccount,
|
|
3615
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- oidc-provider expects JOSE JWK type which differs from Node.js JsonWebKey
|
|
3616
3608
|
jwks: {
|
|
3617
3609
|
keys: [
|
|
3618
3610
|
signingKey
|
package/oidc/index.esm.js
CHANGED
|
@@ -1978,7 +1978,6 @@ function _ts_generator$7(thisArg, body) {
|
|
|
1978
1978
|
];
|
|
1979
1979
|
case 1:
|
|
1980
1980
|
provider = _state.sent();
|
|
1981
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- oidc-provider Client has static methods not exposed in types
|
|
1982
1981
|
ProviderClient = provider.Client;
|
|
1983
1982
|
// Mirrors oidc-provider's default idFactory from lib/helpers/defaults.js
|
|
1984
1983
|
clientId = nanoid();
|
|
@@ -2040,7 +2039,7 @@ function _ts_generator$7(thisArg, body) {
|
|
|
2040
2039
|
{
|
|
2041
2040
|
modelKeys: firestoreModelKey(oidcEntryIdentity, clientId),
|
|
2042
2041
|
client_id: clientId,
|
|
2043
|
-
client_secret: clientSecret
|
|
2042
|
+
client_secret: clientSecret
|
|
2044
2043
|
}
|
|
2045
2044
|
];
|
|
2046
2045
|
}
|
|
@@ -2073,7 +2072,6 @@ function _ts_generator$7(thisArg, body) {
|
|
|
2073
2072
|
];
|
|
2074
2073
|
case 1:
|
|
2075
2074
|
provider = _state.sent();
|
|
2076
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- oidc-provider Client has static methods not exposed in types
|
|
2077
2075
|
ProviderClient = provider.Client;
|
|
2078
2076
|
return [
|
|
2079
2077
|
4,
|
|
@@ -2138,7 +2136,6 @@ function _ts_generator$7(thisArg, body) {
|
|
|
2138
2136
|
];
|
|
2139
2137
|
case 1:
|
|
2140
2138
|
provider = _state.sent();
|
|
2141
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- oidc-provider Client has static methods not exposed in types
|
|
2142
2139
|
ProviderClient = provider.Client;
|
|
2143
2140
|
return [
|
|
2144
2141
|
4,
|
|
@@ -2198,7 +2195,6 @@ function _ts_generator$7(thisArg, body) {
|
|
|
2198
2195
|
];
|
|
2199
2196
|
case 1:
|
|
2200
2197
|
provider = _state.sent();
|
|
2201
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- oidc-provider Client has static methods not exposed in types
|
|
2202
2198
|
ProviderClient = provider.Client;
|
|
2203
2199
|
return [
|
|
2204
2200
|
4,
|
|
@@ -2879,7 +2875,6 @@ function _unsupported_iterable_to_array$5(o, minLen) {
|
|
|
2879
2875
|
* @returns the decrypted adapter payload
|
|
2880
2876
|
*/ key: "decryptAdapterPayload",
|
|
2881
2877
|
value: function decryptAdapterPayload(payload) {
|
|
2882
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2883
2878
|
return this.adapterPayloadEncryptor.decrypt(payload);
|
|
2884
2879
|
}
|
|
2885
2880
|
}
|
|
@@ -3422,7 +3417,6 @@ function _ts_generator$5(thisArg, body) {
|
|
|
3422
3417
|
];
|
|
3423
3418
|
case 1:
|
|
3424
3419
|
provider = _state.sent();
|
|
3425
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- oidc-provider Client has static methods not exposed in types
|
|
3426
3420
|
ProviderClient = provider.Client;
|
|
3427
3421
|
return [
|
|
3428
3422
|
4,
|
|
@@ -3608,9 +3602,7 @@ function _ts_generator$5(thisArg, body) {
|
|
|
3608
3602
|
_ref = _state.sent(), ProviderClass = _ref.default;
|
|
3609
3603
|
provider = new ProviderClass(config.issuer, _object_spread_props(_object_spread$2({}, providerConfiguration), {
|
|
3610
3604
|
adapter: adapterFactory,
|
|
3611
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- oidc-provider findAccount signature is more specific than our wrapper
|
|
3612
3605
|
findAccount: findAccount,
|
|
3613
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- oidc-provider expects JOSE JWK type which differs from Node.js JsonWebKey
|
|
3614
3606
|
jwks: {
|
|
3615
3607
|
keys: [
|
|
3616
3608
|
signingKey
|
package/oidc/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/firebase-server/oidc",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.5.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@dereekb/analytics": "13.
|
|
6
|
-
"@dereekb/date": "13.
|
|
7
|
-
"@dereekb/firebase": "13.
|
|
8
|
-
"@dereekb/firebase-server": "13.
|
|
9
|
-
"@dereekb/model": "13.
|
|
10
|
-
"@dereekb/nestjs": "13.
|
|
11
|
-
"@dereekb/rxjs": "13.
|
|
12
|
-
"@dereekb/util": "13.
|
|
13
|
-
"@dereekb/zoho": "13.
|
|
14
|
-
"@nestjs/common": "^11.1.
|
|
5
|
+
"@dereekb/analytics": "13.5.0",
|
|
6
|
+
"@dereekb/date": "13.5.0",
|
|
7
|
+
"@dereekb/firebase": "13.5.0",
|
|
8
|
+
"@dereekb/firebase-server": "13.5.0",
|
|
9
|
+
"@dereekb/model": "13.5.0",
|
|
10
|
+
"@dereekb/nestjs": "13.5.0",
|
|
11
|
+
"@dereekb/rxjs": "13.5.0",
|
|
12
|
+
"@dereekb/util": "13.5.0",
|
|
13
|
+
"@dereekb/zoho": "13.5.0",
|
|
14
|
+
"@nestjs/common": "^11.1.17",
|
|
15
15
|
"@nestjs/config": "^4.0.3",
|
|
16
16
|
"express": "^5.0.0",
|
|
17
17
|
"firebase-admin": "^13.0.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/firebase-server",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.5.0",
|
|
4
4
|
"exports": {
|
|
5
5
|
"./test": {
|
|
6
6
|
"module": "./test/index.esm.js",
|
|
@@ -43,21 +43,21 @@
|
|
|
43
43
|
"main": "./index.cjs.js",
|
|
44
44
|
"types": "./src/index.d.ts",
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@dereekb/analytics": "13.
|
|
47
|
-
"@dereekb/date": "13.
|
|
48
|
-
"@dereekb/dbx-core": "13.
|
|
49
|
-
"@dereekb/firebase": "13.
|
|
50
|
-
"@dereekb/model": "13.
|
|
51
|
-
"@dereekb/nestjs": "13.
|
|
52
|
-
"@dereekb/rxjs": "13.
|
|
53
|
-
"@dereekb/util": "13.
|
|
54
|
-
"@dereekb/zoho": "13.
|
|
46
|
+
"@dereekb/analytics": "13.5.0",
|
|
47
|
+
"@dereekb/date": "13.5.0",
|
|
48
|
+
"@dereekb/dbx-core": "13.5.0",
|
|
49
|
+
"@dereekb/firebase": "13.5.0",
|
|
50
|
+
"@dereekb/model": "13.5.0",
|
|
51
|
+
"@dereekb/nestjs": "13.5.0",
|
|
52
|
+
"@dereekb/rxjs": "13.5.0",
|
|
53
|
+
"@dereekb/util": "13.5.0",
|
|
54
|
+
"@dereekb/zoho": "13.5.0",
|
|
55
55
|
"@google-cloud/firestore": "^7.11.6",
|
|
56
56
|
"@google-cloud/storage": "^7.19.0",
|
|
57
|
-
"@nestjs/common": "^11.1.
|
|
57
|
+
"@nestjs/common": "^11.1.17",
|
|
58
58
|
"@nestjs/config": "^4.0.3",
|
|
59
|
-
"@nestjs/core": "^11.1.
|
|
60
|
-
"@nestjs/platform-express": "^11.1.
|
|
59
|
+
"@nestjs/core": "^11.1.17",
|
|
60
|
+
"@nestjs/platform-express": "^11.1.17",
|
|
61
61
|
"@nestjs/testing": "^11.1.14",
|
|
62
62
|
"archiver": "^7.0.0",
|
|
63
63
|
"arktype": "^2.2.0",
|
package/test/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/firebase-server/test",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.5.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@dereekb/analytics": "13.
|
|
6
|
-
"@dereekb/date": "13.
|
|
7
|
-
"@dereekb/firebase": "13.
|
|
8
|
-
"@dereekb/firebase-server": "13.
|
|
9
|
-
"@dereekb/model": "13.
|
|
10
|
-
"@dereekb/nestjs": "13.
|
|
11
|
-
"@dereekb/rxjs": "13.
|
|
12
|
-
"@dereekb/util": "13.
|
|
5
|
+
"@dereekb/analytics": "13.5.0",
|
|
6
|
+
"@dereekb/date": "13.5.0",
|
|
7
|
+
"@dereekb/firebase": "13.5.0",
|
|
8
|
+
"@dereekb/firebase-server": "13.5.0",
|
|
9
|
+
"@dereekb/model": "13.5.0",
|
|
10
|
+
"@dereekb/nestjs": "13.5.0",
|
|
11
|
+
"@dereekb/rxjs": "13.5.0",
|
|
12
|
+
"@dereekb/util": "13.5.0",
|
|
13
13
|
"@google-cloud/firestore": "^7.11.6",
|
|
14
14
|
"@google-cloud/storage": "^7.19.0",
|
|
15
|
-
"@nestjs/common": "^11.1.
|
|
15
|
+
"@nestjs/common": "^11.1.17",
|
|
16
16
|
"@nestjs/testing": "^11.1.14",
|
|
17
17
|
"firebase-admin": "^13.0.0",
|
|
18
18
|
"firebase-functions": "^7.0.0",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"make-error": "^1.3.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@dereekb/nestjs": "13.
|
|
24
|
+
"@dereekb/nestjs": "13.5.0"
|
|
25
25
|
},
|
|
26
26
|
"exports": {
|
|
27
27
|
"./package.json": "./package.json",
|
package/zoho/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/firebase-server/zoho",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.5.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@dereekb/analytics": "13.
|
|
6
|
-
"@dereekb/date": "13.
|
|
7
|
-
"@dereekb/model": "13.
|
|
8
|
-
"@dereekb/nestjs": "13.
|
|
9
|
-
"@dereekb/rxjs": "13.
|
|
10
|
-
"@dereekb/firebase": "13.
|
|
11
|
-
"@dereekb/util": "13.
|
|
12
|
-
"@dereekb/zoho": "13.
|
|
5
|
+
"@dereekb/analytics": "13.5.0",
|
|
6
|
+
"@dereekb/date": "13.5.0",
|
|
7
|
+
"@dereekb/model": "13.5.0",
|
|
8
|
+
"@dereekb/nestjs": "13.5.0",
|
|
9
|
+
"@dereekb/rxjs": "13.5.0",
|
|
10
|
+
"@dereekb/firebase": "13.5.0",
|
|
11
|
+
"@dereekb/util": "13.5.0",
|
|
12
|
+
"@dereekb/zoho": "13.5.0"
|
|
13
13
|
},
|
|
14
14
|
"exports": {
|
|
15
15
|
"./package.json": "./package.json",
|