legend-transactional 2.4.0 → 2.4.1

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
@@ -366,6 +366,17 @@ interface EventPayload {
366
366
  templateName: string;
367
367
  templateData: Record<string, unknown>;
368
368
  };
369
+ /**
370
+ * Event to deliver participation reward (post-ranking)
371
+ */
372
+ 'legend_rankings.participation_reward': {
373
+ userId: string;
374
+ rankingId: number;
375
+ participationRewardType: string;
376
+ rewardConfig: Record<string, unknown>;
377
+ templateName: string;
378
+ templateData: Record<string, unknown>;
379
+ };
369
380
  /**
370
381
  * Event to notify when a ranking is created
371
382
  */
@@ -614,6 +625,7 @@ declare const microserviceEvent: {
614
625
  readonly 'LEGEND_RANKINGS.RANKINGS_FINISHED': "legend_rankings.rankings_finished";
615
626
  readonly 'LEGEND_RANKINGS.NEW_RANKING_CREATED': "legend_rankings.new_ranking_created";
616
627
  readonly 'LEGEND_RANKINGS.INTERMEDIATE_REWARD': "legend_rankings.intermediate_reward";
628
+ readonly 'LEGEND_RANKINGS.PARTICIPATION_REWARD': "legend_rankings.participation_reward";
617
629
  readonly 'LEGEND_SHOWCASE.PRODUCT_VIRTUAL_DELETED': "legend_showcase.product_virtual_deleted";
618
630
  readonly 'LEGEND_SHOWCASE.UPDATE_ALLOWED_MISSION_SUBSCRIPTION_IDS': "legend_showcase.update_allowed_mission_subscription_ids";
619
631
  readonly 'LEGEND_SHOWCASE.UPDATE_ALLOWED_RANKING_SUBSCRIPTION_IDS': "legend_showcase.update_allowed_ranking_subscription_ids";
package/dist/index.d.ts CHANGED
@@ -366,6 +366,17 @@ interface EventPayload {
366
366
  templateName: string;
367
367
  templateData: Record<string, unknown>;
368
368
  };
369
+ /**
370
+ * Event to deliver participation reward (post-ranking)
371
+ */
372
+ 'legend_rankings.participation_reward': {
373
+ userId: string;
374
+ rankingId: number;
375
+ participationRewardType: string;
376
+ rewardConfig: Record<string, unknown>;
377
+ templateName: string;
378
+ templateData: Record<string, unknown>;
379
+ };
369
380
  /**
370
381
  * Event to notify when a ranking is created
371
382
  */
@@ -614,6 +625,7 @@ declare const microserviceEvent: {
614
625
  readonly 'LEGEND_RANKINGS.RANKINGS_FINISHED': "legend_rankings.rankings_finished";
615
626
  readonly 'LEGEND_RANKINGS.NEW_RANKING_CREATED': "legend_rankings.new_ranking_created";
616
627
  readonly 'LEGEND_RANKINGS.INTERMEDIATE_REWARD': "legend_rankings.intermediate_reward";
628
+ readonly 'LEGEND_RANKINGS.PARTICIPATION_REWARD': "legend_rankings.participation_reward";
617
629
  readonly 'LEGEND_SHOWCASE.PRODUCT_VIRTUAL_DELETED': "legend_showcase.product_virtual_deleted";
618
630
  readonly 'LEGEND_SHOWCASE.UPDATE_ALLOWED_MISSION_SUBSCRIPTION_IDS': "legend_showcase.update_allowed_mission_subscription_ids";
619
631
  readonly 'LEGEND_SHOWCASE.UPDATE_ALLOWED_RANKING_SUBSCRIPTION_IDS': "legend_showcase.update_allowed_ranking_subscription_ids";
package/dist/index.js CHANGED
@@ -132,6 +132,7 @@ var microserviceEvent = {
132
132
  "LEGEND_RANKINGS.RANKINGS_FINISHED": "legend_rankings.rankings_finished",
133
133
  "LEGEND_RANKINGS.NEW_RANKING_CREATED": "legend_rankings.new_ranking_created",
134
134
  "LEGEND_RANKINGS.INTERMEDIATE_REWARD": "legend_rankings.intermediate_reward",
135
+ "LEGEND_RANKINGS.PARTICIPATION_REWARD": "legend_rankings.participation_reward",
135
136
  "LEGEND_SHOWCASE.PRODUCT_VIRTUAL_DELETED": "legend_showcase.product_virtual_deleted",
136
137
  "LEGEND_SHOWCASE.UPDATE_ALLOWED_MISSION_SUBSCRIPTION_IDS": "legend_showcase.update_allowed_mission_subscription_ids",
137
138
  "LEGEND_SHOWCASE.UPDATE_ALLOWED_RANKING_SUBSCRIPTION_IDS": "legend_showcase.update_allowed_ranking_subscription_ids",
package/dist/index.mjs CHANGED
@@ -125,6 +125,7 @@ var microserviceEvent = {
125
125
  "LEGEND_RANKINGS.RANKINGS_FINISHED": "legend_rankings.rankings_finished",
126
126
  "LEGEND_RANKINGS.NEW_RANKING_CREATED": "legend_rankings.new_ranking_created",
127
127
  "LEGEND_RANKINGS.INTERMEDIATE_REWARD": "legend_rankings.intermediate_reward",
128
+ "LEGEND_RANKINGS.PARTICIPATION_REWARD": "legend_rankings.participation_reward",
128
129
  "LEGEND_SHOWCASE.PRODUCT_VIRTUAL_DELETED": "legend_showcase.product_virtual_deleted",
129
130
  "LEGEND_SHOWCASE.UPDATE_ALLOWED_MISSION_SUBSCRIPTION_IDS": "legend_showcase.update_allowed_mission_subscription_ids",
130
131
  "LEGEND_SHOWCASE.UPDATE_ALLOWED_RANKING_SUBSCRIPTION_IDS": "legend_showcase.update_allowed_ranking_subscription_ids",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "legend-transactional",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
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",