@feedmepos/mf-connect 0.1.63-prod → 0.1.65-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 (92) hide show
  1. package/dist/{Analytic-CG3hA6fW.js → Analytic-C5DE9NQJ.js} +27 -28
  2. package/dist/{App-CQUFVNES.js → App-DgEd6GLa.js} +7 -7
  3. package/dist/{Bin-whBityJo.js → Bin-DyWpGeoP.js} +8 -8
  4. package/dist/{Broadcast-BRgmIWF2.js → Broadcast-eqjJulx4.js} +10 -11
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DfATb_0G.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BfgttR2V.js} +6 -6
  6. package/dist/{Card-BgIT9bSV.js → Card-hFexO-iT.js} +16 -16
  7. package/dist/{Collections-DgBll2HL.js → Collections-BtBugjnH.js} +179 -165
  8. package/dist/{Credit-FVqQqTve.js → Credit-98wQjJxS.js} +10 -11
  9. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-CIApefkS.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-IrMeqHYK.js} +31 -31
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CVRvxR02.js → EffectSheet.vue_vue_type_style_index_0_lang-QM5-F282.js} +6 -6
  11. package/dist/{Experience-C23g_MfA.js → Experience-eVl9fAYr.js} +27 -28
  12. package/dist/{Game-CqbQTIqS.js → Game-C1oQthuo.js} +11 -12
  13. package/dist/{Index-D32I90Uf.js → Index-BACzirfP.js} +10 -10
  14. package/dist/{Marketing-ApmF9GMZ.js → Marketing-BOuh3JQF.js} +6 -6
  15. package/dist/{Member-p-MDnwdo.js → Member-DHcw5SAF.js} +10 -10
  16. package/dist/{MemberList-CWS216Oq.js → MemberList-BNVIjVXb.js} +25 -25
  17. package/dist/{MemberTransactions-1NaCYExP.js → MemberTransactions-DMpNrtT4.js} +1 -1
  18. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Ds28eMF3.js → MessageInput.vue_vue_type_script_setup_true_lang-MYkwax61.js} +7 -7
  19. package/dist/{Mission-D2EklQ6k.js → Mission-O9thc-xh.js} +19 -20
  20. package/dist/{Overview-Q2_jChHL.js → Overview-DYDTEJpf.js} +18 -18
  21. package/dist/{Point-D7IFoiQ5.js → Point-AoMfVDyc.js} +10 -11
  22. package/dist/{Promotion-BMKAj_VJ.js → Promotion-Bdmmnd5n.js} +11 -12
  23. package/dist/{Queue-CckukUf2.js → Queue-C59v4zpR.js} +10 -10
  24. package/dist/{Record-sjJx9Rxr.js → Record-DJimfMy6.js} +8 -8
  25. package/dist/{Reward-C33_2GAs.js → Reward-DoRA5oe0.js} +15 -15
  26. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-4Ah1HGJW.js → RewardGroup.vue_vue_type_script_setup_true_lang-ys_Vh6MC.js} +11 -11
  27. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CpDZBVmB.js → RuleGroup.vue_vue_type_script_setup_true_lang-ClQbIu9q.js} +13 -13
  28. package/dist/{Segment-CR4_Y82e.js → Segment-B1bvEg9R.js} +22 -22
  29. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-CDZw5i96.js → SelectItems.vue_vue_type_script_setup_true_lang-BKdjRWtr.js} +2 -2
  30. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-pW_AdLpP.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-CDOOVRwr.js} +11 -11
  31. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BS62Yf0v.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CvZRK_DV.js} +3 -3
  32. package/dist/{Setting-D4RTLzZM.js → Setting-puwRxs7w.js} +12 -12
  33. package/dist/{SettingAdvertisements-Cc9IMI41.js → SettingAdvertisements-D0e9lyCy.js} +65 -63
  34. package/dist/Store-BSbLeEpY.js +1924 -0
  35. package/dist/{StoreRewards-CzrZS5Au.js → StoreRewards-DDtlg3wU.js} +13 -13
  36. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-Ci3xQrAn.js → StoreTransactions.vue_vue_type_script_setup_true_lang-xWPIvf68.js} +361 -343
  37. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DG7dPhv0.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-6gvUWrB_.js} +1 -1
  38. package/dist/{Tier-9-iKsHxM.js → Tier-C3ZY5wI7.js} +97 -98
  39. package/dist/{Title-C6TY3BbS.js → Title-D9FHvMc0.js} +27 -28
  40. package/dist/{Transaction-BGxgNf0y.js → Transaction-hopVsT0g.js} +2 -2
  41. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-xiH9sxVn.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CsL3d7xM.js} +6 -6
  42. package/dist/{Voucher-Cdh0PqeF.js → Voucher-D1WfKPnA.js} +132 -117
  43. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-BRw2nedI.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BCorf-T-.js} +10 -10
  44. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-D6En5sRQ.js → ZodTextField.vue_vue_type_script_setup_true_lang-fp4U_C6t.js} +1 -1
  45. package/dist/{app-DIFcDSPz.js → app-BOEkcROx.js} +1 -1
  46. package/dist/{app-qOoNoXsj.js → app-VcIY7uz8.js} +496 -454
  47. package/dist/app.js +1 -1
  48. package/dist/{business-D8WOIwU3.js → business-CxrnbBG7.js} +1 -1
  49. package/dist/{campaign-B5Zcg5dG.js → campaign-DOOGvk7s.js} +9 -9
  50. package/dist/campaign-OdVtlvIh.js +213 -0
  51. package/dist/{campaign.enum-BVGqtpbT.js → campaign.enum-jzknDWsU.js} +1 -1
  52. package/dist/{campaign.fn-BJksX0lC.js → campaign.fn-C8KE-0gy.js} +40 -40
  53. package/dist/{collectible.enum-CDt5sCg-.js → collectible.enum-GH2dIJq0.js} +1 -1
  54. package/dist/{collection.fn-BmkwrIEt.js → collection.fn-BAhwf5Jh.js} +2 -2
  55. package/dist/{dto-BazhL1Wz.js → dto-B7m1l1UL.js} +4 -4
  56. package/dist/{effect-CERxlyga.js → effect-Cu0scI-k.js} +1 -1
  57. package/dist/{email-addresses-XWcL2s8u.js → email-addresses-C0c1x8Vz.js} +1 -1
  58. package/dist/{export-Ctk6xkHX.js → export-BR2VkJmz.js} +3 -3
  59. package/dist/{helper-C36sBB0k.js → helper-DNkQl8J2.js} +1 -1
  60. package/dist/{index-CYHzkVmf.js → index-BsQsj910.js} +3 -3
  61. package/dist/{index-BHPj_XYw.js → index-ByfJpxsf.js} +4 -4
  62. package/dist/{index-B9gRFG1Q.js → index-C23lCiVv.js} +1 -1
  63. package/dist/{index-Dz55oJOD.js → index-CO55xRbh.js} +530 -523
  64. package/dist/{index-D-cA3r-f.js → index-C_rW5Zzv.js} +1 -1
  65. package/dist/{index-1xCqie-s.js → index-CszV-kA7.js} +1 -1
  66. package/dist/{index-COJnc6ip.js → index-DWMboOMi.js} +1 -1
  67. package/dist/{index-Dr1iOdke.js → index-Dfi4M9Ap.js} +112 -104
  68. package/dist/{index-BSdS5JkE.js → index-DlgPQvBd.js} +1 -1
  69. package/dist/{index-BGirRSvf.js → index-Drvx6WWC.js} +1 -1
  70. package/dist/{index-Ctu4ZSkP.js → index-RkjhZsEw.js} +1 -1
  71. package/dist/{index-BhcuNARt.js → index-WCOWzb_D.js} +3 -3
  72. package/dist/{index-BAjS-mNm.js → index-WY8Y3SjU.js} +3 -3
  73. package/dist/{index.esm2017-CwEbNcAn.js → index.esm2017-DBFvix-C.js} +1 -1
  74. package/dist/{loading-DsAWzrAU.js → loading-DfP4ZQcW.js} +1 -1
  75. package/dist/{membership-CIWA-YIz.js → membership-CiLwVV-2.js} +3 -3
  76. package/dist/{money-B8_RYpfI.js → money-B92Ui9aH.js} +1 -1
  77. package/dist/{number-ClNyxrPX.js → number-CHYDMZpy.js} +1 -1
  78. package/dist/{objectid-B7Hb21TR.js → objectid-CsToJ4hH.js} +6 -6
  79. package/dist/{plugins-BaCcQwW_.js → plugins-GAf1L8Pd.js} +2 -2
  80. package/dist/{reward-Br3L7Y4x.js → reward-FLVXCKuH.js} +1 -1
  81. package/dist/{rule-CELh8Paa.js → rule-BHV4bC-1.js} +3 -3
  82. package/dist/{rule-builder-Dw3JpYy8.js → rule-builder-5WcDxoUM.js} +1 -1
  83. package/dist/{template-BIOneLeZ.js → template-C-y0046H.js} +4 -4
  84. package/dist/{timezone-Jr40C0YQ.js → timezone-Bdf9qSCF.js} +1 -1
  85. package/dist/{trigger-Bl_yRkKF.js → trigger-CjZQ4Gch.js} +4 -4
  86. package/dist/{user-C3J0hjK-.js → user-C5qgJUwB.js} +1 -1
  87. package/dist/{vue-i18n-DbCbvmTz.js → vue-i18n-6i4pn5bC.js} +99 -99
  88. package/dist/{xlsx-ClGRNHcc.js → xlsx-C4iuxJ6i.js} +166 -166
  89. package/package.json +1 -1
  90. package/dist/Store-BTE44D1j.js +0 -1842
  91. package/dist/campaign-IEgssyOs.js +0 -94
  92. package/dist/index-DTvC-nBb.js +0 -124
@@ -1,4 +1,4 @@
1
- import { g as s, S as o, b as i } from "./index-CYHzkVmf.js";
1
+ import { g as s, S as o, b as i } from "./index-BsQsj910.js";
2
2
  const a = () => {
3
3
  const r = o.getBusinessId();
4
4
  if (!r) throw new Error("Invalid business ID");
@@ -1,4 +1,4 @@
1
- import { g as t, s as u, S as c, b as i } from "./index-CYHzkVmf.js";
1
+ import { g as t, s as u, S as c, b as i } from "./index-BsQsj910.js";
2
2
  const a = () => {
3
3
  const e = c.getBusinessId();
4
4
  if (!e) throw new Error("Invalid business ID");
@@ -1,3 +1,3 @@
1
1
  import "vue-router";
2
- import { R as o } from "./app-qOoNoXsj.js";
2
+ import { R as o } from "./app-VcIY7uz8.js";
3
3
  o["$connect-DASHBOARD"];
@@ -1,10 +1,10 @@
1
- import { z as e, F as n, m as o } from "./index-BAjS-mNm.js";
2
- import { c as v } from "./index-Dz55oJOD.js";
3
- import { R as t } from "./rule-builder-Dw3JpYy8.js";
4
- import { i } from "./helper-C36sBB0k.js";
5
- import { D as E, E as O, G as I, H as p } from "./index-BHPj_XYw.js";
6
- import { a as r } from "./index-BhcuNARt.js";
7
- const $ = {
1
+ import { z as e, F as n, m as o } from "./index-WY8Y3SjU.js";
2
+ import { c as E } from "./index-CO55xRbh.js";
3
+ import { R as t } from "./rule-builder-5WcDxoUM.js";
4
+ import { i } from "./helper-DNkQl8J2.js";
5
+ import { D as O, E as I, G as L, H as p } from "./index-ByfJpxsf.js";
6
+ import { a as r } from "./index-WCOWzb_D.js";
7
+ const ee = {
8
8
  PROMOTION: {
9
9
  name: "Promotion Template",
10
10
  description: "Promotion template for campaign creation.",
@@ -309,6 +309,20 @@ const $ = {
309
309
  }
310
310
  ]
311
311
  },
312
+ // {
313
+ // name: 'Hide in App (FeedVibe)',
314
+ // fields: [
315
+ // {
316
+ // label: 'Hide',
317
+ // property: 'campaign.hideInApp',
318
+ // type: 'switch',
319
+ // },
320
+ // ],
321
+ // condition: {
322
+ // property: 'campaign.event.type',
323
+ // value: 'SIMPLE_CLAIM',
324
+ // },
325
+ // },
312
326
  {
313
327
  name: "Redemption",
314
328
  fields: [
@@ -318,24 +332,16 @@ const $ = {
318
332
  type: "text"
319
333
  }
320
334
  ],
321
- condition: {
322
- property: "campaign.event.type",
323
- value: "SIMPLE_CLAIM"
324
- }
325
- },
326
- {
327
- name: "Hide in App (FeedVibe)",
328
- fields: [
335
+ condition: [
336
+ {
337
+ property: "campaign.event.type",
338
+ value: "SIMPLE_CLAIM"
339
+ },
329
340
  {
330
- label: "Hide",
331
341
  property: "campaign.hideInApp",
332
- type: "switch"
342
+ value: !0
333
343
  }
334
- ],
335
- condition: {
336
- property: "campaign.event.type",
337
- value: "SIMPLE_CLAIM"
338
- }
344
+ ]
339
345
  },
340
346
  {
341
347
  name: "Notify audience",
@@ -1766,7 +1772,7 @@ t.setRuleToGroup(t.scaffoldGroup(), [
1766
1772
  ({
1767
1773
  ...t.scaffoldGroup()
1768
1774
  });
1769
- const L = e.enum([
1775
+ const h = e.enum([
1770
1776
  "MEMBER_REWARD",
1771
1777
  "PAID_LOYALTY",
1772
1778
  "COLLECT_FEEDBACK",
@@ -1776,7 +1782,7 @@ const L = e.enum([
1776
1782
  "BROADCAST",
1777
1783
  "BIRTHDAY",
1778
1784
  "GAME"
1779
- ]), h = e.enum([
1785
+ ]), R = e.enum([
1780
1786
  "text",
1781
1787
  "number",
1782
1788
  "textarea",
@@ -1803,33 +1809,35 @@ const L = e.enum([
1803
1809
  "rule_feedback",
1804
1810
  "rule_birthday",
1805
1811
  "promotion_game_type"
1806
- ]), R = e.object({
1812
+ ]), C = e.object({
1807
1813
  label: e.string().optional(),
1808
1814
  property: e.string().or(e.any()),
1809
- type: h,
1815
+ type: R,
1810
1816
  extras: e.string().optional(),
1811
1817
  isRuleChildren: e.boolean().optional()
1812
- }), C = e.object({
1813
- name: e.string().optional(),
1814
- fields: e.array(R),
1815
- condition: e.object({
1816
- not: e.boolean().optional(),
1817
- property: e.string(),
1818
- value: e.any()
1819
- }).optional()
1818
+ }), c = e.object({
1819
+ not: e.boolean().optional(),
1820
+ property: e.string(),
1821
+ value: e.any()
1820
1822
  }), x = e.object({
1823
+ name: e.string().optional(),
1824
+ fields: e.array(C),
1825
+ condition: c.optional().or(
1826
+ e.array(c)
1827
+ )
1828
+ }), T = e.object({
1821
1829
  name: e.string(),
1822
- groups: e.array(C)
1830
+ groups: e.array(x)
1823
1831
  });
1824
1832
  e.object({
1825
1833
  _id: n,
1826
1834
  name: e.string(),
1827
1835
  description: e.string().nullish(),
1828
- steps: e.array(x).min(1),
1829
- intention: e.array(L),
1836
+ steps: e.array(T).min(1),
1837
+ intention: e.array(h),
1830
1838
  defaultValue: e.any()
1831
1839
  }).describe(JSON.stringify({ collectionName: "MarketingTemplates" }));
1832
- const T = {
1840
+ const D = {
1833
1841
  collectionName: "Businesses",
1834
1842
  transform: {
1835
1843
  _id: "oid"
@@ -1841,27 +1849,27 @@ e.object({
1841
1849
  name: e.string(),
1842
1850
  credit: e.number(),
1843
1851
  forceSend: e.boolean().optional()
1844
- }).describe(o.describe(T));
1845
- const m = e.enum(["PHONE"]), D = e.enum([
1852
+ }).describe(o.describe(D));
1853
+ const s = e.enum(["PHONE"]), S = e.enum([
1846
1854
  "MOCEAN",
1847
1855
  "SLACK",
1848
1856
  "SMS",
1849
1857
  "EMAIL",
1850
1858
  "WHATSAPP"
1851
- ]), S = e.enum(["PENDING", "COMPLETED", "FAILED"]), A = e.enum([
1859
+ ]), A = e.enum(["PENDING", "COMPLETED", "FAILED"]), M = e.enum([
1852
1860
  "General",
1853
1861
  "Otp",
1854
1862
  "Marketing",
1855
1863
  "Ordering",
1856
1864
  "MemberInvitation",
1857
1865
  "MarketingPromotion"
1858
- ]), M = e.object({
1859
- type: m
1860
- }), s = M.extend({
1861
- type: e.literal(m.enum.PHONE),
1862
- provider: D,
1863
- usage: A.optional()
1864
- }), w = {
1866
+ ]), w = e.object({
1867
+ type: s
1868
+ }), g = w.extend({
1869
+ type: e.literal(s.enum.PHONE),
1870
+ provider: S,
1871
+ usage: M.optional()
1872
+ }), N = {
1865
1873
  collectionName: "Notifications",
1866
1874
  transform: { _id: "oid", business: "oid" }
1867
1875
  };
@@ -1871,34 +1879,34 @@ e.object({
1871
1879
  target: e.string(),
1872
1880
  title: e.string().optional(),
1873
1881
  message: e.string(),
1874
- option: s,
1875
- status: S,
1882
+ option: g,
1883
+ status: A,
1876
1884
  ref: e.string().optional()
1877
- }).describe(o.describe(w));
1885
+ }).describe(o.describe(N));
1878
1886
  e.object({
1879
1887
  target: e.string(),
1880
1888
  title: e.string().optional(),
1881
1889
  message: e.string(),
1882
- option: s,
1890
+ option: g,
1883
1891
  ref: e.string().optional()
1884
1892
  });
1885
1893
  e.object({
1886
1894
  phone: e.string(),
1887
1895
  message: e.string()
1888
1896
  });
1889
- const c = e.object({
1897
+ const m = e.object({
1890
1898
  name: e.string().optional(),
1891
1899
  address: e.string()
1892
- }), N = e.object({
1900
+ }), U = e.object({
1893
1901
  filename: e.string(),
1894
1902
  content: e.instanceof(Uint8Array)
1895
1903
  });
1896
1904
  e.object({
1897
- from: c.optional(),
1898
- to: e.array(c),
1905
+ from: m.optional(),
1906
+ to: e.array(m),
1899
1907
  subject: e.string(),
1900
1908
  html: e.string().optional(),
1901
- attachments: e.array(N).optional()
1909
+ attachments: e.array(U).optional()
1902
1910
  });
1903
1911
  e.object({
1904
1912
  subject: e.string(),
@@ -1940,15 +1948,15 @@ e.object({
1940
1948
  e.object({
1941
1949
  orderId: e.string()
1942
1950
  });
1943
- var g = /* @__PURE__ */ ((a) => (a[a.feedMe = 0] = "feedMe", a[a.business = 1] = "business", a[a.restaurant = 2] = "restaurant", a))(g || {});
1944
- e.nativeEnum(g);
1951
+ var d = /* @__PURE__ */ ((a) => (a[a.feedMe = 0] = "feedMe", a[a.business = 1] = "business", a[a.restaurant = 2] = "restaurant", a))(d || {});
1952
+ e.nativeEnum(d);
1945
1953
  e.enum(["manage", "create", "read", "update", "delete"]);
1946
1954
  e.enum(["all", "restaurant", "business", "delivery", "agent"]);
1947
1955
  e.enum(["quota"]);
1948
- var d = /* @__PURE__ */ ((a) => (a.marketing = "business::marketing", a.campaign = "business::campaign", a.counter = "business::counter", a.permission = "business::permission", a.role = "business::role", a))(d || {});
1949
- e.nativeEnum(d);
1956
+ var y = /* @__PURE__ */ ((a) => (a.marketing = "business::marketing", a.campaign = "business::campaign", a.counter = "business::counter", a.permission = "business::permission", a.role = "business::role", a))(y || {});
1957
+ e.nativeEnum(y);
1950
1958
  e.enum(["restaurant"]);
1951
- const U = e.object({
1959
+ const F = e.object({
1952
1960
  label: e.string(),
1953
1961
  subject: e.union([e.string(), e.array(e.string())]),
1954
1962
  actions: e.union([e.string(), e.array(e.string())]),
@@ -1963,7 +1971,7 @@ e.object({
1963
1971
  userId: e.string(),
1964
1972
  email: e.string().nullish(),
1965
1973
  phoneNo: e.string().nullish(),
1966
- permissions: e.array(e.lazy(() => U))
1974
+ permissions: e.array(e.lazy(() => F))
1967
1975
  }).describe(
1968
1976
  o.describe({
1969
1977
  collectionName: "PermissionUsers",
@@ -1972,27 +1980,27 @@ e.object({
1972
1980
  }
1973
1981
  })
1974
1982
  );
1975
- const y = e.object({
1983
+ const u = e.object({
1976
1984
  userId: e.string(),
1977
1985
  level: e.number(),
1978
1986
  role: e.string().optional(),
1979
1987
  businessId: e.string().optional(),
1980
1988
  restaurantId: e.string().optional()
1981
- }), F = e.function().args(e.any(), y).returns(e.boolean()), P = e.function().args(y).returns(e.promise(e.array(e.any())));
1989
+ }), P = e.function().args(e.any(), u).returns(e.boolean()), G = e.function().args(u).returns(e.promise(e.array(e.any())));
1982
1990
  e.object({
1983
- isAdmin: F,
1984
- getRules: P
1991
+ isAdmin: P,
1992
+ getRules: G
1985
1993
  });
1986
1994
  e.object({
1987
- transactions: e.array(E),
1988
- collections: e.array(O)
1995
+ transactions: e.array(O),
1996
+ collections: e.array(I)
1989
1997
  });
1990
- const u = e.enum([
1998
+ const f = e.enum([
1991
1999
  "ROCK_PAPER_SCISSOR"
1992
2000
  ]);
1993
- u.enum.ROCK_PAPER_SCISSOR + "";
2001
+ f.enum.ROCK_PAPER_SCISSOR + "";
1994
2002
  e.object({
1995
- type: u
2003
+ type: f
1996
2004
  });
1997
2005
  e.object({
1998
2006
  host: e.string().url(),
@@ -2019,12 +2027,12 @@ e.object({
2019
2027
  phone: e.string().optional(),
2020
2028
  email: e.string().optional()
2021
2029
  });
2022
- const G = e.enum([
2030
+ const B = e.enum([
2023
2031
  "PENDING",
2024
2032
  "SUCCESS",
2025
2033
  "FAILED",
2026
2034
  "RETRYING"
2027
- ]), B = {
2035
+ ]), H = {
2028
2036
  collectionName: "WebhookLogs",
2029
2037
  transform: {
2030
2038
  _id: "oid",
@@ -2036,35 +2044,35 @@ e.object({
2036
2044
  business: n,
2037
2045
  type: e.string(),
2038
2046
  payload: e.record(e.any()),
2039
- status: G,
2047
+ status: B,
2040
2048
  response: e.any().optional(),
2041
2049
  error: e.string().optional()
2042
- }).describe(o.describe(B));
2043
- const H = e.enum(["AUTO", "MANUAL"]);
2050
+ }).describe(o.describe(H));
2051
+ const V = e.enum(["AUTO", "MANUAL"]);
2044
2052
  e.enum(["IN_PROGRESS", "COMPLETED"]);
2045
- const f = e.object({
2053
+ const _ = e.object({
2046
2054
  _id: n,
2047
2055
  name: e.string().min(1, "Name is required").max(50),
2048
- type: H,
2049
- event: I.optional()
2050
- }), V = e.object({
2056
+ type: V,
2057
+ event: L.optional()
2058
+ }), k = e.object({
2051
2059
  from: e.number().int("Must be integer").min(1, "Min referral count need to start from 1"),
2052
2060
  to: e.number().int("Must be integer").nullish()
2053
- }).superRefine((a, b) => {
2054
- a.from && a.to && a.from > a.to && b.addIssue({
2061
+ }).superRefine((a, v) => {
2062
+ a.from && a.to && a.from > a.to && v.addIssue({
2055
2063
  code: "custom",
2056
2064
  message: "Max referral count must be more than min referral count"
2057
2065
  });
2058
- }), k = e.object({
2059
- threshold: V,
2066
+ }), j = e.object({
2067
+ threshold: k,
2060
2068
  rewards: e.array(n),
2061
2069
  pf_reward: e.array(r).optional()
2062
2070
  }), l = e.object({
2063
2071
  id: e.string(),
2064
2072
  name: e.string().min(1, "Name is required").max(50, "Name must be less than 50 characters"),
2065
- rule: v.optional(),
2066
- rewards: e.array(k)
2067
- }), j = {
2073
+ rule: E.optional(),
2074
+ rewards: e.array(j)
2075
+ }), Y = {
2068
2076
  collectionName: "ReferralRecords",
2069
2077
  transform: {
2070
2078
  _id: "oid",
@@ -2073,25 +2081,25 @@ const f = e.object({
2073
2081
  referee: "oid",
2074
2082
  refereeReward: "oid"
2075
2083
  }
2076
- }, Y = e.object({
2084
+ }, K = e.object({
2077
2085
  completedAt: e.coerce.date(),
2078
2086
  criteria: n,
2079
2087
  ref: e.string()
2080
- }), K = e.object({
2088
+ }), W = e.object({
2081
2089
  _id: n,
2082
2090
  business: n,
2083
2091
  referer: n,
2084
2092
  referee: n,
2085
- criteria: e.array(f),
2093
+ criteria: e.array(_),
2086
2094
  reward: e.array(l),
2087
2095
  refereeReward: e.array(n).optional(),
2088
- criteria_progress: e.array(Y),
2096
+ criteria_progress: e.array(K),
2089
2097
  status: e.string(),
2090
2098
  pf_referer: p.optional(),
2091
2099
  pf_referee: p.optional(),
2092
2100
  pf_refereeReward: e.array(r).optional()
2093
- }).describe(o.describe(j));
2094
- K.pick({
2101
+ }).describe(o.describe(Y));
2102
+ W.pick({
2095
2103
  _id: !0,
2096
2104
  business: !0,
2097
2105
  referer: !0,
@@ -2106,27 +2114,27 @@ K.pick({
2106
2114
  photoUrl: !0
2107
2115
  })
2108
2116
  });
2109
- const W = {
2117
+ const X = {
2110
2118
  collectionName: "ReferralProgram",
2111
2119
  transform: {
2112
2120
  _id: "oid",
2113
2121
  business: "oid"
2114
2122
  }
2115
- }, _ = e.object({
2123
+ }, b = e.object({
2116
2124
  _id: n,
2117
2125
  business: n,
2118
2126
  term_and_condition: e.string().optional(),
2119
2127
  refereeReward: e.array(n).optional(),
2120
2128
  reward: e.array(l),
2121
- criteria: e.array(f)
2122
- }).describe(o.describe(W));
2129
+ criteria: e.array(_)
2130
+ }).describe(o.describe(X));
2123
2131
  e.object({
2124
2132
  referer: n,
2125
2133
  referee: n,
2126
2134
  business: n
2127
2135
  });
2128
2136
  e.object({
2129
- program: _.pick({
2137
+ program: b.pick({
2130
2138
  _id: !0,
2131
2139
  business: !0,
2132
2140
  term_and_condition: !0
@@ -2143,13 +2151,13 @@ e.object({
2143
2151
  photoUrl: !0
2144
2152
  }).optional()
2145
2153
  });
2146
- _.extend({
2154
+ b.extend({
2147
2155
  updateReferralRecord: e.boolean().optional()
2148
2156
  });
2149
2157
  export {
2150
- L as F,
2151
- $ as T,
2152
- k as a,
2153
- f as b,
2158
+ h as F,
2159
+ ee as T,
2160
+ j as a,
2161
+ _ as b,
2154
2162
  l as c
2155
2163
  };
@@ -1,4 +1,4 @@
1
- import { h as p } from "./index-Dz55oJOD.js";
1
+ import { h as p } from "./index-CO55xRbh.js";
2
2
  function g(r) {
3
3
  return r.toLowerCase();
4
4
  }
@@ -1,4 +1,4 @@
1
- import { g as r, a as n, S as o, b as c } from "./index-CYHzkVmf.js";
1
+ import { g as r, a as n, S as o, b as c } from "./index-BsQsj910.js";
2
2
  const a = () => {
3
3
  const e = o.getBusinessId();
4
4
  if (!e) throw new Error("Invalid business ID");
@@ -1,4 +1,4 @@
1
- import { z as t, F as e, m as i } from "./index-BAjS-mNm.js";
1
+ import { z as t, F as e, m as i } from "./index-WY8Y3SjU.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 { F as o, e as t, g as a } from "./index-Dz55oJOD.js";
2
- import { z as e, F as i, m as d } from "./index-BAjS-mNm.js";
3
- import { F as c } from "./collectible.enum-CDt5sCg-.js";
1
+ import { F as o, e as t, g as a } from "./index-CO55xRbh.js";
2
+ import { z as e, F as i, m as d } from "./index-WY8Y3SjU.js";
3
+ import { F as c } from "./collectible.enum-GH2dIJq0.js";
4
4
  const l = e.enum(["VOUCHER", "LOYALTY"]), n = e.object({
5
5
  type: e.literal(l.enum.VOUCHER),
6
6
  collectible: i,