@feedmepos/mf-connect 0.1.98-beta.6 → 0.1.98-beta.60

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 (147) hide show
  1. package/dist/{App-CvJ0ASlp.js → App-BUwQLdzG.js} +812 -666
  2. package/dist/{AuditLogs-Bt9S2LKL.js → AuditLogs-laNQB1ef.js} +14 -13
  3. package/dist/{Bin-ZSCDSioa.js → Bin-Bfboeea_.js} +8 -8
  4. package/dist/{Broadcast-BT0R11RB.js → Broadcast-CDz-_eDz.js} +40 -37
  5. package/dist/CampaignAnalytic-BiA-5XG3.js +1830 -0
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-LweQ57aG.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-VrTN-c_a.js} +6 -5
  7. package/dist/Card-CKHaW8N7.js +1084 -0
  8. package/dist/{Collections-H7zhe9zN.js → Collections-DRocQb1D.js} +14 -13
  9. package/dist/Credit-DWaoVhSP.js +286 -0
  10. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-B7ZdULCu.js +53 -0
  11. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-B2sZFWUF.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-3ERieT1j.js} +54 -52
  12. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-qNmiKaJc.js → EffectSheet.vue_vue_type_style_index_0_lang-yDUjXV2O.js} +35 -35
  13. package/dist/{Experience-CH5tg-tm.js → Experience-C1_LpneJ.js} +112 -86
  14. package/dist/{FileSaver.min-DNFqiyZb.js → FileSaver.min-CWJ-6CFP.js} +1 -1
  15. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js +138 -0
  16. package/dist/Game-DtTYcSZk.js +356 -0
  17. package/dist/GiftCardSetup-B770Rl1Q.js +662 -0
  18. package/dist/{Grab-3s_sLewD.js → Grab-CN0gmIxT.js} +33 -32
  19. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-fbmoN1e9.js → ImageInput.vue_vue_type_script_setup_true_lang-BaAhKWhX.js} +1 -1
  20. package/dist/{Index-zTWZCiEo.js → Index-0F6aq3f9.js} +10 -10
  21. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-BOxYPkf5.js → LocationPicker.vue_vue_type_script_setup_true_lang-BrKj8W2H.js} +1 -1
  22. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-wjJ_cwft.js → LottieAnimation.vue_vue_type_script_setup_true_lang-DOuHSVdR.js} +1 -1
  23. package/dist/LoyaltyDashboard-CtXyDFqa.js +2865 -0
  24. package/dist/MainLayout-BSWLr3gE.js +143 -0
  25. package/dist/{Marketing-Bto1OvK1.js → Marketing-Ci2haxRd.js} +7 -6
  26. package/dist/{MarketingMaterialEdit-D7rIqF5U.js → MarketingMaterialEdit-Cw6R0bNM.js} +15 -14
  27. package/dist/Member-DEzSTAQy.js +649 -0
  28. package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-BrhSxbrI.js +1287 -0
  29. package/dist/MemberImportHistory-BGfNLzma.js +187 -0
  30. package/dist/MemberList-Cq5Gsv3G.js +336 -0
  31. package/dist/{MemberTransactions-CjTtGB2y.js → MemberTransactions-BrUVZRtt.js} +1 -1
  32. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DvKL7BL5.js → MessageInput.vue_vue_type_script_setup_true_lang-DCQ6Fse-.js} +5434 -5279
  33. package/dist/MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CETwYfZD.js +40 -0
  34. package/dist/Mission-Do4IonLo.js +360 -0
  35. package/dist/{Overview-mxGLyFvE.js → Overview-DA90l9Kb.js} +21 -20
  36. package/dist/Overview-DN-nJxw9.js +1316 -0
  37. package/dist/Point-DQ4w857n.js +288 -0
  38. package/dist/Promotion-Rgt9LcYi.js +423 -0
  39. package/dist/{Queue-DgaFyyyH.js → Queue-SzypUxgD.js} +14 -13
  40. package/dist/{Record-BRol__6_.js → Record-DYvPPhIW.js} +9 -9
  41. package/dist/Review-B0TERyHM.js +45 -0
  42. package/dist/ReviewFacebookCallback-BJ5jQ3Dv.js +238 -0
  43. package/dist/ReviewGoogleCallback-BKQD39dv.js +213 -0
  44. package/dist/{Reward-DQI0PvmR.js → Reward-BexlVT_C.js} +35 -35
  45. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-B6bvQNsU.js → RewardGroup.vue_vue_type_script_setup_true_lang-C-ygqNur.js} +14 -13
  46. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DgAU7jGo.js → RuleGroup.vue_vue_type_script_setup_true_lang-DjxIJcdv.js} +103 -109
  47. package/dist/{Segment-DFaLx0QZ.js → Segment-CYa4GjtQ.js} +30 -29
  48. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-Cpb2i9iV.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-b-K-VDJC.js} +31 -30
  49. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-MvoepHn9.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-t2mlDDtn.js} +4 -4
  50. package/dist/{Setting-D2NjFJvq.js → Setting-Dmm5BKdF.js} +14 -14
  51. package/dist/{SettingAdvertisements-CPWgSMaA.js → SettingAdvertisements-cy4cRBop.js} +12 -12
  52. package/dist/Settings-DMQuLDM4.js +230 -0
  53. package/dist/Store-B7KflfSk.js +2612 -0
  54. package/dist/{StoreRewards-Ccj12pyq.js → StoreRewards-BKae8uZn.js} +15 -15
  55. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-sbIR-k1R.js +1329 -0
  56. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-CfWTn0Xd.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DRT3N9SD.js} +2 -2
  57. package/dist/{Tier-vaJoohiM.js → Tier-BeTz6LHH.js} +2296 -750
  58. package/dist/{Title-BqHC7-v9.js → Title-OEVVw5I-.js} +39 -37
  59. package/dist/Transaction-D-MZjntW.js +45 -0
  60. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-Dporb9KE.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-xIEOUOdo.js} +26 -26
  61. package/dist/{Voucher-DeN6C6DQ.js → Voucher-BJCf3pSa.js} +156 -133
  62. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-De16fuC4.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BFQ_CYub.js} +115 -121
  63. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DAC-j0Ln.js → ZodTextField.vue_vue_type_script_setup_true_lang-DGDw3Too.js} +2 -2
  64. package/dist/{app-n4Y2jMee.js → app-J8VIC7-H.js} +29852 -25997
  65. package/dist/app.js +1 -1
  66. package/dist/base.export-HYFFI4OS.js +75 -0
  67. package/dist/{business-jn-_l48y.js → business-BonuheMK.js} +5 -5
  68. package/dist/{campaign-rgDnocfT.js → campaign-7CI7gfS5.js} +74 -96
  69. package/dist/campaign-Ct7jhugP.js +100 -0
  70. package/dist/{campaign.enum-C9HvoKuq.js → campaign.enum-OzJ9IbAW.js} +1 -1
  71. package/dist/{campaign.fn-D21ettpH.js → campaign.fn-CDjxE9B2.js} +99 -99
  72. package/dist/{collectible.enum-_HVU4lWn.js → collectible.enum-Dw_tlI9E.js} +1 -1
  73. package/dist/collection.fn-CER0_NEn.js +26 -0
  74. package/dist/currency-CTUS4vS8.js +7 -0
  75. package/dist/{duplicateCampaign-gzVwrnWb.js → duplicateCampaign-CMQ-RMH-.js} +11 -11
  76. package/dist/{effect-DhpIv1L3.js → effect-DBeGoMNE.js} +1 -1
  77. package/dist/{email-addresses-DPxYLSoa.js → email-addresses-BH3mQzan.js} +209 -201
  78. package/dist/google-C3S8u0mT.js +4 -0
  79. package/dist/{helper-WYHUnHVy.js → helper-DJe_JbKJ.js} +1 -1
  80. package/dist/{index-BdnHQSDd.js → index-B14H1rLW.js} +5 -4
  81. package/dist/{index-7HizF3GI.js → index-BOVnM3gL.js} +1588 -1522
  82. package/dist/{index-Cvfavr2M.js → index-BRCB6yJ6.js} +232 -200
  83. package/dist/{index-BPsofsGt.js → index-BZKKS7jO.js} +1933 -2560
  84. package/dist/{index-BuLfxJyC.js → index-BlwAgY_z.js} +105 -123
  85. package/dist/index-BmN_Qcw7.js +151 -0
  86. package/dist/index-Bnk3vdb-.js +72 -0
  87. package/dist/index-BzVTqlVH.js +137 -0
  88. package/dist/{index--fNMSXUf.js → index-CEDhjZzd.js} +1 -1
  89. package/dist/{index-BdqRrCt8.js → index-CM9GTQIo.js} +5 -5
  90. package/dist/index-CN8VyVEB.js +53 -0
  91. package/dist/{index-Cte6dHHy.js → index-COuceEFz.js} +14 -14
  92. package/dist/{index-BN-FP9kx.js → index-CWR2s6Nt.js} +1 -1
  93. package/dist/index-CrMBqkKk.js +897 -0
  94. package/dist/{index-xao4ggML.js → index-D9f3AIaO.js} +5 -5
  95. package/dist/index-Do36kJeb.js +51 -0
  96. package/dist/{index-C-5YgmkC.js → index-bGByr1XM.js} +7 -5
  97. package/dist/{index-DUTFNEn9.js → index-bJX4zgh0.js} +4 -4
  98. package/dist/{index.esm2017-CjzFPUCa.js → index.esm2017-BpCPgTjc.js} +128 -128
  99. package/dist/{loading-CojnK00V.js → loading-D_rPJ-Yc.js} +1 -1
  100. package/dist/{lodash-CLkg5jTT.js → lodash-BM976Z2I.js} +1 -1
  101. package/dist/member-import-C5rhD3f8.js +187 -0
  102. package/dist/membership-CIQCEKiL.js +274 -0
  103. package/dist/{money-CyaLaEKo.js → money-BrMT193t.js} +1 -1
  104. package/dist/{number-DEtI4bEX.js → number-DOcD1tqL.js} +1 -1
  105. package/dist/objectid-CAdRRoFu.js +145 -0
  106. package/dist/{plugins-MnP1vCcg.js → plugins-696Z9K6A.js} +3 -3
  107. package/dist/remy-Qz_pNsUS.js +13 -0
  108. package/dist/{reward-Dk3D26xC.js → reward-lSVIBiE9.js} +1 -1
  109. package/dist/{rule-B1Agad1n.js → rule-BUGAimk8.js} +335 -275
  110. package/dist/style.css +1 -1
  111. package/dist/{template-DpqLCq1p.js → template-01_h2Gac.js} +6 -6
  112. package/dist/timezone-okTdM2YU.js +20 -0
  113. package/dist/transaction.fn-Nz0T33ex.js +64 -0
  114. package/dist/{trigger-cwPN-4Ia.js → trigger-CKj1X6zs.js} +17 -17
  115. package/dist/useMarketingMaterialActions-yKqKaPpe.js +96 -0
  116. package/dist/{usePagination-D8zBMxdJ.js → usePagination-D6cYlfni.js} +1 -1
  117. package/dist/{user-EUGwaL2f.js → user-DX5qCQfz.js} +1 -1
  118. package/dist/{vue-i18n-BBj45p9N.js → vue-i18n-DowpocqN.js} +204 -204
  119. package/dist/{xlsx-DiMIlKmu.js → xlsx-Dv4SuJbw.js} +1 -1
  120. package/dist/{zod-B1cU167C.js → zod-DVw24Ejy.js} +1 -1
  121. package/package.json +6 -5
  122. package/dist/Card-Wdh8lyUv.js +0 -910
  123. package/dist/Credit-BuKLrFtM.js +0 -260
  124. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js +0 -58
  125. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +0 -129
  126. package/dist/Game-C9s4qZz4.js +0 -330
  127. package/dist/LoyaltyDashboard-tOOk6zvV.js +0 -1082
  128. package/dist/MainLayout-iWi1DzXS.js +0 -41
  129. package/dist/Member-BdgdT-sa.js +0 -280
  130. package/dist/MemberList-DBIE-RWC.js +0 -1601
  131. package/dist/Mission-CWR6FBvN.js +0 -334
  132. package/dist/Point-BIt82fJk.js +0 -262
  133. package/dist/Promotion-Cl1vPi0B.js +0 -397
  134. package/dist/Review-DmV2YnFd.js +0 -1076
  135. package/dist/ReviewFacebookCallback-B5XgAWXo.js +0 -243
  136. package/dist/ReviewGoogleCallback-CYR03Wfd.js +0 -208
  137. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-CAImd3yc.js +0 -181
  138. package/dist/Store-DjUe8ady.js +0 -1996
  139. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-B7w69A3j.js +0 -1130
  140. package/dist/Transaction-BOmDOGnD.js +0 -39
  141. package/dist/campaign-BnI7-ceP.js +0 -219
  142. package/dist/export-CWAxYj7W.js +0 -97
  143. package/dist/index-B6EBgIUx.js +0 -85
  144. package/dist/index-CxR1baaG.js +0 -52
  145. package/dist/membership-CeX8E_I9.js +0 -255
  146. package/dist/objectid-CMau7CW-.js +0 -145
  147. package/dist/useMarketingMaterialActions-CGzfJ68e.js +0 -107
@@ -1,38 +1,39 @@
1
- import { z as e, F as n, m, a as L } from "./index-xao4ggML.js";
2
- import { B as x, C as D, E as w, G as A, H as g, I as T, J as G } from "./index-BPsofsGt.js";
3
- import { _ as M, l as H, a as F } from "./index-7HizF3GI.js";
4
- import { i as p } from "./helper-WYHUnHVy.js";
5
- import { a as f } from "./index-BdqRrCt8.js";
6
- function _(o, a) {
1
+ import { z as e, F as n, m, b as R } from "./index-D9f3AIaO.js";
2
+ import { z as L, A as x, B as D, C as g } from "./index-BZKKS7jO.js";
3
+ import { _ as w, l as C, f as A } from "./index-BOVnM3gL.js";
4
+ import { i as p } from "./helper-DJe_JbKJ.js";
5
+ import { d as F } from "./index-CrMBqkKk.js";
6
+ import { F as H } from "./index-CM9GTQIo.js";
7
+ function f(o, a) {
7
8
  let i = "", r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
8
9
  const l = r.length;
9
10
  for (let c = 0; c < o; c++)
10
11
  i += r.charAt(Math.floor(Math.random() * l));
11
12
  return i;
12
13
  }
13
- function y(o) {
14
+ function b(o) {
14
15
  return !o.property && "rules" in o;
15
16
  }
16
- function k(o) {
17
+ function G(o) {
17
18
  return "property" in o && !!o.property;
18
19
  }
19
- const B = "g_schedule";
20
- function V(o) {
20
+ const M = "g_schedule";
21
+ function k(o) {
21
22
  return o.split(/\r?\n/).filter((a) => !a.trim().toUpperCase().startsWith("DTSTART")).join(`
22
23
  `).trim();
23
24
  }
24
- function Y(o, a = !1) {
25
- const i = M.cloneDeep(o);
26
- if (k(i)) {
25
+ function B(o, a = !1) {
26
+ const i = w.cloneDeep(o);
27
+ if (G(i)) {
27
28
  const r = i.conditions;
28
- return !a && r && typeof r._rrule == "string" && (r._rrule = V(
29
+ return !a && r && typeof r._rrule == "string" && (r._rrule = k(
29
30
  r._rrule
30
31
  )), i;
31
32
  }
32
- if (y(i))
33
+ if (b(i))
33
34
  for (const r in i.rules) {
34
- const l = i.rules[r], c = a || y(l) && l.name === B;
35
- i.rules[r] = Y(
35
+ const l = i.rules[r], c = a || b(l) && l.name === M;
36
+ i.rules[r] = B(
36
37
  l,
37
38
  c
38
39
  );
@@ -42,14 +43,14 @@ function Y(o, a = !1) {
42
43
  class t {
43
44
  static scaffoldGroup(a) {
44
45
  return {
45
- name: a ?? `g_${_(4)}`,
46
+ name: a ?? `g_${f(4)}`,
46
47
  rules: {},
47
48
  logic: ""
48
49
  };
49
50
  }
50
51
  static scaffoldEntry(a) {
51
52
  return {
52
- name: `r_${_(4)}`,
53
+ name: `r_${f(4)}`,
53
54
  property: a ?? "",
54
55
  conditions: {},
55
56
  negated: !1
@@ -57,7 +58,7 @@ class t {
57
58
  }
58
59
  static constructEntry(a, i, r, l) {
59
60
  return {
60
- name: l ?? `e_${_(4)}`,
61
+ name: l ?? `e_${f(4)}`,
61
62
  property: a,
62
63
  conditions: {
63
64
  [i]: r
@@ -70,16 +71,16 @@ class t {
70
71
  }
71
72
  static constructLogic(a, i) {
72
73
  const r = i ?? t.getLogic(a);
73
- return Object.entries(a.rules).map(([l, c]) => y(c) ? l : `${c.negated ? "!" : ""}${l}`).join(` ${r} `);
74
+ return Object.entries(a.rules).map(([l, c]) => b(c) ? l : `${c.negated ? "!" : ""}${l}`).join(` ${r} `);
74
75
  }
75
76
  static setRuleToGroup(a, i, r) {
76
- let l = H.cloneDeep(a);
77
+ let l = C.cloneDeep(a);
77
78
  return Object.keys(l.rules).length === 0 && (l = t.scaffoldGroup(l.name)), Array.isArray(i) ? i.forEach((c) => {
78
79
  l.rules[c.name] = c;
79
80
  }) : l.rules[i.name] = i, l.logic = t.constructLogic(l, r), l;
80
81
  }
81
82
  static removeEntry(a, i, r) {
82
- const l = H.cloneDeep(a);
83
+ const l = C.cloneDeep(a);
83
84
  return delete l.rules[i], l.logic = t.constructLogic(l, r), l;
84
85
  }
85
86
  static constructRule(a) {
@@ -111,18 +112,18 @@ class t {
111
112
  static isRuleExceed(a, i) {
112
113
  const l = Object.keys(a.rules).length + (Array.isArray(i) ? i.length : 1);
113
114
  if (l > 10)
114
- throw new K(10, l);
115
+ throw new V(10, l);
115
116
  return !0;
116
117
  }
117
118
  }
118
- class K extends Error {
119
+ class V extends Error {
119
120
  constructor(a, i) {
120
121
  super(
121
122
  `Maximum of ${a} rules allowed per group. Attempted to add ${i} rules.`
122
123
  ), this.name = "MaxRulesExceededError";
123
124
  }
124
125
  }
125
- const W = {
126
+ const Y = {
126
127
  collectionName: "AuditLogs",
127
128
  transform: {
128
129
  _id: "oid",
@@ -135,7 +136,7 @@ const W = {
135
136
  fromCollection: "Businesses"
136
137
  }
137
138
  }
138
- }, X = e.enum([
139
+ }, K = e.enum([
139
140
  "GET",
140
141
  "POST",
141
142
  "PUT",
@@ -144,7 +145,7 @@ const W = {
144
145
  "OPTIONS",
145
146
  "HEAD",
146
147
  "ALL"
147
- ]), q = e.enum([
148
+ ]), W = e.enum([
148
149
  "CAMPAIGN",
149
150
  "LOCATION",
150
151
  "MARKETING MATERIALS",
@@ -154,15 +155,15 @@ const W = {
154
155
  "SETTINGS",
155
156
  "SEGMENTATION",
156
157
  "USER"
157
- ]), Q = e.object({
158
- httpMethod: X,
158
+ ]), q = e.object({
159
+ httpMethod: K,
159
160
  url: e.string().min(1),
160
161
  userAgent: e.string(),
161
162
  host: e.string().min(1),
162
163
  params: e.object({}).passthrough().nullish(),
163
164
  query: e.object({}).passthrough().nullish(),
164
165
  body: e.object({}).passthrough().nullish()
165
- }), $ = e.object({
166
+ }), X = e.object({
166
167
  statusCode: e.number().int().min(100).max(599),
167
168
  body: e.object({}).passthrough().nullish()
168
169
  });
@@ -170,15 +171,15 @@ e.object({
170
171
  _id: n,
171
172
  user: e.string().length(28),
172
173
  userName: e.string().min(1),
173
- userPhoneNumber: e.string().refine((o) => x(o)).nullish(),
174
- moduleType: q,
174
+ userPhoneNumber: e.string().refine((o) => L(o)).nullish(),
175
+ moduleType: W,
175
176
  business: n.nullish(),
176
177
  clientIp: e.string().nullish(),
177
178
  timestamp: e.string().datetime(),
178
- request: Q,
179
- response: $
180
- }).describe(m.describe(W));
181
- const We = {
179
+ request: q,
180
+ response: X
181
+ }).describe(m.describe(Y));
182
+ const qe = {
182
183
  PROMOTION: {
183
184
  name: "Promotion Template",
184
185
  description: "Promotion template for campaign creation.",
@@ -2117,7 +2118,7 @@ t.setRuleToGroup(t.scaffoldGroup(), [
2117
2118
  ({
2118
2119
  ...t.scaffoldGroup()
2119
2120
  });
2120
- const Z = e.enum([
2121
+ const Q = e.enum([
2121
2122
  "MEMBER_REWARD",
2122
2123
  "PAID_LOYALTY",
2123
2124
  "COLLECT_FEEDBACK",
@@ -2127,7 +2128,7 @@ const Z = e.enum([
2127
2128
  "BROADCAST",
2128
2129
  "BIRTHDAY",
2129
2130
  "GAME"
2130
- ]), ee = e.enum([
2131
+ ]), $ = e.enum([
2131
2132
  "text",
2132
2133
  "number",
2133
2134
  "textarea",
@@ -2157,28 +2158,28 @@ const Z = e.enum([
2157
2158
  "grab_effect",
2158
2159
  "grab_quota",
2159
2160
  "grab_conditions"
2160
- ]), te = e.object({
2161
+ ]), Z = e.object({
2161
2162
  label: e.string().optional(),
2162
2163
  label_locale: e.record(e.string()).nullish(),
2163
2164
  property: e.string().or(e.any()),
2164
- type: ee,
2165
+ type: $,
2165
2166
  extras: e.string().optional(),
2166
2167
  isRuleChildren: e.boolean().optional()
2167
- }), z = e.object({
2168
+ }), T = e.object({
2168
2169
  not: e.boolean().optional(),
2169
2170
  property: e.string(),
2170
2171
  value: e.any()
2171
- }), ae = e.object({
2172
+ }), ee = e.object({
2172
2173
  name: e.string().optional(),
2173
2174
  name_locale: e.record(e.string()).nullish(),
2174
- fields: e.array(te),
2175
- condition: z.optional().or(
2176
- e.array(z)
2175
+ fields: e.array(Z),
2176
+ condition: T.optional().or(
2177
+ e.array(T)
2177
2178
  )
2178
- }), ne = e.object({
2179
+ }), te = e.object({
2179
2180
  name: e.string(),
2180
2181
  name_locale: e.record(e.string()).nullish(),
2181
- groups: e.array(ae)
2182
+ groups: e.array(ee)
2182
2183
  });
2183
2184
  e.object({
2184
2185
  _id: n,
@@ -2186,11 +2187,11 @@ e.object({
2186
2187
  name_locale: e.record(e.string()).nullish(),
2187
2188
  description: e.string().nullish(),
2188
2189
  description_locale: e.record(e.string()).nullish(),
2189
- steps: e.array(ne).min(1),
2190
- intention: e.array(Z),
2190
+ steps: e.array(te).min(1),
2191
+ intention: e.array(Q),
2191
2192
  defaultValue: e.any()
2192
2193
  }).describe(JSON.stringify({ collectionName: "MarketingTemplates" }));
2193
- const oe = {
2194
+ const ae = {
2194
2195
  collectionName: "Businesses",
2195
2196
  transform: {
2196
2197
  _id: "oid"
@@ -2202,27 +2203,27 @@ e.object({
2202
2203
  name: e.string(),
2203
2204
  credit: e.number(),
2204
2205
  forceSend: e.boolean().optional()
2205
- }).describe(m.describe(oe));
2206
- const v = e.enum(["PHONE"]), ie = e.enum([
2206
+ }).describe(m.describe(ae));
2207
+ const S = e.enum(["PHONE"]), ne = e.enum([
2207
2208
  "MOCEAN",
2208
2209
  "SLACK",
2209
2210
  "SMS",
2210
2211
  "EMAIL",
2211
2212
  "WHATSAPP"
2212
- ]), le = e.enum(["PENDING", "COMPLETED", "FAILED"]), re = e.enum([
2213
+ ]), oe = e.enum(["PENDING", "COMPLETED", "FAILED"]), ie = e.enum([
2213
2214
  "General",
2214
2215
  "Otp",
2215
2216
  "Marketing",
2216
2217
  "Ordering",
2217
2218
  "MemberInvitation",
2218
2219
  "MarketingPromotion"
2219
- ]), ce = e.object({
2220
- type: v
2221
- }), S = ce.extend({
2222
- type: e.literal(v.enum.PHONE),
2223
- provider: ie,
2224
- usage: re.optional()
2225
- }), pe = {
2220
+ ]), le = e.object({
2221
+ type: S
2222
+ }), N = le.extend({
2223
+ type: e.literal(S.enum.PHONE),
2224
+ provider: ne,
2225
+ usage: ie.optional()
2226
+ }), re = {
2226
2227
  collectionName: "Notifications",
2227
2228
  transform: { _id: "oid", business: "oid" }
2228
2229
  };
@@ -2232,39 +2233,39 @@ e.object({
2232
2233
  target: e.string(),
2233
2234
  title: e.string().optional(),
2234
2235
  message: e.string(),
2235
- option: S,
2236
- status: le,
2236
+ option: N,
2237
+ status: oe,
2237
2238
  ref: e.string().optional()
2238
- }).describe(m.describe(pe));
2239
- const me = e.object({
2239
+ }).describe(m.describe(re));
2240
+ const ce = e.object({
2240
2241
  target: e.string(),
2241
2242
  title: e.string().optional(),
2242
2243
  message: e.string(),
2243
- option: S,
2244
+ option: N,
2244
2245
  ref: e.string().optional()
2245
2246
  });
2246
2247
  e.object({
2247
2248
  campaignId: e.string(),
2248
- notification: me,
2249
+ notification: ce,
2249
2250
  business: e.string()
2250
2251
  });
2251
2252
  e.object({
2252
2253
  phone: e.string(),
2253
2254
  message: e.string()
2254
2255
  });
2255
- const C = e.object({
2256
+ const v = e.object({
2256
2257
  name: e.string().optional(),
2257
2258
  address: e.string()
2258
- }), se = e.object({
2259
+ }), pe = e.object({
2259
2260
  filename: e.string(),
2260
2261
  content: e.instanceof(Uint8Array)
2261
2262
  });
2262
2263
  e.object({
2263
- from: C.optional(),
2264
- to: e.array(C),
2264
+ from: v.optional(),
2265
+ to: e.array(v),
2265
2266
  subject: e.string(),
2266
2267
  html: e.string().optional(),
2267
- attachments: e.array(se).optional()
2268
+ attachments: e.array(pe).optional()
2268
2269
  });
2269
2270
  e.object({
2270
2271
  subject: e.string(),
@@ -2304,7 +2305,7 @@ e.object({
2304
2305
  billId: e.string()
2305
2306
  });
2306
2307
  e.object({
2307
- amount: L,
2308
+ amount: R,
2308
2309
  member: e.string(),
2309
2310
  bill: e.string(),
2310
2311
  otp: e.string().nullish(),
@@ -2313,15 +2314,15 @@ e.object({
2313
2314
  e.object({
2314
2315
  orderId: e.string()
2315
2316
  });
2316
- var N = /* @__PURE__ */ ((o) => (o[o.feedMe = 0] = "feedMe", o[o.business = 1] = "business", o[o.restaurant = 2] = "restaurant", o))(N || {});
2317
- e.nativeEnum(N);
2317
+ var U = /* @__PURE__ */ ((o) => (o[o.feedMe = 0] = "feedMe", o[o.business = 1] = "business", o[o.restaurant = 2] = "restaurant", o))(U || {});
2318
+ e.nativeEnum(U);
2318
2319
  e.enum(["manage", "create", "read", "update", "delete"]);
2319
2320
  e.enum(["all", "restaurant", "business", "delivery", "agent"]);
2320
2321
  e.enum(["quota"]);
2321
- var U = /* @__PURE__ */ ((o) => (o.marketing = "business::marketing", o.campaign = "business::campaign", o.counter = "business::counter", o.permission = "business::permission", o.role = "business::role", o))(U || {});
2322
- e.nativeEnum(U);
2322
+ 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 || {});
2323
+ e.nativeEnum(P);
2323
2324
  e.enum(["restaurant"]);
2324
- const ge = e.object({
2325
+ const me = e.object({
2325
2326
  label: e.string(),
2326
2327
  subject: e.union([e.string(), e.array(e.string())]),
2327
2328
  actions: e.union([e.string(), e.array(e.string())]),
@@ -2336,7 +2337,7 @@ e.object({
2336
2337
  userId: e.string(),
2337
2338
  email: e.string().nullish(),
2338
2339
  phoneNo: e.string().nullish(),
2339
- permissions: e.array(e.lazy(() => ge))
2340
+ permissions: e.array(e.lazy(() => me))
2340
2341
  }).describe(
2341
2342
  m.describe({
2342
2343
  collectionName: "PermissionUsers",
@@ -2345,27 +2346,27 @@ e.object({
2345
2346
  }
2346
2347
  })
2347
2348
  );
2348
- const P = e.object({
2349
+ const j = e.object({
2349
2350
  userId: e.string(),
2350
2351
  level: e.number(),
2351
2352
  role: e.string().optional(),
2352
2353
  businessId: e.string().optional(),
2353
2354
  restaurantId: e.string().optional()
2354
- }), de = e.function().args(e.any(), P).returns(e.boolean()), ue = e.function().args(P).returns(e.promise(e.array(e.any())));
2355
+ }), se = e.function().args(e.any(), j).returns(e.boolean()), ge = e.function().args(j).returns(e.promise(e.array(e.any())));
2355
2356
  e.object({
2356
- isAdmin: de,
2357
- getRules: ue
2357
+ isAdmin: se,
2358
+ getRules: ge
2358
2359
  });
2359
2360
  e.object({
2360
- transactions: e.array(D),
2361
- collections: e.array(w)
2361
+ transactions: e.array(x),
2362
+ collections: e.array(D)
2362
2363
  });
2363
- const j = e.enum([
2364
+ const J = e.enum([
2364
2365
  "ROCK_PAPER_SCISSOR"
2365
2366
  ]);
2366
- j.enum.ROCK_PAPER_SCISSOR + "";
2367
+ J.enum.ROCK_PAPER_SCISSOR + "";
2367
2368
  e.object({
2368
- type: j
2369
+ type: J
2369
2370
  });
2370
2371
  e.object({
2371
2372
  host: e.string().url(),
@@ -2374,7 +2375,7 @@ e.object({
2374
2375
  roomId: e.string()
2375
2376
  });
2376
2377
  e.enum(["FACEBOOK", "INSTAGRAM", "TV", "BRAND_APP"]);
2377
- const he = {
2378
+ const de = {
2378
2379
  collectionName: "MarketingMaterials",
2379
2380
  transform: {
2380
2381
  _id: "oid",
@@ -2388,7 +2389,7 @@ e.object({
2388
2389
  headline: e.string(),
2389
2390
  caption: e.string(),
2390
2391
  editedAt: e.coerce.date()
2391
- }).describe(m.describe(he));
2392
+ }).describe(m.describe(de));
2392
2393
  e.object({
2393
2394
  id: e.number(),
2394
2395
  name: e.string(),
@@ -2408,12 +2409,12 @@ e.object({
2408
2409
  phone: e.string().optional(),
2409
2410
  email: e.string().optional()
2410
2411
  });
2411
- const _e = e.enum([
2412
+ const ue = e.enum([
2412
2413
  "PENDING",
2413
2414
  "SUCCESS",
2414
2415
  "FAILED",
2415
2416
  "RETRYING"
2416
- ]), ye = {
2417
+ ]), he = {
2417
2418
  collectionName: "WebhookLogs",
2418
2419
  transform: {
2419
2420
  _id: "oid",
@@ -2425,18 +2426,18 @@ e.object({
2425
2426
  business: n,
2426
2427
  type: e.string(),
2427
2428
  payload: e.record(e.any()),
2428
- status: _e,
2429
+ status: ue,
2429
2430
  response: e.any().optional(),
2430
2431
  error: e.string().optional()
2431
- }).describe(m.describe(ye));
2432
- const fe = e.enum(["AUTO", "MANUAL"]);
2432
+ }).describe(m.describe(he));
2433
+ const _e = e.enum(["AUTO", "MANUAL"]);
2433
2434
  e.enum(["IN_PROGRESS", "COMPLETED"]);
2434
- const J = e.object({
2435
+ const E = e.object({
2435
2436
  _id: n,
2436
2437
  name: e.string().min(1, "Name is required").max(50),
2437
- type: fe,
2438
- event: A.optional()
2439
- }), be = e.object({
2438
+ type: _e,
2439
+ event: F.optional()
2440
+ }), ye = e.object({
2440
2441
  from: e.number().int("Must be integer").min(1, "Min referral count need to start from 1"),
2441
2442
  to: e.number().int("Must be integer").nullish()
2442
2443
  }).superRefine((o, a) => {
@@ -2444,16 +2445,16 @@ const J = e.object({
2444
2445
  code: "custom",
2445
2446
  message: "Max referral count must be more than min referral count"
2446
2447
  });
2447
- }), He = e.object({
2448
- threshold: be,
2448
+ }), fe = e.object({
2449
+ threshold: ye,
2449
2450
  rewards: e.array(n),
2450
- pf_reward: e.array(f).optional()
2451
- }), b = e.object({
2451
+ pf_reward: e.array(H).optional()
2452
+ }), z = e.object({
2452
2453
  id: e.string(),
2453
2454
  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 = {
2455
+ rule: A.optional(),
2456
+ rewards: e.array(fe)
2457
+ }), be = {
2457
2458
  collectionName: "ReferralRecords",
2458
2459
  transform: {
2459
2460
  _id: "oid",
@@ -2462,25 +2463,25 @@ const J = e.object({
2462
2463
  referee: "oid",
2463
2464
  refereeReward: "oid"
2464
2465
  }
2465
- }, Ce = e.object({
2466
+ }, He = e.object({
2466
2467
  completedAt: e.coerce.date(),
2467
2468
  criteria: n,
2468
2469
  ref: e.string()
2469
- }), Te = e.object({
2470
+ }), ze = e.object({
2470
2471
  _id: n,
2471
2472
  business: n,
2472
2473
  referer: n,
2473
2474
  referee: n,
2474
- criteria: e.array(J),
2475
- reward: e.array(b),
2475
+ criteria: e.array(E),
2476
+ reward: e.array(z),
2476
2477
  refereeReward: e.array(n).optional(),
2477
- criteria_progress: e.array(Ce),
2478
+ criteria_progress: e.array(He),
2478
2479
  status: e.string(),
2479
2480
  pf_referer: g.optional(),
2480
2481
  pf_referee: g.optional(),
2481
- pf_refereeReward: e.array(f).optional()
2482
- }).describe(m.describe(ze));
2483
- Te.pick({
2482
+ pf_refereeReward: e.array(H).optional()
2483
+ }).describe(m.describe(be));
2484
+ ze.pick({
2484
2485
  _id: !0,
2485
2486
  business: !0,
2486
2487
  referer: !0,
@@ -2495,33 +2496,33 @@ Te.pick({
2495
2496
  photoUrl: !0
2496
2497
  })
2497
2498
  });
2498
- const ve = {
2499
+ const Ce = {
2499
2500
  collectionName: "ReferralProgram",
2500
2501
  transform: {
2501
2502
  _id: "oid",
2502
2503
  business: "oid"
2503
2504
  }
2504
- }, E = e.object({
2505
+ }, O = e.object({
2505
2506
  _id: n,
2506
2507
  business: n,
2507
2508
  term_and_condition: e.string().optional(),
2508
2509
  refereeReward: e.array(n).optional(),
2509
- reward: e.array(b),
2510
- criteria: e.array(J)
2511
- }).describe(m.describe(ve));
2510
+ reward: e.array(z),
2511
+ criteria: e.array(E)
2512
+ }).describe(m.describe(Ce));
2512
2513
  e.object({
2513
2514
  referer: n,
2514
2515
  referee: n,
2515
2516
  business: n
2516
2517
  });
2517
2518
  e.object({
2518
- program: E.pick({
2519
+ program: O.pick({
2519
2520
  _id: !0,
2520
2521
  business: !0,
2521
2522
  term_and_condition: !0
2522
2523
  }).extend({
2523
- reward: b.optional(),
2524
- pf_refereeReward: e.array(f).optional()
2524
+ reward: z.optional(),
2525
+ pf_refereeReward: e.array(H).optional()
2525
2526
  }),
2526
2527
  referralCount: e.number(),
2527
2528
  successReferralCount: e.number(),
@@ -2532,33 +2533,37 @@ e.object({
2532
2533
  photoUrl: !0
2533
2534
  }).optional()
2534
2535
  });
2535
- E.extend({
2536
+ O.extend({
2536
2537
  updateReferralRecord: e.boolean().optional()
2537
2538
  });
2538
- const Se = e.object({
2539
+ const Te = e.object({
2539
2540
  facebookPageId: e.string(),
2540
2541
  pageName: e.string(),
2541
2542
  pageProfileImageUrl: e.string(),
2542
2543
  pageAccessToken: e.string().optional(),
2543
2544
  locationIds: e.array(n)
2544
- }), Ne = e.object({
2545
+ }), ve = e.object({
2545
2546
  locationId: n.nullable(),
2546
2547
  googleLocationName: e.string(),
2547
2548
  displayName: e.string().optional()
2548
- }), Ue = e.object({
2549
+ }), Se = e.object({
2549
2550
  accessToken: e.string().nullable(),
2550
2551
  refreshToken: e.string().nullable(),
2551
2552
  accessTokenExpiresAt: e.date().nullable(),
2552
- locations: e.array(Ne)
2553
- }), Pe = e.object({
2553
+ locations: e.array(ve),
2554
+ lastSyncTime: e.coerce.date().nullish(),
2555
+ syncFrequency: e.number().int().min(1).max(30).default(30)
2556
+ }), Ne = e.object({
2554
2557
  token: e.string().nullable(),
2555
- pages: e.array(Se)
2558
+ pages: e.array(Te),
2559
+ lastSyncTime: e.coerce.date().nullish(),
2560
+ syncFrequency: e.number().int().min(1).max(30).default(30)
2556
2561
  });
2557
2562
  e.object({
2558
2563
  _id: n,
2559
2564
  businessId: n,
2560
- google: Ue.nullable(),
2561
- facebook: Pe.nullable()
2565
+ google: Se.nullable(),
2566
+ facebook: Ne.nullable()
2562
2567
  }).describe(
2563
2568
  m.describe({
2564
2569
  collectionName: "ReviewSourceConfig",
@@ -2604,7 +2609,9 @@ e.object({
2604
2609
  displayName: e.string().optional(),
2605
2610
  locationId: e.string().nullable()
2606
2611
  })
2607
- )
2612
+ ),
2613
+ lastSyncTime: e.string().datetime().nullable(),
2614
+ syncFrequency: e.number().int().min(1).max(30)
2608
2615
  }).nullable(),
2609
2616
  facebook: e.object({
2610
2617
  token: e.string().nullable(),
@@ -2615,40 +2622,38 @@ e.object({
2615
2622
  pageProfileImageUrl: e.string(),
2616
2623
  locationIds: e.array(e.string())
2617
2624
  })
2618
- )
2625
+ ),
2626
+ lastSyncTime: e.string().datetime().nullable(),
2627
+ syncFrequency: e.number().int().min(1).max(30)
2619
2628
  }).nullable()
2620
2629
  });
2621
- const O = e.object({
2630
+ const d = e.object({
2622
2631
  name: e.string(),
2623
- pictureUrl: e.string()
2624
- }), je = O.extend({
2632
+ pictureUrl: e.string(),
2633
+ phoneNumber: e.string().optional()
2634
+ }), Ue = d.extend({
2625
2635
  isAnonymous: e.boolean().optional()
2626
- }), Je = O.extend({
2636
+ }), Pe = d.extend({
2627
2637
  id: e.string().optional()
2628
- }), d = e.object({
2638
+ }), u = e.object({
2629
2639
  comment: e.string(),
2630
2640
  updateTime: e.coerce.date()
2631
- }), s = e.object({
2641
+ });
2642
+ e.object({
2643
+ comment: e.string().trim().min(1).max(4096)
2644
+ });
2645
+ const s = e.object({
2632
2646
  externalId: e.string().optional(),
2633
2647
  thumbnailUrl: e.string(),
2634
2648
  thumbnailLabel: e.string(),
2635
2649
  videoUrl: e.string().optional()
2636
- }), Ee = {
2650
+ }), je = {
2637
2651
  collectionName: "Reviews",
2638
2652
  transform: {
2639
2653
  _id: "oid",
2654
+ businessId: "oid",
2640
2655
  reviewerId: "oid",
2641
- locationId: "oid"
2642
- },
2643
- lookups: {
2644
- reviewerId: {
2645
- as: "reviewer",
2646
- fromCollection: "UsersV2"
2647
- },
2648
- locationId: {
2649
- as: "location",
2650
- fromCollection: "Locations"
2651
- }
2656
+ restaurantId: "oid"
2652
2657
  }
2653
2658
  }, I = e.enum([
2654
2659
  "google",
@@ -2658,7 +2663,7 @@ const O = e.object({
2658
2663
  ]);
2659
2664
  I.options;
2660
2665
  e.enum(["google", "facebook"]);
2661
- const Oe = e.enum([
2666
+ const Je = e.enum([
2662
2667
  "createTime_desc",
2663
2668
  "createTime_asc",
2664
2669
  "rating_asc",
@@ -2669,51 +2674,68 @@ e.object({
2669
2674
  dateFrom: e.string().datetime({ offset: !0 }).optional(),
2670
2675
  dateTo: e.string().datetime({ offset: !0 }).optional(),
2671
2676
  locationId: e.string().optional(),
2672
- sort: Oe.optional(),
2677
+ excludeDeleted: e.boolean().optional(),
2678
+ sort: Je.optional(),
2673
2679
  limit: e.coerce.number().int().positive().optional(),
2674
2680
  skip: e.coerce.number().int().min(0).optional()
2675
2681
  });
2676
- const R = e.object({
2682
+ const Xe = e.object({
2683
+ averageScore: e.number(),
2684
+ total: e.number().int().nonnegative(),
2685
+ starCounts: e.array(
2686
+ e.object({
2687
+ star: e.number().int().min(1).max(5),
2688
+ count: e.number().int().nonnegative()
2689
+ })
2690
+ )
2691
+ }), h = e.object({
2677
2692
  name: e.string(),
2678
- pictureUrl: e.string()
2679
- }), Ie = R.extend({
2693
+ pictureUrl: e.string().optional(),
2694
+ phoneNumber: e.string().optional()
2695
+ }), Ee = h.extend({
2696
+ _id: e.string().optional()
2697
+ }), Oe = h.extend({
2698
+ _id: e.string()
2699
+ }), Ie = h.extend({
2680
2700
  isAnonymous: e.boolean().optional()
2681
- }), Re = R.extend({
2701
+ }), Re = h.extend({
2682
2702
  id: e.string().optional()
2683
- }), u = e.object({
2703
+ }), _ = e.object({
2684
2704
  _id: n,
2685
2705
  comment: e.string(),
2686
2706
  createTime: e.coerce.date(),
2687
2707
  updateTime: e.coerce.date().nullish(),
2688
- locationId: n
2689
- }), Le = u.extend({
2708
+ restaurantId: n,
2709
+ restaurantName: e.string()
2710
+ }), Le = _.extend({
2690
2711
  source: e.literal("google"),
2691
2712
  externalId: e.string().min(1),
2713
+ translatedComment: e.string().optional(),
2692
2714
  reviewer: Ie.optional(),
2693
- reply: d.optional(),
2715
+ reply: u.optional(),
2694
2716
  mediaItems: e.array(s),
2695
2717
  starRating: e.number(),
2696
2718
  locationName: e.string(),
2697
- locationDisplayName: e.string()
2698
- }), xe = u.extend({
2719
+ locationDisplayName: e.string(),
2720
+ originalUrl: e.string().optional()
2721
+ }), xe = _.extend({
2699
2722
  source: e.literal("facebook"),
2700
2723
  externalId: e.string().min(1),
2701
2724
  reviewer: Re.optional(),
2702
2725
  isPositive: e.boolean().optional(),
2703
2726
  pageId: e.string(),
2704
2727
  pageName: e.string()
2705
- }), De = u.extend({
2728
+ }), De = _.extend({
2706
2729
  source: e.literal("feedme"),
2707
- reviewer: T,
2708
- reply: d.optional(),
2730
+ reviewer: Ee.optional(),
2731
+ reply: u.optional(),
2709
2732
  starRating: e.number(),
2710
- location: G.optional(),
2711
2733
  mediaItems: e.array(s),
2712
2734
  billId: e.string()
2713
- }), we = u.extend({
2735
+ }), we = _.extend({
2714
2736
  source: e.literal("feedvibe"),
2715
2737
  externalId: e.string().min(1),
2716
- reviewer: T.optional(),
2738
+ reviewer: Oe.optional(),
2717
2739
  rating: e.object({
2718
2740
  overall: e.number(),
2719
2741
  food: e.number(),
@@ -2733,47 +2755,55 @@ e.object({
2733
2755
  comment: e.string(),
2734
2756
  starRating: e.number(),
2735
2757
  billId: e.string(),
2758
+ isAnonymous: e.boolean(),
2736
2759
  mediaItems: e.array(s).optional()
2737
2760
  });
2738
- const h = e.object({
2761
+ e.object({
2762
+ name: e.string().trim().min(1),
2763
+ phoneNumber: e.string().trim().min(1).optional()
2764
+ });
2765
+ const y = e.object({
2739
2766
  _id: n,
2767
+ businessId: n,
2740
2768
  comment: e.string(),
2741
2769
  createTime: e.coerce.date(),
2742
2770
  updateTime: e.coerce.date().nullish(),
2743
- // The marketing Location the review belongs to. For feedme reviews this is
2744
- // the restaurantId (Location._id === restaurantId); for google/facebook it
2745
- // is resolved from the review-source location/page mapping at sync time.
2746
- locationId: n
2747
- }), Ae = h.extend({
2771
+ restaurantId: n,
2772
+ restaurantName: e.string(),
2773
+ deletedAt: e.coerce.date().optional()
2774
+ }), Ae = y.extend({
2748
2775
  source: e.literal("google"),
2749
2776
  externalId: e.string().min(1),
2750
- reviewer: je.optional(),
2751
- reply: d.optional(),
2777
+ translatedComment: e.string().optional(),
2778
+ reviewer: Ue.optional(),
2779
+ reply: u.optional(),
2752
2780
  mediaItems: e.array(s),
2753
2781
  starRating: e.number(),
2754
2782
  locationName: e.string(),
2755
- locationDisplayName: e.string()
2756
- }), Ge = h.extend({
2783
+ locationDisplayName: e.string(),
2784
+ originalUrl: e.string().optional()
2785
+ }), Fe = y.extend({
2757
2786
  source: e.literal("facebook"),
2758
2787
  externalId: e.string().min(1),
2759
- reviewer: Je.optional(),
2788
+ reviewer: Pe.optional(),
2760
2789
  isPositive: e.boolean().optional(),
2761
2790
  pageId: e.string(),
2762
2791
  pageName: e.string()
2763
- }), Me = h.extend({
2792
+ }), Ge = y.extend({
2764
2793
  source: e.literal("feedme"),
2765
- reviewerId: n,
2766
- reviewer: e.any().optional(),
2767
- reply: d.optional(),
2794
+ isAnonymous: e.boolean(),
2795
+ metadata: e.record(e.string(), e.unknown()).optional(),
2796
+ reviewerId: n.optional(),
2797
+ reviewer: d.optional(),
2798
+ reply: u.optional(),
2768
2799
  starRating: e.number(),
2769
2800
  billId: e.string(),
2770
- location: e.any().optional(),
2771
2801
  mediaItems: e.array(s)
2772
- }), Fe = h.extend({
2802
+ }), Me = y.extend({
2773
2803
  source: e.literal("feedvibe"),
2774
2804
  externalId: e.string().min(1),
2775
2805
  reviewerId: n,
2776
- reviewer: e.any().optional(),
2806
+ reviewer: d,
2777
2807
  rating: e.object({
2778
2808
  overall: e.number(),
2779
2809
  food: e.number(),
@@ -2785,20 +2815,22 @@ const h = e.object({
2785
2815
  });
2786
2816
  e.discriminatedUnion("source", [
2787
2817
  Ae,
2818
+ Fe,
2788
2819
  Ge,
2789
- Me,
2790
- Fe
2791
- ]).describe(m.describe(Ee));
2820
+ Me
2821
+ ]).describe(m.describe(je));
2792
2822
  export {
2793
- Z as F,
2823
+ Q as F,
2794
2824
  t as R,
2795
- We as T,
2796
- k as a,
2797
- He as b,
2798
- J as c,
2799
- b as d,
2800
- X as e,
2801
- q as f,
2802
- y as i,
2803
- Y as s
2825
+ qe as T,
2826
+ b as a,
2827
+ fe as b,
2828
+ E as c,
2829
+ z as d,
2830
+ K as e,
2831
+ W as f,
2832
+ Xe as g,
2833
+ u as h,
2834
+ G as i,
2835
+ B as s
2804
2836
  };