legend-transactional 2.2.0 → 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 +21 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +1 -1
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
|
*/
|
|
@@ -291,6 +300,17 @@ interface EventPayload {
|
|
|
291
300
|
'legend_missions.ongoing_mission': {
|
|
292
301
|
redisKey: string;
|
|
293
302
|
};
|
|
303
|
+
/**
|
|
304
|
+
* Event triggered when a mission finishes and needs to send final reports to participants
|
|
305
|
+
*/
|
|
306
|
+
'legend_missions.mission_finished': {
|
|
307
|
+
missionTitle: string;
|
|
308
|
+
participants: Array<{
|
|
309
|
+
userId?: string;
|
|
310
|
+
email?: string;
|
|
311
|
+
position?: number;
|
|
312
|
+
}>;
|
|
313
|
+
};
|
|
294
314
|
/**
|
|
295
315
|
* Event triggered to send an email notification when a user completes a crypto-based mission and earns a reward.
|
|
296
316
|
*/
|
|
@@ -439,6 +459,7 @@ declare const microserviceEvent: {
|
|
|
439
459
|
readonly 'AUTH.DELETED_USER': "auth.deleted_user";
|
|
440
460
|
readonly 'AUTH.LOGOUT_USER': "auth.logout_user";
|
|
441
461
|
readonly 'AUTH.NEW_USER': "auth.new_user";
|
|
462
|
+
readonly 'AUTH.BLOCKED_USER': "auth.blocked_user";
|
|
442
463
|
readonly 'COINS.NOTIFY_CLIENT': "coins.notify_client";
|
|
443
464
|
readonly 'COINS.SEND_EMAIL': "coins.send_email";
|
|
444
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
|
*/
|
|
@@ -291,6 +300,17 @@ interface EventPayload {
|
|
|
291
300
|
'legend_missions.ongoing_mission': {
|
|
292
301
|
redisKey: string;
|
|
293
302
|
};
|
|
303
|
+
/**
|
|
304
|
+
* Event triggered when a mission finishes and needs to send final reports to participants
|
|
305
|
+
*/
|
|
306
|
+
'legend_missions.mission_finished': {
|
|
307
|
+
missionTitle: string;
|
|
308
|
+
participants: Array<{
|
|
309
|
+
userId?: string;
|
|
310
|
+
email?: string;
|
|
311
|
+
position?: number;
|
|
312
|
+
}>;
|
|
313
|
+
};
|
|
294
314
|
/**
|
|
295
315
|
* Event triggered to send an email notification when a user completes a crypto-based mission and earns a reward.
|
|
296
316
|
*/
|
|
@@ -439,6 +459,7 @@ declare const microserviceEvent: {
|
|
|
439
459
|
readonly 'AUTH.DELETED_USER': "auth.deleted_user";
|
|
440
460
|
readonly 'AUTH.LOGOUT_USER': "auth.logout_user";
|
|
441
461
|
readonly 'AUTH.NEW_USER': "auth.new_user";
|
|
462
|
+
readonly 'AUTH.BLOCKED_USER': "auth.blocked_user";
|
|
442
463
|
readonly 'COINS.NOTIFY_CLIENT': "coins.notify_client";
|
|
443
464
|
readonly 'COINS.SEND_EMAIL': "coins.send_email";
|
|
444
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.
|
|
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",
|