@universe-platform/ui 0.1.0-beta.21 → 0.1.0-beta.22

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
@@ -10000,6 +10000,10 @@ function buildWhatsAppPayload(to, templateName, languageCode, components) {
10000
10000
  }
10001
10001
  async function sendWhatsAppMessage(payload, executeAction, orgId) {
10002
10002
  try {
10003
+ console.log(
10004
+ "[whatsappApi] Dispatching WhatsApp message action with payload:",
10005
+ JSON.stringify(payload, null, 2)
10006
+ );
10003
10007
  const actionPayload = {
10004
10008
  payload
10005
10009
  };
@@ -10009,12 +10013,18 @@ async function sendWhatsAppMessage(payload, executeAction, orgId) {
10009
10013
  }
10010
10014
  const result = await executeAction("SEND_WHATSAPP_MESSAGE", actionPayload);
10011
10015
  if (result && result.success === false) {
10016
+ console.error(
10017
+ "[whatsappApi] SEND_WHATSAPP_MESSAGE dispatch failed:",
10018
+ result.error,
10019
+ result.details || result
10020
+ );
10012
10021
  return {
10013
10022
  success: false,
10014
10023
  error: result.error || "\u05E9\u05DC\u05D9\u05D7\u05EA \u05D4\u05D5\u05D3\u05E2\u05EA WhatsApp \u05E0\u05DB\u05E9\u05DC\u05D4",
10015
10024
  data: result
10016
10025
  };
10017
10026
  }
10027
+ console.log("[whatsappApi] SEND_WHATSAPP_MESSAGE dispatch succeeded:", result);
10018
10028
  return {
10019
10029
  success: true,
10020
10030
  data: result
package/dist/index.mjs CHANGED
@@ -9918,6 +9918,10 @@ function buildWhatsAppPayload(to, templateName, languageCode, components) {
9918
9918
  }
9919
9919
  async function sendWhatsAppMessage(payload, executeAction, orgId) {
9920
9920
  try {
9921
+ console.log(
9922
+ "[whatsappApi] Dispatching WhatsApp message action with payload:",
9923
+ JSON.stringify(payload, null, 2)
9924
+ );
9921
9925
  const actionPayload = {
9922
9926
  payload
9923
9927
  };
@@ -9927,12 +9931,18 @@ async function sendWhatsAppMessage(payload, executeAction, orgId) {
9927
9931
  }
9928
9932
  const result = await executeAction("SEND_WHATSAPP_MESSAGE", actionPayload);
9929
9933
  if (result && result.success === false) {
9934
+ console.error(
9935
+ "[whatsappApi] SEND_WHATSAPP_MESSAGE dispatch failed:",
9936
+ result.error,
9937
+ result.details || result
9938
+ );
9930
9939
  return {
9931
9940
  success: false,
9932
9941
  error: result.error || "\u05E9\u05DC\u05D9\u05D7\u05EA \u05D4\u05D5\u05D3\u05E2\u05EA WhatsApp \u05E0\u05DB\u05E9\u05DC\u05D4",
9933
9942
  data: result
9934
9943
  };
9935
9944
  }
9945
+ console.log("[whatsappApi] SEND_WHATSAPP_MESSAGE dispatch succeeded:", result);
9936
9946
  return {
9937
9947
  success: true,
9938
9948
  data: result
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@universe-platform/ui",
3
- "version": "0.1.0-beta.21",
3
+ "version": "0.1.0-beta.22",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",