@feedmepos/mf-connect 0.1.21-prod → 0.1.23-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 (89) hide show
  1. package/dist/{Analytic-BQiGib08.js → Analytic-DfTQmuSa.js} +10 -10
  2. package/dist/{App-B8e7d2pF.js → App-C5AMrBM2.js} +7 -7
  3. package/dist/{Bin-BLlnEux-.js → Bin-nZv2ZrAD.js} +7 -7
  4. package/dist/{Broadcast-BGw646-m.js → Broadcast-1ViZILw6.js} +8 -8
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BT5rtjPA.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Nuj7G5E1.js} +6 -6
  6. package/dist/{Card-I9YI4BlJ.js → Card-CUAfRl0P.js} +14 -14
  7. package/dist/{Collections-BV8_G7vd.js → Collections-DNlV8CiV.js} +5 -5
  8. package/dist/{Credit-nrEbKUWc.js → Credit-C8WVgeKO.js} +8 -8
  9. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-BTkAiIvO.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-CZmd7K3H.js} +28 -27
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-C-dcVww-.js → EffectSheet.vue_vue_type_style_index_0_lang-Crakwwgo.js} +6 -6
  11. package/dist/{Experience-Cj6yrQ-5.js → Experience-C0ZrJ-rU.js} +8 -8
  12. package/dist/{Game-C57UeXHH.js → Game-KiwAxjQX.js} +8 -8
  13. package/dist/{Index-C_m0ldjU.js → Index-C_mvHa_E.js} +9 -9
  14. package/dist/{MainLayout-DpZC6o3R.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js} +19 -53
  15. package/dist/MainLayout-B1aJoR95.js +41 -0
  16. package/dist/{Marketing-CH1DN3VY.js → Marketing-7lvR6gR_.js} +12 -12
  17. package/dist/{Member-BcORjsqn.js → Member-DR406GTr.js} +4 -4
  18. package/dist/{MemberList-Ca75OWm_.js → MemberList-BDsVY1bB.js} +23 -23
  19. package/dist/{MemberTransactions-B0Oa15-s.js → MemberTransactions-DXgJ8Tua.js} +1 -1
  20. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-BbiWEoQQ.js +447 -0
  21. package/dist/{Mission-o0TjmbH_.js → Mission-CJnySjh4.js} +8 -8
  22. package/dist/{Overview-EiAhGzV6.js → Overview-ZENHKQhC.js} +16 -16
  23. package/dist/{Point-qan2Ihfu.js → Point-DvYLQNmg.js} +8 -8
  24. package/dist/{Promotion-COVNuE2t.js → Promotion-CE6Mqev4.js} +9 -9
  25. package/dist/{Record-Cyd2x4RU.js → Record-Cl4o08E4.js} +6 -6
  26. package/dist/{Reward-k-AweK42.js → Reward-C1hZ9c6y.js} +14 -14
  27. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-CFhyLvSA.js → RewardGroup.vue_vue_type_script_setup_true_lang-Co1mzeQA.js} +10 -10
  28. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-tcfaWFK4.js → RuleGroup.vue_vue_type_script_setup_true_lang-CDEiSeqW.js} +181 -178
  29. package/dist/{Segment-DIb21-Ns.js → Segment-1RH6jUyt.js} +13 -13
  30. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-D7r3NMJu.js → SelectItems.vue_vue_type_script_setup_true_lang-CJTZZ4EH.js} +2 -2
  31. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-B5IaCgiU.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DL2A84oN.js} +3 -3
  32. package/dist/Setting-DK9lsogh.js +1930 -0
  33. package/dist/{Store-DLEcQWU_.js → Store-DSeXriUy.js} +145 -143
  34. package/dist/StoreRewards-DFUg0n5g.js +422 -0
  35. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-BpNYA-xj.js → StoreTransactions.vue_vue_type_script_setup_true_lang-D_F7zaEl.js} +82 -82
  36. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BlEfnhii.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-hR4OBTrC.js} +1 -1
  37. package/dist/{Tier-jmOeJ9BB.js → Tier-Yq3BNKGq.js} +19 -19
  38. package/dist/{Title-CsV4jem5.js → Title-CwWan9gL.js} +100 -100
  39. package/dist/{Transaction-Bf8PWUc6.js → Transaction-BgO5EYZB.js} +2 -2
  40. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-bFnBW5gb.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CyUXbl30.js} +6 -6
  41. package/dist/{Voucher-eayylhcc.js → Voucher-C2w8z86e.js} +34 -34
  42. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DjlgbRZ4.js → VoucherEditor.vue_vue_type_script_setup_true_lang-dEgiWiLL.js} +10 -10
  43. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DMh6Q2iI.js → ZodTextField.vue_vue_type_script_setup_true_lang-BME260O1.js} +1 -1
  44. package/dist/{app-NqEzL0OT.js → app-BVIgk6aa.js} +1 -1
  45. package/dist/{app-bxGFzJpn.js → app-BVsQcG_m.js} +40 -40
  46. package/dist/app.js +1 -1
  47. package/dist/{business-D6C_7bDy.js → business-CdvE-WIp.js} +1 -1
  48. package/dist/{campaign-BGzVYFng.js → campaign-WGLWFuCK.js} +9 -9
  49. package/dist/{campaign-yLK6vWS8.js → campaign-gunNEZhU.js} +2 -2
  50. package/dist/{campaign.enum-Dbmht5_i.js → campaign.enum-O82qvpU2.js} +1 -1
  51. package/dist/{campaign.fn-Dj2_FuER.js → campaign.fn-Bzr9Jc5X.js} +22 -22
  52. package/dist/{collectible.enum-Dnn_Aj65.js → collectible.enum-CzUCHExj.js} +1 -1
  53. package/dist/{collection.fn-CoMxWCc1.js → collection.fn-Czs8Mpdz.js} +2 -2
  54. package/dist/{dto-ClZmLiV_.js → dto-Czd638gm.js} +7 -7
  55. package/dist/{effect-BDMkCpDf.js → effect-D8Km5OHX.js} +1 -1
  56. package/dist/{email-addresses-B3uFvya7.js → email-addresses-2-RgQal8.js} +1 -1
  57. package/dist/{export-v3KwUDUd.js → export--jJWZuJy.js} +3 -3
  58. package/dist/{helper-CBL7LpuD.js → helper-BOwvTpT_.js} +1 -1
  59. package/dist/{index-DP6beo56.js → index-7SYnV8B2.js} +4 -4
  60. package/dist/{index-Cqzz3NCP.js → index-BMPlc7it.js} +225 -218
  61. package/dist/{index-DUJOEcLO.js → index-Bg8Lqk3s.js} +1 -1
  62. package/dist/{index-CQAOZuRz.js → index-C6j2uVRJ.js} +1 -1
  63. package/dist/{index-CyJqTXt8.js → index-CFxA9VYh.js} +91 -73
  64. package/dist/{index-TyHupXxP.js → index-CKSGfZ62.js} +21 -16
  65. package/dist/{index-MMYQth2d.js → index-CpsX7fKq.js} +1 -1
  66. package/dist/{index-DHbi29uw.js → index-DExfBo0i.js} +3 -3
  67. package/dist/{index-DAk26zCe.js → index-DGi6aLjD.js} +1 -1
  68. package/dist/{index-g-PCtD2d.js → index-DRVIuG-G.js} +1 -1
  69. package/dist/{index-C3-pSb8M.js → index-DllRE4Xv.js} +1 -1
  70. package/dist/{index-RwV8duB6.js → index-FBWWEOV0.js} +12 -5
  71. package/dist/{index.esm2017-B9fqtwTI.js → index.esm2017-CkIJgInI.js} +38 -38
  72. package/dist/{loading-DasBRvHo.js → loading-C-HOw2p9.js} +4 -4
  73. package/dist/{membership-CxFyoQ-0.js → membership-ByveC1Cs.js} +3 -3
  74. package/dist/{money-CVZMau41.js → money-C_wAhRJ4.js} +1 -1
  75. package/dist/{number-q8W5mWjg.js → number-B1OxEx_j.js} +1 -1
  76. package/dist/{objectid-wDM4YS-R.js → objectid-CtnWn6lG.js} +6 -6
  77. package/dist/{reward-DvTNcjsB.js → reward-BOA1fyrM.js} +1 -1
  78. package/dist/{rule-Cy2u2C6N.js → rule-CfePtJap.js} +8 -4
  79. package/dist/{rule-builder-DQavAK_J.js → rule-builder-B7wNFPfi.js} +1 -1
  80. package/dist/style.css +1 -1
  81. package/dist/{template-Be8bixKI.js → template-CvIL9Pex.js} +4 -4
  82. package/dist/{trigger-Nhtu-Pr4.js → trigger-D7uzmrxE.js} +4 -4
  83. package/dist/{usePagination-Djq5Hy-n.js → usePagination-BFzJ3YC7.js} +1 -1
  84. package/dist/{user-B36pyi6C.js → user-NlenrMEw.js} +1 -1
  85. package/dist/{vue-i18n-DaIhSEbY.js → vue-i18n-BjInRP6b.js} +2 -2
  86. package/package.json +1 -1
  87. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-DDBXmzd5.js +0 -215
  88. package/dist/Setting-ZTPL9b35.js +0 -1877
  89. package/dist/StoreRewards-B5txZ3P9.js +0 -401
@@ -1,4 +1,4 @@
1
- import { z as t, F as e, m as i } from "./loading-DasBRvHo.js";
1
+ import { z as t, F as e, m as i } from "./loading-C-HOw2p9.js";
2
2
  const n = t.enum(["FACEBOOK", "INSTAGRAM", "TV", "BRAND_APP"]), s = {
3
3
  collectionName: "MarketingMaterials",
4
4
  transform: {
@@ -1,3 +1,3 @@
1
1
  import "vue-router";
2
- import { R as o } from "./app-bxGFzJpn.js";
2
+ import { R as o } from "./app-BVsQcG_m.js";
3
3
  o["$connect-DASHBOARD"];
@@ -1,10 +1,10 @@
1
- import { z as e, F as a, m as o } from "./loading-DasBRvHo.js";
2
- import { c as b } from "./index-TyHupXxP.js";
3
- import { R as t } from "./rule-builder-DQavAK_J.js";
4
- import { i } from "./helper-CBL7LpuD.js";
5
- import { y as v, z as E, A as O, B as p } from "./index-Cqzz3NCP.js";
6
- import { a as r } from "./index-DHbi29uw.js";
7
- const Q = {
1
+ import { z as e, F as a, m as o } from "./loading-C-HOw2p9.js";
2
+ import { c as v } from "./index-CKSGfZ62.js";
3
+ import { R as t } from "./rule-builder-B7wNFPfi.js";
4
+ import { i } from "./helper-BOwvTpT_.js";
5
+ import { z as E, A as O, B as I, D as p } from "./index-BMPlc7it.js";
6
+ import { a as r } from "./index-DExfBo0i.js";
7
+ const z = {
8
8
  PROMOTION: {
9
9
  name: "Promotion Template",
10
10
  description: "Promotion template for campaign creation.",
@@ -1748,7 +1748,7 @@ t.setRuleToGroup(t.scaffoldGroup(), [
1748
1748
  ({
1749
1749
  ...t.scaffoldGroup()
1750
1750
  });
1751
- const I = e.enum([
1751
+ const L = e.enum([
1752
1752
  "MEMBER_REWARD",
1753
1753
  "PAID_LOYALTY",
1754
1754
  "COLLECT_FEEDBACK",
@@ -1758,7 +1758,7 @@ const I = e.enum([
1758
1758
  "BROADCAST",
1759
1759
  "BIRTHDAY",
1760
1760
  "GAME"
1761
- ]), L = e.enum([
1761
+ ]), h = e.enum([
1762
1762
  "text",
1763
1763
  "number",
1764
1764
  "textarea",
@@ -1785,33 +1785,33 @@ const I = e.enum([
1785
1785
  "rule_feedback",
1786
1786
  "rule_birthday",
1787
1787
  "promotion_game_type"
1788
- ]), h = e.object({
1788
+ ]), R = e.object({
1789
1789
  label: e.string().optional(),
1790
1790
  property: e.string().or(e.any()),
1791
- type: L,
1791
+ type: h,
1792
1792
  extras: e.string().optional(),
1793
1793
  isRuleChildren: e.boolean().optional()
1794
- }), R = e.object({
1794
+ }), x = e.object({
1795
1795
  name: e.string().optional(),
1796
- fields: e.array(h),
1796
+ fields: e.array(R),
1797
1797
  condition: e.object({
1798
1798
  not: e.boolean().optional(),
1799
1799
  property: e.string(),
1800
1800
  value: e.any()
1801
1801
  }).optional()
1802
- }), x = e.object({
1802
+ }), C = e.object({
1803
1803
  name: e.string(),
1804
- groups: e.array(R)
1804
+ groups: e.array(x)
1805
1805
  });
1806
1806
  e.object({
1807
1807
  _id: a,
1808
1808
  name: e.string(),
1809
1809
  description: e.string().nullish(),
1810
- steps: e.array(x).min(1),
1811
- intention: e.array(I),
1810
+ steps: e.array(C).min(1),
1811
+ intention: e.array(L),
1812
1812
  defaultValue: e.any()
1813
1813
  }).describe(JSON.stringify({ collectionName: "MarketingTemplates" }));
1814
- const C = {
1814
+ const T = {
1815
1815
  collectionName: "Businesses",
1816
1816
  transform: {
1817
1817
  _id: "oid"
@@ -1823,20 +1823,20 @@ e.object({
1823
1823
  name: e.string(),
1824
1824
  credit: e.number(),
1825
1825
  forceSend: e.boolean().optional()
1826
- }).describe(o.describe(C));
1827
- const c = e.enum(["PHONE"]), T = e.enum(["MOCEAN", "SLACK"]), D = e.enum(["PENDING", "COMPLETED", "FAILED"]), S = e.enum([
1826
+ }).describe(o.describe(T));
1827
+ const m = e.enum(["PHONE"]), D = e.enum(["MOCEAN", "SLACK", "SMS", "EMAIL"]), S = e.enum(["PENDING", "COMPLETED", "FAILED"]), A = e.enum([
1828
1828
  "General",
1829
1829
  "Otp",
1830
1830
  "Marketing",
1831
1831
  "Ordering",
1832
1832
  "MemberInvitation"
1833
1833
  ]), M = e.object({
1834
- type: c
1835
- }), m = M.extend({
1836
- type: e.literal(c.enum.PHONE),
1837
- provider: T,
1838
- usage: S.optional()
1839
- }), A = {
1834
+ type: m
1835
+ }), s = M.extend({
1836
+ type: e.literal(m.enum.PHONE),
1837
+ provider: D,
1838
+ usage: A.optional()
1839
+ }), w = {
1840
1840
  collectionName: "Notifications",
1841
1841
  transform: { _id: "oid", business: "oid" }
1842
1842
  };
@@ -1846,21 +1846,39 @@ e.object({
1846
1846
  target: e.string(),
1847
1847
  title: e.string().optional(),
1848
1848
  message: e.string(),
1849
- option: m,
1850
- status: D,
1849
+ option: s,
1850
+ status: S,
1851
1851
  ref: e.string().optional()
1852
- }).describe(o.describe(A));
1852
+ }).describe(o.describe(w));
1853
1853
  e.object({
1854
1854
  target: e.string(),
1855
1855
  title: e.string().optional(),
1856
1856
  message: e.string(),
1857
- option: m,
1857
+ option: s,
1858
1858
  ref: e.string().optional()
1859
1859
  });
1860
1860
  e.object({
1861
1861
  phone: e.string(),
1862
1862
  message: e.string()
1863
1863
  });
1864
+ const c = e.object({
1865
+ name: e.string().optional(),
1866
+ address: e.string()
1867
+ }), N = e.object({
1868
+ filename: e.string(),
1869
+ content: e.instanceof(Uint8Array)
1870
+ });
1871
+ e.object({
1872
+ from: c.optional(),
1873
+ to: e.array(c),
1874
+ subject: e.string(),
1875
+ html: e.string().optional(),
1876
+ attachments: e.array(N).optional()
1877
+ });
1878
+ e.object({
1879
+ subject: e.string(),
1880
+ body: e.string()
1881
+ });
1864
1882
  e.enum(["send_notification", "TRIGGER_EVENT"]);
1865
1883
  e.enum([
1866
1884
  "campaign.general",
@@ -1888,15 +1906,15 @@ e.object({
1888
1906
  claimIds: e.array(e.string()),
1889
1907
  billId: e.string()
1890
1908
  });
1891
- var s = /* @__PURE__ */ ((n) => (n[n.feedMe = 0] = "feedMe", n[n.business = 1] = "business", n[n.restaurant = 2] = "restaurant", n))(s || {});
1892
- e.nativeEnum(s);
1909
+ var g = /* @__PURE__ */ ((n) => (n[n.feedMe = 0] = "feedMe", n[n.business = 1] = "business", n[n.restaurant = 2] = "restaurant", n))(g || {});
1910
+ e.nativeEnum(g);
1893
1911
  e.enum(["manage", "create", "read", "update", "delete"]);
1894
1912
  e.enum(["all", "restaurant", "business", "delivery", "agent"]);
1895
1913
  e.enum(["quota"]);
1896
- var g = /* @__PURE__ */ ((n) => (n.marketing = "business::marketing", n.campaign = "business::campaign", n.counter = "business::counter", n.permission = "business::permission", n.role = "business::role", n))(g || {});
1897
- e.nativeEnum(g);
1914
+ var d = /* @__PURE__ */ ((n) => (n.marketing = "business::marketing", n.campaign = "business::campaign", n.counter = "business::counter", n.permission = "business::permission", n.role = "business::role", n))(d || {});
1915
+ e.nativeEnum(d);
1898
1916
  e.enum(["restaurant"]);
1899
- const w = e.object({
1917
+ const U = e.object({
1900
1918
  label: e.string(),
1901
1919
  subject: e.union([e.string(), e.array(e.string())]),
1902
1920
  actions: e.union([e.string(), e.array(e.string())]),
@@ -1911,7 +1929,7 @@ e.object({
1911
1929
  userId: e.string(),
1912
1930
  email: e.string().nullish(),
1913
1931
  phoneNo: e.string().nullish(),
1914
- permissions: e.array(e.lazy(() => w))
1932
+ permissions: e.array(e.lazy(() => U))
1915
1933
  }).describe(
1916
1934
  o.describe({
1917
1935
  collectionName: "PermissionUsers",
@@ -1920,27 +1938,27 @@ e.object({
1920
1938
  }
1921
1939
  })
1922
1940
  );
1923
- const d = e.object({
1941
+ const y = e.object({
1924
1942
  userId: e.string(),
1925
1943
  level: e.number(),
1926
1944
  role: e.string().optional(),
1927
1945
  businessId: e.string().optional(),
1928
1946
  restaurantId: e.string().optional()
1929
- }), N = e.function().args(e.any(), d).returns(e.boolean()), U = e.function().args(d).returns(e.promise(e.array(e.any())));
1947
+ }), F = e.function().args(e.any(), y).returns(e.boolean()), P = e.function().args(y).returns(e.promise(e.array(e.any())));
1930
1948
  e.object({
1931
- isAdmin: N,
1932
- getRules: U
1949
+ isAdmin: F,
1950
+ getRules: P
1933
1951
  });
1934
1952
  e.object({
1935
- transactions: e.array(v),
1936
- collections: e.array(E)
1953
+ transactions: e.array(E),
1954
+ collections: e.array(O)
1937
1955
  });
1938
- const y = e.enum([
1956
+ const u = e.enum([
1939
1957
  "ROCK_PAPER_SCISSOR"
1940
1958
  ]);
1941
- y.enum.ROCK_PAPER_SCISSOR + "";
1959
+ u.enum.ROCK_PAPER_SCISSOR + "";
1942
1960
  e.object({
1943
- type: y
1961
+ type: u
1944
1962
  });
1945
1963
  e.object({
1946
1964
  host: e.string().url(),
@@ -1967,31 +1985,31 @@ e.object({
1967
1985
  phone: e.string().optional(),
1968
1986
  email: e.string().optional()
1969
1987
  });
1970
- const F = e.enum(["AUTO", "MANUAL"]);
1988
+ const B = e.enum(["AUTO", "MANUAL"]);
1971
1989
  e.enum(["IN_PROGRESS", "COMPLETED"]);
1972
- const u = e.object({
1990
+ const f = e.object({
1973
1991
  _id: a,
1974
1992
  name: e.string().min(1, "Name is required").max(50),
1975
- type: F,
1976
- event: O.optional()
1977
- }), P = e.object({
1993
+ type: B,
1994
+ event: I.optional()
1995
+ }), G = e.object({
1978
1996
  from: e.number().int("Must be integer").min(1, "Min referral count need to start from 1"),
1979
1997
  to: e.number().int("Must be integer").nullish()
1980
- }).superRefine((n, _) => {
1981
- n.from && n.to && n.from > n.to && _.addIssue({
1998
+ }).superRefine((n, b) => {
1999
+ n.from && n.to && n.from > n.to && b.addIssue({
1982
2000
  code: "custom",
1983
2001
  message: "Max referral count must be more than min referral count"
1984
2002
  });
1985
- }), B = e.object({
1986
- threshold: P,
2003
+ }), H = e.object({
2004
+ threshold: G,
1987
2005
  rewards: e.array(a),
1988
2006
  pf_reward: e.array(r).optional()
1989
2007
  }), l = e.object({
1990
2008
  id: e.string(),
1991
2009
  name: e.string().min(1, "Name is required").max(50, "Name must be less than 50 characters"),
1992
- rule: b.optional(),
1993
- rewards: e.array(B)
1994
- }), G = {
2010
+ rule: v.optional(),
2011
+ rewards: e.array(H)
2012
+ }), V = {
1995
2013
  collectionName: "ReferralRecords",
1996
2014
  transform: {
1997
2015
  _id: "oid",
@@ -2000,25 +2018,25 @@ const u = e.object({
2000
2018
  referee: "oid",
2001
2019
  refereeReward: "oid"
2002
2020
  }
2003
- }, H = e.object({
2021
+ }, k = e.object({
2004
2022
  completedAt: e.coerce.date(),
2005
2023
  criteria: a,
2006
2024
  ref: e.string()
2007
- }), V = e.object({
2025
+ }), j = e.object({
2008
2026
  _id: a,
2009
2027
  business: a,
2010
2028
  referer: a,
2011
2029
  referee: a,
2012
- criteria: e.array(u),
2030
+ criteria: e.array(f),
2013
2031
  reward: e.array(l),
2014
2032
  refereeReward: e.array(a).optional(),
2015
- criteria_progress: e.array(H),
2033
+ criteria_progress: e.array(k),
2016
2034
  status: e.string(),
2017
2035
  pf_referer: p.optional(),
2018
2036
  pf_referee: p.optional(),
2019
2037
  pf_refereeReward: e.array(r).optional()
2020
- }).describe(o.describe(G));
2021
- V.pick({
2038
+ }).describe(o.describe(V));
2039
+ j.pick({
2022
2040
  _id: !0,
2023
2041
  business: !0,
2024
2042
  referer: !0,
@@ -2033,27 +2051,27 @@ V.pick({
2033
2051
  photoUrl: !0
2034
2052
  })
2035
2053
  });
2036
- const k = {
2054
+ const Y = {
2037
2055
  collectionName: "ReferralProgram",
2038
2056
  transform: {
2039
2057
  _id: "oid",
2040
2058
  business: "oid"
2041
2059
  }
2042
- }, f = e.object({
2060
+ }, _ = e.object({
2043
2061
  _id: a,
2044
2062
  business: a,
2045
2063
  term_and_condition: e.string().optional(),
2046
2064
  refereeReward: e.array(a).optional(),
2047
2065
  reward: e.array(l),
2048
- criteria: e.array(u)
2049
- }).describe(o.describe(k));
2066
+ criteria: e.array(f)
2067
+ }).describe(o.describe(Y));
2050
2068
  e.object({
2051
2069
  referer: a,
2052
2070
  referee: a,
2053
2071
  business: a
2054
2072
  });
2055
2073
  e.object({
2056
- program: f.pick({
2074
+ program: _.pick({
2057
2075
  _id: !0,
2058
2076
  business: !0,
2059
2077
  term_and_condition: !0
@@ -2070,13 +2088,13 @@ e.object({
2070
2088
  photoUrl: !0
2071
2089
  }).optional()
2072
2090
  });
2073
- f.extend({
2091
+ _.extend({
2074
2092
  updateReferralRecord: e.boolean().optional()
2075
2093
  });
2076
2094
  export {
2077
- I as F,
2078
- Q as T,
2079
- B as a,
2080
- u as b,
2095
+ L as F,
2096
+ z as T,
2097
+ H as a,
2098
+ f as b,
2081
2099
  l as c
2082
2100
  };
@@ -1,5 +1,5 @@
1
- import { z as b, F as On, m as Zv } from "./loading-DasBRvHo.js";
2
- import { F as Lt, a as $f } from "./collectible.enum-Dnn_Aj65.js";
1
+ import { z as b, F as On, m as Zv } from "./loading-C-HOw2p9.js";
2
+ import { F as Lt, a as $f } from "./collectible.enum-CzUCHExj.js";
3
3
  import { c as Hr, g as Vv } from "./_commonjsHelpers-BkfeUUK-.js";
4
4
  //! moment.js
5
5
  //! version : 2.30.1
@@ -8106,7 +8106,7 @@ function print() { __p += __j.call(arguments, '') }
8106
8106
  }).call(Hr);
8107
8107
  })(fs, fs.exports);
8108
8108
  var VE = fs.exports;
8109
- const mD = /* @__PURE__ */ Vv(VE), qE = Object.getOwnPropertyNames(Kf.prototype).filter(
8109
+ const gD = /* @__PURE__ */ Vv(VE), qE = Object.getOwnPropertyNames(Kf.prototype).filter(
8110
8110
  (t) => typeof Kf.prototype[t] == "function"
8111
8111
  );
8112
8112
  b.enum(qE);
@@ -8581,14 +8581,14 @@ const JE = b.enum([
8581
8581
  // triggers: ['GAME_COMPLETED'],
8582
8582
  // },
8583
8583
  ];
8584
- function gD(t, n) {
8584
+ function _D(t, n) {
8585
8585
  return XE.filter(
8586
8586
  (i) => i.triggers.findIndex(
8587
8587
  (a) => a === t && (!n || i.property.startsWith(n))
8588
8588
  ) >= 0
8589
8589
  ).sort((i, a) => !i.premium && a.premium ? -1 : i.premium && !a.premium ? 1 : i.name.length < a.name.length ? -1 : i.name.length > a.name.length ? 1 : i.name.toLowerCase() < a.name.toLowerCase() ? -1 : i.name.toLowerCase() > a.name.toLowerCase() ? 1 : 0);
8590
8590
  }
8591
- const QE = b.enum(["timeframe"]), _D = b.object({
8591
+ const QE = b.enum(["timeframe"]), vD = b.object({
8592
8592
  type: b.literal(QE.enum.timeframe),
8593
8593
  property: b.string().optional(),
8594
8594
  start: b.date({ coerce: !0 }).nullish(),
@@ -8686,7 +8686,7 @@ const Fu = b.enum(["FIXED", "PROPORTIONAL"]), eD = b.array(b.string()).nullish()
8686
8686
  every: b.number(),
8687
8687
  amount: b.number(),
8688
8688
  property: eD
8689
- }), vD = b.discriminatedUnion("type", [
8689
+ }), wD = b.discriminatedUnion("type", [
8690
8690
  tD,
8691
8691
  nD
8692
8692
  ]).superRefine((t, n) => {
@@ -8726,7 +8726,7 @@ const Fu = b.enum(["FIXED", "PROPORTIONAL"]), eD = b.array(b.string()).nullish()
8726
8726
  message: 'Valid days cannot exceed 99999, toggle "expires" to off for unlimited',
8727
8727
  path: []
8728
8728
  });
8729
- }), wD = ni.superRefine(
8729
+ }), bD = ni.superRefine(
8730
8730
  (t, n) => {
8731
8731
  ["validForDay", "validBefore"].every((a) => t[a] == null) && n.addIssue({
8732
8732
  code: "custom",
@@ -8748,7 +8748,7 @@ const Fu = b.enum(["FIXED", "PROPORTIONAL"]), eD = b.array(b.string()).nullish()
8748
8748
  cooldown: b.number().min(0).nullish(),
8749
8749
  maxUse: b.number().min(1).max(1e4).nullish(),
8750
8750
  consumeRule: qh.nullish()
8751
- }), bD = Bu.extend({
8751
+ }), ED = Bu.extend({
8752
8752
  validityOption: ni
8753
8753
  }), rD = {
8754
8754
  collectionName: "CollectibleConfigs",
@@ -8832,24 +8832,29 @@ const Fu = b.enum(["FIXED", "PROPORTIONAL"]), eD = b.array(b.string()).nullish()
8832
8832
  fD,
8833
8833
  hD,
8834
8834
  cD
8835
- ]), ED = b.object({ _id: On }).and(Xh).describe(Zv.describe(rD)), DD = b.object({ _id: On.nullish(), business: On.nullish() }).and(Xh);
8835
+ ]), dD = b.object({ _id: On }).and(Xh).describe(Zv.describe(rD)), DD = b.object({ _id: On.nullish(), business: On.nullish() }).and(Xh);
8836
+ dD.and(
8837
+ b.object({
8838
+ updateCollection: b.boolean().optional()
8839
+ })
8840
+ );
8836
8841
  export {
8837
8842
  jE as C,
8838
8843
  DD as F,
8839
8844
  Kf as R,
8840
- mD as _,
8845
+ gD as _,
8841
8846
  XE as a,
8842
- gD as b,
8847
+ _D as b,
8843
8848
  qh as c,
8844
8849
  Zh as d,
8845
- vD as e,
8846
- wD as f,
8850
+ wD as e,
8851
+ bD as f,
8847
8852
  ni as g,
8848
8853
  O as h,
8849
8854
  Hu as i,
8850
8855
  Bu as j,
8851
- bD as k,
8856
+ ED as k,
8852
8857
  VE as l,
8853
- ED as m,
8854
- _D as n
8858
+ dD as m,
8859
+ vD as n
8855
8860
  };
@@ -1,4 +1,4 @@
1
- import { g as a, S as n, b as o } from "./index-DP6beo56.js";
1
+ import { g as a, S as n, b as o } from "./index-7SYnV8B2.js";
2
2
  const t = () => {
3
3
  const e = n.getBusinessId();
4
4
  if (!e) throw new Error("Invalid business ID");
@@ -1,6 +1,6 @@
1
- import { F as o, e as t, g as a } from "./index-TyHupXxP.js";
2
- import { z as e, F as i, m as d } from "./loading-DasBRvHo.js";
3
- import { F as c } from "./collectible.enum-Dnn_Aj65.js";
1
+ import { F as o, e as t, g as a } from "./index-CKSGfZ62.js";
2
+ import { z as e, F as i, m as d } from "./loading-C-HOw2p9.js";
3
+ import { F as c } from "./collectible.enum-CzUCHExj.js";
4
4
  const l = e.enum(["VOUCHER", "LOYALTY"]), n = e.object({
5
5
  type: e.literal(l.enum.VOUCHER),
6
6
  collectible: i,
@@ -1,4 +1,4 @@
1
- import { g as n, S as I, u as C, b as _ } from "./index-DP6beo56.js";
1
+ import { g as n, S as I, u as C, b as _ } from "./index-7SYnV8B2.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 { g as r, a as n, S as o, b as c } from "./index-DP6beo56.js";
1
+ import { g as r, a as n, S as o, b as c } from "./index-7SYnV8B2.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 { g as s, S as o, b as i } from "./index-DP6beo56.js";
1
+ import { g as s, S as o, b as i } from "./index-7SYnV8B2.js";
2
2
  const a = () => {
3
3
  const r = o.getBusinessId();
4
4
  if (!r) throw new Error("Invalid business ID");
@@ -1,11 +1,11 @@
1
- import { g as t, S as c, b as u } from "./index-DP6beo56.js";
1
+ import { g as t, S as c, b as u } from "./index-7SYnV8B2.js";
2
2
  const a = () => {
3
3
  const e = c.getBusinessId();
4
4
  if (!e) throw new Error("Invalid business ID");
5
5
  return u(`businesses/${e}/membership`, {
6
6
  noIdRequired: !0
7
7
  });
8
- }, o = {
8
+ }, d = {
9
9
  async read() {
10
10
  return t(await a().get(""));
11
11
  },
@@ -46,10 +46,14 @@ const a = () => {
46
46
  );
47
47
  },
48
48
  async sendBundle(e) {
49
- return t(await a().post("store/bundle/send", e));
49
+ return t(
50
+ await a().post("store/bundle/send", e)
51
+ );
50
52
  },
51
53
  async refundStoreTransaction(e) {
52
- return t(await a().post("store/refund", e));
54
+ return t(
55
+ await a().post("store/refund", e)
56
+ );
53
57
  },
54
58
  async readRewards() {
55
59
  return t(await a().get("rewards"));
@@ -101,6 +105,9 @@ const a = () => {
101
105
  async deleteReward(e) {
102
106
  return t(await a().delete(`rewards/${e}`));
103
107
  },
108
+ async getEmailAddresses() {
109
+ return t(await a().get("email-addresses"));
110
+ },
104
111
  async readCollectionCountByMemberId(e, r) {
105
112
  return t(
106
113
  await a().get(`/collections/count/${e}`, {
@@ -128,5 +135,5 @@ const a = () => {
128
135
  }
129
136
  };
130
137
  export {
131
- o as m
138
+ d as m
132
139
  };