@etainabl/nodejs-sdk 1.3.176 → 1.3.178

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.cts CHANGED
@@ -1407,8 +1407,8 @@ interface Notification<ID = string, DateType = Date | string> {
1407
1407
  declare const NotificationTemplateCategories: readonly ["automation", "report", "team", "dataQuality", "discussion", "scraper"];
1408
1408
  type NotificationTemplateCategory = typeof NotificationTemplateCategories[number];
1409
1409
  declare const EventNamesByCategory: {
1410
- readonly automation: readonly ["runError", "runCompleted", "hasnotRun", "fileNotExpected"];
1411
- readonly report: readonly ["runCompleted", "runError"];
1410
+ readonly automation: readonly ["automationFailed", "runCompleted", "hasnotRun", "fileNotExpected"];
1411
+ readonly report: readonly ["reportSuccess", "reportFailed"];
1412
1412
  readonly team: readonly ["newUserSignIn"];
1413
1413
  readonly dataQuality: readonly ["thresholdBreached", "approachingThreshold", "readingOverdue", "readingDueSoon", "contractRenewalUpcoming", "contractRenewalOverdue"];
1414
1414
  readonly discussion: readonly ["commentAdded", "mentionInComment"];
@@ -1458,16 +1458,48 @@ interface NotificationTemplate<ID = string, DateType = Date | string> {
1458
1458
  }
1459
1459
 
1460
1460
  type NotificationContextMap = {
1461
- generalReportGenerated: {
1461
+ reportSuccess: {
1462
+ report: {
1463
+ fileName: string;
1464
+ _id: string;
1465
+ };
1466
+ };
1467
+ reportFailed: {
1462
1468
  report: {
1463
1469
  fileName: string;
1464
- type: string;
1465
1470
  _id: string;
1466
1471
  };
1467
1472
  };
1468
1473
  automationFailed: {
1469
1474
  context: {
1470
1475
  message: string;
1476
+ metadata: {
1477
+ items: {
1478
+ message: string;
1479
+ route: {
1480
+ name: string;
1481
+ query: {
1482
+ id: string;
1483
+ };
1484
+ };
1485
+ }[];
1486
+ };
1487
+ };
1488
+ };
1489
+ readingOverdue: {
1490
+ context: {
1491
+ message: string;
1492
+ metadata: {
1493
+ items: {
1494
+ message: string;
1495
+ route: {
1496
+ name: string;
1497
+ params: {
1498
+ id: string;
1499
+ };
1500
+ };
1501
+ }[];
1502
+ };
1471
1503
  };
1472
1504
  };
1473
1505
  };
package/dist/index.d.ts CHANGED
@@ -1407,8 +1407,8 @@ interface Notification<ID = string, DateType = Date | string> {
1407
1407
  declare const NotificationTemplateCategories: readonly ["automation", "report", "team", "dataQuality", "discussion", "scraper"];
1408
1408
  type NotificationTemplateCategory = typeof NotificationTemplateCategories[number];
1409
1409
  declare const EventNamesByCategory: {
1410
- readonly automation: readonly ["runError", "runCompleted", "hasnotRun", "fileNotExpected"];
1411
- readonly report: readonly ["runCompleted", "runError"];
1410
+ readonly automation: readonly ["automationFailed", "runCompleted", "hasnotRun", "fileNotExpected"];
1411
+ readonly report: readonly ["reportSuccess", "reportFailed"];
1412
1412
  readonly team: readonly ["newUserSignIn"];
1413
1413
  readonly dataQuality: readonly ["thresholdBreached", "approachingThreshold", "readingOverdue", "readingDueSoon", "contractRenewalUpcoming", "contractRenewalOverdue"];
1414
1414
  readonly discussion: readonly ["commentAdded", "mentionInComment"];
@@ -1458,16 +1458,48 @@ interface NotificationTemplate<ID = string, DateType = Date | string> {
1458
1458
  }
1459
1459
 
1460
1460
  type NotificationContextMap = {
1461
- generalReportGenerated: {
1461
+ reportSuccess: {
1462
+ report: {
1463
+ fileName: string;
1464
+ _id: string;
1465
+ };
1466
+ };
1467
+ reportFailed: {
1462
1468
  report: {
1463
1469
  fileName: string;
1464
- type: string;
1465
1470
  _id: string;
1466
1471
  };
1467
1472
  };
1468
1473
  automationFailed: {
1469
1474
  context: {
1470
1475
  message: string;
1476
+ metadata: {
1477
+ items: {
1478
+ message: string;
1479
+ route: {
1480
+ name: string;
1481
+ query: {
1482
+ id: string;
1483
+ };
1484
+ };
1485
+ }[];
1486
+ };
1487
+ };
1488
+ };
1489
+ readingOverdue: {
1490
+ context: {
1491
+ message: string;
1492
+ metadata: {
1493
+ items: {
1494
+ message: string;
1495
+ route: {
1496
+ name: string;
1497
+ params: {
1498
+ id: string;
1499
+ };
1500
+ };
1501
+ }[];
1502
+ };
1471
1503
  };
1472
1504
  };
1473
1505
  };
package/dist/index.js CHANGED
@@ -85871,8 +85871,8 @@ var NotificationTemplateCategories = [
85871
85871
  "scraper"
85872
85872
  ];
85873
85873
  var EventNamesByCategory = {
85874
- automation: ["runError", "runCompleted", "hasnotRun", "fileNotExpected"],
85875
- report: ["runCompleted", "runError"],
85874
+ automation: ["automationFailed", "runCompleted", "hasnotRun", "fileNotExpected"],
85875
+ report: ["reportSuccess", "reportFailed"],
85876
85876
  team: ["newUserSignIn"],
85877
85877
  dataQuality: ["thresholdBreached", "approachingThreshold", "readingOverdue", "readingDueSoon", "contractRenewalUpcoming", "contractRenewalOverdue"],
85878
85878
  discussion: ["commentAdded", "mentionInComment"],