@feedmepos/mf-connect 0.1.38-beta.77 → 0.1.38-beta.78

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-CPlnEHSZ.js → Analytic-VCsXA7tN.js} +29 -30
  2. package/dist/{App-Cu4p6gbW.js → App-C3h7BzvW.js} +7 -7
  3. package/dist/{AuditLogs-CcFMAscb.js → AuditLogs-DChTm0o7.js} +9 -9
  4. package/dist/{Bin-gtBK8XVY.js → Bin-Ctg5MEH1.js} +8 -8
  5. package/dist/{Broadcast-4xWTsz3e.js → Broadcast-BC0Dn5KX.js} +22 -23
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DjfHJS4N.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DixbhtL0.js} +6 -6
  7. package/dist/{Card-Bpyi1Mqh.js → Card-CPf78WVe.js} +18 -18
  8. package/dist/{Collections-BXJpy-Z6.js → Collections-CFaHjMsW.js} +13 -14
  9. package/dist/{Credit-CACj5WA5.js → Credit-CUfndg2i.js} +30 -31
  10. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-CNp7zgbE.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-DKv94j3F.js} +33 -33
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Dtu40xSp.js → EffectSheet.vue_vue_type_style_index_0_lang-B3Hrhp0c.js} +6 -6
  12. package/dist/{Experience-ERwGbs6_.js → Experience-BjkhGFFu.js} +11 -12
  13. package/dist/{FileSaver.min-CCloVqBK.js → FileSaver.min-CwKsfqnU.js} +1 -1
  14. package/dist/{Game-nn5Kroc_.js → Game-fI2GMPAc.js} +12 -13
  15. package/dist/{Grab-Baqpbxdr.js → Grab-DK4Bs9T-.js} +31 -32
  16. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-Dc2Wxjrq.js → ImageInput.vue_vue_type_script_setup_true_lang-CKVKss1k.js} +1 -1
  17. package/dist/{Index-CYB1KuDA.js → Index-CCobdOFl.js} +10 -10
  18. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-B15IWMTx.js → LocationPicker.vue_vue_type_script_setup_true_lang-BNHNFP5D.js} +1 -1
  19. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BFwur41g.js → LottieAnimation.vue_vue_type_script_setup_true_lang-C1T1qoUS.js} +1 -1
  20. package/dist/{MainLayout-DQI5pMKt.js → MainLayout-C4qzV9tn.js} +1 -1
  21. package/dist/Marketing-6qXWCcNA.js +157 -0
  22. package/dist/MarketingMaterialEdit-C74xVj4y.js +857 -0
  23. package/dist/{Member-D97fw6Cd.js → Member-B85PlRE2.js} +11 -11
  24. package/dist/{MemberList-DDRtiYhf.js → MemberList-DPmz3Opy.js} +26 -26
  25. package/dist/{MemberTransactions-08ct4MMf.js → MemberTransactions-Dsa9w9W-.js} +1 -1
  26. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Mm-Chxx1.js → MessageInput.vue_vue_type_script_setup_true_lang-CNaz513g.js} +9 -9
  27. package/dist/{Mission-B1sZbVOv.js → Mission-C4SBvbNg.js} +22 -23
  28. package/dist/{Overview-CihI2Ydx.js → Overview-ClDQbGY4.js} +18 -18
  29. package/dist/{Point-jggxL54s.js → Point-BVKIWsY3.js} +11 -12
  30. package/dist/{Promotion-DCFVPRw9.js → Promotion-BF9d5lk2.js} +12 -13
  31. package/dist/{Queue-BCfueANY.js → Queue-qahb5fft.js} +10 -10
  32. package/dist/{Record-cFWNJD__.js → Record-BUV8ZdU3.js} +9 -9
  33. package/dist/{Review-BnYNAJHr.js → Review-CA23dkxd.js} +4 -4
  34. package/dist/{ReviewFacebookCallback-DxuDeLaX.js → ReviewFacebookCallback-DeMiZX62.js} +4 -4
  35. package/dist/{ReviewGoogleCallback-CzUOYUhc.js → ReviewGoogleCallback-BvJSLV9F.js} +4 -4
  36. package/dist/{Reward-C3IQT6Vm.js → Reward-CvBYF099.js} +16 -16
  37. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BHQbHhGE.js → RewardGroup.vue_vue_type_script_setup_true_lang-D_eHt5fI.js} +11 -11
  38. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CL0gWNDv.js → RuleGroup.vue_vue_type_script_setup_true_lang-6RN-20vi.js} +14 -14
  39. package/dist/{Segment-Di328H19.js → Segment-BFbGGvOI.js} +24 -24
  40. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-CiEEE545.js → SelectItems.vue_vue_type_script_setup_true_lang-BHG6QOaW.js} +2 -2
  41. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DyKJC5rS.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-JZ5VuHF1.js} +12 -12
  42. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-C9PkNlUG.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-Dgyofqk8.js} +4 -4
  43. package/dist/{Setting-D8it6u-5.js → Setting-D6Yt2Hyr.js} +14 -14
  44. package/dist/{SettingAdvertisements-CrLcIibQ.js → SettingAdvertisements-Y6ODltcR.js} +12 -12
  45. package/dist/{Store-Dr_fUsGl.js → Store-Mhkl6zhg.js} +21 -21
  46. package/dist/{StoreRewards-CJjRph_y.js → StoreRewards-Bv-zwdt_.js} +15 -15
  47. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-CcG8ez-X.js → StoreTransactions.vue_vue_type_script_setup_true_lang-BQO12vA9.js} +21 -21
  48. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-CQwJ43lC.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BTfT4QAC.js} +2 -2
  49. package/dist/{Tier-CSfFMEO6.js → Tier-BYXIBg8s.js} +25 -26
  50. package/dist/{Title-BJeyjdmZ.js → Title-kpCJmPvQ.js} +29 -30
  51. package/dist/{Transaction-CYT59iim.js → Transaction-DQy-t6tK.js} +2 -2
  52. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-Bhpfk_pP.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DiW7jXt6.js} +6 -6
  53. package/dist/{Voucher-B7bbNebL.js → Voucher-BA_9PgA2.js} +15 -16
  54. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-BWaL1UD_.js → VoucherEditor.vue_vue_type_script_setup_true_lang-OoPMbbWd.js} +12 -12
  55. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-C75XExhq.js → ZodTextField.vue_vue_type_script_setup_true_lang-Dq2TlOIT.js} +2 -2
  56. package/dist/{app-DW87VLhM.js → app-DJxUak8Q.js} +328 -419
  57. package/dist/app.js +1 -1
  58. package/dist/{business-CKorj1jI.js → business-Dx3tPdK2.js} +1 -1
  59. package/dist/campaign-7Eu0LkpH.js +219 -0
  60. package/dist/{campaign-v-IDnBOH.js → campaign-D2xK0tWG.js} +8 -8
  61. package/dist/{campaign.enum-Y2VyD9Rk.js → campaign.enum-IZBI1M64.js} +1 -1
  62. package/dist/{campaign.fn-J0h3DHY7.js → campaign.fn-DG6v0D4_.js} +120 -120
  63. package/dist/{collectible.enum-Ct4EH1-M.js → collectible.enum-Bz9l4gWn.js} +1 -1
  64. package/dist/{collection.fn-4EwI__Kd.js → collection.fn-DAcLdA9r.js} +2 -2
  65. package/dist/{dto-CzQ5ZPnM.js → dto-CTdVFjCy.js} +4 -4
  66. package/dist/{duplicateCampaign-DH4GTkl4.js → duplicateCampaign-DmuOz8P8.js} +2 -2
  67. package/dist/{effect-CSmAbPw5.js → effect-BHqMMiuI.js} +1 -1
  68. package/dist/{email-addresses-CDQTaGMc.js → email-addresses-DO9FPEJG.js} +2 -2
  69. package/dist/{export-CWGMDCOS.js → export-Dq1ecGOS.js} +3 -3
  70. package/dist/{helper-BTMcmkY-.js → helper-C4R3niUO.js} +1 -1
  71. package/dist/{index-Th2v5uhF.js → index-B5R3rD12.js} +3 -3
  72. package/dist/{index-KfVh_1Mq.js → index-Bqp0JS4s.js} +2 -2
  73. package/dist/{index-BGP2XsfH.js → index-C5O0JUok.js} +1 -1
  74. package/dist/{index-c7bs3-sB.js → index-C8YsAeR2.js} +1 -1
  75. package/dist/{index-DuKr4NrF.js → index-CDYkEmcE.js} +4 -4
  76. package/dist/{index-DpYrJ9BA.js → index-CGKANfLZ.js} +1 -1
  77. package/dist/{index-nxwskabW.js → index-CSzWCoI-.js} +1 -1
  78. package/dist/{index-Ds0iCyTa.js → index-Cvoa_YhV.js} +1 -1
  79. package/dist/{index-DafBqawi.js → index-DZr2PzPy.js} +1 -1
  80. package/dist/{index-CHwxbJ-k.js → index-Dd8Hbv6_.js} +1 -1
  81. package/dist/{index-BalocitS.js → index-QqOuFoKd.js} +3 -3
  82. package/dist/{index-DQxSSe7u.js → index-imR50hIb.js} +6 -6
  83. package/dist/{index-DNgP9oPe.js → index-mVFLfIAw.js} +3 -3
  84. package/dist/{index.esm2017-BaIOtNg6.js → index.esm2017-Ee5QhYIY.js} +1 -1
  85. package/dist/{loading-IPAu72W9.js → loading-C5QxXpCJ.js} +1 -1
  86. package/dist/{lodash-8i9BuEpy.js → lodash-BauupBJE.js} +1 -1
  87. package/dist/{membership-D3C6uxZn.js → membership-C3FS3V4K.js} +3 -3
  88. package/dist/{money-DgJ-Eu1j.js → money-C_h2PBKm.js} +1 -1
  89. package/dist/{number-DYvUlYUV.js → number-CEyqGZhi.js} +1 -1
  90. package/dist/{objectid-DXtt7nvA.js → objectid-sT4x06Nd.js} +8 -8
  91. package/dist/{plugins-DOuRSYyI.js → plugins-Cr4fq1-c.js} +3 -3
  92. package/dist/remy-r12bZ_gw.js +46 -0
  93. package/dist/{reward-DnUBE-5Q.js → reward-ZRg3PKdQ.js} +1 -1
  94. package/dist/{rule-2xz8bsfH.js → rule-DtQ_9tIs.js} +3 -3
  95. package/dist/{rule-builder-BUbfKVI2.js → rule-builder-xRhvszfI.js} +1 -1
  96. package/dist/style.css +1 -1
  97. package/dist/{template-DIFr5du7.js → template-CviIoV5v.js} +6 -6
  98. package/dist/{timezone-BLOuoWcc.js → timezone-Cn4t-gUq.js} +2 -2
  99. package/dist/{trigger-CTBnJR5J.js → trigger-cMNYhqNs.js} +5 -5
  100. package/dist/{usePagination-6vyp3VrT.js → usePagination-Bb-4w-Ty.js} +1 -1
  101. package/dist/{user-oKms24rP.js → user-h4SJx-05.js} +1 -1
  102. package/dist/{vue-i18n-C1UXB6UQ.js → vue-i18n-BVlH2-Q3.js} +375 -375
  103. package/dist/{xlsx-CdtGyyAC.js → xlsx-BfvWsPoE.js} +1 -1
  104. package/dist/{zod-C2KjnyQW.js → zod-C_G8JfBL.js} +1 -1
  105. package/package.json +1 -1
  106. package/dist/GenerateMaterial-uhORX0wE.js +0 -589
  107. package/dist/Marketing-BDDNIPbj.js +0 -145
  108. package/dist/MarketingMaterialEdit-CCEojq5A.js +0 -746
  109. package/dist/campaign-KUqRHHsx.js +0 -100
  110. package/dist/index-CINZ-bnq.js +0 -36
  111. package/dist/index-DbSJ3Kqw.js +0 -124
  112. package/dist/remy-D_Deb3ue.js +0 -13
package/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "vue";
2
- import { d as e, i as o, r as p } from "./app-DW87VLhM.js";
2
+ import { d as e, i as o, r as p } from "./app-DJxUak8Q.js";
3
3
  export {
4
4
  e as FmApp,
5
5
  o as i18nMessages,
@@ -1,7 +1,7 @@
1
1
  import { ref as i, computed as u } from "vue";
2
2
  import { defineStore as w } from "pinia";
3
3
  import { useCoreStore as y } from "@feedmepos/mf-common";
4
- import { a as I, g as r, A as b, S, b as D } from "./index-KfVh_1Mq.js";
4
+ import { a as I, g as r, A as b, S, b as D } from "./index-Bqp0JS4s.js";
5
5
  const $ = {
6
6
  async readSettings(e) {
7
7
  try {
@@ -0,0 +1,219 @@
1
+ import { defineStore as w } from "pinia";
2
+ import { reactive as I, onMounted as b, ref as o } from "vue";
3
+ import { g as a, S as l, b as d } from "./index-Bqp0JS4s.js";
4
+ const s = () => {
5
+ const e = l.getBusinessId();
6
+ if (!e) throw new Error("Invalid business ID");
7
+ return d(`businesses/${e}/campaigns`, {
8
+ // url: 'http://localhost:3000/portal/',
9
+ });
10
+ }, u = {
11
+ async readAllGrouped(e) {
12
+ const t = a(
13
+ await s().get("grouped", { params: e })
14
+ );
15
+ return {
16
+ meta: t.meta,
17
+ resources: t.resources
18
+ };
19
+ },
20
+ async readAll(e, t) {
21
+ const n = a(
22
+ await s().get("", {
23
+ params: { ...e, ...t }
24
+ })
25
+ );
26
+ return {
27
+ meta: n.meta,
28
+ resources: n.resources
29
+ };
30
+ },
31
+ async readById(e) {
32
+ return a(await s().get(`/${e}`));
33
+ },
34
+ async create(e) {
35
+ return a(await s().post("", e));
36
+ },
37
+ async update(e, t) {
38
+ return a(await s().put(e, t));
39
+ },
40
+ async delete(e) {
41
+ return a(await s().delete(e));
42
+ },
43
+ async readCollectionsByCampaignId(e, t) {
44
+ const n = a(
45
+ await s().get(`/${e}/collections`, {
46
+ params: t
47
+ })
48
+ );
49
+ return {
50
+ meta: n.meta,
51
+ resources: n.resources
52
+ };
53
+ },
54
+ async readTransactions(e) {
55
+ return a(
56
+ await s().get(
57
+ `/${e}/collections/transactions`
58
+ )
59
+ );
60
+ },
61
+ async createCollectionByCampaignId(e, t) {
62
+ return a(
63
+ await s().post(`/${e}/collections`, t)
64
+ );
65
+ },
66
+ async readGroups() {
67
+ return a(await s().get("/groups")) ?? [];
68
+ },
69
+ async readStats(e) {
70
+ return a(
71
+ await s().get("/stats", { params: e })
72
+ );
73
+ },
74
+ async createGroup(e) {
75
+ return a(await s().post("/groups", e));
76
+ },
77
+ async updateGroup(e, t) {
78
+ return a(
79
+ await s().put(`/groups/${e}`, t)
80
+ );
81
+ },
82
+ async deleteGroup(e) {
83
+ return a(await s().delete(`/groups/${e}`));
84
+ },
85
+ async sendCollection(e, t) {
86
+ return a(
87
+ await s().post(
88
+ `/${e}/collections/send`,
89
+ t
90
+ )
91
+ );
92
+ },
93
+ async sendStamp(e, t) {
94
+ return a(
95
+ await s().post(
96
+ `/${e}/collections/send-stamp`,
97
+ t
98
+ )
99
+ );
100
+ },
101
+ async syncAllPromotion() {
102
+ return a(await s().post("/promotion/sync"));
103
+ },
104
+ async readAllDeleted(e, t) {
105
+ const n = a(
106
+ await s().get("/bin", {
107
+ params: { ...e, ...t }
108
+ })
109
+ );
110
+ return {
111
+ meta: n.meta,
112
+ resources: n.resources
113
+ };
114
+ },
115
+ async restore(e) {
116
+ return a(
117
+ await s().post(`/${e}/restore`)
118
+ );
119
+ },
120
+ async getPromotionQueue() {
121
+ return a(await s().get("/promotion/queue"));
122
+ }
123
+ }, p = () => {
124
+ const e = l.getBusinessId();
125
+ if (!e) throw new Error("Invalid business ID");
126
+ return d(`businesses/${e}/campaigns`, {
127
+ noIdRequired: !0
128
+ });
129
+ }, f = {
130
+ async readAll() {
131
+ return a(await p().get("templates"));
132
+ },
133
+ async readById(e) {
134
+ return a(
135
+ await p().get(`templates/${e}`)
136
+ );
137
+ }
138
+ }, E = w("mf-connect-campaign", () => {
139
+ const e = I({
140
+ promotion: [],
141
+ voucher: [],
142
+ broadcast: [],
143
+ experience: [],
144
+ point: [],
145
+ credit: [],
146
+ token: [],
147
+ mission: [],
148
+ grab: [],
149
+ all: []
150
+ });
151
+ b(() => {
152
+ console.log("🔧 CampaignStore Installed");
153
+ });
154
+ const t = o([]), n = o([]), c = o([]);
155
+ async function m(h) {
156
+ const i = await u.readAll({
157
+ limit: 1e3,
158
+ skip: 0,
159
+ sortBy: "_id",
160
+ descending: !0
161
+ });
162
+ Object.keys(e).forEach((r) => {
163
+ e[r] = [];
164
+ }), e.all = i.resources.filter(
165
+ (r) => r.type !== "MEMBERSHIP"
166
+ );
167
+ for (const r of i.resources)
168
+ switch (r.type) {
169
+ case "PROMOTION":
170
+ e.promotion.push(r);
171
+ break;
172
+ case "VOUCHER":
173
+ e.voucher.push(r), c.value.push(r);
174
+ break;
175
+ case "BROADCAST":
176
+ ["SCHEDULE", "FEEDBACK"].includes(r.event.type) && e.broadcast.push(r);
177
+ break;
178
+ case "POINT":
179
+ e.experience.push(r);
180
+ break;
181
+ case "COIN":
182
+ e.point.push(r);
183
+ break;
184
+ case "CREDIT":
185
+ e.credit.push(r);
186
+ break;
187
+ case "GAME":
188
+ e.token.push(r);
189
+ break;
190
+ case "MISSION":
191
+ e.mission.push(r);
192
+ break;
193
+ case "GRAB":
194
+ e.grab.push(r);
195
+ break;
196
+ }
197
+ }
198
+ async function g() {
199
+ n.value = await u.readGroups();
200
+ }
201
+ async function y() {
202
+ t.value = await f.readAll();
203
+ }
204
+ return {
205
+ // State
206
+ campaigns: e,
207
+ templates: t,
208
+ groups: n,
209
+ voucher: c,
210
+ // Actions
211
+ read: m,
212
+ readGroups: g,
213
+ readTemplates: y
214
+ };
215
+ });
216
+ export {
217
+ u as c,
218
+ E as u
219
+ };
@@ -1,14 +1,14 @@
1
1
  import { h as s } from "./moment-D7p2TMB-.js";
2
- import "./index-DuKr4NrF.js";
3
- import { e as f } from "./effect-CSmAbPw5.js";
2
+ import "./index-CDYkEmcE.js";
3
+ import { e as f } from "./effect-BHqMMiuI.js";
4
4
  import { components as l } from "@feedmepos/ui-library";
5
- import { i as h } from "./rule-builder-BUbfKVI2.js";
6
- import { c as O } from "./rule-2xz8bsfH.js";
7
- import { u as C } from "./business-CKorj1jI.js";
8
- import { C as m } from "./campaign.fn-J0h3DHY7.js";
9
- import { i as d, c as g } from "./plugins-DOuRSYyI.js";
5
+ import { i as h } from "./rule-builder-xRhvszfI.js";
6
+ import { c as O } from "./rule-DtQ_9tIs.js";
7
+ import { u as C } from "./business-Dx3tPdK2.js";
8
+ import { C as m } from "./campaign.fn-DG6v0D4_.js";
9
+ import { i as d, c as g } from "./plugins-Cr4fq1-c.js";
10
10
  import { h as p } from "vue";
11
- import { F as a } from "./campaign.enum-Y2VyD9Rk.js";
11
+ import { F as a } from "./campaign.enum-IZBI1M64.js";
12
12
  const o = d.global.t;
13
13
  function E() {
14
14
  const e = d.global.locale;
@@ -1,4 +1,4 @@
1
- import { z as E } from "./index-Th2v5uhF.js";
1
+ import { z as E } from "./index-B5R3rD12.js";
2
2
  const M = E.enum([
3
3
  "VOUCHER",
4
4
  "PROMOTION",