@feedmepos/mf-connect 0.1.0-beta.2 → 0.1.0-beta.20
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-CRdCf6rP.js +424 -0
- package/dist/{App-D8a5eW51.js → App-CJ9oNLV2.js} +366 -354
- package/dist/{Broadcast-C8jgMe6g.js → Broadcast-CatMmvNa.js} +32 -32
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-pG8WvV4I.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CYs2Sl5w.js} +8 -8
- package/dist/Card-C3D59N5q.js +685 -0
- package/dist/{Collections-lMrdPUuM.js → Collections-BuCo1O9x.js} +4 -4
- package/dist/{Credit-CJfU5tP4.js → Credit-Babu5EE5.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-DWJw6H-M.js +2198 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CzEtOmp0.js → EffectSheet.vue_vue_type_style_index_0_lang-DSEvgx4z.js} +8 -8
- package/dist/{Experience-Bp2ki8gU.js → Experience-XMGv8EGx.js} +8 -8
- package/dist/{Game-BpTf6ebE.js → Game-Cz7YHbx1.js} +15 -15
- package/dist/Index-CQ4S3D3g.js +218 -0
- package/dist/Marketing-8E28mxPt.js +20070 -0
- package/dist/{Member-BSWyy32a.js → Member-4y7vThK4.js} +4 -4
- package/dist/MemberList-DFoEZqv5.js +1045 -0
- package/dist/{MemberTransactions-BzHiXCnp.js → MemberTransactions-CEud4gEU.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-e-zWg08J.js → MessageInput.vue_vue_type_script_setup_true_lang-SVX4fpOu.js} +2 -2
- package/dist/{Mission-8IGT3T2C.js → Mission-ChRlRXfM.js} +16 -16
- package/dist/Overview-C2xrurYW.js +879 -0
- package/dist/{Point-CbbJ6ohd.js → Point-CLIcUoCI.js} +23 -23
- package/dist/{Promotion-BYXCJa_S.js → Promotion-BAimCBQb.js} +53 -47
- package/dist/Record-D9DGLK8k.js +178 -0
- package/dist/Reward-xaALJ6xT.js +399 -0
- package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-BbpCY-d1.js +151 -0
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-wncxK2In.js +1597 -0
- package/dist/Segment-BbholIXr.js +567 -0
- package/dist/SelectItems.vue_vue_type_script_setup_true_lang-BiT1S0GE.js +181 -0
- package/dist/{Setting-CLpvvZTv.js → Setting-CuZ3rq-3.js} +8 -8
- package/dist/Store-C_BMTPfl.js +1745 -0
- package/dist/{StoreRewards-CUM2irXK.js → StoreRewards-D0W2z3Gq.js} +12 -12
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-E-QcGATx.js +957 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DEb4OBcX.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-C-ogUCbh.js} +1 -1
- package/dist/{Tier-DZTDxWBo.js → Tier-BfST7Yfl.js} +15 -15
- package/dist/{Title-C2Dr5ceK.js → Title-CEdQyyyg.js} +15 -15
- package/dist/{Transaction-BL4mS29d.js → Transaction-CYbYZrpN.js} +2 -2
- package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-Bgdt5pzT.js +130 -0
- package/dist/{Voucher-Cx0r2-df.js → Voucher-BGFUSHh3.js} +31 -31
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-jektdiG2.js +419 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DWuAODUF.js → ZodTextField.vue_vue_type_script_setup_true_lang-Cd752C-h.js} +1 -1
- package/dist/{app-B_xuZ5HB.js → app-DkwHJjXn.js} +1 -1
- package/dist/{app-wE5HTF_Y.js → app-TsBYmI-P.js} +1277 -1282
- package/dist/app.js +1 -1
- package/dist/{business-DSv8zM8C.js → business-ChsnaYdk.js} +1 -1
- package/dist/{campaign-7y5qquHZ.js → campaign-PnS10H-F.js} +2 -2
- package/dist/collectible.enum-BZIdjWua.js +19 -0
- package/dist/{collection.fn-BxVZQAx0.js → collection.fn-9np7--Dl.js} +2 -2
- package/dist/{dto-Ew1QwLci.js → dto-IypAMCcg.js} +12 -20
- package/dist/{effect-BzPh8fRI.js → effect-CCkvCD6X.js} +9 -9
- package/dist/email-addresses-CMJLhz7p.js +705 -0
- package/dist/{export-C9tDplkA.js → export-DkjOipRl.js} +3 -3
- package/dist/{helper-Sz7oQ0F4.js → helper-Bu93Ya_g.js} +1 -1
- package/dist/index-BRaG-yBl.js +53 -0
- package/dist/index-BX1M0DCt.js +1067 -0
- package/dist/{index-C3_4GUiI.js → index-Bzy8Sl5b.js} +7 -1
- package/dist/{index-DBMaUGYI.js → index-C-FIY2IU.js} +30 -26
- package/dist/index-CBMl7QZF.js +28997 -0
- package/dist/{index-z0IfdrZk.js → index-CUhBmJlv.js} +199 -195
- package/dist/{index-tv4t0Pnh.js → index-CZETB7DA.js} +1 -1
- package/dist/index-CsaQJMAR.js +66 -0
- package/dist/{index-_3qBsogG.js → index-DLlCBYOm.js} +1500 -1479
- package/dist/{index-C0lpADCo.js → index-DXAQcXA8.js} +1 -1
- package/dist/index-De3DoZV3.js +38 -0
- package/dist/{index-C-SOz7jt.js → index-Dx6gloTe.js} +1 -1
- package/dist/{index-DH_1nOJ_.js → index-JFWJNgz4.js} +39 -35
- package/dist/{index-gIRszcHf.js → index-yNswuwm_.js} +1 -1
- package/dist/{index.esm2017-BnKJDxUo.js → index.esm2017-Df64qzkh.js} +33 -33
- package/dist/{loading-Ds-yFYhc.js → loading-CaxzDKHL.js} +591 -597
- package/dist/{membership-DaiVw9qF.js → membership-BArHVjNf.js} +51 -43
- package/dist/money-B411u9Co.js +15 -0
- package/dist/number-Cqu4G1FZ.js +12 -0
- package/dist/objectid-O8aKbYqY.js +145 -0
- package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
- package/dist/reward-ikGToGDQ.js +36 -0
- package/dist/{rule-Cd2M6Ri2.js → rule-bi_56V_m.js} +180 -177
- package/dist/{rule-builder-B6og27Q1.js → rule-builder-DqVWht9g.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{template-DouRWBpv.js → template-CQVQWOPN.js} +5 -5
- package/dist/trigger-BEOn5QSl.js +114 -0
- package/dist/{vue-i18n-BTlOChXs.js → vue-i18n-CVFB09Jw.js} +2 -2
- package/dist/{xlsx-SahfXQ70.js → xlsx-DA3tIqnW.js} +1 -1
- package/package.json +8 -7
- package/dist/Analytic-DSD9TsKr.js +0 -622
- package/dist/Card-C1K7ULPo.js +0 -825
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BYoaa_-x.js +0 -2809
- package/dist/Marketing-BiKE2gxA.js +0 -316
- package/dist/MemberList-CHlGREyR.js +0 -1733
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Bruh-umZ.js +0 -1753
- package/dist/Segment-DXDNM0yd.js +0 -437
- package/dist/Store-C6-P6bwc.js +0 -1511
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-JaRdmqif.js +0 -890
- package/dist/index-BQm0C3Jm.js +0 -298
- package/dist/index-CuvNtC_M.js +0 -61
- package/dist/index-D-2nFLsg.js +0 -762
- package/dist/index-Dy4pmQpt.js +0 -29193
- package/dist/money-BHtBdZoz.js +0 -15
- package/dist/number-CZhcB8ef.js +0 -12
|
@@ -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-CBMl7QZF.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
|
},
|
|
@@ -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-CaxzDKHL.js";
|
|
2
|
+
import { m as d, n as u, k as a } from "./index-DLlCBYOm.js";
|
|
3
|
+
import { a as m } from "./collectible.enum-BZIdjWua.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
|
};
|