@punks/backend-entity-manager 0.0.52 → 0.0.53
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/dist/cjs/index.js +10 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/events/platformEvents.d.ts +1 -0
- package/dist/cjs/types/platforms/nest/extensions/authentication/events/consts.d.ts +1 -0
- package/dist/esm/index.js +9 -7
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/events/platformEvents.d.ts +1 -0
- package/dist/esm/types/platforms/nest/extensions/authentication/events/consts.d.ts +1 -0
- package/dist/index.d.ts +3 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -87,9 +87,10 @@ exports.SortDirection = void 0;
|
|
|
87
87
|
SortDirection["Desc"] = "desc";
|
|
88
88
|
})(exports.SortDirection || (exports.SortDirection = {}));
|
|
89
89
|
|
|
90
|
+
const PLATFORM_EVENT_NAMESPACE = "platform";
|
|
90
91
|
const PlatformEvents = {
|
|
91
92
|
Messaging: {
|
|
92
|
-
EmailSent:
|
|
93
|
+
EmailSent: `${PLATFORM_EVENT_NAMESPACE}.messaging:email.sent`,
|
|
93
94
|
},
|
|
94
95
|
};
|
|
95
96
|
|
|
@@ -230,12 +231,13 @@ class OperationTokenMismatchError extends AuthenticationError {
|
|
|
230
231
|
}
|
|
231
232
|
}
|
|
232
233
|
|
|
234
|
+
const AUTHENTICATION_EVENTS_NAMESPACE = "authentication";
|
|
233
235
|
const AuthenticationEvents = {
|
|
234
|
-
UserLogin:
|
|
235
|
-
UserRegistrationStarted:
|
|
236
|
-
UserRegistrationCompleted:
|
|
237
|
-
UserPasswordResetStarted:
|
|
238
|
-
UserPasswordResetCompleted:
|
|
236
|
+
UserLogin: `${AUTHENTICATION_EVENTS_NAMESPACE}.user.login`,
|
|
237
|
+
UserRegistrationStarted: `${AUTHENTICATION_EVENTS_NAMESPACE}.user.registrationStarted`,
|
|
238
|
+
UserRegistrationCompleted: `${AUTHENTICATION_EVENTS_NAMESPACE}.user.registrationCompleted`,
|
|
239
|
+
UserPasswordResetStarted: `${AUTHENTICATION_EVENTS_NAMESPACE}.user.passwordResetStarted`,
|
|
240
|
+
UserPasswordResetCompleted: `${AUTHENTICATION_EVENTS_NAMESPACE}.user.passwordResetCompleted`,
|
|
239
241
|
};
|
|
240
242
|
|
|
241
243
|
/******************************************************************************
|
|
@@ -25260,6 +25262,7 @@ exports.AppSessionMiddleware = __decorate([
|
|
|
25260
25262
|
common.Injectable()
|
|
25261
25263
|
], exports.AppSessionMiddleware);
|
|
25262
25264
|
|
|
25265
|
+
exports.AUTHENTICATION_EVENTS_NAMESPACE = AUTHENTICATION_EVENTS_NAMESPACE;
|
|
25263
25266
|
exports.AppExceptionsFilterBase = AppExceptionsFilterBase;
|
|
25264
25267
|
exports.AppInMemorySettings = AppInMemorySettings;
|
|
25265
25268
|
exports.AuthenticationEmailTemplates = AuthenticationEmailTemplates;
|
|
@@ -25281,6 +25284,7 @@ exports.NestEntityManager = NestEntityManager;
|
|
|
25281
25284
|
exports.NestTypeOrmQueryBuilder = NestTypeOrmQueryBuilder;
|
|
25282
25285
|
exports.NestTypeOrmRepository = NestTypeOrmRepository;
|
|
25283
25286
|
exports.OperationTokenMismatchError = OperationTokenMismatchError;
|
|
25287
|
+
exports.PLATFORM_EVENT_NAMESPACE = PLATFORM_EVENT_NAMESPACE;
|
|
25284
25288
|
exports.PlatformEvents = PlatformEvents;
|
|
25285
25289
|
exports.QueryBuilderBase = QueryBuilderBase;
|
|
25286
25290
|
exports.SendgridEmailTemplate = SendgridEmailTemplate;
|