@feedmepos/mf-connect 0.1.0-beta.18 → 0.1.0-beta.19

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 (83) hide show
  1. package/dist/{Analytic-Cpbk-NKN.js → Analytic-C_VhRLv6.js} +8 -8
  2. package/dist/{App-CSuWKpx9.js → App-BfRWtnHD.js} +6 -6
  3. package/dist/{Broadcast-0ZuJB2LN.js → Broadcast-CkP0D5Q0.js} +8 -8
  4. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BYeRznlh.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-NtvMAKVf.js} +8 -9
  5. package/dist/{Card-OxKvWwWH.js → Card-B3LUbgFG.js} +16 -16
  6. package/dist/{Collections-BsyzZEMM.js → Collections-auS6nQgP.js} +4 -4
  7. package/dist/{Credit-BrHz-837.js → Credit-DFCzt7yb.js} +8 -8
  8. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +108 -0
  9. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-B9BdGlxy.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BI0BX8t8.js} +27 -28
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Dpl6tvDZ.js → EffectSheet.vue_vue_type_style_index_0_lang-BrjVcauR.js} +6 -6
  11. package/dist/{Experience-BrngDPXy.js → Experience-CVb3L3Nz.js} +8 -8
  12. package/dist/{Game-B2gmU0KP.js → Game-CVtfz6Hq.js} +8 -8
  13. package/dist/{Index-Dtv8pN8t.js → Index-DFcZ4uTO.js} +7 -7
  14. package/dist/{Marketing-D-uobPZj.js → Marketing-DLF6iuTD.js} +5 -5
  15. package/dist/{Member-CFanAP9c.js → Member-CYtrF8IE.js} +4 -4
  16. package/dist/{MemberList-Be9AkZx7.js → MemberList-CrUHnX69.js} +14 -14
  17. package/dist/{MemberTransactions-DZFzJjL1.js → MemberTransactions-DJGj_aav.js} +1 -1
  18. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-C9Hmp5AV.js → MessageInput.vue_vue_type_script_setup_true_lang-BEXdm4kC.js} +2 -2
  19. package/dist/{Mission-C2LN6tmI.js → Mission-_LSdgxEz.js} +8 -8
  20. package/dist/{Overview-Dp5vZAD2.js → Overview-CuIPJALM.js} +19 -20
  21. package/dist/{Point-LYWHAbfT.js → Point-CVMEXAZ5.js} +23 -23
  22. package/dist/{Promotion-D9Uz3RVF.js → Promotion-DSfbCLAe.js} +9 -9
  23. package/dist/{Record-BQawMBFJ.js → Record-BNzcMcpH.js} +4 -4
  24. package/dist/{Reward-DnOgjBmc.js → Reward-BCN44pw_.js} +10 -10
  25. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-ClsXTutz.js → RewardGroup.vue_vue_type_script_setup_true_lang-By5HgODg.js} +24 -25
  26. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DzuiHZ4F.js → RuleGroup.vue_vue_type_script_setup_true_lang-X24tGtbC.js} +15 -15
  27. package/dist/{Segment-84pM7r21.js → Segment-MSDomTz2.js} +13 -13
  28. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-PBG09_Xd.js → SelectItems.vue_vue_type_script_setup_true_lang-DyeY1fV7.js} +2 -2
  29. package/dist/{Setting-DpI2EtLW.js → Setting-BOLu10II.js} +8 -8
  30. package/dist/Store-CtJ9sJol.js +1729 -0
  31. package/dist/{StoreRewards-CoEqF7tq.js → StoreRewards-B5HCIRFt.js} +12 -12
  32. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-QNn_cpIj.js +957 -0
  33. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DSXJhgN5.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-arVZw_Lq.js} +1 -1
  34. package/dist/{Tier-ByFEVCB1.js → Tier-C3Y6q17j.js} +15 -15
  35. package/dist/{Title-CixULZVV.js → Title-_fk7AbId.js} +15 -15
  36. package/dist/{Transaction-C8O36Tic.js → Transaction-D9CM1V_f.js} +2 -2
  37. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DaFy1-0t.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BIpPKUWx.js} +7 -7
  38. package/dist/{Voucher-C17ZqMwt.js → Voucher-Bo5QWYT0.js} +11 -11
  39. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DYBwXGNM.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CjxmRY5U.js} +10 -10
  40. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-B6Y_0_0B.js → ZodTextField.vue_vue_type_script_setup_true_lang-BK28WW3q.js} +1 -1
  41. package/dist/{app-DWQ7FKR5.js → app-C_djUlXx.js} +28 -28
  42. package/dist/{app-C4IiqNxo.js → app-ChpdgMfQ.js} +1 -1
  43. package/dist/app.js +1 -1
  44. package/dist/{business-Bo4XlSLO.js → business-DJIj4b8e.js} +1 -1
  45. package/dist/{campaign-2GS-rWee.js → campaign-NrE6WI9q.js} +2 -2
  46. package/dist/{collectible.enum-BTe7ThwY.js → collectible.enum-BzLkFq1w.js} +1 -1
  47. package/dist/{collection.fn-HVdkty7e.js → collection.fn-DQ71Nfut.js} +2 -2
  48. package/dist/{dto-Ddwu78pi.js → dto-12HT7-EA.js} +9 -9
  49. package/dist/{effect-82Y4qyy9.js → effect-CobPZ4Rb.js} +1 -1
  50. package/dist/{email-addresses-C7FOU34X.js → email-addresses-DiWLZMlA.js} +1 -1
  51. package/dist/{export-BICOj_3Z.js → export-BrJSwHlS.js} +3 -3
  52. package/dist/{helper-DKlgiqoM.js → helper-CCRX-fvI.js} +1 -1
  53. package/dist/{index-DUg8bRnj.js → index--wa67pRl.js} +1 -1
  54. package/dist/{index-Bmd3L3d8.js → index-BBkLSHsJ.js} +2 -2
  55. package/dist/{index-BU_p-Wxk.js → index-BCyJY05i.js} +122 -227
  56. package/dist/{index-C5V1DXJ3.js → index-BS_AxWZH.js} +1 -1
  57. package/dist/{index-DYb8bAlK.js → index-B__nVNTt.js} +1 -1
  58. package/dist/{index-BywkQACO.js → index-Bt2_f4Oi.js} +3 -3
  59. package/dist/index-CC2lo_Wb.js +1067 -0
  60. package/dist/{index-Bg2aYWbv.js → index-C_KMGXv9.js} +4 -4
  61. package/dist/{index-vSDex5dq.js → index-Ct8B2VHH.js} +3 -3
  62. package/dist/{index-NCYfGK0D.js → index-DtnUFcfv.js} +1 -1
  63. package/dist/{index-CW8QD0w5.js → index-DwU8LaVM.js} +3 -3
  64. package/dist/{index-DKtYRLHP.js → index-DzJUULpT.js} +7 -1
  65. package/dist/{index-BknjV1TY.js → index-bsRZyOPx.js} +1 -1
  66. package/dist/{index.esm2017-OZYANK5V.js → index.esm2017-B_FgkPTh.js} +1 -1
  67. package/dist/{loading-CbuSa9Y3.js → loading-fHk0Jjet.js} +4 -4
  68. package/dist/{membership-BpIwCoII.js → membership-BW1NS-Ql.js} +3 -3
  69. package/dist/{money-DPaFWGx6.js → money-CmeLOjIj.js} +1 -1
  70. package/dist/{number-BNn9X4rd.js → number-D0Hk2ezY.js} +1 -1
  71. package/dist/{objectid-DSfoThM2.js → objectid-hW6Oa6sR.js} +4 -4
  72. package/dist/{reward-BQFkCz55.js → reward-BRZhngDm.js} +1 -1
  73. package/dist/{rule-CGMa_mkm.js → rule-CECp9iUW.js} +3 -3
  74. package/dist/{rule-builder-DOtc0rMB.js → rule-builder-BQpTUVhb.js} +1 -1
  75. package/dist/{template-JT8E8lRm.js → template-CLAh7Qcz.js} +4 -4
  76. package/dist/{trigger-D8chra-Q.js → trigger-BTbRRpH9.js} +4 -4
  77. package/dist/{vue-i18n-CO7pDkoc.js → vue-i18n-BQqGhLq-.js} +2 -2
  78. package/dist/{xlsx-BGSVLeCK.js → xlsx-BxwhyUvM.js} +1 -1
  79. package/package.json +3 -3
  80. package/dist/Store-BuYCnY5B.js +0 -1531
  81. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-C4GTSh2j.js +0 -890
  82. package/dist/index-CAhgbG8r.js +0 -298
  83. package/dist/index-OpOMBjAq.js +0 -774
@@ -1,116 +1,12 @@
1
- import { defineComponent as j, ref as Y, resolveComponent as g, openBlock as r, createBlock as h, unref as L, withCtx as d, renderSlot as x, createElementBlock as y, toDisplayString as _, createCommentVNode as K, createVNode as C, normalizeClass as R, createElementVNode as W, Fragment as X, renderList as q } from "vue";
2
- import { z as e, F as a, m as l } from "./loading-CbuSa9Y3.js";
3
- import { c as z } from "./index-Bmd3L3d8.js";
4
- import { R as t } from "./rule-builder-DOtc0rMB.js";
5
- import { i as p } from "./helper-DKlgiqoM.js";
6
- import { d as Q, e as J } from "./index-BywkQACO.js";
7
- import { n as $ } from "./index-OpOMBjAq.js";
8
- import { F as Z } from "./index-vSDex5dq.js";
9
- import { b as u } from "./index-Bg2aYWbv.js";
1
+ import { z as e, F as n, m as o } from "./loading-fHk0Jjet.js";
2
+ import { c as _ } from "./index-BBkLSHsJ.js";
3
+ import { R as t } from "./rule-builder-BQpTUVhb.js";
4
+ import { i } from "./helper-CCRX-fvI.js";
5
+ import { d as b, e as v } from "./index-Bt2_f4Oi.js";
6
+ import { s as E } from "./index-CC2lo_Wb.js";
7
+ import { F as O } from "./index-Ct8B2VHH.js";
8
+ import { b as p } from "./index-C_KMGXv9.js";
10
9
  const ee = {
11
- key: 0,
12
- class: "fm-typo-en-body-lg-400 mb-4"
13
- }, te = {
14
- key: 1,
15
- class: "fm-typo-en-body-lg-400"
16
- }, ne = { class: "rounded-md bg-white shadow-md max-h-[300px] overflow-y-scroll pl-4 py-12" }, Ue = /* @__PURE__ */ j({
17
- __name: "CustomSelect",
18
- props: {
19
- label: {
20
- type: String,
21
- required: !1
22
- },
23
- placeholder: {
24
- type: String,
25
- required: !1
26
- },
27
- items: {
28
- type: Object,
29
- required: !0
30
- },
31
- modelValue: {
32
- type: Object
33
- },
34
- zIndex: {
35
- type: Number
36
- },
37
- multiselect: {
38
- type: Boolean
39
- }
40
- },
41
- emits: ["update:model-value"],
42
- setup(n, { emit: P }) {
43
- const v = P, s = Y(!1);
44
- return (E, O) => {
45
- const B = g("FmIcon"), G = g("FmField"), V = g("FmMenuItem"), H = g("FmPopover");
46
- return r(), h(H, {
47
- "show-popover": L(s),
48
- onPopoverChanged: O[0] || (O[0] = (i) => s.value = i),
49
- "z-index": n.zIndex
50
- }, {
51
- "popover-button": d(() => [
52
- x(E.$slots, "popover-button", {}, () => [
53
- n.label ? (r(), y("div", ee, _(n.label), 1)) : K("", !0),
54
- C(G, null, {
55
- append: d(() => [
56
- x(E.$slots, "append"),
57
- C(B, {
58
- name: L(s) ? "expand_less" : "expand_more",
59
- size: "md",
60
- color: "black"
61
- }, null, 8, ["name"])
62
- ]),
63
- default: d(() => {
64
- var i;
65
- return [
66
- n.multiselect ? (r(), y("div", te, _(n.items.filter((o) => {
67
- var c;
68
- return (c = n.modelValue) == null ? void 0 : c.includes(o.value);
69
- }).map((o) => o.label).join(", ")), 1)) : (r(), y("div", {
70
- key: 0,
71
- class: R(["fm-typo-en-body-lg-400", {
72
- "text-fm-color-typo-secondary": !n.items.find(
73
- (o) => o.value == n.modelValue
74
- )
75
- }])
76
- }, _(((i = n.items.find((o) => o.value == n.modelValue)) == null ? void 0 : i.label) || n.placeholder), 3))
77
- ];
78
- }),
79
- _: 3
80
- })
81
- ])
82
- ]),
83
- default: d(() => [
84
- W("div", ne, [
85
- (r(!0), y(X, null, q(n.items, (i) => {
86
- var o, c;
87
- return r(), h(V, {
88
- class: R(`${n.multiselect ? (o = n.modelValue) != null && o.some((m) => m == i.value) ? "bg-fm-color-system-warning-100" : "" : n.modelValue == i.value}`),
89
- "has-checkbox": n.multiselect,
90
- key: i.value,
91
- "model-value": n.multiselect ? (c = n.modelValue) == null ? void 0 : c.some((m) => m == i.value) : n.modelValue == i.value,
92
- label: i.label,
93
- onClick: (m) => {
94
- var I;
95
- if (m.stopPropagation(), !n.multiselect)
96
- s.value = !1, v("update:model-value", i.value);
97
- else {
98
- const k = (I = n.modelValue) == null ? void 0 : I.some((f) => f == i.value);
99
- v(
100
- "update:model-value",
101
- k ? (n.modelValue ?? []).filter((f) => f !== i.value) : [...n.modelValue ?? [], i.value]
102
- );
103
- }
104
- }
105
- }, null, 8, ["class", "has-checkbox", "model-value", "label", "onClick"]);
106
- }), 128))
107
- ])
108
- ]),
109
- _: 3
110
- }, 8, ["show-popover", "z-index"]);
111
- };
112
- }
113
- }), Pe = {
114
10
  PROMOTION: {
115
11
  name: "Promotion Template",
116
12
  description: "Promotion template for campaign creation.",
@@ -505,7 +401,7 @@ const ee = {
505
401
  // },
506
402
  hideInApp: !0
507
403
  },
508
- configs: p("VOUCHER", {
404
+ configs: i("VOUCHER", {
509
405
  name: "",
510
406
  business: null,
511
407
  noCampaign: !1
@@ -1445,7 +1341,7 @@ const ee = {
1445
1341
  rewards: []
1446
1342
  }
1447
1343
  },
1448
- configs: p("GAME", {
1344
+ configs: i("GAME", {
1449
1345
  name: "Token",
1450
1346
  business: null,
1451
1347
  noCampaign: !1
@@ -1686,27 +1582,27 @@ const ee = {
1686
1582
  type: "timeframe"
1687
1583
  }
1688
1584
  },
1689
- configs: p("STAMP", {
1585
+ configs: i("STAMP", {
1690
1586
  business: null,
1691
1587
  noCampaign: !1
1692
1588
  })
1693
1589
  }
1694
1590
  }
1695
1591
  };
1696
- t.scaffoldGroup(), p("STAMP", {
1592
+ t.scaffoldGroup(), i("STAMP", {
1697
1593
  business: null,
1698
1594
  noCampaign: !1
1699
1595
  });
1700
1596
  ({
1701
1597
  ...t.scaffoldGroup()
1702
- }, p("VOUCHER", {
1598
+ }, i("VOUCHER", {
1703
1599
  name: "",
1704
1600
  business: null,
1705
1601
  noCampaign: !1
1706
1602
  }));
1707
1603
  ({
1708
1604
  ...t.scaffoldGroup()
1709
- }, p("VOUCHER", {
1605
+ }, i("VOUCHER", {
1710
1606
  name: "",
1711
1607
  business: null,
1712
1608
  noCampaign: !1
@@ -1749,7 +1645,7 @@ t.setRuleToGroup(t.scaffoldGroup(), [
1749
1645
  });
1750
1646
  ({
1751
1647
  ...t.scaffoldGroup()
1752
- }, p("VOUCHER", {
1648
+ }, i("VOUCHER", {
1753
1649
  name: "",
1754
1650
  business: null,
1755
1651
  noCampaign: !1
@@ -1795,14 +1691,14 @@ t.setRuleToGroup(
1795
1691
  "&&"
1796
1692
  )
1797
1693
  );
1798
- t.scaffoldGroup(), t.scaffoldGroup(), p("GAME", {
1694
+ t.scaffoldGroup(), t.scaffoldGroup(), i("GAME", {
1799
1695
  name: "Token",
1800
1696
  business: null,
1801
1697
  noCampaign: !1
1802
1698
  });
1803
1699
  ({
1804
1700
  ...t.scaffoldGroup()
1805
- }, p("VOUCHER", {
1701
+ }, i("VOUCHER", {
1806
1702
  name: "",
1807
1703
  business: null,
1808
1704
  noCampaign: !1
@@ -1831,7 +1727,7 @@ t.setRuleToGroup(t.scaffoldGroup(), [
1831
1727
  ],
1832
1728
  "&&"
1833
1729
  )
1834
- ]), p("VOUCHER", {
1730
+ ]), i("VOUCHER", {
1835
1731
  name: "",
1836
1732
  business: null,
1837
1733
  noCampaign: !1
@@ -1854,7 +1750,7 @@ t.setRuleToGroup(t.scaffoldGroup(), [
1854
1750
  ({
1855
1751
  ...t.scaffoldGroup()
1856
1752
  });
1857
- const ae = e.enum([
1753
+ const I = e.enum([
1858
1754
  "MEMBER_REWARD",
1859
1755
  "PAID_LOYALTY",
1860
1756
  "COLLECT_FEEDBACK",
@@ -1864,7 +1760,7 @@ const ae = e.enum([
1864
1760
  "BROADCAST",
1865
1761
  "BIRTHDAY",
1866
1762
  "GAME"
1867
- ]), ie = e.enum([
1763
+ ]), L = e.enum([
1868
1764
  "text",
1869
1765
  "number",
1870
1766
  "textarea",
@@ -1891,95 +1787,95 @@ const ae = e.enum([
1891
1787
  "rule_feedback",
1892
1788
  "rule_birthday",
1893
1789
  "promotion_game_type"
1894
- ]), oe = e.object({
1790
+ ]), h = e.object({
1895
1791
  label: e.string().optional(),
1896
1792
  property: e.string().or(e.any()),
1897
- type: ie,
1793
+ type: L,
1898
1794
  extras: e.string().optional(),
1899
1795
  isRuleChildren: e.boolean().optional()
1900
- }), pe = e.object({
1796
+ }), C = e.object({
1901
1797
  name: e.string().optional(),
1902
- fields: e.array(oe),
1798
+ fields: e.array(h),
1903
1799
  condition: e.object({
1904
1800
  not: e.boolean().optional(),
1905
1801
  property: e.string(),
1906
1802
  value: e.any()
1907
1803
  }).optional()
1908
- }), re = e.object({
1804
+ }), x = e.object({
1909
1805
  name: e.string(),
1910
- groups: e.array(pe)
1806
+ groups: e.array(C)
1911
1807
  });
1912
1808
  e.object({
1913
- _id: a,
1809
+ _id: n,
1914
1810
  name: e.string(),
1915
1811
  description: e.string().nullish(),
1916
- steps: e.array(re).min(1),
1917
- intention: e.array(ae),
1812
+ steps: e.array(x).min(1),
1813
+ intention: e.array(I),
1918
1814
  defaultValue: e.any()
1919
1815
  }).describe(JSON.stringify({ collectionName: "MarketingTemplates" }));
1920
- const le = {
1816
+ const R = {
1921
1817
  collectionName: "Businesses",
1922
1818
  transform: {
1923
1819
  _id: "oid"
1924
1820
  }
1925
1821
  };
1926
1822
  e.object({
1927
- _id: a,
1823
+ _id: n,
1928
1824
  ownerId: e.string(),
1929
1825
  name: e.string(),
1930
1826
  credit: e.number(),
1931
1827
  forceSend: e.boolean().optional()
1932
- }).describe(l.describe(le));
1933
- const S = e.enum(["PHONE"]), ce = e.enum(["MOCEAN", "SLACK", "SMS", "EMAIL"]), me = e.enum(["PENDING", "COMPLETED", "FAILED"]), se = e.enum([
1828
+ }).describe(o.describe(R));
1829
+ const c = e.enum(["PHONE"]), T = e.enum(["MOCEAN", "SLACK", "SMS", "EMAIL"]), D = e.enum(["PENDING", "COMPLETED", "FAILED"]), S = e.enum([
1934
1830
  "General",
1935
1831
  "Otp",
1936
1832
  "Marketing",
1937
1833
  "Ordering",
1938
1834
  "MemberInvitation"
1939
- ]), ge = e.object({
1940
- type: S
1941
- }), D = ge.extend({
1942
- type: e.literal(S.enum.PHONE),
1943
- provider: ce,
1944
- usage: se.optional()
1945
- }), de = {
1835
+ ]), A = e.object({
1836
+ type: c
1837
+ }), m = A.extend({
1838
+ type: e.literal(c.enum.PHONE),
1839
+ provider: T,
1840
+ usage: S.optional()
1841
+ }), M = {
1946
1842
  collectionName: "Notifications",
1947
1843
  transform: { _id: "oid", business: "oid" }
1948
1844
  };
1949
1845
  e.object({
1950
- _id: a,
1951
- business: a,
1846
+ _id: n,
1847
+ business: n,
1952
1848
  target: e.string(),
1953
1849
  title: e.string().optional(),
1954
1850
  message: e.string(),
1955
- option: D,
1956
- status: me,
1851
+ option: m,
1852
+ status: D,
1957
1853
  ref: e.string().optional()
1958
- }).describe(l.describe(de));
1854
+ }).describe(o.describe(M));
1959
1855
  e.object({
1960
1856
  target: e.string(),
1961
1857
  title: e.string().optional(),
1962
1858
  message: e.string(),
1963
- option: D,
1859
+ option: m,
1964
1860
  ref: e.string().optional()
1965
1861
  });
1966
1862
  e.object({
1967
1863
  phone: e.string(),
1968
1864
  message: e.string()
1969
1865
  });
1970
- const T = e.object({
1866
+ const l = e.object({
1971
1867
  name: e.string(),
1972
1868
  address: e.string()
1973
- }), ye = e.object({
1869
+ }), N = e.object({
1974
1870
  filename: e.string(),
1975
1871
  content: e.instanceof(Uint8Array)
1976
1872
  });
1977
1873
  e.object({
1978
- from: T,
1979
- to: e.array(T),
1874
+ from: l,
1875
+ to: e.array(l),
1980
1876
  subject: e.string(),
1981
1877
  html: e.string().optional(),
1982
- attachments: e.array(ye).optional()
1878
+ attachments: e.array(N).optional()
1983
1879
  });
1984
1880
  e.object({
1985
1881
  subject: e.string(),
@@ -2012,15 +1908,15 @@ e.object({
2012
1908
  claimIds: e.array(e.string()),
2013
1909
  billId: e.string()
2014
1910
  });
2015
- var A = /* @__PURE__ */ ((n) => (n[n.feedMe = 0] = "feedMe", n[n.business = 1] = "business", n[n.restaurant = 2] = "restaurant", n))(A || {});
2016
- e.nativeEnum(A);
1911
+ var s = /* @__PURE__ */ ((a) => (a[a.feedMe = 0] = "feedMe", a[a.business = 1] = "business", a[a.restaurant = 2] = "restaurant", a))(s || {});
1912
+ e.nativeEnum(s);
2017
1913
  e.enum(["manage", "create", "read", "update", "delete"]);
2018
1914
  e.enum(["all", "restaurant", "business", "delivery", "agent"]);
2019
1915
  e.enum(["quota"]);
2020
- var M = /* @__PURE__ */ ((n) => (n.marketing = "business::marketing", n.campaign = "business::campaign", n.counter = "business::counter", n.permission = "business::permission", n.role = "business::role", n))(M || {});
2021
- e.nativeEnum(M);
1916
+ var g = /* @__PURE__ */ ((a) => (a.marketing = "business::marketing", a.campaign = "business::campaign", a.counter = "business::counter", a.permission = "business::permission", a.role = "business::role", a))(g || {});
1917
+ e.nativeEnum(g);
2022
1918
  e.enum(["restaurant"]);
2023
- const ue = e.object({
1919
+ const w = e.object({
2024
1920
  label: e.string(),
2025
1921
  subject: e.union([e.string(), e.array(e.string())]),
2026
1922
  actions: e.union([e.string(), e.array(e.string())]),
@@ -2030,41 +1926,41 @@ const ue = e.object({
2030
1926
  reason: e.string().optional()
2031
1927
  });
2032
1928
  e.object({
2033
- _id: a,
1929
+ _id: n,
2034
1930
  businessId: e.string(),
2035
1931
  userId: e.string(),
2036
1932
  email: e.string().nullish(),
2037
1933
  phoneNo: e.string().nullish(),
2038
- permissions: e.array(e.lazy(() => ue))
1934
+ permissions: e.array(e.lazy(() => w))
2039
1935
  }).describe(
2040
- l.describe({
1936
+ o.describe({
2041
1937
  collectionName: "PermissionUsers",
2042
1938
  transform: {
2043
1939
  _id: "oid"
2044
1940
  }
2045
1941
  })
2046
1942
  );
2047
- const w = e.object({
1943
+ const d = e.object({
2048
1944
  userId: e.string(),
2049
1945
  level: e.number(),
2050
1946
  role: e.string().optional(),
2051
1947
  businessId: e.string().optional(),
2052
1948
  restaurantId: e.string().optional()
2053
- }), fe = e.function().args(e.any(), w).returns(e.boolean()), _e = e.function().args(w).returns(e.promise(e.array(e.any())));
1949
+ }), U = e.function().args(e.any(), d).returns(e.boolean()), F = e.function().args(d).returns(e.promise(e.array(e.any())));
2054
1950
  e.object({
2055
- isAdmin: fe,
2056
- getRules: _e
1951
+ isAdmin: U,
1952
+ getRules: F
2057
1953
  });
2058
1954
  e.object({
2059
- transactions: e.array(Q),
2060
- collections: e.array(J)
1955
+ transactions: e.array(b),
1956
+ collections: e.array(v)
2061
1957
  });
2062
- const N = e.enum([
1958
+ const y = e.enum([
2063
1959
  "ROCK_PAPER_SCISSOR"
2064
1960
  ]);
2065
- N.enum.ROCK_PAPER_SCISSOR + "";
1961
+ y.enum.ROCK_PAPER_SCISSOR + "";
2066
1962
  e.object({
2067
- type: N
1963
+ type: y
2068
1964
  });
2069
1965
  e.object({
2070
1966
  host: e.string().url(),
@@ -2091,12 +1987,12 @@ e.object({
2091
1987
  phone: e.string().optional(),
2092
1988
  email: e.string().optional()
2093
1989
  });
2094
- const be = e.enum([
1990
+ const P = e.enum([
2095
1991
  "PENDING",
2096
1992
  "SUCCESS",
2097
1993
  "FAILED",
2098
1994
  "RETRYING"
2099
- ]), ve = {
1995
+ ]), B = {
2100
1996
  collectionName: "WebhookLogs",
2101
1997
  transform: {
2102
1998
  _id: "oid",
@@ -2104,34 +2000,34 @@ const be = e.enum([
2104
2000
  }
2105
2001
  };
2106
2002
  e.object({
2107
- _id: a,
2108
- business: a,
2003
+ _id: n,
2004
+ business: n,
2109
2005
  type: e.string(),
2110
2006
  payload: e.record(e.any()),
2111
- status: be,
2007
+ status: P,
2112
2008
  response: e.any().optional(),
2113
2009
  error: e.string().optional()
2114
- }).describe(l.describe(ve));
2115
- const Ee = e.enum(["AUTO", "MANUAL"]);
2010
+ }).describe(o.describe(B));
2011
+ const G = e.enum(["AUTO", "MANUAL"]);
2116
2012
  e.enum(["IN_PROGRESS", "COMPLETED"]);
2117
- const F = e.object({
2118
- _id: a,
2013
+ const u = e.object({
2014
+ _id: n,
2119
2015
  name: e.string().min(1, "Name is required").max(50),
2120
- type: Ee,
2121
- event: $.optional()
2122
- }), Oe = e.object({
2016
+ type: G,
2017
+ event: E.optional()
2018
+ }), H = e.object({
2123
2019
  from: e.number().int("Must be integer").min(0, "Threshold need to be at least 0"),
2124
2020
  to: e.number().int("Must be integer").nullish()
2125
- }), Ie = e.object({
2126
- threshold: Oe,
2127
- rewards: e.array(a),
2128
- pf_reward: e.array(Z).optional()
2129
- }), b = e.object({
2021
+ }), V = e.object({
2022
+ threshold: H,
2023
+ rewards: e.array(n),
2024
+ pf_reward: e.array(O).optional()
2025
+ }), r = e.object({
2130
2026
  id: e.string(),
2131
2027
  name: e.string().min(1, "Name is required").max(50, "Name must be less than 50 characters"),
2132
- rule: z.optional(),
2133
- rewards: e.array(Ie)
2134
- }), he = {
2028
+ rule: _.optional(),
2029
+ rewards: e.array(V)
2030
+ }), k = {
2135
2031
  collectionName: "ReferralRecords",
2136
2032
  transform: {
2137
2033
  _id: "oid",
@@ -2139,23 +2035,23 @@ const F = e.object({
2139
2035
  referer: "oid",
2140
2036
  referee: "oid"
2141
2037
  }
2142
- }, Le = e.object({
2038
+ }, j = e.object({
2143
2039
  completedAt: e.coerce.date(),
2144
- criteria: a,
2040
+ criteria: n,
2145
2041
  ref: e.string()
2146
- }), xe = e.object({
2147
- _id: a,
2148
- business: a,
2149
- referer: a,
2150
- referee: a,
2151
- criteria: e.array(F),
2152
- reward: e.array(b),
2153
- criteria_progress: e.array(Le),
2042
+ }), Y = e.object({
2043
+ _id: n,
2044
+ business: n,
2045
+ referer: n,
2046
+ referee: n,
2047
+ criteria: e.array(u),
2048
+ reward: e.array(r),
2049
+ criteria_progress: e.array(j),
2154
2050
  status: e.string(),
2155
- pf_referer: u.optional(),
2156
- pf_referee: u.optional()
2157
- }).describe(l.describe(he));
2158
- xe.pick({
2051
+ pf_referer: p.optional(),
2052
+ pf_referee: p.optional()
2053
+ }).describe(o.describe(k));
2054
+ Y.pick({
2159
2055
  _id: !0,
2160
2056
  business: !0,
2161
2057
  referer: !0,
@@ -2163,56 +2059,55 @@ xe.pick({
2163
2059
  criteria_progress: !0,
2164
2060
  criteria: !0
2165
2061
  }).extend({
2166
- pf_referee: u.pick({
2062
+ pf_referee: p.pick({
2167
2063
  _id: !0,
2168
2064
  name: !0,
2169
2065
  phoneNumber: !0,
2170
2066
  photoUrl: !0
2171
2067
  })
2172
2068
  });
2173
- const Ce = {
2069
+ const K = {
2174
2070
  collectionName: "ReferralProgram",
2175
2071
  transform: {
2176
2072
  _id: "oid",
2177
2073
  business: "oid"
2178
2074
  }
2179
- }, U = e.object({
2180
- _id: a,
2181
- business: a,
2075
+ }, f = e.object({
2076
+ _id: n,
2077
+ business: n,
2182
2078
  term_and_condition: e.string().optional(),
2183
- reward: e.array(b),
2184
- criteria: e.array(F)
2185
- }).describe(l.describe(Ce));
2079
+ reward: e.array(r),
2080
+ criteria: e.array(u)
2081
+ }).describe(o.describe(K));
2186
2082
  e.object({
2187
- referer: a,
2188
- referee: a,
2189
- business: a
2083
+ referer: n,
2084
+ referee: n,
2085
+ business: n
2190
2086
  });
2191
2087
  e.object({
2192
- program: U.pick({
2088
+ program: f.pick({
2193
2089
  _id: !0,
2194
2090
  business: !0,
2195
2091
  term_and_condition: !0
2196
2092
  }).extend({
2197
- reward: b.optional()
2093
+ reward: r.optional()
2198
2094
  }),
2199
2095
  referralCount: e.number(),
2200
2096
  successReferralCount: e.number(),
2201
- referredBy: u.pick({
2097
+ referredBy: p.pick({
2202
2098
  _id: !0,
2203
2099
  name: !0,
2204
2100
  phoneNumber: !0,
2205
2101
  photoUrl: !0
2206
2102
  }).optional()
2207
2103
  });
2208
- U.extend({
2104
+ f.extend({
2209
2105
  updateReferralRecord: e.boolean().optional()
2210
2106
  });
2211
2107
  export {
2212
- ae as F,
2213
- Pe as T,
2214
- Ue as _,
2215
- Ie as a,
2216
- F as b,
2217
- b as c
2108
+ I as F,
2109
+ ee as T,
2110
+ V as a,
2111
+ u as b,
2112
+ r as c
2218
2113
  };
@@ -1,4 +1,4 @@
1
- import { g as n, S as I, u as C, b as _ } from "./index-CW8QD0w5.js";
1
+ import { g as n, S as I, u as C, b as _ } from "./index-DwU8LaVM.js";
2
2
  const c = () => {
3
3
  if (!I.getBusinessId()) throw new Error("Invalid business ID");
4
4
  return C("users");
@@ -1,4 +1,4 @@
1
- import { z as t, F as e, m as i } from "./loading-CbuSa9Y3.js";
1
+ import { z as t, F as e, m as i } from "./loading-fHk0Jjet.js";
2
2
  const n = t.enum(["FACEBOOK", "INSTAGRAM", "TV", "BRAND_APP"]), s = {
3
3
  collectionName: "MarketingMaterials",
4
4
  transform: {
@@ -1,6 +1,6 @@
1
- import { z as o, F as e, m as r } from "./loading-CbuSa9Y3.js";
2
- import { m as d, n as u, k as a } from "./index-Bmd3L3d8.js";
3
- import { a as m } from "./collectible.enum-BTe7ThwY.js";
1
+ import { z as o, F as e, m as r } from "./loading-fHk0Jjet.js";
2
+ import { m as d, n as u, k as a } from "./index-BBkLSHsJ.js";
3
+ import { a as m } from "./collectible.enum-BzLkFq1w.js";
4
4
  const b = o.enum([
5
5
  "PORTAL",
6
6
  "BENEFIT",