@feedmepos/mf-connect 0.1.57-prod → 0.1.58-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.
Files changed (128) hide show
  1. package/package.json +1 -1
  2. package/dist/Analytic-BqvhYgCU.js +0 -427
  3. package/dist/App-Dtl_D0cH.js +0 -4630
  4. package/dist/Bin-y4ikpgPS.js +0 -166
  5. package/dist/Broadcast-DSROFwe4.js +0 -233
  6. package/dist/CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CcsG6vOP.js +0 -121
  7. package/dist/Card-BiSEPsZb.js +0 -911
  8. package/dist/ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js +0 -97
  9. package/dist/Collections-CX-nN7Xj.js +0 -458
  10. package/dist/Credit-IiV9b4cB.js +0 -228
  11. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-Du7fRSZC.js +0 -128
  12. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CoGes8YL.js +0 -2194
  13. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-sGh_SMCH.js +0 -348
  14. package/dist/Experience-Cf-EMhKy.js +0 -229
  15. package/dist/FileSaver.min-NlMItPOc.js +0 -74
  16. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +0 -129
  17. package/dist/Game-C8mfJn6W.js +0 -284
  18. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-D1KQpDGg.js +0 -144
  19. package/dist/Index-DkvO1AoT.js +0 -259
  20. package/dist/JsonViewer-v8_C7l5N.js +0 -87
  21. package/dist/LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js +0 -18737
  22. package/dist/MainLayout-B1aJoR95.js +0 -41
  23. package/dist/Marketing-xJTIo3RF.js +0 -319
  24. package/dist/Member-DZkYoKW8.js +0 -279
  25. package/dist/MemberList-CAYEJnf3.js +0 -1607
  26. package/dist/MemberOverview-wL_ailso.js +0 -58
  27. package/dist/MemberTransactions-Dc5aAQ69.js +0 -45
  28. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-BSvlPzw8.js +0 -60553
  29. package/dist/Mission-C_NbNWZw.js +0 -302
  30. package/dist/Overview-DyxEwEfe.js +0 -1079
  31. package/dist/Point-CsEWk61V.js +0 -232
  32. package/dist/Promotion--pWgy9Dx.js +0 -289
  33. package/dist/Queue-k3qAQR7B.js +0 -260
  34. package/dist/Record-D5F5JyVA.js +0 -341
  35. package/dist/Reward-3FSrq5mX.js +0 -442
  36. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-Dzj7a7UY.js +0 -150
  37. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DRl_Gjfx.js +0 -1763
  38. package/dist/Segment-BWJn6ODR.js +0 -882
  39. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-BKsV_zcr.js +0 -181
  40. package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-C3efGNC_.js +0 -188
  41. package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-Cj7c2V3h.js +0 -147
  42. package/dist/Setting-UiTXazZV.js +0 -1936
  43. package/dist/Store-BrvmHPCX.js +0 -1842
  44. package/dist/StoreRewards-D_7fr-Ef.js +0 -423
  45. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BXy0L5AH.js +0 -995
  46. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DumcDlBs.js +0 -139
  47. package/dist/Tier-C4wvx8F7.js +0 -895
  48. package/dist/Title-CPHT85Uj.js +0 -566
  49. package/dist/Transaction-6Ig2W00P.js +0 -39
  50. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-DknFkIJh.js +0 -130
  51. package/dist/Voucher-Bbl-7gZ5.js +0 -384
  52. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-xsswRZG8.js +0 -419
  53. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-B5J6Hd8G.js +0 -56
  54. package/dist/_commonjsHelpers-BkfeUUK-.js +0 -28
  55. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  56. package/dist/app-BDVZwARN.js +0 -7057
  57. package/dist/app-CAEhNFRG.js +0 -57962
  58. package/dist/app-wDQR6dpb.js +0 -39
  59. package/dist/app.js +0 -6
  60. package/dist/business-6C_ol5wd.js +0 -82
  61. package/dist/campaign-B13G6pZ3.js +0 -1810
  62. package/dist/campaign-CpzFl8Vr.js +0 -4
  63. package/dist/campaign-DrQp6qBu.js +0 -94
  64. package/dist/campaign.enum-DnTrlaNC.js +0 -20
  65. package/dist/campaign.fn-BZse90_k.js +0 -758
  66. package/dist/collectible.enum-633Me0yR.js +0 -19
  67. package/dist/collection.fn-C96855j5.js +0 -26
  68. package/dist/dto-2bMujqmZ.js +0 -216
  69. package/dist/effect-C7lAJwKh.js +0 -78
  70. package/dist/email-addresses-3ayN-9jv.js +0 -705
  71. package/dist/export-BNbDV7SC.js +0 -97
  72. package/dist/feedme.ico +0 -0
  73. package/dist/helper-CsfZ__dQ.js +0 -71
  74. package/dist/index-BLSAz0gK.js +0 -32
  75. package/dist/index-BY9I3Cer.js +0 -3
  76. package/dist/index-BdnRNcVO.js +0 -146
  77. package/dist/index-BmyNfpfG.js +0 -30076
  78. package/dist/index-CSBRkhKy.js +0 -38
  79. package/dist/index-Cf_fcvoS.js +0 -54
  80. package/dist/index-CqrO13uj.js +0 -76
  81. package/dist/index-CuvNtC_M.js +0 -61
  82. package/dist/index-D4kdSzs9.js +0 -3070
  83. package/dist/index-DcJq7tl4.js +0 -32269
  84. package/dist/index-DdjSIwSL.js +0 -44
  85. package/dist/index-LKr2k8J2.js +0 -8861
  86. package/dist/index-XAxwm-1v.js +0 -2130
  87. package/dist/index-b82LrGSB.js +0 -121
  88. package/dist/index-tcAb0W5F.js +0 -31
  89. package/dist/index-vh86FiIQ.js +0 -10
  90. package/dist/index.esm2017-BklqmujQ.js +0 -3069
  91. package/dist/loading-OXARGiqO.js +0 -71
  92. package/dist/lodash-B5I3zXaY.js +0 -3678
  93. package/dist/membership-D1Vb1rUo.js +0 -235
  94. package/dist/moment-D7p2TMB-.js +0 -2583
  95. package/dist/money-BpyAytEq.js +0 -15
  96. package/dist/number-C-PtPOOj.js +0 -12
  97. package/dist/object-qECH92oz.js +0 -26
  98. package/dist/objectId-dwaoBfJX.js +0 -7
  99. package/dist/objectid-BrLIKTmQ.js +0 -145
  100. package/dist/plugins-CjPWhNb2.js +0 -208
  101. package/dist/reward-DonQFzvW.js +0 -36
  102. package/dist/rule-AtNPBnbE.js +0 -1951
  103. package/dist/rule-builder-C0Q-3g6T.js +0 -102
  104. package/dist/style.css +0 -4
  105. package/dist/template-CNjE7eht.js +0 -190
  106. package/dist/tier-BJDhpH6X.js +0 -4
  107. package/dist/tiers/tier=1.png +0 -0
  108. package/dist/tiers/tier=2.png +0 -0
  109. package/dist/tiers/tier=3.png +0 -0
  110. package/dist/tiers/tier=4.png +0 -0
  111. package/dist/timezone-CYbdI3q2.js +0 -1151
  112. package/dist/titles/type=diamond.png +0 -0
  113. package/dist/titles/type=drinks.png +0 -0
  114. package/dist/titles/type=food.png +0 -0
  115. package/dist/titles/type=heart.png +0 -0
  116. package/dist/titles/type=medal.png +0 -0
  117. package/dist/titles/type=spend.png +0 -0
  118. package/dist/titles/type=thank-you.png +0 -0
  119. package/dist/titles/type=thumbs-up.png +0 -0
  120. package/dist/titles/type=years.png +0 -0
  121. package/dist/trigger-Bdi6n80h.js +0 -144
  122. package/dist/tslib.es6-BCqqvLQ_.js +0 -44
  123. package/dist/type_drinks-D6jnpvwV.js +0 -4
  124. package/dist/usePagination-Ds-cuHop.js +0 -223
  125. package/dist/user-BwGm78n8.js +0 -54
  126. package/dist/vue-i18n-D1nTd69a.js +0 -2365
  127. package/dist/xlsx-DF5iW3wh.js +0 -15491
  128. package/dist/zod-Bg2FbC-D.js +0 -90
@@ -1,97 +0,0 @@
1
- var g = Object.defineProperty;
2
- var b = (s, e, o) => e in s ? g(s, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : s[e] = o;
3
- var d = (s, e, o) => b(s, typeof e != "symbol" ? e + "" : e, o);
4
- import { u as a, w as f } from "./xlsx-DF5iW3wh.js";
5
- import { u as h } from "./loading-OXARGiqO.js";
6
- import { h as x } from "./moment-D7p2TMB-.js";
7
- import { m as w } from "./index-BdnRNcVO.js";
8
- class y {
9
- constructor() {
10
- d(this, "records", []);
11
- }
12
- addRecord(e) {
13
- this.records.push(e);
14
- }
15
- addRecords(e) {
16
- this.records.push(...e);
17
- }
18
- buildExcel() {
19
- const e = a.json_to_sheet(this.records), o = a.book_new();
20
- return a.book_append_sheet(o, e, "Sheet1"), o;
21
- }
22
- }
23
- class k extends y {
24
- }
25
- const r = {
26
- sortBy: "_id",
27
- descending: !1,
28
- rowsPerPage: 1e3,
29
- page: 1,
30
- rowsNumber: 0
31
- }, { minor: _ } = h;
32
- async function S({
33
- exporter: s,
34
- readFunction: e,
35
- transformRecord: o,
36
- filename: t
37
- }) {
38
- const c = (await e({
39
- limit: 1,
40
- skip: 0,
41
- sortBy: r.sortBy,
42
- descending: r.descending
43
- })).meta.totalResources ?? 0, n = r.rowsPerPage;
44
- await _(
45
- async () => {
46
- for (let i = 0; i < c; i += n) {
47
- const m = {
48
- ...r,
49
- limit: n,
50
- skip: r.page - 1,
51
- sortBy: r.sortBy,
52
- descending: r.descending
53
- }, p = await e(m);
54
- for (const l of p.resources) {
55
- const u = o(l);
56
- s.addRecord(u);
57
- }
58
- r.page++;
59
- }
60
- await f(
61
- s.buildExcel(),
62
- `${t}-${(/* @__PURE__ */ new Date()).toISOString()}.xlsx`,
63
- {
64
- bookType: "xlsx",
65
- bookSST: !1,
66
- type: "array"
67
- }
68
- ), r.page = 1;
69
- },
70
- {
71
- message: `Exporting ${t}...`,
72
- successMessage: `${t} exported successfully`
73
- }
74
- );
75
- }
76
- async function E() {
77
- return S({
78
- exporter: new k(),
79
- readFunction: w.readCards,
80
- transformRecord: (s) => {
81
- var e, o;
82
- return {
83
- CardNumber: s.serialNumber || "",
84
- MemberId: ((e = s.pf_member) == null ? void 0 : e._id.toString()) || "",
85
- Phone: ((o = s.pf_member) == null ? void 0 : o.phoneNumber) || "",
86
- RedeemedAt: s.redeemedAt ? x(s.redeemedAt).format("DD/MM/YYYY") : ""
87
- };
88
- },
89
- filename: "cards"
90
- });
91
- }
92
- export {
93
- y as B,
94
- k as C,
95
- E as a,
96
- S as e
97
- };
package/dist/feedme.ico DELETED
Binary file
@@ -1,71 +0,0 @@
1
- import { i } from "./index-LKr2k8J2.js";
2
- function o(t, e) {
3
- switch (t) {
4
- case "COIN":
5
- case "CREDIT":
6
- case "POINT":
7
- case "TIER":
8
- case "TITLE":
9
- return {
10
- business: e.business,
11
- name: e.name || "",
12
- stackable: !0,
13
- type: t,
14
- options: {}
15
- };
16
- case "GAME":
17
- return {
18
- business: e.business,
19
- name: e.name || "",
20
- stackable: !1,
21
- type: t,
22
- options: {},
23
- extras: {
24
- gameType: "FORTUNE_WHEEL"
25
- }
26
- };
27
- case "VOUCHER":
28
- return {
29
- business: e.business,
30
- name: e.name || "",
31
- stackable: !1,
32
- type: "VOUCHER",
33
- options: {
34
- enableTransfer: !1,
35
- maxPerUser: null,
36
- maxReceive: null,
37
- maxUse: 1,
38
- cooldown: 0,
39
- validityOption: {}
40
- },
41
- extras: {
42
- effect: null,
43
- targetLocation: null
44
- },
45
- noCampaign: e.noCampaign === !0
46
- };
47
- case "STAMP":
48
- return {
49
- business: e.business,
50
- name: e.name || "STAMP",
51
- stackable: !0,
52
- type: "STAMP",
53
- options: {
54
- maxPerUser: 1,
55
- validityOption: {
56
- followFirstReceive: !0
57
- }
58
- }
59
- };
60
- default:
61
- throw new Error("Invalid collectible type");
62
- }
63
- }
64
- function u(t) {
65
- const { validAfter: e, validBefore: a } = t, { validForDay: s } = t, n = i(e).toDate(), r = i(a).toDate();
66
- return e && a ? `${n.toLocaleDateString()} - ${r.toLocaleDateString()}` : e ? `Starts from ${n.toLocaleDateString()}` : a ? `Ends at ${r.toLocaleDateString()}` : s != null ? `Expires in ${s || "the same"} day${s > 1 ? "s" : ""} after claim` : "Always valid";
67
- }
68
- export {
69
- o as i,
70
- u as t
71
- };
@@ -1,32 +0,0 @@
1
- import { g as s, S as o, b as i } from "./index-BmyNfpfG.js";
2
- const a = () => {
3
- const r = o.getBusinessId();
4
- if (!r) throw new Error("Invalid business ID");
5
- return i(`businesses/${r}/referral`, {
6
- noIdRequired: !0
7
- });
8
- }, u = {
9
- async read() {
10
- return s(await a().get(""));
11
- },
12
- async update(r) {
13
- return s(await a().put("", r));
14
- },
15
- async readRecords(r) {
16
- const e = s(
17
- await a().get("records", { params: r })
18
- ), t = e.resources.map((n) => ({
19
- ...n
20
- }));
21
- return {
22
- meta: e.meta,
23
- resources: t
24
- };
25
- },
26
- async updateCriteriaProgress(r, e) {
27
- return s(await a().post(`/records/${r}/progress`, e));
28
- }
29
- };
30
- export {
31
- u as r
32
- };
@@ -1,3 +0,0 @@
1
- import "vue-router";
2
- import { R as o } from "./app-BDVZwARN.js";
3
- o["$connect-DASHBOARD"];
@@ -1,146 +0,0 @@
1
- import { g as t, s as u, S as c, b as i } from "./index-BmyNfpfG.js";
2
- const a = () => {
3
- const e = c.getBusinessId();
4
- if (!e) throw new Error("Invalid business ID");
5
- return i(`businesses/${e}/membership`, {
6
- noIdRequired: !0
7
- });
8
- }, o = {
9
- async read() {
10
- return t(await a().get(""));
11
- },
12
- async update(e) {
13
- return t(await a().put("", e));
14
- },
15
- async createTier(e) {
16
- return t(await a().post("tier", e));
17
- },
18
- async updateTiers(e) {
19
- return t(await a().put("tiers", e));
20
- },
21
- async createTitle(e) {
22
- return t(await a().post("titles", e));
23
- },
24
- async updateTitle(e, r) {
25
- return t(
26
- await a().put(`titles/${e}`, r)
27
- );
28
- },
29
- async deleteTitle(e) {
30
- return t(await a().delete(`titles/${e}`));
31
- },
32
- async readStore() {
33
- return t(await a().get("store"));
34
- },
35
- async readPayoutAccount() {
36
- return t(
37
- await a().get("store/payout-account")
38
- );
39
- },
40
- async updateStore(e) {
41
- return t(await a().put("store", e));
42
- },
43
- async updateStoreBundle(e) {
44
- return t(
45
- await a().put("store/bundle", e)
46
- );
47
- },
48
- async sendBundle(e) {
49
- return t(
50
- await a().post("store/bundle/send", e)
51
- );
52
- },
53
- async refundStoreTransaction(e) {
54
- return t(
55
- await a().post("store/refund", e)
56
- );
57
- },
58
- async readRewards() {
59
- return t(await a().get("rewards"));
60
- },
61
- async readRewardById(e) {
62
- return t(await a().get(`rewards/${e}`));
63
- },
64
- async readCollectionsByRewardId(e, r) {
65
- const s = t(
66
- await a().get(`/${e}/collections`, {
67
- params: r
68
- })
69
- );
70
- return {
71
- meta: s.meta,
72
- resources: s.resources
73
- };
74
- },
75
- async createReward(e) {
76
- return t(await a().post("rewards", e));
77
- },
78
- async readCards(e) {
79
- const r = t(
80
- await a().get("/cards", {
81
- params: e
82
- })
83
- );
84
- return {
85
- meta: r.meta,
86
- resources: r.resources
87
- };
88
- },
89
- async createCards(e) {
90
- return t(
91
- await a().post("/cards", e)
92
- );
93
- },
94
- async updateCard(e) {
95
- return t(await a().put("cards", e));
96
- },
97
- async deleteCard(e) {
98
- return t(await a().delete(`cards/${e}`));
99
- },
100
- async updateReward(e, r) {
101
- return t(
102
- await a().put(`rewards/${e}`, r)
103
- );
104
- },
105
- async deleteReward(e) {
106
- return t(await a().delete(`rewards/${e}`));
107
- },
108
- async getEmailAddresses() {
109
- return t(await a().get("email-addresses"));
110
- },
111
- async getWhatsappNumbers() {
112
- return t(
113
- await u(`whatsappList/${c.getBusinessId()}`).get(
114
- ""
115
- )
116
- );
117
- },
118
- async readCollectionCountByMemberId(e, r) {
119
- return t(
120
- await a().get(`/collections/count/${e}`, {
121
- params: { type: r }
122
- })
123
- );
124
- },
125
- async readCollectionsByMemberId(e, r, s) {
126
- const n = t(
127
- await a().get(`/collections/${e}`, {
128
- params: { ...r, ...s }
129
- })
130
- );
131
- return {
132
- meta: n.meta,
133
- resources: n.resources
134
- };
135
- },
136
- async readMissionCountByMemberId(e) {
137
- return t(
138
- await a().get(
139
- `/collections/mission/count/${e}`
140
- )
141
- );
142
- }
143
- };
144
- export {
145
- o as m
146
- };