@feedmepos/mf-connect 0.1.0-beta.6 → 0.1.0-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.
Files changed (118) hide show
  1. package/dist/Analytic-CXegtSEd.js +427 -0
  2. package/dist/{App-C2616cfr.js → App-m9A9s3wd.js} +445 -420
  3. package/dist/AuditLogs-CpUOkyXq.js +1886 -0
  4. package/dist/Bin-m6mPl3FE.js +166 -0
  5. package/dist/{Broadcast-CqSwLTAq.js → Broadcast-DNjHnlPp.js} +56 -54
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DrR9Pmtb.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-cjdNZLkE.js} +6 -8
  7. package/dist/Card-CAvS5aaN.js +896 -0
  8. package/dist/Collections-3C9I2byH.js +459 -0
  9. package/dist/{Credit-CPcLgnsq.js → Credit-DcAmLeMb.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-wGFMCV-y.js +2181 -0
  13. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-D2buK6Dj.js → EffectSheet.vue_vue_type_style_index_0_lang-CIEn1N24.js} +6 -6
  14. package/dist/{Experience-BoBikt-x.js → Experience-GF9yOrlE.js} +32 -30
  15. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-BrPLkFX8.js +118 -0
  16. package/dist/{Game-DR8PyYZa.js → Game-CzBn_Li3.js} +39 -37
  17. package/dist/Index-Bhmkdb4n.js +259 -0
  18. package/dist/Marketing-DlbcOoiN.js +20071 -0
  19. package/dist/Member-CdXG5uEN.js +317 -0
  20. package/dist/MemberList-xIOXAHJf.js +1598 -0
  21. package/dist/MemberTransactions-CsW9vso0.js +45 -0
  22. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DhtIZCjT.js → MessageInput.vue_vue_type_script_setup_true_lang-jtjk9NjI.js} +83 -71
  23. package/dist/{Mission-CMpvz9zN.js → Mission-2UjKrmGe.js} +101 -87
  24. package/dist/Overview-ClittdS6.js +1078 -0
  25. package/dist/{Point-DkZn6p9s.js → Point-BON4g7zE.js} +55 -53
  26. package/dist/{Promotion-B7YzwPc_.js → Promotion-qUEZmmm8.js} +65 -57
  27. package/dist/Queue-DA4glGdE.js +244 -0
  28. package/dist/Record-EUAnp1--.js +340 -0
  29. package/dist/Reward-ChbsdQuW.js +442 -0
  30. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-CUFw56sf.js +150 -0
  31. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BKesht7Y.js +1637 -0
  32. package/dist/Segment-DbwFx6vD.js +568 -0
  33. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-lwpYOWMR.js +181 -0
  34. package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-BbuOPEGY.js +147 -0
  35. package/dist/Setting-FMTftvlU.js +1931 -0
  36. package/dist/Store-BkUwiBUq.js +1751 -0
  37. package/dist/{StoreRewards-6BzVwZqr.js → StoreRewards-Z8uhK0v1.js} +33 -32
  38. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-DwFYJ1Iz.js +943 -0
  39. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-B6cAveco.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-D6mrJp05.js} +1 -1
  40. package/dist/{Tier-CW-46oJS.js → Tier-COCmcJJF.js} +327 -318
  41. package/dist/{Title-CE9rWVdi.js → Title-7qCjbur9.js} +199 -184
  42. package/dist/{Transaction-B21RrC4M.js → Transaction-9FS_K2hv.js} +2 -2
  43. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-Fx-J2gcK.js +130 -0
  44. package/dist/Voucher-Dx70JAgw.js +354 -0
  45. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-CECJsKRJ.js +419 -0
  46. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BiVZwBuG.js → ZodTextField.vue_vue_type_script_setup_true_lang-Bne_nxYS.js} +1 -1
  47. package/dist/{app-CjhXHUQv.js → app-CWKpKW78.js} +1 -1
  48. package/dist/app-q6W6-faT.js +7059 -0
  49. package/dist/app.js +1 -1
  50. package/dist/{business-aHhRUXc0.js → business-D5AQBRGS.js} +1 -1
  51. package/dist/campaign-BGiM8ccX.js +1810 -0
  52. package/dist/{campaign-DH9NUNf_.js → campaign-v8MAkDo-.js} +2 -2
  53. package/dist/campaign.enum-Dro6UEcE.js +20 -0
  54. package/dist/campaign.fn-DsJUr-gE.js +758 -0
  55. package/dist/collectible.enum-BH9pX7PE.js +19 -0
  56. package/dist/{collection.fn-CYlsA-kW.js → collection.fn-CHiRShK_.js} +2 -2
  57. package/dist/dto-CeX9egUp.js +214 -0
  58. package/dist/{effect-LSc9YanX.js → effect-DtJQE1cD.js} +9 -9
  59. package/dist/email-addresses-DKOsgzML.js +705 -0
  60. package/dist/{export-Cf0-C5Ly.js → export-Daiv_zH9.js} +5 -5
  61. package/dist/{helper-CiZpeMCM.js → helper-B5Emawnj.js} +1 -1
  62. package/dist/index-9WBy0L7U.js +54 -0
  63. package/dist/{index-D6cEOHP4.js → index-BSHuLDD0.js} +1501 -1480
  64. package/dist/{index-BVb5-Ht8.js → index-CUl_8M_c.js} +259 -173
  65. package/dist/{index-gxwjKu3-.js → index-CgCcvX_L.js} +2212 -871
  66. package/dist/index-CsaQJMAR.js +66 -0
  67. package/dist/{index-D_83JP2i.js → index-DrWrGAHJ.js} +48 -4
  68. package/dist/index-DteeKoFo.js +115 -0
  69. package/dist/{index-DW3PRjPL.js → index-Dw2RtHKR.js} +1 -1
  70. package/dist/{index-kPhrD63q.js → index-ICbXrXiP.js} +1 -1
  71. package/dist/index-Xwc07I54.js +29000 -0
  72. package/dist/{index-DtsDOuDx.js → index-ZBSI6ViG.js} +24 -21
  73. package/dist/index-g9NNHS8s.js +32 -0
  74. package/dist/index-p6F08hhh.js +44 -0
  75. package/dist/index-vh86FiIQ.js +10 -0
  76. package/dist/{index.esm2017-B7oVYIbY.js → index.esm2017-B-SDA6Y2.js} +121 -121
  77. package/dist/loading-CDbkBsRr.js +71 -0
  78. package/dist/{membership-Dw1ylJ9Y.js → membership-B8uwuntJ.js} +54 -46
  79. package/dist/money-DRKB3Rpe.js +15 -0
  80. package/dist/number-DtyC1DJU.js +12 -0
  81. package/dist/objectid-wGrq9P1h.js +145 -0
  82. package/dist/{loading-7yq1tinq.js → plugins-DKNh-lBz.js} +3871 -3943
  83. package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
  84. package/dist/reward-C2jv5dmJ.js +36 -0
  85. package/dist/{rule-C0Q_SHow.js → rule-C5AMTchR.js} +180 -177
  86. package/dist/{rule-builder-iu17XIof.js → rule-builder-DLOGHT1l.js} +1 -1
  87. package/dist/style.css +1 -1
  88. package/dist/{template-CyOanTMu.js → template-C-fz1DXI.js} +5 -5
  89. package/dist/trigger-DTErX60D.js +144 -0
  90. package/dist/user-CVRoQGCF.js +54 -0
  91. package/dist/{vue-i18n-B0fLJH7a.js → vue-i18n-CxMxiW_u.js} +366 -366
  92. package/dist/{xlsx-BYO_bB9J.js → xlsx-CARvMJN_.js} +1 -1
  93. package/package.json +10 -6
  94. package/dist/Analytic-muDf0oMG.js +0 -622
  95. package/dist/Card-bhLoK0ZV.js +0 -825
  96. package/dist/Collections-DjtsAiol.js +0 -453
  97. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-U_QZneS6.js +0 -2813
  98. package/dist/Marketing-Dny2nMUl.js +0 -316
  99. package/dist/Member-CP_smyk8.js +0 -69
  100. package/dist/MemberList-CR3eYI9p.js +0 -1733
  101. package/dist/MemberTransactions-RTx_lKFb.js +0 -38
  102. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Cs67_GLE.js +0 -1753
  103. package/dist/Segment-Bb4gHt5V.js +0 -437
  104. package/dist/Setting-Xj0AVzh3.js +0 -1901
  105. package/dist/Store-BWRHQ6Ie.js +0 -1511
  106. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BsFnT8BS.js +0 -890
  107. package/dist/Voucher-KK9fBI0u.js +0 -490
  108. package/dist/app-Dvf_JNMf.js +0 -5764
  109. package/dist/dto-DArfyZAI.js +0 -2770
  110. package/dist/index-Bi_LGEtY.js +0 -99
  111. package/dist/index-CiQDG7Cm.js +0 -762
  112. package/dist/index-CuvNtC_M.js +0 -61
  113. package/dist/index-DQfjSSMF.js +0 -206
  114. package/dist/index-DcxssxPi.js +0 -29193
  115. package/dist/index-DqJVH2kv.js +0 -298
  116. package/dist/money-CPd0XTNv.js +0 -15
  117. package/dist/number-BgXY4un8.js +0 -12
  118. package/dist/user-Bm4KttFq.js +0 -37
@@ -1,71 +1,74 @@
1
- import { g as n, S as I, u as C, b as _ } from "./index-DcxssxPi.js";
2
- const c = () => {
1
+ import { g as t, S as I, u as C, b as w } from "./index-Xwc07I54.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,32 @@
1
+ import { g as s, S as o, b as i } from "./index-Xwc07I54.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
+ };
@@ -0,0 +1,44 @@
1
+ import { g as r, a as n, S as o, b as c } from "./index-Xwc07I54.js";
2
+ const a = () => {
3
+ const e = o.getBusinessId();
4
+ if (!e) throw new Error("Invalid business ID");
5
+ return c(`businesses/${e}/transactions`, {
6
+ noIdRequired: !0
7
+ });
8
+ }, d = {
9
+ async readAll(e, t) {
10
+ const s = r(
11
+ await a().get("", {
12
+ params: { ...e, ...t }
13
+ })
14
+ );
15
+ return {
16
+ meta: s.meta,
17
+ resources: s.resources
18
+ };
19
+ },
20
+ async readStoreTransactions(e, t) {
21
+ const s = r(
22
+ await a().get("/store", {
23
+ params: { ...e, ...t }
24
+ })
25
+ );
26
+ return {
27
+ meta: s.meta,
28
+ resources: s.resources
29
+ };
30
+ },
31
+ async readBills(e, t, s) {
32
+ return (await n("").get(
33
+ `/restaurants/${e}/receipt?start=${t}&end=${s}`
34
+ )).data;
35
+ },
36
+ async readPurchaseCountByMember(e) {
37
+ return r(
38
+ await a().get(`/store/${e}`)
39
+ );
40
+ }
41
+ };
42
+ export {
43
+ d as t
44
+ };
@@ -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
+ };