@feedmepos/mf-connect 0.1.38-beta.6 → 0.1.38-beta.60
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/package.json +13 -5
- package/dist/Analytic-NBx32reB.js +0 -761
- package/dist/App-CaK9PvMd.js +0 -4632
- package/dist/AuditLogs-C-gCCPvF.js +0 -1887
- package/dist/Bin-CL6o1JSs.js +0 -166
- package/dist/Broadcast-B2-itjvZ.js +0 -227
- package/dist/CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BIySMYGP.js +0 -121
- package/dist/Card-DNdEjt6s.js +0 -905
- package/dist/ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js +0 -97
- package/dist/Collections-DepGq6WJ.js +0 -465
- package/dist/Credit-D7K0gFwc.js +0 -222
- package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +0 -108
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js +0 -58
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-HMjbuy2C.js +0 -2185
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-DrbMJlm5.js +0 -347
- package/dist/Experience-FlBX3eyN.js +0 -223
- package/dist/FileSaver.min-NlMItPOc.js +0 -74
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js +0 -114
- package/dist/Game-Cc3D7lKV.js +0 -278
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js +0 -144
- package/dist/Index-2wokhhFB.js +0 -259
- package/dist/JsonViewer-v8_C7l5N.js +0 -87
- package/dist/LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js +0 -18737
- package/dist/MainLayout-B1aJoR95.js +0 -41
- package/dist/Marketing-D7PXYloN.js +0 -20073
- package/dist/Member-2xV4Izwa.js +0 -279
- package/dist/MemberList-CYgBdyJt.js +0 -1606
- package/dist/MemberOverview-wL_ailso.js +0 -58
- package/dist/MemberTransactions-DWDV01N4.js +0 -45
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-Becsw31k.js +0 -60343
- package/dist/Mission-BSGc9822.js +0 -296
- package/dist/Overview-BZjto86d.js +0 -1079
- package/dist/Point-0U4TTdPW.js +0 -226
- package/dist/Promotion-DiUa0GcV.js +0 -289
- package/dist/Queue-D62r2qjy.js +0 -260
- package/dist/Record-0iF3dG7y.js +0 -341
- package/dist/Reward-C5IEJYu6.js +0 -442
- package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-S2Fd0qO8.js +0 -150
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CxlamGFP.js +0 -1751
- package/dist/Segment-BknjBrUP.js +0 -882
- package/dist/SelectItems.vue_vue_type_script_setup_true_lang-BLQlkp-j.js +0 -181
- package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-CaPi4hYB.js +0 -188
- package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-BoZ0ZpNZ.js +0 -147
- package/dist/Setting-RLI7RgmN.js +0 -1936
- package/dist/Store-gxmv8hWJ.js +0 -1842
- package/dist/StoreRewards-C_6gY_Nk.js +0 -423
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-B5uzSYM4.js +0 -1029
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-yjI96ZL0.js +0 -139
- package/dist/Tier-B168DtFj.js +0 -888
- package/dist/Title-uH0RI1N3.js +0 -565
- package/dist/Transaction-Bx-pmLrJ.js +0 -39
- package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-Ce_55V7l.js +0 -130
- package/dist/Voucher-Dzpz2AEB.js +0 -384
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-dbA6_6b9.js +0 -419
- package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-CfLiUj9f.js +0 -56
- package/dist/_commonjsHelpers-BkfeUUK-.js +0 -28
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/app-B90wINOO.js +0 -33357
- package/dist/app-DuUxQ1ZP.js +0 -7086
- package/dist/app-wDQR6dpb.js +0 -39
- package/dist/app.js +0 -7
- package/dist/business-B65OtB5B.js +0 -79
- package/dist/campaign-CpzFl8Vr.js +0 -4
- package/dist/campaign-iKI-L84v.js +0 -1810
- package/dist/campaign-qGy6uzrC.js +0 -96
- package/dist/campaign.enum-CZp2DmXI.js +0 -20
- package/dist/campaign.fn-DKScnmjX.js +0 -758
- package/dist/collectible.enum-CN-lnG1m.js +0 -19
- package/dist/collection.fn-mMwGQWce.js +0 -26
- package/dist/dto-C5ri8Nws.js +0 -214
- package/dist/effect-Bg3yb9T6.js +0 -78
- package/dist/email-addresses-CQsN724N.js +0 -705
- package/dist/export-BLf2dhFd.js +0 -97
- package/dist/feedme.ico +0 -0
- package/dist/helper-CFaph16Q.js +0 -71
- package/dist/index-BBPIZjw6.js +0 -31
- package/dist/index-BCGDOgxb.js +0 -38
- package/dist/index-BCPBmANe.js +0 -3120
- package/dist/index-BKOgzVx6.js +0 -32
- package/dist/index-BN2Uyvj4.js +0 -30038
- package/dist/index-BPZtjcTm.js +0 -76
- package/dist/index-BPyac0fq.js +0 -56
- package/dist/index-BkySejFg.js +0 -54
- package/dist/index-CH2d_B8c.js +0 -121
- package/dist/index-CrbnfAk8.js +0 -8861
- package/dist/index-CsaQJMAR.js +0 -66
- package/dist/index-DJwQICyC.js +0 -146
- package/dist/index-DaEQgaiW.js +0 -2213
- package/dist/index-Dkmn0jmX.js +0 -32260
- package/dist/index-Dy5p_b1S.js +0 -3
- package/dist/index-vh86FiIQ.js +0 -10
- package/dist/index.esm2017-B9vJTKYg.js +0 -3069
- package/dist/loading-MEQuW9Xa.js +0 -71
- package/dist/lodash-B5I3zXaY.js +0 -3678
- package/dist/membership-Du79A0Pl.js +0 -235
- package/dist/moment-BWErdI6_.js +0 -2578
- package/dist/money-DXgYs2-R.js +0 -15
- package/dist/number-CBMkNZvH.js +0 -12
- package/dist/object-qECH92oz.js +0 -26
- package/dist/objectId-dwaoBfJX.js +0 -7
- package/dist/objectid-BeZTZYqi.js +0 -145
- package/dist/plugins-KiMuDTPp.js +0 -208
- package/dist/remy-vue-client-Cpppk9h-.js +0 -1693
- package/dist/reward-ClX_lWcQ.js +0 -36
- package/dist/rule-BfidJ75Y.js +0 -1951
- package/dist/rule-builder-BTcZx77a.js +0 -89
- package/dist/style.css +0 -4
- package/dist/template-DPpMK30W.js +0 -190
- package/dist/tier-BJDhpH6X.js +0 -4
- package/dist/tiers/tier=1.png +0 -0
- package/dist/tiers/tier=2.png +0 -0
- package/dist/tiers/tier=3.png +0 -0
- package/dist/tiers/tier=4.png +0 -0
- package/dist/titles/type=diamond.png +0 -0
- package/dist/titles/type=drinks.png +0 -0
- package/dist/titles/type=food.png +0 -0
- package/dist/titles/type=heart.png +0 -0
- package/dist/titles/type=medal.png +0 -0
- package/dist/titles/type=spend.png +0 -0
- package/dist/titles/type=thank-you.png +0 -0
- package/dist/titles/type=thumbs-up.png +0 -0
- package/dist/titles/type=years.png +0 -0
- package/dist/trigger-DLp1bkZP.js +0 -144
- package/dist/tslib.es6-BCqqvLQ_.js +0 -44
- package/dist/type_drinks-D6jnpvwV.js +0 -4
- package/dist/usePagination-BeF5K3M7.js +0 -223
- package/dist/user-Cq9CGBHZ.js +0 -54
- package/dist/vue-i18n-COzqUgQy.js +0 -2365
- package/dist/xlsx-Be4bARvl.js +0 -15491
- package/dist/zod-Bg2FbC-D.js +0 -90
package/dist/index-BPZtjcTm.js
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { g as t, S as I, u as C, b as w } from "./index-BN2Uyvj4.js";
|
|
2
|
-
const a = () => {
|
|
3
|
-
if (!I.getBusinessId()) throw new Error("Invalid business ID");
|
|
4
|
-
return C("users");
|
|
5
|
-
}, c = () => {
|
|
6
|
-
const e = I.getBusinessId();
|
|
7
|
-
if (!e) throw new Error("Invalid business ID");
|
|
8
|
-
return w(`businesses/${e}/membership`, {
|
|
9
|
-
noIdRequired: !0
|
|
10
|
-
});
|
|
11
|
-
}, y = {
|
|
12
|
-
async read(e) {
|
|
13
|
-
const s = t(
|
|
14
|
-
await a().get("", { params: e })
|
|
15
|
-
), n = s.resources.map((r) => {
|
|
16
|
-
var i, o, d, l, p, u, m, b;
|
|
17
|
-
return {
|
|
18
|
-
...r,
|
|
19
|
-
collection_TIER_0_balance: ((o = (i = r.collection.TIER) == null ? void 0 : i[0]) == null ? void 0 : o.balance) ?? 0,
|
|
20
|
-
collection_CREDIT_0_balance: ((l = (d = r.collection.CREDIT) == null ? void 0 : d[0]) == null ? void 0 : l.balance) ?? 0,
|
|
21
|
-
collection_COIN_0_balance: ((u = (p = r.collection.COIN) == null ? void 0 : p[0]) == null ? void 0 : u.balance) ?? 0,
|
|
22
|
-
collection_TITLE_0_title: ((b = (m = r.collection.TITLE) == null ? void 0 : m[0]) == null ? void 0 : b.title) ?? ""
|
|
23
|
-
};
|
|
24
|
-
});
|
|
25
|
-
return {
|
|
26
|
-
meta: s.meta,
|
|
27
|
-
resources: n
|
|
28
|
-
};
|
|
29
|
-
},
|
|
30
|
-
async readById(e) {
|
|
31
|
-
return t(await a().get(`${e}`));
|
|
32
|
-
},
|
|
33
|
-
async sendCredit(e, s) {
|
|
34
|
-
return t(
|
|
35
|
-
await c().post(
|
|
36
|
-
`members/${e}/send-credit`,
|
|
37
|
-
s
|
|
38
|
-
)
|
|
39
|
-
);
|
|
40
|
-
},
|
|
41
|
-
async deductCredit(e, s) {
|
|
42
|
-
return t(
|
|
43
|
-
await c().post(
|
|
44
|
-
`members/${e}/deduct-credit`,
|
|
45
|
-
s
|
|
46
|
-
)
|
|
47
|
-
);
|
|
48
|
-
},
|
|
49
|
-
async sendCoin(e, s) {
|
|
50
|
-
return t(
|
|
51
|
-
await c().post(
|
|
52
|
-
`members/${e}/send-coin`,
|
|
53
|
-
s
|
|
54
|
-
)
|
|
55
|
-
);
|
|
56
|
-
},
|
|
57
|
-
async deductCoin(e, s) {
|
|
58
|
-
return t(
|
|
59
|
-
await c().post(
|
|
60
|
-
`members/${e}/deduct-coin`,
|
|
61
|
-
s
|
|
62
|
-
)
|
|
63
|
-
);
|
|
64
|
-
},
|
|
65
|
-
async updateMember(e, s) {
|
|
66
|
-
return t(
|
|
67
|
-
await a().put(`${e}`, s)
|
|
68
|
-
);
|
|
69
|
-
},
|
|
70
|
-
async import(e) {
|
|
71
|
-
return await a().post("import", e);
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
export {
|
|
75
|
-
y as m
|
|
76
|
-
};
|
package/dist/index-BPyac0fq.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { g as t, a as n, S as c, b as o } from "./index-BN2Uyvj4.js";
|
|
2
|
-
const a = () => {
|
|
3
|
-
const s = c.getBusinessId();
|
|
4
|
-
if (!s) throw new Error("Invalid business ID");
|
|
5
|
-
return o(`businesses/${s}/transactions`, {
|
|
6
|
-
noIdRequired: !0
|
|
7
|
-
});
|
|
8
|
-
}, p = {
|
|
9
|
-
async readAll(s, e) {
|
|
10
|
-
const r = t(
|
|
11
|
-
await a().get("", {
|
|
12
|
-
params: { ...s, ...e }
|
|
13
|
-
})
|
|
14
|
-
);
|
|
15
|
-
return {
|
|
16
|
-
meta: r.meta,
|
|
17
|
-
resources: r.resources
|
|
18
|
-
};
|
|
19
|
-
},
|
|
20
|
-
async readStoreTransactions(s, e) {
|
|
21
|
-
const r = t(
|
|
22
|
-
await a().get("/store", {
|
|
23
|
-
params: { ...s, ...e }
|
|
24
|
-
})
|
|
25
|
-
);
|
|
26
|
-
return {
|
|
27
|
-
meta: r.meta,
|
|
28
|
-
resources: r.resources
|
|
29
|
-
};
|
|
30
|
-
},
|
|
31
|
-
async readBills(s, e, r) {
|
|
32
|
-
return (await n("").get(
|
|
33
|
-
`/restaurants/${s}/receipt?start=${e}&end=${r}`
|
|
34
|
-
)).data;
|
|
35
|
-
},
|
|
36
|
-
async readPurchaseCountByMember(s) {
|
|
37
|
-
return t(
|
|
38
|
-
await a().get(`/store/${s}`)
|
|
39
|
-
);
|
|
40
|
-
},
|
|
41
|
-
async readTransactionsByBill(s, e) {
|
|
42
|
-
return t(
|
|
43
|
-
await a().get(`/bill/${s}`, {
|
|
44
|
-
params: e
|
|
45
|
-
})
|
|
46
|
-
);
|
|
47
|
-
},
|
|
48
|
-
async revertTransaction(s) {
|
|
49
|
-
return t(
|
|
50
|
-
await a().post("/revert", s)
|
|
51
|
-
);
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
export {
|
|
55
|
-
p as t
|
|
56
|
-
};
|
package/dist/index-BkySejFg.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { F as o, e as t, g as a } from "./index-CrbnfAk8.js";
|
|
2
|
-
import { z as e, F as i, m as d } from "./index-Dkmn0jmX.js";
|
|
3
|
-
import { F as c } from "./collectible.enum-CN-lnG1m.js";
|
|
4
|
-
const l = e.enum(["VOUCHER", "LOYALTY"]), n = e.object({
|
|
5
|
-
type: e.literal(l.enum.VOUCHER),
|
|
6
|
-
collectible: i,
|
|
7
|
-
collectibleConfig: e.lazy(() => o._def.right.options[0]),
|
|
8
|
-
earningOption: e.lazy(() => t)
|
|
9
|
-
}), s = e.object({
|
|
10
|
-
type: e.literal(l.enum.LOYALTY),
|
|
11
|
-
collectibleType: c,
|
|
12
|
-
collectible: i,
|
|
13
|
-
earningOption: e.lazy(() => t),
|
|
14
|
-
validityOption: e.lazy(() => a)
|
|
15
|
-
}), r = e.discriminatedUnion("type", [
|
|
16
|
-
n,
|
|
17
|
-
s
|
|
18
|
-
]), p = e.discriminatedUnion("type", [
|
|
19
|
-
n.extend({
|
|
20
|
-
collectible: i.nullish(),
|
|
21
|
-
business: i.nullish()
|
|
22
|
-
}),
|
|
23
|
-
s.extend({
|
|
24
|
-
collectible: i.nullish(),
|
|
25
|
-
collectibleConfig: o.nullish(),
|
|
26
|
-
business: i.nullish()
|
|
27
|
-
})
|
|
28
|
-
]), m = {
|
|
29
|
-
collectionName: "RewardTemplates",
|
|
30
|
-
transform: {
|
|
31
|
-
_id: "oid",
|
|
32
|
-
business: "oid",
|
|
33
|
-
deletedAt: "date"
|
|
34
|
-
}
|
|
35
|
-
}, b = e.object({
|
|
36
|
-
_id: i,
|
|
37
|
-
business: i,
|
|
38
|
-
name: e.string(),
|
|
39
|
-
option: r,
|
|
40
|
-
deletedAt: e.date().optional(),
|
|
41
|
-
collectibleConfig: e.lazy(() => o.nullish())
|
|
42
|
-
}).describe(d.describe(m)), u = b.extend({
|
|
43
|
-
_id: i.nullish(),
|
|
44
|
-
business: i.nullish(),
|
|
45
|
-
option: p,
|
|
46
|
-
name: e.string().min(1, { message: "Name is required" })
|
|
47
|
-
});
|
|
48
|
-
u.extend({
|
|
49
|
-
updateCollection: e.boolean().optional()
|
|
50
|
-
});
|
|
51
|
-
export {
|
|
52
|
-
u as F,
|
|
53
|
-
b as a
|
|
54
|
-
};
|
package/dist/index-CH2d_B8c.js
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { g as a, S as n, b as o } from "./index-BN2Uyvj4.js";
|
|
2
|
-
const t = () => {
|
|
3
|
-
const e = n.getBusinessId();
|
|
4
|
-
if (!e) throw new Error("Invalid business ID");
|
|
5
|
-
return o(`businesses/${e}/campaigns`, {
|
|
6
|
-
// url: 'http://localhost:3000/portal/',
|
|
7
|
-
});
|
|
8
|
-
}, i = {
|
|
9
|
-
async readAllGrouped(e) {
|
|
10
|
-
const s = a(
|
|
11
|
-
await t().get("grouped", { params: e })
|
|
12
|
-
);
|
|
13
|
-
return {
|
|
14
|
-
meta: s.meta,
|
|
15
|
-
resources: s.resources
|
|
16
|
-
};
|
|
17
|
-
},
|
|
18
|
-
async readAll(e, s) {
|
|
19
|
-
const r = a(
|
|
20
|
-
await t().get("", {
|
|
21
|
-
params: { ...e, ...s }
|
|
22
|
-
})
|
|
23
|
-
);
|
|
24
|
-
return {
|
|
25
|
-
meta: r.meta,
|
|
26
|
-
resources: r.resources
|
|
27
|
-
};
|
|
28
|
-
},
|
|
29
|
-
async readById(e) {
|
|
30
|
-
return a(await t().get(`/${e}`));
|
|
31
|
-
},
|
|
32
|
-
async create(e) {
|
|
33
|
-
return a(await t().post("", e));
|
|
34
|
-
},
|
|
35
|
-
async update(e, s) {
|
|
36
|
-
return a(await t().put(e, s));
|
|
37
|
-
},
|
|
38
|
-
async delete(e) {
|
|
39
|
-
return a(await t().delete(e));
|
|
40
|
-
},
|
|
41
|
-
async readCollectionsByCampaignId(e, s) {
|
|
42
|
-
const r = a(
|
|
43
|
-
await t().get(`/${e}/collections`, {
|
|
44
|
-
params: s
|
|
45
|
-
})
|
|
46
|
-
);
|
|
47
|
-
return {
|
|
48
|
-
meta: r.meta,
|
|
49
|
-
resources: r.resources
|
|
50
|
-
};
|
|
51
|
-
},
|
|
52
|
-
async readTransactions(e) {
|
|
53
|
-
return a(
|
|
54
|
-
await t().get(
|
|
55
|
-
`/${e}/collections/transactions`
|
|
56
|
-
)
|
|
57
|
-
);
|
|
58
|
-
},
|
|
59
|
-
async createCollectionByCampaignId(e, s) {
|
|
60
|
-
return a(
|
|
61
|
-
await t().post(`/${e}/collections`, s)
|
|
62
|
-
);
|
|
63
|
-
},
|
|
64
|
-
async readGroups() {
|
|
65
|
-
return a(await t().get("/groups")) ?? [];
|
|
66
|
-
},
|
|
67
|
-
async readStats(e) {
|
|
68
|
-
return a(
|
|
69
|
-
await t().get("/stats", { params: e })
|
|
70
|
-
);
|
|
71
|
-
},
|
|
72
|
-
async createGroup(e) {
|
|
73
|
-
return a(await t().post("/groups", e));
|
|
74
|
-
},
|
|
75
|
-
async updateGroup(e, s) {
|
|
76
|
-
return a(
|
|
77
|
-
await t().put(`/groups/${e}`, s)
|
|
78
|
-
);
|
|
79
|
-
},
|
|
80
|
-
async deleteGroup(e) {
|
|
81
|
-
return a(await t().delete(`/groups/${e}`));
|
|
82
|
-
},
|
|
83
|
-
async sendCollection(e, s) {
|
|
84
|
-
return a(
|
|
85
|
-
await t().post(
|
|
86
|
-
`/${e}/collections/send`,
|
|
87
|
-
s
|
|
88
|
-
)
|
|
89
|
-
);
|
|
90
|
-
},
|
|
91
|
-
async sendStamp(e, s) {
|
|
92
|
-
return a(
|
|
93
|
-
await t().post(
|
|
94
|
-
`/${e}/collections/send-stamp`,
|
|
95
|
-
s
|
|
96
|
-
)
|
|
97
|
-
);
|
|
98
|
-
},
|
|
99
|
-
async syncAllPromotion() {
|
|
100
|
-
return a(await t().post("/promotion/sync"));
|
|
101
|
-
},
|
|
102
|
-
async readAllDeleted(e, s) {
|
|
103
|
-
const r = a(
|
|
104
|
-
await t().get("/bin", {
|
|
105
|
-
params: { ...e, ...s }
|
|
106
|
-
})
|
|
107
|
-
);
|
|
108
|
-
return {
|
|
109
|
-
meta: r.meta,
|
|
110
|
-
resources: r.resources
|
|
111
|
-
};
|
|
112
|
-
},
|
|
113
|
-
async restore(e) {
|
|
114
|
-
return a(
|
|
115
|
-
await t().post(`/${e}/restore`)
|
|
116
|
-
);
|
|
117
|
-
}
|
|
118
|
-
};
|
|
119
|
-
export {
|
|
120
|
-
i as c
|
|
121
|
-
};
|