@feedmepos/mf-connect 0.1.98-beta.1 → 0.1.98-beta.10

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 (105) hide show
  1. package/dist/{App-EPNXLOQz.js → App-CuoqxGQ_.js} +7 -7
  2. package/dist/{AuditLogs-CadZXkap.js → AuditLogs-3VOqNuiy.js} +9 -9
  3. package/dist/{Bin-CEWFX1MK.js → Bin-DJAVHuWd.js} +8 -8
  4. package/dist/{Broadcast-DC8W46mc.js → Broadcast-u9MAxxwk.js} +9 -9
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DsojUEnT.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-h5E8WsFD.js} +5 -5
  6. package/dist/{Card-BLFHOVL5.js → Card-DxH_641i.js} +18 -18
  7. package/dist/{Collections-CVQV9gAI.js → Collections-C9La6TzV.js} +7 -7
  8. package/dist/{Credit-Bvd1uiUU.js → Credit-DmRE1f4J.js} +9 -9
  9. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-DMHQ36PW.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-DpOkDd5R.js} +30 -30
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-L8fftBYg.js → EffectSheet.vue_vue_type_style_index_0_lang-CS34jatD.js} +6 -6
  11. package/dist/{Experience-bKhm3DP2.js → Experience-C0FyDsmi.js} +9 -9
  12. package/dist/{FileSaver.min-CgnAdnBE.js → FileSaver.min-Be-90ifa.js} +1 -1
  13. package/dist/{Game-BTZ5Ftp5.js → Game-DYi-DQBb.js} +10 -10
  14. package/dist/{Grab-DMuSoVGl.js → Grab-BpIj6ILT.js} +8 -8
  15. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-hMmCNoZI.js → ImageInput.vue_vue_type_script_setup_true_lang-yfl42RYQ.js} +1 -1
  16. package/dist/{Index-BNh-_EZa.js → Index-BUTAUbSs.js} +10 -10
  17. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-COoygUYu.js → LocationPicker.vue_vue_type_script_setup_true_lang-Xt8jbqnN.js} +1 -1
  18. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-D0wKkrBj.js → LottieAnimation.vue_vue_type_script_setup_true_lang-Cofvjj26.js} +1 -1
  19. package/dist/{LoyaltyDashboard-Do06Mjzo.js → LoyaltyDashboard-D-uRlQr4.js} +4 -4
  20. package/dist/{MainLayout-C_Zu8e2b.js → MainLayout-Bix1-Ejy.js} +1 -1
  21. package/dist/{Marketing-DHTow_lX.js → Marketing-BK84KRoM.js} +4 -4
  22. package/dist/{MarketingMaterialEdit-BZqVEaXl.js → MarketingMaterialEdit-Njw8eFdM.js} +6 -6
  23. package/dist/{Member-DNQICbO9.js → Member-BglFXn-U.js} +11 -11
  24. package/dist/{MemberList-B5f-zT_3.js → MemberList-BUaDqh-4.js} +25 -25
  25. package/dist/{MemberTransactions-BmmgHC1I.js → MemberTransactions-cdNWr7OQ.js} +1 -1
  26. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DhlFz8So.js → MessageInput.vue_vue_type_script_setup_true_lang-By18HGU7.js} +9 -9
  27. package/dist/{Mission-CyUldhj4.js → Mission-DkacZ5on.js} +10 -10
  28. package/dist/{Overview-If_YcRY8.js → Overview-D6QiG05G.js} +18 -18
  29. package/dist/{Point-DXgR4D2b.js → Point-B7Dnvqds.js} +9 -9
  30. package/dist/{Promotion-8KrS5PGT.js → Promotion-OSAQAs7v.js} +10 -10
  31. package/dist/{Queue-ypegp0sQ.js → Queue-VLWvCP3n.js} +14 -14
  32. package/dist/{Record-C1eVdBIL.js → Record-DcvHadqJ.js} +9 -9
  33. package/dist/Review-B5P5fBoG.js +1186 -0
  34. package/dist/{ReviewFacebookCallback-zNKnoxr_.js → ReviewFacebookCallback-DK423k4B.js} +4 -4
  35. package/dist/ReviewGoogleCallback-BkWwQXpL.js +208 -0
  36. package/dist/{Reward-B_k-VLJn.js → Reward-B5UnJceg.js} +16 -16
  37. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BUl5B7lH.js → RewardGroup.vue_vue_type_script_setup_true_lang-CFN_ag0M.js} +11 -11
  38. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-D93zAujE.js → RuleGroup.vue_vue_type_script_setup_true_lang-CaZ-rcMt.js} +13 -13
  39. package/dist/{Segment-PJLbJ6YE.js → Segment-BuZW_Z-L.js} +23 -23
  40. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-BLwf6QCO.js → SelectItems.vue_vue_type_script_setup_true_lang-d3q61-tE.js} +2 -2
  41. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-VoddUHxA.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-D9jf_1QH.js} +12 -12
  42. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-DOXfYdxf.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CHo3hDkD.js} +4 -4
  43. package/dist/{Setting-DItVUJHA.js → Setting-CKvCYEZ1.js} +14 -14
  44. package/dist/{SettingAdvertisements-Bfvr60OW.js → SettingAdvertisements-DMDLvJuR.js} +12 -12
  45. package/dist/{Store-hyTJyNWv.js → Store-YCCrdeiS.js} +21 -21
  46. package/dist/{StoreRewards-B7c20AF5.js → StoreRewards-DrUeDPKk.js} +15 -15
  47. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-Bl438tVa.js → StoreTransactions.vue_vue_type_script_setup_true_lang-DxQ-kH_8.js} +21 -21
  48. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DBb3Zfuz.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BzcC6nYi.js} +2 -2
  49. package/dist/{Tier-CuulnY8J.js → Tier-cX6lgE5V.js} +22 -22
  50. package/dist/{Title-Bf9ZiFGW.js → Title-BO7yS6FQ.js} +19 -19
  51. package/dist/{Transaction-reVAaf86.js → Transaction-dwbikp5f.js} +2 -2
  52. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BZP9jfwG.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-C8QHAIeV.js} +6 -6
  53. package/dist/{Voucher-E8R2cCl-.js → Voucher-D5RtI53O.js} +13 -13
  54. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-1mclPYkp.js → VoucherEditor.vue_vue_type_script_setup_true_lang-Dw5trcej.js} +12 -12
  55. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-xP5smS4G.js → ZodTextField.vue_vue_type_script_setup_true_lang-Db1Yid5T.js} +2 -2
  56. package/dist/{app-BdRRCAGj.js → app-veCyMzJU.js} +1028 -888
  57. package/dist/app.js +1 -1
  58. package/dist/{business-caUtvXxX.js → business-BvtZwaVt.js} +1 -1
  59. package/dist/{campaign-CDFEhdIH.js → campaign-BbaSbea1.js} +1 -1
  60. package/dist/{campaign-CPtzFxiR.js → campaign-CyVE2I7v.js} +10 -10
  61. package/dist/{campaign.enum-p1buII_I.js → campaign.enum-B4old-6y.js} +1 -1
  62. package/dist/campaign.fn-DuG421Su.js +776 -0
  63. package/dist/{collectible.enum-CJ30_XmW.js → collectible.enum-C4_aVSzr.js} +1 -1
  64. package/dist/{duplicateCampaign-DLfhHm07.js → duplicateCampaign-BsXuQigf.js} +2 -2
  65. package/dist/{effect-BJC34M9S.js → effect-CCpybKfz.js} +1 -1
  66. package/dist/{email-addresses-D1aYCi0p.js → email-addresses-DDX4Mi6S.js} +2 -2
  67. package/dist/{export-ChFEuUc5.js → export-BkbeKb2b.js} +3 -3
  68. package/dist/{helper-BNWd3eM2.js → helper-DAxddTyP.js} +1 -1
  69. package/dist/{index-6ZSFSZ-H.js → index-B87M_APu.js} +293 -234
  70. package/dist/{index-BWQK3rqq.js → index-BI2mt6Pz.js} +3 -3
  71. package/dist/{index-CIin0Pv0.js → index-BkdCXelA.js} +1 -1
  72. package/dist/{index-Do2cnzep.js → index-C8dM9zHa.js} +1 -1
  73. package/dist/{index-Dp3CLZSg.js → index-CKWDVDJG.js} +2 -2
  74. package/dist/{index-CeSEAz_T.js → index-CO9CGqzQ.js} +1 -1
  75. package/dist/{index-0SZADZbB.js → index-CYwrTv3T.js} +2 -2
  76. package/dist/{index-Br17eSOV.js → index-CeUevans.js} +1 -1
  77. package/dist/{index-CAVSuo6k.js → index-ClwNTy-6.js} +3 -3
  78. package/dist/{index-BoeHTTcl.js → index-CoX84Njy.js} +1 -1
  79. package/dist/{index-B9xvXnEM.js → index-EAtgJDuz.js} +3 -3
  80. package/dist/{index-Dcn4qaYt.js → index-M7aip9Cz.js} +1 -1
  81. package/dist/{index-DNsYSxpY.js → index-NyBcZeNK.js} +359 -353
  82. package/dist/{index-B4dazSVT.js → index-mGQbobml.js} +30 -17
  83. package/dist/{index.esm2017-CYGo-PcK.js → index.esm2017-CJ1DBw4k.js} +69 -69
  84. package/dist/{loading-DtPQnEA5.js → loading-Bpwlx9Qf.js} +1 -1
  85. package/dist/{lodash-BvTKz5Pn.js → lodash-DuvaOX4r.js} +1 -1
  86. package/dist/{membership-Csnvqeql.js → membership-BpmZ1RRg.js} +3 -3
  87. package/dist/{money-CwRxILG1.js → money-BIv7vBs6.js} +1 -1
  88. package/dist/{number-qcECHCpu.js → number-BBWkXSgJ.js} +1 -1
  89. package/dist/objectid-CTrVbFLZ.js +145 -0
  90. package/dist/{plugins-BBpKk0ld.js → plugins-BgZow8Qr.js} +3 -3
  91. package/dist/{reward-CX1axU5-.js → reward-mI3VO63r.js} +1 -1
  92. package/dist/{rule-pKsATz8r.js → rule-DHb2dJky.js} +3 -3
  93. package/dist/{template-BSuapoPb.js → template-CFQFUU6d.js} +6 -6
  94. package/dist/{trigger-DnMktlx-.js → trigger-B5HKpszv.js} +5 -5
  95. package/dist/{useMarketingMaterialActions-Bu0-ny3z.js → useMarketingMaterialActions-DeZG3azC.js} +3 -3
  96. package/dist/{usePagination-CzfJhepV.js → usePagination-C19TYQjJ.js} +1 -1
  97. package/dist/{user-BLDWqYm_.js → user-CR2Dbom0.js} +1 -1
  98. package/dist/{vue-i18n-bssxjuw_.js → vue-i18n-tHTzSWDK.js} +248 -248
  99. package/dist/{xlsx-xNwsJDub.js → xlsx-BLlEAp7n.js} +1 -1
  100. package/dist/{zod-Cu18aMVT.js → zod-ZxC0hnix.js} +1 -1
  101. package/package.json +1 -1
  102. package/dist/Review-fsYAsdHU.js +0 -871
  103. package/dist/ReviewGoogleCallback-CpCT0ZYL.js +0 -213
  104. package/dist/campaign.fn-DerIK7yj.js +0 -776
  105. package/dist/objectid-BKWyHH4F.js +0 -145
@@ -1,38 +1,38 @@
1
- import { z as e, F as o, m, a as R } from "./index-BWQK3rqq.js";
2
- import { B as L, C as x, E as D, G as w, H as g, I as A, J as G } from "./index-DNsYSxpY.js";
3
- import { _ as M, l as H, a as F } from "./index-CAVSuo6k.js";
4
- import { i as p } from "./helper-BNWd3eM2.js";
5
- import { a as _ } from "./index-B9xvXnEM.js";
6
- function h(n, a) {
1
+ import { z as e, F as n, m, a as R } from "./index-BI2mt6Pz.js";
2
+ import { B as L, C as x, E as D, G as w, H as g } from "./index-NyBcZeNK.js";
3
+ import { _ as A, l as C, a as G } from "./index-ClwNTy-6.js";
4
+ import { i as p } from "./helper-DAxddTyP.js";
5
+ import { a as H } from "./index-EAtgJDuz.js";
6
+ function f(o, a) {
7
7
  let i = "", r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
8
8
  const l = r.length;
9
- for (let c = 0; c < n; c++)
9
+ for (let c = 0; c < o; c++)
10
10
  i += r.charAt(Math.floor(Math.random() * l));
11
11
  return i;
12
12
  }
13
- function u(n) {
14
- return !n.property && "rules" in n;
13
+ function b(o) {
14
+ return !o.property && "rules" in o;
15
15
  }
16
- function k(n) {
17
- return "property" in n && !!n.property;
16
+ function M(o) {
17
+ return "property" in o && !!o.property;
18
18
  }
19
- const B = "g_schedule";
20
- function V(n) {
21
- return n.split(/\r?\n/).filter((a) => !a.trim().toUpperCase().startsWith("DTSTART")).join(`
19
+ const F = "g_schedule";
20
+ function k(o) {
21
+ return o.split(/\r?\n/).filter((a) => !a.trim().toUpperCase().startsWith("DTSTART")).join(`
22
22
  `).trim();
23
23
  }
24
- function Y(n, a = !1) {
25
- const i = M.cloneDeep(n);
26
- if (k(i)) {
24
+ function B(o, a = !1) {
25
+ const i = A.cloneDeep(o);
26
+ if (M(i)) {
27
27
  const r = i.conditions;
28
- return !a && r && typeof r._rrule == "string" && (r._rrule = V(
28
+ return !a && r && typeof r._rrule == "string" && (r._rrule = k(
29
29
  r._rrule
30
30
  )), i;
31
31
  }
32
- if (u(i))
32
+ if (b(i))
33
33
  for (const r in i.rules) {
34
- const l = i.rules[r], c = a || u(l) && l.name === B;
35
- i.rules[r] = Y(
34
+ const l = i.rules[r], c = a || b(l) && l.name === F;
35
+ i.rules[r] = B(
36
36
  l,
37
37
  c
38
38
  );
@@ -42,14 +42,14 @@ function Y(n, a = !1) {
42
42
  class t {
43
43
  static scaffoldGroup(a) {
44
44
  return {
45
- name: a ?? `g_${h(4)}`,
45
+ name: a ?? `g_${f(4)}`,
46
46
  rules: {},
47
47
  logic: ""
48
48
  };
49
49
  }
50
50
  static scaffoldEntry(a) {
51
51
  return {
52
- name: `r_${h(4)}`,
52
+ name: `r_${f(4)}`,
53
53
  property: a ?? "",
54
54
  conditions: {},
55
55
  negated: !1
@@ -57,7 +57,7 @@ class t {
57
57
  }
58
58
  static constructEntry(a, i, r, l) {
59
59
  return {
60
- name: l ?? `e_${h(4)}`,
60
+ name: l ?? `e_${f(4)}`,
61
61
  property: a,
62
62
  conditions: {
63
63
  [i]: r
@@ -70,16 +70,16 @@ class t {
70
70
  }
71
71
  static constructLogic(a, i) {
72
72
  const r = i ?? t.getLogic(a);
73
- return Object.entries(a.rules).map(([l, c]) => u(c) ? l : `${c.negated ? "!" : ""}${l}`).join(` ${r} `);
73
+ return Object.entries(a.rules).map(([l, c]) => b(c) ? l : `${c.negated ? "!" : ""}${l}`).join(` ${r} `);
74
74
  }
75
75
  static setRuleToGroup(a, i, r) {
76
- let l = H.cloneDeep(a);
76
+ let l = C.cloneDeep(a);
77
77
  return Object.keys(l.rules).length === 0 && (l = t.scaffoldGroup(l.name)), Array.isArray(i) ? i.forEach((c) => {
78
78
  l.rules[c.name] = c;
79
79
  }) : l.rules[i.name] = i, l.logic = t.constructLogic(l, r), l;
80
80
  }
81
81
  static removeEntry(a, i, r) {
82
- const l = H.cloneDeep(a);
82
+ const l = C.cloneDeep(a);
83
83
  return delete l.rules[i], l.logic = t.constructLogic(l, r), l;
84
84
  }
85
85
  static constructRule(a) {
@@ -111,18 +111,18 @@ class t {
111
111
  static isRuleExceed(a, i) {
112
112
  const l = Object.keys(a.rules).length + (Array.isArray(i) ? i.length : 1);
113
113
  if (l > 10)
114
- throw new K(10, l);
114
+ throw new V(10, l);
115
115
  return !0;
116
116
  }
117
117
  }
118
- class K extends Error {
118
+ class V extends Error {
119
119
  constructor(a, i) {
120
120
  super(
121
121
  `Maximum of ${a} rules allowed per group. Attempted to add ${i} rules.`
122
122
  ), this.name = "MaxRulesExceededError";
123
123
  }
124
124
  }
125
- const W = {
125
+ const Y = {
126
126
  collectionName: "AuditLogs",
127
127
  transform: {
128
128
  _id: "oid",
@@ -135,7 +135,7 @@ const W = {
135
135
  fromCollection: "Businesses"
136
136
  }
137
137
  }
138
- }, X = e.enum([
138
+ }, K = e.enum([
139
139
  "GET",
140
140
  "POST",
141
141
  "PUT",
@@ -144,7 +144,7 @@ const W = {
144
144
  "OPTIONS",
145
145
  "HEAD",
146
146
  "ALL"
147
- ]), q = e.enum([
147
+ ]), W = e.enum([
148
148
  "CAMPAIGN",
149
149
  "LOCATION",
150
150
  "MARKETING MATERIALS",
@@ -154,31 +154,31 @@ const W = {
154
154
  "SETTINGS",
155
155
  "SEGMENTATION",
156
156
  "USER"
157
- ]), Q = e.object({
158
- httpMethod: X,
157
+ ]), X = e.object({
158
+ httpMethod: K,
159
159
  url: e.string().min(1),
160
160
  userAgent: e.string(),
161
161
  host: e.string().min(1),
162
162
  params: e.object({}).passthrough().nullish(),
163
163
  query: e.object({}).passthrough().nullish(),
164
164
  body: e.object({}).passthrough().nullish()
165
- }), $ = e.object({
165
+ }), q = e.object({
166
166
  statusCode: e.number().int().min(100).max(599),
167
167
  body: e.object({}).passthrough().nullish()
168
168
  });
169
169
  e.object({
170
- _id: o,
170
+ _id: n,
171
171
  user: e.string().length(28),
172
172
  userName: e.string().min(1),
173
- userPhoneNumber: e.string().refine((n) => L(n)).nullish(),
174
- moduleType: q,
175
- business: o.nullish(),
173
+ userPhoneNumber: e.string().refine((o) => L(o)).nullish(),
174
+ moduleType: W,
175
+ business: n.nullish(),
176
176
  clientIp: e.string().nullish(),
177
177
  timestamp: e.string().datetime(),
178
- request: Q,
179
- response: $
180
- }).describe(m.describe(W));
181
- const Ye = {
178
+ request: X,
179
+ response: q
180
+ }).describe(m.describe(Y));
181
+ const We = {
182
182
  PROMOTION: {
183
183
  name: "Promotion Template",
184
184
  description: "Promotion template for campaign creation.",
@@ -2117,7 +2117,7 @@ t.setRuleToGroup(t.scaffoldGroup(), [
2117
2117
  ({
2118
2118
  ...t.scaffoldGroup()
2119
2119
  });
2120
- const Z = e.enum([
2120
+ const Q = e.enum([
2121
2121
  "MEMBER_REWARD",
2122
2122
  "PAID_LOYALTY",
2123
2123
  "COLLECT_FEEDBACK",
@@ -2127,7 +2127,7 @@ const Z = e.enum([
2127
2127
  "BROADCAST",
2128
2128
  "BIRTHDAY",
2129
2129
  "GAME"
2130
- ]), ee = e.enum([
2130
+ ]), $ = e.enum([
2131
2131
  "text",
2132
2132
  "number",
2133
2133
  "textarea",
@@ -2157,114 +2157,114 @@ const Z = e.enum([
2157
2157
  "grab_effect",
2158
2158
  "grab_quota",
2159
2159
  "grab_conditions"
2160
- ]), te = e.object({
2160
+ ]), Z = e.object({
2161
2161
  label: e.string().optional(),
2162
2162
  label_locale: e.record(e.string()).nullish(),
2163
2163
  property: e.string().or(e.any()),
2164
- type: ee,
2164
+ type: $,
2165
2165
  extras: e.string().optional(),
2166
2166
  isRuleChildren: e.boolean().optional()
2167
- }), z = e.object({
2167
+ }), T = e.object({
2168
2168
  not: e.boolean().optional(),
2169
2169
  property: e.string(),
2170
2170
  value: e.any()
2171
- }), ae = e.object({
2171
+ }), ee = e.object({
2172
2172
  name: e.string().optional(),
2173
2173
  name_locale: e.record(e.string()).nullish(),
2174
- fields: e.array(te),
2175
- condition: z.optional().or(
2176
- e.array(z)
2174
+ fields: e.array(Z),
2175
+ condition: T.optional().or(
2176
+ e.array(T)
2177
2177
  )
2178
- }), ne = e.object({
2178
+ }), te = e.object({
2179
2179
  name: e.string(),
2180
2180
  name_locale: e.record(e.string()).nullish(),
2181
- groups: e.array(ae)
2181
+ groups: e.array(ee)
2182
2182
  });
2183
2183
  e.object({
2184
- _id: o,
2184
+ _id: n,
2185
2185
  name: e.string(),
2186
2186
  name_locale: e.record(e.string()).nullish(),
2187
2187
  description: e.string().nullish(),
2188
2188
  description_locale: e.record(e.string()).nullish(),
2189
- steps: e.array(ne).min(1),
2190
- intention: e.array(Z),
2189
+ steps: e.array(te).min(1),
2190
+ intention: e.array(Q),
2191
2191
  defaultValue: e.any()
2192
2192
  }).describe(JSON.stringify({ collectionName: "MarketingTemplates" }));
2193
- const oe = {
2193
+ const ae = {
2194
2194
  collectionName: "Businesses",
2195
2195
  transform: {
2196
2196
  _id: "oid"
2197
2197
  }
2198
2198
  };
2199
2199
  e.object({
2200
- _id: o,
2200
+ _id: n,
2201
2201
  ownerId: e.string(),
2202
2202
  name: e.string(),
2203
2203
  credit: e.number(),
2204
2204
  forceSend: e.boolean().optional()
2205
- }).describe(m.describe(oe));
2206
- const T = e.enum(["PHONE"]), ie = e.enum([
2205
+ }).describe(m.describe(ae));
2206
+ const S = e.enum(["PHONE"]), ne = e.enum([
2207
2207
  "MOCEAN",
2208
2208
  "SLACK",
2209
2209
  "SMS",
2210
2210
  "EMAIL",
2211
2211
  "WHATSAPP"
2212
- ]), le = e.enum(["PENDING", "COMPLETED", "FAILED"]), re = e.enum([
2212
+ ]), oe = e.enum(["PENDING", "COMPLETED", "FAILED"]), ie = e.enum([
2213
2213
  "General",
2214
2214
  "Otp",
2215
2215
  "Marketing",
2216
2216
  "Ordering",
2217
2217
  "MemberInvitation",
2218
2218
  "MarketingPromotion"
2219
- ]), ce = e.object({
2220
- type: T
2221
- }), v = ce.extend({
2222
- type: e.literal(T.enum.PHONE),
2223
- provider: ie,
2224
- usage: re.optional()
2225
- }), pe = {
2219
+ ]), le = e.object({
2220
+ type: S
2221
+ }), N = le.extend({
2222
+ type: e.literal(S.enum.PHONE),
2223
+ provider: ne,
2224
+ usage: ie.optional()
2225
+ }), re = {
2226
2226
  collectionName: "Notifications",
2227
2227
  transform: { _id: "oid", business: "oid" }
2228
2228
  };
2229
2229
  e.object({
2230
- _id: o,
2231
- business: o,
2230
+ _id: n,
2231
+ business: n,
2232
2232
  target: e.string(),
2233
2233
  title: e.string().optional(),
2234
2234
  message: e.string(),
2235
- option: v,
2236
- status: le,
2235
+ option: N,
2236
+ status: oe,
2237
2237
  ref: e.string().optional()
2238
- }).describe(m.describe(pe));
2239
- const me = e.object({
2238
+ }).describe(m.describe(re));
2239
+ const ce = e.object({
2240
2240
  target: e.string(),
2241
2241
  title: e.string().optional(),
2242
2242
  message: e.string(),
2243
- option: v,
2243
+ option: N,
2244
2244
  ref: e.string().optional()
2245
2245
  });
2246
2246
  e.object({
2247
2247
  campaignId: e.string(),
2248
- notification: me,
2248
+ notification: ce,
2249
2249
  business: e.string()
2250
2250
  });
2251
2251
  e.object({
2252
2252
  phone: e.string(),
2253
2253
  message: e.string()
2254
2254
  });
2255
- const C = e.object({
2255
+ const v = e.object({
2256
2256
  name: e.string().optional(),
2257
2257
  address: e.string()
2258
- }), se = e.object({
2258
+ }), pe = e.object({
2259
2259
  filename: e.string(),
2260
2260
  content: e.instanceof(Uint8Array)
2261
2261
  });
2262
2262
  e.object({
2263
- from: C.optional(),
2264
- to: e.array(C),
2263
+ from: v.optional(),
2264
+ to: e.array(v),
2265
2265
  subject: e.string(),
2266
2266
  html: e.string().optional(),
2267
- attachments: e.array(se).optional()
2267
+ attachments: e.array(pe).optional()
2268
2268
  });
2269
2269
  e.object({
2270
2270
  subject: e.string(),
@@ -2313,15 +2313,15 @@ e.object({
2313
2313
  e.object({
2314
2314
  orderId: e.string()
2315
2315
  });
2316
- var S = /* @__PURE__ */ ((n) => (n[n.feedMe = 0] = "feedMe", n[n.business = 1] = "business", n[n.restaurant = 2] = "restaurant", n))(S || {});
2317
- e.nativeEnum(S);
2316
+ var U = /* @__PURE__ */ ((o) => (o[o.feedMe = 0] = "feedMe", o[o.business = 1] = "business", o[o.restaurant = 2] = "restaurant", o))(U || {});
2317
+ e.nativeEnum(U);
2318
2318
  e.enum(["manage", "create", "read", "update", "delete"]);
2319
2319
  e.enum(["all", "restaurant", "business", "delivery", "agent"]);
2320
2320
  e.enum(["quota"]);
2321
- var N = /* @__PURE__ */ ((n) => (n.marketing = "business::marketing", n.campaign = "business::campaign", n.counter = "business::counter", n.permission = "business::permission", n.role = "business::role", n))(N || {});
2322
- e.nativeEnum(N);
2321
+ var P = /* @__PURE__ */ ((o) => (o.marketing = "business::marketing", o.campaign = "business::campaign", o.counter = "business::counter", o.permission = "business::permission", o.role = "business::role", o))(P || {});
2322
+ e.nativeEnum(P);
2323
2323
  e.enum(["restaurant"]);
2324
- const ge = e.object({
2324
+ const me = e.object({
2325
2325
  label: e.string(),
2326
2326
  subject: e.union([e.string(), e.array(e.string())]),
2327
2327
  actions: e.union([e.string(), e.array(e.string())]),
@@ -2331,12 +2331,12 @@ const ge = e.object({
2331
2331
  reason: e.string().optional()
2332
2332
  });
2333
2333
  e.object({
2334
- _id: o,
2334
+ _id: n,
2335
2335
  businessId: e.string(),
2336
2336
  userId: e.string(),
2337
2337
  email: e.string().nullish(),
2338
2338
  phoneNo: e.string().nullish(),
2339
- permissions: e.array(e.lazy(() => ge))
2339
+ permissions: e.array(e.lazy(() => me))
2340
2340
  }).describe(
2341
2341
  m.describe({
2342
2342
  collectionName: "PermissionUsers",
@@ -2345,27 +2345,27 @@ e.object({
2345
2345
  }
2346
2346
  })
2347
2347
  );
2348
- const U = e.object({
2348
+ const j = e.object({
2349
2349
  userId: e.string(),
2350
2350
  level: e.number(),
2351
2351
  role: e.string().optional(),
2352
2352
  businessId: e.string().optional(),
2353
2353
  restaurantId: e.string().optional()
2354
- }), de = e.function().args(e.any(), U).returns(e.boolean()), he = e.function().args(U).returns(e.promise(e.array(e.any())));
2354
+ }), se = e.function().args(e.any(), j).returns(e.boolean()), ge = e.function().args(j).returns(e.promise(e.array(e.any())));
2355
2355
  e.object({
2356
- isAdmin: de,
2357
- getRules: he
2356
+ isAdmin: se,
2357
+ getRules: ge
2358
2358
  });
2359
2359
  e.object({
2360
2360
  transactions: e.array(x),
2361
2361
  collections: e.array(D)
2362
2362
  });
2363
- const P = e.enum([
2363
+ const J = e.enum([
2364
2364
  "ROCK_PAPER_SCISSOR"
2365
2365
  ]);
2366
- P.enum.ROCK_PAPER_SCISSOR + "";
2366
+ J.enum.ROCK_PAPER_SCISSOR + "";
2367
2367
  e.object({
2368
- type: P
2368
+ type: J
2369
2369
  });
2370
2370
  e.object({
2371
2371
  host: e.string().url(),
@@ -2374,7 +2374,7 @@ e.object({
2374
2374
  roomId: e.string()
2375
2375
  });
2376
2376
  e.enum(["FACEBOOK", "INSTAGRAM", "TV", "BRAND_APP"]);
2377
- const ue = {
2377
+ const de = {
2378
2378
  collectionName: "MarketingMaterials",
2379
2379
  transform: {
2380
2380
  _id: "oid",
@@ -2382,13 +2382,13 @@ const ue = {
2382
2382
  }
2383
2383
  };
2384
2384
  e.object({
2385
- _id: o,
2386
- business: o,
2385
+ _id: n,
2386
+ business: n,
2387
2387
  imageUrl: e.string().url(),
2388
2388
  headline: e.string(),
2389
2389
  caption: e.string(),
2390
2390
  editedAt: e.coerce.date()
2391
- }).describe(m.describe(ue));
2391
+ }).describe(m.describe(de));
2392
2392
  e.object({
2393
2393
  id: e.number(),
2394
2394
  name: e.string(),
@@ -2408,12 +2408,12 @@ e.object({
2408
2408
  phone: e.string().optional(),
2409
2409
  email: e.string().optional()
2410
2410
  });
2411
- const _e = e.enum([
2411
+ const ue = e.enum([
2412
2412
  "PENDING",
2413
2413
  "SUCCESS",
2414
2414
  "FAILED",
2415
2415
  "RETRYING"
2416
- ]), ye = {
2416
+ ]), he = {
2417
2417
  collectionName: "WebhookLogs",
2418
2418
  transform: {
2419
2419
  _id: "oid",
@@ -2421,39 +2421,39 @@ const _e = e.enum([
2421
2421
  }
2422
2422
  };
2423
2423
  e.object({
2424
- _id: o,
2425
- business: o,
2424
+ _id: n,
2425
+ business: n,
2426
2426
  type: e.string(),
2427
2427
  payload: e.record(e.any()),
2428
- status: _e,
2428
+ status: ue,
2429
2429
  response: e.any().optional(),
2430
2430
  error: e.string().optional()
2431
- }).describe(m.describe(ye));
2432
- const fe = e.enum(["AUTO", "MANUAL"]);
2431
+ }).describe(m.describe(he));
2432
+ const _e = e.enum(["AUTO", "MANUAL"]);
2433
2433
  e.enum(["IN_PROGRESS", "COMPLETED"]);
2434
- const j = e.object({
2435
- _id: o,
2434
+ const E = e.object({
2435
+ _id: n,
2436
2436
  name: e.string().min(1, "Name is required").max(50),
2437
- type: fe,
2437
+ type: _e,
2438
2438
  event: w.optional()
2439
- }), be = e.object({
2439
+ }), ye = e.object({
2440
2440
  from: e.number().int("Must be integer").min(1, "Min referral count need to start from 1"),
2441
2441
  to: e.number().int("Must be integer").nullish()
2442
- }).superRefine((n, a) => {
2443
- n.from && n.to && n.from > n.to && a.addIssue({
2442
+ }).superRefine((o, a) => {
2443
+ o.from && o.to && o.from > o.to && a.addIssue({
2444
2444
  code: "custom",
2445
2445
  message: "Max referral count must be more than min referral count"
2446
2446
  });
2447
- }), He = e.object({
2448
- threshold: be,
2449
- rewards: e.array(o),
2450
- pf_reward: e.array(_).optional()
2451
- }), y = e.object({
2447
+ }), fe = e.object({
2448
+ threshold: ye,
2449
+ rewards: e.array(n),
2450
+ pf_reward: e.array(H).optional()
2451
+ }), z = e.object({
2452
2452
  id: e.string(),
2453
2453
  name: e.string().min(1, "Name is required").max(50, "Name must be less than 50 characters"),
2454
- rule: F.optional(),
2455
- rewards: e.array(He)
2456
- }), ze = {
2454
+ rule: G.optional(),
2455
+ rewards: e.array(fe)
2456
+ }), be = {
2457
2457
  collectionName: "ReferralRecords",
2458
2458
  transform: {
2459
2459
  _id: "oid",
@@ -2462,25 +2462,25 @@ const j = e.object({
2462
2462
  referee: "oid",
2463
2463
  refereeReward: "oid"
2464
2464
  }
2465
- }, Ce = e.object({
2465
+ }, He = e.object({
2466
2466
  completedAt: e.coerce.date(),
2467
- criteria: o,
2467
+ criteria: n,
2468
2468
  ref: e.string()
2469
- }), Te = e.object({
2470
- _id: o,
2471
- business: o,
2472
- referer: o,
2473
- referee: o,
2474
- criteria: e.array(j),
2475
- reward: e.array(y),
2476
- refereeReward: e.array(o).optional(),
2477
- criteria_progress: e.array(Ce),
2469
+ }), ze = e.object({
2470
+ _id: n,
2471
+ business: n,
2472
+ referer: n,
2473
+ referee: n,
2474
+ criteria: e.array(E),
2475
+ reward: e.array(z),
2476
+ refereeReward: e.array(n).optional(),
2477
+ criteria_progress: e.array(He),
2478
2478
  status: e.string(),
2479
2479
  pf_referer: g.optional(),
2480
2480
  pf_referee: g.optional(),
2481
- pf_refereeReward: e.array(_).optional()
2482
- }).describe(m.describe(ze));
2483
- Te.pick({
2481
+ pf_refereeReward: e.array(H).optional()
2482
+ }).describe(m.describe(be));
2483
+ ze.pick({
2484
2484
  _id: !0,
2485
2485
  business: !0,
2486
2486
  referer: !0,
@@ -2495,33 +2495,33 @@ Te.pick({
2495
2495
  photoUrl: !0
2496
2496
  })
2497
2497
  });
2498
- const ve = {
2498
+ const Ce = {
2499
2499
  collectionName: "ReferralProgram",
2500
2500
  transform: {
2501
2501
  _id: "oid",
2502
2502
  business: "oid"
2503
2503
  }
2504
- }, J = e.object({
2505
- _id: o,
2506
- business: o,
2504
+ }, O = e.object({
2505
+ _id: n,
2506
+ business: n,
2507
2507
  term_and_condition: e.string().optional(),
2508
- refereeReward: e.array(o).optional(),
2509
- reward: e.array(y),
2510
- criteria: e.array(j)
2511
- }).describe(m.describe(ve));
2508
+ refereeReward: e.array(n).optional(),
2509
+ reward: e.array(z),
2510
+ criteria: e.array(E)
2511
+ }).describe(m.describe(Ce));
2512
2512
  e.object({
2513
- referer: o,
2514
- referee: o,
2515
- business: o
2513
+ referer: n,
2514
+ referee: n,
2515
+ business: n
2516
2516
  });
2517
2517
  e.object({
2518
- program: J.pick({
2518
+ program: O.pick({
2519
2519
  _id: !0,
2520
2520
  business: !0,
2521
2521
  term_and_condition: !0
2522
2522
  }).extend({
2523
- reward: y.optional(),
2524
- pf_refereeReward: e.array(_).optional()
2523
+ reward: z.optional(),
2524
+ pf_refereeReward: e.array(H).optional()
2525
2525
  }),
2526
2526
  referralCount: e.number(),
2527
2527
  successReferralCount: e.number(),
@@ -2532,31 +2532,33 @@ e.object({
2532
2532
  photoUrl: !0
2533
2533
  }).optional()
2534
2534
  });
2535
- J.extend({
2535
+ O.extend({
2536
2536
  updateReferralRecord: e.boolean().optional()
2537
2537
  });
2538
- const Se = e.object({
2538
+ const Te = e.object({
2539
2539
  facebookPageId: e.string(),
2540
2540
  pageName: e.string(),
2541
2541
  pageProfileImageUrl: e.string(),
2542
2542
  pageAccessToken: e.string().optional(),
2543
- locationIds: e.array(o)
2544
- }), Ne = e.object({
2545
- locationId: o.nullable(),
2543
+ locationIds: e.array(n)
2544
+ }), ve = e.object({
2545
+ locationId: n.nullable(),
2546
2546
  googleLocationName: e.string(),
2547
2547
  displayName: e.string().optional()
2548
- }), Ue = e.object({
2549
- token: e.string().nullable(),
2550
- locations: e.array(Ne)
2551
- }), Pe = e.object({
2548
+ }), Se = e.object({
2549
+ accessToken: e.string().nullable(),
2550
+ refreshToken: e.string().nullable(),
2551
+ accessTokenExpiresAt: e.date().nullable(),
2552
+ locations: e.array(ve)
2553
+ }), Ne = e.object({
2552
2554
  token: e.string().nullable(),
2553
- pages: e.array(Se)
2555
+ pages: e.array(Te)
2554
2556
  });
2555
2557
  e.object({
2556
- _id: o,
2557
- businessId: o,
2558
- google: Ue.nullable(),
2559
- facebook: Pe.nullable()
2558
+ _id: n,
2559
+ businessId: n,
2560
+ google: Se.nullable(),
2561
+ facebook: Ne.nullable()
2560
2562
  }).describe(
2561
2563
  m.describe({
2562
2564
  collectionName: "ReviewSourceConfig",
@@ -2567,7 +2569,9 @@ e.object({
2567
2569
  })
2568
2570
  );
2569
2571
  e.object({
2570
- token: e.string()
2572
+ code: e.string(),
2573
+ redirectUri: e.string(),
2574
+ state: e.string()
2571
2575
  });
2572
2576
  e.object({
2573
2577
  locations: e.array(
@@ -2592,7 +2596,8 @@ e.object({
2592
2596
  e.object({
2593
2597
  _id: e.string(),
2594
2598
  google: e.object({
2595
- token: e.string().nullable(),
2599
+ accessToken: e.string().nullable(),
2600
+ accessTokenExpiresAt: e.string().datetime().nullable(),
2596
2601
  locations: e.array(
2597
2602
  e.object({
2598
2603
  googleLocationName: e.string(),
@@ -2613,148 +2618,202 @@ e.object({
2613
2618
  )
2614
2619
  }).nullable()
2615
2620
  });
2616
- const E = e.object({
2621
+ const d = e.object({
2617
2622
  name: e.string(),
2618
- pictureUrl: e.string()
2619
- }), je = E.extend({
2623
+ pictureUrl: e.string(),
2624
+ phoneNumber: e.string().optional()
2625
+ }), Ue = d.extend({
2620
2626
  isAnonymous: e.boolean().optional()
2621
- }), Je = E.extend({
2627
+ }), Pe = d.extend({
2622
2628
  id: e.string().optional()
2623
- }), d = e.object({
2629
+ }), u = e.object({
2624
2630
  comment: e.string(),
2625
2631
  updateTime: e.coerce.date()
2626
2632
  }), s = e.object({
2633
+ externalId: e.string().optional(),
2627
2634
  thumbnailUrl: e.string(),
2628
2635
  thumbnailLabel: e.string(),
2629
2636
  videoUrl: e.string().optional()
2630
- }), Ee = {
2637
+ }), je = {
2631
2638
  collectionName: "Reviews",
2632
2639
  transform: {
2633
2640
  _id: "oid",
2634
- locationId: "oid"
2635
- },
2636
- lookups: {
2637
- reviewerId: {
2638
- as: "reviewer",
2639
- fromCollection: "UsersV2"
2640
- },
2641
- locationId: {
2642
- as: "location",
2643
- fromCollection: "Locations"
2644
- }
2641
+ businessId: "oid",
2642
+ reviewerId: "oid",
2643
+ restaurantId: "oid"
2645
2644
  }
2646
- }, O = e.enum(["google", "facebook", "feedme"]);
2647
- O.options;
2645
+ }, I = e.enum([
2646
+ "google",
2647
+ "facebook",
2648
+ "feedme",
2649
+ "feedvibe"
2650
+ ]);
2651
+ I.options;
2648
2652
  e.enum(["google", "facebook"]);
2649
- const Oe = e.enum([
2653
+ const Je = e.enum([
2650
2654
  "createTime_desc",
2651
2655
  "createTime_asc",
2652
2656
  "rating_asc",
2653
2657
  "rating_desc"
2654
2658
  ]);
2655
2659
  e.object({
2656
- source: O.optional(),
2657
- dateFrom: e.coerce.date().optional(),
2658
- dateTo: e.coerce.date().optional(),
2660
+ source: I.array().optional(),
2661
+ dateFrom: e.string().datetime({ offset: !0 }).optional(),
2662
+ dateTo: e.string().datetime({ offset: !0 }).optional(),
2659
2663
  locationId: e.string().optional(),
2660
- sort: Oe.optional(),
2664
+ excludeDeleted: e.boolean().optional(),
2665
+ sort: Je.optional(),
2661
2666
  limit: e.coerce.number().int().positive().optional(),
2662
2667
  skip: e.coerce.number().int().min(0).optional()
2663
2668
  });
2664
- const I = e.object({
2669
+ const Xe = e.object({
2670
+ averageScore: e.number(),
2671
+ total: e.number().int().nonnegative(),
2672
+ starCounts: e.array(
2673
+ e.object({
2674
+ star: e.number().int().min(1).max(5),
2675
+ count: e.number().int().nonnegative()
2676
+ })
2677
+ )
2678
+ }), h = e.object({
2665
2679
  name: e.string(),
2666
- pictureUrl: e.string()
2667
- }), Ie = I.extend({
2680
+ pictureUrl: e.string().optional(),
2681
+ phoneNumber: e.string().optional()
2682
+ }), Ee = h.extend({
2683
+ _id: e.string().optional()
2684
+ }), Oe = h.extend({
2685
+ _id: e.string()
2686
+ }), Ie = h.extend({
2668
2687
  isAnonymous: e.boolean().optional()
2669
- }), Re = I.extend({
2688
+ }), Re = h.extend({
2670
2689
  id: e.string().optional()
2671
- }), f = e.object({
2672
- _id: o,
2690
+ }), _ = e.object({
2691
+ _id: n,
2673
2692
  comment: e.string(),
2674
2693
  createTime: e.coerce.date(),
2675
- locationId: o
2676
- }), Le = f.extend({
2694
+ updateTime: e.coerce.date().nullish(),
2695
+ restaurantId: n,
2696
+ restaurantName: e.string()
2697
+ }), Le = _.extend({
2677
2698
  source: e.literal("google"),
2699
+ externalId: e.string().min(1),
2700
+ translatedComment: e.string().optional(),
2678
2701
  reviewer: Ie.optional(),
2679
- reply: d.optional(),
2702
+ reply: u.optional(),
2680
2703
  mediaItems: e.array(s),
2681
2704
  starRating: e.number(),
2682
2705
  locationName: e.string(),
2683
2706
  locationDisplayName: e.string()
2684
- }), xe = f.extend({
2707
+ }), xe = _.extend({
2685
2708
  source: e.literal("facebook"),
2709
+ externalId: e.string().min(1),
2686
2710
  reviewer: Re.optional(),
2687
2711
  isPositive: e.boolean().optional(),
2688
2712
  pageId: e.string(),
2689
2713
  pageName: e.string()
2690
- }), De = f.extend({
2714
+ }), De = _.extend({
2691
2715
  source: e.literal("feedme"),
2692
- reviewer: A,
2693
- reply: d.optional(),
2716
+ reviewer: Ee.optional(),
2717
+ reply: u.optional(),
2694
2718
  starRating: e.number(),
2695
- location: G.optional(),
2696
2719
  mediaItems: e.array(s),
2697
2720
  billId: e.string()
2721
+ }), we = _.extend({
2722
+ source: e.literal("feedvibe"),
2723
+ externalId: e.string().min(1),
2724
+ reviewer: Oe.optional(),
2725
+ rating: e.object({
2726
+ overall: e.number(),
2727
+ food: e.number(),
2728
+ service: e.number(),
2729
+ atmosphere: e.number()
2730
+ }),
2731
+ verified: e.boolean(),
2732
+ mediaItems: e.array(s).default([])
2698
2733
  });
2699
2734
  e.discriminatedUnion("source", [
2700
2735
  Le,
2701
2736
  xe,
2702
- De
2737
+ De,
2738
+ we
2703
2739
  ]);
2704
2740
  e.object({
2705
2741
  comment: e.string(),
2706
2742
  starRating: e.number(),
2707
2743
  billId: e.string(),
2744
+ isAnonymous: e.boolean(),
2708
2745
  mediaItems: e.array(s).optional()
2709
2746
  });
2710
- const b = e.object({
2711
- _id: o,
2712
- externalId: e.string().optional(),
2747
+ e.object({
2748
+ name: e.string().trim().min(1),
2749
+ phoneNumber: e.string().trim().min(1).optional()
2750
+ });
2751
+ const y = e.object({
2752
+ _id: n,
2753
+ businessId: n,
2713
2754
  comment: e.string(),
2714
2755
  createTime: e.coerce.date(),
2715
- // The marketing Location the review belongs to. For feedme reviews this is
2716
- // the restaurantId (Location._id === restaurantId); for google/facebook it
2717
- // is resolved from the review-source location/page mapping at sync time.
2718
- locationId: o
2719
- }), we = b.extend({
2756
+ updateTime: e.coerce.date().nullish(),
2757
+ restaurantId: n,
2758
+ restaurantName: e.string(),
2759
+ deletedAt: e.coerce.date().optional()
2760
+ }), Ae = y.extend({
2720
2761
  source: e.literal("google"),
2721
- reviewer: je.optional(),
2722
- reply: d.optional(),
2762
+ externalId: e.string().min(1),
2763
+ translatedComment: e.string().optional(),
2764
+ reviewer: Ue.optional(),
2765
+ reply: u.optional(),
2723
2766
  mediaItems: e.array(s),
2724
2767
  starRating: e.number(),
2725
2768
  locationName: e.string(),
2726
2769
  locationDisplayName: e.string()
2727
- }), Ae = b.extend({
2770
+ }), Ge = y.extend({
2728
2771
  source: e.literal("facebook"),
2729
- reviewer: Je.optional(),
2772
+ externalId: e.string().min(1),
2773
+ reviewer: Pe.optional(),
2730
2774
  isPositive: e.boolean().optional(),
2731
2775
  pageId: e.string(),
2732
2776
  pageName: e.string()
2733
- }), Ge = b.extend({
2777
+ }), Me = y.extend({
2734
2778
  source: e.literal("feedme"),
2735
- reviewerId: o,
2736
- reviewer: e.any().optional(),
2737
- reply: d.optional(),
2779
+ isAnonymous: e.boolean(),
2780
+ reviewerId: n.optional(),
2781
+ reviewer: d.optional(),
2782
+ reply: u.optional(),
2738
2783
  starRating: e.number(),
2739
2784
  billId: e.string(),
2740
- location: e.any().optional(),
2741
2785
  mediaItems: e.array(s)
2786
+ }), Fe = y.extend({
2787
+ source: e.literal("feedvibe"),
2788
+ externalId: e.string().min(1),
2789
+ reviewerId: n,
2790
+ reviewer: d,
2791
+ rating: e.object({
2792
+ overall: e.number(),
2793
+ food: e.number(),
2794
+ service: e.number(),
2795
+ atmosphere: e.number()
2796
+ }),
2797
+ verified: e.boolean(),
2798
+ mediaItems: e.array(s).default([])
2742
2799
  });
2743
2800
  e.discriminatedUnion("source", [
2744
- we,
2745
2801
  Ae,
2746
- Ge
2747
- ]).describe(m.describe(Ee));
2802
+ Ge,
2803
+ Me,
2804
+ Fe
2805
+ ]).describe(m.describe(je));
2748
2806
  export {
2749
- Z as F,
2807
+ Q as F,
2750
2808
  t as R,
2751
- Ye as T,
2752
- k as a,
2753
- He as b,
2754
- j as c,
2755
- y as d,
2756
- X as e,
2757
- q as f,
2758
- u as i,
2759
- Y as s
2809
+ We as T,
2810
+ M as a,
2811
+ fe as b,
2812
+ E as c,
2813
+ z as d,
2814
+ K as e,
2815
+ W as f,
2816
+ Xe as g,
2817
+ b as i,
2818
+ B as s
2760
2819
  };