@feedmepos/mf-connect 0.1.38-beta.1 → 0.1.38-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 (108) hide show
  1. package/dist/Analytic-Dc1l0CZK.js +427 -0
  2. package/dist/{App-BWZ2EE71.js → App-BLg0CWv-.js} +352 -364
  3. package/dist/{Bin-C-Ha-4yF.js → Bin-DDbKIePj.js} +8 -8
  4. package/dist/{Broadcast-Bo3QS8lS.js → Broadcast-CihKie6G.js} +40 -40
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-4vUMzH-l.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DbdBGvgR.js} +18 -18
  6. package/dist/{Card-Bs1TDE0e.js → Card-h1dYFE_s.js} +159 -159
  7. package/dist/{Collections-Dy5RN7Js.js → Collections-DUXdnJqQ.js} +91 -103
  8. package/dist/{Credit-Bqc4dw1s.js → Credit-CsGEuX9p.js} +74 -74
  9. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-D6AmN3o3.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-0gMUNtdO.js} +488 -488
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BzwADnKp.js → EffectSheet.vue_vue_type_style_index_0_lang-CQDnl97F.js} +94 -94
  11. package/dist/{Experience-C2e2T7B-.js → Experience-CBbqYrql.js} +41 -41
  12. package/dist/{Game-C86eEhcx.js → Game-CicPpdT5.js} +31 -31
  13. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js +144 -0
  14. package/dist/{Index-BRGweFco.js → Index-Xgvlt4vk.js} +10 -10
  15. package/dist/Marketing-CqOAQgg4.js +319 -0
  16. package/dist/{Member-B3o0Zhcw.js → Member-D1k4ZQ95.js} +76 -76
  17. package/dist/MemberList-BdV9sxO_.js +1606 -0
  18. package/dist/MemberOverview-C2n9oJZh.js +58 -0
  19. package/dist/{MemberTransactions-C4hao-d9.js → MemberTransactions-Q0_4nT4e.js} +1 -1
  20. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-D9zfmqLs.js → MessageInput.vue_vue_type_script_setup_true_lang-COGCJGRc.js} +36 -36
  21. package/dist/{Mission-BURXfzjd.js → Mission-D-TW52zn.js} +21 -21
  22. package/dist/{Overview-D_hrrM4O.js → Overview-BleJmxHa.js} +335 -335
  23. package/dist/{Point-CJXkJY5Q.js → Point-B7BYX9us.js} +41 -41
  24. package/dist/{Promotion-CunJrh42.js → Promotion-BphlQC55.js} +42 -42
  25. package/dist/{Queue-v5Itg9J4.js → Queue-DJfZqO1f.js} +51 -51
  26. package/dist/{Record-DJe4tg9R.js → Record-Bv1P0s2g.js} +9 -9
  27. package/dist/{Reward-Y9aHpny5.js → Reward-CRyEjr47.js} +173 -173
  28. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-1KAjCblO.js → RewardGroup.vue_vue_type_script_setup_true_lang-Ckqox5Ut.js} +11 -11
  29. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-Cr99ikbK.js → RuleGroup.vue_vue_type_script_setup_true_lang-Dp4ku9ep.js} +431 -431
  30. package/dist/Segment-Br0Y5hzV.js +882 -0
  31. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-BhJ-oVMb.js → SelectItems.vue_vue_type_script_setup_true_lang-BuB-qwcM.js} +2 -2
  32. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-b5bjfBvc.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DanHGQXC.js} +11 -11
  33. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-DoKAgSLE.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BCKUXnGl.js} +3 -3
  34. package/dist/{Setting-BU5778gG.js → Setting-BPFArJMv.js} +432 -432
  35. package/dist/{Store-IWg0POAU.js → Store-e_odFoS5.js} +210 -210
  36. package/dist/StoreRewards-wXhyzIFI.js +423 -0
  37. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CVPQt-bn.js +995 -0
  38. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BcOvr526.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CWJmeeo-.js} +1 -1
  39. package/dist/{Tier-iN30KD7g.js → Tier-GfdGRbTX.js} +106 -106
  40. package/dist/{Title-Duh_Srek.js → Title-C2ZyFxNf.js} +131 -133
  41. package/dist/{Transaction-DLBA7Svl.js → Transaction-Dv8yYXJS.js} +2 -2
  42. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DLD5d43d.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CK_4iMCA.js} +6 -6
  43. package/dist/{Voucher-cTvlMN0Y.js → Voucher-CBujqgnF.js} +37 -37
  44. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-CgooH4yn.js +419 -0
  45. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-C5S-bi5J.js → ZodTextField.vue_vue_type_script_setup_true_lang-B8pgaARn.js} +1 -1
  46. package/dist/{app-De-yQ1CJ.js → app-B2Cgyy70.js} +124 -161
  47. package/dist/{app-A3oEKLq5.js → app-B8E3wp8L.js} +1 -1
  48. package/dist/app.js +3 -4
  49. package/dist/{business-B2JBpm4y.js → business-BRidHvRK.js} +1 -1
  50. package/dist/{campaign-vkzui6F2.js → campaign-B0vnIan2.js} +3 -5
  51. package/dist/{campaign-Bhur0NJx.js → campaign-B7v0a8YV.js} +9 -9
  52. package/dist/{campaign.enum-DCYkKGhd.js → campaign.enum-NH5faqyS.js} +1 -1
  53. package/dist/{campaign.fn--affTEi5.js → campaign.fn-BPHARk3Y.js} +161 -161
  54. package/dist/{collectible.enum-CLBCnfev.js → collectible.enum-Cun9w38h.js} +1 -1
  55. package/dist/{collection.fn-bA8q0KYy.js → collection.fn-RR5q6jqi.js} +2 -2
  56. package/dist/{dto-RCcWeYE0.js → dto-DK1VnGlq.js} +4 -4
  57. package/dist/{effect-D7qRfPe_.js → effect-CI4ZR8HW.js} +1 -1
  58. package/dist/{email-addresses-a8PqViID.js → email-addresses-bguwgnrW.js} +1 -1
  59. package/dist/{export-BneqNRn4.js → export-CcepocZB.js} +3 -3
  60. package/dist/{helper-DfvvxOyO.js → helper-BM1JTEFS.js} +1 -1
  61. package/dist/{index-CbsJ6vMJ.js → index-B0Slqiqo.js} +1 -1
  62. package/dist/{index-y-7yUm2e.js → index-B6_uPXyL.js} +9 -9
  63. package/dist/{index-CTKMdxSm.js → index-BS3AjuVw.js} +1 -1
  64. package/dist/{index-2LpkG8Ye.js → index-BfGdztHf.js} +1 -1
  65. package/dist/{index-D0GnMoag.js → index-CBuCx_0r.js} +79 -168
  66. package/dist/{index-4kMeSNTr.js → index-CLkqja9X.js} +385 -376
  67. package/dist/{index-DMrIQqFt.js → index-Cm_6xScD.js} +1 -1
  68. package/dist/index-CuvNtC_M.js +61 -0
  69. package/dist/index-DHEJX75j.js +44 -0
  70. package/dist/{index-CMBPIb8x.js → index-D_gLVFsk.js} +941 -932
  71. package/dist/{index-BWTvsoH0.js → index-DbjZHuoG.js} +1 -1
  72. package/dist/{index-CrFUhsZO.js → index-De1JnaPh.js} +1 -1
  73. package/dist/{index-DeXvASjP.js → index-Di6bqaLm.js} +3 -3
  74. package/dist/{index-CtDqXnOp.js → index-DjycZwfg.js} +448 -515
  75. package/dist/{index-B0T9GDIZ.js → index-vs1HgFHz.js} +1 -1
  76. package/dist/{index.esm2017-JtyypweZ.js → index.esm2017-DANlqJ4g.js} +127 -127
  77. package/dist/{loading-a-FqrwqI.js → loading-BXu9ofEu.js} +1 -1
  78. package/dist/{membership-CGVtil5J.js → membership-BBb7gdZg.js} +3 -3
  79. package/dist/{money-CTc1l_Cq.js → money-C02BW-pt.js} +1 -1
  80. package/dist/{number-W3R-0nYP.js → number-D7tIDv2q.js} +1 -1
  81. package/dist/objectid-oVX5A5oa.js +145 -0
  82. package/dist/{plugins-D2sSgTSl.js → plugins-B5tuGbFw.js} +2 -2
  83. package/dist/{reward-atP8vnNn.js → reward-CE-bnnnQ.js} +1 -1
  84. package/dist/{rule-eA5IvnjB.js → rule-BN5R8pYj.js} +3 -3
  85. package/dist/{rule-builder-BB29ZJ_C.js → rule-builder-16JDtaoI.js} +17 -17
  86. package/dist/style.css +1 -1
  87. package/dist/{template-DhBeDaAm.js → template-C-zyZgxl.js} +64 -64
  88. package/dist/{trigger-Bq_pZj1J.js → trigger-DCLjl3mM.js} +4 -4
  89. package/dist/{usePagination-BeF5K3M7.js → usePagination-JoYaROkV.js} +85 -85
  90. package/dist/{user-B-bhVFIG.js → user-C7bmFOaT.js} +1 -1
  91. package/dist/{vue-i18n-D-h8VDSx.js → vue-i18n-Cts9OsqE.js} +277 -277
  92. package/dist/{xlsx-DsByAcZl.js → xlsx-CJ5ufXk3.js} +226 -226
  93. package/package.json +3 -5
  94. package/dist/Analytic-O-qZWrFp.js +0 -761
  95. package/dist/AuditLogs-DlmcFEta.js +0 -1887
  96. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js +0 -58
  97. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js +0 -144
  98. package/dist/Marketing-CnnrnXbS.js +0 -20073
  99. package/dist/MemberList-BpE1IjED.js +0 -1606
  100. package/dist/MemberOverview-wL_ailso.js +0 -58
  101. package/dist/Segment-DVT8uDn8.js +0 -882
  102. package/dist/StoreRewards-CIjHcVoh.js +0 -423
  103. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Cx05-OPF.js +0 -1029
  104. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DkjojUvD.js +0 -419
  105. package/dist/index-CVAWGMus.js +0 -56
  106. package/dist/index-CsaQJMAR.js +0 -66
  107. package/dist/objectid-BU0Y8iAN.js +0 -145
  108. package/dist/remy-vue-client-Cpppk9h-.js +0 -1693
@@ -1,4 +1,4 @@
1
- import { z as e } from "./index-CMBPIb8x.js";
1
+ import { z as e } from "./index-D_gLVFsk.js";
2
2
  const E = e.enum([
3
3
  "VOUCHER",
4
4
  "CREDIT",
@@ -1,5 +1,5 @@
1
- import "./index-y-7yUm2e.js";
2
- import "./index-CMBPIb8x.js";
1
+ import "./index-B6_uPXyL.js";
2
+ import "./index-D_gLVFsk.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-CMBPIb8x.js";
2
- import { z as y, a as r, A as h } from "./index-CtDqXnOp.js";
3
- import { F as u } from "./index-y-7yUm2e.js";
4
- import { i as I, R as d } from "./rule-builder-BB29ZJ_C.js";
1
+ import { F as i, z as t } from "./index-D_gLVFsk.js";
2
+ import { z as y, a as r, A as h } from "./index-DjycZwfg.js";
3
+ import { F as u } from "./index-B6_uPXyL.js";
4
+ import { i as I, R as d } from "./rule-builder-16JDtaoI.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-4kMeSNTr.js";
1
+ import { c as r } from "./index-CLkqja9X.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-DsByAcZl.js";
4
+ import { u as V } from "./xlsx-CJ5ufXk3.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-DsByAcZl.js";
5
- import { u as h } from "./loading-a-FqrwqI.js";
4
+ import { u as a, w as f } from "./xlsx-CJ5ufXk3.js";
5
+ import { u as h } from "./loading-BXu9ofEu.js";
6
6
  import { h as x } from "./moment-BWErdI6_.js";
7
- import { m as w } from "./index-CTKMdxSm.js";
7
+ import { m as w } from "./index-BS3AjuVw.js";
8
8
  class y {
9
9
  constructor() {
10
10
  d(this, "records", []);
@@ -1,4 +1,4 @@
1
- import { o as i } from "./index-y-7yUm2e.js";
1
+ import { i } from "./index-B6_uPXyL.js";
2
2
  function o(t, e) {
3
3
  switch (t) {
4
4
  case "COIN":
@@ -1,4 +1,4 @@
1
- import { h as p } from "./index-y-7yUm2e.js";
1
+ import { h as p } from "./index-B6_uPXyL.js";
2
2
  function g(r) {
3
3
  return r.toLowerCase();
4
4
  }
@@ -1,5 +1,5 @@
1
- import { z as b, F as On, m as Zv } from "./index-CMBPIb8x.js";
2
- import { F as Lt, a as $f } from "./collectible.enum-CLBCnfev.js";
1
+ import { z as b, F as On, m as Zv } from "./index-D_gLVFsk.js";
2
+ import { F as Lt, a as $f } from "./collectible.enum-Cun9w38h.js";
3
3
  import { c as Hr, g as Vv } from "./_commonjsHelpers-BkfeUUK-.js";
4
4
  //! moment.js
5
5
  //! version : 2.30.1
@@ -8851,11 +8851,11 @@ export {
8851
8851
  bD as f,
8852
8852
  ni as g,
8853
8853
  it as h,
8854
- Hu as i,
8855
- Bu as j,
8856
- ED as k,
8857
- dD as l,
8858
- vD as m,
8859
- VE as n,
8860
- O as o
8854
+ O as i,
8855
+ Hu as j,
8856
+ Bu as k,
8857
+ VE as l,
8858
+ ED as m,
8859
+ dD as n,
8860
+ vD as o
8861
8861
  };
@@ -1,4 +1,4 @@
1
- import { g as t, S as c, b as u } from "./index-4kMeSNTr.js";
1
+ import { g as t, S as c, b as u } from "./index-CLkqja9X.js";
2
2
  const a = () => {
3
3
  const e = c.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-4kMeSNTr.js";
1
+ import { g as s, S as o, b as i } from "./index-CLkqja9X.js";
2
2
  const a = () => {
3
3
  const r = o.getBusinessId();
4
4
  if (!r) throw new Error("Invalid business ID");
@@ -1,66 +1,10 @@
1
- import { z as e, F as n, m as o, a as v } from "./index-CMBPIb8x.js";
2
- import { D as E, E as O, G as I, H as L, I as p } from "./index-CtDqXnOp.js";
3
- import { c as h } from "./index-y-7yUm2e.js";
4
- import { R as t } from "./rule-builder-BB29ZJ_C.js";
5
- import { i } from "./helper-DfvvxOyO.js";
6
- import { a as r } from "./index-DeXvASjP.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
- ]), x = 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
- }), S = 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: x,
61
- response: S
62
- }).describe(o.describe(T));
63
- const pe = {
1
+ import { z as e, F as a, m as o } from "./index-D_gLVFsk.js";
2
+ import { c as v } from "./index-B6_uPXyL.js";
3
+ import { R as t } from "./rule-builder-16JDtaoI.js";
4
+ import { i } from "./helper-BM1JTEFS.js";
5
+ import { E, G as O, H as I, I as p } from "./index-DjycZwfg.js";
6
+ import { a as r } from "./index-Di6bqaLm.js";
7
+ const z = {
64
8
  PROMOTION: {
65
9
  name: "Promotion Template",
66
10
  description: "Promotion template for campaign creation.",
@@ -1817,7 +1761,7 @@ t.setRuleToGroup(t.scaffoldGroup(), [
1817
1761
  ({
1818
1762
  ...t.scaffoldGroup()
1819
1763
  });
1820
- const D = e.enum([
1764
+ const L = e.enum([
1821
1765
  "MEMBER_REWARD",
1822
1766
  "PAID_LOYALTY",
1823
1767
  "COLLECT_FEEDBACK",
@@ -1827,7 +1771,7 @@ const D = e.enum([
1827
1771
  "BROADCAST",
1828
1772
  "BIRTHDAY",
1829
1773
  "GAME"
1830
- ]), A = e.enum([
1774
+ ]), h = e.enum([
1831
1775
  "text",
1832
1776
  "number",
1833
1777
  "textarea",
@@ -1854,71 +1798,71 @@ const D = e.enum([
1854
1798
  "rule_feedback",
1855
1799
  "rule_birthday",
1856
1800
  "promotion_game_type"
1857
- ]), M = e.object({
1801
+ ]), R = e.object({
1858
1802
  label: e.string().optional(),
1859
1803
  property: e.string().or(e.any()),
1860
- type: A,
1804
+ type: h,
1861
1805
  extras: e.string().optional(),
1862
1806
  isRuleChildren: e.boolean().optional()
1863
- }), N = e.object({
1807
+ }), x = e.object({
1864
1808
  name: e.string().optional(),
1865
- fields: e.array(M),
1809
+ fields: e.array(R),
1866
1810
  condition: e.object({
1867
1811
  not: e.boolean().optional(),
1868
1812
  property: e.string(),
1869
1813
  value: e.any()
1870
1814
  }).optional()
1871
- }), w = e.object({
1815
+ }), C = e.object({
1872
1816
  name: e.string(),
1873
- groups: e.array(N)
1817
+ groups: e.array(x)
1874
1818
  });
1875
1819
  e.object({
1876
- _id: n,
1820
+ _id: a,
1877
1821
  name: e.string(),
1878
1822
  description: e.string().nullish(),
1879
- steps: e.array(w).min(1),
1880
- intention: e.array(D),
1823
+ steps: e.array(C).min(1),
1824
+ intention: e.array(L),
1881
1825
  defaultValue: e.any()
1882
1826
  }).describe(JSON.stringify({ collectionName: "MarketingTemplates" }));
1883
- const U = {
1827
+ const T = {
1884
1828
  collectionName: "Businesses",
1885
1829
  transform: {
1886
1830
  _id: "oid"
1887
1831
  }
1888
1832
  };
1889
1833
  e.object({
1890
- _id: n,
1834
+ _id: a,
1891
1835
  ownerId: e.string(),
1892
1836
  name: e.string(),
1893
1837
  credit: e.number(),
1894
1838
  forceSend: e.boolean().optional()
1895
- }).describe(o.describe(U));
1896
- const m = e.enum(["PHONE"]), F = e.enum(["MOCEAN", "SLACK", "SMS", "EMAIL"]), P = e.enum(["PENDING", "COMPLETED", "FAILED"]), G = e.enum([
1839
+ }).describe(o.describe(T));
1840
+ const m = e.enum(["PHONE"]), D = e.enum(["MOCEAN", "SLACK", "SMS", "EMAIL"]), S = e.enum(["PENDING", "COMPLETED", "FAILED"]), M = e.enum([
1897
1841
  "General",
1898
1842
  "Otp",
1899
1843
  "Marketing",
1900
1844
  "Ordering",
1901
1845
  "MemberInvitation"
1902
- ]), B = e.object({
1846
+ ]), A = e.object({
1903
1847
  type: m
1904
- }), s = B.extend({
1848
+ }), s = A.extend({
1905
1849
  type: e.literal(m.enum.PHONE),
1906
- provider: F,
1907
- usage: G.optional()
1908
- }), H = {
1850
+ provider: D,
1851
+ usage: M.optional()
1852
+ }), w = {
1909
1853
  collectionName: "Notifications",
1910
1854
  transform: { _id: "oid", business: "oid" }
1911
1855
  };
1912
1856
  e.object({
1913
- _id: n,
1914
- business: n,
1857
+ _id: a,
1858
+ business: a,
1915
1859
  target: e.string(),
1916
1860
  title: e.string().optional(),
1917
1861
  message: e.string(),
1918
1862
  option: s,
1919
- status: P,
1863
+ status: S,
1920
1864
  ref: e.string().optional()
1921
- }).describe(o.describe(H));
1865
+ }).describe(o.describe(w));
1922
1866
  e.object({
1923
1867
  target: e.string(),
1924
1868
  title: e.string().optional(),
@@ -1933,7 +1877,7 @@ e.object({
1933
1877
  const c = e.object({
1934
1878
  name: e.string().optional(),
1935
1879
  address: e.string()
1936
- }), V = e.object({
1880
+ }), N = e.object({
1937
1881
  filename: e.string(),
1938
1882
  content: e.instanceof(Uint8Array)
1939
1883
  });
@@ -1942,7 +1886,7 @@ e.object({
1942
1886
  to: e.array(c),
1943
1887
  subject: e.string(),
1944
1888
  html: e.string().optional(),
1945
- attachments: e.array(V).optional()
1889
+ attachments: e.array(N).optional()
1946
1890
  });
1947
1891
  e.object({
1948
1892
  subject: e.string(),
@@ -1975,25 +1919,15 @@ e.object({
1975
1919
  claimIds: e.array(e.string()),
1976
1920
  billId: e.string()
1977
1921
  });
1978
- e.object({
1979
- amount: v,
1980
- member: e.string(),
1981
- bill: e.string(),
1982
- otp: e.string().nullish(),
1983
- businessId: e.string()
1984
- });
1985
- e.object({
1986
- orderId: e.string()
1987
- });
1988
- var g = /* @__PURE__ */ ((a) => (a[a.feedMe = 0] = "feedMe", a[a.business = 1] = "business", a[a.restaurant = 2] = "restaurant", a))(g || {});
1922
+ var g = /* @__PURE__ */ ((n) => (n[n.feedMe = 0] = "feedMe", n[n.business = 1] = "business", n[n.restaurant = 2] = "restaurant", n))(g || {});
1989
1923
  e.nativeEnum(g);
1990
1924
  e.enum(["manage", "create", "read", "update", "delete"]);
1991
1925
  e.enum(["all", "restaurant", "business", "delivery", "agent"]);
1992
1926
  e.enum(["quota"]);
1993
- 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 || {});
1927
+ 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 || {});
1994
1928
  e.nativeEnum(d);
1995
1929
  e.enum(["restaurant"]);
1996
- const k = e.object({
1930
+ const U = e.object({
1997
1931
  label: e.string(),
1998
1932
  subject: e.union([e.string(), e.array(e.string())]),
1999
1933
  actions: e.union([e.string(), e.array(e.string())]),
@@ -2003,12 +1937,12 @@ const k = e.object({
2003
1937
  reason: e.string().optional()
2004
1938
  });
2005
1939
  e.object({
2006
- _id: n,
1940
+ _id: a,
2007
1941
  businessId: e.string(),
2008
1942
  userId: e.string(),
2009
1943
  email: e.string().nullish(),
2010
1944
  phoneNo: e.string().nullish(),
2011
- permissions: e.array(e.lazy(() => k))
1945
+ permissions: e.array(e.lazy(() => U))
2012
1946
  }).describe(
2013
1947
  o.describe({
2014
1948
  collectionName: "PermissionUsers",
@@ -2023,14 +1957,14 @@ const y = e.object({
2023
1957
  role: e.string().optional(),
2024
1958
  businessId: e.string().optional(),
2025
1959
  restaurantId: e.string().optional()
2026
- }), j = e.function().args(e.any(), y).returns(e.boolean()), Y = e.function().args(y).returns(e.promise(e.array(e.any())));
1960
+ }), F = e.function().args(e.any(), y).returns(e.boolean()), P = e.function().args(y).returns(e.promise(e.array(e.any())));
2027
1961
  e.object({
2028
- isAdmin: j,
2029
- getRules: Y
1962
+ isAdmin: F,
1963
+ getRules: P
2030
1964
  });
2031
1965
  e.object({
2032
- transactions: e.array(O),
2033
- collections: e.array(I)
1966
+ transactions: e.array(E),
1967
+ collections: e.array(O)
2034
1968
  });
2035
1969
  const u = e.enum([
2036
1970
  "ROCK_PAPER_SCISSOR"
@@ -2064,52 +1998,31 @@ e.object({
2064
1998
  phone: e.string().optional(),
2065
1999
  email: e.string().optional()
2066
2000
  });
2067
- const K = e.enum([
2068
- "PENDING",
2069
- "SUCCESS",
2070
- "FAILED",
2071
- "RETRYING"
2072
- ]), W = {
2073
- collectionName: "WebhookLogs",
2074
- transform: {
2075
- _id: "oid",
2076
- business: "oid"
2077
- }
2078
- };
2079
- e.object({
2080
- _id: n,
2081
- business: n,
2082
- type: e.string(),
2083
- payload: e.record(e.any()),
2084
- status: K,
2085
- response: e.any().optional(),
2086
- error: e.string().optional()
2087
- }).describe(o.describe(W));
2088
- const X = e.enum(["AUTO", "MANUAL"]);
2001
+ const G = e.enum(["AUTO", "MANUAL"]);
2089
2002
  e.enum(["IN_PROGRESS", "COMPLETED"]);
2090
2003
  const f = e.object({
2091
- _id: n,
2004
+ _id: a,
2092
2005
  name: e.string().min(1, "Name is required").max(50),
2093
- type: X,
2094
- event: L.optional()
2095
- }), q = e.object({
2006
+ type: G,
2007
+ event: I.optional()
2008
+ }), B = e.object({
2096
2009
  from: e.number().int("Must be integer").min(1, "Min referral count need to start from 1"),
2097
2010
  to: e.number().int("Must be integer").nullish()
2098
- }).superRefine((a, b) => {
2099
- a.from && a.to && a.from > a.to && b.addIssue({
2011
+ }).superRefine((n, b) => {
2012
+ n.from && n.to && n.from > n.to && b.addIssue({
2100
2013
  code: "custom",
2101
2014
  message: "Max referral count must be more than min referral count"
2102
2015
  });
2103
- }), Q = e.object({
2104
- threshold: q,
2105
- rewards: e.array(n),
2016
+ }), H = e.object({
2017
+ threshold: B,
2018
+ rewards: e.array(a),
2106
2019
  pf_reward: e.array(r).optional()
2107
2020
  }), l = e.object({
2108
2021
  id: e.string(),
2109
2022
  name: e.string().min(1, "Name is required").max(50, "Name must be less than 50 characters"),
2110
- rule: h.optional(),
2111
- rewards: e.array(Q)
2112
- }), J = {
2023
+ rule: v.optional(),
2024
+ rewards: e.array(H)
2025
+ }), V = {
2113
2026
  collectionName: "ReferralRecords",
2114
2027
  transform: {
2115
2028
  _id: "oid",
@@ -2118,25 +2031,25 @@ const f = e.object({
2118
2031
  referee: "oid",
2119
2032
  refereeReward: "oid"
2120
2033
  }
2121
- }, z = e.object({
2034
+ }, k = e.object({
2122
2035
  completedAt: e.coerce.date(),
2123
- criteria: n,
2036
+ criteria: a,
2124
2037
  ref: e.string()
2125
- }), Z = e.object({
2126
- _id: n,
2127
- business: n,
2128
- referer: n,
2129
- referee: n,
2038
+ }), j = e.object({
2039
+ _id: a,
2040
+ business: a,
2041
+ referer: a,
2042
+ referee: a,
2130
2043
  criteria: e.array(f),
2131
2044
  reward: e.array(l),
2132
- refereeReward: e.array(n).optional(),
2133
- criteria_progress: e.array(z),
2045
+ refereeReward: e.array(a).optional(),
2046
+ criteria_progress: e.array(k),
2134
2047
  status: e.string(),
2135
2048
  pf_referer: p.optional(),
2136
2049
  pf_referee: p.optional(),
2137
2050
  pf_refereeReward: e.array(r).optional()
2138
- }).describe(o.describe(J));
2139
- Z.pick({
2051
+ }).describe(o.describe(V));
2052
+ j.pick({
2140
2053
  _id: !0,
2141
2054
  business: !0,
2142
2055
  referer: !0,
@@ -2151,24 +2064,24 @@ Z.pick({
2151
2064
  photoUrl: !0
2152
2065
  })
2153
2066
  });
2154
- const $ = {
2067
+ const Y = {
2155
2068
  collectionName: "ReferralProgram",
2156
2069
  transform: {
2157
2070
  _id: "oid",
2158
2071
  business: "oid"
2159
2072
  }
2160
2073
  }, _ = e.object({
2161
- _id: n,
2162
- business: n,
2074
+ _id: a,
2075
+ business: a,
2163
2076
  term_and_condition: e.string().optional(),
2164
- refereeReward: e.array(n).optional(),
2077
+ refereeReward: e.array(a).optional(),
2165
2078
  reward: e.array(l),
2166
2079
  criteria: e.array(f)
2167
- }).describe(o.describe($));
2080
+ }).describe(o.describe(Y));
2168
2081
  e.object({
2169
- referer: n,
2170
- referee: n,
2171
- business: n
2082
+ referer: a,
2083
+ referee: a,
2084
+ business: a
2172
2085
  });
2173
2086
  e.object({
2174
2087
  program: _.pick({
@@ -2192,11 +2105,9 @@ _.extend({
2192
2105
  updateReferralRecord: e.boolean().optional()
2193
2106
  });
2194
2107
  export {
2195
- D as F,
2196
- pe as T,
2197
- Q as a,
2108
+ L as F,
2109
+ z as T,
2110
+ H as a,
2198
2111
  f as b,
2199
- l as c,
2200
- R as d,
2201
- C as e
2112
+ l as c
2202
2113
  };