@mx-cartographer/experiences 5.0.12 → 5.0.13-alpha.al0

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.es.js CHANGED
@@ -13597,7 +13597,7 @@ class Zr {
13597
13597
  getDevices = async () => this.fetchInstance.get(m.DEVICES).then((t) => t.map((i) => i.device));
13598
13598
  getNotificationProfiles = async () => this.fetchInstance.get(m.NOTIFICATION_PROFILES).then((t) => t.notification_profiles);
13599
13599
  // verifications endpoints respond with HTTP status codes; return 204 on success
13600
- sendEmailVerification = async () => this.fetchInstance.post(m.EMAIL_VERIFICATIONS + "/create").then((t) => ({ success: t.status === 204 }));
13600
+ sendEmailVerification = async () => this.fetchInstance.post(m.EMAIL_VERIFICATIONS).then((t) => ({ success: t.status === 204 }));
13601
13601
  sendPhoneVerification = async () => this.fetchInstance.post(m.PHONE_VERIFICATIONS + "/deliver").then((t) => ({ success: t.status === 204 }));
13602
13602
  verifyPhoneToken = async (t) => this.fetchInstance.post(m.PHONE_VERIFICATIONS + "/verify", { sms_verification_token: t }).then((i) => ({ success: i.verified }));
13603
13603
  updateDevice = async (t) => this.fetchInstance.put(`${m.DEVICES}/${t.guid}`, t).then((i) => i.device);