@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 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: "platform:messaging:email.sent",
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: "authentication:user.login",
235
- UserRegistrationStarted: "authentication:user.registrationStarted",
236
- UserRegistrationCompleted: "authentication:user.registrationCompleted",
237
- UserPasswordResetStarted: "authentication:user.passwordResetStarted",
238
- UserPasswordResetCompleted: "authentication:user.passwordResetCompleted",
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;