@feedmepos/mf-connect 0.1.0-beta.70 → 0.1.0-beta.72
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-DEQUEGlq.js → Analytic-CeQ6Tgo4.js} +11 -11
- package/dist/{App-CcoU2SAx.js → App-B94F1eM6.js} +6 -10
- package/dist/{AuditLogs-CiB6u06w.js → AuditLogs-CduUWfDd.js} +8 -8
- package/dist/{Bin-C2_1m5RT.js → Bin-muOo03RK.js} +8 -8
- package/dist/{Broadcast-TotIXDuJ.js → Broadcast-CSco_Ev_.js} +9 -9
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CixQu3Pr.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Cfwv0VSC.js} +6 -6
- package/dist/{Card-Ce-_xMgS.js → Card-VojKGWaD.js} +15 -15
- package/dist/{Collections-DKva6Doi.js → Collections-B8dsbCQ6.js} +5 -5
- package/dist/{Credit-BVUxIJ6C.js → Credit-Ck_IuJMF.js} +9 -9
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-BKEumoan.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-CkEPB1Ri.js} +28 -28
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-ah4bz-qR.js → EffectSheet.vue_vue_type_style_index_0_lang-CA1awHcc.js} +6 -6
- package/dist/{Experience-DV3384o0.js → Experience-CP6Lmado.js} +9 -9
- package/dist/{Game-DY83ti52.js → Game-BfkyvrxR.js} +10 -10
- package/dist/{Index-DEIaZ-2H.js → Index-CsjZUBT3.js} +10 -10
- package/dist/{Marketing-C2RwIlrg.js → Marketing-D-P76e73.js} +6 -6
- package/dist/Member-DplZWFjl.js +348 -0
- package/dist/{MemberList-DSMI6t_D.js → MemberList-rmdZQk6G.js} +24 -24
- package/dist/{MemberTransactions-wXUlbbRq.js → MemberTransactions-BLANcbUF.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DYS0klKm.js → MessageInput.vue_vue_type_script_setup_true_lang-Cfks94UO.js} +17 -20
- package/dist/{Mission-P_KLDEpg.js → Mission-n-ctxUhM.js} +10 -10
- package/dist/{Overview-8vc0f1D7.js → Overview-DZlApGRk.js} +17 -17
- package/dist/{Point-B4Y0Pq60.js → Point-COtP0jzH.js} +9 -9
- package/dist/Promotion-DxOTF9a5.js +289 -0
- package/dist/{Queue-BlPA7PNH.js → Queue-CEIn9dZ3.js} +73 -68
- package/dist/{Record-Cl1qXSSk.js → Record-3ZeBNdJL.js} +7 -7
- package/dist/{Reward-jy6-W1Eh.js → Reward-QiI0aowk.js} +15 -15
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-d5JNNNHf.js → RewardGroup.vue_vue_type_script_setup_true_lang-Cz0tKJVt.js} +11 -11
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CrfQAYP9.js +1727 -0
- package/dist/{Segment-B36Nrvxs.js → Segment-Df47WLC6.js} +14 -14
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-jN0xUFNR.js → SelectItems.vue_vue_type_script_setup_true_lang-C39_J7OP.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-BLFTNooB.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-CCketLSU.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-H_Sehhgf.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DC1qZokI.js} +3 -3
- package/dist/{Setting-AgQf2X4W.js → Setting-BUQfywpm.js} +10 -10
- package/dist/{Store-D3Mm0pan.js → Store-STKhCXHd.js} +18 -18
- package/dist/{StoreRewards-L0VLWz8l.js → StoreRewards-BbyKdrXv.js} +13 -13
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-Zl_cXXSD.js → StoreTransactions.vue_vue_type_script_setup_true_lang-BWilzG-3.js} +37 -37
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-b4mfueTj.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Cau0aOLA.js} +1 -1
- package/dist/{Tier-DQq-375x.js → Tier-yaEA-a64.js} +19 -19
- package/dist/{Title-OJxuBvaa.js → Title-BZvC2-Jh.js} +19 -19
- package/dist/{Transaction-vgsYRfD7.js → Transaction-D8Q5tgJB.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-Cwi0mvC3.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BhhdZbR2.js} +6 -6
- package/dist/{Voucher-BFwLaoxe.js → Voucher-troykwYN.js} +12 -12
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DNUBaNtJ.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CA-pu2mD.js} +10 -10
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-ms40eptZ.js → ZodTextField.vue_vue_type_script_setup_true_lang-DGgUG7Qj.js} +1 -1
- package/dist/{app-D7C3Fxfi.js → app-B89lfub2.js} +36 -34
- package/dist/{app-BQFTJ_hE.js → app-CPknSRjl.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/business-hK-Tmb19.js +79 -0
- package/dist/{campaign-UQ8kMVeC.js → campaign-Bz2phAKq.js} +9 -9
- package/dist/{campaign-BkxTDfsK.js → campaign-DxBhaMAH.js} +2 -2
- package/dist/{campaign.enum-BdT-e9h9.js → campaign.enum-CaW4wKab.js} +1 -1
- package/dist/campaign.fn-VlvF65nU.js +758 -0
- package/dist/{collectible.enum-C8kd17Tz.js → collectible.enum-CL4zeuNW.js} +1 -1
- package/dist/{collection.fn-BIw1Y_tv.js → collection.fn-DonS6vla.js} +2 -2
- package/dist/{dto-CwzAhB8x.js → dto-Do28C6Us.js} +4 -4
- package/dist/{effect-CJcvLlKG.js → effect-BNoEad9s.js} +1 -1
- package/dist/{email-addresses-BCJTQPT0.js → email-addresses-DVlPQOMF.js} +1 -1
- package/dist/{export-URRwle1z.js → export-B2HL-u8e.js} +3 -3
- package/dist/{helper-DccnE6zn.js → helper-B-GwBl7o.js} +1 -1
- package/dist/{index-ghSGvG-m.js → index-B1zeyOTK.js} +6 -6
- package/dist/{index-D4MX9e5q.js → index-BgaXtrUK.js} +1 -1
- package/dist/{index-CaxFS90M.js → index-C00luv9F.js} +1 -1
- package/dist/{index-DrE9VkxR.js → index-CJfbls_c.js} +1 -1
- package/dist/{index-FcxOGFKj.js → index-CyLhq-Cu.js} +1 -1
- package/dist/{index-C3lpXz_P.js → index-DDyqoK-5.js} +1 -1
- package/dist/{index-BiIZ7X6d.js → index-DLBH6Pz7.js} +1264 -1264
- package/dist/{index-CFA3EqId.js → index-DdMBH5E3.js} +1 -1
- package/dist/{index-EOPRlB9V.js → index-DoLnZ0VU.js} +3 -3
- package/dist/{index-CPRN3irj.js → index-DrNO2330.js} +4 -4
- package/dist/{index-BsRJ4kVb.js → index-DziwUgQ3.js} +1 -1
- package/dist/{index-OScGm4mF.js → index-zetVbSGH.js} +2 -2
- package/dist/{index.esm2017-CE1CQHrP.js → index.esm2017-DUs_L3s2.js} +124 -124
- package/dist/{loading-B8zghYbj.js → loading-BfH5PK5q.js} +1 -1
- package/dist/{membership-DoJMF2T6.js → membership-BSgYE5mw.js} +3 -3
- package/dist/{money-CTR0rXZw.js → money-CXqLCoho.js} +1 -1
- package/dist/{number-Bhgz9eFP.js → number-CGz3yWyy.js} +1 -1
- package/dist/objectid-CH4l4E6N.js +145 -0
- package/dist/{plugins-B5mQ7CHT.js → plugins-0WrJ_ypd.js} +1189 -1189
- package/dist/{reward-DicsEEHe.js → reward-DdFCP398.js} +1 -1
- package/dist/{rule-s8siRar1.js → rule-Fkz4cRmK.js} +3 -3
- package/dist/{rule-builder-BWb4JTrd.js → rule-builder-Cq_MnX2R.js} +1 -1
- package/dist/{template-Qb5ozfLa.js → template-DzWwfIhG.js} +4 -4
- package/dist/{trigger-Bsb3Kj35.js → trigger-z_YD5Ld4.js} +4 -4
- package/dist/{user-DJ8aHRaM.js → user-qQossvab.js} +1 -1
- package/dist/vue-i18n-CeeBM23W.js +2365 -0
- package/dist/{xlsx-2QxyDFwt.js → xlsx-BaKm4Is1.js} +1 -1
- package/package.json +1 -1
- package/dist/Member-D4fc-wzd.js +0 -333
- package/dist/Promotion-C1CbesgZ.js +0 -255
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DYul_Nu8.js +0 -1640
- package/dist/business-vzpvmTdG.js +0 -78
- package/dist/campaign.fn-lc4ZhFCU.js +0 -758
- package/dist/objectid-DdVJrRBw.js +0 -145
- package/dist/vue-i18n-BG2U7GtN.js +0 -2365
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { ref as i, computed as f } from "vue";
|
|
2
|
-
import { defineStore as g } from "pinia";
|
|
3
|
-
import { useCoreStore as w } from "@feedmepos/mf-common";
|
|
4
|
-
import { a as y, g as r, A as I, S as b, b as S } from "./index-BiIZ7X6d.js";
|
|
5
|
-
const D = {
|
|
6
|
-
async readSettings(e) {
|
|
7
|
-
try {
|
|
8
|
-
return r(await y(`marketing-v2/${e}/setting`).get(""));
|
|
9
|
-
} catch (n) {
|
|
10
|
-
if (console.error(JSON.stringify(n)), n instanceof I)
|
|
11
|
-
return {
|
|
12
|
-
_id: e,
|
|
13
|
-
business: e,
|
|
14
|
-
apiVersion: "v1"
|
|
15
|
-
};
|
|
16
|
-
throw n;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}, o = () => {
|
|
20
|
-
const e = b.getBusinessId();
|
|
21
|
-
if (!e) throw new Error("Invalid business ID");
|
|
22
|
-
return S(`businesses/${e}/location`, {
|
|
23
|
-
noIdRequired: !0
|
|
24
|
-
});
|
|
25
|
-
}, u = {
|
|
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 = g("mf-connect-business", () => {
|
|
39
|
-
const e = i("v2"), n = i(!1), a = i([]), c = i([]);
|
|
40
|
-
async function l() {
|
|
41
|
-
const t = w().currentBusiness.value, s = await D.readSettings(t == null ? void 0 : t.id);
|
|
42
|
-
return n.value = s && "business" in s && s.premium == !0, e.value = (s == null ? void 0 : s.apiVersion) || "v1", n.value;
|
|
43
|
-
}
|
|
44
|
-
async function v() {
|
|
45
|
-
return a.value = await u.read(), a.value;
|
|
46
|
-
}
|
|
47
|
-
async function d() {
|
|
48
|
-
return c.value = await u.readDevices(), c.value;
|
|
49
|
-
}
|
|
50
|
-
function p(t) {
|
|
51
|
-
return a.value.find((s) => s._id === t);
|
|
52
|
-
}
|
|
53
|
-
const m = f(() => [
|
|
54
|
-
{ label: "All", value: null },
|
|
55
|
-
...a.value.map((t) => ({
|
|
56
|
-
label: t.name,
|
|
57
|
-
value: t._id
|
|
58
|
-
}))
|
|
59
|
-
]);
|
|
60
|
-
return {
|
|
61
|
-
// state
|
|
62
|
-
version: e,
|
|
63
|
-
isPremium: n,
|
|
64
|
-
locations: a,
|
|
65
|
-
locationDevices: c,
|
|
66
|
-
// actions
|
|
67
|
-
readPremium: l,
|
|
68
|
-
readLocations: v,
|
|
69
|
-
readLocationDevices: d,
|
|
70
|
-
locationById: p,
|
|
71
|
-
// getters
|
|
72
|
-
locationItems: m
|
|
73
|
-
};
|
|
74
|
-
});
|
|
75
|
-
export {
|
|
76
|
-
u as l,
|
|
77
|
-
h as u
|
|
78
|
-
};
|