@mx-cartographer/experiences 6.5.4 → 6.5.5

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/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [6.5.5] - 06-17-2025
2
+
3
+ - **ADDED** - API integration for user communication profile, aka `Delivery Methods`.
4
+
1
5
  ## [6.5.4] - 06-16-2025
2
6
 
3
7
  - **FIXED** - Issue preventing Recurring Transactions from being created
package/dist/index.es.js CHANGED
@@ -14471,6 +14471,7 @@ class Nr {
14471
14471
  verifyPhoneToken = async (n) => this.fetchInstance.post(k.PHONE_VERIFICATIONS + "/verify", { sms_verification_token: n }).then((i) => ({ verified: i.verified }));
14472
14472
  updateDevice = async (n) => this.fetchInstance.put(`${k.DEVICES}/${n.guid}`, n).then((i) => i.device);
14473
14473
  updateNotificationProfile = async (n) => this.fetchInstance.put(`${k.NOTIFICATION_PROFILES}/${n.guid}`, n).then((i) => i.notification_profile);
14474
+ updateUserCommunicationProfile = async (n) => this.fetchInstance.put(k.USER_COMMUNICATION_PROFILE, n).then((i) => i.user_communication_profile);
14474
14475
  }
14475
14476
  const Dr = "PARENT-ENTITY", zp = (e, n) => {
14476
14477
  switch (e) {
@@ -14673,11 +14674,12 @@ class jp {
14673
14674
  this.setAlert(this.copy.information_updated_error, "error");
14674
14675
  });
14675
14676
  };
14676
- updateUserCommunicationsProfile = async (n) => {
14677
+ updateUserCommunicationProfile = async (n) => {
14677
14678
  try {
14678
- this.globalStore.appDataStore.setUserCommunicationProfile(n);
14679
+ const i = await this.api.updateUserCommunicationProfile(n);
14680
+ this.globalStore.appDataStore.setUserCommunicationProfile(i);
14679
14681
  } catch (i) {
14680
- console.error(`Error updating user communications profile: ${i}`);
14682
+ console.error(`Error occurred while updating user communication profile: ${i}`);
14681
14683
  }
14682
14684
  };
14683
14685
  verifyPhoneToken = async (n) => {
@@ -18775,7 +18777,7 @@ const B1 = ({
18775
18777
  /* @__PURE__ */ t(oe, { children: i.map((r, s) => /* @__PURE__ */ t(z1, { rule: r }, s)) })
18776
18778
  ] });
18777
18779
  }), j1 = A(({ posthog: e }) => {
18778
- const { settings: n } = I(), { clientCommunicationProfile: i, updateUserCommunicationsProfile: a, userCommunicationsProfile: o } = Lt(), { user: r } = Mt(), s = async (c, d) => {
18780
+ const { settings: n } = I(), { clientCommunicationProfile: i, updateUserCommunicationProfile: a, userCommunicationsProfile: o } = Lt(), { user: r } = Mt(), s = async (c, d) => {
18779
18781
  const _ = {
18780
18782
  ...o,
18781
18783
  [c]: d