@feedmepos/mf-connect 0.1.36-prod → 0.1.38-beta.1

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 (113) hide show
  1. package/dist/Analytic-O-qZWrFp.js +761 -0
  2. package/dist/{App-JwvQzmaf.js → App-BWZ2EE71.js} +364 -352
  3. package/dist/AuditLogs-DlmcFEta.js +1887 -0
  4. package/dist/{Bin-Boq091DE.js → Bin-C-Ha-4yF.js} +8 -8
  5. package/dist/{Broadcast-D7BIjPzg.js → Broadcast-Bo3QS8lS.js} +27 -25
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-ZFe69JWe.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-4vUMzH-l.js} +18 -18
  7. package/dist/{Card-C7v8otBk.js → Card-Bs1TDE0e.js} +159 -159
  8. package/dist/{Collections-C_pyDZJp.js → Collections-Dy5RN7Js.js} +103 -91
  9. package/dist/{Credit-B6I7vIo2.js → Credit-Bqc4dw1s.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-DHQBxqsk.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-D6AmN3o3.js} +490 -488
  12. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-cqK2WTuO.js → EffectSheet.vue_vue_type_style_index_0_lang-BzwADnKp.js} +91 -89
  13. package/dist/{Experience-RU6iI7eH.js → Experience-C2e2T7B-.js} +42 -42
  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-B9Ojuamc.js → Game-C86eEhcx.js} +32 -32
  16. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js +144 -0
  17. package/dist/{Index-Dv-YN9YC.js → Index-BRGweFco.js} +10 -10
  18. package/dist/Marketing-CnnrnXbS.js +20073 -0
  19. package/dist/{Member-BX81V3ON.js → Member-B3o0Zhcw.js} +76 -76
  20. package/dist/MemberList-BpE1IjED.js +1606 -0
  21. package/dist/MemberOverview-wL_ailso.js +58 -0
  22. package/dist/{MemberTransactions-C0FinB5E.js → MemberTransactions-C4hao-d9.js} +1 -1
  23. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DZS17c8D.js → MessageInput.vue_vue_type_script_setup_true_lang-D9zfmqLs.js} +36 -36
  24. package/dist/{Mission-BV76Qq3Y.js → Mission-BURXfzjd.js} +21 -21
  25. package/dist/{Overview-CMK4VRZl.js → Overview-D_hrrM4O.js} +335 -335
  26. package/dist/{Point-CQWKh1jv.js → Point-CJXkJY5Q.js} +43 -41
  27. package/dist/Promotion-CunJrh42.js +289 -0
  28. package/dist/{Queue-CFNfJSux.js → Queue-v5Itg9J4.js} +52 -52
  29. package/dist/{Record-7_ssnQnB.js → Record-DJe4tg9R.js} +9 -9
  30. package/dist/{Reward-DOe1Tn2f.js → Reward-Y9aHpny5.js} +173 -173
  31. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BsgR-dCL.js → RewardGroup.vue_vue_type_script_setup_true_lang-1KAjCblO.js} +11 -11
  32. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-BPw5L06B.js → RuleGroup.vue_vue_type_script_setup_true_lang-Cr99ikbK.js} +635 -548
  33. package/dist/Segment-DVT8uDn8.js +882 -0
  34. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DPsLdEU8.js → SelectItems.vue_vue_type_script_setup_true_lang-BhJ-oVMb.js} +2 -2
  35. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-BAJLRxOM.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-b5bjfBvc.js} +11 -11
  36. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-DUUzFkIc.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DoKAgSLE.js} +3 -3
  37. package/dist/{Setting-Bojfmtwf.js → Setting-BU5778gG.js} +432 -432
  38. package/dist/{Store-dfiUtq-f.js → Store-IWg0POAU.js} +211 -211
  39. package/dist/StoreRewards-CIjHcVoh.js +423 -0
  40. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Cx05-OPF.js +1029 -0
  41. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-D8ey57Te.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BcOvr526.js} +1 -1
  42. package/dist/{Tier-BIDShXJ6.js → Tier-iN30KD7g.js} +107 -107
  43. package/dist/{Title-CDdkVwEu.js → Title-Duh_Srek.js} +133 -131
  44. package/dist/{Transaction-lAUnd1c_.js → Transaction-DLBA7Svl.js} +2 -2
  45. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BwaD8Nwy.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DLD5d43d.js} +6 -6
  46. package/dist/{Voucher-BARDbixZ.js → Voucher-cTvlMN0Y.js} +153 -123
  47. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DkjojUvD.js +419 -0
  48. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CIk3GKLH.js → ZodTextField.vue_vue_type_script_setup_true_lang-C5S-bi5J.js} +1 -1
  49. package/dist/{app-Cq8zUKBx.js → app-A3oEKLq5.js} +1 -1
  50. package/dist/{app-KtD-iU16.js → app-De-yQ1CJ.js} +164 -125
  51. package/dist/app.js +4 -3
  52. package/dist/business-B2JBpm4y.js +79 -0
  53. package/dist/{campaign-NqTts9bj.js → campaign-Bhur0NJx.js} +9 -9
  54. package/dist/{campaign-DwArKZ1r.js → campaign-vkzui6F2.js} +5 -3
  55. package/dist/{campaign.enum-DQayyk1f.js → campaign.enum-DCYkKGhd.js} +1 -1
  56. package/dist/{campaign.fn-6uf_Z5m1.js → campaign.fn--affTEi5.js} +161 -161
  57. package/dist/{collectible.enum-CgjtJh8V.js → collectible.enum-CLBCnfev.js} +1 -1
  58. package/dist/{collection.fn-DuqcY399.js → collection.fn-bA8q0KYy.js} +2 -2
  59. package/dist/{dto-CQRn2lAW.js → dto-RCcWeYE0.js} +4 -4
  60. package/dist/{effect-B-sUUnjd.js → effect-D7qRfPe_.js} +1 -1
  61. package/dist/{email-addresses-D-kPsNBn.js → email-addresses-a8PqViID.js} +1 -1
  62. package/dist/{export-B28oHptg.js → export-BneqNRn4.js} +3 -3
  63. package/dist/{helper-DuBp_oW-.js → helper-DfvvxOyO.js} +1 -1
  64. package/dist/{index-CCNfzZ5t.js → index-2LpkG8Ye.js} +1 -1
  65. package/dist/{index-C2wsUy05.js → index-4kMeSNTr.js} +11447 -10969
  66. package/dist/{index-BgdUU6Za.js → index-B0T9GDIZ.js} +1 -1
  67. package/dist/{index-CczG_ilB.js → index-BWTvsoH0.js} +1 -1
  68. package/dist/index-CMBPIb8x.js +32260 -0
  69. package/dist/{index-DF4V4vur.js → index-CTKMdxSm.js} +1 -1
  70. package/dist/index-CVAWGMus.js +56 -0
  71. package/dist/index-CbsJ6vMJ.js +31 -0
  72. package/dist/{index-CSWnS__O.js → index-CrFUhsZO.js} +1 -1
  73. package/dist/index-CsaQJMAR.js +66 -0
  74. package/dist/{index-CmOaBe_x.js → index-CtDqXnOp.js} +535 -460
  75. package/dist/{index-CECYN1oL.js → index-D0GnMoag.js} +181 -79
  76. package/dist/{index-BCslSeGm.js → index-DMrIQqFt.js} +1 -1
  77. package/dist/{index-BZYbNzed.js → index-DeXvASjP.js} +3 -3
  78. package/dist/{index-CUdis4Jl.js → index-y-7yUm2e.js} +10 -9
  79. package/dist/{index.esm2017-CVwbgLS0.js → index.esm2017-JtyypweZ.js} +127 -127
  80. package/dist/{loading-C-BSh5_w.js → loading-a-FqrwqI.js} +1 -1
  81. package/dist/{membership-BPpTsVq5.js → membership-CGVtil5J.js} +3 -3
  82. package/dist/{money-BSxQcP_f.js → money-CTc1l_Cq.js} +1 -1
  83. package/dist/{number-p7RPdTQ7.js → number-W3R-0nYP.js} +1 -1
  84. package/dist/objectid-BU0Y8iAN.js +145 -0
  85. package/dist/{plugins-5mIceCPA.js → plugins-D2sSgTSl.js} +2 -2
  86. package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
  87. package/dist/{reward-CaZY5kqg.js → reward-atP8vnNn.js} +1 -1
  88. package/dist/{rule-builder-yn_upY7a.js → rule-builder-BB29ZJ_C.js} +17 -17
  89. package/dist/{rule-DB6XK-iD.js → rule-eA5IvnjB.js} +3 -3
  90. package/dist/style.css +1 -1
  91. package/dist/{template-DbmV0nWD.js → template-DhBeDaAm.js} +64 -64
  92. package/dist/{trigger-DPl3HG2o.js → trigger-Bq_pZj1J.js} +7 -7
  93. package/dist/{usePagination-JoYaROkV.js → usePagination-BeF5K3M7.js} +85 -85
  94. package/dist/{user-DzwHXhvX.js → user-B-bhVFIG.js} +1 -1
  95. package/dist/{vue-i18n-BnN9jlFK.js → vue-i18n-D-h8VDSx.js} +343 -343
  96. package/dist/{xlsx-CrsYUgcS.js → xlsx-DsByAcZl.js} +226 -226
  97. package/package.json +5 -3
  98. package/dist/Analytic-C1LCniPD.js +0 -427
  99. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js +0 -144
  100. package/dist/Marketing-CFgCJV0g.js +0 -317
  101. package/dist/MemberList-BjX8ND1p.js +0 -1606
  102. package/dist/MemberOverview-C2n9oJZh.js +0 -58
  103. package/dist/Promotion-CnFaEvhL.js +0 -255
  104. package/dist/Segment-DUP0JWK5.js +0 -882
  105. package/dist/StoreRewards-DJj-oM2n.js +0 -423
  106. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-oRUpDbZ_.js +0 -995
  107. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-bDQs5ACo.js +0 -419
  108. package/dist/business-CFMUx5qO.js +0 -78
  109. package/dist/index-CuJ5OZqA.js +0 -29566
  110. package/dist/index-CuvNtC_M.js +0 -61
  111. package/dist/index-Dbd4WA4r.js +0 -61
  112. package/dist/index-mtAI1Gyn.js +0 -44
  113. package/dist/objectid-DkD1hn1F.js +0 -145
@@ -1,10 +1,66 @@
1
- import { z as e, F as a, m as o } from "./index-CuJ5OZqA.js";
2
- import { c as v } from "./index-CUdis4Jl.js";
3
- import { R as t } from "./rule-builder-yn_upY7a.js";
4
- import { i } from "./helper-DuBp_oW-.js";
5
- import { E, G as O, H as I, I as p } from "./index-CmOaBe_x.js";
6
- import { a as r } from "./index-BZYbNzed.js";
7
- const z = {
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 = {
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,71 @@ 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(["MOCEAN", "SLACK", "SMS", "EMAIL"]), P = e.enum(["PENDING", "COMPLETED", "FAILED"]), G = e.enum([
1828
1897
  "General",
1829
1898
  "Otp",
1830
1899
  "Marketing",
1831
1900
  "Ordering",
1832
1901
  "MemberInvitation"
1833
- ]), A = e.object({
1902
+ ]), B = e.object({
1834
1903
  type: m
1835
- }), s = A.extend({
1904
+ }), s = B.extend({
1836
1905
  type: e.literal(m.enum.PHONE),
1837
- provider: D,
1838
- usage: M.optional()
1839
- }), w = {
1906
+ provider: F,
1907
+ usage: G.optional()
1908
+ }), H = {
1840
1909
  collectionName: "Notifications",
1841
1910
  transform: { _id: "oid", business: "oid" }
1842
1911
  };
1843
1912
  e.object({
1844
- _id: a,
1845
- business: a,
1913
+ _id: n,
1914
+ business: n,
1846
1915
  target: e.string(),
1847
1916
  title: e.string().optional(),
1848
1917
  message: e.string(),
1849
1918
  option: s,
1850
- status: S,
1919
+ status: P,
1851
1920
  ref: e.string().optional()
1852
- }).describe(o.describe(w));
1921
+ }).describe(o.describe(H));
1853
1922
  e.object({
1854
1923
  target: e.string(),
1855
1924
  title: e.string().optional(),
@@ -1864,7 +1933,7 @@ e.object({
1864
1933
  const c = e.object({
1865
1934
  name: e.string().optional(),
1866
1935
  address: e.string()
1867
- }), N = e.object({
1936
+ }), V = e.object({
1868
1937
  filename: e.string(),
1869
1938
  content: e.instanceof(Uint8Array)
1870
1939
  });
@@ -1873,7 +1942,7 @@ e.object({
1873
1942
  to: e.array(c),
1874
1943
  subject: e.string(),
1875
1944
  html: e.string().optional(),
1876
- attachments: e.array(N).optional()
1945
+ attachments: e.array(V).optional()
1877
1946
  });
1878
1947
  e.object({
1879
1948
  subject: e.string(),
@@ -1906,15 +1975,25 @@ e.object({
1906
1975
  claimIds: e.array(e.string()),
1907
1976
  billId: e.string()
1908
1977
  });
1909
- var g = /* @__PURE__ */ ((n) => (n[n.feedMe = 0] = "feedMe", n[n.business = 1] = "business", n[n.restaurant = 2] = "restaurant", n))(g || {});
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 || {});
1910
1989
  e.nativeEnum(g);
1911
1990
  e.enum(["manage", "create", "read", "update", "delete"]);
1912
1991
  e.enum(["all", "restaurant", "business", "delivery", "agent"]);
1913
1992
  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 || {});
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 || {});
1915
1994
  e.nativeEnum(d);
1916
1995
  e.enum(["restaurant"]);
1917
- const U = e.object({
1996
+ const k = e.object({
1918
1997
  label: e.string(),
1919
1998
  subject: e.union([e.string(), e.array(e.string())]),
1920
1999
  actions: e.union([e.string(), e.array(e.string())]),
@@ -1924,12 +2003,12 @@ const U = e.object({
1924
2003
  reason: e.string().optional()
1925
2004
  });
1926
2005
  e.object({
1927
- _id: a,
2006
+ _id: n,
1928
2007
  businessId: e.string(),
1929
2008
  userId: e.string(),
1930
2009
  email: e.string().nullish(),
1931
2010
  phoneNo: e.string().nullish(),
1932
- permissions: e.array(e.lazy(() => U))
2011
+ permissions: e.array(e.lazy(() => k))
1933
2012
  }).describe(
1934
2013
  o.describe({
1935
2014
  collectionName: "PermissionUsers",
@@ -1944,14 +2023,14 @@ const y = e.object({
1944
2023
  role: e.string().optional(),
1945
2024
  businessId: e.string().optional(),
1946
2025
  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())));
2026
+ }), j = e.function().args(e.any(), y).returns(e.boolean()), Y = e.function().args(y).returns(e.promise(e.array(e.any())));
1948
2027
  e.object({
1949
- isAdmin: F,
1950
- getRules: P
2028
+ isAdmin: j,
2029
+ getRules: Y
1951
2030
  });
1952
2031
  e.object({
1953
- transactions: e.array(E),
1954
- collections: e.array(O)
2032
+ transactions: e.array(O),
2033
+ collections: e.array(I)
1955
2034
  });
1956
2035
  const u = e.enum([
1957
2036
  "ROCK_PAPER_SCISSOR"
@@ -1985,31 +2064,52 @@ e.object({
1985
2064
  phone: e.string().optional(),
1986
2065
  email: e.string().optional()
1987
2066
  });
1988
- const B = e.enum(["AUTO", "MANUAL"]);
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"]);
1989
2089
  e.enum(["IN_PROGRESS", "COMPLETED"]);
1990
2090
  const f = e.object({
1991
- _id: a,
2091
+ _id: n,
1992
2092
  name: e.string().min(1, "Name is required").max(50),
1993
- type: B,
1994
- event: I.optional()
1995
- }), G = e.object({
2093
+ type: X,
2094
+ event: L.optional()
2095
+ }), q = e.object({
1996
2096
  from: e.number().int("Must be integer").min(1, "Min referral count need to start from 1"),
1997
2097
  to: e.number().int("Must be integer").nullish()
1998
- }).superRefine((n, b) => {
1999
- n.from && n.to && n.from > n.to && b.addIssue({
2098
+ }).superRefine((a, b) => {
2099
+ a.from && a.to && a.from > a.to && b.addIssue({
2000
2100
  code: "custom",
2001
2101
  message: "Max referral count must be more than min referral count"
2002
2102
  });
2003
- }), H = e.object({
2004
- threshold: G,
2005
- rewards: e.array(a),
2103
+ }), Q = e.object({
2104
+ threshold: q,
2105
+ rewards: e.array(n),
2006
2106
  pf_reward: e.array(r).optional()
2007
2107
  }), l = e.object({
2008
2108
  id: e.string(),
2009
2109
  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 = {
2110
+ rule: h.optional(),
2111
+ rewards: e.array(Q)
2112
+ }), J = {
2013
2113
  collectionName: "ReferralRecords",
2014
2114
  transform: {
2015
2115
  _id: "oid",
@@ -2018,25 +2118,25 @@ const f = e.object({
2018
2118
  referee: "oid",
2019
2119
  refereeReward: "oid"
2020
2120
  }
2021
- }, k = e.object({
2121
+ }, z = e.object({
2022
2122
  completedAt: e.coerce.date(),
2023
- criteria: a,
2123
+ criteria: n,
2024
2124
  ref: e.string()
2025
- }), j = e.object({
2026
- _id: a,
2027
- business: a,
2028
- referer: a,
2029
- referee: a,
2125
+ }), Z = e.object({
2126
+ _id: n,
2127
+ business: n,
2128
+ referer: n,
2129
+ referee: n,
2030
2130
  criteria: e.array(f),
2031
2131
  reward: e.array(l),
2032
- refereeReward: e.array(a).optional(),
2033
- criteria_progress: e.array(k),
2132
+ refereeReward: e.array(n).optional(),
2133
+ criteria_progress: e.array(z),
2034
2134
  status: e.string(),
2035
2135
  pf_referer: p.optional(),
2036
2136
  pf_referee: p.optional(),
2037
2137
  pf_refereeReward: e.array(r).optional()
2038
- }).describe(o.describe(V));
2039
- j.pick({
2138
+ }).describe(o.describe(J));
2139
+ Z.pick({
2040
2140
  _id: !0,
2041
2141
  business: !0,
2042
2142
  referer: !0,
@@ -2051,24 +2151,24 @@ j.pick({
2051
2151
  photoUrl: !0
2052
2152
  })
2053
2153
  });
2054
- const Y = {
2154
+ const $ = {
2055
2155
  collectionName: "ReferralProgram",
2056
2156
  transform: {
2057
2157
  _id: "oid",
2058
2158
  business: "oid"
2059
2159
  }
2060
2160
  }, _ = e.object({
2061
- _id: a,
2062
- business: a,
2161
+ _id: n,
2162
+ business: n,
2063
2163
  term_and_condition: e.string().optional(),
2064
- refereeReward: e.array(a).optional(),
2164
+ refereeReward: e.array(n).optional(),
2065
2165
  reward: e.array(l),
2066
2166
  criteria: e.array(f)
2067
- }).describe(o.describe(Y));
2167
+ }).describe(o.describe($));
2068
2168
  e.object({
2069
- referer: a,
2070
- referee: a,
2071
- business: a
2169
+ referer: n,
2170
+ referee: n,
2171
+ business: n
2072
2172
  });
2073
2173
  e.object({
2074
2174
  program: _.pick({
@@ -2092,9 +2192,11 @@ _.extend({
2092
2192
  updateReferralRecord: e.boolean().optional()
2093
2193
  });
2094
2194
  export {
2095
- L as F,
2096
- z as T,
2097
- H as a,
2195
+ D as F,
2196
+ pe as T,
2197
+ Q as a,
2098
2198
  f as b,
2099
- l as c
2199
+ l as c,
2200
+ R as d,
2201
+ C as e
2100
2202
  };
@@ -1,4 +1,4 @@
1
- import { g as t, S as I, u as C, b as w } from "./index-C2wsUy05.js";
1
+ import { g as t, S as I, u as C, b as w } from "./index-4kMeSNTr.js";
2
2
  const a = () => {
3
3
  if (!I.getBusinessId()) throw new Error("Invalid business ID");
4
4
  return C("users");
@@ -1,6 +1,6 @@
1
- import { F as o, e as t, g as a } from "./index-CUdis4Jl.js";
2
- import { z as e, F as i, m as d } from "./index-CuJ5OZqA.js";
3
- import { F as c } from "./collectible.enum-CgjtJh8V.js";
1
+ import { F as o, e as t, g as a } from "./index-y-7yUm2e.js";
2
+ import { z as e, F as i, m as d } from "./index-CMBPIb8x.js";
3
+ import { F as c } from "./collectible.enum-CLBCnfev.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,5 +1,5 @@
1
- import { z as b, F as On, m as Zv } from "./index-CuJ5OZqA.js";
2
- import { F as Lt, a as $f } from "./collectible.enum-CgjtJh8V.js";
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";
3
3
  import { c as Hr, g as Vv } from "./_commonjsHelpers-BkfeUUK-.js";
4
4
  //! moment.js
5
5
  //! version : 2.30.1
@@ -8741,7 +8741,7 @@ const Fu = b.enum(["FIXED", "PROPORTIONAL"]), eD = b.array(b.string()).nullish()
8741
8741
  mission: b.any().nullish()
8742
8742
  }), Bu = b.object({
8743
8743
  validityOption: ni.nullish(),
8744
- maxReceive: b.number().min(0).max(1e6).nullish(),
8744
+ maxReceive: b.number().min(1).max(1e6).nullish(),
8745
8745
  maxPerUser: b.number().min(1).max(1e4).nullish(),
8746
8746
  enableTransfer: b.boolean().nullish(),
8747
8747
  transferExpireAt: b.date().nullish(),
@@ -8788,8 +8788,8 @@ const Fu = b.enum(["FIXED", "PROPORTIONAL"]), eD = b.array(b.string()).nullish()
8788
8788
  // voucher specific properties
8789
8789
  options: Bu.extend({
8790
8790
  validityOption: ni,
8791
- maxReceive: b.number().min(0).max(1e6).nullish(),
8792
- maxPerUser: b.number().min(0).max(1e4).nullish(),
8791
+ maxReceive: b.number().min(1).max(1e6).nullish(),
8792
+ maxPerUser: b.number().min(1).max(1e4).nullish(),
8793
8793
  enableTransfer: b.boolean().default(!1),
8794
8794
  cooldown: b.number().min(0).nullish(),
8795
8795
  maxUse: b.number().min(1).max(1e4),
@@ -8850,11 +8850,12 @@ export {
8850
8850
  wD as e,
8851
8851
  bD as f,
8852
8852
  ni as g,
8853
- O as h,
8853
+ it as h,
8854
8854
  Hu as i,
8855
8855
  Bu as j,
8856
8856
  ED as k,
8857
- VE as l,
8858
- dD as m,
8859
- vD as n
8857
+ dD as l,
8858
+ vD as m,
8859
+ VE as n,
8860
+ O as o
8860
8861
  };