legend-transactional 2.2.1 → 2.2.2

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/index.d.mts CHANGED
@@ -238,6 +238,15 @@ interface EventPayload {
238
238
  username: string;
239
239
  userlastname: string;
240
240
  };
241
+ /**
242
+ * Event to notify when a user is blocked (permanent emits only).
243
+ */
244
+ 'auth.blocked_user': {
245
+ userId: string;
246
+ blockType: 'permanent' | 'temporary';
247
+ blockReason?: string;
248
+ blockExpirationHours?: number;
249
+ };
241
250
  /**
242
251
  * Event to update a user's subscription.
243
252
  */
@@ -450,6 +459,7 @@ declare const microserviceEvent: {
450
459
  readonly 'AUTH.DELETED_USER': "auth.deleted_user";
451
460
  readonly 'AUTH.LOGOUT_USER': "auth.logout_user";
452
461
  readonly 'AUTH.NEW_USER': "auth.new_user";
462
+ readonly 'AUTH.BLOCKED_USER': "auth.blocked_user";
453
463
  readonly 'COINS.NOTIFY_CLIENT': "coins.notify_client";
454
464
  readonly 'COINS.SEND_EMAIL': "coins.send_email";
455
465
  readonly 'COINS.UPDATE_SUBSCRIPTION': "coins.update_subscription";
package/dist/index.d.ts CHANGED
@@ -238,6 +238,15 @@ interface EventPayload {
238
238
  username: string;
239
239
  userlastname: string;
240
240
  };
241
+ /**
242
+ * Event to notify when a user is blocked (permanent emits only).
243
+ */
244
+ 'auth.blocked_user': {
245
+ userId: string;
246
+ blockType: 'permanent' | 'temporary';
247
+ blockReason?: string;
248
+ blockExpirationHours?: number;
249
+ };
241
250
  /**
242
251
  * Event to update a user's subscription.
243
252
  */
@@ -450,6 +459,7 @@ declare const microserviceEvent: {
450
459
  readonly 'AUTH.DELETED_USER': "auth.deleted_user";
451
460
  readonly 'AUTH.LOGOUT_USER': "auth.logout_user";
452
461
  readonly 'AUTH.NEW_USER': "auth.new_user";
462
+ readonly 'AUTH.BLOCKED_USER': "auth.blocked_user";
453
463
  readonly 'COINS.NOTIFY_CLIENT': "coins.notify_client";
454
464
  readonly 'COINS.SEND_EMAIL': "coins.send_email";
455
465
  readonly 'COINS.UPDATE_SUBSCRIPTION': "coins.update_subscription";
package/dist/index.js CHANGED
@@ -101,6 +101,7 @@ var microserviceEvent = {
101
101
  "AUTH.DELETED_USER": "auth.deleted_user",
102
102
  "AUTH.LOGOUT_USER": "auth.logout_user",
103
103
  "AUTH.NEW_USER": "auth.new_user",
104
+ "AUTH.BLOCKED_USER": "auth.blocked_user",
104
105
  "COINS.NOTIFY_CLIENT": "coins.notify_client",
105
106
  "COINS.SEND_EMAIL": "coins.send_email",
106
107
  "COINS.UPDATE_SUBSCRIPTION": "coins.update_subscription",
package/dist/index.mjs CHANGED
@@ -94,6 +94,7 @@ var microserviceEvent = {
94
94
  "AUTH.DELETED_USER": "auth.deleted_user",
95
95
  "AUTH.LOGOUT_USER": "auth.logout_user",
96
96
  "AUTH.NEW_USER": "auth.new_user",
97
+ "AUTH.BLOCKED_USER": "auth.blocked_user",
97
98
  "COINS.NOTIFY_CLIENT": "coins.notify_client",
98
99
  "COINS.SEND_EMAIL": "coins.send_email",
99
100
  "COINS.UPDATE_SUBSCRIPTION": "coins.update_subscription",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "legend-transactional",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "A simple transactional, event-driven communication framework for microservices using RabbitMQ",
5
5
  "author": "Jorge Clavijo <jym272@gmail.com> (https://github.com/jym272)",
6
6
  "license": "MIT",