@feedmepos/mf-connect 0.1.38-beta.74 → 0.1.38-beta.76

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 (140) hide show
  1. package/dist/Analytic-BrBxRQue.js +761 -0
  2. package/dist/App-CE_19YJc.js +4642 -0
  3. package/dist/AuditLogs-CQtMmVIp.js +1991 -0
  4. package/dist/Bin-D9CHhiUb.js +166 -0
  5. package/dist/Broadcast-Dg6eBL_f.js +267 -0
  6. package/dist/CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CSv0R9XX.js +121 -0
  7. package/dist/Card-BTkf67i1.js +910 -0
  8. package/dist/ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js +97 -0
  9. package/dist/Collections-Czq4nsdu.js +541 -0
  10. package/dist/Credit-B3nX8aJA.js +261 -0
  11. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-Du7fRSZC.js +128 -0
  12. package/dist/DateInput.vue_vue_type_script_setup_true_lang-BN4Q5Y3l.js +54 -0
  13. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js +58 -0
  14. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-D2gTuN97.js +3120 -0
  15. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-5U6cSZGZ.js +351 -0
  16. package/dist/Experience-B9Vn3NTH.js +260 -0
  17. package/dist/FileSaver.min-CJaOkSQt.js +74 -0
  18. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +129 -0
  19. package/dist/Game-DTx_EsM3.js +331 -0
  20. package/dist/GenerateMaterial-C3J9_YHw.js +589 -0
  21. package/dist/Grab-B29W7rka.js +301 -0
  22. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-DyegKNzM.js +145 -0
  23. package/dist/Index-Fk8EP5dG.js +259 -0
  24. package/dist/JsonViewer-v8_C7l5N.js +87 -0
  25. package/dist/LocationPicker.vue_vue_type_script_setup_true_lang-D2XPGgTM.js +48 -0
  26. package/dist/LottieAnimation.vue_vue_type_script_setup_true_lang-K8qUYrPk.js +18737 -0
  27. package/dist/MainLayout-BFmqJkE_.js +41 -0
  28. package/dist/Marketing-BRHQHAWD.js +145 -0
  29. package/dist/MarketingMaterialEdit-7s3WEDyJ.js +746 -0
  30. package/dist/Member-DwPJNAo9.js +280 -0
  31. package/dist/MemberList-mS1W0qHY.js +1601 -0
  32. package/dist/MemberOverview-wL_ailso.js +58 -0
  33. package/dist/MemberTransactions-BV3xvFYS.js +45 -0
  34. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-DzKqVp2O.js +60799 -0
  35. package/dist/Mission-QmoURSu4.js +335 -0
  36. package/dist/Overview-CaTMLlq-.js +1078 -0
  37. package/dist/Point-CjG77Sma.js +263 -0
  38. package/dist/Promotion-C5I-1qPN.js +397 -0
  39. package/dist/Queue-BaIBCCaX.js +259 -0
  40. package/dist/Record-DqpGwZIU.js +341 -0
  41. package/dist/Review-Bq-edSOO.js +621 -0
  42. package/dist/ReviewFacebookCallback-yaC4rLki.js +243 -0
  43. package/dist/ReviewGoogleCallback-uxrrCQdu.js +213 -0
  44. package/dist/Reward-DGP65n5t.js +442 -0
  45. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-bNMoMZOy.js +149 -0
  46. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Dgrc6vXF.js +1912 -0
  47. package/dist/Segment-CNz0sR3c.js +881 -0
  48. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-DLZEzpve.js +181 -0
  49. package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-CLdIeyef.js +188 -0
  50. package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-ocCdtbbe.js +147 -0
  51. package/dist/Setting-BKDSGYBR.js +2000 -0
  52. package/dist/SettingAdvertisements-B2GMFfN9.js +264 -0
  53. package/dist/Store-C6uLl_Ue.js +1996 -0
  54. package/dist/StoreRewards-D4728UDf.js +535 -0
  55. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CG09fJTP.js +1129 -0
  56. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-B0_bMK5u.js +7005 -0
  57. package/dist/Tier-BNzTa1_w.js +970 -0
  58. package/dist/Title-DY5knovF.js +568 -0
  59. package/dist/Transaction-Ct4yAJ9n.js +39 -0
  60. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-CHnxi3XZ.js +130 -0
  61. package/dist/Voucher-DFTMRPT0.js +422 -0
  62. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DZU7XVlZ.js +421 -0
  63. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-BndLHmHB.js +56 -0
  64. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  65. package/dist/app-6lG4w5PT.js +59396 -0
  66. package/dist/app-wDQR6dpb.js +39 -0
  67. package/dist/app.js +7 -0
  68. package/dist/business-CrfQ56D0.js +82 -0
  69. package/dist/campaign-B9fR7RwT.js +100 -0
  70. package/dist/campaign-B_iIaTKz.js +253 -0
  71. package/dist/campaign-CpzFl8Vr.js +4 -0
  72. package/dist/campaign.enum-BAHf0dSv.js +26 -0
  73. package/dist/campaign.fn-DDEgBzH2.js +776 -0
  74. package/dist/collectible.enum-9os2zr5a.js +19 -0
  75. package/dist/collection.fn-7qP_m2MW.js +26 -0
  76. package/dist/dto-C2hLQKuu.js +222 -0
  77. package/dist/duplicateCampaign-C6RXfeWE.js +51 -0
  78. package/dist/effect-DGVfWyIc.js +89 -0
  79. package/dist/email-addresses-BHa_qQBd.js +705 -0
  80. package/dist/export-CRPfo4hq.js +97 -0
  81. package/dist/feedme.ico +0 -0
  82. package/dist/helper-0_zrz4kj.js +86 -0
  83. package/dist/index-4Vl1VXum.js +2639 -0
  84. package/dist/index-4bX0ewBJ.js +31 -0
  85. package/dist/index-Bj0TV_D5.js +36 -0
  86. package/dist/index-BpdSswT6.js +48 -0
  87. package/dist/index-By2wenzb.js +32 -0
  88. package/dist/index-C8L2jQ_6.js +28897 -0
  89. package/dist/index-CO5kQMIK.js +85 -0
  90. package/dist/index-CW_ub4cF.js +8912 -0
  91. package/dist/index-Cp8wkBus.js +124 -0
  92. package/dist/index-CuvNtC_M.js +61 -0
  93. package/dist/index-D6Te1BQZ.js +54 -0
  94. package/dist/index-DbJGJ2fB.js +146 -0
  95. package/dist/index-DeaGdUSH.js +30289 -0
  96. package/dist/index-Dp1J9Fxa.js +3 -0
  97. package/dist/index-QUvYZydO.js +67 -0
  98. package/dist/index-lwxV5iX0.js +3431 -0
  99. package/dist/index-vh86FiIQ.js +10 -0
  100. package/dist/index.esm2017-ofRmIpjY.js +3069 -0
  101. package/dist/loading-8_73fcXo.js +71 -0
  102. package/dist/lodash-Bz_vrY3P.js +3678 -0
  103. package/dist/membership-CpB39vNW.js +235 -0
  104. package/dist/moment-D7p2TMB-.js +2583 -0
  105. package/dist/money-DALHjzjF.js +15 -0
  106. package/dist/number-D_GJahxw.js +12 -0
  107. package/dist/object-qECH92oz.js +26 -0
  108. package/dist/objectId-dwaoBfJX.js +7 -0
  109. package/dist/objectid-BZSH63yc.js +145 -0
  110. package/dist/plugins-A4jDcmfS.js +1817 -0
  111. package/dist/remy-D_Deb3ue.js +13 -0
  112. package/dist/reward-BqFB2Yn2.js +36 -0
  113. package/dist/rule-DNylZfIG.js +1969 -0
  114. package/dist/rule-builder-2iT04EOj.js +102 -0
  115. package/dist/style.css +13 -0
  116. package/dist/template-D7rpG7FN.js +188 -0
  117. package/dist/tier-BJDhpH6X.js +4 -0
  118. package/dist/tiers/tier=1.png +0 -0
  119. package/dist/tiers/tier=2.png +0 -0
  120. package/dist/tiers/tier=3.png +0 -0
  121. package/dist/tiers/tier=4.png +0 -0
  122. package/dist/timezone-BW17tvi2.js +1154 -0
  123. package/dist/titles/type=diamond.png +0 -0
  124. package/dist/titles/type=drinks.png +0 -0
  125. package/dist/titles/type=food.png +0 -0
  126. package/dist/titles/type=heart.png +0 -0
  127. package/dist/titles/type=medal.png +0 -0
  128. package/dist/titles/type=spend.png +0 -0
  129. package/dist/titles/type=thank-you.png +0 -0
  130. package/dist/titles/type=thumbs-up.png +0 -0
  131. package/dist/titles/type=years.png +0 -0
  132. package/dist/trigger-CbVrS2i6.js +213 -0
  133. package/dist/tslib.es6-BCqqvLQ_.js +44 -0
  134. package/dist/type_drinks-D6jnpvwV.js +4 -0
  135. package/dist/usePagination-dXSoqxfG.js +266 -0
  136. package/dist/user-Ck-m3cB3.js +55 -0
  137. package/dist/vue-i18n-BvqmcBWZ.js +2365 -0
  138. package/dist/xlsx-CkqDfUNs.js +15491 -0
  139. package/dist/zod-B0YxCfoE.js +91 -0
  140. package/package.json +1 -1
@@ -0,0 +1,124 @@
1
+ import { g as a, S as n, b as o } from "./index-C8L2jQ_6.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 sendStamp(e, s) {
92
+ return a(
93
+ await t().post(
94
+ `/${e}/collections/send-stamp`,
95
+ s
96
+ )
97
+ );
98
+ },
99
+ async syncAllPromotion() {
100
+ return a(await t().post("/promotion/sync"));
101
+ },
102
+ async readAllDeleted(e, s) {
103
+ const r = a(
104
+ await t().get("/bin", {
105
+ params: { ...e, ...s }
106
+ })
107
+ );
108
+ return {
109
+ meta: r.meta,
110
+ resources: r.resources
111
+ };
112
+ },
113
+ async restore(e) {
114
+ return a(
115
+ await t().post(`/${e}/restore`)
116
+ );
117
+ },
118
+ async getPromotionQueue() {
119
+ return a(await t().get("/promotion/queue"));
120
+ }
121
+ };
122
+ export {
123
+ i as c
124
+ };
@@ -0,0 +1,61 @@
1
+ const E = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu"), x = new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])", "gu"), P = new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d", "u"), _ = /[^\p{L}\d]+/giu, u = "$1\0$2", i = "";
2
+ function L(r) {
3
+ let e = r.trim();
4
+ e = e.replace(E, u).replace(x, u), e = e.replace(_, "\0");
5
+ let c = 0, t = e.length;
6
+ for (; e.charAt(c) === "\0"; )
7
+ c++;
8
+ if (c === t)
9
+ return [];
10
+ for (; e.charAt(t - 1) === "\0"; )
11
+ t--;
12
+ return e.slice(c, t).split(/\0/g);
13
+ }
14
+ function R(r) {
15
+ const e = L(r);
16
+ for (let c = 0; c < e.length; c++) {
17
+ const t = e[c], l = P.exec(t);
18
+ if (l) {
19
+ const s = l.index + (l[1] ?? l[2]).length;
20
+ e.splice(c, 1, t.slice(0, s), t.slice(s));
21
+ }
22
+ }
23
+ return e;
24
+ }
25
+ function p(r, e) {
26
+ const [c, t, l] = o(r, e), s = d(e == null ? void 0 : e.locale), a = C(e == null ? void 0 : e.locale), n = A(s, a);
27
+ return c + t.map((f, h) => h === 0 ? n(f) : s(f)).join((e == null ? void 0 : e.delimiter) ?? " ") + l;
28
+ }
29
+ function d(r) {
30
+ return r === !1 ? (e) => e.toLowerCase() : (e) => e.toLocaleLowerCase(r);
31
+ }
32
+ function C(r) {
33
+ return r === !1 ? (e) => e.toUpperCase() : (e) => e.toLocaleUpperCase(r);
34
+ }
35
+ function A(r, e) {
36
+ return (c) => `${e(c[0])}${r(c.slice(1))}`;
37
+ }
38
+ function o(r, e = {}) {
39
+ const c = e.split ?? (e.separateNumbers ? R : L), t = e.prefixCharacters ?? i, l = e.suffixCharacters ?? i;
40
+ let s = 0, a = r.length;
41
+ for (; s < r.length; ) {
42
+ const n = r.charAt(s);
43
+ if (!t.includes(n))
44
+ break;
45
+ s++;
46
+ }
47
+ for (; a > s; ) {
48
+ const n = a - 1, f = r.charAt(n);
49
+ if (!l.includes(f))
50
+ break;
51
+ a = n;
52
+ }
53
+ return [
54
+ r.slice(0, s),
55
+ c(r.slice(s, a)),
56
+ r.slice(a)
57
+ ];
58
+ }
59
+ export {
60
+ p as s
61
+ };
@@ -0,0 +1,54 @@
1
+ import { F as o, e as t, f as a } from "./index-CW_ub4cF.js";
2
+ import { z as e, F as i, m as d } from "./index-DeaGdUSH.js";
3
+ import { F as c } from "./collectible.enum-9os2zr5a.js";
4
+ const l = e.enum(["VOUCHER", "LOYALTY"]), n = e.object({
5
+ type: e.literal(l.enum.VOUCHER),
6
+ collectible: i,
7
+ collectibleConfig: e.lazy(() => o._def.right.options[0]),
8
+ earningOption: e.lazy(() => t)
9
+ }), s = e.object({
10
+ type: e.literal(l.enum.LOYALTY),
11
+ collectibleType: c,
12
+ collectible: i,
13
+ earningOption: e.lazy(() => t),
14
+ validityOption: e.lazy(() => a)
15
+ }), r = e.discriminatedUnion("type", [
16
+ n,
17
+ s
18
+ ]), p = e.discriminatedUnion("type", [
19
+ n.extend({
20
+ collectible: i.nullish(),
21
+ business: i.nullish()
22
+ }),
23
+ s.extend({
24
+ collectible: i.nullish(),
25
+ collectibleConfig: o.nullish(),
26
+ business: i.nullish()
27
+ })
28
+ ]), m = {
29
+ collectionName: "RewardTemplates",
30
+ transform: {
31
+ _id: "oid",
32
+ business: "oid",
33
+ deletedAt: "date"
34
+ }
35
+ }, b = e.object({
36
+ _id: i,
37
+ business: i,
38
+ name: e.string(),
39
+ option: r,
40
+ deletedAt: e.date().optional(),
41
+ collectibleConfig: e.lazy(() => o.nullish())
42
+ }).describe(d.describe(m)), u = b.extend({
43
+ _id: i.nullish(),
44
+ business: i.nullish(),
45
+ option: p,
46
+ name: e.string().min(1, { message: "Name is required" })
47
+ });
48
+ u.extend({
49
+ updateCollection: e.boolean().optional()
50
+ });
51
+ export {
52
+ u as F,
53
+ b as a
54
+ };
@@ -0,0 +1,146 @@
1
+ import { g as t, s as u, S as c, b as i } from "./index-C8L2jQ_6.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
+ };