@feedmepos/mf-connect 0.1.0-beta.3 → 0.1.0-beta.31
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-C-QC9ivZ.js +424 -0
- package/dist/{App-gzbM97vW.js → App-NASVRSh2.js} +397 -384
- package/dist/{Broadcast-BwYZkTs0.js → Broadcast-Cffg7nbY.js} +32 -32
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DIh9rz6T.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CA4kVwMl.js} +8 -8
- package/dist/Card-CmYFb1_Y.js +897 -0
- package/dist/{Collections-Df6tlo8S.js → Collections-CibvGIpU.js} +4 -4
- package/dist/{Credit-BPel8vA9.js → Credit-Ck6i9ySs.js} +14 -14
- package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +108 -0
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-B35zbHHI.js +2198 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BT8ucS5G.js → EffectSheet.vue_vue_type_style_index_0_lang-CQV77_cx.js} +8 -8
- package/dist/{Experience-CPpz1Zwx.js → Experience-CWUX2QvS.js} +8 -8
- package/dist/{Game-ByLblISC.js → Game-D3cdZrlc.js} +15 -15
- package/dist/Index-CWLZiYXT.js +255 -0
- package/dist/Marketing-Bol8eY5d.js +20070 -0
- package/dist/{Member-CCc_FEZY.js → Member-Cso-T2Xk.js} +4 -4
- package/dist/MemberList-Bqns9wko.js +1045 -0
- package/dist/{MemberTransactions-DD5ahSbY.js → MemberTransactions-zNw-30Xu.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DSPvWk4C.js → MessageInput.vue_vue_type_script_setup_true_lang-BLS5fNr6.js} +2 -2
- package/dist/{Mission-VH4057I-.js → Mission-C0-K0A_5.js} +98 -86
- package/dist/Overview-fZ9NvFKz.js +1024 -0
- package/dist/{Point-Bu3IlpH4.js → Point-D3gGhQlP.js} +23 -23
- package/dist/{Promotion-B45AOHis.js → Promotion-COCJIfu-.js} +53 -47
- package/dist/Record-C0a4Cn1U.js +209 -0
- package/dist/Reward-D0G4CBYd.js +411 -0
- package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-zSOwxAcS.js +151 -0
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-AmIdaAeX.js +1639 -0
- package/dist/Segment-eBM3aveX.js +567 -0
- package/dist/SelectItems.vue_vue_type_script_setup_true_lang-BgMuKAjE.js +181 -0
- package/dist/{Setting-CF09eRQJ.js → Setting-Dfye6fs5.js} +8 -8
- package/dist/Store-rQfwc8d6.js +1745 -0
- package/dist/{StoreRewards-0iGExjqQ.js → StoreRewards-DVTNMWdG.js} +12 -12
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-3dvBoXz2.js +957 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BEfxin47.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DxGIUrmO.js} +1 -1
- package/dist/{Tier-IaeWe7rM.js → Tier-DekrYu5l.js} +327 -317
- package/dist/{Title-DD67Zxh5.js → Title-oAWsBqoM.js} +199 -183
- package/dist/{Transaction-BsPDnLzB.js → Transaction-Ss2XCksi.js} +2 -2
- package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-BMIqnBts.js +130 -0
- package/dist/{Voucher-M7JfcKo0.js → Voucher-CjPJxdw8.js} +31 -31
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DlWCpoOp.js +419 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-k0lprU2i.js → ZodTextField.vue_vue_type_script_setup_true_lang-FXQNhMrv.js} +1 -1
- package/dist/{app-HFICF0vL.js → app-C_zlbFNe.js} +1285 -1283
- package/dist/{app-DwujUNP-.js → app-WUJQRyEM.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/{business-BaF1QJXa.js → business-C0e_E2xp.js} +1 -1
- package/dist/{campaign-CTDtmAE9.js → campaign-iWzbtNA5.js} +2 -2
- package/dist/collectible.enum-QITAo8Jg.js +19 -0
- package/dist/{collection.fn-DMW03W4R.js → collection.fn-R3hvasuZ.js} +2 -2
- package/dist/{dto-gpaNZHzQ.js → dto-D_tjJ72q.js} +78 -86
- package/dist/{effect-CBUmtwet.js → effect-_bpW5fmr.js} +9 -9
- package/dist/email-addresses-DUKn8uD0.js +705 -0
- package/dist/{export-Bdh_PbsW.js → export-CEBWZ8ko.js} +3 -3
- package/dist/{helper-Cu9elRvl.js → helper-CuF45pbY.js} +1 -1
- package/dist/{index-NXiDu42U.js → index-BO8RnVxy.js} +1 -1
- package/dist/{index-CArqG03W.js → index-BPc3wxOE.js} +39 -35
- package/dist/index-BXTQ6onZ.js +1067 -0
- package/dist/index-C4aPU80a.js +38 -0
- package/dist/{index-At6yms5t.js → index-CBzSPD25.js} +30 -26
- package/dist/{index-Ch6XwPzF.js → index-CR0ZVZQG.js} +1 -1
- package/dist/{index-DrGrOgZB.js → index-CXFwMV0s.js} +13 -1
- package/dist/index-CsaQJMAR.js +66 -0
- package/dist/{index-Dfdg2Q3E.js → index-Dh6xIUXJ.js} +1 -1
- package/dist/{index-ogzk-Mj4.js → index-LMvyNoHf.js} +1 -1
- package/dist/{index-Crw-Vgo5.js → index-S6sFiBxK.js} +1500 -1479
- package/dist/index-SpDFfOz_.js +54 -0
- package/dist/{index-CtH2S49l.js → index-Urbp7cdO.js} +203 -195
- package/dist/index-pHbs1GrF.js +29000 -0
- package/dist/{index.esm2017-CeJpvUbA.js → index.esm2017-BunOalUj.js} +33 -33
- package/dist/{loading-Cn8ml_vy.js → loading-CYFsZ9UB.js} +591 -597
- package/dist/{membership-CX4AKMlH.js → membership-C9089j0H.js} +51 -43
- package/dist/money-D-zGFohv.js +15 -0
- package/dist/number-UFl4zW6h.js +12 -0
- package/dist/objectid-BKIyQ5iE.js +145 -0
- package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
- package/dist/reward-LYKGLzXz.js +36 -0
- package/dist/{rule-Cv83Y59R.js → rule-BUUKmR4_.js} +180 -177
- package/dist/{rule-builder-Dew4yB5Q.js → rule-builder-9JUuOcMH.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{template-CSnbgM1o.js → template-CkXuF0cN.js} +5 -5
- package/dist/trigger-DjAx9efN.js +114 -0
- package/dist/user-DbsZta3D.js +54 -0
- package/dist/{vue-i18n-CNH_IhVd.js → vue-i18n-yYO72Mbp.js} +2 -2
- package/dist/{xlsx-D4DUZHix.js → xlsx-Dagi6ArS.js} +1 -1
- package/package.json +8 -7
- package/dist/Analytic-BC5BA6pN.js +0 -622
- package/dist/Card-CBYQGKwY.js +0 -825
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-PsrS7I0r.js +0 -2809
- package/dist/Marketing-D0vm80e_.js +0 -316
- package/dist/MemberList-CrnipE9y.js +0 -1733
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Ijc2OYh9.js +0 -1753
- package/dist/Segment-ZWsp48aC.js +0 -437
- package/dist/Store-B_G6Dhmq.js +0 -1511
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CaxUr9zl.js +0 -890
- package/dist/index-8MaN7rez.js +0 -762
- package/dist/index-BjdHxGDn.js +0 -298
- package/dist/index-CuvNtC_M.js +0 -61
- package/dist/index-RP0XOPRL.js +0 -29193
- package/dist/money-BTejgvKu.js +0 -15
- package/dist/number-Cen5TucC.js +0 -12
- package/dist/user-Bm4KttFq.js +0 -37
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { g as s, S as c, b as o } from "./index-pHbs1GrF.js";
|
|
2
|
+
const a = () => {
|
|
3
|
+
const e = c.getBusinessId();
|
|
4
|
+
if (!e) throw new Error("Invalid business ID");
|
|
5
|
+
return o(`businesses/${e}/referral`, {
|
|
6
|
+
noIdRequired: !0
|
|
7
|
+
});
|
|
8
|
+
}, i = {
|
|
9
|
+
async read() {
|
|
10
|
+
return s(await a().get(""));
|
|
11
|
+
},
|
|
12
|
+
async update(e) {
|
|
13
|
+
return s(await a().put("", e));
|
|
14
|
+
},
|
|
15
|
+
async readReward() {
|
|
16
|
+
},
|
|
17
|
+
async updateReward() {
|
|
18
|
+
},
|
|
19
|
+
async deleteReward() {
|
|
20
|
+
},
|
|
21
|
+
async readRecords(e) {
|
|
22
|
+
const r = s(
|
|
23
|
+
await a().get("records", { params: e })
|
|
24
|
+
), t = r.resources.map((n) => ({
|
|
25
|
+
...n
|
|
26
|
+
}));
|
|
27
|
+
return {
|
|
28
|
+
meta: r.meta,
|
|
29
|
+
resources: t
|
|
30
|
+
};
|
|
31
|
+
},
|
|
32
|
+
async updateCriteriaProgress(e, r) {
|
|
33
|
+
return s(await a().post(`/records/${e}/progress`, r));
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
i as r
|
|
38
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { z as o, F as e, m as
|
|
2
|
-
import {
|
|
1
|
+
import { z as o, F as e, m as r } from "./loading-CYFsZ9UB.js";
|
|
2
|
+
import { m as d, n as u, k as a } from "./index-S6sFiBxK.js";
|
|
3
|
+
import { a as m } from "./collectible.enum-QITAo8Jg.js";
|
|
3
4
|
const b = o.enum([
|
|
4
5
|
"PORTAL",
|
|
5
6
|
"BENEFIT",
|
|
@@ -19,7 +20,9 @@ const b = o.enum([
|
|
|
19
20
|
"POS_CLAIM",
|
|
20
21
|
"MEMBER_APP-CLAIM",
|
|
21
22
|
"MEMBER_APP-TRANSFER",
|
|
22
|
-
"FEEDVIBE_APP-CLAIM"
|
|
23
|
+
"FEEDVIBE_APP-CLAIM",
|
|
24
|
+
"REFERRAL",
|
|
25
|
+
"REFERRAL_REWARD"
|
|
23
26
|
]), i = o.string(), l = o.record(o.string(), o.any()).nullish(), p = {
|
|
24
27
|
collectionName: "Transactions",
|
|
25
28
|
transform: {
|
|
@@ -40,14 +43,14 @@ const b = o.enum([
|
|
|
40
43
|
as: "pf_collectible"
|
|
41
44
|
}
|
|
42
45
|
}
|
|
43
|
-
},
|
|
46
|
+
}, F = o.object({
|
|
44
47
|
_id: e,
|
|
45
48
|
user: e.nullable(),
|
|
46
49
|
collectible: e,
|
|
47
50
|
collection: e,
|
|
48
51
|
business: e,
|
|
49
52
|
amount: o.number(),
|
|
50
|
-
expiryAmount: o.array(o.lazy(() =>
|
|
53
|
+
expiryAmount: o.array(o.lazy(() => c)),
|
|
51
54
|
from: o.lazy(() => t),
|
|
52
55
|
to: o.lazy(() => t),
|
|
53
56
|
source: i,
|
|
@@ -60,10 +63,10 @@ const b = o.enum([
|
|
|
60
63
|
pf_collectible: o.any().optional(),
|
|
61
64
|
pf_collection: o.any().optional(),
|
|
62
65
|
totalAmount: o.number().optional()
|
|
63
|
-
}).describe(
|
|
66
|
+
}).describe(r.describe(p));
|
|
64
67
|
o.object({
|
|
65
68
|
amount: o.number(),
|
|
66
|
-
expiryAmount: o.array(o.lazy(() =>
|
|
69
|
+
expiryAmount: o.array(o.lazy(() => c)),
|
|
67
70
|
collection: o.lazy(() => f),
|
|
68
71
|
source: i,
|
|
69
72
|
ref: o.string(),
|
|
@@ -77,13 +80,13 @@ o.object({
|
|
|
77
80
|
id: o.string()
|
|
78
81
|
});
|
|
79
82
|
b.options;
|
|
80
|
-
const s = o.enum(["NORMAL", "EXPIRABLE"]),
|
|
83
|
+
const s = o.enum(["NORMAL", "EXPIRABLE"]), c = o.object({
|
|
81
84
|
_id: e,
|
|
82
85
|
amount: o.number(),
|
|
83
86
|
expiredAt: o.coerce.date()
|
|
84
87
|
}), t = o.object({
|
|
85
88
|
balance: o.number(),
|
|
86
|
-
expiryBalance: o.array(
|
|
89
|
+
expiryBalance: o.array(c).optional()
|
|
87
90
|
}), C = {
|
|
88
91
|
collectionName: "Collections",
|
|
89
92
|
transform: {
|
|
@@ -109,15 +112,15 @@ const s = o.enum(["NORMAL", "EXPIRABLE"]), r = o.object({
|
|
|
109
112
|
user: e.nullish(),
|
|
110
113
|
code: o.string().optional(),
|
|
111
114
|
collectible: e,
|
|
112
|
-
type:
|
|
113
|
-
extras:
|
|
114
|
-
options:
|
|
115
|
+
type: m,
|
|
116
|
+
extras: d.nullish(),
|
|
117
|
+
options: u,
|
|
115
118
|
ref: o.string().nullish(),
|
|
116
119
|
deactivatedAt: o.date().nullish(),
|
|
117
120
|
pf_user: o.any().optional(),
|
|
118
121
|
pf_collectible: o.any().optional(),
|
|
119
122
|
pf_campaign: o.any().optional()
|
|
120
|
-
}).merge(t).describe(
|
|
123
|
+
}).merge(t).describe(r.describe(C)), n = o.object({
|
|
121
124
|
amount: o.number(),
|
|
122
125
|
ref: o.string(),
|
|
123
126
|
source: i,
|
|
@@ -145,7 +148,8 @@ n.extend({
|
|
|
145
148
|
n.extend({
|
|
146
149
|
id: e,
|
|
147
150
|
code: o.string().optional(),
|
|
148
|
-
type: s.optional()
|
|
151
|
+
type: s.optional(),
|
|
152
|
+
skipValidateOption: o.boolean().optional()
|
|
149
153
|
});
|
|
150
154
|
o.object({
|
|
151
155
|
collection: e,
|
|
@@ -170,16 +174,14 @@ const y = o.object({
|
|
|
170
174
|
amount: o.coerce.number().min(1).max(1e7).multipleOf(0.01, "Amount must be maximum of two decimal places (0.00)"),
|
|
171
175
|
day: o.coerce.number().min(1).max(9999),
|
|
172
176
|
remark: o.string().optional()
|
|
173
|
-
}),
|
|
177
|
+
}), R = o.object({
|
|
174
178
|
amount: o.coerce.number().min(1),
|
|
175
179
|
remark: o.string().optional()
|
|
176
|
-
})
|
|
177
|
-
o.object({
|
|
180
|
+
}), x = o.object({
|
|
178
181
|
amount: o.coerce.number().min(1),
|
|
179
|
-
day: o.coerce.number().min(1).max(9999),
|
|
182
|
+
day: o.coerce.number().min(1).max(9999).optional(),
|
|
180
183
|
remark: o.string().optional()
|
|
181
|
-
})
|
|
182
|
-
o.object({
|
|
184
|
+
}), O = o.object({
|
|
183
185
|
amount: o.coerce.number().min(1),
|
|
184
186
|
remark: o.string().optional()
|
|
185
187
|
});
|
|
@@ -197,10 +199,12 @@ o.object({
|
|
|
197
199
|
memberId: o.array(e)
|
|
198
200
|
});
|
|
199
201
|
export {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
202
|
+
x as F,
|
|
203
|
+
y as a,
|
|
204
|
+
O as b,
|
|
205
|
+
R as c,
|
|
206
|
+
F as d,
|
|
207
|
+
f as e,
|
|
208
|
+
b as f,
|
|
209
|
+
t as g
|
|
206
210
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as t, S as n, b as u } from "./index-
|
|
1
|
+
import { g as t, S as n, b as u } from "./index-pHbs1GrF.js";
|
|
2
2
|
const a = () => {
|
|
3
3
|
const e = n.getBusinessId();
|
|
4
4
|
if (!e) throw new Error("Invalid business ID");
|
|
@@ -45,6 +45,12 @@ const a = () => {
|
|
|
45
45
|
await a().put("store/bundle", e)
|
|
46
46
|
);
|
|
47
47
|
},
|
|
48
|
+
async sendBundle(e) {
|
|
49
|
+
return t(await a().post("store/bundle/send", e));
|
|
50
|
+
},
|
|
51
|
+
async refundStoreTransaction(e) {
|
|
52
|
+
return t(await a().post("store/refund", e));
|
|
53
|
+
},
|
|
48
54
|
async readRewards() {
|
|
49
55
|
return t(await a().get("rewards"));
|
|
50
56
|
},
|
|
@@ -81,6 +87,12 @@ const a = () => {
|
|
|
81
87
|
await a().post("/cards", e)
|
|
82
88
|
);
|
|
83
89
|
},
|
|
90
|
+
async updateCard(e) {
|
|
91
|
+
return t(await a().put("cards", e));
|
|
92
|
+
},
|
|
93
|
+
async deleteCard(e) {
|
|
94
|
+
return t(await a().delete(`cards/${e}`));
|
|
95
|
+
},
|
|
84
96
|
async updateReward(e, r) {
|
|
85
97
|
return t(
|
|
86
98
|
await a().put(`rewards/${e}`, r)
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
const d = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu"), R = new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])", "gu"), C = new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d", "u"), A = /[^\p{L}\d]+/giu, n = "$1\0$2", L = "";
|
|
2
|
+
function h(r) {
|
|
3
|
+
let e = r.trim();
|
|
4
|
+
e = e.replace(d, n).replace(R, n), e = e.replace(A, "\0");
|
|
5
|
+
let c = 0, l = e.length;
|
|
6
|
+
for (; e.charAt(c) === "\0"; )
|
|
7
|
+
c++;
|
|
8
|
+
if (c === l)
|
|
9
|
+
return [];
|
|
10
|
+
for (; e.charAt(l - 1) === "\0"; )
|
|
11
|
+
l--;
|
|
12
|
+
return e.slice(c, l).split(/\0/g);
|
|
13
|
+
}
|
|
14
|
+
function w(r) {
|
|
15
|
+
const e = h(r);
|
|
16
|
+
for (let c = 0; c < e.length; c++) {
|
|
17
|
+
const l = e[c], t = C.exec(l);
|
|
18
|
+
if (t) {
|
|
19
|
+
const a = t.index + (t[1] ?? t[2]).length;
|
|
20
|
+
e.splice(c, 1, l.slice(0, a), l.slice(a));
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return e;
|
|
24
|
+
}
|
|
25
|
+
function m(r, e) {
|
|
26
|
+
const [c, l, t] = P(r, e), a = i(e == null ? void 0 : e.locale), s = E(e == null ? void 0 : e.locale);
|
|
27
|
+
return c + l.map(x(a, s)).join((e == null ? void 0 : e.delimiter) ?? " ") + t;
|
|
28
|
+
}
|
|
29
|
+
function S(r, e) {
|
|
30
|
+
const [c, l, t] = P(r, e), a = i(e == null ? void 0 : e.locale), s = E(e == null ? void 0 : e.locale), f = x(a, s);
|
|
31
|
+
return c + l.map((u, _) => _ === 0 ? f(u) : a(u)).join((e == null ? void 0 : e.delimiter) ?? " ") + t;
|
|
32
|
+
}
|
|
33
|
+
function i(r) {
|
|
34
|
+
return r === !1 ? (e) => e.toLowerCase() : (e) => e.toLocaleLowerCase(r);
|
|
35
|
+
}
|
|
36
|
+
function E(r) {
|
|
37
|
+
return r === !1 ? (e) => e.toUpperCase() : (e) => e.toLocaleUpperCase(r);
|
|
38
|
+
}
|
|
39
|
+
function x(r, e) {
|
|
40
|
+
return (c) => `${e(c[0])}${r(c.slice(1))}`;
|
|
41
|
+
}
|
|
42
|
+
function P(r, e = {}) {
|
|
43
|
+
const c = e.split ?? (e.separateNumbers ? w : h), l = e.prefixCharacters ?? L, t = e.suffixCharacters ?? L;
|
|
44
|
+
let a = 0, s = r.length;
|
|
45
|
+
for (; a < r.length; ) {
|
|
46
|
+
const f = r.charAt(a);
|
|
47
|
+
if (!l.includes(f))
|
|
48
|
+
break;
|
|
49
|
+
a++;
|
|
50
|
+
}
|
|
51
|
+
for (; s > a; ) {
|
|
52
|
+
const f = s - 1, u = r.charAt(f);
|
|
53
|
+
if (!t.includes(u))
|
|
54
|
+
break;
|
|
55
|
+
s = f;
|
|
56
|
+
}
|
|
57
|
+
return [
|
|
58
|
+
r.slice(0, a),
|
|
59
|
+
c(r.slice(a, s)),
|
|
60
|
+
r.slice(s)
|
|
61
|
+
];
|
|
62
|
+
}
|
|
63
|
+
export {
|
|
64
|
+
m as c,
|
|
65
|
+
S as s
|
|
66
|
+
};
|