@feedmepos/mf-connect 0.1.0-beta.3 → 0.1.0-beta.30
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-DLez3H4H.js +424 -0
- package/dist/{App-gzbM97vW.js → App-dkNRyYLR.js} +397 -384
- package/dist/{Broadcast-BwYZkTs0.js → Broadcast-DlAaBitD.js} +32 -32
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DIh9rz6T.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BtpiGQEs.js} +8 -8
- package/dist/Card-JpWEjzjP.js +897 -0
- package/dist/{Collections-Df6tlo8S.js → Collections-D5hUfDJo.js} +4 -4
- package/dist/{Credit-BPel8vA9.js → Credit-v3KdCFwT.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-CE2Ar-Ll.js +2198 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BT8ucS5G.js → EffectSheet.vue_vue_type_style_index_0_lang-C12m8EXP.js} +8 -8
- package/dist/{Experience-CPpz1Zwx.js → Experience-9A41fyZO.js} +8 -8
- package/dist/{Game-ByLblISC.js → Game-l1tUsePJ.js} +15 -15
- package/dist/Index-rF6OzGw_.js +255 -0
- package/dist/Marketing-6zS-6CS3.js +20070 -0
- package/dist/{Member-CCc_FEZY.js → Member-B5jPh0DM.js} +4 -4
- package/dist/MemberList-c2P1lToO.js +1045 -0
- package/dist/{MemberTransactions-DD5ahSbY.js → MemberTransactions-BiwAZyCP.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DSPvWk4C.js → MessageInput.vue_vue_type_script_setup_true_lang-CYVOCazs.js} +2 -2
- package/dist/{Mission-VH4057I-.js → Mission-BM7abR6J.js} +98 -86
- package/dist/Overview-Drjb4oAW.js +1024 -0
- package/dist/{Point-Bu3IlpH4.js → Point-BP9YezdW.js} +23 -23
- package/dist/{Promotion-B45AOHis.js → Promotion-DiqlNOWk.js} +53 -47
- package/dist/Record-DJ2A1L-C.js +209 -0
- package/dist/Reward-DN6z6LXf.js +411 -0
- package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-CcbzCFUg.js +151 -0
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CFD10xnG.js +1639 -0
- package/dist/Segment-Cm48eZrS.js +567 -0
- package/dist/SelectItems.vue_vue_type_script_setup_true_lang-6XokSm7W.js +181 -0
- package/dist/{Setting-CF09eRQJ.js → Setting-3jXUi2cS.js} +8 -8
- package/dist/Store-Csditfe8.js +1745 -0
- package/dist/{StoreRewards-0iGExjqQ.js → StoreRewards-DOMxpeaj.js} +12 -12
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Csoobxol.js +957 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BEfxin47.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-C8UhKTgD.js} +1 -1
- package/dist/{Tier-IaeWe7rM.js → Tier-BmhQYaPz.js} +318 -306
- package/dist/{Title-DD67Zxh5.js → Title-BJV4yLCu.js} +199 -183
- package/dist/{Transaction-BsPDnLzB.js → Transaction-DB81PNYL.js} +2 -2
- package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-wyCBPQRj.js +130 -0
- package/dist/{Voucher-M7JfcKo0.js → Voucher-B8nnAIUZ.js} +31 -31
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-B4zIOBh0.js +419 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-k0lprU2i.js → ZodTextField.vue_vue_type_script_setup_true_lang-DvfcNsj9.js} +1 -1
- package/dist/{app-DwujUNP-.js → app-BYTkNtdY.js} +1 -1
- package/dist/{app-HFICF0vL.js → app-sD3N1iqR.js} +1285 -1283
- package/dist/app.js +1 -1
- package/dist/{business-BaF1QJXa.js → business-B6OFKNz4.js} +1 -1
- package/dist/{campaign-CTDtmAE9.js → campaign-DhumfBC6.js} +2 -2
- package/dist/collectible.enum-4Gywgj__.js +19 -0
- package/dist/{collection.fn-DMW03W4R.js → collection.fn-D-uexOQL.js} +2 -2
- package/dist/{dto-gpaNZHzQ.js → dto-b9jcbMWA.js} +78 -86
- package/dist/{effect-CBUmtwet.js → effect-CBN4vtSi.js} +9 -9
- package/dist/email-addresses-BqgJVUoG.js +705 -0
- package/dist/{export-Bdh_PbsW.js → export-D1kS_vMc.js} +3 -3
- package/dist/{helper-Cu9elRvl.js → helper-SbkTJZDm.js} +1 -1
- package/dist/index-BBBSm4kr.js +54 -0
- package/dist/index-BIs-Ed1-.js +29000 -0
- package/dist/{index-ogzk-Mj4.js → index-CBwwTcb5.js} +1 -1
- package/dist/{index-At6yms5t.js → index-CHg2swyg.js} +30 -26
- package/dist/index-Cd94xjeo.js +38 -0
- package/dist/{index-CArqG03W.js → index-Cehc8dyz.js} +39 -35
- package/dist/index-CsaQJMAR.js +66 -0
- package/dist/{index-CtH2S49l.js → index-CxBG7i3n.js} +203 -195
- package/dist/{index-DrGrOgZB.js → index-DgJVPeks.js} +13 -1
- package/dist/{index-NXiDu42U.js → index-Dp-5hs3q.js} +1 -1
- package/dist/{index-Crw-Vgo5.js → index-DtX7V_mF.js} +1500 -1479
- package/dist/index-Hhxoo_Eg.js +1067 -0
- package/dist/{index-Ch6XwPzF.js → index-OCIxZJKd.js} +1 -1
- package/dist/{index-Dfdg2Q3E.js → index-wJ5e3mQa.js} +1 -1
- package/dist/{index.esm2017-CeJpvUbA.js → index.esm2017-Bl1OPd9N.js} +33 -33
- package/dist/{loading-Cn8ml_vy.js → loading-BghJIv3w.js} +591 -597
- package/dist/{membership-CX4AKMlH.js → membership-D532uzUJ.js} +51 -43
- package/dist/money-BJmDeENN.js +15 -0
- package/dist/number-E_LdkU9a.js +12 -0
- package/dist/objectid-DSB8jlsT.js +145 -0
- package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
- package/dist/reward-CiTzAsCd.js +36 -0
- package/dist/{rule-Cv83Y59R.js → rule-0MEHUef9.js} +180 -177
- package/dist/{rule-builder-Dew4yB5Q.js → rule-builder-BQZN0Bi4.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{template-CSnbgM1o.js → template-2xDKWfij.js} +5 -5
- package/dist/trigger-BFmJQkCL.js +114 -0
- package/dist/user-B_diJ-ER.js +54 -0
- package/dist/{vue-i18n-CNH_IhVd.js → vue-i18n-D0S05G9j.js} +408 -408
- package/dist/{xlsx-D4DUZHix.js → xlsx-9pjTnN_k.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
|
@@ -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-BghJIv3w.js";
|
|
2
|
+
import { m as d, n as u, k as a } from "./index-DtX7V_mF.js";
|
|
3
|
+
import { a as m } from "./collectible.enum-4Gywgj__.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
|
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { g as s, S as c, b as o } from "./index-BIs-Ed1-.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
|
+
};
|