@feedmepos/mf-connect 0.1.37-prod → 0.1.38-beta.2

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 (116) hide show
  1. package/dist/Analytic-BjSfI2Ff.js +761 -0
  2. package/dist/{App-Bpo0XZSs.js → App-D11A2JY1.js} +364 -352
  3. package/dist/AuditLogs-DWCFYoRg.js +1887 -0
  4. package/dist/{Bin-ohZ2CZZR.js → Bin-9wV4Ah3M.js} +8 -8
  5. package/dist/{Broadcast-D5x0_-zC.js → Broadcast-I3BtSk8V.js} +40 -40
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CYb38NXA.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-XJqTXbKr.js} +18 -18
  7. package/dist/{Card-BM-Lrm5y.js → Card-CqALG5RM.js} +159 -159
  8. package/dist/{Collections-Cr4aoJer.js → Collections-rg3SzoUb.js} +103 -91
  9. package/dist/{Credit-DzDVFv4H.js → Credit-BNn1sYZv.js} +74 -74
  10. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js +58 -0
  11. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bs8o9n1V.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-PJ8q72XH.js} +491 -488
  12. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-koqrPPqM.js → EffectSheet.vue_vue_type_style_index_0_lang-Sww7KNle.js} +91 -89
  13. package/dist/{Experience-CjaDdbvZ.js → Experience-D_Qm8SUj.js} +41 -41
  14. package/dist/{FilterChip.vue_vue_type_script_setup_true_lang-BrPLkFX8.js → FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js} +2 -6
  15. package/dist/{Game-BuiTygow.js → Game-CKXgXm6Q.js} +31 -31
  16. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js +144 -0
  17. package/dist/{Index-CQGzUU-w.js → Index-D4DGfUHd.js} +10 -10
  18. package/dist/Marketing-Dn9A1vgH.js +20073 -0
  19. package/dist/Member-B55vWHDd.js +279 -0
  20. package/dist/MemberList-BWTG9Ohy.js +1606 -0
  21. package/dist/MemberOverview-wL_ailso.js +58 -0
  22. package/dist/{MemberTransactions-DzG1fY0c.js → MemberTransactions-CP5EI-W0.js} +1 -1
  23. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-D--_An-f.js +60279 -0
  24. package/dist/{Mission-BtypT2uF.js → Mission-CFvhROuB.js} +21 -21
  25. package/dist/{Overview-Be7bUtRO.js → Overview-4273yNwL.js} +335 -335
  26. package/dist/{Point-Bw4lnLqp.js → Point-B_-_C919.js} +41 -41
  27. package/dist/Promotion-D2S3COxk.js +289 -0
  28. package/dist/{Queue-CpPEVgn8.js → Queue-BmS1Oi-C.js} +52 -52
  29. package/dist/{Record-DQq4P69i.js → Record-DRBl0M8g.js} +9 -9
  30. package/dist/{Reward-DJH0eM8u.js → Reward-8056NmfK.js} +173 -173
  31. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-_kw_PR0h.js → RewardGroup.vue_vue_type_script_setup_true_lang-CJ_WC2gV.js} +11 -11
  32. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CRGep1RK.js → RuleGroup.vue_vue_type_script_setup_true_lang-DqNQl_nz.js} +635 -548
  33. package/dist/Segment-Bzq-pyhc.js +882 -0
  34. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-Dx6Ew9Z_.js → SelectItems.vue_vue_type_script_setup_true_lang-4nNkkklE.js} +2 -2
  35. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-B60_8Toi.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-Dnf2oxOG.js} +11 -11
  36. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BCaJ3xKT.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BLYP-5U9.js} +3 -3
  37. package/dist/{Setting-GRIUo7vg.js → Setting-BrJfYoru.js} +432 -432
  38. package/dist/{Store-H0UDQpln.js → Store-Bpl_4yZW.js} +211 -211
  39. package/dist/StoreRewards-Cu7n7Pjz.js +423 -0
  40. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-T3Wo2maC.js +1029 -0
  41. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-D-jL1oGS.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-QucRaI08.js} +1 -1
  42. package/dist/{Tier-CJufQcIz.js → Tier-_LnXg3n6.js} +106 -106
  43. package/dist/{Title-BBMgGUld.js → Title-B7AGStvx.js} +133 -131
  44. package/dist/{Transaction-DsucPnfp.js → Transaction-Chxv6V7u.js} +2 -2
  45. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CwOcZEQX.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CzXNmobp.js} +6 -6
  46. package/dist/{Voucher-BPvxKO_w.js → Voucher-C5z2kOq9.js} +153 -123
  47. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DdGMrk2C.js +419 -0
  48. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DMs4XKXM.js → ZodTextField.vue_vue_type_script_setup_true_lang-BlXzEWA6.js} +1 -1
  49. package/dist/{app-D3MT1deX.js → app-7cvPyHJ7.js} +164 -125
  50. package/dist/{app-Bo0JpadQ.js → app-BVojNX0w.js} +1 -1
  51. package/dist/app.js +4 -3
  52. package/dist/business-CmxV69wT.js +79 -0
  53. package/dist/{campaign-Z3l7BoMg.js → campaign-CT_cNJEL.js} +9 -9
  54. package/dist/{campaign-j1c3ou7l.js → campaign-Dq5C_no-.js} +5 -3
  55. package/dist/{campaign.enum-CVXPc5Pd.js → campaign.enum-dp7yHKzF.js} +1 -1
  56. package/dist/campaign.fn-BYZgKDN7.js +758 -0
  57. package/dist/{collectible.enum-CDSikBAy.js → collectible.enum-DxbB4DxT.js} +1 -1
  58. package/dist/{collection.fn-Bz38mGMa.js → collection.fn-CNZRdUgy.js} +2 -2
  59. package/dist/{dto-D648NN4s.js → dto-CT9zZbv9.js} +4 -4
  60. package/dist/{effect-DbMAmVSR.js → effect-FIlOEC4H.js} +1 -1
  61. package/dist/{email-addresses-KOVDrRiK.js → email-addresses-Ba7xImfX.js} +1 -1
  62. package/dist/{export-cTZf8Avd.js → export-uzjZFNF9.js} +3 -3
  63. package/dist/{helper-BYyfcLqw.js → helper-D4sAZde0.js} +1 -1
  64. package/dist/{index-BIaCtk8e.js → index-B9pl4zRZ.js} +192 -79
  65. package/dist/{index-B4MqsaBz.js → index-BI3m1Ehv.js} +3 -3
  66. package/dist/{index-E-0tTd0_.js → index-BXz54M1s.js} +1 -1
  67. package/dist/{index-BMl2KZts.js → index-BjU8LVUC.js} +11447 -10969
  68. package/dist/index-CH3z92VV.js +31 -0
  69. package/dist/{index-BTb8I_eB.js → index-CNJLP3D5.js} +1 -1
  70. package/dist/{index-BrKXRxe_.js → index-CONvJfKv.js} +1 -1
  71. package/dist/index-CS3Jmojj.js +32260 -0
  72. package/dist/{index-CTPMbFf5.js → index-CUfS9Kp1.js} +10 -9
  73. package/dist/index-CsaQJMAR.js +66 -0
  74. package/dist/{index-nF9iYTlh.js → index-CvBcve-r.js} +1 -1
  75. package/dist/index-CwsMG2cV.js +56 -0
  76. package/dist/{index-B3p0hmIV.js → index-D5rvMvzx.js} +1 -1
  77. package/dist/{index-CvoShC5J.js → index-DNxa8Rqx.js} +536 -461
  78. package/dist/{index-DPBHiqsJ.js → index-l2F5MnLF.js} +1 -1
  79. package/dist/{index.esm2017-DFYwde30.js → index.esm2017-ATcsD5N4.js} +127 -127
  80. package/dist/{loading-vUArhX_O.js → loading-BWGQSrCB.js} +1 -1
  81. package/dist/{membership-BHKv29yt.js → membership-Cc4OZ8-U.js} +3 -3
  82. package/dist/{money-Bl3_QRkE.js → money-D7p8nfun.js} +1 -1
  83. package/dist/{number-hh_S9w7k.js → number-CMJjC4qz.js} +1 -1
  84. package/dist/objectid-D5T27iny.js +145 -0
  85. package/dist/{plugins-CVes2wzE.js → plugins-eQis66QR.js} +2 -2
  86. package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
  87. package/dist/{reward-ANZOdWzf.js → reward-DrnzbG20.js} +1 -1
  88. package/dist/{rule-BvFk5bQg.js → rule-CtRxkYXB.js} +3 -3
  89. package/dist/{rule-builder-BSN777PN.js → rule-builder-Di9RIYHF.js} +17 -17
  90. package/dist/style.css +1 -1
  91. package/dist/{template-Dh9lDLs_.js → template-C3UfY0v5.js} +64 -64
  92. package/dist/{trigger-C7THbt7R.js → trigger-C9U7Zgad.js} +7 -7
  93. package/dist/{usePagination-JoYaROkV.js → usePagination-BeF5K3M7.js} +85 -85
  94. package/dist/{user-DtNR9JY2.js → user-D7n9yYmO.js} +1 -1
  95. package/dist/{vue-i18n-BWyHnm4m.js → vue-i18n-Bz45zC04.js} +387 -387
  96. package/dist/{xlsx-7u9SB0oa.js → xlsx-D4S4qbcZ.js} +226 -226
  97. package/package.json +9 -3
  98. package/dist/Analytic-CavR2bzs.js +0 -427
  99. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js +0 -144
  100. package/dist/Marketing-BSspYuhg.js +0 -319
  101. package/dist/Member-B4S0UNGq.js +0 -287
  102. package/dist/MemberList-CfnUJ3mh.js +0 -1606
  103. package/dist/MemberOverview-C2n9oJZh.js +0 -58
  104. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-hZUWLTWj.js +0 -455
  105. package/dist/Promotion-Bg6x0rAh.js +0 -255
  106. package/dist/Segment-BLB4VWNJ.js +0 -882
  107. package/dist/StoreRewards--TNIFaCo.js +0 -423
  108. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CfB8tA5l.js +0 -995
  109. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-Bg-9YqLP.js +0 -419
  110. package/dist/business-DMALI7ZO.js +0 -78
  111. package/dist/campaign.fn-rsRhHYZP.js +0 -758
  112. package/dist/index-BsCGyJMY.js +0 -29566
  113. package/dist/index-CuvNtC_M.js +0 -61
  114. package/dist/index-DFKmjCG1.js +0 -44
  115. package/dist/index-Dbd4WA4r.js +0 -61
  116. package/dist/objectid-CEyMlMge.js +0 -145
@@ -1,4 +1,4 @@
1
- import { z as e } from "./index-BsCGyJMY.js";
1
+ import { z as e } from "./index-CS3Jmojj.js";
2
2
  const E = e.enum([
3
3
  "VOUCHER",
4
4
  "CREDIT",
@@ -1,5 +1,5 @@
1
- import "./index-CTPMbFf5.js";
2
- import "./index-BsCGyJMY.js";
1
+ import "./index-CUfS9Kp1.js";
2
+ import "./index-CS3Jmojj.js";
3
3
  function r(e) {
4
4
  switch (e) {
5
5
  case "PROMOTION":
@@ -1,7 +1,7 @@
1
- import { F as i, z as t } from "./index-BsCGyJMY.js";
2
- import { z as y, a as r, A as h } from "./index-CvoShC5J.js";
3
- import { F as u } from "./index-CTPMbFf5.js";
4
- import { i as I, R as d } from "./rule-builder-BSN777PN.js";
1
+ import { F as i, z as t } from "./index-CS3Jmojj.js";
2
+ import { z as y, a as r, A as h } from "./index-DNxa8Rqx.js";
3
+ import { F as u } from "./index-CUfS9Kp1.js";
4
+ import { i as I, R as d } from "./rule-builder-Di9RIYHF.js";
5
5
  function N(a, e) {
6
6
  var c, l;
7
7
  if (!a) return;
@@ -1,4 +1,4 @@
1
- import { c as r } from "./index-BMl2KZts.js";
1
+ import { c as r } from "./index-BjU8LVUC.js";
2
2
  function m(e) {
3
3
  if (!e)
4
4
  return null;
@@ -1,7 +1,7 @@
1
1
  var ur = Object.defineProperty;
2
2
  var ir = (S, b, h) => b in S ? ur(S, b, { enumerable: !0, configurable: !0, writable: !0, value: h }) : S[b] = h;
3
3
  var pn = (S, b, h) => ir(S, typeof b != "symbol" ? b + "" : b, h);
4
- import { u as V } from "./xlsx-7u9SB0oa.js";
4
+ import { u as V } from "./xlsx-D4S4qbcZ.js";
5
5
  import { g as ar } from "./_commonjsHelpers-BkfeUUK-.js";
6
6
  class fr {
7
7
  constructor() {
@@ -1,10 +1,10 @@
1
1
  var g = Object.defineProperty;
2
2
  var b = (s, e, o) => e in s ? g(s, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : s[e] = o;
3
3
  var d = (s, e, o) => b(s, typeof e != "symbol" ? e + "" : e, o);
4
- import { u as a, w as f } from "./xlsx-7u9SB0oa.js";
5
- import { u as h } from "./loading-vUArhX_O.js";
4
+ import { u as a, w as f } from "./xlsx-D4S4qbcZ.js";
5
+ import { u as h } from "./loading-BWGQSrCB.js";
6
6
  import { h as x } from "./moment-BWErdI6_.js";
7
- import { m as w } from "./index-DPBHiqsJ.js";
7
+ import { m as w } from "./index-l2F5MnLF.js";
8
8
  class y {
9
9
  constructor() {
10
10
  d(this, "records", []);
@@ -1,4 +1,4 @@
1
- import { h as i } from "./index-CTPMbFf5.js";
1
+ import { o as i } from "./index-CUfS9Kp1.js";
2
2
  function o(t, e) {
3
3
  switch (t) {
4
4
  case "COIN":
@@ -1,10 +1,66 @@
1
- import { z as e, F as a, m as o } from "./index-BsCGyJMY.js";
2
- import { c as v } from "./index-CTPMbFf5.js";
3
- import { R as t } from "./rule-builder-BSN777PN.js";
4
- import { i } from "./helper-BYyfcLqw.js";
5
- import { E, G as O, H as I, I as p } from "./index-CvoShC5J.js";
6
- import { a as r } from "./index-B4MqsaBz.js";
7
- const z = {
1
+ import { z as e, F as n, m as o, a as v } from "./index-CS3Jmojj.js";
2
+ import { D as E, E as O, G as I, H as h, I as p } from "./index-DNxa8Rqx.js";
3
+ import { c as L } from "./index-CUfS9Kp1.js";
4
+ import { R as t } from "./rule-builder-Di9RIYHF.js";
5
+ import { i } from "./helper-D4sAZde0.js";
6
+ import { a as r } from "./index-BI3m1Ehv.js";
7
+ const T = {
8
+ collectionName: "AuditLogs",
9
+ transform: {
10
+ _id: "oid",
11
+ business: "oid",
12
+ timestamp: "date"
13
+ },
14
+ lookups: {
15
+ business: {
16
+ as: "pf_business",
17
+ fromCollection: "Businesses"
18
+ }
19
+ }
20
+ }, R = e.enum([
21
+ "GET",
22
+ "POST",
23
+ "PUT",
24
+ "PATCH",
25
+ "DELETE",
26
+ "OPTIONS",
27
+ "HEAD",
28
+ "ALL"
29
+ ]), C = e.enum([
30
+ "CAMPAIGN",
31
+ "LOCATION",
32
+ "MARKETING MATERIALS",
33
+ "MEMBERSHIP",
34
+ "STORE",
35
+ "TRANSACTION",
36
+ "SETTINGS",
37
+ "SEGMENTATION",
38
+ "USER"
39
+ ]), S = e.object({
40
+ httpMethod: R,
41
+ url: e.string().min(1),
42
+ userAgent: e.string(),
43
+ host: e.string().min(1),
44
+ params: e.object({}).passthrough().nullish(),
45
+ query: e.object({}).passthrough().nullish(),
46
+ body: e.object({}).passthrough().nullish()
47
+ }), x = e.object({
48
+ statusCode: e.number().int().min(100).max(599),
49
+ body: e.object({}).passthrough().nullish()
50
+ });
51
+ e.object({
52
+ _id: n,
53
+ user: e.string().length(28),
54
+ userName: e.string().min(1),
55
+ userPhoneNumber: e.string().refine((a) => E(a)).nullish(),
56
+ moduleType: C,
57
+ business: n.nullish(),
58
+ clientIp: e.string().nullish(),
59
+ timestamp: e.string().datetime(),
60
+ request: S,
61
+ response: x
62
+ }).describe(o.describe(T));
63
+ const pe = {
8
64
  PROMOTION: {
9
65
  name: "Promotion Template",
10
66
  description: "Promotion template for campaign creation.",
@@ -1638,6 +1694,19 @@ t.setRuleToGroup(t.scaffoldGroup(), [
1638
1694
  ({
1639
1695
  ...t.scaffoldGroup()
1640
1696
  });
1697
+ t.setRuleToGroup(t.scaffoldGroup(), [
1698
+ t.setRuleToGroup(
1699
+ t.scaffoldGroup("g_user"),
1700
+ [
1701
+ t.constructEntry("user.birthday", "_isRange", {
1702
+ op: "this",
1703
+ unit: "month",
1704
+ ignoreYear: !0
1705
+ })
1706
+ ],
1707
+ "&&"
1708
+ )
1709
+ ]);
1641
1710
  ({
1642
1711
  ...t.scaffoldGroup()
1643
1712
  });
@@ -1748,7 +1817,7 @@ t.setRuleToGroup(t.scaffoldGroup(), [
1748
1817
  ({
1749
1818
  ...t.scaffoldGroup()
1750
1819
  });
1751
- const L = e.enum([
1820
+ const D = e.enum([
1752
1821
  "MEMBER_REWARD",
1753
1822
  "PAID_LOYALTY",
1754
1823
  "COLLECT_FEEDBACK",
@@ -1758,7 +1827,7 @@ const L = e.enum([
1758
1827
  "BROADCAST",
1759
1828
  "BIRTHDAY",
1760
1829
  "GAME"
1761
- ]), h = e.enum([
1830
+ ]), A = e.enum([
1762
1831
  "text",
1763
1832
  "number",
1764
1833
  "textarea",
@@ -1785,71 +1854,77 @@ const L = e.enum([
1785
1854
  "rule_feedback",
1786
1855
  "rule_birthday",
1787
1856
  "promotion_game_type"
1788
- ]), R = e.object({
1857
+ ]), M = e.object({
1789
1858
  label: e.string().optional(),
1790
1859
  property: e.string().or(e.any()),
1791
- type: h,
1860
+ type: A,
1792
1861
  extras: e.string().optional(),
1793
1862
  isRuleChildren: e.boolean().optional()
1794
- }), x = e.object({
1863
+ }), N = e.object({
1795
1864
  name: e.string().optional(),
1796
- fields: e.array(R),
1865
+ fields: e.array(M),
1797
1866
  condition: e.object({
1798
1867
  not: e.boolean().optional(),
1799
1868
  property: e.string(),
1800
1869
  value: e.any()
1801
1870
  }).optional()
1802
- }), C = e.object({
1871
+ }), w = e.object({
1803
1872
  name: e.string(),
1804
- groups: e.array(x)
1873
+ groups: e.array(N)
1805
1874
  });
1806
1875
  e.object({
1807
- _id: a,
1876
+ _id: n,
1808
1877
  name: e.string(),
1809
1878
  description: e.string().nullish(),
1810
- steps: e.array(C).min(1),
1811
- intention: e.array(L),
1879
+ steps: e.array(w).min(1),
1880
+ intention: e.array(D),
1812
1881
  defaultValue: e.any()
1813
1882
  }).describe(JSON.stringify({ collectionName: "MarketingTemplates" }));
1814
- const T = {
1883
+ const U = {
1815
1884
  collectionName: "Businesses",
1816
1885
  transform: {
1817
1886
  _id: "oid"
1818
1887
  }
1819
1888
  };
1820
1889
  e.object({
1821
- _id: a,
1890
+ _id: n,
1822
1891
  ownerId: e.string(),
1823
1892
  name: e.string(),
1824
1893
  credit: e.number(),
1825
1894
  forceSend: e.boolean().optional()
1826
- }).describe(o.describe(T));
1827
- const m = e.enum(["PHONE"]), D = e.enum(["MOCEAN", "SLACK", "SMS", "EMAIL"]), S = e.enum(["PENDING", "COMPLETED", "FAILED"]), M = e.enum([
1895
+ }).describe(o.describe(U));
1896
+ const m = e.enum(["PHONE"]), F = e.enum([
1897
+ "MOCEAN",
1898
+ "SLACK",
1899
+ "SMS",
1900
+ "EMAIL",
1901
+ "WHATSAPP"
1902
+ ]), P = e.enum(["PENDING", "COMPLETED", "FAILED"]), G = e.enum([
1828
1903
  "General",
1829
1904
  "Otp",
1830
1905
  "Marketing",
1831
1906
  "Ordering",
1832
1907
  "MemberInvitation"
1833
- ]), A = e.object({
1908
+ ]), B = e.object({
1834
1909
  type: m
1835
- }), s = A.extend({
1910
+ }), s = B.extend({
1836
1911
  type: e.literal(m.enum.PHONE),
1837
- provider: D,
1838
- usage: M.optional()
1839
- }), w = {
1912
+ provider: F,
1913
+ usage: G.optional()
1914
+ }), H = {
1840
1915
  collectionName: "Notifications",
1841
1916
  transform: { _id: "oid", business: "oid" }
1842
1917
  };
1843
1918
  e.object({
1844
- _id: a,
1845
- business: a,
1919
+ _id: n,
1920
+ business: n,
1846
1921
  target: e.string(),
1847
1922
  title: e.string().optional(),
1848
1923
  message: e.string(),
1849
1924
  option: s,
1850
- status: S,
1925
+ status: P,
1851
1926
  ref: e.string().optional()
1852
- }).describe(o.describe(w));
1927
+ }).describe(o.describe(H));
1853
1928
  e.object({
1854
1929
  target: e.string(),
1855
1930
  title: e.string().optional(),
@@ -1864,7 +1939,7 @@ e.object({
1864
1939
  const c = e.object({
1865
1940
  name: e.string().optional(),
1866
1941
  address: e.string()
1867
- }), N = e.object({
1942
+ }), V = e.object({
1868
1943
  filename: e.string(),
1869
1944
  content: e.instanceof(Uint8Array)
1870
1945
  });
@@ -1873,12 +1948,17 @@ e.object({
1873
1948
  to: e.array(c),
1874
1949
  subject: e.string(),
1875
1950
  html: e.string().optional(),
1876
- attachments: e.array(N).optional()
1951
+ attachments: e.array(V).optional()
1877
1952
  });
1878
1953
  e.object({
1879
1954
  subject: e.string(),
1880
1955
  body: e.string()
1881
1956
  });
1957
+ e.object({
1958
+ target: e.string(),
1959
+ message: e.string(),
1960
+ attachment: e.string().optional()
1961
+ });
1882
1962
  e.enum(["send_notification", "TRIGGER_EVENT"]);
1883
1963
  e.enum([
1884
1964
  "campaign.general",
@@ -1906,15 +1986,25 @@ e.object({
1906
1986
  claimIds: e.array(e.string()),
1907
1987
  billId: e.string()
1908
1988
  });
1909
- var g = /* @__PURE__ */ ((n) => (n[n.feedMe = 0] = "feedMe", n[n.business = 1] = "business", n[n.restaurant = 2] = "restaurant", n))(g || {});
1989
+ e.object({
1990
+ amount: v,
1991
+ member: e.string(),
1992
+ bill: e.string(),
1993
+ otp: e.string().nullish(),
1994
+ businessId: e.string()
1995
+ });
1996
+ e.object({
1997
+ orderId: e.string()
1998
+ });
1999
+ var g = /* @__PURE__ */ ((a) => (a[a.feedMe = 0] = "feedMe", a[a.business = 1] = "business", a[a.restaurant = 2] = "restaurant", a))(g || {});
1910
2000
  e.nativeEnum(g);
1911
2001
  e.enum(["manage", "create", "read", "update", "delete"]);
1912
2002
  e.enum(["all", "restaurant", "business", "delivery", "agent"]);
1913
2003
  e.enum(["quota"]);
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 || {});
2004
+ 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 || {});
1915
2005
  e.nativeEnum(d);
1916
2006
  e.enum(["restaurant"]);
1917
- const U = e.object({
2007
+ const k = e.object({
1918
2008
  label: e.string(),
1919
2009
  subject: e.union([e.string(), e.array(e.string())]),
1920
2010
  actions: e.union([e.string(), e.array(e.string())]),
@@ -1924,12 +2014,12 @@ const U = e.object({
1924
2014
  reason: e.string().optional()
1925
2015
  });
1926
2016
  e.object({
1927
- _id: a,
2017
+ _id: n,
1928
2018
  businessId: e.string(),
1929
2019
  userId: e.string(),
1930
2020
  email: e.string().nullish(),
1931
2021
  phoneNo: e.string().nullish(),
1932
- permissions: e.array(e.lazy(() => U))
2022
+ permissions: e.array(e.lazy(() => k))
1933
2023
  }).describe(
1934
2024
  o.describe({
1935
2025
  collectionName: "PermissionUsers",
@@ -1944,14 +2034,14 @@ const y = e.object({
1944
2034
  role: e.string().optional(),
1945
2035
  businessId: e.string().optional(),
1946
2036
  restaurantId: e.string().optional()
1947
- }), F = e.function().args(e.any(), y).returns(e.boolean()), P = e.function().args(y).returns(e.promise(e.array(e.any())));
2037
+ }), j = e.function().args(e.any(), y).returns(e.boolean()), Y = e.function().args(y).returns(e.promise(e.array(e.any())));
1948
2038
  e.object({
1949
- isAdmin: F,
1950
- getRules: P
2039
+ isAdmin: j,
2040
+ getRules: Y
1951
2041
  });
1952
2042
  e.object({
1953
- transactions: e.array(E),
1954
- collections: e.array(O)
2043
+ transactions: e.array(O),
2044
+ collections: e.array(I)
1955
2045
  });
1956
2046
  const u = e.enum([
1957
2047
  "ROCK_PAPER_SCISSOR"
@@ -1985,31 +2075,52 @@ e.object({
1985
2075
  phone: e.string().optional(),
1986
2076
  email: e.string().optional()
1987
2077
  });
1988
- const B = e.enum(["AUTO", "MANUAL"]);
2078
+ const K = e.enum([
2079
+ "PENDING",
2080
+ "SUCCESS",
2081
+ "FAILED",
2082
+ "RETRYING"
2083
+ ]), W = {
2084
+ collectionName: "WebhookLogs",
2085
+ transform: {
2086
+ _id: "oid",
2087
+ business: "oid"
2088
+ }
2089
+ };
2090
+ e.object({
2091
+ _id: n,
2092
+ business: n,
2093
+ type: e.string(),
2094
+ payload: e.record(e.any()),
2095
+ status: K,
2096
+ response: e.any().optional(),
2097
+ error: e.string().optional()
2098
+ }).describe(o.describe(W));
2099
+ const X = e.enum(["AUTO", "MANUAL"]);
1989
2100
  e.enum(["IN_PROGRESS", "COMPLETED"]);
1990
2101
  const f = e.object({
1991
- _id: a,
2102
+ _id: n,
1992
2103
  name: e.string().min(1, "Name is required").max(50),
1993
- type: B,
1994
- event: I.optional()
1995
- }), G = e.object({
2104
+ type: X,
2105
+ event: h.optional()
2106
+ }), q = e.object({
1996
2107
  from: e.number().int("Must be integer").min(1, "Min referral count need to start from 1"),
1997
2108
  to: e.number().int("Must be integer").nullish()
1998
- }).superRefine((n, b) => {
1999
- n.from && n.to && n.from > n.to && b.addIssue({
2109
+ }).superRefine((a, b) => {
2110
+ a.from && a.to && a.from > a.to && b.addIssue({
2000
2111
  code: "custom",
2001
2112
  message: "Max referral count must be more than min referral count"
2002
2113
  });
2003
- }), H = e.object({
2004
- threshold: G,
2005
- rewards: e.array(a),
2114
+ }), Q = e.object({
2115
+ threshold: q,
2116
+ rewards: e.array(n),
2006
2117
  pf_reward: e.array(r).optional()
2007
2118
  }), l = e.object({
2008
2119
  id: e.string(),
2009
2120
  name: e.string().min(1, "Name is required").max(50, "Name must be less than 50 characters"),
2010
- rule: v.optional(),
2011
- rewards: e.array(H)
2012
- }), V = {
2121
+ rule: L.optional(),
2122
+ rewards: e.array(Q)
2123
+ }), J = {
2013
2124
  collectionName: "ReferralRecords",
2014
2125
  transform: {
2015
2126
  _id: "oid",
@@ -2018,25 +2129,25 @@ const f = e.object({
2018
2129
  referee: "oid",
2019
2130
  refereeReward: "oid"
2020
2131
  }
2021
- }, k = e.object({
2132
+ }, z = e.object({
2022
2133
  completedAt: e.coerce.date(),
2023
- criteria: a,
2134
+ criteria: n,
2024
2135
  ref: e.string()
2025
- }), j = e.object({
2026
- _id: a,
2027
- business: a,
2028
- referer: a,
2029
- referee: a,
2136
+ }), Z = e.object({
2137
+ _id: n,
2138
+ business: n,
2139
+ referer: n,
2140
+ referee: n,
2030
2141
  criteria: e.array(f),
2031
2142
  reward: e.array(l),
2032
- refereeReward: e.array(a).optional(),
2033
- criteria_progress: e.array(k),
2143
+ refereeReward: e.array(n).optional(),
2144
+ criteria_progress: e.array(z),
2034
2145
  status: e.string(),
2035
2146
  pf_referer: p.optional(),
2036
2147
  pf_referee: p.optional(),
2037
2148
  pf_refereeReward: e.array(r).optional()
2038
- }).describe(o.describe(V));
2039
- j.pick({
2149
+ }).describe(o.describe(J));
2150
+ Z.pick({
2040
2151
  _id: !0,
2041
2152
  business: !0,
2042
2153
  referer: !0,
@@ -2051,24 +2162,24 @@ j.pick({
2051
2162
  photoUrl: !0
2052
2163
  })
2053
2164
  });
2054
- const Y = {
2165
+ const $ = {
2055
2166
  collectionName: "ReferralProgram",
2056
2167
  transform: {
2057
2168
  _id: "oid",
2058
2169
  business: "oid"
2059
2170
  }
2060
2171
  }, _ = e.object({
2061
- _id: a,
2062
- business: a,
2172
+ _id: n,
2173
+ business: n,
2063
2174
  term_and_condition: e.string().optional(),
2064
- refereeReward: e.array(a).optional(),
2175
+ refereeReward: e.array(n).optional(),
2065
2176
  reward: e.array(l),
2066
2177
  criteria: e.array(f)
2067
- }).describe(o.describe(Y));
2178
+ }).describe(o.describe($));
2068
2179
  e.object({
2069
- referer: a,
2070
- referee: a,
2071
- business: a
2180
+ referer: n,
2181
+ referee: n,
2182
+ business: n
2072
2183
  });
2073
2184
  e.object({
2074
2185
  program: _.pick({
@@ -2092,9 +2203,11 @@ _.extend({
2092
2203
  updateReferralRecord: e.boolean().optional()
2093
2204
  });
2094
2205
  export {
2095
- L as F,
2096
- z as T,
2097
- H as a,
2206
+ D as F,
2207
+ pe as T,
2208
+ Q as a,
2098
2209
  f as b,
2099
- l as c
2210
+ l as c,
2211
+ R as d,
2212
+ C as e
2100
2213
  };
@@ -1,6 +1,6 @@
1
- import { F as o, e as t, g as a } from "./index-CTPMbFf5.js";
2
- import { z as e, F as i, m as d } from "./index-BsCGyJMY.js";
3
- import { F as c } from "./collectible.enum-CDSikBAy.js";
1
+ import { F as o, e as t, g as a } from "./index-CUfS9Kp1.js";
2
+ import { z as e, F as i, m as d } from "./index-CS3Jmojj.js";
3
+ import { F as c } from "./collectible.enum-DxbB4DxT.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 s, S as o, b as i } from "./index-BMl2KZts.js";
1
+ import { g as s, S as o, b as i } from "./index-BjU8LVUC.js";
2
2
  const a = () => {
3
3
  const r = o.getBusinessId();
4
4
  if (!r) throw new Error("Invalid business ID");