@feedmepos/mf-connect 0.1.0-beta.5 → 0.1.0-beta.51

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 (112) hide show
  1. package/dist/Analytic-DP8oPOug.js +427 -0
  2. package/dist/{App-C8Qfnkhz.js → App-DSFvQRnz.js} +441 -420
  3. package/dist/AuditLogs-YSw2xsZw.js +1885 -0
  4. package/dist/Bin-Da_eermT.js +166 -0
  5. package/dist/{Broadcast-BK-1MQkL.js → Broadcast-DoNlWo4j.js} +13 -12
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BLzpFQoc.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DItda2cA.js} +6 -8
  7. package/dist/Card-CbxtYecE.js +896 -0
  8. package/dist/{Collections-TA4iW1r0.js → Collections-p1UhWf85.js} +27 -31
  9. package/dist/{Credit-Df9iFQjZ.js → Credit-DQta1iUA.js} +17 -16
  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-CLFeMi0j.js +169 -0
  12. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CEWFRlr3.js +2181 -0
  13. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BCRVyPwl.js → EffectSheet.vue_vue_type_style_index_0_lang-BN5MFZTx.js} +6 -6
  14. package/dist/{Experience-ByLFXKn6.js → Experience-BnwKk_PO.js} +26 -25
  15. package/dist/{Game-B6Ez0pfW.js → Game-_4Hj3Yyt.js} +21 -20
  16. package/dist/Index-Bmz1R6hW.js +259 -0
  17. package/dist/Marketing-D0V260mx.js +20071 -0
  18. package/dist/{Member-TobP1ISp.js → Member-BIEihOp5.js} +4 -4
  19. package/dist/MemberList-C4EbD7jO.js +1598 -0
  20. package/dist/MemberTransactions-DvYurEaZ.js +45 -0
  21. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CZ-w6iZi.js → MessageInput.vue_vue_type_script_setup_true_lang-vGMke4sb.js} +6 -6
  22. package/dist/{Mission-D9uTVo0G.js → Mission-C6gKiY9l.js} +97 -84
  23. package/dist/Overview-xqu1_7-7.js +1078 -0
  24. package/dist/{Point-4rDr-53e.js → Point-C02Z0_w5.js} +26 -25
  25. package/dist/{Promotion-BKO_dtQk.js → Promotion-BBfa32MT.js} +55 -48
  26. package/dist/Record-Bcj2D0fP.js +340 -0
  27. package/dist/Reward-BMvRwWnr.js +442 -0
  28. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-gt0h6XDa.js +150 -0
  29. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CPw-z0L1.js +1637 -0
  30. package/dist/Segment-BpkWm7ah.js +568 -0
  31. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-_t32qpAQ.js +181 -0
  32. package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-CWNF7Srw.js +147 -0
  33. package/dist/{Setting-B7oISD0D.js → Setting-QEqA9Sjr.js} +610 -586
  34. package/dist/Store-Bb5Qh_fa.js +1744 -0
  35. package/dist/{StoreRewards-AMxIYhjZ.js → StoreRewards-CqmFv4KN.js} +33 -32
  36. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-SGMgGM-I.js +939 -0
  37. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-B2szciPk.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Bd63YQLw.js} +1 -1
  38. package/dist/{Tier-DkxdNj-K.js → Tier-BG4EQUN4.js} +327 -318
  39. package/dist/{Title-VFpCOsMO.js → Title-CLZYAG35.js} +199 -184
  40. package/dist/{Transaction-BgKD8n2L.js → Transaction-DxKmtuW2.js} +2 -2
  41. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-DWqf1lcK.js +130 -0
  42. package/dist/Voucher-BiBkN12U.js +353 -0
  43. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-Bv6ro9Ul.js +419 -0
  44. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-B2FGvyza.js → ZodTextField.vue_vue_type_script_setup_true_lang-DaN1_uKj.js} +1 -1
  45. package/dist/{app-DA-t-2Zt.js → app-BDYHz7bx.js} +1 -1
  46. package/dist/{app-DUl5dav5.js → app-BToiZpVg.js} +1758 -1496
  47. package/dist/app.js +1 -1
  48. package/dist/{business-CeCitOY4.js → business-Cdck2Mo8.js} +1 -1
  49. package/dist/{campaign-CcLM6e4s.js → campaign-U0MVzGkd.js} +2 -2
  50. package/dist/campaign-V6y28epS.js +1810 -0
  51. package/dist/campaign.enum-C2ZHkwav.js +20 -0
  52. package/dist/campaign.fn-C8hqL7sq.js +758 -0
  53. package/dist/collectible.enum-DPFWrwtU.js +19 -0
  54. package/dist/{collection.fn-CAEP7YxB.js → collection.fn-BUtvp8Q7.js} +2 -2
  55. package/dist/dto-CO3dr-5e.js +214 -0
  56. package/dist/{effect-Dt7rXOBy.js → effect-CTIglwNj.js} +9 -9
  57. package/dist/email-addresses-fTprqBTm.js +705 -0
  58. package/dist/{export-CyioiboQ.js → export-BNfnVhxu.js} +5 -5
  59. package/dist/{helper-FA_9AhGV.js → helper-BB4sHiiB.js} +1 -1
  60. package/dist/index-BZjpXQbO.js +32 -0
  61. package/dist/index-BnJgi3GR.js +54 -0
  62. package/dist/{index-DLN4Kzz_.js → index-BpmAtLiE.js} +1 -1
  63. package/dist/{index-igxrd5jC.js → index-ByUriI6F.js} +1500 -1479
  64. package/dist/{index-BiFueJiF.js → index-CUDAo9HK.js} +259 -193
  65. package/dist/index-CsaQJMAR.js +66 -0
  66. package/dist/{index-DbbO3wip.js → index-DHEtLTYr.js} +48 -4
  67. package/dist/{index-CCdXvb92.js → index-DTnTvdIA.js} +1 -1
  68. package/dist/{index-CyNdsVrw.js → index-DbzMtv9Z.js} +1 -1
  69. package/dist/index-DwbN8FHi.js +44 -0
  70. package/dist/index-czQ4GAtE.js +115 -0
  71. package/dist/{index-C20XBD7G.js → index-fkBcbLFu.js} +2192 -931
  72. package/dist/index-vh86FiIQ.js +10 -0
  73. package/dist/index-wzNzbg46.js +29000 -0
  74. package/dist/{index.esm2017-Dl_CdTcK.js → index.esm2017-OtiYpLFF.js} +33 -33
  75. package/dist/loading-D_NOvElg.js +71 -0
  76. package/dist/{membership-DFiY8aVd.js → membership-6M1ftDbz.js} +54 -46
  77. package/dist/money-D6phwlff.js +15 -0
  78. package/dist/number-CT9IX-wU.js +12 -0
  79. package/dist/objectid-DtS-zHmd.js +145 -0
  80. package/dist/{loading-CZ0fiViM.js → plugins-CFv-0uV9.js} +2990 -3062
  81. package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
  82. package/dist/reward-B2aqMThx.js +36 -0
  83. package/dist/{rule-C3e1xTqN.js → rule-DxUsHy8Q.js} +180 -177
  84. package/dist/{rule-builder-MEVb_AiZ.js → rule-builder-BqkRAa1C.js} +1 -1
  85. package/dist/style.css +1 -1
  86. package/dist/{template-C2OKWd_e.js → template-5OZEG9e3.js} +5 -5
  87. package/dist/trigger-D7aLiQDF.js +144 -0
  88. package/dist/user-CMYgbV2m.js +54 -0
  89. package/dist/{vue-i18n-CjxDUnX6.js → vue-i18n-Cad7169E.js} +216 -216
  90. package/dist/{xlsx-CtXdl3ls.js → xlsx-rV-XTyJC.js} +1 -1
  91. package/package.json +9 -7
  92. package/dist/Analytic-C_ZFR5jh.js +0 -622
  93. package/dist/Card-C7dUFJKe.js +0 -825
  94. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bgl90veU.js +0 -2813
  95. package/dist/Marketing-BaqZUeVI.js +0 -316
  96. package/dist/MemberList-B9cutmEh.js +0 -1733
  97. package/dist/MemberTransactions-DRHA7AOF.js +0 -38
  98. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BHCoDSTg.js +0 -1753
  99. package/dist/Segment-Dj8nc3AE.js +0 -437
  100. package/dist/Store-CJ3wcohQ.js +0 -1511
  101. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-wXUTfQQF.js +0 -890
  102. package/dist/Voucher-BbTLt8Pt.js +0 -490
  103. package/dist/dto-CRJma6eX.js +0 -2770
  104. package/dist/index-B1e0LtDe.js +0 -99
  105. package/dist/index-Be2ZYDy_.js +0 -298
  106. package/dist/index-CDkITvze.js +0 -762
  107. package/dist/index-CuvNtC_M.js +0 -61
  108. package/dist/index-DPP5F3bT.js +0 -206
  109. package/dist/index-Dbo3DDwp.js +0 -29193
  110. package/dist/money-D8hUEfP4.js +0 -15
  111. package/dist/number-DL3GAeVt.js +0 -12
  112. package/dist/user-Bm4KttFq.js +0 -37
@@ -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
+ };
@@ -1,11 +1,11 @@
1
- import { g as t, S as n, b as u } from "./index-Dbo3DDwp.js";
1
+ import { g as t, S as c, b as u } from "./index-wzNzbg46.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 readCollectionCountByMemberId(e, r) {
109
+ return t(
110
+ await a().get(`/collections/count/${e}`, {
111
+ params: { type: r }
112
+ })
113
+ );
114
+ },
115
+ async readCollectionsByMemberId(e, r, s) {
116
+ const n = t(
117
+ await a().get(`/collections/${e}`, {
118
+ params: { ...r, ...s }
119
+ })
120
+ );
121
+ return {
122
+ meta: n.meta,
123
+ resources: n.resources
124
+ };
125
+ },
126
+ async getEmailAddresses() {
127
+ return t(await a().get("email-addresses"));
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,4 +1,4 @@
1
- import { g as n, S as I, u as C, b as _ } from "./index-Dbo3DDwp.js";
1
+ import { g as n, S as I, u as C, b as _ } from "./index-wzNzbg46.js";
2
2
  const c = () => {
3
3
  if (!I.getBusinessId()) throw new Error("Invalid business ID");
4
4
  return C("users");
@@ -1,3 +1,3 @@
1
1
  import "vue-router";
2
- import { R as o } from "./app-DUl5dav5.js";
2
+ import { R as o } from "./app-BToiZpVg.js";
3
3
  o["$connect-DASHBOARD"];
@@ -0,0 +1,44 @@
1
+ import { g as r, a as n, S as o, b as c } from "./index-wzNzbg46.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,115 @@
1
+ import { g as a, S as n, b as o } from "./index-wzNzbg46.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 syncAllPromotion() {
92
+ return a(
93
+ await t().post("/promotion/sync")
94
+ );
95
+ },
96
+ async readAllDeleted(e, s) {
97
+ const r = a(
98
+ await t().get("/bin", {
99
+ params: { ...e, ...s }
100
+ })
101
+ );
102
+ return {
103
+ meta: r.meta,
104
+ resources: r.resources
105
+ };
106
+ },
107
+ async restore(e) {
108
+ return a(
109
+ await t().post(`/${e}/restore`)
110
+ );
111
+ }
112
+ };
113
+ export {
114
+ i as c
115
+ };