@feedmepos/mf-connect 0.1.38-beta.52 → 0.1.38-beta.53

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 (130) hide show
  1. package/package.json +2 -2
  2. package/dist/Analytic-BU1mOMoX.js +0 -760
  3. package/dist/App-fw6iFNxW.js +0 -4638
  4. package/dist/AuditLogs-CliU8167.js +0 -1887
  5. package/dist/Bin-C49tzfas.js +0 -166
  6. package/dist/Broadcast-YZVnZTCD.js +0 -232
  7. package/dist/CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DEwsZags.js +0 -122
  8. package/dist/Card-DcQQyJl9.js +0 -911
  9. package/dist/ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js +0 -97
  10. package/dist/Collections--8lmoXWR.js +0 -540
  11. package/dist/Credit-CfkLFMei.js +0 -227
  12. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-Du7fRSZC.js +0 -128
  13. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js +0 -58
  14. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-t6eac8yR.js +0 -3151
  15. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-CXVOuiLI.js +0 -347
  16. package/dist/Experience-BnVVC2-L.js +0 -228
  17. package/dist/FileSaver.min-NlMItPOc.js +0 -74
  18. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +0 -129
  19. package/dist/Game-Dbz4DzY_.js +0 -297
  20. package/dist/Grab-CCqScmpp.js +0 -300
  21. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-C5irH9v6.js +0 -145
  22. package/dist/Index-DPsM9D4W.js +0 -259
  23. package/dist/JsonViewer-v8_C7l5N.js +0 -87
  24. package/dist/LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js +0 -18737
  25. package/dist/MainLayout-B1aJoR95.js +0 -41
  26. package/dist/Marketing-CFwxWdJq.js +0 -21761
  27. package/dist/Member-ZPKbf5Bk.js +0 -281
  28. package/dist/MemberList-BDs-70nG.js +0 -1607
  29. package/dist/MemberOverview-wL_ailso.js +0 -58
  30. package/dist/MemberTransactions-C-zHpuZF.js +0 -45
  31. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-B2TKmOOK.js +0 -60616
  32. package/dist/Mission-BHkb1E9m.js +0 -301
  33. package/dist/Overview-DYlcqNCX.js +0 -1079
  34. package/dist/Point-BEhNBY2_.js +0 -231
  35. package/dist/Promotion-DOXRIej4.js +0 -363
  36. package/dist/Queue-Bwa0LWhf.js +0 -260
  37. package/dist/Record-BoI8l1Qq.js +0 -341
  38. package/dist/Reward-BVQaqAYM.js +0 -442
  39. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-BC3dEiWi.js +0 -150
  40. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-HpleMvjm.js +0 -1767
  41. package/dist/Segment-Cmy7nu27.js +0 -882
  42. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-pab6X2DC.js +0 -181
  43. package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-BqIh8D8O.js +0 -189
  44. package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-CESoNd87.js +0 -147
  45. package/dist/Setting-DN8j_6Xv.js +0 -1993
  46. package/dist/SettingAdvertisements-qHdiaa6m.js +0 -264
  47. package/dist/Store-DfhVYCgX.js +0 -1936
  48. package/dist/StoreRewards-NYucFLJU.js +0 -535
  49. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BGOcOAXR.js +0 -1036
  50. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DRin8Jzw.js +0 -8093
  51. package/dist/Tier-Dl0aBuJz.js +0 -970
  52. package/dist/Title-DvO6Mira.js +0 -568
  53. package/dist/Transaction-ONVl4UZZ.js +0 -39
  54. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-FyE25D8o.js +0 -130
  55. package/dist/Voucher-BZ1feYh1.js +0 -399
  56. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-Lilql8J4.js +0 -421
  57. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-C_ZdCOPI.js +0 -56
  58. package/dist/_commonjsHelpers-BkfeUUK-.js +0 -28
  59. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  60. package/dist/app-B_RRkjaD.js +0 -42566
  61. package/dist/app-wDQR6dpb.js +0 -39
  62. package/dist/app.js +0 -7
  63. package/dist/business-y5qSMcd-.js +0 -82
  64. package/dist/campaign-CpzFl8Vr.js +0 -4
  65. package/dist/campaign-DHgol2Lt.js +0 -219
  66. package/dist/campaign-Drxe0zPX.js +0 -253
  67. package/dist/campaign.enum-CwAPVgPe.js +0 -21
  68. package/dist/campaign.fn-DMx5xsiK.js +0 -776
  69. package/dist/collectible.enum-Bh4jnUgP.js +0 -19
  70. package/dist/collection.fn-BpC_YBwG.js +0 -26
  71. package/dist/dto-DWkf9QOb.js +0 -222
  72. package/dist/effect-D5ZWGpNS.js +0 -78
  73. package/dist/email-addresses-DFtVESS8.js +0 -705
  74. package/dist/export-BtUy3sWU.js +0 -97
  75. package/dist/feedme.ico +0 -0
  76. package/dist/helper-DtWMZoWX.js +0 -86
  77. package/dist/index-7HXC3sH0.js +0 -56
  78. package/dist/index-BQlhmw75.js +0 -3
  79. package/dist/index-BdX7CxUg.js +0 -30076
  80. package/dist/index-BerRe0M3.js +0 -76
  81. package/dist/index-BrZ3xZzk.js +0 -146
  82. package/dist/index-CJzBpsBP.js +0 -3412
  83. package/dist/index-CQiABpeB.js +0 -32456
  84. package/dist/index-CqIWlGW3.js +0 -38
  85. package/dist/index-CsaQJMAR.js +0 -66
  86. package/dist/index-DPCDboPA.js +0 -32
  87. package/dist/index-DPaH8jaV.js +0 -8884
  88. package/dist/index-Dkce3JZ_.js +0 -54
  89. package/dist/index-DrYv_gG4.js +0 -31
  90. package/dist/index-SfJbKfWl.js +0 -2407
  91. package/dist/index-vh86FiIQ.js +0 -10
  92. package/dist/index.esm2017-CbvE5vCC.js +0 -3069
  93. package/dist/loading-BWGIK17X.js +0 -71
  94. package/dist/lodash-B5I3zXaY.js +0 -3678
  95. package/dist/membership-Zy2P6O6X.js +0 -235
  96. package/dist/moment-D7p2TMB-.js +0 -2583
  97. package/dist/money-D_fZmBbi.js +0 -15
  98. package/dist/number-C4DhXkCm.js +0 -12
  99. package/dist/object-qECH92oz.js +0 -26
  100. package/dist/objectId-dwaoBfJX.js +0 -7
  101. package/dist/objectid-C6eRcDzI.js +0 -145
  102. package/dist/plugins-DDAJav2s.js +0 -1817
  103. package/dist/reward-Dxjvmy7-.js +0 -36
  104. package/dist/rule-builder-ZkPWAiTl.js +0 -102
  105. package/dist/rule-sclqeiyk.js +0 -1951
  106. package/dist/style.css +0 -4
  107. package/dist/template-CAs0lkTY.js +0 -188
  108. package/dist/tier-BJDhpH6X.js +0 -4
  109. package/dist/tiers/tier=1.png +0 -0
  110. package/dist/tiers/tier=2.png +0 -0
  111. package/dist/tiers/tier=3.png +0 -0
  112. package/dist/tiers/tier=4.png +0 -0
  113. package/dist/timezone-5t8ki0gE.js +0 -1151
  114. package/dist/titles/type=diamond.png +0 -0
  115. package/dist/titles/type=drinks.png +0 -0
  116. package/dist/titles/type=food.png +0 -0
  117. package/dist/titles/type=heart.png +0 -0
  118. package/dist/titles/type=medal.png +0 -0
  119. package/dist/titles/type=spend.png +0 -0
  120. package/dist/titles/type=thank-you.png +0 -0
  121. package/dist/titles/type=thumbs-up.png +0 -0
  122. package/dist/titles/type=years.png +0 -0
  123. package/dist/trigger-B2fpKTfg.js +0 -213
  124. package/dist/tslib.es6-BCqqvLQ_.js +0 -44
  125. package/dist/type_drinks-D6jnpvwV.js +0 -4
  126. package/dist/usePagination-Ds-cuHop.js +0 -223
  127. package/dist/user-ORhbAsqi.js +0 -55
  128. package/dist/vue-i18n-cyOhW8mW.js +0 -2365
  129. package/dist/xlsx-4klfjFae.js +0 -15491
  130. package/dist/zod-BsHmzMQd.js +0 -91
@@ -1,19 +0,0 @@
1
- import { z as e } from "./index-CQiABpeB.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-DPaH8jaV.js";
2
- import "./index-CQiABpeB.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,222 +0,0 @@
1
- import { F as o, z as a } from "./index-CQiABpeB.js";
2
- import { t as R, a as r, u as h } from "./index-CJzBpsBP.js";
3
- import { F as u } from "./index-DPaH8jaV.js";
4
- import { i as f, R as d } from "./rule-builder-ZkPWAiTl.js";
5
- function A(n, e) {
6
- var p, l;
7
- if (console.log(n, e), !n) return;
8
- const t = n.campaign;
9
- if (!t) return;
10
- const i = t.event.rule;
11
- if (!i || !f(i)) {
12
- e.addIssue({
13
- code: "custom",
14
- path: ["campaign", "event", "rule"],
15
- params: {
16
- i18n: "connectZodCustom:campaign.rule_required",
17
- type: t.event.type
18
- }
19
- });
20
- return;
21
- }
22
- switch (t.type) {
23
- case "MISSION": {
24
- t.earningOption.amount > t.mission.end && e.addIssue({
25
- code: "custom",
26
- path: ["campaign", "earningOption"],
27
- params: {
28
- i18n: "connectZodCustom:campaign.earning_amount_exceed",
29
- max: t.mission.end
30
- }
31
- });
32
- break;
33
- }
34
- case "CREDIT": {
35
- const c = (p = t.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 (t.event.type) {
46
- case "BILL_COMPLETED":
47
- t.type === "MISSION" && t.rewards.length && (t.rewards.forEach((c, m) => {
48
- (c.threshold < 0 || c.threshold > t.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 = t.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 = d.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 I = d.simplify(C);
89
- return I.property === O.property && O.operator.includes(I.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 t && t.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 N(n) {
112
- var t;
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 = (t = n.campaign.config) == null ? void 0 : t.validityOption;
128
- }
129
- const e = n.campaign.event;
130
- return e.type != "BILL_COMPLETED" && e.rule && f(e.rule) && (e.rule = d.removeEntry(e.rule, "g_bill"), n.campaign.event = e), n;
131
- }
132
- function s(n) {
133
- const e = h.optionsMap.get(n).extend({
134
- _id: o.optional(),
135
- collectible: a.string().nullish()
136
- });
137
- switch (n) {
138
- case "VOUCHER":
139
- return a.object({
140
- campaign: e,
141
- templateId: o,
142
- configs: u,
143
- updateCollections: a.boolean().optional(),
144
- code: a.string().optional()
145
- });
146
- case "PROMOTION":
147
- return a.object({
148
- campaign: e,
149
- templateId: o
150
- });
151
- case "POINT":
152
- return a.object({
153
- campaign: e,
154
- templateId: o
155
- });
156
- case "CREDIT":
157
- return a.object({
158
- campaign: e,
159
- templateId: o
160
- });
161
- case "BROADCAST":
162
- return a.object({
163
- campaign: e,
164
- templateId: o
165
- });
166
- case "COIN":
167
- return a.object({
168
- campaign: e,
169
- templateId: o
170
- });
171
- case "REWARD_POOL":
172
- return a.object({
173
- campaign: e,
174
- templateId: o,
175
- updateCollections: a.boolean().optional()
176
- });
177
- case "GAME":
178
- return a.object({
179
- campaign: e,
180
- configs: u,
181
- templateId: o,
182
- updateCollections: a.boolean().optional()
183
- });
184
- case "MISSION":
185
- return a.object({
186
- campaign: e,
187
- configs: u,
188
- templateId: o,
189
- updateCollections: a.boolean().optional()
190
- });
191
- case "GRAB":
192
- return a.object({
193
- campaign: e,
194
- templateId: o
195
- });
196
- default:
197
- throw new Error("Not implemented");
198
- }
199
- }
200
- const D = R.extend({
201
- _id: o.optional(),
202
- name: a.string().min(1).max(300),
203
- business: o.optional(),
204
- campaigns: a.array(o).optional()
205
- }), T = {
206
- [r.enum.VOUCHER]: s("VOUCHER"),
207
- [r.enum.PROMOTION]: s("PROMOTION"),
208
- [r.enum.POINT]: s("POINT"),
209
- [r.enum.CREDIT]: s("CREDIT"),
210
- [r.enum.BROADCAST]: s("BROADCAST"),
211
- [r.enum.COIN]: s("COIN"),
212
- [r.enum.REWARD_POOL]: s("REWARD_POOL"),
213
- [r.enum.GAME]: s("GAME"),
214
- [r.enum.MISSION]: s("MISSION"),
215
- [r.enum.GRAB]: s("GRAB")
216
- };
217
- export {
218
- T as C,
219
- D as F,
220
- N as a,
221
- A as c
222
- };
@@ -1,78 +0,0 @@
1
- import { c as r } from "./index-BdX7CxUg.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
- };