@feedmepos/mf-connect 0.0.10-prod → 0.0.11-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 (65) hide show
  1. package/dist/{Analytic-BFeicKpw.js → Analytic-CpXLcGWV.js} +7 -7
  2. package/dist/{Broadcast-D0NyeAPC.js → Broadcast-CEMQS5PI.js} +7 -7
  3. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DAUidvXJ.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D0Kvpl_V.js} +8 -8
  4. package/dist/{Card-DsFHDP5R.js → Card-BqX-aRK9.js} +177 -182
  5. package/dist/{Collections-mc47YFfd.js → Collections-SRmluAj0.js} +102 -84
  6. package/dist/{Credit-TQYanlxz.js → Credit-DdBKFsII.js} +7 -7
  7. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BYNpBySQ.js +2600 -0
  8. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-kA-uGqCI.js → EffectSheet.vue_vue_type_style_index_0_lang-admNNBWu.js} +1864 -1830
  9. package/dist/{Experience-CyASWXXY.js → Experience-CSfRrWqI.js} +7 -7
  10. package/dist/Game-BV--qn0e.js +250 -0
  11. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-D-wHmyMe.js → ImageInput.vue_vue_type_script_setup_true_lang-DpYjrT3G.js} +1 -1
  12. package/dist/{MainLayout-zw-S_EV5.js → MainLayout-B_ZXQrMD.js} +1 -1
  13. package/dist/{Marketing-BcmbBw-5.js → Marketing-Bac3EbOu.js} +4 -4
  14. package/dist/{Member-DWRIIPj-.js → Member-CGMRVEuI.js} +2 -2
  15. package/dist/{MemberList-DNG0mNej.js → MemberList-CSyb4bNE.js} +196 -195
  16. package/dist/{MemberTransactions-xdm0zGuQ.js → MemberTransactions-BdraBHg6.js} +2 -2
  17. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Bqs3tfs_.js → MessageInput.vue_vue_type_script_setup_true_lang-BvAFOoym.js} +2 -2
  18. package/dist/Mission-D8-D99g-.js +248 -0
  19. package/dist/Point-BOI4mT-K.js +220 -0
  20. package/dist/{Promotion-DlxqsZFt.js → Promotion-D0MLMo9m.js} +8 -8
  21. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DcLK4o-E.js → RuleGroup.vue_vue_type_script_setup_true_lang-1L68zx5t.js} +58 -58
  22. package/dist/Segment-BeUbkVj7.js +444 -0
  23. package/dist/{Setting-CWftoE15.js → Setting-uM4iKdyM.js} +386 -379
  24. package/dist/{Store-jqibjN4j.js → Store-BkccNTnM.js} +432 -413
  25. package/dist/{StoreRewards-DWbp79R_.js → StoreRewards-BLgP6Mfv.js} +9 -9
  26. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-b21Sy462.js → StoreTransactions.vue_vue_type_script_setup_true_lang-Z0nqQyi8.js} +39 -38
  27. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BUOfEY4s.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-C771jjYx.js} +1 -1
  28. package/dist/{Tier-lymEcCqJ.js → Tier-DwKAfz6f.js} +17 -16
  29. package/dist/{Title-CYkql8-l.js → Title-B1_yd9pC.js} +16 -15
  30. package/dist/{Transaction-Ca_AVh3S.js → Transaction-DcVCMUY4.js} +1 -1
  31. package/dist/{Voucher-DX70cORv.js → Voucher-Djvai5vL.js} +9 -9
  32. package/dist/{app-Bpd1FsZZ.js → app-BvizV9z5.js} +2757 -2743
  33. package/dist/app.js +1 -1
  34. package/dist/{campaign-CfsRf50J.js → campaign-BdSwq7MJ.js} +31 -27
  35. package/dist/dto-CkH5Zama.js +1150 -0
  36. package/dist/{effect-CiUKauPm.js → effect-DT4ivttr.js} +1 -1
  37. package/dist/{export-oV5_2WhN.js → export-BAJL8_2G.js} +3 -3
  38. package/dist/{helper-dCIRT9Az.js → helper-CiIZ1pUo.js} +21 -8
  39. package/dist/{index-Qqifr9f8.js → index-7uOMMdXt.js} +245 -184
  40. package/dist/{index-BL_KPUtI.js → index-8nrxC9d5.js} +1 -1
  41. package/dist/{index-De3pocAb.js → index-B5gJ6P15.js} +269 -21
  42. package/dist/{index-DL_XK8dd.js → index-BLWw_MlC.js} +1363 -1341
  43. package/dist/{index-D9opigZA.js → index-C5N8jeJ1.js} +1 -1
  44. package/dist/{index-Dd41k099.js → index-C8dIiNQb.js} +1 -1
  45. package/dist/{index-XTz7nzez.js → index-Ccn7PGoB.js} +268 -267
  46. package/dist/{index-BYvX1Aa7.js → index-CjZxaXvZ.js} +69 -64
  47. package/dist/{index-BgPP5w8f.js → index-DCs4-zXS.js} +7 -17
  48. package/dist/{index-C8kJRh0b.js → index-DMyaEjMn.js} +26 -20
  49. package/dist/{loading-Baon-6K7.js → loading-C1IzY-n2.js} +1312 -1312
  50. package/dist/{lodash-C7zZd2mb.js → lodash-BMQ4xbjY.js} +1 -1
  51. package/dist/membership-D3I4udu3.js +221 -0
  52. package/dist/{money-CI5RX_Uc.js → money-BQEcWGhZ.js} +1 -1
  53. package/dist/{number-BD3GORAT.js → number-DGx2QPUy.js} +1 -1
  54. package/dist/{rule-BnlZjqSN.js → rule-CvlhLEGy.js} +2 -2
  55. package/dist/{rule-builder-Qvpo2dS_.js → rule-builder-Di3qiIBb.js} +1 -1
  56. package/dist/{template-CG_Y7BYa.js → template-D6Abrya4.js} +5 -5
  57. package/dist/{usePagination-BHEEnWBL.js → usePagination-MhbjQgN7.js} +1 -1
  58. package/dist/{xlsx-DQZIpY73.js → xlsx-mL_3T1k3.js} +226 -226
  59. package/package.json +2 -2
  60. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BtEHnivB.js +0 -2002
  61. package/dist/Game-Tek__-5h.js +0 -242
  62. package/dist/Point-C1mfq_Fd.js +0 -211
  63. package/dist/Segment-BLMz7i-L.js +0 -407
  64. package/dist/dto-COz9T0F3.js +0 -1092
  65. package/dist/membership-Cg82yybg.js +0 -210
@@ -1,4 +1,4 @@
1
- import { z as t, F as e, m as i } from "./loading-Baon-6K7.js";
1
+ import { z as t, F as e, m as i } from "./loading-C1IzY-n2.js";
2
2
  const n = t.enum(["FACEBOOK", "INSTAGRAM", "TV", "BRAND_APP"]), s = {
3
3
  collectionName: "MarketingMaterials",
4
4
  transform: {
@@ -1,9 +1,9 @@
1
- import { defineComponent as U, ref as B, resolveComponent as c, openBlock as r, createBlock as O, unref as C, withCtx as g, renderSlot as T, createElementBlock as d, toDisplayString as u, createCommentVNode as P, createVNode as I, normalizeClass as L, createElementVNode as H, Fragment as k, renderList as Y } from "vue";
2
- import { z as e, F as m, m as f } from "./loading-Baon-6K7.js";
3
- import "./index-DL_XK8dd.js";
4
- import { R as a } from "./rule-builder-Qvpo2dS_.js";
5
- import { i as o } from "./helper-dCIRT9Az.js";
6
- import { b as K, c as W } from "./index-C8kJRh0b.js";
1
+ import { defineComponent as U, ref as B, resolveComponent as c, openBlock as r, createBlock as C, unref as O, withCtx as g, renderSlot as T, createElementBlock as d, toDisplayString as u, createCommentVNode as P, createVNode as I, normalizeClass as L, createElementVNode as H, Fragment as k, renderList as Y } from "vue";
2
+ import { z as e, F as m, m as f } from "./loading-C1IzY-n2.js";
3
+ import "./index-BLWw_MlC.js";
4
+ import { R as a } from "./rule-builder-Di3qiIBb.js";
5
+ import { i as o } from "./helper-CiIZ1pUo.js";
6
+ import { b as K, c as W } from "./index-DMyaEjMn.js";
7
7
  const j = {
8
8
  key: 0,
9
9
  class: "fm-typo-en-body-lg-400 mb-4"
@@ -39,20 +39,20 @@ const j = {
39
39
  setup(t, { emit: N }) {
40
40
  const v = N, s = B(!1);
41
41
  return (b, _) => {
42
- const A = c("FmIcon"), F = c("FmField"), w = c("FmMenuItem"), M = c("FmPopover");
43
- return r(), O(M, {
44
- "show-popover": C(s),
42
+ const M = c("FmIcon"), w = c("FmField"), F = c("FmMenuItem"), A = c("FmPopover");
43
+ return r(), C(A, {
44
+ "show-popover": O(s),
45
45
  onPopoverChanged: _[0] || (_[0] = (i) => s.value = i),
46
46
  "z-index": t.zIndex
47
47
  }, {
48
48
  "popover-button": g(() => [
49
49
  T(b.$slots, "popover-button", {}, () => [
50
50
  t.label ? (r(), d("div", j, u(t.label), 1)) : P("", !0),
51
- I(F, null, {
51
+ I(w, null, {
52
52
  append: g(() => [
53
53
  T(b.$slots, "append"),
54
- I(A, {
55
- name: C(s) ? "expand_less" : "expand_more",
54
+ I(M, {
55
+ name: O(s) ? "expand_less" : "expand_more",
56
56
  size: "md",
57
57
  color: "black"
58
58
  }, null, 8, ["name"])
@@ -81,7 +81,7 @@ const j = {
81
81
  H("div", q, [
82
82
  (r(!0), d(k, null, Y(t.items, (i) => {
83
83
  var n, p;
84
- return r(), O(w, {
84
+ return r(), C(F, {
85
85
  class: L(`${t.multiselect ? (n = t.modelValue) != null && n.some((l) => l == i.value) ? "bg-fm-color-system-warning-100" : "" : t.modelValue == i.value}`),
86
86
  "has-checkbox": t.multiselect,
87
87
  key: i.value,
@@ -1418,8 +1418,252 @@ const j = {
1418
1418
  noCampaign: !1
1419
1419
  })
1420
1420
  }
1421
+ },
1422
+ MISSION: {
1423
+ name: "Mission Template",
1424
+ description: "Mission template for campaign creation.",
1425
+ steps: [
1426
+ {
1427
+ name: "General information",
1428
+ groups: [
1429
+ {
1430
+ name: "General",
1431
+ fields: [
1432
+ {
1433
+ label: "Campaign name",
1434
+ property: "campaign.name",
1435
+ type: "text"
1436
+ },
1437
+ {
1438
+ label: "Campaign description",
1439
+ property: "campaign.description",
1440
+ type: "textarea"
1441
+ },
1442
+ {
1443
+ label: "Campaign period",
1444
+ property: "campaign.timeframeOptions",
1445
+ type: "timeframe"
1446
+ }
1447
+ ]
1448
+ },
1449
+ {
1450
+ name: "Trigger",
1451
+ fields: [
1452
+ {
1453
+ label: void 0,
1454
+ property: "campaign.event.type",
1455
+ type: "trigger",
1456
+ extras: "campaign.type"
1457
+ }
1458
+ ]
1459
+ },
1460
+ {
1461
+ name: void 0,
1462
+ fields: [
1463
+ {
1464
+ label: void 0,
1465
+ property: "campaign.event.rule.rules.g_schedule",
1466
+ type: "rule_schedule",
1467
+ extras: "campaign.timeframeOptions"
1468
+ }
1469
+ ],
1470
+ condition: {
1471
+ property: "campaign.event.type",
1472
+ value: "SCHEDULE"
1473
+ }
1474
+ }
1475
+ ]
1476
+ },
1477
+ {
1478
+ name: "Terms and conditions",
1479
+ groups: [
1480
+ {
1481
+ name: "Time limitation",
1482
+ fields: [
1483
+ {
1484
+ label: void 0,
1485
+ property: "campaign.event.rule",
1486
+ type: "rule_time",
1487
+ extras: "campaign.type"
1488
+ }
1489
+ ],
1490
+ condition: {
1491
+ not: !0,
1492
+ property: "campaign.event.type",
1493
+ value: "SCHEDULE"
1494
+ }
1495
+ },
1496
+ {
1497
+ name: "Feedback criteria",
1498
+ fields: [
1499
+ {
1500
+ label: void 0,
1501
+ property: "campaign.event.rule",
1502
+ type: "rule_feedback"
1503
+ }
1504
+ ],
1505
+ condition: {
1506
+ property: "campaign.event.type",
1507
+ value: "FEEDBACK"
1508
+ }
1509
+ },
1510
+ {
1511
+ name: "Target audience",
1512
+ fields: [
1513
+ {
1514
+ label: void 0,
1515
+ property: "campaign.event.rule",
1516
+ type: "rule_user"
1517
+ }
1518
+ ]
1519
+ },
1520
+ {
1521
+ name: "Spending criteria",
1522
+ fields: [
1523
+ {
1524
+ label: void 0,
1525
+ property: "campaign.event.rule",
1526
+ type: "rule_bill"
1527
+ }
1528
+ ],
1529
+ condition: {
1530
+ property: "campaign.event.type",
1531
+ value: "BILL_COMPLETED"
1532
+ }
1533
+ }
1534
+ ]
1535
+ },
1536
+ {
1537
+ name: "Configuration",
1538
+ groups: [
1539
+ // {
1540
+ // name: 'Earning type',
1541
+ // fields: [
1542
+ // {
1543
+ // label: undefined,
1544
+ // property: 'campaign.earningOption',
1545
+ // type: 'earning_option',
1546
+ // extras: 'campaign',
1547
+ // },
1548
+ // ],
1549
+ // },
1550
+ {
1551
+ name: "Location",
1552
+ fields: [
1553
+ {
1554
+ label: "Target location",
1555
+ property: "campaign.targetLocation",
1556
+ type: "target_location"
1557
+ }
1558
+ ]
1559
+ }
1560
+ ]
1561
+ },
1562
+ {
1563
+ name: "Mission configuration",
1564
+ groups: [
1565
+ {
1566
+ name: void 0,
1567
+ fields: [
1568
+ {
1569
+ label: void 0,
1570
+ property: "campaign.mission",
1571
+ type: "mission"
1572
+ }
1573
+ ]
1574
+ },
1575
+ {
1576
+ name: "Earning type",
1577
+ fields: [
1578
+ {
1579
+ label: void 0,
1580
+ property: "campaign.earningOption",
1581
+ type: "earning_option",
1582
+ extras: "campaign"
1583
+ }
1584
+ ]
1585
+ },
1586
+ {
1587
+ name: "Validity configuration",
1588
+ fields: [
1589
+ {
1590
+ label: void 0,
1591
+ property: "campaign.config.validityOption",
1592
+ type: "validity_option"
1593
+ }
1594
+ ]
1595
+ },
1596
+ {
1597
+ name: "Mission participation",
1598
+ fields: [
1599
+ {
1600
+ label: void 0,
1601
+ property: "configs.options",
1602
+ type: "collectible_options",
1603
+ extras: "campaign.type"
1604
+ }
1605
+ ]
1606
+ }
1607
+ ]
1608
+ },
1609
+ {
1610
+ name: "Reward setup",
1611
+ groups: [
1612
+ {
1613
+ name: "Configure reward",
1614
+ fields: [
1615
+ {
1616
+ label: "Configure the reward type given to your customer.",
1617
+ property: "campaign.rewards",
1618
+ type: "mission_pool",
1619
+ extras: "campaign"
1620
+ }
1621
+ ]
1622
+ }
1623
+ ]
1624
+ }
1625
+ ],
1626
+ defaultValue: {
1627
+ // TODO: templateId use in db
1628
+ templateId: "",
1629
+ campaign: {
1630
+ type: "MISSION",
1631
+ business: "",
1632
+ collectible: "",
1633
+ name: "",
1634
+ earningOption: {
1635
+ amount: 1,
1636
+ type: "FIXED"
1637
+ },
1638
+ event: {
1639
+ type: "BILL_COMPLETED",
1640
+ rule: a.scaffoldGroup()
1641
+ },
1642
+ mission: {
1643
+ type: "STAMP",
1644
+ end: 10
1645
+ },
1646
+ rewards: [],
1647
+ config: {
1648
+ validityOption: {
1649
+ followFirstReceive: !0
1650
+ }
1651
+ },
1652
+ timeframeOptions: {
1653
+ type: "timeframe"
1654
+ }
1655
+ },
1656
+ configs: o("STAMP", {
1657
+ business: null,
1658
+ noCampaign: !1
1659
+ })
1660
+ }
1421
1661
  }
1422
1662
  };
1663
+ a.scaffoldGroup(), o("STAMP", {
1664
+ business: null,
1665
+ noCampaign: !1
1666
+ });
1423
1667
  ({
1424
1668
  ...a.scaffoldGroup()
1425
1669
  }, o("VOUCHER", {
@@ -1603,6 +1847,10 @@ const z = e.enum([
1603
1847
  "validity_option",
1604
1848
  "game_type",
1605
1849
  "reward_pool",
1850
+ "mission",
1851
+ "mission_type",
1852
+ "mission_end",
1853
+ "mission_pool",
1606
1854
  "rule_schedule",
1607
1855
  "rule_user",
1608
1856
  "rule_time",
@@ -1649,16 +1897,16 @@ e.object({
1649
1897
  credit: e.number(),
1650
1898
  forceSend: e.boolean().optional()
1651
1899
  }).describe(f.describe(ee));
1652
- const h = e.enum(["PHONE"]), ae = e.enum(["MOCEAN", "SLACK"]), te = e.enum(["PENDING", "COMPLETED", "FAILED"]), ie = e.enum([
1900
+ const D = e.enum(["PHONE"]), ae = e.enum(["MOCEAN", "SLACK"]), te = e.enum(["PENDING", "COMPLETED", "FAILED"]), ie = e.enum([
1653
1901
  "General",
1654
1902
  "Otp",
1655
1903
  "Marketing",
1656
1904
  "Ordering",
1657
1905
  "MemberInvitation"
1658
1906
  ]), ne = e.object({
1659
- type: h
1660
- }), D = ne.extend({
1661
- type: e.literal(h.enum.PHONE),
1907
+ type: D
1908
+ }), x = ne.extend({
1909
+ type: e.literal(D.enum.PHONE),
1662
1910
  provider: ae,
1663
1911
  usage: ie.optional()
1664
1912
  }), oe = {
@@ -1671,7 +1919,7 @@ e.object({
1671
1919
  target: e.string(),
1672
1920
  title: e.string().optional(),
1673
1921
  message: e.string(),
1674
- option: D,
1922
+ option: x,
1675
1923
  status: te,
1676
1924
  ref: e.string().optional()
1677
1925
  }).describe(f.describe(oe));
@@ -1679,7 +1927,7 @@ e.object({
1679
1927
  target: e.string(),
1680
1928
  title: e.string().optional(),
1681
1929
  message: e.string(),
1682
- option: D,
1930
+ option: x,
1683
1931
  ref: e.string().optional()
1684
1932
  });
1685
1933
  e.object({
@@ -1713,8 +1961,8 @@ e.object({
1713
1961
  claimIds: e.array(e.string()),
1714
1962
  billId: e.string()
1715
1963
  });
1716
- var x = /* @__PURE__ */ ((t) => (t[t.feedMe = 0] = "feedMe", t[t.business = 1] = "business", t[t.restaurant = 2] = "restaurant", t))(x || {});
1717
- e.nativeEnum(x);
1964
+ var h = /* @__PURE__ */ ((t) => (t[t.feedMe = 0] = "feedMe", t[t.business = 1] = "business", t[t.restaurant = 2] = "restaurant", t))(h || {});
1965
+ e.nativeEnum(h);
1718
1966
  e.enum(["manage", "create", "read", "update", "delete"]);
1719
1967
  e.enum(["all", "restaurant", "business", "delivery", "agent"]);
1720
1968
  e.enum(["quota"]);