@feedmepos/mf-connect 0.1.38-beta.95 → 0.1.38-beta.98

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 (107) hide show
  1. package/dist/{Analytic-ClNBzH0-.js → Analytic-Cmmsj4GL.js} +13 -13
  2. package/dist/{App-BYYCR70G.js → App-X8JUheTB.js} +7 -7
  3. package/dist/{AuditLogs-Do1BqAh6.js → AuditLogs-Am7feSao.js} +9 -9
  4. package/dist/{Bin-RjB5lqOt.js → Bin-CkQNnA-g.js} +8 -8
  5. package/dist/{Broadcast-BH87IX67.js → Broadcast-ZO3ztKsj.js} +9 -9
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B1SgkRkw.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B6_I4twl.js} +6 -6
  7. package/dist/{Card-CNe9XUHH.js → Card-BCPHRAJr.js} +18 -18
  8. package/dist/{Collections-lSN93UK2.js → Collections-DWuTstxd.js} +7 -7
  9. package/dist/{Credit-BSUutjTN.js → Credit-C1997yt1.js} +9 -9
  10. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-CPefl7VV.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-_6MxlAxf.js} +33 -33
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CzLMbYGB.js → EffectSheet.vue_vue_type_style_index_0_lang-Bdw9FRi5.js} +6 -6
  12. package/dist/{Experience-BSuperA9.js → Experience-DWi1PbhY.js} +9 -9
  13. package/dist/{FileSaver.min-CKVujfXA.js → FileSaver.min-DDxdY8PO.js} +1 -1
  14. package/dist/{Game-BoQT3LSd.js → Game-BfSqEFif.js} +10 -10
  15. package/dist/{Grab-n13T0fDp.js → Grab-CfEpIuRy.js} +8 -8
  16. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BT3JooLp.js → ImageInput.vue_vue_type_script_setup_true_lang-B0YvP43y.js} +1 -1
  17. package/dist/{Index-BPGZLNlz.js → Index-Bsr_7Lf6.js} +10 -10
  18. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-D2dEkZzA.js → LocationPicker.vue_vue_type_script_setup_true_lang-DywlTAP4.js} +1 -1
  19. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BiVIkK5g.js → LottieAnimation.vue_vue_type_script_setup_true_lang-XY-LoAga.js} +1 -1
  20. package/dist/{MainLayout-BKiINcfj.js → MainLayout-DhLqseD3.js} +1 -1
  21. package/dist/{Marketing-oOyAG5nz.js → Marketing-JLdmgwHa.js} +4 -4
  22. package/dist/{MarketingMaterialEdit-C3r4xZgn.js → MarketingMaterialEdit-R8iU_vwo.js} +6 -6
  23. package/dist/{Member-CLZfAfxb.js → Member-CjcsTmx9.js} +11 -11
  24. package/dist/{MemberList-CENSraOX.js → MemberList-47UJBrBC.js} +26 -26
  25. package/dist/{MemberTransactions-C4m1Bcu1.js → MemberTransactions-ojm2_POc.js} +1 -1
  26. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Ee_1wJHS.js → MessageInput.vue_vue_type_script_setup_true_lang-CwL3CuhK.js} +3616 -3613
  27. package/dist/{Mission-mmhMMp1t.js → Mission-EKIaaBgF.js} +10 -10
  28. package/dist/{Overview-CrKRNsaV.js → Overview-GTvI7se0.js} +18 -18
  29. package/dist/{Point-QA8jBWSa.js → Point-C_LiPWtG.js} +9 -9
  30. package/dist/{Promotion-Co6zYVHq.js → Promotion-CUUineSb.js} +10 -10
  31. package/dist/{Queue-D7Pkm_4s.js → Queue-DJc2n8_h.js} +10 -10
  32. package/dist/{Record-L5LLMZHt.js → Record-bzSkHUZY.js} +9 -9
  33. package/dist/Review-DGrND2U0.js +692 -0
  34. package/dist/{ReviewFacebookCallback-DnCmYy9S.js → ReviewFacebookCallback-Cl2Iv6Yt.js} +39 -39
  35. package/dist/{ReviewGoogleCallback-D6lS5jn7.js → ReviewGoogleCallback-B1ScyrkD.js} +4 -4
  36. package/dist/{Reward-BpgKE6dk.js → Reward-BqTHw8PX.js} +16 -16
  37. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DUFAlWir.js → RewardGroup.vue_vue_type_script_setup_true_lang-q3ZO18r6.js} +11 -11
  38. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-BkytXNO2.js → RuleGroup.vue_vue_type_script_setup_true_lang-o9AVUR98.js} +14 -14
  39. package/dist/{Segment-COk0MJzr.js → Segment-CxjPyWVc.js} +24 -24
  40. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-CSXMhjst.js → SelectItems.vue_vue_type_script_setup_true_lang-DV7zm7-m.js} +2 -2
  41. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-CNOzJqXR.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-C5g_vl23.js} +12 -12
  42. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BXaH_Tt0.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BXcN2LX8.js} +4 -4
  43. package/dist/{Setting-DZXUWu6L.js → Setting-CnbTydur.js} +449 -441
  44. package/dist/{SettingAdvertisements-CzfTJ17s.js → SettingAdvertisements-0KxvOuNS.js} +12 -12
  45. package/dist/{Store-B8L1EdOT.js → Store-DCYi9tBd.js} +21 -21
  46. package/dist/{StoreRewards-BpJbbbW5.js → StoreRewards-DtupzWtO.js} +203 -200
  47. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-OMYC8ljy.js → StoreTransactions.vue_vue_type_script_setup_true_lang-Bj2YGF8r.js} +21 -21
  48. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BDNhBCJb.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CWuZ64Ej.js} +2 -2
  49. package/dist/{Tier-D98VwNdC.js → Tier-mXDWVyOh.js} +23 -23
  50. package/dist/{Title-DEfQ7NMe.js → Title-8mH7yu0A.js} +20 -20
  51. package/dist/{Transaction-Bd4nS9Ai.js → Transaction-B8yVmt2I.js} +2 -2
  52. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BRTYTzNF.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DEihnT0t.js} +6 -6
  53. package/dist/{Voucher-CxYWeWGh.js → Voucher-DRcHLG1a.js} +13 -13
  54. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-BEUr2Qzn.js → VoucherEditor.vue_vue_type_script_setup_true_lang-C7Sxj_Z5.js} +12 -12
  55. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CoVkJ7jY.js → ZodTextField.vue_vue_type_script_setup_true_lang-DJSNeUwi.js} +2 -2
  56. package/dist/{app-BNDMm2kI.js → app-BoN-DjbO.js} +227 -227
  57. package/dist/app.js +1 -1
  58. package/dist/{business-DCYM-74Q.js → business-CLr23aV0.js} +1 -1
  59. package/dist/{campaign-YBHBVUng.js → campaign-BfiTO1X2.js} +1 -1
  60. package/dist/{campaign-BiaIKz1Q.js → campaign-Db2CDtUO.js} +8 -8
  61. package/dist/{campaign.enum-CBPzeYMr.js → campaign.enum-DXFktsU-.js} +1 -1
  62. package/dist/{campaign.fn-Cy_rArfJ.js → campaign.fn-Cd6etiJk.js} +207 -207
  63. package/dist/{collectible.enum-CeA4YQYM.js → collectible.enum-BvR6Act_.js} +1 -1
  64. package/dist/{collection.fn-D45buMNb.js → collection.fn-BYrE69Mx.js} +2 -2
  65. package/dist/{dto-B62ATFpB.js → dto-09bFA2ak.js} +17 -17
  66. package/dist/{duplicateCampaign-WImp_6Xs.js → duplicateCampaign-y3eI3xL8.js} +2 -2
  67. package/dist/{effect-zMFtElAL.js → effect-fFbq8rS2.js} +1 -1
  68. package/dist/{email-addresses-D6P9xKPB.js → email-addresses-BaO2JIrl.js} +2 -2
  69. package/dist/{export-CRs_yVhl.js → export-BSmegpBx.js} +3 -3
  70. package/dist/{helper-RhWjQqTm.js → helper-CTwktYqy.js} +1 -1
  71. package/dist/{index-DDMoQaSc.js → index-44YnPS-2.js} +1 -1
  72. package/dist/{index-CvlwpTKX.js → index-C39blIPy.js} +6 -1
  73. package/dist/{index-Dii-DHJ2.js → index-CxKomdCz.js} +4 -4
  74. package/dist/{index-CgYajQbi.js → index-DI0uj4vF.js} +1 -1
  75. package/dist/{index-Cy5MFD-0.js → index-DRhIpyOT.js} +1 -1
  76. package/dist/{index-DeBBhbzk.js → index-DeCJGK1Q.js} +1 -1
  77. package/dist/{index-nPixknUi.js → index-DhYKVUSb.js} +2 -2
  78. package/dist/{index-h1TWWcPC.js → index-DmPId6MB.js} +3 -3
  79. package/dist/{index-n5n83HPj.js → index-Dp9WPErb.js} +1 -1
  80. package/dist/{index-B7cTB-PJ.js → index-DpaRTpHD.js} +3 -3
  81. package/dist/index-Dr1YvZ4P.js +48 -0
  82. package/dist/{index-iKdjWDgI.js → index-Dwu6WniS.js} +145 -147
  83. package/dist/{index-C272QcbD.js → index-d22vtyVf.js} +3 -3
  84. package/dist/{index.esm2017-BmcwXC9r.js → index.esm2017-Z2kwppPX.js} +37 -37
  85. package/dist/{loading-DerlV3vs.js → loading-CO7pFgcU.js} +1 -1
  86. package/dist/{lodash-BISvQ6OQ.js → lodash-CKkm7yoC.js} +1 -1
  87. package/dist/{membership-B8kRPYWq.js → membership-EYuMqKtt.js} +3 -3
  88. package/dist/{money-DNQGbbvj.js → money-CxWj48Wm.js} +1 -1
  89. package/dist/{number-I5LWbf8Y.js → number-DZHCx5Go.js} +1 -1
  90. package/dist/{objectid-p2vFUDoW.js → objectid-mZMF8pti.js} +5 -5
  91. package/dist/{plugins-Bv7VdsSc.js → plugins-_dpHP1gj.js} +3 -3
  92. package/dist/{reward-CB7aZjtn.js → reward-D1-Jp6t6.js} +1 -1
  93. package/dist/{rule-DRcXbvy1.js → rule-CKxKnTFS.js} +3 -3
  94. package/dist/rule-builder-DhnS-k1_.js +126 -0
  95. package/dist/{template-ltzns_fo.js → template-C2L0Elsh.js} +6 -6
  96. package/dist/{timezone-BnsVYcxC.js → timezone-CQUmqwM9.js} +2 -2
  97. package/dist/{trigger-DR8YN2wo.js → trigger-CIPa0S6u.js} +5 -5
  98. package/dist/{useMarketingMaterialActions-3BXMnWw5.js → useMarketingMaterialActions-Bq-Uy836.js} +3 -3
  99. package/dist/{usePagination-DHUS-0Vw.js → usePagination-BqmoP8ab.js} +1 -1
  100. package/dist/{user-BBZDjft2.js → user-CkAxgDHp.js} +1 -1
  101. package/dist/{vue-i18n-CCYEvHJA.js → vue-i18n-5y9oDx95.js} +357 -357
  102. package/dist/{xlsx-qWbyVF7x.js → xlsx-Dy95Mli3.js} +1 -1
  103. package/dist/{zod-C5h1V9iY.js → zod-CF1kthTf.js} +1 -1
  104. package/package.json +1 -1
  105. package/dist/Review-ClpuFAlW.js +0 -621
  106. package/dist/index-D6uAAAq3.js +0 -48
  107. package/dist/rule-builder-BetO8JaI.js +0 -102
@@ -1,10 +1,10 @@
1
- import { z as e, F as a, m as i, a as P } from "./index-B7cTB-PJ.js";
2
- import { B as j, C as J, E, G as O, H as r, I, J as L } from "./index-Dii-DHJ2.js";
3
- import { a as R } from "./index-h1TWWcPC.js";
4
- import { R as t } from "./rule-builder-BetO8JaI.js";
5
- import { i as o } from "./helper-RhWjQqTm.js";
6
- import { a as p } from "./index-C272QcbD.js";
7
- const x = {
1
+ import { z as e, F as a, m as i, a as U } from "./index-DpaRTpHD.js";
2
+ import { B as P, C as j, E as J, G as E, H as r, I as O, J as I } from "./index-CxKomdCz.js";
3
+ import { a as L } from "./index-DmPId6MB.js";
4
+ import { R as t } from "./rule-builder-DhnS-k1_.js";
5
+ import { i as o } from "./helper-CTwktYqy.js";
6
+ import { a as p } from "./index-d22vtyVf.js";
7
+ const R = {
8
8
  collectionName: "AuditLogs",
9
9
  transform: {
10
10
  _id: "oid",
@@ -17,7 +17,7 @@ const x = {
17
17
  fromCollection: "Businesses"
18
18
  }
19
19
  }
20
- }, D = e.enum([
20
+ }, x = e.enum([
21
21
  "GET",
22
22
  "POST",
23
23
  "PUT",
@@ -26,7 +26,7 @@ const x = {
26
26
  "OPTIONS",
27
27
  "HEAD",
28
28
  "ALL"
29
- ]), w = e.enum([
29
+ ]), D = e.enum([
30
30
  "CAMPAIGN",
31
31
  "LOCATION",
32
32
  "MARKETING MATERIALS",
@@ -36,15 +36,15 @@ const x = {
36
36
  "SETTINGS",
37
37
  "SEGMENTATION",
38
38
  "USER"
39
- ]), A = e.object({
40
- httpMethod: D,
39
+ ]), w = e.object({
40
+ httpMethod: x,
41
41
  url: e.string().min(1),
42
42
  userAgent: e.string(),
43
43
  host: e.string().min(1),
44
44
  params: e.object({}).passthrough().nullish(),
45
45
  query: e.object({}).passthrough().nullish(),
46
46
  body: e.object({}).passthrough().nullish()
47
- }), G = e.object({
47
+ }), A = e.object({
48
48
  statusCode: e.number().int().min(100).max(599),
49
49
  body: e.object({}).passthrough().nullish()
50
50
  });
@@ -52,15 +52,15 @@ e.object({
52
52
  _id: a,
53
53
  user: e.string().length(28),
54
54
  userName: e.string().min(1),
55
- userPhoneNumber: e.string().refine((n) => j(n)).nullish(),
56
- moduleType: w,
55
+ userPhoneNumber: e.string().refine((n) => P(n)).nullish(),
56
+ moduleType: D,
57
57
  business: a.nullish(),
58
58
  clientIp: e.string().nullish(),
59
59
  timestamp: e.string().datetime(),
60
- request: A,
61
- response: G
62
- }).describe(i.describe(x));
63
- const Re = {
60
+ request: w,
61
+ response: A
62
+ }).describe(i.describe(R));
63
+ const Le = {
64
64
  PROMOTION: {
65
65
  name: "Promotion Template",
66
66
  description: "Promotion template for campaign creation.",
@@ -1999,7 +1999,7 @@ t.setRuleToGroup(t.scaffoldGroup(), [
1999
1999
  ({
2000
2000
  ...t.scaffoldGroup()
2001
2001
  });
2002
- const M = e.enum([
2002
+ const G = e.enum([
2003
2003
  "MEMBER_REWARD",
2004
2004
  "PAID_LOYALTY",
2005
2005
  "COLLECT_FEEDBACK",
@@ -2009,7 +2009,7 @@ const M = e.enum([
2009
2009
  "BROADCAST",
2010
2010
  "BIRTHDAY",
2011
2011
  "GAME"
2012
- ]), F = e.enum([
2012
+ ]), M = e.enum([
2013
2013
  "text",
2014
2014
  "number",
2015
2015
  "textarea",
@@ -2039,28 +2039,28 @@ const M = e.enum([
2039
2039
  "grab_effect",
2040
2040
  "grab_quota",
2041
2041
  "grab_conditions"
2042
- ]), k = e.object({
2042
+ ]), F = e.object({
2043
2043
  label: e.string().optional(),
2044
2044
  label_locale: e.record(e.string()).nullish(),
2045
2045
  property: e.string().or(e.any()),
2046
- type: F,
2046
+ type: M,
2047
2047
  extras: e.string().optional(),
2048
2048
  isRuleChildren: e.boolean().optional()
2049
2049
  }), d = e.object({
2050
2050
  not: e.boolean().optional(),
2051
2051
  property: e.string(),
2052
2052
  value: e.any()
2053
- }), B = e.object({
2053
+ }), k = e.object({
2054
2054
  name: e.string().optional(),
2055
2055
  name_locale: e.record(e.string()).nullish(),
2056
- fields: e.array(k),
2056
+ fields: e.array(F),
2057
2057
  condition: d.optional().or(
2058
2058
  e.array(d)
2059
2059
  )
2060
- }), V = e.object({
2060
+ }), B = e.object({
2061
2061
  name: e.string(),
2062
2062
  name_locale: e.record(e.string()).nullish(),
2063
- groups: e.array(B)
2063
+ groups: e.array(k)
2064
2064
  });
2065
2065
  e.object({
2066
2066
  _id: a,
@@ -2068,11 +2068,11 @@ e.object({
2068
2068
  name_locale: e.record(e.string()).nullish(),
2069
2069
  description: e.string().nullish(),
2070
2070
  description_locale: e.record(e.string()).nullish(),
2071
- steps: e.array(V).min(1),
2072
- intention: e.array(M),
2071
+ steps: e.array(B).min(1),
2072
+ intention: e.array(G),
2073
2073
  defaultValue: e.any()
2074
2074
  }).describe(JSON.stringify({ collectionName: "MarketingTemplates" }));
2075
- const Y = {
2075
+ const V = {
2076
2076
  collectionName: "Businesses",
2077
2077
  transform: {
2078
2078
  _id: "oid"
@@ -2084,27 +2084,27 @@ e.object({
2084
2084
  name: e.string(),
2085
2085
  credit: e.number(),
2086
2086
  forceSend: e.boolean().optional()
2087
- }).describe(i.describe(Y));
2088
- const _ = e.enum(["PHONE"]), K = e.enum([
2087
+ }).describe(i.describe(V));
2088
+ const u = e.enum(["PHONE"]), Y = e.enum([
2089
2089
  "MOCEAN",
2090
2090
  "SLACK",
2091
2091
  "SMS",
2092
2092
  "EMAIL",
2093
2093
  "WHATSAPP"
2094
- ]), W = e.enum(["PENDING", "COMPLETED", "FAILED"]), X = e.enum([
2094
+ ]), K = e.enum(["PENDING", "COMPLETED", "FAILED"]), W = e.enum([
2095
2095
  "General",
2096
2096
  "Otp",
2097
2097
  "Marketing",
2098
2098
  "Ordering",
2099
2099
  "MemberInvitation",
2100
2100
  "MarketingPromotion"
2101
- ]), q = e.object({
2102
- type: _
2103
- }), y = q.extend({
2104
- type: e.literal(_.enum.PHONE),
2105
- provider: K,
2106
- usage: X.optional()
2107
- }), Q = {
2101
+ ]), X = e.object({
2102
+ type: u
2103
+ }), _ = X.extend({
2104
+ type: e.literal(u.enum.PHONE),
2105
+ provider: Y,
2106
+ usage: W.optional()
2107
+ }), q = {
2108
2108
  collectionName: "Notifications",
2109
2109
  transform: { _id: "oid", business: "oid" }
2110
2110
  };
@@ -2114,20 +2114,20 @@ e.object({
2114
2114
  target: e.string(),
2115
2115
  title: e.string().optional(),
2116
2116
  message: e.string(),
2117
- option: y,
2118
- status: W,
2117
+ option: _,
2118
+ status: K,
2119
2119
  ref: e.string().optional()
2120
- }).describe(i.describe(Q));
2121
- const Z = e.object({
2120
+ }).describe(i.describe(q));
2121
+ const Q = e.object({
2122
2122
  target: e.string(),
2123
2123
  title: e.string().optional(),
2124
2124
  message: e.string(),
2125
- option: y,
2125
+ option: _,
2126
2126
  ref: e.string().optional()
2127
2127
  });
2128
2128
  e.object({
2129
2129
  campaignId: e.string(),
2130
- notification: Z,
2130
+ notification: Q,
2131
2131
  business: e.string()
2132
2132
  });
2133
2133
  e.object({
@@ -2137,7 +2137,7 @@ e.object({
2137
2137
  const h = e.object({
2138
2138
  name: e.string().optional(),
2139
2139
  address: e.string()
2140
- }), $ = e.object({
2140
+ }), Z = e.object({
2141
2141
  filename: e.string(),
2142
2142
  content: e.instanceof(Uint8Array)
2143
2143
  });
@@ -2146,7 +2146,7 @@ e.object({
2146
2146
  to: e.array(h),
2147
2147
  subject: e.string(),
2148
2148
  html: e.string().optional(),
2149
- attachments: e.array($).optional()
2149
+ attachments: e.array(Z).optional()
2150
2150
  });
2151
2151
  e.object({
2152
2152
  subject: e.string(),
@@ -2186,7 +2186,7 @@ e.object({
2186
2186
  billId: e.string()
2187
2187
  });
2188
2188
  e.object({
2189
- amount: P,
2189
+ amount: U,
2190
2190
  member: e.string(),
2191
2191
  bill: e.string(),
2192
2192
  otp: e.string().nullish(),
@@ -2195,15 +2195,15 @@ e.object({
2195
2195
  e.object({
2196
2196
  orderId: e.string()
2197
2197
  });
2198
- var f = /* @__PURE__ */ ((n) => (n[n.feedMe = 0] = "feedMe", n[n.business = 1] = "business", n[n.restaurant = 2] = "restaurant", n))(f || {});
2199
- e.nativeEnum(f);
2198
+ var y = /* @__PURE__ */ ((n) => (n[n.feedMe = 0] = "feedMe", n[n.business = 1] = "business", n[n.restaurant = 2] = "restaurant", n))(y || {});
2199
+ e.nativeEnum(y);
2200
2200
  e.enum(["manage", "create", "read", "update", "delete"]);
2201
2201
  e.enum(["all", "restaurant", "business", "delivery", "agent"]);
2202
2202
  e.enum(["quota"]);
2203
- var b = /* @__PURE__ */ ((n) => (n.marketing = "business::marketing", n.campaign = "business::campaign", n.counter = "business::counter", n.permission = "business::permission", n.role = "business::role", n))(b || {});
2204
- e.nativeEnum(b);
2203
+ var f = /* @__PURE__ */ ((n) => (n.marketing = "business::marketing", n.campaign = "business::campaign", n.counter = "business::counter", n.permission = "business::permission", n.role = "business::role", n))(f || {});
2204
+ e.nativeEnum(f);
2205
2205
  e.enum(["restaurant"]);
2206
- const ee = e.object({
2206
+ const $ = e.object({
2207
2207
  label: e.string(),
2208
2208
  subject: e.union([e.string(), e.array(e.string())]),
2209
2209
  actions: e.union([e.string(), e.array(e.string())]),
@@ -2218,7 +2218,7 @@ e.object({
2218
2218
  userId: e.string(),
2219
2219
  email: e.string().nullish(),
2220
2220
  phoneNo: e.string().nullish(),
2221
- permissions: e.array(e.lazy(() => ee))
2221
+ permissions: e.array(e.lazy(() => $))
2222
2222
  }).describe(
2223
2223
  i.describe({
2224
2224
  collectionName: "PermissionUsers",
@@ -2227,27 +2227,27 @@ e.object({
2227
2227
  }
2228
2228
  })
2229
2229
  );
2230
- const H = e.object({
2230
+ const b = e.object({
2231
2231
  userId: e.string(),
2232
2232
  level: e.number(),
2233
2233
  role: e.string().optional(),
2234
2234
  businessId: e.string().optional(),
2235
2235
  restaurantId: e.string().optional()
2236
- }), te = e.function().args(e.any(), H).returns(e.boolean()), ae = e.function().args(H).returns(e.promise(e.array(e.any())));
2236
+ }), ee = e.function().args(e.any(), b).returns(e.boolean()), te = e.function().args(b).returns(e.promise(e.array(e.any())));
2237
2237
  e.object({
2238
- isAdmin: te,
2239
- getRules: ae
2238
+ isAdmin: ee,
2239
+ getRules: te
2240
2240
  });
2241
2241
  e.object({
2242
- transactions: e.array(J),
2243
- collections: e.array(E)
2242
+ transactions: e.array(j),
2243
+ collections: e.array(J)
2244
2244
  });
2245
- const z = e.enum([
2245
+ const H = e.enum([
2246
2246
  "ROCK_PAPER_SCISSOR"
2247
2247
  ]);
2248
- z.enum.ROCK_PAPER_SCISSOR + "";
2248
+ H.enum.ROCK_PAPER_SCISSOR + "";
2249
2249
  e.object({
2250
- type: z
2250
+ type: H
2251
2251
  });
2252
2252
  e.object({
2253
2253
  host: e.string().url(),
@@ -2256,7 +2256,7 @@ e.object({
2256
2256
  roomId: e.string()
2257
2257
  });
2258
2258
  e.enum(["FACEBOOK", "INSTAGRAM", "TV", "BRAND_APP"]);
2259
- const ne = {
2259
+ const ae = {
2260
2260
  collectionName: "MarketingMaterials",
2261
2261
  transform: {
2262
2262
  _id: "oid",
@@ -2270,7 +2270,7 @@ e.object({
2270
2270
  headline: e.string(),
2271
2271
  caption: e.string(),
2272
2272
  editedAt: e.coerce.date()
2273
- }).describe(i.describe(ne));
2273
+ }).describe(i.describe(ae));
2274
2274
  e.object({
2275
2275
  id: e.number(),
2276
2276
  name: e.string(),
@@ -2290,12 +2290,12 @@ e.object({
2290
2290
  phone: e.string().optional(),
2291
2291
  email: e.string().optional()
2292
2292
  });
2293
- const oe = e.enum([
2293
+ const ne = e.enum([
2294
2294
  "PENDING",
2295
2295
  "SUCCESS",
2296
2296
  "FAILED",
2297
2297
  "RETRYING"
2298
- ]), ie = {
2298
+ ]), oe = {
2299
2299
  collectionName: "WebhookLogs",
2300
2300
  transform: {
2301
2301
  _id: "oid",
@@ -2307,35 +2307,35 @@ e.object({
2307
2307
  business: a,
2308
2308
  type: e.string(),
2309
2309
  payload: e.record(e.any()),
2310
- status: oe,
2310
+ status: ne,
2311
2311
  response: e.any().optional(),
2312
2312
  error: e.string().optional()
2313
- }).describe(i.describe(ie));
2314
- const le = e.enum(["AUTO", "MANUAL"]);
2313
+ }).describe(i.describe(oe));
2314
+ const ie = e.enum(["AUTO", "MANUAL"]);
2315
2315
  e.enum(["IN_PROGRESS", "COMPLETED"]);
2316
- const C = e.object({
2316
+ const z = e.object({
2317
2317
  _id: a,
2318
2318
  name: e.string().min(1, "Name is required").max(50),
2319
- type: le,
2320
- event: O.optional()
2321
- }), re = e.object({
2319
+ type: ie,
2320
+ event: E.optional()
2321
+ }), le = e.object({
2322
2322
  from: e.number().int("Must be integer").min(1, "Min referral count need to start from 1"),
2323
2323
  to: e.number().int("Must be integer").nullish()
2324
- }).superRefine((n, U) => {
2325
- n.from && n.to && n.from > n.to && U.addIssue({
2324
+ }).superRefine((n, N) => {
2325
+ n.from && n.to && n.from > n.to && N.addIssue({
2326
2326
  code: "custom",
2327
2327
  message: "Max referral count must be more than min referral count"
2328
2328
  });
2329
- }), ce = e.object({
2330
- threshold: re,
2329
+ }), re = e.object({
2330
+ threshold: le,
2331
2331
  rewards: e.array(a),
2332
2332
  pf_reward: e.array(p).optional()
2333
2333
  }), m = e.object({
2334
2334
  id: e.string(),
2335
2335
  name: e.string().min(1, "Name is required").max(50, "Name must be less than 50 characters"),
2336
- rule: R.optional(),
2337
- rewards: e.array(ce)
2338
- }), pe = {
2336
+ rule: L.optional(),
2337
+ rewards: e.array(re)
2338
+ }), ce = {
2339
2339
  collectionName: "ReferralRecords",
2340
2340
  transform: {
2341
2341
  _id: "oid",
@@ -2344,25 +2344,25 @@ const C = e.object({
2344
2344
  referee: "oid",
2345
2345
  refereeReward: "oid"
2346
2346
  }
2347
- }, me = e.object({
2347
+ }, pe = e.object({
2348
2348
  completedAt: e.coerce.date(),
2349
2349
  criteria: a,
2350
2350
  ref: e.string()
2351
- }), se = e.object({
2351
+ }), me = e.object({
2352
2352
  _id: a,
2353
2353
  business: a,
2354
2354
  referer: a,
2355
2355
  referee: a,
2356
- criteria: e.array(C),
2356
+ criteria: e.array(z),
2357
2357
  reward: e.array(m),
2358
2358
  refereeReward: e.array(a).optional(),
2359
- criteria_progress: e.array(me),
2359
+ criteria_progress: e.array(pe),
2360
2360
  status: e.string(),
2361
2361
  pf_referer: r.optional(),
2362
2362
  pf_referee: r.optional(),
2363
2363
  pf_refereeReward: e.array(p).optional()
2364
- }).describe(i.describe(pe));
2365
- se.pick({
2364
+ }).describe(i.describe(ce));
2365
+ me.pick({
2366
2366
  _id: !0,
2367
2367
  business: !0,
2368
2368
  referer: !0,
@@ -2377,27 +2377,27 @@ se.pick({
2377
2377
  photoUrl: !0
2378
2378
  })
2379
2379
  });
2380
- const ge = {
2380
+ const se = {
2381
2381
  collectionName: "ReferralProgram",
2382
2382
  transform: {
2383
2383
  _id: "oid",
2384
2384
  business: "oid"
2385
2385
  }
2386
- }, T = e.object({
2386
+ }, C = e.object({
2387
2387
  _id: a,
2388
2388
  business: a,
2389
2389
  term_and_condition: e.string().optional(),
2390
2390
  refereeReward: e.array(a).optional(),
2391
2391
  reward: e.array(m),
2392
- criteria: e.array(C)
2393
- }).describe(i.describe(ge));
2392
+ criteria: e.array(z)
2393
+ }).describe(i.describe(se));
2394
2394
  e.object({
2395
2395
  referer: a,
2396
2396
  referee: a,
2397
2397
  business: a
2398
2398
  });
2399
2399
  e.object({
2400
- program: T.pick({
2400
+ program: C.pick({
2401
2401
  _id: !0,
2402
2402
  business: !0,
2403
2403
  term_and_condition: !0
@@ -2414,31 +2414,31 @@ e.object({
2414
2414
  photoUrl: !0
2415
2415
  }).optional()
2416
2416
  });
2417
- T.extend({
2417
+ C.extend({
2418
2418
  updateReferralRecord: e.boolean().optional()
2419
2419
  });
2420
- const de = e.object({
2420
+ const ge = e.object({
2421
2421
  facebookPageId: e.string(),
2422
2422
  pageName: e.string(),
2423
2423
  pageProfileImageUrl: e.string(),
2424
2424
  pageAccessToken: e.string().optional(),
2425
2425
  locationIds: e.array(a)
2426
- }), he = e.object({
2426
+ }), de = e.object({
2427
2427
  locationId: a.nullable(),
2428
2428
  googleLocationName: e.string(),
2429
2429
  displayName: e.string().optional()
2430
- }), ue = e.object({
2430
+ }), he = e.object({
2431
2431
  token: e.string().nullable(),
2432
- locations: e.array(he)
2433
- }), _e = e.object({
2432
+ locations: e.array(de)
2433
+ }), ue = e.object({
2434
2434
  token: e.string().nullable(),
2435
- pages: e.array(de)
2435
+ pages: e.array(ge)
2436
2436
  });
2437
2437
  e.object({
2438
2438
  _id: a,
2439
2439
  businessId: a,
2440
- google: ue.nullable(),
2441
- facebook: _e.nullable()
2440
+ google: he.nullable(),
2441
+ facebook: ue.nullable()
2442
2442
  }).describe(
2443
2443
  i.describe({
2444
2444
  collectionName: "reviewSourceConfig",
@@ -2471,10 +2471,6 @@ e.object({
2471
2471
  })
2472
2472
  )
2473
2473
  });
2474
- const u = e.object({
2475
- _id: e.string(),
2476
- name: e.string()
2477
- });
2478
2474
  e.object({
2479
2475
  _id: e.string(),
2480
2476
  google: e.object({
@@ -2483,7 +2479,7 @@ e.object({
2483
2479
  e.object({
2484
2480
  googleLocationName: e.string(),
2485
2481
  displayName: e.string().optional(),
2486
- location: u.nullable()
2482
+ locationId: e.string().nullable()
2487
2483
  })
2488
2484
  )
2489
2485
  }).nullable(),
@@ -2494,17 +2490,17 @@ e.object({
2494
2490
  facebookPageId: e.string(),
2495
2491
  pageName: e.string(),
2496
2492
  pageProfileImageUrl: e.string(),
2497
- locations: e.array(u)
2493
+ locationIds: e.array(e.string())
2498
2494
  })
2499
2495
  )
2500
2496
  }).nullable()
2501
2497
  });
2502
- const v = e.object({
2498
+ const T = e.object({
2503
2499
  name: e.string(),
2504
2500
  pictureUrl: e.string()
2505
- }), ye = v.extend({
2501
+ }), _e = T.extend({
2506
2502
  isAnonymous: e.boolean().optional()
2507
- }), fe = v.extend({
2503
+ }), ye = T.extend({
2508
2504
  id: e.string().optional()
2509
2505
  }), c = e.object({
2510
2506
  comment: e.string(),
@@ -2513,11 +2509,10 @@ const v = e.object({
2513
2509
  thumbnailUrl: e.string(),
2514
2510
  thumbnailLabel: e.string(),
2515
2511
  videoUrl: e.string().optional()
2516
- }), be = {
2512
+ }), fe = {
2517
2513
  collectionName: "reviews",
2518
2514
  transform: {
2519
2515
  _id: "oid",
2520
- businessId: "oid",
2521
2516
  locationId: "oid"
2522
2517
  },
2523
2518
  lookups: {
@@ -2530,67 +2525,67 @@ const v = e.object({
2530
2525
  fromCollection: "Locations"
2531
2526
  }
2532
2527
  }
2533
- }, S = e.enum(["google", "facebook", "feedme"]);
2534
- S.options;
2528
+ }, v = e.enum(["google", "facebook", "feedme"]);
2529
+ v.options;
2535
2530
  e.enum(["google", "facebook"]);
2536
- const He = e.enum([
2531
+ const be = e.enum([
2537
2532
  "createTime_desc",
2538
2533
  "createTime_asc",
2539
2534
  "rating_asc",
2540
2535
  "rating_desc"
2541
2536
  ]);
2542
2537
  e.object({
2543
- source: S.optional(),
2538
+ source: v.optional(),
2544
2539
  dateFrom: e.coerce.date().optional(),
2545
2540
  dateTo: e.coerce.date().optional(),
2546
2541
  locationId: e.string().optional(),
2547
- sort: He.optional(),
2542
+ sort: be.optional(),
2548
2543
  limit: e.coerce.number().int().positive().optional(),
2549
2544
  skip: e.coerce.number().int().min(0).optional()
2550
2545
  });
2551
- const N = e.object({
2546
+ const S = e.object({
2552
2547
  name: e.string(),
2553
2548
  pictureUrl: e.string()
2554
- }), ze = N.extend({
2549
+ }), He = S.extend({
2555
2550
  isAnonymous: e.boolean().optional()
2556
- }), Ce = N.extend({
2551
+ }), ze = S.extend({
2557
2552
  id: e.string().optional()
2558
2553
  }), s = e.object({
2559
2554
  _id: a,
2560
2555
  comment: e.string(),
2561
2556
  createTime: e.coerce.date(),
2562
- businessId: a
2563
- }), Te = s.extend({
2557
+ locationId: a
2558
+ }), Ce = s.extend({
2564
2559
  source: e.literal("google"),
2565
- reviewer: ze.optional(),
2560
+ reviewer: He.optional(),
2566
2561
  reply: c.optional(),
2567
2562
  mediaItems: e.array(l),
2568
2563
  starRating: e.number(),
2569
2564
  locationName: e.string(),
2570
2565
  locationDisplayName: e.string()
2571
- }), ve = s.extend({
2566
+ }), Te = s.extend({
2572
2567
  source: e.literal("facebook"),
2573
- reviewer: Ce.optional(),
2568
+ reviewer: ze.optional(),
2574
2569
  isPositive: e.boolean().optional(),
2575
2570
  pageId: e.string(),
2576
2571
  pageName: e.string()
2577
- }), Se = s.extend({
2572
+ }), ve = s.extend({
2578
2573
  source: e.literal("feedme"),
2579
- reviewer: I,
2574
+ reviewer: O,
2580
2575
  reply: c.optional(),
2581
2576
  starRating: e.number(),
2582
- location: L.optional(),
2577
+ location: I.optional(),
2583
2578
  mediaItems: e.array(l)
2584
2579
  });
2585
2580
  e.discriminatedUnion("source", [
2581
+ Ce,
2586
2582
  Te,
2587
- ve,
2588
- Se
2583
+ ve
2589
2584
  ]);
2590
2585
  e.object({
2591
2586
  comment: e.string(),
2592
2587
  starRating: e.number(),
2593
- locationId: e.string().optional(),
2588
+ billMetaId: e.string(),
2594
2589
  mediaItems: e.array(l).optional()
2595
2590
  });
2596
2591
  const g = e.object({
@@ -2598,42 +2593,45 @@ const g = e.object({
2598
2593
  externalId: e.string().optional(),
2599
2594
  comment: e.string(),
2600
2595
  createTime: e.coerce.date(),
2601
- businessId: a
2602
- }), Ne = g.extend({
2596
+ // The marketing Location the review belongs to. For feedme reviews this is
2597
+ // the restaurantId (Location._id === restaurantId); for google/facebook it
2598
+ // is resolved from the review-source location/page mapping at sync time.
2599
+ locationId: a
2600
+ }), Se = g.extend({
2603
2601
  source: e.literal("google"),
2604
- reviewer: ye.optional(),
2602
+ reviewer: _e.optional(),
2605
2603
  reply: c.optional(),
2606
2604
  mediaItems: e.array(l),
2607
2605
  starRating: e.number(),
2608
2606
  locationName: e.string(),
2609
2607
  locationDisplayName: e.string()
2610
- }), Ue = g.extend({
2608
+ }), Ne = g.extend({
2611
2609
  source: e.literal("facebook"),
2612
- reviewer: fe.optional(),
2610
+ reviewer: ye.optional(),
2613
2611
  isPositive: e.boolean().optional(),
2614
2612
  pageId: e.string(),
2615
2613
  pageName: e.string()
2616
- }), Pe = g.extend({
2614
+ }), Ue = g.extend({
2617
2615
  source: e.literal("feedme"),
2618
2616
  reviewerId: a,
2619
2617
  reviewer: e.any().optional(),
2620
2618
  reply: c.optional(),
2621
2619
  starRating: e.number(),
2622
- locationId: a.optional(),
2620
+ billMetaId: a.optional(),
2623
2621
  location: e.any().optional(),
2624
2622
  mediaItems: e.array(l)
2625
2623
  });
2626
2624
  e.discriminatedUnion("source", [
2625
+ Se,
2627
2626
  Ne,
2628
- Ue,
2629
- Pe
2630
- ]).describe(i.describe(be));
2627
+ Ue
2628
+ ]).describe(i.describe(fe));
2631
2629
  export {
2632
- M as F,
2633
- Re as T,
2634
- ce as a,
2635
- C as b,
2630
+ G as F,
2631
+ Le as T,
2632
+ re as a,
2633
+ z as b,
2636
2634
  m as c,
2637
- D as d,
2638
- w as e
2635
+ x as d,
2636
+ D as e
2639
2637
  };
@@ -1,6 +1,6 @@
1
- import { F as o, e as t, f as a } from "./index-h1TWWcPC.js";
2
- import { z as e, F as i, m as d } from "./index-B7cTB-PJ.js";
3
- import { F as c } from "./collectible.enum-CeA4YQYM.js";
1
+ import { F as o, e as t, f as a } from "./index-DmPId6MB.js";
2
+ import { z as e, F as i, m as d } from "./index-DpaRTpHD.js";
3
+ import { F as c } from "./collectible.enum-BvR6Act_.js";
4
4
  const l = e.enum(["VOUCHER", "LOYALTY"]), n = e.object({
5
5
  type: e.literal(l.enum.VOUCHER),
6
6
  collectible: i,