dt-common-device 13.4.8 → 13.4.10

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.
@@ -53,10 +53,11 @@ let NotificationRepository = (() => {
53
53
  }
54
54
  const normalizedPayload = { ...payload };
55
55
  const response = await (0, http_utils_1.getNotificationServiceAxiosInstance)().post(`/connections/query`, normalizedPayload);
56
+ console.log("Connections api response:", response.data);
56
57
  if (!response.data?.success || !response.data?.data?.length) {
57
58
  return null;
58
59
  }
59
- return response.data.data;
60
+ return response.data.data[0];
60
61
  }
61
62
  async getNotificationTemplate(payload) {
62
63
  if (!payload.propertyId ||
@@ -66,7 +67,7 @@ let NotificationRepository = (() => {
66
67
  throw new Error("Property ID, Organization ID, Event Name, and Channel are required in payload");
67
68
  }
68
69
  const response = await (0, http_utils_1.getNotificationServiceAxiosInstance)().post(`/notification-templates/resolve`, payload);
69
- return response.data.data;
70
+ return response.data;
70
71
  }
71
72
  };
72
73
  __setFunctionName(_classThis, "NotificationRepository");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dt-common-device",
3
- "version": "13.4.8",
3
+ "version": "13.4.10",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [