@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.
@@ -1,3 +1,4 @@
1
+ export declare const PLATFORM_EVENT_NAMESPACE = "platform";
1
2
  export declare const PlatformEvents: {
2
3
  Messaging: {
3
4
  EmailSent: string;
@@ -1,3 +1,4 @@
1
+ export declare const AUTHENTICATION_EVENTS_NAMESPACE = "authentication";
1
2
  export declare const AuthenticationEvents: {
2
3
  UserLogin: string;
3
4
  UserRegistrationStarted: string;
package/dist/esm/index.js CHANGED
@@ -79,9 +79,10 @@ var SortDirection;
79
79
  SortDirection["Desc"] = "desc";
80
80
  })(SortDirection || (SortDirection = {}));
81
81
 
82
+ const PLATFORM_EVENT_NAMESPACE = "platform";
82
83
  const PlatformEvents = {
83
84
  Messaging: {
84
- EmailSent: "platform:messaging:email.sent",
85
+ EmailSent: `${PLATFORM_EVENT_NAMESPACE}.messaging:email.sent`,
85
86
  },
86
87
  };
87
88
 
@@ -222,12 +223,13 @@ class OperationTokenMismatchError extends AuthenticationError {
222
223
  }
223
224
  }
224
225
 
226
+ const AUTHENTICATION_EVENTS_NAMESPACE = "authentication";
225
227
  const AuthenticationEvents = {
226
- UserLogin: "authentication:user.login",
227
- UserRegistrationStarted: "authentication:user.registrationStarted",
228
- UserRegistrationCompleted: "authentication:user.registrationCompleted",
229
- UserPasswordResetStarted: "authentication:user.passwordResetStarted",
230
- UserPasswordResetCompleted: "authentication:user.passwordResetCompleted",
228
+ UserLogin: `${AUTHENTICATION_EVENTS_NAMESPACE}.user.login`,
229
+ UserRegistrationStarted: `${AUTHENTICATION_EVENTS_NAMESPACE}.user.registrationStarted`,
230
+ UserRegistrationCompleted: `${AUTHENTICATION_EVENTS_NAMESPACE}.user.registrationCompleted`,
231
+ UserPasswordResetStarted: `${AUTHENTICATION_EVENTS_NAMESPACE}.user.passwordResetStarted`,
232
+ UserPasswordResetCompleted: `${AUTHENTICATION_EVENTS_NAMESPACE}.user.passwordResetCompleted`,
231
233
  };
232
234
 
233
235
  /******************************************************************************
@@ -25252,5 +25254,5 @@ AppSessionMiddleware = __decorate([
25252
25254
  Injectable()
25253
25255
  ], AppSessionMiddleware);
25254
25256
 
25255
- export { AppExceptionsFilterBase, AppHashingService, AppInMemorySettings, AppSessionMiddleware, AppSessionService, AuthenticationEmailTemplates, AuthenticationError, AuthenticationEvents, AuthenticationExtensionSymbols, AuthenticationModule, AuthenticationService, AwsEmailModule, AwsSesEmailTemplate, EmailService, EntityManagerConfigurationError, EntityManagerException, EntityManagerInitializer, EntityManagerModule, EntityManagerRegistry, EntityManagerService, EntityManagerSymbols, EntityManagerUnauthorizedException, EntityNotFoundException, EntityOperationType, EntityOperationUnauthorizedException, EventsService, InvalidCredentialsError, ModulesContainerProvider, MultiTenancyModule, MultipleEntitiesFoundException, NestEntityActions, NestEntityAuthorizationMiddleware, NestEntityManager, NestTypeOrmQueryBuilder, NestTypeOrmRepository, OperationTokenMismatchError, PlatformEvents, QueryBuilderBase, ReplicationMode, SendgridEmailModule, SendgridEmailTemplate, SortDirection, UserRegistrationError, WpAppInitializer, WpAwsSesEmailTemplate, WpEmailTemplate, WpEntity, WpEntityActions, WpEntityAdapter, WpEntityAuthMiddleware, WpEntityConnector, WpEntityConverter, WpEntityManager, WpEntityQueryBuilder, WpEntityRepository, WpEventsTracker, WpSendgridEmailTemplate, WpUserService, getLocalizedText, newUuid, renderHandlebarsTemplate };
25257
+ export { AUTHENTICATION_EVENTS_NAMESPACE, AppExceptionsFilterBase, AppHashingService, AppInMemorySettings, AppSessionMiddleware, AppSessionService, AuthenticationEmailTemplates, AuthenticationError, AuthenticationEvents, AuthenticationExtensionSymbols, AuthenticationModule, AuthenticationService, AwsEmailModule, AwsSesEmailTemplate, EmailService, EntityManagerConfigurationError, EntityManagerException, EntityManagerInitializer, EntityManagerModule, EntityManagerRegistry, EntityManagerService, EntityManagerSymbols, EntityManagerUnauthorizedException, EntityNotFoundException, EntityOperationType, EntityOperationUnauthorizedException, EventsService, InvalidCredentialsError, ModulesContainerProvider, MultiTenancyModule, MultipleEntitiesFoundException, NestEntityActions, NestEntityAuthorizationMiddleware, NestEntityManager, NestTypeOrmQueryBuilder, NestTypeOrmRepository, OperationTokenMismatchError, PLATFORM_EVENT_NAMESPACE, PlatformEvents, QueryBuilderBase, ReplicationMode, SendgridEmailModule, SendgridEmailTemplate, SortDirection, UserRegistrationError, WpAppInitializer, WpAwsSesEmailTemplate, WpEmailTemplate, WpEntity, WpEntityActions, WpEntityAdapter, WpEntityAuthMiddleware, WpEntityConnector, WpEntityConverter, WpEntityManager, WpEntityQueryBuilder, WpEntityRepository, WpEventsTracker, WpSendgridEmailTemplate, WpUserService, getLocalizedText, newUuid, renderHandlebarsTemplate };
25256
25258
  //# sourceMappingURL=index.js.map