@feedmepos/mf-connect 0.1.0-beta.4 → 0.1.0-beta.40

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 (106) hide show
  1. package/dist/Analytic-DArrGnk-.js +426 -0
  2. package/dist/{App-BnQwjxIr.js → App-CxJaPSSE.js} +397 -384
  3. package/dist/{Broadcast-y1kP18mo.js → Broadcast-C5CtxHYC.js} +32 -32
  4. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Dj0JUMOk.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DJAGRlyI.js} +6 -8
  5. package/dist/Card-ZsgNMrz5.js +894 -0
  6. package/dist/{Collections-DPfbZMg1.js → Collections-CodLm2hP.js} +28 -34
  7. package/dist/{Credit-QleM_b6q.js → Credit-8qliEPqA.js} +14 -14
  8. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +108 -0
  9. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DZOeB8YS.js +2209 -0
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-2hRTF1EJ.js → EffectSheet.vue_vue_type_style_index_0_lang-Cf4nXUmp.js} +8 -8
  11. package/dist/{Experience-DGKj8ChY.js → Experience-DR0_RUqZ.js} +8 -8
  12. package/dist/{Game-BxRdzSma.js → Game-BZkQZDV_.js} +15 -15
  13. package/dist/Index-BP9YGCex.js +255 -0
  14. package/dist/Marketing-Bt-ViwTP.js +20070 -0
  15. package/dist/{Member-CteeBDi2.js → Member-DW_uVRyE.js} +4 -4
  16. package/dist/MemberList-BQcsV-Bz.js +1554 -0
  17. package/dist/MemberTransactions-xJaYPP7W.js +45 -0
  18. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CZ2M8huU.js → MessageInput.vue_vue_type_script_setup_true_lang-Txp1lndf.js} +2 -2
  19. package/dist/{Mission-CZgXBa09.js → Mission-CQ2PlxLv.js} +98 -86
  20. package/dist/Overview-CWhTf5Tz.js +1063 -0
  21. package/dist/{Point-C2vzEfRP.js → Point-BCvUsXLl.js} +23 -23
  22. package/dist/{Promotion-337OT0sP.js → Promotion-CrROpksP.js} +53 -47
  23. package/dist/Record-B6RRMDQn.js +337 -0
  24. package/dist/Reward-CTZ3IllK.js +432 -0
  25. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-C19vRccs.js +149 -0
  26. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-C3irbjUK.js +1637 -0
  27. package/dist/Segment-h-HRoL19.js +566 -0
  28. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-D5kijSzp.js +181 -0
  29. package/dist/{Setting-DVK2594u.js → Setting-CZIFruFT.js} +8 -8
  30. package/dist/Store-CbjSMVfb.js +1743 -0
  31. package/dist/{StoreRewards-BpEmNueE.js → StoreRewards-zkEVickE.js} +12 -12
  32. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-DU5v6oro.js +1099 -0
  33. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DT48bSiH.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-i_y1gFyL.js} +1 -1
  34. package/dist/{Tier-BwvOhyXR.js → Tier-BCgp2Ngt.js} +325 -317
  35. package/dist/{Title-DRPdKYRO.js → Title-CJNx0TkK.js} +197 -183
  36. package/dist/{Transaction-BnLvacwW.js → Transaction-DWvfvfsk.js} +2 -2
  37. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-Dkln_L8k.js +130 -0
  38. package/dist/{Voucher-BQL8J_EA.js → Voucher-bYVNHe4l.js} +31 -31
  39. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-BX0Fo_5O.js +419 -0
  40. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-B316b_ta.js → ZodTextField.vue_vue_type_script_setup_true_lang-D5Idn8So.js} +1 -1
  41. package/dist/{app-BVaQwBvq.js → app-CdJSO9Ad.js} +1 -1
  42. package/dist/{app-zO552-Dl.js → app-fsxaQBSg.js} +1183 -1154
  43. package/dist/app.js +1 -1
  44. package/dist/{business-BSl6NSdS.js → business-CDeQ06qx.js} +1 -1
  45. package/dist/{campaign-CxN6mq_l.js → campaign-D8lQOOTp.js} +2 -2
  46. package/dist/campaign-Dwea7uho.js +1810 -0
  47. package/dist/campaign.enum-CF_gt52u.js +20 -0
  48. package/dist/campaign.fn-BavlaqB6.js +758 -0
  49. package/dist/collectible.enum-DVZRkRwR.js +19 -0
  50. package/dist/{collection.fn-C-2dyWp9.js → collection.fn-CIicjfIz.js} +2 -2
  51. package/dist/dto-CMkenMV_.js +214 -0
  52. package/dist/{effect-D8y0J47O.js → effect-IbJ225qB.js} +9 -9
  53. package/dist/email-addresses-LDTzLm79.js +705 -0
  54. package/dist/{export-BxTrifKO.js → export-BCSOuQ5g.js} +3 -3
  55. package/dist/{helper-bEmZlTwA.js → helper-BZxLzAuG.js} +1 -1
  56. package/dist/{index-B2qriSSk.js → index-0Lmb_8CU.js} +1 -1
  57. package/dist/{index-JBp0chol.js → index-B3r9-9qd.js} +1500 -1479
  58. package/dist/{index-BFWCbVq2.js → index-BVd0uPuT.js} +1 -1
  59. package/dist/{index-Dnv999nc.js → index-BtFnlSuJ.js} +1 -1
  60. package/dist/{index-Ckz-D_AP.js → index-BxrHVPJL.js} +2188 -931
  61. package/dist/index-C0VSGU1p.js +32 -0
  62. package/dist/{index-DuYb25dY.js → index-CYLAuP7e.js} +34 -4
  63. package/dist/index-CcpRLc8R.js +44 -0
  64. package/dist/index-CsaQJMAR.js +66 -0
  65. package/dist/index-CvW4f2DA.js +29000 -0
  66. package/dist/{index-DHTYWfTs.js → index-DG0LFjr2.js} +207 -195
  67. package/dist/index-DbmWadFy.js +54 -0
  68. package/dist/index-vh86FiIQ.js +10 -0
  69. package/dist/{index-C_WyKCqN.js → index-xoJ0Hv7u.js} +1 -1
  70. package/dist/{index.esm2017-Tw7KabwI.js → index.esm2017-CaKC72Zr.js} +33 -33
  71. package/dist/{loading-60xYxow_.js → loading-CmdIDK9W.js} +591 -597
  72. package/dist/{membership-43FU3EmV.js → membership-BKNbXD5h.js} +52 -44
  73. package/dist/money-DbuB1-Ff.js +15 -0
  74. package/dist/number-CJ4JetR2.js +12 -0
  75. package/dist/objectid-CSzIZWFn.js +145 -0
  76. package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
  77. package/dist/reward-BlvDqH4n.js +36 -0
  78. package/dist/{rule-DlHrKp8K.js → rule-Csn-Prz_.js} +180 -177
  79. package/dist/{rule-builder-CU8P8b8U.js → rule-builder-BKMY8R7O.js} +1 -1
  80. package/dist/style.css +1 -1
  81. package/dist/{template-9StyN-b7.js → template-DyhD97jJ.js} +5 -5
  82. package/dist/trigger-Cb8-87Qi.js +114 -0
  83. package/dist/{xlsx-CrRvm5Vs.js → usePagination-9TxpwvcN.js} +3183 -2962
  84. package/dist/user-Drjp-FP9.js +54 -0
  85. package/dist/{vue-i18n-UKlvivrG.js → vue-i18n-CDCNED_Y.js} +155 -155
  86. package/package.json +8 -7
  87. package/dist/Analytic-BtldByrt.js +0 -622
  88. package/dist/Card-kW7k8kOl.js +0 -825
  89. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BtI2rY4y.js +0 -2813
  90. package/dist/Marketing-CG4GQdax.js +0 -316
  91. package/dist/MemberList-CANkPyR0.js +0 -1733
  92. package/dist/MemberTransactions-CcCa21fY.js +0 -38
  93. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Dh3naMXv.js +0 -1753
  94. package/dist/Segment-Clstp5D-.js +0 -437
  95. package/dist/Store-PnpBvIoo.js +0 -1511
  96. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CrDhK2dt.js +0 -890
  97. package/dist/dto-B20bsdh6.js +0 -2770
  98. package/dist/index-BUCjM4jq.js +0 -29193
  99. package/dist/index-Ceu2PcnH.js +0 -206
  100. package/dist/index-CuvNtC_M.js +0 -61
  101. package/dist/index-D3DAgTFI.js +0 -762
  102. package/dist/index-Kjelmo0Y.js +0 -298
  103. package/dist/money-CmR3-qMz.js +0 -15
  104. package/dist/number-CZlrO6Sq.js +0 -12
  105. package/dist/usePagination-BeF5K3M7.js +0 -223
  106. package/dist/user-Bm4KttFq.js +0 -37
@@ -0,0 +1,32 @@
1
+ import { g as s, S as o, b as i } from "./index-CvW4f2DA.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,11 +1,11 @@
1
- import { g as t, S as n, b as u } from "./index-BUCjM4jq.js";
1
+ import { g as t, S as c, b as u } from "./index-CvW4f2DA.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
+ }, i = {
9
9
  async read() {
10
10
  return t(await a().get(""));
11
11
  },
@@ -45,6 +45,12 @@ const a = () => {
45
45
  await a().put("store/bundle", e)
46
46
  );
47
47
  },
48
+ async sendBundle(e) {
49
+ return t(await a().post("store/bundle/send", e));
50
+ },
51
+ async refundStoreTransaction(e) {
52
+ return t(await a().post("store/refund", e));
53
+ },
48
54
  async readRewards() {
49
55
  return t(await a().get("rewards"));
50
56
  },
@@ -81,6 +87,12 @@ const a = () => {
81
87
  await a().post("/cards", e)
82
88
  );
83
89
  },
90
+ async updateCard(e) {
91
+ return t(await a().put("cards", e));
92
+ },
93
+ async deleteCard(e) {
94
+ return t(await a().delete(`cards/${e}`));
95
+ },
84
96
  async updateReward(e, r) {
85
97
  return t(
86
98
  await a().put(`rewards/${e}`, r)
@@ -88,8 +100,26 @@ const a = () => {
88
100
  },
89
101
  async deleteReward(e) {
90
102
  return t(await a().delete(`rewards/${e}`));
103
+ },
104
+ async readCollectionCountByMemberId(e, r) {
105
+ return t(
106
+ await a().get(`/collections/count/${e}`, {
107
+ params: { type: r }
108
+ })
109
+ );
110
+ },
111
+ async readCollectionsByMemberId(e, r, s) {
112
+ const n = t(
113
+ await a().get(`/collections/${e}`, {
114
+ params: { ...r, ...s }
115
+ })
116
+ );
117
+ return {
118
+ meta: n.meta,
119
+ resources: n.resources
120
+ };
91
121
  }
92
122
  };
93
123
  export {
94
- c as m
124
+ i as m
95
125
  };
@@ -0,0 +1,44 @@
1
+ import { g as r, a as n, S as o, b as c } from "./index-CvW4f2DA.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,66 @@
1
+ const d = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu"), R = new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])", "gu"), C = new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d", "u"), A = /[^\p{L}\d]+/giu, n = "$1\0$2", L = "";
2
+ function h(r) {
3
+ let e = r.trim();
4
+ e = e.replace(d, n).replace(R, n), e = e.replace(A, "\0");
5
+ let c = 0, l = e.length;
6
+ for (; e.charAt(c) === "\0"; )
7
+ c++;
8
+ if (c === l)
9
+ return [];
10
+ for (; e.charAt(l - 1) === "\0"; )
11
+ l--;
12
+ return e.slice(c, l).split(/\0/g);
13
+ }
14
+ function w(r) {
15
+ const e = h(r);
16
+ for (let c = 0; c < e.length; c++) {
17
+ const l = e[c], t = C.exec(l);
18
+ if (t) {
19
+ const a = t.index + (t[1] ?? t[2]).length;
20
+ e.splice(c, 1, l.slice(0, a), l.slice(a));
21
+ }
22
+ }
23
+ return e;
24
+ }
25
+ function m(r, e) {
26
+ const [c, l, t] = P(r, e), a = i(e == null ? void 0 : e.locale), s = E(e == null ? void 0 : e.locale);
27
+ return c + l.map(x(a, s)).join((e == null ? void 0 : e.delimiter) ?? " ") + t;
28
+ }
29
+ function S(r, e) {
30
+ const [c, l, t] = P(r, e), a = i(e == null ? void 0 : e.locale), s = E(e == null ? void 0 : e.locale), f = x(a, s);
31
+ return c + l.map((u, _) => _ === 0 ? f(u) : a(u)).join((e == null ? void 0 : e.delimiter) ?? " ") + t;
32
+ }
33
+ function i(r) {
34
+ return r === !1 ? (e) => e.toLowerCase() : (e) => e.toLocaleLowerCase(r);
35
+ }
36
+ function E(r) {
37
+ return r === !1 ? (e) => e.toUpperCase() : (e) => e.toLocaleUpperCase(r);
38
+ }
39
+ function x(r, e) {
40
+ return (c) => `${e(c[0])}${r(c.slice(1))}`;
41
+ }
42
+ function P(r, e = {}) {
43
+ const c = e.split ?? (e.separateNumbers ? w : h), l = e.prefixCharacters ?? L, t = e.suffixCharacters ?? L;
44
+ let a = 0, s = r.length;
45
+ for (; a < r.length; ) {
46
+ const f = r.charAt(a);
47
+ if (!l.includes(f))
48
+ break;
49
+ a++;
50
+ }
51
+ for (; s > a; ) {
52
+ const f = s - 1, u = r.charAt(f);
53
+ if (!t.includes(u))
54
+ break;
55
+ s = f;
56
+ }
57
+ return [
58
+ r.slice(0, a),
59
+ c(r.slice(a, s)),
60
+ r.slice(s)
61
+ ];
62
+ }
63
+ export {
64
+ m as c,
65
+ S as s
66
+ };