@feedmepos/mf-connect 0.1.56-prod → 0.1.58-prod

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 (128) hide show
  1. package/package.json +1 -1
  2. package/dist/Analytic-XUI4rZyP.js +0 -427
  3. package/dist/App-vv5J1Ebe.js +0 -4630
  4. package/dist/Bin-D4V36uXK.js +0 -166
  5. package/dist/Broadcast-BvW27G77.js +0 -233
  6. package/dist/CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D2MC6Gy1.js +0 -121
  7. package/dist/Card-C7xLv1Fb.js +0 -911
  8. package/dist/ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js +0 -97
  9. package/dist/Collections-BKfS-bGL.js +0 -458
  10. package/dist/Credit-CGmWQq0t.js +0 -228
  11. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-Du7fRSZC.js +0 -128
  12. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-C2p6_R01.js +0 -2194
  13. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-BGlaqjWp.js +0 -348
  14. package/dist/Experience-CT7Yab3W.js +0 -229
  15. package/dist/FileSaver.min-NlMItPOc.js +0 -74
  16. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +0 -129
  17. package/dist/Game-DtW4rtYQ.js +0 -284
  18. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-D1KQpDGg.js +0 -144
  19. package/dist/Index-Bs5ob9Km.js +0 -259
  20. package/dist/JsonViewer-v8_C7l5N.js +0 -87
  21. package/dist/LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js +0 -18737
  22. package/dist/MainLayout-B1aJoR95.js +0 -41
  23. package/dist/Marketing-tA350rTd.js +0 -319
  24. package/dist/Member-CZoTXgKz.js +0 -279
  25. package/dist/MemberList-ChwyPtmW.js +0 -1607
  26. package/dist/MemberOverview-wL_ailso.js +0 -58
  27. package/dist/MemberTransactions-Cchtvxm9.js +0 -45
  28. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-Bo0EnHBx.js +0 -60553
  29. package/dist/Mission-DDpelLqN.js +0 -302
  30. package/dist/Overview-Da3ewBat.js +0 -1079
  31. package/dist/Point-CggE8VUk.js +0 -232
  32. package/dist/Promotion-DxvbZhgQ.js +0 -289
  33. package/dist/Queue-fIxlHrMd.js +0 -260
  34. package/dist/Record-Bv90_VUG.js +0 -341
  35. package/dist/Reward-BWYLk7aC.js +0 -442
  36. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-CjYEtENe.js +0 -150
  37. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Ak1R8Y2a.js +0 -1763
  38. package/dist/Segment-_VGdBy3a.js +0 -882
  39. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-Dm4hF1n1.js +0 -181
  40. package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-DWDMhmNr.js +0 -188
  41. package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-Czy25PII.js +0 -147
  42. package/dist/Setting-7fTz1dJa.js +0 -1936
  43. package/dist/Store-TQHKR__B.js +0 -1842
  44. package/dist/StoreRewards-DZy1ZwiI.js +0 -423
  45. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Cae25Vr6.js +0 -995
  46. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-BVVEzpyP.js +0 -139
  47. package/dist/Tier-CK53vdbl.js +0 -895
  48. package/dist/Title-CGWPq_FF.js +0 -566
  49. package/dist/Transaction-DjJ03PfX.js +0 -39
  50. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-DNSdyxrF.js +0 -130
  51. package/dist/Voucher-D6RuJjNn.js +0 -384
  52. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-D4iCOq3V.js +0 -419
  53. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-BFz8RvY_.js +0 -56
  54. package/dist/_commonjsHelpers-BkfeUUK-.js +0 -28
  55. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  56. package/dist/app-BLlAxdVk.js +0 -57962
  57. package/dist/app-_rmIFJ8M.js +0 -7057
  58. package/dist/app-wDQR6dpb.js +0 -39
  59. package/dist/app.js +0 -6
  60. package/dist/business-gJ9fK_2b.js +0 -82
  61. package/dist/campaign-BfznfcHc.js +0 -94
  62. package/dist/campaign-C_Yq-ffV.js +0 -1810
  63. package/dist/campaign-CpzFl8Vr.js +0 -4
  64. package/dist/campaign.enum-Dsbpz7BO.js +0 -20
  65. package/dist/campaign.fn-C6vKb-lp.js +0 -758
  66. package/dist/collectible.enum-DNpj_oyC.js +0 -19
  67. package/dist/collection.fn-Cgo0sPL2.js +0 -26
  68. package/dist/dto-CaSQ4Pp9.js +0 -216
  69. package/dist/effect-DuH74x-N.js +0 -78
  70. package/dist/email-addresses-DXr-Qqt9.js +0 -705
  71. package/dist/export-tMPFlVV0.js +0 -97
  72. package/dist/feedme.ico +0 -0
  73. package/dist/helper-CJTseW10.js +0 -71
  74. package/dist/index-8RETBwYy.js +0 -8861
  75. package/dist/index-B57kxqv7.js +0 -3
  76. package/dist/index-BNUuy_4R.js +0 -44
  77. package/dist/index-BSJ-4JYy.js +0 -146
  78. package/dist/index-BTpBLMHl.js +0 -3070
  79. package/dist/index-C6Iyn1Q6.js +0 -54
  80. package/dist/index-CWI06v9e.js +0 -31
  81. package/dist/index-CdnKwJuz.js +0 -30076
  82. package/dist/index-Cr_9Bqa1.js +0 -121
  83. package/dist/index-CuvNtC_M.js +0 -61
  84. package/dist/index-DTyfvK3U.js +0 -2130
  85. package/dist/index-Dn0gJspN.js +0 -32269
  86. package/dist/index-IHKkNyxb.js +0 -38
  87. package/dist/index-J3TDCX-5.js +0 -76
  88. package/dist/index-V9kRRAB1.js +0 -32
  89. package/dist/index-vh86FiIQ.js +0 -10
  90. package/dist/index.esm2017-P2nmohVw.js +0 -3069
  91. package/dist/loading-D5ZAAdUU.js +0 -71
  92. package/dist/lodash-B5I3zXaY.js +0 -3678
  93. package/dist/membership-xl9aKOQ_.js +0 -235
  94. package/dist/moment-D7p2TMB-.js +0 -2583
  95. package/dist/money-CIHN3jJZ.js +0 -15
  96. package/dist/number-BN4-Jdog.js +0 -12
  97. package/dist/object-qECH92oz.js +0 -26
  98. package/dist/objectId-dwaoBfJX.js +0 -7
  99. package/dist/objectid-Dh6RD0Tk.js +0 -145
  100. package/dist/plugins-CJlgzIv2.js +0 -208
  101. package/dist/reward-C8mezXzs.js +0 -36
  102. package/dist/rule-9VRIJFHZ.js +0 -1951
  103. package/dist/rule-builder-CZUgrDAw.js +0 -102
  104. package/dist/style.css +0 -4
  105. package/dist/template-aPJnNGLi.js +0 -190
  106. package/dist/tier-BJDhpH6X.js +0 -4
  107. package/dist/tiers/tier=1.png +0 -0
  108. package/dist/tiers/tier=2.png +0 -0
  109. package/dist/tiers/tier=3.png +0 -0
  110. package/dist/tiers/tier=4.png +0 -0
  111. package/dist/timezone-CpvXaiqq.js +0 -1151
  112. package/dist/titles/type=diamond.png +0 -0
  113. package/dist/titles/type=drinks.png +0 -0
  114. package/dist/titles/type=food.png +0 -0
  115. package/dist/titles/type=heart.png +0 -0
  116. package/dist/titles/type=medal.png +0 -0
  117. package/dist/titles/type=spend.png +0 -0
  118. package/dist/titles/type=thank-you.png +0 -0
  119. package/dist/titles/type=thumbs-up.png +0 -0
  120. package/dist/titles/type=years.png +0 -0
  121. package/dist/trigger-BfrtcBd-.js +0 -144
  122. package/dist/tslib.es6-BCqqvLQ_.js +0 -44
  123. package/dist/type_drinks-D6jnpvwV.js +0 -4
  124. package/dist/usePagination-Ds-cuHop.js +0 -223
  125. package/dist/user-Bt1C0yV5.js +0 -54
  126. package/dist/vue-i18n-OdHHHpEE.js +0 -2365
  127. package/dist/xlsx-BgB0dYfE.js +0 -15491
  128. package/dist/zod-Bg2FbC-D.js +0 -90
@@ -1,19 +0,0 @@
1
- import { z as e } from "./index-Dn0gJspN.js";
2
- const E = e.enum([
3
- "VOUCHER",
4
- "CREDIT",
5
- "POINT",
6
- "COIN",
7
- "TIER",
8
- "TITLE",
9
- "COIN",
10
- "GAME",
11
- "STAMP",
12
- "REFERRAL"
13
- ]);
14
- E.enum.VOUCHER + "", E.enum.CREDIT + "", E.enum.POINT + "", E.enum.COIN + "", E.enum.TIER + "", E.enum.TITLE + "", E.enum.GAME + "", E.enum.STAMP + "", E.enum.REFERRAL + "";
15
- const R = e.enum(["FORTUNE_WHEEL", "ROCK_PAPER_SCISSORS"]);
16
- export {
17
- E as F,
18
- R as a
19
- };
@@ -1,26 +0,0 @@
1
- import "./index-8RETBwYy.js";
2
- import "./index-Dn0gJspN.js";
3
- function r(e) {
4
- switch (e) {
5
- case "PROMOTION":
6
- return "Promotion";
7
- case "VOUCHER":
8
- return "Voucher";
9
- case "CREDIT":
10
- return "Credit";
11
- case "POINT":
12
- return "Experience";
13
- case "COIN":
14
- return "Point";
15
- case "GAME":
16
- return "Game";
17
- default:
18
- return e;
19
- }
20
- }
21
- const o = {
22
- formattedType: r
23
- };
24
- export {
25
- o as C
26
- };
@@ -1,216 +0,0 @@
1
- import { F as o, z as t } from "./index-Dn0gJspN.js";
2
- import { z as h, a as r, A as _ } from "./index-BTpBLMHl.js";
3
- import { F as d } from "./index-8RETBwYy.js";
4
- import { i as I, R as u } from "./rule-builder-CZUgrDAw.js";
5
- function N(n, e) {
6
- var p, l;
7
- if (!n) return;
8
- const a = n.campaign;
9
- if (!a) return;
10
- const i = a.event.rule;
11
- if (!i || !I(i)) {
12
- e.addIssue({
13
- code: "custom",
14
- path: ["campaign", "event", "rule"],
15
- params: {
16
- i18n: "connectZodCustom:campaign.rule_required",
17
- type: a.event.type
18
- }
19
- });
20
- return;
21
- }
22
- switch (a.type) {
23
- case "MISSION": {
24
- a.earningOption.amount > a.mission.end && e.addIssue({
25
- code: "custom",
26
- path: ["campaign", "earningOption"],
27
- params: {
28
- i18n: "connectZodCustom:campaign.earning_amount_exceed",
29
- max: a.mission.end
30
- }
31
- });
32
- break;
33
- }
34
- case "CREDIT": {
35
- const c = (p = a.config) == null ? void 0 : p.validityOption;
36
- (!c || ["validForDay", "validBefore"].every((g) => c[g] == null)) && e.addIssue({
37
- code: "custom",
38
- path: ["campaign", "config", "validityOption"],
39
- params: {
40
- i18n: "connectZodCustom:campaign.credit_validity_required"
41
- }
42
- });
43
- }
44
- }
45
- switch (a.event.type) {
46
- case "BILL_COMPLETED":
47
- a.type === "MISSION" && a.rewards.length && (a.rewards.forEach((c, m) => {
48
- (c.threshold < 0 || c.threshold > a.mission.end) && e.addIssue({
49
- code: "custom",
50
- path: ["campaign", "rewards", m, "threshold"],
51
- params: {
52
- i18n: "connectZodCustom:campaign.reward_threshold_range"
53
- }
54
- });
55
- }), (l = a.config) != null && l.validityOption.followFirstReceive || e.addIssue({
56
- code: "custom",
57
- path: ["campaign", "config", "validityOption"],
58
- params: {
59
- i18n: "connectZodCustom:campaign.mission_first_receive"
60
- }
61
- }));
62
- break;
63
- case "SCHEDULE": {
64
- if (!i.rules.g_schedule) {
65
- e.addIssue({
66
- code: "custom",
67
- path: ["campaign", "event", "rule"],
68
- params: {
69
- i18n: "connectZodCustom:campaign.schedule_period_required"
70
- },
71
- fatal: !0
72
- });
73
- return;
74
- }
75
- const c = u.getRules(
76
- i.rules.g_schedule
77
- ), m = [
78
- {
79
- property: "trigger.date",
80
- operator: ["_isOnDate", "_rrule"]
81
- },
82
- {
83
- property: "trigger.time",
84
- operator: ["_isOnTime"]
85
- }
86
- ];
87
- m.length == c.length && m.every((O) => c.some((C) => {
88
- const f = u.simplify(C);
89
- return f.property === O.property && O.operator.includes(f.operator);
90
- })) || e.addIssue({
91
- code: "custom",
92
- path: ["campaign", "event", "rule"],
93
- params: {
94
- i18n: "connectZodCustom:campaign.active_period_invalid"
95
- }
96
- });
97
- break;
98
- }
99
- default: {
100
- "earningOption" in a && a.earningOption.type != "FIXED" && e.addIssue({
101
- code: "custom",
102
- path: ["campaign", "earningOption"],
103
- params: {
104
- i18n: "connectZodCustom:campaign.fixed_earning_required"
105
- }
106
- });
107
- break;
108
- }
109
- }
110
- }
111
- function A(n) {
112
- var a;
113
- if (n.campaign.type === "VOUCHER" && "configs" in n) {
114
- const i = n.configs;
115
- i.extras.targetLocation = n.campaign.targetLocation;
116
- const p = Math.max(
117
- n.campaign.earningOption.amount,
118
- i.options.maxUse ?? 1
119
- );
120
- n.campaign.earningOption.amount = p, i.options.maxUse = p, n.campaign.earningOption = {
121
- type: "FIXED",
122
- amount: 1
123
- };
124
- }
125
- if (n.campaign.type == "MISSION" && "configs" in n) {
126
- const i = n.configs;
127
- i.options.validityOption = (a = n.campaign.config) == null ? void 0 : a.validityOption;
128
- }
129
- const e = n.campaign.event;
130
- return e.type != "BILL_COMPLETED" && e.rule && I(e.rule) && (e.rule = u.removeEntry(e.rule, "g_bill"), n.campaign.event = e), n;
131
- }
132
- function s(n) {
133
- const e = _.optionsMap.get(n).extend({
134
- _id: o.optional(),
135
- collectible: t.string().nullish()
136
- });
137
- switch (n) {
138
- case "VOUCHER":
139
- return t.object({
140
- campaign: e,
141
- templateId: o,
142
- configs: d,
143
- updateCollections: t.boolean().optional(),
144
- code: t.string().optional()
145
- });
146
- case "PROMOTION":
147
- return t.object({
148
- campaign: e,
149
- templateId: o
150
- });
151
- case "POINT":
152
- return t.object({
153
- campaign: e,
154
- templateId: o
155
- });
156
- case "CREDIT":
157
- return t.object({
158
- campaign: e,
159
- templateId: o
160
- });
161
- case "BROADCAST":
162
- return t.object({
163
- campaign: e,
164
- templateId: o
165
- });
166
- case "COIN":
167
- return t.object({
168
- campaign: e,
169
- templateId: o
170
- });
171
- case "REWARD_POOL":
172
- return t.object({
173
- campaign: e,
174
- templateId: o,
175
- updateCollections: t.boolean().optional()
176
- });
177
- case "GAME":
178
- return t.object({
179
- campaign: e,
180
- configs: d,
181
- templateId: o,
182
- updateCollections: t.boolean().optional()
183
- });
184
- case "MISSION":
185
- return t.object({
186
- campaign: e,
187
- configs: d,
188
- templateId: o,
189
- updateCollections: t.boolean().optional()
190
- });
191
- default:
192
- throw new Error("Not implemented");
193
- }
194
- }
195
- const D = h.extend({
196
- _id: o.optional(),
197
- name: t.string().min(1).max(300),
198
- business: o.optional(),
199
- campaigns: t.array(o).optional()
200
- }), T = {
201
- [r.enum.VOUCHER]: s("VOUCHER"),
202
- [r.enum.PROMOTION]: s("PROMOTION"),
203
- [r.enum.POINT]: s("POINT"),
204
- [r.enum.CREDIT]: s("CREDIT"),
205
- [r.enum.BROADCAST]: s("BROADCAST"),
206
- [r.enum.COIN]: s("COIN"),
207
- [r.enum.REWARD_POOL]: s("REWARD_POOL"),
208
- [r.enum.GAME]: s("GAME"),
209
- [r.enum.MISSION]: s("MISSION")
210
- };
211
- export {
212
- T as C,
213
- D as F,
214
- A as a,
215
- N as c
216
- };
@@ -1,78 +0,0 @@
1
- import { c as r } from "./index-CdnKwJuz.js";
2
- function m(e) {
3
- if (!e)
4
- return null;
5
- const o = r.Config.getCountry().currency.symbol;
6
- function s(t) {
7
- const n = r.Dinero.fromFdoDecimal({ decimal: t.adjustment.amount });
8
- switch (t.adjustment.type) {
9
- case "BY_PERCENTAGE":
10
- return `${n.toObject().amount}% discount`;
11
- case "BY_AMOUNT":
12
- return `${o}${n.toUnit()} discount`;
13
- case "TO_AMOUNT":
14
- return `to ${o}${n.toUnit()}`;
15
- }
16
- }
17
- function u(t) {
18
- switch (t.options.target) {
19
- case "BILL":
20
- return "Bill Discount";
21
- case "ITEM":
22
- if (t.options.strategy.type === "SIMPLE")
23
- return "Item Discount";
24
- if (t.options.strategy.type === "BUY_X_GET_Y")
25
- return "Buy X Get Y (same product set)";
26
- if (t.options.strategy.type === "BUY_X_GET_Y_V2")
27
- return "Buy X Get Y (mixed product set)";
28
- if (t.options.strategy.type === "BUY_X_ITEM_A_GET_Y_ITEM_B")
29
- return "Buy X Get Y (different product set)";
30
- if (t.options.strategy.type === "COMBO")
31
- return "Combo";
32
- break;
33
- case "PAYMENT":
34
- return "Payment";
35
- default:
36
- throw new Error("Invalid effect target");
37
- }
38
- }
39
- function a(t) {
40
- if (t.options.target === "BILL" || t.options.target === "PAYMENT") {
41
- const n = r.Dinero.fromFdoDecimal({
42
- decimal: t.options.minPurchase
43
- });
44
- return n.toUnit() > 0 ? `min spend ${o}${n.toUnit()}` : "no min spend";
45
- }
46
- if (t.options.target === "ITEM" && t.options.minPurchase) {
47
- const n = r.Dinero.fromFdoDecimal({
48
- decimal: t.options.minPurchase
49
- });
50
- return n.toUnit() > 0 ? `min spend ${o}${n.toUnit()}` : "no min spend";
51
- }
52
- return "no min spend";
53
- }
54
- function c(t) {
55
- var n;
56
- if (((n = t.adjustmentRule) == null ? void 0 : n.type) == "CAPPED_AT") {
57
- const i = r.Dinero.fromFdoDecimal({
58
- decimal: t.adjustmentRule.amount
59
- }).toPositive();
60
- return i.toUnit() > 0 ? `cap at ${o}${i.toUnit()}` : null;
61
- }
62
- return null;
63
- }
64
- return {
65
- type: u(e),
66
- adjustment: s(e),
67
- requirements: a(e),
68
- maxCap: c(e)
69
- };
70
- }
71
- function f(e) {
72
- const o = m(e);
73
- return !e || !o ? null : Object.values(o).filter(Boolean).join(" | ");
74
- }
75
- export {
76
- f as e,
77
- m as s
78
- };