@feedmepos/mf-connect 0.0.12-beta.5 → 0.0.13-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.
- package/dist/Analytic-DMbCeTaO.js +612 -0
- package/dist/{Broadcast-BFHQPSXL.js → Broadcast-bVaOzrys.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B1DYJDOy.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Cd2midth.js} +8 -8
- package/dist/{Card-rOJ8yJg_.js → Card-CdCTfDuP.js} +127 -127
- package/dist/{Collections-BT8ihCOa.js → Collections-CQIHkJ4W.js} +129 -141
- package/dist/{Credit-D83Jsn7v.js → Credit-DuIm1c4_.js} +7 -7
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang--L-LP0DV.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-DljWmOEP.js} +258 -242
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-HLzZirO_.js → EffectSheet.vue_vue_type_style_index_0_lang-BuJL01zR.js} +6 -6
- package/dist/{Experience-C6uBhQod.js → Experience-DEnMLbsA.js} +7 -7
- package/dist/{Game-5P5HWqAL.js → Game-BYS0nrH6.js} +7 -7
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-DTDcpMpW.js → ImageInput.vue_vue_type_script_setup_true_lang-DW2tVaY0.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CQIJ54m1.js → MainLayout-BkFJubzZ.js} +53 -20
- package/dist/{Marketing-ONuItJ_B.js → Marketing-Da0HTlaz.js} +25 -25
- package/dist/{Member-SB2IySXY.js → Member-CVe_bRGx.js} +2 -2
- package/dist/MemberList-DpUy4gFd.js +1718 -0
- package/dist/{MemberTransactions-DPQ6M7eR.js → MemberTransactions-DWdTDUIJ.js} +2 -2
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-1KjmvWsp.js +203 -0
- package/dist/{Mission-rdnU6erJ.js → Mission-0eSMWCls.js} +7 -7
- package/dist/{Point-C2M66ORj.js → Point-ju1eHI9Z.js} +7 -7
- package/dist/{Promotion-DixbjmMJ.js → Promotion-DZjWvnQa.js} +8 -8
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CJsIBnGp.js → RuleGroup.vue_vue_type_script_setup_true_lang-CDPvpj10.js} +14 -14
- package/dist/{Segment-j_zQSV7O.js → Segment-Da_kMLWC.js} +18 -19
- package/dist/{Setting-ClhkF-bT.js → Setting-CxX35f3G.js} +541 -571
- package/dist/Store-DjUI3S8V.js +1442 -0
- package/dist/{StoreRewards-Bh90Ml4z.js → StoreRewards-92k0Bvp_.js} +74 -75
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DlbNMiw9.js → StoreTransactions.vue_vue_type_script_setup_true_lang-Bsrz-oMi.js} +79 -82
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DNkJ-pFL.js +124 -0
- package/dist/{Tier-vxsDt3Kj.js → Tier-2J4GN90t.js} +68 -71
- package/dist/{Title-IFyz9vfW.js → Title-B3Dw3w_5.js} +75 -78
- package/dist/{Transaction-ETa-y_H9.js → Transaction-Dz6WT5Hb.js} +1 -1
- package/dist/{Voucher-BMYcuaPn.js → Voucher-Bf3oSOKc.js} +37 -37
- package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-3LlSDiq0.js +140 -0
- package/dist/{app-Bl9KwQq5.js → app-BSmDH0M7.js} +46 -46
- package/dist/{app-BqWTxQI-.js → app-C7I-jK_l.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/{campaign-DI8CmTo2.js → campaign-CmvlWUoI.js} +11 -13
- package/dist/{collection.fn-CTEuol1r.js → collection.fn-DHlfGYAC.js} +2 -4
- package/dist/{dto-Bdlgo-8k.js → dto-rs6D-mtj.js} +239 -239
- package/dist/{effect-BdgYZfgW.js → effect-D8eQcTDU.js} +1 -1
- package/dist/{export-Dr_7YvBE.js → export-Bf2h8rMP.js} +3 -3
- package/dist/{helper-BygQ4tND.js → helper-BSlBLPdy.js} +1 -1
- package/dist/{index-CstgquVp.js → index-B64Y4rdW.js} +2 -2
- package/dist/{index-Djv3w5gV.js → index-BVSAl8E2.js} +37 -46
- package/dist/{index-DzQwND7p.js → index-CdMMIVsr.js} +217 -232
- package/dist/index-CuW8ePVX.js +244 -0
- package/dist/{index-DPYzF8No.js → index-D0nFU6ln.js} +1 -1
- package/dist/{index-Cv0dYoWA.js → index-fFL3EyTx.js} +68 -105
- package/dist/{index-Dhl0c4JQ.js → index-jqxAE4Rp.js} +1 -1
- package/dist/{index-BPdhkx4l.js → index-sIR31szI.js} +1 -1
- package/dist/{index-BtG8YOzi.js → index-wIa5WSXJ.js} +27 -28
- package/dist/{index-CpxxO2-G.js → index-x9e-DyDf.js} +1 -1
- package/dist/{loading-DlPkAkzK.js → loading-BxJj39Hj.js} +3156 -3156
- package/dist/{lodash-Cjf6EG_s.js → lodash-CrYvSLZb.js} +1 -1
- package/dist/{membership-B4-9J74r.js → membership-DKQL_Qp9.js} +73 -84
- package/dist/{money-il542E4J.js → money-B1P0wtzb.js} +1 -1
- package/dist/{number-WhKft9Yv.js → number-Bc1eguaq.js} +3 -3
- package/dist/{rule-XS2i1LKt.js → rule-BblG87FW.js} +2 -2
- package/dist/{rule-builder-CdK4IIT9.js → rule-builder-BQdKD4Gy.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{template-owB8rrou.js → template-o2RQUsfw.js} +6 -6
- package/dist/{usePagination-CxpwPyMW.js → usePagination-BaqNzQhm.js} +1 -1
- package/dist/{xlsx-CbJTFamj.js → xlsx-DqRMXFBK.js} +309 -309
- package/package.json +1 -1
- package/dist/Analytic-CCtweUZA.js +0 -757
- package/dist/MainLayout-CWfQ53Qr.js +0 -41
- package/dist/MemberList-C2X8fM7F.js +0 -1729
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-CE03Mh2P.js +0 -432
- package/dist/Store-CaWIsSZ3.js +0 -1506
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DkpguWBa.js +0 -136
- package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-CWt4tVdk.js +0 -55
- package/dist/index-_8VUWoAN.js +0 -245
- package/dist/zod-W_PvIofQ.js +0 -90
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var g = Object.defineProperty;
|
|
2
2
|
var b = (s, e, o) => e in s ? g(s, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : s[e] = o;
|
|
3
3
|
var d = (s, e, o) => b(s, typeof e != "symbol" ? e + "" : e, o);
|
|
4
|
-
import { u as a, w as f } from "./xlsx-
|
|
5
|
-
import { u as h } from "./loading-
|
|
4
|
+
import { u as a, w as f } from "./xlsx-DqRMXFBK.js";
|
|
5
|
+
import { u as h } from "./loading-BxJj39Hj.js";
|
|
6
6
|
import { h as x } from "./moment-BWErdI6_.js";
|
|
7
|
-
import { m as w } from "./index-
|
|
7
|
+
import { m as w } from "./index-x9e-DyDf.js";
|
|
8
8
|
class y {
|
|
9
9
|
constructor() {
|
|
10
10
|
d(this, "records", []);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z as o, F as e, m as c } from "./loading-
|
|
2
|
-
import { n as d, o as u, p as m, m as a } from "./index-
|
|
1
|
+
import { z as o, F as e, m as c } from "./loading-BxJj39Hj.js";
|
|
2
|
+
import { n as d, o as u, p as m, m as a } from "./index-CdMMIVsr.js";
|
|
3
3
|
const b = o.enum([
|
|
4
4
|
"PORTAL",
|
|
5
5
|
"BENEFIT",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { z as e, F as n, e as A, m as p } from "./loading-
|
|
2
|
-
import { e as _, F as D, a as c, h as X, g as Z, j as d, k as Q, m as $ } from "./index-
|
|
3
|
-
import { b as T } from "./index-
|
|
4
|
-
import { b as L, c as ee } from "./index-
|
|
5
|
-
import { d as ne } from "./index-
|
|
1
|
+
import { z as e, F as n, e as A, m as p } from "./loading-BxJj39Hj.js";
|
|
2
|
+
import { e as _, F as D, a as c, h as X, g as Z, j as d, k as Q, m as $ } from "./index-CdMMIVsr.js";
|
|
3
|
+
import { b as T } from "./index-wIa5WSXJ.js";
|
|
4
|
+
import { b as L, c as ee } from "./index-B64Y4rdW.js";
|
|
5
|
+
import { d as ne } from "./index-CuW8ePVX.js";
|
|
6
6
|
const P = e.enum([
|
|
7
7
|
"VOUCHER",
|
|
8
8
|
"PROMOTION",
|
|
@@ -14,7 +14,7 @@ const P = e.enum([
|
|
|
14
14
|
"REWARD_POOL",
|
|
15
15
|
"GAME",
|
|
16
16
|
"MISSION"
|
|
17
|
-
]), M = e.enum(["TIME_BASED_PROMOTION", "GAME_PROMOTION"]),
|
|
17
|
+
]), M = e.enum(["TIME_BASED_PROMOTION", "GAME_PROMOTION"]), Ve = {
|
|
18
18
|
[M.enum.TIME_BASED_PROMOTION]: "7.7.4",
|
|
19
19
|
[M.enum.GAME_PROMOTION]: "7.7.4"
|
|
20
20
|
};
|
|
@@ -82,7 +82,7 @@ const oe = {
|
|
|
82
82
|
"MEMBER_REWARD",
|
|
83
83
|
"GAME_COMPLETED",
|
|
84
84
|
"PAGINATE_SCHEDULE"
|
|
85
|
-
]),
|
|
85
|
+
]), Ke = i.extract([
|
|
86
86
|
"BILL_COMPLETED",
|
|
87
87
|
"FEEDBACK",
|
|
88
88
|
"GAME_COMPLETED",
|
|
@@ -151,8 +151,7 @@ const m = e.object({
|
|
|
151
151
|
}), Ce = m.extend({
|
|
152
152
|
type: e.literal(i.enum.BILL_COMPLETED),
|
|
153
153
|
context: e.object({
|
|
154
|
-
bill: ie
|
|
155
|
-
rawBill: e.any()
|
|
154
|
+
bill: ie
|
|
156
155
|
})
|
|
157
156
|
}), ye = m.extend({
|
|
158
157
|
type: e.literal(i.enum.SCHEDULE),
|
|
@@ -226,7 +225,7 @@ const Fe = e.object({
|
|
|
226
225
|
I.partial({
|
|
227
226
|
_id: !0
|
|
228
227
|
});
|
|
229
|
-
const
|
|
228
|
+
const Je = I.partial({
|
|
230
229
|
_id: !0
|
|
231
230
|
}), Ae = {
|
|
232
231
|
collectionName: "Cards",
|
|
@@ -276,14 +275,12 @@ e.object({
|
|
|
276
275
|
bundle: e.string().optional(),
|
|
277
276
|
subscriptionBundle: e.string().optional()
|
|
278
277
|
});
|
|
279
|
-
const Te = e.enum(["SMS", "
|
|
278
|
+
const Te = e.enum(["SMS", "WHATSAPP"]), E = e.object({
|
|
280
279
|
channel: Te,
|
|
281
280
|
variables: e.array(e.string()),
|
|
282
|
-
title: e.string().nullish(),
|
|
283
|
-
design: e.any(),
|
|
284
281
|
content: e.string(),
|
|
285
282
|
language: e.string(),
|
|
286
|
-
imageUrl: e.string().
|
|
283
|
+
imageUrl: e.string().optional()
|
|
287
284
|
}).superRefine((o, a) => {
|
|
288
285
|
o.content.length == 0 && a.addIssue({
|
|
289
286
|
code: e.ZodIssueCode.custom,
|
|
@@ -295,7 +292,7 @@ const Te = e.enum(["SMS", "EMAIL"]), E = e.object({
|
|
|
295
292
|
message: "Invalid variable(s): " + b.join(", ")
|
|
296
293
|
});
|
|
297
294
|
});
|
|
298
|
-
function
|
|
295
|
+
function Ye(o, a) {
|
|
299
296
|
return o.replace(/{{(.*?)}}/g, (y, R) => {
|
|
300
297
|
const b = R.trim().split(".").reduce((u, q) => (u != null ? u[q] : null) ?? null, a);
|
|
301
298
|
return b !== null ? b : y;
|
|
@@ -319,7 +316,7 @@ const h = e.enum(["NO_REWARD", "VOUCHER", "LOYALTY"]), S = e.number().min(0, "We
|
|
|
319
316
|
weight: S
|
|
320
317
|
}), j = f.extend({
|
|
321
318
|
weight: e.number().min(0, "Weight need to be at least 0")
|
|
322
|
-
}),
|
|
319
|
+
}), qe = f.extend({
|
|
323
320
|
validityOption: Z
|
|
324
321
|
}), Le = e.discriminatedUnion("type", [
|
|
325
322
|
U,
|
|
@@ -337,17 +334,17 @@ const h = e.enum(["NO_REWARD", "VOUCHER", "LOYALTY"]), S = e.number().min(0, "We
|
|
|
337
334
|
N
|
|
338
335
|
]), G = B.extend({
|
|
339
336
|
threshold: x
|
|
340
|
-
}),
|
|
337
|
+
}), H = f.extend({
|
|
341
338
|
threshold: x
|
|
342
|
-
}),
|
|
339
|
+
}), v = e.discriminatedUnion("type", [
|
|
343
340
|
G,
|
|
344
|
-
|
|
341
|
+
H
|
|
345
342
|
]), Pe = e.discriminatedUnion("type", [
|
|
346
343
|
G.extend({
|
|
347
344
|
collectible: n.nullish(),
|
|
348
345
|
business: n.nullish()
|
|
349
346
|
}),
|
|
350
|
-
|
|
347
|
+
H.extend({
|
|
351
348
|
collectible: n.nullish(),
|
|
352
349
|
collectibleConfig: D.nullish(),
|
|
353
350
|
business: n.nullish()
|
|
@@ -362,7 +359,6 @@ const h = e.enum(["NO_REWARD", "VOUCHER", "LOYALTY"]), S = e.number().min(0, "We
|
|
|
362
359
|
_id: n,
|
|
363
360
|
business: n,
|
|
364
361
|
name: e.string(),
|
|
365
|
-
code: e.string().nullish(),
|
|
366
362
|
otp: e.string().nullish(),
|
|
367
363
|
otpExpiredAt: e.coerce.date().nullish(),
|
|
368
364
|
apiToken: e.string().nullish()
|
|
@@ -383,7 +379,7 @@ e.object({
|
|
|
383
379
|
const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
384
380
|
type: xe,
|
|
385
381
|
end: e.number().int().min(0, "Threshold need to be at least 1"),
|
|
386
|
-
rewards: e.array(e.lazy(() =>
|
|
382
|
+
rewards: e.array(e.lazy(() => v)).nullish()
|
|
387
383
|
}).superRefine((o, a) => {
|
|
388
384
|
o.type == "STAMP" && o.end > 40 && (a.addIssue({
|
|
389
385
|
code: "custom",
|
|
@@ -412,15 +408,12 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
412
408
|
foreignField: "group"
|
|
413
409
|
}
|
|
414
410
|
}
|
|
415
|
-
},
|
|
411
|
+
}, Xe = e.object({
|
|
416
412
|
_id: n,
|
|
417
413
|
name: e.string().min(1).max(300),
|
|
418
414
|
business: n,
|
|
419
415
|
pf_campaigns: e.array(e.any()).optional()
|
|
420
416
|
}).describe(p.describe(Be)), Ue = e.object({
|
|
421
|
-
from: e.string().email().nullish(),
|
|
422
|
-
name: e.string().min(1).max(50).nullish()
|
|
423
|
-
}), je = e.object({
|
|
424
417
|
type: e.literal(P.enum.MEMBERSHIP),
|
|
425
418
|
business: n,
|
|
426
419
|
name: e.string().min(1).max(50),
|
|
@@ -441,7 +434,6 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
441
434
|
).optional(),
|
|
442
435
|
targetLocation: e.array(n).nullish(),
|
|
443
436
|
brand: e.string().nullish(),
|
|
444
|
-
email: Ue.nullish(),
|
|
445
437
|
freeCreditAsDiscount: e.boolean().optional(),
|
|
446
438
|
pf_title: e.array(e.lazy(() => d)).optional(),
|
|
447
439
|
pf_targetLocation: e.array(e.lazy(() => z)).optional(),
|
|
@@ -521,7 +513,7 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
521
513
|
"FEEDBACK",
|
|
522
514
|
"SCHEDULE"
|
|
523
515
|
]
|
|
524
|
-
},
|
|
516
|
+
}, w = l.extend({
|
|
525
517
|
type: e.literal(t.enum.VOUCHER),
|
|
526
518
|
// event
|
|
527
519
|
event: s.merge(
|
|
@@ -539,7 +531,7 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
539
531
|
notifyCampaign: n.nullish(),
|
|
540
532
|
pf_collectible: e.lazy(() => d).optional(),
|
|
541
533
|
pf_notifyCampaign: e.lazy(() => g).optional()
|
|
542
|
-
}),
|
|
534
|
+
}), je = e.object({
|
|
543
535
|
gameType: e.string()
|
|
544
536
|
}), k = l.extend({
|
|
545
537
|
type: e.literal(t.enum.PROMOTION),
|
|
@@ -555,7 +547,7 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
555
547
|
message: "Effect is required"
|
|
556
548
|
});
|
|
557
549
|
}),
|
|
558
|
-
gameConfig:
|
|
550
|
+
gameConfig: je.nullish()
|
|
559
551
|
}), W = l.extend({
|
|
560
552
|
type: e.literal(t.enum.POINT),
|
|
561
553
|
// event
|
|
@@ -644,8 +636,8 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
644
636
|
collectible: n,
|
|
645
637
|
pf_collectible: e.lazy(() => d).optional(),
|
|
646
638
|
mission: e.lazy(() => Ne),
|
|
647
|
-
rewards: e.array(e.lazy(() =>
|
|
648
|
-
}),
|
|
639
|
+
rewards: e.array(e.lazy(() => v)).min(1, "Requires at least 1 reward")
|
|
640
|
+
}), Ge = {
|
|
649
641
|
collectionName: "Campaigns",
|
|
650
642
|
transform: {
|
|
651
643
|
_id: "oid",
|
|
@@ -687,10 +679,10 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
687
679
|
as: "game"
|
|
688
680
|
}
|
|
689
681
|
}
|
|
690
|
-
},
|
|
682
|
+
}, Ze = e.object({ _id: n }).and(
|
|
691
683
|
e.discriminatedUnion("type", [
|
|
692
|
-
|
|
693
|
-
|
|
684
|
+
Ue,
|
|
685
|
+
w,
|
|
694
686
|
k,
|
|
695
687
|
W,
|
|
696
688
|
V,
|
|
@@ -700,8 +692,8 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
700
692
|
J,
|
|
701
693
|
Y
|
|
702
694
|
])
|
|
703
|
-
).describe(p.describe(
|
|
704
|
-
|
|
695
|
+
).describe(p.describe(Ge)), Qe = e.discriminatedUnion("type", [
|
|
696
|
+
w.extend({
|
|
705
697
|
business: n.nullish()
|
|
706
698
|
}),
|
|
707
699
|
k.extend({
|
|
@@ -736,19 +728,18 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
736
728
|
]);
|
|
737
729
|
export {
|
|
738
730
|
r as C,
|
|
739
|
-
|
|
731
|
+
Je as F,
|
|
740
732
|
t as a,
|
|
741
|
-
|
|
742
|
-
|
|
733
|
+
Ke as b,
|
|
734
|
+
qe as c,
|
|
743
735
|
F as d,
|
|
744
736
|
xe as e,
|
|
745
737
|
Pe as f,
|
|
746
738
|
Ne as g,
|
|
747
|
-
|
|
739
|
+
Ve as h,
|
|
748
740
|
P as i,
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
qe as r
|
|
741
|
+
Xe as j,
|
|
742
|
+
Qe as k,
|
|
743
|
+
Ze as l,
|
|
744
|
+
Ye as r
|
|
754
745
|
};
|