@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.
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) =>
|
|
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;
|