@feedmepos/mf-connect 0.1.0-beta.8 → 0.1.0-beta.81

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 (127) hide show
  1. package/dist/Analytic-C9JWdPcg.js +761 -0
  2. package/dist/{App-SRz4257n.js → App-BVEfQEjU.js} +441 -420
  3. package/dist/AuditLogs-qbqxB_Oz.js +1887 -0
  4. package/dist/Bin-DPfStHeL.js +166 -0
  5. package/dist/{Broadcast-DmkrJGp2.js → Broadcast-CrQZDeiZ.js} +56 -54
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CZXSxA9u.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Fpcw9NWs.js} +14 -10
  7. package/dist/Card-d7rnO53X.js +905 -0
  8. package/dist/Collections-5rEy2lvX.js +464 -0
  9. package/dist/{Credit-CcNrq9qk.js → Credit-CHyEsV7R.js} +36 -34
  10. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +108 -0
  11. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js +58 -0
  12. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CLqubY_R.js +2182 -0
  13. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BIZDiLns.js → EffectSheet.vue_vue_type_style_index_0_lang-DEmIYpS6.js} +49 -49
  14. package/dist/{Experience-DNsQLzDH.js → Experience-DhDLyUFN.js} +32 -30
  15. package/dist/FileSaver.min-NlMItPOc.js +74 -0
  16. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-BrPLkFX8.js +118 -0
  17. package/dist/Game-CoOZBnN-.js +278 -0
  18. package/dist/Index-BxzvptzX.js +259 -0
  19. package/dist/Marketing-CwxJ5Upf.js +20071 -0
  20. package/dist/Member-D1SRjLZd.js +287 -0
  21. package/dist/MemberList-C-8mcfuk.js +1606 -0
  22. package/dist/MemberTransactions-C7uwJdn8.js +45 -0
  23. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-GCEQCVOt.js → MessageInput.vue_vue_type_script_setup_true_lang-ChQ3zuj7.js} +152 -137
  24. package/dist/Mission-CtF_zohU.js +296 -0
  25. package/dist/Overview-g9HqRUmv.js +1079 -0
  26. package/dist/{Point-Ck8EG_3k.js → Point-BrifiJTO.js} +55 -53
  27. package/dist/Promotion-D-VpO9Y1.js +289 -0
  28. package/dist/Queue-V6tLLO52.js +260 -0
  29. package/dist/Record-C_eSy9Pl.js +341 -0
  30. package/dist/Reward-BcS5W2o6.js +442 -0
  31. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-B_g46hrr.js +150 -0
  32. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CFvxrx8L.js +1728 -0
  33. package/dist/Segment-B7JtvneQ.js +880 -0
  34. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-BX-E0sDn.js +181 -0
  35. package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-DPByAnL2.js +188 -0
  36. package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-DE7ROhd5.js +147 -0
  37. package/dist/Setting-1KOQwRHn.js +1932 -0
  38. package/dist/Store-Dj84K8ZK.js +1842 -0
  39. package/dist/StoreRewards-7rXn3J0B.js +423 -0
  40. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-D7zdyg9d.js +1029 -0
  41. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DrzmjYmU.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-D6T7vFXj.js} +1 -1
  42. package/dist/{Tier-CJ9-d8Zg.js → Tier-CwS_A8F5.js} +350 -334
  43. package/dist/{Title-DZCpvg4q.js → Title-YAj_vykl.js} +245 -222
  44. package/dist/{Transaction-DpnTxlbf.js → Transaction-CvbHHpIT.js} +2 -2
  45. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-CYXM679D.js +130 -0
  46. package/dist/Voucher-C0V9koK8.js +354 -0
  47. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DwfF_8uQ.js +419 -0
  48. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-SukfoJpU.js → ZodTextField.vue_vue_type_script_setup_true_lang-D3mmtmvI.js} +1 -1
  49. package/dist/{app-DzAexOqx.js → app-D5BiHqr1.js} +2712 -1266
  50. package/dist/app-TANcLG-R.js +33357 -0
  51. package/dist/app.js +1 -1
  52. package/dist/business-DxNWLRXa.js +79 -0
  53. package/dist/{campaign-winsqufa.js → campaign-DhEbMRyc.js} +2 -2
  54. package/dist/campaign-DqFW5qoE.js +1810 -0
  55. package/dist/campaign.enum-DGpeHkL2.js +20 -0
  56. package/dist/campaign.fn-BqP9eKCL.js +758 -0
  57. package/dist/collectible.enum-CSFqER3H.js +19 -0
  58. package/dist/{collection.fn-CI5Llblg.js → collection.fn-CA112Q3U.js} +2 -2
  59. package/dist/dto-UeacqOxr.js +214 -0
  60. package/dist/{effect-CdkrIYgX.js → effect-CEB8v8KY.js} +33 -16
  61. package/dist/email-addresses-DLDeL77c.js +705 -0
  62. package/dist/{export-DGxfief1.js → export-B_8_zEGl.js} +5 -5
  63. package/dist/{helper-B8RqcTNu.js → helper-BN4JZQLv.js} +1 -1
  64. package/dist/index-B-O8sm9u.js +54 -0
  65. package/dist/index-B-WW-LtM.js +56 -0
  66. package/dist/index-BOQonmqm.js +32 -0
  67. package/dist/{index-9w43_U1v.js → index-CboHpXNN.js} +1506 -1480
  68. package/dist/{index-A34xEz20.js → index-CjJOf_Ko.js} +2246 -871
  69. package/dist/index-CsU66Lo8.js +115 -0
  70. package/dist/index-CsaQJMAR.js +66 -0
  71. package/dist/index-Csb4GQq-.js +29556 -0
  72. package/dist/{index-wzdbEEcZ.js → index-Cv54KpqR.js} +1 -1
  73. package/dist/{index-Cw_aXFH6.js → index-D-9zLobO.js} +269 -173
  74. package/dist/{index-HZC9LLAX.js → index-DLEuoM6n.js} +48 -4
  75. package/dist/{index-CZgQVRsm.js → index-DX1pCi2M.js} +1 -1
  76. package/dist/{index-OzicErwL.js → index-Dtvx0B0f.js} +24 -21
  77. package/dist/index-vh86FiIQ.js +10 -0
  78. package/dist/{loading-DuEFUCwF.js → index-wwxalEHE.js} +4609 -4886
  79. package/dist/{index.esm2017-CppSMh_U.js → index.esm2017-B8lg2TL9.js} +206 -206
  80. package/dist/loading-C7yV_Gjh.js +71 -0
  81. package/dist/{membership-nsMtWeTC.js → membership-DVqBNqdx.js} +80 -66
  82. package/dist/money-DlG5z_tl.js +15 -0
  83. package/dist/number-CEbwCzov.js +12 -0
  84. package/dist/objectid-Du3yg6Vv.js +145 -0
  85. package/dist/plugins-D_RKZlC6.js +208 -0
  86. package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
  87. package/dist/reward-Bv14VitO.js +36 -0
  88. package/dist/{rule-CPIMqt1h.js → rule-BR5ZUIKH.js} +185 -178
  89. package/dist/{rule-builder-CSs5XRKP.js → rule-builder-CITle0qo.js} +1 -1
  90. package/dist/style.css +1 -1
  91. package/dist/{template-CJZoYavu.js → template-ybPO7TWN.js} +5 -5
  92. package/dist/trigger-5C6n0ORq.js +144 -0
  93. package/dist/user-CP3tloTS.js +54 -0
  94. package/dist/vue-i18n-DGew8_SZ.js +2365 -0
  95. package/dist/{xlsx-BZlnYinX.js → xlsx-CsBnmxHp.js} +1 -1
  96. package/package.json +11 -7
  97. package/dist/Analytic-5QztrYSp.js +0 -622
  98. package/dist/Card-BsjFTVsH.js +0 -825
  99. package/dist/Collections-7wqZHOax.js +0 -453
  100. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-Cuklmxur.js +0 -2813
  101. package/dist/Game-DlzDerT7.js +0 -255
  102. package/dist/Marketing-BqhpaG4o.js +0 -316
  103. package/dist/Member-AFgZcdtz.js +0 -69
  104. package/dist/MemberList-BKgrLz2C.js +0 -1733
  105. package/dist/MemberTransactions-BwT3zE2a.js +0 -38
  106. package/dist/Mission-BTAia7AS.js +0 -261
  107. package/dist/Promotion-0v3kvsK3.js +0 -247
  108. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BkFm7tXq.js +0 -1753
  109. package/dist/Segment-BenLupqV.js +0 -437
  110. package/dist/Setting-0fpREqpJ.js +0 -1901
  111. package/dist/Store-BDGwe4ar.js +0 -1511
  112. package/dist/StoreRewards-TDZt9H1V.js +0 -401
  113. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BqpsMcl1.js +0 -890
  114. package/dist/Voucher-DsP_rh8I.js +0 -490
  115. package/dist/app-Cg2pTZJK.js +0 -53428
  116. package/dist/business-Cw_qGw8y.js +0 -78
  117. package/dist/dto-ozu1smC3.js +0 -2770
  118. package/dist/index-BLACZ3-L.js +0 -206
  119. package/dist/index-BaozRfWB.js +0 -762
  120. package/dist/index-CjVmULNd.js +0 -99
  121. package/dist/index-CuvNtC_M.js +0 -61
  122. package/dist/index-DAEmawcj.js +0 -298
  123. package/dist/index-Oxr-mU6h.js +0 -29193
  124. package/dist/money-BGZPFtUc.js +0 -15
  125. package/dist/number-4J0xvXP9.js +0 -12
  126. package/dist/user-Bm4KttFq.js +0 -37
  127. package/dist/vue-i18n-CCyiVzOE.js +0 -2365
@@ -1,11 +1,11 @@
1
- import { g as t, S as n, b as u } from "./index-Oxr-mU6h.js";
1
+ import { g as t, S as c, b as u } from "./index-Csb4GQq-.js";
2
2
  const a = () => {
3
- const e = n.getBusinessId();
3
+ const e = c.getBusinessId();
4
4
  if (!e) throw new Error("Invalid business ID");
5
5
  return u(`businesses/${e}/membership`, {
6
6
  noIdRequired: !0
7
7
  });
8
- }, c = {
8
+ }, d = {
9
9
  async read() {
10
10
  return t(await a().get(""));
11
11
  },
@@ -45,6 +45,16 @@ const a = () => {
45
45
  await a().put("store/bundle", e)
46
46
  );
47
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
+ },
48
58
  async readRewards() {
49
59
  return t(await a().get("rewards"));
50
60
  },
@@ -81,6 +91,12 @@ const a = () => {
81
91
  await a().post("/cards", e)
82
92
  );
83
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
+ },
84
100
  async updateReward(e, r) {
85
101
  return t(
86
102
  await a().put(`rewards/${e}`, r)
@@ -88,8 +104,36 @@ const a = () => {
88
104
  },
89
105
  async deleteReward(e) {
90
106
  return t(await a().delete(`rewards/${e}`));
107
+ },
108
+ async getEmailAddresses() {
109
+ return t(await a().get("email-addresses"));
110
+ },
111
+ async readCollectionCountByMemberId(e, r) {
112
+ return t(
113
+ await a().get(`/collections/count/${e}`, {
114
+ params: { type: r }
115
+ })
116
+ );
117
+ },
118
+ async readCollectionsByMemberId(e, r, s) {
119
+ const n = t(
120
+ await a().get(`/collections/${e}`, {
121
+ params: { ...r, ...s }
122
+ })
123
+ );
124
+ return {
125
+ meta: n.meta,
126
+ resources: n.resources
127
+ };
128
+ },
129
+ async readMissionCountByMemberId(e) {
130
+ return t(
131
+ await a().get(
132
+ `/collections/mission/count/${e}`
133
+ )
134
+ );
91
135
  }
92
136
  };
93
137
  export {
94
- c as m
138
+ d as m
95
139
  };
@@ -1,3 +1,3 @@
1
1
  import "vue-router";
2
- import { R as o } from "./app-DzAexOqx.js";
2
+ import { R as o } from "./app-D5BiHqr1.js";
3
3
  o["$connect-DASHBOARD"];
@@ -1,71 +1,74 @@
1
- import { g as n, S as I, u as C, b as _ } from "./index-Oxr-mU6h.js";
2
- const c = () => {
1
+ import { g as t, S as I, u as C, b as w } from "./index-Csb4GQq-.js";
2
+ const a = () => {
3
3
  if (!I.getBusinessId()) throw new Error("Invalid business ID");
4
4
  return C("users");
5
- }, a = () => {
5
+ }, c = () => {
6
6
  const e = I.getBusinessId();
7
7
  if (!e) throw new Error("Invalid business ID");
8
- return _(`businesses/${e}/membership`, {
8
+ return w(`businesses/${e}/membership`, {
9
9
  noIdRequired: !0
10
10
  });
11
11
  }, y = {
12
12
  async read(e) {
13
- const s = n(
14
- await c().get("", { params: e })
15
- ), t = s.resources.map((r) => {
16
- var i, o, d, l, u, p, m, b;
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
17
  return {
18
18
  ...r,
19
19
  collection_TIER_0_balance: ((o = (i = r.collection.TIER) == null ? void 0 : i[0]) == null ? void 0 : o.balance) ?? 0,
20
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: ((p = (u = r.collection.COIN) == null ? void 0 : u[0]) == null ? void 0 : p.balance) ?? 0,
21
+ collection_COIN_0_balance: ((u = (p = r.collection.COIN) == null ? void 0 : p[0]) == null ? void 0 : u.balance) ?? 0,
22
22
  collection_TITLE_0_title: ((b = (m = r.collection.TITLE) == null ? void 0 : m[0]) == null ? void 0 : b.title) ?? ""
23
23
  };
24
24
  });
25
25
  return {
26
26
  meta: s.meta,
27
- resources: t
27
+ resources: n
28
28
  };
29
29
  },
30
30
  async readById(e) {
31
- return n(await c().get(`${e}`));
31
+ return t(await a().get(`${e}`));
32
32
  },
33
33
  async sendCredit(e, s) {
34
- return n(
35
- await a().post(
34
+ return t(
35
+ await c().post(
36
36
  `members/${e}/send-credit`,
37
37
  s
38
38
  )
39
39
  );
40
40
  },
41
41
  async deductCredit(e, s) {
42
- return n(
43
- await a().post(
42
+ return t(
43
+ await c().post(
44
44
  `members/${e}/deduct-credit`,
45
45
  s
46
46
  )
47
47
  );
48
48
  },
49
49
  async sendCoin(e, s) {
50
- return n(
51
- await a().post(
50
+ return t(
51
+ await c().post(
52
52
  `members/${e}/send-coin`,
53
53
  s
54
54
  )
55
55
  );
56
56
  },
57
57
  async deductCoin(e, s) {
58
- return n(
59
- await a().post(
58
+ return t(
59
+ await c().post(
60
60
  `members/${e}/deduct-coin`,
61
61
  s
62
62
  )
63
63
  );
64
64
  },
65
65
  async updateMember(e, s) {
66
- return n(
67
- await c().put(`${e}`, s)
66
+ return t(
67
+ await a().put(`${e}`, s)
68
68
  );
69
+ },
70
+ async import(e) {
71
+ return await a().post("import", e);
69
72
  }
70
73
  };
71
74
  export {
@@ -0,0 +1,10 @@
1
+ const e = {
2
+ sortBy: "_id",
3
+ descending: !1,
4
+ rowsPerPage: 1e3,
5
+ page: 1,
6
+ rowsNumber: 0
7
+ };
8
+ export {
9
+ e
10
+ };