@mx-cartographer/experiences 5.2.7 → 5.2.8-alpha.JB

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.
@@ -21,6 +21,7 @@ export declare const ApiEndpoints: {
21
21
  MERCHANTS: string;
22
22
  MONTHLY_CASH_FLOW_PROFILE: string;
23
23
  MONTHLY_CATEGORY_TOTALS: string;
24
+ OFFERS: string;
24
25
  NOTIFICATION_PROFILES: string;
25
26
  NOTIFICATIONS: string;
26
27
  PHONE_VERIFICATIONS: string;
package/dist/index.es.js CHANGED
@@ -202,6 +202,7 @@ const qs = async (A, t, i = "1.0.0", n = "Experiences") => {
202
202
  MERCHANTS: "merchants",
203
203
  MONTHLY_CASH_FLOW_PROFILE: "monthly_cash_flow_profile",
204
204
  MONTHLY_CATEGORY_TOTALS: "monthly_category_totals",
205
+ OFFERS: "offers",
205
206
  NOTIFICATION_PROFILES: "notification_profiles",
206
207
  NOTIFICATIONS: "notifications",
207
208
  PHONE_VERIFICATIONS: "sms_verification",
@@ -998,7 +999,10 @@ class Ot {
998
999
  let i = "has_associated_transaction_guid=true";
999
1000
  return i += t ? `&from_date=${t}` : "", this.fetchInstance.get(`${L.BEATS}?${i}`).then((n) => n.beats);
1000
1001
  };
1001
- updateBeat = async (t) => this.fetchInstance.put(`${L.BEATS}/${t.guid}`, t).then((i) => i.beat);
1002
+ updateBeat = async (t) => {
1003
+ const i = t.guid.startsWith("OFR") ? L.BEATS : L.OFFERS;
1004
+ return this.fetchInstance.put(`${i}/${t.guid}`, t).then((n) => n.beat);
1005
+ };
1002
1006
  }
1003
1007
  class ui {
1004
1008
  fetchInstance;