@feedmepos/mf-connect 0.1.36-prod → 0.1.38-beta.1
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/Analytic-O-qZWrFp.js +761 -0
- package/dist/{App-JwvQzmaf.js → App-BWZ2EE71.js} +364 -352
- package/dist/AuditLogs-DlmcFEta.js +1887 -0
- package/dist/{Bin-Boq091DE.js → Bin-C-Ha-4yF.js} +8 -8
- package/dist/{Broadcast-D7BIjPzg.js → Broadcast-Bo3QS8lS.js} +27 -25
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-ZFe69JWe.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-4vUMzH-l.js} +18 -18
- package/dist/{Card-C7v8otBk.js → Card-Bs1TDE0e.js} +159 -159
- package/dist/{Collections-C_pyDZJp.js → Collections-Dy5RN7Js.js} +103 -91
- package/dist/{Credit-B6I7vIo2.js → Credit-Bqc4dw1s.js} +74 -74
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js +58 -0
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-DHQBxqsk.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-D6AmN3o3.js} +490 -488
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-cqK2WTuO.js → EffectSheet.vue_vue_type_style_index_0_lang-BzwADnKp.js} +91 -89
- package/dist/{Experience-RU6iI7eH.js → Experience-C2e2T7B-.js} +42 -42
- package/dist/{FilterChip.vue_vue_type_script_setup_true_lang-BrPLkFX8.js → FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js} +2 -6
- package/dist/{Game-B9Ojuamc.js → Game-C86eEhcx.js} +32 -32
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js +144 -0
- package/dist/{Index-Dv-YN9YC.js → Index-BRGweFco.js} +10 -10
- package/dist/Marketing-CnnrnXbS.js +20073 -0
- package/dist/{Member-BX81V3ON.js → Member-B3o0Zhcw.js} +76 -76
- package/dist/MemberList-BpE1IjED.js +1606 -0
- package/dist/MemberOverview-wL_ailso.js +58 -0
- package/dist/{MemberTransactions-C0FinB5E.js → MemberTransactions-C4hao-d9.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DZS17c8D.js → MessageInput.vue_vue_type_script_setup_true_lang-D9zfmqLs.js} +36 -36
- package/dist/{Mission-BV76Qq3Y.js → Mission-BURXfzjd.js} +21 -21
- package/dist/{Overview-CMK4VRZl.js → Overview-D_hrrM4O.js} +335 -335
- package/dist/{Point-CQWKh1jv.js → Point-CJXkJY5Q.js} +43 -41
- package/dist/Promotion-CunJrh42.js +289 -0
- package/dist/{Queue-CFNfJSux.js → Queue-v5Itg9J4.js} +52 -52
- package/dist/{Record-7_ssnQnB.js → Record-DJe4tg9R.js} +9 -9
- package/dist/{Reward-DOe1Tn2f.js → Reward-Y9aHpny5.js} +173 -173
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BsgR-dCL.js → RewardGroup.vue_vue_type_script_setup_true_lang-1KAjCblO.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-BPw5L06B.js → RuleGroup.vue_vue_type_script_setup_true_lang-Cr99ikbK.js} +635 -548
- package/dist/Segment-DVT8uDn8.js +882 -0
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DPsLdEU8.js → SelectItems.vue_vue_type_script_setup_true_lang-BhJ-oVMb.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-BAJLRxOM.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-b5bjfBvc.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-DUUzFkIc.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DoKAgSLE.js} +3 -3
- package/dist/{Setting-Bojfmtwf.js → Setting-BU5778gG.js} +432 -432
- package/dist/{Store-dfiUtq-f.js → Store-IWg0POAU.js} +211 -211
- package/dist/StoreRewards-CIjHcVoh.js +423 -0
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Cx05-OPF.js +1029 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-D8ey57Te.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BcOvr526.js} +1 -1
- package/dist/{Tier-BIDShXJ6.js → Tier-iN30KD7g.js} +107 -107
- package/dist/{Title-CDdkVwEu.js → Title-Duh_Srek.js} +133 -131
- package/dist/{Transaction-lAUnd1c_.js → Transaction-DLBA7Svl.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BwaD8Nwy.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DLD5d43d.js} +6 -6
- package/dist/{Voucher-BARDbixZ.js → Voucher-cTvlMN0Y.js} +153 -123
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DkjojUvD.js +419 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CIk3GKLH.js → ZodTextField.vue_vue_type_script_setup_true_lang-C5S-bi5J.js} +1 -1
- package/dist/{app-Cq8zUKBx.js → app-A3oEKLq5.js} +1 -1
- package/dist/{app-KtD-iU16.js → app-De-yQ1CJ.js} +164 -125
- package/dist/app.js +4 -3
- package/dist/business-B2JBpm4y.js +79 -0
- package/dist/{campaign-NqTts9bj.js → campaign-Bhur0NJx.js} +9 -9
- package/dist/{campaign-DwArKZ1r.js → campaign-vkzui6F2.js} +5 -3
- package/dist/{campaign.enum-DQayyk1f.js → campaign.enum-DCYkKGhd.js} +1 -1
- package/dist/{campaign.fn-6uf_Z5m1.js → campaign.fn--affTEi5.js} +161 -161
- package/dist/{collectible.enum-CgjtJh8V.js → collectible.enum-CLBCnfev.js} +1 -1
- package/dist/{collection.fn-DuqcY399.js → collection.fn-bA8q0KYy.js} +2 -2
- package/dist/{dto-CQRn2lAW.js → dto-RCcWeYE0.js} +4 -4
- package/dist/{effect-B-sUUnjd.js → effect-D7qRfPe_.js} +1 -1
- package/dist/{email-addresses-D-kPsNBn.js → email-addresses-a8PqViID.js} +1 -1
- package/dist/{export-B28oHptg.js → export-BneqNRn4.js} +3 -3
- package/dist/{helper-DuBp_oW-.js → helper-DfvvxOyO.js} +1 -1
- package/dist/{index-CCNfzZ5t.js → index-2LpkG8Ye.js} +1 -1
- package/dist/{index-C2wsUy05.js → index-4kMeSNTr.js} +11447 -10969
- package/dist/{index-BgdUU6Za.js → index-B0T9GDIZ.js} +1 -1
- package/dist/{index-CczG_ilB.js → index-BWTvsoH0.js} +1 -1
- package/dist/index-CMBPIb8x.js +32260 -0
- package/dist/{index-DF4V4vur.js → index-CTKMdxSm.js} +1 -1
- package/dist/index-CVAWGMus.js +56 -0
- package/dist/index-CbsJ6vMJ.js +31 -0
- package/dist/{index-CSWnS__O.js → index-CrFUhsZO.js} +1 -1
- package/dist/index-CsaQJMAR.js +66 -0
- package/dist/{index-CmOaBe_x.js → index-CtDqXnOp.js} +535 -460
- package/dist/{index-CECYN1oL.js → index-D0GnMoag.js} +181 -79
- package/dist/{index-BCslSeGm.js → index-DMrIQqFt.js} +1 -1
- package/dist/{index-BZYbNzed.js → index-DeXvASjP.js} +3 -3
- package/dist/{index-CUdis4Jl.js → index-y-7yUm2e.js} +10 -9
- package/dist/{index.esm2017-CVwbgLS0.js → index.esm2017-JtyypweZ.js} +127 -127
- package/dist/{loading-C-BSh5_w.js → loading-a-FqrwqI.js} +1 -1
- package/dist/{membership-BPpTsVq5.js → membership-CGVtil5J.js} +3 -3
- package/dist/{money-BSxQcP_f.js → money-CTc1l_Cq.js} +1 -1
- package/dist/{number-p7RPdTQ7.js → number-W3R-0nYP.js} +1 -1
- package/dist/objectid-BU0Y8iAN.js +145 -0
- package/dist/{plugins-5mIceCPA.js → plugins-D2sSgTSl.js} +2 -2
- package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
- package/dist/{reward-CaZY5kqg.js → reward-atP8vnNn.js} +1 -1
- package/dist/{rule-builder-yn_upY7a.js → rule-builder-BB29ZJ_C.js} +17 -17
- package/dist/{rule-DB6XK-iD.js → rule-eA5IvnjB.js} +3 -3
- package/dist/style.css +1 -1
- package/dist/{template-DbmV0nWD.js → template-DhBeDaAm.js} +64 -64
- package/dist/{trigger-DPl3HG2o.js → trigger-Bq_pZj1J.js} +7 -7
- package/dist/{usePagination-JoYaROkV.js → usePagination-BeF5K3M7.js} +85 -85
- package/dist/{user-DzwHXhvX.js → user-B-bhVFIG.js} +1 -1
- package/dist/{vue-i18n-BnN9jlFK.js → vue-i18n-D-h8VDSx.js} +343 -343
- package/dist/{xlsx-CrsYUgcS.js → xlsx-DsByAcZl.js} +226 -226
- package/package.json +5 -3
- package/dist/Analytic-C1LCniPD.js +0 -427
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js +0 -144
- package/dist/Marketing-CFgCJV0g.js +0 -317
- package/dist/MemberList-BjX8ND1p.js +0 -1606
- package/dist/MemberOverview-C2n9oJZh.js +0 -58
- package/dist/Promotion-CnFaEvhL.js +0 -255
- package/dist/Segment-DUP0JWK5.js +0 -882
- package/dist/StoreRewards-DJj-oM2n.js +0 -423
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-oRUpDbZ_.js +0 -995
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-bDQs5ACo.js +0 -419
- package/dist/business-CFMUx5qO.js +0 -78
- package/dist/index-CuJ5OZqA.js +0 -29566
- package/dist/index-CuvNtC_M.js +0 -61
- package/dist/index-Dbd4WA4r.js +0 -61
- package/dist/index-mtAI1Gyn.js +0 -44
- package/dist/objectid-DkD1hn1F.js +0 -145
package/dist/app.js
CHANGED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { ref as i, computed as u } from "vue";
|
|
2
|
+
import { defineStore as w } from "pinia";
|
|
3
|
+
import { useCoreStore as y } from "@feedmepos/mf-common";
|
|
4
|
+
import { a as I, g as r, A as b, S, b as D } from "./index-4kMeSNTr.js";
|
|
5
|
+
const A = {
|
|
6
|
+
async readSettings(e) {
|
|
7
|
+
try {
|
|
8
|
+
return r(await I(`marketing-v2/${e}/setting`).get(""));
|
|
9
|
+
} catch (t) {
|
|
10
|
+
if (console.error(JSON.stringify(t)), t instanceof b)
|
|
11
|
+
return {
|
|
12
|
+
_id: e,
|
|
13
|
+
business: e,
|
|
14
|
+
apiVersion: "v1"
|
|
15
|
+
};
|
|
16
|
+
throw t;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}, o = () => {
|
|
20
|
+
const e = S.getBusinessId();
|
|
21
|
+
if (!e) throw new Error("Invalid business ID");
|
|
22
|
+
return D(`businesses/${e}/location`, {
|
|
23
|
+
noIdRequired: !0
|
|
24
|
+
});
|
|
25
|
+
}, l = {
|
|
26
|
+
async read() {
|
|
27
|
+
return r(await o().get(""));
|
|
28
|
+
},
|
|
29
|
+
async readDevices() {
|
|
30
|
+
return r(await o().get("devices"));
|
|
31
|
+
},
|
|
32
|
+
async unregisterDevice(e) {
|
|
33
|
+
await r(await o().delete(`devices/${e}`));
|
|
34
|
+
},
|
|
35
|
+
async getOtp(e) {
|
|
36
|
+
return r(await o().post(`${e}/otp`));
|
|
37
|
+
}
|
|
38
|
+
}, h = w("mf-connect-business", () => {
|
|
39
|
+
const e = i("v2"), t = i(!1), a = i([]), c = i([]);
|
|
40
|
+
async function v() {
|
|
41
|
+
const n = y().currentBusiness.value, s = await A.readSettings(n == null ? void 0 : n.id);
|
|
42
|
+
return t.value = s && "business" in s && s.premium == !0 || !1, e.value = (s == null ? void 0 : s.apiVersion) || "v1", t.value;
|
|
43
|
+
}
|
|
44
|
+
async function p() {
|
|
45
|
+
return a.value = await l.read(), a.value;
|
|
46
|
+
}
|
|
47
|
+
async function d() {
|
|
48
|
+
return c.value = await l.readDevices(), c.value;
|
|
49
|
+
}
|
|
50
|
+
function m(n) {
|
|
51
|
+
return a.value.find((s) => s._id === n);
|
|
52
|
+
}
|
|
53
|
+
const f = u(() => [
|
|
54
|
+
{ label: "All", value: null },
|
|
55
|
+
...a.value.map((n) => ({
|
|
56
|
+
label: n.name,
|
|
57
|
+
value: n._id
|
|
58
|
+
}))
|
|
59
|
+
]), g = u(() => a.value.map((n) => ({ label: n.name, value: n._id })));
|
|
60
|
+
return {
|
|
61
|
+
// state
|
|
62
|
+
version: e,
|
|
63
|
+
isPremium: t,
|
|
64
|
+
locations: a,
|
|
65
|
+
locationDevices: c,
|
|
66
|
+
// actions
|
|
67
|
+
readPremium: v,
|
|
68
|
+
readLocations: p,
|
|
69
|
+
readLocationDevices: d,
|
|
70
|
+
locationById: m,
|
|
71
|
+
// getters
|
|
72
|
+
locationItems: f,
|
|
73
|
+
locationOptions: g
|
|
74
|
+
};
|
|
75
|
+
});
|
|
76
|
+
export {
|
|
77
|
+
l,
|
|
78
|
+
h as u
|
|
79
|
+
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { h as F } from "./moment-BWErdI6_.js";
|
|
2
|
-
import "./index-
|
|
3
|
-
import { e as G } from "./effect-
|
|
2
|
+
import "./index-CtDqXnOp.js";
|
|
3
|
+
import { e as G } from "./effect-D7qRfPe_.js";
|
|
4
4
|
import { components as ie } from "@feedmepos/ui-library";
|
|
5
|
-
import { i as Ne } from "./rule-builder-
|
|
6
|
-
import { c as Ee } from "./rule-
|
|
7
|
-
import { u as Ve } from "./business-
|
|
8
|
-
import { C as j } from "./campaign.fn
|
|
9
|
-
import { c as ce } from "./plugins-
|
|
10
|
-
import { e as je, Z as S, a as fe, i as Re, z as Fe } from "./app-
|
|
5
|
+
import { i as Ne } from "./rule-builder-BB29ZJ_C.js";
|
|
6
|
+
import { c as Ee } from "./rule-eA5IvnjB.js";
|
|
7
|
+
import { u as Ve } from "./business-B2JBpm4y.js";
|
|
8
|
+
import { C as j } from "./campaign.fn--affTEi5.js";
|
|
9
|
+
import { c as ce } from "./plugins-D2sSgTSl.js";
|
|
10
|
+
import { e as je, Z as S, a as fe, i as Re, z as Fe } from "./app-De-yQ1CJ.js";
|
|
11
11
|
import { detectLocale as Ie, createFeedMeI18n as De } from "@feedmepos/mf-common";
|
|
12
12
|
import { h as B } from "vue";
|
|
13
|
-
import { F as R } from "./campaign.enum-
|
|
13
|
+
import { F as R } from "./campaign.enum-DCYkKGhd.js";
|
|
14
14
|
const d = (a) => typeof a == "string", _ = () => {
|
|
15
15
|
let a, e;
|
|
16
16
|
const t = new Promise((s, i) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineStore as d } from "pinia";
|
|
2
2
|
import { reactive as f, onMounted as b, ref as a } from "vue";
|
|
3
|
-
import { c } from "./index-
|
|
4
|
-
import { g as i, S as I, b as g } from "./index-
|
|
3
|
+
import { c } from "./index-BWTvsoH0.js";
|
|
4
|
+
import { g as i, S as I, b as g } from "./index-4kMeSNTr.js";
|
|
5
5
|
const p = () => {
|
|
6
6
|
const e = I.getBusinessId();
|
|
7
7
|
if (!e) throw new Error("Invalid business ID");
|
|
@@ -42,7 +42,9 @@ const p = () => {
|
|
|
42
42
|
});
|
|
43
43
|
Object.keys(e).forEach((s) => {
|
|
44
44
|
e[s] = [];
|
|
45
|
-
}), e.all = o.resources.filter(
|
|
45
|
+
}), e.all = o.resources.filter(
|
|
46
|
+
(s) => s.type !== "MEMBERSHIP"
|
|
47
|
+
);
|
|
46
48
|
for (const s of o.resources)
|
|
47
49
|
switch (s.type) {
|
|
48
50
|
case "PROMOTION":
|