@feedmepos/mf-connect 0.1.99-prod → 0.1.100-prod
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-CmlJa1WX.js → Analytic-XINt9B5E.js} +68 -67
- package/dist/{App-D0thRELq.js → App-D9rsw0Yw.js} +7 -7
- package/dist/{Bin-DnkPcZdC.js → Bin-Bn4jz9a5.js} +8 -8
- package/dist/{Broadcast-o6nSQOsx.js → Broadcast-C2lNY8LH.js} +37 -34
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BPGzh4u8.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B92vx_Vk.js} +6 -6
- package/dist/{Card-zjezSaRB.js → Card-VjSIVoYP.js} +18 -18
- package/dist/{Collections-48W_jFFS.js → Collections-XUNGy8IL.js} +16 -15
- package/dist/{Credit-CYaCjNVK.js → Credit-Di0w45Hp.js} +11 -10
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-D3SnYlQ0.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-C32lZqSA.js} +32 -32
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CbpKQj-r.js → EffectSheet.vue_vue_type_style_index_0_lang-D3DrzR4N.js} +6 -6
- package/dist/{Experience-HmfLlywu.js → Experience-BJSRITSv.js} +30 -29
- package/dist/{FileSaver.min-cDraiw9g.js → FileSaver.min-B_Ymi-NF.js} +1 -1
- package/dist/{Game-DHLdDQRi.js → Game-DMM7drh2.js} +12 -11
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-DZrmFruC.js → ImageInput.vue_vue_type_script_setup_true_lang-Co4kHzny.js} +1 -1
- package/dist/{Index-CMm5L1Ph.js → Index-CuNMEC3w.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-B6tGeGGC.js → LocationPicker.vue_vue_type_script_setup_true_lang-CerTVWce.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CV4V9qlc.js → LottieAnimation.vue_vue_type_script_setup_true_lang-XSvUUehA.js} +1 -1
- package/dist/{MainLayout-iru8naVF.js → MainLayout-D346WHmU.js} +1 -1
- package/dist/{Marketing-AP8z-pA0.js → Marketing-BwNU3ZkH.js} +4 -4
- package/dist/{MarketingMaterialEdit-HYTdiTvs.js → MarketingMaterialEdit-BXGBbKBt.js} +6 -6
- package/dist/{Member-N_ks2GiW.js → Member-B4He21B9.js} +11 -11
- package/dist/{MemberList-Cj8EfN0q.js → MemberList-BsrjrcEu.js} +26 -26
- package/dist/{MemberTransactions-DUj4Fq6M.js → MemberTransactions-s4DsYK7K.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-ZD6_8BzX.js → MessageInput.vue_vue_type_script_setup_true_lang-BAKTr2Pq.js} +5434 -5279
- package/dist/{Mission-DfZ0brqC.js → Mission-C3Hkny_r.js} +42 -41
- package/dist/{Overview-kB_HApIc.js → Overview-BRf4GaDa.js} +3 -3
- package/dist/{Overview-BnFPQbSg.js → Overview-rjoe2HYr.js} +18 -18
- package/dist/{Point-PsWJEEsn.js → Point-JJ2fRCIx.js} +25 -24
- package/dist/{Promotion-BsNT1kOG.js → Promotion-fbSo4NJd.js} +12 -11
- package/dist/{Queue-Cgw3PgEi.js → Queue-DE2G8iin.js} +16 -16
- package/dist/{Record-DwzoIz3R.js → Record-C-8Q6nj7.js} +9 -9
- package/dist/{Review-kF2wLu5o.js → Review-DH2P029F.js} +2 -2
- package/dist/{ReviewFacebookCallback-B6RjqR5T.js → ReviewFacebookCallback-65plwW_E.js} +5 -5
- package/dist/{ReviewGoogleCallback-DjLK1b4-.js → ReviewGoogleCallback-BUrwTtDU.js} +5 -5
- package/dist/{Reward-C8O5U2NU.js → Reward-CuxO88gi.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BqKABBF1.js → RewardGroup.vue_vue_type_script_setup_true_lang-BWxRzc64.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DvNyurCW.js → RuleGroup.vue_vue_type_script_setup_true_lang-C9GeT2EK.js} +14 -14
- package/dist/{Segment-BtmeNQnL.js → Segment-DcmanYob.js} +24 -24
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-P4wy1bqG.js → SelectItems.vue_vue_type_script_setup_true_lang-CEuhMVfD.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DQ93AOeI.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-CuxO3_3_.js} +12 -12
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-B3P7Ob40.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DScmPfA-.js} +4 -4
- package/dist/{Setting-D1SQ6TKF.js → Setting-CFTp0GmM.js} +14 -14
- package/dist/{SettingAdvertisements-pUTX9uu3.js → SettingAdvertisements-8xmkoUKa.js} +12 -12
- package/dist/{Settings-Bbd3cMNH.js → Settings-gILVyEj2.js} +5 -5
- package/dist/{Store-Dgc-J8Q7.js → Store-DQVq0Xi6.js} +21 -21
- package/dist/{StoreRewards-CJ090vEj.js → StoreRewards-DmSlqv8a.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-B35vDFFq.js → StoreTransactions.vue_vue_type_script_setup_true_lang-CyHk--_H.js} +20 -20
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-5Aazsvfa.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-udy1jEkk.js} +2 -2
- package/dist/{Tier-CKGyFDiY.js → Tier-CTY4RIwU.js} +100 -99
- package/dist/{Title-DXRex7t9.js → Title-5HaDc6DJ.js} +30 -29
- package/dist/{Transaction-B1eC-Gln.js → Transaction-Bkx0TKcE.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-B2GABNUx.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CxlCuX9E.js} +6 -6
- package/dist/{Voucher-Omh_kYVH.js → Voucher-YC-bec2o.js} +15 -14
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DD2WD_Vt.js → VoucherEditor.vue_vue_type_script_setup_true_lang-2M6Vq8n7.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CAtzo8zL.js → ZodTextField.vue_vue_type_script_setup_true_lang-DFtesZs1.js} +2 -2
- package/dist/{app-D8i8XAyR.js → app-D0hzDd4e.js} +90 -50
- package/dist/app.js +1 -1
- package/dist/{business-6gZtKQ8L.js → business-BnGi3KpM.js} +1 -1
- package/dist/campaign-Bxl_qdCX.js +94 -0
- package/dist/{campaign-DIgbywUy.js → campaign-p_ahNQqG.js} +8 -8
- package/dist/{campaign.enum-CSlbGhc-.js → campaign.enum-6c5-J08o.js} +1 -1
- package/dist/{campaign.fn-BvxZt-0r.js → campaign.fn-CFny8OoE.js} +174 -174
- package/dist/{collectible.enum-20LKRFir.js → collectible.enum-DzAp8NtK.js} +1 -1
- package/dist/{collection.fn-03oGQuF_.js → collection.fn-DfJWUHyr.js} +2 -2
- package/dist/{dto-C5_Te4gk.js → dto-CEtiwWkS.js} +4 -4
- package/dist/{effect-CkurpNMu.js → effect-D8goCe5E.js} +1 -1
- package/dist/{email-addresses-CR8pgurp.js → email-addresses-D06zPBLT.js} +2 -2
- package/dist/{export-CfDeISbW.js → export-HaMl_Azr.js} +3 -3
- package/dist/{helper-BQYvN6FL.js → helper-CCtbisll.js} +1 -1
- package/dist/{index-ARC-NYFZ.js → index-BO1Znykz.js} +1 -1
- package/dist/{index-Dcxjgr6s.js → index-BOdZ1yDb.js} +1 -1
- package/dist/{index-6FvsyekG.js → index-BrrdqEYe.js} +1 -1
- package/dist/{index-CJUzQG6t.js → index-CXhfmTIq.js} +6 -6
- package/dist/index-CfIjhpNE.js +130 -0
- package/dist/index-CqDkGInW.js +45 -0
- package/dist/{index-Dz130JVH.js → index-D-frQ2XF.js} +1 -1
- package/dist/{index-DW7H-3z4.js → index-DOfCIojC.js} +260 -285
- package/dist/{index-D6wOnTAl.js → index-DOsqahSi.js} +3 -3
- package/dist/{index-Cv-DbZdw.js → index-DWEToi5v.js} +2 -2
- package/dist/{index-hTgJrZR8.js → index-Db7pTgFI.js} +3 -3
- package/dist/{index-D8vmbFE5.js → index-Dv6xFaU8.js} +1 -1
- package/dist/{index-C9j6OhgK.js → index-DzAMDjV5.js} +6 -6
- package/dist/{index-CH_QL_76.js → index-tp4p25fB.js} +3 -3
- package/dist/{index-ERqXuFvQ.js → index-vulLVFK6.js} +1 -1
- package/dist/{index.esm2017-DY9Lrb0O.js → index.esm2017-DcvVBTwu.js} +1 -1
- package/dist/{loading-EnU7K0k3.js → loading-CCOPHoh7.js} +1 -1
- package/dist/{lodash-Cr7KdLib.js → lodash-Do054Rv4.js} +1 -1
- package/dist/{membership-B1eIzQDB.js → membership-D3vhqFT0.js} +3 -3
- package/dist/{money-DpUzzEJj.js → money-VTIkdUl1.js} +1 -1
- package/dist/{number-DAz9zOKI.js → number-Ba3vNpgw.js} +1 -1
- package/dist/{objectid-LXOkMCkM.js → objectid-DcsNOw8j.js} +6 -6
- package/dist/{plugins-DJ13vaqz.js → plugins-Dk2lSfQI.js} +3 -3
- package/dist/{reward-Cmx_swM1.js → reward-BCRoFqpp.js} +1 -1
- package/dist/{rule-BCzySyr6.js → rule-DDB9bCnP.js} +3 -3
- package/dist/{rule-builder-CDkWYBLG.js → rule-builder-CeD7EpXo.js} +1 -1
- package/dist/{template-DfnYZzoa.js → template-DpCblGWK.js} +7 -7
- package/dist/{timezone-Beb0XkZC.js → timezone-B4lML23K.js} +2 -2
- package/dist/{trigger-BfQprjI-.js → trigger-BgQMlw3-.js} +5 -5
- package/dist/{useMarketingMaterialActions-CagN58AP.js → useMarketingMaterialActions-Bnnnqi34.js} +3 -3
- package/dist/{usePagination-XyeJR5ws.js → usePagination-CbMNQlO7.js} +1 -1
- package/dist/{user-l2YG1VjD.js → user-Bi7G6H-v.js} +1 -1
- package/dist/{vue-i18n-DJXhpQga.js → vue-i18n-DP39yHHU.js} +248 -248
- package/dist/{xlsx-DypdT1NW.js → xlsx-DwXPVJ6t.js} +1 -1
- package/dist/{zod-BM5P7Bti.js → zod-DERH6pU3.js} +1 -1
- package/package.json +1 -1
- package/dist/campaign-MPUFwgli.js +0 -213
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { F as o, z as t } from "./index-
|
|
2
|
-
import { u as h, a as r, v as _ } from "./index-
|
|
3
|
-
import { F as u } from "./index-
|
|
4
|
-
import { i as I, R as d } from "./rule-builder-
|
|
1
|
+
import { F as o, z as t } from "./index-tp4p25fB.js";
|
|
2
|
+
import { u as h, a as r, v as _ } from "./index-DOfCIojC.js";
|
|
3
|
+
import { F as u } from "./index-Db7pTgFI.js";
|
|
4
|
+
import { i as I, R as d } from "./rule-builder-CeD7EpXo.js";
|
|
5
5
|
function N(n, e) {
|
|
6
6
|
var p, l;
|
|
7
7
|
if (!n) return;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var ur = Object.defineProperty;
|
|
2
2
|
var ir = (S, b, h) => b in S ? ur(S, b, { enumerable: !0, configurable: !0, writable: !0, value: h }) : S[b] = h;
|
|
3
3
|
var pn = (S, b, h) => ir(S, typeof b != "symbol" ? b + "" : b, h);
|
|
4
|
-
import { u as V } from "./xlsx-
|
|
5
|
-
import { g as ar } from "./app-
|
|
4
|
+
import { u as V } from "./xlsx-DwXPVJ6t.js";
|
|
5
|
+
import { g as ar } from "./app-D0hzDd4e.js";
|
|
6
6
|
class fr {
|
|
7
7
|
constructor() {
|
|
8
8
|
pn(this, "data", []);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var g = Object.defineProperty;
|
|
2
2
|
var b = (s, e, o) => e in s ? g(s, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : s[e] = o;
|
|
3
3
|
var d = (s, e, o) => b(s, typeof e != "symbol" ? e + "" : e, o);
|
|
4
|
-
import { u as a, w as f } from "./xlsx-
|
|
5
|
-
import { u as h } from "./loading-
|
|
4
|
+
import { u as a, w as f } from "./xlsx-DwXPVJ6t.js";
|
|
5
|
+
import { u as h } from "./loading-CCOPHoh7.js";
|
|
6
6
|
import { h as x } from "./moment-D7p2TMB-.js";
|
|
7
|
-
import { m as w } from "./index-
|
|
7
|
+
import { m as w } from "./index-BrrdqEYe.js";
|
|
8
8
|
class y {
|
|
9
9
|
constructor() {
|
|
10
10
|
d(this, "records", []);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./index-
|
|
2
|
-
import "./index-
|
|
3
|
-
import "./index-
|
|
4
|
-
import { d as a } from "./index-
|
|
5
|
-
import "./index-
|
|
6
|
-
import { g as t, S as i, b as c } from "./index-
|
|
1
|
+
import "./index-DOfCIojC.js";
|
|
2
|
+
import "./index-Db7pTgFI.js";
|
|
3
|
+
import "./index-tp4p25fB.js";
|
|
4
|
+
import { d as a } from "./index-DzAMDjV5.js";
|
|
5
|
+
import "./index-DOsqahSi.js";
|
|
6
|
+
import { g as t, S as i, b as c } from "./index-DWEToi5v.js";
|
|
7
7
|
const o = (e = "") => {
|
|
8
8
|
const s = i.getBusinessId();
|
|
9
9
|
if (!s) throw new Error("Invalid business ID");
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { F as n } from "./index-CqDkGInW.js";
|
|
2
|
+
import { g as e, S as o, b as c } from "./index-DWEToi5v.js";
|
|
3
|
+
const t = () => {
|
|
4
|
+
const a = o.getBusinessId();
|
|
5
|
+
if (!a) throw new Error("Invalid business ID");
|
|
6
|
+
return c(`businesses/${a}/campaigns`, {
|
|
7
|
+
// url: 'http://localhost:3000/portal/',
|
|
8
|
+
});
|
|
9
|
+
}, p = {
|
|
10
|
+
async readBroadcastCreditSummary() {
|
|
11
|
+
return n.parse(
|
|
12
|
+
e(await t().get("broadcast/credit-summary"))
|
|
13
|
+
);
|
|
14
|
+
},
|
|
15
|
+
async readAllGrouped(a) {
|
|
16
|
+
const r = e(
|
|
17
|
+
await t().get("grouped", { params: a })
|
|
18
|
+
);
|
|
19
|
+
return {
|
|
20
|
+
meta: r.meta,
|
|
21
|
+
resources: r.resources
|
|
22
|
+
};
|
|
23
|
+
},
|
|
24
|
+
async readAll(a, r) {
|
|
25
|
+
const s = e(
|
|
26
|
+
await t().get("", {
|
|
27
|
+
params: { ...a, ...r }
|
|
28
|
+
})
|
|
29
|
+
);
|
|
30
|
+
return {
|
|
31
|
+
meta: s.meta,
|
|
32
|
+
resources: s.resources
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
async readById(a) {
|
|
36
|
+
return e(await t().get(`/${a}`));
|
|
37
|
+
},
|
|
38
|
+
async create(a) {
|
|
39
|
+
return e(await t().post("", a));
|
|
40
|
+
},
|
|
41
|
+
async update(a, r) {
|
|
42
|
+
return e(await t().put(a, r));
|
|
43
|
+
},
|
|
44
|
+
async delete(a) {
|
|
45
|
+
return e(await t().delete(a));
|
|
46
|
+
},
|
|
47
|
+
async readCollectionsByCampaignId(a, r) {
|
|
48
|
+
const s = e(
|
|
49
|
+
await t().get(`/${a}/collections`, {
|
|
50
|
+
params: r
|
|
51
|
+
})
|
|
52
|
+
);
|
|
53
|
+
return {
|
|
54
|
+
meta: s.meta,
|
|
55
|
+
resources: s.resources
|
|
56
|
+
};
|
|
57
|
+
},
|
|
58
|
+
async readTransactions(a) {
|
|
59
|
+
return e(
|
|
60
|
+
await t().get(
|
|
61
|
+
`/${a}/collections/transactions`
|
|
62
|
+
)
|
|
63
|
+
);
|
|
64
|
+
},
|
|
65
|
+
async createCollectionByCampaignId(a, r) {
|
|
66
|
+
return e(
|
|
67
|
+
await t().post(`/${a}/collections`, r)
|
|
68
|
+
);
|
|
69
|
+
},
|
|
70
|
+
async readGroups() {
|
|
71
|
+
return e(await t().get("/groups")) ?? [];
|
|
72
|
+
},
|
|
73
|
+
async readStats(a) {
|
|
74
|
+
return e(
|
|
75
|
+
await t().get("/stats", { params: a })
|
|
76
|
+
);
|
|
77
|
+
},
|
|
78
|
+
async createGroup(a) {
|
|
79
|
+
return e(await t().post("/groups", a));
|
|
80
|
+
},
|
|
81
|
+
async updateGroup(a, r) {
|
|
82
|
+
return e(
|
|
83
|
+
await t().put(`/groups/${a}`, r)
|
|
84
|
+
);
|
|
85
|
+
},
|
|
86
|
+
async deleteGroup(a) {
|
|
87
|
+
return e(await t().delete(`/groups/${a}`));
|
|
88
|
+
},
|
|
89
|
+
async sendCollection(a, r) {
|
|
90
|
+
return e(
|
|
91
|
+
await t().post(
|
|
92
|
+
`/${a}/collections/send`,
|
|
93
|
+
r
|
|
94
|
+
)
|
|
95
|
+
);
|
|
96
|
+
},
|
|
97
|
+
async sendStamp(a, r) {
|
|
98
|
+
return e(
|
|
99
|
+
await t().post(
|
|
100
|
+
`/${a}/collections/send-stamp`,
|
|
101
|
+
r
|
|
102
|
+
)
|
|
103
|
+
);
|
|
104
|
+
},
|
|
105
|
+
async syncAllPromotion() {
|
|
106
|
+
return e(await t().post("/promotion/sync"));
|
|
107
|
+
},
|
|
108
|
+
async readAllDeleted(a, r) {
|
|
109
|
+
const s = e(
|
|
110
|
+
await t().get("/bin", {
|
|
111
|
+
params: { ...a, ...r }
|
|
112
|
+
})
|
|
113
|
+
);
|
|
114
|
+
return {
|
|
115
|
+
meta: s.meta,
|
|
116
|
+
resources: s.resources
|
|
117
|
+
};
|
|
118
|
+
},
|
|
119
|
+
async restore(a) {
|
|
120
|
+
return e(
|
|
121
|
+
await t().post(`/${a}/restore`)
|
|
122
|
+
);
|
|
123
|
+
},
|
|
124
|
+
async getPromotionQueue() {
|
|
125
|
+
return e(await t().get("/promotion/queue"));
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
export {
|
|
129
|
+
p as c
|
|
130
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { z as e } from "./index-tp4p25fB.js";
|
|
2
|
+
const u = e.enum(["SMS", "WHATSAPP", "EMAIL"]), c = e.object({
|
|
3
|
+
amount: e.number(),
|
|
4
|
+
precision: e.number().int().nonnegative(),
|
|
5
|
+
currency: e.string()
|
|
6
|
+
}), m = e.object({
|
|
7
|
+
balance: e.object({
|
|
8
|
+
amount: e.number(),
|
|
9
|
+
currency: e.string()
|
|
10
|
+
}),
|
|
11
|
+
prices: e.object({
|
|
12
|
+
SMS: c,
|
|
13
|
+
WHATSAPP: c,
|
|
14
|
+
EMAIL: c
|
|
15
|
+
})
|
|
16
|
+
}), b = e.object({
|
|
17
|
+
channel: u,
|
|
18
|
+
variables: e.array(e.string()),
|
|
19
|
+
title: e.string().nullish(),
|
|
20
|
+
design: e.any(),
|
|
21
|
+
content: e.string(),
|
|
22
|
+
language: e.string(),
|
|
23
|
+
imageUrl: e.string().nullish()
|
|
24
|
+
}).superRefine((t, r) => {
|
|
25
|
+
t.content.length == 0 && r.addIssue({
|
|
26
|
+
code: e.ZodIssueCode.custom,
|
|
27
|
+
message: "Content is required"
|
|
28
|
+
});
|
|
29
|
+
const a = /{{(.*?)}}/g, o = [...t.content.matchAll(a)].map((n) => n[1]), i = t.variables, s = o.filter((n) => i.indexOf(n) < 0);
|
|
30
|
+
s.length && r.addIssue({
|
|
31
|
+
code: e.ZodIssueCode.custom,
|
|
32
|
+
message: "Invalid variable(s): " + s.join(", ")
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
function A(t, r) {
|
|
36
|
+
return t.replace(/{{(.*?)}}/g, (a, o) => {
|
|
37
|
+
const s = o.trim().split(".").reduce((n, l) => (n != null ? n[l] : null) ?? null, r);
|
|
38
|
+
return s !== null ? s : a;
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
m as F,
|
|
43
|
+
b as a,
|
|
44
|
+
A as r
|
|
45
|
+
};
|