@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
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
|
-
|
|
14677
|
+
updateUserCommunicationProfile = async (n) => {
|
|
14677
14678
|
try {
|
|
14678
|
-
this.
|
|
14679
|
+
const i = await this.api.updateUserCommunicationProfile(n);
|
|
14680
|
+
this.globalStore.appDataStore.setUserCommunicationProfile(i);
|
|
14679
14681
|
} catch (i) {
|
|
14680
|
-
console.error(`Error updating user
|
|
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,
|
|
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
|