@feedmepos/mf-connect 0.1.38-beta.72 → 0.1.38-beta.73

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 (133) hide show
  1. package/dist/Analytic-gGjm5ome.js +761 -0
  2. package/dist/App-BDz9mw-6.js +4638 -0
  3. package/dist/AuditLogs-4x90ZjjY.js +1991 -0
  4. package/dist/Bin-Bby2f42O.js +166 -0
  5. package/dist/Broadcast-eYN2AqFC.js +267 -0
  6. package/dist/CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B-fO9-Hb.js +121 -0
  7. package/dist/Card-Cz-pLt7X.js +909 -0
  8. package/dist/ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js +97 -0
  9. package/dist/Collections-CgfXuVA1.js +540 -0
  10. package/dist/Credit-Lc6B2oQ9.js +261 -0
  11. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-Du7fRSZC.js +128 -0
  12. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js +58 -0
  13. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bm7XTR7o.js +3167 -0
  14. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-Cp5nSLEX.js +351 -0
  15. package/dist/Experience-Ca94IJBt.js +260 -0
  16. package/dist/FileSaver.min-BThLVsSf.js +74 -0
  17. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +129 -0
  18. package/dist/Game-BYLYDTU9.js +331 -0
  19. package/dist/GenerateMaterial-CUoG6uyI.js +589 -0
  20. package/dist/Grab-DZ_LkTly.js +301 -0
  21. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-CI4kP9ul.js +145 -0
  22. package/dist/Index-BZ2r8x0t.js +259 -0
  23. package/dist/JsonViewer-v8_C7l5N.js +87 -0
  24. package/dist/LottieAnimation.vue_vue_type_script_setup_true_lang-BLKlXW1b.js +18737 -0
  25. package/dist/MainLayout-BfGSSVMW.js +41 -0
  26. package/dist/Marketing-DYg0J1xG.js +145 -0
  27. package/dist/MarketingMaterialEdit-B--Kck7j.js +746 -0
  28. package/dist/Member-By5QEJxn.js +280 -0
  29. package/dist/MemberList-D49bMmGJ.js +1600 -0
  30. package/dist/MemberOverview-wL_ailso.js +58 -0
  31. package/dist/MemberTransactions-Cz9XENK1.js +45 -0
  32. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-IlFjM-Y5.js +60798 -0
  33. package/dist/Mission-Cvl-V7c8.js +335 -0
  34. package/dist/Overview-lu82lUJp.js +1078 -0
  35. package/dist/Point-C65YFhOB.js +263 -0
  36. package/dist/Promotion-DQCrKO6a.js +397 -0
  37. package/dist/Queue-DR5lfSMi.js +259 -0
  38. package/dist/Record-BCt42_VZ.js +341 -0
  39. package/dist/Reward-7aOnjmMm.js +442 -0
  40. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-BPgjr91S.js +149 -0
  41. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Bp5jnlFr.js +1912 -0
  42. package/dist/Segment-DiYwfb8M.js +881 -0
  43. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-ydM5ypC0.js +181 -0
  44. package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-BRs7pw0l.js +188 -0
  45. package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-DU8AAPFD.js +147 -0
  46. package/dist/Setting-k6xShcs8.js +1999 -0
  47. package/dist/SettingAdvertisements-DQa_jXYM.js +263 -0
  48. package/dist/Store-B6lYBpsm.js +1995 -0
  49. package/dist/StoreRewards-Cqd399q8.js +534 -0
  50. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Wv_SHwmo.js +1128 -0
  51. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-Bi1o4YAz.js +7005 -0
  52. package/dist/Tier-CXXImaDx.js +969 -0
  53. package/dist/Title-CTxNCmBW.js +567 -0
  54. package/dist/Transaction-DonaHVzF.js +39 -0
  55. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-DbRVYccO.js +130 -0
  56. package/dist/Voucher-Bso_Mjlg.js +422 -0
  57. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DNvmaJk9.js +421 -0
  58. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-KHZ3-THo.js +56 -0
  59. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  60. package/dist/app-DKrmktFJ.js +59071 -0
  61. package/dist/app-wDQR6dpb.js +39 -0
  62. package/dist/app.js +7 -0
  63. package/dist/business-Dd73TVX5.js +82 -0
  64. package/dist/campaign-BUQHH4KL.js +100 -0
  65. package/dist/campaign-CpzFl8Vr.js +4 -0
  66. package/dist/campaign-DkJOyF24.js +253 -0
  67. package/dist/campaign.enum-C8vJuDAq.js +26 -0
  68. package/dist/campaign.fn-DJSpfhZH.js +776 -0
  69. package/dist/collectible.enum-D3W0TwoJ.js +19 -0
  70. package/dist/collection.fn-YzgpOmG0.js +26 -0
  71. package/dist/dto-sceHHLGr.js +222 -0
  72. package/dist/duplicateCampaign-CDulKxgJ.js +51 -0
  73. package/dist/effect-BSgfR9iB.js +89 -0
  74. package/dist/email-addresses-D_fyxOof.js +705 -0
  75. package/dist/export-OxiqL1B7.js +96 -0
  76. package/dist/feedme.ico +0 -0
  77. package/dist/helper-CzurWUe4.js +86 -0
  78. package/dist/index-BF0hGAkO.js +32 -0
  79. package/dist/index-BGMhsZnB.js +124 -0
  80. package/dist/index-B_QGGlMD.js +54 -0
  81. package/dist/index-BbTHqh58.js +31 -0
  82. package/dist/index-BqQas5Sx.js +2428 -0
  83. package/dist/index-BtMmY44D.js +36 -0
  84. package/dist/index-CAUVTn1I.js +67 -0
  85. package/dist/index-Cg-sBBf_.js +3419 -0
  86. package/dist/index-CuvNtC_M.js +61 -0
  87. package/dist/index-Cyt6eKEF.js +8912 -0
  88. package/dist/index-Dw3ew6qN.js +85 -0
  89. package/dist/index-IBvUTxqC.js +30289 -0
  90. package/dist/index-pkwrUX33.js +28897 -0
  91. package/dist/index-tYmg4eyJ.js +3 -0
  92. package/dist/index-vh86FiIQ.js +10 -0
  93. package/dist/index.esm2017-5xGykkgL.js +3069 -0
  94. package/dist/loading-CvHPT80F.js +215 -0
  95. package/dist/lodash-Q-_FPkpI.js +3678 -0
  96. package/dist/membership-CU-wFWan.js +235 -0
  97. package/dist/moment-D7p2TMB-.js +2583 -0
  98. package/dist/money-CzlfhEoe.js +15 -0
  99. package/dist/number-Bee2M41N.js +12 -0
  100. package/dist/object-qECH92oz.js +26 -0
  101. package/dist/objectId-dwaoBfJX.js +7 -0
  102. package/dist/objectid-DRJQv7AY.js +145 -0
  103. package/dist/plugins-CAdlnev8.js +1817 -0
  104. package/dist/remy-D_Deb3ue.js +13 -0
  105. package/dist/reward-BhlYd0FB.js +36 -0
  106. package/dist/rule-Ccvu41A_.js +1969 -0
  107. package/dist/rule-builder-B968rIyS.js +102 -0
  108. package/dist/style.css +13 -0
  109. package/dist/template-OZfyPJVE.js +188 -0
  110. package/dist/tier-BJDhpH6X.js +4 -0
  111. package/dist/tiers/tier=1.png +0 -0
  112. package/dist/tiers/tier=2.png +0 -0
  113. package/dist/tiers/tier=3.png +0 -0
  114. package/dist/tiers/tier=4.png +0 -0
  115. package/dist/timezone-CopuRbDK.js +1154 -0
  116. package/dist/titles/type=diamond.png +0 -0
  117. package/dist/titles/type=drinks.png +0 -0
  118. package/dist/titles/type=food.png +0 -0
  119. package/dist/titles/type=heart.png +0 -0
  120. package/dist/titles/type=medal.png +0 -0
  121. package/dist/titles/type=spend.png +0 -0
  122. package/dist/titles/type=thank-you.png +0 -0
  123. package/dist/titles/type=thumbs-up.png +0 -0
  124. package/dist/titles/type=years.png +0 -0
  125. package/dist/trigger-BtQI81FL.js +213 -0
  126. package/dist/tslib.es6-BCqqvLQ_.js +44 -0
  127. package/dist/type_drinks-D6jnpvwV.js +4 -0
  128. package/dist/usePagination-Ciom38dd.js +266 -0
  129. package/dist/user-BOW0ixDK.js +55 -0
  130. package/dist/vue-i18n-jTYKTJq1.js +2365 -0
  131. package/dist/xlsx-YD3LYwip.js +15491 -0
  132. package/dist/zod-B_G9o5PC.js +91 -0
  133. package/package.json +1 -1
@@ -0,0 +1,215 @@
1
+ import { g as a, s as c, S as y, b as i } from "./index-pkwrUX33.js";
2
+ import { n as l, r as I } from "./plugins-CAdlnev8.js";
3
+ import { u as o } from "./app-wDQR6dpb.js";
4
+ const t = () => {
5
+ const s = y.getBusinessId();
6
+ if (!s) throw new Error("Invalid business ID");
7
+ return i(`businesses/${s}/membership`, {
8
+ noIdRequired: !0
9
+ });
10
+ }, $ = {
11
+ async read() {
12
+ return a(await t().get(""));
13
+ },
14
+ async update(s) {
15
+ return a(await t().put("", s));
16
+ },
17
+ async createTier(s) {
18
+ return a(await t().post("tier", s));
19
+ },
20
+ async updateTiers(s) {
21
+ return a(await t().put("tiers", s));
22
+ },
23
+ async createTitle(s) {
24
+ return a(await t().post("titles", s));
25
+ },
26
+ async updateTitle(s, e) {
27
+ return a(
28
+ await t().put(`titles/${s}`, e)
29
+ );
30
+ },
31
+ async deleteTitle(s) {
32
+ return a(await t().delete(`titles/${s}`));
33
+ },
34
+ async readStore() {
35
+ return a(await t().get("store"));
36
+ },
37
+ async readPayoutAccount() {
38
+ return a(
39
+ await t().get("store/payout-account")
40
+ );
41
+ },
42
+ async updateStore(s) {
43
+ return a(await t().put("store", s));
44
+ },
45
+ async updateStoreBundle(s) {
46
+ return a(
47
+ await t().put("store/bundle", s)
48
+ );
49
+ },
50
+ async sendBundle(s) {
51
+ return a(
52
+ await t().post("store/bundle/send", s)
53
+ );
54
+ },
55
+ async refundStoreTransaction(s) {
56
+ return a(
57
+ await t().post("store/refund", s)
58
+ );
59
+ },
60
+ async readRewards() {
61
+ return a(await t().get("rewards"));
62
+ },
63
+ async readRewardById(s) {
64
+ return a(await t().get(`rewards/${s}`));
65
+ },
66
+ async readCollectionsByRewardId(s, e) {
67
+ const r = a(
68
+ await t().get(`/${s}/collections`, {
69
+ params: e
70
+ })
71
+ );
72
+ return {
73
+ meta: r.meta,
74
+ resources: r.resources
75
+ };
76
+ },
77
+ async createReward(s) {
78
+ return a(await t().post("rewards", s));
79
+ },
80
+ async readCards(s) {
81
+ const e = a(
82
+ await t().get("/cards", {
83
+ params: s
84
+ })
85
+ );
86
+ return {
87
+ meta: e.meta,
88
+ resources: e.resources
89
+ };
90
+ },
91
+ async createCards(s) {
92
+ return a(
93
+ await t().post("/cards", s)
94
+ );
95
+ },
96
+ async updateCard(s) {
97
+ return a(await t().put("cards", s));
98
+ },
99
+ async deleteCard(s) {
100
+ return a(await t().delete(`cards/${s}`));
101
+ },
102
+ async updateReward(s, e) {
103
+ return a(
104
+ await t().put(`rewards/${s}`, e)
105
+ );
106
+ },
107
+ async deleteReward(s) {
108
+ return a(await t().delete(`rewards/${s}`));
109
+ },
110
+ async getEmailAddresses() {
111
+ return a(await t().get("email-addresses"));
112
+ },
113
+ async getWhatsappNumbers() {
114
+ return a(
115
+ await c(`whatsappList/${y.getBusinessId()}`).get(
116
+ ""
117
+ )
118
+ );
119
+ },
120
+ async readCollectionCountByMemberId(s, e) {
121
+ return a(
122
+ await t().get(`/collections/count/${s}`, {
123
+ params: { type: e }
124
+ })
125
+ );
126
+ },
127
+ async readCollectionsByMemberId(s, e, r) {
128
+ const u = a(
129
+ await t().get(`/collections/${s}`, {
130
+ params: { ...e, ...r }
131
+ })
132
+ );
133
+ return {
134
+ meta: u.meta,
135
+ resources: u.resources
136
+ };
137
+ },
138
+ async readMissionCountByMemberId(s) {
139
+ return a(
140
+ await t().get(
141
+ `/collections/mission/count/${s}`
142
+ )
143
+ );
144
+ }
145
+ };
146
+ async function w(s, e) {
147
+ var n, p;
148
+ let r = [];
149
+ !e || !e.customId ? r.push(`${(/* @__PURE__ */ new Date()).toISOString()}_${I(6)}`) : typeof e.customId == "string" ? r.push(e.customId) : r = e.customId;
150
+ const u = o();
151
+ u.addLoadingQueues(
152
+ r.map((d) => ({
153
+ id: d,
154
+ isGlobal: (e == null ? void 0 : e.isGlobal) || !1
155
+ }))
156
+ );
157
+ try {
158
+ const d = await s();
159
+ return await ((n = e == null ? void 0 : e.onSuccess) == null ? void 0 : n.call(e, d)), d;
160
+ } catch (d) {
161
+ const m = d instanceof Error ? d.message : `${d}`;
162
+ throw e != null && e.onError ? await e.onError(m) : l.error(m), d;
163
+ } finally {
164
+ u.resolveQueues(r), (p = e == null ? void 0 : e.onComplete) == null || p.call(e);
165
+ }
166
+ }
167
+ const L = {
168
+ checkIsLoading: (s) => o().loadingQueue.some((e) => e.id === s),
169
+ global: async (s, e) => await w(
170
+ async () => await s(),
171
+ {
172
+ isGlobal: !0,
173
+ onSuccess: async (r) => {
174
+ var u;
175
+ await ((u = e == null ? void 0 : e.onSuccess) == null ? void 0 : u.call(e, r)), e != null && e.successMessage && l.success(e == null ? void 0 : e.successMessage);
176
+ }
177
+ }
178
+ ),
179
+ minor: async (s, e) => {
180
+ var u;
181
+ let r;
182
+ return e != null && e.message && (r = l.info((u = e == null ? void 0 : e.message) == null ? void 0 : u.toString(), null, !0)), await w(
183
+ async () => (e != null && e.isLoading && (e.isLoading.value = !0), await s()),
184
+ {
185
+ onSuccess: () => {
186
+ e != null && e.successMessage && l.success((e == null ? void 0 : e.successMessage) || "Success");
187
+ },
188
+ onError: (n) => {
189
+ const p = `${n}` || "Error";
190
+ l.error(p);
191
+ },
192
+ onComplete: () => {
193
+ e != null && e.isLoading && (e.isLoading.value = !1), r && l.close(r);
194
+ },
195
+ customId: e == null ? void 0 : e.customId
196
+ }
197
+ );
198
+ },
199
+ custom: async (s, e) => await w(
200
+ async () => (e != null && e.isLoading && (e.isLoading.value = !0), await s()),
201
+ {
202
+ onSuccess: async () => {
203
+ e != null && e.successMessage && l.success(e.successMessage);
204
+ },
205
+ onComplete: () => {
206
+ e && e.isLoading && (e.isLoading.value = !1);
207
+ },
208
+ customId: e == null ? void 0 : e.customId
209
+ }
210
+ )
211
+ };
212
+ export {
213
+ $ as m,
214
+ L as u
215
+ };