@astralibx/email-rule-engine 12.0.0 → 12.1.0

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
@@ -192,6 +192,11 @@ interface BeforeSendParams {
192
192
  email: string;
193
193
  name: string;
194
194
  };
195
+ context: {
196
+ ruleId: string;
197
+ templateId: string;
198
+ runId: string;
199
+ };
195
200
  }
196
201
  interface BeforeSendResult {
197
202
  htmlBody: string;
package/dist/index.d.ts CHANGED
@@ -192,6 +192,11 @@ interface BeforeSendParams {
192
192
  email: string;
193
193
  name: string;
194
194
  };
195
+ context: {
196
+ ruleId: string;
197
+ templateId: string;
198
+ runId: string;
199
+ };
195
200
  }
196
201
  interface BeforeSendResult {
197
202
  htmlBody: string;
package/dist/index.mjs CHANGED
@@ -1253,6 +1253,11 @@ var RuleRunnerService = class {
1253
1253
  id: dedupKey,
1254
1254
  email,
1255
1255
  name: ""
1256
+ },
1257
+ context: {
1258
+ ruleId,
1259
+ templateId,
1260
+ runId: runId || ""
1256
1261
  }
1257
1262
  });
1258
1263
  finalHtml = modified.htmlBody;
@@ -1459,6 +1464,11 @@ var RuleRunnerService = class {
1459
1464
  id: String(userId),
1460
1465
  email,
1461
1466
  name: String(user.name || user.firstName || "")
1467
+ },
1468
+ context: {
1469
+ ruleId,
1470
+ templateId,
1471
+ runId: runId || ""
1462
1472
  }
1463
1473
  });
1464
1474
  finalHtml = modified.htmlBody;