av6-core 1.0.15 → 1.0.16

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.js CHANGED
@@ -1701,10 +1701,10 @@ var NotificationService = class {
1701
1701
  const emailProvider = new EmailProvider(this.prisma, this.logger, this.envMode);
1702
1702
  const smsProvider = new SmsProvider();
1703
1703
  const waProvider = new WhatsAppProvider({
1704
- apiUrl: cfg.serviceEvent.whatsappApiUrl,
1705
- templateName: "booking_cancellation",
1704
+ apiUrl: cfg.serviceEvent.wpApiUrl,
1705
+ templateName: waTpl.templateCode,
1706
1706
  callbackData: "",
1707
- countryCode: "+91",
1707
+ countryCode: cfg.serviceEvent.countryCode,
1708
1708
  languageCode: "en"
1709
1709
  });
1710
1710
  const appProvider = new AppNotificationProvider();
@@ -1808,6 +1808,7 @@ var NotificationService = class {
1808
1808
  async sendWhatsAppMessage(args) {
1809
1809
  try {
1810
1810
  const result = await args.provider.send(args);
1811
+ this.logger.info(`[NotificationService] WhatsApp send result: ${JSON.stringify(result)}`);
1811
1812
  await this.prisma.eventNotificationAudit.create({
1812
1813
  data: {
1813
1814
  eventId: args.evt.serviceEventId,
package/dist/index.mjs CHANGED
@@ -1655,10 +1655,10 @@ var NotificationService = class {
1655
1655
  const emailProvider = new EmailProvider(this.prisma, this.logger, this.envMode);
1656
1656
  const smsProvider = new SmsProvider();
1657
1657
  const waProvider = new WhatsAppProvider({
1658
- apiUrl: cfg.serviceEvent.whatsappApiUrl,
1659
- templateName: "booking_cancellation",
1658
+ apiUrl: cfg.serviceEvent.wpApiUrl,
1659
+ templateName: waTpl.templateCode,
1660
1660
  callbackData: "",
1661
- countryCode: "+91",
1661
+ countryCode: cfg.serviceEvent.countryCode,
1662
1662
  languageCode: "en"
1663
1663
  });
1664
1664
  const appProvider = new AppNotificationProvider();
@@ -1762,6 +1762,7 @@ var NotificationService = class {
1762
1762
  async sendWhatsAppMessage(args) {
1763
1763
  try {
1764
1764
  const result = await args.provider.send(args);
1765
+ this.logger.info(`[NotificationService] WhatsApp send result: ${JSON.stringify(result)}`);
1765
1766
  await this.prisma.eventNotificationAudit.create({
1766
1767
  data: {
1767
1768
  eventId: args.evt.serviceEventId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "av6-core",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",