@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.
Files changed (72) hide show
  1. package/dist/Analytic-DMbCeTaO.js +612 -0
  2. package/dist/{Broadcast-BFHQPSXL.js → Broadcast-bVaOzrys.js} +7 -7
  3. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B1DYJDOy.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Cd2midth.js} +8 -8
  4. package/dist/{Card-rOJ8yJg_.js → Card-CdCTfDuP.js} +127 -127
  5. package/dist/{Collections-BT8ihCOa.js → Collections-CQIHkJ4W.js} +129 -141
  6. package/dist/{Credit-D83Jsn7v.js → Credit-DuIm1c4_.js} +7 -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
  8. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-HLzZirO_.js → EffectSheet.vue_vue_type_style_index_0_lang-BuJL01zR.js} +6 -6
  9. package/dist/{Experience-C6uBhQod.js → Experience-DEnMLbsA.js} +7 -7
  10. package/dist/{Game-5P5HWqAL.js → Game-BYS0nrH6.js} +7 -7
  11. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-DTDcpMpW.js → ImageInput.vue_vue_type_script_setup_true_lang-DW2tVaY0.js} +1 -1
  12. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CQIJ54m1.js → MainLayout-BkFJubzZ.js} +53 -20
  13. package/dist/{Marketing-ONuItJ_B.js → Marketing-Da0HTlaz.js} +25 -25
  14. package/dist/{Member-SB2IySXY.js → Member-CVe_bRGx.js} +2 -2
  15. package/dist/MemberList-DpUy4gFd.js +1718 -0
  16. package/dist/{MemberTransactions-DPQ6M7eR.js → MemberTransactions-DWdTDUIJ.js} +2 -2
  17. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-1KjmvWsp.js +203 -0
  18. package/dist/{Mission-rdnU6erJ.js → Mission-0eSMWCls.js} +7 -7
  19. package/dist/{Point-C2M66ORj.js → Point-ju1eHI9Z.js} +7 -7
  20. package/dist/{Promotion-DixbjmMJ.js → Promotion-DZjWvnQa.js} +8 -8
  21. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CJsIBnGp.js → RuleGroup.vue_vue_type_script_setup_true_lang-CDPvpj10.js} +14 -14
  22. package/dist/{Segment-j_zQSV7O.js → Segment-Da_kMLWC.js} +18 -19
  23. package/dist/{Setting-ClhkF-bT.js → Setting-CxX35f3G.js} +541 -571
  24. package/dist/Store-DjUI3S8V.js +1442 -0
  25. package/dist/{StoreRewards-Bh90Ml4z.js → StoreRewards-92k0Bvp_.js} +74 -75
  26. 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
  27. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DNkJ-pFL.js +124 -0
  28. package/dist/{Tier-vxsDt3Kj.js → Tier-2J4GN90t.js} +68 -71
  29. package/dist/{Title-IFyz9vfW.js → Title-B3Dw3w_5.js} +75 -78
  30. package/dist/{Transaction-ETa-y_H9.js → Transaction-Dz6WT5Hb.js} +1 -1
  31. package/dist/{Voucher-BMYcuaPn.js → Voucher-Bf3oSOKc.js} +37 -37
  32. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-3LlSDiq0.js +140 -0
  33. package/dist/{app-Bl9KwQq5.js → app-BSmDH0M7.js} +46 -46
  34. package/dist/{app-BqWTxQI-.js → app-C7I-jK_l.js} +1 -1
  35. package/dist/app.js +1 -1
  36. package/dist/{campaign-DI8CmTo2.js → campaign-CmvlWUoI.js} +11 -13
  37. package/dist/{collection.fn-CTEuol1r.js → collection.fn-DHlfGYAC.js} +2 -4
  38. package/dist/{dto-Bdlgo-8k.js → dto-rs6D-mtj.js} +239 -239
  39. package/dist/{effect-BdgYZfgW.js → effect-D8eQcTDU.js} +1 -1
  40. package/dist/{export-Dr_7YvBE.js → export-Bf2h8rMP.js} +3 -3
  41. package/dist/{helper-BygQ4tND.js → helper-BSlBLPdy.js} +1 -1
  42. package/dist/{index-CstgquVp.js → index-B64Y4rdW.js} +2 -2
  43. package/dist/{index-Djv3w5gV.js → index-BVSAl8E2.js} +37 -46
  44. package/dist/{index-DzQwND7p.js → index-CdMMIVsr.js} +217 -232
  45. package/dist/index-CuW8ePVX.js +244 -0
  46. package/dist/{index-DPYzF8No.js → index-D0nFU6ln.js} +1 -1
  47. package/dist/{index-Cv0dYoWA.js → index-fFL3EyTx.js} +68 -105
  48. package/dist/{index-Dhl0c4JQ.js → index-jqxAE4Rp.js} +1 -1
  49. package/dist/{index-BPdhkx4l.js → index-sIR31szI.js} +1 -1
  50. package/dist/{index-BtG8YOzi.js → index-wIa5WSXJ.js} +27 -28
  51. package/dist/{index-CpxxO2-G.js → index-x9e-DyDf.js} +1 -1
  52. package/dist/{loading-DlPkAkzK.js → loading-BxJj39Hj.js} +3156 -3156
  53. package/dist/{lodash-Cjf6EG_s.js → lodash-CrYvSLZb.js} +1 -1
  54. package/dist/{membership-B4-9J74r.js → membership-DKQL_Qp9.js} +73 -84
  55. package/dist/{money-il542E4J.js → money-B1P0wtzb.js} +1 -1
  56. package/dist/{number-WhKft9Yv.js → number-Bc1eguaq.js} +3 -3
  57. package/dist/{rule-XS2i1LKt.js → rule-BblG87FW.js} +2 -2
  58. package/dist/{rule-builder-CdK4IIT9.js → rule-builder-BQdKD4Gy.js} +1 -1
  59. package/dist/style.css +1 -1
  60. package/dist/{template-owB8rrou.js → template-o2RQUsfw.js} +6 -6
  61. package/dist/{usePagination-CxpwPyMW.js → usePagination-BaqNzQhm.js} +1 -1
  62. package/dist/{xlsx-CbJTFamj.js → xlsx-DqRMXFBK.js} +309 -309
  63. package/package.json +1 -1
  64. package/dist/Analytic-CCtweUZA.js +0 -757
  65. package/dist/MainLayout-CWfQ53Qr.js +0 -41
  66. package/dist/MemberList-C2X8fM7F.js +0 -1729
  67. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-CE03Mh2P.js +0 -432
  68. package/dist/Store-CaWIsSZ3.js +0 -1506
  69. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DkpguWBa.js +0 -136
  70. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-CWt4tVdk.js +0 -55
  71. package/dist/index-_8VUWoAN.js +0 -245
  72. package/dist/zod-W_PvIofQ.js +0 -90
@@ -1,4 +1,4 @@
1
- import { c as o } from "./app-Bl9KwQq5.js";
1
+ import { d as o } from "./app-BSmDH0M7.js";
2
2
  function c(e) {
3
3
  if (!e)
4
4
  return null;
@@ -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-CbJTFamj.js";
5
- import { u as h } from "./loading-DlPkAkzK.js";
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-CpxxO2-G.js";
7
+ import { m as w } from "./index-x9e-DyDf.js";
8
8
  class y {
9
9
  constructor() {
10
10
  d(this, "records", []);
@@ -1,4 +1,4 @@
1
- import { i } from "./index-DzQwND7p.js";
1
+ import { i } from "./index-CdMMIVsr.js";
2
2
  function o(t, e) {
3
3
  switch (t) {
4
4
  case "COIN":
@@ -1,5 +1,5 @@
1
- import { z as o, F as e, m as c } from "./loading-DlPkAkzK.js";
2
- import { n as d, o as u, p as m, m as a } from "./index-DzQwND7p.js";
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-DlPkAkzK.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-DzQwND7p.js";
3
- import { b as T } from "./index-BtG8YOzi.js";
4
- import { b as L, c as ee } from "./index-CstgquVp.js";
5
- import { d as ne } from "./index-_8VUWoAN.js";
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"]), Ke = {
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
- ]), Je = i.extract([
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 Ye = I.partial({
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", "EMAIL"]), E = e.object({
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().nullish()
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 qe(o, a) {
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
- }), Xe = f.extend({
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
- }), v = f.extend({
337
+ }), H = f.extend({
341
338
  threshold: x
342
- }), w = e.discriminatedUnion("type", [
339
+ }), v = e.discriminatedUnion("type", [
343
340
  G,
344
- v
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
- v.extend({
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(() => w)).nullish()
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
- }, Ze = e.object({
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
- }, H = l.extend({
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
- }), Ge = e.object({
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: Ge.nullish()
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(() => w)).min(1, "Requires at least 1 reward")
648
- }), ve = {
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
- }, Qe = e.object({ _id: n }).and(
682
+ }, Ze = e.object({ _id: n }).and(
691
683
  e.discriminatedUnion("type", [
692
- je,
693
- H,
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(ve)), $e = e.discriminatedUnion("type", [
704
- H.extend({
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
- Ye as F,
731
+ Je as F,
740
732
  t as a,
741
- Je as b,
742
- Xe as c,
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
- Ke as h,
739
+ Ve as h,
748
740
  P as i,
749
- Ze as j,
750
- $e as k,
751
- Qe as l,
752
- je as m,
753
- qe as r
741
+ Xe as j,
742
+ Qe as k,
743
+ Ze as l,
744
+ Ye as r
754
745
  };